/**
 * 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(t){if(I[t])return I[t].exports;var e=I[t]={i:t,l:!1,exports:{}};return A[t].call(e.exports,e,e.exports,g),e.l=!0,e.exports}g.m=A,g.c=I,g.d=function(A,I,t){g.o(A,I)||Object.defineProperty(A,I,{enumerable:!0,get:t})},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 t=Object.create(null);if(g.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:A}),2&I&&"string"!=typeof A)for(var e in A)g.d(t,e,function(I){return A[I]}.bind(null,e));return t},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=1522)}({0: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},1:function(A,I,g){"use strict";(function(A,t,e){g.d(I,"c",(function(){return l})),g.d(I,"d",(function(){return F})),g.d(I,"e",(function(){return p})),g.d(I,"a",(function(){return d}));var i=g(8),r=g.n(i),n=g(11),C=g.n(n),o=g(2),B=g.n(o),a=g(3),E=g.n(a),Q=g(26),s=g.n(Q),h=g(16),c=g(21),u=g(29),f=g(28),y=function(){function I(){B()(this,I)}var g;return E()(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,t=new Array(I);return t.fill(g),[...A].forEach((function(A,I){t[I]=A})),t}},{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];w()&&window.app&&!window.app.options.treatAsUtf8&&(A=I.byteArrayToChars(I.strToByteArray(A)));var t=/[\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,e=/[\x09-\x10\x0D\u2028\u2029]/g;return A=A.replace(t,"."),g||(A=A.replace(e,".")),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=[],t=0;t<A.length;t++)if(t<A.length-2&&"-"===A[t+1]&&"\\"!==A[t]){for(var e=I.ord(A[t]),i=I.ord(A[t+2]),r=e;r<=i;r++)g.push(I.chr(r));t+=2}else t<A.length-2&&"\\"===A[t]&&"-"===A[t+1]?(g.push("-"),t++):g.push(A[t]);return g}},{key:"convertToByteArray",value:function(A,g){switch(g.toLowerCase()){case"binary":return Object(f.a)(A);case"hex":return Object(c.a)(A);case"decimal":return Object(u.a)(A);case"base64":return Object(h.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(f.a)(A));case"hex":return I.byteArrayToChars(Object(c.a)(A));case"decimal":return I.byteArrayToChars(Object(u.a)(A));case"base64":return I.byteArrayToChars(Object(h.a)(A,null,"byteArray"));case"utf8":return s.a.encode(A);case"latin1":default:return A}}},{key:"strToArrayBuffer",value:function(A){for(var g,t=new Uint8Array(A.length),e=A.length;e--;)if(g=A.charCodeAt(e),t[e]=g,g>255)return I.strToUtf8ArrayBuffer(A);return t.buffer}},{key:"strToUtf8ArrayBuffer",value:function(A){var g=s.a.encode(A);return A.length!==g.length&&(F()?self.setOption("attemptHighlight",!1):w()&&(window.app.options.attemptHighlight=!1)),I.strToArrayBuffer(g)}},{key:"strToByteArray",value:function(A){for(var g,t=new Array(A.length),e=A.length;e--;)if(g=A.charCodeAt(e),t[e]=g,g>255)return I.strToUtf8ByteArray(A);return t}},{key:"strToUtf8ByteArray",value:function(A){var g=s.a.encode(A);return A.length!==g.length&&(F()?self.setOption("attemptHighlight",!1):w()&&(window.app.options.attemptHighlight=!1)),I.strToByteArray(g)}},{key:"strToCharcode",value:function(A){for(var g=[],t=0;t<A.length;t++){var e=A.charCodeAt(t);if(t<A.length-1&&e>=55296&&e<56320){var i=A[t+1].charCodeAt(0);i>=56320&&i<57344&&(e=I.ord(A[t]+A[++t]))}g.push(e)}return g}},{key:"byteArrayToUtf8",value:function(A){var g=I.byteArrayToChars(A);try{var t=s.a.decode(g);return g.length!==t.length&&(F()?self.setOption("attemptHighlight",!1):w()&&(window.app.options.attemptHighlight=!1)),t}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],t=new Uint8Array(A);return g?I.byteArrayToUtf8(t):I.byteArrayToChars(t)}},{key:"calculateShannonEntropy",value:function(A){A instanceof ArrayBuffer&&(A=new Uint8Array(A));var I,g=[],t=new Array(256).fill(0);for(I=0;I<A.length;I++)t[A[I]]++;for(I=0;I<t.length;I++)t[I]>0&&g.push(t[I]/A.length);var e,i=0;for(I=0;I<g.length;I++)i+=(e=g[I])*Math.log(e)/Math.log(2);return-i}},{key:"parseCSV",value:function(A){var I,g,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[","],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],i=!1,r=!1,n="",C=[],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]||"",i?(n+=I,i=!1):'"'!==I||r?'"'===I&&r?'"'===g?i=!0:r=!1:!r&&t.indexOf(I)>=0?(C.push(n),n=""):!r&&e.indexOf(I)>=0?(C.push(n),n="",o.push(C),C=[],e.indexOf(g)>=0&&g!==I&&B++):n+=I:r=!0;return C.length&&(C.push(n),o.push(C)),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="",t="",e="",i="",r="";return A.forEach((function(A){t=A.op.replace(/ /g,"_"),e=JSON.stringify(A.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),i=A.disabled?"/disabled":"",r=A.breakpoint?"/breakpoint":"",g+=`${t}(${e}${i}${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 t=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,e=[];I=t.exec(A);){g="["+(g=I[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var i={op:I[1].replace(/_/g," "),args:JSON.parse(g)};I[3]&&I[3].indexOf("disabled")>0&&(i.disabled=!0),I[3]&&I[3].indexOf("breakpoint")>0&&(i.breakpoint=!0),e.push(i)}return e}},{key:"displayFilesAsHTML",value:(g=C()(r.a.mark((function A(g){var t,e,i,n,o;return r.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:t=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>`},e=function(A,g){if(g.startsWith("image")){var t="data:";return t+=g+";","<img style='max-width: 100%;' src='"+(t+="base64,"+Object(h.b)(A))+"'>"}return`<pre>${I.escapeHtml(I.arrayBufferToStr(A.buffer))}</pre>`},i=function(){var A=C()(r.a.mark((function A(g,t){var i,n,C,o;return r.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,I.readFile(g);case 2:return i=A.sent,n=new Blob([i],{type:g.type||"octet/stream"}),C=URL.createObjectURL(n),o=`<div class='card' style='white-space: normal;'>\n                    <div class='card-header' id='heading${t}'>\n                        <h6 class='mb-0'>\n                            <a class='collapsed'\n                                data-toggle='collapse'\n                                href='#collapse${t}'\n                                aria-expanded='false'\n                                aria-controls='collapse${t}'\n                                title="Show/hide contents of '${I.escapeHtml(g.name)}'">\n                                ${I.escapeHtml(g.name)}</a>\n                            <span class='float-right' style="margin-top: -3px">\n                                ${g.size.toLocaleString()} bytes\n                                <a title="Download ${I.escapeHtml(g.name)}"\n                                    href="${C}"\n                                    download="${I.escapeHtml(g.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(g.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${t}' class='collapse' aria-labelledby='heading${t}' data-parent="#files">\n                        <div class='card-body'>\n                            ${e(i,g.type)}\n                        </div>\n                    </div>\n                </div>`,A.abrupt("return",o);case 7:case"end":return A.stop()}}),A)})));return function(I,g){return A.apply(this,arguments)}}(),n=`<div style='padding: 5px; white-space: normal;'>\n                ${g.length} file(s) found\n            </div><div id="files" style="padding: 20px">`,o=0;case 5:if(!(o<g.length)){A.next=17;break}if(!g[o].name.endsWith("/")){A.next=10;break}n+=t(g[o]),A.next=14;break;case 10:return A.t0=n,A.next=13,i(g[o],o);case 13:n=A.t0+=A.sent;case 14:o++,A.next=5;break;case 17:return A.abrupt("return",n+="</div>");case 18:case"end":return A.stop()}}),A)}))),function(A){return g.apply(this,arguments)})},{key:"parseURIParams",value:function(A){if(""===A)return{};"?"!==A[0]&&"#"!==A[0]||(A=A.substr(1));for(var I=A.split("&"),g={},t=0;t<I.length;t++){var e=I[t].split("=");2!==e.length?g[I[t]]=!0:g[e[0]]=decodeURIComponent(e[1].replace(/\+/g," "))}return g}},{key:"readFile",value:function(I){return l()?A.from(I).buffer:new Promise((function(A,g){var t=new FileReader,e=new Uint8Array(I.size),i=0,r=function(){if(i>=I.size)A(e);else{var g=I.slice(i,i+10485760);t.readAsArrayBuffer(g)}};t.onload=function(A){e.set(new Uint8Array(t.result),i),i+=10485760,r()},t.onerror=function(A){g(t.error.message)},r()}))}},{key:"readFileSync",value:function(A){if(!l())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 with comma":/,?0x/g,"0x":/0x/g,"\\x":/\\x/g,None:/\s+/g}[A]}}]),I}();function l(){return void 0!==t&&null!=t.versions&&null!=t.versions.node}function w(){return"object"==typeof window}function F(){return"function"==typeof importScripts}function p(A){F()?self.sendStatusMessage(A):w()?app.alert(A,1e4):l()&&!e.TESTING&&console.debug(A)}I.b=y,Array.prototype.unique=function(){for(var A={},I=[],g=0,t=this.length;g<t;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 D={};function d(A,I,g,t,e){return function(){clearTimeout(D[g]),D[g]=setTimeout((function(){A.apply(t,e)}),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(12).Buffer,g(19),g(24))},11:function(A,I){function g(A,I,g,t,e,i,r){try{var n=A[i](r),C=n.value}catch(A){return void g(A)}n.done?I(C):Promise.resolve(C).then(t,e)}A.exports=function(A){return function(){var I=this,t=arguments;return new Promise((function(e,i){var r=A.apply(I,t);function n(A){g(r,e,i,n,C,"next",A)}function C(A){g(r,e,i,n,C,"throw",A)}n(void 0)}))}}},12: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 t=g(48),e=g(49),i=g(39);function r(){return C.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function n(A,I){if(r()<I)throw new RangeError("Invalid typed array length");return C.TYPED_ARRAY_SUPPORT?(A=new Uint8Array(I)).__proto__=C.prototype:(null===A&&(A=new C(I)),A.length=I),A}function C(A,I,g){if(!(C.TYPED_ARRAY_SUPPORT||this instanceof C))return new C(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,t){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,t){if(I.byteLength,g<0||I.byteLength<g)throw new RangeError("'offset' is out of bounds");if(I.byteLength<g+(t||0))throw new RangeError("'length' is out of bounds");I=void 0===g&&void 0===t?new Uint8Array(I):void 0===t?new Uint8Array(I,g):new Uint8Array(I,g,t);C.TYPED_ARRAY_SUPPORT?(A=I).__proto__=C.prototype:A=E(A,I);return A}(A,I,g,t):"string"==typeof I?function(A,I,g){"string"==typeof g&&""!==g||(g="utf8");if(!C.isEncoding(g))throw new TypeError('"encoding" must be a valid string encoding');var t=0|s(I,g),e=(A=n(A,t)).write(I,g);e!==t&&(A=A.slice(0,e));return A}(A,I,g):function(A,I){if(C.isBuffer(I)){var g=0|Q(I.length);return 0===(A=n(A,g)).length||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||(t=I.length)!=t?n(A,0):E(A,I);if("Buffer"===I.type&&i(I.data))return E(A,I.data)}var t;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=n(A,I<0?0:0|Q(I)),!C.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=n(A,g);for(var t=0;t<g;t+=1)A[t]=255&I[t];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(C.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 t=!1;;)switch(I){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":case void 0:return K(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*g;case"hex":return g>>>1;case"base64":return q(A).length;default:if(t)return K(A).length;I=(""+I).toLowerCase(),t=!0}}function h(A,I,g){var t=!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 m(this,I,g);case"utf8":case"utf-8":return S(this,I,g);case"ascii":return U(this,I,g);case"latin1":case"binary":return G(this,I,g);case"base64":return d(this,I,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,I,g);default:if(t)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),t=!0}}function c(A,I,g){var t=A[I];A[I]=A[g],A[g]=t}function u(A,I,g,t,e){if(0===A.length)return-1;if("string"==typeof g?(t=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,isNaN(g)&&(g=e?0:A.length-1),g<0&&(g=A.length+g),g>=A.length){if(e)return-1;g=A.length-1}else if(g<0){if(!e)return-1;g=0}if("string"==typeof I&&(I=C.from(I,t)),C.isBuffer(I))return 0===I.length?-1:f(A,I,g,t,e);if("number"==typeof I)return I&=255,C.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(A,I,g):Uint8Array.prototype.lastIndexOf.call(A,I,g):f(A,[I],g,t,e);throw new TypeError("val must be string, number or Buffer")}function f(A,I,g,t,e){var i,r=1,n=A.length,C=I.length;if(void 0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(A.length<2||I.length<2)return-1;r=2,n/=2,C/=2,g/=2}function o(A,I){return 1===r?A[I]:A.readUInt16BE(I*r)}if(e){var B=-1;for(i=g;i<n;i++)if(o(A,i)===o(I,-1===B?0:i-B)){if(-1===B&&(B=i),i-B+1===C)return B*r}else-1!==B&&(i-=i-B),B=-1}else for(g+C>n&&(g=n-C),i=g;i>=0;i--){for(var a=!0,E=0;E<C;E++)if(o(A,i+E)!==o(I,E)){a=!1;break}if(a)return i}return-1}function y(A,I,g,t){g=Number(g)||0;var e=A.length-g;t?(t=Number(t))>e&&(t=e):t=e;var i=I.length;if(i%2!=0)throw new TypeError("Invalid hex string");t>i/2&&(t=i/2);for(var r=0;r<t;++r){var n=parseInt(I.substr(2*r,2),16);if(isNaN(n))return r;A[g+r]=n}return r}function l(A,I,g,t){return T(K(I,A.length-g),A,g,t)}function w(A,I,g,t){return T(function(A){for(var I=[],g=0;g<A.length;++g)I.push(255&A.charCodeAt(g));return I}(I),A,g,t)}function F(A,I,g,t){return w(A,I,g,t)}function p(A,I,g,t){return T(q(I),A,g,t)}function D(A,I,g,t){return T(function(A,I){for(var g,t,e,i=[],r=0;r<A.length&&!((I-=2)<0);++r)g=A.charCodeAt(r),t=g>>8,e=g%256,i.push(e),i.push(t);return i}(I,A.length-g),A,g,t)}function d(A,I,g){return 0===I&&g===A.length?t.fromByteArray(A):t.fromByteArray(A.slice(I,g))}function S(A,I,g){g=Math.min(A.length,g);for(var t=[],e=I;e<g;){var i,r,n,C,o=A[e],B=null,a=o>239?4:o>223?3:o>191?2:1;if(e+a<=g)switch(a){case 1:o<128&&(B=o);break;case 2:128==(192&(i=A[e+1]))&&(C=(31&o)<<6|63&i)>127&&(B=C);break;case 3:i=A[e+1],r=A[e+2],128==(192&i)&&128==(192&r)&&(C=(15&o)<<12|(63&i)<<6|63&r)>2047&&(C<55296||C>57343)&&(B=C);break;case 4:i=A[e+1],r=A[e+2],n=A[e+3],128==(192&i)&&128==(192&r)&&128==(192&n)&&(C=(15&o)<<18|(63&i)<<12|(63&r)<<6|63&n)>65535&&C<1114112&&(B=C)}null===B?(B=65533,a=1):B>65535&&(B-=65536,t.push(B>>>10&1023|55296),B=56320|1023&B),t.push(B),e+=a}return function(A){var I=A.length;if(I<=4096)return String.fromCharCode.apply(String,A);var g="",t=0;for(;t<I;)g+=String.fromCharCode.apply(String,A.slice(t,t+=4096));return g}(t)}I.Buffer=C,I.SlowBuffer=function(A){+A!=A&&(A=0);return C.alloc(+A)},I.INSPECT_MAX_BYTES=50,C.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(),C.poolSize=8192,C._augment=function(A){return A.__proto__=C.prototype,A},C.from=function(A,I,g){return o(null,A,I,g)},C.TYPED_ARRAY_SUPPORT&&(C.prototype.__proto__=Uint8Array.prototype,C.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&C[Symbol.species]===C&&Object.defineProperty(C,Symbol.species,{value:null,configurable:!0})),C.alloc=function(A,I,g){return function(A,I,g,t){return B(I),I<=0?n(A,I):void 0!==g?"string"==typeof t?n(A,I).fill(g,t):n(A,I).fill(g):n(A,I)}(null,A,I,g)},C.allocUnsafe=function(A){return a(null,A)},C.allocUnsafeSlow=function(A){return a(null,A)},C.isBuffer=function(A){return!(null==A||!A._isBuffer)},C.compare=function(A,I){if(!C.isBuffer(A)||!C.isBuffer(I))throw new TypeError("Arguments must be Buffers");if(A===I)return 0;for(var g=A.length,t=I.length,e=0,i=Math.min(g,t);e<i;++e)if(A[e]!==I[e]){g=A[e],t=I[e];break}return g<t?-1:t<g?1:0},C.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}},C.concat=function(A,I){if(!i(A))throw new TypeError('"list" argument must be an Array of Buffers');if(0===A.length)return C.alloc(0);var g;if(void 0===I)for(I=0,g=0;g<A.length;++g)I+=A[g].length;var t=C.allocUnsafe(I),e=0;for(g=0;g<A.length;++g){var r=A[g];if(!C.isBuffer(r))throw new TypeError('"list" argument must be an Array of Buffers');r.copy(t,e),e+=r.length}return t},C.byteLength=s,C.prototype._isBuffer=!0,C.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},C.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},C.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},C.prototype.toString=function(){var A=0|this.length;return 0===A?"":0===arguments.length?S(this,0,A):h.apply(this,arguments)},C.prototype.equals=function(A){if(!C.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A||0===C.compare(this,A)},C.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+">"},C.prototype.compare=function(A,I,g,t,e){if(!C.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===t&&(t=0),void 0===e&&(e=this.length),I<0||g>A.length||t<0||e>this.length)throw new RangeError("out of range index");if(t>=e&&I>=g)return 0;if(t>=e)return-1;if(I>=g)return 1;if(this===A)return 0;for(var i=(e>>>=0)-(t>>>=0),r=(g>>>=0)-(I>>>=0),n=Math.min(i,r),o=this.slice(t,e),B=A.slice(I,g),a=0;a<n;++a)if(o[a]!==B[a]){i=o[a],r=B[a];break}return i<r?-1:r<i?1:0},C.prototype.includes=function(A,I,g){return-1!==this.indexOf(A,I,g)},C.prototype.indexOf=function(A,I,g){return u(this,A,I,g,!0)},C.prototype.lastIndexOf=function(A,I,g){return u(this,A,I,g,!1)},C.prototype.write=function(A,I,g,t){if(void 0===I)t="utf8",g=this.length,I=0;else if(void 0===g&&"string"==typeof I)t=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===t&&(t="utf8")):(t=g,g=void 0)}var e=this.length-I;if((void 0===g||g>e)&&(g=e),A.length>0&&(g<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var i=!1;;)switch(t){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 p(this,A,I,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,A,I,g);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),i=!0}},C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(A,I,g){var t="";g=Math.min(A.length,g);for(var e=I;e<g;++e)t+=String.fromCharCode(127&A[e]);return t}function G(A,I,g){var t="";g=Math.min(A.length,g);for(var e=I;e<g;++e)t+=String.fromCharCode(A[e]);return t}function m(A,I,g){var t=A.length;(!I||I<0)&&(I=0),(!g||g<0||g>t)&&(g=t);for(var e="",i=I;i<g;++i)e+=J(A[i]);return e}function k(A,I,g){for(var t=A.slice(I,g),e="",i=0;i<t.length;i+=2)e+=String.fromCharCode(t[i]+256*t[i+1]);return e}function Y(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 R(A,I,g,t,e,i){if(!C.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>e||I<i)throw new RangeError('"value" argument is out of bounds');if(g+t>A.length)throw new RangeError("Index out of range")}function M(A,I,g,t){I<0&&(I=65535+I+1);for(var e=0,i=Math.min(A.length-g,2);e<i;++e)A[g+e]=(I&255<<8*(t?e:1-e))>>>8*(t?e:1-e)}function N(A,I,g,t){I<0&&(I=4294967295+I+1);for(var e=0,i=Math.min(A.length-g,4);e<i;++e)A[g+e]=I>>>8*(t?e:3-e)&255}function b(A,I,g,t,e,i){if(g+t>A.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function v(A,I,g,t,i){return i||b(A,0,g,4),e.write(A,I,g,t,23,4),g+4}function H(A,I,g,t,i){return i||b(A,0,g,8),e.write(A,I,g,t,52,8),g+8}C.prototype.slice=function(A,I){var g,t=this.length;if((A=~~A)<0?(A+=t)<0&&(A=0):A>t&&(A=t),(I=void 0===I?t:~~I)<0?(I+=t)<0&&(I=0):I>t&&(I=t),I<A&&(I=A),C.TYPED_ARRAY_SUPPORT)(g=this.subarray(A,I)).__proto__=C.prototype;else{var e=I-A;g=new C(e,void 0);for(var i=0;i<e;++i)g[i]=this[i+A]}return g},C.prototype.readUIntLE=function(A,I,g){A|=0,I|=0,g||Y(A,I,this.length);for(var t=this[A],e=1,i=0;++i<I&&(e*=256);)t+=this[A+i]*e;return t},C.prototype.readUIntBE=function(A,I,g){A|=0,I|=0,g||Y(A,I,this.length);for(var t=this[A+--I],e=1;I>0&&(e*=256);)t+=this[A+--I]*e;return t},C.prototype.readUInt8=function(A,I){return I||Y(A,1,this.length),this[A]},C.prototype.readUInt16LE=function(A,I){return I||Y(A,2,this.length),this[A]|this[A+1]<<8},C.prototype.readUInt16BE=function(A,I){return I||Y(A,2,this.length),this[A]<<8|this[A+1]},C.prototype.readUInt32LE=function(A,I){return I||Y(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},C.prototype.readUInt32BE=function(A,I){return I||Y(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},C.prototype.readIntLE=function(A,I,g){A|=0,I|=0,g||Y(A,I,this.length);for(var t=this[A],e=1,i=0;++i<I&&(e*=256);)t+=this[A+i]*e;return t>=(e*=128)&&(t-=Math.pow(2,8*I)),t},C.prototype.readIntBE=function(A,I,g){A|=0,I|=0,g||Y(A,I,this.length);for(var t=I,e=1,i=this[A+--t];t>0&&(e*=256);)i+=this[A+--t]*e;return i>=(e*=128)&&(i-=Math.pow(2,8*I)),i},C.prototype.readInt8=function(A,I){return I||Y(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},C.prototype.readInt16LE=function(A,I){I||Y(A,2,this.length);var g=this[A]|this[A+1]<<8;return 32768&g?4294901760|g:g},C.prototype.readInt16BE=function(A,I){I||Y(A,2,this.length);var g=this[A+1]|this[A]<<8;return 32768&g?4294901760|g:g},C.prototype.readInt32LE=function(A,I){return I||Y(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},C.prototype.readInt32BE=function(A,I){return I||Y(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},C.prototype.readFloatLE=function(A,I){return I||Y(A,4,this.length),e.read(this,A,!0,23,4)},C.prototype.readFloatBE=function(A,I){return I||Y(A,4,this.length),e.read(this,A,!1,23,4)},C.prototype.readDoubleLE=function(A,I){return I||Y(A,8,this.length),e.read(this,A,!0,52,8)},C.prototype.readDoubleBE=function(A,I){return I||Y(A,8,this.length),e.read(this,A,!1,52,8)},C.prototype.writeUIntLE=function(A,I,g,t){(A=+A,I|=0,g|=0,t)||R(this,A,I,g,Math.pow(2,8*g)-1,0);var e=1,i=0;for(this[I]=255&A;++i<g&&(e*=256);)this[I+i]=A/e&255;return I+g},C.prototype.writeUIntBE=function(A,I,g,t){(A=+A,I|=0,g|=0,t)||R(this,A,I,g,Math.pow(2,8*g)-1,0);var e=g-1,i=1;for(this[I+e]=255&A;--e>=0&&(i*=256);)this[I+e]=A/i&255;return I+g},C.prototype.writeUInt8=function(A,I,g){return A=+A,I|=0,g||R(this,A,I,1,255,0),C.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[I]=255&A,I+1},C.prototype.writeUInt16LE=function(A,I,g){return A=+A,I|=0,g||R(this,A,I,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8):M(this,A,I,!0),I+2},C.prototype.writeUInt16BE=function(A,I,g){return A=+A,I|=0,g||R(this,A,I,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[I]=A>>>8,this[I+1]=255&A):M(this,A,I,!1),I+2},C.prototype.writeUInt32LE=function(A,I,g){return A=+A,I|=0,g||R(this,A,I,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[I+3]=A>>>24,this[I+2]=A>>>16,this[I+1]=A>>>8,this[I]=255&A):N(this,A,I,!0),I+4},C.prototype.writeUInt32BE=function(A,I,g){return A=+A,I|=0,g||R(this,A,I,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[I]=A>>>24,this[I+1]=A>>>16,this[I+2]=A>>>8,this[I+3]=255&A):N(this,A,I,!1),I+4},C.prototype.writeIntLE=function(A,I,g,t){if(A=+A,I|=0,!t){var e=Math.pow(2,8*g-1);R(this,A,I,g,e-1,-e)}var i=0,r=1,n=0;for(this[I]=255&A;++i<g&&(r*=256);)A<0&&0===n&&0!==this[I+i-1]&&(n=1),this[I+i]=(A/r>>0)-n&255;return I+g},C.prototype.writeIntBE=function(A,I,g,t){if(A=+A,I|=0,!t){var e=Math.pow(2,8*g-1);R(this,A,I,g,e-1,-e)}var i=g-1,r=1,n=0;for(this[I+i]=255&A;--i>=0&&(r*=256);)A<0&&0===n&&0!==this[I+i+1]&&(n=1),this[I+i]=(A/r>>0)-n&255;return I+g},C.prototype.writeInt8=function(A,I,g){return A=+A,I|=0,g||R(this,A,I,1,127,-128),C.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[I]=255&A,I+1},C.prototype.writeInt16LE=function(A,I,g){return A=+A,I|=0,g||R(this,A,I,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8):M(this,A,I,!0),I+2},C.prototype.writeInt16BE=function(A,I,g){return A=+A,I|=0,g||R(this,A,I,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[I]=A>>>8,this[I+1]=255&A):M(this,A,I,!1),I+2},C.prototype.writeInt32LE=function(A,I,g){return A=+A,I|=0,g||R(this,A,I,4,2147483647,-2147483648),C.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8,this[I+2]=A>>>16,this[I+3]=A>>>24):N(this,A,I,!0),I+4},C.prototype.writeInt32BE=function(A,I,g){return A=+A,I|=0,g||R(this,A,I,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),C.TYPED_ARRAY_SUPPORT?(this[I]=A>>>24,this[I+1]=A>>>16,this[I+2]=A>>>8,this[I+3]=255&A):N(this,A,I,!1),I+4},C.prototype.writeFloatLE=function(A,I,g){return v(this,A,I,!0,g)},C.prototype.writeFloatBE=function(A,I,g){return v(this,A,I,!1,g)},C.prototype.writeDoubleLE=function(A,I,g){return H(this,A,I,!0,g)},C.prototype.writeDoubleBE=function(A,I,g){return H(this,A,I,!1,g)},C.prototype.copy=function(A,I,g,t){if(g||(g=0),t||0===t||(t=this.length),I>=A.length&&(I=A.length),I||(I=0),t>0&&t<g&&(t=g),t===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(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),A.length-I<t-g&&(t=A.length-I+g);var e,i=t-g;if(this===A&&g<I&&I<t)for(e=i-1;e>=0;--e)A[e+I]=this[e+g];else if(i<1e3||!C.TYPED_ARRAY_SUPPORT)for(e=0;e<i;++e)A[e+I]=this[e+g];else Uint8Array.prototype.set.call(A,this.subarray(g,g+i),I);return i},C.prototype.fill=function(A,I,g,t){if("string"==typeof A){if("string"==typeof I?(t=I,I=0,g=this.length):"string"==typeof g&&(t=g,g=this.length),1===A.length){var e=A.charCodeAt(0);e<256&&(A=e)}if(void 0!==t&&"string"!=typeof t)throw new TypeError("encoding must be a string");if("string"==typeof t&&!C.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}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 i;if(I>>>=0,g=void 0===g?this.length:g>>>0,A||(A=0),"number"==typeof A)for(i=I;i<g;++i)this[i]=A;else{var r=C.isBuffer(A)?A:K(new C(A,t).toString()),n=r.length;for(i=0;i<g-I;++i)this[i+I]=r[i%n]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function J(A){return A<16?"0"+A.toString(16):A.toString(16)}function K(A,I){var g;I=I||1/0;for(var t=A.length,e=null,i=[],r=0;r<t;++r){if((g=A.charCodeAt(r))>55295&&g<57344){if(!e){if(g>56319){(I-=3)>-1&&i.push(239,191,189);continue}if(r+1===t){(I-=3)>-1&&i.push(239,191,189);continue}e=g;continue}if(g<56320){(I-=3)>-1&&i.push(239,191,189),e=g;continue}g=65536+(e-55296<<10|g-56320)}else e&&(I-=3)>-1&&i.push(239,191,189);if(e=null,g<128){if((I-=1)<0)break;i.push(g)}else if(g<2048){if((I-=2)<0)break;i.push(g>>6|192,63&g|128)}else if(g<65536){if((I-=3)<0)break;i.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;i.push(g>>18|240,g>>12&63|128,g>>6&63|128,63&g|128)}}return i}function q(A){return t.toByteArray(function(A){if((A=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")}(A).replace(L,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function T(A,I,g,t){for(var e=0;e<t&&!(e+g>=I.length||e>=A.length);++e)I[e+g]=A[e];return e}}).call(this,g(24))},14:function(A,I,g){var t=g(50),e=g(51),i=g(52),r=g(54);A.exports=function(A,I){return t(A)||e(A,I)||i(A,I)||r()}},15:function(A,I,g){"use strict";var t=g(8),e=g.n(t),i=g(11),r=g.n(i),n=g(2),C=g.n(n),o=g(3),B=g.n(o),a=g(1),E=g(25),Q=g.n(E),s=g(4),h=g.n(s),c=g(5),u=g.n(c),f=g(0),y=g.n(f);function l(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}();return function(){var g,t=y()(A);if(I){var e=y()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return u()(this,g)}}
/**
 * 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 w=function(A){h()(g,A);var I=l(g);function g(){var A;C()(this,g);for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return(A=I.call(this,...e)).type="DishError",Error.captureStackTrace&&Error.captureStackTrace(Q()(A),g),A}return g}(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)),F=g(17),p=g.n(F),D=g(20),d=g(27),S=g.n(d),U=function(){function A(){C()(this,A)}return B()(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(){throw new Error("fromArrayBuffer has not been implemented")}}]),A}();function G(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */();return function(){var g,t=y()(A);if(I){var e=y()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return u()(this,g)}}var m=function(A){h()(g,A);var I=G(g);function g(){return C()(this,g),I.apply(this,arguments)}return B()(g,null,[{key:"toArrayBuffer",value:function(){g.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){g.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}]),g}(U);function k(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */();return function(){var g,t=y()(A);if(I){var e=y()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return u()(this,g)}}var Y=function(A){h()(g,A);var I=k(g);function g(){return C()(this,g),I.apply(this,arguments)}return B()(g,null,[{key:"toArrayBuffer",value:function(){g.checkForValue(this.value),this.value=p.a.isBigNumber(this.value)?a.b.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){g.checkForValue(this.value);try{this.value=new p.a(a.b.arrayBufferToStr(this.value,!A))}catch(A){this.value=new p.a(NaN)}}}]),g}(U);function R(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */();return function(){var g,t=y()(A);if(I){var e=y()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return u()(this,g)}}var M=function(A){h()(g,A);var I=R(g);function g(){return C()(this,g),I.apply(this,arguments)}return B()(g,null,[{key:"toArrayBuffer",value:function(){var A=this;if(g.checkForValue(this.value),!Object(a.c)())return new Promise((function(I,g){a.b.readFile(A.value).then((function(I){return A.value=I.buffer})).then(I).catch(g)}));this.value=a.b.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){g.checkForValue(this.value),this.value=new File(this.value,"unknown")}}]),g}(U);function N(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */();return function(){var g,t=y()(A);if(I){var e=y()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return u()(this,g)}}var b=function(A){h()(g,A);var I=N(g);function g(){return C()(this,g),I.apply(this,arguments)}return B()(g,null,[{key:"toArrayBuffer",value:function(){g.checkForValue(this.value),this.value=this.value?a.b.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){g.checkForValue(this.value),this.value=this.value?a.b.arrayBufferToStr(this.value,!A):""}}]),g}(U);function v(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */();return function(){var g,t=y()(A);if(I){var e=y()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return u()(this,g)}}var H=function(A){h()(g,A);var I=v(g);function g(){return C()(this,g),I.apply(this,arguments)}return B()(g,null,[{key:"toArrayBuffer",value:function(){g.checkForValue(this.value),this.value=this.value?a.b.strToArrayBuffer(a.b.unescapeHtml(a.b.stripHtmlTags(this.value,!0))):new ArrayBuffer}}]),g}(b);function L(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */();return function(){var g,t=y()(A);if(I){var e=y()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return u()(this,g)}}var J=function(A){h()(g,A);var I=L(g);function g(){return C()(this,g),I.apply(this,arguments)}return B()(g,null,[{key:"toArrayBuffer",value:function(){g.checkForValue(this.value),this.value=void 0!==this.value?a.b.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){g.checkForValue(this.value),this.value=JSON.parse(a.b.arrayBufferToStr(this.value,!A))}}]),g}(U);function K(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */();return function(){var g,t=y()(A);if(I){var e=y()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return u()(this,g)}}var q=function(A){h()(i,A);var I,g,t=K(i);function i(){return C()(this,i),t.apply(this,arguments)}return B()(i,null,[{key:"toArrayBuffer",value:(g=r()(e.a.mark((function A(){return e.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(i.checkForValue(this.value),!Object(a.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,i.concatenateTypedArraysWithTypedElements(...this.value);case 7:this.value=A.sent;case 8:case"end":return A.stop()}}),A,this)}))),function(){return g.apply(this,arguments)})},{key:"fromArrayBuffer",value:function(){i.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:(I=r()(e.a.mark((function A(){var I,g,t,i,r,n,C,o,B,E,Q,s,h,c=arguments;return e.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:for(I=0,g=c.length,t=new Array(g),i=0;i<g;i++)t[i]=c[i];for(r=0,n=t;r<n.length;r++)C=n[r],I+=C.size;o=new Uint8Array(I),B=0,E=0,Q=t;case 6:if(!(E<Q.length)){A.next=16;break}return s=Q[E],A.next=10,a.b.readFile(s);case 10:h=A.sent,o.set(h,B),B+=h.length;case 13:E++,A.next=6;break;case 16:return A.abrupt("return",o);case 17:case"end":return A.stop()}}),A)}))),function(){return I.apply(this,arguments)})},{key:"concatenateTypedArrays",value:function(){for(var A=0,I=arguments.length,g=new Array(I),t=0;t<I;t++)g[t]=arguments[t];for(var e=0,i=g;e<i.length;e++){var r=i[e];A+=r.length}for(var n=new Uint8Array(A),C=0,o=0,B=g;o<B.length;o++){var a=B[o];n.set(a,C),C+=a.length}return n}}]),i}(U);function T(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */();return function(){var g,t=y()(A);if(I){var e=y()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return u()(this,g)}}var x=function(A){h()(g,A);var I=T(g);function g(){return C()(this,g),I.apply(this,arguments)}return B()(g,null,[{key:"toArrayBuffer",value:function(){g.checkForValue(this.value),this.value="number"==typeof this.value?a.b.strToArrayBuffer(this.value.toString()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){g.checkForValue(this.value),this.value=this.value?parseFloat(a.b.arrayBufferToStr(this.value,!A)):0}}]),g}(U),V=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(C()(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 t=A.typeEnum(I.constructor.name);this.set(I,t)}}var I;return B()(A,[{key:"get",value:function(I){var g=this,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"==typeof I&&(I=A.typeEnum(I)),this.type!==I?Object(a.c)()?(this._translate(I,t),this.value):new Promise((function(A,e){g._translate(I,t).then((function(){A(g.value)})).catch(e)})):this.value}},{key:"set",value:function(I,g){if("string"==typeof g&&(g=A.typeEnum(g)),S.a.debug("Dish type: "+A.enumLookup(g)),this.value=I,this.type=g,!this.valid()){var t=a.b.truncate(JSON.stringify(this.value),25);throw new w(`Data is not a valid ${A.enumLookup(g)}: ${t}`)}}},{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(D.a)(A);return I.length&&I[0].mime&&"text/plain"!==!I[0].mime?I[0].mime:null}},{key:"getTitle",value:(I=r()(e.a.mark((function I(g){var t,i;return e.a.wrap((function(I){for(;;)switch(I.prev=I.next){case 0:t="",I.t0=this.type,I.next=I.t0===A.FILE?4:I.t0===A.LIST_FILE?6:I.t0===A.JSON?8:I.t0===A.NUMBER||I.t0===A.BIG_NUMBER?10:I.t0===A.ARRAY_BUFFER||I.t0===A.BYTE_ARRAY?12:15;break;case 4:return t=this.value.name,I.abrupt("break",26);case 6:return t=this.value.length+" file(s)",I.abrupt("break",26);case 8:return t="application/json",I.abrupt("break",26);case 10:return t=this.value.toString(),I.abrupt("break",26);case 12:if(null===(t=this.detectDishType())){I.next=15;break}return I.abrupt("break",26);case 15:return I.prev=15,(i=this.clone()).value=i.value.slice(0,256),I.next=20,i.get(A.STRING);case 20:t=I.sent,I.next=26;break;case 23:I.prev=23,I.t1=I.catch(15),S.a.error(`${A.enumLookup(this.type)} cannot be sliced. ${I.t1}`);case 26:return I.abrupt("return",t.slice(0,g));case 27:case"end":return I.stop()}}),I,this,[[15,23]])}))),function(A){return I.apply(this,arguments)})},{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(p.a.isBigNumber(this.value))return!0;if(Object.keys(this.value).sort().equals(["c","e","s"])){var g=new p.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 w("Cannot clone Dish, unknown type")}return I}},{key:"_translate",value:function(I){var g=this,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(S.a.debug(`Translating Dish from ${A.enumLookup(this.type)} to ${A.enumLookup(I)}`),!Object(a.c)())return new Promise((function(t,e){g._toArrayBuffer().then((function(){return g.type=A.ARRAY_BUFFER})).then((function(){g._fromArrayBuffer(I),t()})).catch(e)}));this._toArrayBuffer(),this.type=A.ARRAY_BUFFER,this._fromArrayBuffer(I,t)}},{key:"_toArrayBuffer",value:function(){var I=this,g={browser:{[A.STRING]:function(){return Promise.resolve(b.toArrayBuffer.bind(I)())},[A.NUMBER]:function(){return Promise.resolve(x.toArrayBuffer.bind(I)())},[A.HTML]:function(){return Promise.resolve(H.toArrayBuffer.bind(I)())},[A.ARRAY_BUFFER]:function(){return Promise.resolve()},[A.BIG_NUMBER]:function(){return Promise.resolve(Y.toArrayBuffer.bind(I)())},[A.JSON]:function(){return Promise.resolve(J.toArrayBuffer.bind(I)())},[A.FILE]:function(){return M.toArrayBuffer.bind(I)()},[A.LIST_FILE]:function(){return Promise.resolve(q.toArrayBuffer.bind(I)())},[A.BYTE_ARRAY]:function(){return Promise.resolve(m.toArrayBuffer.bind(I)())}},node:{[A.STRING]:function(){return b.toArrayBuffer.bind(I)()},[A.NUMBER]:function(){return x.toArrayBuffer.bind(I)()},[A.HTML]:function(){return H.toArrayBuffer.bind(I)()},[A.ARRAY_BUFFER]:function(){},[A.BIG_NUMBER]:function(){return Y.toArrayBuffer.bind(I)()},[A.JSON]:function(){return J.toArrayBuffer.bind(I)()},[A.FILE]:function(){return M.toArrayBuffer.bind(I)()},[A.LIST_FILE]:function(){return q.toArrayBuffer.bind(I)()},[A.BYTE_ARRAY]:function(){return m.toArrayBuffer.bind(I)()}}};try{return g[Object(a.c)()?"node":"browser"][this.type]()}catch(I){throw new w(`Error translating from ${A.enumLookup(this.type)} to ArrayBuffer: ${I}`)}}},{key:"_fromArrayBuffer",value:function(I,g){var t=this,e={[A.STRING]:function(){return b.fromArrayBuffer.bind(t)(g)},[A.NUMBER]:function(){return x.fromArrayBuffer.bind(t)(g)},[A.HTML]:function(){return H.fromArrayBuffer.bind(t)(g)},[A.ARRAY_BUFFER]:function(){},[A.BIG_NUMBER]:function(){return Y.fromArrayBuffer.bind(t)(g)},[A.JSON]:function(){return J.fromArrayBuffer.bind(t)(g)},[A.FILE]:function(){return M.fromArrayBuffer.bind(t)()},[A.LIST_FILE]:function(){return q.fromArrayBuffer.bind(t)()},[A.BYTE_ARRAY]:function(){return m.fromArrayBuffer.bind(t)()}};try{e[I](),this.type=I}catch(g){throw new w(`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 w("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 w("Invalid data type enum. No matching type.")}}}]),A}();V.BYTE_ARRAY=0,V.STRING=1,V.NUMBER=2,V.HTML=3,V.ARRAY_BUFFER=4,V.BIG_NUMBER=5,V.JSON=6,V.FILE=7,V.LIST_FILE=8;I.a=V},1522:function(A,I,g){"use strict";g.r(I);var t=g(14),e=g.n(t),i=g(2),r=g.n(i),n=g(3),C=g.n(n),o=g(4),B=g.n(o),a=g(5),E=g.n(a),Q=g(0),s=g.n(Q),h=g(9),c=g(7),u=g(480),f=g.n(u),y=g(1);function l(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author Matt C [me@mitt.dev]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var w=function(A){B()(g,A);var I=l(g);function g(){var A;return r()(this,g),(A=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 C()(g,[{key:"run",value:function(A,I){var g=e()(I,2),t=g[0],i=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(e){Object(y.d)()&&self.sendStatusMessage("Compressing data...");var r=new Uint8Array(A),n=e.compressBZ2(r,t,i);if(0!==n.error)g(new c.a(n.error_msg));else{var C=n.output;I(C.buffer.slice(C.byteOffset,C.byteLength+C.byteOffset))}}))}))}}]),g}(h.a),F=g(8),p=g.n(F),D=g(11),d=g.n(D);function S(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author Matt C [me@mitt.dev]
 * @copyright Crown Copyright 2019
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var U=function(A){B()(t,A);var I,g=S(t);function t(){var A;return r()(this,t),(A=g.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.checks=[{pattern:"^\\x42\\x5a\\x68",flags:"",args:[]}],A}return C()(t,[{key:"run",value:(I=d()(p.a.mark((function A(I,g){var t,i;return p.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(t=e()(g,1),i=t[0],!(I.byteLength<=0)){A.next=3;break}throw new c.a("Please provide an input.");case 3:return Object(y.d)()&&self.sendStatusMessage("Loading Bzip2..."),A.abrupt("return",new Promise((function(A,g){f()().then((function(t){Object(y.d)()&&self.sendStatusMessage("Decompressing data...");var e=new Uint8Array(I),r=t.decompressBZ2(e,i?1:0);if(0!==r.error)g(new c.a(r.error_msg));else{var n=r.output;A(n.buffer.slice(n.byteOffset,n.byteLength+n.byteOffset))}}))})));case 5:case"end":return A.stop()}}),A)}))),function(A,g){return I.apply(this,arguments)})}]),t}(h.a),G=g(867);function m(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var k=g.n(G).a.Zlib,Y=function(A){B()(g,A);var I=m(g);function g(){var A;return r()(this,g),(A=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.checks=[{pattern:"^\\x1f\\x8b\\x08",flags:"",args:[]}],A}return C()(g,[{key:"run",value:function(A,I){var g=new k.Gunzip(new Uint8Array(A));return new Uint8Array(g.decompress()).buffer}}]),g}(h.a),R=g(385),M=g.n(R),N=M.a.Zlib,b=["Dynamic Huffman Coding","Fixed Huffman Coding","None (Store)"],v=["Adaptive","Block"],H={"Fixed Huffman Coding":N.Deflate.CompressionType.FIXED,"Dynamic Huffman Coding":N.Deflate.CompressionType.DYNAMIC,"None (Store)":N.Deflate.CompressionType.NONE},L=g(868);function J(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var K=g.n(L).a.Zlib,q=function(A){B()(g,A);var I=J(g);function g(){var A;return r()(this,g),(A=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:b},{name:"Filename (optional)",type:"string",value:""},{name:"Comment (optional)",type:"string",value:""},{name:"Include file checksum",type:"boolean",value:!1}],A}return C()(g,[{key:"run",value:function(A,I){var g=I[1],t=I[2],e={deflateOptions:{compressionType:H[I[0]]},flags:{fhcrc:I[3]}};g.length&&(e.flags.fname=!0,e.filename=g),t.length&&(e.flags.comment=!0,e.comment=t);var i=new K.Gzip(new Uint8Array(A),e),r=new Uint8Array(i.compress());return!e.flags.comment||16&r[3]||(r[3]|=16),r.buffer}}]),g}(h.a),T=g(869);function x(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var V=g.n(T).a.Zlib,W={"Fixed Huffman Coding":V.RawDeflate.CompressionType.FIXED,"Dynamic Huffman Coding":V.RawDeflate.CompressionType.DYNAMIC,"None (Store)":V.RawDeflate.CompressionType.NONE},O=function(A){B()(g,A);var I=x(g);function g(){var A;return r()(this,g),(A=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:b}],A}return C()(g,[{key:"run",value:function(A,I){var g=new V.RawDeflate(new Uint8Array(A),{compressionType:W[I[0]]});return new Uint8Array(g.compress()).buffer}}]),g}(h.a),Z=g(870);function j(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var X=g.n(Z).a.Zlib,P={Adaptive:X.RawInflate.BufferType.ADAPTIVE,Block:X.RawInflate.BufferType.BLOCK},z=function(A){B()(g,A);var I=j(g);function g(){var A;return r()(this,g),(A=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:v},{name:"Resize buffer after decompression",type:"boolean",value:!1},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{entropyRange:[7.5,8],args:[0,0,v,!1,!1]}],A}return C()(g,[{key:"run",value:function(A,I){var g=new X.RawInflate(new Uint8Array(A),{index:I[0],bufferSize:I[1],bufferType:P[I[2]],resize:I[3],verify:I[4]}),t=new Uint8Array(g.decompress());if(t.length>158&&93===t[0]&&93===t[5]){for(var e=!1,i=0;i<155;i+=5)93!==t[i]&&(e=!0);if(!e)throw new c.a("Error: Unable to inflate data")}return t.buffer}}]),g}(h.a);function _(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author tlwr [toby@toby.codes]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var $=function(A){B()(g,A);var I=_(g);function g(){var A;return r()(this,g),(A=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 C()(g,[{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 t=A.length.toString(8).padStart(11,"0"),e=Math.floor(Date.now()/1e3).toString(8).padStart(11,"0"),i={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(t,12),lastModTime:y.b.padBytesRight(e,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 n in i){var C=i[n];Array.prototype.forEach.call(C,(function(A){void 0!==A.charCodeAt?r+=A.charCodeAt():r+=A}))}r=y.b.padBytesRight(r.toString(8).padStart(7,"0"),8),i.checksum=r;var o=new g;return o.writeBytes(i.fileName),o.writeBytes(i.fileMode),o.writeBytes(i.ownerUID),o.writeBytes(i.ownerGID),o.writeBytes(i.size),o.writeBytes(i.lastModTime),o.writeBytes(i.checksum),o.writeBytes(i.type),o.writeBytes(i.linkedFileName),o.writeBytes(i.USTARFormat),o.writeBytes(i.version),o.writeBytes(i.ownerUserName),o.writeBytes(i.ownerGroupName),o.writeBytes(i.deviceMajor),o.writeBytes(i.deviceMinor),o.writeBytes(i.fileNamePrefix),o.writeBytes(y.b.padBytesRight("",12)),o.writeBytes(A),o.writeEndBlocks(),new File([new Uint8Array(o.bytes)],I[0])}}]),g}(h.a),AA=g(6);function IA(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author tlwr [toby@toby.codes]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var gA=function(A){B()(t,A);var I,g=IA(t);function t(){var A;return r()(this,t),(A=g.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.checks=[{pattern:"^.{257}\\x75\\x73\\x74\\x61\\x72",flags:"",args:[]}],A}return C()(t,[{key:"run",value:function(A,I){A=new Uint8Array(A);for(var g=new AA.a(A),t=[];g.hasMore();){var e=g.position+512,i={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(i.USTARFormat&&(i.version=g.readString(2),i.ownerUserName=g.readString(32),i.ownerGroupName=g.readString(32),i.deviceMajor=g.readString(8),i.deviceMinor=g.readString(8),i.filenamePrefix=g.readString(155)),g.position=e,"0"===i.type){var r=g.position+i.size;i.size%512!=0&&(r+=512-i.size%512),i.bytes=g.getBytes(i.size),t.push(new File([new Uint8Array(i.bytes)],i.fileName)),g.position=r}else"5"===i.type&&t.push(new File([new Uint8Array(i.bytes)],i.fileName))}return t}},{key:"present",value:(I=d()(p.a.mark((function A(I){return p.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,y.b.displayFilesAsHTML(I);case 2:return A.abrupt("return",A.sent);case 3:case"end":return A.stop()}}),A)}))),function(A){return I.apply(this,arguments)})}]),t}(h.a),tA=g(871);function eA(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var iA=g.n(tA).a.Zlib,rA=function(A){B()(t,A);var I,g=eA(t);function t(){var A;return r()(this,t),(A=g.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.checks=[{pattern:"^\\x50\\x4b(?:\\x03|\\x05|\\x07)(?:\\x04|\\x06|\\x08)",flags:"",args:["",!1]}],A}return C()(t,[{key:"run",value:function(A,I){var g={password:y.b.strToByteArray(I[0]),verify:I[1]},t=new iA.Unzip(new Uint8Array(A),g);return t.getFilenames().map((function(A){var I=t.decompress(A);return new File([I],A)}))}},{key:"present",value:(I=d()(p.a.mark((function A(I){return p.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,y.b.displayFilesAsHTML(I);case 2:return A.abrupt("return",A.sent);case 3:case"end":return A.stop()}}),A)}))),function(A){return I.apply(this,arguments)})}]),t}(h.a),nA=g(872);function CA(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var oA=g.n(nA).a.Zlib,BA={Deflate:oA.Zip.CompressionMethod.DEFLATE,"None (Store)":oA.Zip.CompressionMethod.STORE},aA={MSDOS:oA.Zip.OperatingSystem.MSDOS,Unix:oA.Zip.OperatingSystem.UNIX,Macintosh:oA.Zip.OperatingSystem.MACINTOSH},EA=function(A){B()(g,A);var I=CA(g);function g(){var A;return r()(this,g),(A=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:b}],A}return C()(g,[{key:"run",value:function(A,I){var g=I[0],t=y.b.strToByteArray(I[2]),e={filename:y.b.strToByteArray(g),comment:y.b.strToByteArray(I[1]),compressionMethod:BA[I[3]],os:aA[I[4]],deflateOption:{compressionType:H[I[5]]}},i=new oA.Zip;return t.length&&i.setPassword(t),i.addFile(new Uint8Array(A),e),new File([i.compress()],g)}}]),g}(h.a);function QA(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var sA=M.a.Zlib,hA=function(A){B()(g,A);var I=QA(g);function g(){var A;return r()(this,g),(A=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:b}],A}return C()(g,[{key:"run",value:function(A,I){var g=new sA.Deflate(new Uint8Array(A),{compressionType:H[I[0]]});return new Uint8Array(g.compress()).buffer}}]),g}(h.a);function cA(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}
/**
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */();return function(){var g,t=s()(A);if(I){var e=s()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return E()(this,g)}}var uA=M.a.Zlib,fA={Adaptive:uA.Inflate.BufferType.ADAPTIVE,Block:uA.Inflate.BufferType.BLOCK},yA=function(A){B()(g,A);var I=cA(g);function g(){var A;return r()(this,g),(A=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:v},{name:"Resize buffer after decompression",type:"boolean",value:!1},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{pattern:"^\\x78(\\x01|\\x9c|\\xda|\\x5e)",flags:"",args:[0,0,"Adaptive",!1,!1]}],A}return C()(g,[{key:"run",value:function(A,I){var g=new uA.Inflate(new Uint8Array(A),{index:I[0],bufferSize:I[1],bufferType:fA[I[2]],resize:I[3],verify:I[4]});return new Uint8Array(g.decompress()).buffer}}]),g}(h.a),lA="undefined"==typeof self?{}:self.OpModules||{};lA.Compression={"Bzip2 Compress":w,"Bzip2 Decompress":U,Gunzip:Y,Gzip:q,"Raw Deflate":O,"Raw Inflate":z,Tar:$,Untar:gA,Unzip:rA,Zip:EA,"Zlib Deflate":hA,"Zlib Inflate":yA};I.default=lA},16:function(A,I,g){"use strict";g.d(I,"b",(function(){return i})),g.d(I,"a",(function(){return r}));var t=g(1),e=g(7);
/**
 * Base64 functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */
function i(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=t.b.strToByteArray(A)),64!==(I=t.b.expandAlphRange(I).join("")).length&&65!==I.length)throw new e.a(`Invalid Base64 alphabet length (${I.length}): ${I}`);for(var g,i,r,n,C,o,B,a="",E=0;E<A.length;)n=(g=A[E++])>>2,C=(3&g)<<4|(i=A[E++])>>4,o=(15&i)<<2|(r=A[E++])>>6,B=63&r,isNaN(i)?o=B=64:isNaN(r)&&(B=64),a+=I.charAt(n)+I.charAt(C)+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",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!A)return"string"===g?"":[];if(I=I||"A-Za-z0-9+/=",64!==(I=t.b.expandAlphRange(I).join("")).length&&65!==I.length)throw new e.a(`Invalid Base64 alphabet length (${I.length}): ${I}`);var r,n,C,o,B,a,E=[],Q=0;if(i){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,n=(15&o)<<4|(B=-1===(B=I.indexOf(A.charAt(Q++)||"="))?64:B)>>2,C=(3&B)<<6|(a=-1===(a=I.indexOf(A.charAt(Q++)||"="))?64:a),E.push(r),64!==B&&E.push(n),64!==a&&E.push(C);return"string"===g?t.b.byteArrayToUtf8(E):E}},17:function(A,I,g){var t;!function(e){"use strict";var i,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,C=Math.floor,o="[BigNumber Error] ",B=o+"Number primitive has more than 15 significant digits: ",a=1e14,E=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Q=1e9;function s(A){var I=0|A;return A>0||A===I?I:I-1}function h(A){for(var I,g,t=1,e=A.length,i=A[0]+"";t<e;){for(g=14-(I=A[t++]+"").length;g--;I="0"+I);i+=I}for(e=i.length;48===i.charCodeAt(--e););return i.slice(0,e+1||1)}function c(A,I){var g,t,e=A.c,i=I.c,r=A.s,n=I.s,C=A.e,o=I.e;if(!r||!n)return null;if(g=e&&!e[0],t=i&&!i[0],g||t)return g?t?0:-n:r;if(r!=n)return r;if(g=r<0,t=C==o,!e||!i)return t?0:!e^g?1:-1;if(!t)return C>o^g?1:-1;for(n=(C=e.length)<(o=i.length)?C:o,r=0;r<n;r++)if(e[r]!=i[r])return e[r]>i[r]^g?1:-1;return C==o?0:C>o^g?1:-1}function u(A,I,g,t){if(A<I||A>g||A!==C(A))throw Error(o+(t||"Argument")+("number"==typeof A?A<I||A>g?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A))}function f(A){var I=A.c.length-1;return s(A.e/14)==I&&A.c[I]%2!=0}function y(A,I){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(I<0?"e":"e+")+I}function l(A,I,g){var t,e;if(I<0){for(e=g+".";++I;e+=g);A=e+A}else if(++I>(t=A.length)){for(e=g,I-=t;--I;e+=g);A+=e}else I<t&&(A=A.slice(0,I)+"."+A.slice(I));return A}(i=function A(I){var g,t,e,i,w,F,p,D,d,S=J.prototype={constructor:J,toString:null,valueOf:null},U=new J(1),G=20,m=4,k=-7,Y=21,R=-1e7,M=1e7,N=!1,b=1,v=0,H={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},L="0123456789abcdefghijklmnopqrstuvwxyz";function J(A,I){var g,i,n,o,a,E,Q,s,h=this;if(!(h instanceof J))return new J(A,I);if(null==I){if(A&&!0===A._isBigNumber)return h.s=A.s,void(!A.c||A.e>M?h.c=h.e=null:A.e<R?h.c=[h.e=0]:(h.e=A.e,h.c=A.c.slice()));if((E="number"==typeof A)&&0*A==0){if(h.s=1/A<0?(A=-A,-1):1,A===~~A){for(o=0,a=A;a>=10;a/=10,o++);return void(o>M?h.c=h.e=null:(h.e=o,h.c=[A]))}s=String(A)}else{if(!r.test(s=String(A)))return e(h,s,E);h.s=45==s.charCodeAt(0)?(s=s.slice(1),-1):1}(o=s.indexOf("."))>-1&&(s=s.replace(".","")),(a=s.search(/e/i))>0?(o<0&&(o=a),o+=+s.slice(a+1),s=s.substring(0,a)):o<0&&(o=s.length)}else{if(u(I,2,L.length,"Base"),10==I)return x(h=new J(A),G+h.e+1,m);if(s=String(A),E="number"==typeof A){if(0*A!=0)return e(h,s,E,I);if(h.s=1/A<0?(s=s.slice(1),-1):1,J.DEBUG&&s.replace(/^0\.0*|\./,"").length>15)throw Error(B+A)}else h.s=45===s.charCodeAt(0)?(s=s.slice(1),-1):1;for(g=L.slice(0,I),o=a=0,Q=s.length;a<Q;a++)if(g.indexOf(i=s.charAt(a))<0){if("."==i){if(a>o){o=Q;continue}}else if(!n&&(s==s.toUpperCase()&&(s=s.toLowerCase())||s==s.toLowerCase()&&(s=s.toUpperCase()))){n=!0,a=-1,o=0;continue}return e(h,String(A),E,I)}E=!1,(o=(s=t(s,I,10,h.s)).indexOf("."))>-1?s=s.replace(".",""):o=s.length}for(a=0;48===s.charCodeAt(a);a++);for(Q=s.length;48===s.charCodeAt(--Q););if(s=s.slice(a,++Q)){if(Q-=a,E&&J.DEBUG&&Q>15&&(A>9007199254740991||A!==C(A)))throw Error(B+h.s*A);if((o=o-a-1)>M)h.c=h.e=null;else if(o<R)h.c=[h.e=0];else{if(h.e=o,h.c=[],a=(o+1)%14,o<0&&(a+=14),a<Q){for(a&&h.c.push(+s.slice(0,a)),Q-=14;a<Q;)h.c.push(+s.slice(a,a+=14));a=14-(s=s.slice(a)).length}else a-=Q;for(;a--;s+="0");h.c.push(+s)}}else h.c=[h.e=0]}function K(A,I,g,t){var e,i,r,n,C;if(null==g?g=m:u(g,0,8),!A.c)return A.toString();if(e=A.c[0],r=A.e,null==I)C=h(A.c),C=1==t||2==t&&(r<=k||r>=Y)?y(C,r):l(C,r,"0");else if(i=(A=x(new J(A),I,g)).e,n=(C=h(A.c)).length,1==t||2==t&&(I<=i||i<=k)){for(;n<I;C+="0",n++);C=y(C,i)}else if(I-=r,C=l(C,i,"0"),i+1>n){if(--I>0)for(C+=".";I--;C+="0");}else if((I+=i-n)>0)for(i+1==n&&(C+=".");I--;C+="0");return A.s<0&&e?"-"+C:C}function q(A,I){for(var g,t=1,e=new J(A[0]);t<A.length;t++){if(!(g=new J(A[t])).s){e=g;break}I.call(e,g)&&(e=g)}return e}function T(A,I,g){for(var t=1,e=I.length;!I[--e];I.pop());for(e=I[0];e>=10;e/=10,t++);return(g=t+14*g-1)>M?A.c=A.e=null:g<R?A.c=[A.e=0]:(A.e=g,A.c=I),A}function x(A,I,g,t){var e,i,r,o,B,Q,s,h=A.c,c=E;if(h){A:{for(e=1,o=h[0];o>=10;o/=10,e++);if((i=I-e)<0)i+=14,r=I,s=(B=h[Q=0])/c[e-r-1]%10|0;else if((Q=n((i+1)/14))>=h.length){if(!t)break A;for(;h.length<=Q;h.push(0));B=s=0,e=1,r=(i%=14)-14+1}else{for(B=o=h[Q],e=1;o>=10;o/=10,e++);s=(r=(i%=14)-14+e)<0?0:B/c[e-r-1]%10|0}if(t=t||I<0||null!=h[Q+1]||(r<0?B:B%c[e-r-1]),t=g<4?(s||t)&&(0==g||g==(A.s<0?3:2)):s>5||5==s&&(4==g||t||6==g&&(i>0?r>0?B/c[e-r]:0:h[Q-1])%10&1||g==(A.s<0?8:7)),I<1||!h[0])return h.length=0,t?(I-=A.e+1,h[0]=c[(14-I%14)%14],A.e=-I||0):h[0]=A.e=0,A;if(0==i?(h.length=Q,o=1,Q--):(h.length=Q+1,o=c[14-i],h[Q]=r>0?C(B/c[e-r]%c[r])*o:0),t)for(;;){if(0==Q){for(i=1,r=h[0];r>=10;r/=10,i++);for(r=h[0]+=o,o=1;r>=10;r/=10,o++);i!=o&&(A.e++,h[0]==a&&(h[0]=1));break}if(h[Q]+=o,h[Q]!=a)break;h[Q--]=0,o=1}for(i=h.length;0===h[--i];h.pop());}A.e>M?A.c=A.e=null:A.e<R&&(A.c=[A.e=0])}return A}function V(A){var I,g=A.e;return null===g?A.toString():(I=h(A.c),I=g<=k||g>=Y?y(I,g):l(I,g,"0"),A.s<0?"-"+I:I)}return J.clone=A,J.ROUND_UP=0,J.ROUND_DOWN=1,J.ROUND_CEIL=2,J.ROUND_FLOOR=3,J.ROUND_HALF_UP=4,J.ROUND_HALF_DOWN=5,J.ROUND_HALF_EVEN=6,J.ROUND_HALF_CEIL=7,J.ROUND_HALF_FLOOR=8,J.EUCLID=9,J.config=J.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")&&(u(g=A[I],0,Q,I),G=g),A.hasOwnProperty(I="ROUNDING_MODE")&&(u(g=A[I],0,8,I),m=g),A.hasOwnProperty(I="EXPONENTIAL_AT")&&((g=A[I])&&g.pop?(u(g[0],-Q,0,I),u(g[1],0,Q,I),k=g[0],Y=g[1]):(u(g,-Q,Q,I),k=-(Y=g<0?-g:g))),A.hasOwnProperty(I="RANGE"))if((g=A[I])&&g.pop)u(g[0],-Q,-1,I),u(g[1],1,Q,I),R=g[0],M=g[1];else{if(u(g,-Q,Q,I),!g)throw Error(o+I+" cannot be zero: "+g);R=-(M=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 N=!g,Error(o+"crypto unavailable");N=g}else N=g}if(A.hasOwnProperty(I="MODULO_MODE")&&(u(g=A[I],0,9,I),b=g),A.hasOwnProperty(I="POW_PRECISION")&&(u(g=A[I],0,Q,I),v=g),A.hasOwnProperty(I="FORMAT")){if("object"!=typeof(g=A[I]))throw Error(o+I+" not an object: "+g);H=g}if(A.hasOwnProperty(I="ALPHABET")){if("string"!=typeof(g=A[I])||/^.$|[+-.\s]|(.).*\1/.test(g))throw Error(o+I+" invalid: "+g);L=g}}return{DECIMAL_PLACES:G,ROUNDING_MODE:m,EXPONENTIAL_AT:[k,Y],RANGE:[R,M],CRYPTO:N,MODULO_MODE:b,POW_PRECISION:v,FORMAT:H,ALPHABET:L}},J.isBigNumber=function(A){if(!A||!0!==A._isBigNumber)return!1;if(!J.DEBUG)return!0;var I,g,t=A.c,e=A.e,i=A.s;A:if("[object Array]"=={}.toString.call(t)){if((1===i||-1===i)&&e>=-Q&&e<=Q&&e===C(e)){if(0===t[0]){if(0===e&&1===t.length)return!0;break A}if((I=(e+1)%14)<1&&(I+=14),String(t[0]).length==I){for(I=0;I<t.length;I++)if((g=t[I])<0||g>=a||g!==C(g))break A;if(0!==g)return!0}}}else if(null===t&&null===e&&(null===i||1===i||-1===i))return!0;throw Error(o+"Invalid BigNumber: "+A)},J.maximum=J.max=function(){return q(arguments,S.lt)},J.minimum=J.min=function(){return q(arguments,S.gt)},J.random=(i=9007199254740992*Math.random()&2097151?function(){return C(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(A){var I,g,t,e,r,B=0,a=[],s=new J(U);if(null==A?A=G:u(A,0,Q),e=n(A/14),N)if(crypto.getRandomValues){for(I=crypto.getRandomValues(new Uint32Array(e*=2));B<e;)(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=e/2}else{if(!crypto.randomBytes)throw N=!1,Error(o+"crypto unavailable");for(I=crypto.randomBytes(e*=7);B<e;)(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=e/7}if(!N)for(;B<e;)(r=i())<9e15&&(a[B++]=r%1e14);for(A%=14,(e=a[--B])&&A&&(r=E[14-A],a[B]=C(e/r)*r);0===a[B];a.pop(),B--);if(B<0)a=[t=0];else{for(t=-1;0===a[0];a.splice(0,1),t-=14);for(B=1,r=a[0];r>=10;r/=10,B++);B<14&&(t-=14-B)}return s.e=t,s.c=a,s}),J.sum=function(){for(var A=1,I=arguments,g=new J(I[0]);A<I.length;)g=g.plus(I[A++]);return g},t=function(){function A(A,I,g,t){for(var e,i,r=[0],n=0,C=A.length;n<C;){for(i=r.length;i--;r[i]*=I);for(r[0]+=t.indexOf(A.charAt(n++)),e=0;e<r.length;e++)r[e]>g-1&&(null==r[e+1]&&(r[e+1]=0),r[e+1]+=r[e]/g|0,r[e]%=g)}return r.reverse()}return function(I,t,e,i,r){var n,C,o,B,a,E,Q,s,c=I.indexOf("."),u=G,f=m;for(c>=0&&(B=v,v=0,I=I.replace(".",""),E=(s=new J(t)).pow(I.length-c),v=B,s.c=A(l(h(E.c),E.e,"0"),10,e,"0123456789"),s.e=s.c.length),o=B=(Q=A(I,t,e,r?(n=L,"0123456789"):(n="0123456789",L))).length;0==Q[--B];Q.pop());if(!Q[0])return n.charAt(0);if(c<0?--o:(E.c=Q,E.e=o,E.s=i,Q=(E=g(E,s,u,f,e)).c,a=E.r,o=E.e),c=Q[C=o+u+1],B=e/2,a=a||C<0||null!=Q[C+1],a=f<4?(null!=c||a)&&(0==f||f==(E.s<0?3:2)):c>B||c==B&&(4==f||a||6==f&&1&Q[C-1]||f==(E.s<0?8:7)),C<1||!Q[0])I=a?l(n.charAt(1),-u,n.charAt(0)):n.charAt(0);else{if(Q.length=C,a)for(--e;++Q[--C]>e;)Q[C]=0,C||(++o,Q=[1].concat(Q));for(B=Q.length;!Q[--B];);for(c=0,I="";c<=B;I+=n.charAt(Q[c++]));I=l(I,o,n.charAt(0))}return I}}(),g=function(){function A(A,I,g){var t,e,i,r,n=0,C=A.length,o=I%1e7,B=I/1e7|0;for(A=A.slice();C--;)n=((e=o*(i=A[C]%1e7)+(t=B*i+(r=A[C]/1e7|0)*o)%1e7*1e7+n)/g|0)+(t/1e7|0)+B*r,A[C]=e%g;return n&&(A=[n].concat(A)),A}function I(A,I,g,t){var e,i;if(g!=t)i=g>t?1:-1;else for(e=i=0;e<g;e++)if(A[e]!=I[e]){i=A[e]>I[e]?1:-1;break}return i}function g(A,I,g,t){for(var e=0;g--;)A[g]-=e,e=A[g]<I[g]?1:0,A[g]=e*t+A[g]-I[g];for(;!A[0]&&A.length>1;A.splice(0,1));}return function(t,e,i,r,n){var o,B,E,Q,h,c,u,f,y,l,w,F,p,D,d,S,U,G=t.s==e.s?1:-1,m=t.c,k=e.c;if(!(m&&m[0]&&k&&k[0]))return new J(t.s&&e.s&&(m?!k||m[0]!=k[0]:k)?m&&0==m[0]||!k?0*G:G/0:NaN);for(y=(f=new J(G)).c=[],G=i+(B=t.e-e.e)+1,n||(n=a,B=s(t.e/14)-s(e.e/14),G=G/14|0),E=0;k[E]==(m[E]||0);E++);if(k[E]>(m[E]||0)&&B--,G<0)y.push(1),Q=!0;else{for(D=m.length,S=k.length,E=0,G+=2,(h=C(n/(k[0]+1)))>1&&(k=A(k,h,n),m=A(m,h,n),S=k.length,D=m.length),p=S,w=(l=m.slice(0,S)).length;w<S;l[w++]=0);U=k.slice(),U=[0].concat(U),d=k[0],k[1]>=n/2&&d++;do{if(h=0,(o=I(k,l,S,w))<0){if(F=l[0],S!=w&&(F=F*n+(l[1]||0)),(h=C(F/d))>1)for(h>=n&&(h=n-1),u=(c=A(k,h,n)).length,w=l.length;1==I(c,l,u,w);)h--,g(c,S<u?U:k,u,n),u=c.length,o=1;else 0==h&&(o=h=1),u=(c=k.slice()).length;if(u<w&&(c=[0].concat(c)),g(l,c,w,n),w=l.length,-1==o)for(;I(k,l,S,w)<1;)h++,g(l,S<w?U:k,w,n),w=l.length}else 0===o&&(h++,l=[0]);y[E++]=h,l[0]?l[w++]=m[p]||0:(l=[m[p]],w=1)}while((p++<D||null!=l[0])&&G--);Q=null!=l[0],y[0]||y.splice(0,1)}if(n==a){for(E=1,G=y[0];G>=10;G/=10,E++);x(f,i+(f.e=E+14*B-1)+1,r,Q)}else f.e=B,f.r=+Q;return f}}(),w=/^(-?)0([xbo])(?=\w[\w.]*$)/i,F=/^([^.]+)\.$/,p=/^\.([^.]+)$/,D=/^-?(Infinity|NaN)$/,d=/^\s*\+(?=[\w.])|^\s+|\s+$/g,e=function(A,I,g,t){var e,i=g?I:I.replace(d,"");if(D.test(i))A.s=isNaN(i)?null:i<0?-1:1;else{if(!g&&(i=i.replace(w,(function(A,I,g){return e="x"==(g=g.toLowerCase())?16:"b"==g?2:8,t&&t!=e?A:I})),t&&(e=t,i=i.replace(F,"$1").replace(p,"0.$1")),I!=i))return new J(i,e);if(J.DEBUG)throw Error(o+"Not a"+(t?" base "+t:"")+" number: "+I);A.s=null}A.c=A.e=null},S.absoluteValue=S.abs=function(){var A=new J(this);return A.s<0&&(A.s=1),A},S.comparedTo=function(A,I){return c(this,new J(A,I))},S.decimalPlaces=S.dp=function(A,I){var g,t,e,i=this;if(null!=A)return u(A,0,Q),null==I?I=m:u(I,0,8),x(new J(i),A+i.e+1,I);if(!(g=i.c))return null;if(t=14*((e=g.length-1)-s(this.e/14)),e=g[e])for(;e%10==0;e/=10,t--);return t<0&&(t=0),t},S.dividedBy=S.div=function(A,I){return g(this,new J(A,I),G,m)},S.dividedToIntegerBy=S.idiv=function(A,I){return g(this,new J(A,I),0,1)},S.exponentiatedBy=S.pow=function(A,I){var g,t,e,i,r,B,a,E,Q=this;if((A=new J(A)).c&&!A.isInteger())throw Error(o+"Exponent not an integer: "+V(A));if(null!=I&&(I=new J(I)),r=A.e>14,!Q.c||!Q.c[0]||1==Q.c[0]&&!Q.e&&1==Q.c.length||!A.c||!A.c[0])return E=new J(Math.pow(+V(Q),r?2-f(A):+V(A))),I?E.mod(I):E;if(B=A.s<0,I){if(I.c?!I.c[0]:!I.s)return new J(NaN);(t=!B&&Q.isInteger()&&I.isInteger())&&(Q=Q.mod(I))}else{if(A.e>9&&(Q.e>0||Q.e<-1||(0==Q.e?Q.c[0]>1||r&&Q.c[1]>=24e7:Q.c[0]<8e13||r&&Q.c[0]<=9999975e7)))return i=Q.s<0&&f(A)?-0:0,Q.e>-1&&(i=1/i),new J(B?1/i:i);v&&(i=n(v/14+2))}for(r?(g=new J(.5),B&&(A.s=1),a=f(A)):a=(e=Math.abs(+V(A)))%2,E=new J(U);;){if(a){if(!(E=E.times(Q)).c)break;i?E.c.length>i&&(E.c.length=i):t&&(E=E.mod(I))}if(e){if(0===(e=C(e/2)))break;a=e%2}else if(x(A=A.times(g),A.e+1,1),A.e>14)a=f(A);else{if(0===(e=+V(A)))break;a=e%2}Q=Q.times(Q),i?Q.c&&Q.c.length>i&&(Q.c.length=i):t&&(Q=Q.mod(I))}return t?E:(B&&(E=U.div(E)),I?E.mod(I):i?x(E,v,m,void 0):E)},S.integerValue=function(A){var I=new J(this);return null==A?A=m:u(A,0,8),x(I,I.e+1,A)},S.isEqualTo=S.eq=function(A,I){return 0===c(this,new J(A,I))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(A,I){return c(this,new J(A,I))>0},S.isGreaterThanOrEqualTo=S.gte=function(A,I){return 1===(I=c(this,new J(A,I)))||0===I},S.isInteger=function(){return!!this.c&&s(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(A,I){return c(this,new J(A,I))<0},S.isLessThanOrEqualTo=S.lte=function(A,I){return-1===(I=c(this,new J(A,I)))||0===I},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(A,I){var g,t,e,i,r=this,n=r.s;if(I=(A=new J(A,I)).s,!n||!I)return new J(NaN);if(n!=I)return A.s=-I,r.plus(A);var C=r.e/14,o=A.e/14,B=r.c,E=A.c;if(!C||!o){if(!B||!E)return B?(A.s=-I,A):new J(E?r:NaN);if(!B[0]||!E[0])return E[0]?(A.s=-I,A):new J(B[0]?r:3==m?-0:0)}if(C=s(C),o=s(o),B=B.slice(),n=C-o){for((i=n<0)?(n=-n,e=B):(o=C,e=E),e.reverse(),I=n;I--;e.push(0));e.reverse()}else for(t=(i=(n=B.length)<(I=E.length))?n:I,n=I=0;I<t;I++)if(B[I]!=E[I]){i=B[I]<E[I];break}if(i&&(e=B,B=E,E=e,A.s=-A.s),(I=(t=E.length)-(g=B.length))>0)for(;I--;B[g++]=0);for(I=a-1;t>n;){if(B[--t]<E[t]){for(g=t;g&&!B[--g];B[g]=I);--B[g],B[t]+=a}B[t]-=E[t]}for(;0==B[0];B.splice(0,1),--o);return B[0]?T(A,B,o):(A.s=3==m?-1:1,A.c=[A.e=0],A)},S.modulo=S.mod=function(A,I){var t,e,i=this;return A=new J(A,I),!i.c||!A.s||A.c&&!A.c[0]?new J(NaN):!A.c||i.c&&!i.c[0]?new J(i):(9==b?(e=A.s,A.s=1,t=g(i,A,0,3),A.s=e,t.s*=e):t=g(i,A,0,b),(A=i.minus(t.times(A))).c[0]||1!=b||(A.s=i.s),A)},S.multipliedBy=S.times=function(A,I){var g,t,e,i,r,n,C,o,B,E,Q,h,c,u,f=this,y=f.c,l=(A=new J(A,I)).c;if(!(y&&l&&y[0]&&l[0]))return!f.s||!A.s||y&&!y[0]&&!l||l&&!l[0]&&!y?A.c=A.e=A.s=null:(A.s*=f.s,y&&l?(A.c=[0],A.e=0):A.c=A.e=null),A;for(t=s(f.e/14)+s(A.e/14),A.s*=f.s,(C=y.length)<(E=l.length)&&(c=y,y=l,l=c,e=C,C=E,E=e),e=C+E,c=[];e--;c.push(0));for(u=a,1e7,e=E;--e>=0;){for(g=0,Q=l[e]%1e7,h=l[e]/1e7|0,i=e+(r=C);i>e;)g=((o=Q*(o=y[--r]%1e7)+(n=h*o+(B=y[r]/1e7|0)*Q)%1e7*1e7+c[i]+g)/u|0)+(n/1e7|0)+h*B,c[i--]=o%u;c[i]=g}return g?++t:c.splice(0,1),T(A,c,t)},S.negated=function(){var A=new J(this);return A.s=-A.s||null,A},S.plus=function(A,I){var g,t=this,e=t.s;if(I=(A=new J(A,I)).s,!e||!I)return new J(NaN);if(e!=I)return A.s=-I,t.minus(A);var i=t.e/14,r=A.e/14,n=t.c,C=A.c;if(!i||!r){if(!n||!C)return new J(e/0);if(!n[0]||!C[0])return C[0]?A:new J(n[0]?t:0*e)}if(i=s(i),r=s(r),n=n.slice(),e=i-r){for(e>0?(r=i,g=C):(e=-e,g=n),g.reverse();e--;g.push(0));g.reverse()}for((e=n.length)-(I=C.length)<0&&(g=C,C=n,n=g,I=e),e=0;I;)e=(n[--I]=n[I]+C[I]+e)/a|0,n[I]=a===n[I]?0:n[I]%a;return e&&(n=[e].concat(n),++r),T(A,n,r)},S.precision=S.sd=function(A,I){var g,t,e,i=this;if(null!=A&&A!==!!A)return u(A,1,Q),null==I?I=m:u(I,0,8),x(new J(i),A,I);if(!(g=i.c))return null;if(t=14*(e=g.length-1)+1,e=g[e]){for(;e%10==0;e/=10,t--);for(e=g[0];e>=10;e/=10,t++);}return A&&i.e+1>t&&(t=i.e+1),t},S.shiftedBy=function(A){return u(A,-9007199254740991,9007199254740991),this.times("1e"+A)},S.squareRoot=S.sqrt=function(){var A,I,t,e,i,r=this,n=r.c,C=r.s,o=r.e,B=G+4,a=new J("0.5");if(1!==C||!n||!n[0])return new J(!C||C<0&&(!n||n[0])?NaN:n?r:1/0);if(0==(C=Math.sqrt(+V(r)))||C==1/0?(((I=h(n)).length+o)%2==0&&(I+="0"),C=Math.sqrt(+I),o=s((o+1)/2)-(o<0||o%2),t=new J(I=C==1/0?"1e"+o:(I=C.toExponential()).slice(0,I.indexOf("e")+1)+o)):t=new J(C+""),t.c[0])for((C=(o=t.e)+B)<3&&(C=0);;)if(i=t,t=a.times(i.plus(g(r,i,B,1))),h(i.c).slice(0,C)===(I=h(t.c)).slice(0,C)){if(t.e<o&&--C,"9999"!=(I=I.slice(C-3,C+1))&&(e||"4999"!=I)){+I&&(+I.slice(1)||"5"!=I.charAt(0))||(x(t,t.e+G+2,1),A=!t.times(t).eq(r));break}if(!e&&(x(i,i.e+G+2,0),i.times(i).eq(r))){t=i;break}B+=4,C+=4,e=1}return x(t,t.e+G+1,m,A)},S.toExponential=function(A,I){return null!=A&&(u(A,0,Q),A++),K(this,A,I,1)},S.toFixed=function(A,I){return null!=A&&(u(A,0,Q),A=A+this.e+1),K(this,A,I)},S.toFormat=function(A,I,g){var t,e=this;if(null==g)null!=A&&I&&"object"==typeof I?(g=I,I=null):A&&"object"==typeof A?(g=A,A=I=null):g=H;else if("object"!=typeof g)throw Error(o+"Argument not an object: "+g);if(t=e.toFixed(A,I),e.c){var i,r=t.split("."),n=+g.groupSize,C=+g.secondaryGroupSize,B=g.groupSeparator||"",a=r[0],E=r[1],Q=e.s<0,s=Q?a.slice(1):a,h=s.length;if(C&&(i=n,n=C,C=i,h-=i),n>0&&h>0){for(i=h%n||n,a=s.substr(0,i);i<h;i+=n)a+=B+s.substr(i,n);C>0&&(a+=B+s.slice(i)),Q&&(a="-"+a)}t=E?a+(g.decimalSeparator||"")+((C=+g.fractionGroupSize)?E.replace(new RegExp("\\d{"+C+"}\\B","g"),"$&"+(g.fractionGroupSeparator||"")):E):a}return(g.prefix||"")+t+(g.suffix||"")},S.toFraction=function(A){var I,t,e,i,r,n,C,B,a,Q,s,c,u=this,f=u.c;if(null!=A&&(!(C=new J(A)).isInteger()&&(C.c||1!==C.s)||C.lt(U)))throw Error(o+"Argument "+(C.isInteger()?"out of range: ":"not an integer: ")+V(C));if(!f)return new J(u);for(I=new J(U),a=t=new J(U),e=B=new J(U),c=h(f),r=I.e=c.length-u.e-1,I.c[0]=E[(n=r%14)<0?14+n:n],A=!A||C.comparedTo(I)>0?r>0?I:a:C,n=M,M=1/0,C=new J(c),B.c[0]=0;Q=g(C,I,0,1),1!=(i=t.plus(Q.times(e))).comparedTo(A);)t=e,e=i,a=B.plus(Q.times(i=a)),B=i,I=C.minus(Q.times(i=I)),C=i;return i=g(A.minus(t),e,0,1),B=B.plus(i.times(a)),t=t.plus(i.times(e)),B.s=a.s=u.s,s=g(a,e,r*=2,m).minus(u).abs().comparedTo(g(B,t,r,m).minus(u).abs())<1?[a,e]:[B,t],M=n,s},S.toNumber=function(){return+V(this)},S.toPrecision=function(A,I){return null!=A&&u(A,1,Q),K(this,A,I,2)},S.toString=function(A){var I,g=this,e=g.s,i=g.e;return null===i?e?(I="Infinity",e<0&&(I="-"+I)):I="NaN":(null==A?I=i<=k||i>=Y?y(h(g.c),i):l(h(g.c),i,"0"):10===A?I=l(h((g=x(new J(g),G+i+1,m)).c),g.e,"0"):(u(A,2,L.length,"Base"),I=t(l(h(g.c),i,"0"),10,A,e,!0)),e<0&&g.c[0]&&(I="-"+I)),I},S.valueOf=S.toJSON=function(){return V(this)},S._isBigNumber=!0,null!=I&&J.set(I),J}()).default=i.BigNumber=i,void 0===(t=function(){return i}.call(I,g,I,A))||(A.exports=t)}()},19:function(A,I){var g,t,e=A.exports={};function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function n(A){if(g===setTimeout)return setTimeout(A,0);if((g===i||!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:i}catch(A){g=i}try{t="function"==typeof clearTimeout?clearTimeout:r}catch(A){t=r}}();var C,o=[],B=!1,a=-1;function E(){B&&C&&(B=!1,C.length?o=C.concat(o):a=-1,o.length&&Q())}function Q(){if(!B){var A=n(E);B=!0;for(var I=o.length;I;){for(C=o,o=[];++a<I;)C&&C[a].run();a=-1,I=o.length}C=null,B=!1,function(A){if(t===clearTimeout)return clearTimeout(A);if((t===r||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(A);try{t(A)}catch(I){try{return t.call(null,A)}catch(I){return t.call(this,A)}}}(A)}}function s(A,I){this.fun=A,this.array=I}function h(){}e.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||n(Q)},s.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.prependListener=h,e.prependOnceListener=h,e.listeners=function(A){return[]},e.binding=function(A){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(A){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},2:function(A,I){A.exports=function(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}},20:function(A,I,g){"use strict";g.d(I,"a",(function(){return D})),g.d(I,"b",(function(){return d}));var t=g(14),e=g.n(t),i=g(6);function r(A,I){var g;if("undefined"==typeof Symbol||null==A[Symbol.iterator]){if(Array.isArray(A)||(g=function(A,I){if(!A)return;if("string"==typeof A)return n(A,I);var g=Object.prototype.toString.call(A).slice(8,-1);"Object"===g&&A.constructor&&(g=A.constructor.name);if("Map"===g||"Set"===g)return Array.from(A);if("Arguments"===g||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return n(A,I)}(A))||I&&A&&"number"==typeof A.length){g&&(A=g);var t=0,e=function(){};return{s:e,n:function(){return t>=A.length?{done:!0}:{done:!1,value:A[t++]}},e:function(A){throw A},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r=!0,C=!1;return{s:function(){g=A[Symbol.iterator]()},n:function(){var A=g.next();return r=A.done,A},e:function(A){C=!0,i=A},f:function(){try{r||null==g.return||g.return()}finally{if(C)throw i}}}}function n(A,I){(null==I||I>A.length)&&(I=A.length);for(var g=0,t=new Array(I);g<I;g++)t[g]=A[g];return t}
/**
 * File signatures and extractor functions
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 *
 */var C={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 i.a(A.slice(I));for(;g.hasMore();){var t=g.getBytes(2);if(255!==t[0])throw new Error(`Invalid marker while parsing JPEG at pos ${g.position}: ${t}`);var e=0;switch(t[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:e=g.readInt(2,"be"),g.position+=e-2;break;case 223:g.position++;break;case 220:case 221:g.position+=2;break;case 218:e=g.readInt(2,"be"),g.position+=e-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 i.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 i.a(A.slice(I));g.moveForwardsBy(8);var t=0,e="";for(;"IEND"!==e;)t=g.readInt(4,"be"),e=g.readString(4),g.moveForwardsBy(t+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 i.a(A.slice(I));g.moveForwardsBy(2);var t=g.readInt(4,"le");return g.moveForwardsBy(t-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 i.a(A.slice(I));g.moveTo(4);var t=g.readInt(2,"le");g.moveForwardsBy(8+16*(t-1));var e=g.readInt(4,"le"),r=g.readInt(4,"le");return g.moveTo(r+e),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},{name:"Targa Image",extension:"tga",mime:"image/x-targa",description:"",signature:[{0:84,1:82,2:85,3:69,4:86,5:73,6:83,7:73,8:79,9:78,10:45,11:88,12:70,13:73,14:76,15:69,16:46}],extractor:function(A,I){var g=new i.a(A);g.moveTo(I-8);var t=g.readInt(4,"le"),e=g.readInt(4,"le");function r(A,I){for(var t=0;t<A;t++){g.moveBackwardsBy(1);var e=g.readInt(I,"le")-1;if(g.moveBackwardsBy(I),e===t)break}}g.moveBackwardsBy(8),t||e?t?(r(65535,2),g.moveBackwardsBy(t)):e&&(r(4294967295,4),g.moveBackwardsBy(6),g.moveBackwardsBy(e)):(!function(){g.moveBackwardsBy(5);for(var A=0;A<1048576;A++){if(g.readInt(2,"le")*g.readInt(2,"le")*g.readInt(1)/8===A-1)break;g.moveBackwardsBy(6)}}(),g.moveBackwardsBy(17));return g.carve(g.position,I+18)}}],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 i.a(A.slice(I));g.moveForwardsBy(5);var t=g.readInt(4,"be");g.moveForwardsBy(t-9);var e=-11;for(;g.hasMore();){var r=g.readInt(4,"be"),n=g.readInt(1);if([8,9,18].indexOf(n)<0){g.moveBackwardsBy(1);break}if(r!==e+11){g.moveBackwardsBy(e+11+5);break}e=g.readInt(3,"be"),g.moveForwardsBy(7+e)}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 i.a(A.slice(I));return g.moveTo(4),g.moveTo(g.readInt(4,"le")+8),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:function(A,I){var g=new i.a(A.slice(I)),t=["free",32e3,4e4,48e3,56e3,64e3,8e4,96e3,112e3,128e3,16e4,192e3,224e3,256e3,32e4,"bad"],e=[44100,48e3,32e3,"reserved"];if(g.getBytes(3).toString()===[73,68,51].toString()){g.moveTo(6);var r=g.readInt(1)<<21|g.readInt(1)<<14|g.readInt(1)<<7|g.readInt(1);g.moveForwardsBy(r)}else g.moveTo(0);for(;g.hasMore();){if(g.getBytes(3)===[84,65,71].toString()){g.moveForwardsBy(125);break}if(g.getBytes(2).toString()!==[255,251].toString()){g.moveBackwardsBy(2);break}var n=g.readInt(1),C=t[n>>4],o=e[(15&n)>>2],B=(2&n)>>1;if("free"===C||"bad"===C||"reserved"===o){g.moveBackwardsBy(1);break}var a=Math.floor(144*C/o+B);if(g.position+a>g.length){g.moveTo(g.length);break}g.moveForwardsBy(a-3)}return g.carve()}},{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 i.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 i.a(A.slice(I)),t=0;if(123!==g.readInt(1))throw new Error("Not a valid RTF file");t++;for(;t>0&&g.hasMore();)switch(g.readInt(1)){case 123:t++;break;case 125:t--;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:o},{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:o}],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 i.a(A.slice(I));g.moveTo(60);var t=g.readInt(4,"le");g.moveTo(t),g.moveForwardsBy(6);var e=g.readInt(2,"le");g.moveForwardsBy(16);var r=523===g.readInt(2,"le")?112:96;g.moveForwardsBy(r-2),g.moveForwardsBy(32);var n=g.readInt(4,"le"),C=g.readInt(4,"le");if(n>0)return g.moveTo(n+C),g.carve();g.moveForwardsBy(88),g.moveForwardsBy(40*(e-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 i.a(A.slice(I));g.moveForwardsBy(4);var t=1===g.readInt(1),e=1===g.readInt(1)?"le":"be";g.moveForwardsBy(t?26:34);var r=t?g.readInt(4,e):g.readInt(8,e);g.moveForwardsBy(10);var n=g.readInt(2,e),C=g.readInt(2,e);return g.moveTo(r),g.moveForwardsBy(n*C),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:B},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:B},{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:o},{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 i.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 t=0;g.getBytes(11).forEach((function(A,I){t+=(A-48).toString()})),t=512*Math.ceil(parseInt(t,8)/512),g.moveForwardsBy(t+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 i.a(A.slice(I));g.moveForwardsBy(3);var t=g.readInt(1);if(g.moveForwardsBy(4),g.readInt(1),g.moveForwardsBy(1),4&t){var e=g.readInt(2,"le");g.moveForwardsby(e)}8&t&&(g.continueUntil(0),g.moveForwardsBy(1));16&t&&(g.continueUntil(0),g.moveForwardsBy(1));2&t&&g.moveForwardsBy(2);return c(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 i.a(A.slice(I)),t=[[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]],e=0;e<t.length&&(g.continueUntil(t[e]),g.getBytes(5).join("")!==t[e].join(""));e++)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 i.a(A.slice(I));g.moveForwardsBy(1),32&g.readInt(1)&&g.moveForwardsBy(4);return c(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 i.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:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:80,1:75,2:3,3:4,4:20,5:0,6:8,7:0,8:8,9:0},extractor:o},{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:function(A,I){var g=new i.a(A.slice(I)),t=0,e=0;g.moveForwardsBy(9);var r=g.readInt(2,"be");g.moveForwardsBy(6);var n=g.readInt(4,"be");2048&r&&g.moveForwardsBy(4);2&n&&t++;512&n&&t++;1&n&&e++;256&n&&e++;g.moveForwardsBy(8),r>=2368&&g.moveForwardsBy(4);var C=g.readInt(1,"be");if(g.moveForwardsBy(C),64&n){var o=g.readInt(4,"be");g.moveForwardsBy(o)}g.moveForwardsBy(4);for(;g.hasMore();){var B=g.readInt(4,"be");if(0===B)break;var a=g.readInt(4,"be"),E=B===a?e:e+t;g.moveForwardsBy(a+4*E)}return g.carve()}},{name:"Linux deb package",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:function(A,I){var g=new i.a(A.slice(I));g.moveForwardsBy(8);for(;g.hasMore();){g.moveForwardsBy(48);var t,e="",n=r(g.getBytes(10));try{for(n.s();!(t=n.n()).done;){var C=t.value;e+=String.fromCharCode(C)}}catch(A){n.e(A)}finally{n.f()}e=parseInt(e.trim(),10),g.moveForwardsBy(2),g.moveForwardsBy(e)}return g.carve()}},{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 i.a(A.slice(I));g.moveTo(16);var t=g.readInt(2);g.moveTo(28);var e=g.readInt(4);return g.moveTo(t*e),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 i.a(A.slice(I));g.moveTo(20);var t=g.readInt(4,"le");g.moveTo(t);var e=g.readInt(4,"le");return g.moveForwardsBy(e-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 i.a(A.slice(I));g.moveTo(40);var t=g.readInt(4,"le")-44;g.moveForwardsBy(t);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:function(A,I){var g=new i.a(A.slice(I));return g.moveTo(112),g.moveTo(4096*(g.readInt(4,"le")+1)),g.carve()}},{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:function(A,I){var g=new i.a(A.slice(I));return g.moveTo(12),g.moveTo(g.readInt(4,"be")),g.carve()}},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:function(A,I){var g=new i.a(A.slice(I));return g.moveTo(g.readInt(4,"be")),g.carve()}},{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 i.a(A.slice(I)),t=0;g.continueUntil([60,112,108,105,115,116]),g.moveForwardsBy(6),t++;for(;t>0&&g.hasMore();)60===g.readInt(1)&&(g.getBytes(5).join("")===[112,108,105,115,116].join("")?t++:g.moveBackwardsBy(5),g.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?t--: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:function(A,I){var g=new i.a(A.slice(I));return g.moveTo(52),g.moveTo(g.readInt(4,"le")),g.carve()}},{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 o(A,I){var g=new i.a(A.slice(I));g.continueUntil([80,75,5,6]),g.moveForwardsBy(20);var t=g.readInt(2,"le");return g.moveForwardsBy(t),g.carve()}function B(A,I){var g=new i.a(A.slice(I)),t=g.getBytes(4).join("");return g.moveTo(function(A,I,g){var t=28;I&&(t+=4),A.moveTo(16);var e=A.readInt(4,g);return function(A,I,g,t){for(var e=0,i=0;i<t;i++){A.moveTo(I);var r=A.readInt(4,g);25===r?(A.moveTo(I+48),e+=A.readInt(8,g),A.moveTo(I+4),I+=A.readInt(4,g)):1===r&&(A.moveTo(I+36),e+=A.readInt(4,g),A.moveTo(I+4),I+=A.readInt(4,g))}return e}(A,t,g,e)}(g,function(A){return"207250237254"===A||"254237250207"===A}(t),function(A){return"206250237254"===A||"207250237254"===A}(t)?"le":"be")),g.carve()}for(var a=new Array(288),E=0;E<a.length;E++)a[E]=E<=143?8:E<=255?9:E<=279?7:8;var Q=l(a),s=l(new Array(30).fill(5)),h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function c(A){for(var I=0;!I;){I=A.readBits(1);var g=A.readBits(2);if(0===g){A.moveForwardsBy(1);var t=A.readInt(2,"le");A.moveForwardsBy(2+t)}else if(1===g)y(A,Q,s);else{if(2!==g)throw new Error("Invalid block type while parsing DEFLATE stream at pos "+A.position);for(var e=A.readBits(5)+257,i=A.readBits(5)+1,r=A.readBits(4)+4,n=new Uint8Array(h.length),C=0;C<r;C++)n[h[C]]=A.readBits(3);for(var o=l(n),B=new Uint8Array(e+i),a=void 0,E=void 0,c=void 0,u=0;u<e+i;)switch(a=w(A,o)){case 16:for(E=3+A.readBits(2);E--;)B[u++]=c;break;case 17:for(E=3+A.readBits(3);E--;)B[u++]=0;c=0;break;case 18:for(E=11+A.readBits(7);E--;)B[u++]=0;c=0;break;default:B[u++]=a,c=a}y(A,l(B.subarray(0,e)),l(B.subarray(e)))}}A.bitPos>0&&A.moveForwardsBy(1)}var u=[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],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];function y(A,I,g){for(var t,e=0;(t=w(A,I))&&256!==t;){if(++e>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");t<256||(A.readBits(u[t-257]),t=w(A,g),A.readBits(f[t]))}}function l(A){for(var I=Math.max.apply(Math,A),g=Math.min.apply(Math,A),t=1<<I,e=new Uint32Array(t),i=1,r=0,n=2;i<=I;){for(var C=0;C<A.length;C++)if(A[C]===i){var o=void 0,B=void 0,a=void 0;for(o=0,B=r,a=0;a<i;a++)o=o<<1|1&B,B>>=1;for(var E=i<<16|C,Q=o;Q<t;Q+=n)e[Q]=E;r++}i++,r<<=1,n<<=1}return[e,I,g]}function w(A,I){var g=e()(I,2),t=g[0],i=g[1],r=t[A.readBits(i)&(1<<i)-1],n=r>>>16;if(n>i)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${A.position}: ${n}`);return A.moveBackwardsByBits(i-n),65535&r}g(1);
/**
 * File type functions
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 *
 */function F(A,I){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(A.length){for(var t=0;t<A.length;t++)if(p(A[t],I,g))return!0;return!1}return p(A,I,g)}function p(A,I){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(var t in A){var e=parseInt(t,10)+g;switch(typeof A[t]){case"number":if(I[e]!==A[t])return!1;break;case"object":if(A[t].indexOf(I[e])<0)return!1;break;case"function":if(!A[t](I[e]))return!1;break;default:throw new Error("Unrecognised signature type at offset "+t)}}return!0}function D(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(C);if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),!(A&&A.length>1))return[];var g=[],t={};for(var e in C)I.includes(e)&&(t[e]=C[e]);for(var i in t){var r=t[i];r.forEach((function(I){F(I.signature,A)&&g.push(I)}))}return g}function d(A){return function(A,I){var g=D(I);if(!g||!g.length)return!1;if("string"==typeof A)return g.reduce((function(I,g){var t=!!g.mime.startsWith(A)&&g.mime;return I||t}),!1);if(A instanceof RegExp)return g.reduce((function(I,g){var t=!!A.test(g.mime)&&g.mime;return I||t}),!1);throw new Error("Invalid type input.")}("image",A)}},21:function(A,I,g){"use strict";g.d(I,"b",(function(){return e})),g.d(I,"c",(function(){return i})),g.d(I,"a",(function(){return r}));var t=g(1);
/**
 * Hexadecimal 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]:" ",g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!A)return"";A instanceof ArrayBuffer&&(A=new Uint8Array(A));for(var i="",r="0x"===I||"\\x"===I,n=0;n<A.length;n++){var C=A[n].toString(16).padStart(g,"0");i+=r?I+C:C+I,t&&(i+=t),n!==A.length-1&&(n+1)%e==0&&(i+="\n")}var o=t.length+(r?0:I.length);return o?i.slice(0,-o):i}function i(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 e="Auto"===I?/[^a-f\d]|(0x)/gi:t.b.regexRep(I);A=A.replace(e,"")}for(var i=[],r=0;r<A.length;r+=g)i.push(parseInt(A.substr(r,g),16));return i}["Auto"].concat(["Space","Percent","Comma","Semi-colon","Colon","Line feed","CRLF","0x","0x with comma","\\x","None"])},24: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},25: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}},26:function(A,I,g){!function(A){var I,g,t,e=String.fromCharCode;function i(A){for(var I,g,t=[],e=0,i=A.length;e<i;)(I=A.charCodeAt(e++))>=55296&&I<=56319&&e<i?56320==(64512&(g=A.charCodeAt(e++)))?t.push(((1023&I)<<10)+(1023&g)+65536):(t.push(I),e--):t.push(I);return t}function r(A){if(A>=55296&&A<=57343)throw Error("Lone surrogate U+"+A.toString(16).toUpperCase()+" is not a scalar value")}function n(A,I){return e(A>>I&63|128)}function C(A){if(0==(4294967168&A))return e(A);var I="";return 0==(4294965248&A)?I=e(A>>6&31|192):0==(4294901760&A)?(r(A),I=e(A>>12&15|224),I+=n(A,6)):0==(4292870144&A)&&(I=e(A>>18&7|240),I+=n(A,12),I+=n(A,6)),I+=e(63&A|128)}function o(){if(t>=g)throw Error("Invalid byte index");var A=255&I[t];if(t++,128==(192&A))return 63&A;throw Error("Invalid continuation byte")}function B(){var A,e;if(t>g)throw Error("Invalid byte index");if(t==g)return!1;if(A=255&I[t],t++,0==(128&A))return A;if(192==(224&A)){if((e=(31&A)<<6|o())>=128)return e;throw Error("Invalid continuation byte")}if(224==(240&A)){if((e=(15&A)<<12|o()<<6|o())>=2048)return r(e),e;throw Error("Invalid continuation byte")}if(240==(248&A)&&(e=(7&A)<<18|o()<<12|o()<<6|o())>=65536&&e<=1114111)return e;throw Error("Invalid UTF-8 detected")}A.version="3.0.0",A.encode=function(A){for(var I=i(A),g=I.length,t=-1,e="";++t<g;)e+=C(I[t]);return e},A.decode=function(A){I=i(A),g=I.length,t=0;for(var r,n=[];!1!==(r=B());)n.push(r);return function(A){for(var I,g=A.length,t=-1,i="";++t<g;)(I=A[t])>65535&&(i+=e((I-=65536)>>>10&1023|55296),I=56320|1023&I),i+=e(I);return i}(n)}}(I)},27:function(A,I,g){var t,e;!function(i,r){"use strict";void 0===(e="function"==typeof(t=function(){var A=function(){},I="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),g=["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 i(g){return"debug"===g&&(g="log"),"undefined"!=typeof console&&("trace"===g&&I?e:void 0!==console[g]?t(console,g):void 0!==console.log?t(console,"log"):A)}function r(I,t){for(var e=0;e<g.length;e++){var i=g[e];this[i]=e<I?A:this.methodFactory(i,I,t)}this.log=this.debug}function n(A,I,g){return function(){"undefined"!=typeof console&&(r.call(this,I,g),this[A].apply(this,arguments))}}function C(A,I,g){return i(A)||n.apply(this,arguments)}function o(A,I,t){var e,i=this,n="loglevel";function o(){var A;if("undefined"!=typeof window){try{A=window.localStorage[n]}catch(A){}if(void 0===A)try{var I=window.document.cookie,g=I.indexOf(encodeURIComponent(n)+"=");-1!==g&&(A=/^([^;]+)/.exec(I.slice(g))[1])}catch(A){}return void 0===i.levels[A]&&(A=void 0),A}}A&&(n+=":"+A),i.name=A,i.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},i.methodFactory=t||C,i.getLevel=function(){return e},i.setLevel=function(I,t){if("string"==typeof I&&void 0!==i.levels[I.toUpperCase()]&&(I=i.levels[I.toUpperCase()]),!("number"==typeof I&&I>=0&&I<=i.levels.SILENT))throw"log.setLevel() called with invalid level: "+I;if(e=I,!1!==t&&function(A){var I=(g[A]||"silent").toUpperCase();if("undefined"!=typeof window){try{return void(window.localStorage[n]=I)}catch(A){}try{window.document.cookie=encodeURIComponent(n)+"="+I+";"}catch(A){}}}(I),r.call(i,I,A),"undefined"==typeof console&&I<i.levels.SILENT)return"No console available for logging"},i.setDefaultLevel=function(A){o()||i.setLevel(A,!1)},i.enableAll=function(A){i.setLevel(i.levels.TRACE,A)},i.disableAll=function(A){i.setLevel(i.levels.SILENT,A)};var B=o();null==B&&(B=null==I?"WARN":I),i.setLevel(B,!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="undefined"!=typeof window?window.log:void 0;return B.noConflict=function(){return"undefined"!=typeof window&&window.log===B&&(window.log=E),B},B.getLoggers=function(){return a},B})?t.call(I,g,I,A):t)||(A.exports=e)}()},28:function(A,I,g){"use strict";g.d(I,"a",(function(){return e}));var t=g(1);
/**
 * Binary functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */function e(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Space",g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,e=t.b.regexRep(I);A=A.replace(e,"");for(var i=[],r=0;r<A.length;r+=g)i.push(parseInt(A.substr(r,g),2));return i}},29:function(A,I,g){"use strict";g.d(I,"a",(function(){return e}));var t=g(1);
/**
 * Decimal functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */function e(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto";I=t.b.charRep(I);var g=[],e=A.split(I);""===e[e.length-1]&&(e=e.slice(0,e.length-1));for(var i=0;i<e.length;i++)g[i]=parseInt(e[i],10);return g}},3:function(A,I){function g(A,I){for(var g=0;g<I.length;g++){var t=I[g];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(A,t.key,t)}}A.exports=function(A,I,t){return I&&g(A.prototype,I),t&&g(A,t),A}},385: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,t=this;function e(A,g){var e,i=A.split("."),r=t;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(e=i.shift());)i.length||g===I?r=r[e]?r[e]:r[e]={}:r[e]=g}var i="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(i?Uint8Array:Array)?I:new(i?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,t=new(i?Uint8Array:Array)(g<<1);if(i)t.set(I);else for(A=0;A<g;++A)t[A]=I[A];return this.buffer=t},r.prototype.d=function(A,I,g){var t,e=this.buffer,i=this.index,r=this.m,n=e[i];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)n=n<<I|A,r+=I;else for(t=0;t<I;++t)n=n<<1|A>>I-t-1&1,8==++r&&(r=0,e[i++]=E[n],n=0,i===e.length&&(e=this.f()));e[i]=n,this.buffer=e,this.m=r,this.index=i},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++),i?A=I.subarray(0,g):(I.length=g,A=I),A};var n,C=new(i?Uint8Array:Array)(256);for(n=0;256>n;++n){for(var o=a=n,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;C[n]=(o<<B&255)>>>0}var E=C;function Q(A,I,g){var t,e="number"==typeof I?I:I=0,i="number"==typeof g?g:A.length;for(t=-1,e=7&i;e--;++I)t=t>>>8^h[255&(t^A[I])];for(e=i>>3;e--;I+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^h[255&(t^A[I])])>>>8^h[255&(t^A[I+1])])>>>8^h[255&(t^A[I+2])])>>>8^h[255&(t^A[I+3])])>>>8^h[255&(t^A[I+4])])>>>8^h[255&(t^A[I+5])])>>>8^h[255&(t^A[I+6])])>>>8^h[255&(t^A[I+7])];return(4294967295^t)>>>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=i?new Uint32Array(s):s;function c(){}function u(A){this.buffer=new(i?Uint16Array:Array)(2*A),this.length=0}function f(A){var I,g,t,e,r,n,C,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(n=0,C=e,B=0;B<t;++B)n=n<<1|1&C,C>>=1;for(a=t<<16|o,B=n;B<I;B+=r)g[B]=a;++e}++t,e<<=1,r<<=1}return[g,Q,s]}function y(A,I){this.k=w,this.I=0,this.input=i&&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=i&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.b=I.outputIndex)),this.a||(this.a=new(i?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,t,e,i=this.buffer;for(g=this.length,i[this.length++]=I,i[this.length++]=A;0<g&&(t=this.getParent(g),i[g]>i[t]);)e=i[g],i[g]=i[t],i[t]=e,e=i[g+1],i[g+1]=i[t+1],i[t+1]=e,g=t;return this.length},u.prototype.pop=function(){var A,I,g,t,e,i=this.buffer;for(I=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],e=0;!((t=2*e+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[e]);)g=i[e],i[e]=i[t],i[t]=g,g=i[e+1],i[e+1]=i[t+1],i[t+1]=g,e=t;return{index:A,value:I,length:this.length}};var l,w=2,F={NONE:0,v:1,o:w,aa:3},p=[];for(l=0;288>l;l++)switch(!0){case 143>=l:p.push([l+48,8]);break;case 255>=l:p.push([l-144+400,9]);break;case 279>=l:p.push([l-256+0,7]);break;case 287>=l:p.push([l-280+192,8]);break;default:A("invalid literal: "+l)}function D(A,I){this.length=A,this.P=I}y.prototype.g=function(){var t,e,n,C,o=this.input;switch(this.k){case 0:for(n=0,C=o.length;n<C;){var B,a,E,Q=e=i?o.subarray(n,n+65535):o.slice(n,n+65535),s=(n+=e.length)===C,h=I,c=I,u=this.a,f=this.b;if(i){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,i)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(i?new Uint8Array(this.a.buffer):this.a,this.b);y.d(1,1,g),y.d(1,2,g);var l,F,D,d=U(this,o);for(l=0,F=d.length;l<F;l++)if(D=d[l],r.prototype.d.apply(y,p[D]),256<D)y.d(d[++l],d[++l],g),y.d(d[++l],5),y.d(d[++l],d[++l],g);else if(256===D)break;this.a=y.finish(),this.b=this.a.length;break;case w:var S,G,Y,R,M,N,b,v,H,L,J,K,q,T,x,V=new r(i?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],O=Array(19);for(S=w,V.d(1,1,g),V.d(S,2,g),G=U(this,o),b=k(N=m(this.V,15)),H=k(v=m(this.U,7)),Y=286;257<Y&&0===N[Y-1];Y--);for(R=30;1<R&&0===v[R-1];R--);var Z,j,X,P,z,_,$=Y,AA=R,IA=new(i?Uint32Array:Array)($+AA),gA=new(i?Uint32Array:Array)(316),tA=new(i?Uint8Array:Array)(19);for(Z=j=0;Z<$;Z++)IA[j++]=N[Z];for(Z=0;Z<AA;Z++)IA[j++]=v[Z];if(!i)for(Z=0,P=tA.length;Z<P;++Z)tA[Z]=0;for(Z=z=0,P=IA.length;Z<P;Z+=j){for(j=1;Z+j<P&&IA[Z+j]===IA[Z];++j);if(X=j,0===IA[Z])if(3>X)for(;0<X--;)gA[z++]=0,tA[0]++;else for(;0<X;)(_=138>X?X:138)>X-3&&_<X&&(_=X-3),10>=_?(gA[z++]=17,gA[z++]=_-3,tA[17]++):(gA[z++]=18,gA[z++]=_-11,tA[18]++),X-=_;else if(gA[z++]=IA[Z],tA[IA[Z]]++,3>--X)for(;0<X--;)gA[z++]=IA[Z],tA[IA[Z]]++;else for(;0<X;)(_=6>X?X:6)>X-3&&_<X&&(_=X-3),gA[z++]=16,gA[z++]=_-3,tA[16]++,X-=_}for(t=i?gA.subarray(0,z):gA.slice(0,z),L=m(tA,7),T=0;19>T;T++)O[T]=L[W[T]];for(M=19;4<M&&0===O[M-1];M--);for(J=k(L),V.d(Y-257,5,g),V.d(R-1,5,g),V.d(M-4,4,g),T=0;T<M;T++)V.d(O[T],3,g);for(T=0,x=t.length;T<x;T++)if(K=t[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(t[T],q,g)}var eA,iA,rA,nA,CA,oA,BA,aA,EA=[b,N],QA=[H,v];for(CA=EA[0],oA=EA[1],BA=QA[0],aA=QA[1],eA=0,iA=G.length;eA<iA;++eA)if(rA=G[eA],V.d(CA[rA],oA[rA],g),256<rA)V.d(G[++eA],G[++eA],g),nA=G[++eA],V.d(BA[nA],aA[nA],g),V.d(G[++eA],G[++eA],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 d=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,t,e=[];for(g=3;258>=g;g++)t=I(g),e[g]=t[2]<<24|t[1]<<16|t[0];return e}(),S=i?new Uint32Array(d):d;function U(g,t){function e(I,g){var t,e,i,r,n=I.P,C=[],o=0;switch(t=S[I.length],C[o++]=65535&t,C[o++]=t>>16&255,C[o++]=t>>24,!0){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,C[o++]=t[0],C[o++]=t[1],C[o++]=t[2],i=0,r=C.length;i<r;++i)c[u++]=C[i];y[C[0]]++,l[C[3]]++,f=I.length+g-1,Q=null}var r,n,C,o,B,a,E,Q,s,h={},c=i?new Uint16Array(2*t.length):[],u=0,f=0,y=new(i?Uint32Array:Array)(286),l=new(i?Uint32Array:Array)(30),w=g.I;if(!i){for(C=0;285>=C;)y[C++]=0;for(C=0;29>=C;)l[C++]=0}for(y[256]=1,r=0,n=t.length;r<n;++r){for(C=B=0,o=3;C<o&&r+C!==n;++C)B=B<<8|t[r+C];if(h[B]===I&&(h[B]=[]),a=h[B],!(0<f--)){for(;0<a.length&&32768<r-a[0];)a.shift();if(r+3>=n){for(Q&&e(Q,-1),C=0,o=n-r;C<o;++C)s=t[r+C],c[u++]=s,++y[s];break}0<a.length?(E=G(t,r,a),Q?Q.length<E.length?(s=t[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=t[r],c[u++]=s,++y[s])}a.push(r)}return c[u++]=256,y[256]++,g.V=y,g.U=l,i?c.subarray(0,u):c}function G(A,I,g){var t,e,i,r,n,C,o=0,B=A.length;r=0,C=g.length;A:for(;r<C;r++){if(t=g[C-r-1],i=3,3<o){for(n=o;3<n;n--)if(A[t+n-1]!==A[I+n-1])continue A;i=o}for(;258>i&&I+i<B&&A[t+i]===A[I+i];)++i;if(i>o&&(e=t,o=i),258===i)break}return new D(o,I-e)}function m(A,I){var g,t,e,r,n,C=A.length,o=new u(572),B=new(i?Uint8Array:Array)(C);if(!i)for(r=0;r<C;r++)B[r]=0;for(r=0;r<C;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),t=new(i?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,n=o.length/2;r<n;++r)g[r]=o.pop(),t[r]=g[r].value;for(e=function(A,I,g){function t(A){var g=s[A][h[A]];g===I?(t(A+1),t(A+1)):--E[g],++h[A]}var e,r,n,C,o,B=new(i?Uint16Array:Array)(g),a=new(i?Uint8Array:Array)(g),E=new(i?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(n=0;n<B[g-1];++n)Q[g-1][n]=A[n],s[g-1][n]=n;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(C=e=0,o=h[r+1],n=0;n<B[r];n++)(C=Q[r+1][o]+Q[r+1][o+1])>A[e]?(Q[r][n]=C,s[r][n]=I,o+=2):(Q[r][n]=A[e],s[r][n]=e,++e);h[r]=0,1===a[r]&&t(r)}return E}(t,t.length,I),r=0,n=g.length;r<n;++r)B[g[r].index]=e[r];return B}function k(A){var I,g,t,e,r=new(i?Uint16Array:Array)(A.length),n=[],C=[],o=0;for(I=0,g=A.length;I<g;I++)n[A[I]]=1+(0|n[A[I]]);for(I=1,g=16;I<=g;I++)C[I]=o,o+=0|n[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=C[A[I]],C[A[I]]+=1,t=r[I]=0,e=A[I];t<e;t++)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,t,e,r,n,C,o,B=new(i?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|=N),this.i.fcomment&&(A|=b),this.i.fhcrc&&(A|=M),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++]=R,this.i.fname!==I){for(C=0,o=h.length;C<o;++C)255<(n=h.charCodeAt(C))&&(B[a++]=n>>>8&255),B[a++]=255&n;B[a++]=0}if(this.i.comment){for(C=0,o=c.length;C<o;++C)255<(n=c.charCodeAt(C))&&(B[a++]=n>>>8&255),B[a++]=255&n;B[a++]=0}return this.i.fhcrc&&(t=65535&Q(B,0,a),B[a++]=255&t,B[a++]=t>>>8&255),this.l.outputBuffer=B,this.l.outputIndex=a,B=(r=new y(E,this.l)).g(),a=r.b,i&&(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,I,I),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.c=s,i&&a<B.length&&(this.a=B=B.subarray(0,a)),B};var R=255,M=2,N=8,b=16;function v(I,g){switch(this.p=[],this.q=32768,this.e=this.j=this.c=this.u=0,this.input=i?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(i?Uint8Array:Array)(32768+this.q+258);break;case L:this.b=0,this.a=new(i?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 t=eA(this,3);switch(1&t&&(this.w=g),t>>>=1){case 0:var e=this.input,r=this.c,n=this.a,C=this.b,o=e.length,B=I,a=n.length,E=I;switch(this.e=this.j=0,r+1>=o&&A(Error("invalid uncompressed block header: LEN")),B=e[r++]|e[r++]<<8,r+1>=o&&A(Error("invalid uncompressed block header: NLEN")),B===~(e[r++]|e[r++]<<8)&&A(Error("invalid uncompressed block header: length verify")),r+B>e.length&&A(Error("input buffer is broken")),this.r){case H:for(;C+B>n.length;){if(B-=E=a-C,i)n.set(e.subarray(r,r+E),C),C+=E,r+=E;else for(;E--;)n[C++]=e[r++];this.b=C,n=this.f(),C=this.b}break;case L:for(;C+B>n.length;)n=this.f({F:2});break;default:A(Error("invalid inflate mode"))}if(i)n.set(e.subarray(r,r+B),C),C+=B,r+=B;else for(;B--;)n[C++]=e[r++];this.c=r,this.b=C,this.a=n;break;case 1:this.s(IA,tA);break;case 2:var Q,s,h,c,u=eA(this,5)+257,y=eA(this,5)+1,l=eA(this,4)+4,w=new(i?Uint8Array:Array)(x.length),F=I,p=I,D=I,d=I,S=I;for(S=0;S<l;++S)w[x[S]]=eA(this,3);if(!i)for(S=l,l=w.length;S<l;++S)w[x[S]]=0;for(Q=f(w),F=new(i?Uint8Array:Array)(u+y),S=0,c=u+y;S<c;)switch(p=iA(this,Q),p){case 16:for(d=3+eA(this,2);d--;)F[S++]=D;break;case 17:for(d=3+eA(this,3);d--;)F[S++]=0;D=0;break;case 18:for(d=11+eA(this,7);d--;)F[S++]=0;D=0;break;default:D=F[S++]=p}s=f(i?F.subarray(0,u):F.slice(0,u)),h=f(i?F.subarray(u):F.slice(u)),this.s(s,h);break;default:A(Error("unknown BTYPE: "+t))}}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=i?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=i?new Uint16Array(V):V,O=[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],Z=i?new Uint8Array(O):O,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=i?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=i?new Uint8Array(P):P,_=new(i?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(i?Uint8Array:Array)(30);for($=0,AA=gA.length;$<AA;++$)gA[$]=5;var tA=f(gA);function eA(I,g){for(var t,e=I.j,i=I.e,r=I.input,n=I.c,C=r.length;i<g;)n>=C&&A(Error("input buffer is broken")),e|=r[n++]<<i,i+=8;return t=e&(1<<g)-1,I.j=e>>>g,I.e=i-g,I.c=n,t}function iA(I,g){for(var t,e,i=I.j,r=I.e,n=I.input,C=I.c,o=n.length,B=g[0],a=g[1];r<a&&!(C>=o);)i|=n[C++]<<r,r+=8;return(e=(t=B[i&(1<<a)-1])>>>16)>r&&A(Error("invalid code length: "+e)),I.j=i>>e,I.e=r-e,I.c=C,65535&t}function rA(A){this.input=A,this.c=0,this.t=[],this.D=!1}function nA(A){if("string"==typeof A){var I,g,t=A.split("");for(I=0,g=t.length;I<g;I++)t[I]=(255&t[I].charCodeAt(0))>>>0;A=t}for(var e,i=1,r=0,n=A.length,C=0;0<n;){n-=e=1024<n?1024:n;do{r+=i+=A[C++]}while(--e);i%=65521,r%=65521}return(r<<16|i)>>>0}function CA(I,g){var t,e;switch(this.input=I,this.c=0,!g&&(g={})||(g.index&&(this.c=g.index),g.verify&&(this.Z=g.verify)),t=I[this.c++],e=I[this.c++],15&t){case oA:this.method=oA;break;default:A(Error("unsupported compression method"))}0!=((t<<8)+e)%31&&A(Error("invalid fcheck flag:"+((t<<8)+e)%31)),32&e&&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,t=this.b;this.C=A;for(var e,i,r,n,C=g.length-258;256!==(e=iA(this,A));)if(256>e)t>=C&&(this.b=t,g=this.f(),t=this.b),g[t++]=e;else for(n=W[i=e-257],0<Z[i]&&(n+=eA(this,Z[i])),e=iA(this,I),r=X[e],0<z[e]&&(r+=eA(this,z[e])),t>=C&&(this.b=t,g=this.f(),t=this.b);n--;)g[t]=g[t++-r];for(;8<=this.e;)this.e-=8,this.c--;this.b=t},v.prototype.S=function(A,I){var g=this.a,t=this.b;this.C=A;for(var e,i,r,n,C=g.length;256!==(e=iA(this,A));)if(256>e)t>=C&&(C=(g=this.f()).length),g[t++]=e;else for(n=W[i=e-257],0<Z[i]&&(n+=eA(this,Z[i])),e=iA(this,I),r=X[e],0<z[e]&&(r+=eA(this,z[e])),t+n>C&&(C=(g=this.f()).length);n--;)g[t]=g[t++-r];for(;8<=this.e;)this.e-=8,this.c--;this.b=t},v.prototype.f=function(){var A,I,g=new(i?Uint8Array:Array)(this.b-32768),t=this.b-32768,e=this.a;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.p.push(g),this.u+=g.length,i)e.set(e.subarray(t,t+32768));else for(A=0;32768>A;++A)e[A]=e[t+A];return this.b=32768,e},v.prototype.T=function(A){var I,g,t,e=this.input.length/this.c+1|0,r=this.input,n=this.a;return A&&("number"==typeof A.F&&(e=A.F),"number"==typeof A.O&&(e+=A.O)),2>e?g=(t=(r.length-this.c)/this.C[2]/2*258|0)<n.length?n.length+t:n.length<<1:g=n.length*e,i?(I=new Uint8Array(g)).set(n):I=n,this.a=I},v.prototype.B=function(){var A,I,g,t,e,r=0,n=this.a,C=this.p,o=new(i?Uint8Array:Array)(this.u+(this.b-32768));if(0===C.length)return i?this.a.subarray(32768,this.b):this.a.slice(32768,this.b);for(I=0,g=C.length;I<g;++I)for(t=0,e=(A=C[I]).length;t<e;++t)o[r++]=A[t];for(I=32768,g=this.b;I<g;++I)o[r++]=n[I];return this.p=[],this.buffer=o},v.prototype.Q=function(){var A,I=this.b;return i?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 t=this.input.length;this.c<t;){var e,r,n=new c,C=I,o=I,B=I,a=I,E=I,s=I,h=I,u=this.input,f=this.c;switch(n.G=u[f++],n.H=u[f++],(31!==n.G||139!==n.H)&&A(Error("invalid file signature:"+n.G+","+n.H)),n.z=u[f++],n.z){case 8:break;default:A(Error("unknown compression method: "+n.z))}if(n.n=u[f++],r=u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24,n.Y=new Date(1e3*r),n.ea=u[f++],n.da=u[f++],0<(4&n.n)&&(n.$=u[f++]|u[f++]<<8,f+=n.$),0<(n.n&N)){for(s=[],E=0;0<(a=u[f++]);)s[E++]=String.fromCharCode(a);n.name=s.join("")}if(0<(n.n&b)){for(s=[],E=0;0<(a=u[f++]);)s[E++]=String.fromCharCode(a);n.A=s.join("")}0<(n.n&M)&&(n.R=65535&Q(u,0,f),n.R!==(u[f++]|u[f++]<<8)&&A(Error("invalid header crc16"))),C=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*C&&(B=C),o=new v(u,{index:f,bufferSize:B}),n.data=e=o.h(),f=o.c,n.ba=h=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,Q(e,I,I)!==h&&A(Error("invalid CRC-32 checksum: 0x"+Q(e,I,I).toString(16)+" / 0x"+h.toString(16))),n.ca=C=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,(4294967295&e.length)!==C&&A(Error("invalid input size: "+(4294967295&e.length)+" / "+C)),this.t.push(n),this.c=f}this.D=g;var y,l,w,F=this.t,p=0,D=0;for(y=0,l=F.length;y<l;++y)D+=F[y].data.length;if(i)for(w=new Uint8Array(D),y=0;y<l;++y)w.set(F[y].data,p),p+=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},CA.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!==nA(I)&&A(Error("invalid adler-32 checksum"))),I};var oA=8;function BA(A,I){this.input=A,this.a=new(i?Uint8Array:Array)(32768),this.k=aA.o;var g,t={};for(g in!I&&(I={})||"number"!=typeof I.compressionType||(this.k=I.compressionType),I)t[g]=I[g];t.outputBuffer=this.a,this.J=new y(this.input,t)}var aA=F;function EA(A,I){var g,t,i,r;if(Object.keys)g=Object.keys(I);else for(t in g=[],i=0,I)g[i++]=t;for(i=0,r=g.length;i<r;++i)e(A+"."+(t=g[i]),I[t])}BA.prototype.g=function(){var I,g,t,e,r,n,C,o=0;switch(C=this.a,I=oA){case oA:g=Math.LOG2E*Math.log(32768)-8;break;default:A(Error("invalid compression method"))}switch(t=g<<4|I,C[o++]=t,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 e=r<<6|0,C[o++]=e|31-(256*t+e)%31,n=nA(this.input),this.J.b=o,o=(C=this.J.g()).length,i&&((C=new Uint8Array(C.buffer)).length<=o+4&&(this.a=new Uint8Array(C.length+4),this.a.set(C),C=this.a),C=C.subarray(0,o+4)),C[o++]=n>>24&255,C[o++]=n>>16&255,C[o++]=n>>8&255,C[o++]=255&n,C},e("Zlib.Inflate",CA),e("Zlib.Inflate.prototype.decompress",CA.prototype.h),EA("Zlib.Inflate.BufferType",{ADAPTIVE:J.M,BLOCK:J.N}),e("Zlib.Deflate",BA),e("Zlib.Deflate.compress",(function(A,I){return new BA(A,I).g()})),e("Zlib.Deflate.prototype.compress",BA.prototype.g),EA("Zlib.Deflate.CompressionType",{NONE:aA.NONE,FIXED:aA.v,DYNAMIC:aA.o}),e("Zlib.Gzip",Y),e("Zlib.Gzip.prototype.compress",Y.prototype.g),e("Zlib.Gunzip",rA),e("Zlib.Gunzip.prototype.decompress",rA.prototype.h),e("Zlib.Gunzip.prototype.getMembers",rA.prototype.W),e("Zlib.GunzipMember",c),e("Zlib.GunzipMember.prototype.getName",c.prototype.getName),e("Zlib.GunzipMember.prototype.getData",c.prototype.getData),e("Zlib.GunzipMember.prototype.getMtime",c.prototype.X)}).call(this)},39:function(A,I){var g={}.toString;A.exports=Array.isArray||function(A){return"[object Array]"==g.call(A)}},4:function(A,I,g){var t=g(47);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&&t(A,I)}},402:function(A,I,g){(function(A){function g(A,I){for(var g=0,t=A.length-1;t>=0;t--){var e=A[t];"."===e?A.splice(t,1):".."===e?(A.splice(t,1),g++):g&&(A.splice(t,1),g--)}if(I)for(;g--;g)A.unshift("..");return A}function t(A,I){if(A.filter)return A.filter(I);for(var g=[],t=0;t<A.length;t++)I(A[t],t,A)&&g.push(A[t]);return g}I.resolve=function(){for(var I="",e=!1,i=arguments.length-1;i>=-1&&!e;i--){var r=i>=0?arguments[i]:A.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(I=r+"/"+I,e="/"===r.charAt(0))}return(e?"/":"")+(I=g(t(I.split("/"),(function(A){return!!A})),!e).join("/"))||"."},I.normalize=function(A){var i=I.isAbsolute(A),r="/"===e(A,-1);return(A=g(t(A.split("/"),(function(A){return!!A})),!i).join("/"))||i||(A="."),A&&r&&(A+="/"),(i?"/":"")+A},I.isAbsolute=function(A){return"/"===A.charAt(0)},I.join=function(){var A=Array.prototype.slice.call(arguments,0);return I.normalize(t(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 t(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 e=t(A.split("/")),i=t(g.split("/")),r=Math.min(e.length,i.length),n=r,C=0;C<r;C++)if(e[C]!==i[C]){n=C;break}var o=[];for(C=n;C<e.length;C++)o.push("..");return(o=o.concat(i.slice(n))).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,t=-1,e=!0,i=A.length-1;i>=1;--i)if(47===(I=A.charCodeAt(i))){if(!e){t=i;break}}else e=!1;return-1===t?g?"/":".":g&&1===t?"/":A.slice(0,t)},I.basename=function(A,I){var g=function(A){"string"!=typeof A&&(A+="");var I,g=0,t=-1,e=!0;for(I=A.length-1;I>=0;--I)if(47===A.charCodeAt(I)){if(!e){g=I+1;break}}else-1===t&&(e=!1,t=I+1);return-1===t?"":A.slice(g,t)}(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,t=-1,e=!0,i=0,r=A.length-1;r>=0;--r){var n=A.charCodeAt(r);if(47!==n)-1===t&&(e=!1,t=r+1),46===n?-1===I?I=r:1!==i&&(i=1):-1!==I&&(i=-1);else if(!e){g=r+1;break}}return-1===I||-1===t||0===i||1===i&&I===t-1&&I===g+1?"":A.slice(I,t)};var e="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(19))},44: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},45:function(A,I,g){var t=function(A){"use strict";var I=Object.prototype,g=I.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},e=t.iterator||"@@iterator",i=t.asyncIterator||"@@asyncIterator",r=t.toStringTag||"@@toStringTag";function n(A,I,g,t){var e=I&&I.prototype instanceof B?I:B,i=Object.create(e.prototype),r=new F(t||[]);return i._invoke=function(A,I,g){var t="suspendedStart";return function(e,i){if("executing"===t)throw new Error("Generator is already running");if("completed"===t){if("throw"===e)throw i;return D()}for(g.method=e,g.arg=i;;){var r=g.delegate;if(r){var n=y(r,g);if(n){if(n===o)continue;return n}}if("next"===g.method)g.sent=g._sent=g.arg;else if("throw"===g.method){if("suspendedStart"===t)throw t="completed",g.arg;g.dispatchException(g.arg)}else"return"===g.method&&g.abrupt("return",g.arg);t="executing";var B=C(A,I,g);if("normal"===B.type){if(t=g.done?"completed":"suspendedYield",B.arg===o)continue;return{value:B.arg,done:g.done}}"throw"===B.type&&(t="completed",g.method="throw",g.arg=B.arg)}}}(A,g,r),i}function C(A,I,g){try{return{type:"normal",arg:A.call(I,g)}}catch(A){return{type:"throw",arg:A}}}A.wrap=n;var o={};function B(){}function a(){}function E(){}var Q={};Q[e]=function(){return this};var s=Object.getPrototypeOf,h=s&&s(s(p([])));h&&h!==I&&g.call(h,e)&&(Q=h);var c=E.prototype=B.prototype=Object.create(Q);function u(A){["next","throw","return"].forEach((function(I){A[I]=function(A){return this._invoke(I,A)}}))}function f(A,I){var t;this._invoke=function(e,i){function r(){return new I((function(t,r){!function t(e,i,r,n){var o=C(A[e],A,i);if("throw"!==o.type){var B=o.arg,a=B.value;return a&&"object"==typeof a&&g.call(a,"__await")?I.resolve(a.__await).then((function(A){t("next",A,r,n)}),(function(A){t("throw",A,r,n)})):I.resolve(a).then((function(A){B.value=A,r(B)}),(function(A){return t("throw",A,r,n)}))}n(o.arg)}(e,i,t,r)}))}return t=t?t.then(r,r):r()}}function y(A,I){var g=A.iterator[I.method];if(void 0===g){if(I.delegate=null,"throw"===I.method){if(A.iterator.return&&(I.method="return",I.arg=void 0,y(A,I),"throw"===I.method))return o;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return o}var t=C(g,A.iterator,I.arg);if("throw"===t.type)return I.method="throw",I.arg=t.arg,I.delegate=null,o;var e=t.arg;return e?e.done?(I[A.resultName]=e.value,I.next=A.nextLoc,"return"!==I.method&&(I.method="next",I.arg=void 0),I.delegate=null,o):e:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,o)}function l(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 w(A){var I=A.completion||{};I.type="normal",delete I.arg,A.completion=I}function F(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(l,this),this.reset(!0)}function p(A){if(A){var I=A[e];if(I)return I.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var t=-1,i=function I(){for(;++t<A.length;)if(g.call(A,t))return I.value=A[t],I.done=!1,I;return I.value=void 0,I.done=!0,I};return i.next=i}}return{next:D}}function D(){return{value:void 0,done:!0}}return a.prototype=c.constructor=E,E.constructor=a,E[r]=a.displayName="GeneratorFunction",A.isGeneratorFunction=function(A){var I="function"==typeof A&&A.constructor;return!!I&&(I===a||"GeneratorFunction"===(I.displayName||I.name))},A.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,E):(A.__proto__=E,r in A||(A[r]="GeneratorFunction")),A.prototype=Object.create(c),A},A.awrap=function(A){return{__await:A}},u(f.prototype),f.prototype[i]=function(){return this},A.AsyncIterator=f,A.async=function(I,g,t,e,i){void 0===i&&(i=Promise);var r=new f(n(I,g,t,e),i);return A.isGeneratorFunction(g)?r:r.next().then((function(A){return A.done?A.value:r.next()}))},u(c),c[r]="Generator",c[e]=function(){return this},c.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 t=I.pop();if(t in A)return g.value=t,g.done=!1,g}return g.done=!0,g}},A.values=p,F.prototype={constructor:F,reset:function(A){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!A)for(var I in this)"t"===I.charAt(0)&&g.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=void 0)},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 I=this;function t(g,t){return r.type="throw",r.arg=A,I.next=g,t&&(I.method="next",I.arg=void 0),!!t}for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e],r=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var n=g.call(i,"catchLoc"),C=g.call(i,"finallyLoc");if(n&&C){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(n){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!C)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(A,I){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc<=this.prev&&g.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var i=e;break}}i&&("break"===A||"continue"===A)&&i.tryLoc<=I&&I<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=A,r.arg=I,i?(this.method="next",this.next=i.finallyLoc,o):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),o},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),w(g),o}},catch:function(A){for(var I=this.tryEntries.length-1;I>=0;--I){var g=this.tryEntries[I];if(g.tryLoc===A){var t=g.completion;if("throw"===t.type){var e=t.arg;w(g)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(A,I,g){return this.delegate={iterator:p(A),resultName:I,nextLoc:g},"next"===this.method&&(this.arg=void 0),o}},A}(A.exports);try{regeneratorRuntime=t}catch(A){Function("r","regeneratorRuntime = r")(t)}},47:function(A,I){function g(I,t){return A.exports=g=Object.setPrototypeOf||function(A,I){return A.__proto__=I,A},g(I,t)}A.exports=g},48:function(A,I,g){"use strict";I.byteLength=function(A){var I=o(A),g=I[0],t=I[1];return 3*(g+t)/4-t},I.toByteArray=function(A){var I,g,t=o(A),r=t[0],n=t[1],C=new i(function(A,I,g){return 3*(I+g)/4-g}(0,r,n)),B=0,a=n>0?r-4:r;for(g=0;g<a;g+=4)I=e[A.charCodeAt(g)]<<18|e[A.charCodeAt(g+1)]<<12|e[A.charCodeAt(g+2)]<<6|e[A.charCodeAt(g+3)],C[B++]=I>>16&255,C[B++]=I>>8&255,C[B++]=255&I;2===n&&(I=e[A.charCodeAt(g)]<<2|e[A.charCodeAt(g+1)]>>4,C[B++]=255&I);1===n&&(I=e[A.charCodeAt(g)]<<10|e[A.charCodeAt(g+1)]<<4|e[A.charCodeAt(g+2)]>>2,C[B++]=I>>8&255,C[B++]=255&I);return C},I.fromByteArray=function(A){for(var I,g=A.length,e=g%3,i=[],r=0,n=g-e;r<n;r+=16383)i.push(B(A,r,r+16383>n?n:r+16383));1===e?(I=A[g-1],i.push(t[I>>2]+t[I<<4&63]+"==")):2===e&&(I=(A[g-2]<<8)+A[g-1],i.push(t[I>>10]+t[I>>4&63]+t[I<<2&63]+"="));return i.join("")};for(var t=[],e=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,C=r.length;n<C;++n)t[n]=r[n],e[r.charCodeAt(n)]=n;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 e,i,r=[],n=I;n<g;n+=3)e=(A[n]<<16&16711680)+(A[n+1]<<8&65280)+(255&A[n+2]),r.push(t[(i=e)>>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i]);return r.join("")}e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},480:function(A,I,g){(function(I,t,e){var i=function(){"undefined"!=typeof document&&document.currentScript&&document.currentScript.src;return function(A){A=void 0!==(A=A||{})?A:{};var i,r={};for(i in A)A.hasOwnProperty(i)&&(r[i]=A[i]);A.arguments=[],A.thisProgram="./this.program",A.quit=function(A,I){throw I},A.preRun=[],A.postRun=[];var n,C,o;n="object"==typeof window,C="function"==typeof importScripts,o="object"==typeof I&&!n&&!C;var B,a,E="";o&&(E=t+"/",A.read=function(A,I){var t;return(t=iI(A))||(B||(B=g(515)),a||(a=g(402)),A=a.normalize(A),t=B.readFileSync(A)),I?t:t.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 EI))throw A})),I.on("unhandledRejection",sI),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(i in r)r.hasOwnProperty(i)&&(A[i]=r[i]);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||sI("Assertion failed: "+I)}var y="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function l(A,I,g){for(var t=I+g,e=I;A[e]&&!(e>=t);)++e;if(e-I>16&&A.subarray&&y)return y.decode(A.subarray(I,e));for(var i="";I<e;){var r=A[I++];if(128&r){var n=63&A[I++];if(192!=(224&r)){var C=63&A[I++];if((r=224==(240&r)?(15&r)<<12|n<<6|C:(7&r)<<18|n<<12|C<<6|63&A[I++])<65536)i+=String.fromCharCode(r);else{var o=r-65536;i+=String.fromCharCode(55296|o>>10,56320|1023&o)}}else i+=String.fromCharCode((31&r)<<6|n)}else i+=String.fromCharCode(r)}return i}function w(A,I){return A?l(D,A,I):""}var F,p,D,d,S,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 R(){A.HEAP8=p=new Int8Array(F),A.HEAP16=d=new Int16Array(F),A.HEAP32=U=new Int32Array(F),A.HEAPU8=D=new Uint8Array(F),A.HEAPU16=S=new Uint16Array(F),A.HEAPU32=G=new Uint32Array(F),A.HEAPF32=m=new Float32Array(F),A.HEAPF64=k=new Float64Array(F)}var M=A.TOTAL_MEMORY||16777216;function N(I){for(;I.length>0;){var g=I.shift();if("function"!=typeof g){var t=g.func;"number"==typeof t?void 0===g.arg?A.dynCall_v(t):A.dynCall_vi(t,g.arg):t(void 0===g.arg?null:g.arg)}else g()}}M<5242880&&s("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+M+"! (TOTAL_STACK=5242880)"),A.buffer?F=A.buffer:"object"==typeof WebAssembly&&"function"==typeof WebAssembly.Memory?(h=new WebAssembly.Memory({initial:M/65536}),F=h.buffer):F=new ArrayBuffer(M),R(),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,O="data:application/octet-stream;base64, ";function Z(){try{if(A.wasmBinary)return new Uint8Array(A.wasmBinary);var I=iI(O);if(I)return I;if(A.readBinary)return A.readBinary(O);throw"both async and sync fetching of the wasm failed"}catch(A){sI(A)}}function j(I){var g={env:I,global:{NaN:NaN,Infinity:1/0},"global.Math":Math,asm2wasm:c};function t(I,g){var t=I.exports;A.asm=t,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,t)}catch(A){return s("Module.instantiateWasm callback failed with error: "+A),!1}function e(A){t(A.instance)}function i(I){(A.wasmBinary||!n&&!C||"function"!=typeof fetch?new Promise((function(A,I){A(Z())})):fetch(O,{credentials:"same-origin"}).then((function(A){if(!A.ok)throw"failed to load wasm binary file at '"+O+"'";return A.arrayBuffer()})).catch((function(){return Z()}))).then((function(A){return WebAssembly.instantiate(A,g)})).then(I,(function(A){s("failed to asynchronously prepare wasm: "+A),sI(A)}))}return A.wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||V(O)||"function"!=typeof fetch?i(e):WebAssembly.instantiateStreaming(fetch(O,{credentials:"same-origin"}),g).then(e,(function(A){s("wasm streaming compile failed: "+A),s("falling back to ArrayBuffer instantiation"),i(e)})),{}}V(O)||(W=O,O=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(){aI()}});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;D[g];)I+=z[D[g++]];return I}var $={},AA={},IA={};function gA(A){if(void 0===A)return"_unknown";var I=(A=A.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return I>=48&&I<=57?"_"+A:A}function tA(A,I){return A=gA(A),new Function("body","return function "+A+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n')(I)}function eA(A,I){var g=tA(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 iA=void 0;function rA(A){throw new iA(A)}var nA=void 0;function CA(A){throw new nA(A)}function oA(A,I,g){function t(I){var t=g(I);t.length!==A.length&&CA("Mismatched type converter count");for(var e=0;e<A.length;++e)BA(A[e],t[e])}A.forEach((function(A){IA[A]=I}));var e=new Array(I.length),i=[],r=0;I.forEach((function(A,I){AA.hasOwnProperty(A)?e[I]=AA[A]:(i.push(A),$.hasOwnProperty(A)||($[A]=[]),$[A].push((function(){e[I]=AA[A],++r===i.length&&t(e)})))})),0===i.length&&t(e)}function BA(A,I,g){if(g=g||{},!("argPackAdvance"in I))throw new TypeError("registerType registeredInstance requires argPackAdvance");var t=I.name;if(A||rA('type "'+t+'" must have a positive integer typeid pointer'),AA.hasOwnProperty(A)){if(g.ignoreDuplicateRegistrations)return;rA("Cannot register type '"+t+"' twice")}if(AA[A]=I,delete IA[A],$.hasOwnProperty(A)){var e=$[A];delete $[A],e.forEach((function(A){A()}))}}function aA(A){if(!(this instanceof lA))return!1;if(!(A instanceof lA))return!1;for(var I=this.$$.ptrType.registeredClass,g=this.$$.ptr,t=A.$$.ptrType.registeredClass,e=A.$$.ptr;I.baseClass;)g=I.upcast(g),I=I.baseClass;for(;t.baseClass;)e=t.upcast(e),t=t.baseClass;return I===t&&g===e}function EA(A){rA(A.$$.ptrType.registeredClass.name+" instance already deleted")}function QA(){if(this.$$.ptr||EA(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 sA(){var A;this.$$.ptr||EA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&rA("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 hA(){return!this.$$.ptr}var cA=void 0,uA=[];function fA(){for(;uA.length;){var A=uA.pop();A.$$.deleteScheduled=!1,A.delete()}}function yA(){return this.$$.ptr||EA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&rA("Object already scheduled for deletion"),uA.push(this),1===uA.length&&cA&&cA(fA),this.$$.deleteScheduled=!0,this}function lA(){}var wA={};function FA(I,g,t){A.hasOwnProperty(I)?((void 0===t||void 0!==A[I].overloadTable&&void 0!==A[I].overloadTable[t])&&rA("Cannot register public name '"+I+"' twice"),function(A,I,g){if(void 0===A[I].overloadTable){var t=A[I];A[I]=function(){return A[I].overloadTable.hasOwnProperty(arguments.length)||rA("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[t.argCount]=t}}(A,I,I),A.hasOwnProperty(t)&&rA("Cannot register multiple overloads of a function with the same number of arguments ("+t+")!"),A[I].overloadTable[t]=g):(A[I]=g,void 0!==t&&(A[I].numArguments=t))}function pA(A,I,g,t,e,i,r,n){this.name=A,this.constructor=I,this.instancePrototype=g,this.rawDestructor=t,this.baseClass=e,this.getActualType=i,this.upcast=r,this.downcast=n,this.pureVirtualFunctions=[]}function DA(A,I,g){for(;I!==g;)I.upcast||rA("Expected null or instance of "+g.name+", got an instance of "+I.name),A=I.upcast(A),I=I.baseClass;return A}function dA(A,I){if(null===I)return this.isReference&&rA("null is not a valid "+this.name),0;I.$$||rA('Cannot pass "'+$A(I)+'" as a '+this.name),I.$$.ptr||rA("Cannot pass deleted object as a pointer of type "+this.name);var g=I.$$.ptrType.registeredClass;return DA(I.$$.ptr,g,this.registeredClass)}function SA(A,I){var g;if(null===I)return this.isReference&&rA("null is not a valid "+this.name),this.isSmartPointer?(g=this.rawConstructor(),null!==A&&A.push(this.rawDestructor,g),g):0;I.$$||rA('Cannot pass "'+$A(I)+'" as a '+this.name),I.$$.ptr||rA("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&I.$$.ptrType.isConst&&rA("Cannot convert argument of type "+(I.$$.smartPtrType?I.$$.smartPtrType.name:I.$$.ptrType.name)+" to parameter type "+this.name);var t=I.$$.ptrType.registeredClass;if(g=DA(I.$$.ptr,t,this.registeredClass),this.isSmartPointer)switch(void 0===I.$$.smartPtr&&rA("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:I.$$.smartPtrType===this?g=I.$$.smartPtr:rA("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 e=I.clone();g=this.rawShare(g,_A((function(){e.delete()}))),null!==A&&A.push(this.rawDestructor,g)}break;default:rA("Unsupporting sharing policy")}return g}function UA(A,I){if(null===I)return this.isReference&&rA("null is not a valid "+this.name),0;I.$$||rA('Cannot pass "'+$A(I)+'" as a '+this.name),I.$$.ptr||rA("Cannot pass deleted object as a pointer of type "+this.name),I.$$.ptrType.isConst&&rA("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 GA(A){return this.fromWireType(G[A>>2])}function mA(A){return this.rawGetPointee&&(A=this.rawGetPointee(A)),A}function kA(A){this.rawDestructor&&this.rawDestructor(A)}function YA(A){null!==A&&A.delete()}function RA(){return Object.keys(bA).length}function MA(){var A=[];for(var I in bA)bA.hasOwnProperty(I)&&A.push(bA[I]);return A}function NA(A){cA=A,uA.length&&cA&&cA(fA)}var bA={};function vA(A,I){return I=function(A,I){for(void 0===I&&rA("ptr should not be undefined");A.baseClass;)I=A.upcast(I),A=A.baseClass;return I}(A,I),bA[I]}function HA(A,I){return I.ptrType&&I.ptr||CA("makeClassHandle requires ptr and ptrType"),!!I.smartPtrType!==!!I.smartPtr&&CA("Both smartPtrType and smartPtr must be specified"),I.count={value:1},Object.create(A,{$$:{value:I}})}function LA(A){var I=this.getPointee(A);if(!I)return this.destructor(A),null;var g=vA(this.registeredClass,I);if(void 0!==g){if(0===g.$$.count.value)return g.$$.ptr=I,g.$$.smartPtr=A,g.clone();var t=g.clone();return this.destructor(A),t}function e(){return this.isSmartPointer?HA(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:I,smartPtrType:this,smartPtr:A}):HA(this.registeredClass.instancePrototype,{ptrType:this,ptr:A})}var i,r=this.registeredClass.getActualType(I),n=wA[r];if(!n)return e.call(this);i=this.isConst?n.constPointerType:n.pointerType;var C=function A(I,g,t){if(g===t)return I;if(void 0===t.baseClass)return null;var e=A(I,g,t.baseClass);return null===e?null:t.downcast(e)}(I,this.registeredClass,i.registeredClass);return null===C?e.call(this):this.isSmartPointer?HA(i.registeredClass.instancePrototype,{ptrType:i,ptr:C,smartPtrType:this,smartPtr:A}):HA(i.registeredClass.instancePrototype,{ptrType:i,ptr:C})}function JA(A,I,g,t,e,i,r,n,C,o,B){this.name=A,this.registeredClass=I,this.isReference=g,this.isConst=t,this.isSmartPointer=e,this.pointeeType=i,this.sharingPolicy=r,this.rawGetPointee=n,this.rawConstructor=C,this.rawShare=o,this.rawDestructor=B,e||void 0!==I.baseClass?this.toWireType=SA:t?(this.toWireType=dA,this.destructorFunction=null):(this.toWireType=UA,this.destructorFunction=null)}function KA(I,g,t){A.hasOwnProperty(I)||CA("Replacing nonexistant public symbol"),void 0!==A[I].overloadTable&&void 0!==t?A[I].overloadTable[t]=g:(A[I]=g,A[I].argCount=t)}function qA(I,g){var t;if(I=_(I),void 0!==A["FUNCTION_TABLE_"+I])t=A["FUNCTION_TABLE_"+I][g];else if("undefined"!=typeof FUNCTION_TABLE)t=FUNCTION_TABLE[g];else{var e=A["dynCall_"+I];void 0===e&&void 0===(e=A["dynCall_"+I.replace(/f/g,"d")])&&rA("No dynCall invoker for signature: "+I),t=function(A){for(var t=[],e=1;e<I.length;++e)t.push("a"+e);var i="return function "+("dynCall_"+I+"_"+g)+"("+t.join(", ")+") {\n";return i+="    return dynCall(rawFunction"+(t.length?", ":"")+t.join(", ")+");\n",i+="};\n",new Function("dynCall","rawFunction",i)(A,g)}(e)}return"function"!=typeof t&&rA("unknown function pointer with signature "+I+": "+g),t}var TA=void 0;function xA(A){var I=CI(A),g=_(I);return oI(I),g}function VA(A,I){var g=[],t={};throw I.forEach((function A(I){t[I]||AA[I]||(IA[I]?IA[I].forEach(A):(g.push(I),t[I]=!0))})),new TA(A+": "+g.map(xA).join([", "]))}function WA(A){for(;A.length;){var I=A.pop();A.pop()(I)}}function OA(A,I,g){return A instanceof Object||rA(g+' with invalid "this": '+A),A instanceof I.registeredClass.constructor||rA(g+' incompatible with "this" of type '+A.constructor.name),A.$$.ptr||rA("cannot call emscripten binding method "+g+" on deleted object"),DA(A.$$.ptr,A.$$.ptrType.registeredClass,I.registeredClass)}var ZA=[],jA=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function XA(A){A>4&&0==--jA[A].refcount&&(jA[A]=void 0,ZA.push(A))}function PA(){for(var A=0,I=5;I<jA.length;++I)void 0!==jA[I]&&++A;return A}function zA(){for(var A=5;A<jA.length;++A)if(void 0!==jA[A])return jA[A];return null}function _A(A){switch(A){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var I=ZA.length?ZA.pop():jA.length;return jA[I]={refcount:1,value:A},I}}function $A(A){if(null===A)return"null";var I=typeof A;return"object"===I||"array"===I||"function"===I?A.toString():""+A}function AI(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,t,e){var i=I.length;i<2&&rA("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var r=null!==I[1]&&null!==g,n=!1,C=1;C<I.length;++C)if(null!==I[C]&&void 0===I[C].destructorFunction){n=!0;break}var o="void"!==I[0].name,B="",a="";for(C=0;C<i-2;++C)B+=(0!==C?", ":"")+"arg"+C,a+=(0!==C?", ":"")+"arg"+C+"Wired";var E="return function "+gA(A)+"("+B+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+A+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";n&&(E+="var destructors = [];\n");var Q=n?"destructors":"null",s=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],h=[rA,t,e,WA,I[0],I[1]];r&&(E+="var thisWired = classParam.toWireType("+Q+", this);\n");for(C=0;C<i-2;++C)E+="var arg"+C+"Wired = argType"+C+".toWireType("+Q+", arg"+C+"); // "+I[C+2].name+"\n",s.push("argType"+C),h.push(I[C+2]);if(r&&(a="thisWired"+(a.length>0?", ":"")+a),E+=(o?"var rv = ":"")+"invoker(fn"+(a.length>0?", ":"")+a+");\n",n)E+="runDestructors(destructors);\n";else for(C=r?1:2;C<I.length;++C){var c=1===C?"thisWired":"arg"+(C-2)+"Wired";null!==I[C].destructorFunction&&(E+=c+"_dtor("+c+"); // "+I[C].name+"\n",s.push(c+"_dtor"),h.push(I[C].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=tA(A.name||"unknownFunctionName",(function(){}));g.prototype=A.prototype;var t=new g,e=A.apply(t,I);return e instanceof Object?e:t}(Function,s).apply(null,h)}function gI(A,I,g){switch(I){case 0:return g?function(A){return p[A]}:function(A){return D[A]};case 1:return g?function(A){return d[A>>1]}:function(A){return S[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 tI(){return p.length}!function(){for(var A=new Array(256),I=0;I<256;++I)A[I]=String.fromCharCode(I);z=A}(),iA=A.BindingError=eA(Error,"BindingError"),nA=A.InternalError=eA(Error,"InternalError"),lA.prototype.isAliasOf=aA,lA.prototype.clone=QA,lA.prototype.delete=sA,lA.prototype.isDeleted=hA,lA.prototype.deleteLater=yA,JA.prototype.getPointee=mA,JA.prototype.destructor=kA,JA.prototype.argPackAdvance=8,JA.prototype.readValueFromPointer=GA,JA.prototype.deleteObject=YA,JA.prototype.fromWireType=LA,A.getInheritedInstanceCount=RA,A.getLiveInheritedInstances=MA,A.flushPendingDeletes=fA,A.setDelayFunction=NA,TA=A.UnboundTypeError=eA(Error,"UnboundTypeError"),A.count_emval_handles=PA,A.get_first_emval=zA;var eI="function"==typeof atob?atob:function(A){var I,g,t,e,i,r,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",C="",o=0;A=A.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{I=n.indexOf(A.charAt(o++))<<2|(e=n.indexOf(A.charAt(o++)))>>4,g=(15&e)<<4|(i=n.indexOf(A.charAt(o++)))>>2,t=(3&i)<<6|(r=n.indexOf(A.charAt(o++))),C+=String.fromCharCode(I),64!==i&&(C+=String.fromCharCode(g)),64!==r&&(C+=String.fromCharCode(t))}while(o<A.length);return C};function iI(A){if(V(A))return function(A){if("boolean"==typeof o&&o){var I;try{I=e.from(A,"base64")}catch(g){I=new e(A,"base64")}return new Uint8Array(I.buffer,I.byteOffset,I.byteLength)}try{for(var g=eI(A),t=new Uint8Array(g.length),i=0;i<g.length;++i)t[i]=g.charCodeAt(i);return t}catch(A){throw new Error("Converting base64 string to bytes failed.")}}(A.slice(x.length))}var rI={c:sI,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(),t=(X.get(),X.get()),e=X.get(),i=X.get(),r=t;return FS.llseek(g,r,i),U[e>>2]=g.position,g.getdents&&0===r&&0===i&&(g.getdents=null),0}catch(A){return"undefined"!=typeof FS&&A instanceof FS.ErrnoError||sI(A),-A.errno}},h:function(A,I){X.varargs=I;try{for(var g=X.get(),t=X.get(),e=X.get(),i=0,r=0;r<e;r++){for(var n=U[t+8*r>>2],C=U[t+(8*r+4)>>2],o=0;o<C;o++)X.printChar(g,D[n+o]);i+=C}return i}catch(A){return"undefined"!=typeof FS&&A instanceof FS.ErrnoError||sI(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||sI(A),-A.errno}},o:function(A,I,g,t,e){var i=P(g);BA(A,{name:I=_(I),fromWireType:function(A){return!!A},toWireType:function(A,I){return I?t:e},argPackAdvance:8,readValueFromPointer:function(A){var t;if(1===g)t=p;else if(2===g)t=d;else{if(4!==g)throw new TypeError("Unknown boolean type size: "+I);t=U}return this.fromWireType(t[A>>i])},destructorFunction:null})},n:function(A,I,g,t,e,i,r,n,C,o,B,a,E){B=_(B),i=qA(e,i),n&&(n=qA(r,n)),o&&(o=qA(C,o)),E=qA(a,E);var Q=gA(B);FA(Q,(function(){VA("Cannot construct "+B+" due to unbound types",[t])})),oA([A,I,g],t?[t]:[],(function(I){var g,e;I=I[0],e=t?(g=I.registeredClass).instancePrototype:lA.prototype;var r=tA(Q,(function(){if(Object.getPrototypeOf(this)!==C)throw new iA("Use 'new' to construct "+B);if(void 0===a.constructor_body)throw new iA(B+" has no accessible constructor");var A=a.constructor_body[arguments.length];if(void 0===A)throw new iA("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)})),C=Object.create(e,{constructor:{value:r}});r.prototype=C;var a=new pA(B,r,C,E,g,i,n,o),s=new JA(B,a,!0,!1,!1),h=new JA(B+"*",a,!1,!1,!1),c=new JA(B+" const*",a,!1,!0,!1);return wA[A]={pointerType:h,constPointerType:c},KA(Q,r),[s,h,c]}))},e:function(A,I,g,t,e,i,r,n,C,o){I=_(I),e=qA(t,e),oA([],[A],(function(A){var t=(A=A[0]).name+"."+I,B={get:function(){VA("Cannot access "+t+" due to unbound types",[g,r])},enumerable:!0,configurable:!0};return B.set=C?function(){VA("Cannot access "+t+" due to unbound types",[g,r])}:function(A){rA(t+" is a read-only property")},Object.defineProperty(A.registeredClass.instancePrototype,I,B),oA([],C?[g,r]:[g],(function(g){var r=g[0],B={get:function(){var I=OA(this,A,t+" getter");return r.fromWireType(e(i,I))},enumerable:!0};if(C){C=qA(n,C);var a=g[1];B.set=function(I){var g=OA(this,A,t+" setter"),e=[];C(o,g,a.toWireType(e,I)),WA(e)}}return Object.defineProperty(A.registeredClass.instancePrototype,I,B),[]})),[]}))},m:function(A,I){BA(A,{name:I=_(I),fromWireType:function(A){var I=jA[A].value;return XA(A),I},toWireType:function(A,I){return _A(I)},argPackAdvance:8,readValueFromPointer:GA,destructorFunction:null})},g:function(A,I,g){var t=P(g);BA(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 "'+$A(I)+'" to '+this.name);return I},argPackAdvance:8,readValueFromPointer:AI(I,t),destructorFunction:null})},k:function(A,I,g,t,e,i){var r=function(A,I){for(var g=[],t=0;t<A;t++)g.push(U[(I>>2)+t]);return g}(I,g);A=_(A),e=qA(t,e),FA(A,(function(){VA("Cannot call "+A+" due to unbound types",r)}),I-1),oA([],r,(function(g){var t=[g[0],null].concat(g.slice(1));return KA(A,II(A,t,null,e,i),I-1),[]}))},d:function(A,I,g,t,e){I=_(I),-1===e&&(e=4294967295);var i=P(g),r=function(A){return A};if(0===t){var n=32-8*g;r=function(A){return A<<n>>>n}}var C=-1!=I.indexOf("unsigned");BA(A,{name:I,fromWireType:r,toWireType:function(A,g){if("number"!=typeof g&&"boolean"!=typeof g)throw new TypeError('Cannot convert "'+$A(g)+'" to '+this.name);if(g<t||g>e)throw new TypeError('Passing a number "'+$A(g)+'" from JS side to C/C++ side to an argument of type "'+I+'", which is outside the valid range ['+t+", "+e+"]!");return C?g>>>0:0|g},argPackAdvance:8,readValueFromPointer:gI(I,i,0!==t),destructorFunction:null})},b:function(A,I,g){var t=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][I];function e(A){var I=G,g=I[A>>=2],e=I[A+1];return new t(I.buffer,e,g)}BA(A,{name:g=_(g),fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{ignoreDuplicateRegistrations:!0})},j:function(A,I){var g="std::string"===(I=_(I));BA(A,{name:I,fromWireType:function(A){var I,t=G[A>>2];if(g){var e=D[A+4+t],i=0;0!=e&&(i=e,D[A+4+t]=0);for(var r=A+4,n=0;n<=t;++n){var C=A+4+n;if(0==D[C]){var o=w(r);void 0===I?I=o:(I+=String.fromCharCode(0),I+=o),r=C+1}}0!=i&&(D[A+4+t]=i)}else{var B=new Array(t);for(n=0;n<t;++n)B[n]=String.fromCharCode(D[A+4+n]);I=B.join("")}return oI(A),I},toWireType:function(A,I){I instanceof ArrayBuffer&&(I=new Uint8Array(I));var t="string"==typeof I;t||I instanceof Uint8Array||I instanceof Uint8ClampedArray||I instanceof Int8Array||rA("Cannot pass non-string to std::string");var e=(g&&t?function(){return function(A){for(var I=0,g=0;g<A.length;++g){var t=A.charCodeAt(g);t>=55296&&t<=57343&&(t=65536+((1023&t)<<10)|1023&A.charCodeAt(++g)),t<=127?++I:I+=t<=2047?2:t<=65535?3:4}return I}(I)}:function(){return I.length})(),i=BI(4+e+1);if(G[i>>2]=e,g&&t)(function(A,I,g,t){if(!(t>0))return 0;for(var e=g,i=g+t-1,r=0;r<A.length;++r){var n=A.charCodeAt(r);if(n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&A.charCodeAt(++r)),n<=127){if(g>=i)break;I[g++]=n}else if(n<=2047){if(g+1>=i)break;I[g++]=192|n>>6,I[g++]=128|63&n}else if(n<=65535){if(g+2>=i)break;I[g++]=224|n>>12,I[g++]=128|n>>6&63,I[g++]=128|63&n}else{if(g+3>=i)break;I[g++]=240|n>>18,I[g++]=128|n>>12&63,I[g++]=128|n>>6&63,I[g++]=128|63&n}}I[g]=0})(I,D,i+4,e+1);else if(t)for(var r=0;r<e;++r){var n=I.charCodeAt(r);n>255&&(oI(i),rA("String has UTF-16 code units that do not fit in 8 bits")),D[i+4+r]=n}else for(r=0;r<e;++r)D[i+4+r]=I[r];return null!==A&&A.push(oI,i),i},argPackAdvance:8,readValueFromPointer:GA,destructorFunction:function(A){oI(A)}})},z:function(A,I,g){var t,e;g=_(g),2===I?(t=function(){return S},e=1):4===I&&(t=function(){return G},e=2),BA(A,{name:g,fromWireType:function(A){for(var I=t(),g=G[A>>2],i=new Array(g),r=A+4>>e,n=0;n<g;++n)i[n]=String.fromCharCode(I[r+n]);return oI(A),i.join("")},toWireType:function(A,g){var i=t(),r=g.length,n=BI(4+r*I);G[n>>2]=r;for(var C=n+4>>e,o=0;o<r;++o)i[C+o]=g.charCodeAt(o);return null!==A&&A.push(oI,n),n},argPackAdvance:8,readValueFromPointer:GA,destructorFunction:function(A){oI(A)}})},y:function(A,I){BA(A,{isVoid:!0,name:I=_(I),argPackAdvance:0,fromWireType:function(){},toWireType:function(A,I){}})},x:XA,w:function(A){A>4&&(jA[A].refcount+=1)},v:function(A,I){var g,t,e;return t="_emval_take_value",void 0===(e=AA[g=A])&&rA(t+" has unknown type "+xA(g)),_A((A=e).readValueFromPointer(I))},f:function(){A.abort()},t:tI,s:function(A,I,g){D.set(D.subarray(I,I+g),A)},r:function(A){var I=tI();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 t=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!(!t||t.byteLength!=g)&&(R(),!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 EI(I))}(I)},q:function(A){sI("OOM")},a:12224},nI=A.asm({},rI,F);A.asm=nI;var CI=A.___getTypeName=function(){return A.asm.A.apply(null,arguments)},oI=A._free=function(){return A.asm.B.apply(null,arguments)},BI=A._malloc=function(){return A.asm.C.apply(null,arguments)},aI=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 EI(A){this.name="ExitStatus",this.message="Program terminated with exit("+A+")",this.status=A}function QI(I){function g(){A.calledRun||(A.calledRun=!0,u||(J||(J=!0,N(v)),N(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;N(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;N(b)}(),K>0||A.calledRun||(A.setStatus?(A.setStatus("Running..."),setTimeout((function(){setTimeout((function(){A.setStatus("")}),1),g()}),1)):g()))}function sI(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=nI,A.then=function(I){if(A.calledRun)I(A);else{var g=A.onRuntimeInitialized;A.onRuntimeInitialized=function(){g&&g(),I(A)}}return A},EI.prototype=new Error,EI.prototype.constructor=EI,T=function I(){A.calledRun||QI(),A.calledRun||(T=I)},A.run=QI,A.abort=sI,A.preInit)for("function"==typeof A.preInit&&(A.preInit=[A.preInit]);A.preInit.length>0;)A.preInit.pop()();return A.noExitRuntime=!0,QI(),A}}();A.exports=i}).call(this,g(19),"/",g(12).Buffer)},49:function(A,I){I.read=function(A,I,g,t,e){var i,r,n=8*e-t-1,C=(1<<n)-1,o=C>>1,B=-7,a=g?e-1:0,E=g?-1:1,Q=A[I+a];for(a+=E,i=Q&(1<<-B)-1,Q>>=-B,B+=n;B>0;i=256*i+A[I+a],a+=E,B-=8);for(r=i&(1<<-B)-1,i>>=-B,B+=t;B>0;r=256*r+A[I+a],a+=E,B-=8);if(0===i)i=1-o;else{if(i===C)return r?NaN:1/0*(Q?-1:1);r+=Math.pow(2,t),i-=o}return(Q?-1:1)*r*Math.pow(2,i-t)},I.write=function(A,I,g,t,e,i){var r,n,C,o=8*i-e-1,B=(1<<o)-1,a=B>>1,E=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,Q=t?0:i-1,s=t?1:-1,h=I<0||0===I&&1/I<0?1:0;for(I=Math.abs(I),isNaN(I)||I===1/0?(n=isNaN(I)?1:0,r=B):(r=Math.floor(Math.log(I)/Math.LN2),I*(C=Math.pow(2,-r))<1&&(r--,C*=2),(I+=r+a>=1?E/C:E*Math.pow(2,1-a))*C>=2&&(r++,C/=2),r+a>=B?(n=0,r=B):r+a>=1?(n=(I*C-1)*Math.pow(2,e),r+=a):(n=I*Math.pow(2,a-1)*Math.pow(2,e),r=0));e>=8;A[g+Q]=255&n,Q+=s,n/=256,e-=8);for(r=r<<e|n,o+=e;o>0;A[g+Q]=255&r,Q+=s,r/=256,o-=8);A[g+Q-s]|=128*h}},5:function(A,I,g){var t=g(44),e=g(25);A.exports=function(A,I){return!I||"object"!==t(I)&&"function"!=typeof I?e(A):I}},50:function(A,I){A.exports=function(A){if(Array.isArray(A))return A}},51:function(A,I){A.exports=function(A,I){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(A)){var g=[],t=!0,e=!1,i=void 0;try{for(var r,n=A[Symbol.iterator]();!(t=(r=n.next()).done)&&(g.push(r.value),!I||g.length!==I);t=!0);}catch(A){e=!0,i=A}finally{try{t||null==n.return||n.return()}finally{if(e)throw i}}return g}}},515:function(A,I){},52:function(A,I,g){var t=g(53);A.exports=function(A,I){if(A){if("string"==typeof A)return t(A,I);var g=Object.prototype.toString.call(A).slice(8,-1);return"Object"===g&&A.constructor&&(g=A.constructor.name),"Map"===g||"Set"===g?Array.from(A):"Arguments"===g||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?t(A,I):void 0}}},53:function(A,I){A.exports=function(A,I){(null==I||I>A.length)&&(I=A.length);for(var g=0,t=new Array(I);g<I;g++)t[g]=A[g];return t}},54:function(A,I){A.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},6:function(A,I,g){"use strict";g.d(I,"a",(function(){return n}));var t=g(2),e=g.n(t),i=g(3),r=g.n(i),n=function(){function A(I){e()(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 t=this.bytes[g];if(0===t)break;I+=String.fromCharCode(t)}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 t=this.position;t<this.position+A;t++)g<<=8,g|=this.bytes[t];else for(var e=this.position+A-1;e>=this.position;e--)g<<=8,g|=this.bytes[e];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 t=g-A;I&=(1<<A)-1,g-=t,this.position--,this.bitPos=8-t}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 t=function(A,I){var g=new Array;return A.forEach((function(A,t){g[A]=I-t})),g}(A,I),e=!0;this.position<this.length;){for(;this.position<this.length&&this.bytes[this.position++]!==g;);e=!0;for(var i=I-1;i>=0;i--)if(this.bytes[this.position-I+i]!==A[i]){e=!1,this.position+=t[A[i]];break}if(e){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(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.bitPos>0&&I++,this.bytes.slice(A,I)}}]),A}()},7:function(A,I,g){"use strict";var t=g(2),e=g.n(t),i=g(25),r=g.n(i),n=g(4),C=g.n(n),o=g(5),B=g.n(o),a=g(0),E=g.n(a);function Q(A){var I=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(A){return!1}}();return function(){var g,t=E()(A);if(I){var e=E()(this).constructor;g=Reflect.construct(t,arguments,e)}else g=t.apply(this,arguments);return B()(this,g)}}
/**
 * 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 s=function(A){C()(g,A);var I=Q(g);function g(){var A;e()(this,g);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return(A=I.call(this,...i)).type="OperationError",Error.captureStackTrace&&Error.captureStackTrace(r()(A),g),A}return g}(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=s},8:function(A,I,g){A.exports=g(45)},867: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 t(A,t){var e,i=A.split("."),r=g;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(e=i.shift());)i.length||t===I?r=r[e]?r[e]:r[e]={}:r[e]=t}var e,i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;for(new(i?Uint8Array:Array)(256),e=0;256>e;++e)for(var r=(r=e)>>>1;r;r>>>=1)0;function n(A,I,g){var t,e="number"==typeof I?I:I=0,i="number"==typeof g?g:A.length;for(t=-1,e=7&i;e--;++I)t=t>>>8^o[255&(t^A[I])];for(e=i>>3;e--;I+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^o[255&(t^A[I])])>>>8^o[255&(t^A[I+1])])>>>8^o[255&(t^A[I+2])])>>>8^o[255&(t^A[I+3])])>>>8^o[255&(t^A[I+4])])>>>8^o[255&(t^A[I+5])])>>>8^o[255&(t^A[I+6])])>>>8^o[255&(t^A[I+7])];return(4294967295^t)>>>0}var C=[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=i?new Uint32Array(C):C;function B(){}function a(A){var I,g,t,e,r,n,C,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(n=0,C=e,B=0;B<t;++B)n=n<<1|1&C,C>>=1;for(a=t<<16|o,B=n;B<I;B+=r)g[B]=a;++e}++t,e<<=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,t,e=[];for(g=3;258>=g;g++)t=I(g),e[g]=t[2]<<24|t[1]<<16|t[0];return e}();function h(I,g){switch(this.i=[],this.j=32768,this.d=this.f=this.c=this.n=0,this.input=i?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(i?Uint8Array:Array)(32768+this.j+258);break;case u:this.a=0,this.b=new(i?Uint8Array:Array)(this.j),this.e=this.D,this.q=this.A,this.l=this.C;break;default:A(Error("invalid inflate mode"))}}i&&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 t=this.input,e=this.c,r=this.b,n=this.a,C=t.length,o=I,B=r.length,E=I;switch(this.d=this.f=0,e+1>=C&&A(Error("invalid uncompressed block header: LEN")),o=t[e++]|t[e++]<<8,e+1>=C&&A(Error("invalid uncompressed block header: NLEN")),o===~(t[e++]|t[e++]<<8)&&A(Error("invalid uncompressed block header: length verify")),e+o>t.length&&A(Error("input buffer is broken")),this.k){case c:for(;n+o>r.length;){if(o-=E=B-n,i)r.set(t.subarray(e,e+E),n),n+=E,e+=E;else for(;E--;)r[n++]=t[e++];this.a=n,r=this.e(),n=this.a}break;case u:for(;n+o>r.length;)r=this.e({t:2});break;default:A(Error("invalid inflate mode"))}if(i)r.set(t.subarray(e,e+o),n),n+=o,e+=o;else for(;o--;)r[n++]=t[e++];this.c=e,this.a=n,this.b=r;break;case 1:this.l(M,b);break;case 2:var Q,s,h,f,y=v(this,5)+257,l=v(this,5)+1,F=v(this,4)+4,p=new(i?Uint8Array:Array)(w.length),D=I,d=I,S=I,U=I,G=I;for(G=0;G<F;++G)p[w[G]]=v(this,3);if(!i)for(G=F,F=p.length;G<F;++G)p[w[G]]=0;for(Q=a(p),D=new(i?Uint8Array:Array)(y+l),G=0,f=y+l;G<f;)switch(d=H(this,Q),d){case 16:for(U=3+v(this,2);U--;)D[G++]=S;break;case 17:for(U=3+v(this,3);U--;)D[G++]=0;S=0;break;case 18:for(U=11+v(this,7);U--;)D[G++]=0;S=0;break;default:S=D[G++]=d}s=a(i?D.subarray(0,y):D.slice(0,y)),h=a(i?D.subarray(y):D.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=i?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],p=i?new Uint16Array(F):F,D=[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],d=i?new Uint8Array(D):D,S=[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(S):S,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=i?new Uint8Array(G):G,k=new(i?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,R,M=a(k),N=new(i?Uint8Array:Array)(30);for(Y=0,R=N.length;Y<R;++Y)N[Y]=5;var b=a(N);function v(I,g){for(var t,e=I.f,i=I.d,r=I.input,n=I.c,C=r.length;i<g;)n>=C&&A(Error("input buffer is broken")),e|=r[n++]<<i,i+=8;return t=e&(1<<g)-1,I.f=e>>>g,I.d=i-g,I.c=n,t}function H(I,g){for(var t,e,i=I.f,r=I.d,n=I.input,C=I.c,o=n.length,B=g[0],a=g[1];r<a&&!(C>=o);)i|=n[C++]<<r,r+=8;return(e=(t=B[i&(1<<a)-1])>>>16)>r&&A(Error("invalid code length: "+e)),I.f=i>>e,I.d=r-e,I.c=C,65535&t}function L(A){this.input=A,this.c=0,this.m=[],this.s=!1}h.prototype.l=function(A,I){var g=this.b,t=this.a;this.r=A;for(var e,i,r,n,C=g.length-258;256!==(e=H(this,A));)if(256>e)t>=C&&(this.a=t,g=this.e(),t=this.a),g[t++]=e;else for(n=p[i=e-257],0<d[i]&&(n+=v(this,d[i])),e=H(this,I),r=U[e],0<m[e]&&(r+=v(this,m[e])),t>=C&&(this.a=t,g=this.e(),t=this.a);n--;)g[t]=g[t++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=t},h.prototype.C=function(A,I){var g=this.b,t=this.a;this.r=A;for(var e,i,r,n,C=g.length;256!==(e=H(this,A));)if(256>e)t>=C&&(C=(g=this.e()).length),g[t++]=e;else for(n=p[i=e-257],0<d[i]&&(n+=v(this,d[i])),e=H(this,I),r=U[e],0<m[e]&&(r+=v(this,m[e])),t+n>C&&(C=(g=this.e()).length);n--;)g[t]=g[t++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=t},h.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.i.push(g),this.n+=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},h.prototype.D=function(A){var I,g,t,e=this.input.length/this.c+1|0,r=this.input,n=this.b;return A&&("number"==typeof A.t&&(e=A.t),"number"==typeof A.z&&(e+=A.z)),2>e?g=(t=(r.length-this.c)/this.r[2]/2*258|0)<n.length?n.length+t:n.length<<1:g=n.length*e,i?(I=new Uint8Array(g)).set(n):I=n,this.b=I},h.prototype.q=function(){var A,I,g,t,e,r=0,n=this.b,C=this.i,o=new(i?Uint8Array:Array)(this.n+(this.a-32768));if(0===C.length)return i?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);for(I=0,g=C.length;I<g;++I)for(t=0,e=(A=C[I]).length;t<e;++t)o[r++]=A[t];for(I=32768,g=this.a;I<g;++I)o[r++]=n[I];return this.i=[],this.buffer=o},h.prototype.A=function(){var A,I=this.a;return i?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 t,e,r=new B,C=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++],e=u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24,r.H=new Date(1e3*e),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&n(u,0,f),r.B!==(u[f++]|u[f++]<<8)&&A(Error("invalid header crc16"))),C=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*C&&(a=C),o=new h(u,{index:f,bufferSize:a}),r.data=t=o.g(),f=o.c,r.K=c=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,n(t,I,I)!==c&&A(Error("invalid CRC-32 checksum: 0x"+n(t,I,I).toString(16)+" / 0x"+c.toString(16))),r.L=C=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,(4294967295&t.length)!==C&&A(Error("invalid input size: "+(4294967295&t.length)+" / "+C)),this.m.push(r),this.c=f}this.s=!0;var y,l,w,F=this.m,p=0,D=0;for(y=0,l=F.length;y<l;++y)D+=F[y].data.length;if(i)for(w=new Uint8Array(D),y=0;y<l;++y)w.set(F[y].data,p),p+=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},t("Zlib.Gunzip",L),t("Zlib.Gunzip.prototype.decompress",L.prototype.g),t("Zlib.Gunzip.prototype.getMembers",L.prototype.F),t("Zlib.GunzipMember",B),t("Zlib.GunzipMember.prototype.getName",B.prototype.getName),t("Zlib.GunzipMember.prototype.getData",B.prototype.getData),t("Zlib.GunzipMember.prototype.getMtime",B.prototype.G)}).call(this)},868: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 t(I,t){var e,i=I.split("."),r=g;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(e=i.shift());)i.length||t===A?r=r[e]?r[e]:r[e]={}:r[e]=t}var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function i(A,I){if(this.index="number"==typeof I?I:0,this.f=0,this.buffer=A instanceof(e?Uint8Array:Array)?A:new(e?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,t=g.length,i=new(e?Uint8Array:Array)(t<<1);if(e)i.set(g);else for(I=0;I<t;++I)i[I]=g[I];return A.buffer=i}i.prototype.b=function(A,I,g){var t,e=this.buffer,i=this.index,n=this.f,C=e[i];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+n)C=C<<I|A,n+=I;else for(t=0;t<I;++t)C=C<<1|A>>I-t-1&1,8==++n&&(n=0,e[i++]=E[C],C=0,i===e.length&&(e=r(this)));e[i]=C,this.buffer=e,this.f=n,this.index=i},i.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++),e?A=I.subarray(0,g):(I.length=g,A=I),A};var n,C=new(e?Uint8Array:Array)(256);for(n=0;256>n;++n){for(var o=a=n,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;C[n]=(o<<B&255)>>>0}var E=C;function Q(A,I,g){var t,e="number"==typeof I?I:I=0,i="number"==typeof g?g:A.length;for(t=-1,e=7&i;e--;++I)t=t>>>8^h[255&(t^A[I])];for(e=i>>3;e--;I+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^h[255&(t^A[I])])>>>8^h[255&(t^A[I+1])])>>>8^h[255&(t^A[I+2])])>>>8^h[255&(t^A[I+3])])>>>8^h[255&(t^A[I+4])])>>>8^h[255&(t^A[I+5])])>>>8^h[255&(t^A[I+6])])>>>8^h[255&(t^A[I+7])];return(4294967295^t)>>>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(A){this.buffer=new(e?Uint16Array:Array)(2*A),this.length=0}function u(A,I){this.h=y,this.j=0,this.input=e&&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=e&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.c=I.outputIndex)),this.a||(this.a=new(e?Uint8Array:Array)(32768))}c.prototype.getParent=function(A){return 2*((A-2)/4|0)},c.prototype.push=function(A,I){var g,t,e,i=this.buffer;for(g=this.length,i[this.length++]=I,i[this.length++]=A;0<g&&(t=this.getParent(g),i[g]>i[t]);)e=i[g],i[g]=i[t],i[t]=e,e=i[g+1],i[g+1]=i[t+1],i[t+1]=e,g=t;return this.length},c.prototype.pop=function(){var A,I,g,t,e,i=this.buffer;for(I=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],e=0;!((t=2*e+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[e]);)g=i[e],i[e]=i[t],i[t]=g,g=i[e+1],i[e+1]=i[t+1],i[t+1]=g,e=t;return{index:A,value:I,length:this.length}};var f,y=2,l=[];for(f=0;288>f;f++)switch(!0){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,t,r,n,C=this.input;switch(this.h){case 0:for(r=0,n=C.length;r<n;){var o,B,a,E=t=e?C.subarray(r,r+65535):C.slice(r,r+65535),Q=(r+=t.length)===n,s=A,h=A,c=this.a,u=this.c;if(e){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,e)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 i(e?new Uint8Array(this.a.buffer):this.a,this.c);f.b(1,1,I),f.b(1,2,I);var w,F,p,d=D(this,C);for(w=0,F=d.length;w<F;w++)if(p=d[w],i.prototype.b.apply(f,l[p]),256<p)f.b(d[++w],d[++w],I),f.b(d[++w],5),f.b(d[++w],d[++w],I);else if(256===p)break;this.a=f.finish(),this.c=this.a.length;break;case y:var G,m,k,Y,R,M,N,b,v,H,L,J,K,q,T,x=new i(e?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=D(this,C),N=U(M=S(this.n,15)),v=U(b=S(this.m,7)),k=286;257<k&&0===M[k-1];k--);for(Y=30;1<Y&&0===b[Y-1];Y--);var O,Z,j,X,P,z,_=k,$=Y,AA=new(e?Uint32Array:Array)(_+$),IA=new(e?Uint32Array:Array)(316),gA=new(e?Uint8Array:Array)(19);for(O=Z=0;O<_;O++)AA[Z++]=M[O];for(O=0;O<$;O++)AA[Z++]=b[O];if(!e)for(O=0,X=gA.length;O<X;++O)gA[O]=0;for(O=P=0,X=AA.length;O<X;O+=Z){for(Z=1;O+Z<X&&AA[O+Z]===AA[O];++Z);if(j=Z,0===AA[O])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[O],gA[AA[O]]++,3>--j)for(;0<j--;)IA[P++]=AA[O],gA[AA[O]]++;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=e?IA.subarray(0,P):IA.slice(0,P),H=S(gA,7),q=0;19>q;q++)W[q]=H[V[q]];for(R=19;4<R&&0===W[R-1];R--);for(L=U(H),x.b(k-257,5,I),x.b(Y-1,5,I),x.b(R-4,4,I),q=0;q<R;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 tA,eA,iA,rA,nA,CA,oA,BA,aA=[N,M],EA=[v,b];for(nA=aA[0],CA=aA[1],oA=EA[0],BA=EA[1],tA=0,eA=m.length;tA<eA;++tA)if(iA=m[tA],x.b(nA[iA],CA[iA],I),256<iA)x.b(m[++tA],m[++tA],I),rA=m[++tA],x.b(oA[rA],BA[rA],I),x.b(m[++tA],m[++tA],I);else if(256===iA)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(!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:throw"invalid length: "+A}}var I,g,t=[];for(I=3;258>=I;I++)g=A(I),t[I]=g[2]<<24|g[1]<<16|g[0];return t}(),p=e?new Uint32Array(F):F;function D(I,g){function t(A,I){var g,t,e,i,r=A.k,n=[],C=0;switch(g=p[A.length],n[C++]=65535&g,n[C++]=g>>16&255,n[C++]=g>>24,!0){case 1===r:t=[0,r-1,0];break;case 2===r:t=[1,r-2,0];break;case 3===r:t=[2,r-3,0];break;case 4===r:t=[3,r-4,0];break;case 6>=r:t=[4,r-5,1];break;case 8>=r:t=[5,r-7,1];break;case 12>=r:t=[6,r-9,2];break;case 16>=r:t=[7,r-13,2];break;case 24>=r:t=[8,r-17,3];break;case 32>=r:t=[9,r-25,3];break;case 48>=r:t=[10,r-33,4];break;case 64>=r:t=[11,r-49,4];break;case 96>=r:t=[12,r-65,5];break;case 128>=r:t=[13,r-97,5];break;case 192>=r:t=[14,r-129,6];break;case 256>=r:t=[15,r-193,6];break;case 384>=r:t=[16,r-257,7];break;case 512>=r:t=[17,r-385,7];break;case 768>=r:t=[18,r-513,8];break;case 1024>=r:t=[19,r-769,8];break;case 1536>=r:t=[20,r-1025,9];break;case 2048>=r:t=[21,r-1537,9];break;case 3072>=r:t=[22,r-2049,10];break;case 4096>=r:t=[23,r-3073,10];break;case 6144>=r:t=[24,r-4097,11];break;case 8192>=r:t=[25,r-6145,11];break;case 12288>=r:t=[26,r-8193,12];break;case 16384>=r:t=[27,r-12289,12];break;case 24576>=r:t=[28,r-16385,13];break;case 32768>=r:t=[29,r-24577,13];break;default:throw"invalid distance"}for(g=t,n[C++]=g[0],n[C++]=g[1],n[C++]=g[2],e=0,i=n.length;e<i;++e)h[c++]=n[e];f[n[0]]++,y[n[3]]++,u=A.length+I-1,E=null}var i,r,n,C,o,B,a,E,Q,s={},h=e?new Uint16Array(2*g.length):[],c=0,u=0,f=new(e?Uint32Array:Array)(286),y=new(e?Uint32Array:Array)(30),l=I.j;if(!e){for(n=0;285>=n;)f[n++]=0;for(n=0;29>=n;)y[n++]=0}for(f[256]=1,i=0,r=g.length;i<r;++i){for(n=o=0,C=3;n<C&&i+n!==r;++n)o=o<<8|g[i+n];if(s[o]===A&&(s[o]=[]),B=s[o],!(0<u--)){for(;0<B.length&&32768<i-B[0];)B.shift();if(i+3>=r){for(E&&t(E,-1),n=0,C=r-i;n<C;++n)Q=g[i+n],h[c++]=Q,++f[Q];break}0<B.length?(a=d(g,i,B),E?E.length<a.length?(Q=g[i-1],h[c++]=Q,++f[Q],t(a,0)):t(E,-1):a.length<l?E=a:t(a,0)):E?t(E,-1):(Q=g[i],h[c++]=Q,++f[Q])}B.push(i)}return h[c++]=256,f[256]++,I.n=f,I.m=y,e?h.subarray(0,c):h}function d(A,I,g){var t,e,i,r,n,C,o=0,B=A.length;r=0,C=g.length;A:for(;r<C;r++){if(t=g[C-r-1],i=3,3<o){for(n=o;3<n;n--)if(A[t+n-1]!==A[I+n-1])continue A;i=o}for(;258>i&&I+i<B&&A[t+i]===A[I+i];)++i;if(i>o&&(e=t,o=i),258===i)break}return new w(o,I-e)}function S(A,I){var g,t,i,r,n,C=A.length,o=new c(572),B=new(e?Uint8Array:Array)(C);if(!e)for(r=0;r<C;r++)B[r]=0;for(r=0;r<C;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),t=new(e?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,n=o.length/2;r<n;++r)g[r]=o.pop(),t[r]=g[r].value;for(i=function(A,I,g){function t(A){var g=s[A][h[A]];g===I?(t(A+1),t(A+1)):--E[g],++h[A]}var i,r,n,C,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(i=0;i<I;++i)E[i]=g;for(n=0;n<B[g-1];++n)Q[g-1][n]=A[n],s[g-1][n]=n;for(i=0;i<g;++i)h[i]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(C=i=0,o=h[r+1],n=0;n<B[r];n++)(C=Q[r+1][o]+Q[r+1][o+1])>A[i]?(Q[r][n]=C,s[r][n]=I,o+=2):(Q[r][n]=A[i],s[r][n]=i,++i);h[r]=0,1===a[r]&&t(r)}return E}(t,t.length,I),r=0,n=g.length;r<n;++r)B[g[r].index]=i[r];return B}function U(A){var I,g,t,i,r=new(e?Uint16Array:Array)(A.length),n=[],C=[],o=0;for(I=0,g=A.length;I<g;I++)n[A[I]]=1+(0|n[A[I]]);for(I=1,g=16;I<=g;I++)C[I]=o,o+=0|n[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=C[A[I]],C[A[I]]+=1,t=r[I]=0,i=A[I];t<i;t++)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,t,i,r,n,C,o,B=new(e?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|=R),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(C=0,o=h.length;C<o;++C)255<(n=h.charCodeAt(C))&&(B[a++]=n>>>8&255),B[a++]=255&n;B[a++]=0}if(this.d.comment){for(C=0,o=c.length;C<o;++C)255<(n=c.charCodeAt(C))&&(B[a++]=n>>>8&255),B[a++]=255&n;B[a++]=0}return this.d.fhcrc&&(t=65535&Q(B,0,a),B[a++]=255&t,B[a++]=t>>>8&255),this.e.outputBuffer=B,this.e.outputIndex=a,B=(r=new u(E,this.e)).g(),a=r.c,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)),i=Q(E,A,A),B[a++]=255&i,B[a++]=i>>>8&255,B[a++]=i>>>16&255,B[a++]=i>>>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,e&&a<B.length&&(this.a=B=B.subarray(0,a)),B};var m=255,k=2,Y=8,R=16;t("Zlib.Gzip",G),t("Zlib.Gzip.prototype.compress",G.prototype.g)}).call(this)},869: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 t(I,t){var e,i=I.split("."),r=g;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(e=i.shift());)i.length||t===A?r=r[e]?r[e]:r[e]={}:r[e]=t}var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function i(A,I){if(this.index="number"==typeof I?I:0,this.d=0,this.buffer=A instanceof(e?Uint8Array:Array)?A:new(e?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,t=g.length,i=new(e?Uint8Array:Array)(t<<1);if(e)i.set(g);else for(I=0;I<t;++I)i[I]=g[I];return A.buffer=i}i.prototype.a=function(A,I,g){var t,e=this.buffer,i=this.index,n=this.d,C=e[i];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+n)C=C<<I|A,n+=I;else for(t=0;t<I;++t)C=C<<1|A>>I-t-1&1,8==++n&&(n=0,e[i++]=E[C],C=0,i===e.length&&(e=r(this)));e[i]=C,this.buffer=e,this.d=n,this.index=i},i.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++),e?A=I.subarray(0,g):(I.length=g,A=I),A};var n,C=new(e?Uint8Array:Array)(256);for(n=0;256>n;++n){for(var o=a=n,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;C[n]=(o<<B&255)>>>0}var E=C;function Q(A){this.buffer=new(e?Uint16Array:Array)(2*A),this.length=0}function s(A,I){this.e=c,this.f=0,this.input=e&&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=e&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.c=I.outputIndex)),this.b||(this.b=new(e?Uint8Array:Array)(32768))}Q.prototype.getParent=function(A){return 2*((A-2)/4|0)},Q.prototype.push=function(A,I){var g,t,e,i=this.buffer;for(g=this.length,i[this.length++]=I,i[this.length++]=A;0<g&&(t=this.getParent(g),i[g]>i[t]);)e=i[g],i[g]=i[t],i[t]=e,e=i[g+1],i[g+1]=i[t+1],i[t+1]=e,g=t;return this.length},Q.prototype.pop=function(){var A,I,g,t,e,i=this.buffer;for(I=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],e=0;!((t=2*e+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[e]);)g=i[e],i[e]=i[t],i[t]=g,g=i[e+1],i[e+1]=i[t+1],i[t+1]=g,e=t;return{index:A,value:I,length:this.length}};var h,c=2,u=[];for(h=0;288>h;h++)switch(!0){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,t,r,n,C=this.input;switch(this.e){case 0:for(r=0,n=C.length;r<n;){var o,B,a,E=t=e?C.subarray(r,r+65535):C.slice(r,r+65535),Q=(r+=t.length)===n,s=A,h=A,f=this.b,y=this.c;if(e){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,e)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 i(e?new Uint8Array(this.b.buffer):this.b,this.c);l.a(1,1,I),l.a(1,2,I);var F,d,S,U=w(this,C);for(F=0,d=U.length;F<d;F++)if(S=U[F],i.prototype.a.apply(l,u[S]),256<S)l.a(U[++F],U[++F],I),l.a(U[++F],5),l.a(U[++F],U[++F],I);else if(256===S)break;this.b=l.finish(),this.c=this.b.length;break;case c:var G,m,k,Y,R,M,N,b,v,H,L,J,K,q,T,x=new i(e?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,C),N=D(M=p(this.j,15)),v=D(b=p(this.i,7)),k=286;257<k&&0===M[k-1];k--);for(Y=30;1<Y&&0===b[Y-1];Y--);var O,Z,j,X,P,z,_=k,$=Y,AA=new(e?Uint32Array:Array)(_+$),IA=new(e?Uint32Array:Array)(316),gA=new(e?Uint8Array:Array)(19);for(O=Z=0;O<_;O++)AA[Z++]=M[O];for(O=0;O<$;O++)AA[Z++]=b[O];if(!e)for(O=0,X=gA.length;O<X;++O)gA[O]=0;for(O=P=0,X=AA.length;O<X;O+=Z){for(Z=1;O+Z<X&&AA[O+Z]===AA[O];++Z);if(j=Z,0===AA[O])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[O],gA[AA[O]]++,3>--j)for(;0<j--;)IA[P++]=AA[O],gA[AA[O]]++;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=e?IA.subarray(0,P):IA.slice(0,P),H=p(gA,7),q=0;19>q;q++)W[q]=H[V[q]];for(R=19;4<R&&0===W[R-1];R--);for(L=D(H),x.a(k-257,5,I),x.a(Y-1,5,I),x.a(R-4,4,I),q=0;q<R;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 tA,eA,iA,rA,nA,CA,oA,BA,aA=[N,M],EA=[v,b];for(nA=aA[0],CA=aA[1],oA=EA[0],BA=EA[1],tA=0,eA=m.length;tA<eA;++tA)if(iA=m[tA],x.a(nA[iA],CA[iA],I),256<iA)x.a(m[++tA],m[++tA],I),rA=m[++tA],x.a(oA[rA],BA[rA],I),x.a(m[++tA],m[++tA],I);else if(256===iA)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(!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:throw"invalid length: "+A}}var I,g,t=[];for(I=3;258>=I;I++)g=A(I),t[I]=g[2]<<24|g[1]<<16|g[0];return t}(),l=e?new Uint32Array(y):y;function w(I,g){function t(A,I){var g,t,e,i,r=A.g,n=[],C=0;switch(g=l[A.length],n[C++]=65535&g,n[C++]=g>>16&255,n[C++]=g>>24,!0){case 1===r:t=[0,r-1,0];break;case 2===r:t=[1,r-2,0];break;case 3===r:t=[2,r-3,0];break;case 4===r:t=[3,r-4,0];break;case 6>=r:t=[4,r-5,1];break;case 8>=r:t=[5,r-7,1];break;case 12>=r:t=[6,r-9,2];break;case 16>=r:t=[7,r-13,2];break;case 24>=r:t=[8,r-17,3];break;case 32>=r:t=[9,r-25,3];break;case 48>=r:t=[10,r-33,4];break;case 64>=r:t=[11,r-49,4];break;case 96>=r:t=[12,r-65,5];break;case 128>=r:t=[13,r-97,5];break;case 192>=r:t=[14,r-129,6];break;case 256>=r:t=[15,r-193,6];break;case 384>=r:t=[16,r-257,7];break;case 512>=r:t=[17,r-385,7];break;case 768>=r:t=[18,r-513,8];break;case 1024>=r:t=[19,r-769,8];break;case 1536>=r:t=[20,r-1025,9];break;case 2048>=r:t=[21,r-1537,9];break;case 3072>=r:t=[22,r-2049,10];break;case 4096>=r:t=[23,r-3073,10];break;case 6144>=r:t=[24,r-4097,11];break;case 8192>=r:t=[25,r-6145,11];break;case 12288>=r:t=[26,r-8193,12];break;case 16384>=r:t=[27,r-12289,12];break;case 24576>=r:t=[28,r-16385,13];break;case 32768>=r:t=[29,r-24577,13];break;default:throw"invalid distance"}for(g=t,n[C++]=g[0],n[C++]=g[1],n[C++]=g[2],e=0,i=n.length;e<i;++e)h[c++]=n[e];f[n[0]]++,y[n[3]]++,u=A.length+I-1,E=null}var i,r,n,C,o,B,a,E,Q,s={},h=e?new Uint16Array(2*g.length):[],c=0,u=0,f=new(e?Uint32Array:Array)(286),y=new(e?Uint32Array:Array)(30),w=I.f;if(!e){for(n=0;285>=n;)f[n++]=0;for(n=0;29>=n;)y[n++]=0}for(f[256]=1,i=0,r=g.length;i<r;++i){for(n=o=0,C=3;n<C&&i+n!==r;++n)o=o<<8|g[i+n];if(s[o]===A&&(s[o]=[]),B=s[o],!(0<u--)){for(;0<B.length&&32768<i-B[0];)B.shift();if(i+3>=r){for(E&&t(E,-1),n=0,C=r-i;n<C;++n)Q=g[i+n],h[c++]=Q,++f[Q];break}0<B.length?(a=F(g,i,B),E?E.length<a.length?(Q=g[i-1],h[c++]=Q,++f[Q],t(a,0)):t(E,-1):a.length<w?E=a:t(a,0)):E?t(E,-1):(Q=g[i],h[c++]=Q,++f[Q])}B.push(i)}return h[c++]=256,f[256]++,I.j=f,I.i=y,e?h.subarray(0,c):h}function F(A,I,g){var t,e,i,r,n,C,o=0,B=A.length;r=0,C=g.length;A:for(;r<C;r++){if(t=g[C-r-1],i=3,3<o){for(n=o;3<n;n--)if(A[t+n-1]!==A[I+n-1])continue A;i=o}for(;258>i&&I+i<B&&A[t+i]===A[I+i];)++i;if(i>o&&(e=t,o=i),258===i)break}return new f(o,I-e)}function p(A,I){var g,t,i,r,n,C=A.length,o=new Q(572),B=new(e?Uint8Array:Array)(C);if(!e)for(r=0;r<C;r++)B[r]=0;for(r=0;r<C;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),t=new(e?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,n=o.length/2;r<n;++r)g[r]=o.pop(),t[r]=g[r].value;for(i=function(A,I,g){function t(A){var g=s[A][h[A]];g===I?(t(A+1),t(A+1)):--E[g],++h[A]}var i,r,n,C,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(i=0;i<I;++i)E[i]=g;for(n=0;n<B[g-1];++n)Q[g-1][n]=A[n],s[g-1][n]=n;for(i=0;i<g;++i)h[i]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(C=i=0,o=h[r+1],n=0;n<B[r];n++)(C=Q[r+1][o]+Q[r+1][o+1])>A[i]?(Q[r][n]=C,s[r][n]=I,o+=2):(Q[r][n]=A[i],s[r][n]=i,++i);h[r]=0,1===a[r]&&t(r)}return E}(t,t.length,I),r=0,n=g.length;r<n;++r)B[g[r].index]=i[r];return B}function D(A){var I,g,t,i,r=new(e?Uint16Array:Array)(A.length),n=[],C=[],o=0;for(I=0,g=A.length;I<g;I++)n[A[I]]=1+(0|n[A[I]]);for(I=1,g=16;I<=g;I++)C[I]=o,o+=0|n[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=C[A[I]],C[A[I]]+=1,t=r[I]=0,i=A[I];t<i;t++)r[I]=r[I]<<1|1&o,o>>>=1;return r}t("Zlib.RawDeflate",s),t("Zlib.RawDeflate.prototype.compress",s.prototype.h);var d,S,U,G,m={NONE:0,FIXED:1,DYNAMIC:c};if(Object.keys)d=Object.keys(m);else for(S in d=[],U=0,m)d[U++]=S;for(U=0,G=d.length;U<G;++U)t("Zlib.RawDeflate.CompressionType."+(S=d[U]),m[S])}).call(this)},870: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,t){var e,i=g.split("."),r=I;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(e=i.shift());)i.length||t===A?r=r[e]?r[e]:r[e]={}:r[e]=t}var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function e(A){var I,g,e,i,r,n,C,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(t?Uint32Array:Array)(I),e=1,i=0,r=2;e<=Q;){for(o=0;o<E;++o)if(A[o]===e){for(n=0,C=i,B=0;B<e;++B)n=n<<1|1&C,C>>=1;for(a=e<<16|o,B=n;B<I;B+=r)g[B]=a;++i}++e,i<<=1,r<<=1}return[g,Q,s]}function i(A,I){switch(this.g=[],this.h=32768,this.c=this.f=this.d=this.k=0,this.input=t?new Uint8Array(A):A,this.l=!1,this.i=n,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(t?Uint8Array:Array)(32768+this.h+258);break;case n:this.a=0,this.b=new(t?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,n=1;i.prototype.t=function(){for(;!this.l;){var I=S(this,3);switch(1&I&&(this.l=!0),I>>>=1){case 0:var g=this.input,i=this.d,C=this.b,o=this.a,B=g.length,E=A,Q=C.length,s=A;if(this.c=this.f=0,i+1>=B)throw Error("invalid uncompressed block header: LEN");if(E=g[i++]|g[i++]<<8,i+1>=B)throw Error("invalid uncompressed block header: NLEN");if(E===~(g[i++]|g[i++]<<8))throw Error("invalid uncompressed block header: length verify");if(i+E>g.length)throw Error("input buffer is broken");switch(this.i){case r:for(;o+E>C.length;){if(E-=s=Q-o,t)C.set(g.subarray(i,i+s),o),o+=s,i+=s;else for(;s--;)C[o++]=g[i++];this.a=o,C=this.e(),o=this.a}break;case n:for(;o+E>C.length;)C=this.e({o:2});break;default:throw Error("invalid inflate mode")}if(t)C.set(g.subarray(i,i+E),o),o+=E,i+=E;else for(;E--;)C[o++]=g[i++];this.d=i,this.a=o,this.b=C;break;case 1:this.j(p,d);break;case 2:var h,c,u,f,y=S(this,5)+257,l=S(this,5)+1,w=S(this,4)+4,F=new(t?Uint8Array:Array)(a.length),D=A,G=A,m=A,k=A,Y=A;for(Y=0;Y<w;++Y)F[a[Y]]=S(this,3);if(!t)for(Y=w,w=F.length;Y<w;++Y)F[a[Y]]=0;for(h=e(F),D=new(t?Uint8Array:Array)(y+l),Y=0,f=y+l;Y<f;)switch(G=U(this,h),G){case 16:for(k=3+S(this,2);k--;)D[Y++]=m;break;case 17:for(k=3+S(this,3);k--;)D[Y++]=0;m=0;break;case 18:for(k=11+S(this,7);k--;)D[Y++]=0;m=0;break;default:m=D[Y++]=G}c=e(t?D.subarray(0,y):D.slice(0,y)),u=e(t?D.subarray(y):D.slice(y)),this.j(c,u);break;default:throw Error("unknown BTYPE: "+I)}}return this.m()};var C,o,B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],a=t?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=t?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=t?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=t?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=t?new Uint8Array(f):f,l=new(t?Uint8Array:Array)(288);for(C=0,o=l.length;C<o;++C)l[C]=143>=C?8:255>=C?9:279>=C?7:8;var w,F,p=e(l),D=new(t?Uint8Array:Array)(30);for(w=0,F=D.length;w<F;++w)D[w]=5;var d=e(D);function S(A,I){for(var g,t=A.f,e=A.c,i=A.input,r=A.d,n=i.length;e<I;){if(r>=n)throw Error("input buffer is broken");t|=i[r++]<<e,e+=8}return g=t&(1<<I)-1,A.f=t>>>I,A.c=e-I,A.d=r,g}function U(A,I){for(var g,t,e=A.f,i=A.c,r=A.input,n=A.d,C=r.length,o=I[0],B=I[1];i<B&&!(n>=C);)e|=r[n++]<<i,i+=8;if((t=(g=o[e&(1<<B)-1])>>>16)>i)throw Error("invalid code length: "+t);return A.f=e>>t,A.c=i-t,A.d=n,65535&g}i.prototype.j=function(A,I){var g=this.b,t=this.a;this.n=A;for(var e,i,r,n,C=g.length-258;256!==(e=U(this,A));)if(256>e)t>=C&&(this.a=t,g=this.e(),t=this.a),g[t++]=e;else for(n=Q[i=e-257],0<h[i]&&(n+=S(this,h[i])),e=U(this,I),r=u[e],0<y[e]&&(r+=S(this,y[e])),t>=C&&(this.a=t,g=this.e(),t=this.a);n--;)g[t]=g[t++-r];for(;8<=this.c;)this.c-=8,this.d--;this.a=t},i.prototype.s=function(A,I){var g=this.b,t=this.a;this.n=A;for(var e,i,r,n,C=g.length;256!==(e=U(this,A));)if(256>e)t>=C&&(C=(g=this.e()).length),g[t++]=e;else for(n=Q[i=e-257],0<h[i]&&(n+=S(this,h[i])),e=U(this,I),r=u[e],0<y[e]&&(r+=S(this,y[e])),t+n>C&&(C=(g=this.e()).length);n--;)g[t]=g[t++-r];for(;8<=this.c;)this.c-=8,this.d--;this.a=t},i.prototype.e=function(){var A,I,g=new(t?Uint8Array:Array)(this.a-32768),e=this.a-32768,i=this.b;if(t)g.set(i.subarray(32768,g.length));else for(A=0,I=g.length;A<I;++A)g[A]=i[A+32768];if(this.g.push(g),this.k+=g.length,t)i.set(i.subarray(e,e+32768));else for(A=0;32768>A;++A)i[A]=i[e+A];return this.a=32768,i},i.prototype.u=function(A){var I,g,e,i=this.input.length/this.d+1|0,r=this.input,n=this.b;return A&&("number"==typeof A.o&&(i=A.o),"number"==typeof A.q&&(i+=A.q)),2>i?g=(e=(r.length-this.d)/this.n[2]/2*258|0)<n.length?n.length+e:n.length<<1:g=n.length*i,t?(I=new Uint8Array(g)).set(n):I=n,this.b=I},i.prototype.m=function(){var A,I,g,e,i,r=0,n=this.b,C=this.g,o=new(t?Uint8Array:Array)(this.k+(this.a-32768));if(0===C.length)return t?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);for(I=0,g=C.length;I<g;++I)for(e=0,i=(A=C[I]).length;e<i;++e)o[r++]=A[e];for(I=32768,g=this.a;I<g;++I)o[r++]=n[I];return this.g=[],this.buffer=o},i.prototype.r=function(){var A,I=this.a;return t?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",i),g("Zlib.RawInflate.prototype.decompress",i.prototype.t);var G,m,k,Y,R={ADAPTIVE:n,BLOCK:r};if(Object.keys)G=Object.keys(R);else for(m in G=[],k=0,R)G[k++]=m;for(k=0,Y=G.length;k<Y;++k)g("Zlib.RawInflate.BufferType."+(m=G[k]),R[m])}).call(this)},871: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,t=A.split("."),e=aa;!(t[0]in e)&&e.execScript&&e.execScript("var "+t[0]);for(;t.length&&(g=t.shift());)t.length||I===r?e=e[g]?e[g]:e[g]={}:e[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,t,e,i,r,n,C,o,B,a=A.length,E=0,Q=Number.POSITIVE_INFINITY;for(C=0;C<a;++C)A[C]>E&&(E=A[C]),A[C]<Q&&(Q=A[C]);for(I=1<<E,g=new(y?Uint32Array:Array)(I),t=1,e=0,i=2;t<=E;){for(C=0;C<a;++C)if(A[C]===t){for(r=0,n=e,o=0;o<t;++o)r=r<<1|1&n,n>>=1;for(B=t<<16|C,o=r;o<I;o+=i)g[o]=B;++e}++t,e<<=1,i<<=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,t=[];for(I=3;258>=I;I++)g=A(I),t[I]=g[2]<<24|g[1]<<16|g[0];return t}();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,t=this.b,e=this.a,i=I.length,n=r,C=t.length,o=r;switch(this.d=this.f=0,g+1>=i&&l(Error("invalid uncompressed block header: LEN")),n=I[g++]|I[g++]<<8,g+1>=i&&l(Error("invalid uncompressed block header: NLEN")),n===~(I[g++]|I[g++]<<8)&&l(Error("invalid uncompressed block header: length verify")),g+n>I.length&&l(Error("input buffer is broken")),this.n){case ga:for(;e+n>t.length;){if(n-=o=C-e,y)t.set(I.subarray(g,g+o),e),e+=o,g+=o;else for(;o--;)t[e++]=I[g++];this.a=e,t=this.e(),e=this.a}break;case J:for(;e+n>t.length;)t=this.e({H:2});break;default:l(Error("invalid inflate mode"))}if(y)t.set(I.subarray(g,g+n),e),e+=n,g+=n;else for(;n--;)t[e++]=I[g++];this.c=g,this.a=e,this.b=t;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,d=r;for(d=0;d<c;++d)u[L[d]]=K(this,3);if(!y)for(d=c,c=u.length;d<c;++d)u[L[d]]=0;for(B=D(u),f=new(y?Uint8Array:Array)(s+h),d=0,Q=s+h;d<Q;)switch(w=M(this,B),w){case 16:for(p=3+K(this,2);p--;)f[d++]=F;break;case 17:for(p=3+K(this,3);p--;)f[d++]=0;F=0;break;case 18:for(p=11+K(this,7);p--;)f[d++]=0;F=0;break;default:F=f[d++]=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,t=A.f,e=A.d,i=A.input,r=A.c,n=i.length;e<I;)r>=n&&l(Error("input buffer is broken")),t|=i[r++]<<e,e+=8;return g=t&(1<<I)-1,A.f=t>>>I,A.d=e-I,A.c=r,g}function M(A,I){for(var g,t,e=A.f,i=A.d,r=A.input,n=A.c,C=r.length,o=I[0],B=I[1];i<B&&!(n>=C);)e|=r[n++]<<i,i+=8;return(t=(g=o[e&(1<<B)-1])>>>16)>i&&l(Error("invalid code length: "+t)),A.f=e>>t,A.d=i-t,A.c=n,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,t=this.a;this.C=A;for(var e,i,r,n,C=g.length-258;256!==(e=M(this,A));)if(256>e)t>=C&&(this.a=t,g=this.e(),t=this.a),g[t++]=e;else for(n=la[i=e-257],0<N[i]&&(n+=K(this,N[i])),e=M(this,I),r=oa[e],0<P[e]&&(r+=K(this,P[e])),t>=C&&(this.a=t,g=this.e(),t=this.a);n--;)g[t]=g[t++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=t},t.V=function(A,I){var g=this.b,t=this.a;this.C=A;for(var e,i,r,n,C=g.length;256!==(e=M(this,A));)if(256>e)t>=C&&(C=(g=this.e()).length),g[t++]=e;else for(n=la[i=e-257],0<N[i]&&(n+=K(this,N[i])),e=M(this,I),r=oa[e],0<P[e]&&(r+=K(this,P[e])),t+n>C&&(C=(g=this.e()).length);n--;)g[t]=g[t++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=t},t.e=function(){var A,I,g=new(y?Uint8Array:Array)(this.a-32768),t=this.a-32768,e=this.b;if(y)g.set(e.subarray(32768,g.length));else for(A=0,I=g.length;A<I;++A)g[A]=e[A+32768];if(this.l.push(g),this.t+=g.length,y)e.set(e.subarray(t,t+32768));else for(A=0;32768>A;++A)e[A]=e[t+A];return this.a=32768,e},t.W=function(A){var I,g,t,e=this.input.length/this.c+1|0,i=this.input,r=this.b;return A&&("number"==typeof A.H&&(e=A.H),"number"==typeof A.P&&(e+=A.P)),2>e?g=(t=(i.length-this.c)/this.C[2]/2*258|0)<r.length?r.length+t:r.length<<1:g=r.length*e,y?(I=new Uint8Array(g)).set(r):I=r,this.b=I},t.B=function(){var A,I,g,t,e,i=0,r=this.b,n=this.l,C=new(y?Uint8Array:Array)(this.t+(this.a-32768));if(0===n.length)return y?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)C[i++]=A[t];for(I=32768,g=this.a;I<g;++I)C[i++]=r[I];return this.l=[],this.buffer=C},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,t=[305419896,591751049,878082192];for(y&&(t=new Uint32Array(t)),I=0,g=A.length;I<g;++I)this.k(t,255&A[I]);return t};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,t,e,i=[],n={};if(!A.i){if(A.o===r){var C,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"))}C=A.D,(o[C++]!==Z[0]||o[C++]!==Z[1]||o[C++]!==Z[2]||o[C++]!==Z[3])&&l(Error("invalid signature")),A.ha=o[C++]|o[C++]<<8,A.ja=o[C++]|o[C++]<<8,A.ka=o[C++]|o[C++]<<8,A.aa=o[C++]|o[C++]<<8,A.Q=(o[C++]|o[C++]<<8|o[C++]<<16|o[C++]<<24)>>>0,A.o=(o[C++]|o[C++]<<8|o[C++]<<16|o[C++]<<24)>>>0,A.w=o[C++]|o[C++]<<8,A.v=y?o.subarray(C,C+A.w):o.slice(C,C+A.w)}for(I=A.o,t=0,e=A.aa;t<e;++t)(g=new ta(A.input,I)).parse(),I+=g.length,i[t]=g,n[g.filename]=t;A.Q<I-A.o&&l(Error("invalid file header size")),A.i=i,A.G=n}}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,t=[];for(this.i||$(this),A=0,I=(g=this.i).length;A<I;++A)t[A]=g[A].filename;return t},t.r=function(A,g){var t,e;this.G||$(this),(t=this.G[A])===r&&l(Error(A+" not found")),e=g||{};var i,n,o,B,a,E,Q,s,h=this.input,c=this.i;if(c||$(this),c[t]===r&&l(Error("wrong index")),n=c[t].$,(i=new ua(this.input,n)).parse(),n+=i.length,o=i.z,0!=(i.I&va.N)){for(!e.password&&!this.j&&l(Error("please set password")),E=this.S(e.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(i.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:i.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,i.p!==a&&l(Error("wrong crc: file=0x"+i.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)},872: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 t(I,t){var e,i=I.split("."),r=g;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(e=i.shift());)i.length||t===A?r=r[e]?r[e]:r[e]={}:r[e]=t}var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function i(A,I){if(this.index="number"==typeof I?I:0,this.f=0,this.buffer=A instanceof(e?Uint8Array:Array)?A:new(e?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,t=g.length,i=new(e?Uint8Array:Array)(t<<1);if(e)i.set(g);else for(I=0;I<t;++I)i[I]=g[I];return A.buffer=i}i.prototype.b=function(A,I,g){var t,e=this.buffer,i=this.index,n=this.f,C=e[i];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+n)C=C<<I|A,n+=I;else for(t=0;t<I;++t)C=C<<1|A>>I-t-1&1,8==++n&&(n=0,e[i++]=E[C],C=0,i===e.length&&(e=r(this)));e[i]=C,this.buffer=e,this.f=n,this.index=i},i.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++),e?A=I.subarray(0,g):(I.length=g,A=I),A};var n,C=new(e?Uint8Array:Array)(256);for(n=0;256>n;++n){for(var o=a=n,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;C[n]=(o<<B&255)>>>0}var E=C;function Q(I){var g,t=A,e="number"==typeof t?t:t=0,i=I.length;for(g=-1,e=7&i;e--;++t)g=g>>>8^h[255&(g^I[t])];for(e=i>>3;e--;t+=8)g=(g=(g=(g=(g=(g=(g=(g=g>>>8^h[255&(g^I[t])])>>>8^h[255&(g^I[t+1])])>>>8^h[255&(g^I[t+2])])>>>8^h[255&(g^I[t+3])])>>>8^h[255&(g^I[t+4])])>>>8^h[255&(g^I[t+5])])>>>8^h[255&(g^I[t+6])])>>>8^h[255&(g^I[t+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=e?new Uint32Array(s):s;function c(A){this.buffer=new(e?Uint16Array:Array)(2*A),this.length=0}function u(A,I){this.k=y,this.l=0,this.input=e&&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=e&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.e=I.outputIndex)),this.c||(this.c=new(e?Uint8Array:Array)(32768))}c.prototype.getParent=function(A){return 2*((A-2)/4|0)},c.prototype.push=function(A,I){var g,t,e,i=this.buffer;for(g=this.length,i[this.length++]=I,i[this.length++]=A;0<g&&(t=this.getParent(g),i[g]>i[t]);)e=i[g],i[g]=i[t],i[t]=e,e=i[g+1],i[g+1]=i[t+1],i[t+1]=e,g=t;return this.length},c.prototype.pop=function(){var A,I,g,t,e,i=this.buffer;for(I=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],e=0;!((t=2*e+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[e]);)g=i[e],i[e]=i[t],i[t]=g,g=i[e+1],i[e+1]=i[t+1],i[t+1]=g,e=t;return{index:A,value:I,length:this.length}};var f,y=2,l=[];for(f=0;288>f;f++)switch(!0){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,t,r,n,C=this.input;switch(this.k){case 0:for(r=0,n=C.length;r<n;){var o,B,a,E=t=e?C.subarray(r,r+65535):C.slice(r,r+65535),Q=(r+=t.length)===n,s=A,h=A,c=this.c,u=this.e;if(e){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,e)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 i(e?new Uint8Array(this.c.buffer):this.c,this.e);f.b(1,1,I),f.b(1,2,I);var w,F,p,d=D(this,C);for(w=0,F=d.length;w<F;w++)if(p=d[w],i.prototype.b.apply(f,l[p]),256<p)f.b(d[++w],d[++w],I),f.b(d[++w],5),f.b(d[++w],d[++w],I);else if(256===p)break;this.c=f.finish(),this.e=this.c.length;break;case y:var G,m,k,Y,R,M,N,b,v,H,L,J,K,q,T,x=new i(e?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=D(this,C),N=U(M=S(this.p,15)),v=U(b=S(this.o,7)),k=286;257<k&&0===M[k-1];k--);for(Y=30;1<Y&&0===b[Y-1];Y--);var O,Z,j,X,P,z,_=k,$=Y,AA=new(e?Uint32Array:Array)(_+$),IA=new(e?Uint32Array:Array)(316),gA=new(e?Uint8Array:Array)(19);for(O=Z=0;O<_;O++)AA[Z++]=M[O];for(O=0;O<$;O++)AA[Z++]=b[O];if(!e)for(O=0,X=gA.length;O<X;++O)gA[O]=0;for(O=P=0,X=AA.length;O<X;O+=Z){for(Z=1;O+Z<X&&AA[O+Z]===AA[O];++Z);if(j=Z,0===AA[O])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[O],gA[AA[O]]++,3>--j)for(;0<j--;)IA[P++]=AA[O],gA[AA[O]]++;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=e?IA.subarray(0,P):IA.slice(0,P),H=S(gA,7),q=0;19>q;q++)W[q]=H[V[q]];for(R=19;4<R&&0===W[R-1];R--);for(L=U(H),x.b(k-257,5,I),x.b(Y-1,5,I),x.b(R-4,4,I),q=0;q<R;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 tA,eA,iA,rA,nA,CA,oA,BA,aA=[N,M],EA=[v,b];for(nA=aA[0],CA=aA[1],oA=EA[0],BA=EA[1],tA=0,eA=m.length;tA<eA;++tA)if(iA=m[tA],x.b(nA[iA],CA[iA],I),256<iA)x.b(m[++tA],m[++tA],I),rA=m[++tA],x.b(oA[rA],BA[rA],I),x.b(m[++tA],m[++tA],I);else if(256===iA)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(!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:throw"invalid length: "+A}}var I,g,t=[];for(I=3;258>=I;I++)g=A(I),t[I]=g[2]<<24|g[1]<<16|g[0];return t}(),p=e?new Uint32Array(F):F;function D(I,g){function t(A,I){var g,t,e,i,r=A.n,n=[],C=0;switch(g=p[A.length],n[C++]=65535&g,n[C++]=g>>16&255,n[C++]=g>>24,!0){case 1===r:t=[0,r-1,0];break;case 2===r:t=[1,r-2,0];break;case 3===r:t=[2,r-3,0];break;case 4===r:t=[3,r-4,0];break;case 6>=r:t=[4,r-5,1];break;case 8>=r:t=[5,r-7,1];break;case 12>=r:t=[6,r-9,2];break;case 16>=r:t=[7,r-13,2];break;case 24>=r:t=[8,r-17,3];break;case 32>=r:t=[9,r-25,3];break;case 48>=r:t=[10,r-33,4];break;case 64>=r:t=[11,r-49,4];break;case 96>=r:t=[12,r-65,5];break;case 128>=r:t=[13,r-97,5];break;case 192>=r:t=[14,r-129,6];break;case 256>=r:t=[15,r-193,6];break;case 384>=r:t=[16,r-257,7];break;case 512>=r:t=[17,r-385,7];break;case 768>=r:t=[18,r-513,8];break;case 1024>=r:t=[19,r-769,8];break;case 1536>=r:t=[20,r-1025,9];break;case 2048>=r:t=[21,r-1537,9];break;case 3072>=r:t=[22,r-2049,10];break;case 4096>=r:t=[23,r-3073,10];break;case 6144>=r:t=[24,r-4097,11];break;case 8192>=r:t=[25,r-6145,11];break;case 12288>=r:t=[26,r-8193,12];break;case 16384>=r:t=[27,r-12289,12];break;case 24576>=r:t=[28,r-16385,13];break;case 32768>=r:t=[29,r-24577,13];break;default:throw"invalid distance"}for(g=t,n[C++]=g[0],n[C++]=g[1],n[C++]=g[2],e=0,i=n.length;e<i;++e)h[c++]=n[e];f[n[0]]++,y[n[3]]++,u=A.length+I-1,E=null}var i,r,n,C,o,B,a,E,Q,s={},h=e?new Uint16Array(2*g.length):[],c=0,u=0,f=new(e?Uint32Array:Array)(286),y=new(e?Uint32Array:Array)(30),l=I.l;if(!e){for(n=0;285>=n;)f[n++]=0;for(n=0;29>=n;)y[n++]=0}for(f[256]=1,i=0,r=g.length;i<r;++i){for(n=o=0,C=3;n<C&&i+n!==r;++n)o=o<<8|g[i+n];if(s[o]===A&&(s[o]=[]),B=s[o],!(0<u--)){for(;0<B.length&&32768<i-B[0];)B.shift();if(i+3>=r){for(E&&t(E,-1),n=0,C=r-i;n<C;++n)Q=g[i+n],h[c++]=Q,++f[Q];break}0<B.length?(a=d(g,i,B),E?E.length<a.length?(Q=g[i-1],h[c++]=Q,++f[Q],t(a,0)):t(E,-1):a.length<l?E=a:t(a,0)):E?t(E,-1):(Q=g[i],h[c++]=Q,++f[Q])}B.push(i)}return h[c++]=256,f[256]++,I.p=f,I.o=y,e?h.subarray(0,c):h}function d(A,I,g){var t,e,i,r,n,C,o=0,B=A.length;r=0,C=g.length;A:for(;r<C;r++){if(t=g[C-r-1],i=3,3<o){for(n=o;3<n;n--)if(A[t+n-1]!==A[I+n-1])continue A;i=o}for(;258>i&&I+i<B&&A[t+i]===A[I+i];)++i;if(i>o&&(e=t,o=i),258===i)break}return new w(o,I-e)}function S(A,I){var g,t,i,r,n,C=A.length,o=new c(572),B=new(e?Uint8Array:Array)(C);if(!e)for(r=0;r<C;r++)B[r]=0;for(r=0;r<C;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),t=new(e?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,n=o.length/2;r<n;++r)g[r]=o.pop(),t[r]=g[r].value;for(i=function(A,I,g){function t(A){var g=s[A][h[A]];g===I?(t(A+1),t(A+1)):--E[g],++h[A]}var i,r,n,C,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(i=0;i<I;++i)E[i]=g;for(n=0;n<B[g-1];++n)Q[g-1][n]=A[n],s[g-1][n]=n;for(i=0;i<g;++i)h[i]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(C=i=0,o=h[r+1],n=0;n<B[r];n++)(C=Q[r+1][o]+Q[r+1][o+1])>A[i]?(Q[r][n]=C,s[r][n]=I,o+=2):(Q[r][n]=A[i],s[r][n]=i,++i);h[r]=0,1===a[r]&&t(r)}return E}(t,t.length,I),r=0,n=g.length;r<n;++r)B[g[r].index]=i[r];return B}function U(A){var I,g,t,i,r=new(e?Uint16Array:Array)(A.length),n=[],C=[],o=0;for(I=0,g=A.length;I<g;I++)n[A[I]]=1+(0|n[A[I]]);for(I=1,g=16;I<=g;I++)C[I]=o,o+=0|n[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=C[A[I]],C[A[I]]+=1,t=r[I]=0,i=A[I];t<i;t++)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 R(A,I){var g,t=65535&A[2]|2;return g=t*(1^t)>>8&255,M(A,I),g^I}function M(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 N(A,I){var g,e,i,r;if(Object.keys)g=Object.keys(I);else for(e in g=[],i=0,I)g[i++]=e;for(i=0,r=g.length;i<r;++i)t(A+"."+(e=g[i]),I[e])}G.prototype.m=function(A,g){g=g||{};var t,i=A.length,r=0;if(e&&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(),t=I;break;default:throw Error("unknown compression method:"+g.compressionMethod)}this.files.push({buffer:A,a:g,j:t,r:!1,size:i,h:r})},G.prototype.q=function(A){this.i=A},G.prototype.g=function(){var g,t,i,r,n,C,o,B,a,E,s,h,c,f,y,l,w,F,p,D,d,S,U,G,N=this.files,b=0,v=0;for(d=0,S=N.length;d<S;++d){if(c=(g=N[d]).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(e&&(J=new Uint32Array(J)),K=0,H=L.length;K<H;++K)M(J,255&L[K]);for(D=J,F=g.buffer,e?((p=new Uint8Array(F.length+12)).set(F,12),F=p):F.unshift(0,0,0,0,0,0,0,0,0,0,0,0),U=0;12>U;++U)F[U]=R(D,11===d?255&g.h:256*Math.random()|0);for(G=F.length;U<G;++U)F[U]=R(D,F[U]);g.buffer=F}b+=30+c+g.buffer.length,v+=46+c+f}for(t=new(e?Uint8Array:Array)(b+v+(22+(this.d?this.d.length:0))),i=0,n=(r=b)+v,d=0,S=N.length;d<S;++d){if(c=(g=N[d]).a.filename?g.a.filename.length:0,f=g.a.comment?g.a.comment.length:0,C=i,t[i++]=k[0],t[i++]=k[1],t[i++]=k[2],t[i++]=k[3],t[r++]=m[0],t[r++]=m[1],t[r++]=m[2],t[r++]=m[3],t[r++]=20,t[r++]=g.a.os||0,t[i++]=t[r++]=20,o=t[i++]=t[r++]=0,(g.a.password||this.i)&&(o|=1),t[i++]=t[r++]=255&o,t[i++]=t[r++]=o>>8&255,B=g.a.compressionMethod,t[i++]=t[r++]=255&B,t[i++]=t[r++]=B>>8&255,a=g.a.date||new Date,t[i++]=t[r++]=(7&a.getMinutes())<<5|a.getSeconds()/2|0,t[i++]=t[r++]=a.getHours()<<3|a.getMinutes()>>3,t[i++]=t[r++]=(a.getMonth()+1&7)<<5|a.getDate(),t[i++]=t[r++]=(a.getFullYear()-1980&127)<<1|a.getMonth()+1>>3,E=g.h,t[i++]=t[r++]=255&E,t[i++]=t[r++]=E>>8&255,t[i++]=t[r++]=E>>16&255,t[i++]=t[r++]=E>>24&255,s=g.buffer.length,t[i++]=t[r++]=255&s,t[i++]=t[r++]=s>>8&255,t[i++]=t[r++]=s>>16&255,t[i++]=t[r++]=s>>24&255,h=g.size,t[i++]=t[r++]=255&h,t[i++]=t[r++]=h>>8&255,t[i++]=t[r++]=h>>16&255,t[i++]=t[r++]=h>>24&255,t[i++]=t[r++]=255&c,t[i++]=t[r++]=c>>8&255,t[i++]=t[r++]=0,t[i++]=t[r++]=0,t[r++]=255&f,t[r++]=f>>8&255,t[r++]=0,t[r++]=0,t[r++]=0,t[r++]=0,t[r++]=0,t[r++]=0,t[r++]=0,t[r++]=0,t[r++]=255&C,t[r++]=C>>8&255,t[r++]=C>>16&255,t[r++]=C>>24&255,y=g.a.filename)if(e)t.set(y,i),t.set(y,r),i+=c,r+=c;else for(U=0;U<c;++U)t[i++]=t[r++]=y[U];if(l=g.a.extraField)if(e)t.set(l,i),t.set(l,r),i+=0,r+=0;else for(U=0;U<f;++U)t[i++]=t[r++]=l[U];if(w=g.a.comment)if(e)t.set(w,r),r+=f;else for(U=0;U<f;++U)t[r++]=w[U];if(e)t.set(g.buffer,i),i+=g.buffer.length;else for(U=0,G=g.buffer.length;U<G;++U)t[i++]=g.buffer[U]}if(t[n++]=Y[0],t[n++]=Y[1],t[n++]=Y[2],t[n++]=Y[3],t[n++]=0,t[n++]=0,t[n++]=0,t[n++]=0,t[n++]=255&S,t[n++]=S>>8&255,t[n++]=255&S,t[n++]=S>>8&255,t[n++]=255&v,t[n++]=v>>8&255,t[n++]=v>>16&255,t[n++]=v>>24&255,t[n++]=255&b,t[n++]=b>>8&255,t[n++]=b>>16&255,t[n++]=b>>24&255,f=this.d?this.d.length:0,t[n++]=255&f,t[n++]=f>>8&255,this.d)if(e)t.set(this.d,n);else for(U=0,G=f;U<G;++U)t[n++]=this.d[U];return t},t("Zlib.Zip",G),t("Zlib.Zip.prototype.addFile",G.prototype.m),t("Zlib.Zip.prototype.compress",G.prototype.g),t("Zlib.Zip.prototype.setPassword",G.prototype.q),N("Zlib.Zip.CompressionMethod",{STORE:0,DEFLATE:8}),N("Zlib.Zip.OperatingSystem",{MSDOS:0,UNIX:3,MACINTOSH:7})}).call(this)},9:function(A,I,g){"use strict";var t=g(2),e=g.n(t),i=g(3),r=g.n(i),n=g(15),C=g(1),o=g(21),B=function(){function A(I){e()(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 C.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: "+C.b.truncate(A.toString(),10);return g;default:return A}}}]),A}(),a=function(){function A(){e()(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=n.a.typeEnum(A)},get:function(){return n.a.enumLookup(this._inputType)}},{key:"outputType",set:function(A){this._outputType=n.a.typeEnum(A),this._presentType<0&&(this._presentType=this._outputType)},get:function(){return n.a.enumLookup(this._outputType)}},{key:"presentType",set:function(A){this._presentType=n.a.typeEnum(A)},get:function(){return n.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}});