1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ddb6c96"],{"045c":function(t,e,n){t.exports=n.p+"static/img/camera-not.108c6e4c.png"},"0905":function(t,e,n){"use strict";n.d(e,"h",(function(){return r})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"i",(function(){return h})),n.d(e,"g",(function(){return l})),n.d(e,"f",(function(){return f}));var i=n("b775");function r(){return Object(i["a"])({url:"/center-fire/VisuForestEventCenterController/getTodayEvent",method:"post"})}function s(t){return Object(i["a"])({url:"/center-fire/VisuForestEventCenterController/getEventList?eventStatus="+t,method:"post"})}function o(t){return Object(i["a"])({url:"/center-fire/VisuForestEventCenterController/getEventList?eventSource="+t,method:"post"})}function a(t){return Object(i["a"])({url:"/center-fire/VisuForestEventCenterController/getEventList?deptId="+t,method:"post"})}function u(t){return Object(i["a"])({url:"/center-fire/VisuForestEventCenterController/getEventList?eventType="+t,method:"post"})}function c(t){return Object(i["a"])({url:"/center-event/event/forest/forestfire/"+t,method:"get"})}function h(t,e){return Object(i["a"])({url:"/center-event/event/forest/forestfire/updateCentereventTForestfireStatus/"+t+"/"+e,method:"get"})}function l(t,e){return Object(i["a"])({url:"/center-fire/VisuForestEventCenterController/getNearEvent?longitude="+e+"&latitude="+e,method:"get"})}function f(t,e){return Object(i["a"])({url:"/center-fire/VisuForestEventCenterController/getNearCamera?longitude="+e+"&latitude="+e,method:"get"})}},"0b2e":function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-qjd.7d6509c8.png"},"149e":function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-wcl.35d7ed41.png"},"19d9":function(t,e,n){t.exports=n.p+"static/img/not-online.86568a6c.png"},"21cc":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAmCAYAAACCjRgBAAAACX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5YAjyA+AOH8jmrR2AI2tYZr1dRaG/M838Ah4HXSxEwErJyKeUh6HYvSO99bMTpgn9LyDIXAw/gQ9QYSQU6M1Ev4AY43VCZ7Bvg7pLgAbw4b4rDxVsO8PWm1UaiNW/ffgEuLg0ewIv4umZmFNrgteEL4BgbHlDmmietgd7um+vbXXjWu84zwP2F8A7MSKgh0LwyD1cbg052A7i+FcI15kkSWv5PiwfAF0t0NGV+gTfGPVsRDijPd9G5tV39R3YJ+HlHfVf2Abwm/P2jsTstAAAAAElFTkSuQmCC"},"23d9":function(t,e,n){(function(i){var r,s,o=n("970b").default,a=n("5bc3").default,u=n("448a").default,c=n("7037").default;n("6c57"),n("131a"),n("ac1f"),n("4c53"),n("d3b7"),n("25f0"),n("ace4"),n("fb2c"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("fa9e"),n("77d9"),n("5319"),n("00b4"),n("466d"),n("b64b"),n("fb6a"),n("1276"),n("a434"),n("a15b"),n("b0c0"),n("4e82"),n("4d63"),n("c607"),n("2c3e"),n("a9e3"),n("159b"),n("caad"),n("2532"),n("7db0"),n("4de4"),n("d81d"),n("a4d3"),n("e01a"),n("d28b"),n("3ca3"),n("ddb0"),n("99af"),n("944a"),n("0c47"),n("23dc"),n("841c"),n("4ec9"),n("c740"),n("e9c4"),n("7039"),function(i,o){"object"===c(e)&&"undefined"!==typeof t?t.exports=o():(r=o,s="function"===typeof r?r.call(e,n,e,t):r,void 0===s||(t.exports=s))}(0,(function(){"use strict";"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof i||"undefined"!==typeof self&&self;function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}var n=e((function(t,e){(function(t,n){n(e)})(0,(function(t){var e="0123456789abcdefghijklmnopqrstuvwxyz";function n(t){return e.charAt(t)}function i(t,e){return t&e}function r(t,e){return t|e}function s(t,e){return t^e}function o(t,e){return t&~e}function a(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function u(t){var e=0;while(0!=t)t&=t-1,++e;return e}var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="=";function l(t){var e,n,i="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),i+=c.charAt(n>>6)+c.charAt(63&n);e+1==t.length?(n=parseInt(t.substring(e,e+1),16),i+=c.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),i+=c.charAt(n>>2)+c.charAt((3&n)<<4));while((3&i.length)>0)i+=h;return i}function f(t){var e,i="",r=0,s=0;for(e=0;e<t.length;++e){if(t.charAt(e)==h)break;var o=c.indexOf(t.charAt(e));o<0||(0==r?(i+=n(o>>2),s=3&o,r=1):1==r?(i+=n(s<<2|o>>4),s=15&o,r=2):2==r?(i+=n(s),i+=n(o>>2),s=3&o,r=3):(i+=n(s<<2|o>>4),i+=n(15&o),r=0))}return 1==r&&(i+=n(s<<2)),i}
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
-
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
-
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */var d,p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},p(t,e)};function g(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var m,v={decode:function(t){var e;if(void 0===d){var n="0123456789ABCDEF",i=" \f\n\r\t \u2028\u2029";for(d={},e=0;e<16;++e)d[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)d[n.charAt(e)]=e;for(e=0;e<i.length;++e)d[i.charAt(e)]=-1}var r=[],s=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(a=d[a],-1!=a){if(void 0===a)throw new Error("Illegal character at offset "+e);s|=a,++o>=2?(r[r.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},b={decode:function(t){var e;if(void 0===m){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="= \f\n\r\t \u2028\u2029";for(m=Object.create(null),e=0;e<64;++e)m[n.charAt(e)]=e;for(e=0;e<i.length;++e)m[i.charAt(e)]=-1}var r=[],s=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(a=m[a],-1!=a){if(void 0===a)throw new Error("Illegal character at offset "+e);s|=a,++o>=4?(r[r.length]=s>>16,r[r.length]=s>>8&255,r[r.length]=255&s,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=s>>10;break;case 3:r[r.length]=s>>16,r[r.length]=s>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=b.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return b.decode(t)}},y=1e13,w=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,i,r=this.buf,s=r.length;for(n=0;n<s;++n)i=r[n]*t+e,i<y?e=0:(e=0|i/y,i-=e*y),r[n]=i;e>0&&(r[n]=e)},t.prototype.sub=function(t){var e,n,i=this.buf,r=i.length;for(e=0;e<r;++e)n=i[e]-t,n<0?(n+=y,t=1):t=0,i[e]=n;while(0===i[i.length-1])i.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),i=e.length-2;i>=0;--i)n+=(y+e[i]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*y+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),S="…",E=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,A=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function T(t,e){return t.length>e&&(t=t.substring(0,e)+S),t}var M,C=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var i="",r=t;r<e;++r)if(i+=this.hexByte(this.get(r)),!0!==n)switch(15&r){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",i=t;i<e;++i)n+=String.fromCharCode(this.get(i));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",i=t;i<e;){var r=this.get(i++);n+=r<128?String.fromCharCode(r):r>191&&r<224?String.fromCharCode((31&r)<<6|63&this.get(i++)):String.fromCharCode((15&r)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,i,r="",s=t;s<e;)n=this.get(s++),i=this.get(s++),r+=String.fromCharCode(n<<8|i);return r},t.prototype.parseTime=function(t,e,n){var i=this.parseStringISO(t,e),r=(n?E:A).exec(i);return r?(n&&(r[1]=+r[1],r[1]+=+r[1]<70?2e3:1900),i=r[1]+"-"+r[2]+"-"+r[3]+" "+r[4],r[5]&&(i+=":"+r[5],r[6]&&(i+=":"+r[6],r[7]&&(i+="."+r[7]))),r[8]&&(i+=" UTC","Z"!=r[8]&&(i+=r[8],r[9]&&(i+=":"+r[9]))),i):"Unrecognized time: "+i},t.prototype.parseInteger=function(t,e){var n,i=this.get(t),r=i>127,s=r?255:0,o="";while(i==s&&++t<e)i=this.get(t);if(n=e-t,0===n)return r?-1:0;if(n>4){o=i,n<<=3;while(0==(128&(+o^s)))o=+o<<1,--n;o="("+n+" bit)\n"}r&&(i-=256);for(var a=new w(i),u=t+1;u<e;++u)a.mulAdd(256,this.get(u));return o+a.toString()},t.prototype.parseBitString=function(t,e,n){for(var i=this.get(t),r=(e-t-1<<3)-i,s="("+r+" bit)\n",o="",a=t+1;a<e;++a){for(var u=this.get(a),c=a==e-1?i:0,h=7;h>=c;--h)o+=u>>h&1?"1":"0";if(o.length>n)return s+T(o,n)}return s+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return T(this.parseStringISO(t,e),n);var i=e-t,r="("+i+" byte)\n";n/=2,i>n&&(e=t+n);for(var s=t;s<e;++s)r+=this.hexByte(this.get(s));return i>n&&(r+=S),r},t.prototype.parseOID=function(t,e,n){for(var i="",r=new w,s=0,o=t;o<e;++o){var a=this.get(o);if(r.mulAdd(128,127&a),s+=7,!(128&a)){if(""===i)if(r=r.simplify(),r instanceof w)r.sub(80),i="2."+r.toString();else{var u=r<80?r<40?0:1:2;i=u+"."+(r-40*u)}else i+="."+r.toString();if(i.length>n)return T(i,n);r=new w,s=0}}return s>0&&(i+=".incomplete"),i},t}(),D=function(){function t(t,e,n,i,r){if(!(i instanceof R))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=i,this.sub=r}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return T(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return T(this.stream.parseStringISO(e,e+n),t);case 30:return T(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var i=0;i<n;++i)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof C?e:new C(e,0);var i=new C(n),r=new R(n),s=t.decodeLength(n),o=n.pos,a=o-i.pos,u=null,c=function(){var e=[];if(null!==s){var i=o+s;while(n.pos<i)e[e.length]=t.decode(n);if(n.pos!=i)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var r=t.decode(n);if(r.tag.isEOC())break;e[e.length]=r}s=o-n.pos}catch(a){throw new Error("Exception while decoding undefined length content: "+a)}return e};if(r.tagConstructed)u=c();else if(r.isUniversal()&&(3==r.tagNumber||4==r.tagNumber))try{if(3==r.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var h=0;h<u.length;++h)if(u[h].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(l){u=null}if(null===u){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(s)}return new t(i,a,s,r,u)},t}(),R=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!==(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new w;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],x=(1<<26)/O[O.length-1],I=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,r=(1<<e)-1,s=!1,o="",a=this.t,u=this.DB-a*this.DB%e;if(a-- >0){u<this.DB&&(i=this[a]>>u)>0&&(s=!0,o=n(i));while(a>=0)u<e?(i=(this[a]&(1<<u)-1)<<e-u,i|=this[--a]>>(u+=this.DB-e)):(i=this[a]>>(u-=e)&r,u<=0&&(u+=this.DB,--a)),i>0&&(s=!0),s&&(o+=n(i))}return s?o:"0"},t.prototype.negate=function(){var e=L();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(e=n-t.t,0!=e)return this.s<0?-e:e;while(--n>=0)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+q(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=L();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new V(e):new N(e),this.exp(t,n)},t.prototype.clone=function(){var t=L();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,i=this.DB-t*this.DB%8,r=0;if(t-- >0){i<this.DB&&(n=this[t]>>i)!=(this.s&this.DM)>>i&&(e[r++]=n|this.s<<this.DB-i);while(t>=0)i<8?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(e[r++]=n)}return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=L();return this.bitwiseTo(t,i,e),e},t.prototype.or=function(t){var e=L();return this.bitwiseTo(t,r,e),e},t.prototype.xor=function(t){var e=L();return this.bitwiseTo(t,s,e),e},t.prototype.andNot=function(t){var e=L();return this.bitwiseTo(t,o,e),e},t.prototype.not=function(){for(var t=L(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=L();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=L();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+a(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=u(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,r)},t.prototype.clearBit=function(t){return this.changeBit(t,o)},t.prototype.flipBit=function(t){return this.changeBit(t,s)},t.prototype.add=function(t){var e=L();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=L();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=L();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=L();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=L();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=L(),n=L();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,i,r=t.bitLength(),s=Q(1);if(r<=0)return s;n=r<18?1:r<48?3:r<144?4:r<768?5:6,i=r<8?new V(e):e.isEven()?new B(e):new N(e);var o=[],a=3,u=n-1,c=(1<<n)-1;if(o[1]=i.convert(this),n>1){var h=L();i.sqrTo(o[1],h);while(a<=c)o[a]=L(),i.mulTo(h,o[a-2],o[a]),a+=2}var l,f,d=t.t-1,p=!0,g=L();r=q(t[d])-1;while(d>=0){r>=u?l=t[d]>>r-u&c:(l=(t[d]&(1<<r+1)-1)<<u-r,d>0&&(l|=t[d-1]>>this.DB+r-u)),a=n;while(0==(1&l))l>>=1,--a;if((r-=a)<0&&(r+=this.DB,--d),p)o[l].copyTo(s),p=!1;else{while(a>1)i.sqrTo(s,g),i.sqrTo(g,s),a-=2;a>0?i.sqrTo(s,g):(f=s,s=g,g=f),i.mulTo(g,o[l],s)}while(d>=0&&0==(t[d]&1<<r))i.sqrTo(s,g),f=s,s=g,g=f,--r<0&&(r=this.DB-1,--d)}return i.revert(s)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;var i=e.clone(),r=this.clone(),s=Q(1),o=Q(0),a=Q(0),u=Q(1);while(0!=i.signum()){while(i.isEven())i.rShiftTo(1,i),n?(s.isEven()&&o.isEven()||(s.addTo(this,s),o.subTo(e,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);while(r.isEven())r.rShiftTo(1,r),n?(a.isEven()&&u.isEven()||(a.addTo(this,a),u.subTo(e,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);i.compareTo(r)>=0?(i.subTo(r,i),n&&s.subTo(a,s),o.subTo(u,o)):(r.subTo(i,r),n&&a.subTo(s,a),u.subTo(o,u))}return 0!=r.compareTo(t.ONE)?t.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},t.prototype.pow=function(t){return this.exp(t,new P)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var i=e;e=n,n=i}var r=e.getLowestSetBit(),s=n.getLowestSetBit();if(s<0)return e;r<s&&(s=r),s>0&&(e.rShiftTo(s,e),n.rShiftTo(s,n));while(e.signum()>0)(r=e.getLowestSetBit())>0&&e.rShiftTo(r,e),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return s>0&&n.lShiftTo(s,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=O[O.length-1]){for(e=0;e<O.length;++e)if(n[0]==O[e])return!0;return!1}if(n.isEven())return!1;e=1;while(e<O.length){var i=O[e],r=e+1;while(r<O.length&&i<x)i*=O[r++];i=n.modInt(i);while(e<r)if(i%O[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.fromRadix(e,n);i=2}this.t=0,this.s=0;var r=e.length,s=!1,o=0;while(--r>=0){var a=8==i?255&+e[r]:U(e,r);a<0?"-"==e.charAt(r)&&(s=!0):(s=!1,0==o?this[this.t++]=a:o+i>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=i,o>=this.DB&&(o-=this.DB))}8==i&&0!=(128&+e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){var t=this.s&this.DM;while(this.t>0&&this[this.t-1]==t)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,i=this.DB-n,r=(1<<i)-1,s=Math.floor(t/this.DB),o=this.s<<n&this.DM,a=this.t-1;a>=0;--a)e[a+s+1]=this[a]>>i|o,o=(this[a]&r)<<n;for(a=s-1;a>=0;--a)e[a]=0;e[s]=o,e.t=this.t+s+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var i=t%this.DB,r=this.DB-i,s=(1<<i)-1;e[0]=this[n]>>i;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&s)<<r,e[o-n]=this[o]>>i;i>0&&(e[this.t-n-1]|=(this.s&s)<<r),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){var n=0,i=0,r=Math.min(t.t,this.t);while(n<r)i+=this[n]-t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){i-=t.s;while(n<this.t)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{i+=this.s;while(n<t.t)i-=t[n],e[n++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=this.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var i=this.abs(),r=e.abs(),s=i.t;n.t=s+r.t;while(--s>=0)n[s]=0;for(s=0;s<r.t;++s)n[s+i.t]=i.am(0,r[s],n,s,0,i.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){var e=this.abs(),n=t.t=2*e.t;while(--n>=0)t[n]=0;for(n=0;n<e.t-1;++n){var i=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,i,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,i){var r=e.abs();if(!(r.t<=0)){var s=this.abs();if(s.t<r.t)return null!=n&&n.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=L());var o=L(),a=this.s,u=e.s,c=this.DB-q(r[r.t-1]);c>0?(r.lShiftTo(c,o),s.lShiftTo(c,i)):(r.copyTo(o),s.copyTo(i));var h=o.t,l=o[h-1];if(0!=l){var f=l*(1<<this.F1)+(h>1?o[h-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,g=1<<this.F2,m=i.t,v=m-h,b=null==n?L():n;o.dlShiftTo(v,b),i.compareTo(b)>=0&&(i[i.t++]=1,i.subTo(b,i)),t.ONE.dlShiftTo(h,b),b.subTo(o,o);while(o.t<h)o[o.t++]=0;while(--v>=0){var y=i[--m]==l?this.DM:Math.floor(i[m]*d+(i[m-1]+g)*p);if((i[m]+=o.am(0,y,i,v,0,h))<y){o.dlShiftTo(v,b),i.subTo(b,i);while(i[m]<--y)i.subTo(b,i)}}null!=n&&(i.drShiftTo(h,n),a!=u&&t.ZERO.subTo(n,n)),i.t=h,i.clamp(),c>0&&i.rShiftTo(c,i),a<0&&t.ZERO.subTo(i,i)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return e=e*(2-(15&t)*e)&15,e=e*(2-(255&t)*e)&255,e=e*(2-((65535&t)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var i=L(),r=L(),s=n.convert(this),o=q(e)-1;s.copyTo(i);while(--o>=0)if(n.sqrTo(i,r),(e&1<<o)>0)n.mulTo(r,s,i);else{var a=i;i=r,r=a}return n.revert(i)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=Q(n),r=L(),s=L(),o="";this.divRemTo(i,r,s);while(r.signum()>0)o=(n+s.intValue()).toString(t).substr(1)+o,r.divRemTo(i,r,s);return s.intValue().toString(t)+o},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var i=this.chunkSize(n),r=Math.pow(n,i),s=!1,o=0,a=0,u=0;u<e.length;++u){var c=U(e,u);c<0?"-"==e.charAt(u)&&0==this.signum()&&(s=!0):(a=n*a+c,++o>=i&&(this.dMultiply(r),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(a,0)),s&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,i),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),r,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(n))this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this)}else{var s=[],o=7&e;s.length=1+(e>>3),n.nextBytes(s),o>0?s[0]&=(1<<o)-1:s[0]=0,this.fromString(s,256)}},t.prototype.bitwiseTo=function(t,e,n){var i,r,s=Math.min(t.t,this.t);for(i=0;i<s;++i)n[i]=e(this[i],t[i]);if(t.t<this.t){for(r=t.s&this.DM,i=s;i<this.t;++i)n[i]=e(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=s;i<t.t;++i)n[i]=e(r,t[i]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var i=t.ONE.shiftLeft(e);return this.bitwiseTo(i,n,i),i},t.prototype.addTo=function(t,e){var n=0,i=0,r=Math.min(t.t,this.t);while(n<r)i+=this[n]+t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){i+=t.s;while(n<this.t)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{i+=this.s;while(n<t.t)i+=t[n],e[n++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[n++]=i:i<-1&&(e[n++]=this.DV+i),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var i=Math.min(this.t+t.t,e);n.s=0,n.t=i;while(i>0)n[--i]=0;for(var r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(r=Math.min(t.t,e);i<r;++i)this.am(0,t[i],n,i,0,e-i);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var i=n.t=this.t+t.t-e;n.s=0;while(--i>=0)n[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)n[this.t+i-e]=this.am(e-i,t[i],n,0,0,this.t+i-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(e*n+this[i])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var r=n.shiftRight(i);e=e+1>>1,e>O.length&&(e=O.length);for(var s=L(),o=0;o<e;++o){s.fromInt(O[Math.floor(Math.random()*O.length)]);var a=s.modPow(r,this);if(0!=a.compareTo(t.ONE)&&0!=a.compareTo(n)){var u=1;while(u++<i&&0!=a.compareTo(n))if(a=a.modPowInt(2,this),0==a.compareTo(t.ONE))return!1;if(0!=a.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=L();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var r=n;n=i,i=r}var s=n.getLowestSetBit(),o=i.getLowestSetBit();if(o<0)e(n);else{s<o&&(o=s),o>0&&(n.rShiftTo(o,n),i.rShiftTo(o,i));var a=function t(){(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(t,0):(o>0&&i.lShiftTo(o,i),setTimeout((function(){e(i)}),0))};setTimeout(a,10)}},t.prototype.fromNumberAsync=function(e,n,i,s){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,i),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),r,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function i(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout((function(){s()}),0):setTimeout(i,0)};setTimeout(a,0)}else{var u=[],c=7&e;u.length=1+(e>>3),n.nextBytes(u),c>0?u[0]&=(1<<c)-1:u[0]=0,this.fromString(u,256)}},t}(),P=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),V=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),N=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=L();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(I.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=L();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],i=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;n=e+this.m.t,t[n]+=this.m.am(0,i,t,e,0,this.m.t);while(t[n]>=t.DV)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),B=function(){function t(t){this.m=t,this.r2=L(),this.q3=L(),I.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=L();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function L(){return new I(null)}function _(t,e){return new I(t,e)}function k(t,e,n,i,r,s){while(--s>=0){var o=e*this[t++]+n[i]+r;r=Math.floor(o/67108864),n[i++]=67108863&o}return r}function F(t,e,n,i,r,s){var o=32767&e,a=e>>15;while(--s>=0){var u=32767&this[t],c=this[t++]>>15,h=a*u+c*o;u=o*u+((32767&h)<<15)+n[i]+(1073741823&r),r=(u>>>30)+(h>>>15)+a*c+(r>>>30),n[i++]=1073741823&u}return r}function j(t,e,n,i,r,s){var o=16383&e,a=e>>14;while(--s>=0){var u=16383&this[t],c=this[t++]>>14,h=a*u+c*o;u=o*u+((16383&h)<<14)+n[i]+r,r=(u>>28)+(h>>14)+a*c,n[i++]=268435455&u}return r}"Microsoft Internet Explorer"==navigator.appName?(I.prototype.am=F,M=30):"Netscape"!=navigator.appName?(I.prototype.am=k,M=26):(I.prototype.am=j,M=28),I.prototype.DB=M,I.prototype.DM=(1<<M)-1,I.prototype.DV=1<<M;var G=52;I.prototype.FV=Math.pow(2,G),I.prototype.F1=G-M,I.prototype.F2=2*M-G;var H,W,Z=[];for(H="0".charCodeAt(0),W=0;W<=9;++W)Z[H++]=W;for(H="a".charCodeAt(0),W=10;W<36;++W)Z[H++]=W;for(H="A".charCodeAt(0),W=10;W<36;++W)Z[H++]=W;function U(t,e){var n=Z[t.charCodeAt(e)];return null==n?-1:n}function Q(t){var e=L();return e.fromInt(t),e}function q(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}I.ZERO=Q(0),I.ONE=Q(1);var z=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,i;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[n],this.S[n]=i;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();function Y(){return new z}var J,K,X=256,$=null;if(null==$){$=[],K=0;var tt=void 0;if(window.crypto&&window.crypto.getRandomValues){var et=new Uint32Array(256);for(window.crypto.getRandomValues(et),tt=0;tt<et.length;++tt)$[K++]=255&et[tt]}var nt=function t(e){if(this.count=this.count||0,this.count>=256||K>=X)window.removeEventListener?window.removeEventListener("mousemove",t,!1):window.detachEvent&&window.detachEvent("onmousemove",t);else try{var n=e.x+e.y;$[K++]=255&n,this.count+=1}catch(i){}};window.addEventListener?window.addEventListener("mousemove",nt,!1):window.attachEvent&&window.attachEvent("onmousemove",nt)}function it(){if(null==J){J=Y();while(K<X){var t=Math.floor(65536*Math.random());$[K++]=255&t}for(J.init($),K=0;K<$.length;++K)$[K]=0;K=0}return J.next()}var rt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=it()},t}();function st(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,i="",r=0;r<n;r+=2)i+="ff";var s="0001"+i+"00"+t;return _(s,16)}function ot(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;var n=[],i=t.length-1;while(i>=0&&e>0){var r=t.charCodeAt(i--);r<128?n[--e]=r:r>127&&r<2048?(n[--e]=63&r|128,n[--e]=r>>6|192):(n[--e]=63&r|128,n[--e]=r>>6&63|128,n[--e]=r>>12|224)}n[--e]=0;var s=new rt,o=[];while(e>2){o[0]=0;while(0==o[0])s.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new I(n)}var at=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(n)<0)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=_(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=ot(t,this.n.bitLength()+7>>3);if(null==e)return null;var n=this.doPublic(e);if(null==n)return null;var i=n.toString(16);return 0==(1&i.length)?i:"0"+i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=_(t,16),this.e=parseInt(e,16),this.d=_(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,i,r,s,o,a){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=_(t,16),this.e=parseInt(e,16),this.d=_(n,16),this.p=_(i,16),this.q=_(r,16),this.dmp1=_(s,16),this.dmq1=_(o,16),this.coeff=_(a,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new rt,i=t>>1;this.e=parseInt(e,16);for(var r=new I(e,16);;){for(;;)if(this.p=new I(t-i,1,n),0==this.p.subtract(I.ONE).gcd(r).compareTo(I.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new I(i,1,n),0==this.q.subtract(I.ONE).gcd(r).compareTo(I.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var o=this.p.subtract(I.ONE),a=this.q.subtract(I.ONE),u=o.multiply(a);if(0==u.gcd(r).compareTo(I.ONE)){this.n=this.p.multiply(this.q),this.d=r.modInverse(u),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=_(t,16),n=this.doPrivate(e);return null==n?null:ut(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var i=new rt,r=t>>1;this.e=parseInt(e,16);var s=new I(e,16),o=this,a=function e(){var a=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var i=o.p.subtract(I.ONE),r=o.q.subtract(I.ONE),a=i.multiply(r);0==a.gcd(s).compareTo(I.ONE)?(o.n=o.p.multiply(o.q),o.d=s.modInverse(a),o.dmp1=o.d.mod(i),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){n()}),0)):setTimeout(e,0)},u=function t(){o.q=L(),o.q.fromNumberAsync(r,1,i,(function(){o.q.subtract(I.ONE).gcda(s,(function(e){0==e.compareTo(I.ONE)&&o.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(t,0)}))}))},c=function e(){o.p=L(),o.p.fromNumberAsync(t-r,1,i,(function(){o.p.subtract(I.ONE).gcda(s,(function(t){0==t.compareTo(I.ONE)&&o.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(e,0)}))}))};setTimeout(c,0)};setTimeout(a,0)},t.prototype.sign=function(t,e,n){var i=ht(n),r=i+e(t).toString(),s=st(r,this.n.bitLength()/4);if(null==s)return null;var o=this.doPrivate(s);if(null==o)return null;var a=o.toString(16);return 0==(1&a.length)?a:"0"+a},t.prototype.verify=function(t,e,n){var i=_(e,16),r=this.doPublic(i);if(null==r)return null;var s=r.toString(16).replace(/^1f+00/,""),o=lt(s);return o==n(t).toString()},t}();function ut(t,e){var n=t.toByteArray(),i=0;while(i<n.length&&0==n[i])++i;if(n.length-i!=e-1||2!=n[i])return null;++i;while(0!=n[i])if(++i>=n.length)return null;var r="";while(++i<n.length){var s=255&n[i];s<128?r+=String.fromCharCode(s):s>191&&s<224?(r+=String.fromCharCode((31&s)<<6|63&n[i+1]),++i):(r+=String.fromCharCode((15&s)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return r}var ct={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ht(t){return ct[t]||""}function lt(t){for(var e in ct)if(ct.hasOwnProperty(e)){var n=ct[e],i=n.length;if(t.substr(0,i)==n)return t.substr(i)}return t}
- /*!
- Copyright (c) 2011, Yahoo! Inc. All rights reserved.
- Code licensed under the BSD License:
- http://developer.yahoo.com/yui/license.html
- version: 2.9.0
- */var ft={};ft.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var r;for(r in n)t.prototype[r]=n[r];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(t,e){for(r=0;r<o.length;r+=1){var n=o[r],i=e[n];"function"===typeof i&&i!=Object.prototype[n]&&(t[n]=i)}})}catch(a){}s(t.prototype,n)}}};
- /**
- * @fileOverview
- * @name asn1-1.0.js
- * @author Kenji Urushima kenji.urushima@gmail.com
- * @version asn1 1.0.13 (2017-Jun-02)
- * @since jsrsasign 2.1
- * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
- */
- var dt={};"undefined"!=typeof dt.asn1&&dt.asn1||(dt.asn1={}),dt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1),i=n.length;i%2==1?i+=1:e.match(/^[0-7]/)||(i+=2);for(var r="",s=0;s<i;s++)r+="f";var o=new I(r,16),a=o.xor(t).add(I.ONE);e=a.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=dt,n=e.asn1,i=n.DERBoolean,r=n.DERInteger,s=n.DERBitString,o=n.DEROctetString,a=n.DERNull,u=n.DERObjectIdentifier,c=n.DEREnumerated,h=n.DERUTF8String,l=n.DERNumericString,f=n.DERPrintableString,d=n.DERTeletexString,p=n.DERIA5String,g=n.DERUTCTime,m=n.DERGeneralizedTime,v=n.DERSequence,b=n.DERSet,y=n.DERTaggedObject,w=n.ASN1Util.newObject,S=Object.keys(t);if(1!=S.length)throw"key of param shall be only one.";var E=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+E+":"))throw"undefined key: "+E;if("bool"==E)return new i(t[E]);if("int"==E)return new r(t[E]);if("bitstr"==E)return new s(t[E]);if("octstr"==E)return new o(t[E]);if("null"==E)return new a(t[E]);if("oid"==E)return new u(t[E]);if("enum"==E)return new c(t[E]);if("utf8str"==E)return new h(t[E]);if("numstr"==E)return new l(t[E]);if("prnstr"==E)return new f(t[E]);if("telstr"==E)return new d(t[E]);if("ia5str"==E)return new p(t[E]);if("utctime"==E)return new g(t[E]);if("gentime"==E)return new m(t[E]);if("seq"==E){for(var A=t[E],T=[],M=0;M<A.length;M++){var C=w(A[M]);T.push(C)}return new v({array:T})}if("set"==E){for(A=t[E],T=[],M=0;M<A.length;M++){C=w(A[M]);T.push(C)}return new b({array:T})}if("tag"==E){var D=t[E];if("[object Array]"===Object.prototype.toString.call(D)&&3==D.length){var R=w(D[2]);return new y({tag:D[0],explicit:D[1],obj:R})}var O={};if(void 0!==D.explicit&&(O.explicit=D.explicit),void 0!==D.tag&&(O.tag=D.tag),void 0===D.obj)throw"obj shall be specified for 'tag'.";return O.obj=w(D.obj),new y(O)}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}},dt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),i=Math.floor(n/40),r=n%40,s=(e=i+"."+r,""),o=2;o<t.length;o+=2){var a=parseInt(t.substr(o,2),16),u=("00000000"+a.toString(2)).slice(-8);if(s+=u.substr(1,7),"0"==u.substr(0,1)){var c=new I(s,2);e=e+"."+c.toString(10),s=""}}return e},dt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",i=new I(t,10),r=i.toString(2),s=7-r.length%7;7==s&&(s=0);for(var o="",a=0;a<s;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var u=r.substr(a,7);a!=r.length-7&&(u="1"+u),n+=e(parseInt(u,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="",r=t.split("."),s=40*parseInt(r[0])+parseInt(r[1]);i+=e(s),r.splice(0,2);for(var o=0;o<r.length;o++)i+=n(r[o]);return i},dt.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,n=e.toString(16);if(n.length%2==1&&(n="0"+n),e<128)return n;var i=n.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var r=128+i;return r.toString(16)+n},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},dt.asn1.DERAbstractString=function(t){dt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("string"==typeof t?this.setString(t):"undefined"!=typeof t["str"]?this.setString(t["str"]):"undefined"!=typeof t["hex"]&&this.setStringHex(t["hex"]))},ft.lang.extend(dt.asn1.DERAbstractString,dt.asn1.ASN1Object),dt.asn1.DERAbstractTime=function(t){dt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e},this.formatDate=function(t,e,n){var i=this.zeroPadding,r=this.localDateToUTC(t),s=String(r.getFullYear());"utc"==e&&(s=s.substr(2,2));var o=i(String(r.getMonth()+1),2),a=i(String(r.getDate()),2),u=i(String(r.getHours()),2),c=i(String(r.getMinutes()),2),h=i(String(r.getSeconds()),2),l=s+o+a+u+c+h;if(!0===n){var f=r.getMilliseconds();if(0!=f){var d=i(String(f),3);d=d.replace(/[0]+$/,""),l=l+"."+d}}return l+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,i,r,s){var o=new Date(Date.UTC(t,e-1,n,i,r,s,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},ft.lang.extend(dt.asn1.DERAbstractTime,dt.asn1.ASN1Object),dt.asn1.DERAbstractStructured=function(t){dt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,"undefined"!=typeof t&&"undefined"!=typeof t["array"]&&(this.asn1Array=t["array"])},ft.lang.extend(dt.asn1.DERAbstractStructured,dt.asn1.ASN1Object),dt.asn1.DERBoolean=function(){dt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ft.lang.extend(dt.asn1.DERBoolean,dt.asn1.ASN1Object),dt.asn1.DERInteger=function(t){dt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=dt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new I(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["bigint"]?this.setByBigInteger(t["bigint"]):"undefined"!=typeof t["int"]?this.setByInteger(t["int"]):"number"==typeof t?this.setByInteger(t):"undefined"!=typeof t["hex"]&&this.setValueHex(t["hex"]))},ft.lang.extend(dt.asn1.DERInteger,dt.asn1.ASN1Object),dt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=dt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}dt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var i="";for(n=0;n<t.length-1;n+=8){var r=t.substr(n,8),s=parseInt(r,2).toString(16);1==s.length&&(s="0"+s),i+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+e+i},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):"undefined"!=typeof t["hex"]?this.setHexValueIncludingUnusedBits(t["hex"]):"undefined"!=typeof t["bin"]?this.setByBinaryString(t["bin"]):"undefined"!=typeof t["array"]&&this.setByBooleanArray(t["array"]))},ft.lang.extend(dt.asn1.DERBitString,dt.asn1.ASN1Object),dt.asn1.DEROctetString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=dt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}dt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},ft.lang.extend(dt.asn1.DEROctetString,dt.asn1.DERAbstractString),dt.asn1.DERNull=function(){dt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ft.lang.extend(dt.asn1.DERNull,dt.asn1.ASN1Object),dt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",i=new I(t,10),r=i.toString(2),s=7-r.length%7;7==s&&(s=0);for(var o="",a=0;a<s;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var u=r.substr(a,7);a!=r.length-7&&(u="1"+u),n+=e(parseInt(u,2))}return n};dt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="",r=t.split("."),s=40*parseInt(r[0])+parseInt(r[1]);i+=e(s),r.splice(0,2);for(var o=0;o<r.length;o++)i+=n(r[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(t){var e=dt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"===typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},ft.lang.extend(dt.asn1.DERObjectIdentifier,dt.asn1.ASN1Object),dt.asn1.DEREnumerated=function(t){dt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=dt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new I(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["int"]?this.setByInteger(t["int"]):"number"==typeof t?this.setByInteger(t):"undefined"!=typeof t["hex"]&&this.setValueHex(t["hex"]))},ft.lang.extend(dt.asn1.DEREnumerated,dt.asn1.ASN1Object),dt.asn1.DERUTF8String=function(t){dt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},ft.lang.extend(dt.asn1.DERUTF8String,dt.asn1.DERAbstractString),dt.asn1.DERNumericString=function(t){dt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},ft.lang.extend(dt.asn1.DERNumericString,dt.asn1.DERAbstractString),dt.asn1.DERPrintableString=function(t){dt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},ft.lang.extend(dt.asn1.DERPrintableString,dt.asn1.DERAbstractString),dt.asn1.DERTeletexString=function(t){dt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},ft.lang.extend(dt.asn1.DERTeletexString,dt.asn1.DERAbstractString),dt.asn1.DERIA5String=function(t){dt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},ft.lang.extend(dt.asn1.DERIA5String,dt.asn1.DERAbstractString),dt.asn1.DERUTCTime=function(t){dt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return"undefined"==typeof this.date&&"undefined"==typeof this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},ft.lang.extend(dt.asn1.DERUTCTime,dt.asn1.DERAbstractTime),dt.asn1.DERGeneralizedTime=function(t){dt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},ft.lang.extend(dt.asn1.DERGeneralizedTime,dt.asn1.DERAbstractTime),dt.asn1.DERSequence=function(t){dt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t+=n.getEncodedHex()}return this.hV=t,this.hV}},ft.lang.extend(dt.asn1.DERSequence,dt.asn1.DERAbstractStructured),dt.asn1.DERSet=function(t){dt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},"undefined"!=typeof t&&"undefined"!=typeof t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},ft.lang.extend(dt.asn1.DERSet,dt.asn1.DERAbstractStructured),dt.asn1.DERTaggedObject=function(t){dt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["tag"]&&(this.hT=t["tag"]),"undefined"!=typeof t["explicit"]&&(this.isExplicit=t["explicit"]),"undefined"!=typeof t["obj"]&&(this.asn1Object=t["obj"],this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},ft.lang.extend(dt.asn1.DERTaggedObject,dt.asn1.ASN1Object);var pt=function(t){function e(n){var i=t.call(this)||this;return n&&("string"===typeof n?i.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&i.parsePropertiesFrom(n)),i}return g(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,r=i.test(t)?v.decode(t):b.unarmor(t),s=D.decode(r);if(3===s.sub.length&&(s=s.sub[2].sub[0]),9===s.sub.length){e=s.sub[1].getHexStringValue(),this.n=_(e,16),n=s.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=s.sub[3].getHexStringValue();this.d=_(o,16);var a=s.sub[4].getHexStringValue();this.p=_(a,16);var u=s.sub[5].getHexStringValue();this.q=_(u,16);var c=s.sub[6].getHexStringValue();this.dmp1=_(c,16);var h=s.sub[7].getHexStringValue();this.dmq1=_(h,16);var l=s.sub[8].getHexStringValue();this.coeff=_(l,16)}else{if(2!==s.sub.length)return!1;var f=s.sub[1],d=f.sub[0];e=d.sub[0].getHexStringValue(),this.n=_(e,16),n=d.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(p){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new dt.asn1.DERInteger({int:0}),new dt.asn1.DERInteger({bigint:this.n}),new dt.asn1.DERInteger({int:this.e}),new dt.asn1.DERInteger({bigint:this.d}),new dt.asn1.DERInteger({bigint:this.p}),new dt.asn1.DERInteger({bigint:this.q}),new dt.asn1.DERInteger({bigint:this.dmp1}),new dt.asn1.DERInteger({bigint:this.dmq1}),new dt.asn1.DERInteger({bigint:this.coeff})]},e=new dt.asn1.DERSequence(t);return e.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return l(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new dt.asn1.DERSequence({array:[new dt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new dt.asn1.DERNull]}),e=new dt.asn1.DERSequence({array:[new dt.asn1.DERInteger({bigint:this.n}),new dt.asn1.DERInteger({int:this.e})]}),n=new dt.asn1.DERBitString({hex:"00"+e.getEncodedHex()}),i=new dt.asn1.DERSequence({array:[t,n]});return i.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return l(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(e=e||64,!t)return t;var n="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----",t},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----",t},e.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(at),gt=function(){function t(t){t=t||{},this.default_key_size=parseInt(t.default_key_size,10)||1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new pt(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(f(t))}catch(e){return!1}},t.prototype.encrypt=function(t){try{return l(this.getKey().encrypt(t))}catch(e){return!1}},t.prototype.sign=function(t,e,n){try{return l(this.getKey().sign(t,e,n))}catch(i){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,f(e),n)}catch(i){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new pt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.0.0-rc.1",t}();window.JSEncrypt=gt,t.JSEncrypt=gt,t.default=gt,Object.defineProperty(t,"__esModule",{value:!0})}))})),r=t(n),s=new r,h={heartbeat:function(){var t=this.config,e=t.loginIp,n=t.userCode;this.postMessage("heartbeat",{loginIp:e,userCode:n})},loginClient:function(){this.loginEnd=!1,this.loginStartTime=Date.now(),console.log("ws-this.loginStartTime-".concat(this.loginStartTime));var t=this.config;console.log("ws-config",t);var e=t.loginIp,n=t.userCode,i=t.token,r=t.loginPort,o=t.userName,a=t.userPwd,u=t.https,c=t.browser,h=c.name,l=c.version,f=c.platform;if(!o||!i&&!a)return this.loginEnd=!0,!1;"undefined"===typeof u&&(u="http:"===location.protocol?Number(0):"https:"===location.protocol?1:-1),s.setPublicKey(this.publicKey);var d={loginIp:e,params:{loginPort:r,token:i||"",userPwd:i?"":s.encrypt(a),userName:o,https:u,browser:h,version:l,platform:f},userCode:n};this._heartbeat(),this.postMessage("login",d)},logoutClient:function(){var t=this.config,e=t.loginIp,n=t.userCode;clearTimeout(this.heartbeatTimer),this.postMessage("logout",{loginIp:e,userCode:n}),this.config.userName=""},getVersion:function(){this.getVersionStartTime=Date.now();var t=this.config,e=t.loginIp,n=t.userCode;this.postMessage("getVersion",{loginIp:e,userCode:n})}};function l(){var t=0,e=window.screen,n=navigator.userAgent.toLowerCase();return void 0!==window.devicePixelRatio?t=window.devicePixelRatio:~n.indexOf("msie")?e["deviceXDPI"]&&e["logicalXDPI"]&&(t=e["deviceXDPI"]/e["logicalXDPI"]):void 0!==window.outerWidth&&void 0!==window.innerWidth&&(t=window.outerWidth/window.innerWidth),t&&(t=Math.round(100*t)),t}function f(){return b().body.scrollHeight>(window.innerHeight||b().documentElement.clientHeight)}function d(){return b().body.scrollWidth>(window.innerWidth||b().documentElement.clientWidth)}function p(){var t=b().createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",b().body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return b().body.removeChild(t),e}function g(){var t=l(),e=window.pageXOffset,n=window.pageYOffset,i=f(),r=d(),s=p(),o=r?s:0,a=i?s:0;return{ratio:t,scrollX:e,scrollY:n,scrollXH:o,scrollYW:a}}function m(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={x:0,y:0,width:0,height:0},i=b().getElementById(t);if(!i)return e&&console.log("ws-can not find dom by id ".concat(t)),n;var r=i.getClientRects()&&i.getClientRects()[0];return void 0!=r.x&&void 0!=r.y||(r.x=r.left,r.y=r.top),r||(e&&console.warn("ws-can not find domInfo by id ".concat(t,", please check dom exited")),n)}function v(){return self.frameElement&&"IFRAME"==self.frameElement.tagName}function b(){var t=window.document;if(v())if(top["$nav"]){var e=top["$nav"].getIframeByPath();e?t=e.contentWindow.document:console.log("在iframe中且没有@psi/navigator")}else console.log("在iframe中且没有@psi/navigator");return t}function y(t){console.log("ws-getDomById",t);var e=m(t),n=e.width,i=e.height,r=e.x,s=e.y;if(v())if(console.log("dom in iframe"),top["$nav"]){var o=top["$nav"].getIframeByPath();if(o){var a=o.getClientRects();a&&a[0]&&(r+=a[0].x,s+=a[0].y)}}else{console.log("在iframe中且没有@psi/navigator");var u=self.frameElement.getClientRects();u&&u[0]&&(r+=u[0].x,s+=u[0].y)}return{width:n,height:i,x:r,y:s}}var w={browserInfo:function(){var t=this.config,e=t.loginIp,n=t.userCode,i=t.browser,r=i.name,s=i.version,o=i.platform;this.postMessage("browserInfo",{loginIp:e,userCode:n,params:{browser:r,version:s,platform:o}})},webVisibilityChange:function(){var t=this.config,e=t.loginIp,n=t.userCode;this.postMessage("webVisibilityChange",{loginIp:e,userCode:n,params:{hidden:b().hidden}})},trusteSite:function(t){console.log("ws-trusteSite-http",t);var e=this.config,n=e.loginIp,i=e.userCode;this.postMessage("trusteSite",{loginIp:n,userCode:i,params:{trusteSite:t}})},setDownloadPath:function(t){var e=this.config,n=e.loginIp,i=e.userCode;return this.postMessage("setDownloadPath",{loginIp:n,userCode:i,params:{downloadPath:t}})},downloadVideo:function(t,e){var n=this.config,i=n.loginIp,r=n.userCode;return this.postMessage("downloadVideo",{loginIp:i,userCode:r,params:{array:t,visible:e}})},createCtrl:function(t){console.log("ws-createCtrl",t);var e=this,n=this.config,i=n.loginIp,r=n.userCode,s=[];return 0===t.length?(console.error("param widget must has a ctrlCode."),!1):(t.forEach((function(t){e.ids.includes(t.ctrlCode)&&e.destroyCtrl([t.ctrlCode]);var n={},i=t.ctrlType,r=t.ctrlCode,o=t.ctrlProperty,a=t.visible,u=t.cutList,c=t.domId,h=b().getElementById(c);h||console.warn("can not find dom by id ".concat(c));var l=y(c),f=g();n["ctrlType"]=i,n["visible"]=a,n["ctrlCode"]=r,n["ctrlProperty"]=o,n["cutList"]=u,n["posX"]=l.x,n["posY"]=l.y,n["width"]=l.width,n["height"]=l.height,n["ratio"]=f.ratio,n["scrollX"]=f.scrollX,n["scrollY"]=f.scrollY,n["scrollXH"]=f.scrollXH,n["scrollYW"]=f.scrollYW,n["viewWidth"]=v()?parent.window.innerWidth:window.innerWidth,n["viewHeight"]=v()?parent.window.innerHeight:window.innerHeight,n["domId"]=c,s.push(n),e.ctrls.push(n),e.ids.push(r)})),this.postMessage("createCtrl",{loginIp:i,userCode:r,params:{array:s}}))},setCtrlVisible:function(t){var e=this,n=this.config,i=n.loginIp,r=n.userCode,s=[];return 0!==t.length&&(t.forEach((function(t){var n={};if(!e.ids.includes(t.ctrlCode))return!1;var i=e.ctrls.find((function(e){return e.ctrlCode===t.ctrlCode}));i["visible"]=t.visible,n["ctrlCode"]=t.ctrlCode,n["visible"]=t.visible,n["viewWidth"]=v()?parent.window.innerWidth:window.innerWidth,n["viewHeight"]=v()?parent.window.innerHeight:window.innerHeight,s.push(n)})),this.postMessage("setCtrlVisible",{loginIp:i,userCode:r,params:{array:s}}))},setCtrlPos:function(t){var e=this,n=this.config,i=n.loginIp,r=n.userCode,s=[];if(0===t.length)throw new Error("setCtrlPos must has a Id.");return t.forEach((function(t){if(!e.ids.includes(t.ctrlCode))throw new Error("widget by id:".concat(t.ctrlCode," has not been created."));var n=e.ctrls.find((function(e){return e.ctrlCode===t.ctrlCode}));if(!n)throw new Error("can not find ctrl by id:".concat(t.ctrlCode,"."));var i=["posX","posY","width","height","ratio","scrollX","scrollY","scrollXH","scrollYW","cutList","viewWidth","viewHeight"];function r(t,e,n){e.hasOwnProperty(n)&&(t[n]=e[n])}i.forEach((function(e){r(n,t,e)}));var o=n;s.push(o)})),this.postMessage("setCtrlPos",{loginIp:i,userCode:r,params:{array:s}})},reLocatedPosition:function(t){var e=[];t&&t.length>0&&this.ctrls.forEach((function(n){t.includes(n.ctrlCode)&&e.push(n)}));var n=e.length>0?e:this.ctrls;if(0===n.length)return!1;var i=n.filter((function(t){return t.domId&&m(t.domId,!1)})),r=i.map((function(t){var e=y(t.domId),n=g(),i=t.ctrlCode,r=t.cutList,s=e.x,o=e.y,a=e.width,u=e.height,c=n.ratio,h=n.scrollX,l=n.scrollY,f=n.scrollXH,d=n.scrollYW,p=v()?parent.window.innerWidth:window.innerWidth,m=v()?parent.window.innerHeight:window.innerHeight;return{ctrlCode:i,cutList:r,posX:s,posY:o,width:a,height:u,ratio:c,scrollX:h,scrollY:l,scrollXH:f,scrollYW:d,viewWidth:p,viewHeight:m}}));return r.length?this.setCtrlPos(r):new Promise((function(t){t(!0)}))},destroyCtrl:function(t){if(0===t.length)return!1;var e=this,n=this.config,i=n.loginIp,r=n.userCode,s=u(t),o=t.map((function(t){return{ctrlCode:t}}));return s.forEach((function(t){for(var n=0;n<e.ctrls.length;n++)e.ctrls[n].ctrlCode===t&&(e.ctrls.splice(n,1),e.ids.splice(n,1))})),this.postMessage("destroyCtrl",{loginIp:i,userCode:r,params:{array:o}})},openCtrlPreview:function(t){var e=this.config,n=e.loginIp,i=e.userCode;if(!t.ctrlCode||!this.ids.includes(t.ctrlCode))throw new Error("widget by id:".concat(t.ctrlCode," has not been created."));if(0===t.channelIds.length)return!1;var r=t.channelIds.map((function(t){return{channelId:t}}));return this.postMessage("openCtrlPreview",{loginIp:n,userCode:i,params:{array:[{ctrlCode:t.ctrlCode,array:r}]}})},openCtrlRecord:function(t){var e=this.config,n=t[0];if(!n.ctrlCode||!this.ids.includes(n.ctrlCode))throw new Error("widget by id:".concat(n.ctrlCode," has not been created."));var i=e.loginIp,r=e.userCode;return this.postMessage("openCtrlRecord",{loginIp:i,userCode:r,params:{array:t}})},closeCtrlVideo:function(t){var e=this.config,n=e.loginIp,i=e.userCode,r=t.map((function(t){return{ctrlCode:t}}));return this.postMessage("closeCtrlVideo",{loginIp:n,userCode:i,params:{array:r}})},openVideo:function(t){var e=this.config,n=e.userCode,i=e.loginIp,r={};if(Array.isArray(t)){var s=t.map((function(t){return{channelId:t}}));r={array:s}}else r=t;return this.postMessage("openVideo",{loginIp:i,userCode:n,params:r})},openRecord:function(t){var e=this.config,n=e.userCode,i=e.loginIp,r={};return r=Array.isArray(t)?{array:t}:t,this.postMessage("openRecord",{loginIp:i,userCode:n,params:r})},openMixedModeDialog:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,1,2],i=this.config,r=i.userCode,s=i.loginIp,o={destinationCode:t,toolBarFucList:n,array:e};return this.postMessage("openMixedModeDialog",{loginIp:s,userCode:r,params:o})},PictureEnhance:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=this.config,r=i.userCode,s=i.loginIp,o={loginIp:s,userCode:r,params:{array:[{type:"".concat(n),degree:"".concat(e),url:t}]}};return this.postMessage("PictureEnhance",o)}},S={transparent:function(t,e){var n=this.config,i=n.loginIp,r=n.userCode;return this.postMessage(t,{loginIp:i,userCode:r,params:e})}},E={account:h,control:w,transparent:S},A={getVersionResult:function(t){this.getVersionEnd=!0,this.currentDssVersion=t,""!==this.onlineDssVersion&&this.compareVersion()},goToSearchPic:function(t){if(console.log("ws-goToSearchPic",t),t&&t.params&&t.params.array&&Array.isArray(t.params.array)){var e=t.params.destinationCode,n={};n[e]=t.params.array[0],frames["nav-frame-".concat(e)]?frames["nav-frame-".concat(e)].$nav.push({code:e,params:n}):window&&window["$nav"]&&window["$nav"].push({code:e,params:n})}else this.Vue.prototype.$Message.info("未查询到数据")},loginState:function(t){t?(this.isLoginSuccess=t,this.loginEnd=!0,"function"===typeof this.callback.loginResult&&this.callback.loginResult.call(this,this.isLoginSuccess)):(this.loginFailCount++,this.loginFailCount<this.reLoginCount+1?this.loginClient():(this.loginEnd=!0,this.loginFailCount=0,this.isLoginSuccess=t,"function"===typeof this.callback.loginResult&&this.callback.loginResult.call(this,this.isLoginSuccess)))},createCtrlResult:function(t){var e=this,n=t,i=[];n.forEach((function(t){0!==t.result&&i.push(t.ctrlCode)})),this.ids.forEach((function(t,n){-1!==i.indexOf(t)&&(e.ids.splice(n,1),e.ctrls.splice(n,1))}))},destroyCtrlResult:function(t){console.log(t)}},T={loginState:M,getVersionResult:C,createCtrlResult:D};function M(t){return 0===t.params.loginResult}function C(t){return t.params.version+""}function D(t){return t.params.array}
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
-
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
-
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */var R=function(t,e){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},R(t,e)};function O(t,e){function n(){this.constructor=t}R(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function x(t){var e="function"===typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function I(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,s=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=s.next()).done)o.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=s["return"])&&n.call(s)}finally{if(r)throw r.error}}return o}function P(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(I(arguments[e]));return t}var V=function(){function t(t,e){this.target=e,this.type=t}return t}(),N=function(t){function e(e,n){var i=t.call(this,"error",n)||this;return i.message=e.message,i.error=e,i}return O(e,t),e}(V),B=function(t){function e(e,n,i){void 0===e&&(e=1e3),void 0===n&&(n="");var r=t.call(this,"close",i)||this;return r.wasClean=!0,r.code=e,r.reason=n,r}return O(e,t),e}(V),L=function(){if("undefined"!==typeof WebSocket)return WebSocket},_=function(t){return"undefined"!==typeof t&&!!t&&2===t.CLOSING},k={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},F=function(){function t(t,e,n){var i=this;void 0===n&&(n={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(t){i._debug("open event");var e=i._options.minUptime,n=void 0===e?k.minUptime:e;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout((function(){return i._acceptOpen()}),n),i._ws.binaryType=i._binaryType,i._messageQueue.forEach((function(t){return i._ws.send(t)})),i._messageQueue=[],i.onopen&&i.onopen(t),i._listeners.open.forEach((function(e){return i._callEventListener(t,e)}))},this._handleMessage=function(t){i._debug("message event"),i.onmessage&&i.onmessage(t),i._listeners.message.forEach((function(e){return i._callEventListener(t,e)}))},this._handleError=function(t){i._debug("error event",t.message),i._disconnect(void 0,"TIMEOUT"===t.message?"timeout":void 0),i.onerror&&i.onerror(t),i._debug("exec error listeners"),i._listeners.error.forEach((function(e){return i._callEventListener(t,e)})),i._connect()},this._handleClose=function(t){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(t),i._listeners.close.forEach((function(e){return i._callEventListener(t,e)}))},this._url=t,this._protocols=e,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(t,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CONNECTING",{get:function(){return t.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OPEN",{get:function(){return t.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CLOSING",{get:function(){return t.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CLOSED",{get:function(){return t.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce((function(t,e){return"string"===typeof e?t+=e.length:e instanceof Blob?t+=e.size:t+=e.byteLength,t}),0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?t.CLOSED:t.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),t.prototype.close=function(t,e){void 0===t&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),this._ws?this._ws.readyState!==this.CLOSED?this._ws.close(t,e):this._debug("close: already closed"):this._debug("close enqueued: no ws instance")},t.prototype.reconnect=function(t,e){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED?(this._disconnect(t,e),this._connect()):this._connect()},t.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var e=this._options.maxEnqueuedMessages,n=void 0===e?k.maxEnqueuedMessages:e;this._messageQueue.length<n&&(this._debug("enqueue",t),this._messageQueue.push(t))}},t.prototype.addEventListener=function(t,e){this._listeners[t]&&this._listeners[t].push(e)},t.prototype.dispatchEvent=function(t){var e,n,i=this._listeners[t.type];if(i)try{for(var r=x(i),s=r.next();!s.done;s=r.next()){var o=s.value;this._callEventListener(t,o)}}catch(a){e={error:a}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return!0},t.prototype.removeEventListener=function(t,e){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter((function(t){return t!==e})))},t.prototype._debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._options.debug&&console.log.apply(console,P(["RWS>"],t))},t.prototype._getNextDelay=function(){var t=this._options,e=t.reconnectionDelayGrowFactor,n=void 0===e?k.reconnectionDelayGrowFactor:e,i=t.minReconnectionDelay,r=void 0===i?k.minReconnectionDelay:i,s=t.maxReconnectionDelay,o=void 0===s?k.maxReconnectionDelay:s,a=0;return this._retryCount>0&&(a=r*Math.pow(n,this._retryCount-1),a>o&&(a=o)),this._debug("next delay",a),a},t.prototype._wait=function(){var t=this;return new Promise((function(e){setTimeout(e,t._getNextDelay())}))},t.prototype._getNextUrl=function(t){if("string"===typeof t)return Promise.resolve(t);if("function"===typeof t){var e=t();if("string"===typeof e)return Promise.resolve(e);if(e.then)return e}throw Error("Invalid URL")},t.prototype._connect=function(){var t=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var e=this._options,n=e.maxRetries,i=void 0===n?k.maxRetries:n,r=e.connectionTimeout,s=void 0===r?k.connectionTimeout:r,o=e.WebSocket,a=void 0===o?L():o;if(this._retryCount>=i)this._debug("max retries reached",this._retryCount,">=",i);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!_(a))throw Error("No valid WebSocket class provided");this._wait().then((function(){return t._getNextUrl(t._url)})).then((function(e){t._closeCalled||(t._debug("connect",{url:e,protocols:t._protocols}),t._ws=t._protocols?new a(e,t._protocols):new a(e),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout((function(){return t._handleTimeout()}),s))}))}}},t.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new N(Error("TIMEOUT"),this))},t.prototype._disconnect=function(t,e){if(void 0===t&&(t=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(t,e),this._handleClose(new B(t,e,this))}catch(n){}}},t.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},t.prototype._callEventListener=function(t,e){"handleEvent"in e?e.handleEvent(t):e(t)},t.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},t.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},t.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},t}(),j=F,G=e((function(t,e){!function(e,n){t.exports=n()}(0,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==c(t)&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=90)}({17:function(t,e,n){e.__esModule=!0,e.default=void 0;var i=n(18),r=function(){function t(){}return t.getFirstMatch=function(t,e){var n=e.match(t);return n&&n.length>0&&n[1]||""},t.getSecondMatch=function(t,e){var n=e.match(t);return n&&n.length>1&&n[2]||""},t.matchAndReturnConst=function(t,e,n){if(t.test(e))return n},t.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},t.getMacOSVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),10===e[0])switch(e[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},t.getAndroidVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(e,n,i){void 0===i&&(i=!1);var r=t.getVersionPrecision(e),s=t.getVersionPrecision(n),o=Math.max(r,s),a=0,u=t.map([e,n],(function(e){var n=o-t.getVersionPrecision(e),i=e+new Array(n+1).join(".0");return t.map(i.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(i&&(a=o-Math.min(r,s)),o-=1;o>=a;){if(u[0][o]>u[1][o])return 1;if(u[0][o]===u[1][o]){if(o===a)return 0;o-=1}else if(u[0][o]<u[1][o])return-1}},t.map=function(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n<t.length;n+=1)i.push(e(t[n]));return i},t.find=function(t,e){var n,i;if(Array.prototype.find)return Array.prototype.find.call(t,e);for(n=0,i=t.length;n<i;n+=1){var r=t[n];if(e(r,n))return r}},t.assign=function(t){for(var e,n,i=t,r=arguments.length,s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];if(Object.assign)return Object.assign.apply(Object,[t].concat(s));var a=function(){var t=s[e];"object"==c(t)&&null!==t&&Object.keys(t).forEach((function(e){i[e]=t[e]}))};for(e=0,n=s.length;e<n;e+=1)a();return t},t.getBrowserAlias=function(t){return i.BROWSER_ALIASES_MAP[t]},t.getBrowserTypeByAlias=function(t){return i.BROWSER_MAP[t]||""},t}();e.default=r,t.exports=e.default},18:function(t,e,n){e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},e.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},e.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},e.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},e.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(t,e,n){e.__esModule=!0,e.default=void 0;var i,r=(i=n(91))&&i.__esModule?i:{default:i},s=n(18);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=function(){function t(){}var e,n,i;return t.getParser=function(t,e){if(void 0===e&&(e=!1),"string"!=typeof t)throw new Error("UserAgent should be a string");return new r.default(t,e)},t.parse=function(t){return new r.default(t).getResult()},e=t,i=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(n=null)&&o(e.prototype,n),i&&o(e,i),t}();e.default=a,t.exports=e.default},91:function(t,e,n){e.__esModule=!0,e.default=void 0;var i=u(n(92)),r=u(n(93)),s=u(n(94)),o=u(n(95)),a=u(n(17));function u(t){return t&&t.__esModule?t:{default:t}}var h=function(){function t(t,e){if(void 0===e&&(e=!1),null==t||""===t)throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},!0!==e&&this.parse()}var e=t.prototype;return e.getUA=function(){return this._ua},e.test=function(t){return t.test(this._ua)},e.parseBrowser=function(){var t=this;this.parsedResult.browser={};var e=a.default.find(i.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser},e.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},e.getBrowserName=function(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},e.getBrowserVersion=function(){return this.getBrowser().version},e.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},e.parseOS=function(){var t=this;this.parsedResult.os={};var e=a.default.find(r.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os},e.getOSName=function(t){var e=this.getOS().name;return t?String(e).toLowerCase()||"":e||""},e.getOSVersion=function(){return this.getOS().version},e.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},e.getPlatformType=function(t){void 0===t&&(t=!1);var e=this.getPlatform().type;return t?String(e).toLowerCase()||"":e||""},e.parsePlatform=function(){var t=this;this.parsedResult.platform={};var e=a.default.find(s.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform},e.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},e.getEngineName=function(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},e.parseEngine=function(){var t=this;this.parsedResult.engine={};var e=a.default.find(o.default,(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some((function(e){return t.test(e)}));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine},e.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},e.getResult=function(){return a.default.assign({},this.parsedResult)},e.satisfies=function(t){var e=this,n={},i=0,r={},s=0;if(Object.keys(t).forEach((function(e){var o=t[e];"string"==typeof o?(r[e]=o,s+=1):"object"==c(o)&&(n[e]=o,i+=1)})),i>0){var o=Object.keys(n),u=a.default.find(o,(function(t){return e.isOS(t)}));if(u){var h=this.satisfies(n[u]);if(void 0!==h)return h}var l=a.default.find(o,(function(t){return e.isPlatform(t)}));if(l){var f=this.satisfies(n[l]);if(void 0!==f)return f}}if(s>0){var d=Object.keys(r),p=a.default.find(d,(function(t){return e.isBrowser(t,!0)}));if(void 0!==p)return this.compareVersion(r[p])}},e.isBrowser=function(t,e){void 0===e&&(e=!1);var n=this.getBrowserName().toLowerCase(),i=t.toLowerCase(),r=a.default.getBrowserTypeByAlias(i);return e&&r&&(i=r.toLowerCase()),i===n},e.compareVersion=function(t){var e=[0],n=t,i=!1,r=this.getBrowserVersion();if("string"==typeof r)return">"===t[0]||"<"===t[0]?(n=t.substr(1),"="===t[1]?(i=!0,n=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?n=t.substr(1):"~"===t[0]&&(i=!0,n=t.substr(1)),e.indexOf(a.default.compareVersions(r,n,i))>-1},e.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},e.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},e.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},e.is=function(t){return this.isBrowser(t)||this.isOS(t)||this.isPlatform(t)},e.some=function(t){var e=this;return void 0===t&&(t=[]),t.some((function(t){return e.is(t)}))},t}();e.default=h,t.exports=e.default},92:function(t,e,n){e.__esModule=!0,e.default=void 0;var i,r=(i=n(17))&&i.__esModule?i:{default:i},s=/version\/(\d+(\.?_?\d+)+)/i,o=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},n=r.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},n=r.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},n=r.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},n=r.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},n=r.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},n=r.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},n=r.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/qqbrowser/i],describe:function(t){var e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},n=r.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},n=r.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},n=r.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},n=r.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},n=r.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},n=r.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},n=r.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},n=r.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},n=r.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},n=r.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},n=r.default.getFirstMatch(s,t)||r.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},n=r.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},n=r.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},n=r.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},n=r.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/electron/i],describe:function(t){var e={name:"Electron"},n=r.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},n=r.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},n=r.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/GSA/i],describe:function(t){var e={name:"Google Search"},n=r.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e={name:"Android Browser"},n=r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},n=r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},n=r.default.getFirstMatch(s,t);return n&&(e.version=n),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:r.default.getFirstMatch(e,t),version:r.default.getSecondMatch(e,t)}}}];e.default=o,t.exports=e.default},93:function(t,e,n){e.__esModule=!0,e.default=void 0;var i,r=(i=n(17))&&i.__esModule?i:{default:i},s=n(18),o=[{test:[/Roku\/DVP/],describe:function(t){var e=r.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:s.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(t){var e=r.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:s.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(t){var e=r.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),n=r.default.getWindowsVersionName(e);return{name:s.OS_MAP.Windows,version:e,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?) Version\//],describe:function(t){var e=r.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return{name:s.OS_MAP.iOS,version:e}}},{test:[/macintosh/i],describe:function(t){var e=r.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),n=r.default.getMacOSVersionName(e),i={name:s.OS_MAP.MacOS,version:e};return n&&(i.versionName=n),i}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var e=r.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:e}}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e=r.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),n=r.default.getAndroidVersionName(e),i={name:s.OS_MAP.Android,version:e};return n&&(i.versionName=n),i}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=r.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:s.OS_MAP.WebOS};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e=r.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||r.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||r.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:s.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(t){var e=r.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:s.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(t){var e=r.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:s.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var e=r.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:s.OS_MAP.PlayStation4,version:e}}}];e.default=o,t.exports=e.default},94:function(t,e,n){e.__esModule=!0,e.default=void 0;var i,r=(i=n(17))&&i.__esModule?i:{default:i},s=n(18),o=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=r.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?) Version\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(t){var e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe:function(t){var e=r.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=o,t.exports=e.default},95:function(t,e,n){e.__esModule=!0,e.default=void 0;var i,r=(i=n(17))&&i.__esModule?i:{default:i},s=n(18),o=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:s.ENGINE_MAP.Blink};var e=r.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:s.ENGINE_MAP.EdgeHTML,version:e}}},{test:[/trident/i],describe:function(t){var e={name:s.ENGINE_MAP.Trident},n=r.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:s.ENGINE_MAP.Presto},n=r.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe:function(t){var e={name:s.ENGINE_MAP.Gecko},n=r.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:s.ENGINE_MAP.WebKit},n=r.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];e.default=o,t.exports=e.default}})}))})),H=t(G);G.bowser;var W=H.getParser(window.navigator.userAgent),Z="1.0.33";console.log(Z);var U=function(){function t(e){var n=this,i=e.url,r=void 0===i?"ws://localhost:1234":i,s=e.publicKey,a=void 0===s?"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDbEpPpxpLJft4W9YZj8bRh2bYYZshBEsKOlxgyn11rlEyTasjBSZRV9aj33tvQ2T55izH0fWl+dL/dLZChawFrlGDcH8JuWge2xYMgII9mggcYa0UiQ7pLXJ9ivXZ/cOY3HzrRQdR7dGTSNn3Z0Ctbns6mLgvlA2r3qMNs/8wHBwIDAQAB":s,u=e.reConnectCount,c=void 0===u?2:u,h=e.connectTimeOut,l=void 0===h?3e4:h,f=e.reLoginCount,d=void 0===f?0:f,p=e.loginIp,g=void 0===p?location.hostname:p,m=e.loginPort,v=void 0===m?location.port:m,b=e.userName,y=void 0===b?"":b,w=e.userPwd,S=void 0===w?"":w,T=e.token,M=void 0===T?"":T,C=e.callback,D=void 0===C?{connectResult:null,loginResult:null}:C,R=e.isKeepConnect,O=void 0!==R&&R,x=e.detectDssVersion,I=void 0===x||x,P=e.messageEvents,V=void 0===P?{}:P;o(this,t),this.isConnectSuccessQt=!1,this.isLoginSuccess=!1,this.messageEvents={},this.reConnectCount=2,this.connectFailCount=0,this.connectEnd=!0,this.connectStartTime=0,this.connectTimeOut=3e4,this.loginEnd=!0,this.loginStartTime=0,this.loginTimeOut=6e4,this.reLoginCount=0,this.loginFailCount=0,this.config={browser:{}},this.userCode=0,this.detectDssVersion=!0,this.currentDssVersion="",this.getVersionEnd=!0,this.getVersionStartTime=0,this.getVersionTimeOut=3e4,this.onlineDssVersion="",this.onlineDssVersionAfterfix="/data/VSL/DSSEnterpriseClient/LightWeightVersion.txt",this.onlineDssAfterfix="/data/VSL/DSSEnterpriseClient/DSS_LightWeight_Client.zip",this.isKeepConnect=!1,this.ids=[],this.ctrls=[],this.heartBeatTimer=null,this.handlers={},this.url=r,this.userCode=(new Date).valueOf(),this.webSocket=null,this.reConnectCount=c,this.connectTimeOut=l,this.reLoginCount=d,this.publicKey=a,this.loginIp=g,this.loginPort=v,this.userName=y,this.userPwd=S,this.token=M,this.callback=D,this.isKeepConnect=O,this.detectDssVersion=I,this.messageEvents=V||{},this.connectFailCount=this.connectFailCount,this.ids=[],this.ctrls=[],this.isConnectSuccessQt=!1,this.isLoginSuccess=!1,this.heartBeatTimer=null,this.handlers={},this.listerns=new Map;var N=[];Object.keys(E).forEach((function(t){Q(E,t)&&N.push(E[t])})),q(N),this.messageEvents=Object.assign(this.messageEvents,A),Object.keys(this.messageEvents).forEach((function(t){n.addEventListener(t,n.messageEvents[t].bind(n))})),this.initConfig(),this.connectQt(),document.title+="-"+this.userCode}return a(t,[{key:"on",value:function(t,e){this.listerns.set(t,e)}},{key:"off",value:function(t){delete this.listerns[t]}},{key:"addEventListener",value:function(t,e){t in this.handlers||(this.handlers[t]=[]),this.handlers[t].push(e)}},{key:"dispatchEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(!(t in this.handlers))return new Error("未注册该事件");this.handlers[t].forEach((function(t){t.apply(void 0,n)}))}},{key:"removeEventListener",value:function(t,e){if(!(t in this.handlers))return new Error("无效事件");if(e){var n=this.handlers[t].findIndex((function(t){return t===e}));if(-1===n)return new Error("无该绑定事件");this.handlers[t].splice(n,1),0===this.handlers[t].length&&delete this.handlers[t]}else delete this.handlers[t]}},{key:"postMessage",value:function(t,e){var n=this;"heartbeat"!==t&&console.log("postMessage",t,e);var i=this.webSocket;e.method=t;var r=["heartbeat","login","logout","browserInfo","getVersion","trusteSite"];return r.includes(t)?(i.send(JSON.stringify(e)),Promise.resolve(!0)):new Promise((function(t,r){n.keeper().then((function(n){n?(i.send(JSON.stringify(e)),t(!0)):r(!1)})).catch((function(t){console.error("ws-error in keeper")}))}))}},{key:"initConfig",value:function(){this.token&&this.token.split("_")[0]&&(this.userName=this.token.split("_")[0]),this.config={userName:this.userName,userCode:this.userCode,loginPort:this.loginPort,loginIp:this.loginIp,userPwd:this.userPwd,token:this.token};var t={name:"",version:"",platform:""};t.name=W.getBrowserName().toLowerCase(),t.version=W.getBrowser().version.toLowerCase(),t.platform=W._ua.indexOf("Win64")>=0||W._ua.indexOf("Wow64")>=0?"win64":"win32",this.config["browser"]=t}},{key:"connectQt",value:function(){return this.connectFailCount=0,this.connectEnd=!1,this.connectStartTime=Date.now(),this.webSocket=new j(this.url,"",{maxRetries:this.reConnectCount,connectionTimeout:this.connectTimeOut}),this.removeEvents(),this.addEvents(),this.detectConnectQt()}},{key:"getDSSVersion",value:function(){this.getVersion(),this.getOnlineDssVersion()}},{key:"getOnlineDssVersion",value:function(){var t=this,e=this.config["browser"].platform,n=this.onlineDssVersionAfterfix;"win32"===e&&(n=n.replace(".txt","32.txt"));var i=new XMLHttpRequest;i.open("get",n),i.send(null),i.onload=function(){200==i.status&&(t.onlineDssVersion=i.response.replace("ClientVersion = ",""),""!==t.currentDssVersion&&t.compareVersion())}}},{key:"detectConnectQt",value:function(){var t=this,e=this;return new Promise((function(n,i){if(t.connectEnd)n(e.isConnectSuccessQt);else var r=setInterval((function(){e.connectEnd&&(clearInterval(r),n(e.isConnectSuccessQt))}),50)}))}},{key:"detectLoginClient",value:function(){var t=this,e=this;return new Promise((function(n,i){if(t.loginEnd)n(e.isLoginSuccess);else var r=setInterval((function(){e.loginEnd&&(clearInterval(r),n(e.isLoginSuccess))}),50)}))}},{key:"keepConnect",value:function(){var t=this;return new Promise((function(e,n){t.detectConnectQt().then((function(i){i?e(!0):t.connectQt().then((function(t){t?e(!0):(console.log("ws-in-keepConnect-reConnect-fail"),n(!1))}))}))}))}},{key:"keeper",value:function(){var t=this;return new Promise((function(e,n){t.detectConnectQt().then((function(i){i?t.detectLoginClient().then((function(i){i?e(!0):(t.loginClient(),t.detectLoginClient().then((function(t){t?e(!0):(console.log("ws-in-keeper-reLogin-fail"),n(!1))})))})):t.connectQt().then((function(i){i?(console.log("ws-in-keeper-reConnect-reLogin"),t.loginClient(),t.detectLoginClient().then((function(t){t?e(!0):(console.log("ws-in-keeper-reLogin-fail"),n(!1))}))):(console.log("ws-in-keeper-reConnect-fail"),n(!1))}))}))}))}},{key:"getLocalDssVersion",value:function(){var t=this,e=this;return this.getVersion(),console.log("ws-getLocalDssVersion-getVersionEnd-".concat(this.getVersionEnd)),new Promise((function(n,i){if(t.getVersionEnd)n(e.currentDssVersion);else var r=setInterval((function(){e.getVersionEnd&&(clearInterval(r),n(e.currentDssVersion))}),50)}))}},{key:"compareVersion",value:function(){this.currentDssVersion&&this.onlineDssVersion&&Number(this.onlineDssVersion)>Number(this.currentDssVersion)&&this.dispatchEvent("updateDss")}},{key:"downloadClient",value:function(t){var e=navigator.userAgent.toLowerCase(),n="64",i="/data/VSL/DSSEnterpriseClient/DSS_LightWeight_Client";e.indexOf("win32")>=0||e.indexOf("wow32")>=0?n="32":e.indexOf("win64")>=0||e.indexOf("wow64")>=0?n="64":e.indexOf("aarch64")>=0?(n="aarch64",i="/data/VSL/DSSEnterpriseClient/aarch64/DSS_LightWeight_Client"):e.indexOf("mips64")>=0?(n="mips64",i="/data/VSL/DSSEnterpriseClient/mips64/DSS_LightWeight_Client"):e.indexOf("x86_64")>=0&&(n="x86_64",i="/data/VSL/DSSEnterpriseClient/x86_64/DSS_LightWeight_Client"),i=t?t+i:location.origin+i,i+="32"===n?"32.zip":".zip",console.log(i),window.open(i)}},{key:"login",value:function(t){var e=this;console.log("ws-login-start"),this.loginFailCount=0;var n=t.userName,i=t.token;i&&i.split("_")[0]&&(n=i.split("_")[0]),this.config["userName"]&&n!==this.config["userName"]&&(this.userCode=(new Date).valueOf()),this.userName=n,this.initConfig(),Object.assign(this.config,t),this.detectConnectQt().then((function(t){t?(console.log("ws-login-start-this.isLoginSuccess",e.isLoginSuccess),e.loginClient(),e.detectDssVersion&&e.getDSSVersion()):e.connectQt().then((function(t){if(!t)throw new Error("连接客户端失败");e.loginClient(),e.detectDssVersion&&e.getDSSVersion()}))}))}},{key:"logout",value:function(){var t=this;this.detectLoginClient().then((function(e){e&&t.logoutClient()})),this.ids=[],this.ctrls=[],this.isLoginSuccess=!1,"function"===typeof this.callback.loginResult&&this.callback.loginResult.call(this,this.isLoginSuccess)}},{key:"addEvents",value:function(){var t=this.webSocket;t.addEventListener("open",this.onOpen.bind(this)),t.addEventListener("message",this.onMessage.bind(this)),t.addEventListener("error",this.onError.bind(this)),window.addEventListener("resize",this.reLocatedPosition.bind(this)),window.addEventListener("scroll",this.reLocatedPosition.bind(this)),window.addEventListener("visibilitychange",this.webVisibilityChange.bind(this)),window.addEventListener("onunload",this.closeBrowser.bind(this))}},{key:"removeEvents",value:function(){var t=this.webSocket;t.removeEventListener("open",this.onOpen),t.removeEventListener("message",this.onMessage),t.removeEventListener("error",this.onError),window.removeEventListener("resize",this.reLocatedPosition),window.removeEventListener("scroll",this.reLocatedPosition),window.removeEventListener("visibilitychange",this.webVisibilityChange),window.removeEventListener("onunload",this.closeBrowser)}},{key:"onOpen",value:function(){console.log("ws-onOpen"),this.isConnectSuccessQt=!0,this.dispatchEvent("connectStateChange",!0),this.connectEnd=!0,"function"===typeof this.callback.connectResult&&this.callback.connectResult.call(this,this.isConnectSuccessQt),this.getVersionEnd=!1,this.getDSSVersion()}},{key:"onMessage",value:function(t){console.log("onMessage",t);try{var e=JSON.parse(t.data),n=e.method,i=this.listerns.get(n),r=T[n]?T[n](e):e;this.dispatchEvent(n,r),"loginState"===n?i&&i(this.isLoginSuccess):i&&i(e)}catch(s){console.log("ws-error-客户端返回的消息不是Json数据",s)}}},{key:"onError",value:function(){this.ctrls=[],this.ids=[],this.connectFailCount++,this.connectFailCount===this.reConnectCount+1&&(clearTimeout(this.heartbeatTimer),this.isConnectSuccessQt=!1,this.dispatchEvent("connectStateChange",!1),this.connectEnd=!0,this.isKeepConnect&&this.keepConnect(),"function"===typeof this.callback.connectResult&&this.callback.connectResult.call(this,this.isConnectSuccessQt))}},{key:"isOpen",value:function(){return!!this.webSocket&&1===this.webSocket.readyState}},{key:"_heartbeat",value:function(){var t=this;this.heartbeat(),clearTimeout(this.heartbeatTimer),this.heartbeatTimer=setTimeout((function(){t._heartbeat()}),1e4)}},{key:"closeBrowser",value:function(){this.logout();var t=(new Date).getTime();while((new Date).getTime()-t<100);}}],[{key:"getInstance",value:function(e){try{top["$ws"]?this._instance=top["$ws"]:this._instance||(this._instance=new t(e||{}),top["$ws"]=this._instance)}catch(n){this._instance||(this._instance=new t(e||{}))}return this._instance}}]),t}();function Q(t,e){return e in t}function q(t){t.forEach((function(t){Object.getOwnPropertyNames(t).forEach((function(e){U.prototype[e]=t[e]}))}))}return U.url="",U.publicKey="",U._instance=null,U}))}).call(this,n("c8ba"))},2976:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return o}));var i=n("b775");function r(){return Object(i["a"])({url:"/center-fire/VisuForestCloudMapController/getBaseInfo",method:"post"})}function s(t){return Object(i["a"])({url:"/center-fire/VisuForestCloudMapController/getTodayEvents",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/center-fire/VisuForestCloudMapController/getDeptEventCount",method:"post",data:t})}},"2f41":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAmCAYAAACCjRgBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvI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58zxcu7Tl2NdM1DXdycxMVMgxlbq4qoZCYkXdfKiRFw/KZfg63MunLThl1evLp4q+0ymZSzjfAfwVVrGkbGMMmiVm/+CwSDiIgUN77G1ySW1vX+/+v9eo3MaHQtRRCjKnWkf8bg9XsOYCPAJ4AeNDpdqPSFycphioFdEUlnymyNgDgF8Gh8hhmTmo4AAAAAElFTkSuQmCC"},"450c":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}));var i=n("b775");function r(t){return Object(i["a"])({url:"/center-data/supermap/maplist?codes="+t,method:"get"})}var s={marker:n("5b94"),"big-horn":n("caf0"),camera:n("8fe8"),"camera-not":n("045c"),"not-online":n("19d9"),sensor:n("c074"),"sj-icon-map-fhjcz":n("8753"),"sj-icon-map-lc":n("51e4"),"sj-icon-map-qjd":n("0b2e"),"sj-icon-map-qsk":n("83fd"),"sj-icon-map-qxz":n("dfc1"),"sj-icon-map-sh":n("fbcd"),"sj-icon-map-slfh":n("b88c3"),"sj-icon-map-syqd":n("4566"),"sj-icon-map-xhs":n("cfcb"),"sj-icon-map-wcl":n("149e"),"sj-icon-map-clz":n("c91f"),"sj-icon-map-ywc":n("fbc1"),"sj-icon-map-rg":n("8293"),"sj-icon-map-hx":n("ae2c"),"sj-icon-map-kk":n("edac")}},4566:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-syqd.1d3a1104.png"},"51e4":function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-lc.93fc2531.png"},"5b94":function(t,e,n){t.exports=n.p+"static/img/marker.740c987b.png"},"5fc6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAaCAYAAAAue6XIAAAJOUlEQVRYha2YeYxV1R3HP2e59773Zh9m08GlTlmLtIoWZEI1bdWYxtTiUheMRo3aVK0LjdEmRU1NS5PaShNsNNHWqP/UmipqRS3a1J0RKC4gIioUZoBhYLY377177/k15z6wojCm0pO8vDs3J3M/53u+5/v7vas4xNF6vmigGzh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46PJJFsFYmGbXamXwnH0qNx949GCwvrw9t+T33Sc+eVfhlx+8llxwoEnPnlG/2oQ8YrKmWlChy+Ip0TDBDNFQ2TXe7rGuro2ytTitCKzCS2e1UMol2fYrwxZ1Uuzj6tRrbyrPPKiyQJrUVyh1DTJn4NVTHtw5c604s8G0rx7ZN6n88clNPcXfLlleOv20dr2r5TCzncPZQUuykyHXxLpds9g8+TSGNoHdnUPFumqDwZCgbZRgqIhqyqO9fZQQGIWtc8Qm2wynlFxxj+0Y/fHNxRuAh39yXXLu3Uts8llY5W2w4nfxlWGabH/i0tM359XgPHHmaBHTLKmNxJk94mxRnB3aER8Z/z054/vb6Yh26Ba2qzZETJYQJh8yuCGgbzWfHLDC0SVa51Zwu4tIf0xNZ0RhYkAlTDMb+YhQioX3mI5Pmu9rbyqfpWPTfPcSe//nYMfdvwOM89btmqcMf9WGZp+bvtn2uVke0dkvgigwiGeJHC5Is0KQ+MNowfWWSfoc5nBD0KUFw8J7dMd+P2t+PiL1pefdsvyZ+ge3GzVwSLB+XPhhf5cyPKg0c30V8s5Xutp0q33X/kN1Mdm12qukhmSL7E5elJVqh1mlY/O4Tswb9y5qylJgUSovr3o8nptW6Hn6/PDEQ4b145JtOzWai5XhVqVl8n6QXvF9gHu/vVfR7FGwFMXipapj6LJfb5+gY3OuTswMHRtlYquabsjNf275cDtGVr2+oHHW/wV237hs9w7fk3Qr7V9ySLd/h6A0TXshS0rJRhQ9SrEcxbKlqmPclxyLUmle+Wh8WlqRZ5dfHP3XBsB/AKb8xI+5/ryWAAAAAElFTkSuQmCC"},6121:function(t,e,n){t.exports=n.p+"static/img/mascot-small.f1500b7e.png"},"695f":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}));var i=n("b775");function r(){return Object(i["a"])({url:"/center-monitor/DahuaController/getDahuaVideoServer",method:"get"})}function s(){return Object(i["a"])({url:"/center-monitor/TVWallController/init",method:"get"})}},8293:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-rg.a49e763e.png"},"83fd":function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-qsk.8718b165.png"},8753:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-fhjcz.372196fa.png"},"8fe8":function(t,e,n){t.exports=n.p+"static/img/camera.ac0c3947.png"},ae2c:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-hx.29c4bc9d.png"},b88c3:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-slfh.f47ce568.png"},c074:function(t,e,n){t.exports=n.p+"static/img/sensor.97783aee.png"},c110:function(t,e,n){t.exports=n.p+"static/img/img-sample.86f58e17.png"},c91f:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-clz.3a5a8a71.png"},caf0:function(t,e,n){t.exports=n.p+"static/img/big-horn.b4a8334a.png"},cd55:function(t,e,n){t.exports=n.p+"static/img/btm-light.e6b0eecf.png"},cfcb:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-xhs.c5872b8e.png"},dfc1:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-qxz.3e802d0e.png"},edac:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-kk.7f9f69a4.png"},f4f6:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAACdklEQVRoge2ZR4sqQRDHy4g5KyoGPOpFEDz41f0C3gRRRMWDARUTijn7qIa3LLuPt91dvTsrzB/mNFNd/etUVT2Gcrn8hBeW8ZU7DzrAL5AOoLVeHsCsukG/3w+xWAxcLhfY7XYwGo1wOBxgt9vBbDaD+Xyu1J8yAOxoNpuFeDz+6Z3H42EPvlutVtDtdmG9Xqvxq6QVACgWi//s/EfhDOG3kUhEiV8lADjyOMIiyufzYLFYyL7JAE6nExKJhJRtJpOhuqcDRKNRaVsEx71DERkgEAhI25pMJnZaaQqARyVFPp9POwCr1coeihwOh3YAuH4NBgOpA4/Hg2RPngGq8BTTDCCdTpMBQqEQaSOTANxuN8X8TZSZJAGMx2OK+Zs2m420LQmg1+uRssvr9QrVahVut5t0G+Q4UKvVpG0HgwEsl0uSfzLA8/mE6XQqZTsajaju1WSjzWYTjsejkE2r1YLz+Uz2rQQA13ClUmGVF48ajQYMh0MVrtUVNPf7Hfr9/pffnU4nmEwmqtyqLep5loSKZfNeSgGwXPxKGPyo+dN7KQPAepgntcAEsFAoKIMg30pgLZxMJrkK+r/CIqhUKrE4sFgs2L6QlRRAMBiEcDjMihHZfAizULwMwDiCwQyvWzCq7/d7oXaE/g94vV7I5XLkMvB/wujcbre5v+eeARxtvM/5bqVSKZad1ut1Lk/cm1hF7s8rkZsObgBq8S4iDIq84gaw2Ww/BoAbm1fcANQLqO8Sd68ul8uPdcps5j/duQFEz2eKRK5auFE7nQ7L+fEiCoOX6iWFnd5ut2ygRAodbgBsGIuQ3yb9J5/W0gG0lg6gqQDgDyabvhvs60WmAAAAAElFTkSuQmCC"},fbc1:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-ywc.7a887b6b.png"},fbcd:function(t,e,n){t.exports=n.p+"static/img/sj-icon-map-sh.884bbb87.png"}}]);
|