Socket
Socket
Sign inDemoInstall

bh-mobile-sdk

Package Overview
Dependencies
0
Maintainers
2
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.43 to 0.1.44

2

lib/index.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BH_MOBILE=e():t.BH_MOBILE=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.init=void 0;var o=n(72),i=r(o),u=n(34),c=r(u),s={};window.mamp=s,e.default=c.default,e.init=i.default},function(t,e,n){var r=n(29)("wks"),o=n(33),i=n(2).Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(12),o=n(28);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports={}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(13);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(4),o=n(41),i=n(61),u=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(11),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(2),o=n(3),i=n(9),u=n(5),c="prototype",s=function(t,e,n){var a,f,l,p=t&s.F,d=t&s.G,v=t&s.S,h=t&s.P,m=t&s.B,g=t&s.W,y=d?o:o[e]||(o[e]={}),w=y[c],_=d?r:v?r[e]:(r[e]||{})[c];d&&(n=e);for(a in n)f=!p&&_&&void 0!==_[a],f&&a in y||(l=f?_[a]:n[a],y[a]=d&&"function"!=typeof _[a]?n[a]:m&&f?i(l,r):g&&_[a]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[c]=t[c],e}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((y.virtual||(y.virtual={}))[a]=l,t&s.R&&w&&!w[a]&&u(w,a,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(12).f,o=n(10),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(29)("keys"),o=n(33);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(43),o=n(14);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(8),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),o))?n:i?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){t.exports=n(2).document&&document.documentElement},function(t,e,n){"use strict";var r=n(26),o=n(16),i=n(56),u=n(5),c=n(10),s=n(7),a=n(46),f=n(18),l=n(52),p=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",h="keys",m="values",g=function(){return this};t.exports=function(t,e,n,y,w,_,b){a(n,e,y);var x,T,P,O=function(t){if(!d&&t in E)return E[t];switch(t){case h:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},j=e+" Iterator",M=w==m,S=!1,E=t.prototype,I=E[p]||E[v]||w&&E[w],k=I||O(w),C=w?M?O("entries"):k:void 0,A="Array"==e?E.entries||I:I;if(A&&(P=l(A.call(new t)),P!==Object.prototype&&(f(P,j,!0),r||c(P,p)||u(P,p,g))),M&&I&&I.name!==m&&(S=!0,k=function(){return I.call(this)}),r&&!b||!d&&!S&&E[p]||u(E,p,k),s[e]=k,s[j]=g,w)if(x={values:M?k:O(m),keys:_?k:O(h),entries:C},b)for(T in x)T in E||i(E,T,x[T]);else o(o.P+o.F*(d||S),e,x);return x}},function(t,e){t.exports=!0},function(t,e,n){var r=n(53),o=n(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(2),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r,o,i,u=n(9),c=n(42),s=n(24),a=n(15),f=n(2),l=f.process,p=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,h=0,m={},g="onreadystatechange",y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},w=function(t){y.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++h]=function(){c("function"==typeof t?t:Function(t),e)},r(h),h},d=function(t){delete m[t]},"process"==n(8)(l)?r=function(t){l.nextTick(u(y,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=w,r=u(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",w,!1)):r=g in a("script")?function(t){s.appendChild(a("script"))[g]=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(u(y,t,1),0)}),t.exports={set:p,clear:d}},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(14);t.exports=function(t){return Object(r(t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(69),u=o(i),c=n(74),s=o(c),a=n(71),f=o(a),l=n(75),p=r(l),d=n(73),v=r(d),h=null;e.default=function(){if(h)return h;var t=window.mamp,e={};return f.default.wisedu?(e.ENV="hybrid",t.cpdaily&&(e.ENV="hybrid.cpdaily")):e.ENV="browser",(0,u.default)(s.default).forEach(function(n){var r=s.default[n],o=t[n]||{};e[n]={},(0,u.default)(r).forEach(function(t){var i=r[t],u=p[t],c=v[t];i&&(o[t]?u?e[n][t]=u(o[t]):o[t]&&(e[n][t]=o[t]):c?e[n][t]=c:e[n][t]=function(){f.default.wisedu?console.error("调用的"+n+"."+t+"接口不存在"):console.log("你当前不在 Hybrid 环境, 或Hybrid 环境没有初始化, "+t+" 处于 mock 实现")})})}),h=e}},function(t,e,n){n(64),t.exports=n(3).Object.keys},function(t,e,n){n(65),n(67),n(68),n(66),t.exports=n(3).Promise},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(21),o=n(31),i=n(60);t.exports=function(t){return function(e,n,u){var c,s=r(e),a=o(s.length),f=i(u,a);if(t&&n!=n){for(;a>f;)if(c=s[f++],c!=c)return!0}else for(;a>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(9),o=n(45),i=n(44),u=n(4),c=n(31),s=n(62),a={},f={},e=t.exports=function(t,e,n,l,p){var d,v,h,m,g=p?function(){return t}:s(t),y=r(n,l,e?2:1),w=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(d=c(t.length);d>w;w++)if(m=e?y(u(v=t[w])[0],v[1]):y(t[w]),m===a||m===f)return m}else for(h=g.call(t);!(v=h.next()).done;)if(m=o(h,y,v.value,e),m===a||m===f)return m};e.BREAK=a,e.RETURN=f},function(t,e,n){t.exports=!n(6)&&!n(17)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(8);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(7),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(50),o=n(28),i=n(18),u={};n(5)(u,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(2),o=n(30).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,c=r.Promise,s="process"==n(8)(u);t.exports=function(){var t,e,n,a=function(){var r,o;for(s&&(r=u.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){u.nextTick(a)};else if(i){var f=!0,l=document.createTextNode("");new i(a).observe(l,{characterData:!0}),n=function(){l.data=f=!f}}else if(c&&c.resolve){var p=c.resolve();n=function(){p.then(a)}}else n=function(){o.call(r,a)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){var r=n(4),o=n(51),i=n(23),u=n(19)("IE_PROTO"),c=function(){},s="prototype",a=function(){var t,e=n(15)("iframe"),r=i.length,o="<",u=">";for(e.style.display="none",n(24).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),a=t.F;r--;)delete a[s][i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[s]=r(t),n=new c,c[s]=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(12),o=n(4),i=n(27);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,s=0;c>s;)r.f(t,n=u[s++],e[n]);return t}},function(t,e,n){var r=n(10),o=n(32),i=n(19)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(10),o=n(21),i=n(39)(!1),u=n(19)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),s=0,a=[];for(n in c)n!=u&&r(c,n)&&a.push(n);for(;e.length>s;)r(c,n=e[s++])&&(~i(a,n)||a.push(n));return a}},function(t,e,n){var r=n(16),o=n(3),i=n(17);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){var r=n(5);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){t.exports=n(5)},function(t,e,n){"use strict";var r=n(2),o=n(3),i=n(12),u=n(6),c=n(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];u&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(4),o=n(13),i=n(1)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||void 0==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r=n(20),o=n(14);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),s=r(n),a=c.length;return s<0||s>=a?t?"":void 0:(i=c.charCodeAt(s),i<55296||i>56319||s+1===a||(u=c.charCodeAt(s+1))<56320||u>57343?t?c.charAt(s):i:t?c.slice(s,s+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,e,n){var r=n(20),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(22),o=n(1)("iterator"),i=n(7);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(37),o=n(48),i=n(7),u=n(21);t.exports=n(25)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(32),o=n(27);n(54)("keys",function(){return function(t){return o(r(t))}})},function(t,e){},function(t,e,n){"use strict";var r,o,i,u=n(26),c=n(2),s=n(9),a=n(22),f=n(16),l=n(11),p=n(13),d=n(38),v=n(40),h=n(58),m=n(30).set,g=n(49)(),y="Promise",w=c.TypeError,_=c.process,b=c[y],_=c.process,x="process"==a(_),T=function(){},P=!!function(){try{var t=b.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(T,T)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e}catch(t){}}(),O=function(t,e){return t===e||t===b&&e===i},j=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},M=function(t){return O(b,t)?new S(t):new o(t)},S=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw w("Bad Promise constructor");e=t,n=r}),this.resolve=p(e),this.reject=p(n)},E=function(t){try{t()}catch(t){return{error:t}}},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0,u=function(e){var n,i,u=o?e.ok:e.fail,c=e.resolve,s=e.reject,a=e.domain;try{u?(o||(2==t._h&&A(t),t._h=1),u===!0?n=r:(a&&a.enter(),n=u(r),a&&a.exit()),n===e.promise?s(w("Promise-chain cycle")):(i=j(n))?i.call(n,c,s):c(n)):s(r)}catch(t){s(t)}};n.length>i;)u(n[i++]);t._c=[],t._n=!1,e&&!t._h&&k(t)})}},k=function(t){m.call(c,function(){var e,n,r,o=t._v;if(C(t)&&(e=E(function(){x?_.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=x||C(t)?2:1),t._a=void 0,e)throw e.error})},C=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!C(e.promise))return!1;return!0},A=function(t){m.call(c,function(){var e;x?_.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},L=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},R=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw w("Promise can't be resolved itself");(e=j(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,s(R,r,1),s(L,r,1))}catch(t){L.call(r,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){L.call({_w:n,_d:!1},t)}}};P||(b=function(t){d(this,b,y,"_h"),p(t),r.call(this);try{t(s(R,this,1),s(L,this,1))}catch(t){L.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(55)(b.prototype,{then:function(t,e){var n=M(h(this,b));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),S=function(){var t=new r;this.promise=t,this.resolve=s(R,t,1),this.reject=s(L,t,1)}),f(f.G+f.W+f.F*!P,{Promise:b}),n(18)(b,y),n(57)(y),i=n(3)[y],f(f.S+f.F*!P,y,{reject:function(t){var e=M(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(u||!P),y,{resolve:function(t){if(t instanceof b&&O(t.constructor,this))return t;var e=M(this),n=e.resolve;return n(t),e.promise}}),f(f.S+f.F*!(P&&n(47)(function(t){b.all(t).catch(T)})),y,{all:function(t){var e=this,n=M(e),r=n.resolve,o=n.reject,i=E(function(){var n=[],i=0,u=1;v(t,!1,function(t){var c=i++,s=!1;n.push(void 0),u++,e.resolve(t).then(function(t){s||(s=!0,n[c]=t,--u||r(n))},o)}),--u||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,o=E(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e,n){"use strict";var r=n(59)(!0);n(25)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(63);for(var r=n(2),o=n(5),i=n(7),u=n(1)("toStringTag"),c=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var a=c[s],f=r[a],l=f&&f.prototype;l&&!l[u]&&o(l,u,a),i[a]=i.Array}},function(t,e,n){t.exports={default:n(35),__esModule:!0}},function(t,e,n){t.exports={default:n(36),__esModule:!0}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={wisedu:/wisedu/.test(navigator.userAgent)}},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(34),i=r(o),u=!1,c=!1,s=[],a=function(){u=!0,t.BH_MOBILE_SDK=(0,i.default)(),s.forEach(function(t){t()})};e.default=function(t,e){if(u?t():s.push(t),c===!1){if(localStorage.getItem("wisedu-browser-debug")||/wisedu/.test(navigator.userAgent)===!1)setTimeout(function(){a()},0);else{var n=e?"https://injectionmamp/cordova.js":"mamp://injectionmamp/cordova.js",r=document.createElement("script");r.src=n,document.head.appendChild(r),window.close=function(){window.location.href="mamp://close"},document.addEventListener("deviceready",a,!1)}c=!0}}}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.registerNetworkChangeCallback=e.getConnectionType=e.getTenantInfo=e.getCircleList=e.getUserInfo=e.getTenantID=e.togglePullUp=e.startPullRefresh=e.togglePullRefresh=e.scan=e.openCommentView=e.parseInfoFromHTML=e.formatImageToBase64=e.webviewOnResume=e.closeWebView=e.openFullWebView=e.openWebView=e.sendGetRequest=e.getPasteboard=e.uploadToEMAP=void 0;var o=n(70),i=r(o),u=(e.uploadToEMAP=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.token,o=void 0;return r?o=r.substring(0,r.length-1):(o=(new Date).getTime()+""+parseInt(100*Math.random()).toString(),r=o+1),new i.default(function(i,u){t||u("server 地址未指定"),0===e.length&&u("没有可供上传的文件"),n.params={scope:o,fileToken:r,storeId:"image"},BH_MOBILE_SDK.file.uploadToServer(t+"/sys/emapcomponent/file/uploadTempFile.do",e,n,function(e){var n=!1;if(e.forEach(function(t){if(200!==t.code)n=!0;else try{t.response=JSON.parse(t.response),t.response.success||(n=!0)}catch(t){n=!0}}),n)u(e);else{var c=new FormData;c.append("scope",o),c.append("fileToken",r),c.append("attachmentParam",'{"storeId": "image"}');var s=new XMLHttpRequest;s.withCredentials=!0,s.open("POST",t+"/sys/emapcomponent/file/saveAttachment.do"),s.send(c),s.onload=function(){if(this.status>=200&&this.status<300)try{var t=JSON.parse(this.responseText);t.success&&i({success:!0,token:r})}catch(t){u(t)}else u(this.statusText)},s.onerror=function(){u(this.statusText)}}})})},e.getPasteboard=function(t){t("")},e.sendGetRequest=function(t,e){e({code:"404"})},e.openWebView=function(t,e){window.open(t)},e.openFullWebView=function(t,e){window.open(t)},e.closeWebView=function(t,e){window.close()},e.webviewOnResume=function(t){document.addEventListener&&document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&t()})},e.formatImageToBase64=function(t,e){e(t)},e.parseInfoFromHTML=function(t,e){e({img:"http://www.baidu.com/img/bd_logo1.png",title:"百度一下,你就知道"})},e.openCommentView=function(t,e){window.open(t)},e.scan=function(t,e){t(e)},null);e.togglePullRefresh=function(t,e){u=t?e:null},e.startPullRefresh=function(){u&&u()},e.togglePullUp=function(t,e){return t?e:null},e.getTenantID=function(t,e){t(e)},e.getUserInfo=function(t,e){t(e)},e.getCircleList=function(t){t([])},e.getTenantInfo=function(t,e){t(e)},e.getConnectionType=function(t){return t},e.registerNetworkChangeCallback=function(t,e){e&&setTimeout(function(){t(e)},1e4)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={UI:{actionSheet:!0,alertView:!0,closeWebView:!0,datePicker:!0,dateTimePicker:!0,multiPicker:!0,multiSelect:!0,openWebView:!0,preViewImages:!0,setNavHeader:!0,setTitleText:!0,setNavBarBgColor:!0,setStatusBarTintColor:!0,setBouncesEnabled:!0,singleSelect:!0,showToast:!0,toggleNavBar:!0,togglePullRefresh:!0,finishPullRefresh:!0,startPullRefresh:!0,togglePullUp:!0,finishPullUp:!0,webviewOnResume:!0},systemAbility:{getPasteboard:!0,setPasteboard:!0,setIdleTimerDisabled:!0,setBrightness:!0,takeCamera:!0,takePhoto:!0,tel:!0},file:{filePreview:!0,uploadToServer:!0},wisedu:{uploadToEMAP:!0},social:{share:!0},http:{sendGetRequest:!0},qrcode:{generateCode:!0,generateCodeAndShow:!0,scan:!0,recognize:!0},device:{getConnectionType:!0,registerNetworkChangeCallback:!0},cpdaily:{clickHomeTab:!0,checkPublishFresh:!0,formatImageToBase64:!0,getImagesInfo:!0,getTenantID:!0,getTenantInfo:!0,getUserBasicInfos:!0,getUserInfo:!0,getCircleList:!0,mainAppListChange:!0,onMineAppChanged:!0,onMainNavTabChanged:!0,openApp:!0,openCommentView:!0,openFullWebView:!0,openHomePage:!0,openMarketList:!0,openUsersPage:!0,openPhotoWall:!0,onPublishFreshListener:!0,parseInfoFromHTML:!0,postNotification:!0,publishFresh:!0,setStatusBarColor:!0,showLoginView:!0,showMain:!0,showOrgSelector:!0,showOrHideTabbar:!0,showSettingView:!0,showUserGuide:!0,startComment:!0,startIMChat:!0,toggleFocus:!0,toggleNavTransparent:!0,uploadToOSS:!0,zhugeioTrack:!0}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.webviewOnResume=function(t){var e=!1,n=[];return function(r){n.push(r),e||(t(function(){n.forEach(function(t){t()})}),e=!0)}},e.uploadToServer=function(t){return function(e,n,r,o){t(e,n,o,r)}}}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BH_MOBILE=e():t.BH_MOBILE=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.init=void 0;var o=n(72),i=r(o),u=n(34),c=r(u),s={};window.mamp=s,e.default=c.default,e.init=i.default},function(t,e,n){var r=n(29)("wks"),o=n(33),i=n(2).Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(12),o=n(28);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports={}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(13);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(4),o=n(41),i=n(61),u=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(11),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(2),o=n(3),i=n(9),u=n(5),c="prototype",s=function(t,e,n){var a,f,l,p=t&s.F,d=t&s.G,v=t&s.S,h=t&s.P,g=t&s.B,m=t&s.W,y=d?o:o[e]||(o[e]={}),w=y[c],_=d?r:v?r[e]:(r[e]||{})[c];d&&(n=e);for(a in n)f=!p&&_&&void 0!==_[a],f&&a in y||(l=f?_[a]:n[a],y[a]=d&&"function"!=typeof _[a]?n[a]:g&&f?i(l,r):m&&_[a]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[c]=t[c],e}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((y.virtual||(y.virtual={}))[a]=l,t&s.R&&w&&!w[a]&&u(w,a,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(12).f,o=n(10),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(29)("keys"),o=n(33);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(43),o=n(14);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(8),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),o))?n:i?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){t.exports=n(2).document&&document.documentElement},function(t,e,n){"use strict";var r=n(26),o=n(16),i=n(56),u=n(5),c=n(10),s=n(7),a=n(46),f=n(18),l=n(52),p=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",h="keys",g="values",m=function(){return this};t.exports=function(t,e,n,y,w,_,b){a(n,e,y);var x,T,P,O=function(t){if(!d&&t in E)return E[t];switch(t){case h:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},j=e+" Iterator",M=w==g,S=!1,E=t.prototype,I=E[p]||E[v]||w&&E[w],k=I||O(w),C=w?M?O("entries"):k:void 0,A="Array"==e?E.entries||I:I;if(A&&(P=l(A.call(new t)),P!==Object.prototype&&(f(P,j,!0),r||c(P,p)||u(P,p,m))),M&&I&&I.name!==g&&(S=!0,k=function(){return I.call(this)}),r&&!b||!d&&!S&&E[p]||u(E,p,k),s[e]=k,s[j]=m,w)if(x={values:M?k:O(g),keys:_?k:O(h),entries:C},b)for(T in x)T in E||i(E,T,x[T]);else o(o.P+o.F*(d||S),e,x);return x}},function(t,e){t.exports=!0},function(t,e,n){var r=n(53),o=n(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(2),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r,o,i,u=n(9),c=n(42),s=n(24),a=n(15),f=n(2),l=f.process,p=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,h=0,g={},m="onreadystatechange",y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},w=function(t){y.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++h]=function(){c("function"==typeof t?t:Function(t),e)},r(h),h},d=function(t){delete g[t]},"process"==n(8)(l)?r=function(t){l.nextTick(u(y,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=w,r=u(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",w,!1)):r=m in a("script")?function(t){s.appendChild(a("script"))[m]=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(u(y,t,1),0)}),t.exports={set:p,clear:d}},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(14);t.exports=function(t){return Object(r(t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(69),u=o(i),c=n(74),s=o(c),a=n(71),f=o(a),l=n(75),p=r(l),d=n(73),v=r(d),h=null;e.default=function(){if(h)return h;var t=window.mamp,e={};return f.default.wisedu?(e.ENV="hybrid",t.cpdaily&&(e.ENV="hybrid.cpdaily")):e.ENV="browser",(0,u.default)(s.default).forEach(function(n){var r=s.default[n],o=t[n]||{};e[n]={},(0,u.default)(r).forEach(function(t){var i=r[t],u=p[t],c=v[t];i&&(o[t]?u?e[n][t]=u(o[t]):o[t]&&(e[n][t]=o[t]):c?e[n][t]=c:e[n][t]=function(){f.default.wisedu?console.error("调用的"+n+"."+t+"接口不存在"):console.log("你当前不在 Hybrid 环境, 或Hybrid 环境没有初始化, "+t+" 处于 mock 实现")})})}),h=e}},function(t,e,n){n(64),t.exports=n(3).Object.keys},function(t,e,n){n(65),n(67),n(68),n(66),t.exports=n(3).Promise},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(21),o=n(31),i=n(60);t.exports=function(t){return function(e,n,u){var c,s=r(e),a=o(s.length),f=i(u,a);if(t&&n!=n){for(;a>f;)if(c=s[f++],c!=c)return!0}else for(;a>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(9),o=n(45),i=n(44),u=n(4),c=n(31),s=n(62),a={},f={},e=t.exports=function(t,e,n,l,p){var d,v,h,g,m=p?function(){return t}:s(t),y=r(n,l,e?2:1),w=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(d=c(t.length);d>w;w++)if(g=e?y(u(v=t[w])[0],v[1]):y(t[w]),g===a||g===f)return g}else for(h=m.call(t);!(v=h.next()).done;)if(g=o(h,y,v.value,e),g===a||g===f)return g};e.BREAK=a,e.RETURN=f},function(t,e,n){t.exports=!n(6)&&!n(17)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(8);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(7),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(50),o=n(28),i=n(18),u={};n(5)(u,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(2),o=n(30).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,c=r.Promise,s="process"==n(8)(u);t.exports=function(){var t,e,n,a=function(){var r,o;for(s&&(r=u.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){u.nextTick(a)};else if(i){var f=!0,l=document.createTextNode("");new i(a).observe(l,{characterData:!0}),n=function(){l.data=f=!f}}else if(c&&c.resolve){var p=c.resolve();n=function(){p.then(a)}}else n=function(){o.call(r,a)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){var r=n(4),o=n(51),i=n(23),u=n(19)("IE_PROTO"),c=function(){},s="prototype",a=function(){var t,e=n(15)("iframe"),r=i.length,o="<",u=">";for(e.style.display="none",n(24).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),a=t.F;r--;)delete a[s][i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[s]=r(t),n=new c,c[s]=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(12),o=n(4),i=n(27);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,s=0;c>s;)r.f(t,n=u[s++],e[n]);return t}},function(t,e,n){var r=n(10),o=n(32),i=n(19)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(10),o=n(21),i=n(39)(!1),u=n(19)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),s=0,a=[];for(n in c)n!=u&&r(c,n)&&a.push(n);for(;e.length>s;)r(c,n=e[s++])&&(~i(a,n)||a.push(n));return a}},function(t,e,n){var r=n(16),o=n(3),i=n(17);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){var r=n(5);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){t.exports=n(5)},function(t,e,n){"use strict";var r=n(2),o=n(3),i=n(12),u=n(6),c=n(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];u&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(4),o=n(13),i=n(1)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||void 0==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r=n(20),o=n(14);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),s=r(n),a=c.length;return s<0||s>=a?t?"":void 0:(i=c.charCodeAt(s),i<55296||i>56319||s+1===a||(u=c.charCodeAt(s+1))<56320||u>57343?t?c.charAt(s):i:t?c.slice(s,s+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,e,n){var r=n(20),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(22),o=n(1)("iterator"),i=n(7);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(37),o=n(48),i=n(7),u=n(21);t.exports=n(25)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(32),o=n(27);n(54)("keys",function(){return function(t){return o(r(t))}})},function(t,e){},function(t,e,n){"use strict";var r,o,i,u=n(26),c=n(2),s=n(9),a=n(22),f=n(16),l=n(11),p=n(13),d=n(38),v=n(40),h=n(58),g=n(30).set,m=n(49)(),y="Promise",w=c.TypeError,_=c.process,b=c[y],_=c.process,x="process"==a(_),T=function(){},P=!!function(){try{var t=b.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(T,T)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e}catch(t){}}(),O=function(t,e){return t===e||t===b&&e===i},j=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},M=function(t){return O(b,t)?new S(t):new o(t)},S=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw w("Bad Promise constructor");e=t,n=r}),this.resolve=p(e),this.reject=p(n)},E=function(t){try{t()}catch(t){return{error:t}}},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){for(var r=t._v,o=1==t._s,i=0,u=function(e){var n,i,u=o?e.ok:e.fail,c=e.resolve,s=e.reject,a=e.domain;try{u?(o||(2==t._h&&A(t),t._h=1),u===!0?n=r:(a&&a.enter(),n=u(r),a&&a.exit()),n===e.promise?s(w("Promise-chain cycle")):(i=j(n))?i.call(n,c,s):c(n)):s(r)}catch(t){s(t)}};n.length>i;)u(n[i++]);t._c=[],t._n=!1,e&&!t._h&&k(t)})}},k=function(t){g.call(c,function(){var e,n,r,o=t._v;if(C(t)&&(e=E(function(){x?_.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=x||C(t)?2:1),t._a=void 0,e)throw e.error})},C=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!C(e.promise))return!1;return!0},A=function(t){g.call(c,function(){var e;x?_.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},L=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},R=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw w("Promise can't be resolved itself");(e=j(t))?m(function(){var r={_w:n,_d:!1};try{e.call(t,s(R,r,1),s(L,r,1))}catch(t){L.call(r,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){L.call({_w:n,_d:!1},t)}}};P||(b=function(t){d(this,b,y,"_h"),p(t),r.call(this);try{t(s(R,this,1),s(L,this,1))}catch(t){L.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(55)(b.prototype,{then:function(t,e){var n=M(h(this,b));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),S=function(){var t=new r;this.promise=t,this.resolve=s(R,t,1),this.reject=s(L,t,1)}),f(f.G+f.W+f.F*!P,{Promise:b}),n(18)(b,y),n(57)(y),i=n(3)[y],f(f.S+f.F*!P,y,{reject:function(t){var e=M(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(u||!P),y,{resolve:function(t){if(t instanceof b&&O(t.constructor,this))return t;var e=M(this),n=e.resolve;return n(t),e.promise}}),f(f.S+f.F*!(P&&n(47)(function(t){b.all(t).catch(T)})),y,{all:function(t){var e=this,n=M(e),r=n.resolve,o=n.reject,i=E(function(){var n=[],i=0,u=1;v(t,!1,function(t){var c=i++,s=!1;n.push(void 0),u++,e.resolve(t).then(function(t){s||(s=!0,n[c]=t,--u||r(n))},o)}),--u||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,o=E(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e,n){"use strict";var r=n(59)(!0);n(25)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(63);for(var r=n(2),o=n(5),i=n(7),u=n(1)("toStringTag"),c=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var a=c[s],f=r[a],l=f&&f.prototype;l&&!l[u]&&o(l,u,a),i[a]=i.Array}},function(t,e,n){t.exports={default:n(35),__esModule:!0}},function(t,e,n){t.exports={default:n(36),__esModule:!0}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={wisedu:/wisedu/.test(navigator.userAgent)}},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(34),i=r(o),u=!1,c=!1,s=[],a=function(){u=!0,t.BH_MOBILE_SDK=(0,i.default)(),s.forEach(function(t){t()})};e.default=function(t,e){if(u?t():s.push(t),c===!1){if(localStorage.getItem("wisedu-browser-debug")||/wisedu/.test(navigator.userAgent)===!1)setTimeout(function(){a()},0);else{var n=e?"https://injectionmamp/cordova.js":"mamp://injectionmamp/cordova.js",r=document.createElement("script");r.src=n,document.head.appendChild(r),window.close=function(){window.location.href="mamp://close"},document.addEventListener("deviceready",a,!1)}c=!0}}}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.registerNetworkChangeCallback=e.getConnectionType=e.getTenantInfo=e.getCircleList=e.getUserInfo=e.getTenantID=e.togglePullUp=e.startPullRefresh=e.togglePullRefresh=e.scan=e.openCommentView=e.parseInfoFromHTML=e.formatImageToBase64=e.webviewOnResume=e.closeWebView=e.openFullWebView=e.openWebView=e.sendGetRequest=e.getPasteboard=e.uploadToEMAP=void 0;var o=n(70),i=r(o),u=(e.uploadToEMAP=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.token,o=void 0;return r?o=r.substring(0,r.length-1):(o=(new Date).getTime()+""+parseInt(100*Math.random()).toString(),r=o+1),new i.default(function(i,u){t||u("server 地址未指定"),0===e.length&&u("没有可供上传的文件"),n.params={scope:o,fileToken:r,storeId:"image"},BH_MOBILE_SDK.file.uploadToServer(t+"/sys/emapcomponent/file/uploadTempFile.do",e,n,function(e){var n=!1;if(e.forEach(function(t){if(200!==t.code)n=!0;else try{t.response=JSON.parse(t.response),t.response.success||(n=!0)}catch(t){n=!0}}),n)u(e);else{var c=new FormData;c.append("scope",o),c.append("fileToken",r),c.append("attachmentParam",'{"storeId": "image"}');var s=new XMLHttpRequest;s.withCredentials=!0,s.open("POST",t+"/sys/emapcomponent/file/saveAttachment.do"),s.send(c),s.onload=function(){if(this.status>=200&&this.status<300)try{var t=JSON.parse(this.responseText);t.success&&i({success:!0,token:r})}catch(t){u(t)}else u(this.statusText)},s.onerror=function(){u(this.statusText)}}})})},e.getPasteboard=function(t){t("")},e.sendGetRequest=function(t,e){e({code:"404"})},e.openWebView=function(t,e){window.open(t)},e.openFullWebView=function(t,e){window.open(t)},e.closeWebView=function(t,e){window.close()},e.webviewOnResume=function(t){document.addEventListener&&document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&t()})},e.formatImageToBase64=function(t,e){e(t)},e.parseInfoFromHTML=function(t,e){e({img:"http://www.baidu.com/img/bd_logo1.png",title:"百度一下,你就知道"})},e.openCommentView=function(t,e){window.open(t)},e.scan=function(t,e){t(e)},null);e.togglePullRefresh=function(t,e){u=t?e:null},e.startPullRefresh=function(){u&&u()},e.togglePullUp=function(t,e){return t?e:null},e.getTenantID=function(t,e){t(e)},e.getUserInfo=function(t,e){t(e)},e.getCircleList=function(t){t([])},e.getTenantInfo=function(t,e){t(e)},e.getConnectionType=function(t){return t},e.registerNetworkChangeCallback=function(t,e){e&&setTimeout(function(){t(e)},1e4)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={UI:{actionSheet:!0,alertView:!0,closeWebView:!0,datePicker:!0,dateTimePicker:!0,multiPicker:!0,multiSelect:!0,openWebView:!0,preViewImages:!0,setNavHeader:!0,setTitleText:!0,setNavBarBgColor:!0,setStatusBarTintColor:!0,setBouncesEnabled:!0,singleSelect:!0,showToast:!0,toggleLoading:!0,toggleNavBar:!0,togglePullRefresh:!0,finishPullRefresh:!0,startPullRefresh:!0,togglePullUp:!0,finishPullUp:!0,webviewOnResume:!0},systemAbility:{getPasteboard:!0,setPasteboard:!0,setIdleTimerDisabled:!0,setBrightness:!0,takeCamera:!0,takePhoto:!0,tel:!0},file:{filePreview:!0,uploadToServer:!0},wisedu:{uploadToEMAP:!0},social:{share:!0},http:{sendGetRequest:!0},qrcode:{generateCode:!0,generateCodeAndShow:!0,scan:!0,recognize:!0},device:{getConnectionType:!0,registerNetworkChangeCallback:!0},cpdaily:{clickHomeTab:!0,checkPublishFresh:!0,formatImageToBase64:!0,getImagesInfo:!0,getTenantID:!0,getTenantInfo:!0,getUserBasicInfos:!0,getUserInfo:!0,getCircleList:!0,mainAppListChange:!0,onMineAppChanged:!0,onMainNavTabChanged:!0,openApp:!0,openCommentView:!0,openFullWebView:!0,openHomePage:!0,openMarketList:!0,openUsersPage:!0,openPhotoWall:!0,onPublishFreshListener:!0,parseInfoFromHTML:!0,postNotification:!0,publishFresh:!0,setStatusBarColor:!0,showLoginView:!0,showMain:!0,showOrgSelector:!0,showOrHideTabbar:!0,showSettingView:!0,showUserGuide:!0,startComment:!0,startIMChat:!0,toggleFocus:!0,toggleNavTransparent:!0,uploadToOSS:!0,zhugeioTrack:!0}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.webviewOnResume=function(t){var e=!1,n=[];return function(r){n.push(r),e||(t(function(){n.forEach(function(t){t()})}),e=!0)}},e.uploadToServer=function(t){return function(e,n,r,o){t(e,n,o,r)}}}])});
{
"name": "bh-mobile-sdk",
"version": "0.1.43",
"version": "0.1.44",
"description": "wisedu mobile web sdk",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -25,2 +25,3 @@ /**

showToast: true,
toggleLoading: true,
toggleNavBar: true,

@@ -27,0 +28,0 @@ togglePullRefresh: true,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc