varo=St(t,e,a,n,r),i=vt(o.year,0,o.dayOfYear);returnthis.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}functionNa(t){returnnull==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}functionUa(t){vare=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;returnnull==t?e:this.add(t-e,"d")}functionBa(t,e){e[lr]=M(1e3*("0."+t))}functionza(){returnthis._isUTC?"UTC":""}functionOa(){returnthis._isUTC?"Coordinated Universal Time":""}functionPa(t){returnAe(1e3*t)}functionRa(){returnAe.apply(null,arguments).parseZone()}functionHa(t){returnt}functionWa(t,e,a,n){varr=ne(),o=h().set(n,e);returnr[a](o,t)}functionja(t,e,a){if(s(t)&&(e=t,t=void0),t=t||"",null!=e)returnWa(t,e,a,"month");varn,r=[];for(n=0;n<12;n++)r[n]=Wa(t,n,a,"month");returnr}functionqa(t,e,a,n){"boolean"==typeoft?(s(e)&&(a=e,e=void0),e=e||""):(e=t,a=e,t=!1,s(e)&&(a=e,e=void0),e=e||"");varr=ne(),o=t?r._week.dow:0;if(null!=a)returnWa(e,(a+o)%7,n,"day");vari,u=[];for(i=0;i<7;i++)u[i]=Wa(e,(i+o)%7,n,"day");returnu}functionYa(t,e){returnja(t,e,"months")}functionXa(t,e){returnja(t,e,"monthsShort")}functionVa(t,e,a){returnqa(t,e,a,"weekdays")}functionGa(t,e,a){returnqa(t,e,a,"weekdaysShort")}functionKa(t,e,a){returnqa(t,e,a,"weekdaysMin")}functionJa(){vart=this._data;returnthis._milliseconds=to(this._milliseconds),this._days=to(this._days),this._months=to(this._months),t.milliseconds=to(t.milliseconds),t.seconds=to(t.seconds),t.minutes=to(t.minutes),t.hours=to(t.hours),t.months=to(t.months),t.years=to(t.years),this}function$a(t,e,a,n){varr=We(e,a);returnt._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}functionZa(t,e){return$a(this,t,e,1)}functionQa(t,e){return$a(this,t,e,-1)}functiontn(t){returnt<0?Math.floor(t):Math.ceil(t)}functionen(){vart,e,a,n,r,o=this._milliseconds,i=this._days,s=this._months,u=this._data;returno>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*tn(nn(s)+i),i=0,s=0),u.milliseconds=o%1e3,t=v(o/1e3),u.seconds=t%60,e=v(t/60),u.minutes=e%60,a=v(e/60),u.hours=a%24,i+=v(a/24),r=v(an(i)),s+=r,i-=tn(nn(r)),n=v(s/12),s%=12,u.days=i,u.months=s,u.years=n,this}functionan(t){return4800*t/146097}functionnn(t){return146097*t/4800}functionrn(t){vare,a,n=this._milliseconds;if(t=O(t),"month"===t||"year"===t)returne=this._days+n/864e5,a=this._months+an(e),"month"===t?a:a/12;switch(e=this._days+Math.round(nn(this._months)),t){case"week":returne/7+n/6048e5;case"day":returne+n/864e5;case"hour":return24*e+n/36e5;case"minute":return1440*e+n/6e4;case"second":return86400*e+n/1e3;case"millisecond":returnMath.floor(864e5*e)+n;default:thrownewError("Unknown unit "+t)}}functionon(){returnthis._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*M(this._months/12)}functionsn(t){returnfunction(){returnthis.as(t)}}functionun(t){returnt=O(t),this[t+"s"]()}functionln(t){returnfunction(){returnthis._data[t]}}functioncn(){returnv(this.days()/7)}functionpn(t,e,a,n,r){returnr.relativeTime(e||1,!!a,t,n)}functionhn(t,e,a){varn=We(t).abs(),r=go(n.as("s")),o=go(n.as("m")),i=go(n.as("h")),s=go(n.as("d")),u=go(n.as("M")),l=go(n.as("y")),c=r<yo.s&&["s",r]||o<=1&&["m"]||o<yo.m&&["mm",o]||i<=1&&["h"]||i<yo.h&&["hh",i]||s<=1&&["d"]||s<yo.d&&["dd",s]||u<=1&&["M"]||u<yo.M&&["MM",u]||l<=1&&["y"]||["yy",l];returnc[2]=e,c[3]=+t>0,c[4]=a,pn.apply(null,c)}functiondn(t){returnvoid0===t?go:"function"==typeoft&&(go=t,!0)}functionmn(t,e){returnvoid0!==yo[t]&&(void0===e?yo[t]:(yo[t]=e,!0))}functionfn(t){vare=this.localeData(),a=hn(this,!t,e);returnt&&(a=e.pastFuture(+this,a)),e.postformat(a)}functionbn(){vart,e,a,n=wo(this._milliseconds)/1e3,r=wo(this._days),o=wo(this._months);t=v(n/60),e=v(t/60),n%=60,t%=60,a=v(o/12),o%=12;vari=a,s=o,u=r,l=e,c=t,p=n,h=this.asSeconds();returnh?(h<0?"-":"")+"P"+(i?i+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||p?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(p?p+"S":""):"P0D"}vargn,yn;yn=Array.prototype.some?Array.prototype.some:function(t){for(vare=Object(this),a=e.leng
this.description&&a>=0&&(this.description=this.description.slice(0,a)+"<b><u>"+this.description.slice(a,a+t.length)+"</u></b>"+this.description.slice(a+t.length))},e.a=r},function(t,e,a){"use strict";varn=a(17),r=a(54),o=a(14);t.exports=function(t){for(vare=n(this),a=o(e.length),i=arguments.length,s=r(i>1?arguments[1]:void0,a),u=i>2?arguments[2]:void0,l=void0===u?a:r(u,a);l>s;)e[s++]=t;returne}},function(t,e,a){"use strict";varn=a(12),r=a(43);t.exports=function(t,e,a){eint?n.f(t,e,r(0,a)):t[e]=a}},function(t,e,a){varn=a(9),r=a(6).document,o=n(r)&&n(r.createElement);t.exports=function(t){returno?r.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,a){varn=a(10)("match");t.exports=function(t){vare=/./;try{"/./"[t](e)}catch(a){try{returne[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,a){t.exports=a(6).document&&document.documentElement},function(t,e,a){varn=a(9),r=a(109).set;t.exports=function(t,e,a){varo,i=e.constructor;returni!==a&&"function"==typeofi&&(o=i.prototype)!==a.prototype&&n(o)&&r&&r(t,o),t}},function(t,e,a){varn=a(62),r=a(10)("iterator"),o=Array.prototype;t.exports=function(t){returnvoid0!==t&&(n.Array===t||o[r]===t)}},function(t,e,a){varn=a(27);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,a){"use strict";varn=a(49),r=a(43),o=a(63),i={};a(21)(i,a(10)("iterator"),function(){returnthis}),t.exports=function(t,e,a){t.prototype=n(i,{next:r(1,a)}),o(t,e+" Iterator")}},function(t,e,a){"use strict";varn=a(48),r=a(0),o=a(22),i=a(21),s=a(19),u=a(62),l=a(104),c=a(63),p=a(26),h=a(10)("iterator"),d=!([].keys&&"next"in[].keys()),m="@@iterator",f="keys",b="values",g=function(){returnthis};t.exports=function(t,e,a,y,w,A,v){l(a,e,y);varM,S,C,_=function(t){if(!d&&tinD)returnD[t];switch(t){casef:returnfunction(){returnnewa(this,t)};caseb:returnfunction(){returnnewa(this,t)}}returnfunction(){returnnewa(this,t)}},x=e+" Iterator",I=w==b,E=!1,D=t.prototype,T=D[h]||D[m]||w&&D[w],F=T||_(w),k=w?I?_("entries"):F:void0,L="Array"==e?D.entries||T:T;if(L&&(C=p(L.call(newt)),C!==Object.prototype&&(c(C,x,!0),n||s(C,h)||i(C,h,g))),I&&T&&T.name!==b&&(E=!0,F=function(){returnT.call(this)}),n&&!v||!d&&!E&&D[h]||i(D,h,F),u[e]=F,u[x]=g,w)if(M={values:I?F:_(b),keys:A?F:_(f),entries:k},v)for(SinM)SinD||o(D,S,M[S]);elser(r.P+r.F*(d||E),e,M);returnM}},function(t,e){vara=Math.expm1;t.exports=!a||a(10)>22025.465794806718||a(10)<22025.465794806718||a(-2e-17)!=-2e-17?function(t){return0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:a},function(t,e){t.exports=Math.sign||function(t){return0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,a){varn=a(6),r=a(116).set,o=n.MutationObserver||n.WebKitMutationObserver,i=n.process,s=n.Promise,u="process"==a(27)(i);t.exports=function(){vart,e,a,l=function(){varn,r;for(u&&(n=i.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(n){throwt?a():e=void0,n}}e=void0,n&&n.enter()};if(u)a=function(){i.nextTick(l)};elseif(o){varc=!0,p=document.createTextNode("");newo(l).observe(p,{characterData:!0}),a=function(){p.data=c=!c}}elseif(s&&s.resolve){varh=s.resolve();a=function(){h.then(l)}}elsea=function(){r.call(n,l)};returnfunction(n){varr={fn:n,next:void0};e&&(e.next=r),t||(t=r,a()),e=r}}},function(t,e,a){varn=a(9),r=a(3),o=function(t,e){if(r(t),!n(e)&&null!==e)throwTypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=a(36)(Function.call,a(25).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(tinstanceofArray)}catch(t){e=!0}returnfunction(t,a){returno(t,a),e?t.__proto__=a:n(t,a),t}}({},!1):void0),check:o}},function(t,e,a){varn=a(87)("keys"),r=a(55);t.exports=function(t){returnn[t]||(n[t]=r(t))}},function(t,e,a){varn=a(3),r=a(20),o=a(10)("species");t.exports=function(t,e){vara,i=n(t).constructor;returnvoid0===i||void0==(a=n(i)[o])?e:r(a)}},function(t,e,a){varn=a(44),r=a(28);t.exports=function(t){returnfunction(e,a){varo,i,s=String(r(e)),u
}.apply(e,n),!(void0!==r&&(t.exports=r))},function(t,e,a){varn,r;n=[a(135)],r=function(t){"use strict";returnt.hasOwnProperty}.apply(e,n),!(void0!==r&&(t.exports=r))},function(t,e,a){varn,r;n=[a(77)],r=function(t){"use strict";returnt.indexOf}.apply(e,n),!(void0!==r&&(t.exports=r))},function(t,e,a){varn;n=function(){"use strict";return/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source}.call(e,a,e,t),!(void0!==n&&(t.exports=n))},function(t,e,a){varn,r;n=[a(139)],r=function(t){"use strict";returnnewRegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i")}.apply(e,n),!(void0!==r&&(t.exports=r))},function(t,e,a){varn,r;n=[a(77)],r=function(t){"use strict";returnt.slice}.apply(e,n),!(void0!==r&&(t.exports=r))},function(t,e,a){"use strict";varn=a(341),r=a(345),o=a(346),i=a(347),s=a(348),u=a(349),l=a(350),c=a(93),p=a(351),h=a(352),d=a(353),m=a(354),f=a(355),b=a(356),g=a(357),y=a(358),w=a(359),A=a(362),v=a(363),M=a(360),S=a(361),C=a(364),_=a(365),x=a(366),I=a(367),E=a(368),D=a(369),T=a(370),F=a(371),k=a(372),L=a(373),N=a(374),U=a(375),B=a(376),z=a(377),O=a(380),P=a(378),R=a(379),H={Fork:{description:"Split the input data up based on the specified delimiter and run all subsequent operations on each branch separately.<br><br>For example, to decode multiple Base64 strings, enter them all on separate lines then add the 'Fork' and 'From Base64' operations to the recipe. Each string will be decoded separately.",run:n.a.runFork,inputType:"string",outputType:"string",flowControl:!0,args:[{name:"Split delimiter",type:"binaryShortString",value:n.a.FORK_DELIM},{name:"Merge delimiter",type:"binaryShortString",value:n.a.MERGE_DELIM},{name:"Ignore errors",type:"boolean",value:n.a.FORK_IGNORE_ERRORS}]},Merge:{description:"Consolidate all branches back into a single trunk. The opposite of Fork.",run:n.a.runMerge,inputType:"string",outputType:"string",flowControl:!0,args:[]},Jump:{description:"Jump forwards or backwards over the specified number of operations.",run:n.a.runJump,inputType:"string",outputType:"string",flowControl:!0,args:[{name:"Number of operations to jump over",type:"number",value:n.a.JUMP_NUM},{name:"Maximum jumps (if jumping backwards)",type:"number",value:n.a.MAX_JUMPS}]},"Conditional Jump":{description:"Conditionally jump forwards or backwards over the specified number of operations based on whether the data matches the specified regular expression.",run:n.a.runCondJump,inputType:"string",outputType:"string",flowControl:!0,args:[{name:"Match (regex)",type:"string",value:""},{name:"Number of operations to jump over if match found",type:"number",value:n.a.JUMP_NUM},{name:"Maximum jumps (if jumping backwards)",type:"number",value:n.a.MAX_JUMPS}]},Return:{description:"End execution of operations at this point in the recipe.",run:n.a.runReturn,inputType:"string",outputType:"string",flowControl:!0,args:[]},"From Base64":{description:"Base64 is a notation for encoding arbitrary byte data using a restricted set of symbols that can be conveniently used by humans and processed by computers.<br><br>This operation decodes data from an ASCII Base64 string back into its raw format.<br><br>e.g. <code>aGVsbG8=</code> becomes <code>hello</code>",run:i.a.runFrom,highlight:i.a.highlightFrom,highlightReverse:i.a.highlightTo,inputType:"string",outputType:"byteArray",args:[{name:"Alphabet",type:"editableOption",value:i.a.ALPHABET_OPTIONS},{name:"Remove non‑alphabet chars",type:"boolean",value:i.a.REMOVE_NON_ALPH_CHARS}]},"To Base64":{description:"Base64 is a notation for encoding arbitrary byte data using a restricted set of symbols that can be conveniently used by humans and processed by computers.<br><br>This operation encodes data in an ASCII Base64 string.<br><br>e.g. <code>hello</code> becomes <code>aGVsbG8=</code>",run:i.a.runTo,highlight:i.a.highlightTo,highlightReverse:i.a.highlightFrom,inputType:"byteArray",outputType:"string",args:[{name:"Alphabet",type:"editableOption",value:i.a.ALPHABET_OPTIONS}]},"From Base58":{description:"Base58(similartoBase64)isanotationforencodingarbitrarybytedata.ItdiffersfromBase64byremov
run:p.a.runAtbash,highlight:!0,highlightReverse:!0,inputType:"string",outputType:"string",args:[]},"Rotate right":{description:"Rotates each byte to the right by the number of bits specified. Currently only supports 8-bit values.",run:N.a.runRotr,highlight:!0,highlightReverse:!0,inputType:"byteArray",outputType:"byteArray",args:[{name:"Number of bits",type:"number",value:N.a.ROTATE_AMOUNT},{name:"Rotate as a whole",type:"boolean",value:N.a.ROTATE_WHOLE}]},"Rotate left":{description:"Rotates each byte to the left by the number of bits specified. Currently only supports 8-bit values.",run:N.a.runRotl,highlight:!0,highlightReverse:!0,inputType:"byteArray",outputType:"byteArray",args:[{name:"Number of bits",type:"number",value:N.a.ROTATE_AMOUNT},{name:"Rotate as a whole",type:"boolean",value:N.a.ROTATE_WHOLE}]},ROT13:{description:"A simple caesar substitution cipher which rotates alphabet characters by the specified amount (default 13).",run:N.a.runRot13,highlight:!0,highlightReverse:!0,inputType:"byteArray",outputType:"byteArray",args:[{name:"Rotate lower case chars",type:"boolean",value:N.a.ROT13_LOWERCASE},{name:"Rotate upper case chars",type:"boolean",value:N.a.ROT13_UPPERCASE},{name:"Amount",type:"number",value:N.a.ROT13_AMOUNT}]},ROT47:{description:"A slightly more complex variation of a caesar cipher, which includes ASCII characters from 33 '!' to 126 '~'. Default rotation: 47.",run:N.a.runRot47,highlight:!0,highlightReverse:!0,inputType:"byteArray",outputType:"byteArray",args:[{name:"Amount",type:"number",value:N.a.ROT47_AMOUNT}]},"Strip HTTP headers":{description:"Removes HTTP headers from a request or response by looking for the first instance of a double newline.",run:S.a.runStripHeaders,inputType:"string",outputType:"string",args:[]},"Parse User Agent":{description:"Attempts to identify and categorise information contained in a user-agent string.",run:S.a.runParseUserAgent,inputType:"string",outputType:"string",args:[]},"Format MAC addresses":{description:"Displays given MAC addresses in multiple different formats.<br><br>Expects addresses in a list separated by newlines, spaces or commas.<br><br>WARNING: There are no validity checks.",run:x.a.runFormat,inputType:"string",outputType:"string",args:[{name:"Output case",type:"option",value:x.a.OUTPUT_CASE},{name:"No delimiter",type:"boolean",value:x.a.NO_DELIM},{name:"Dash delimiter",type:"boolean",value:x.a.DASH_DELIM},{name:"Colon delimiter",type:"boolean",value:x.a.COLON_DELIM},{name:"Cisco style",type:"boolean",value:x.a.CISCO_STYLE}]},"Encode NetBIOS Name":{description:"NetBIOS names as seen across the client interface to NetBIOS are exactly 16 bytes long. Within the NetBIOS-over-TCP protocols, a longer representation is used.<br><br>There are two levels of encoding. The first level maps a NetBIOS name into a domain system name. The second level maps the domain system name into the 'compressed' representation required for interaction with the domain name system.<br><br>This operation carries out the first level of encoding. See RFC 1001 for full details.",run:E.a.runEncodeName,inputType:"byteArray",outputType:"byteArray",args:[{name:"Offset",type:"number",value:E.a.OFFSET}]},"Decode NetBIOS Name":{description:"NetBIOS names as seen across the client interface to NetBIOS are exactly 16 bytes long. Within the NetBIOS-over-TCP protocols, a longer representation is used.<br><br>There are two levels of encoding. The first level maps a NetBIOS name into a domain system name. The second level maps the domain system name into the 'compressed' representation required for interaction with the domain name system.<br><br>This operation decodes the first level of encoding. See RFC 1001 for full details.",run:E.a.runDecodeName,inputType:"byteArray",outputType:"byteArray",args:[{name:"Offset",type:"number",value:E.a.OFFSET}]},"Offset checker":{description:"Compares multiple inputs (separated by the specified delimiter) and highlights matching characters which appear at the same position in all samples.",run:B.a.runOffsetChecker,inputType:"string",outputType:"html",args:[{n
inputType:"string",outputType:"string",args:[{name:"Starting index",type:"number",value:0},{name:"Truncate octet strings longer than",type:"number",value:F.a.ASN1_TRUNCATE_LENGTH}]},"Detect File Type":{description:"Attempts to guess the MIME (Multipurpose Internet Mail Extensions) type of the data based on 'magic bytes'.<br><br>Currently supports the following file types: 7z, amr, avi, bmp, bz2, class, cr2, crx, dex, dmg, doc, elf, eot, epub, exe, flac, flv, gif, gz, ico, iso, jpg, jxr, m4a, m4v, mid, mkv, mov, mp3, mp4, mpg, ogg, otf, pdf, png, ppt, ps, psd, rar, rtf, sqlite, swf, tar, tar.z, tif, ttf, utf8, vmdk, wav, webm, webp, wmv, woff, woff2, xls, xz, zip.",run:w.a.runDetect,inputType:"byteArray",outputType:"string",args:[]},"Scan for Embedded Files":{description:"Scans the data for potential embedded files by looking for magic bytes at all offsets. This operation is prone to false positives.<br><br>WARNING: Files over about 100KB in size will take a VERY long time to process.",run:w.a.runScanForEmbeddedFiles,inputType:"byteArray",outputType:"string",args:[{name:"Ignore common byte sequences",type:"boolean",value:w.a.IGNORE_COMMON_BYTE_SEQUENCES}]},"Expand alphabet range":{description:"Expand an alphabet range string into a list of the characters in that range.<br><br>e.g. <code>a-z</code> becomes <code>abcdefghijklmnopqrstuvwxyz</code>.",run:U.a.runExpandAlphRange,inputType:"string",outputType:"string",args:[{name:"Delimiter",type:"binaryString",value:""}]},Diff:{description:"Compares two inputs (separated by the specified delimiter) and highlights the differences between them.",run:B.a.runDiff,inputType:"string",outputType:"html",args:[{name:"Sample delimiter",type:"binaryString",value:B.a.DIFF_SAMPLE_DELIMITER},{name:"Diff by",type:"option",value:B.a.DIFF_BY},{name:"Show added",type:"boolean",value:!0},{name:"Show removed",type:"boolean",value:!0},{name:"Ignore whitespace (relevant for word and line)",type:"boolean",value:!1}]},"Parse UNIX file permissions":{description:"Given a UNIX/Linux file permission string in octal or textual format, this operation explains which permissions are granted to which user groups.<br><br>Input should be in either octal (e.g. <code>755</code>) or textual (e.g. <code>drwxr-xr-x</code>) format.",run:T.a.runParseUnixPerms,inputType:"string",outputType:"string",args:[]},"Swap endianness":{description:"Switches the data from big-endian to little-endian or vice-versa. Data can be read in as hexadecimal or raw bytes. It will be returned in the same format as it is entered.",run:b.a.runSwapEndianness,highlight:!0,highlightReverse:!0,inputType:"string",outputType:"string",args:[{name:"Data format",type:"option",value:b.a.DATA_FORMAT},{name:"Word length (bytes)",type:"number",value:b.a.WORD_LENGTH},{name:"Pad incomplete words",type:"boolean",value:b.a.PAD_INCOMPLETE_WORDS}]},"Syntax highlighter":{description:"Adds syntax highlighting to a range of source code languages. Note that this will not indent the code. Use one of the 'Beautify' operations for that.",run:h.a.runSyntaxHighlight,highlight:!0,highlightReverse:!0,inputType:"string",outputType:"html",args:[{name:"Language/File extension",type:"option",value:h.a.LANGUAGES},{name:"Display line numbers",type:"boolean",value:h.a.LINE_NUMS}]},"Parse escaped string":{description:"Replaces escaped characters with the bytes they represent.<br><br>e.g.<code>Hello\\nWorld</code> becomes <code>Hello<br>World</code>",run:B.a.runParseEscapedString,inputType:"string",outputType:"string",args:[]},"TCP/IP Checksum":{description:"Calculates the checksum for a TCP (Transport Control Protocol) or IP (Internet Protocol) header from an input of raw bytes.",run:c.a.runTCPIP,inputType:"byteArray",outputType:"string",args:[]},"Parse colour code":{description:"Convertsacolourcodeinastandardformattootherstandardformatsanddisplaysthecolouritself.<br><br><strong>Exampleinputs</strong><ul><li><code>#d9edf7</code></li><li><code>rgba(217,237,247,1)</code></li><li><code>hsla(200,65%,91%,1)</code></li><li><code>cmyk(0.12,0.04,0.00,0.03)</code></li>
p%4===2?(d=u.slice(0,-3),u=m+"<span data-toggle='tooltip' data-placement='top' title='"+n.a.escapeHtml(n.a.fromBase64("AAA"+d,a).slice(2,-2))+"'>"+d+"</span><span class='hlgreen'>"+u.substr(u.length-3,1)+"</span><span class='hlred'>"+u.substr(u.length-2)+"</span>"):p%4===3?(d=u.slice(0,-2),u=m+"<span data-toggle='tooltip' data-placement='top' title='"+n.a.escapeHtml(n.a.fromBase64("AAA"+d,a).slice(2,-2))+"'>"+d+"</span><span class='hlgreen'>"+u.substr(u.length-2,1)+"</span><span class='hlred'>"+u.substr(u.length-1)+"</span>"):(d=u,u=m+"<span data-toggle='tooltip' data-placement='top' title='"+n.a.escapeHtml(n.a.fromBase64("AAA"+d,a).slice(2))+"'>"+d+"</span>"),o||(u=d),o?"Characters highlighted in <span class='hlgreen'>green</span> could change if the input is surrounded by more data.\nCharacters highlighted in <span class='hlred'>red</span> are for padding purposes only.\nUnhighlighted characters are <span data-toggle='tooltip' data-placement='top' title='Tooltip on left'>static</span>.\nHover over the static sections to see what they decode to on their own.\n\nOffset 0: "+i+"\nOffset 1: "+s+"\nOffset 2: "+u+h:i+"\n"+s+"\n"+u)},highlightTo:function(t,e){returnt[0].start=Math.floor(t[0].start/3*4),t[0].end=Math.ceil(t[0].end/3*4),t},highlightFrom:function(t,e){returnt[0].start=Math.ceil(t[0].start/4*3),t[0].end=Math.floor(t[0].end/4*3),t}};e.a=r},function(t,e,a){"use strict";varn=a(7),r=a(75),o=(a.n(r),{_bitOp:function(t,e,a,n,r){e&&e.length||(e=[0]);for(varo=[],i=null,s=null,u=null,l=0;l<t.length;l++)if(s=e[l%e.length],u=t[l],i=!n||0!==u&&u!==s?a(u,s):u,o.push(i),"Standard"!==r&&(!n||0!==u&&u!==s))switch(r){case"Input differential":e[l%e.length]=i;break;case"Output differential":e[l%e.length]=u}returno},XOR_PRESERVE_NULLS:!1,XOR_SCHEME:["Standard","Input differential","Output differential"],KEY_FORMAT:["Hex","Base64","UTF8","UTF16","UTF16LE","UTF16BE","Latin1"],runXor:function(t,e){vara=n.a.format[e[0].option].parse(e[0].string||""),r=e[1],i=e[2];returna=n.a.wordArrayToByteArray(a),o._bitOp(t,a,o._xor,i,r)},XOR_BRUTE_KEY_LENGTH:["1","2"],XOR_BRUTE_SAMPLE_LENGTH:100,XOR_BRUTE_SAMPLE_OFFSET:0,XOR_BRUTE_PRINT_KEY:!0,XOR_BRUTE_OUTPUT_HEX:!1,runXorBrute:function(t,e){vara,r,i,s=parseInt(e[0],10),u=e[1],l=e[2],c=e[3],p=e[4],h=e[5],d=e[6],m=e[7],f="";t=t.slice(l,l+u),""!==h&&(a=newRegExp(h,"im"));for(varb=1,g=Math.pow(256,s);b<g;b++)r=o._bitOp(t,n.a.hexToByteArray(b.toString(16)),o._xor,c,p),i=n.a.byteArrayToUtf8(r),""!==h&&i.search(a)===-1||(d&&(f+="Key = "+n.a.hex(b,2*s)+": "),f+=m?n.a.byteArrayToHex(r)+"\n":n.a.printable(i,!1)+"\n",d&&(f+="\n"));returnf},runNot:function(t,e){returno._bitOp(t,null,o._not)},runAnd:function(t,e){vara=n.a.format[e[0].option].parse(e[0].string||"");returna=n.a.wordArrayToByteArray(a),o._bitOp(t,a,o._and)},runOr:function(t,e){vara=n.a.format[e[0].option].parse(e[0].string||"");returna=n.a.wordArrayToByteArray(a),o._bitOp(t,a,o._or)},runAdd:function(t,e){vara=n.a.format[e[0].option].parse(e[0].string||"");returna=n.a.wordArrayToByteArray(a),o._bitOp(t,a,o._add)},runSub:function(t,e){vara=n.a.format[e[0].option].parse(e[0].string||"");returna=n.a.wordArrayToByteArray(a),o._bitOp(t,a,o._sub)},_xor:function(t,e){returnt^e},_not:function(t,e){return255&~t},_and:function(t,e){returnt&e},_or:function(t,e){returnt|e},_add:function(t,e){return(t+e)%256},_sub:function(t,e){vara=t-e;returna<0?256+a:a}});e.a=o},function(t,e,a){"use strict";varn=a(7),r={DELIM_OPTIONS:["Space","Comma","Semi-colon","Colon","Line feed","CRLF"],HEX_DELIM_OPTIONS:["Space","Comma","Semi-colon","Colon","Line feed","CRLF","0x","\\x","None"],BIN_DELIM_OPTIONS:["Space","Comma","Semi-colon","Colon","Line feed","CRLF","None"],runToHex:function(t,e){vara=n.a.charRep[e[0]||"Space"];returnn.a.toHex(t,a,2)},runFromHex:function(t,e){vara=e[0]||"Space";returnn.a.fromHex(t,a,2)},CHARCODE_BASE:16,runToCharcode:function(t,e){vara,r=n.a.charRep[e[0]||"Space"],o=e[1],i="",s=2;if(o<2||o>36)throw"Error: Base argument must be between 2 and 36";for(varu=0;u<t.length;u++)a=n.a.ord(t[u]),16===o?(s=a<256?2:a<65536?4:a<167
"Space Shuttle (2,041 tonnes)":2041e6,"RMS Titanic (52,000 tonnes)":52e9,"Great Pyramid of Giza (6,000,000 tonnes)":6e12,"Earth's oceans (1.4 yottagrams)":1.4e24,"A teaspoon of neutron star (5,500 million tonnes)":55e14,"Lunar mass (ML)":7.342e25,"Earth mass (M⊕)":5.97219e27,"Jupiter mass (MJ)":1.8981411476999997e30,"Solar mass (M☉)":1.98855e33,"Sagittarius A* (7.5 x 10^36 kgs-ish)":7.5e39,"Milky Way galaxy (1.2 x 10^42 kgs)":1.2e45,"The observable universe (1.45 x 10^53 kgs)":1.45e56},runMass:function(t,e){vara=e[0],r=e[1];returnt*=n.MASS_FACTOR[a],t/n.MASS_FACTOR[r]},SPEED_UNITS:["[Metric]","Metres per second (m/s)","Kilometres per hour (km/h)","[/Metric]","[Imperial]","Miles per hour (mph)","Knots (kn)","[/Imperial]","[Comparisons]","Human hair growth rate","Bamboo growth rate","World's fastest snail","Usain Bolt's top speed","Jet airliner cruising speed","Concorde","SR-71 Blackbird","Space Shuttle","International Space Station","[/Comparisons]","[Scientific]","Sound in standard atmosphere","Sound in water","Lunar escape velocity","Earth escape velocity","Earth's solar orbit","Solar system's Milky Way orbit","Milky Way relative to the cosmic microwave background","Solar escape velocity","Neutron star escape velocity (0.3c)","Light in a diamond (0.4136c)","Signal in an optical fibre (0.667c)","Light (c)","[/Scientific]"],SPEED_FACTOR:{"Metres per second (m/s)":1,"Kilometres per hour (km/h)":.2778,"Miles per hour (mph)":.44704,"Knots (kn)":.5144,"Human hair growth rate":4.8e-9,"Bamboo growth rate":14e-6,"World's fastest snail":.00275,"Usain Bolt's top speed":12.42,"Jet airliner cruising speed":250,Concorde:603,"SR-71 Blackbird":981,"Space Shuttle":1400,"International Space Station":7700,"Sound in standard atmosphere":340.3,"Sound in water":1500,"Lunar escape velocity":2375,"Earth escape velocity":11200,"Earth's solar orbit":29800,"Solar system's Milky Way orbit":2e5,"Milky Way relative to the cosmic microwave background":552e3,"Solar escape velocity":617700,"Neutron star escape velocity (0.3c)":1e8,"Light in a diamond (0.4136c)":124e6,"Signal in an optical fibre (0.667c)":2e8,"Light (c)":299792458},runSpeed:function(t,e){vara=e[0],r=e[1];returnt*=n.SPEED_FACTOR[a],t/n.SPEED_FACTOR[r]}};e.a=n},function(t,e,a){"use strict";(function(t){vara={UNITS:["Seconds (s)","Milliseconds (ms)","Microseconds (μs)","Nanoseconds (ns)"],runFromUnixTimestamp:function(e,a){varn,r=a[0];if(e=parseFloat(e),"Seconds (s)"===r)returnn=t.unix(e),n.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss")+" UTC";if("Milliseconds (ms)"===r)returnn=t(e),n.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss.SSS")+" UTC";if("Microseconds (μs)"===r)returnn=t(e/1e3),n.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss.SSS")+" UTC";if("Nanoseconds (ns)"===r)returnn=t(e/1e6),n.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss.SSS")+" UTC";throw"Unrecognised unit"},runToUnixTimestamp:function(e,a){varn=a[0],r=t(e);if("Seconds (s)"===n)returnr.unix();if("Milliseconds (ms)"===n)returnr.valueOf();if("Microseconds (μs)"===n)return1e3*r.valueOf();if("Nanoseconds (ns)"===n)return1e6*r.valueOf();throw"Unrecognised unit"},DATETIME_FORMATS:[{name:"Standard date and time",value:"DD/MM/YYYY HH:mm:ss"},{name:"American-style date and time",value:"MM/DD/YYYY HH:mm:ss"},{name:"International date and time",value:"YYYY-MM-DD HH:mm:ss"},{name:"Verbose date and time",value:"dddd Do MMMM YYYY HH:mm:ss Z z"},{name:"UNIX timestamp (seconds)",value:"X"},{name:"UNIX timestamp offset (milliseconds)",value:"x"},{name:"Automatic",value:""}],INPUT_FORMAT_STRING:"DD/MM/YYYY HH:mm:ss",OUTPUT_FORMAT_STRING:"dddd Do MMMM YYYY HH:mm:ss Z z",TIMEZONES:["UTC"].concat(t.tz.names()),runTranslateFormat:function(e,n){varr,o=n[1],i=n[2],s=n[3],u=n[4];try{if(r=t.tz(e,o,i),!r||"Invalid date"===r.format())throwError}catch(t){return"Invalid format.\n\n"+a.FORMAT_EXAMPLES}returnr.tz(u).format(s)},runParse:function(e,n){varr,o=n[1],i=n[2],s="";try{if(r=t.tz(e,o,i),!r||"Invalid date"===r.format())throwError}catch(t){return"Invalid format.\n\n"+a.FORMAT_EXAMPLES}returns+="Date: "+r.format("dddd Do MMMM YYYY")+"
5:"<dot><dot><dot><dot><dot>",6:"<dash><dot><dot><dot><dot>",7:"<dash><dash><dot><dot><dot>",8:"<dash><dash><dash><dot><dot>",9:"<dash><dash><dash><dash><dot>",0:"<dash><dash><dash><dash><dash>",".":"<dot><dash><dot><dash><dot><dash>",",":"<dash><dash><dot><dot><dash><dash>",":":"<dash><dash><dash><dot><dot><dot>",";":"<dash><dot><dash><dot><dash><dot>","!":"<dash><dot><dash><dot><dash><dash>","?":"<dot><dot><dash><dash><dot><dot>","'":"<dot><dash><dash><dash><dash><dot>",'"':"<dot><dash><dot><dot><dash><dot>","/":"<dash><dot><dot><dash><dot>","-":"<dash><dot><dot><dot><dot><dash>","+":"<dot><dash><dot><dash><dot>","(":"<dash><dot><dash><dash><dot>",")":"<dash><dot><dash><dash><dot><dash>","@":"<dot><dash><dash><dot><dash><dot>","=":"<dash><dot><dot><dot><dash>","&":"<dot><dash><dot><dot><dot>",_:"<dot><dot><dash><dash><dot><dash>",$:"<dot><dot><dot><dash><dot><dot><dash>"},runTo:function(t,e){vara=e[0].split("/"),o=a[0],i=a[1],s=n.a.charRep[e[1]],u=n.a.charRep[e[2]];returnt=t.split(/\r?\n/),t=Array.prototype.map.call(t,function(t){vare=t.split(/ +/);returne=Array.prototype.map.call(e,function(t){vare=Array.prototype.map.call(t,function(t){vare=t.toUpperCase();return"undefined"==typeofr.MORSE_TABLE[e]?"":r.MORSE_TABLE[e]});returne.join("<ld>")}),t=e.join("<wd>")}),t=t.join("\n"),t=t.replace(/<dash>|<dot>|<ld>|<wd>/g,function(t){switch(t){case"<dash>":returno;case"<dot>":returni;case"<ld>":returns;case"<wd>":returnu}})},runFrom:function(){vart=null,e=function(){t={};for(vareinr.MORSE_TABLE){vara=r.MORSE_TABLE[e];t[a]=e}};returnfunction(a,r){null===t&&e();varo=n.a.charRep[r[0]],i=n.a.charRep[r[1]];a=a.replace(/-|‐|−|_|–|—|dash/gi,"<dash>"),a=a.replace(/\.|·|dot/gi,"<dot>");vars=a.split(i);returns=Array.prototype.map.call(s,function(e){vara=e.split(o),n=a.map(function(e){returnt[e]});returnn.join("")}),s=s.join(" ")}}()};e.a=r},function(t,e,a){"use strict";varn={OFFSET:65,runEncodeName:function(t,e){for(vara=[],n=e[0],r=0;r<t.length;r++)a.push((t[r]>>4)+n),a.push((15&t[r])+n);returna},runDecodeName:function(t,e){for(vara=[],n=e[0],r=0;r<t.length;r+=2)a.push(t[r]-n<<4|t[r+1]-n&15);returna}};e.a=n},function(t,e,a){"use strict";varn={run:function(t,e){if(!t)return"Let's play Wangernumb!";vara=t.match(/\d+/);returna?a[0]+"! That's Numberwang!":"Sorry, that's not Numberwang. Let's rotate the board!"}};e.a=n},function(t,e,a){"use strict";varn={runParseUnixPerms:function(t,e){vara={d:!1,sl:!1,np:!1,s:!1,cd:!1,bd:!1,dr:!1,sb:!1,su:!1,sg:!1,ru:!1,wu:!1,eu:!1,rg:!1,wg:!1,eg:!1,ro:!1,wo:!1,eo:!1},r=0,o=0,i=0,s=0,u="",l=null,c=null;if(0===t.search(/\s*[0-7]{1,4}\s*/i))l=t.match(/\s*([0-7]{1,4})\s*/i)[1],4===l.length?(r=parseInt(l[0],8),o=parseInt(l[1],8),i=parseInt(l[2],8),s=parseInt(l[3],8)):(l.length>0&&(o=parseInt(l[0],8)),l.length>1&&(i=parseInt(l[1],8)),l.length>2&&(s=parseInt(l[2],8))),a.su=r>>2&1,a.sg=r>>1&1,a.sb=1&r,a.ru=o>>2&1,a.wu=o>>1&1,a.eu=1&o,a.rg=i>>2&1,a.wg=i>>1&1,a.eg=1&i,a.ro=s>>2&1,a.wo=s>>1&1,a.eo=1&s;else{if(0!==t.search(/\s*[dlpcbDrwxsStT-]{1,10}\s*/))return"Invalid input format.\nPlease enter the permissions in either octal (e.g. 755) or textual (e.g. drwxr-xr-x) format.";switch(c=t.match(/\s*([dlpcbDrwxsStT-]{1,10})\s*/)[1],c[0]){case"d":a.d=!0;break;case"l":a.sl=!0;break;case"p":a.np=!0;break;case"s":a.s=!0;break;case"c":a.cd=!0;break;case"b":a.bd=!0;break;case"D":a.dr=!0}if(c.length>1&&(a.ru="r"===c[1]),c.length>2&&(a.wu="w"===c[2]),c.length>3)switch(c[3]){case"x":a.eu=!0;break;case"s":a.eu=!0,a.su=!0;break;case"S":a.su=!0}if(c.length>4&&(a.rg="r"===c[4]),c.length>5&&(a.wg="w"===c[5]),c.length>6)switch(c[6]){case"x":a.eg=!0;break;case"s":a.eg=!0,a.sg=!0;break;case"S":a.sg=!0}if(c.length>7&&(a.ro="r"===c[7]),c.length>8&&(a.wo="w"===c[8]),c.length>9)switch(c[9]){case"x":a.eo=!0;break;case"t":a.eo=!0,a.sb=!0;break;case"T":a.sb=!0}}returnu+="Textual representation: "+n._permsToStr(a),u+="\nOctal representation: "+n._permsToOctal(a),c&&(u+="\nFile type: "+n._ftFromPerms(a)),a.su&&(u+="\nThe setuid flag is set"),a.sg&&(u+="\nThe setgid flag is set"),a.sb&&(u+="\nThesti
document.querySelector("link[rel=icon]").setAttribute("href","data:image/png;base64,"+t),document.querySelector("#bake img").setAttribute("src","data:image/png;base64,"+e),document.querySelector(".about-img-left").setAttribute("src","data:image/png;base64,"+a)},a.prototype.insertSpiderText=function(){document.title=document.title.replace(/Cyber/g,"Spider"),a.treeWalk(document.body,function(t){3===t.nodeType&&(t.nodeValue=t.nodeValue.replace(/Cyber/g,"Spider"))},!0),a.treeWalk(document.getElementById("bake-group"),function(t){3===t.nodeType&&(t.nodeValue=t.nodeValue.replace(/Bake/g,"Spin"))},!0),document.querySelector("#recipe .title").innerHTML="Web"},a.prototype.konamiCodeListener=function(e){this.kkeys.push(e.keyCode);for(vara=[38,38,40,40,37,39,37,39,66,65],n=0;n<this.kkeys.length;n++){if(this.kkeys[n]!==a[n]){this.kkeys=[];break}n===a.length-1&&(t("body").children().toggleClass("konami"),this.kkeys=[])}},a.treeWalk=function(){vart={SCRIPT:!0,IFRAME:!0,OBJECT:!0,EMBED:!0,STYLE:!0,LINK:!0,META:!0};returnfunction(e,a,n){for(varr=e.firstChild;r&&r!==e;){if((n||1===r.nodeType)&&a(r)===!1)return!1;if(1!==r.nodeType||!r.firstChild||r.tagName&&t[r.tagName]){if(r.nextSibling)r=r.nextSibling;elsefor(;(r=r.parentNode)!==e;)if(r.nextSibling){r=r.nextSibling;break}}elser=r.firstChild}}}(),e.a=a}).call(e,a(13))},function(t,e,a){"use strict";varn=function(t){this.app=t};n.prototype.windowResize=function(){clearTimeout(this.resetLayoutTimeout),this.resetLayoutTimeout=setTimeout(this.app.resetLayout.bind(this.app),200)},n.prototype.windowBlur=function(){this.windowBlurTime=(newDate).getTime()},n.prototype.windowFocus=function(){vart=(newDate).getTime()-this.windowBlurTime;t>6e4&&this.app.silentBake()},e.a=n},function(t,e,a){"use strict";functionn(t){vare=t.length;if(e%4>0)thrownewError("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}functionr(t){return3*t.length/4-n(t)}functiono(t){vare,a,r,o,i,s,u=t.length;i=n(t),s=newp(3*u/4-i),r=i>0?u-4:u;varl=0;for(e=0,a=0;e<r;e+=4,a+=3)o=c[t.charCodeAt(e)]<<18|c[t.charCodeAt(e+1)]<<12|c[t.charCodeAt(e+2)]<<6|c[t.charCodeAt(e+3)],s[l++]=o>>16&255,s[l++]=o>>8&255,s[l++]=255&o;return2===i?(o=c[t.charCodeAt(e)]<<2|c[t.charCodeAt(e+1)]>>4,s[l++]=255&o):1===i&&(o=c[t.charCodeAt(e)]<<10|c[t.charCodeAt(e+1)]<<4|c[t.charCodeAt(e+2)]>>2,s[l++]=o>>8&255,s[l++]=255&o),s}functioni(t){returnl[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}functions(t,e,a){for(varn,r=[],o=e;o<a;o+=3)n=(t[o]<<16)+(t[o+1]<<8)+t[o+2],r.push(i(n));returnr.join("")}functionu(t){for(vare,a=t.length,n=a%3,r="",o=[],i=16383,u=0,c=a-n;u<c;u+=i)o.push(s(t,u,u+i>c?c:u+i));return1===n?(e=t[a-1],r+=l[e>>2],r+=l[e<<4&63],r+="=="):2===n&&(e=(t[a-2]<<8)+t[a-1],r+=l[e>>10],r+=l[e>>4&63],r+=l[e<<2&63],r+="="),o.push(r),o.join("")}e.byteLength=r,e.toByteArray=o,e.fromByteArray=u;for(varl=[],c=[],p="undefined"!=typeofUint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,m=h.length;d<m;++d)l[d]=h[d],c[h.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(t,e,a){(function(t){+function(t){"use strict";functione(e){returnthis.each(function(){varn=t(this),r=n.data("bs.affix"),o="object"==typeofe&&e;r||n.data("bs.affix",r=newa(this,o)),"string"==typeofe&&r[e]()})}vara=function(e,n){this.options=t.extend({},a.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};a.VERSION="3.3.7",a.RESET="affix affix-top affix-bottom",a.DEFAULTS={offset:0,target:window},a.prototype.getState=function(t,e,a,n){varr=this.$target.scrollTop(),o=this.$element.offset(),i=this.$target.height();if(null!=a&&"top"==this.affixed)returnr<a&&"top";if("bottom"==this.affixed)returnnull!=a?!(r+this.unpin<=o.top)&&"bottom":!(r+i<=t-n)&&"bottom";vars=null==this.affixed,u=s?r:o.top,l=s?i:e;returnnull!=a&&r<=a?"top":n
this.$element.on(u+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},a.prototype.getDefaults=function(){returna.DEFAULTS},a.prototype.getOptions=function(e){returne=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeofe.delay&&(e.delay={show:e.delay,hide:e.delay}),e},a.prototype.getDelegateOptions=function(){vare={},a=this.getDefaults();returnthis._options&&t.each(this._options,function(t,n){a[t]!=n&&(e[t]=n)}),e},a.prototype.enter=function(e){vara=einstanceofthis.constructor?e:t(e.currentTarget).data("bs."+this.type);returna||(a=newthis.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,a)),einstanceoft.Event&&(a.inState["focusin"==e.type?"focus":"hover"]=!0),a.tip().hasClass("in")||"in"==a.hoverState?void(a.hoverState="in"):(clearTimeout(a.timeout),a.hoverState="in",a.options.delay&&a.options.delay.show?void(a.timeout=setTimeout(function(){"in"==a.hoverState&&a.show()},a.options.delay.show)):a.show())},a.prototype.isInStateTrue=function(){for(vartinthis.inState)if(this.inState[t])return!0;return!1},a.prototype.leave=function(e){vara=einstanceofthis.constructor?e:t(e.currentTarget).data("bs."+this.type);if(a||(a=newthis.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,a)),einstanceoft.Event&&(a.inState["focusout"==e.type?"focus":"hover"]=!1),!a.isInStateTrue())returnclearTimeout(a.timeout),a.hoverState="out",a.options.delay&&a.options.delay.hide?void(a.timeout=setTimeout(function(){"out"==a.hoverState&&a.hide()},a.options.delay.hide)):a.hide()},a.prototype.show=function(){vare=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);varn=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;varr=this,o=this.tip(),i=this.getUID(this.type);this.setContent(),o.attr("id",i),this.$element.attr("aria-describedby",i),this.options.animation&&o.addClass("fade");vars="function"==typeofthis.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,u=/\s?auto?\s?/i,l=u.test(s);l&&(s=s.replace(u,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);varc=this.getPosition(),p=o[0].offsetWidth,h=o[0].offsetHeight;if(l){vard=s,m=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>m.bottom?"top":"top"==s&&c.top-h<m.top?"bottom":"right"==s&&c.right+p>m.width?"left":"left"==s&&c.left-p<m.left?"right":s,o.removeClass(d).addClass(s)}varf=this.getCalculatedOffset(s,c,p,h);this.applyPlacement(f,s);varb=function(){vart=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",b).emulateTransitionEnd(a.TRANSITION_DURATION):b()}},a.prototype.applyPlacement=function(e,a){varn=this.tip(),r=n[0].offsetWidth,o=n[0].offsetHeight,i=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(i)&&(i=0),isNaN(s)&&(s=0),e.top+=i,e.left+=s,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");varu=n[0].offsetWidth,l=n[0].offsetHeight;"top"==a&&l!=o&&(e.top=e.top+o-l);varc=this.getViewportAdjustedDelta(a,e,u,l);c.left?e.left+=c.left:e.top+=c.top;varp=/top|bottom/.test(a),h=p?2*c.left-r+u:2*c.top-o+l,d=p?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(h,n[0][d],p)},a.prototype.replaceArrow=function(t,e,a){this.arrow().css(a?"left":"top",50*(1-t/e)+"%").css(a?"top":"left","")},a.prototype.setContent=function(){vart=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},a.prototype.hide=f
}},error:n,complete:a})})}}),p(v,{from:function(t){vare="function"==typeofthis?this:v,a=f(l(t)[s]);if(a){varn=l(a.call(t));returnn.constructor===e?n:newe(function(t){returnn.subscribe(t)})}returnnewe(function(e){vara=!1;returni(function(){if(!a){try{if(d(t,!1,function(t){if(e.next(t),a)returnm})===m)return}catch(t){if(a)throwt;returnvoide.error(t)}e.complete()}}),function(){a=!0}})},of:function(){for(vart=0,e=arguments.length,a=Array(e);t<e;)a[t]=arguments[t++];returnnew("function"==typeofthis?this:v)(function(t){vare=!1;returni(function(){if(!e){for(varn=0;n<a.length;++n)if(t.next(a[n]),e)return;t.complete()}}),function(){e=!0}})}}),h(v.prototype,s,function(){returnthis}),n(n.G,{Observable:v}),a(53)("Observable")},function(t,e,a){varn=a(37),r=a(3),o=n.key,i=n.set;n.exp({defineMetadata:function(t,e,a,n){i(t,e,r(a),o(n))}})},function(t,e,a){varn=a(37),r=a(3),o=n.key,i=n.map,s=n.store;n.exp({deleteMetadata:function(t,e){vara=arguments.length<3?void0:o(arguments[2]),n=i(r(e),a,!1);if(void0===n||!n.delete(t))return!1;if(n.size)return!0;varu=s.get(e);returnu.delete(a),!!u.size||s.delete(e)}})},function(t,e,a){varn=a(170),r=a(146),o=a(37),i=a(3),s=a(26),u=o.keys,l=o.key,c=function(t,e){vara=u(t,e),o=s(t);if(null===o)returna;vari=c(o,e);returni.length?a.length?r(newn(a.concat(i))):i:a};o.exp({getMetadataKeys:function(t){returnc(i(t),arguments.length<2?void0:l(arguments[1]))}})},function(t,e,a){varn=a(37),r=a(3),o=a(26),i=n.has,s=n.get,u=n.key,l=function(t,e,a){varn=i(t,e,a);if(n)returns(t,e,a);varr=o(e);returnnull!==r?l(t,r,a):void0};n.exp({getMetadata:function(t,e){returnl(t,r(e),arguments.length<3?void0:u(arguments[2]))}})},function(t,e,a){varn=a(37),r=a(3),o=n.keys,i=n.key;n.exp({getOwnMetadataKeys:function(t){returno(r(t),arguments.length<2?void0:i(arguments[1]))}})},function(t,e,a){varn=a(37),r=a(3),o=n.get,i=n.key;n.exp({getOwnMetadata:function(t,e){returno(t,r(e),arguments.length<3?void0:i(arguments[2]))}})},function(t,e,a){varn=a(37),r=a(3),o=a(26),i=n.has,s=n.key,u=function(t,e,a){varn=i(t,e,a);if(n)return!0;varr=o(e);returnnull!==r&&u(t,r,a)};n.exp({hasMetadata:function(t,e){returnu(t,r(e),arguments.length<3?void0:s(arguments[2]))}})},function(t,e,a){varn=a(37),r=a(3),o=n.has,i=n.key;n.exp({hasOwnMetadata:function(t,e){returno(t,r(e),arguments.length<3?void0:i(arguments[2]))}})},function(t,e,a){varn=a(37),r=a(3),o=a(20),i=n.key,s=n.set;n.exp({metadata:function(t,e){returnfunction(a,n){s(t,e,(void0!==n?r:o)(a),i(n))}}})},function(t,e,a){varn=a(0);n(n.P+n.R,"Set",{toJSON:a(150)("Set")})},function(t,e,a){"use strict";varn=a(0),r=a(112)(!0);n(n.P,"String",{at:function(t){returnr(this,t)}})},function(t,e,a){"use strict";varn=a(0),r=a(28),o=a(14),i=a(83),s=a(81),u=RegExp.prototype,l=function(t,e){this._r=t,this._s=e};a(104)(l,"RegExp String",function(){vart=this._r.exec(this._s);return{value:t,done:null===t}}),n(n.P,"String",{matchAll:function(t){if(r(this),!i(t))throwTypeError(t+" is not a regexp!");vare=String(this),a="flags"inu?String(t.flags):s.call(t),n=newRegExp(t.source,~a.indexOf("g")?a:"g"+a);returnn.lastIndex=o(t.lastIndex),newl(n,e)}})},function(t,e,a){"use strict";varn=a(0),r=a(166);n(n.P,"String",{padEnd:function(t){returnr(this,t,arguments.length>1?arguments[1]:void0,!1)}})},function(t,e,a){"use strict";varn=a(0),r=a(166);n(n.P,"String",{padStart:function(t){returnr(this,t,arguments.length>1?arguments[1]:void0,!0)}})},function(t,e,a){"use strict";a(64)("trimLeft",function(t){returnfunction(){returnt(this,1)}},"trimStart")},function(t,e,a){"use strict";a(64)("trimRight",function(t){returnfunction(){returnt(this,2)}},"trimEnd")},function(t,e,a){a(118)("asyncIterator")},function(t,e,a){a(118)("observable")},function(t,e,a){varn=a(0);n(n.S,"System",{global:a(6)})},function(t,e,a){for(varn=a(120),r=a(22),o=a(6),i=a(21),s=a(62),u=a(10),l=u("iterator"),c=u("toStringTag"),p=s.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],d=0;d<5;d++){varm,f=h[d],b=o[f],g=b&&b.prototype;if(g){g[l]||i(g,l,p),g[c]||i(g,
this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");varn=this.parseIdentifierName();a=this.finalize(this.startNode(t),newl.StaticMemberExpression(a,n))}elseif(this.match("(")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;varr=this.parseArguments();a=this.finalize(this.startNode(t),newl.CallExpression(a,r))}elseif(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");varn=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),a=this.finalize(this.startNode(t),newl.ComputedMemberExpression(a,n))}else{if(this.lookahead.type!==i.Token.Template||!this.lookahead.head)break;varo=this.parseTemplateLiteral();a=this.finalize(this.startNode(t),newl.TaggedTemplateExpression(a,o))}returnthis.context.allowIn=e,a},t.prototype.parseSuper=function(){vart=this.createNode();returnthis.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(t,newl.Super)},t.prototype.parseLeftHandSideExpression=function(){n.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(vart=this.startNode(this.lookahead),e=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");vara=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),e=this.finalize(t,newl.ComputedMemberExpression(e,a))}elseif(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");vara=this.parseIdentifierName();e=this.finalize(t,newl.StaticMemberExpression(e,a))}else{if(this.lookahead.type!==i.Token.Template||!this.lookahead.head)break;varr=this.parseTemplateLiteral();e=this.finalize(t,newl.TaggedTemplateExpression(e,r))}returne},t.prototype.parseUpdateExpression=function(){vart,e=this.lookahead;if(this.match("++")||this.match("--")){vara=this.startNode(e),n=this.nextToken();t=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&t.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(r.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(r.Messages.InvalidLHSInAssignment);varo=!0;t=this.finalize(a,newl.UpdateExpression(n.value,t,o)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}elseif(t=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===i.Token.Punctuator&&(this.match("++")||this.match("--"))){this.context.strict&&t.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(t.name)&&this.tolerateError(r.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(r.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;vars=this.nextToken().value,o=!1;t=this.finalize(this.startNode(e),newl.UpdateExpression(s,t,o))}returnt},t.prototype.parseUnaryExpression=function(){vart;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){vare=this.startNode(this.lookahead),a=this.nextToken();t=this.inheritCoverGrammar(this.parseUnaryExpression),t=this.finalize(e,newl.UnaryExpression(a.value,t)),this.context.strict&&"delete"===t.operator&&t.argument.type===u.Syntax.Identifier&&this.tolerateError(r.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}elset=this.parseUpdateExpression();returnt},t.prototype.parseExponentiationExpression=function(){vart=this.lookahead,e=this.inheritCoverGrammar(this.parseUnaryExpression);if(e.type!==u.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;vara=e,n=this.isolateCoverGrammar(this.parseExponentiationExpression);e=this.finali
vari=o[0],s=o[1],u=function(t){returnMn.crypto.Util.hashString(t,i)},l=u(t);returns==l}functionXa(t,e){e=e.replace(En,""),e=e.replace(/[ \n]+/g,"");vara=de(e,16);if(a.bitLength()>this.n.bitLength())return0;varn=this.doPublic(a),r=n.toString(16).replace(/^1f+00/,""),o=Wa(r);if(0==o.length)return!1;vari=(o[0],o[1]);returni==t}functionVa(t,e,a,n){varr=function(t){returnMn.crypto.Util.hashHex(t,a)},o=r(Aa(t));returnvoid0===n&&(n=-1),this.verifyWithMessageHashPSS(o,e,a,n)}functionGa(t,e,a,n){varr=newo(e,16);if(r.bitLength()>this.n.bitLength())return!1;vari,s=function(t){returnMn.crypto.Util.hashHex(t,a)},u=wa(t),l=u.length,c=this.n.bitLength()-1,p=Math.ceil(c/8);if(n===-1||void0===n)n=l;elseif(n===-2)n=p-l-2;elseif(n<-2)throw"invalid salt length";if(p<l+n+2)throw"data too long";varh=this.doPublic(r).toByteArray();for(i=0;i<h.length;i+=1)h[i]&=255;for(;h.length<p;)h.unshift(0);if(188!==h[p-1])throw"encoded message does not end in 0xbc";h=String.fromCharCode.apply(String,h);vard=h.substr(0,p-l-1),m=h.substr(d.length,l),f=65280>>8*p-c&255;if(0!==(d.charCodeAt(0)&f))throw"bits beyond keysize not zero";varb=za(m,d.length,s),g=[];for(i=0;i<d.length;i+=1)g[i]=d.charCodeAt(i)^b.charCodeAt(i);g[0]&=~f;vary=p-l-n-2;for(i=0;i<y;i+=1)if(0!==g[i])throw"leftmost octets not zero";if(1!==g[y])throw"0x01 marker not found";returnm===wa(s(Aa("\0\0\0\0\0\0\0\0"+u+String.fromCharCode.apply(String,g.slice(-n)))))}functionKa(){this.subjectPublicKeyRSA=null,this.subjectPublicKeyRSA_hN=null,this.subjectPublicKeyRSA_hE=null,this.hex=null,this.getSerialNumberHex=function(){returnvn.getDecendantHexVByNthList(this.hex,0,[0,1])},this.getSignatureAlgorithmField=function(){vart=vn.getDecendantHexVByNthList(this.hex,0,[0,2,0]),e=Mn.asn1.ASN1Util.oidHexToInt(t),a=Mn.asn1.x509.OID.oid2name(e);returna},this.getIssuerHex=function(){returnvn.getDecendantHexTLVByNthList(this.hex,0,[0,3])},this.getIssuerString=function(){returnKa.hex2dn(vn.getDecendantHexTLVByNthList(this.hex,0,[0,3]))},this.getSubjectHex=function(){returnvn.getDecendantHexTLVByNthList(this.hex,0,[0,5])},this.getSubjectString=function(){returnKa.hex2dn(vn.getDecendantHexTLVByNthList(this.hex,0,[0,5]))},this.getNotBefore=function(){vart=vn.getDecendantHexVByNthList(this.hex,0,[0,4,0]);returnt=t.replace(/(..)/g,"%$1"),t=decodeURIComponent(t)},this.getNotAfter=function(){vart=vn.getDecendantHexVByNthList(this.hex,0,[0,4,1]);returnt=t.replace(/(..)/g,"%$1"),t=decodeURIComponent(t)},this.readCertPEM=function(t){vare=vn.pemToHex(t),a=Ka.getPublicKeyHexArrayFromCertHex(e),n=newge;n.setPublic(a[0],a[1]),this.subjectPublicKeyRSA=n,this.subjectPublicKeyRSA_hN=a[0],this.subjectPublicKeyRSA_hE=a[1],this.hex=e},this.readCertPEMWithoutRSAInit=function(t){vare=vn.pemToHex(t),a=Ka.getPublicKeyHexArrayFromCertHex(e);"function"==typeofthis.subjectPublicKeyRSA.setPublic&&this.subjectPublicKeyRSA.setPublic(a[0],a[1]),this.subjectPublicKeyRSA_hN=a[0],this.subjectPublicKeyRSA_hE=a[1],this.hex=e},this.getInfo=function(){vart="Basic Fields\n";t+=" serial number: "+this.getSerialNumberHex()+"\n",t+=" signature algorithm: "+this.getSignatureAlgorithmField()+"\n",t+=" issuer: "+this.getIssuerString()+"\n",t+=" notBefore: "+this.getNotBefore()+"\n",t+=" notAfter: "+this.getNotAfter()+"\n",t+=" subject: "+this.getSubjectString()+"\n",t+=" subject public key info: \n";vare=Ka.getSubjectPublicKeyInfoPosFromCertHex(this.hex),a=vn.getHexOfTLV_AtObj(this.hex,e),n=In.getKey(a,null,"pkcs8pub");ninstanceofge&&(t+=" key algorithm: RSA\n",t+=" n="+n.n.toString(16).substr(0,16)+"...\n",t+=" e="+n.e.toString(16)+"\n"),t+="X509v3 Extensions:\n";for(varr=Ka.getV3ExtInfoListOfCertHex(this.hex),o=0;o<r.length;o++){vari=r[o],s=Mn.asn1.x509.OID.oid2name(i.oid);""===s&&(s=i.oid);varu="";if(i.critical===!0&&(u="CRITICAL"),t+=" "+s+" "+u+":\n","basicConstraints"===s){varl=Ka.getExtBasicConstraints(this.hex);void0===l.cA?t+=" {}\n":(t+=" cA=true",void0!==l.pathLen&&(t+=", pathLen="+l.pathLen),t+="\n")}elseif("keyUsage"===s)t+=" "+Ka.getExtKeyUsageString(this.hex)+"\n";
this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;varn="",r=t.split("."),o=40*parseInt(r[0])+parseInt(r[1]);n+=e(o),r.splice(0,2);for(vari=0;i<r.length;i++)n+=a(r[i]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueName=function(t){vare=Mn.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){returnthis.hV},void0!==t&&("string"==typeoft?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void0!==t.oid?this.setValueOidString(t.oid):void0!==t.hex?this.setValueHex(t.hex):void0!==t.name&&this.setValueName(t.name))},Za.lang.extend(Mn.asn1.DERObjectIdentifier,Mn.asn1.ASN1Object),Mn.asn1.DEREnumerated=function(t){Mn.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Mn.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){vare=newo(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){returnthis.hV},"undefined"!=typeoft&&("undefined"!=typeoft.int?this.setByInteger(t.int):"number"==typeoft?this.setByInteger(t):"undefined"!=typeoft.hex&&this.setValueHex(t.hex))},Za.lang.extend(Mn.asn1.DEREnumerated,Mn.asn1.ASN1Object),Mn.asn1.DERUTF8String=function(t){Mn.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Za.lang.extend(Mn.asn1.DERUTF8String,Mn.asn1.DERAbstractString),Mn.asn1.DERNumericString=function(t){Mn.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Za.lang.extend(Mn.asn1.DERNumericString,Mn.asn1.DERAbstractString),Mn.asn1.DERPrintableString=function(t){Mn.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Za.lang.extend(Mn.asn1.DERPrintableString,Mn.asn1.DERAbstractString),Mn.asn1.DERTeletexString=function(t){Mn.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Za.lang.extend(Mn.asn1.DERTeletexString,Mn.asn1.DERAbstractString),Mn.asn1.DERIA5String=function(t){Mn.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Za.lang.extend(Mn.asn1.DERIA5String,Mn.asn1.DERAbstractString),Mn.asn1.DERUTCTime=function(t){Mn.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=sa(this.s)},this.getFreshValueHex=function(){return"undefined"==typeofthis.date&&"undefined"==typeofthis.s&&(this.date=newDate,this.s=this.formatDate(this.date,"utc"),this.hV=sa(this.s)),this.hV},void0!==t&&(void0!==t.str?this.setString(t.str):"string"==typeoft&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void0!==t.hex?this.setStringHex(t.hex):void0!==t.date&&this.setByDate(t.date))},Za.lang.extend(Mn.asn1.DERUTCTime,Mn.asn1.DERAbstractTime),Mn.asn1.DERGeneralizedTime=function(t){Mn.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=sa(this.s)},this.getFreshValueHex=function(){returnvoid0===this.date&&void0===this.s&&(this.date=newDate,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=sa(this.s)),this.hV},void0!==t&&(void0!==t.str?this.setString(t.str):"string"==typeoft&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void0!==t.hex?this.setStringHex(t.hex):void0!==t.date&&this.setByDate(t.date),t.millis===!0&&(this.withMillis=!0))},Za.lang.extend(Mn.asn1.DERGeneralizedTime,Mn.asn1.DERAbstractTime),Mn.asn1.DERSequence=function(t){Mn.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(vart="",e=0;e<this.asn1Array.length;e++){vara=this.asn1Array[e];t+=a.getEncodedHex()}returnthis.hV=t,this.hV}},Za.lang.extend(Mn.asn1.DERSequence,Mn.as
},Za.lang.extend(Mn.asn1.x509.AlgorithmIdentifier,Mn.asn1.ASN1Object),Mn.asn1.x509.GeneralName=function(t){Mn.asn1.x509.GeneralName.superclass.constructor.call(this);vare={rfc822:"81",dns:"82",dn:"a4",uri:"86"};this.explicit=!1,this.setByParam=function(t){vara=null;if(void0!==t){if(void0!==t.rfc822&&(this.type="rfc822",a=newMn.asn1.DERIA5String({str:t[this.type]})),void0!==t.dns&&(this.type="dns",a=newMn.asn1.DERIA5String({str:t[this.type]})),void0!==t.uri&&(this.type="uri",a=newMn.asn1.DERIA5String({str:t[this.type]})),void0!==t.dn&&(this.type="dn",a=newMn.asn1.x509.X500Name({str:t.dn})),void0!==t.ldapdn&&(this.type="dn",a=newMn.asn1.x509.X500Name({ldapstr:t.ldapdn})),void0!==t.certissuer){this.type="dn",this.explicit=!0;varn=t.certissuer,r=null;if(n.match(/^[0-9A-Fa-f]+$/),n.indexOf("-----BEGIN ")!=-1&&(r=vn.pemToHex(n)),null==r)throw"certissuer param not cert";varo=newKa;o.hex=r;vari=o.getIssuerHex();a=newMn.asn1.ASN1Object,a.hTLV=i}if(void0!==t.certsubj){this.type="dn",this.explicit=!0;varn=t.certsubj,r=null;if(n.match(/^[0-9A-Fa-f]+$/),n.indexOf("-----BEGIN ")!=-1&&(r=vn.pemToHex(n)),null==r)throw"certsubj param not cert";varo=newKa;o.hex=r;vari=o.getSubjectHex();a=newMn.asn1.ASN1Object,a.hTLV=i}if(null==this.type)throw"unsupported type in params="+t;this.asn1Obj=newMn.asn1.DERTaggedObject({explicit:this.explicit,tag:e[this.type],obj:a})}},this.getEncodedHex=function(){returnthis.asn1Obj.getEncodedHex()},void0!==t&&this.setByParam(t)},Za.lang.extend(Mn.asn1.x509.GeneralName,Mn.asn1.ASN1Object),Mn.asn1.x509.GeneralNames=function(t){Mn.asn1.x509.GeneralNames.superclass.constructor.call(this);this.setByParamArray=function(t){for(vare=0;e<t.length;e++){vara=newMn.asn1.x509.GeneralName(t[e]);this.asn1Array.push(a)}},this.getEncodedHex=function(){vart=newMn.asn1.DERSequence({array:this.asn1Array});returnt.getEncodedHex()},this.asn1Array=newArray,"undefined"!=typeoft&&this.setByParamArray(t)},Za.lang.extend(Mn.asn1.x509.GeneralNames,Mn.asn1.ASN1Object),Mn.asn1.x509.DistributionPointName=function(t){Mn.asn1.x509.DistributionPointName.superclass.constructor.call(this);if(this.getEncodedHex=function(){if("full"!=this.type)throw"currently type shall be 'full': "+this.type;returnthis.asn1Obj=newMn.asn1.DERTaggedObject({explicit:!1,tag:this.tag,obj:this.asn1V}),this.hTLV=this.asn1Obj.getEncodedHex(),this.hTLV},"undefined"!=typeoft){if(!Mn.asn1.x509.GeneralNames.prototype.isPrototypeOf(t))throw"This class supports GeneralNames only as argument";this.type="full",this.tag="a0",this.asn1V=t}},Za.lang.extend(Mn.asn1.x509.DistributionPointName,Mn.asn1.ASN1Object),Mn.asn1.x509.DistributionPoint=function(t){Mn.asn1.x509.DistributionPoint.superclass.constructor.call(this);this.getEncodedHex=function(){vart=newMn.asn1.DERSequence;if(null!=this.asn1DP){vare=newMn.asn1.DERTaggedObject({explicit:!0,tag:"a0",obj:this.asn1DP});t.appendASN1Object(e)}returnthis.hTLV=t.getEncodedHex(),this.hTLV},"undefined"!=typeoft&&"undefined"!=typeoft.dpobj&&(this.asn1DP=t.dpobj)},Za.lang.extend(Mn.asn1.x509.DistributionPoint,Mn.asn1.ASN1Object),Mn.asn1.x509.OID=newfunction(t){this.atype2oidList={CN:"2.5.4.3",L:"2.5.4.7",ST:"2.5.4.8",O:"2.5.4.10",OU:"2.5.4.11",C:"2.5.4.6",STREET:"2.5.4.9",DC:"0.9.2342.19200300.100.1.25",UID:"0.9.2342.19200300.100.1.1",SN:"2.5.4.4",DN:"2.5.4.49",E:"1.2.840.113549.1.9.1",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3"},this.name2oidList={sha1:"1.3.14.3.2.26",sha256:"2.16.840.1.101.3.4.2.1",sha384:"2.16.840.1.101.3.4.2.2",sha512:"2.16.840.1.101.3.4.2.3",sha224:"2.16.840.1.101.3.4.2.4",md5:"1.2.840.113549.2.5",md2:"1.3.14.7.2.2.1",ripemd160:"1.3.36.3.2.1",MD2withRSA:"1.2.840.113549.1.1.2",MD4withRSA:"1.2.840.113549.1.1.3",MD5withRSA:"1.2.840.113549.1.1.4",SHA1withRSA:"1.2.840.113549.1.1.5",SHA224withRSA:"1.2.840.113549.1.1.14",SHA256withRSA:"1.2.840.113549.1.1.11",SHA384withRSA:"1.2.840.113549.1.1.12",SHA512withRSA:
Mn.asn1.cades.SignatureTimeStamp=function(t){Mn.asn1.cades.SignatureTimeStamp.superclass.constructor.call(this),this.attrTypeOid="1.2.840.113549.1.9.16.2.14",this.tstHex=null;vare=Mn.asn1;if("undefined"!=typeoft){if("undefined"!=typeoft.res)if("string"==typeoft.res&&t.res.match(/^[0-9A-Fa-f]+$/));elseif(!(t.resinstanceofMn.asn1.ASN1Object))throw"res param shall be ASN1Object or hex string";if("undefined"!=typeoft.tst)if("string"==typeoft.tst&&t.tst.match(/^[0-9A-Fa-f]+$/)){vara=newe.ASN1Object;this.tstHex=t.tst,a.hTLV=this.tstHex,a.getEncodedHex(),this.valueList=[a]}elseif(!(t.tstinstanceofMn.asn1.ASN1Object))throw"tst param shall be ASN1Object or hex string"}},Za.lang.extend(Mn.asn1.cades.SignatureTimeStamp,Mn.asn1.cms.Attribute),Mn.asn1.cades.CompleteCertificateRefs=function(t){Mn.asn1.cades.CompleteCertificateRefs.superclass.constructor.call(this),this.attrTypeOid="1.2.840.113549.1.9.16.2.21";vare=(Mn.asn1,Mn.asn1.cades);this.setByArray=function(t){this.valueList=[];for(vara=0;a<t.length;a++){varn=newe.OtherCertID(t[a]);this.valueList.push(n)}},"undefined"!=typeoft&&"object"==typeoft&&"number"==typeoft.length&&this.setByArray(t)},Za.lang.extend(Mn.asn1.cades.CompleteCertificateRefs,Mn.asn1.cms.Attribute),Mn.asn1.cades.OtherCertID=function(t){Mn.asn1.cades.OtherCertID.superclass.constructor.call(this);vare=Mn.asn1,a=Mn.asn1.cms,n=Mn.asn1.cades;this.hasIssuerSerial=!0,this.dOtherCertHash=null,this.dIssuerSerial=null,this.setByCertPEM=function(t){this.dOtherCertHash=newn.OtherHash(t),this.hasIssuerSerial&&(this.dIssuerSerial=newa.IssuerAndSerialNumber(t))},this.getEncodedHex=function(){if(null!=this.hTLV)returnthis.hTLV;if(null==this.dOtherCertHash)throw"otherCertHash not set";vart=[this.dOtherCertHash];null!=this.dIssuerSerial&&t.push(this.dIssuerSerial);vara=newe.DERSequence({array:t});returnthis.hTLV=a.getEncodedHex(),this.hTLV},"undefined"!=typeoft&&("string"==typeoft&&t.indexOf("-----BEGIN ")!=-1&&this.setByCertPEM(t),"object"==typeoft&&(t.hasis===!1&&(this.hasIssuerSerial=!1),"string"==typeoft.cert&&this.setByCertPEM(t.cert)))},Za.lang.extend(Mn.asn1.cades.OtherCertID,Mn.asn1.ASN1Object),Mn.asn1.cades.OtherHash=function(t){Mn.asn1.cades.OtherHash.superclass.constructor.call(this);vare=Mn.asn1,a=Mn.asn1.cades;if(this.alg="sha256",this.dOtherHash=null,this.setByCertPEM=function(t){if(t.indexOf("-----BEGIN ")==-1)throw"certPEM not to seem PEM format";vare=vn.pemToHex(t),n=Mn.crypto.Util.hashHex(e,this.alg);this.dOtherHash=newa.OtherHashAlgAndValue({alg:this.alg,hash:n})},this.getEncodedHex=function(){if(null==this.dOtherHash)throw"OtherHash not set";returnthis.dOtherHash.getEncodedHex()},"undefined"!=typeoft)if("string"==typeoft)if(t.indexOf("-----BEGIN ")!=-1)this.setByCertPEM(t);else{if(!t.match(/^[0-9A-Fa-f]+$/))throw"unsupported string value for params";this.dOtherHash=newe.DEROctetString({hex:t})}else"object"==typeoft&&("string"==typeoft.cert?("string"==typeoft.alg&&(this.alg=t.alg),this.setByCertPEM(t.cert)):this.dOtherHash=newa.OtherHashAlgAndValue(t))},Za.lang.extend(Mn.asn1.cades.OtherHash,Mn.asn1.ASN1Object),Mn.asn1.cades.CAdESUtil=newfunction(){},Mn.asn1.cades.CAdESUtil.addSigTS=function(t,e,a){},Mn.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned=function(t){vare=Mn.asn1,a=Mn.asn1.cms,n=Mn.asn1.cades.CAdESUtil,r={};if("06092a864886f70d010702"!=vn.getDecendantHexTLVByNthList(t,0,[0]))throw"hex is not CMS SignedData";varo=vn.getDecendantIndexByNthList(t,0,[1,0]),i=vn.getPosArrayOfChildren_AtObj(t,o);if(i.length<4)throw"num of SignedData elem shall be 4 at least";vars=i.shift();r.version=vn.getHexOfTLV_AtObj(t,s);varu=i.shift();r.algs=vn.getHexOfTLV_AtObj(t,u);varl=i.shift();r.encapcontent=vn.getHexOfTLV_AtObj(t,l),r.certs=null,r.revs=null,r.si=[];varc=i.shift();"a0"==t.substr(c,2)&&(r.certs=vn.getHexOfTLV_AtObj(t,c),c=i.shift()),"a1"==t.substr(c,2)&&(r.revs=vn.getHexOfTLV_AtObj(t,c),c=i.shift());varp=c;if("31"!=t.substr(p,2))throw"Can't find signerInfos";for(varh=vn.getPosArrayOfChildren_AtObj(t,p),d=0;d<h.length;d++){varm=h[d],f=n.parseSignerInfoFo
varc=i.modInverse(n).multiply(r.add(a.multiply(l))).mod(n);returnthis.serializeSig(l,c)},this.verifyWithMessageHash=function(t,e){returnthis.verifyHex(t,e,this.pubKeyHex)},this.verifyHex=function(t,e,a){varn,r,i=Mn.crypto.ECDSA.parseSigHex(e);n=i.r,r=i.s;vars;s=Re.decodeFromHex(this.ecparams.curve,a);varu=newo(t,16);returnthis.verifyRaw(u,n,r,s)},this.verify=function(t,e,a){varn,r;if(Bitcoin.Util.isArray(e)){vari=this.parseSig(e);n=i.r,r=i.s}else{if("object"!=typeofe||!e.r||!e.s)throw"Invalid value for signature";n=e.r,r=e.s}vars;if(ainstanceofRe)s=a;else{if(!Bitcoin.Util.isArray(a))throw"Invalid format for pubkey value, must be byte array or ECPointFp";s=Re.decodeFrom(this.ecparams.curve,a)}varu=o.fromByteArrayUnsigned(t);returnthis.verifyRaw(u,n,r,s)},this.verifyRaw=function(t,e,a,n){varr=this.ecparams.n,i=this.ecparams.G;if(e.compareTo(o.ONE)<0||e.compareTo(r)>=0)return!1;if(a.compareTo(o.ONE)<0||a.compareTo(r)>=0)return!1;vars=a.modInverse(r),u=t.multiply(s).mod(r),l=e.multiply(s).mod(r),c=i.multiply(u).add(n.multiply(l)),p=c.getX().toBigInteger().mod(r);returnp.equals(e)},this.serializeSig=function(t,e){vara=t.toByteArraySigned(),n=e.toByteArraySigned(),r=[];returnr.push(2),r.push(a.length),r=r.concat(a),r.push(2),r.push(n.length),r=r.concat(n),r.unshift(r.length),r.unshift(48),r},this.parseSig=function(t){vare;if(48!=t[0])thrownewError("Signature not a valid DERSequence");if(e=2,2!=t[e])thrownewError("First element in signature must be a DERInteger");vara=t.slice(e+2,e+2+t[e+1]);if(e+=2+t[e+1],2!=t[e])thrownewError("Second element in signature must be a DERInteger");varn=t.slice(e+2,e+2+t[e+1]);e+=2+t[e+1];varr=o.fromByteArrayUnsigned(a),i=o.fromByteArrayUnsigned(n);return{r:r,s:i}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";vare=t[0]-27;if(e<0||e>7)throw"Invalid signature type";vara=this.ecparams.n,n=o.fromByteArrayUnsigned(t.slice(1,33)).mod(a),r=o.fromByteArrayUnsigned(t.slice(33,65)).mod(a);return{r:n,s:r,i:e}},this.readPKCS5PrvKeyHex=function(t){vare=vn,a=Mn.crypto.ECDSA.getName,n=e.getVbyList;if(e.isASN1HEX(t)===!1)throw"not ASN.1 hex string";varr,o,i;try{r=n(t,0,[2,0],"06"),o=n(t,0,[1],"04");try{i=n(t,0,[3,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#1/5 plain ECC private key"}if(this.curveName=a(r),void0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(o),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){vare=vn,a=Mn.crypto.ECDSA.getName,n=e.getVbyList;if(e.isASN1HEX(t)===!1)throw"not ASN.1 hex string";varr,o,i,s;try{r=n(t,0,[1,0],"06"),o=n(t,0,[1,1],"06"),i=n(t,0,[2,0,1],"04");try{s=n(t,0,[2,0,2,0],"03").substr(2)}catch(t){}}catch(t){throw"malformed PKCS#8 plain ECC private key"}if(this.curveName=a(o),void0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(s),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){vare=vn,a=Mn.crypto.ECDSA.getName,n=e.getVbyList;if(e.isASN1HEX(t)===!1)throw"not ASN.1 hex string";varr,o,i;try{r=n(t,0,[0,0],"06"),o=n(t,0,[0,1],"06"),i=n(t,0,[1],"03").substr(2)}catch(t){throw"malformed PKCS#8 ECC public key"}if(this.curveName=a(o),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,e){5!==e&&(e=6);vara=vn,n=Mn.crypto.ECDSA.getName,r=a.getVbyList;if(a.isASN1HEX(t)===!1)throw"not ASN.1 hex string";varo,i;try{o=r(t,0,[0,e,0,1],"06"),i=r(t,0,[0,e,1],"03").substr(2)}catch(t){throw"malformed X.509 certificate ECC public key"}if(this.curveName=n(o),null===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void0!==t&&void0!==t.curve&&(this.curveName=t.curve),void0===this.curveName&&(this.curveName=e),this.setNamedCurve(this.curveName),void0!==t&&(void0!==t.prv&&this.setPrivateKeyHex(t.prv),void0!==t.pub&&this.setPublicKeyHex(t.pub))},Mn.crypto.ECDSA.parseSigHex=function(t){v
if(e.n=vn.getHexOfV_AtObj(t,a[0]),"02"!=t.substr(a[1],2))throw"malformed RSA key(code:004)";returne.e=vn.getHexOfV_AtObj(t,a[1]),e},parsePrivateRawRSAKeyHexAtObj:function(t,e){vara=vn,n=a.getHexOfV_AtObj,r=a.getDecendantIndexByNthList(t,0,[2,0]),o=a.getPosArrayOfChildren_AtObj(t,r);if(9!==o.length)throw"malformed PKCS#8 plain RSA private key";e.key={},e.key.n=n(t,o[1]),e.key.e=n(t,o[2]),e.key.d=n(t,o[3]),e.key.p=n(t,o[4]),e.key.q=n(t,o[5]),e.key.dp=n(t,o[6]),e.key.dq=n(t,o[7]),e.key.co=n(t,o[8])},parsePrivateRawECKeyHexAtObj:function(t,e){vara=(e.keyidx,newMn.crypto.ECDSA);a.readPKCS8PrvKeyHex(t),e.key=a.prvKeyHex,e.pubkey=a.pubKeyHex},parsePublicPKCS8Hex:function(t){vare={};e.algparam=null;vara=vn.getPosArrayOfChildren_AtObj(t,0);if(2!=a.length)throw"outer DERSequence shall have 2 elements: "+a.length;varn=a[0];if("30"!=t.substr(n,2))throw"malformed PKCS8 public key(code:001)";varr=vn.getPosArrayOfChildren_AtObj(t,n);if(2!=r.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(r[0],2))throw"malformed PKCS8 public key(code:003)";if(e.algoid=vn.getHexOfV_AtObj(t,r[0]),"06"==t.substr(r[1],2)?e.algparam=vn.getHexOfV_AtObj(t,r[1]):"30"==t.substr(r[1],2)&&(e.algparam={},e.algparam.p=vn.getVbyList(t,r[1],[0],"02"),e.algparam.q=vn.getVbyList(t,r[1],[1],"02"),e.algparam.g=vn.getVbyList(t,r[1],[2],"02")),"03"!=t.substr(a[1],2))throw"malformed PKCS8 public key(code:004)";returne.key=vn.getHexOfV_AtObj(t,a[1]).substr(2),e},getRSAKeyFromPublicPKCS8Hex:function(t){vare=newge;returne.readPKCS8PubKeyHex(t),e}}}();In.getKey=function(t,e,a){if("undefined"!=typeofge&&tinstanceofge)returnt;if("undefined"!=typeofMn.crypto.ECDSA&&tinstanceofMn.crypto.ECDSA)returnt;if("undefined"!=typeofMn.crypto.DSA&&tinstanceofMn.crypto.DSA)returnt;if(void0!==t.curve&&void0!==t.xy&&void0===t.d)returnnewMn.crypto.ECDSA({pub:t.xy,curve:t.curve});if(void0!==t.curve&&void0!==t.d)returnnewMn.crypto.ECDSA({prv:t.d,curve:t.curve});if(void0===t.kty&&void0!==t.n&&void0!==t.e&&void0===t.d){varn=newge;returnn.setPublic(t.n,t.e),n}if(void0===t.kty&&void0!==t.n&&void0!==t.e&&void0!==t.d&&void0!==t.p&&void0!==t.q&&void0!==t.dp&&void0!==t.dq&&void0!==t.co&&void0===t.qi){varn=newge;returnn.setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),n}if(void0===t.kty&&void0!==t.n&&void0!==t.e&&void0!==t.d&&void0===t.p){varn=newge;returnn.setPrivate(t.n,t.e,t.d),n}if(void0!==t.p&&void0!==t.q&&void0!==t.g&&void0!==t.y&&void0===t.x){varn=newMn.crypto.DSA;returnn.setPublic(t.p,t.q,t.g,t.y),n}if(void0!==t.p&&void0!==t.q&&void0!==t.g&&void0!==t.y&&void0!==t.x){varn=newMn.crypto.DSA;returnn.setPrivate(t.p,t.q,t.g,t.y,t.x),n}if("RSA"===t.kty&&void0!==t.n&&void0!==t.e&&void0===t.d){varn=newge;returnn.setPublic(ma(t.n),ma(t.e)),n}if("RSA"===t.kty&&void0!==t.n&&void0!==t.e&&void0!==t.d&&void0!==t.p&&void0!==t.q&&void0!==t.dp&&void0!==t.dq&&void0!==t.qi){varn=newge;returnn.setPrivateEx(ma(t.n),ma(t.e),ma(t.d),ma(t.p),ma(t.q),ma(t.dp),ma(t.dq),ma(t.qi)),n}if("RSA"===t.kty&&void0!==t.n&&void0!==t.e&&void0!==t.d){varn=newge;returnn.setPrivate(ma(t.n),ma(t.e),ma(t.d)),n}if("EC"===t.kty&&void0!==t.crv&&void0!==t.x&&void0!==t.y&&void0===t.d){varr=newMn.crypto.ECDSA({curve:t.crv}),i=r.ecparams.keylen/4,s=("0000000000"+ma(t.x)).slice(-i),u=("0000000000"+ma(t.y)).slice(-i),l="04"+s+u;returnr.setPublicKeyHex(l),r}if("EC"===t.kty&&void0!==t.crv&&void0!==t.x&&void0!==t.y&&void0!==t.d){varr=newMn.crypto.ECDSA({curve:t.crv}),i=r.ecparams.keylen/4,s=("0000000000"+ma(t.x)).slice(-i),u=("0000000000"+ma(t.y)).slice(-i),l="04"+s+u,c=("0000000000"+ma(t.d)).slice(-i);returnr.setPublicKeyHex(l),r.setPrivateKeyHex(c),r}if("pkcs5prv"===a){varp,n,h=t,d=vn;if(p=d.getPosArrayOfChildren_AtObj(h,0),9===p.length)n=newge,n.readPrivateKeyFromASN1HexString(t);elseif(6===p.length)n=newMn.crypto.DSA,n.readPKCS5PrvKeyHex(h);else{if(!(p.length>2&&"04"===h.substr(p[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";n=newMn.crypto.ECDSA,n.readPKCS5PrvKeyHex(h)}returnn}if("pkcs8prv"===a){varn=In.get
},Mn.jws.IntDate.getZulu=function(t){vare=t.match(/(\d+)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)Z/);if(e){vara=e[1],n=parseInt(a);if(4==a.length);else{if(2!=a.length)throw"malformed year string";if(50<=n&&n<100)n=1900+n;else{if(!(0<=n&&n<50))throw"malformed year string for UTCTime";n=2e3+n}}varr=parseInt(e[2])-1,o=parseInt(e[3]),i=parseInt(e[4]),s=parseInt(e[5]),u=parseInt(e[6]),l=newDate(Date.UTC(n,r,o,i,s,u));return~~(l/1e3)}throw"unsupported format: "+t},Mn.jws.IntDate.getNow=function(){vart=~~(newDate/1e3);returnt},Mn.jws.IntDate.intDate2UTCString=function(t){vare=newDate(1e3*t);returne.toUTCString()},Mn.jws.IntDate.intDate2Zulu=function(t){vare=newDate(1e3*t),a=("0000"+e.getUTCFullYear()).slice(-4),n=("00"+(e.getUTCMonth()+1)).slice(-2),r=("00"+e.getUTCDate()).slice(-2),o=("00"+e.getUTCHours()).slice(-2),i=("00"+e.getUTCMinutes()).slice(-2),s=("00"+e.getUTCSeconds()).slice(-2);returna+n+r+o+i+s+"Z"},"undefined"!=typeofMn&&Mn||(Mn={}),"undefined"!=typeofMn.jws&&Mn.jws||(Mn.jws={}),Mn.jws.JWSJS=function(){vart=Mn.jws.JWS,e=Mn.jws.JWS;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void0,this.aSignature=[]},this.initWithJWS=function(t){this.init();vare=t.split(".");if(3!=e.length)throw"malformed input JWS";this.aHeader.push(e[0]),this.sPayload=e[1],this.aSignature.push(e[2])},this.addSignature=function(t,e,a,n){if(void0===this.sPayload||null===this.sPayload)throw"there's no JSON-JS signature to add.";varr=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{varo=Mn.jws.JWS.sign(t,e,this.sPayload,a,n),i=o.split(".");i[0],i[2];this.aHeader.push(i[0]),this.aSignature.push(i[2])}catch(t){throwthis.aHeader.length>r&&this.aHeader.pop(),this.aSignature.length>r&&this.aSignature.pop(),"addSignature failed: "+t}},this.addSignatureByHeaderKey=function(t,e){vara=Cn(this.sPayload),n=newMn.jws.JWS;n.generateJWSByP1PrvKey(t,a,e);this.aHeader.push(n.parsedJWS.headB64U),this.aSignature.push(n.parsedJWS.sigvalB64U)},this.addSignatureByHeaderPayloadKey=function(t,e,a){varn=newMn.jws.JWS;n.generateJWSByP1PrvKey(t,e,a);this.aHeader.push(n.parsedJWS.headB64U),this.sPayload=n.parsedJWS.payloadB64U,this.aSignature.push(n.parsedJWS.sigvalB64U)},this.verifyAll=function(t){if(this.aHeader.length!==t.length||this.aSignature.length!==t.length)return!1;for(vare=0;e<t.length;e++){vara=t[e];if(2!==a.length)return!1;varn=this.verifyNth(e,a[0],a[1]);if(n===!1)return!1}return!0},this.verifyNth=function(t,a,n){if(this.aHeader.length<=t||this.aSignature.length<=t)return!1;varr=this.aHeader[t],o=this.aSignature[t],i=r+"."+this.sPayload+"."+o,s=!1;try{s=e.verify(i,a,n)}catch(t){return!1}returns},this.verifyWithCerts=function(t){if(this.aHeader.length!=t.length)throw"num headers does not match with num certs";if(this.aSignature.length!=t.length)throw"num signatures does not match with num certs";for(vare=this.sPayload,a="",n=0;n<t.length;n++){varr=t[n],o=this.aHeader[n],i=this.aSignature[n],s=o+"."+e+"."+i,u=newMn.jws.JWS;try{varl=u.verifyJWSByPemX509Cert(s,r);1!=l&&(a+=n+1+"th signature unmatch. ")}catch(t){a+=n+1+"th signature fail("+t+"). "}}if(""==a)return1;throwa},this.readJWSJS=function(e){if("string"==typeofe){vara=t.readSafeJSONString(e);if(null==a)throw"argument is not safe JSON object string";this.aHeader=a.headers,this.sPayload=a.payload,this.aSignature=a.signatures}elsetry{if(!(e.headers.length>0))throw"malformed header";if(this.aHeader=e.headers,"string"!=typeofe.payload)throw"malformed signatures";if(this.sPayload=e.payload,!(e.signatures.length>0))throw"malformed signatures";this.signatures=e.signatures}catch(t){throw"malformed JWS-JS JSON object: "+t}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return0==this.aHeader.length?1:0}},e.SecureRandom=he,e.rng_seed_time=le,e.BigInteger=o,e.RSAKey=ge,e.ECDSA=Mn.crypto.ECDSA,e.DSA=Mn.crypto.DSA,e.Signature=Mn.crypto.Signature,e.MessageDigest=Mn.crypto.MessageDigest,e.Mac=M
functione(){this.init()}functiona(t){this.expression=t}functionn(){}functionr(t){arguments.length>0&&this.init(t)}functiono(t){arguments.length>0&&this.init(t)}functioni(t,e){arguments.length>0&&this.init(t,e)}functions(t,e){arguments.length>0&&this.init(t,e)}functionu(t,e){arguments.length>0&&this.init(t,e)}functionl(t,e){arguments.length>0&&this.init(t,e)}functionc(t,e){arguments.length>0&&this.init(t,e)}functionp(t,e){arguments.length>0&&this.init(t,e)}functionh(t,e){arguments.length>0&&this.init(t,e)}functiond(t,e){arguments.length>0&&this.init(t,e)}functionm(t,e){arguments.length>0&&this.init(t,e)}functionf(t,e){arguments.length>0&&this.init(t,e)}functionb(t,e){arguments.length>0&&this.init(t,e)}functiong(t,e){arguments.length>0&&this.init(t,e)}functiony(t,e){arguments.length>0&&this.init(t,e)}functionw(t,e){arguments.length>0&&this.init(t,e)}functionA(t,e){arguments.length>0&&this.init(t,e)}functionv(t,e,a){arguments.length>0&&this.init(t,e,a)}functionM(t){for(;t&&t.parentNode;)t=t.parentNode;returnt}functionS(t,e){arguments.length>0&&this.init(t,e)}functionC(t,e,a){arguments.length>0&&this.init(t,e,a)}function_(t,e){arguments.length>0&&this.init(t,e)}functionx(t){arguments.length>0&&this.init(t)}functionI(t,e){arguments.length>0&&this.init(t,e)}functionE(t){arguments.length>0&&this.init(t)}functionD(t){arguments.length>0&&this.init(t)}functionT(t){for(vare=t.split("e-"),a=e[0].replace(".",""),n=Number(e[1]),r=0;r<n-1;r+=1)a="0"+a;return"0."+a}functionF(t){for(vare=t.split("e"),a=e[0].replace(".",""),n=Number(e[1]),r=n+1-a.length,o=0;o<r;o+=1)a+="0";returna}functionk(t){arguments.length>0&&this.init(t)}functionL(t){this.init(t)}functionN(t,e){if(t===e)return0;if(t.compareDocumentPosition){vara=t.compareDocumentPosition(e);return1&a?1:10&a?1:20&a?-1:0}for(varn=0,r=0,o=t;null!=o;o=o.parentNode||o.ownerElement)n++;for(vari=e;null!=i;i=i.parentNode||i.ownerElement)r++;if(n>r){for(;n>r;)t=t.parentNode||t.ownerElement,n--;if(t===e)return1}elseif(r>n){for(;r>n;)e=e.parentNode||e.ownerElement,r--;if(t===e)return-1}for(vars=t.parentNode||t.ownerElement,u=e.parentNode||e.ownerElement;s!==u;)t=s,e=u,s=t.parentNode||t.ownerElement,u=e.parentNode||e.ownerElement;varl=G.isAttribute(t),c=G.isAttribute(e);if(l&&!c)return-1;if(!l&&c)return1;if(s)for(varp=l?s.attributes:s.childNodes,h=p.length,d=0;d<h;d+=1){varm=p[d];if(m===t)return-1;if(m===e)return1}thrownewError("Unexpected: could not determine node order")}functionU(){this.init()}functionB(t,e,a){this.isXPathNamespace=!0,this.ownerDocument=a.ownerDocument,this.nodeName="#namespace",this.prefix=t,this.localName=t,this.namespaceURI=e,this.nodeValue=e,this.ownerElement=a,this.nodeType=B.XPATH_NAMESPACE_NODE}functionz(t,e,a){this.variableResolver=null!=t?t:newO,this.namespaceResolver=null!=e?e:newR,this.functionResolver=null!=a?a:newP}functionO(){}functionP(t){this.thisArg=null!=t?t:V,this.functions=newObject,this.addStandardFunctions()}functionR(){}functionH(t,e,a){this.xpath=a.parse(t),this.context=newz,this.context.namespaceResolver=newW(e)}functionW(t){this.xpathNSResolver=t}functionj(t){this.node=t,this.namespaceResolver=newR}functionq(t,e){switch(e==q.ANY_TYPE&&(t.constructor===E?e=q.STRING_TYPE:t.constructor===D?e=q.NUMBER_TYPE:t.constructor===k?e=q.BOOLEAN_TYPE:t.constructor===U&&(e=q.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=e,e){caseq.NUMBER_TYPE:returnvoid(this.numberValue=t.numberValue());caseq.STRING_TYPE:returnvoid(this.stringValue=t.stringValue());caseq.BOOLEAN_TYPE:returnvoid(this.booleanValue=t.booleanValue());caseq.ANY_UNORDERED_NODE_TYPE:caseq.FIRST_ORDERED_NODE_TYPE:if(t.constructor===U)returnvoid(this.singleNodeValue=t.first());break;caseq.UNORDERED_NODE_ITERATOR_TYPE:caseq.ORDERED_NODE_ITERATOR_TYPE:if(t.constructor===U)returnthis.invalidIteratorState=!1,this.nodes=t.toArray(),void(this.iteratorIndex=0);break;caseq.UNORDERED_NODE_SNAPSHOT_TYPE:caseq.ORDERED_NODE_SNAPSHOT_TYPE:if(t.constructor===U)returnthis.nodes=t.toArray(),void(this.snapshotLength=this.nodes.length)}thr
y.superclass=i.prototype,y.prototype.init=function(t,e){y.superclass.init.call(this,t,e)},y.prototype.evaluate=function(t){returnthis.lhs.evaluate(t).number().div(this.rhs.evaluate(t).number())},y.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},w.prototype=newi,w.prototype.constructor=w,w.superclass=i.prototype,w.prototype.init=function(t,e){w.superclass.init.call(this,t,e)},w.prototype.evaluate=function(t){returnthis.lhs.evaluate(t).number().mod(this.rhs.evaluate(t).number())},w.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},A.prototype=newi,A.prototype.constructor=A,A.superclass=i.prototype,A.prototype.init=function(t,e){A.superclass.init.call(this,t,e)},A.prototype.evaluate=function(t){returnthis.lhs.evaluate(t).nodeset().union(this.rhs.evaluate(t).nodeset())},A.prototype.toString=function(){returnthis.lhs.toString()+" | "+this.rhs.toString()},v.prototype=newn,v.prototype.constructor=v,v.superclass=n.prototype,v.prototype.init=function(t,e,a){v.superclass.init.call(this),this.filter=t,this.filterPredicates=e,this.locationPath=a},v.prototype.evaluate=function(t){vare,n=newz;if(n.variableResolver=t.variableResolver,n.functionResolver=t.functionResolver,n.namespaceResolver=t.namespaceResolver,n.expressionContextNode=t.expressionContextNode,n.virtualRoot=t.virtualRoot,n.caseInsensitive=t.caseInsensitive,null==this.filter)e=[t.contextNode];else{varr=this.filter.evaluate(t);if(!G.instance_of(r,U)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)thrownewError("Path expression filter must evaluate to a nodset if predicates or location path are used");returnr}if(e=r.toUnsortedArray(),null!=this.filterPredicates)for(varo=0;o<this.filterPredicates.length;o++){vari=this.filterPredicates[o],s=[];for(n.contextSize=e.length,n.contextPosition=1;n.contextPosition<=n.contextSize;n.contextPosition++)n.contextNode=e[n.contextPosition-1],this.predicateMatches(i,n)&&s.push(n.contextNode);e=s}}if(null!=this.locationPath){if(this.locationPath.absolute)if(9!=e[0].nodeType)if(null!=n.virtualRoot)e=[n.virtualRoot];elseif(null==e[0].ownerDocument){for(varu=e[0];null!=u.parentNode;)u=u.parentNode;e=[u]}elsee=[e[0].ownerDocument];elsee=[e[0]];for(varl=0;l<this.locationPath.steps.length;l++){for(varc=this.locationPath.steps[l],s=[],o=0;o<e.length;o++)switch(n.contextNode=e[o],c.axis){caseC.ANCESTOR:if(n.contextNode===n.virtualRoot)break;varp;for(p=2==n.contextNode.nodeType?this.getOwnerElement(n.contextNode):n.contextNode.parentNode;null!=p&&(c.nodeTest.matches(p,n)&&s.push(p),p!==n.virtualRoot);)p=p.parentNode;break;caseC.ANCESTORORSELF:for(varp=n.contextNode;null!=p&&(c.nodeTest.matches(p,n)&&s.push(p),p!==n.virtualRoot);p=2==p.nodeType?this.getOwnerElement(p):p.parentNode);break;caseC.ATTRIBUTE:varh=n.contextNode.attributes;if(null!=h)for(vard=0;d<h.length;d++){varp=h.item(d);c.nodeTest.matches(p,n)&&s.push(p)}break;caseC.CHILD:for(varp=n.contextNode.firstChild;null!=p;p=p.nextSibling)c.nodeTest.matches(p,n)&&s.push(p);break;caseC.DESCENDANT:for(varm=[n.contextNode.firstChild];m.length>0;)for(varp=m.pop();null!=p;)c.nodeTest.matches(p,n)&&s.push(p),null!=p.firstChild?(m.push(p.nextSibling),p=p.firstChild):p=p.nextSibling;break;caseC.DESCENDANTORSELF:c.nodeTest.matches(n.contextNode,n)&&s.push(n.contextNode);for(varm=[n.contextNode.firstChild];m.length>0;)for(varp=m.pop();null!=p;)c.nodeTest.matches(p,n)&&s.push(p),null!=p.firstChild?(m.push(p.nextSibling),p=p.firstChild):p=p.nextSibling;break;caseC.FOLLOWING:if(n.contextNode===n.virtualRoot)break;varm=[];null!=n.contextNode.firstChild?m.unshift(n.contextNode.firstChild):m.unshift(n.contextNode.nextSibling);for(varp=n.contextNode.parentNode;null!=p&&9!=p.nodeType&&p!==n.virtualRoot;p=p.parentNode)m.unshift(p.nextSibling);dofor(varp=m.pop();null!=p;)c.nodeTest.matches(p,n)&&s.push(p),null!=p.firstChild?(m.push(p.nextSibling),p=p.firstChild):p=p.nextSibling;while(m.length>0);break;caseC.FOLLOWINGSIBLING:if(n.contextNode===n.vi
for(o=0;o<l;++o)c[Z[o]]=b(t,3);if(!I)for(o=l,l=c.length;o<l;++o)c[Z[o]]=0;a=i(c),n=new(I?Uint8Array:Array)(s),r=new(I?Uint8Array:Array)(u),t.J=0,t.s(i(e.call(t,s,a,n)),i(e.call(t,u,a,r)))}functionw(t){this.input=t,this.c=0,this.t=[],this.D=!1}functionA(t){if("string"==typeoft){vare,a,n=t.split("");for(e=0,a=n.length;e<a;e++)n[e]=(255&n[e].charCodeAt(0))>>>0;t=n}for(varr,o=1,i=0,s=t.length,u=0;0<s;){r=1024<s?1024:s,s-=r;doo+=t[u++],i+=o;while(--r);o%=65521,i%=65521}return(i<<16|o)>>>0}functionv(e,a){varn,r;switch(this.input=e,this.c=0,!a&&(a={})||(a.index&&(this.c=a.index),a.verify&&(this.$=a.verify)),n=e[this.c++],r=e[this.c++],15&n){casedt:this.method=dt;break;default:t(Error("unsupported compression method"))}0!==((n<<8)+r)%31&&t(Error("invalid fcheck flag:"+((n<<8)+r)%31)),32&r&&t(Error("fdict flag is not supported")),this.L=newf(e,{index:this.c,bufferSize:a.bufferSize,bufferType:a.bufferType,resize:a.resize})}functionM(t,e){this.input=t,this.a=new(I?Uint8Array:Array)(32768),this.k=mt.o;vara,n={};!e&&(e={})||"number"!=typeofe.compressionType||(this.k=e.compressionType);for(aine)n[a]=e[a];n.outputBuffer=this.a,this.K=news(this.input,n)}functionS(t,a){varn,r,o,i;if(Object.keys)n=Object.keys(a);elsefor(rinn=[],o=0,a)n[o++]=r;for(o=0,i=n.length;o<i;++o)r=n[o],e(t+"."+r,a[r])}varC=void0,_=!0,x=this,I="undefined"!=typeofUint8Array&&"undefined"!=typeofUint16Array&&"undefined"!=typeofUint32Array&&"undefined"!=typeofDataView;a.prototype.f=function(){vart,e=this.buffer,a=e.length,n=new(I?Uint8Array:Array)(a<<1);if(I)n.set(e);elsefor(t=0;t<a;++t)n[t]=e[t];returnthis.buffer=n},a.prototype.d=function(t,e,a){varn,r=this.buffer,o=this.index,i=this.m,s=r[o];if(a&&1<e&&(t=8<e?(L[255&t]<<24|L[t>>>8&255]<<16|L[t>>>16&255]<<8|L[t>>>24&255])>>32-e:L[t]>>8-e),8>e+i)s=s<<e|t,i+=e;elsefor(n=0;n<e;++n)s=s<<1|t>>e-n-1&1,8===++i&&(i=0,r[o++]=L[s],s=0,o===r.length&&(r=this.f()));r[o]=s,this.buffer=r,this.m=i,this.index=o},a.prototype.finish=function(){vart,e=this.buffer,a=this.index;return0<this.m&&(e[a]<<=8-this.m,e[a]=L[e[a]],a++),I?t=e.subarray(0,a):(e.length=a,t=e),t};varE,D=new(I?Uint8Array:Array)(256);for(E=0;256>E;++E){for(varT=E,F=T,k=7,T=T>>>1;T;T>>>=1)F<<=1,F|=1&T,--k;D[E]=(F<<k&255)>>>0}varL=D,N=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,109081