!function(t){function e(e){for(var r,i,o=e[0],a=e[1],s=0,h=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&h.push(n[i][0]),n[i]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r]);for(u&&u(e);h.length;)h.shift()()}var r={},n={0:0};function i(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(){return Promise.resolve()},i.m=t,i.c=r,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i.oe=function(t){throw console.error(t),t};var o=window.webpackJsonp=window.webpackJsonp||[],a=o.push.bind(o);o.push=e,o=o.slice();for(var s=0;s<o.length;s++)e(o[s]);var u=a;i(i.s=322)}([function(t,e,r){t.exports=r(45)},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,u,"next",t)}function u(t){n(a,i,o,s,u,"throw",t)}s(void 0)}))}}r.d(e,"a",(function(){return i}))},function(t,e,r){"use strict";r.d(e,"f",(function(){return s})),r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"d",(function(){return u})),r.d(e,"c",(function(){return h}));var n=r(16);r.d(e,"e",(function(){return n}));var i,o,a=r(161),s={messages:[],USER_SETTINGS:{},collapse:!0,showExamQueryButton:!1};i="http://47.97.90.127/api/unipus",o=!1;var u=a.a,h=3e3},function(t,e,r){"use strict";r.d(e,"f",(function(){return h})),r.d(e,"j",(function(){return f})),r.d(e,"g",(function(){return l})),r.d(e,"h",(function(){return d})),r.d(e,"i",(function(){return p})),r.d(e,"e",(function(){return g})),r.d(e,"c",(function(){return y})),r.d(e,"a",(function(){return w})),r.d(e,"b",(function(){return A})),r.d(e,"d",(function(){return _}));var n=r(0),i=r.n(n),o=(r(8),r(2)),a=r(16),s=r(51),u=r(22),h=new s.a("client","inject","content");function f(t){return new Promise((function(e){return setTimeout(e,t)}))}function c(t,e){return parseInt(window.getComputedStyle(t)[e],10)}function l(t,e){var r,n,i,o,a,s,u,h,f=!1;t.addEventListener("mousedown",(function(l){t.style.cursor="grabbing",f=!0,r=l.clientX,n=l.clientY,i=c(e,"left"),o=c(e,"top"),a=c(e,"width"),s=c(e,"height"),u=window.innerWidth,h=window.innerHeight}),!1),document.addEventListener("mousemove",(function(t){if(!0===f){var c=t.clientX,l=t.clientY,d=i+(c-r),p=o+(l-n);d<=0&&(d=0),p<=0&&(p=0),d>=u-a&&(d=u-a),p>=h-s&&(p=h-s),e.style.left=d+"px",e.style.top=p+"px"}})),t.addEventListener("mouseup",(function(){t.style.cursor="grab",f=!1,i=c(e,"left"),o=c(e,"top")}),!1),document.body.addEventListener("keydown",(function(r){"Escape"===r.key&&(t.style.cursor="grab",f=!1,i=c(e,"left"),o=c(e,"top"))}),!1)}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"请求异常,稍后再试",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(r,n,i){var o=i.value;return i.value=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var s=o.apply(this,n);return s.catch((function(r){Object(a.addMessage)("".concat(e?r:t),"error")})),s},i}}function p(t,e){return m.apply(this,arguments)}function m(){return(m=Object(o.a)(i.a.mark((function t(e,r){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=4,h.request({type:"setValue",key:e,value:r});case 4:t.next=7;break;case 6:GM_setValue(e,JSON.stringify(r));case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function g(t,e){return v.apply(this,arguments)}function v(){return(v=Object(o.a)(i.a.mark((function t(e,r){var n,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=4,h.request({type:"getValue",key:e,defaultValue:r});case 4:n=t.sent,console.error(n),t.next=10;break;case 8:o=GM_getValue(e,r);try{n=JSON.parse(o)}catch(t){n=o}case 10:return t.abrupt("return",n);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function y(t){return b.apply(this,arguments)}function b(){return(b=Object(o.a)(i.a.mark((function t(e){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,navigator.clipboard.writeText(e.replace(/^.*、/,""));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(){return M.apply(this,arguments)}function M(){return(M=Object(o.a)(i.a.mark((function t(){var e,r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.a.getOpenId();case 2:return e=t.sent,t.next=5,g("openIdStatus",{});case 5:if(!(r=t.sent)[e]){t.next=10;break}return t.abrupt("return",!0);case 10:return t.next=12,u.a.isExistUser();case 12:if(!(n=t.sent).status){t.next=20;break}return r[e]=!0,t.next=17,p("openIdStatus",r);case 17:return t.abrupt("return",!0);case 20:return Object(a.clearMessage)(),Object(a.addMessage)("".concat(n.message),"info"),t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t,e){return Array.from(t).reduce((function(t,r){var n=t.slice(-1)[0],i=null==n?void 0:n.length;return 0===t.length||i%e==0?t.push([r]):i%e<e&&n.push(r),t}),[])}function _(t,e){var r=t.toString();if(!(e<1||e>r.length)){var n=r.split("").reverse().join("");return parseInt(n.charAt(e-1),10)}}},function(t,e,r){var n=r(9),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){(function(e){var n;t.exports=(n=n||function(t,n){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==e&&e.crypto&&(i=e.crypto),!i)try{i=r(198)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),s={},u=s.lib={},h=u.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.app
评论0