/**
 * CyberChef - The Cyber Swiss Army Knife
 *
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 *
 *   Copyright 2016 Crown Copyright
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */!function(A){var I={};function g(i){if(I[i])return I[i].exports;var t=I[i]={i:i,l:!1,exports:{}};return A[i].call(t.exports,t,t.exports,g),t.l=!0,t.exports}g.m=A,g.c=I,g.d=function(A,I,i){g.o(A,I)||Object.defineProperty(A,I,{enumerable:!0,get:i})},g.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},g.t=function(A,I){if(1&I&&(A=g(A)),8&I)return A;if(4&I&&"object"==typeof A&&A&&A.__esModule)return A;var i=Object.create(null);if(g.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:A}),2&I&&"string"!=typeof A)for(var t in A)g.d(i,t,function(I){return A[I]}.bind(null,t));return i},g.n=function(A){var I=A&&A.__esModule?function(){return A.default}:function(){return A};return g.d(I,"a",I),I},g.o=function(A,I){return Object.prototype.hasOwnProperty.call(A,I)},g.p="",g(g.s=1404)}({0:function(A,I,g){"use strict";(function(A,i){g.d(I,"c",(function(){return u})),g.d(I,"d",(function(){return y})),g.d(I,"e",(function(){return l})),g.d(I,"a",(function(){return F}));var t=g(6),e=g.n(t),r=g(1),C=g.n(r),n=g(2),o=g.n(n),B=g(23),a=g.n(B),E=g(15),Q=g(16),s=g(28),h=g(27),c=function(){function I(){C()(this,I)}return o()(I,null,[{key:"chr",value:function(A){if(A>65535){A-=65536;var I=String.fromCharCode(A>>>10&1023|55296);return A=56320|1023&A,I+String.fromCharCode(A)}return String.fromCharCode(A)}},{key:"ord",value:function(A){if(2===A.length){var I=A.charCodeAt(0),g=A.charCodeAt(1);if(I>=55296&&I<56320&&g>=56320&&g<57344)return 1024*(I-55296)+g-56320+65536}return A.charCodeAt(0)}},{key:"padBytesRight",value:function(A,I){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=new Array(I);return i.fill(g),[...A].forEach((function(A,I){i[I]=A})),i}},{key:"truncate",value:function(A,I){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return A.length>I&&(A=A.slice(0,I-g.length)+g),A}},{key:"hex",value:function(A){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(A="string"==typeof A?I.ord(A):A).toString(16).padStart(g,"0")}},{key:"bin",value:function(A){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(A="string"==typeof A?I.ord(A):A).toString(2).padStart(g,"0")}},{key:"printable",value:function(A){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f()&&window.app&&!window.app.options.treatAsUtf8&&(A=I.byteArrayToChars(I.strToByteArray(A)));var i=/[\0-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,t=/[\x09-\x10\x0D\u2028\u2029]/g;return A=A.replace(i,"."),g||(A=A.replace(t,".")),A}},{key:"parseEscapedChars",value:function(A){return A.replace(/\\([bfnrtv'"]|[0-3][0-7]{2}|[0-7]{1,2}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]{1,6}\}|\\)/g,(function(A,I){switch(I[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(I,8));case"b":return"\b";case"t":return"\t";case"n":return"\n";case"v":return"\v";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"x":return String.fromCharCode(parseInt(I.substr(1),16));case"u":return"{"===I[1]?String.fromCodePoint(parseInt(I.slice(2,-1),16)):String.fromCharCode(parseInt(I.substr(1),16))}}))}},{key:"escapeRegex",value:function(A){return A.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(A){for(var g=[],i=0;i<A.length;i++)if(i<A.length-2&&"-"===A[i+1]&&"\\"!==A[i]){for(var t=I.ord(A[i]),e=I.ord(A[i+2]),r=t;r<=e;r++)g.push(I.chr(r));i+=2}else i<A.length-2&&"\\"===A[i]&&"-"===A[i+1]?(g.push("-"),i++):g.push(A[i]);return g}},{key:"convertToByteArray",value:function(A,g){switch(g.toLowerCase()){case"binary":return Object(h.a)(A);case"hex":return Object(Q.a)(A);case"decimal":return Object(s.a)(A);case"base64":return Object(E.a)(A,null,"byteArray");case"utf8":return I.strToUtf8ByteArray(A);case"latin1":default:return I.strToByteArray(A)}}},{key:"convertToByteString",value:function(A,g){switch(g.toLowerCase()){case"binary":return I.byteArrayToChars(Object(h.a)(A));case"hex":return I.byteArrayToChars(Object(Q.a)(A));case"decimal":return I.byteArrayToChars(Object(s.a)(A));case"base64":return I.byteArrayToChars(Object(E.a)(A,null,"byteArray"));case"utf8":return a.a.encode(A);case"latin1":default:return A}}},{key:"strToArrayBuffer",value:function(A){for(var g,i=new Uint8Array(A.length),t=A.length;t--;)if(g=A.charCodeAt(t),i[t]=g,g>255)return I.strToUtf8ArrayBuffer(A);return i.buffer}},{key:"strToUtf8ArrayBuffer",value:function(A){var g=a.a.encode(A);return A.length!==g.length&&(y()?self.setOption("attemptHighlight",!1):f()&&(window.app.options.attemptHighlight=!1)),I.strToArrayBuffer(g)}},{key:"strToByteArray",value:function(A){for(var g,i=new Array(A.length),t=A.length;t--;)if(g=A.charCodeAt(t),i[t]=g,g>255)return I.strToUtf8ByteArray(A);return i}},{key:"strToUtf8ByteArray",value:function(A){var g=a.a.encode(A);return A.length!==g.length&&(y()?self.setOption("attemptHighlight",!1):f()&&(window.app.options.attemptHighlight=!1)),I.strToByteArray(g)}},{key:"strToCharcode",value:function(A){for(var g=[],i=0;i<A.length;i++){var t=A.charCodeAt(i);if(i<A.length-1&&t>=55296&&t<56320){var e=A[i+1].charCodeAt(0);e>=56320&&e<57344&&(t=I.ord(A[i]+A[++i]))}g.push(t)}return g}},{key:"byteArrayToUtf8",value:function(A){var g=I.byteArrayToChars(A);try{var i=a.a.decode(g);return g.length!==i.length&&(y()?self.setOption("attemptHighlight",!1):f()&&(window.app.options.attemptHighlight=!1)),i}catch(A){return g}}},{key:"byteArrayToChars",value:function(A){if(!A)return"";for(var I="",g=0;g<A.length;)I+=String.fromCharCode(A[g++]);return I}},{key:"arrayBufferToStr",value:function(A){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=new Uint8Array(A);return g?I.byteArrayToUtf8(i):I.byteArrayToChars(i)}},{key:"calculateShannonEntropy",value:function(A){A instanceof ArrayBuffer&&(A=new Uint8Array(A));var I,g=[],i=new Array(256).fill(0);for(I=0;I<A.length;I++)i[A[I]]++;for(I=0;I<i.length;I++)i[I]>0&&g.push(i[I]/A.length);var t,e=0;for(I=0;I<g.length;I++)e+=(t=g[I])*Math.log(t)/Math.log(2);return-e}},{key:"parseCSV",value:function(A){var I,g,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[","],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],e=!1,r=!1,C="",n=[],o=[];A.length&&"\ufeff"===A[0]&&(A=A.substr(1));for(var B=0;B<A.length;B++)I=A[B],g=A[B+1]||"",e?(C+=I,e=!1):'"'!==I||r?'"'===I&&r?'"'===g?e=!0:r=!1:!r&&i.indexOf(I)>=0?(n.push(C),C=""):!r&&t.indexOf(I)>=0?(n.push(C),C="",o.push(n),n=[],t.indexOf(g)>=0&&g!==I&&B++):C+=I:r=!0;return n.length&&(n.push(C),o.push(n)),o}},{key:"stripHtmlTags",value:function(A){var I=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return I&&(A=A.replace(/<(script|style)[^>]*>.*<\/(script|style)>/gim,"")),A.replace(/<[^>]+>/g,"")}},{key:"escapeHtml",value:function(A){var I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;"};return A.replace(/[&<>"'/`]/g,(function(A){return I[A]}))}},{key:"unescapeHtml",value:function(A){var I={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/","&#x60;":"`"};return A.replace(/&#?x?[a-z0-9]{2,4};/gi,(function(A){return I[A]||A}))}},{key:"encodeURIFragment",value:function(A){var I={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(A=encodeURIComponent(A)).replace(/%[0-9A-F]{2}/g,(function(A){return I[A]||A}))}},{key:"generatePrettyRecipe",value:function(A){var I=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g="",i="",t="",e="",r="";return A.forEach((function(A){i=A.op.replace(/ /g,"_"),t=JSON.stringify(A.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),e=A.disabled?"/disabled":"",r=A.breakpoint?"/breakpoint":"",g+=`${i}(${t}${e}${r})`,I&&(g+="\n")})),g}},{key:"parseRecipeConfig",value:function(A){if(0===(A=A.trim()).length)return[];if("["===A[0])return JSON.parse(A);var I,g;A=A.replace(/\n/g,"");for(var i=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,t=[];I=i.exec(A);){g="["+(g=I[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var e={op:I[1].replace(/_/g," "),args:JSON.parse(g)};I[3]&&I[3].indexOf("disabled")>0&&(e.disabled=!0),I[3]&&I[3].indexOf("breakpoint")>0&&(e.breakpoint=!0),t.push(e)}return t}},{key:"displayFilesAsHTML",value:function(A){var g,i,t,r,C;return e.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:g=function(A){return`<div class='card' style='white-space: normal;'>\n                    <div class='card-header'>\n                        <h6 class="mb-0">\n                            ${I.escapeHtml(A.name)}\n                        </h6>\n                    </div>\n                </div>`},i=function(A,g){if(g.startsWith("image")){var i="data:";return i+=g+";","<img style='max-width: 100%;' src='"+(i+="base64,"+Object(E.b)(A))+"'>"}return`<pre>${I.escapeHtml(I.arrayBufferToStr(A.buffer))}</pre>`},t=function(A,g){var t,r,C,n;return e.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,e.a.awrap(I.readFile(A));case 2:return t=o.sent,r=new Blob([t],{type:A.type||"octet/stream"}),C=URL.createObjectURL(r),n=`<div class='card' style='white-space: normal;'>\n                    <div class='card-header' id='heading${g}'>\n                        <h6 class='mb-0'>\n                            <a class='collapsed'\n                                data-toggle='collapse'\n                                href='#collapse${g}'\n                                aria-expanded='false'\n                                aria-controls='collapse${g}'\n                                title="Show/hide contents of '${I.escapeHtml(A.name)}'">\n                                ${I.escapeHtml(A.name)}</a>\n                            <span class='float-right' style="margin-top: -3px">\n                                ${A.size.toLocaleString()} bytes\n                                <a title="Download ${I.escapeHtml(A.name)}"\n                                    href="${C}"\n                                    download="${I.escapeHtml(A.name)}"\n                                    data-toggle="tooltip">\n                                    <i class="material-icons" style="vertical-align: bottom">save</i>\n                                </a>\n                                <a title="Move to input"\n                                    href="#"\n                                    blob-url="${C}"\n                                    file-name="${I.escapeHtml(A.name)}"\n                                    class="extract-file"\n                                    data-toggle="tooltip">\n                                    <i class="material-icons" style="vertical-align: bottom">open_in_browser</i>\n                                </a>\n                            </span>\n                        </h6>\n                    </div>\n                    <div id='collapse${g}' class='collapse' aria-labelledby='heading${g}' data-parent="#files">\n                        <div class='card-body'>\n                            ${i(t,A.type)}\n                        </div>\n                    </div>\n                </div>`,o.abrupt("return",n);case 7:case"end":return o.stop()}}))},r=`<div style='padding: 5px; white-space: normal;'>\n                ${A.length} file(s) found\n            </div><div id="files" style="padding: 20px">`,C=0;case 5:if(!(C<A.length)){n.next=17;break}if(!A[C].name.endsWith("/")){n.next=10;break}r+=g(A[C]),n.next=14;break;case 10:return n.t0=r,n.next=13,e.a.awrap(t(A[C],C));case 13:r=n.t0+=n.sent;case 14:C++,n.next=5;break;case 17:return n.abrupt("return",r+="</div>");case 18:case"end":return n.stop()}}))}},{key:"parseURIParams",value:function(A){if(""===A)return{};"?"!==A[0]&&"#"!==A[0]||(A=A.substr(1));for(var I=A.split("&"),g={},i=0;i<I.length;i++){var t=I[i].split("=");2!==t.length?g[I[i]]=!0:g[t[0]]=decodeURIComponent(t[1].replace(/\+/g," "))}return g}},{key:"readFile",value:function(I){return u()?A.from(I).buffer:new Promise((function(A,g){var i=new FileReader,t=new Uint8Array(I.size),e=0,r=function(){if(e>=I.size)A(t);else{var g=I.slice(e,e+10485760);i.readAsArrayBuffer(g)}};i.onload=function(A){t.set(new Uint8Array(i.result),e),e+=10485760,r()},i.onerror=function(A){g(i.error.message)},r()}))}},{key:"readFileSync",value:function(A){if(!u())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(A.data).buffer}},{key:"mod",value:function(A,I){return(A%I+I)%I}},{key:"gcd",value:function(A,g){return g?I.gcd(g,A%g):A}},{key:"modInv",value:function(A,I){A%=I;for(var g=1;g<I;g++)if(A*g%26==1)return g}},{key:"charRep",value:function(A){return{Space:" ",Percent:"%",Comma:",","Semi-colon":";",Colon:":",Tab:"\t","Line feed":"\n",CRLF:"\r\n","Forward slash":"/",Backslash:"\\","0x":"0x","\\x":"\\x","Nothing (separate chars)":"",None:""}[A]}},{key:"regexRep",value:function(A){return{Space:/\s+/g,Percent:/%/g,Comma:/,/g,"Semi-colon":/;/g,Colon:/:/g,"Line feed":/\n/g,CRLF:/\r\n/g,"Forward slash":/\//g,Backslash:/\\/g,"0x":/0x/g,"\\x":/\\x/g,None:/\s+/g}[A]}}]),I}();function u(){return void 0!==i&&null!=i.versions&&null!=i.versions.node}function f(){return"object"==typeof window}function y(){return"function"==typeof importScripts}function l(A){y()?self.sendStatusMessage(A):f()?app.alert(A,1e4):u()&&console.debug(A)}I.b=c,Array.prototype.unique=function(){for(var A={},I=[],g=0,i=this.length;g<i;g++)Object.prototype.hasOwnProperty.call(A,this[g])||(I.push(this[g]),A[this[g]]=1);return I},Array.prototype.max=function(){return Math.max.apply(null,this)},Array.prototype.min=function(){return Math.min.apply(null,this)},Array.prototype.sum=function(){return this.reduce((function(A,I){return A+I}),0)},Array.prototype.equals=function(A){if(!A)return!1;var I=this.length;if(I!==A.length)return!1;for(;I--;)if(this[I]!==A[I])return!1;return!0},String.prototype.count=function(A){return this.split(A).length-1};var w={};function F(A,I,g,i,t){return function(){clearTimeout(w[g]),w[g]=setTimeout((function(){A.apply(i,t)}),I)}}String.prototype.padStart||(String.prototype.padStart=function(A,I){return A>>=0,I=String(void 0!==I?I:" "),this.length>A?String(this):((A-=this.length)>I.length&&(I+=I.repeat(A/I.length)),I.slice(0,A)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(A,I){return A>>=0,I=String(void 0!==I?I:" "),this.length>A?String(this):((A-=this.length)>I.length&&(I+=I.repeat(A/I.length)),String(this)+I.slice(0,A))})}).call(this,g(11).Buffer,g(25))},1:function(A,I){A.exports=function(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}},11:function(A,I,g){"use strict";(function(A){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var i=g(40),t=g(41),e=g(42);function r(){return n.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function C(A,I){if(r()<I)throw new RangeError("Invalid typed array length");return n.TYPED_ARRAY_SUPPORT?(A=new Uint8Array(I)).__proto__=n.prototype:(null===A&&(A=new n(I)),A.length=I),A}function n(A,I,g){if(!(n.TYPED_ARRAY_SUPPORT||this instanceof n))return new n(A,I,g);if("number"==typeof A){if("string"==typeof I)throw new Error("If encoding is specified then the first argument must be a string");return a(this,A)}return o(this,A,I,g)}function o(A,I,g,i){if("number"==typeof I)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&I instanceof ArrayBuffer?function(A,I,g,i){if(I.byteLength,g<0||I.byteLength<g)throw new RangeError("'offset' is out of bounds");if(I.byteLength<g+(i||0))throw new RangeError("'length' is out of bounds");I=void 0===g&&void 0===i?new Uint8Array(I):void 0===i?new Uint8Array(I,g):new Uint8Array(I,g,i);n.TYPED_ARRAY_SUPPORT?(A=I).__proto__=n.prototype:A=E(A,I);return A}(A,I,g,i):"string"==typeof I?function(A,I,g){"string"==typeof g&&""!==g||(g="utf8");if(!n.isEncoding(g))throw new TypeError('"encoding" must be a valid string encoding');var i=0|s(I,g),t=(A=C(A,i)).write(I,g);t!==i&&(A=A.slice(0,t));return A}(A,I,g):function(A,I){if(n.isBuffer(I)){var g=0|Q(I.length);return 0===(A=C(A,g)).length?A:(I.copy(A,0,0,g),A)}if(I){if("undefined"!=typeof ArrayBuffer&&I.buffer instanceof ArrayBuffer||"length"in I)return"number"!=typeof I.length||(i=I.length)!=i?C(A,0):E(A,I);if("Buffer"===I.type&&e(I.data))return E(A,I.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(A,I)}function B(A){if("number"!=typeof A)throw new TypeError('"size" argument must be a number');if(A<0)throw new RangeError('"size" argument must not be negative')}function a(A,I){if(B(I),A=C(A,I<0?0:0|Q(I)),!n.TYPED_ARRAY_SUPPORT)for(var g=0;g<I;++g)A[g]=0;return A}function E(A,I){var g=I.length<0?0:0|Q(I.length);A=C(A,g);for(var i=0;i<g;i+=1)A[i]=255&I[i];return A}function Q(A){if(A>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|A}function s(A,I){if(n.isBuffer(A))return A.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(A)||A instanceof ArrayBuffer))return A.byteLength;"string"!=typeof A&&(A=""+A);var g=A.length;if(0===g)return 0;for(var i=!1;;)switch(I){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":case void 0:return q(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*g;case"hex":return g>>>1;case"base64":return T(A).length;default:if(i)return q(A).length;I=(""+I).toLowerCase(),i=!0}}function h(A,I,g){var i=!1;if((void 0===I||I<0)&&(I=0),I>this.length)return"";if((void 0===g||g>this.length)&&(g=this.length),g<=0)return"";if((g>>>=0)<=(I>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return k(this,I,g);case"utf8":case"utf-8":return d(this,I,g);case"ascii":return G(this,I,g);case"latin1":case"binary":return m(this,I,g);case"base64":return S(this,I,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,I,g);default:if(i)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),i=!0}}function c(A,I,g){var i=A[I];A[I]=A[g],A[g]=i}function u(A,I,g,i,t){if(0===A.length)return-1;if("string"==typeof g?(i=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,isNaN(g)&&(g=t?0:A.length-1),g<0&&(g=A.length+g),g>=A.length){if(t)return-1;g=A.length-1}else if(g<0){if(!t)return-1;g=0}if("string"==typeof I&&(I=n.from(I,i)),n.isBuffer(I))return 0===I.length?-1:f(A,I,g,i,t);if("number"==typeof I)return I&=255,n.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?t?Uint8Array.prototype.indexOf.call(A,I,g):Uint8Array.prototype.lastIndexOf.call(A,I,g):f(A,[I],g,i,t);throw new TypeError("val must be string, number or Buffer")}function f(A,I,g,i,t){var e,r=1,C=A.length,n=I.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(A.length<2||I.length<2)return-1;r=2,C/=2,n/=2,g/=2}function o(A,I){return 1===r?A[I]:A.readUInt16BE(I*r)}if(t){var B=-1;for(e=g;e<C;e++)if(o(A,e)===o(I,-1===B?0:e-B)){if(-1===B&&(B=e),e-B+1===n)return B*r}else-1!==B&&(e-=e-B),B=-1}else for(g+n>C&&(g=C-n),e=g;e>=0;e--){for(var a=!0,E=0;E<n;E++)if(o(A,e+E)!==o(I,E)){a=!1;break}if(a)return e}return-1}function y(A,I,g,i){g=Number(g)||0;var t=A.length-g;i?(i=Number(i))>t&&(i=t):i=t;var e=I.length;if(e%2!=0)throw new TypeError("Invalid hex string");i>e/2&&(i=e/2);for(var r=0;r<i;++r){var C=parseInt(I.substr(2*r,2),16);if(isNaN(C))return r;A[g+r]=C}return r}function l(A,I,g,i){return x(q(I,A.length-g),A,g,i)}function w(A,I,g,i){return x(function(A){for(var I=[],g=0;g<A.length;++g)I.push(255&A.charCodeAt(g));return I}(I),A,g,i)}function F(A,I,g,i){return w(A,I,g,i)}function D(A,I,g,i){return x(T(I),A,g,i)}function p(A,I,g,i){return x(function(A,I){for(var g,i,t,e=[],r=0;r<A.length&&!((I-=2)<0);++r)g=A.charCodeAt(r),i=g>>8,t=g%256,e.push(t),e.push(i);return e}(I,A.length-g),A,g,i)}function S(A,I,g){return 0===I&&g===A.length?i.fromByteArray(A):i.fromByteArray(A.slice(I,g))}function d(A,I,g){g=Math.min(A.length,g);for(var i=[],t=I;t<g;){var e,r,C,n,o=A[t],B=null,a=o>239?4:o>223?3:o>191?2:1;if(t+a<=g)switch(a){case 1:o<128&&(B=o);break;case 2:128==(192&(e=A[t+1]))&&(n=(31&o)<<6|63&e)>127&&(B=n);break;case 3:e=A[t+1],r=A[t+2],128==(192&e)&&128==(192&r)&&(n=(15&o)<<12|(63&e)<<6|63&r)>2047&&(n<55296||n>57343)&&(B=n);break;case 4:e=A[t+1],r=A[t+2],C=A[t+3],128==(192&e)&&128==(192&r)&&128==(192&C)&&(n=(15&o)<<18|(63&e)<<12|(63&r)<<6|63&C)>65535&&n<1114112&&(B=n)}null===B?(B=65533,a=1):B>65535&&(B-=65536,i.push(B>>>10&1023|55296),B=56320|1023&B),i.push(B),t+=a}return function(A){var I=A.length;if(I<=U)return String.fromCharCode.apply(String,A);var g="",i=0;for(;i<I;)g+=String.fromCharCode.apply(String,A.slice(i,i+=U));return g}(i)}I.Buffer=n,I.SlowBuffer=function(A){+A!=A&&(A=0);return n.alloc(+A)},I.INSPECT_MAX_BYTES=50,n.TYPED_ARRAY_SUPPORT=void 0!==A.TYPED_ARRAY_SUPPORT?A.TYPED_ARRAY_SUPPORT:function(){try{var A=new Uint8Array(1);return A.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===A.foo()&&"function"==typeof A.subarray&&0===A.subarray(1,1).byteLength}catch(A){return!1}}(),I.kMaxLength=r(),n.poolSize=8192,n._augment=function(A){return A.__proto__=n.prototype,A},n.from=function(A,I,g){return o(null,A,I,g)},n.TYPED_ARRAY_SUPPORT&&(n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0})),n.alloc=function(A,I,g){return function(A,I,g,i){return B(I),I<=0?C(A,I):void 0!==g?"string"==typeof i?C(A,I).fill(g,i):C(A,I).fill(g):C(A,I)}(null,A,I,g)},n.allocUnsafe=function(A){return a(null,A)},n.allocUnsafeSlow=function(A){return a(null,A)},n.isBuffer=function(A){return!(null==A||!A._isBuffer)},n.compare=function(A,I){if(!n.isBuffer(A)||!n.isBuffer(I))throw new TypeError("Arguments must be Buffers");if(A===I)return 0;for(var g=A.length,i=I.length,t=0,e=Math.min(g,i);t<e;++t)if(A[t]!==I[t]){g=A[t],i=I[t];break}return g<i?-1:i<g?1:0},n.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(A,I){if(!e(A))throw new TypeError('"list" argument must be an Array of Buffers');if(0===A.length)return n.alloc(0);var g;if(void 0===I)for(I=0,g=0;g<A.length;++g)I+=A[g].length;var i=n.allocUnsafe(I),t=0;for(g=0;g<A.length;++g){var r=A[g];if(!n.isBuffer(r))throw new TypeError('"list" argument must be an Array of Buffers');r.copy(i,t),t+=r.length}return i},n.byteLength=s,n.prototype._isBuffer=!0,n.prototype.swap16=function(){var A=this.length;if(A%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var I=0;I<A;I+=2)c(this,I,I+1);return this},n.prototype.swap32=function(){var A=this.length;if(A%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var I=0;I<A;I+=4)c(this,I,I+3),c(this,I+1,I+2);return this},n.prototype.swap64=function(){var A=this.length;if(A%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var I=0;I<A;I+=8)c(this,I,I+7),c(this,I+1,I+6),c(this,I+2,I+5),c(this,I+3,I+4);return this},n.prototype.toString=function(){var A=0|this.length;return 0===A?"":0===arguments.length?d(this,0,A):h.apply(this,arguments)},n.prototype.equals=function(A){if(!n.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A||0===n.compare(this,A)},n.prototype.inspect=function(){var A="",g=I.INSPECT_MAX_BYTES;return this.length>0&&(A=this.toString("hex",0,g).match(/.{2}/g).join(" "),this.length>g&&(A+=" ... ")),"<Buffer "+A+">"},n.prototype.compare=function(A,I,g,i,t){if(!n.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(void 0===I&&(I=0),void 0===g&&(g=A?A.length:0),void 0===i&&(i=0),void 0===t&&(t=this.length),I<0||g>A.length||i<0||t>this.length)throw new RangeError("out of range index");if(i>=t&&I>=g)return 0;if(i>=t)return-1;if(I>=g)return 1;if(this===A)return 0;for(var e=(t>>>=0)-(i>>>=0),r=(g>>>=0)-(I>>>=0),C=Math.min(e,r),o=this.slice(i,t),B=A.slice(I,g),a=0;a<C;++a)if(o[a]!==B[a]){e=o[a],r=B[a];break}return e<r?-1:r<e?1:0},n.prototype.includes=function(A,I,g){return-1!==this.indexOf(A,I,g)},n.prototype.indexOf=function(A,I,g){return u(this,A,I,g,!0)},n.prototype.lastIndexOf=function(A,I,g){return u(this,A,I,g,!1)},n.prototype.write=function(A,I,g,i){if(void 0===I)i="utf8",g=this.length,I=0;else if(void 0===g&&"string"==typeof I)i=I,g=this.length,I=0;else{if(!isFinite(I))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");I|=0,isFinite(g)?(g|=0,void 0===i&&(i="utf8")):(i=g,g=void 0)}var t=this.length-I;if((void 0===g||g>t)&&(g=t),A.length>0&&(g<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var e=!1;;)switch(i){case"hex":return y(this,A,I,g);case"utf8":case"utf-8":return l(this,A,I,g);case"ascii":return w(this,A,I,g);case"latin1":case"binary":return F(this,A,I,g);case"base64":return D(this,A,I,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p(this,A,I,g);default:if(e)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),e=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function G(A,I,g){var i="";g=Math.min(A.length,g);for(var t=I;t<g;++t)i+=String.fromCharCode(127&A[t]);return i}function m(A,I,g){var i="";g=Math.min(A.length,g);for(var t=I;t<g;++t)i+=String.fromCharCode(A[t]);return i}function k(A,I,g){var i=A.length;(!I||I<0)&&(I=0),(!g||g<0||g>i)&&(g=i);for(var t="",e=I;e<g;++e)t+=K(A[e]);return t}function Y(A,I,g){for(var i=A.slice(I,g),t="",e=0;e<i.length;e+=2)t+=String.fromCharCode(i[e]+256*i[e+1]);return t}function M(A,I,g){if(A%1!=0||A<0)throw new RangeError("offset is not uint");if(A+I>g)throw new RangeError("Trying to access beyond buffer length")}function N(A,I,g,i,t,e){if(!n.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>t||I<e)throw new RangeError('"value" argument is out of bounds');if(g+i>A.length)throw new RangeError("Index out of range")}function R(A,I,g,i){I<0&&(I=65535+I+1);for(var t=0,e=Math.min(A.length-g,2);t<e;++t)A[g+t]=(I&255<<8*(i?t:1-t))>>>8*(i?t:1-t)}function b(A,I,g,i){I<0&&(I=4294967295+I+1);for(var t=0,e=Math.min(A.length-g,4);t<e;++t)A[g+t]=I>>>8*(i?t:3-t)&255}function v(A,I,g,i,t,e){if(g+i>A.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function H(A,I,g,i,e){return e||v(A,0,g,4),t.write(A,I,g,i,23,4),g+4}function L(A,I,g,i,e){return e||v(A,0,g,8),t.write(A,I,g,i,52,8),g+8}n.prototype.slice=function(A,I){var g,i=this.length;if((A=~~A)<0?(A+=i)<0&&(A=0):A>i&&(A=i),(I=void 0===I?i:~~I)<0?(I+=i)<0&&(I=0):I>i&&(I=i),I<A&&(I=A),n.TYPED_ARRAY_SUPPORT)(g=this.subarray(A,I)).__proto__=n.prototype;else{var t=I-A;g=new n(t,void 0);for(var e=0;e<t;++e)g[e]=this[e+A]}return g},n.prototype.readUIntLE=function(A,I,g){A|=0,I|=0,g||M(A,I,this.length);for(var i=this[A],t=1,e=0;++e<I&&(t*=256);)i+=this[A+e]*t;return i},n.prototype.readUIntBE=function(A,I,g){A|=0,I|=0,g||M(A,I,this.length);for(var i=this[A+--I],t=1;I>0&&(t*=256);)i+=this[A+--I]*t;return i},n.prototype.readUInt8=function(A,I){return I||M(A,1,this.length),this[A]},n.prototype.readUInt16LE=function(A,I){return I||M(A,2,this.length),this[A]|this[A+1]<<8},n.prototype.readUInt16BE=function(A,I){return I||M(A,2,this.length),this[A]<<8|this[A+1]},n.prototype.readUInt32LE=function(A,I){return I||M(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},n.prototype.readUInt32BE=function(A,I){return I||M(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},n.prototype.readIntLE=function(A,I,g){A|=0,I|=0,g||M(A,I,this.length);for(var i=this[A],t=1,e=0;++e<I&&(t*=256);)i+=this[A+e]*t;return i>=(t*=128)&&(i-=Math.pow(2,8*I)),i},n.prototype.readIntBE=function(A,I,g){A|=0,I|=0,g||M(A,I,this.length);for(var i=I,t=1,e=this[A+--i];i>0&&(t*=256);)e+=this[A+--i]*t;return e>=(t*=128)&&(e-=Math.pow(2,8*I)),e},n.prototype.readInt8=function(A,I){return I||M(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},n.prototype.readInt16LE=function(A,I){I||M(A,2,this.length);var g=this[A]|this[A+1]<<8;return 32768&g?4294901760|g:g},n.prototype.readInt16BE=function(A,I){I||M(A,2,this.length);var g=this[A+1]|this[A]<<8;return 32768&g?4294901760|g:g},n.prototype.readInt32LE=function(A,I){return I||M(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},n.prototype.readInt32BE=function(A,I){return I||M(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},n.prototype.readFloatLE=function(A,I){return I||M(A,4,this.length),t.read(this,A,!0,23,4)},n.prototype.readFloatBE=function(A,I){return I||M(A,4,this.length),t.read(this,A,!1,23,4)},n.prototype.readDoubleLE=function(A,I){return I||M(A,8,this.length),t.read(this,A,!0,52,8)},n.prototype.readDoubleBE=function(A,I){return I||M(A,8,this.length),t.read(this,A,!1,52,8)},n.prototype.writeUIntLE=function(A,I,g,i){(A=+A,I|=0,g|=0,i)||N(this,A,I,g,Math.pow(2,8*g)-1,0);var t=1,e=0;for(this[I]=255&A;++e<g&&(t*=256);)this[I+e]=A/t&255;return I+g},n.prototype.writeUIntBE=function(A,I,g,i){(A=+A,I|=0,g|=0,i)||N(this,A,I,g,Math.pow(2,8*g)-1,0);var t=g-1,e=1;for(this[I+t]=255&A;--t>=0&&(e*=256);)this[I+t]=A/e&255;return I+g},n.prototype.writeUInt8=function(A,I,g){return A=+A,I|=0,g||N(this,A,I,1,255,0),n.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[I]=255&A,I+1},n.prototype.writeUInt16LE=function(A,I,g){return A=+A,I|=0,g||N(this,A,I,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8):R(this,A,I,!0),I+2},n.prototype.writeUInt16BE=function(A,I,g){return A=+A,I|=0,g||N(this,A,I,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[I]=A>>>8,this[I+1]=255&A):R(this,A,I,!1),I+2},n.prototype.writeUInt32LE=function(A,I,g){return A=+A,I|=0,g||N(this,A,I,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[I+3]=A>>>24,this[I+2]=A>>>16,this[I+1]=A>>>8,this[I]=255&A):b(this,A,I,!0),I+4},n.prototype.writeUInt32BE=function(A,I,g){return A=+A,I|=0,g||N(this,A,I,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[I]=A>>>24,this[I+1]=A>>>16,this[I+2]=A>>>8,this[I+3]=255&A):b(this,A,I,!1),I+4},n.prototype.writeIntLE=function(A,I,g,i){if(A=+A,I|=0,!i){var t=Math.pow(2,8*g-1);N(this,A,I,g,t-1,-t)}var e=0,r=1,C=0;for(this[I]=255&A;++e<g&&(r*=256);)A<0&&0===C&&0!==this[I+e-1]&&(C=1),this[I+e]=(A/r>>0)-C&255;return I+g},n.prototype.writeIntBE=function(A,I,g,i){if(A=+A,I|=0,!i){var t=Math.pow(2,8*g-1);N(this,A,I,g,t-1,-t)}var e=g-1,r=1,C=0;for(this[I+e]=255&A;--e>=0&&(r*=256);)A<0&&0===C&&0!==this[I+e+1]&&(C=1),this[I+e]=(A/r>>0)-C&255;return I+g},n.prototype.writeInt8=function(A,I,g){return A=+A,I|=0,g||N(this,A,I,1,127,-128),n.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[I]=255&A,I+1},n.prototype.writeInt16LE=function(A,I,g){return A=+A,I|=0,g||N(this,A,I,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8):R(this,A,I,!0),I+2},n.prototype.writeInt16BE=function(A,I,g){return A=+A,I|=0,g||N(this,A,I,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[I]=A>>>8,this[I+1]=255&A):R(this,A,I,!1),I+2},n.prototype.writeInt32LE=function(A,I,g){return A=+A,I|=0,g||N(this,A,I,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8,this[I+2]=A>>>16,this[I+3]=A>>>24):b(this,A,I,!0),I+4},n.prototype.writeInt32BE=function(A,I,g){return A=+A,I|=0,g||N(this,A,I,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),n.TYPED_ARRAY_SUPPORT?(this[I]=A>>>24,this[I+1]=A>>>16,this[I+2]=A>>>8,this[I+3]=255&A):b(this,A,I,!1),I+4},n.prototype.writeFloatLE=function(A,I,g){return H(this,A,I,!0,g)},n.prototype.writeFloatBE=function(A,I,g){return H(this,A,I,!1,g)},n.prototype.writeDoubleLE=function(A,I,g){return L(this,A,I,!0,g)},n.prototype.writeDoubleBE=function(A,I,g){return L(this,A,I,!1,g)},n.prototype.copy=function(A,I,g,i){if(g||(g=0),i||0===i||(i=this.length),I>=A.length&&(I=A.length),I||(I=0),i>0&&i<g&&(i=g),i===g)return 0;if(0===A.length||0===this.length)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(g<0||g>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),A.length-I<i-g&&(i=A.length-I+g);var t,e=i-g;if(this===A&&g<I&&I<i)for(t=e-1;t>=0;--t)A[t+I]=this[t+g];else if(e<1e3||!n.TYPED_ARRAY_SUPPORT)for(t=0;t<e;++t)A[t+I]=this[t+g];else Uint8Array.prototype.set.call(A,this.subarray(g,g+e),I);return e},n.prototype.fill=function(A,I,g,i){if("string"==typeof A){if("string"==typeof I?(i=I,I=0,g=this.length):"string"==typeof g&&(i=g,g=this.length),1===A.length){var t=A.charCodeAt(0);t<256&&(A=t)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!n.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof A&&(A&=255);if(I<0||this.length<I||this.length<g)throw new RangeError("Out of range index");if(g<=I)return this;var e;if(I>>>=0,g=void 0===g?this.length:g>>>0,A||(A=0),"number"==typeof A)for(e=I;e<g;++e)this[e]=A;else{var r=n.isBuffer(A)?A:q(new n(A,i).toString()),C=r.length;for(e=0;e<g-I;++e)this[e+I]=r[e%C]}return this};var J=/[^+\/0-9A-Za-z-_]/g;function K(A){return A<16?"0"+A.toString(16):A.toString(16)}function q(A,I){var g;I=I||1/0;for(var i=A.length,t=null,e=[],r=0;r<i;++r){if((g=A.charCodeAt(r))>55295&&g<57344){if(!t){if(g>56319){(I-=3)>-1&&e.push(239,191,189);continue}if(r+1===i){(I-=3)>-1&&e.push(239,191,189);continue}t=g;continue}if(g<56320){(I-=3)>-1&&e.push(239,191,189),t=g;continue}g=65536+(t-55296<<10|g-56320)}else t&&(I-=3)>-1&&e.push(239,191,189);if(t=null,g<128){if((I-=1)<0)break;e.push(g)}else if(g<2048){if((I-=2)<0)break;e.push(g>>6|192,63&g|128)}else if(g<65536){if((I-=3)<0)break;e.push(g>>12|224,g>>6&63|128,63&g|128)}else{if(!(g<1114112))throw new Error("Invalid code point");if((I-=4)<0)break;e.push(g>>18|240,g>>12&63|128,g>>6&63|128,63&g|128)}}return e}function T(A){return i.toByteArray(function(A){if((A=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")}(A).replace(J,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function x(A,I,g,i){for(var t=0;t<i&&!(t+g>=I.length||t>=A.length);++t)I[t+g]=A[t];return t}}).call(this,g(26))},12:function(A,I,g){var i=g(44),t=g(45),e=g(46);A.exports=function(A,I){return i(A)||t(A,I)||e()}},13:function(A,I,g){"use strict";var i=g(6),t=g.n(i),e=g(1),r=g.n(e),C=g(2),n=g.n(C),o=g(0),B=g(4),a=g.n(B),E=g(3),Q=g.n(E),s=g(22),h=g.n(s),c=g(5),u=g.n(c);
/**
 * Custom error type for handling Dish type errors.
 * i.e. where the Dish cannot be successfully translated between types
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */
var f=function(A){function I(){var A;r()(this,I);for(var g=arguments.length,i=new Array(g),t=0;t<g;t++)i[t]=arguments[t];return(A=a()(this,Q()(I).call(this,...i))).type="DishError",Error.captureStackTrace&&Error.captureStackTrace(h()(A),I),A}return u()(I,A),I}(function(A){function I(){var I=Reflect.construct(A,Array.from(arguments));return Object.setPrototypeOf(I,Object.getPrototypeOf(this)),I}return I.prototype=Object.create(A.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(I,A):I.__proto__=A,I}(Error)),y=g(14),l=g.n(y),w=g(18),F=g(24),D=g.n(F),p=function(){function A(){r()(this,A)}return n()(A,null,[{key:"checkForValue",value:function(A){if(void 0===A)throw new Error("only use translation methods with .bind")}},{key:"toArrayBuffer",value:function(){throw new Error("toArrayBuffer has not been implemented")}},{key:"fromArrayBuffer",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];throw new Error("fromArrayBuffer has not been implemented")}}]),A}(),S=function(A){function I(){return r()(this,I),a()(this,Q()(I).apply(this,arguments))}return u()(I,A),n()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){I.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}]),I}(p),d=function(A){function I(){return r()(this,I),a()(this,Q()(I).apply(this,arguments))}return u()(I,A),n()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value=l.a.isBigNumber(this.value)?o.b.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){I.checkForValue(this.value);try{this.value=new l.a(o.b.arrayBufferToStr(this.value,!A))}catch(A){this.value=new l.a(NaN)}}}]),I}(p),U=function(A){function I(){return r()(this,I),a()(this,Q()(I).apply(this,arguments))}return u()(I,A),n()(I,null,[{key:"toArrayBuffer",value:function(){var A=this;if(I.checkForValue(this.value),!Object(o.c)())return new Promise((function(I,g){o.b.readFile(A.value).then((function(I){return A.value=I.buffer})).then(I).catch(g)}));this.value=o.b.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){I.checkForValue(this.value),this.value=new File(this.value,"unknown")}}]),I}(p),G=function(A){function I(){return r()(this,I),a()(this,Q()(I).apply(this,arguments))}return u()(I,A),n()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value=this.value?o.b.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){I.checkForValue(this.value),this.value=this.value?o.b.arrayBufferToStr(this.value,!A):""}}]),I}(p),m=function(A){function I(){return r()(this,I),a()(this,Q()(I).apply(this,arguments))}return u()(I,A),n()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value=this.value?o.b.strToArrayBuffer(o.b.unescapeHtml(o.b.stripHtmlTags(this.value,!0))):new ArrayBuffer}}]),I}(G),k=function(A){function I(){return r()(this,I),a()(this,Q()(I).apply(this,arguments))}return u()(I,A),n()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value=this.value?o.b.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){I.checkForValue(this.value),this.value=JSON.parse(o.b.arrayBufferToStr(this.value,!A))}}]),I}(p),Y=function(A){function I(){return r()(this,I),a()(this,Q()(I).apply(this,arguments))}return u()(I,A),n()(I,null,[{key:"toArrayBuffer",value:function(){return t.a.async((function(A){for(;;)switch(A.prev=A.next){case 0:if(I.checkForValue(this.value),!Object(o.c)()){A.next=5;break}this.value=this.value.map((function(A){return Uint8Array.from(A.data)})),A.next=8;break;case 5:return A.next=7,t.a.awrap(I.concatenateTypedArraysWithTypedElements(...this.value));case 7:this.value=A.sent;case 8:case"end":return A.stop()}}),null,this)}},{key:"fromArrayBuffer",value:function(){I.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:function(){var A,I,g,i,e,r,C,n,B,a,E,Q,s,h=arguments;return t.a.async((function(c){for(;;)switch(c.prev=c.next){case 0:for(A=0,I=h.length,g=new Array(I),i=0;i<I;i++)g[i]=h[i];for(e=0,r=g;e<r.length;e++)C=r[e],A+=C.size;n=new Uint8Array(A),B=0,a=0,E=g;case 6:if(!(a<E.length)){c.next=16;break}return Q=E[a],c.next=10,t.a.awrap(o.b.readFile(Q));case 10:s=c.sent,n.set(s,B),B+=s.length;case 13:a++,c.next=6;break;case 16:return c.abrupt("return",n);case 17:case"end":return c.stop()}}))}},{key:"concatenateTypedArrays",value:function(){for(var A=0,I=arguments.length,g=new Array(I),i=0;i<I;i++)g[i]=arguments[i];for(var t=0,e=g;t<e.length;t++){var r=e[t];A+=r.length}for(var C=new Uint8Array(A),n=0,o=0,B=g;o<B.length;o++){var a=B[o];C.set(a,n),n+=a.length}return C}}]),I}(p),M=function(A){function I(){return r()(this,I),a()(this,Q()(I).apply(this,arguments))}return u()(I,A),n()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value="number"==typeof this.value?o.b.strToArrayBuffer(this.value.toString()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){I.checkForValue(this.value),this.value=this.value?parseFloat(o.b.arrayBufferToStr(this.value,!A)):0}}]),I}(p),N=function(){function A(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(r()(this,A),this.value=new ArrayBuffer(0),this.type=A.ARRAY_BUFFER,I&&Object.prototype.hasOwnProperty.call(I,"value")&&Object.prototype.hasOwnProperty.call(I,"type"))this.set(I.value,I.type);else if(I&&null!==g)this.set(I,g);else if(I){var i=A.typeEnum(I.constructor.name);this.set(I,i)}}return n()(A,[{key:"get",value:function(I){var g=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"==typeof I&&(I=A.typeEnum(I)),this.type!==I?Object(o.c)()?(this._translate(I,i),this.value):new Promise((function(A,t){g._translate(I,i).then((function(){A(g.value)})).catch(t)})):this.value}},{key:"set",value:function(I,g){if("string"==typeof g&&(g=A.typeEnum(g)),D.a.debug("Dish type: "+A.enumLookup(g)),this.value=I,this.type=g,!this.valid()){var i=o.b.truncate(JSON.stringify(this.value),25);throw new f(`Data is not a valid ${A.enumLookup(g)}: ${i}`)}}},{key:"presentAs",value:function(A){var I=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=this.clone();return g.get(A,I)}},{key:"detectDishType",value:function(){var A=new Uint8Array(this.value.slice(0,2048)),I=Object(w.a)(A);return I.length&&I[0].mime&&"text/plain"!==!I[0].mime?I[0].mime:null}},{key:"getTitle",value:function(I){var g,i;return t.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:g="",e.t0=this.type,e.next=e.t0===A.FILE?4:e.t0===A.LIST_FILE?6:e.t0===A.JSON?8:e.t0===A.NUMBER?10:e.t0===A.BIG_NUMBER?10:e.t0===A.ARRAY_BUFFER?12:e.t0===A.BYTE_ARRAY?12:15;break;case 4:return g=this.value.name,e.abrupt("break",26);case 6:return g=`${this.value.length} file(s)`,e.abrupt("break",26);case 8:return g="application/json",e.abrupt("break",26);case 10:return g=this.value.toString(),e.abrupt("break",26);case 12:if(null===(g=this.detectDishType())){e.next=15;break}return e.abrupt("break",26);case 15:return e.prev=15,(i=this.clone()).value=i.value.slice(0,256),e.next=20,t.a.awrap(i.get(A.STRING));case 20:g=e.sent,e.next=26;break;case 23:e.prev=23,e.t1=e.catch(15),D.a.error(`${A.enumLookup(this.type)} cannot be sliced. ${e.t1}`);case 26:return e.abrupt("return",g.slice(0,I));case 27:case"end":return e.stop()}}),null,this,[[15,23]])}},{key:"valid",value:function(){switch(this.type){case A.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var I=0;I<this.value.length;I++)if("number"!=typeof this.value[I]||this.value[I]<0||this.value[I]>255)return!1;return!0;case A.STRING:case A.HTML:return"string"==typeof this.value;case A.NUMBER:return"number"==typeof this.value;case A.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case A.BIG_NUMBER:if(l.a.isBigNumber(this.value))return!0;if(Object.keys(this.value).sort().equals(["c","e","s"])){var g=new l.a;return g.c=this.value.c,g.e=this.value.e,g.s=this.value.s,this.value=g,!0}return!1;case A.JSON:return!0;case A.FILE:return this.value instanceof File;case A.LIST_FILE:return this.value instanceof Array&&this.value.reduce((function(A,I){return A&&I instanceof File}),!0);default:return!1}}},{key:"clone",value:function(){var I=new A;switch(this.type){case A.STRING:case A.HTML:case A.NUMBER:case A.BIG_NUMBER:I.set(this.value,this.type);break;case A.BYTE_ARRAY:case A.JSON:I.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case A.ARRAY_BUFFER:I.set(this.value.slice(0),this.type);break;case A.FILE:I.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case A.LIST_FILE:I.set(this.value.map((function(A){return new File([A],A.name,{type:A.type,lastModified:A.lastModified})})),this.type);break;default:throw new f("Cannot clone Dish, unknown type")}return I}},{key:"_translate",value:function(I){var g=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(D.a.debug(`Translating Dish from ${A.enumLookup(this.type)} to ${A.enumLookup(I)}`),!Object(o.c)())return new Promise((function(i,t){g._toArrayBuffer().then((function(){return g.type=A.ARRAY_BUFFER})).then((function(){g._fromArrayBuffer(I),i()})).catch(t)}));this._toArrayBuffer(),this.type=A.ARRAY_BUFFER,this._fromArrayBuffer(I,i)}},{key:"_toArrayBuffer",value:function(){var I=this,g={browser:{[A.STRING]:function(){return Promise.resolve(G.toArrayBuffer.bind(I)())},[A.NUMBER]:function(){return Promise.resolve(M.toArrayBuffer.bind(I)())},[A.HTML]:function(){return Promise.resolve(m.toArrayBuffer.bind(I)())},[A.ARRAY_BUFFER]:function(){return Promise.resolve()},[A.BIG_NUMBER]:function(){return Promise.resolve(d.toArrayBuffer.bind(I)())},[A.JSON]:function(){return Promise.resolve(k.toArrayBuffer.bind(I)())},[A.FILE]:function(){return U.toArrayBuffer.bind(I)()},[A.LIST_FILE]:function(){return Promise.resolve(Y.toArrayBuffer.bind(I)())},[A.BYTE_ARRAY]:function(){return Promise.resolve(S.toArrayBuffer.bind(I)())}},node:{[A.STRING]:function(){return G.toArrayBuffer.bind(I)()},[A.NUMBER]:function(){return M.toArrayBuffer.bind(I)()},[A.HTML]:function(){return m.toArrayBuffer.bind(I)()},[A.ARRAY_BUFFER]:function(){},[A.BIG_NUMBER]:function(){return d.toArrayBuffer.bind(I)()},[A.JSON]:function(){return k.toArrayBuffer.bind(I)()},[A.FILE]:function(){return U.toArrayBuffer.bind(I)()},[A.LIST_FILE]:function(){return Y.toArrayBuffer.bind(I)()},[A.BYTE_ARRAY]:function(){return S.toArrayBuffer.bind(I)()}}};try{return g[Object(o.c)()?"node":"browser"][this.type]()}catch(I){throw new f(`Error translating from ${A.enumLookup(this.type)} to ArrayBuffer: ${I}`)}}},{key:"_fromArrayBuffer",value:function(I,g){var i=this,t={[A.STRING]:function(){return G.fromArrayBuffer.bind(i)(g)},[A.NUMBER]:function(){return M.fromArrayBuffer.bind(i)(g)},[A.HTML]:function(){return m.fromArrayBuffer.bind(i)(g)},[A.ARRAY_BUFFER]:function(){},[A.BIG_NUMBER]:function(){return d.fromArrayBuffer.bind(i)(g)},[A.JSON]:function(){return k.fromArrayBuffer.bind(i)(g)},[A.FILE]:function(){return U.fromArrayBuffer.bind(i)()},[A.LIST_FILE]:function(){return Y.fromArrayBuffer.bind(i)()},[A.BYTE_ARRAY]:function(){return S.fromArrayBuffer.bind(i)()}};try{t[I](),this.type=I}catch(g){throw new f(`Error translating from ArrayBuffer to ${A.enumLookup(I)}: ${g}`)}}},{key:"size",get:function(){switch(this.type){case A.BYTE_ARRAY:case A.STRING:case A.HTML:return this.value.length;case A.NUMBER:case A.BIG_NUMBER:return this.value.toString().length;case A.ARRAY_BUFFER:return this.value.byteLength;case A.JSON:return JSON.stringify(this.value).length;case A.FILE:return this.value.size;case A.LIST_FILE:return this.value.reduce((function(A,I){return A+I.size}),0);default:return-1}}}],[{key:"typeEnum",value:function(I){switch(I.toLowerCase()){case"bytearray":case"byte array":return A.BYTE_ARRAY;case"string":return A.STRING;case"number":return A.NUMBER;case"html":return A.HTML;case"arraybuffer":case"array buffer":return A.ARRAY_BUFFER;case"bignumber":case"big number":return A.BIG_NUMBER;case"json":case"object":return A.JSON;case"file":return A.FILE;case"list<file>":return A.LIST_FILE;default:throw new f("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(I){switch(I){case A.BYTE_ARRAY:return"byteArray";case A.STRING:return"string";case A.NUMBER:return"number";case A.HTML:return"html";case A.ARRAY_BUFFER:return"ArrayBuffer";case A.BIG_NUMBER:return"BigNumber";case A.JSON:return"JSON";case A.FILE:return"File";case A.LIST_FILE:return"List<File>";default:throw new f("Invalid data type enum. No matching type.")}}}]),A}();N.BYTE_ARRAY=0,N.STRING=1,N.NUMBER=2,N.HTML=3,N.ARRAY_BUFFER=4,N.BIG_NUMBER=5,N.JSON=6,N.FILE=7,N.LIST_FILE=8;I.a=N},14:function(A,I,g){var i;!function(t){"use strict";var e,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,C=Math.ceil,n=Math.floor,o="[BigNumber Error] ",B=o+"Number primitive has more than 15 significant digits: ",a=1e14,E=14,Q=9007199254740991,s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,c=1e9;function u(A){var I=0|A;return A>0||A===I?I:I-1}function f(A){for(var I,g,i=1,t=A.length,e=A[0]+"";i<t;){for(I=A[i++]+"",g=E-I.length;g--;I="0"+I);e+=I}for(t=e.length;48===e.charCodeAt(--t););return e.slice(0,t+1||1)}function y(A,I){var g,i,t=A.c,e=I.c,r=A.s,C=I.s,n=A.e,o=I.e;if(!r||!C)return null;if(g=t&&!t[0],i=e&&!e[0],g||i)return g?i?0:-C:r;if(r!=C)return r;if(g=r<0,i=n==o,!t||!e)return i?0:!t^g?1:-1;if(!i)return n>o^g?1:-1;for(C=(n=t.length)<(o=e.length)?n:o,r=0;r<C;r++)if(t[r]!=e[r])return t[r]>e[r]^g?1:-1;return n==o?0:n>o^g?1:-1}function l(A,I,g,i){if(A<I||A>g||A!==n(A))throw Error(o+(i||"Argument")+("number"==typeof A?A<I||A>g?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A))}function w(A){var I=A.c.length-1;return u(A.e/E)==I&&A.c[I]%2!=0}function F(A,I){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(I<0?"e":"e+")+I}function D(A,I,g){var i,t;if(I<0){for(t=g+".";++I;t+=g);A=t+A}else if(++I>(i=A.length)){for(t=g,I-=i;--I;t+=g);A+=t}else I<i&&(A=A.slice(0,I)+"."+A.slice(I));return A}(e=function A(I){var g,i,t,e,p,S,d,U,G,m=T.prototype={constructor:T,toString:null,valueOf:null},k=new T(1),Y=20,M=4,N=-7,R=21,b=-1e7,v=1e7,H=!1,L=1,J=0,K={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},q="0123456789abcdefghijklmnopqrstuvwxyz";function T(A,I){var g,e,C,o,a,s,h,c,u=this;if(!(u instanceof T))return new T(A,I);if(null==I){if(A&&!0===A._isBigNumber)return u.s=A.s,void(!A.c||A.e>v?u.c=u.e=null:A.e<b?u.c=[u.e=0]:(u.e=A.e,u.c=A.c.slice()));if((s="number"==typeof A)&&0*A==0){if(u.s=1/A<0?(A=-A,-1):1,A===~~A){for(o=0,a=A;a>=10;a/=10,o++);return void(o>v?u.c=u.e=null:(u.e=o,u.c=[A]))}c=String(A)}else{if(!r.test(c=String(A)))return t(u,c,s);u.s=45==c.charCodeAt(0)?(c=c.slice(1),-1):1}(o=c.indexOf("."))>-1&&(c=c.replace(".","")),(a=c.search(/e/i))>0?(o<0&&(o=a),o+=+c.slice(a+1),c=c.substring(0,a)):o<0&&(o=c.length)}else{if(l(I,2,q.length,"Base"),10==I)return Z(u=new T(A),Y+u.e+1,M);if(c=String(A),s="number"==typeof A){if(0*A!=0)return t(u,c,s,I);if(u.s=1/A<0?(c=c.slice(1),-1):1,T.DEBUG&&c.replace(/^0\.0*|\./,"").length>15)throw Error(B+A)}else u.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1;for(g=q.slice(0,I),o=a=0,h=c.length;a<h;a++)if(g.indexOf(e=c.charAt(a))<0){if("."==e){if(a>o){o=h;continue}}else if(!C&&(c==c.toUpperCase()&&(c=c.toLowerCase())||c==c.toLowerCase()&&(c=c.toUpperCase()))){C=!0,a=-1,o=0;continue}return t(u,String(A),s,I)}s=!1,(o=(c=i(c,I,10,u.s)).indexOf("."))>-1?c=c.replace(".",""):o=c.length}for(a=0;48===c.charCodeAt(a);a++);for(h=c.length;48===c.charCodeAt(--h););if(c=c.slice(a,++h)){if(h-=a,s&&T.DEBUG&&h>15&&(A>Q||A!==n(A)))throw Error(B+u.s*A);if((o=o-a-1)>v)u.c=u.e=null;else if(o<b)u.c=[u.e=0];else{if(u.e=o,u.c=[],a=(o+1)%E,o<0&&(a+=E),a<h){for(a&&u.c.push(+c.slice(0,a)),h-=E;a<h;)u.c.push(+c.slice(a,a+=E));a=E-(c=c.slice(a)).length}else a-=h;for(;a--;c+="0");u.c.push(+c)}}else u.c=[u.e=0]}function x(A,I,g,i){var t,e,r,C,n;if(null==g?g=M:l(g,0,8),!A.c)return A.toString();if(t=A.c[0],r=A.e,null==I)n=f(A.c),n=1==i||2==i&&(r<=N||r>=R)?F(n,r):D(n,r,"0");else if(e=(A=Z(new T(A),I,g)).e,C=(n=f(A.c)).length,1==i||2==i&&(I<=e||e<=N)){for(;C<I;n+="0",C++);n=F(n,e)}else if(I-=r,n=D(n,e,"0"),e+1>C){if(--I>0)for(n+=".";I--;n+="0");}else if((I+=e-C)>0)for(e+1==C&&(n+=".");I--;n+="0");return A.s<0&&t?"-"+n:n}function V(A,I){for(var g,i=1,t=new T(A[0]);i<A.length;i++){if(!(g=new T(A[i])).s){t=g;break}I.call(t,g)&&(t=g)}return t}function W(A,I,g){for(var i=1,t=I.length;!I[--t];I.pop());for(t=I[0];t>=10;t/=10,i++);return(g=i+g*E-1)>v?A.c=A.e=null:g<b?A.c=[A.e=0]:(A.e=g,A.c=I),A}function Z(A,I,g,i){var t,e,r,o,B,Q,h,c=A.c,u=s;if(c){A:{for(t=1,o=c[0];o>=10;o/=10,t++);if((e=I-t)<0)e+=E,r=I,h=(B=c[Q=0])/u[t-r-1]%10|0;else if((Q=C((e+1)/E))>=c.length){if(!i)break A;for(;c.length<=Q;c.push(0));B=h=0,t=1,r=(e%=E)-E+1}else{for(B=o=c[Q],t=1;o>=10;o/=10,t++);h=(r=(e%=E)-E+t)<0?0:B/u[t-r-1]%10|0}if(i=i||I<0||null!=c[Q+1]||(r<0?B:B%u[t-r-1]),i=g<4?(h||i)&&(0==g||g==(A.s<0?3:2)):h>5||5==h&&(4==g||i||6==g&&(e>0?r>0?B/u[t-r]:0:c[Q-1])%10&1||g==(A.s<0?8:7)),I<1||!c[0])return c.length=0,i?(I-=A.e+1,c[0]=u[(E-I%E)%E],A.e=-I||0):c[0]=A.e=0,A;if(0==e?(c.length=Q,o=1,Q--):(c.length=Q+1,o=u[E-e],c[Q]=r>0?n(B/u[t-r]%u[r])*o:0),i)for(;;){if(0==Q){for(e=1,r=c[0];r>=10;r/=10,e++);for(r=c[0]+=o,o=1;r>=10;r/=10,o++);e!=o&&(A.e++,c[0]==a&&(c[0]=1));break}if(c[Q]+=o,c[Q]!=a)break;c[Q--]=0,o=1}for(e=c.length;0===c[--e];c.pop());}A.e>v?A.c=A.e=null:A.e<b&&(A.c=[A.e=0])}return A}function O(A){var I,g=A.e;return null===g?A.toString():(I=f(A.c),I=g<=N||g>=R?F(I,g):D(I,g,"0"),A.s<0?"-"+I:I)}return T.clone=A,T.ROUND_UP=0,T.ROUND_DOWN=1,T.ROUND_CEIL=2,T.ROUND_FLOOR=3,T.ROUND_HALF_UP=4,T.ROUND_HALF_DOWN=5,T.ROUND_HALF_EVEN=6,T.ROUND_HALF_CEIL=7,T.ROUND_HALF_FLOOR=8,T.EUCLID=9,T.config=T.set=function(A){var I,g;if(null!=A){if("object"!=typeof A)throw Error(o+"Object expected: "+A);if(A.hasOwnProperty(I="DECIMAL_PLACES")&&(l(g=A[I],0,c,I),Y=g),A.hasOwnProperty(I="ROUNDING_MODE")&&(l(g=A[I],0,8,I),M=g),A.hasOwnProperty(I="EXPONENTIAL_AT")&&((g=A[I])&&g.pop?(l(g[0],-c,0,I),l(g[1],0,c,I),N=g[0],R=g[1]):(l(g,-c,c,I),N=-(R=g<0?-g:g))),A.hasOwnProperty(I="RANGE"))if((g=A[I])&&g.pop)l(g[0],-c,-1,I),l(g[1],1,c,I),b=g[0],v=g[1];else{if(l(g,-c,c,I),!g)throw Error(o+I+" cannot be zero: "+g);b=-(v=g<0?-g:g)}if(A.hasOwnProperty(I="CRYPTO")){if((g=A[I])!==!!g)throw Error(o+I+" not true or false: "+g);if(g){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw H=!g,Error(o+"crypto unavailable");H=g}else H=g}if(A.hasOwnProperty(I="MODULO_MODE")&&(l(g=A[I],0,9,I),L=g),A.hasOwnProperty(I="POW_PRECISION")&&(l(g=A[I],0,c,I),J=g),A.hasOwnProperty(I="FORMAT")){if("object"!=typeof(g=A[I]))throw Error(o+I+" not an object: "+g);K=g}if(A.hasOwnProperty(I="ALPHABET")){if("string"!=typeof(g=A[I])||/^.$|[+-.\s]|(.).*\1/.test(g))throw Error(o+I+" invalid: "+g);q=g}}return{DECIMAL_PLACES:Y,ROUNDING_MODE:M,EXPONENTIAL_AT:[N,R],RANGE:[b,v],CRYPTO:H,MODULO_MODE:L,POW_PRECISION:J,FORMAT:K,ALPHABET:q}},T.isBigNumber=function(A){if(!A||!0!==A._isBigNumber)return!1;if(!T.DEBUG)return!0;var I,g,i=A.c,t=A.e,e=A.s;A:if("[object Array]"=={}.toString.call(i)){if((1===e||-1===e)&&t>=-c&&t<=c&&t===n(t)){if(0===i[0]){if(0===t&&1===i.length)return!0;break A}if((I=(t+1)%E)<1&&(I+=E),String(i[0]).length==I){for(I=0;I<i.length;I++)if((g=i[I])<0||g>=a||g!==n(g))break A;if(0!==g)return!0}}}else if(null===i&&null===t&&(null===e||1===e||-1===e))return!0;throw Error(o+"Invalid BigNumber: "+A)},T.maximum=T.max=function(){return V(arguments,m.lt)},T.minimum=T.min=function(){return V(arguments,m.gt)},T.random=(e=9007199254740992*Math.random()&2097151?function(){return n(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(A){var I,g,i,t,r,B=0,a=[],Q=new T(k);if(null==A?A=Y:l(A,0,c),t=C(A/E),H)if(crypto.getRandomValues){for(I=crypto.getRandomValues(new Uint32Array(t*=2));B<t;)(r=131072*I[B]+(I[B+1]>>>11))>=9e15?(g=crypto.getRandomValues(new Uint32Array(2)),I[B]=g[0],I[B+1]=g[1]):(a.push(r%1e14),B+=2);B=t/2}else{if(!crypto.randomBytes)throw H=!1,Error(o+"crypto unavailable");for(I=crypto.randomBytes(t*=7);B<t;)(r=281474976710656*(31&I[B])+1099511627776*I[B+1]+4294967296*I[B+2]+16777216*I[B+3]+(I[B+4]<<16)+(I[B+5]<<8)+I[B+6])>=9e15?crypto.randomBytes(7).copy(I,B):(a.push(r%1e14),B+=7);B=t/7}if(!H)for(;B<t;)(r=e())<9e15&&(a[B++]=r%1e14);for(t=a[--B],A%=E,t&&A&&(r=s[E-A],a[B]=n(t/r)*r);0===a[B];a.pop(),B--);if(B<0)a=[i=0];else{for(i=-1;0===a[0];a.splice(0,1),i-=E);for(B=1,r=a[0];r>=10;r/=10,B++);B<E&&(i-=E-B)}return Q.e=i,Q.c=a,Q}),T.sum=function(){for(var A=1,I=arguments,g=new T(I[0]);A<I.length;)g=g.plus(I[A++]);return g},i=function(){function A(A,I,g,i){for(var t,e,r=[0],C=0,n=A.length;C<n;){for(e=r.length;e--;r[e]*=I);for(r[0]+=i.indexOf(A.charAt(C++)),t=0;t<r.length;t++)r[t]>g-1&&(null==r[t+1]&&(r[t+1]=0),r[t+1]+=r[t]/g|0,r[t]%=g)}return r.reverse()}return function(I,i,t,e,r){var C,n,o,B,a,E,Q,s,h=I.indexOf("."),c=Y,u=M;for(h>=0&&(B=J,J=0,I=I.replace(".",""),E=(s=new T(i)).pow(I.length-h),J=B,s.c=A(D(f(E.c),E.e,"0"),10,t,"0123456789"),s.e=s.c.length),o=B=(Q=A(I,i,t,r?(C=q,"0123456789"):(C="0123456789",q))).length;0==Q[--B];Q.pop());if(!Q[0])return C.charAt(0);if(h<0?--o:(E.c=Q,E.e=o,E.s=e,Q=(E=g(E,s,c,u,t)).c,a=E.r,o=E.e),h=Q[n=o+c+1],B=t/2,a=a||n<0||null!=Q[n+1],a=u<4?(null!=h||a)&&(0==u||u==(E.s<0?3:2)):h>B||h==B&&(4==u||a||6==u&&1&Q[n-1]||u==(E.s<0?8:7)),n<1||!Q[0])I=a?D(C.charAt(1),-c,C.charAt(0)):C.charAt(0);else{if(Q.length=n,a)for(--t;++Q[--n]>t;)Q[n]=0,n||(++o,Q=[1].concat(Q));for(B=Q.length;!Q[--B];);for(h=0,I="";h<=B;I+=C.charAt(Q[h++]));I=D(I,o,C.charAt(0))}return I}}(),g=function(){function A(A,I,g){var i,t,e,r,C=0,n=A.length,o=I%h,B=I/h|0;for(A=A.slice();n--;)C=((t=o*(e=A[n]%h)+(i=B*e+(r=A[n]/h|0)*o)%h*h+C)/g|0)+(i/h|0)+B*r,A[n]=t%g;return C&&(A=[C].concat(A)),A}function I(A,I,g,i){var t,e;if(g!=i)e=g>i?1:-1;else for(t=e=0;t<g;t++)if(A[t]!=I[t]){e=A[t]>I[t]?1:-1;break}return e}function g(A,I,g,i){for(var t=0;g--;)A[g]-=t,t=A[g]<I[g]?1:0,A[g]=t*i+A[g]-I[g];for(;!A[0]&&A.length>1;A.splice(0,1));}return function(i,t,e,r,C){var o,B,Q,s,h,c,f,y,l,w,F,D,p,S,d,U,G,m=i.s==t.s?1:-1,k=i.c,Y=t.c;if(!(k&&k[0]&&Y&&Y[0]))return new T(i.s&&t.s&&(k?!Y||k[0]!=Y[0]:Y)?k&&0==k[0]||!Y?0*m:m/0:NaN);for(l=(y=new T(m)).c=[],m=e+(B=i.e-t.e)+1,C||(C=a,B=u(i.e/E)-u(t.e/E),m=m/E|0),Q=0;Y[Q]==(k[Q]||0);Q++);if(Y[Q]>(k[Q]||0)&&B--,m<0)l.push(1),s=!0;else{for(S=k.length,U=Y.length,Q=0,m+=2,(h=n(C/(Y[0]+1)))>1&&(Y=A(Y,h,C),k=A(k,h,C),U=Y.length,S=k.length),p=U,F=(w=k.slice(0,U)).length;F<U;w[F++]=0);G=Y.slice(),G=[0].concat(G),d=Y[0],Y[1]>=C/2&&d++;do{if(h=0,(o=I(Y,w,U,F))<0){if(D=w[0],U!=F&&(D=D*C+(w[1]||0)),(h=n(D/d))>1)for(h>=C&&(h=C-1),f=(c=A(Y,h,C)).length,F=w.length;1==I(c,w,f,F);)h--,g(c,U<f?G:Y,f,C),f=c.length,o=1;else 0==h&&(o=h=1),f=(c=Y.slice()).length;if(f<F&&(c=[0].concat(c)),g(w,c,F,C),F=w.length,-1==o)for(;I(Y,w,U,F)<1;)h++,g(w,U<F?G:Y,F,C),F=w.length}else 0===o&&(h++,w=[0]);l[Q++]=h,w[0]?w[F++]=k[p]||0:(w=[k[p]],F=1)}while((p++<S||null!=w[0])&&m--);s=null!=w[0],l[0]||l.splice(0,1)}if(C==a){for(Q=1,m=l[0];m>=10;m/=10,Q++);Z(y,e+(y.e=Q+B*E-1)+1,r,s)}else y.e=B,y.r=+s;return y}}(),p=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,d=/^\.([^.]+)$/,U=/^-?(Infinity|NaN)$/,G=/^\s*\+(?=[\w.])|^\s+|\s+$/g,t=function(A,I,g,i){var t,e=g?I:I.replace(G,"");if(U.test(e))A.s=isNaN(e)?null:e<0?-1:1;else{if(!g&&(e=e.replace(p,(function(A,I,g){return t="x"==(g=g.toLowerCase())?16:"b"==g?2:8,i&&i!=t?A:I})),i&&(t=i,e=e.replace(S,"$1").replace(d,"0.$1")),I!=e))return new T(e,t);if(T.DEBUG)throw Error(o+"Not a"+(i?" base "+i:"")+" number: "+I);A.s=null}A.c=A.e=null},m.absoluteValue=m.abs=function(){var A=new T(this);return A.s<0&&(A.s=1),A},m.comparedTo=function(A,I){return y(this,new T(A,I))},m.decimalPlaces=m.dp=function(A,I){var g,i,t,e=this;if(null!=A)return l(A,0,c),null==I?I=M:l(I,0,8),Z(new T(e),A+e.e+1,I);if(!(g=e.c))return null;if(i=((t=g.length-1)-u(this.e/E))*E,t=g[t])for(;t%10==0;t/=10,i--);return i<0&&(i=0),i},m.dividedBy=m.div=function(A,I){return g(this,new T(A,I),Y,M)},m.dividedToIntegerBy=m.idiv=function(A,I){return g(this,new T(A,I),0,1)},m.exponentiatedBy=m.pow=function(A,I){var g,i,t,e,r,B,a,Q,s=this;if((A=new T(A)).c&&!A.isInteger())throw Error(o+"Exponent not an integer: "+O(A));if(null!=I&&(I=new T(I)),r=A.e>14,!s.c||!s.c[0]||1==s.c[0]&&!s.e&&1==s.c.length||!A.c||!A.c[0])return Q=new T(Math.pow(+O(s),r?2-w(A):+O(A))),I?Q.mod(I):Q;if(B=A.s<0,I){if(I.c?!I.c[0]:!I.s)return new T(NaN);(i=!B&&s.isInteger()&&I.isInteger())&&(s=s.mod(I))}else{if(A.e>9&&(s.e>0||s.e<-1||(0==s.e?s.c[0]>1||r&&s.c[1]>=24e7:s.c[0]<8e13||r&&s.c[0]<=9999975e7)))return e=s.s<0&&w(A)?-0:0,s.e>-1&&(e=1/e),new T(B?1/e:e);J&&(e=C(J/E+2))}for(r?(g=new T(.5),B&&(A.s=1),a=w(A)):a=(t=Math.abs(+O(A)))%2,Q=new T(k);;){if(a){if(!(Q=Q.times(s)).c)break;e?Q.c.length>e&&(Q.c.length=e):i&&(Q=Q.mod(I))}if(t){if(0===(t=n(t/2)))break;a=t%2}else if(Z(A=A.times(g),A.e+1,1),A.e>14)a=w(A);else{if(0===(t=+O(A)))break;a=t%2}s=s.times(s),e?s.c&&s.c.length>e&&(s.c.length=e):i&&(s=s.mod(I))}return i?Q:(B&&(Q=k.div(Q)),I?Q.mod(I):e?Z(Q,J,M,void 0):Q)},m.integerValue=function(A){var I=new T(this);return null==A?A=M:l(A,0,8),Z(I,I.e+1,A)},m.isEqualTo=m.eq=function(A,I){return 0===y(this,new T(A,I))},m.isFinite=function(){return!!this.c},m.isGreaterThan=m.gt=function(A,I){return y(this,new T(A,I))>0},m.isGreaterThanOrEqualTo=m.gte=function(A,I){return 1===(I=y(this,new T(A,I)))||0===I},m.isInteger=function(){return!!this.c&&u(this.e/E)>this.c.length-2},m.isLessThan=m.lt=function(A,I){return y(this,new T(A,I))<0},m.isLessThanOrEqualTo=m.lte=function(A,I){return-1===(I=y(this,new T(A,I)))||0===I},m.isNaN=function(){return!this.s},m.isNegative=function(){return this.s<0},m.isPositive=function(){return this.s>0},m.isZero=function(){return!!this.c&&0==this.c[0]},m.minus=function(A,I){var g,i,t,e,r=this,C=r.s;if(I=(A=new T(A,I)).s,!C||!I)return new T(NaN);if(C!=I)return A.s=-I,r.plus(A);var n=r.e/E,o=A.e/E,B=r.c,Q=A.c;if(!n||!o){if(!B||!Q)return B?(A.s=-I,A):new T(Q?r:NaN);if(!B[0]||!Q[0])return Q[0]?(A.s=-I,A):new T(B[0]?r:3==M?-0:0)}if(n=u(n),o=u(o),B=B.slice(),C=n-o){for((e=C<0)?(C=-C,t=B):(o=n,t=Q),t.reverse(),I=C;I--;t.push(0));t.reverse()}else for(i=(e=(C=B.length)<(I=Q.length))?C:I,C=I=0;I<i;I++)if(B[I]!=Q[I]){e=B[I]<Q[I];break}if(e&&(t=B,B=Q,Q=t,A.s=-A.s),(I=(i=Q.length)-(g=B.length))>0)for(;I--;B[g++]=0);for(I=a-1;i>C;){if(B[--i]<Q[i]){for(g=i;g&&!B[--g];B[g]=I);--B[g],B[i]+=a}B[i]-=Q[i]}for(;0==B[0];B.splice(0,1),--o);return B[0]?W(A,B,o):(A.s=3==M?-1:1,A.c=[A.e=0],A)},m.modulo=m.mod=function(A,I){var i,t,e=this;return A=new T(A,I),!e.c||!A.s||A.c&&!A.c[0]?new T(NaN):!A.c||e.c&&!e.c[0]?new T(e):(9==L?(t=A.s,A.s=1,i=g(e,A,0,3),A.s=t,i.s*=t):i=g(e,A,0,L),(A=e.minus(i.times(A))).c[0]||1!=L||(A.s=e.s),A)},m.multipliedBy=m.times=function(A,I){var g,i,t,e,r,C,n,o,B,Q,s,c,f,y,l,w=this,F=w.c,D=(A=new T(A,I)).c;if(!(F&&D&&F[0]&&D[0]))return!w.s||!A.s||F&&!F[0]&&!D||D&&!D[0]&&!F?A.c=A.e=A.s=null:(A.s*=w.s,F&&D?(A.c=[0],A.e=0):A.c=A.e=null),A;for(i=u(w.e/E)+u(A.e/E),A.s*=w.s,(n=F.length)<(Q=D.length)&&(f=F,F=D,D=f,t=n,n=Q,Q=t),t=n+Q,f=[];t--;f.push(0));for(y=a,l=h,t=Q;--t>=0;){for(g=0,s=D[t]%l,c=D[t]/l|0,e=t+(r=n);e>t;)g=((o=s*(o=F[--r]%l)+(C=c*o+(B=F[r]/l|0)*s)%l*l+f[e]+g)/y|0)+(C/l|0)+c*B,f[e--]=o%y;f[e]=g}return g?++i:f.splice(0,1),W(A,f,i)},m.negated=function(){var A=new T(this);return A.s=-A.s||null,A},m.plus=function(A,I){var g,i=this,t=i.s;if(I=(A=new T(A,I)).s,!t||!I)return new T(NaN);if(t!=I)return A.s=-I,i.minus(A);var e=i.e/E,r=A.e/E,C=i.c,n=A.c;if(!e||!r){if(!C||!n)return new T(t/0);if(!C[0]||!n[0])return n[0]?A:new T(C[0]?i:0*t)}if(e=u(e),r=u(r),C=C.slice(),t=e-r){for(t>0?(r=e,g=n):(t=-t,g=C),g.reverse();t--;g.push(0));g.reverse()}for((t=C.length)-(I=n.length)<0&&(g=n,n=C,C=g,I=t),t=0;I;)t=(C[--I]=C[I]+n[I]+t)/a|0,C[I]=a===C[I]?0:C[I]%a;return t&&(C=[t].concat(C),++r),W(A,C,r)},m.precision=m.sd=function(A,I){var g,i,t,e=this;if(null!=A&&A!==!!A)return l(A,1,c),null==I?I=M:l(I,0,8),Z(new T(e),A,I);if(!(g=e.c))return null;if(i=(t=g.length-1)*E+1,t=g[t]){for(;t%10==0;t/=10,i--);for(t=g[0];t>=10;t/=10,i++);}return A&&e.e+1>i&&(i=e.e+1),i},m.shiftedBy=function(A){return l(A,-Q,Q),this.times("1e"+A)},m.squareRoot=m.sqrt=function(){var A,I,i,t,e,r=this,C=r.c,n=r.s,o=r.e,B=Y+4,a=new T("0.5");if(1!==n||!C||!C[0])return new T(!n||n<0&&(!C||C[0])?NaN:C?r:1/0);if(0==(n=Math.sqrt(+O(r)))||n==1/0?(((I=f(C)).length+o)%2==0&&(I+="0"),n=Math.sqrt(+I),o=u((o+1)/2)-(o<0||o%2),i=new T(I=n==1/0?"1e"+o:(I=n.toExponential()).slice(0,I.indexOf("e")+1)+o)):i=new T(n+""),i.c[0])for((n=(o=i.e)+B)<3&&(n=0);;)if(e=i,i=a.times(e.plus(g(r,e,B,1))),f(e.c).slice(0,n)===(I=f(i.c)).slice(0,n)){if(i.e<o&&--n,"9999"!=(I=I.slice(n-3,n+1))&&(t||"4999"!=I)){+I&&(+I.slice(1)||"5"!=I.charAt(0))||(Z(i,i.e+Y+2,1),A=!i.times(i).eq(r));break}if(!t&&(Z(e,e.e+Y+2,0),e.times(e).eq(r))){i=e;break}B+=4,n+=4,t=1}return Z(i,i.e+Y+1,M,A)},m.toExponential=function(A,I){return null!=A&&(l(A,0,c),A++),x(this,A,I,1)},m.toFixed=function(A,I){return null!=A&&(l(A,0,c),A=A+this.e+1),x(this,A,I)},m.toFormat=function(A,I,g){var i,t=this;if(null==g)null!=A&&I&&"object"==typeof I?(g=I,I=null):A&&"object"==typeof A?(g=A,A=I=null):g=K;else if("object"!=typeof g)throw Error(o+"Argument not an object: "+g);if(i=t.toFixed(A,I),t.c){var e,r=i.split("."),C=+g.groupSize,n=+g.secondaryGroupSize,B=g.groupSeparator||"",a=r[0],E=r[1],Q=t.s<0,s=Q?a.slice(1):a,h=s.length;if(n&&(e=C,C=n,n=e,h-=e),C>0&&h>0){for(e=h%C||C,a=s.substr(0,e);e<h;e+=C)a+=B+s.substr(e,C);n>0&&(a+=B+s.slice(e)),Q&&(a="-"+a)}i=E?a+(g.decimalSeparator||"")+((n=+g.fractionGroupSize)?E.replace(new RegExp("\\d{"+n+"}\\B","g"),"$&"+(g.fractionGroupSeparator||"")):E):a}return(g.prefix||"")+i+(g.suffix||"")},m.toFraction=function(A){var I,i,t,e,r,C,n,B,a,Q,h,c,u=this,y=u.c;if(null!=A&&(!(n=new T(A)).isInteger()&&(n.c||1!==n.s)||n.lt(k)))throw Error(o+"Argument "+(n.isInteger()?"out of range: ":"not an integer: ")+O(n));if(!y)return new T(u);for(I=new T(k),a=i=new T(k),t=B=new T(k),c=f(y),r=I.e=c.length-u.e-1,I.c[0]=s[(C=r%E)<0?E+C:C],A=!A||n.comparedTo(I)>0?r>0?I:a:n,C=v,v=1/0,n=new T(c),B.c[0]=0;Q=g(n,I,0,1),1!=(e=i.plus(Q.times(t))).comparedTo(A);)i=t,t=e,a=B.plus(Q.times(e=a)),B=e,I=n.minus(Q.times(e=I)),n=e;return e=g(A.minus(i),t,0,1),B=B.plus(e.times(a)),i=i.plus(e.times(t)),B.s=a.s=u.s,h=g(a,t,r*=2,M).minus(u).abs().comparedTo(g(B,i,r,M).minus(u).abs())<1?[a,t]:[B,i],v=C,h},m.toNumber=function(){return+O(this)},m.toPrecision=function(A,I){return null!=A&&l(A,1,c),x(this,A,I,2)},m.toString=function(A){var I,g=this,t=g.s,e=g.e;return null===e?t?(I="Infinity",t<0&&(I="-"+I)):I="NaN":(null==A?I=e<=N||e>=R?F(f(g.c),e):D(f(g.c),e,"0"):10===A?I=D(f((g=Z(new T(g),Y+e+1,M)).c),g.e,"0"):(l(A,2,q.length,"Base"),I=i(D(f(g.c),e,"0"),10,A,t,!0)),t<0&&g.c[0]&&(I="-"+I)),I},m.valueOf=m.toJSON=function(){return O(this)},m._isBigNumber=!0,null!=I&&T.set(I),T}()).default=e.BigNumber=e,void 0===(i=function(){return e}.call(I,g,I,A))||(A.exports=i)}()},1404:function(A,I,g){"use strict";g.r(I);var i=g(12),t=g.n(i),e=g(1),r=g.n(e),C=g(2),n=g.n(C),o=g(4),B=g.n(o),a=g(3),E=g.n(a),Q=g(5),s=g.n(Q),h=g(9),c=g(8),u=g(409),f=g.n(u),y=g(0),l=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Bzip2 Compress",A.module="Compression",A.description="Bzip2 is a compression library developed by Julian Seward (of GHC fame) that uses the Burrows-Wheeler algorithm. It only supports compressing single files and its compression is slow, however is more effective than Deflate (.gz & .zip).",A.infoURL="https://wikipedia.org/wiki/Bzip2",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Block size (100s of kb)",type:"number",value:9,min:1,max:9},{name:"Work factor",type:"number",value:30}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=t()(I,2),i=g[0],e=g[1];if(A.byteLength<=0)throw new c.a("Please provide an input.");return Object(y.d)()&&self.sendStatusMessage("Loading Bzip2..."),new Promise((function(I,g){f()().then((function(t){Object(y.d)()&&self.sendStatusMessage("Compressing data...");var r=new Uint8Array(A),C=t.compressBZ2(r,i,e);if(0!==C.error)g(new c.a(C.error_msg));else{var n=C.output;I(n.buffer.slice(n.byteOffset,n.byteLength+n.byteOffset))}}))}))}}]),I}(h.a),w=g(6),F=g.n(w),D=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Bzip2 Decompress",A.module="Compression",A.description="Decompresses data using the Bzip2 algorithm.",A.infoURL="https://wikipedia.org/wiki/Bzip2",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Use low-memory, slower decompression algorithm",type:"boolean",value:!1}],A.patterns=[{match:"^\\x42\\x5a\\x68",flags:"",args:[]}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g,i;return F.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:if(g=t()(I,1),i=g[0],!(A.byteLength<=0)){e.next=3;break}throw new c.a("Please provide an input.");case 3:return Object(y.d)()&&self.sendStatusMessage("Loading Bzip2..."),e.abrupt("return",new Promise((function(I,g){f()().then((function(t){Object(y.d)()&&self.sendStatusMessage("Decompressing data...");var e=new Uint8Array(A),r=t.decompressBZ2(e,i?1:0);if(0!==r.error)g(new c.a(r.error_msg));else{var C=r.output;I(C.buffer.slice(C.byteOffset,C.byteLength+C.byteOffset))}}))})));case 5:case"end":return e.stop()}}))}}]),I}(h.a),p=g(772),S=g.n(p).a.Zlib,d=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Gunzip",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with gzip headers.",A.infoURL="https://wikipedia.org/wiki/Gzip",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[],A.patterns=[{match:"^\\x1f\\x8b\\x08",flags:"",args:[]}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=new S.Gunzip(new Uint8Array(A));return new Uint8Array(g.decompress()).buffer}}]),I}(h.a),U=g(257),G=g.n(U),m=G.a.Zlib,k=["Dynamic Huffman Coding","Fixed Huffman Coding","None (Store)"],Y=["Adaptive","Block"],M={"Fixed Huffman Coding":m.Deflate.CompressionType.FIXED,"Dynamic Huffman Coding":m.Deflate.CompressionType.DYNAMIC,"None (Store)":m.Deflate.CompressionType.NONE},N=g(773),R=g.n(N).a.Zlib,b=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Gzip",A.module="Compression",A.description="Compresses data using the deflate algorithm with gzip headers.",A.infoURL="https://wikipedia.org/wiki/Gzip",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:k},{name:"Filename (optional)",type:"string",value:""},{name:"Comment (optional)",type:"string",value:""},{name:"Include file checksum",type:"boolean",value:!1}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=I[1],i=I[2],t={deflateOptions:{compressionType:M[I[0]]},flags:{fhcrc:I[3]}};g.length&&(t.flags.fname=!0,t.filename=g),i.length&&(t.flags.comment=!0,t.comment=i);var e=new R.Gzip(new Uint8Array(A),t),r=new Uint8Array(e.compress());return!t.flags.comment||16&r[3]||(r[3]|=16),r.buffer}}]),I}(h.a),v=g(774),H=g.n(v).a.Zlib,L={"Fixed Huffman Coding":H.RawDeflate.CompressionType.FIXED,"Dynamic Huffman Coding":H.RawDeflate.CompressionType.DYNAMIC,"None (Store)":H.RawDeflate.CompressionType.NONE},J=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Raw Deflate",A.module="Compression",A.description="Compresses data using the deflate algorithm with no headers.",A.infoURL="https://wikipedia.org/wiki/DEFLATE",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:k}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=new H.RawDeflate(new Uint8Array(A),{compressionType:L[I[0]]});return new Uint8Array(g.compress()).buffer}}]),I}(h.a),K=g(775),q=g.n(K).a.Zlib,T={Adaptive:q.RawInflate.BufferType.ADAPTIVE,Block:q.RawInflate.BufferType.BLOCK},x=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Raw Inflate",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with no headers.",A.infoURL="https://wikipedia.org/wiki/DEFLATE",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Start index",type:"number",value:0},{name:"Initial output buffer size",type:"number",value:0},{name:"Buffer expansion type",type:"option",value:Y},{name:"Resize buffer after decompression",type:"boolean",value:!1},{name:"Verify result",type:"boolean",value:!1}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=new q.RawInflate(new Uint8Array(A),{index:I[0],bufferSize:I[1],bufferType:T[I[2]],resize:I[3],verify:I[4]}),i=new Uint8Array(g.decompress());if(i.length>158&&93===i[0]&&93===i[5]){for(var t=!1,e=0;e<155;e+=5)93!==i[e]&&(t=!0);if(!t)throw new c.a("Error: Unable to inflate data")}return i.buffer}}]),I}(h.a),V=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Tar",A.module="Compression",A.description="Packs the input into a tarball.<br><br>No support for multiple files at this time.",A.infoURL="https://wikipedia.org/wiki/Tar_(computing)",A.inputType="ArrayBuffer",A.outputType="File",A.args=[{name:"Filename",type:"string",value:"file.txt"}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){A=new Uint8Array(A);var g=function(){this.bytes=new Array(512),this.position=0};g.prototype.addEmptyBlock=function(){var A=new Array(512);A.fill(0),this.bytes=this.bytes.concat(A)},g.prototype.writeBytes=function(A){var I=this;this.position+A.length>this.bytes.length&&this.addEmptyBlock(),Array.prototype.forEach.call(A,(function(A,g){void 0!==A.charCodeAt&&(A=A.charCodeAt()),I.bytes[I.position]=A,I.position+=1}))},g.prototype.writeEndBlocks=function(){for(var A=0;A<2;A++)this.addEmptyBlock()};var i=A.length.toString(8).padStart(11,"0"),t=Math.floor(Date.now()/1e3).toString(8).padStart(11,"0"),e={fileName:y.b.padBytesRight(I[0],100),fileMode:y.b.padBytesRight("0000664",8),ownerUID:y.b.padBytesRight("0",8),ownerGID:y.b.padBytesRight("0",8),size:y.b.padBytesRight(i,12),lastModTime:y.b.padBytesRight(t,12),checksum:"        ",type:"0",linkedFileName:y.b.padBytesRight("",100),USTARFormat:y.b.padBytesRight("ustar",6),version:"00",ownerUserName:y.b.padBytesRight("",32),ownerGroupName:y.b.padBytesRight("",32),deviceMajor:y.b.padBytesRight("",8),deviceMinor:y.b.padBytesRight("",8),fileNamePrefix:y.b.padBytesRight("",155)},r=0;for(var C in e){var n=e[C];Array.prototype.forEach.call(n,(function(A){void 0!==A.charCodeAt?r+=A.charCodeAt():r+=A}))}r=y.b.padBytesRight(r.toString(8).padStart(7,"0"),8),e.checksum=r;var o=new g;return o.writeBytes(e.fileName),o.writeBytes(e.fileMode),o.writeBytes(e.ownerUID),o.writeBytes(e.ownerGID),o.writeBytes(e.size),o.writeBytes(e.lastModTime),o.writeBytes(e.checksum),o.writeBytes(e.type),o.writeBytes(e.linkedFileName),o.writeBytes(e.USTARFormat),o.writeBytes(e.version),o.writeBytes(e.ownerUserName),o.writeBytes(e.ownerGroupName),o.writeBytes(e.deviceMajor),o.writeBytes(e.deviceMinor),o.writeBytes(e.fileNamePrefix),o.writeBytes(y.b.padBytesRight("",12)),o.writeBytes(A),o.writeEndBlocks(),new File([new Uint8Array(o.bytes)],I[0])}}]),I}(h.a),W=g(7),Z=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Untar",A.module="Compression",A.description="Unpacks a tarball and displays it per file.",A.infoURL="https://wikipedia.org/wiki/Tar_(computing)",A.inputType="ArrayBuffer",A.outputType="List<File>",A.presentType="html",A.args=[],A.patterns=[{match:"^.{257}\\x75\\x73\\x74\\x61\\x72",flags:"",args:[]}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){A=new Uint8Array(A);for(var g=new W.a(A),i=[];g.hasMore();){var t=g.position+512,e={fileName:g.readString(100),fileMode:g.readString(8),ownerUID:g.readString(8),ownerGID:g.readString(8),size:parseInt(g.readString(12),8),lastModTime:new Date(1e3*parseInt(g.readString(12),8)),checksum:g.readString(8),type:g.readString(1),linkedFileName:g.readString(100),USTARFormat:g.readString(6).indexOf("ustar")>=0};if(e.USTARFormat&&(e.version=g.readString(2),e.ownerUserName=g.readString(32),e.ownerGroupName=g.readString(32),e.deviceMajor=g.readString(8),e.deviceMinor=g.readString(8),e.filenamePrefix=g.readString(155)),g.position=t,"0"===e.type){var r=g.position+e.size;e.size%512!=0&&(r+=512-e.size%512),e.bytes=g.getBytes(e.size),i.push(new File([new Uint8Array(e.bytes)],e.fileName)),g.position=r}else"5"===e.type&&i.push(new File([new Uint8Array(e.bytes)],e.fileName))}return i}},{key:"present",value:function(A){return F.a.async((function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,F.a.awrap(y.b.displayFilesAsHTML(A));case 2:return I.abrupt("return",I.sent);case 3:case"end":return I.stop()}}))}}]),I}(h.a),O=g(776),j=g.n(O).a.Zlib,X=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Unzip",A.module="Compression",A.description="Decompresses data using the PKZIP algorithm and displays it per file, with support for passwords.",A.infoURL="https://wikipedia.org/wiki/Zip_(file_format)",A.inputType="ArrayBuffer",A.outputType="List<File>",A.presentType="html",A.args=[{name:"Password",type:"binaryString",value:""},{name:"Verify result",type:"boolean",value:!1}],A.patterns=[{match:"^\\x50\\x4b(?:\\x03|\\x05|\\x07)(?:\\x04|\\x06|\\x08)",flags:"",args:["",!1]}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g={password:y.b.strToByteArray(I[0]),verify:I[1]},i=new j.Unzip(new Uint8Array(A),g);return i.getFilenames().map((function(A){var I=i.decompress(A);return new File([I],A)}))}},{key:"present",value:function(A){return F.a.async((function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,F.a.awrap(y.b.displayFilesAsHTML(A));case 2:return I.abrupt("return",I.sent);case 3:case"end":return I.stop()}}))}}]),I}(h.a),P=g(777),z=g.n(P).a.Zlib,_={Deflate:z.Zip.CompressionMethod.DEFLATE,"None (Store)":z.Zip.CompressionMethod.STORE},$={MSDOS:z.Zip.OperatingSystem.MSDOS,Unix:z.Zip.OperatingSystem.UNIX,Macintosh:z.Zip.OperatingSystem.MACINTOSH},AA=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Zip",A.module="Compression",A.description="Compresses data using the PKZIP algorithm with the given filename.<br><br>No support for multiple files at this time.",A.infoURL="https://wikipedia.org/wiki/Zip_(file_format)",A.inputType="ArrayBuffer",A.outputType="File",A.args=[{name:"Filename",type:"string",value:"file.txt"},{name:"Comment",type:"string",value:""},{name:"Password",type:"binaryString",value:""},{name:"Compression method",type:"option",value:["Deflate","None (Store)"]},{name:"Operating system",type:"option",value:["MSDOS","Unix","Macintosh"]},{name:"Compression type",type:"option",value:k}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=I[0],i=y.b.strToByteArray(I[2]),t={filename:y.b.strToByteArray(g),comment:y.b.strToByteArray(I[1]),compressionMethod:_[I[3]],os:$[I[4]],deflateOption:{compressionType:M[I[5]]}},e=new z.Zip;return i.length&&e.setPassword(i),e.addFile(new Uint8Array(A),t),new File([e.compress()],g)}}]),I}(h.a),IA=G.a.Zlib,gA=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Zlib Deflate",A.module="Compression",A.description="Compresses data using the deflate algorithm adding zlib headers.",A.infoURL="https://wikipedia.org/wiki/Zlib",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:k}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=new IA.Deflate(new Uint8Array(A),{compressionType:M[I[0]]});return new Uint8Array(g.compress()).buffer}}]),I}(h.a),iA=G.a.Zlib,tA={Adaptive:iA.Inflate.BufferType.ADAPTIVE,Block:iA.Inflate.BufferType.BLOCK},eA=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Zlib Inflate",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with zlib headers.",A.infoURL="https://wikipedia.org/wiki/Zlib",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Start index",type:"number",value:0},{name:"Initial output buffer size",type:"number",value:0},{name:"Buffer expansion type",type:"option",value:Y},{name:"Resize buffer after decompression",type:"boolean",value:!1},{name:"Verify result",type:"boolean",value:!1}],A.patterns=[{match:"^\\x78(\\x01|\\x9c|\\xda|\\x5e)",flags:"",args:[0,0,"Adaptive",!1,!1]}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=new iA.Inflate(new Uint8Array(A),{index:I[0],bufferSize:I[1],bufferType:tA[I[2]],resize:I[3],verify:I[4]});return new Uint8Array(g.decompress()).buffer}}]),I}(h.a),rA="undefined"==typeof self?{}:self.OpModules||{};rA.Compression={"Bzip2 Compress":l,"Bzip2 Decompress":D,Gunzip:d,Gzip:b,"Raw Deflate":J,"Raw Inflate":x,Tar:V,Untar:Z,Unzip:X,Zip:AA,"Zlib Deflate":gA,"Zlib Inflate":eA};I.default=rA},15:function(A,I,g){"use strict";g.d(I,"b",(function(){return e})),g.d(I,"a",(function(){return r}));var i=g(0),t=g(8);
/**
 * Base64 functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */
function e(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!A)return"";if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),"string"==typeof A&&(A=i.b.strToByteArray(A)),64!==(I=i.b.expandAlphRange(I).join("")).length&&65!==I.length)throw new t.a(`Invalid Base64 alphabet length (${I.length}): ${I}`);for(var g,e,r,C,n,o,B,a="",E=0;E<A.length;)C=(g=A[E++])>>2,n=(3&g)<<4|(e=A[E++])>>4,o=(15&e)<<2|(r=A[E++])>>6,B=63&r,isNaN(e)?o=B=64:isNaN(r)&&(B=64),a+=I.charAt(C)+I.charAt(n)+I.charAt(o)+I.charAt(B);return a}function r(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",e=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!A)return"string"===g?"":[];if(I=I||"A-Za-z0-9+/=",64!==(I=i.b.expandAlphRange(I).join("")).length&&65!==I.length)throw new t.a(`Invalid Base64 alphabet length (${I.length}): ${I}`);var r,C,n,o,B,a,E=[],Q=0;if(e){var s=new RegExp("[^"+I.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");A=A.replace(s,"")}for(;Q<A.length;)r=I.indexOf(A.charAt(Q++))<<2|(o=-1===(o=I.indexOf(A.charAt(Q++)||"="))?64:o)>>4,C=(15&o)<<4|(B=-1===(B=I.indexOf(A.charAt(Q++)||"="))?64:B)>>2,n=(3&B)<<6|(a=-1===(a=I.indexOf(A.charAt(Q++)||"="))?64:a),E.push(r),64!==B&&E.push(C),64!==a&&E.push(n);return"string"===g?i.b.byteArrayToUtf8(E):E}},16:function(A,I,g){"use strict";g.d(I,"b",(function(){return t})),g.d(I,"c",(function(){return e})),g.d(I,"a",(function(){return r}));var i=g(0);
/**
 * Hexadecimal functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */function t(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",t=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!A)return"";A instanceof ArrayBuffer&&(A=new Uint8Array(A));for(var e="",r="0x"===I||"\\x"===I,C=0;C<A.length;C++){var n=A[C].toString(16).padStart(g,"0");e+=r?I+n:n+I,i&&(e+=i),C!==A.length-1&&(C+1)%t==0&&(e+="\n")}var o=i.length+(r?0:I.length);return o?e.slice(0,-o):e}function e(A){if(!A)return"";A instanceof ArrayBuffer&&(A=new Uint8Array(A));for(var I=[],g=0;g<A.length;g++)I.push((A[g]>>>4).toString(16)),I.push((15&A[g]).toString(16));return I.join("")}function r(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if("None"!==I){var t="Auto"===I?/[^a-f\d]|(0x)/gi:i.b.regexRep(I);A=A.replace(t,"")}for(var e=[],r=0;r<A.length;r+=g)e.push(parseInt(A.substr(r,g),16));return e}["Auto"].concat(["Space","Percent","Comma","Semi-colon","Colon","Line feed","CRLF","0x","0x with comma","\\x","None"])},18:function(A,I,g){"use strict";var i=g(12),t=g.n(i),e=g(7),r={Images:[{name:"Joint Photographic Experts Group image",extension:"jpg,jpeg,jpe,thm,mpo",mime:"image/jpeg",description:"",signature:{0:255,1:216,2:255,3:[192,196,219,221,224,225,226,227,228,229,231,232,234,235,236,237,238,254]},extractor:function(A,I){var g=new e.a(A.slice(I));for(;g.hasMore();){var i=g.getBytes(2);if(255!==i[0])throw new Error(`Invalid marker while parsing JPEG at pos ${g.position}: ${i}`);var t=0;switch(i[1]){case 216:case 1:break;case 217:return g.carve();case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 219:case 222:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:t=g.readInt(2,"be"),g.position+=t-2;break;case 223:g.position++;break;case 220:case 221:g.position+=2;break;case 218:t=g.readInt(2,"be"),g.position+=t-2,g.continueUntil(255);break;case 0:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:default:g.continueUntil(255)}}throw new Error("Unable to parse JPEG successfully")}},{name:"Graphics Interchange Format image",extension:"gif",mime:"image/gif",description:"",signature:{0:71,1:73,2:70,3:56,4:[55,57],5:97},extractor:function(A,I){var g=new e.a(A.slice(I));g.continueUntil([33,255]),g.continueUntil([33,249]),g.moveForwardsBy(2);for(;g.hasMore();){for(g.moveForwardsBy(g.readInt(1)+1),g.moveForwardsBy(11);g.getBytes(2)!==[33,249]&&(g.moveBackwardsBy(2),g.moveForwardsBy(g.readInt(1)),g.readInt(1));)g.moveBackwardsBy(1);if(59===g.readInt(1))break;g.moveForwardsBy(1)}return g.carve()}},{name:"Portable Network Graphics image",extension:"png",mime:"image/png",description:"",signature:{0:137,1:80,2:78,3:71,4:13,5:10,6:26,7:10},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveForwardsBy(8);var i=0,t="";for(;"IEND"!==t;)i=g.readInt(4,"be"),t=g.readString(4),g.moveForwardsBy(i+4);return g.carve()}},{name:"WEBP Image",extension:"webp",mime:"image/webp",description:"",signature:{8:87,9:69,10:66,11:80},extractor:null},{name:"Camera Image File Format",extension:"crw",mime:"image/x-canon-crw",description:"",signature:{6:72,7:69,8:65,9:80,10:67,11:67,12:68,13:82},extractor:null},{name:"Canon CR2 raw image",extension:"cr2",mime:"image/x-canon-cr2",description:"",signature:[{0:73,1:73,2:42,3:0,8:67,9:82},{0:77,1:77,2:0,3:42,8:67,9:82}],extractor:null},{name:"Tagged Image File Format image",extension:"tif",mime:"image/tiff",description:"",signature:[{0:73,1:73,2:42,3:0},{0:77,1:77,2:0,3:42}],extractor:null},{name:"Bitmap image",extension:"bmp",mime:"image/bmp",description:"",signature:{0:66,1:77,7:0,9:0,14:[12,40,56,64,108,124],15:0,16:0,17:0},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveForwardsBy(2);var i=g.readInt(4,"le");return g.moveForwardsBy(i-6),g.carve()}},{name:"JPEG Extended Range image",extension:"jxr",mime:"image/vnd.ms-photo",description:"",signature:{0:73,1:73,2:188},extractor:null},{name:"Photoshop image",extension:"psd",mime:"image/vnd.adobe.photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:1,6:0,7:0,8:0,9:0,10:0,11:0},extractor:null},{name:"Photoshop Large Document",extension:"psb",mime:"application/x-photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:2,6:0,7:0,8:0,9:0,10:0,11:0,12:0},extractor:null},{name:"Paint Shop Pro image",extension:"psp",mime:"image/psp",description:"",signature:[{0:80,1:97,2:105,3:110,4:116,5:32,6:83,7:104,8:111,9:112,10:32,11:80,12:114,13:111,14:32,15:73,16:109},{0:126,1:66,2:75,3:0}],extractor:null},{name:"The GIMP image",extension:"xcf",mime:"image/x-xcf",description:"",signature:{0:103,1:105,2:109,3:112,4:32,5:120,6:99,7:102,8:32,9:[102,118],10:[105,48],11:[108,48],12:[101,49,50,51]},extractor:null},{name:"Icon image",extension:"ico",mime:"image/x-icon",description:"",signature:{0:0,1:0,2:1,3:0,4:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],5:0,6:[16,32,48,64,128],7:[16,32,48,64,128],9:0,10:[0,1]},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveTo(4);var i=g.readInt(2,"le");g.moveForwardsBy(8+16*(i-1));var t=g.readInt(4,"le"),r=g.readInt(4,"le");return g.moveTo(r+t),g.carve()}},{name:"Radiance High Dynamic Range image",extension:"hdr",mime:"image/vnd.radiance",description:"",signature:{0:35,1:63,2:82,3:65,4:68,5:73,6:65,7:78,8:67,9:69,10:10},extractor:null},{name:"Sony ARW image",extension:"arw",mime:"image/x-raw",description:"",signature:{0:5,1:0,2:0,3:0,4:65,5:87,6:49,7:46},extractor:null},{name:"Fujifilm Raw Image",extension:"raf",mime:"image/x-raw",description:"",signature:{0:70,1:85,2:74,3:73,4:70,5:73,6:76,7:77,8:67,9:67,10:68,11:45,12:82,13:65,14:87},extractor:null},{name:"Minolta RAW image",extension:"mrw",mime:"image/x-raw",description:"",signature:{0:0,1:77,2:82,3:77},extractor:null},{name:"Adobe Bridge Thumbnail Cache",extension:"bct",mime:"application/octet-stream",description:"",signature:{0:108,1:110,2:98,3:116,4:2,5:0,6:0,7:0},extractor:null},{name:"Microsoft Document Imaging",extension:"mdi",mime:"image/vnd.ms-modi",description:"",signature:{0:69,1:80,2:42,3:0},extractor:null},{name:"Joint Photographic Experts Group image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:47,1:57,2:106,3:47,4:52},extractor:null},{name:"Portable Network Graphics image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:105,1:86,2:66,3:79,4:82,5:119,6:48},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,123d",mime:"application/acad",description:"",signature:{0:65,1:67,2:49,3:48,4:[48,49],5:[48,49,50,51,52,53],6:0},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,dwt",mime:"application/acad",description:"",signature:[{0:65,1:67,2:49,3:48,4:49,5:56,6:0},{0:65,1:67,2:49,3:48,4:50,5:52,6:0},{0:65,1:67,2:49,3:48,4:50,5:55,6:0}],extractor:null}],Video:[{name:"Matroska Multimedia Container",extension:"mkv",mime:"video/x-matroska",description:"",signature:{31:109,32:97,33:116,34:114,35:111,36:115,37:107,38:97},extractor:null},{name:"WEBM video",extension:"webm",mime:"video/webm",description:"",signature:{0:26,1:69,2:223,3:163},extractor:null},{name:"Flash MP4 video",extension:"f4v",mime:"video/mp4",description:"",signature:{4:102,5:116,6:121,7:112,8:[102,70],9:52,10:[118,86],11:32},extractor:null},{name:"MPEG-4 video",extension:"mp4",mime:"video/mp4",description:"",signature:[{0:0,1:0,2:0,3:[24,32],4:102,5:116,6:121,7:112},{0:51,1:103,2:112,3:53},{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:109,9:112,10:52,11:50,16:109,17:112,18:52,19:49,20:109,21:112,22:52,23:50,24:105,25:115,26:111,27:109}],extractor:null},{name:"M4V video",extension:"m4v",mime:"video/x-m4v",description:"",signature:{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:77,9:52,10:86},extractor:null},{name:"Quicktime video",extension:"mov",mime:"video/quicktime",description:"",signature:{0:0,1:0,2:0,3:20,4:102,5:116,6:121,7:112},extractor:null},{name:"Audio Video Interleave",extension:"avi",mime:"video/x-msvideo",description:"",signature:{0:82,1:73,2:70,3:70,8:65,9:86,10:73},extractor:null},{name:"Windows Media Video",extension:"wmv",mime:"video/x-ms-wmv",description:"",signature:{0:48,1:38,2:178,3:117,4:142,5:102,6:207,7:17,8:166,9:217},extractor:null},{name:"MPEG video",extension:"mpg",mime:"video/mpeg",description:"",signature:{0:0,1:0,2:1,3:186},extractor:null},{name:"Flash Video",extension:"flv",mime:"video/x-flv",description:"",signature:{0:70,1:76,2:86,3:1},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveForwardsBy(5);var i=g.readInt(4,"be");g.moveForwardsBy(i-9);var t=-11;for(;g.hasMore();){var r=g.readInt(4,"be"),C=g.readInt(1);if([8,9,18].indexOf(C)<0){g.moveBackwardsBy(1);break}if(r!==t+11){g.moveBackwardsBy(t+11+5);break}t=g.readInt(3,"be"),g.moveForwardsBy(7+t)}return g.carve()}},{name:"OGG Video",extension:"ogv,ogm,opus,ogx",mime:"video/ogg",description:"",signature:[{0:79,1:103,2:103,3:83,4:0,5:2,28:1,29:118,30:105,31:100,32:101,33:111},{0:79,1:103,2:103,3:83,4:0,5:2,28:128,29:116,30:104,31:101,32:111,33:114,34:97},{0:79,1:103,2:103,3:83,4:0,5:2,28:102,29:105,30:115,31:104,32:101,33:97,34:100}],extractor:null}],Audio:[{name:"Waveform Audio",extension:"wav",mime:"audio/x-wav",description:"",signature:{0:82,1:73,2:70,3:70,8:87,9:65,10:86,11:69},extractor:function(A,I){var g=new e.a(A.slice(I));return g.moveTo(4),g.moveTo(g.readInt(4,"le")),g.carve()}},{name:"OGG audio",extension:"ogg",mime:"audio/ogg",description:"",signature:{0:79,1:103,2:103,3:83},extractor:null},{name:"Musical Instrument Digital Interface audio",extension:"midi",mime:"audio/midi",description:"",signature:{0:77,1:84,2:104,3:100},extractor:null},{name:"MPEG-3 audio",extension:"mp3",mime:"audio/mpeg",description:"",signature:[{0:73,1:68,2:51},{0:255,1:251}],extractor:null},{name:"MPEG-4 Part 14 audio",extension:"m4a",mime:"audio/m4a",description:"",signature:[{4:102,5:116,6:121,7:112,8:77,9:52,10:65},{0:77,1:52,2:65,3:32}],extractor:null},{name:"Free Lossless Audio Codec",extension:"flac",mime:"audio/x-flac",description:"",signature:{0:102,1:76,2:97,3:67},extractor:null},{name:"Adaptive Multi-Rate audio codec",extension:"amr",mime:"audio/amr",description:"",signature:{0:35,1:33,2:65,3:77,4:82,5:10},extractor:null},{name:"Audacity",extension:"au",mime:"audio/x-au",description:"",signature:{0:100,1:110,2:115,3:46,24:65,25:117,26:100,27:97,28:99,29:105,30:116,31:121,32:66,33:108,34:111,35:99,36:107,37:70,38:105,39:108,40:101},extractor:null},{name:"Audacity Block",extension:"auf",mime:"application/octet-stream",description:"",signature:{0:65,1:117,2:100,3:97,4:99,5:105,6:116,7:121,8:66,9:108,10:111,11:99,12:107,13:70,14:105,15:108,16:101},extractor:null},{name:"Audio Interchange File",extension:"aif",mime:"audio/x-aiff",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:70},extractor:null},{name:"Audio Interchange File (compressed)",extension:"aifc",mime:"audio/x-aifc",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:67},extractor:null}],Documents:[{name:"Portable Document Format",extension:"pdf",mime:"application/pdf",description:"",signature:{0:37,1:80,2:68,3:70},extractor:function(A,I){var g=new e.a(A.slice(I));return g.continueUntil([37,37,69,79,70]),g.moveForwardsBy(5),g.consumeIf(13),g.consumeIf(10),g.carve()}},{name:"Portable Document Format (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:65,1:74,2:86,3:66,4:69,5:82,6:105},extractor:null},{name:"Adobe PostScript",extension:"ps,eps,ai,pfa",mime:"application/postscript",description:"",signature:{0:37,1:33,2:80,3:83,4:45,5:65,6:100,7:111,8:98,9:101},extractor:null},{name:"PostScript",extension:"ps",mime:"application/postscript",description:"",signature:{0:37,1:33},extractor:null},{name:"Encapsulated PostScript",extension:"eps,ai",mime:"application/eps",description:"",signature:{0:197,1:208,2:211,3:198},extractor:null},{name:"Rich Text Format",extension:"rtf",mime:"application/rtf",description:"",signature:{0:123,1:92,2:114,3:116},extractor:function(A,I){var g=new e.a(A.slice(I)),i=0;if(123!==g.readInt(1))throw new Error("Not a valid RTF file");i++;for(;i>0&&g.hasMore();)switch(g.readInt(1)){case 123:i++;break;case 125:i--;break;case 92:g.consumeIf(92),g.position++}return g.carve()}},{name:"Microsoft Office document/OLE2",extension:"ole2,doc,xls,dot,ppt,xla,ppa,pps,pot,msi,sdw,db,vsd,msg",mime:"application/msword,application/vnd.ms-excel,application/vnd.ms-powerpoint",description:"Microsoft Office documents",signature:{0:208,1:207,2:17,3:224,4:161,5:177,6:26,7:225},extractor:null},{name:"Microsoft Office document/OLE2 (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:48,1:77,2:56,3:82,4:52,5:75,6:71,7:120},extractor:null},{name:"Microsoft Office 2007+ document",extension:"docx,xlsx,pptx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation",description:"",signature:{38:95,39:84,40:121,41:112,42:101,43:115,44:93,45:46,46:120,47:109,48:108},extractor:C},{name:"Microsoft Access database",extension:"mdb,mda,mde,mdt,fdb,psa",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:74,14:101,15:116},extractor:null},{name:"Microsoft Access 2007+ database",extension:"accdb,accde,accda,accdu",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:65,14:67,15:69,16:32},extractor:null},{name:"Microsoft OneNote document",extension:"one",mime:"application/onenote",description:"",signature:{0:228,1:82,2:92,3:123,4:140,5:216,6:167,7:77,8:174,9:177,10:83,11:120,12:208,13:41,14:150,15:211},extractor:null},{name:"Outlook Express database",extension:"dbx",mime:"application/octet-stream",description:"",signature:{0:207,1:173,2:18,3:254,4:[48,197,198,199],11:17},extractor:null},{name:"Personal Storage Table (Outlook)",extension:"pst,ost,fdb,pab",mime:"application/octet-stream",description:"",signature:{0:33,1:66,2:68,3:78},extractor:null},{name:"Microsoft Exchange Database",extension:"edb",mime:"application/octet-stream",description:"",signature:{4:239,5:205,6:171,7:137,8:[32,35],9:6,10:0,11:0,12:[0,1],13:0,14:0,15:0},extractor:null},{name:"WordPerfect document",extension:"wpd,wp,wp5,wp6,wpp,bk!,wcm",mime:"application/wordperfect",description:"",signature:{0:255,1:87,2:80,3:67,7:[0,1,2],8:1,9:10},extractor:null},{name:"EPUB e-book",extension:"epub",mime:"application/epub+zip",description:"",signature:{0:80,1:75,2:3,3:4,30:109,31:105,32:109,33:101,34:116,35:121,36:112,37:101,38:97,39:112,40:112,41:108,42:105,43:99,44:97,45:116,46:105,47:111,48:110,49:47,50:101,51:112,52:117,53:98,54:43,55:122,56:105,57:112},extractor:C}],Applications:[{name:"Windows Portable Executable",extension:"exe,dll,drv,vxd,sys,ocx,vbx,com,fon,scr",mime:"application/vnd.microsoft.portable-executable",description:"",signature:{0:77,1:90,3:[0,1,2],5:[0,1,2]},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveTo(60);var i=g.readInt(4,"le");g.moveTo(i),g.moveForwardsBy(6);var t=g.readInt(2,"le");g.moveForwardsBy(16);var r=523===g.readInt(2,"le")?112:96;g.moveForwardsBy(r-2),g.moveForwardsBy(32);var C=g.readInt(4,"le"),n=g.readInt(4,"le");if(C>0)return g.moveTo(C+n),g.carve();g.moveForwardsBy(88),g.moveForwardsBy(40*(t-1)),g.moveForwardsBy(16);var o=g.readInt(4,"le"),B=g.readInt(4,"le");return g.moveTo(B+o),g.carve()}},{name:"Executable and Linkable Format",extension:"elf,bin,axf,o,prx,so",mime:"application/x-executable",description:"Executable and Linkable Format file. No standard file extension.",signature:{0:127,1:69,2:76,3:70},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveForwardsBy(4);var i=1===g.readInt(1),t=1===g.readInt(1)?"le":"be";g.moveForwardsBy(i?26:34);var r=i?g.readInt(4,t):g.readInt(8,t);g.moveForwardsBy(10);var C=g.readInt(2,t),n=g.readInt(2,t);return g.moveTo(r),g.moveForwardsBy(C*n),g.carve()}},{name:"MacOS Mach-O object",extension:"dylib",mime:"application/octet-stream",description:"",signature:[{0:202,1:254,2:186,3:190,4:0,5:0,6:0,7:[1,2,3]},{0:206,1:250,2:237,3:254,4:7,5:0,6:0,7:0,8:[1,2,3]}],extractor:n},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:n},{name:"Adobe Flash",extension:"swf",mime:"application/x-shockwave-flash",description:"",signature:{0:[67,70],1:87,2:83},extractor:null},{name:"Java Class",extension:"class",mime:"application/java-vm",description:"",signature:{0:202,1:254,2:186,3:190},extractor:null},{name:"Dalvik Executable",extension:"dex",mime:"application/octet-stream",description:"Dalvik Executable as used by Android",signature:{0:100,1:101,2:120,3:10,4:48,5:51,6:53,7:0},extractor:null},{name:"Google Chrome Extension",extension:"crx",mime:"application/crx",description:"Google Chrome extension or packaged app",signature:{0:67,1:114,2:50,3:52},extractor:null}],Archives:[{name:"PKZIP archive",extension:"zip",mime:"application/zip",description:"",signature:{0:80,1:75,2:[3,5,7],3:[4,6,8]},extractor:C},{name:"PKZIP archive (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:85,1:69,2:115,3:68,4:66,5:66},extractor:null},{name:"TAR archive",extension:"tar",mime:"application/x-tar",description:"",signature:{257:117,258:115,259:116,260:97,261:114},extractor:function(A,I){var g=new e.a(A.slice(I));for(;g.hasMore();){if(g.moveForwardsBy(257),g.getBytes(5).join("")!==[117,115,116,97,114].join("")){g.moveBackwardsBy(262);break}g.moveBackwardsBy(138);var i=0;g.getBytes(11).forEach((function(A,I){i+=(A-48).toString()})),i=512*Math.ceil(parseInt(i,8)/512),g.moveForwardsBy(i+377)}return g.consumeWhile(0),g.carve()}},{name:"Roshal Archive",extension:"rar",mime:"application/x-rar-compressed",description:"",signature:{0:82,1:97,2:114,3:33,4:26,5:7,6:[0,1]},extractor:null},{name:"Gzip",extension:"gz",mime:"application/gzip",description:"",signature:{0:31,1:139,2:8},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveForwardsBy(3);var i=g.readInt(1);if(g.moveForwardsBy(4),g.readInt(1),g.moveForwardsBy(1),4&i){var t=g.readInt(2,"le");g.moveForwardsby(t)}8&i&&(g.continueUntil(0),g.moveForwardsBy(1));16&i&&(g.continueUntil(0),g.moveForwardsBy(1));2&i&&g.moveForwardsBy(2);return s(g),g.moveForwardsBy(8),g.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(A,I){for(var g=new e.a(A.slice(I)),i=[[119,36,83,133,9],[238,72,167,10,18],[220,145,78,20,36],[185,34,156,40,72],[114,69,56,80,144],[187,146,41,194,132],[93,201,20,225,66],[46,228,138,112,161],[23,114,69,56,80]],t=0;t<i.length&&(g.continueUntil(i[t]),g.getBytes(5).join("")!==i[t].join(""));t++)g.moveTo(0);return g.moveForwardsBy(4),g.carve()}},{name:"7zip",extension:"7z",mime:"application/x-7z-compressed",description:"",signature:{0:55,1:122,2:188,3:175,4:39,5:28},extractor:null},{name:"Zlib Deflate",extension:"zlib",mime:"application/x-deflate",description:"",signature:{0:120,1:[1,156,218,94]},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveForwardsBy(1),32&g.readInt(1)&&g.moveForwardsBy(4);return s(g),g.moveForwardsBy(4),g.carve()}},{name:"xz compression",extension:"xz",mime:"application/x-xz",description:"",signature:{0:253,1:55,2:122,3:88,4:90,5:0},extractor:function(A,I){var g=new e.a(A.slice(I));return g.continueUntil([0,0,0,0,4,89,90]),g.moveForwardsBy(7),g.carve()}},{name:"Tarball",extension:"tar.z",mime:"application/x-gtar",description:"",signature:{0:31,1:[157,160]},extractor:null},{name:"ISO disk image",extension:"iso",mime:"application/octet-stream",description:"ISO 9660 CD/DVD image file",signature:[{32769:67,32770:68,32771:48,32772:48,32773:49},{34817:67,34818:68,34819:48,34820:48,34821:49},{36865:67,36866:68,36867:48,36868:48,36869:49}],extractor:null},{name:"Virtual Machine Disk",extension:"vmdk",mime:"application/vmdk,application/x-virtualbox-vmdk",description:"",signature:{0:75,1:68,2:77,3:86,5:0,6:0,7:0},extractor:null},{name:"Virtual Hard Drive",extension:"vhd",mime:"application/x-vhd",description:"",signature:{0:99,1:111,2:110,3:101,4:99,5:116,6:105,7:120},extractor:null},{name:"Macintosh disk image",extension:"dmf,dmg",mime:"application/octet-stream",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96,7:96},extractor:null},{name:"ARJ Archive",extension:"arj",mime:"application/x-arj-compressed",description:"",signature:{0:96,1:234,8:[0,16,20],9:0,10:2},extractor:null},{name:"WinAce Archive",extension:"ace",mime:"application/x-ace-compressed",description:"",signature:{7:42,8:42,9:65,10:67,11:69,12:42,13:42},extractor:null},{name:"Macintosh BinHex Encoded File",extension:"hqx",mime:"application/mac-binhex",description:"",signature:{11:109,12:117,13:115,14:116,15:32,16:98,17:101,18:32,19:99,20:111,21:110,22:118,23:101,24:114,25:116,26:101,27:100,28:32,29:119,30:105,31:116,32:104,33:32,34:66,35:105,36:110,37:72,38:101,39:120},extractor:null},{name:"ALZip Archive",extension:"alz",mime:"application/octet-stream",description:"",signature:{0:65,1:76,2:90,3:1,4:10,5:0,6:0,7:0},extractor:null},{name:"KGB Compressed Archive",extension:"kgb",mime:"application/x-kgb-compressed",description:"",signature:{0:75,1:71,2:66,3:95,4:97,5:114,6:99,7:104,8:32,9:45},extractor:null},{name:"Microsoft Cabinet",extension:"cab",mime:"vnd.ms-cab-compressed",description:"",signature:{0:77,1:83,2:67,3:70,4:0,5:0,6:0,7:0},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:95,1:39,2:168,3:137},extractor:null},{name:"lzop compressed",extension:"lzop,lzo",mime:"application/x-lzop",description:"",signature:{0:137,1:76,2:90,3:79,4:0,5:13,6:10,7:26},extractor:null},{name:"Linux deb",extension:"deb",mime:"application/vnd.debian.binary-package",description:"",signature:{0:33,1:60,2:97,3:114,4:99,5:104,6:62},extractor:null},{name:"Apple Disk Image",extension:"dmg",mime:"application/x-apple-diskimage",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96},extractor:null}],Miscellaneous:[{name:"UTF-8 text",extension:"txt",mime:"text/plain",description:"UTF-8 encoded Unicode byte order mark, commonly but not exclusively seen in text files.",signature:{0:239,1:187,2:191},extractor:null},{name:"UTF-32 LE text",extension:"utf32le",mime:"charset/utf32le",description:"Little-endian UTF-32 encoded Unicode byte order mark.",signature:{0:255,1:254,2:0,3:0},extractor:null},{name:"UTF-16 LE text",extension:"utf16le",mime:"charset/utf16le",description:"Little-endian UTF-16 encoded Unicode byte order mark.",signature:{0:255,1:254},extractor:null},{name:"Web Open Font Format",extension:"woff",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:70,4:0,5:1,6:0,7:0},extractor:null},{name:"Web Open Font Format 2",extension:"woff2",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:50,4:0,5:1,6:0,7:0},extractor:null},{name:"Embedded OpenType font",extension:"eot",mime:"application/octet-stream",description:"",signature:[{8:2,9:0,10:1,34:76,35:80},{8:1,9:0,10:0,34:76,35:80},{8:2,9:0,10:2,34:76,35:80}],extractor:null},{name:"TrueType Font",extension:"ttf",mime:"application/font-sfnt",description:"",signature:{0:0,1:1,2:0,3:0,4:0},extractor:null},{name:"OpenType Font",extension:"otf",mime:"application/font-sfnt",description:"",signature:{0:79,1:84,2:84,3:79,4:0},extractor:null},{name:"SQLite",extension:"sqlite",mime:"application/x-sqlite3",description:"",signature:{0:83,1:81,2:76,3:105},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveTo(16);var i=g.readInt(2);g.moveTo(28);var t=g.readInt(4);return g.moveTo(i*t),g.carve()}},{name:"BitTorrent link",extension:"torrent",mime:"application/x-bittorrent",description:"",signature:[{0:100,1:56,2:58,3:97,4:110,5:110,6:111,7:117,8:110,9:99,10:101,11:35,12:35,13:58},{0:100,1:52,2:58,3:105,4:110,5:102,6:111,7:100,8:[52,53,54],9:58}],extractor:null},{name:"Cryptocurrency wallet",extension:"wallet",mime:"application/octet-stream",description:"",signature:{0:0,1:0,2:0,3:0,4:1,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:98,13:49,14:5,15:0},extractor:null},{name:"Registry fragment",extension:"hbin",mime:"application/octet-stream",description:"",signature:{0:104,1:98,2:105,3:110,4:0},extractor:null},{name:"Registry script",extension:"rgs",mime:"application/octet-stream",description:"",signature:{0:72,1:75,2:67,3:82,4:13,5:10,6:92,7:123},extractor:null},{name:"WinNT Registry Hive",extension:"registry",mime:"application/octet-stream",description:"",signature:{0:114,1:101,2:103,3:102},extractor:null},{name:"Windows Event Log",extension:"evt",mime:"application/octet-stream",description:"",signature:{0:48,1:0,2:0,3:0,4:76,5:102,6:76,7:101},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveTo(20);var i=g.readInt(4,"le");g.moveTo(i);var t=g.readInt(4,"le");return g.moveForwardsBy(t-4),g.carve()}},{name:"Windows Event Log",extension:"evtx",mime:"application/octet-stream",description:"",signature:{0:69,1:108,2:102,3:70,4:105,5:108,6:101},extractor:function(A,I){var g=new e.a(A.slice(I));g.moveTo(40);var i=g.readInt(4,"le")-44;g.moveForwardsBy(i);for(;g.hasMore()&&g.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)g.moveForwardsBy(65529);return g.consumeWhile(0),g.carve()}},{name:"Windows Pagedump",extension:"dmp",mime:"application/octet-stream",description:"",signature:{0:80,1:65,2:71,3:69,4:68,5:85,6:[77,54],7:[80,52]},extractor:null},{name:"Windows Prefetch",extension:"pf",mime:"application/x-pf",description:"",signature:{0:[17,23,26],1:0,2:0,3:0,4:83,5:67,6:67,7:65},extractor:null},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:null},{name:"PList (XML)",extension:"plist",mime:"application/xml",description:"",signature:{39:60,40:33,41:68,42:79,43:67,44:84,45:89,46:80,47:69,48:32,49:112,50:108,51:105,52:115,53:116},extractor:function(A,I){var g=new e.a(A.slice(I)),i=0;g.continueUntil([60,112,108,105,115,116]),g.moveForwardsBy(6),i++;for(;i>0&&g.hasMore();)60===g.readInt(1)&&(g.getBytes(5).join("")===[112,108,105,115,116].join("")?i++:g.moveBackwardsBy(5),g.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?i--:g.moveBackwardsBy(7));return g.consumeIf(10),g.carve()}},{name:"PList (binary)",extension:"bplist,plist,ipmeta,abcdp,mdbackup,mdinfo,strings,nib,ichat,qtz,webbookmark,webhistory",mime:"application/x-plist",description:"",signature:{0:98,1:112,2:108,3:105,4:115,5:116,6:48,7:48},extractor:null},{name:"MacOS X Keychain",extension:"keychain",mime:"application/octet-stream",description:"",signature:{0:107,1:121,2:99,3:104,4:0,5:1},extractor:null},{name:"TCP Packet",extension:"tcp",mime:"application/tcp",description:"",signature:{12:8,13:0,14:69,15:0,21:0,22:function(A){return A>=1&&A<=128},23:6},extractor:null},{name:"UDP Packet",extension:"udp",mime:"application/udp",description:"",signature:{12:8,13:0,14:69,15:0,16:[0,1,2,3,4,5],22:function(A){return A>=1&&A<=128},23:17},extractor:null},{name:"Compiled HTML",extension:"chm,chw,chi",mime:"application/vnd.ms-htmlhelp",description:"",signature:{0:73,1:84,2:83,3:70,4:3,5:0,6:0,7:0},extractor:null},{name:"Windows Password",extension:"pwl",mime:"application/octet-stream",description:"",signature:{0:227,1:130,2:133,3:150},extractor:null},{name:"Bitlocker recovery key",extension:"bitlocker",mime:"application/octet-stream",description:"",signature:{0:255,1:254,2:66,3:0,4:105,5:0,6:116,7:0,8:76,9:0,10:111,11:0,12:99,13:0,14:107,15:0,16:101,17:0,18:114,19:0,20:32,21:0},extractor:null},{name:"Certificate",extension:"cer,cat,p7b,p7c,p7m,p7s,swz,rsa,crl,crt,der",mime:"application/pkix-cert",description:"",signature:{0:48,1:130,4:[6,10,48]},extractor:null},{name:"Certificate",extension:"cat,swz,p7m",mime:"application/vnd.ms-pki.seccat",description:"",signature:{0:48,1:131,2:function(A){return 0!==A},5:6,6:9},extractor:null},{name:"PGP pubring",extension:"pkr,gpg",mime:"application/pgp-keys",description:"",signature:{0:153,1:1,2:[13,162],3:4},extractor:null},{name:"PGP secring",extension:"skr",mime:"application/pgp-keys",description:"",signature:[{0:149,1:1,2:207,3:4},{0:149,1:3,2:198,3:4}],extractor:null},{name:"PGP Safe",extension:"pgd",mime:"application/pgp-keys",description:"",signature:{0:80,1:71,2:80,3:100,4:77,5:65,6:73,7:78,8:96,9:1,10:0},extractor:null},{name:"Task Scheduler",extension:"job",mime:"application/octet-stream",description:"",signature:{0:[0,1,2,3],1:[5,6],2:1,3:0,20:70,21:0},extractor:null},{name:"Windows Shortcut",extension:"lnk",mime:"application/x-ms-shortcut",description:"",signature:{0:76,1:0,2:0,3:0,4:1,5:20,6:2,7:0,8:0,9:0,10:0,11:0,12:192,13:0,14:0,15:0,16:0,17:0,18:0,19:70},extractor:null},{name:"Bash",extension:"bash",mime:"application/bash",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:98,8:97,9:115,10:104},extractor:null},{name:"Shell",extension:"sh",mime:"application/sh",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:115,8:104},extractor:null},{name:"Python",extension:"py,pyc,pyd,pyo,pyw,pyz",mime:"application/python",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:121,13:116,14:104,15:111,16:110,17:[50,51,10,13]},extractor:null},{name:"Ruby",extension:"rb",mime:"application/ruby",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:114,12:117,13:98,14:121},extractor:null},{name:"perl",extension:"pl,pm,t,pod",mime:"application/perl",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:101,13:114,14:108},extractor:null},{name:"php",extension:"php,phtml,php3,php4,php5,php7,phps,php-s,pht,phar",mime:"application/php",description:"",signature:{0:60,1:63,2:112,3:104,4:112},extractor:null},{name:"Smile",extension:"sml",mime:"\tapplication/x-jackson-smile",description:"",signature:{0:58,1:41,2:10},extractor:null},{name:"Lua Bytecode",extension:"luac",mime:"application/x-lua",description:"",signature:{0:27,1:76,2:117,3:97},extractor:null},{name:"WebAssembly binary",extension:"wasm",mime:"application/octet-stream",description:"",signature:{0:0,1:97,2:115,3:109},extractor:null}]};function C(A,I){var g=new e.a(A.slice(I));g.continueUntil([80,75,5,6]),g.moveForwardsBy(20);var i=g.readInt(2,"le");return g.moveForwardsBy(i),g.carve()}function n(A,I){var g="207250237254",i="254237250207",t="206250237254";var r=new e.a(A.slice(I)),C=r.getBytes(4).join("");return r.moveTo(function(A,I,g){var i=28;I&&(i+=4),A.moveTo(16);var t=A.readInt(4,g);return function(A,I,g,i){for(var t=0,e=0;e<i;e++){A.moveTo(I);var r=A.readInt(4,g);25===r?(A.moveTo(I+48),t+=A.readInt(8,g),A.moveTo(I+4),I+=A.readInt(4,g)):1===r&&(A.moveTo(I+36),t+=A.readInt(4,g),A.moveTo(I+4),I+=A.readInt(4,g))}return t}(A,i,g,t)}(r,function(A){return A===g||A===i}(C),function(A){return A===t||A===g}(C)?"le":"be")),r.carve()}for(var o=new Array(288),B=0;B<o.length;B++)o[B]=B<=143?8:B<=255?9:B<=279?7:8;var a=f(o),E=f(new Array(30).fill(5)),Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function s(A){for(var I=0;!I;){I=A.readBits(1);var g=A.readBits(2);if(0===g){A.moveForwardsBy(1);var i=A.readInt(2,"le");A.moveForwardsBy(2+i)}else if(1===g)u(A,a,E);else{if(2!==g)throw new Error(`Invalid block type while parsing DEFLATE stream at pos ${A.position}`);for(var t=A.readBits(5)+257,e=A.readBits(5)+1,r=A.readBits(4)+4,C=new Uint8Array(Q.length),n=0;n<r;n++)C[Q[n]]=A.readBits(3);for(var o=f(C),B=new Uint8Array(t+e),s=void 0,h=void 0,c=void 0,l=0;l<t+e;)switch(s=y(A,o)){case 16:for(h=3+A.readBits(2);h--;)B[l++]=c;break;case 17:for(h=3+A.readBits(3);h--;)B[l++]=0;c=0;break;case 18:for(h=11+A.readBits(7);h--;)B[l++]=0;c=0;break;default:B[l++]=s,c=s}u(A,f(B.subarray(0,t)),f(B.subarray(t)))}}A.bitPos>0&&A.moveForwardsBy(1)}var h=[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,0,0],c=[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];function u(A,I,g){for(var i,t=0;(i=y(A,I))&&256!==i;){if(++t>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");i<256||(A.readBits(h[i-257]),i=y(A,g),A.readBits(c[i]))}}function f(A){for(var I=Math.max.apply(Math,A),g=Math.min.apply(Math,A),i=1<<I,t=new Uint32Array(i),e=1,r=0,C=2;e<=I;){for(var n=0;n<A.length;n++)if(A[n]===e){var o=void 0,B=void 0,a=void 0;for(o=0,B=r,a=0;a<e;a++)o=o<<1|1&B,B>>=1;for(var E=e<<16|n,Q=o;Q<i;Q+=C)t[Q]=E;r++}e++,r<<=1,C<<=1}return[t,I,g]}function y(A,I){var g=t()(I,2),i=g[0],e=g[1],r=i[A.readBits(e)&(1<<e)-1],C=r>>>16;if(C>e)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${A.position}: ${C}`);return A.moveBackwardsByBits(e-C),65535&r}g(0);
/**
 * File type functions
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 *
 */
function l(A,I){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(A.length){for(var i=0;i<A.length;i++)if(w(A[i],I,g))return!0;return!1}return w(A,I,g)}function w(A,I){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(var i in A){var t=parseInt(i,10)+g;switch(typeof A[i]){case"number":if(I[t]!==A[i])return!1;break;case"object":if(A[i].indexOf(I[t])<0)return!1;break;case"function":if(!A[i](I[t]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${i}`)}}return!0}function F(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(r);if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),!(A&&A.length>1))return[];var g=[],i={};for(var t in r)I.includes(t)&&(i[t]=r[t]);for(var e in i){i[e].forEach((function(I){l(I.signature,A)&&g.push(I)}))}return g}function D(A){return function(A,I){var g=F(I);if(!g||!g.length)return!1;if("string"==typeof A)return g.reduce((function(I,g){var i=!!g.mime.startsWith(A)&&g.mime;return I||i}),!1);if(A instanceof RegExp)return g.reduce((function(I,g){var i=!!A.test(g.mime)&&g.mime;return I||i}),!1);throw new Error("Invalid type input.")}("image",A)}g.d(I,"a",(function(){return F})),g.d(I,"b",(function(){return D}))},2:function(A,I){function g(A,I){for(var g=0;g<I.length;g++){var i=I[g];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(A,i.key,i)}}A.exports=function(A,I,i){return I&&g(A.prototype,I),i&&g(A,i),A}},22:function(A,I){A.exports=function(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}},23:function(A,I,g){!function(A){var I,g,i,t=String.fromCharCode;function e(A){for(var I,g,i=[],t=0,e=A.length;t<e;)(I=A.charCodeAt(t++))>=55296&&I<=56319&&t<e?56320==(64512&(g=A.charCodeAt(t++)))?i.push(((1023&I)<<10)+(1023&g)+65536):(i.push(I),t--):i.push(I);return i}function r(A){if(A>=55296&&A<=57343)throw Error("Lone surrogate U+"+A.toString(16).toUpperCase()+" is not a scalar value")}function C(A,I){return t(A>>I&63|128)}function n(A){if(0==(4294967168&A))return t(A);var I="";return 0==(4294965248&A)?I=t(A>>6&31|192):0==(4294901760&A)?(r(A),I=t(A>>12&15|224),I+=C(A,6)):0==(4292870144&A)&&(I=t(A>>18&7|240),I+=C(A,12),I+=C(A,6)),I+=t(63&A|128)}function o(){if(i>=g)throw Error("Invalid byte index");var A=255&I[i];if(i++,128==(192&A))return 63&A;throw Error("Invalid continuation byte")}function B(){var A,t;if(i>g)throw Error("Invalid byte index");if(i==g)return!1;if(A=255&I[i],i++,0==(128&A))return A;if(192==(224&A)){if((t=(31&A)<<6|o())>=128)return t;throw Error("Invalid continuation byte")}if(224==(240&A)){if((t=(15&A)<<12|o()<<6|o())>=2048)return r(t),t;throw Error("Invalid continuation byte")}if(240==(248&A)&&(t=(7&A)<<18|o()<<12|o()<<6|o())>=65536&&t<=1114111)return t;throw Error("Invalid UTF-8 detected")}A.version="3.0.0",A.encode=function(A){for(var I=e(A),g=I.length,i=-1,t="";++i<g;)t+=n(I[i]);return t},A.decode=function(A){I=e(A),g=I.length,i=0;for(var r,C=[];!1!==(r=B());)C.push(r);return function(A){for(var I,g=A.length,i=-1,e="";++i<g;)(I=A[i])>65535&&(e+=t((I-=65536)>>>10&1023|55296),I=56320|1023&I),e+=t(I);return e}(C)}}(I)},24:function(A,I,g){var i,t;!function(e,r){"use strict";void 0===(t="function"==typeof(i=function(){var A=function(){},I="undefined",g=typeof window!==I&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"];function t(A,I){var g=A[I];if("function"==typeof g.bind)return g.bind(A);try{return Function.prototype.bind.call(g,A)}catch(I){return function(){return Function.prototype.apply.apply(g,[A,arguments])}}}function e(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function r(I,g){for(var t=0;t<i.length;t++){var e=i[t];this[e]=t<I?A:this.methodFactory(e,I,g)}this.log=this.debug}function C(A,g,i){return function(){typeof console!==I&&(r.call(this,g,i),this[A].apply(this,arguments))}}function n(i,r,n){return function(i){return"debug"===i&&(i="log"),typeof console!==I&&("trace"===i&&g?e:void 0!==console[i]?t(console,i):void 0!==console.log?t(console,"log"):A)}(i)||C.apply(this,arguments)}function o(A,g,t){var e,C=this,o="loglevel";function B(){var A;if(typeof window!==I){try{A=window.localStorage[o]}catch(A){}if(typeof A===I)try{var g=window.document.cookie,i=g.indexOf(encodeURIComponent(o)+"=");-1!==i&&(A=/^([^;]+)/.exec(g.slice(i))[1])}catch(A){}return void 0===C.levels[A]&&(A=void 0),A}}A&&(o+=":"+A),C.name=A,C.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},C.methodFactory=t||n,C.getLevel=function(){return e},C.setLevel=function(g,t){if("string"==typeof g&&void 0!==C.levels[g.toUpperCase()]&&(g=C.levels[g.toUpperCase()]),!("number"==typeof g&&g>=0&&g<=C.levels.SILENT))throw"log.setLevel() called with invalid level: "+g;if(e=g,!1!==t&&function(A){var g=(i[A]||"silent").toUpperCase();if(typeof window!==I){try{return void(window.localStorage[o]=g)}catch(A){}try{window.document.cookie=encodeURIComponent(o)+"="+g+";"}catch(A){}}}(g),r.call(C,g,A),typeof console===I&&g<C.levels.SILENT)return"No console available for logging"},C.setDefaultLevel=function(A){B()||C.setLevel(A,!1)},C.enableAll=function(A){C.setLevel(C.levels.TRACE,A)},C.disableAll=function(A){C.setLevel(C.levels.SILENT,A)};var a=B();null==a&&(a=null==g?"WARN":g),C.setLevel(a,!1)}var B=new o,a={};B.getLogger=function(A){if("string"!=typeof A||""===A)throw new TypeError("You must supply a name when creating a logger.");var I=a[A];return I||(I=a[A]=new o(A,B.getLevel(),B.methodFactory)),I};var E=typeof window!==I?window.log:void 0;return B.noConflict=function(){return typeof window!==I&&window.log===B&&(window.log=E),B},B.getLoggers=function(){return a},B})?i.call(I,g,I,A):i)||(A.exports=t)}()},25:function(A,I){var g,i,t=A.exports={};function e(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function C(A){if(g===setTimeout)return setTimeout(A,0);if((g===e||!g)&&setTimeout)return g=setTimeout,setTimeout(A,0);try{return g(A,0)}catch(I){try{return g.call(null,A,0)}catch(I){return g.call(this,A,0)}}}!function(){try{g="function"==typeof setTimeout?setTimeout:e}catch(A){g=e}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(A){i=r}}();var n,o=[],B=!1,a=-1;function E(){B&&n&&(B=!1,n.length?o=n.concat(o):a=-1,o.length&&Q())}function Q(){if(!B){var A=C(E);B=!0;for(var I=o.length;I;){for(n=o,o=[];++a<I;)n&&n[a].run();a=-1,I=o.length}n=null,B=!1,function(A){if(i===clearTimeout)return clearTimeout(A);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(A);try{i(A)}catch(I){try{return i.call(null,A)}catch(I){return i.call(this,A)}}}(A)}}function s(A,I){this.fun=A,this.array=I}function h(){}t.nextTick=function(A){var I=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)I[g-1]=arguments[g];o.push(new s(A,I)),1!==o.length||B||C(Q)},s.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(A){return[]},t.binding=function(A){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(A){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},257:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";function A(A){throw A}var I=void 0,g=!0,i=this;function t(A,g){var t,e=A.split("."),r=i;!(e[0]in r)&&r.execScript&&r.execScript("var "+e[0]);for(;e.length&&(t=e.shift());)e.length||g===I?r=r[t]?r[t]:r[t]={}:r[t]=g}var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function r(I,g){this.index="number"==typeof g?g:0,this.m=0,this.buffer=I instanceof(e?Uint8Array:Array)?I:new(e?Uint8Array:Array)(32768),2*this.buffer.length<=this.index&&A(Error("invalid index")),this.buffer.length<=this.index&&this.f()}r.prototype.f=function(){var A,I=this.buffer,g=I.length,i=new(e?Uint8Array:Array)(g<<1);if(e)i.set(I);else for(A=0;A<g;++A)i[A]=I[A];return this.buffer=i},r.prototype.d=function(A,I,g){var i,t=this.buffer,e=this.index,r=this.m,C=t[e];if(g&&1<I&&(A=8<I?(E[255&A]<<24|E[A>>>8&255]<<16|E[A>>>16&255]<<8|E[A>>>24&255])>>32-I:E[A]>>8-I),8>I+r)C=C<<I|A,r+=I;else for(i=0;i<I;++i)C=C<<1|A>>I-i-1&1,8==++r&&(r=0,t[e++]=E[C],C=0,e===t.length&&(t=this.f()));t[e]=C,this.buffer=t,this.m=r,this.index=e},r.prototype.finish=function(){var A,I=this.buffer,g=this.index;return 0<this.m&&(I[g]<<=8-this.m,I[g]=E[I[g]],g++),e?A=I.subarray(0,g):(I.length=g,A=I),A};var C,n=new(e?Uint8Array:Array)(256);for(C=0;256>C;++C){for(var o=a=C,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;n[C]=(o<<B&255)>>>0}var E=n;function Q(A,I,g){var i,t="number"==typeof I?I:I=0,e="number"==typeof g?g:A.length;for(i=-1,t=7&e;t--;++I)i=i>>>8^h[255&(i^A[I])];for(t=e>>3;t--;I+=8)i=(i=(i=(i=(i=(i=(i=(i=i>>>8^h[255&(i^A[I])])>>>8^h[255&(i^A[I+1])])>>>8^h[255&(i^A[I+2])])>>>8^h[255&(i^A[I+3])])>>>8^h[255&(i^A[I+4])])>>>8^h[255&(i^A[I+5])])>>>8^h[255&(i^A[I+6])])>>>8^h[255&(i^A[I+7])];return(4294967295^i)>>>0}var s=[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,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],h=e?new Uint32Array(s):s;function c(){}function u(A){this.buffer=new(e?Uint16Array:Array)(2*A),this.length=0}function f(A){var I,g,i,t,r,C,n,o,B,a,E=A.length,Q=0,s=Number.POSITIVE_INFINITY;for(o=0;o<E;++o)A[o]>Q&&(Q=A[o]),A[o]<s&&(s=A[o]);for(I=1<<Q,g=new(e?Uint32Array:Array)(I),i=1,t=0,r=2;i<=Q;){for(o=0;o<E;++o)if(A[o]===i){for(C=0,n=t,B=0;B<i;++B)C=C<<1|1&n,n>>=1;for(a=i<<16|o,B=C;B<I;B+=r)g[B]=a;++t}++i,t<<=1,r<<=1}return[g,Q,s]}function y(A,I){this.k=w,this.I=0,this.input=e&&A instanceof Array?new Uint8Array(A):A,this.b=0,I&&(I.lazy&&(this.I=I.lazy),"number"==typeof I.compressionType&&(this.k=I.compressionType),I.outputBuffer&&(this.a=e&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.b=I.outputIndex)),this.a||(this.a=new(e?Uint8Array:Array)(32768))}c.prototype.getName=function(){return this.name},c.prototype.getData=function(){return this.data},c.prototype.X=function(){return this.Y},u.prototype.getParent=function(A){return 2*((A-2)/4|0)},u.prototype.push=function(A,I){var g,i,t,e=this.buffer;for(g=this.length,e[this.length++]=I,e[this.length++]=A;0<g&&(i=this.getParent(g),e[g]>e[i]);)t=e[g],e[g]=e[i],e[i]=t,t=e[g+1],e[g+1]=e[i+1],e[i+1]=t,g=i;return this.length},u.prototype.pop=function(){var A,I,g,i,t,e=this.buffer;for(I=e[0],A=e[1],this.length-=2,e[0]=e[this.length],e[1]=e[this.length+1],t=0;!((i=2*t+2)>=this.length)&&(i+2<this.length&&e[i+2]>e[i]&&(i+=2),e[i]>e[t]);)g=e[t],e[t]=e[i],e[i]=g,g=e[t+1],e[t+1]=e[i+1],e[i+1]=g,t=i;return{index:A,value:I,length:this.length}};var l,w=2,F={NONE:0,v:1,o:w,aa:3},D=[];for(l=0;288>l;l++)switch(g){case 143>=l:D.push([l+48,8]);break;case 255>=l:D.push([l-144+400,9]);break;case 279>=l:D.push([l-256+0,7]);break;case 287>=l:D.push([l-280+192,8]);break;default:A("invalid literal: "+l)}function p(A,I){this.length=A,this.P=I}y.prototype.g=function(){var i,t,C,n,o=this.input;switch(this.k){case 0:for(C=0,n=o.length;C<n;){var B,a,E,Q=t=e?o.subarray(C,C+65535):o.slice(C,C+65535),s=(C+=t.length)===n,h=I,c=I,u=this.a,f=this.b;if(e){for(u=new Uint8Array(this.a.buffer);u.length<=f+Q.length+5;)u=new Uint8Array(u.length<<1);u.set(this.a)}if(B=s?1:0,u[f++]=0|B,E=65536+~(a=Q.length)&65535,u[f++]=255&a,u[f++]=a>>>8&255,u[f++]=255&E,u[f++]=E>>>8&255,e)u.set(Q,f),f+=Q.length,u=u.subarray(0,f);else{for(h=0,c=Q.length;h<c;++h)u[f++]=Q[h];u.length=f}this.b=f,this.a=u}break;case 1:var y=new r(e?new Uint8Array(this.a.buffer):this.a,this.b);y.d(1,1,g),y.d(1,2,g);var l,F,p,S=U(this,o);for(l=0,F=S.length;l<F;l++)if(p=S[l],r.prototype.d.apply(y,D[p]),256<p)y.d(S[++l],S[++l],g),y.d(S[++l],5),y.d(S[++l],S[++l],g);else if(256===p)break;this.a=y.finish(),this.b=this.a.length;break;case w:var d,G,Y,M,N,R,b,v,H,L,J,K,q,T,x,V=new r(e?new Uint8Array(this.a.buffer):this.a,this.b),W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Z=Array(19);for(d=w,V.d(1,1,g),V.d(d,2,g),G=U(this,o),b=k(R=m(this.V,15)),H=k(v=m(this.U,7)),Y=286;257<Y&&0===R[Y-1];Y--);for(M=30;1<M&&0===v[M-1];M--);var O,j,X,P,z,_,$=Y,AA=M,IA=new(e?Uint32Array:Array)($+AA),gA=new(e?Uint32Array:Array)(316),iA=new(e?Uint8Array:Array)(19);for(O=j=0;O<$;O++)IA[j++]=R[O];for(O=0;O<AA;O++)IA[j++]=v[O];if(!e)for(O=0,P=iA.length;O<P;++O)iA[O]=0;for(O=z=0,P=IA.length;O<P;O+=j){for(j=1;O+j<P&&IA[O+j]===IA[O];++j);if(X=j,0===IA[O])if(3>X)for(;0<X--;)gA[z++]=0,iA[0]++;else for(;0<X;)(_=138>X?X:138)>X-3&&_<X&&(_=X-3),10>=_?(gA[z++]=17,gA[z++]=_-3,iA[17]++):(gA[z++]=18,gA[z++]=_-11,iA[18]++),X-=_;else if(gA[z++]=IA[O],iA[IA[O]]++,3>--X)for(;0<X--;)gA[z++]=IA[O],iA[IA[O]]++;else for(;0<X;)(_=6>X?X:6)>X-3&&_<X&&(_=X-3),gA[z++]=16,gA[z++]=_-3,iA[16]++,X-=_}for(i=e?gA.subarray(0,z):gA.slice(0,z),L=m(iA,7),T=0;19>T;T++)Z[T]=L[W[T]];for(N=19;4<N&&0===Z[N-1];N--);for(J=k(L),V.d(Y-257,5,g),V.d(M-1,5,g),V.d(N-4,4,g),T=0;T<N;T++)V.d(Z[T],3,g);for(T=0,x=i.length;T<x;T++)if(K=i[T],V.d(J[K],L[K],g),16<=K){switch(T++,K){case 16:q=2;break;case 17:q=3;break;case 18:q=7;break;default:A("invalid code: "+K)}V.d(i[T],q,g)}var tA,eA,rA,CA,nA,oA,BA,aA,EA=[b,R],QA=[H,v];for(nA=EA[0],oA=EA[1],BA=QA[0],aA=QA[1],tA=0,eA=G.length;tA<eA;++tA)if(rA=G[tA],V.d(nA[rA],oA[rA],g),256<rA)V.d(G[++tA],G[++tA],g),CA=G[++tA],V.d(BA[CA],aA[CA],g),V.d(G[++tA],G[++tA],g);else if(256===rA)break;this.a=V.finish(),this.b=this.a.length;break;default:A("invalid compression type")}return this.a};var S=function(){function I(I){switch(g){case 3===I:return[257,I-3,0];case 4===I:return[258,I-4,0];case 5===I:return[259,I-5,0];case 6===I:return[260,I-6,0];case 7===I:return[261,I-7,0];case 8===I:return[262,I-8,0];case 9===I:return[263,I-9,0];case 10===I:return[264,I-10,0];case 12>=I:return[265,I-11,1];case 14>=I:return[266,I-13,1];case 16>=I:return[267,I-15,1];case 18>=I:return[268,I-17,1];case 22>=I:return[269,I-19,2];case 26>=I:return[270,I-23,2];case 30>=I:return[271,I-27,2];case 34>=I:return[272,I-31,2];case 42>=I:return[273,I-35,3];case 50>=I:return[274,I-43,3];case 58>=I:return[275,I-51,3];case 66>=I:return[276,I-59,3];case 82>=I:return[277,I-67,4];case 98>=I:return[278,I-83,4];case 114>=I:return[279,I-99,4];case 130>=I:return[280,I-115,4];case 162>=I:return[281,I-131,5];case 194>=I:return[282,I-163,5];case 226>=I:return[283,I-195,5];case 257>=I:return[284,I-227,5];case 258===I:return[285,I-258,0];default:A("invalid length: "+I)}}var i,t,e=[];for(i=3;258>=i;i++)t=I(i),e[i]=t[2]<<24|t[1]<<16|t[0];return e}(),d=e?new Uint32Array(S):S;function U(i,t){function r(I,i){var t,e,r,C,n=I.P,o=[],B=0;switch(t=d[I.length],o[B++]=65535&t,o[B++]=t>>16&255,o[B++]=t>>24,g){case 1===n:e=[0,n-1,0];break;case 2===n:e=[1,n-2,0];break;case 3===n:e=[2,n-3,0];break;case 4===n:e=[3,n-4,0];break;case 6>=n:e=[4,n-5,1];break;case 8>=n:e=[5,n-7,1];break;case 12>=n:e=[6,n-9,2];break;case 16>=n:e=[7,n-13,2];break;case 24>=n:e=[8,n-17,3];break;case 32>=n:e=[9,n-25,3];break;case 48>=n:e=[10,n-33,4];break;case 64>=n:e=[11,n-49,4];break;case 96>=n:e=[12,n-65,5];break;case 128>=n:e=[13,n-97,5];break;case 192>=n:e=[14,n-129,6];break;case 256>=n:e=[15,n-193,6];break;case 384>=n:e=[16,n-257,7];break;case 512>=n:e=[17,n-385,7];break;case 768>=n:e=[18,n-513,8];break;case 1024>=n:e=[19,n-769,8];break;case 1536>=n:e=[20,n-1025,9];break;case 2048>=n:e=[21,n-1537,9];break;case 3072>=n:e=[22,n-2049,10];break;case 4096>=n:e=[23,n-3073,10];break;case 6144>=n:e=[24,n-4097,11];break;case 8192>=n:e=[25,n-6145,11];break;case 12288>=n:e=[26,n-8193,12];break;case 16384>=n:e=[27,n-12289,12];break;case 24576>=n:e=[28,n-16385,13];break;case 32768>=n:e=[29,n-24577,13];break;default:A("invalid distance")}for(t=e,o[B++]=t[0],o[B++]=t[1],o[B++]=t[2],r=0,C=o.length;r<C;++r)u[f++]=o[r];l[o[0]]++,w[o[3]]++,y=I.length+i-1,s=null}var C,n,o,B,a,E,Q,s,h,c={},u=e?new Uint16Array(2*t.length):[],f=0,y=0,l=new(e?Uint32Array:Array)(286),w=new(e?Uint32Array:Array)(30),F=i.I;if(!e){for(o=0;285>=o;)l[o++]=0;for(o=0;29>=o;)w[o++]=0}for(l[256]=1,C=0,n=t.length;C<n;++C){for(o=a=0,B=3;o<B&&C+o!==n;++o)a=a<<8|t[C+o];if(c[a]===I&&(c[a]=[]),E=c[a],!(0<y--)){for(;0<E.length&&32768<C-E[0];)E.shift();if(C+3>=n){for(s&&r(s,-1),o=0,B=n-C;o<B;++o)h=t[C+o],u[f++]=h,++l[h];break}0<E.length?(Q=G(t,C,E),s?s.length<Q.length?(h=t[C-1],u[f++]=h,++l[h],r(Q,0)):r(s,-1):Q.length<F?s=Q:r(Q,0)):s?r(s,-1):(h=t[C],u[f++]=h,++l[h])}E.push(C)}return u[f++]=256,l[256]++,i.V=l,i.U=w,e?u.subarray(0,f):u}function G(A,I,g){var i,t,e,r,C,n,o=0,B=A.length;r=0,n=g.length;A:for(;r<n;r++){if(i=g[n-r-1],e=3,3<o){for(C=o;3<C;C--)if(A[i+C-1]!==A[I+C-1])continue A;e=o}for(;258>e&&I+e<B&&A[i+e]===A[I+e];)++e;if(e>o&&(t=i,o=e),258===e)break}return new p(o,I-t)}function m(A,I){var g,i,t,r,C,n=A.length,o=new u(572),B=new(e?Uint8Array:Array)(n);if(!e)for(r=0;r<n;r++)B[r]=0;for(r=0;r<n;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),i=new(e?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,C=o.length/2;r<C;++r)g[r]=o.pop(),i[r]=g[r].value;for(t=function(A,I,g){function i(A){var g=s[A][h[A]];g===I?(i(A+1),i(A+1)):--E[g],++h[A]}var t,r,C,n,o,B=new(e?Uint16Array:Array)(g),a=new(e?Uint8Array:Array)(g),E=new(e?Uint8Array:Array)(I),Q=Array(g),s=Array(g),h=Array(g),c=(1<<g)-I,u=1<<g-1;for(B[g-1]=I,r=0;r<g;++r)c<u?a[r]=0:(a[r]=1,c-=u),c<<=1,B[g-2-r]=(B[g-1-r]/2|0)+I;for(B[0]=a[0],Q[0]=Array(B[0]),s[0]=Array(B[0]),r=1;r<g;++r)B[r]>2*B[r-1]+a[r]&&(B[r]=2*B[r-1]+a[r]),Q[r]=Array(B[r]),s[r]=Array(B[r]);for(t=0;t<I;++t)E[t]=g;for(C=0;C<B[g-1];++C)Q[g-1][C]=A[C],s[g-1][C]=C;for(t=0;t<g;++t)h[t]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(n=t=0,o=h[r+1],C=0;C<B[r];C++)(n=Q[r+1][o]+Q[r+1][o+1])>A[t]?(Q[r][C]=n,s[r][C]=I,o+=2):(Q[r][C]=A[t],s[r][C]=t,++t);h[r]=0,1===a[r]&&i(r)}return E}(i,i.length,I),r=0,C=g.length;r<C;++r)B[g[r].index]=t[r];return B}function k(A){var I,g,i,t,r=new(e?Uint16Array:Array)(A.length),C=[],n=[],o=0;for(I=0,g=A.length;I<g;I++)C[A[I]]=1+(0|C[A[I]]);for(I=1,g=16;I<=g;I++)n[I]=o,o+=0|C[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=n[A[I]],n[A[I]]+=1,i=r[I]=0,t=A[I];i<t;i++)r[I]=r[I]<<1|1&o,o>>>=1;return r}function Y(A,I){this.input=A,this.b=this.c=0,this.i={},I&&(I.flags&&(this.i=I.flags),"string"==typeof I.filename&&(this.filename=I.filename),"string"==typeof I.comment&&(this.A=I.comment),I.deflateOptions&&(this.l=I.deflateOptions)),this.l||(this.l={})}Y.prototype.g=function(){var A,g,i,t,r,C,n,o,B=new(e?Uint8Array:Array)(32768),a=0,E=this.input,s=this.c,h=this.filename,c=this.A;if(B[a++]=31,B[a++]=139,B[a++]=8,A=0,this.i.fname&&(A|=R),this.i.fcomment&&(A|=b),this.i.fhcrc&&(A|=N),B[a++]=A,g=(Date.now?Date.now():+new Date)/1e3|0,B[a++]=255&g,B[a++]=g>>>8&255,B[a++]=g>>>16&255,B[a++]=g>>>24&255,B[a++]=0,B[a++]=M,this.i.fname!==I){for(n=0,o=h.length;n<o;++n)255<(C=h.charCodeAt(n))&&(B[a++]=C>>>8&255),B[a++]=255&C;B[a++]=0}if(this.i.comment){for(n=0,o=c.length;n<o;++n)255<(C=c.charCodeAt(n))&&(B[a++]=C>>>8&255),B[a++]=255&C;B[a++]=0}return this.i.fhcrc&&(i=65535&Q(B,0,a),B[a++]=255&i,B[a++]=i>>>8&255),this.l.outputBuffer=B,this.l.outputIndex=a,B=(r=new y(E,this.l)).g(),a=r.b,e&&(a+8>B.buffer.byteLength?(this.a=new Uint8Array(a+8),this.a.set(new Uint8Array(B.buffer)),B=this.a):B=new Uint8Array(B.buffer)),t=Q(E,I,I),B[a++]=255&t,B[a++]=t>>>8&255,B[a++]=t>>>16&255,B[a++]=t>>>24&255,o=E.length,B[a++]=255&o,B[a++]=o>>>8&255,B[a++]=o>>>16&255,B[a++]=o>>>24&255,this.c=s,e&&a<B.length&&(this.a=B=B.subarray(0,a)),B};var M=255,N=2,R=8,b=16;function v(I,g){switch(this.p=[],this.q=32768,this.e=this.j=this.c=this.u=0,this.input=e?new Uint8Array(I):I,this.w=!1,this.r=L,this.L=!1,!g&&(g={})||(g.index&&(this.c=g.index),g.bufferSize&&(this.q=g.bufferSize),g.bufferType&&(this.r=g.bufferType),g.resize&&(this.L=g.resize)),this.r){case H:this.b=32768,this.a=new(e?Uint8Array:Array)(32768+this.q+258);break;case L:this.b=0,this.a=new(e?Uint8Array:Array)(this.q),this.f=this.T,this.B=this.Q,this.s=this.S;break;default:A(Error("invalid inflate mode"))}}var H=0,L=1,J={N:H,M:L};v.prototype.h=function(){for(;!this.w;){var i=tA(this,3);switch(1&i&&(this.w=g),i>>>=1){case 0:var t=this.input,r=this.c,C=this.a,n=this.b,o=t.length,B=I,a=C.length,E=I;switch(this.e=this.j=0,r+1>=o&&A(Error("invalid uncompressed block header: LEN")),B=t[r++]|t[r++]<<8,r+1>=o&&A(Error("invalid uncompressed block header: NLEN")),B===~(t[r++]|t[r++]<<8)&&A(Error("invalid uncompressed block header: length verify")),r+B>t.length&&A(Error("input buffer is broken")),this.r){case H:for(;n+B>C.length;){if(B-=E=a-n,e)C.set(t.subarray(r,r+E),n),n+=E,r+=E;else for(;E--;)C[n++]=t[r++];this.b=n,C=this.f(),n=this.b}break;case L:for(;n+B>C.length;)C=this.f({F:2});break;default:A(Error("invalid inflate mode"))}if(e)C.set(t.subarray(r,r+B),n),n+=B,r+=B;else for(;B--;)C[n++]=t[r++];this.c=r,this.b=n,this.a=C;break;case 1:this.s(IA,iA);break;case 2:var Q,s,h,c,u=tA(this,5)+257,y=tA(this,5)+1,l=tA(this,4)+4,w=new(e?Uint8Array:Array)(x.length),F=I,D=I,p=I,S=I,d=I;for(d=0;d<l;++d)w[x[d]]=tA(this,3);if(!e)for(d=l,l=w.length;d<l;++d)w[x[d]]=0;for(Q=f(w),F=new(e?Uint8Array:Array)(u+y),d=0,c=u+y;d<c;)switch(D=eA(this,Q),D){case 16:for(S=3+tA(this,2);S--;)F[d++]=p;break;case 17:for(S=3+tA(this,3);S--;)F[d++]=0;p=0;break;case 18:for(S=11+tA(this,7);S--;)F[d++]=0;p=0;break;default:p=F[d++]=D}s=f(e?F.subarray(0,u):F.slice(0,u)),h=f(e?F.subarray(u):F.slice(u)),this.s(s,h);break;default:A(Error("unknown BTYPE: "+i))}}return this.B()};var K,q,T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x=e?new Uint16Array(T):T,V=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],W=e?new Uint16Array(V):V,Z=[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,0,0],O=e?new Uint8Array(Z):Z,j=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],X=e?new Uint16Array(j):j,P=[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],z=e?new Uint8Array(P):P,_=new(e?Uint8Array:Array)(288);for(K=0,q=_.length;K<q;++K)_[K]=143>=K?8:255>=K?9:279>=K?7:8;var $,AA,IA=f(_),gA=new(e?Uint8Array:Array)(30);for($=0,AA=gA.length;$<AA;++$)gA[$]=5;var iA=f(gA);function tA(I,g){for(var i,t=I.j,e=I.e,r=I.input,C=I.c,n=r.length;e<g;)C>=n&&A(Error("input buffer is broken")),t|=r[C++]<<e,e+=8;return i=t&(1<<g)-1,I.j=t>>>g,I.e=e-g,I.c=C,i}function eA(I,g){for(var i,t,e=I.j,r=I.e,C=I.input,n=I.c,o=C.length,B=g[0],a=g[1];r<a&&!(n>=o);)e|=C[n++]<<r,r+=8;return(t=(i=B[e&(1<<a)-1])>>>16)>r&&A(Error("invalid code length: "+t)),I.j=e>>t,I.e=r-t,I.c=n,65535&i}function rA(A){this.input=A,this.c=0,this.t=[],this.D=!1}function CA(A){if("string"==typeof A){var I,g,i=A.split("");for(I=0,g=i.length;I<g;I++)i[I]=(255&i[I].charCodeAt(0))>>>0;A=i}for(var t,e=1,r=0,C=A.length,n=0;0<C;){C-=t=1024<C?1024:C;do{r+=e+=A[n++]}while(--t);e%=65521,r%=65521}return(r<<16|e)>>>0}function nA(I,g){var i,t;switch(this.input=I,this.c=0,!g&&(g={})||(g.index&&(this.c=g.index),g.verify&&(this.Z=g.verify)),i=I[this.c++],t=I[this.c++],15&i){case oA:this.method=oA;break;default:A(Error("unsupported compression method"))}0!=((i<<8)+t)%31&&A(Error("invalid fcheck flag:"+((i<<8)+t)%31)),32&t&&A(Error("fdict flag is not supported")),this.K=new v(I,{index:this.c,bufferSize:g.bufferSize,bufferType:g.bufferType,resize:g.resize})}v.prototype.s=function(A,I){var g=this.a,i=this.b;this.C=A;for(var t,e,r,C,n=g.length-258;256!==(t=eA(this,A));)if(256>t)i>=n&&(this.b=i,g=this.f(),i=this.b),g[i++]=t;else for(C=W[e=t-257],0<O[e]&&(C+=tA(this,O[e])),t=eA(this,I),r=X[t],0<z[t]&&(r+=tA(this,z[t])),i>=n&&(this.b=i,g=this.f(),i=this.b);C--;)g[i]=g[i++-r];for(;8<=this.e;)this.e-=8,this.c--;this.b=i},v.prototype.S=function(A,I){var g=this.a,i=this.b;this.C=A;for(var t,e,r,C,n=g.length;256!==(t=eA(this,A));)if(256>t)i>=n&&(n=(g=this.f()).length),g[i++]=t;else for(C=W[e=t-257],0<O[e]&&(C+=tA(this,O[e])),t=eA(this,I),r=X[t],0<z[t]&&(r+=tA(this,z[t])),i+C>n&&(n=(g=this.f()).length);C--;)g[i]=g[i++-r];for(;8<=this.e;)this.e-=8,this.c--;this.b=i},v.prototype.f=function(){var A,I,g=new(e?Uint8Array:Array)(this.b-32768),i=this.b-32768,t=this.a;if(e)g.set(t.subarray(32768,g.length));else for(A=0,I=g.length;A<I;++A)g[A]=t[A+32768];if(this.p.push(g),this.u+=g.length,e)t.set(t.subarray(i,i+32768));else for(A=0;32768>A;++A)t[A]=t[i+A];return this.b=32768,t},v.prototype.T=function(A){var I,g,i,t=this.input.length/this.c+1|0,r=this.input,C=this.a;return A&&("number"==typeof A.F&&(t=A.F),"number"==typeof A.O&&(t+=A.O)),2>t?g=(i=(r.length-this.c)/this.C[2]/2*258|0)<C.length?C.length+i:C.length<<1:g=C.length*t,e?(I=new Uint8Array(g)).set(C):I=C,this.a=I},v.prototype.B=function(){var A,I,g,i,t,r=0,C=this.a,n=this.p,o=new(e?Uint8Array:Array)(this.u+(this.b-32768));if(0===n.length)return e?this.a.subarray(32768,this.b):this.a.slice(32768,this.b);for(I=0,g=n.length;I<g;++I)for(i=0,t=(A=n[I]).length;i<t;++i)o[r++]=A[i];for(I=32768,g=this.b;I<g;++I)o[r++]=C[I];return this.p=[],this.buffer=o},v.prototype.Q=function(){var A,I=this.b;return e?this.L?(A=new Uint8Array(I)).set(this.a.subarray(0,I)):A=this.a.subarray(0,I):(this.a.length>I&&(this.a.length=I),A=this.a),this.buffer=A},rA.prototype.W=function(){return this.D||this.h(),this.t.slice()},rA.prototype.h=function(){for(var i=this.input.length;this.c<i;){var t,r,C=new c,n=I,o=I,B=I,a=I,E=I,s=I,h=I,u=this.input,f=this.c;switch(C.G=u[f++],C.H=u[f++],(31!==C.G||139!==C.H)&&A(Error("invalid file signature:"+C.G+","+C.H)),C.z=u[f++],C.z){case 8:break;default:A(Error("unknown compression method: "+C.z))}if(C.n=u[f++],r=u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24,C.Y=new Date(1e3*r),C.ea=u[f++],C.da=u[f++],0<(4&C.n)&&(C.$=u[f++]|u[f++]<<8,f+=C.$),0<(C.n&R)){for(s=[],E=0;0<(a=u[f++]);)s[E++]=String.fromCharCode(a);C.name=s.join("")}if(0<(C.n&b)){for(s=[],E=0;0<(a=u[f++]);)s[E++]=String.fromCharCode(a);C.A=s.join("")}0<(C.n&N)&&(C.R=65535&Q(u,0,f),C.R!==(u[f++]|u[f++]<<8)&&A(Error("invalid header crc16"))),n=u[u.length-4]|u[u.length-3]<<8|u[u.length-2]<<16|u[u.length-1]<<24,u.length-f-4-4<512*n&&(B=n),o=new v(u,{index:f,bufferSize:B}),C.data=t=o.h(),f=o.c,C.ba=h=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,Q(t,I,I)!==h&&A(Error("invalid CRC-32 checksum: 0x"+Q(t,I,I).toString(16)+" / 0x"+h.toString(16))),C.ca=n=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,(4294967295&t.length)!==n&&A(Error("invalid input size: "+(4294967295&t.length)+" / "+n)),this.t.push(C),this.c=f}this.D=g;var y,l,w,F=this.t,D=0,p=0;for(y=0,l=F.length;y<l;++y)p+=F[y].data.length;if(e)for(w=new Uint8Array(p),y=0;y<l;++y)w.set(F[y].data,D),D+=F[y].data.length;else{for(w=[],y=0;y<l;++y)w[y]=F[y].data;w=Array.prototype.concat.apply([],w)}return w},nA.prototype.h=function(){var I,g=this.input;return I=this.K.h(),this.c=this.K.c,this.Z&&((g[this.c++]<<24|g[this.c++]<<16|g[this.c++]<<8|g[this.c++])>>>0!==CA(I)&&A(Error("invalid adler-32 checksum"))),I};var oA=8;function BA(A,I){this.input=A,this.a=new(e?Uint8Array:Array)(32768),this.k=aA.o;var g,i={};for(g in!I&&(I={})||"number"!=typeof I.compressionType||(this.k=I.compressionType),I)i[g]=I[g];i.outputBuffer=this.a,this.J=new y(this.input,i)}var aA=F;function EA(A,I){var g,i,e,r;if(Object.keys)g=Object.keys(I);else for(i in g=[],e=0,I)g[e++]=i;for(e=0,r=g.length;e<r;++e)t(A+"."+(i=g[e]),I[i])}BA.prototype.g=function(){var I,g,i,t,r,C,n,o=0;switch(n=this.a,I=oA){case oA:g=Math.LOG2E*Math.log(32768)-8;break;default:A(Error("invalid compression method"))}switch(i=g<<4|I,n[o++]=i,I){case oA:switch(this.k){case aA.NONE:r=0;break;case aA.v:r=1;break;case aA.o:r=2;break;default:A(Error("unsupported compression type"))}break;default:A(Error("invalid compression method"))}return t=r<<6|0,n[o++]=t|31-(256*i+t)%31,C=CA(this.input),this.J.b=o,o=(n=this.J.g()).length,e&&((n=new Uint8Array(n.buffer)).length<=o+4&&(this.a=new Uint8Array(n.length+4),this.a.set(n),n=this.a),n=n.subarray(0,o+4)),n[o++]=C>>24&255,n[o++]=C>>16&255,n[o++]=C>>8&255,n[o++]=255&C,n},t("Zlib.Inflate",nA),t("Zlib.Inflate.prototype.decompress",nA.prototype.h),EA("Zlib.Inflate.BufferType",{ADAPTIVE:J.M,BLOCK:J.N}),t("Zlib.Deflate",BA),t("Zlib.Deflate.compress",(function(A,I){return new BA(A,I).g()})),t("Zlib.Deflate.prototype.compress",BA.prototype.g),EA("Zlib.Deflate.CompressionType",{NONE:aA.NONE,FIXED:aA.v,DYNAMIC:aA.o}),t("Zlib.Gzip",Y),t("Zlib.Gzip.prototype.compress",Y.prototype.g),t("Zlib.Gunzip",rA),t("Zlib.Gunzip.prototype.decompress",rA.prototype.h),t("Zlib.Gunzip.prototype.getMembers",rA.prototype.W),t("Zlib.GunzipMember",c),t("Zlib.GunzipMember.prototype.getName",c.prototype.getName),t("Zlib.GunzipMember.prototype.getData",c.prototype.getData),t("Zlib.GunzipMember.prototype.getMtime",c.prototype.X)}).call(this)},26:function(A,I){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(A){"object"==typeof window&&(g=window)}A.exports=g},27:function(A,I,g){"use strict";g.d(I,"a",(function(){return t}));var i=g(0);
/**
 * Binary functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */function t(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Space",g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,t=i.b.regexRep(I);A=A.replace(t,"");for(var e=[],r=0;r<A.length;r+=g)e.push(parseInt(A.substr(r,g),2));return e}},273:function(A,I,g){(function(A){function g(A,I){for(var g=0,i=A.length-1;i>=0;i--){var t=A[i];"."===t?A.splice(i,1):".."===t?(A.splice(i,1),g++):g&&(A.splice(i,1),g--)}if(I)for(;g--;g)A.unshift("..");return A}function i(A,I){if(A.filter)return A.filter(I);for(var g=[],i=0;i<A.length;i++)I(A[i],i,A)&&g.push(A[i]);return g}I.resolve=function(){for(var I="",t=!1,e=arguments.length-1;e>=-1&&!t;e--){var r=e>=0?arguments[e]:A.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(I=r+"/"+I,t="/"===r.charAt(0))}return(t?"/":"")+(I=g(i(I.split("/"),(function(A){return!!A})),!t).join("/"))||"."},I.normalize=function(A){var e=I.isAbsolute(A),r="/"===t(A,-1);return(A=g(i(A.split("/"),(function(A){return!!A})),!e).join("/"))||e||(A="."),A&&r&&(A+="/"),(e?"/":"")+A},I.isAbsolute=function(A){return"/"===A.charAt(0)},I.join=function(){var A=Array.prototype.slice.call(arguments,0);return I.normalize(i(A,(function(A,I){if("string"!=typeof A)throw new TypeError("Arguments to path.join must be strings");return A})).join("/"))},I.relative=function(A,g){function i(A){for(var I=0;I<A.length&&""===A[I];I++);for(var g=A.length-1;g>=0&&""===A[g];g--);return I>g?[]:A.slice(I,g-I+1)}A=I.resolve(A).substr(1),g=I.resolve(g).substr(1);for(var t=i(A.split("/")),e=i(g.split("/")),r=Math.min(t.length,e.length),C=r,n=0;n<r;n++)if(t[n]!==e[n]){C=n;break}var o=[];for(n=C;n<t.length;n++)o.push("..");return(o=o.concat(e.slice(C))).join("/")},I.sep="/",I.delimiter=":",I.dirname=function(A){if("string"!=typeof A&&(A+=""),0===A.length)return".";for(var I=A.charCodeAt(0),g=47===I,i=-1,t=!0,e=A.length-1;e>=1;--e)if(47===(I=A.charCodeAt(e))){if(!t){i=e;break}}else t=!1;return-1===i?g?"/":".":g&&1===i?"/":A.slice(0,i)},I.basename=function(A,I){var g=function(A){"string"!=typeof A&&(A+="");var I,g=0,i=-1,t=!0;for(I=A.length-1;I>=0;--I)if(47===A.charCodeAt(I)){if(!t){g=I+1;break}}else-1===i&&(t=!1,i=I+1);return-1===i?"":A.slice(g,i)}(A);return I&&g.substr(-1*I.length)===I&&(g=g.substr(0,g.length-I.length)),g},I.extname=function(A){"string"!=typeof A&&(A+="");for(var I=-1,g=0,i=-1,t=!0,e=0,r=A.length-1;r>=0;--r){var C=A.charCodeAt(r);if(47!==C)-1===i&&(t=!1,i=r+1),46===C?-1===I?I=r:1!==e&&(e=1):-1!==I&&(e=-1);else if(!t){g=r+1;break}}return-1===I||-1===i||0===e||1===e&&I===i-1&&I===g+1?"":A.slice(I,i)};var t="b"==="ab".substr(-1)?function(A,I,g){return A.substr(I,g)}:function(A,I,g){return I<0&&(I=A.length+I),A.substr(I,g)}}).call(this,g(25))},28:function(A,I,g){"use strict";g.d(I,"a",(function(){return t}));var i=g(0);
/**
 * Decimal functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */function t(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto";I=i.b.charRep(I);var g=[],t=A.split(I);""===t[t.length-1]&&(t=t.slice(0,t.length-1));for(var e=0;e<t.length;e++)g[e]=parseInt(t[e],10);return g}},3:function(A,I){function g(I){return A.exports=g=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},g(I)}A.exports=g},38:function(A,I){function g(I){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?A.exports=g=function(A){return typeof A}:A.exports=g=function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},g(I)}A.exports=g},39:function(A,I){function g(I,i){return A.exports=g=Object.setPrototypeOf||function(A,I){return A.__proto__=I,A},g(I,i)}A.exports=g},4:function(A,I,g){var i=g(38),t=g(22);A.exports=function(A,I){return!I||"object"!==i(I)&&"function"!=typeof I?t(A):I}},40:function(A,I,g){"use strict";I.byteLength=function(A){var I=o(A),g=I[0],i=I[1];return 3*(g+i)/4-i},I.toByteArray=function(A){for(var I,g=o(A),i=g[0],r=g[1],C=new e(function(A,I,g){return 3*(I+g)/4-g}(0,i,r)),n=0,B=r>0?i-4:i,a=0;a<B;a+=4)I=t[A.charCodeAt(a)]<<18|t[A.charCodeAt(a+1)]<<12|t[A.charCodeAt(a+2)]<<6|t[A.charCodeAt(a+3)],C[n++]=I>>16&255,C[n++]=I>>8&255,C[n++]=255&I;2===r&&(I=t[A.charCodeAt(a)]<<2|t[A.charCodeAt(a+1)]>>4,C[n++]=255&I);1===r&&(I=t[A.charCodeAt(a)]<<10|t[A.charCodeAt(a+1)]<<4|t[A.charCodeAt(a+2)]>>2,C[n++]=I>>8&255,C[n++]=255&I);return C},I.fromByteArray=function(A){for(var I,g=A.length,t=g%3,e=[],r=0,C=g-t;r<C;r+=16383)e.push(B(A,r,r+16383>C?C:r+16383));1===t?(I=A[g-1],e.push(i[I>>2]+i[I<<4&63]+"==")):2===t&&(I=(A[g-2]<<8)+A[g-1],e.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"="));return e.join("")};for(var i=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,n=r.length;C<n;++C)i[C]=r[C],t[r.charCodeAt(C)]=C;function o(A){var I=A.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=A.indexOf("=");return-1===g&&(g=I),[g,g===I?0:4-g%4]}function B(A,I,g){for(var t,e,r=[],C=I;C<g;C+=3)t=(A[C]<<16&16711680)+(A[C+1]<<8&65280)+(255&A[C+2]),r.push(i[(e=t)>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]);return r.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},409:function(A,I,g){(function(I,i,t){var e=function(){"undefined"!=typeof document&&document.currentScript&&document.currentScript.src;return function(A){A=void 0!==(A=A||{})?A:{};var e,r={};for(e in A)A.hasOwnProperty(e)&&(r[e]=A[e]);A.arguments=[],A.thisProgram="./this.program",A.quit=function(A,I){throw I},A.preRun=[],A.postRun=[];var C=!1,n=!1,o=!1;C="object"==typeof window,n="function"==typeof importScripts,o="object"==typeof I&&!C&&!n;var B,a,E="";o&&(E=i+"/",A.read=function(A,I){var i;return(i=CI(A))||(B||(B=g(446)),a||(a=g(273)),A=a.normalize(A),i=B.readFileSync(A)),I?i:i.toString()},A.readBinary=function(I){var g=A.read(I,!0);return g.buffer||(g=new Uint8Array(g)),f(g.buffer),g},I.argv.length>1&&(A.thisProgram=I.argv[1].replace(/\\/g,"/")),A.arguments=I.argv.slice(2),I.on("uncaughtException",(function(A){if(!(A instanceof sI))throw A})),I.on("unhandledRejection",cI),A.quit=function(A){I.exit(A)},A.inspect=function(){return"[Emscripten Module object]"});var Q=A.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),s=A.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||Q);for(e in r)r.hasOwnProperty(e)&&(A[e]=r[e]);r=void 0;var h,c={"f64-rem":function(A,I){return A%I},debugger:function(){}};new Array(0);"object"!=typeof WebAssembly&&s("no native wasm support detected");var u=!1;function f(A,I){A||cI("Assertion failed: "+I)}var y="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function l(A,I,g){for(var i=I+g,t=I;A[t]&&!(t>=i);)++t;if(t-I>16&&A.subarray&&y)return y.decode(A.subarray(I,t));for(var e="";I<t;){var r=A[I++];if(128&r){var C=63&A[I++];if(192!=(224&r)){var n=63&A[I++];if((r=224==(240&r)?(15&r)<<12|C<<6|n:(7&r)<<18|C<<12|n<<6|63&A[I++])<65536)e+=String.fromCharCode(r);else{var o=r-65536;e+=String.fromCharCode(55296|o>>10,56320|1023&o)}}else e+=String.fromCharCode((31&r)<<6|C)}else e+=String.fromCharCode(r)}return e}function w(A,I){return A?l(p,A,I):""}var F,D,p,S,d,U,G,m,k;"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");function Y(A,I){return A%I>0&&(A+=I-A%I),A}function M(){A.HEAP8=D=new Int8Array(F),A.HEAP16=S=new Int16Array(F),A.HEAP32=U=new Int32Array(F),A.HEAPU8=p=new Uint8Array(F),A.HEAPU16=d=new Uint16Array(F),A.HEAPU32=G=new Uint32Array(F),A.HEAPF32=m=new Float32Array(F),A.HEAPF64=k=new Float64Array(F)}var N=A.TOTAL_MEMORY||16777216;function R(I){for(;I.length>0;){var g=I.shift();if("function"!=typeof g){var i=g.func;"number"==typeof i?void 0===g.arg?A.dynCall_v(i):A.dynCall_vi(i,g.arg):i(void 0===g.arg?null:g.arg)}else g()}}N<5242880&&s("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+N+"! (TOTAL_STACK=5242880)"),A.buffer?F=A.buffer:"object"==typeof WebAssembly&&"function"==typeof WebAssembly.Memory?(h=new WebAssembly.Memory({initial:N/65536}),F=h.buffer):F=new ArrayBuffer(N),M(),U[3056]=5255360;var b=[],v=[],H=[],L=[],J=!1;var K=0,q=null,T=null;A.preloadedImages={},A.preloadedAudios={};var x="data:application/octet-stream;base64,";function V(A){return String.prototype.startsWith?A.startsWith(x):0===A.indexOf(x)}var W,Z="data:application/octet-stream;base64, ";function O(){try{if(A.wasmBinary)return new Uint8Array(A.wasmBinary);var I=CI(Z);if(I)return I;if(A.readBinary)return A.readBinary(Z);throw"both async and sync fetching of the wasm failed"}catch(A){cI(A)}}function j(I){var g={env:I,global:{NaN:NaN,Infinity:1/0},"global.Math":Math,asm2wasm:c};function i(I,g){var i=I.exports;A.asm=i,function(I){if(K--,A.monitorRunDependencies&&A.monitorRunDependencies(K),0==K&&(null!==q&&(clearInterval(q),q=null),T)){var g=T;T=null,g()}}()}if(K++,A.monitorRunDependencies&&A.monitorRunDependencies(K),A.instantiateWasm)try{return A.instantiateWasm(g,i)}catch(A){return s("Module.instantiateWasm callback failed with error: "+A),!1}function t(A){i(A.instance)}function e(I){(A.wasmBinary||!C&&!n||"function"!=typeof fetch?new Promise((function(A,I){A(O())})):fetch(Z,{credentials:"same-origin"}).then((function(A){if(!A.ok)throw"failed to load wasm binary file at '"+Z+"'";return A.arrayBuffer()})).catch((function(){return O()}))).then((function(A){return WebAssembly.instantiate(A,g)})).then(I,(function(A){s("failed to asynchronously prepare wasm: "+A),cI(A)}))}return A.wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||V(Z)||"function"!=typeof fetch?e(t):WebAssembly.instantiateStreaming(fetch(Z,{credentials:"same-origin"}),g).then(t,(function(A){s("wasm streaming compile failed: "+A),s("falling back to ArrayBuffer instantiation"),e(t)})),{}}V(Z)||(W=Z,Z=A.locateFile?A.locateFile(W,E):E+W),A.asm=function(A,I,g){return I.memory=h,I.table=new WebAssembly.Table({initial:62,maximum:62,element:"anyfunc"}),I.__memory_base=1024,I.__table_base=0,j(I)},v.push({func:function(){QI()}});var X={buffers:[null,[],[]],printChar:function(A,I){var g=X.buffers[A];0===I||10===I?((1===A?Q:s)(l(g,0)),g.length=0):g.push(I)},varargs:0,get:function(A){return X.varargs+=4,U[X.varargs-4>>2]},getStr:function(){return w(X.get())},get64:function(){var A=X.get();X.get();return A},getZero:function(){X.get()}};function P(A){switch(A){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+A)}}var z=void 0;function _(A){for(var I="",g=A;p[g];)I+=z[p[g++]];return I}var $={},AA={},IA={},gA=48,iA=57;function tA(A){if(void 0===A)return"_unknown";var I=(A=A.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return I>=gA&&I<=iA?"_"+A:A}function eA(A,I){return A=tA(A),new Function("body","return function "+A+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n')(I)}function rA(A,I){var g=eA(I,(function(A){this.name=I,this.message=A;var g=new Error(A).stack;void 0!==g&&(this.stack=this.toString()+"\n"+g.replace(/^Error(:[^\n]*)?\n/,""))}));return g.prototype=Object.create(A.prototype),g.prototype.constructor=g,g.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},g}var CA=void 0;function nA(A){throw new CA(A)}var oA=void 0;function BA(A){throw new oA(A)}function aA(A,I,g){function i(I){var i=g(I);i.length!==A.length&&BA("Mismatched type converter count");for(var t=0;t<A.length;++t)EA(A[t],i[t])}A.forEach((function(A){IA[A]=I}));var t=new Array(I.length),e=[],r=0;I.forEach((function(A,I){AA.hasOwnProperty(A)?t[I]=AA[A]:(e.push(A),$.hasOwnProperty(A)||($[A]=[]),$[A].push((function(){t[I]=AA[A],++r===e.length&&i(t)})))})),0===e.length&&i(t)}function EA(A,I,g){if(g=g||{},!("argPackAdvance"in I))throw new TypeError("registerType registeredInstance requires argPackAdvance");var i=I.name;if(A||nA('type "'+i+'" must have a positive integer typeid pointer'),AA.hasOwnProperty(A)){if(g.ignoreDuplicateRegistrations)return;nA("Cannot register type '"+i+"' twice")}if(AA[A]=I,delete IA[A],$.hasOwnProperty(A)){var t=$[A];delete $[A],t.forEach((function(A){A()}))}}function QA(A){if(!(this instanceof FA))return!1;if(!(A instanceof FA))return!1;for(var I=this.$$.ptrType.registeredClass,g=this.$$.ptr,i=A.$$.ptrType.registeredClass,t=A.$$.ptr;I.baseClass;)g=I.upcast(g),I=I.baseClass;for(;i.baseClass;)t=i.upcast(t),i=i.baseClass;return I===i&&g===t}function sA(A){nA(A.$$.ptrType.registeredClass.name+" instance already deleted")}function hA(){if(this.$$.ptr||sA(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var A,I=Object.create(Object.getPrototypeOf(this),{$$:{value:(A=this.$$,{count:A.count,deleteScheduled:A.deleteScheduled,preservePointerOnDelete:A.preservePointerOnDelete,ptr:A.ptr,ptrType:A.ptrType,smartPtr:A.smartPtr,smartPtrType:A.smartPtrType})}});return I.$$.count.value+=1,I.$$.deleteScheduled=!1,I}function cA(){var A;this.$$.ptr||sA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&nA("Object already scheduled for deletion"),this.$$.count.value-=1,0===this.$$.count.value&&((A=this.$$).smartPtr?A.smartPtrType.rawDestructor(A.smartPtr):A.ptrType.registeredClass.rawDestructor(A.ptr)),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function uA(){return!this.$$.ptr}var fA=void 0,yA=[];function lA(){for(;yA.length;){var A=yA.pop();A.$$.deleteScheduled=!1,A.delete()}}function wA(){return this.$$.ptr||sA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&nA("Object already scheduled for deletion"),yA.push(this),1===yA.length&&fA&&fA(lA),this.$$.deleteScheduled=!0,this}function FA(){}var DA={};function pA(I,g,i){A.hasOwnProperty(I)?((void 0===i||void 0!==A[I].overloadTable&&void 0!==A[I].overloadTable[i])&&nA("Cannot register public name '"+I+"' twice"),function(A,I,g){if(void 0===A[I].overloadTable){var i=A[I];A[I]=function(){return A[I].overloadTable.hasOwnProperty(arguments.length)||nA("Function '"+g+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+A[I].overloadTable+")!"),A[I].overloadTable[arguments.length].apply(this,arguments)},A[I].overloadTable=[],A[I].overloadTable[i.argCount]=i}}(A,I,I),A.hasOwnProperty(i)&&nA("Cannot register multiple overloads of a function with the same number of arguments ("+i+")!"),A[I].overloadTable[i]=g):(A[I]=g,void 0!==i&&(A[I].numArguments=i))}function SA(A,I,g,i,t,e,r,C){this.name=A,this.constructor=I,this.instancePrototype=g,this.rawDestructor=i,this.baseClass=t,this.getActualType=e,this.upcast=r,this.downcast=C,this.pureVirtualFunctions=[]}function dA(A,I,g){for(;I!==g;)I.upcast||nA("Expected null or instance of "+g.name+", got an instance of "+I.name),A=I.upcast(A),I=I.baseClass;return A}function UA(A,I){if(null===I)return this.isReference&&nA("null is not a valid "+this.name),0;I.$$||nA('Cannot pass "'+II(I)+'" as a '+this.name),I.$$.ptr||nA("Cannot pass deleted object as a pointer of type "+this.name);var g=I.$$.ptrType.registeredClass;return dA(I.$$.ptr,g,this.registeredClass)}function GA(A,I){var g;if(null===I)return this.isReference&&nA("null is not a valid "+this.name),this.isSmartPointer?(g=this.rawConstructor(),null!==A&&A.push(this.rawDestructor,g),g):0;I.$$||nA('Cannot pass "'+II(I)+'" as a '+this.name),I.$$.ptr||nA("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&I.$$.ptrType.isConst&&nA("Cannot convert argument of type "+(I.$$.smartPtrType?I.$$.smartPtrType.name:I.$$.ptrType.name)+" to parameter type "+this.name);var i=I.$$.ptrType.registeredClass;if(g=dA(I.$$.ptr,i,this.registeredClass),this.isSmartPointer)switch(void 0===I.$$.smartPtr&&nA("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:I.$$.smartPtrType===this?g=I.$$.smartPtr:nA("Cannot convert argument of type "+(I.$$.smartPtrType?I.$$.smartPtrType.name:I.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:g=I.$$.smartPtr;break;case 2:if(I.$$.smartPtrType===this)g=I.$$.smartPtr;else{var t=I.clone();g=this.rawShare(g,AI((function(){t.delete()}))),null!==A&&A.push(this.rawDestructor,g)}break;default:nA("Unsupporting sharing policy")}return g}function mA(A,I){if(null===I)return this.isReference&&nA("null is not a valid "+this.name),0;I.$$||nA('Cannot pass "'+II(I)+'" as a '+this.name),I.$$.ptr||nA("Cannot pass deleted object as a pointer of type "+this.name),I.$$.ptrType.isConst&&nA("Cannot convert argument of type "+I.$$.ptrType.name+" to parameter type "+this.name);var g=I.$$.ptrType.registeredClass;return dA(I.$$.ptr,g,this.registeredClass)}function kA(A){return this.fromWireType(G[A>>2])}function YA(A){return this.rawGetPointee&&(A=this.rawGetPointee(A)),A}function MA(A){this.rawDestructor&&this.rawDestructor(A)}function NA(A){null!==A&&A.delete()}function RA(){return Object.keys(HA).length}function bA(){var A=[];for(var I in HA)HA.hasOwnProperty(I)&&A.push(HA[I]);return A}function vA(A){fA=A,yA.length&&fA&&fA(lA)}var HA={};function LA(A,I){return I=function(A,I){for(void 0===I&&nA("ptr should not be undefined");A.baseClass;)I=A.upcast(I),A=A.baseClass;return I}(A,I),HA[I]}function JA(A,I){return I.ptrType&&I.ptr||BA("makeClassHandle requires ptr and ptrType"),!!I.smartPtrType!==!!I.smartPtr&&BA("Both smartPtrType and smartPtr must be specified"),I.count={value:1},Object.create(A,{$$:{value:I}})}function KA(A){var I=this.getPointee(A);if(!I)return this.destructor(A),null;var g=LA(this.registeredClass,I);if(void 0!==g){if(0===g.$$.count.value)return g.$$.ptr=I,g.$$.smartPtr=A,g.clone();var i=g.clone();return this.destructor(A),i}function t(){return this.isSmartPointer?JA(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:I,smartPtrType:this,smartPtr:A}):JA(this.registeredClass.instancePrototype,{ptrType:this,ptr:A})}var e,r=this.registeredClass.getActualType(I),C=DA[r];if(!C)return t.call(this);e=this.isConst?C.constPointerType:C.pointerType;var n=function A(I,g,i){if(g===i)return I;if(void 0===i.baseClass)return null;var t=A(I,g,i.baseClass);return null===t?null:i.downcast(t)}(I,this.registeredClass,e.registeredClass);return null===n?t.call(this):this.isSmartPointer?JA(e.registeredClass.instancePrototype,{ptrType:e,ptr:n,smartPtrType:this,smartPtr:A}):JA(e.registeredClass.instancePrototype,{ptrType:e,ptr:n})}function qA(A,I,g,i,t,e,r,C,n,o,B){this.name=A,this.registeredClass=I,this.isReference=g,this.isConst=i,this.isSmartPointer=t,this.pointeeType=e,this.sharingPolicy=r,this.rawGetPointee=C,this.rawConstructor=n,this.rawShare=o,this.rawDestructor=B,t||void 0!==I.baseClass?this.toWireType=GA:i?(this.toWireType=UA,this.destructorFunction=null):(this.toWireType=mA,this.destructorFunction=null)}function TA(I,g,i){A.hasOwnProperty(I)||BA("Replacing nonexistant public symbol"),void 0!==A[I].overloadTable&&void 0!==i?A[I].overloadTable[i]=g:(A[I]=g,A[I].argCount=i)}function xA(I,g){var i;if(I=_(I),void 0!==A["FUNCTION_TABLE_"+I])i=A["FUNCTION_TABLE_"+I][g];else if("undefined"!=typeof FUNCTION_TABLE)i=FUNCTION_TABLE[g];else{var t=A["dynCall_"+I];void 0===t&&void 0===(t=A["dynCall_"+I.replace(/f/g,"d")])&&nA("No dynCall invoker for signature: "+I),i=function(A){for(var i=[],t=1;t<I.length;++t)i.push("a"+t);var e="return function "+("dynCall_"+I+"_"+g)+"("+i.join(", ")+") {\n";return e+="    return dynCall(rawFunction"+(i.length?", ":"")+i.join(", ")+");\n",e+="};\n",new Function("dynCall","rawFunction",e)(A,g)}(t)}return"function"!=typeof i&&nA("unknown function pointer with signature "+I+": "+g),i}var VA=void 0;function WA(A){var I=BI(A),g=_(I);return aI(I),g}function ZA(A,I){var g=[],i={};throw I.forEach((function A(I){i[I]||AA[I]||(IA[I]?IA[I].forEach(A):(g.push(I),i[I]=!0))})),new VA(A+": "+g.map(WA).join([", "]))}function OA(A){for(;A.length;){var I=A.pop();A.pop()(I)}}function jA(A,I,g){return A instanceof Object||nA(g+' with invalid "this": '+A),A instanceof I.registeredClass.constructor||nA(g+' incompatible with "this" of type '+A.constructor.name),A.$$.ptr||nA("cannot call emscripten binding method "+g+" on deleted object"),dA(A.$$.ptr,A.$$.ptrType.registeredClass,I.registeredClass)}var XA=[],PA=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function zA(A){A>4&&0==--PA[A].refcount&&(PA[A]=void 0,XA.push(A))}function _A(){for(var A=0,I=5;I<PA.length;++I)void 0!==PA[I]&&++A;return A}function $A(){for(var A=5;A<PA.length;++A)if(void 0!==PA[A])return PA[A];return null}function AI(A){switch(A){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var I=XA.length?XA.pop():PA.length;return PA[I]={refcount:1,value:A},I}}function II(A){if(null===A)return"null";var I=typeof A;return"object"===I||"array"===I||"function"===I?A.toString():""+A}function gI(A,I){switch(I){case 2:return function(A){return this.fromWireType(m[A>>2])};case 3:return function(A){return this.fromWireType(k[A>>3])};default:throw new TypeError("Unknown float type: "+A)}}function iI(A,I,g,i,t){var e=I.length;e<2&&nA("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var r=null!==I[1]&&null!==g,C=!1,n=1;n<I.length;++n)if(null!==I[n]&&void 0===I[n].destructorFunction){C=!0;break}var o="void"!==I[0].name,B="",a="";for(n=0;n<e-2;++n)B+=(0!==n?", ":"")+"arg"+n,a+=(0!==n?", ":"")+"arg"+n+"Wired";var E="return function "+tA(A)+"("+B+") {\nif (arguments.length !== "+(e-2)+") {\nthrowBindingError('function "+A+" called with ' + arguments.length + ' arguments, expected "+(e-2)+" args!');\n}\n";C&&(E+="var destructors = [];\n");var Q=C?"destructors":"null",s=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],h=[nA,i,t,OA,I[0],I[1]];r&&(E+="var thisWired = classParam.toWireType("+Q+", this);\n");for(n=0;n<e-2;++n)E+="var arg"+n+"Wired = argType"+n+".toWireType("+Q+", arg"+n+"); // "+I[n+2].name+"\n",s.push("argType"+n),h.push(I[n+2]);if(r&&(a="thisWired"+(a.length>0?", ":"")+a),E+=(o?"var rv = ":"")+"invoker(fn"+(a.length>0?", ":"")+a+");\n",C)E+="runDestructors(destructors);\n";else for(n=r?1:2;n<I.length;++n){var c=1===n?"thisWired":"arg"+(n-2)+"Wired";null!==I[n].destructorFunction&&(E+=c+"_dtor("+c+"); // "+I[n].name+"\n",s.push(c+"_dtor"),h.push(I[n].destructorFunction))}return o&&(E+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),E+="}\n",s.push(E),function(A,I){if(!(A instanceof Function))throw new TypeError("new_ called with constructor type "+typeof A+" which is not a function");var g=eA(A.name||"unknownFunctionName",(function(){}));g.prototype=A.prototype;var i=new g,t=A.apply(i,I);return t instanceof Object?t:i}(Function,s).apply(null,h)}function tI(A,I,g){switch(I){case 0:return g?function(A){return D[A]}:function(A){return p[A]};case 1:return g?function(A){return S[A>>1]}:function(A){return d[A>>1]};case 2:return g?function(A){return U[A>>2]}:function(A){return G[A>>2]};default:throw new TypeError("Unknown integer type: "+A)}}function eI(){return D.length}!function(){for(var A=new Array(256),I=0;I<256;++I)A[I]=String.fromCharCode(I);z=A}(),CA=A.BindingError=rA(Error,"BindingError"),oA=A.InternalError=rA(Error,"InternalError"),FA.prototype.isAliasOf=QA,FA.prototype.clone=hA,FA.prototype.delete=cA,FA.prototype.isDeleted=uA,FA.prototype.deleteLater=wA,qA.prototype.getPointee=YA,qA.prototype.destructor=MA,qA.prototype.argPackAdvance=8,qA.prototype.readValueFromPointer=kA,qA.prototype.deleteObject=NA,qA.prototype.fromWireType=KA,A.getInheritedInstanceCount=RA,A.getLiveInheritedInstances=bA,A.flushPendingDeletes=lA,A.setDelayFunction=vA,VA=A.UnboundTypeError=rA(Error,"UnboundTypeError"),A.count_emval_handles=_A,A.get_first_emval=$A;var rI="function"==typeof atob?atob:function(A){var I,g,i,t,e,r,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="",o=0;A=A.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{I=C.indexOf(A.charAt(o++))<<2|(t=C.indexOf(A.charAt(o++)))>>4,g=(15&t)<<4|(e=C.indexOf(A.charAt(o++)))>>2,i=(3&e)<<6|(r=C.indexOf(A.charAt(o++))),n+=String.fromCharCode(I),64!==e&&(n+=String.fromCharCode(g)),64!==r&&(n+=String.fromCharCode(i))}while(o<A.length);return n};function CI(A){if(V(A))return function(A){if("boolean"==typeof o&&o){var I;try{I=t.from(A,"base64")}catch(g){I=new t(A,"base64")}return new Uint8Array(I.buffer,I.byteOffset,I.byteLength)}try{for(var g=rI(A),i=new Uint8Array(g.length),e=0;e<g.length;++e)i[e]=g.charCodeAt(e);return i}catch(A){throw new Error("Converting base64 string to bytes failed.")}}(A.slice(x.length))}var nI={c:cI,l:function(I){return A.___errno_location&&(U[A.___errno_location()>>2]=I),I},u:function(A,I){X.varargs=I;try{var g=X.getStreamFromFD(),i=(X.get(),X.get()),t=X.get(),e=X.get(),r=i;return FS.llseek(g,r,e),U[t>>2]=g.position,g.getdents&&0===r&&0===e&&(g.getdents=null),0}catch(A){return"undefined"!=typeof FS&&A instanceof FS.ErrnoError||cI(A),-A.errno}},h:function(A,I){X.varargs=I;try{for(var g=X.get(),i=X.get(),t=X.get(),e=0,r=0;r<t;r++){for(var C=U[i+8*r>>2],n=U[i+(8*r+4)>>2],o=0;o<n;o++)X.printChar(g,p[C+o]);e+=n}return e}catch(A){return"undefined"!=typeof FS&&A instanceof FS.ErrnoError||cI(A),-A.errno}},p:function(A,I){X.varargs=I;try{var g=X.getStreamFromFD();return FS.close(g),0}catch(A){return"undefined"!=typeof FS&&A instanceof FS.ErrnoError||cI(A),-A.errno}},o:function(A,I,g,i,t){var e=P(g);EA(A,{name:I=_(I),fromWireType:function(A){return!!A},toWireType:function(A,I){return I?i:t},argPackAdvance:8,readValueFromPointer:function(A){var i;if(1===g)i=D;else if(2===g)i=S;else{if(4!==g)throw new TypeError("Unknown boolean type size: "+I);i=U}return this.fromWireType(i[A>>e])},destructorFunction:null})},n:function(A,I,g,i,t,e,r,C,n,o,B,a,E){B=_(B),e=xA(t,e),C&&(C=xA(r,C)),o&&(o=xA(n,o)),E=xA(a,E);var Q=tA(B);pA(Q,(function(){ZA("Cannot construct "+B+" due to unbound types",[i])})),aA([A,I,g],i?[i]:[],(function(I){var g,t;I=I[0],t=i?(g=I.registeredClass).instancePrototype:FA.prototype;var r=eA(Q,(function(){if(Object.getPrototypeOf(this)!==n)throw new CA("Use 'new' to construct "+B);if(void 0===a.constructor_body)throw new CA(B+" has no accessible constructor");var A=a.constructor_body[arguments.length];if(void 0===A)throw new CA("Tried to invoke ctor of "+B+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(a.constructor_body).toString()+") parameters instead!");return A.apply(this,arguments)})),n=Object.create(t,{constructor:{value:r}});r.prototype=n;var a=new SA(B,r,n,E,g,e,C,o),s=new qA(B,a,!0,!1,!1),h=new qA(B+"*",a,!1,!1,!1),c=new qA(B+" const*",a,!1,!0,!1);return DA[A]={pointerType:h,constPointerType:c},TA(Q,r),[s,h,c]}))},e:function(A,I,g,i,t,e,r,C,n,o){I=_(I),t=xA(i,t),aA([],[A],(function(A){var i=(A=A[0]).name+"."+I,B={get:function(){ZA("Cannot access "+i+" due to unbound types",[g,r])},enumerable:!0,configurable:!0};return B.set=n?function(){ZA("Cannot access "+i+" due to unbound types",[g,r])}:function(A){nA(i+" is a read-only property")},Object.defineProperty(A.registeredClass.instancePrototype,I,B),aA([],n?[g,r]:[g],(function(g){var r=g[0],B={get:function(){var I=jA(this,A,i+" getter");return r.fromWireType(t(e,I))},enumerable:!0};if(n){n=xA(C,n);var a=g[1];B.set=function(I){var g=jA(this,A,i+" setter"),t=[];n(o,g,a.toWireType(t,I)),OA(t)}}return Object.defineProperty(A.registeredClass.instancePrototype,I,B),[]})),[]}))},m:function(A,I){EA(A,{name:I=_(I),fromWireType:function(A){var I=PA[A].value;return zA(A),I},toWireType:function(A,I){return AI(I)},argPackAdvance:8,readValueFromPointer:kA,destructorFunction:null})},g:function(A,I,g){var i=P(g);EA(A,{name:I=_(I),fromWireType:function(A){return A},toWireType:function(A,I){if("number"!=typeof I&&"boolean"!=typeof I)throw new TypeError('Cannot convert "'+II(I)+'" to '+this.name);return I},argPackAdvance:8,readValueFromPointer:gI(I,i),destructorFunction:null})},k:function(A,I,g,i,t,e){var r=function(A,I){for(var g=[],i=0;i<A;i++)g.push(U[(I>>2)+i]);return g}(I,g);A=_(A),t=xA(i,t),pA(A,(function(){ZA("Cannot call "+A+" due to unbound types",r)}),I-1),aA([],r,(function(g){var i=[g[0],null].concat(g.slice(1));return TA(A,iI(A,i,null,t,e),I-1),[]}))},d:function(A,I,g,i,t){I=_(I),-1===t&&(t=4294967295);var e=P(g),r=function(A){return A};if(0===i){var C=32-8*g;r=function(A){return A<<C>>>C}}var n=-1!=I.indexOf("unsigned");EA(A,{name:I,fromWireType:r,toWireType:function(A,g){if("number"!=typeof g&&"boolean"!=typeof g)throw new TypeError('Cannot convert "'+II(g)+'" to '+this.name);if(g<i||g>t)throw new TypeError('Passing a number "'+II(g)+'" from JS side to C/C++ side to an argument of type "'+I+'", which is outside the valid range ['+i+", "+t+"]!");return n?g>>>0:0|g},argPackAdvance:8,readValueFromPointer:tI(I,e,0!==i),destructorFunction:null})},b:function(A,I,g){var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][I];function t(A){var I=G,g=I[A>>=2],t=I[A+1];return new i(I.buffer,t,g)}EA(A,{name:g=_(g),fromWireType:t,argPackAdvance:8,readValueFromPointer:t},{ignoreDuplicateRegistrations:!0})},j:function(A,I){var g="std::string"===(I=_(I));EA(A,{name:I,fromWireType:function(A){var I,i=G[A>>2];if(g){var t=p[A+4+i],e=0;0!=t&&(e=t,p[A+4+i]=0);for(var r=A+4,C=0;C<=i;++C){var n=A+4+C;if(0==p[n]){var o=w(r);void 0===I?I=o:(I+=String.fromCharCode(0),I+=o),r=n+1}}0!=e&&(p[A+4+i]=e)}else{var B=new Array(i);for(C=0;C<i;++C)B[C]=String.fromCharCode(p[A+4+C]);I=B.join("")}return aI(A),I},toWireType:function(A,I){I instanceof ArrayBuffer&&(I=new Uint8Array(I));var i="string"==typeof I;i||I instanceof Uint8Array||I instanceof Uint8ClampedArray||I instanceof Int8Array||nA("Cannot pass non-string to std::string");var t=(g&&i?function(){return function(A){for(var I=0,g=0;g<A.length;++g){var i=A.charCodeAt(g);i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&A.charCodeAt(++g)),i<=127?++I:I+=i<=2047?2:i<=65535?3:4}return I}(I)}:function(){return I.length})(),e=EI(4+t+1);if(G[e>>2]=t,g&&i)(function(A,I,g,i){if(!(i>0))return 0;for(var t=g,e=g+i-1,r=0;r<A.length;++r){var C=A.charCodeAt(r);if(C>=55296&&C<=57343&&(C=65536+((1023&C)<<10)|1023&A.charCodeAt(++r)),C<=127){if(g>=e)break;I[g++]=C}else if(C<=2047){if(g+1>=e)break;I[g++]=192|C>>6,I[g++]=128|63&C}else if(C<=65535){if(g+2>=e)break;I[g++]=224|C>>12,I[g++]=128|C>>6&63,I[g++]=128|63&C}else{if(g+3>=e)break;I[g++]=240|C>>18,I[g++]=128|C>>12&63,I[g++]=128|C>>6&63,I[g++]=128|63&C}}I[g]=0})(I,p,e+4,t+1);else if(i)for(var r=0;r<t;++r){var C=I.charCodeAt(r);C>255&&(aI(e),nA("String has UTF-16 code units that do not fit in 8 bits")),p[e+4+r]=C}else for(r=0;r<t;++r)p[e+4+r]=I[r];return null!==A&&A.push(aI,e),e},argPackAdvance:8,readValueFromPointer:kA,destructorFunction:function(A){aI(A)}})},z:function(A,I,g){var i,t;g=_(g),2===I?(i=function(){return d},t=1):4===I&&(i=function(){return G},t=2),EA(A,{name:g,fromWireType:function(A){for(var I=i(),g=G[A>>2],e=new Array(g),r=A+4>>t,C=0;C<g;++C)e[C]=String.fromCharCode(I[r+C]);return aI(A),e.join("")},toWireType:function(A,g){var e=i(),r=g.length,C=EI(4+r*I);G[C>>2]=r;for(var n=C+4>>t,o=0;o<r;++o)e[n+o]=g.charCodeAt(o);return null!==A&&A.push(aI,C),C},argPackAdvance:8,readValueFromPointer:kA,destructorFunction:function(A){aI(A)}})},y:function(A,I){EA(A,{isVoid:!0,name:I=_(I),argPackAdvance:0,fromWireType:function(){},toWireType:function(A,I){}})},x:zA,w:function(A){A>4&&(PA[A].refcount+=1)},v:function(A,I){var g,i,t;return i="_emval_take_value",void 0===(t=AA[g=A])&&nA(i+" has unknown type "+WA(g)),AI((A=t).readValueFromPointer(I))},f:function(){A.abort()},t:eI,s:function(A,I,g){p.set(p.subarray(I,I+g),A)},r:function(A){var I=eI();if(A>2147418112)return!1;for(var g=Math.max(I,16777216);g<A;)g=g<=536870912?Y(2*g,65536):Math.min(Y((3*g+2147483648)/4,65536),2147418112);var i=function(A){A=Y(A,65536);var I=F.byteLength;try{return-1!==h.grow((A-I)/65536)?F=h.buffer:null}catch(A){return null}}(g);return!(!i||i.byteLength!=g)&&(M(),!0)},i:function(I){!function(I,g){if(g&&A.noExitRuntime&&0===I)return;A.noExitRuntime||(u=!0,I,!0,A.onExit&&A.onExit(I));A.quit(I,new sI(I))}(I)},q:function(A){cI("OOM")},a:12224},oI=A.asm({},nI,F);A.asm=oI;var BI=A.___getTypeName=function(){return A.asm.A.apply(null,arguments)},aI=A._free=function(){return A.asm.B.apply(null,arguments)},EI=A._malloc=function(){return A.asm.C.apply(null,arguments)},QI=A.globalCtors=function(){return A.asm.O.apply(null,arguments)};A.dynCall_ii=function(){return A.asm.D.apply(null,arguments)},A.dynCall_iii=function(){return A.asm.E.apply(null,arguments)},A.dynCall_iiii=function(){return A.asm.F.apply(null,arguments)},A.dynCall_iiiii=function(){return A.asm.G.apply(null,arguments)},A.dynCall_v=function(){return A.asm.H.apply(null,arguments)},A.dynCall_vi=function(){return A.asm.I.apply(null,arguments)},A.dynCall_vii=function(){return A.asm.J.apply(null,arguments)},A.dynCall_viii=function(){return A.asm.K.apply(null,arguments)},A.dynCall_viiii=function(){return A.asm.L.apply(null,arguments)},A.dynCall_viiiii=function(){return A.asm.M.apply(null,arguments)},A.dynCall_viiiiii=function(){return A.asm.N.apply(null,arguments)};function sI(A){this.name="ExitStatus",this.message="Program terminated with exit("+A+")",this.status=A}function hI(I){function g(){A.calledRun||(A.calledRun=!0,u||(J||(J=!0,R(v)),R(H),A.onRuntimeInitialized&&A.onRuntimeInitialized(),function(){if(A.postRun)for("function"==typeof A.postRun&&(A.postRun=[A.postRun]);A.postRun.length;)I=A.postRun.shift(),L.unshift(I);var I;R(L)}()))}I=I||A.arguments,K>0||(!function(){if(A.preRun)for("function"==typeof A.preRun&&(A.preRun=[A.preRun]);A.preRun.length;)I=A.preRun.shift(),b.unshift(I);var I;R(b)}(),K>0||A.calledRun||(A.setStatus?(A.setStatus("Running..."),setTimeout((function(){setTimeout((function(){A.setStatus("")}),1),g()}),1)):g()))}function cI(I){throw A.onAbort&&A.onAbort(I),void 0!==I?(Q(I),s(I),I=JSON.stringify(I)):I="",u=!0,1,"abort("+I+"). Build with -s ASSERTIONS=1 for more info."}if(A.asm=oI,A.then=function(I){if(A.calledRun)I(A);else{var g=A.onRuntimeInitialized;A.onRuntimeInitialized=function(){g&&g(),I(A)}}return A},sI.prototype=new Error,sI.prototype.constructor=sI,T=function I(){A.calledRun||hI(),A.calledRun||(T=I)},A.run=hI,A.abort=cI,A.preInit)for("function"==typeof A.preInit&&(A.preInit=[A.preInit]);A.preInit.length>0;)A.preInit.pop()();return A.noExitRuntime=!0,hI(),A}}();A.exports=e}).call(this,g(25),"/",g(11).Buffer)},41:function(A,I){I.read=function(A,I,g,i,t){var e,r,C=8*t-i-1,n=(1<<C)-1,o=n>>1,B=-7,a=g?t-1:0,E=g?-1:1,Q=A[I+a];for(a+=E,e=Q&(1<<-B)-1,Q>>=-B,B+=C;B>0;e=256*e+A[I+a],a+=E,B-=8);for(r=e&(1<<-B)-1,e>>=-B,B+=i;B>0;r=256*r+A[I+a],a+=E,B-=8);if(0===e)e=1-o;else{if(e===n)return r?NaN:1/0*(Q?-1:1);r+=Math.pow(2,i),e-=o}return(Q?-1:1)*r*Math.pow(2,e-i)},I.write=function(A,I,g,i,t,e){var r,C,n,o=8*e-t-1,B=(1<<o)-1,a=B>>1,E=23===t?Math.pow(2,-24)-Math.pow(2,-77):0,Q=i?0:e-1,s=i?1:-1,h=I<0||0===I&&1/I<0?1:0;for(I=Math.abs(I),isNaN(I)||I===1/0?(C=isNaN(I)?1:0,r=B):(r=Math.floor(Math.log(I)/Math.LN2),I*(n=Math.pow(2,-r))<1&&(r--,n*=2),(I+=r+a>=1?E/n:E*Math.pow(2,1-a))*n>=2&&(r++,n/=2),r+a>=B?(C=0,r=B):r+a>=1?(C=(I*n-1)*Math.pow(2,t),r+=a):(C=I*Math.pow(2,a-1)*Math.pow(2,t),r=0));t>=8;A[g+Q]=255&C,Q+=s,C/=256,t-=8);for(r=r<<t|C,o+=t;o>0;A[g+Q]=255&r,Q+=s,r/=256,o-=8);A[g+Q-s]|=128*h}},42:function(A,I){var g={}.toString;A.exports=Array.isArray||function(A){return"[object Array]"==g.call(A)}},43:function(A,I,g){var i=function(A){"use strict";var I,g=Object.prototype,i=g.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},e=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",C=t.toStringTag||"@@toStringTag";function n(A,I,g,i){var t=I&&I.prototype instanceof h?I:h,e=Object.create(t.prototype),r=new U(i||[]);return e._invoke=function(A,I,g){var i=B;return function(t,e){if(i===E)throw new Error("Generator is already running");if(i===Q){if("throw"===t)throw e;return m()}for(g.method=t,g.arg=e;;){var r=g.delegate;if(r){var C=p(r,g);if(C){if(C===s)continue;return C}}if("next"===g.method)g.sent=g._sent=g.arg;else if("throw"===g.method){if(i===B)throw i=Q,g.arg;g.dispatchException(g.arg)}else"return"===g.method&&g.abrupt("return",g.arg);i=E;var n=o(A,I,g);if("normal"===n.type){if(i=g.done?Q:a,n.arg===s)continue;return{value:n.arg,done:g.done}}"throw"===n.type&&(i=Q,g.method="throw",g.arg=n.arg)}}}(A,g,r),e}function o(A,I,g){try{return{type:"normal",arg:A.call(I,g)}}catch(A){return{type:"throw",arg:A}}}A.wrap=n;var B="suspendedStart",a="suspendedYield",E="executing",Q="completed",s={};function h(){}function c(){}function u(){}var f={};f[e]=function(){return this};var y=Object.getPrototypeOf,l=y&&y(y(G([])));l&&l!==g&&i.call(l,e)&&(f=l);var w=u.prototype=h.prototype=Object.create(f);function F(A){["next","throw","return"].forEach((function(I){A[I]=function(A){return this._invoke(I,A)}}))}function D(A){var I;this._invoke=function(g,t){function e(){return new Promise((function(I,e){!function I(g,t,e,r){var C=o(A[g],A,t);if("throw"!==C.type){var n=C.arg,B=n.value;return B&&"object"==typeof B&&i.call(B,"__await")?Promise.resolve(B.__await).then((function(A){I("next",A,e,r)}),(function(A){I("throw",A,e,r)})):Promise.resolve(B).then((function(A){n.value=A,e(n)}),(function(A){return I("throw",A,e,r)}))}r(C.arg)}(g,t,I,e)}))}return I=I?I.then(e,e):e()}}function p(A,g){var i=A.iterator[g.method];if(i===I){if(g.delegate=null,"throw"===g.method){if(A.iterator.return&&(g.method="return",g.arg=I,p(A,g),"throw"===g.method))return s;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var t=o(i,A.iterator,g.arg);if("throw"===t.type)return g.method="throw",g.arg=t.arg,g.delegate=null,s;var e=t.arg;return e?e.done?(g[A.resultName]=e.value,g.next=A.nextLoc,"return"!==g.method&&(g.method="next",g.arg=I),g.delegate=null,s):e:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,s)}function S(A){var I={tryLoc:A[0]};1 in A&&(I.catchLoc=A[1]),2 in A&&(I.finallyLoc=A[2],I.afterLoc=A[3]),this.tryEntries.push(I)}function d(A){var I=A.completion||{};I.type="normal",delete I.arg,A.completion=I}function U(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(S,this),this.reset(!0)}function G(A){if(A){var g=A[e];if(g)return g.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var t=-1,r=function g(){for(;++t<A.length;)if(i.call(A,t))return g.value=A[t],g.done=!1,g;return g.value=I,g.done=!0,g};return r.next=r}}return{next:m}}function m(){return{value:I,done:!0}}return c.prototype=w.constructor=u,u.constructor=c,u[C]=c.displayName="GeneratorFunction",A.isGeneratorFunction=function(A){var I="function"==typeof A&&A.constructor;return!!I&&(I===c||"GeneratorFunction"===(I.displayName||I.name))},A.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,u):(A.__proto__=u,C in A||(A[C]="GeneratorFunction")),A.prototype=Object.create(w),A},A.awrap=function(A){return{__await:A}},F(D.prototype),D.prototype[r]=function(){return this},A.AsyncIterator=D,A.async=function(I,g,i,t){var e=new D(n(I,g,i,t));return A.isGeneratorFunction(g)?e:e.next().then((function(A){return A.done?A.value:e.next()}))},F(w),w[C]="Generator",w[e]=function(){return this},w.toString=function(){return"[object Generator]"},A.keys=function(A){var I=[];for(var g in A)I.push(g);return I.reverse(),function g(){for(;I.length;){var i=I.pop();if(i in A)return g.value=i,g.done=!1,g}return g.done=!0,g}},A.values=G,U.prototype={constructor:U,reset:function(A){if(this.prev=0,this.next=0,this.sent=this._sent=I,this.done=!1,this.delegate=null,this.method="next",this.arg=I,this.tryEntries.forEach(d),!A)for(var g in this)"t"===g.charAt(0)&&i.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=I)},stop:function(){this.done=!0;var A=this.tryEntries[0].completion;if("throw"===A.type)throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var g=this;function t(i,t){return C.type="throw",C.arg=A,g.next=i,t&&(g.method="next",g.arg=I),!!t}for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e],C=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var n=i.call(r,"catchLoc"),o=i.call(r,"finallyLoc");if(n&&o){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(n){if(this.prev<r.catchLoc)return t(r.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}}},abrupt:function(A,I){for(var g=this.tryEntries.length-1;g>=0;--g){var t=this.tryEntries[g];if(t.tryLoc<=this.prev&&i.call(t,"finallyLoc")&&this.prev<t.finallyLoc){var e=t;break}}e&&("break"===A||"continue"===A)&&e.tryLoc<=I&&I<=e.finallyLoc&&(e=null);var r=e?e.completion:{};return r.type=A,r.arg=I,e?(this.method="next",this.next=e.finallyLoc,s):this.complete(r)},complete:function(A,I){if("throw"===A.type)throw A.arg;return"break"===A.type||"continue"===A.type?this.next=A.arg:"return"===A.type?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):"normal"===A.type&&I&&(this.next=I),s},finish:function(A){for(var I=this.tryEntries.length-1;I>=0;--I){var g=this.tryEntries[I];if(g.finallyLoc===A)return this.complete(g.completion,g.afterLoc),d(g),s}},catch:function(A){for(var I=this.tryEntries.length-1;I>=0;--I){var g=this.tryEntries[I];if(g.tryLoc===A){var i=g.completion;if("throw"===i.type){var t=i.arg;d(g)}return t}}throw new Error("illegal catch attempt")},delegateYield:function(A,g,i){return this.delegate={iterator:G(A),resultName:g,nextLoc:i},"next"===this.method&&(this.arg=I),s}},A}(A.exports);try{regeneratorRuntime=i}catch(A){Function("r","regeneratorRuntime = r")(i)}},44:function(A,I){A.exports=function(A){if(Array.isArray(A))return A}},446:function(A,I){},45:function(A,I){A.exports=function(A,I){if(Symbol.iterator in Object(A)||"[object Arguments]"===Object.prototype.toString.call(A)){var g=[],i=!0,t=!1,e=void 0;try{for(var r,C=A[Symbol.iterator]();!(i=(r=C.next()).done)&&(g.push(r.value),!I||g.length!==I);i=!0);}catch(A){t=!0,e=A}finally{try{i||null==C.return||C.return()}finally{if(t)throw e}}return g}}},46:function(A,I){A.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},5:function(A,I,g){var i=g(39);A.exports=function(A,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),I&&i(A,I)}},6:function(A,I,g){A.exports=g(43)},7:function(A,I,g){"use strict";g.d(I,"a",(function(){return C}));var i=g(1),t=g.n(i),e=g(2),r=g.n(e),C=function(){function A(I){t()(this,A),this.bytes=I,this.length=this.bytes.length,this.position=0,this.bitPos=0}return r()(A,[{key:"getBytes",value:function(A){if(!(this.position>this.length)){var I=this.position+A,g=this.bytes.slice(this.position,I);return this.position=I,this.bitPos=0,g}}},{key:"readString",value:function(A){if(!(this.position>this.length)){for(var I="",g=this.position;g<this.position+A;g++){var i=this.bytes[g];if(0===i)break;I+=String.fromCharCode(i)}return this.position+=A,this.bitPos=0,I}}},{key:"readInt",value:function(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var g=0;if("be"===I)for(var i=this.position;i<this.position+A;i++)g<<=8,g|=this.bytes[i];else for(var t=this.position+A-1;t>=this.position;t--)g<<=8,g|=this.bytes[t];return this.position+=A,this.bitPos=0,g}}},{key:"readBits",value:function(A){if(!(this.position>this.length)){var I=0,g=0;for(I=(this.bytes[this.position++]&256-(1<<this.bitPos))>>>this.bitPos,g=8-this.bitPos,this.bitPos=0;g<A;)I|=this.bytes[this.position++]<<g,g+=8;if(g>A){var i=g-A;I&=(1<<A)-1,g-=i,this.position--,this.bitPos=8-i}return I}}},{key:"continueUntil",value:function(A){if(!(this.position>this.length))if(this.bitPos=0,"number"!=typeof A){var I=A.length,g=A[I-1];this.position=I;for(var i=function(A,I){var g=new Array;return A.forEach((function(A,i){g[A]=I-i})),g}(A,I),t=!0;this.position<this.length;){for(;this.position<this.length&&this.bytes[this.position++]!==g;);t=!0;for(var e=I-1;e>=0;e--)if(this.bytes[this.position-I+e]!==A[e]){t=!1,this.position+=i[A[e]];break}if(t){this.position-=I;break}}}else for(;++this.position<this.length&&this.bytes[this.position]!==A;);}},{key:"consumeWhile",value:function(A){for(;this.position<this.length&&this.bytes[this.position]===A;)this.position++;this.bitPos=0}},{key:"consumeIf",value:function(A){this.bytes[this.position]===A&&(this.position++,this.bitPos=0)}},{key:"moveForwardsBy",value:function(A){var I=this.position+A;if(I<0||I>this.length)throw new Error("Cannot move to position "+I+" in stream. Out of bounds.");this.position=I,this.bitPos=0}},{key:"moveBackwardsBy",value:function(A){var I=this.position-A;if(I<0||I>this.length)throw new Error("Cannot move to position "+I+" in stream. Out of bounds.");this.position=I,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(A){if(A<=this.bitPos)this.bitPos-=A;else for(this.bitPos>0&&(A-=this.bitPos,this.bitPos=0);A>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(A),A-=8}},{key:"moveTo",value:function(A){if(A<0||A>this.length)throw new Error("Cannot move to position "+A+" in stream. Out of bounds.");this.position=A,this.bitPos=0}},{key:"hasMore",value:function(){return this.position<this.length}},{key:"carve",value:function(){return this.bitPos>0&&this.position++,this.bytes.slice(0,this.position)}}]),A}()},772:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";function A(A){throw A}var I=void 0,g=this;function i(A,i){var t,e=A.split("."),r=g;!(e[0]in r)&&r.execScript&&r.execScript("var "+e[0]);for(;e.length&&(t=e.shift());)e.length||i===I?r=r[t]?r[t]:r[t]={}:r[t]=i}var t,e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;for(new(e?Uint8Array:Array)(256),t=0;256>t;++t)for(var r=(r=t)>>>1;r;r>>>=1)0;function C(A,I,g){var i,t="number"==typeof I?I:I=0,e="number"==typeof g?g:A.length;for(i=-1,t=7&e;t--;++I)i=i>>>8^o[255&(i^A[I])];for(t=e>>3;t--;I+=8)i=(i=(i=(i=(i=(i=(i=(i=i>>>8^o[255&(i^A[I])])>>>8^o[255&(i^A[I+1])])>>>8^o[255&(i^A[I+2])])>>>8^o[255&(i^A[I+3])])>>>8^o[255&(i^A[I+4])])>>>8^o[255&(i^A[I+5])])>>>8^o[255&(i^A[I+6])])>>>8^o[255&(i^A[I+7])];return(4294967295^i)>>>0}var 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,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],o=e?new Uint32Array(n):n;function B(){}function a(A){var I,g,i,t,r,C,n,o,B,a,E=A.length,Q=0,s=Number.POSITIVE_INFINITY;for(o=0;o<E;++o)A[o]>Q&&(Q=A[o]),A[o]<s&&(s=A[o]);for(I=1<<Q,g=new(e?Uint32Array:Array)(I),i=1,t=0,r=2;i<=Q;){for(o=0;o<E;++o)if(A[o]===i){for(C=0,n=t,B=0;B<i;++B)C=C<<1|1&n,n>>=1;for(a=i<<16|o,B=C;B<I;B+=r)g[B]=a;++t}++i,t<<=1,r<<=1}return[g,Q,s]}B.prototype.getName=function(){return this.name},B.prototype.getData=function(){return this.data},B.prototype.G=function(){return this.H};var E,Q=[];for(E=0;288>E;E++)switch(!0){case 143>=E:Q.push([E+48,8]);break;case 255>=E:Q.push([E-144+400,9]);break;case 279>=E:Q.push([E-256+0,7]);break;case 287>=E:Q.push([E-280+192,8]);break;default:A("invalid literal: "+E)}var s=function(){function I(I){switch(!0){case 3===I:return[257,I-3,0];case 4===I:return[258,I-4,0];case 5===I:return[259,I-5,0];case 6===I:return[260,I-6,0];case 7===I:return[261,I-7,0];case 8===I:return[262,I-8,0];case 9===I:return[263,I-9,0];case 10===I:return[264,I-10,0];case 12>=I:return[265,I-11,1];case 14>=I:return[266,I-13,1];case 16>=I:return[267,I-15,1];case 18>=I:return[268,I-17,1];case 22>=I:return[269,I-19,2];case 26>=I:return[270,I-23,2];case 30>=I:return[271,I-27,2];case 34>=I:return[272,I-31,2];case 42>=I:return[273,I-35,3];case 50>=I:return[274,I-43,3];case 58>=I:return[275,I-51,3];case 66>=I:return[276,I-59,3];case 82>=I:return[277,I-67,4];case 98>=I:return[278,I-83,4];case 114>=I:return[279,I-99,4];case 130>=I:return[280,I-115,4];case 162>=I:return[281,I-131,5];case 194>=I:return[282,I-163,5];case 226>=I:return[283,I-195,5];case 257>=I:return[284,I-227,5];case 258===I:return[285,I-258,0];default:A("invalid length: "+I)}}var g,i,t=[];for(g=3;258>=g;g++)i=I(g),t[g]=i[2]<<24|i[1]<<16|i[0];return t}();function h(I,g){switch(this.i=[],this.j=32768,this.d=this.f=this.c=this.n=0,this.input=e?new Uint8Array(I):I,this.o=!1,this.k=u,this.w=!1,!g&&(g={})||(g.index&&(this.c=g.index),g.bufferSize&&(this.j=g.bufferSize),g.bufferType&&(this.k=g.bufferType),g.resize&&(this.w=g.resize)),this.k){case c:this.a=32768,this.b=new(e?Uint8Array:Array)(32768+this.j+258);break;case u:this.a=0,this.b=new(e?Uint8Array:Array)(this.j),this.e=this.D,this.q=this.A,this.l=this.C;break;default:A(Error("invalid inflate mode"))}}e&&new Uint32Array(s);var c=0,u=1;h.prototype.g=function(){for(;!this.o;){var g=v(this,3);switch(1&g&&(this.o=!0),g>>>=1){case 0:var i=this.input,t=this.c,r=this.b,C=this.a,n=i.length,o=I,B=r.length,E=I;switch(this.d=this.f=0,t+1>=n&&A(Error("invalid uncompressed block header: LEN")),o=i[t++]|i[t++]<<8,t+1>=n&&A(Error("invalid uncompressed block header: NLEN")),o===~(i[t++]|i[t++]<<8)&&A(Error("invalid uncompressed block header: length verify")),t+o>i.length&&A(Error("input buffer is broken")),this.k){case c:for(;C+o>r.length;){if(o-=E=B-C,e)r.set(i.subarray(t,t+E),C),C+=E,t+=E;else for(;E--;)r[C++]=i[t++];this.a=C,r=this.e(),C=this.a}break;case u:for(;C+o>r.length;)r=this.e({t:2});break;default:A(Error("invalid inflate mode"))}if(e)r.set(i.subarray(t,t+o),C),C+=o,t+=o;else for(;o--;)r[C++]=i[t++];this.c=t,this.a=C,this.b=r;break;case 1:this.l(N,b);break;case 2:var Q,s,h,f,y=v(this,5)+257,l=v(this,5)+1,F=v(this,4)+4,D=new(e?Uint8Array:Array)(w.length),p=I,S=I,d=I,U=I,G=I;for(G=0;G<F;++G)D[w[G]]=v(this,3);if(!e)for(G=F,F=D.length;G<F;++G)D[w[G]]=0;for(Q=a(D),p=new(e?Uint8Array:Array)(y+l),G=0,f=y+l;G<f;)switch(S=H(this,Q),S){case 16:for(U=3+v(this,2);U--;)p[G++]=d;break;case 17:for(U=3+v(this,3);U--;)p[G++]=0;d=0;break;case 18:for(U=11+v(this,7);U--;)p[G++]=0;d=0;break;default:d=p[G++]=S}s=a(e?p.subarray(0,y):p.slice(0,y)),h=a(e?p.subarray(y):p.slice(y)),this.l(s,h);break;default:A(Error("unknown BTYPE: "+g))}}return this.q()};var f,y,l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],w=e?new Uint16Array(l):l,F=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],D=e?new Uint16Array(F):F,p=[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,0,0],S=e?new Uint8Array(p):p,d=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],U=e?new Uint16Array(d):d,G=[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],m=e?new Uint8Array(G):G,k=new(e?Uint8Array:Array)(288);for(f=0,y=k.length;f<y;++f)k[f]=143>=f?8:255>=f?9:279>=f?7:8;var Y,M,N=a(k),R=new(e?Uint8Array:Array)(30);for(Y=0,M=R.length;Y<M;++Y)R[Y]=5;var b=a(R);function v(I,g){for(var i,t=I.f,e=I.d,r=I.input,C=I.c,n=r.length;e<g;)C>=n&&A(Error("input buffer is broken")),t|=r[C++]<<e,e+=8;return i=t&(1<<g)-1,I.f=t>>>g,I.d=e-g,I.c=C,i}function H(I,g){for(var i,t,e=I.f,r=I.d,C=I.input,n=I.c,o=C.length,B=g[0],a=g[1];r<a&&!(n>=o);)e|=C[n++]<<r,r+=8;return(t=(i=B[e&(1<<a)-1])>>>16)>r&&A(Error("invalid code length: "+t)),I.f=e>>t,I.d=r-t,I.c=n,65535&i}function L(A){this.input=A,this.c=0,this.m=[],this.s=!1}h.prototype.l=function(A,I){var g=this.b,i=this.a;this.r=A;for(var t,e,r,C,n=g.length-258;256!==(t=H(this,A));)if(256>t)i>=n&&(this.a=i,g=this.e(),i=this.a),g[i++]=t;else for(C=D[e=t-257],0<S[e]&&(C+=v(this,S[e])),t=H(this,I),r=U[t],0<m[t]&&(r+=v(this,m[t])),i>=n&&(this.a=i,g=this.e(),i=this.a);C--;)g[i]=g[i++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=i},h.prototype.C=function(A,I){var g=this.b,i=this.a;this.r=A;for(var t,e,r,C,n=g.length;256!==(t=H(this,A));)if(256>t)i>=n&&(n=(g=this.e()).length),g[i++]=t;else for(C=D[e=t-257],0<S[e]&&(C+=v(this,S[e])),t=H(this,I),r=U[t],0<m[t]&&(r+=v(this,m[t])),i+C>n&&(n=(g=this.e()).length);C--;)g[i]=g[i++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=i},h.prototype.e=function(){var A,I,g=new(e?Uint8Array:Array)(this.a-32768),i=this.a-32768,t=this.b;if(e)g.set(t.subarray(32768,g.length));else for(A=0,I=g.length;A<I;++A)g[A]=t[A+32768];if(this.i.push(g),this.n+=g.length,e)t.set(t.subarray(i,i+32768));else for(A=0;32768>A;++A)t[A]=t[i+A];return this.a=32768,t},h.prototype.D=function(A){var I,g,i,t=this.input.length/this.c+1|0,r=this.input,C=this.b;return A&&("number"==typeof A.t&&(t=A.t),"number"==typeof A.z&&(t+=A.z)),2>t?g=(i=(r.length-this.c)/this.r[2]/2*258|0)<C.length?C.length+i:C.length<<1:g=C.length*t,e?(I=new Uint8Array(g)).set(C):I=C,this.b=I},h.prototype.q=function(){var A,I,g,i,t,r=0,C=this.b,n=this.i,o=new(e?Uint8Array:Array)(this.n+(this.a-32768));if(0===n.length)return e?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);for(I=0,g=n.length;I<g;++I)for(i=0,t=(A=n[I]).length;i<t;++i)o[r++]=A[i];for(I=32768,g=this.a;I<g;++I)o[r++]=C[I];return this.i=[],this.buffer=o},h.prototype.A=function(){var A,I=this.a;return e?this.w?(A=new Uint8Array(I)).set(this.b.subarray(0,I)):A=this.b.subarray(0,I):(this.b.length>I&&(this.b.length=I),A=this.b),this.buffer=A},L.prototype.F=function(){return this.s||this.g(),this.m.slice()},L.prototype.g=function(){for(var g=this.input.length;this.c<g;){var i,t,r=new B,n=I,o=I,a=I,E=I,Q=I,s=I,c=I,u=this.input,f=this.c;switch(r.u=u[f++],r.v=u[f++],(31!==r.u||139!==r.v)&&A(Error("invalid file signature:"+r.u+","+r.v)),r.p=u[f++],r.p){case 8:break;default:A(Error("unknown compression method: "+r.p))}if(r.h=u[f++],t=u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24,r.H=new Date(1e3*t),r.N=u[f++],r.M=u[f++],0<(4&r.h)&&(r.I=u[f++]|u[f++]<<8,f+=r.I),0<(8&r.h)){for(s=[],Q=0;0<(E=u[f++]);)s[Q++]=String.fromCharCode(E);r.name=s.join("")}if(0<(16&r.h)){for(s=[],Q=0;0<(E=u[f++]);)s[Q++]=String.fromCharCode(E);r.J=s.join("")}0<(2&r.h)&&(r.B=65535&C(u,0,f),r.B!==(u[f++]|u[f++]<<8)&&A(Error("invalid header crc16"))),n=u[u.length-4]|u[u.length-3]<<8|u[u.length-2]<<16|u[u.length-1]<<24,u.length-f-4-4<512*n&&(a=n),o=new h(u,{index:f,bufferSize:a}),r.data=i=o.g(),f=o.c,r.K=c=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,C(i,I,I)!==c&&A(Error("invalid CRC-32 checksum: 0x"+C(i,I,I).toString(16)+" / 0x"+c.toString(16))),r.L=n=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,(4294967295&i.length)!==n&&A(Error("invalid input size: "+(4294967295&i.length)+" / "+n)),this.m.push(r),this.c=f}this.s=!0;var y,l,w,F=this.m,D=0,p=0;for(y=0,l=F.length;y<l;++y)p+=F[y].data.length;if(e)for(w=new Uint8Array(p),y=0;y<l;++y)w.set(F[y].data,D),D+=F[y].data.length;else{for(w=[],y=0;y<l;++y)w[y]=F[y].data;w=Array.prototype.concat.apply([],w)}return w},i("Zlib.Gunzip",L),i("Zlib.Gunzip.prototype.decompress",L.prototype.g),i("Zlib.Gunzip.prototype.getMembers",L.prototype.F),i("Zlib.GunzipMember",B),i("Zlib.GunzipMember.prototype.getName",B.prototype.getName),i("Zlib.GunzipMember.prototype.getData",B.prototype.getData),i("Zlib.GunzipMember.prototype.getMtime",B.prototype.G)}).call(this)},773:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";var A=void 0,I=!0,g=this;function i(I,i){var t,e=I.split("."),r=g;!(e[0]in r)&&r.execScript&&r.execScript("var "+e[0]);for(;e.length&&(t=e.shift());)e.length||i===A?r=r[t]?r[t]:r[t]={}:r[t]=i}var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function e(A,I){if(this.index="number"==typeof I?I:0,this.f=0,this.buffer=A instanceof(t?Uint8Array:Array)?A:new(t?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&r(this)}function r(A){var I,g=A.buffer,i=g.length,e=new(t?Uint8Array:Array)(i<<1);if(t)e.set(g);else for(I=0;I<i;++I)e[I]=g[I];return A.buffer=e}e.prototype.b=function(A,I,g){var i,t=this.buffer,e=this.index,C=this.f,n=t[e];if(g&&1<I&&(A=8<I?(E[255&A]<<24|E[A>>>8&255]<<16|E[A>>>16&255]<<8|E[A>>>24&255])>>32-I:E[A]>>8-I),8>I+C)n=n<<I|A,C+=I;else for(i=0;i<I;++i)n=n<<1|A>>I-i-1&1,8==++C&&(C=0,t[e++]=E[n],n=0,e===t.length&&(t=r(this)));t[e]=n,this.buffer=t,this.f=C,this.index=e},e.prototype.finish=function(){var A,I=this.buffer,g=this.index;return 0<this.f&&(I[g]<<=8-this.f,I[g]=E[I[g]],g++),t?A=I.subarray(0,g):(I.length=g,A=I),A};var C,n=new(t?Uint8Array:Array)(256);for(C=0;256>C;++C){for(var o=a=C,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;n[C]=(o<<B&255)>>>0}var E=n;function Q(A,I,g){var i,t="number"==typeof I?I:I=0,e="number"==typeof g?g:A.length;for(i=-1,t=7&e;t--;++I)i=i>>>8^h[255&(i^A[I])];for(t=e>>3;t--;I+=8)i=(i=(i=(i=(i=(i=(i=(i=i>>>8^h[255&(i^A[I])])>>>8^h[255&(i^A[I+1])])>>>8^h[255&(i^A[I+2])])>>>8^h[255&(i^A[I+3])])>>>8^h[255&(i^A[I+4])])>>>8^h[255&(i^A[I+5])])>>>8^h[255&(i^A[I+6])])>>>8^h[255&(i^A[I+7])];return(4294967295^i)>>>0}var s=[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,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],h=t?new Uint32Array(s):s;function c(A){this.buffer=new(t?Uint16Array:Array)(2*A),this.length=0}function u(A,I){this.h=y,this.j=0,this.input=t&&A instanceof Array?new Uint8Array(A):A,this.c=0,I&&(I.lazy&&(this.j=I.lazy),"number"==typeof I.compressionType&&(this.h=I.compressionType),I.outputBuffer&&(this.a=t&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.c=I.outputIndex)),this.a||(this.a=new(t?Uint8Array:Array)(32768))}c.prototype.getParent=function(A){return 2*((A-2)/4|0)},c.prototype.push=function(A,I){var g,i,t,e=this.buffer;for(g=this.length,e[this.length++]=I,e[this.length++]=A;0<g&&(i=this.getParent(g),e[g]>e[i]);)t=e[g],e[g]=e[i],e[i]=t,t=e[g+1],e[g+1]=e[i+1],e[i+1]=t,g=i;return this.length},c.prototype.pop=function(){var A,I,g,i,t,e=this.buffer;for(I=e[0],A=e[1],this.length-=2,e[0]=e[this.length],e[1]=e[this.length+1],t=0;!((i=2*t+2)>=this.length)&&(i+2<this.length&&e[i+2]>e[i]&&(i+=2),e[i]>e[t]);)g=e[t],e[t]=e[i],e[i]=g,g=e[t+1],e[t+1]=e[i+1],e[i+1]=g,t=i;return{index:A,value:I,length:this.length}};var f,y=2,l=[];for(f=0;288>f;f++)switch(I){case 143>=f:l.push([f+48,8]);break;case 255>=f:l.push([f-144+400,9]);break;case 279>=f:l.push([f-256+0,7]);break;case 287>=f:l.push([f-280+192,8]);break;default:throw"invalid literal: "+f}function w(A,I){this.length=A,this.k=I}u.prototype.g=function(){var g,i,r,C,n=this.input;switch(this.h){case 0:for(r=0,C=n.length;r<C;){var o,B,a,E=i=t?n.subarray(r,r+65535):n.slice(r,r+65535),Q=(r+=i.length)===C,s=A,h=A,c=this.a,u=this.c;if(t){for(c=new Uint8Array(this.a.buffer);c.length<=u+E.length+5;)c=new Uint8Array(c.length<<1);c.set(this.a)}if(o=Q?1:0,c[u++]=0|o,a=65536+~(B=E.length)&65535,c[u++]=255&B,c[u++]=B>>>8&255,c[u++]=255&a,c[u++]=a>>>8&255,t)c.set(E,u),u+=E.length,c=c.subarray(0,u);else{for(s=0,h=E.length;s<h;++s)c[u++]=E[s];c.length=u}this.c=u,this.a=c}break;case 1:var f=new e(t?new Uint8Array(this.a.buffer):this.a,this.c);f.b(1,1,I),f.b(1,2,I);var w,F,D,S=p(this,n);for(w=0,F=S.length;w<F;w++)if(D=S[w],e.prototype.b.apply(f,l[D]),256<D)f.b(S[++w],S[++w],I),f.b(S[++w],5),f.b(S[++w],S[++w],I);else if(256===D)break;this.a=f.finish(),this.c=this.a.length;break;case y:var G,m,k,Y,M,N,R,b,v,H,L,J,K,q,T,x=new e(t?new Uint8Array(this.a.buffer):this.a,this.c),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=Array(19);for(G=y,x.b(1,1,I),x.b(G,2,I),m=p(this,n),R=U(N=d(this.n,15)),v=U(b=d(this.m,7)),k=286;257<k&&0===N[k-1];k--);for(Y=30;1<Y&&0===b[Y-1];Y--);var Z,O,j,X,P,z,_=k,$=Y,AA=new(t?Uint32Array:Array)(_+$),IA=new(t?Uint32Array:Array)(316),gA=new(t?Uint8Array:Array)(19);for(Z=O=0;Z<_;Z++)AA[O++]=N[Z];for(Z=0;Z<$;Z++)AA[O++]=b[Z];if(!t)for(Z=0,X=gA.length;Z<X;++Z)gA[Z]=0;for(Z=P=0,X=AA.length;Z<X;Z+=O){for(O=1;Z+O<X&&AA[Z+O]===AA[Z];++O);if(j=O,0===AA[Z])if(3>j)for(;0<j--;)IA[P++]=0,gA[0]++;else for(;0<j;)(z=138>j?j:138)>j-3&&z<j&&(z=j-3),10>=z?(IA[P++]=17,IA[P++]=z-3,gA[17]++):(IA[P++]=18,IA[P++]=z-11,gA[18]++),j-=z;else if(IA[P++]=AA[Z],gA[AA[Z]]++,3>--j)for(;0<j--;)IA[P++]=AA[Z],gA[AA[Z]]++;else for(;0<j;)(z=6>j?j:6)>j-3&&z<j&&(z=j-3),IA[P++]=16,IA[P++]=z-3,gA[16]++,j-=z}for(g=t?IA.subarray(0,P):IA.slice(0,P),H=d(gA,7),q=0;19>q;q++)W[q]=H[V[q]];for(M=19;4<M&&0===W[M-1];M--);for(L=U(H),x.b(k-257,5,I),x.b(Y-1,5,I),x.b(M-4,4,I),q=0;q<M;q++)x.b(W[q],3,I);for(q=0,T=g.length;q<T;q++)if(J=g[q],x.b(L[J],H[J],I),16<=J){switch(q++,J){case 16:K=2;break;case 17:K=3;break;case 18:K=7;break;default:throw"invalid code: "+J}x.b(g[q],K,I)}var iA,tA,eA,rA,CA,nA,oA,BA,aA=[R,N],EA=[v,b];for(CA=aA[0],nA=aA[1],oA=EA[0],BA=EA[1],iA=0,tA=m.length;iA<tA;++iA)if(eA=m[iA],x.b(CA[eA],nA[eA],I),256<eA)x.b(m[++iA],m[++iA],I),rA=m[++iA],x.b(oA[rA],BA[rA],I),x.b(m[++iA],m[++iA],I);else if(256===eA)break;this.a=x.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var F=function(){function A(A){switch(I){case 3===A:return[257,A-3,0];case 4===A:return[258,A-4,0];case 5===A:return[259,A-5,0];case 6===A:return[260,A-6,0];case 7===A:return[261,A-7,0];case 8===A:return[262,A-8,0];case 9===A:return[263,A-9,0];case 10===A:return[264,A-10,0];case 12>=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var g,i,t=[];for(g=3;258>=g;g++)i=A(g),t[g]=i[2]<<24|i[1]<<16|i[0];return t}(),D=t?new Uint32Array(F):F;function p(g,i){function e(A,g){var i,t,e,r,C=A.k,n=[],o=0;switch(i=D[A.length],n[o++]=65535&i,n[o++]=i>>16&255,n[o++]=i>>24,I){case 1===C:t=[0,C-1,0];break;case 2===C:t=[1,C-2,0];break;case 3===C:t=[2,C-3,0];break;case 4===C:t=[3,C-4,0];break;case 6>=C:t=[4,C-5,1];break;case 8>=C:t=[5,C-7,1];break;case 12>=C:t=[6,C-9,2];break;case 16>=C:t=[7,C-13,2];break;case 24>=C:t=[8,C-17,3];break;case 32>=C:t=[9,C-25,3];break;case 48>=C:t=[10,C-33,4];break;case 64>=C:t=[11,C-49,4];break;case 96>=C:t=[12,C-65,5];break;case 128>=C:t=[13,C-97,5];break;case 192>=C:t=[14,C-129,6];break;case 256>=C:t=[15,C-193,6];break;case 384>=C:t=[16,C-257,7];break;case 512>=C:t=[17,C-385,7];break;case 768>=C:t=[18,C-513,8];break;case 1024>=C:t=[19,C-769,8];break;case 1536>=C:t=[20,C-1025,9];break;case 2048>=C:t=[21,C-1537,9];break;case 3072>=C:t=[22,C-2049,10];break;case 4096>=C:t=[23,C-3073,10];break;case 6144>=C:t=[24,C-4097,11];break;case 8192>=C:t=[25,C-6145,11];break;case 12288>=C:t=[26,C-8193,12];break;case 16384>=C:t=[27,C-12289,12];break;case 24576>=C:t=[28,C-16385,13];break;case 32768>=C:t=[29,C-24577,13];break;default:throw"invalid distance"}for(i=t,n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],e=0,r=n.length;e<r;++e)c[u++]=n[e];y[n[0]]++,l[n[3]]++,f=A.length+g-1,Q=null}var r,C,n,o,B,a,E,Q,s,h={},c=t?new Uint16Array(2*i.length):[],u=0,f=0,y=new(t?Uint32Array:Array)(286),l=new(t?Uint32Array:Array)(30),w=g.j;if(!t){for(n=0;285>=n;)y[n++]=0;for(n=0;29>=n;)l[n++]=0}for(y[256]=1,r=0,C=i.length;r<C;++r){for(n=B=0,o=3;n<o&&r+n!==C;++n)B=B<<8|i[r+n];if(h[B]===A&&(h[B]=[]),a=h[B],!(0<f--)){for(;0<a.length&&32768<r-a[0];)a.shift();if(r+3>=C){for(Q&&e(Q,-1),n=0,o=C-r;n<o;++n)s=i[r+n],c[u++]=s,++y[s];break}0<a.length?(E=S(i,r,a),Q?Q.length<E.length?(s=i[r-1],c[u++]=s,++y[s],e(E,0)):e(Q,-1):E.length<w?Q=E:e(E,0)):Q?e(Q,-1):(s=i[r],c[u++]=s,++y[s])}a.push(r)}return c[u++]=256,y[256]++,g.n=y,g.m=l,t?c.subarray(0,u):c}function S(A,I,g){var i,t,e,r,C,n,o=0,B=A.length;r=0,n=g.length;A:for(;r<n;r++){if(i=g[n-r-1],e=3,3<o){for(C=o;3<C;C--)if(A[i+C-1]!==A[I+C-1])continue A;e=o}for(;258>e&&I+e<B&&A[i+e]===A[I+e];)++e;if(e>o&&(t=i,o=e),258===e)break}return new w(o,I-t)}function d(A,I){var g,i,e,r,C,n=A.length,o=new c(572),B=new(t?Uint8Array:Array)(n);if(!t)for(r=0;r<n;r++)B[r]=0;for(r=0;r<n;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),i=new(t?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,C=o.length/2;r<C;++r)g[r]=o.pop(),i[r]=g[r].value;for(e=function(A,I,g){function i(A){var g=s[A][h[A]];g===I?(i(A+1),i(A+1)):--E[g],++h[A]}var e,r,C,n,o,B=new(t?Uint16Array:Array)(g),a=new(t?Uint8Array:Array)(g),E=new(t?Uint8Array:Array)(I),Q=Array(g),s=Array(g),h=Array(g),c=(1<<g)-I,u=1<<g-1;for(B[g-1]=I,r=0;r<g;++r)c<u?a[r]=0:(a[r]=1,c-=u),c<<=1,B[g-2-r]=(B[g-1-r]/2|0)+I;for(B[0]=a[0],Q[0]=Array(B[0]),s[0]=Array(B[0]),r=1;r<g;++r)B[r]>2*B[r-1]+a[r]&&(B[r]=2*B[r-1]+a[r]),Q[r]=Array(B[r]),s[r]=Array(B[r]);for(e=0;e<I;++e)E[e]=g;for(C=0;C<B[g-1];++C)Q[g-1][C]=A[C],s[g-1][C]=C;for(e=0;e<g;++e)h[e]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(n=e=0,o=h[r+1],C=0;C<B[r];C++)(n=Q[r+1][o]+Q[r+1][o+1])>A[e]?(Q[r][C]=n,s[r][C]=I,o+=2):(Q[r][C]=A[e],s[r][C]=e,++e);h[r]=0,1===a[r]&&i(r)}return E}(i,i.length,I),r=0,C=g.length;r<C;++r)B[g[r].index]=e[r];return B}function U(A){var I,g,i,e,r=new(t?Uint16Array:Array)(A.length),C=[],n=[],o=0;for(I=0,g=A.length;I<g;I++)C[A[I]]=1+(0|C[A[I]]);for(I=1,g=16;I<=g;I++)n[I]=o,o+=0|C[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=n[A[I]],n[A[I]]+=1,i=r[I]=0,e=A[I];i<e;i++)r[I]=r[I]<<1|1&o,o>>>=1;return r}function G(A,I){this.input=A,this.c=this.i=0,this.d={},I&&(I.flags&&(this.d=I.flags),"string"==typeof I.filename&&(this.filename=I.filename),"string"==typeof I.comment&&(this.l=I.comment),I.deflateOptions&&(this.e=I.deflateOptions)),this.e||(this.e={})}G.prototype.g=function(){var I,g,i,e,r,C,n,o,B=new(t?Uint8Array:Array)(32768),a=0,E=this.input,s=this.i,h=this.filename,c=this.l;if(B[a++]=31,B[a++]=139,B[a++]=8,I=0,this.d.fname&&(I|=Y),this.d.fcomment&&(I|=M),this.d.fhcrc&&(I|=k),B[a++]=I,g=(Date.now?Date.now():+new Date)/1e3|0,B[a++]=255&g,B[a++]=g>>>8&255,B[a++]=g>>>16&255,B[a++]=g>>>24&255,B[a++]=0,B[a++]=m,this.d.fname!==A){for(n=0,o=h.length;n<o;++n)255<(C=h.charCodeAt(n))&&(B[a++]=C>>>8&255),B[a++]=255&C;B[a++]=0}if(this.d.comment){for(n=0,o=c.length;n<o;++n)255<(C=c.charCodeAt(n))&&(B[a++]=C>>>8&255),B[a++]=255&C;B[a++]=0}return this.d.fhcrc&&(i=65535&Q(B,0,a),B[a++]=255&i,B[a++]=i>>>8&255),this.e.outputBuffer=B,this.e.outputIndex=a,B=(r=new u(E,this.e)).g(),a=r.c,t&&(a+8>B.buffer.byteLength?(this.a=new Uint8Array(a+8),this.a.set(new Uint8Array(B.buffer)),B=this.a):B=new Uint8Array(B.buffer)),e=Q(E,A,A),B[a++]=255&e,B[a++]=e>>>8&255,B[a++]=e>>>16&255,B[a++]=e>>>24&255,o=E.length,B[a++]=255&o,B[a++]=o>>>8&255,B[a++]=o>>>16&255,B[a++]=o>>>24&255,this.i=s,t&&a<B.length&&(this.a=B=B.subarray(0,a)),B};var m=255,k=2,Y=8,M=16;i("Zlib.Gzip",G),i("Zlib.Gzip.prototype.compress",G.prototype.g)}).call(this)},774:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";var A=void 0,I=!0,g=this;function i(I,i){var t,e=I.split("."),r=g;!(e[0]in r)&&r.execScript&&r.execScript("var "+e[0]);for(;e.length&&(t=e.shift());)e.length||i===A?r=r[t]?r[t]:r[t]={}:r[t]=i}var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function e(A,I){if(this.index="number"==typeof I?I:0,this.d=0,this.buffer=A instanceof(t?Uint8Array:Array)?A:new(t?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&r(this)}function r(A){var I,g=A.buffer,i=g.length,e=new(t?Uint8Array:Array)(i<<1);if(t)e.set(g);else for(I=0;I<i;++I)e[I]=g[I];return A.buffer=e}e.prototype.a=function(A,I,g){var i,t=this.buffer,e=this.index,C=this.d,n=t[e];if(g&&1<I&&(A=8<I?(E[255&A]<<24|E[A>>>8&255]<<16|E[A>>>16&255]<<8|E[A>>>24&255])>>32-I:E[A]>>8-I),8>I+C)n=n<<I|A,C+=I;else for(i=0;i<I;++i)n=n<<1|A>>I-i-1&1,8==++C&&(C=0,t[e++]=E[n],n=0,e===t.length&&(t=r(this)));t[e]=n,this.buffer=t,this.d=C,this.index=e},e.prototype.finish=function(){var A,I=this.buffer,g=this.index;return 0<this.d&&(I[g]<<=8-this.d,I[g]=E[I[g]],g++),t?A=I.subarray(0,g):(I.length=g,A=I),A};var C,n=new(t?Uint8Array:Array)(256);for(C=0;256>C;++C){for(var o=a=C,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;n[C]=(o<<B&255)>>>0}var E=n;function Q(A){this.buffer=new(t?Uint16Array:Array)(2*A),this.length=0}function s(A,I){this.e=c,this.f=0,this.input=t&&A instanceof Array?new Uint8Array(A):A,this.c=0,I&&(I.lazy&&(this.f=I.lazy),"number"==typeof I.compressionType&&(this.e=I.compressionType),I.outputBuffer&&(this.b=t&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.c=I.outputIndex)),this.b||(this.b=new(t?Uint8Array:Array)(32768))}Q.prototype.getParent=function(A){return 2*((A-2)/4|0)},Q.prototype.push=function(A,I){var g,i,t,e=this.buffer;for(g=this.length,e[this.length++]=I,e[this.length++]=A;0<g&&(i=this.getParent(g),e[g]>e[i]);)t=e[g],e[g]=e[i],e[i]=t,t=e[g+1],e[g+1]=e[i+1],e[i+1]=t,g=i;return this.length},Q.prototype.pop=function(){var A,I,g,i,t,e=this.buffer;for(I=e[0],A=e[1],this.length-=2,e[0]=e[this.length],e[1]=e[this.length+1],t=0;!((i=2*t+2)>=this.length)&&(i+2<this.length&&e[i+2]>e[i]&&(i+=2),e[i]>e[t]);)g=e[t],e[t]=e[i],e[i]=g,g=e[t+1],e[t+1]=e[i+1],e[i+1]=g,t=i;return{index:A,value:I,length:this.length}};var h,c=2,u=[];for(h=0;288>h;h++)switch(I){case 143>=h:u.push([h+48,8]);break;case 255>=h:u.push([h-144+400,9]);break;case 279>=h:u.push([h-256+0,7]);break;case 287>=h:u.push([h-280+192,8]);break;default:throw"invalid literal: "+h}function f(A,I){this.length=A,this.g=I}s.prototype.h=function(){var g,i,r,C,n=this.input;switch(this.e){case 0:for(r=0,C=n.length;r<C;){var o,B,a,E=i=t?n.subarray(r,r+65535):n.slice(r,r+65535),Q=(r+=i.length)===C,s=A,h=A,f=this.b,y=this.c;if(t){for(f=new Uint8Array(this.b.buffer);f.length<=y+E.length+5;)f=new Uint8Array(f.length<<1);f.set(this.b)}if(o=Q?1:0,f[y++]=0|o,a=65536+~(B=E.length)&65535,f[y++]=255&B,f[y++]=B>>>8&255,f[y++]=255&a,f[y++]=a>>>8&255,t)f.set(E,y),y+=E.length,f=f.subarray(0,y);else{for(s=0,h=E.length;s<h;++s)f[y++]=E[s];f.length=y}this.c=y,this.b=f}break;case 1:var l=new e(t?new Uint8Array(this.b.buffer):this.b,this.c);l.a(1,1,I),l.a(1,2,I);var F,S,d,U=w(this,n);for(F=0,S=U.length;F<S;F++)if(d=U[F],e.prototype.a.apply(l,u[d]),256<d)l.a(U[++F],U[++F],I),l.a(U[++F],5),l.a(U[++F],U[++F],I);else if(256===d)break;this.b=l.finish(),this.c=this.b.length;break;case c:var G,m,k,Y,M,N,R,b,v,H,L,J,K,q,T,x=new e(t?new Uint8Array(this.b.buffer):this.b,this.c),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=Array(19);for(G=c,x.a(1,1,I),x.a(G,2,I),m=w(this,n),R=p(N=D(this.j,15)),v=p(b=D(this.i,7)),k=286;257<k&&0===N[k-1];k--);for(Y=30;1<Y&&0===b[Y-1];Y--);var Z,O,j,X,P,z,_=k,$=Y,AA=new(t?Uint32Array:Array)(_+$),IA=new(t?Uint32Array:Array)(316),gA=new(t?Uint8Array:Array)(19);for(Z=O=0;Z<_;Z++)AA[O++]=N[Z];for(Z=0;Z<$;Z++)AA[O++]=b[Z];if(!t)for(Z=0,X=gA.length;Z<X;++Z)gA[Z]=0;for(Z=P=0,X=AA.length;Z<X;Z+=O){for(O=1;Z+O<X&&AA[Z+O]===AA[Z];++O);if(j=O,0===AA[Z])if(3>j)for(;0<j--;)IA[P++]=0,gA[0]++;else for(;0<j;)(z=138>j?j:138)>j-3&&z<j&&(z=j-3),10>=z?(IA[P++]=17,IA[P++]=z-3,gA[17]++):(IA[P++]=18,IA[P++]=z-11,gA[18]++),j-=z;else if(IA[P++]=AA[Z],gA[AA[Z]]++,3>--j)for(;0<j--;)IA[P++]=AA[Z],gA[AA[Z]]++;else for(;0<j;)(z=6>j?j:6)>j-3&&z<j&&(z=j-3),IA[P++]=16,IA[P++]=z-3,gA[16]++,j-=z}for(g=t?IA.subarray(0,P):IA.slice(0,P),H=D(gA,7),q=0;19>q;q++)W[q]=H[V[q]];for(M=19;4<M&&0===W[M-1];M--);for(L=p(H),x.a(k-257,5,I),x.a(Y-1,5,I),x.a(M-4,4,I),q=0;q<M;q++)x.a(W[q],3,I);for(q=0,T=g.length;q<T;q++)if(J=g[q],x.a(L[J],H[J],I),16<=J){switch(q++,J){case 16:K=2;break;case 17:K=3;break;case 18:K=7;break;default:throw"invalid code: "+J}x.a(g[q],K,I)}var iA,tA,eA,rA,CA,nA,oA,BA,aA=[R,N],EA=[v,b];for(CA=aA[0],nA=aA[1],oA=EA[0],BA=EA[1],iA=0,tA=m.length;iA<tA;++iA)if(eA=m[iA],x.a(CA[eA],nA[eA],I),256<eA)x.a(m[++iA],m[++iA],I),rA=m[++iA],x.a(oA[rA],BA[rA],I),x.a(m[++iA],m[++iA],I);else if(256===eA)break;this.b=x.finish(),this.c=this.b.length;break;default:throw"invalid compression type"}return this.b};var y=function(){function A(A){switch(I){case 3===A:return[257,A-3,0];case 4===A:return[258,A-4,0];case 5===A:return[259,A-5,0];case 6===A:return[260,A-6,0];case 7===A:return[261,A-7,0];case 8===A:return[262,A-8,0];case 9===A:return[263,A-9,0];case 10===A:return[264,A-10,0];case 12>=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var g,i,t=[];for(g=3;258>=g;g++)i=A(g),t[g]=i[2]<<24|i[1]<<16|i[0];return t}(),l=t?new Uint32Array(y):y;function w(g,i){function e(A,g){var i,t,e,r,C=A.g,n=[],o=0;switch(i=l[A.length],n[o++]=65535&i,n[o++]=i>>16&255,n[o++]=i>>24,I){case 1===C:t=[0,C-1,0];break;case 2===C:t=[1,C-2,0];break;case 3===C:t=[2,C-3,0];break;case 4===C:t=[3,C-4,0];break;case 6>=C:t=[4,C-5,1];break;case 8>=C:t=[5,C-7,1];break;case 12>=C:t=[6,C-9,2];break;case 16>=C:t=[7,C-13,2];break;case 24>=C:t=[8,C-17,3];break;case 32>=C:t=[9,C-25,3];break;case 48>=C:t=[10,C-33,4];break;case 64>=C:t=[11,C-49,4];break;case 96>=C:t=[12,C-65,5];break;case 128>=C:t=[13,C-97,5];break;case 192>=C:t=[14,C-129,6];break;case 256>=C:t=[15,C-193,6];break;case 384>=C:t=[16,C-257,7];break;case 512>=C:t=[17,C-385,7];break;case 768>=C:t=[18,C-513,8];break;case 1024>=C:t=[19,C-769,8];break;case 1536>=C:t=[20,C-1025,9];break;case 2048>=C:t=[21,C-1537,9];break;case 3072>=C:t=[22,C-2049,10];break;case 4096>=C:t=[23,C-3073,10];break;case 6144>=C:t=[24,C-4097,11];break;case 8192>=C:t=[25,C-6145,11];break;case 12288>=C:t=[26,C-8193,12];break;case 16384>=C:t=[27,C-12289,12];break;case 24576>=C:t=[28,C-16385,13];break;case 32768>=C:t=[29,C-24577,13];break;default:throw"invalid distance"}for(i=t,n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],e=0,r=n.length;e<r;++e)c[u++]=n[e];y[n[0]]++,w[n[3]]++,f=A.length+g-1,Q=null}var r,C,n,o,B,a,E,Q,s,h={},c=t?new Uint16Array(2*i.length):[],u=0,f=0,y=new(t?Uint32Array:Array)(286),w=new(t?Uint32Array:Array)(30),D=g.f;if(!t){for(n=0;285>=n;)y[n++]=0;for(n=0;29>=n;)w[n++]=0}for(y[256]=1,r=0,C=i.length;r<C;++r){for(n=B=0,o=3;n<o&&r+n!==C;++n)B=B<<8|i[r+n];if(h[B]===A&&(h[B]=[]),a=h[B],!(0<f--)){for(;0<a.length&&32768<r-a[0];)a.shift();if(r+3>=C){for(Q&&e(Q,-1),n=0,o=C-r;n<o;++n)s=i[r+n],c[u++]=s,++y[s];break}0<a.length?(E=F(i,r,a),Q?Q.length<E.length?(s=i[r-1],c[u++]=s,++y[s],e(E,0)):e(Q,-1):E.length<D?Q=E:e(E,0)):Q?e(Q,-1):(s=i[r],c[u++]=s,++y[s])}a.push(r)}return c[u++]=256,y[256]++,g.j=y,g.i=w,t?c.subarray(0,u):c}function F(A,I,g){var i,t,e,r,C,n,o=0,B=A.length;r=0,n=g.length;A:for(;r<n;r++){if(i=g[n-r-1],e=3,3<o){for(C=o;3<C;C--)if(A[i+C-1]!==A[I+C-1])continue A;e=o}for(;258>e&&I+e<B&&A[i+e]===A[I+e];)++e;if(e>o&&(t=i,o=e),258===e)break}return new f(o,I-t)}function D(A,I){var g,i,e,r,C,n=A.length,o=new Q(572),B=new(t?Uint8Array:Array)(n);if(!t)for(r=0;r<n;r++)B[r]=0;for(r=0;r<n;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),i=new(t?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,C=o.length/2;r<C;++r)g[r]=o.pop(),i[r]=g[r].value;for(e=function(A,I,g){function i(A){var g=s[A][h[A]];g===I?(i(A+1),i(A+1)):--E[g],++h[A]}var e,r,C,n,o,B=new(t?Uint16Array:Array)(g),a=new(t?Uint8Array:Array)(g),E=new(t?Uint8Array:Array)(I),Q=Array(g),s=Array(g),h=Array(g),c=(1<<g)-I,u=1<<g-1;for(B[g-1]=I,r=0;r<g;++r)c<u?a[r]=0:(a[r]=1,c-=u),c<<=1,B[g-2-r]=(B[g-1-r]/2|0)+I;for(B[0]=a[0],Q[0]=Array(B[0]),s[0]=Array(B[0]),r=1;r<g;++r)B[r]>2*B[r-1]+a[r]&&(B[r]=2*B[r-1]+a[r]),Q[r]=Array(B[r]),s[r]=Array(B[r]);for(e=0;e<I;++e)E[e]=g;for(C=0;C<B[g-1];++C)Q[g-1][C]=A[C],s[g-1][C]=C;for(e=0;e<g;++e)h[e]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(n=e=0,o=h[r+1],C=0;C<B[r];C++)(n=Q[r+1][o]+Q[r+1][o+1])>A[e]?(Q[r][C]=n,s[r][C]=I,o+=2):(Q[r][C]=A[e],s[r][C]=e,++e);h[r]=0,1===a[r]&&i(r)}return E}(i,i.length,I),r=0,C=g.length;r<C;++r)B[g[r].index]=e[r];return B}function p(A){var I,g,i,e,r=new(t?Uint16Array:Array)(A.length),C=[],n=[],o=0;for(I=0,g=A.length;I<g;I++)C[A[I]]=1+(0|C[A[I]]);for(I=1,g=16;I<=g;I++)n[I]=o,o+=0|C[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=n[A[I]],n[A[I]]+=1,i=r[I]=0,e=A[I];i<e;i++)r[I]=r[I]<<1|1&o,o>>>=1;return r}i("Zlib.RawDeflate",s),i("Zlib.RawDeflate.prototype.compress",s.prototype.h);var S,d,U,G,m={NONE:0,FIXED:1,DYNAMIC:c};if(Object.keys)S=Object.keys(m);else for(d in S=[],U=0,m)S[U++]=d;for(U=0,G=S.length;U<G;++U)i("Zlib.RawDeflate.CompressionType."+(d=S[U]),m[d])}).call(this)},775:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";var A=void 0,I=this;function g(g,i){var t,e=g.split("."),r=I;!(e[0]in r)&&r.execScript&&r.execScript("var "+e[0]);for(;e.length&&(t=e.shift());)e.length||i===A?r=r[t]?r[t]:r[t]={}:r[t]=i}var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function t(A){var I,g,t,e,r,C,n,o,B,a,E=A.length,Q=0,s=Number.POSITIVE_INFINITY;for(o=0;o<E;++o)A[o]>Q&&(Q=A[o]),A[o]<s&&(s=A[o]);for(I=1<<Q,g=new(i?Uint32Array:Array)(I),t=1,e=0,r=2;t<=Q;){for(o=0;o<E;++o)if(A[o]===t){for(C=0,n=e,B=0;B<t;++B)C=C<<1|1&n,n>>=1;for(a=t<<16|o,B=C;B<I;B+=r)g[B]=a;++e}++t,e<<=1,r<<=1}return[g,Q,s]}function e(A,I){switch(this.g=[],this.h=32768,this.c=this.f=this.d=this.k=0,this.input=i?new Uint8Array(A):A,this.l=!1,this.i=C,this.p=!1,!I&&(I={})||(I.index&&(this.d=I.index),I.bufferSize&&(this.h=I.bufferSize),I.bufferType&&(this.i=I.bufferType),I.resize&&(this.p=I.resize)),this.i){case r:this.a=32768,this.b=new(i?Uint8Array:Array)(32768+this.h+258);break;case C:this.a=0,this.b=new(i?Uint8Array:Array)(this.h),this.e=this.u,this.m=this.r,this.j=this.s;break;default:throw Error("invalid inflate mode")}}var r=0,C=1;e.prototype.t=function(){for(;!this.l;){var I=d(this,3);switch(1&I&&(this.l=!0),I>>>=1){case 0:var g=this.input,e=this.d,n=this.b,o=this.a,B=g.length,E=A,Q=n.length,s=A;if(this.c=this.f=0,e+1>=B)throw Error("invalid uncompressed block header: LEN");if(E=g[e++]|g[e++]<<8,e+1>=B)throw Error("invalid uncompressed block header: NLEN");if(E===~(g[e++]|g[e++]<<8))throw Error("invalid uncompressed block header: length verify");if(e+E>g.length)throw Error("input buffer is broken");switch(this.i){case r:for(;o+E>n.length;){if(E-=s=Q-o,i)n.set(g.subarray(e,e+s),o),o+=s,e+=s;else for(;s--;)n[o++]=g[e++];this.a=o,n=this.e(),o=this.a}break;case C:for(;o+E>n.length;)n=this.e({o:2});break;default:throw Error("invalid inflate mode")}if(i)n.set(g.subarray(e,e+E),o),o+=E,e+=E;else for(;E--;)n[o++]=g[e++];this.d=e,this.a=o,this.b=n;break;case 1:this.j(D,S);break;case 2:var h,c,u,f,y=d(this,5)+257,l=d(this,5)+1,w=d(this,4)+4,F=new(i?Uint8Array:Array)(a.length),p=A,G=A,m=A,k=A,Y=A;for(Y=0;Y<w;++Y)F[a[Y]]=d(this,3);if(!i)for(Y=w,w=F.length;Y<w;++Y)F[a[Y]]=0;for(h=t(F),p=new(i?Uint8Array:Array)(y+l),Y=0,f=y+l;Y<f;)switch(G=U(this,h),G){case 16:for(k=3+d(this,2);k--;)p[Y++]=m;break;case 17:for(k=3+d(this,3);k--;)p[Y++]=0;m=0;break;case 18:for(k=11+d(this,7);k--;)p[Y++]=0;m=0;break;default:m=p[Y++]=G}c=t(i?p.subarray(0,y):p.slice(0,y)),u=t(i?p.subarray(y):p.slice(y)),this.j(c,u);break;default:throw Error("unknown BTYPE: "+I)}}return this.m()};var n,o,B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],a=i?new Uint16Array(B):B,E=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],Q=i?new Uint16Array(E):E,s=[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,0,0],h=i?new Uint8Array(s):s,c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],u=i?new Uint16Array(c):c,f=[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],y=i?new Uint8Array(f):f,l=new(i?Uint8Array:Array)(288);for(n=0,o=l.length;n<o;++n)l[n]=143>=n?8:255>=n?9:279>=n?7:8;var w,F,D=t(l),p=new(i?Uint8Array:Array)(30);for(w=0,F=p.length;w<F;++w)p[w]=5;var S=t(p);function d(A,I){for(var g,i=A.f,t=A.c,e=A.input,r=A.d,C=e.length;t<I;){if(r>=C)throw Error("input buffer is broken");i|=e[r++]<<t,t+=8}return g=i&(1<<I)-1,A.f=i>>>I,A.c=t-I,A.d=r,g}function U(A,I){for(var g,i,t=A.f,e=A.c,r=A.input,C=A.d,n=r.length,o=I[0],B=I[1];e<B&&!(C>=n);)t|=r[C++]<<e,e+=8;if((i=(g=o[t&(1<<B)-1])>>>16)>e)throw Error("invalid code length: "+i);return A.f=t>>i,A.c=e-i,A.d=C,65535&g}e.prototype.j=function(A,I){var g=this.b,i=this.a;this.n=A;for(var t,e,r,C,n=g.length-258;256!==(t=U(this,A));)if(256>t)i>=n&&(this.a=i,g=this.e(),i=this.a),g[i++]=t;else for(C=Q[e=t-257],0<h[e]&&(C+=d(this,h[e])),t=U(this,I),r=u[t],0<y[t]&&(r+=d(this,y[t])),i>=n&&(this.a=i,g=this.e(),i=this.a);C--;)g[i]=g[i++-r];for(;8<=this.c;)this.c-=8,this.d--;this.a=i},e.prototype.s=function(A,I){var g=this.b,i=this.a;this.n=A;for(var t,e,r,C,n=g.length;256!==(t=U(this,A));)if(256>t)i>=n&&(n=(g=this.e()).length),g[i++]=t;else for(C=Q[e=t-257],0<h[e]&&(C+=d(this,h[e])),t=U(this,I),r=u[t],0<y[t]&&(r+=d(this,y[t])),i+C>n&&(n=(g=this.e()).length);C--;)g[i]=g[i++-r];for(;8<=this.c;)this.c-=8,this.d--;this.a=i},e.prototype.e=function(){var A,I,g=new(i?Uint8Array:Array)(this.a-32768),t=this.a-32768,e=this.b;if(i)g.set(e.subarray(32768,g.length));else for(A=0,I=g.length;A<I;++A)g[A]=e[A+32768];if(this.g.push(g),this.k+=g.length,i)e.set(e.subarray(t,t+32768));else for(A=0;32768>A;++A)e[A]=e[t+A];return this.a=32768,e},e.prototype.u=function(A){var I,g,t,e=this.input.length/this.d+1|0,r=this.input,C=this.b;return A&&("number"==typeof A.o&&(e=A.o),"number"==typeof A.q&&(e+=A.q)),2>e?g=(t=(r.length-this.d)/this.n[2]/2*258|0)<C.length?C.length+t:C.length<<1:g=C.length*e,i?(I=new Uint8Array(g)).set(C):I=C,this.b=I},e.prototype.m=function(){var A,I,g,t,e,r=0,C=this.b,n=this.g,o=new(i?Uint8Array:Array)(this.k+(this.a-32768));if(0===n.length)return i?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);for(I=0,g=n.length;I<g;++I)for(t=0,e=(A=n[I]).length;t<e;++t)o[r++]=A[t];for(I=32768,g=this.a;I<g;++I)o[r++]=C[I];return this.g=[],this.buffer=o},e.prototype.r=function(){var A,I=this.a;return i?this.p?(A=new Uint8Array(I)).set(this.b.subarray(0,I)):A=this.b.subarray(0,I):(this.b.length>I&&(this.b.length=I),A=this.b),this.buffer=A},g("Zlib.RawInflate",e),g("Zlib.RawInflate.prototype.decompress",e.prototype.t);var G,m,k,Y,M={ADAPTIVE:C,BLOCK:r};if(Object.keys)G=Object.keys(M);else for(m in G=[],k=0,M)G[k++]=m;for(k=0,Y=G.length;k<Y;++k)g("Zlib.RawInflate.BufferType."+(m=G[k]),M[m])}).call(this)},776:function(module,exports){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";function l(A){throw A}var r=void 0,t,aa=this;function v(A,I){var g,i=A.split("."),t=aa;!(i[0]in t)&&t.execScript&&t.execScript("var "+i[0]);for(;i.length&&(g=i.shift());)i.length||I===r?t=t[g]?t[g]:t[g]={}:t[g]=I}var y="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView,z;for(new(y?Uint8Array:Array)(256),z=0;256>z;++z)for(var B=z,ba=7,B=B>>>1;B;B>>>=1)--ba;var ca=[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,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],C=y?new Uint32Array(ca):ca,a;if(aa.Uint8Array!==r)try{eval("String.fromCharCode.apply(null, new Uint8Array([0]));")}catch(A){String.fromCharCode.apply=(a=String.fromCharCode.apply,function(A,I){return a.call(String.fromCharCode,A,Array.prototype.slice.call(I))})}function D(A){var I,g,i,t,e,r,C,n,o,B,a=A.length,E=0,Q=Number.POSITIVE_INFINITY;for(n=0;n<a;++n)A[n]>E&&(E=A[n]),A[n]<Q&&(Q=A[n]);for(I=1<<E,g=new(y?Uint32Array:Array)(I),i=1,t=0,e=2;i<=E;){for(n=0;n<a;++n)if(A[n]===i){for(r=0,C=t,o=0;o<i;++o)r=r<<1|1&C,C>>=1;for(B=i<<16|n,o=r;o<I;o+=e)g[o]=B;++t}++i,t<<=1,e<<=1}return[g,E,Q]}var F=[],G;for(G=0;288>G;G++)switch(!0){case 143>=G:F.push([G+48,8]);break;case 255>=G:F.push([G-144+400,9]);break;case 279>=G:F.push([G-256+0,7]);break;case 287>=G:F.push([G-280+192,8]);break;default:l("invalid literal: "+G)}var fa=function(){function A(A){switch(!0){case 3===A:return[257,A-3,0];case 4===A:return[258,A-4,0];case 5===A:return[259,A-5,0];case 6===A:return[260,A-6,0];case 7===A:return[261,A-7,0];case 8===A:return[262,A-8,0];case 9===A:return[263,A-9,0];case 10===A:return[264,A-10,0];case 12>=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:l("invalid length: "+A)}}var I,g,i=[];for(I=3;258>=I;I++)g=A(I),i[I]=g[2]<<24|g[1]<<16|g[0];return i}();function I(A,I){switch(this.l=[],this.m=32768,this.d=this.f=this.c=this.t=0,this.input=y?new Uint8Array(A):A,this.u=!1,this.n=J,this.K=!1,!I&&(I={})||(I.index&&(this.c=I.index),I.bufferSize&&(this.m=I.bufferSize),I.bufferType&&(this.n=I.bufferType),I.resize&&(this.K=I.resize)),this.n){case ga:this.a=32768,this.b=new(y?Uint8Array:Array)(32768+this.m+258);break;case J:this.a=0,this.b=new(y?Uint8Array:Array)(this.m),this.e=this.W,this.B=this.R,this.q=this.V;break;default:l(Error("invalid inflate mode"))}}y&&new Uint32Array(fa);var ga=0,J=1;I.prototype.r=function(){for(;!this.u;){var A=K(this,3);switch(1&A&&(this.u=!0),A>>>=1){case 0:var I=this.input,g=this.c,i=this.b,t=this.a,e=I.length,C=r,n=i.length,o=r;switch(this.d=this.f=0,g+1>=e&&l(Error("invalid uncompressed block header: LEN")),C=I[g++]|I[g++]<<8,g+1>=e&&l(Error("invalid uncompressed block header: NLEN")),C===~(I[g++]|I[g++]<<8)&&l(Error("invalid uncompressed block header: length verify")),g+C>I.length&&l(Error("input buffer is broken")),this.n){case ga:for(;t+C>i.length;){if(C-=o=n-t,y)i.set(I.subarray(g,g+o),t),t+=o,g+=o;else for(;o--;)i[t++]=I[g++];this.a=t,i=this.e(),t=this.a}break;case J:for(;t+C>i.length;)i=this.e({H:2});break;default:l(Error("invalid inflate mode"))}if(y)i.set(I.subarray(g,g+C),t),t+=C,g+=C;else for(;C--;)i[t++]=I[g++];this.c=g,this.a=t,this.b=i;break;case 1:this.q(ha,ia);break;case 2:var B,a,E,Q,s=K(this,5)+257,h=K(this,5)+1,c=K(this,4)+4,u=new(y?Uint8Array:Array)(L.length),f=r,w=r,F=r,p=r,S=r;for(S=0;S<c;++S)u[L[S]]=K(this,3);if(!y)for(S=c,c=u.length;S<c;++S)u[L[S]]=0;for(B=D(u),f=new(y?Uint8Array:Array)(s+h),S=0,Q=s+h;S<Q;)switch(w=M(this,B),w){case 16:for(p=3+K(this,2);p--;)f[S++]=F;break;case 17:for(p=3+K(this,3);p--;)f[S++]=0;F=0;break;case 18:for(p=11+K(this,7);p--;)f[S++]=0;F=0;break;default:F=f[S++]=w}a=D(y?f.subarray(0,s):f.slice(0,s)),E=D(y?f.subarray(s):f.slice(s)),this.q(a,E);break;default:l(Error("unknown BTYPE: "+A))}}return this.B()};var ja=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],L=y?new Uint16Array(ja):ja,ka=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],la=y?new Uint16Array(ka):ka,ma=[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,0,0],N=y?new Uint8Array(ma):ma,na=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],oa=y?new Uint16Array(na):na,pa=[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],P=y?new Uint8Array(pa):pa,Q=new(y?Uint8Array:Array)(288),R,qa;for(R=0,qa=Q.length;R<qa;++R)Q[R]=143>=R?8:255>=R?9:279>=R?7:8;var ha=D(Q),S=new(y?Uint8Array:Array)(30),T,ra;for(T=0,ra=S.length;T<ra;++T)S[T]=5;var ia=D(S);function K(A,I){for(var g,i=A.f,t=A.d,e=A.input,r=A.c,C=e.length;t<I;)r>=C&&l(Error("input buffer is broken")),i|=e[r++]<<t,t+=8;return g=i&(1<<I)-1,A.f=i>>>I,A.d=t-I,A.c=r,g}function M(A,I){for(var g,i,t=A.f,e=A.d,r=A.input,C=A.c,n=r.length,o=I[0],B=I[1];e<B&&!(C>=n);)t|=r[C++]<<e,e+=8;return(i=(g=o[t&(1<<B)-1])>>>16)>e&&l(Error("invalid code length: "+i)),A.f=t>>i,A.d=e-i,A.c=C,65535&g}function U(A){A=A||{},this.files=[],this.v=A.comment}function V(A,I){I=I||{},this.input=y&&A instanceof Array?new Uint8Array(A):A,this.c=0,this.ba=I.verify||!1,this.j=I.password}t=I.prototype,t.q=function(A,I){var g=this.b,i=this.a;this.C=A;for(var t,e,r,C,n=g.length-258;256!==(t=M(this,A));)if(256>t)i>=n&&(this.a=i,g=this.e(),i=this.a),g[i++]=t;else for(C=la[e=t-257],0<N[e]&&(C+=K(this,N[e])),t=M(this,I),r=oa[t],0<P[t]&&(r+=K(this,P[t])),i>=n&&(this.a=i,g=this.e(),i=this.a);C--;)g[i]=g[i++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=i},t.V=function(A,I){var g=this.b,i=this.a;this.C=A;for(var t,e,r,C,n=g.length;256!==(t=M(this,A));)if(256>t)i>=n&&(n=(g=this.e()).length),g[i++]=t;else for(C=la[e=t-257],0<N[e]&&(C+=K(this,N[e])),t=M(this,I),r=oa[t],0<P[t]&&(r+=K(this,P[t])),i+C>n&&(n=(g=this.e()).length);C--;)g[i]=g[i++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=i},t.e=function(){var A,I,g=new(y?Uint8Array:Array)(this.a-32768),i=this.a-32768,t=this.b;if(y)g.set(t.subarray(32768,g.length));else for(A=0,I=g.length;A<I;++A)g[A]=t[A+32768];if(this.l.push(g),this.t+=g.length,y)t.set(t.subarray(i,i+32768));else for(A=0;32768>A;++A)t[A]=t[i+A];return this.a=32768,t},t.W=function(A){var I,g,i,t=this.input.length/this.c+1|0,e=this.input,r=this.b;return A&&("number"==typeof A.H&&(t=A.H),"number"==typeof A.P&&(t+=A.P)),2>t?g=(i=(e.length-this.c)/this.C[2]/2*258|0)<r.length?r.length+i:r.length<<1:g=r.length*t,y?(I=new Uint8Array(g)).set(r):I=r,this.b=I},t.B=function(){var A,I,g,i,t,e=0,r=this.b,C=this.l,n=new(y?Uint8Array:Array)(this.t+(this.a-32768));if(0===C.length)return y?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);for(I=0,g=C.length;I<g;++I)for(i=0,t=(A=C[I]).length;i<t;++i)n[e++]=A[i];for(I=32768,g=this.a;I<g;++I)n[e++]=r[I];return this.l=[],this.buffer=n},t.R=function(){var A,I=this.a;return y?this.K?(A=new Uint8Array(I)).set(this.b.subarray(0,I)):A=this.b.subarray(0,I):(this.b.length>I&&(this.b.length=I),A=this.b),this.buffer=A},U.prototype.L=function(A){this.j=A},U.prototype.s=function(A){var I=65535&A[2]|2;return I*(1^I)>>8&255},U.prototype.k=function(A,I){A[0]=(C[255&(A[0]^I)]^A[0]>>>8)>>>0,A[1]=1+(6681*(20173*(A[1]+(255&A[0]))>>>0)>>>0)>>>0,A[2]=(C[255&(A[2]^A[1]>>>24)]^A[2]>>>8)>>>0},U.prototype.T=function(A){var I,g,i=[305419896,591751049,878082192];for(y&&(i=new Uint32Array(i)),I=0,g=A.length;I<g;++I)this.k(i,255&A[I]);return i};var sa={O:0,M:8},W=[80,75,1,2],Y=[80,75,3,4],Z=[80,75,5,6];function ta(A,I){this.input=A,this.offset=I}function ua(A,I){this.input=A,this.offset=I}ta.prototype.parse=function(){var A=this.input,I=this.offset;(A[I++]!==W[0]||A[I++]!==W[1]||A[I++]!==W[2]||A[I++]!==W[3])&&l(Error("invalid file header signature")),this.version=A[I++],this.ia=A[I++],this.Z=A[I++]|A[I++]<<8,this.I=A[I++]|A[I++]<<8,this.A=A[I++]|A[I++]<<8,this.time=A[I++]|A[I++]<<8,this.U=A[I++]|A[I++]<<8,this.p=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.z=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.J=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.h=A[I++]|A[I++]<<8,this.g=A[I++]|A[I++]<<8,this.F=A[I++]|A[I++]<<8,this.ea=A[I++]|A[I++]<<8,this.ga=A[I++]|A[I++]<<8,this.fa=A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24,this.$=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.filename=String.fromCharCode.apply(null,y?A.subarray(I,I+=this.h):A.slice(I,I+=this.h)),this.X=y?A.subarray(I,I+=this.g):A.slice(I,I+=this.g),this.v=y?A.subarray(I,I+this.F):A.slice(I,I+this.F),this.length=I-this.offset};var va={N:1,ca:8,da:2048};function $(A){var I,g,i,t,e=[],C={};if(!A.i){if(A.o===r){var n,o=A.input;if(!A.D)A:{var B,a=A.input;for(B=a.length-12;0<B;--B)if(a[B]===Z[0]&&a[B+1]===Z[1]&&a[B+2]===Z[2]&&a[B+3]===Z[3]){A.D=B;break A}l(Error("End of Central Directory Record not found"))}n=A.D,(o[n++]!==Z[0]||o[n++]!==Z[1]||o[n++]!==Z[2]||o[n++]!==Z[3])&&l(Error("invalid signature")),A.ha=o[n++]|o[n++]<<8,A.ja=o[n++]|o[n++]<<8,A.ka=o[n++]|o[n++]<<8,A.aa=o[n++]|o[n++]<<8,A.Q=(o[n++]|o[n++]<<8|o[n++]<<16|o[n++]<<24)>>>0,A.o=(o[n++]|o[n++]<<8|o[n++]<<16|o[n++]<<24)>>>0,A.w=o[n++]|o[n++]<<8,A.v=y?o.subarray(n,n+A.w):o.slice(n,n+A.w)}for(I=A.o,i=0,t=A.aa;i<t;++i)(g=new ta(A.input,I)).parse(),I+=g.length,e[i]=g,C[g.filename]=i;A.Q<I-A.o&&l(Error("invalid file header size")),A.i=e,A.G=C}}function wa(A,I,g){return g^=A.s(I),A.k(I,g),g}ua.prototype.parse=function(){var A=this.input,I=this.offset;(A[I++]!==Y[0]||A[I++]!==Y[1]||A[I++]!==Y[2]||A[I++]!==Y[3])&&l(Error("invalid local file header signature")),this.Z=A[I++]|A[I++]<<8,this.I=A[I++]|A[I++]<<8,this.A=A[I++]|A[I++]<<8,this.time=A[I++]|A[I++]<<8,this.U=A[I++]|A[I++]<<8,this.p=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.z=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.J=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.h=A[I++]|A[I++]<<8,this.g=A[I++]|A[I++]<<8,this.filename=String.fromCharCode.apply(null,y?A.subarray(I,I+=this.h):A.slice(I,I+=this.h)),this.X=y?A.subarray(I,I+=this.g):A.slice(I,I+=this.g),this.length=I-this.offset},t=V.prototype,t.Y=function(){var A,I,g,i=[];for(this.i||$(this),A=0,I=(g=this.i).length;A<I;++A)i[A]=g[A].filename;return i},t.r=function(A,g){var i,t;this.G||$(this),(i=this.G[A])===r&&l(Error(A+" not found")),t=g||{};var e,n,o,B,a,E,Q,s,h=this.input,c=this.i;if(c||$(this),c[i]===r&&l(Error("wrong index")),n=c[i].$,(e=new ua(this.input,n)).parse(),n+=e.length,o=e.z,0!=(e.I&va.N)){for(!t.password&&!this.j&&l(Error("please set password")),E=this.S(t.password||this.j),Q=n,s=n+12;Q<s;++Q)wa(this,E,h[Q]);for(Q=n+=12,s=n+(o-=12);Q<s;++Q)h[Q]=wa(this,E,h[Q])}switch(e.A){case sa.O:B=y?this.input.subarray(n,n+o):this.input.slice(n,n+o);break;case sa.M:B=new I(this.input,{index:n,bufferSize:e.J}).r();break;default:l(Error("unknown compression type"))}if(this.ba){var u,f=r,w="number"==typeof f?f:f=0,F=B.length;for(u=-1,w=7&F;w--;++f)u=u>>>8^C[255&(u^B[f])];for(w=F>>3;w--;f+=8)u=(u=(u=(u=(u=(u=(u=(u=u>>>8^C[255&(u^B[f])])>>>8^C[255&(u^B[f+1])])>>>8^C[255&(u^B[f+2])])>>>8^C[255&(u^B[f+3])])>>>8^C[255&(u^B[f+4])])>>>8^C[255&(u^B[f+5])])>>>8^C[255&(u^B[f+6])])>>>8^C[255&(u^B[f+7])];a=(4294967295^u)>>>0,e.p!==a&&l(Error("wrong crc: file=0x"+e.p.toString(16)+", data=0x"+a.toString(16)))}return B},t.L=function(A){this.j=A},t.k=U.prototype.k,t.S=U.prototype.T,t.s=U.prototype.s,v("Zlib.Unzip",V),v("Zlib.Unzip.prototype.decompress",V.prototype.r),v("Zlib.Unzip.prototype.getFilenames",V.prototype.Y),v("Zlib.Unzip.prototype.setPassword",V.prototype.L)}).call(this)},777:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";var A=void 0,I=!0,g=this;function i(I,i){var t,e=I.split("."),r=g;!(e[0]in r)&&r.execScript&&r.execScript("var "+e[0]);for(;e.length&&(t=e.shift());)e.length||i===A?r=r[t]?r[t]:r[t]={}:r[t]=i}var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function e(A,I){if(this.index="number"==typeof I?I:0,this.f=0,this.buffer=A instanceof(t?Uint8Array:Array)?A:new(t?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&r(this)}function r(A){var I,g=A.buffer,i=g.length,e=new(t?Uint8Array:Array)(i<<1);if(t)e.set(g);else for(I=0;I<i;++I)e[I]=g[I];return A.buffer=e}e.prototype.b=function(A,I,g){var i,t=this.buffer,e=this.index,C=this.f,n=t[e];if(g&&1<I&&(A=8<I?(E[255&A]<<24|E[A>>>8&255]<<16|E[A>>>16&255]<<8|E[A>>>24&255])>>32-I:E[A]>>8-I),8>I+C)n=n<<I|A,C+=I;else for(i=0;i<I;++i)n=n<<1|A>>I-i-1&1,8==++C&&(C=0,t[e++]=E[n],n=0,e===t.length&&(t=r(this)));t[e]=n,this.buffer=t,this.f=C,this.index=e},e.prototype.finish=function(){var A,I=this.buffer,g=this.index;return 0<this.f&&(I[g]<<=8-this.f,I[g]=E[I[g]],g++),t?A=I.subarray(0,g):(I.length=g,A=I),A};var C,n=new(t?Uint8Array:Array)(256);for(C=0;256>C;++C){for(var o=a=C,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;n[C]=(o<<B&255)>>>0}var E=n;function Q(I){var g,i=A,t="number"==typeof i?i:i=0,e=I.length;for(g=-1,t=7&e;t--;++i)g=g>>>8^h[255&(g^I[i])];for(t=e>>3;t--;i+=8)g=(g=(g=(g=(g=(g=(g=(g=g>>>8^h[255&(g^I[i])])>>>8^h[255&(g^I[i+1])])>>>8^h[255&(g^I[i+2])])>>>8^h[255&(g^I[i+3])])>>>8^h[255&(g^I[i+4])])>>>8^h[255&(g^I[i+5])])>>>8^h[255&(g^I[i+6])])>>>8^h[255&(g^I[i+7])];return(4294967295^g)>>>0}var s=[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,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],h=t?new Uint32Array(s):s;function c(A){this.buffer=new(t?Uint16Array:Array)(2*A),this.length=0}function u(A,I){this.k=y,this.l=0,this.input=t&&A instanceof Array?new Uint8Array(A):A,this.e=0,I&&(I.lazy&&(this.l=I.lazy),"number"==typeof I.compressionType&&(this.k=I.compressionType),I.outputBuffer&&(this.c=t&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.e=I.outputIndex)),this.c||(this.c=new(t?Uint8Array:Array)(32768))}c.prototype.getParent=function(A){return 2*((A-2)/4|0)},c.prototype.push=function(A,I){var g,i,t,e=this.buffer;for(g=this.length,e[this.length++]=I,e[this.length++]=A;0<g&&(i=this.getParent(g),e[g]>e[i]);)t=e[g],e[g]=e[i],e[i]=t,t=e[g+1],e[g+1]=e[i+1],e[i+1]=t,g=i;return this.length},c.prototype.pop=function(){var A,I,g,i,t,e=this.buffer;for(I=e[0],A=e[1],this.length-=2,e[0]=e[this.length],e[1]=e[this.length+1],t=0;!((i=2*t+2)>=this.length)&&(i+2<this.length&&e[i+2]>e[i]&&(i+=2),e[i]>e[t]);)g=e[t],e[t]=e[i],e[i]=g,g=e[t+1],e[t+1]=e[i+1],e[i+1]=g,t=i;return{index:A,value:I,length:this.length}};var f,y=2,l=[];for(f=0;288>f;f++)switch(I){case 143>=f:l.push([f+48,8]);break;case 255>=f:l.push([f-144+400,9]);break;case 279>=f:l.push([f-256+0,7]);break;case 287>=f:l.push([f-280+192,8]);break;default:throw"invalid literal: "+f}function w(A,I){this.length=A,this.n=I}u.prototype.g=function(){var g,i,r,C,n=this.input;switch(this.k){case 0:for(r=0,C=n.length;r<C;){var o,B,a,E=i=t?n.subarray(r,r+65535):n.slice(r,r+65535),Q=(r+=i.length)===C,s=A,h=A,c=this.c,u=this.e;if(t){for(c=new Uint8Array(this.c.buffer);c.length<=u+E.length+5;)c=new Uint8Array(c.length<<1);c.set(this.c)}if(o=Q?1:0,c[u++]=0|o,a=65536+~(B=E.length)&65535,c[u++]=255&B,c[u++]=B>>>8&255,c[u++]=255&a,c[u++]=a>>>8&255,t)c.set(E,u),u+=E.length,c=c.subarray(0,u);else{for(s=0,h=E.length;s<h;++s)c[u++]=E[s];c.length=u}this.e=u,this.c=c}break;case 1:var f=new e(t?new Uint8Array(this.c.buffer):this.c,this.e);f.b(1,1,I),f.b(1,2,I);var w,F,D,S=p(this,n);for(w=0,F=S.length;w<F;w++)if(D=S[w],e.prototype.b.apply(f,l[D]),256<D)f.b(S[++w],S[++w],I),f.b(S[++w],5),f.b(S[++w],S[++w],I);else if(256===D)break;this.c=f.finish(),this.e=this.c.length;break;case y:var G,m,k,Y,M,N,R,b,v,H,L,J,K,q,T,x=new e(t?new Uint8Array(this.c.buffer):this.c,this.e),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=Array(19);for(G=y,x.b(1,1,I),x.b(G,2,I),m=p(this,n),R=U(N=d(this.p,15)),v=U(b=d(this.o,7)),k=286;257<k&&0===N[k-1];k--);for(Y=30;1<Y&&0===b[Y-1];Y--);var Z,O,j,X,P,z,_=k,$=Y,AA=new(t?Uint32Array:Array)(_+$),IA=new(t?Uint32Array:Array)(316),gA=new(t?Uint8Array:Array)(19);for(Z=O=0;Z<_;Z++)AA[O++]=N[Z];for(Z=0;Z<$;Z++)AA[O++]=b[Z];if(!t)for(Z=0,X=gA.length;Z<X;++Z)gA[Z]=0;for(Z=P=0,X=AA.length;Z<X;Z+=O){for(O=1;Z+O<X&&AA[Z+O]===AA[Z];++O);if(j=O,0===AA[Z])if(3>j)for(;0<j--;)IA[P++]=0,gA[0]++;else for(;0<j;)(z=138>j?j:138)>j-3&&z<j&&(z=j-3),10>=z?(IA[P++]=17,IA[P++]=z-3,gA[17]++):(IA[P++]=18,IA[P++]=z-11,gA[18]++),j-=z;else if(IA[P++]=AA[Z],gA[AA[Z]]++,3>--j)for(;0<j--;)IA[P++]=AA[Z],gA[AA[Z]]++;else for(;0<j;)(z=6>j?j:6)>j-3&&z<j&&(z=j-3),IA[P++]=16,IA[P++]=z-3,gA[16]++,j-=z}for(g=t?IA.subarray(0,P):IA.slice(0,P),H=d(gA,7),q=0;19>q;q++)W[q]=H[V[q]];for(M=19;4<M&&0===W[M-1];M--);for(L=U(H),x.b(k-257,5,I),x.b(Y-1,5,I),x.b(M-4,4,I),q=0;q<M;q++)x.b(W[q],3,I);for(q=0,T=g.length;q<T;q++)if(J=g[q],x.b(L[J],H[J],I),16<=J){switch(q++,J){case 16:K=2;break;case 17:K=3;break;case 18:K=7;break;default:throw"invalid code: "+J}x.b(g[q],K,I)}var iA,tA,eA,rA,CA,nA,oA,BA,aA=[R,N],EA=[v,b];for(CA=aA[0],nA=aA[1],oA=EA[0],BA=EA[1],iA=0,tA=m.length;iA<tA;++iA)if(eA=m[iA],x.b(CA[eA],nA[eA],I),256<eA)x.b(m[++iA],m[++iA],I),rA=m[++iA],x.b(oA[rA],BA[rA],I),x.b(m[++iA],m[++iA],I);else if(256===eA)break;this.c=x.finish(),this.e=this.c.length;break;default:throw"invalid compression type"}return this.c};var F=function(){function A(A){switch(I){case 3===A:return[257,A-3,0];case 4===A:return[258,A-4,0];case 5===A:return[259,A-5,0];case 6===A:return[260,A-6,0];case 7===A:return[261,A-7,0];case 8===A:return[262,A-8,0];case 9===A:return[263,A-9,0];case 10===A:return[264,A-10,0];case 12>=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var g,i,t=[];for(g=3;258>=g;g++)i=A(g),t[g]=i[2]<<24|i[1]<<16|i[0];return t}(),D=t?new Uint32Array(F):F;function p(g,i){function e(A,g){var i,t,e,r,C=A.n,n=[],o=0;switch(i=D[A.length],n[o++]=65535&i,n[o++]=i>>16&255,n[o++]=i>>24,I){case 1===C:t=[0,C-1,0];break;case 2===C:t=[1,C-2,0];break;case 3===C:t=[2,C-3,0];break;case 4===C:t=[3,C-4,0];break;case 6>=C:t=[4,C-5,1];break;case 8>=C:t=[5,C-7,1];break;case 12>=C:t=[6,C-9,2];break;case 16>=C:t=[7,C-13,2];break;case 24>=C:t=[8,C-17,3];break;case 32>=C:t=[9,C-25,3];break;case 48>=C:t=[10,C-33,4];break;case 64>=C:t=[11,C-49,4];break;case 96>=C:t=[12,C-65,5];break;case 128>=C:t=[13,C-97,5];break;case 192>=C:t=[14,C-129,6];break;case 256>=C:t=[15,C-193,6];break;case 384>=C:t=[16,C-257,7];break;case 512>=C:t=[17,C-385,7];break;case 768>=C:t=[18,C-513,8];break;case 1024>=C:t=[19,C-769,8];break;case 1536>=C:t=[20,C-1025,9];break;case 2048>=C:t=[21,C-1537,9];break;case 3072>=C:t=[22,C-2049,10];break;case 4096>=C:t=[23,C-3073,10];break;case 6144>=C:t=[24,C-4097,11];break;case 8192>=C:t=[25,C-6145,11];break;case 12288>=C:t=[26,C-8193,12];break;case 16384>=C:t=[27,C-12289,12];break;case 24576>=C:t=[28,C-16385,13];break;case 32768>=C:t=[29,C-24577,13];break;default:throw"invalid distance"}for(i=t,n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],e=0,r=n.length;e<r;++e)c[u++]=n[e];y[n[0]]++,l[n[3]]++,f=A.length+g-1,Q=null}var r,C,n,o,B,a,E,Q,s,h={},c=t?new Uint16Array(2*i.length):[],u=0,f=0,y=new(t?Uint32Array:Array)(286),l=new(t?Uint32Array:Array)(30),w=g.l;if(!t){for(n=0;285>=n;)y[n++]=0;for(n=0;29>=n;)l[n++]=0}for(y[256]=1,r=0,C=i.length;r<C;++r){for(n=B=0,o=3;n<o&&r+n!==C;++n)B=B<<8|i[r+n];if(h[B]===A&&(h[B]=[]),a=h[B],!(0<f--)){for(;0<a.length&&32768<r-a[0];)a.shift();if(r+3>=C){for(Q&&e(Q,-1),n=0,o=C-r;n<o;++n)s=i[r+n],c[u++]=s,++y[s];break}0<a.length?(E=S(i,r,a),Q?Q.length<E.length?(s=i[r-1],c[u++]=s,++y[s],e(E,0)):e(Q,-1):E.length<w?Q=E:e(E,0)):Q?e(Q,-1):(s=i[r],c[u++]=s,++y[s])}a.push(r)}return c[u++]=256,y[256]++,g.p=y,g.o=l,t?c.subarray(0,u):c}function S(A,I,g){var i,t,e,r,C,n,o=0,B=A.length;r=0,n=g.length;A:for(;r<n;r++){if(i=g[n-r-1],e=3,3<o){for(C=o;3<C;C--)if(A[i+C-1]!==A[I+C-1])continue A;e=o}for(;258>e&&I+e<B&&A[i+e]===A[I+e];)++e;if(e>o&&(t=i,o=e),258===e)break}return new w(o,I-t)}function d(A,I){var g,i,e,r,C,n=A.length,o=new c(572),B=new(t?Uint8Array:Array)(n);if(!t)for(r=0;r<n;r++)B[r]=0;for(r=0;r<n;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),i=new(t?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,C=o.length/2;r<C;++r)g[r]=o.pop(),i[r]=g[r].value;for(e=function(A,I,g){function i(A){var g=s[A][h[A]];g===I?(i(A+1),i(A+1)):--E[g],++h[A]}var e,r,C,n,o,B=new(t?Uint16Array:Array)(g),a=new(t?Uint8Array:Array)(g),E=new(t?Uint8Array:Array)(I),Q=Array(g),s=Array(g),h=Array(g),c=(1<<g)-I,u=1<<g-1;for(B[g-1]=I,r=0;r<g;++r)c<u?a[r]=0:(a[r]=1,c-=u),c<<=1,B[g-2-r]=(B[g-1-r]/2|0)+I;for(B[0]=a[0],Q[0]=Array(B[0]),s[0]=Array(B[0]),r=1;r<g;++r)B[r]>2*B[r-1]+a[r]&&(B[r]=2*B[r-1]+a[r]),Q[r]=Array(B[r]),s[r]=Array(B[r]);for(e=0;e<I;++e)E[e]=g;for(C=0;C<B[g-1];++C)Q[g-1][C]=A[C],s[g-1][C]=C;for(e=0;e<g;++e)h[e]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(n=e=0,o=h[r+1],C=0;C<B[r];C++)(n=Q[r+1][o]+Q[r+1][o+1])>A[e]?(Q[r][C]=n,s[r][C]=I,o+=2):(Q[r][C]=A[e],s[r][C]=e,++e);h[r]=0,1===a[r]&&i(r)}return E}(i,i.length,I),r=0,C=g.length;r<C;++r)B[g[r].index]=e[r];return B}function U(A){var I,g,i,e,r=new(t?Uint16Array:Array)(A.length),C=[],n=[],o=0;for(I=0,g=A.length;I<g;I++)C[A[I]]=1+(0|C[A[I]]);for(I=1,g=16;I<=g;I++)n[I]=o,o+=0|C[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=n[A[I]],n[A[I]]+=1,i=r[I]=0,e=A[I];i<e;i++)r[I]=r[I]<<1|1&o,o>>>=1;return r}function G(A){A=A||{},this.files=[],this.d=A.comment}var m=[80,75,1,2],k=[80,75,3,4],Y=[80,75,5,6];function M(A,I){var g,i=65535&A[2]|2;return g=i*(1^i)>>8&255,N(A,I),g^I}function N(A,I){A[0]=(h[255&(A[0]^I)]^A[0]>>>8)>>>0,A[1]=1+(6681*(20173*(A[1]+(255&A[0]))>>>0)>>>0)>>>0,A[2]=(h[255&(A[2]^A[1]>>>24)]^A[2]>>>8)>>>0}function R(A,I){var g,t,e,r;if(Object.keys)g=Object.keys(I);else for(t in g=[],e=0,I)g[e++]=t;for(e=0,r=g.length;e<r;++e)i(A+"."+(t=g[e]),I[t])}G.prototype.m=function(A,g){g=g||{};var i,e=A.length,r=0;if(t&&A instanceof Array&&(A=new Uint8Array(A)),"number"!=typeof g.compressionMethod&&(g.compressionMethod=8),g.compress)switch(g.compressionMethod){case 0:break;case 8:r=Q(A),A=new u(A,g.deflateOption).g(),i=I;break;default:throw Error("unknown compression method:"+g.compressionMethod)}this.files.push({buffer:A,a:g,j:i,r:!1,size:e,h:r})},G.prototype.q=function(A){this.i=A},G.prototype.g=function(){var g,i,e,r,C,n,o,B,a,E,s,h,c,f,y,l,w,F,D,p,S,d,U,G,R=this.files,b=0,v=0;for(S=0,d=R.length;S<d;++S){if(c=(g=R[S]).a.filename?g.a.filename.length:0,f=g.a.comment?g.a.comment.length:0,!g.j)switch(g.h=Q(g.buffer),g.a.compressionMethod){case 0:break;case 8:g.buffer=new u(g.buffer,g.a.deflateOption).g(),g.j=I;break;default:throw Error("unknown compression method:"+g.a.compressionMethod)}if(g.a.password!==A||this.i!==A){var H,L=g.a.password||this.i,J=[305419896,591751049,878082192],K=A;for(t&&(J=new Uint32Array(J)),K=0,H=L.length;K<H;++K)N(J,255&L[K]);for(p=J,F=g.buffer,t?((D=new Uint8Array(F.length+12)).set(F,12),F=D):F.unshift(0,0,0,0,0,0,0,0,0,0,0,0),U=0;12>U;++U)F[U]=M(p,11===S?255&g.h:256*Math.random()|0);for(G=F.length;U<G;++U)F[U]=M(p,F[U]);g.buffer=F}b+=30+c+g.buffer.length,v+=46+c+f}for(i=new(t?Uint8Array:Array)(b+v+(22+(this.d?this.d.length:0))),e=0,C=(r=b)+v,S=0,d=R.length;S<d;++S){if(c=(g=R[S]).a.filename?g.a.filename.length:0,f=g.a.comment?g.a.comment.length:0,n=e,i[e++]=k[0],i[e++]=k[1],i[e++]=k[2],i[e++]=k[3],i[r++]=m[0],i[r++]=m[1],i[r++]=m[2],i[r++]=m[3],i[r++]=20,i[r++]=g.a.os||0,i[e++]=i[r++]=20,o=i[e++]=i[r++]=0,(g.a.password||this.i)&&(o|=1),i[e++]=i[r++]=255&o,i[e++]=i[r++]=o>>8&255,B=g.a.compressionMethod,i[e++]=i[r++]=255&B,i[e++]=i[r++]=B>>8&255,a=g.a.date||new Date,i[e++]=i[r++]=(7&a.getMinutes())<<5|a.getSeconds()/2|0,i[e++]=i[r++]=a.getHours()<<3|a.getMinutes()>>3,i[e++]=i[r++]=(a.getMonth()+1&7)<<5|a.getDate(),i[e++]=i[r++]=(a.getFullYear()-1980&127)<<1|a.getMonth()+1>>3,E=g.h,i[e++]=i[r++]=255&E,i[e++]=i[r++]=E>>8&255,i[e++]=i[r++]=E>>16&255,i[e++]=i[r++]=E>>24&255,s=g.buffer.length,i[e++]=i[r++]=255&s,i[e++]=i[r++]=s>>8&255,i[e++]=i[r++]=s>>16&255,i[e++]=i[r++]=s>>24&255,h=g.size,i[e++]=i[r++]=255&h,i[e++]=i[r++]=h>>8&255,i[e++]=i[r++]=h>>16&255,i[e++]=i[r++]=h>>24&255,i[e++]=i[r++]=255&c,i[e++]=i[r++]=c>>8&255,i[e++]=i[r++]=0,i[e++]=i[r++]=0,i[r++]=255&f,i[r++]=f>>8&255,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=255&n,i[r++]=n>>8&255,i[r++]=n>>16&255,i[r++]=n>>24&255,y=g.a.filename)if(t)i.set(y,e),i.set(y,r),e+=c,r+=c;else for(U=0;U<c;++U)i[e++]=i[r++]=y[U];if(l=g.a.extraField)if(t)i.set(l,e),i.set(l,r),e+=0,r+=0;else for(U=0;U<f;++U)i[e++]=i[r++]=l[U];if(w=g.a.comment)if(t)i.set(w,r),r+=f;else for(U=0;U<f;++U)i[r++]=w[U];if(t)i.set(g.buffer,e),e+=g.buffer.length;else for(U=0,G=g.buffer.length;U<G;++U)i[e++]=g.buffer[U]}if(i[C++]=Y[0],i[C++]=Y[1],i[C++]=Y[2],i[C++]=Y[3],i[C++]=0,i[C++]=0,i[C++]=0,i[C++]=0,i[C++]=255&d,i[C++]=d>>8&255,i[C++]=255&d,i[C++]=d>>8&255,i[C++]=255&v,i[C++]=v>>8&255,i[C++]=v>>16&255,i[C++]=v>>24&255,i[C++]=255&b,i[C++]=b>>8&255,i[C++]=b>>16&255,i[C++]=b>>24&255,f=this.d?this.d.length:0,i[C++]=255&f,i[C++]=f>>8&255,this.d)if(t)i.set(this.d,C);else for(U=0,G=f;U<G;++U)i[C++]=this.d[U];return i},i("Zlib.Zip",G),i("Zlib.Zip.prototype.addFile",G.prototype.m),i("Zlib.Zip.prototype.compress",G.prototype.g),i("Zlib.Zip.prototype.setPassword",G.prototype.q),R("Zlib.Zip.CompressionMethod",{STORE:0,DEFLATE:8}),R("Zlib.Zip.OperatingSystem",{MSDOS:0,UNIX:3,MACINTOSH:7})}).call(this)},8:function(A,I,g){"use strict";var i=g(1),t=g.n(i),e=g(4),r=g.n(e),C=g(3),n=g.n(C),o=g(22),B=g.n(o),a=g(5),E=g.n(a);
/**
 * Custom error type for handling operation input errors.
 * i.e. where the operation can handle the error and print a message to the screen.
 *
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */
var Q=function(A){function I(){var A;t()(this,I);for(var g=arguments.length,i=new Array(g),e=0;e<g;e++)i[e]=arguments[e];return(A=r()(this,n()(I).call(this,...i))).type="OperationError",Error.captureStackTrace&&Error.captureStackTrace(B()(A),I),A}return E()(I,A),I}(function(A){function I(){var I=Reflect.construct(A,Array.from(arguments));return Object.setPrototypeOf(I,Object.getPrototypeOf(this)),I}return I.prototype=Object.create(A.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(I,A):I.__proto__=A,I}(Error));I.a=Q},9:function(A,I,g){"use strict";var i=g(1),t=g.n(i),e=g(2),r=g.n(e),C=g(13),n=g(0),o=g(16),B=function(){function A(I){t()(this,A),this.name="",this.type="",this._value=null,this.disabled=!1,this.hint="",this.rows=0,this.toggleValues=[],this.target=null,this.defaultIndex=0,this.min=null,this.max=null,this.step=1,I&&this._parseConfig(I)}return r()(A,[{key:"_parseConfig",value:function(A){this.name=A.name,this.type=A.type,this.defaultValue=A.value,this.disabled=!!A.disabled,this.hint=A.hint||!1,this.rows=A.rows||!1,this.toggleValues=A.toggleValues,this.target=void 0!==A.target?A.target:null,this.defaultIndex=void 0!==A.defaultIndex?A.defaultIndex:0,this.min=A.min,this.max=A.max,this.step=A.step}},{key:"config",get:function(){return this._value}},{key:"value",set:function(I){this._value=A.prepare(I,this.type)},get:function(){return this._value}}],[{key:"prepare",value:function(A,I){var g;switch(I){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return n.b.parseEscapedChars(A);case"byteArray":return"string"==typeof A?(A=A.replace(/\s+/g,""),Object(o.a)(A)):A;case"number":if(null===A)return A;if(g=parseFloat(A),isNaN(g))throw"Invalid ingredient value. Not a number: "+n.b.truncate(A.toString(),10);return g;default:return A}}}]),A}(),a=function(){function A(){t()(this,A),this._inputType=-1,this._outputType=-1,this._presentType=-1,this._breakpoint=!1,this._disabled=!1,this._flowControl=!1,this._manualBake=!1,this._ingList=[],this.name="",this.module="",this.description="",this.infoURL=null}return r()(A,[{key:"run",value:function(A,I){return A}},{key:"highlight",value:function(A,I){return!1}},{key:"highlightReverse",value:function(A,I){return!1}},{key:"present",value:function(A,I){return A}},{key:"addIngredient",value:function(A){this._ingList.push(A)}},{key:"inputType",set:function(A){this._inputType=C.a.typeEnum(A)},get:function(){return C.a.enumLookup(this._inputType)}},{key:"outputType",set:function(A){this._outputType=C.a.typeEnum(A),this._presentType<0&&(this._presentType=this._outputType)},get:function(){return C.a.enumLookup(this._outputType)}},{key:"presentType",set:function(A){this._presentType=C.a.typeEnum(A)},get:function(){return C.a.enumLookup(this._presentType)}},{key:"args",set:function(A){var I=this;A.forEach((function(A){var g=new B(A);I.addIngredient(g)}))},get:function(){return this._ingList.map((function(A){var I={name:A.name,type:A.type,value:A.defaultValue};return A.toggleValues&&(I.toggleValues=A.toggleValues),A.hint&&(I.hint=A.hint),A.rows&&(I.rows=A.rows),A.disabled&&(I.disabled=A.disabled),A.target&&(I.target=A.target),A.defaultIndex&&(I.defaultIndex=A.defaultIndex),"number"==typeof A.min&&(I.min=A.min),"number"==typeof A.max&&(I.max=A.max),A.step&&(I.step=A.step),I}))}},{key:"config",get:function(){return{op:this.name,args:this._ingList.map((function(A){return A.config}))}}},{key:"ingValues",set:function(A){var I=this;A.forEach((function(A,g){I._ingList[g].value=A}))},get:function(){return this._ingList.map((function(A){return A.value}))}},{key:"breakpoint",set:function(A){this._breakpoint=!!A},get:function(){return this._breakpoint}},{key:"disabled",set:function(A){this._disabled=!!A},get:function(){return this._disabled}},{key:"flowControl",get:function(){return this._flowControl},set:function(A){this._flowControl=!!A}},{key:"manualBake",get:function(){return this._manualBake},set:function(A){this._manualBake=!!A}}]),A}();I.a=a}});