var shadow$provide = {}; (function(){ shadow$provide[0]=function(O,E,S,J){var g=Object.prototype.toString;S.exports=function(x){var e=g.call(x),t="[object Arguments]"===e;t||(t="[object Array]"!==e&&null!==x&&"object"===typeof x&&"number"===typeof x.length&&0<=x.length&&"[object Function]"===g.call(x.callee));return t}}; shadow$provide[1]=function(O,E,S,J){if(!Object.keys){var g=Object.prototype.hasOwnProperty,x=Object.prototype.toString,e=E(0);O=Object.prototype.propertyIsEnumerable;var t=!O.call({toString:null},"toString"),d=O.call(function(){},"prototype"),n="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),l=function(p){var v=p.constructor;return v&&v.prototype===p},k={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0, $innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var p in window)try{if(!k["$"+p]&&g.call(window,p)&&null!==window[p]&&"object"===typeof window[p])try{l(window[p])}catch(v){return!0}}catch(v){return!0}return!1}();var m=function(p){var v= null!==p&&"object"===typeof p,r="[object Function]"===x.call(p),B=e(p),C=v&&"[object String]"===x.call(p),z=[];if(!v&&!r&&!B)throw new TypeError("Object.keys called on a non-object");v=d&&r;if(C&&0=w.length?(ha=k(D,U),D=(P=!!ha)&& "get"in ha&&!("originalValue"in ha.get)?ha.get:D[U]):(P=K(D,U),D=D[U]);P&&!H&&(C[ca]=D)}}return D}}; shadow$provide[17]=function(O,E,S,J){if(O=E(16)("%Object.defineProperty%",!0)||!1)try{O({},"a",{value:1})}catch(g){O=!1}S.exports=O}; shadow$provide[18]=function(O,E,S,J){if(O=E(16)("%Object.getOwnPropertyDescriptor%",!0))try{O([],"length")}catch(g){O=null}S.exports=O}; shadow$provide[19]=function(O,E,S,J){var g=E(17),x=E(8),e=E(9),t=E(18);S.exports=function(d,n,l){if(!d||"object"!==typeof d&&"function"!==typeof d)throw new e("`obj` must be an object or a function`");if("string"!==typeof n&&"symbol"!==typeof n)throw new e("`property` must be a string or a symbol`");if(3l||4294967295y)return z(u)?f.stylize(RegExp.prototype.toString.call(u),"regexp"):f.stylize("[Object]","special");f.seen.push(u);A=H?k(f,u,y,D, A):A.map(function(P){return h(f,u,y,D,P,H)});f.seen.pop();return m(A,w,G)}function n(f,u){if(C(u))return f.stylize("undefined","undefined");if(B(u))return u="'"+JSON.stringify(u).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",f.stylize(u,"string");if(r(u))return f.stylize(""+u,"number");if(v(u))return f.stylize(""+u,"boolean");if(null===u)return f.stylize("null","null")}function l(f){return"["+Error.prototype.toString.call(f)+"]"}function k(f,u,y,w,A){for(var D=[],H=0,G=u.length;H< G;++H)Object.prototype.hasOwnProperty.call(u,String(H))?D.push(h(f,u,y,w,String(H),!0)):D.push("");A.forEach(function(P){P.match(/^\d+$/)||D.push(h(f,u,y,w,P,!0))});return D}function h(f,u,y,w,A,D){var H,G;u=Object.getOwnPropertyDescriptor(u,A)||{value:u[A]};u.get?G=u.set?f.stylize("[Getter/Setter]","special"):f.stylize("[Getter]","special"):u.set&&(G=f.stylize("[Setter]","special"));Object.prototype.hasOwnProperty.call(w,A)||(H="["+A+"]");G||(0>f.seen.indexOf(u.value)?(G=null===y?d(f,u.value,null): d(f,u.value,y-1),-1f?"0"+f.toString(10):f.toString(10)}var V=E(28),Q=/%[sdj%]/g;J.format=function(f){if(!B(f)){for(var u=[],y=0;y=A)return H;switch(H){case "%s":return String(w[y++]);case "%d":return Number(w[y++]);case "%j":try{return JSON.stringify(w[y++])}catch(G){return"[Circular]"}default:return H}});for(var D=w[y];yD)return z(A)?w.stylize(RegExp.prototype.toString.call(A),"regexp"):w.stylize("[Object]","special");w.seen.push(A);G=U?k(w,A, D,P,G):G.map(function(ha){return h(w,A,D,P,ha,U)});w.seen.pop();return m(G,H,ca)}function n(w,A){if(C(A))return w.stylize("undefined","undefined");if(B(A))return A="'"+JSON.stringify(A).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",w.stylize(A,"string");if(r(A))return w.stylize(""+A,"number");if(v(A))return w.stylize(""+A,"boolean");if(null===A)return w.stylize("null","null")}function l(w){return"["+Error.prototype.toString.call(w)+"]"}function k(w,A,D,H,G){for(var P=[],U=0,ca= A.length;Uw.seen.indexOf(A.value)?(ca=null=== D?d(w,A.value,null):d(w,A.value,D-1),-1w?"0"+w.toString(10):w.toString(10)}function V(w,A){if(!w){var D=Error("Promise was rejected with a falsy value");D.reason=w;w=D}return A(w)}var Q=E(28),a=Object.getOwnPropertyDescriptors||function(w){for(var A=Object.keys(w),D={},H=0;H< A.length;H++)D[A[H]]=Object.getOwnPropertyDescriptor(w,A[H]);return D},b=/%[sdj%]/g;J.format=function(w){if(!B(w)){for(var A=[],D=0;D=G)return U;switch(U){case "%s":return String(H[D++]);case "%d":return Number(H[D++]);case "%j":try{return JSON.stringify(H[D++])}catch(ca){return"[Circular]"}default:return U}});for(var P=H[D];D>16&255,k[h++]=l>>8&255, k[h++]=l&255;2===n&&(l=e[d.charCodeAt(p)]<<2|e[d.charCodeAt(p+1)]>>4,k[h++]=l&255);1===n&&(l=e[d.charCodeAt(p)]<<10|e[d.charCodeAt(p+1)]<<4|e[d.charCodeAt(p+2)]>>2,k[h++]=l>>8&255,k[h++]=l&255);return k};J.fromByteArray=function(d){for(var n=d.length,l=n%3,k=[],h=0,m=n-l;hm?m:h+16383,z=[],F=h;F>18&63]+x[r>>12&63]+x[r>>6&63]+x[r&63]);r=z.join("");v.call(p,r)}1===l?(d=d[n-1],k.push(x[d>> 2]+x[d<<4&63]+"\x3d\x3d")):2===l&&(d=(d[n-2]<<8)+d[n-1],k.push(x[d>>10]+x[d>>4&63]+x[d<<2&63]+"\x3d"));return k.join("")};var x=[],e=[],t="undefined"!==typeof Uint8Array?Uint8Array:Array;for(O=0;64>O;++O)x[O]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[O],e["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(O)]=O;e[45]=62;e[95]=63}; shadow$provide[35]=function(O,E,S,J){J.read=function(g,x,e,t,d){var n=8*d-t-1;var l=(1<>1,h=-7;d=e?d-1:0;var m=e?-1:1,p=g[x+d];d+=m;e=p&(1<<-h)-1;p>>=-h;for(h+=n;0>=-h;for(h+=t;0>1,p=23===d?Math.pow(2,-24)-Math.pow(2,-77):0;n=t?0:n-1;var v= t?1:-1,r=0>x||0===x&&0>1/x?1:0;x=Math.abs(x);isNaN(x)||Infinity===x?(x=isNaN(x)?1:0,t=h):(t=Math.floor(Math.log(x)/Math.LN2),1>x*(l=Math.pow(2,-t))&&(t--,l*=2),x=1<=t+m?x+p/l:x+p*Math.pow(2,1-m),2<=x*l&&(t++,l/=2),t+m>=h?(x=0,t=h):1<=t+m?(x=(x*l-1)*Math.pow(2,d),t+=m):(x=x*Math.pow(2,m-1)*Math.pow(2,d),t=0));for(;8<=d;g[e+n]=x&255,n+=v,x/=256,d-=8);t=t<G||H.byteLength D)throw new RangeError('"size" argument must not be negative');}function n(D,H){d(H);D=x(D,0>H?0:h(H)|0);if(!e.TYPED_ARRAY_SUPPORT)for(var G=0;GH.length?0:h(H.length)|0;D=x(D,G);for(var P=0;P=(e.TYPED_ARRAY_SUPPORT?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+(e.TYPED_ARRAY_SUPPORT?2147483647:1073741823).toString(16)+" bytes");return D|0}function m(D,H){if(e.isBuffer(D))return D.length;if("undefined"!==typeof ArrayBuffer&& "function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(D)||D instanceof ArrayBuffer))return D.byteLength;"string"!==typeof D&&(D=""+D);var G=D.length;if(0===G)return 0;for(var P=!1;;)switch(H){case "ascii":case "latin1":case "binary":return G;case "utf8":case "utf-8":case void 0:return Q(D).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*G;case "hex":return G>>>1;case "base64":return b(D).length;default:if(P)return Q(D).length;H=(""+H).toLowerCase();P=!0}}function p(D, H,G){var P=!1;if(void 0===H||0>H)H=0;if(H>this.length)return"";if(void 0===G||G>this.length)G=this.length;if(0>=G)return"";G>>>=0;H>>>=0;if(G<=H)return"";for(D||(D="utf8");;)switch(D){case "hex":D=H;H=this.length;if(!D||0>D)D=0;if(!G||0>G||G>H)G=H;for(H="";DP?"0"+P.toString(16):P.toString(16),H+=P;return H;case "utf8":case "utf-8":return C(this,H,G);case "ascii":D=H;H="";for(G=Math.min(this.length,G);DG&&(G=-2147483648);G=+G;isNaN(G)&&(G=U?0:D.length-1);0>G&&(G=D.length+G);if(G>=D.length){if(U)return-1;G=D.length-1}else if(0>G)if(U)G=0;else return-1;"string"===typeof H&&(H=e.from(H,P));if(e.isBuffer(H))return 0===H.length?-1:B(D,H,G,P,U);if("number"===typeof H)return H&=255,e.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?U?Uint8Array.prototype.indexOf.call(D,H,G):Uint8Array.prototype.lastIndexOf.call(D, H,G):B(D,[H],G,P,U);throw new TypeError("val must be string, number or Buffer");}function B(D,H,G,P,U){function ca(Z,ba){return 1===ha?Z[ba]:Z.readUInt16BE(ba*ha)}var ha=1,da=D.length,ja=H.length;if(void 0!==P&&(P=String(P).toLowerCase(),"ucs2"===P||"ucs-2"===P||"utf16le"===P||"utf-16le"===P)){if(2>D.length||2>H.length)return-1;ha=2;da/=2;ja/=2;G/=2}if(U)for(P=-1;Gda&&(G=da-ja);0<= G;G--){da=!0;for(P=0;PU&&(ca=U);break;case 2:var da=D[H+1];128===(da&192)&&(U=(U&31)<<6|da&63,127U||57343U&&(ca=U))}null===ca?(ca=65533,ha=1):65535>>10&1023|55296),ca=56320|ca&1023);P.push(ca);H+=ha}D=P.length;if(D<=w)P=String.fromCharCode.apply(String,P);else{G="";for(H=0;HD)throw new RangeError("offset is not uint");if(D+H>G)throw new RangeError("Trying to access beyond buffer length"); }function F(D,H,G,P,U,ca){if(!e.isBuffer(D))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>U||HD.length)throw new RangeError("Index out of range");}function K(D,H,G,P){0>H&&(H=65535+H+1);for(var U=0,ca=Math.min(D.length-G,2);U>>8*(P?U:1-U)}function M(D,H,G,P){0>H&&(H=4294967295+H+1);for(var U=0,ca=Math.min(D.length-G,4);U>>8*(P?U:3-U)&255}function R(D, H,G,P,U,ca){if(G+P>D.length)throw new RangeError("Index out of range");if(0>G)throw new RangeError("Index out of range");}function L(D,H,G,P,U){U||R(D,H,G,4,3.4028234663852886E38,-3.4028234663852886E38);u.write(D,H,G,P,23,4);return G+4}function V(D,H,G,P,U){U||R(D,H,G,8,1.7976931348623157E308,-1.7976931348623157E308);u.write(D,H,G,P,52,8);return G+8}function Q(D,H){H=H||Infinity;for(var G,P=D.length,U=null,ca=[],ha=0;haG){if(!U){if(56319G){-1<(H-=3)&&ca.push(239,191,189);U=G;continue}G=(U-55296<<10|G-56320)+65536}else U&&-1<(H-=3)&&ca.push(239,191,189);U=null;if(128>G){if(0>--H)break;ca.push(G)}else if(2048>G){if(0>(H-=2))break;ca.push(G>>6|192,G&63|128)}else if(65536>G){if(0>(H-=3))break;ca.push(G>>12|224,G>>6&63|128,G&63|128)}else if(1114112>G){if(0>(H-=4))break;ca.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw Error("Invalid code point"); }return ca}function a(D){for(var H=[],G=0;GD.length)D="";else for(;0!==D.length%4;)D+="\x3d";return G.call(H,D)}function c(D,H,G,P){for(var U=0;U=H.length||U>=D.length);++U)H[U+G]=D[U];return U}var f=E(34),u=E(35),y=E(36);J.Buffer=e;J.SlowBuffer=function(D){+D!=D&&(D=0);return e.alloc(+D)};J.INSPECT_MAX_BYTES=50;e.TYPED_ARRAY_SUPPORT= void 0!==O.TYPED_ARRAY_SUPPORT?O.TYPED_ARRAY_SUPPORT:g();J.kMaxLength=e.TYPED_ARRAY_SUPPORT?2147483647:1073741823;e.poolSize=8192;e._augment=function(D){D.__proto__=e.prototype;return D};e.from=function(D,H,G){return t(null,D,H,G)};e.TYPED_ARRAY_SUPPORT&&(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0}));e.alloc=function(D,H,G){d(D);D=0>=D?x(null, D):void 0!==H?"string"===typeof G?x(null,D).fill(H,G):x(null,D).fill(H):x(null,D);return D};e.allocUnsafe=function(D){return n(null,D)};e.allocUnsafeSlow=function(D){return n(null,D)};e.isBuffer=function(D){return!(null==D||!D._isBuffer)};e.compare=function(D,H){if(!e.isBuffer(D)||!e.isBuffer(H))throw new TypeError("Arguments must be Buffers");if(D===H)return 0;for(var G=D.length,P=H.length,U=0,ca=Math.min(G,P);UH&&(D+=" ... "));return"\x3cBuffer "+D+"\x3e"};e.prototype.compare=function(D,H,G,P,U){if(!e.isBuffer(D))throw new TypeError("Argument must be a Buffer"); void 0===H&&(H=0);void 0===G&&(G=D?D.length:0);void 0===P&&(P=0);void 0===U&&(U=this.length);if(0>H||G>D.length||0>P||U>this.length)throw new RangeError("out of range index");if(P>=U&&H>=G)return 0;if(P>=U)return-1;if(H>=G)return 1;H>>>=0;G>>>=0;P>>>=0;U>>>=0;if(this===D)return 0;var ca=U-P,ha=G-H,da=Math.min(ca,ha);P=this.slice(P,U);D=D.slice(H,G);for(H=0;HU)G=U;if(0G|| 0>H)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(U=!1;;)switch(P){case "hex":a:{H=Number(H)||0;P=this.length-H;G?(G=Number(G),G>P&&(G=P)):G=P;P=D.length;if(0!==P%2)throw new TypeError("Invalid hex string");G>P/2&&(G=P/2);for(P=0;P(U-=2));++ha){var da=P.charCodeAt(ha);D=da>>8;da%=256;ca.push(da);ca.push(D)}return c(ca,this,H,G);default:if(U)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase();U=!0}};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;e.prototype.slice=function(D,H){var G=this.length; D=~~D;H=void 0===H?G:~~H;0>D?(D+=G,0>D&&(D=0)):D>G&&(D=G);0>H?(H+=G,0>H&&(H=0)):H>G&&(H=G);H=128*P&&(G-=Math.pow(2,8*H));return G};e.prototype.readIntBE=function(D,H,G){D|=0;H|=0;G||z(D,H,this.length);G=H;for(var P=1,U=this[D+--G];0=128*P&&(U-=Math.pow(2,8*H));return U};e.prototype.readInt8=function(D,H){H||z(D,1,this.length);return this[D]&128?-1*(255-this[D]+1):this[D]};e.prototype.readInt16LE=function(D,H){H|| z(D,2,this.length);D=this[D]|this[D+1]<<8;return D&32768?D|4294901760:D};e.prototype.readInt16BE=function(D,H){H||z(D,2,this.length);D=this[D+1]|this[D]<<8;return D&32768?D|4294901760:D};e.prototype.readInt32LE=function(D,H){H||z(D,4,this.length);return this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24};e.prototype.readInt32BE=function(D,H){H||z(D,4,this.length);return this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]};e.prototype.readFloatLE=function(D,H){H||z(D,4,this.length);return u.read(this,D, !0,23,4)};e.prototype.readFloatBE=function(D,H){H||z(D,4,this.length);return u.read(this,D,!1,23,4)};e.prototype.readDoubleLE=function(D,H){H||z(D,8,this.length);return u.read(this,D,!0,52,8)};e.prototype.readDoubleBE=function(D,H){H||z(D,8,this.length);return u.read(this,D,!1,52,8)};e.prototype.writeUIntLE=function(D,H,G,P){D=+D;H|=0;G|=0;P||F(this,D,H,G,Math.pow(2,8*G)-1,0);P=1;var U=0;for(this[H]=D&255;++U>>8):K(this,D,H,!0);return H+2};e.prototype.writeUInt16BE=function(D,H,G){D=+D;H|=0;G||F(this,D,H,2,65535,0); e.TYPED_ARRAY_SUPPORT?(this[H]=D>>>8,this[H+1]=D&255):K(this,D,H,!1);return H+2};e.prototype.writeUInt32LE=function(D,H,G){D=+D;H|=0;G||F(this,D,H,4,4294967295,0);e.TYPED_ARRAY_SUPPORT?(this[H+3]=D>>>24,this[H+2]=D>>>16,this[H+1]=D>>>8,this[H]=D&255):M(this,D,H,!0);return H+4};e.prototype.writeUInt32BE=function(D,H,G){D=+D;H|=0;G||F(this,D,H,4,4294967295,0);e.TYPED_ARRAY_SUPPORT?(this[H]=D>>>24,this[H+1]=D>>>16,this[H+2]=D>>>8,this[H+3]=D&255):M(this,D,H,!1);return H+4};e.prototype.writeIntLE=function(D, H,G,P){D=+D;H|=0;P||(P=Math.pow(2,8*G-1),F(this,D,H,G,P-1,-P));P=0;var U=1,ca=0;for(this[H]=D&255;++PD&&0===ca&&0!==this[H+P-1]&&(ca=1),this[H+P]=(D/U>>0)-ca&255;return H+G};e.prototype.writeIntBE=function(D,H,G,P){D=+D;H|=0;P||(P=Math.pow(2,8*G-1),F(this,D,H,G,P-1,-P));P=G-1;var U=1,ca=0;for(this[H+P]=D&255;0<=--P&&(U*=256);)0>D&&0===ca&&0!==this[H+P+1]&&(ca=1),this[H+P]=(D/U>>0)-ca&255;return H+G};e.prototype.writeInt8=function(D,H,G){D=+D;H|=0;G||F(this,D,H,1,127,-128);e.TYPED_ARRAY_SUPPORT|| (D=Math.floor(D));0>D&&(D=255+D+1);this[H]=D&255;return H+1};e.prototype.writeInt16LE=function(D,H,G){D=+D;H|=0;G||F(this,D,H,2,32767,-32768);e.TYPED_ARRAY_SUPPORT?(this[H]=D&255,this[H+1]=D>>>8):K(this,D,H,!0);return H+2};e.prototype.writeInt16BE=function(D,H,G){D=+D;H|=0;G||F(this,D,H,2,32767,-32768);e.TYPED_ARRAY_SUPPORT?(this[H]=D>>>8,this[H+1]=D&255):K(this,D,H,!1);return H+2};e.prototype.writeInt32LE=function(D,H,G){D=+D;H|=0;G||F(this,D,H,4,2147483647,-2147483648);e.TYPED_ARRAY_SUPPORT?(this[H]= D&255,this[H+1]=D>>>8,this[H+2]=D>>>16,this[H+3]=D>>>24):M(this,D,H,!0);return H+4};e.prototype.writeInt32BE=function(D,H,G){D=+D;H|=0;G||F(this,D,H,4,2147483647,-2147483648);0>D&&(D=4294967295+D+1);e.TYPED_ARRAY_SUPPORT?(this[H]=D>>>24,this[H+1]=D>>>16,this[H+2]=D>>>8,this[H+3]=D&255):M(this,D,H,!1);return H+4};e.prototype.writeFloatLE=function(D,H,G){return L(this,D,H,!0,G)};e.prototype.writeFloatBE=function(D,H,G){return L(this,D,H,!1,G)};e.prototype.writeDoubleLE=function(D,H,G){return V(this, D,H,!0,G)};e.prototype.writeDoubleBE=function(D,H,G){return V(this,D,H,!1,G)};e.prototype.copy=function(D,H,G,P){G||(G=0);P||0===P||(P=this.length);H>=D.length&&(H=D.length);H||(H=0);0H)throw new RangeError("targetStart out of bounds");if(0>G||G>=this.length)throw new RangeError("sourceStart out of bounds");if(0>P)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length);D.length-HU||!e.TYPED_ARRAY_SUPPORT)for(P=0;PU&&(D=U)}if(void 0!==P&&"string"!==typeof P)throw new TypeError("encoding must be a string");if("string"===typeof P&& !e.isEncoding(P))throw new TypeError("Unknown encoding: "+P);}else"number"===typeof D&&(D&=255);if(0>H||this.length>>=0;G=void 0===G?this.length:G>>>0;D||(D=0);if("number"===typeof D)for(P=H;PF&&!R.warned&&(R.warned=!0,F=Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(z)+" listeners added. Use emitter.setMaxListeners() to increase limit"),F.name="MaxListenersExceededWarning",F.emitter=C,F.type=z,F.count=R.length,console&&console.warn&&console.warn(F)));return C}function t(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length? this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(C,z,F){C={fired:!1,wrapFn:void 0,target:C,type:z,listener:F};z=t.bind(C);z.listener=F;return C.wrapFn=z}function n(C,z,F){C=C._events;if(void 0===C)return[];z=C[z];if(void 0===z)return[];if("function"===typeof z)return F?[z.listener||z]:[z];if(F)for(F=Array(z.length),C=0;CC||r(C))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ C+".");B=C}});g.init=function(){if(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)this._events=Object.create(null),this._eventsCount=0;this._maxListeners=this._maxListeners||void 0};g.prototype.setMaxListeners=function(C){if("number"!==typeof C||0>C||r(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");this._maxListeners=C;return this};g.prototype.getMaxListeners=function(){return void 0===this._maxListeners?g.defaultMaxListeners: this._maxListeners};g.prototype.emit=function(C){for(var z=[],F=1;FR)return this;if(0===R)M.shift();else{for(;R+1>>0);for(var d=this.head,n=0;d;)d.data.copy(t,n),n+=d.data.length,d=d.next;return t};return e}();x&&x.inspect&&x.inspect.custom&& (S.exports.prototype[x.inspect.custom]=function(){var e=x.inspect({length:this.length});return this.constructor.name+" "+e})}; shadow$provide[46]=function(O,E,S,J){function g(e,t){e.emit("error",t)}var x=E(42);S.exports={destroy:function(e,t){var d=this,n=this._writableState&&this._writableState.destroyed;if(this._readableState&&this._readableState.destroyed||n)return t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,x.nextTick(g,this,e)):x.nextTick(g,this,e)),this;this._readableState&&(this._readableState.destroyed=!0);this._writableState&&(this._writableState.destroyed= !0);this._destroy(e||null,function(l){!t&&l?d._writableState?d._writableState.errorEmitted||(d._writableState.errorEmitted=!0,x.nextTick(g,d,l)):x.nextTick(g,d,l):t&&t(l)});return this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1);this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled= !1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}; shadow$provide[47]=function(O,E,S,J){function g(x){try{if(!O.localStorage)return!1}catch(e){return!1}x=O.localStorage[x];return null==x?!1:"true"===String(x).toLowerCase()}S.exports=function(x,e){if(g("noDeprecation"))return x;var t=!1;return function(){if(!t){if(g("throwDeprecation"))throw Error(e);g("traceDeprecation")?console.trace(e):console.warn(e);t=!0}return x.apply(this,arguments)}}}; shadow$provide[48]=function(O,E,S,J){function g(M){var R=this;this.entry=this.next=null;this.finish=function(){var L=R.entry;for(R.entry=null;L;){var V=L.callback;M.pendingcb--;V(void 0);L=L.next}M.corkedRequestsFree.next=R}}function x(){}function e(M,R){r=r||E(49);M=M||{};var L=R instanceof r;this.objectMode=!!M.objectMode;L&&(this.objectMode=this.objectMode||!!M.writableObjectMode);var V=M.highWaterMark,Q=M.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=V||0===V?V:L&&(Q||0=== Q)?Q:a;this.highWaterMark=Math.floor(this.highWaterMark);this.destroyed=this.finished=this.ended=this.ending=this.needDrain=this.finalCalled=!1;this.decodeStrings=!1!==M.decodeStrings;this.defaultEncoding=M.defaultEncoding||"utf8";this.length=0;this.writing=!1;this.corked=0;this.sync=!0;this.bufferProcessing=!1;this.onwrite=function(b){var c=R._writableState,f=c.sync,u=c.writecb;c.writing=!1;c.writecb=null;c.length-=c.writelen;c.writelen=0;b?(--c.pendingcb,f?(p.nextTick(u,b),p.nextTick(m,R,c),R._writableState.errorEmitted= !0,R.emit("error",b)):(u(b),R._writableState.errorEmitted=!0,R.emit("error",b),m(R,c))):((b=k(c))||c.corked||c.bufferProcessing||!c.bufferedRequest||l(R,c),f?v(n,R,c,b,u):n(R,c,b,u))};this.writecb=null;this.writelen=0;this.lastBufferedRequest=this.bufferedRequest=null;this.pendingcb=0;this.errorEmitted=this.prefinished=!1;this.bufferedRequestCount=0;this.corkedRequestsFree=new g(this)}function t(M){r=r||E(49);if(!(K.call(t,this)||this instanceof r))return new t(M);this._writableState=new e(M,this); this.writable=!0;M&&("function"===typeof M.write&&(this._write=M.write),"function"===typeof M.writev&&(this._writev=M.writev),"function"===typeof M.destroy&&(this._destroy=M.destroy),"function"===typeof M.final&&(this._final=M.final));C.call(this)}function d(M,R,L,V,Q,a,b){R.writelen=V;R.writecb=b;R.writing=!0;R.sync=!0;L?M._writev(Q,R.onwrite):M._write(Q,a,R.onwrite);R.sync=!1}function n(M,R,L,V){!L&&0===R.length&&R.needDrain&&(R.needDrain=!1,M.emit("drain"));R.pendingcb--;V();m(M,R)}function l(M, R){R.bufferProcessing=!0;var L=R.bufferedRequest;if(M._writev&&L&&L.next){var V=Array(R.bufferedRequestCount),Q=R.corkedRequestsFree;Q.entry=L;for(var a=0,b=!0;L;)V[a]=L,L.isBuf||(b=!1),L=L.next,a+=1;V.allBuffers=b;d(M,R,!0,R.length,V,"",Q.finish);R.pendingcb++;R.lastBufferedRequest=null;Q.next?(R.corkedRequestsFree=Q.next,Q.next=null):R.corkedRequestsFree=new g(R);R.bufferedRequestCount=0}else{for(;L&&(V=L.chunk,d(M,R,!1,R.objectMode?1:V.length,V,L.encoding,L.callback),L=L.next,R.bufferedRequestCount--, !R.writing););null===L&&(R.lastBufferedRequest=null)}R.bufferedRequest=L;R.bufferProcessing=!1}function k(M){return M.ending&&0===M.length&&null===M.bufferedRequest&&!M.finished&&!M.writing}function h(M,R){M._final(function(L){R.pendingcb--;L&&M.emit("error",L);R.prefinished=!0;M.emit("prefinish");m(M,R)})}function m(M,R){var L=k(R);L&&(R.prefinished||R.finalCalled||("function"===typeof M._final?(R.pendingcb++,R.finalCalled=!0,p.nextTick(h,M,R)):(R.prefinished=!0,M.emit("prefinish"))),0===R.pendingcb&& (R.finished=!0,M.emit("finish")));return L}J=E(28);"use strict";var p=E(42);S.exports=t;var v=!J.browser&&-1<["v0.10","v0.9."].indexOf(J.version.slice(0,5))?setImmediate:p.nextTick,r;t.WritableState=e;S=Object.create(E(33));S.inherits=E(40);var B={deprecate:E(47)},C=E(43),z=E(38).Buffer,F=("undefined"!==typeof O?O:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};O=E(46);S.inherits(t,C);e.prototype.getBuffer=function(){for(var M=this.bufferedRequest,R= [];M;)R.push(M),M=M.next;return R};(function(){try{Object.defineProperty(e.prototype,"buffer",{get:B.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(M){}})();if("function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]){var K=Function.prototype[Symbol.hasInstance];Object.defineProperty(t,Symbol.hasInstance,{value:function(M){return K.call(this,M)?!0:this!== t?!1:M&&M._writableState instanceof e}})}else K=function(M){return M instanceof this};t.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};t.prototype.write=function(M,R,L){var V=this._writableState,Q=!1,a;if(a=!V.objectMode)a=M,a=z.isBuffer(a)||a instanceof F;a&&!z.isBuffer(M)&&(M=z.from(M));"function"===typeof R&&(L=R,R=null);a?R="buffer":R||(R=V.defaultEncoding);"function"!==typeof L&&(L=x);if(V.ended)V=L,L=Error("write after end"),this.emit("error",L),p.nextTick(V, L);else{var b;if(!(b=a)){b=M;var c=L,f=!0,u=!1;null===b?u=new TypeError("May not write null values to stream"):"string"===typeof b||void 0===b||V.objectMode||(u=new TypeError("Invalid non-string/buffer chunk"));u&&(this.emit("error",u),p.nextTick(c,u),f=!1);b=f}b&&(V.pendingcb++,Q=a,Q||(a=M,V.objectMode||!1===V.decodeStrings||"string"!==typeof a||(a=z.from(a,R)),M!==a&&(Q=!0,R="buffer",M=a)),b=V.objectMode?1:M.length,V.length+=b,a=V.length=B?0:6===B>>5?2:14===B>>4?3:30===B>>3?4:2===B>>6?-1:-2}function t(B,C,z){var F=C.length-1;if(F=z)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=B[B.length-2],this.lastChar[1]=B[B.length-1],C.slice(0,-1)}return C}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=B[B.length-1];return B.toString("utf16le",C,B.length-1)}function l(B){B=B&&B.length?this.write(B):"";return this.lastNeed?B+this.lastChar.toString("utf16le",0,this.lastTotal- this.lastNeed):B}function k(B,C){var z=(B.length-C)%3;if(0===z)return B.toString("base64",C);this.lastNeed=3-z;this.lastTotal=3;1===z?this.lastChar[0]=B[B.length-1]:(this.lastChar[0]=B[B.length-2],this.lastChar[1]=B[B.length-1]);return B.toString("base64",C,B.length-z)}function h(B){B=B&&B.length?this.write(B):"";return this.lastNeed?B+this.lastChar.toString("base64",0,3-this.lastNeed):B}function m(B){return B.toString(this.encoding)}function p(B){return B&&B.length?this.write(B):""}var v=E(38).Buffer, r=v.isEncoding||function(B){B=""+B;switch(B&&B.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return!0;default:return!1}};J.StringDecoder=x;x.prototype.write=function(B){if(0===B.length)return"";if(this.lastNeed){var C=this.fillLast(B);if(void 0===C)return"";var z=this.lastNeed;this.lastNeed=0}else z=0;return z=y||0===w.length&&w.ended)return 0;if(w.objectMode)return 1;if(y!==y)return w.flowing&&w.length?w.buffer.head.data.length:w.length;if(y>w.highWaterMark){var A= y;8388608<=A?A=8388608:(A--,A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A++);w.highWaterMark=A}return y<=w.length?y:w.ended?w.length:(w.needReadable=!0,0)}function l(y){var w=y._readableState;w.needReadable=!1;w.emittedReadable||(b("emitReadable",w.flowing),w.emittedReadable=!0,w.sync?M.nextTick(k,y):k(y))}function k(y){b("emit readable");y.emit("readable");r(y)}function h(y,w){for(var A=w.length;!w.reading&&!w.flowing&&!w.ended&&w.length=w.length)A=w.decoder?w.buffer.join(""):1===w.buffer.length?w.buffer.head.data:w.buffer.concat(w.length),w.buffer.clear();else{A=w.buffer;w=w.decoder;if(yG.length?G.length:y;H=P===G.length?H+ G:H+G.slice(0,y);y-=P;if(0===y){P===G.length?(++D,A.head=w.next?w.next:A.tail=null):(A.head=w,w.data=G.slice(P));break}++D}A.length-=D;A=H}else{w=Q.allocUnsafe(y);D=A.head;H=1;D.data.copy(w);for(y-=D.data.length;D=D.next;){G=D.data;P=y>G.length?G.length:y;G.copy(w,w.length-y,0,P);y-=P;if(0===y){P===G.length?(++H,A.head=D.next?D.next:A.tail=null):(A.head=D,D.data=G.slice(P));break}++H}A.length-=H;A=w}w=A}A=w}return A}function C(y){var w=y._readableState;if(0=w.highWaterMark||w.ended))return b("read: emitReadable",w.length,w.ended),0===w.length&&w.ended?C(this):l(this),null;y=n(y,w);if(0===y&&w.ended)return 0===w.length&&C(this),null;var D=w.needReadable;b("need readable",D);if(0===w.length||w.length-y=this._blockSize;){for(var l=this._blockOffset;lt;++t)this._length[t]=0;return d};g.prototype._digest=function(){throw Error("_digest is not implemented");};S.exports=g}; shadow$provide[61]=function(O,E,S,J){function g(){l.call(this,64);this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878}function x(m,p){return m<>>32-p}function e(m,p,v,r,B,C,z){return x(m+(p&v|~p&r)+B+C|0,z)+p|0}function t(m,p,v,r,B,C,z){return x(m+(p&r|v&~r)+B+C|0,z)+p|0}function d(m,p,v,r,B,C,z){return x(m+(p^v^r)+B+C|0,z)+p|0}function n(m,p,v,r,B,C,z){return x(m+(v^(p|~r))+B+C|0,z)+p|0}O=E(40);var l=E(60),k=E(38).Buffer,h=Array(16);O(g,l);g.prototype._update=function(){for(var m= 0;16>m;++m)h[m]=this._block.readInt32LE(4*m);m=this._a;var p=this._b,v=this._c,r=this._d;m=e(m,p,v,r,h[0],3614090360,7);r=e(r,m,p,v,h[1],3905402710,12);v=e(v,r,m,p,h[2],606105819,17);p=e(p,v,r,m,h[3],3250441966,22);m=e(m,p,v,r,h[4],4118548399,7);r=e(r,m,p,v,h[5],1200080426,12);v=e(v,r,m,p,h[6],2821735955,17);p=e(p,v,r,m,h[7],4249261313,22);m=e(m,p,v,r,h[8],1770035416,7);r=e(r,m,p,v,h[9],2336552879,12);v=e(v,r,m,p,h[10],4294925233,17);p=e(p,v,r,m,h[11],2304563134,22);m=e(m,p,v,r,h[12],1804603682,7); r=e(r,m,p,v,h[13],4254626195,12);v=e(v,r,m,p,h[14],2792965006,17);p=e(p,v,r,m,h[15],1236535329,22);m=t(m,p,v,r,h[1],4129170786,5);r=t(r,m,p,v,h[6],3225465664,9);v=t(v,r,m,p,h[11],643717713,14);p=t(p,v,r,m,h[0],3921069994,20);m=t(m,p,v,r,h[5],3593408605,5);r=t(r,m,p,v,h[10],38016083,9);v=t(v,r,m,p,h[15],3634488961,14);p=t(p,v,r,m,h[4],3889429448,20);m=t(m,p,v,r,h[9],568446438,5);r=t(r,m,p,v,h[14],3275163606,9);v=t(v,r,m,p,h[3],4107603335,14);p=t(p,v,r,m,h[8],1163531501,20);m=t(m,p,v,r,h[13],2850285829, 5);r=t(r,m,p,v,h[2],4243563512,9);v=t(v,r,m,p,h[7],1735328473,14);p=t(p,v,r,m,h[12],2368359562,20);m=d(m,p,v,r,h[5],4294588738,4);r=d(r,m,p,v,h[8],2272392833,11);v=d(v,r,m,p,h[11],1839030562,16);p=d(p,v,r,m,h[14],4259657740,23);m=d(m,p,v,r,h[1],2763975236,4);r=d(r,m,p,v,h[4],1272893353,11);v=d(v,r,m,p,h[7],4139469664,16);p=d(p,v,r,m,h[10],3200236656,23);m=d(m,p,v,r,h[13],681279174,4);r=d(r,m,p,v,h[0],3936430074,11);v=d(v,r,m,p,h[3],3572445317,16);p=d(p,v,r,m,h[6],76029189,23);m=d(m,p,v,r,h[9],3654602809, 4);r=d(r,m,p,v,h[12],3873151461,11);v=d(v,r,m,p,h[15],530742520,16);p=d(p,v,r,m,h[2],3299628645,23);m=n(m,p,v,r,h[0],4096336452,6);r=n(r,m,p,v,h[7],1126891415,10);v=n(v,r,m,p,h[14],2878612391,15);p=n(p,v,r,m,h[5],4237533241,21);m=n(m,p,v,r,h[12],1700485571,6);r=n(r,m,p,v,h[3],2399980690,10);v=n(v,r,m,p,h[10],4293915773,15);p=n(p,v,r,m,h[1],2240044497,21);m=n(m,p,v,r,h[8],1873313359,6);r=n(r,m,p,v,h[15],4264355552,10);v=n(v,r,m,p,h[6],2734768916,15);p=n(p,v,r,m,h[13],1309151649,21);m=n(m,p,v,r,h[4], 4149444226,6);r=n(r,m,p,v,h[11],3174756917,10);v=n(v,r,m,p,h[2],718787259,15);p=n(p,v,r,m,h[9],3951481745,21);this._a=this._a+m|0;this._b=this._b+p|0;this._c=this._c+v|0;this._d=this._d+r|0};g.prototype._digest=function(){this._block[this._blockOffset++]=128;56>>32-r}var e=E(37).Buffer;O=E(40);var t=E(60),d=Array(16),n=[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],l=[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],k=[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],h=[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],m=[0,1518500249,1859775393,2400959708,2840853838],p=[1352829926,1548603684,1836072691,2053994217,0];O(g,t);g.prototype._update=function(){for(var v=0;16>v;++v)d[v]=this._block.readInt32LE(4*v);var r=this._a|0;v=this._b|0;for(var B=this._c|0,C=this._d|0,z=this._e|0,F=this._a|0,K=this._b|0,M=this._c|0,R=this._d|0,L=this._e|0,V=0;80>V;V+=1){if(16>V){var Q=z;Q=x(r+(v^B^C)+d[n[V]]+m[0]|0,k[V])+Q|0;r=L;var a=x(F+(K^(M|~R))+d[l[V]]+p[0]|0,h[V])+r|0}else 32>V?(Q=v, a=z,Q=x(r+(Q&B|~Q&C)+d[n[V]]+m[1]|0,k[V])+a|0,r=R,a=L,a=x(F+(K&r|M&~r)+d[l[V]]+p[1]|0,h[V])+a|0):48>V?(Q=z,Q=x(r+((v|~B)^C)+d[n[V]]+m[2]|0,k[V])+Q|0,r=L,a=x(F+((K|~M)^R)+d[l[V]]+p[2]|0,h[V])+r|0):64>V?(Q=C,a=z,Q=x(r+(v&Q|B&~Q)+d[n[V]]+m[3]|0,k[V])+a|0,r=K,a=L,a=x(F+(r&M|~r&R)+d[l[V]]+p[3]|0,h[V])+a|0):(Q=z,Q=x(r+(v^(B|~C))+d[n[V]]+m[4]|0,k[V])+Q|0,r=L,a=x(F+(K^M^R)+d[l[V]]+p[4]|0,h[V])+r|0);r=z;z=C;C=x(B,10);B=v;v=Q;F=L;L=R;R=x(M,10);M=K;K=a}B=this._b+B+R|0;this._b=this._c+C+L|0;this._c=this._d+z+ F|0;this._d=this._e+r+K|0;this._e=this._a+v+M|0;this._a=B};g.prototype._digest=function(){this._block[this._blockOffset++]=128;56=this._finalSize&&(this._update(this._block),this._block.fill(0));t=8*this._len;if(4294967295>=t)this._block.writeUInt32BE(t,this._blockSize-4);else{var d=(t&4294967295)>>>0;this._block.writeUInt32BE((t-d)/4294967296,this._blockSize-8);this._block.writeUInt32BE(d,this._blockSize-4)}this._update(this._block);t=this._hash();return e?t.toString(e):t};g.prototype._update=function(){throw Error("_update must be implemented by subclass");};S.exports=g}; shadow$provide[64]=function(O,E,S,J){function g(){this.init();this._w=d;x.call(this,64,56)}O=E(40);var x=E(63),e=E(38).Buffer,t=[1518500249,1859775393,-1894007588,-899497514],d=Array(80);O(g,x);g.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};g.prototype._update=function(n){for(var l=this._w,k=this._a|0,h=this._b|0,m=this._c|0,p=this._d|0,v=this._e|0,r=0;16>r;++r)l[r]=n.readInt32BE(4*r);for(;80>r;++r)l[r]=l[r-3]^ l[r-8]^l[r-14]^l[r-16];for(n=0;80>n;++n){r=~~(n/20);var B=k<<5|k>>>27;var C=0===r?h&m|~h&p:2===r?h&m|h&p|m&p:h^m^p;r=B+C+v+l[n]+t[r]|0;v=p;p=m;m=h<<30|h>>>2;h=k;k=r}this._a=k+this._a|0;this._b=h+this._b|0;this._c=m+this._c|0;this._d=p+this._d|0;this._e=v+this._e|0};g.prototype._hash=function(){var n=e.allocUnsafe(20);n.writeInt32BE(this._a|0,0);n.writeInt32BE(this._b|0,4);n.writeInt32BE(this._c|0,8);n.writeInt32BE(this._d|0,12);n.writeInt32BE(this._e|0,16);return n};S.exports=g}; shadow$provide[65]=function(O,E,S,J){function g(){this.init();this._w=d;x.call(this,64,56)}O=E(40);var x=E(63),e=E(38).Buffer,t=[1518500249,1859775393,-1894007588,-899497514],d=Array(80);O(g,x);g.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};g.prototype._update=function(n){for(var l=this._w,k=this._a|0,h=this._b|0,m=this._c|0,p=this._d|0,v=this._e|0,r=0;16>r;++r)l[r]=n.readInt32BE(4*r);for(;80>r;++r)n=l[r-3]^l[r- 8]^l[r-14]^l[r-16],l[r]=n<<1|n>>>31;for(r=0;80>r;++r){n=~~(r/20);var B=k<<5|k>>>27;var C=0===n?h&m|~h&p:2===n?h&m|h&p|m&p:h^m^p;n=B+C+v+l[r]+t[n]|0;v=p;p=m;m=h<<30|h>>>2;h=k;k=n}this._a=k+this._a|0;this._b=h+this._b|0;this._c=m+this._c|0;this._d=p+this._d|0;this._e=v+this._e|0};g.prototype._hash=function(){var n=e.allocUnsafe(20);n.writeInt32BE(this._a|0,0);n.writeInt32BE(this._b|0,4);n.writeInt32BE(this._c|0,8);n.writeInt32BE(this._d|0,12);n.writeInt32BE(this._e|0,16);return n};S.exports=g}; shadow$provide[66]=function(O,E,S,J){function g(){this.init();this._w=d;x.call(this,64,56)}O=E(40);var x=E(63),e=E(38).Buffer,t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372, 1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=Array(64);O(g,x);g.prototype.init=function(){this._a=1779033703;this._b=3144134277;this._c=1013904242;this._d=2773480762;this._e=1359893119;this._f=2600822924;this._g=528734635;this._h= 1541459225;return this};g.prototype._update=function(n){for(var l=this._w,k=this._a|0,h=this._b|0,m=this._c|0,p=this._d|0,v=this._e|0,r=this._f|0,B=this._g|0,C=this._h|0,z=0;16>z;++z)l[z]=n.readInt32BE(4*z);for(;64>z;++z){n=l[z-2];var F=l[z-15];l[z]=((n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10)+l[z-7]+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3)+l[z-16]|0}for(z=0;64>z;++z)n=C+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(B^v&(r^B))+t[z]+l[z]|0,F=((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+(k&h|m&(k|h))|0,C=B, B=r,r=v,v=p+n|0,p=m,m=h,h=k,k=n+F|0;this._a=k+this._a|0;this._b=h+this._b|0;this._c=m+this._c|0;this._d=p+this._d|0;this._e=v+this._e|0;this._f=r+this._f|0;this._g=B+this._g|0;this._h=C+this._h|0};g.prototype._hash=function(){var n=e.allocUnsafe(32);n.writeInt32BE(this._a,0);n.writeInt32BE(this._b,4);n.writeInt32BE(this._c,8);n.writeInt32BE(this._d,12);n.writeInt32BE(this._e,16);n.writeInt32BE(this._f,20);n.writeInt32BE(this._g,24);n.writeInt32BE(this._h,28);return n};S.exports=g}; shadow$provide[67]=function(O,E,S,J){function g(){this.init();this._w=t;x.call(this,64,56)}O=E(40);J=E(66);var x=E(63),e=E(38).Buffer,t=Array(64);O(g,J);g.prototype.init=function(){this._a=3238371032;this._b=914150663;this._c=812702999;this._d=4144912697;this._e=4290775857;this._f=1750603025;this._g=1694076839;this._h=3204075428;return this};g.prototype._hash=function(){var d=e.allocUnsafe(28);d.writeInt32BE(this._a,0);d.writeInt32BE(this._b,4);d.writeInt32BE(this._c,8);d.writeInt32BE(this._d,12); d.writeInt32BE(this._e,16);d.writeInt32BE(this._f,20);d.writeInt32BE(this._g,24);return d};S.exports=g}; shadow$provide[68]=function(O,E,S,J){function g(){this.init();this._w=n;e.call(this,128,112)}function x(l,k){return l>>>0>>0?1:0}O=E(40);var e=E(63),t=E(38).Buffer,d=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580, 3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142, 2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479, 2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],n=Array(160);O(g,e);g.prototype.init=function(){this._ah=1779033703;this._bh=3144134277;this._ch=1013904242;this._dh=2773480762; this._eh=1359893119;this._fh=2600822924;this._gh=528734635;this._hh=1541459225;this._al=4089235720;this._bl=2227873595;this._cl=4271175723;this._dl=1595750129;this._el=2917565137;this._fl=725511199;this._gl=4215389547;this._hl=327033209;return this};g.prototype._update=function(l){for(var k=this._w,h=this._ah|0,m=this._bh|0,p=this._ch|0,v=this._dh|0,r=this._eh|0,B=this._fh|0,C=this._gh|0,z=this._hh|0,F=this._al|0,K=this._bl|0,M=this._cl|0,R=this._dl|0,L=this._el|0,V=this._fl|0,Q=this._gl|0,a=this._hl| 0,b=0;32>b;b+=2)k[b]=l.readInt32BE(4*b),k[b+1]=l.readInt32BE(4*b+4);for(;160>b;b+=2){l=k[b-30];var c=k[b-30+1],f=(l>>>1|c<<31)^(l>>>8|c<<24)^l>>>7,u=(c>>>1|l<<31)^(c>>>8|l<<24)^(c>>>7|l<<25);l=k[b-4];c=k[b-4+1];var y=(l>>>19|c<<13)^(c>>>29|l<<3)^l>>>6;c=(c>>>19|l<<13)^(l>>>29|c<<3)^(c>>>6|l<<26);var w=k[b-32],A=k[b-32+1];l=u+k[b-14+1]|0;f=f+k[b-14]+x(l,u)|0;l=l+c|0;f=f+y+x(l,c)|0;l=l+A|0;f=f+w+x(l,A)|0;k[b]=f;k[b+1]=l}for(b=0;160>b;b+=2){f=k[b];l=k[b+1];c=h&m|p&(h|m);var D=F&K|M&(F|K);w=(h>>>28|F<< 4)^(F>>>2|h<<30)^(F>>>7|h<<25);A=(F>>>28|h<<4)^(h>>>2|F<<30)^(h>>>7|F<<25);var H=d[b],G=d[b+1],P=C^r&(B^C),U=Q^L&(V^Q);y=a+((L>>>14|r<<18)^(L>>>18|r<<14)^(r>>>9|L<<23))|0;u=z+((r>>>14|L<<18)^(r>>>18|L<<14)^(L>>>9|r<<23))+x(y,a)|0;y=y+U|0;u=u+P+x(y,U)|0;y=y+G|0;u=u+H+x(y,G)|0;y=y+l|0;u=u+f+x(y,l)|0;l=A+D|0;f=w+c+x(l,A)|0;z=C;a=Q;C=B;Q=V;B=r;V=L;L=R+y|0;r=v+u+x(L,R)|0;v=p;R=M;p=m;M=K;m=h;K=F;F=y+l|0;h=u+f+x(F,y)|0}this._al=this._al+F|0;this._bl=this._bl+K|0;this._cl=this._cl+M|0;this._dl=this._dl+R| 0;this._el=this._el+L|0;this._fl=this._fl+V|0;this._gl=this._gl+Q|0;this._hl=this._hl+a|0;this._ah=this._ah+h+x(this._al,F)|0;this._bh=this._bh+m+x(this._bl,K)|0;this._ch=this._ch+p+x(this._cl,M)|0;this._dh=this._dh+v+x(this._dl,R)|0;this._eh=this._eh+r+x(this._el,L)|0;this._fh=this._fh+B+x(this._fl,V)|0;this._gh=this._gh+C+x(this._gl,Q)|0;this._hh=this._hh+z+x(this._hl,a)|0};g.prototype._hash=function(){function l(h,m,p){k.writeInt32BE(h,p);k.writeInt32BE(m,p+4)}var k=t.allocUnsafe(64);l(this._ah, this._al,0);l(this._bh,this._bl,8);l(this._ch,this._cl,16);l(this._dh,this._dl,24);l(this._eh,this._el,32);l(this._fh,this._fl,40);l(this._gh,this._gl,48);l(this._hh,this._hl,56);return k};S.exports=g}; shadow$provide[69]=function(O,E,S,J){function g(){this.init();this._w=t;x.call(this,128,112)}O=E(40);J=E(68);var x=E(63),e=E(38).Buffer,t=Array(160);O(g,J);g.prototype.init=function(){this._ah=3418070365;this._bh=1654270250;this._ch=2438529370;this._dh=355462360;this._eh=1731405415;this._fh=2394180231;this._gh=3675008525;this._hh=1203062813;this._al=3238371032;this._bl=914150663;this._cl=812702999;this._dl=4144912697;this._el=4290775857;this._fl=1750603025;this._gl=1694076839;this._hl=3204075428; return this};g.prototype._hash=function(){function d(l,k,h){n.writeInt32BE(l,h);n.writeInt32BE(k,h+4)}var n=e.allocUnsafe(48);d(this._ah,this._al,0);d(this._bh,this._bl,8);d(this._ch,this._cl,16);d(this._dh,this._dl,24);d(this._eh,this._el,32);d(this._fh,this._fl,40);return n};S.exports=g}; shadow$provide[70]=function(O,E,S,J){J=S.exports=function(g){g=g.toLowerCase();var x=J[g];if(!x)throw Error(g+" is not supported (we accept pull requests)");return new x};J.sha=E(64);J.sha1=E(65);J.sha224=E(67);J.sha256=E(66);J.sha384=E(69);J.sha512=E(68)}; shadow$provide[71]=function(O,E,S,J){function g(d){e.call(this);(this.hashMode="string"===typeof d)?this[d]=this._finalOrDigest:this.final=this._finalOrDigest;this._final&&(this.__final=this._final,this._final=null);this._encoding=this._decoder=null}var x=E(38).Buffer,e=E(59).Transform,t=E(50).StringDecoder;E(40)(g,e);g.prototype.update=function(d,n,l){"string"===typeof d&&(d=x.from(d,n));d=this._update(d);if(this.hashMode)return this;l&&(d=this._toString(d,l));return d};g.prototype.setAutoPadding= function(){};g.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state");};g.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state");};g.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state");};g.prototype._transform=function(d,n,l){try{this.hashMode?this._update(d):this.push(this._update(d))}catch(h){var k=h}finally{l(k)}};g.prototype._flush=function(d){try{this.push(this.__final())}catch(l){var n=l}d(n)}; g.prototype._finalOrDigest=function(d){var n=this.__final()||x.alloc(0);d&&(n=this._toString(n,d,!0));return n};g.prototype._toString=function(d,n,l){this._decoder||(this._decoder=new t(n),this._encoding=n);if(this._encoding!==n)throw Error("can't switch encodings");d=this._decoder.write(d);l&&(d+=this._decoder.end());return d};S.exports=g}; shadow$provide[72]=function(O,E,S,J){function g(n){d.call(this,"digest");this._hash=n}O=E(40);var x=E(61),e=E(62),t=E(70),d=E(71);O(g,d);g.prototype._update=function(n){this._hash.update(n)};g.prototype._final=function(){return this._hash.digest()};S.exports=function(n){n=n.toLowerCase();return"md5"===n?new x:"rmd160"===n||"ripemd160"===n?new e:new g(t(n))}}; shadow$provide[73]=function(O,E,S,J){function g(d,n){e.call(this,"digest");"string"===typeof n&&(n=x.from(n));this._alg=d;this._key=n;64n.length&&(n=x.concat([n,t],64));d=this._ipad=x.allocUnsafe(64);for(var l=this._opad=x.allocUnsafe(64),k=0;64>k;k++)d[k]=n[k]^54,l[k]=n[k]^92;this._hash=[d]}O=E(40);var x=E(38).Buffer,e=E(71),t=x.alloc(128);O(g,e);g.prototype._update=function(d){this._hash.push(d)};g.prototype._final=function(){var d=this._alg(x.concat(this._hash));return this._alg(x.concat([this._opad, d]))};S.exports=g}; shadow$provide[74]=function(O,E,S,J){var g=E(61);S.exports=function(x){return(new g).update(x).digest()}}; shadow$provide[75]=function(O,E,S,J){function g(h,m){e.call(this,"digest");"string"===typeof m&&(m=t.from(m));var p="sha512"===h||"sha384"===h?128:64;this._alg=h;this._key=m;m.length>p?m=("rmd160"===h?new n:l(h)).update(m).digest():m.lengthx)throw new TypeError("Bad iterations");if("number"!==typeof e)throw new TypeError("Key length not a number");if(0>e||e>g||e!==e)throw new TypeError("Bad key length");}}; shadow$provide[79]=function(O,E,S,J){E=E(28);O=O.process&&O.process.browser?"utf-8":O.process&&O.process.version?6<=parseInt(E.version.split(".")[0].slice(1),10)?"utf-8":"binary":"utf-8";S.exports=O}; shadow$provide[80]=function(O,E,S,J){var g=E(38).Buffer;S.exports=function(x,e,t){if(g.isBuffer(x))return x;if("string"===typeof x)return g.from(x,e);if(ArrayBuffer.isView(x))return g.from(x.buffer);throw new TypeError(t+" must be a string, a Buffer, a typed array or a DataView");}}; shadow$provide[81]=function(O,E,S,J){function g(v,r,B){var C=x(v),z="sha512"===v||"sha384"===v?128:64;r.length>z?r=C(r):r.length>>0};J.writeUInt32BE=function(t,d,n){t[0+n]=d>>>24;t[1+n]=d>>>16&255;t[2+n]=d>>>8&255;t[3+n]=d&255};J.ip=function(t,d,n,l){for(var k=0,h=0,m=6;0<=m;m-=2){for(var p=0;24>=p;p+=8)k<<=1,k|=d>>>p+m&1;for(p=0;24>=p;p+=8)k<<=1,k|=t>>>p+m&1}for(m=6;0<=m;m-=2){for(p=1;25>=p;p+=8)h<<=1,h|=d>>>p+m&1;for(p=1;25>=p;p+=8)h<<=1,h|=t>>>p+m&1}n[l+0]=k>>>0;n[l+1]=h>>>0};J.rip=function(t,d,n,l){for(var k= 0,h=0,m=0;4>m;m++)for(var p=24;0<=p;p-=8)k<<=1,k|=d>>>p+m&1,k<<=1,k|=t>>>p+m&1;for(m=4;8>m;m++)for(p=24;0<=p;p-=8)h<<=1,h|=d>>>p+m&1,h<<=1,h|=t>>>p+m&1;n[l+0]=k>>>0;n[l+1]=h>>>0};J.pc1=function(t,d,n,l){for(var k=0,h=0,m=7;5<=m;m--){for(var p=0;24>=p;p+=8)k<<=1,k|=d>>p+m&1;for(p=0;24>=p;p+=8)k<<=1,k|=t>>p+m&1}for(p=0;24>=p;p+=8)k<<=1,k|=d>>p+m&1;for(m=1;3>=m;m++){for(p=0;24>=p;p+=8)h<<=1,h|=d>>p+m&1;for(p=0;24>=p;p+=8)h<<=1,h|=t>>p+m&1}for(p=0;24>=p;p+=8)h<<=1,h|=t>>p+m&1;n[l+0]=k>>>0;n[l+1]=h>>> 0};J.r28shl=function(t,d){return t<>>28-d};var g=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];J.pc2=function(t,d,n,l){for(var k=0,h=0,m=g.length>>>1,p=0;p>>g[p]&1;for(p=m;p>>g[p]&1;n[l+0]=k>>>0;n[l+1]=h>>>0};J.expand=function(t,d,n){var l=0;var k=(t&1)<<5|t>>>27;for(var h=23;15<=h;h-=4)k<<=6,k|=t>>>h&63;for(h=11;3<=h;h-=4)l|=t>>>h&63,l<<=6;d[n+0]=k>>>0;d[n+ 1]=(l|(t&31)<<1|t>>>31)>>>0};var x=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8, 14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7, 12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];J.substitute=function(t,d){for(var n=0,l=0;4>l;l++){var k=t>>>18-6*l&63;k=x[64*l+k];n<<=4;n|=k}for(l=0;4>l;l++)k=d>>>18-6*l&63,k=x[256+64*l+k],n<<=4,n|=k;return n>>>0};var e=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10, 21,28,7];J.permute=function(t){for(var d=0,n=0;n>>e[n]&1;return d>>>0};J.padSplit=function(t,d,n){for(t=t.toString(2);t.length>>1];h=t.r28shl(h,p);k=t.r28shl(k,p);t.pc2(h,k,l.keys,m)}};x.prototype._update=function(l,k,h,m){var p=this._desState,v=t.readUInt32BE(l,k);l=t.readUInt32BE(l,k+4);t.ip(v,l,p.tmp,0);v=p.tmp[0];l=p.tmp[1];"encrypt"===this.type?this._encrypt(p,v,l,p.tmp,0):this._decrypt(p,v,l,p.tmp,0);v=p.tmp[0];l=p.tmp[1];t.writeUInt32BE(h,v,m);t.writeUInt32BE(h,l,m+4)};x.prototype._pad=function(l,k){if(!1===this.padding)return!1;for(var h=l.length-k;k>>0;k=B}t.rip(h,k,m,p)};x.prototype._decrypt=function(l,k,h,m,p){for(var v=l.keys.length-2;0<=v;v-=2){var r=l.keys[v],B=l.keys[v+1];t.expand(h,l.tmp, 0);r^=l.tmp[0];B^=l.tmp[1];r=t.substitute(r,B);r=t.permute(r);B=h;h=(k^r)>>>0;k=B}t.rip(h,k,m,p)}}; shadow$provide[88]=function(O,E,S,J){function g(d){x.equal(d.length,8,"Invalid IV length");this.iv=Array(8);for(var n=0;n++C;){p=v._cipher.encryptBlock(v._prev);m=r&1<<7-C?128:0;h=p[0]^m;z+=(h&128)>>C%8;p=v;var F=v._prev;m=B?m:h;h=F.length;var K=-1,M=g.allocUnsafe(F.length);for(F=g.concat([F,g.from([m])]);++K>7;p._prev=M}n[k]=z}return n}}; shadow$provide[98]=function(O,E,S,J){var g=E(37).Buffer,x=E(93);J.encrypt=function(e,t){for(;e._cache.length>>24]^B[F>>>16&255]^C[K>>>8&255]^m[M&255]^h[V++],R=r[F>>>24]^B[K>>>16&255]^C[M>>>8&255]^m[z&255]^h[V++],L=r[K>>>24]^B[M>>>16&255]^C[z>>>8&255]^m[F&255]^h[V++],M=r[M>>> 24]^B[z>>>16&255]^C[F>>>8&255]^m[K&255]^h[V++],z=k,F=R,K=L;k=(p[z>>>24]<<24|p[F>>>16&255]<<16|p[K>>>8&255]<<8|p[M&255])^h[V++];R=(p[F>>>24]<<24|p[K>>>16&255]<<16|p[M>>>8&255]<<8|p[z&255])^h[V++];L=(p[K>>>24]<<24|p[M>>>16&255]<<16|p[z>>>8&255]<<8|p[F&255])^h[V++];M=(p[M>>>24]<<24|p[z>>>16&255]<<16|p[F>>>8&255]<<8|p[K&255])^h[V++];return[k>>>0,R>>>0,L>>>0,M>>>0]}function t(k){this._key=g(k);this._reset()}var d=E(38).Buffer,n=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var k=Array(256),h=0;256>h;h++)k[h]= 128>h?h<<1:h<<1^283;h=[];for(var m=[],p=[[],[],[],[]],v=[[],[],[],[]],r=0,B=0,C=0;256>C;++C){var z=B^B<<1^B<<2^B<<3^B<<4;z=z>>>8^z&255^99;h[r]=z;m[z]=r;var F=k[r],K=k[F],M=k[K],R=257*k[z]^16843008*z;p[0][r]=R<<24|R>>>8;p[1][r]=R<<16|R>>>16;p[2][r]=R<<8|R>>>24;p[3][r]=R;R=16843009*M^65537*K^257*F^16843008*r;v[0][z]=R<<24|R>>>8;v[1][z]=R<<16|R>>>16;v[2][z]=R<<8|R>>>24;v[3][z]=R;0===r?r=B=1:(r=F^k[k[k[M^F]]],B^=k[k[B]])}return{SBOX:h,INV_SBOX:m,SUB_MIX:p,INV_SUB_MIX:v}}();t.blockSize=16;t.keySize=32; t.prototype.blockSize=t.blockSize;t.prototype.keySize=t.keySize;t.prototype._reset=function(){for(var k=this._key,h=k.length,m=h+6,p=4*(m+1),v=[],r=0;r>>24,k=l.SBOX[k>>>24]<<24|l.SBOX[k>>>16&255]<<16|l.SBOX[k>>>8&255]<<8|l.SBOX[k&255],k^=n[r/h|0]<<24):6>>24]<<24|l.SBOX[k>>>16&255]<<16|l.SBOX[k>>>8&255]<<8|l.SBOX[k&255]),v[r]=v[r-h]^k;h=[];for(r=0;rr||4>=k?B:l.INV_SUB_MIX[0][l.SBOX[B>>> 24]]^l.INV_SUB_MIX[1][l.SBOX[B>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[B>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[B&255]]}this._nRounds=m;this._keySchedule=v;this._invKeySchedule=h};t.prototype.encryptBlockRaw=function(k){k=g(k);return e(k,this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)};t.prototype.encryptBlock=function(k){k=this.encryptBlockRaw(k);var h=d.allocUnsafe(16);h.writeUInt32BE(k[0],0);h.writeUInt32BE(k[1],4);h.writeUInt32BE(k[2],8);h.writeUInt32BE(k[3],12);return h};t.prototype.decryptBlock=function(k){k= g(k);var h=k[1];k[1]=k[3];k[3]=h;k=e(k,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds);h=d.allocUnsafe(16);h.writeUInt32BE(k[0],0);h.writeUInt32BE(k[3],4);h.writeUInt32BE(k[2],8);h.writeUInt32BE(k[1],12);return h};t.prototype.scrub=function(){x(this._keySchedule);x(this._invKeySchedule);x(this._key)};S.exports.AES=t}; shadow$provide[104]=function(O,E,S,J){function g(d){var n=e.allocUnsafe(16);n.writeUInt32BE(d[0]>>>0,0);n.writeUInt32BE(d[1]>>>0,4);n.writeUInt32BE(d[2]>>>0,8);n.writeUInt32BE(d[3]>>>0,12);return n}function x(d){this.h=d;this.state=e.alloc(16,0);this.cache=e.allocUnsafe(0)}var e=E(38).Buffer,t=e.alloc(16,0);x.prototype.ghash=function(d){for(var n=-1;++n++h;){if(l=0!==(this.state[~~(h/8)]&1<<7-h%8))n[0]^=d[0],n[1]^=d[1],n[2]^=d[2],n[3]^=d[3];k=0!==(d[3]&1);for(l=3;0>>1|(d[l-1]&1)<<31;d[0]>>>=1;k&&(d[0]^=-520093696)}this.state=g(n)};x.prototype.update=function(d){for(this.cache=e.concat([this.cache,d]);16<=this.cache.length;)d=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(d)};x.prototype.final=function(d,n){this.cache.length&&this.ghash(e.concat([this.cache, t],16));this.ghash(g([0,d,0,n]));return this.state};S.exports=x}; shadow$provide[105]=function(O,E,S,J){function g(k,h,m,p){t.call(this);var v=e.alloc(4,0);this._cipher=new x.AES(h);v=this._cipher.encryptBlock(v);this._ghash=new d(v);h=m;if(12===h.length)this._finID=e.concat([h,e.from([0,0,0,1])]),m=e.concat([h,e.from([0,0,0,2])]);else{m=new d(v);v=h.length;var r=v%16;m.update(h);r&&m.update(e.alloc(16-r,0));m.update(e.alloc(8,0));h=8*v;v=e.alloc(8);v.writeUIntBE(h,0,8);m.update(v);this._finID=m.state;m=e.from(this._finID);l(m)}this._prev=e.from(m);this._cache= e.allocUnsafe(0);this._secCache=e.allocUnsafe(0);this._decrypt=p;this._len=this._alen=0;this._mode=k;this._authTag=null;this._called=!1}var x=E(103),e=E(38).Buffer,t=E(71);O=E(40);var d=E(104),n=E(93),l=E(99);O(g,t);g.prototype._update=function(k){if(!this._called&&this._alen){var h=16-this._alen%16;16>h&&(h=e.alloc(h,0),this._ghash.update(h))}this._called=!0;h=this._mode.encrypt(this,k);this._decrypt?this._ghash.update(k):this._ghash.update(h);this._len+=k.length;return h};g.prototype._final=function(){if(this._decrypt&& !this._authTag)throw Error("Unsupported state or unable to authenticate data");var k=n(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID)),h;if(h=this._decrypt){h=this._authTag;var m=0;k.length!==h.length&&m++;for(var p=Math.min(k.length,h.length),v=0;vv||16=a?a-55:97<=a&&102>=a?a-87:a-48&15}function l(a,b, c){var f=n(a,c);c-1>=b&&(f|=n(a,c-1)<<4);return f}function k(a,b,c,f){var u=0;for(c=Math.min(a.length,c);b>>26,H=w&67108863;w=Math.min(A,b.length-1);for(var G=Math.max(0,A-a.length+1);G<=w;G++)u=a.words[A-G| 0]|0,y=b.words[G]|0,u=u*y+H,D+=u/67108864|0,H=u&67108863;c.words[A]=H|0;w=D|0}0!==w?c.words[A]=w|0:c.length--;return c.strip()}function m(a,b){this.x=a;this.y=b}function p(a,b){this.name=a;this.p=new d(b,16);this.n=this.p.bitLength();this.k=(new d(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function v(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function r(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")} function B(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function z(a){"string"===typeof a?(a=d._prime(a),this.m=a.p,this.prime=a):(e(a.gtn(1),"modulus must be greater than 1"),this.m=a,this.prime=null)}function F(a){z.call(this,a);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new d(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr()); this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof g?g.exports=d:x.BN=d;d.BN=d;d.wordSize=26;try{var K="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:E(44).Buffer}catch(a){}d.isBN=function(a){return a instanceof d?!0:null!==a&&"object"===typeof a&&a.constructor.wordSize===d.wordSize&&Array.isArray(a.words)};d.max=function(a,b){return 0a.cmp(b)?a:b};d.prototype._init=function(a,b,c){if("number"===typeof a)return this._initNumber(a,b,c);if("object"===typeof a)return this._initArray(a,b,c);"hex"===b&&(b=16);e(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");var f=0;"-"===a[0]&&(f++,this.negative=1);fa&&(this.negative=1,a=-a);67108864>a?(this.words= [a&67108863],this.length=1):4503599627370496>a?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(e(9007199254740992>a),this.words=[a&67108863,a/67108864&67108863,1],this.length=3);"le"===c&&this._initArray(this.toArray(),b,c)};d.prototype._initArray=function(a,b,c){e("number"===typeof a.length);if(0>=a.length)return this.words=[0],this.length=1,this;this.length=Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-f&67108863;f+=24;26<=f&&(f-=26,c++)}else if("le"===c)for(c=b=0;b>>26-f&67108863,f+=24,26<=f&&(f-=26,c++);return this.strip()};d.prototype._parseHex=function(a,b,c){this.length=Math.ceil((a.length-b)/6);this.words=Array(this.length);for(var f=0;f=b;f-=2)c=l(a,b,f)<>>26):u+=8;else for(f=0===(a.length-b)%2?b+1:b;f>>26):u+=8;this.strip()};d.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var f=0,u=1;67108863>=u;u*=b)f++;f--;u=u/b|0;var y=a.length-c,w=y%f;y=Math.min(y,y-w)+c;for(var A=c;Athis.words[0]+c?this.words[0]+=c: this._iaddn(c);if(0!==w){f=1;c=k(a,A,a.length,b);for(A=0;Athis.words[0]+c?this.words[0]+=c:this._iaddn(c)}this.strip()};d.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215;c=0!==f||u!==this.length-1?M[6-w.length]+w+c:w+c;a+=2;26<=a&&(a-=26,u--)}for(0!==f&&(c=f.toString(16)+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}if(a===(a|0)&&2<=a&&36>=a){f=R[a];u=L[a];c="";y=this.clone();for(y.negative=0;!y.isZero();)w=y.modn(u).toString(a),y=y.idivn(u),c=y.isZero()?w+c:M[f-w.length]+w+c;for(this.isZero()&&(c="0"+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}e(!1,"Base should be between 2 and 36")}; d.prototype.toNumber=function(){var a=this.words[0];2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:2>>= 13);64<=a&&(b+=7,a>>>=7);8<=a&&(b+=4,a>>>=4);2<=a&&(b+=2,a>>>=2);return b+a};d.prototype._zeroBits=function(a){if(0===a)return 26;var b=0;0===(a&8191)&&(b+=13,a>>>=13);0===(a&127)&&(b+=7,a>>>=7);0===(a&15)&&(b+=4,a>>>=4);0===(a&3)&&(b+=2,a>>>=2);0===(a&1)&&b++;return b};d.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,b=0;ba.length?this.clone().ior(a):a.clone().ior(this)};d.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)};d.prototype.iuand=function(a){var b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};d.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)};d.prototype.iuxor=function(a){if(this.length>a.length)var b=this;else b=a,a=this;for(var c=0;ca.length?this.clone().ixor(a):a.clone().ixor(this)};d.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)};d.prototype.inotn=function(a){e("number"===typeof a&&0<=a);var b=Math.ceil(a/26)|0;a%=26;this._expand(b);0>26-a);return this.strip()};d.prototype.notn=function(a){return this.clone().inotn(a)};d.prototype.setn=function(a,b){e("number"===typeof a&&0<=a);var c=a/26|0;a%=26;this._expand(c+1);this.words[c]=b?this.words[c]|1<a.length)var c=this;else c=a,a=this;for(var f=b=0;f>>=26;for(;0!==b&&f>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;fa.length?this.clone().iadd(a):a.clone().iadd(this)};d.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var b=this.iadd(a);a.negative=1;return b._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();b=this.cmp(a);if(0===b)return this.negative=0,this.length=1,this.words[0]=0,this;if(0>26,this.words[u]=b&67108863;for(;0!==f&&u>26,this.words[u]=b&67108863;if(0===f&&u>>13,G=f[1]| 0;A=G&8191;var P=G>>>13,U=f[2]|0;G=U&8191;var ca=U>>>13,ha=f[3]|0;U=ha&8191;var da=ha>>>13,ja=f[4]|0;ha=ja&8191;var Z=ja>>>13,ba=f[5]|0;ja=ba&8191;var X=ba>>>13,oa=f[6]|0;ba=oa&8191;var sa=oa>>>13,ka=f[7]|0;oa=ka&8191;var va=ka>>>13,ua=f[8]|0;ka=ua&8191;ua>>>=13;var wa=f[9]|0;f=wa&8191;wa>>>=13;var ta=u[0]|0,ya=ta&8191,Aa=ta>>>13,Ba=u[1]|0;ta=Ba&8191;var Da=Ba>>>13,za=u[2]|0;Ba=za&8191;var ra=za>>>13,pa=u[3]|0;za=pa&8191;var Y=pa>>>13,ia=u[4]|0;pa=ia&8191;var la=ia>>>13,qa=u[5]|0;ia=qa&8191;var W= qa>>>13,T=u[6]|0;qa=T&8191;var N=T>>>13,aa=u[7]|0;T=aa&8191;var ea=aa>>>13,fa=u[8]|0;aa=fa&8191;fa>>>=13;var na=u[9]|0;u=na&8191;na>>>=13;c.negative=a.negative^b.negative;c.length=19;var I=Math.imul(D,ya);a=Math.imul(D,Aa);a=a+Math.imul(H,ya)|0;b=Math.imul(H,Aa);var xa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(xa>>>26)|0;xa&=67108863;I=Math.imul(A,ya);a=Math.imul(A,Aa);a=a+Math.imul(P,ya)|0;b=Math.imul(P,Aa);I=I+Math.imul(D,ta)|0;a=a+Math.imul(D,Da)|0;a=a+Math.imul(H,ta)|0;b=b+Math.imul(H,Da)|0; var ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ma>>>26)|0;ma&=67108863;I=Math.imul(G,ya);a=Math.imul(G,Aa);a=a+Math.imul(ca,ya)|0;b=Math.imul(ca,Aa);I=I+Math.imul(A,ta)|0;a=a+Math.imul(A,Da)|0;a=a+Math.imul(P,ta)|0;b=b+Math.imul(P,Da)|0;I=I+Math.imul(D,Ba)|0;a=a+Math.imul(D,ra)|0;a=a+Math.imul(H,Ba)|0;b=b+Math.imul(H,ra)|0;var Fa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Fa>>>26)|0;Fa&=67108863;I=Math.imul(U,ya);a=Math.imul(U,Aa);a=a+Math.imul(da,ya)|0;b=Math.imul(da,Aa);I=I+Math.imul(G,ta)|0; a=a+Math.imul(G,Da)|0;a=a+Math.imul(ca,ta)|0;b=b+Math.imul(ca,Da)|0;I=I+Math.imul(A,Ba)|0;a=a+Math.imul(A,ra)|0;a=a+Math.imul(P,Ba)|0;b=b+Math.imul(P,ra)|0;I=I+Math.imul(D,za)|0;a=a+Math.imul(D,Y)|0;a=a+Math.imul(H,za)|0;b=b+Math.imul(H,Y)|0;var Ga=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ga>>>26)|0;Ga&=67108863;I=Math.imul(ha,ya);a=Math.imul(ha,Aa);a=a+Math.imul(Z,ya)|0;b=Math.imul(Z,Aa);I=I+Math.imul(U,ta)|0;a=a+Math.imul(U,Da)|0;a=a+Math.imul(da,ta)|0;b=b+Math.imul(da,Da)|0;I=I+Math.imul(G,Ba)| 0;a=a+Math.imul(G,ra)|0;a=a+Math.imul(ca,Ba)|0;b=b+Math.imul(ca,ra)|0;I=I+Math.imul(A,za)|0;a=a+Math.imul(A,Y)|0;a=a+Math.imul(P,za)|0;b=b+Math.imul(P,Y)|0;I=I+Math.imul(D,pa)|0;a=a+Math.imul(D,la)|0;a=a+Math.imul(H,pa)|0;b=b+Math.imul(H,la)|0;var Ia=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ia>>>26)|0;Ia&=67108863;I=Math.imul(ja,ya);a=Math.imul(ja,Aa);a=a+Math.imul(X,ya)|0;b=Math.imul(X,Aa);I=I+Math.imul(ha,ta)|0;a=a+Math.imul(ha,Da)|0;a=a+Math.imul(Z,ta)|0;b=b+Math.imul(Z,Da)|0;I=I+Math.imul(U, Ba)|0;a=a+Math.imul(U,ra)|0;a=a+Math.imul(da,Ba)|0;b=b+Math.imul(da,ra)|0;I=I+Math.imul(G,za)|0;a=a+Math.imul(G,Y)|0;a=a+Math.imul(ca,za)|0;b=b+Math.imul(ca,Y)|0;I=I+Math.imul(A,pa)|0;a=a+Math.imul(A,la)|0;a=a+Math.imul(P,pa)|0;b=b+Math.imul(P,la)|0;I=I+Math.imul(D,ia)|0;a=a+Math.imul(D,W)|0;a=a+Math.imul(H,ia)|0;b=b+Math.imul(H,W)|0;var Ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ha>>>26)|0;Ha&=67108863;I=Math.imul(ba,ya);a=Math.imul(ba,Aa);a=a+Math.imul(sa,ya)|0;b=Math.imul(sa,Aa);I=I+Math.imul(ja, ta)|0;a=a+Math.imul(ja,Da)|0;a=a+Math.imul(X,ta)|0;b=b+Math.imul(X,Da)|0;I=I+Math.imul(ha,Ba)|0;a=a+Math.imul(ha,ra)|0;a=a+Math.imul(Z,Ba)|0;b=b+Math.imul(Z,ra)|0;I=I+Math.imul(U,za)|0;a=a+Math.imul(U,Y)|0;a=a+Math.imul(da,za)|0;b=b+Math.imul(da,Y)|0;I=I+Math.imul(G,pa)|0;a=a+Math.imul(G,la)|0;a=a+Math.imul(ca,pa)|0;b=b+Math.imul(ca,la)|0;I=I+Math.imul(A,ia)|0;a=a+Math.imul(A,W)|0;a=a+Math.imul(P,ia)|0;b=b+Math.imul(P,W)|0;I=I+Math.imul(D,qa)|0;a=a+Math.imul(D,N)|0;a=a+Math.imul(H,qa)|0;b=b+Math.imul(H, N)|0;var Ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ma>>>26)|0;Ma&=67108863;I=Math.imul(oa,ya);a=Math.imul(oa,Aa);a=a+Math.imul(va,ya)|0;b=Math.imul(va,Aa);I=I+Math.imul(ba,ta)|0;a=a+Math.imul(ba,Da)|0;a=a+Math.imul(sa,ta)|0;b=b+Math.imul(sa,Da)|0;I=I+Math.imul(ja,Ba)|0;a=a+Math.imul(ja,ra)|0;a=a+Math.imul(X,Ba)|0;b=b+Math.imul(X,ra)|0;I=I+Math.imul(ha,za)|0;a=a+Math.imul(ha,Y)|0;a=a+Math.imul(Z,za)|0;b=b+Math.imul(Z,Y)|0;I=I+Math.imul(U,pa)|0;a=a+Math.imul(U,la)|0;a=a+Math.imul(da,pa)|0;b=b+Math.imul(da, la)|0;I=I+Math.imul(G,ia)|0;a=a+Math.imul(G,W)|0;a=a+Math.imul(ca,ia)|0;b=b+Math.imul(ca,W)|0;I=I+Math.imul(A,qa)|0;a=a+Math.imul(A,N)|0;a=a+Math.imul(P,qa)|0;b=b+Math.imul(P,N)|0;I=I+Math.imul(D,T)|0;a=a+Math.imul(D,ea)|0;a=a+Math.imul(H,T)|0;b=b+Math.imul(H,ea)|0;var La=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(La>>>26)|0;La&=67108863;I=Math.imul(ka,ya);a=Math.imul(ka,Aa);a=a+Math.imul(ua,ya)|0;b=Math.imul(ua,Aa);I=I+Math.imul(oa,ta)|0;a=a+Math.imul(oa,Da)|0;a=a+Math.imul(va,ta)|0;b=b+Math.imul(va, Da)|0;I=I+Math.imul(ba,Ba)|0;a=a+Math.imul(ba,ra)|0;a=a+Math.imul(sa,Ba)|0;b=b+Math.imul(sa,ra)|0;I=I+Math.imul(ja,za)|0;a=a+Math.imul(ja,Y)|0;a=a+Math.imul(X,za)|0;b=b+Math.imul(X,Y)|0;I=I+Math.imul(ha,pa)|0;a=a+Math.imul(ha,la)|0;a=a+Math.imul(Z,pa)|0;b=b+Math.imul(Z,la)|0;I=I+Math.imul(U,ia)|0;a=a+Math.imul(U,W)|0;a=a+Math.imul(da,ia)|0;b=b+Math.imul(da,W)|0;I=I+Math.imul(G,qa)|0;a=a+Math.imul(G,N)|0;a=a+Math.imul(ca,qa)|0;b=b+Math.imul(ca,N)|0;I=I+Math.imul(A,T)|0;a=a+Math.imul(A,ea)|0;a=a+Math.imul(P, T)|0;b=b+Math.imul(P,ea)|0;I=I+Math.imul(D,aa)|0;a=a+Math.imul(D,fa)|0;a=a+Math.imul(H,aa)|0;b=b+Math.imul(H,fa)|0;var Na=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Na>>>26)|0;Na&=67108863;I=Math.imul(f,ya);a=Math.imul(f,Aa);a=a+Math.imul(wa,ya)|0;b=Math.imul(wa,Aa);I=I+Math.imul(ka,ta)|0;a=a+Math.imul(ka,Da)|0;a=a+Math.imul(ua,ta)|0;b=b+Math.imul(ua,Da)|0;I=I+Math.imul(oa,Ba)|0;a=a+Math.imul(oa,ra)|0;a=a+Math.imul(va,Ba)|0;b=b+Math.imul(va,ra)|0;I=I+Math.imul(ba,za)|0;a=a+Math.imul(ba,Y)|0;a=a+Math.imul(sa, za)|0;b=b+Math.imul(sa,Y)|0;I=I+Math.imul(ja,pa)|0;a=a+Math.imul(ja,la)|0;a=a+Math.imul(X,pa)|0;b=b+Math.imul(X,la)|0;I=I+Math.imul(ha,ia)|0;a=a+Math.imul(ha,W)|0;a=a+Math.imul(Z,ia)|0;b=b+Math.imul(Z,W)|0;I=I+Math.imul(U,qa)|0;a=a+Math.imul(U,N)|0;a=a+Math.imul(da,qa)|0;b=b+Math.imul(da,N)|0;I=I+Math.imul(G,T)|0;a=a+Math.imul(G,ea)|0;a=a+Math.imul(ca,T)|0;b=b+Math.imul(ca,ea)|0;I=I+Math.imul(A,aa)|0;a=a+Math.imul(A,fa)|0;a=a+Math.imul(P,aa)|0;b=b+Math.imul(P,fa)|0;I=I+Math.imul(D,u)|0;a=a+Math.imul(D, na)|0;a=a+Math.imul(H,u)|0;b=b+Math.imul(H,na)|0;D=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(D>>>26)|0;D&=67108863;I=Math.imul(f,ta);a=Math.imul(f,Da);a=a+Math.imul(wa,ta)|0;b=Math.imul(wa,Da);I=I+Math.imul(ka,Ba)|0;a=a+Math.imul(ka,ra)|0;a=a+Math.imul(ua,Ba)|0;b=b+Math.imul(ua,ra)|0;I=I+Math.imul(oa,za)|0;a=a+Math.imul(oa,Y)|0;a=a+Math.imul(va,za)|0;b=b+Math.imul(va,Y)|0;I=I+Math.imul(ba,pa)|0;a=a+Math.imul(ba,la)|0;a=a+Math.imul(sa,pa)|0;b=b+Math.imul(sa,la)|0;I=I+Math.imul(ja,ia)|0;a=a+Math.imul(ja, W)|0;a=a+Math.imul(X,ia)|0;b=b+Math.imul(X,W)|0;I=I+Math.imul(ha,qa)|0;a=a+Math.imul(ha,N)|0;a=a+Math.imul(Z,qa)|0;b=b+Math.imul(Z,N)|0;I=I+Math.imul(U,T)|0;a=a+Math.imul(U,ea)|0;a=a+Math.imul(da,T)|0;b=b+Math.imul(da,ea)|0;I=I+Math.imul(G,aa)|0;a=a+Math.imul(G,fa)|0;a=a+Math.imul(ca,aa)|0;b=b+Math.imul(ca,fa)|0;I=I+Math.imul(A,u)|0;a=a+Math.imul(A,na)|0;a=a+Math.imul(P,u)|0;b=b+Math.imul(P,na)|0;A=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(A>>>26)|0;A&=67108863;I=Math.imul(f,Ba);a=Math.imul(f,ra); a=a+Math.imul(wa,Ba)|0;b=Math.imul(wa,ra);I=I+Math.imul(ka,za)|0;a=a+Math.imul(ka,Y)|0;a=a+Math.imul(ua,za)|0;b=b+Math.imul(ua,Y)|0;I=I+Math.imul(oa,pa)|0;a=a+Math.imul(oa,la)|0;a=a+Math.imul(va,pa)|0;b=b+Math.imul(va,la)|0;I=I+Math.imul(ba,ia)|0;a=a+Math.imul(ba,W)|0;a=a+Math.imul(sa,ia)|0;b=b+Math.imul(sa,W)|0;I=I+Math.imul(ja,qa)|0;a=a+Math.imul(ja,N)|0;a=a+Math.imul(X,qa)|0;b=b+Math.imul(X,N)|0;I=I+Math.imul(ha,T)|0;a=a+Math.imul(ha,ea)|0;a=a+Math.imul(Z,T)|0;b=b+Math.imul(Z,ea)|0;I=I+Math.imul(U, aa)|0;a=a+Math.imul(U,fa)|0;a=a+Math.imul(da,aa)|0;b=b+Math.imul(da,fa)|0;I=I+Math.imul(G,u)|0;a=a+Math.imul(G,na)|0;a=a+Math.imul(ca,u)|0;b=b+Math.imul(ca,na)|0;G=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(G>>>26)|0;G&=67108863;I=Math.imul(f,za);a=Math.imul(f,Y);a=a+Math.imul(wa,za)|0;b=Math.imul(wa,Y);I=I+Math.imul(ka,pa)|0;a=a+Math.imul(ka,la)|0;a=a+Math.imul(ua,pa)|0;b=b+Math.imul(ua,la)|0;I=I+Math.imul(oa,ia)|0;a=a+Math.imul(oa,W)|0;a=a+Math.imul(va,ia)|0;b=b+Math.imul(va,W)|0;I=I+Math.imul(ba, qa)|0;a=a+Math.imul(ba,N)|0;a=a+Math.imul(sa,qa)|0;b=b+Math.imul(sa,N)|0;I=I+Math.imul(ja,T)|0;a=a+Math.imul(ja,ea)|0;a=a+Math.imul(X,T)|0;b=b+Math.imul(X,ea)|0;I=I+Math.imul(ha,aa)|0;a=a+Math.imul(ha,fa)|0;a=a+Math.imul(Z,aa)|0;b=b+Math.imul(Z,fa)|0;I=I+Math.imul(U,u)|0;a=a+Math.imul(U,na)|0;a=a+Math.imul(da,u)|0;b=b+Math.imul(da,na)|0;U=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(U>>>26)|0;U&=67108863;I=Math.imul(f,pa);a=Math.imul(f,la);a=a+Math.imul(wa,pa)|0;b=Math.imul(wa,la);I=I+Math.imul(ka, ia)|0;a=a+Math.imul(ka,W)|0;a=a+Math.imul(ua,ia)|0;b=b+Math.imul(ua,W)|0;I=I+Math.imul(oa,qa)|0;a=a+Math.imul(oa,N)|0;a=a+Math.imul(va,qa)|0;b=b+Math.imul(va,N)|0;I=I+Math.imul(ba,T)|0;a=a+Math.imul(ba,ea)|0;a=a+Math.imul(sa,T)|0;b=b+Math.imul(sa,ea)|0;I=I+Math.imul(ja,aa)|0;a=a+Math.imul(ja,fa)|0;a=a+Math.imul(X,aa)|0;b=b+Math.imul(X,fa)|0;I=I+Math.imul(ha,u)|0;a=a+Math.imul(ha,na)|0;a=a+Math.imul(Z,u)|0;b=b+Math.imul(Z,na)|0;ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ha>>>26)|0;ha&=67108863; I=Math.imul(f,ia);a=Math.imul(f,W);a=a+Math.imul(wa,ia)|0;b=Math.imul(wa,W);I=I+Math.imul(ka,qa)|0;a=a+Math.imul(ka,N)|0;a=a+Math.imul(ua,qa)|0;b=b+Math.imul(ua,N)|0;I=I+Math.imul(oa,T)|0;a=a+Math.imul(oa,ea)|0;a=a+Math.imul(va,T)|0;b=b+Math.imul(va,ea)|0;I=I+Math.imul(ba,aa)|0;a=a+Math.imul(ba,fa)|0;a=a+Math.imul(sa,aa)|0;b=b+Math.imul(sa,fa)|0;I=I+Math.imul(ja,u)|0;a=a+Math.imul(ja,na)|0;a=a+Math.imul(X,u)|0;b=b+Math.imul(X,na)|0;ja=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ja>>>26)|0;ja&=67108863; I=Math.imul(f,qa);a=Math.imul(f,N);a=a+Math.imul(wa,qa)|0;b=Math.imul(wa,N);I=I+Math.imul(ka,T)|0;a=a+Math.imul(ka,ea)|0;a=a+Math.imul(ua,T)|0;b=b+Math.imul(ua,ea)|0;I=I+Math.imul(oa,aa)|0;a=a+Math.imul(oa,fa)|0;a=a+Math.imul(va,aa)|0;b=b+Math.imul(va,fa)|0;I=I+Math.imul(ba,u)|0;a=a+Math.imul(ba,na)|0;a=a+Math.imul(sa,u)|0;b=b+Math.imul(sa,na)|0;ba=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ba>>>26)|0;ba&=67108863;I=Math.imul(f,T);a=Math.imul(f,ea);a=a+Math.imul(wa,T)|0;b=Math.imul(wa,ea);I=I+Math.imul(ka, aa)|0;a=a+Math.imul(ka,fa)|0;a=a+Math.imul(ua,aa)|0;b=b+Math.imul(ua,fa)|0;I=I+Math.imul(oa,u)|0;a=a+Math.imul(oa,na)|0;a=a+Math.imul(va,u)|0;b=b+Math.imul(va,na)|0;oa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(oa>>>26)|0;oa&=67108863;I=Math.imul(f,aa);a=Math.imul(f,fa);a=a+Math.imul(wa,aa)|0;b=Math.imul(wa,fa);I=I+Math.imul(ka,u)|0;a=a+Math.imul(ka,na)|0;a=a+Math.imul(ua,u)|0;b=b+Math.imul(ua,na)|0;ka=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ka>>>26)|0;ka&=67108863;I=Math.imul(f,u);a=Math.imul(f, na);a=a+Math.imul(wa,u)|0;b=Math.imul(wa,na);H=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(H>>>26)|0;y[0]=xa;y[1]=ma;y[2]=Fa;y[3]=Ga;y[4]=Ia;y[5]=Ha;y[6]=Ma;y[7]=La;y[8]=Na;y[9]=D;y[10]=A;y[11]=G;y[12]=U;y[13]=ha;y[14]=ja;y[15]=ba;y[16]=oa;y[17]=ka;y[18]=H&67108863;0!==w&&(y[19]=w,c.length++);return c};Math.imul||(V=h);d.prototype.mulTo=function(a,b){var c=this.length+a.length;if(10===this.length&&10===a.length)a=V(this,a,b);else if(63>c)a=h(this,a,b);else if(1024>c){b.negative=a.negative^this.negative; b.length=this.length+a.length;for(var f=0,u=c=0;u>>26)|0;c+=y>>>26;y&=67108863}b.words[u]=f;f=y}0!==f?b.words[u]=f:b.length--;a=b.strip()}else a=(new m).mulp(this,a,b);return a};m.prototype.makeRBT=function(a){for(var b=Array(a),c=d.prototype._countBits(a)-1,f=0;f>=1;return c};m.prototype.permute=function(a,b,c,f,u,y){for(var w=0;w>>=1)c++;return 1<=c))for(var f=0;fc?0:c/67108864|0;return a}; m.prototype.convert13b=function(a,b,c,f){for(var u=0,y=0;y>>=13,c[2*y+1]=u&8191,u>>>=13;for(y=2*b;ya);for(var b=0,c=0;c>=26;b+=f/67108864|0;b+=u>>>26;this.words[c]=u&67108863}0!==b&&(this.words[c]=b,this.length++);return this};d.prototype.muln=function(a){return this.clone().imuln(a)};d.prototype.sqr=function(){return this.mul(this)};d.prototype.isqr=function(){return this.imul(this.clone())}; d.prototype.pow=function(a){for(var b=Array(a.bitLength()),c=0;c>>f}if(0===b.length)return new d(1);a=this;for(c=0;c>>26-b<<26-b,f;if(0!==b){var u=0;for(f=0;f>>26-b}u&&(this.words[f]=u,this.length++)}if(0!==a){for(f=this.length-1;0<=f;f--)this.words[f+a]=this.words[f];for(f=0;f>>f<u)for(this.length-=u,y=0;y=b);y--){var w=this.words[y]|0;this.words[y]=u<<26-f|w>>>f;u=w&a}c&&0!==u&&(c.words[c.length++]=u);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};d.prototype.ishrn=function(a,b,c){e(0===this.negative);return this.iushrn(a,b,c)};d.prototype.shln=function(a){return this.clone().ishln(a)};d.prototype.ushln=function(a){return this.clone().iushln(a)}; d.prototype.shrn=function(a){return this.clone().ishrn(a)};d.prototype.ushrn=function(a){return this.clone().iushrn(a)};d.prototype.testn=function(a){e("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a?!1:!!(this.words[a]&1<>>b<a);if(0>a)return this.isubn(-a);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)a);if(0>a)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;this.words[0]-=a;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};d.prototype.addn= function(a){return this.clone().iaddn(a)};d.prototype.subn=function(a){return this.clone().isubn(a)};d.prototype.iabs=function(){this.negative=0;return this};d.prototype.abs=function(){return this.clone().iabs()};d.prototype._ishlnsubmul=function(a,b,c){var f;this._expand(a.length+c);var u=0;for(f=0;f>26)-(u/67108864|0);this.words[f+c]=y&67108863}for(;f>26,this.words[f+c]= y&67108863;if(0===u)return this.strip();e(-1===u);for(f=u=0;f>26,this.words[f]=y&67108863;this.negative=1;return this.strip()};d.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,u=f.words[f.length-1]|0;a=26-this._countBits(u);0!==a&&(f=f.ushln(a),c.iushln(a),u=f.words[f.length-1]|0);var y=c.length-f.length;if("mod"!==b){var w=new d(null);w.length=y+1;w.words=Array(w.length);for(var A=0;Athis.length||0>this.cmp(a)?{div:new d(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null, mod:new d(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new d(this.modn(a.words[0]))}:this._wordDiv(a,b)};d.prototype.div=function(a){return this.divmod(a,"div",!1).div};d.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod};d.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod};d.prototype.divRound=function(a){var b=this.divmod(a);if(b.mod.isZero())return b.div;var c=0!==b.div.negative?b.mod.isub(a):b.mod,f=a.ushrn(1);a=a.andln(1);c=c.cmp(f);return 0>c||1===a&&0===c?b.div: 0!==b.div.negative?b.div.isubn(1):b.div.iaddn(1)};d.prototype.modn=function(a){e(67108863>=a);for(var b=67108864%a,c=0,f=this.length-1;0<=f;f--)c=(b*c+(this.words[f]|0))%a;return c};d.prototype.idivn=function(a){e(67108863>=a);for(var b=0,c=this.length-1;0<=c;c--)b=(this.words[c]|0)+67108864*b,this.words[c]=b/a|0,b%=a;return this.strip()};d.prototype.divn=function(a){return this.clone().idivn(a)};d.prototype.egcd=function(a){e(0===a.negative);e(!a.isZero());var b=this,c=a.clone();b=0!==b.negative? b.umod(a):b.clone();a=new d(1);for(var f=new d(0),u=new d(0),y=new d(1),w=0;b.isEven()&&c.isEven();)b.iushrn(1),c.iushrn(1),++w;for(var A=c.clone(),D=b.clone();!b.isZero();){for(var H=0,G=1;0===(b.words[0]&G)&&26>H;++H,G<<=1);if(0H;++H,G<<=1);if(0w;++w,A<<=1);if(0w;++w,A<<=1);if(0b.cmpn(0)&&b.iadd(a);return b};d.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var b=this.clone();a=a.clone();b.negative=0;for(var c=a.negative=0;b.isEven()&&a.isEven();c++)b.iushrn(1),a.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;a.isEven();)a.iushrn(1);var f=b.cmp(a);if(0>f)f=b,b=a,a=f;else if(0===f||0===a.cmpn(1))break;b.isub(a)}while(1);return a.iushln(c)};d.prototype.invm=function(a){return this.egcd(a).a.umod(a)}; d.prototype.isEven=function(){return 0===(this.words[0]&1)};d.prototype.isOdd=function(){return 1===(this.words[0]&1)};d.prototype.andln=function(a){return this.words[0]&a};d.prototype.bincn=function(a){e("number"===typeof a);var b=a%26;a=(a-b)/26;b=1<>>26;c&=67108863;this.words[a]=c}0!==b&&(this.words[a]=b,this.length++);return this};d.prototype.isZero=function(){return 1=== this.length&&0===this.words[0]};d.prototype.cmpn=function(a){var b=0>a;if(0!==this.negative&&!b)return-1;if(0===this.negative&&b)return 1;this.strip();1=a,"Number is too big"),b=this.words[0]|0,a=b===a?0:ba.length)return 1; if(this.lengthu&&(b=1);break}}return b};d.prototype.gtn=function(a){return 1===this.cmpn(a)};d.prototype.gt=function(a){return 1===this.cmp(a)};d.prototype.gten=function(a){return 0<=this.cmpn(a)};d.prototype.gte=function(a){return 0<=this.cmp(a)};d.prototype.ltn=function(a){return-1===this.cmpn(a)};d.prototype.lt=function(a){return-1===this.cmp(a)};d.prototype.lten=function(a){return 0>= this.cmpn(a)};d.prototype.lte=function(a){return 0>=this.cmp(a)};d.prototype.eqn=function(a){return 0===this.cmpn(a)};d.prototype.eq=function(a){return 0===this.cmp(a)};d.red=function(a){return new z(a)};d.prototype.toRed=function(a){e(!this.red,"Already a number in reduction context");e(0===this.negative,"red works only with positives");return a.convertTo(this)._forceRed(a)};d.prototype.fromRed=function(){e(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)}; d.prototype._forceRed=function(a){this.red=a;return this};d.prototype.forceRed=function(a){e(!this.red,"Already a number in reduction context");return this._forceRed(a)};d.prototype.redAdd=function(a){e(this.red,"redAdd works only with red numbers");return this.red.add(this,a)};d.prototype.redIAdd=function(a){e(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,a)};d.prototype.redSub=function(a){e(this.red,"redSub works only with red numbers");return this.red.sub(this,a)};d.prototype.redISub= function(a){e(this.red,"redISub works only with red numbers");return this.red.isub(this,a)};d.prototype.redShl=function(a){e(this.red,"redShl works only with red numbers");return this.red.shl(this,a)};d.prototype.redMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.mul(this,a)};d.prototype.redIMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.imul(this,a)};d.prototype.redSqr=function(){e(this.red, "redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};d.prototype.redISqr=function(){e(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};d.prototype.redSqrt=function(){e(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};d.prototype.redInvm=function(){e(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};d.prototype.redNeg= function(){e(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};d.prototype.redPow=function(a){e(this.red&&!a.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,a)};var Q={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var a=new d(null);a.words=Array(Math.ceil(this.n/13));return a};p.prototype.ireduce=function(a){do{this.split(a,this.tmp);a=this.imulK(a);a=a.iadd(this.tmp);var b=a.bitLength()}while(b>this.n); b=b=a.length)a.words[0]=0,a.length=1;else{c=a.words[9];b.words[b.length++]=c&4194303;for(f=10;f>>22,c=b;c>>>=22;a.words[f-10]=c;a.length=0===c&&10>>=26;a.words[c]= f}0!==b&&(a.words[a.length++]=b);return a};d._prime=function(a){if(Q[a])return Q[a];if("k256"===a)var b=new v;else if("p224"===a)b=new r;else if("p192"===a)b=new B;else if("p25519"===a)b=new C;else throw Error("Unknown prime "+a);return Q[a]=b};z.prototype._verify1=function(a){e(0===a.negative,"red works only with positives");e(a.red,"red works only with red numbers")};z.prototype._verify2=function(a,b){e(0===(a.negative|b.negative),"red works only with positives");e(a.red&&a.red===b.red,"red works only with red numbers")}; z.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)};z.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)};z.prototype.add=function(a,b){this._verify2(a,b);a=a.add(b);0<=a.cmp(this.m)&&a.isub(this.m);return a._forceRed(this)};z.prototype.iadd=function(a,b){this._verify2(a,b);a=a.iadd(b);0<=a.cmp(this.m)&&a.isub(this.m);return a};z.prototype.sub=function(a,b){this._verify2(a,b);a=a.sub(b);0>a.cmpn(0)&& a.iadd(this.m);return a._forceRed(this)};z.prototype.isub=function(a,b){this._verify2(a,b);a=a.isub(b);0>a.cmpn(0)&&a.iadd(this.m);return a};z.prototype.shl=function(a,b){this._verify1(a);return this.imod(a.ushln(b))};z.prototype.imul=function(a,b){this._verify2(a,b);return this.imod(a.imul(b))};z.prototype.mul=function(a,b){this._verify2(a,b);return this.imod(a.mul(b))};z.prototype.isqr=function(a){return this.imul(a,a.clone())};z.prototype.sqr=function(a){return this.mul(a,a)};z.prototype.sqrt= function(a){if(a.isZero())return a.clone();var b=this.m.andln(3);e(1===b%2);if(3===b)return b=this.m.add(new d(1)).iushrn(2),this.pow(a,b);for(var c=this.m.subn(1),f=0;!c.isZero()&&0===c.andln(1);)f++,c.iushrn(1);e(!c.isZero());b=(new d(1)).toRed(this);var u=b.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=(new d(2*w*w)).toRed(this);0!==this.pow(w,y).cmp(u);)w.redIAdd(u);y=this.pow(w,c);u=this.pow(a,c.addn(1).iushrn(1));a=this.pow(a,c);for(c=f;0!==a.cmp(b);){w=a;for(f=0;0!==w.cmp(b);f++)w= w.redSqr();e(f>w&1;a!==c[0]&&(a=this.sqr(a));if(0===D&&0===u)y=0;else if(u<<=1,u|=D,y++,4===y||0===f&&0===w)a=this.mul(a,c[u]),u=y=0}w=26}return a};z.prototype.convertTo=function(a){var b=a.umod(this.m);return b===a?b.clone():b};z.prototype.convertFrom=function(a){a=a.clone();a.red=null;return a};d.mont=function(a){return new F(a)};t(F,z);F.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))};F.prototype.convertFrom=function(a){a=this.imod(a.mul(this.rinv)); a.red=null;return a};F.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;a=a.imul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return(new d(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift); 0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof S||S,this)}; shadow$provide[114]=function(O,E,S,J){(function(g,x){function e(a,b){if(!a)throw Error(b||"Assertion failed");}function t(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a}function d(a,b,c){if(d.isBN(a))return a;this.negative=0;this.words=null;this.length=0;this.red=null;if(null!==a){if("le"===b||"be"===b)c=b,b=10;this._init(a||0,b||10,c||"be")}}function n(a,b){a=a.charCodeAt(b);return 65<=a&&70>=a?a-55:97<=a&&102>=a?a-87:a-48&15}function l(a,b, c){var f=n(a,c);c-1>=b&&(f|=n(a,c-1)<<4);return f}function k(a,b,c,f){var u=0;for(c=Math.min(a.length,c);b>>26,H=w&67108863;w=Math.min(A,b.length-1);for(var G=Math.max(0,A-a.length+1);G<=w;G++)u=a.words[A-G| 0]|0,y=b.words[G]|0,u=u*y+H,D+=u/67108864|0,H=u&67108863;c.words[A]=H|0;w=D|0}0!==w?c.words[A]=w|0:c.length--;return c.strip()}function m(a,b){this.x=a;this.y=b}function p(a,b){this.name=a;this.p=new d(b,16);this.n=this.p.bitLength();this.k=(new d(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function v(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function r(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")} function B(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function z(a){"string"===typeof a?(a=d._prime(a),this.m=a.p,this.prime=a):(e(a.gtn(1),"modulus must be greater than 1"),this.m=a,this.prime=null)}function F(a){z.call(this,a);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new d(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr()); this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof g?g.exports=d:x.BN=d;d.BN=d;d.wordSize=26;try{var K="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:E(44).Buffer}catch(a){}d.isBN=function(a){return a instanceof d?!0:null!==a&&"object"===typeof a&&a.constructor.wordSize===d.wordSize&&Array.isArray(a.words)};d.max=function(a,b){return 0a.cmp(b)?a:b};d.prototype._init=function(a,b,c){if("number"===typeof a)return this._initNumber(a,b,c);if("object"===typeof a)return this._initArray(a,b,c);"hex"===b&&(b=16);e(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");var f=0;"-"===a[0]&&(f++,this.negative=1);fa&&(this.negative=1,a=-a);67108864>a?(this.words= [a&67108863],this.length=1):4503599627370496>a?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(e(9007199254740992>a),this.words=[a&67108863,a/67108864&67108863,1],this.length=3);"le"===c&&this._initArray(this.toArray(),b,c)};d.prototype._initArray=function(a,b,c){e("number"===typeof a.length);if(0>=a.length)return this.words=[0],this.length=1,this;this.length=Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-f&67108863;f+=24;26<=f&&(f-=26,c++)}else if("le"===c)for(c=b=0;b>>26-f&67108863,f+=24,26<=f&&(f-=26,c++);return this.strip()};d.prototype._parseHex=function(a,b,c){this.length=Math.ceil((a.length-b)/6);this.words=Array(this.length);for(var f=0;f=b;f-=2)c=l(a,b,f)<>>26):u+=8;else for(f=0===(a.length-b)%2?b+1:b;f>>26):u+=8;this.strip()};d.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var f=0,u=1;67108863>=u;u*=b)f++;f--;u=u/b|0;var y=a.length-c,w=y%f;y=Math.min(y,y-w)+c;for(var A=c;Athis.words[0]+c?this.words[0]+=c: this._iaddn(c);if(0!==w){f=1;c=k(a,A,a.length,b);for(A=0;Athis.words[0]+c?this.words[0]+=c:this._iaddn(c)}this.strip()};d.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215;c=0!==f||u!==this.length-1?M[6-w.length]+w+c:w+c;a+=2;26<=a&&(a-=26,u--)}for(0!==f&&(c=f.toString(16)+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}if(a===(a|0)&&2<=a&&36>=a){f=R[a];u=L[a];c="";y=this.clone();for(y.negative=0;!y.isZero();)w=y.modn(u).toString(a),y=y.idivn(u),c=y.isZero()?w+c:M[f-w.length]+w+c;for(this.isZero()&&(c="0"+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}e(!1,"Base should be between 2 and 36")}; d.prototype.toNumber=function(){var a=this.words[0];2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:2>>= 13);64<=a&&(b+=7,a>>>=7);8<=a&&(b+=4,a>>>=4);2<=a&&(b+=2,a>>>=2);return b+a};d.prototype._zeroBits=function(a){if(0===a)return 26;var b=0;0===(a&8191)&&(b+=13,a>>>=13);0===(a&127)&&(b+=7,a>>>=7);0===(a&15)&&(b+=4,a>>>=4);0===(a&3)&&(b+=2,a>>>=2);0===(a&1)&&b++;return b};d.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,b=0;ba.length?this.clone().ior(a):a.clone().ior(this)};d.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)};d.prototype.iuand=function(a){var b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};d.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)};d.prototype.iuxor=function(a){if(this.length>a.length)var b=this;else b=a,a=this;for(var c=0;ca.length?this.clone().ixor(a):a.clone().ixor(this)};d.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)};d.prototype.inotn=function(a){e("number"===typeof a&&0<=a);var b=Math.ceil(a/26)|0;a%=26;this._expand(b);0>26-a);return this.strip()};d.prototype.notn=function(a){return this.clone().inotn(a)};d.prototype.setn=function(a,b){e("number"===typeof a&&0<=a);var c=a/26|0;a%=26;this._expand(c+1);this.words[c]=b?this.words[c]|1<a.length)var c=this;else c=a,a=this;for(var f=b=0;f>>=26;for(;0!==b&&f>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;fa.length?this.clone().iadd(a):a.clone().iadd(this)};d.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var b=this.iadd(a);a.negative=1;return b._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();b=this.cmp(a);if(0===b)return this.negative=0,this.length=1,this.words[0]=0,this;if(0>26,this.words[u]=b&67108863;for(;0!==f&&u>26,this.words[u]=b&67108863;if(0===f&&u>>13,G=f[1]| 0;A=G&8191;var P=G>>>13,U=f[2]|0;G=U&8191;var ca=U>>>13,ha=f[3]|0;U=ha&8191;var da=ha>>>13,ja=f[4]|0;ha=ja&8191;var Z=ja>>>13,ba=f[5]|0;ja=ba&8191;var X=ba>>>13,oa=f[6]|0;ba=oa&8191;var sa=oa>>>13,ka=f[7]|0;oa=ka&8191;var va=ka>>>13,ua=f[8]|0;ka=ua&8191;ua>>>=13;var wa=f[9]|0;f=wa&8191;wa>>>=13;var ta=u[0]|0,ya=ta&8191,Aa=ta>>>13,Ba=u[1]|0;ta=Ba&8191;var Da=Ba>>>13,za=u[2]|0;Ba=za&8191;var ra=za>>>13,pa=u[3]|0;za=pa&8191;var Y=pa>>>13,ia=u[4]|0;pa=ia&8191;var la=ia>>>13,qa=u[5]|0;ia=qa&8191;var W= qa>>>13,T=u[6]|0;qa=T&8191;var N=T>>>13,aa=u[7]|0;T=aa&8191;var ea=aa>>>13,fa=u[8]|0;aa=fa&8191;fa>>>=13;var na=u[9]|0;u=na&8191;na>>>=13;c.negative=a.negative^b.negative;c.length=19;var I=Math.imul(D,ya);a=Math.imul(D,Aa);a=a+Math.imul(H,ya)|0;b=Math.imul(H,Aa);var xa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(xa>>>26)|0;xa&=67108863;I=Math.imul(A,ya);a=Math.imul(A,Aa);a=a+Math.imul(P,ya)|0;b=Math.imul(P,Aa);I=I+Math.imul(D,ta)|0;a=a+Math.imul(D,Da)|0;a=a+Math.imul(H,ta)|0;b=b+Math.imul(H,Da)|0; var ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ma>>>26)|0;ma&=67108863;I=Math.imul(G,ya);a=Math.imul(G,Aa);a=a+Math.imul(ca,ya)|0;b=Math.imul(ca,Aa);I=I+Math.imul(A,ta)|0;a=a+Math.imul(A,Da)|0;a=a+Math.imul(P,ta)|0;b=b+Math.imul(P,Da)|0;I=I+Math.imul(D,Ba)|0;a=a+Math.imul(D,ra)|0;a=a+Math.imul(H,Ba)|0;b=b+Math.imul(H,ra)|0;var Fa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Fa>>>26)|0;Fa&=67108863;I=Math.imul(U,ya);a=Math.imul(U,Aa);a=a+Math.imul(da,ya)|0;b=Math.imul(da,Aa);I=I+Math.imul(G,ta)|0; a=a+Math.imul(G,Da)|0;a=a+Math.imul(ca,ta)|0;b=b+Math.imul(ca,Da)|0;I=I+Math.imul(A,Ba)|0;a=a+Math.imul(A,ra)|0;a=a+Math.imul(P,Ba)|0;b=b+Math.imul(P,ra)|0;I=I+Math.imul(D,za)|0;a=a+Math.imul(D,Y)|0;a=a+Math.imul(H,za)|0;b=b+Math.imul(H,Y)|0;var Ga=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ga>>>26)|0;Ga&=67108863;I=Math.imul(ha,ya);a=Math.imul(ha,Aa);a=a+Math.imul(Z,ya)|0;b=Math.imul(Z,Aa);I=I+Math.imul(U,ta)|0;a=a+Math.imul(U,Da)|0;a=a+Math.imul(da,ta)|0;b=b+Math.imul(da,Da)|0;I=I+Math.imul(G,Ba)| 0;a=a+Math.imul(G,ra)|0;a=a+Math.imul(ca,Ba)|0;b=b+Math.imul(ca,ra)|0;I=I+Math.imul(A,za)|0;a=a+Math.imul(A,Y)|0;a=a+Math.imul(P,za)|0;b=b+Math.imul(P,Y)|0;I=I+Math.imul(D,pa)|0;a=a+Math.imul(D,la)|0;a=a+Math.imul(H,pa)|0;b=b+Math.imul(H,la)|0;var Ia=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ia>>>26)|0;Ia&=67108863;I=Math.imul(ja,ya);a=Math.imul(ja,Aa);a=a+Math.imul(X,ya)|0;b=Math.imul(X,Aa);I=I+Math.imul(ha,ta)|0;a=a+Math.imul(ha,Da)|0;a=a+Math.imul(Z,ta)|0;b=b+Math.imul(Z,Da)|0;I=I+Math.imul(U, Ba)|0;a=a+Math.imul(U,ra)|0;a=a+Math.imul(da,Ba)|0;b=b+Math.imul(da,ra)|0;I=I+Math.imul(G,za)|0;a=a+Math.imul(G,Y)|0;a=a+Math.imul(ca,za)|0;b=b+Math.imul(ca,Y)|0;I=I+Math.imul(A,pa)|0;a=a+Math.imul(A,la)|0;a=a+Math.imul(P,pa)|0;b=b+Math.imul(P,la)|0;I=I+Math.imul(D,ia)|0;a=a+Math.imul(D,W)|0;a=a+Math.imul(H,ia)|0;b=b+Math.imul(H,W)|0;var Ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ha>>>26)|0;Ha&=67108863;I=Math.imul(ba,ya);a=Math.imul(ba,Aa);a=a+Math.imul(sa,ya)|0;b=Math.imul(sa,Aa);I=I+Math.imul(ja, ta)|0;a=a+Math.imul(ja,Da)|0;a=a+Math.imul(X,ta)|0;b=b+Math.imul(X,Da)|0;I=I+Math.imul(ha,Ba)|0;a=a+Math.imul(ha,ra)|0;a=a+Math.imul(Z,Ba)|0;b=b+Math.imul(Z,ra)|0;I=I+Math.imul(U,za)|0;a=a+Math.imul(U,Y)|0;a=a+Math.imul(da,za)|0;b=b+Math.imul(da,Y)|0;I=I+Math.imul(G,pa)|0;a=a+Math.imul(G,la)|0;a=a+Math.imul(ca,pa)|0;b=b+Math.imul(ca,la)|0;I=I+Math.imul(A,ia)|0;a=a+Math.imul(A,W)|0;a=a+Math.imul(P,ia)|0;b=b+Math.imul(P,W)|0;I=I+Math.imul(D,qa)|0;a=a+Math.imul(D,N)|0;a=a+Math.imul(H,qa)|0;b=b+Math.imul(H, N)|0;var Ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ma>>>26)|0;Ma&=67108863;I=Math.imul(oa,ya);a=Math.imul(oa,Aa);a=a+Math.imul(va,ya)|0;b=Math.imul(va,Aa);I=I+Math.imul(ba,ta)|0;a=a+Math.imul(ba,Da)|0;a=a+Math.imul(sa,ta)|0;b=b+Math.imul(sa,Da)|0;I=I+Math.imul(ja,Ba)|0;a=a+Math.imul(ja,ra)|0;a=a+Math.imul(X,Ba)|0;b=b+Math.imul(X,ra)|0;I=I+Math.imul(ha,za)|0;a=a+Math.imul(ha,Y)|0;a=a+Math.imul(Z,za)|0;b=b+Math.imul(Z,Y)|0;I=I+Math.imul(U,pa)|0;a=a+Math.imul(U,la)|0;a=a+Math.imul(da,pa)|0;b=b+Math.imul(da, la)|0;I=I+Math.imul(G,ia)|0;a=a+Math.imul(G,W)|0;a=a+Math.imul(ca,ia)|0;b=b+Math.imul(ca,W)|0;I=I+Math.imul(A,qa)|0;a=a+Math.imul(A,N)|0;a=a+Math.imul(P,qa)|0;b=b+Math.imul(P,N)|0;I=I+Math.imul(D,T)|0;a=a+Math.imul(D,ea)|0;a=a+Math.imul(H,T)|0;b=b+Math.imul(H,ea)|0;var La=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(La>>>26)|0;La&=67108863;I=Math.imul(ka,ya);a=Math.imul(ka,Aa);a=a+Math.imul(ua,ya)|0;b=Math.imul(ua,Aa);I=I+Math.imul(oa,ta)|0;a=a+Math.imul(oa,Da)|0;a=a+Math.imul(va,ta)|0;b=b+Math.imul(va, Da)|0;I=I+Math.imul(ba,Ba)|0;a=a+Math.imul(ba,ra)|0;a=a+Math.imul(sa,Ba)|0;b=b+Math.imul(sa,ra)|0;I=I+Math.imul(ja,za)|0;a=a+Math.imul(ja,Y)|0;a=a+Math.imul(X,za)|0;b=b+Math.imul(X,Y)|0;I=I+Math.imul(ha,pa)|0;a=a+Math.imul(ha,la)|0;a=a+Math.imul(Z,pa)|0;b=b+Math.imul(Z,la)|0;I=I+Math.imul(U,ia)|0;a=a+Math.imul(U,W)|0;a=a+Math.imul(da,ia)|0;b=b+Math.imul(da,W)|0;I=I+Math.imul(G,qa)|0;a=a+Math.imul(G,N)|0;a=a+Math.imul(ca,qa)|0;b=b+Math.imul(ca,N)|0;I=I+Math.imul(A,T)|0;a=a+Math.imul(A,ea)|0;a=a+Math.imul(P, T)|0;b=b+Math.imul(P,ea)|0;I=I+Math.imul(D,aa)|0;a=a+Math.imul(D,fa)|0;a=a+Math.imul(H,aa)|0;b=b+Math.imul(H,fa)|0;var Na=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Na>>>26)|0;Na&=67108863;I=Math.imul(f,ya);a=Math.imul(f,Aa);a=a+Math.imul(wa,ya)|0;b=Math.imul(wa,Aa);I=I+Math.imul(ka,ta)|0;a=a+Math.imul(ka,Da)|0;a=a+Math.imul(ua,ta)|0;b=b+Math.imul(ua,Da)|0;I=I+Math.imul(oa,Ba)|0;a=a+Math.imul(oa,ra)|0;a=a+Math.imul(va,Ba)|0;b=b+Math.imul(va,ra)|0;I=I+Math.imul(ba,za)|0;a=a+Math.imul(ba,Y)|0;a=a+Math.imul(sa, za)|0;b=b+Math.imul(sa,Y)|0;I=I+Math.imul(ja,pa)|0;a=a+Math.imul(ja,la)|0;a=a+Math.imul(X,pa)|0;b=b+Math.imul(X,la)|0;I=I+Math.imul(ha,ia)|0;a=a+Math.imul(ha,W)|0;a=a+Math.imul(Z,ia)|0;b=b+Math.imul(Z,W)|0;I=I+Math.imul(U,qa)|0;a=a+Math.imul(U,N)|0;a=a+Math.imul(da,qa)|0;b=b+Math.imul(da,N)|0;I=I+Math.imul(G,T)|0;a=a+Math.imul(G,ea)|0;a=a+Math.imul(ca,T)|0;b=b+Math.imul(ca,ea)|0;I=I+Math.imul(A,aa)|0;a=a+Math.imul(A,fa)|0;a=a+Math.imul(P,aa)|0;b=b+Math.imul(P,fa)|0;I=I+Math.imul(D,u)|0;a=a+Math.imul(D, na)|0;a=a+Math.imul(H,u)|0;b=b+Math.imul(H,na)|0;D=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(D>>>26)|0;D&=67108863;I=Math.imul(f,ta);a=Math.imul(f,Da);a=a+Math.imul(wa,ta)|0;b=Math.imul(wa,Da);I=I+Math.imul(ka,Ba)|0;a=a+Math.imul(ka,ra)|0;a=a+Math.imul(ua,Ba)|0;b=b+Math.imul(ua,ra)|0;I=I+Math.imul(oa,za)|0;a=a+Math.imul(oa,Y)|0;a=a+Math.imul(va,za)|0;b=b+Math.imul(va,Y)|0;I=I+Math.imul(ba,pa)|0;a=a+Math.imul(ba,la)|0;a=a+Math.imul(sa,pa)|0;b=b+Math.imul(sa,la)|0;I=I+Math.imul(ja,ia)|0;a=a+Math.imul(ja, W)|0;a=a+Math.imul(X,ia)|0;b=b+Math.imul(X,W)|0;I=I+Math.imul(ha,qa)|0;a=a+Math.imul(ha,N)|0;a=a+Math.imul(Z,qa)|0;b=b+Math.imul(Z,N)|0;I=I+Math.imul(U,T)|0;a=a+Math.imul(U,ea)|0;a=a+Math.imul(da,T)|0;b=b+Math.imul(da,ea)|0;I=I+Math.imul(G,aa)|0;a=a+Math.imul(G,fa)|0;a=a+Math.imul(ca,aa)|0;b=b+Math.imul(ca,fa)|0;I=I+Math.imul(A,u)|0;a=a+Math.imul(A,na)|0;a=a+Math.imul(P,u)|0;b=b+Math.imul(P,na)|0;A=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(A>>>26)|0;A&=67108863;I=Math.imul(f,Ba);a=Math.imul(f,ra); a=a+Math.imul(wa,Ba)|0;b=Math.imul(wa,ra);I=I+Math.imul(ka,za)|0;a=a+Math.imul(ka,Y)|0;a=a+Math.imul(ua,za)|0;b=b+Math.imul(ua,Y)|0;I=I+Math.imul(oa,pa)|0;a=a+Math.imul(oa,la)|0;a=a+Math.imul(va,pa)|0;b=b+Math.imul(va,la)|0;I=I+Math.imul(ba,ia)|0;a=a+Math.imul(ba,W)|0;a=a+Math.imul(sa,ia)|0;b=b+Math.imul(sa,W)|0;I=I+Math.imul(ja,qa)|0;a=a+Math.imul(ja,N)|0;a=a+Math.imul(X,qa)|0;b=b+Math.imul(X,N)|0;I=I+Math.imul(ha,T)|0;a=a+Math.imul(ha,ea)|0;a=a+Math.imul(Z,T)|0;b=b+Math.imul(Z,ea)|0;I=I+Math.imul(U, aa)|0;a=a+Math.imul(U,fa)|0;a=a+Math.imul(da,aa)|0;b=b+Math.imul(da,fa)|0;I=I+Math.imul(G,u)|0;a=a+Math.imul(G,na)|0;a=a+Math.imul(ca,u)|0;b=b+Math.imul(ca,na)|0;G=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(G>>>26)|0;G&=67108863;I=Math.imul(f,za);a=Math.imul(f,Y);a=a+Math.imul(wa,za)|0;b=Math.imul(wa,Y);I=I+Math.imul(ka,pa)|0;a=a+Math.imul(ka,la)|0;a=a+Math.imul(ua,pa)|0;b=b+Math.imul(ua,la)|0;I=I+Math.imul(oa,ia)|0;a=a+Math.imul(oa,W)|0;a=a+Math.imul(va,ia)|0;b=b+Math.imul(va,W)|0;I=I+Math.imul(ba, qa)|0;a=a+Math.imul(ba,N)|0;a=a+Math.imul(sa,qa)|0;b=b+Math.imul(sa,N)|0;I=I+Math.imul(ja,T)|0;a=a+Math.imul(ja,ea)|0;a=a+Math.imul(X,T)|0;b=b+Math.imul(X,ea)|0;I=I+Math.imul(ha,aa)|0;a=a+Math.imul(ha,fa)|0;a=a+Math.imul(Z,aa)|0;b=b+Math.imul(Z,fa)|0;I=I+Math.imul(U,u)|0;a=a+Math.imul(U,na)|0;a=a+Math.imul(da,u)|0;b=b+Math.imul(da,na)|0;U=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(U>>>26)|0;U&=67108863;I=Math.imul(f,pa);a=Math.imul(f,la);a=a+Math.imul(wa,pa)|0;b=Math.imul(wa,la);I=I+Math.imul(ka, ia)|0;a=a+Math.imul(ka,W)|0;a=a+Math.imul(ua,ia)|0;b=b+Math.imul(ua,W)|0;I=I+Math.imul(oa,qa)|0;a=a+Math.imul(oa,N)|0;a=a+Math.imul(va,qa)|0;b=b+Math.imul(va,N)|0;I=I+Math.imul(ba,T)|0;a=a+Math.imul(ba,ea)|0;a=a+Math.imul(sa,T)|0;b=b+Math.imul(sa,ea)|0;I=I+Math.imul(ja,aa)|0;a=a+Math.imul(ja,fa)|0;a=a+Math.imul(X,aa)|0;b=b+Math.imul(X,fa)|0;I=I+Math.imul(ha,u)|0;a=a+Math.imul(ha,na)|0;a=a+Math.imul(Z,u)|0;b=b+Math.imul(Z,na)|0;ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ha>>>26)|0;ha&=67108863; I=Math.imul(f,ia);a=Math.imul(f,W);a=a+Math.imul(wa,ia)|0;b=Math.imul(wa,W);I=I+Math.imul(ka,qa)|0;a=a+Math.imul(ka,N)|0;a=a+Math.imul(ua,qa)|0;b=b+Math.imul(ua,N)|0;I=I+Math.imul(oa,T)|0;a=a+Math.imul(oa,ea)|0;a=a+Math.imul(va,T)|0;b=b+Math.imul(va,ea)|0;I=I+Math.imul(ba,aa)|0;a=a+Math.imul(ba,fa)|0;a=a+Math.imul(sa,aa)|0;b=b+Math.imul(sa,fa)|0;I=I+Math.imul(ja,u)|0;a=a+Math.imul(ja,na)|0;a=a+Math.imul(X,u)|0;b=b+Math.imul(X,na)|0;ja=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ja>>>26)|0;ja&=67108863; I=Math.imul(f,qa);a=Math.imul(f,N);a=a+Math.imul(wa,qa)|0;b=Math.imul(wa,N);I=I+Math.imul(ka,T)|0;a=a+Math.imul(ka,ea)|0;a=a+Math.imul(ua,T)|0;b=b+Math.imul(ua,ea)|0;I=I+Math.imul(oa,aa)|0;a=a+Math.imul(oa,fa)|0;a=a+Math.imul(va,aa)|0;b=b+Math.imul(va,fa)|0;I=I+Math.imul(ba,u)|0;a=a+Math.imul(ba,na)|0;a=a+Math.imul(sa,u)|0;b=b+Math.imul(sa,na)|0;ba=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ba>>>26)|0;ba&=67108863;I=Math.imul(f,T);a=Math.imul(f,ea);a=a+Math.imul(wa,T)|0;b=Math.imul(wa,ea);I=I+Math.imul(ka, aa)|0;a=a+Math.imul(ka,fa)|0;a=a+Math.imul(ua,aa)|0;b=b+Math.imul(ua,fa)|0;I=I+Math.imul(oa,u)|0;a=a+Math.imul(oa,na)|0;a=a+Math.imul(va,u)|0;b=b+Math.imul(va,na)|0;oa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(oa>>>26)|0;oa&=67108863;I=Math.imul(f,aa);a=Math.imul(f,fa);a=a+Math.imul(wa,aa)|0;b=Math.imul(wa,fa);I=I+Math.imul(ka,u)|0;a=a+Math.imul(ka,na)|0;a=a+Math.imul(ua,u)|0;b=b+Math.imul(ua,na)|0;ka=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ka>>>26)|0;ka&=67108863;I=Math.imul(f,u);a=Math.imul(f, na);a=a+Math.imul(wa,u)|0;b=Math.imul(wa,na);H=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(H>>>26)|0;y[0]=xa;y[1]=ma;y[2]=Fa;y[3]=Ga;y[4]=Ia;y[5]=Ha;y[6]=Ma;y[7]=La;y[8]=Na;y[9]=D;y[10]=A;y[11]=G;y[12]=U;y[13]=ha;y[14]=ja;y[15]=ba;y[16]=oa;y[17]=ka;y[18]=H&67108863;0!==w&&(y[19]=w,c.length++);return c};Math.imul||(V=h);d.prototype.mulTo=function(a,b){var c=this.length+a.length;if(10===this.length&&10===a.length)a=V(this,a,b);else if(63>c)a=h(this,a,b);else if(1024>c){b.negative=a.negative^this.negative; b.length=this.length+a.length;for(var f=0,u=c=0;u>>26)|0;c+=y>>>26;y&=67108863}b.words[u]=f;f=y}0!==f?b.words[u]=f:b.length--;a=b.strip()}else a=(new m).mulp(this,a,b);return a};m.prototype.makeRBT=function(a){for(var b=Array(a),c=d.prototype._countBits(a)-1,f=0;f>=1;return c};m.prototype.permute=function(a,b,c,f,u,y){for(var w=0;w>>=1)c++;return 1<=c))for(var f=0;fc?0:c/67108864|0;return a}; m.prototype.convert13b=function(a,b,c,f){for(var u=0,y=0;y>>=13,c[2*y+1]=u&8191,u>>>=13;for(y=2*b;ya);for(var b=0,c=0;c>=26;b+=f/67108864|0;b+=u>>>26;this.words[c]=u&67108863}0!==b&&(this.words[c]=b,this.length++);return this};d.prototype.muln=function(a){return this.clone().imuln(a)};d.prototype.sqr=function(){return this.mul(this)};d.prototype.isqr=function(){return this.imul(this.clone())}; d.prototype.pow=function(a){for(var b=Array(a.bitLength()),c=0;c>>f}if(0===b.length)return new d(1);a=this;for(c=0;c>>26-b<<26-b,f;if(0!==b){var u=0;for(f=0;f>>26-b}u&&(this.words[f]=u,this.length++)}if(0!==a){for(f=this.length-1;0<=f;f--)this.words[f+a]=this.words[f];for(f=0;f>>f<u)for(this.length-=u,y=0;y=b);y--){var w=this.words[y]|0;this.words[y]=u<<26-f|w>>>f;u=w&a}c&&0!==u&&(c.words[c.length++]=u);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};d.prototype.ishrn=function(a,b,c){e(0===this.negative);return this.iushrn(a,b,c)};d.prototype.shln=function(a){return this.clone().ishln(a)};d.prototype.ushln=function(a){return this.clone().iushln(a)}; d.prototype.shrn=function(a){return this.clone().ishrn(a)};d.prototype.ushrn=function(a){return this.clone().iushrn(a)};d.prototype.testn=function(a){e("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a?!1:!!(this.words[a]&1<>>b<a);if(0>a)return this.isubn(-a);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)a);if(0>a)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;this.words[0]-=a;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};d.prototype.addn= function(a){return this.clone().iaddn(a)};d.prototype.subn=function(a){return this.clone().isubn(a)};d.prototype.iabs=function(){this.negative=0;return this};d.prototype.abs=function(){return this.clone().iabs()};d.prototype._ishlnsubmul=function(a,b,c){var f;this._expand(a.length+c);var u=0;for(f=0;f>26)-(u/67108864|0);this.words[f+c]=y&67108863}for(;f>26,this.words[f+c]= y&67108863;if(0===u)return this.strip();e(-1===u);for(f=u=0;f>26,this.words[f]=y&67108863;this.negative=1;return this.strip()};d.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,u=f.words[f.length-1]|0;a=26-this._countBits(u);0!==a&&(f=f.ushln(a),c.iushln(a),u=f.words[f.length-1]|0);var y=c.length-f.length;if("mod"!==b){var w=new d(null);w.length=y+1;w.words=Array(w.length);for(var A=0;Athis.length||0>this.cmp(a)?{div:new d(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null, mod:new d(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new d(this.modn(a.words[0]))}:this._wordDiv(a,b)};d.prototype.div=function(a){return this.divmod(a,"div",!1).div};d.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod};d.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod};d.prototype.divRound=function(a){var b=this.divmod(a);if(b.mod.isZero())return b.div;var c=0!==b.div.negative?b.mod.isub(a):b.mod,f=a.ushrn(1);a=a.andln(1);c=c.cmp(f);return 0>c||1===a&&0===c?b.div: 0!==b.div.negative?b.div.isubn(1):b.div.iaddn(1)};d.prototype.modn=function(a){e(67108863>=a);for(var b=67108864%a,c=0,f=this.length-1;0<=f;f--)c=(b*c+(this.words[f]|0))%a;return c};d.prototype.idivn=function(a){e(67108863>=a);for(var b=0,c=this.length-1;0<=c;c--)b=(this.words[c]|0)+67108864*b,this.words[c]=b/a|0,b%=a;return this.strip()};d.prototype.divn=function(a){return this.clone().idivn(a)};d.prototype.egcd=function(a){e(0===a.negative);e(!a.isZero());var b=this,c=a.clone();b=0!==b.negative? b.umod(a):b.clone();a=new d(1);for(var f=new d(0),u=new d(0),y=new d(1),w=0;b.isEven()&&c.isEven();)b.iushrn(1),c.iushrn(1),++w;for(var A=c.clone(),D=b.clone();!b.isZero();){for(var H=0,G=1;0===(b.words[0]&G)&&26>H;++H,G<<=1);if(0H;++H,G<<=1);if(0w;++w,A<<=1);if(0w;++w,A<<=1);if(0b.cmpn(0)&&b.iadd(a);return b};d.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var b=this.clone();a=a.clone();b.negative=0;for(var c=a.negative=0;b.isEven()&&a.isEven();c++)b.iushrn(1),a.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;a.isEven();)a.iushrn(1);var f=b.cmp(a);if(0>f)f=b,b=a,a=f;else if(0===f||0===a.cmpn(1))break;b.isub(a)}while(1);return a.iushln(c)};d.prototype.invm=function(a){return this.egcd(a).a.umod(a)}; d.prototype.isEven=function(){return 0===(this.words[0]&1)};d.prototype.isOdd=function(){return 1===(this.words[0]&1)};d.prototype.andln=function(a){return this.words[0]&a};d.prototype.bincn=function(a){e("number"===typeof a);var b=a%26;a=(a-b)/26;b=1<>>26;c&=67108863;this.words[a]=c}0!==b&&(this.words[a]=b,this.length++);return this};d.prototype.isZero=function(){return 1=== this.length&&0===this.words[0]};d.prototype.cmpn=function(a){var b=0>a;if(0!==this.negative&&!b)return-1;if(0===this.negative&&b)return 1;this.strip();1=a,"Number is too big"),b=this.words[0]|0,a=b===a?0:ba.length)return 1; if(this.lengthu&&(b=1);break}}return b};d.prototype.gtn=function(a){return 1===this.cmpn(a)};d.prototype.gt=function(a){return 1===this.cmp(a)};d.prototype.gten=function(a){return 0<=this.cmpn(a)};d.prototype.gte=function(a){return 0<=this.cmp(a)};d.prototype.ltn=function(a){return-1===this.cmpn(a)};d.prototype.lt=function(a){return-1===this.cmp(a)};d.prototype.lten=function(a){return 0>= this.cmpn(a)};d.prototype.lte=function(a){return 0>=this.cmp(a)};d.prototype.eqn=function(a){return 0===this.cmpn(a)};d.prototype.eq=function(a){return 0===this.cmp(a)};d.red=function(a){return new z(a)};d.prototype.toRed=function(a){e(!this.red,"Already a number in reduction context");e(0===this.negative,"red works only with positives");return a.convertTo(this)._forceRed(a)};d.prototype.fromRed=function(){e(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)}; d.prototype._forceRed=function(a){this.red=a;return this};d.prototype.forceRed=function(a){e(!this.red,"Already a number in reduction context");return this._forceRed(a)};d.prototype.redAdd=function(a){e(this.red,"redAdd works only with red numbers");return this.red.add(this,a)};d.prototype.redIAdd=function(a){e(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,a)};d.prototype.redSub=function(a){e(this.red,"redSub works only with red numbers");return this.red.sub(this,a)};d.prototype.redISub= function(a){e(this.red,"redISub works only with red numbers");return this.red.isub(this,a)};d.prototype.redShl=function(a){e(this.red,"redShl works only with red numbers");return this.red.shl(this,a)};d.prototype.redMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.mul(this,a)};d.prototype.redIMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.imul(this,a)};d.prototype.redSqr=function(){e(this.red, "redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};d.prototype.redISqr=function(){e(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};d.prototype.redSqrt=function(){e(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};d.prototype.redInvm=function(){e(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};d.prototype.redNeg= function(){e(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};d.prototype.redPow=function(a){e(this.red&&!a.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,a)};var Q={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var a=new d(null);a.words=Array(Math.ceil(this.n/13));return a};p.prototype.ireduce=function(a){do{this.split(a,this.tmp);a=this.imulK(a);a=a.iadd(this.tmp);var b=a.bitLength()}while(b>this.n); b=b=a.length)a.words[0]=0,a.length=1;else{c=a.words[9];b.words[b.length++]=c&4194303;for(f=10;f>>22,c=b;c>>>=22;a.words[f-10]=c;a.length=0===c&&10>>=26;a.words[c]= f}0!==b&&(a.words[a.length++]=b);return a};d._prime=function(a){if(Q[a])return Q[a];if("k256"===a)var b=new v;else if("p224"===a)b=new r;else if("p192"===a)b=new B;else if("p25519"===a)b=new C;else throw Error("Unknown prime "+a);return Q[a]=b};z.prototype._verify1=function(a){e(0===a.negative,"red works only with positives");e(a.red,"red works only with red numbers")};z.prototype._verify2=function(a,b){e(0===(a.negative|b.negative),"red works only with positives");e(a.red&&a.red===b.red,"red works only with red numbers")}; z.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)};z.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)};z.prototype.add=function(a,b){this._verify2(a,b);a=a.add(b);0<=a.cmp(this.m)&&a.isub(this.m);return a._forceRed(this)};z.prototype.iadd=function(a,b){this._verify2(a,b);a=a.iadd(b);0<=a.cmp(this.m)&&a.isub(this.m);return a};z.prototype.sub=function(a,b){this._verify2(a,b);a=a.sub(b);0>a.cmpn(0)&& a.iadd(this.m);return a._forceRed(this)};z.prototype.isub=function(a,b){this._verify2(a,b);a=a.isub(b);0>a.cmpn(0)&&a.iadd(this.m);return a};z.prototype.shl=function(a,b){this._verify1(a);return this.imod(a.ushln(b))};z.prototype.imul=function(a,b){this._verify2(a,b);return this.imod(a.imul(b))};z.prototype.mul=function(a,b){this._verify2(a,b);return this.imod(a.mul(b))};z.prototype.isqr=function(a){return this.imul(a,a.clone())};z.prototype.sqr=function(a){return this.mul(a,a)};z.prototype.sqrt= function(a){if(a.isZero())return a.clone();var b=this.m.andln(3);e(1===b%2);if(3===b)return b=this.m.add(new d(1)).iushrn(2),this.pow(a,b);for(var c=this.m.subn(1),f=0;!c.isZero()&&0===c.andln(1);)f++,c.iushrn(1);e(!c.isZero());b=(new d(1)).toRed(this);var u=b.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=(new d(2*w*w)).toRed(this);0!==this.pow(w,y).cmp(u);)w.redIAdd(u);y=this.pow(w,c);u=this.pow(a,c.addn(1).iushrn(1));a=this.pow(a,c);for(c=f;0!==a.cmp(b);){w=a;for(f=0;0!==w.cmp(b);f++)w= w.redSqr();e(f>w&1;a!==c[0]&&(a=this.sqr(a));if(0===D&&0===u)y=0;else if(u<<=1,u|=D,y++,4===y||0===f&&0===w)a=this.mul(a,c[u]),u=y=0}w=26}return a};z.prototype.convertTo=function(a){var b=a.umod(this.m);return b===a?b.clone():b};z.prototype.convertFrom=function(a){a=a.clone();a.red=null;return a};d.mont=function(a){return new F(a)};t(F,z);F.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))};F.prototype.convertFrom=function(a){a=this.imod(a.mul(this.rinv)); a.red=null;return a};F.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;a=a.imul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return(new d(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift); 0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof S||S,this)}; shadow$provide[115]=function(O,E,S,J){function g(t){this.rand=t}var x;S.exports=function(t){x||(x=new g(null));return x.generate(t)};S.exports.Rand=g;g.prototype.generate=function(t){return this._rand(t)};g.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);t=new Uint8Array(t);for(var d=0;dM;M+=2){for(var R=Math.ceil(Math.sqrt(M)),L=0;Lz)return 2===F||5===F?new d([140,123]):new d([140,39]);F=new d(F);for(var K,M;;){for(K= new d(t(Math.ceil(z/8)));K.bitLength()>z;)K.ishrn(1);K.isEven()&&K.iadd(k);K.testn(1)||K.iadd(h);if(!F.cmp(h))for(;K.mod(n).cmp(r);)K.iadd(B);else if(!F.cmp(m))for(;K.mod(p).cmp(v);)K.iadd(B);M=K.shrn(1);if(g(M)&&g(K)&&x(M)&&x(K)&&l.test(M)&&l.test(K))return K}}var t=E(39);S.exports=e;e.simpleSieve=g;e.fermatTest=x;var d=E(113),n=new d(24),l=new (E(116)),k=new d(1),h=new d(2),m=new d(5);new d(16);new d(8);var p=new d(10),v=new d(3);new d(7);var r=new d(11),B=new d(4);new d(12);var C=null}; shadow$provide[118]=function(O,E,S,J){S.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"}, modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"}, modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"}, modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"}, modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"}, modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}; shadow$provide[119]=function(O,E,S,J){function g(z,F){F=F||"utf8";d.isBuffer(z)||(z=new d(z,F));this._pub=new n(z);return this}function x(z,F){F=F||"utf8";d.isBuffer(z)||(z=new d(z,F));this._priv=new n(z);return this}function e(z,F,K){this.setGenerator(F);this.__prime=new n(z);this._prime=n.mont(this.__prime);this._primeLen=z.length;this._primeCode=this._priv=this._pub=void 0;K?(this.setPublicKey=g,this.setPrivateKey=x):this._primeCode=8}function t(z,F){z=new d(z.toArray());return F?z.toString(F): z}var d=E(37).Buffer,n=E(113),l=new (E(116)),k=new n(24),h=new n(11),m=new n(10),p=new n(3),v=new n(7),r=E(117),B=E(39);S.exports=e;var C={};Object.defineProperty(e.prototype,"verifyError",{enumerable:!0,get:function(){if("number"!==typeof this._primeCode){var z=this.__prime,F=this.__gen.toString("hex");var K=[F,z.toString(16)].join("_");if(K in C)K=C[K];else{var M=0;if(!z.isEven()&&r.simpleSieve&&r.fermatTest(z)&&l.test(z))switch(l.test(z.shrn(1))||(M+=2),F){case "02":z.mod(k).cmp(h)&&(M+=8);break; case "05":z=z.mod(m);z.cmp(p)&&z.cmp(v)&&(M+=8);break;default:M+=4}else M+=1,M="02"===F||"05"===F?M+8:M+4;K=C[K]=M}this._primeCode=K}return this._primeCode}});e.prototype.generateKeys=function(){this._priv||(this._priv=new n(B(this._primeLen)));this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed();return this.getPublicKey()};e.prototype.computeSecret=function(z){z=new n(z);z=z.toRed(this._prime);z=z.redPow(this._priv).fromRed();z=new d(z.toArray());var F=this.getPrime();z.length=f)return f-48;if(65<=f&&70>=f)return f-55;if(97<=f&& 102>=f)return f-87;e(!1,"Invalid character in "+c)}function l(c,f,u){var y=n(c,u);u-1>=f&&(y|=n(c,u-1)<<4);return y}function k(c,f,u,y){var w=0;u=Math.min(c.length,u);for(var A=f;A>>26,P=D&67108863;D=Math.min(H,f.length-1);for(var U=Math.max(0,H-c.length+1);U<=D;U++)w=c.words[H-U|0]|0,A=f.words[U]|0,w=w*A+P,G+=w/67108864|0,P=w&67108863;u.words[H]=P|0;D=G|0}0!==D?u.words[H]=D|0:u.length--;return u._strip()}function v(c,f,u){u.negative=f.negative^c.negative;u.length=c.length+f.length;for(var y=0,w=0,A=0;A>>26)|0;w+=D>>>26;D&=67108863}u.words[A]=y;y=D}0!==y?u.words[A]=y:u.length--;return u._strip()}function r(c,f){this.name=c;this.p=new d(f,16);this.n=this.p.bitLength();this.k=(new d(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function B(){r.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")} function C(){r.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function z(){r.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function F(){r.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function K(c){"string"===typeof c?(c=d._prime(c),this.m=c.p,this.prime=c):(e(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null)}function M(c){K.call(this,c);this.shift=this.m.bitLength();0!==this.shift% 26&&(this.shift+=26-this.shift%26);this.r=(new d(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof g?g.exports=d:x.BN=d;d.BN=d;d.wordSize=26;try{var R="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:E(44).Buffer}catch(c){}d.isBN=function(c){return c instanceof d?!0:null!==c&&"object"===typeof c&&c.constructor.wordSize=== d.wordSize&&Array.isArray(c.words)};d.max=function(c,f){return 0c.cmp(f)?c:f};d.prototype._init=function(c,f,u){if("number"===typeof c)return this._initNumber(c,f,u);if("object"===typeof c)return this._initArray(c,f,u);"hex"===f&&(f=16);e(f===(f|0)&&2<=f&&36>=f);c=c.toString().replace(/\s+/g,"");var y=0;"-"===c[0]&&(y++,this.negative=1);yc&&(this.negative=1,c=-c);67108864>c?(this.words=[c&67108863],this.length=1):4503599627370496>c?(this.words=[c&67108863,c/67108864&67108863],this.length=2):(e(9007199254740992>c),this.words=[c&67108863,c/67108864&67108863,1],this.length=3);"le"===u&&this._initArray(this.toArray(),f,u)};d.prototype._initArray=function(c,f,u){e("number"===typeof c.length);if(0>=c.length)return this.words=[0],this.length=1,this;this.length=Math.ceil(c.length/3);this.words=Array(this.length);for(f=0;f< this.length;f++)this.words[f]=0;var y=0;if("be"===u)for(f=c.length-1,u=0;0<=f;f-=3){var w=c[f]|c[f-1]<<8|c[f-2]<<16;this.words[u]|=w<>>26-y&67108863;y+=24;26<=y&&(y-=26,u++)}else if("le"===u)for(u=f=0;f>>26-y&67108863,y+=24,26<=y&&(y-=26,u++);return this._strip()};d.prototype._parseHex=function(c,f,u){this.length=Math.ceil((c.length-f)/6);this.words=Array(this.length);for(var y= 0;y=f;y-=2)u=l(c,f,y)<>>26):w+=8;else for(y=0===(c.length-f)%2?f+1:f;y>>26):w+=8;this._strip()};d.prototype._parseBase=function(c,f,u){this.words=[0];this.length=1;for(var y=0,w=1;67108863>=w;w*=f)y++;y--;w=w/f|0;var A=c.length-u,D=A%y;A=Math.min(A,A-D)+u;for(var H=u;Hthis.words[0]+u?this.words[0]+=u:this._iaddn(u);if(0!==D){y=1;u=k(c,H,c.length,f);for(H=0;Hthis.words[0]+u?this.words[0]+=u:this._iaddn(u)}this._strip()};d.prototype.copy=function(c){c.words=Array(this.length);for(var f=0;f>>24-c&16777215;c+=2;26<=c&&(c-=26,w--);u=0!==y||w!==this.length-1?L[6- D.length]+D+u:D+u}for(0!==y&&(u=y.toString(16)+u);0!==u.length%f;)u="0"+u;0!==this.negative&&(u="-"+u);return u}if(c===(c|0)&&2<=c&&36>=c){y=V[c];w=Q[c];u="";A=this.clone();for(A.negative=0;!A.isZero();)D=A.modrn(w).toString(c),A=A.idivn(w),u=A.isZero()?D+u:L[y-D.length]+D+u;for(this.isZero()&&(u="0"+u);0!==u.length%f;)u="0"+u;0!==this.negative&&(u="-"+u);return u}e(!1,"Base should be between 2 and 36")};d.prototype.toNumber=function(){var c=this.words[0];2===this.length?c+=67108864*this.words[1]: 3===this.length&&1===this.words[2]?c+=4503599627370496+67108864*this.words[1]:2>8&255),f>16&255),6===w?(f>24&255),w=u=0):(u>>>=24,w+=2);if(f>8&255),0<=f&&(c[f--]=u>>16&255),6===w?(0<=f&&(c[f--]=u>>24&255),w=u=0):(u>>>=24,w+=2);if(0<=f)for(c[f--]=u;0<=f;)c[f--]=0};d.prototype._countBits=Math.clz32?function(c){return 32-Math.clz32(c)}:function(c){var f=0;4096<=c&&(f+=13,c>>>=13);64<=c&&(f+=7,c>>>=7);8<=c&&(f+=4,c>>>=4);2<=c&&(f+=2,c>>>=2);return f+c};d.prototype._zeroBits=function(c){if(0===c)return 26;var f=0;0===(c&8191)&&(f+=13,c>>>=13);0===(c&127)&&(f+=7,c>>>=7);0===(c& 15)&&(f+=4,c>>>=4);0===(c&3)&&(f+=2,c>>>=2);0===(c&1)&&f++;return f};d.prototype.bitLength=function(){var c=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+c};d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,f=0;fc.length?this.clone().ior(c):c.clone().ior(this)};d.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)};d.prototype.iuand=function(c){var f=this.length>c.length?c:this;for(var u=0;u c.length?this.clone().iand(c):c.clone().iand(this)};d.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)};d.prototype.iuxor=function(c){if(this.length>c.length)var f=this;else f=c,c=this;for(var u=0;u c.length?this.clone().ixor(c):c.clone().ixor(this)};d.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)};d.prototype.inotn=function(c){e("number"===typeof c&&0<=c);var f=Math.ceil(c/26)|0;c%=26;this._expand(f);0>26-c);return this._strip()};d.prototype.notn=function(c){return this.clone().inotn(c)};d.prototype.setn=function(c,f){e("number"=== typeof c&&0<=c);var u=c/26|0;c%=26;this._expand(u+1);this.words[u]=f?this.words[u]|1<c.length)var u=this;else u=c,c=this;for(var y=f=0;y>>=26;for(;0!==f&&y>>=26;this.length=u.length;if(0!==f)this.words[this.length]=f,this.length++;else if(u!==this)for(;yc.length?this.clone().iadd(c):c.clone().iadd(this)}; d.prototype.isub=function(c){if(0!==c.negative){c.negative=0;var f=this.iadd(c);c.negative=1;return f._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();f=this.cmp(c);if(0===f)return this.negative=0,this.length=1,this.words[0]=0,this;if(0>26,this.words[w]=f&67108863;for(;0!==y&&w>26,this.words[w]=f&67108863;if(0=== y&&w>>13,U=y[1]|0;H=U&8191;var ca=U>>>13,ha=y[2]|0;U=ha&8191;var da=ha>>>13,ja=y[3]|0;ha=ja&8191;var Z=ja>>>13,ba=y[4]|0;ja=ba&8191;var X=ba>>>13,oa=y[5]|0;ba=oa&8191;var sa=oa>>>13,ka=y[6]|0;oa=ka&8191;var va=ka>>> 13,ua=y[7]|0;ka=ua&8191;var wa=ua>>>13,ta=y[8]|0;ua=ta&8191;ta>>>=13;var ya=y[9]|0;y=ya&8191;ya>>>=13;var Aa=w[0]|0,Ba=Aa&8191,Da=Aa>>>13,za=w[1]|0;Aa=za&8191;var ra=za>>>13,pa=w[2]|0;za=pa&8191;var Y=pa>>>13,ia=w[3]|0;pa=ia&8191;var la=ia>>>13,qa=w[4]|0;ia=qa&8191;var W=qa>>>13,T=w[5]|0;qa=T&8191;var N=T>>>13,aa=w[6]|0;T=aa&8191;var ea=aa>>>13,fa=w[7]|0;aa=fa&8191;var na=fa>>>13,I=w[8]|0;fa=I&8191;I>>>=13;var xa=w[9]|0;w=xa&8191;xa>>>=13;u.negative=c.negative^f.negative;u.length=19;var ma=Math.imul(G, Ba);c=Math.imul(G,Da);c=c+Math.imul(P,Ba)|0;f=Math.imul(P,Da);var Fa=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(Fa>>>26)|0;Fa&=67108863;ma=Math.imul(H,Ba);c=Math.imul(H,Da);c=c+Math.imul(ca,Ba)|0;f=Math.imul(ca,Da);ma=ma+Math.imul(G,Aa)|0;c=c+Math.imul(G,ra)|0;c=c+Math.imul(P,Aa)|0;f=f+Math.imul(P,ra)|0;var Ga=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(Ga>>>26)|0;Ga&=67108863;ma=Math.imul(U,Ba);c=Math.imul(U,Da);c=c+Math.imul(da,Ba)|0;f=Math.imul(da,Da);ma=ma+Math.imul(H,Aa)|0;c=c+Math.imul(H,ra)| 0;c=c+Math.imul(ca,Aa)|0;f=f+Math.imul(ca,ra)|0;ma=ma+Math.imul(G,za)|0;c=c+Math.imul(G,Y)|0;c=c+Math.imul(P,za)|0;f=f+Math.imul(P,Y)|0;var Ia=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(Ia>>>26)|0;Ia&=67108863;ma=Math.imul(ha,Ba);c=Math.imul(ha,Da);c=c+Math.imul(Z,Ba)|0;f=Math.imul(Z,Da);ma=ma+Math.imul(U,Aa)|0;c=c+Math.imul(U,ra)|0;c=c+Math.imul(da,Aa)|0;f=f+Math.imul(da,ra)|0;ma=ma+Math.imul(H,za)|0;c=c+Math.imul(H,Y)|0;c=c+Math.imul(ca,za)|0;f=f+Math.imul(ca,Y)|0;ma=ma+Math.imul(G,pa)|0;c=c+Math.imul(G, la)|0;c=c+Math.imul(P,pa)|0;f=f+Math.imul(P,la)|0;var Ha=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(Ha>>>26)|0;Ha&=67108863;ma=Math.imul(ja,Ba);c=Math.imul(ja,Da);c=c+Math.imul(X,Ba)|0;f=Math.imul(X,Da);ma=ma+Math.imul(ha,Aa)|0;c=c+Math.imul(ha,ra)|0;c=c+Math.imul(Z,Aa)|0;f=f+Math.imul(Z,ra)|0;ma=ma+Math.imul(U,za)|0;c=c+Math.imul(U,Y)|0;c=c+Math.imul(da,za)|0;f=f+Math.imul(da,Y)|0;ma=ma+Math.imul(H,pa)|0;c=c+Math.imul(H,la)|0;c=c+Math.imul(ca,pa)|0;f=f+Math.imul(ca,la)|0;ma=ma+Math.imul(G,ia)|0; c=c+Math.imul(G,W)|0;c=c+Math.imul(P,ia)|0;f=f+Math.imul(P,W)|0;var Ma=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(Ma>>>26)|0;Ma&=67108863;ma=Math.imul(ba,Ba);c=Math.imul(ba,Da);c=c+Math.imul(sa,Ba)|0;f=Math.imul(sa,Da);ma=ma+Math.imul(ja,Aa)|0;c=c+Math.imul(ja,ra)|0;c=c+Math.imul(X,Aa)|0;f=f+Math.imul(X,ra)|0;ma=ma+Math.imul(ha,za)|0;c=c+Math.imul(ha,Y)|0;c=c+Math.imul(Z,za)|0;f=f+Math.imul(Z,Y)|0;ma=ma+Math.imul(U,pa)|0;c=c+Math.imul(U,la)|0;c=c+Math.imul(da,pa)|0;f=f+Math.imul(da,la)|0;ma=ma+Math.imul(H, ia)|0;c=c+Math.imul(H,W)|0;c=c+Math.imul(ca,ia)|0;f=f+Math.imul(ca,W)|0;ma=ma+Math.imul(G,qa)|0;c=c+Math.imul(G,N)|0;c=c+Math.imul(P,qa)|0;f=f+Math.imul(P,N)|0;var La=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(La>>>26)|0;La&=67108863;ma=Math.imul(oa,Ba);c=Math.imul(oa,Da);c=c+Math.imul(va,Ba)|0;f=Math.imul(va,Da);ma=ma+Math.imul(ba,Aa)|0;c=c+Math.imul(ba,ra)|0;c=c+Math.imul(sa,Aa)|0;f=f+Math.imul(sa,ra)|0;ma=ma+Math.imul(ja,za)|0;c=c+Math.imul(ja,Y)|0;c=c+Math.imul(X,za)|0;f=f+Math.imul(X,Y)|0;ma= ma+Math.imul(ha,pa)|0;c=c+Math.imul(ha,la)|0;c=c+Math.imul(Z,pa)|0;f=f+Math.imul(Z,la)|0;ma=ma+Math.imul(U,ia)|0;c=c+Math.imul(U,W)|0;c=c+Math.imul(da,ia)|0;f=f+Math.imul(da,W)|0;ma=ma+Math.imul(H,qa)|0;c=c+Math.imul(H,N)|0;c=c+Math.imul(ca,qa)|0;f=f+Math.imul(ca,N)|0;ma=ma+Math.imul(G,T)|0;c=c+Math.imul(G,ea)|0;c=c+Math.imul(P,T)|0;f=f+Math.imul(P,ea)|0;var Na=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(Na>>>26)|0;Na&=67108863;ma=Math.imul(ka,Ba);c=Math.imul(ka,Da);c=c+Math.imul(wa,Ba)|0;f=Math.imul(wa, Da);ma=ma+Math.imul(oa,Aa)|0;c=c+Math.imul(oa,ra)|0;c=c+Math.imul(va,Aa)|0;f=f+Math.imul(va,ra)|0;ma=ma+Math.imul(ba,za)|0;c=c+Math.imul(ba,Y)|0;c=c+Math.imul(sa,za)|0;f=f+Math.imul(sa,Y)|0;ma=ma+Math.imul(ja,pa)|0;c=c+Math.imul(ja,la)|0;c=c+Math.imul(X,pa)|0;f=f+Math.imul(X,la)|0;ma=ma+Math.imul(ha,ia)|0;c=c+Math.imul(ha,W)|0;c=c+Math.imul(Z,ia)|0;f=f+Math.imul(Z,W)|0;ma=ma+Math.imul(U,qa)|0;c=c+Math.imul(U,N)|0;c=c+Math.imul(da,qa)|0;f=f+Math.imul(da,N)|0;ma=ma+Math.imul(H,T)|0;c=c+Math.imul(H, ea)|0;c=c+Math.imul(ca,T)|0;f=f+Math.imul(ca,ea)|0;ma=ma+Math.imul(G,aa)|0;c=c+Math.imul(G,na)|0;c=c+Math.imul(P,aa)|0;f=f+Math.imul(P,na)|0;var Ca=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(Ca>>>26)|0;Ca&=67108863;ma=Math.imul(ua,Ba);c=Math.imul(ua,Da);c=c+Math.imul(ta,Ba)|0;f=Math.imul(ta,Da);ma=ma+Math.imul(ka,Aa)|0;c=c+Math.imul(ka,ra)|0;c=c+Math.imul(wa,Aa)|0;f=f+Math.imul(wa,ra)|0;ma=ma+Math.imul(oa,za)|0;c=c+Math.imul(oa,Y)|0;c=c+Math.imul(va,za)|0;f=f+Math.imul(va,Y)|0;ma=ma+Math.imul(ba, pa)|0;c=c+Math.imul(ba,la)|0;c=c+Math.imul(sa,pa)|0;f=f+Math.imul(sa,la)|0;ma=ma+Math.imul(ja,ia)|0;c=c+Math.imul(ja,W)|0;c=c+Math.imul(X,ia)|0;f=f+Math.imul(X,W)|0;ma=ma+Math.imul(ha,qa)|0;c=c+Math.imul(ha,N)|0;c=c+Math.imul(Z,qa)|0;f=f+Math.imul(Z,N)|0;ma=ma+Math.imul(U,T)|0;c=c+Math.imul(U,ea)|0;c=c+Math.imul(da,T)|0;f=f+Math.imul(da,ea)|0;ma=ma+Math.imul(H,aa)|0;c=c+Math.imul(H,na)|0;c=c+Math.imul(ca,aa)|0;f=f+Math.imul(ca,na)|0;ma=ma+Math.imul(G,fa)|0;c=c+Math.imul(G,I)|0;c=c+Math.imul(P,fa)| 0;f=f+Math.imul(P,I)|0;var Ta=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(Ta>>>26)|0;Ta&=67108863;ma=Math.imul(y,Ba);c=Math.imul(y,Da);c=c+Math.imul(ya,Ba)|0;f=Math.imul(ya,Da);ma=ma+Math.imul(ua,Aa)|0;c=c+Math.imul(ua,ra)|0;c=c+Math.imul(ta,Aa)|0;f=f+Math.imul(ta,ra)|0;ma=ma+Math.imul(ka,za)|0;c=c+Math.imul(ka,Y)|0;c=c+Math.imul(wa,za)|0;f=f+Math.imul(wa,Y)|0;ma=ma+Math.imul(oa,pa)|0;c=c+Math.imul(oa,la)|0;c=c+Math.imul(va,pa)|0;f=f+Math.imul(va,la)|0;ma=ma+Math.imul(ba,ia)|0;c=c+Math.imul(ba,W)| 0;c=c+Math.imul(sa,ia)|0;f=f+Math.imul(sa,W)|0;ma=ma+Math.imul(ja,qa)|0;c=c+Math.imul(ja,N)|0;c=c+Math.imul(X,qa)|0;f=f+Math.imul(X,N)|0;ma=ma+Math.imul(ha,T)|0;c=c+Math.imul(ha,ea)|0;c=c+Math.imul(Z,T)|0;f=f+Math.imul(Z,ea)|0;ma=ma+Math.imul(U,aa)|0;c=c+Math.imul(U,na)|0;c=c+Math.imul(da,aa)|0;f=f+Math.imul(da,na)|0;ma=ma+Math.imul(H,fa)|0;c=c+Math.imul(H,I)|0;c=c+Math.imul(ca,fa)|0;f=f+Math.imul(ca,I)|0;ma=ma+Math.imul(G,w)|0;c=c+Math.imul(G,xa)|0;c=c+Math.imul(P,w)|0;f=f+Math.imul(P,xa)|0;G=(D+ ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(G>>>26)|0;G&=67108863;ma=Math.imul(y,Aa);c=Math.imul(y,ra);c=c+Math.imul(ya,Aa)|0;f=Math.imul(ya,ra);ma=ma+Math.imul(ua,za)|0;c=c+Math.imul(ua,Y)|0;c=c+Math.imul(ta,za)|0;f=f+Math.imul(ta,Y)|0;ma=ma+Math.imul(ka,pa)|0;c=c+Math.imul(ka,la)|0;c=c+Math.imul(wa,pa)|0;f=f+Math.imul(wa,la)|0;ma=ma+Math.imul(oa,ia)|0;c=c+Math.imul(oa,W)|0;c=c+Math.imul(va,ia)|0;f=f+Math.imul(va,W)|0;ma=ma+Math.imul(ba,qa)|0;c=c+Math.imul(ba,N)|0;c=c+Math.imul(sa,qa)|0;f=f+Math.imul(sa, N)|0;ma=ma+Math.imul(ja,T)|0;c=c+Math.imul(ja,ea)|0;c=c+Math.imul(X,T)|0;f=f+Math.imul(X,ea)|0;ma=ma+Math.imul(ha,aa)|0;c=c+Math.imul(ha,na)|0;c=c+Math.imul(Z,aa)|0;f=f+Math.imul(Z,na)|0;ma=ma+Math.imul(U,fa)|0;c=c+Math.imul(U,I)|0;c=c+Math.imul(da,fa)|0;f=f+Math.imul(da,I)|0;ma=ma+Math.imul(H,w)|0;c=c+Math.imul(H,xa)|0;c=c+Math.imul(ca,w)|0;f=f+Math.imul(ca,xa)|0;H=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(H>>>26)|0;H&=67108863;ma=Math.imul(y,za);c=Math.imul(y,Y);c=c+Math.imul(ya,za)|0;f=Math.imul(ya, Y);ma=ma+Math.imul(ua,pa)|0;c=c+Math.imul(ua,la)|0;c=c+Math.imul(ta,pa)|0;f=f+Math.imul(ta,la)|0;ma=ma+Math.imul(ka,ia)|0;c=c+Math.imul(ka,W)|0;c=c+Math.imul(wa,ia)|0;f=f+Math.imul(wa,W)|0;ma=ma+Math.imul(oa,qa)|0;c=c+Math.imul(oa,N)|0;c=c+Math.imul(va,qa)|0;f=f+Math.imul(va,N)|0;ma=ma+Math.imul(ba,T)|0;c=c+Math.imul(ba,ea)|0;c=c+Math.imul(sa,T)|0;f=f+Math.imul(sa,ea)|0;ma=ma+Math.imul(ja,aa)|0;c=c+Math.imul(ja,na)|0;c=c+Math.imul(X,aa)|0;f=f+Math.imul(X,na)|0;ma=ma+Math.imul(ha,fa)|0;c=c+Math.imul(ha, I)|0;c=c+Math.imul(Z,fa)|0;f=f+Math.imul(Z,I)|0;ma=ma+Math.imul(U,w)|0;c=c+Math.imul(U,xa)|0;c=c+Math.imul(da,w)|0;f=f+Math.imul(da,xa)|0;U=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(U>>>26)|0;U&=67108863;ma=Math.imul(y,pa);c=Math.imul(y,la);c=c+Math.imul(ya,pa)|0;f=Math.imul(ya,la);ma=ma+Math.imul(ua,ia)|0;c=c+Math.imul(ua,W)|0;c=c+Math.imul(ta,ia)|0;f=f+Math.imul(ta,W)|0;ma=ma+Math.imul(ka,qa)|0;c=c+Math.imul(ka,N)|0;c=c+Math.imul(wa,qa)|0;f=f+Math.imul(wa,N)|0;ma=ma+Math.imul(oa,T)|0;c=c+Math.imul(oa, ea)|0;c=c+Math.imul(va,T)|0;f=f+Math.imul(va,ea)|0;ma=ma+Math.imul(ba,aa)|0;c=c+Math.imul(ba,na)|0;c=c+Math.imul(sa,aa)|0;f=f+Math.imul(sa,na)|0;ma=ma+Math.imul(ja,fa)|0;c=c+Math.imul(ja,I)|0;c=c+Math.imul(X,fa)|0;f=f+Math.imul(X,I)|0;ma=ma+Math.imul(ha,w)|0;c=c+Math.imul(ha,xa)|0;c=c+Math.imul(Z,w)|0;f=f+Math.imul(Z,xa)|0;ha=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(ha>>>26)|0;ha&=67108863;ma=Math.imul(y,ia);c=Math.imul(y,W);c=c+Math.imul(ya,ia)|0;f=Math.imul(ya,W);ma=ma+Math.imul(ua,qa)|0;c=c+ Math.imul(ua,N)|0;c=c+Math.imul(ta,qa)|0;f=f+Math.imul(ta,N)|0;ma=ma+Math.imul(ka,T)|0;c=c+Math.imul(ka,ea)|0;c=c+Math.imul(wa,T)|0;f=f+Math.imul(wa,ea)|0;ma=ma+Math.imul(oa,aa)|0;c=c+Math.imul(oa,na)|0;c=c+Math.imul(va,aa)|0;f=f+Math.imul(va,na)|0;ma=ma+Math.imul(ba,fa)|0;c=c+Math.imul(ba,I)|0;c=c+Math.imul(sa,fa)|0;f=f+Math.imul(sa,I)|0;ma=ma+Math.imul(ja,w)|0;c=c+Math.imul(ja,xa)|0;c=c+Math.imul(X,w)|0;f=f+Math.imul(X,xa)|0;ja=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(ja>>>26)|0;ja&=67108863; ma=Math.imul(y,qa);c=Math.imul(y,N);c=c+Math.imul(ya,qa)|0;f=Math.imul(ya,N);ma=ma+Math.imul(ua,T)|0;c=c+Math.imul(ua,ea)|0;c=c+Math.imul(ta,T)|0;f=f+Math.imul(ta,ea)|0;ma=ma+Math.imul(ka,aa)|0;c=c+Math.imul(ka,na)|0;c=c+Math.imul(wa,aa)|0;f=f+Math.imul(wa,na)|0;ma=ma+Math.imul(oa,fa)|0;c=c+Math.imul(oa,I)|0;c=c+Math.imul(va,fa)|0;f=f+Math.imul(va,I)|0;ma=ma+Math.imul(ba,w)|0;c=c+Math.imul(ba,xa)|0;c=c+Math.imul(sa,w)|0;f=f+Math.imul(sa,xa)|0;ba=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(ba>>>26)| 0;ba&=67108863;ma=Math.imul(y,T);c=Math.imul(y,ea);c=c+Math.imul(ya,T)|0;f=Math.imul(ya,ea);ma=ma+Math.imul(ua,aa)|0;c=c+Math.imul(ua,na)|0;c=c+Math.imul(ta,aa)|0;f=f+Math.imul(ta,na)|0;ma=ma+Math.imul(ka,fa)|0;c=c+Math.imul(ka,I)|0;c=c+Math.imul(wa,fa)|0;f=f+Math.imul(wa,I)|0;ma=ma+Math.imul(oa,w)|0;c=c+Math.imul(oa,xa)|0;c=c+Math.imul(va,w)|0;f=f+Math.imul(va,xa)|0;oa=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(oa>>>26)|0;oa&=67108863;ma=Math.imul(y,aa);c=Math.imul(y,na);c=c+Math.imul(ya,aa)|0; f=Math.imul(ya,na);ma=ma+Math.imul(ua,fa)|0;c=c+Math.imul(ua,I)|0;c=c+Math.imul(ta,fa)|0;f=f+Math.imul(ta,I)|0;ma=ma+Math.imul(ka,w)|0;c=c+Math.imul(ka,xa)|0;c=c+Math.imul(wa,w)|0;f=f+Math.imul(wa,xa)|0;ka=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(ka>>>26)|0;ka&=67108863;ma=Math.imul(y,fa);c=Math.imul(y,I);c=c+Math.imul(ya,fa)|0;f=Math.imul(ya,I);ma=ma+Math.imul(ua,w)|0;c=c+Math.imul(ua,xa)|0;c=c+Math.imul(ta,w)|0;f=f+Math.imul(ta,xa)|0;ua=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(ua>>>26)|0; ua&=67108863;ma=Math.imul(y,w);c=Math.imul(y,xa);c=c+Math.imul(ya,w)|0;f=Math.imul(ya,xa);P=(D+ma|0)+((c&8191)<<13)|0;D=(f+(c>>>13)|0)+(P>>>26)|0;A[0]=Fa;A[1]=Ga;A[2]=Ia;A[3]=Ha;A[4]=Ma;A[5]=La;A[6]=Na;A[7]=Ca;A[8]=Ta;A[9]=G;A[10]=H;A[11]=U;A[12]=ha;A[13]=ja;A[14]=ba;A[15]=oa;A[16]=ka;A[17]=ua;A[18]=P&67108863;0!==D&&(A[19]=D,u.length++);return u};Math.imul||(a=p);d.prototype.mulTo=function(c,f){var u=this.length+c.length;return 10===this.length&&10===c.length?a(this,c,f):63>u?p(this,c,f):v(this, c,f)};d.prototype.mul=function(c){var f=new d(null);f.words=Array(this.length+c.length);return this.mulTo(c,f)};d.prototype.mulf=function(c){var f=new d(null);f.words=Array(this.length+c.length);return v(this,c,f)};d.prototype.imul=function(c){return this.clone().mulTo(c,this)};d.prototype.imuln=function(c){var f=0>c;f&&(c=-c);e("number"===typeof c);e(67108864>c);for(var u=0,y=0;y>=26;u+=w/67108864|0;u+=A>>>26;this.words[y]= A&67108863}0!==u&&(this.words[y]=u,this.length++);return f?this.ineg():this};d.prototype.muln=function(c){return this.clone().imuln(c)};d.prototype.sqr=function(){return this.mul(this)};d.prototype.isqr=function(){return this.imul(this.clone())};d.prototype.pow=function(c){for(var f=Array(c.bitLength()),u=0;u>>u%26&1;if(0===f.length)return new d(1);c=this;for(u=0;u>>26-f<<26-f,y;if(0!==f){var w=0;for(y=0;y>>26-f}w&&(this.words[y]=w,this.length++)}if(0!==c){for(y=this.length-1;0<=y;y--)this.words[y+c]=this.words[y];for(y=0;y>>y<w)for(this.length-=w,A=0;A=f);A--){var D=this.words[A]|0;this.words[A]=w<<26-y|D>>>y;w=D&c}u&&0!==w&&(u.words[u.length++]=w);0===this.length&&(this.words[0]= 0,this.length=1);return this._strip()};d.prototype.ishrn=function(c,f,u){e(0===this.negative);return this.iushrn(c,f,u)};d.prototype.shln=function(c){return this.clone().ishln(c)};d.prototype.ushln=function(c){return this.clone().iushln(c)};d.prototype.shrn=function(c){return this.clone().ishrn(c)};d.prototype.ushrn=function(c){return this.clone().iushrn(c)};d.prototype.testn=function(c){e("number"===typeof c&&0<=c);var f=c%26;c=(c-f)/26;return this.length<=c?!1:!!(this.words[c]&1<>>f<c);if(0>c)return this.isubn(-c);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)<= c)return this.words[0]=c-(this.words[0]|0),this.negative=0,this;this.negative=0;this.isubn(c);this.negative=1;return this}return this._iaddn(c)};d.prototype._iaddn=function(c){this.words[0]+=c;for(c=0;cc);if(0>c)return this.iaddn(-c);if(0!==this.negative)return this.negative= 0,this.iaddn(c),this.negative=1,this;this.words[0]-=c;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(c=0;cthis.words[c];c++)this.words[c]+=67108864,--this.words[c+1];return this._strip()};d.prototype.addn=function(c){return this.clone().iaddn(c)};d.prototype.subn=function(c){return this.clone().isubn(c)};d.prototype.iabs=function(){this.negative=0;return this};d.prototype.abs=function(){return this.clone().iabs()};d.prototype._ishlnsubmul= function(c,f,u){var y;this._expand(c.length+u);var w=0;for(y=0;y>26)-(w/67108864|0);this.words[y+u]=A&67108863}for(;y>26,this.words[y+u]=A&67108863;if(0===w)return this._strip();e(-1===w);for(y=w=0;y>26,this.words[y]=A&67108863;this.negative=1;return this._strip()};d.prototype._wordDiv=function(c,f){var u=this.clone(),y=c,w=y.words[y.length- 1]|0;c=26-this._countBits(w);0!==c&&(y=y.ushln(c),u.iushln(c),w=y.words[y.length-1]|0);var A=u.length-y.length;if("mod"!==f){var D=new d(null);D.length=A+1;D.words=Array(D.length);for(var H=0;Hthis.length||0>this.cmp(c)?{div:new d(0),mod:this}:1===c.length?"div"===f?{div:this.divn(c.words[0]),mod:null}:"mod"===f?{div:null,mod:new d(this.modrn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new d(this.modrn(c.words[0]))}:this._wordDiv(c,f)};d.prototype.div=function(c){return this.divmod(c,"div",!1).div};d.prototype.mod=function(c){return this.divmod(c, "mod",!1).mod};d.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod};d.prototype.divRound=function(c){var f=this.divmod(c);if(f.mod.isZero())return f.div;var u=0!==f.div.negative?f.mod.isub(c):f.mod,y=c.ushrn(1);c=c.andln(1);u=u.cmp(y);return 0>u||1===c&&0===u?f.div:0!==f.div.negative?f.div.isubn(1):f.div.iaddn(1)};d.prototype.modrn=function(c){var f=0>c;f&&(c=-c);e(67108863>=c);for(var u=67108864%c,y=0,w=this.length-1;0<=w;w--)y=(u*y+(this.words[w]|0))%c;return f?-y:y};d.prototype.modn= function(c){return this.modrn(c)};d.prototype.idivn=function(c){var f=0>c;f&&(c=-c);e(67108863>=c);for(var u=0,y=this.length-1;0<=y;y--)u=(this.words[y]|0)+67108864*u,this.words[y]=u/c|0,u%=c;this._strip();return f?this.ineg():this};d.prototype.divn=function(c){return this.clone().idivn(c)};d.prototype.egcd=function(c){e(0===c.negative);e(!c.isZero());var f=this,u=c.clone();f=0!==f.negative?f.umod(c):f.clone();c=new d(1);for(var y=new d(0),w=new d(0),A=new d(1),D=0;f.isEven()&&u.isEven();)f.iushrn(1), u.iushrn(1),++D;for(var H=u.clone(),G=f.clone();!f.isZero();){for(var P=0,U=1;0===(f.words[0]&U)&&26>P;++P,U<<=1);if(0P;++P,U<<=1);if(0D;++D,H<<=1);if(0D;++D,H<<=1);if(0f.cmpn(0)&&f.iadd(c);return f};d.prototype.gcd= function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var f=this.clone();c=c.clone();f.negative=0;for(var u=c.negative=0;f.isEven()&&c.isEven();u++)f.iushrn(1),c.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;c.isEven();)c.iushrn(1);var y=f.cmp(c);if(0>y)y=f,f=c,c=y;else if(0===y||0===c.cmpn(1))break;f.isub(c)}while(1);return c.iushln(u)};d.prototype.invm=function(c){return this.egcd(c).a.umod(c)};d.prototype.isEven=function(){return 0===(this.words[0]&1)};d.prototype.isOdd= function(){return 1===(this.words[0]&1)};d.prototype.andln=function(c){return this.words[0]&c};d.prototype.bincn=function(c){e("number"===typeof c);var f=c%26;c=(c-f)/26;f=1<>>26;u&=67108863;this.words[c]=u}0!==f&&(this.words[c]=f,this.length++);return this};d.prototype.isZero=function(){return 1===this.length&&0===this.words[0]};d.prototype.cmpn=function(c){var f=0>c; if(0!==this.negative&&!f)return-1;if(0===this.negative&&f)return 1;this._strip();1=c,"Number is too big"),f=this.words[0]|0,c=f===c?0:fc.length)return 1;if(this.lengthw&&(f=1);break}}return f};d.prototype.gtn=function(c){return 1===this.cmpn(c)};d.prototype.gt=function(c){return 1===this.cmp(c)};d.prototype.gten=function(c){return 0<=this.cmpn(c)};d.prototype.gte=function(c){return 0<=this.cmp(c)};d.prototype.ltn=function(c){return-1===this.cmpn(c)};d.prototype.lt=function(c){return-1===this.cmp(c)};d.prototype.lten=function(c){return 0>=this.cmpn(c)};d.prototype.lte=function(c){return 0>=this.cmp(c)}; d.prototype.eqn=function(c){return 0===this.cmpn(c)};d.prototype.eq=function(c){return 0===this.cmp(c)};d.red=function(c){return new K(c)};d.prototype.toRed=function(c){e(!this.red,"Already a number in reduction context");e(0===this.negative,"red works only with positives");return c.convertTo(this)._forceRed(c)};d.prototype.fromRed=function(){e(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};d.prototype._forceRed=function(c){this.red=c;return this}; d.prototype.forceRed=function(c){e(!this.red,"Already a number in reduction context");return this._forceRed(c)};d.prototype.redAdd=function(c){e(this.red,"redAdd works only with red numbers");return this.red.add(this,c)};d.prototype.redIAdd=function(c){e(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,c)};d.prototype.redSub=function(c){e(this.red,"redSub works only with red numbers");return this.red.sub(this,c)};d.prototype.redISub=function(c){e(this.red,"redISub works only with red numbers"); return this.red.isub(this,c)};d.prototype.redShl=function(c){e(this.red,"redShl works only with red numbers");return this.red.shl(this,c)};d.prototype.redMul=function(c){e(this.red,"redMul works only with red numbers");this.red._verify2(this,c);return this.red.mul(this,c)};d.prototype.redIMul=function(c){e(this.red,"redMul works only with red numbers");this.red._verify2(this,c);return this.red.imul(this,c)};d.prototype.redSqr=function(){e(this.red,"redSqr works only with red numbers");this.red._verify1(this); return this.red.sqr(this)};d.prototype.redISqr=function(){e(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};d.prototype.redSqrt=function(){e(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};d.prototype.redInvm=function(){e(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};d.prototype.redNeg=function(){e(this.red,"redNeg works only with red numbers"); this.red._verify1(this);return this.red.neg(this)};d.prototype.redPow=function(c){e(this.red&&!c.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,c)};var b={k256:null,p224:null,p192:null,p25519:null};r.prototype._tmp=function(){var c=new d(null);c.words=Array(Math.ceil(this.n/13));return c};r.prototype.ireduce=function(c){do{this.split(c,this.tmp);c=this.imulK(c);c=c.iadd(this.tmp);var f=c.bitLength()}while(f>this.n);f=f=c.length)c.words[0]=0,c.length=1;else{u=c.words[9];f.words[f.length++]=u&4194303;for(y=10;y>>22,u=f;u>>>=22;c.words[y-10]=u;c.length=0===u&&10< c.length?c.length-10:c.length-9}};B.prototype.imulK=function(c){c.words[c.length]=0;c.words[c.length+1]=0;c.length+=2;for(var f=0,u=0;u>>=26;c.words[u]=y}0!==f&&(c.words[c.length++]=f);return c};d._prime=function(c){if(b[c])return b[c]; if("k256"===c)var f=new B;else if("p224"===c)f=new C;else if("p192"===c)f=new z;else if("p25519"===c)f=new F;else throw Error("Unknown prime "+c);return b[c]=f};K.prototype._verify1=function(c){e(0===c.negative,"red works only with positives");e(c.red,"red works only with red numbers")};K.prototype._verify2=function(c,f){e(0===(c.negative|f.negative),"red works only with positives");e(c.red&&c.red===f.red,"red works only with red numbers")};K.prototype.imod=function(c){if(this.prime)return this.prime.ireduce(c)._forceRed(this); h(c,c.umod(this.m)._forceRed(this));return c};K.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)};K.prototype.add=function(c,f){this._verify2(c,f);c=c.add(f);0<=c.cmp(this.m)&&c.isub(this.m);return c._forceRed(this)};K.prototype.iadd=function(c,f){this._verify2(c,f);c=c.iadd(f);0<=c.cmp(this.m)&&c.isub(this.m);return c};K.prototype.sub=function(c,f){this._verify2(c,f);c=c.sub(f);0>c.cmpn(0)&&c.iadd(this.m);return c._forceRed(this)};K.prototype.isub=function(c,f){this._verify2(c, f);c=c.isub(f);0>c.cmpn(0)&&c.iadd(this.m);return c};K.prototype.shl=function(c,f){this._verify1(c);return this.imod(c.ushln(f))};K.prototype.imul=function(c,f){this._verify2(c,f);return this.imod(c.imul(f))};K.prototype.mul=function(c,f){this._verify2(c,f);return this.imod(c.mul(f))};K.prototype.isqr=function(c){return this.imul(c,c.clone())};K.prototype.sqr=function(c){return this.mul(c,c)};K.prototype.sqrt=function(c){if(c.isZero())return c.clone();var f=this.m.andln(3);e(1===f%2);if(3===f)return f= this.m.add(new d(1)).iushrn(2),this.pow(c,f);for(var u=this.m.subn(1),y=0;!u.isZero()&&0===u.andln(1);)y++,u.iushrn(1);e(!u.isZero());f=(new d(1)).toRed(this);var w=f.redNeg(),A=this.m.subn(1).iushrn(1),D=this.m.bitLength();for(D=(new d(2*D*D)).toRed(this);0!==this.pow(D,A).cmp(w);)D.redIAdd(w);A=this.pow(D,u);w=this.pow(c,u.addn(1).iushrn(1));c=this.pow(c,u);for(u=y;0!==c.cmp(f);){D=c;for(y=0;0!==D.cmp(f);y++)D=D.redSqr();e(y>D&1;c!==u[0]&&(c=this.sqr(c)); if(0===G&&0===w)A=0;else if(w<<=1,w|=G,A++,4===A||0===y&&0===D)c=this.mul(c,u[w]),w=A=0}D=26}return c};K.prototype.convertTo=function(c){var f=c.umod(this.m);return f===c?f.clone():f};K.prototype.convertFrom=function(c){c=c.clone();c.red=null;return c};d.mont=function(c){return new M(c)};t(M,K);M.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))};M.prototype.convertFrom=function(c){c=this.imod(c.mul(this.rinv));c.red=null;return c};M.prototype.imul=function(c,f){if(c.isZero()|| f.isZero())return c.words[0]=0,c.length=1,c;c=c.imul(f);f=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);f=c=c.isub(f).iushrn(this.shift);0<=c.cmp(this.m)?f=c.isub(this.m):0>c.cmpn(0)&&(f=c.iadd(this.m));return f._forceRed(this)};M.prototype.mul=function(c,f){if(c.isZero()||f.isZero())return(new d(0))._forceRed(this);c=c.mul(f);f=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);f=c=c.isub(f).iushrn(this.shift);0<=c.cmp(this.m)?f=c.isub(this.m):0>c.cmpn(0)&&(f=c.iadd(this.m)); return f._forceRed(this)};M.prototype.invm=function(c){return this.imod(c._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof S||S,this)}; shadow$provide[123]=function(O,E,S,J){function g(n){var l=n.modulus.byteLength();do var k=new t(d(l));while(0<=k.cmp(n.modulus)||!k.umod(n.prime1)||!k.umod(n.prime2));return k}function x(n,l){var k=g(l);var h=k.toRed(t.mont(l.modulus)).redPow(new t(l.publicExponent)).fromRed();k=k.invm(l.modulus);var m=l.modulus.byteLength();n=(new t(n)).mul(h).umod(l.modulus);var p=n.toRed(t.mont(l.prime1)),v=n.toRed(t.mont(l.prime2));n=l.coefficient;h=l.prime1;var r=l.prime2;p=p.redPow(l.exponent1).fromRed();v= v.redPow(l.exponent2).fromRed();n=p.isub(v).imul(n).umod(h).imul(r);return v.iadd(n).imul(k).umod(l.modulus).toArrayLike(e,"be",m)}var e=E(37).Buffer,t=E(122),d=E(39);x.getr=g;S.exports=x}; shadow$provide[124]=function(O,E,S,J){S.exports={license:"MIT",devDependencies:{eslint:"^7.6.0",mocha:"^8.0.1","grunt-saucelabs":"^9.0.1",coveralls:"^3.1.0","grunt-contrib-copy":"^1.0.0","grunt-browserify":"^5.3.0",istanbul:"^0.4.5","grunt-cli":"^1.3.2","grunt-contrib-uglify":"^5.0.0",brfs:"^2.0.2",grunt:"^1.2.1","grunt-mocha-istanbul":"^5.0.2","grunt-contrib-connect":"^3.0.0"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1", "minimalistic-crypto-utils":"^1.0.1"},author:"Fedor Indutny \x3cfedor@indutny.com\x3e",repository:{type:"git",url:"git@github.com:indutny/elliptic"},homepage:"https://github.com/indutny/elliptic",files:["lib"],name:"elliptic",main:"lib/elliptic.js",keywords:["EC","Elliptic","curve","Cryptography"],bugs:{url:"https://github.com/indutny/elliptic/issues"},version:"6.5.5",description:"EC cryptography",scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter\x3dspec test/index.js", test:"npm run lint \x26\x26 npm run unit",version:"grunt dist \x26\x26 git add dist/"}}}; shadow$provide[125]=function(O,E,S,J){(function(g,x){function e(a,b){if(!a)throw Error(b||"Assertion failed");}function t(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a}function d(a,b,c){if(d.isBN(a))return a;this.negative=0;this.words=null;this.length=0;this.red=null;if(null!==a){if("le"===b||"be"===b)c=b,b=10;this._init(a||0,b||10,c||"be")}}function n(a,b){a=a.charCodeAt(b);return 65<=a&&70>=a?a-55:97<=a&&102>=a?a-87:a-48&15}function l(a,b, c){var f=n(a,c);c-1>=b&&(f|=n(a,c-1)<<4);return f}function k(a,b,c,f){var u=0;for(c=Math.min(a.length,c);b>>26,H=w&67108863;w=Math.min(A,b.length-1);for(var G=Math.max(0,A-a.length+1);G<=w;G++)u=a.words[A-G| 0]|0,y=b.words[G]|0,u=u*y+H,D+=u/67108864|0,H=u&67108863;c.words[A]=H|0;w=D|0}0!==w?c.words[A]=w|0:c.length--;return c.strip()}function m(a,b){this.x=a;this.y=b}function p(a,b){this.name=a;this.p=new d(b,16);this.n=this.p.bitLength();this.k=(new d(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function v(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function r(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")} function B(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function z(a){"string"===typeof a?(a=d._prime(a),this.m=a.p,this.prime=a):(e(a.gtn(1),"modulus must be greater than 1"),this.m=a,this.prime=null)}function F(a){z.call(this,a);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new d(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr()); this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof g?g.exports=d:x.BN=d;d.BN=d;d.wordSize=26;try{var K="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:E(44).Buffer}catch(a){}d.isBN=function(a){return a instanceof d?!0:null!==a&&"object"===typeof a&&a.constructor.wordSize===d.wordSize&&Array.isArray(a.words)};d.max=function(a,b){return 0a.cmp(b)?a:b};d.prototype._init=function(a,b,c){if("number"===typeof a)return this._initNumber(a,b,c);if("object"===typeof a)return this._initArray(a,b,c);"hex"===b&&(b=16);e(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");var f=0;"-"===a[0]&&(f++,this.negative=1);fa&&(this.negative=1,a=-a);67108864>a?(this.words= [a&67108863],this.length=1):4503599627370496>a?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(e(9007199254740992>a),this.words=[a&67108863,a/67108864&67108863,1],this.length=3);"le"===c&&this._initArray(this.toArray(),b,c)};d.prototype._initArray=function(a,b,c){e("number"===typeof a.length);if(0>=a.length)return this.words=[0],this.length=1,this;this.length=Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-f&67108863;f+=24;26<=f&&(f-=26,c++)}else if("le"===c)for(c=b=0;b>>26-f&67108863,f+=24,26<=f&&(f-=26,c++);return this.strip()};d.prototype._parseHex=function(a,b,c){this.length=Math.ceil((a.length-b)/6);this.words=Array(this.length);for(var f=0;f=b;f-=2)c=l(a,b,f)<>>26):u+=8;else for(f=0===(a.length-b)%2?b+1:b;f>>26):u+=8;this.strip()};d.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var f=0,u=1;67108863>=u;u*=b)f++;f--;u=u/b|0;var y=a.length-c,w=y%f;y=Math.min(y,y-w)+c;for(var A=c;Athis.words[0]+c?this.words[0]+=c: this._iaddn(c);if(0!==w){f=1;c=k(a,A,a.length,b);for(A=0;Athis.words[0]+c?this.words[0]+=c:this._iaddn(c)}this.strip()};d.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215;c=0!==f||u!==this.length-1?M[6-w.length]+w+c:w+c;a+=2;26<=a&&(a-=26,u--)}for(0!==f&&(c=f.toString(16)+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}if(a===(a|0)&&2<=a&&36>=a){f=R[a];u=L[a];c="";y=this.clone();for(y.negative=0;!y.isZero();)w=y.modn(u).toString(a),y=y.idivn(u),c=y.isZero()?w+c:M[f-w.length]+w+c;for(this.isZero()&&(c="0"+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}e(!1,"Base should be between 2 and 36")}; d.prototype.toNumber=function(){var a=this.words[0];2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:2>>= 13);64<=a&&(b+=7,a>>>=7);8<=a&&(b+=4,a>>>=4);2<=a&&(b+=2,a>>>=2);return b+a};d.prototype._zeroBits=function(a){if(0===a)return 26;var b=0;0===(a&8191)&&(b+=13,a>>>=13);0===(a&127)&&(b+=7,a>>>=7);0===(a&15)&&(b+=4,a>>>=4);0===(a&3)&&(b+=2,a>>>=2);0===(a&1)&&b++;return b};d.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,b=0;ba.length?this.clone().ior(a):a.clone().ior(this)};d.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)};d.prototype.iuand=function(a){var b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};d.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)};d.prototype.iuxor=function(a){if(this.length>a.length)var b=this;else b=a,a=this;for(var c=0;ca.length?this.clone().ixor(a):a.clone().ixor(this)};d.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)};d.prototype.inotn=function(a){e("number"===typeof a&&0<=a);var b=Math.ceil(a/26)|0;a%=26;this._expand(b);0>26-a);return this.strip()};d.prototype.notn=function(a){return this.clone().inotn(a)};d.prototype.setn=function(a,b){e("number"===typeof a&&0<=a);var c=a/26|0;a%=26;this._expand(c+1);this.words[c]=b?this.words[c]|1<a.length)var c=this;else c=a,a=this;for(var f=b=0;f>>=26;for(;0!==b&&f>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;fa.length?this.clone().iadd(a):a.clone().iadd(this)};d.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var b=this.iadd(a);a.negative=1;return b._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();b=this.cmp(a);if(0===b)return this.negative=0,this.length=1,this.words[0]=0,this;if(0>26,this.words[u]=b&67108863;for(;0!==f&&u>26,this.words[u]=b&67108863;if(0===f&&u>>13,G=f[1]| 0;A=G&8191;var P=G>>>13,U=f[2]|0;G=U&8191;var ca=U>>>13,ha=f[3]|0;U=ha&8191;var da=ha>>>13,ja=f[4]|0;ha=ja&8191;var Z=ja>>>13,ba=f[5]|0;ja=ba&8191;var X=ba>>>13,oa=f[6]|0;ba=oa&8191;var sa=oa>>>13,ka=f[7]|0;oa=ka&8191;var va=ka>>>13,ua=f[8]|0;ka=ua&8191;ua>>>=13;var wa=f[9]|0;f=wa&8191;wa>>>=13;var ta=u[0]|0,ya=ta&8191,Aa=ta>>>13,Ba=u[1]|0;ta=Ba&8191;var Da=Ba>>>13,za=u[2]|0;Ba=za&8191;var ra=za>>>13,pa=u[3]|0;za=pa&8191;var Y=pa>>>13,ia=u[4]|0;pa=ia&8191;var la=ia>>>13,qa=u[5]|0;ia=qa&8191;var W= qa>>>13,T=u[6]|0;qa=T&8191;var N=T>>>13,aa=u[7]|0;T=aa&8191;var ea=aa>>>13,fa=u[8]|0;aa=fa&8191;fa>>>=13;var na=u[9]|0;u=na&8191;na>>>=13;c.negative=a.negative^b.negative;c.length=19;var I=Math.imul(D,ya);a=Math.imul(D,Aa);a=a+Math.imul(H,ya)|0;b=Math.imul(H,Aa);var xa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(xa>>>26)|0;xa&=67108863;I=Math.imul(A,ya);a=Math.imul(A,Aa);a=a+Math.imul(P,ya)|0;b=Math.imul(P,Aa);I=I+Math.imul(D,ta)|0;a=a+Math.imul(D,Da)|0;a=a+Math.imul(H,ta)|0;b=b+Math.imul(H,Da)|0; var ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ma>>>26)|0;ma&=67108863;I=Math.imul(G,ya);a=Math.imul(G,Aa);a=a+Math.imul(ca,ya)|0;b=Math.imul(ca,Aa);I=I+Math.imul(A,ta)|0;a=a+Math.imul(A,Da)|0;a=a+Math.imul(P,ta)|0;b=b+Math.imul(P,Da)|0;I=I+Math.imul(D,Ba)|0;a=a+Math.imul(D,ra)|0;a=a+Math.imul(H,Ba)|0;b=b+Math.imul(H,ra)|0;var Fa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Fa>>>26)|0;Fa&=67108863;I=Math.imul(U,ya);a=Math.imul(U,Aa);a=a+Math.imul(da,ya)|0;b=Math.imul(da,Aa);I=I+Math.imul(G,ta)|0; a=a+Math.imul(G,Da)|0;a=a+Math.imul(ca,ta)|0;b=b+Math.imul(ca,Da)|0;I=I+Math.imul(A,Ba)|0;a=a+Math.imul(A,ra)|0;a=a+Math.imul(P,Ba)|0;b=b+Math.imul(P,ra)|0;I=I+Math.imul(D,za)|0;a=a+Math.imul(D,Y)|0;a=a+Math.imul(H,za)|0;b=b+Math.imul(H,Y)|0;var Ga=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ga>>>26)|0;Ga&=67108863;I=Math.imul(ha,ya);a=Math.imul(ha,Aa);a=a+Math.imul(Z,ya)|0;b=Math.imul(Z,Aa);I=I+Math.imul(U,ta)|0;a=a+Math.imul(U,Da)|0;a=a+Math.imul(da,ta)|0;b=b+Math.imul(da,Da)|0;I=I+Math.imul(G,Ba)| 0;a=a+Math.imul(G,ra)|0;a=a+Math.imul(ca,Ba)|0;b=b+Math.imul(ca,ra)|0;I=I+Math.imul(A,za)|0;a=a+Math.imul(A,Y)|0;a=a+Math.imul(P,za)|0;b=b+Math.imul(P,Y)|0;I=I+Math.imul(D,pa)|0;a=a+Math.imul(D,la)|0;a=a+Math.imul(H,pa)|0;b=b+Math.imul(H,la)|0;var Ia=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ia>>>26)|0;Ia&=67108863;I=Math.imul(ja,ya);a=Math.imul(ja,Aa);a=a+Math.imul(X,ya)|0;b=Math.imul(X,Aa);I=I+Math.imul(ha,ta)|0;a=a+Math.imul(ha,Da)|0;a=a+Math.imul(Z,ta)|0;b=b+Math.imul(Z,Da)|0;I=I+Math.imul(U, Ba)|0;a=a+Math.imul(U,ra)|0;a=a+Math.imul(da,Ba)|0;b=b+Math.imul(da,ra)|0;I=I+Math.imul(G,za)|0;a=a+Math.imul(G,Y)|0;a=a+Math.imul(ca,za)|0;b=b+Math.imul(ca,Y)|0;I=I+Math.imul(A,pa)|0;a=a+Math.imul(A,la)|0;a=a+Math.imul(P,pa)|0;b=b+Math.imul(P,la)|0;I=I+Math.imul(D,ia)|0;a=a+Math.imul(D,W)|0;a=a+Math.imul(H,ia)|0;b=b+Math.imul(H,W)|0;var Ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ha>>>26)|0;Ha&=67108863;I=Math.imul(ba,ya);a=Math.imul(ba,Aa);a=a+Math.imul(sa,ya)|0;b=Math.imul(sa,Aa);I=I+Math.imul(ja, ta)|0;a=a+Math.imul(ja,Da)|0;a=a+Math.imul(X,ta)|0;b=b+Math.imul(X,Da)|0;I=I+Math.imul(ha,Ba)|0;a=a+Math.imul(ha,ra)|0;a=a+Math.imul(Z,Ba)|0;b=b+Math.imul(Z,ra)|0;I=I+Math.imul(U,za)|0;a=a+Math.imul(U,Y)|0;a=a+Math.imul(da,za)|0;b=b+Math.imul(da,Y)|0;I=I+Math.imul(G,pa)|0;a=a+Math.imul(G,la)|0;a=a+Math.imul(ca,pa)|0;b=b+Math.imul(ca,la)|0;I=I+Math.imul(A,ia)|0;a=a+Math.imul(A,W)|0;a=a+Math.imul(P,ia)|0;b=b+Math.imul(P,W)|0;I=I+Math.imul(D,qa)|0;a=a+Math.imul(D,N)|0;a=a+Math.imul(H,qa)|0;b=b+Math.imul(H, N)|0;var Ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ma>>>26)|0;Ma&=67108863;I=Math.imul(oa,ya);a=Math.imul(oa,Aa);a=a+Math.imul(va,ya)|0;b=Math.imul(va,Aa);I=I+Math.imul(ba,ta)|0;a=a+Math.imul(ba,Da)|0;a=a+Math.imul(sa,ta)|0;b=b+Math.imul(sa,Da)|0;I=I+Math.imul(ja,Ba)|0;a=a+Math.imul(ja,ra)|0;a=a+Math.imul(X,Ba)|0;b=b+Math.imul(X,ra)|0;I=I+Math.imul(ha,za)|0;a=a+Math.imul(ha,Y)|0;a=a+Math.imul(Z,za)|0;b=b+Math.imul(Z,Y)|0;I=I+Math.imul(U,pa)|0;a=a+Math.imul(U,la)|0;a=a+Math.imul(da,pa)|0;b=b+Math.imul(da, la)|0;I=I+Math.imul(G,ia)|0;a=a+Math.imul(G,W)|0;a=a+Math.imul(ca,ia)|0;b=b+Math.imul(ca,W)|0;I=I+Math.imul(A,qa)|0;a=a+Math.imul(A,N)|0;a=a+Math.imul(P,qa)|0;b=b+Math.imul(P,N)|0;I=I+Math.imul(D,T)|0;a=a+Math.imul(D,ea)|0;a=a+Math.imul(H,T)|0;b=b+Math.imul(H,ea)|0;var La=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(La>>>26)|0;La&=67108863;I=Math.imul(ka,ya);a=Math.imul(ka,Aa);a=a+Math.imul(ua,ya)|0;b=Math.imul(ua,Aa);I=I+Math.imul(oa,ta)|0;a=a+Math.imul(oa,Da)|0;a=a+Math.imul(va,ta)|0;b=b+Math.imul(va, Da)|0;I=I+Math.imul(ba,Ba)|0;a=a+Math.imul(ba,ra)|0;a=a+Math.imul(sa,Ba)|0;b=b+Math.imul(sa,ra)|0;I=I+Math.imul(ja,za)|0;a=a+Math.imul(ja,Y)|0;a=a+Math.imul(X,za)|0;b=b+Math.imul(X,Y)|0;I=I+Math.imul(ha,pa)|0;a=a+Math.imul(ha,la)|0;a=a+Math.imul(Z,pa)|0;b=b+Math.imul(Z,la)|0;I=I+Math.imul(U,ia)|0;a=a+Math.imul(U,W)|0;a=a+Math.imul(da,ia)|0;b=b+Math.imul(da,W)|0;I=I+Math.imul(G,qa)|0;a=a+Math.imul(G,N)|0;a=a+Math.imul(ca,qa)|0;b=b+Math.imul(ca,N)|0;I=I+Math.imul(A,T)|0;a=a+Math.imul(A,ea)|0;a=a+Math.imul(P, T)|0;b=b+Math.imul(P,ea)|0;I=I+Math.imul(D,aa)|0;a=a+Math.imul(D,fa)|0;a=a+Math.imul(H,aa)|0;b=b+Math.imul(H,fa)|0;var Na=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Na>>>26)|0;Na&=67108863;I=Math.imul(f,ya);a=Math.imul(f,Aa);a=a+Math.imul(wa,ya)|0;b=Math.imul(wa,Aa);I=I+Math.imul(ka,ta)|0;a=a+Math.imul(ka,Da)|0;a=a+Math.imul(ua,ta)|0;b=b+Math.imul(ua,Da)|0;I=I+Math.imul(oa,Ba)|0;a=a+Math.imul(oa,ra)|0;a=a+Math.imul(va,Ba)|0;b=b+Math.imul(va,ra)|0;I=I+Math.imul(ba,za)|0;a=a+Math.imul(ba,Y)|0;a=a+Math.imul(sa, za)|0;b=b+Math.imul(sa,Y)|0;I=I+Math.imul(ja,pa)|0;a=a+Math.imul(ja,la)|0;a=a+Math.imul(X,pa)|0;b=b+Math.imul(X,la)|0;I=I+Math.imul(ha,ia)|0;a=a+Math.imul(ha,W)|0;a=a+Math.imul(Z,ia)|0;b=b+Math.imul(Z,W)|0;I=I+Math.imul(U,qa)|0;a=a+Math.imul(U,N)|0;a=a+Math.imul(da,qa)|0;b=b+Math.imul(da,N)|0;I=I+Math.imul(G,T)|0;a=a+Math.imul(G,ea)|0;a=a+Math.imul(ca,T)|0;b=b+Math.imul(ca,ea)|0;I=I+Math.imul(A,aa)|0;a=a+Math.imul(A,fa)|0;a=a+Math.imul(P,aa)|0;b=b+Math.imul(P,fa)|0;I=I+Math.imul(D,u)|0;a=a+Math.imul(D, na)|0;a=a+Math.imul(H,u)|0;b=b+Math.imul(H,na)|0;D=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(D>>>26)|0;D&=67108863;I=Math.imul(f,ta);a=Math.imul(f,Da);a=a+Math.imul(wa,ta)|0;b=Math.imul(wa,Da);I=I+Math.imul(ka,Ba)|0;a=a+Math.imul(ka,ra)|0;a=a+Math.imul(ua,Ba)|0;b=b+Math.imul(ua,ra)|0;I=I+Math.imul(oa,za)|0;a=a+Math.imul(oa,Y)|0;a=a+Math.imul(va,za)|0;b=b+Math.imul(va,Y)|0;I=I+Math.imul(ba,pa)|0;a=a+Math.imul(ba,la)|0;a=a+Math.imul(sa,pa)|0;b=b+Math.imul(sa,la)|0;I=I+Math.imul(ja,ia)|0;a=a+Math.imul(ja, W)|0;a=a+Math.imul(X,ia)|0;b=b+Math.imul(X,W)|0;I=I+Math.imul(ha,qa)|0;a=a+Math.imul(ha,N)|0;a=a+Math.imul(Z,qa)|0;b=b+Math.imul(Z,N)|0;I=I+Math.imul(U,T)|0;a=a+Math.imul(U,ea)|0;a=a+Math.imul(da,T)|0;b=b+Math.imul(da,ea)|0;I=I+Math.imul(G,aa)|0;a=a+Math.imul(G,fa)|0;a=a+Math.imul(ca,aa)|0;b=b+Math.imul(ca,fa)|0;I=I+Math.imul(A,u)|0;a=a+Math.imul(A,na)|0;a=a+Math.imul(P,u)|0;b=b+Math.imul(P,na)|0;A=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(A>>>26)|0;A&=67108863;I=Math.imul(f,Ba);a=Math.imul(f,ra); a=a+Math.imul(wa,Ba)|0;b=Math.imul(wa,ra);I=I+Math.imul(ka,za)|0;a=a+Math.imul(ka,Y)|0;a=a+Math.imul(ua,za)|0;b=b+Math.imul(ua,Y)|0;I=I+Math.imul(oa,pa)|0;a=a+Math.imul(oa,la)|0;a=a+Math.imul(va,pa)|0;b=b+Math.imul(va,la)|0;I=I+Math.imul(ba,ia)|0;a=a+Math.imul(ba,W)|0;a=a+Math.imul(sa,ia)|0;b=b+Math.imul(sa,W)|0;I=I+Math.imul(ja,qa)|0;a=a+Math.imul(ja,N)|0;a=a+Math.imul(X,qa)|0;b=b+Math.imul(X,N)|0;I=I+Math.imul(ha,T)|0;a=a+Math.imul(ha,ea)|0;a=a+Math.imul(Z,T)|0;b=b+Math.imul(Z,ea)|0;I=I+Math.imul(U, aa)|0;a=a+Math.imul(U,fa)|0;a=a+Math.imul(da,aa)|0;b=b+Math.imul(da,fa)|0;I=I+Math.imul(G,u)|0;a=a+Math.imul(G,na)|0;a=a+Math.imul(ca,u)|0;b=b+Math.imul(ca,na)|0;G=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(G>>>26)|0;G&=67108863;I=Math.imul(f,za);a=Math.imul(f,Y);a=a+Math.imul(wa,za)|0;b=Math.imul(wa,Y);I=I+Math.imul(ka,pa)|0;a=a+Math.imul(ka,la)|0;a=a+Math.imul(ua,pa)|0;b=b+Math.imul(ua,la)|0;I=I+Math.imul(oa,ia)|0;a=a+Math.imul(oa,W)|0;a=a+Math.imul(va,ia)|0;b=b+Math.imul(va,W)|0;I=I+Math.imul(ba, qa)|0;a=a+Math.imul(ba,N)|0;a=a+Math.imul(sa,qa)|0;b=b+Math.imul(sa,N)|0;I=I+Math.imul(ja,T)|0;a=a+Math.imul(ja,ea)|0;a=a+Math.imul(X,T)|0;b=b+Math.imul(X,ea)|0;I=I+Math.imul(ha,aa)|0;a=a+Math.imul(ha,fa)|0;a=a+Math.imul(Z,aa)|0;b=b+Math.imul(Z,fa)|0;I=I+Math.imul(U,u)|0;a=a+Math.imul(U,na)|0;a=a+Math.imul(da,u)|0;b=b+Math.imul(da,na)|0;U=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(U>>>26)|0;U&=67108863;I=Math.imul(f,pa);a=Math.imul(f,la);a=a+Math.imul(wa,pa)|0;b=Math.imul(wa,la);I=I+Math.imul(ka, ia)|0;a=a+Math.imul(ka,W)|0;a=a+Math.imul(ua,ia)|0;b=b+Math.imul(ua,W)|0;I=I+Math.imul(oa,qa)|0;a=a+Math.imul(oa,N)|0;a=a+Math.imul(va,qa)|0;b=b+Math.imul(va,N)|0;I=I+Math.imul(ba,T)|0;a=a+Math.imul(ba,ea)|0;a=a+Math.imul(sa,T)|0;b=b+Math.imul(sa,ea)|0;I=I+Math.imul(ja,aa)|0;a=a+Math.imul(ja,fa)|0;a=a+Math.imul(X,aa)|0;b=b+Math.imul(X,fa)|0;I=I+Math.imul(ha,u)|0;a=a+Math.imul(ha,na)|0;a=a+Math.imul(Z,u)|0;b=b+Math.imul(Z,na)|0;ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ha>>>26)|0;ha&=67108863; I=Math.imul(f,ia);a=Math.imul(f,W);a=a+Math.imul(wa,ia)|0;b=Math.imul(wa,W);I=I+Math.imul(ka,qa)|0;a=a+Math.imul(ka,N)|0;a=a+Math.imul(ua,qa)|0;b=b+Math.imul(ua,N)|0;I=I+Math.imul(oa,T)|0;a=a+Math.imul(oa,ea)|0;a=a+Math.imul(va,T)|0;b=b+Math.imul(va,ea)|0;I=I+Math.imul(ba,aa)|0;a=a+Math.imul(ba,fa)|0;a=a+Math.imul(sa,aa)|0;b=b+Math.imul(sa,fa)|0;I=I+Math.imul(ja,u)|0;a=a+Math.imul(ja,na)|0;a=a+Math.imul(X,u)|0;b=b+Math.imul(X,na)|0;ja=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ja>>>26)|0;ja&=67108863; I=Math.imul(f,qa);a=Math.imul(f,N);a=a+Math.imul(wa,qa)|0;b=Math.imul(wa,N);I=I+Math.imul(ka,T)|0;a=a+Math.imul(ka,ea)|0;a=a+Math.imul(ua,T)|0;b=b+Math.imul(ua,ea)|0;I=I+Math.imul(oa,aa)|0;a=a+Math.imul(oa,fa)|0;a=a+Math.imul(va,aa)|0;b=b+Math.imul(va,fa)|0;I=I+Math.imul(ba,u)|0;a=a+Math.imul(ba,na)|0;a=a+Math.imul(sa,u)|0;b=b+Math.imul(sa,na)|0;ba=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ba>>>26)|0;ba&=67108863;I=Math.imul(f,T);a=Math.imul(f,ea);a=a+Math.imul(wa,T)|0;b=Math.imul(wa,ea);I=I+Math.imul(ka, aa)|0;a=a+Math.imul(ka,fa)|0;a=a+Math.imul(ua,aa)|0;b=b+Math.imul(ua,fa)|0;I=I+Math.imul(oa,u)|0;a=a+Math.imul(oa,na)|0;a=a+Math.imul(va,u)|0;b=b+Math.imul(va,na)|0;oa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(oa>>>26)|0;oa&=67108863;I=Math.imul(f,aa);a=Math.imul(f,fa);a=a+Math.imul(wa,aa)|0;b=Math.imul(wa,fa);I=I+Math.imul(ka,u)|0;a=a+Math.imul(ka,na)|0;a=a+Math.imul(ua,u)|0;b=b+Math.imul(ua,na)|0;ka=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ka>>>26)|0;ka&=67108863;I=Math.imul(f,u);a=Math.imul(f, na);a=a+Math.imul(wa,u)|0;b=Math.imul(wa,na);H=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(H>>>26)|0;y[0]=xa;y[1]=ma;y[2]=Fa;y[3]=Ga;y[4]=Ia;y[5]=Ha;y[6]=Ma;y[7]=La;y[8]=Na;y[9]=D;y[10]=A;y[11]=G;y[12]=U;y[13]=ha;y[14]=ja;y[15]=ba;y[16]=oa;y[17]=ka;y[18]=H&67108863;0!==w&&(y[19]=w,c.length++);return c};Math.imul||(V=h);d.prototype.mulTo=function(a,b){var c=this.length+a.length;if(10===this.length&&10===a.length)a=V(this,a,b);else if(63>c)a=h(this,a,b);else if(1024>c){b.negative=a.negative^this.negative; b.length=this.length+a.length;for(var f=0,u=c=0;u>>26)|0;c+=y>>>26;y&=67108863}b.words[u]=f;f=y}0!==f?b.words[u]=f:b.length--;a=b.strip()}else a=(new m).mulp(this,a,b);return a};m.prototype.makeRBT=function(a){for(var b=Array(a),c=d.prototype._countBits(a)-1,f=0;f>=1;return c};m.prototype.permute=function(a,b,c,f,u,y){for(var w=0;w>>=1)c++;return 1<=c))for(var f=0;fc?0:c/67108864|0;return a}; m.prototype.convert13b=function(a,b,c,f){for(var u=0,y=0;y>>=13,c[2*y+1]=u&8191,u>>>=13;for(y=2*b;ya);for(var b=0,c=0;c>=26;b+=f/67108864|0;b+=u>>>26;this.words[c]=u&67108863}0!==b&&(this.words[c]=b,this.length++);return this};d.prototype.muln=function(a){return this.clone().imuln(a)};d.prototype.sqr=function(){return this.mul(this)};d.prototype.isqr=function(){return this.imul(this.clone())}; d.prototype.pow=function(a){for(var b=Array(a.bitLength()),c=0;c>>f}if(0===b.length)return new d(1);a=this;for(c=0;c>>26-b<<26-b,f;if(0!==b){var u=0;for(f=0;f>>26-b}u&&(this.words[f]=u,this.length++)}if(0!==a){for(f=this.length-1;0<=f;f--)this.words[f+a]=this.words[f];for(f=0;f>>f<u)for(this.length-=u,y=0;y=b);y--){var w=this.words[y]|0;this.words[y]=u<<26-f|w>>>f;u=w&a}c&&0!==u&&(c.words[c.length++]=u);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};d.prototype.ishrn=function(a,b,c){e(0===this.negative);return this.iushrn(a,b,c)};d.prototype.shln=function(a){return this.clone().ishln(a)};d.prototype.ushln=function(a){return this.clone().iushln(a)}; d.prototype.shrn=function(a){return this.clone().ishrn(a)};d.prototype.ushrn=function(a){return this.clone().iushrn(a)};d.prototype.testn=function(a){e("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a?!1:!!(this.words[a]&1<>>b<a);if(0>a)return this.isubn(-a);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)a);if(0>a)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;this.words[0]-=a;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};d.prototype.addn= function(a){return this.clone().iaddn(a)};d.prototype.subn=function(a){return this.clone().isubn(a)};d.prototype.iabs=function(){this.negative=0;return this};d.prototype.abs=function(){return this.clone().iabs()};d.prototype._ishlnsubmul=function(a,b,c){var f;this._expand(a.length+c);var u=0;for(f=0;f>26)-(u/67108864|0);this.words[f+c]=y&67108863}for(;f>26,this.words[f+c]= y&67108863;if(0===u)return this.strip();e(-1===u);for(f=u=0;f>26,this.words[f]=y&67108863;this.negative=1;return this.strip()};d.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,u=f.words[f.length-1]|0;a=26-this._countBits(u);0!==a&&(f=f.ushln(a),c.iushln(a),u=f.words[f.length-1]|0);var y=c.length-f.length;if("mod"!==b){var w=new d(null);w.length=y+1;w.words=Array(w.length);for(var A=0;Athis.length||0>this.cmp(a)?{div:new d(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null, mod:new d(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new d(this.modn(a.words[0]))}:this._wordDiv(a,b)};d.prototype.div=function(a){return this.divmod(a,"div",!1).div};d.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod};d.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod};d.prototype.divRound=function(a){var b=this.divmod(a);if(b.mod.isZero())return b.div;var c=0!==b.div.negative?b.mod.isub(a):b.mod,f=a.ushrn(1);a=a.andln(1);c=c.cmp(f);return 0>c||1===a&&0===c?b.div: 0!==b.div.negative?b.div.isubn(1):b.div.iaddn(1)};d.prototype.modn=function(a){e(67108863>=a);for(var b=67108864%a,c=0,f=this.length-1;0<=f;f--)c=(b*c+(this.words[f]|0))%a;return c};d.prototype.idivn=function(a){e(67108863>=a);for(var b=0,c=this.length-1;0<=c;c--)b=(this.words[c]|0)+67108864*b,this.words[c]=b/a|0,b%=a;return this.strip()};d.prototype.divn=function(a){return this.clone().idivn(a)};d.prototype.egcd=function(a){e(0===a.negative);e(!a.isZero());var b=this,c=a.clone();b=0!==b.negative? b.umod(a):b.clone();a=new d(1);for(var f=new d(0),u=new d(0),y=new d(1),w=0;b.isEven()&&c.isEven();)b.iushrn(1),c.iushrn(1),++w;for(var A=c.clone(),D=b.clone();!b.isZero();){for(var H=0,G=1;0===(b.words[0]&G)&&26>H;++H,G<<=1);if(0H;++H,G<<=1);if(0w;++w,A<<=1);if(0w;++w,A<<=1);if(0b.cmpn(0)&&b.iadd(a);return b};d.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var b=this.clone();a=a.clone();b.negative=0;for(var c=a.negative=0;b.isEven()&&a.isEven();c++)b.iushrn(1),a.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;a.isEven();)a.iushrn(1);var f=b.cmp(a);if(0>f)f=b,b=a,a=f;else if(0===f||0===a.cmpn(1))break;b.isub(a)}while(1);return a.iushln(c)};d.prototype.invm=function(a){return this.egcd(a).a.umod(a)}; d.prototype.isEven=function(){return 0===(this.words[0]&1)};d.prototype.isOdd=function(){return 1===(this.words[0]&1)};d.prototype.andln=function(a){return this.words[0]&a};d.prototype.bincn=function(a){e("number"===typeof a);var b=a%26;a=(a-b)/26;b=1<>>26;c&=67108863;this.words[a]=c}0!==b&&(this.words[a]=b,this.length++);return this};d.prototype.isZero=function(){return 1=== this.length&&0===this.words[0]};d.prototype.cmpn=function(a){var b=0>a;if(0!==this.negative&&!b)return-1;if(0===this.negative&&b)return 1;this.strip();1=a,"Number is too big"),b=this.words[0]|0,a=b===a?0:ba.length)return 1; if(this.lengthu&&(b=1);break}}return b};d.prototype.gtn=function(a){return 1===this.cmpn(a)};d.prototype.gt=function(a){return 1===this.cmp(a)};d.prototype.gten=function(a){return 0<=this.cmpn(a)};d.prototype.gte=function(a){return 0<=this.cmp(a)};d.prototype.ltn=function(a){return-1===this.cmpn(a)};d.prototype.lt=function(a){return-1===this.cmp(a)};d.prototype.lten=function(a){return 0>= this.cmpn(a)};d.prototype.lte=function(a){return 0>=this.cmp(a)};d.prototype.eqn=function(a){return 0===this.cmpn(a)};d.prototype.eq=function(a){return 0===this.cmp(a)};d.red=function(a){return new z(a)};d.prototype.toRed=function(a){e(!this.red,"Already a number in reduction context");e(0===this.negative,"red works only with positives");return a.convertTo(this)._forceRed(a)};d.prototype.fromRed=function(){e(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)}; d.prototype._forceRed=function(a){this.red=a;return this};d.prototype.forceRed=function(a){e(!this.red,"Already a number in reduction context");return this._forceRed(a)};d.prototype.redAdd=function(a){e(this.red,"redAdd works only with red numbers");return this.red.add(this,a)};d.prototype.redIAdd=function(a){e(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,a)};d.prototype.redSub=function(a){e(this.red,"redSub works only with red numbers");return this.red.sub(this,a)};d.prototype.redISub= function(a){e(this.red,"redISub works only with red numbers");return this.red.isub(this,a)};d.prototype.redShl=function(a){e(this.red,"redShl works only with red numbers");return this.red.shl(this,a)};d.prototype.redMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.mul(this,a)};d.prototype.redIMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.imul(this,a)};d.prototype.redSqr=function(){e(this.red, "redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};d.prototype.redISqr=function(){e(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};d.prototype.redSqrt=function(){e(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};d.prototype.redInvm=function(){e(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};d.prototype.redNeg= function(){e(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};d.prototype.redPow=function(a){e(this.red&&!a.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,a)};var Q={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var a=new d(null);a.words=Array(Math.ceil(this.n/13));return a};p.prototype.ireduce=function(a){do{this.split(a,this.tmp);a=this.imulK(a);a=a.iadd(this.tmp);var b=a.bitLength()}while(b>this.n); b=b=a.length)a.words[0]=0,a.length=1;else{c=a.words[9];b.words[b.length++]=c&4194303;for(f=10;f>>22,c=b;c>>>=22;a.words[f-10]=c;a.length=0===c&&10>>=26;a.words[c]= f}0!==b&&(a.words[a.length++]=b);return a};d._prime=function(a){if(Q[a])return Q[a];if("k256"===a)var b=new v;else if("p224"===a)b=new r;else if("p192"===a)b=new B;else if("p25519"===a)b=new C;else throw Error("Unknown prime "+a);return Q[a]=b};z.prototype._verify1=function(a){e(0===a.negative,"red works only with positives");e(a.red,"red works only with red numbers")};z.prototype._verify2=function(a,b){e(0===(a.negative|b.negative),"red works only with positives");e(a.red&&a.red===b.red,"red works only with red numbers")}; z.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)};z.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)};z.prototype.add=function(a,b){this._verify2(a,b);a=a.add(b);0<=a.cmp(this.m)&&a.isub(this.m);return a._forceRed(this)};z.prototype.iadd=function(a,b){this._verify2(a,b);a=a.iadd(b);0<=a.cmp(this.m)&&a.isub(this.m);return a};z.prototype.sub=function(a,b){this._verify2(a,b);a=a.sub(b);0>a.cmpn(0)&& a.iadd(this.m);return a._forceRed(this)};z.prototype.isub=function(a,b){this._verify2(a,b);a=a.isub(b);0>a.cmpn(0)&&a.iadd(this.m);return a};z.prototype.shl=function(a,b){this._verify1(a);return this.imod(a.ushln(b))};z.prototype.imul=function(a,b){this._verify2(a,b);return this.imod(a.imul(b))};z.prototype.mul=function(a,b){this._verify2(a,b);return this.imod(a.mul(b))};z.prototype.isqr=function(a){return this.imul(a,a.clone())};z.prototype.sqr=function(a){return this.mul(a,a)};z.prototype.sqrt= function(a){if(a.isZero())return a.clone();var b=this.m.andln(3);e(1===b%2);if(3===b)return b=this.m.add(new d(1)).iushrn(2),this.pow(a,b);for(var c=this.m.subn(1),f=0;!c.isZero()&&0===c.andln(1);)f++,c.iushrn(1);e(!c.isZero());b=(new d(1)).toRed(this);var u=b.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=(new d(2*w*w)).toRed(this);0!==this.pow(w,y).cmp(u);)w.redIAdd(u);y=this.pow(w,c);u=this.pow(a,c.addn(1).iushrn(1));a=this.pow(a,c);for(c=f;0!==a.cmp(b);){w=a;for(f=0;0!==w.cmp(b);f++)w= w.redSqr();e(f>w&1;a!==c[0]&&(a=this.sqr(a));if(0===D&&0===u)y=0;else if(u<<=1,u|=D,y++,4===y||0===f&&0===w)a=this.mul(a,c[u]),u=y=0}w=26}return a};z.prototype.convertTo=function(a){var b=a.umod(this.m);return b===a?b.clone():b};z.prototype.convertFrom=function(a){a=a.clone();a.red=null;return a};d.mont=function(a){return new F(a)};t(F,z);F.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))};F.prototype.convertFrom=function(a){a=this.imod(a.mul(this.rinv)); a.red=null;return a};F.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;a=a.imul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return(new d(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift); 0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof S||S,this)}; shadow$provide[126]=function(O,E,S,J){function g(e){return 1===e.length?"0"+e:e}function x(e){for(var t="",d=0;d>8;n&=255; l?d.push(l,n):d.push(n)}return d};J.zero2=g;J.toHex=x;J.encode=function(e,t){return"hex"===t?x(e):e}}; shadow$provide[127]=function(O,E,S,J){var g=E(125);O=E(85);E=E(126);J.assert=O;J.toArray=E.toArray;J.zero2=E.zero2;J.toHex=E.toHex;J.encode=E.encode;J.getNAF=function(x,e,t){t=Array(Math.max(x.bitLength(),t)+1);var d;for(d=0;d(e>>1)-1?(e>>1)-n:n,x.isubn(n)):n=0;t[d]=n;x.iushrn(1)}return t};J.getJSF=function(x,e){var t=[[],[]];x=x.clone();e=e.clone();for(var d=0,n=0,l;0=v;B--)r=(r<<1)+m[B];h.push(r)}m=this.jpoint(null,null,null);for(B=this.jpoint(null,null,null);0v)break;r=h[v];l(0!== r);m="affine"===k.type?0>1]):m.mixedAdd(p[-r-1>>1].neg()):0>1]):m.add(p[-r-1>>1].neg())}return"affine"===k.type?m.toP():m};g.prototype._wnafMulAdd=function(k,h,m,p,v){var r=this._wnafT1,B=this._wnafT2,C=this._wnafT3,z=0,F;for(F=0;FF)break;for(k=0;k>1]:0>z&&(K=B[k][-z-1>>1].neg()),h="affine"===K.type?h.mixedAdd(K):h.add(K))}for(F=0;F=Math.ceil((k.bitLength()+1)/h.step): !1};x.prototype._getDoubles=function(k,h){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var m=[this],p=this,v=0;vk[0].cmp(k[1])?k[0]:k[1],k=k.toRed(this.red);if(l.lambda)var h=new t(l.lambda,16);else h=this._getEndoRoots(this.n),0===this.g.mul(h[0]).x.cmp(this.g.x.redMul(k))?h=h[0]:(h=h[1],n(0===this.g.mul(h).x.cmp(this.g.x.redMul(k)))); l=l.basis?l.basis.map(function(m){return{a:new t(m.a,16),b:new t(m.b,16)}}):this._getEndoBasis(h);return{beta:k,lambda:h,basis:l}}};g.prototype._getEndoRoots=function(l){var k=l===this.p?this.red:t.mont(l),h=(new t(2)).toRed(k).redInvm();l=h.redNeg();h=(new t(3)).toRed(k).redNeg().redSqrt().redMul(h);k=l.redAdd(h).fromRed();l=l.redSub(h).fromRed();return[k,l]};g.prototype._getEndoBasis=function(l){for(var k=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=this.n.clone(),m=new t(1),p=new t(0),v=new t(0), r=new t(1),B,C,z,F,K,M,R=0,L;0!==l.cmpn(0);){var V=h.div(l);L=h.sub(V.mul(l));K=v.sub(V.mul(m));V=r.sub(V.mul(p));if(!z&&0>L.cmp(k))B=M.neg(),C=m,z=L.neg(),F=K;else if(z&&2===++R)break;M=L;h=l;l=L;v=m;m=K;r=p;p=V}k=L.neg();M=z.sqr().add(F.sqr());0<=k.sqr().add(K.sqr()).cmp(M)&&(k=B,K=C);z.negative&&(z=z.neg(),F=F.neg());k.negative&&(k=k.neg(),K=K.neg());return[{a:z,b:F},{a:k,b:K}]};g.prototype._endoSplit=function(l){var k=this.endo.basis,h=k[0],m=k[1],p=m.b.mul(l).divRound(this.n),v=h.b.neg().mul(l).divRound(this.n); k=p.mul(h.a);var r=v.mul(m.a);h=p.mul(h.b);m=v.mul(m.b);l=l.sub(k).sub(r);k=h.add(m).neg();return{k1:l,k2:k}};g.prototype.pointFromX=function(l,k){l=new t(l,16);l.red||(l=l.toRed(this.red));var h=l.redSqr().redMul(l).redIAdd(l.redMul(this.a)).redIAdd(this.b),m=h.redSqrt();if(0!==m.redSqr().redSub(h).cmp(this.zero))throw Error("invalid point");h=m.fromRed().isOdd();if(k&&!h||!k&&h)m=m.redNeg();return this.point(l,m)};g.prototype.validate=function(l){if(l.inf)return!0;var k=l.x;l=l.y;var h=this.a.redMul(k); k=k.redSqr().redMul(k).redIAdd(h).redIAdd(this.b);return 0===l.redSqr().redISub(k).cmpn(0)};g.prototype._endoWnafMulAdd=function(l,k,h){for(var m=this._endoWnafT1,p=this._endoWnafT2,v=0;v>>24|d>>>8&65280|d<<8&16711680|(d&255)<<24)>>>0}function x(d){return 1===d.length?"0"+d:d}function e(d){return 7===d.length?"0"+d:6===d.length?"00"+d:5===d.length?"000"+d:4===d.length?"0000"+d:3===d.length?"00000"+d:2===d.length?"000000"+d:1===d.length?"0000000"+d:d}var t=E(85);O=E(40);J.inherits=O;J.toArray=function(d,n){if(Array.isArray(d))return d.slice();if(!d)return[];var l=[];if("string"===typeof d)if(!n)for(var k=n=0;kh)l[n++]=h;else{if(2048>h)l[n++]=h>>6|192;else{var m=d;var p=k;m=55296!==(m.charCodeAt(p)&64512)?!1:0>p||p+1>=m.length?!1:56320===(m.charCodeAt(p+1)&64512);m?(h=65536+((h&1023)<<10)+(d.charCodeAt(++k)&1023),l[n++]=h>>18|240,l[n++]=h>>12&63|128):l[n++]=h>>12|224;l[n++]=h>>6&63|128}l[n++]=h&63|128}}else{if("hex"===n)for(d=d.replace(/[^a-z0-9]+/ig,""),0!==d.length%2&&(d="0"+d),k=0;k>>0;return l};J.split32=function(d,n){for(var l=Array(4*d.length),k=0,h=0;k>>24,l[h+1]=m>>>16&255,l[h+2]=m>>>8&255,l[h+3]=m&255):(l[h+3]=m>>>24,l[h+2]=m>>>16&255,l[h+1]=m>>>8&255,l[h]=m&255)}return l};J.rotr32=function(d,n){return d>>>n|d<<32-n};J.rotl32=function(d,n){return d<>>32-n};J.sum32=function(d,n){return d+n>>>0};J.sum32_3=function(d,n,l){return d+n+l>>>0};J.sum32_4=function(d,n,l,k){return d+n+l+k>>>0};J.sum32_5=function(d,n,l,k,h){return d+n+l+k+h>>>0};J.sum64=function(d,n,l,k){var h=k+d[n+1]>>>0;d[n]=(h>> 0;d[n+1]=h};J.sum64_hi=function(d,n,l,k){return(n+k>>>0>>0};J.sum64_lo=function(d,n,l,k){return n+k>>>0};J.sum64_4_hi=function(d,n,l,k,h,m,p,v){k=n+k>>>0;n=k>>0;n+=k>>0>>0};J.sum64_4_lo=function(d,n,l,k,h,m,p,v){return n+k+m+v>>>0};J.sum64_5_hi=function(d,n,l,k,h,m,p,v,r,B){k=n+k>>>0;n=k>>0;n+=k>>0;n+=k>>0>>0};J.sum64_5_lo=function(d,n,l,k,h,m,p,v,r,B){return n+k+m+v+ B>>>0};J.rotr64_hi=function(d,n,l){return(n<<32-l|d>>>l)>>>0};J.rotr64_lo=function(d,n,l){return(d<<32-l|n>>>l)>>>0};J.shr64_hi=function(d,n,l){return d>>>l};J.shr64_lo=function(d,n,l){return(d<<32-l|n>>>l)>>>0}}; shadow$provide[134]=function(O,E,S,J){function g(){this.pending=null;this.pendingTotal=0;this.blockSize=this.constructor.blockSize;this.outSize=this.constructor.outSize;this.hmacStrength=this.constructor.hmacStrength;this.padLength=this.constructor.padLength/8;this.endian="big";this._delta8=this.blockSize/8;this._delta32=this.blockSize/32}var x=E(133),e=E(85);J.BlockHash=g;g.prototype.update=function(t,d){t=x.toArray(t,d);this.pending=this.pending?this.pending.concat(t):t;this.pendingTotal+=t.length; if(this.pending.length>=this._delta8)for(t=this.pending,d=t.length%this._delta8,this.pending=t.slice(t.length-d,t.length),0===this.pending.length&&(this.pending=null),t=x.join32(t,0,t.length-d,this.endian),d=0;d>>24&255;d[l++]=t>>>16&255;d[l++]=t>>>8&255;d[l++]=t&255}else for(d[l++]=t&255,d[l++]=t>>>8&255,d[l++]=t>>>16&255,d[l++]=t>>>24&255,d[l++]=0,d[l++]=0,d[l++]=0,d[l++]=0,n=8;n>>3};J.g1_256=function(e){return x(e,17)^x(e,19)^e>>>10}}; shadow$provide[136]=function(O,E,S,J){function g(){if(!(this instanceof g))return new g;l.call(this);this.h=[1732584193,4023233417,2562383102,271733878,3285377520];this.W=Array(80)}var x=E(133);O=E(134);E=E(135);var e=x.rotl32,t=x.sum32,d=x.sum32_5,n=E.ft_1,l=O.BlockHash,k=[1518500249,1859775393,2400959708,3395469782];x.inherits(g,l);S.exports=g;g.blockSize=512;g.outSize=160;g.hmacStrength=80;g.padLength=64;g.prototype._update=function(h,m){for(var p=this.W,v=0;16>v;v++)p[v]=h[m+v];for(;vK;K++)F[K]=C[z+K];for(;KR;R++)M[R]=F[K+R];for(;RF&&(F+=4294967296);V=M[R-4];var Q= M[R-3];K=d(V,Q,19);L=d(Q,V,29);V=l(V,Q,6);K=K^L^V;0>K&&(K+=4294967296);L=M[R-14];V=M[R-13];var a=M[R-30],b=M[R-29];Q=t(a,b,1);var c=t(a,b,8);a=n(a,b,7);Q=Q^c^a;0>Q&&(Q+=4294967296);b=M[R-30];var f=M[R-29];c=d(b,f,1);a=d(b,f,8);b=l(b,f,7);c=c^a^b;0>c&&(c+=4294967296);a=M[R-32];b=M[R-31];M[R]=p(F,K,L,V,Q,c,a,b);M[R+1]=v(F,K,L,V,Q,c,a,b)}};g.prototype._update=function(F,K){this._prepareBlock(F,K);F=this.W;K=this.h[0];var M=this.h[1],R=this.h[2],L=this.h[3],V=this.h[4],Q=this.h[5],a=this.h[6],b=this.h[7], c=this.h[8],f=this.h[9],u=this.h[10],y=this.h[11],w=this.h[12],A=this.h[13],D=this.h[14],H=this.h[15];e(this.k.length===F.length);for(var G=0;Gca&&(ca+=4294967296);P=ca;U=c;var da=f;ca=d(U,da,14);ha=d(U,da,18);U=d(da,U,9);ca=ca^ha^U;0>ca&&(ca+=4294967296);U=ca;ca=c&u^~c&w;0>ca&&(ca+=4294967296);ha=ca;ca=f&y^~f&A;0>ca&&(ca+=4294967296);da=ca;var ja=this.k[G],Z=this.k[G+1],ba=F[G],X=F[G+1];ca=r(D,H,P,U,ha,da,ja,Z,ba,X); ha=B(D,H,P,U,ha,da,ja,Z,ba,X);P=K;U=M;D=t(P,U,28);H=t(U,P,2);P=t(U,P,7);D=D^H^P;0>D&&(D+=4294967296);U=K;da=M;H=d(U,da,28);P=d(da,U,2);U=d(da,U,7);H=H^P^U;0>H&&(H+=4294967296);P=K&R^K&V^R&V;0>P&&(P+=4294967296);U=M&L^M&Q^L&Q;0>U&&(U+=4294967296);da=h(D,H,P,U);P=m(D,H,P,U);D=w;H=A;w=u;A=y;u=c;y=f;c=h(a,b,ca,ha);f=m(b,b,ca,ha);a=V;b=Q;V=R;Q=L;R=K;L=M;K=h(ca,ha,da,P);M=m(ca,ha,da,P)}k(this.h,0,K,M);k(this.h,2,R,L);k(this.h,4,V,Q);k(this.h,6,a,b);k(this.h,8,c,f);k(this.h,10,u,y);k(this.h,12,w,A);k(this.h, 14,D,H)};g.prototype._digest=function(F){return"hex"===F?x.toHex32(this.h,"big"):x.split32(this.h,"big")}}; shadow$provide[140]=function(O,E,S,J){function g(){if(!(this instanceof g))return new g;e.call(this);this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}var x=E(133),e=E(139);x.inherits(g,e);S.exports=g;g.blockSize=1024;g.outSize=384;g.hmacStrength=192;g.padLength=128;g.prototype._digest=function(t){return"hex"===t?x.toHex32(this.h.slice(0,12),"big"):x.split32(this.h.slice(0, 12),"big")}}; shadow$provide[141]=function(O,E,S,J){J.sha1=E(136);J.sha224=E(138);J.sha256=E(137);J.sha384=E(140);J.sha512=E(139)}; shadow$provide[142]=function(O,E,S,J){function g(){if(!(this instanceof g))return new g;k.call(this);this.h=[1732584193,4023233417,2562383102,271733878,3285377520];this.endian="little"}function x(r,B,C,z){return 15>=r?B^C^z:31>=r?B&C|~B&z:47>=r?(B|~C)^z:63>=r?B&z|C&~z:B^(C|~z)}var e=E(133);O=E(134);var t=e.rotl32,d=e.sum32,n=e.sum32_3,l=e.sum32_4,k=O.BlockHash;e.inherits(g,k);J.ripemd160=g;g.blockSize=512;g.outSize=160;g.hmacStrength=192;g.padLength=64;g.prototype._update=function(r,B){for(var C= this.h[0],z=this.h[1],F=this.h[2],K=this.h[3],M=this.h[4],R=C,L=z,V=F,Q=K,a=M,b=0;80>b;b++){var c=d(t(l(C,x(b,z,F,K),r[h[b]+B],15>=b?0:31>=b?1518500249:47>=b?1859775393:63>=b?2400959708:2840853838),p[b]),M);C=M;M=K;K=t(F,10);F=z;z=c;c=d(t(l(R,x(79-b,L,V,Q),r[m[b]+B],15>=b?1352829926:31>=b?1548603684:47>=b?1836072691:63>=b?2053994217:0),v[b]),a);R=a;a=Q;Q=t(V,10);V=L;L=c}c=n(this.h[1],F,Q);this.h[1]=n(this.h[2],K,a);this.h[2]=n(this.h[3],M,R);this.h[3]=n(this.h[4],C,L);this.h[4]=n(this.h[0],z,V);this.h[0]= c};g.prototype._digest=function(r){return"hex"===r?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var h=[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],m=[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],p=[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],v=[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]}; shadow$provide[143]=function(O,E,S,J){function g(t,d,n){if(!(this instanceof g))return new g(t,d,n);this.Hash=t;this.blockSize=t.blockSize/8;this.outSize=t.outSize/8;this.outer=this.inner=null;this._init(x.toArray(d,n))}var x=E(133),e=E(85);S.exports=g;g.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest());e(t.length<=this.blockSize);for(var d=t.length;d=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(n, l,d)}var x=E(144),e=E(126),t=E(85);S.exports=g;g.prototype._init=function(d,n,l){d=d.concat(n).concat(l);this.K=Array(this.outLen/8);this.V=Array(this.outLen/8);for(n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(d.concat(l||[]));this._reseed=1};g.prototype.generate=function(d,n,l,k){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!==typeof n&&(k=l,l=n,n= null);l&&(l=e.toArray(l,k||"hex"),this._update(l));for(k=[];k.length>>=0;if(127>=v)return!1;m.place=B;return v}function t(h){for(var m=0,p=h.length-1;!(h[m]|| h[m+1]&128)&&mm)){var p=1+(Math.log(m)/Math.LN2>>>3);for(h.push(p|128);--p;)h.push(m>>>(p<<3)&255)}h.push(m)}var n=E(125),l=E(127),k=l.assert;S.exports=g;g.prototype._importDER=function(h,m){h=l.toArray(h,m);m=new x;if(48!==h[m.place++])return!1;var p=e(h,m);if(!1===p||p+m.place!==h.length||2!==h[m.place++])return!1;var v=e(h,m);if(!1===v)return!1;p=h.slice(m.place,v+m.place);m.place+=v;if(2!==h[m.place++])return!1;v=e(h,m);if(!1===v||h.length!== v+m.place)return!1;h=h.slice(m.place,v+m.place);if(0===p[0])if(p[1]&128)p=p.slice(1);else return!1;if(0===h[0])if(h[1]&128)h=h.slice(1);else return!1;this.r=new n(p);this.s=new n(h);this.recoveryParam=null;return!0};g.prototype.toDER=function(h){var m=this.r.toArray(),p=this.s.toArray();m[0]&128&&(m=[0].concat(m));p[0]&128&&(p=[0].concat(p));m=t(m);for(p=t(p);!(p[0]||p[1]&128);)p=p.slice(1);var v=[2];d(v,m.length);v=v.concat(m);v.push(2);d(v,p.length);m=v.concat(p);p=[48];d(p,m.length);p=p.concat(m); return l.encode(p,h)}}; shadow$provide[150]=function(O,E,S,J){function g(h){if(!(this instanceof g))return new g(h);"string"===typeof h&&(n(Object.prototype.hasOwnProperty.call(t,h),"Unknown curve "+h),h=t[h]);h instanceof t.PresetCurve&&(h={curve:h});this.curve=h.curve.curve;this.n=this.curve.n;this.nh=this.n.ushrn(1);this.g=this.curve.g;this.g=h.curve.g;this.g.precompute(h.curve.n.bitLength()+1);this.hash=h.hash||h.curve.hash}var x=E(125),e=E(147);O=E(127);var t=E(146),d=E(115),n=O.assert,l=E(148),k=E(149);S.exports=g; g.prototype.keyPair=function(h){return new l(this,h)};g.prototype.keyFromPrivate=function(h,m){return l.fromPrivate(this,h,m)};g.prototype.keyFromPublic=function(h,m){return l.fromPublic(this,h,m)};g.prototype.genKeyPair=function(h){h||(h={});h=new e({hash:this.hash,pers:h.pers,persEnc:h.persEnc||"utf8",entropy:h.entropy||d(this.hash.hmacStrength),entropyEnc:h.entropy&&h.entropyEnc||"utf8",nonce:this.n.toArray()});for(var m=this.n.byteLength(),p=this.n.sub(new x(2));;){var v=new x(h.generate(m)); if(!(0=z.cmpn(1)||0<=z.cmp(B))){var F=this.g.mul(z);if(!F.isInfinity()){var K=F.getX();p=K.umod(this.n);if(0!==p.cmpn(0)&&(z=z.invm(this.n).mul(p.mul(m.getPrivate()).iadd(h)),z=z.umod(this.n),0!==z.cmpn(0)))return h=(F.getY().isOdd()?1:0)|(0!==K.cmp(p)?2:0),v.canonical&&0v.cmpn(1)||0<=v.cmp(this.n)||0>m.cmpn(1)||0<=m.cmp(this.n))return!1;m=m.invm(this.n);h=m.mul(h).umod(this.n);m=m.mul(v).umod(this.n);if(!this.curve._maxwellTrick)return p=this.g.mulAdd(h,p.getPublic(),m),p.isInfinity()?!1:0===p.getX().umod(this.n).cmp(v);p=this.g.jmulAdd(h,p.getPublic(),m);return p.isInfinity()?!1:p.eqXToP(v)};g.prototype.recoverPubKey=function(h,m,p,v){n((3&p)===p,"The recovery param is more than two bits"); m=new k(m,v);v=this.n;var r=new x(h);h=m.r;var B=m.s,C=p&1;p>>=1;if(0<=h.cmp(this.curve.p.umod(this.curve.n))&&p)throw Error("Unable to find sencond key candinate");h=p?this.curve.pointFromX(h.add(this.curve.n),C):this.curve.pointFromX(h,C);m=m.r.invm(v);p=v.sub(r).mul(m).umod(v);v=B.mul(m).umod(v);return this.g.mulAdd(p,h,v)};g.prototype.getKeyRecoveryParam=function(h,m,p,v){m=new k(m,v);if(null!==m.recoveryParam)return m.recoveryParam;for(v=0;4>v;v++){try{var r=this.recoverPubKey(h,m,v)}catch(B){continue}if(r.eq(p))return v}throw Error("Unable to find valid recovery factor"); }}; shadow$provide[151]=function(O,E,S,J){function g(d,n){this.eddsa=d;this._secret=t(n.secret);d.isPoint(n.pub)?this._pub=n.pub:this._pubBytes=t(n.pub)}var x=E(127),e=x.assert,t=x.parseBytes;O=x.cachedProperty;g.fromPublic=function(d,n){return n instanceof g?n:new g(d,{pub:n})};g.fromSecret=function(d,n){return n instanceof g?n:new g(d,{secret:n})};g.prototype.secret=function(){return this._secret};O(g,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});O(g,"pub",function(){return this._pubBytes? this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});O(g,"privBytes",function(){var d=this.eddsa,n=this.hash(),l=d.encodingLength-1;d=n.slice(0,d.encodingLength);d[0]&=248;d[l]&=127;d[l]|=64;return d});O(g,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});O(g,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});O(g,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});g.prototype.sign=function(d){e(this._secret,"KeyPair can only verify"); return this.eddsa.sign(d,this)};g.prototype.verify=function(d,n){return this.eddsa.verify(d,n,this)};g.prototype.getSecret=function(d){e(this._secret,"KeyPair is public only");return x.encode(this.secret(),d)};g.prototype.getPublic=function(d){return x.encode(this.pubBytes(),d)};S.exports=g}; shadow$provide[152]=function(O,E,S,J){function g(n,l){this.eddsa=n;"object"!==typeof l&&(l=d(l));Array.isArray(l)&&(l={R:l.slice(0,n.encodingLength),S:l.slice(n.encodingLength)});t(l.R&&l.S,"Signature without R or S");n.isPoint(l.R)&&(this._R=l.R);l.S instanceof x&&(this._S=l.S);this._Rencoded=Array.isArray(l.R)?l.R:l.Rencoded;this._Sencoded=Array.isArray(l.S)?l.S:l.Sencoded}var x=E(125),e=E(127),t=e.assert;O=e.cachedProperty;var d=e.parseBytes;O(g,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}); O(g,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});O(g,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});O(g,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});g.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};g.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()};S.exports=g}; shadow$provide[153]=function(O,E,S,J){function g(h){d("ed25519"===h,"only tested with ed25519 so far");if(!(this instanceof g))return new g(h);this.curve=h=e[h].curve;this.g=h.g;this.g.precompute(h.n.bitLength()+1);this.pointClass=h.point().constructor;this.encodingLength=Math.ceil(h.n.bitLength()/8);this.hash=x.sha512}var x=E(144),e=E(146),t=E(127),d=t.assert,n=t.parseBytes,l=E(151),k=E(152);S.exports=g;g.prototype.sign=function(h,m){h=n(h);var p=this.keyFromSecret(m),v=this.hashInt(p.messagePrefix(), h);m=this.g.mul(v);var r=this.encodePoint(m);h=this.hashInt(r,p.pubBytes(),h).mul(p.priv());h=v.add(h).umod(this.curve.n);return this.makeSignature({R:m,S:h,Rencoded:r})};g.prototype.verify=function(h,m,p){h=n(h);m=this.makeSignature(m);p=this.keyFromPublic(p);h=this.hashInt(m.Rencoded(),p.pubBytes(),h);var v=this.g.mul(m.S());return m.R().add(p.pub().mul(h)).eq(v)};g.prototype.hashInt=function(){for(var h=this.hash(),m=0;m=a?a-55:97<=a&&102>=a?a-87:a-48&15}function l(a,b, c){var f=n(a,c);c-1>=b&&(f|=n(a,c-1)<<4);return f}function k(a,b,c,f){var u=0;for(c=Math.min(a.length,c);b>>26,H=w&67108863;w=Math.min(A,b.length-1);for(var G=Math.max(0,A-a.length+1);G<=w;G++)u=a.words[A-G| 0]|0,y=b.words[G]|0,u=u*y+H,D+=u/67108864|0,H=u&67108863;c.words[A]=H|0;w=D|0}0!==w?c.words[A]=w|0:c.length--;return c.strip()}function m(a,b){this.x=a;this.y=b}function p(a,b){this.name=a;this.p=new d(b,16);this.n=this.p.bitLength();this.k=(new d(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function v(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function r(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")} function B(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function z(a){"string"===typeof a?(a=d._prime(a),this.m=a.p,this.prime=a):(e(a.gtn(1),"modulus must be greater than 1"),this.m=a,this.prime=null)}function F(a){z.call(this,a);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new d(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr()); this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof g?g.exports=d:x.BN=d;d.BN=d;d.wordSize=26;try{var K="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:E(44).Buffer}catch(a){}d.isBN=function(a){return a instanceof d?!0:null!==a&&"object"===typeof a&&a.constructor.wordSize===d.wordSize&&Array.isArray(a.words)};d.max=function(a,b){return 0a.cmp(b)?a:b};d.prototype._init=function(a,b,c){if("number"===typeof a)return this._initNumber(a,b,c);if("object"===typeof a)return this._initArray(a,b,c);"hex"===b&&(b=16);e(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");var f=0;"-"===a[0]&&(f++,this.negative=1);fa&&(this.negative=1,a=-a);67108864>a?(this.words= [a&67108863],this.length=1):4503599627370496>a?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(e(9007199254740992>a),this.words=[a&67108863,a/67108864&67108863,1],this.length=3);"le"===c&&this._initArray(this.toArray(),b,c)};d.prototype._initArray=function(a,b,c){e("number"===typeof a.length);if(0>=a.length)return this.words=[0],this.length=1,this;this.length=Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-f&67108863;f+=24;26<=f&&(f-=26,c++)}else if("le"===c)for(c=b=0;b>>26-f&67108863,f+=24,26<=f&&(f-=26,c++);return this.strip()};d.prototype._parseHex=function(a,b,c){this.length=Math.ceil((a.length-b)/6);this.words=Array(this.length);for(var f=0;f=b;f-=2)c=l(a,b,f)<>>26):u+=8;else for(f=0===(a.length-b)%2?b+1:b;f>>26):u+=8;this.strip()};d.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var f=0,u=1;67108863>=u;u*=b)f++;f--;u=u/b|0;var y=a.length-c,w=y%f;y=Math.min(y,y-w)+c;for(var A=c;Athis.words[0]+c?this.words[0]+=c: this._iaddn(c);if(0!==w){f=1;c=k(a,A,a.length,b);for(A=0;Athis.words[0]+c?this.words[0]+=c:this._iaddn(c)}this.strip()};d.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215;c=0!==f||u!==this.length-1?M[6-w.length]+w+c:w+c;a+=2;26<=a&&(a-=26,u--)}for(0!==f&&(c=f.toString(16)+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}if(a===(a|0)&&2<=a&&36>=a){f=R[a];u=L[a];c="";y=this.clone();for(y.negative=0;!y.isZero();)w=y.modn(u).toString(a),y=y.idivn(u),c=y.isZero()?w+c:M[f-w.length]+w+c;for(this.isZero()&&(c="0"+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}e(!1,"Base should be between 2 and 36")}; d.prototype.toNumber=function(){var a=this.words[0];2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:2>>= 13);64<=a&&(b+=7,a>>>=7);8<=a&&(b+=4,a>>>=4);2<=a&&(b+=2,a>>>=2);return b+a};d.prototype._zeroBits=function(a){if(0===a)return 26;var b=0;0===(a&8191)&&(b+=13,a>>>=13);0===(a&127)&&(b+=7,a>>>=7);0===(a&15)&&(b+=4,a>>>=4);0===(a&3)&&(b+=2,a>>>=2);0===(a&1)&&b++;return b};d.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,b=0;ba.length?this.clone().ior(a):a.clone().ior(this)};d.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)};d.prototype.iuand=function(a){var b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};d.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)};d.prototype.iuxor=function(a){if(this.length>a.length)var b=this;else b=a,a=this;for(var c=0;ca.length?this.clone().ixor(a):a.clone().ixor(this)};d.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)};d.prototype.inotn=function(a){e("number"===typeof a&&0<=a);var b=Math.ceil(a/26)|0;a%=26;this._expand(b);0>26-a);return this.strip()};d.prototype.notn=function(a){return this.clone().inotn(a)};d.prototype.setn=function(a,b){e("number"===typeof a&&0<=a);var c=a/26|0;a%=26;this._expand(c+1);this.words[c]=b?this.words[c]|1<a.length)var c=this;else c=a,a=this;for(var f=b=0;f>>=26;for(;0!==b&&f>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;fa.length?this.clone().iadd(a):a.clone().iadd(this)};d.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var b=this.iadd(a);a.negative=1;return b._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();b=this.cmp(a);if(0===b)return this.negative=0,this.length=1,this.words[0]=0,this;if(0>26,this.words[u]=b&67108863;for(;0!==f&&u>26,this.words[u]=b&67108863;if(0===f&&u>>13,G=f[1]| 0;A=G&8191;var P=G>>>13,U=f[2]|0;G=U&8191;var ca=U>>>13,ha=f[3]|0;U=ha&8191;var da=ha>>>13,ja=f[4]|0;ha=ja&8191;var Z=ja>>>13,ba=f[5]|0;ja=ba&8191;var X=ba>>>13,oa=f[6]|0;ba=oa&8191;var sa=oa>>>13,ka=f[7]|0;oa=ka&8191;var va=ka>>>13,ua=f[8]|0;ka=ua&8191;ua>>>=13;var wa=f[9]|0;f=wa&8191;wa>>>=13;var ta=u[0]|0,ya=ta&8191,Aa=ta>>>13,Ba=u[1]|0;ta=Ba&8191;var Da=Ba>>>13,za=u[2]|0;Ba=za&8191;var ra=za>>>13,pa=u[3]|0;za=pa&8191;var Y=pa>>>13,ia=u[4]|0;pa=ia&8191;var la=ia>>>13,qa=u[5]|0;ia=qa&8191;var W= qa>>>13,T=u[6]|0;qa=T&8191;var N=T>>>13,aa=u[7]|0;T=aa&8191;var ea=aa>>>13,fa=u[8]|0;aa=fa&8191;fa>>>=13;var na=u[9]|0;u=na&8191;na>>>=13;c.negative=a.negative^b.negative;c.length=19;var I=Math.imul(D,ya);a=Math.imul(D,Aa);a=a+Math.imul(H,ya)|0;b=Math.imul(H,Aa);var xa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(xa>>>26)|0;xa&=67108863;I=Math.imul(A,ya);a=Math.imul(A,Aa);a=a+Math.imul(P,ya)|0;b=Math.imul(P,Aa);I=I+Math.imul(D,ta)|0;a=a+Math.imul(D,Da)|0;a=a+Math.imul(H,ta)|0;b=b+Math.imul(H,Da)|0; var ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ma>>>26)|0;ma&=67108863;I=Math.imul(G,ya);a=Math.imul(G,Aa);a=a+Math.imul(ca,ya)|0;b=Math.imul(ca,Aa);I=I+Math.imul(A,ta)|0;a=a+Math.imul(A,Da)|0;a=a+Math.imul(P,ta)|0;b=b+Math.imul(P,Da)|0;I=I+Math.imul(D,Ba)|0;a=a+Math.imul(D,ra)|0;a=a+Math.imul(H,Ba)|0;b=b+Math.imul(H,ra)|0;var Fa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Fa>>>26)|0;Fa&=67108863;I=Math.imul(U,ya);a=Math.imul(U,Aa);a=a+Math.imul(da,ya)|0;b=Math.imul(da,Aa);I=I+Math.imul(G,ta)|0; a=a+Math.imul(G,Da)|0;a=a+Math.imul(ca,ta)|0;b=b+Math.imul(ca,Da)|0;I=I+Math.imul(A,Ba)|0;a=a+Math.imul(A,ra)|0;a=a+Math.imul(P,Ba)|0;b=b+Math.imul(P,ra)|0;I=I+Math.imul(D,za)|0;a=a+Math.imul(D,Y)|0;a=a+Math.imul(H,za)|0;b=b+Math.imul(H,Y)|0;var Ga=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ga>>>26)|0;Ga&=67108863;I=Math.imul(ha,ya);a=Math.imul(ha,Aa);a=a+Math.imul(Z,ya)|0;b=Math.imul(Z,Aa);I=I+Math.imul(U,ta)|0;a=a+Math.imul(U,Da)|0;a=a+Math.imul(da,ta)|0;b=b+Math.imul(da,Da)|0;I=I+Math.imul(G,Ba)| 0;a=a+Math.imul(G,ra)|0;a=a+Math.imul(ca,Ba)|0;b=b+Math.imul(ca,ra)|0;I=I+Math.imul(A,za)|0;a=a+Math.imul(A,Y)|0;a=a+Math.imul(P,za)|0;b=b+Math.imul(P,Y)|0;I=I+Math.imul(D,pa)|0;a=a+Math.imul(D,la)|0;a=a+Math.imul(H,pa)|0;b=b+Math.imul(H,la)|0;var Ia=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ia>>>26)|0;Ia&=67108863;I=Math.imul(ja,ya);a=Math.imul(ja,Aa);a=a+Math.imul(X,ya)|0;b=Math.imul(X,Aa);I=I+Math.imul(ha,ta)|0;a=a+Math.imul(ha,Da)|0;a=a+Math.imul(Z,ta)|0;b=b+Math.imul(Z,Da)|0;I=I+Math.imul(U, Ba)|0;a=a+Math.imul(U,ra)|0;a=a+Math.imul(da,Ba)|0;b=b+Math.imul(da,ra)|0;I=I+Math.imul(G,za)|0;a=a+Math.imul(G,Y)|0;a=a+Math.imul(ca,za)|0;b=b+Math.imul(ca,Y)|0;I=I+Math.imul(A,pa)|0;a=a+Math.imul(A,la)|0;a=a+Math.imul(P,pa)|0;b=b+Math.imul(P,la)|0;I=I+Math.imul(D,ia)|0;a=a+Math.imul(D,W)|0;a=a+Math.imul(H,ia)|0;b=b+Math.imul(H,W)|0;var Ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ha>>>26)|0;Ha&=67108863;I=Math.imul(ba,ya);a=Math.imul(ba,Aa);a=a+Math.imul(sa,ya)|0;b=Math.imul(sa,Aa);I=I+Math.imul(ja, ta)|0;a=a+Math.imul(ja,Da)|0;a=a+Math.imul(X,ta)|0;b=b+Math.imul(X,Da)|0;I=I+Math.imul(ha,Ba)|0;a=a+Math.imul(ha,ra)|0;a=a+Math.imul(Z,Ba)|0;b=b+Math.imul(Z,ra)|0;I=I+Math.imul(U,za)|0;a=a+Math.imul(U,Y)|0;a=a+Math.imul(da,za)|0;b=b+Math.imul(da,Y)|0;I=I+Math.imul(G,pa)|0;a=a+Math.imul(G,la)|0;a=a+Math.imul(ca,pa)|0;b=b+Math.imul(ca,la)|0;I=I+Math.imul(A,ia)|0;a=a+Math.imul(A,W)|0;a=a+Math.imul(P,ia)|0;b=b+Math.imul(P,W)|0;I=I+Math.imul(D,qa)|0;a=a+Math.imul(D,N)|0;a=a+Math.imul(H,qa)|0;b=b+Math.imul(H, N)|0;var Ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ma>>>26)|0;Ma&=67108863;I=Math.imul(oa,ya);a=Math.imul(oa,Aa);a=a+Math.imul(va,ya)|0;b=Math.imul(va,Aa);I=I+Math.imul(ba,ta)|0;a=a+Math.imul(ba,Da)|0;a=a+Math.imul(sa,ta)|0;b=b+Math.imul(sa,Da)|0;I=I+Math.imul(ja,Ba)|0;a=a+Math.imul(ja,ra)|0;a=a+Math.imul(X,Ba)|0;b=b+Math.imul(X,ra)|0;I=I+Math.imul(ha,za)|0;a=a+Math.imul(ha,Y)|0;a=a+Math.imul(Z,za)|0;b=b+Math.imul(Z,Y)|0;I=I+Math.imul(U,pa)|0;a=a+Math.imul(U,la)|0;a=a+Math.imul(da,pa)|0;b=b+Math.imul(da, la)|0;I=I+Math.imul(G,ia)|0;a=a+Math.imul(G,W)|0;a=a+Math.imul(ca,ia)|0;b=b+Math.imul(ca,W)|0;I=I+Math.imul(A,qa)|0;a=a+Math.imul(A,N)|0;a=a+Math.imul(P,qa)|0;b=b+Math.imul(P,N)|0;I=I+Math.imul(D,T)|0;a=a+Math.imul(D,ea)|0;a=a+Math.imul(H,T)|0;b=b+Math.imul(H,ea)|0;var La=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(La>>>26)|0;La&=67108863;I=Math.imul(ka,ya);a=Math.imul(ka,Aa);a=a+Math.imul(ua,ya)|0;b=Math.imul(ua,Aa);I=I+Math.imul(oa,ta)|0;a=a+Math.imul(oa,Da)|0;a=a+Math.imul(va,ta)|0;b=b+Math.imul(va, Da)|0;I=I+Math.imul(ba,Ba)|0;a=a+Math.imul(ba,ra)|0;a=a+Math.imul(sa,Ba)|0;b=b+Math.imul(sa,ra)|0;I=I+Math.imul(ja,za)|0;a=a+Math.imul(ja,Y)|0;a=a+Math.imul(X,za)|0;b=b+Math.imul(X,Y)|0;I=I+Math.imul(ha,pa)|0;a=a+Math.imul(ha,la)|0;a=a+Math.imul(Z,pa)|0;b=b+Math.imul(Z,la)|0;I=I+Math.imul(U,ia)|0;a=a+Math.imul(U,W)|0;a=a+Math.imul(da,ia)|0;b=b+Math.imul(da,W)|0;I=I+Math.imul(G,qa)|0;a=a+Math.imul(G,N)|0;a=a+Math.imul(ca,qa)|0;b=b+Math.imul(ca,N)|0;I=I+Math.imul(A,T)|0;a=a+Math.imul(A,ea)|0;a=a+Math.imul(P, T)|0;b=b+Math.imul(P,ea)|0;I=I+Math.imul(D,aa)|0;a=a+Math.imul(D,fa)|0;a=a+Math.imul(H,aa)|0;b=b+Math.imul(H,fa)|0;var Na=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Na>>>26)|0;Na&=67108863;I=Math.imul(f,ya);a=Math.imul(f,Aa);a=a+Math.imul(wa,ya)|0;b=Math.imul(wa,Aa);I=I+Math.imul(ka,ta)|0;a=a+Math.imul(ka,Da)|0;a=a+Math.imul(ua,ta)|0;b=b+Math.imul(ua,Da)|0;I=I+Math.imul(oa,Ba)|0;a=a+Math.imul(oa,ra)|0;a=a+Math.imul(va,Ba)|0;b=b+Math.imul(va,ra)|0;I=I+Math.imul(ba,za)|0;a=a+Math.imul(ba,Y)|0;a=a+Math.imul(sa, za)|0;b=b+Math.imul(sa,Y)|0;I=I+Math.imul(ja,pa)|0;a=a+Math.imul(ja,la)|0;a=a+Math.imul(X,pa)|0;b=b+Math.imul(X,la)|0;I=I+Math.imul(ha,ia)|0;a=a+Math.imul(ha,W)|0;a=a+Math.imul(Z,ia)|0;b=b+Math.imul(Z,W)|0;I=I+Math.imul(U,qa)|0;a=a+Math.imul(U,N)|0;a=a+Math.imul(da,qa)|0;b=b+Math.imul(da,N)|0;I=I+Math.imul(G,T)|0;a=a+Math.imul(G,ea)|0;a=a+Math.imul(ca,T)|0;b=b+Math.imul(ca,ea)|0;I=I+Math.imul(A,aa)|0;a=a+Math.imul(A,fa)|0;a=a+Math.imul(P,aa)|0;b=b+Math.imul(P,fa)|0;I=I+Math.imul(D,u)|0;a=a+Math.imul(D, na)|0;a=a+Math.imul(H,u)|0;b=b+Math.imul(H,na)|0;D=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(D>>>26)|0;D&=67108863;I=Math.imul(f,ta);a=Math.imul(f,Da);a=a+Math.imul(wa,ta)|0;b=Math.imul(wa,Da);I=I+Math.imul(ka,Ba)|0;a=a+Math.imul(ka,ra)|0;a=a+Math.imul(ua,Ba)|0;b=b+Math.imul(ua,ra)|0;I=I+Math.imul(oa,za)|0;a=a+Math.imul(oa,Y)|0;a=a+Math.imul(va,za)|0;b=b+Math.imul(va,Y)|0;I=I+Math.imul(ba,pa)|0;a=a+Math.imul(ba,la)|0;a=a+Math.imul(sa,pa)|0;b=b+Math.imul(sa,la)|0;I=I+Math.imul(ja,ia)|0;a=a+Math.imul(ja, W)|0;a=a+Math.imul(X,ia)|0;b=b+Math.imul(X,W)|0;I=I+Math.imul(ha,qa)|0;a=a+Math.imul(ha,N)|0;a=a+Math.imul(Z,qa)|0;b=b+Math.imul(Z,N)|0;I=I+Math.imul(U,T)|0;a=a+Math.imul(U,ea)|0;a=a+Math.imul(da,T)|0;b=b+Math.imul(da,ea)|0;I=I+Math.imul(G,aa)|0;a=a+Math.imul(G,fa)|0;a=a+Math.imul(ca,aa)|0;b=b+Math.imul(ca,fa)|0;I=I+Math.imul(A,u)|0;a=a+Math.imul(A,na)|0;a=a+Math.imul(P,u)|0;b=b+Math.imul(P,na)|0;A=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(A>>>26)|0;A&=67108863;I=Math.imul(f,Ba);a=Math.imul(f,ra); a=a+Math.imul(wa,Ba)|0;b=Math.imul(wa,ra);I=I+Math.imul(ka,za)|0;a=a+Math.imul(ka,Y)|0;a=a+Math.imul(ua,za)|0;b=b+Math.imul(ua,Y)|0;I=I+Math.imul(oa,pa)|0;a=a+Math.imul(oa,la)|0;a=a+Math.imul(va,pa)|0;b=b+Math.imul(va,la)|0;I=I+Math.imul(ba,ia)|0;a=a+Math.imul(ba,W)|0;a=a+Math.imul(sa,ia)|0;b=b+Math.imul(sa,W)|0;I=I+Math.imul(ja,qa)|0;a=a+Math.imul(ja,N)|0;a=a+Math.imul(X,qa)|0;b=b+Math.imul(X,N)|0;I=I+Math.imul(ha,T)|0;a=a+Math.imul(ha,ea)|0;a=a+Math.imul(Z,T)|0;b=b+Math.imul(Z,ea)|0;I=I+Math.imul(U, aa)|0;a=a+Math.imul(U,fa)|0;a=a+Math.imul(da,aa)|0;b=b+Math.imul(da,fa)|0;I=I+Math.imul(G,u)|0;a=a+Math.imul(G,na)|0;a=a+Math.imul(ca,u)|0;b=b+Math.imul(ca,na)|0;G=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(G>>>26)|0;G&=67108863;I=Math.imul(f,za);a=Math.imul(f,Y);a=a+Math.imul(wa,za)|0;b=Math.imul(wa,Y);I=I+Math.imul(ka,pa)|0;a=a+Math.imul(ka,la)|0;a=a+Math.imul(ua,pa)|0;b=b+Math.imul(ua,la)|0;I=I+Math.imul(oa,ia)|0;a=a+Math.imul(oa,W)|0;a=a+Math.imul(va,ia)|0;b=b+Math.imul(va,W)|0;I=I+Math.imul(ba, qa)|0;a=a+Math.imul(ba,N)|0;a=a+Math.imul(sa,qa)|0;b=b+Math.imul(sa,N)|0;I=I+Math.imul(ja,T)|0;a=a+Math.imul(ja,ea)|0;a=a+Math.imul(X,T)|0;b=b+Math.imul(X,ea)|0;I=I+Math.imul(ha,aa)|0;a=a+Math.imul(ha,fa)|0;a=a+Math.imul(Z,aa)|0;b=b+Math.imul(Z,fa)|0;I=I+Math.imul(U,u)|0;a=a+Math.imul(U,na)|0;a=a+Math.imul(da,u)|0;b=b+Math.imul(da,na)|0;U=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(U>>>26)|0;U&=67108863;I=Math.imul(f,pa);a=Math.imul(f,la);a=a+Math.imul(wa,pa)|0;b=Math.imul(wa,la);I=I+Math.imul(ka, ia)|0;a=a+Math.imul(ka,W)|0;a=a+Math.imul(ua,ia)|0;b=b+Math.imul(ua,W)|0;I=I+Math.imul(oa,qa)|0;a=a+Math.imul(oa,N)|0;a=a+Math.imul(va,qa)|0;b=b+Math.imul(va,N)|0;I=I+Math.imul(ba,T)|0;a=a+Math.imul(ba,ea)|0;a=a+Math.imul(sa,T)|0;b=b+Math.imul(sa,ea)|0;I=I+Math.imul(ja,aa)|0;a=a+Math.imul(ja,fa)|0;a=a+Math.imul(X,aa)|0;b=b+Math.imul(X,fa)|0;I=I+Math.imul(ha,u)|0;a=a+Math.imul(ha,na)|0;a=a+Math.imul(Z,u)|0;b=b+Math.imul(Z,na)|0;ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ha>>>26)|0;ha&=67108863; I=Math.imul(f,ia);a=Math.imul(f,W);a=a+Math.imul(wa,ia)|0;b=Math.imul(wa,W);I=I+Math.imul(ka,qa)|0;a=a+Math.imul(ka,N)|0;a=a+Math.imul(ua,qa)|0;b=b+Math.imul(ua,N)|0;I=I+Math.imul(oa,T)|0;a=a+Math.imul(oa,ea)|0;a=a+Math.imul(va,T)|0;b=b+Math.imul(va,ea)|0;I=I+Math.imul(ba,aa)|0;a=a+Math.imul(ba,fa)|0;a=a+Math.imul(sa,aa)|0;b=b+Math.imul(sa,fa)|0;I=I+Math.imul(ja,u)|0;a=a+Math.imul(ja,na)|0;a=a+Math.imul(X,u)|0;b=b+Math.imul(X,na)|0;ja=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ja>>>26)|0;ja&=67108863; I=Math.imul(f,qa);a=Math.imul(f,N);a=a+Math.imul(wa,qa)|0;b=Math.imul(wa,N);I=I+Math.imul(ka,T)|0;a=a+Math.imul(ka,ea)|0;a=a+Math.imul(ua,T)|0;b=b+Math.imul(ua,ea)|0;I=I+Math.imul(oa,aa)|0;a=a+Math.imul(oa,fa)|0;a=a+Math.imul(va,aa)|0;b=b+Math.imul(va,fa)|0;I=I+Math.imul(ba,u)|0;a=a+Math.imul(ba,na)|0;a=a+Math.imul(sa,u)|0;b=b+Math.imul(sa,na)|0;ba=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ba>>>26)|0;ba&=67108863;I=Math.imul(f,T);a=Math.imul(f,ea);a=a+Math.imul(wa,T)|0;b=Math.imul(wa,ea);I=I+Math.imul(ka, aa)|0;a=a+Math.imul(ka,fa)|0;a=a+Math.imul(ua,aa)|0;b=b+Math.imul(ua,fa)|0;I=I+Math.imul(oa,u)|0;a=a+Math.imul(oa,na)|0;a=a+Math.imul(va,u)|0;b=b+Math.imul(va,na)|0;oa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(oa>>>26)|0;oa&=67108863;I=Math.imul(f,aa);a=Math.imul(f,fa);a=a+Math.imul(wa,aa)|0;b=Math.imul(wa,fa);I=I+Math.imul(ka,u)|0;a=a+Math.imul(ka,na)|0;a=a+Math.imul(ua,u)|0;b=b+Math.imul(ua,na)|0;ka=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ka>>>26)|0;ka&=67108863;I=Math.imul(f,u);a=Math.imul(f, na);a=a+Math.imul(wa,u)|0;b=Math.imul(wa,na);H=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(H>>>26)|0;y[0]=xa;y[1]=ma;y[2]=Fa;y[3]=Ga;y[4]=Ia;y[5]=Ha;y[6]=Ma;y[7]=La;y[8]=Na;y[9]=D;y[10]=A;y[11]=G;y[12]=U;y[13]=ha;y[14]=ja;y[15]=ba;y[16]=oa;y[17]=ka;y[18]=H&67108863;0!==w&&(y[19]=w,c.length++);return c};Math.imul||(V=h);d.prototype.mulTo=function(a,b){var c=this.length+a.length;if(10===this.length&&10===a.length)a=V(this,a,b);else if(63>c)a=h(this,a,b);else if(1024>c){b.negative=a.negative^this.negative; b.length=this.length+a.length;for(var f=0,u=c=0;u>>26)|0;c+=y>>>26;y&=67108863}b.words[u]=f;f=y}0!==f?b.words[u]=f:b.length--;a=b.strip()}else a=(new m).mulp(this,a,b);return a};m.prototype.makeRBT=function(a){for(var b=Array(a),c=d.prototype._countBits(a)-1,f=0;f>=1;return c};m.prototype.permute=function(a,b,c,f,u,y){for(var w=0;w>>=1)c++;return 1<=c))for(var f=0;fc?0:c/67108864|0;return a}; m.prototype.convert13b=function(a,b,c,f){for(var u=0,y=0;y>>=13,c[2*y+1]=u&8191,u>>>=13;for(y=2*b;ya);for(var b=0,c=0;c>=26;b+=f/67108864|0;b+=u>>>26;this.words[c]=u&67108863}0!==b&&(this.words[c]=b,this.length++);return this};d.prototype.muln=function(a){return this.clone().imuln(a)};d.prototype.sqr=function(){return this.mul(this)};d.prototype.isqr=function(){return this.imul(this.clone())}; d.prototype.pow=function(a){for(var b=Array(a.bitLength()),c=0;c>>f}if(0===b.length)return new d(1);a=this;for(c=0;c>>26-b<<26-b,f;if(0!==b){var u=0;for(f=0;f>>26-b}u&&(this.words[f]=u,this.length++)}if(0!==a){for(f=this.length-1;0<=f;f--)this.words[f+a]=this.words[f];for(f=0;f>>f<u)for(this.length-=u,y=0;y=b);y--){var w=this.words[y]|0;this.words[y]=u<<26-f|w>>>f;u=w&a}c&&0!==u&&(c.words[c.length++]=u);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};d.prototype.ishrn=function(a,b,c){e(0===this.negative);return this.iushrn(a,b,c)};d.prototype.shln=function(a){return this.clone().ishln(a)};d.prototype.ushln=function(a){return this.clone().iushln(a)}; d.prototype.shrn=function(a){return this.clone().ishrn(a)};d.prototype.ushrn=function(a){return this.clone().iushrn(a)};d.prototype.testn=function(a){e("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a?!1:!!(this.words[a]&1<>>b<a);if(0>a)return this.isubn(-a);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)a);if(0>a)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;this.words[0]-=a;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};d.prototype.addn= function(a){return this.clone().iaddn(a)};d.prototype.subn=function(a){return this.clone().isubn(a)};d.prototype.iabs=function(){this.negative=0;return this};d.prototype.abs=function(){return this.clone().iabs()};d.prototype._ishlnsubmul=function(a,b,c){var f;this._expand(a.length+c);var u=0;for(f=0;f>26)-(u/67108864|0);this.words[f+c]=y&67108863}for(;f>26,this.words[f+c]= y&67108863;if(0===u)return this.strip();e(-1===u);for(f=u=0;f>26,this.words[f]=y&67108863;this.negative=1;return this.strip()};d.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,u=f.words[f.length-1]|0;a=26-this._countBits(u);0!==a&&(f=f.ushln(a),c.iushln(a),u=f.words[f.length-1]|0);var y=c.length-f.length;if("mod"!==b){var w=new d(null);w.length=y+1;w.words=Array(w.length);for(var A=0;Athis.length||0>this.cmp(a)?{div:new d(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null, mod:new d(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new d(this.modn(a.words[0]))}:this._wordDiv(a,b)};d.prototype.div=function(a){return this.divmod(a,"div",!1).div};d.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod};d.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod};d.prototype.divRound=function(a){var b=this.divmod(a);if(b.mod.isZero())return b.div;var c=0!==b.div.negative?b.mod.isub(a):b.mod,f=a.ushrn(1);a=a.andln(1);c=c.cmp(f);return 0>c||1===a&&0===c?b.div: 0!==b.div.negative?b.div.isubn(1):b.div.iaddn(1)};d.prototype.modn=function(a){e(67108863>=a);for(var b=67108864%a,c=0,f=this.length-1;0<=f;f--)c=(b*c+(this.words[f]|0))%a;return c};d.prototype.idivn=function(a){e(67108863>=a);for(var b=0,c=this.length-1;0<=c;c--)b=(this.words[c]|0)+67108864*b,this.words[c]=b/a|0,b%=a;return this.strip()};d.prototype.divn=function(a){return this.clone().idivn(a)};d.prototype.egcd=function(a){e(0===a.negative);e(!a.isZero());var b=this,c=a.clone();b=0!==b.negative? b.umod(a):b.clone();a=new d(1);for(var f=new d(0),u=new d(0),y=new d(1),w=0;b.isEven()&&c.isEven();)b.iushrn(1),c.iushrn(1),++w;for(var A=c.clone(),D=b.clone();!b.isZero();){for(var H=0,G=1;0===(b.words[0]&G)&&26>H;++H,G<<=1);if(0H;++H,G<<=1);if(0w;++w,A<<=1);if(0w;++w,A<<=1);if(0b.cmpn(0)&&b.iadd(a);return b};d.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var b=this.clone();a=a.clone();b.negative=0;for(var c=a.negative=0;b.isEven()&&a.isEven();c++)b.iushrn(1),a.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;a.isEven();)a.iushrn(1);var f=b.cmp(a);if(0>f)f=b,b=a,a=f;else if(0===f||0===a.cmpn(1))break;b.isub(a)}while(1);return a.iushln(c)};d.prototype.invm=function(a){return this.egcd(a).a.umod(a)}; d.prototype.isEven=function(){return 0===(this.words[0]&1)};d.prototype.isOdd=function(){return 1===(this.words[0]&1)};d.prototype.andln=function(a){return this.words[0]&a};d.prototype.bincn=function(a){e("number"===typeof a);var b=a%26;a=(a-b)/26;b=1<>>26;c&=67108863;this.words[a]=c}0!==b&&(this.words[a]=b,this.length++);return this};d.prototype.isZero=function(){return 1=== this.length&&0===this.words[0]};d.prototype.cmpn=function(a){var b=0>a;if(0!==this.negative&&!b)return-1;if(0===this.negative&&b)return 1;this.strip();1=a,"Number is too big"),b=this.words[0]|0,a=b===a?0:ba.length)return 1; if(this.lengthu&&(b=1);break}}return b};d.prototype.gtn=function(a){return 1===this.cmpn(a)};d.prototype.gt=function(a){return 1===this.cmp(a)};d.prototype.gten=function(a){return 0<=this.cmpn(a)};d.prototype.gte=function(a){return 0<=this.cmp(a)};d.prototype.ltn=function(a){return-1===this.cmpn(a)};d.prototype.lt=function(a){return-1===this.cmp(a)};d.prototype.lten=function(a){return 0>= this.cmpn(a)};d.prototype.lte=function(a){return 0>=this.cmp(a)};d.prototype.eqn=function(a){return 0===this.cmpn(a)};d.prototype.eq=function(a){return 0===this.cmp(a)};d.red=function(a){return new z(a)};d.prototype.toRed=function(a){e(!this.red,"Already a number in reduction context");e(0===this.negative,"red works only with positives");return a.convertTo(this)._forceRed(a)};d.prototype.fromRed=function(){e(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)}; d.prototype._forceRed=function(a){this.red=a;return this};d.prototype.forceRed=function(a){e(!this.red,"Already a number in reduction context");return this._forceRed(a)};d.prototype.redAdd=function(a){e(this.red,"redAdd works only with red numbers");return this.red.add(this,a)};d.prototype.redIAdd=function(a){e(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,a)};d.prototype.redSub=function(a){e(this.red,"redSub works only with red numbers");return this.red.sub(this,a)};d.prototype.redISub= function(a){e(this.red,"redISub works only with red numbers");return this.red.isub(this,a)};d.prototype.redShl=function(a){e(this.red,"redShl works only with red numbers");return this.red.shl(this,a)};d.prototype.redMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.mul(this,a)};d.prototype.redIMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.imul(this,a)};d.prototype.redSqr=function(){e(this.red, "redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};d.prototype.redISqr=function(){e(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};d.prototype.redSqrt=function(){e(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};d.prototype.redInvm=function(){e(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};d.prototype.redNeg= function(){e(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};d.prototype.redPow=function(a){e(this.red&&!a.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,a)};var Q={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var a=new d(null);a.words=Array(Math.ceil(this.n/13));return a};p.prototype.ireduce=function(a){do{this.split(a,this.tmp);a=this.imulK(a);a=a.iadd(this.tmp);var b=a.bitLength()}while(b>this.n); b=b=a.length)a.words[0]=0,a.length=1;else{c=a.words[9];b.words[b.length++]=c&4194303;for(f=10;f>>22,c=b;c>>>=22;a.words[f-10]=c;a.length=0===c&&10>>=26;a.words[c]= f}0!==b&&(a.words[a.length++]=b);return a};d._prime=function(a){if(Q[a])return Q[a];if("k256"===a)var b=new v;else if("p224"===a)b=new r;else if("p192"===a)b=new B;else if("p25519"===a)b=new C;else throw Error("Unknown prime "+a);return Q[a]=b};z.prototype._verify1=function(a){e(0===a.negative,"red works only with positives");e(a.red,"red works only with red numbers")};z.prototype._verify2=function(a,b){e(0===(a.negative|b.negative),"red works only with positives");e(a.red&&a.red===b.red,"red works only with red numbers")}; z.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)};z.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)};z.prototype.add=function(a,b){this._verify2(a,b);a=a.add(b);0<=a.cmp(this.m)&&a.isub(this.m);return a._forceRed(this)};z.prototype.iadd=function(a,b){this._verify2(a,b);a=a.iadd(b);0<=a.cmp(this.m)&&a.isub(this.m);return a};z.prototype.sub=function(a,b){this._verify2(a,b);a=a.sub(b);0>a.cmpn(0)&& a.iadd(this.m);return a._forceRed(this)};z.prototype.isub=function(a,b){this._verify2(a,b);a=a.isub(b);0>a.cmpn(0)&&a.iadd(this.m);return a};z.prototype.shl=function(a,b){this._verify1(a);return this.imod(a.ushln(b))};z.prototype.imul=function(a,b){this._verify2(a,b);return this.imod(a.imul(b))};z.prototype.mul=function(a,b){this._verify2(a,b);return this.imod(a.mul(b))};z.prototype.isqr=function(a){return this.imul(a,a.clone())};z.prototype.sqr=function(a){return this.mul(a,a)};z.prototype.sqrt= function(a){if(a.isZero())return a.clone();var b=this.m.andln(3);e(1===b%2);if(3===b)return b=this.m.add(new d(1)).iushrn(2),this.pow(a,b);for(var c=this.m.subn(1),f=0;!c.isZero()&&0===c.andln(1);)f++,c.iushrn(1);e(!c.isZero());b=(new d(1)).toRed(this);var u=b.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=(new d(2*w*w)).toRed(this);0!==this.pow(w,y).cmp(u);)w.redIAdd(u);y=this.pow(w,c);u=this.pow(a,c.addn(1).iushrn(1));a=this.pow(a,c);for(c=f;0!==a.cmp(b);){w=a;for(f=0;0!==w.cmp(b);f++)w= w.redSqr();e(f>w&1;a!==c[0]&&(a=this.sqr(a));if(0===D&&0===u)y=0;else if(u<<=1,u|=D,y++,4===y||0===f&&0===w)a=this.mul(a,c[u]),u=y=0}w=26}return a};z.prototype.convertTo=function(a){var b=a.umod(this.m);return b===a?b.clone():b};z.prototype.convertFrom=function(a){a=a.clone();a.red=null;return a};d.mont=function(a){return new F(a)};t(F,z);F.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))};F.prototype.convertFrom=function(a){a=this.imod(a.mul(this.rinv)); a.red=null;return a};F.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;a=a.imul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return(new d(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift); 0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof S||S,this)}; shadow$provide[156]=function(O,E,S,J){function g(){}var x=function(l){if(Object.keys)return Object.keys(l);var k=[],h;for(h in l)k.push(h);return k},e=function(l,k){if(l.forEach)return l.forEach(k);for(var h=0;h=d))return n.error("non-byte EncoderBuffer value");this.value=d;this.length=1}else if("string"===typeof d)this.value=d,this.length=t.byteLength(d); else if(t.isBuffer(d))this.value=d,this.length=d.length;else return n.error("Unsupported type: "+typeof d)}O=E(40);var e=E(161).Reporter,t=E(37).Buffer;O(g,e);J.DecoderBuffer=g;g.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}};g.prototype.restore=function(d){var n=new g(this.base);n.offset=d.offset;n.length=this.offset;this.offset=d.offset;e.prototype.restore.call(this,d.reporter);return n};g.prototype.isEmpty=function(){return this.offset===this.length}; g.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")};g.prototype.skip=function(d,n){if(!(this.offset+d<=this.length))return this.error(n||"DecoderBuffer overrun");n=new g(this.base);n._reporterState=this._reporterState;n.offset=this.offset;n.length=this.offset+d;this.offset+=d;return n};g.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)};J.EncoderBuffer=x;x.prototype.join= function(d,n){d||(d=new t(this.length));n||(n=0);if(0===this.length)return d;Array.isArray(this.value)?this.value.forEach(function(l){l.join(d,n);n+=l.length}):("number"===typeof this.value?d[n]=this.value:"string"===typeof this.value?d.write(this.value,n):t.isBuffer(this.value)&&this.value.copy(d,n),n+=this.length);return d}}; shadow$provide[160]=function(O,E,S,J){function g(k,h){var m={};this._baseState=m;m.enc=k;m.parent=h||null;m.children=null;m.tag=null;m.args=null;m.reverseArgs=null;m.choice=null;m.optional=!1;m.any=!1;m.obj=!1;m.use=null;m.useDecoder=null;m.key=null;m["default"]=null;m.explicit=null;m.implicit=null;m.contains=null;m.parent||(m.children=[],this._wrap())}var x=E(161).Reporter,e=E(161).EncoderBuffer,t=E(161).DecoderBuffer,d=E(85);O="seq seqof set setof objid bool gentime utctime null_ enum int objDesc bitstr bmpstr charstr genstr graphstr ia5str iso646str numstr octstr printstr t61str unistr utf8str videostr".split(" "); var n="key obj use optional explicit implicit def choice any contains".split(" ").concat(O);S.exports=g;var l="enc parent children tag args reverseArgs choice optional any obj use alteredUse key default explicit implicit contains".split(" ");g.prototype.clone=function(){var k=this._baseState,h={};l.forEach(function(p){h[p]=k[p]});var m=new this.constructor(h.parent);m._baseState=h;return m};g.prototype._wrap=function(){var k=this._baseState;n.forEach(function(h){this[h]=function(){var m=new this.constructor(this); k.children.push(m);return m[h].apply(m,arguments)}},this)};g.prototype._init=function(k){var h=this._baseState;d(null===h.parent);k.call(this);h.children=h.children.filter(function(m){return m._baseState.parent===this},this);d.equal(h.children.length,1,"Root node can have only one child")};g.prototype._useArgs=function(k){var h=this._baseState,m=k.filter(function(p){return p instanceof this.constructor},this);k=k.filter(function(p){return!(p instanceof this.constructor)},this);0!==m.length&&(d(null=== h.children),h.children=m,m.forEach(function(p){p._baseState.parent=this},this));0!==k.length&&(d(null===h.args),h.args=k,h.reverseArgs=k.map(function(p){if("object"!==typeof p||p.constructor!==Object)return p;var v={};Object.keys(p).forEach(function(r){r==(r|0)&&(r|=0);v[p[r]]=r});return v}))};"_peekTag _decodeTag _use _decodeStr _decodeObjid _decodeTime _decodeNull _decodeInt _decodeBool _decodeList _encodeComposite _encodeStr _encodeObjid _encodeTime _encodeNull _encodeInt _encodeBool".split(" ").forEach(function(k){g.prototype[k]= function(){throw Error(k+" not implemented for encoding: "+this._baseState.enc);}});O.forEach(function(k){g.prototype[k]=function(){var h=this._baseState,m=Array.prototype.slice.call(arguments);d(null===h.tag);h.tag=k;this._useArgs(m);return this}});g.prototype.use=function(k){d(k);var h=this._baseState;d(null===h.use);h.use=k;return this};g.prototype.optional=function(){this._baseState.optional=!0;return this};g.prototype.def=function(k){var h=this._baseState;d(null===h["default"]);h["default"]= k;h.optional=!0;return this};g.prototype.explicit=function(k){var h=this._baseState;d(null===h.explicit&&null===h.implicit);h.explicit=k;return this};g.prototype.implicit=function(k){var h=this._baseState;d(null===h.explicit&&null===h.implicit);h.implicit=k;return this};g.prototype.obj=function(){var k=this._baseState,h=Array.prototype.slice.call(arguments);k.obj=!0;0!==h.length&&this._useArgs(h);return this};g.prototype.key=function(k){var h=this._baseState;d(null===h.key);h.key=k;return this};g.prototype.any= function(){this._baseState.any=!0;return this};g.prototype.choice=function(k){var h=this._baseState;d(null===h.choice);h.choice=k;this._useArgs(Object.keys(k).map(function(m){return k[m]}));return this};g.prototype.contains=function(k){var h=this._baseState;d(null===h.use);h.contains=k;return this};g.prototype._decode=function(k,h){var m=this._baseState;if(null===m.parent)return k.wrapResult(m.children[0]._decode(k,h));var p=m["default"],v=!0,r=null;null!==m.key&&(r=k.enterKey(m.key));if(m.optional){var B= null;null!==m.explicit?B=m.explicit:null!==m.implicit?B=m.implicit:null!==m.tag&&(B=m.tag);if(null!==B||m.any){if(v=this._peekTag(k,B,m.any),k.isError(v))return v}else{var C=k.save();try{null===m.choice?this._decodeGeneric(m.tag,k,h):this._decodeChoice(k,h),v=!0}catch(K){v=!1}k.restore(C)}}var z;m.obj&&v&&(z=k.enterObject());if(v){if(null!==m.explicit){B=this._decodeTag(k,m.explicit);if(k.isError(B))return B;k=B}B=k.offset;if(null===m.use&&null===m.choice){m.any&&(C=k.save());var F=this._decodeTag(k, null!==m.implicit?m.implicit:m.tag,m.any);if(k.isError(F))return F;m.any?p=k.raw(C):k=F}h&&h.track&&null!==m.tag&&h.track(k.path(),B,k.length,"tagged");h&&h.track&&null!==m.tag&&h.track(k.path(),k.offset,k.length,"content");m.any||(p=null===m.choice?this._decodeGeneric(m.tag,k,h):this._decodeChoice(k,h));if(k.isError(p))return p;m.any||null!==m.choice||null===m.children||m.children.forEach(function(K){K._decode(k,h)});!m.contains||"octstr"!==m.tag&&"bitstr"!==m.tag||(p=new t(p),p=this._getUse(m.contains, k._reporterState.obj)._decode(p,h))}m.obj&&v&&(p=k.leaveObject(z));null===m.key||null===p&&!0!==v?null!==r&&k.exitKey(r):k.leaveKey(r,m.key,p);return p};g.prototype._decodeGeneric=function(k,h,m){var p=this._baseState;return"seq"===k||"set"===k?null:"seqof"===k||"setof"===k?this._decodeList(h,k,p.args[0],m):/str$/.test(k)?this._decodeStr(h,k,m):"objid"===k&&p.args?this._decodeObjid(h,p.args[0],p.args[1],m):"objid"===k?this._decodeObjid(h,null,null,m):"gentime"===k||"utctime"===k?this._decodeTime(h, k,m):"null_"===k?this._decodeNull(h,m):"bool"===k?this._decodeBool(h,m):"objDesc"===k?this._decodeStr(h,k,m):"int"===k||"enum"===k?this._decodeInt(h,p.args&&p.args[0],m):null!==p.use?this._getUse(p.use,h._reporterState.obj)._decode(h,m):h.error("unknown tag: "+k)};g.prototype._getUse=function(k,h){var m=this._baseState;m.useDecoder=this._use(k,h);d(null===m.useDecoder._baseState.parent);m.useDecoder=m.useDecoder._baseState.children[0];m.implicit!==m.useDecoder._baseState.implicit&&(m.useDecoder=m.useDecoder.clone(), m.useDecoder._baseState.implicit=m.implicit);return m.useDecoder};g.prototype._decodeChoice=function(k,h){var m=this._baseState,p=null,v=!1;Object.keys(m.choice).some(function(r){var B=k.save(),C=m.choice[r];try{var z=C._decode(k,h);if(k.isError(z))return!1;p={type:r,value:z};v=!0}catch(F){return k.restore(B),!1}return!0},this);return v?p:k.error("Choice not matched")};g.prototype._createEncoderBuffer=function(k){return new e(k,this.reporter)};g.prototype._encode=function(k,h,m){var p=this._baseState; if(null===p["default"]||p["default"]!==k)if(k=this._encodeValue(k,h,m),void 0!==k&&!this._skipDefault(k,h,m))return k};g.prototype._encodeValue=function(k,h,m){var p=this._baseState;if(null===p.parent)return p.children[0]._encode(k,h||new x);var v=null;this.reporter=h;if(p.optional&&void 0===k)if(null!==p["default"])k=p["default"];else return;var r=null,B=!1;if(p.any)v=this._createEncoderBuffer(k);else if(p.choice)v=this._encodeChoice(k,h);else if(p.contains)r=this._getUse(p.contains,m)._encode(k, h),B=!0;else if(p.children)r=p.children.map(function(z){if("null_"===z._baseState.tag)return z._encode(null,h,k);if(null===z._baseState.key)return h.error("Child should have a key");var F=h.enterKey(z._baseState.key);if("object"!==typeof k)return h.error("Child expected, but input is not object");z=z._encode(k[z._baseState.key],h,k);h.leaveKey(F);return z},this).filter(function(z){return z}),r=this._createEncoderBuffer(r);else if("seqof"===p.tag||"setof"===p.tag){if(!p.args||1!==p.args.length)return h.error("Too many args for : "+ p.tag);if(!Array.isArray(k))return h.error("seqof/setof, but data is not Array");r=this.clone();r._baseState.implicit=null;r=this._createEncoderBuffer(k.map(function(z){return this._getUse(this._baseState.args[0],k)._encode(z,h)},r))}else null!==p.use?v=this._getUse(p.use,m)._encode(k,h):(r=this._encodePrimitive(p.tag,k),B=!0);if(!p.any&&null===p.choice){m=null!==p.implicit?p.implicit:p.tag;var C=null===p.implicit?"universal":"context";null===m?null===p.use&&h.error("Tag could be omitted only for .use()"): null===p.use&&(v=this._encodeComposite(m,B,C,r))}null!==p.explicit&&(v=this._encodeComposite(p.explicit,!1,"context",v));return v};g.prototype._encodeChoice=function(k,h){var m=this._baseState,p=m.choice[k.type];p||d(!1,k.type+" not found in "+JSON.stringify(Object.keys(m.choice)));return p._encode(k.value,h)};g.prototype._encodePrimitive=function(k,h){var m=this._baseState;if(/str$/.test(k))return this._encodeStr(h,k);if("objid"===k&&m.args)return this._encodeObjid(h,m.reverseArgs[0],m.args[1]); if("objid"===k)return this._encodeObjid(h,null,null);if("gentime"===k||"utctime"===k)return this._encodeTime(h,k);if("null_"===k)return this._encodeNull();if("int"===k||"enum"===k)return this._encodeInt(h,m.args&&m.reverseArgs[0]);if("bool"===k)return this._encodeBool(h);if("objDesc"===k)return this._encodeStr(h,k);throw Error("Unsupported tag: "+k);};g.prototype._isNumstr=function(k){return/^[0-9 ]*$/.test(k)};g.prototype._isPrintstr=function(k){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(k)}}; shadow$provide[161]=function(O,E,S,J){J.Reporter=E(158).Reporter;J.DecoderBuffer=E(159).DecoderBuffer;J.EncoderBuffer=E(159).EncoderBuffer;J.Node=E(160)}; shadow$provide[162]=function(O,E,S,J){O=E(163);J.tagClass={0:"universal",1:"application",2:"context",3:"private"};J.tagClassByName=O._reverse(J.tagClass);J.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};J.tagByName= O._reverse(J.tag)}; shadow$provide[163]=function(O,E,S,J){J._reverse=function(g){var x={};Object.keys(g).forEach(function(e){(e|0)==e&&(e|=0);x[g[e]]=e});return x};J.der=E(162)}; shadow$provide[164]=function(O,E,S,J){function g(k){this.enc="der";this.name=k.name;this.entity=k;this.tree=new x;this.tree._init(k.body)}function x(k){d.Node.call(this,"der",k)}function e(k,h){var m=k.readUInt8(h);if(k.isError(m))return m;var p=l.tagClass[m>>6],v=0===(m&32);if(31===(m&31)){var r=m;for(m=0;128===(r&128);){r=k.readUInt8(h);if(k.isError(r))return r;m<<=7;m|=r&127}}else m&=31;return{cls:p,primitive:v,tag:m,tagStr:l.tag[m]}}function t(k,h,m){var p=k.readUInt8(m);if(k.isError(p))return p; if(!h&&128===p)return null;if(0===(p&128))return p;h=p&127;if(4k?2E3+k:1900+k;else return k.error("Decoding "+h+" time is not supported yet");return Date.UTC(k,h-1,p,v,r,m,0)};x.prototype._decodeNull= function(k){return null};x.prototype._decodeBool=function(k){var h=k.readUInt8();return k.isError(h)?h:0!==h};x.prototype._decodeInt=function(k,h){k=k.raw();k=new n(k);h&&(k=h[k.toString(10)]||k);return k};x.prototype._use=function(k,h){"function"===typeof k&&(k=k(h));return k._getDecoder("der").tree}}; shadow$provide[165]=function(O,E,S,J){function g(t){e.call(this,t);this.enc="pem"}O=E(40);var x=E(37).Buffer,e=E(164);O(g,e);S.exports=g;g.prototype.decode=function(t,d){t=t.toString().split(/[\r\n]+/g);for(var n=d.label.toUpperCase(),l=/^-----(BEGIN|END) ([^-]+)-----$/,k=-1,h=-1,m=0;ml?"0"+l:l}O=E(40);var t=E(37).Buffer;E=E(170);var d=E.base,n=E.constants.der;S.exports=g;g.prototype.encode=function(l,k){return this.tree._encode(l,k).join()};O(x,d.Node);x.prototype._encodeComposite=function(l,k,h,m){a:{var p=l;l=this.reporter;"seqof"===p?p="seq":"setof"===p&&(p="set");if(n.tagByName.hasOwnProperty(p))p= n.tagByName[p];else if("number"!==typeof p||(p|0)!==p){l=l.error("Unknown tag: "+p);break a}31<=p?l=l.error("Multi-octet tag encoding unsupported"):(k||(p|=32),l=p|=n.tagClassByName[h||"universal"]<<6)}if(128>m.length)return k=new t(2),k[0]=l,k[1]=m.length,this._createEncoderBuffer([k,m]);p=1;for(h=m.length;256<=h;h>>=8)p++;k=new t(2+p);k[0]=l;k[1]=128|p;h=1+p;for(l=m.length;0>=8)k[h]=l&255;return this._createEncoderBuffer([k,m])};x.prototype._encodeStr=function(l,k){if("bitstr"===k)return this._createEncoderBuffer([l.unused| 0,l.data]);if("bmpstr"===k){k=new t(2*l.length);for(var h=0;h>=7)m++;m=new t(m);var p=m.length-1;for(k=l.length-1;0<=k;k--)for(h=l[k],m[p--]=h&127;0<(h>>=7);)m[p--]=128|h&127;return this._createEncoderBuffer(m)};x.prototype._encodeTime=function(l,k){var h;l=new Date(l);"gentime"===k? h=[e(l.getFullYear()),e(l.getUTCMonth()+1),e(l.getUTCDate()),e(l.getUTCHours()),e(l.getUTCMinutes()),e(l.getUTCSeconds()),"Z"].join(""):"utctime"===k?h=[e(l.getFullYear()%100),e(l.getUTCMonth()+1),e(l.getUTCDate()),e(l.getUTCHours()),e(l.getUTCMinutes()),e(l.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+k+" time is not supported yet");return this._encodeStr(h,"octstr")};x.prototype._encodeNull=function(){return this._createEncoderBuffer("")};x.prototype._encodeInt=function(l,k){if("string"=== typeof l){if(!k)return this.reporter.error("String int or enum given, but no values map");if(!k.hasOwnProperty(l))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(l));l=k[l]}"number"===typeof l||t.isBuffer(l)||(k=l.toArray(),!l.sign&&k[0]&128&&k.unshift(0),l=new t(k));if(t.isBuffer(l)){var h=l.length;0===l.length&&h++;h=new t(h);l.copy(h);0===l.length&&(h[0]=0);return this._createEncoderBuffer(h)}if(128>l)return this._createEncoderBuffer(l);if(256>l)return this._createEncoderBuffer([0, l]);h=1;for(k=l;256<=k;k>>=8)h++;h=Array(h);for(k=h.length-1;0<=k;k--)h[k]=l&255,l>>=8;h[0]&128&&h.unshift(0);return this._createEncoderBuffer(new t(h))};x.prototype._encodeBool=function(l){return this._createEncoderBuffer(l?255:0)};x.prototype._use=function(l,k){"function"===typeof l&&(l=l(k));return l._getEncoder("der").tree};x.prototype._skipDefault=function(l,k,h){var m=this._baseState;if(null===m["default"])return!1;l=l.join();void 0===m.defaultBuffer&&(m.defaultBuffer=this._encodeValue(m["default"], k,h).join());if(l.length!==m.defaultBuffer.length)return!1;for(k=0;k=l.cmpn(0))throw Error("invalid sig");if(0<=l.cmp(k))throw Error("invalid sig");}var x=E(121).Buffer,e=E(122),t=E(154).ec,d=E(176),n=E(177);S.exports=function(l,k,h,m,p){h=d(h);if("ec"===h.type){if("ecdsa"!==m&&"ecdsa/rsa"!==m)throw Error("wrong public key type");m=n[h.data.algorithm.curve.join(".")];if(!m)throw Error("unknown curve "+h.data.algorithm.curve.join("."));return(new t(m)).verify(k,l,h.data.subjectPrivateKey.data)}if("dsa"===h.type){if("dsa"!== m)throw Error("wrong public key type");m=h.data.p;p=h.data.q;var v=h.data.g;h=h.data.pub_key;var r=d.signature.decode(l,"der");l=r.s;r=r.r;g(l,p);g(r,p);var B=e.mont(m);l=l.invm(p);return 0===v.toRed(B).redPow((new e(k)).mul(l).mod(p)).fromRed().mul(h.toRed(B).redPow(r.mul(l).mod(p)).fromRed()).mod(m).mod(p).cmp(r)}if("rsa"!==m&&"ecdsa/rsa"!==m)throw Error("wrong public key type");k=x.concat([p,k]);p=h.modulus.byteLength();m=[1];for(v=0;k.length+m.length+2v?1:0;p=Math.min(l.length,m.length);l.length!==m.length&&(h=1);for(r=-1;++r=a?a-55:97<=a&&102>=a?a-87:a-48&15}function l(a,b, c){var f=n(a,c);c-1>=b&&(f|=n(a,c-1)<<4);return f}function k(a,b,c,f){var u=0;for(c=Math.min(a.length,c);b>>26,H=w&67108863;w=Math.min(A,b.length-1);for(var G=Math.max(0,A-a.length+1);G<=w;G++)u=a.words[A-G| 0]|0,y=b.words[G]|0,u=u*y+H,D+=u/67108864|0,H=u&67108863;c.words[A]=H|0;w=D|0}0!==w?c.words[A]=w|0:c.length--;return c.strip()}function m(a,b){this.x=a;this.y=b}function p(a,b){this.name=a;this.p=new d(b,16);this.n=this.p.bitLength();this.k=(new d(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function v(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function r(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")} function B(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function z(a){"string"===typeof a?(a=d._prime(a),this.m=a.p,this.prime=a):(e(a.gtn(1),"modulus must be greater than 1"),this.m=a,this.prime=null)}function F(a){z.call(this,a);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new d(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr()); this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof g?g.exports=d:x.BN=d;d.BN=d;d.wordSize=26;try{var K="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:E(44).Buffer}catch(a){}d.isBN=function(a){return a instanceof d?!0:null!==a&&"object"===typeof a&&a.constructor.wordSize===d.wordSize&&Array.isArray(a.words)};d.max=function(a,b){return 0a.cmp(b)?a:b};d.prototype._init=function(a,b,c){if("number"===typeof a)return this._initNumber(a,b,c);if("object"===typeof a)return this._initArray(a,b,c);"hex"===b&&(b=16);e(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");var f=0;"-"===a[0]&&(f++,this.negative=1);fa&&(this.negative=1,a=-a);67108864>a?(this.words= [a&67108863],this.length=1):4503599627370496>a?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(e(9007199254740992>a),this.words=[a&67108863,a/67108864&67108863,1],this.length=3);"le"===c&&this._initArray(this.toArray(),b,c)};d.prototype._initArray=function(a,b,c){e("number"===typeof a.length);if(0>=a.length)return this.words=[0],this.length=1,this;this.length=Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-f&67108863;f+=24;26<=f&&(f-=26,c++)}else if("le"===c)for(c=b=0;b>>26-f&67108863,f+=24,26<=f&&(f-=26,c++);return this.strip()};d.prototype._parseHex=function(a,b,c){this.length=Math.ceil((a.length-b)/6);this.words=Array(this.length);for(var f=0;f=b;f-=2)c=l(a,b,f)<>>26):u+=8;else for(f=0===(a.length-b)%2?b+1:b;f>>26):u+=8;this.strip()};d.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var f=0,u=1;67108863>=u;u*=b)f++;f--;u=u/b|0;var y=a.length-c,w=y%f;y=Math.min(y,y-w)+c;for(var A=c;Athis.words[0]+c?this.words[0]+=c: this._iaddn(c);if(0!==w){f=1;c=k(a,A,a.length,b);for(A=0;Athis.words[0]+c?this.words[0]+=c:this._iaddn(c)}this.strip()};d.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215;c=0!==f||u!==this.length-1?M[6-w.length]+w+c:w+c;a+=2;26<=a&&(a-=26,u--)}for(0!==f&&(c=f.toString(16)+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}if(a===(a|0)&&2<=a&&36>=a){f=R[a];u=L[a];c="";y=this.clone();for(y.negative=0;!y.isZero();)w=y.modn(u).toString(a),y=y.idivn(u),c=y.isZero()?w+c:M[f-w.length]+w+c;for(this.isZero()&&(c="0"+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}e(!1,"Base should be between 2 and 36")}; d.prototype.toNumber=function(){var a=this.words[0];2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:2>>= 13);64<=a&&(b+=7,a>>>=7);8<=a&&(b+=4,a>>>=4);2<=a&&(b+=2,a>>>=2);return b+a};d.prototype._zeroBits=function(a){if(0===a)return 26;var b=0;0===(a&8191)&&(b+=13,a>>>=13);0===(a&127)&&(b+=7,a>>>=7);0===(a&15)&&(b+=4,a>>>=4);0===(a&3)&&(b+=2,a>>>=2);0===(a&1)&&b++;return b};d.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,b=0;ba.length?this.clone().ior(a):a.clone().ior(this)};d.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)};d.prototype.iuand=function(a){var b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};d.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)};d.prototype.iuxor=function(a){if(this.length>a.length)var b=this;else b=a,a=this;for(var c=0;ca.length?this.clone().ixor(a):a.clone().ixor(this)};d.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)};d.prototype.inotn=function(a){e("number"===typeof a&&0<=a);var b=Math.ceil(a/26)|0;a%=26;this._expand(b);0>26-a);return this.strip()};d.prototype.notn=function(a){return this.clone().inotn(a)};d.prototype.setn=function(a,b){e("number"===typeof a&&0<=a);var c=a/26|0;a%=26;this._expand(c+1);this.words[c]=b?this.words[c]|1<a.length)var c=this;else c=a,a=this;for(var f=b=0;f>>=26;for(;0!==b&&f>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;fa.length?this.clone().iadd(a):a.clone().iadd(this)};d.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var b=this.iadd(a);a.negative=1;return b._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();b=this.cmp(a);if(0===b)return this.negative=0,this.length=1,this.words[0]=0,this;if(0>26,this.words[u]=b&67108863;for(;0!==f&&u>26,this.words[u]=b&67108863;if(0===f&&u>>13,G=f[1]| 0;A=G&8191;var P=G>>>13,U=f[2]|0;G=U&8191;var ca=U>>>13,ha=f[3]|0;U=ha&8191;var da=ha>>>13,ja=f[4]|0;ha=ja&8191;var Z=ja>>>13,ba=f[5]|0;ja=ba&8191;var X=ba>>>13,oa=f[6]|0;ba=oa&8191;var sa=oa>>>13,ka=f[7]|0;oa=ka&8191;var va=ka>>>13,ua=f[8]|0;ka=ua&8191;ua>>>=13;var wa=f[9]|0;f=wa&8191;wa>>>=13;var ta=u[0]|0,ya=ta&8191,Aa=ta>>>13,Ba=u[1]|0;ta=Ba&8191;var Da=Ba>>>13,za=u[2]|0;Ba=za&8191;var ra=za>>>13,pa=u[3]|0;za=pa&8191;var Y=pa>>>13,ia=u[4]|0;pa=ia&8191;var la=ia>>>13,qa=u[5]|0;ia=qa&8191;var W= qa>>>13,T=u[6]|0;qa=T&8191;var N=T>>>13,aa=u[7]|0;T=aa&8191;var ea=aa>>>13,fa=u[8]|0;aa=fa&8191;fa>>>=13;var na=u[9]|0;u=na&8191;na>>>=13;c.negative=a.negative^b.negative;c.length=19;var I=Math.imul(D,ya);a=Math.imul(D,Aa);a=a+Math.imul(H,ya)|0;b=Math.imul(H,Aa);var xa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(xa>>>26)|0;xa&=67108863;I=Math.imul(A,ya);a=Math.imul(A,Aa);a=a+Math.imul(P,ya)|0;b=Math.imul(P,Aa);I=I+Math.imul(D,ta)|0;a=a+Math.imul(D,Da)|0;a=a+Math.imul(H,ta)|0;b=b+Math.imul(H,Da)|0; var ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ma>>>26)|0;ma&=67108863;I=Math.imul(G,ya);a=Math.imul(G,Aa);a=a+Math.imul(ca,ya)|0;b=Math.imul(ca,Aa);I=I+Math.imul(A,ta)|0;a=a+Math.imul(A,Da)|0;a=a+Math.imul(P,ta)|0;b=b+Math.imul(P,Da)|0;I=I+Math.imul(D,Ba)|0;a=a+Math.imul(D,ra)|0;a=a+Math.imul(H,Ba)|0;b=b+Math.imul(H,ra)|0;var Fa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Fa>>>26)|0;Fa&=67108863;I=Math.imul(U,ya);a=Math.imul(U,Aa);a=a+Math.imul(da,ya)|0;b=Math.imul(da,Aa);I=I+Math.imul(G,ta)|0; a=a+Math.imul(G,Da)|0;a=a+Math.imul(ca,ta)|0;b=b+Math.imul(ca,Da)|0;I=I+Math.imul(A,Ba)|0;a=a+Math.imul(A,ra)|0;a=a+Math.imul(P,Ba)|0;b=b+Math.imul(P,ra)|0;I=I+Math.imul(D,za)|0;a=a+Math.imul(D,Y)|0;a=a+Math.imul(H,za)|0;b=b+Math.imul(H,Y)|0;var Ga=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ga>>>26)|0;Ga&=67108863;I=Math.imul(ha,ya);a=Math.imul(ha,Aa);a=a+Math.imul(Z,ya)|0;b=Math.imul(Z,Aa);I=I+Math.imul(U,ta)|0;a=a+Math.imul(U,Da)|0;a=a+Math.imul(da,ta)|0;b=b+Math.imul(da,Da)|0;I=I+Math.imul(G,Ba)| 0;a=a+Math.imul(G,ra)|0;a=a+Math.imul(ca,Ba)|0;b=b+Math.imul(ca,ra)|0;I=I+Math.imul(A,za)|0;a=a+Math.imul(A,Y)|0;a=a+Math.imul(P,za)|0;b=b+Math.imul(P,Y)|0;I=I+Math.imul(D,pa)|0;a=a+Math.imul(D,la)|0;a=a+Math.imul(H,pa)|0;b=b+Math.imul(H,la)|0;var Ia=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ia>>>26)|0;Ia&=67108863;I=Math.imul(ja,ya);a=Math.imul(ja,Aa);a=a+Math.imul(X,ya)|0;b=Math.imul(X,Aa);I=I+Math.imul(ha,ta)|0;a=a+Math.imul(ha,Da)|0;a=a+Math.imul(Z,ta)|0;b=b+Math.imul(Z,Da)|0;I=I+Math.imul(U, Ba)|0;a=a+Math.imul(U,ra)|0;a=a+Math.imul(da,Ba)|0;b=b+Math.imul(da,ra)|0;I=I+Math.imul(G,za)|0;a=a+Math.imul(G,Y)|0;a=a+Math.imul(ca,za)|0;b=b+Math.imul(ca,Y)|0;I=I+Math.imul(A,pa)|0;a=a+Math.imul(A,la)|0;a=a+Math.imul(P,pa)|0;b=b+Math.imul(P,la)|0;I=I+Math.imul(D,ia)|0;a=a+Math.imul(D,W)|0;a=a+Math.imul(H,ia)|0;b=b+Math.imul(H,W)|0;var Ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ha>>>26)|0;Ha&=67108863;I=Math.imul(ba,ya);a=Math.imul(ba,Aa);a=a+Math.imul(sa,ya)|0;b=Math.imul(sa,Aa);I=I+Math.imul(ja, ta)|0;a=a+Math.imul(ja,Da)|0;a=a+Math.imul(X,ta)|0;b=b+Math.imul(X,Da)|0;I=I+Math.imul(ha,Ba)|0;a=a+Math.imul(ha,ra)|0;a=a+Math.imul(Z,Ba)|0;b=b+Math.imul(Z,ra)|0;I=I+Math.imul(U,za)|0;a=a+Math.imul(U,Y)|0;a=a+Math.imul(da,za)|0;b=b+Math.imul(da,Y)|0;I=I+Math.imul(G,pa)|0;a=a+Math.imul(G,la)|0;a=a+Math.imul(ca,pa)|0;b=b+Math.imul(ca,la)|0;I=I+Math.imul(A,ia)|0;a=a+Math.imul(A,W)|0;a=a+Math.imul(P,ia)|0;b=b+Math.imul(P,W)|0;I=I+Math.imul(D,qa)|0;a=a+Math.imul(D,N)|0;a=a+Math.imul(H,qa)|0;b=b+Math.imul(H, N)|0;var Ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ma>>>26)|0;Ma&=67108863;I=Math.imul(oa,ya);a=Math.imul(oa,Aa);a=a+Math.imul(va,ya)|0;b=Math.imul(va,Aa);I=I+Math.imul(ba,ta)|0;a=a+Math.imul(ba,Da)|0;a=a+Math.imul(sa,ta)|0;b=b+Math.imul(sa,Da)|0;I=I+Math.imul(ja,Ba)|0;a=a+Math.imul(ja,ra)|0;a=a+Math.imul(X,Ba)|0;b=b+Math.imul(X,ra)|0;I=I+Math.imul(ha,za)|0;a=a+Math.imul(ha,Y)|0;a=a+Math.imul(Z,za)|0;b=b+Math.imul(Z,Y)|0;I=I+Math.imul(U,pa)|0;a=a+Math.imul(U,la)|0;a=a+Math.imul(da,pa)|0;b=b+Math.imul(da, la)|0;I=I+Math.imul(G,ia)|0;a=a+Math.imul(G,W)|0;a=a+Math.imul(ca,ia)|0;b=b+Math.imul(ca,W)|0;I=I+Math.imul(A,qa)|0;a=a+Math.imul(A,N)|0;a=a+Math.imul(P,qa)|0;b=b+Math.imul(P,N)|0;I=I+Math.imul(D,T)|0;a=a+Math.imul(D,ea)|0;a=a+Math.imul(H,T)|0;b=b+Math.imul(H,ea)|0;var La=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(La>>>26)|0;La&=67108863;I=Math.imul(ka,ya);a=Math.imul(ka,Aa);a=a+Math.imul(ua,ya)|0;b=Math.imul(ua,Aa);I=I+Math.imul(oa,ta)|0;a=a+Math.imul(oa,Da)|0;a=a+Math.imul(va,ta)|0;b=b+Math.imul(va, Da)|0;I=I+Math.imul(ba,Ba)|0;a=a+Math.imul(ba,ra)|0;a=a+Math.imul(sa,Ba)|0;b=b+Math.imul(sa,ra)|0;I=I+Math.imul(ja,za)|0;a=a+Math.imul(ja,Y)|0;a=a+Math.imul(X,za)|0;b=b+Math.imul(X,Y)|0;I=I+Math.imul(ha,pa)|0;a=a+Math.imul(ha,la)|0;a=a+Math.imul(Z,pa)|0;b=b+Math.imul(Z,la)|0;I=I+Math.imul(U,ia)|0;a=a+Math.imul(U,W)|0;a=a+Math.imul(da,ia)|0;b=b+Math.imul(da,W)|0;I=I+Math.imul(G,qa)|0;a=a+Math.imul(G,N)|0;a=a+Math.imul(ca,qa)|0;b=b+Math.imul(ca,N)|0;I=I+Math.imul(A,T)|0;a=a+Math.imul(A,ea)|0;a=a+Math.imul(P, T)|0;b=b+Math.imul(P,ea)|0;I=I+Math.imul(D,aa)|0;a=a+Math.imul(D,fa)|0;a=a+Math.imul(H,aa)|0;b=b+Math.imul(H,fa)|0;var Na=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Na>>>26)|0;Na&=67108863;I=Math.imul(f,ya);a=Math.imul(f,Aa);a=a+Math.imul(wa,ya)|0;b=Math.imul(wa,Aa);I=I+Math.imul(ka,ta)|0;a=a+Math.imul(ka,Da)|0;a=a+Math.imul(ua,ta)|0;b=b+Math.imul(ua,Da)|0;I=I+Math.imul(oa,Ba)|0;a=a+Math.imul(oa,ra)|0;a=a+Math.imul(va,Ba)|0;b=b+Math.imul(va,ra)|0;I=I+Math.imul(ba,za)|0;a=a+Math.imul(ba,Y)|0;a=a+Math.imul(sa, za)|0;b=b+Math.imul(sa,Y)|0;I=I+Math.imul(ja,pa)|0;a=a+Math.imul(ja,la)|0;a=a+Math.imul(X,pa)|0;b=b+Math.imul(X,la)|0;I=I+Math.imul(ha,ia)|0;a=a+Math.imul(ha,W)|0;a=a+Math.imul(Z,ia)|0;b=b+Math.imul(Z,W)|0;I=I+Math.imul(U,qa)|0;a=a+Math.imul(U,N)|0;a=a+Math.imul(da,qa)|0;b=b+Math.imul(da,N)|0;I=I+Math.imul(G,T)|0;a=a+Math.imul(G,ea)|0;a=a+Math.imul(ca,T)|0;b=b+Math.imul(ca,ea)|0;I=I+Math.imul(A,aa)|0;a=a+Math.imul(A,fa)|0;a=a+Math.imul(P,aa)|0;b=b+Math.imul(P,fa)|0;I=I+Math.imul(D,u)|0;a=a+Math.imul(D, na)|0;a=a+Math.imul(H,u)|0;b=b+Math.imul(H,na)|0;D=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(D>>>26)|0;D&=67108863;I=Math.imul(f,ta);a=Math.imul(f,Da);a=a+Math.imul(wa,ta)|0;b=Math.imul(wa,Da);I=I+Math.imul(ka,Ba)|0;a=a+Math.imul(ka,ra)|0;a=a+Math.imul(ua,Ba)|0;b=b+Math.imul(ua,ra)|0;I=I+Math.imul(oa,za)|0;a=a+Math.imul(oa,Y)|0;a=a+Math.imul(va,za)|0;b=b+Math.imul(va,Y)|0;I=I+Math.imul(ba,pa)|0;a=a+Math.imul(ba,la)|0;a=a+Math.imul(sa,pa)|0;b=b+Math.imul(sa,la)|0;I=I+Math.imul(ja,ia)|0;a=a+Math.imul(ja, W)|0;a=a+Math.imul(X,ia)|0;b=b+Math.imul(X,W)|0;I=I+Math.imul(ha,qa)|0;a=a+Math.imul(ha,N)|0;a=a+Math.imul(Z,qa)|0;b=b+Math.imul(Z,N)|0;I=I+Math.imul(U,T)|0;a=a+Math.imul(U,ea)|0;a=a+Math.imul(da,T)|0;b=b+Math.imul(da,ea)|0;I=I+Math.imul(G,aa)|0;a=a+Math.imul(G,fa)|0;a=a+Math.imul(ca,aa)|0;b=b+Math.imul(ca,fa)|0;I=I+Math.imul(A,u)|0;a=a+Math.imul(A,na)|0;a=a+Math.imul(P,u)|0;b=b+Math.imul(P,na)|0;A=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(A>>>26)|0;A&=67108863;I=Math.imul(f,Ba);a=Math.imul(f,ra); a=a+Math.imul(wa,Ba)|0;b=Math.imul(wa,ra);I=I+Math.imul(ka,za)|0;a=a+Math.imul(ka,Y)|0;a=a+Math.imul(ua,za)|0;b=b+Math.imul(ua,Y)|0;I=I+Math.imul(oa,pa)|0;a=a+Math.imul(oa,la)|0;a=a+Math.imul(va,pa)|0;b=b+Math.imul(va,la)|0;I=I+Math.imul(ba,ia)|0;a=a+Math.imul(ba,W)|0;a=a+Math.imul(sa,ia)|0;b=b+Math.imul(sa,W)|0;I=I+Math.imul(ja,qa)|0;a=a+Math.imul(ja,N)|0;a=a+Math.imul(X,qa)|0;b=b+Math.imul(X,N)|0;I=I+Math.imul(ha,T)|0;a=a+Math.imul(ha,ea)|0;a=a+Math.imul(Z,T)|0;b=b+Math.imul(Z,ea)|0;I=I+Math.imul(U, aa)|0;a=a+Math.imul(U,fa)|0;a=a+Math.imul(da,aa)|0;b=b+Math.imul(da,fa)|0;I=I+Math.imul(G,u)|0;a=a+Math.imul(G,na)|0;a=a+Math.imul(ca,u)|0;b=b+Math.imul(ca,na)|0;G=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(G>>>26)|0;G&=67108863;I=Math.imul(f,za);a=Math.imul(f,Y);a=a+Math.imul(wa,za)|0;b=Math.imul(wa,Y);I=I+Math.imul(ka,pa)|0;a=a+Math.imul(ka,la)|0;a=a+Math.imul(ua,pa)|0;b=b+Math.imul(ua,la)|0;I=I+Math.imul(oa,ia)|0;a=a+Math.imul(oa,W)|0;a=a+Math.imul(va,ia)|0;b=b+Math.imul(va,W)|0;I=I+Math.imul(ba, qa)|0;a=a+Math.imul(ba,N)|0;a=a+Math.imul(sa,qa)|0;b=b+Math.imul(sa,N)|0;I=I+Math.imul(ja,T)|0;a=a+Math.imul(ja,ea)|0;a=a+Math.imul(X,T)|0;b=b+Math.imul(X,ea)|0;I=I+Math.imul(ha,aa)|0;a=a+Math.imul(ha,fa)|0;a=a+Math.imul(Z,aa)|0;b=b+Math.imul(Z,fa)|0;I=I+Math.imul(U,u)|0;a=a+Math.imul(U,na)|0;a=a+Math.imul(da,u)|0;b=b+Math.imul(da,na)|0;U=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(U>>>26)|0;U&=67108863;I=Math.imul(f,pa);a=Math.imul(f,la);a=a+Math.imul(wa,pa)|0;b=Math.imul(wa,la);I=I+Math.imul(ka, ia)|0;a=a+Math.imul(ka,W)|0;a=a+Math.imul(ua,ia)|0;b=b+Math.imul(ua,W)|0;I=I+Math.imul(oa,qa)|0;a=a+Math.imul(oa,N)|0;a=a+Math.imul(va,qa)|0;b=b+Math.imul(va,N)|0;I=I+Math.imul(ba,T)|0;a=a+Math.imul(ba,ea)|0;a=a+Math.imul(sa,T)|0;b=b+Math.imul(sa,ea)|0;I=I+Math.imul(ja,aa)|0;a=a+Math.imul(ja,fa)|0;a=a+Math.imul(X,aa)|0;b=b+Math.imul(X,fa)|0;I=I+Math.imul(ha,u)|0;a=a+Math.imul(ha,na)|0;a=a+Math.imul(Z,u)|0;b=b+Math.imul(Z,na)|0;ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ha>>>26)|0;ha&=67108863; I=Math.imul(f,ia);a=Math.imul(f,W);a=a+Math.imul(wa,ia)|0;b=Math.imul(wa,W);I=I+Math.imul(ka,qa)|0;a=a+Math.imul(ka,N)|0;a=a+Math.imul(ua,qa)|0;b=b+Math.imul(ua,N)|0;I=I+Math.imul(oa,T)|0;a=a+Math.imul(oa,ea)|0;a=a+Math.imul(va,T)|0;b=b+Math.imul(va,ea)|0;I=I+Math.imul(ba,aa)|0;a=a+Math.imul(ba,fa)|0;a=a+Math.imul(sa,aa)|0;b=b+Math.imul(sa,fa)|0;I=I+Math.imul(ja,u)|0;a=a+Math.imul(ja,na)|0;a=a+Math.imul(X,u)|0;b=b+Math.imul(X,na)|0;ja=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ja>>>26)|0;ja&=67108863; I=Math.imul(f,qa);a=Math.imul(f,N);a=a+Math.imul(wa,qa)|0;b=Math.imul(wa,N);I=I+Math.imul(ka,T)|0;a=a+Math.imul(ka,ea)|0;a=a+Math.imul(ua,T)|0;b=b+Math.imul(ua,ea)|0;I=I+Math.imul(oa,aa)|0;a=a+Math.imul(oa,fa)|0;a=a+Math.imul(va,aa)|0;b=b+Math.imul(va,fa)|0;I=I+Math.imul(ba,u)|0;a=a+Math.imul(ba,na)|0;a=a+Math.imul(sa,u)|0;b=b+Math.imul(sa,na)|0;ba=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ba>>>26)|0;ba&=67108863;I=Math.imul(f,T);a=Math.imul(f,ea);a=a+Math.imul(wa,T)|0;b=Math.imul(wa,ea);I=I+Math.imul(ka, aa)|0;a=a+Math.imul(ka,fa)|0;a=a+Math.imul(ua,aa)|0;b=b+Math.imul(ua,fa)|0;I=I+Math.imul(oa,u)|0;a=a+Math.imul(oa,na)|0;a=a+Math.imul(va,u)|0;b=b+Math.imul(va,na)|0;oa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(oa>>>26)|0;oa&=67108863;I=Math.imul(f,aa);a=Math.imul(f,fa);a=a+Math.imul(wa,aa)|0;b=Math.imul(wa,fa);I=I+Math.imul(ka,u)|0;a=a+Math.imul(ka,na)|0;a=a+Math.imul(ua,u)|0;b=b+Math.imul(ua,na)|0;ka=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ka>>>26)|0;ka&=67108863;I=Math.imul(f,u);a=Math.imul(f, na);a=a+Math.imul(wa,u)|0;b=Math.imul(wa,na);H=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(H>>>26)|0;y[0]=xa;y[1]=ma;y[2]=Fa;y[3]=Ga;y[4]=Ia;y[5]=Ha;y[6]=Ma;y[7]=La;y[8]=Na;y[9]=D;y[10]=A;y[11]=G;y[12]=U;y[13]=ha;y[14]=ja;y[15]=ba;y[16]=oa;y[17]=ka;y[18]=H&67108863;0!==w&&(y[19]=w,c.length++);return c};Math.imul||(V=h);d.prototype.mulTo=function(a,b){var c=this.length+a.length;if(10===this.length&&10===a.length)a=V(this,a,b);else if(63>c)a=h(this,a,b);else if(1024>c){b.negative=a.negative^this.negative; b.length=this.length+a.length;for(var f=0,u=c=0;u>>26)|0;c+=y>>>26;y&=67108863}b.words[u]=f;f=y}0!==f?b.words[u]=f:b.length--;a=b.strip()}else a=(new m).mulp(this,a,b);return a};m.prototype.makeRBT=function(a){for(var b=Array(a),c=d.prototype._countBits(a)-1,f=0;f>=1;return c};m.prototype.permute=function(a,b,c,f,u,y){for(var w=0;w>>=1)c++;return 1<=c))for(var f=0;fc?0:c/67108864|0;return a}; m.prototype.convert13b=function(a,b,c,f){for(var u=0,y=0;y>>=13,c[2*y+1]=u&8191,u>>>=13;for(y=2*b;ya);for(var b=0,c=0;c>=26;b+=f/67108864|0;b+=u>>>26;this.words[c]=u&67108863}0!==b&&(this.words[c]=b,this.length++);return this};d.prototype.muln=function(a){return this.clone().imuln(a)};d.prototype.sqr=function(){return this.mul(this)};d.prototype.isqr=function(){return this.imul(this.clone())}; d.prototype.pow=function(a){for(var b=Array(a.bitLength()),c=0;c>>f}if(0===b.length)return new d(1);a=this;for(c=0;c>>26-b<<26-b,f;if(0!==b){var u=0;for(f=0;f>>26-b}u&&(this.words[f]=u,this.length++)}if(0!==a){for(f=this.length-1;0<=f;f--)this.words[f+a]=this.words[f];for(f=0;f>>f<u)for(this.length-=u,y=0;y=b);y--){var w=this.words[y]|0;this.words[y]=u<<26-f|w>>>f;u=w&a}c&&0!==u&&(c.words[c.length++]=u);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};d.prototype.ishrn=function(a,b,c){e(0===this.negative);return this.iushrn(a,b,c)};d.prototype.shln=function(a){return this.clone().ishln(a)};d.prototype.ushln=function(a){return this.clone().iushln(a)}; d.prototype.shrn=function(a){return this.clone().ishrn(a)};d.prototype.ushrn=function(a){return this.clone().iushrn(a)};d.prototype.testn=function(a){e("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a?!1:!!(this.words[a]&1<>>b<a);if(0>a)return this.isubn(-a);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)a);if(0>a)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;this.words[0]-=a;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};d.prototype.addn= function(a){return this.clone().iaddn(a)};d.prototype.subn=function(a){return this.clone().isubn(a)};d.prototype.iabs=function(){this.negative=0;return this};d.prototype.abs=function(){return this.clone().iabs()};d.prototype._ishlnsubmul=function(a,b,c){var f;this._expand(a.length+c);var u=0;for(f=0;f>26)-(u/67108864|0);this.words[f+c]=y&67108863}for(;f>26,this.words[f+c]= y&67108863;if(0===u)return this.strip();e(-1===u);for(f=u=0;f>26,this.words[f]=y&67108863;this.negative=1;return this.strip()};d.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,u=f.words[f.length-1]|0;a=26-this._countBits(u);0!==a&&(f=f.ushln(a),c.iushln(a),u=f.words[f.length-1]|0);var y=c.length-f.length;if("mod"!==b){var w=new d(null);w.length=y+1;w.words=Array(w.length);for(var A=0;Athis.length||0>this.cmp(a)?{div:new d(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null, mod:new d(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new d(this.modn(a.words[0]))}:this._wordDiv(a,b)};d.prototype.div=function(a){return this.divmod(a,"div",!1).div};d.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod};d.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod};d.prototype.divRound=function(a){var b=this.divmod(a);if(b.mod.isZero())return b.div;var c=0!==b.div.negative?b.mod.isub(a):b.mod,f=a.ushrn(1);a=a.andln(1);c=c.cmp(f);return 0>c||1===a&&0===c?b.div: 0!==b.div.negative?b.div.isubn(1):b.div.iaddn(1)};d.prototype.modn=function(a){e(67108863>=a);for(var b=67108864%a,c=0,f=this.length-1;0<=f;f--)c=(b*c+(this.words[f]|0))%a;return c};d.prototype.idivn=function(a){e(67108863>=a);for(var b=0,c=this.length-1;0<=c;c--)b=(this.words[c]|0)+67108864*b,this.words[c]=b/a|0,b%=a;return this.strip()};d.prototype.divn=function(a){return this.clone().idivn(a)};d.prototype.egcd=function(a){e(0===a.negative);e(!a.isZero());var b=this,c=a.clone();b=0!==b.negative? b.umod(a):b.clone();a=new d(1);for(var f=new d(0),u=new d(0),y=new d(1),w=0;b.isEven()&&c.isEven();)b.iushrn(1),c.iushrn(1),++w;for(var A=c.clone(),D=b.clone();!b.isZero();){for(var H=0,G=1;0===(b.words[0]&G)&&26>H;++H,G<<=1);if(0H;++H,G<<=1);if(0w;++w,A<<=1);if(0w;++w,A<<=1);if(0b.cmpn(0)&&b.iadd(a);return b};d.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var b=this.clone();a=a.clone();b.negative=0;for(var c=a.negative=0;b.isEven()&&a.isEven();c++)b.iushrn(1),a.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;a.isEven();)a.iushrn(1);var f=b.cmp(a);if(0>f)f=b,b=a,a=f;else if(0===f||0===a.cmpn(1))break;b.isub(a)}while(1);return a.iushln(c)};d.prototype.invm=function(a){return this.egcd(a).a.umod(a)}; d.prototype.isEven=function(){return 0===(this.words[0]&1)};d.prototype.isOdd=function(){return 1===(this.words[0]&1)};d.prototype.andln=function(a){return this.words[0]&a};d.prototype.bincn=function(a){e("number"===typeof a);var b=a%26;a=(a-b)/26;b=1<>>26;c&=67108863;this.words[a]=c}0!==b&&(this.words[a]=b,this.length++);return this};d.prototype.isZero=function(){return 1=== this.length&&0===this.words[0]};d.prototype.cmpn=function(a){var b=0>a;if(0!==this.negative&&!b)return-1;if(0===this.negative&&b)return 1;this.strip();1=a,"Number is too big"),b=this.words[0]|0,a=b===a?0:ba.length)return 1; if(this.lengthu&&(b=1);break}}return b};d.prototype.gtn=function(a){return 1===this.cmpn(a)};d.prototype.gt=function(a){return 1===this.cmp(a)};d.prototype.gten=function(a){return 0<=this.cmpn(a)};d.prototype.gte=function(a){return 0<=this.cmp(a)};d.prototype.ltn=function(a){return-1===this.cmpn(a)};d.prototype.lt=function(a){return-1===this.cmp(a)};d.prototype.lten=function(a){return 0>= this.cmpn(a)};d.prototype.lte=function(a){return 0>=this.cmp(a)};d.prototype.eqn=function(a){return 0===this.cmpn(a)};d.prototype.eq=function(a){return 0===this.cmp(a)};d.red=function(a){return new z(a)};d.prototype.toRed=function(a){e(!this.red,"Already a number in reduction context");e(0===this.negative,"red works only with positives");return a.convertTo(this)._forceRed(a)};d.prototype.fromRed=function(){e(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)}; d.prototype._forceRed=function(a){this.red=a;return this};d.prototype.forceRed=function(a){e(!this.red,"Already a number in reduction context");return this._forceRed(a)};d.prototype.redAdd=function(a){e(this.red,"redAdd works only with red numbers");return this.red.add(this,a)};d.prototype.redIAdd=function(a){e(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,a)};d.prototype.redSub=function(a){e(this.red,"redSub works only with red numbers");return this.red.sub(this,a)};d.prototype.redISub= function(a){e(this.red,"redISub works only with red numbers");return this.red.isub(this,a)};d.prototype.redShl=function(a){e(this.red,"redShl works only with red numbers");return this.red.shl(this,a)};d.prototype.redMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.mul(this,a)};d.prototype.redIMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.imul(this,a)};d.prototype.redSqr=function(){e(this.red, "redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};d.prototype.redISqr=function(){e(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};d.prototype.redSqrt=function(){e(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};d.prototype.redInvm=function(){e(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};d.prototype.redNeg= function(){e(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};d.prototype.redPow=function(a){e(this.red&&!a.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,a)};var Q={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var a=new d(null);a.words=Array(Math.ceil(this.n/13));return a};p.prototype.ireduce=function(a){do{this.split(a,this.tmp);a=this.imulK(a);a=a.iadd(this.tmp);var b=a.bitLength()}while(b>this.n); b=b=a.length)a.words[0]=0,a.length=1;else{c=a.words[9];b.words[b.length++]=c&4194303;for(f=10;f>>22,c=b;c>>>=22;a.words[f-10]=c;a.length=0===c&&10>>=26;a.words[c]= f}0!==b&&(a.words[a.length++]=b);return a};d._prime=function(a){if(Q[a])return Q[a];if("k256"===a)var b=new v;else if("p224"===a)b=new r;else if("p192"===a)b=new B;else if("p25519"===a)b=new C;else throw Error("Unknown prime "+a);return Q[a]=b};z.prototype._verify1=function(a){e(0===a.negative,"red works only with positives");e(a.red,"red works only with red numbers")};z.prototype._verify2=function(a,b){e(0===(a.negative|b.negative),"red works only with positives");e(a.red&&a.red===b.red,"red works only with red numbers")}; z.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)};z.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)};z.prototype.add=function(a,b){this._verify2(a,b);a=a.add(b);0<=a.cmp(this.m)&&a.isub(this.m);return a._forceRed(this)};z.prototype.iadd=function(a,b){this._verify2(a,b);a=a.iadd(b);0<=a.cmp(this.m)&&a.isub(this.m);return a};z.prototype.sub=function(a,b){this._verify2(a,b);a=a.sub(b);0>a.cmpn(0)&& a.iadd(this.m);return a._forceRed(this)};z.prototype.isub=function(a,b){this._verify2(a,b);a=a.isub(b);0>a.cmpn(0)&&a.iadd(this.m);return a};z.prototype.shl=function(a,b){this._verify1(a);return this.imod(a.ushln(b))};z.prototype.imul=function(a,b){this._verify2(a,b);return this.imod(a.imul(b))};z.prototype.mul=function(a,b){this._verify2(a,b);return this.imod(a.mul(b))};z.prototype.isqr=function(a){return this.imul(a,a.clone())};z.prototype.sqr=function(a){return this.mul(a,a)};z.prototype.sqrt= function(a){if(a.isZero())return a.clone();var b=this.m.andln(3);e(1===b%2);if(3===b)return b=this.m.add(new d(1)).iushrn(2),this.pow(a,b);for(var c=this.m.subn(1),f=0;!c.isZero()&&0===c.andln(1);)f++,c.iushrn(1);e(!c.isZero());b=(new d(1)).toRed(this);var u=b.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=(new d(2*w*w)).toRed(this);0!==this.pow(w,y).cmp(u);)w.redIAdd(u);y=this.pow(w,c);u=this.pow(a,c.addn(1).iushrn(1));a=this.pow(a,c);for(c=f;0!==a.cmp(b);){w=a;for(f=0;0!==w.cmp(b);f++)w= w.redSqr();e(f>w&1;a!==c[0]&&(a=this.sqr(a));if(0===D&&0===u)y=0;else if(u<<=1,u|=D,y++,4===y||0===f&&0===w)a=this.mul(a,c[u]),u=y=0}w=26}return a};z.prototype.convertTo=function(a){var b=a.umod(this.m);return b===a?b.clone():b};z.prototype.convertFrom=function(a){a=a.clone();a.red=null;return a};d.mont=function(a){return new F(a)};t(F,z);F.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))};F.prototype.convertFrom=function(a){a=this.imod(a.mul(this.rinv)); a.red=null;return a};F.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;a=a.imul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return(new d(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift); 0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof S||S,this)}; shadow$provide[182]=function(O,E,S,J){function g(l){this.curveType=n[l];this.curveType||(this.curveType={name:l});this.curve=new t.ec(this.curveType.name);this.keys=void 0}function x(l,k,h){Array.isArray(l)||(l=l.toArray());l=new e(l);h&&l.length=a?a-55:97<=a&&102>=a?a-87:a-48&15}function l(a,b, c){var f=n(a,c);c-1>=b&&(f|=n(a,c-1)<<4);return f}function k(a,b,c,f){var u=0;for(c=Math.min(a.length,c);b>>26,H=w&67108863;w=Math.min(A,b.length-1);for(var G=Math.max(0,A-a.length+1);G<=w;G++)u=a.words[A-G| 0]|0,y=b.words[G]|0,u=u*y+H,D+=u/67108864|0,H=u&67108863;c.words[A]=H|0;w=D|0}0!==w?c.words[A]=w|0:c.length--;return c.strip()}function m(a,b){this.x=a;this.y=b}function p(a,b){this.name=a;this.p=new d(b,16);this.n=this.p.bitLength();this.k=(new d(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function v(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function r(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")} function B(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function z(a){"string"===typeof a?(a=d._prime(a),this.m=a.p,this.prime=a):(e(a.gtn(1),"modulus must be greater than 1"),this.m=a,this.prime=null)}function F(a){z.call(this,a);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new d(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr()); this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof g?g.exports=d:x.BN=d;d.BN=d;d.wordSize=26;try{var K="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:E(44).Buffer}catch(a){}d.isBN=function(a){return a instanceof d?!0:null!==a&&"object"===typeof a&&a.constructor.wordSize===d.wordSize&&Array.isArray(a.words)};d.max=function(a,b){return 0a.cmp(b)?a:b};d.prototype._init=function(a,b,c){if("number"===typeof a)return this._initNumber(a,b,c);if("object"===typeof a)return this._initArray(a,b,c);"hex"===b&&(b=16);e(b===(b|0)&&2<=b&&36>=b);a=a.toString().replace(/\s+/g,"");var f=0;"-"===a[0]&&(f++,this.negative=1);fa&&(this.negative=1,a=-a);67108864>a?(this.words= [a&67108863],this.length=1):4503599627370496>a?(this.words=[a&67108863,a/67108864&67108863],this.length=2):(e(9007199254740992>a),this.words=[a&67108863,a/67108864&67108863,1],this.length=3);"le"===c&&this._initArray(this.toArray(),b,c)};d.prototype._initArray=function(a,b,c){e("number"===typeof a.length);if(0>=a.length)return this.words=[0],this.length=1,this;this.length=Math.ceil(a.length/3);this.words=Array(this.length);for(b=0;b>>26-f&67108863;f+=24;26<=f&&(f-=26,c++)}else if("le"===c)for(c=b=0;b>>26-f&67108863,f+=24,26<=f&&(f-=26,c++);return this.strip()};d.prototype._parseHex=function(a,b,c){this.length=Math.ceil((a.length-b)/6);this.words=Array(this.length);for(var f=0;f=b;f-=2)c=l(a,b,f)<>>26):u+=8;else for(f=0===(a.length-b)%2?b+1:b;f>>26):u+=8;this.strip()};d.prototype._parseBase=function(a,b,c){this.words=[0];this.length=1;for(var f=0,u=1;67108863>=u;u*=b)f++;f--;u=u/b|0;var y=a.length-c,w=y%f;y=Math.min(y,y-w)+c;for(var A=c;Athis.words[0]+c?this.words[0]+=c: this._iaddn(c);if(0!==w){f=1;c=k(a,A,a.length,b);for(A=0;Athis.words[0]+c?this.words[0]+=c:this._iaddn(c)}this.strip()};d.prototype.copy=function(a){a.words=Array(this.length);for(var b=0;b>>24-a&16777215;c=0!==f||u!==this.length-1?M[6-w.length]+w+c:w+c;a+=2;26<=a&&(a-=26,u--)}for(0!==f&&(c=f.toString(16)+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}if(a===(a|0)&&2<=a&&36>=a){f=R[a];u=L[a];c="";y=this.clone();for(y.negative=0;!y.isZero();)w=y.modn(u).toString(a),y=y.idivn(u),c=y.isZero()?w+c:M[f-w.length]+w+c;for(this.isZero()&&(c="0"+c);0!==c.length%b;)c="0"+c;0!==this.negative&&(c="-"+c);return c}e(!1,"Base should be between 2 and 36")}; d.prototype.toNumber=function(){var a=this.words[0];2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:2>>= 13);64<=a&&(b+=7,a>>>=7);8<=a&&(b+=4,a>>>=4);2<=a&&(b+=2,a>>>=2);return b+a};d.prototype._zeroBits=function(a){if(0===a)return 26;var b=0;0===(a&8191)&&(b+=13,a>>>=13);0===(a&127)&&(b+=7,a>>>=7);0===(a&15)&&(b+=4,a>>>=4);0===(a&3)&&(b+=2,a>>>=2);0===(a&1)&&b++;return b};d.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a};d.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,b=0;ba.length?this.clone().ior(a):a.clone().ior(this)};d.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)};d.prototype.iuand=function(a){var b=this.length>a.length?a:this;for(var c=0;ca.length?this.clone().iand(a):a.clone().iand(this)};d.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)};d.prototype.iuxor=function(a){if(this.length>a.length)var b=this;else b=a,a=this;for(var c=0;ca.length?this.clone().ixor(a):a.clone().ixor(this)};d.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)};d.prototype.inotn=function(a){e("number"===typeof a&&0<=a);var b=Math.ceil(a/26)|0;a%=26;this._expand(b);0>26-a);return this.strip()};d.prototype.notn=function(a){return this.clone().inotn(a)};d.prototype.setn=function(a,b){e("number"===typeof a&&0<=a);var c=a/26|0;a%=26;this._expand(c+1);this.words[c]=b?this.words[c]|1<a.length)var c=this;else c=a,a=this;for(var f=b=0;f>>=26;for(;0!==b&&f>>=26;this.length=c.length;if(0!==b)this.words[this.length]=b,this.length++;else if(c!==this)for(;fa.length?this.clone().iadd(a):a.clone().iadd(this)};d.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var b=this.iadd(a);a.negative=1;return b._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();b=this.cmp(a);if(0===b)return this.negative=0,this.length=1,this.words[0]=0,this;if(0>26,this.words[u]=b&67108863;for(;0!==f&&u>26,this.words[u]=b&67108863;if(0===f&&u>>13,G=f[1]| 0;A=G&8191;var P=G>>>13,U=f[2]|0;G=U&8191;var ca=U>>>13,ha=f[3]|0;U=ha&8191;var da=ha>>>13,ja=f[4]|0;ha=ja&8191;var Z=ja>>>13,ba=f[5]|0;ja=ba&8191;var X=ba>>>13,oa=f[6]|0;ba=oa&8191;var sa=oa>>>13,ka=f[7]|0;oa=ka&8191;var va=ka>>>13,ua=f[8]|0;ka=ua&8191;ua>>>=13;var wa=f[9]|0;f=wa&8191;wa>>>=13;var ta=u[0]|0,ya=ta&8191,Aa=ta>>>13,Ba=u[1]|0;ta=Ba&8191;var Da=Ba>>>13,za=u[2]|0;Ba=za&8191;var ra=za>>>13,pa=u[3]|0;za=pa&8191;var Y=pa>>>13,ia=u[4]|0;pa=ia&8191;var la=ia>>>13,qa=u[5]|0;ia=qa&8191;var W= qa>>>13,T=u[6]|0;qa=T&8191;var N=T>>>13,aa=u[7]|0;T=aa&8191;var ea=aa>>>13,fa=u[8]|0;aa=fa&8191;fa>>>=13;var na=u[9]|0;u=na&8191;na>>>=13;c.negative=a.negative^b.negative;c.length=19;var I=Math.imul(D,ya);a=Math.imul(D,Aa);a=a+Math.imul(H,ya)|0;b=Math.imul(H,Aa);var xa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(xa>>>26)|0;xa&=67108863;I=Math.imul(A,ya);a=Math.imul(A,Aa);a=a+Math.imul(P,ya)|0;b=Math.imul(P,Aa);I=I+Math.imul(D,ta)|0;a=a+Math.imul(D,Da)|0;a=a+Math.imul(H,ta)|0;b=b+Math.imul(H,Da)|0; var ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ma>>>26)|0;ma&=67108863;I=Math.imul(G,ya);a=Math.imul(G,Aa);a=a+Math.imul(ca,ya)|0;b=Math.imul(ca,Aa);I=I+Math.imul(A,ta)|0;a=a+Math.imul(A,Da)|0;a=a+Math.imul(P,ta)|0;b=b+Math.imul(P,Da)|0;I=I+Math.imul(D,Ba)|0;a=a+Math.imul(D,ra)|0;a=a+Math.imul(H,Ba)|0;b=b+Math.imul(H,ra)|0;var Fa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Fa>>>26)|0;Fa&=67108863;I=Math.imul(U,ya);a=Math.imul(U,Aa);a=a+Math.imul(da,ya)|0;b=Math.imul(da,Aa);I=I+Math.imul(G,ta)|0; a=a+Math.imul(G,Da)|0;a=a+Math.imul(ca,ta)|0;b=b+Math.imul(ca,Da)|0;I=I+Math.imul(A,Ba)|0;a=a+Math.imul(A,ra)|0;a=a+Math.imul(P,Ba)|0;b=b+Math.imul(P,ra)|0;I=I+Math.imul(D,za)|0;a=a+Math.imul(D,Y)|0;a=a+Math.imul(H,za)|0;b=b+Math.imul(H,Y)|0;var Ga=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ga>>>26)|0;Ga&=67108863;I=Math.imul(ha,ya);a=Math.imul(ha,Aa);a=a+Math.imul(Z,ya)|0;b=Math.imul(Z,Aa);I=I+Math.imul(U,ta)|0;a=a+Math.imul(U,Da)|0;a=a+Math.imul(da,ta)|0;b=b+Math.imul(da,Da)|0;I=I+Math.imul(G,Ba)| 0;a=a+Math.imul(G,ra)|0;a=a+Math.imul(ca,Ba)|0;b=b+Math.imul(ca,ra)|0;I=I+Math.imul(A,za)|0;a=a+Math.imul(A,Y)|0;a=a+Math.imul(P,za)|0;b=b+Math.imul(P,Y)|0;I=I+Math.imul(D,pa)|0;a=a+Math.imul(D,la)|0;a=a+Math.imul(H,pa)|0;b=b+Math.imul(H,la)|0;var Ia=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ia>>>26)|0;Ia&=67108863;I=Math.imul(ja,ya);a=Math.imul(ja,Aa);a=a+Math.imul(X,ya)|0;b=Math.imul(X,Aa);I=I+Math.imul(ha,ta)|0;a=a+Math.imul(ha,Da)|0;a=a+Math.imul(Z,ta)|0;b=b+Math.imul(Z,Da)|0;I=I+Math.imul(U, Ba)|0;a=a+Math.imul(U,ra)|0;a=a+Math.imul(da,Ba)|0;b=b+Math.imul(da,ra)|0;I=I+Math.imul(G,za)|0;a=a+Math.imul(G,Y)|0;a=a+Math.imul(ca,za)|0;b=b+Math.imul(ca,Y)|0;I=I+Math.imul(A,pa)|0;a=a+Math.imul(A,la)|0;a=a+Math.imul(P,pa)|0;b=b+Math.imul(P,la)|0;I=I+Math.imul(D,ia)|0;a=a+Math.imul(D,W)|0;a=a+Math.imul(H,ia)|0;b=b+Math.imul(H,W)|0;var Ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ha>>>26)|0;Ha&=67108863;I=Math.imul(ba,ya);a=Math.imul(ba,Aa);a=a+Math.imul(sa,ya)|0;b=Math.imul(sa,Aa);I=I+Math.imul(ja, ta)|0;a=a+Math.imul(ja,Da)|0;a=a+Math.imul(X,ta)|0;b=b+Math.imul(X,Da)|0;I=I+Math.imul(ha,Ba)|0;a=a+Math.imul(ha,ra)|0;a=a+Math.imul(Z,Ba)|0;b=b+Math.imul(Z,ra)|0;I=I+Math.imul(U,za)|0;a=a+Math.imul(U,Y)|0;a=a+Math.imul(da,za)|0;b=b+Math.imul(da,Y)|0;I=I+Math.imul(G,pa)|0;a=a+Math.imul(G,la)|0;a=a+Math.imul(ca,pa)|0;b=b+Math.imul(ca,la)|0;I=I+Math.imul(A,ia)|0;a=a+Math.imul(A,W)|0;a=a+Math.imul(P,ia)|0;b=b+Math.imul(P,W)|0;I=I+Math.imul(D,qa)|0;a=a+Math.imul(D,N)|0;a=a+Math.imul(H,qa)|0;b=b+Math.imul(H, N)|0;var Ma=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Ma>>>26)|0;Ma&=67108863;I=Math.imul(oa,ya);a=Math.imul(oa,Aa);a=a+Math.imul(va,ya)|0;b=Math.imul(va,Aa);I=I+Math.imul(ba,ta)|0;a=a+Math.imul(ba,Da)|0;a=a+Math.imul(sa,ta)|0;b=b+Math.imul(sa,Da)|0;I=I+Math.imul(ja,Ba)|0;a=a+Math.imul(ja,ra)|0;a=a+Math.imul(X,Ba)|0;b=b+Math.imul(X,ra)|0;I=I+Math.imul(ha,za)|0;a=a+Math.imul(ha,Y)|0;a=a+Math.imul(Z,za)|0;b=b+Math.imul(Z,Y)|0;I=I+Math.imul(U,pa)|0;a=a+Math.imul(U,la)|0;a=a+Math.imul(da,pa)|0;b=b+Math.imul(da, la)|0;I=I+Math.imul(G,ia)|0;a=a+Math.imul(G,W)|0;a=a+Math.imul(ca,ia)|0;b=b+Math.imul(ca,W)|0;I=I+Math.imul(A,qa)|0;a=a+Math.imul(A,N)|0;a=a+Math.imul(P,qa)|0;b=b+Math.imul(P,N)|0;I=I+Math.imul(D,T)|0;a=a+Math.imul(D,ea)|0;a=a+Math.imul(H,T)|0;b=b+Math.imul(H,ea)|0;var La=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(La>>>26)|0;La&=67108863;I=Math.imul(ka,ya);a=Math.imul(ka,Aa);a=a+Math.imul(ua,ya)|0;b=Math.imul(ua,Aa);I=I+Math.imul(oa,ta)|0;a=a+Math.imul(oa,Da)|0;a=a+Math.imul(va,ta)|0;b=b+Math.imul(va, Da)|0;I=I+Math.imul(ba,Ba)|0;a=a+Math.imul(ba,ra)|0;a=a+Math.imul(sa,Ba)|0;b=b+Math.imul(sa,ra)|0;I=I+Math.imul(ja,za)|0;a=a+Math.imul(ja,Y)|0;a=a+Math.imul(X,za)|0;b=b+Math.imul(X,Y)|0;I=I+Math.imul(ha,pa)|0;a=a+Math.imul(ha,la)|0;a=a+Math.imul(Z,pa)|0;b=b+Math.imul(Z,la)|0;I=I+Math.imul(U,ia)|0;a=a+Math.imul(U,W)|0;a=a+Math.imul(da,ia)|0;b=b+Math.imul(da,W)|0;I=I+Math.imul(G,qa)|0;a=a+Math.imul(G,N)|0;a=a+Math.imul(ca,qa)|0;b=b+Math.imul(ca,N)|0;I=I+Math.imul(A,T)|0;a=a+Math.imul(A,ea)|0;a=a+Math.imul(P, T)|0;b=b+Math.imul(P,ea)|0;I=I+Math.imul(D,aa)|0;a=a+Math.imul(D,fa)|0;a=a+Math.imul(H,aa)|0;b=b+Math.imul(H,fa)|0;var Na=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(Na>>>26)|0;Na&=67108863;I=Math.imul(f,ya);a=Math.imul(f,Aa);a=a+Math.imul(wa,ya)|0;b=Math.imul(wa,Aa);I=I+Math.imul(ka,ta)|0;a=a+Math.imul(ka,Da)|0;a=a+Math.imul(ua,ta)|0;b=b+Math.imul(ua,Da)|0;I=I+Math.imul(oa,Ba)|0;a=a+Math.imul(oa,ra)|0;a=a+Math.imul(va,Ba)|0;b=b+Math.imul(va,ra)|0;I=I+Math.imul(ba,za)|0;a=a+Math.imul(ba,Y)|0;a=a+Math.imul(sa, za)|0;b=b+Math.imul(sa,Y)|0;I=I+Math.imul(ja,pa)|0;a=a+Math.imul(ja,la)|0;a=a+Math.imul(X,pa)|0;b=b+Math.imul(X,la)|0;I=I+Math.imul(ha,ia)|0;a=a+Math.imul(ha,W)|0;a=a+Math.imul(Z,ia)|0;b=b+Math.imul(Z,W)|0;I=I+Math.imul(U,qa)|0;a=a+Math.imul(U,N)|0;a=a+Math.imul(da,qa)|0;b=b+Math.imul(da,N)|0;I=I+Math.imul(G,T)|0;a=a+Math.imul(G,ea)|0;a=a+Math.imul(ca,T)|0;b=b+Math.imul(ca,ea)|0;I=I+Math.imul(A,aa)|0;a=a+Math.imul(A,fa)|0;a=a+Math.imul(P,aa)|0;b=b+Math.imul(P,fa)|0;I=I+Math.imul(D,u)|0;a=a+Math.imul(D, na)|0;a=a+Math.imul(H,u)|0;b=b+Math.imul(H,na)|0;D=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(D>>>26)|0;D&=67108863;I=Math.imul(f,ta);a=Math.imul(f,Da);a=a+Math.imul(wa,ta)|0;b=Math.imul(wa,Da);I=I+Math.imul(ka,Ba)|0;a=a+Math.imul(ka,ra)|0;a=a+Math.imul(ua,Ba)|0;b=b+Math.imul(ua,ra)|0;I=I+Math.imul(oa,za)|0;a=a+Math.imul(oa,Y)|0;a=a+Math.imul(va,za)|0;b=b+Math.imul(va,Y)|0;I=I+Math.imul(ba,pa)|0;a=a+Math.imul(ba,la)|0;a=a+Math.imul(sa,pa)|0;b=b+Math.imul(sa,la)|0;I=I+Math.imul(ja,ia)|0;a=a+Math.imul(ja, W)|0;a=a+Math.imul(X,ia)|0;b=b+Math.imul(X,W)|0;I=I+Math.imul(ha,qa)|0;a=a+Math.imul(ha,N)|0;a=a+Math.imul(Z,qa)|0;b=b+Math.imul(Z,N)|0;I=I+Math.imul(U,T)|0;a=a+Math.imul(U,ea)|0;a=a+Math.imul(da,T)|0;b=b+Math.imul(da,ea)|0;I=I+Math.imul(G,aa)|0;a=a+Math.imul(G,fa)|0;a=a+Math.imul(ca,aa)|0;b=b+Math.imul(ca,fa)|0;I=I+Math.imul(A,u)|0;a=a+Math.imul(A,na)|0;a=a+Math.imul(P,u)|0;b=b+Math.imul(P,na)|0;A=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(A>>>26)|0;A&=67108863;I=Math.imul(f,Ba);a=Math.imul(f,ra); a=a+Math.imul(wa,Ba)|0;b=Math.imul(wa,ra);I=I+Math.imul(ka,za)|0;a=a+Math.imul(ka,Y)|0;a=a+Math.imul(ua,za)|0;b=b+Math.imul(ua,Y)|0;I=I+Math.imul(oa,pa)|0;a=a+Math.imul(oa,la)|0;a=a+Math.imul(va,pa)|0;b=b+Math.imul(va,la)|0;I=I+Math.imul(ba,ia)|0;a=a+Math.imul(ba,W)|0;a=a+Math.imul(sa,ia)|0;b=b+Math.imul(sa,W)|0;I=I+Math.imul(ja,qa)|0;a=a+Math.imul(ja,N)|0;a=a+Math.imul(X,qa)|0;b=b+Math.imul(X,N)|0;I=I+Math.imul(ha,T)|0;a=a+Math.imul(ha,ea)|0;a=a+Math.imul(Z,T)|0;b=b+Math.imul(Z,ea)|0;I=I+Math.imul(U, aa)|0;a=a+Math.imul(U,fa)|0;a=a+Math.imul(da,aa)|0;b=b+Math.imul(da,fa)|0;I=I+Math.imul(G,u)|0;a=a+Math.imul(G,na)|0;a=a+Math.imul(ca,u)|0;b=b+Math.imul(ca,na)|0;G=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(G>>>26)|0;G&=67108863;I=Math.imul(f,za);a=Math.imul(f,Y);a=a+Math.imul(wa,za)|0;b=Math.imul(wa,Y);I=I+Math.imul(ka,pa)|0;a=a+Math.imul(ka,la)|0;a=a+Math.imul(ua,pa)|0;b=b+Math.imul(ua,la)|0;I=I+Math.imul(oa,ia)|0;a=a+Math.imul(oa,W)|0;a=a+Math.imul(va,ia)|0;b=b+Math.imul(va,W)|0;I=I+Math.imul(ba, qa)|0;a=a+Math.imul(ba,N)|0;a=a+Math.imul(sa,qa)|0;b=b+Math.imul(sa,N)|0;I=I+Math.imul(ja,T)|0;a=a+Math.imul(ja,ea)|0;a=a+Math.imul(X,T)|0;b=b+Math.imul(X,ea)|0;I=I+Math.imul(ha,aa)|0;a=a+Math.imul(ha,fa)|0;a=a+Math.imul(Z,aa)|0;b=b+Math.imul(Z,fa)|0;I=I+Math.imul(U,u)|0;a=a+Math.imul(U,na)|0;a=a+Math.imul(da,u)|0;b=b+Math.imul(da,na)|0;U=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(U>>>26)|0;U&=67108863;I=Math.imul(f,pa);a=Math.imul(f,la);a=a+Math.imul(wa,pa)|0;b=Math.imul(wa,la);I=I+Math.imul(ka, ia)|0;a=a+Math.imul(ka,W)|0;a=a+Math.imul(ua,ia)|0;b=b+Math.imul(ua,W)|0;I=I+Math.imul(oa,qa)|0;a=a+Math.imul(oa,N)|0;a=a+Math.imul(va,qa)|0;b=b+Math.imul(va,N)|0;I=I+Math.imul(ba,T)|0;a=a+Math.imul(ba,ea)|0;a=a+Math.imul(sa,T)|0;b=b+Math.imul(sa,ea)|0;I=I+Math.imul(ja,aa)|0;a=a+Math.imul(ja,fa)|0;a=a+Math.imul(X,aa)|0;b=b+Math.imul(X,fa)|0;I=I+Math.imul(ha,u)|0;a=a+Math.imul(ha,na)|0;a=a+Math.imul(Z,u)|0;b=b+Math.imul(Z,na)|0;ha=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ha>>>26)|0;ha&=67108863; I=Math.imul(f,ia);a=Math.imul(f,W);a=a+Math.imul(wa,ia)|0;b=Math.imul(wa,W);I=I+Math.imul(ka,qa)|0;a=a+Math.imul(ka,N)|0;a=a+Math.imul(ua,qa)|0;b=b+Math.imul(ua,N)|0;I=I+Math.imul(oa,T)|0;a=a+Math.imul(oa,ea)|0;a=a+Math.imul(va,T)|0;b=b+Math.imul(va,ea)|0;I=I+Math.imul(ba,aa)|0;a=a+Math.imul(ba,fa)|0;a=a+Math.imul(sa,aa)|0;b=b+Math.imul(sa,fa)|0;I=I+Math.imul(ja,u)|0;a=a+Math.imul(ja,na)|0;a=a+Math.imul(X,u)|0;b=b+Math.imul(X,na)|0;ja=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ja>>>26)|0;ja&=67108863; I=Math.imul(f,qa);a=Math.imul(f,N);a=a+Math.imul(wa,qa)|0;b=Math.imul(wa,N);I=I+Math.imul(ka,T)|0;a=a+Math.imul(ka,ea)|0;a=a+Math.imul(ua,T)|0;b=b+Math.imul(ua,ea)|0;I=I+Math.imul(oa,aa)|0;a=a+Math.imul(oa,fa)|0;a=a+Math.imul(va,aa)|0;b=b+Math.imul(va,fa)|0;I=I+Math.imul(ba,u)|0;a=a+Math.imul(ba,na)|0;a=a+Math.imul(sa,u)|0;b=b+Math.imul(sa,na)|0;ba=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ba>>>26)|0;ba&=67108863;I=Math.imul(f,T);a=Math.imul(f,ea);a=a+Math.imul(wa,T)|0;b=Math.imul(wa,ea);I=I+Math.imul(ka, aa)|0;a=a+Math.imul(ka,fa)|0;a=a+Math.imul(ua,aa)|0;b=b+Math.imul(ua,fa)|0;I=I+Math.imul(oa,u)|0;a=a+Math.imul(oa,na)|0;a=a+Math.imul(va,u)|0;b=b+Math.imul(va,na)|0;oa=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(oa>>>26)|0;oa&=67108863;I=Math.imul(f,aa);a=Math.imul(f,fa);a=a+Math.imul(wa,aa)|0;b=Math.imul(wa,fa);I=I+Math.imul(ka,u)|0;a=a+Math.imul(ka,na)|0;a=a+Math.imul(ua,u)|0;b=b+Math.imul(ua,na)|0;ka=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(ka>>>26)|0;ka&=67108863;I=Math.imul(f,u);a=Math.imul(f, na);a=a+Math.imul(wa,u)|0;b=Math.imul(wa,na);H=(w+I|0)+((a&8191)<<13)|0;w=(b+(a>>>13)|0)+(H>>>26)|0;y[0]=xa;y[1]=ma;y[2]=Fa;y[3]=Ga;y[4]=Ia;y[5]=Ha;y[6]=Ma;y[7]=La;y[8]=Na;y[9]=D;y[10]=A;y[11]=G;y[12]=U;y[13]=ha;y[14]=ja;y[15]=ba;y[16]=oa;y[17]=ka;y[18]=H&67108863;0!==w&&(y[19]=w,c.length++);return c};Math.imul||(V=h);d.prototype.mulTo=function(a,b){var c=this.length+a.length;if(10===this.length&&10===a.length)a=V(this,a,b);else if(63>c)a=h(this,a,b);else if(1024>c){b.negative=a.negative^this.negative; b.length=this.length+a.length;for(var f=0,u=c=0;u>>26)|0;c+=y>>>26;y&=67108863}b.words[u]=f;f=y}0!==f?b.words[u]=f:b.length--;a=b.strip()}else a=(new m).mulp(this,a,b);return a};m.prototype.makeRBT=function(a){for(var b=Array(a),c=d.prototype._countBits(a)-1,f=0;f>=1;return c};m.prototype.permute=function(a,b,c,f,u,y){for(var w=0;w>>=1)c++;return 1<=c))for(var f=0;fc?0:c/67108864|0;return a}; m.prototype.convert13b=function(a,b,c,f){for(var u=0,y=0;y>>=13,c[2*y+1]=u&8191,u>>>=13;for(y=2*b;ya);for(var b=0,c=0;c>=26;b+=f/67108864|0;b+=u>>>26;this.words[c]=u&67108863}0!==b&&(this.words[c]=b,this.length++);return this};d.prototype.muln=function(a){return this.clone().imuln(a)};d.prototype.sqr=function(){return this.mul(this)};d.prototype.isqr=function(){return this.imul(this.clone())}; d.prototype.pow=function(a){for(var b=Array(a.bitLength()),c=0;c>>f}if(0===b.length)return new d(1);a=this;for(c=0;c>>26-b<<26-b,f;if(0!==b){var u=0;for(f=0;f>>26-b}u&&(this.words[f]=u,this.length++)}if(0!==a){for(f=this.length-1;0<=f;f--)this.words[f+a]=this.words[f];for(f=0;f>>f<u)for(this.length-=u,y=0;y=b);y--){var w=this.words[y]|0;this.words[y]=u<<26-f|w>>>f;u=w&a}c&&0!==u&&(c.words[c.length++]=u);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};d.prototype.ishrn=function(a,b,c){e(0===this.negative);return this.iushrn(a,b,c)};d.prototype.shln=function(a){return this.clone().ishln(a)};d.prototype.ushln=function(a){return this.clone().iushln(a)}; d.prototype.shrn=function(a){return this.clone().ishrn(a)};d.prototype.ushrn=function(a){return this.clone().iushrn(a)};d.prototype.testn=function(a){e("number"===typeof a&&0<=a);var b=a%26;a=(a-b)/26;return this.length<=a?!1:!!(this.words[a]&1<>>b<a);if(0>a)return this.isubn(-a);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)a);if(0>a)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;this.words[0]-=a;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(a=0;athis.words[a];a++)this.words[a]+=67108864,--this.words[a+1];return this.strip()};d.prototype.addn= function(a){return this.clone().iaddn(a)};d.prototype.subn=function(a){return this.clone().isubn(a)};d.prototype.iabs=function(){this.negative=0;return this};d.prototype.abs=function(){return this.clone().iabs()};d.prototype._ishlnsubmul=function(a,b,c){var f;this._expand(a.length+c);var u=0;for(f=0;f>26)-(u/67108864|0);this.words[f+c]=y&67108863}for(;f>26,this.words[f+c]= y&67108863;if(0===u)return this.strip();e(-1===u);for(f=u=0;f>26,this.words[f]=y&67108863;this.negative=1;return this.strip()};d.prototype._wordDiv=function(a,b){var c=this.clone(),f=a,u=f.words[f.length-1]|0;a=26-this._countBits(u);0!==a&&(f=f.ushln(a),c.iushln(a),u=f.words[f.length-1]|0);var y=c.length-f.length;if("mod"!==b){var w=new d(null);w.length=y+1;w.words=Array(w.length);for(var A=0;Athis.length||0>this.cmp(a)?{div:new d(0),mod:this}:1===a.length?"div"===b?{div:this.divn(a.words[0]),mod:null}:"mod"===b?{div:null, mod:new d(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new d(this.modn(a.words[0]))}:this._wordDiv(a,b)};d.prototype.div=function(a){return this.divmod(a,"div",!1).div};d.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod};d.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod};d.prototype.divRound=function(a){var b=this.divmod(a);if(b.mod.isZero())return b.div;var c=0!==b.div.negative?b.mod.isub(a):b.mod,f=a.ushrn(1);a=a.andln(1);c=c.cmp(f);return 0>c||1===a&&0===c?b.div: 0!==b.div.negative?b.div.isubn(1):b.div.iaddn(1)};d.prototype.modn=function(a){e(67108863>=a);for(var b=67108864%a,c=0,f=this.length-1;0<=f;f--)c=(b*c+(this.words[f]|0))%a;return c};d.prototype.idivn=function(a){e(67108863>=a);for(var b=0,c=this.length-1;0<=c;c--)b=(this.words[c]|0)+67108864*b,this.words[c]=b/a|0,b%=a;return this.strip()};d.prototype.divn=function(a){return this.clone().idivn(a)};d.prototype.egcd=function(a){e(0===a.negative);e(!a.isZero());var b=this,c=a.clone();b=0!==b.negative? b.umod(a):b.clone();a=new d(1);for(var f=new d(0),u=new d(0),y=new d(1),w=0;b.isEven()&&c.isEven();)b.iushrn(1),c.iushrn(1),++w;for(var A=c.clone(),D=b.clone();!b.isZero();){for(var H=0,G=1;0===(b.words[0]&G)&&26>H;++H,G<<=1);if(0H;++H,G<<=1);if(0w;++w,A<<=1);if(0w;++w,A<<=1);if(0b.cmpn(0)&&b.iadd(a);return b};d.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var b=this.clone();a=a.clone();b.negative=0;for(var c=a.negative=0;b.isEven()&&a.isEven();c++)b.iushrn(1),a.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;a.isEven();)a.iushrn(1);var f=b.cmp(a);if(0>f)f=b,b=a,a=f;else if(0===f||0===a.cmpn(1))break;b.isub(a)}while(1);return a.iushln(c)};d.prototype.invm=function(a){return this.egcd(a).a.umod(a)}; d.prototype.isEven=function(){return 0===(this.words[0]&1)};d.prototype.isOdd=function(){return 1===(this.words[0]&1)};d.prototype.andln=function(a){return this.words[0]&a};d.prototype.bincn=function(a){e("number"===typeof a);var b=a%26;a=(a-b)/26;b=1<>>26;c&=67108863;this.words[a]=c}0!==b&&(this.words[a]=b,this.length++);return this};d.prototype.isZero=function(){return 1=== this.length&&0===this.words[0]};d.prototype.cmpn=function(a){var b=0>a;if(0!==this.negative&&!b)return-1;if(0===this.negative&&b)return 1;this.strip();1=a,"Number is too big"),b=this.words[0]|0,a=b===a?0:ba.length)return 1; if(this.lengthu&&(b=1);break}}return b};d.prototype.gtn=function(a){return 1===this.cmpn(a)};d.prototype.gt=function(a){return 1===this.cmp(a)};d.prototype.gten=function(a){return 0<=this.cmpn(a)};d.prototype.gte=function(a){return 0<=this.cmp(a)};d.prototype.ltn=function(a){return-1===this.cmpn(a)};d.prototype.lt=function(a){return-1===this.cmp(a)};d.prototype.lten=function(a){return 0>= this.cmpn(a)};d.prototype.lte=function(a){return 0>=this.cmp(a)};d.prototype.eqn=function(a){return 0===this.cmpn(a)};d.prototype.eq=function(a){return 0===this.cmp(a)};d.red=function(a){return new z(a)};d.prototype.toRed=function(a){e(!this.red,"Already a number in reduction context");e(0===this.negative,"red works only with positives");return a.convertTo(this)._forceRed(a)};d.prototype.fromRed=function(){e(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)}; d.prototype._forceRed=function(a){this.red=a;return this};d.prototype.forceRed=function(a){e(!this.red,"Already a number in reduction context");return this._forceRed(a)};d.prototype.redAdd=function(a){e(this.red,"redAdd works only with red numbers");return this.red.add(this,a)};d.prototype.redIAdd=function(a){e(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,a)};d.prototype.redSub=function(a){e(this.red,"redSub works only with red numbers");return this.red.sub(this,a)};d.prototype.redISub= function(a){e(this.red,"redISub works only with red numbers");return this.red.isub(this,a)};d.prototype.redShl=function(a){e(this.red,"redShl works only with red numbers");return this.red.shl(this,a)};d.prototype.redMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.mul(this,a)};d.prototype.redIMul=function(a){e(this.red,"redMul works only with red numbers");this.red._verify2(this,a);return this.red.imul(this,a)};d.prototype.redSqr=function(){e(this.red, "redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};d.prototype.redISqr=function(){e(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};d.prototype.redSqrt=function(){e(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};d.prototype.redInvm=function(){e(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};d.prototype.redNeg= function(){e(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};d.prototype.redPow=function(a){e(this.red&&!a.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,a)};var Q={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var a=new d(null);a.words=Array(Math.ceil(this.n/13));return a};p.prototype.ireduce=function(a){do{this.split(a,this.tmp);a=this.imulK(a);a=a.iadd(this.tmp);var b=a.bitLength()}while(b>this.n); b=b=a.length)a.words[0]=0,a.length=1;else{c=a.words[9];b.words[b.length++]=c&4194303;for(f=10;f>>22,c=b;c>>>=22;a.words[f-10]=c;a.length=0===c&&10>>=26;a.words[c]= f}0!==b&&(a.words[a.length++]=b);return a};d._prime=function(a){if(Q[a])return Q[a];if("k256"===a)var b=new v;else if("p224"===a)b=new r;else if("p192"===a)b=new B;else if("p25519"===a)b=new C;else throw Error("Unknown prime "+a);return Q[a]=b};z.prototype._verify1=function(a){e(0===a.negative,"red works only with positives");e(a.red,"red works only with red numbers")};z.prototype._verify2=function(a,b){e(0===(a.negative|b.negative),"red works only with positives");e(a.red&&a.red===b.red,"red works only with red numbers")}; z.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)};z.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)};z.prototype.add=function(a,b){this._verify2(a,b);a=a.add(b);0<=a.cmp(this.m)&&a.isub(this.m);return a._forceRed(this)};z.prototype.iadd=function(a,b){this._verify2(a,b);a=a.iadd(b);0<=a.cmp(this.m)&&a.isub(this.m);return a};z.prototype.sub=function(a,b){this._verify2(a,b);a=a.sub(b);0>a.cmpn(0)&& a.iadd(this.m);return a._forceRed(this)};z.prototype.isub=function(a,b){this._verify2(a,b);a=a.isub(b);0>a.cmpn(0)&&a.iadd(this.m);return a};z.prototype.shl=function(a,b){this._verify1(a);return this.imod(a.ushln(b))};z.prototype.imul=function(a,b){this._verify2(a,b);return this.imod(a.imul(b))};z.prototype.mul=function(a,b){this._verify2(a,b);return this.imod(a.mul(b))};z.prototype.isqr=function(a){return this.imul(a,a.clone())};z.prototype.sqr=function(a){return this.mul(a,a)};z.prototype.sqrt= function(a){if(a.isZero())return a.clone();var b=this.m.andln(3);e(1===b%2);if(3===b)return b=this.m.add(new d(1)).iushrn(2),this.pow(a,b);for(var c=this.m.subn(1),f=0;!c.isZero()&&0===c.andln(1);)f++,c.iushrn(1);e(!c.isZero());b=(new d(1)).toRed(this);var u=b.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=(new d(2*w*w)).toRed(this);0!==this.pow(w,y).cmp(u);)w.redIAdd(u);y=this.pow(w,c);u=this.pow(a,c.addn(1).iushrn(1));a=this.pow(a,c);for(c=f;0!==a.cmp(b);){w=a;for(f=0;0!==w.cmp(b);f++)w= w.redSqr();e(f>w&1;a!==c[0]&&(a=this.sqr(a));if(0===D&&0===u)y=0;else if(u<<=1,u|=D,y++,4===y||0===f&&0===w)a=this.mul(a,c[u]),u=y=0}w=26}return a};z.prototype.convertTo=function(a){var b=a.umod(this.m);return b===a?b.clone():b};z.prototype.convertFrom=function(a){a=a.clone();a.red=null;return a};d.mont=function(a){return new F(a)};t(F,z);F.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))};F.prototype.convertFrom=function(a){a=this.imod(a.mul(this.rinv)); a.red=null;return a};F.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;a=a.imul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift);0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return(new d(0))._forceRed(this);a=a.mul(b);b=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);b=a=a.isub(b).iushrn(this.shift); 0<=a.cmp(this.m)?b=a.isub(this.m):0>a.cmpn(0)&&(b=a.iadd(this.m));return b._forceRed(this)};F.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof S||S,this)}; shadow$provide[186]=function(O,E,S,J){var g=E(185),x=E(38).Buffer;S.exports=function(e,t){return x.from(e.toRed(g.mont(t.modulus)).redPow(new g(t.publicExponent)).fromRed().toArray())}}; shadow$provide[187]=function(O,E,S,J){var g=E(176),x=E(39),e=E(72),t=E(183),d=E(184),n=E(185),l=E(186),k=E(123),h=E(38).Buffer;S.exports=function(m,p,v){var r=m.padding?m.padding:v?1:4;m=g(m);if(4===r){r=m.modulus.byteLength();var B=p.length,C=e("sha1").update(h.alloc(0)).digest(),z=C.length,F=2*z;if(B>r-F-2)throw Error("message too long");F=h.alloc(r-B-F-2);var K=r-z-1;B=x(z);p=d(h.concat([C,F,h.alloc(1,1),p],K),t(B,K));z=d(B,t(p,z));p=new n(h.concat([h.alloc(1),z,p],r))}else if(1===r){z=p.length; r=m.modulus.byteLength();if(z>r-11)throw Error("message too long");if(v)z=h.alloc(r-z-3,255);else{z=r-z-3;C=h.allocUnsafe(z);B=0;F=x(2*z);K=0;for(var M;Br||0<=(new t(m)).cmp(h.modulus))throw Error("decryption error");m=p?l(new t(m),h):d(m,h);var B=k.alloc(r-m.length);m=k.concat([B,m],r);if(4===v){r=m;v=h.modulus.byteLength();h=n("sha1").update(k.alloc(0)).digest();p=h.length;if(0!==r[0])throw Error("decryption error");m=r.slice(1, p+1);r=r.slice(p+1);m=e(m,x(r,p));v=e(r,x(m,v-p-1));r=v.slice(0,p);h=k.from(h);r=k.from(r);m=0;B=h.length;h.length!==r.length&&(m++,B=Math.min(h.length,r.length));for(var C=-1;++C=v.length){m++;break}B=v.slice(2,r-1);("0002"!==h.toString("hex")&&!p||"0001"!==h.toString("hex")&&p)&&m++;8>B.length&&m++;if(m)throw Error("decryption error"); return v.slice(r)}if(3===v)return m;throw Error("unknown padding");}}; shadow$provide[189]=function(O,E,S,J){J.publicEncrypt=E(187);J.privateDecrypt=E(188);J.privateEncrypt=function(g,x){return J.publicEncrypt(g,x,!0)};J.publicDecrypt=function(g,x){return J.privateDecrypt(g,x,!0)}}; shadow$provide[190]=function(O,E,S,J){function g(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11");}function x(r,B){if("number"!==typeof r||r!==r)throw new TypeError("offset must be a number");if(r>v||0>r)throw new TypeError("offset must be a uint32");if(r>m||r>B)throw new RangeError("offset out of range");}function e(r,B,C){if("number"!==typeof r||r!==r)throw new TypeError("size must be a number");if(r>v||0>r)throw new TypeError("size must be a uint32"); if(r+B>C||r>m)throw new RangeError("buffer too small");}function t(r,B,C,z){if(!(h.isBuffer(r)||r instanceof O.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof B)z=B,B=0,C=r.length;else if("function"===typeof C)z=C,C=r.length-B;else if("function"!==typeof z)throw new TypeError('"cb" argument must be a function');x(B,r.length);e(C,B,r.length);return d(r,B,C,z)}function d(r,B,C,z){if(l.browser){C=new Uint8Array(r.buffer,B,C);p.getRandomValues(C); if(z){l.nextTick(function(){z(null,r)});return}return r}if(z)k(C,function(F,K){if(F)return z(F);K.copy(r,B);z(null,r)});else return k(C).copy(r,B),r}function n(r,B,C){"undefined"===typeof B&&(B=0);if(!(h.isBuffer(r)||r instanceof O.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');x(B,r.length);void 0===C&&(C=r.length-B);e(C,B,r.length);return d(r,B,C)}var l=E(28);"use strict";S=E(38);var k=E(39),h=S.Buffer,m=S.kMaxLength,p=O.crypto||O.msCrypto,v=Math.pow(2,32)-1;p&& p.getRandomValues||!l.browser?(J.randomFill=t,J.randomFillSync=n):(J.randomFill=g,J.randomFillSync=g)}; shadow$provide[191]=function(O,E,S,J){J.randomBytes=J.rng=J.pseudoRandomBytes=J.prng=E(39);J.createHash=J.Hash=E(72);J.createHmac=J.Hmac=E(75);O=E(77);O=Object.keys(O);var g="sha1 sha224 sha256 sha384 sha512 md5 rmd160".split(" ").concat(O);J.getHashes=function(){return g};O=E(83);J.pbkdf2=O.pbkdf2;J.pbkdf2Sync=O.pbkdf2Sync;O=E(112);J.Cipher=O.Cipher;J.createCipher=O.createCipher;J.Cipheriv=O.Cipheriv;J.createCipheriv=O.createCipheriv;J.Decipher=O.Decipher;J.createDecipher=O.createDecipher;J.Decipheriv= O.Decipheriv;J.createDecipheriv=O.createDecipheriv;J.getCiphers=O.getCiphers;J.listCiphers=O.listCiphers;O=E(120);J.DiffieHellmanGroup=O.DiffieHellmanGroup;J.createDiffieHellmanGroup=O.createDiffieHellmanGroup;J.getDiffieHellman=O.getDiffieHellman;J.createDiffieHellman=O.createDiffieHellman;J.DiffieHellman=O.DiffieHellman;O=E(180);J.createSign=O.createSign;J.Sign=O.Sign;J.createVerify=O.createVerify;J.Verify=O.Verify;J.createECDH=E(182);O=E(189);J.publicEncrypt=O.publicEncrypt;J.privateEncrypt=O.privateEncrypt; J.publicDecrypt=O.publicDecrypt;J.privateDecrypt=O.privateDecrypt;E=E(190);J.randomFill=E.randomFill;J.randomFillSync=E.randomFillSync;J.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify");};J.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2, RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}; shadow$provide[192]=function(O,E,S,J){function g(n){for(var l="",k=-1,h,m;++k=h&&56320<=m&&57343>=m&&(h=65536+((h&1023)<<10)+(m&1023),k++),127>=h?l+=String.fromCharCode(h):2047>=h?l+=String.fromCharCode(192|h>>>6&31,128|h&63):65535>=h?l+=String.fromCharCode(224|h>>>12&15,128|h>>>6&63,128|h&63):2097151>=h&&(l+=String.fromCharCode(240|h>>>18&7,128|h>>>12&63,128|h>>>6&63,128|h&63));return l}function x(n){for(var l=Array(n.length>> 2),k=0;k>5]|=(n.charCodeAt(k/8)&255)<<24-k%32;return l}function e(n,l){n[l>>5]|=128<<24-l%32;n[(l+64>>9<<4)+15]=l;l=Array(80);for(var k=1732584193,h=-271733879,m=-1732584194,p=271733878,v=-1009589776,r=0;rM;M++){if(16>M)l[M]=n[r+M];else{var R=l[M-3]^l[M-8]^l[M-14]^l[M-16];l[M]=R<<1|R>>>31}R=k<<5|k>>>27;var L=20>M?h&m|~h&p:40>M?h^m^p:60>M?h&m|h&p|m&p:h^m^p;R=t(t(R,L),t(t(v,l[M]),20>M?1518500249:40> M?1859775393:60>M?-1894007588:-899497514));v=p;p=m;m=h<<30|h>>>2;h=k;k=R}k=t(k,B);h=t(h,C);m=t(m,z);p=t(p,F);v=t(v,K)}return[k,h,m,p,v]}function t(n,l){var k=(n&65535)+(l&65535);return(n>>16)+(l>>16)+(k>>16)<<16|k&65535}var d="\x3d";J.HMACSHA1=function(n,l){var k=g(n);l=g(l);n=x(k);16m;m++)h[m]=n[m]^909522486,k[m]=n[m]^1549556828;l=e(h.concat(x(l)),512+8*l.length);l=e(k.concat(l),672);n="";for(k=0;k<32*l.length;k+=8)n+=String.fromCharCode(l[k>> 5]>>>24-k%32&255);l=n;try{d}catch(v){d=""}n="";k=l.length;for(h=0;hp;p++)n=8*h+6*p>8*l.length?n+d:n+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(m>>>6*(3-p)&63)}return n}}; shadow$provide[193]=function(O,E,S,J){function g(){if(void 0!==t)return t;if(O.XMLHttpRequest){t=new O.XMLHttpRequest;try{t.open("GET",O.XDomainRequest?"/":"https://example.com")}catch(d){t=null}}else t=null;return t}function x(d){var n=g();if(!n)return!1;try{return n.responseType=d,n.responseType===d}catch(l){}return!1}function e(d){return"function"===typeof d}J.fetch=e(O.fetch)&&e(O.ReadableStream);J.writableStream=e(O.WritableStream);J.abortController=e(O.AbortController);J.blobConstructor=!1; try{new Blob([new ArrayBuffer(1)]),J.blobConstructor=!0}catch(d){}S=(E="undefined"!==typeof O.ArrayBuffer)&&e(O.ArrayBuffer.prototype.slice);J.arraybuffer=J.fetch||E&&x("arraybuffer");J.msstream=!J.fetch&&S&&x("ms-stream");J.mozchunkedarraybuffer=!J.fetch&&E&&x("moz-chunked-arraybuffer");J.overrideMimeType=J.fetch||(g()?e(g().overrideMimeType):!1);J.vbArray=e(O.VBArray);var t=null}; shadow$provide[194]=function(O,E,S,J){var g=E(28),x=E(37).Buffer,e=E(193);S=E(40);var t=E(54),d=J.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4};E=J.IncomingMessage=function(n,l,k,h){var m=this;t.Readable.call(m);m._mode=k;m.headers={};m.rawHeaders=[];m.trailers={};m.rawTrailers=[];m.on("end",function(){g.nextTick(function(){m.emit("close")})});if("fetch"===k){m._fetchResponse=l;m.url=l.url;m.statusCode=l.status;m.statusMessage=l.statusText;l.headers.forEach(function(r,B){m.headers[B.toLowerCase()]= r;m.rawHeaders.push(B,r)});if(e.writableStream){n=new WritableStream({write:function(r){return new Promise(function(B,C){m._destroyed?C():m.push(new x(r))?B():m._resumeFetch=B})},close:function(){O.clearTimeout(h);m._destroyed||m.push(null)},abort:function(r){m._destroyed||m.emit("error",r)}});try{l.body.pipeTo(n).catch(function(r){O.clearTimeout(h);m._destroyed||m.emit("error",r)});return}catch(r){}}var p=l.body.getReader();function v(){p.read().then(function(r){m._destroyed||(r.done?(O.clearTimeout(h), m.push(null)):(m.push(new x(r.value)),v()))}).catch(function(r){O.clearTimeout(h);m._destroyed||m.emit("error",r)})}v()}else if(m._xhr=n,m._pos=0,m.url=n.responseURL,m.statusCode=n.status,m.statusMessage=n.statusText,n.getAllResponseHeaders().split(/\r?\n/).forEach(function(v){if(v=v.match(/^([^:]+):\s*(.*)/)){var r=v[1].toLowerCase();"set-cookie"===r?(void 0===m.headers[r]&&(m.headers[r]=[]),m.headers[r].push(v[2])):m.headers[r]=void 0!==m.headers[r]?m.headers[r]+(", "+v[2]):v[2];m.rawHeaders.push(v[1], v[2])}}),m._charset="x-user-defined",!e.overrideMimeType){if(l=m.rawHeaders["mime-type"])if(l=l.match(/;\s*charset=([^;])(;|$)/))m._charset=l[1].toLowerCase();m._charset||(m._charset="utf-8")}};S(E,t.Readable);E.prototype._read=function(){var n=this._resumeFetch;n&&(this._resumeFetch=null,n())};E.prototype._onXHRProgress=function(){var n=this,l=n._xhr,k=null;switch(n._mode){case "text:vbarray":if(l.readyState!==d.DONE)break;try{k=(new O.VBArray(l.responseBody)).toArray()}catch(v){}if(null!==k){n.push(new x(k)); break}case "text":try{k=l.responseText}catch(v){n._mode="text:vbarray";break}if(k.length>n._pos){l=k.substr(n._pos);if("x-user-defined"===n._charset){for(var h=new x(l.length),m=0;mn._pos&&(n.push(new x(new Uint8Array(p.result.slice(n._pos)))),n._pos=p.result.byteLength)};p.onload=function(){n.push(null)};p.readAsArrayBuffer(k)}}n._xhr.readyState===d.DONE&&"ms-stream"!==n._mode&&n.push(null)}}; shadow$provide[195]=function(O,E,S,J){var g=E(37).Buffer;S.exports=function(x){if(x instanceof Uint8Array){if(0===x.byteOffset&&x.byteLength===x.buffer.byteLength)return x.buffer;if("function"===typeof x.buffer.slice)return x.buffer.slice(x.byteOffset,x.byteOffset+x.byteLength)}if(g.isBuffer(x)){for(var e=new Uint8Array(x.length),t=x.length,d=0;d=b&&Q>>10&1023|55296),V=56320|V&1023);return Q+=K(V)}).join("")}function l(L,V,Q){var a=0;L=Q?F(L/700):L>>1;for(L+=F(L/V);455y&&(y=0);for(f=0;f=Q&&x("invalid-input");var A=L.charCodeAt(y++); A=10>A-48?A-22:26>A-65?A-65:26>A-97?A-97:36;(36<=A||A>F((2147483647-a)/w))&&x("overflow");a+=A*w;var D=u<=c?1:u>=c+26?26:u-c;if(AF(2147483647/A)&&x("overflow");w*=A}w=V.length+1;c=l(a-f,w,0==f);F(a/w)>2147483647-b&&x("overflow");b+=F(a/w);a%=w;V.splice(a++,0,b)}return n(V)}function h(L){var V,Q,a,b=[];L=d(L);var c=L.length;var f=128;var u=0;var y=72;for(a=0;aw&&b.push(K(w))}for((V=Q=b.length)&&b.push("-");V=f&& wF((2147483647-u)/D)&&x("overflow");u+=(A-f)*D;f=A;for(a=0;a=y+26?26:A-y;if(Hw)-0));H=F(G/H)}b.push(K(H+22+75*(26>H)-0));y=l(u,D,V==Q);u=0;++V}++u;++f}return b.join("")}var m="object"==typeof J&&J&&!J.nodeType&&J,p="object"==typeof S&&S&&!S.nodeType&&S,v="object"==typeof O&&O;if(v.global===v||v.window===v||v.self=== v)g=v;var r=/^xn--/,B=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,z={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input \x3e\x3d 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=Math.floor,K=String.fromCharCode,M;var R={version:"1.4.1",ucs2:{decode:d,encode:n},decode:k,encode:h,toASCII:function(L){return t(L,function(V){return B.test(V)?"xn--"+h(V):V})},toUnicode:function(L){return t(L,function(V){return r.test(V)?k(V.slice(4).toLowerCase()):V})}}; if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return R});else if(m&&p)if(S.exports==m)p.exports=R;else for(M in R)R.hasOwnProperty(M)&&(m[M]=R[M]);else g.punycode=R})(this)}; shadow$provide[200]=function(O,E,S,J){function g(ra,pa){if(Infinity===ra||-Infinity===ra||ra!==ra||ra&&-1E3ra||Z.call(/e/,pa))return pa;var Y=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof ra){var ia=0>ra?-sa(-ra):sa(ra);if(ia!==ra)return ra=String(ia),pa=ca.call(pa,ra.length+1),ha.call(ra,Y,"$\x26_")+"."+ha.call(ha.call(pa,/([0-9]{3})/g,"$\x26_"),/_$/,"")}return ha.call(pa,Y,"$\x26_")}function x(ra,pa,Y){pa="double"===(Y.quoteStyle||pa)?'"':"'";return pa+ra+pa}function e(ra){return"[object Array]"=== G.call(ra)&&(!ta||!("object"===typeof ra&&ta in ra))}function t(ra){return"[object Date]"===G.call(ra)&&(!ta||!("object"===typeof ra&&ta in ra))}function d(ra){return"[object RegExp]"===G.call(ra)&&(!ta||!("object"===typeof ra&&ta in ra))}function n(ra){return"[object Error]"===G.call(ra)&&(!ta||!("object"===typeof ra&&ta in ra))}function l(ra){return"[object String]"===G.call(ra)&&(!ta||!("object"===typeof ra&&ta in ra))}function k(ra){return"[object Number]"===G.call(ra)&&(!ta||!("object"===typeof ra&& ta in ra))}function h(ra){return"[object Boolean]"===G.call(ra)&&(!ta||!("object"===typeof ra&&ta in ra))}function m(ra){if(wa)return ra&&"object"===typeof ra&&ra instanceof Symbol;if("symbol"===typeof ra)return!0;if(!ra||"object"!==typeof ra||!ua)return!1;try{return ua.call(ra),!0}catch(pa){}return!1}function p(ra){return ra.name?ra.name:(ra=U.call(P.call(ra),/^function\s*([\w$]+)/))?ra[1]:null}function v(ra,pa){if(ra.indexOf)return ra.indexOf(pa);for(var Y=0,ia=ra.length;Ypa.maxStringLength){var Y=ra.length-pa.maxStringLength;Y="... "+Y+" more character"+(1ra?"0":"")+ da.call(ra.toString(16))}function M(ra){return"Object("+ra+")"}function R(ra,pa,Y,ia){Y=ia?Q(Y,ia):X.call(Y,", ");return ra+" ("+pa+") {"+Y+"}"}function L(ra){for(var pa=0;paT.maxStringLength&&Infinity!==T.maxStringLength:null!==T.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=za.call(T,"customInspect")?T.customInspect:!0;if("boolean"!==typeof N&&"symbol"!==N)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(za.call(T,"indent")&&null!==T.indent&&"\t"!==T.indent&&!(parseInt(T.indent,10)===T.indent&&0=ea&&0l;++l)n.push("%"+((16>l?"0":"")+l.toString(16)).toUpperCase());return n}(),d=function(n,l){l=l&&l.plainObjects?Object.create(null):{};for(var k=0;k=r||65<=r&& 90>=r||97<=r&&122>=r||m===g.RFC1738&&(40===r||41===r)?p[p.length]=h.charAt(v):128>r?p[p.length]=t[r]:2048>r?p[p.length]=t[192|r>>6]+t[128|r&63]:55296>r||57344<=r?p[p.length]=t[224|r>>12]+t[128|r>>6&63]+t[128|r&63]:(v+=1,r=65536+((r&1023)<<10|h.charCodeAt(v)&1023),p[p.length]=t[240|r>>18]+t[128|r>>12&63]+t[128|r>>6&63]+t[128|r&63])}n+=p.join("")}return n},isBuffer:function(n){return n&&"object"===typeof n?!!(n.constructor&&n.constructor.isBuffer&&n.constructor.isBuffer(n)):!1},isRegExp:function(n){return"[object RegExp]"=== Object.prototype.toString.call(n)},maybeMap:function(n,l){if(e(n)){for(var k=[],h=0;hL.length&&L.unshift("");F.pathname=L.join("/")}F.search=z.search;F.query=z.query;F.host=z.host||"";F.auth=z.auth;F.hostname=z.hostname||z.host;F.port=z.port;if(F.pathname||F.search)F.path=(F.pathname||"")+(F.search||"");F.slashes=F.slashes||z.slashes;F.href=F.format();return F}K=F.pathname&&"/"===F.pathname.charAt(0);var V=z.host||z.pathname&& "/"===z.pathname.charAt(0),Q=K=V||K||F.host&&z.pathname;M=F.pathname&&F.pathname.split("/")||[];L=z.pathname&&z.pathname.split("/")||[];if(R=F.protocol&&!B[F.protocol])F.hostname="",F.port=null,F.host&&(""===M[0]?M[0]=F.host:M.unshift(F.host)),F.host="",z.protocol&&(z.hostname=null,z.port=null,z.host&&(""===L[0]?L[0]=z.host:L.unshift(z.host)),z.host=null),K=K&&(""===L[0]||""===M[0]);if(V)F.host=z.host||""===z.host?z.host:F.host,F.hostname=z.hostname||""===z.hostname?z.hostname:F.hostname,F.search= z.search,F.query=z.query,M=L;else if(L.length)M||(M=[]),M.pop(),M=M.concat(L),F.search=z.search,F.query=z.query;else if(null!=z.search){R&&(F.host=M.shift(),R=(F.hostname=F.host)&&0e&&(d=e);for(e=0;e=c.statusCode?z(null,L,c):(301==c.statusCode||302==c.statusCode)&&R.followRedirects&&c.headers&&c.headers.location?V._performSecureRequest(h,m,p,c.headers.location, r,B,C,z):z({statusCode:c.statusCode,data:L},L,c))};K.on("response",function(c){c.setEncoding("utf8");c.on("data",function(f){L+=f});c.on("end",function(){b(c)});c.on("close",function(){Q&&b(c)})});K.on("error",function(c){a||(a=!0,z(c))});"POST"!=p&&"PUT"!=p||null==B||""==B||K.write(B);K.end()}else return"POST"!=p&&"PUT"!=p||null==B||""==B||K.write(B),K};J.OAuth.prototype.setClientOptions=function(h){var m,p={},v=Object.prototype.hasOwnProperty;for(m in this._defaultClientOptions)v.call(h,m)?p[m]= h[m]:p[m]=this._defaultClientOptions[m];this._clientOptions=p};J.OAuth.prototype.getOAuthAccessToken=function(h,m,p,v){var r={};"function"==typeof p?v=p:r.oauth_verifier=p;this._performSecureRequest(h,m,this._clientOptions.accessTokenHttpMethod,this._accessUrl,r,null,null,function(B,C,z){B?v(B):(B=l.parse(C),C=B.oauth_token,delete B.oauth_token,z=B.oauth_token_secret,delete B.oauth_token_secret,v(null,C,z,B))})};J.OAuth.prototype.getProtectedResource=function(h,m,p,v,r){this._performSecureRequest(p, v,m,h,null,"",null,r)};J.OAuth.prototype.delete=function(h,m,p,v){return this._performSecureRequest(m,p,"DELETE",h,null,"",null,v)};J.OAuth.prototype.get=function(h,m,p,v){return this._performSecureRequest(m,p,"GET",h,null,"",null,v)};J.OAuth.prototype._putOrPost=function(h,m,p,v,r,B,C){var z=null;"function"==typeof B&&(C=B,B=null);"string"==typeof r||g.isBuffer(r)||(B="application/x-www-form-urlencoded",z=r,r=null);return this._performSecureRequest(p,v,h,m,z,r,B,C)};J.OAuth.prototype.put=function(h, m,p,v,r,B){return this._putOrPost("PUT",h,m,p,v,r,B)};J.OAuth.prototype.post=function(h,m,p,v,r,B){return this._putOrPost("POST",h,m,p,v,r,B)};J.OAuth.prototype.getOAuthRequestToken=function(h,m){"function"==typeof h&&(m=h,h={});this._authorize_callback&&(h.oauth_callback=this._authorize_callback);this._performSecureRequest(null,null,this._clientOptions.requestTokenHttpMethod,this._requestUrl,h,null,null,function(p,v,r){p?m(p):(p=l.parse(v),v=p.oauth_token,r=p.oauth_token_secret,delete p.oauth_token, delete p.oauth_token_secret,m(null,v,r,p))})};J.OAuth.prototype.signUrl=function(h,m,p,v){void 0===v&&(v="GET");m=this._prepareParameters(m,p,v,h,{});h=n.parse(h,!1);p="";for(v=0;v=C.statusCode||301==C.statusCode||302==C.statusCode?m(null,z,C):m({statusCode:C.statusCode,data:z}))}var v=n.isAnEarlyCloseHost(k.host),r=!1,B="";this._agent&&(k.agent=this._agent);l=l.request(k);l.on("response",function(C){C.on("data",function(z){B+=z});C.on("close",function(z){v&&p(C,B)});C.addListener("end",function(){p(C,B)})});l.on("error", function(C){r=!0;m(C)});"POST"!=k.method&&"PUT"!=k.method||!h||l.write(h);l.end()};J.OAuth2.prototype.getAuthorizeUrl=function(l){l=l||{};l.client_id=this._clientId;return this._baseSite+this._authorizeUrl+"?"+x.stringify(l)};J.OAuth2.prototype.getOAuthAccessToken=function(l,k,h){k=k||{};k.client_id=this._clientId;k.client_secret=this._clientSecret;k["refresh_token"===k.grant_type?"refresh_token":"code"]=l;l=x.stringify(k);this._request("POST",this._getAccessTokenUrl(),{"Content-Type":"application/x-www-form-urlencoded"}, l,null,function(m,p,v){if(m)h(m);else{try{var r=JSON.parse(p)}catch(B){r=x.parse(p)}m=r.access_token;p=r.refresh_token;delete r.refresh_token;h(null,m,p,r)}})};J.OAuth2.prototype.getProtectedResource=function(l,k,h){this._request("GET",l,{},"",k,h)};J.OAuth2.prototype.get=function(l,k,h){if(this._useAuthorizationHeaderForGET){var m={Authorization:this.buildAuthHeader(k)};k=null}else m={};this._request("GET",l,m,"",k,h)}}; shadow$provide[216]=function(O,E,S,J){J.OAuth=E(214).OAuth;J.OAuthEcho=E(214).OAuthEcho;J.OAuth2=E(215).OAuth2}; shadow$provide[217]=function(O,E,S,J){var g=Object.prototype.hasOwnProperty,x=Object.prototype.toString,e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,d=function(h){return"function"===typeof Array.isArray?Array.isArray(h):"[object Array]"===x.call(h)},n=function(h){if(!h||"[object Object]"!==x.call(h))return!1;var m=g.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&g.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!p)return!1;for(var v in h);return"undefined"=== typeof v||g.call(h,v)},l=function(h,m){e&&"__proto__"===m.name?e(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},k=function(h,m){if("__proto__"===m){if(!g.call(h,m))return;if(t)return t(h,m).value}return h[m]};S.exports=function m(){var p,v,r=arguments[0],B=1,C=arguments.length,z=!1;"boolean"===typeof r&&(z=r,r=arguments[1]||{},B=2);if(null==r||"object"!==typeof r&&"function"!==typeof r)r={};for(;Be.length)return"DOMAIN_TOO_SHORT"; if(255l.length)return n;n.tld=l.pop();n.sld=l.pop();n.domain=[n.sld,n.tld].join(".");l.length&&(n.subdomain=l.pop());return e()}n.listed= !0;var k=d.suffix.split(".");l=l.slice(0,l.length-k.length);d.exception&&l.push(k.shift());n.tld=k.join(".");if(!l.length)return e();d.wildcard&&(k.unshift(l.pop()),n.tld=k.join("."));if(!l.length)return e();n.sld=l.pop();n.domain=[n.sld,n.tld].join(".");l.length&&(n.subdomain=l.join("."));return e()};J.get=function(e){return e?J.parse(e).domain||null:null};J.isValid=function(e){e=J.parse(e);return!(!e.domain||!e.listed)}}; shadow$provide[220]=function(O,E,S,J){var g=E(219);J.getPublicSuffix=function(x){return g.get(x)}}; shadow$provide[221]=function(O,E,S,J){function g(){}J.Store=g;g.prototype.synchronous=!1;g.prototype.findCookie=function(x,e,t,d){throw Error("findCookie is not implemented");};g.prototype.findCookies=function(x,e,t){throw Error("findCookies is not implemented");};g.prototype.putCookie=function(x,e){throw Error("putCookie is not implemented");};g.prototype.updateCookie=function(x,e,t){throw Error("updateCookie is not implemented");};g.prototype.removeCookie=function(x,e,t,d){throw Error("removeCookie is not implemented"); };g.prototype.removeCookies=function(x,e,t){throw Error("removeCookies is not implemented");};g.prototype.removeAllCookies=function(x){throw Error("removeAllCookies is not implemented");};g.prototype.getAllCookies=function(x){throw Error("getAllCookies is not implemented (therefore jar cannot be serialized)");}}; shadow$provide[222]=function(O,E,S,J){var g=E(220);J.permuteDomain=function(x){var e=g.getPublicSuffix(x);if(!e)return null;if(e==x)return[x];x=x.slice(0,-(e.length+1)).split(".").reverse();for(var t=[e];x.length;)e=x.shift()+"."+e,t.push(e);return t}}; shadow$provide[223]=function(O,E,S,J){J.pathMatch=function(g,x){return x===g||0===g.indexOf(x)&&("/"===x.substr(-1)||"/"===g.substr(x.length,1))?!0:!1}}; shadow$provide[224]=function(O,E,S,J){function g(){x.call(this);this.idx={}}var x=E(221).Store,e=E(222).permuteDomain,t=E(223).pathMatch,d=E(33);d.inherits(g,x);J.MemoryCookieStore=g;g.prototype.idx=null;g.prototype.synchronous=!0;g.prototype.inspect=function(){return"{ idx: "+d.inspect(this.idx,!1,2)+" }"};d.inspect.custom&&(g.prototype[d.inspect.custom]=g.prototype.inspect);g.prototype.findCookie=function(n,l,k,h){return this.idx[n]&&this.idx[n][l]?h(null,this.idx[n][l][k]||null):h(null,void 0)}; g.prototype.findCookies=function(n,l,k){var h=[];if(!n)return k(null,[]);var m=l?function(v){Object.keys(v).forEach(function(r){if(t(l,r)){r=v[r];for(var B in r)h.push(r[B])}})}:function(v){for(var r in v){var B=v[r],C;for(C in B)h.push(B[C])}};n=e(n)||[n];var p=this.idx;n.forEach(function(v){(v=p[v])&&m(v)});k(null,h)};g.prototype.putCookie=function(n,l){this.idx[n.domain]||(this.idx[n.domain]={});this.idx[n.domain][n.path]||(this.idx[n.domain][n.path]={});this.idx[n.domain][n.path][n.key]=n;l(null)}; g.prototype.updateCookie=function(n,l,k){this.putCookie(l,k)};g.prototype.removeCookie=function(n,l,k,h){this.idx[n]&&this.idx[n][l]&&this.idx[n][l][k]&&delete this.idx[n][l][k];h(null)};g.prototype.removeCookies=function(n,l,k){this.idx[n]&&(l?delete this.idx[n][l]:delete this.idx[n]);return k(null)};g.prototype.removeAllCookies=function(n){this.idx={};return n(null)};g.prototype.getAllCookies=function(n){var l=[],k=this.idx;Object.keys(k).forEach(function(h){Object.keys(k[h]).forEach(function(m){Object.keys(k[h][m]).forEach(function(p){null!== p&&l.push(k[h][m][p])})})});l.sort(function(h,m){return(h.creationIndex||0)-(m.creationIndex||0)});n(null,l)}}; shadow$provide[225]=function(O,E,S,J){S.exports="2.5.0"}; shadow$provide[226]=function(O,E,S,J){function g(r){throw new RangeError(l[r]);}function x(r,B){var C=r.split("@");let z="";1=F&&C>1;for(r+=k(r/B);455M&&(M=0);for(var R=0;R=C&&g("invalid-input");var L=r.charCodeAt(M++);L=48<=L&&58>L?26+(L-48):65<=L&&91>L?L-65:97<=L&&123>L?L-97:36;36<=L&&g("invalid-input");L>k((2147483647-z)/V)&&g("overflow");z+=L*V;const a=Q<=K?1:Q>=K+26?26:Q-K;if(Lk(2147483647/L)&&g("overflow");V*=L}L=B.length+1;K=m(z-R,L,0==R);k(z/L)>2147483647-F&&g("overflow");F+=k(z/L);z%=L;B.splice(z++,0,F)}return String.fromCodePoint(...B)},v=function(r){const B=[]; r=e(r);const C=r.length;let z=128,F=0,K=72;for(var M of r)128>M&&B.push(h(M));let R=M=B.length;for(M&&B.push("-");R=z&&bk((2147483647-F)/a)&&g("overflow");F+=(L-z)*a;z=L;for(const b of r)if(b=K+26?26:L-K;if(VQ)-0));V=k(c/f)}B.push(h(V+22+75*(26>V)-0));K=m(F,a,R===M);F=0;++R}++F;++z}return B.join("")}; S.exports={version:"2.3.1",ucs2:{decode:e,encode:r=>String.fromCodePoint(...r)},decode:p,encode:v,toASCII:function(r){return x(r,function(B){return d.test(B)?"xn--"+v(B):B})},toUnicode:function(r){return x(r,function(B){return t.test(B)?p(B.slice(4).toLowerCase()):B})}}}; shadow$provide[227]=function(O,E,S,J){function g(A,D,H,G){for(var P=0;P=U||58<=U)break;P++}return PH||!G&&P!=A.length?null:parseInt(A.substr(0,P),10)}function x(A){if(A&&(A=A.split(f))){for(var D=null,H=null,G=null,P=null,U=null,ca=null,ha=0;haba;ba++){var X=g(ja[ba],1,2,2==ba);if(null===X){ja=null;break a}Z[ba]= X}ja=Z}}if(ja){D=ja[0];H=ja[1];G=ja[2];continue}}if(null===P&&(ja=g(da,1,2,!0),null!==ja)){P=ja;continue}if(null===U&&(ja=da,ja=String(ja).substr(0,3).toLowerCase(),ja=u[ja],ja=0<=ja?ja:null,null!==ja)){U=ja;continue}null===ca&&(ja=g(da,2,4,!0),null!==ja&&(ca=ja,70<=ca&&99>=ca?ca+=1900:0<=ca&&69>=ca&&(ca+=2E3)))}}if(!(null===P||null===U||null===ca||null===G||1>P||31ca||23=H||A.length!==D.length+H||"."!== A.substr(H-1,1)?!1:!0}function n(A){if(!A||"/"!==A.substr(0,1))return"/";if("/"===A)return A;var D=A.lastIndexOf("/");return 0===D?"/":A.slice(0,D)}function l(A,D){D&&"object"===typeof D||(D={});A=A.trim();var H=A.indexOf(";");a:{var G=-1===H?A:A.substr(0,H);D=!!D.loose;for(var P=0;P=P){D=void 0;break a}0>=P?(D="",G=G.trim()):(D=G.substr(0,P).trim(),G=G.substr(P+ 1).trim());a.test(D)||a.test(G)?D=void 0:(P=new v,P.key=D,P.value=G,D=P)}if(D){if(-1===H)return D;A=A.slice(H+1).trim();if(0===A.length)return D;for(A=A.split(";");A.length;)if(H=A.shift().trim(),0!==H.length)switch(P=H.indexOf("\x3d"),-1===P?(G=H,P=null):(G=H.substr(0,P),P=H.substr(P+1)),G=G.trim().toLowerCase(),P&&(P=P.trim()),G){case "expires":P&&(H=x(P))&&(D.expires=H);break;case "max-age":P&&/^-?[0-9]+$/.test(P)&&(H=parseInt(P,10),D.setMaxAge(H));break;case "domain":P&&(H=P.trim().replace(/^\./, ""))&&(D.domain=H.toLowerCase());break;case "path":D.path=P&&"/"===P[0]?P:null;break;case "secure":D.secure=!0;break;case "httponly":D.httpOnly=!0;break;default:D.extensions=D.extensions||[],D.extensions.push(H)}return D}}function k(A){try{var D=JSON.parse(A)}catch(H){return H}return D}function h(A){if(!A||"string"===typeof A&&(A=k(A),A instanceof Error))return null;for(var D=new v,H=0;H=this.maxAge||null!=this.path&&!c.test(this.path))return!1;var A=this.cdomain();return A&&(A.match(/\.$/)||null==F.getPublicSuffix(A))?!1:!0};v.prototype.setExpires=function(A){this.expires=A instanceof Date?A:x(A)||"Infinity"};v.prototype.setMaxAge= function(A){this.maxAge=Infinity===A||-Infinity===A?A.toString():A};v.prototype.cookieString=function(){var A=this.value;null==A&&(A="");return""===this.key?A:this.key+"\x3d"+A};v.prototype.toString=function(){var A=this.cookieString();Infinity!=this.expires&&(A=this.expires instanceof Date?A+("; Expires\x3d"+e(this.expires)):A+("; Expires\x3d"+this.expires));null!=this.maxAge&&Infinity!=this.maxAge&&(A+="; Max-Age\x3d"+this.maxAge);this.domain&&!this.hostOnly&&(A+="; Domain\x3d"+this.domain);this.path&& (A+="; Path\x3d"+this.path);this.secure&&(A+="; Secure");this.httpOnly&&(A+="; HttpOnly");this.extensions&&this.extensions.forEach(function(D){A+="; "+D});return A};v.prototype.TTL=function(A){if(null!=this.maxAge)return 0>=this.maxAge?0:1E3*this.maxAge;var D=this.expires;return Infinity!=D?(D instanceof Date||(D=x(D)||Infinity),Infinity==D?Infinity:D.getTime()-(A||Date.now())):Infinity};v.prototype.expiryTime=function(A){if(null!=this.maxAge){var D=0>=this.maxAge?-Infinity:1E3*this.maxAge;return(A|| this.creation||new Date).getTime()+D}return Infinity==this.expires?Infinity:this.expires.getTime()};v.prototype.expiryDate=function(A){A=this.expiryTime(A);return Infinity==A?new Date(2147483647E3):-Infinity==A?new Date(0):new Date(A)};v.prototype.isPersistent=function(){return null!=this.maxAge||Infinity!=this.expires};v.prototype.cdomain=v.prototype.canonicalizedDomain=function(){return null==this.domain?null:t(this.domain)};r.prototype.store=null;r.prototype.rejectPublicSuffixes=!0;r.prototype.enableLooseMode= !1;O=[];O.push("setCookie");r.prototype.setCookie=function(A,D,H,G){D=p(D);H instanceof Function&&(G=H,H={});var P=t(D.hostname),U=this.enableLooseMode;null!=H.loose&&(U=H.loose);A instanceof v||(A=v.parse(A,{loose:U}));if(!A)return D=Error("Cookie failed to parse"),G(H.ignoreError?null:D);var ca=H.now||new Date;if(this.rejectPublicSuffixes&&A.domain&&null==F.getPublicSuffix(A.cdomain()))return D=Error("Cookie has domain set to a public suffix"),G(H.ignoreError?null:D);if(A.domain){if(!d(P,A.cdomain(), !1))return D=Error("Cookie not in this host's domain. Cookie:"+A.cdomain()+" Request:"+P),G(H.ignoreError?null:D);null==A.hostOnly&&(A.hostOnly=!1)}else A.hostOnly=!0,A.domain=P;A.path&&"/"===A.path[0]||(A.path=n(D.pathname),A.pathIsDefault=!0);if(!1===H.http&&A.httpOnly)return D=Error("Cookie is HttpOnly and this isn't an HTTP API"),G(H.ignoreError?null:D);var ha=this.store;ha.updateCookie||(ha.updateCookie=function(da,ja,Z){this.putCookie(ja,Z)});ha.findCookie(A.domain,A.path,A.key,function(da, ja){if(da)return G(da);da=function(Z){if(Z)return G(Z);G(null,A)};if(ja){if(!1===H.http&&ja.httpOnly)return da=Error("old Cookie is HttpOnly and this isn't an HTTP API"),G(H.ignoreError?null:da);A.creation=ja.creation;A.creationIndex=ja.creationIndex;A.lastAccessed=ca;ha.updateCookie(ja,A,da)}else A.creation=A.lastAccessed=ca,ha.putCookie(A,da)})};O.push("getCookies");r.prototype.getCookies=function(A,D,H){function G(X){if(X.hostOnly){if(X.domain!=P)return!1}else if(!d(P,X.domain,!1))return!1;return!Z&& !R(U,X.path)||X.secure&&!ca||X.httpOnly&&!ha?!1:ja&&X.expiryTime()<=da?(ba.removeCookie(X.domain,X.path,X.key,function(){}),!1):!0}A=p(A);D instanceof Function&&(H=D,D={});var P=t(A.hostname),U=A.pathname||"/",ca=D.secure;null!=ca||!A.protocol||"https:"!=A.protocol&&"wss:"!=A.protocol||(ca=!0);var ha=D.http;null==ha&&(ha=!0);var da=D.now||Date.now(),ja=!1!==D.expire,Z=!!D.allPaths,ba=this.store;ba.findCookies(P,Z?null:U,function(X,oa){if(X)return H(X);oa=oa.filter(G);!1!==D.sort&&(oa=oa.sort(m)); var sa=new Date;oa.forEach(function(ka){ka.lastAccessed=sa});H(null,oa)})};O.push("getCookieString");r.prototype.getCookieString=function(){var A=Array.prototype.slice.call(arguments,0),D=A.pop();A.push(function(H,G){H?D(H):D(null,G.sort(m).map(function(P){return P.cookieString()}).join("; "))});this.getCookies.apply(this,A)};O.push("getSetCookieStrings");r.prototype.getSetCookieStrings=function(){var A=Array.prototype.slice.call(arguments,0),D=A.pop();A.push(function(H,G){H?D(H):D(null,G.map(function(P){return P.toString()}))}); this.getCookies.apply(this,A)};O.push("serialize");r.prototype.serialize=function(A){var D=this.store.constructor.name;"Object"===D&&(D=null);var H={version:"tough-cookie@"+L,storeType:D,rejectPublicSuffixes:!!this.rejectPublicSuffixes,cookies:[]};if(!this.store.getAllCookies||"function"!==typeof this.store.getAllCookies)return A(Error("store does not support getAllCookies and cannot be serialized"));this.store.getAllCookies(function(G,P){if(G)return A(G);H.cookies=P.map(function(U){U=U instanceof v?U.toJSON():U;delete U.creationIndex;return U});return A(null,H)})};r.prototype.toJSON=function(){return this.serializeSync()};O.push("_importCookies");r.prototype._importCookies=function(A,D){function H(U){if(U)return D(U);if(!P.length)return D(U,G);try{var ca=h(P.shift())}catch(ha){return D(ha)}if(null===ca)return H(null);G.store.putCookie(ca,H)}var G=this,P=A.cookies;if(!P||!Array.isArray(P))return D(Error("serialized jar has no cookies array"));P=P.slice();H()};r.deserialize=function(A,D,H){3!== arguments.length&&(H=D,D=null);if("string"===typeof A){var G=k(A);if(G instanceof Error)return H(G)}else G=A;var P=new r(D,G.rejectPublicSuffixes);P._importCookies(G,function(U){if(U)return H(U);H(null,P)})};r.deserializeSync=function(A,D){A="string"===typeof A?JSON.parse(A):A;D=new r(D,A.rejectPublicSuffixes);if(!D.store.synchronous)throw Error("CookieJar store is not synchronous; use async API instead.");D._importCookiesSync(A);return D};r.fromJSON=r.deserializeSync;r.prototype.clone=function(A, D){1===arguments.length&&(D=A,A=null);this.serialize(function(H,G){if(H)return D(H);r.deserialize(G,A,D)})};O.push("removeAllCookies");r.prototype.removeAllCookies=function(A){var D=this.store;if(D.removeAllCookies instanceof Function&&D.removeAllCookies!==K.prototype.removeAllCookies)return D.removeAllCookies(A);D.getAllCookies(function(H,G){function P(ha){ha&&ca.push(ha);U++;if(U===G.length)return A(ca.length?ca[0]:null)}if(H)return A(H);if(0===G.length)return A(null);var U=0,ca=[];G.forEach(function(ha){D.removeCookie(ha.domain, ha.path,ha.key,P)})})};r.prototype._cloneSync=B("clone");r.prototype.cloneSync=function(A){if(!A.synchronous)throw Error("CookieJar clone destination store is not synchronous; use async API instead.");return this._cloneSync(A)};O.forEach(function(A){r.prototype[A+"Sync"]=B(A)});J.version=L;J.CookieJar=r;J.Cookie=v;J.Store=K;J.MemoryCookieStore=M;J.parseDate=x;J.formatDate=e;J.parse=l;J.fromJSON=h;J.domainMatch=d;J.defaultPath=n;J.pathMatch=R;J.getPublicSuffix=F.getPublicSuffix;J.cookieCompare=m;J.permuteDomain= E(222).permuteDomain;J.permutePath=function(A){if("/"===A)return["/"];A.lastIndexOf("/")===A.length-1&&(A=A.substr(0,A.length-1));for(var D=[A];1>>8&255}function d(G,P,U){G.bi_valid>16-U?(G.bi_buf|=P<>16-G.bi_valid,G.bi_valid+=U-16):(G.bi_buf|= P<>>=1,U<<=1;while(0<--P);return U>>>1}function k(G,P,U){var ca=Array(16),ha=0,da;for(da=1;15>=da;da++)ca[da]=ha=ha+U[da-1]<<1;for(U=0;U<=P;U++)ha=G[2*U+1],0!==ha&&(G[2*U]=l(ca[ha]++,ha))}function h(G){var P;for(P=0;286>P;P++)G.dyn_ltree[2*P]=0;for(P=0;30>P;P++)G.dyn_dtree[2*P]=0;for(P=0;19>P;P++)G.bl_tree[2*P]=0;G.dyn_ltree[512]=1;G.opt_len=G.static_len=0;G.last_lit=G.matches=0}function m(G){8< G.bi_valid?t(G,G.bi_buf):0ha?c[ha]:c[256+(ha>>>7)];n(G,ja,U);Z=L[ja];0!==Z&&(ha-=y[ja],d(G,ha,Z))}}while(caG.heap_len;){var ba= G.heap[++G.heap_len]=2>Z?++Z:0;U[2*ba]=1;G.depth[ba]=0;G.opt_len--;ha&&(G.static_len-=ca[2*ba+1])}P.max_code=Z;for(ja=G.heap_len>>1;1<=ja;ja--)v(G,U,ja);ba=da;do ja=G.heap[1],G.heap[1]=G.heap[G.heap_len--],v(G,U,1),ca=G.heap[1],G.heap[--G.heap_max]=ja,G.heap[--G.heap_max]=ca,U[2*ba]=U[2*ja]+U[2*ca],G.depth[ba]=(G.depth[ja]>=G.depth[ca]?G.depth[ja]:G.depth[ca])+1,U[2*ja+1]=U[2*ca+1]=ba,G.heap[1]=ba++,v(G,U,1);while(2<=G.heap_len);G.heap[--G.heap_max]=G.heap[1];ja=P.dyn_tree;ba=P.max_code;ca=P.stat_desc.static_tree; ha=P.stat_desc.has_stree;da=P.stat_desc.extra_bits;var X=P.stat_desc.extra_base,oa=P.stat_desc.max_length,sa,ka=0;for(sa=0;15>=sa;sa++)G.bl_count[sa]=0;ja[2*G.heap[G.heap_max]+1]=0;for(P=G.heap_max+1;573>P;P++){var va=G.heap[P];sa=ja[2*ja[2*va+1]+1]+1;sa>oa&&(sa=oa,ka++);ja[2*va+1]=sa;if(!(va>ba)){G.bl_count[sa]++;var ua=0;va>=X&&(ua=da[va-X]);var wa=ja[2*va];G.opt_len+=wa*(sa+ua);ha&&(G.static_len+=wa*(ca[2*va+1]+ua))}}if(0!==ka){do{for(sa=oa-1;0===G.bl_count[sa];)sa--;G.bl_count[sa]--;G.bl_count[sa+ 1]+=2;G.bl_count[oa]--;ka-=2}while(0ba||(ja[2*ca+1]!==sa&&(G.opt_len+=(sa-ja[2*ca+1])*ja[2*ca],ja[2*ca+1]=sa),va--)}k(U,Z,G.bl_count)}function C(G,P,U){var ca,ha=-1,da=P[1],ja=0,Z=7,ba=4;0===da&&(Z=138,ba=3);P[2*(U+1)+1]=65535;for(ca=0;ca<=U;ca++){var X=da;da=P[2*(ca+1)+1];++ja=ja?G.bl_tree[34]++:G.bl_tree[36]++,ja=0,ha=X,0===da?(Z=138, ba=3):X===da?(Z=6,ba=3):(Z=7,ba=4))}}function z(G,P,U){var ca,ha=-1,da=P[1],ja=0,Z=7,ba=4;0===da&&(Z=138,ba=3);for(ca=0;ca<=U;ca++){var X=da;da=P[2*(ca+1)+1];if(!(++ja=ja?(n(G,17,G.bl_tree),d(G,ja-3,3)):(n(G,18,G.bl_tree),d(G,ja-11,7));ja=0;ha=X;0===da?(Z=138,ba=3):X===da?(Z=6,ba=3):(Z=7,ba=4)}}}function F(G){var P=4093624447,U;for(U=0;31>=U;U++,P>>>=1)if(P&1&&0!== G.dyn_ltree[2*U])return 0;if(0!==G.dyn_ltree[18]||0!==G.dyn_ltree[20]||0!==G.dyn_ltree[26])return 1;for(U=32;256>U;U++)if(0!==G.dyn_ltree[2*U])return 1;return 0}function K(G,P,U,ca){d(G,ca?1:0,3);m(G);t(G,U);t(G,~U);M.arraySet(G.pending_buf,G.window,P,U,G.pending);G.pending+=U}var M=E(232),R=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],L=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],V=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12, 3,13,2,14,1,15],a=Array(576);g(a);var b=Array(60);g(b);var c=Array(512);g(c);var f=Array(256);g(f);var u=Array(29);g(u);var y=Array(30);g(y);var w,A,D,H=!1;J._tr_init=function(G){if(!H){var P,U,ca,ha=Array(16);for(ca=U=0;28>ca;ca++)for(u[ca]=U,P=0;P<1<ca;ca++)for(y[ca]=U,P=0;P<1<>=7;30>ca;ca++)for(y[ca]=U<<7,P=0;P<1<=P;P++)ha[P]=0;for(P=0;143>=P;)a[2*P+1]=8,P++,ha[8]++;for(;255>=P;)a[2*P+ 1]=9,P++,ha[9]++;for(;279>=P;)a[2*P+1]=7,P++,ha[7]++;for(;287>=P;)a[2*P+1]=8,P++,ha[8]++;k(a,287,ha);for(P=0;30>P;P++)b[2*P+1]=5,b[2*P]=l(P,5);w=new x(a,R,257,286,15);A=new x(b,L,0,30,15);D=new x([],V,0,19,7);H=!0}G.l_desc=new e(G.dyn_ltree,w);G.d_desc=new e(G.dyn_dtree,A);G.bl_desc=new e(G.bl_tree,D);G.bi_buf=0;G.bi_valid=0;h(G)};J._tr_stored_block=K;J._tr_flush_block=function(G,P,U,ca){var ha=0;if(0>>3;var ja=G.static_len+3+7>>>3;ja<=da&&(da=ja)}else da=ja=U+5;if(U+4<=da&&-1!==P)K(G,P,U,ca);else if(4===G.strategy||ja===da)d(G,2+(ca?1:0),3),r(G,a,b);else{d(G,4+(ca?1:0),3);P=G.l_desc.max_code+1;U=G.d_desc.max_code+1;ha+=1;d(G,P-257,5);d(G,U-1,5);d(G,ha-4,4);for(da=0;da>>8&255;G.pending_buf[G.d_buf+2*G.last_lit+1]=P&255;G.pending_buf[G.l_buf+G.last_lit]=U&255;G.last_lit++;0===P?G.dyn_ltree[2*U]++:(G.matches++,P--,G.dyn_ltree[2*(f[U]+256+1)]++,G.dyn_dtree[2*(256>P?c[P]:c[256+(P>>>7)])]++);return G.last_lit===G.lit_bufsize-1};J._tr_align=function(G){d(G,2,3);n(G,256,a);16===G.bi_valid?(t(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]= G.bi_buf&255,G.bi_buf>>=8,G.bi_valid-=8)}}; shadow$provide[234]=function(O,E,S,J){S.exports=function(g,x,e,t){var d=g&65535|0;g=g>>>16&65535|0;for(var n;0!==e;){n=2E3t;t++){x=t;for(var d=0;8>d;d++)x=x&1?3988292384^x>>>1:x>>>1;e[t]=x}return e}();S.exports=function(x,e,t,d){t=d+t;for(x^=-1;d>>8^g[(x^e[d])&255];return x^-1}}; shadow$provide[236]=function(O,E,S,J){S.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}}; shadow$provide[237]=function(O,E,S,J){function g(a,b){a.msg=V[b];return b}function x(a){for(var b=a.length;0<=--b;)a[b]=0}function e(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out);0!==c&&(K.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function t(a,b){M._tr_flush_block(a,0<=a.block_start?a.block_start:-1,a.strstart-a.block_start,b);a.block_start=a.strstart;e(a.strm)} function d(a,b){a.pending_buf[a.pending++]=b}function n(a,b){a.pending_buf[a.pending++]=b>>>8&255;a.pending_buf[a.pending++]=b&255}function l(a,b){var c=a.max_chain_length,f=a.strstart,u=a.prev_length,y=a.nice_match,w=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,A=a.window,D=a.w_mask,H=a.prev,G=a.strstart+258,P=A[f+u-1],U=A[f+u];a.prev_length>=a.good_match&&(c>>=2);y>a.lookahead&&(y=a.lookahead);do{var ca=b;if(A[ca+u]===U&&A[ca+u-1]===P&&A[ca]===A[f]&&A[++ca]===A[f+1]){f+=2;for(ca++;A[++f]=== A[++ca]&&A[++f]===A[++ca]&&A[++f]===A[++ca]&&A[++f]===A[++ca]&&A[++f]===A[++ca]&&A[++f]===A[++ca]&&A[++f]===A[++ca]&&A[++f]===A[++ca]&&fu){a.match_start=b;u=ca;if(ca>=y)break;P=A[f+u-1];U=A[f+u]}}}while((b=H[b&D])>w&&0!==--c);return u<=a.lookahead?u:a.lookahead}function k(a){var b=a.w_size,c;do{var f=a.window_size-a.lookahead-a.strstart;if(a.strstart>=b+(b-262)){K.arraySet(a.window,a.window,b,b,0);a.match_start-=b;a.strstart-=b;a.block_start-=b;var u=c=a.hash_size; do{var y=a.head[--u];a.head[u]=y>=b?y-b:0}while(--c);u=c=b;do y=a.prev[--u],a.prev[u]=y>=b?y-b:0;while(--c);f+=b}if(0===a.strm.avail_in)break;u=a.strm;c=a.window;y=a.strstart+a.lookahead;var w=u.avail_in;w>f&&(w=f);0===w?c=0:(u.avail_in-=w,K.arraySet(c,u.input,u.next_in,w,y),1===u.state.wrap?u.adler=R(u.adler,c,w,y):2===u.state.wrap&&(u.adler=L(u.adler,c,w,y)),u.next_in+=w,u.total_in+=w,c=w);a.lookahead+=c;if(3<=a.lookahead+a.insert)for(f=a.strstart-a.insert,a.ins_h=a.window[f],a.ins_h=(a.ins_h<< a.hash_shift^a.window[f+1])&a.hash_mask;a.insert&&!(a.ins_h=(a.ins_h<a.lookahead+a.insert););}while(262>a.lookahead&&0!==a.strm.avail_in)}function h(a,b){for(var c;;){if(262>a.lookahead){k(a);if(262>a.lookahead&&0===b)return 1;if(0===a.lookahead)break}c=0;3<=a.lookahead&&(a.ins_h=(a.ins_h<a.strstart?a.strstart:2;return 4===b?(t(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(t(a,!1),0===a.strm.avail_out)?1:2}function m(a,b){for(var c,f;;){if(262>a.lookahead){k(a);if(262>a.lookahead&&0===b)return 1;if(0===a.lookahead)break}c=0;3<=a.lookahead&&(a.ins_h=(a.ins_h<< a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);a.prev_length=a.match_length;a.prev_match=a.match_start;a.match_length=2;0!==c&&a.prev_length=a.match_length&&(1===a.strategy||3===a.match_length&&4096a.strstart?a.strstart:2;return 4===b?(t(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(t(a,!1),0===a.strm.avail_out)?1:2}function p(a,b){for(var c,f,u,y=a.window;;){if(258>=a.lookahead){k(a);if(258>=a.lookahead&&0===b)return 1;if(0===a.lookahead)break}a.match_length=0;if(3<=a.lookahead&&0a.lookahead&&(a.match_length=a.lookahead)}3<=a.match_length?(c=M._tr_tally(a,1,a.match_length-3),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=M._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++);if(c&&(t(a,!1),0===a.strm.avail_out))return 1}a.insert=0;return 4===b?(t(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(t(a,!1), 0===a.strm.avail_out)?1:2}function v(a,b){for(var c;;){if(0===a.lookahead&&(k(a),0===a.lookahead)){if(0===b)return 1;break}a.match_length=0;c=M._tr_tally(a,0,a.window[a.strstart]);a.lookahead--;a.strstart++;if(c&&(t(a,!1),0===a.strm.avail_out))return 1}a.insert=0;return 4===b?(t(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(t(a,!1),0===a.strm.avail_out)?1:2}function r(a,b,c,f,u){this.good_length=a;this.max_lazy=b;this.nice_length=c;this.max_chain=f;this.func=u}function B(){this.strm=null;this.status= 0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=8;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=this.block_start=this.hash_shift= this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new K.Buf16(1146);this.dyn_dtree=new K.Buf16(122);this.bl_tree=new K.Buf16(78);x(this.dyn_ltree);x(this.dyn_dtree);x(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new K.Buf16(16);this.heap=new K.Buf16(573);x(this.heap);this.heap_max=this.heap_len=0;this.depth=new K.Buf16(573);x(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=this.d_buf=this.last_lit=this.lit_bufsize= this.l_buf=0}function C(a){if(!a||!a.state)return g(a,-2);a.total_in=a.total_out=0;a.data_type=2;var b=a.state;b.pending=0;b.pending_out=0;0>b.wrap&&(b.wrap=-b.wrap);b.status=b.wrap?42:113;a.adler=2===b.wrap?0:1;b.last_flush=0;M._tr_init(b);return 0}function z(a){var b=C(a);0===b&&(a=a.state,a.window_size=2*a.w_size,x(a.head),a.max_lazy_match=Q[a.level].max_lazy,a.good_match=Q[a.level].good_length,a.nice_match=Q[a.level].nice_length,a.max_chain_length=Q[a.level].max_chain,a.strstart=0,a.block_start= 0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0);return b}function F(a,b,c,f,u,y){if(!a)return-2;var w=1;-1===b&&(b=6);0>f?(w=0,f=-f):15u||9f||15b||9y||4a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(1>=a.lookahead){k(a);if(0===a.lookahead&&0===b)return 1;if(0===a.lookahead)break}a.strstart+= a.lookahead;a.lookahead=0;var f=a.block_start+c;if(0===a.strstart||a.strstart>=f)if(a.lookahead=a.strstart-f,a.strstart=f,t(a,!1),0===a.strm.avail_out)return 1;if(a.strstart-a.block_start>=a.w_size-262&&(t(a,!1),0===a.strm.avail_out))return 1}a.insert=0;if(4===b)return t(a,!0),0===a.strm.avail_out?3:4;a.strstart>a.block_start&&t(a,!1);return 1}),new r(4,4,8,4,h),new r(4,5,16,8,h),new r(4,6,32,32,h),new r(4,4,16,16,m),new r(8,16,32,32,m),new r(8,16,128,128,m),new r(8,32,128,256,m),new r(32,128,258, 1024,m),new r(32,258,258,4096,m)];J.deflateInit=function(a,b){return F(a,b,8,15,8,0)};J.deflateInit2=F;J.deflateReset=z;J.deflateResetKeep=C;J.deflateSetHeader=function(a,b){if(!a||!a.state||2!==a.state.wrap)return-2;a.state.gzhead=b;return 0};J.deflate=function(a,b){if(!a||!a.state||5b)return a?g(a,-2):-2;var c=a.state;if(!a.output||!a.input&&0!==a.avail_in||666===c.status&&4!==b)return g(a,0===a.avail_out?-5:-2);c.strm=a;var f=c.last_flush;c.last_flush=b;if(42===c.status)if(2===c.wrap)a.adler= 0,d(c,31),d(c,139),d(c,8),c.gzhead?(d(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),d(c,c.gzhead.time&255),d(c,c.gzhead.time>>8&255),d(c,c.gzhead.time>>16&255),d(c,c.gzhead.time>>24&255),d(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),d(c,c.gzhead.os&255),c.gzhead.extra&&c.gzhead.extra.length&&(d(c,c.gzhead.extra.length&255),d(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(a.adler=L(a.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status= 69):(d(c,0),d(c,0),d(c,0),d(c,0),d(c,0),d(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),d(c,3),c.status=113);else{var u=8+(c.w_bits-8<<4)<<8;u|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.strstart&&(u|=32);c.status=113;n(c,u+(31-u%31));0!==c.strstart&&(n(c,a.adler>>>16),n(c,a.adler&65535));a.adler=1}if(69===c.status)if(c.gzhead.extra){for(u=c.pending;c.gzindex<(c.gzhead.extra.length&65535)&&(c.pending!==c.pending_buf_size||(c.gzhead.hcrc&&c.pending>u&&(a.adler=L(a.adler,c.pending_buf, c.pending-u,u)),e(a),u=c.pending,c.pending!==c.pending_buf_size));)d(c,c.gzhead.extra[c.gzindex]&255),c.gzindex++;c.gzhead.hcrc&&c.pending>u&&(a.adler=L(a.adler,c.pending_buf,c.pending-u,u));c.gzindex===c.gzhead.extra.length&&(c.gzindex=0,c.status=73)}else c.status=73;if(73===c.status)if(c.gzhead.name){u=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>u&&(a.adler=L(a.adler,c.pending_buf,c.pending-u,u)),e(a),u=c.pending,c.pending===c.pending_buf_size)){var y=1;break}y=c.gzindex< c.gzhead.name.length?c.gzhead.name.charCodeAt(c.gzindex++)&255:0;d(c,y)}while(0!==y);c.gzhead.hcrc&&c.pending>u&&(a.adler=L(a.adler,c.pending_buf,c.pending-u,u));0===y&&(c.gzindex=0,c.status=91)}else c.status=91;if(91===c.status)if(c.gzhead.comment){u=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>u&&(a.adler=L(a.adler,c.pending_buf,c.pending-u,u)),e(a),u=c.pending,c.pending===c.pending_buf_size)){y=1;break}y=c.gzindexu&&(a.adler=L(a.adler,c.pending_buf,c.pending-u,u));0===y&&(c.status=103)}else c.status=103;103===c.status&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&e(a),c.pending+2<=c.pending_buf_size&&(d(c,a.adler&255),d(c,a.adler>>8&255),a.adler=0,c.status=113)):c.status=113);if(0!==c.pending){if(e(a),0===a.avail_out)return c.last_flush=-1,0}else if(0===a.avail_in&&(b<<1)-(4=c.wrap)return 1;2===c.wrap?(d(c,a.adler&255),d(c,a.adler>>8&255), d(c,a.adler>>16&255),d(c,a.adler>>24&255),d(c,a.total_in&255),d(c,a.total_in>>8&255),d(c,a.total_in>>16&255),d(c,a.total_in>>24&255)):(n(c,a.adler>>>16),n(c,a.adler&65535));e(a);0=f.w_size){0===u&&(x(f.head),f.strstart=0,f.block_start=0,f.insert=0);var y=new K.Buf8(f.w_size);K.arraySet(y,b,c-f.w_size,f.w_size,0);b=y;c=f.w_size}y=a.avail_in;var w=a.next_in;var A=a.input;a.avail_in=c;a.next_in=0;a.input=b;for(k(f);3<=f.lookahead;){b=f.strstart;c=f.lookahead-2;do f.ins_h=(f.ins_h<z&&(C+=d[t++]<>>24;C>>>=V;z-=V;V=L>>>16&255;if(0===V)k[l++]= L&65535;else if(V&16){var Q=L&65535;if(V&=15)z>>=V,z-=V;15>z&&(C+=d[t++]<>>24;C>>>=V;z-=V;V=L>>>16&255;if(V&16){L&=65535;V&=15;zm){g.msg="invalid distance too far back";e.mode=30;break a}C>>>=V;z-=V;V=l-x;if(L>V){V=L-V;if(V>v&&e.sane){g.msg="invalid distance too far back";e.mode=30;break a}var a=0;var b=B;if(0===r){if(a+=p-V,V>3;t-=Q;z-=Q<<3;g.next_in=t;g.next_out=l;g.avail_in=t=C;C++)V[C]=0;for(z=0;zF&&(c=F);if(0===F)return m[p++]=20971520,m[p++]=20971520,r.bits=1,0;for(B=1;B=C;C++)if(K<<=1,K-=V[C],0>K)return-1;if(0C;C++)Q[C+1]=Q[C]+V[C];for(z=0;zu?(G=a[b+v[z]],P=f[L+v[z]]):(G=96,P=0);K=1<>Q)+R]=H<<24|G<<16|P|0;while(0!==R);for(K=1<>=1;0!==K?(M&=K-1,M+=K):M=0;z++;if(0===--V[C]){if(C===F)break;C=l[k+v[z]]}if(C>c&&(M&D)!==w){0===Q&&(Q=c);y+=B;h=C-Q;for(K=1<=K)break;h++;K<<=1}A+=1<>>24&255)+(z>>>8&65280)+((z&65280)<<8)+((z&255)<<24)}function x(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new k.Buf16(320); this.work=new k.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function e(z){if(!z||!z.state)return-2;var F=z.state;z.total_in=z.total_out=F.total=0;z.msg="";F.wrap&&(z.adler=F.wrap&1);F.mode=1;F.last=0;F.havedict=0;F.dmax=32768;F.head=null;F.hold=0;F.bits=0;F.lencode=F.lendyn=new k.Buf32(852);F.distcode=F.distdyn=new k.Buf32(592);F.sane=1;F.back=-1;return 0}function t(z){if(!z||!z.state)return-2;var F=z.state;F.wsize=0;F.whave=0;F.wnext=0;return e(z)}function d(z,F){if(!z|| !z.state)return-2;var K=z.state;if(0>F){var M=0;F=-F}else M=(F>>4)+1,48>F&&(F&=15);if(F&&(8>F||15=R.wsize?(k.arraySet(R.window,F,K-R.wsize,R.wsize,0),R.wnext=0,R.whave=R.wsize):(z=R.wsize- R.wnext,z>M&&(z=M),k.arraySet(R.window,F,K-M,z,R.wnext),(M-=z)?(k.arraySet(R.window,F,K-M,M,0),R.wnext=M,R.whave=R.wsize):(R.wnext+=z,R.wnext===R.wsize&&(R.wnext=0),R.whavey;){if(0===f)break a;f--;u+=c[b++]<>>8&255;L.check=m(L.check,M,2,0);y=u=0;L.mode=2;break}L.flags=0;L.head&&(L.head.done=!1);if(!(L.wrap&1)||(((u&255)<< 8)+(u>>8))%31){z.msg="incorrect header check";L.mode=30;break}if(8!==(u&15)){z.msg="unknown compression method";L.mode=30;break}u>>>=4;y-=4;var H=(u&15)+8;if(0===L.wbits)L.wbits=H;else if(H>L.wbits){z.msg="invalid window size";L.mode=30;break}L.dmax=1<y;){if(0===f)break a;f--;u+=c[b++]<>8&1);L.flags&512&&(M[0]=u&255,M[1]=u>>>8&255,L.check=m(L.check,M,2,0));y=u=0;L.mode=3;case 3:for(;32>y;){if(0===f)break a;f--;u+=c[b++]<>>8&255,M[2]=u>>>16&255,M[3]=u>>>24&255,L.check=m(L.check,M,4,0));y=u=0;L.mode=4;case 4:for(;16>y;){if(0===f)break a;f--;u+=c[b++]<>8);L.flags&512&&(M[0]=u&255,M[1]=u>>>8&255,L.check=m(L.check,M,2,0));y=u=0;L.mode=5;case 5:if(L.flags& 1024){for(;16>y;){if(0===f)break a;f--;u+=c[b++]<>>8&255,L.check=m(L.check,M,2,0));y=u=0}else L.head&&(L.head.extra=null);L.mode=6;case 6:if(L.flags&1024){var G=L.length;G>f&&(G=f);G&&(L.head&&(H=L.head.extra_len-L.length,L.head.extra||(L.head.extra=Array(L.head.extra_len)),k.arraySet(L.head.extra,c,b,G,H)),L.flags&512&&(L.check=m(L.check,c,G,b)),f-=G,b+=G,L.length-=G);if(L.length)break a}L.length=0;L.mode=7;case 7:if(L.flags& 2048){if(0===f)break a;G=0;do H=c[b+G++],L.head&&H&&65536>L.length&&(L.head.name+=String.fromCharCode(H));while(H&&GL.length&&(L.head.comment+=String.fromCharCode(H));while(H&&Gy;){if(0===f)break a;f--;u+=c[b++]<>9&1,L.head.done=!0);z.adler=L.check=0;L.mode=12;break;case 10:for(;32>y;){if(0===f)break a;f--;u+=c[b++]<>>=y& 7;y-=y&7;L.mode=27;break}for(;3>y;){if(0===f)break a;f--;u+=c[b++]<>>=1;--y;switch(u&3){case 0:L.mode=14;break;case 1:H=L;if(r){B=new k.Buf32(512);C=new k.Buf32(32);for(G=0;144>G;)H.lens[G++]=8;for(;256>G;)H.lens[G++]=9;for(;280>G;)H.lens[G++]=7;for(;288>G;)H.lens[G++]=8;v(1,H.lens,0,288,B,0,H.work,{bits:9});for(G=0;32>G;)H.lens[G++]=5;v(2,H.lens,0,32,C,0,H.work,{bits:5});r=!1}H.lencode=B;H.lenbits=9;H.distcode=C;H.distbits=5;L.mode=20;if(6===F){u>>>=2;y-=2;break a}break;case 2:L.mode= 17;break;case 3:z.msg="invalid block type",L.mode=30}u>>>=2;y-=2;break;case 14:u>>>=y&7;for(y-=y&7;32>y;){if(0===f)break a;f--;u+=c[b++]<>>16^65535)){z.msg="invalid stored block lengths";L.mode=30;break}L.length=u&65535;y=u=0;L.mode=15;if(6===F)break a;case 15:L.mode=16;case 16:if(G=L.length){G>f&&(G=f);G>a&&(G=a);if(0===G)break a;k.arraySet(Q,c,b,G,V);f-=G;b+=G;a-=G;V+=G;L.length-=G;break}L.mode=12;break;case 17:for(;14>y;){if(0===f)break a;f--;u+=c[b++]<>>=5;y-=5;L.ndist=(u&31)+1;u>>>=5;y-=5;L.ncode=(u&15)+4;u>>>=4;y-=4;if(286y;){if(0===f)break a;f--;u+=c[b++]<>>=3;y-=3}for(;19>L.have;)L.lens[R[L.have++]]=0;L.lencode=L.lendyn;L.lenbits=7;G={bits:L.lenbits};D=v(0,L.lens,0,19,L.lencode,0,L.work,G);L.lenbits=G.bits;if(D){z.msg="invalid code lengths set";L.mode=30;break}L.have= 0;L.mode=19;case 19:for(;L.have>>24;P&=65535;if(G<=y)break;if(0===f)break a;f--;u+=c[b++]<P)u>>>=G,y-=G,L.lens[L.have++]=P;else{if(16===P){for(H=G+2;y>>=G;y-=G;if(0===L.have){z.msg="invalid bit length repeat";L.mode=30;break}H=L.lens[L.have-1];G=3+(u&3);u>>>=2;y-=2}else if(17===P){for(H=G+3;y>>=G;y-=G;H=0;G=3+(u&7);u>>>=3;y-=3}else{for(H= G+7;y>>=G;y-=G;H=0;G=11+(u&127);u>>>=7;y-=7}if(L.have+G>L.nlen+L.ndist){z.msg="invalid bit length repeat";L.mode=30;break}for(;G--;)L.lens[L.have++]=H}}if(30===L.mode)break;if(0===L.lens[256]){z.msg="invalid code -- missing end-of-block";L.mode=30;break}L.lenbits=9;G={bits:L.lenbits};D=v(1,L.lens,0,L.nlen,L.lencode,0,L.work,G);L.lenbits=G.bits;if(D){z.msg="invalid literal/lengths set";L.mode=30;break}L.distbits=6;L.distcode=L.distdyn;G={bits:L.distbits}; D=v(2,L.lens,L.nlen,L.ndist,L.distcode,0,L.work,G);L.distbits=G.bits;if(D){z.msg="invalid distances set";L.mode=30;break}L.mode=20;if(6===F)break a;case 20:L.mode=21;case 21:if(6<=f&&258<=a){z.next_out=V;z.avail_out=a;z.next_in=b;z.avail_in=f;L.hold=u;L.bits=y;p(z,A);V=z.next_out;Q=z.output;a=z.avail_out;b=z.next_in;c=z.input;f=z.avail_in;u=L.hold;y=L.bits;12===L.mode&&(L.back=-1);break}for(L.back=0;;){P=L.lencode[u&(1<>>24;H=P>>>16&255;P&=65535;if(G<=y)break;if(0===f)break a;f--; u+=c[b++]<>U)];G=P>>>24;H=P>>>16&255;P&=65535;if(U+G<=y)break;if(0===f)break a;f--;u+=c[b++]<>>=U;y-=U;L.back+=U}u>>>=G;y-=G;L.back+=G;L.length=P;if(0===H){L.mode=26;break}if(H&32){L.back=-1;L.mode=12;break}if(H&64){z.msg="invalid literal/length code";L.mode=30;break}L.extra=H&15;L.mode=22;case 22:if(L.extra){for(H=L.extra;y>>=L.extra; y-=L.extra;L.back+=L.extra}L.was=L.length;L.mode=23;case 23:for(;;){P=L.distcode[u&(1<>>24;H=P>>>16&255;P&=65535;if(G<=y)break;if(0===f)break a;f--;u+=c[b++]<>U)];G=P>>>24;H=P>>>16&255;P&=65535;if(U+G<=y)break;if(0===f)break a;f--;u+=c[b++]<>>=U;y-=U;L.back+=U}u>>>=G;y-=G;L.back+=G;if(H&64){z.msg="invalid distance code";L.mode=30;break}L.offset=P;L.extra=H&15;L.mode=24;case 24:if(L.extra){for(H= L.extra;y>>=L.extra;y-=L.extra;L.back+=L.extra}if(L.offset>L.dmax){z.msg="invalid distance too far back";L.mode=30;break}L.mode=25;case 25:if(0===a)break a;G=A-a;if(L.offset>G){G=L.offset-G;if(G>L.whave&&L.sane){z.msg="invalid distance too far back";L.mode=30;break}G>L.wnext?(G-=L.wnext,H=L.wsize-G):H=L.wnext-G;G>L.length&&(G=L.length);U=L.window}else U=Q,H=V-L.offset,G=L.length;G>a&&(G=a);a-=G;L.length-=G;do Q[V++]=U[H++];while(--G); 0===L.length&&(L.mode=21);break;case 26:if(0===a)break a;Q[V++]=L.length;a--;L.mode=21;break;case 27:if(L.wrap){for(;32>y;){if(0===f)break a;f--;u|=c[b++]<y;){if(0===f)break a;f--;u+=c[b++]<L.mode&&(27>L.mode||4!==F))&&l(z,z.output,z.next_out,A-z.avail_out))return L.mode=31,-4;w-=z.avail_in;A-=z.avail_out;z.total_in+=w;z.total_out+=A;L.total+=A;L.wrap&&A&&(z.adler=L.check=L.flags?m(L.check,Q,A,z.next_out-A):h(L.check,Q,A,z.next_out-A));z.data_type=L.bits+(L.last?64:0)+(12===L.mode?128: 0)+(20===L.mode||15===L.mode?256:0);(0===w&&0===A||4===F)&&0===D&&(D=-5);return D};J.inflateEnd=function(z){if(!z||!z.state)return-2;var F=z.state;F.window&&(F.window=null);z.state=null;return 0};J.inflateGetHeader=function(z,F){if(!z||!z.state)return-2;z=z.state;if(0===(z.wrap&2))return-2;z.head=F;F.done=!1;return 0};J.inflateSetDictionary=function(z,F){var K=F.length;if(!z||!z.state)return-2;var M=z.state;if(0!==M.wrap&&11!==M.mode)return-2;if(11===M.mode){var R=h(1,F,K,0);if(R!==M.check)return-3}if(l(z, F,K,K))return M.mode=31,-4;M.havedict=1;return 0};J.inflateInfo="pako inflate (from Nodeca project)"}; shadow$provide[241]=function(O,E,S,J){S.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}}; shadow$provide[242]=function(O,E,S,J){function g(h){if("number"!==typeof h||hJ.UNZIP)throw new TypeError("Bad argument");this.dictionary=null;this.flush=this.err=0;this.init_done=!1;this.memLevel=this.level=0;this.mode=h;this.windowBits=this.strategy=0;this.pending_close=this.write_in_progress=!1;this.gzip_id_bytes_read=0}var x=E(28),e=E(37).Buffer;"use strict";var t=E(30),d=E(231),n=E(237),l=E(240);O=E(241);for(var k in O)J[k]=O[k];J.NONE=0;J.DEFLATE=1;J.INFLATE=2;J.GZIP=3;J.GUNZIP= 4;J.DEFLATERAW=5;J.INFLATERAW=6;J.UNZIP=7;g.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,t(this.init_done,"close before init"),t(this.mode<=J.UNZIP),this.mode===J.DEFLATE||this.mode===J.GZIP||this.mode===J.DEFLATERAW?n.deflateEnd(this.strm):(this.mode===J.INFLATE||this.mode===J.GUNZIP||this.mode===J.INFLATERAW||this.mode===J.UNZIP)&&l.inflateEnd(this.strm),this.mode=J.NONE,this.dictionary=null)};g.prototype.write=function(h,m,p,v,r,B,C){return this._write(!0, h,m,p,v,r,B,C)};g.prototype.writeSync=function(h,m,p,v,r,B,C){return this._write(!1,h,m,p,v,r,B,C)};g.prototype._write=function(h,m,p,v,r,B,C,z){t.equal(arguments.length,8);t(this.init_done,"write before init");t(this.mode!==J.NONE,"already finalized");t.equal(!1,this.write_in_progress,"write already in progress");t.equal(!1,this.pending_close,"close is pending");this.write_in_progress=!0;t.equal(!1,void 0===m,"must provide flush value");this.write_in_progress=!0;if(m!==J.Z_NO_FLUSH&&m!==J.Z_PARTIAL_FLUSH&& m!==J.Z_SYNC_FLUSH&&m!==J.Z_FULL_FLUSH&&m!==J.Z_FINISH&&m!==J.Z_BLOCK)throw Error("Invalid flush value");null==p&&(p=e.alloc(0),v=r=0);this.strm.avail_in=r;this.strm.input=p;this.strm.next_in=v;this.strm.avail_out=z;this.strm.output=B;this.strm.next_out=C;this.flush=m;if(h){var F=this;x.nextTick(function(){F._process();F._after()});return this}this._process();if(this._checkError())return this._afterSync()};g.prototype._afterSync=function(){var h=this.strm.avail_out,m=this.strm.avail_in;this.write_in_progress= !1;return[m,h]};g.prototype._process=function(){var h=null;switch(this.mode){case J.DEFLATE:case J.GZIP:case J.DEFLATERAW:this.err=n.deflate(this.strm,this.flush);break;case J.UNZIP:switch(0=h,"invalid windowBits");t(-1<=m&&9>=m,"invalid compression level");t(1<=p&&9>= p,"invalid memlevel");t(v===J.Z_FILTERED||v===J.Z_HUFFMAN_ONLY||v===J.Z_RLE||v===J.Z_FIXED||v===J.Z_DEFAULT_STRATEGY,"invalid strategy");this._init(m,h,p,v,r);this._setDictionary()};g.prototype.params=function(){throw Error("deflateParams Not supported");};g.prototype.reset=function(){this._reset();this._setDictionary()};g.prototype._init=function(h,m,p,v,r){this.level=h;this.windowBits=m;this.memLevel=p;this.strategy=v;this.flush=J.Z_NO_FLUSH;this.err=J.Z_OK;if(this.mode===J.GZIP||this.mode===J.GUNZIP)this.windowBits+= 16;this.mode===J.UNZIP&&(this.windowBits+=32);if(this.mode===J.DEFLATERAW||this.mode===J.INFLATERAW)this.windowBits*=-1;this.strm=new d;switch(this.mode){case J.DEFLATE:case J.GZIP:case J.DEFLATERAW:this.err=n.deflateInit2(this.strm,this.level,J.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case J.INFLATE:case J.GUNZIP:case J.INFLATERAW:case J.UNZIP:this.err=l.inflateInit2(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode);}this.err!==J.Z_OK&&this._error("Init error"); this.dictionary=r;this.write_in_progress=!1;this.init_done=!0};g.prototype._setDictionary=function(){if(null!=this.dictionary){this.err=J.Z_OK;switch(this.mode){case J.DEFLATE:case J.DEFLATERAW:this.err=n.deflateSetDictionary(this.strm,this.dictionary)}this.err!==J.Z_OK&&this._error("Failed to set dictionary")}};g.prototype._reset=function(){this.err=J.Z_OK;switch(this.mode){case J.DEFLATE:case J.DEFLATERAW:case J.GZIP:this.err=n.deflateReset(this.strm);break;case J.INFLATE:case J.INFLATERAW:case J.GUNZIP:this.err= l.inflateReset(this.strm)}this.err!==J.Z_OK&&this._error("Failed to reset stream")};J.Zlib=g}; shadow$provide[243]=function(O,E,S,J){function g(Q,a,b){function c(){for(var w;null!==(w=Q.read());)u.push(w),y+=w.length;Q.once("readable",c)}function f(){var w,A=null;y>=M?A=new RangeError(R):w=C.concat(u,y);u=[];Q.close();b(A,w)}var u=[],y=0;Q.on("error",function(w){Q.removeListener("end",f);Q.removeListener("readable",c);b(w)});Q.on("end",f);Q.end(a);c()}function x(Q,a){"string"===typeof a&&(a=C.from(a));if(!C.isBuffer(a))throw new TypeError("Not a string or buffer");return Q._processChunk(a, Q._finishFlushFlag)}function e(Q){if(!(this instanceof e))return new e(Q);p.call(this,Q,F.DEFLATE)}function t(Q){if(!(this instanceof t))return new t(Q);p.call(this,Q,F.INFLATE)}function d(Q){if(!(this instanceof d))return new d(Q);p.call(this,Q,F.GZIP)}function n(Q){if(!(this instanceof n))return new n(Q);p.call(this,Q,F.GUNZIP)}function l(Q){if(!(this instanceof l))return new l(Q);p.call(this,Q,F.DEFLATERAW)}function k(Q){if(!(this instanceof k))return new k(Q);p.call(this,Q,F.INFLATERAW)}function h(Q){if(!(this instanceof h))return new h(Q);p.call(this,Q,F.UNZIP)}function m(Q){return Q===F.Z_NO_FLUSH||Q===F.Z_PARTIAL_FLUSH||Q===F.Z_SYNC_FLUSH||Q===F.Z_FULL_FLUSH||Q===F.Z_FINISH||Q===F.Z_BLOCK}function p(Q,a){var b=this;this._opts=Q=Q||{};this._chunkSize=Q.chunkSize||J.Z_DEFAULT_CHUNK;z.call(this,Q);if(Q.flush&&!m(Q.flush))throw Error("Invalid flush flag: "+Q.flush);if(Q.finishFlush&&!m(Q.finishFlush))throw Error("Invalid flush flag: "+Q.finishFlush);this._flushFlag=Q.flush||F.Z_NO_FLUSH;this._finishFlushFlag="undefined"!== typeof Q.finishFlush?Q.finishFlush:F.Z_FINISH;if(Q.chunkSize&&(Q.chunkSizeJ.Z_MAX_CHUNK))throw Error("Invalid chunk size: "+Q.chunkSize);if(Q.windowBits&&(Q.windowBitsJ.Z_MAX_WINDOWBITS))throw Error("Invalid windowBits: "+Q.windowBits);if(Q.level&&(Q.levelJ.Z_MAX_LEVEL))throw Error("Invalid compression level: "+Q.level);if(Q.memLevel&&(Q.memLevelJ.Z_MAX_MEMLEVEL))throw Error("Invalid memLevel: "+ Q.memLevel);if(Q.strategy&&Q.strategy!=J.Z_FILTERED&&Q.strategy!=J.Z_HUFFMAN_ONLY&&Q.strategy!=J.Z_RLE&&Q.strategy!=J.Z_FIXED&&Q.strategy!=J.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+Q.strategy);if(Q.dictionary&&!C.isBuffer(Q.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance");this._handle=new F.Zlib(a);var c=this;this._hadError=!1;this._handle.onerror=function(u,y){v(c);c._hadError=!0;u=Error(u);u.errno=y;u.code=J.codes[y];c.emit("error",u)};a=J.Z_DEFAULT_COMPRESSION; "number"===typeof Q.level&&(a=Q.level);var f=J.Z_DEFAULT_STRATEGY;"number"===typeof Q.strategy&&(f=Q.strategy);this._handle.init(Q.windowBits||J.Z_DEFAULT_WINDOWBITS,a,Q.memLevel||J.Z_DEFAULT_MEMLEVEL,f,Q.dictionary);this._buffer=C.allocUnsafe(this._chunkSize);this._offset=0;this._level=a;this._strategy=f;this.once("end",this.close);Object.defineProperty(this,"_closed",{get:function(){return!b._handle},configurable:!0,enumerable:!0})}function v(Q,a){a&&B.nextTick(a);Q._handle&&(Q._handle.close(), Q._handle=null)}function r(Q){Q.emit("close")}var B=E(28);"use strict";var C=E(37).Buffer,z=E(59).Transform,F=E(242);O=E(33);var K=E(30).ok,M=E(37).kMaxLength,R="Cannot create final Buffer. It would be larger than 0x"+M.toString(16)+" bytes";F.Z_MIN_WINDOWBITS=8;F.Z_MAX_WINDOWBITS=15;F.Z_DEFAULT_WINDOWBITS=15;F.Z_MIN_CHUNK=64;F.Z_MAX_CHUNK=Infinity;F.Z_DEFAULT_CHUNK=16384;F.Z_MIN_MEMLEVEL=1;F.Z_MAX_MEMLEVEL=9;F.Z_DEFAULT_MEMLEVEL=8;F.Z_MIN_LEVEL=-1;F.Z_MAX_LEVEL=9;F.Z_DEFAULT_LEVEL=F.Z_DEFAULT_COMPRESSION; E=Object.keys(F);for(S=0;SJ.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+Q);if(a!=J.Z_FILTERED&&a!=J.Z_HUFFMAN_ONLY&& a!=J.Z_RLE&&a!=J.Z_FIXED&&a!=J.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+a);if(this._level!==Q||this._strategy!==a){var c=this;this.flush(F.Z_SYNC_FLUSH,function(){K(c._handle,"zlib binding closed");c._handle.params(Q,a);c._hadError||(c._level=Q,c._strategy=a,b&&b())})}else B.nextTick(b)};p.prototype.reset=function(){K(this._handle,"zlib binding closed");return this._handle.reset()};p.prototype._flush=function(Q){this._transform(C.alloc(0),"",Q)};p.prototype.flush=function(Q,a){var b= this,c=this._writableState;if("function"===typeof Q||void 0===Q&&!a)a=Q,Q=F.Z_FULL_FLUSH;if(c.ended)a&&B.nextTick(a);else if(c.ending){if(a)this.once("end",a)}else if(c.needDrain){if(a)this.once("drain",function(){return b.flush(Q,a)})}else this._flushFlag=Q,this.write(C.alloc(0),"",a)};p.prototype.close=function(Q){v(this,Q);B.nextTick(r,this)};p.prototype._transform=function(Q,a,b){a=this._writableState;var c=(a.ending||a.ended)&&(!Q||a.length===Q.length);if(null!==Q&&!C.isBuffer(Q))return b(Error("invalid input")); if(!this._handle)return b(Error("zlib binding closed"));c?c=this._finishFlushFlag:(c=this._flushFlag,Q.length>=a.length&&(this._flushFlag=this._opts.flush||F.Z_NO_FLUSH));this._processChunk(Q,c,b)};p.prototype._processChunk=function(Q,a,b){function c(U,ca){this&&(this.callback=this.buffer=null);if(!w._hadError){var ha=u-ca;K(0<=ha,"have should not go down");if(0=w._chunkSize)u= w._chunkSize,w._offset=0,w._buffer=C.allocUnsafe(w._chunkSize);if(0===ca){y+=f-U;f=U;if(!A)return!0;U=w._handle.write(a,Q,y,f,w._buffer,w._offset,w._chunkSize);U.callback=c;U.buffer=Q}else{if(!A)return!1;b()}}}var f=Q&&Q.length,u=this._chunkSize-this._offset,y=0,w=this,A="function"===typeof b;if(!A){var D=[],H=0,G;this.on("error",function(U){G=U});K(this._handle,"zlib binding closed");do var P=this._handle.writeSync(a,Q,y,f,this._buffer,this._offset,u);while(!this._hadError&&c(P[0],P[1]));if(this._hadError)throw G; if(H>=M)throw v(this),new RangeError(R);P=C.concat(D,H);v(this);return P}K(this._handle,"zlib binding closed");P=this._handle.write(a,Q,y,f,this._buffer,this._offset,u);P.buffer=Q;P.callback=c};O.inherits(e,p);O.inherits(t,p);O.inherits(d,p);O.inherits(n,p);O.inherits(l,p);O.inherits(k,p);O.inherits(h,p)}; shadow$provide[244]=function(O,E,S,J){function g(h){return"AWS "+h.key+":"+e(h)}function x(h){return n.createHmac("sha1",h.secret).update(h.message).digest("base64")}function e(h){h.message=t(h);return x(h)}function t(h){var m=h.amazonHeaders||"";m&&(m+="\n");return[h.verb,h.md5,h.contentType,h.date?h.date.toUTCString():"",m+h.resource].join("\n")}function d(h){return"GET\n\n\n"+h.date+"\n"+h.resource}var n=E(191),l=E(207).parse,k="acl location logging notification partNumber policy requestPayment torrent uploadId uploads versionId versioning versions website".split(" "); S.exports=g;S.exports.authorization=g;S.exports.hmacSha1=x;S.exports.sign=e;S.exports.signQuery=function(h){h.message=d(h);return x(h)};S.exports.stringToSign=t;S.exports.queryStringToSign=d;S.exports.canonicalizeHeaders=function(h){for(var m=[],p=Object.keys(h),v=0,r=p.length;vB;B++)if(/^s3-/.test(r[B])){r[1]= r[B].slice(3);r[0]="s3";break}return r};d.prototype.isSingleRegion=function(){return 0<=["s3","sdb"].indexOf(this.service)&&"us-east-1"===this.region?!0:0<="cloudfront ls route53 iam importexport sts".split(" ").indexOf(this.service)};d.prototype.createHost=function(){var r=this.isSingleRegion()?"":"."+this.region;return("ses"===this.service?"email":this.service)+r+".amazonaws.com"};d.prototype.prepareRequest=function(){this.parsePath();var r=this.request,B=r.headers;r.signQuery?(this.parsedPath.query= r=this.parsedPath.query||{},this.credentials.sessionToken&&(r["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||r["X-Amz-Expires"]||(r["X-Amz-Expires"]=86400),r["X-Amz-Date"]?this.datetime=r["X-Amz-Date"]:r["X-Amz-Date"]=this.getDateTime(),r["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",r["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString(),r["X-Amz-SignedHeaders"]=this.signedHeaders()):(r.doNotModifyHeaders||this.isCodeCommitGit||(!r.body||B["Content-Type"]|| B["content-type"]||(B["Content-Type"]="application/x-www-form-urlencoded; charset\x3dutf-8"),!r.body||B["Content-Length"]||B["content-length"]||(B["Content-Length"]=l.byteLength(r.body)),!this.credentials.sessionToken||B["X-Amz-Security-Token"]||B["x-amz-security-token"]||(B["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||B["X-Amz-Content-Sha256"]||B["x-amz-content-sha256"]||(B["X-Amz-Content-Sha256"]=x(this.request.body||"","hex")),B["X-Amz-Date"]||B["x-amz-date"]?this.datetime= B["X-Amz-Date"]||B["x-amz-date"]:B["X-Amz-Date"]=this.getDateTime()),delete B.Authorization,delete B.authorization)};d.prototype.sign=function(){this.parsedPath||this.prepareRequest();this.request.signQuery?this.parsedPath.query["X-Amz-Signature"]=this.signature():this.request.headers.Authorization=this.authHeader();this.request.path=this.formatPath();return this.request};d.prototype.getDateTime=function(){if(!this.datetime){var r=this.request.headers;this.datetime=(new Date(r.Date||r.date||new Date)).toISOString().replace(/[:\-]|\.\d{3}/g, "");this.isCodeCommitGit&&(this.datetime=this.datetime.slice(0,-1))}return this.datetime};d.prototype.getDate=function(){return this.getDateTime().substr(0,8)};d.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential\x3d"+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders\x3d"+this.signedHeaders(),"Signature\x3d"+this.signature()].join(", ")};d.prototype.signature=function(){var r=this.getDate(),B=[this.credentials.secretAccessKey,r,this.region,this.service].join(), C=p.get(B);C||(r=g("AWS4"+this.credentials.secretAccessKey,r),r=g(r,this.region),r=g(r,this.service),C=g(r,"aws4_request"),p.set(B,C));return g(C,this.stringToSign(),"hex")};d.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),x(this.canonicalString(),"hex")].join("\n")};d.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var r=this.parsedPath.path,B=this.parsedPath.query,C=this.request.headers,z="",F="s3"!==this.service, K="s3"===this.service||this.request.doNotEncodePath,M="s3"===this.service,R="s3"===this.service;C="s3"===this.service&&this.request.signQuery?"UNSIGNED-PAYLOAD":this.isCodeCommitGit?"":C["X-Amz-Content-Sha256"]||C["x-amz-content-sha256"]||x(this.request.body||"","hex");if(B){var L=Object.keys(B).reduce(function(Q,a){if(!a)return Q;Q[t(a)]=Array.isArray(B[a])?R?B[a][0]:B[a]:B[a];return Q},{}),V=[];Object.keys(L).sort().forEach(function(Q){Array.isArray(L[Q])?L[Q].map(t).sort().forEach(function(a){V.push(Q+ "\x3d"+a)}):V.push(Q+"\x3d"+t(L[Q]))});z=V.join("\x26")}"/"!==r&&(F&&(r=r.replace(/\/{2,}/g,"/")),r=r.split("/").reduce(function(Q,a){F&&".."===a?Q.pop():F&&"."===a||(K&&(a=decodeURIComponent(a.replace(/\+/g," "))),Q.push(t(a)));return Q},[]).join("/"),"/"!==r[0]&&(r="/"+r),M&&(r=r.replace(/%2F/g,"/")));return[this.request.method||"GET",r,z,this.canonicalHeaders()+"\n",this.signedHeaders(),C].join("\n")};d.prototype.canonicalHeaders=function(){var r=this.request.headers;return Object.keys(r).filter(function(B){return null== v[B.toLowerCase()]}).sort(function(B,C){return B.toLowerCase()e||2147483648<=e)throw new RangeError('The value "'+e+'" is invalid for option "size"');e=g(e);t&&0!==t.length?"string"===typeof d?e.fill(t,d):e.fill(t):e.fill(0);return e});if(!E.kStringMaxLength)try{E.kStringMaxLength=O.binding("buffer").kStringMaxLength}catch(e){}E.constants||(E.constants={MAX_LENGTH:E.kMaxLength},E.kStringMaxLength&& (E.constants.MAX_STRING_LENGTH=E.kStringMaxLength));S.exports=E}; shadow$provide[249]=function(O,E,S,J){J=E(248).Buffer;O={dsa:{parts:["p","q","g","y"],sizePart:"p"},rsa:{parts:["e","n"],sizePart:"n"},ecdsa:{parts:["curve","Q"],sizePart:"Q"},ed25519:{parts:["A"],sizePart:"A"}};O.curve25519=O.ed25519;E={dsa:{parts:["p","q","g","y","x"]},rsa:{parts:"n e d iqmp p q".split(" ")},ecdsa:{parts:["curve","Q","d"]},ed25519:{parts:["A","k"]}};E.curve25519=E.ed25519;J={nistp256:{size:256,pkcs8oid:"1.2.840.10045.3.1.7",p:J.from("00ffffffff 00000001 00000000 0000000000000000 ffffffff ffffffff ffffffff".replace(/ /g, ""),"hex"),a:J.from("00FFFFFFFF 00000001 00000000 0000000000000000 FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:J.from("5ac635d8 aa3a93e7 b3ebbd55 769886bc651d06b0 cc53b0f6 3bce3c3e 27d2604b".replace(/ /g,""),"hex"),s:J.from("00c49d3608 86e70493 6a6678e1 139d26b7819f7e90".replace(/ /g,""),"hex"),n:J.from("00ffffffff 00000000 ffffffff ffffffffbce6faad a7179e84 f3b9cac2 fc632551".replace(/ /g,""),"hex"),G:J.from("046b17d1f2 e12c4247 f8bce6e5 63a440f277037d81 2deb33a0 f4a13945 d898c2964fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e162bce3357 6b315ece cbb64068 37bf51f5".replace(/ /g, ""),"hex")},nistp384:{size:384,pkcs8oid:"1.3.132.0.34",p:J.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffeffffffff 00000000 00000000 ffffffff".replace(/ /g,""),"hex"),a:J.from("00FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFEFFFFFFFF 00000000 00000000 FFFFFFFC".replace(/ /g,""),"hex"),b:J.from("b3312fa7 e23ee7e4 988e056b e3f82d19181d9c6e fe814112 0314088f 5013875ac656398d 8a2ed19d 2a85c8ed d3ec2aef".replace(/ /g,""),"hex"),s:J.from("00a335926a a319a27a 1d00896a 6773a4827acdac73".replace(/ /g, ""),"hex"),n:J.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff c7634d81 f4372ddf581a0db2 48b0a77a ecec196a ccc52973".replace(/ /g,""),"hex"),G:J.from("04aa87ca22 be8b0537 8eb1c71e f320ad746e1d3b62 8ba79b98 59f741e0 82542a385502f25d bf55296c 3a545e38 72760ab73617de4a 96262c6f 5d9e98bf 9292dc29f8f41dbd 289a147c e9da3113 b5f0b8c00a60b1ce 1d7e819d 7a431d7c 90ea0e5f".replace(/ /g,""),"hex")},nistp521:{size:521,pkcs8oid:"1.3.132.0.35",p:J.from("01ffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffff".replace(/ /g, ""),"hex"),a:J.from("01FFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:J.from("51953eb961 8e1c9a1f 929a21a0 b68540eea2da725b 99b315f3 b8b48991 8ef109e156193951 ec7e937b 1652c0bd 3bb1bf073573df88 3d2c34f1 ef451fd4 6b503f00".replace(/ /g,""),"hex"),s:J.from("00d09e8800 291cb853 96cc6717 393284aaa0da64ba".replace(/ /g,""),"hex"),n:J.from("01ffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffa51868783 bf2f966b 7fcc0148 f709a5d03bb5c9b8 899c47ae bb6fb71e 91386409".replace(/ /g, ""),"hex"),G:J.from("0400c6 858e06b7 0404e9cd 9e3ecb66 2395b4429c648139 053fb521 f828af60 6b4d3dbaa14b5e77 efe75928 fe1dc127 a2ffa8de3348b3c1 856a429b f97e7e31 c2e5bd660118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd998f54449 579b4468 17afbd17 273e662c97ee7299 5ef42640 c550b901 3fad0761353c7086 a272c240 88be9476 9fd16650".replace(/ /g,""),"hex")}};S.exports={info:O,privInfo:E,hashAlgs:{md5:!0,sha1:!0,sha256:!0,sha384:!0,sha512:!0},curves:J}}; shadow$provide[250]=function(O,E,S,J){function g(l,k){Error.captureStackTrace&&Error.captureStackTrace(this,g);this.name="FingerprintFormatError";this.fingerprint=l;this.format=k;this.message="Fingerprint format is not supported, or is invalid: ";void 0!==l&&(this.message+=" fingerprint \x3d "+l);void 0!==k&&(this.message+=" format \x3d "+k)}function x(l){Error.captureStackTrace&&Error.captureStackTrace(this,x);this.name="InvalidAlgorithmError";this.algorithm=l;this.message='Algorithm "'+l+'" is not supported'} function e(l,k,h){Error.captureStackTrace&&Error.captureStackTrace(this,e);this.name="KeyParseError";this.format=k;this.keyName=l;this.innerErr=h;this.message="Failed to parse "+l+" as a valid "+k+" format key: "+h.message}function t(l,k,h){Error.captureStackTrace&&Error.captureStackTrace(this,t);this.name="SignatureParseError";this.type=l;this.format=k;this.innerErr=h;this.message="Failed to parse the given data as a "+l+" signature in "+k+" format: "+h.message}function d(l,k,h){Error.captureStackTrace&& Error.captureStackTrace(this,d);this.name="CertificateParseError";this.format=k;this.certName=l;this.innerErr=h;this.message="Failed to parse "+l+" as a valid "+k+" format certificate: "+h.message}function n(l,k){Error.captureStackTrace&&Error.captureStackTrace(this,n);this.name="KeyEncryptedError";this.format=k;this.keyName=l;this.message="The "+k+" format key "+l+" is encrypted (password-protected), and no passphrase was provided in `options`"}E(247);O=E(33);O.inherits(g,Error);O.inherits(x,Error); O.inherits(e,Error);O.inherits(t,Error);O.inherits(d,Error);O.inherits(n,Error);S.exports={FingerprintFormatError:g,InvalidAlgorithmError:x,KeyParseError:e,SignatureParseError:t,KeyEncryptedError:n,CertificateParseError:d}}; shadow$provide[251]=function(O,E,S,J){S.exports={newInvalidAsn1Error:function(g){var x=Error();x.name="InvalidAsn1Error";x.message=g||"";return x}}}; shadow$provide[252]=function(O,E,S,J){S.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}}; shadow$provide[253]=function(O,E,S,J){function g(n){if(!n||!e.isBuffer(n))throw new TypeError("data must be a node Buffer");this._buf=n;this._size=n.length;this._offset=this._len=0}var x=E(30),e=E(248).Buffer,t=E(252),d=E(251).newInvalidAsn1Error;Object.defineProperty(g.prototype,"length",{enumerable:!0,get:function(){return this._len}});Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){return this._offset}});Object.defineProperty(g.prototype,"remain",{get:function(){return this._size- this._offset}});Object.defineProperty(g.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}});g.prototype.readByte=function(n){if(1>this._size-this._offset)return null;var l=this._buf[this._offset]&255;n||(this._offset+=1);return l};g.prototype.peek=function(){return this.readByte(!0)};g.prototype.readLength=function(n){void 0===n&&(n=this._offset);if(n>=this._size)return null;var l=this._buf[n++]&255;if(null===l)return null;if(128===(l&128)){l&=127;if(0===l)throw d("Indefinite length not supported"); if(4this._size-n)return null;this._offset=n;if(0===this.length)return l?e.alloc(0):"";n=this._buf.slice(this._offset,this._offset+this.length); this._offset+=this.length;return l?n:n.toString("utf8")};g.prototype.readOID=function(n){n||(n=t.OID);n=this.readString(n,!0);if(null===n)return null;for(var l=[],k=0,h=0;h>0);return l.join(".")};g.prototype._readTag=function(n){x.ok(void 0!==n);var l=this.peek();if(null===l)return null;if(l!==n)throw d("Expected 0x"+n.toString(16)+": got 0x"+l.toString(16));n=this.readLength(this._offset+ 1);if(null===n)return null;if(4this._size-n)return null;this._offset=n;n=this._buf[this._offset];for(var k=l=0;k>0};S.exports=g}; shadow$provide[254]=function(O,E,S,J){function g(k,h){e.ok(k);e.equal(typeof k,"object");e.ok(h);e.equal(typeof h,"object");Object.getOwnPropertyNames(k).forEach(function(m){if(!h[m]){var p=Object.getOwnPropertyDescriptor(k,m);Object.defineProperty(h,m,p)}});return h}function x(k){k=g(l,k||{});this._buf=t.alloc(k.size||1024);this._size=this._buf.length;this._offset=0;this._options=k;this._seq=[]}var e=E(30),t=E(248).Buffer,d=E(252),n=E(251).newInvalidAsn1Error,l={size:1024,growthFactor:8};Object.defineProperty(x.prototype, "buffer",{get:function(){if(this._seq.length)throw n(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}});x.prototype.writeByte=function(k){if("number"!==typeof k)throw new TypeError("argument must be a Number");this._ensure(1);this._buf[this._offset++]=k};x.prototype.writeInt=function(k,h){if("number"!==typeof k)throw new TypeError("argument must be a Number");"number"!==typeof h&&(h=d.Integer);for(var m=4;(0===(k&4286578688)||-8388608===(k&4286578688))&&1>>24,k<<=8};x.prototype.writeNull=function(){this.writeByte(d.Null);this.writeByte(0)};x.prototype.writeEnumeration=function(k,h){if("number"!==typeof k)throw new TypeError("argument must be a Number");"number"!==typeof h&&(h=d.Enumeration);return this.writeInt(k,h)};x.prototype.writeBoolean=function(k,h){if("boolean"!== typeof k)throw new TypeError("argument must be a Boolean");"number"!==typeof h&&(h=d.Boolean);this._ensure(3);this._buf[this._offset++]=h;this._buf[this._offset++]=1;this._buf[this._offset++]=k?255:0};x.prototype.writeString=function(k,h){if("string"!==typeof k)throw new TypeError("argument must be a string (was: "+typeof k+")");"number"!==typeof h&&(h=d.OctetString);var m=t.byteLength(k);this.writeByte(h);this.writeLength(m);m&&(this._ensure(m),this._buf.write(k,this._offset),this._offset+=m)};x.prototype.writeBuffer= function(k,h){if("number"!==typeof h)throw new TypeError("tag must be a number");if(!t.isBuffer(k))throw new TypeError("argument must be a buffer");this.writeByte(h);this.writeLength(k.length);this._ensure(k.length);k.copy(this._buf,this._offset,0,k.length);this._offset+=k.length};x.prototype.writeStringArray=function(k){if(!k instanceof Array)throw new TypeError("argument must be an Array[String]");var h=this;k.forEach(function(m){h.writeString(m)})};x.prototype.writeOID=function(k,h){if("string"!== typeof k)throw new TypeError("argument must be a string");"number"!==typeof h&&(h=d.OID);if(!/^([0-9]+\.){3,}[0-9]+$/.test(k))throw Error("argument is not a valid OID string");k=k.split(".");var m=[];m.push(40*parseInt(k[0],10)+parseInt(k[1],10));k.slice(2).forEach(function(v){v=parseInt(v,10);128>v?m.push(v):(16384>v?m.push(v>>>7|128):(2097152>v?m.push(v>>>14|128):(268435456>v?m.push(v>>>21|128):(m.push((v>>>28|128)&255),m.push((v>>>21|128)&255)),m.push((v>>>14|128)&255)),m.push((v>>>7|128)&255)), m.push(v&127))});var p=this;this._ensure(2+m.length);this.writeByte(h);this.writeLength(m.length);m.forEach(function(v){p.writeByte(v)})};x.prototype.writeLength=function(k){if("number"!==typeof k)throw new TypeError("argument must be a Number");this._ensure(4);if(127>=k)this._buf[this._offset++]=k;else if(255>=k)this._buf[this._offset++]=129,this._buf[this._offset++]=k;else if(65535>=k)this._buf[this._offset++]=130,this._buf[this._offset++]=k>>8,this._buf[this._offset++]=k;else if(16777215>=k)this._buf[this._offset++]= 131,this._buf[this._offset++]=k>>16,this._buf[this._offset++]=k>>8,this._buf[this._offset++]=k;else throw n("Length too long (\x3e 4 bytes)");};x.prototype.startSequence=function(k){"number"!==typeof k&&(k=d.Sequence|d.Constructor);this.writeByte(k);this._seq.push(this._offset);this._ensure(3);this._offset+=3};x.prototype.endSequence=function(){var k=this._seq.pop(),h=k+3,m=this._offset-h;if(127>=m)this._shift(h,m,-2),this._buf[k]=m;else if(255>=m)this._shift(h,m,-1),this._buf[k]=129,this._buf[k+ 1]=m;else if(65535>=m)this._buf[k]=130,this._buf[k+1]=m>>8,this._buf[k+2]=m;else if(16777215>=m)this._shift(h,m,1),this._buf[k]=131,this._buf[k+1]=m>>16,this._buf[k+2]=m>>8,this._buf[k+3]=m;else throw n("Sequence too long");};x.prototype._shift=function(k,h,m){e.ok(void 0!==k);e.ok(void 0!==h);e.ok(m);this._buf.copy(this._buf,k+m,k,k+h);this._offset+=m};x.prototype._ensure=function(k){e.ok(k);if(this._size-this._offset>=15;0<=--P;){var ca=this[w]&32767,ha=this[w++]>>15,da=A*ca+ha*U;ca=U*ca+((da&32767)<<15)+D[H]+(G&1073741823);G=(ca>>> 30)+(da>>>15)+A*ha+(G>>>30);D[H++]=ca&1073741823}return G}function d(w,A,D,H,G,P){var U=A&16383;for(A>>=14;0<=--P;){var ca=this[w]&16383,ha=this[w++]>>14,da=A*ca+ha*U;ca=U*ca+((da&16383)<<14)+D[H]+G;G=(ca>>28)+(da>>14)+A*ha;D[H++]=ca&268435455}return G}function n(w,A){w=V[w.charCodeAt(A)];return null==w?-1:w}function l(w){var A=x();A.fromInt(w);return A}function k(w){var A=1,D;0!=(D=w>>>16)&&(w=D,A+=16);0!=(D=w>>8)&&(w=D,A+=8);0!=(D=w>>4)&&(w=D,A+=4);0!=(D=w>>2)&&(w=D,A+=2);0!=w>>1&&(A+=1);return A} function h(w){this.m=w}function m(w){this.m=w;this.mp=w.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<>8&255;f[u++]^=w>>16&255;f[u++]^=w>>24&255;u>=y&&(u-=y)}function M(){} function R(){this.j=this.i=0;this.S=[]}var L;(L="undefined"!==typeof navigator)&&"Microsoft Internet Explorer"==navigator.appName?(g.prototype.am=t,L=30):L&&"Netscape"!=navigator.appName?(g.prototype.am=e,L=26):(g.prototype.am=d,L=28);g.prototype.DB=L;g.prototype.DM=(1<=Q;++Q)V[L++]=Q;L=97;for(Q=10;36>Q;++Q)V[L++]=Q;L=65;for(Q=10;36>Q;++Q)V[L++]=Q;h.prototype.convert=function(w){return 0> w.s||0<=w.compareTo(this.m)?w.mod(this.m):w};h.prototype.revert=function(w){return w};h.prototype.reduce=function(w){w.divRemTo(this.m,null,w)};h.prototype.mulTo=function(w,A,D){w.multiplyTo(A,D);this.reduce(D)};h.prototype.sqrTo=function(w,A){w.squareTo(A);this.reduce(A)};m.prototype.convert=function(w){var A=x();w.abs().dlShiftTo(this.m.t,A);A.divRemTo(this.m,null,A);0>w.s&&0>15)*this.mpl&this.um)<<15)&w.DM;D=A+this.m.t;for(w[D]+=this.m.am(0,H,w,A,0,this.m.t);w[D]>=w.DV;)w[D]-=w.DV,w[++D]++}w.clamp();w.drShiftTo(this.m.t,w);0<=w.compareTo(this.m)&&w.subTo(this.m,w)};m.prototype.mulTo=function(w,A,D){w.multiplyTo(A,D);this.reduce(D)};m.prototype.sqrTo=function(w,A){w.squareTo(A);this.reduce(A)};g.prototype.copyTo=function(w){for(var A= this.t-1;0<=A;--A)w[A]=this[A];w.t=this.t;w.s=this.s};g.prototype.fromInt=function(w){this.t=1;this.s=0>w?-1:0;0w?this[0]=w+this.DV:this.t=0};g.prototype.fromString=function(w,A){if(16==A)A=4;else if(8==A)A=3;else if(256==A)A=8;else if(2==A)A=1;else if(32==A)A=5;else if(4==A)A=2;else{this.fromRadix(w,A);return}this.s=this.t=0;for(var D=w.length,H=!1,G=0;0<=--D;){var P=8==A?w[D]&255:n(w,D);0>P?"-"==w.charAt(D)&&(H=!0):(H=!1,0==G?this[this.t++]=P:G+A>this.DB?(this[this.t-1]|=(P&(1<< this.DB-G)-1)<>this.DB-G):this[this.t-1]|=P<=this.DB&&(G-=this.DB))}8==A&&0!=(w[0]&128)&&(this.s=-1,0>H|P,P=(this[U]&G)<=this.t)A.t=0;else{w%=this.DB;var H=this.DB-w,G=(1<>w;for(var P=D+1;P>w;0>=this.DB;if(w.t>=this.DB;H+=this.s}else{for(H+=this.s;D>=this.DB;H-=w.s}A.s=0>H?-1:0;-1>H?A[D++]=this.DV+H:0=A.DV&&(w[D+A.t]-=A.DV,w[D+A.t+1]=1)}0=H.t)){var G=this.abs();if(G.t>this.F2:0),da=this.FV/ha;ha=(1<U&&g.ZERO.subTo(D,D)}}}};g.prototype.invDigit=function(){if(1>this.t)return 0;var w=this[0];if(0==(w&1))return 0;var A=w&3;A=A*(2-(w&15)*A)&15;A=A*(2-(w&255)*A)&255;A=A*(2-((w&65535)*A&65535))&65535;A=A*(2-w*A%this.DV)%this.DV;return 0w)return g.ONE;var D=x(),H=x(),G=A.convert(this),P=k(w)-1;for(G.copyTo(D);0<=--P;)if(A.sqrTo(D,H),0<(w&1<this.s)return"-"+this.negate().toString(w);if(16==w)w=4;else if(8==w)w=3;else if(2==w)w=1;else if(32==w)w=5;else if(4==w)w=2;else return this.toRadix(w);var A=(1<>U)&&(H=!0,G="0123456789abcdefghijklmnopqrstuvwxyz".charAt(D));0<=P;)U>(U+=this.DB-w)):(D=this[P]>>(U-=w)&A,0>=U&&(U+=this.DB,--P)),0this.s?this.negate():this};g.prototype.compareTo=function(w){var A=this.s-w.s;if(0!=A)return A;var D=this.t;A=D-w.t;if(0!=A)return 0> this.s?-A:A;for(;0<=--D;)if(0!=(A=this[D]-w[D]))return A;return 0};g.prototype.bitLength=function(){return 0>=this.t?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)};g.prototype.mod=function(w){var A=x();this.abs().divRemTo(w,null,A);0>this.s&&0w||A.isEven()?new h(A):new m(A);return this.exp(w,A)};g.ZERO=l(0);g.ONE=l(1);C.prototype.convert=z;C.prototype.revert=z;C.prototype.mulTo=function(w,A,D){w.multiplyTo(A, D)};C.prototype.sqrTo=function(w,A){w.squareTo(A)};F.prototype.convert=function(w){if(0>w.s||w.t>2*this.m.t)return w.mod(this.m);if(0>w.compareTo(this.m))return w;var A=x();w.copyTo(A);this.reduce(A);return A};F.prototype.revert=function(w){return w};F.prototype.reduce=function(w){w.drShiftTo(this.m.t-1,this.r2);w.t>this.m.t+1&&(w.t=this.m.t+1,w.clamp());this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);for(this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);0>w.compareTo(this.r2);)w.dAddOffset(1, this.m.t+1);for(w.subTo(this.r2,w);0<=w.compareTo(this.m);)w.subTo(this.m,w)};F.prototype.mulTo=function(w,A,D){w.multiplyTo(A,D);this.reduce(D)};F.prototype.sqrTo=function(w,A){w.squareTo(A);this.reduce(A)};var a=[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],b=67108864/a[a.length-1];g.prototype.chunkSize=function(w){return Math.floor(Math.LN2*this.DB/Math.log(w))};g.prototype.toRadix=function(w){null== w&&(w=10);if(0==this.signum()||2>w||36ha?"-"==w.charAt(ca)&&0==this.signum()&&(G=!0):(U=A*U+ha,++P>=D&&(this.dMultiply(H), this.dAddOffset(U,0),U=P=0))}0w)this.fromInt(1);else for(this.fromNumber(w,D),this.testBit(w-1)||this.bitwiseTo(g.ONE.shiftLeft(w-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(A);)this.dAddOffset(2,0),this.bitLength()>w&&this.subTo(g.ONE.shiftLeft(w-1),this);else{D=[];var H=w&7;D.length=(w>>3)+1;A.nextBytes(D);D[0]=0>=this.DB;if(w.t>=this.DB;H+=this.s}else{for(H+=this.s;D>=this.DB;H+=w.s}A.s=0>H?-1:0;0H&&(A[D++]=this.DV+H);A.t=D;A.clamp()};g.prototype.dMultiply=function(w){this[this.t]=this.am(0,w-1,this,0,0,this.t);++this.t;this.clamp()};g.prototype.dAddOffset=function(w,A){if(0!=w){for(;this.t<=A;)this[this.t++]=0;for(this[A]+=w;this[A]>=this.DV;)this[A]-=this.DV,++A>=this.t&&(this[this.t++]= 0),++this[A]}};g.prototype.multiplyLowerTo=function(w,A,D){var H=Math.min(this.t+w.t,A);D.s=0;for(D.t=H;0= w)return 0;var A=this.DV%w,D=0>this.s?w-1:0;if(0=D)return!1;var H=A.shiftRight(D);w=w+1>>1;w>a.length&&(w=a.length);for(var G=x(),P=0;Pthis.s){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)<>24};g.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16};g.prototype.signum= function(){return 0>this.s?-1:0>=this.t||1==this.t&&0>=this[0]?0:1};g.prototype.toByteArray=function(){var w=this.t,A=[];A[0]=this.s;var D=this.DB-w*this.DB%8,H,G=0;if(0>D)!=(this.s&this.DM)>>D&&(A[G++]=H|this.s<D?(H=(this[w]&(1<>(D+=this.DB-8)):(H=this[w]>>(D-=8)&255,0>=D&&(D+=this.DB,--w)),0!=(H&128)&&(H|=-256),0==G&&(this.s&128)!=(H&128)&&++G,0this.compareTo(w)?this:w};g.prototype.max=function(w){return 0w?this.rShiftTo(-w,A):this.lShiftTo(w,A);return A};g.prototype.shiftRight=function(w){var A=x();0>w?this.lShiftTo(-w,A):this.rShiftTo(w,A);return A};g.prototype.getLowestSetBit=function(){for(var w=0;w>=16,D+=16);0==(w&255)&&(w>>=8,D+=8);0==(w&15)&&(w>>=4,D+=4);0==(w&3)&&(w>>=2,D+=2);0==(w&1)&&++D;w=D}return A+w}return 0>this.s? this.t*this.DB:-1};g.prototype.bitCount=function(){for(var w=0,A=this.s&this.DM,D=0;D=this.t?0!=this.s:0!=(this[A]&1<=D)return H;var G=18>D?1:48>D?3:144>D? 4:768>D?5:6;A=8>D?new h(A):A.isEven()?new F(A):new m(A);var P=[],U=3,ca=G-1,ha=(1<=ca)var ba=w[da]>>D-ca&ha;else ba=(w[da]&(1<>this.DB+D-ca);for(U=G;0==(ba&1);)ba>>=1,--U;0>(D-=U)&&(D+=this.DB,--da);if(ja)P[ba].copyTo(H),ja=!1;else{for(;1--D&&(D=this.DB-1,--da)}return A.revert(H)};g.prototype.modInverse=function(w){var A=w.isEven();if(this.isEven()&&A||0==w.signum())return g.ZERO;for(var D=w.clone(),H=this.clone(),G=l(1),P=l(0),U=l(0),ca=l(1);0!=D.signum();){for(;D.isEven();)D.rShiftTo(1,D),A?(G.isEven()&&P.isEven()||(G.addTo(this,G),P.subTo(w,P)),G.rShiftTo(1,G)):P.isEven()||P.subTo(w,P),P.rShiftTo(1,P);for(;H.isEven();)H.rShiftTo(1,H),A?(U.isEven()&&ca.isEven()||(U.addTo(this, U),ca.subTo(w,ca)),U.rShiftTo(1,U)):ca.isEven()||ca.subTo(w,ca),ca.rShiftTo(1,ca);0<=D.compareTo(H)?(D.subTo(H,D),A&&G.subTo(U,G),P.subTo(ca,P)):(H.subTo(D,H),A&&U.subTo(G,U),ca.subTo(P,ca))}if(0!=H.compareTo(g.ONE))return g.ZERO;if(0<=ca.compareTo(w))return ca.subtract(w);if(0>ca.signum())ca.addTo(w,ca);else return ca;return 0>ca.signum()?ca.add(w):ca};g.prototype.pow=function(w){return this.exp(w,new C)};g.prototype.gcd=function(w){var A=0>this.s?this.negate():this.clone();w=0>w.s?w.negate():w.clone(); if(0>A.compareTo(w)){var D=A;A=w;w=D}D=A.getLowestSetBit();var H=w.getLowestSetBit();if(0>H)return A;DL;++L)f[u++]=Q[L];else if("Netscape"==navigator.appName&&"5"> navigator.appVersion)for(Q=window.crypto.random(32),L=0;L>>8,f[u++]=L&255;u=0;K((new Date).getTime())}M.prototype.nextBytes=function(w){var A;for(A=0;AA;++A)this.S[A]=A;for(A=D=0;256>A;++A){D=D+this.S[A]+w[A%w.length]&255;var H= this.S[A];this.S[A]=this.S[D];this.S[D]=H}this.j=this.i=0};R.prototype.next=function(){this.i=this.i+1&255;this.j=this.j+this.S[this.i]&255;var w=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=w;return this.S[w+this.S[this.i]&255]};var y=256;g.SecureRandom=M;g.BigInteger=g;"undefined"!==typeof J?J=S.exports=g:(this.BigInteger=g,this.SecureRandom=M)}).call(this)}; shadow$provide[258]=function(O,E,S,J){function g(n,l){this.x=l;this.q=n}function x(n,l,k,h){this.curve=n;this.x=l;this.y=k;this.z=null==h?t.ONE:h;this.zinv=null}function e(n,l,k){this.q=n;this.a=this.fromBigInteger(l);this.b=this.fromBigInteger(k);this.infinity=new x(this,null,null);this.reducer=new d(this.q)}var t=E(257).BigInteger,d=t.prototype.Barrett;g.prototype.equals=function(n){return n==this?!0:this.q.equals(n.q)&&this.x.equals(n.x)};g.prototype.toBigInteger=function(){return this.x};g.prototype.negate= function(){return new g(this.q,this.x.negate().mod(this.q))};g.prototype.add=function(n){return new g(this.q,this.x.add(n.toBigInteger()).mod(this.q))};g.prototype.subtract=function(n){return new g(this.q,this.x.subtract(n.toBigInteger()).mod(this.q))};g.prototype.multiply=function(n){return new g(this.q,this.x.multiply(n.toBigInteger()).mod(this.q))};g.prototype.square=function(){return new g(this.q,this.x.square().mod(this.q))};g.prototype.divide=function(n){return new g(this.q,this.x.multiply(n.toBigInteger().modInverse(this.q)).mod(this.q))}; x.prototype.getX=function(){null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q));var n=this.x.toBigInteger().multiply(this.zinv);this.curve.reduce(n);return this.curve.fromBigInteger(n)};x.prototype.getY=function(){null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q));var n=this.y.toBigInteger().multiply(this.zinv);this.curve.reduce(n);return this.curve.fromBigInteger(n)};x.prototype.equals=function(n){return n==this?!0:this.isInfinity()?n.isInfinity():n.isInfinity()?this.isInfinity(): n.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(t.ZERO)?n.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(n.z)).mod(this.curve.q).equals(t.ZERO):!1};x.prototype.isInfinity=function(){return null==this.x&&null==this.y?!0:this.z.equals(t.ZERO)&&!this.y.toBigInteger().equals(t.ZERO)};x.prototype.negate=function(){return new x(this.curve,this.x,this.y.negate(),this.z)};x.prototype.add=function(n){if(this.isInfinity())return n; if(n.isInfinity())return this;var l=n.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(n.z)).mod(this.curve.q),k=n.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(n.z)).mod(this.curve.q);if(t.ZERO.equals(k))return t.ZERO.equals(l)?this.twice():this.curve.getInfinity();var h=new t("3"),m=this.x.toBigInteger(),p=this.y.toBigInteger();n.x.toBigInteger();n.y.toBigInteger();var v=k.square(),r=v.multiply(k);m=m.multiply(v);v=l.square().multiply(this.z); k=v.subtract(m.shiftLeft(1)).multiply(n.z).subtract(r).multiply(k).mod(this.curve.q);l=m.multiply(h).multiply(l).subtract(p.multiply(r)).subtract(v.multiply(l)).multiply(n.z).add(l.multiply(r)).mod(this.curve.q);n=r.multiply(this.z).multiply(n.z).mod(this.curve.q);return new x(this.curve,this.curve.fromBigInteger(k),this.curve.fromBigInteger(l),n)};x.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var n=new t("3"),l= this.x.toBigInteger(),k=this.y.toBigInteger(),h=k.multiply(this.z),m=h.multiply(k).mod(this.curve.q);k=this.curve.a.toBigInteger();var p=l.square().multiply(n);t.ZERO.equals(k)||(p=p.add(this.z.square().multiply(k)));p=p.mod(this.curve.q);k=p.square().subtract(l.shiftLeft(3).multiply(m)).shiftLeft(1).multiply(h).mod(this.curve.q);n=p.multiply(n).multiply(l).subtract(m.shiftLeft(1)).shiftLeft(2).multiply(m).subtract(p.square().multiply(p)).mod(this.curve.q);h=h.square().multiply(h).shiftLeft(3).mod(this.curve.q); return new x(this.curve,this.curve.fromBigInteger(k),this.curve.fromBigInteger(n),h)};x.prototype.multiply=function(n){if(this.isInfinity())return this;if(0==n.signum())return this.curve.getInfinity();var l=n.multiply(new t("3")),k=this.negate(),h=this,m;for(m=l.bitLength()-2;0k.bitLength()?n.bitLength()-1:k.bitLength()-1;for(var m=this.curve.getInfinity(), p=this.add(l);0<=h;)m=m.twice(),n.testBit(h)?m=k.testBit(h)?m.add(p):m.add(this):k.testBit(h)&&(m=m.add(l)),--h;return m};e.prototype.getQ=function(){return this.q};e.prototype.getA=function(){return this.a};e.prototype.getB=function(){return this.b};e.prototype.equals=function(n){return n==this?!0:this.q.equals(n.q)&&this.a.equals(n.a)&&this.b.equals(n.b)};e.prototype.getInfinity=function(){return this.infinity};e.prototype.fromBigInteger=function(n){return new g(this.q,n)};e.prototype.reduce=function(n){this.reducer.reduce(n)}; e.prototype.encodePointHex=function(n){if(n.isInfinity())return"00";var l=n.getX().toBigInteger().toString(16);n=n.getY().toBigInteger().toString(16);var k=this.getQ().toString(16).length;for(0!=k%2&&k++;l.lengthl+1;){var k=n.shiftRight(l);n=n.subtract(k.shiftLeft(l));this.getR().equals(t.ONE)|| (k=k.multiply(this.getR()));n=k.add(n)}for(;0<=n.compareTo(q);)n=n.subtract(q)}else n=n.mod(q);return n};g.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var n=new g(this.q,this.x.modPow(this.q.shiftRight(2).add(t.ONE),this.q));return n.square().equals(this)?n:null}n=this.q.subtract(t.ONE);var l=n.shiftRight(1);if(!this.x.modPow(l,this.q).equals(t.ONE))return null;var k=n.shiftRight(2).shiftLeft(1).add(t.ONE),h=this.x,m=modDouble(modDouble(h));do{do var p= new t(this.q.bitLength(),new SecureRandom);while(0<=p.compareTo(this.q)||!p.multiply(p).subtract(m).modPow(l,this.q).equals(n));var v=this.lucasSequence(p,h,k);p=v[0];v=v[1];if(this.modMult(v,v).equals(m))return v.testBit(0)&&(v=v.add(q)),v=v.shiftRight(1),new g(q,v)}while(p.equals(t.ONE)||p.equals(n));return null};g.prototype.lucasSequence=function(n,l,k){var h=k.bitLength(),m=k.getLowestSetBit(),p=t.ONE,v=t.TWO,r=n,B=t.ONE,C=t.ONE;for(--h;h>=m+1;--h)B=this.modMult(B,C),k.testBit(h)?(C=this.modMult(B, l),p=this.modMult(p,r),v=this.modReduce(r.multiply(v).subtract(n.multiply(B))),r=this.modReduce(r.multiply(r).subtract(C.shiftLeft(1)))):(C=B,p=this.modReduce(p.multiply(v).subtract(B)),r=this.modReduce(r.multiply(v).subtract(n.multiply(B))),v=this.modReduce(v.multiply(v).subtract(B.shiftLeft(1))));B=this.modMult(B,C);C=this.modMult(B,l);p=this.modReduce(p.multiply(v).subtract(B));v=this.modReduce(r.multiply(v).subtract(n.multiply(B)));B=this.modMult(B,C);for(h=1;h<=m;++h)p=this.modMult(p,v),v=this.modReduce(v.multiply(v).subtract(B.shiftLeft(1))), B=this.modMult(B,B);return[p,v]};J={ECCurveFp:e,ECPointFp:x,ECFieldElementFp:g};S.exports=J}; shadow$provide[259]=function(O,E,S,J){(function(g){function x(W,T,N,aa){W[T]=N>>24&255;W[T+1]=N>>16&255;W[T+2]=N>>8&255;W[T+3]=N&255;W[T+4]=aa>>24&255;W[T+5]=aa>>16&255;W[T+6]=aa>>8&255;W[T+7]=aa&255}function e(W,T,N,aa,ea){var fa,na=0;for(fa=0;fa>>8)-1}function t(W,T,N,aa){return e(W,T,N,aa,16)}function d(W,T,N,aa){return e(W,T,N,aa,32)}function n(W,T,N,aa){var ea=aa[0]&255|(aa[1]&255)<<8|(aa[2]&255)<<16|(aa[3]&255)<<24,fa=N[0]&255|(N[1]&255)<<8|(N[2]& 255)<<16|(N[3]&255)<<24,na=N[4]&255|(N[5]&255)<<8|(N[6]&255)<<16|(N[7]&255)<<24,I=N[8]&255|(N[9]&255)<<8|(N[10]&255)<<16|(N[11]&255)<<24,xa=N[12]&255|(N[13]&255)<<8|(N[14]&255)<<16|(N[15]&255)<<24,ma=aa[4]&255|(aa[5]&255)<<8|(aa[6]&255)<<16|(aa[7]&255)<<24,Fa=T[0]&255|(T[1]&255)<<8|(T[2]&255)<<16|(T[3]&255)<<24,Ga=T[4]&255|(T[5]&255)<<8|(T[6]&255)<<16|(T[7]&255)<<24,Ia=T[8]&255|(T[9]&255)<<8|(T[10]&255)<<16|(T[11]&255)<<24;T=T[12]&255|(T[13]&255)<<8|(T[14]&255)<<16|(T[15]&255)<<24;var Ha=aa[8]&255| (aa[9]&255)<<8|(aa[10]&255)<<16|(aa[11]&255)<<24,Ma=N[16]&255|(N[17]&255)<<8|(N[18]&255)<<16|(N[19]&255)<<24,La=N[20]&255|(N[21]&255)<<8|(N[22]&255)<<16|(N[23]&255)<<24,Na=N[24]&255|(N[25]&255)<<8|(N[26]&255)<<16|(N[27]&255)<<24;N=N[28]&255|(N[29]&255)<<8|(N[30]&255)<<16|(N[31]&255)<<24;aa=aa[12]&255|(aa[13]&255)<<8|(aa[14]&255)<<16|(aa[15]&255)<<24;for(var Ca=ea,Ta=fa,Ua=na,Va=I,ab=xa,bb=ma,db=Fa,Ra=Ga,fb=Ia,eb=T,Za=Ha,cb=Ma,$a=La,Ya=Na,Xa=N,Wa=aa,Ea,gb=0;20>gb;gb+=2)Ea=Ca+$a|0,ab^=Ea<<7|Ea>>>25, Ea=ab+Ca|0,fb^=Ea<<9|Ea>>>23,Ea=fb+ab|0,$a^=Ea<<13|Ea>>>19,Ea=$a+fb|0,Ca^=Ea<<18|Ea>>>14,Ea=bb+Ta|0,eb^=Ea<<7|Ea>>>25,Ea=eb+bb|0,Ya^=Ea<<9|Ea>>>23,Ea=Ya+eb|0,Ta^=Ea<<13|Ea>>>19,Ea=Ta+Ya|0,bb^=Ea<<18|Ea>>>14,Ea=Za+db|0,Xa^=Ea<<7|Ea>>>25,Ea=Xa+Za|0,Ua^=Ea<<9|Ea>>>23,Ea=Ua+Xa|0,db^=Ea<<13|Ea>>>19,Ea=db+Ua|0,Za^=Ea<<18|Ea>>>14,Ea=Wa+cb|0,Va^=Ea<<7|Ea>>>25,Ea=Va+Wa|0,Ra^=Ea<<9|Ea>>>23,Ea=Ra+Va|0,cb^=Ea<<13|Ea>>>19,Ea=cb+Ra|0,Wa^=Ea<<18|Ea>>>14,Ea=Ca+Va|0,Ta^=Ea<<7|Ea>>>25,Ea=Ta+Ca|0,Ua^=Ea<<9|Ea>>>23, Ea=Ua+Ta|0,Va^=Ea<<13|Ea>>>19,Ea=Va+Ua|0,Ca^=Ea<<18|Ea>>>14,Ea=bb+ab|0,db^=Ea<<7|Ea>>>25,Ea=db+bb|0,Ra^=Ea<<9|Ea>>>23,Ea=Ra+db|0,ab^=Ea<<13|Ea>>>19,Ea=ab+Ra|0,bb^=Ea<<18|Ea>>>14,Ea=Za+eb|0,cb^=Ea<<7|Ea>>>25,Ea=cb+Za|0,fb^=Ea<<9|Ea>>>23,Ea=fb+cb|0,eb^=Ea<<13|Ea>>>19,Ea=eb+fb|0,Za^=Ea<<18|Ea>>>14,Ea=Wa+Xa|0,$a^=Ea<<7|Ea>>>25,Ea=$a+Wa|0,Ya^=Ea<<9|Ea>>>23,Ea=Ya+$a|0,Xa^=Ea<<13|Ea>>>19,Ea=Xa+Ya|0,Wa^=Ea<<18|Ea>>>14;Ca=Ca+ea|0;Ta=Ta+fa|0;Ua=Ua+na|0;Va=Va+I|0;ab=ab+xa|0;bb=bb+ma|0;db=db+Fa|0;Ra=Ra+Ga|0; fb=fb+Ia|0;eb=eb+T|0;Za=Za+Ha|0;cb=cb+Ma|0;$a=$a+La|0;Ya=Ya+Na|0;Xa=Xa+N|0;Wa=Wa+aa|0;W[0]=Ca>>>0&255;W[1]=Ca>>>8&255;W[2]=Ca>>>16&255;W[3]=Ca>>>24&255;W[4]=Ta>>>0&255;W[5]=Ta>>>8&255;W[6]=Ta>>>16&255;W[7]=Ta>>>24&255;W[8]=Ua>>>0&255;W[9]=Ua>>>8&255;W[10]=Ua>>>16&255;W[11]=Ua>>>24&255;W[12]=Va>>>0&255;W[13]=Va>>>8&255;W[14]=Va>>>16&255;W[15]=Va>>>24&255;W[16]=ab>>>0&255;W[17]=ab>>>8&255;W[18]=ab>>>16&255;W[19]=ab>>>24&255;W[20]=bb>>>0&255;W[21]=bb>>>8&255;W[22]=bb>>>16&255;W[23]=bb>>>24&255;W[24]= db>>>0&255;W[25]=db>>>8&255;W[26]=db>>>16&255;W[27]=db>>>24&255;W[28]=Ra>>>0&255;W[29]=Ra>>>8&255;W[30]=Ra>>>16&255;W[31]=Ra>>>24&255;W[32]=fb>>>0&255;W[33]=fb>>>8&255;W[34]=fb>>>16&255;W[35]=fb>>>24&255;W[36]=eb>>>0&255;W[37]=eb>>>8&255;W[38]=eb>>>16&255;W[39]=eb>>>24&255;W[40]=Za>>>0&255;W[41]=Za>>>8&255;W[42]=Za>>>16&255;W[43]=Za>>>24&255;W[44]=cb>>>0&255;W[45]=cb>>>8&255;W[46]=cb>>>16&255;W[47]=cb>>>24&255;W[48]=$a>>>0&255;W[49]=$a>>>8&255;W[50]=$a>>>16&255;W[51]=$a>>>24&255;W[52]=Ya>>>0&255; W[53]=Ya>>>8&255;W[54]=Ya>>>16&255;W[55]=Ya>>>24&255;W[56]=Xa>>>0&255;W[57]=Xa>>>8&255;W[58]=Xa>>>16&255;W[59]=Xa>>>24&255;W[60]=Wa>>>0&255;W[61]=Wa>>>8&255;W[62]=Wa>>>16&255;W[63]=Wa>>>24&255}function l(W,T,N,aa){var ea=aa[0]&255|(aa[1]&255)<<8|(aa[2]&255)<<16|(aa[3]&255)<<24,fa=N[0]&255|(N[1]&255)<<8|(N[2]&255)<<16|(N[3]&255)<<24,na=N[4]&255|(N[5]&255)<<8|(N[6]&255)<<16|(N[7]&255)<<24,I=N[8]&255|(N[9]&255)<<8|(N[10]&255)<<16|(N[11]&255)<<24,xa=N[12]&255|(N[13]&255)<<8|(N[14]&255)<<16|(N[15]&255)<< 24,ma=aa[4]&255|(aa[5]&255)<<8|(aa[6]&255)<<16|(aa[7]&255)<<24,Fa=T[0]&255|(T[1]&255)<<8|(T[2]&255)<<16|(T[3]&255)<<24,Ga=T[4]&255|(T[5]&255)<<8|(T[6]&255)<<16|(T[7]&255)<<24,Ia=T[8]&255|(T[9]&255)<<8|(T[10]&255)<<16|(T[11]&255)<<24;T=T[12]&255|(T[13]&255)<<8|(T[14]&255)<<16|(T[15]&255)<<24;var Ha=aa[8]&255|(aa[9]&255)<<8|(aa[10]&255)<<16|(aa[11]&255)<<24,Ma=N[16]&255|(N[17]&255)<<8|(N[18]&255)<<16|(N[19]&255)<<24,La=N[20]&255|(N[21]&255)<<8|(N[22]&255)<<16|(N[23]&255)<<24,Na=N[24]&255|(N[25]&255)<< 8|(N[26]&255)<<16|(N[27]&255)<<24;N=N[28]&255|(N[29]&255)<<8|(N[30]&255)<<16|(N[31]&255)<<24;aa=aa[12]&255|(aa[13]&255)<<8|(aa[14]&255)<<16|(aa[15]&255)<<24;for(var Ca,Ta=0;20>Ta;Ta+=2)Ca=ea+La|0,xa^=Ca<<7|Ca>>>25,Ca=xa+ea|0,Ia^=Ca<<9|Ca>>>23,Ca=Ia+xa|0,La^=Ca<<13|Ca>>>19,Ca=La+Ia|0,ea^=Ca<<18|Ca>>>14,Ca=ma+fa|0,T^=Ca<<7|Ca>>>25,Ca=T+ma|0,Na^=Ca<<9|Ca>>>23,Ca=Na+T|0,fa^=Ca<<13|Ca>>>19,Ca=fa+Na|0,ma^=Ca<<18|Ca>>>14,Ca=Ha+Fa|0,N^=Ca<<7|Ca>>>25,Ca=N+Ha|0,na^=Ca<<9|Ca>>>23,Ca=na+N|0,Fa^=Ca<<13|Ca>>>19, Ca=Fa+na|0,Ha^=Ca<<18|Ca>>>14,Ca=aa+Ma|0,I^=Ca<<7|Ca>>>25,Ca=I+aa|0,Ga^=Ca<<9|Ca>>>23,Ca=Ga+I|0,Ma^=Ca<<13|Ca>>>19,Ca=Ma+Ga|0,aa^=Ca<<18|Ca>>>14,Ca=ea+I|0,fa^=Ca<<7|Ca>>>25,Ca=fa+ea|0,na^=Ca<<9|Ca>>>23,Ca=na+fa|0,I^=Ca<<13|Ca>>>19,Ca=I+na|0,ea^=Ca<<18|Ca>>>14,Ca=ma+xa|0,Fa^=Ca<<7|Ca>>>25,Ca=Fa+ma|0,Ga^=Ca<<9|Ca>>>23,Ca=Ga+Fa|0,xa^=Ca<<13|Ca>>>19,Ca=xa+Ga|0,ma^=Ca<<18|Ca>>>14,Ca=Ha+T|0,Ma^=Ca<<7|Ca>>>25,Ca=Ma+Ha|0,Ia^=Ca<<9|Ca>>>23,Ca=Ia+Ma|0,T^=Ca<<13|Ca>>>19,Ca=T+Ia|0,Ha^=Ca<<18|Ca>>>14,Ca=aa+N| 0,La^=Ca<<7|Ca>>>25,Ca=La+aa|0,Na^=Ca<<9|Ca>>>23,Ca=Na+La|0,N^=Ca<<13|Ca>>>19,Ca=N+Na|0,aa^=Ca<<18|Ca>>>14;W[0]=ea>>>0&255;W[1]=ea>>>8&255;W[2]=ea>>>16&255;W[3]=ea>>>24&255;W[4]=ma>>>0&255;W[5]=ma>>>8&255;W[6]=ma>>>16&255;W[7]=ma>>>24&255;W[8]=Ha>>>0&255;W[9]=Ha>>>8&255;W[10]=Ha>>>16&255;W[11]=Ha>>>24&255;W[12]=aa>>>0&255;W[13]=aa>>>8&255;W[14]=aa>>>16&255;W[15]=aa>>>24&255;W[16]=Fa>>>0&255;W[17]=Fa>>>8&255;W[18]=Fa>>>16&255;W[19]=Fa>>>24&255;W[20]=Ga>>>0&255;W[21]=Ga>>>8&255;W[22]=Ga>>>16&255;W[23]= Ga>>>24&255;W[24]=Ia>>>0&255;W[25]=Ia>>>8&255;W[26]=Ia>>>16&255;W[27]=Ia>>>24&255;W[28]=T>>>0&255;W[29]=T>>>8&255;W[30]=T>>>16&255;W[31]=T>>>24&255}function k(W,T,N,aa,ea,fa,na){var I=new Uint8Array(16),xa=new Uint8Array(64),ma;for(ma=0;16>ma;ma++)I[ma]=0;for(ma=0;8>ma;ma++)I[ma]=fa[ma];for(;64<=ea;){n(xa,I,na,Y);for(ma=0;64>ma;ma++)W[T+ma]=N[aa+ma]^xa[ma];fa=1;for(ma=8;16>ma;ma++)fa=fa+(I[ma]&255)|0,I[ma]=fa&255,fa>>>=8;ea-=64;T+=64;aa+=64}if(0I;I++)fa[I]=0;for(I=0;8>I;I++)fa[I]=aa[I];for(;64<=N;){n(na,fa,ea,Y);for(I=0;64>I;I++)W[T+I]=na[I];aa=1;for(I=8;16>I;I++)aa=aa+(fa[I]&255)|0,fa[I]=aa&255,aa>>>=8;N-=64;T+=64}if(0na;na++)ea[na]=aa[na+16];return h(W,T,N,ea,fa)}function p(W,T,N,aa, ea,fa,na){var I=new Uint8Array(32);l(I,fa,na,Y);na=new Uint8Array(8);for(var xa=0;8>xa;xa++)na[xa]=fa[xa+16];return k(W,T,N,aa,ea,na,I)}function v(W,T,N,aa,ea,fa){fa=new ia(fa);fa.update(N,aa,ea);fa.finish(W,T);return 0}function r(W,T,N,aa,ea,fa){var na=new Uint8Array(16);v(na,0,N,aa,ea,fa);return t(W,T,na,0)}function B(W,T,N,aa,ea){if(32>N)return-1;p(W,0,T,0,N,aa,ea);v(W,16,W,32,N-32,W);for(T=0;16>T;T++)W[T]=0;return 0}function C(W,T,N,aa,ea){var fa=new Uint8Array(32);if(32>N)return-1;m(fa,0,32, aa,ea);if(0!==r(T,16,T,32,N-32,fa))return-1;p(W,0,T,0,N,aa,ea);for(T=0;32>T;T++)W[T]=0;return 0}function z(W,T){var N;for(N=0;16>N;N++)W[N]=T[N]|0}function F(W){var T,N=1;for(T=0;16>T;T++){var aa=W[T]+N+65535;N=Math.floor(aa/65536);W[T]=aa-65536*N}W[0]+=N-1+37*(N-1)}function K(W,T,N){for(var aa=~(N-1),ea=0;16>ea;ea++)N=aa&(W[ea]^T[ea]),W[ea]^=N,T[ea]^=N}function M(W,T){var N,aa=ka(),ea=ka();for(N=0;16>N;N++)ea[N]=T[N];F(ea);F(ea);F(ea);for(T=0;2>T;T++){aa[0]=ea[0]-65517;for(N=1;15>N;N++)aa[N]=ea[N]- 65535-(aa[N-1]>>16&1),aa[N-1]&=65535;aa[15]=ea[15]-32767-(aa[14]>>16&1);N=aa[15]>>16&1;aa[14]&=65535;K(ea,aa,1-N)}for(N=0;16>N;N++)W[2*N]=ea[N]&255,W[2*N+1]=ea[N]>>8}function R(W,T){var N=new Uint8Array(32),aa=new Uint8Array(32);M(N,W);M(aa,T);return d(N,0,aa,0)}function L(W){var T=new Uint8Array(32);M(T,W);return T[0]&1}function V(W,T){var N;for(N=0;16>N;N++)W[N]=T[2*N]+(T[2*N+1]<<8);W[15]&=32767}function Q(W,T,N){for(var aa=0;16>aa;aa++)W[aa]=T[aa]+N[aa]}function a(W,T,N){for(var aa=0;16>aa;aa++)W[aa]= T[aa]-N[aa]}function b(W,T,N){var aa=N[0],ea=N[1],fa=N[2],na=N[3],I=N[4],xa=N[5],ma=N[6],Fa=N[7],Ga=N[8],Ia=N[9],Ha=N[10],Ma=N[11],La=N[12],Na=N[13],Ca=N[14],Ta=N[15];N=T[0];var Ua=N*aa;var Va=N*ea;var ab=N*fa;var bb=N*na;var db=N*I;var Ra=N*xa;var fb=N*ma;var eb=N*Fa;var Za=N*Ga;var cb=N*Ia;var $a=N*Ha;var Ya=N*Ma;var Xa=N*La;var Wa=N*Na;var Ea=N*Ca;var gb=N*Ta;N=T[1];Va+=N*aa;ab+=N*ea;bb+=N*fa;db+=N*na;Ra+=N*I;fb+=N*xa;eb+=N*ma;Za+=N*Fa;cb+=N*Ga;$a+=N*Ia;Ya+=N*Ha;Xa+=N*Ma;Wa+=N*La;Ea+=N*Na;gb+= N*Ca;var jb=N*Ta;N=T[2];ab+=N*aa;bb+=N*ea;db+=N*fa;Ra+=N*na;fb+=N*I;eb+=N*xa;Za+=N*ma;cb+=N*Fa;$a+=N*Ga;Ya+=N*Ia;Xa+=N*Ha;Wa+=N*Ma;Ea+=N*La;gb+=N*Na;jb+=N*Ca;var kb=N*Ta;N=T[3];bb+=N*aa;db+=N*ea;Ra+=N*fa;fb+=N*na;eb+=N*I;Za+=N*xa;cb+=N*ma;$a+=N*Fa;Ya+=N*Ga;Xa+=N*Ia;Wa+=N*Ha;Ea+=N*Ma;gb+=N*La;jb+=N*Na;kb+=N*Ca;var lb=N*Ta;N=T[4];db+=N*aa;Ra+=N*ea;fb+=N*fa;eb+=N*na;Za+=N*I;cb+=N*xa;$a+=N*ma;Ya+=N*Fa;Xa+=N*Ga;Wa+=N*Ia;Ea+=N*Ha;gb+=N*Ma;jb+=N*La;kb+=N*Na;lb+=N*Ca;var Ja=N*Ta;N=T[5];Ra+=N*aa;fb+=N*ea; eb+=N*fa;Za+=N*na;cb+=N*I;$a+=N*xa;Ya+=N*ma;Xa+=N*Fa;Wa+=N*Ga;Ea+=N*Ia;gb+=N*Ha;jb+=N*Ma;kb+=N*La;lb+=N*Na;Ja+=N*Ca;var Ka=N*Ta;N=T[6];fb+=N*aa;eb+=N*ea;Za+=N*fa;cb+=N*na;$a+=N*I;Ya+=N*xa;Xa+=N*ma;Wa+=N*Fa;Ea+=N*Ga;gb+=N*Ia;jb+=N*Ha;kb+=N*Ma;lb+=N*La;Ja+=N*Na;Ka+=N*Ca;var Qa=N*Ta;N=T[7];eb+=N*aa;Za+=N*ea;cb+=N*fa;$a+=N*na;Ya+=N*I;Xa+=N*xa;Wa+=N*ma;Ea+=N*Fa;gb+=N*Ga;jb+=N*Ia;kb+=N*Ha;lb+=N*Ma;Ja+=N*La;Ka+=N*Na;Qa+=N*Ca;var Oa=N*Ta;N=T[8];Za+=N*aa;cb+=N*ea;$a+=N*fa;Ya+=N*na;Xa+=N*I;Wa+=N*xa;Ea+=N*ma; gb+=N*Fa;jb+=N*Ga;kb+=N*Ia;lb+=N*Ha;Ja+=N*Ma;Ka+=N*La;Qa+=N*Na;Oa+=N*Ca;var Pa=N*Ta;N=T[9];cb+=N*aa;$a+=N*ea;Ya+=N*fa;Xa+=N*na;Wa+=N*I;Ea+=N*xa;gb+=N*ma;jb+=N*Fa;kb+=N*Ga;lb+=N*Ia;Ja+=N*Ha;Ka+=N*Ma;Qa+=N*La;Oa+=N*Na;Pa+=N*Ca;var Sa=N*Ta;N=T[10];$a+=N*aa;Ya+=N*ea;Xa+=N*fa;Wa+=N*na;Ea+=N*I;gb+=N*xa;jb+=N*ma;kb+=N*Fa;lb+=N*Ga;Ja+=N*Ia;Ka+=N*Ha;Qa+=N*Ma;Oa+=N*La;Pa+=N*Na;Sa+=N*Ca;var hb=N*Ta;N=T[11];Ya+=N*aa;Xa+=N*ea;Wa+=N*fa;Ea+=N*na;gb+=N*I;jb+=N*xa;kb+=N*ma;lb+=N*Fa;Ja+=N*Ga;Ka+=N*Ia;Qa+=N*Ha;Oa+= N*Ma;Pa+=N*La;Sa+=N*Na;hb+=N*Ca;var ib=N*Ta;N=T[12];Xa+=N*aa;Wa+=N*ea;Ea+=N*fa;gb+=N*na;jb+=N*I;kb+=N*xa;lb+=N*ma;Ja+=N*Fa;Ka+=N*Ga;Qa+=N*Ia;Oa+=N*Ha;Pa+=N*Ma;Sa+=N*La;hb+=N*Na;ib+=N*Ca;var mb=N*Ta;N=T[13];Wa+=N*aa;Ea+=N*ea;gb+=N*fa;jb+=N*na;kb+=N*I;lb+=N*xa;Ja+=N*ma;Ka+=N*Fa;Qa+=N*Ga;Oa+=N*Ia;Pa+=N*Ha;Sa+=N*Ma;hb+=N*La;ib+=N*Na;mb+=N*Ca;var nb=N*Ta;N=T[14];Ea+=N*aa;gb+=N*ea;jb+=N*fa;kb+=N*na;lb+=N*I;Ja+=N*xa;Ka+=N*ma;Qa+=N*Fa;Oa+=N*Ga;Pa+=N*Ia;Sa+=N*Ha;hb+=N*Ma;ib+=N*La;mb+=N*Na;nb+=N*Ca;var ob= N*Ta;N=T[15];gb+=N*aa;Va+=38*(kb+N*fa);ab+=38*(lb+N*na);bb+=38*(Ja+N*I);db+=38*(Ka+N*xa);Ra+=38*(Qa+N*ma);fb+=38*(Oa+N*Fa);eb+=38*(Pa+N*Ga);Za+=38*(Sa+N*Ia);cb+=38*(hb+N*Ha);$a+=38*(ib+N*Ma);Ya+=38*(mb+N*La);Xa+=38*(nb+N*Na);Wa+=38*(ob+N*Ca);Ea+=38*N*Ta;N=Ua+38*(jb+N*ea)+1+65535;T=Math.floor(N/65536);Ua=N-65536*T;N=Va+T+65535;T=Math.floor(N/65536);Va=N-65536*T;N=ab+T+65535;T=Math.floor(N/65536);ab=N-65536*T;N=bb+T+65535;T=Math.floor(N/65536);bb=N-65536*T;N=db+T+65535;T=Math.floor(N/65536);db=N-65536* T;N=Ra+T+65535;T=Math.floor(N/65536);Ra=N-65536*T;N=fb+T+65535;T=Math.floor(N/65536);fb=N-65536*T;N=eb+T+65535;T=Math.floor(N/65536);eb=N-65536*T;N=Za+T+65535;T=Math.floor(N/65536);Za=N-65536*T;N=cb+T+65535;T=Math.floor(N/65536);cb=N-65536*T;N=$a+T+65535;T=Math.floor(N/65536);$a=N-65536*T;N=Ya+T+65535;T=Math.floor(N/65536);Ya=N-65536*T;N=Xa+T+65535;T=Math.floor(N/65536);Xa=N-65536*T;N=Wa+T+65535;T=Math.floor(N/65536);Wa=N-65536*T;N=Ea+T+65535;T=Math.floor(N/65536);Ea=N-65536*T;N=gb+T+65535;T=Math.floor(N/ 65536);gb=N-65536*T;Ua+=T-1+37*(T-1);N=Ua+1+65535;T=Math.floor(N/65536);Ua=N-65536*T;N=Va+T+65535;T=Math.floor(N/65536);Va=N-65536*T;N=ab+T+65535;T=Math.floor(N/65536);ab=N-65536*T;N=bb+T+65535;T=Math.floor(N/65536);bb=N-65536*T;N=db+T+65535;T=Math.floor(N/65536);db=N-65536*T;N=Ra+T+65535;T=Math.floor(N/65536);Ra=N-65536*T;N=fb+T+65535;T=Math.floor(N/65536);fb=N-65536*T;N=eb+T+65535;T=Math.floor(N/65536);eb=N-65536*T;N=Za+T+65535;T=Math.floor(N/65536);Za=N-65536*T;N=cb+T+65535;T=Math.floor(N/65536); cb=N-65536*T;N=$a+T+65535;T=Math.floor(N/65536);$a=N-65536*T;N=Ya+T+65535;T=Math.floor(N/65536);Ya=N-65536*T;N=Xa+T+65535;T=Math.floor(N/65536);Xa=N-65536*T;N=Wa+T+65535;T=Math.floor(N/65536);Wa=N-65536*T;N=Ea+T+65535;T=Math.floor(N/65536);Ea=N-65536*T;N=gb+T+65535;T=Math.floor(N/65536);W[0]=Ua+(T-1+37*(T-1));W[1]=Va;W[2]=ab;W[3]=bb;W[4]=db;W[5]=Ra;W[6]=fb;W[7]=eb;W[8]=Za;W[9]=cb;W[10]=$a;W[11]=Ya;W[12]=Xa;W[13]=Wa;W[14]=Ea;W[15]=N-65536*T}function c(W,T){b(W,T,T)}function f(W,T){var N=ka(),aa;for(aa= 0;16>aa;aa++)N[aa]=T[aa];for(aa=253;0<=aa;aa--)c(N,N),2!==aa&&4!==aa&&b(N,N,T);for(aa=0;16>aa;aa++)W[aa]=N[aa]}function u(W,T,N){var aa=new Uint8Array(32),ea=new Float64Array(80),fa,na=ka(),I=ka(),xa=ka(),ma=ka(),Fa=ka(),Ga=ka();for(fa=0;31>fa;fa++)aa[fa]=T[fa];aa[31]=T[31]&127|64;aa[0]&=248;V(ea,N);for(fa=0;16>fa;fa++)I[fa]=ea[fa],ma[fa]=na[fa]=xa[fa]=0;na[0]=ma[0]=1;for(fa=254;0<=fa;--fa)T=aa[fa>>>3]>>>(fa&7)&1,K(na,I,T),K(xa,ma,T),Q(Fa,na,xa),a(na,na,xa),Q(xa,I,ma),a(I,I,ma),c(ma,Fa),c(Ga,na), b(na,xa,na),b(xa,I,Fa),Q(Fa,na,xa),a(na,na,xa),c(I,na),a(xa,ma,Ga),b(na,xa,Aa),Q(na,na,ma),b(xa,xa,na),b(na,ma,Ga),b(ma,I,ea),c(I,Fa),K(na,I,T),K(xa,ma,T);for(fa=0;16>fa;fa++)ea[fa+16]=na[fa],ea[fa+32]=xa[fa],ea[fa+48]=I[fa],ea[fa+64]=ma[fa];aa=ea.subarray(32);ea=ea.subarray(16);f(aa,aa);b(ea,ea,aa);M(W,ea);return 0}function y(W,T){return u(W,T,wa)}function w(W,T){va(T,32);return y(W,T)}function A(W,T,N){var aa=new Uint8Array(32);u(aa,N,T);l(W,ua,aa,Y)}function D(W,T,N,aa){var ea=new Int32Array(16), fa=new Int32Array(16),na;var I=W[0];var xa=W[1],ma=W[2],Fa=W[3],Ga=W[4],Ia=W[5],Ha=W[6],Ma=W[7];var La=T[0];for(var Na=T[1],Ca=T[2],Ta=T[3],Ua=T[4],Va=T[5],ab=T[6],bb=T[7],db=0;128<=aa;){for(na=0;16>na;na++){var Ra=8*na+db;ea[na]=N[Ra+0]<<24|N[Ra+1]<<16|N[Ra+2]<<8|N[Ra+3];fa[na]=N[Ra+4]<<24|N[Ra+5]<<16|N[Ra+6]<<8|N[Ra+7]}for(na=0;80>na;na++){Ra=I;var fb=xa;var eb=ma;var Za=Fa;var cb=Ga;var $a=Ia;var Ya=Ha;var Xa=La;var Wa=Na;var Ea=Ca;var gb=Ta;var jb=Ua;var kb=Va;var lb=ab;var Ja=Ma;var Ka=bb;var Qa= Ka&65535;var Oa=Ka>>>16;var Pa=Ja&65535;var Sa=Ja>>>16;Ja=(Ga>>>14|Ua<<18)^(Ga>>>18|Ua<<14)^(Ua>>>9|Ga<<23);Ka=(Ua>>>14|Ga<<18)^(Ua>>>18|Ga<<14)^(Ga>>>9|Ua<<23);Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Ja=Ga&Ia^~Ga&Ha;Ka=Ua&Va^~Ua&ab;Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Ja=la[2*na];Ka=la[2*na+1];Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Ja=ea[na%16];Ka=fa[na%16];Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;var hb=Pa&65535|Sa<< 16;var ib=Qa&65535|Oa<<16;Ja=hb;Ka=ib;Qa=Ka&65535;Oa=Ka>>>16;Pa=Ja&65535;Sa=Ja>>>16;Ja=(I>>>28|La<<4)^(La>>>2|I<<30)^(La>>>7|I<<25);Ka=(La>>>28|I<<4)^(I>>>2|La<<30)^(I>>>7|La<<25);Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Ja=I&xa^I&ma^xa&ma;Ka=La&Na^La&Ca^Na&Ca;Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;I=Pa&65535|Sa<<16;La=Qa&65535|Oa<<16;Ja=Za;Ka=gb;Qa=Ka&65535;Oa=Ka>>>16;Pa=Ja&65535;Sa=Ja>>>16;Ja=hb;Ka=ib;Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535; Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;Za=Pa&65535|Sa<<16;gb=Qa&65535|Oa<<16;xa=Ra;ma=fb;Fa=eb;Ga=Za;Ia=cb;Ha=$a;Ma=Ya;Na=Xa;Ca=Wa;Ta=Ea;Ua=gb;Va=jb;ab=kb;bb=lb;if(15===na%16)for(Ra=0;16>Ra;Ra++)Ja=ea[Ra],Ka=fa[Ra],Qa=Ka&65535,Oa=Ka>>>16,Pa=Ja&65535,Sa=Ja>>>16,Ja=ea[(Ra+9)%16],Ka=fa[(Ra+9)%16],Qa+=Ka&65535,Oa+=Ka>>>16,Pa+=Ja&65535,Sa+=Ja>>>16,hb=ea[(Ra+1)%16],ib=fa[(Ra+1)%16],Ja=(hb>>>1|ib<<31)^(hb>>>8|ib<<24)^hb>>>7,Ka=(ib>>>1|hb<<31)^(ib>>>8|hb<<24)^(ib>>>7|hb<<25),Qa+=Ka&65535,Oa+=Ka>>> 16,Pa+=Ja&65535,Sa+=Ja>>>16,hb=ea[(Ra+14)%16],ib=fa[(Ra+14)%16],Ja=(hb>>>19|ib<<13)^(ib>>>29|hb<<3)^hb>>>6,Ka=(ib>>>19|hb<<13)^(hb>>>29|ib<<3)^(ib>>>6|hb<<26),Qa+=Ka&65535,Oa+=Ka>>>16,Pa+=Ja&65535,Sa+=Ja>>>16,Oa+=Qa>>>16,Pa+=Oa>>>16,Sa+=Pa>>>16,ea[Ra]=Pa&65535|Sa<<16,fa[Ra]=Qa&65535|Oa<<16}Ja=I;Ka=La;Qa=Ka&65535;Oa=Ka>>>16;Pa=Ja&65535;Sa=Ja>>>16;Ja=W[0];Ka=T[0];Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;W[0]=I=Pa&65535|Sa<<16;T[0]=La=Qa&65535|Oa<<16;Ja=xa; Ka=Na;Qa=Ka&65535;Oa=Ka>>>16;Pa=Ja&65535;Sa=Ja>>>16;Ja=W[1];Ka=T[1];Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;W[1]=xa=Pa&65535|Sa<<16;T[1]=Na=Qa&65535|Oa<<16;Ja=ma;Ka=Ca;Qa=Ka&65535;Oa=Ka>>>16;Pa=Ja&65535;Sa=Ja>>>16;Ja=W[2];Ka=T[2];Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;W[2]=ma=Pa&65535|Sa<<16;T[2]=Ca=Qa&65535|Oa<<16;Ja=Fa;Ka=Ta;Qa=Ka&65535;Oa=Ka>>>16;Pa=Ja&65535;Sa=Ja>>>16;Ja=W[3];Ka=T[3];Qa+=Ka&65535;Oa+= Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;W[3]=Fa=Pa&65535|Sa<<16;T[3]=Ta=Qa&65535|Oa<<16;Ja=Ga;Ka=Ua;Qa=Ka&65535;Oa=Ka>>>16;Pa=Ja&65535;Sa=Ja>>>16;Ja=W[4];Ka=T[4];Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;W[4]=Ga=Pa&65535|Sa<<16;T[4]=Ua=Qa&65535|Oa<<16;Ja=Ia;Ka=Va;Qa=Ka&65535;Oa=Ka>>>16;Pa=Ja&65535;Sa=Ja>>>16;Ja=W[5];Ka=T[5];Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;W[5]=Ia=Pa&65535| Sa<<16;T[5]=Va=Qa&65535|Oa<<16;Ja=Ha;Ka=ab;Qa=Ka&65535;Oa=Ka>>>16;Pa=Ja&65535;Sa=Ja>>>16;Ja=W[6];Ka=T[6];Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;W[6]=Ha=Pa&65535|Sa<<16;T[6]=ab=Qa&65535|Oa<<16;Ja=Ma;Ka=bb;Qa=Ka&65535;Oa=Ka>>>16;Pa=Ja&65535;Sa=Ja>>>16;Ja=W[7];Ka=T[7];Qa+=Ka&65535;Oa+=Ka>>>16;Pa+=Ja&65535;Sa+=Ja>>>16;Oa+=Qa>>>16;Pa+=Oa>>>16;Sa+=Pa>>>16;W[7]=Ma=Pa&65535|Sa<<16;T[7]=bb=Qa&65535|Oa<<16;db+=128;aa-=128}return aa}function H(W,T,N){var aa=new Int32Array(8), ea=new Int32Array(8),fa=new Uint8Array(256),na,I=N;aa[0]=1779033703;aa[1]=3144134277;aa[2]=1013904242;aa[3]=2773480762;aa[4]=1359893119;aa[5]=2600822924;aa[6]=528734635;aa[7]=1541459225;ea[0]=4089235720;ea[1]=2227873595;ea[2]=4271175723;ea[3]=1595750129;ea[4]=2917565137;ea[5]=725511199;ea[6]=4215389547;ea[7]=327033209;D(aa,ea,T,N);N%=128;for(na=0;naN?1:0);fa[N-9]=0;x(fa,N-8,I/536870912|0,I<<3);D(aa,ea,fa,N);for(na=0;8>na;na++)x(W,8*na,aa[na],ea[na]); return 0}function G(W,T){var N=ka(),aa=ka(),ea=ka(),fa=ka(),na=ka(),I=ka(),xa=ka(),ma=ka(),Fa=ka();a(N,W[1],W[0]);a(Fa,T[1],T[0]);b(N,N,Fa);Q(aa,W[0],W[1]);Q(Fa,T[0],T[1]);b(aa,aa,Fa);b(ea,W[3],T[3]);b(ea,ea,Da);b(fa,W[2],T[2]);Q(fa,fa,fa);a(na,aa,N);a(I,fa,ea);Q(xa,fa,ea);Q(ma,aa,N);b(W[0],na,I);b(W[1],ma,xa);b(W[2],xa,I);b(W[3],na,ma)}function P(W,T){var N=ka(),aa=ka(),ea=ka();f(ea,T[2]);b(N,T[0],ea);b(aa,T[1],ea);M(W,aa);W[31]^=L(N)<<7}function U(W,T,N){var aa;z(W[0],ta);z(W[1],ya);z(W[2],ya); z(W[3],ta);for(aa=255;0<=aa;--aa){var ea=N[aa/8|0]>>(aa&7)&1;var fa,na=W,I=T,xa=ea;for(fa=0;4>fa;fa++)K(na[fa],I[fa],xa);G(T,W);G(W,W);fa=W;na=T;I=ea;for(ea=0;4>ea;ea++)K(fa[ea],na[ea],I)}}function ca(W,T){var N=[ka(),ka(),ka(),ka()];z(N[0],za);z(N[1],ra);z(N[2],ya);b(N[3],za,ra);U(W,N,T)}function ha(W,T,N){var aa=new Uint8Array(64),ea=[ka(),ka(),ka(),ka()];N||va(T,32);H(aa,T,32);aa[0]&=248;aa[31]&=127;aa[31]|=64;ca(ea,aa);P(W,ea);for(N=0;32>N;N++)T[N+32]=W[N];return 0}function da(W,T){var N,aa;for(N= 63;32<=N;--N){var ea=0;var fa=N-32;for(aa=N-12;fa>8,T[fa]-=256*ea;T[fa]+=ea;T[N]=0}for(fa=ea=0;32>fa;fa++)T[fa]+=ea-(T[31]>>4)*qa[fa],ea=T[fa]>>8,T[fa]&=255;for(fa=0;32>fa;fa++)T[fa]-=ea*qa[fa];for(N=0;32>N;N++)T[N+1]+=T[N]>>8,W[N]=T[N]&255}function ja(W){var T=new Float64Array(64),N;for(N=0;64>N;N++)T[N]=W[N];for(N=0;64>N;N++)W[N]=0;da(W,T)}function Z(W,T,N,aa){var ea=new Uint8Array(64),fa=new Uint8Array(64),na=new Uint8Array(64),I,xa=new Float64Array(64), ma=[ka(),ka(),ka(),ka()];H(ea,aa,32);ea[0]&=248;ea[31]&=127;ea[31]|=64;var Fa=N+64;for(I=0;II;I++)W[32+I]=ea[32+I];H(na,W.subarray(32),N+32);ja(na);ca(ma,na);P(W,ma);for(I=32;64>I;I++)W[I]=aa[I];H(fa,W,N+64);ja(fa);for(I=0;64>I;I++)xa[I]=0;for(I=0;32>I;I++)xa[I]=na[I];for(I=0;32>I;I++)for(T=0;32>T;T++)xa[I+T]+=fa[I]*ea[T];da(W.subarray(32),xa);return Fa}function ba(W,T,N,aa){var ea=new Uint8Array(32),fa=new Uint8Array(64),na=[ka(),ka(),ka(),ka()],I=[ka(),ka(),ka(),ka()]; if(64>N)return-1;var xa=ka();var ma=ka(),Fa=ka(),Ga=ka(),Ia=ka(),Ha=ka(),Ma=ka();z(I[2],ya);V(I[1],aa);c(Fa,I[1]);b(Ga,Fa,Ba);a(Fa,Fa,I[2]);Q(Ga,I[2],Ga);c(Ia,Ga);c(Ha,Ia);b(Ma,Ha,Ia);b(xa,Ma,Fa);b(xa,xa,Ga);Ia=ka();for(Ha=0;16>Ha;Ha++)Ia[Ha]=xa[Ha];for(Ha=250;0<=Ha;Ha--)c(Ia,Ia),1!==Ha&&b(Ia,Ia,xa);for(Ha=0;16>Ha;Ha++)xa[Ha]=Ia[Ha];b(xa,xa,Fa);b(xa,xa,Ga);b(xa,xa,Ga);b(I[0],xa,Ga);c(ma,I[0]);b(ma,ma,Ga);R(ma,Fa)&&b(I[0],I[0],pa);c(ma,I[0]);b(ma,ma,Ga);R(ma,Fa)?xa=-1:(L(I[0])===aa[31]>>7&&a(I[0], ta,I[0]),b(I[3],I[0],I[1]),xa=0);if(xa)return-1;for(xa=0;xaxa;xa++)W[xa+32]=aa[xa];H(fa,W,N);ja(fa);U(na,I,fa);ca(I,T.subarray(32));G(na,I);P(ea,na);N-=64;if(d(T,0,ea,0)){for(xa=0;xa>>13|N<<3)&8191;T=W[4]&255|(W[5]&255)<<8;this.r[2]=(N>>>10|T<<6)&7939;N=W[6]&255|(W[7]&255)<<8;this.r[3]=(T>>>7|N<<9)&8191;T=W[8]&255|(W[9]&255)<<8;this.r[4]=(N>>>4|T<<12)&255;this.r[5]=T>>>1&8190;N=W[10]&255|(W[11]&255)<<8;this.r[6]=(T>>>14|N<<2)&8191;T=W[12]&255|(W[13]&255)<<8;this.r[7]=(N>>>11|T<<5)&8065;N=W[14]&255|(W[15]&255)<<8;this.r[8]=(T>>>8|N<<8)&8191;this.r[9]=N>>>5&127;this.pad[0]= W[16]&255|(W[17]&255)<<8;this.pad[1]=W[18]&255|(W[19]&255)<<8;this.pad[2]=W[20]&255|(W[21]&255)<<8;this.pad[3]=W[22]&255|(W[23]&255)<<8;this.pad[4]=W[24]&255|(W[25]&255)<<8;this.pad[5]=W[26]&255|(W[27]&255)<<8;this.pad[6]=W[28]&255|(W[29]&255)<<8;this.pad[7]=W[30]&255|(W[31]&255)<<8};ia.prototype.blocks=function(W,T,N){for(var aa=this.fin?0:2048,ea,fa,na,I,xa,ma,Fa,Ga,Ia,Ha,Ma,La=this.h[0],Na=this.h[1],Ca=this.h[2],Ta=this.h[3],Ua=this.h[4],Va=this.h[5],ab=this.h[6],bb=this.h[7],db=this.h[8],Ra=this.h[9], fb=this.r[0],eb=this.r[1],Za=this.r[2],cb=this.r[3],$a=this.r[4],Ya=this.r[5],Xa=this.r[6],Wa=this.r[7],Ea=this.r[8],gb=this.r[9];16<=N;)ea=W[T+0]&255|(W[T+1]&255)<<8,La+=ea&8191,fa=W[T+2]&255|(W[T+3]&255)<<8,Na+=(ea>>>13|fa<<3)&8191,ea=W[T+4]&255|(W[T+5]&255)<<8,Ca+=(fa>>>10|ea<<6)&8191,fa=W[T+6]&255|(W[T+7]&255)<<8,Ta+=(ea>>>7|fa<<9)&8191,ea=W[T+8]&255|(W[T+9]&255)<<8,Ua+=(fa>>>4|ea<<12)&8191,Va+=ea>>>1&8191,fa=W[T+10]&255|(W[T+11]&255)<<8,ab+=(ea>>>14|fa<<2)&8191,ea=W[T+12]&255|(W[T+13]&255)<< 8,bb+=(fa>>>11|ea<<5)&8191,fa=W[T+14]&255|(W[T+15]&255)<<8,db+=(ea>>>8|fa<<8)&8191,Ra+=fa>>>5|aa,ea=fa=0,ea+=La*fb,ea+=5*Na*gb,ea+=5*Ca*Ea,ea+=5*Ta*Wa,ea+=5*Ua*Xa,fa=ea>>>13,ea&=8191,ea+=5*Va*Ya,ea+=5*ab*$a,ea+=5*bb*cb,ea+=5*db*Za,ea+=5*Ra*eb,fa+=ea>>>13,ea&=8191,na=fa,na+=La*eb,na+=Na*fb,na+=5*Ca*gb,na+=5*Ta*Ea,na+=5*Ua*Wa,fa=na>>>13,na&=8191,na+=5*Va*Xa,na+=5*ab*Ya,na+=5*bb*$a,na+=5*db*cb,na+=5*Ra*Za,fa+=na>>>13,na&=8191,I=fa,I+=La*Za,I+=Na*eb,I+=Ca*fb,I+=5*Ta*gb,I+=5*Ua*Ea,fa=I>>>13,I&=8191,I+= 5*Va*Wa,I+=5*ab*Xa,I+=5*bb*Ya,I+=5*db*$a,I+=5*Ra*cb,fa+=I>>>13,I&=8191,xa=fa,xa+=La*cb,xa+=Na*Za,xa+=Ca*eb,xa+=Ta*fb,xa+=5*Ua*gb,fa=xa>>>13,xa&=8191,xa+=5*Va*Ea,xa+=5*ab*Wa,xa+=5*bb*Xa,xa+=5*db*Ya,xa+=5*Ra*$a,fa+=xa>>>13,xa&=8191,ma=fa,ma+=La*$a,ma+=Na*cb,ma+=Ca*Za,ma+=Ta*eb,ma+=Ua*fb,fa=ma>>>13,ma&=8191,ma+=5*Va*gb,ma+=5*ab*Ea,ma+=5*bb*Wa,ma+=5*db*Xa,ma+=5*Ra*Ya,fa+=ma>>>13,ma&=8191,Fa=fa,Fa+=La*Ya,Fa+=Na*$a,Fa+=Ca*cb,Fa+=Ta*Za,Fa+=Ua*eb,fa=Fa>>>13,Fa&=8191,Fa+=Va*fb,Fa+=5*ab*gb,Fa+=5*bb*Ea,Fa+= 5*db*Wa,Fa+=5*Ra*Xa,fa+=Fa>>>13,Fa&=8191,Ga=fa,Ga+=La*Xa,Ga+=Na*Ya,Ga+=Ca*$a,Ga+=Ta*cb,Ga+=Ua*Za,fa=Ga>>>13,Ga&=8191,Ga+=Va*eb,Ga+=ab*fb,Ga+=5*bb*gb,Ga+=5*db*Ea,Ga+=5*Ra*Wa,fa+=Ga>>>13,Ga&=8191,Ia=fa,Ia+=La*Wa,Ia+=Na*Xa,Ia+=Ca*Ya,Ia+=Ta*$a,Ia+=Ua*cb,fa=Ia>>>13,Ia&=8191,Ia+=Va*Za,Ia+=ab*eb,Ia+=bb*fb,Ia+=5*db*gb,Ia+=5*Ra*Ea,fa+=Ia>>>13,Ia&=8191,Ha=fa,Ha+=La*Ea,Ha+=Na*Wa,Ha+=Ca*Xa,Ha+=Ta*Ya,Ha+=Ua*$a,fa=Ha>>>13,Ha&=8191,Ha+=Va*cb,Ha+=ab*Za,Ha+=bb*eb,Ha+=db*fb,Ha+=5*Ra*gb,fa+=Ha>>>13,Ha&=8191,Ma=fa,Ma+= La*gb,Ma+=Na*Ea,Ma+=Ca*Wa,Ma+=Ta*Xa,Ma+=Ua*Ya,fa=Ma>>>13,Ma&=8191,Ma+=Va*$a,Ma+=ab*cb,Ma+=bb*Za,Ma+=db*eb,Ma+=Ra*fb,fa+=Ma>>>13,Ma&=8191,fa=(fa<<2)+fa|0,fa=fa+ea|0,ea=fa&8191,fa>>>=13,na+=fa,La=ea,Na=na,Ca=I,Ta=xa,Ua=ma,Va=Fa,ab=Ga,bb=Ia,db=Ha,Ra=Ma,T+=16,N-=16;this.h[0]=La;this.h[1]=Na;this.h[2]=Ca;this.h[3]=Ta;this.h[4]=Ua;this.h[5]=Va;this.h[6]=ab;this.h[7]=bb;this.h[8]=db;this.h[9]=Ra};ia.prototype.finish=function(W,T){var N=new Uint16Array(10);if(this.leftover){var aa=this.leftover;for(this.buffer[aa++]= 1;16>aa;aa++)this.buffer[aa]=0;this.fin=1;this.blocks(this.buffer,0,16)}var ea=this.h[1]>>>13;this.h[1]&=8191;for(aa=2;10>aa;aa++)this.h[aa]+=ea,ea=this.h[aa]>>>13,this.h[aa]&=8191;this.h[0]+=5*ea;ea=this.h[0]>>>13;this.h[0]&=8191;this.h[1]+=ea;ea=this.h[1]>>>13;this.h[1]&=8191;this.h[2]+=ea;N[0]=this.h[0]+5;ea=N[0]>>>13;N[0]&=8191;for(aa=1;10>aa;aa++)N[aa]=this.h[aa]+ea,ea=N[aa]>>>13,N[aa]&=8191;N[9]-=8192;ea=(ea^1)-1;for(aa=0;10>aa;aa++)N[aa]&=ea;ea=~ea;for(aa=0;10>aa;aa++)this.h[aa]=this.h[aa]& ea|N[aa];this.h[0]=(this.h[0]|this.h[1]<<13)&65535;this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535;this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535;this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535;this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535;this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535;this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535;this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535;N=this.h[0]+this.pad[0];this.h[0]=N&65535;for(aa=1;8>aa;aa++)N=(this.h[aa]+this.pad[aa]|0)+(N>>>16)|0,this.h[aa]=N&65535; W[T+0]=this.h[0]>>>0&255;W[T+1]=this.h[0]>>>8&255;W[T+2]=this.h[1]>>>0&255;W[T+3]=this.h[1]>>>8&255;W[T+4]=this.h[2]>>>0&255;W[T+5]=this.h[2]>>>8&255;W[T+6]=this.h[3]>>>0&255;W[T+7]=this.h[3]>>>8&255;W[T+8]=this.h[4]>>>0&255;W[T+9]=this.h[4]>>>8&255;W[T+10]=this.h[5]>>>0&255;W[T+11]=this.h[5]>>>8&255;W[T+12]=this.h[6]>>>0&255;W[T+13]=this.h[6]>>>8&255;W[T+14]=this.h[7]>>>0&255;W[T+15]=this.h[7]>>>8&255};ia.prototype.update=function(W,T,N){var aa;if(this.leftover){var ea=16-this.leftover;ea>N&&(ea= N);for(aa=0;aathis.leftover)return;this.blocks(this.buffer,0,16);this.leftover=0}16<=N&&(ea=N-N%16,this.blocks(W,T,ea),T+=ea,N-=ea);if(N){for(aa=0;aaaa.length||0!==C(ea,aa,aa.length,T,N)?!1:ea.subarray(32)};g.secretbox.keyLength=32;g.secretbox.nonceLength=24;g.secretbox.overheadLength= 16;g.scalarMult=function(W,T){oa(W,T);if(32!==W.length)throw Error("bad n size");if(32!==T.length)throw Error("bad p size");var N=new Uint8Array(32);u(N,W,T);return N};g.scalarMult.base=function(W){oa(W);if(32!==W.length)throw Error("bad n size");var T=new Uint8Array(32);y(T,W);return T};g.scalarMult.scalarLength=32;g.scalarMult.groupElementLength=32;g.box=function(W,T,N,aa){N=g.box.before(N,aa);return g.secretbox(W,T,N)};g.box.before=function(W,T){oa(W,T);if(32!==W.length)throw Error("bad public key size"); if(32!==T.length)throw Error("bad secret key size");var N=new Uint8Array(32);A(N,W,T);return N};g.box.after=g.secretbox;g.box.open=function(W,T,N,aa){N=g.box.before(N,aa);return g.secretbox.open(W,T,N)};g.box.open.after=g.secretbox.open;g.box.keyPair=function(){var W=new Uint8Array(32),T=new Uint8Array(32);w(W,T);return{publicKey:W,secretKey:T}};g.box.keyPair.fromSecretKey=function(W){oa(W);if(32!==W.length)throw Error("bad secret key size");var T=new Uint8Array(32);y(T,W);return{publicKey:T,secretKey:new Uint8Array(W)}}; g.box.publicKeyLength=32;g.box.secretKeyLength=32;g.box.sharedKeyLength=32;g.box.nonceLength=24;g.box.overheadLength=g.secretbox.overheadLength;g.sign=function(W,T){oa(W,T);if(64!==T.length)throw Error("bad secret key size");var N=new Uint8Array(64+W.length);Z(N,W,W.length,T);return N};g.sign.open=function(W,T){if(2!==arguments.length)throw Error("nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?");oa(W,T);if(32!==T.length)throw Error("bad public key size");var N= new Uint8Array(W.length),aa=ba(N,W,W.length,T);if(0>aa)return null;aa=new Uint8Array(aa);for(var ea=0;eafa;fa++)aa[fa]= T[fa];for(fa=0;faaa;aa++)N[aa]=W[aa];ha(T,N,!0);return{publicKey:T,secretKey:N}};g.sign.publicKeyLength=32;g.sign.secretKeyLength=64;g.sign.seedLength=32;g.sign.signatureLength=64;g.hash=function(W){oa(W);var T=new Uint8Array(64);H(T,W,W.length);return T};g.hash.hashLength=64;g.verify=function(W,T){oa(W,T);return 0===W.length||0===T.length||W.length!==T.length?!1:0===e(W,0,T,0,W.length)?!0:!1};g.setPRNG=function(W){va=W};(function(){var W="undefined"!==typeof self?self.crypto|| self.msCrypto:null;W&&W.getRandomValues?g.setPRNG(function(T,N){var aa,ea=new Uint8Array(N);for(aa=0;aa=M[1],R+" must be compatible with "+K.name+" klass version "+M[0]+"."+M[1])}}function x(F){for(t.buffer(F);1=K.length){var Q=V+1;M.push(F.slice(R,Q-L));R=Q;L=0}R<=F.length&&M.push(F.slice(R,F.length));return M},addRSAMissing:function(F){t.object(F);g(F,n,[1,1]);var K=new v(F.part.d.data);if(!F.part.dmodp){var M=new v(F.part.p.data);M=K.mod(M.subtract(1));M=e(M);F.part.dmodp={name:"dmodp",data:M};F.parts.push(F.part.dmodp)}F.part.dmodq||(M=new v(F.part.q.data),K=K.mod(M.subtract(1)),M=e(K),F.part.dmodq={name:"dmodq",data:M},F.parts.push(F.part.dmodq))},calculateDSAPublic:function(F,K,M){t.buffer(F); t.buffer(K);t.buffer(M);F=new v(F);K=new v(K);M=new v(M);F=F.modPow(M,K);return e(F)},calculateED25519Public:function(F){t.buffer(F);F=r.sign.keyPair.fromSeed(new Uint8Array(F));return d.from(F.publicKey)},calculateX25519Public:function(F){t.buffer(F);F=r.box.keyPair.fromSeed(new Uint8Array(F));return d.from(F.publicKey)},mpNormalize:x,mpDenormalize:function(F){for(t.buffer(F);1M&&(K++,M=8)}return 8*K+(8-M)-1},assertCompatible:g,isCompatible:function(F,K,M){if(null===F||"object"!==typeof F)return!1;void 0===M&&(M=K.prototype._sshpkApiVersion); if(F instanceof K&&K.prototype._sshpkApiVersion[0]==M[0])return!0;for(var R=Object.getPrototypeOf(F),L=0;R.constructor.name!==K.name;)if(R=Object.getPrototypeOf(R),!R||++L>B)return!1;if(R.constructor.name!==K.name)return!1;R=R._sshpkApiVersion;void 0===R&&(R=K._oldVersionDetect(F));return R[0]!=M[0]||R[1]K;)t.equal(F[0],0),F=F.slice(1);for(;F.length=this._buffer.length};g.prototype.remainder=function(){return this._buffer.slice(this._offset)};g.prototype.skip= function(t){this._offset+=t};g.prototype.expand=function(){this._size*=2;var t=e.alloc(this._size);this._buffer.copy(t,0);this._buffer=t};g.prototype.readPart=function(){return{data:this.readBuffer()}};g.prototype.readBuffer=function(){var t=this._buffer.readUInt32BE(this._offset);this._offset+=4;x.ok(this._offset+t<=this._buffer.length,"length out of bounds at +0x"+this._offset.toString(16)+" (data truncated?)");var d=this._buffer.slice(this._offset,this._offset+t);this._offset+=t;return d};g.prototype.readString= function(){return this.readBuffer().toString()};g.prototype.readCString=function(){for(var t=this._offset;tthis._size;)this.expand();this._buffer.writeUInt32BE(t.length,this._offset);this._offset+=4;t.copy(this._buffer,this._offset);this._offset+=t.length};g.prototype.writeString=function(t){this.writeBuffer(e.from(t,"utf8"))};g.prototype.writeCString=function(t){for(;this._offset+1+t.length> this._size;)this.expand();this._buffer.write(t,this._offset);this._offset+=t.length;this._buffer[this._offset++]=0};g.prototype.writeInt=function(t){for(;this._offset+4>this._size;)this.expand();this._buffer.writeUInt32BE(t,this._offset);this._offset+=4};g.prototype.writeInt64=function(t){x.buffer(t,"value");if(8this._size;)this.expand(); t.copy(this._buffer,this._offset);this._offset+=8};g.prototype.writeChar=function(t){for(;this._offset+1>this._size;)this.expand();this._buffer[this._offset++]=t};g.prototype.writePart=function(t){this.writeBuffer(t.data)};g.prototype.write=function(t){for(;this._offset+t.length>this._size;)this.expand();t.copy(this._buffer,this._offset);this._offset+=t.length}}; shadow$provide[262]=function(O,E,S,J){function g(m){e.object(m,"options");e.arrayOfObject(m.parts,"options.parts");e.string(m.type,"options.type");for(var p={},v=0;v=n?d:g("0"+d,n)}var x=E(191),e=E(257).BigInteger;E(258);var t=E(248).Buffer;J.ECCurves=E(263);J.ECKey=function(d,n,l){var k=d();d=k.getN();var h=Math.floor(d.bitLength()/8);if(n)if(l)d=k.getCurve(),this.P=d.decodePointHex(n.toString("hex"));else{if(n.length!=h)return!1;var m=new e(n.toString("hex"),16)}else n=d.subtract(e.ONE),m=(new e(x.randomBytes(d.bitLength()))).mod(n).add(e.ONE),this.P=k.getG().multiply(m);this.P&&(this.PublicKey= t.from(k.getCurve().encodeCompressedPointHex(this.P),"hex"));m&&(this.PrivateKey=t.from(g(m.toString(16),2*h),"hex"),this.deriveSharedSecret=function(p){if(!p||!p.P)return!1;p=p.P.multiply(m);return t.from(g(p.getX().toBigInteger().toString(16),2*h),"hex")})}}; shadow$provide[265]=function(O,E,S,J){function g(z){h.assertCompatible(z,p,[1,4],"key");this._isPriv=v.isPrivateKey(z,[1,3]);this._algo=z.type;this._curve=z.curve;this._key=z;if("dsa"===z.type){if(!r)throw Error("Due to bugs in the node 0.10 crypto API, node 0.12.x or later is required to use DH");this._dh=n.createDiffieHellman(z.part.p.data,void 0,z.part.g.data,void 0);this._p=z.part.p;this._g=z.part.g;this._isPriv&&this._dh.setPrivateKey(z.part.x.data);this._dh.setPublicKey(z.part.y.data)}else if("ecdsa"=== z.type)r?(this._dh=n.createECDH({nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[z.curve]),"object"!==typeof this._dh||"function"!==typeof this._dh.setPrivateKey?(r=!1,g.call(this,z)):(this._isPriv&&this._dh.setPrivateKey(z.part.d.data),this._dh.setPublicKey(z.part.Q.data))):(this._ecParams=new x(this._curve),this._isPriv&&(this._priv=new t(this._ecParams,z.part.d.data)));else if("curve25519"===z.type)this._isPriv&&(h.assertCompatible(z,v,[1,5],"key"),this._priv=z.part.k.data);else throw Error("DH not supported for "+ z.type+" keys");}function x(z){var F=k.curves[z];d.object(F);var K=new C(F.p),M=new C(F.a),R=new C(F.b);z=new C(F.n);var L=C.ONE;K=new B.ECCurveFp(K,M,R);F=K.decodePointHex(F.G.toString("hex"));this.curve=K;this.g=F;this.n=z;this.h=L}function e(z,F){this._params=z;0===F[0]&&(F=F.slice(1));this._pub=z.getCurve().decodePointHex(F.toString("hex"))}function t(z,F){this._params=z;this._priv=new C(h.mpNormalize(F))}S.exports={DiffieHellman:g,generateECDSA:function(z){var F=[];if(r){var K=n.createECDH({nistp256:"prime256v1", nistp384:"secp384r1",nistp521:"secp521r1"}[z]);K.generateKeys();F.push({name:"curve",data:l.from(z)});F.push({name:"Q",data:K.getPublicKey()});F.push({name:"d",data:K.getPrivateKey()})}else{K=new x(z);var M=K.getN(),R=Math.ceil((M.bitLength()+64)/8);R=new C(n.randomBytes(R));M=M.subtract(C.ONE);M=R.mod(M).add(C.ONE);R=K.getG().multiply(M);M=l.from(M.toByteArray());R=l.from(K.getCurve().encodePointHex(R),"hex");F.push({name:"curve",data:l.from(z)});F.push({name:"Q",data:R});F.push({name:"d",data:M})}return new v({type:"ecdsa", curve:z,parts:F})},generateED25519:function(){var z=m.sign.keyPair(),F=l.from(z.secretKey);z=l.from(z.publicKey);d.strictEqual(F.length,64);d.strictEqual(z.length,32);var K=[];K.push({name:"A",data:z});K.push({name:"k",data:F.slice(0,32)});return new v({type:"ed25519",parts:K})}};var d=E(247),n=E(191),l=E(248).Buffer,k=E(249),h=E(260),m=E(259),p=E(284),v=E(277),r=void 0!==n.createECDH;E(264);var B=E(258),C=E(257).BigInteger;g.prototype.getPublicKey=function(){return this._isPriv?this._key.toPublic(): this._key};g.prototype.getPrivateKey=function(){if(this._isPriv)return this._key};g.prototype.getKey=g.prototype.getPrivateKey;g.prototype._keyCheck=function(z,F){d.object(z,"key");F||h.assertCompatible(z,v,[1,3],"key");h.assertCompatible(z,p,[1,4],"key");if(z.type!==this._algo)throw Error("A "+z.type+" key cannot be used in "+this._algo+" Diffie-Hellman");if(z.curve!==this._curve)throw Error("A key from the "+z.curve+" curve cannot be used with a "+this._curve+" Diffie-Hellman");"dsa"===z.type&& (d.deepEqual(z.part.p,this._p,"DSA key prime does not match"),d.deepEqual(z.part.g,this._g,"DSA key generator does not match"))};g.prototype.setKey=function(z){this._keyCheck(z);if("dsa"===z.type)this._dh.setPrivateKey(z.part.x.data),this._dh.setPublicKey(z.part.y.data);else if("ecdsa"===z.type)r?(this._dh.setPrivateKey(z.part.d.data),this._dh.setPublicKey(z.part.Q.data)):this._priv=new t(this._ecParams,z.part.d.data);else if("curve25519"===z.type){var F=z.part.k;z.part.k||(F=z.part.r);this._priv= F.data;0===this._priv[0]&&(this._priv=this._priv.slice(1));this._priv=this._priv.slice(0,32)}this._key=z;this._isPriv=!0};g.prototype.setPrivateKey=g.prototype.setKey;g.prototype.computeSecret=function(z){this._keyCheck(z,!0);if(!this._isPriv)throw Error("DH exchange has not been initialized with a private key yet");if("dsa"===this._algo)return this._dh.computeSecret(z.part.y.data);if("ecdsa"===this._algo){if(r)return this._dh.computeSecret(z.part.Q.data);z=new e(this._ecParams,z.part.Q.data);return this._priv.deriveSharedSecret(z)}if("curve25519"=== this._algo){for(z=z.part.A.data;0===z[0]&&32h;h++,d++)d>=k&&(d=0),m=m<<8|l[d];return m}function e(l,k,h){var m=new n,p=new Uint32Array(8),v,r=new Uint8Array([79,120,121,99,104,114,111,109,97,116,105,99,66,108,111,119,102,105,115,104,83,119,97,116,68,121,110,97,109,105,116,101]);m.expandstate(k,64,l,64);for(v=0;64>v;v++)m.expand0state(k,64),m.expand0state(l,64);for(v=0;8>v;v++)p[v]=x(r,r.byteLength); for(v=0;64>v;v++)m.enc(p,p.byteLength/8);for(v=0;8>v;v++)h[4*v+3]=p[v]>>>24,h[4*v+2]=p[v]>>>16,h[4*v+1]=p[v]>>>8,h[4*v]=p[v]}var t=E(259).lowlevel.crypto_hash,d=0,n=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703, 2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394, 2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709, 322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241, 3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143, 3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971E4,1235738493, 2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025, 935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187, 70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725, 1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787, 1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854, 3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812, 170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080, 3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404, 4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399, 1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841, 3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304, 2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370, 2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994, 4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409E3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760, 1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352, 3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472, 2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])];this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};n.prototype.encipher=function(l,k){void 0===k&&(k=new Uint8Array(l.buffer),0!==l.byteOffset&&(k=k.subarray(l.byteOffset)));l[0]^=this.P[0]; for(var h=1;16>h;h+=2)l[1]=l[1]^g(this.S,k,0)^this.P[h],l[0]=l[0]^g(this.S,k,4)^this.P[h+1];k=l[0];l[0]=l[1]^this.P[17];l[1]=k};n.prototype.decipher=function(l){var k=new Uint8Array(l.buffer);0!==l.byteOffset&&(k=k.subarray(l.byteOffset));l[0]^=this.P[17];for(var h=16;0m;m++)this.P[m]^= x(l,k);for(m=d=0;18>m;m+=2)this.encipher(h,p),this.P[m]=h[0],this.P[m+1]=h[1];for(m=0;4>m;m++)for(l=0;256>l;l+=2)this.encipher(h,p),this.S[m][l]=h[0],this.S[m][l+1]=h[1]};n.prototype.expandstate=function(l,k,h,m){var p=new Uint32Array(2),v;for(d=v=0;18>v;v++)this.P[v]^=x(h,m);for(d=v=0;18>v;v+=2)p[0]^=x(l,k),p[1]^=x(l,k),this.encipher(p),this.P[v]=p[0],this.P[v+1]=p[1];for(v=0;4>v;v++)for(h=0;256>h;h+=2)p[0]^=x(l,k),p[1]^=x(l,k),this.encipher(p),this.S[v][h]=p[0],this.S[v][h+1]=p[1];d=0};n.prototype.enc= function(l,k){for(var h=0;hr||0===k||0===m||0===v||v>z.byteLength*z.byteLength||1048576>>24;K[m+1]=l>>>16;K[m+2]=l>>>8;K[m+3]=l;t(C,K,m+4);e(B,C,F);for(M=z.byteLength;M--;)z[M]=F[M];for(M=1;M=R)break;p[k]=z[M]}v-=M}return 0}}}; shadow$provide[271]=function(O,E,S,J){S.exports={read:function(v,r){return n.read(v,r)},readSSHPrivate:function(v,r,B){r=new k({buffer:r});var C=r.readCString();g.strictEqual(C,p,"bad magic string");C=r.readString();var z=r.readString(),F=r.readBuffer();if(1!==r.readInt())throw Error("OpenSSH-format key file contains multiple keys: this is unsupported.");var K=r.readBuffer();if("public"===v)return g.ok(r.atEnd(),"excess bytes left after key"),l.read(K);v=r.readBuffer();g.ok(r.atEnd(),"excess bytes left after key"); r=new k({buffer:F});switch(z){case "none":if("none"!==C)throw Error('OpenSSH-format key uses KDF "none" but specifies a cipher other than "none"');break;case "bcrypt":F=r.readBuffer();z=r.readInt();r=e.opensshCipherInfo(C);void 0===m&&(m=E(270));"string"===typeof B.passphrase&&(B.passphrase=x.from(B.passphrase,"utf-8"));if(!x.isBuffer(B.passphrase))throw new h.KeyEncryptedError(B.filename,"OpenSSH");B=new Uint8Array(B.passphrase);F=new Uint8Array(F);C=new Uint8Array(r.keySize+r.blockSize);if(0!== m.pbkdf(B,B.length,F,F.length,C,C.length,z))throw Error("bcrypt_pbkdf function returned failure, parameters invalid");C=x.from(C);B=C.slice(0,r.keySize);C=C.slice(r.keySize,r.keySize+r.blockSize);r=t.createDecipheriv(r.opensslName,B,C);r.setAutoPadding(!1);B=[];r.once("error",function(M){if(-1!==M.toString().indexOf("bad decrypt"))throw Error("Incorrect passphrase supplied, could not decrypt key");throw M;});r.write(v);for(r.end();null!==(v=r.read());)B.push(v);v=x.concat(B);break;default:throw Error('OpenSSH-format key uses unknown KDF "'+ z+'"');}r=new k({buffer:v});v=r.readInt();B=r.readInt();if(v!==B)throw Error("Incorrect passphrase supplied, could not decrypt key");B={};v=l.readInternal(B,"private",r.remainder());r.skip(B.consumed);r=r.readString();v.comment=r;return v},write:function(v,r){var B=d.isPrivateKey(v)?v.toPublic():v;var C="none",z="none",F=x.alloc(0),K={blockSize:8};if(void 0!==r){var M=r.passphrase;"string"===typeof M&&(M=x.from(M,"utf-8"));void 0!==M&&(g.buffer(M,"options.passphrase"),g.optionalString(r.cipher,"options.cipher"), C=r.cipher,void 0===C&&(C="aes128-ctr"),K=e.opensshCipherInfo(C),z="bcrypt")}if(d.isPrivateKey(v)){var R=new k({});r=t.randomBytes(4).readUInt32BE(0);R.writeInt(r);R.writeInt(r);R.write(v.toBuffer("rfc4253"));R.writeString(v.comment||"");for(r=1;0!==R._offset%K.blockSize;)R.writeChar(r++);R=R.toBuffer()}switch(z){case "none":break;case "bcrypt":r=t.randomBytes(16);F=new k({});F.writeBuffer(r);F.writeInt(16);F=F.toBuffer();void 0===m&&(m=E(270));M=new Uint8Array(M);var L=new Uint8Array(r);r=new Uint8Array(K.keySize+ K.blockSize);if(0!==m.pbkdf(M,M.length,L,L.length,r,r.length,16))throw Error("bcrypt_pbkdf function returned failure, parameters invalid");r=x.from(r);M=r.slice(0,K.keySize);r=r.slice(K.keySize,K.keySize+K.blockSize);K=t.createCipheriv(K.opensslName,M,r);K.setAutoPadding(!1);M=[];K.once("error",function(V){throw V;});K.write(R);for(K.end();null!==(R=K.read());)M.push(R);R=x.concat(M);break;default:throw Error("Unsupported kdf "+z);}K=new k({});K.writeCString(p);K.writeString(C);K.writeString(z);K.writeBuffer(F); K.writeInt(1);K.writeBuffer(B.toBuffer("rfc4253"));R&&K.writeBuffer(R);K=K.toBuffer();v=d.isPrivateKey(v)?"OPENSSH PRIVATE KEY":"OPENSSH PUBLIC KEY";B=K.toString("base64");K=x.alloc(B.length+B.length/70+18+16+2*v.length+10);C=0;C+=K.write("-----BEGIN "+v+"-----\n",C);for(z=0;zB.length&&(F=B.length),C+=K.write(B.slice(z,F),C),K[C++]=10,z=F;C+=K.write("-----END "+v+"-----\n",C);return K.slice(0,C)}};var g=E(247);E(256);var x=E(248).Buffer;E(249);var e=E(260),t=E(191);E(284);var d= E(277),n=E(272),l=E(269),k=E(261),h=E(250),m,p="openssh-key-v1"}; shadow$provide[272]=function(O,E,S,J){S.exports={read:function(F,K,M){var R=F;"string"!==typeof F&&(g.buffer(F,"buf"),F=F.toString("ascii"));F=F.trim().split(/[\r\n]+/g);for(var L,V=-1;!L&&VF.length&&(V=F.length);R+=K.write(F.slice(L,V),R);K[R++]=10;L=V}R+=K.write("-----END "+M+"-----\n",R);return K.slice(0,R)}};var g=E(247),x=E(256),e=E(191),t=E(248).Buffer;E(249);var d=E(260),n=E(284),l=E(277),k=E(268),h=E(267),m=E(271),p=E(269),v=E(250),r="1.2.840.113549.1.5.13",B="1.2.840.113549.1.5.12",C={"1.2.840.113549.3.7":"3des-cbc", "2.16.840.1.101.3.4.1.2":"aes128-cbc","2.16.840.1.101.3.4.1.42":"aes256-cbc"};Object.keys(C).forEach(function(F){});var z={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"};Object.keys(z).forEach(function(F){})}; shadow$provide[273]=function(O,E,S,J){S.exports={read:function(l,k){"string"!==typeof l&&(g.buffer(l,"buf"),l=l.toString("ascii"));k=l.trim().replace(/[\\\r]/g,"");var h=k.match(d);h||(h=k.match(n));g.ok(h,"key must match regex");var m=e.algToKeyType(h[1]),p=x.from(h[2],"base64");l={};if(h[4])try{var v=e.read(p)}catch(r){h=k.match(n),g.ok(h,"key must match regex"),p=x.from(h[2],"base64"),v=e.readInternal(l,"public",p)}else v=e.readInternal(l,"public",p);g.strictEqual(m,v.type);if(h[4]&&0r||r>v.length)throw Error("Invalid public-lines count");var K=e.from(v.slice(B,B+r).join(""),"base64"),M=t.algToKeyType(z);K=t.read(K);if(K.type!==M)throw Error("Outer key algorithm mismatch");B+=r;if(v[B]){r=g(v[B++]);x.equal(r[0].toLowerCase(),"private-lines");r=parseInt(r[1],10);if(!isFinite(r)||0>r||r>v.length)throw Error("Invalid private-lines count"); v=e.from(v.slice(B,B+r).join(""),"base64");if("none"!==F&&3===C)throw Error("Encrypted keys arenot supported for PuTTY format version 3");if("aes256-cbc"===F){if(!p.passphrase)throw new h.KeyEncryptedError(p.filename,"PEM");C=e.alloc(16,0);B=l;F=B.createDecipheriv;r=p.passphrase;p=l.createHash("sha1").update(e.concat([e.from([0,0,0,0]),e.from(r)])).digest();r=l.createHash("sha1").update(e.concat([e.from([0,0,0,1]),e.from(r)])).digest();p=e.concat([p,r]).slice(0,32);p=F.call(B,"aes-256-cbc",p,C);p.setAutoPadding(!1); v=e.concat([p.update(v),p.final()])}K=new k(K);if(K.type!==M)throw Error("Outer key algorithm mismatch");M=new n({buffer:v});if("ssh-dss"===z)z=[{name:"x",data:M.readBuffer()}];else if("ssh-rsa"===z)z=[{name:"d",data:M.readBuffer()},{name:"p",data:M.readBuffer()},{name:"q",data:M.readBuffer()},{name:"iqmp",data:M.readBuffer()}];else if(z.match(/^ecdsa-sha2-nistp/))z=[{name:"d",data:M.readBuffer()}];else if("ssh-ed25519"===z)z=[{name:"k",data:M.readBuffer()}];else throw Error("Unsupported PPK key type: "+ z);K=new k({type:K.type,parts:K.parts.concat(z)})}K.comment=m;return K},write:function(m,p){x.object(m);if(!d.isKey(m))throw Error("Must be a public key");p=t.keyTypeToAlg(m);var v=t.write(m);m=m.comment||"";v=v.toString("base64");for(var r=[],B=0;Bm.length||"BEGIN"!==m.slice(v,v+5).toString("ascii")?!1:!0}if(v)return t.read(m,p);v=m;for(var r=0;rL.length||3f%100&&60<=y?y+(u-1):y+u,parseInt(b[2],10)-1,parseInt(b[3],10));c.setUTCHours(parseInt(b[4],10),parseInt(b[5],10));b[6]&&0c.getUTCFullYear()){var f=b.writeString;var u=""+d(c.getUTCFullYear(),4);u+=d(c.getUTCMonth()+1);u+=d(c.getUTCDate());u+=d(c.getUTCHours()); u+=d(c.getUTCMinutes());u+=d(c.getUTCSeconds());f.call(b,u+"Z",m.Ber.GeneralizedTime)}else f=b.writeString,u=""+d(c.getUTCFullYear()%100),u+=d(c.getUTCMonth()+1),u+=d(c.getUTCDate()),u+=d(c.getUTCHours()),u+=d(c.getUTCMinutes()),u+=d(c.getUTCSeconds()),f.call(b,u+"Z",m.Ber.UTCTime)}function t(b,c,f){f.readSequence();c=f.offset+f.length;var u=f.readOID(),y=b.signatures.x509;y.extras.exts||(y.extras.exts=[]);var w;f.peek()===m.Ber.Boolean&&(w=f.readBoolean());switch(u){case K.basicConstraints:f.readSequence(m.Ber.OctetString); f.readSequence();var A=f.offset+f.length;var D=!1;f.peek()===m.Ber.Boolean&&(D=f.readBoolean());void 0===b.purposes&&(b.purposes=[]);!0===D&&b.purposes.push("ca");w={oid:u,critical:w};f.offset=y,"only x.509 versions up to v3 supported")}y={signatures:{}};var w=y.signatures.x509={};w.extras={};h.strictEqual(f.peek(),m.Ber.Integer,"serial is not an Integer");var A=v.mpNormalize(f.readString(m.Ber.Integer, !0));y.serial=A;f.readSequence();var D=f.offset+f.length;A=f.readOID();if(void 0===F[A])throw Error("unknown signature algorithm "+A);f._offset=D;y.issuer=r.parseAsn1(f);f.readSequence();y.validFrom=x(f);y.validUntil=x(f);y.subjects=[r.parseAsn1(f)];f.readSequence();D=f.offset+f.length;y.subjectKey=z.readPkcs8(void 0,"public",f);f._offset=D;f.peek()===g(1)&&(f.readSequence(g(1)),w.extras.issuerUniqueID=b.slice(f.offset,f.offset+f.length),f._offset+=f.length);f.peek()===g(2)&&(f.readSequence(g(2)), w.extras.subjectUniqueID=b.slice(f.offset,f.offset+f.length),f._offset+=f.length);if(f.peek()===g(3)){f.readSequence(g(3));A=f.offset+f.length;for(f.readSequence();f.offsett.length&&(k=t.length);n+=d.write(t.slice(l,k),n);d[n++]=10;l=k}n+=d.write("-----END CERTIFICATE-----\n",n);return d.slice(0,n)}};var x=E(247);E(256);var e=E(248).Buffer;E(249);E(260);E(284);E(277);E(272);E(278);E(262); E(282)}; shadow$provide[282]=function(O,E,S,J){function g(B){x.object(B,"options");x.arrayOfObject(B.subjects,"options.subjects");l.assertCompatible(B.subjects[0],m,[1,0],"options.subjects");l.assertCompatible(B.subjectKey,k,[1,0],"options.subjectKey");l.assertCompatible(B.issuer,m,[1,0],"options.issuer");void 0!==B.issuerKey&&l.assertCompatible(B.issuerKey,k,[1,0],"options.issuerKey");x.object(B.signatures,"options.signatures");x.buffer(B.serial,"options.serial");x.date(B.validFrom,"options.validFrom");x.date(B.validUntil, "optons.validUntil");x.optionalArrayOfString(B.purposes,"options.purposes");this._hashCache={};this.subjects=B.subjects;this.issuer=B.issuer;this.subjectKey=B.subjectKey;this.issuerKey=B.issuerKey;this.signatures=B.signatures;this.serial=B.serial;this.validFrom=B.validFrom;this.validUntil=B.validUntil;this.purposes=B.purposes}S.exports=g;var x=E(247),e=E(248).Buffer,t=E(249),d=E(191),n=E(283);E(262);O=E(250);E(33);var l=E(260),k=E(284),h=E(277),m=E(278),p={};p.openssh=E(279);p.x509=E(280);p.pem=E(281); var v=O.CertificateParseError,r=O.InvalidAlgorithmError;g.formats=p;g.prototype.toBuffer=function(B,C){void 0===B&&(B="x509");x.string(B,"format");x.object(p[B],"formats[format]");x.optionalObject(C,"options");return p[B].write(this,C)};g.prototype.toString=function(B,C){void 0===B&&(B="pem");return this.toBuffer(B,C).toString()};g.prototype.fingerprint=function(B){void 0===B&&(B="sha256");x.string(B,"algorithm");B={type:"certificate",hash:this.hash(B),algorithm:B};return new n(B)};g.prototype.hash= function(B){x.string(B,"algorithm");B=B.toLowerCase();if(void 0===t.hashAlgs[B])throw new r(B);if(this._hashCache[B])return this._hashCache[B];var C=d.createHash(B).update(this.toBuffer("x509")).digest();return this._hashCache[B]=C};g.prototype.isExpired=function(B){void 0===B&&(B=new Date);return!(B.getTime()>=this.validFrom.getTime()&&B.getTime()=z.length){var R=B.filter(function(V){return"host"===V.type}),L=B.filter(function(V){return"user"===V.type});0L.length;)L="0"+L;if(2=this.size?"sha256":384>=this.size?"sha384":"sha512");return C};g.prototype.createVerify=function(C){void 0===C&&(C=this.defaultHashAlgorithm());e.string(C,"hash algorithm");if("ed25519"===this.type&&void 0!== p)return new p.Verifier(this,C);if("curve25519"===this.type)throw Error("Curve25519 keys are not suitable for signing or verification");try{var z=C.toUpperCase();var F=d.createVerify(z)}catch(Q){var K=Q}if(void 0===F||K instanceof Error&&K.message.match(/Unknown message digest/))z="RSA-"+C.toUpperCase(),F=d.createVerify(z);e.ok(F,"failed to create verifier");var M=F.verify.bind(F),R=this.toBuffer("pkcs8"),L=this.curve,V=this;F.verify=function(Q,a){if(l.isSignature(Q,[2,0]))return Q.type!==V.type|| Q.hashAlgorithm&&Q.hashAlgorithm!==C||Q.curve&&"ecdsa"===V.type&&Q.curve!==L?!1:M(R,Q.toBuffer("asn1"));if("string"===typeof Q||x.isBuffer(Q))return M(R,Q,a);if(l.isSignature(Q,[1,0]))throw Error("signature was created by too old a version of sshpk and cannot be verified");throw new TypeError("signature must be a string, Buffer, or Signature object");};return F};g.prototype.createDiffieHellman=function(){if("rsa"===this.type)throw Error("RSA keys do not support Diffie-Hellman");return new k(this)}; g.prototype.createDH=g.prototype.createDiffieHellman;g.parse=function(C,z,F){"string"!==typeof C&&e.buffer(C,"data");void 0===z&&(z="auto");e.string(z,"format");"string"===typeof F&&(F={filename:F});e.optionalObject(F,"options");void 0===F&&(F={});e.optionalString(F.filename,"options.filename");void 0===F.filename&&(F.filename="(unnamed)");e.object(B[z],"formats[format]");try{var K=B[z].read(C,F);K instanceof m&&(K=K.toPublic());K.comment||(K.comment=F.filename);return K}catch(M){if("KeyEncryptedError"=== M.name)throw M;throw new r(F.filename,z,M);}};g.isKey=function(C,z){return h.isCompatible(C,g,z)};g.prototype._sshpkApiVersion=[1,7];g._oldVersionDetect=function(C){e.func(C.toBuffer);e.func(C.fingerprint);return C.createDH?[1,4]:C.defaultHashAlgorithm?[1,3]:C.formats.auto?[1,2]:C.formats.pkcs1?[1,1]:[1,0]}}; shadow$provide[285]=function(O,E,S,J){O=E(284);J=E(283);var g=E(262),x=E(277),e=E(282),t=E(278);E=E(250);S.exports={Key:O,parseKey:O.parse,Fingerprint:J,parseFingerprint:J.parse,Signature:g,parseSignature:g.parse,PrivateKey:x,parsePrivateKey:x.parse,generatePrivateKey:x.generate,Certificate:e,parseCertificate:e.parse,createSelfSignedCertificate:e.createSelfSigned,createCertificate:e.create,Identity:t,identityFromDN:t.parseDN,identityForHost:t.forHost,identityForUser:t.forUser,identityForEmail:t.forEmail, identityFromArray:t.fromArray,FingerprintFormatError:E.FingerprintFormatError,InvalidAlgorithmError:E.InvalidAlgorithmError,KeyParseError:E.KeyParseError,SignatureParseError:E.SignatureParseError,KeyEncryptedError:E.KeyEncryptedError,CertificateParseError:E.CertificateParseError}}; shadow$provide[286]=function(O,E,S,J){function g(l,k){Error.captureStackTrace&&Error.captureStackTrace(this,k||g);this.message=l;this.name=k.name}function x(l){g.call(this,l,x)}var e=E(247),t=E(285);O=E(33);var d={sha1:!0,sha256:!0,sha512:!0},n={rsa:!0,dsa:!0,ecdsa:!0};O.inherits(g,Error);O.inherits(x,g);S.exports={HASH_ALGOS:d,PK_ALGOS:n,HttpSignatureError:g,InvalidAlgorithmError:x,validateAlgorithm:function(l){l=l.toLowerCase().split("-");if(2!==l.length)throw new x(l[0].toUpperCase()+" is not a valid algorithm"); if("hmac"!==l[0]&&!n[l[0]])throw new x(l[0].toUpperCase()+" type keys are not supported");if(!d[l[1]])throw new x(l[1].toUpperCase()+" is not a supported hash algorithm");return l},sshKeyToPEM:function(l){e.string(l,"ssh_key");return t.parseKey(l,"ssh").toString("pem")},fingerprint:function(l){e.string(l,"ssh_key");return t.parseKey(l,"ssh").fingerprint("md5").toString("hex")},pemToRsaSSHKey:function(l,k){e.equal("string",typeof l,"typeof pem");l=t.parseKey(l,"pem");l.comment=k;return l.toString("ssh")}}}; shadow$provide[287]=function(O,E,S,J){function g(m){l.call(this,m,g)}function x(m){l.call(this,m,x)}function e(m){l.call(this,m,e)}function t(m){l.call(this,m,t)}function d(m){l.call(this,m,d)}var n=E(247);O=E(33);E=E(286);var l=E.HttpSignatureError,k=E.InvalidAlgorithmError,h=E.validateAlgorithm;O.inherits(g,l);O.inherits(x,l);O.inherits(e,l);O.inherits(t,l);O.inherits(d,l);S.exports={parseRequest:function(m,p){n.object(m,"request");n.object(m.headers,"request.headers");void 0===p&&(p={});void 0=== p.headers&&(p.headers=[m.headers["x-date"]?"x-date":"date"]);n.object(p,"options");n.arrayOfString(p.headers,"options.headers");n.optionalFinite(p.clockSkew,"options.clockSkew");var v=p.authorizationHeaderName||"authorization";if(!m.headers[v])throw new t("no "+v+" header present in the request");p.clockSkew=p.clockSkew||300;var r=0,B=0,C=0,z="",F="",K={scheme:"",params:{},signingString:""};v=m.headers[v];for(r=0;r=R||97<=R&&122>=R)z+=M;else if("\x3d"===M){if(0===z.length)throw new x("bad param format");C=1}else throw new x("bad param format");break;case 1:if('"'===M)F="",C=2;else throw new x("bad param format");break;case 2:'"'===M?(K.params[z]=F,C=3):F+=M;break;case 3:if(","===M)z="",C=0;else throw new x("bad param format");break;default:throw Error("Invalid substate");}break;default:throw Error("Invalid substate");}}K.params.headers=K.params.headers&& ""!==K.params.headers?K.params.headers.split(" "):m.headers["x-date"]?["x-date"]:["date"];if(!K.scheme||"Signature"!==K.scheme)throw new x('scheme was not "Signature"');if(!K.params.keyId)throw new x("keyId was not specified");if(!K.params.algorithm)throw new x("algorithm was not specified");if(!K.params.signature)throw new x("signature was not specified");K.params.algorithm=K.params.algorithm.toLowerCase();try{h(K.params.algorithm)}catch(L){if(L instanceof k)throw new e(K.params.algorithm+" is not supported"); throw L;}for(r=0;r1E3*p.clockSkew)throw new g("clock skew of "+m/1E3+"s was greater than "+p.clockSkew+"s");p.headers.forEach(function(L){if(0>K.params.headers.indexOf(L.toLowerCase()))throw new t(L+" was not a signed header");});if(p.algorithms&&-1===p.algorithms.indexOf(K.params.algorithm))throw new e(K.params.algorithm+" is not a supported algorithm"); K.algorithm=K.params.algorithm.toUpperCase();K.keyId=K.params.keyId;return K}}}; shadow$provide[288]=function(O,E,S,J){function g(k){var h=RegExp("([^%]*)%(['\\-+ #0]*?)([1-9]\\d*)?(\\.([1-9]\\d*))?[lhjztL]*?([diouxXfFeEgGaAcCsSp%jr])"),m=Array.prototype.slice.call(arguments,1),p,v,r="",B=1;for(n.equal("string",typeof k);null!==(p=h.exec(k));){r+=p[1];k=k.substring(p[0].length);var C=p[2]||"";var z=p[3]||0;var F=p[4]||"";p=p[6];var K=v=!1;var M=" ";if("%"==p)r+="%";else{if(0===m.length)throw Error("too few args to sprintf");var R=m.shift();B++;if(C.match(/[' #]/))throw Error("unsupported flags: "+ C);if(0v.maxItems&&C("There must be a maximum of "+v.maxItems+" in the array")}else(v.properties||v.additionalProperties)&&m.concat(k(p, v.properties,r,v.additionalProperties));v.pattern&&"string"==typeof p&&!p.match(v.pattern)&&C("does not match the regex pattern "+v.pattern);v.maxLength&&"string"==typeof p&&p.length>v.maxLength&&C("may only be "+v.maxLength+" characters long");v.minLength&&"string"==typeof p&&p.lengthp&&C("must have a minimum value of "+v.minimum);"undefined"!==typeof v.maximum&& typeof p==typeof v.maximum&&v.maximum=da||160===da||5760===da||6158===da||8192<=da&&8202>=da|| 8232===da||8233===da||8239===da||8287===da||12288===da||65279===da}function k(da,ja){da=z.validate(ja,da);if(0===da.errors.length)return null;da=da.errors[0];ja=da.property;var Z=da.message.toLowerCase(),ba,X;-1!=(ba=Z.indexOf("the property "))&&-1!=(X=Z.indexOf(" is not defined in the schema and the schema does not allow additional properties"))&&(ba+=13,ja=""===ja?Z.substr(ba,X-ba):ja+"."+Z.substr(ba,X-ba),Z="unsupported property");X=new C.VError('property "%s": %s',ja,Z);X.jsv_details=da;return X} function h(da){r.ok(0<=da[0]&&0<=da[1],"negative numbers not allowed in hrtimes");r.ok(1E9>da[1],"nanoseconds column overflow")}function m(da,ja){h(da);h(ja);r.ok(da[0]>ja[0]||da[0]==ja[0]&&da[1]>=ja[1],"negative differences not allowed");var Z=[da[0]-ja[0],0];da[1]>=ja[1]?Z[1]=da[1]-ja[1]:(Z[0]--,Z[1]=1E9-(ja[1]-da[1]));return Z}function p(da,ja){h(da);h(ja);da[1]+=ja[1];1E9<=da[1]&&(da[0]++,da[1]-=1E9);da[0]+=ja[0];return da}function v(da,ja,Z){var ba;var X={};if(Z)for(ba in Z)X[ba]=Z[ba];if(da)for(ba in da)X[ba]= da[ba];if(ja)for(ba in ja)X[ba]=ja[ba];return X}var r=E(247);E(33);var B=E(288),C=E(289),z=E(290);J.deepCopy=g;J.deepEqual=x;J.isEmpty=function(da){for(var ja in da)return!1;return!0};J.hasKey=e;J.forEachKey=function(da,ja){for(var Z in da)e(da,Z)&&ja(Z,da[Z])};J.pluck=function(da,ja){r.equal(typeof ja,"string");return t(da,ja)};J.flattenObject=n;J.flattenIter=function(da,ja,Z){d(da,ja,[],Z)};J.validateJsonObject=k;J.validateJsonObjectJS=k;J.randElt=function(da){r.ok(Array.isArray(da)&&0=ba.base,"options.base \x3c\x3d 36"),r.bool(ba.allowSign,"options.allowSign"),r.bool(ba.allowPrefix,"options.allowPrefix"),r.bool(ba.allowTrailing,"options.allowTrailing"),r.bool(ba.allowImprecise, "options.allowImprecise"),r.bool(ba.trimWhitespace,"options.trimWhitespace"),r.bool(ba.leadingZeroIsOctal,"options.leadingZeroIsOctal"),ba.leadingZeroIsOctal&&r.ok(!Z,'"base" and "leadingZeroIsOctal" are mutually exclusive'));var X=-1;var oa=ba.base,sa=1,ka=ja=0,va=da.length;if(ba.trimWhitespace)for(;ka=V&&X<=Q?X-U:X>=a&&X<=y?X-ca:X>=w&&X<=P?X-ha:-1,-1!==X&&XM||oathis.rs_headers.length)throw Error("At least one header must be signed");if(this.rs_signFunc){var z=this.rs_lines.join("\n"),F=this;this.rs_signFunc(z,function(R,L){if(R)C(R);else{try{d.object(L,"signature"),d.string(L.keyId,"signature.keyId"),d.string(L.algorithm,"signature.algorithm"),d.string(L.signature,"signature.signature"),K=B(L.algorithm),M=h('Signature keyId\x3d"%s",algorithm\x3d"%s",headers\x3d"%s",signature\x3d"%s"',L.keyId,L.algorithm,F.rs_headers.join(" "), L.signature)}catch(V){C(V);return}C(null,M)}})}else{try{z=this.rs_signer.sign()}catch(R){C(R);return}var K=(this.rs_alg[0]||this.rs_key.type)+"-"+z.hashAlgorithm;z=z.toString();var M=h('Signature keyId\x3d"%s",algorithm\x3d"%s",headers\x3d"%s",signature\x3d"%s"',this.rs_keyId,K,this.rs_headers.join(" "),z);C(null,M)}};S.exports={isSigner:function(C){return"object"===typeof C&&C instanceof e?!0:!1},createSigner:function(C){return new e(C)},signRequest:function(C,z){d.object(C,"request");d.object(z, "options");d.optionalString(z.algorithm,"options.algorithm");d.string(z.keyId,"options.keyId");d.optionalArrayOfString(z.headers,"options.headers");d.optionalString(z.httpVersion,"options.httpVersion");C.getHeader("Date")||C.setHeader("Date",k.rfc1123(new Date));z.headers||(z.headers=["date"]);z.httpVersion||(z.httpVersion="1.1");var F=[];z.algorithm&&(z.algorithm=z.algorithm.toLowerCase(),F=B(z.algorithm));var K,M="";for(K=0;Kr?[]:p.slice(v,r-v+1)}d=J.resolve(d).substr(1);n=J.resolve(n).substr(1);d=l(d.split("/"));n=l(n.split("/"));for(var k=Math.min(d.length,n.length),h=k,m=0;mn&&(n=d.length+n);return d.substr(n,l)}}; shadow$provide[298]=function(O,E,S,J){function g(n){if(!n||"string"!==typeof n)return!1;var l=(n=t.exec(n))&&x[n[1].toLowerCase()];return l&&l.charset?l.charset:n&&d.test(n[1])?"UTF-8":!1}var x=E(296),e=E(297).extname,t=/^\s*([^;\s]*)(?:;|\s|$)/,d=/^text\//i;J.charset=g;J.charsets={lookup:g};J.contentType=function(n){if(!n||"string"!==typeof n)return!1;n=-1===n.indexOf("/")?J.lookup(n):n;if(!n)return!1;if(-1===n.indexOf("charset")){var l=J.charset(n);l&&(n+="; charset\x3d"+l.toLowerCase())}return n}; J.extension=function(n){return n&&"string"===typeof n?(n=(n=t.exec(n))&&J.extensions[n[1].toLowerCase()])&&n.length?n[0]:!1:!1};J.extensions=Object.create(null);J.lookup=function(n){return n&&"string"===typeof n?(n=e("x."+n).toLowerCase().substr(1))?J.types[n]||!1:!1:!1};J.types=Object.create(null);(function(n,l){var k=["nginx","apache",void 0,"iana"];Object.keys(x).forEach(function(h){var m=x[h],p=m.extensions;if(p&&p.length){n[h]=p;for(var v=0;vC||B===C&&"application/"===l[r].substr(0,12)))continue}l[r]=h}}})})(J.extensions,J.types)}; shadow$provide[299]=function(O,E,S,J){function g(x){this.dict=x||{}}g.prototype.set=function(x,e,t){if("object"===typeof x)for(var d in x)this.set(d,x[d],e);else return"undefined"===typeof t&&(t=!0),d=this.has(x),!t&&d?this.dict[d]=this.dict[d]+","+e:this.dict[d||x]=e,d};g.prototype.has=function(x){var e=Object.keys(this.dict);x=x.toLowerCase();for(var t=0;td;++d)t.push("%"+((16>d?"0":"")+d.toString(16)).toUpperCase());return t}(),e=function(t,d){d=d&&d.plainObjects?Object.create(null):{};for(var n=0;n=l||65<=l&&90>=l||97<=l&&122>=l?d+=t.charAt(n):128>l?d+=x[l]:2048>l?d+=x[192|l>>6]+x[128|l&63]:55296>l||57344<=l?d+=x[224|l>>12]+x[128|l>>6&63]+x[128|l&63]:(n+=1,l=65536+((l&1023)<<10|t.charCodeAt(n)&1023),d+=x[240|l>>18]+x[128|l>>12&63]+x[128|l>>6&63]+x[128|l&63])}return d},isBuffer:function(t){return null===t||"undefined"===typeof t?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"=== Object.prototype.toString.call(t)},merge:function k(d,n,l){if(!n)return d;if("object"!==typeof n){if(Array.isArray(d))d.push(n);else if(d&&"object"===typeof d){if(l&&(l.plainObjects||l.allowPrototypes)||!g.call(Object.prototype,n))d[n]=!0}else return[d,n];return d}if(!d||"object"!==typeof d)return[d].concat(n);var h=d;Array.isArray(d)&&!Array.isArray(n)&&(h=e(d,l));return Array.isArray(d)&&Array.isArray(n)?(n.forEach(function(m,p){if(g.call(d,p)){var v=d[p];v&&"object"===typeof v&&m&&"object"===typeof m? d[p]=k(v,m,l):d.push(m)}else d[p]=m}),d):Object.keys(n).reduce(function(m,p){var v=n[p];g.call(m,p)?m[p]=k(m[p],v,l):m[p]=v;return m},h)}}}; shadow$provide[306]=function(O,E,S,J){var g=String.prototype.replace,x=/%20/g;S.exports={"default":"RFC3986",formatters:{RFC1738:function(e){return g.call(e,x,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:"RFC3986"}}; shadow$provide[307]=function(O,E,S,J){var g=E(305),x=E(306),e={brackets:function(p){return p+"[]"},indices:function(p,v){return p+"["+v+"]"},repeat:function(p){return p}},t=Array.isArray,d=Array.prototype.push,n=function(p,v){d.apply(p,t(v)?v:[v])},l=Date.prototype.toISOString,k=g.encode,h=function(p){return l.call(p)},m=function a(v,r,B,C,z,F,K,M,R,L,V,Q){"function"===typeof K?v=K(r,v):v instanceof Date&&(v=L(v));if(null===v){if(C)return F&&!Q?F(r,k):r;v=""}if("string"===typeof v||"number"===typeof v|| "boolean"===typeof v||g.isBuffer(v))return F?(r=Q?r:F(r,k),[V(r)+"\x3d"+V(F(v,k))]):[V(r)+"\x3d"+V(String(v))];var b=[];if("undefined"===typeof v)return b;if(t(K))var c=K;else c=Object.keys(v),c=M?c.sort(M):c;for(var f=0;f=W&&laY?"%0"+Y.toString(16).toUpperCase():128>Y?"%"+Y.toString(16).toUpperCase():2048>Y?"%"+(Y>>6|192).toString(16).toUpperCase()+"%"+(Y&63|128).toString(16).toUpperCase():"%"+(Y>>12|224).toString(16).toUpperCase()+"%"+(Y>>6&63|128).toString(16).toUpperCase()+"%"+(Y&63|128).toString(16).toUpperCase()}function p(Y){for(var ia="",la=0,qa=Y.length;la< qa;){var W=parseInt(Y.substr(la+1,2),16);if(128>W)ia+=String.fromCharCode(W),la+=3;else if(194<=W&&224>W){if(6<=qa-la){var T=parseInt(Y.substr(la+4,2),16);ia+=String.fromCharCode((W&31)<<6|T&63)}else ia+=Y.substr(la,6);la+=6}else if(224<=W){if(9<=qa-la){T=parseInt(Y.substr(la+4,2),16);var N=parseInt(Y.substr(la+7,2),16);ia+=String.fromCharCode((W&15)<<12|(T&63)<<6|N&63)}else ia+=Y.substr(la,9);la+=9}else ia+=Y.substr(la,3),la+=3}return ia}function v(Y,ia){function la(qa){var W=p(qa);return W.match(ia.UNRESERVED)? W:qa}Y.scheme&&(Y.scheme=String(Y.scheme).replace(ia.PCT_ENCODED,la).toLowerCase().replace(ia.NOT_SCHEME,""));void 0!==Y.userinfo&&(Y.userinfo=String(Y.userinfo).replace(ia.PCT_ENCODED,la).replace(ia.NOT_USERINFO,m).replace(ia.PCT_ENCODED,d));void 0!==Y.host&&(Y.host=String(Y.host).replace(ia.PCT_ENCODED,la).toLowerCase().replace(ia.NOT_HOST,m).replace(ia.PCT_ENCODED,d));void 0!==Y.path&&(Y.path=String(Y.path).replace(ia.PCT_ENCODED,la).replace(Y.scheme?ia.NOT_PATH:ia.NOT_PATH_NOSCHEME,m).replace(ia.PCT_ENCODED, d));void 0!==Y.query&&(Y.query=String(Y.query).replace(ia.PCT_ENCODED,la).replace(ia.NOT_QUERY,m).replace(ia.PCT_ENCODED,d));void 0!==Y.fragment&&(Y.fragment=String(Y.fragment).replace(ia.PCT_ENCODED,la).replace(ia.NOT_FRAGMENT,m).replace(ia.PCT_ENCODED,d));return Y}function r(Y){return Y.replace(/^0*(.*)/,"$1")||"0"}function B(Y,ia){ia=Y.match(ia.IPV4ADDRESS)||[];return(ia=c(ia,2)[1])?ia.split(".").map(r).join("."):Y}function C(Y,ia){var la=Y.match(ia.IPV6ADDRESS)||[];la=c(la,3);var qa=la[1];la= la[2];if(qa){Y=qa.toLowerCase().split("::").reverse();qa=c(Y,2);Y=qa[0];qa=(qa=qa[1])?qa.split(":").map(r):[];var W=Y.split(":").map(r),T=ia.IPV4ADDRESS.test(W[W.length-1]),N=T?7:8,aa=W.length-N;Y=Array(N);for(var ea=0;ea>1;for(Y+=A(Y/ia);455N&&(N=0);for(var aa=0;aa=la&&l("invalid-input");var na=Y.charCodeAt(N++);na=10>na-48?na-22:26>na-65?na-65:26>na-97?na-97:36;(36<=na||na>A((2147483647-qa)/ea))&&l("overflow");qa+=na*ea;var I=fa<=T?1:fa>=T+26?26:fa-T;if(naA(2147483647/na)&&l("overflow");ea*=na}ea=ia.length+1;T= H(qa-aa,ea,0==aa);A(qa/ea)>2147483647-W&&l("overflow");W+=A(qa/ea);qa%=ea;ia.splice(qa++,0,W)}return String.fromCodePoint.apply(String,ia)},P=function(Y){var ia=[];Y=h(Y);var la=Y.length,qa=128,W=0,T=72,N=!0,aa=!1,ea=void 0;try{for(var fa=Y[Symbol.iterator](),na;!(N=(na=fa.next()).done);N=!0){var I=na.value;128>I&&ia.push(D(I))}}catch(Va){aa=!0,ea=Va}finally{try{!N&&fa.return&&fa.return()}finally{if(aa)throw ea;}}for((aa=N=ia.length)&&ia.push("-");aa=qa&&FaA((2147483647-W)/ea)&&l("overflow");W+=(fa-qa)*ea;qa=fa;fa=!0;na=!1;I=void 0;try{for(var Ga=Y[Symbol.iterator](),Ia;!(fa=(Ia=Ga.next()).done);fa=!0){var Ha=Ia.value;Ha=T+26?26:La-T;if(MaNa)-0));Ma=A(Ca/Ta)}ia.push(D(Ma+22+75*(26>Ma)-0));T=H(W,ea,aa==N);W=0;++aa}}}catch(Va){na=!0,I=Va}finally{try{!fa&&Ga.return&&Ga.return()}finally{if(na)throw I;}}++W;++qa}return ia.join("")},U={version:"2.1.0",ucs2:{decode:h,encode:function(Y){var ia=String.fromCodePoint,la=ia.apply,qa=String;if(Array.isArray(Y)){for(var W=0,T=Array(Y.length);W=d&&t=C)throw Error("Cannot access property/index "+B+" levels up, current level is "+C);return z[C-B]}if(B>C)throw Error("Cannot access data "+B+" levels up, current level is "+C);C="data"+(C-B||"");if(!F)return C}z=C;F=F.split("/");for(B=0;B=M&&1<=K&&K<=(2!=M||0!==F%4||0===F%100&&0!==F%400?l[M]:29)}function e(F,K){var M=F.match(k);if(!M)return!1;F=M[1];var R=M[2],L=M[3];M=M[5];return(23>=F&&59>=R&&59>=L||23==F&&59==R&&60==L)&&(!K||M)}function t(F){if(z.test(F))return!1;try{return new RegExp(F),!0}catch(K){return!1}}var d=E(314),n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/, l=[0,31,28,31,30,31,30,31,31,30,31,30,31],k=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;O=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var h=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i; E=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;J=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i; var m=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,p=/^(?:\/(?:[^~/]|~0|~1)*)*$/,v=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,r=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;S.exports=g;g.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, "uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":E,url:J,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:O,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex:t,uuid:m,"json-pointer":p,"json-pointer-uri-fragment":v,"relative-json-pointer":r};g.full={date:x,time:e,"date-time":function(F){F=F.split(B);return 2==F.length&&x(F[0])&&e(F[1],!0)},uri:function(F){return C.test(F)&&h.test(F)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, "uri-template":E,url:J,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:O,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex:t,uuid:m,"json-pointer":p,"json-pointer-uri-fragment":v,"relative-json-pointer":r};var B=/t|\s/i,C=/\/|:/,z=/[^\\]\\Z/}; shadow$provide[324]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.dataLevel,d=g.schema[x],n=g.errSchemaPath+"/"+x;x=!g.opts.allErrors;var l="data"+(t||""),k="valid"+g.level;if("#"==d||"#/"==d)if(g.isRoot){var h=g.async;var m="validate"}else h=!0===g.root.schema.$async,m="root.refVal[0]";else{var p=g.resolveRef(g.baseId,d,g.isRoot);if(void 0===p)if(p=g.MissingRefError.message(g.baseId,d),"fail"==g.opts.missingRefs){g.logger.error(p);var v=v||[];v.push(e);e="";!1!==g.createErrors?(e+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+ g.errorPath+" , schemaPath: "+g.util.toQuotedString(n)+" , params: { ref: '"+g.util.escapeQuotes(d)+"' } ",!1!==g.opts.messages&&(e+=" , message: 'can\\'t resolve reference "+g.util.escapeQuotes(d)+"' "),g.opts.verbose&&(e+=" , schema: "+g.util.toQuotedString(d)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+l+" "),e+=" } "):e+=" {} ";d=e;e=v.pop();e=!g.compositeRule&&x?g.async?e+(" throw new ValidationError(["+d+"]); "):e+(" validate.errors \x3d ["+d+"]; return false; "):e+(" var err \x3d "+ d+"; if (vErrors \x3d\x3d\x3d null) vErrors \x3d [err]; else vErrors.push(err); errors++; ");x&&(e+=" if (false) { ")}else if("ignore"==g.opts.missingRefs)g.logger.warn(p),x&&(e+=" if (true) { ");else throw new g.MissingRefError(g.baseId,d,p);else if(p.inline){var r=g.util.copy(g);r.level++;n="valid"+r.level;r.schema=p.schema;r.schemaPath="";r.errSchemaPath=d;d=g.validate(r).replace(/validate\.schema/g,p.code);e+=" "+d+" ";x&&(e+=" if ("+n+") { ")}else h=!0===p.$async||g.async&&!1!==p.$async,m=p.code}if(m)if(v= v||[],v.push(e),e="",e=g.opts.passContext?e+(" "+m+".call(this, "):e+(" "+m+"( "),e+=" "+l+", (dataPath || '')",'""'!=g.errorPath&&(e+=" + "+g.errorPath),t=e+=" , "+(t?"data"+(t-1||""):"parentData")+" , "+(t?g.dataPathArr[t]:"parentDataProperty")+", rootData) ",e=v.pop(),h){if(!g.async)throw Error("async schema referenced by sync schema");x&&(e+=" var "+k+"; ");e+=" try { await "+t+"; ";x&&(e+=" "+k+" \x3d true; ");e+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors \x3d\x3d\x3d null) vErrors \x3d e.errors; else vErrors \x3d vErrors.concat(e.errors); errors \x3d vErrors.length; "; x&&(e+=" "+k+" \x3d false; ");e+=" } ";x&&(e+=" if ("+k+") { ")}else e+=" if (!"+t+") { if (vErrors \x3d\x3d\x3d null) vErrors \x3d "+m+".errors; else vErrors \x3d vErrors.concat("+m+".errors); errors \x3d vErrors.length; } ",x&&(e+=" else { ");return e}}; shadow$provide[325]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.schema[x],d=g.schemaPath+g.util.getProperty(x);x=g.errSchemaPath+"/"+x;var n=!g.opts.allErrors,l=g.util.copy(g),k="";l.level++;var h="valid"+l.level,m=l.baseId,p=!0;if(t)for(var v,r=-1,B=t.length-1;rg.util.varOccurences(r,C)?e+(" "+g.util.varReplace(r,C,n)+" "):e+(" var "+C+" \x3d "+n+"; "+r+" "),g.compositeRule=p.compositeRule=m,e=e+(" if ("+v+") break; } if (!")+(v+") {")): e+=" if ("+h+".length \x3d\x3d 0) {";var F=F||[];F.push(e);e="";!1!==g.createErrors?(e+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(k)+" , params: {} ",!1!==g.opts.messages&&(e+=" , message: 'should contain a valid item' "),g.opts.verbose&&(e+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+h+" "),e+=" } "):e+=" {} ";l=e;e=F.pop();e=!g.compositeRule&&x?g.async?e+(" throw new ValidationError(["+ l+"]); "):e+(" validate.errors \x3d ["+l+"]; return false; "):e+(" var err \x3d "+l+"; if (vErrors \x3d\x3d\x3d null) vErrors \x3d [err]; else vErrors.push(err); errors++; ");e+=" } else { ";t&&(e+=" errors \x3d "+d+"; if (vErrors !\x3d\x3d null) { if ("+d+") vErrors.length \x3d "+d+"; else vErrors \x3d null; } ");g.opts.allErrors&&(e+=" } ");return e}}; shadow$provide[330]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.level,d=g.dataLevel,n=g.schema[x],l=g.schemaPath+g.util.getProperty(x);x=g.errSchemaPath+"/"+x;var k=!g.opts.allErrors;d="data"+(d||"");var h="errs__"+t,m=g.util.copy(g),p="";m.level++;var v="valid"+m.level,r={},B={},C=g.opts.ownProperties;for(K in n)if("__proto__"!=K){var z=n[K],F=Array.isArray(z)?B:r;F[K]=z}n=g.errorPath;e=e+("var "+h+" \x3d errors;var missing")+(t+";");for(var K in B)if(F=B[K],F.length){e+=" if ( "+d+ g.util.getProperty(K)+" !\x3d\x3d undefined ";C&&(e+=" \x26\x26 Object.prototype.hasOwnProperty.call("+d+", '"+g.util.escapeQuotes(K)+"') ");if(k){e+=" \x26\x26 ( ";var M=F;if(M)for(var R=-1,L=M.length-1;Rg.util.varOccurences(R,C)?e+(" "+g.util.varReplace(R,C,K)+" "):e+(" var "+C+" \x3d "+K+"; "+R+" "),e+=" } ",x&&(e+=" if ("+r+") { ",v+="}")}"object"==typeof F&&(g.opts.strictKeywords?"object"==typeof F&&0g.util.varOccurences(R,C)?e+(" "+g.util.varReplace(R,C,K)+" "):e+(" var "+C+" \x3d "+K+"; "+R+" "),x&&(e+=" if (!"+r+") break; "),e+=" } } ",x&&(e+=" if ("+r+") { ",v+="}"))}else if(g.opts.strictKeywords? "object"==typeof n&&0g.util.varOccurences(R,C)?e+(" "+g.util.varReplace(R,C,K)+" "):e+(" var "+C+" \x3d "+K+"; "+R+" "),x&&(e+=" if (!"+r+") break; "),e+=" }";x&&(e+=" "+v+" if ("+m+" \x3d\x3d errors) {"); return e}}; shadow$provide[335]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.level,d=g.dataLevel,n=g.schema[x],l=g.schemaPath+g.util.getProperty(x),k=g.errSchemaPath+"/"+x,h=!g.opts.allErrors,m="data"+(d||""),p=g.opts.$data&&n&&n.$data;if(p){e+=" var schema"+t+" \x3d "+g.util.getData(n.$data,d,g.dataPathArr)+"; ";var v="schema"+t}else v=n;var r="maximum"==x,B=r?"exclusiveMaximum":"exclusiveMinimum",C=g.schema[B],z=g.opts.$data&&C&&C.$data,F=r?"\x3c":"\x3e",K=r?"\x3e":"\x3c";var M=void 0;if(!p&&"number"!= typeof n&&void 0!==n)throw Error(x+" must be number");if(!z&&void 0!==C&&"number"!=typeof C&&"boolean"!=typeof C)throw Error(B+" must be number or boolean");if(z){C=g.util.getData(C.$data,d,g.dataPathArr);var R="exclusive"+t,L="exclType"+t;r="op"+t;d="' + "+r+" + '";e+=" var schemaExcl"+t+" \x3d "+C+"; ";C="schemaExcl"+t;M=B;var V=V||[];V.push(e+(" var "+R+"; var "+L+" \x3d typeof "+C+"; if ("+L+" !\x3d 'boolean' \x26\x26 "+L+" !\x3d 'undefined' \x26\x26 "+L+" !\x3d 'number') { "));e="";!1!==g.createErrors? (e+=" { keyword: '"+(M||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(k)+" , params: {} ",!1!==g.opts.messages&&(e+=" , message: '"+B+" should be boolean' "),g.opts.verbose&&(e+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+m+" "),e+=" } "):e+=" {} ";var Q=e;e=V.pop();e=!g.compositeRule&&h?g.async?e+(" throw new ValidationError(["+Q+"]); "):e+(" validate.errors \x3d ["+Q+"]; return false; "): e+(" var err \x3d "+Q+"; if (vErrors \x3d\x3d\x3d null) vErrors \x3d [err]; else vErrors.push(err); errors++; ");e+=" } else if ( ";p&&(e+=" ("+v+" !\x3d\x3d undefined \x26\x26 typeof "+v+" !\x3d 'number') || ");e+=" "+L+" \x3d\x3d 'number' ? ( ("+R+" \x3d "+v+" \x3d\x3d\x3d undefined || "+C+" "+F+"\x3d "+v+") ? "+m+" "+K+"\x3d "+C+" : "+m+" "+K+" "+v+" ) : ( ("+R+" \x3d "+C+" \x3d\x3d\x3d true) ? "+m+" "+K+"\x3d "+v+" : "+m+" "+K+" "+v+" ) || "+m+" !\x3d\x3d "+m+") { var op"+t+" \x3d "+R+" ? '"+ F+"' : '"+F+"\x3d'; ";void 0===n&&(M=B,k=g.errSchemaPath+"/"+B,v=C,p=z)}else t="number"==typeof C,d=F,t&&p?(r="'"+d+"'",e+=" if ( ",p&&(e+=" ("+v+" !\x3d\x3d undefined \x26\x26 typeof "+v+" !\x3d 'number') || "),e+=" ( "+v+" \x3d\x3d\x3d undefined || "+C+" "+F+"\x3d "+v+" ? "+m+" "+K+"\x3d "+C+" : "+m+" "+K+" "+v+" ) || "+m+" !\x3d\x3d "+m+") { "):(t&&void 0===n?(R=!0,M=B,k=g.errSchemaPath+"/"+B,v=C,K+="\x3d"):(t&&(v=Math[r?"min":"max"](C,n)),C===(t?v:!0)?(R=!0,M=B,k=g.errSchemaPath+"/"+B,K+="\x3d"): (R=!1,d+="\x3d")),r="'"+d+"'",e+=" if ( ",p&&(e+=" ("+v+" !\x3d\x3d undefined \x26\x26 typeof "+v+" !\x3d 'number') || "),e+=" "+m+" "+K+" "+v+" || "+m+" !\x3d\x3d "+m+") { ");M=M||x;V=V||[];V.push(e);e="";!1!==g.createErrors?(e+=" { keyword: '"+(M||"_limit")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(k)+" , params: { comparison: "+r+", limit: "+v+", exclusive: "+R+" } ",!1!==g.opts.messages&&(e+=" , message: 'should be "+d+" ",e=p?e+("' + "+v):e+(""+v+ "'")),g.opts.verbose&&(e+=" , schema: ",e=(p?e+("validate.schema"+l):e+(""+n))+(" , parentSchema: validate.schema"+g.schemaPath+" , data: "+m+" ")),e+=" } "):e+=" {} ";Q=e;e=V.pop();e=!g.compositeRule&&h?g.async?e+(" throw new ValidationError(["+Q+"]); "):e+(" validate.errors \x3d ["+Q+"]; return false; "):e+(" var err \x3d "+Q+"; if (vErrors \x3d\x3d\x3d null) vErrors \x3d [err]; else vErrors.push(err); errors++; ");e+=" } ";h&&(e+=" else { ");return e}}; shadow$provide[336]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.level,d=g.dataLevel,n=g.schema[x],l=g.schemaPath+g.util.getProperty(x),k=g.errSchemaPath+"/"+x,h=!g.opts.allErrors,m="data"+(d||""),p=g.opts.$data&&n&&n.$data;p?(e+=" var schema"+t+" \x3d "+g.util.getData(n.$data,d,g.dataPathArr)+"; ",t="schema"+t):t=n;if(!p&&"number"!=typeof n)throw Error(x+" must be number");e+="if ( ";p&&(e+=" ("+t+" !\x3d\x3d undefined \x26\x26 typeof "+t+" !\x3d 'number') || ");var v=v||[];v.push(e+ (" "+m+".length "+("maxItems"==x?"\x3e":"\x3c")+" "+t+") { "));e="";!1!==g.createErrors?(e+=" { keyword: '"+(x||"_limitItems")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(k)+" , params: { limit: "+t+" } ",!1!==g.opts.messages&&(e+=" , message: 'should NOT have ",e="maxItems"==x?e+"more":e+"fewer",e+=" than ",e=p?e+("' + "+t+" + '"):e+(""+n),e+=" items' "),g.opts.verbose&&(e+=" , schema: ",e=p?e+("validate.schema"+l):e+(""+n),e+=" , parentSchema: validate.schema"+ g.schemaPath+" , data: "+m+" "),e+=" } "):e+=" {} ";x=e;e=v.pop();e=!g.compositeRule&&h?g.async?e+(" throw new ValidationError(["+x+"]); "):e+(" validate.errors \x3d ["+x+"]; return false; "):e+(" var err \x3d "+x+"; if (vErrors \x3d\x3d\x3d null) vErrors \x3d [err]; else vErrors.push(err); errors++; ");e+="} ";h&&(e+=" else { ");return e}}; shadow$provide[337]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.level,d=g.dataLevel,n=g.schema[x],l=g.schemaPath+g.util.getProperty(x),k=g.errSchemaPath+"/"+x,h=!g.opts.allErrors,m="data"+(d||""),p=g.opts.$data&&n&&n.$data;p?(e+=" var schema"+t+" \x3d "+g.util.getData(n.$data,d,g.dataPathArr)+"; ",t="schema"+t):t=n;if(!p&&"number"!=typeof n)throw Error(x+" must be number");e+="if ( ";p&&(e+=" ("+t+" !\x3d\x3d undefined \x26\x26 typeof "+t+" !\x3d 'number') || ");e=!1===g.opts.unicode? e+(" "+m+".length "):e+(" ucs2length("+m+") ");var v=v||[];v.push(e+(" "+("maxLength"==x?"\x3e":"\x3c")+" "+t+") { "));e="";!1!==g.createErrors?(e+=" { keyword: '"+(x||"_limitLength")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(k)+" , params: { limit: "+t+" } ",!1!==g.opts.messages&&(e+=" , message: 'should NOT be ",e="maxLength"==x?e+"longer":e+"shorter",e+=" than ",e=p?e+("' + "+t+" + '"):e+(""+n),e+=" characters' "),g.opts.verbose&&(e+=" , schema: ", e=p?e+("validate.schema"+l):e+(""+n),e+=" , parentSchema: validate.schema"+g.schemaPath+" , data: "+m+" "),e+=" } "):e+=" {} ";x=e;e=v.pop();e=!g.compositeRule&&h?g.async?e+(" throw new ValidationError(["+x+"]); "):e+(" validate.errors \x3d ["+x+"]; return false; "):e+(" var err \x3d "+x+"; if (vErrors \x3d\x3d\x3d null) vErrors \x3d [err]; else vErrors.push(err); errors++; ");e+="} ";h&&(e+=" else { ");return e}}; shadow$provide[338]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.level,d=g.dataLevel,n=g.schema[x],l=g.schemaPath+g.util.getProperty(x),k=g.errSchemaPath+"/"+x,h=!g.opts.allErrors,m="data"+(d||""),p=g.opts.$data&&n&&n.$data;p?(e+=" var schema"+t+" \x3d "+g.util.getData(n.$data,d,g.dataPathArr)+"; ",t="schema"+t):t=n;if(!p&&"number"!=typeof n)throw Error(x+" must be number");e+="if ( ";p&&(e+=" ("+t+" !\x3d\x3d undefined \x26\x26 typeof "+t+" !\x3d 'number') || ");var v=v||[];v.push(e+ (" Object.keys("+m+").length "+("maxProperties"==x?"\x3e":"\x3c")+" "+t+") { "));e="";!1!==g.createErrors?(e+=" { keyword: '"+(x||"_limitProperties")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(k)+" , params: { limit: "+t+" } ",!1!==g.opts.messages&&(e+=" , message: 'should NOT have ",e="maxProperties"==x?e+"more":e+"fewer",e+=" than ",e=p?e+("' + "+t+" + '"):e+(""+n),e+=" properties' "),g.opts.verbose&&(e+=" , schema: ",e=p?e+("validate.schema"+l):e+(""+ n),e+=" , parentSchema: validate.schema"+g.schemaPath+" , data: "+m+" "),e+=" } "):e+=" {} ";x=e;e=v.pop();e=!g.compositeRule&&h?g.async?e+(" throw new ValidationError(["+x+"]); "):e+(" validate.errors \x3d ["+x+"]; return false; "):e+(" var err \x3d "+x+"; if (vErrors \x3d\x3d\x3d null) vErrors \x3d [err]; else vErrors.push(err); errors++; ");e+="} ";h&&(e+=" else { ");return e}}; shadow$provide[339]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.level,d=g.dataLevel,n=g.schema[x],l=g.schemaPath+g.util.getProperty(x),k=g.errSchemaPath+"/"+x,h=!g.opts.allErrors,m="data"+(d||""),p=g.opts.$data&&n&&n.$data;p?(e+=" var schema"+t+" \x3d "+g.util.getData(n.$data,d,g.dataPathArr)+"; ",d="schema"+t):d=n;if(!p&&"number"!=typeof n)throw Error(x+" must be number");e+="var division"+t+";if (";p&&(e+=" "+d+" !\x3d\x3d undefined \x26\x26 ( typeof "+d+" !\x3d 'number' || ");e+= " (division"+t+" \x3d "+m+" / "+d+", ";e=g.opts.multipleOfPrecision?e+(" Math.abs(Math.round(division"+t+") - division"+t+") \x3e 1e-"+g.opts.multipleOfPrecision+" "):e+(" division"+t+" !\x3d\x3d parseInt(division"+t+") ");e+=" ) ";p&&(e+=" ) ");var v=v||[];v.push(e+" ) { ");e="";!1!==g.createErrors?(e+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(k)+" , params: { multipleOf: "+d+" } ",!1!==g.opts.messages&&(e+=" , message: 'should be multiple of ", e=p?e+("' + "+d):e+(""+d+"'")),g.opts.verbose&&(e+=" , schema: ",e=(p?e+("validate.schema"+l):e+(""+n))+(" , parentSchema: validate.schema"+g.schemaPath+" , data: "+m+" ")),e+=" } "):e+=" {} ";x=e;e=v.pop();e=!g.compositeRule&&h?g.async?e+(" throw new ValidationError(["+x+"]); "):e+(" validate.errors \x3d ["+x+"]; return false; "):e+(" var err \x3d "+x+"; if (vErrors \x3d\x3d\x3d null) vErrors \x3d [err]; else vErrors.push(err); errors++; ");e+="} ";h&&(e+=" else { ");return e}}; shadow$provide[340]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.level,d=g.dataLevel,n=g.schema[x],l=g.schemaPath+g.util.getProperty(x),k=g.errSchemaPath+"/"+x;x=!g.opts.allErrors;d="data"+(d||"");t="errs__"+t;var h=g.util.copy(g);h.level++;var m="valid"+h.level;if(g.opts.strictKeywords?"object"==typeof n&&0g.util.varOccurences(V,F)?e+(" "+g.util.varReplace(V,F,a)+" "):e+(" var "+F+" \x3d "+a+"; "+V+" "),e+=" if (!"+r+") { errors \x3d "+m+"; if (validate.errors !\x3d\x3d null) { if (errors) validate.errors.length \x3d errors; else validate.errors \x3d null; } delete "+ n+"["+B+"]; } ",g.compositeRule=p.compositeRule=f):(p.schema=V,p.schemaPath=g.schemaPath+".additionalProperties",p.errSchemaPath=g.errSchemaPath+"/additionalProperties",p.errorPath=g.opts._errorDataPathProperty?g.errorPath:g.util.getPathExpr(g.errorPath,B,g.opts.jsonPointers),a=n+"["+B+"]",p.dataPathArr[z]=B,V=g.validate(p),p.baseId=y,e=2>g.util.varOccurences(V,F)?e+(" "+g.util.varReplace(V,F,a)+" "):e+(" var "+F+" \x3d "+a+"; "+V+" "),x&&(e+=" if (!"+r+") break; ")));g.errorPath=d}Q&&(e+=" } "); e+=" } ";x&&(e+=" if ("+r+") { ",v+="}")}Q=g.opts.useDefaults&&!g.compositeRule;if(M.length&&M)for(b=-1,c=M.length-1;bg.util.varOccurences(V,F)?(V=g.util.varReplace(V,F,a),w=a):(w=F,e+=" var "+F+" \x3d "+a+"; "),d?e+=" "+V+" ":(A&&A[f]?(e+=" if ( "+w+" \x3d\x3d\x3d undefined ",u&&(e+=" || ! Object.prototype.hasOwnProperty.call("+n+", '"+g.util.escapeQuotes(f)+"') "),e+=") { "+r+" \x3d false; ",d=g.errorPath,a=h,w=g.util.escapeQuotes(f),g.opts._errorDataPathProperty&&(g.errorPath=g.util.getPath(d,f,g.opts.jsonPointers)),h=g.errSchemaPath+"/required",H=H||[],H.push(e),e="",!1!==g.createErrors?(e+=" { keyword: 'required' , dataPath: (dataPath || '') + "+ g.errorPath+" , schemaPath: "+g.util.toQuotedString(h)+" , params: { missingProperty: '"+w+"' } ",!1!==g.opts.messages&&(e+=" , message: '",e=g.opts._errorDataPathProperty?e+"is a required property":e+("should have required property \\'"+w+"\\'"),e+="' "),g.opts.verbose&&(e+=" , schema: validate.schema"+k+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+n+" "),e+=" } "):e+=" {} ",h=e,e=H.pop(),e=!g.compositeRule&&x?g.async?e+(" throw new ValidationError(["+h+"]); "):e+(" validate.errors \x3d ["+ h+"]; return false; "):e+(" var err \x3d "+h+"; if (vErrors \x3d\x3d\x3d null) vErrors \x3d [err]; else vErrors.push(err); errors++; "),h=a,g.errorPath=d,e+=" } else { "):x?(e+=" if ( "+w+" \x3d\x3d\x3d undefined ",u&&(e+=" || ! Object.prototype.hasOwnProperty.call("+n+", '"+g.util.escapeQuotes(f)+"') "),e+=") { "+r+" \x3d true; } else { "):(e+=" if ("+w+" !\x3d\x3d undefined ",u&&(e+=" \x26\x26 Object.prototype.hasOwnProperty.call("+n+", '"+g.util.escapeQuotes(f)+"') "),e+=" ) { "),e+=" "+V+" } "); x&&(e+=" if ("+r+") { ",v+="}")}if(L.length&&L)for(A=-1,H=L.length-1;Ag.util.varOccurences(V,F)?e+(" "+g.util.varReplace(V,F,a)+" "):e+(" var "+F+" \x3d "+a+"; "+V+" "),x&&(e+=" if (!"+r+") break; "),e+=" } ",x&&(e+=" else "+r+" \x3d true; "),e+=" } ",x&&(e+=" if ("+r+") { ",v+="}");x&&(e+=" "+v+" if ("+m+" \x3d\x3d errors) {");return e}}; shadow$provide[344]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.level,d=g.dataLevel,n=g.schema[x],l=g.schemaPath+g.util.getProperty(x);x=g.errSchemaPath+"/"+x;var k=!g.opts.allErrors;d="data"+(d||"");var h="errs__"+t,m=g.util.copy(g);m.level++;var p="valid"+m.level;e+="var "+h+" \x3d errors;";if(g.opts.strictKeywords?"object"==typeof n&&0g.util.varOccurences(z,C)?e+(" "+g.util.varReplace(z,C,n)+" "): e+(" var "+C+" \x3d "+n+"; "+z+" ");g.compositeRule=m.compositeRule=v;e+=" if (!"+p+") { for (var "+r+"\x3dstartErrs"+t+"; "+r+"\x3cerrors; "+r+"++) { vErrors["+r+"].propertyName \x3d "+n+"; } var err \x3d ";!1!==g.createErrors?(e+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(x)+" , params: { propertyName: '"+B+"' } ",!1!==g.opts.messages&&(e+=" , message: 'property name \\'"+B+"\\' is invalid' "),g.opts.verbose&&(e+=" , schema: validate.schema"+ l+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+d+" "),e+=" } "):e+=" {} ";e+="; if (vErrors \x3d\x3d\x3d null) vErrors \x3d [err]; else vErrors.push(err); errors++; ";!g.compositeRule&&k&&(e=g.async?e+" throw new ValidationError(vErrors); ":e+" validate.errors \x3d vErrors; return false; ");k&&(e+=" break; ");e+=" } }"}k&&(e+=" if ("+h+" \x3d\x3d errors) {");return e}}; shadow$provide[345]=function(O,E,S,J){S.exports=function(g,x,e){e=" ";var t=g.level,d=g.dataLevel,n=g.schema[x],l=g.schemaPath+g.util.getProperty(x);x=g.errSchemaPath+"/"+x;var k=!g.opts.allErrors,h="data"+(d||""),m="valid"+t,p=g.opts.$data&&n&&n.$data;p&&(e+=" var schema"+t+" \x3d "+g.util.getData(n.$data,d,g.dataPathArr)+"; ");var v="schema"+t;if(!p)if(n.length=g.opts.loopRequired;d=g.opts.ownProperties;if(k){e+=" var missing"+t+"; ";if(B){p||(e+=" var "+v+" \x3d validate.schema"+l+"; ");B="i"+t;C="schema"+t+"["+B+"]";r="' + "+C+" + '";g.opts._errorDataPathProperty&&(g.errorPath=g.util.getPathExpr(n,C,g.opts.jsonPointers));e+=" var "+m+" \x3d true; "; p&&(e+=" if (schema"+t+" \x3d\x3d\x3d undefined) "+m+" \x3d true; else if (!Array.isArray(schema"+t+")) "+m+" \x3d false; else {");e+=" for (var "+B+" \x3d 0; "+B+" \x3c "+v+".length; "+B+"++) { "+m+" \x3d "+h+"["+v+"["+B+"]] !\x3d\x3d undefined ";d&&(e+=" \x26\x26 Object.prototype.hasOwnProperty.call("+h+", "+v+"["+B+"]) ");e+="; if (!"+m+") break; } ";p&&(e+=" } ");var F=F||[];F.push(e+(" if (!"+m+") { "));e="";!1!==g.createErrors?(e+=" { keyword: 'required' , dataPath: (dataPath || '') + "+ g.errorPath+" , schemaPath: "+g.util.toQuotedString(x)+" , params: { missingProperty: '"+r+"' } ",!1!==g.opts.messages&&(e+=" , message: '",e=g.opts._errorDataPathProperty?e+"is a required property":e+("should have required property \\'"+r+"\\'"),e+="' "),g.opts.verbose&&(e+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+h+" "),e+=" } "):e+=" {} ";l=e}else{e+=" if ( ";if(r)for(B=-1,C=r.length-1;Bt;t++)0===(t&3)&&(d=4294967296*Math.random()),e[t]=d>>>((t&3)<<3)&255;return e}}}; shadow$provide[381]=function(O,E,S,J){var g=[];for(O=0;256>O;++O)g[O]=(O+256).toString(16).substr(1);S.exports=function(x,e){e=e||0;return[g[x[e++]],g[x[e++]],g[x[e++]],g[x[e++]],"-",g[x[e++]],g[x[e++]],"-",g[x[e++]],g[x[e++]],"-",g[x[e++]],g[x[e++]],"-",g[x[e++]],g[x[e++]],g[x[e++]],g[x[e++]],g[x[e++]],g[x[e++]]].join("")}}; shadow$provide[382]=function(O,E,S,J){var g=E(380),x=E(381);S.exports=function(e,t,d){d=t&&d||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);e=e||{};e=e.random||(e.rng||g)();e[6]=e[6]&15|64;e[8]=e[8]&63|128;if(t)for(var n=0;16>n;++n)t[d+n]=e[n];return t||x(e)}}; shadow$provide[383]=function(O,E,S,J){function g(n){this.request=n;this.sentAuth=this.hasAuth=!1;this.pass=this.user=this.bearerToken=null}var x=E(299),e=E(382);O=E(230);var t=O.md5,d=O.toBase64;g.prototype.basic=function(n,l,k){("string"!==typeof n||void 0!==l&&"string"!==typeof l)&&this.request.emit("error",Error("auth() received invalid user or password"));this.user=n;this.pass=l;this.hasAuth=!0;if(k||"undefined"===typeof k)return n="Basic "+d(n+":"+(l||"")),this.sentAuth=!0,n};g.prototype.bearer= function(n,l){this.bearerToken=n;this.hasAuth=!0;if(l||"undefined"===typeof l)return"function"===typeof n&&(n=n()),this.sentAuth=!0,"Bearer "+(n||"")};g.prototype.digest=function(n,l,k){for(var h={},m=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;;){var p=m.exec(k);if(!p)break;h[p[1]]=p[2]||p[3]}m=(k=/(^|,)\s*auth\s*($|,)/.test(h.qop)&&"auth")&&"00000001";p=k&&e().replace(/-/g,"");var v=h.algorithm;var r=h.nonce,B=t(this.user+":"+h.realm+":"+this.pass);v=v&&"md5-sess"===v.toLowerCase()?t(B+":"+r+ ":"+p):B;n=t(n+":"+l);n=k?t(v+":"+h.nonce+":"+m+":"+p+":"+k+":"+n):t(v+":"+h.nonce+":"+n);l={username:this.user,realm:h.realm,nonce:h.nonce,uri:l,qop:k,response:n,nc:m,cnonce:p,algorithm:h.algorithm,opaque:h.opaque};k=[];for(var C in l)l[C]&&("qop"===C||"nc"===C||"algorithm"===C?k.push(C+"\x3d"+l[C]):k.push(C+'\x3d"'+l[C]+'"'));k="Digest "+k.join(", ");this.sentAuth=!0;return k};g.prototype.onRequest=function(n,l,k,h){var m=this.request,p;void 0===h&&void 0===n?this.request.emit("error",Error("no auth mechanism defined")): p=void 0!==h?this.bearer(h,k):this.basic(n,l,k);p&&m.setHeader("authorization",p)};g.prototype.onResponse=function(n){var l=this.request;if(!this.hasAuth||this.sentAuth)return null;var k=(n=x(n.headers).get("www-authenticate"))&&n.split(" ")[0].toLowerCase();l.debug("reauth",k);switch(k){case "basic":return this.basic(this.user,this.pass,!0);case "bearer":return this.bearer(this.bearerToken,!0);case "digest":return this.digest(l.method,l.path,n)}};J.Auth=g}; shadow$provide[384]=function(O,E,S,J){function g(m,p,v){return h.createHmac(v,m).update(p).digest("base64")}function x(m){return encodeURIComponent(m).replace(/!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}function e(m){var p,v=[];for(p in m){var r=m[p];if(Array.isArray(r))for(var B=0;Bz?1:CB?1:r["HMAC-SHA1","RSA-SHA1"].indexOf(h.signature_method||"HMAC-SHA1")&&this.request.emit("error", Error("oauth: "+h.signature_method+" signature_method not supported with body_hash signing."));h=l.createHash("sha1");h.update(m||"");m=h.digest("hex");return k.from(m,"hex").toString("base64")};g.prototype.concatParams=function(h,m,p){p=p||"";var v=Object.keys(h).filter(function(r){return"realm"!==r&&"oauth_signature"!==r}).sort();h.realm&&v.splice(0,0,"realm");v.push("oauth_signature");return v.map(function(r){return r+"\x3d"+p+n.rfc3986(h[r])+p}).join(m)};g.prototype.onRequest=function(h){this.params= h;var m=this.request.uri||{},p=this.request.method||"",v=t(this.request.headers),r=this.request.body||"",B=this.request.qsLib||e,C=v.get("content-type")||"";v=h.transport_method||"header";if("application/x-www-form-urlencoded"===C.slice(0,33)){C="application/x-www-form-urlencoded";var z=r}if(m.query)var F=m.query;"body"!==v||"POST"===p&&"application/x-www-form-urlencoded"===C||this.request.emit("error",Error("oauth: transport_method of body requires POST and content-type application/x-www-form-urlencoded")); z||"boolean"!==typeof h.body_hash||(h.body_hash=this.buildBodyHash(h,this.request.body.toString()));h=this.buildParams(h,m,p,F,z,B);switch(v){case "header":this.request.setHeader("Authorization","OAuth "+this.concatParams(h,",",'"'));break;case "query":z=this.request.uri.href+=(F?"\x26":"?")+this.concatParams(h,"\x26");this.request.uri=x.parse(z);this.request.path=this.request.uri.path;break;case "body":this.request.body=(z?z+"\x26":"")+this.concatParams(h,"\x26");break;default:this.request.emit("error", Error("oauth: transport_method invalid"))}};J.OAuth=g}; shadow$provide[386]=function(O,E,S,J){var g=E(191);J.calculateMac=function(x,e){var t="hawk.1.header\n"+e.ts+"\n"+e.nonce+"\n"+(e.method||"").toUpperCase()+"\n"+e.resource+"\n"+e.host.toLowerCase()+"\n"+e.port+"\n"+(e.hash||"")+"\n";e.ext&&(t+=e.ext.replace("\\","\\\\").replace("\n","\\n"));t+="\n";e.app&&(t=t+e.app+"\n"+(e.dlg||"")+"\n");return g.createHmac(x.algorithm,x.key).update(t).digest("base64")};J.header=function(x,e,t){var d=t.timestamp||Math.floor((Date.now()+(t.localtimeOffsetMsec||0))/ 1E3),n=t.credentials;if(!(n&&n.id&&n.key&&n.algorithm)||-1===["sha1","sha256"].indexOf(n.algorithm))return"";var l;(l=t.nonce)||(l=g.randomBytes(6).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"").slice(0,6));x={ts:d,nonce:l,method:e,resource:x.pathname+(x.search||""),host:x.hostname,port:x.port||("http:"===x.protocol?80:443),hash:t.hash,ext:t.ext,app:t.app,dlg:t.dlg};x.hash||!t.payload&&""!==t.payload||(e=t.payload,t=t.contentType,d=g.createHash(n.algorithm),d.update("hawk.1.payload\n"), d.update((t?t.split(";")[0].trim().toLowerCase():"")+"\n"),d.update(e||""),d.update("\n"),t=d.digest("base64"),x.hash=t);t=J.calculateMac(n,x);n='Hawk id\x3d"'+n.id+'", ts\x3d"'+x.ts+'", nonce\x3d"'+x.nonce+(x.hash?'", hash\x3d"'+x.hash:"")+(null!==x.ext&&void 0!==x.ext&&""!==x.ext?'", ext\x3d"'+x.ext.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):"")+'", mac\x3d"'+t+'"';x.app&&(n=n+', app\x3d"'+x.app+(x.dlg?'", dlg\x3d"'+x.dlg:"")+'"');return n}}; shadow$provide[387]=function(O,E,S,J){function g(){this.source=null;this.dataSize=0;this.maxDataSize=1048576;this.pauseStream=!0;this._released=this._maxDataSizeExceeded=!1;this._bufferedEvents=[]}var x=E(59).Stream;O=E(33);S.exports=g;O.inherits(g,x);g.create=function(e,t){var d=new this;t=t||{};for(var n in t)d[n]=t[n];d.source=e;var l=e.emit;e.emit=function(){d._handleEmit(arguments);return l.apply(e,arguments)};e.on("error",function(){});d.pauseStream&&e.pause();return d};Object.defineProperty(g.prototype, "readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});g.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};g.prototype.resume=function(){this._released||this.release();this.source.resume()};g.prototype.pause=function(){this.source.pause()};g.prototype.release=function(){this._released=!0;this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this));this._bufferedEvents=[]};g.prototype.pipe=function(){var e= x.prototype.pipe.apply(this,arguments);this.resume();return e};g.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))};g.prototype._checkIfMaxDataSizeExceeded=function(){this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize||(this._maxDataSizeExceeded=!0,this.emit("error",Error("DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.")))}}; shadow$provide[388]=function(O,E,S,J){function g(){this.writable=!1;this.readable=!0;this.dataSize=0;this.maxDataSize=2097152;this.pauseStreams=!0;this._released=!1;this._streams=[];this._currentStream=null;this._pendingNext=this._insideLoop=!1}var x=E(37).Buffer;O=E(33);var e=E(59).Stream,t=E(387);S.exports=g;O.inherits(g,e);g.create=function(d){var n=new this;d=d||{};for(var l in d)n[l]=d[l];return n};g.isStreamLike=function(d){return"function"!==typeof d&&"string"!==typeof d&&"boolean"!==typeof d&& "number"!==typeof d&&!x.isBuffer(d)};g.prototype.append=function(d){if(g.isStreamLike(d)){if(!(d instanceof t)){var n=t.create(d,{maxDataSize:Infinity,pauseStream:this.pauseStreams});d.on("data",this._checkDataSize.bind(this));d=n}this._handleErrors(d);this.pauseStreams&&d.pause()}this._streams.push(d);return this};g.prototype.pipe=function(d,n){e.prototype.pipe.call(this,d,n);this.resume();return d};g.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop)this._pendingNext=!0; else{this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}}};g.prototype._realGetNext=function(){var d=this._streams.shift();"undefined"==typeof d?this.end():"function"!==typeof d?this._pipeNext(d):d(function(n){g.isStreamLike(n)&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n));this._pipeNext(n)}.bind(this))};g.prototype._pipeNext=function(d){this._currentStream=d;g.isStreamLike(d)?(d.on("end",this._getNext.bind(this)), d.pipe(this,{end:!1})):(this.write(d),this._getNext())};g.prototype._handleErrors=function(d){var n=this;d.on("error",function(l){n._emitError(l)})};g.prototype.write=function(d){this.emit("data",d)};g.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))};g.prototype.resume=function(){this._released||(this.writable=this._released=!0,this._getNext());this.pauseStreams&&this._currentStream&& "function"==typeof this._currentStream.resume&&this._currentStream.resume();this.emit("resume")};g.prototype.end=function(){this._reset();this.emit("end")};g.prototype.destroy=function(){this._reset();this.emit("close")};g.prototype._reset=function(){this.writable=!1;this._streams=[];this._currentStream=null};g.prototype._checkDataSize=function(){this._updateDataSize();this.dataSize<=this.maxDataSize||this._emitError(Error("DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded."))};g.prototype._updateDataSize= function(){this.dataSize=0;var d=this;this._streams.forEach(function(n){n.dataSize&&(d.dataSize+=n.dataSize)});this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};g.prototype._emitError=function(d){this._reset();this.emit("error",d)}}; shadow$provide[389]=function(O,E,S,J){function g(n){this.request=n;this.boundary=x();this.chunked=!1;this.body=null}var x=E(382),e=E(388),t=E(302),d=E(38).Buffer;g.prototype.isChunked=function(n){var l=this,k=!1,h=n.data||n;h.forEach||l.request.emit("error",Error("Argument error, options.multipart."));void 0!==n.chunked&&(k=n.chunked);"chunked"===l.request.getHeader("transfer-encoding")&&(k=!0);k||h.forEach(function(m){"undefined"===typeof m.body&&l.request.emit("error",Error("Body attribute missing in multipart.")); t(m.body)&&(k=!0)});return k};g.prototype.setHeaders=function(n){n&&!this.request.hasHeader("transfer-encoding")&&this.request.setHeader("transfer-encoding","chunked");(n=this.request.getHeader("content-type"))&&-1!==n.indexOf("multipart")?-1!==n.indexOf("boundary")?this.boundary=n.replace(/.*boundary=([^\s;]+).*/,"$1"):this.request.setHeader("content-type",n+"; boundary\x3d"+this.boundary):this.request.setHeader("content-type","multipart/related; boundary\x3d"+this.boundary)};g.prototype.build=function(n, l){function k(p){"number"===typeof p&&(p=p.toString());return l?m.append(p):m.push(d.from(p))}var h=this,m=l?new e:[];h.request.preambleCRLF&&k("\r\n");n.forEach(function(p){var v="--"+h.boundary+"\r\n";Object.keys(p).forEach(function(r){"body"!==r&&(v+=r+": "+p[r]+"\r\n")});v+="\r\n";k(v);k(p.body);k("\r\n")});k("--"+h.boundary+"--");h.request.postambleCRLF&&k("\r\n");return m};g.prototype.onRequest=function(n){var l=this.isChunked(n);n=n.data||n;this.setHeaders(l);this.chunked=l;this.body=this.build(n, l)};J.Multipart=g}; shadow$provide[390]=function(O,E,S,J){function g(t){this.request=t;this.followRedirects=this.followRedirect=!0;this.followOriginalHttpMethod=this.followAllRedirects=!1;this.allowRedirect=function(){return!0};this.maxRedirects=10;this.redirects=[];this.redirectsFollowed=0;this.removeRefererHeader=!1}var x=E(207),e=/^https?:/;g.prototype.onRequest=function(t){void 0!==t.maxRedirects&&(this.maxRedirects=t.maxRedirects);"function"===typeof t.followRedirect&&(this.allowRedirect=t.followRedirect);void 0!== t.followRedirect&&(this.followRedirects=!!t.followRedirect);void 0!==t.followAllRedirects&&(this.followAllRedirects=t.followAllRedirects);if(this.followRedirects||this.followAllRedirects)this.redirects=this.redirects||[];void 0!==t.removeRefererHeader&&(this.removeRefererHeader=t.removeRefererHeader);void 0!==t.followOriginalHttpMethod&&(this.followOriginalHttpMethod=t.followOriginalHttpMethod)};g.prototype.redirectTo=function(t){var d=this.request,n=null;if(300<=t.statusCode&&400>t.statusCode&&t.caseless.has("location"))if(t= t.caseless.get("location"),d.debug("redirect",t),this.followAllRedirects)n=t;else{if(this.followRedirects)switch(d.method){case "PATCH":case "PUT":case "POST":case "DELETE":break;default:n=t}}else 401===t.statusCode&&(t=d._auth.onResponse(t))&&(d.setHeader("authorization",t),n=d.uri);return n};g.prototype.onResponse=function(t){var d=this.request,n=this.redirectTo(t);if(!n||!this.allowRedirect.call(d,t))return!1;d.debug("redirect to",n);t.resume&&t.resume();if(this.redirectsFollowed>=this.maxRedirects)return d.emit("error", Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+d.uri.href)),!1;this.redirectsFollowed+=1;e.test(n)||(n=x.resolve(d.uri.href,n));var l=d.uri;d.uri=x.parse(n);d.uri.protocol!==l.protocol&&delete d.agent;this.redirects.push({statusCode:t.statusCode,redirectUri:n});this.followAllRedirects&&"HEAD"!==d.method&&401!==t.statusCode&&307!==t.statusCode&&(d.method=this.followOriginalHttpMethod?d.method:"GET");delete d.src;delete d.req;delete d._started;401!==t.statusCode&&307!==t.statusCode&& (delete d.body,delete d._form,d.headers&&(d.removeHeader("host"),d.removeHeader("content-type"),d.removeHeader("content-length"),d.uri.hostname!==d.originalHost.split(":")[0]&&d.removeHeader("authorization")));this.removeRefererHeader||d.setHeader("referer",l.href);d.emit("redirect");d.init();return!0};J.Redirect=g}; shadow$provide[391]=function(O,E,S,J){function g(p){var v=this;v.options=p||{};v.proxyOptions=v.options.proxy||{};v.maxSockets=v.options.maxSockets||n.Agent.defaultMaxSockets;v.requests=[];v.sockets=[];v.on("free",function(r,B,C){for(var z=0,F=v.requests.length;z=this.maxSockets?this.requests.push({host:v.host,port:v.port,request:p}):this.createConnection({host:v.host,port:v.port,request:p})};g.prototype.createConnection= function(p){var v=this;v.createSocket(p,function(r){function B(){v.emit("free",r,p.host,p.port)}function C(z){v.removeSocket(r);r.removeListener("free",B);r.removeListener("close",C);r.removeListener("agentRemove",C)}r.on("free",B);r.on("close",C);r.on("agentRemove",C);p.request.onSocket(r)})};g.prototype.createSocket=function(p,v){function r(K,M,R){F.removeAllListeners();M.removeAllListeners();200===K.statusCode?(k.equal(R.length,0),m("tunneling connection has established"),B.sockets[B.sockets.indexOf(C)]= M,v(M)):(m("tunneling socket could not be established, statusCode\x3d%d",K.statusCode),K=Error("tunneling socket could not be established, statusCode\x3d"+K.statusCode),K.code="ECONNRESET",p.request.emit("error",K),B.removeSocket(C))}var B=this,C={};B.sockets.push(C);var z=e({},B.proxyOptions,{method:"CONNECT",path:p.host+":"+p.port,agent:!1});z.proxyAuth&&(z.headers=z.headers||{},z.headers["Proxy-Authorization"]="Basic "+h.from(z.proxyAuth).toString("base64"));m("making CONNECT request");var F=B.request(z); F.useChunkedEncodingByDefault=!1;F.once("response",function(K){K.upgrade=!0});F.once("upgrade",function(K,M,R){t.nextTick(function(){r(K,M,R)})});F.once("connect",r);F.once("error",function(K){F.removeAllListeners();m("tunneling socket could not be established, cause\x3d%s\n",K.message,K.stack);K=Error("tunneling socket could not be established, cause\x3d"+K.message);K.code="ECONNRESET";p.request.emit("error",K);B.removeSocket(C)});F.end()};g.prototype.removeSocket=function(p){p=this.sockets.indexOf(p); -1!==p&&(this.sockets.splice(p,1),(p=this.requests.shift())&&this.createConnection(p))};var m=t.env.NODE_DEBUG&&/\btunnel\b/.test(t.env.NODE_DEBUG)?function(){var p=Array.prototype.slice.call(arguments);"string"===typeof p[0]?p[0]="TUNNEL: "+p[0]:p.unshift("TUNNEL:");console.error.apply(console,p)}:function(){};J.debug=m}; shadow$provide[392]=function(O,E,S,J){function g(l,k){var h=k.reduce(function(m,p){m[p.toLowerCase()]=!0;return m},{});return Object.keys(l).filter(function(m){return h[m.toLowerCase()]}).reduce(function(m,p){m[p]=l[p];return m},{})}function x(l){this.request=l;this.proxyHeaderWhiteList=d;this.proxyHeaderExclusiveList=[];"undefined"!==typeof l.tunnel&&(this.tunnelOverride=l.tunnel)}var e=E(207),t=E(391),d="accept accept-charset accept-encoding accept-language accept-ranges cache-control content-encoding content-language content-location content-md5 content-range content-type connection date expect max-forwards pragma referer te user-agent via".split(" "), n=["proxy-authorization"];x.prototype.isEnabled=function(){return"undefined"!==typeof this.tunnelOverride?this.tunnelOverride:"https:"===this.request.uri.protocol?!0:!1};x.prototype.setup=function(l){var k=this.request;l=l||{};"string"===typeof k.proxy&&(k.proxy=e.parse(k.proxy));if(!k.proxy||!k.tunnel)return!1;l.proxyHeaderWhiteList&&(this.proxyHeaderWhiteList=l.proxyHeaderWhiteList);l.proxyHeaderExclusiveList&&(this.proxyHeaderExclusiveList=l.proxyHeaderExclusiveList);var h=this.proxyHeaderExclusiveList.concat(n); l=this.proxyHeaderWhiteList.concat(h);l=g(k.headers,l);var m=k.uri,p=m.port,v=m.protocol;m=m.hostname+":";l.host=p?m+p:"https:"===v?m+"443":m+"80";h.forEach(k.removeHeader,k);h=["https:"===k.uri.protocol?"https":"http","https:"===k.proxy.protocol?"Https":"Http"].join("Over");p=k.proxy;k.agent=(0,t[h])({proxy:{host:p.hostname,port:+p.port,proxyAuth:p.auth,headers:l},headers:k.headers,ca:k.ca,cert:k.cert,key:k.key,passphrase:k.passphrase,pfx:k.pfx,ciphers:k.ciphers,rejectUnauthorized:k.rejectUnauthorized, secureOptions:k.secureOptions,secureProtocol:k.secureProtocol});return!0};x.defaultProxyHeaderWhiteList=d;x.defaultProxyHeaderExclusiveList=n;J.Tunnel=x}; shadow$provide[393]=function(O,E,S,J){var g=E(28);(function(){if("undefined"!==typeof performance&&null!==performance&&performance.now)S.exports=function(){return performance.now()};else if("undefined"!==typeof g&&null!==g&&g.hrtime){S.exports=function(){return(e()-n)/1E6};var x=g.hrtime;var e=function(){var k=x();return 1E9*k[0]+k[1]};var t=e();var d=1E9*g.uptime();var n=t-d}else if(Date.now){S.exports=function(){return Date.now()-l};var l=Date.now()}else S.exports=function(){return(new Date).getTime()- l},l=(new Date).getTime()}).call(this)}; shadow$provide[394]=function(O,E,S,J){function g(){return{uri:this.uri,method:this.method,headers:this.headers}}function x(){return{statusCode:this.statusCode,body:this.body,headers:this.headers,request:g.call(this.request)}}function e(Z){Z.har&&(this._har=new a(this),Z=this._har.options(Z));h.Stream.call(this);var ba=Object.keys(e.prototype),X=Z,oa={};for(ka in X)-1===ba.indexOf(ka)&&(oa[ka]=X[ka]);K(this,oa);X={};for(var sa in Z){oa=-1!==ba.indexOf(sa);var ka="function"===typeof Z[sa];oa&&ka||(X[sa]= Z[sa])}Z=X;this.writable=this.readable=!0;Z.method&&(this.explicitMethod=!0);this._qs=new Q(this);this._auth=new b(this);this._oauth=new c(this);this._multipart=new u(this);this._redirect=new y(this);this._tunnel=new w(this);this.init(Z)}function t(){e.debug&&console.error("REQUEST %s",k.format.apply(k,arguments))}O=E(28);"use strict";var d=E(208),n=E(209),l=E(207),k=E(33),h=E(59),m=E(243),p=E(244),v=E(246),r=E(294),B=E(298),C=E(299),z=E(300),F=E(301),K=E(217),M=E(302),R=E(303).strict;J=E(230);var L= E(228),V=E(304),Q=E(310).Querystring,a=E(379).Har,b=E(383).Auth,c=E(385).OAuth,f=E(386),u=E(389).Multipart,y=E(390).Redirect,w=E(392).Tunnel,A=E(393),D=E(38).Buffer,H=J.safeStringify,G=J.isReadStream,P=J.toBase64,U=J.defer,ca=J.copy,ha=J.version,da=L.jar(),ja={};k.inherits(e,h.Stream);e.debug=O.env.NODE_DEBUG&&/\brequest\b/.test(O.env.NODE_DEBUG);e.prototype.debug=t;e.prototype.init=function(Z){function ba(){R(X.body)&&(X.body=D.from(X.body));if(!X.hasHeader("content-length")){var ta;(ta="string"=== typeof X.body?D.byteLength(X.body):Array.isArray(X.body)?X.body.reduce(function(ya,Aa){return ya+Aa.length},0):X.body.length)?X.setHeader("content-length",ta):X.emit("error",Error("Argument error, options.body."))}}var X=this;Z||(Z={});X.headers=X.headers?ca(X.headers):{};for(var oa in X.headers)"undefined"===typeof X.headers[oa]&&delete X.headers[oa];C.httpify(X,X.headers);X.method||(X.method=Z.method||"GET");X.localAddress||(X.localAddress=Z.localAddress);X._qs.init(Z);t(Z);X.pool||!1===X.pool|| (X.pool=ja);X.dests=X.dests||[];X.__isRequestRequest=!0;!X._callback&&X.callback&&(X._callback=X.callback,X.callback=function(){X._callbackCalled||(X._callbackCalled=!0,X._callback.apply(X,arguments))},X.on("error",X.callback.bind()),X.on("complete",X.callback.bind(X,null)));!X.uri&&X.url&&(X.uri=X.url,delete X.url);if(X.baseUrl){if("string"!==typeof X.baseUrl)return X.emit("error",Error("options.baseUrl must be a string"));if("string"!==typeof X.uri)return X.emit("error",Error("options.uri must be a string when using options.baseUrl")); if(0===X.uri.indexOf("//")||-1!==X.uri.indexOf("://"))return X.emit("error",Error("options.uri must be a path when using options.baseUrl"));oa=X.baseUrl.lastIndexOf("/")===X.baseUrl.length-1;var sa=0===X.uri.indexOf("/");X.uri=oa&&sa?X.baseUrl+X.uri.slice(1):oa||sa?X.baseUrl+X.uri:""===X.uri?X.baseUrl:X.baseUrl+"/"+X.uri;delete X.baseUrl}if(!X.uri)return X.emit("error",Error("options.uri is a required argument"));"string"===typeof X.uri&&(X.uri=l.parse(X.uri));X.uri.href||(X.uri.href=l.format(X.uri)); if("unix:"===X.uri.protocol)return X.emit("error",Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"));"unix"===X.uri.host&&X.enableUnixSocket();!1===X.strictSSL&&(X.rejectUnauthorized=!1);X.uri.pathname||(X.uri.pathname="/");if(!(X.uri.host||X.uri.hostname&&X.uri.port||X.uri.isUnix)){var ka='Invalid URI "'+l.format(X.uri)+'"';0===Object.keys(Z).length&&(ka+=". This can be caused by a crappy redirection.");X.abort();return X.emit("error",Error(ka))}X.hasOwnProperty("proxy")|| (X.proxy=V(X.uri));X.tunnel=X._tunnel.isEnabled();X.proxy&&X._tunnel.setup(Z);X._redirect.onRequest(Z);X.setHost=!1;X.hasHeader("host")||(oa=X.originalHostHeaderName||"host",X.setHeader(oa,X.uri.host),X.uri.port&&("80"===X.uri.port&&"http:"===X.uri.protocol||"443"===X.uri.port&&"https:"===X.uri.protocol)&&X.setHeader(oa,X.uri.hostname),X.setHost=!0);X.jar(X._jar||Z.jar);X.uri.port||("http:"===X.uri.protocol?X.uri.port=80:"https:"===X.uri.protocol&&(X.uri.port=443));X.proxy&&!X.tunnel?(X.port=X.proxy.port, X.host=X.proxy.hostname):(X.port=X.uri.port,X.host=X.uri.hostname);Z.form&&X.form(Z.form);if(Z.formData){oa=Z.formData;var va=X.form();sa=function(ta,ya){ya&&ya.hasOwnProperty("value")&&ya.hasOwnProperty("options")?va.append(ta,ya.value,ya.options):va.append(ta,ya)};for(ka in oa)if(oa.hasOwnProperty(ka)){var ua=oa[ka];if(ua instanceof Array)for(var wa=0;wa=Z.minor?X.agentClass="http:"===ka?z:z.SSL:(X.agentClass=X.httpModule.Agent,X.agentOptions=X.agentOptions||{},X.agentOptions.keepAlive= !0)):X.agentClass=X.httpModule.Agent);X.agent=!1===X.pool?!1:X.agent||X.getNewAgent();X.on("pipe",function(ta){X.ntick&&X._started&&X.emit("error",Error("You cannot pipe to this stream after the outbound request has started."));X.src=ta;if(G(ta))X.hasHeader("content-type")||X.setHeader("content-type",B.lookup(ta.path));else{if(ta.headers)for(var ya in ta.headers)X.hasHeader(ya)||X.setHeader(ya,ta.headers[ya]);X._json&&!X.hasHeader("content-type")&&X.setHeader("content-type","application/json");ta.method&& !X.explicitMethod&&(X.method=ta.method)}});U(function(){if(!X._aborted){var ta=function(){X._form&&(X._auth.hasAuth?X._auth.hasAuth&&X._auth.sentAuth&&X._form.pipe(X):X._form.pipe(X));X._multipart&&X._multipart.chunked&&X._multipart.body.pipe(X);X.body?M(X.body)?X.body.pipe(X):(ba(),Array.isArray(X.body)?X.body.forEach(function(ya){X.write(ya)}):X.write(X.body),X.end()):X.requestBodyStream?(console.warn("options.requestBodyStream is deprecated, please pass the request object to stream.pipe."),X.requestBodyStream.pipe(X)): X.src||(X._auth.hasAuth&&!X._auth.sentAuth||"GET"===X.method||"undefined"===typeof X.method||X.setHeader("content-length",0),X.end())};X._form&&!X.hasHeader("content-length")?(X.setHeader(X._form.getHeaders(),!0),X._form.getLength(function(ya,Aa){ya||isNaN(Aa)||X.setHeader("content-length",Aa);ta()})):ta();X.ntick=!0}})};e.prototype.getNewAgent=function(){var Z=this.agentClass,ba={};if(this.agentOptions)for(var X in this.agentOptions)ba[X]=this.agentOptions[X];this.ca&&(ba.ca=this.ca);this.ciphers&& (ba.ciphers=this.ciphers);this.secureProtocol&&(ba.secureProtocol=this.secureProtocol);this.secureOptions&&(ba.secureOptions=this.secureOptions);"undefined"!==typeof this.rejectUnauthorized&&(ba.rejectUnauthorized=this.rejectUnauthorized);this.cert&&this.key&&(ba.key=this.key,ba.cert=this.cert);this.pfx&&(ba.pfx=this.pfx);this.passphrase&&(ba.passphrase=this.passphrase);X="";Z!==this.httpModule.Agent&&(X+=Z.name);var oa=this.proxy;"string"===typeof oa&&(oa=l.parse(oa));if(oa&&"https:"===oa.protocol|| "https:"===this.uri.protocol)ba.ca&&(X&&(X+=":"),X+=ba.ca),"undefined"!==typeof ba.rejectUnauthorized&&(X&&(X+=":"),X+=ba.rejectUnauthorized),ba.cert&&(X&&(X+=":"),X+=ba.cert.toString("ascii")+ba.key.toString("ascii")),ba.pfx&&(X&&(X+=":"),X+=ba.pfx.toString("ascii")),ba.ciphers&&(X&&(X+=":"),X+=ba.ciphers),ba.secureProtocol&&(X&&(X+=":"),X+=ba.secureProtocol),ba.secureOptions&&(X&&(X+=":"),X+=ba.secureOptions);if(this.pool===ja&&!X&&0===Object.keys(ba).length&&this.httpModule.globalAgent)return this.httpModule.globalAgent; X=this.uri.protocol+X;this.pool[X]||(this.pool[X]=new Z(ba),this.pool.maxSockets&&(this.pool[X].maxSockets=this.pool.maxSockets));return this.pool[X]};e.prototype.start=function(){var Z=this;if(Z.timing)var ba=(new Date).getTime(),X=A();if(!Z._aborted){Z._started=!0;Z.method=Z.method||"GET";Z.href=Z.uri.href;Z.src&&Z.src.stat&&Z.src.stat.size&&!Z.hasHeader("content-length")&&Z.setHeader("content-length",Z.src.stat.size);Z._aws&&Z.aws(Z._aws,!0);var oa=ca(Z);delete oa.auth;t("make request",Z.uri.href); delete oa.timeout;try{Z.req=Z.httpModule.request(oa)}catch(ka){Z.emit("error",ka);return}Z.timing&&(Z.startTime=ba,Z.startTimeNow=X,Z.timings={});if(Z.timeout&&!Z.timeoutTimer)if(0>Z.timeout)var sa=0;else"number"===typeof Z.timeout&&isFinite(Z.timeout)&&(sa=Z.timeout);Z.req.on("response",Z.onRequestResponse.bind(Z));Z.req.on("error",Z.onRequestError.bind(Z));Z.req.on("drain",function(){Z.emit("drain")});Z.req.on("socket",function(ka){var va=ka._connecting||ka.connecting;if(Z.timing&&(Z.timings.socket= A()-Z.startTimeNow,va)){var ua=function(){Z.timings.lookup=A()-Z.startTimeNow},wa=function(){Z.timings.connect=A()-Z.startTimeNow};ka.once("lookup",ua);ka.once("connect",wa);Z.req.once("error",function(){ka.removeListener("lookup",ua);ka.removeListener("connect",wa)})}var ta=function(){Z.req.setTimeout(sa,function(){if(Z.req){Z.abort();var Aa=Error("ESOCKETTIMEDOUT");Aa.code="ESOCKETTIMEDOUT";Aa.connect=!1;Z.emit("error",Aa)}})};if(void 0!==sa)if(va){var ya=function(){ka.removeListener("connect", ya);Z.clearTimeout();ta()};ka.on("connect",ya);Z.req.on("error",function(Aa){ka.removeListener("connect",ya)});Z.timeoutTimer=setTimeout(function(){ka.removeListener("connect",ya);Z.abort();var Aa=Error("ETIMEDOUT");Aa.code="ETIMEDOUT";Aa.connect=!0;Z.emit("error",Aa)},sa)}else ta();Z.emit("socket",ka)});Z.emit("request",Z.req)}};e.prototype.onRequestError=function(Z){this._aborted||(this.req&&this.req._reusedSocket&&"ECONNRESET"===Z.code&&this.agent.addRequestNoreuse?(this.agent={addRequest:this.agent.addRequestNoreuse.bind(this.agent)}, this.start(),this.req.end()):(this.clearTimeout(),this.emit("error",Z)))};e.prototype.onRequestResponse=function(Z){var ba=this;ba.timing&&(ba.timings.response=A()-ba.startTimeNow);t("onRequestResponse",ba.uri.href,Z.statusCode,Z.headers);Z.on("end",function(){ba.timing&&(ba.timings.end=A()-ba.startTimeNow,Z.timingStart=ba.startTime,ba.timings.socket||(ba.timings.socket=0),ba.timings.lookup||(ba.timings.lookup=ba.timings.socket),ba.timings.connect||(ba.timings.connect=ba.timings.lookup),ba.timings.response|| (ba.timings.response=ba.timings.connect),t("elapsed time",ba.timings.end),ba.elapsedTime+=Math.round(ba.timings.end),Z.elapsedTime=ba.elapsedTime,Z.timings=ba.timings,Z.timingPhases={wait:ba.timings.socket,dns:ba.timings.lookup-ba.timings.socket,tcp:ba.timings.connect-ba.timings.lookup,firstByte:ba.timings.response-ba.timings.connect,download:ba.timings.end-ba.timings.response,total:ba.timings.end});t("response end",ba.uri.href,Z.statusCode,Z.headers)});if(ba._aborted)t("aborted",ba.uri.href),Z.resume(); else if(ba.response=Z,Z.request=ba,Z.toJSON=x,ba.httpModule!==n||!ba.strictSSL||Z.hasOwnProperty("socket")&&Z.socket.authorized){ba.originalHost=ba.getHeader("host");ba.originalHostHeaderName||(ba.originalHostHeaderName=ba.hasHeader("host"));ba.setHost&&ba.removeHeader("host");ba.clearTimeout();var X=ba._jar&&ba._jar.setCookie?ba._jar:da,oa=function(ka){try{X.setCookie(ka,ba.uri.href,{ignoreError:!0})}catch(va){ba.emit("error",va)}};Z.caseless=C(Z.headers);if(Z.caseless.has("set-cookie")&&!ba._disableCookies){var sa= Z.caseless.has("set-cookie");Array.isArray(Z.headers[sa])?Z.headers[sa].forEach(oa):oa(Z.headers[sa])}if(!ba._redirect.onResponse(Z)){Z.on("close",function(){ba._ended||ba.response.emit("end")});Z.once("end",function(){ba._ended=!0});oa=function(ka){return"HEAD"===ba.method||100<=ka&&200>ka||204===ka||304===ka};ba.gzip&&!oa(Z.statusCode)?(oa=Z.headers["content-encoding"]||"identity",oa=oa.trim().toLowerCase(),sa={flush:m.Z_SYNC_FLUSH,finishFlush:m.Z_SYNC_FLUSH},"gzip"===oa?(oa=m.createGunzip(sa), Z.pipe(oa)):"deflate"===oa?(oa=m.createInflate(sa),Z.pipe(oa)):("identity"!==oa&&t("ignoring unrecognized Content-Encoding "+oa),oa=Z)):oa=Z;ba.encoding&&(0!==ba.dests.length?console.error("Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid."):oa.setEncoding(ba.encoding));ba._paused&&oa.pause();ba.responseContent=oa;ba.emit("response",Z);ba.dests.forEach(function(ka){ba.pipeDest(ka)});oa.on("data",function(ka){ba.timing&&!ba.responseStarted&& (ba.responseStartTime=(new Date).getTime(),Z.responseStartTime=ba.responseStartTime);ba._destdata=!0;ba.emit("data",ka)});oa.once("end",function(ka){ba.emit("end",ka)});oa.on("error",function(ka){ba.emit("error",ka)});oa.on("close",function(){ba.emit("close")});if(ba.callback)ba.readResponseBody(Z);else ba.on("end",function(){ba._aborted?t("aborted",ba.uri.href):ba.emit("complete",Z)});t("finish init function",ba.uri.href)}}else t("strict ssl error",ba.uri.href),oa=Z.hasOwnProperty("socket")?Z.socket.authorizationError: ba.uri.href+" does not support SSL",ba.emit("error",Error("SSL Error: "+oa))};e.prototype.readResponseBody=function(Z){var ba=this;t("reading response's body");var X=[],oa=0,sa=[];ba.on("data",function(ka){D.isBuffer(ka)?ka.length&&(oa+=ka.length,X.push(ka)):sa.push(ka)});ba.on("end",function(){t("end event",ba.uri.href);if(ba._aborted)t("aborted",ba.uri.href),X=[],oa=0;else{oa?(t("has body",ba.uri.href,oa),Z.body=D.concat(X,oa),null!==ba.encoding&&(Z.body=Z.body.toString(ba.encoding)),X=[],oa=0): sa.length&&("utf8"===ba.encoding&&0m._connectInterval?2*m._connectInterval:32E4:5E3:m._usedFirstReconnect?m._connectInterval=16E3>m._connectInterval?m._connectInterval+250:16E3:(m._connectInterval=0,m._usedFirstReconnect=!0);m._scheduledReconnect= setTimeout(function(){m._startPersistentConnection()},m._connectInterval);m.emit("reconnect",m.request,m.response,m._connectInterval)}},{key:"_setupParser",value:function(){var m=this;m.parser=new n.default;m.parser.on("element",function(p){m.emit("message",p)});m.parser.on("error",function(p){m.emit("parser-error",p)});m.parser.on("connection-limit-exceeded",function(p){m.emit("error",p)})}},{key:"_handleDisconnect",value:function(m){this.emit("disconnect",m);this.stop()}}]);return h}(O.EventEmitter); J.default=E}; shadow$provide[400]=function(O,E,S,J){function g(v){return v&&v.__esModule?v:{default:v}}var x=E(28);"use strict";var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(v){return typeof v}:function(v){return v&&"function"===typeof Symbol&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},t=function(){function v(r,B){for(var C=0;C>>0),ia=0;function ja(a,b,c){return a.call.apply(a.bind,arguments)} function ka(a,b,c){if(!a)throw Error();if(2/g,sa=/"/g,ta=/'/g,ua=/\x00/g,va=/[\x00&<>"']/;function wa(a){const b=[];let c=0;for(const d in a)b[c++]=d;return b}function ya(a,b){return null!==a&&b in a?a[b]:void 0};function Aa(){var a=aa.navigator;return a&&(a=a.userAgent)?a:""}function Ba(a){return-1!=Aa().indexOf(a)};function Ca(a){const b=a.length;if(0b?1:a=a||"€"<=a&&"�">=a}var Ia=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};function Ja(a,b){if(!Number.isFinite(a))return String(a);a=String(a);let c=a.indexOf(".");-1===c&&(c=a.length);const d="-"===a[0]?"-":"";d&&(a=a.substring(1));return d+Ia("0",Math.max(0,b-c))+a};function Ka(a){if(a.Bc&&"function"==typeof a.Bc)return a.Bc();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(ca(a)){for(var b=[],c=a.length,d=0;db)throw Error("Bad port number "+b);a.Uc=b}else a.Uc=null} h.hasPort=function(){return null!=this.Uc};h.getPath=function(){return this.Tc};function Va(a,b,c){Sa(a);b instanceof Xa?(a.Sb=b,a.Sb.be(a.Gb)):(c||(b=Ya(b,cb)),a.Sb=new Xa(b,a.Gb))}h.getQuery=function(){return this.Sb.toString()};h.removeParameter=function(a){Sa(this);this.Sb.remove(a);return this};function Sa(a){if(a.qf)throw Error("Tried to modify a read-only Uri");}h.be=function(a){this.Gb=a;this.Sb&&this.Sb.be(a)}; function Wa(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Ya(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,db),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function db(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Za=/[#\/\?@]/g,ab=/[#\?:]/g,$a=/[#\?]/g,cb=/[#\?@]/g,bb=/#/g;function Xa(a,b){this.vb=this.Ia=null;this.Bb=a||null;this.Gb=!!b} function eb(a){a.Ia||(a.Ia=new Map,a.vb=0,a.Bb&&Oa(a.Bb,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))}h=Xa.prototype;h.add=function(a,b){eb(this);this.Bb=null;a=fb(this,a);var c=this.Ia.get(a);c||this.Ia.set(a,c=[]);c.push(b);this.vb+=1;return this};h.remove=function(a){eb(this);a=fb(this,a);return this.Ia.has(a)?(this.Bb=null,this.vb-=this.Ia.get(a).length,this.Ia.delete(a)):!1};h.clear=function(){this.Ia=this.Bb=null;this.vb=0};h.isEmpty=function(){eb(this);return 0==this.vb}; function gb(a,b){eb(a);b=fb(a,b);return a.Ia.has(b)}h.forEach=function(a,b){eb(this);this.Ia.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};h.Zd=function(){eb(this);const a=Array.from(this.Ia.values()),b=Array.from(this.Ia.keys()),c=[];for(let d=0;d>>16&65535)*d+c*(b>>>16&65535)<<16>>>0)|0};function od(a){a=nd(a|0,-862048943);return nd(a<<15|a>>>-15,461845907)}function pd(a,b){a=(a|0)^(b|0);return nd(a<<13|a>>>-13,5)+-430675100|0}function qd(a,b){a=(a|0)^b;a=nd(a^a>>>16,-2048144789);a=nd(a^a>>>13,-1028477387);return a^a>>>16}var rd={},sd=0; function td(a){255>2)} function xd(a,b){if(a.bc===b.bc)return 0;var c=zb(a.lb);if(r(c?b.lb:c))return-1;if(r(a.lb)){if(zb(b.lb))return 1;c=Fa(a.lb,b.lb);return 0===c?Fa(a.name,b.name):c}return Fa(a.name,b.name)}function y(a,b,c,d,e){this.lb=a;this.name=b;this.bc=c;this._hash=d;this.Db=e;this.J=2154168321;this.T=4096}h=y.prototype;h.toString=function(){return this.bc};h.oa=function(a,b){return b instanceof y?this.bc===b.bc:!1}; h.call=function(a){switch(arguments.length-1){case 1:return this.A(arguments[1]);case 2:return this.B(arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",u.A(arguments.length-1)].join(""));}};h.apply=function(a,b){return this.call.apply(this,[this].concat(Nb(b)))};h.A=function(a){return z?z(a,this):yd.call(null,a,this)};h.B=function(a,b){return zd?zd(a,this,b):yd.call(null,a,this,b)};h.fa=function(){return this.Db}; h.ga=function(a,b){return new y(this.lb,this.name,this.bc,this._hash,b)};h.pa=function(){var a=this._hash;return null!=a?a:this._hash=a=wd(this)};h.Zc=function(){return this.name};h.$c=function(){return this.lb};h.la=function(a,b){return x(b,this.bc)};var Ad=function Ad(a){switch(arguments.length){case 1:return Ad.A(arguments[0]);case 2:return Ad.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}}; Ad.A=function(a){for(;;){if(a instanceof y)return a;if("string"===typeof a){var b=a.indexOf("/");return 1>b?Ad.B(null,a):Ad.B(a.substring(0,b),a.substring(b+1,a.length))}if(a instanceof Bd)return a.Dc;if(a instanceof B)a=a.ta;else throw Error("no conversion to symbol");}};Ad.B=function(a,b){var c=null!=a?[u.A(a),"/",u.A(b)].join(""):b;return new y(a,b,c,null,null)};Ad.O=2;function Bd(a,b,c){this.val=a;this.Dc=b;this.Db=c;this.J=6717441;this.T=0}h=Bd.prototype;h.toString=function(){return["#'",u.A(this.Dc)].join("")}; h.Ib=function(){return this.val.I?this.val.I():this.val.call(null)};h.fa=function(){return this.Db};h.ga=function(a,b){return new Bd(this.val,this.Dc,b)};h.oa=function(a,b){return b instanceof Bd?(a=this.Dc,b=b.Dc,C.B?C.B(a,b):C.call(null,a,b)):!1};h.pa=function(){return wd(this.Dc)};h.ge=n; h.call=function(a){switch(arguments.length-1){case 0:return this.I();case 1:return this.A(arguments[1]);case 2:return this.B(arguments[1],arguments[2]);case 3:return this.C(arguments[1],arguments[2],arguments[3]);case 4:return this.U(arguments[1],arguments[2],arguments[3],arguments[4]);case 5:return this.ia(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);case 6:return this.La(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]);case 7:return this.Oa(arguments[1], arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7]);case 8:return this.Pa(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8]);case 9:return this.gb(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9]);case 10:return this.Va(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10]); case 11:return this.Wa(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11]);case 12:return this.Xa(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12]);case 13:return this.Ya(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10], arguments[11],arguments[12],arguments[13]);case 14:return this.Za(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14]);case 15:return this.$a(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15]);case 16:return this.ab(arguments[1], arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16]);case 17:return this.bb(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16],arguments[17]);case 18:return this.cb(arguments[1],arguments[2], arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16],arguments[17],arguments[18]);case 19:return this.eb(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16],arguments[17],arguments[18],arguments[19]);case 20:return this.fb(arguments[1], arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16],arguments[17],arguments[18],arguments[19],arguments[20]);case 21:return this.hc(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16],arguments[17], arguments[18],arguments[19],arguments[20],arguments[21]);default:throw Error(["Invalid arity: ",u.A(arguments.length-1)].join(""));}};h.apply=function(a,b){return this.call.apply(this,[this].concat(Nb(b)))};h.I=function(){var a=this.val.I?this.val.I():this.val.call(null);return a.I?a.I():a.call(null)};h.A=function(a){var b=this.val.I?this.val.I():this.val.call(null);return b.A?b.A(a):b.call(null,a)}; h.B=function(a,b){var c=this.val.I?this.val.I():this.val.call(null);return c.B?c.B(a,b):c.call(null,a,b)};h.C=function(a,b,c){var d=this.val.I?this.val.I():this.val.call(null);return d.C?d.C(a,b,c):d.call(null,a,b,c)};h.U=function(a,b,c,d){var e=this.val.I?this.val.I():this.val.call(null);return e.U?e.U(a,b,c,d):e.call(null,a,b,c,d)};h.ia=function(a,b,c,d,e){var f=this.val.I?this.val.I():this.val.call(null);return f.ia?f.ia(a,b,c,d,e):f.call(null,a,b,c,d,e)}; h.La=function(a,b,c,d,e,f){var g=this.val.I?this.val.I():this.val.call(null);return g.La?g.La(a,b,c,d,e,f):g.call(null,a,b,c,d,e,f)};h.Oa=function(a,b,c,d,e,f,g){var k=this.val.I?this.val.I():this.val.call(null);return k.Oa?k.Oa(a,b,c,d,e,f,g):k.call(null,a,b,c,d,e,f,g)};h.Pa=function(a,b,c,d,e,f,g,k){var l=this.val.I?this.val.I():this.val.call(null);return l.Pa?l.Pa(a,b,c,d,e,f,g,k):l.call(null,a,b,c,d,e,f,g,k)}; h.gb=function(a,b,c,d,e,f,g,k,l){var m=this.val.I?this.val.I():this.val.call(null);return m.gb?m.gb(a,b,c,d,e,f,g,k,l):m.call(null,a,b,c,d,e,f,g,k,l)};h.Va=function(a,b,c,d,e,f,g,k,l,m){var p=this.val.I?this.val.I():this.val.call(null);return p.Va?p.Va(a,b,c,d,e,f,g,k,l,m):p.call(null,a,b,c,d,e,f,g,k,l,m)};h.Wa=function(a,b,c,d,e,f,g,k,l,m,p){var t=this.val.I?this.val.I():this.val.call(null);return t.Wa?t.Wa(a,b,c,d,e,f,g,k,l,m,p):t.call(null,a,b,c,d,e,f,g,k,l,m,p)}; h.Xa=function(a,b,c,d,e,f,g,k,l,m,p,t){var v=this.val.I?this.val.I():this.val.call(null);return v.Xa?v.Xa(a,b,c,d,e,f,g,k,l,m,p,t):v.call(null,a,b,c,d,e,f,g,k,l,m,p,t)};h.Ya=function(a,b,c,d,e,f,g,k,l,m,p,t,v){var A=this.val.I?this.val.I():this.val.call(null);return A.Ya?A.Ya(a,b,c,d,e,f,g,k,l,m,p,t,v):A.call(null,a,b,c,d,e,f,g,k,l,m,p,t,v)}; h.Za=function(a,b,c,d,e,f,g,k,l,m,p,t,v,A){var F=this.val.I?this.val.I():this.val.call(null);return F.Za?F.Za(a,b,c,d,e,f,g,k,l,m,p,t,v,A):F.call(null,a,b,c,d,e,f,g,k,l,m,p,t,v,A)};h.$a=function(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F){var K=this.val.I?this.val.I():this.val.call(null);return K.$a?K.$a(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F):K.call(null,a,b,c,d,e,f,g,k,l,m,p,t,v,A,F)}; h.ab=function(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K){var H=this.val.I?this.val.I():this.val.call(null);return H.ab?H.ab(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K):H.call(null,a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K)};h.bb=function(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H){var T=this.val.I?this.val.I():this.val.call(null);return T.bb?T.bb(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H):T.call(null,a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H)}; h.cb=function(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T){var P=this.val.I?this.val.I():this.val.call(null);return P.cb?P.cb(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T):P.call(null,a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T)};h.eb=function(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T,P){var ha=this.val.I?this.val.I():this.val.call(null);return ha.eb?ha.eb(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T,P):ha.call(null,a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T,P)}; h.fb=function(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T,P,ha){var da=this.val.I?this.val.I():this.val.call(null);return da.fb?da.fb(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T,P,ha):da.call(null,a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T,P,ha)};h.hc=function(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T,P,ha,da){var pa=this.val.I?this.val.I():this.val.call(null);return D.hc?D.hc(pa,a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T,P,new E([ha,da],0,null)):D.call(null,pa,a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T,P,ha,da)}; function Cd(a){return null!=a?a.T&131072||n===a.Pg?!0:a.T?!1:Eb(id,a):Eb(id,a)}function G(a){if(null==a)return null;if(null!=a&&(a.J&8388608||n===a.le))return a.ma(null);if(xb(a)||"string"===typeof a)return 0===a.length?null:new E(a,0,null);if(null!=a&&null!=a[Jb])return a=ya(a,Jb).call(a),Dd.A?Dd.A(a):Dd.call(null,a);if(Eb(Jc,a))return Kc(a);throw Error([u.A(a)," is not ISeqable"].join(""));} function I(a){if(null==a)return null;if(null!=a&&(a.J&64||n===a.Jc))return a.Ga(null);a=G(a);return null==a?null:dc(a)}function Ed(a){return null!=a?null!=a&&(a.J&64||n===a.Jc)?a.Ha(null):(a=G(a))?a.Ha(null):Fd:Fd}function J(a){return null==a?null:null!=a&&(a.J&128||n===a.ad)?a.Ca(null):G(Ed(a))} var C=function C(a){switch(arguments.length){case 1:return C.A(arguments[0]);case 2:return C.B(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e=d)return-1;!(0c&&(c+=d,c=0>c?0:c);for(;;)if(cc?d+c:c;for(;;)if(0<=c){if(C.B(be?be(a,c):ce.call(null,a,c),b))return c;--c}else return-1}function ee(a,b){this.D=a;this.i=b}ee.prototype.Da=function(){return this.ia?0:a};h.bd=function(){var a=this.na(null);return 0b)throw Error("Index out of bounds");a:for(;;){if(null==a)throw Error("Index out of bounds"); if(0===b){if(G(a)){a=I(a);break a}throw Error("Index out of bounds");}if($d(a)){a=ac(a,b);break a}if(G(a))a=J(a),--b;else throw Error("Index out of bounds");}return a}if(Eb($b,a))return ac(a,b);throw Error(["nth not supported on this type ",u.A(Ib(Fb(a)))].join(""));} function O(a,b,c){if("number"!==typeof b)throw Error("Index argument to nth must be a number.");if(null==a)return c;if(null!=a&&(a.J&16||n===a.ke))return a.hb(null,b,c);if(xb(a))return-1b?c:re(a,b,c);if(Eb($b,a))return ac(a,b,c);throw Error(["nth not supported on this type ",u.A(Ib(Fb(a)))].join(""));} function yd(a){switch(arguments.length){case 2:return z(arguments[0],arguments[1]);case 3:return zd(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}}function z(a,b){return null==a?null:null!=a&&(a.J&256||n===a.Ve)?a.Aa(null,b):xb(a)?null!=b&&ba:!1}function Ve(a){return Re(a)?!(0>a):!1}function We(a){return"number"===typeof a}function Xe(a){return"number"===typeof a}function Ye(a,b){return null!=a&&(a.J&512||n===a.he)?a.ob(null,b):Eb(kc,a)?lc(a,b):zd(a,b,Je)===Je?!1:!0} function Ze(a,b){if(a===b)return 0;if(null==a)return-1;if(null==b)return 1;if("number"===typeof a){if("number"===typeof b)return Fa(a,b);throw Error(["Cannot compare ",u.A(a)," to ",u.A(b)].join(""));}if(null!=a?a.T&2048||n===a.Gc||(a.T?0:Eb(Zc,a)):Eb(Zc,a))return $c(a,b);if("string"!==typeof a&&!xb(a)&&!0!==a&&!1!==a||Fb(a)!==Fb(b))throw Error(["Cannot compare ",u.A(a)," to ",u.A(b)].join(""));return Fa(a,b)} function $e(a,b){var c=M(a),d=M(b);if(cd)a=1;else if(0===c)a=0;else a:for(d=0;;){var e=Ze(be(a,d),be(b,d));if(0===e&&d+1>1&1431655765;a=(a&858993459)+(a>>2&858993459);return 16843009*(a+(a>>4)&252645135)>>24}function sf(a){switch(arguments.length){case 1:return!0;case 2:return Hc(arguments[0],arguments[1]);default:for(var b=[],c=arguments.length,d=0;;)if(da?0:a-1>>>5<<5} function Ug(a,b,c){for(;;){if(0===b)return c;var d=Rg(a);d.D[0]=c;c=d;b-=5}}var Vg=function Vg(a,b,c,d){var f=Sg(c),g=a.M-1>>>b&31;5===b?f.D[g]=d:(c=c.D[g],null!=c?(b-=5,a=Vg.U?Vg.U(a,b,c,d):Vg.call(null,a,b,c,d)):a=Ug(null,b-5,d),f.D[g]=a);return f};function Wg(a,b){throw Error(["No item ",u.A(a)," in vector of length ",u.A(b)].join(""));}function Xg(a,b){if(b>=Tg(a))return a.tail;var c=a.root;for(a=a.shift;;)if(0>>a&31];a=d}else return c.D} function Yg(a,b){return 0<=b&&b>>b&31;b-=5;c=c.D[k];a=Zg.ia?Zg.ia(a,b,c,d,e):Zg.call(null,a,b,c,d,e);g.D[k]=a}return g},$g=function $g(a,b,c){var e=a.M-2>>>b&31;if(5=this.M)return new E(this.tail,0,null);a:{var a=this.root;for(var b=this.shift;;)if(0this.M-Tg(this)){a=this.tail.length;for(var c=Array(a+1),d=0;;)if(d>>5>1<c)return new W(null,c,5,X,a,null);var d=a.slice(0,32);b=32;for(var e=(new W(null,32,5,X,d,null)).Hc(null);;)if(bb)return null;a=this.start+b;return ab||this.end<=this.start+b?Wg(b,this.end-this.start):ac(this.v,this.start+b)};h.hb=function(a,b,c){return 0>b||this.end<=this.start+b?c:ac(this.v,this.start+b,c)}; h.xc=function(a,b,c){a=this.start+b;if(0>b||this.end+1<=a)throw Error(["Index ",u.A(b)," out of bounds [0,",u.A(this.na(null)),"]"].join(""));b=this.meta;c=Q.C(this.v,a,c);var d=this.start,e=this.end;a+=1;a=e>a?e:a;return th.ia?th.ia(b,c,d,a,null):th.call(null,b,c,d,a,null)};h.Ea=function(){return null!=this.v&&n===this.v.Od?bh(this.v,this.start,this.end):new jg(this)};h.fa=function(){return this.meta};h.na=function(){return this.end-this.start}; h.vc=function(){return this.start===this.end?null:ac(this.v,this.end-1)};h.wc=function(){if(this.start===this.end)throw Error("Can't pop empty vector");var a=this.meta,b=this.v,c=this.start,d=this.end-1;return th.ia?th.ia(a,b,c,d,null):th.call(null,a,b,c,d,null)};h.bd=function(){return this.start!==this.end?new fe(this,this.end-this.start-1,null):null};h.pa=function(){var a=this.N;return null!=a?a:this.N=a=Kd(this)};h.oa=function(a,b){return ge(this,b)};h.ya=function(){return Bc(oe,this.meta)}; h.Ja=function(a,b){return null!=this.v&&n===this.v.Od?ch(this.v,b,this.start,this.end):Ud(this,b)};h.Ka=function(a,b,c){return null!=this.v&&n===this.v.Od?dh(this.v,b,c,this.start,this.end):Vd(this,b,c)};h.za=function(a,b,c){if("number"===typeof b)return this.xc(null,b,c);throw Error("Subvec's key for assoc must be a number.");};h.ob=function(a,b){return Re(b)?0<=b&&bc||dM(b))throw Error("Index out of bounds");return new sh(a,b,c,d,e)}}function uh(a,b){return a===b.va?b:new Qg(a,Nb(b.D))}function gh(a){return new Qg({},Nb(a.D))} function hh(a){var b=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null];Ie(a,0,b,0,a.length);return b}var vh=function vh(a,b,c,d){c=uh(a.root.va,c);var f=a.M-1>>>b&31;if(5===b)a=d;else{var g=c.D[f];null!=g?(b-=5,a=vh.U?vh.U(a,b,g,d):vh.call(null,a,b,g,d)):a=Ug(a.root.va,b-5,d)}c.D[f]=a;return c};function fh(a,b,c,d){this.M=a;this.shift=b;this.root=c;this.tail=d;this.T=88;this.J=275}h=fh.prototype; h.Lc=function(a,b){if(this.root.va){if(32>this.M-Tg(this))this.tail[this.M&31]=b;else{a=new Qg(this.root.va,this.tail);var c=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null];c[0]=b;this.tail=c;this.M>>>5>1<>>f&31;f=k(f-5,g.D[l]);g.D[l]=f}return g}(a.shift,a.root);a.root=d}return a}if(b===a.M)return a.Lc(null,c);throw Error(["Index ",u.A(b)," out of bounds for TransientVector of length",u.A(a.M)].join(""));}throw Error("assoc! after persistent!");}h.na=function(){if(this.root.va)return this.M;throw Error("count after persistent!");}; h.ua=function(a,b){if(this.root.va)return Yg(this,b)[b&31];throw Error("nth after persistent!");};h.hb=function(a,b,c){return 0<=b&&b=a)return new q(this.meta,this.M-1,c,null);C.B(b,this.D[d])?d+=2:(c[e]=this.D[d],c[e+1]=this.D[d+1],e+=2,d+=2)}}else return this}; h.za=function(a,b,c){a=Hh(this.D,b);if(-1===a){if(this.M=e){if(Ph(c[e],c[g]))return g;g-=2}else return g}(),a[f]=c[e],a[f+1]=c[b+1],b=2+f,e=2+e,f=b);else break;return new q(null,a.length/2,a,null)}return new q(null,c.length/2,c,null)}q.prototype[Jb]=function(){return Hd(this)}; function Mh(a,b){this.Mc={};this.Cc=a;this.D=b;this.J=259;this.T=56}h=Mh.prototype;h.na=function(){if(this.Mc)return pf(this.Cc,2);throw Error("count after persistent!");};h.Aa=function(a,b){return this.ka(null,b,null)};h.ka=function(a,b,c){if(this.Mc)return a=Hh(this.D,b),-1===a?c:this.D[a+1];throw Error("lookup after persistent!");}; h.Lc=function(a,b){if(this.Mc){if(mh(b))return this.Kc(null,nh.A?nh.A(b):nh.call(null,b),oh.A?oh.A(b):oh.call(null,b));if(Ge(b))return this.Kc(null,b.A?b.A(0):b.call(null,0),b.A?b.A(1):b.call(null,1));a=G(b);for(b=this;;){var c=I(a);if(r(c))a=J(a),b=Yc(b,nh.A?nh.A(c):nh.call(null,c),oh.A?oh.A(c):oh.call(null,c));else return b}}else throw Error("conj! after persistent!");};h.cd=function(){if(this.Mc)return this.Mc=!1,new q(null,pf(this.Cc,2),this.D,null);throw Error("persistent! called twice");}; h.Kc=function(a,b,c){if(this.Mc){a=Hh(this.D,b);if(-1===a)return this.Cc+2<=2*Nh?(this.Cc+=2,this.D.push(b),this.D.push(c),this):Wf(Th.B?Th.B(this.Cc,this.D):Th.call(null,this.Cc,this.D),b,c);c!==this.D[a+1]&&(this.D[a+1]=c);return this}throw Error("assoc! after persistent!");};h.call=function(a){switch(arguments.length-1){case 1:return this.A(arguments[1]);case 2:return this.B(arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",u.A(arguments.length-1)].join(""));}}; h.apply=function(a,b){return this.call.apply(this,[this].concat(Nb(b)))};h.A=function(a){return this.ka(null,a,null)};h.B=function(a,b){return this.ka(null,a,b)};function Th(a,b){for(var c=Vc(Oh),d=0;;)if(db?4:2*(b+1));Ie(this.D,0,c,0,2*b);return new $h(a,this.wa,c)};h.jd=function(){return ai?ai(this.D):bi.call(null,this.D)};h.ld=function(a,b){return Yh(this.D,a,b)};h.sc=function(a,b,c,d){var e=1<<(b>>>a&31);if(0===(this.wa&e))return d;var f=rf(this.wa&e-1);e=this.D[2*f];f=this.D[2*f+1];return null==e?f.sc(a+5,b,c,d):Ph(c,e)?f:d}; h.Nb=function(a,b,c,d,e,f){var g=1<<(c>>>b&31),k=rf(this.wa&g-1);if(0===(this.wa&g)){var l=rf(this.wa);if(2*l>>b&31]=ci.Nb(a,b+5,c,d,e,f);for(e=d=0;;)if(32>d)0===(this.wa>>> d&1)?d+=1:(k[d]=null!=this.D[e]?ci.Nb(a,b+5,ud(this.D[e]),this.D[e],this.D[e+1],f):this.D[e+1],e+=2,d+=1);else break;return new di(a,l+1,k)}b=Array(2*(l+4));Ie(this.D,0,b,0,2*k);b[2*k]=d;b[2*k+1]=e;Ie(this.D,2*k,b,2*(k+1),2*(l-k));f.val=!0;a=this.yc(a);a.D=b;a.wa|=g;return a}l=this.D[2*k];g=this.D[2*k+1];if(null==l)return l=g.Nb(a,b+5,c,d,e,f),l===g?this:Xh(this,a,2*k+1,l);if(Ph(d,l))return e===g?this:Xh(this,a,2*k+1,e);f.val=!0;f=b+5;d=ei?ei(a,f,l,g,c,d,e):fi.call(null,a,f,l,g,c,d,e);e=2*k;k=2*k+ 1;a=this.yc(a);a.D[e]=null;a.D[k]=d;return a}; h.Mb=function(a,b,c,d,e){var f=1<<(b>>>a&31),g=rf(this.wa&f-1);if(0===(this.wa&f)){var k=rf(this.wa);if(16<=k){g=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null];g[b>>>a&31]=ci.Mb(a+5,b,c,d,e);for(d=c=0;;)if(32>c)0===(this.wa>>>c&1)?c+=1:(g[c]=null!=this.D[d]?ci.Mb(a+5,ud(this.D[d]),this.D[d],this.D[d+1],e):this.D[d+1],d+=2,c+=1);else break;return new di(null,k+1,g)}a=Array(2*(k+1));Ie(this.D, 0,a,0,2*g);a[2*g]=c;a[2*g+1]=d;Ie(this.D,2*g,a,2*(g+1),2*(k-g));e.val=!0;return new $h(null,this.wa|f,a)}var l=this.D[2*g];f=this.D[2*g+1];if(null==l)return k=f.Mb(a+5,b,c,d,e),k===f?this:new $h(null,this.wa,Vh(this.D,2*g+1,k));if(Ph(c,l))return d===f?this:new $h(null,this.wa,Vh(this.D,2*g+1,d));e.val=!0;e=this.wa;k=this.D;a+=5;a=gi?gi(a,l,f,b,c,d):fi.call(null,a,l,f,b,c,d);c=2*g;g=2*g+1;d=Nb(k);d[c]=null;d[g]=a;return new $h(null,e,d)}; h.hd=function(a,b,c,d){var e=1<<(b>>>a&31);if(0===(this.wa&e))return d;var f=rf(this.wa&e-1);e=this.D[2*f];f=this.D[2*f+1];return null==e?f.hd(a+5,b,c,d):Ph(c,e)?new eh(e,f):d}; h.kd=function(a,b,c){var d=1<<(b>>>a&31);if(0===(this.wa&d))return this;var e=rf(this.wa&d-1),f=this.D[2*e],g=this.D[2*e+1];return null==f?(a=g.kd(a+5,b,c),a===g?this:null!=a?new $h(null,this.wa,Vh(this.D,2*e+1,a)):this.wa===d?null:new $h(null,this.wa^d,Wh(this.D,e))):Ph(c,f)?this.wa===d?null:new $h(null,this.wa^d,Wh(this.D,e)):this};h.Ea=function(){return new Zh(this.D)};var ci=new $h(null,0,[]);function hi(a){this.D=a;this.i=0;this.Pb=null} hi.prototype.Da=function(){for(var a=this.D.length;;){if(null!=this.Pb&&this.Pb.Da())return!0;if(this.i>>a&31];return null!=e?e.sc(a+5,b,c,d):d};h.Nb=function(a,b,c,d,e,f){var g=c>>>b&31,k=this.D[g];if(null==k)return a=Xh(this,a,g,ci.Nb(a,b+5,c,d,e,f)),a.M+=1,a;b=k.Nb(a,b+5,c,d,e,f);return b===k?this:Xh(this,a,g,b)}; h.Mb=function(a,b,c,d,e){var f=b>>>a&31,g=this.D[f];if(null==g)return new di(null,this.M+1,Vh(this.D,f,ci.Mb(a+5,b,c,d,e)));a=g.Mb(a+5,b,c,d,e);return a===g?this:new di(null,this.M,Vh(this.D,f,a))};h.hd=function(a,b,c,d){var e=this.D[b>>>a&31];return null!=e?e.hd(a+5,b,c,d):d}; h.kd=function(a,b,c){var d=b>>>a&31,e=this.D[d];if(null!=e){a=e.kd(a+5,b,c);if(a===e)d=this;else if(null==a)if(8>=this.M)a:{e=this.D;a=e.length;b=Array(2*(this.M-1));c=0;for(var f=1,g=0;;)if(ca?d:Ph(c,this.D[a])?this.D[a+1]:d}; h.Nb=function(a,b,c,d,e,f){if(c===this.jc){b=ki(this.D,this.M,d);if(-1===b){if(this.D.length>2*this.M)return b=2*this.M,c=2*this.M+1,a=this.yc(a),a.D[b]=d,a.D[c]=e,f.val=!0,a.M+=1,a;c=this.D.length;b=Array(c+2);Ie(this.D,0,b,0,c);b[c]=d;b[c+1]=e;f.val=!0;d=this.M+1;a===this.va?(this.D=b,this.M=d,a=this):a=new li(this.va,this.jc,d,b);return a}return this.D[b+1]===e?this:Xh(this,a,b+1,e)}return(new $h(a,1<<(this.jc>>>b&31),[null,this,null,null])).Nb(a,b,c,d,e,f)}; h.Mb=function(a,b,c,d,e){return b===this.jc?(a=ki(this.D,this.M,c),-1===a?(a=2*this.M,b=Array(a+2),Ie(this.D,0,b,0,a),b[a]=c,b[a+1]=d,e.val=!0,new li(null,this.jc,this.M+1,b)):C.B(this.D[a+1],d)?this:new li(null,this.jc,this.M,Vh(this.D,a+1,d))):(new $h(null,1<<(this.jc>>>a&31),[null,this])).Mb(a,b,c,d,e)};h.hd=function(a,b,c,d){a=ki(this.D,this.M,c);return 0>a?d:Ph(c,this.D[a])?new eh(this.D[a],this.D[a+1]):d}; h.kd=function(a,b,c){a=ki(this.D,this.M,c);return-1===a?this:1===this.M?null:new li(null,this.jc,this.M-1,Wh(this.D,pf(a,2)))};h.Ea=function(){return new Zh(this.D)};function fi(a){switch(arguments.length){case 6:return gi(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);case 7:return ei(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}} function gi(a,b,c,d,e,f){var g=ud(b);if(g===d)return new li(null,g,2,[b,c,e,f]);var k=new Uh;return ci.Mb(a,g,b,c,k).Mb(a,d,e,f,k)}function ei(a,b,c,d,e,f,g){var k=ud(c);if(k===e)return new li(null,k,2,[c,d,f,g]);var l=new Uh;return ci.Nb(a,b,k,c,d,l).Nb(a,b,e,f,g,l)}function mi(a,b,c,d,e){this.meta=a;this.Qb=b;this.i=c;this.s=d;this.N=e;this.J=32374988;this.T=0}h=mi.prototype;h.toString=function(){return md(this)}; h.indexOf=function(){var a=null;a=function(b,c){switch(arguments.length){case 1:return ae(this,b,0);case 2:return ae(this,b,c)}throw Error("Invalid arity: "+arguments.length);};a.A=function(b){return ae(this,b,0)};a.B=function(b,c){return ae(this,b,c)};return a}(); h.lastIndexOf=function(){function a(c){return de(this,c,M(this))}var b=null;b=function(c,d){switch(arguments.length){case 1:return a.call(this,c);case 2:return de(this,c,d)}throw Error("Invalid arity: "+arguments.length);};b.A=a;b.B=function(c,d){return de(this,c,d)};return b}();h.fa=function(){return this.meta};h.Ca=function(){if(null==this.s){var a=this.Qb,b=this.i+2;return ni?ni(a,b,null):bi.call(null,a,b,null)}a=this.Qb;b=this.i;var c=J(this.s);return ni?ni(a,b,c):bi.call(null,a,b,c)}; h.pa=function(){var a=this.N;return null!=a?a:this.N=a=Kd(this)};h.oa=function(a,b){return ge(this,b)};h.ya=function(){return Fd};h.Ja=function(a,b){return ie(b,this)};h.Ka=function(a,b,c){return ke(b,c,this)};h.Ga=function(){return null==this.s?new eh(this.Qb[this.i],this.Qb[this.i+1]):I(this.s)}; h.Ha=function(){var a=this,b=null==a.s?function(){var c=a.Qb,d=a.i+2;return ni?ni(c,d,null):bi.call(null,c,d,null)}():function(){var c=a.Qb,d=a.i,e=J(a.s);return ni?ni(c,d,e):bi.call(null,c,d,e)}();return null!=b?b:Fd};h.ma=function(){return this};h.ga=function(a,b){return b===this.meta?this:new mi(b,this.Qb,this.i,this.s,this.N)};h.sa=function(a,b){return he(b,this)};mi.prototype[Jb]=function(){return Hd(this)}; function bi(a){switch(arguments.length){case 1:return ai(arguments[0]);case 3:return ni(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}}function ai(a){return ni(a,0,null)}function ni(a,b,c){if(null==c)for(c=a.length;;)if(b=this.count)throw Error("-drop-first of empty chunk");return new Ji(this.start+this.step,this.step,this.count-1)};function Ki(a,b,c){this.i=a;this.end=b;this.step=c}Ki.prototype.Da=function(){return 0this.end};Ki.prototype.next=function(){var a=this.i;this.i+=this.step;return a}; function Li(a,b,c,d,e,f){this.meta=a;this.start=b;this.end=c;this.step=d;this.M=e;this.N=f;this.J=32375006;this.T=402944}h=Li.prototype;h.toString=function(){return md(this)};h.indexOf=function(){var a=null;a=function(b,c){switch(arguments.length){case 1:return ae(this,b,0);case 2:return ae(this,b,c)}throw Error("Invalid arity: "+arguments.length);};a.A=function(b){return ae(this,b,0)};a.B=function(b,c){return ae(this,b,c)};return a}(); h.lastIndexOf=function(){function a(c){return de(this,c,M(this))}var b=null;b=function(c,d){switch(arguments.length){case 1:return a.call(this,c);case 2:return de(this,c,d)}throw Error("Invalid arity: "+arguments.length);};b.A=a;b.B=function(c,d){return de(this,c,d)};return b}();h.ua=function(a,b){if(0<=b&&bthis.end&&0===this.step)return this.start;throw Error("Index out of bounds");}; h.hb=function(a,b,c){return 0<=b&&bthis.end&&0===this.step?this.start:c};h.Ea=function(){return new Ki(this.start,this.end,this.step)};h.fa=function(){return this.meta}; h.Ca=function(){return 0this.end?new Li(null,this.start+this.step,this.end,this.step,Math.ceil((this.end-(this.start+this.step))/this.step),null):null};h.na=function(){return this.M};h.pa=function(){var a=this.N;return null!=a?a:this.N=a=Kd(this)};h.oa=function(a,b){return ge(this,b)};h.ya=function(){return Fd}; h.Ja=function(a,b){return Ud(this,b)};h.Ka=function(a,b,c){for(a=this.start;;)if(0this.end){c=b.B?b.B(c,a):b.call(null,c,a);if(Sd(c))return w(c);a+=this.step}else return c};h.Ga=function(){return this.start};h.Ha=function(){var a=this.Ca(null);return null==a?Fd:a};h.ma=function(){return this};h.Yc=function(){var a=this.M;return new Ji(this.start,this.step,32>a?a:32)}; h.pc=function(){if(32>=this.M)return Fd;var a=this.start+32*this.step;return 0this.step?this.end>=a?Fd:new Li(null,a,this.end,this.step,Math.ceil((this.end-a)/this.step),null):this.end===a?Fd:Dg(a)};h.ga=function(a,b){return b===this.meta?this:new Li(b,this.start,this.end,this.step,this.M,this.N)};h.sa=function(a,b){return he(b,this)}; h.fc=function(a,b){return 0c){if(b[c]=d,c+=1,d+=a.step,!(0a.end)){c=a.chunk=new Of(b,0,c);break a}}else{c=d;break a}}null==a.chunk&&(a.chunk=new Of(b,0,32),(0a.end)&&(a.sd=new Mi(null,c,a.end,a.step,null,null,null)))}} h.Ea=function(){return new Ki(this.start,this.end,this.step)};h.fa=function(){return this.meta};h.Ca=function(){return 0this.end?new Mi(null,this.start+this.step,this.end,this.step,null,null,null):null};h.pa=function(){var a=this.N;return null!=a?a:this.N=a=Kd(this)};h.oa=function(a,b){return ge(this,b)};h.ya=function(){return Fd};h.Ja=function(a,b){return ie(b,this)}; h.Ka=function(a,b,c){for(a=this.start;;)if(0this.end){c=b.B?b.B(c,a):b.call(null,c,a);if(Sd(c))return w(c);a+=this.step}else return c};h.Ga=function(){return this.start};h.Ha=function(){var a=this.Ca(null);return null==a?Fd:a};h.ma=function(){return this};h.Yc=function(){Ni(this);return this.chunk};h.pc=function(){Ni(this);return null==this.sd?Fd:this.sd};h.ga=function(a,b){return b===this.meta?this:new Mi(b,this.start,this.end,this.step,this.chunk,this.sd,this.N)}; h.sa=function(a,b){return he(b,this)};h.ud=function(){return G(this.pc(null))};Mi.prototype[Jb]=function(){return Hd(this)};function Oi(a,b){return b<=a?Fd:Re(a)&&Re(b)&&Re(1)?new Li(null,a,b,1,Math.ceil(b-a),null):new Mi(null,a,b,1,null,null,null)} function Pi(){return function(){function a(g,k,l){return new W(null,2,5,X,[Gi.C?Gi.C(g,k,l):Gi.call(null,g,k,l),me.C?me.C(g,k,l):me.call(null,g,k,l)],null)}function b(g,k){return new W(null,2,5,X,[Gi.B?Gi.B(g,k):Gi.call(null,g,k),me.B?me.B(g,k):me.call(null,g,k)],null)}function c(g){return new W(null,2,5,X,[Gi.A?Gi.A(g):Gi.call(null,g),me.A?me.A(g):me.call(null,g)],null)}function d(){return new W(null,2,5,X,[Gi.I?Gi.I():Gi.call(null),me.I?me.I():me.call(null)],null)}var e=null,f=function(){function g(l, m,p,t){var v=null;if(3nb)return x(a,"#");x(a,c);if(0===ub.A(f))G(g)&&x(a,function(){var A=Vi.A(f);return r(A)?A:"..."}());else{if(G(g)){var l=I(g);b.C?b.C(l,a,f):b.call(null,l,a,f)}for(var m=J(g),p=ub.A(f)-1;;)if(!m||null!=p&&0===p){G(m)&&0===p&&(x(a,d),x(a,function(){var A=Vi.A(f);return r(A)?A:"..."}()));break}else{x(a,d);var t=I(m);c=a;g=f;b.C?b.C(t,c,g):b.call(null,t,c,g);var v=J(m);c=p-1;m=v;p=c}}return x(a,e)}finally{nb=k}} function Wi(a,b){b=G(b);for(var c=null,d=0,e=0;;)if(e=b||b>=2+M(a))return ne.B(lh(he("",V.B(u,G(a)))),"");if(r(tf?Hc(1,b):sf.call(null,1,b)))return new W(null,1,5,X,[a],null);if(r(tf?Hc(2,b):sf.call(null,2,b)))return new W(null,2,5,X,["",a],null);b-=2;var c=ne.B;var d=lh(V.B(u,G(a)));d=th(null,d,0,b|0,null);return c.call(ne,lh(he("",d)),a.substring(b))} function gu(a,b,c){if("/(?:)/"===u.A(b))b=fu(a,c);else if(1>c)b=lh(u.A(a).split(b));else a:for(var d=c,e=oe;;){if(1===d){b=ne.B(e,a);break a}var f=Si(b,a);if(null!=f){var g=a.indexOf(f);f=a.substring(g+M(f));--d;e=ne.B(e,a.substring(0,g));a=f}else{b=ne.B(e,a);break a}}if(0===c&&1]*)>/,'\x3csection class\x3d"section MODE"\x3e\n \x3carticle class\x3d"mastodon-post"\x3e\n \x3cheader class\x3d"mastodon-post-header"\x3e\n \x3cimg class\x3d"mastodon-post-avatar" src\x3d"AVATAR_URL"\x3e\x3c/img\x3e\n \x3cdiv class\x3d"mastodon-post-names"\x3e\n \x3ca class\x3d"display-name" href\x3d"POST_URL"\x3eDISPLAY_NAME\x3c/a\x3e\n \x3ca class\x3d"account-name" href\x3d"POST_URL"\x3eACCOUNT_NAME\x3c/a\x3e\n \x3c/div\x3e\n \x3ctime class\x3d"mastodon-post-date" datetime\x3d"DATETIME"\x3eTIME\x3c/time\x3e\n \x3c/header\x3e\n \x3csection class\x3d"mastodon-post-content"\x3e\n \x3cdiv class\x3d"mastodon-post-text"\x3ePOST_TEXT\x3c/div\x3e\n \x3c/section\x3e\n \x3cfooter class\x3d"mastodon-post-footer"\x3e\x3cbutton class\x3d"footer-button replies"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg"\n viewBox\x3d"0 0 23.999989 18.905102" fill\x3d"currentColor"\x3e\n \x3cpath\n d\x3d"M 12.605469 0 C 6.3127313 -3.016065e-07 1.2128906 3.6227598 1.2128906 8.0917969 C 1.2082806 9.3482967 1.6202949 10.587431 2.4179688 11.708984 C 2.4578657 11.764164 2.498768 11.811806 2.5390625 11.865234 C 3.3268045 11.641832 4.3869061 11.848285 5.3300781 12.486328 C 6.3288461 13.162012 6.9253832 14.138795 6.953125 14.988281 C 7.1369873 15.068801 7.3124925 15.149004 7.5117188 15.232422 C 9.0912976 15.798243 10.836341 16.090505 12.605469 16.087891 C 16.920323 16.086691 20.863977 14.35437 22.792969 11.613281 C 23.580255 10.506333 23.991872 9.2846052 23.998047 8.0449219 C 23.962291 3.5975966 18.876044 0 12.605469 0 z M 23.998047 8.0449219 C 23.998174 8.0606359 24 8.0760629 24 8.0917969 L 24 7.9960938 C 24.00006 8.0124607 23.998147 8.0285639 23.998047 8.0449219 z M 2.9121094 12.222656 C 2.2425334 12.223796 1.667313 12.46211 1.3457031 12.9375 C 1.1638316 13.204122 1.077675 13.531936 1.09375 13.890625 C 1.1537212 14.293189 1.209808 14.432962 1.3125 14.671875 C 1.4316055 14.948973 1.7207031 15.40625 1.7207031 15.40625 C 1.9907532 15.764415 2.3364315 16.089696 2.7304688 16.355469 C 3.6907784 17.004767 4.8168668 17.230272 5.640625 16.9375 C 5.9710419 16.821946 6.2362892 16.627161 6.4160156 16.369141 C 7.0592353 15.418362 6.445179 13.878941 5.0449219 12.931641 C 4.3447931 12.457991 3.5816854 12.221516 2.9121094 12.222656 z M 1.0195312 16.197266 C 0.64478833 16.1979 0.32257415 16.331594 0.14257812 16.597656 C 0.040789845 16.746877 -0.007044805 16.928158 0.001953125 17.128906 C 0.035517005 17.35421 0.065572735 17.432694 0.12304688 17.566406 C 0.18970686 17.72149 0.3515625 17.978516 0.3515625 17.978516 C 0.50270196 18.178971 0.69743713 18.361021 0.91796875 18.509766 C 1.4554271 18.873168 2.0858405 18.99784 2.546875 18.833984 C 2.7316813 18.769352 2.8798841 18.661846 2.9804688 18.517578 C 3.3404608 17.985454 2.9965753 17.123927 2.2128906 16.59375 C 1.8210482 16.328648 1.3942742 16.196631 1.0195312 16.197266 z " /\x3e\n \x3c/svg\x3e\x3cspan class\x3d"count reply-count"\x3eREPLIES_COUNT\x3c/span\x3e\x3c/button\x3e\x3cbutton\n class\x3d"footer-button retoots"\x3e\x3csvg\n xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 24 15.292642" fill\x3d"currentColor"\x3e\n \x3cpath\n d\x3d"M 5.5533678,0 C 3.6714839,2.400492 1.6157603,5.1817846 0,7.362011 c 1.4380083,0 2.4385201,-5.881e-4 3.6172864,0.024507 v 3.36241 c 0,2.591649 -0.00735,3.641069 -0.00735,4.541214 0.9377142,0 1.8786511,0.0025 4.6000315,0.0025 h 9.6117861 c -0.967065,-1.240489 -1.863419,-2.423552 -2.791388,-3.644245 -2.391113,-0.01058 -5.4310727,0 -7.7149168,0 0,-1.389694 0.00491,-2.9515088 0.00491,-4.2863375 H 10.998903 C 9.4664195,5.0599896 7.0361202,1.897534 5.5533678,0 Z m 0.6249377,0 c 0.9523292,1.225788 1.9124438,2.5142572 2.7766839,3.6368923 2.3911146,0.010578 5.4433266,0.00491 7.7271706,0.00491 0,1.3896944 -0.0025,2.9515086 -0.0025,4.2863373 h -3.678556 c 1.532486,2.3020214 3.962784,5.4669284 5.445536,7.3644624 1.881875,-2.400496 3.9376,-5.18424 5.55336,-7.3644663 -1.438009,0 -2.440971,5.881e-4 -3.619738,-0.024507 V 4.5412139 c 0,-2.5916487 0.0098,-3.64106836 0.0098,-4.5412139 -0.937714,0 -1.881102,0 -4.602482,0 z" /\x3e\n \x3c/svg\x3e\x3cspan class\x3d"count retoot-count"\x3eREBLOGS_COUNT\x3c/span\x3e\x3c/button\x3e\x3cbutton class\x3d"footer-button likes"\x3e\x3csvg\n xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 24 22.799999" fill\x3d"currentColor"\x3e\n \x3cpath\n d\x3d"M 12,18.324 19.416,22.8 17.448,14.364 24,8.688 15.372,7.956 12,0 8.628,7.956 0,8.688 6.552,14.364 4.584,22.8 Z" /\x3e\n \x3c/svg\x3e\x3cspan class\x3d"count like-count"\x3eFAVOURITES_COUNT\x3c/span\x3e\x3c/button\x3e\x3c/footer\x3e\n \x3c/article\x3e\n\x3c/section\x3e'); c=r(c)?c:Si(/]*)>/,'\x3csection class\x3d"section MODE"\x3e\n \x3carticle class\x3d"mastodon-post"\x3e\n \x3cheader class\x3d"mastodon-post-header"\x3e\n \x3cimg class\x3d"mastodon-post-avatar" src\x3d"AVATAR_URL"\x3e\x3c/img\x3e\n \x3cdiv class\x3d"mastodon-post-names"\x3e\n \x3ca class\x3d"display-name" href\x3d"POST_URL"\x3eDISPLAY_NAME\x3c/a\x3e\n \x3ca class\x3d"account-name" href\x3d"POST_URL"\x3eACCOUNT_NAME\x3c/a\x3e\n \x3c/div\x3e\n \x3ctime class\x3d"mastodon-post-date" datetime\x3d"DATETIME"\x3eTIME\x3c/time\x3e\n \x3c/header\x3e\n \x3csection class\x3d"mastodon-post-content"\x3e\n \x3cdiv class\x3d"mastodon-post-text"\x3ePOST_TEXT\x3c/div\x3e\n \x3c/section\x3e\n \x3cfooter class\x3d"mastodon-post-footer"\x3e\x3cbutton class\x3d"footer-button replies"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg"\n viewBox\x3d"0 0 23.999989 18.905102" fill\x3d"currentColor"\x3e\n \x3cpath\n d\x3d"M 12.605469 0 C 6.3127313 -3.016065e-07 1.2128906 3.6227598 1.2128906 8.0917969 C 1.2082806 9.3482967 1.6202949 10.587431 2.4179688 11.708984 C 2.4578657 11.764164 2.498768 11.811806 2.5390625 11.865234 C 3.3268045 11.641832 4.3869061 11.848285 5.3300781 12.486328 C 6.3288461 13.162012 6.9253832 14.138795 6.953125 14.988281 C 7.1369873 15.068801 7.3124925 15.149004 7.5117188 15.232422 C 9.0912976 15.798243 10.836341 16.090505 12.605469 16.087891 C 16.920323 16.086691 20.863977 14.35437 22.792969 11.613281 C 23.580255 10.506333 23.991872 9.2846052 23.998047 8.0449219 C 23.962291 3.5975966 18.876044 0 12.605469 0 z M 23.998047 8.0449219 C 23.998174 8.0606359 24 8.0760629 24 8.0917969 L 24 7.9960938 C 24.00006 8.0124607 23.998147 8.0285639 23.998047 8.0449219 z M 2.9121094 12.222656 C 2.2425334 12.223796 1.667313 12.46211 1.3457031 12.9375 C 1.1638316 13.204122 1.077675 13.531936 1.09375 13.890625 C 1.1537212 14.293189 1.209808 14.432962 1.3125 14.671875 C 1.4316055 14.948973 1.7207031 15.40625 1.7207031 15.40625 C 1.9907532 15.764415 2.3364315 16.089696 2.7304688 16.355469 C 3.6907784 17.004767 4.8168668 17.230272 5.640625 16.9375 C 5.9710419 16.821946 6.2362892 16.627161 6.4160156 16.369141 C 7.0592353 15.418362 6.445179 13.878941 5.0449219 12.931641 C 4.3447931 12.457991 3.5816854 12.221516 2.9121094 12.222656 z M 1.0195312 16.197266 C 0.64478833 16.1979 0.32257415 16.331594 0.14257812 16.597656 C 0.040789845 16.746877 -0.007044805 16.928158 0.001953125 17.128906 C 0.035517005 17.35421 0.065572735 17.432694 0.12304688 17.566406 C 0.18970686 17.72149 0.3515625 17.978516 0.3515625 17.978516 C 0.50270196 18.178971 0.69743713 18.361021 0.91796875 18.509766 C 1.4554271 18.873168 2.0858405 18.99784 2.546875 18.833984 C 2.7316813 18.769352 2.8798841 18.661846 2.9804688 18.517578 C 3.3404608 17.985454 2.9965753 17.123927 2.2128906 16.59375 C 1.8210482 16.328648 1.3942742 16.196631 1.0195312 16.197266 z " /\x3e\n \x3c/svg\x3e\x3cspan class\x3d"count reply-count"\x3eREPLIES_COUNT\x3c/span\x3e\x3c/button\x3e\x3cbutton\n class\x3d"footer-button retoots"\x3e\x3csvg\n xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 24 15.292642" fill\x3d"currentColor"\x3e\n \x3cpath\n d\x3d"M 5.5533678,0 C 3.6714839,2.400492 1.6157603,5.1817846 0,7.362011 c 1.4380083,0 2.4385201,-5.881e-4 3.6172864,0.024507 v 3.36241 c 0,2.591649 -0.00735,3.641069 -0.00735,4.541214 0.9377142,0 1.8786511,0.0025 4.6000315,0.0025 h 9.6117861 c -0.967065,-1.240489 -1.863419,-2.423552 -2.791388,-3.644245 -2.391113,-0.01058 -5.4310727,0 -7.7149168,0 0,-1.389694 0.00491,-2.9515088 0.00491,-4.2863375 H 10.998903 C 9.4664195,5.0599896 7.0361202,1.897534 5.5533678,0 Z m 0.6249377,0 c 0.9523292,1.225788 1.9124438,2.5142572 2.7766839,3.6368923 2.3911146,0.010578 5.4433266,0.00491 7.7271706,0.00491 0,1.3896944 -0.0025,2.9515086 -0.0025,4.2863373 h -3.678556 c 1.532486,2.3020214 3.962784,5.4669284 5.445536,7.3644624 1.881875,-2.400496 3.9376,-5.18424 5.55336,-7.3644663 -1.438009,0 -2.440971,5.881e-4 -3.619738,-0.024507 V 4.5412139 c 0,-2.5916487 0.0098,-3.64106836 0.0098,-4.5412139 -0.937714,0 -1.881102,0 -4.602482,0 z" /\x3e\n \x3c/svg\x3e\x3cspan class\x3d"count retoot-count"\x3eREBLOGS_COUNT\x3c/span\x3e\x3c/button\x3e\x3cbutton class\x3d"footer-button likes"\x3e\x3csvg\n xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 24 22.799999" fill\x3d"currentColor"\x3e\n \x3cpath\n d\x3d"M 12,18.324 19.416,22.8 17.448,14.364 24,8.688 15.372,7.956 12,0 8.628,7.956 0,8.688 6.552,14.364 4.584,22.8 Z" /\x3e\n \x3c/svg\x3e\x3cspan class\x3d"count like-count"\x3eFAVOURITES_COUNT\x3c/span\x3e\x3c/button\x3e\x3c/footer\x3e\n \x3c/article\x3e\n\x3c/section\x3e'); c=le(c);c=r(c)?Si(/([^\s]*)(\s+PUBLIC\s+["]?([^"]*)["]?\s+["]?([^"]*)["]?)?/,c):null;r(c)||b.parentNode.removeChild(b);b=a.head.firstChild;r(b)&&ze(b.text)&&b.parentNode.removeChild(b);a.write('\x3csection class\x3d"section MODE"\x3e\n \x3carticle class\x3d"mastodon-post"\x3e\n \x3cheader class\x3d"mastodon-post-header"\x3e\n \x3cimg class\x3d"mastodon-post-avatar" src\x3d"AVATAR_URL"\x3e\x3c/img\x3e\n \x3cdiv class\x3d"mastodon-post-names"\x3e\n \x3ca class\x3d"display-name" href\x3d"POST_URL"\x3eDISPLAY_NAME\x3c/a\x3e\n \x3ca class\x3d"account-name" href\x3d"POST_URL"\x3eACCOUNT_NAME\x3c/a\x3e\n \x3c/div\x3e\n \x3ctime class\x3d"mastodon-post-date" datetime\x3d"DATETIME"\x3eTIME\x3c/time\x3e\n \x3c/header\x3e\n \x3csection class\x3d"mastodon-post-content"\x3e\n \x3cdiv class\x3d"mastodon-post-text"\x3ePOST_TEXT\x3c/div\x3e\n \x3c/section\x3e\n \x3cfooter class\x3d"mastodon-post-footer"\x3e\x3cbutton class\x3d"footer-button replies"\x3e\x3csvg xmlns\x3d"http://www.w3.org/2000/svg"\n viewBox\x3d"0 0 23.999989 18.905102" fill\x3d"currentColor"\x3e\n \x3cpath\n d\x3d"M 12.605469 0 C 6.3127313 -3.016065e-07 1.2128906 3.6227598 1.2128906 8.0917969 C 1.2082806 9.3482967 1.6202949 10.587431 2.4179688 11.708984 C 2.4578657 11.764164 2.498768 11.811806 2.5390625 11.865234 C 3.3268045 11.641832 4.3869061 11.848285 5.3300781 12.486328 C 6.3288461 13.162012 6.9253832 14.138795 6.953125 14.988281 C 7.1369873 15.068801 7.3124925 15.149004 7.5117188 15.232422 C 9.0912976 15.798243 10.836341 16.090505 12.605469 16.087891 C 16.920323 16.086691 20.863977 14.35437 22.792969 11.613281 C 23.580255 10.506333 23.991872 9.2846052 23.998047 8.0449219 C 23.962291 3.5975966 18.876044 0 12.605469 0 z M 23.998047 8.0449219 C 23.998174 8.0606359 24 8.0760629 24 8.0917969 L 24 7.9960938 C 24.00006 8.0124607 23.998147 8.0285639 23.998047 8.0449219 z M 2.9121094 12.222656 C 2.2425334 12.223796 1.667313 12.46211 1.3457031 12.9375 C 1.1638316 13.204122 1.077675 13.531936 1.09375 13.890625 C 1.1537212 14.293189 1.209808 14.432962 1.3125 14.671875 C 1.4316055 14.948973 1.7207031 15.40625 1.7207031 15.40625 C 1.9907532 15.764415 2.3364315 16.089696 2.7304688 16.355469 C 3.6907784 17.004767 4.8168668 17.230272 5.640625 16.9375 C 5.9710419 16.821946 6.2362892 16.627161 6.4160156 16.369141 C 7.0592353 15.418362 6.445179 13.878941 5.0449219 12.931641 C 4.3447931 12.457991 3.5816854 12.221516 2.9121094 12.222656 z M 1.0195312 16.197266 C 0.64478833 16.1979 0.32257415 16.331594 0.14257812 16.597656 C 0.040789845 16.746877 -0.007044805 16.928158 0.001953125 17.128906 C 0.035517005 17.35421 0.065572735 17.432694 0.12304688 17.566406 C 0.18970686 17.72149 0.3515625 17.978516 0.3515625 17.978516 C 0.50270196 18.178971 0.69743713 18.361021 0.91796875 18.509766 C 1.4554271 18.873168 2.0858405 18.99784 2.546875 18.833984 C 2.7316813 18.769352 2.8798841 18.661846 2.9804688 18.517578 C 3.3404608 17.985454 2.9965753 17.123927 2.2128906 16.59375 C 1.8210482 16.328648 1.3942742 16.196631 1.0195312 16.197266 z " /\x3e\n \x3c/svg\x3e\x3cspan class\x3d"count reply-count"\x3eREPLIES_COUNT\x3c/span\x3e\x3c/button\x3e\x3cbutton\n class\x3d"footer-button retoots"\x3e\x3csvg\n xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 24 15.292642" fill\x3d"currentColor"\x3e\n \x3cpath\n d\x3d"M 5.5533678,0 C 3.6714839,2.400492 1.6157603,5.1817846 0,7.362011 c 1.4380083,0 2.4385201,-5.881e-4 3.6172864,0.024507 v 3.36241 c 0,2.591649 -0.00735,3.641069 -0.00735,4.541214 0.9377142,0 1.8786511,0.0025 4.6000315,0.0025 h 9.6117861 c -0.967065,-1.240489 -1.863419,-2.423552 -2.791388,-3.644245 -2.391113,-0.01058 -5.4310727,0 -7.7149168,0 0,-1.389694 0.00491,-2.9515088 0.00491,-4.2863375 H 10.998903 C 9.4664195,5.0599896 7.0361202,1.897534 5.5533678,0 Z m 0.6249377,0 c 0.9523292,1.225788 1.9124438,2.5142572 2.7766839,3.6368923 2.3911146,0.010578 5.4433266,0.00491 7.7271706,0.00491 0,1.3896944 -0.0025,2.9515086 -0.0025,4.2863373 h -3.678556 c 1.532486,2.3020214 3.962784,5.4669284 5.445536,7.3644624 1.881875,-2.400496 3.9376,-5.18424 5.55336,-7.3644663 -1.438009,0 -2.440971,5.881e-4 -3.619738,-0.024507 V 4.5412139 c 0,-2.5916487 0.0098,-3.64106836 0.0098,-4.5412139 -0.937714,0 -1.881102,0 -4.602482,0 z" /\x3e\n \x3c/svg\x3e\x3cspan class\x3d"count retoot-count"\x3eREBLOGS_COUNT\x3c/span\x3e\x3c/button\x3e\x3cbutton class\x3d"footer-button likes"\x3e\x3csvg\n xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 24 22.799999" fill\x3d"currentColor"\x3e\n \x3cpath\n d\x3d"M 12,18.324 19.416,22.8 17.448,14.364 24,8.688 15.372,7.956 12,0 8.628,7.956 0,8.688 6.552,14.364 4.584,22.8 Z" /\x3e\n \x3c/svg\x3e\x3cspan class\x3d"count like-count"\x3eFAVOURITES_COUNT\x3c/span\x3e\x3c/button\x3e\x3c/footer\x3e\n \x3c/article\x3e\n\x3c/section\x3e')}return a} ;function Au(a){return document.getElementById("masto-embed").getAttribute(a)}function Bu(a){return document.getElementById("masto-embed").innerHTML=a};function Cu(a,b){var c=Du;if(null!=a&&null!=a.xd)a=a.xd(a,b,c);else{var d=Cu[ba(null==a?null:a)];if(null!=d)a=d.C?d.C(a,b,c):d.call(null,a,b,c);else if(d=Cu._,null!=d)a=d.C?d.C(a,b,c):d.call(null,a,b,c);else throw Hb("WritePort.put!",a);}return a}function Eu(a){if(null!=a&&null!=a.fd)a=a.fd(a);else{var b=Eu[ba(null==a?null:a)];if(null!=b)a=b.A?b.A(a):b.call(null,a);else if(b=Eu._,null!=b)a=b.A?b.A(a):b.call(null,a);else throw Hb("Channel.close!",a);}return a} function Fu(a){if(null!=a&&null!=a.qe)a=!0;else{var b=Fu[ba(null==a?null:a)];if(null!=b)a=b.A?b.A(a):b.call(null,a);else if(b=Fu._,null!=b)a=b.A?b.A(a):b.call(null,a);else throw Hb("Handler.active?",a);}return a}function Gu(a){if(null!=a&&null!=a.re)a=a.f;else{var b=Gu[ba(null==a?null:a)];if(null!=b)a=b.A?b.A(a):b.call(null,a);else if(b=Gu._,null!=b)a=b.A?b.A(a):b.call(null,a);else throw Hb("Handler.commit",a);}return a} function Hu(a,b){if(null!=a&&null!=a.Rd)a=a.Rd(a,b);else{var c=Hu[ba(null==a?null:a)];if(null!=c)a=c.B?c.B(a,b):c.call(null,a,b);else if(c=Hu._,null!=c)a=c.B?c.B(a,b):c.call(null,a,b);else throw Hb("Buffer.add!*",a);}return a}var Iu=function Iu(a){switch(arguments.length){case 1:return Iu.A(arguments[0]);case 2:return Iu.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Iu.A=function(a){return a};Iu.B=function(a,b){return Hu(a,b)};Iu.O=2;function Ju(a,b,c,d,e){for(var f=0;;)if(fthis.head?(Ju(this.D,this.tail,a,0,this.D.length-this.tail),Ju(this.D,0,a,this.D.length-this.tail,this.head),this.tail=0,this.head=this.length,this.D=a):this.tail===this.head?(this.head=this.tail=0,this.D=a):null}; h.cleanup=function(a){for(var b=this.length,c=0;;)if(c=this.n};h.ed=function(){return this.ra.pop()};h.Rd=function(a,b){this.ra.unbounded_unshift(b);return this};h.pe=function(){};h.na=function(){return this.ra.length};var Mu={};function Nu(){this.val=Mu;this.J=2;this.T=0}h=Nu.prototype;h.wd=function(){return!1}; h.ed=function(){return this.val};h.Rd=function(a,b){Mu===this.val&&(this.val=b);return this};h.pe=function(){Mu===this.val&&(this.val=null)};h.na=function(){return Mu===this.val?0:1};var Ou; function Pu(){var a=aa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Ba("Presto")&&(a=function(){var e=ku();e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),k="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=la(function(l){if(("*"==k||l.origin==k)&&l.data==g)this.port1.onmessage()},this);f.addEventListener("message",e, !1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,k)}}});if("undefined"!==typeof a&&!Ba("Trident")&&!Ba("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.fe;c.fe=null;e()}};return function(e){d.next={fe:e};d=d.next;b.port2.postMessage(0)}}return function(e){aa.setTimeout(e,0)}};var Qu=new Ku(Array(32)),Ru=!1,Su=!1;function Tu(){Ru=!0;Su=!1;for(var a=0;;){var b=Qu.pop();if(null!=b&&(b.I?b.I():b.call(null),1024>a)){a+=1;continue}break}Ru=!1;return 0c)return a;a:for(;;){var e=cMath.random()&&15>d)d+=1;else break a;if(d>this.level){for(var e=this.level+1;;)if(e<=d+1)c[e]=this.header,e+=1;else break;this.level=d}a=gv(a,b,Array(d));for(b=0;;)if(b<=this.level)d=c[b].forward,bc)return C.B(b.key,a)?b:b.forward[0];var d;a:for(d=b;;){var e=ca)break a;d=e}else{d=0===c?d:null;break a}}r(d)?(--c,b=d):--c}};h.floorEntry=function(a){for(var b=this.header,c=this.level;;){if(0>c)return b===this.header?null:b;var d;a:for(d=b;;){var e=ca)break a;d=e}else{d=0===c?d:null;break a}}r(d)?(--c,b=d):--c}}; h.ma=function(){return function c(b){return new Lf(null,function(){return null==b?null:he(new W(null,2,5,X,[b.key,b.val],null),c(b.forward[0]))},null,null)}(this.header.forward[0])};h.la=function(a,b,c){return Ui(b,function(d){return Ui(b,bj,""," ","",c,d)},"{",", ","}",c,this)};new iv;function jv(a,b){this.f=a;this.Sf=b;this.J=393216;this.T=0}h=jv.prototype;h.ga=function(a,b){return new jv(this.f,b)};h.fa=function(){return this.Sf};h.qe=function(){return!0};h.Sd=function(){return!0};h.re=function(){return this.f};function kv(a){try{var b=a[0];return b.A?b.A(a):b.call(null,a)}catch(c){if(c instanceof Object)throw b=c,a[6].fd(null),b;throw c;}}function lv(a,b,c){c=bv(c,new jv(function(d){a[2]=d;a[1]=b;return kv(a)},U));return r(c)?(a[2]=w(c),a[1]=b,lt):null} function mv(a,b,c){b=b.xd(null,c,new jv(function(d){a[2]=d;a[1]=2;return kv(a)},U));return r(b)?(a[2]=w(b),a[1]=2,lt):null}function nv(a,b){a=a[6];null!=b&&a.xd(null,b,new jv(function(){return null},U));a.fd(null);return a};function ov(a,b,c){this.f=a;this.ee=b;this.Tf=c;this.J=393216;this.T=0}h=ov.prototype;h.ga=function(a,b){return new ov(this.f,this.ee,b)};h.fa=function(){return this.Tf};h.qe=function(){return!0};h.Sd=function(){return this.ee};h.re=function(){return this.f};function pv(a){a=C.B(a,0)?null:a;return ev("number"===typeof a?new Lu(new Ku(Array(a)),a):a)}var Du=new ov(function(){return null},!0,U);function qv(a,b){a=Cu(a,b);return r(a)?w(a):!0};function rv(a){var b=pv(new Nu);a.then(function(c){return null==c?Eu(b):qv(b,c)},function(c){return qv(b,new Sj("Promise error",new q(null,1,[Bl,ut],null),c))});return b};var sv=/([^\s\.#]+)(?:#([^\s\.#]+))?(?:\.([^\s#]+))?/,tv=new q(null,4,'\x26 \x26amp; \x3c \x26lt; \x3e \x26gt; " \x26quot;'.split(" "),null),uv=new Y(null,new q(null,33,["table",null,"canvas",null,"body",null,"h3",null,"dt",null,"label",null,"fieldset",null,"form",null,"em",null,"option",null,"h2",null,"h4",null,"style",null,"span",null,"script",null,"ol",null,"dd",null,"a",null,"head",null,"textarea",null,"i",null,"div",null,"b",null,"h5",null,"pre",null,"ul",null,"iframe",null,"strong",null,"html", null,"h1",null,"li",null,"dl",null,"h6",null],null),null);function vv(a){return a instanceof B||a instanceof y?Kf(a):u.A(a)}function wv(a,b){a=vv(a);a:{b=vv(b);for(var c=new hb,d=b.length,e=0;;){if(d===e){b=c.toString();break a}var f=b.charAt(e),g=tv.A?tv.A(f):tv.call(null,f);null!=g?c.append(u.A(g)):c.append(f);e+=1}}return[" ",a,'\x3d"',b,'"'].join("")}function xv(a){var b=O(a,0,null);a=O(a,1,null);return!0===a?C.B(Cm,Cm)?wv(b,b):[" ",vv(b)].join(""):zb(a)?"":wv(b,a)} var yv=function yv(a){if(Ge(a)){a=G(a);var c=I(a);a=J(a);if(!(c instanceof B||c instanceof y||"string"===typeof c))throw[u.A(c)," is not a valid tag name"].join("");var d=Ri(sv,vv(c));O(d,0,null);c=O(d,1,null);var e=O(d,2,null);d=O(d,3,null);e=new q(null,2,[lr,e,Mk,r(d)?cu(d,"."," "):null],null);d=I(a);e=Ee(d)?new W(null,3,5,X,[c,zi.F(N([e,d])),J(a)],null):new W(null,3,5,X,[c,e,a],null);a=O(e,0,null);c=O(e,1,null);e=O(e,2,null);a=r(r(e)?e:uv.A?uv.A(a):uv.call(null,a))?["\x3c",u.A(a),u.A(D.B(u,bf(Ze, V.B(xv,c)))),"\x3e",u.A(yv.A?yv.A(e):yv.call(null,e)),"\x3c/",u.A(a),"\x3e"].join(""):["\x3c",u.A(a),u.A(D.B(u,bf(Ze,V.B(xv,c)))),C.B(Cm,Cm)?" /\x3e":"\x3e"].join("")}else a=Ne(a)?D.B(u,V.B(yv,a)):vv(a);return a};function yu(a,b){const c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\- \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(e,f,g,k,l,m,p,t){if("%"==m)return"%";const v=c.shift();if("undefined"==typeof v)throw Error("[goog.string.format] Not enough arguments");arguments[0]=v;return yu.kc[m].apply(null,arguments)})}yu.kc={}; yu.kc.s=function(a,b,c){return isNaN(c)||""==c||a.length>=Number(c)?a:a=-1Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(d=f+d);if(isNaN(c)||d.length>=Number(c))return d;d=isNaN(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-f.length;0<=b.indexOf("-",0)?d=f+d+Ia(" ",a):(b=0<=b.indexOf("0",0)?"0":" ",d=f+Ia(b,a)+d);return d};yu.kc.d=function(a,b,c,d,e,f,g,k){return yu.kc.f(parseInt(a,10),b,c,d,0,f,g,k)}; yu.kc.i=yu.kc.d;yu.kc.u=yu.kc.d;var zv={sg:["BC","AD"],rg:["Before Christ","Anno Domini"],ug:"JFMAMJJASOND".split(""),Bg:"JFMAMJJASOND".split(""),tg:"January February March April May June July August September October November December".split(" "),Ag:"January February March April May June July August September October November December".split(" "),xg:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Dg:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Hg:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), Fg:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),zg:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Eg:"Sun Mon Tue Wed Thu Fri Sat".split(" "),vg:"SMTWTFS".split(""),Cg:"SMTWTFS".split(""),yg:["Q1","Q2","Q3","Q4"],wg:["1st quarter","2nd quarter","3rd quarter","4th quarter"],og:["AM","PM"],pg:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Gg:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],qg:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Ge:6,Ig:[5,6],He:5},Av=zv; Av=zv;function Bv(a,b,c){a=new Date(a,b,c);a=a.valueOf()+864E5*(3-((a.getDay()+6)%7+7)%7);return Math.floor(Math.round((a-(new Date((new Date(a)).getFullYear(),0,1)).valueOf())/864E5)/7)+1}function Cv(a,b,c,d,e,f){"string"===typeof a?(this.ub=a==Dv?b:0,this.sb=a==Ev?b:0,this.wb=a==Fv?b:0,this.qb=a==Gv?b:0,this.rb=a==Hv?b:0,this.tb=a==Iv?b:0):(this.ub=a||0,this.sb=b||0,this.wb=c||0,this.qb=d||0,this.rb=e||0,this.tb=f||0)} Cv.prototype.pd=function(a){var b=Math.min(this.ub,this.sb,this.wb,this.qb,this.rb,this.tb),c=Math.max(this.ub,this.sb,this.wb,this.qb,this.rb,this.tb);if(0>b&&0b&&c.push("-");c.push("P");(this.ub||a)&&c.push(Math.abs(this.ub)+"Y");(this.sb||a)&&c.push(Math.abs(this.sb)+"M");(this.wb||a)&&c.push(Math.abs(this.wb)+"D");if(this.qb||this.rb||this.tb||a)c.push("T"),(this.qb||a)&&c.push(Math.abs(this.qb)+"H"),(this.rb||a)&&c.push(Math.abs(this.rb)+"M"), (this.tb||a)&&c.push(Math.abs(this.tb)+"S");return c.join("")};Cv.prototype.equals=function(a){return a.ub==this.ub&&a.sb==this.sb&&a.wb==this.wb&&a.qb==this.qb&&a.rb==this.rb&&a.tb==this.tb};Cv.prototype.clone=function(){return new Cv(this.ub,this.sb,this.wb,this.qb,this.rb,this.tb)};var Dv="y",Ev="m",Fv="d",Gv="h",Hv="n",Iv="s";Cv.prototype.isZero=function(){return 0==this.ub&&0==this.sb&&0==this.wb&&0==this.qb&&0==this.rb&&0==this.tb}; Cv.prototype.add=function(a){this.ub+=a.ub;this.sb+=a.sb;this.wb+=a.wb;this.qb+=a.qb;this.rb+=a.rb;this.tb+=a.tb};function Jv(a,b,c){"number"===typeof a?(this.date=Kv(a,b||0,c||1),Lv(this,c||1)):(b=typeof a,"object"==b&&null!=a||"function"==b?(this.date=Kv(a.getFullYear(),a.getMonth(),a.getDate()),Lv(this,a.getDate())):(this.date=new Date(Date.now()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Lv(this,a)))} function Kv(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}h=Jv.prototype;h.Nc=Av.Ge;h.Oc=Av.He;h.clone=function(){var a=new Jv(this.date);a.Nc=this.Nc;a.Oc=this.Oc;return a};h.getFullYear=function(){return this.date.getFullYear()};h.getYear=function(){return this.getFullYear()};h.getMonth=function(){return this.date.getMonth()};h.getDate=function(){return this.date.getDate()};h.getTime=function(){return this.date.getTime()};h.getDay=function(){return this.date.getDay()}; h.getUTCFullYear=function(){return this.date.getUTCFullYear()};h.getUTCMonth=function(){return this.date.getUTCMonth()};h.getUTCDate=function(){return this.date.getUTCDate()};h.getUTCDay=function(){return this.date.getDay()};h.getUTCHours=function(){return this.date.getUTCHours()};h.getUTCMinutes=function(){return this.date.getUTCMinutes()};h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())}; h.setFullYear=function(a){this.date.setFullYear(a)};h.setYear=function(a){this.setFullYear(a)};h.setMonth=function(a){this.date.setMonth(a)};h.setDate=function(a){this.date.setDate(a)};h.setTime=function(a){this.date.setTime(a)};h.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};h.setUTCMonth=function(a){this.date.setUTCMonth(a)};h.setUTCDate=function(a){this.date.setUTCDate(a)}; h.add=function(a){if(a.ub||a.sb){var b=this.getMonth()+a.sb+12*a.ub,c=this.getYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);a:{switch(b){case 1:var d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.wb&&(c=this.getYear(),b=0<=c&&99>=c?-1900:0,c=new Date(c,this.getMonth(),this.getDate(),12),a=new Date(c.getTime()+864E5*a.wb),this.setDate(1),this.setFullYear(a.getFullYear()+ b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Lv(this,a.getDate()))};h.pd=function(a){var b=this.getFullYear();const c=0>b?"-":1E4<=b?"+":"";return[c+Ja(Math.abs(b),c?6:4),Ja(this.getMonth()+1,2),Ja(this.getDate(),2)].join(a?"-":"")+""};h.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};h.toString=function(){return this.pd()}; function Lv(a,b){a.getDate()!=b&&(b=a.getDate()=e:null,v=r(p)?r(e)?r(t)?Sv(p,e):t:e:r(e)?r(t)?Rv(e):t:e,A=r(f)?r(v)?1<=f&&f<=v:1<=f&&31>=f:null,F=r(m)?0<=m&&23>=m:null,K=r(b)?0<=b&&59>=b:null,H=r(k)?0<=k&&60>=k:null,T=r(c)?0<=c&&999>=c:null,P=r(l)?1<=l&&53>=l:null,ha=r(d)?1<=d&&7>=d:null;if(lg(Le,Ig(wb,new W(null,8,5,X,[t,A,F,K,H,T,P,ha],null)))){if(zb(function(){var da=r(p)?p:r(e)?e:f;return r(da)?r(g)? g:r(l)?l:d:da}()))return a;throw Tj("Mixing year, month, day and week-year week-number fields",new q(null,3,[Pt,mt,yk,a,$p,U],null));}throw Tj("Date is not valid",new q(null,3,[Pt,mt,yk,a,$p,function(){var da=!1===t?Q.C(U,bq,e):U;da=!1===A?Q.C(da,Zk,f):da;da=!1===F?Q.C(da,zn,m):da;da=!1===K?Q.C(da,Hs,b):da;da=!1===H?Q.C(da,Nm,k):da;da=!1===T?Q.C(da,Jl,c):da;da=!1===P?Q.C(da,Et,l):da;return!1===ha?Q.C(da,qo,d):da}()],null));} function Uv(a,b){return I(xg(function(c,d){return r(Pv(N([d,b])))?c:null},a))}function Vv(a){a=V.B(function(b){return b instanceof B||b instanceof y?u.A(b):b},a);return D.C(yu,"%s not implemented yet",a)};function Wv(a,b,c,d,e,f,g){this.date=new Date("number"===typeof a?Date.UTC(a,b||0,c||1,d||0,e||0,f||0,g||0):a?a.getTime():Date.now())}ma(Wv,Mv);h=Wv.prototype;h.clone=function(){var a=new Wv(this.date);a.Nc=this.Nc;a.Oc=this.Oc;return a};h.add=function(a){(a.ub||a.sb)&&Jv.prototype.add.call(this,new Cv(a.ub,a.sb));this.date=new Date(this.date.getTime()+1E3*(a.tb+60*(a.rb+60*(a.qb+24*a.wb))))};h.getTimezoneOffset=function(){return 0};h.getFullYear=Mv.prototype.getUTCFullYear;h.getMonth=Mv.prototype.getUTCMonth; h.getDate=Mv.prototype.getUTCDate;h.getHours=Mv.prototype.getUTCHours;h.getMinutes=Mv.prototype.getUTCMinutes;h.getSeconds=Mv.prototype.getUTCSeconds;h.getMilliseconds=Mv.prototype.getUTCMilliseconds;h.getDay=Mv.prototype.getUTCDay;h.setFullYear=Mv.prototype.setUTCFullYear;h.setMonth=Mv.prototype.setUTCMonth;h.setDate=Mv.prototype.setUTCDate;h.setHours=Mv.prototype.setUTCHours;h.setMinutes=Mv.prototype.setUTCMinutes;h.setSeconds=Mv.prototype.setUTCSeconds;h.setMilliseconds=Mv.prototype.setUTCMilliseconds;function Xv(a,b){return cu("string"===typeof a?a:du(a),b,"")}function Yv(a){return new W(null,2,5,X,[Ho,a],null)}function Zv(a,b){var c=G(b);I(c);J(c);for(c=oe;;){var d=b,e=G(d);b=I(e);e=J(e);var f=b;f=r(f)?a.A?a.A(b):a.call(null,b):f;if(r(f))c=ne.B(c,b),b=e;else return new W(null,2,5,X,[c,d],null)}}function $v(a,b){var c=Zv(Ei([a]),b);b=O(c,0,null);c=O(c,1,null);return new W(null,2,5,X,[new W(null,2,5,X,[ak,D.C(u,a,b)],null),c],null)} function aw(a,b){var c=G(b);a=I(c);c=J(c);if(C.B(a,"'"))return new W(null,2,5,X,[Yv("'"),c],null);a=Zv(ng(new Y(null,new q(null,1,["'",null],null),null)),b);b=O(a,0,null);a=O(a,1,null);return new W(null,2,5,X,[Yv(b),Ed(a)],null)}function bw(a,b){var c=Zv(function(d){return zb(Si(/[a-zA-Z']/,d))},b);b=O(c,0,null);c=O(c,1,null);return new W(null,2,5,X,[Yv(D.C(u,a,b)),c],null)} function cw(a){var b=a;for(a=oe;;){var c=G(b);b=I(c);c=J(c);var d=C.B(b,"'")?aw:r(Si(/[a-zA-Z]/,u.A(b)))?$v:bw;b=d.B?d.B(b,c):d.call(null,b,c);c=O(b,0,null);b=O(b,1,null);a=ne.B(a,c);if(!G(b))return a}} function dw(a,b){var c=I(a);a=du(Ed(a));var d=M(b)-1;var e=[u.A(c),a.substring(0,d)].join("");C.B(b,e)?(b=X,c=M(a),a=new W(null,2,5,b,[e,a.substring(d,c)],null)):a=new W(null,2,5,X,[null,[u.A(c),u.A(a)].join("")],null);d=a;a=O(d,0,null);d=O(d,1,null);return r(a)?new W(null,2,5,X,[new W(null,2,5,X,[sl,a],null),d],null):null} function ew(a,b,c){var d=Zv(function(e){return Si(/\d/,e)},a);a=O(d,0,null);d=O(d,1,null);return M(a)>=b?new W(null,2,5,X,[parseInt(D.B(u,yg.B(c,a))),Vf.B(zg(c,a),d)],null):new W(null,2,5,X,[parseInt(D.B(u,a)),d],null)}function fw(a,b,c,d){c=ew(a,c,d);a=O(c,0,null);c=O(c,1,null);return new W(null,2,5,X,[new W(null,2,5,X,[b,a],null),c],null)}function gw(a,b){return function(c){return fw(c,nn,a,b)}}function hw(a,b){return function(c){return fw(c,yp,a,b)}} function iw(a){return function(b){return fw(b,Et,a,2)}}function jw(){return function(a){return fw(a,bq,1,2)}}function kw(a,b){return function(c){return fw(c,Zk,a,b)}}function lw(){return function(a){return fw(a,qo,1,2)}}function mw(a){return function(b){return fw(b,zn,a,2)}}function nw(a){return function(b){return fw(b,Lk,a,2)}}function ow(a){return function(b){return fw(b,Hs,a,2)}}function pw(a){return function(b){return fw(b,Nm,a,2)}}function qw(a,b){return function(c){return fw(c,Jl,a,b)}} function rw(a,b,c){b=60*parseInt(b,10)+parseInt(c,10);a=C.B(a,"+")?lf:kf;return new W(null,2,5,X,[Sp,new Cv(Hv,a.A?a.A(b):a.call(null,b))],null)} function sw(a){return function(b){function c(m){var p=du(yg.B(5,k)),t=Si(/^(\d{2}):(\d{2})/,p);return r(t)?(O(t,0,null),p=O(t,1,null),t=O(t,2,null),new W(null,2,5,X,[rw(m,p,t),zg(5,k)],null)):null}function d(m){var p=du(yg.B(4,k)),t=Si(/^(\d{2})(\d{2})/,p);return r(t)?(O(t,0,null),p=O(t,1,null),t=O(t,2,null),new W(null,2,5,X,[rw(m,p,t),zg(4,k)],null)):null}function e(){return Tj(["Invalid timezone format: ",u.A(b)].join(""),new q(null,1,[Pt,Dn],null))}var f=G(b),g=I(f),k=J(f);if(r(function(){var m= new Y(null,new q(null,2,["+",null,"-",null],null),null);return m.A?m.A(g):m.call(null,g)}()))switch(f=a instanceof B?a.ta:null,f){case "dddd":f=d(g);if(r(f))return f;f=c(g);if(r(f))return f;throw e();case "long":f=d(g);if(r(f))return f;f=c(g);if(r(f))return f;throw e();default:throw Error(["No matching clause: ",u.A(f)].join(""));}else{if(C.B(g,"Z"))return new W(null,1,5,X,[new W(null,2,5,X,[Sp,rw(kf,"0","0")],null)],null);switch(a instanceof B?a.ta:null){case "abbr":f=yg.B(3,b);f=Zv(function(m){return Si(/[A-Z]/, m)},f);var l=O(f,0,null);O(f,1,null);if(C.B(M(l),3))return new W(null,2,5,X,[new W(null,2,5,X,[Sp,du(l)],null),zg(3,b)],null);throw e();case "full":throw Tj(["Cannot parse long form timezone:",u.A(b)].join(""),new q(null,1,[Pt,Dn],null));default:throw e();}}}} function tw(){return function(a){a=Bg(a);var b=O(a,0,null),c=O(b,0,null);b=O(b,1,null);a=O(a,1,null);var d=[u.A(c),u.A(b)].join("");if(r(function(){var e=new Y(null,new q(null,4,["AM",null,"am",null,"pm",null,"PM",null],null),null);return e.A?e.A(d):e.call(null,d)}()))a=new W(null,2,5,X,[d,a],null);else if(r(function(){var e=new Y(null,new q(null,2,["a",null,"p",null],null),null);return e.A?e.A(c):e.call(null,c)}()))a=new W(null,2,5,X,[function(){var e=new q(null,2,["a","am","p","pm"],null);return e.A? e.A(c):e.call(null,c)}(),he(b,a)],null);else if(r(function(){var e=new Y(null,new q(null,2,["A",null,"P",null],null),null);return e.A?e.A(c):e.call(null,c)}()))a=new W(null,2,5,X,[function(){var e=new q(null,2,["A","am","P","pm"],null);return e.A?e.A(c):e.call(null,c)}(),he(b,a)],null);else throw Tj(["Invalid meridiem format: ",d].join(""),new q(null,1,[Pt,Dn],null));b=a;a=O(b,0,null);b=O(b,1,null);return new W(null,2,5,X,[new W(null,2,5,X,[al,Jf.A(a)],null),du(b)],null)}} function uw(a,b,c){c=Vf.B(c,V.B(function(f){return f.substring(0,3)},c));var d=I(Ig(pg.B(qg(C,a),le),V.B(function(f){return new W(null,2,5,X,[f,Xv(a,Ti(["^",u.A(f)].join("")))],null)},c))),e=O(d,0,null);d=O(d,1,null);if(r(e))return new W(null,2,5,X,[new W(null,2,5,X,[b,of(Uv(c,e),12)],null),d],null);throw Tj(["Could not parse ",Kf(b)," name"].join(""),new q(null,4,[Pt,Dn,Rr,Wl,vk,b,rr,d],null));}function vw(){return function(a){return Pg.C(uw(a,bq,Nv),new W(null,2,5,X,[0,1],null),Qd)}} function ww(){return function(a){return uw(a,Zk,Ov)}}function xw(a){var b=Ti(D.C(u,"^",a));return function(c){c=du(c);var d=Xv(c,b);if(C.B(c,d))throw Tj("Quoted text not found",new q(null,2,[Pt,Dn,Nq,os],null));return new W(null,2,5,X,[new W(null,2,5,X,[Ho,a],null),d],null)}}function yw(){return function(a){var b=dw(a,"st");if(r(b))return b;b=dw(a,"nd");if(r(b))return b;b=dw(a,"rd");return r(b)?b:dw(a,"th")}} function zw(a){var b=O(a,0,null);a=O(a,1,null);if(C.B(b,ak))switch(a){case "S":return qw(1,2);case "SSS":return qw(3,3);case "s":return pw(1);case "ss":return pw(2);case "m":return ow(1);case "mm":return ow(2);case "h":return mw(1);case "hh":return mw(2);case "H":return nw(1);case "HH":return nw(2);case "d":return kw(1,2);case "dd":return kw(2,2);case "D":return kw(1,3);case "DD":return kw(2,3);case "DDD":return kw(3,3);case "M":return jw();case "MM":return jw();case "MMM":return vw();case "MMMM":return vw(); case "y":return gw(1,4);case "yy":return gw(2,2);case "yyyy":return gw(4,4);case "Y":return gw(1,4);case "YY":return gw(2,2);case "YYYY":return gw(4,4);case "x":return hw(1,4);case "xx":return hw(2,2);case "xxxx":return hw(4,4);case "w":return iw(1);case "ww":return iw(2);case "E":return ww();case "EEE":return ww();case "EEEE":return ww();case "e":return lw();case "a":return tw();case "A":return tw();case "Z":return sw(zl);case "ZZ":return sw(As);case "ZZZ":return sw(pq);case "ZZZZ":return sw(pq); case "z":return sw(pq);case "zz":return sw(pq);case "zzz":return sw(pq);case "zzzz":return sw(dn);case "o":return yw();default:throw Tj(["Illegal pattern component: ",u.A(a)].join(""),new q(null,1,[Pt,dl],null));}else return xw(a)} function Aw(a,b){a=V.B(zw,cw(a));for(var c=G(a),d=I(c),e=J(c),f=b,g=a,k=oe;;){var l=f,m=g,p=G(m),t=I(p),v=J(p),A=t,F=v,K=k;f=function(H,T,P,ha){return function(){return Tj(["Invalid format: ",u.A(b)," is malformed at ",gj.F(N([ha]))].join(""),new q(null,2,[Pt,Dn,Rr,ko],null))}}(f,g,k,l,m,p,t,v,A,F,K,b,a,a,c,d,e,d,e,oe);if(G(l)){if(null==A)throw f();g=A.A?A.A(l):A.call(null,l);f=O(g,0,null);g=O(g,1,null);K=ne.B(K,f);f=g;g=F;k=K}else{if(r(A))throw f();return K}}} function Bw(a,b){var c=(new Jv).getYear(),d=c-of(c,100);a=r(a)?a:r(b)?b:0;return ad?u.A(c):[du(yg.B(d-u.A(c).length,Dg("0"))),u.A(c)].join("");e=c.substring(c.length-e);return new W(null,2,5,X,[[u.A(a),e].join(""),b],null)}var Fw=function Fw(a){switch(arguments.length){case 1:return Fw.A(arguments[0]);case 2:return Fw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Fw.A=function(a){return Fw.B(a,a)};Fw.B=function(a,b){return function(c,d){return Ew(c,d,d.getMilliseconds(),a,b)}};Fw.O=2; var Gw=function Gw(a){switch(arguments.length){case 1:return Gw.A(arguments[0]);case 2:return Gw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Gw.A=function(a){return Gw.B(a,a)};Gw.B=function(a,b){return function(c,d){return Ew(c,d,d.getSeconds(),a,b)}};Gw.O=2; var Hw=function Hw(a){switch(arguments.length){case 1:return Hw.A(arguments[0]);case 2:return Hw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Hw.A=function(a){return Hw.B(a,a)};Hw.B=function(a,b){return function(c,d){return Ew(c,d,d.getMinutes(),a,b)}};Hw.O=2; var Iw=function Iw(a){switch(arguments.length){case 1:return Iw.A(arguments[0]);case 2:return Iw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Iw.A=function(a){return Iw.B(a,a)};Iw.B=function(a,b){return function(c,d){var e=of(d.getHours(),12);return Ew(c,d,0===e?12:e,a,b)}};Iw.O=2; var Jw=function Jw(a){switch(arguments.length){case 1:return Jw.A(arguments[0]);case 2:return Jw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Jw.A=function(a){return Jw.B(a,a)};Jw.B=function(a,b){return function(c,d){return Ew(c,d,d.getHours(),a,b)}};Jw.O=2; var Kw=function Kw(a){switch(arguments.length){case 1:return Kw.A(arguments[0]);case 2:return Kw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Kw.A=function(a){return Kw.B(a,a)};Kw.B=function(a,b){return function(c,d){return Ew(c,d,d.getDate(),a,b)}};Kw.O=2; var Lw=function Lw(a){switch(arguments.length){case 1:return Lw.A(arguments[0]);case 2:return Lw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Lw.A=function(a){return Lw.B(a,a)};Lw.B=function(a,b){return function(c,d){var e=d.getDay();e=C.B(e,0)?7:e;return Ew(c,d,e,a,b)}};Lw.O=2; var Mw=function Mw(a){switch(arguments.length){case 1:return Mw.A(arguments[0]);case 2:return Mw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Mw.A=function(a){return Mw.B(a,a)};Mw.B=function(a,b){return function(c,d){return Ew(c,d,d.getMonth()+1,a,b)}};Mw.O=2; var Nw=function Nw(a){switch(arguments.length){case 1:return Nw.A(arguments[0]);case 2:return Nw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Nw.A=function(a){return Nw.B(a,a)};Nw.B=function(a,b){return function(c,d){return Ew(c,d,d.getYear(),a,b)}};Nw.O=2;function Ow(a){return function(b,c){return new W(null,2,5,X,[D.C(u,b,a),c],null)}} function Pw(a,b,c,d,e){var f=lh(function(){return r(e)?V.B(function(g){return g.substring(0,3)},d):d}());return new W(null,2,5,X,[[u.A(a),u.A(f.A?f.A(c):f.call(null,c))].join(""),b],null)}function Qw(a){return function(b,c){return Pw(b,c,c.getMonth(),Nv,a)}}function Rw(a){return function(b,c){return Pw(b,c,c.getDay(),Ov,a)}} var Sw=function Sw(a){switch(arguments.length){case 1:return Sw.A(arguments[0]);case 2:return Sw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Sw.A=function(a){return Sw.B(a,a)};Sw.B=function(a,b){return function(c,d){var e=d.getYear(),f=d.getMonth(),g=d.getDate(),k=Pv(N([f,0])),l=Pv(N([f,11]));f=Bv(e,f,g);e=r(r(k)?52<=f:k)?e-1:r(r(l)?Pv(N([f,1])):l)?e+1:e;return Ew(c,d,e,a,b)}};Sw.O=2; var Tw=function Tw(a){switch(arguments.length){case 1:return Tw.A(arguments[0]);case 2:return Tw.B(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",u.A(arguments.length)].join(""));}};Tw.A=function(a){return Tw.B(a,a)};Tw.B=function(a,b){return function(c,d){var e=d.getYear(),f=d.getMonth(),g=d.getDate();return Ew(c,d,Bv(e,f,g),a,b)}};Tw.O=2; function Uw(a){return function(b,c){var d=c.getHours();d=r(a)?12>d?"AM":"PM":12>d?"am":"pm";return new W(null,2,5,X,[[u.A(b),d].join(""),c],null)}}function Vw(){return function(a,b){if(b instanceof Wv){var c=X;a=u.A(a);var d=u,e=d.A;var f=b.getTimezoneOffset();if(0==f)f="Z";else{var g=Math.abs(f)/60,k=Math.floor(g);g=60*(g-k);f=(0a?xx(this,Yt,wx(this,Yt)+M(b)):(xx(this,Yt,M(b)-a-1),xx(this,ck,wx(this,ck)+M(Hg(function(c){return C.B(c,"\n")},b)))),x(wx(this,kt),b);if(r(C.B?C.B(Number,a):C.call(null,Number,a)))return yx(this,b);throw Error(["No matching clause: ",u.A(a)].join(""));}; function Ax(a,b,c,d,e,f,g,k,l,m,p,t,v){this.parent=a;this.nb=b;this.Ua=c;this.Ta=d;this.ib=e;this.jb=f;this.prefix=g;this.mb=k;this.suffix=l;this.kb=m;this.Y=p;this.H=t;this.N=v;this.J=2230716170;this.T=139264}h=Ax.prototype;h.Aa=function(a,b){return this.ka(null,b,null)}; h.ka=function(a,b,c){switch(b instanceof B?b.ta:null){case "parent":return this.parent;case "section":return this.nb;case "start-col":return this.Ua;case "indent":return this.Ta;case "done-nl":return this.ib;case "intra-block-nl":return this.jb;case "prefix":return this.prefix;case "per-line-prefix":return this.mb;case "suffix":return this.suffix;case "logical-block-callback":return this.kb;default:return zd(this.H,b,c)}}; h.xb=function(a,b,c){return Pb(function(d,e){var f=O(e,0,null);e=O(e,1,null);return b.C?b.C(d,f,e):b.call(null,d,f,e)},c,this)}; h.la=function(a,b,c){return Ui(b,function(d){return Ui(b,bj,""," ","",c,d)},"#cljs.pprint.logical-block{",", ","}",c,Vf.B(new W(null,10,5,X,[new W(null,2,5,X,[$s,this.parent],null),new W(null,2,5,X,[Fs,this.nb],null),new W(null,2,5,X,[Br,this.Ua],null),new W(null,2,5,X,[Mn,this.Ta],null),new W(null,2,5,X,[Zq,this.ib],null),new W(null,2,5,X,[ok,this.jb],null),new W(null,2,5,X,[kp,this.prefix],null),new W(null,2,5,X,[vl,this.mb],null),new W(null,2,5,X,[kq,this.suffix],null),new W(null,2,5,X,[on,this.kb], null)],null),this.H))};h.Ea=function(){return new Eh(this,10,new W(null,10,5,X,[$s,Fs,Br,Mn,Zq,ok,kp,vl,kq,on],null),r(this.H)?jd(this.H):gg())};h.fa=function(){return this.Y};h.na=function(){return 10+M(this.H)};h.pa=function(){var a=this.N;return null!=a?a:this.N=a=1977012399^Md(this)}; h.oa=function(a,b){return null!=b&&this.constructor===b.constructor&&C.B(this.parent,b.parent)&&C.B(this.nb,b.nb)&&C.B(this.Ua,b.Ua)&&C.B(this.Ta,b.Ta)&&C.B(this.ib,b.ib)&&C.B(this.jb,b.jb)&&C.B(this.prefix,b.prefix)&&C.B(this.mb,b.mb)&&C.B(this.suffix,b.suffix)&&C.B(this.kb,b.kb)&&C.B(this.H,b.H)}; h.Fb=function(a,b){return Ye(new Y(null,new q(null,10,[kq,null,Mn,null,$s,null,Fs,null,Zq,null,Br,null,kp,null,vl,null,on,null,ok,null],null),null),b)?te.B(Bc(Lg.B(U,this),this.Y),b):new Ax(this.parent,this.nb,this.Ua,this.Ta,this.ib,this.jb,this.prefix,this.mb,this.suffix,this.kb,this.Y,eg(te.B(this.H,b)),null)}; h.ob=function(a,b){switch(b instanceof B?b.ta:null){case "parent":case "section":case "start-col":case "indent":case "done-nl":case "intra-block-nl":case "prefix":case "per-line-prefix":case "suffix":case "logical-block-callback":return!0;default:return Ye(this.H,b)}}; h.za=function(a,b,c){return r(S.B?S.B($s,b):S.call(null,$s,b))?new Ax(c,this.nb,this.Ua,this.Ta,this.ib,this.jb,this.prefix,this.mb,this.suffix,this.kb,this.Y,this.H,null):r(S.B?S.B(Fs,b):S.call(null,Fs,b))?new Ax(this.parent,c,this.Ua,this.Ta,this.ib,this.jb,this.prefix,this.mb,this.suffix,this.kb,this.Y,this.H,null):r(S.B?S.B(Br,b):S.call(null,Br,b))?new Ax(this.parent,this.nb,c,this.Ta,this.ib,this.jb,this.prefix,this.mb,this.suffix,this.kb,this.Y,this.H,null):r(S.B?S.B(Mn,b):S.call(null,Mn,b))? new Ax(this.parent,this.nb,this.Ua,c,this.ib,this.jb,this.prefix,this.mb,this.suffix,this.kb,this.Y,this.H,null):r(S.B?S.B(Zq,b):S.call(null,Zq,b))?new Ax(this.parent,this.nb,this.Ua,this.Ta,c,this.jb,this.prefix,this.mb,this.suffix,this.kb,this.Y,this.H,null):r(S.B?S.B(ok,b):S.call(null,ok,b))?new Ax(this.parent,this.nb,this.Ua,this.Ta,this.ib,c,this.prefix,this.mb,this.suffix,this.kb,this.Y,this.H,null):r(S.B?S.B(kp,b):S.call(null,kp,b))?new Ax(this.parent,this.nb,this.Ua,this.Ta,this.ib,this.jb, c,this.mb,this.suffix,this.kb,this.Y,this.H,null):r(S.B?S.B(vl,b):S.call(null,vl,b))?new Ax(this.parent,this.nb,this.Ua,this.Ta,this.ib,this.jb,this.prefix,c,this.suffix,this.kb,this.Y,this.H,null):r(S.B?S.B(kq,b):S.call(null,kq,b))?new Ax(this.parent,this.nb,this.Ua,this.Ta,this.ib,this.jb,this.prefix,this.mb,c,this.kb,this.Y,this.H,null):r(S.B?S.B(on,b):S.call(null,on,b))?new Ax(this.parent,this.nb,this.Ua,this.Ta,this.ib,this.jb,this.prefix,this.mb,this.suffix,c,this.Y,this.H,null):new Ax(this.parent, this.nb,this.Ua,this.Ta,this.ib,this.jb,this.prefix,this.mb,this.suffix,this.kb,this.Y,Q.C(this.H,b,c),null)};h.ma=function(){return G(Vf.B(new W(null,10,5,X,[new eh($s,this.parent),new eh(Fs,this.nb),new eh(Br,this.Ua),new eh(Mn,this.Ta),new eh(Zq,this.ib),new eh(ok,this.jb),new eh(kp,this.prefix),new eh(vl,this.mb),new eh(kq,this.suffix),new eh(on,this.kb)],null),this.H))}; h.ga=function(a,b){return new Ax(this.parent,this.nb,this.Ua,this.Ta,this.ib,this.jb,this.prefix,this.mb,this.suffix,this.kb,b,this.H,this.N)};h.sa=function(a,b){return Ge(b)?this.za(null,ac(b,0),ac(b,1)):Pb(Zb,this,b)};function Bx(a,b){for(b=$s.A(b);;){if(null==b)return!1;if(a===b)return!0;b=$s.A(b)}}function Cx(a,b,c,d,e,f,g,k){this.ea=a;this.data=b;this.Hb=c;this.da=d;this.ba=e;this.Y=f;this.H=g;this.N=k;this.J=2230716170;this.T=139264}h=Cx.prototype;h.Aa=function(a,b){return this.ka(null,b,null)}; h.ka=function(a,b,c){switch(b instanceof B?b.ta:null){case "type-tag":return this.ea;case "data":return this.data;case "trailing-white-space":return this.Hb;case "start-pos":return this.da;case "end-pos":return this.ba;default:return zd(this.H,b,c)}};h.xb=function(a,b,c){return Pb(function(d,e){var f=O(e,0,null);e=O(e,1,null);return b.C?b.C(d,f,e):b.call(null,d,f,e)},c,this)}; h.la=function(a,b,c){return Ui(b,function(d){return Ui(b,bj,""," ","",c,d)},"#cljs.pprint.buffer-blob{",", ","}",c,Vf.B(new W(null,5,5,X,[new W(null,2,5,X,[yt,this.ea],null),new W(null,2,5,X,[Ak,this.data],null),new W(null,2,5,X,[fk,this.Hb],null),new W(null,2,5,X,[Oq,this.da],null),new W(null,2,5,X,[pl,this.ba],null)],null),this.H))};h.Ea=function(){return new Eh(this,5,new W(null,5,5,X,[yt,Ak,fk,Oq,pl],null),r(this.H)?jd(this.H):gg())};h.fa=function(){return this.Y};h.na=function(){return 5+M(this.H)}; h.pa=function(){var a=this.N;return null!=a?a:this.N=a=1809113693^Md(this)};h.oa=function(a,b){return null!=b&&this.constructor===b.constructor&&C.B(this.ea,b.ea)&&C.B(this.data,b.data)&&C.B(this.Hb,b.Hb)&&C.B(this.da,b.da)&&C.B(this.ba,b.ba)&&C.B(this.H,b.H)};h.Fb=function(a,b){return Ye(new Y(null,new q(null,5,[pl,null,fk,null,yt,null,Oq,null,Ak,null],null),null),b)?te.B(Bc(Lg.B(U,this),this.Y),b):new Cx(this.ea,this.data,this.Hb,this.da,this.ba,this.Y,eg(te.B(this.H,b)),null)}; h.ob=function(a,b){switch(b instanceof B?b.ta:null){case "type-tag":case "data":case "trailing-white-space":case "start-pos":case "end-pos":return!0;default:return Ye(this.H,b)}}; h.za=function(a,b,c){return r(S.B?S.B(yt,b):S.call(null,yt,b))?new Cx(c,this.data,this.Hb,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(Ak,b):S.call(null,Ak,b))?new Cx(this.ea,c,this.Hb,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(fk,b):S.call(null,fk,b))?new Cx(this.ea,this.data,c,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(Oq,b):S.call(null,Oq,b))?new Cx(this.ea,this.data,this.Hb,c,this.ba,this.Y,this.H,null):r(S.B?S.B(pl,b):S.call(null,pl,b))?new Cx(this.ea,this.data,this.Hb,this.da,c,this.Y, this.H,null):new Cx(this.ea,this.data,this.Hb,this.da,this.ba,this.Y,Q.C(this.H,b,c),null)};h.ma=function(){return G(Vf.B(new W(null,5,5,X,[new eh(yt,this.ea),new eh(Ak,this.data),new eh(fk,this.Hb),new eh(Oq,this.da),new eh(pl,this.ba)],null),this.H))};h.ga=function(a,b){return new Cx(this.ea,this.data,this.Hb,this.da,this.ba,b,this.H,this.N)};h.sa=function(a,b){return Ge(b)?this.za(null,ac(b,0),ac(b,1)):Pb(Zb,this,b)}; function Dx(a,b,c,d,e,f,g,k){this.ea=a;this.type=b;this.ja=c;this.da=d;this.ba=e;this.Y=f;this.H=g;this.N=k;this.J=2230716170;this.T=139264}h=Dx.prototype;h.Aa=function(a,b){return this.ka(null,b,null)};h.ka=function(a,b,c){switch(b instanceof B?b.ta:null){case "type-tag":return this.ea;case "type":return this.type;case "logical-block":return this.ja;case "start-pos":return this.da;case "end-pos":return this.ba;default:return zd(this.H,b,c)}}; h.xb=function(a,b,c){return Pb(function(d,e){var f=O(e,0,null);e=O(e,1,null);return b.C?b.C(d,f,e):b.call(null,d,f,e)},c,this)};h.la=function(a,b,c){return Ui(b,function(d){return Ui(b,bj,""," ","",c,d)},"#cljs.pprint.nl-t{",", ","}",c,Vf.B(new W(null,5,5,X,[new W(null,2,5,X,[yt,this.ea],null),new W(null,2,5,X,[Pt,this.type],null),new W(null,2,5,X,[To,this.ja],null),new W(null,2,5,X,[Oq,this.da],null),new W(null,2,5,X,[pl,this.ba],null)],null),this.H))}; h.Ea=function(){return new Eh(this,5,new W(null,5,5,X,[yt,Pt,To,Oq,pl],null),r(this.H)?jd(this.H):gg())};h.fa=function(){return this.Y};h.na=function(){return 5+M(this.H)};h.pa=function(){var a=this.N;return null!=a?a:this.N=a=-1640656800^Md(this)};h.oa=function(a,b){return null!=b&&this.constructor===b.constructor&&C.B(this.ea,b.ea)&&C.B(this.type,b.type)&&C.B(this.ja,b.ja)&&C.B(this.da,b.da)&&C.B(this.ba,b.ba)&&C.B(this.H,b.H)}; h.Fb=function(a,b){return Ye(new Y(null,new q(null,5,[pl,null,Pt,null,To,null,yt,null,Oq,null],null),null),b)?te.B(Bc(Lg.B(U,this),this.Y),b):new Dx(this.ea,this.type,this.ja,this.da,this.ba,this.Y,eg(te.B(this.H,b)),null)};h.ob=function(a,b){switch(b instanceof B?b.ta:null){case "type-tag":case "type":case "logical-block":case "start-pos":case "end-pos":return!0;default:return Ye(this.H,b)}}; h.za=function(a,b,c){return r(S.B?S.B(yt,b):S.call(null,yt,b))?new Dx(c,this.type,this.ja,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(Pt,b):S.call(null,Pt,b))?new Dx(this.ea,c,this.ja,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(To,b):S.call(null,To,b))?new Dx(this.ea,this.type,c,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(Oq,b):S.call(null,Oq,b))?new Dx(this.ea,this.type,this.ja,c,this.ba,this.Y,this.H,null):r(S.B?S.B(pl,b):S.call(null,pl,b))?new Dx(this.ea,this.type,this.ja,this.da,c,this.Y, this.H,null):new Dx(this.ea,this.type,this.ja,this.da,this.ba,this.Y,Q.C(this.H,b,c),null)};h.ma=function(){return G(Vf.B(new W(null,5,5,X,[new eh(yt,this.ea),new eh(Pt,this.type),new eh(To,this.ja),new eh(Oq,this.da),new eh(pl,this.ba)],null),this.H))};h.ga=function(a,b){return new Dx(this.ea,this.type,this.ja,this.da,this.ba,b,this.H,this.N)};h.sa=function(a,b){return Ge(b)?this.za(null,ac(b,0),ac(b,1)):Pb(Zb,this,b)}; function Ex(a,b,c,d,e,f,g){this.ea=a;this.ja=b;this.da=c;this.ba=d;this.Y=e;this.H=f;this.N=g;this.J=2230716170;this.T=139264}h=Ex.prototype;h.Aa=function(a,b){return this.ka(null,b,null)};h.ka=function(a,b,c){switch(b instanceof B?b.ta:null){case "type-tag":return this.ea;case "logical-block":return this.ja;case "start-pos":return this.da;case "end-pos":return this.ba;default:return zd(this.H,b,c)}}; h.xb=function(a,b,c){return Pb(function(d,e){var f=O(e,0,null);e=O(e,1,null);return b.C?b.C(d,f,e):b.call(null,d,f,e)},c,this)};h.la=function(a,b,c){return Ui(b,function(d){return Ui(b,bj,""," ","",c,d)},"#cljs.pprint.start-block-t{",", ","}",c,Vf.B(new W(null,4,5,X,[new W(null,2,5,X,[yt,this.ea],null),new W(null,2,5,X,[To,this.ja],null),new W(null,2,5,X,[Oq,this.da],null),new W(null,2,5,X,[pl,this.ba],null)],null),this.H))}; h.Ea=function(){return new Eh(this,4,new W(null,4,5,X,[yt,To,Oq,pl],null),r(this.H)?jd(this.H):gg())};h.fa=function(){return this.Y};h.na=function(){return 4+M(this.H)};h.pa=function(){var a=this.N;return null!=a?a:this.N=a=-414877272^Md(this)};h.oa=function(a,b){return null!=b&&this.constructor===b.constructor&&C.B(this.ea,b.ea)&&C.B(this.ja,b.ja)&&C.B(this.da,b.da)&&C.B(this.ba,b.ba)&&C.B(this.H,b.H)}; h.Fb=function(a,b){return Ye(new Y(null,new q(null,4,[pl,null,To,null,yt,null,Oq,null],null),null),b)?te.B(Bc(Lg.B(U,this),this.Y),b):new Ex(this.ea,this.ja,this.da,this.ba,this.Y,eg(te.B(this.H,b)),null)};h.ob=function(a,b){switch(b instanceof B?b.ta:null){case "type-tag":case "logical-block":case "start-pos":case "end-pos":return!0;default:return Ye(this.H,b)}}; h.za=function(a,b,c){return r(S.B?S.B(yt,b):S.call(null,yt,b))?new Ex(c,this.ja,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(To,b):S.call(null,To,b))?new Ex(this.ea,c,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(Oq,b):S.call(null,Oq,b))?new Ex(this.ea,this.ja,c,this.ba,this.Y,this.H,null):r(S.B?S.B(pl,b):S.call(null,pl,b))?new Ex(this.ea,this.ja,this.da,c,this.Y,this.H,null):new Ex(this.ea,this.ja,this.da,this.ba,this.Y,Q.C(this.H,b,c),null)}; h.ma=function(){return G(Vf.B(new W(null,4,5,X,[new eh(yt,this.ea),new eh(To,this.ja),new eh(Oq,this.da),new eh(pl,this.ba)],null),this.H))};h.ga=function(a,b){return new Ex(this.ea,this.ja,this.da,this.ba,b,this.H,this.N)};h.sa=function(a,b){return Ge(b)?this.za(null,ac(b,0),ac(b,1)):Pb(Zb,this,b)};function Fx(a,b,c,d,e,f,g){this.ea=a;this.ja=b;this.da=c;this.ba=d;this.Y=e;this.H=f;this.N=g;this.J=2230716170;this.T=139264}h=Fx.prototype;h.Aa=function(a,b){return this.ka(null,b,null)}; h.ka=function(a,b,c){switch(b instanceof B?b.ta:null){case "type-tag":return this.ea;case "logical-block":return this.ja;case "start-pos":return this.da;case "end-pos":return this.ba;default:return zd(this.H,b,c)}};h.xb=function(a,b,c){return Pb(function(d,e){var f=O(e,0,null);e=O(e,1,null);return b.C?b.C(d,f,e):b.call(null,d,f,e)},c,this)}; h.la=function(a,b,c){return Ui(b,function(d){return Ui(b,bj,""," ","",c,d)},"#cljs.pprint.end-block-t{",", ","}",c,Vf.B(new W(null,4,5,X,[new W(null,2,5,X,[yt,this.ea],null),new W(null,2,5,X,[To,this.ja],null),new W(null,2,5,X,[Oq,this.da],null),new W(null,2,5,X,[pl,this.ba],null)],null),this.H))};h.Ea=function(){return new Eh(this,4,new W(null,4,5,X,[yt,To,Oq,pl],null),r(this.H)?jd(this.H):gg())};h.fa=function(){return this.Y};h.na=function(){return 4+M(this.H)}; h.pa=function(){var a=this.N;return null!=a?a:this.N=a=1365867980^Md(this)};h.oa=function(a,b){return null!=b&&this.constructor===b.constructor&&C.B(this.ea,b.ea)&&C.B(this.ja,b.ja)&&C.B(this.da,b.da)&&C.B(this.ba,b.ba)&&C.B(this.H,b.H)};h.Fb=function(a,b){return Ye(new Y(null,new q(null,4,[pl,null,To,null,yt,null,Oq,null],null),null),b)?te.B(Bc(Lg.B(U,this),this.Y),b):new Fx(this.ea,this.ja,this.da,this.ba,this.Y,eg(te.B(this.H,b)),null)}; h.ob=function(a,b){switch(b instanceof B?b.ta:null){case "type-tag":case "logical-block":case "start-pos":case "end-pos":return!0;default:return Ye(this.H,b)}}; h.za=function(a,b,c){return r(S.B?S.B(yt,b):S.call(null,yt,b))?new Fx(c,this.ja,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(To,b):S.call(null,To,b))?new Fx(this.ea,c,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(Oq,b):S.call(null,Oq,b))?new Fx(this.ea,this.ja,c,this.ba,this.Y,this.H,null):r(S.B?S.B(pl,b):S.call(null,pl,b))?new Fx(this.ea,this.ja,this.da,c,this.Y,this.H,null):new Fx(this.ea,this.ja,this.da,this.ba,this.Y,Q.C(this.H,b,c),null)}; h.ma=function(){return G(Vf.B(new W(null,4,5,X,[new eh(yt,this.ea),new eh(To,this.ja),new eh(Oq,this.da),new eh(pl,this.ba)],null),this.H))};h.ga=function(a,b){return new Fx(this.ea,this.ja,this.da,this.ba,b,this.H,this.N)};h.sa=function(a,b){return Ge(b)?this.za(null,ac(b,0),ac(b,1)):Pb(Zb,this,b)};function Gx(a,b,c,d,e,f,g,k,l){this.ea=a;this.ja=b;this.Cb=c;this.offset=d;this.da=e;this.ba=f;this.Y=g;this.H=k;this.N=l;this.J=2230716170;this.T=139264}h=Gx.prototype; h.Aa=function(a,b){return this.ka(null,b,null)};h.ka=function(a,b,c){switch(b instanceof B?b.ta:null){case "type-tag":return this.ea;case "logical-block":return this.ja;case "relative-to":return this.Cb;case "offset":return this.offset;case "start-pos":return this.da;case "end-pos":return this.ba;default:return zd(this.H,b,c)}};h.xb=function(a,b,c){return Pb(function(d,e){var f=O(e,0,null);e=O(e,1,null);return b.C?b.C(d,f,e):b.call(null,d,f,e)},c,this)}; h.la=function(a,b,c){return Ui(b,function(d){return Ui(b,bj,""," ","",c,d)},"#cljs.pprint.indent-t{",", ","}",c,Vf.B(new W(null,6,5,X,[new W(null,2,5,X,[yt,this.ea],null),new W(null,2,5,X,[To,this.ja],null),new W(null,2,5,X,[jk,this.Cb],null),new W(null,2,5,X,[fl,this.offset],null),new W(null,2,5,X,[Oq,this.da],null),new W(null,2,5,X,[pl,this.ba],null)],null),this.H))};h.Ea=function(){return new Eh(this,6,new W(null,6,5,X,[yt,To,jk,fl,Oq,pl],null),r(this.H)?jd(this.H):gg())};h.fa=function(){return this.Y}; h.na=function(){return 6+M(this.H)};h.pa=function(){var a=this.N;return null!=a?a:this.N=a=-1602780238^Md(this)};h.oa=function(a,b){return null!=b&&this.constructor===b.constructor&&C.B(this.ea,b.ea)&&C.B(this.ja,b.ja)&&C.B(this.Cb,b.Cb)&&C.B(this.offset,b.offset)&&C.B(this.da,b.da)&&C.B(this.ba,b.ba)&&C.B(this.H,b.H)}; h.Fb=function(a,b){return Ye(new Y(null,new q(null,6,[fl,null,pl,null,jk,null,To,null,yt,null,Oq,null],null),null),b)?te.B(Bc(Lg.B(U,this),this.Y),b):new Gx(this.ea,this.ja,this.Cb,this.offset,this.da,this.ba,this.Y,eg(te.B(this.H,b)),null)};h.ob=function(a,b){switch(b instanceof B?b.ta:null){case "type-tag":case "logical-block":case "relative-to":case "offset":case "start-pos":case "end-pos":return!0;default:return Ye(this.H,b)}}; h.za=function(a,b,c){return r(S.B?S.B(yt,b):S.call(null,yt,b))?new Gx(c,this.ja,this.Cb,this.offset,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(To,b):S.call(null,To,b))?new Gx(this.ea,c,this.Cb,this.offset,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(jk,b):S.call(null,jk,b))?new Gx(this.ea,this.ja,c,this.offset,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(fl,b):S.call(null,fl,b))?new Gx(this.ea,this.ja,this.Cb,c,this.da,this.ba,this.Y,this.H,null):r(S.B?S.B(Oq,b):S.call(null,Oq,b))?new Gx(this.ea, this.ja,this.Cb,this.offset,c,this.ba,this.Y,this.H,null):r(S.B?S.B(pl,b):S.call(null,pl,b))?new Gx(this.ea,this.ja,this.Cb,this.offset,this.da,c,this.Y,this.H,null):new Gx(this.ea,this.ja,this.Cb,this.offset,this.da,this.ba,this.Y,Q.C(this.H,b,c),null)};h.ma=function(){return G(Vf.B(new W(null,6,5,X,[new eh(yt,this.ea),new eh(To,this.ja),new eh(jk,this.Cb),new eh(fl,this.offset),new eh(Oq,this.da),new eh(pl,this.ba)],null),this.H))}; h.ga=function(a,b){return new Gx(this.ea,this.ja,this.Cb,this.offset,this.da,this.ba,b,this.H,this.N)};h.sa=function(a,b){return Ge(b)?this.za(null,ac(b,0),ac(b,1)):Pb(Zb,this,b)};var Hx=function(){var a=tg(U),b=tg(U),c=tg(U),d=tg(U),e=zd(U,ss,Aj.I?Aj.I():Aj.call(null));return new Mj(Ad.B("cljs.pprint","write-token"),function(f,g){return yt.A(g)},e,a,b,c,d)}(); Hx.Fa(null,Im,function(a,b){var c=on.A(w(w(a)));r(c)&&(c.A?c.A(Us):c.call(null,Us));b=To.A(b);c=kp.A(b);r(c)&&x(kt.A(w(w(a))),c);a=wx(kt.A(w(w(a))),Yt);ug(Br.A(b),a);return ug(Mn.A(b),a)});Hx.Fa(null,Kp,function(a,b){var c=on.A(w(w(a)));r(c)&&(c.A?c.A(Pl):c.call(null,Pl));b=kq.A(To.A(b));return r(b)?x(kt.A(w(w(a))),b):null}); Hx.Fa(null,fn,function(a,b){var c=To.A(b),d=Mn.A(c),e=fl.A(b);b=jk.A(b);if(r(C.B?C.B(Ct,b):C.call(null,Ct,b)))a=w(Br.A(c));else if(r(C.B?C.B(Ik,b):C.call(null,Ik,b)))a=wx(kt.A(w(w(a))),Yt);else throw Error(["No matching clause: ",u.A(b)].join(""));return ug(d,e+a)});Hx.Fa(null,Gm,function(a,b){return x(kt.A(w(w(a))),Ak.A(b))}); Hx.Fa(null,nq,function(a,b){var c=C.B(Pt.A(b),Pq);c||(c=(c=!C.B(Pt.A(b),$q))?w(Zq.A(To.A(b))):c);r(c)?Ix.B?Ix.B(a,b):Ix.call(null,a,b):(b=fk.A(w(w(a))),r(b)&&x(kt.A(w(w(a))),b));return vg.U(w(a),Q,fk,null)}); function Jx(a,b,c){b=G(b);for(var d=null,e=0,f=0;;)if(f=e-d)?Lx(a,b,c):d:e:d}var Nx=function(){var a=tg(U),b=tg(U),c=tg(U),d=tg(U),e=zd(U,ss,Aj.I?Aj.I():Aj.call(null));return new Mj(Ad.B("cljs.pprint","emit-nl?"),function(f){return Pt.A(f)},e,a,b,c,d)}(); Nx.Fa(null,rk,function(a,b,c){a=To.A(a);return Lx(b,a,c)});Nx.Fa(null,Dk,function(a,b,c){a=To.A(a);return Mx(b,a,c)});Nx.Fa(null,$q,function(a,b,c,d){a=To.A(a);var e=w(ok.A(a));return r(e)?e:(d=!Kx(b,d))?d:Mx(b,a,c)});Nx.Fa(null,Pq,function(){return!0});function Ox(a){var b=I(a),c=To.A(b);b=G(Ii(function(d){return!(C.B(yt.A(d),nq)&&Bx(To.A(d),c))},J(a)));return new W(null,2,5,X,[b,G(zg(M(b)+1,a))],null)} function Px(a){var b=I(a),c=To.A(b);return G(Ii(function(d){var e=To.A(d);return!(C.B(yt.A(d),nq)&&(C.B(e,c)||Bx(e,c)))},J(a)))}function Ix(a,b){x(kt.A(w(w(a))),"\n");vg.U(w(a),Q,fk,null);b=To.A(b);var c=vl.A(b);r(c)&&x(kt.A(w(w(a))),c);c=D.B(u,Eg(w(Mn.A(b))-M(c)," "));x(kt.A(w(w(a))),c);a:for(ug(ok.A(b),!0),ug(Zq.A(b),!0),a=$s.A(b);;)if(r(a))ug(Zq.A(a),!0),ug(ok.A(a),!0),a=$s.A(a);else break a;return null} function Qx(a){var b=G(Ii(function(c){return!C.B(yt.A(c),nq)},a));return new W(null,2,5,X,[b,G(zg(M(b),a))],null)}var Rx=function Rx(a,b){var d=Qx(b);b=O(d,0,null);var e=O(d,1,null);r(b)&&Jx(a,b,!1);if(r(e)){d=Ox(e);b=O(d,0,null);d=O(d,1,null);var f=I(e),g=Nx.U(f,a,b,Px(e));r(g)&&(Ix(a,f),e=J(e));Kx(a,e)?a=e:(e=Rx.B?Rx.B(a,b):Rx.call(null,a,b),C.B(e,b)?(Jx(a,b,!1),a=d):a=Lg.B(oe,Vf.B(e,d)));return a}return null}; function Sx(a){for(var b=An.A(w(w(a)));;){vg.U(w(a),Q,An,Lg.B(oe,b));if(Kx(a,b))return null;var c=Rx(a,b);if(b!==c)b=c;else return null}}function Tx(a,b){vg.U(w(a),Q,An,ne.B(An.A(w(w(a))),b));return Kx(a,An.A(w(w(a))))?null:Sx(a)}function Ux(a){var b=fk.A(w(w(a)));return r(b)?(x(kt.A(w(w(a))),b),vg.U(w(a),Q,fk,null)):null} function Vx(a,b){var c=gu(b,"\n",-1);if(C.B(M(c),1))return b;b=vl.A(I(fm.A(w(w(a)))));var d=I(c);if(C.B(Zl,Vm.A(w(w(a))))){var e=Lt.A(w(w(a))),f=e+M(d);vg.U(w(a),Q,Lt,f);Tx(a,new Cx(Gm,d,null,e,f,null,null,null));Sx(a);d=An.A(w(w(a)));r(d)&&(Jx(a,d,!0),vg.U(w(a),Q,An,oe))}else Ux(a),x(kt.A(w(w(a))),d);x(kt.A(w(w(a))),"\n");d=G(J(Gi(c)));e=null;for(var g=f=0;;)if(g=mb:b);zb(by)?ox.call(null,a):r(b)?x(ib,"..."):(r(jy)&&(jy+=1),cy.call(null,a));return b}var my=function my(a){for(var c=[],d=arguments.length,e=0;;)if(e=nb:a} function py(a){ny(a,new Y(null,new q(null,4,[Pq,null,Dk,null,$q,null,rk,null],null),null));var b=ib;vg.U(w(b),Q,Vm,Zl);var c=Lt.A(w(w(b))),d=fm.A(w(w(b)));Tx(b,new Dx(nq,a,d,c,c,null,null,null))} function qy(a,b){ny(a,new Y(null,new q(null,2,[Ct,null,Ik,null],null),null));var c=ib,d=fm.A(w(w(c)));if(C.B(Vm.A(w(w(c))),jn)){Ux(c);var e=Mn.A(d);if(r(C.B?C.B(Ct,a):C.call(null,Ct,a)))a=w(Br.A(d));else if(r(C.B?C.B(Ik,a):C.call(null,Ik,a)))a=wx(kt.A(w(w(c))),Yt);else throw Error(["No matching clause: ",u.A(a)].join(""));ug(e,b+a)}else e=Lt.A(w(w(c))),Tx(c,new Gx(fn,d,a,b,e,e,null,null,null))} function ry(a,b,c){b="string"===typeof b?sy(b):b;c=ty(c);a:{var d=new hb,e=zb(a)||!0===a?new ld(d):a,f=uy(b)&&zb(ky(e))?r(ky(e))?e:Xx(e):e,g=ib;ib=f;try{try{vy(b,c)}finally{e!==f&&Qc(f)}var k=zb(a)?u.A(d):!0===a?Xi(u.A(d)):null;break a}finally{ib=g}k=void 0}return k}var wy=null;function xy(a,b){a=[u.A(a),"\n",u.A(wy),"\n",u.A(D.B(u,Eg(b," "))),"^\n"].join("");throw Error(a);}function yy(a,b,c,d,e,f){this.ac=a;this.Na=b;this.Zb=c;this.Y=d;this.H=e;this.N=f;this.J=2230716170;this.T=139264}h=yy.prototype; h.Aa=function(a,b){return this.ka(null,b,null)};h.ka=function(a,b,c){switch(b instanceof B?b.ta:null){case "seq":return this.ac;case "rest":return this.Na;case "pos":return this.Zb;default:return zd(this.H,b,c)}};h.xb=function(a,b,c){return Pb(function(d,e){var f=O(e,0,null);e=O(e,1,null);return b.C?b.C(d,f,e):b.call(null,d,f,e)},c,this)}; h.la=function(a,b,c){return Ui(b,function(d){return Ui(b,bj,""," ","",c,d)},"#cljs.pprint.arg-navigator{",", ","}",c,Vf.B(new W(null,3,5,X,[new W(null,2,5,X,[or,this.ac],null),new W(null,2,5,X,[tp,this.Na],null),new W(null,2,5,X,[Lt,this.Zb],null)],null),this.H))};h.Ea=function(){return new Eh(this,3,new W(null,3,5,X,[or,tp,Lt],null),r(this.H)?jd(this.H):gg())};h.fa=function(){return this.Y};h.na=function(){return 3+M(this.H)};h.pa=function(){var a=this.N;return null!=a?a:this.N=a=-402038447^Md(this)}; h.oa=function(a,b){return null!=b&&this.constructor===b.constructor&&C.B(this.ac,b.ac)&&C.B(this.Na,b.Na)&&C.B(this.Zb,b.Zb)&&C.B(this.H,b.H)};h.Fb=function(a,b){return Ye(new Y(null,new q(null,3,[Lt,null,or,null,tp,null],null),null),b)?te.B(Bc(Lg.B(U,this),this.Y),b):new yy(this.ac,this.Na,this.Zb,this.Y,eg(te.B(this.H,b)),null)};h.ob=function(a,b){switch(b instanceof B?b.ta:null){case "seq":case "rest":case "pos":return!0;default:return Ye(this.H,b)}}; h.za=function(a,b,c){return r(S.B?S.B(or,b):S.call(null,or,b))?new yy(c,this.Na,this.Zb,this.Y,this.H,null):r(S.B?S.B(tp,b):S.call(null,tp,b))?new yy(this.ac,c,this.Zb,this.Y,this.H,null):r(S.B?S.B(Lt,b):S.call(null,Lt,b))?new yy(this.ac,this.Na,c,this.Y,this.H,null):new yy(this.ac,this.Na,this.Zb,this.Y,Q.C(this.H,b,c),null)};h.ma=function(){return G(Vf.B(new W(null,3,5,X,[new eh(or,this.ac),new eh(tp,this.Na),new eh(Lt,this.Zb)],null),this.H))}; h.ga=function(a,b){return new yy(this.ac,this.Na,this.Zb,b,this.H,this.N)};h.sa=function(a,b){return Ge(b)?this.za(null,ac(b,0),ac(b,1)):Pb(Zb,this,b)};function ty(a){a=G(a);return new yy(a,a,0,null,null,null)}function zy(a){var b=tp.A(a);if(r(b))return new W(null,2,5,X,[I(b),new yy(or.A(a),J(b),Lt.A(a)+1,null,null,null)],null);throw Error("Not enough arguments for format definition");} function Ay(a){var b=zy(a);a=O(b,0,null);b=O(b,1,null);a="string"===typeof a?sy(a):a;return new W(null,2,5,X,[a,b],null)}function By(a,b){return b>=Lt.A(a)?(b=Lt.A(a)-b,Cy.B?Cy.B(a,b):Cy.call(null,a,b)):new yy(or.A(a),zg(b,or.A(a)),b,null,null,null)}function Cy(a,b){var c=Lt.A(a)+b;return 0>b?By(a,c):new yy(or.A(a),zg(b,tp.A(a)),c,null,null,null)}function Dy(a,b,c,d,e,f,g){this.func=a;this.def=b;this.params=c;this.offset=d;this.Y=e;this.H=f;this.N=g;this.J=2230716170;this.T=139264}h=Dy.prototype; h.Aa=function(a,b){return this.ka(null,b,null)};h.ka=function(a,b,c){switch(b instanceof B?b.ta:null){case "func":return this.func;case "def":return this.def;case "params":return this.params;case "offset":return this.offset;default:return zd(this.H,b,c)}};h.xb=function(a,b,c){return Pb(function(d,e){var f=O(e,0,null);e=O(e,1,null);return b.C?b.C(d,f,e):b.call(null,d,f,e)},c,this)}; h.la=function(a,b,c){return Ui(b,function(d){return Ui(b,bj,""," ","",c,d)},"#cljs.pprint.compiled-directive{",", ","}",c,Vf.B(new W(null,4,5,X,[new W(null,2,5,X,[eo,this.func],null),new W(null,2,5,X,[Qr,this.def],null),new W(null,2,5,X,[eq,this.params],null),new W(null,2,5,X,[fl,this.offset],null)],null),this.H))};h.Ea=function(){return new Eh(this,4,new W(null,4,5,X,[eo,Qr,eq,fl],null),r(this.H)?jd(this.H):gg())};h.fa=function(){return this.Y};h.na=function(){return 4+M(this.H)}; h.pa=function(){var a=this.N;return null!=a?a:this.N=a=-829256337^Md(this)};h.oa=function(a,b){return null!=b&&this.constructor===b.constructor&&C.B(this.func,b.func)&&C.B(this.def,b.def)&&C.B(this.params,b.params)&&C.B(this.offset,b.offset)&&C.B(this.H,b.H)};h.Fb=function(a,b){return Ye(new Y(null,new q(null,4,[fl,null,eo,null,eq,null,Qr,null],null),null),b)?te.B(Bc(Lg.B(U,this),this.Y),b):new Dy(this.func,this.def,this.params,this.offset,this.Y,eg(te.B(this.H,b)),null)}; h.ob=function(a,b){switch(b instanceof B?b.ta:null){case "func":case "def":case "params":case "offset":return!0;default:return Ye(this.H,b)}}; h.za=function(a,b,c){return r(S.B?S.B(eo,b):S.call(null,eo,b))?new Dy(c,this.def,this.params,this.offset,this.Y,this.H,null):r(S.B?S.B(Qr,b):S.call(null,Qr,b))?new Dy(this.func,c,this.params,this.offset,this.Y,this.H,null):r(S.B?S.B(eq,b):S.call(null,eq,b))?new Dy(this.func,this.def,c,this.offset,this.Y,this.H,null):r(S.B?S.B(fl,b):S.call(null,fl,b))?new Dy(this.func,this.def,this.params,c,this.Y,this.H,null):new Dy(this.func,this.def,this.params,this.offset,this.Y,Q.C(this.H,b,c),null)}; h.ma=function(){return G(Vf.B(new W(null,4,5,X,[new eh(eo,this.func),new eh(Qr,this.def),new eh(eq,this.params),new eh(fl,this.offset)],null),this.H))};h.ga=function(a,b){return new Dy(this.func,this.def,this.params,this.offset,b,this.H,this.N)};h.sa=function(a,b){return Ge(b)?this.za(null,ac(b,0),ac(b,1)):Pb(Zb,this,b)}; function Ey(a,b){var c=O(a,0,null);a=O(a,1,null);var d=O(a,0,null);a=O(a,1,null);d=Ye(new Y(null,new q(null,2,[Ln,null,lq,null],null),null),c)?new W(null,2,5,X,[d,b],null):C.B(d,mn)?zy(b):C.B(d,em)?new W(null,2,5,X,[M(tp.A(b)),b],null):new W(null,2,5,X,[d,b],null);b=O(d,0,null);d=O(d,1,null);return new W(null,2,5,X,[new W(null,2,5,X,[c,new W(null,2,5,X,[b,a],null)],null),d],null)}function Fy(a,b){b=rx(Ey,b,a);a=O(b,0,null);b=O(b,1,null);return new W(null,2,5,X,[Lg.B(U,a),b],null)} var Gy=new q(null,3,[2,"#b",8,"#o",16,"#x"],null); function Hy(a,b,c){c=zy(c);var d=O(c,0,null);c=O(c,1,null);if(Re(d))if(C.B(hy,10))var e=[u.A(d),r(gy)?".":null].join("");else{e=u;var f=e.A;if(r(gy)){var g=z(Gy,hy);g=r(g)?g:["#",u.A(hy),"r"].join("")}else g=null;e=[f.call(e,g),u.A(Iy(hy,d))].join("")}else e=null;a=r(e)?e:a.A?a.A(d):a.call(null,d);d=a.length;e=d+Qo.A(b);e=e>=jl.A(b)?e:e+(pf(jl.A(b)-e-1,Ar.A(b))+1)*Ar.A(b);d=D.B(u,Eg(e-d,Tk.A(b)));r(lq.A(b))?nx.F(N([[u.A(d),u.A(a)].join("")])):nx.F(N([[u.A(a),u.A(d)].join("")]));return c} function Jy(a,b){return xf(I(sx(function(c){return 0c?mf(qx("0")+c):mf(qx("a")+(c-10))},Jy(a,b)))}function Ky(a,b){return xf(I(sx(function(c){return new W(null,2,5,X,[G(xf(yg.B(a,c))),G(zg(a,c))],null)},xf(b))))} function Ly(a,b,c){c=zy(c);var d=O(c,0,null);c=O(c,1,null);if(Re(d)||"number"===typeof d&&!isNaN(d)&&Infinity!==d&&parseFloat(d)!==parseInt(d,10)&&C.B(d,Math.floor(d))){var e=0>d,f=Iy(a,e?-d:d);a=r(Ln.A(b))?function(){var g=V.B(function(l){return D.B(u,l)},Ky(jm.A(b),f)),k=Eg(M(g),ts.A(b));return D.B(u,J(Fg.B(k,g)))}():f;a=e?["-",u.A(a)].join(""):r(lq.A(b))?["+",u.A(a)].join(""):a;a=a.lengtha)var f=be(My,a);else{f=pf(a,10);var g=qf(a,10);f=[u.A(0c){var d=Jy(10,c);c=oe;for(var e=M(d)-1;;)if(ze(d)){nx.F(N([D.B(u,c)]));break}else{var f=I(d);c=C.B(0,f)?c:ne.B(c,be(be(a,e),f-1));--e;d=J(d)}}else Ly(10,new q(null,5,[jl,0,Tk," ",ts,",",jm,3,Ln,!0],null),ty(new W(null,1,5,X,[c],null)));return b}var Wy=new q(null,5,[8,"Backspace",9,"Tab",10,"Newline",13,"Return",32,"Space"],null); function Xy(a,b){a=zy(b);b=O(a,0,null);a=O(a,1,null);var c=qx(b);b=c&127;c&=128;var d=z(Wy,b);0b?["Control-",u.A(mf(b+64))].join(""):C.B(b,127)?"Control-?":mf(b)]));return a} function Yy(a,b){var c=zy(b);b=O(c,0,null);c=O(c,1,null);a=Mo.A(a);if(r(C.B?C.B("o",a):C.call(null,"o",a)))ry(!0,"\\o~3,'0o",N([qx(b)]));else if(r(C.B?C.B("u",a):C.call(null,"u",a)))ry(!0,"\\u~4,'0x",N([qx(b)]));else if(r(C.B?C.B(null,a):C.call(null,null,a)))x(ib,r(C.B?C.B("\b",b):C.call(null,"\b",b))?"\\backspace":r(C.B?C.B(" ",b):C.call(null," ",b))?"\\space":r(C.B?C.B("\t",b):C.call(null,"\t",b))?"\\tab":r(C.B?C.B("\n",b):C.call(null,"\n",b))?"\\newline":r(C.B?C.B("\f",b):C.call(null,"\f",b))? "\\formfeed":r(C.B?C.B("\r",b):C.call(null,"\r",b))?"\\return":r(C.B?C.B('"',b):C.call(null,'"',b))?'\\"':r(C.B?C.B("\\",b):C.call(null,"\\",b))?"\\\\":["\\",u.A(b)].join(""));else throw Error(["No matching clause: ",u.A(a)].join(""));return c}function Zy(a,b){b=zy(b);a=O(b,0,null);b=O(b,1,null);nx.F(N([a]));return b}function $y(a){a=I(a);return C.B(Hr,a)||C.B(Ap,a)} function az(a,b,c){return le(rx(function(d,e){if($y(e))return new W(null,2,5,X,[null,e],null);e=Fy(eq.A(d),e);var f=O(e,0,null);e=O(e,1,null);var g=tx(f);f=O(g,0,null);g=O(g,1,null);f=Q.C(f,bm,c);return new W(null,2,5,X,[null,D.B(eo.A(d),new W(null,3,5,X,[f,e,g],null))],null)},b,a))} function bz(a){a=u.A(a).toLowerCase();var b=a.indexOf("e"),c=a.indexOf(".");a=0>b?0>c?new W(null,2,5,X,[a,u.A(a.length-1)],null):new W(null,2,5,X,[[a.substring(0,c),a.substring(c+1)].join(""),u.A(c-1)],null):0>c?new W(null,2,5,X,[a.substring(0,b),a.substring(b+1)],null):new W(null,2,5,X,[[a.substring(0,1),a.substring(2,b)].join(""),a.substring(b+1)],null);b=O(a,0,null);a=O(a,1,null);a:if(c=M(b),0c){b="";break a}if(C.B(be(b,c),"0"))--c;else{b=b.substring(0, c+1);break a}}a:{c=b;var d=M(c);if(0d?2:d:0;r(c)?c=b+c+1:0<=b?(c=b+1,--d,c=c>d?c:d):c=d+b;var f=C.B(c,0)?new W(null,4,5,X,[["0",u.A(a)].join(""),b+1,1,e+1],null):new W(null,4,5,X,[a,b,c,e],null);c=O(f,0,null);e=O(f,1,null);d=O(f,2,null);f=O(f,3,null);if(r(d)){if(0>d)return new W(null,3,5,X,["0",0,!1],null);if(f>d){b=be(c,d);a=c.substring(0,d);if(qx(b)>=qx("5")){a:for(b=M(a)-1,c=b|0;;){if(0>c){c=D.C(u,"1",Eg(b+1,"0"));break a}if(C.B("9",a.charAt(c)))--c;else{c=D.U(u,a.substring(0, c),mf(qx(a.charAt(c))+1),Eg(b-c,"0"));break a}}a=M(c)>a.length;b=X;a&&(d=c,c=M(c)-1,c=d.substring(0,c));return new W(null,3,5,b,[c,e,a],null)}return new W(null,3,5,X,[a,e,!1],null)}}}return new W(null,3,5,X,[a,b,!1],null)} function dz(a,b,c){var d=0>b?new W(null,2,5,X,[[u.A(D.B(u,Eg(-b-1,"0"))),u.A(a)].join(""),-1],null):new W(null,2,5,X,[a,b],null);a=O(d,0,null);var e=O(d,1,null);d=M(a);c=r(c)?e+c+1:e+1;c=db?b=[".",u.A(c)].join(""):(b+=1,b=[c.substring(0,b),".",c.substring(b)].join(""));return b}function ez(a,b){return 0>b?[".",u.A(a)].join(""):[a.substring(0,b),".",a.substring(b)].join("")} function fz(a,b){var c=Lr.A(a),d=es.A(a);b=zy(b);var e=O(b,0,null);b=O(b,1,null);var f=0>e?new W(null,2,5,X,["-",-e],null):new W(null,2,5,X,["+",e],null),g=O(f,0,null);f=O(f,1,null);f=bz(f);var k=O(f,0,null),l=O(f,1,null)+Yr.A(a);f=function(){var v=lq.A(a);return r(v)?v:0>e}();var m=zb(d)&&M(k)-1<=l,p=cz(k,l,d,r(c)?c-(r(f)?1:0):null);k=O(p,0,null);l=O(p,1,null);p=O(p,2,null);k=dz(k,r(p)?l+1:l,d);d=r(r(c)?r(d)?1<=d&&C.B(k.charAt(0),"0")&&C.B(k.charAt(1),".")&&k.length>c-(r(f)?1:0):d:c)?k.substring(1): k;l=C.B(I(d),".");if(r(c)){k=d.length;k=r(f)?k+1:k;l=l&&!(k>=c);m=m&&!(k>=c);var t=l||m?k+1:k;r(function(){var v=t>c;return v?ls.A(a):v}())?nx.F(N([D.B(u,Eg(c,ls.A(a)))])):nx.F(N([[u.A(D.B(u,Eg(c-t,Tk.A(a)))),u.A(r(f)?g:null),l?"0":null,d,m?"0":null].join("")]))}else nx.F(N([[u.A(r(f)?g:null),l?"0":null,d,m?"0":null].join("")]));return b} function gz(a,b){b=zy(b);var c=O(b,0,null);b=O(b,1,null);var d=bz(0>c?-c:c);O(d,0,null);for(O(d,1,null);;){var e=O(d,0,null),f=O(d,1,null),g=Lr.A(a),k=es.A(a),l=cs.A(a),m=Yr.A(a),p=function(){var H=sk.A(a);return r(H)?H:"E"}();d=function(){var H=lq.A(a);return r(H)?H:0>c}();var t=0>=m,v=f-(m-1),A=u.A(Math.abs(v));p=[u.A(p),0>v?"-":"+",u.A(r(l)?D.B(u,Eg(l-A.length,"0")):null),A].join("");var F=p.length;v=M(e);e=[u.A(D.B(u,Eg(-m,"0"))),u.A(e),u.A(r(k)?D.B(u,Eg(k-(v-1)-(0>m?-m:0),"0")):null)].join(""); v=r(g)?g-F:null;e=cz(e,0,C.B(m,0)?k-1:0m?k-1:null,r(v)?v-(r(d)?1:0):null);v=O(e,0,null);O(e,1,null);A=O(e,2,null);e=ez(v,m);k=C.B(m,M(v))&&null==k;if(zb(A)){if(r(g)){f=e.length+F;f=r(d)?f+1:f;var K=(t=t&&!C.B(f,g))?f+1:f;f=k&&Kg;H||(H=l,H=r(H)?F-2>l:H);return r(H)?ls.A(a):H}())?nx.F(N([D.B(u,Eg(g,ls.A(a)))])):nx.F(N([[u.A(D.B(u,Eg(g-K-(f?1:0),Tk.A(a)))),r(d)?0>c?"-":"+":null,t?"0":null,e,f?"0":null,p].join("")]))}else nx.F(N([[r(d)?0>c?"-":"+":null,t?"0":null,e,k?"0": null,p].join("")]));break}else d=new W(null,2,5,X,[v,f+1],null)}return b}function hz(a,b,c){var d=zy(b),e=O(d,0,null);O(d,1,null);d=bz(0>e?-e:e);var f=O(d,0,null);d=O(d,1,null);var g=Lr.A(a),k=es.A(a),l=cs.A(a);d=C.B(e,0)?0:d+1;e=r(l)?l+2:4;g=r(g)?g-e:null;r(k)?f=k:(f=M(f),k=7>d?d:7,f=f>k?f:k);d=f-d;return 0<=d&&d<=f?(a=fz(new q(null,6,[Lr,g,es,d,Yr,0,ls,ls.A(a),Tk,Tk.A(a),lq,lq.A(a)],null),b,c),nx.F(N([D.B(u,Eg(e," "))])),a):gz(a,b,c)} function iz(a,b){b=zy(b);var c=O(b,0,null);b=O(b,1,null);var d=bz(Math.abs(c)),e=O(d,0,null),f=O(d,1,null),g=es.A(a),k=Or.A(a);d=Lr.A(a);var l=function(){var p=lq.A(a);return r(p)?p:0>c}(),m=cz(e,f,g,null);e=O(m,0,null);f=O(m,1,null);m=O(m,2,null);g=dz(e,r(m)?f+1:f,g);k=[u.A(D.B(u,Eg(k-g.indexOf("."),"0"))),g].join("");g=k.length+(r(l)?1:0);nx.F(N([[r(function(){var p=Ln.A(a);return r(p)?l:p}())?0>c?"-":"+":null,u.A(D.B(u,Eg(d-g,Tk.A(a)))),r(function(){var p=zb(Ln.A(a));return p?l:p}())?0>c?"-":"+": null,k].join("")]));return b}function jz(a,b){var c=rn.A(a);c=r(c)?new W(null,2,5,X,[c,b],null):zy(b);b=O(c,0,null);c=O(c,1,null);var d=dt.A(a);b=0>b||b>=M(d)?I(nr.A(a)):be(d,b);return r(b)?az(b,c,bm.A(a)):c}function kz(a,b){var c=zy(b);b=O(c,0,null);c=O(c,1,null);var d=dt.A(a);b=r(b)?le(d):I(d);return r(b)?az(b,c,bm.A(a)):c}function lz(a,b){var c=zy(b),d=O(c,0,null);c=O(c,1,null);var e=dt.A(a);e=r(d)?I(e):null;return r(d)?r(e)?az(e,b,bm.A(a)):b:c} function mz(a,b){var c=wo.A(a),d=I(dt.A(a));d=ze(d)?Ay(b):new W(null,2,5,X,[d,b],null);b=O(d,0,null);d=O(d,1,null);d=zy(d);var e=O(d,0,null);d=O(d,1,null);var f=0;e=ty(e);for(var g=-1;;){if(zb(c)&&C.B(Lt.A(e),g)&&1=c:c))return d;g=az(b,e,bm.A(a));if(C.B(Hr,I(g)))return d;f+=1;var k=Lt.A(e);e=g;g=k}} function nz(a,b){var c=wo.A(a),d=I(dt.A(a));d=ze(d)?Ay(b):new W(null,2,5,X,[d,b],null);b=O(d,0,null);d=O(d,1,null);d=zy(d);var e=O(d,0,null);d=O(d,1,null);for(var f=0;;){var g=ze(e)&&(zb(Ln.A(Kn.A(a)))||0=c:c))return d;g=az(b,ty(I(e)),ty(J(e)));if(C.B(Ap,I(g)))return d;f+=1;e=J(e)}} function oz(a,b){var c=wo.A(a),d=I(dt.A(a)),e=ze(d)?Ay(b):new W(null,2,5,X,[d,b],null);b=O(e,0,null);d=0;e=O(e,1,null);for(var f=-1;;){if(zb(c)&&C.B(Lt.A(e),f)&&1=c:c))return e;f=az(b,e,bm.A(a));if(C.B(Hr,I(f)))return le(f);d+=1;var g=Lt.A(e);e=f;f=g}} function pz(a,b){var c=wo.A(a),d=I(dt.A(a)),e=ze(d)?Ay(b):new W(null,2,5,X,[d,b],null);b=O(e,0,null);d=0;for(e=O(e,1,null);;){var f=ze(tp.A(e))&&(zb(Ln.A(Kn.A(a)))||0=c:c))return e;f=tp.A(e);f=r(f)?new W(null,2,5,X,[I(f),new yy(or.A(e),J(f),Lt.A(e)+1,null,null,null)],null):new W(null,2,5,X,[null,e],null);e=O(f,0,null);f=O(f,1,null);e=az(b,ty(e),f);if(C.B(Ap,I(e)))return f;e=f;d+=1}} function qz(a,b){if(r(Ln.A(Kn.A(a)))){var c=dt.A(a),d=M(c),e=1P?1:P}();l=ff(kf, V.B(M,m));var t=jl.A(a),v=Qo.A(a),A=Ar.A(a),F=l+p*v;t=F<=t?t:t+A*(1+pf(F-t-1,A));var K=t-l;l=function(){var P=pf(K,p);return v>P?v:P}();A=K-l*p;l=D.B(u,Eg(l,Tk.A(a)));r(r(d)?wx(kt.A(w(w(ib))),Yt)+c+t>k:d)&&nx.F(N([d]));c=A;for(var H=m,T=function(){var P=Ln.A(a);return r(P)?P:C.B(M(H),1)&&zb(lq.A(a))}();;)if(G(H))nx.F(N([[u.A(zb(T)?I(H):null),u.A(r(function(){var P=T;return r(P)?P:(P=J(H))?P:lq.A(a)}())?l:null),u.A(0c?-c:c);if(M(d)<=M(Qy)){var e=V.B(Ry,Ag(1,d));e=Sy(e,1);var f=me(d);d=pf(f,100);f=qf(f,100);var g=0f)var m=be(Ny,f);else{m=pf(f,10);var p=qf(f,10);m=0 c?"minus ":null,ze(e)||ze(d)?ze(e)?d:[e,"th"].join(""):[e,", ",d].join("")].join("")]))}else Ly(10,new q(null,5,[jl,0,Tk," ",ts,",",jm,3,Ln,!0],null),ty(new W(null,1,5,X,[c],null))),e=qf(c,100),c=11e,e=qf(e,10),nx.F(N([1===e&&c?"st":2===e&&c?"nd":3===e&&c?"rd":"th"]))}return b}:function(b,c){c=zy(c);b=O(c,0,null);c=O(c,1,null);if(C.B(0,b))nx.F(N(["zero"]));else{var d=Jy(1E3,0>b?-b:b);M(d)<=M(Qy)?(d=V.B(Ry,d),d=Sy(d,0),nx.F(N([[0>b?"minus ":null,d].join("")]))):Ly(10,new q(null,5,[jl,0,Tk," ", ts,",",jm,3,Ln,!0],null),ty(new W(null,1,5,X,[b],null)))}return c}}],null),new q(null,5,[Bq,"P",eq,U,Rq,new Y(null,new q(null,3,[Ln,null,lq,null,po,null],null),null),Qm,U,jr,function(){return function(a,b){b=r(Ln.A(a))?Cy(b,-1):b;a=r(lq.A(a))?new W(null,2,5,X,["y","ies"],null):new W(null,2,5,X,["","s"],null);var c=zy(b);b=O(c,0,null);c=O(c,1,null);nx.F(N([C.B(b,1)?I(a):le(a)]));return c}}],null),new q(null,5,[Bq,"C",eq,new q(null,1,[Mo,new W(null,2,5,X,[null,String],null)],null),Rq,new Y(null,new q(null, 3,[Ln,null,lq,null,po,null],null),null),Qm,U,jr,function(a){return r(Ln.A(a))?Xy:r(lq.A(a))?Yy:Zy}],null),new q(null,5,[Bq,"F",eq,new q(null,5,[Lr,new W(null,2,5,X,[null,Number],null),es,new W(null,2,5,X,[null,Number],null),Yr,new W(null,2,5,X,[0,Number],null),ls,new W(null,2,5,X,[null,String],null),Tk,new W(null,2,5,X,[" ",String],null)],null),Rq,new Y(null,new q(null,1,[lq,null],null),null),Qm,U,jr,function(){return fz}],null),new q(null,5,[Bq,"E",eq,new q(null,7,[Lr,new W(null,2,5,X,[null,Number], null),es,new W(null,2,5,X,[null,Number],null),cs,new W(null,2,5,X,[null,Number],null),Yr,new W(null,2,5,X,[1,Number],null),ls,new W(null,2,5,X,[null,String],null),Tk,new W(null,2,5,X,[" ",String],null),sk,new W(null,2,5,X,[null,String],null)],null),Rq,new Y(null,new q(null,1,[lq,null],null),null),Qm,U,jr,function(){return gz}],null),new q(null,5,[Bq,"G",eq,new q(null,7,[Lr,new W(null,2,5,X,[null,Number],null),es,new W(null,2,5,X,[null,Number],null),cs,new W(null,2,5,X,[null,Number],null),Yr,new W(null, 2,5,X,[1,Number],null),ls,new W(null,2,5,X,[null,String],null),Tk,new W(null,2,5,X,[" ",String],null),sk,new W(null,2,5,X,[null,String],null)],null),Rq,new Y(null,new q(null,1,[lq,null],null),null),Qm,U,jr,function(){return hz}],null),new q(null,5,[Bq,"$",eq,new q(null,4,[es,new W(null,2,5,X,[2,Number],null),Or,new W(null,2,5,X,[1,Number],null),Lr,new W(null,2,5,X,[0,Number],null),Tk,new W(null,2,5,X,[" ",String],null)],null),Rq,new Y(null,new q(null,3,[Ln,null,lq,null,po,null],null),null),Qm,U,jr, function(){return iz}],null),new q(null,5,[Bq,"%",eq,new q(null,1,[nk,new W(null,2,5,X,[1,Number],null)],null),Rq,Di,Qm,U,jr,function(){return function(a,b){a=nk.A(a);for(var c=0;;)if(cM(eq.A(a))&&xy(ry(null,'Too many parameters for directive "~C": ~D~:* ~[were~;was~:;were~] specified but only ~D~:* ~[are~;is~:;are~] allowed',N([Bq.A(a),M(b),M(eq.A(a))])),le(I(b)));Qi(V.C(function(e,f){var g=I(e);return null==g||Ye(Gz,g)||C.B(le(le(f)),Fb(g))?null:xy(["Parameter ",Kf(I(f)),' has bad type in directive "',u.A(Bq.A(a)),'": ',u.A(Fb(g))].join(""),le(e))},b,eq.A(a)));return zi.F(N([Lg.B(U,xf(function(){return function g(f){return new Lf(null,function(){for(;;){var k= G(f);if(k){if(He(k)){var l=bd(k),m=M(l),p=Pf(m);a:for(var t=0;;)if(te?new W(null,2,5,X,[Oz(d,c),new W(null,2,5,X,["",c+d.length],null)],null):0===e?Nz(d.substring(1),c+1):new W(null,2,5,X,[Oz(d.substring(0,e),c),new W(null,2,5,X,[d.substring(e),e+c],null)],null)},new W(null,2,5,X,[a,0],null))))}finally{wy=b}} var uy=function uy(a){for(;;){if(ze(a))return!1;var c=Ns.A(Rq.A(Qr.A(I(a))));r(c)||(c=mg(uy,I(dt.A(eq.A(I(a))))),c=r(c)?c:mg(uy,I(nr.A(eq.A(I(a))))));if(r(c))return!0;a=J(a)}};function vy(a,b){rx(function(c,d){if($y(d))return new W(null,2,5,X,[null,d],null);d=Fy(eq.A(c),d);var e=O(d,0,null);d=O(d,1,null);var f=tx(e);e=O(f,0,null);f=O(f,1,null);e=Q.C(e,bm,d);return new W(null,2,5,X,[null,D.B(eo.A(c),new W(null,3,5,X,[e,d,f],null))],null)},b,a);return null} var Tz=function(a){var b=tg(U);return function(){function c(e){var f=null;if(0xl.A(a)&&Ye(Fi(c),d)}function rC(a,b){var c=Q.C,d=z(a,b);return c.call(Q,a,b,(r(d)?d:0)+1)}function sC(a,b,c){if(r(a)){var d=cC(a);if(r(d))return jC(d,b);if(Qe(a))return r(null)?a.A?a.A(b):a.call(null,b):r(a.A?a.A(b):a.call(null,b))?b:Ro;throw Error([gj.F(N([c]))," is not a fn, expected predicate fn"].join(""));}return b}function nC(a,b){a=hC.A(a);return!iC(RB(a,b))} function tC(a){return a instanceof B?lB(N([a])):C.B(cl,I(a))?uC(1,Ed(a)):C.B(Cs,I(a))?vC(Ed(a)):null}function uC(a,b){return bB(N([jB.F(N([dB(N([a,M(b)])),pB(N([V.B(tC,b)]))])),function(c){var d=O(c,0,null);c=O(c,1,null);return D.B(jB,yg.B(d,c))}]))}function vC(a){return D.B(jB,V.B(tC,a))} function wC(a,b,c,d,e,f,g,k,l,m,p,t,v,A,F,K,H,T,P){this.Ed=a;this.ve=b;this.zf=c;this.Be=d;this.ye=e;this.ha=f;this.Yf=g;this.Fd=k;this.ce=l;this.we=m;this.Ae=p;this.Wf=t;this.req=v;this.id=A;this.ze=F;this.xe=K;this.rf=H;this.Zf=T;this.Hf=P;this.J=393216;this.T=0}h=wC.prototype;h.ga=function(a,b){return new wC(this.Ed,this.ve,this.zf,this.Be,this.ye,this.ha,this.Yf,this.Fd,this.ce,this.we,this.Ae,this.Wf,this.req,this.id,this.ze,this.xe,this.rf,this.Zf,b)};h.fa=function(){return this.Hf};h.zb=function(){return this}; h.Ab=function(){return this};h.ic=n;h.Wb=function(a,b){if(r(this.Fd.A?this.Fd.A(b):this.Fd.call(null,b))){a=w(UB);var c=G(b),d=I(c);J(c);O(d,0,null);O(d,1,null);for(d=c=b;;){b=c;var e=G(d);c=I(e);var f=J(e);e=c;c=O(e,0,null);e=O(e,1,null);if(r(d))if(d=this.Ed.A?this.Ed.A(c):this.Ed.call(null,c),d=z(a,d),r(d)){d=jC(d,e);if(iC(d))return Ro;b=d===e?b:Q.C(b,c,d);d=f;c=b}else d=f,c=b;else return b}}else return Ro}; h.Xb=function(a,b,c,d){var e=this;if(r(e.ha))return e.ha.I?e.ha.I():e.ha.call(null);var f=rC(d,e.id),g=V.C(function(l,m){return new W(null,2,5,X,[l,mC(m,b,ne.B(c,l),f,l)],null)},e.ze,e.Ae),k=Ig(wb,V.C(function(l,m){return qC(f,e.id,c,l)?null:new W(null,2,5,X,[l,KA(new mj(function(){return mC(m,b,ne.B(c,l),f,l)}))],null)},e.we,e.xe));return lg(hf,Vf.B(V.B(le,g),V.B(le,k)))?bB(N([jB.F(N([vC(e.req),uC(0,e.ve),vC(e.Be),uC(0,e.ye)])),function(l){var m=O(l,0,null),p=O(l,1,null),t=O(l,2,null);l=O(l,3,null); var v=Kg(Vf.B(m,p)),A=V.B(pg.B(Jf,Kf),Kg(Vf.B(t,l)));return D.B(MA,D.B(Vf,Hg(function(F){F=I(F);var K=Fi(Vf.B(v,A));return K.A?K.A(F):K.call(null,F)},Lg.B(g,k))))}])):null};h.Yb=function(a,b){a=Q.C(this.ce,ln,b);return xC.A?xC.A(a):xC.call(null,a)}; function xC(a){var b=cg(a),c=z(b,io),d=z(b,Ql),e=z(b,Hq),f=z(b,ln),g=z(b,cp),k=z(b,kr),l=z(b,Jn),m=z(b,uk),p=z(b,hm),t=z(b,Ur),v=z(b,ms),A=z(b,Sn),F=Hi(Vf.B(t,l),Vf.B(m,v)),K=Qj();return new wC(function(H){var T=F.A?F.A(H):F.call(null,H);return r(T)?T:H},c,b,d,e,f,g,k,b,l,m,a,p,K,t,v,F,A,U)}function yC(a,b,c,d,e,f){this.form=a;this.$b=b;this.ha=c;this.Vd=d;this.Ee=e;this.If=f;this.J=393216;this.T=0}h=yC.prototype;h.ga=function(a,b){return new yC(this.form,this.$b,this.ha,this.Vd,this.Ee,b)}; h.fa=function(){return this.If};h.zb=function(){return this};h.Ab=function(){return this};h.ic=n;h.Wb=function(a,b){a=this.$b.A?this.$b.A(b):this.$b.call(null,b);return r(this.Vd)?a:r(a)?b:Ro};h.Xb=function(){if(r(this.ha))var a=this.ha.I?this.ha.I():this.ha.call(null);else a=this.$b,a=Be(a)?$A(N([a])):z(w(QB),a);return a};h.Yb=function(a,b){return zC(this.form,this.$b,b,this.Vd,this.Ee)};function gC(a,b){return zC(a,b,null,null,null)} function zC(a,b,c,d,e){return r(XB(b))?r(c)?lC(b,c):b:r(YB(b))?bC(b,c):Cf(b)?(a=cC(b),r(c)?lC(a,c):a):new yC(a,b,c,d,e,U)}function AC(a,b,c,d,e,f){this.forms=a;this.Ma=b;this.ha=c;this.Tb=d;this.M=e;this.Jf=f;this.J=393216;this.T=0}h=AC.prototype;h.ga=function(a,b){return new AC(this.forms,this.Ma,this.ha,this.Tb,this.M,b)};h.fa=function(){return this.Jf};h.zb=function(){return this};h.Ab=function(){return this};h.ic=n; h.Wb=function(a,b){a=w(this.Tb);if(Ge(b)&&C.B(M(b),this.M))for(var c=b,d=0;;){if(C.B(d,this.M))return c;var e=b.A?b.A(d):b.call(null,d),f=RB(a.A?a.A(d):a.call(null,d),e);if(iC(f))return Ro;c=f===e?c:Q.C(c,d,f);d+=1}else return Ro};h.Xb=function(a,b,c,d){if(r(this.ha))return this.ha.I?this.ha.I():this.ha.call(null);a=V.U(function(e,f,g){return mC(f,b,ne.B(c,e),d,g)},Oi(0,M(this.Ma)),this.Ma,this.forms);return lg(hf,a)?D.B(jB,a):null};h.Yb=function(a,b){return BC(this.forms,this.Ma,b)}; function CC(a,b){return BC(a,b,null)}function BC(a,b,c){var d=new mj(function(){return Lg.B(oe,V.C(hC,b,a))}),e=M(b);return new AC(a,b,c,d,e,U)}function DC(a,b){return new eh(a,b)}function EC(a,b,c,d,e,f,g,k,l){this.keys=a;this.forms=b;this.Ma=c;this.ha=d;this.id=e;this.vf=f;this.Tb=g;this.cc=k;this.Kf=l;this.J=393216;this.T=0}h=EC.prototype;h.ga=function(a,b){return new EC(this.keys,this.forms,this.Ma,this.ha,this.id,this.vf,this.Tb,this.cc,b)};h.fa=function(){return this.Kf};h.zb=function(){return this}; h.Ab=function(){return this};h.ic=n;h.Wb=function(a,b){return this.cc.A?this.cc.A(b):this.cc.call(null,b)};h.Xb=function(a,b,c,d){var e=this;if(r(e.ha))return e.ha.I?e.ha.I():e.ha.call(null);a=Ig(wb,V.U(function(f,g,k){var l=rC(d,e.id);return qC(l,e.id,c,f)?null:KA(new mj(function(){return mC(g,b,ne.B(c,f),l,k)}))},e.keys,e.Ma,e.forms));return ze(a)?null:fB(N([a]))};h.Yb=function(a,b){return FC.U?FC.U(this.keys,this.forms,this.Ma,b):FC.call(null,this.keys,this.forms,this.Ma,b)}; function FC(a,b,c,d){var e=Qj(),f=Hi(a,c),g=new mj(function(){return Lg.B(oe,V.C(hC,c,b))}),k=function(){switch(M(c)){case 2:return function(l){var m=w(g),p=RB(m.A?m.A(0):m.call(null,0),l);return iC(p)?(l=RB(m.A?m.A(1):m.call(null,1),l),iC(l)?Ro:DC(a.A?a.A(1):a.call(null,1),l)):DC(a.A?a.A(0):a.call(null,0),p)};case 3:return function(l){var m=w(g),p=RB(m.A?m.A(0):m.call(null,0),l);return iC(p)?(p=RB(m.A?m.A(1):m.call(null,1),l),iC(p)?(l=RB(m.A?m.A(2):m.call(null,2),l),iC(l)?Ro:DC(a.A?a.A(2):a.call(null, 2),l)):DC(a.A?a.A(1):a.call(null,1),p)):DC(a.A?a.A(0):a.call(null,0),p)};default:return function(l){for(var m=w(g),p=0;;)if(pe?1:e,d=0;;){if(d>=M(b))return b;if(nC(a, be(b,d)))d+=e;else return Ro}else for(d=0,e=G(b),c=G(e),I(c),J(c);;){g=G(e);c=I(g);f=J(g);g=c;k=e;if(null==k||C.B(d,101))return b;if(nC(a,g))e=f,d+=1;else return Ro}}; h.Xb=function(a,b,c,d){var e=this;if(r(e.ha))return e.ha.I?e.ha.I():e.ha.call(null);var f=mC(e.$b,b,c,d,e.form);return bB(N([r(e.Yd)?lB(N([e.Yd])):r(e.kind)?YA(N([function(g){return ze(g)?g:qe(g)},mC(e.kind,b,c,d,e.form)])):lB(N([oe])),function(g){return YA(N([function(k){return Ge(g)?k:Lg.B(g,k)},r(e.te)?r(e.count)?WA(N([f,new q(null,2,[ir,e.count,vr,100],null)])):WA(N([f,new q(null,3,[Bn,function(){var k=e.Sc;return r(k)?k:0}(),xo,function(){var k=e.Gd;if(r(k))return k;k=e.Cd;var l=e.Sc;l=2*(r(l)? l:0);return k>l?k:l}(),vr,100],null)])):r(e.count)?UA(N([f,e.count])):r(function(){var k=e.Sc;return r(k)?k:e.Gd}())?UA(N([f,function(){var k=e.Sc;return r(k)?k:0}(),function(){var k=e.Gd;if(r(k))return k;k=e.Cd;var l=e.Sc;l=2*(r(l)?l:0);return k>l?k:l}()])):UA(N([f,0,e.Cd]))]))}]))};h.Yb=function(a,b){return NC(this.form,this.$b,this.opts,b)}; function NC(a,b,c,d){function e(pa,Ea,Gb,Kb){return ne.B(pa,Kb)}var f=cg(c),g=z(f,xq),k=z(f,Km),l=zd(f,tq,20),m=z(f,xn),p=z(f,il),t=z(f,Wq),v=z(f,Zm),A=z(f,nl),F=z(f,nk),K=z(f,Ts),H=z(f,Rp),T=z(f,Xt),P=z(f,Js),ha=r(P)?qe(P):z(LC,k),da=new mj(function(){return hC.A(b)});return new MC(a,g,function(pa){return nC(w(da),pa)},f,d,l,b,m,p,k,e,function(pa){return Ge(pa)&&(zb(P)||Ge(P))?new W(null,3,5,X,[hf,function(Ea,Gb,Kb,jb){return Kb===jb?Ea:Q.C(Ea,Gb,jb)},hf],null):r(function(){var Ea=Ee(pa);return Ea? (Ea=r(H)?zb(P):H,r(Ea)?Ea:Ee(P)):Ea}())?new W(null,3,5,X,[r(p)?qe:hf,function(Ea,Gb,Kb,jb){return Kb===jb&&zb(p)?Ea:Q.C(Ea,be(r(p)?jb:Kb,0),be(jb,1))},hf],null):vf(P)||Ne(P)||zb(P)&&(vf(pa)||Ne(pa))?new W(null,3,5,X,[qe,e,xf],null):new W(null,3,5,X,[function(Ea){return qe(r(P)?P:Ea)},e,hf],null)},t,v,da,function(){return r(A)?A:function(pa){return pa}}(),ha,F,K,f,H,T,c,P,U)}function OC(a){return new q(null,2,[Ls,Yn,gm,a],null)}function PC(a){a=cg(a);a=z(a,Ls);return C.B(Yn,a)} var QC=function QC(a){var c=cg(a),d=z(c,Eq);a=G(d);var e=I(a);a=J(a);var f=z(c,ar),g=G(f),k=I(g);g=J(g);var l=z(c,Ws),m=G(l);I(m);m=J(m);var p=z(c,gm);c=z(c,No);return lg(hf,d)?PC(e)?(d=gm.A(e),d=ne.B(p,r(f)?se([k,d]):d),a?(a=new q(null,4,[Eq,a,ar,g,Ws,m,gm,d],null),QC.A?QC.A(a):QC.call(null,a)):OC(d)):new q(null,6,[Ls,gn,Eq,d,gm,p,ar,f,Ws,l,No,c],null):null};function RC(a,b,c){return QC(new q(null,4,[ar,a,Eq,b,Ws,c,gm,U],null))} function SC(a,b,c,d,e){return r(a)?(d=new q(null,5,[Ls,Ks,Uq,b,Fo,d,Ws,e,lr,Qj()],null),PC(a)?Q.F(d,Tq,b,N([gm,ne.B(c,gm.A(a))])):Q.F(d,Tq,a,N([gm,c]))):null}function TC(a,b){return SC(b,b,oe,!1,a)} function UC(a,b,c,d){return r(r(b)?b:c)?(a=Hg(function(e){e=I(e);return d.A?d.A(e):d.call(null,e)},V.U(ph,a,function(){var e=G(b);return e?e:Dg(null)}(),function(){var e=G(c);return e?e:Dg(null)}())),new W(null,3,5,X,[G(V.B(I,a)),r(b)?G(V.B(le,a)):null,r(c)?G(V.B(function(e){return be(e,2)},a)):null],null)):new W(null,3,5,X,[G(Hg(d,a)),b,c],null)} function VC(a,b,c){var d=UC(a,b,c,hf);b=O(d,0,null);c=G(b);a=I(c);c=J(c);var e=O(d,1,null),f=O(e,0,null);d=O(d,2,null);return r(b)?(b=new q(null,4,[Ls,hr,Eq,b,ar,e,Ws,d],null),null==c?r(f)?PC(a)?OC(DC(f,gm.A(a))):b:a:b):null}function WC(a,b){return r(r(a)?b:a)?VC(N([a,b]),null,null):r(a)?a:b}function XC(a,b){return Q.C(VC(new W(null,2,5,X,[a,OC(up)],null),null,new W(null,2,5,X,[b,up],null)),nt,b)} var YC=function YC(a){a=WB(a);var c=cg(a),d=z(c,Ls),e=z(c,Eq);a=z(c,Tq);var f=z(c,Uq);c=z(c,Ws);if(C.B(Yn,d))return!0;if(C.B(null,d))return null;if(C.B(br,d))return d=YC.A?YC.A(a):YC.call(null,a),r(d)?(a=GC(ZC(a),e,J(c)),!iC(a)):d;if(C.B(Ks,d))return(e=a===f)?e:YC.A?YC.A(a):YC.call(null,a);if(C.B(gn,d))return lg(YC,e);if(C.B(hr,d))return mg(YC,e);throw Error(["No matching clause: ",u.A(d)].join(""));},ZC=function ZC(a){a=WB(a);var c=cg(a);a=z(c,Eq);var d=G(a),e=I(d);J(d);var f=z(c,ar),g=O(f,0,null), k=z(c,Ls);d=z(c,Tq);var l=z(c,gm);c=z(c,Ws);if(C.B(Yn,k))return l;if(C.B(null,k))return null;if(C.B(br,k))return e=ZC.A?ZC.A(d):ZC.call(null,d),(f=C.B(e,up))?d=f:(d=Ls.A(WB(d)),f=new Y(null,new q(null,2,[Ks,null,gn,null],null),null),d=f.A?f.A(d):f.call(null,d),d=r(d)?ze(e):d,d=r(d)?d:null),r(d)?up:GC(e,a,c);if(C.B(Ks,k))return $C(d,l,g);if(C.B(gn,k))return $C(e,l,g);if(C.B(hr,k))return c=UC(a,f,c,YC),a=O(c,0,null),a=O(a,0,null),c=O(c,1,null),c=O(c,0,null),a=null==a?up:ZC.A?ZC.A(a):ZC.call(null,a), r(c)?DC(c,a):a;throw Error(["No matching clause: ",u.A(k)].join(""));};function $C(a,b,c){a=WB(a);var d=cg(a),e=z(d,Ls);z(d,Eq);a=z(d,Fo);if(C.B(null,e))return b;if(C.B(hr,e)||C.B(Yn,e)||C.B(br,e))return a=ZC(d),C.B(a,up)?b:ne.B(b,r(c)?se([c,a]):a);if(C.B(Ks,e)||C.B(gn,e))return d=ZC(d),ze(d)||(c=r(c)?se([c,d]):d,a=r(a)?Lg:ne,b=a.B?a.B(b,c):a.call(null,b,c)),b;throw Error(["No matching clause: ",u.A(e)].join(""));} var aD=function aD(a,b){a=WB(a);var d=cg(a),e=z(d,Ws),f=z(d,Uq);a=z(d,Eq);var g=G(a),k=I(g),l=J(g),m=z(d,gm);g=z(d,Ls);var p=z(d,Fo),t=z(d,ar),v=G(t),A=I(v),F=J(v);v=z(d,Ek);var K=z(d,Tq);if(r(d)){if(C.B(Yn,g))return null;if(C.B(null,g))return a=sC(d,b,d),iC(a)?null:OC(a);if(C.B(br,g))return d=aD.B?aD.B(K,b):aD.call(null,K,b),r(d)?C.B(Yn,Ls.A(d))?(a=GC(ZC(d),a,J(e)),iC(a)?null:OC(a)):new q(null,5,[Ls,br,Tq,d,Ek,v,Eq,a,Ws,e],null):null;if(C.B(gn,g))return WC(QC(new q(null,4,[Eq,he(aD.B?aD.B(k,b):aD.call(null, k,b),l),ar,t,Ws,e,gm,m],null)),r(YC(k))?function(){var H=QC(new q(null,4,[Eq,l,ar,F,Ws,J(e),gm,$C(k,m,A)],null));return aD.B?aD.B(H,b):aD.call(null,H,b)}():null);if(C.B(hr,g))return VC(V.B(function(H){return aD.B?aD.B(H,b):aD.call(null,H,b)},a),t,e);if(C.B(Ks,g))return WC(SC(aD.B?aD.B(K,b):aD.call(null,K,b),f,m,p,e),r(YC(K))?function(){var H=SC(f,f,$C(K,m,null),p,e);return aD.B?aD.B(H,b):aD.call(null,H,b)}():null);throw Error(["No matching clause: ",u.A(g)].join(""));}return null}; function bD(a){a=WB(a);var b=cg(a);z(b,Eq);a=z(b,Ws);var c=z(b,No),d=z(b,Ls),e=z(b,Fo),f=z(b,ar),g=z(b,nt),k=z(b,Ek);z(b,Tq);if(r(b)){if(C.B(Yn,d))return null;if(C.B(null,d))return b;if(C.B(br,d))return he(Zr,he(k,a));if(C.B(gn,d))return r(c)?a=new pe(null,js,new pe(null,c,null,1,null),2,null):(b=G(f),a=he(Jq,Gg(ph,N([b?b:Dg(hs),a])))),a;if(C.B(hr,d))return r(g)?new pe(null,Vr,new pe(null,g,null,1,null),2,null):he(Pn,Gg(ph,N([f,a])));if(C.B(Ks,d))return new pe(null,r(e)?js:is,new pe(null,a,null,1, null),2,null);throw Error(["No matching clause: ",u.A(d)].join(""));}return null} var cD=function cD(a,b,c,d,e){function g(P,ha,da){return V.U(function(pa,Ea,Gb){if(r(r(T)?r(H)?r(Ea)?qC(T,H,c,Ea):Ea:H:T))return null;if(r(H))return KA(new mj(function(){var Pa=r(Ea)?ne.B(c,Ea):c,Ta=r(Gb)?Gb:pa;return cD.ia?cD.ia(pa,b,Pa,T,Ta):cD.call(null,pa,b,Pa,T,Ta)}));var Kb=r(Ea)?ne.B(c,Ea):c,jb=r(Gb)?Gb:pa;return cD.ia?cD.ia(pa,b,Kb,T,jb):cD.call(null,pa,b,Kb,T,jb)},P,function(){var pa=G(ha);return pa?pa:Dg(null)}(),function(){var pa=G(da);return pa?pa:Dg(null)}())}var k=WB(a),l=cg(k),m=z(l, Eq),p=z(l,Ws),t=z(l,Uq),v=z(l,gm),A=z(l,Ut),F=z(l,Ls);z(l,Fo);var K=z(l,ar);k=z(l,Tq);var H=z(l,lr),T=r(H)?rC(d,H):d;d=function(){var P=z(b,$B(a));r(P)||(P=z(b,$B(l)),P=r(P)?P:z(b,c));return r(P)?C.B(el,F)?YA(N([ph,P.I?P.I():P.call(null)])):C.B(null,F)?YA(N([ph,P.I?P.I():P.call(null)])):P.I?P.I():P.call(null):null}();if(r(d))return d;d=r(A)?A.I?A.I():A.call(null):null;if(r(d))return d;if(r(l)){if(C.B(Yn,F))return C.B(v,up)?lB(N([oe])):lB(N([new W(null,1,5,X,[v],null)]));if(C.B(null,F))return e=mC(l, b,c,T,e),r(e)?YA(N([ph,e])):null;if(C.B(br,F))return e=bD(k),cD.ia?cD.ia(k,b,c,T,e):cD.call(null,k,b,c,T,e);if(C.B(gn,F))return e=g(m,K,p),lg(hf,e)?D.B(OB,e):null;if(C.B(hr,F))return e=Ig(wb,g(m,K,p)),ze(e)?null:fB(N([e]));if(C.B(Ks,F)){if(qC(T,H,new W(null,1,5,X,[H],null),H))return lB(N([oe]));e=cD.ia?cD.ia(t,b,c,T,p):cD.call(null,t,b,c,T,p);return r(e)?YA(N([function(P){return D.B(Vf,P)},UA(N([e]))])):null}throw Error(["No matching clause: ",u.A(F)].join(""));}return null}; function dD(a,b){for(;;){var c=G(b),d=I(c);c=J(c);if(ze(b))return r(YC(a))?(a=ZC(a),C.B(a,up)?null:a):Ro;a=aD(a,d);if(r(a))b=c;else return Ro}}function eD(a,b,c){this.Vc=a;this.ha=b;this.Of=c;this.J=393216;this.T=0}h=eD.prototype;h.ga=function(a,b){return new eD(this.Vc,this.ha,b)};h.fa=function(){return this.Of};h.zb=function(){return this};h.Ab=function(){return this};h.ic=n;h.Wb=function(a,b){return null==b||De(b)?dD(this.Vc,G(b)):Ro}; h.Xb=function(a,b,c,d){return r(this.ha)?this.ha.I?this.ha.I():this.ha.call(null):cD(this.Vc,b,c,d,bD(this.Vc))};h.Yb=function(a,b){return bC.B?bC.B(this.Vc,b):bC.call(null,this.Vc,b)};function bC(a,b){return new eD(a,b,U)} function fD(a,b){var c=oC(Kl.A(b),null);c=GA(N([new W(null,1,5,X,[c],null),function(d){var e=jC(Kl.A(b),d);if(iC(e))e=null;else{d=D.B(a,d);d=jC(gm.A(b),d);var f=!iC(d);f?r(Op.A(b))?(f=Op.A(b),e=!iC(sC(f,new q(null,2,[Kl,e,gm,d],null),wt))):e=!0:e=f}return e}]));c=EA(N([21,c]));c=mk.A(lk.A(c));return r(c)?O(c,0,null):a}function gD(a,b,c,d,e,f,g,k,l){this.Md=a;this.Ld=b;this.Jd=c;this.ae=d;this.Xd=e;this.Wd=f;this.ha=g;this.Tb=k;this.Pf=l;this.J=393472;this.T=0}h=gD.prototype; h.ga=function(a,b){return new gD(this.Md,this.Ld,this.Jd,this.ae,this.Xd,this.Wd,this.ha,this.Tb,b)};h.fa=function(){return this.Pf};h.Aa=function(a,b){return z(this.Tb,b)};h.ka=function(a,b,c){return zd(this.Tb,b,c)};h.zb=function(){return this};h.Ab=function(){return this};h.ic=n;h.Wb=function(a,b){return Qe(b)?b===fD(b,this.Tb)?b:Ro:Ro}; h.Xb=function(a,b){var c=this;return r(c.ha)?c.ha.I?c.ha.I():c.ha.call(null):lB(N([function(){function d(f){var g=null;if(0a?'..."':'"',d=b.length;return['"',u.A(b.substring(0,ad?"...}":"}")});AD.Fa(null,sr,function(a,b){return zD(a,b,"#{","}")});AD.Fa(null,Tn,function(a,b){return zD(a,b,"[","]")}); AD.Fa(null,Nj,function(a,b){return gj.F(N([Fb(b)]))});new hb;var GD=function(){var a=new W(null,13,5,X,[null,31,28,31,30,31,30,31,31,30,31,30,31],null),b=new W(null,13,5,X,[null,31,29,31,30,31,30,31,31,30,31,30,31],null);return function(c,d){return z(r(d)?b:a,c)}}(),HD=/(\d\d\d\d)(?:-(\d\d)(?:-(\d\d)(?:[T](\d\d)(?::(\d\d)(?::(\d\d)(?:[.](\d+))?)?)?)?)?)?(?:[Z]|([-+])(\d\d):(\d\d))?/;function ID(a){a=parseInt(a,10);return zb(isNaN(a))?a:null} function JD(a,b,c,d){if(!(a<=b&&b<=c))throw Error([u.A(d)," Failed: ",u.A(a),"\x3c\x3d",u.A(b),"\x3c\x3d",u.A(c)].join(""));return b} function KD(a){var b=Ri(HD,a);O(b,0,null);var c=O(b,1,null),d=O(b,2,null),e=O(b,3,null),f=O(b,4,null),g=O(b,5,null),k=O(b,6,null),l=O(b,7,null),m=O(b,8,null),p=O(b,9,null),t=O(b,10,null);if(zb(b))throw Error(["Unrecognized date/time syntax: ",u.A(a)].join(""));a=ID(c);b=function(){var H=ID(d);return r(H)?H:1}();c=function(){var H=ID(e);return r(H)?H:1}();var v=function(){var H=ID(f);return r(H)?H:0}(),A=function(){var H=ID(g);return r(H)?H:0}(),F=function(){var H=ID(k);return r(H)?H:0}(),K=function(){a:if(C.B(3, M(l)))var H=l;else if(3H.getLength())H=H.append("0");else{H=H.toString();break a}H=ID(H);return r(H)?H:0}();m=(C.B(m,"-")?-1:1)*(60*function(){var H=ID(p);return r(H)?H:0}()+function(){var H=ID(t);return r(H)?H:0}());return new W(null,8,5,X,[a,JD(1,b,12,"timestamp month field must be in range 1..12"),JD(1,c,GD(b,0===of(a,4)&&(0!==of(a,100)||0===of(a,400))),"timestamp day field must be in range 1..last day in month"),JD(0,v,23,"timestamp hour field must be in range 0..23"), JD(0,A,59,"timestamp minute field must be in range 0..59"),JD(0,F,C.B(A,59)?60:59,"timestamp second field must be in range 0..60"),JD(0,K,999,"timestamp millisecond field must be in range 0..999"),m],null)} zi.F(N([new q(null,4,[qn,function(a){if("string"===typeof a){var b=KD(a);if(r(b)){a=O(b,0,null);var c=O(b,1,null),d=O(b,2,null),e=O(b,3,null),f=O(b,4,null),g=O(b,5,null),k=O(b,6,null);b=O(b,7,null);b=new Date(Date.UTC(a,c-1,d,e,f,g,k)-6E4*b)}else throw Error(["Unrecognized date/time syntax: ",u.A(a)].join(""));return b}throw Error("Instance literal expects a string for its timestamp.");},mp,function(a){if("string"===typeof a)return new Pj(a.toLowerCase());throw Error("UUID literal expects a string as its representation."); },wr,function(a){if(Ge(a))return Lg.B(Ah,a);throw Error("Queue literal expects a vector for its elements.");},gk,function(a){if(Ge(a)){var b=[];a=G(a);for(var c=null,d=0,e=0;;)if(ef?f:47),"..."].join("")),"LINK_PREVIEW_DESC",e));d=ND(ND(ND(m,"REPLIES_COUNT",d),"REBLOGS_COUNT",g),"FAVOURITES_COUNT",l);return ND(d,"section MODE",["section ",u.A(a)].join(""))},b)};function SD(a,b,c){var d=pv(null),e=pv(1);Vu(function(){var f=function(){function k(l){var m=l[1];if(7===m)throw m=l[7],m;if(1===m){m=function(){return function(t){return C.B(b,ql.A(t))}}();var p=yD(a,c);p=rv(p);l[8]=m;return lv(l,3,p)}return 4===m?(m=l[7],m=Bl.A(Uj(m)),m=C.B(m,ut),l[2]=m,l[1]=6,lt):6===m?(l[1]=r(l[2])?7:8,lt):3===m?(m=l[9],m=l[7],m=l[2],p=m instanceof Sj,l[9]=p,l[7]=m,l[1]=r(p)?4:5,lt):2===m?nv(l,l[2]):9===m?(m=l[8],p=xj(l[2].data),m=!ze(Hg(m,p)),mv(l,d,m)):5===m?(m=l[9],l[2]=m, l[1]=6,lt):8===m?(m=l[7],l[2]=m,l[1]=9,lt):null}return function(){function l(t){for(;;){a:try{for(;;){var v=k(t);if(!S(v,lt)){var A=v;break a}}}catch(F){A=F;t[2]=A;if(G(t[4]))t[1]=I(t[4]);else throw A;A=lt}if(!S(A,lt))return A}}function m(){var t=[null,null,null,null,null,null,null,null,null,null];t[0]=p;t[1]=1;return t}var p=null;p=function(t){switch(arguments.length){case 0:return m.call(this);case 1:return l.call(this,t)}throw Error("Invalid arity: "+arguments.length);};p.I=m;p.A=l;return p}()}(), g=function(){var k=f();k[6]=e;return k}();return kv(g)});return d} function TD(a,b,c){var d=pv(null),e=pv(1);Vu(function(){var f=function(){function k(l){var m=l[1];if(1===m){var p=c,t=oe;l[7]=p;l[8]=t;l[2]=null;l[1]=3;return lt}return 2===m?nv(l,l[2]):3===m?(p=l[7],m=ze(p),l[1]=m?5:6,lt):4===m?mv(l,d,l[2]):5===m?(t=l[8],l[2]=t,l[1]=7,lt):6===m?(p=l[7],m=Ed(p),p=I(p),p=SD(a,b,p),l[9]=m,lv(l,8,p)):7===m?(l[2]=l[2],l[1]=4,lt):8===m?(m=l[9],t=l[8],p=ne.B(t,l[2]),l[7]=m,l[8]=p,l[2]=null,l[1]=3,lt):null}return function(){function l(t){for(;;){a:try{for(;;){var v=k(t); if(!S(v,lt)){var A=v;break a}}}catch(F){A=F;t[2]=A;if(G(t[4]))t[1]=I(t[4]);else throw A;A=lt}if(!S(A,lt))return A}}function m(){var t=[null,null,null,null,null,null,null,null,null,null];t[0]=p;t[1]=1;return t}var p=null;p=function(t){switch(arguments.length){case 0:return m.call(this);case 1:return l.call(this,t)}throw Error("Invalid arity: "+arguments.length);};p.I=m;p.A=l;return p}()}(),g=function(){var k=f();k[6]=e;return k}();return kv(g)});return d} function UD(a,b){var c=pv(null),d=pv(1);Vu(function(){var e=function(){function g(k){var l=k[1];if(7===l)throw l=k[7],l;if(1===l){l=function(){return function(p){return C.B(b,ql.A(p))}}();var m=vD(a).get("directory?local\x3dtrue",{});m=rv(m);k[8]=l;return lv(k,3,m)}return 4===l?(l=k[7],l=Bl.A(Uj(l)),l=C.B(l,ut),k[2]=l,k[1]=6,lt):6===l?(k[1]=r(k[2])?7:8,lt):3===l?(l=k[7],l=k[9],l=k[2],m=l instanceof Sj,k[7]=l,k[9]=m,k[1]=r(m)?4:5,lt):2===l?nv(k,k[2]):9===l?(l=k[8],m=xj(k[2].data),l=V.B(lr,Hg(l,m)), l=I(l),mv(k,c,l)):5===l?(l=k[9],k[2]=l,k[1]=6,lt):8===l?(l=k[7],k[2]=l,k[1]=9,lt):null}return function(){function k(p){for(;;){a:try{for(;;){var t=g(p);if(!S(t,lt)){var v=t;break a}}}catch(A){v=A;p[2]=v;if(G(p[4]))p[1]=I(p[4]);else throw v;v=lt}if(!S(v,lt))return v}}function l(){var p=[null,null,null,null,null,null,null,null,null,null];p[0]=m;p[1]=1;return p}var m=null;m=function(p){switch(arguments.length){case 0:return l.call(this);case 1:return k.call(this,p)}throw Error("Invalid arity: "+arguments.length); };m.I=l;m.A=k;return m}()}(),f=function(){var g=e();g[6]=d;return g}();return kv(f)});return c} function VD(){var a=WD,b=XD,c=YD,d=ZD,e=pv(1);Vu(function(){var f=function(){function k(l){var m=l[1];if(7===m)return m=l[7],l[2]=m,l[1]=8,lt;if(1===m)return m=xD(a,c),m=rv(m),lv(l,2,m);if(4===m)return m=l[8],l[2]=m,l[1]=5,lt;if(6===m)throw m=l[7],m;if(3===m)return m=l[7],m=Bl.A(Uj(m)),m=C.B(m,ut),l[2]=m,l[1]=5,lt;if(2===m){m=l[7];m=l[8];m=l[2];var p=m instanceof Sj;l[7]=m;l[8]=p;l[1]=r(p)?3:4;return lt}if(9===m){var t=l[9];m=l[2];p=function(){return function(v,A){return new q(null,2,[nj,v,Qs,A], null)}}();t=Cj.A(t);m=V.C(p,t,m);m=xf(Hg(function(){return function(v){var A=zb(d);return A?A:Qs.A(v)}}(),m));m=V.B(nj,m);m=RD("replies-mode",m);m=yv(m);m=Bu(m);return nv(l,m)}return 5===m?(l[1]=r(l[2])?6:7,lt):8===m?(t=l[9],m=xj(l[2].data),p=Cj.A(m),p=V.B(lr,p),p=TD(a,b,p),l[9]=m,lv(l,9,p)):null}return function(){function l(t){for(;;){a:try{for(;;){var v=k(t);if(!S(v,lt)){var A=v;break a}}}catch(F){A=F;t[2]=A;if(G(t[4]))t[1]=I(t[4]);else throw A;A=lt}if(!S(A,lt))return A}}function m(){var t=[null, null,null,null,null,null,null,null,null,null];t[0]=p;t[1]=1;return t}var p=null;p=function(t){switch(arguments.length){case 0:return m.call(this);case 1:return l.call(this,t)}throw Error("Invalid arity: "+arguments.length);};p.I=m;p.A=l;return p}()}(),g=function(){var k=f();k[6]=e;return k}();return kv(g)})} function $D(){var a=WD,b=XD,c=pv(1);Vu(function(){var d=function(){function f(g){var k=g[1];if(7===k)throw k=g[7],k;if(1===k)return k=UD(a,b),lv(g,2,k);if(4===k)return k=g[7],k=Bl.A(Uj(k)),k=C.B(k,ut),g[2]=k,g[1]=6,lt;if(6===k)return g[1]=r(g[2])?7:8,lt;if(3===k){k=g[8];k=g[7];k=g[2];var l=k instanceof Sj;g[8]=l;g[7]=k;g[1]=r(l)?4:5;return lt}return 2===k?(k=g[2],l=wD(a,k),l=rv(l),g[9]=k,lv(g,3,l)):9===k?(k=xj(g[2].data),k=yg.B(4,Hg(function(){return function(m){return C.B(null,vp.A(m))}}(),Hg(function(){return function(m){return C.B(null, Ys.A(m))}}(),k))),k=RD("account-mode",k),k=yv(k),k=Bu(k),nv(g,k)):5===k?(k=g[8],g[2]=k,g[1]=6,lt):8===k?(k=g[7],g[2]=k,g[1]=9,lt):null}return function(){function g(m){for(;;){a:try{for(;;){var p=f(m);if(!S(p,lt)){var t=p;break a}}}catch(v){t=v;m[2]=t;if(G(m[4]))m[1]=I(m[4]);else throw t;t=lt}if(!S(t,lt))return t}}function k(){var m=[null,null,null,null,null,null,null,null,null,null];m[0]=l;m[1]=1;return m}var l=null;l=function(m){switch(arguments.length){case 0:return k.call(this);case 1:return g.call(this, m)}throw Error("Invalid arity: "+arguments.length);};l.I=k;l.A=g;return l}()}(),e=function(){var f=d();f[6]=c;return f}();return kv(e)})};var WD=Au("host_url"),XD=Au("account_name"),YD=Au("replies_to"),ZD=Au("filter_favorited");null==YD?$D():VD(); }).call(this);