yc-ui2 0.1.2-beta18 → 0.1.2-beta20

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["yc-ui2"]=t():e["yc-ui2"]=t()})("undefined"!==typeof self?self:this,(function(){return function(){var __webpack_modules__={9662:function(e,t,r){"use strict";var n=r(614),a=r(6330),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not a function")}},9670:function(e,t,r){"use strict";var n=r(111),a=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not an object")}},1318:function(e,t,r){"use strict";var n=r(5656),a=r(1400),i=r(6244),s=function(e){return function(t,r,s){var o,c=n(t),u=i(c),l=a(s,u);if(e&&r!==r){while(u>l)if(o=c[l++],o!==o)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},3658:function(e,t,r){"use strict";var n=r(9781),a=r(3157),i=TypeError,s=Object.getOwnPropertyDescriptor,o=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(a(e)&&!s(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,r){"use strict";var n=r(1702),a=n({}.toString),i=n("".slice);e.exports=function(e){return i(a(e),8,-1)}},9920:function(e,t,r){"use strict";var n=r(2597),a=r(3887),i=r(1236),s=r(3070);e.exports=function(e,t,r){for(var o=a(t),c=s.f,u=i.f,l=0;l<o.length;l++){var m=o[l];n(e,m)||r&&n(r,m)||c(e,m,u(t,m))}}},8880:function(e,t,r){"use strict";var n=r(9781),a=r(3070),i=r(9114);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},9114:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,r){"use strict";var n=r(614),a=r(3070),i=r(6339),s=r(3072);e.exports=function(e,t,r,o){o||(o={});var c=o.enumerable,u=void 0!==o.name?o.name:t;if(n(r)&&i(r,u,o),o.global)c?e[t]=r:s(t,r);else{try{o.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=r:a.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},3072:function(e,t,r){"use strict";var n=r(7854),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},9781:function(e,t,r){"use strict";var n=r(7293);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){"use strict";var t="object"==typeof document&&document.all,r="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},317:function(e,t,r){"use strict";var n=r(7854),a=r(111),i=n.document,s=a(i)&&a(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},7207:function(e){"use strict";var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw t("Maximum allowed index exceeded");return e}},8113:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,r){"use strict";var n,a,i=r(7854),s=r(8113),o=i.process,c=i.Deno,u=o&&o.versions||c&&c.version,l=u&&u.v8;l&&(n=l.split("."),a=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(a=+n[1]))),e.exports=a},748:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,r){"use strict";var n=r(7854),a=r(1236).f,i=r(8880),s=r(8052),o=r(3072),c=r(9920),u=r(4705);e.exports=function(e,t){var r,l,m,f,S,d,_=e.target,p=e.global,y=e.stat;if(l=p?n:y?n[_]||o(_,{}):(n[_]||{}).prototype,l)for(m in t){if(S=t[m],e.dontCallGetSet?(d=a(l,m),f=d&&d.value):f=l[m],r=u(p?m:_+(y?".":"#")+m,e.forced),!r&&void 0!==f){if(typeof S==typeof f)continue;c(S,f)}(e.sham||f&&f.sham)&&i(S,"sham",!0),s(l,m,S,e)}}},7293:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,r){"use strict";var n=r(7293);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,r){"use strict";var n=r(4374),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},6530:function(e,t,r){"use strict";var n=r(9781),a=r(2597),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=a(i,"name"),c=o&&"something"===function(){}.name,u=o&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:o,PROPER:c,CONFIGURABLE:u}},1702:function(e,t,r){"use strict";var n=r(4374),a=Function.prototype,i=a.call,s=n&&a.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},5005:function(e,t,r){"use strict";var n=r(7854),a=r(614),i=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},8173:function(e,t,r){"use strict";var n=r(9662),a=r(8554);e.exports=function(e,t){var r=e[t];return a(r)?void 0:n(r)}},7854:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},2597:function(e,t,r){"use strict";var n=r(1702),a=r(7908),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},3501:function(e){"use strict";e.exports={}},4664:function(e,t,r){"use strict";var n=r(9781),a=r(7293),i=r(317);e.exports=!n&&!a((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,r){"use strict";var n=r(1702),a=r(7293),i=r(4326),s=Object,o=n("".split);e.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?o(e,""):s(e)}:s},2788:function(e,t,r){"use strict";var n=r(1702),a=r(614),i=r(5465),s=n(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},9909:function(e,t,r){"use strict";var n,a,i,s=r(4811),o=r(7854),c=r(111),u=r(8880),l=r(2597),m=r(5465),f=r(6200),S=r(3501),d="Object already initialized",_=o.TypeError,p=o.WeakMap,y=function(e){return i(e)?a(e):n(e,{})},h=function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return r}};if(s||m.state){var v=m.state||(m.state=new p);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new _(d);return t.facade=e,v.set(e,t),t},a=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var x=f("state");S[x]=!0,n=function(e,t){if(l(e,x))throw new _(d);return t.facade=e,u(e,x,t),t},a=function(e){return l(e,x)?e[x]:{}},i=function(e){return l(e,x)}}e.exports={set:n,get:a,has:i,enforce:y,getterFor:h}},3157:function(e,t,r){"use strict";var n=r(4326);e.exports=Array.isArray||function(e){return"Array"===n(e)}},614:function(e,t,r){"use strict";var n=r(4154),a=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===a}:function(e){return"function"==typeof e}},4705:function(e,t,r){"use strict";var n=r(7293),a=r(614),i=/#|\.prototype\./,s=function(e,t){var r=c[o(e)];return r===l||r!==u&&(a(t)?n(t):!!t)},o=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},8554:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},111:function(e,t,r){"use strict";var n=r(614),a=r(4154),i=a.all;e.exports=a.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},1913:function(e){"use strict";e.exports=!1},2190:function(e,t,r){"use strict";var n=r(5005),a=r(614),i=r(7976),s=r(3307),o=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&i(t.prototype,o(e))}},6244:function(e,t,r){"use strict";var n=r(7466);e.exports=function(e){return n(e.length)}},6339:function(e,t,r){"use strict";var n=r(1702),a=r(7293),i=r(614),s=r(2597),o=r(9781),c=r(6530).CONFIGURABLE,u=r(2788),l=r(9909),m=l.enforce,f=l.get,S=String,d=Object.defineProperty,_=n("".slice),p=n("".replace),y=n([].join),h=o&&!a((function(){return 8!==d((function(){}),"length",{value:8}).length})),v=String(String).split("String"),x=e.exports=function(e,t,r){"Symbol("===_(S(t),0,7)&&(t="["+p(S(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),h&&r&&s(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var n=m(e);return s(n,"source")||(n.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return i(this)&&f(this).source||u(this)}),"toString")},4758:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},3070:function(e,t,r){"use strict";var n=r(9781),a=r(4664),i=r(3353),s=r(9670),o=r(4948),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m="enumerable",f="configurable",S="writable";t.f=n?i?function(e,t,r){if(s(e),t=o(t),s(r),"function"===typeof e&&"prototype"===t&&"value"in r&&S in r&&!r[S]){var n=l(e,t);n&&n[S]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:m in r?r[m]:n[m],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(s(e),t=o(t),s(r),a)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1236:function(e,t,r){"use strict";var n=r(9781),a=r(6916),i=r(5296),s=r(9114),o=r(5656),c=r(4948),u=r(2597),l=r(4664),m=Object.getOwnPropertyDescriptor;t.f=n?m:function(e,t){if(e=o(e),t=c(t),l)try{return m(e,t)}catch(r){}if(u(e,t))return s(!a(i.f,e,t),e[t])}},8006:function(e,t,r){"use strict";var n=r(6324),a=r(748),i=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},5181:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},7976:function(e,t,r){"use strict";var n=r(1702);e.exports=n({}.isPrototypeOf)},6324:function(e,t,r){"use strict";var n=r(1702),a=r(2597),i=r(5656),s=r(1318).indexOf,o=r(3501),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!a(o,r)&&a(n,r)&&c(l,r);while(t.length>u)a(n,r=t[u++])&&(~s(l,r)||c(l,r));return l}},5296:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},2140:function(e,t,r){"use strict";var n=r(6916),a=r(614),i=r(111),s=TypeError;e.exports=function(e,t){var r,o;if("string"===t&&a(r=e.toString)&&!i(o=n(r,e)))return o;if(a(r=e.valueOf)&&!i(o=n(r,e)))return o;if("string"!==t&&a(r=e.toString)&&!i(o=n(r,e)))return o;throw new s("Can't convert object to primitive value")}},3887:function(e,t,r){"use strict";var n=r(5005),a=r(1702),i=r(8006),s=r(5181),o=r(9670),c=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(o(e)),r=s.f;return r?c(t,r(e)):t}},4488:function(e,t,r){"use strict";var n=r(8554),a=TypeError;e.exports=function(e){if(n(e))throw new a("Can't call method on "+e);return e}},6200:function(e,t,r){"use strict";var n=r(2309),a=r(9711),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},5465:function(e,t,r){"use strict";var n=r(7854),a=r(3072),i="__core-js_shared__",s=n[i]||a(i,{});e.exports=s},2309:function(e,t,r){"use strict";var n=r(1913),a=r(5465);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,r){"use strict";var n=r(7392),a=r(7293),i=r(7854),s=i.String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:function(e,t,r){"use strict";var n=r(9303),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},5656:function(e,t,r){"use strict";var n=r(8361),a=r(4488);e.exports=function(e){return n(a(e))}},9303:function(e,t,r){"use strict";var n=r(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},7466:function(e,t,r){"use strict";var n=r(9303),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},7908:function(e,t,r){"use strict";var n=r(4488),a=Object;e.exports=function(e){return a(n(e))}},7593:function(e,t,r){"use strict";var n=r(6916),a=r(111),i=r(2190),s=r(8173),o=r(2140),c=r(5112),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!a(e)||i(e))return e;var r,c=s(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!a(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},4948:function(e,t,r){"use strict";var n=r(7593),a=r(2190);e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},6330:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},9711:function(e,t,r){"use strict";var n=r(1702),a=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++a+i,36)}},3307:function(e,t,r){"use strict";var n=r(6293);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,r){"use strict";var n=r(9781),a=r(7293);e.exports=n&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,r){"use strict";var n=r(7854),a=r(614),i=n.WeakMap;e.exports=a(i)&&/native code/.test(String(i))},5112:function(e,t,r){"use strict";var n=r(7854),a=r(2309),i=r(2597),s=r(9711),o=r(6293),c=r(3307),u=n.Symbol,l=a("wks"),m=c?u["for"]||u:u&&u.withoutSetter||s;e.exports=function(e){return i(l,e)||(l[e]=o&&i(u,e)?u[e]:m("Symbol."+e)),l[e]}},7658:function(e,t,r){"use strict";var n=r(2109),a=r(7908),i=r(6244),s=r(3658),o=r(7207),c=r(7293),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},m=u||!l();n({target:"Array",proto:!0,arity:1,forced:m},{push:function(e){var t=a(this),r=i(t),n=arguments.length;o(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return s(t,r),r}})},8649:function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){__webpack_require__(7658),function(){"undefined"===typeof xtxasyn&&(xtxasyn={})}(),function(){function e(){this.map={}}e.prototype={put:function(e,t){this.map[e]=t},get:function(e){return this.map.hasOwnProperty(e)?this.map[e]:null},remove:function(e){return!!this.map.hasOwnProperty(e)&&delete this.map[e]},removeAll:function(){this.map={}},keySet:function(){var e=[];for(var t in this.map)e.push(t);return e}},e.prototype.constructor=e,xtxasyn.HashMap=e}(),function(){function initUtilObject(xtxasyn){var util=xtxasyn.util=xtxasyn.util||{};util.checkBrowserISIE=function(){return!(!window.ActiveXObject&&!("ActiveXObject"in window))},util.checkLocationIsHttps=function(){return"https:"==document.location.protocol},util.evalFunction=function(func){return"function"===typeof func?func:"string"!==typeof func?null:void(cb=eval(func))},util.consolelog=function(e){void 0!=window.console&&void 0!=window.console.log&&console.log(e)},util.isEmpty=function(e){return!e||"string"==typeof e&&""==e},util.loadIECtl=function(clsid,ctlName,checkFunc){if(!util.checkBrowserISIE())return null;var ctl=document.getElementById(ctlName);if(ctl)return ctl;try{var loadObjString='<object id="'+ctlName+'" classid="CLSID:'+clsid+'" style="HEIGHT:0px; WIDTH:0px">';if(loadObjString+="</object>",document.write(loadObjString),null!=checkFunc&&""!=checkFunc&&void 0==eval(ctlName+"."+checkFunc))return null}catch(e){return util.consolelog(e),null}return document.getElementById(ctlName)},util.getAutoExecFunctionString=function(e){var t="(";return t+=e.toString(),t+=")()",t},util.attachIEEvent=function(ctlName,eventName,eventFunc){var ctl;ctl="string"===typeof ctlName?eval(ctlName):ctlName,eventName=eventName.toLowerCase();var cb=util.evalFunction(eventFunc);if(null!=cb)if(ctl.attachEvent)ctl.attachEvent(eventName,cb);else{var handler=document.createElement("script");handler.setAttribute("for",ctlName),handler.setAttribute("event",eventName);var eventScript=util.getAutoExecFunctionString(eventFunc);handler.appendChild(document.createTextNode(eventScript)),document.getElementsByTagName("head")[0].appendChild(handler)}},util.loadWebSocketCtl=function(e,t){if(xtxasyn.wsObject)return xtxasyn.wsObject;var r;r=util.checkLocationIsHttps()?"wss://"+t:"ws://"+e;var n={socket:void 0,wsMessageQueue:new xtxasyn.HashMap,wsMessageQueueId:0,wsEventQueue:new xtxasyn.HashMap,wsURL:r,wsCacheMessage:[]};xtxasyn.wsObject=n,xtxasyn.wsObject.wsEventQueue.put("onusbkeychange",util.evalFunction(xtxasyn.custom.defaultUsbkeyChange));try{n.socket=new WebSocket(r)}catch(a){return util.consolelog(a),null}return n.socket.onopen=function(e){xtxasyn.util.consolelog("open websocket["+r+"] ok..."),xtxasyn.SOF_GetVersion((function(e){util.consolelog("SOF_GetVersion:("+e.retVal+")")}));while(xtxasyn.wsObject.wsCacheMessage.length>0){var t=xtxasyn.wsObject.wsCacheMessage.shift();xtxasyn.wsObject.socket.send(t)}},n.socket.onclose=function(n){util.consolelog("websocket["+r+"] closed, reopen it..."),xtxasyn.wsObject=void 0,xtxasyn.XTXAppWebSocket=xtxasyn.util.loadWebSocketCtl(e,t)},n.socket.onmessage=function(e){if(xtxasyn.util.isEmpty(e.data))util.consolelog("onmessage evt.data is NULL or empty!!!");else try{var t=JSON.parse(e.data),r=void 0;if(!t.hasOwnProperty("call_cmd_id"))return void util.consolelog("return JSON not include call_cmd_id!!!");r=t["call_cmd_id"];var n=void 0;t.hasOwnProperty("retValue")?n=t["retValue"]:t.hasOwnProperty("retVal")&&(n=t["retVal"]);var i=void 0,s=r.toLowerCase(),o=xtxasyn.wsObject.wsEventQueue.get(s);if(o&&"function"==typeof o)o(n);else{var c=xtxasyn.wsObject.wsMessageQueue.get(r);if(!c||!c.method)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s method name!!!");if(i=c.method,o=c.cb,!o||"function"!=typeof o)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s call back function!!!");var u,l=c.ctx;l=l||{returnType:"string"},"bool"==l.returnType?(u="string"==typeof n?"true"==n:n,void 0==u&&(u=!1)):"number"==l.returnType?(u="string"==typeof n?Number(n):n,void 0==u&&(u=-1)):(u=n,void 0==u&&(u="")),t.token&&xtxasyn.custom.setToken(t.token),(("SOF_Login"==i||"SOF_LoginEx"==i)&&!u||"SOF_Logout"==i&&u)&&xtxasyn.custom.setToken("");var m={retVal:u,ctx:l};o(m),xtxasyn.wsObject.wsMessageQueue.remove(r)}}catch(a){return}},n.socket.onerror=function(e){xtxasyn.util.consolelog(e.data)},n},util.attachWebSocketEvent=function(e,t,r){null!=e&&e.wsEventQueue.put(t.toLowerCase(),util.evalFunction(r))},util.callWebSocketMethod=function(e,t,r,n,a,i,s){if(null!=e){if(e.wsMessageQueueId++,"function"==typeof n){a=a||{},a.returnType=i;var o={cb:n,ctx:a,method:r};e.wsMessageQueue.put("i_"+e.wsMessageQueueId,o)}var c={call_cmd_id:"i_"+e.wsMessageQueueId,CLSID:t,xtx_func_name:r,func:r,URL:window.location.href};if(arguments.length>6){for(var u=1;u<=s.length;u++){var l="param_"+u;c[l]=s[u-1]}c["param"]=s}var m=xtxasyn.custom.getToken();m&&""!=m&&(c.token=m),e.socket.readyState==WebSocket.OPEN?e.socket.send(JSON.stringify(c)):e.socket.readyState==WebSocket.CONNECTING?e.wsCacheMessage.push(JSON.stringify(c)):xtxasyn.util.consolelog("Can't connect to WebSocket server["+e.wsURL+"]!!!")}},util.SynToAsyn=function(e,t,r){if("function"==typeof t){var n={retVal:e,ctx:r};t(n)}}}initUtilObject(xtxasyn)}(),function(){function initCustomActions(xtxasyn){var custom=xtxasyn.custom=xtxasyn.custom||{};custom.softCertListID="",custom.hardCertListID="",custom.allCertListID="",custom.loginCertID="",custom.logoutFunc=null,custom.UsbkeyChangeFunc=null,custom.loginToken="",custom.errorReportFunc=function(e){alert(e)},custom.setAutoLogoutParameter=function(e,t){var r=xtxasyn.custom;r.loginCertID=e,r.logoutFunc=t},custom.clearDropList=function(dropListId){if(""!=dropListId){var obj=document.getElementById(dropListId);if(void 0==obj&&(obj=eval(dropListId)),void 0!=obj){var i,n=obj.length;for(i=0;i<n;i++)obj.remove(0)}}},custom.pushOneDropListBox=function(userListArray,strListID){var obj=document.getElementById(strListID);if(void 0==obj&&(obj=eval(strListID)),void 0!=obj)for(var i=0;i<userListArray.length;i++){var certObj=userListArray[i],objItem=new Option(certObj.certName,certObj.certID);obj.options.add(objItem)}},custom.pushUserListToAllDroplist=function(e){var t=xtxasyn.custom;t.clearDropList(t.softCertListID),t.clearDropList(t.hardCertListID),t.clearDropList(t.allCertListID);var r=e.retVal,n=[];while(1){var a=r.indexOf("&&&");if(a<=0)break;var i=r.substring(0,a),s=i.substring(0,i.indexOf("||")),o=i.substring(i.indexOf("||")+2,i.length);n.push({certName:s,certID:o}),""!=t.hardCertListID&&xtxasyn.GetDeviceInfo(o,7,(function(e){"HARD"==e.retVal&&t.pushOneDropListBox([e.ctx],t.hardCertListID)}),{certName:s,certID:o}),""!=t.softCertListID&&xtxasyn.GetDeviceInfo(o,7,(function(e){"SOFT"==e.retVal&&t.pushOneDropListBox([e.ctx],t.softCertListID)}),{certName:s,certID:o});var c=r.length;r=r.substring(a+3,c)}""!=t.allCertListID&&t.pushOneDropListBox(n,t.allCertListID)},custom.setUserCertList=function(e,t){var r=xtxasyn.custom;t!=CERT_TYPE_ALL&&void 0!=t||(r.allCertListID=e),t==CERT_TYPE_HARD&&(r.hardCertListID=e),t==CERT_TYPE_SOFT&&(r.softCertListID=e),xtxasyn.SOF_GetUserList(r.pushUserListToAllDroplist)},custom.setOnUsbKeyChangeCallBack=function(e){var t=xtxasyn.custom;t.UsbkeyChangeFunc=e},custom.setErrorReportFunc=function(e){var t=xtxasyn.custom;t.errorReportFunc=e},custom.autoLogoutCallBack=function(e){var t=xtxasyn.custom;e.retVal.indexOf(t.loginCertID)<=0&&t.logoutFunc()},custom.defaultUsbkeyChange=function(){var e=xtxasyn.custom;xtxasyn.SOF_GetUserList(e.pushUserListToAllDroplist),"function"==typeof e.UsbkeyChangeFunc&&e.UsbkeyChangeFunc(),""!=e.loginCertID&&"function"==typeof e.logoutFunc&&xtxasyn.SOF_GetUserList(e.autoLogoutCallBack)},custom.getToken=function(){return custom.loginToken},custom.setToken=function(e){custom.loginToken=e}}initCustomActions(xtxasyn)}(),function(){function e(e){var t=e.util,r=e.custom;if(e.XTXAppCOM=t.loadIECtl(e.xtx_clsid,"XTXAppObj","SOF_GetVersion()"),null==e.XTXAppCOM)return r.errorReportFunc("加载XTXAppCOM控件失败,请确认已正确安装BJCA证书应用环境!"),!1;var n=e.XTXAppCOM;t.attachIEEvent("XTXAppObj","onUsbkeyChange",e.custom.defaultUsbkeyChange);var a=t.loadIECtl(e.getpic_clsid,"GetPicObj","Hash('0')");null==a||(n.GetPic=function(e){return a.GetPic(e)},n.Hash=function(e){return a.Hash(e)},n.ConvertPicFormat=function(e,t){return a.ConvertPicFormat(e,t)},n.ConvertGif2Jpg=function(e){return a.ConvertGif2Jpg(e)},n.GetPic1=function(e){return a.GetPic1(e)},n.ConvertPicSize=function(e,t,r){return a.ConvertPicSize(e,t,r)});var i=t.loadIECtl(e.xtx_version_clsid,"XTXVersionOBJ","GetEnvVersion()");return null==i||(n.GetEnvVersion=function(){return i.GetEnvVersion()}),!0}function t(e){return e.XTXAppWebSocket=e.util.loadWebSocketCtl("127.0.0.1:21051/xtxapp/","127.0.0.1:21061/xtxapp/"),null!=e.XTXAppWebSocket||(custom.errorReportFunc("连接XTXAppCOM服务失败,请确认已正确安装BJCA证书应用环境!"),!1)}function r(r){var n,a=r.util;if(r.xtx_clsid="3F367B74-92D9-4C5E-AB93-234F8A91D5E6",r.getpic_clsid="3BC3C868-95B5-47ED-8686-E0E3E94EF366",r.xtx_version_clsid="574887FB-22A5-488B-A49C-2CF25F56BE68",a.checkBrowserISIE()){if(!e(r))return!1;n=function(e){""==e.inParams?window[e.funcName]=new Function("cb","ctx","xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM."+e.funcName+"(), cb, ctx);"):window[e.funcName]=new Function(e.inParams,"cb","ctx","xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM."+e.funcName+"("+e.inParams+"), cb, ctx);")}}else{if(!t(r))return!1;n=function(e){""==e.inParams?window[e.funcName]=new Function("cb, ctx","xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '"+e.clsid+"', '"+e.funcName+"', cb, ctx, '"+e.outParamType+"', []);"):window[e.funcName]=new Function(e.inParams+", cb, ctx","xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '"+e.clsid+"', '"+e.funcName+"', cb, ctx, '"+e.outParamType+"', ["+e.inParams+"]);")}}for(var i=[{funcName:"SOF_SetSignMethod",inParams:"SignMethod",outParamType:"number",clsid:r.xtx_clsid,aliasName:"SetSignMethod"},{funcName:"SOF_GetSignMethod",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_SetEncryptMethod",inParams:"EncryptMethod",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetEncryptMethod",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetUserList",inParams:"",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetUserList"},{funcName:"SOF_ExportUserCert",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetSignCert"},{funcName:"SOF_Login",inParams:"CertID, PassWd",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifyUserPIN"},{funcName:"SOF_GetPinRetryCount",inParams:"CertID",outParamType:"number",clsid:r.xtx_clsid,aliasName:"GetUserPINRetryCount"},{funcName:"SOF_ChangePassWd",inParams:"CertID, oldPass, newPass",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"ChangeUserPassword"},{funcName:"SOF_GetCertInfo",inParams:"Cert, type",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetCertBasicinfo"},{funcName:"SOF_GetCertInfoByOid",inParams:"Cert, Oid",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetExtCertInfoByOID"},{funcName:"SOF_SignData",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SignedData"},{funcName:"SOF_VerifySignedData",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignedData"},{funcName:"SOF_SignFile",inParams:"CertID, InFile",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SOF_SignFile"},{funcName:"SOF_VerifySignedFile",inParams:"Cert, InFile, SignValue",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignFile"},{funcName:"SOF_EncryptData",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"EncodeP7Enveloped"},{funcName:"SOF_DecryptData",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"DecodeP7Enveloped"},{funcName:"SOF_EncryptFile",inParams:"Cert, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_DecryptFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignMessage",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedMessage",inParams:"MessageData, InData",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifyDatabyP7"},{funcName:"SOF_GetInfoFromSignedMessage",inParams:"SignedMessage, type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignDataXML",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataXML",inParams:"InData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetXMLSignatureInfo",inParams:"XMLSignedData, type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GenRandom",inParams:"RandomLen",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GenerateRandom"},{funcName:"SOF_PubKeyEncrypt",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"PubKeyEncrypt"},{funcName:"SOF_PriKeyDecrypt",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"PriKeyDecrypt"},{funcName:"SOF_SecertSegment",inParams:"Secert, m, n, k",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SecertRecovery",inParams:"Seg",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetLastError",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetDeviceCount",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetAllDeviceSN",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceSNByIndex",inParams:"iIndex",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceInfo",inParams:"sDeviceSN, iType",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ChangeAdminPass",inParams:"sDeviceSN, sOldPass, sNewPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"UnlockUserPass",inParams:"sDeviceSN, sAdminPass, sNewUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyType, bSign",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportSignCert",inParams:"sDeviceSN, sContainerName, sCert",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ImportEncCert",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ReadFile",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:r.xtx_clsid,aliasName:"readFile"},{funcName:"WriteFile",inParams:"sDeviceSN, sFileName, sContent, bPrivate",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"writeFile"},{funcName:"IsContainerExist",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteContainer",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ExportPKCS10",inParams:"sDeviceSN, sContainerName, sDN, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"InitDevice",inParams:"sDeviceSN, sAdminPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"AddSignInfo",inParams:"sUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetVersion",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ExportExChangeUserCert",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetExchCert"},{funcName:"SOF_ValidateCert",inParams:"Cert",outParamType:"number",clsid:r.xtx_clsid,aliasName:"ValidateCert"},{funcName:"GetENVSN",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SetENVSN",inParams:"sDeviceSN, sEnvsn",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"IsDeviceExist",inParams:"sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GetContainerCount",inParams:"sDeviceSN",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptData",inParams:"sKey, indata",outParamType:"string",clsid:r.xtx_clsid,aliasName:"EncryptData"},{funcName:"SOF_SymDecryptData",inParams:"sKey, indata",outParamType:"string",clsid:r.xtx_clsid,aliasName:"DecryptData"},{funcName:"SOF_SymEncryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"EncryptFile"},{funcName:"SOF_SymDecryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"DecryptFile"},{funcName:"SOF_GetLastErrMsg",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_Base64Encode",inParams:"sIndata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_Base64Decode",inParams:"sIndata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashData",inParams:"hashAlg, sInData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashFile",inParams:"hashAlg, inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"UnlockUserPassEx",inParams:"sDeviceSN, sAdminPin, sNewUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteOldContainer",inParams:"sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"WriteFileEx",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ReadFileEx",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:r.xtx_clsid},{funcName:"WriteFileBase64",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteFile",inParams:"sDeviceSN, sFileName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_EncryptDataEx",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"Base64EncodeFile",inParams:"sInFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetRetryCount",inParams:"CertID",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetAllContainerName",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"CreateSoftDevice",inParams:"sDeviceSN, sLabel",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteSoftDevice",inParams:"sDeviceSN, sPasswd",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnableSoftDevice",inParams:"enable, sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SoftDeviceBackup",inParams:"sDeviceSN, sPasswd",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SoftDeviceRestore",inParams:"sDeviceSN, sPasswd, sInFilePath",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_Logout",inParams:"CertID",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"Logout"},{funcName:"SetUserConfig",inParams:"type, strConfig",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignByteData",inParams:"CertID, byteLen",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedByteData",inParams:"Cert, byteLen, SignValue",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"OTP_GetChallengeCode",inParams:"sCertID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportEncCertEx",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher, ulSymAlg",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetCertEntity",inParams:"sCert",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetCertEntity"},{funcName:"SOF_HMAC",inParams:"hashid, key, indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignDataByPriKey",inParams:"sPriKey, sCert, sInData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportKeyCertToSoftDevice",inParams:"sDeviceSN, sContainerName, sPriKey, sCert, bSign",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"InitDeviceEx",inParams:"sDeviceSN, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SelectFile",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignHashData",inParams:"CertID, b64ashData, hashAlg",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SignHashData"},{funcName:"SOF_VerifySignedHashData",inParams:"Cert, b64ashData, SignValue, hashAlg",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignedHashData"},{funcName:"CheckSoftDeviceEnv",inParams:"",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ImportPfxToDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfx, strPfxPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_HashDataEx",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashFileEx",inParams:"hashAlg, inFile, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceCountEx",inParams:"type",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetAllDeviceSNEx",inParams:"type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UpdateCert",inParams:"CertID, type",outParamType:"number",clsid:r.xtx_clsid},{funcName:"OpenSpecifiedFolder",inParams:"backupFilePath",outParamType:"",clsid:r.xtx_clsid},{funcName:"OTP_GetChallengeCodeEx",inParams:"sCertID, szAccount, money",outParamType:"string",clsid:r.xtx_clsid},{funcName:"Base64DecodeFile",inParams:"sInData, sFilePath",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumFilesInDevice",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_Halt",inParams:"sCertID",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGenREQ",inParams:"b64Hash, hashAlg, bReqCert, policyID, b64Nonce, b64Extension",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_TSCompareNonce",inParams:"b64TSReq, b64TSAResp",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGenPDFSignature",inParams:"b64TSAResp, b64OriPDFSignature",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_TSVerifyPDFSignature",inParams:"b64TSPDFSignature",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGetPDFSignatureInfo",inParams:"b64TSPDFSignature, iType",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_GetState",inParams:"sCertID, bCert",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_GetSyncCode",inParams:"sCertID, ChallengeCode",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_IsLogin",inParams:"CertID",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_LoginEx",inParams:"CertID, PassWd, updateFlag",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumSupportDeviceList",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ExportPfxFromDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignHashMessage",inParams:"CertID, InHashData, hashAlg",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ExportPfxToFile",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignAPK",inParams:"CertID, strOriSignature",outParamType:"string",clsid:r.xtx_clsid},{funcName:"YZT_GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyTypeRSA, iKeyTypeSM2",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"YZT_ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"YZT_ImportSignCert",inParams:"sDeviceSN, sContainerName, sRSACert, sSM2Cert",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"YZT_ImportEncCert",inParams:"sDeviceSN, sContainerName, sRSACert, sRSAPriKeyCipher, ulRSASymAlg, sSM2Cert, sSM2PriKeyCipher, ulSM2SymAlg",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_ListenUKey",inParams:"Parm",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EnableLoginWindow",inParams:"Parm",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignEnvelope",inParams:"CertID, Cert, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UnSignEnvelope",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_MAKExportPKCS10",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_MAKImportSignEncCert",inParams:"sDeviceSN, sSignCert, sEncCert, sPriKeyCipher",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_IssueDAKCert",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_InfoCollect",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_GetBioInfo",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetLastLoginCertID",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ReadKFXESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileToData",inParams:"sKey, inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignMessageBase64",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedMessageBase64",inParams:"MessageData, InData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedHashMessage",inParams:"MessageData, InHashData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignDataBase64",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataBase64",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_HashDataExBase64",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetProductVersion",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UpdateCertEx",inParams:"CertID, PassWd",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetLastSignDataCertID",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_SetUserConfig",inParams:"CertID, type, strConfig",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_InvokeCommand",inParams:"CertID, bstrCommand",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ImportSymmKey",inParams:"CertID, ulKeyIndex, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Encrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Decrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Mac",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_PriKeyDecryptEx",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumESeal",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetPicture",inParams:"bstrConName",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignEnvelopeFile",inParams:"CertID, Cert, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_UnSignEnvelopeFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_EncryptFile",inParams:"CertID, Cert, InFile, OutFile, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_DecryptFile",inParams:"CertID, InFile, OutFile, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GetPic",inParams:"bstrConName",outParamType:"string",clsid:r.getpic_clsid},{funcName:"Hash",inParams:"inData",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertPicFormat",inParams:"inData, type",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertGif2Jpg",inParams:"inData",outParamType:"string",clsid:r.getpic_clsid},{funcName:"GetPic1",inParams:"bstrConName",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertPicSize",inParams:"bstrPic, w, h",outParamType:"string",clsid:r.getpic_clsid},{funcName:"GetEnvVersion",inParams:"",outParamType:"string",clsid:r.xtx_version_clsid},{funcName:"InitDeviceWithParam",inParams:"sDeviceSN, sAppName, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry, createFileRights",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignDataEx",inParams:"CertID, InData,signFlag",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataEx",inParams:"Cert, InData, SignValue,signFlag",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_InvokeCommand",inParams:"pluginName,InParam",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileToDataEx",inParams:"sKey,sIV,inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymEncryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymDecryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymEncryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_SymDecryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_VerifySignedDataWithID",inParams:"Cert, InData, SignValue,userId",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_VerifySignedFileWithID",inParams:"Cert, InFile, SignValue,userId",outParamType:"bool",clsid:r.xtx_clsid}],s=0;s<i.length;s++)n(i[s]),r[i[s].funcName]=window[i[s].funcName],i[s].aliasName&&(window[i[s].aliasName]=window[i[s].funcName],r[i[s].aliasName]=window[i[s].funcName]);return!0}r(xtxasyn)}();var CERT_TYPE_HARD=1,CERT_TYPE_SOFT=2,CERT_TYPE_ALL=3;function SetAutoLogoutParameter(e,t){xtxasyn.custom.setAutoLogoutParameter(e,t)}function SetUserCertList(e,t){xtxasyn.custom.setUserCertList(e,t)}function SetOnUsbKeyChangeCallBack(e){xtxasyn.custom.setOnUsbKeyChangeCallBack(e)}function SetAlertFunction(e){xtxasyn.custom.setErrorReportFunc(e)}function GetLoginToken(){return xtxasyn.custom.getToken()}function SetLoginToken(e){return xtxasyn.custom.setToken(e)}function GetUserListByType(e,t,r){SOF_GetUserList((function(e){var t=e.retVal;while(1){var r=t.indexOf("&&&");if(r<=0)break;var n=t.substring(0,r),a=(n.substring(0,n.indexOf("||")),n.substring(n.indexOf("||")+2,n.length));GetDeviceType(a,(function(e){e.retVal==e.ctx.ctx.type&&"function"==typeof e.ctx.ctx.cb&&e.ctx.ctx.cb({retVal:e.ctx.userList,ctx:e.ctx.ctx.ctx})}),{userList:n,ctx:e.ctx});var i=t.length;t=t.substring(r+3,i)}}),{type:e,cb:t,ctx:r})}function GetUserList_USBKey(e,t){return GetUserListByType("HARD",e,t)}function GetUserList_Soft(){return GetUserListByType("SOFT",cb,ctx)}function SignByP7(e,t,r){return xtxasyn.SOF_SignMessage(r?1:0,e,t)}function GetSymKeyLength(){return 24}function GetDeviceType(e){return xtxasyn.GetDeviceInfo(e,7)}function HashFile(e){return xtxasyn.SOF_HashFile(2,e)}function ParseDateString(e){var t=e.substring(0,4),r=e.substring(4,6),n=e.substring(6,8),a=e.substring(8,10),i=e.substring(10,12),s=e.substring(12,14),o=new Date;return o.setFullYear(Number(t),Number(r)-1,Number(n)),o.setHours(Number(a)),o.setMinutes(Number(i)),o.setSeconds(Number(s)),o}function __loginSignRandomCallBack(e){if(""==e.retVal)return xtxasyn.custom.errorReportFunc("客户端签名失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var t=e.ctx.objForm;t.UserSignedData.value=e.retVal,t.LoginToken.value=xtxasyn.custom.getToken(),"function"===typeof e.ctx.cb?e.ctx.cb(!0):(t.action=e.ctx.action,t.submit())}function __loginVerifyServerSignatureCallBack(e){if(!e.retVal)return xtxasyn.custom.errorReportFunc("验证服务器端信息失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var t=e.ctx.certID;xtxasyn.SOF_SignData(t,strServerRan,__loginSignRandomCallBack,e.ctx)}function __loginCheckCertValidNotAfter(e){var t=ParseDateString(e.retVal),r=t.getTime()-(new Date).getTime();if(r<0)return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));if(days=parseInt(r/864e5),days>0&&days<=60)xtxasyn.custom.errorReportFunc("您的证书还有"+days+"天过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");else if(0==days){var n=parseInt(r/36e5);n>0&&xtxasyn.custom.errorReportFunc("您的证书还有"+n+"小时过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");var a=parseInt(r/6e4);if(!(a>1))return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));xtxasyn.custom.errorReportFunc("您的证书还有"+a+"分钟过期\n请您尽快到北京数字证书认证中心办理证书更新手续!")}xtxasyn.SOF_VerifySignedData(strServerCert,strServerRan,strServerSignedData,__loginVerifyServerSignatureCallBack,e.ctx)}function __loginCheckCertValidNotBefore(e){var t=ParseDateString(e.retVal),r=parseInt((t.getTime()-(new Date).getTime())/864e5);if(r>0)return xtxasyn.custom.errorReportFunc("您的证书尚未生效!距离生效日期还剩"+r+"天!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var n=e.ctx.objForm.UserCert.value;xtxasyn.SOF_GetCertInfo(n,12,__loginCheckCertValidNotAfter,e.ctx)}function __loginGetSignCertCallBack(e){var t=e.retVal;if(""==t)return xtxasyn.custom.errorReportFunc("导出用户证书失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));e.ctx.objForm.UserCert.value=t,xtxasyn.SOF_GetCertInfo(t,11,__loginCheckCertValidNotBefore,e.ctx)}function __loginGetPINRetryCallBack(e){var t=Number(e.retVal);t>0?xtxasyn.custom.errorReportFunc("校验证书密码失败!您还有"+t+"次机会重试!"):0==t?xtxasyn.custom.errorReportFunc("您的证书密码已被锁死,请联系BJCA进行解锁!"):xtxasyn.custom.errorReportFunc("登录失败!"),"function"===typeof e.ctx.cb&&e.ctx.cb()}function __loginVerifyPINCallBack(e){var t=e.ctx.certID,r=e.ctx.objForm;e.retVal?(r.CertID.value=t,r.ContainerName.value=t,xtxasyn.SOF_ExportUserCert(t,__loginGetSignCertCallBack,e.ctx)):xtxasyn.SOF_GetPinRetryCount(t,__loginGetPINRetryCallBack,e.ctx)}function Login(formName,strCertID,strPin,strAction,custom_cb){var objForm=eval(formName);if(null==objForm)return xtxasyn.custom.errorReportFunc("表单错误!"),void("function"===typeof custom_cb&&custom_cb(!1));if(null==strCertID||""==strCertID)return xtxasyn.custom.errorReportFunc("请输入证书密码!"),void("function"===typeof custom_cb&&custom_cb(!1));if(null==strPin||""==strPin)return xtxasyn.custom.errorReportFunc("请输入证书密码!"),void("function"===typeof custom_cb&&custom_cb(!1));null==objForm.UserSignedData&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="UserSignedData" value="">'),null==objForm.UserCert&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="UserCert" value="">'),null==objForm.CertID&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="CertID" value="">'),null==objForm.ContainerName&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="ContainerName" value="">'),null==objForm.LoginToken&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="LoginToken" value="">');var ctx={certID:strCertID,objForm:objForm,action:strAction,cb:custom_cb};xtxasyn.SOF_Login(strCertID,strPin,__loginVerifyPINCallBack,ctx)}},9481:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{R:function(){return mToken}});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7658),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),split;function mToken(e){this.obj=e,this.SAR_OK=0,this.SAR_FALSE=1,this.SGD_SM1_ECB=257,this.SGD_SM1_CBC=258,this.SGD_SM1_CFB=260,this.SGD_SM1_OFB=264,this.SGD_SM1_MAC=272,this.SGD_SSF33_ECB=513,this.SGD_SSF33_CBC=514,this.SGD_SSF33_CFB=516,this.SGD_SSF33_OFB=520,this.SGD_SSF33_MAC=528,this.SGD_SM4_ECB=1025,this.SGD_SM4_CBC=1026,this.SGD_SM4_CFB=1028,this.SGD_SM4_OFB=1032,this.SGD_SM4_MAC=1040,this.SGD_VENDOR_DEFINED=2147483648,this.SGD_DES_ECB=this.SGD_VENDOR_DEFINED+529,this.SGD_DES_CBC=this.SGD_VENDOR_DEFINED+530,this.SGD_3DES168_ECB=this.SGD_VENDOR_DEFINED+577,this.SGD_3DES168_CBC=this.SGD_VENDOR_DEFINED+578,this.SGD_3DES112_ECB=this.SGD_VENDOR_DEFINED+545,this.SGD_3DES112_CBC=this.SGD_VENDOR_DEFINED+546,this.SGD_AES128_ECB=this.SGD_VENDOR_DEFINED+273,this.SGD_AES128_CBC=this.SGD_VENDOR_DEFINED+274,this.SGD_AES192_ECB=this.SGD_VENDOR_DEFINED+289,this.SGD_AES192_CBC=this.SGD_VENDOR_DEFINED+290,this.SGD_AES256_ECB=this.SGD_VENDOR_DEFINED+321,this.SGD_AES256_CBC=this.SGD_VENDOR_DEFINED+322,this.SGD_RSA=65536,this.SGD_SM2_1=131328,this.SGD_SM2_2=131584,this.SGD_SM2_3=132096,this.SGD_SM3=1,this.SGD_SHA1=2,this.SGD_SHA256=4,this.SGD_RAW=128,this.SGD_MD5=129,this.SGD_SHA384=130,this.SGD_SHA512=131,this.SGD_CERT_VERSION=1,this.SGD_CERT_SERIAL=2,this.SGD_CERT_ISSUE=5,this.SGD_CERT_VALID_TIME=6,this.SGD_CERT_SUBJECT=7,this.SGD_CERT_DER_PUBLIC_KEY=8,this.SGD_CERT_DER_EXTENSIONS=9,this.SGD_CERT_NOT_BEFORE=16,this.SGD_CERT_ISSUER_CN=33,this.SGD_CERT_ISSUER_O=34,this.SGD_CERT_ISSUER_OU=35,this.SGD_CERT_ISSUER_C=36,this.SGD_CERT_ISSUER_P=37,this.SGD_CERT_ISSUER_L=38,this.SGD_CERT_ISSUER_S=39,this.SGD_CERT_ISSUER_EMAIL=40,this.SGD_CERT_SUBJECT_CN=49,this.SGD_CERT_SUBJECT_O=50,this.SGD_CERT_SUBJECT_OU=51,this.SGD_CERT_SUBJECT_EMALL=52,this.SGD_REMAIN_TIME=53,this.SGD_SIGNATURE_ALG=54,this.SGD_CERT_SUBJECT_C=55,this.SGD_CERT_SUBJECT_P=56,this.SGD_CERT_SUBJECT_L=57,this.SGD_CERT_SUBJECT_S=58,this.SGD_CERT_CRL=65,this.SGD_DEVICE_SORT=513,this.SGD_DEVICE_TYPE=514,this.SGD_DEVICE_NAME=515,this.SGD_DEVICE_MANUFACTURER=516,this.SGD_DEVICE_HARDWARE_VERSION=517,this.SGD_DEVICE_SOFTWARE_VERSION=518,this.SGD_DEVICE_STANDARD_VERSION=519,this.SGD_DEVICE_SERIAL_NUMBER=520,this.SGD_DEVICE_SUPPORT_SYM_ALG=521,this.SGD_DEVICE_SUPPORT_ASYM_ALG=522,this.SGD_DEVICE_SUPPORT_HASH_ALG=523,this.SGD_DEVICE_SUPPORT_STORANGE_SPACE=524,this.SGD_DEVICE_SUPPORT_FREE_SAPCE=525,this.SGD_DEVICE_RUNTIME=526,this.SGD_DEVICE_USED_TIMES=527,this.SGD_DEVICE_LOCATION=528,this.SGD_DEVICE_DESCRIPTION=529,this.SGD_DEVICE_MANAGER_INFO=530,this.SGD_DEVICE_MAX_DATA_SIZE=531,this.TRUE=1,this.FALSE=0,this.GM3000=1,this.K5=3,this.TF=4,this.HT=5,this.SJK1137=2,this.TYPE_UKEY=1,this.TYPE_FPKEY=2;var t=null;function r(){var e={versions:function(){var e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari")}}(),language:(navigator.browserLanguage||navigator.language).toLowerCase()};return!(!e.versions.mobile||!(e.versions.ios||e.versions.android||e.versions.iPhone||e.versions.iPad))}this.SOF_GetLastError=function(){return null==t?-1:t.SOF_GetLastError()},this.SOF_LoadLibrary=function(e){var n;if(os=check_os(),null==t&&(t=new mTokenPlugin),e==this.GM3000)n=r()?t.SOF_LoadLibrary("1","mToken OTG","com.longmai.security.plugin.driver.otg.OTGDriver"):t.SOF_LoadLibrary("mtoken_gm3000_hnca.dll","libgm3000.1.0.so","libgm3000.1.0.dylib");else if(e==this.SJK1137)n=t.SOF_LoadLibrary("SKF_APP.dll","libhunca_hsic_skf.so","libhunca_hsic_skf.dylib");else if(e==this.HT)n=t.SOF_LoadLibrary("HUNCA_HT_20522_SKF.dll","libhunca_ht_h2070f63_skf.so","libhunca_ht_h2070f63_skf.dylib");else if(e==this.K5)n=r()?t.SOF_LoadLibrary("2","mToken K5 Bluetooth","com.longmai.security.plugin.driver.ble.BLEDriver"):t.SOF_LoadLibrary("mtoken_k5.dll","libgm3000.1.0.so","libk5.1.0.dylib");else{if(e!=this.TF)return-1;n=r()?t.SOF_LoadLibrary("0","mToken TF/SD Card","com.longmai.security.plugin.driver.tf.TFDriver"):t.SOF_LoadLibrary("mtoken_tf.dll","libgm3000.1.0.so","libtf.dylib")}return 0!=n?-2:this.SAR_OK},this.SOF_EnumDevice=function(){if(null==t)return null;var e=t.SOF_EnumDevice();return null==e||e.length<=0?null:e.split("||")},this.SOF_GetVersion=function(){return null==t?null:t.SOF_GetVersion()},this.SOF_GetDeviceInstance=function(e,r){return null==t?-1:t.SOF_GetDeviceInstance(e,r)},this.SOF_ReleaseDeviceInstance=function(){return null==t?-1:t.SOF_ReleaseDeviceInstance()},this.SOF_GetUserList=function(){if(null==t)return null;var e=t.SOF_GetUserList();if(null==e||e.length<=0)return null;for(var r=new Array,n=e.split("&&&"),a=n.length,i=0;i<a;i++)r[i]=n[i].split("||");return r},this.SOF_ExportUserCert=function(e,r){return null==t?null:t.SOF_ExportUserCert(e,r)},this.SOF_GetDeviceInfo=function(e){return null==t?null:t.SOF_GetDeviceInfo(e)},this.SOF_GetCertInfo=function(e,r){return null==t?null:t.SOF_GetCertInfo(e,r)},this.SOF_GetCertInfoByOid=function(e,r){return null==t?null:t.SOF_GetCertInfoByOid(e,r)},this.SOF_Login=function(e){return null==t?-1:t.SOF_Login(e)},this.SOF_LogOut=function(){return null==t?-1:t.SOF_LogOut()},this.SOF_GetPinRetryCount=function(){return null==t?-1:t.SOF_GetPinRetryCount()},this.SOF_ChangePassWd=function(e,r){return null==t?-1:t.SOF_ChangePassWd(e,r)},this.SOF_SetDigestMethod=function(e){return null==t?-1:t.SOF_SetDigestMethod(e)},this.SOF_SetUserID=function(e){return null==t?-1:t.SOF_SetUserID(e)},this.SOF_SetEncryptMethodAndIV=function(e,r){return null==t?-1:t.SOF_SetEncryptMethodAndIV(e,r)},this.SOF_EncryptFileToPKCS7=function(e,r,n,a){return null==t?-1:t.SOF_EncryptFileToPKCS7(e,r,n,a)},this.SOF_SignFileToPKCS7=function(e,r,n){return null==t?-1:t.SOF_SignFileToPKCS7(e,r,n)},this.SOF_VerifyFileToPKCS7=function(e,r){return null==t?-1:t.SOF_VerifyFileToPKCS7(e,r)},this.SOF_DecryptFileToPKCS7=function(e,r,n,a,i,s){return null==t?-1:t.SOF_DecryptFileToPKCS7(e,r,n,a,i,s)},this.SOF_DigestData=function(e,r,n){return null==t?null:t.SOF_DigestData(e,r,n)},this.SOF_SignData=function(e,r,n,a){return null==t?null:t.SOF_SignData(e,r,n,a)},this.SOF_SignDataInteractive=function(e,r,n,a){return null==t?null:t.SOF_SignDataInteractive(e,r,n,a)},this.SOF_SignDataToPKCS7=function(e,r,n,a){return null==t?null:t.SOF_SignDataToPKCS7(e,r,n,a)},this.SOF_VerifyDataToPKCS7=function(e,r,n){return null==t?-1:t.SOF_VerifyDataToPKCS7(e,r,n)},this.SOF_VerifySignedData=function(e,r,n,a){return null==t?-1:t.SOF_VerifySignedData(e,r,n,a)},this.SOF_EncryptDataPKCS7=function(e,r,n){return null==t?null:t.SOF_EncryptDataPKCS7(e,r,n)},this.SOF_DecryptDataPKCS7=function(e,r,n){return null==t?null:t.SOF_DecryptDataPKCS7(e,r,n)},this.SOF_GenRemoteUnblockRequest=function(){return null==t?null:t.SOF_GenRemoteUnblockRequest()},this.SOF_GenResetpwdResponse=function(e,r,n){return null==t?null:t.SOF_GenResetpwdResponse(e,r,n)},this.SOF_RemoteUnblockPIN=function(e){return null==t?null:t.SOF_RemoteUnblockPIN(e)},this.SOF_SignDataToPKCS7=function(e,r,n,a){return null==t?null:t.SOF_SignDataToPKCS7(e,r,n,a)},this.SOF_VerifyDataToPKCS7=function(e,r,n){return null==t?null:t.SOF_VerifyDataToPKCS7(e,r,n)},this.SOF_ExportPubKey=function(e,r,n){return null==t?null:t.SOF_ExportPubKey(e,r,n)},this.SOF_EncryptByPubKey=function(e,r,n){return null==t?null:t.SOF_EncryptByPubKey(e,r,n)},this.SOF_DecryptByPrvKey=function(e,r,n){return null==t?null:t.SOF_DecryptByPrvKey(e,r,n)},this.SOF_GenerateP10Request=function(e,r,n,a,i,s){return null==t?null:t.SOF_GenerateP10Request(e,r,n,a,i,s)},this.SOF_EnumCertContiner=function(){return null==t?null:t.SOF_EnumCertContiner()},this.SOF_FindContainer=function(e){return null==t?null:t.SOF_FindContainer(e)},this.SOF_DeleteCert=function(e){return null==t?null:t.SOF_DeleteCert(e)},this.SOF_DeleteContainer=function(e){return null==t?null:t.SOF_DeleteContainer(e)},this.SOF_SignByCert=function(e,r){return null==t?null:t.SOF_SignByCert(e,r)},this.SOF_VerifyByCert=function(e,r,n){return null==t?null:t.SOF_VerifyByCert(e,r,n)},this.SOF_ImportCert=function(e,r,n){return null==t?null:t.SOF_ImportCert(e,r,n)},this.SOF_ImportCryptoCertAndKey=function(e,r,n,a,i,s,o){return null==t?null:t.SOF_ImportCryptoCertAndKey(e,r,n,a,i,s,o)},this.SOF_VerifyByExtCert=function(e,r,n,a){return null==t?null:t.SOF_VerifyByExtCert(e,r,n,a)},this.SOF_GenerateRandom=function(e){return null==t?null:t.SOF_GenerateRandom(e)},this.SOF_SymEncryptFile=function(e,r,n,a){return null==t?null:t.SOF_SymEncryptFile(e,r,n,a)},this.SOF_SymDecryptFile=function(e,r,n,a){return null==t?null:t.SOF_SymDecryptFile(e,r,n,a)},this.SOF_SymEncryptData=function(e,r){return null==t?null:t.SOF_SymEncryptData(e,r)},this.SOF_SymDecryptData=function(e,r){return null==t?null:t.SOF_SymDecryptData(e,r)},this.SOF_GenerateQRCode=function(e){return null==t?null:t.SOF_GenerateQRCode(e)},this.SOF_VerifyPinMS=function(e){return null==t?null:t.SOF_VerifyPinMS(e)},this.SOF_GetHardwareType=function(){return null==t?null:t.SOF_GetHardwareType()},this.SOF_VerifyFingerprint=function(){return null==t?null:t.SOF_VerifyFingerprint()},this.SOF_EnumFiles=function(){if(null==t)return null;var e=t.SOF_EnumFiles();return null==e||e.length<=0?null:e.split("||")},this.SOF_ReadFile=function(e,r,n){return null==t?null:t.SOF_ReadFile(e,Number(r),Number(n))},this.SOF_WriteFile=function(e,r,n){return null==t?null:t.SOF_WriteFile(e,r,n)},this.SOF_CreateFile=function(e,r,n,a){return null==t?null:t.SOF_CreateFile(e,r,n,a)},this.SOF_DeleteFile=function(e){return null==t?null:t.SOF_DeleteFile(e)}}function hasPlugin(e){e=e.toLowerCase();for(var t=0;t<navigator.plugins.length;t++)if(navigator.plugins[t].name.toLowerCase().indexOf(e)>-1)return!0;return!1}function check_os(){var e=-1!=navigator.userAgent.indexOf("Windows",0)?1:0,t=(navigator.userAgent.indexOf("mac",0),-1!=navigator.userAgent.indexOf("Linux",0)?1:0);navigator.userAgent.indexOf("X11",0);return e?"MS Windows":t&&"Lunix",hasPlugin("mPlugin1.0.0.1")?(linuxWin=2,"id_mPluginV2Router"):(linuxWin=1,"mTokenPlugin")}split=split||function(e){var t,r=String.prototype.split,n=/()??/.exec("")[1]===e;return t=function(t,a,i){if("[object RegExp]"!==Object.prototype.toString.call(a))return r.call(t,a,i);var s,o,c,u,l=[],m=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.extended?"x":"")+(a.sticky?"y":""),f=0;a=new RegExp(a.source,m+"g");t+="",n||(s=new RegExp("^"+a.source+"$(?!\\s)",m)),i=i===e?-1>>>0:i>>>0;while(o=a.exec(t)){if(c=o.index+o[0].length,c>f&&(l.push(t.slice(f,o.index)),!n&&o.length>1&&o[0].replace(s,(function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(o[t]=e)})),o.length>1&&o.index<t.length&&Array.prototype.push.apply(l,o.slice(1)),u=o[0].length,f=c,l.length>=i))break;a.lastIndex===o.index&&a.lastIndex++}return f===t.length?!u&&a.test("")||l.push(""):l.push(t.slice(f)),l.length>i?l.slice(0,i):l},String.prototype.split=function(e,r){return t(this,e,r)},t}();var linuxWin=0,os;function mTokenPlugin(){var _xmlhttp,retJSON="",_curDevName;function AjaxIO(e){if("id_mPluginV2Router"==os){var t=null,r="http://127.0.0.1:51235/alpha";t=document.getElementById("id_mPluginV2Router"),null==t&&alert("无法获取到插件,请确认已经安装好插件!");var n=e;return retJSON=t.invoke(r,n),retJSON}{var a="http://127.0.0.1:51235/alpha";let t=e;null==_xmlhttp&&(_xmlhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")),_xmlhttp.open("POST",a,!1),_xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_xmlhttp.send("json="+t)}}function GetHttpResult(){if(4==_xmlhttp.readyState&&200==_xmlhttp.status){var obj=eval("("+_xmlhttp.responseText+")");return obj}return null}this.SOF_GetLastError=function(){var json='{"function":"SOF_GetLastError"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.errorCode}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_LoadLibrary=function(windows,linux,mac){var json='{"function":"SOF_LoadLibrary", "winDllName":"'+windows+'", "linuxSOName":"'+linux+'", "macDylibName":"'+mac+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumDevice=function(){var json='{"function":"SOF_EnumDevice"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_GetVersion=function(){var json='{"function":"SOF_GetVersion"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.version}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.version:-2},this.SOF_GetDeviceInstance=function(DeviceName,ApplicationName){var json='{"function":"SOF_GetDeviceInstance", "deviceName":"'+DeviceName+'", "applicationName":"'+ApplicationName+'"}';if(2==linuxWin){var retJSON="";try{_curDevName=DeviceName,retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?(0==ret.rtn&&(_curDevName=DeviceName),ret.rtn):-2},this.SOF_ReleaseDeviceInstance=function(){var json='{"function":"SOF_ReleaseDeviceInstance", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetUserList=function(){var json='{"function":"SOF_GetUserList", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_ExportUserCert=function(ContainerName,KeySpec){var json='{"function":"SOF_ExportUserCert", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+KeySpec+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.cert}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.cert:-2},this.SOF_GetDeviceInfo=function(Type){var json='{"function":"SOF_GetDeviceInfo", "deviceName":"'+_curDevName+'", "type":'+Type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:-2},this.SOF_GetCertInfo=function(Base64EncodeCert,Type){var json='{"function":"SOF_GetCertInfo", "base64EncodeCert":"'+Base64EncodeCert+'", "type":'+Type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:-2},this.SOF_GetCertInfoByOid=function(Base64EncodeCert,OID){var json='{"function":"SOF_GetCertInfoByOid", "base64EncodeCert":"'+Base64EncodeCert+'", "oid":"'+OID+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:null},this.SOF_Login=function(PassWd){var json='{"function":"SOF_Login", "deviceName":"'+_curDevName+'", "passWd":"'+PassWd+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_LogOut=function(){var json='{"function":"SOF_LogOut", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetPinRetryCount=function(){var json='{"function":"SOF_GetPinRetryCount", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.retryCount}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.retryCount:-2},this.SOF_ChangePassWd=function(OldPassWd,NewPassWd){var json='{"function":"SOF_ChangePassWd", "deviceName":"'+_curDevName+'", "oldUpin":"'+OldPassWd+'", "newUpin":"'+NewPassWd+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetDigestMethod=function(DigestMethod){var json='{"function":"SOF_SetDigestMethod","deviceName":"'+_curDevName+'", "digestMethod":'+DigestMethod+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetUserID=function(UserID){var json='{"function":"SOF_SetUserID","deviceName":"'+_curDevName+'", "userID":"'+UserID+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetEncryptMethodAndIV=function(EncryptMethod,EncryptIV){var json='{"function":"SOF_SetEncryptMethodAndIV","deviceName":"'+_curDevName+'", "encryptMethod":'+EncryptMethod+', "encryptIV":"'+EncryptIV+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EncryptFileToPKCS7=function(Cert,InFile,OutFile,type){var json='{"function":"SOF_EncryptFileToPKCS7", "deviceName":"'+_curDevName+'", "cert":"'+Cert+'", "inFile":"'+InFile.replace(/\\/g,"\\\\")+'", "outFile":"'+OutFile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.envelopData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.envelopData:-2},this.SOF_SignFileToPKCS7=function(ContainerName,KeySpec,InFile){var json='{"function":"SOF_SignFileToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "KeySpec":'+KeySpec+', "inFile":"'+InFile.replace(/\\/g,"\\\\")+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:-2},this.SOF_VerifyFileToPKCS7=function(strPkcs7Data,InFilePath){var json='{"function":"SOF_VerifyFileToPKCS7", "deviceName":"'+_curDevName+'","strPkcs7Data":"'+strPkcs7Data+'", "inFile":"'+InFilePath.replace(/\\/g,"\\\\")+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DecryptFileToPKCS7=function(ContainerName,keySpec,Pkcs7Data,InFile,OutFile,type){var json='{"function":"SOF_DecryptFileToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+keySpec+', "pkcs7Data":"'+Pkcs7Data+'", "inFile":"'+InFile.replace(/\\/g,"\\\\")+'", "outFile":"'+OutFile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DigestData=function(ContainerName,InData,InDataLen){var json='{"function":"SOF_DigestData","deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.digest}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.digest:-2},this.SOF_SignDataInteractive=function(ContainerName,ulKeySpec,inData,InDataLen){var InDataBase64=inData,json='{"function":"SOF_SignDataInteractive", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InDataBase64+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:null},this.SOF_SignData=function(ContainerName,ulKeySpec,InData,InDataLen){var json='{"function":"SOF_SignDataEx", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:-2},this.SOF_VerifySignedData=function(Base64EncodeCert,digestMethod,InData,SignedValue){var json='{"function":"SOF_VerifySignedDataEx","deviceName":"'+_curDevName+'", "base64EncodeCert":"'+Base64EncodeCert+'", "digestMethod":'+digestMethod+', "inData":"'+InData+'", "signedValue":"'+SignedValue+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EncryptDataPKCS7=function(Base64EncodeCert,InData,InDataLen){var json='{"function":"SOF_EncryptDataPKCS7", "deviceName":"'+_curDevName+'", "base64EncodeCert":"'+Base64EncodeCert+'", "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.encrypedData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.encrypedData:-2},this.SOF_DecryptDataPKCS7=function(ContainerName,ulKeySpec,InData){var json='{"function":"SOF_DecryptDataPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.decryptedData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.decryptedData:-2},this.SOF_GenRemoteUnblockRequest=function(){var json='{"function":"SOF_GenRemoteUnblockRequest", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.request}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.request:-2},this.SOF_GenResetpwdResponse=function(request,soPin,userPin){var json='{"function":"SOF_GenResetpwdResponse", "deviceName":"'+_curDevName+'", "request":"'+request+'", "soPin":"'+soPin+'", "userPin":"'+userPin+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.request}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.request:-2},this.SOF_RemoteUnblockPIN=function(request){var json='{"function":"SOF_RemoteUnblockPIN", "deviceName":"'+_curDevName+'", "request":"'+request+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SignDataToPKCS7=function(ContainerName,ulKeySpec,InData,ulDetached){var json='{"function":"SOF_SignDataToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'", "detached":'+ulDetached+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.pkcs7}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.pkcs7:-2},this.SOF_VerifyDataToPKCS7=function(strPkcs7Data,OriginalText,ulDetached){var json='{"function":"SOF_VerifyDataToPKCS7", "deviceName":"'+_curDevName+'", "pkcs7":"'+strPkcs7Data+'", "original":"'+OriginalText+'", "detached":'+ulDetached+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_ExportPubKey=function(containerName,keySpec,expType){var json='{"function":"SOF_ExportPubKeyEx","deviceName":"'+_curDevName+'", "containerName":"'+containerName+'", "keySpec":'+keySpec+', "expType":'+expType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.pubKey}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.pubKey:-2},this.SOF_EncryptByPubKey=function(strPubKey,strInput,cerType){var json='{"function":"SOF_EncryptByPubKey", "deviceName":"'+_curDevName+'", "pubKey":"'+strPubKey+'", "asymPlain":"'+strInput+'", "keySpec":'+cerType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.asymCipher}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.asymCipher:null},this.SOF_DecryptByPrvKey=function(containerName,cerType,strAsymCipher){var json='{"function":"SOF_DecryptByPrvKey", "deviceName":"'+_curDevName+'", "containerName":"'+containerName+'", "asymCipher":"'+strAsymCipher+'", "keySpec":'+cerType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.asymPlain}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.asymPlain:null},this.SOF_CreateKeyPair=function(container,keySpec,asymAlg,keyLength){var json='{"function":"SOF_CreateKeyPair","deviceName":"'+_curDevName+'", "containerName":"'+container+'", "asymAlg":'+asymAlg+', "keySpec":'+keySpec+',"keyLength":'+keyLength+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumCertContiner=function(){var json='{"function":"SOF_EnumCertContiner", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.containerName}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.containerName:""},this.SOF_FindContainer=function(certSN){var json='{"function":"SOF_FindContainer","deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.containerName}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.containerName:""},this.SOF_DeleteCert=function(certSN){var json='{"function":"SOF_DeleteCert","deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DeleteContainer=function(certSN){var json='{"function":"SOF_DeleteContainer", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SignByCert=function(certSN,plain){var json='{"function":"SOF_SignByCert", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'", "inData":"'+plain+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:null},this.SOF_VerifyByCert=function(certSN,plain,signature,digestMethod){var json='{"function":"SOF_VerifyByCert", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'","digestMethod":'+digestMethod+', "inData":"'+plain+'", "signed":"'+signature+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_VerifyByExtCert=function(cert,plain,signature,digestMethod){var json='{"function":"SOF_VerifyByExtCert","deviceName":"'+_curDevName+'", "cert":"'+cert+'", "digestMethod":'+digestMethod+', "inData":"'+plain+'", "signed":"'+signature+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GenerateP10Request=function(_curDevName,container,dn,asymAlg,keySpec,keyLength){var json='{"function":"SOF_GenerateP10Request", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "certDN":"'+dn+'", "asymAlg":'+asymAlg+', "keySpec":'+keySpec+',"keyLength":'+keyLength+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_ImportCert=function(container,cert,keySpec){var json='{"function":"SOF_ImportCert", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "cert":"'+cert+'", "keySpec":'+keySpec+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_ImportCryptoCertAndKey=function(container,cert,nAsymAlg,EncryptedSessionKeyData,symAlg,EncryptedPrivateKeyData,mode){var json='{"function":"SOF_ImportCryptoCertAndKey", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "cert":"'+cert+'", "asymAlg":'+nAsymAlg+', "sessionKey":"'+EncryptedSessionKeyData+'", "symAlg":"'+symAlg+'", "encrypedData":"'+EncryptedPrivateKeyData+', + "mode":'+mode+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GenerateRandom=function(length){var json='{"function":"SOF_GenRandom", "deviceName":"'+_curDevName+'", "inDataLen":'+length+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:-2},this.SOF_SymEncryptFile=function(sessionKey,srcfile,destfile,type){var json='{"function":"SOF_SymEncryptFile", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inFile":"'+srcfile.replace(/\\/g,"\\\\")+'", "outFile":"'+destfile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SymDecryptFile=function(sessionKey,srcfile,destfile,type){var json='{"function":"SOF_SymDecryptFile", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inFile":"'+srcfile.replace(/\\/g,"\\\\")+'", "outFile":"'+destfile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SymEncryptData=function(sessionKey,inData){var json='{"function":"SOF_SymEncryptData", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inData":"'+inData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_SymDecryptData=function(sessionKey,inData){var json='{"function":"SOF_SymDecryptData", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inData":"'+inData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_GenerateQRCode=function(qrcode_text_in){var qrcode_text=qrcode_text_in.replace(/"/g,'\\"'),json='{"module":"libQR","function":"SOF_GenerateQRCode", "inData":"'+qrcode_text+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_VerifyPinMS=function(responseKey){var json='{"function":"SOF_VerifyPinMS", "deviceName":"'+_curDevName+'", "passWd":"'+responseKey+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetHardwareType=function(){var json='{"function":"SOF_GetHardwareType", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.type}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.type:-2},this.SOF_VerifyFingerprint=function(){var json='{"function":"SOF_VerifyFingerprint", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumFiles=function(){var json='{"function":"SOF_EnumFiles", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_ReadFile=function(fileName,offset,length){var json='{"function":"SOF_ReadFile", "deviceName":"'+_curDevName+'", "fileName":"'+fileName+'", "offset":'+offset+',"length":'+length+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.outData},this.SOF_WriteFile=function(fileName,offset,data){var json='{"function":"SOF_WriteFile", "deviceName":"'+_curDevName+'", "fileName":"'+fileName+'", "offset":'+offset+',"inData":"'+data+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SOF_CreateFile=function(fileName,length,readRight,writeRight){var json='{"function":"SOF_CreateFile", "deviceName":"'+_curDevName+'","fileName":"'+fileName+'", "length" :'+length+', "readRight":'+readRight+',"writeRight":'+writeRight+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SOF_DeleteFile=function(fileName){var json='{"function":"SOF_DeleteFile", "deviceName":"'+_curDevName+'","fileName":"'+fileName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketConnect=function(HostName,Port){var json='{"module":"libSocket","function":"SocketConnect", "HostName":"'+HostName+'", "Port":'+Port+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketDisConnect=function(){var json='{"module":"libSocket","function":"SocketDisConnect"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketSendText=function(SendText){var json='{"module":"libSocket","function":"SocketSendText", "SendText":"'+SendText+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.RecvText}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.RecvText}}},9258:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAVCAYAAACkCdXRAAAAAXNSR0IArs4c6QAAAeFJREFUOE+tlLtrFFEUh7/fjEWK/AEWio2QSrKFVhq46wNsBAuLFAHdh5DCMmJAxBEUC7VWdDcb0CKloGDhYy8YsbEwIGhaiWBpkcIimSMzzqy7s8lmjA4MF+45883vPMWIp9q2CYNjBOwjZk2w3G1odbtPtJXheMsOxAGLgNvC/jwImX1zXt+KtiFYqkZ4YC/GGmKJmFUCJoCZ9B6+y3BFlQMwF9ke9vMecRhjiYCar+lnrsB1bAzjMXAO44Nv6Ei/ukFY204iXgJf+MohH2mjGEr2w8+IgxinfEOvcp9BWMduY8xjzPmG7m2XaLdgV4GbyevrujYEy3LVIqkeJOfyiEInPs3ER0Yzz12qzC3YHWBuVJvsYLvr67os98gcIV2MdcQDxHppqDGOMYvSc0quY9cxomL8ZYEuz7OY/wMTka/pRhFSbdukiYqMj92GVoaqm4sR0UhYddGO2mbab0+ImVHIdPeC3vUDe5HtBMscN3xdt1zHrmCM97dCWryyylzLThNwn5gzBDzDuNjfpH8Fy9rmLcZrxAlf19Suc5bBujnA11X9N1jLzhIyySYrvqmn5WCFOdtdn/1O8gvgRzoB0Fs5JYBjxFzqTcB/nc3e4ntoFUIqJdQMuiRLsqlPyeUv/Lf/e9HpQCIAAAAASUVORK5CYII="},4177:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA8lJREFUWEfVWU1IVFEU/g7kQhcVjAuDBBXSFobjJsgWRtGiSKqNLdVtm7TaBEVK0arQNrVMl7VJKdoEoQsL3DiCGwsqUrBFRrZwFgY3vvfefXPnzbx375sZxjowi5n7c777nXt+7hlBhaKUagNwEcApAAeDTzbYLgfgV/CZBzAnIl8rUSVpFimlCOQagEsANBjXLQh6FsBjESF4J3ECaAAbDZhy2jxmEsFNuQK1AlRKDQOYrAGwKF4CHRERshoriQCVUncBjFdDl8PacRGZiJtXFmBgUrJG9uoh0wDGyt3NOIDP6ghOEzAtIiNRNkoAKqVoUpp2L2RCRIquVBHAwCHI3l7KZdNxQoDBvfuS1lu3doDcdyC/C+zsAk0NQGMD0JkBWg8Un3PtB9DVbD07vbtd30cTYCrTUtnrNeDjVrzCTCMwcBQ40Qo8XwV4mKvHrQA5ITS1BzAte9PLwId1J0XepMP7gY3f/vzJcz7LFglZ1ACd2KMJHy0WlFFJ4z4gewjINPlm3coD69tAbhP4mS+FMdQL9LXa8HnjHosa4LJLbo0yd7oDGOiKZ+TVmn8NTOlpcTZzTkR6JahK6ByJQkd4ulSY4sLEvflitjXjU+dt2sLxdgJkAcCskSi33hZMdqHLZy5JeB14KDoGhWbnb/R2Ok62xabRGx8jQCZr1nWxws3vL/jDvHMPzjpddCcElklzBMiCsj9ponmXeO+udNdCt9MeCwRodRDTOa73OQVbJ+0Ok3IEqGwTHy4Cn4KAXGeA+C8A8q3Q43oHB7uBMx02zkvH6cGMiQzoKdavODmJGQOZtu7wHZdSmIvfffYXpbgmnpNYwww3HX0D5P+kVhDGQB2m+MPt/tJKJ+a8XphxCtRmqGEsJIs0l02i+ftIBrh50rYqHPcCNR/g1lRHRUxdugAgyBsnk5lgFnmyVEh3aQ4WQGzXxYLVUbiAGYXVjDY1f2Otx2pGpy4ehKXV+2+lJZlL/ja4XRGRbKpyKw6kzWBkbvCYc5mltysqt9jSYO8kUqSXV02WXqy6Fa28c0yN0fLfcqhtAG0s+ysu+alAv0eWN4GN7YLpGYo6m33GUgIrYo9foo8mZxZtZq1iPGSvCCC/KKXYtXpZxea1WFr+2al3/qcf7gZI9kqGakFHij1mRKSkF5TUPGIPr14gZ5hNnZtHdTZ3ST/GZN21gUk2nWJkCpPSW4eramAaTDKQs6jgp1qgBMYDT7n0qq0MmowELRKCZDhKLHLLMLkSNNGdgOn1qQBGwLIKIlDzbwgNmmDMvyFmK/0b4i8ThIex2QASkAAAAABJRU5ErkJggg=="}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){__webpack_require__.p=""}();var __webpack_exports__={};return function(){"use strict";if(__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return M}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(__webpack_require__.p=t[1])}var r=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.title,visible:e.isShow,width:"350px","append-to-body":!0},on:{close:e.handleClose}},[t("slide-verify",{ref:"slideblock",attrs:{l:42,r:10,w:310,h:155,imgs:e.imgs,accuracy:e.accuracy,"slider-text":e.sliderText},on:{success:e.onSuccess,fail:e.onFail,again:e.onAgain,refresh:e.onRefresh,fulfilled:e.onFulfilled}})],1)},n=[],a=(__webpack_require__(7658),{name:"YcSlideVerify",props:{title:{type:String,default:"滑动验证"},isShow:{type:Boolean,default:!0}},data(){return{accuracy:5,sliderText:"拖动完成上方拼图",countDownNum:120}},computed:{imgs(){const e=[];for(let t=1;t<9;t++)e.push(`/cloud-img/${t}.jpg`);return e}},watch:{isShow(e){e&&this.$refs.slideblock&&this.$refs.slideblock.reset&&this.$refs.slideblock.reset()}},created(){},methods:{onSuccess(){this.$emit("success")},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.$emit("close")}}}),i=a;function s(e,t,r,n,a,i,s,o){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):a&&(c=o?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var m=u.beforeCreate;u.beforeCreate=m?[].concat(m,c):[c]}return{exports:e,options:u}}var o=s(i,r,n,!1,null,"33a7114a",null),c=o.exports,u=function(){var e=this,t=e._self._c;return t("div",{ref:"customer",staticStyle:{display:"none"}},[t("chat-vue",{attrs:{visible:e.visible,jumpPage:e.jumpPage,title:e.title,json:e.json,regular:e.regular},on:{"update:visible":function(t){e.visible=t}}}),t("div",{staticClass:"customerService"},[t("div",{staticClass:"mobile"},[e._t("default")],2),t("div",{staticClass:"headset",on:{click:function(t){e.visible=!e.visible}}},[e._m(0),e._m(1)])])],1)},l=[function(){var e=this,t=e._self._c;return t("div",[t("i",{staticClass:"el-icon-headset"})])},function(){var e=this,t=e._self._c;return t("div",[t("a",[e._v("在线客服")])])}],m=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"chat"},[t("header",[t("img",{attrs:{src:"/cloud-img/customerService/admin.jpg"}}),t("span",[e._v(e._s(e.title))]),e.jumpPage?t("i",{staticClass:"icon-enlarge",on:{click:e.enlarge}},[t("img",{attrs:{src:"/cloud-img/customerService/enlarge.png"}})]):e._e(),t("i",{staticClass:"el-icon-close",on:{click:e.close}})]),t("main",{ref:"main"},e._l(e.messagelist,(function(r,n){return t("div",{key:n,class:["message",r.id]},[t("img",{staticClass:"avatar",attrs:{src:`/cloud-img/customerService/${r.id}.jpg`}}),t("div",{staticClass:"content"},[e._l(r.msg,(function(n,a){return t("span",{key:n+a,class:r.msg.length>1?"href":"",domProps:{innerHTML:e._s((r.msg.length>1?1+a+". ":" ")+n)},on:{click:function(t){r.msg.length>1&&e.regularClick(n)}}})})),r.based?t("div",{staticClass:"based",on:{click:function(t){return e.handExpand(r)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":r.isActive}},[e._v(e._s(r.based)),t("i",{staticClass:"el-icon-d-arrow-right"})])]):e._e()],2)])})),0),t("nav",e._l(e.regular,(function(r,n){return t("el-button",{key:r+n,attrs:{size:"mini",round:""},on:{click:function(t){return e.regularClick(r)}}},[e._v(e._s(r))])})),1),t("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:2,maxRows:3},autofocus:"true",resize:"none",placeholder:"请反馈您的问题,我们将尽快回复"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.carriageReturn.apply(null,arguments)}},model:{value:e.textareaValue,callback:function(t){e.textareaValue=t},expression:"textareaValue"}}),t("el-button",{attrs:{type:"primary",size:"mini",disabled:!e.textareaValue},on:{click:e.send}},[e._v("发送")])],1)},f=[],S={props:{visible:Boolean,jumpPage:String,json:String,title:String,commit:String,regular:Array},data(){return{textareaValue:"",messagelist:[{id:"admin",msg:["您好,38号客服很高兴为你服务!"],isActive:!1}],isActive:!1}},computed:{questions(){return JSON.parse(this.json)}},methods:{close(){this.$emit("update:visible",!1)},carriageReturn(){let e=window.event||arguments[0];"Enter"!=e.key&&"Enter"!=e.code&&13!=e.keyCode||!this.textareaValue||this.send()},send(){this.textareaValue.replace(/[^\w\u4E00-\u9FA5]/g,"")&&(this.add(this.textareaValue,"personal",(()=>{this.textareaValue=""})),this.search(this.textareaValue))},regularClick(e){this.add(e),this.search(e)},search(e){const t=this.questions.filter((t=>t.faq.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase().includes(e.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase())));let[r,n]=["",""];t.length>1?r=t.reduce(((e,t)=>[...e,t.faq]),[]):1==t.length?[r,n]=[t[0].msg,t[0].based]:r=["您好","你好"].includes(e.replace(/[^\w\u4E00-\u9FA5]/g,""))?"您好!":'请提关键词问题?<br/> 比如: 税率<br/><br/><a href="tel:4000770168">客服热线:<span style="color: #FF575F;">400 0770 168</span></a>',this.add(r,"admin",null,n)},add(e,t="personal",r,n=""){this.messagelist.push({id:t,msg:Array.isArray(e)?e:[e],based:n,isActive:!1}),this.$nextTick((()=>{r&&r(),this.$refs.main.scrollTop=this.$refs.main.scrollHeight}))},enlarge(){window.open(this.jumpPage,"_blank")},handExpand(e){e.isActive=!e.isActive}}},d={name:"ChatMini",mixins:[S]},_=d,p=s(_,m,f,!1,null,"42a8b467",null),y=p.exports,h={name:"YcCustomerService",components:{chatVue:y},props:{jumpPage:String,title:String,json:String,regular:Array},data(){return{visible:!1}},computed:{hasSlot(){return Boolean(this.$slots.default)}},watch:{$route(e){e.path!=this.jumpPage?this.$refs.customer.style.display="block":this.$refs.customer.style.display="none"}},mounted(){this.$refs.customer.style.display="block"}},v=h,x=s(v,u,l,!1,null,"849349a0",null),g=x.exports,O=function(){var e=this,t=e._self._c;return t("div",{staticClass:"YcQuestion"},[t("div",{staticClass:"chatPage"},[t("header",{staticStyle:{background:"url('/cloud-img/customerService/chatTop.png') center","background-size":"cover"}},[t("div",[t("h3",[e._v(e._s(e.title))]),t("span",[e._v("Problem Help")])]),t("p",[e._v("小优为您提供24小时服务")])]),t("div",{staticClass:"main"},[t("div",[t("main",{ref:"main"},[t("p",[e._v("今天"+e._s(e.currData))]),e._l(e.messagelist,(function(r,n){return t("div",{key:n,class:["message",r.id]},[t("img",{staticClass:"avatar",attrs:{src:"/cloud-img/customerService/"+r.id+".jpg"}}),t("div",{staticClass:"content"},[e._l(r.msg,(function(n,a){return t("span",{key:n+a,class:r.msg.length>1?"href":"",domProps:{innerHTML:e._s((r.msg.length>1?1+a+". ":" ")+n)},on:{click:function(t){r.msg.length>1&&e.regularClick(n)}}})})),r.based?t("div",{staticClass:"based",on:{click:function(t){return t.preventDefault(),e.handExpand(r)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":r.isActive}},[e._v(e._s(r.based)),t("i",{staticClass:"el-icon-d-arrow-right"})])]):e._e()],2)])}))],2),t("footer",[t("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:6,maxRows:6},autofocus:"true",resize:"none",placeholder:"请输入你要咨询的问题"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.carriageReturn.apply(null,arguments)}},model:{value:e.textareaValue,callback:function(t){e.textareaValue=t},expression:"textareaValue"}}),t("el-button",{style:e.textareaValue?"":"background-color: #F7F7F9;color: #FF575F;border-color: transparent;",attrs:{type:"primary",disabled:!e.textareaValue},on:{click:e.send}},[e._v("发送")])],1)]),t("aside",[t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.questionsList,(function(r,n,a){return t("el-collapse-item",{key:n,attrs:{name:a}},[t("template",{slot:"title"},[t("img",{attrs:{src:"/cloud-img/customerService/ellipticalWenh.png"}}),e._v(e._s(n)+" ")]),e._l(r,(function(r){return t("div",{key:r,domProps:{innerHTML:e._s(r)},on:{click:function(t){return e.regularClick(r)}}})}))],2)})),1)],1)])])])},N=[],D={name:"YcQuestion",mixins:[S],data(){return{activeNames:[1]}},computed:{currData(){const e=new Date;return`${e.getHours()}:${e.getMinutes()}`},questionsList(){return this.questions.reduce(((e,t)=>(e.hasOwnProperty(t.type)?e[t.type].push(t.faq):e[t.type]=[t.faq],e)),{})}}},F=D,b=s(F,O,N,!1,null,"b15e6fbc",null),C=b.exports,P=function(){var e=this,t=e._self._c;return t("div",[t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules}},[void 0==e.loginForm.username?t("div",{staticClass:"ca-bg-box"},[t("div",{staticClass:"ca-bg-img"}),t("div",{staticClass:"ca-bg-text"},[e._v("请插入UKEY证书")]),t("img",{staticClass:"ca-refresh",attrs:{src:__webpack_require__(4177),alt:""},on:{click:e.caRead}})]):t("div",{staticClass:"ca-bg-info"},[t("div",{staticClass:"ca-bg-text"},[e._v(" CA名称:"),t("span",{staticClass:"caName"},[e._v(e._s(e.loginForm.username))])]),t("img",{staticClass:"ca-refresh",attrs:{src:__webpack_require__(4177),alt:""},on:{click:e.caRead}})]),t("el-form-item",{attrs:{prop:"password"}},[t("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码","show-password":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin.apply(null,arguments)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}},[t("el-image",{staticClass:"el-input__icon input-icon",attrs:{slot:"prefix",src:__webpack_require__(9258)},slot:"prefix"})],1)],1),t("el-form-item",[t("el-button",{staticClass:"login-btn",staticStyle:{width:"100%"},attrs:{loading:e.loading,size:"medium",type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin.apply(null,arguments)}}},[e.loading?t("span",[e._v("登 录 中...")]):t("span",[e._v("登 录")])])],1),e._t("default")],2),t("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible.showInfo,width:"30%",center:""},on:{"update:visible":function(t){return e.$set(e.dialogVisible,"showInfo",t)}}},[t("span",{staticStyle:{color:"red"}},[e._v("4444"+e._s(e.caInfo.error_text))]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVisible.showInfo=!1}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible.showInfo=!1}}},[e._v("确 定")])],1)])],1)},I=[],j=__webpack_require__(9481),E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function T(e){var t,r,n,a,i,s,o,c="",u=0;e=A(e);while(u<e.length)t=e.charCodeAt(u++),r=e.charCodeAt(u++),n=e.charCodeAt(u++),a=t>>2,i=(3&t)<<4|r>>4,s=(15&r)<<2|n>>6,o=63&n,isNaN(r)?s=o=64:isNaN(n)&&(o=64),c=c+E.charAt(a)+E.charAt(i)+E.charAt(s)+E.charAt(o);return c}function A(e){var t=""+e;t=t.replace(/\r\n/g,"\n");for(var r="",n=0;n<t.length;n++){var a=t.charCodeAt(n);a<128?r+=String.fromCharCode(a):a>127&&a<2048?(r+=String.fromCharCode(a>>6|192),r+=String.fromCharCode(63&a|128)):(r+=String.fromCharCode(a>>12|224),r+=String.fromCharCode(a>>6&63|128),r+=String.fromCharCode(63&a|128))}return r}function G(){var e=new j.R("mTokenPlugin"),t=null;t="Win32"==navigator.platform||"Windows"==navigator.platform?Array("GM3000","HT","SJK1137"):Array("HT");var r="",n=0,a=1,i=1;let s=1025;var o="1234567812345678",c="控件加载失败,错误码:",u="未找到UKey!\n1.请确认是否安装最新驱动!\n2.计算机是否插入湖南CA UKey!",l="USBKey实例化失败,请确认此UKey是否插入计算机!\n点击‘刷新’按钮,更新设备列表。\n错误码:",m="Ukey密码必须为4~16位!",f="UKey密码错误",S="UKey密码修改失败",d="UKey不存在,请确认此UKey是否插入计算机,并点击'刷新'按钮,更新设备列表!",_="请点击‘刷新’按钮,更新设备列表并选择相应设备!",p="证书获取失败,请加检测Key中是否存在证书!",y="设置摘要算法失败,请重新刷新浏览器!",h="设置用户ID失败,请重新刷新浏览器",v="签名失败,待签名原文不能为空",x="签名失败,返回错误码:",g="请点击‘刷新’按钮,更新设备列表并选择相应设备!",O="证书G项信息转化证书名称失败,请点击“刷新”按钮!",N="加载国密库失败!",D="加密失败:待加密原文不能为空!",F="解密失败:待解密密文不能为空!",b="解密失败:请确认密文是否完整!\n解密所采用的Ukey是否为加密时的Ukey!",C="申请解锁请求失败!",P="此型号Ukey不支持解锁!",I="Ukey解锁失败!",E=null,A=null,G=null,w=null,k=null,R=null,J=null,L=null;function V(t){var n=0;return"GM3000"==t?n=e.SOF_LoadLibrary(e.GM3000):"HT"==t?n=e.SOF_LoadLibrary(e.HT):"SJK1137"==t&&(n=e.SOF_LoadLibrary(e.SJK1137)),0==n||(r=c+e.SOF_GetLastError(),!1)}function K(){var t="";return t=e.SOF_EnumDevice(),null==t||0==t.length?(r=u,null):t}function B(t){var n=0;return n=e.SOF_GetDeviceInstance(t,""),0==n||(r=l+e.SOF_GetLastError(),!1)}function M(){var t="";return t=e.SOF_GetUserList(),null==t||0==t.length?(r="USBkey中未找到证书!",null):t}function U(t){var n=0,a=""+t,i=0;return null==a||0==a.length||a.length<4||a.length>16?(r=m,!1):(n=e.SOF_Login(a),0==n||(i=W(),r=i>0?f+",还剩 "+i+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function H(t,n){var a=0,i=""+t,s=""+n,o=0;return null==i||0==i.length||null==s||0==s.length||i.length<4||i.length>16||s.length<4||s.length>16?(r=m,!1):(a=e.SOF_ChangePassWd(i,s),0==a||(o=W(),r=o>0?S+",还剩 "+o+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function W(){var t=0;return t=e.SOF_GetPinRetryCount(),t}function q(){var t=null;return t=e.SOF_GetDeviceInfo(e.SGD_DEVICE_SERIAL_NUMBER),t}function X(t,n){var a;return a=e.SOF_ExportUserCert(t,n),null==a||0==a.length?(r=p,null):a}function Y(t,n){var a=1;return void 0==t||null==t?(r="请设置加密方式!",!1):(a=e.SOF_SetEncryptMethodAndIV(t,T(n)),0==a||(r=e.SOF_GetLastError(),!1))}function Q(t){var n=0;return n=e.SOF_SetDigestMethod(t),0==n||(r=y,!1)}function z(){var t=0;return t=e.SOF_SetUserID(o),0==t||(r=h,!1)}function $(t,n){var a="",i="",s="";return s=""+n,0==s.length?(r=D,""):(i=T(s),a=e.SOF_EncryptDataPKCS7(t,i,n.length),null==a||0==a.length?(r="加密失败,"+e.SOF_GetLastError(),""):a)}function Z(t,n,a){var i="",s="";if(i=""+a,null==t||0==t.length)return r="应用名称不能为空!","";if(0==i.length)return r=F,"";try{s=e.SOF_DecryptDataPKCS7(t,n,i)}catch(o){s=""}return void 0==s||null==s||""==s?(r=b,""):s}function ee(t,n,a,i){var s=null,o=null,c=""+a;return null==c||0==c.length?(r=v,!1):(o=T(c),s=e.SOF_SignData(t,n,T(o),o.length),null==s||0==s.length?(r=x+SOF_GetLastError(),!1):(G=i,A=s,!0))}function te(t){var r,n,a=null,i=null,s=null,o=null,c=null;if(null==t||0==t.length)return!1;k="",w="",R="",a=e.SOF_GetCertInfo(t,e.SGD_CERT_SERIAL),w=ue(a),i=e.SOF_GetCertInfo(t,e.SGD_CERT_SUBJECT),R=i,o=e.SOF_GetCertInfo(t,e.SGD_CERT_VALID_TIME),J=o,c=e.SOF_GetCertInfo(t,e.SGD_CERT_NOT_BEFORE),L=c,s=i.split(",");for(var u=0;u<s.length;u++)if(-1!=s[u].indexOf("=")&&(r=s[u].split("=")[0],n=s[u].split("=")[1],"GN"==r)){k=n;break}return!0}function re(){e.SOF_LogOut()}function ne(){var t=e.SOF_GenRemoteUnblockRequest();return null==t||""==t?(r=C,""):t}function ae(t){var n=!1;return null==t||0==t.length?(r="解锁失败解:响应不能为空!",!1):(n=e.SOF_RemoteUnblockPIN(t),0==n||(r=I,!1))}function ie(e,t,r){var n=[],a=Math.max(e.length,t.length),i=0,s=0;while(s<a||i){var o=s<e.length?e[s]:0,c=s<t.length?t[s]:0,u=i+o+c;n.push(u%r),i=Math.floor(u/r),s++}return n}function se(e,t,r){if(e<0)return null;if(0==e)return[];var n=[],a=t;while(1){if(1&e&&(n=ie(n,a,r)),e>>=1,0===e)break;a=ie(a,a,r)}return n}function oe(e,t){for(var r=e.split(""),n=[],a=r.length-1;a>=0;a--){var i=parseInt(r[a],t);if(isNaN(i))return null;n.push(i)}return n}function ce(e,t,r){var n=oe(e,t);if(null===n)return null;for(var a=[],i=[1],s=0;s<n.length;s++)n[s]&&(a=ie(a,se(n[s],i,r),r)),i=se(t,i,r);var o="";for(let c=a.length-1;c>=0;c--)o+=a[c].toString(r);return o}function ue(e){return"0x"===e.substring(0,2)&&(e=e.substring(2)),e=e.toLowerCase(),ce(e,16,10)}this.Hunca_GetLastError=function(){return r},this.Hunca_GetUserList=function(){var e=null,n=null,a=null,i=null;G=null,A=null,E=new Array;for(var s=0;s<t.length;s++){var o=t[s];if(V(o)&&(e=K(),null!=e))for(var c=0;c<e.length;c++){var l=new Object;if(!B(e[c]))break;i=M(),null==i&&0==i.length||(n=i[0][1],a=i[0][0],l.libraryName=o,l.serial=e[c],l.userName=a,l.containerName=n,E.push(l),re())}}var m=new Array;for(let t=0;t<E.length;t++)m[t]=E[t].userName;return 0==m.length?(r=u,""):m},this.Hunca_GetUserListGN=function(){var e=null,r=null,n=null,i=null,s=null,o="";E=new Array;for(var c=0;c<t.length;c++){var l=t[c];if(V(l)&&(e=K(),null!=e))for(var m=0;m<e.length;m++){k=null,w=null,o=e[m];var f=new Object;if(!B(o))break;i=M(),null==i&&0==i.length||(r=i[0][1],n=i[0][0],f.libraryName=l,f.serial=e[m],f.userName=n,f.containerName=r,s=X(f.containerName,a),te(s)&&(f.subjectGN=k,E.push(f),re()))}}var S=new Array;for(let t=0;t<E.length;t++)S[t]=E[t].subjectGN;return 0==S.length?(u,""):S},this.Hunca_userNameGNToUserName=function(e){var t=null;r="",null!=e&&0!=e.length||(r=g);for(var n=0;n<E.length;n++)if(e==E[n].subjectGN){t=E[n].userName;break}return null==t||0==t.length?(r=O,null):t},this.Hunca_GenRemoteUnblockRequest=function(e){var t=null,n=null,a="";if(r="",null==e||null==e.length)return r=_,!1;if(null==E||0==E.length)return r=u,!1;for(var i=0;i<E.length;i++)if(n=E[i],n.userName==e){t=n;break}return null==t?(r=d,!1):"GM3000"!=t.libraryName?(r=P,!1):V(t.libraryName)?!!B(t.serial)&&(null!=M()&&(a=ne(),a)):(r=N,!1)},this.HUnca_GetDeviceNumber=function(e){var t=null;if(null==e||null==e.length)return r=_,!1;if(null==E||0==E.length)return r=u,!1;for(var n=0;n<E.length;n++){let t=E[n];if(t.userName==e){tokenInfo=t;break}}return null==tokenInfo?(r=d,!1):V(tokenInfo.libraryName)?!!B(tokenInfo.serial)&&(t=q(),t+""):(r=N,!1)},this.Hunca_RemoteUnlockPIN=function(e,t){var n=null,a=null,i=!1;if(r="",null==e||null==e.length)return r=_,!1;if(null==E||0==E.length)return r=u,!1;for(var s=0;s<E.length;s++)if(a=E[s],a.userName==e){n=a;break}return null==n?(r=d,!1):"GM3000"!=n.libraryName?(r=P,!1):V(n.libraryName)?!!B(n.serial)&&(null!=M()&&(i=ae(t),i)):(r=N,!1)},this.Hunca_ChangeUserPin=function(e,t,n){var a=null,i=null;if(r="",null==e||null==e.length)return r=_,!1;if(null==E||0==E.length)return r=u,!1;for(var s=0;s<E.length;s++)if(i=E[s],i.userName==e){a=i;break}return null==a?(r=d,!1):(V(a.libraryName)||(r=N),!!B(a.serial)&&(!!H(t,n)&&(re(),!0)))},this.Hunca_PKCS1=function(e,t,r){var n=null,s=null,o=null;new Object;if(null==t||null==t.length)return _,!1;if(null==E||0==E.length)return u,!1;for(var c=0;c<E.length;c++)if(s=E[c],s.userName==t){n=s;break}return null==n?(d,!1):(V(n.libraryName)||N,!!B(n.serial)&&(!!U(r)&&(o=X(n.containerName,a),null!=o&&(!!Q(i)&&(!!z()&&(!!ee(n.containerName,i,e,o)&&(!!te(o)&&(re(),!0))))))))},this.Hunca_GetSignData=function(){return A},this.Hunca_GetSignCert=function(){return G},this.Hunca_GetSignCertSn=function(){return w},this.Hunca_GetSignCertSubject=function(){return R},this.Hunca_GetValidTime=function(){return J},this.HUnca_GetNotBeforeTime=function(){return L},this.Hunca_DealCertInfo=function(e){var t=null,n=null,i=null;if(r="",signResultInfo=null,certInfo=new Object,null==e||null==e.length)return r=_,!1;if(null==E||0==E.length)return r=u,!1;for(var s=0;s<E.length;s++)if(n=E[s],n.userName==e){t=n;break}return null==t?(r=d,!1):V(t.libraryName)?!!B(t.serial)&&(i=X(t.containerName,a),null!=i&&0!=i.length&&(te(i),re(),!0)):(r=N,!1)},this.Hunca_EncryptDataPKCS7=function(e,t,r,a){var i=null,o=null,c=null,l="",m="";new Object;if(null==t||null==t.length)return _,"";if(null==E||0==E.length)return u,"";for(var f=0;f<E.length;f++)if(o=E[f],o.userName==t){i=o;break}return null==i?(d,""):V(i.libraryName)?B(i.serial)?(c=X(i.containerName,n),null==c||0==c.length?"":(l=r+"",m=a+"",null!=l&&0!=l.length||(l=s,m=""),Y(l,m)?(encryptData=$(c,e),re(),encryptData):"")):"":(N,"")},this.Hunca_DecryptDataPKCS7=function(e,t,r,a,i){var o=null,c=null,l="",m="",f="",S="",p="";new Object;if(f=""+e,null==t||null==t.length)return _,"";if(null==E||0==E.length)return u,"";for(var y=0;y<E.length;y++)if(c=E[y],c.userName==t){o=c;break}if(null==o)return d,"";if(!V(o.libraryName))return N,"";if(!B(o.serial))return"";if(!U(r))return"";if(l=a+"",m=i+"",null!=l&&0!=l.length||(l=s,m=""),!Y(l,m))return"";if(S=Z(o.containerName,n,f),0==S.length)return"";try{p=_Base64decode(S)}catch(h){p=S,"解密失败:Base64解码失败"}return p}}__webpack_require__(8649);function w(e){let t=e.slice(0,4),r=e.slice(4,6),n=e.slice(6,8),a=e.slice(8,10),i=e.slice(10,12),s=e.slice(12);return`${t}-${r}-${n} ${a}:${i}:${s}`}var k={name:"YcCA",props:{region:{type:Number,default:0}},data(){return{form:{},caInfo:{error_text:"",have_error_info:!1},loginForm:{username:"",password:"",uuid:"",caInfo:""},dialogVisible:{ca:!1,showInfo:!1},loginRules:{password:[{required:!0,trigger:"blur",message:"请输入您的密码"}]},loading:!1}},computed:{isBJCA(){return 1==this.region}},watch:{region(){this.caRead()}},created(){},methods:{caRead(){if(this.isBJCA)this.caReadBeijin();else{window.mToken=new G;let e=window.mToken.Hunca_GetUserListGN();this.loginForm.username=e[0]}},async caReadBeijin(){let e=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t)}))}));this.loginForm.username=e.retVal.split("||")[0]},caLogin(e){switch(e){case 0:this.HNCALogin();break;default:this.$message({type:"warning",message:"请选择CA平台!!!"})}},HNCALogin(){window.mToken=new G,this.loginForm.username=window.mToken.Hunca_GetUserListGN();let e=window.mToken.Hunca_userNameGNToUserName(this.loginForm.username[0]),t=Math.random();if(!window.mToken.Hunca_PKCS1(t,e,this.loginForm.password))return this.caInfo.error_text=window.mToken.Hunca_GetLastError(),this.caInfo.have_error_info=!0,this.dialogVisible.showInfo=!0,!1;this.ca_cert=window.mToken.Hunca_GetSignCert(),this.sign=window.mToken.Hunca_GetSignData(),this.certSn=window.mToken.Hunca_GetSignCertSn(),this.cert_subject=window.mToken.Hunca_GetSignCertSubject(),this.cert_validTime=window.mToken.Hunca_GetValidTime(),this.cert_notBeforeTime=window.mToken.HUnca_GetNotBeforeTime();let r=this.cert_subject.split(","),n={};return r.forEach((e=>{n[e.split("=")[0]]=e.split("=")[1]})),this.loginForm={cert:this.ca_cert,sign:this.sign,rn:t,caInfo:this.cert_subject,caAddr:n.ST+n.OU,caCode:n.TITLE,caName:n.GN,caSn:this.certSn,caEffectiveDate:this.cert_notBeforeTime,caExpireDate:this.cert_validTime,loginType:"3",username:n.GN},!0},handleLogin(){this.$refs.loginForm.validate((e=>{e&&(this.loading=!0,this.isBJCA?this.BJCALogin():(this.HNCALogin(),1==this.dialogVisible.showInfo?this.loading=!1:void 0!=this.loginForm.username?(this.loading=!0,this.$emit("caSuccess",this.loginForm,(()=>{this.loading=!1}))):this.msgErr("请插入CA")))}))},async BJCALogin(){if(void 0!=this.loginForm.password){let r=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t.retVal.split("&&&")[0].split("||")[1])}))}));var e=new Date;let n=this.loginForm.password;if(!r||!n)return;var t=navigator.platform.toLowerCase();-1!=t.indexOf("win")?window.SOF_LoginEx(r,n,0,this.login_callback,{begin:e,certId:r}):window.SOF_Login(r,n,this.login_callback,{begin:e,certId:r})}else this.msgErr("请插入CA")},login_callback(e){const t=this;var r=e.ctx.certId;e.retVal?this.BJSignData():(window.SOF_GetLastError((function(e){var r=e.retVal;79==r&&t.msgErr("请核对pin码复杂度是否符合要求")}),e.ctx),window.SOF_GetPinRetryCount(r,(function(e){var r=e.ctx.certId;t.msgErr("证书["+r+"]重试次数剩余:"+e.retVal+"次...")}),e.ctx))},async BJSignData(){let e=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t.retVal.split("&&&")[0].split("||")[1])}))})),t=Math.random();this.form["rn"]=t,window.SOF_SignData(e,t,this.signData_callback,{certId:e})},async signData_callback(e){if(""==e.retVal)return this.caInfo.error_text="数据签名失败",this.caInfo.have_error_info=!0,void(this.dialogVisible.showInfo=!0);this.form["sign"]=e.retVal;var t=e.ctx.certId;let r=await new Promise((e=>{window.SOF_ExportUserCert(t,(function(t){e(t.retVal)}))}));if(this.form["username"]=r,r){var n={caAddrProvince:{type:16,label:"使用者省州名ST"},caAddrcity:{type:18,label:"使用者城市名L"},caEffectiveDate:{type:11,label:"证书有效开始日期"},caExpireDate:{type:12,label:"证书有效结束日期"},caInfo:{type:35,label:"使用者DN项第2种格式"},caSn:{type:2,label:"证书序列号"},caType:{type:34,label:"颁发者DN项第1种格式"}};for(let t in n){let e=await new Promise((e=>{window.SOF_GetCertInfo(r,n[t].type,(function(t){e(t)}),{key:t})}));this.form[e.ctx.key]=e.retVal}let e={caSn:this.form["caSn"],caInfo:this.form["caInfo"],caAddr:this.form["caAddrProvince"]+this.form["caAddrcity"],caCode:this.form["caInfo"].split(",").filter((e=>-1!=e.search(/^title=/i)))[0].replace(/title=/i,""),username:this.form["caInfo"].split(",").filter((e=>-1!=e.search(/^cn=/i)))[0].replace(/cn=/i,""),caEffectiveDate:w(this.form["caEffectiveDate"]),caExpireDate:w(this.form["caExpireDate"]),pass:this.loginForm.password,caType:"北京ca",sign:this.form.sign,rn:this.form.rn,cert:this.form.username};this.form=e,this.loginForm={cert:this.form.cert,sign:this.form.sign,rn:this.form.rn,caInfo:this.form.caInfo,caAddr:this.form.caAddr,caCode:this.form.caCode,caName:this.form.username,caSn:this.form.caSn,caEffectiveDate:this.form.caEffectiveDate,caExpireDate:this.form.caExpireDate,loginType:"3",username:this.form.username},1==this.dialogVisible.showInfo?this.loading=!1:void 0!=this.loginForm.username?this.$emit("caSuccess",this.loginForm,(()=>{this.loading=!1})):this.msgErr("请插入CA")}},handleClose(e){this.$confirm("确认关闭?").then((()=>{e(),this.loading=!1})).catch((()=>{}))},msgErr(e){this.loading=!1,this.$message.error(e)}}},R=k,J=s(R,P,I,!1,null,"51b0364e",null),L=J.exports;const V=[c,g,C,L],K=function(e){V.forEach((t=>{e.component(t.name,t)})),"undefined"!==typeof window&&window.Vue&&K(window.Vue)};var B={install:K},M=B}(),__webpack_exports__}()}));
1
+ (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["yc-ui2"]=t():e["yc-ui2"]=t()})("undefined"!==typeof self?self:this,(function(){return function(){var __webpack_modules__={9662:function(e,t,r){"use strict";var n=r(614),a=r(6330),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not a function")}},9670:function(e,t,r){"use strict";var n=r(111),a=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(a(e)+" is not an object")}},1318:function(e,t,r){"use strict";var n=r(5656),a=r(1400),i=r(6244),s=function(e){return function(t,r,s){var o,c=n(t),u=i(c),l=a(s,u);if(e&&r!==r){while(u>l)if(o=c[l++],o!==o)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},3658:function(e,t,r){"use strict";var n=r(9781),a=r(3157),i=TypeError,s=Object.getOwnPropertyDescriptor,o=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(a(e)&&!s(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,r){"use strict";var n=r(1702),a=n({}.toString),i=n("".slice);e.exports=function(e){return i(a(e),8,-1)}},9920:function(e,t,r){"use strict";var n=r(2597),a=r(3887),i=r(1236),s=r(3070);e.exports=function(e,t,r){for(var o=a(t),c=s.f,u=i.f,l=0;l<o.length;l++){var m=o[l];n(e,m)||r&&n(r,m)||c(e,m,u(t,m))}}},8880:function(e,t,r){"use strict";var n=r(9781),a=r(3070),i=r(9114);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},9114:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,r){"use strict";var n=r(614),a=r(3070),i=r(6339),s=r(3072);e.exports=function(e,t,r,o){o||(o={});var c=o.enumerable,u=void 0!==o.name?o.name:t;if(n(r)&&i(r,u,o),o.global)c?e[t]=r:s(t,r);else{try{o.unsafe?e[t]&&(c=!0):delete e[t]}catch(l){}c?e[t]=r:a.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},3072:function(e,t,r){"use strict";var n=r(7854),a=Object.defineProperty;e.exports=function(e,t){try{a(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},9781:function(e,t,r){"use strict";var n=r(7293);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){"use strict";var t="object"==typeof document&&document.all,r="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},317:function(e,t,r){"use strict";var n=r(7854),a=r(111),i=n.document,s=a(i)&&a(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},7207:function(e){"use strict";var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw t("Maximum allowed index exceeded");return e}},8113:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,r){"use strict";var n,a,i=r(7854),s=r(8113),o=i.process,c=i.Deno,u=o&&o.versions||c&&c.version,l=u&&u.v8;l&&(n=l.split("."),a=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(a=+n[1]))),e.exports=a},748:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,r){"use strict";var n=r(7854),a=r(1236).f,i=r(8880),s=r(8052),o=r(3072),c=r(9920),u=r(4705);e.exports=function(e,t){var r,l,m,f,S,d,_=e.target,p=e.global,y=e.stat;if(l=p?n:y?n[_]||o(_,{}):(n[_]||{}).prototype,l)for(m in t){if(S=t[m],e.dontCallGetSet?(d=a(l,m),f=d&&d.value):f=l[m],r=u(p?m:_+(y?".":"#")+m,e.forced),!r&&void 0!==f){if(typeof S==typeof f)continue;c(S,f)}(e.sham||f&&f.sham)&&i(S,"sham",!0),s(l,m,S,e)}}},7293:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,r){"use strict";var n=r(7293);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,r){"use strict";var n=r(4374),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},6530:function(e,t,r){"use strict";var n=r(9781),a=r(2597),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=a(i,"name"),c=o&&"something"===function(){}.name,u=o&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:o,PROPER:c,CONFIGURABLE:u}},1702:function(e,t,r){"use strict";var n=r(4374),a=Function.prototype,i=a.call,s=n&&a.bind.bind(i,i);e.exports=n?s:function(e){return function(){return i.apply(e,arguments)}}},5005:function(e,t,r){"use strict";var n=r(7854),a=r(614),i=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},8173:function(e,t,r){"use strict";var n=r(9662),a=r(8554);e.exports=function(e,t){var r=e[t];return a(r)?void 0:n(r)}},7854:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},2597:function(e,t,r){"use strict";var n=r(1702),a=r(7908),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},3501:function(e){"use strict";e.exports={}},4664:function(e,t,r){"use strict";var n=r(9781),a=r(7293),i=r(317);e.exports=!n&&!a((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,r){"use strict";var n=r(1702),a=r(7293),i=r(4326),s=Object,o=n("".split);e.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?o(e,""):s(e)}:s},2788:function(e,t,r){"use strict";var n=r(1702),a=r(614),i=r(5465),s=n(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},9909:function(e,t,r){"use strict";var n,a,i,s=r(4811),o=r(7854),c=r(111),u=r(8880),l=r(2597),m=r(5465),f=r(6200),S=r(3501),d="Object already initialized",_=o.TypeError,p=o.WeakMap,y=function(e){return i(e)?a(e):n(e,{})},h=function(e){return function(t){var r;if(!c(t)||(r=a(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return r}};if(s||m.state){var v=m.state||(m.state=new p);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new _(d);return t.facade=e,v.set(e,t),t},a=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var x=f("state");S[x]=!0,n=function(e,t){if(l(e,x))throw new _(d);return t.facade=e,u(e,x,t),t},a=function(e){return l(e,x)?e[x]:{}},i=function(e){return l(e,x)}}e.exports={set:n,get:a,has:i,enforce:y,getterFor:h}},3157:function(e,t,r){"use strict";var n=r(4326);e.exports=Array.isArray||function(e){return"Array"===n(e)}},614:function(e,t,r){"use strict";var n=r(4154),a=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===a}:function(e){return"function"==typeof e}},4705:function(e,t,r){"use strict";var n=r(7293),a=r(614),i=/#|\.prototype\./,s=function(e,t){var r=c[o(e)];return r===l||r!==u&&(a(t)?n(t):!!t)},o=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},8554:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},111:function(e,t,r){"use strict";var n=r(614),a=r(4154),i=a.all;e.exports=a.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},1913:function(e){"use strict";e.exports=!1},2190:function(e,t,r){"use strict";var n=r(5005),a=r(614),i=r(7976),s=r(3307),o=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&i(t.prototype,o(e))}},6244:function(e,t,r){"use strict";var n=r(7466);e.exports=function(e){return n(e.length)}},6339:function(e,t,r){"use strict";var n=r(1702),a=r(7293),i=r(614),s=r(2597),o=r(9781),c=r(6530).CONFIGURABLE,u=r(2788),l=r(9909),m=l.enforce,f=l.get,S=String,d=Object.defineProperty,_=n("".slice),p=n("".replace),y=n([].join),h=o&&!a((function(){return 8!==d((function(){}),"length",{value:8}).length})),v=String(String).split("String"),x=e.exports=function(e,t,r){"Symbol("===_(S(t),0,7)&&(t="["+p(S(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||c&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),h&&r&&s(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var n=m(e);return s(n,"source")||(n.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return i(this)&&f(this).source||u(this)}),"toString")},4758:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},3070:function(e,t,r){"use strict";var n=r(9781),a=r(4664),i=r(3353),s=r(9670),o=r(4948),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,m="enumerable",f="configurable",S="writable";t.f=n?i?function(e,t,r){if(s(e),t=o(t),s(r),"function"===typeof e&&"prototype"===t&&"value"in r&&S in r&&!r[S]){var n=l(e,t);n&&n[S]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:m in r?r[m]:n[m],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(s(e),t=o(t),s(r),a)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1236:function(e,t,r){"use strict";var n=r(9781),a=r(6916),i=r(5296),s=r(9114),o=r(5656),c=r(4948),u=r(2597),l=r(4664),m=Object.getOwnPropertyDescriptor;t.f=n?m:function(e,t){if(e=o(e),t=c(t),l)try{return m(e,t)}catch(r){}if(u(e,t))return s(!a(i.f,e,t),e[t])}},8006:function(e,t,r){"use strict";var n=r(6324),a=r(748),i=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},5181:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},7976:function(e,t,r){"use strict";var n=r(1702);e.exports=n({}.isPrototypeOf)},6324:function(e,t,r){"use strict";var n=r(1702),a=r(2597),i=r(5656),s=r(1318).indexOf,o=r(3501),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!a(o,r)&&a(n,r)&&c(l,r);while(t.length>u)a(n,r=t[u++])&&(~s(l,r)||c(l,r));return l}},5296:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},2140:function(e,t,r){"use strict";var n=r(6916),a=r(614),i=r(111),s=TypeError;e.exports=function(e,t){var r,o;if("string"===t&&a(r=e.toString)&&!i(o=n(r,e)))return o;if(a(r=e.valueOf)&&!i(o=n(r,e)))return o;if("string"!==t&&a(r=e.toString)&&!i(o=n(r,e)))return o;throw new s("Can't convert object to primitive value")}},3887:function(e,t,r){"use strict";var n=r(5005),a=r(1702),i=r(8006),s=r(5181),o=r(9670),c=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(o(e)),r=s.f;return r?c(t,r(e)):t}},4488:function(e,t,r){"use strict";var n=r(8554),a=TypeError;e.exports=function(e){if(n(e))throw new a("Can't call method on "+e);return e}},6200:function(e,t,r){"use strict";var n=r(2309),a=r(9711),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},5465:function(e,t,r){"use strict";var n=r(7854),a=r(3072),i="__core-js_shared__",s=n[i]||a(i,{});e.exports=s},2309:function(e,t,r){"use strict";var n=r(1913),a=r(5465);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,r){"use strict";var n=r(7392),a=r(7293),i=r(7854),s=i.String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:function(e,t,r){"use strict";var n=r(9303),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},5656:function(e,t,r){"use strict";var n=r(8361),a=r(4488);e.exports=function(e){return n(a(e))}},9303:function(e,t,r){"use strict";var n=r(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},7466:function(e,t,r){"use strict";var n=r(9303),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},7908:function(e,t,r){"use strict";var n=r(4488),a=Object;e.exports=function(e){return a(n(e))}},7593:function(e,t,r){"use strict";var n=r(6916),a=r(111),i=r(2190),s=r(8173),o=r(2140),c=r(5112),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!a(e)||i(e))return e;var r,c=s(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!a(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},4948:function(e,t,r){"use strict";var n=r(7593),a=r(2190);e.exports=function(e){var t=n(e,"string");return a(t)?t:t+""}},6330:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},9711:function(e,t,r){"use strict";var n=r(1702),a=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++a+i,36)}},3307:function(e,t,r){"use strict";var n=r(6293);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,r){"use strict";var n=r(9781),a=r(7293);e.exports=n&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,r){"use strict";var n=r(7854),a=r(614),i=n.WeakMap;e.exports=a(i)&&/native code/.test(String(i))},5112:function(e,t,r){"use strict";var n=r(7854),a=r(2309),i=r(2597),s=r(9711),o=r(6293),c=r(3307),u=n.Symbol,l=a("wks"),m=c?u["for"]||u:u&&u.withoutSetter||s;e.exports=function(e){return i(l,e)||(l[e]=o&&i(u,e)?u[e]:m("Symbol."+e)),l[e]}},7658:function(e,t,r){"use strict";var n=r(2109),a=r(7908),i=r(6244),s=r(3658),o=r(7207),c=r(7293),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},m=u||!l();n({target:"Array",proto:!0,arity:1,forced:m},{push:function(e){var t=a(this),r=i(t),n=arguments.length;o(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return s(t,r),r}})},9343:function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){__webpack_require__(7658),function(){"undefined"===typeof xtxasyn&&(xtxasyn={})}(),function(){function e(){this.map={}}e.prototype={put:function(e,t){this.map[e]=t},get:function(e){return this.map.hasOwnProperty(e)?this.map[e]:null},remove:function(e){return!!this.map.hasOwnProperty(e)&&delete this.map[e]},removeAll:function(){this.map={}},keySet:function(){var e=[];for(var t in this.map)e.push(t);return e}},e.prototype.constructor=e,xtxasyn.HashMap=e}(),function(){function initUtilObject(xtxasyn){var util=xtxasyn.util=xtxasyn.util||{};util.checkBrowserISIE=function(){return!(!window.ActiveXObject&&!("ActiveXObject"in window))},util.checkLocationIsHttps=function(){return"https:"==document.location.protocol},util.evalFunction=function(func){return"function"===typeof func?func:"string"!==typeof func?null:void(cb=eval(func))},util.consolelog=function(e){void 0!=window.console&&void 0!=window.console.log&&console.log(e)},util.isEmpty=function(e){return!e||"string"==typeof e&&""==e},util.loadIECtl=function(clsid,ctlName,checkFunc){if(!util.checkBrowserISIE())return null;var ctl=document.getElementById(ctlName);if(ctl)return ctl;try{var loadObjString='<object id="'+ctlName+'" classid="CLSID:'+clsid+'" style="HEIGHT:0px; WIDTH:0px">';if(loadObjString+="</object>",document.write(loadObjString),null!=checkFunc&&""!=checkFunc&&void 0==eval(ctlName+"."+checkFunc))return null}catch(e){return util.consolelog(e),null}return document.getElementById(ctlName)},util.getAutoExecFunctionString=function(e){var t="(";return t+=e.toString(),t+=")()",t},util.attachIEEvent=function(ctlName,eventName,eventFunc){var ctl;ctl="string"===typeof ctlName?eval(ctlName):ctlName,eventName=eventName.toLowerCase();var cb=util.evalFunction(eventFunc);if(null!=cb)if(ctl.attachEvent)ctl.attachEvent(eventName,cb);else{var handler=document.createElement("script");handler.setAttribute("for",ctlName),handler.setAttribute("event",eventName);var eventScript=util.getAutoExecFunctionString(eventFunc);handler.appendChild(document.createTextNode(eventScript)),document.getElementsByTagName("head")[0].appendChild(handler)}},util.loadWebSocketCtl=function(e,t){if(xtxasyn.wsObject)return xtxasyn.wsObject;var r;r=util.checkLocationIsHttps()?"wss://"+t:"ws://"+e;var n={socket:void 0,wsMessageQueue:new xtxasyn.HashMap,wsMessageQueueId:0,wsEventQueue:new xtxasyn.HashMap,wsURL:r,wsCacheMessage:[]};xtxasyn.wsObject=n,xtxasyn.wsObject.wsEventQueue.put("onusbkeychange",util.evalFunction(xtxasyn.custom.defaultUsbkeyChange));try{n.socket=new WebSocket(r)}catch(a){return util.consolelog(a),null}return n.socket.onopen=function(e){xtxasyn.util.consolelog("open websocket["+r+"] ok..."),xtxasyn.SOF_GetVersion((function(e){util.consolelog("SOF_GetVersion:("+e.retVal+")")}));while(xtxasyn.wsObject.wsCacheMessage.length>0){var t=xtxasyn.wsObject.wsCacheMessage.shift();xtxasyn.wsObject.socket.send(t)}},n.socket.onclose=function(n){util.consolelog("websocket["+r+"] closed, reopen it..."),xtxasyn.wsObject=void 0,xtxasyn.XTXAppWebSocket=xtxasyn.util.loadWebSocketCtl(e,t)},n.socket.onmessage=function(e){if(xtxasyn.util.isEmpty(e.data))util.consolelog("onmessage evt.data is NULL or empty!!!");else try{var t=JSON.parse(e.data),r=void 0;if(!t.hasOwnProperty("call_cmd_id"))return void util.consolelog("return JSON not include call_cmd_id!!!");r=t["call_cmd_id"];var n=void 0;t.hasOwnProperty("retValue")?n=t["retValue"]:t.hasOwnProperty("retVal")&&(n=t["retVal"]);var i=void 0,s=r.toLowerCase(),o=xtxasyn.wsObject.wsEventQueue.get(s);if(o&&"function"==typeof o)o(n);else{var c=xtxasyn.wsObject.wsMessageQueue.get(r);if(!c||!c.method)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s method name!!!");if(i=c.method,o=c.cb,!o||"function"!=typeof o)return void util.consolelog("can't find call_cmd_id["+t["call_cmd_id"]+"]'s call back function!!!");var u,l=c.ctx;l=l||{returnType:"string"},"bool"==l.returnType?(u="string"==typeof n?"true"==n:n,void 0==u&&(u=!1)):"number"==l.returnType?(u="string"==typeof n?Number(n):n,void 0==u&&(u=-1)):(u=n,void 0==u&&(u="")),t.token&&xtxasyn.custom.setToken(t.token),(("SOF_Login"==i||"SOF_LoginEx"==i)&&!u||"SOF_Logout"==i&&u)&&xtxasyn.custom.setToken("");var m={retVal:u,ctx:l};o(m),xtxasyn.wsObject.wsMessageQueue.remove(r)}}catch(a){return}},n.socket.onerror=function(e){xtxasyn.util.consolelog(e.data)},n},util.attachWebSocketEvent=function(e,t,r){null!=e&&e.wsEventQueue.put(t.toLowerCase(),util.evalFunction(r))},util.callWebSocketMethod=function(e,t,r,n,a,i,s){if(null!=e){if(e.wsMessageQueueId++,"function"==typeof n){a=a||{},a.returnType=i;var o={cb:n,ctx:a,method:r};e.wsMessageQueue.put("i_"+e.wsMessageQueueId,o)}var c={call_cmd_id:"i_"+e.wsMessageQueueId,CLSID:t,xtx_func_name:r,func:r,URL:window.location.href};if(arguments.length>6){for(var u=1;u<=s.length;u++){var l="param_"+u;c[l]=s[u-1]}c["param"]=s}var m=xtxasyn.custom.getToken();m&&""!=m&&(c.token=m),e.socket.readyState==WebSocket.OPEN?e.socket.send(JSON.stringify(c)):e.socket.readyState==WebSocket.CONNECTING?e.wsCacheMessage.push(JSON.stringify(c)):xtxasyn.util.consolelog("Can't connect to WebSocket server["+e.wsURL+"]!!!")}},util.SynToAsyn=function(e,t,r){if("function"==typeof t){var n={retVal:e,ctx:r};t(n)}}}initUtilObject(xtxasyn)}(),function(){function initCustomActions(xtxasyn){var custom=xtxasyn.custom=xtxasyn.custom||{};custom.softCertListID="",custom.hardCertListID="",custom.allCertListID="",custom.loginCertID="",custom.logoutFunc=null,custom.UsbkeyChangeFunc=null,custom.loginToken="",custom.errorReportFunc=function(e){alert(e)},custom.setAutoLogoutParameter=function(e,t){var r=xtxasyn.custom;r.loginCertID=e,r.logoutFunc=t},custom.clearDropList=function(dropListId){if(""!=dropListId){var obj=document.getElementById(dropListId);if(void 0==obj&&(obj=eval(dropListId)),void 0!=obj){var i,n=obj.length;for(i=0;i<n;i++)obj.remove(0)}}},custom.pushOneDropListBox=function(userListArray,strListID){var obj=document.getElementById(strListID);if(void 0==obj&&(obj=eval(strListID)),void 0!=obj)for(var i=0;i<userListArray.length;i++){var certObj=userListArray[i],objItem=new Option(certObj.certName,certObj.certID);obj.options.add(objItem)}},custom.pushUserListToAllDroplist=function(e){var t=xtxasyn.custom;t.clearDropList(t.softCertListID),t.clearDropList(t.hardCertListID),t.clearDropList(t.allCertListID);var r=e.retVal,n=[];while(1){var a=r.indexOf("&&&");if(a<=0)break;var i=r.substring(0,a),s=i.substring(0,i.indexOf("||")),o=i.substring(i.indexOf("||")+2,i.length);n.push({certName:s,certID:o}),""!=t.hardCertListID&&xtxasyn.GetDeviceInfo(o,7,(function(e){"HARD"==e.retVal&&t.pushOneDropListBox([e.ctx],t.hardCertListID)}),{certName:s,certID:o}),""!=t.softCertListID&&xtxasyn.GetDeviceInfo(o,7,(function(e){"SOFT"==e.retVal&&t.pushOneDropListBox([e.ctx],t.softCertListID)}),{certName:s,certID:o});var c=r.length;r=r.substring(a+3,c)}""!=t.allCertListID&&t.pushOneDropListBox(n,t.allCertListID)},custom.setUserCertList=function(e,t){var r=xtxasyn.custom;t!=CERT_TYPE_ALL&&void 0!=t||(r.allCertListID=e),t==CERT_TYPE_HARD&&(r.hardCertListID=e),t==CERT_TYPE_SOFT&&(r.softCertListID=e),xtxasyn.SOF_GetUserList(r.pushUserListToAllDroplist)},custom.setOnUsbKeyChangeCallBack=function(e){var t=xtxasyn.custom;t.UsbkeyChangeFunc=e},custom.setErrorReportFunc=function(e){var t=xtxasyn.custom;t.errorReportFunc=e},custom.autoLogoutCallBack=function(e){var t=xtxasyn.custom;e.retVal.indexOf(t.loginCertID)<=0&&t.logoutFunc()},custom.defaultUsbkeyChange=function(){var e=xtxasyn.custom;xtxasyn.SOF_GetUserList(e.pushUserListToAllDroplist),"function"==typeof e.UsbkeyChangeFunc&&e.UsbkeyChangeFunc(),""!=e.loginCertID&&"function"==typeof e.logoutFunc&&xtxasyn.SOF_GetUserList(e.autoLogoutCallBack)},custom.getToken=function(){return custom.loginToken},custom.setToken=function(e){custom.loginToken=e}}initCustomActions(xtxasyn)}(),function(){function e(e){var t=e.util,r=e.custom;if(e.XTXAppCOM=t.loadIECtl(e.xtx_clsid,"XTXAppObj","SOF_GetVersion()"),null==e.XTXAppCOM)return r.errorReportFunc("加载XTXAppCOM控件失败,请确认已正确安装BJCA证书应用环境!"),!1;var n=e.XTXAppCOM;t.attachIEEvent("XTXAppObj","onUsbkeyChange",e.custom.defaultUsbkeyChange);var a=t.loadIECtl(e.getpic_clsid,"GetPicObj","Hash('0')");null==a||(n.GetPic=function(e){return a.GetPic(e)},n.Hash=function(e){return a.Hash(e)},n.ConvertPicFormat=function(e,t){return a.ConvertPicFormat(e,t)},n.ConvertGif2Jpg=function(e){return a.ConvertGif2Jpg(e)},n.GetPic1=function(e){return a.GetPic1(e)},n.ConvertPicSize=function(e,t,r){return a.ConvertPicSize(e,t,r)});var i=t.loadIECtl(e.xtx_version_clsid,"XTXVersionOBJ","GetEnvVersion()");return null==i||(n.GetEnvVersion=function(){return i.GetEnvVersion()}),!0}function t(e){return e.XTXAppWebSocket=e.util.loadWebSocketCtl("127.0.0.1:21051/xtxapp/","127.0.0.1:21061/xtxapp/"),null!=e.XTXAppWebSocket||(custom.errorReportFunc("连接XTXAppCOM服务失败,请确认已正确安装BJCA证书应用环境!"),!1)}function r(r){var n,a=r.util;if(r.xtx_clsid="3F367B74-92D9-4C5E-AB93-234F8A91D5E6",r.getpic_clsid="3BC3C868-95B5-47ED-8686-E0E3E94EF366",r.xtx_version_clsid="574887FB-22A5-488B-A49C-2CF25F56BE68",a.checkBrowserISIE()){if(!e(r))return!1;n=function(e){""==e.inParams?window[e.funcName]=new Function("cb","ctx","xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM."+e.funcName+"(), cb, ctx);"):window[e.funcName]=new Function(e.inParams,"cb","ctx","xtxasyn.util.SynToAsyn(xtxasyn.XTXAppCOM."+e.funcName+"("+e.inParams+"), cb, ctx);")}}else{if(!t(r))return!1;n=function(e){""==e.inParams?window[e.funcName]=new Function("cb, ctx","xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '"+e.clsid+"', '"+e.funcName+"', cb, ctx, '"+e.outParamType+"', []);"):window[e.funcName]=new Function(e.inParams+", cb, ctx","xtxasyn.util.callWebSocketMethod(xtxasyn.XTXAppWebSocket, '"+e.clsid+"', '"+e.funcName+"', cb, ctx, '"+e.outParamType+"', ["+e.inParams+"]);")}}for(var i=[{funcName:"SOF_SetSignMethod",inParams:"SignMethod",outParamType:"number",clsid:r.xtx_clsid,aliasName:"SetSignMethod"},{funcName:"SOF_GetSignMethod",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_SetEncryptMethod",inParams:"EncryptMethod",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetEncryptMethod",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetUserList",inParams:"",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetUserList"},{funcName:"SOF_ExportUserCert",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetSignCert"},{funcName:"SOF_Login",inParams:"CertID, PassWd",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifyUserPIN"},{funcName:"SOF_GetPinRetryCount",inParams:"CertID",outParamType:"number",clsid:r.xtx_clsid,aliasName:"GetUserPINRetryCount"},{funcName:"SOF_ChangePassWd",inParams:"CertID, oldPass, newPass",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"ChangeUserPassword"},{funcName:"SOF_GetCertInfo",inParams:"Cert, type",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetCertBasicinfo"},{funcName:"SOF_GetCertInfoByOid",inParams:"Cert, Oid",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetExtCertInfoByOID"},{funcName:"SOF_SignData",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SignedData"},{funcName:"SOF_VerifySignedData",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignedData"},{funcName:"SOF_SignFile",inParams:"CertID, InFile",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SOF_SignFile"},{funcName:"SOF_VerifySignedFile",inParams:"Cert, InFile, SignValue",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignFile"},{funcName:"SOF_EncryptData",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"EncodeP7Enveloped"},{funcName:"SOF_DecryptData",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"DecodeP7Enveloped"},{funcName:"SOF_EncryptFile",inParams:"Cert, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_DecryptFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignMessage",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedMessage",inParams:"MessageData, InData",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifyDatabyP7"},{funcName:"SOF_GetInfoFromSignedMessage",inParams:"SignedMessage, type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignDataXML",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataXML",inParams:"InData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetXMLSignatureInfo",inParams:"XMLSignedData, type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GenRandom",inParams:"RandomLen",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GenerateRandom"},{funcName:"SOF_PubKeyEncrypt",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"PubKeyEncrypt"},{funcName:"SOF_PriKeyDecrypt",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid,aliasName:"PriKeyDecrypt"},{funcName:"SOF_SecertSegment",inParams:"Secert, m, n, k",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SecertRecovery",inParams:"Seg",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetLastError",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetDeviceCount",inParams:"",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetAllDeviceSN",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceSNByIndex",inParams:"iIndex",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceInfo",inParams:"sDeviceSN, iType",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ChangeAdminPass",inParams:"sDeviceSN, sOldPass, sNewPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"UnlockUserPass",inParams:"sDeviceSN, sAdminPass, sNewUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyType, bSign",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportSignCert",inParams:"sDeviceSN, sContainerName, sCert",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ImportEncCert",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ReadFile",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:r.xtx_clsid,aliasName:"readFile"},{funcName:"WriteFile",inParams:"sDeviceSN, sFileName, sContent, bPrivate",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"writeFile"},{funcName:"IsContainerExist",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteContainer",inParams:"sDeviceSN, sContainerName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ExportPKCS10",inParams:"sDeviceSN, sContainerName, sDN, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"InitDevice",inParams:"sDeviceSN, sAdminPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"AddSignInfo",inParams:"sUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetVersion",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ExportExChangeUserCert",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetExchCert"},{funcName:"SOF_ValidateCert",inParams:"Cert",outParamType:"number",clsid:r.xtx_clsid,aliasName:"ValidateCert"},{funcName:"GetENVSN",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SetENVSN",inParams:"sDeviceSN, sEnvsn",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"IsDeviceExist",inParams:"sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GetContainerCount",inParams:"sDeviceSN",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptData",inParams:"sKey, indata",outParamType:"string",clsid:r.xtx_clsid,aliasName:"EncryptData"},{funcName:"SOF_SymDecryptData",inParams:"sKey, indata",outParamType:"string",clsid:r.xtx_clsid,aliasName:"DecryptData"},{funcName:"SOF_SymEncryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"EncryptFile"},{funcName:"SOF_SymDecryptFile",inParams:"sKey, inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"DecryptFile"},{funcName:"SOF_GetLastErrMsg",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_Base64Encode",inParams:"sIndata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_Base64Decode",inParams:"sIndata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashData",inParams:"hashAlg, sInData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashFile",inParams:"hashAlg, inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"UnlockUserPassEx",inParams:"sDeviceSN, sAdminPin, sNewUserPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteOldContainer",inParams:"sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"WriteFileEx",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ReadFileEx",inParams:"sDeviceSN, sFileName",outParamType:"string",clsid:r.xtx_clsid},{funcName:"WriteFileBase64",inParams:"sDeviceSN, sFileName, sContent",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteFile",inParams:"sDeviceSN, sFileName",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_EncryptDataEx",inParams:"Cert, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"Base64EncodeFile",inParams:"sInFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetRetryCount",inParams:"CertID",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetAllContainerName",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"CreateSoftDevice",inParams:"sDeviceSN, sLabel",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"DeleteSoftDevice",inParams:"sDeviceSN, sPasswd",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnableSoftDevice",inParams:"enable, sDeviceSN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SoftDeviceBackup",inParams:"sDeviceSN, sPasswd",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SoftDeviceRestore",inParams:"sDeviceSN, sPasswd, sInFilePath",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_Logout",inParams:"CertID",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"Logout"},{funcName:"SetUserConfig",inParams:"type, strConfig",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignByteData",inParams:"CertID, byteLen",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedByteData",inParams:"Cert, byteLen, SignValue",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"OTP_GetChallengeCode",inParams:"sCertID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportEncCertEx",inParams:"sDeviceSN, sContainerName, sCert, sPriKeyCipher, ulSymAlg",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_GetCertEntity",inParams:"sCert",outParamType:"string",clsid:r.xtx_clsid,aliasName:"GetCertEntity"},{funcName:"SOF_HMAC",inParams:"hashid, key, indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignDataByPriKey",inParams:"sPriKey, sCert, sInData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ImportKeyCertToSoftDevice",inParams:"sDeviceSN, sContainerName, sPriKey, sCert, bSign",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"InitDeviceEx",inParams:"sDeviceSN, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SelectFile",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignHashData",inParams:"CertID, b64ashData, hashAlg",outParamType:"string",clsid:r.xtx_clsid,aliasName:"SignHashData"},{funcName:"SOF_VerifySignedHashData",inParams:"Cert, b64ashData, SignValue, hashAlg",outParamType:"bool",clsid:r.xtx_clsid,aliasName:"VerifySignedHashData"},{funcName:"CheckSoftDeviceEnv",inParams:"",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"ImportPfxToDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfx, strPfxPass",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_HashDataEx",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_HashFileEx",inParams:"hashAlg, inFile, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetDeviceCountEx",inParams:"type",outParamType:"number",clsid:r.xtx_clsid},{funcName:"GetAllDeviceSNEx",inParams:"type",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UpdateCert",inParams:"CertID, type",outParamType:"number",clsid:r.xtx_clsid},{funcName:"OpenSpecifiedFolder",inParams:"backupFilePath",outParamType:"",clsid:r.xtx_clsid},{funcName:"OTP_GetChallengeCodeEx",inParams:"sCertID, szAccount, money",outParamType:"string",clsid:r.xtx_clsid},{funcName:"Base64DecodeFile",inParams:"sInData, sFilePath",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumFilesInDevice",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_Halt",inParams:"sCertID",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGenREQ",inParams:"b64Hash, hashAlg, bReqCert, policyID, b64Nonce, b64Extension",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_TSCompareNonce",inParams:"b64TSReq, b64TSAResp",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGenPDFSignature",inParams:"b64TSAResp, b64OriPDFSignature",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_TSVerifyPDFSignature",inParams:"b64TSPDFSignature",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_TSGetPDFSignatureInfo",inParams:"b64TSPDFSignature, iType",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_GetState",inParams:"sCertID, bCert",outParamType:"string",clsid:r.xtx_clsid},{funcName:"OTP_GetSyncCode",inParams:"sCertID, ChallengeCode",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_IsLogin",inParams:"CertID",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_LoginEx",inParams:"CertID, PassWd, updateFlag",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumSupportDeviceList",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ExportPfxFromDevice",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignHashMessage",inParams:"CertID, InHashData, hashAlg",outParamType:"string",clsid:r.xtx_clsid},{funcName:"ExportPfxToFile",inParams:"sDeviceSN, sContainerName, bSign, strPfxPass",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignAPK",inParams:"CertID, strOriSignature",outParamType:"string",clsid:r.xtx_clsid},{funcName:"YZT_GenerateKeyPair",inParams:"sDeviceSN, sContainerName, iKeyTypeRSA, iKeyTypeSM2",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"YZT_ExportPubKey",inParams:"sDeviceSN, sContainerName, bSign",outParamType:"string",clsid:r.xtx_clsid},{funcName:"YZT_ImportSignCert",inParams:"sDeviceSN, sContainerName, sRSACert, sSM2Cert",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"YZT_ImportEncCert",inParams:"sDeviceSN, sContainerName, sRSACert, sRSAPriKeyCipher, ulRSASymAlg, sSM2Cert, sSM2PriKeyCipher, ulSM2SymAlg",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_ListenUKey",inParams:"Parm",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EnableLoginWindow",inParams:"Parm",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignEnvelope",inParams:"CertID, Cert, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UnSignEnvelope",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_MAKExportPKCS10",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_MAKImportSignEncCert",inParams:"sDeviceSN, sSignCert, sEncCert, sPriKeyCipher",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_IssueDAKCert",inParams:"sDeviceSN, iKeyType, sDN",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_InfoCollect",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_GetBioInfo",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetLastLoginCertID",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ReadKFXESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileToData",inParams:"sKey, inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignMessageBase64",inParams:"dwFlag, CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedMessageBase64",inParams:"MessageData, InData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedHashMessage",inParams:"MessageData, InHashData",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignDataBase64",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataBase64",inParams:"Cert, InData, SignValue",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_HashDataExBase64",inParams:"hashAlg, sInData, sCert, sID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_GetProductVersion",inParams:"",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_UpdateCertEx",inParams:"CertID, PassWd",outParamType:"number",clsid:r.xtx_clsid},{funcName:"SOF_GetLastSignDataCertID",inParams:"CertID",outParamType:"string",clsid:r.xtx_clsid},{funcName:"BIO_SetUserConfig",inParams:"CertID, type, strConfig",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"BIO_InvokeCommand",inParams:"CertID, bstrCommand",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_ImportSymmKey",inParams:"CertID, ulKeyIndex, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Encrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Decrypt",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_Mac",inParams:"CertID, ulKeyIndex, ulKeyAlgId, IVData, DivCount, DivComponent, InData, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_PriKeyDecryptEx",inParams:"CertID, InData",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_ReadESealData",inParams:"CertID, ulKeyIndex, ulKeyAlgId, ulFlags",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_EPS_WriteESealData",inParams:"CertID, InData, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"EnumESeal",inParams:"sDeviceSN",outParamType:"string",clsid:r.xtx_clsid},{funcName:"GetPicture",inParams:"bstrConName",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SignEnvelopeFile",inParams:"CertID, Cert, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_UnSignEnvelopeFile",inParams:"CertID, InFile, OutFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_EncryptFile",inParams:"CertID, Cert, InFile, OutFile, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_DecryptFile",inParams:"CertID, InFile, OutFile, ulFlags",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"GetPic",inParams:"bstrConName",outParamType:"string",clsid:r.getpic_clsid},{funcName:"Hash",inParams:"inData",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertPicFormat",inParams:"inData, type",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertGif2Jpg",inParams:"inData",outParamType:"string",clsid:r.getpic_clsid},{funcName:"GetPic1",inParams:"bstrConName",outParamType:"string",clsid:r.getpic_clsid},{funcName:"ConvertPicSize",inParams:"bstrPic, w, h",outParamType:"string",clsid:r.getpic_clsid},{funcName:"GetEnvVersion",inParams:"",outParamType:"string",clsid:r.xtx_version_clsid},{funcName:"InitDeviceWithParam",inParams:"sDeviceSN, sAppName, sAdminPass, sUserPin, sKeyLabel, adminPinMaxRetry, userPinMaxRetry, createFileRights",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SignDataEx",inParams:"CertID, InData,signFlag",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_VerifySignedDataEx",inParams:"Cert, InData, SignValue,signFlag",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptDataEx",inParams:"sKey,sIV,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_InvokeCommand",inParams:"pluginName,InParam",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOF_SymEncryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileEx",inParams:"sKey,sIV,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOF_SymDecryptFileToDataEx",inParams:"sKey,sIV,inFile",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymEncryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymDecryptDataWithPadding",inParams:"sKey,sIV,padding,indata",outParamType:"string",clsid:r.xtx_clsid},{funcName:"SOFX_SymEncryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_SymDecryptFileWithPadding",inParams:"sKey,sIV,padding,inFile, outFile",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_VerifySignedDataWithID",inParams:"Cert, InData, SignValue,userId",outParamType:"bool",clsid:r.xtx_clsid},{funcName:"SOFX_VerifySignedFileWithID",inParams:"Cert, InFile, SignValue,userId",outParamType:"bool",clsid:r.xtx_clsid}],s=0;s<i.length;s++)n(i[s]),r[i[s].funcName]=window[i[s].funcName],i[s].aliasName&&(window[i[s].aliasName]=window[i[s].funcName],r[i[s].aliasName]=window[i[s].funcName]);return!0}r(xtxasyn)}();var CERT_TYPE_HARD=1,CERT_TYPE_SOFT=2,CERT_TYPE_ALL=3;function SetAutoLogoutParameter(e,t){xtxasyn.custom.setAutoLogoutParameter(e,t)}function SetUserCertList(e,t){xtxasyn.custom.setUserCertList(e,t)}function SetOnUsbKeyChangeCallBack(e){xtxasyn.custom.setOnUsbKeyChangeCallBack(e)}function SetAlertFunction(e){xtxasyn.custom.setErrorReportFunc(e)}function GetLoginToken(){return xtxasyn.custom.getToken()}function SetLoginToken(e){return xtxasyn.custom.setToken(e)}function GetUserListByType(e,t,r){SOF_GetUserList((function(e){var t=e.retVal;while(1){var r=t.indexOf("&&&");if(r<=0)break;var n=t.substring(0,r),a=(n.substring(0,n.indexOf("||")),n.substring(n.indexOf("||")+2,n.length));GetDeviceType(a,(function(e){e.retVal==e.ctx.ctx.type&&"function"==typeof e.ctx.ctx.cb&&e.ctx.ctx.cb({retVal:e.ctx.userList,ctx:e.ctx.ctx.ctx})}),{userList:n,ctx:e.ctx});var i=t.length;t=t.substring(r+3,i)}}),{type:e,cb:t,ctx:r})}function GetUserList_USBKey(e,t){return GetUserListByType("HARD",e,t)}function GetUserList_Soft(){return GetUserListByType("SOFT",cb,ctx)}function SignByP7(e,t,r){return xtxasyn.SOF_SignMessage(r?1:0,e,t)}function GetSymKeyLength(){return 24}function GetDeviceType(e){return xtxasyn.GetDeviceInfo(e,7)}function HashFile(e){return xtxasyn.SOF_HashFile(2,e)}function ParseDateString(e){var t=e.substring(0,4),r=e.substring(4,6),n=e.substring(6,8),a=e.substring(8,10),i=e.substring(10,12),s=e.substring(12,14),o=new Date;return o.setFullYear(Number(t),Number(r)-1,Number(n)),o.setHours(Number(a)),o.setMinutes(Number(i)),o.setSeconds(Number(s)),o}function __loginSignRandomCallBack(e){if(""==e.retVal)return xtxasyn.custom.errorReportFunc("客户端签名失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var t=e.ctx.objForm;t.UserSignedData.value=e.retVal,t.LoginToken.value=xtxasyn.custom.getToken(),"function"===typeof e.ctx.cb?e.ctx.cb(!0):(t.action=e.ctx.action,t.submit())}function __loginVerifyServerSignatureCallBack(e){if(!e.retVal)return xtxasyn.custom.errorReportFunc("验证服务器端信息失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var t=e.ctx.certID;xtxasyn.SOF_SignData(t,strServerRan,__loginSignRandomCallBack,e.ctx)}function __loginCheckCertValidNotAfter(e){var t=ParseDateString(e.retVal),r=t.getTime()-(new Date).getTime();if(r<0)return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));if(days=parseInt(r/864e5),days>0&&days<=60)xtxasyn.custom.errorReportFunc("您的证书还有"+days+"天过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");else if(0==days){var n=parseInt(r/36e5);n>0&&xtxasyn.custom.errorReportFunc("您的证书还有"+n+"小时过期\n请您尽快到北京数字证书认证中心办理证书更新手续!");var a=parseInt(r/6e4);if(!(a>1))return xtxasyn.custom.errorReportFunc("您的证书已过期,请尽快到北京数字证书认证中心办理证书更新手续!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));xtxasyn.custom.errorReportFunc("您的证书还有"+a+"分钟过期\n请您尽快到北京数字证书认证中心办理证书更新手续!")}xtxasyn.SOF_VerifySignedData(strServerCert,strServerRan,strServerSignedData,__loginVerifyServerSignatureCallBack,e.ctx)}function __loginCheckCertValidNotBefore(e){var t=ParseDateString(e.retVal),r=parseInt((t.getTime()-(new Date).getTime())/864e5);if(r>0)return xtxasyn.custom.errorReportFunc("您的证书尚未生效!距离生效日期还剩"+r+"天!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));var n=e.ctx.objForm.UserCert.value;xtxasyn.SOF_GetCertInfo(n,12,__loginCheckCertValidNotAfter,e.ctx)}function __loginGetSignCertCallBack(e){var t=e.retVal;if(""==t)return xtxasyn.custom.errorReportFunc("导出用户证书失败!"),void("function"===typeof e.ctx.cb&&e.ctx.cb(!1));e.ctx.objForm.UserCert.value=t,xtxasyn.SOF_GetCertInfo(t,11,__loginCheckCertValidNotBefore,e.ctx)}function __loginGetPINRetryCallBack(e){var t=Number(e.retVal);t>0?xtxasyn.custom.errorReportFunc("校验证书密码失败!您还有"+t+"次机会重试!"):0==t?xtxasyn.custom.errorReportFunc("您的证书密码已被锁死,请联系BJCA进行解锁!"):xtxasyn.custom.errorReportFunc("登录失败!"),"function"===typeof e.ctx.cb&&e.ctx.cb()}function __loginVerifyPINCallBack(e){var t=e.ctx.certID,r=e.ctx.objForm;e.retVal?(r.CertID.value=t,r.ContainerName.value=t,xtxasyn.SOF_ExportUserCert(t,__loginGetSignCertCallBack,e.ctx)):xtxasyn.SOF_GetPinRetryCount(t,__loginGetPINRetryCallBack,e.ctx)}function Login(formName,strCertID,strPin,strAction,custom_cb){var objForm=eval(formName);if(null==objForm)return xtxasyn.custom.errorReportFunc("表单错误!"),void("function"===typeof custom_cb&&custom_cb(!1));if(null==strCertID||""==strCertID)return xtxasyn.custom.errorReportFunc("请输入证书密码!"),void("function"===typeof custom_cb&&custom_cb(!1));if(null==strPin||""==strPin)return xtxasyn.custom.errorReportFunc("请输入证书密码!"),void("function"===typeof custom_cb&&custom_cb(!1));null==objForm.UserSignedData&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="UserSignedData" value="">'),null==objForm.UserCert&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="UserCert" value="">'),null==objForm.CertID&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="CertID" value="">'),null==objForm.ContainerName&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="ContainerName" value="">'),null==objForm.LoginToken&&objForm.insertAdjacentHTML("BeforeEnd",'<input type="hidden" name="LoginToken" value="">');var ctx={certID:strCertID,objForm:objForm,action:strAction,cb:custom_cb};xtxasyn.SOF_Login(strCertID,strPin,__loginVerifyPINCallBack,ctx)}},353:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{R:function(){return mToken}});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7658),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),split;function mToken(e){this.obj=e,this.SAR_OK=0,this.SAR_FALSE=1,this.SGD_SM1_ECB=257,this.SGD_SM1_CBC=258,this.SGD_SM1_CFB=260,this.SGD_SM1_OFB=264,this.SGD_SM1_MAC=272,this.SGD_SSF33_ECB=513,this.SGD_SSF33_CBC=514,this.SGD_SSF33_CFB=516,this.SGD_SSF33_OFB=520,this.SGD_SSF33_MAC=528,this.SGD_SM4_ECB=1025,this.SGD_SM4_CBC=1026,this.SGD_SM4_CFB=1028,this.SGD_SM4_OFB=1032,this.SGD_SM4_MAC=1040,this.SGD_VENDOR_DEFINED=2147483648,this.SGD_DES_ECB=this.SGD_VENDOR_DEFINED+529,this.SGD_DES_CBC=this.SGD_VENDOR_DEFINED+530,this.SGD_3DES168_ECB=this.SGD_VENDOR_DEFINED+577,this.SGD_3DES168_CBC=this.SGD_VENDOR_DEFINED+578,this.SGD_3DES112_ECB=this.SGD_VENDOR_DEFINED+545,this.SGD_3DES112_CBC=this.SGD_VENDOR_DEFINED+546,this.SGD_AES128_ECB=this.SGD_VENDOR_DEFINED+273,this.SGD_AES128_CBC=this.SGD_VENDOR_DEFINED+274,this.SGD_AES192_ECB=this.SGD_VENDOR_DEFINED+289,this.SGD_AES192_CBC=this.SGD_VENDOR_DEFINED+290,this.SGD_AES256_ECB=this.SGD_VENDOR_DEFINED+321,this.SGD_AES256_CBC=this.SGD_VENDOR_DEFINED+322,this.SGD_RSA=65536,this.SGD_SM2_1=131328,this.SGD_SM2_2=131584,this.SGD_SM2_3=132096,this.SGD_SM3=1,this.SGD_SHA1=2,this.SGD_SHA256=4,this.SGD_RAW=128,this.SGD_MD5=129,this.SGD_SHA384=130,this.SGD_SHA512=131,this.SGD_CERT_VERSION=1,this.SGD_CERT_SERIAL=2,this.SGD_CERT_ISSUE=5,this.SGD_CERT_VALID_TIME=6,this.SGD_CERT_SUBJECT=7,this.SGD_CERT_DER_PUBLIC_KEY=8,this.SGD_CERT_DER_EXTENSIONS=9,this.SGD_CERT_NOT_BEFORE=16,this.SGD_CERT_ISSUER_CN=33,this.SGD_CERT_ISSUER_O=34,this.SGD_CERT_ISSUER_OU=35,this.SGD_CERT_ISSUER_C=36,this.SGD_CERT_ISSUER_P=37,this.SGD_CERT_ISSUER_L=38,this.SGD_CERT_ISSUER_S=39,this.SGD_CERT_ISSUER_EMAIL=40,this.SGD_CERT_SUBJECT_CN=49,this.SGD_CERT_SUBJECT_O=50,this.SGD_CERT_SUBJECT_OU=51,this.SGD_CERT_SUBJECT_EMALL=52,this.SGD_REMAIN_TIME=53,this.SGD_SIGNATURE_ALG=54,this.SGD_CERT_SUBJECT_C=55,this.SGD_CERT_SUBJECT_P=56,this.SGD_CERT_SUBJECT_L=57,this.SGD_CERT_SUBJECT_S=58,this.SGD_CERT_CRL=65,this.SGD_DEVICE_SORT=513,this.SGD_DEVICE_TYPE=514,this.SGD_DEVICE_NAME=515,this.SGD_DEVICE_MANUFACTURER=516,this.SGD_DEVICE_HARDWARE_VERSION=517,this.SGD_DEVICE_SOFTWARE_VERSION=518,this.SGD_DEVICE_STANDARD_VERSION=519,this.SGD_DEVICE_SERIAL_NUMBER=520,this.SGD_DEVICE_SUPPORT_SYM_ALG=521,this.SGD_DEVICE_SUPPORT_ASYM_ALG=522,this.SGD_DEVICE_SUPPORT_HASH_ALG=523,this.SGD_DEVICE_SUPPORT_STORANGE_SPACE=524,this.SGD_DEVICE_SUPPORT_FREE_SAPCE=525,this.SGD_DEVICE_RUNTIME=526,this.SGD_DEVICE_USED_TIMES=527,this.SGD_DEVICE_LOCATION=528,this.SGD_DEVICE_DESCRIPTION=529,this.SGD_DEVICE_MANAGER_INFO=530,this.SGD_DEVICE_MAX_DATA_SIZE=531,this.TRUE=1,this.FALSE=0,this.GM3000=1,this.K5=3,this.TF=4,this.HT=5,this.SJK1137=2,this.TYPE_UKEY=1,this.TYPE_FPKEY=2;var t=null;function r(){var e={versions:function(){var e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Linux")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari")}}(),language:(navigator.browserLanguage||navigator.language).toLowerCase()};return!(!e.versions.mobile||!(e.versions.ios||e.versions.android||e.versions.iPhone||e.versions.iPad))}this.SOF_GetLastError=function(){return null==t?-1:t.SOF_GetLastError()},this.SOF_LoadLibrary=function(e){var n;if(os=check_os(),null==t&&(t=new mTokenPlugin),e==this.GM3000)n=r()?t.SOF_LoadLibrary("1","mToken OTG","com.longmai.security.plugin.driver.otg.OTGDriver"):t.SOF_LoadLibrary("mtoken_gm3000_hnca.dll","libgm3000.1.0.so","libgm3000.1.0.dylib");else if(e==this.SJK1137)n=t.SOF_LoadLibrary("SKF_APP.dll","libhunca_hsic_skf.so","libhunca_hsic_skf.dylib");else if(e==this.HT)n=t.SOF_LoadLibrary("HUNCA_HT_20522_SKF.dll","libhunca_ht_h2070f63_skf.so","libhunca_ht_h2070f63_skf.dylib");else if(e==this.K5)n=r()?t.SOF_LoadLibrary("2","mToken K5 Bluetooth","com.longmai.security.plugin.driver.ble.BLEDriver"):t.SOF_LoadLibrary("mtoken_k5.dll","libgm3000.1.0.so","libk5.1.0.dylib");else{if(e!=this.TF)return-1;n=r()?t.SOF_LoadLibrary("0","mToken TF/SD Card","com.longmai.security.plugin.driver.tf.TFDriver"):t.SOF_LoadLibrary("mtoken_tf.dll","libgm3000.1.0.so","libtf.dylib")}return 0!=n?-2:this.SAR_OK},this.SOF_EnumDevice=function(){if(null==t)return null;var e=t.SOF_EnumDevice();return null==e||e.length<=0?null:e.split("||")},this.SOF_GetVersion=function(){return null==t?null:t.SOF_GetVersion()},this.SOF_GetDeviceInstance=function(e,r){return null==t?-1:t.SOF_GetDeviceInstance(e,r)},this.SOF_ReleaseDeviceInstance=function(){return null==t?-1:t.SOF_ReleaseDeviceInstance()},this.SOF_GetUserList=function(){if(null==t)return null;var e=t.SOF_GetUserList();if(null==e||e.length<=0)return null;for(var r=new Array,n=e.split("&&&"),a=n.length,i=0;i<a;i++)r[i]=n[i].split("||");return r},this.SOF_ExportUserCert=function(e,r){return null==t?null:t.SOF_ExportUserCert(e,r)},this.SOF_GetDeviceInfo=function(e){return null==t?null:t.SOF_GetDeviceInfo(e)},this.SOF_GetCertInfo=function(e,r){return null==t?null:t.SOF_GetCertInfo(e,r)},this.SOF_GetCertInfoByOid=function(e,r){return null==t?null:t.SOF_GetCertInfoByOid(e,r)},this.SOF_Login=function(e){return null==t?-1:t.SOF_Login(e)},this.SOF_LogOut=function(){return null==t?-1:t.SOF_LogOut()},this.SOF_GetPinRetryCount=function(){return null==t?-1:t.SOF_GetPinRetryCount()},this.SOF_ChangePassWd=function(e,r){return null==t?-1:t.SOF_ChangePassWd(e,r)},this.SOF_SetDigestMethod=function(e){return null==t?-1:t.SOF_SetDigestMethod(e)},this.SOF_SetUserID=function(e){return null==t?-1:t.SOF_SetUserID(e)},this.SOF_SetEncryptMethodAndIV=function(e,r){return null==t?-1:t.SOF_SetEncryptMethodAndIV(e,r)},this.SOF_EncryptFileToPKCS7=function(e,r,n,a){return null==t?-1:t.SOF_EncryptFileToPKCS7(e,r,n,a)},this.SOF_SignFileToPKCS7=function(e,r,n){return null==t?-1:t.SOF_SignFileToPKCS7(e,r,n)},this.SOF_VerifyFileToPKCS7=function(e,r){return null==t?-1:t.SOF_VerifyFileToPKCS7(e,r)},this.SOF_DecryptFileToPKCS7=function(e,r,n,a,i,s){return null==t?-1:t.SOF_DecryptFileToPKCS7(e,r,n,a,i,s)},this.SOF_DigestData=function(e,r,n){return null==t?null:t.SOF_DigestData(e,r,n)},this.SOF_SignData=function(e,r,n,a){return null==t?null:t.SOF_SignData(e,r,n,a)},this.SOF_SignDataInteractive=function(e,r,n,a){return null==t?null:t.SOF_SignDataInteractive(e,r,n,a)},this.SOF_SignDataToPKCS7=function(e,r,n,a){return null==t?null:t.SOF_SignDataToPKCS7(e,r,n,a)},this.SOF_VerifyDataToPKCS7=function(e,r,n){return null==t?-1:t.SOF_VerifyDataToPKCS7(e,r,n)},this.SOF_VerifySignedData=function(e,r,n,a){return null==t?-1:t.SOF_VerifySignedData(e,r,n,a)},this.SOF_EncryptDataPKCS7=function(e,r,n){return null==t?null:t.SOF_EncryptDataPKCS7(e,r,n)},this.SOF_DecryptDataPKCS7=function(e,r,n){return null==t?null:t.SOF_DecryptDataPKCS7(e,r,n)},this.SOF_GenRemoteUnblockRequest=function(){return null==t?null:t.SOF_GenRemoteUnblockRequest()},this.SOF_GenResetpwdResponse=function(e,r,n){return null==t?null:t.SOF_GenResetpwdResponse(e,r,n)},this.SOF_RemoteUnblockPIN=function(e){return null==t?null:t.SOF_RemoteUnblockPIN(e)},this.SOF_SignDataToPKCS7=function(e,r,n,a){return null==t?null:t.SOF_SignDataToPKCS7(e,r,n,a)},this.SOF_VerifyDataToPKCS7=function(e,r,n){return null==t?null:t.SOF_VerifyDataToPKCS7(e,r,n)},this.SOF_ExportPubKey=function(e,r,n){return null==t?null:t.SOF_ExportPubKey(e,r,n)},this.SOF_EncryptByPubKey=function(e,r,n){return null==t?null:t.SOF_EncryptByPubKey(e,r,n)},this.SOF_DecryptByPrvKey=function(e,r,n){return null==t?null:t.SOF_DecryptByPrvKey(e,r,n)},this.SOF_GenerateP10Request=function(e,r,n,a,i,s){return null==t?null:t.SOF_GenerateP10Request(e,r,n,a,i,s)},this.SOF_EnumCertContiner=function(){return null==t?null:t.SOF_EnumCertContiner()},this.SOF_FindContainer=function(e){return null==t?null:t.SOF_FindContainer(e)},this.SOF_DeleteCert=function(e){return null==t?null:t.SOF_DeleteCert(e)},this.SOF_DeleteContainer=function(e){return null==t?null:t.SOF_DeleteContainer(e)},this.SOF_SignByCert=function(e,r){return null==t?null:t.SOF_SignByCert(e,r)},this.SOF_VerifyByCert=function(e,r,n){return null==t?null:t.SOF_VerifyByCert(e,r,n)},this.SOF_ImportCert=function(e,r,n){return null==t?null:t.SOF_ImportCert(e,r,n)},this.SOF_ImportCryptoCertAndKey=function(e,r,n,a,i,s,o){return null==t?null:t.SOF_ImportCryptoCertAndKey(e,r,n,a,i,s,o)},this.SOF_VerifyByExtCert=function(e,r,n,a){return null==t?null:t.SOF_VerifyByExtCert(e,r,n,a)},this.SOF_GenerateRandom=function(e){return null==t?null:t.SOF_GenerateRandom(e)},this.SOF_SymEncryptFile=function(e,r,n,a){return null==t?null:t.SOF_SymEncryptFile(e,r,n,a)},this.SOF_SymDecryptFile=function(e,r,n,a){return null==t?null:t.SOF_SymDecryptFile(e,r,n,a)},this.SOF_SymEncryptData=function(e,r){return null==t?null:t.SOF_SymEncryptData(e,r)},this.SOF_SymDecryptData=function(e,r){return null==t?null:t.SOF_SymDecryptData(e,r)},this.SOF_GenerateQRCode=function(e){return null==t?null:t.SOF_GenerateQRCode(e)},this.SOF_VerifyPinMS=function(e){return null==t?null:t.SOF_VerifyPinMS(e)},this.SOF_GetHardwareType=function(){return null==t?null:t.SOF_GetHardwareType()},this.SOF_VerifyFingerprint=function(){return null==t?null:t.SOF_VerifyFingerprint()},this.SOF_EnumFiles=function(){if(null==t)return null;var e=t.SOF_EnumFiles();return null==e||e.length<=0?null:e.split("||")},this.SOF_ReadFile=function(e,r,n){return null==t?null:t.SOF_ReadFile(e,Number(r),Number(n))},this.SOF_WriteFile=function(e,r,n){return null==t?null:t.SOF_WriteFile(e,r,n)},this.SOF_CreateFile=function(e,r,n,a){return null==t?null:t.SOF_CreateFile(e,r,n,a)},this.SOF_DeleteFile=function(e){return null==t?null:t.SOF_DeleteFile(e)}}function hasPlugin(e){e=e.toLowerCase();for(var t=0;t<navigator.plugins.length;t++)if(navigator.plugins[t].name.toLowerCase().indexOf(e)>-1)return!0;return!1}function check_os(){var e=-1!=navigator.userAgent.indexOf("Windows",0)?1:0,t=(navigator.userAgent.indexOf("mac",0),-1!=navigator.userAgent.indexOf("Linux",0)?1:0);navigator.userAgent.indexOf("X11",0);return e?"MS Windows":t&&"Lunix",hasPlugin("mPlugin1.0.0.1")?(linuxWin=2,"id_mPluginV2Router"):(linuxWin=1,"mTokenPlugin")}split=split||function(e){var t,r=String.prototype.split,n=/()??/.exec("")[1]===e;return t=function(t,a,i){if("[object RegExp]"!==Object.prototype.toString.call(a))return r.call(t,a,i);var s,o,c,u,l=[],m=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.extended?"x":"")+(a.sticky?"y":""),f=0;a=new RegExp(a.source,m+"g");t+="",n||(s=new RegExp("^"+a.source+"$(?!\\s)",m)),i=i===e?-1>>>0:i>>>0;while(o=a.exec(t)){if(c=o.index+o[0].length,c>f&&(l.push(t.slice(f,o.index)),!n&&o.length>1&&o[0].replace(s,(function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(o[t]=e)})),o.length>1&&o.index<t.length&&Array.prototype.push.apply(l,o.slice(1)),u=o[0].length,f=c,l.length>=i))break;a.lastIndex===o.index&&a.lastIndex++}return f===t.length?!u&&a.test("")||l.push(""):l.push(t.slice(f)),l.length>i?l.slice(0,i):l},String.prototype.split=function(e,r){return t(this,e,r)},t}();var linuxWin=0,os;function mTokenPlugin(){var _xmlhttp,retJSON="",_curDevName;function AjaxIO(e){if("id_mPluginV2Router"==os){var t=null,r="http://127.0.0.1:51235/alpha";t=document.getElementById("id_mPluginV2Router"),null==t&&alert("无法获取到插件,请确认已经安装好插件!");var n=e;return retJSON=t.invoke(r,n),retJSON}{var a="http://127.0.0.1:51235/alpha";let t=e;null==_xmlhttp&&(_xmlhttp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")),_xmlhttp.open("POST",a,!1),_xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_xmlhttp.send("json="+t)}}function GetHttpResult(){if(4==_xmlhttp.readyState&&200==_xmlhttp.status){var obj=eval("("+_xmlhttp.responseText+")");return obj}return null}this.SOF_GetLastError=function(){var json='{"function":"SOF_GetLastError"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.errorCode}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_LoadLibrary=function(windows,linux,mac){var json='{"function":"SOF_LoadLibrary", "winDllName":"'+windows+'", "linuxSOName":"'+linux+'", "macDylibName":"'+mac+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumDevice=function(){var json='{"function":"SOF_EnumDevice"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_GetVersion=function(){var json='{"function":"SOF_GetVersion"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.version}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.version:-2},this.SOF_GetDeviceInstance=function(DeviceName,ApplicationName){var json='{"function":"SOF_GetDeviceInstance", "deviceName":"'+DeviceName+'", "applicationName":"'+ApplicationName+'"}';if(2==linuxWin){var retJSON="";try{_curDevName=DeviceName,retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?(0==ret.rtn&&(_curDevName=DeviceName),ret.rtn):-2},this.SOF_ReleaseDeviceInstance=function(){var json='{"function":"SOF_ReleaseDeviceInstance", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetUserList=function(){var json='{"function":"SOF_GetUserList", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_ExportUserCert=function(ContainerName,KeySpec){var json='{"function":"SOF_ExportUserCert", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+KeySpec+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.cert}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.cert:-2},this.SOF_GetDeviceInfo=function(Type){var json='{"function":"SOF_GetDeviceInfo", "deviceName":"'+_curDevName+'", "type":'+Type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:-2},this.SOF_GetCertInfo=function(Base64EncodeCert,Type){var json='{"function":"SOF_GetCertInfo", "base64EncodeCert":"'+Base64EncodeCert+'", "type":'+Type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:-2},this.SOF_GetCertInfoByOid=function(Base64EncodeCert,OID){var json='{"function":"SOF_GetCertInfoByOid", "base64EncodeCert":"'+Base64EncodeCert+'", "oid":"'+OID+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.info}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.info:null},this.SOF_Login=function(PassWd){var json='{"function":"SOF_Login", "deviceName":"'+_curDevName+'", "passWd":"'+PassWd+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_LogOut=function(){var json='{"function":"SOF_LogOut", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetPinRetryCount=function(){var json='{"function":"SOF_GetPinRetryCount", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.retryCount}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.retryCount:-2},this.SOF_ChangePassWd=function(OldPassWd,NewPassWd){var json='{"function":"SOF_ChangePassWd", "deviceName":"'+_curDevName+'", "oldUpin":"'+OldPassWd+'", "newUpin":"'+NewPassWd+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetDigestMethod=function(DigestMethod){var json='{"function":"SOF_SetDigestMethod","deviceName":"'+_curDevName+'", "digestMethod":'+DigestMethod+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetUserID=function(UserID){var json='{"function":"SOF_SetUserID","deviceName":"'+_curDevName+'", "userID":"'+UserID+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SetEncryptMethodAndIV=function(EncryptMethod,EncryptIV){var json='{"function":"SOF_SetEncryptMethodAndIV","deviceName":"'+_curDevName+'", "encryptMethod":'+EncryptMethod+', "encryptIV":"'+EncryptIV+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EncryptFileToPKCS7=function(Cert,InFile,OutFile,type){var json='{"function":"SOF_EncryptFileToPKCS7", "deviceName":"'+_curDevName+'", "cert":"'+Cert+'", "inFile":"'+InFile.replace(/\\/g,"\\\\")+'", "outFile":"'+OutFile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.envelopData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.envelopData:-2},this.SOF_SignFileToPKCS7=function(ContainerName,KeySpec,InFile){var json='{"function":"SOF_SignFileToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "KeySpec":'+KeySpec+', "inFile":"'+InFile.replace(/\\/g,"\\\\")+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:-2},this.SOF_VerifyFileToPKCS7=function(strPkcs7Data,InFilePath){var json='{"function":"SOF_VerifyFileToPKCS7", "deviceName":"'+_curDevName+'","strPkcs7Data":"'+strPkcs7Data+'", "inFile":"'+InFilePath.replace(/\\/g,"\\\\")+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DecryptFileToPKCS7=function(ContainerName,keySpec,Pkcs7Data,InFile,OutFile,type){var json='{"function":"SOF_DecryptFileToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+keySpec+', "pkcs7Data":"'+Pkcs7Data+'", "inFile":"'+InFile.replace(/\\/g,"\\\\")+'", "outFile":"'+OutFile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DigestData=function(ContainerName,InData,InDataLen){var json='{"function":"SOF_DigestData","deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.digest}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.digest:-2},this.SOF_SignDataInteractive=function(ContainerName,ulKeySpec,inData,InDataLen){var InDataBase64=inData,json='{"function":"SOF_SignDataInteractive", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InDataBase64+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:null},this.SOF_SignData=function(ContainerName,ulKeySpec,InData,InDataLen){var json='{"function":"SOF_SignDataEx", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:-2},this.SOF_VerifySignedData=function(Base64EncodeCert,digestMethod,InData,SignedValue){var json='{"function":"SOF_VerifySignedDataEx","deviceName":"'+_curDevName+'", "base64EncodeCert":"'+Base64EncodeCert+'", "digestMethod":'+digestMethod+', "inData":"'+InData+'", "signedValue":"'+SignedValue+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EncryptDataPKCS7=function(Base64EncodeCert,InData,InDataLen){var json='{"function":"SOF_EncryptDataPKCS7", "deviceName":"'+_curDevName+'", "base64EncodeCert":"'+Base64EncodeCert+'", "inData":"'+InData+'", "inDataLen":'+InDataLen+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.encrypedData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.encrypedData:-2},this.SOF_DecryptDataPKCS7=function(ContainerName,ulKeySpec,InData){var json='{"function":"SOF_DecryptDataPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.decryptedData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.decryptedData:-2},this.SOF_GenRemoteUnblockRequest=function(){var json='{"function":"SOF_GenRemoteUnblockRequest", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.request}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.request:-2},this.SOF_GenResetpwdResponse=function(request,soPin,userPin){var json='{"function":"SOF_GenResetpwdResponse", "deviceName":"'+_curDevName+'", "request":"'+request+'", "soPin":"'+soPin+'", "userPin":"'+userPin+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.request}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.request:-2},this.SOF_RemoteUnblockPIN=function(request){var json='{"function":"SOF_RemoteUnblockPIN", "deviceName":"'+_curDevName+'", "request":"'+request+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SignDataToPKCS7=function(ContainerName,ulKeySpec,InData,ulDetached){var json='{"function":"SOF_SignDataToPKCS7", "deviceName":"'+_curDevName+'", "containerName":"'+ContainerName+'", "keySpec":'+ulKeySpec+', "inData":"'+InData+'", "detached":'+ulDetached+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.pkcs7}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.pkcs7:-2},this.SOF_VerifyDataToPKCS7=function(strPkcs7Data,OriginalText,ulDetached){var json='{"function":"SOF_VerifyDataToPKCS7", "deviceName":"'+_curDevName+'", "pkcs7":"'+strPkcs7Data+'", "original":"'+OriginalText+'", "detached":'+ulDetached+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_ExportPubKey=function(containerName,keySpec,expType){var json='{"function":"SOF_ExportPubKeyEx","deviceName":"'+_curDevName+'", "containerName":"'+containerName+'", "keySpec":'+keySpec+', "expType":'+expType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.pubKey}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.pubKey:-2},this.SOF_EncryptByPubKey=function(strPubKey,strInput,cerType){var json='{"function":"SOF_EncryptByPubKey", "deviceName":"'+_curDevName+'", "pubKey":"'+strPubKey+'", "asymPlain":"'+strInput+'", "keySpec":'+cerType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.asymCipher}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.asymCipher:null},this.SOF_DecryptByPrvKey=function(containerName,cerType,strAsymCipher){var json='{"function":"SOF_DecryptByPrvKey", "deviceName":"'+_curDevName+'", "containerName":"'+containerName+'", "asymCipher":"'+strAsymCipher+'", "keySpec":'+cerType+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.asymPlain}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.asymPlain:null},this.SOF_CreateKeyPair=function(container,keySpec,asymAlg,keyLength){var json='{"function":"SOF_CreateKeyPair","deviceName":"'+_curDevName+'", "containerName":"'+container+'", "asymAlg":'+asymAlg+', "keySpec":'+keySpec+',"keyLength":'+keyLength+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumCertContiner=function(){var json='{"function":"SOF_EnumCertContiner", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.containerName}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.containerName:""},this.SOF_FindContainer=function(certSN){var json='{"function":"SOF_FindContainer","deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.containerName}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.containerName:""},this.SOF_DeleteCert=function(certSN){var json='{"function":"SOF_DeleteCert","deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_DeleteContainer=function(certSN){var json='{"function":"SOF_DeleteContainer", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SignByCert=function(certSN,plain){var json='{"function":"SOF_SignByCert", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'", "inData":"'+plain+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.signed}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.signed:null},this.SOF_VerifyByCert=function(certSN,plain,signature,digestMethod){var json='{"function":"SOF_VerifyByCert", "deviceName":"'+_curDevName+'", "certSN":"'+certSN+'","digestMethod":'+digestMethod+', "inData":"'+plain+'", "signed":"'+signature+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_VerifyByExtCert=function(cert,plain,signature,digestMethod){var json='{"function":"SOF_VerifyByExtCert","deviceName":"'+_curDevName+'", "cert":"'+cert+'", "digestMethod":'+digestMethod+', "inData":"'+plain+'", "signed":"'+signature+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GenerateP10Request=function(_curDevName,container,dn,asymAlg,keySpec,keyLength){var json='{"function":"SOF_GenerateP10Request", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "certDN":"'+dn+'", "asymAlg":'+asymAlg+', "keySpec":'+keySpec+',"keyLength":'+keyLength+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_ImportCert=function(container,cert,keySpec){var json='{"function":"SOF_ImportCert", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "cert":"'+cert+'", "keySpec":'+keySpec+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_ImportCryptoCertAndKey=function(container,cert,nAsymAlg,EncryptedSessionKeyData,symAlg,EncryptedPrivateKeyData,mode){var json='{"function":"SOF_ImportCryptoCertAndKey", "deviceName":"'+_curDevName+'", "containerName":"'+container+'", "cert":"'+cert+'", "asymAlg":'+nAsymAlg+', "sessionKey":"'+EncryptedSessionKeyData+'", "symAlg":"'+symAlg+'", "encrypedData":"'+EncryptedPrivateKeyData+', + "mode":'+mode+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GenerateRandom=function(length){var json='{"function":"SOF_GenRandom", "deviceName":"'+_curDevName+'", "inDataLen":'+length+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:-2},this.SOF_SymEncryptFile=function(sessionKey,srcfile,destfile,type){var json='{"function":"SOF_SymEncryptFile", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inFile":"'+srcfile.replace(/\\/g,"\\\\")+'", "outFile":"'+destfile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SymDecryptFile=function(sessionKey,srcfile,destfile,type){var json='{"function":"SOF_SymDecryptFile", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inFile":"'+srcfile.replace(/\\/g,"\\\\")+'", "outFile":"'+destfile.replace(/\\/g,"\\\\")+'", "type":'+type+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_SymEncryptData=function(sessionKey,inData){var json='{"function":"SOF_SymEncryptData", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inData":"'+inData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_SymDecryptData=function(sessionKey,inData){var json='{"function":"SOF_SymDecryptData", "deviceName":"'+_curDevName+'", "sessionKey":"'+sessionKey+'", "inData":"'+inData+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_GenerateQRCode=function(qrcode_text_in){var qrcode_text=qrcode_text_in.replace(/"/g,'\\"'),json='{"module":"libQR","function":"SOF_GenerateQRCode", "inData":"'+qrcode_text+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.outData:null},this.SOF_VerifyPinMS=function(responseKey){var json='{"function":"SOF_VerifyPinMS", "deviceName":"'+_curDevName+'", "passWd":"'+responseKey+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_GetHardwareType=function(){var json='{"function":"SOF_GetHardwareType", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.type}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.type:-2},this.SOF_VerifyFingerprint=function(){var json='{"function":"SOF_VerifyFingerprint", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.rtn:-2},this.SOF_EnumFiles=function(){var json='{"function":"SOF_EnumFiles", "deviceName":"'+_curDevName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.array}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();return ret?ret.array:-2},this.SOF_ReadFile=function(fileName,offset,length){var json='{"function":"SOF_ReadFile", "deviceName":"'+_curDevName+'", "fileName":"'+fileName+'", "offset":'+offset+',"length":'+length+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.outData}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.outData},this.SOF_WriteFile=function(fileName,offset,data){var json='{"function":"SOF_WriteFile", "deviceName":"'+_curDevName+'", "fileName":"'+fileName+'", "offset":'+offset+',"inData":"'+data+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SOF_CreateFile=function(fileName,length,readRight,writeRight){var json='{"function":"SOF_CreateFile", "deviceName":"'+_curDevName+'","fileName":"'+fileName+'", "length" :'+length+', "readRight":'+readRight+',"writeRight":'+writeRight+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SOF_DeleteFile=function(fileName){var json='{"function":"SOF_DeleteFile", "deviceName":"'+_curDevName+'","fileName":"'+fileName+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketConnect=function(HostName,Port){var json='{"module":"libSocket","function":"SocketConnect", "HostName":"'+HostName+'", "Port":'+Port+"}";if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketDisConnect=function(){var json='{"module":"libSocket","function":"SocketDisConnect"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.rtn}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.rtn},this.SocketSendText=function(SendText){var json='{"module":"libSocket","function":"SocketSendText", "SendText":"'+SendText+'"}';if(2==linuxWin){var retJSON="";try{retJSON=AjaxIO(json)}catch(e){return-3}if(retJSON.length>3){var obj=eval("("+retJSON+")");return obj.RecvText}return-2}try{AjaxIO(json)}catch(e){return-3}var ret=GetHttpResult();if(ret)return ret.RecvText}}},9258:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAVCAYAAACkCdXRAAAAAXNSR0IArs4c6QAAAeFJREFUOE+tlLtrFFEUh7/fjEWK/AEWio2QSrKFVhq46wNsBAuLFAHdh5DCMmJAxBEUC7VWdDcb0CKloGDhYy8YsbEwIGhaiWBpkcIimSMzzqy7s8lmjA4MF+45883vPMWIp9q2CYNjBOwjZk2w3G1odbtPtJXheMsOxAGLgNvC/jwImX1zXt+KtiFYqkZ4YC/GGmKJmFUCJoCZ9B6+y3BFlQMwF9ke9vMecRhjiYCar+lnrsB1bAzjMXAO44Nv6Ei/ukFY204iXgJf+MohH2mjGEr2w8+IgxinfEOvcp9BWMduY8xjzPmG7m2XaLdgV4GbyevrujYEy3LVIqkeJOfyiEInPs3ER0Yzz12qzC3YHWBuVJvsYLvr67os98gcIV2MdcQDxHppqDGOMYvSc0quY9cxomL8ZYEuz7OY/wMTka/pRhFSbdukiYqMj92GVoaqm4sR0UhYddGO2mbab0+ImVHIdPeC3vUDe5HtBMscN3xdt1zHrmCM97dCWryyylzLThNwn5gzBDzDuNjfpH8Fy9rmLcZrxAlf19Suc5bBujnA11X9N1jLzhIyySYrvqmn5WCFOdtdn/1O8gvgRzoB0Fs5JYBjxFzqTcB/nc3e4ntoFUIqJdQMuiRLsqlPyeUv/Lf/e9HpQCIAAAAASUVORK5CYII="},4177:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA8lJREFUWEfVWU1IVFEU/g7kQhcVjAuDBBXSFobjJsgWRtGiSKqNLdVtm7TaBEVK0arQNrVMl7VJKdoEoQsL3DiCGwsqUrBFRrZwFgY3vvfefXPnzbx375sZxjowi5n7c777nXt+7hlBhaKUagNwEcApAAeDTzbYLgfgV/CZBzAnIl8rUSVpFimlCOQagEsANBjXLQh6FsBjESF4J3ECaAAbDZhy2jxmEsFNuQK1AlRKDQOYrAGwKF4CHRERshoriQCVUncBjFdDl8PacRGZiJtXFmBgUrJG9uoh0wDGyt3NOIDP6ghOEzAtIiNRNkoAKqVoUpp2L2RCRIquVBHAwCHI3l7KZdNxQoDBvfuS1lu3doDcdyC/C+zsAk0NQGMD0JkBWg8Un3PtB9DVbD07vbtd30cTYCrTUtnrNeDjVrzCTCMwcBQ40Qo8XwV4mKvHrQA5ITS1BzAte9PLwId1J0XepMP7gY3f/vzJcz7LFglZ1ACd2KMJHy0WlFFJ4z4gewjINPlm3coD69tAbhP4mS+FMdQL9LXa8HnjHosa4LJLbo0yd7oDGOiKZ+TVmn8NTOlpcTZzTkR6JahK6ByJQkd4ulSY4sLEvflitjXjU+dt2sLxdgJkAcCskSi33hZMdqHLZy5JeB14KDoGhWbnb/R2Ok62xabRGx8jQCZr1nWxws3vL/jDvHMPzjpddCcElklzBMiCsj9ponmXeO+udNdCt9MeCwRodRDTOa73OQVbJ+0Ok3IEqGwTHy4Cn4KAXGeA+C8A8q3Q43oHB7uBMx02zkvH6cGMiQzoKdavODmJGQOZtu7wHZdSmIvfffYXpbgmnpNYwww3HX0D5P+kVhDGQB2m+MPt/tJKJ+a8XphxCtRmqGEsJIs0l02i+ftIBrh50rYqHPcCNR/g1lRHRUxdugAgyBsnk5lgFnmyVEh3aQ4WQGzXxYLVUbiAGYXVjDY1f2Otx2pGpy4ehKXV+2+lJZlL/ja4XRGRbKpyKw6kzWBkbvCYc5mltysqt9jSYO8kUqSXV02WXqy6Fa28c0yN0fLfcqhtAG0s+ysu+alAv0eWN4GN7YLpGYo6m33GUgIrYo9foo8mZxZtZq1iPGSvCCC/KKXYtXpZxea1WFr+2al3/qcf7gZI9kqGakFHij1mRKSkF5TUPGIPr14gZ5hNnZtHdTZ3ST/GZN21gUk2nWJkCpPSW4eramAaTDKQs6jgp1qgBMYDT7n0qq0MmowELRKCZDhKLHLLMLkSNNGdgOn1qQBGwLIKIlDzbwgNmmDMvyFmK/0b4i8ThIex2QASkAAAAABJRU5ErkJggg=="}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}!function(){__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return __webpack_require__.d(t,{a:t}),t}}(),function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){__webpack_require__.p=""}();var __webpack_exports__={};return function(){"use strict";if(__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return M}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(__webpack_require__.p=t[1])}var r=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:e.title,visible:e.isShow,width:"350px","append-to-body":!0},on:{close:e.handleClose}},[t("slide-verify",{ref:"slideblock",attrs:{l:42,r:10,w:310,h:155,imgs:e.imgs,accuracy:e.accuracy,"slider-text":e.sliderText},on:{success:e.onSuccess,fail:e.onFail,again:e.onAgain,refresh:e.onRefresh,fulfilled:e.onFulfilled}})],1)},n=[],a=(__webpack_require__(7658),{name:"YcSlideVerify",props:{title:{type:String,default:"滑动验证"},isShow:{type:Boolean,default:!0}},data(){return{accuracy:5,sliderText:"拖动完成上方拼图",countDownNum:120}},computed:{imgs(){const e=[];for(let t=1;t<9;t++)e.push(`/cloud-img/${t}.jpg`);return e}},watch:{isShow(e){e&&this.$refs.slideblock&&this.$refs.slideblock.reset&&this.$refs.slideblock.reset()}},created(){},methods:{onSuccess(){this.$emit("success")},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.$emit("close")}}}),i=a;function s(e,t,r,n,a,i,s,o){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):a&&(c=o?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var m=u.beforeCreate;u.beforeCreate=m?[].concat(m,c):[c]}return{exports:e,options:u}}var o=s(i,r,n,!1,null,"33a7114a",null),c=o.exports,u=function(){var e=this,t=e._self._c;return t("div",{ref:"customer",staticStyle:{display:"none"}},[t("chat-vue",{attrs:{visible:e.visible,jumpPage:e.jumpPage,title:e.title,json:e.json,regular:e.regular},on:{"update:visible":function(t){e.visible=t}}}),t("div",{staticClass:"customerService"},[t("div",{staticClass:"mobile"},[e._t("default")],2),t("div",{staticClass:"headset",on:{click:function(t){e.visible=!e.visible}}},[e._m(0),e._m(1)])])],1)},l=[function(){var e=this,t=e._self._c;return t("div",[t("i",{staticClass:"el-icon-headset"})])},function(){var e=this,t=e._self._c;return t("div",[t("a",[e._v("在线客服")])])}],m=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"chat"},[t("header",[t("img",{attrs:{src:"/cloud-img/customerService/admin.jpg"}}),t("span",[e._v(e._s(e.title))]),e.jumpPage?t("i",{staticClass:"icon-enlarge",on:{click:e.enlarge}},[t("img",{attrs:{src:"/cloud-img/customerService/enlarge.png"}})]):e._e(),t("i",{staticClass:"el-icon-close",on:{click:e.close}})]),t("main",{ref:"main"},e._l(e.messagelist,(function(r,n){return t("div",{key:n,class:["message",r.id]},[t("img",{staticClass:"avatar",attrs:{src:`/cloud-img/customerService/${r.id}.jpg`}}),t("div",{staticClass:"content"},[e._l(r.msg,(function(n,a){return t("span",{key:n+a,class:r.msg.length>1?"href":"",domProps:{innerHTML:e._s((r.msg.length>1?1+a+". ":" ")+n)},on:{click:function(t){r.msg.length>1&&e.regularClick(n)}}})})),r.based?t("div",{staticClass:"based",on:{click:function(t){return e.handExpand(r)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":r.isActive}},[e._v(e._s(r.based)),t("i",{staticClass:"el-icon-d-arrow-right"})])]):e._e()],2)])})),0),t("nav",e._l(e.regular,(function(r,n){return t("el-button",{key:r+n,attrs:{size:"mini",round:""},on:{click:function(t){return e.regularClick(r)}}},[e._v(e._s(r))])})),1),t("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:2,maxRows:3},autofocus:"true",resize:"none",placeholder:"请反馈您的问题,我们将尽快回复"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.carriageReturn.apply(null,arguments)}},model:{value:e.textareaValue,callback:function(t){e.textareaValue=t},expression:"textareaValue"}}),t("el-button",{attrs:{type:"primary",size:"mini",disabled:!e.textareaValue},on:{click:e.send}},[e._v("发送")])],1)},f=[],S={props:{visible:Boolean,jumpPage:String,json:String,title:String,commit:String,regular:Array},data(){return{textareaValue:"",messagelist:[{id:"admin",msg:["您好,38号客服很高兴为你服务!"],isActive:!1}],isActive:!1}},computed:{questions(){return JSON.parse(this.json)}},methods:{close(){this.$emit("update:visible",!1)},carriageReturn(){let e=window.event||arguments[0];"Enter"!=e.key&&"Enter"!=e.code&&13!=e.keyCode||!this.textareaValue||this.send()},send(){this.textareaValue.replace(/[^\w\u4E00-\u9FA5]/g,"")&&(this.add(this.textareaValue,"personal",(()=>{this.textareaValue=""})),this.search(this.textareaValue))},regularClick(e){this.add(e),this.search(e)},search(e){const t=this.questions.filter((t=>t.faq.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase().includes(e.replace(/[^\w\u4E00-\u9FA5]/g,"").toLowerCase())));let[r,n]=["",""];t.length>1?r=t.reduce(((e,t)=>[...e,t.faq]),[]):1==t.length?[r,n]=[t[0].msg,t[0].based]:r=["您好","你好"].includes(e.replace(/[^\w\u4E00-\u9FA5]/g,""))?"您好!":'请提关键词问题?<br/> 比如: 税率<br/><br/><a href="tel:4000770168">客服热线:<span style="color: #FF575F;">400 0770 168</span></a>',this.add(r,"admin",null,n)},add(e,t="personal",r,n=""){this.messagelist.push({id:t,msg:Array.isArray(e)?e:[e],based:n,isActive:!1}),this.$nextTick((()=>{r&&r(),this.$refs.main.scrollTop=this.$refs.main.scrollHeight}))},enlarge(){window.open(this.jumpPage,"_blank")},handExpand(e){e.isActive=!e.isActive}}},d={name:"ChatMini",mixins:[S]},_=d,p=s(_,m,f,!1,null,"42a8b467",null),y=p.exports,h={name:"YcCustomerService",components:{chatVue:y},props:{jumpPage:String,title:String,json:String,regular:Array},data(){return{visible:!1}},computed:{hasSlot(){return Boolean(this.$slots.default)}},watch:{$route(e){e.path!=this.jumpPage?this.$refs.customer.style.display="block":this.$refs.customer.style.display="none"}},mounted(){this.$refs.customer.style.display="block"}},v=h,x=s(v,u,l,!1,null,"849349a0",null),g=x.exports,O=function(){var e=this,t=e._self._c;return t("div",{staticClass:"YcQuestion"},[t("div",{staticClass:"chatPage"},[t("header",{staticStyle:{background:"url('/cloud-img/customerService/chatTop.png') center","background-size":"cover"}},[t("div",[t("h3",[e._v(e._s(e.title))]),t("span",[e._v("Problem Help")])]),t("p",[e._v("小优为您提供24小时服务")])]),t("div",{staticClass:"main"},[t("div",[t("main",{ref:"main"},[t("p",[e._v("今天"+e._s(e.currData))]),e._l(e.messagelist,(function(r,n){return t("div",{key:n,class:["message",r.id]},[t("img",{staticClass:"avatar",attrs:{src:"/cloud-img/customerService/"+r.id+".jpg"}}),t("div",{staticClass:"content"},[e._l(r.msg,(function(n,a){return t("span",{key:n+a,class:r.msg.length>1?"href":"",domProps:{innerHTML:e._s((r.msg.length>1?1+a+". ":" ")+n)},on:{click:function(t){r.msg.length>1&&e.regularClick(n)}}})})),r.based?t("div",{staticClass:"based",on:{click:function(t){return t.preventDefault(),e.handExpand(r)}}},[t("span",[e._v("依据")]),t("span",{class:{"is-active":r.isActive}},[e._v(e._s(r.based)),t("i",{staticClass:"el-icon-d-arrow-right"})])]):e._e()],2)])}))],2),t("footer",[t("el-input",{attrs:{type:"textarea",maxlength:"500",autosize:{minRows:6,maxRows:6},autofocus:"true",resize:"none",placeholder:"请输入你要咨询的问题"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.carriageReturn.apply(null,arguments)}},model:{value:e.textareaValue,callback:function(t){e.textareaValue=t},expression:"textareaValue"}}),t("el-button",{style:e.textareaValue?"":"background-color: #F7F7F9;color: #FF575F;border-color: transparent;",attrs:{type:"primary",disabled:!e.textareaValue},on:{click:e.send}},[e._v("发送")])],1)]),t("aside",[t("el-collapse",{attrs:{accordion:""},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.questionsList,(function(r,n,a){return t("el-collapse-item",{key:n,attrs:{name:a}},[t("template",{slot:"title"},[t("img",{attrs:{src:"/cloud-img/customerService/ellipticalWenh.png"}}),e._v(e._s(n)+" ")]),e._l(r,(function(r){return t("div",{key:r,domProps:{innerHTML:e._s(r)},on:{click:function(t){return e.regularClick(r)}}})}))],2)})),1)],1)])])])},N=[],D={name:"YcQuestion",mixins:[S],data(){return{activeNames:[1]}},computed:{currData(){const e=new Date;return`${e.getHours()}:${e.getMinutes()}`},questionsList(){return this.questions.reduce(((e,t)=>(e.hasOwnProperty(t.type)?e[t.type].push(t.faq):e[t.type]=[t.faq],e)),{})}}},F=D,b=s(F,O,N,!1,null,"b15e6fbc",null),C=b.exports,P=function(){var e=this,t=e._self._c;return t("div",[t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules}},[void 0==e.loginForm.username?t("div",{staticClass:"ca-bg-box"},[t("div",{staticClass:"ca-bg-img"}),t("div",{staticClass:"ca-bg-text"},[e._v("请插入UKEY证书")]),t("img",{staticClass:"ca-refresh",attrs:{src:__webpack_require__(4177),alt:""},on:{click:e.caRead}})]):t("div",{staticClass:"ca-bg-info"},[t("div",{staticClass:"ca-bg-text"},[e._v(" CA名称:"),t("span",{staticClass:"caName"},[e._v(e._s(e.loginForm.username))])]),t("img",{staticClass:"ca-refresh",attrs:{src:__webpack_require__(4177),alt:""},on:{click:e.caRead}})]),t("el-form-item",{attrs:{prop:"password"}},[t("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码","show-password":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin.apply(null,arguments)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}},[t("el-image",{staticClass:"el-input__icon input-icon",attrs:{slot:"prefix",src:__webpack_require__(9258)},slot:"prefix"})],1)],1),t("el-form-item",[t("el-button",{staticClass:"login-btn",staticStyle:{width:"100%"},attrs:{loading:e.loading,size:"medium",type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin.apply(null,arguments)}}},[e.loading?t("span",[e._v("登 录 中...")]):t("span",[e._v("登 录")])])],1),e._t("default")],2),t("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible.showInfo,width:"30%",center:""},on:{"update:visible":function(t){return e.$set(e.dialogVisible,"showInfo",t)}}},[t("span",{staticStyle:{color:"red"}},[e._v("4444"+e._s(e.caInfo.error_text))]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVisible.showInfo=!1}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible.showInfo=!1}}},[e._v("确 定")])],1)])],1)},I=[],j=__webpack_require__(353),E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function T(e){var t,r,n,a,i,s,o,c="",u=0;e=A(e);while(u<e.length)t=e.charCodeAt(u++),r=e.charCodeAt(u++),n=e.charCodeAt(u++),a=t>>2,i=(3&t)<<4|r>>4,s=(15&r)<<2|n>>6,o=63&n,isNaN(r)?s=o=64:isNaN(n)&&(o=64),c=c+E.charAt(a)+E.charAt(i)+E.charAt(s)+E.charAt(o);return c}function A(e){var t=""+e;t=t.replace(/\r\n/g,"\n");for(var r="",n=0;n<t.length;n++){var a=t.charCodeAt(n);a<128?r+=String.fromCharCode(a):a>127&&a<2048?(r+=String.fromCharCode(a>>6|192),r+=String.fromCharCode(63&a|128)):(r+=String.fromCharCode(a>>12|224),r+=String.fromCharCode(a>>6&63|128),r+=String.fromCharCode(63&a|128))}return r}function G(){var e=new j.R("mTokenPlugin"),t=null;t="Win32"==navigator.platform||"Windows"==navigator.platform?Array("GM3000","HT","SJK1137"):Array("HT");var r="",n=0,a=1,i=1;let s=1025;var o="1234567812345678",c="控件加载失败,错误码:",u="未找到UKey!\n1.请确认是否安装最新驱动!\n2.计算机是否插入湖南CA UKey!",l="USBKey实例化失败,请确认此UKey是否插入计算机!\n点击‘刷新’按钮,更新设备列表。\n错误码:",m="Ukey密码必须为4~16位!",f="UKey密码错误",S="UKey密码修改失败",d="UKey不存在,请确认此UKey是否插入计算机,并点击'刷新'按钮,更新设备列表!",_="请点击‘刷新’按钮,更新设备列表并选择相应设备!",p="证书获取失败,请加检测Key中是否存在证书!",y="设置摘要算法失败,请重新刷新浏览器!",h="设置用户ID失败,请重新刷新浏览器",v="签名失败,待签名原文不能为空",x="签名失败,返回错误码:",g="请点击‘刷新’按钮,更新设备列表并选择相应设备!",O="证书G项信息转化证书名称失败,请点击“刷新”按钮!",N="加载国密库失败!",D="加密失败:待加密原文不能为空!",F="解密失败:待解密密文不能为空!",b="解密失败:请确认密文是否完整!\n解密所采用的Ukey是否为加密时的Ukey!",C="申请解锁请求失败!",P="此型号Ukey不支持解锁!",I="Ukey解锁失败!",E=null,A=null,G=null,w=null,k=null,R=null,J=null,L=null;function V(t){var n=0;return"GM3000"==t?n=e.SOF_LoadLibrary(e.GM3000):"HT"==t?n=e.SOF_LoadLibrary(e.HT):"SJK1137"==t&&(n=e.SOF_LoadLibrary(e.SJK1137)),0==n||(r=c+e.SOF_GetLastError(),!1)}function K(){var t="";return t=e.SOF_EnumDevice(),null==t||0==t.length?(r=u,null):t}function B(t){var n=0;return n=e.SOF_GetDeviceInstance(t,""),0==n||(r=l+e.SOF_GetLastError(),!1)}function M(){var t="";return t=e.SOF_GetUserList(),null==t||0==t.length?(r="USBkey中未找到证书!",null):t}function U(t){var n=0,a=""+t,i=0;return null==a||0==a.length||a.length<4||a.length>16?(r=m,!1):(n=e.SOF_Login(a),0==n||(i=W(),r=i>0?f+",还剩 "+i+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function H(t,n){var a=0,i=""+t,s=""+n,o=0;return null==i||0==i.length||null==s||0==s.length||i.length<4||i.length>16||s.length<4||s.length>16?(r=m,!1):(a=e.SOF_ChangePassWd(i,s),0==a||(o=W(),r=o>0?S+",还剩 "+o+" 次重试机会!":"UKey已经锁死,请联系管理员进行解锁!",!1))}function W(){var t=0;return t=e.SOF_GetPinRetryCount(),t}function q(){var t=null;return t=e.SOF_GetDeviceInfo(e.SGD_DEVICE_SERIAL_NUMBER),t}function X(t,n){var a;return a=e.SOF_ExportUserCert(t,n),null==a||0==a.length?(r=p,null):a}function Y(t,n){var a=1;return void 0==t||null==t?(r="请设置加密方式!",!1):(a=e.SOF_SetEncryptMethodAndIV(t,T(n)),0==a||(r=e.SOF_GetLastError(),!1))}function Q(t){var n=0;return n=e.SOF_SetDigestMethod(t),0==n||(r=y,!1)}function z(){var t=0;return t=e.SOF_SetUserID(o),0==t||(r=h,!1)}function $(t,n){var a="",i="",s="";return s=""+n,0==s.length?(r=D,""):(i=T(s),a=e.SOF_EncryptDataPKCS7(t,i,n.length),null==a||0==a.length?(r="加密失败,"+e.SOF_GetLastError(),""):a)}function Z(t,n,a){var i="",s="";if(i=""+a,null==t||0==t.length)return r="应用名称不能为空!","";if(0==i.length)return r=F,"";try{s=e.SOF_DecryptDataPKCS7(t,n,i)}catch(o){s=""}return void 0==s||null==s||""==s?(r=b,""):s}function ee(t,n,a,i){var s=null,o=null,c=""+a;return null==c||0==c.length?(r=v,!1):(o=T(c),s=e.SOF_SignData(t,n,T(o),o.length),null==s||0==s.length?(r=x+SOF_GetLastError(),!1):(G=i,A=s,!0))}function te(t){var r,n,a=null,i=null,s=null,o=null,c=null;if(null==t||0==t.length)return!1;k="",w="",R="",a=e.SOF_GetCertInfo(t,e.SGD_CERT_SERIAL),w=ue(a),i=e.SOF_GetCertInfo(t,e.SGD_CERT_SUBJECT),R=i,o=e.SOF_GetCertInfo(t,e.SGD_CERT_VALID_TIME),J=o,c=e.SOF_GetCertInfo(t,e.SGD_CERT_NOT_BEFORE),L=c,s=i.split(",");for(var u=0;u<s.length;u++)if(-1!=s[u].indexOf("=")&&(r=s[u].split("=")[0],n=s[u].split("=")[1],"GN"==r)){k=n;break}return!0}function re(){e.SOF_LogOut()}function ne(){var t=e.SOF_GenRemoteUnblockRequest();return null==t||""==t?(r=C,""):t}function ae(t){var n=!1;return null==t||0==t.length?(r="解锁失败解:响应不能为空!",!1):(n=e.SOF_RemoteUnblockPIN(t),0==n||(r=I,!1))}function ie(e,t,r){var n=[],a=Math.max(e.length,t.length),i=0,s=0;while(s<a||i){var o=s<e.length?e[s]:0,c=s<t.length?t[s]:0,u=i+o+c;n.push(u%r),i=Math.floor(u/r),s++}return n}function se(e,t,r){if(e<0)return null;if(0==e)return[];var n=[],a=t;while(1){if(1&e&&(n=ie(n,a,r)),e>>=1,0===e)break;a=ie(a,a,r)}return n}function oe(e,t){for(var r=e.split(""),n=[],a=r.length-1;a>=0;a--){var i=parseInt(r[a],t);if(isNaN(i))return null;n.push(i)}return n}function ce(e,t,r){var n=oe(e,t);if(null===n)return null;for(var a=[],i=[1],s=0;s<n.length;s++)n[s]&&(a=ie(a,se(n[s],i,r),r)),i=se(t,i,r);var o="";for(let c=a.length-1;c>=0;c--)o+=a[c].toString(r);return o}function ue(e){return"0x"===e.substring(0,2)&&(e=e.substring(2)),e=e.toLowerCase(),ce(e,16,10)}this.Hunca_GetLastError=function(){return r},this.Hunca_GetUserList=function(){var e=null,n=null,a=null,i=null;G=null,A=null,E=new Array;for(var s=0;s<t.length;s++){var o=t[s];if(V(o)&&(e=K(),null!=e))for(var c=0;c<e.length;c++){var l=new Object;if(!B(e[c]))break;i=M(),null==i&&0==i.length||(n=i[0][1],a=i[0][0],l.libraryName=o,l.serial=e[c],l.userName=a,l.containerName=n,E.push(l),re())}}var m=new Array;for(let t=0;t<E.length;t++)m[t]=E[t].userName;return 0==m.length?(r=u,""):m},this.Hunca_GetUserListGN=function(){var e=null,r=null,n=null,i=null,s=null,o="";E=new Array;for(var c=0;c<t.length;c++){var l=t[c];if(V(l)&&(e=K(),null!=e))for(var m=0;m<e.length;m++){k=null,w=null,o=e[m];var f=new Object;if(!B(o))break;i=M(),null==i&&0==i.length||(r=i[0][1],n=i[0][0],f.libraryName=l,f.serial=e[m],f.userName=n,f.containerName=r,s=X(f.containerName,a),te(s)&&(f.subjectGN=k,E.push(f),re()))}}var S=new Array;for(let t=0;t<E.length;t++)S[t]=E[t].subjectGN;return 0==S.length?(u,""):S},this.Hunca_userNameGNToUserName=function(e){var t=null;r="",null!=e&&0!=e.length||(r=g);for(var n=0;n<E.length;n++)if(e==E[n].subjectGN){t=E[n].userName;break}return null==t||0==t.length?(r=O,null):t},this.Hunca_GenRemoteUnblockRequest=function(e){var t=null,n=null,a="";if(r="",null==e||null==e.length)return r=_,!1;if(null==E||0==E.length)return r=u,!1;for(var i=0;i<E.length;i++)if(n=E[i],n.userName==e){t=n;break}return null==t?(r=d,!1):"GM3000"!=t.libraryName?(r=P,!1):V(t.libraryName)?!!B(t.serial)&&(null!=M()&&(a=ne(),a)):(r=N,!1)},this.HUnca_GetDeviceNumber=function(e){var t=null;if(null==e||null==e.length)return r=_,!1;if(null==E||0==E.length)return r=u,!1;for(var n=0;n<E.length;n++){let t=E[n];if(t.userName==e){tokenInfo=t;break}}return null==tokenInfo?(r=d,!1):V(tokenInfo.libraryName)?!!B(tokenInfo.serial)&&(t=q(),t+""):(r=N,!1)},this.Hunca_RemoteUnlockPIN=function(e,t){var n=null,a=null,i=!1;if(r="",null==e||null==e.length)return r=_,!1;if(null==E||0==E.length)return r=u,!1;for(var s=0;s<E.length;s++)if(a=E[s],a.userName==e){n=a;break}return null==n?(r=d,!1):"GM3000"!=n.libraryName?(r=P,!1):V(n.libraryName)?!!B(n.serial)&&(null!=M()&&(i=ae(t),i)):(r=N,!1)},this.Hunca_ChangeUserPin=function(e,t,n){var a=null,i=null;if(r="",null==e||null==e.length)return r=_,!1;if(null==E||0==E.length)return r=u,!1;for(var s=0;s<E.length;s++)if(i=E[s],i.userName==e){a=i;break}return null==a?(r=d,!1):(V(a.libraryName)||(r=N),!!B(a.serial)&&(!!H(t,n)&&(re(),!0)))},this.Hunca_PKCS1=function(e,t,r){var n=null,s=null,o=null;new Object;if(null==t||null==t.length)return _,!1;if(null==E||0==E.length)return u,!1;for(var c=0;c<E.length;c++)if(s=E[c],s.userName==t){n=s;break}return null==n?(d,!1):(V(n.libraryName)||N,!!B(n.serial)&&(!!U(r)&&(o=X(n.containerName,a),null!=o&&(!!Q(i)&&(!!z()&&(!!ee(n.containerName,i,e,o)&&(!!te(o)&&(re(),!0))))))))},this.Hunca_GetSignData=function(){return A},this.Hunca_GetSignCert=function(){return G},this.Hunca_GetSignCertSn=function(){return w},this.Hunca_GetSignCertSubject=function(){return R},this.Hunca_GetValidTime=function(){return J},this.HUnca_GetNotBeforeTime=function(){return L},this.Hunca_DealCertInfo=function(e){var t=null,n=null,i=null;if(r="",signResultInfo=null,certInfo=new Object,null==e||null==e.length)return r=_,!1;if(null==E||0==E.length)return r=u,!1;for(var s=0;s<E.length;s++)if(n=E[s],n.userName==e){t=n;break}return null==t?(r=d,!1):V(t.libraryName)?!!B(t.serial)&&(i=X(t.containerName,a),null!=i&&0!=i.length&&(te(i),re(),!0)):(r=N,!1)},this.Hunca_EncryptDataPKCS7=function(e,t,r,a){var i=null,o=null,c=null,l="",m="";new Object;if(null==t||null==t.length)return _,"";if(null==E||0==E.length)return u,"";for(var f=0;f<E.length;f++)if(o=E[f],o.userName==t){i=o;break}return null==i?(d,""):V(i.libraryName)?B(i.serial)?(c=X(i.containerName,n),null==c||0==c.length?"":(l=r+"",m=a+"",null!=l&&0!=l.length||(l=s,m=""),Y(l,m)?(encryptData=$(c,e),re(),encryptData):"")):"":(N,"")},this.Hunca_DecryptDataPKCS7=function(e,t,r,a,i){var o=null,c=null,l="",m="",f="",S="",p="";new Object;if(f=""+e,null==t||null==t.length)return _,"";if(null==E||0==E.length)return u,"";for(var y=0;y<E.length;y++)if(c=E[y],c.userName==t){o=c;break}if(null==o)return d,"";if(!V(o.libraryName))return N,"";if(!B(o.serial))return"";if(!U(r))return"";if(l=a+"",m=i+"",null!=l&&0!=l.length||(l=s,m=""),!Y(l,m))return"";if(S=Z(o.containerName,n,f),0==S.length)return"";try{p=_Base64decode(S)}catch(h){p=S,"解密失败:Base64解码失败"}return p}}__webpack_require__(9343);function w(e){let t=e.slice(0,4),r=e.slice(4,6),n=e.slice(6,8),a=e.slice(8,10),i=e.slice(10,12),s=e.slice(12);return`${t}-${r}-${n} ${a}:${i}:${s}`}var k={name:"YcCA",props:{region:{type:Number,default:0}},data(){return{form:{},caInfo:{error_text:"",have_error_info:!1},loginForm:{username:"",password:"",uuid:"",caInfo:""},dialogVisible:{ca:!1,showInfo:!1},loginRules:{password:[{required:!0,trigger:"blur",message:"请输入您的密码"}]},loading:!1}},computed:{isBJCA(){return 1==this.region}},watch:{region(){this.caRead()}},created(){},methods:{caRead(){if(this.isBJCA)this.caReadBeijin();else{window.mToken=new G;let e=window.mToken.Hunca_GetUserListGN();this.loginForm.username=e[0]}},async caReadBeijin(){let e=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t)}))}));this.loginForm.username=e.retVal.split("||")[0]},caLogin(e){switch(e){case 0:this.HNCALogin();break;default:this.$message({type:"warning",message:"请选择CA平台!!!"})}},HNCALogin(){window.mToken=new G,this.loginForm.username=window.mToken.Hunca_GetUserListGN();let e=window.mToken.Hunca_userNameGNToUserName(this.loginForm.username[0]),t=Math.random();if(!window.mToken.Hunca_PKCS1(t,e,this.loginForm.password))return this.caInfo.error_text=window.mToken.Hunca_GetLastError(),this.caInfo.have_error_info=!0,this.dialogVisible.showInfo=!0,!1;this.ca_cert=window.mToken.Hunca_GetSignCert(),this.sign=window.mToken.Hunca_GetSignData(),this.certSn=window.mToken.Hunca_GetSignCertSn(),this.cert_subject=window.mToken.Hunca_GetSignCertSubject(),this.cert_validTime=window.mToken.Hunca_GetValidTime(),this.cert_notBeforeTime=window.mToken.HUnca_GetNotBeforeTime();let r=this.cert_subject.split(","),n={};return r.forEach((e=>{n[e.split("=")[0]]=e.split("=")[1]})),this.loginForm={cert:this.ca_cert,sign:this.sign,rn:t,caInfo:this.cert_subject,caAddr:n.ST+n.OU,caCode:n.TITLE,caName:n.GN,caSn:this.certSn,caEffectiveDate:this.cert_notBeforeTime,caExpireDate:this.cert_validTime,loginType:"3",username:n.GN},!0},handleLogin(){this.$refs.loginForm.validate((e=>{e&&(this.loading=!0,this.isBJCA?this.BJCALogin():(this.HNCALogin(),1==this.dialogVisible.showInfo?this.loading=!1:void 0!=this.loginForm.username?(this.loading=!0,this.$emit("caSuccess",this.loginForm,(()=>{this.loading=!1}))):this.msgErr("请插入CA")))}))},async BJCALogin(){if(void 0!=this.loginForm.password){let r=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t.retVal.split("&&&")[0].split("||")[1])}))}));var e=new Date;let n=this.loginForm.password;if(!r||!n)return;var t=navigator.platform.toLowerCase();-1!=t.indexOf("win")?window.SOF_LoginEx(r,n,0,this.login_callback,{begin:e,certId:r}):window.SOF_Login(r,n,this.login_callback,{begin:e,certId:r})}else this.msgErr("请插入CA")},login_callback(e){const t=this;var r=e.ctx.certId;e.retVal?this.BJSignData():(window.SOF_GetLastError((function(e){var r=e.retVal;79==r&&t.msgErr("请核对pin码复杂度是否符合要求")}),e.ctx),window.SOF_GetPinRetryCount(r,(function(e){var r=e.ctx.certId;t.msgErr("证书["+r+"]重试次数剩余:"+e.retVal+"次...")}),e.ctx))},async BJSignData(){let e=await new Promise((e=>{window.SOF_GetUserList((function(t){e(t.retVal.split("&&&")[0].split("||")[1])}))})),t=Math.random();this.form["rn"]=t,window.SOF_SignData(e,t,this.signData_callback,{certId:e})},async signData_callback(e){if(""==e.retVal)return this.caInfo.error_text="数据签名失败",this.caInfo.have_error_info=!0,void(this.dialogVisible.showInfo=!0);this.form["sign"]=e.retVal;var t=e.ctx.certId;let r=await new Promise((e=>{window.SOF_ExportUserCert(t,(function(t){e(t.retVal)}))}));if(this.form["username"]=r,r){var n={caAddrProvince:{type:16,label:"使用者省州名ST"},caAddrcity:{type:18,label:"使用者城市名L"},caEffectiveDate:{type:11,label:"证书有效开始日期"},caExpireDate:{type:12,label:"证书有效结束日期"},caInfo:{type:35,label:"使用者DN项第2种格式"},caSn:{type:2,label:"证书序列号"},caType:{type:34,label:"颁发者DN项第1种格式"}};for(let t in n){let e=await new Promise((e=>{window.SOF_GetCertInfo(r,n[t].type,(function(t){e(t)}),{key:t})}));this.form[e.ctx.key]=e.retVal}let e={caSn:this.form["caSn"],caInfo:this.form["caInfo"],caAddr:this.form["caAddrProvince"]+this.form["caAddrcity"],caCode:this.form["caInfo"].split(",").filter((e=>-1!=e.search(/^title=/i)))[0].replace(/title=/i,""),username:this.form["caInfo"].split(",").filter((e=>-1!=e.search(/^cn=/i)))[0].replace(/cn=/i,""),caEffectiveDate:w(this.form["caEffectiveDate"]),caExpireDate:w(this.form["caExpireDate"]),pass:this.loginForm.password,caType:"北京ca",sign:this.form.sign,rn:this.form.rn,cert:this.form.username};this.form=e,this.loginForm={cert:this.form.cert,sign:this.form.sign,rn:this.form.rn,caInfo:this.form.caInfo,caAddr:this.form.caAddr,caCode:this.form.caCode,caName:this.form.username,caSn:this.form.caSn,caEffectiveDate:this.form.caEffectiveDate,caExpireDate:this.form.caExpireDate,loginType:"3",username:this.form.username},1==this.dialogVisible.showInfo?this.loading=!1:void 0!=this.loginForm.username?this.$emit("caSuccess",this.loginForm,(()=>{this.loading=!1})):this.msgErr("请插入CA")}},handleClose(e){this.$confirm("确认关闭?").then((()=>{e(),this.loading=!1})).catch((()=>{}))},msgErr(e){this.loading=!1,this.$message.error(e)}}},R=k,J=s(R,P,I,!1,null,"42c33b30",null),L=J.exports;const V=[c,g,C,L],K=function(e){V.forEach((t=>{e.component(t.name,t)})),"undefined"!==typeof window&&window.Vue&&K(window.Vue)};var B={install:K},M=B}(),__webpack_exports__}()}));
2
2
  //# sourceMappingURL=yc-ui2.umd.min.js.map