UNPKG

yizun-sdk

Version:

易尊前端SDK - 用于集成前端埋点追踪的JavaScript库

8 lines 125 kB
var base_href="";!function($,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):($="undefined"!=typeof globalThis?globalThis:$||self).hlw_tracking_point=t()}(this,function(){"use strict";function $(){return navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad);?/i)}function t(){return navigator.userAgent.toLowerCase().match(/android|adr/i)}function x($){let t=$.getFullYear(),x=$.getMonth()+1,r=$.getDate(),i=$.getHours(),n=$.getMinutes(),s=$.getSeconds();return[t,x,r].map(e).join("")+[i,n,s].map(e).join("")}let e=$=>($=$.toString())[1]?$:"0"+$;var r,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={exports:{}},s={exports:{}},o=function $(t){var x=t.default;if("function"==typeof x){var e=function(){return x.apply(this,arguments)};e.prototype=x.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function($){var x=Object.getOwnPropertyDescriptor(t,$);Object.defineProperty(e,$,x.get?x:{enumerable:!0,get:function(){return t[$]}})}),e}(Object.freeze({__proto__:null,default:{}}));function a(){var $,t;return r||(r=1,void(s.exports=t=t||function($,t){if("undefined"!=typeof window&&window.crypto&&(e=window.crypto),"undefined"!=typeof self&&self.crypto&&(e=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(e=globalThis.crypto),!e&&"undefined"!=typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&void 0!==i&&i.crypto&&(e=i.crypto),!e)try{e=o}catch(x){}var e,r=function(){if(e){if("function"==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch($){}if("function"==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function $(){}return function(t){var x;return $.prototype=t,x=new $,$.prototype=null,x}}(),s={},a=s.lib={},f=a.Base={extend:function($){var t=n(this);return $&&t.mixIn($),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var $=this.extend();return $.init.apply($,arguments),$},init:function(){},mixIn:function($){for(var t in $)$.hasOwnProperty(t)&&(this[t]=$[t]);$.hasOwnProperty("toString")&&(this.toString=$.toString)},clone:function(){return this.init.prototype.extend(this)}},h=a.WordArray=f.extend({init:function($,t){$=this.words=$||[],this.sigBytes=void 0!=t?t:4*$.length},toString:function($){return($||c).stringify(this)},concat:function($){var t=this.words,x=$.words,e=this.sigBytes,r=$.sigBytes;if(this.clamp(),e%4)for(var i=0;i<r;i++){var n=x[i>>>2]>>>24-i%4*8&255;t[e+i>>>2]|=n<<24-(e+i)%4*8}else for(var s=0;s<r;s+=4)t[e+s>>>2]=x[s>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,x=this.sigBytes;t[x>>>2]&=4294967295<<32-x%4*8,t.length=$.ceil(x/4)},clone:function(){var $=f.clone.call(this);return $.words=this.words.slice(0),$},random:function($){for(var t=[],x=0;x<$;x+=4)t.push(r());return new h.init(t,$)}}),_=s.enc={},c=_.Hex={stringify:function($){for(var t=$.words,x=$.sigBytes,e=[],r=0;r<x;r++){var i=t[r>>>2]>>>24-r%4*8&255;e.push((i>>>4).toString(16)),e.push((15&i).toString(16))}return e.join("")},parse:function($){for(var t=$.length,x=[],e=0;e<t;e+=2)x[e>>>3]|=parseInt($.substr(e,2),16)<<24-e%8*4;return new h.init(x,t/2)}},u=_.Latin1={stringify:function($){for(var t=$.words,x=$.sigBytes,e=[],r=0;r<x;r++){var i=t[r>>>2]>>>24-r%4*8&255;e.push(String.fromCharCode(i))}return e.join("")},parse:function($){for(var t=$.length,x=[],e=0;e<t;e++)x[e>>>2]|=(255&$.charCodeAt(e))<<24-e%4*8;return new h.init(x,t)}},l=_.Utf8={stringify:function($){try{return decodeURIComponent(escape(u.stringify($)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function($){return u.parse(unescape(encodeURIComponent($)))}},p=a.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function($){"string"==typeof $&&($=l.parse($)),this._data.concat($),this._nDataBytes+=$.sigBytes},_process:function(t){var x,e=this._data,r=e.words,i=e.sigBytes,n=this.blockSize,s=i/(4*n),o=(s=t?$.ceil(s):$.max((0|s)-this._minBufferSize,0))*n,a=$.min(4*o,i);if(o){for(var f=0;f<o;f+=n)this._doProcessBlock(r,f);x=r.splice(0,o),e.sigBytes-=a}return new h.init(x,a)},clone:function(){var $=f.clone.call(this);return $._data=this._data.clone(),$},_minBufferSize:0});a.Hasher=p.extend({cfg:f.extend(),init:function($){this.cfg=this.cfg.extend($),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function($){return this._append($),this._process(),this},finalize:function($){return $&&this._append($),this._doFinalize()},blockSize:16,_createHelper:function($){return function(t,x){return new $.init(x).finalize(t)}},_createHmacHelper:function($){return function(t,x){return new d.HMAC.init($,x).finalize(t)}}});var d=s.algo={};return s}(Math))),s.exports}var f,h={exports:{}};function _(){var $,t,x,e,r,i,n,s;return f||(f=1,void(h.exports=(i=(r=(e=t=a()).lib).Base,n=r.WordArray,(s=e.x64={}).Word=i.extend({init:function($,t){this.high=$,this.low=t}}),s.WordArray=i.extend({init:function($,t){$=this.words=$||[],this.sigBytes=t!=x?t:8*$.length},toX32:function(){for(var $=this.words,t=$.length,x=[],e=0;e<t;e++){var r=$[e];x.push(r.high),x.push(r.low)}return n.create(x,this.sigBytes)},clone:function(){for(var $=i.clone.call(this),t=$.words=this.words.slice(0),x=t.length,e=0;e<x;e++)t[e]=t[e].clone();return $}}),t))),h.exports}var c,u,l,p={exports:{}},d={exports:{}},g={exports:{}};function y(){var $,t,x,e;return l||(l=1,void(g.exports=(e=(x=t=a()).lib.WordArray,x.enc.Base64={stringify:function($){var t=$.words,x=$.sigBytes,e=this._map;$.clamp();for(var r=[],i=0;i<x;i+=3)for(var n=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<x;s++)r.push(e.charAt(n>>>6*(3-s)&63));var o=e.charAt(64);if(o)for(;r.length%4;)r.push(o);return r.join("")},parse:function($){var t=$.length,x=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<x.length;i++)r[x.charCodeAt(i)]=i}var n=x.charAt(64);if(n){var s=$.indexOf(n);-1!==s&&(t=s)}return function $(t,x,r){for(var i=[],n=0,s=0;s<x;s++)if(s%4){var o=r[t.charCodeAt(s-1)]<<s%4*2|r[t.charCodeAt(s)]>>>6-s%4*2;i[n>>>2]|=o<<24-n%4*8,n++}return e.create(i,n)}($,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},t.enc.Base64))),g.exports}var v,b,m={exports:{}},S={exports:{}};function w(){var $,t;return b||(b=1,void(S.exports=(t=a(),function($){var x=t,e=x.lib,r=e.WordArray,i=e.Hasher,n=x.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*$.abs($.sin(t+1))|0}();var o=n.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function($,t){for(var x=0;x<16;x++){var e=t+x,r=$[e];$[e]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,n=$[t+0],o=$[t+1],c=$[t+2],u=$[t+3],l=$[t+4],p=$[t+5],d=$[t+6],g=$[t+7],y=$[t+8],v=$[t+9],b=$[t+10],m=$[t+11],S=$[t+12],w=$[t+13],B=$[t+14],E=$[t+15],T=i[0],A=i[1],D=i[2],k=i[3];T=a(T,A,D,k,n,7,s[0]),k=a(k,T,A,D,o,12,s[1]),D=a(D,k,T,A,c,17,s[2]),A=a(A,D,k,T,u,22,s[3]),T=a(T,A,D,k,l,7,s[4]),k=a(k,T,A,D,p,12,s[5]),D=a(D,k,T,A,d,17,s[6]),A=a(A,D,k,T,g,22,s[7]),T=a(T,A,D,k,y,7,s[8]),k=a(k,T,A,D,v,12,s[9]),D=a(D,k,T,A,b,17,s[10]),A=a(A,D,k,T,m,22,s[11]),T=a(T,A,D,k,S,7,s[12]),k=a(k,T,A,D,w,12,s[13]),D=a(D,k,T,A,B,17,s[14]),T=f(T,A=a(A,D,k,T,E,22,s[15]),D,k,o,5,s[16]),k=f(k,T,A,D,d,9,s[17]),D=f(D,k,T,A,m,14,s[18]),A=f(A,D,k,T,n,20,s[19]),T=f(T,A,D,k,p,5,s[20]),k=f(k,T,A,D,b,9,s[21]),D=f(D,k,T,A,E,14,s[22]),A=f(A,D,k,T,l,20,s[23]),T=f(T,A,D,k,v,5,s[24]),k=f(k,T,A,D,B,9,s[25]),D=f(D,k,T,A,u,14,s[26]),A=f(A,D,k,T,y,20,s[27]),T=f(T,A,D,k,w,5,s[28]),k=f(k,T,A,D,c,9,s[29]),D=f(D,k,T,A,g,14,s[30]),T=h(T,A=f(A,D,k,T,S,20,s[31]),D,k,p,4,s[32]),k=h(k,T,A,D,y,11,s[33]),D=h(D,k,T,A,m,16,s[34]),A=h(A,D,k,T,B,23,s[35]),T=h(T,A,D,k,o,4,s[36]),k=h(k,T,A,D,l,11,s[37]),D=h(D,k,T,A,g,16,s[38]),A=h(A,D,k,T,b,23,s[39]),T=h(T,A,D,k,w,4,s[40]),k=h(k,T,A,D,n,11,s[41]),D=h(D,k,T,A,u,16,s[42]),A=h(A,D,k,T,d,23,s[43]),T=h(T,A,D,k,v,4,s[44]),k=h(k,T,A,D,S,11,s[45]),D=h(D,k,T,A,E,16,s[46]),T=_(T,A=h(A,D,k,T,c,23,s[47]),D,k,n,6,s[48]),k=_(k,T,A,D,g,10,s[49]),D=_(D,k,T,A,B,15,s[50]),A=_(A,D,k,T,p,21,s[51]),T=_(T,A,D,k,S,6,s[52]),k=_(k,T,A,D,u,10,s[53]),D=_(D,k,T,A,b,15,s[54]),A=_(A,D,k,T,o,21,s[55]),T=_(T,A,D,k,y,6,s[56]),k=_(k,T,A,D,E,10,s[57]),D=_(D,k,T,A,d,15,s[58]),A=_(A,D,k,T,w,21,s[59]),T=_(T,A,D,k,l,6,s[60]),k=_(k,T,A,D,m,10,s[61]),D=_(D,k,T,A,c,15,s[62]),A=_(A,D,k,T,v,21,s[63]),i[0]=i[0]+T|0,i[1]=i[1]+A|0,i[2]=i[2]+D|0,i[3]=i[3]+k|0},_doFinalize:function(){var t=this._data,x=t.words,e=8*this._nDataBytes,r=8*t.sigBytes;x[r>>>5]|=128<<24-r%32;var i=$.floor(e/4294967296),n=e;x[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),x[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(x.length+1),this._process();for(var s=this._hash,o=s.words,a=0;a<4;a++){var f=o[a];o[a]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return s},clone:function(){var $=i.clone.call(this);return $._hash=this._hash.clone(),$}});function a($,t,x,e,r,i,n){var s=$+(t&x|~t&e)+r+n;return(s<<i|s>>>32-i)+t}function f($,t,x,e,r,i,n){var s=$+(t&e|x&~e)+r+n;return(s<<i|s>>>32-i)+t}function h($,t,x,e,r,i,n){var s=$+(t^x^e)+r+n;return(s<<i|s>>>32-i)+t}function _($,t,x,e,r,i,n){var s=$+(x^(t|~e))+r+n;return(s<<i|s>>>32-i)+t}x.MD5=i._createHelper(o),x.HmacMD5=i._createHmacHelper(o)}(Math),t.MD5))),S.exports}var B,E={exports:{}};function T(){var $,t,x,e,r,i,n,s,o;return B||(B=1,void(E.exports=(r=(e=(x=t=a()).lib).WordArray,i=e.Hasher,n=x.algo,s=[],o=n.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function($,t){for(var x=this._hash.words,e=x[0],r=x[1],i=x[2],n=x[3],o=x[4],a=0;a<80;a++){if(a<16)s[a]=0|$[t+a];else{var f=s[a-3]^s[a-8]^s[a-14]^s[a-16];s[a]=f<<1|f>>>31}var h=(e<<5|e>>>27)+o+s[a];h+=a<20?1518500249+(r&i|~r&n):a<40?1859775393+(r^i^n):a<60?(r&i|r&n|i&n)-1894007588:(r^i^n)-899497514,o=n,n=i,i=r<<30|r>>>2,r=e,e=h}x[0]=x[0]+e|0,x[1]=x[1]+r|0,x[2]=x[2]+i|0,x[3]=x[3]+n|0,x[4]=x[4]+o|0},_doFinalize:function(){var $=this._data,t=$.words,x=8*this._nDataBytes,e=8*$.sigBytes;return t[e>>>5]|=128<<24-e%32,t[14+(e+64>>>9<<4)]=Math.floor(x/4294967296),t[15+(e+64>>>9<<4)]=x,$.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var $=i.clone.call(this);return $._hash=this._hash.clone(),$}}),x.SHA1=i._createHelper(o),x.HmacSHA1=i._createHmacHelper(o),t.SHA1))),E.exports}var A,D={exports:{}};function k(){var $,t,x,e,r,i,n,s,o,f,h,_;return A||(A=1,void(D.exports=(t=a(),x=Math,i=(r=(e=t).lib).WordArray,n=r.Hasher,s=e.algo,o=[],f=[],function(){function $($){for(var t=x.sqrt($),e=2;e<=t;e++)if(!($%e))return!1;return!0}function t($){return 4294967296*($-(0|$))|0}for(var e=2,r=0;r<64;)$(e)&&(r<8&&(o[r]=t(x.pow(e,.5))),f[r]=t(x.pow(e,.3333333333333333)),r++),e++}(),h=[],_=s.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function($,t){for(var x=this._hash.words,e=x[0],r=x[1],i=x[2],n=x[3],s=x[4],o=x[5],a=x[6],_=x[7],c=0;c<64;c++){if(c<16)h[c]=0|$[t+c];else{var u=h[c-15],l=(u<<25|u>>>7)^(u<<14|u>>>18)^u>>>3,p=h[c-2],d=(p<<15|p>>>17)^(p<<13|p>>>19)^p>>>10;h[c]=l+h[c-7]+d+h[c-16]}var g=e&r^e&i^r&i,y=(e<<30|e>>>2)^(e<<19|e>>>13)^(e<<10|e>>>22),v=_+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&o^~s&a)+f[c]+h[c];_=a,a=o,o=s,s=n+v|0,n=i,i=r,r=e,e=v+(y+g)|0}x[0]=x[0]+e|0,x[1]=x[1]+r|0,x[2]=x[2]+i|0,x[3]=x[3]+n|0,x[4]=x[4]+s|0,x[5]=x[5]+o|0,x[6]=x[6]+a|0,x[7]=x[7]+_|0},_doFinalize:function(){var $=this._data,t=$.words,e=8*this._nDataBytes,r=8*$.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=x.floor(e/4294967296),t[15+(r+64>>>9<<4)]=e,$.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var $=n.clone.call(this);return $._hash=this._hash.clone(),$}}),e.SHA256=n._createHelper(_),e.HmacSHA256=n._createHmacHelper(_),t.SHA256))),D.exports}var R,I,C={exports:{}};function O(){var $,t;return I||(I=1,void(C.exports=(t=a(),_(),function(){var $=t,x=$.lib.Hasher,e=$.x64,r=e.Word,i=e.WordArray,n=$.algo;function s(){return r.create.apply(r,arguments)}var o=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],a=[];!function(){for(var $=0;$<80;$++)a[$]=s()}();var f=n.SHA512=x.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function($,t){for(var x=this._hash.words,e=x[0],r=x[1],i=x[2],n=x[3],s=x[4],f=x[5],h=x[6],_=x[7],c=e.high,u=e.low,l=r.high,p=r.low,d=i.high,g=i.low,y=n.high,v=n.low,b=s.high,m=s.low,S=f.high,w=f.low,B=h.high,E=h.low,T=_.high,A=_.low,D=c,k=u,R=l,I=p,C=d,O=g,P=y,H=v,V=b,N=m,M=S,z=w,q=B,j=E,F=T,L=A,K=0;K<80;K++){var U,W,Z=a[K];if(K<16)W=Z.high=0|$[t+2*K],U=Z.low=0|$[t+2*K+1];else{var X=a[K-15],G=X.high,Y=X.low,Q=(G>>>1|Y<<31)^(G>>>8|Y<<24)^G>>>7,J=(Y>>>1|G<<31)^(Y>>>8|G<<24)^(Y>>>7|G<<25),$$=a[K-2],$t=$$.high,$x=$$.low,$e=($t>>>19|$x<<13)^($t<<3|$x>>>29)^$t>>>6,$r=($x>>>19|$t<<13)^($x<<3|$t>>>29)^($x>>>6|$t<<26),$i=a[K-7],$n=$i.high,$s=$i.low,$o=a[K-16],$a=$o.high,$f=$o.low;W=(W=(W=Q+$n+((U=J+$s)>>>0<J>>>0?1:0))+$e+((U+=$r)>>>0<$r>>>0?1:0))+$a+((U+=$f)>>>0<$f>>>0?1:0),Z.high=W,Z.low=U}var $h,$_=V&M^~V&q,$c=N&z^~N&j,$u=D&R^D&C^R&C,$l=k&I^k&O^I&O,$p=(D>>>28|k<<4)^(D<<30|k>>>2)^(D<<25|k>>>7),$d=(k>>>28|D<<4)^(k<<30|D>>>2)^(k<<25|D>>>7),$0=(V>>>14|N<<18)^(V>>>18|N<<14)^(V<<23|N>>>9),$2=(N>>>14|V<<18)^(N>>>18|V<<14)^(N<<23|V>>>9),$6=o[K],$g=$6.high,$y=$6.low,$v=F+$0+(($h=L+$2)>>>0<L>>>0?1:0),$1=$d+$l;F=q,L=j,q=M,j=z,M=V,z=N,V=P+($v=($v=($v=$v+$_+(($h+=$c)>>>0<$c>>>0?1:0))+$g+(($h+=$y)>>>0<$y>>>0?1:0))+W+(($h+=U)>>>0<U>>>0?1:0))+((N=H+$h|0)>>>0<H>>>0?1:0)|0,P=C,H=O,C=R,O=I,R=D,I=k,D=$v+($p+$u+($1>>>0<$d>>>0?1:0))+((k=$h+$1|0)>>>0<$h>>>0?1:0)|0}u=e.low=u+k,e.high=c+D+(u>>>0<k>>>0?1:0),p=r.low=p+I,r.high=l+R+(p>>>0<I>>>0?1:0),g=i.low=g+O,i.high=d+C+(g>>>0<O>>>0?1:0),v=n.low=v+H,n.high=y+P+(v>>>0<H>>>0?1:0),m=s.low=m+N,s.high=b+V+(m>>>0<N>>>0?1:0),w=f.low=w+z,f.high=S+M+(w>>>0<z>>>0?1:0),E=h.low=E+j,h.high=B+q+(E>>>0<j>>>0?1:0),A=_.low=A+L,_.high=T+F+(A>>>0<L>>>0?1:0)},_doFinalize:function(){var $=this._data,t=$.words,x=8*this._nDataBytes,e=8*$.sigBytes;return t[e>>>5]|=128<<24-e%32,t[30+(e+128>>>10<<5)]=Math.floor(x/4294967296),t[31+(e+128>>>10<<5)]=x,$.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var $=x.clone.call(this);return $._hash=this._hash.clone(),$},blockSize:32});$.SHA512=x._createHelper(f),$.HmacSHA512=x._createHmacHelper(f)}(),t.SHA512))),C.exports}var P,H,V,N,M={exports:{}},z={exports:{}};function q(){var $,t,x,e,r;return N||(N=1,void(z.exports=void(e=(x=t=a()).lib.Base,r=x.enc.Utf8,x.algo.HMAC=e.extend({init:function($,t){$=this._hasher=new $.init,"string"==typeof t&&(t=r.parse(t));var x=$.blockSize,e=4*x;t.sigBytes>e&&(t=$.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),n=this._iKey=t.clone(),s=i.words,o=n.words,a=0;a<x;a++)s[a]^=1549556828,o[a]^=909522486;i.sigBytes=n.sigBytes=e,this.reset()},reset:function(){var $=this._hasher;$.reset(),$.update(this._iKey)},update:function($){return this._hasher.update($),this},finalize:function($){var t=this._hasher,x=t.finalize($);return t.reset(),t.finalize(this._oKey.clone().concat(x))}})))),z.exports}var j,F,L={exports:{}};function K(){var $,t,x,e,r,i,n,s,o;return F||(F=1,void(L.exports=(t=a(),T(),q(),r=(e=(x=t).lib).Base,i=e.WordArray,s=(n=x.algo).MD5,o=n.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function($){this.cfg=this.cfg.extend($)},compute:function($,t){for(var x,e=this.cfg,r=e.hasher.create(),n=i.create(),s=n.words,o=e.keySize,a=e.iterations;s.length<o;){x&&r.update(x),x=r.update($).finalize(t),r.reset();for(var f=1;f<a;f++)x=r.finalize(x),r.reset();n.concat(x)}return n.sigBytes=4*o,n}}),x.EvpKDF=function($,t,x){return o.create(x).compute($,t)},t.EvpKDF))),L.exports}var U,W={exports:{}};function Z(){var $,t,x,e,r,i,n,s,o,f,h,_,c,u,l,p,d,g,y,v;return U||(U=1,void(W.exports=(t=a(),K(),void(t.lib.Cipher||(r=(e=(x=t).lib).Base,i=e.WordArray,n=e.BufferedBlockAlgorithm,(s=x.enc).Utf8,o=s.Base64,f=x.algo.EvpKDF,h=e.Cipher=n.extend({cfg:r.extend(),createEncryptor:function($,t){return this.create(this._ENC_XFORM_MODE,$,t)},createDecryptor:function($,t){return this.create(this._DEC_XFORM_MODE,$,t)},init:function($,t,x){this.cfg=this.cfg.extend(x),this._xformMode=$,this._key=t,this.reset()},reset:function(){n.reset.call(this),this._doReset()},process:function($){return this._append($),this._process()},finalize:function($){return $&&this._append($),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function $($){return"string"==typeof $?v:g}return function(t){return{encrypt:function(x,e,r){return $(e).encrypt(t,x,e,r)},decrypt:function(x,e,r){return $(e).decrypt(t,x,e,r)}}}}()}),e.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),_=x.mode={},c=e.BlockCipherMode=r.extend({createEncryptor:function($,t){return this.Encryptor.create($,t)},createDecryptor:function($,t){return this.Decryptor.create($,t)},init:function($,t){this._cipher=$,this._iv=t}}),u=_.CBC=function(){var $=c.extend();function t($,t,x){var e,r=this._iv;r?(e=r,this._iv=void 0):e=this._prevBlock;for(var i=0;i<x;i++)$[t+i]^=e[i]}return $.Encryptor=$.extend({processBlock:function($,x){var e=this._cipher,r=e.blockSize;t.call(this,$,x,r),e.encryptBlock($,x),this._prevBlock=$.slice(x,x+r)}}),$.Decryptor=$.extend({processBlock:function($,x){var e=this._cipher,r=e.blockSize,i=$.slice(x,x+r);e.decryptBlock($,x),t.call(this,$,x,r),this._prevBlock=i}}),$}(),l=(x.pad={}).Pkcs7={pad:function($,t){for(var x=4*t,e=x-$.sigBytes%x,r=e<<24|e<<16|e<<8|e,n=[],s=0;s<e;s+=4)n.push(r);var o=i.create(n,e);$.concat(o)},unpad:function($){var t=255&$.words[$.sigBytes-1>>>2];$.sigBytes-=t}},e.BlockCipher=h.extend({cfg:h.cfg.extend({mode:u,padding:l}),reset:function(){h.reset.call(this);var $,t=this.cfg,x=t.iv,e=t.mode;this._xformMode==this._ENC_XFORM_MODE?$=e.createEncryptor:($=e.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==$?this._mode.init(this,x&&x.words):(this._mode=$.call(e,this,x&&x.words),this._mode.__creator=$)},_doProcessBlock:function($,t){this._mode.processBlock($,t)},_doFinalize:function(){var $,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),$=this._process(!0)):($=this._process(!0),t.unpad($)),$},blockSize:4}),p=e.CipherParams=r.extend({init:function($){this.mixIn($)},toString:function($){return($||this.formatter).stringify(this)}}),d=(x.format={}).OpenSSL={stringify:function($){var t=$.ciphertext,x=$.salt;return(x?i.create([1398893684,1701076831]).concat(x).concat(t):t).toString(o)},parse:function($){var t,x=o.parse($),e=x.words;return 1398893684==e[0]&&1701076831==e[1]&&(t=i.create(e.slice(2,4)),e.splice(0,4),x.sigBytes-=16),p.create({ciphertext:x,salt:t})}},g=e.SerializableCipher=r.extend({cfg:r.extend({format:d}),encrypt:function($,t,x,e){e=this.cfg.extend(e);var r=$.createEncryptor(x,e),i=r.finalize(t),n=r.cfg;return p.create({ciphertext:i,key:x,iv:n.iv,algorithm:$,mode:n.mode,padding:n.padding,blockSize:$.blockSize,formatter:e.format})},decrypt:function($,t,x,e){return e=this.cfg.extend(e),t=this._parse(t,e.format),$.createDecryptor(x,e).finalize(t.ciphertext)},_parse:function($,t){return"string"==typeof $?t.parse($,this):$}}),y=(x.kdf={}).OpenSSL={execute:function($,t,x,e){e||(e=i.random(8));var r=f.create({keySize:t+x}).compute($,e),n=i.create(r.words.slice(t),4*x);return r.sigBytes=4*t,p.create({key:r,iv:n,salt:e})}},void(v=e.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),encrypt:function($,t,x,e){var r=(e=this.cfg.extend(e)).kdf.execute(x,$.keySize,$.ivSize);e.iv=r.iv;var i=g.encrypt.call(this,$,t,r.key,e);return i.mixIn(r),i},decrypt:function($,t,x,e){e=this.cfg.extend(e),t=this._parse(t,e.format);var r=e.kdf.execute(x,$.keySize,$.ivSize,t.salt);return e.iv=r.iv,g.decrypt.call(this,$,t,r.key,e)}}))))))),W.exports}var X,G,Y,Q,J,$$,$t,$x,$e,$r,$i,$n,$s,$o,$a,$f,$h,$_,$c,$u,$l,$p,$d,$0,$2,$6,$g,$y,$v,$1,$b,$4,$m,$3,$5,$S,$8,$7,$w,$B,$E,$T,$A,$D,$k,$R,$I,$C,$O,$P,$H,$V,$N,$M,$z,$q,$j,$F,$L,$K,$U,$W,$Z,$X,$G,$Y,$Q,$9,$J,t$,tt,tx,te,tr,ti,tn,ts,to,ta,tf,th,t_,tc,tu,tl,tp,td,t0,t2,t6,tg,ty,tv,t1,tb,t4,tm,t3,t5,tS,t8,t7,tw,tB,tE,tT,tA,tD,tk,tR,tI,tC,tO,tP,tH,tV,tN,tM,tz,tq,tj,tF,tL,tK={exports:{}},tU={exports:{}},tW={exports:{}},tZ={exports:{}},tX={exports:{}};($h=n).exports=(tL=a(),_(),c||(c=1,p.exports=($c=a(),function(){if("function"==typeof ArrayBuffer){var $=$c.lib.WordArray,t=$.init;($.init=function($){if($ instanceof ArrayBuffer&&($=new Uint8Array($)),($ instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&$ instanceof Uint8ClampedArray||$ instanceof Int16Array||$ instanceof Uint16Array||$ instanceof Int32Array||$ instanceof Uint32Array||$ instanceof Float32Array||$ instanceof Float64Array)&&($=new Uint8Array($.buffer,$.byteOffset,$.byteLength)),$ instanceof Uint8Array){for(var x=$.byteLength,e=[],r=0;r<x;r++)e[r>>>2]|=$[r]<<24-r%4*8;t.call(this,e,x)}else t.apply(this,arguments)}).prototype=$}}(),$c.lib.WordArray)),p.exports,u||(u=1,d.exports=($l=a(),function(){var $=$l,t=$.lib.WordArray,x=$.enc;function e($){return $<<8&4278255360|$>>>8&16711935}x.Utf16=x.Utf16BE={stringify:function($){for(var t=$.words,x=$.sigBytes,e=[],r=0;r<x;r+=2){var i=t[r>>>2]>>>16-r%4*8&65535;e.push(String.fromCharCode(i))}return e.join("")},parse:function($){for(var x=$.length,e=[],r=0;r<x;r++)e[r>>>1]|=$.charCodeAt(r)<<16-r%2*16;return t.create(e,2*x)}},x.Utf16LE={stringify:function($){for(var t=$.words,x=$.sigBytes,r=[],i=0;i<x;i+=2){var n=e(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(n))}return r.join("")},parse:function($){for(var x=$.length,r=[],i=0;i<x;i++)r[i>>>1]|=e($.charCodeAt(i)<<16-i%2*16);return t.create(r,2*x)}}}(),$l.enc.Utf16)),d.exports,y(),v||(v=1,m.exports=($2=($0=$d=a()).lib.WordArray,$0.enc.Base64url={stringify:function($,t=!0){var x=$.words,e=$.sigBytes,r=t?this._safe_map:this._map;$.clamp();for(var i=[],n=0;n<e;n+=3)for(var s=(x[n>>>2]>>>24-n%4*8&255)<<16|(x[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|x[n+2>>>2]>>>24-(n+2)%4*8&255,o=0;o<4&&n+.75*o<e;o++)i.push(r.charAt(s>>>6*(3-o)&63));var a=r.charAt(64);if(a)for(;i.length%4;)i.push(a);return i.join("")},parse:function($,t=!0){var x=$.length,e=t?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<e.length;i++)r[e.charCodeAt(i)]=i}var n=e.charAt(64);if(n){var s=$.indexOf(n);-1!==s&&(x=s)}return function $(t,x,e){for(var r=[],i=0,n=0;n<x;n++)if(n%4){var s=e[t.charCodeAt(n-1)]<<n%4*2|e[t.charCodeAt(n)]>>>6-n%4*2;r[i>>>2]|=s<<24-i%4*8,i++}return $2.create(r,i)}($,x,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},$d.enc.Base64url)),m.exports,w(),T(),k(),R||(R=1,({exports:{}}).exports=($g=a(),k(),$v=($y=$g).lib.WordArray,$b=($1=$y.algo).SHA256,$4=$1.SHA224=$b.extend({_doReset:function(){this._hash=new $v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var $=$b._doFinalize.call(this);return $.sigBytes-=4,$}}),$y.SHA224=$b._createHelper($4),$y.HmacSHA224=$b._createHmacHelper($4),$g.SHA224)),O(),P||(P=1,({exports:{}}).exports=($3=a(),_(),O(),$8=($S=($5=$3).x64).Word,$7=$S.WordArray,$B=($w=$5.algo).SHA512,$E=$w.SHA384=$B.extend({_doReset:function(){this._hash=new $7.init([new $8.init(3418070365,3238371032),new $8.init(1654270250,914150663),new $8.init(2438529370,812702999),new $8.init(355462360,4144912697),new $8.init(1731405415,4290775857),new $8.init(2394180231,1750603025),new $8.init(3675008525,1694076839),new $8.init(1203062813,3204075428)])},_doFinalize:function(){var $=$B._doFinalize.call(this);return $.sigBytes-=16,$}}),$5.SHA384=$B._createHelper($E),$5.HmacSHA384=$B._createHmacHelper($E),$3.SHA384)),H||(H=1,M.exports=($A=a(),_(),$D=Math,$I=($R=($k=$A).lib).WordArray,$C=$R.Hasher,$O=$k.x64.Word,$P=$k.algo,$H=[],$V=[],$N=[],function(){for(var $=1,t=0,x=0;x<24;x++){$H[$+5*t]=(x+1)*(x+2)/2%64;var e=(2*$+3*t)%5;$=t%5,t=e}for($=0;$<5;$++)for(t=0;t<5;t++)$V[$+5*t]=t+(2*$+3*t)%5*5;for(var r=1,i=0;i<24;i++){for(var n=0,s=0,o=0;o<7;o++){if(1&r){var a=(1<<o)-1;a<32?s^=1<<a:n^=1<<a-32}128&r?r=r<<1^113:r<<=1}$N[i]=$O.create(n,s)}}(),$M=[],function(){for(var $=0;$<25;$++)$M[$]=$O.create()}(),$z=$P.SHA3=$C.extend({cfg:$C.cfg.extend({outputLength:512}),_doReset:function(){for(var $=this._state=[],t=0;t<25;t++)$[t]=new $O.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function($,t){for(var x=this._state,e=this.blockSize/2,r=0;r<e;r++){var i=$[t+2*r],n=$[t+2*r+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),(w=x[r]).high^=n,w.low^=i}for(var s=0;s<24;s++){for(var o=0;o<5;o++){for(var a=0,f=0,h=0;h<5;h++)a^=(w=x[o+5*h]).high,f^=w.low;var _=$M[o];_.high=a,_.low=f}for(o=0;o<5;o++){var c=$M[(o+4)%5],u=$M[(o+1)%5],l=u.high,p=u.low;for(a=c.high^(l<<1|p>>>31),f=c.low^(p<<1|l>>>31),h=0;h<5;h++)(w=x[o+5*h]).high^=a,w.low^=f}for(var d=1;d<25;d++){var g=(w=x[d]).high,y=w.low,v=$H[d];v<32?(a=g<<v|y>>>32-v,f=y<<v|g>>>32-v):(a=y<<v-32|g>>>64-v,f=g<<v-32|y>>>64-v);var b=$M[$V[d]];b.high=a,b.low=f}var m=$M[0],S=x[0];for(m.high=S.high,m.low=S.low,o=0;o<5;o++)for(h=0;h<5;h++){var w=x[d=o+5*h],B=$M[d],E=$M[(o+1)%5+5*h],T=$M[(o+2)%5+5*h];w.high=B.high^~E.high&T.high,w.low=B.low^~E.low&T.low}w=x[0];var A=$N[s];w.high^=A.high,w.low^=A.low}},_doFinalize:function(){var $=this._data,t=$.words;this._nDataBytes;var x=8*$.sigBytes,e=32*this.blockSize;t[x>>>5]|=1<<24-x%32,t[($D.ceil((x+1)/e)*e>>>5)-1]|=128,$.sigBytes=4*t.length,this._process();for(var r=this._state,i=this.cfg.outputLength/8,n=i/8,s=[],o=0;o<n;o++){var a=r[o],f=a.high,h=a.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),s.push(h),s.push(f)}return new $I.init(s,i)},clone:function(){for(var $=$C.clone.call(this),t=$._state=this._state.slice(0),x=0;x<25;x++)t[x]=t[x].clone();return $}}),$k.SHA3=$C._createHelper($z),$k.HmacSHA3=$C._createHmacHelper($z),$A.SHA3)),M.exports,V||(V=1,({exports:{}}).exports=($j=a(),function($){var t=$j,x=t.lib,e=x.WordArray,r=x.Hasher,i=t.algo,n=e.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=e.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),o=e.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=e.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=e.create([0,1518500249,1859775393,2400959708,2840853838]),h=e.create([1352829926,1548603684,1836072691,2053994217,0]),_=i.RIPEMD160=r.extend({_doReset:function(){this._hash=e.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function($,t){for(var x,e,r,i,_,c,u,l,p,g,y,v,b,m,S,w,B,E,T,A,D,k,R,I,C=0;C<16;C++){var O=t+C,P=$[O];$[O]=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8)}var H,V,N,M,z,q,j,F,L,K,U,W=this._hash.words,Z=f.words,X=h.words,G=n.words,Y=s.words,Q=o.words,J=a.words;for(q=H=W[0],j=V=W[1],F=N=W[2],L=M=W[3],K=z=W[4],C=0;C<80;C+=1){U=H+$[t+G[C]]|0,U+=C<16?(V^N^M)+Z[0]:C<32?(x=V,e=N,r=M,(x&e|~x&r)+Z[1]):C<48?(i=V,_=N,c=M,((i|~_)^c)+Z[2]):C<64?(u=V,l=N,p=M,(u&p|l&~p)+Z[3]):(g=V,y=N,v=M,(g^(y|~v))+Z[4]),U=(U=d(U|=0,Q[C]))+z|0,H=z,z=M,M=d(N,10),N=V,V=U,U=q+$[t+Y[C]]|0,U+=C<16?(b=j,m=F,S=L,(b^(m|~S))+X[0]):C<32?(w=j,B=F,E=L,(w&E|B&~E)+X[1]):C<48?(T=j,A=F,D=L,((T|~A)^D)+X[2]):C<64?(k=j,R=F,I=L,(k&R|~k&I)+X[3]):(j^F^L)+X[4],U=(U=d(U|=0,J[C]))+K|0,q=K,K=L,L=d(F,10),F=j,j=U}U=W[1]+N+L|0,W[1]=W[2]+M+K|0,W[2]=W[3]+z+q|0,W[3]=W[4]+H+j|0,W[4]=W[0]+V+F|0,W[0]=U},_doFinalize:function(){var $=this._data,t=$.words,x=8*this._nDataBytes,e=8*$.sigBytes;t[e>>>5]|=128<<24-e%32,t[14+(e+64>>>9<<4)]=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8),$.sigBytes=4*(t.length+1),this._process();for(var r=this._hash,i=r.words,n=0;n<5;n++){var s=i[n];i[n]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return r},clone:function(){var $=r.clone.call(this);return $._hash=this._hash.clone(),$}});function c($,t,x){return $&t|~$&x}function u($,t,x){return($|~t)^x}function l($,t,x){return $&x|t&~x}function p($,t,x){return $^(t|~x)}function d($,t){return $<<t|$>>>32-t}t.RIPEMD160=r._createHelper(_),t.HmacRIPEMD160=r._createHmacHelper(_)}(),$j.RIPEMD160)),q(),j||(j=1,({exports:{}}).exports=($L=a(),T(),q(),$W=($U=($K=$L).lib).Base,$Z=$U.WordArray,$G=($X=$K.algo).SHA1,$Y=$X.HMAC,$Q=$X.PBKDF2=$W.extend({cfg:$W.extend({keySize:4,hasher:$G,iterations:1}),init:function($){this.cfg=this.cfg.extend($)},compute:function($,t){for(var x=this.cfg,e=$Y.create(x.hasher,$),r=$Z.create(),i=$Z.create([1]),n=r.words,s=i.words,o=x.keySize,a=x.iterations;n.length<o;){var f=e.update(t).finalize(i);e.reset();for(var h=f.words,_=h.length,c=f,u=1;u<a;u++){c=e.finalize(c),e.reset();for(var l=c.words,p=0;p<_;p++)h[p]^=l[p]}r.concat(f),s[0]++}return r.sigBytes=4*o,r}}),$K.PBKDF2=function($,t,x){return $Q.create(x).compute($,t)},$L.PBKDF2)),K(),Z(),X||(X=1,tK.exports=($J=a(),Z(),$J.mode.CFB=function(){var $=$J.lib.BlockCipherMode.extend();function t($,t,x,e){var r,i=this._iv;i?(r=i.slice(0),this._iv=void 0):r=this._prevBlock,e.encryptBlock(r,0);for(var n=0;n<x;n++)$[t+n]^=r[n]}return $.Encryptor=$.extend({processBlock:function($,x){var e=this._cipher,r=e.blockSize;t.call(this,$,x,r,e),this._prevBlock=$.slice(x,x+r)}}),$.Decryptor=$.extend({processBlock:function($,x){var e=this._cipher,r=e.blockSize,i=$.slice(x,x+r);t.call(this,$,x,r,e),this._prevBlock=i}}),$}(),$J.mode.CFB)),tK.exports,G||(G=1,tU.exports=(tt=a(),Z(),tt.mode.CTR=(te=(tx=tt.lib.BlockCipherMode.extend()).Encryptor=tx.extend({processBlock:function($,t){var x=this._cipher,e=x.blockSize,r=this._iv,i=this._counter;r&&(i=this._counter=r.slice(0),this._iv=void 0);var n=i.slice(0);x.encryptBlock(n,0),i[e-1]=i[e-1]+1|0;for(var s=0;s<e;s++)$[t+s]^=n[s]}}),tx.Decryptor=te,tx),tt.mode.CTR)),tU.exports,Y||(Y=1,tW.exports=(ti=a(),Z(),ti.mode.CTRGladman=function(){var $=ti.lib.BlockCipherMode.extend();function t($){if(255==($>>24&255)){var t=$>>16&255,x=$>>8&255,e=255&$;255===t?(t=0,255===x?(x=0,255===e?e=0:++e):++x):++t,$=0,$+=t<<16,$+=x<<8,$+=e}else $+=16777216;return $}var x=$.Encryptor=$.extend({processBlock:function($,x){var e,r=this._cipher,i=r.blockSize,n=this._iv,s=this._counter;n&&(s=this._counter=n.slice(0),this._iv=void 0),0===((e=s)[0]=t(e[0]))&&(e[1]=t(e[1]));var o=s.slice(0);r.encryptBlock(o,0);for(var a=0;a<i;a++)$[x+a]^=o[a]}});return $.Decryptor=x,$}(),ti.mode.CTRGladman)),tW.exports,Q||(Q=1,tZ.exports=(ts=a(),Z(),ts.mode.OFB=(ta=(to=ts.lib.BlockCipherMode.extend()).Encryptor=to.extend({processBlock:function($,t){var x=this._cipher,e=x.blockSize,r=this._iv,i=this._keystream;r&&(i=this._keystream=r.slice(0),this._iv=void 0),x.encryptBlock(i,0);for(var n=0;n<e;n++)$[t+n]^=i[n]}}),to.Decryptor=ta,to),ts.mode.OFB)),tZ.exports,J||(J=1,({exports:{}}).exports=(th=a(),Z(),th.mode.ECB=((t_=th.lib.BlockCipherMode.extend()).Encryptor=t_.extend({processBlock:function($,t){this._cipher.encryptBlock($,t)}}),t_.Decryptor=t_.extend({processBlock:function($,t){this._cipher.decryptBlock($,t)}}),t_),th.mode.ECB)),$$||($$=1,({exports:{}}).exports=(tu=a(),Z(),tu.pad.AnsiX923={pad:function($,t){var x=$.sigBytes,e=4*t,r=e-x%e,i=x+r-1;$.clamp(),$.words[i>>>2]|=r<<24-i%4*8,$.sigBytes+=r},unpad:function($){var t=255&$.words[$.sigBytes-1>>>2];$.sigBytes-=t}},tu.pad.Ansix923)),$t||($t=1,({exports:{}}).exports=(tp=a(),Z(),tp.pad.Iso10126={pad:function($,t){var x=4*t,e=x-$.sigBytes%x;$.concat(tp.lib.WordArray.random(e-1)).concat(tp.lib.WordArray.create([e<<24],1))},unpad:function($){var t=255&$.words[$.sigBytes-1>>>2];$.sigBytes-=t}},tp.pad.Iso10126)),$x||($x=1,({exports:{}}).exports=(t0=a(),Z(),t0.pad.Iso97971={pad:function($,t){$.concat(t0.lib.WordArray.create([2147483648],1)),t0.pad.ZeroPadding.pad($,t)},unpad:function($){t0.pad.ZeroPadding.unpad($),$.sigBytes--}},t0.pad.Iso97971)),$e||($e=1,({exports:{}}).exports=(t6=a(),Z(),t6.pad.ZeroPadding={pad:function($,t){var x=4*t;$.clamp(),$.sigBytes+=x-($.sigBytes%x||x)},unpad:function($){var t=$.words,x=$.sigBytes-1;for(x=$.sigBytes-1;x>=0;x--)if(t[x>>>2]>>>24-x%4*8&255){$.sigBytes=x+1;break}}},t6.pad.ZeroPadding)),$r||($r=1,({exports:{}}).exports=(ty=a(),Z(),ty.pad.NoPadding={pad:function(){},unpad:function(){}},ty.pad.NoPadding)),$i||($i=1,({exports:{}}).exports=(t1=a(),Z(),t4=(tb=t1).lib.CipherParams,tm=tb.enc.Hex,tb.format.Hex={stringify:function($){return $.ciphertext.toString(tm)},parse:function($){var t=tm.parse($);return t4.create({ciphertext:t})}},t1.format.Hex)),$n||($n=1,({exports:{}}).exports=(t5=a(),y(),w(),K(),Z(),t8=(tS=t5).lib.BlockCipher,t7=tS.algo,tw=[],tB=[],tE=[],tT=[],tA=[],tD=[],tk=[],tR=[],tI=[],tC=[],function(){for(var $=[],t=0;t<256;t++)$[t]=t<128?t<<1:t<<1^283;var x=0,e=0;for(t=0;t<256;t++){var r=e^e<<1^e<<2^e<<3^e<<4;r=r>>>8^255&r^99,tw[x]=r,tB[r]=x;var i=$[x],n=$[i],s=$[n],o=257*$[r]^16843008*r;tE[x]=o<<24|o>>>8,tT[x]=o<<16|o>>>16,tA[x]=o<<8|o>>>24,tD[x]=o,o=16843009*s^65537*n^257*i^16843008*x,tk[r]=o<<24|o>>>8,tR[r]=o<<16|o>>>16,tI[r]=o<<8|o>>>24,tC[r]=o,x?(x=i^$[$[$[s^i]]],e^=$[$[e]]):x=e=1}}(),tO=[0,1,2,4,8,16,32,64,128,27,54],tP=t7.AES=t8.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var $=this._keyPriorReset=this._key,t=$.words,x=$.sigBytes/4,e=4*((this._nRounds=x+6)+1),r=this._keySchedule=[],i=0;i<e;i++)i<x?r[i]=t[i]:(o=r[i-1],i%x?x>6&&i%x==4&&(o=tw[o>>>24]<<24|tw[o>>>16&255]<<16|tw[o>>>8&255]<<8|tw[255&o]):(o=tw[(o=o<<8|o>>>24)>>>24]<<24|tw[o>>>16&255]<<16|tw[o>>>8&255]<<8|tw[255&o],o^=tO[i/x|0]<<24),r[i]=r[i-x]^o);for(var n=this._invKeySchedule=[],s=0;s<e;s++){if(i=e-s,s%4)var o=r[i];else o=r[i-4];n[s]=s<4||i<=4?o:tk[tw[o>>>24]]^tR[tw[o>>>16&255]]^tI[tw[o>>>8&255]]^tC[tw[255&o]]}}},encryptBlock:function($,t){this._doCryptBlock($,t,this._keySchedule,tE,tT,tA,tD,tw)},decryptBlock:function($,t){var x=$[t+1];$[t+1]=$[t+3],$[t+3]=x,this._doCryptBlock($,t,this._invKeySchedule,tk,tR,tI,tC,tB),x=$[t+1],$[t+1]=$[t+3],$[t+3]=x},_doCryptBlock:function($,t,x,e,r,i,n,s){for(var o=this._nRounds,a=$[t]^x[0],f=$[t+1]^x[1],h=$[t+2]^x[2],_=$[t+3]^x[3],c=4,u=1;u<o;u++){var l=e[a>>>24]^r[f>>>16&255]^i[h>>>8&255]^n[255&_]^x[c++],p=e[f>>>24]^r[h>>>16&255]^i[_>>>8&255]^n[255&a]^x[c++],d=e[h>>>24]^r[_>>>16&255]^i[a>>>8&255]^n[255&f]^x[c++],g=e[_>>>24]^r[a>>>16&255]^i[f>>>8&255]^n[255&h]^x[c++];a=l,f=p,h=d,_=g}l=(s[a>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&_])^x[c++],p=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[_>>>8&255]<<8|s[255&a])^x[c++],d=(s[h>>>24]<<24|s[_>>>16&255]<<16|s[a>>>8&255]<<8|s[255&f])^x[c++],g=(s[_>>>24]<<24|s[a>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^x[c++],$[t]=l,$[t+1]=p,$[t+2]=d,$[t+3]=g},keySize:8}),tS.AES=t8._createHelper(tP),t5.AES)),$s||($s=1,tX.exports=(tV=a(),y(),w(),K(),Z(),function(){var $=tV,t=$.lib,x=t.WordArray,e=t.BlockCipher,r=$.algo,i=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],n=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],o=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],a=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=r.DES=e.extend({_doReset:function(){for(var $=this._key.words,t=[],x=0;x<56;x++){var e=i[x]-1;t[x]=$[e>>>5]>>>31-e%32&1}for(var r=this._subKeys=[],o=0;o<16;o++){var a=r[o]=[],f=s[o];for(x=0;x<24;x++)a[x/6|0]|=t[(n[x]-1+f)%28]<<31-x%6,a[4+(x/6|0)]|=t[28+(n[x+24]-1+f)%28]<<31-x%6;for(a[0]=a[0]<<1|a[0]>>>31,x=1;x<7;x++)a[x]=a[x]>>>4*(x-1)+3;a[7]=a[7]<<5|a[7]>>>27}var h=this._invSubKeys=[];for(x=0;x<16;x++)h[x]=r[15-x]},encryptBlock:function($,t){this._doCryptBlock($,t,this._subKeys)},decryptBlock:function($,t){this._doCryptBlock($,t,this._invSubKeys)},_doCryptBlock:function($,t,x){this._lBlock=$[t],this._rBlock=$[t+1],h.call(this,4,252645135),h.call(this,16,65535),_.call(this,2,858993459),_.call(this,8,16711935),h.call(this,1,1431655765);for(var e=0;e<16;e++){for(var r=x[e],i=this._lBlock,n=this._rBlock,s=0,f=0;f<8;f++)s|=o[f][((n^r[f])&a[f])>>>0];this._lBlock=n,this._rBlock=i^s}var c=this._lBlock;this._lBlock=this._rBlock,this._rBlock=c,h.call(this,1,1431655765),_.call(this,8,16711935),_.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),$[t]=this._lBlock,$[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h($,t){var x=(this._lBlock>>>$^this._rBlock)&t;this._rBlock^=x,this._lBlock^=x<<$}function _($,t){var x=(this._rBlock>>>$^this._lBlock)&t;this._lBlock^=x,this._rBlock^=x<<$}$.DES=e._createHelper(f);var c=r.TripleDES=e.extend({_doReset:function(){var $=this._key.words;if(2!==$.length&&4!==$.length&&$.length<6)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=$.slice(0,2),e=$.length<4?$.slice(0,2):$.slice(2,4),r=$.length<6?$.slice(0,2):$.slice(4,6);this._des1=f.createEncryptor(x.create(t)),this._des2=f.createEncryptor(x.create(e)),this._des3=f.createEncryptor(x.create(r))},encryptBlock:function($,t){this._des1.encryptBlock($,t),this._des2.decryptBlock($,t),this._des3.encryptBlock($,t)},decryptBlock:function($,t){this._des3.decryptBlock($,t),this._des2.encryptBlock($,t),this._des1.decryptBlock($,t)},keySize:6,ivSize:2,blockSize:2});$.TripleDES=e._createHelper(c)}(),tV.TripleDES)),tX.exports,$o||($o=1,({exports:{}}).exports=(tM=a(),y(),w(),K(),Z(),function(){var $=tM,t=$.lib.StreamCipher,x=$.algo,e=x.RC4=t.extend({_doReset:function(){for(var $=this._key,t=$.words,x=$.sigBytes,e=this._S=[],r=0;r<256;r++)e[r]=r;r=0;for(var i=0;r<256;r++){var n=r%x,s=t[n>>>2]>>>24-n%4*8&255;i=(i+e[r]+s)%256;var o=e[r];e[r]=e[i],e[i]=o}this._i=this._j=0},_doProcessBlock:function($,t){$[t]^=r.call(this)},keySize:8,ivSize:0});function r(){for(var $=this._S,t=this._i,x=this._j,e=0,r=0;r<4;r++){x=(x+$[t=(t+1)%256])%256;var i=$[t];$[t]=$[x],$[x]=i,e|=$[($[t]+$[x])%256]<<24-8*r}return this._i=t,this._j=x,e}$.RC4=t._createHelper(e);var i=x.RC4Drop=e.extend({cfg:e.cfg.extend({drop:192}),_doReset:function(){e._doReset.call(this);for(var $=this.cfg.drop;$>0;$--)r.call(this)}});$.RC4Drop=t._createHelper(i)}(),tM.RC4)),$a||($a=1,({exports:{}}).exports=(tq=a(),y(),w(),K(),Z(),function(){var $=tq,t=$.lib.StreamCipher,x=$.algo,e=[],r=[],i=[],n=x.Rabbit=t.extend({_doReset:function(){for(var $=this._key.words,t=this.cfg.iv,x=0;x<4;x++)$[x]=16711935&($[x]<<8|$[x]>>>24)|4278255360&($[x]<<24|$[x]>>>8);var e=this._X=[$[0],$[3]<<16|$[2]>>>16,$[1],$[0]<<16|$[3]>>>16,$[2],$[1]<<16|$[0]>>>16,$[3],$[2]<<16|$[1]>>>16],r=this._C=[$[2]<<16|$[2]>>>16,4294901760&$[0]|65535&$[1],$[3]<<16|$[3]>>>16,4294901760&$[1]|65535&$[2],$[0]<<16|$[0]>>>16,4294901760&$[2]|65535&$[3],$[1]<<16|$[1]>>>16,4294901760&$[3]|65535&$[0]];for(this._b=0,x=0;x<4;x++)s.call(this);for(x=0;x<8;x++)r[x]^=e[x+4&7];if(t){var i=t.words,n=i[0],o=i[1],a=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),f=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),h=a>>>16|4294901760&f,_=f<<16|65535&a;for(r[0]^=a,r[1]^=h,r[2]^=f,r[3]^=_,r[4]^=a,r[5]^=h,r[6]^=f,r[7]^=_,x=0;x<4;x++)s.call(this)}},_doProcessBlock:function($,t){var x=this._X;s.call(this),e[0]=x[0]^x[5]>>>16^x[3]<<16,e[1]=x[2]^x[7]>>>16^x[5]<<16,e[2]=x[4]^x[1]>>>16^x[7]<<16,e[3]=x[6]^x[3]>>>16^x[1]<<16;for(var r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8),$[t+r]^=e[r]},blockSize:4,ivSize:2});function s(){for(var $=this._X,t=this._C,x=0;x<8;x++)r[x]=t[x];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<r[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<r[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<r[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<r[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<r[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<r[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<r[6]>>>0?1:0)|0,this._b=t[7]>>>0<r[7]>>>0?1:0,x=0;x<8;x++){var e=$[x]+t[x],n=65535&e,s=e>>>16,o=((n*n>>>17)+n*s>>>15)+s*s,a=((4294901760&e)*e|0)+((65535&e)*e|0);i[x]=o^a}$[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,$[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,$[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,$[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,$[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,$[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,$[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,$[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}$.Rabbit=t._createHelper(n)}(),tq.Rabbit)),$f||($f=1,({exports:{}}).exports=(tF=a(),y(),w(),K(),Z(),function(){var $=tF,t=$.lib.StreamCipher,x=$.algo,e=[],r=[],i=[],n=x.RabbitLegacy=t.extend({_doReset:function(){var $=this._key.words,t=this.cfg.iv,x=this._X=[$[0],$[3]<<16|$[2]>>>16,$[1],$[0]<<16|$[3]>>>16,$[2],$[1]<<16|$[0]>>>16,$[3],$[2]<<16|$[1]>>>16],e=this._C=[$[2]<<16|$[2]>>>16,4294901760&$[0]|65535&$[1],$[3]<<16|$[3]>>>16,4294901760&$[1]|65535&$[2],$[0]<<16|$[0]>>>16,4294901760&$[2]|65535&$[3],$[1]<<16|$[1]>>>16,4294901760&$[3]|65535&$[0]];this._b=0;for(var r=0;r<4;r++)s.call(this);for(r=0;r<8;r++)e[r]^=x[r+4&7];if(t){var i=t.words,n=i[0],o=i[1],a=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),f=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),h=a>>>16|4294901760&f,_=f<<16|65535&a;for(e[0]^=a,e[1]^=h,e[2]^=f,e[3]^=_,e[4]^=a,e[5]^=h,e[6]^=f,e[7]^=_,r=0;r<4;r++)s.call(this)}},_doProcessBlock:function($,t){var x=this._X;s.call(this),e[0]=x[0]^x[5]>>>16^x[3]<<16,e[1]=x[2]^x[7]>>>16^x[5]<<16,e[2]=x[4]^x[1]>>>16^x[7]<<16,e[3]=x[6]^x[3]>>>16^x[1]<<16;for(var r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8),$[t+r]^=e[r]},blockSize:4,ivSize:2});function s(){for(var $=this._X,t=this._C,x=0;x<8;x++)r[x]=t[x];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<r[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<r[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<r[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<r[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<r[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<r[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<r[6]>>>0?1:0)|0,this._b=t[7]>>>0<r[7]>>>0?1:0,x=0;x<8;x++){var e=$[x]+t[x],n=65535&e,s=e>>>16,o=((n*n>>>17)+n*s>>>15)+s*s,a=((4294901760&e)*e|0)+((65535&e)*e|0);i[x]=o^a}$[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,$[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,$[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,$[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,$[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,$[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,$[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,$[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}$.RabbitLegacy=t._createHelper(n)}(),tF.RabbitLegacy)),tL);var tG,tY,tQ,t9=n.exports,tJ=function($,t){return t9.AES.encrypt($,t9.enc.Utf8.parse(t),{mode:t9.mode.ECB,padding:t9.pad.Pkcs7}).toString()},x$={exports:{}};tG=x$,tY=i,tQ=function(){var $=function($){var t,x;t=Array.prototype.forEach,x=Array.prototype.map,this.each=function($,x,e){if(null!==$){if(t&&$.forEach===t)$.forEach(x,e);else if($.length===+$.length){for(var r=0,i=$.length;r<i;r++)if(x.call(e,$[r],r,$)==={})return}else for(var n in $)if($.hasOwnProperty(n)&&x.call(e,$[n],n,$)==={})return}},this.map=function($,t,e){var r=[];return null==$?r:x&&$.map===x?$.map(t,e):(this.each($,function($,x,i){r[r.length]=t.call(e,$,x,i)}),r)},"object"==typeof $?(this.hasher=$.hasher,this.screen_resolution=$.screen_resolution,this.screen_orientation=$.screen_orientation,this.canvas=$.canvas,this.ie_activex=$.ie_activex):"function"==typeof $&&(this.hasher=$)};return $.prototype={get:function(){var $=[];if($.push(navigator.userAgent),$.push(navigator.language),$.push(screen.colorDepth),this.screen_resolution){var t=this.getScreenResolution();void 0!==t&&$.push(t.join("x"))}return $.push(new Date().getTimezoneOffset()),$.push(this.hasSessionStorage()),$.push(this.hasLocalStorage()),$.push(this.hasIndexDb()),document.body?$.push(typeof document.body.addBehavior):$.push("undefined"),$.push(typeof window.openDatabase),$.push(navigator.cpuClass),$.push(navigator.platform),$.push(navigator.doNotTrack),$.push(this.getPluginsString()),this.canvas&&this.isCanvasSupported()&&$.push(this.getCanvasFingerprint()),this.hasher?this.hasher($.join("###"),31):this.murmurhash3_32_gc($.join("###"),31)},murmurhash3_32_gc:function($,t){var x,e,r,i,n,s,o,a;for(x=3&$.length,e=$.length-x,r=t,n=3432918353,s=461845907,a=0;a<e;)o=255&$.charCodeAt(a)|(255&$.charCodeAt(++a))<<8|(255&$.charCodeAt(++a))<<16|(255&$.charCodeAt(++a))<<24,++a,r=27492+(65535&(i=5*(65535&(r=(r^=o=(65535&(o=(o=(65535&o)*n+(((o>>>16)*n&65535)<<16)&4294967295)<<15|o>>>17))*s+(((o>>>16)*s&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(o=0,x){case 3:o^=(255&$.charCodeAt(a+2))<<16;case 2:o^=(255&$.charCodeAt(a+1))<<8;case 1:r^=o=(65535&(o=(o=(65535&(o^=255&$.charCodeAt(a)))*n+(((o>>>16)*n&65535)<<16)&4294967295)<<15|o>>>17))*s+(((o>>>16)*s&65535)<<16)&4294967295}return r^=$.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0},hasLocalStorage:function(){try{return!!window.localStorage}catch($){return!0}},hasSessionStorage:function(){try{return!!window.sessionStorage}catch($){return!0}},hasIndexDb:function(){try{return!!window.indexedDB}catch($){return!0}},isCanvasSupported:function(){var $=document.createElement("canvas");return!(!$.getContext||!$.getContext("2d"))},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},getPluginsString:function(){return this.isIE()&&this.ie_activex?this.getIEPluginsString():this.getRegularPluginsString()},getRegularPluginsString:function(){return this.map(navigator.plugins,function($){var t=this.map($,function($){return[$.type,$.suffixes].join("~")}).join(",");return[$.name,$.description,t].join("::")},this).join(";")},getIEPluginsString:function(){return window.ActiveXObject?this.map(["ShockwaveFlash.ShockwaveFlash","AcroPDF.PDF","PDF.PdfCtrl","QuickTime.QuickTime","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","RealPlayer","SWCtl.SWCtl","WMPlayer.OCX","AgControl.AgControl","Skype.Detection"],function($){try{return new ActiveXObject($),$}catch(t){return null}}).join(";"):""},getScreenResolution:function(){return this.screen_orientation?screen.height>screen.width?[screen.height,screen.width]:[screen.width,screen.height]:[screen.height,screen.width]},getCanvasFingerprint:function(){var $=document.createElement("canvas"),t=$.getContext("2d"),x="http://valve.github.io";return t.textBaseline="top",t.font="14px 'Arial'",t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText(x,2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText(x,4,17),$.toDataURL()}},$},tG.exports?tG.exports=tQ():tY.Fingerprint=tQ();var xt=x$.exports;function xx($,t){return $&t}function xe($,t){return $|t}function xr($,t){return $^t}function xi($,t){return $&~t}function xn($){if(0==$)return -1;var t=0;return 0==(65535&$)&&($>>=16,t+=16),0==(255&$)&&($>>=8,t+=8),0==(15&$)&&($>>=4,t+=4),0==(3&$)&&($>>=2,t+=2),0==(1&$)&&++t,t}function xs($){for(var t=0;0!=$;)$&=$-1,++t;return t}var xo,xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function xf($){var t,x,e="";for(t=0;t+3<=$.length;t+=3)x=parseInt($.substring(t,t+3),16),e+=xa.charAt(x>>6)+xa.charAt(63&x);for(t+1==$.length?(x=parseInt($.substring(t,t+1),16),e+=xa.charAt(x<<2)):t+2==$.length&&(x=parseInt($.substring(t,t+2),16),e+=xa.charAt(x>>2)+xa.charAt((3&x)<<4));(3&e.length)>0;)e+="=";return e}function xh($){var t,x="",e=0,r=0;for(t=0;t<$.length&&"="!=$.charAt(t);++t){var i=xa.indexOf($.charAt(t));i<0||(0==e?(x+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(i>>2),r=3&i,e=1):1==e?(x+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(r<<2|i>>4),r=15&i,e=2):2==e?(x+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(r),x+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(i>>2),r=3&i,e=3):(x+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(r<<2|i>>4),x+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(15&i),e=0))}return 1==e&&(x+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(r<<2)),x}var x_,xc=function($){if(void 0===xo){var t,x="0123456789ABCDEF",e=" \f\n\r	\xa0\u2028\u2029";for(xo={},t=0;t<16;++t)xo[x.charAt(t)]=t;for(x=x.toLowerCase(),t=10;t<16;++t)xo[x.charAt(t)]=t;for(t=0;t<e.length;++t)xo[e.charAt(t)]=-1}var r=[],i=0,n=0;for(t=0;t<$.length;++t){var s=$.charAt(t);if("="==s)break;if(-1!=(s=xo[s])){if(void 0===s)throw Error("Illegal character at offset "+t);i|=s,++n>=2?(r[r.length]=i,i=0,n=0):i<<=4}}if(n)throw Error("Hex encoding incomplete: 4 bits missing");return r},xu={decode:function($){if(void 0===x_){var t,x="= \f\n\r	\xa0\u2028\u2029";for(x_=Object.create(null),t=0;t<64;++t)x_["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(x_["-"]=62,x_._=63,t=0;t<x.length;++t)x_[x.charAt(t)]=-1}var e=[],r=0,i=0;for(t=0;t<$.length;++t){var n=$.charAt(t);if("="==n)break;if(-1!=(n=x_[n])){if(void 0===n)throw Error("Illegal character at offset "+t);r|=n,++i>=4?(e[e.length]=r>>16,e[e.length]=r>>8&255,e[e.length]=255&r,r=0,i=0):r<<=6}}switch(i){case 1:throw Error("Base64 encoding incomplete: at least 2 bits missing");case 2:e[e.length]=r>>10;break;case 3:e[e.length]=r>>16,e[e.length]=r>>8&255}return e},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function($){var t=xu.re.exec($);if(t){if(t[1])$=t[1];else{if(!t[2])throw Error("RegExp out of sync");$=t[2]}}return xu.decode($)}},xl=function(){function $($){this.buf=[+$||0]}return $.prototype.mulAdd=function($,t){var x,e,r=this.buf,i=r.length;for(x=0;x<i;++x)(e=r[x]*$+t)<1e13?t=0:e-=1e13*(t=0|e/1e13),r[x]=e;t>0&&(r[x]=t)},$.prototype.sub=function($){var t,x,e=this.buf,r=e.length;for(t=0;t<r;++t)(x=e[t]-$)<0?(x+=1e13,$=1):$=0,e[t]=x;for(;0===e[e.length-1];)e.pop()},$.prototype.toString=function($){if(10!=($||10))throw Error("only base 10 is supported");for(var t=this.buf,x=t[t.length-1].toString(),e=t.length-2;e>=0;--e)x+=(1e13+t[e]).toString().substring(1);return x},$.prototype.valueOf=function(){for(var $=this.buf,t=0,x=$.length-1;x>=0;--x)t=1e13*t+$[x];return t},$.prototype.simplify=function(){var $=this.buf;return 1==$.length?$[0]:this},$}(),xp=/^(\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)?)?$/,xd=/^(\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 x0($,t){return $.length>t&&($=$.substring(0,t)+"…"),$}var x2,x6=function(){function $(t,x){this.hexDigits="0123456789ABCDEF",t instanceof $?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=x)}return $.prototype.get=function($){if(void 0===$&&($=this.pos++),$>=this.enc.length)throw Error("Requesting byte offset ".concat($," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt($):this.enc[$]},$.prototype.hexByte=function($){return this.hexDigits.charAt($>>4&15)+this.hexDigits.charAt(15&$)},$.prototype.hexDump=function($,t,x){for(var e="",r=$;r<t;++r)if(e+=this.hexByte(this.get(r)),!0!==x)switch(15&r){case 7:e+="  ";break;case 15:e+="\n";break;default:e+=" "}return e},$.prototype.isASCII=function($,t){for(var x=$;x<t;++x){var e=this.get(x);if(e<32||e>176)return!1}return!0},$.prototype.parseStringISO=function($,t){for(var x="",e=$;e<t;++e)x+=String.fromCharCode(this.get(e));return x},$.prototype.parseStringUTF=function($,t){for(var x="",e=$;e<t;){var r=this.get(e++);x+=r<128?String.fromCharCode(r):r>191&&r<224?String.fromCharCode((31&r)<<6|63&this.get(e++)):String.fromCharCode((15&r)<<12|(63&this.get(e++))<<6|63&this.get(e++))}return x},$.prototype.parseStringBMP=function($,t){for(var x,e,r="",i=$;i<t;)r+=String.fromCharCode((x=this.get(i++))<<8|(e=this.get(i++)));return r},$.prototype.parseTime=function($,t,x){var e=this.parseStringISO($,t),r=(x?xp:xd).exec(e);return r?(x&&(r[1]=+r[1],r[1]+=70>+r[1]?2e3:1900),e=r[1]+"-"+r[2]+"-"+r[3]+" "+r[4],r[5]&&(e+=":"+r[5],r[6]&&(e+=":"+r[6],r[7]&&(e+="."+r[7]))),r[8]&&(e+=" UTC","Z"!=r[8]&&(e+=r[8],r[9]&&(e+=":"+r[9]))),e):"Unrecognized time: "+e},$.prototype.parseInteger=function($,t){for(var x,e=this.get($),r=e>127,i=r?255:0,n="";e==i&&++$<t;)e=this.get($);if(0==(x=t-$))return r?-1:0;if(x>4){for(n=e,x<<=3;0==(128&(+n^i));)n=+n<<1,--x;n="("+x+" bit)\n"}r&&(e-=256);for(var s=new xl(e),o=$+1;o<t;++o)s.mulAdd(256,this.get(o));return n+s.toString()},$.prototype.parseBitString=function($,t,x){for(var e=this.get($),r="("+((t-$-1<<3)-e)+" bit)\n",i="",n=$+1;n<t;++n){for(var s=this.get(n),o=n==t-1?e:0,a=7;a>=o;--a)i+=s>>a&1?"1":"0";if(i.length>x)return r+x0(i,x)}return r+i},$.prototype.parseOctetString=function($,t,x){if(this.isASCII($,t))return x0(this.parseStringISO($,t),x);var e=t-$,r="("+e+" byte)\n";e>(x/=2)&&(t=$+x);for(var i=$;i<t;++i)r+=this.hexByte(this.get(i));return e>x&&(r+="…"),r},$.prototype.parseOID=function($,t,x){for(var e="",r=new xl,i=0,n=$;n<t;++n){var s=this.get(n);if(r.mulAdd(128,127&s),i+=7,!(128&s)){if(""===e){if((r=r.simplify())instanceof xl)r.sub(80),e="2."+r.toString();else{var o=r<80?r<40?0:1:2;e=o+"."+(r-40*o)}}else e+="."+r.toString();if(e.length>x)return x0(e,x);r=new xl,i=0}}return i>0&&(e+=".incomplete"),e},$}(),xg=function(){function $($,t,x,e,r){if(!(e instanceof xy))throw Error("Invalid tag value.");this.stream=$,this.header=t,this.length=x,this.tag=e,this.sub=r}return $.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()}},$.prototype.content=function($){if(void 0===this.tag)return null;void 0===$&&($=1/0);var t=this.posContent(),x=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+x,$);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+x);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+x,$);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+x,$);case 6:return this.stream.parseOID(t,t+x,$);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return x0(this.stream.parseStringUTF(t,t+x),$);case 18:case 19:case 20:case 21:case 22:case 26:return x0(this.stream.parseStringISO(t,t+x),$);case 30:return x0(this.stream.parseStringBMP(t,t+x),$);case 23:case 24:return this.stream.parseTime(t,t+x,23==this.tag.tagNumber)}return null},$.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},$.prototype.toPrettyString=function($){void 0===$&&($="");var t=$+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub&&(t+=" (encapsulates)"),t+="\n",null!==this.sub){$+="  ";for(var x=0,e=this.sub.length;x<e;++x)t+=this.sub[x].toPrettyString($)}return t},$.prototype.posStart=function(){return this.stream.pos},$.prototype.posContent=function(){return this.stream.pos+this.header},$.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},$.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},$.decodeLength=function($){var t=$.get(),x=127&t;if(x==t)return x;if(x>6)throw Error("Length over 48 bits not supported at position "+($.pos-1));if(0===x)return null;t=0;for(var e=0;e<x;++e)t=256*t+$.get();return t},$.prototype.getHexStringValue=function(){var $=this.toHexString(),t=2*this.header,x=2*this.length;return $.substr(t,x)},$.decode=function(t){x=t instanceof x6?t:new x6(t,0);var x,e=new x6(x),r=new xy(x),i=$.decodeLength(x),n=x.pos,s=n-e.pos,o=null,a=function(){var t=[];if(null!==i){for(var e=n+i;x.pos<e;)t[t.length]=$.decode(x);if(x.pos!=e)throw Error("Content size is not correct for container starting at offset "+n)}else try{for(;;){var r=$.decode(x);if(r.tag.isEOC())break;t[t.length]=r}i=n-x.pos}catch(s){throw Error("Exception while decoding undefined length content: "+s)}return t};if(r.tagConstructed)o=a();else if(r.isUniversal()&&(3==r.tagNumber||4==r.tagNumber))try{if(3==r.tagNumber&&0!=x.get())throw Error("BIT STRINGs with unused bits cannot encapsulate.");o=a();for(var f=0;f<o.length;++f)if(o[f].tag.isEOC())throw Error("EOC is not supposed to be actual content.")}catch(h){o=null}if(null===o){if(null===i)throw Error("We can't skip over an invalid tag with undefined length at offset "+n);x.pos=n+Math.abs(i)}return new $(e,s,i,r,o)},$}(),xy=function(){function $($){var t=$.get();if(this.tagClass=t>>6,this.tagConstructed=0!=(32&t),this.tagNumber=31&t,31==this.tagNumber){var x=new xl;do t=$.get(),x.mulAdd(128,127&t);while(128&t);this.tagNumber=x.simplify()}}return $.prototype.isUniversal=function(){return 0===this.tagClass},$.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},$}(),xv=[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],x1=67108864/xv[xv.length-1],xb=function(){function $($,t,x){null!=$&&("number"==typeof $?this.fromNumber($,t,x):null==t&&"string"!=typeof $?this.fromString($,256):this.fromString($,t))}return $.prototype.toString=function($){if(this.s<0)return"-"+this.negate().toString($);if(16==$)t=4;else if(8==$)t=3;else if(2==$)t=1;else if(32==$)t=5;else{if(4!=$)return this.toRadix($);t=2}var t,x,e=(1<<t)-1,r=!1,i="",n=this.t,s=this.DB-n*this.DB%t;if(n-- >0)for(s<this.DB&&(x=this[n]>>s)>0&&(r=!0,i="0123456789abcdefghijklmnopqrstuvwxyz".charAt(x));n>=0;)s<t?(x=(this[n]&(1<<s)-1)<<t-s,x|=this[--n]>>(s+=this.DB-t)):(x=this[n]>>(s-=t)&e,s<=0&&(s+=this.DB,--n)),x>0&&(r=!0),r&&(i+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(x));return r?i:"0"},$.prototype.negate=function(){var t=xS();return $.ZERO.subTo(this,t),t},$.prototype.abs=function(){return this.s<0?this.negate():this},$.prototype.compareTo=function($){var t=this.s-$.s;if(0!=t)return t;var x=this.t;if(0!=(t=x-$.t))return this.s<0?-t:t;for(;--x>=0;)if(0!=(t=this[x]-$[x]))return t;return 0},$.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+xD(this[this.t-1]^this.s&this.DM)},$.prototype.mod=function(t){var x=xS();return this.abs().divRemTo(t,null,x),this.s<0&&x.compareTo($.ZERO)>0&&t.subTo(x,x),x},$.prototype.modPowInt=function($,t){var x;return x=$<256||t.isEven()?new xm(t):new x3(t),this.exp($,x)},$.prototype.clone=function(){var $=xS();return this.copyTo($),$},$.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]},$.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},$.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},$.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},$.prototype.toByteArray=function(){var $=this.t,t=[];t[0]=this.s;var x,e=this.DB-$*this.DB%8,r=0;if($-- >0)for(e<this.DB&&(x=this[$]>>e)!=(this.s&this.DM)>>e&&(t[r++]=x|this.s<<this.DB-e);$>=0;)e<8?(x=(this[$]&(1<<e)-1)<<8-e,x|=this[--$]>>(e+=this.DB-8)):(x=this[$]>>(e-=8)&255,e<=0&&(e+=this.DB,--$)),0!=(128&x)&&(x|=-256),0==r&&(128&this.s)!=(128&x)&&++r,(r>0||x!=this.s)&&(t[r++]=x);return t},$.prototype.equals=function($){return 0==this.compareTo($)},$.prototype.min=function($){return 0>this.compareTo($)?this:$},$.prototype.max=function($){return this.compareTo($)>0?this:$},$.prototype.and=function($){var t=xS();return this.bitwiseTo($,xx,t),t},$.prototype.or=function($){var t=xS();return this.bitwiseTo($,xe,t),t},$.prototype.xor=function($){var t=xS();return this.bitwiseTo($,xr,t),t},$.prototype.andNot=function($){var t=xS();return this.bitwiseTo($,xi,t),t},$.prototype.not=function(){for(var $=xS(),t=0;t<this.t;++t)$[t]=this.DM&~this[t];return $.t=this.t,$.s=~this.s,$},$.prototype.shiftLeft=function($){var t=xS();return $<0?this.rShiftTo(-$,t):this.lShiftTo($,t),t},$.prototype.shiftRight=function($){var t=xS();return $<0?this.lShiftTo(-$,t):this.rShiftTo($,t),t},$.prototype.getLowestSetBit=function(){for(var $=0;$<this.t;++$)if(0!=this[$])return $*this.DB+xn(this[$]);return this.s<0?this.t*this.DB:-1},$.prototype.bitCount=function(){for(var $=0,t=this.s&this.DM,x=0;x<this.t;++x)$+=xs(this[x]^t);return $},$.prototype.testBit=function($){var t=Math.floor($/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<$%this.DB)},$.prototype.setBit=function($){return this.changeBit($,xe)},$.prototype.clearBit=function($){return this.changeBit($,xi)},$.prototype.flipBit=function($){return this.changeBit($,xr)},$.prototype.add=function($){var t=xS();return this.addTo($,t),t},$.prototype.subtract=function($){var t=xS();return this.subTo($,t),t},$.prototype.multiply=function($){var t=xS();return this.multiplyTo($,t),t},$.prototype.divide=function($){var t=xS();return this.divRemTo($,t,null),t},$.prototype.remainder=function($){var t=xS();return this.divRemTo($,null,t),t},$.prototype.divideAndRemainder=function($){var t=xS(),x=xS();return this.divRemTo($,t,x),[t,x]},$.prototype.modPow=function($,t){var x,e,r=$.bitLength(),i=xA(1);if(r<=0)return i;x=r<18?1:r<48?3:r<144?4:r<768?5:6,e=r<8?new xm(t):t.isEven()?new x5(t):new x3(t);var n=[],s=3,o=x-1,a=(1<<x)-1;if(n[1]=e.convert(this),x>1){var f=xS();for(e.sqrTo(n[1],f);s<=a;)n[s]=xS(),e.mulTo(f,n[s-2],n[s]),s+=2}var h,_,c=$.t-1,u=!0,l=xS();for(r=xD($[c])-1;c>=0;){for(r>=o?h=$[c]>>r-o&a:(h=($[c]&(1<<r+1)-1)<<o-r,c>0&&(h|=$[c-1]>>this.DB+r-o)),s=x;0==(1&h);)h>>=1,--s;if((r-=s)<0&&(r+=this.DB,--c),u)n[h].copyTo(i),u=!1;else{for(;s>1;)e.sqrTo(i,l),e.sqrTo(l,i),s-=2;s>0?e.sqrTo(i,l):(_=i,i=l,l=_),e.mulTo(l,n[h],i)}for(;c>=0&&0==($[c]&1<<r);)e.sqrTo(i,l),_=i,i=l,l=_,--r<0&&(r=this.DB-1,--c)}return e.revert(i)},$.prototype.modInverse=function(t){var x=t.isEven();if(this.isEven()&&x||0==t.signum())return $.ZERO;for(var e=t.clone(),r=this.clone(),i=xA(1),n=xA(0),s=xA(0),o=xA(1);0!=e.signum();){for(;e.isEven();)e.rShiftTo(1,e),x?(i.isEven()&&n.isEven()||(i.addTo(this,i),n.subTo(t,n)),i.rShiftTo(1,i)):n.isEven()||n.subTo(t,n),n.rShiftTo(1,n);for(;r.isEven();)r.rShiftTo(1,r),x?(s.isEven()&&o.isEven()||(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);e.compareTo(r)>=0?(e.subTo(r,e),x&&i.subTo(s,i),n.subTo(o,n)):(r.subTo(e,r),x&&s.subTo(i,s),o.subTo(n,o))}return 0!=r.compareTo($.ONE)?$.ZERO:o.compareTo(t)>=0?o.subtract(t):0>o.signum()?(o.addTo(t,o),0>o.signum()?o.add(t):o):o},$.prototype.pow=function($){return this.exp($,new x4)},$.prototype.gcd=function($){var t=this.s<0?this.negate():this.clone(),x=$.s<0?$.negate():$.clone();if(0>t.compareTo(x)){var e=t;t=x,x=e}var r=t.getLowestSetBit(),i=x.getLowestSetBit();if(i<0)return t;for(r<i&&(i=r),i>0&&(t.rShiftTo(i,t),x.rShiftTo(i,x));t.signum()>0;)(r=t.getLowestSetBit())>0&&t.rShiftTo(r,t),(r=x.getLowestSetBit())>0&&x.rShiftTo(r,x),t.compareTo(x)>=0?(t.subTo(x,t),t.rShiftTo(1,t)):(x.subTo(t,x),x.rShiftTo(1,x));return i>0&&x.lShiftTo(i,x),x},$.prototype.isProbablePrime=function($){var t,x=this.abs();if(1==x.t&&x[0]<=xv[xv.length-1]){for(t=0;t<xv.length;++t)if(x[0]==xv[t])return!0;return!1}if(x.isEven())return!1;for(t=1;t<xv.length;){for(var e=xv[t],r=t+1;r<xv.length&&e<x1;)e*=xv[r++];for(e=x.modInt(e);t<r;)if(e%xv[t++]==0)return!1}return x.millerRabin($)},$.prototype.copyTo=function($){for(var t=this.t-1;t>=0;--t)$[t]=this[t];$.t=this.t,$.s=this.s},$.prototype.fromInt=function($){this.t=1,this.s=$<0?-1:0,$>0?this[0]=$:$<-1?this[0]=$+this.DV:this.t=0},$.prototype.fromString=function(t,x){var e;if(16==x)e=4;else if(8==x)e=3;else if(256==x)e=8;else if(2==x)e=1;else if(32==x)e=5;else{if(4!=x)return void this.fromRadix(t,x);e=2}this.t=0,this.s=0;for(var r=t.length,i=!1,n=0;--r>=0;){var s=8==e?255&+t[r]:xT(t,r);s<0?"-"==t.charAt(r)&&(i=!0):(i=!1,0==n?this[this.t++]=s:n+e>this.DB?(this[this.t-1]|=(s&(1<<this.DB-n)-1)<<n,this[this.t++]=s>>this.DB-n):this[this.t-1]|=s<<n,(n+=e)>=this.DB&&(n-=this.DB))}8==e&&0!=(128&+t[0])&&(this.s=-1,n>0&&(this[this.t-1]|=(1<<this.DB-n)-1<<n)),this.clamp(),i&&$.ZERO.subTo(this,this)},$.prototype.clamp=function(){for(var $=this.s&this.DM;this.t>0&&this[this.t-1]==$;)--this.t},$.prototype.dlShiftTo=function($,t){var x;for(x=this.t-1;x>=0;--x)t[x+$]=this[x];for(x=$-1;x>=0;--x)t[x]=0;t.t=this.t+$,t.s=this.s},$.prototype.drShiftTo=function($,t){for(var x=$;x<this.t;++x)t[x-$]=this[x];t.t=Math.max(this.t-$,0),t.s=this.s},$.prototype.lShiftTo=function($,t){for(var x=$%this.DB,e=this.DB-x,r=(1<<e)-1,i=Math.floor($/this.DB),n=this.s<<x&this.DM,s=this.t-1;s>=0;--s)t[s+i+1]=this[s]>>e|n,n=(this[s]&r)<<x;for(s=i-1;s>=0;--s)t[s]=0;t[i]=n,t.t=this.t+i+1,t.s=this.s,t.clamp()},$.prototype.rShiftTo=function($,t){t.s=this.s;var x=Math.floor($/this.DB);if(x>=this.t)t.t=0;else{var e=$%this.DB,r=this.DB-e,i=(1<<e)-1;t[0]=this[x]>>e;for(var n=x+1;n<this.t;++n)t[n-x-1]|=(this[n]&i)<<r,t[n-x]=this[n]>>e;e>0&&(t[this.t-x-1]|=(this.s&i)<<r),t.t=this.t-x,t.clamp()}},$.prototype.subTo=function($,t){for(var x=0,e=0,r=Math.min($.t,this.t);x<r;)e+=this[x]-$[x],t[x++]=e&this.DM,e>>=this.DB;if($.t<this.t){for(e-=$.s;x<this.t;)e+=this[x],t[x++]=e&this.DM,e>>=this.DB;e+=this.s}else{for(e+=this.s;x<$.t;)e-=$[x],t[x++]=e&this.DM,e>>=this.DB;e-=$.s}t.s=e<0?-1:0,e<-1?t[x++]=this.DV+e:e>0&&(t[x++]=e),t.t=x,t.clamp()},$.prototype.multiplyTo=function(t,x){var e=this.abs(),r=t.abs(),i=e.t;for(x.t=i+r.t;--i>=0;)x[i]=0;for(i=0;i<r.t;++i)x[i+e.t]=e.am(0,r[i],x,i,0,e.t);x.s=0,x.clamp(),this.s!=t.s&&$.ZERO.subTo(x,x)},$.prototype.squareTo=function($){for(var t=this.abs(),x=$.t=2*t.t;--x>=0;)$[x]=0;for(x=0;x<t.t-1;++x){var e=t.am(x,t[x],$,2*x,0,1);($[x+t.t]+=t.am(x+1,2*t[x],$,2*x+1,e,t.t-x-1))>=t.DV&&($[x+t.t]-=t.DV,$[x+t.t+1]=1)}$.t>0&&($[$.t-1]+=t.am(x,t[x],$,2*x,0,1)),$.s=0,$.clamp()},$.prototype.divRemTo=function(t,x,e){var r=t.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!=x&&x.fromInt(0),void(null!=e&&this.copyTo(e));null==e&&(e=xS());var n=xS(),s=this.s,o=t.s,a=this.DB-xD(r[r.t-1]);a>0?(r.lShiftTo(a,n),i.lShiftTo(a,e)):(r.copyTo(n),i.copyTo(e));var f=n.t,h=n[f-1];if(0!=h){var _=h*(1<<this.F1)+(f>1?n[f-2]>>this.F2:0),c=this.FV/_,u=(1<<this.F1)/_,l=1<<this.F2,p=e.t,d=p-f,g=null==x?xS():x;for(n.dlShiftTo(d,g),e.compareTo(g)>=0&&(e[e.t++]=1,e.subTo(g,e)),$.ONE.dlShiftTo(f,g),g.subTo(n,n);n.t<f;)n[n.t++]=0;for(;--d>=0;){var y=e[--p]==h?this.DM:Math.floor(e[p]*c+(e[p-1]+l)*u);if((e[p]+=n.am(0,y,e,d,0,f))<y)for(n.dlShiftTo(d,g),e.subTo(g,e);e[p]<--y;)e.subTo(g,e)}null!=x&&(e.drShiftTo(f,x),s!=o&&$.ZERO.subTo(x,x)),e.t=f,e.clamp(),a>0&&e.rShiftTo(a,e),s<0&&$.ZERO.subTo(e,e)}}},$.prototype.invDigit=function(){if(this.t<1)return 0;var $=this[0];if(0==(1&$))return 0;var t=3&$;return(t=(t=(t=(t=t*(2-(15&$)*t)&15)*(2-(255&$)*t)&255)*(2-((65535&$)*t&65535))&65535)*(2-$*t%this.DV)%this.DV)>0?this.DV-t:-t},$.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},$.prototype.exp=function(t,x){if(t>4294967295||t<1)return $.ONE;var e=xS(),r=xS(),i=x.convert(this),n=xD(t)-1;for(i.copyTo(e);--n>=0;)if(x.sqrTo(e,r),(t&1<<n)>0)x.mulTo(r,i,e);else{var s=e;e=r,r=s}return x.revert(e)},$.prototype.chunkSize=function($){return Math.floor(Math.LN2*this.DB/Math.log($))},$.prototype.toRadix=function($){if(null==$&&($=10),0==this.signum()||$<2||$>36)return"0";var t=this.chunkSize($),x=Math.pow($,t),e=xA(x),r=xS(),i=xS(),n="";for(this.divRemTo(e,r,i);r.signum()>0;)n=(x+i.intValue()).toString($).substr(1)+n,r.divRemTo(e,r,i);return i.intValue().toString($)+n},$.prototype.fromRadix=function(t,x){this.fromInt(0),null==x&&(x=10);for(var e=this.chunkSize(x),r=Math.pow(x,e),i=!1,n=0,s=0,o=0;o<t.length;++o){var a=xT(t,o);a<0?"-"==t.charAt(o)&&0==this.signum()&&(i=!0):(s=x*s+a,++n>=e&&(this.dMultiply(r),this.dAddOffset(s,0),n=0,s=0))}n>0&&(this.dMultiply(Math.pow(x,n)),this.dAddOffset(s,0)),i&&$.ZERO.subTo(this,this)},$.prototype.fromNumber=function(t,x,e){if("number"==typeof x){if(t<2)this.fromInt(1);else for(this.fromNumber(t,e),this.testBit(t-1)||this.bitwiseTo($.ONE.shiftLeft(t-1),xe,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(x);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo($.ONE.shiftLeft(t-1),this)}else{var r=[],i=7&t;r.length=1+(t>>3),x.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},$.prototype.bitwiseTo=function($,t,x){var e,r,i=Math.min($.t,this.t);for(e=0;e<i;++e)x[e]=t(this[e],$[e]);if($.t<this.t){for(r=$.s&this.DM,e=i;e<this.t;++e)x[e]=t(this[e],r);x.t=this.t}else{for(r=this.s&this.DM,e=i;e<$.t;++e)x[e]=t(r,$[e]);x.t=$.t}x.s=t(this.s,$.s),x.clamp()},$.prototype.changeBit=function(t,x){var e=$.ONE.shiftLeft(t);return this.bitwiseTo(e,x,e),e},$.prototype.addTo=function($,t){for(var x=0,e=0,r=Math.min($.t,this.t);x<r;)e+=this[x]+$[x],t[x++]=e&this.DM,e>>=this.DB;if($.t<this.t){for(e+=$.s;x<this.t;)e+=this[x],t[x++]=e&this.DM,e>>=this.DB;e+=this.s}else{for(e+=this.s;x<$.t;)e+=$[x],t[x++]=e&this.DM,e>>=this.DB;e+=$.s}t.s=e<0?-1:0,e>0?t[x++]=e:e<-1&&(t[x++]=this.DV+e),t.t=x,t.clamp()},$.prototype.dMultiply=function($){this[this.t]=this.am(0,$-1,this,0,0,this.t),++this.t,this.clamp()},$.prototype.dAddOffset=function($,t){if(0!=$){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=$;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},$.prototype.multiplyLowerTo=function($,t,x){var e=Math.min(this.t+$.t,t);for(x.s=0,x.t=e;e>0;)x[--e]=0;for(var r=x.t-this.t;e<r;++e)x[e+this.t]=this.am(0,$[e],x,e,0,this.t);for(r=Math.min($.t,t);e<r;++e)this.am(0,$[e],x,e,0,t-e);x.clamp()},$.prototype.multiplyUpperTo=function($,t,x){--t;var e=x.t=this.t+$.t-t;for(x.s=0;--e>=0;)x[e]=0;for(e=Math.max(t-this.t,0);e<$.t;++e)x[this.t+e-t]=this.am(t-e,$[e],x,0,0,this.t+e-t);x.clamp(),x.drShiftTo(1,x)},$.prototype.modInt=function($){if($<=0)return 0;var t=this.DV%$,x=this.s<0?$-1:0;if(this.t>0){if(0==t)x=this[0]%$;else for(var e=this.t-1;e>=0;--e)x=(t*x+this[e])%$}return x},$.prototype.millerRabin=function(t){var x=this.subtract($.ONE),e=x.getLowestSetBit();if(e<=0)return!1;var r=x.shiftRight(e);(t=t+1>>1)>xv.length&&(t=xv.length);for(var i=xS(),n=0;n<t;++n){i.fromInt(xv[Math.floor(Math.random()*xv.length)]);var s=i.modPow(r,this);if(0!=s.compareTo($.ONE)&&0!=s.compareTo(x)){for(var o=1;o++<e&&0!=s.compareTo(x);)if(0==(s=s.modPowInt(2,this)).compareTo($.ONE))return!1;if(0!=s.compareTo(x))return!1}}return!0},$.prototype.square=function(){var $=xS();return this.squareTo($),$},$.prototype.gcda=function($,t){var x=this.s<0?this.negate():this.clone(),e=$.s<0?$.negate():$.clone();if(0>x.compareTo(e)){var r=x;x=e,e=r}var i=x.getLowestSetBit(),n=e.getLowestSetBit();if(n<0)t(x);else{i<n&&(n=i),n>0&&(x.rShiftTo(n,x),e.rShiftTo(n,e));var s=function(){(i=x.getLowestSetBit())>0&&x.rShiftTo(i,x),(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),x.compareTo(e)>=0?(x.subTo(e,x),x.rShiftTo(1,x)):(e.subTo(x,e),e.rShiftTo(1,e)),x.signum()>0?setTimeout(s,0):(n>0&&e.lShiftTo(n,e),setTimeout(function(){t(e)},0))};setTimeout(s,10)}},$.prototype.fromNumberAsync=function(t,x,e,r){if("number"==typeof x){if(t<2)this.fromInt(1);else{this.fromNumber(t,e),this.testBit(t-1)||this.bitwiseTo($.ONE.shiftLeft(t-1),xe,this),this.isEven()&&this.dAddOffset(1,0);var i=this,n=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo($.ONE.shiftLeft(t-1),i),i.isProbablePrime(x)?setTimeout(function(){r()},0):setTimeout(n,0)};setTimeout(n,0)}}else{var s=[],o=7&t;s.length=1+(t>>3),x.nextBytes(s),o>0?s[0]&=(1<<o)-1:s[0]=0,this.fromString(s,256)}},$}(),x4=function(){function $(){}return $.prototype.convert=function($){return $},$.prototype.revert=function($){return $},$.prototype.mulTo=function($,t,x){$.multiplyTo(t,x)},$.prototype.sqrTo=function($,t){$.squareTo(t)},$}(),xm=function(){function $($){this.m=$}return $.prototype.convert=function($){return $.s<0||$.compareTo(this.m)>=0?$.mod(this.m):$},$.prototype.revert=function($){return $},$.prototype.reduce=function($){$.divRemTo(this.m,null,$)},$.prototype.mulTo=function($,t,x){$.multiplyTo(t,x),this.reduce(x)},$.prototype.sqrTo=function($,t){$.squareTo(t),this.reduce(t)},$}(),x3=function(){function $($){this.m=$,this.mp=$.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<$.DB-15)-1,this.mt2=2*$.t}return $.prototype.convert=function($){var t=xS();return $.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),$.s<0&&t.compareTo(xb.ZERO)>0&&this.m.subTo(t,t),t},$.prototype.revert=function($){var t=xS();return $.copyTo(t),this.reduce(t),t},$.prototype.reduce=function($){for(;$.t<=this.mt2;)$[$.t++]=0;for(var t=0;t<this.m.t;++t){var x=32767&$[t],e=x*this.mpl+((x*this.mph+($[t]>>15)*this.mpl&this.um)<<15)&$.DM;for($[x=t+this.m.t]+=this.m.am(0,e,$,t,0,this.m.t);$[x]>=$.DV;)$[x]-=$.DV,$[++x]++}$.clamp(),$.drShiftTo(this.m.t,$),$.compareTo(this.m)>=0&&$.subTo(this.m,$)},$.prototype.mulTo=function($,t,x){$.multiplyTo(t,x),this.reduce(x)},$.prototype.sqrTo=function($,t){$.squareTo(t),this.reduce(t)},$}(),x5=function(){function $($){this.m=$,this.r2=xS(),this.q3=xS(),xb.ONE.dlShiftTo(2*$.t,this.r2),this.mu=this.r2.divide($)}return $.prototype.convert=function($){if($.s<0||$.t>2*this.m.t)return $.mod(this.m);if(0>$.compareTo(this.m))return $;var t=xS();return $.copyTo(t),this.reduce(t),t},$.prototype.revert=function($){return $},$.prototype.reduce=function($){for($.drShiftTo(this.m.t-1,this.r2),$.t>this.m.t+1&&($.t=this.m.t+1,$.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);0>$.compareTo(this.r2);)$.dAddOffset(1,this.m.t+1);for($.subTo(this.r2,$);$.compareTo(this.m)>=0;)$.subTo(this.m,$)},$.prototype.mulTo=function($,t,x){$.multiplyTo(t,x),this.reduce(x)},$.prototype.sqrTo=function($,t){$.squareTo(t),this.reduce(t)},$}();function xS(){return new xb(null)}function x8($,t){return new xb($,t)}var x7="undefined"!=typeof navigator;x7&&"Microsoft Internet Explorer"==navigator.appName?(xb.prototype.am=function($,t,x,e,r,i){for(var n=32767&t,s=t>>15;--i>=0;){var o=32767&this[$],a=this[$++]>>15,f=s*o+a*n;r=((o=n*o+((32767&f)<<15)+x[e]+(1073741823&r))>>>30)+(f>>>15)+s*a+(r>>>30),x[e++]=1073741823&o}return r},x2=30):x7&&"Netscape"!=navigator.appName?(xb.prototype.am=function($,t,x,e,r,i){for(;--i>=0;){var n=t*this[$++]+x[e]+r;r=Math.floor(n/67108864),x[e++]=67108863&n}return r},x2=26):(xb.prototype.am=function($,t,x,e,r,i){for(var n=16383&t,s=t>>14;--i>=0;){var o=16383&this[$],a=this[$++]>>14,f=s*o+a*n;r=((o=n*o+((16383&f)<<14)+x[e]+r)>>28)+(f>>14)+s*a,x[e++]=268435455&o}return r},x2=28),xb.prototype.DB=x2,xb.prototype.DM=(1<<x2)-1,xb.prototype.DV=1<<x2,xb.prototype.FV=4503599627370496,xb.prototype.F1=52-x2,xb.prototype.F2=2*x2-52;var xw,xB,xE=[];for(xw=48,xB=0;xB<=9;++xB)xE[xw++]=xB;for(xw=97,xB=10;xB<36;++xB)xE[xw++]=xB;for(xw=65,xB=10;xB<36;++xB)xE[xw++]=xB;function xT($,t){var x=xE[$.charCodeAt(t)];return null==x?-1:x}function xA($){var t=xS();return t.fromInt($),t}function xD($){var t,x=1;return 0!=(t=$>>>16)&&($=t,x+=16),0!=(t=$>>8)&&($=t,x+=8),0!=(t=$>>4)&&($=t,x+=4),0!=(t=$>>2)&&($=t,x+=2),0!=(t=$>>1)&&($=t,x+=1),x}xb.ZERO=xA(0),xb.ONE=xA(1);var xk,xR,xI=function(){function $(){this.i=0,this.j=0,this.S=[]}return $.prototype.init=function($){var t,x,e;for(t=0;t<256;++t)this.S[t]=t;for(x=0,t=0;t<256;++t)x=x+this.S[t]+$[t%$.length]&255,e=this.S[t],this.S[t]=this.S[x],this.S[x]=e;this.i=0,this.j=0},$.prototype.next=function(){var $;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,$=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=$,this.S[$+this.S[this.i]&255]},$}(),xC=null;if(null==xC){xC=[],xR=0;var xO=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var xP=new Uint32Array(256);for(window.crypto.getRandomValues(xP),xO=0;xO<xP.length;++xO)xC[xR++]=255&xP[xO]}var xH=0,xV=function($){if((xH=xH||0)>=256||xR>=256)window.removeEventListener?window.removeEventListener("mousemove",xV,!1):window.detachEvent&&window.detachEvent("onmousemove",xV);else try{var t=$.x+$.y;xC[xR++]=255&t,xH+=1}catch(x){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",xV,!1):window.attachEvent&&window.attachEvent("onmousemove",xV))}function xN(){if(null==xk){for(xk=new xI;xR<256;){var $=Math.floor(65536*Math.random());xC[xR++]=255&$}for(xk.init(xC),xR=0;xR<xC.length;++xR)xC[xR]=0;xR=0}return xk.next()}var xM=function(){function $(){}return $.prototype.nextBytes=function($){for(var t=0;t<$.length;++t)$[t]=xN()},$}(),xz=function(){function $(){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 $.prototype.doPublic=function($){return $.modPowInt(this.e,this.n)},$.prototype.doPrivate=function($){if(null==this.p||null==this.q)return $.modPow(this.d,this.n);for(var t=$.mod(this.p).modPow(this.dmp1,this.p),x=$.mod(this.q).modPow(this.dmq1,this.q);0>t.compareTo(x);)t=t.add(this.p);return t.subtract(x).multiply(this.coeff).mod(this.p).multiply(this.q).add(x)},$.prototype.setPublic=function($,t){null!=$&&null!=t&&$.length>0&&t.length>0?(this.n=x8($,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},$.prototype.encrypt=function($){var t=this.n.bitLength()+7>>3,x=function($,t){if(t<$.length+11)return console.error("Message too long for RSA"),null;for(var x=[],e=$.length-1;e>=0&&t>0;){var r=$.charCodeAt(e--);r<128?x[--t]=r:r>127&&r<2048?(x[--t]=63&r|128,x[--t]=r>>6|192):(x[--t]=63&r|128,x[--t]=r>>6&63|128,x[--t]=r>>12|224)}x[--t]=0;for(var i=new xM,n=[];t>2;){for(n[0]=0;0==n[0];)i.nextBytes(n);x[--t]=n[0]}return x[--t]=2,x[--t]=0,new xb(x)}($,t);if(null==x)return null;var e=this.doPublic(x);if(null==e)return null;for(var r=e.toString(16),i=r.length,n=0;n<2*t-i;n++)r="0"+r;return r},$.prototype.setPrivate=function($,t,x){null!=$&&null!=t&&$.length>0&&t.length>0?(this.n=x8($,16),this.e=parseInt(t,16),this.d=x8(x,16)):console.error("Invalid RSA private key")},$.prototype.setPrivateEx=function($,t,x,e,r,i,n,s){null!=$&&null!=t&&$.length>0&&t.length>0?(this.n=x8($,16),this.e=parseInt(t,16),this.d=x8(x,16),this.p=x8(e,16),this.q=x8(r,16),this.dmp1=x8(i,16),this.dmq1=x8(n,16),this.coeff=x8(s,16)):console.error("Invalid RSA private key")},$.prototype.generate=function($,t){var x=new xM,e=$>>1;this.e=parseInt(t,16);for(var r=new xb(t,16);;){for(;this.p=new xb($-e,1,x),0!=this.p.subtract(xb.ONE).gcd(r).compareTo(xb.ONE)||!this.p.isProbablePrime(10););for(;this.q=new xb(e,1,x),0!=this.q.subtract(xb.ONE).gcd(r).compareTo(xb.ONE)||!this.q.isProbablePrime(10););if(0>=this.p.compareTo(this.q)){var i=this.p;this.p=this.q,this.q=i}var n=this.p.subtract(xb.ONE),s=this.q.subtract(xb.ONE),o=n.multiply(s);if(0==o.gcd(r).compareTo(xb.ONE)){this.n=this.p.multiply(this.q),this.d=r.modInverse(o),this.dmp1=this.d.mod(n),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},$.prototype.decrypt=function($){var t=x8($,16),x=this.doPrivate(t);return null==x?null:function($,t){for(var x=$.toByteArray(),e=0;e<x.length&&0==x[e];)++e;if(x.length-e!=t-1||2!=x[e])return null;for(++e;0!=x[e];)if(++e>=x.length)return null;for(var r="";++e<x.length;){var i=255&x[e];i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((31&i)<<6|63&x[e+1]),++e):(r+=String.fromCharCode((15&i)<<12|(63&x[e+1])<<6|63&x[e+2]),e+=2)}return r}(x,this.n.bitLength()+7>>3)},$.prototype.generateAsync=function($,t,x){var e=new xM,r=$>>1;this.e=parseInt(t,16);var i=new xb(t,16),n=this,s=function(){var t=function(){if(0>=n.p.compareTo(n.q)){var $=n.p;n.p=n.q,n.q=$}var t=n.p.subtract(xb.ONE),e=n.q.subtract(xb.ONE),r=t.multiply(e);0==r.gcd(i).compareTo(xb.ONE)?(n.n=n.p.multiply(n.q),n.d=i.modInverse(r),n.dmp1=n.d.mod(t),n.dmq1=n.d.mod(e),n.coeff=n.q.modInverse(n.p),setTimeout(function(){x()},0)):setTimeout(s,0)},o=function(){n.q=xS(),n.q.fromNumberAsync(r,1,e,function(){n.q.subtract(xb.ONE).gcda(i,function($){0==$.compareTo(xb.ONE)&&n.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(o,0)})})},a=function(){n.p=xS(),n.p.fromNumberAsync($-r,1,e,function(){n.p.subtract(xb.ONE).gcda(i,function($){0==$.compareTo(xb.ONE)&&n.p.isProbablePrime(10)?setTimeout(o,0):setTimeout(a,0)})})};setTimeout(a,0)};setTimeout(s,0)},$.prototype.sign=function($,t,x){var e=function($,t){if(t<$.length+22)return console.error("Message too long for RSA"),null;for(var x=t-$.length-6,e="",r=0;r<x;r+=2)e+="ff";return x8("0001"+e+"00"+$,16)}((xq[x]||"")+t($).toString(),this.n.bitLength()/4);if(null==e)return null;var r=this.doPrivate(e);if(null==r)return null;var i=r.toString(16);return 0==(1&i.length)?i:"0"+i},$.prototype.verify=function($,t,x){var e=x8(t,16),r=this.doPublic(e);return null==r?null:function($){for(var t in xq)if(xq.hasOwnProperty(t)){var x=xq[t],e=x.length;if($.substr(0,e)==x)return $.substr(e)}return $}(r.toString(16).replace(/^1f+00/,""))==x($).toString()},$}(),xq={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},xj={};xj.lang={extend:function($,t,x){if(!t||!$)throw Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var e=function(){};if(e.prototype=t.prototype,$.prototype=new e,$.prototype.constructor=$,$.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),x){for(r in x)$.prototype[r]=x[r];var r,i=function(){},n=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function($,t){for(r=0;r<n.length;r+=1){var x=n[r],e=t[x];"function"==typeof e&&e!=Object.prototype[x]&&($[x]=e)}})}catch(s){}i($.prototype,x)}}};/**
	 * @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 xF={};void 0!==xF.asn1&&xF.asn1||(xF.asn1={}),xF.asn1.ASN1Util=new function(){this.integerToByteHex=function($){var t=$.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function($){var t=$.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var x=t.substr(1).length;x%2==1?x+=1:t.match(/^[0-7]/)||(x+=2);for(var e="",r=0;r<x;r++)e+="f";t=new xb(e,16).xor($).add(xb.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function($,t){return hextopem($,t)},this.newObject=function($){var t=xF.asn1,x=t.DERBoolean,e=t.DERInteger,r=t.DERBitString,i=t.DEROctetString,n=t.DERNull,s=t.DERObjectIdentifier,o=t.DEREnumerated,a=t.DERUTF8String,f=t.DERNumericString,h=t.DERPrintableString,_=t.DERTeletexString,c=t.DERIA5String,u=t.DERUTCTime,l=t.DERGeneralizedTime,p=t.DERSequence,d=t.DERSet,g=t.DERTaggedObject,y=t.ASN1Util.newObject,v=Object.keys($);if(1!=v.length)throw"key of param shall be only one.";var b=v[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+b+":"))throw"undefined key: "+b;if("bool"==b)return new x($[b]);if("int"==b)return new e($[b]);if("bitstr"==b)return new r($[b]);if("octstr"==b)return new i($[b]);if("null"==b)return new n($[b]);if("oid"==b)return new s($[b]);if("enum"==b)return new o($[b]);if("utf8str"==b)return new a($[b]);if("numstr"==b)return new f($[b]);if("prnstr"==b)return new h($[b]);if("telstr"==b)return new _($[b]);if("ia5str"==b)return new c($[b]);if("utctime"==b)return new u($[b]);if("gentime"==b)return new l($[b]);if("seq"==b){for(var m=$[b],S=[],w=0;w<m.length;w++){var B=y(m[w]);S.push(B)}return new p({array:S})}if("set"==b){for(m=$[b],S=[],w=0;w<m.length;w++)B=y(m[w]),S.push(B);return new d({array:S})}if("tag"==b){var E=$[b];if("[object Array]"===Object.prototype.toString.call(E)&&3==E.length){var T=y(E[2]);return new g({tag:E[0],explicit:E[1],obj:T})}var A={};if(void 0!==E.explicit&&(A.explicit=E.explicit),void 0!==E.tag&&(A.tag=E.tag),void 0===E.obj)throw"obj shall be specified for 'tag'.";return A.obj=y(E.obj),new g(A)}},this.jsonToASN1HEX=function($){return this.newObject($).getEncodedHex()}},xF.asn1.ASN1Util.oidHexToInt=function($){for(var t="",x=parseInt($.substr(0,2),16),e=(t=Math.floor(x/40)+"."+x%40,""),r=2;r<$.length;r+=2){var i=("00000000"+parseInt($.substr(r,2),16).toString(2)).slice(-8);e+=i.substr(1,7),"0"==i.substr(0,1)&&(t=t+"."+new xb(e,2).toString(10),e="")}return t},xF.asn1.ASN1Util.oidIntToHex=function($){var t=function($){var t=$.toString(16);return 1==t.length&&(t="0"+t),t};if(!$.match(/^[0-9.]+$/))throw"malformed oid string: "+$;var x="",e=$.split("."),r=40*parseInt(e[0])+parseInt(e[1]);x+=t(r),e.splice(0,2);for(var i=0;i<e.length;i++)x+=function($){var x="",e=new xb($,10).toString(2),r=7-e.length%7;7==r&&(r=0);for(var i="",n=0;n<r;n++)i+="0";for(n=0,e=i+e;n<e.length-1;n+=7){var s=e.substr(n,7);n!=e.length-7&&(s="1"+s),x+=t(parseInt(s,2))}return x}(e[i]);return x},xF.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===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=0,v="+this.hV;var $=this.hV.length/2,t=$.toString(16);if(t.length%2==1&&(t="0"+t),$<128)return t;var x=t.length/2;if(x>15)throw"ASN.1 length too long to represent by 8x: n = "+$.toString(16);return(128+x).toString(16)+t},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""}},xF.asn1.DERAbstractString=function($){xF.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function($){this.hTLV=null,this.isModified=!0,this.s=$,this.hV=stohex(this.s)},this.setStringHex=function($){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=$},this.getFreshValueHex=function(){return this.hV},void 0!==$&&("string"==typeof $?this.setString($):void 0!==$.str?this.setString($.str):void 0!==$.hex&&this.setStringHex($.hex))},xj.lang.extend(xF.asn1.DERAbstractString,xF.asn1.ASN1Object),xF.asn1.DERAbstractTime=function($){xF.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function($){return utc=$.getTime()+6e4*$.getTimezoneOffset(),new Date(utc)},this.formatDate=function($,t,x){var e=this.zeroPadding,r=this.localDateToUTC($),i=String(r.getFullYear());"utc"==t&&(i=i.substr(2,2));var n=i+e(String(r.getMonth()+1),2)+e(String(r.getDate()),2)+e(String(r.getHours()),2)+e(String(r.getMinutes()),2)+e(String(r.getSeconds()),2);if(!0===x){var s=r.getMilliseconds();if(0!=s){var o=e(String(s),3);n=n+"."+(o=o.replace(/[0]+$/,""))}}return n+"Z"},this.zeroPadding=function($,t){return $.length>=t?$:Array(t-$.length+1).join("0")+$},this.getString=function(){return this.s},this.setString=function($){this.hTLV=null,this.isModified=!0,this.s=$,this.hV=stohex($)},this.setByDateValue=function($,t,x,e,r,i){var n=new Date(Date.UTC($,t-1,x,e,r,i,0));this.setByDate(n)},this.getFreshValueHex=function(){return this.hV}},xj.lang.extend(xF.asn1.DERAbstractTime,xF.asn1.ASN1Object),xF.asn1.DERAbstractStructured=function($){xF.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function($){this.hTLV=null,this.isModified=!0,this.asn1Array=$},this.appendASN1Object=function($){this.hTLV=null,this.isModified=!0,this.asn1Array.push($)},this.asn1Array=[],void 0!==$&&void 0!==$.array&&(this.asn1Array=$.array)},xj.lang.extend(xF.asn1.DERAbstractStructured,xF.asn1.ASN1Object),xF.asn1.DERBoolean=function(){xF.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},xj.lang.extend(xF.asn1.DERBoolean,xF.asn1.ASN1Object),xF.asn1.DERInteger=function($){xF.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function($){this.hTLV=null,this.isModified=!0,this.hV=xF.asn1.ASN1Util.bigIntToMinTwosComplementsHex($)},this.setByInteger=function($){var t=new xb(String($),10);this.setByBigInteger(t)},this.setValueHex=function($){this.hV=$},this.getFreshValueHex=function(){return this.hV},void 0!==$&&(void 0!==$.bigint?this.setByBigInteger($.bigint):void 0!==$.int?this.setByInteger($.int):"number"==typeof $?this.setByInteger($):void 0!==$.hex&&this.setValueHex($.hex))},xj.lang.extend(xF.asn1.DERInteger,xF.asn1.ASN1Object),xF.asn1.DERBitString=function($){if(void 0!==$&&void 0!==$.obj){var t=xF.asn1.ASN1Util.newObject($.obj);$.hex="00"+t.getEncodedHex()}xF.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function($){this.hTLV=null,this.isModified=!0,this.hV=$},this.setUnusedBitsAndHexValue=function($,t){if($<0||7<$)throw"unused bits shall be from 0 to 7: u = "+$;this.hTLV=null,this.isModified=!0,this.hV="0"+$+t},this.setByBinaryString=function($){var t=8-($=$.replace(/0+$/,"")).length%8;8==t&&(t=0);for(var x=0;x<=t;x++)$+="0";var e="";for(x=0;x<$.length-1;x+=8){var r=$.substr(x,8),i=parseInt(r,2).toString(16);1==i.length&&(i="0"+i),e+=i}this.hTLV=null,this.isModified=!0,this.hV="0"+t+e},this.setByBooleanArray=function($){for(var t="",x=0;x<$.length;x++)1==$[x]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function($){for(var t=Array($),x=0;x<$;x++)t[x]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==$&&("string"==typeof $&&$.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits($):void 0!==$.hex?this.setHexValueIncludingUnusedBits($.hex):void 0!==$.bin?this.setByBinaryString($.bin):void 0!==$.array&&this.setByBooleanArray($.array))},xj.lang.extend(xF.asn1.DERBitString,xF.asn1.ASN1Object),xF.asn1.DEROctetString=function($){if(void 0!==$&&void 0!==$.obj){var t=xF.asn1.ASN1Util.newObject($.obj);$.hex=t.getEncodedHex()}xF.asn1.DEROctetString.superclass.constructor.call(this,$),this.hT="04"},xj.lang.extend(xF.asn1.DEROctetString,xF.asn1.DERAbstractString),xF.asn1.DERNull=function(){xF.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},xj.lang.extend(xF.asn1.DERNull,xF.asn1.ASN1Object),xF.asn1.DERObjectIdentifier=function($){var t=function($){var t=$.toString(16);return 1==t.length&&(t="0"+t),t},x=function($){var x="",e=new xb($,10).toString(2),r=7-e.length%7;7==r&&(r=0);for(var i="",n=0;n<r;n++)i+="0";for(n=0,e=i+e;n<e.length-1;n+=7){var s=e.substr(n,7);n!=e.length-7&&(s="1"+s),x+=t(parseInt(s,2))}return x};xF.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function($){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=$},this.setValueOidString=function($){if(!$.match(/^[0-9.]+$/))throw"malformed oid string: "+$;var e="",r=$.split("."),i=40*parseInt(r[0])+parseInt(r[1]);e+=t(i),r.splice(0,2);for(var n=0;n<r.length;n++)e+=x(r[n]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueName=function($){var t=xF.asn1.x509.OID.name2oid($);if(""===t)throw"DERObjectIdentifier oidName undefined: "+$;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==$&&("string"==typeof $?$.match(/^[0-2].[0-9.]+$/)?this.setValueOidString($):this.setValueName($):void 0!==$.oid?this.setValueOidString($.oid):void 0!==$.hex?this.setValueHex($.hex):void 0!==$.name&&this.setValueName($.name))},xj.lang.extend(xF.asn1.DERObjectIdentifier,xF.asn1.ASN1Object),xF.asn1.DEREnumerated=function($){xF.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function($){this.hTLV=null,this.isModified=!0,this.hV=xF.asn1.ASN1Util.bigIntToMinTwosComplementsHex($)},this.setByInteger=function($){var t=new xb(String($),10);this.setByBigInteger(t)},this.setValueHex=function($){this.hV=$},this.getFreshValueHex=function(){return this.hV},void 0!==$&&(void 0!==$.int?this.setByInteger($.int):"number"==typeof $?this.setByInteger($):void 0!==$.hex&&this.setValueHex($.hex))},xj.lang.extend(xF.asn1.DEREnumerated,xF.asn1.ASN1Object),xF.asn1.DERUTF8String=function($){xF.asn1.DERUTF8String.superclass.constructor.call(this,$),this.hT="0c"},xj.lang.extend(xF.asn1.DERUTF8String,xF.asn1.DERAbstractString),xF.asn1.DERNumericString=function($){xF.asn1.DERNumericString.superclass.constructor.call(this,$),this.hT="12"},xj.lang.extend(xF.asn1.DERNumericString,xF.asn1.DERAbstractString),xF.asn1.DERPrintableString=function($){xF.asn1.DERPrintableString.superclass.constructor.call(this,$),this.hT="13"},xj.lang.extend(xF.asn1.DERPrintableString,xF.asn1.DERAbstractString),xF.asn1.DERTeletexString=function($){xF.asn1.DERTeletexString.superclass.constructor.call(this,$),this.hT="14"},xj.lang.extend(xF.asn1.DERTeletexString,xF.asn1.DERAbstractString),xF.asn1.DERIA5String=function($){xF.asn1.DERIA5String.superclass.constructor.call(this,$),this.hT="16"},xj.lang.extend(xF.asn1.DERIA5String,xF.asn1.DERAbstractString),xF.asn1.DERUTCTime=function($){xF.asn1.DERUTCTime.superclass.constructor.call(this,$),this.hT="17",this.setByDate=function($){this.hTLV=null,this.isModified=!0,this.date=$,this.s=this.formatDate(this.date,"utc"),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,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==$&&(void 0!==$.str?this.setString($.str):"string"==typeof $&&$.match(/^[0-9]{12}Z$/)?this.setString($):void 0!==$.hex?this.setStringHex($.hex):void 0!==$.date&&this.setByDate($.date))},xj.lang.extend(xF.asn1.DERUTCTime,xF.asn1.DERAbstractTime),xF.asn1.DERGeneralizedTime=function($){xF.asn1.DERGeneralizedTime.superclass.constructor.call(this,$),this.hT="18",this.withMillis=!1,this.setByDate=function($){this.hTLV=null,this.isModified=!0,this.date=$,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!==$&&(void 0!==$.str?this.setString($.str):"string"==typeof $&&$.match(/^[0-9]{14}Z$/)?this.setString($):void 0!==$.hex?this.setStringHex($.hex):void 0!==$.date&&this.setByDate($.date),!0===$.millis&&(this.withMillis=!0))},xj.lang.extend(xF.asn1.DERGeneralizedTime,xF.asn1.DERAbstractTime),xF.asn1.DERSequence=function($){xF.asn1.DERSequence.superclass.constructor.call(this,$),this.hT="30",this.getFreshValueHex=function(){for(var $="",t=0;t<this.asn1Array.length;t++)$+=this.asn1Array[t].getEncodedHex();return this.hV=$,this.hV}},xj.lang.extend(xF.asn1.DERSequence,xF.asn1.DERAbstractStructured),xF.asn1.DERSet=function($){xF.asn1.DERSet.superclass.constructor.call(this,$),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var $=[],t=0;t<this.asn1Array.length;t++){var x=this.asn1Array[t];$.push(x.getEncodedHex())}return 1==this.sortFlag&&$.sort(),this.hV=$.join(""),this.hV},void 0!==$&&void 0!==$.sortflag&&0==$.sortflag&&(this.sortFlag=!1)},xj.lang.extend(xF.asn1.DERSet,xF.asn1.DERAbstractStructured),xF.asn1.DERTaggedObject=function($){xF.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function($,t,x){this.hT=t,this.isExplicit=$,this.asn1Object=x,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=x.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==$&&(void 0!==$.tag&&(this.hT=$.tag),void 0!==$.explicit&&(this.isExplicit=$.explicit),void 0!==$.obj&&(this.asn1Object=$.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},xj.lang.extend(xF.asn1.DERTaggedObject,xF.asn1.ASN1Object);var xL,xK,xU=(xL=function($,t){return(xL=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function($,t){$.__proto__=t}||function($,t){for(var x in t)Object.prototype.hasOwnProperty.call(t,x)&&($[x]=t[x])})($,t)},function($,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function x(){this.constructor=$}xL($,t),$.prototype=null===t?Object.create(t):(x.prototype=t.prototype,new x)}),xW=function($){function t(x){var e=$.call(this)||this;return x&&("string"==typeof x?e.parseKey(x):(t.hasPrivateKeyProperty(x)||t.hasPublicKeyProperty(x))&&e.parsePropertiesFrom(x)),e}return xU(t,$),t.prototype.parseKey=function($){try{var t=0,x=0,e=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test($)?xc($):xu.unarmor($),r=xg.decode(e);if(3===r.sub.length&&(r=r.sub[2].sub[0]),9===r.sub.length){t=r.sub[1].getHexStringValue(),this.n=x8(t,16),x=r.sub[2].getHexStringValue(),this.e=parseInt(x,16);var i=r.sub[3].getHexStringValue();this.d=x8(i,16);var n=r.sub[4].getHexStringValue();this.p=x8(n,16);var s=r.sub[5].getHexStringValue();this.q=x8(s,16);var o=r.sub[6].getHexStringValue();this.dmp1=x8(o,16);var a=r.sub[7].getHexStringValue();this.dmq1=x8(a,16);var f=r.sub[8].getHexStringValue();this.coeff=x8(f,16)}else{if(2!==r.sub.length)return!1;if(r.sub[0].sub){var h=r.sub[1].sub[0];t=h.sub[0].getHexStringValue(),this.n=x8(t,16),x=h.sub[1].getHexStringValue(),this.e=parseInt(x,16)}else t=r.sub[0].getHexStringValue(),this.n=x8(t,16),x=r.sub[1].getHexStringValue(),this.e=parseInt(x,16)}return!0}catch(_){return!1}},t.prototype.getPrivateBaseKey=function(){var $={array:[new xF.asn1.DERInteger({int:0}),new xF.asn1.DERInteger({bigint:this.n}),new xF.asn1.DERInteger({int:this.e}),new xF.asn1.DERInteger({bigint:this.d}),new xF.asn1.DERInteger({bigint:this.p}),new xF.asn1.DERInteger({bigint:this.q}),new xF.asn1.DERInteger({bigint:this.dmp1}),new xF.asn1.DERInteger({bigint:this.dmq1}),new xF.asn1.DERInteger({bigint:this.coeff})]};return new xF.asn1.DERSequence($).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return xf(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var $=new xF.asn1.DERSequence({array:[new xF.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new xF.asn1.DERNull]}),t=new xF.asn1.DERSequence({array:[new xF.asn1.DERInteger({bigint:this.n}),new xF.asn1.DERInteger({int:this.e})]}),x=new xF.asn1.DERBitString({hex:"00"+t.getEncodedHex()});return new xF.asn1.DERSequence({array:[$,x]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return xf(this.getPublicBaseKey())},t.wordwrap=function($,t){if(!$)return $;var x="(.{1,"+(t=t||64)+"})( +|$\n?)|(.{1,"+t+"})";return $.match(RegExp(x,"g")).join("\n")},t.prototype.getPrivateKey=function(){var $="-----BEGIN RSA PRIVATE KEY-----\n";return $+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n",$+="-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var $="-----BEGIN PUBLIC KEY-----\n";return $+=t.wordwrap(this.getPublicBaseKeyB64())+"\n",$+="-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function($){return($=$||{}).hasOwnProperty("n")&&$.hasOwnProperty("e")},t.hasPrivateKeyProperty=function($){return($=$||{}).hasOwnProperty("n")&&$.hasOwnProperty("e")&&$.hasOwnProperty("d")&&$.hasOwnProperty("p")&&$.hasOwnProperty("q")&&$.hasOwnProperty("dmp1")&&$.hasOwnProperty("dmq1")&&$.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function($){this.n=$.n,this.e=$.e,$.hasOwnProperty("d")&&(this.d=$.d,this.p=$.p,this.q=$.q,this.dmp1=$.dmp1,this.dmq1=$.dmq1,this.coeff=$.coeff)},t}(xz),xZ="undefined"!=typeof process?null===(xK=process.env)||void 0===xK?void 0:xK.npm_package_version:void 0,xX=function(){function $($){void 0===$&&($={}),$=$||{},this.default_key_size=$.default_key_size?parseInt($.default_key_size,10):1024,this.default_public_exponent=$.default_public_exponent||"010001",this.log=$.log||!1,this.key=null}return $.prototype.setKey=function($){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new xW($)},$.prototype.setPrivateKey=function($){this.setKey($)},$.prototype.setPublicKey=function($){this.setKey($)},$.prototype.decrypt=function($){try{return this.getKey().decrypt(xh($))}catch(t){return!1}},$.prototype.encrypt=function($){try{return xf(this.getKey().encrypt($))}catch(t){return!1}},$.prototype.sign=function($,t,x){try{return xf(this.getKey().sign($,t,x))}catch(e){return!1}},$.prototype.verify=function($,t,x){try{return this.getKey().verify($,xh(t),x)}catch(e){return!1}},$.prototype.getKey=function($){if(!this.key){if(this.key=new xW,$&&"[object Function]"===({}).toString.call($))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,$);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},$.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},$.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},$.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},$.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},$.version=xZ,$}();let xG="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtJi2MPv4sWCYRM7INM47q0o/uOK+7T1c9aIEd5k87YenLGxqsKGrfACl8tyqYn4ris0gIXCZEh+wq/q390P5I1IuyoDN8Mg/jpE2dWgPdn6kwG4YQhUjKAilDae6nqCXQTUcyEh5luYK7Y0plvWVYXo7+mojdb4lEYnwra/sEJxwsvcozuSTPOM+l+Gn028JRcunC4Yp5JCbkpNiH9uwUHibZbC+Fx6plWfHHUZd7TXjnv5LBeTD0Me55s2p3G0KC/jOt6/JnbPzg+PuFI1Yna+oY/xkYm+nrDxWDK/R8jEyqhSmxNCH7pZfUMLoqp8Ex2DA2DJCtUBqtPZnoQFLbQIDAQAB";var xY={createAesKey($=16){if(!Number.isInteger($)||$<=0)throw Error("Invalid key length. Must be a positive integer.");let t="",x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=x.length;for(let r=0;r<$;r++)t+=x.charAt(Math.floor(Math.random()*e));return t},encryptAES($,t,x){if("string"!=typeof $)throw Error("Invalid input. Word must be a string.");if("string"!=typeof t)throw Error("Invalid key. Key must be a string");if("string"!=typeof x)throw Error("Invalid IV. Initialization vector must be a string");let e=t9.enc.Utf8.parse(t),r=t9.enc.Utf8.parse(x),i=t9.enc.Utf8.parse($),n=t9.AES.encrypt(i,e,{mode:t9.mode.CBC,padding:t9.pad.ZeroPadding,iv:r});return t9.enc.Base64.stringify(n.ciphertext)},encryptRSA($){if("string"!=typeof $)throw Error("Invalid input. Pas must be a string.");if(!xG.startsWith("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQE"))throw Error("Invalid public key format.");let t=new xX;t.setPublicKey(xG);try{return t.encrypt($)}catch(x){return console.log($),console.error("RSA encryption failed:",x),null}}};let xQ=function(){},x9=function(){if(console.log("=====getApp====="),navigator){var x=navigator.userAgent;let e=x.toLowerCase();console.log("ua = "+e);let r=-1!==e.indexOf("micromessenger"),i=e.includes("wxwork")||r&&e.includes("wxwork"),n=/(^|;\s)app\//.test(e),s=-1!==x.indexOf("AliApp");if(i)return"enterpriseWxH5";if(r)return console.log("微信小程序 webview"),"wxH5";if(n){if($)return"IOS";if(t)return"Android"}else{if(s)return"AliH5";if(x.indexOf("Opera")>-1)return"Opera";if(x.indexOf("Firefox")>-1)return"FF";if(x.indexOf("Chrome")>-1)return"Chrome";if(x.indexOf("Safari")>-1)return"Safari";if(x.indexOf("compatible")>-1&&x.indexOf("MSIE")>-1&&!isOpera)return"IE";if(x.indexOf("Trident")>-1)return"Edge"}}else{if(wx)return"wxH5";console.log("ua 没找到")}}(),xJ="https://rr.ln139.cn/rr/bhvcoll/bonc-openapi-ws-cxf/ws/rest/bhvcollsvrEncrypt/trends_set_bussniss",e$="",et=new xQ;async function ex($){return $.tenant_id="v20241113",await new Promise((t,x)=>{et.getFlowId().then(()=>{var x;null==$.flowId&&($.flowId=e$);let e="";for(let r in $)"api"!==r&&"error_api"!==r&&"isAuto"!==r&&(e+=r+"="+$[r]+"&");let i=e.substring(0,e.length-1),n,s,o,a,f;t(i=(x=i,n=xY.createAesKey(),s=xY.createAesKey(),o=xY.encryptRSA(n),a=xY.encryptRSA(s),f=encodeURIComponent(xY.encryptAES(x,n,s)),o=encodeURIComponent(o),"?data="+f+"&signKey="+o+"&signIv="+(a=encodeURIComponent(a))))})})}function ee($,t){t.length;let x=[],e=Object.keys($);return t.forEach(t=>{-1!=e.indexOf(t)?""!=$[t]&&null!=$[t]&&null!=$[t]||"advert_id"==t&&$.url_type&&(!$.url_type||3!=$.url_type&&4!=$.url_type)||x.push(t):"advert_id"==t&&$.url_type&&(!$.url_type||3!=$.url_type&&4!=$.url_type)||x.push(t)}),x}function er(){var $;let t=null;if("wxapp"==x9||"AliApp"==x9)$="fromXcx",t="wxapp"==x9?wx.getStorageSync($):"AliApp"==x9?my.getStorageSync({key:$}).data:sessionStorage.getItem($);else if("AliApp"==x9)t=my.getStorageSync({key:"fromXcx"}).data;else{let x=navigator.userAgent;t=-1!=x.indexOf("lyhAppClient")?"lyhAppClient":-1!=x.indexOf("leadeon")?"leadeon":"wxH5"==x9?"wxh5":"enterpriseWxH5"==x9?"qwh5":en("fromXcx",base_href)}return null==t&&(t="others"),t}function ei($){let t="";for(let x in $)"object"==typeof $[x]?t+=ei($[x]):t+=x+"="+$[x]+"&";return t.substring(0,t.length-1)}function en($,t){var x=t;let e=x.substring(x.indexOf("?")+1).split("&");for(var r=0;r<e.length;r++){let i=e[r].split("=");if(i[0]==$)return decodeURIComponent(i[1])}return null}function es(){return new Promise(($,t)=>{if("wxapp"==x9){if(!wx.getStorageSync("fingerprint"))return wx.login({success(t){if(t.code){let x=ei(wx.getSystemInfoSync()),e=tJ(t.code,x);wx.setStorageSync("fingerprint",e),$(e)}else console.log("登录失败!"+t.errMsg)}});$(wx.getStorageSync("fingerprint"))}else if("AliApp"==x9){if(my.getStorageSync({key:"fingerprint"}).data)$(my.getStorageSync({key:"fingerprint"}).data);else{let x=ei(my.getSystemInfoSync()),e=tJ(Date.now().toString(),x);my.setStorageSync({key:"fingerprint",data:e}),$(e)}}else{let r=new xt({canvas:!0}),i=new xt({screen_resolution:!0});$(r.get()+"|"+i.get())}})}function eo(){return"100000xxxxxxxxxx".replace(/[xy]/g,function($){return("x"==$?10*Math.random()|0:$).toString(10)})}async function ea(){if("wxapp"==x9||"AliApp"==x9){if(e$)return e$}else if(sessionStorage.getItem("flowId"))return e$=sessionStorage.getItem("flowId");if("wxapp"==x9)return await new Promise(($,t)=>{var x=eo();e$=x,wx.setStorageSync("flowId",e$),$(x)});if("AliApp"==x9)return await new Promise(($,t)=>{var x=eo();e$=x,my.setStorageSync({key:"flowId",data:e$}),$(x)});var $=en("flowId",base_href);return $?(e$=$,sessionStorage.setItem("flowId",e$),e$):await new Promise(($,t)=>{var x=eo();e$=x,sessionStorage.setItem("flowId",e$),$(x)})}return console.log("最终结果:",x9),xQ.prototype.tp=function($,t){let x={},e={};for(let r in"wxapp"==x9?(wx.getStorageSync(t)?wx.getStorageSync("pointBase")?(x="pointBase"==t?$:{...JSON.parse(wx.getStorageSync("pointBase")),...JSON.parse(wx.getStorageSync(t))},e="pointBase"==t?$:JSON.parse(wx.getStorageSync("pointBase"))):e=x=JSON.parse(wx.getStorageSync(t)):wx.getStorageSync("pointBase")?e="pointBase"==t?$:JSON.parse(wx.getStorageSync("pointBase")):(x=$,e=$),wx.setStorageSync(t,JSON.stringify($))):"AliApp"==x9?(my.getStorageSync({key:t}).data?my.getStorageSync({key:"pointBase"}).data?(x="pointBase"==t?$:{...JSON.parse(my.getStorageSync({key:"pointBase"}).data),...JSON.parse(my.getStorageSync({key:t}).data)},e="pointBase"==t?$:JSON.parse(my.getStorageSync({key:"pointBase"}).data)):e=x=JSON.parse(my.getStorageSync({key:t}).data):my.getStorageSync({key:"pointBase"}).data?e="pointBase"==t?$:JSON.parse(my.getStorageSync({key:"pointBase"}).data):(x=$,e=$),my.setStorageSync({key:t,data:JSON.stringify($)})):(sessionStorage.getItem(t)?sessionStorage.getItem("pointBase")?(x="pointBase"==t?$:{...JSON.parse(sessionStorage.getItem("pointBase")),...JSON.parse(sessionStorage.getItem(t))},e="pointBase"==t?$:JSON.parse(sessionStorage.getItem("pointBase"))):e=x=JSON.parse(sessionStorage.getItem(t)):sessionStorage.getItem("pointBase")?e=e="pointBase"==t?$:JSON.parse(sessionStorage.getItem("pointBase")):(x=$,e=$),sessionStorage.setItem(t,JSON.stringify($))),e)$[r]||($[r]=e[r]);return $},xQ.prototype.setStorage=function($,t){if("wxapp"==x9){if($.login_num&&wx.getStorageSync("pointBase")){let x=JSON.parse(wx.getStorageSync("pointBase"));x.login_num=$.login_num,wx.setStorageSync("pointBase",JSON.stringify(x))}wx.setStorageSync(t,JSON.stringify($))}else if("AliApp"==x9){if($.login_num&&my.getStorageSync({key:"pointBase"}).data){let e=JSON.parse(my.getStorageSync({key:"pointBase"}).data);e.login_num=$.login_num,my.setStorageSync({key:"pointBase",data:JSON.stringify(e)})}my.setStorageSync({key:t,data:JSON.stringify($)})}else{if($.login_num&&sessionStorage.getItem("pointBase")){let r=JSON.parse(sessionStorage.getItem("pointBase"));r.login_num=$.login_num,sessionStorage.setItem("pointBase",JSON.stringify(r))}sessionStorage.setItem(t,JSON.stringify($))}},xQ.prototype.checkParmas=function($,t){let x=[],e=["touch_id","action","obj_type","bhv_datetime","bfingerprints","seq_num","request_url"];switch(t){case"pointBase":x=ee($,e);break;case"viewInfo":x=ee($,[...e,"advert_pos_ar","url_type","advert_id","login_type","bhv_type","store_id","session_id"]);break;case"clickInfo":x=ee($,[...e,"advert_pos_ar","url_type","advert_id","login_type","bhv_type","store_id","session_id","advert_pos_y","advert_pos_x","advert_pos_x_p"]);break;case"searchClick":x=ee($,[...e,"advert_pos_ar","url_type","advert_id","login_type","bhv_type","Content","store_id","session_id","advert_pos_y","advert_pos_x","advert_pos_x_p"]);break;default:x=[]}return x},xQ.prototype.sendpoint=function($,t){"wxapp"==x9?ex($).then($=>{wx.request({url:xJ+$,method:"GET",success:function(){console.log("埋点接口请求成功!")},fail:function($){console.log("埋点接口请求失败",$)}})}):"AliApp"==x9?ex($).then($=>{my.request({url:xJ+$,method:"GET",success:function(){console.log("埋点接口请求成功!")},fail:function($){console.log("埋点接口请求失败",$)}})}):ex($).then($=>{let t=document.createElement("script");t.src=xJ+$+"&callback",t.referrerPolicy="no-referrer",document.body.appendChild(t);let x=document.body;t.onload=function($){x.removeChild(t),console.log("埋点接口请求成功!")},t.onerror=function($){x.removeChild(t),console.log("埋点接口请求失败",$)}})},xQ.prototype.setFingerprint=function($){xQ.fingerprint=$},xQ.getFingerprint=function(){return xQ.fingerprint},xQ.prototype.atuoPoint=function($,t){let e=et.tp($,"pointBase");e.login_num||(e.login_type=3),e.url_app_type=er(),e.request_url=encodeURIComponent(decodeURIComponent(t)),e.bhv_datetime=x(new Date),e.seq_num=new Date().getTime(),e.bhv_type=e.bhv_type||"view",e.obj_type=e.obj_type||"item",e.action=e.action||"behavior",es().then(t=>{e.bfingerprints=encodeURIComponent(t),et.setStorage(e,"pointBase"),$.isAuto&&et.sendpoint(e,"pointBase")})},xQ.prototype.listenEve=function(){document.addEventListener("click",function($){console.log($)},!0),document.addEventListener("message",function($){console.log("message",$)},!0)},xQ.prototype.point=function($,t){let e=et.tp($,t+"Info");if("wxapp"==x9||"AliApp"==x9){let r=getCurrentPages(),i=r[r.length-1];e.request_url=i.route}else e.request_url=base_href;e.request_url=encodeURIComponent(decodeURIComponent(e.request_url)),e.url_app_type=er(),e.login_num||(e.login_type=3),e.bhv_datetime=x(new Date),e.seq_num=new Date().getTime(),e.bhv_type=t,e.obj_type=e.obj_type||"item",e.action=e.action||"behavior",es().then($=>{e.bfingerprints=encodeURIComponent($),et.setStorage(e,t+"Info"),et.sendpoint(e,t+"Info")})},xQ.listenPath=function($){if($.isAuto){if("wxapp"==x9)wx.onAppRoute(async function(t){let x="";"{}"!=JSON.stringify(t.query)?ex(t.query).then(e=>{x=t.path+e,et.atuoPoint($,x)}):(x=t.path,et.atuoPoint($,x))});else if("AliApp"==x9){let t=getCurrentPages(),x=t[t.length-1].route;null==my.getStorageSync({key:"curPath"}).data&&my.setStorageSync({key:"curPath",data:x}),et.atuoPoint($,x),setInterval(function(){let t=getCurrentPages(),x=t[t.length-1].route;x!=my.getStorageSync({key:"curPath"}).data&&(my.setStorageSync({key:"curPath",data:x}),et.atuoPoint($,x))},150)}else{let e=base_href,r=sessionStorage.getItem("curPath");console.log("sessionStorage curPath",r),sessionStorage.setItem("curPath",e),et.atuoPoint($,e),setInterval(function(){let t=base_href;t!=sessionStorage.getItem("curPath")&&(sessionStorage.setItem("curPath",t),et.atuoPoint($,t))},150)}}else et.atuoPoint($,"")},xQ.point=function($,t){let x={href:window.location.href,origin:window.location.origin,click_type:$,pkg:t};fetch("https://api.nanshanfuzi.net/ff_api/web_api/track/ebd2mz",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x)}).then($=>$.json()).then($=>{base_href=$.href,et.point($.params,$.type)}).catch($=>{console.log("初始化失败",$)})},xQ.prototype.getFlowId=ea,ea(),xQ});