MonScoDocEssai/app/static/libjs/xlsx-populate-1.21.0.min.js

3 lines
627 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).XlsxPopulate=e()}}(function(){var define,module,exports;return function a(o,s,f){function u(t,e){if(!s[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[t]={exports:{}};o[t][0].call(i.exports,function(e){return u(o[t][1][e]||e)},i,i.exports,a,o,s,f)}return s[t].exports}for(var c="function"==typeof require&&require,e=0;e<f.length;e++)u(f[e]);return u}({1:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e("lodash");var a=e("./xmlq"),o=e("./ArgHandler"),n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._node=e}var e,r,n;return e=t,(r=[{key:"isSecure",value:function(e){var t=this;return new o("Range.formula").case(function(){var e=a.findChild(t._node,"DocSecurity");return!!e&&1===e.children[0]}).case("boolean",function(e){return a.appendChildIfNotFound(t._node,"DocSecurity").children=[e?1:0],t}).handle(arguments)}},{key:"toXml",value:function(){return this._node}}])&&i(e.prototype,r),n&&i(e,n),t}();t.exports=n},{"./ArgHandler":2,"./xmlq":29,lodash:170}],2:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("lodash"),n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._cases=[]}var e,r,n;return e=t,(r=[{key:"case",value:function(e,t){return 1===arguments.length&&(t=e,e=[]),Array.isArray(e)||(e=[e]),this._cases.push({types:e,handler:t}),this}},{key:"handle",value:function(e){for(var t=0;t<this._cases.length;t++){var r=this._cases[t];if(this._argsMatchTypes(e,r.types))return r.handler.apply(null,e)}throw new Error("".concat(this._name,": Invalid arguments."))}},{key:"_argsMatchTypes",value:function(e,n){return e.length===n.length&&a.every(e,function(e,t){var r=n[t];if("*"===r)return!0;if("nil"===r)return a.isNil(e);if("string"===r)return"string"==typeof e;if("boolean"===r)return"boolean"==typeof e;if("number"===r)return"number"==typeof e;if("integer"===r)return"number"==typeof e&&a.isInteger(e);if("function"===r)return"function"==typeof e;if("array"===r)return Array.isArray(e);if("date"===r)return e&&e.constructor===Date;if("object"===r)return e&&e.constructor===Object;if(e&&e.constructor&&e.constructor.name===r)return!0;throw new Error("Unknown type: ".concat(r))})}}])&&i(e.prototype,r),n&&i(e,n),t}();t.exports=n},{lodash:170}],3:[function(e,t,r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var h=e("lodash"),o=e("./ArgHandler"),l=e("./addressConverter"),s=e("./dateConverter"),f=e("./regexify"),d=e("./xmlq"),p=e("./FormulaError"),u=e("./Style"),b=e("./RichText"),n=function(){function n(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._row=e,this._init(t,r)}var e,t,r;return e=n,(t=[{key:"active",value:function(){var t=this;return new o("Cell.active").case(function(){return t.sheet().activeCell()===t}).case("boolean",function(e){if(!e)throw new Error("Deactivating cell directly not supported. Activate a different cell instead.");return t.sheet().activeCell(t),t}).handle(arguments)}},{key:"address",value:function(e){return l.toAddress({type:"cell",rowNumber:this.rowNumber(),columnNumber:this.columnNumber(),sheetName:e&&e.includeSheetName&&this.sheet().name(),rowAnchored:e&&(e.rowAnchored||e.anchored),columnAnchored:e&&(e.columnAnchored||e.anchored)})}},{key:"column",value:function(){return this.sheet().column(this.columnNumber())}},{key:"clear",value:function(){var e=this._formulaRef&&this._sharedFormulaId;return delete this._value,delete this._formulaType,delete this._formula,delete this._sharedFormulaId,delete this._formulaRef,h.isNil(e)||this.sheet().clearCellsUsingSharedFormula(e),this}},{key:"columnName",value:function(){return l.columnNumberToName(this.columnNumber())}},{key:"columnNumber",value:function(){return this._columnNumber}},{key:"find",value:function(e,t){e=f(e);var r=this.value();if("string"!=typeof r)return!1;if(h.isNil(t))return e.test(r);var n=r.replace(e,t);return n!==r&&(this.value(n),!0)}},{key:"formula",value:function(){var t=this;return new o("Cell.formula").case(function(){return"shared"!==t._formulaType||t._formulaRef?t._formula:"SHARED"}).case("nil",function(){return t.clear(),t}).case("string",function(e){return t.clear(),t._formulaType="normal",t._formula=e,t}).handle(arguments)}},{key:"hyperlink",value:function(){var t=this;return new o("Cell.hyperlink").case(function(){return t.sheet().hyperlink(t.address())}).case("string",function(e){return t.sheet().hyperlink(t.address(),e),t}).case(["object"],function(e){return t.sheet().hyperlink(t.address(),e),t}).handle(arguments)}},{key:"dataValidation",value:function(){var t=this;return new o("Cell.dataValidation").case(function(){return t.sheet().dataValidation(t.address())}).case("boolean",function(e){return t.sheet().dataValidation(t.address(),e)}).case("*",function(e){return t.sheet().dataValidation(t.address(),e),t}).handle(arguments)}},{key:"tap",value:function(e){return e(this),this}},{key:"thru",value:function(e){return e(this)}},{key:"rangeTo",value:function(e){return this.sheet().range(this,e)}},{key:"relativeCell",value:function(e,t){var r=e+this.rowNumber(),n=t+this.columnNumber();return this.sheet().cell(r,n)}},{key:"row",value:function(){return this._row}},{key:"rowNumber",value:function(){return this.row().rowNumber()}},{key:"sheet",value:function(){return this.row().sheet()}},{key:"style",value:function(e){var i=this;return this._style||e instanceof u||(this._style=this.workbook().styleSheet().createStyle(this._styleId)),new o("Cell.style").case("string",function(e){return i._style.style(e)}).case("array",function(e){var t={};return e.forEach(function(e){t[e]=i.style(e)}),t}).case(["string","array"],function(e,t){var r=t.length,n=t[0].length;return i.rangeTo(i.relativeCell(r-1,n-1)).style(e,t)}).case(["string","*"],function(e,t){return i._style.style(e,t),i}).case("object",function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];i.style(t,r)}return i}).case("Style",function(e){return i._style=e,i._styleId=e.id(),i}).handle(arguments)}},{key:"value",value:function(){var n=this;return new o("Cell.value").case(function(){return n._value instanceof b?n._value.getInstanceWithCellRef(n):n._value}).case("array",function(e){var t=e.length,r=e[0].length;return n.rangeTo(n.relativeCell(t-1,r-1)).value(e)}).case("*",function(e){return n.clear(),n._value=e instanceof b?e.copy(n):e,n}).handle(arguments)}},{key:"workbook",value:function(){return this.row().workbook()}},{key:"addHorizontalPageBreak",value:function(){return this.row().addPageBreak(),this}},{key:"getSharedRefFormula",value:function(){return"shared"===this._formulaType?this._formulaRef&&this._formula:void 0}},{key:"sharesFormula",value:function(e){return"shared"===this._formulaType&&this._sharedFormulaId===e}},{key:"setSharedFormula",value:function(e,t,r){this.clear(),this._formulaType="shared",this._sharedFormulaId=e,this._formula=t,this._formulaRef=r}},{key:"toXml",value:function(){var e={name:"c",attributes:this._remainingAttributes||{},children:[]};if(e.attributes.r=this.address(),h.isNil(this._formulaType)){if(!h.isNil(this._value)){var t,r;"string"==typeof this._value?(t="s",r=this.workbook().sharedStrings().getIndexForString(this._value)):"boolean"==typeof this._value?(t="b",r=this._value?1:0):"number"==typeof this._value?r=this._value:this._value instanceof Date?r=s.dateToNumber(this._value):(this._value instanceof b||"object"===a(this._value)&&"RichText"===this._value.constructor.name)&&(t="s",r=this.workbook().sharedStrings().getIndexForString(this._value.toXml())),t&&(e.attributes.t=t);var n={name:"v",children:[r]};e.children.push(n)}}else{var i={name:"f",attributes:this._remainingFormulaAttributes||{}};"normal"!==this._formulaType&&(i.attributes.t=this._formulaType),h.isNil(this._formulaRef)||(i.attributes.ref=this._formulaRef),h.isNil(this._sharedFormulaId)||(i.attributes.si=this._sharedFormulaId),h.isNil(this._formula)||(i.children=[this._formula]),e.children.push(i)}return h.isNil(this._style)?h.isNil(this._styleId)||(e.attributes.s=this._styleId):e.attributes.s=this._style.id(),this._remainingChildren&&(e.children=e.children.concat(this._remainingChildren)),e}},{key:"_init",value:function(e,t){h.isObject(e)?this._parseNode(e):(this._columnNumber=e,h.isNil(t)||(this._styleId=t))}},{key:"_parseNode",value:function(e){var t=l.fromAddress(e.attributes.r);this._columnNumber=t.columnNumber,h.isNil(e.attributes.s)||(this._styleId=e.attributes.s);var r=d.findChild(e,"f");r&&(this._formulaType=r.attributes.t||"normal",this._formulaRef=r.attributes.ref,this._formula=r.children[0],this._sharedFormulaId=r.attributes.si,h.isNil(this._sharedFormulaId)||this.sheet().updateMaxSharedFormulaId(this._sharedFormulaId),delete r.attributes.t,delete r.attributes.ref,delete r.attributes.si,h.isEmpty(r.attributes)||(this._remainingFormulaAttributes=r.attributes));var n=e.attributes.t;if("s"===n){var i=d.findChild(e,"v");if(i){var a=i.children[0];this._value=this.workbook().sharedStrings().getStringByIndex(a),h.isArray(this._value)&&(this._value=new b(this._value))}else this._value=""}else if("str"===n){var o=d.findChild(e,"v");this._value=o&&o.children[0]}else if("inlineStr"===n){var s=d.findChild(e,"is");if("t"===s.children[0].name){var f=s.children[0];this._value=f.children[0]}else this._value=s.children}else if("b"===n)this._value=1===d.findChild(e,"v").children[0];else if("e"===n){var u=d.findChild(e,"v").children[0];this._value=p.getError(u)}else{var c=d.findChild(e,"v");this._value=c&&Number(c.children[0])}delete e.attributes.r,delete e.attributes.s,delete e.attributes.t,h.isEmpty(e.attributes)||(this._remainingAttributes=e.attributes),d.removeChild(e,"f"),d.removeChild(e,"v"),d.removeChild(e,"is"),h.isEmpty(e.children)||(this._remainingChildren=e.children)}}])&&i(e.prototype,t),r&&i(e,r),n}();t.exports=n},{"./ArgHandler":2,"./FormulaError":8,"./RichText":12,"./Style":17,"./addressConverter":23,"./dateConverter":26,"./regexify":28,"./xmlq":29,lodash:170}],4:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("./ArgHandler"),o=e("./addressConverter"),n=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this._sheet=e,this._node=t}var e,t,n;return e=r,(t=[{key:"address",value:function(e){return o.toAddress({type:"column",columnName:this.columnName(),sheetName:e&&e.includeSheetName&&this.sheet().name(),columnAnchored:e&&e.anchored})}},{key:"cell",value:function(e){return this.sheet().cell(e,this.columnNumber())}},{key:"columnName",value:function(){return o.columnNumberToName(this.columnNumber())}},{key:"columnNumber",value:function(){return this._node.attributes.min}},{key:"hidden",value:function(){var t=this;return new a("Column.hidden").case(function(){return 1===t._node.attributes.hidden}).case("boolean",function(e){return e?t._node.attributes.hidden=1:delete t._node.attributes.hidden,t}).handle(arguments)}},{key:"sheet",value:function(){return this._sheet}},{key:"style",value:function(){var n=this;return new a("Column.style").case("string",function(e){return n._createStyleIfNeeded(),n._style.style(e)}).case("array",function(e){var t={};return e.forEach(function(e){t[e]=n.style(e)}),t}).case(["string","*"],function(t,r){return n.sheet().forEachExistingRow(function(e){(e.hasStyle()||e.hasCell(n.columnNumber()))&&e.cell(n.columnNumber()).style(t,r)}),n._createStyleIfNeeded(),n._style.style(t,r),n}).case("object",function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];n.style(t,r)}return n}).case("Style",function(t){return n.sheet().forEachExistingRow(function(e){(e.hasStyle()||e.hasCell(n.columnNumber()))&&e.cell(n.columnNumber()).style(t)}),n._style=t,n._node.attributes.style=t.id(),n}).handle(arguments)}},{key:"width",value:function(e){var t=this;return new a("Column.width").case(function(){return t._node.attributes.customWidth?t._node.attributes.width:void 0}).case("number",function(e){return t._node.attributes.width=e,t._node.attributes.customWidth=1,t}).case("nil",function(){return delete t._node.attributes.width,delete t._node.attributes.customWidth,t}).handle(arguments)}},{key:"workbook",value:function(){return this.sheet().workbook()}},{key:"addPageBreak",value:function(){return this.sheet().verticalPageBreaks().add(this.columnNumber()),this}},{key:"toXml",value:function(){return this._node}},{key:"_createStyleIfNeeded",value:function(){if(!this._style){var e=this._node.attributes.style;this._style=this.workbook().styleSheet().createStyle(e),this._node.attributes.style=this._style.id(),this.width()||this.width(9.140625)}}}])&&i(e.prototype,t),n&&i(e,n),r}();t.exports=n},{"./ArgHandler":2,"./addressConverter":23}],5:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("lodash"),n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._node=e}var e,r,n;return e=t,(r=[{key:"add",value:function(e,t){var r={name:"Override",attributes:{PartName:e,ContentType:t}};return this._node.children.push(r),r}},{key:"findByPartName",value:function(t){return a.find(this._node.children,function(e){return e.attributes.PartName===t})}},{key:"toXml",value:function(){return this._node}}])&&i(e.prototype,r),n&&i(e,n),t}();t.exports=n},{lodash:170}],6:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a={title:"dc:title",subject:"dc:subject",author:"dc:creator",creator:"dc:creator",description:"dc:description",keywords:"cp:keywords",category:"cp:category"},n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._node=e,this._properties={}}var e,r,n;return e=t,(r=[{key:"set",value:function(e,t){var r=e.toLowerCase();if(void 0===a[r])throw new Error('Unknown property name: "'.concat(e,'"'));return this._properties[r]=t,this}},{key:"get",value:function(e){var t=e.toLowerCase();if(void 0===a[t])throw new Error('Unknown property name: "'.concat(e,'"'));return this._properties[t]}},{key:"toXml",value:function(){for(var e in this._properties)this._properties.hasOwnProperty(e)&&this._node.children.push({name:a[e],children:[this._properties[e]]});return this._node}}])&&i(e.prototype,r),n&&i(e,n),t}();t.exports=n},{}],7:[function(t,r,e){(function(g){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=t("lodash"),y=t("cfb"),_=t("crypto"),s=t("./externals"),a=t("./XmlParser"),f=t("./XmlBuilder"),u=t("./xmlq"),c=g.from([4,0,4,0,64,0,0,0]),w={dataIntegrity:{hmacKey:g.from([95,178,173,1,12,185,225,246]),hmacValue:g.from([160,103,127,2,178,44,132,51])},key:g.from([20,110,11,231,171,172,208,214]),verifierHash:{input:g.from([254,167,210,118,59,75,158,121]),value:g.from([215,170,15,109,48,97,52,78])}},e=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"encrypt",value:function(e,t){var r=_.randomBytes(32),n={package:{cipherAlgorithm:"AES",cipherChaining:"ChainingModeCBC",saltValue:_.randomBytes(16),hashAlgorithm:"SHA512",hashSize:64,blockSize:16,keyBits:8*r.length},key:{cipherAlgorithm:"AES",cipherChaining:"ChainingModeCBC",saltValue:_.randomBytes(16),hashAlgorithm:"SHA512",hashSize:64,blockSize:16,spinCount:1e5,keyBits:256}},i=this._cryptPackage(!0,n.package.cipherAlgorithm,n.package.cipherChaining,n.package.hashAlgorithm,n.package.blockSize,n.package.saltValue,r,e),a=_.randomBytes(64),o=this._createIV(n.package.hashAlgorithm,n.package.saltValue,n.package.blockSize,w.dataIntegrity.hmacKey),s=this._crypt(!0,n.package.cipherAlgorithm,n.package.cipherChaining,r,o,a),f=this._hmac(n.package.hashAlgorithm,a,i),u=this._createIV(n.package.hashAlgorithm,n.package.saltValue,n.package.blockSize,w.dataIntegrity.hmacValue),c=this._crypt(!0,n.package.cipherAlgorithm,n.package.cipherChaining,r,u,f);n.dataIntegrity={encryptedHmacKey:s,encryptedHmacValue:c};var h=this._convertPasswordToKey(t,n.key.hashAlgorithm,n.key.saltValue,n.key.spinCount,n.key.keyBits,w.key);n.key.encryptedKeyValue=this._crypt(!0,n.key.cipherAlgorithm,n.key.cipherChaining,h,n.key.saltValue,r);var l=_.randomBytes(16),d=this._convertPasswordToKey(t,n.key.hashAlgorithm,n.key.saltValue,n.key.spinCount,n.key.keyBits,w.verifierHash.input);n.key.encryptedVerifierHashInput=this._crypt(!0,n.key.cipherAlgorithm,n.key.cipherChaining,d,n.key.saltValue,l);var p=this._hash(n.key.hashAlgorithm,l),b=this._convertPasswordToKey(t,n.key.hashAlgorithm,n.key.saltValue,n.key.spinCount,n.key.keyBits,w.verifierHash.value);n.key.encryptedVerifierHashValue=this._crypt(!0,n.key.cipherAlgorithm,n.key.cipherChaining,b,n.key.saltValue,p);var m=this._buildEncryptionInfo(n),v=y.utils.cfb_new();return y.utils.cfb_add(v,"EncryptionInfo",m),y.utils.cfb_add(v,"EncryptedPackage",i),y.utils.cfb_del(v,"Sh33tJ5"),v=y.write(v),g.isBuffer(v)||(v=g.from(v)),v}},{key:"decryptAsync",value:function(e,n){var i=this,t=y.parse(e),r=o.find(t.FileIndex,{name:"EncryptionInfo"}).content,a=o.find(t.FileIndex,{name:"EncryptedPackage"}).content;return g.isBuffer(r)||(r=g.from(r)),g.isBuffer(a)||(a=g.from(a)),s.Promise.resolve().then(function(){return i._parseEncryptionInfoAsync(r)}).then(function(e){var t=i._convertPasswordToKey(n,e.key.hashAlgorithm,e.key.saltValue,e.key.spinCount,e.key.keyBits,w.key),r=i._crypt(!1,e.key.cipherAlgorithm,e.key.cipherChaining,t,e.key.saltValue,e.key.encryptedKeyValue);return i._cryptPackage(!1,e.package.cipherAlgorithm,e.package.cipherChaining,e.package.hashAlgorithm,e.package.blockSize,e.package.saltValue,r,a)})}},{key:"_buildEncryptionInfo",value:function(e){var t={name:"encryption",attributes:{xmlns:"http://schemas.microsoft.com/office/2006/encryption","xmlns:p":"http://schemas.microsoft.com/office/2006/keyEncryptor/password","xmlns:c":"http://schemas.microsoft.com/office/2006/keyEncryptor/certificate"},children:[{name:"keyData",attributes:{saltSize:e.package.saltValue.length,blockSize:e.package.blockSize,keyBits:e.package.keyBits,hashSize:e.package.hashSize,cipherAlgorithm:e.package.cipherAlgorithm,cipherChaining:e.package.cipherChaining,hashAlgorithm:e.package.hashAlgorithm,saltValue:e.package.saltValue.toString("base64")}},{name:"dataIntegrity",attributes:{encryptedHmacKey:e.dataIntegrity.encryptedHmacKey.toString("base64"),encryptedHmacValue:e.dataIntegrity.encryptedHmacValue.toString("base64")}},{name:"keyEncryptors",children:[{name:"keyEncryptor",attributes:{uri:"http://schemas.microsoft.com/office/2006/keyEncryptor/password"},children:[{name:"p:encryptedKey",attributes:{spinCount:e.key.spinCount,saltSize:e.key.saltValue.length,blockSize:e.key.blockSize,keyBits:e.key.keyBits,hashSize:e.key.hashSize,cipherAlgorithm:e.key.cipherAlgorithm,cipherChaining:e.key.cipherChaining,hashAlgorithm:e.key.hashAlgorithm,saltValue:e.key.saltValue.toString("base64"),encryptedVerifierHashInput:e.key.encryptedVerifierHashInput.toString("base64"),encryptedVerifierHashValue:e.key.encryptedVerifierHashValue.toString("base64"),encryptedKeyValue:e.key.encryptedKeyValue.toString("base64")}}]}]}]},r=(new f).build(t);return g.concat([c,g.from(r,"utf8")])}},{key:"_parseEncryptionInfoAsync",value:function(e){var t=e.slice(c.length).toString("utf8");return(new a).parseAsync(t).then(function(e){var t=u.findChild(e,"keyData"),r=u.findChild(e,"keyEncryptors"),n=u.findChild(r,"keyEncryptor"),i=u.findChild(n,"p:encryptedKey");return{package:{cipherAlgorithm:t.attributes.cipherAlgorithm,cipherChaining:t.attributes.cipherChaining,saltValue:g.from(t.attributes.saltValue,"base64"),hashAlgorithm:t.attributes.hashAlgorithm,blockSize:t.attributes.blockSize},key:{encryptedKeyValue:g.from(i.attributes.encryptedKeyValue,"base64"),cipherAlgorithm:i.attributes.cipherAlgorithm,cipherChaining:i.attributes.cipherChaining,saltValue:g.from(i.attributes.saltValue,"base64"),hashAlgorithm:i.attributes.hashAlgorithm,spinCount:i.attributes.spinCount,keyBits:i.attributes.keyBits}}})}},{key:"_hash",value:function(e){if(e=e.toLowerCase(),_.getHashes().indexOf(e)<0)throw new Error("Hash algorithm '".concat(e,"' not supported!"));for(var t=_.createHash(e),r=arguments.length,n=new Array(1<r?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.update(g.concat(n)),t.digest()}},{key:"_hmac",value:function(e,t){if(e=e.toLowerCase(),_.getHashes().indexOf(e)<0)throw new Error("HMAC algorithm '".concat(e,"' not supported!"));for(var r=_.createHmac(e,t),n=arguments.length,i=new Array(2<n?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return r.update(g.concat(i)),r.digest()}},{key:"_crypt",value:function(e,t,r,n,i,a){var o="".concat(t.toLowerCase(),"-").concat(8*n.length);if("ChainingModeCBC"!==r)throw new Error("Unknown cipher chaining: ".concat(r));o+="-cbc";var s=_[e?"createCipheriv":"createDecipheriv"](o,n,i);s.setAutoPadding(!1);var f=s.update(a);return f=g.concat([f,s.final()])}},{key:"_cryptPackage",value:function(e,t,r,n,i,a,o,s){for(var f=[],u=e?0:8,c=0,h=0,l=0;l<s.length;){(l=(h=l)+4096)>s.length&&(l=s.length);var d=s.slice(h+u,l+u),p=d.length%i;p&&(d=g.concat([d,g.alloc(i-p)]));var b=this._createIV(n,a,i,c),m=this._crypt(e,t,r,o,b,d);f.push(m),c++}var v=g.concat(f);if(e)v=g.concat([this._createUInt32LEBuffer(s.length,8),v]);else{var y=s.readUInt32LE(0);v=v.slice(0,y)}return v}},{key:"_createUInt32LEBuffer",value:function(e,t){var r=1<arguments.length&&void 0!==t?t:4,n=g.alloc(r);return n.writeUInt32LE(e,0),n}},{key:"_convertPasswordToKey",value:function(e,t,r,n,i,a){for(var o=g.from(e,"utf16le"),s=this._hash(t,r,o),f=0;f<n;f++){var u=this._createUInt32LEBuffer(f);s=this._hash(t,u,s)}var c=i/8;if((s=this._hash(t,s,a)).length<c){var h=g.alloc(c,54);s.copy(h),s=h}else s.length>c&&(s=s.slice(0,c));return s}},{key:"_createIV",value:function(e,t,r,n){"number"==typeof n&&(n=this._createUInt32LEBuffer(n));var i=this._hash(e,t,n);if(i.length<r){var a=g.alloc(r,54);i.copy(a),i=a}else i.length>r&&(i=i.slice(0,r));return i}}])&&i(t.prototype,r),n&&i(t,n),e}();r.exports=e}).call(this,t("buffer").Buffer)},{"./XmlBuilder":21,"./XmlParser":22,"./externals":27,"./xmlq":29,buffer:77,cfb:78,crypto:86,lodash:170}],8:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var n=e("lodash"),a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._error=e}var e,r,n;return e=t,(r=[{key:"error",value:function(){return this._error}}])&&i(e.prototype,r),n&&i(e,n),t}();a.DIV0=new a("#DIV/0!"),a.NA=new a("#N/A"),a.NAME=new a("#NAME?"),a.NULL=new a("#NULL!"),a.NUM=new a("#NUM!"),a.REF=new a("#REF!"),a.VALUE=new a("#VALUE!"),a.getError=function(t){return n.find(a,function(e){return e instanceof a&&e.error()===t})||new a(t)},t.exports=a},{lodash:170}],9:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._node=e}var e,r,n;return e=t,(r=[{key:"add",value:function(e){return this._node.children.push({name:"brk",children:[],attributes:{id:e,max:16383,man:1}}),this._node.attributes.count++,this._node.attributes.manualBreakCount++,this}},{key:"remove",value:function(e){var t=this._node.children[e];return t&&(this._node.children.splice(e,1),this._node.attributes.count--,t.man&&this._node.attributes.manualBreakCount--),this}},{key:"count",get:function(){return this._node.attributes.count}},{key:"list",get:function(){return this._node.children.map(function(e){return{id:e.id,isManual:!!e.man}})}}])&&i(e.prototype,r),n&&i(e,n),t}();t.exports=n},{}],10:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=e("./ArgHandler"),a=e("./addressConverter"),n=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this._startCell=e,this._endCell=t,this._findRangeExtent(e,t)}var e,t,n;return e=r,(t=[{key:"address",value:function(e){return a.toAddress({type:"range",startRowNumber:this.startCell().rowNumber(),startRowAnchored:e&&(e.startRowAnchored||e.anchored),startColumnName:this.startCell().columnName(),startColumnAnchored:e&&(e.startColumnAnchored||e.anchored),endRowNumber:this.endCell().rowNumber(),endRowAnchored:e&&(e.endRowAnchored||e.anchored),endColumnName:this.endCell().columnName(),endColumnAnchored:e&&(e.endColumnAnchored||e.anchored),sheetName:e&&e.includeSheetName&&this.sheet().name()})}},{key:"cell",value:function(e,t){return this.sheet().cell(this._minRowNumber+e,this._minColumnNumber+t)}},{key:"autoFilter",value:function(){return this.sheet().autoFilter(this),this}},{key:"cells",value:function(){return this.map(function(e){return e})}},{key:"clear",value:function(){return this.value(void 0)}},{key:"endCell",value:function(){return this._endCell}},{key:"forEach",value:function(e){for(var t=0;t<this._numRows;t++)for(var r=0;r<this._numColumns;r++)e(this.cell(t,r),t,r,this);return this}},{key:"formula",value:function(){var a=this;return new o("Range.formula").case(function(){return a.startCell().getSharedRefFormula()}).case("string",function(n){var i=a.sheet().incrementMaxSharedFormulaId();return a.forEach(function(e,t,r){0===t&&0===r?e.setSharedFormula(i,n,a.address()):e.setSharedFormula(i)}),a}).handle(arguments)}},{key:"map",value:function(n){var i=this,a=[];return this.forEach(function(e,t,r){a[t]||(a[t]=[]),a[t][r]=n(e,t,r,i)}),a}},{key:"merged",value:function(e){var t=this;return new o("Range.merged").case(function(){return t.sheet().merged(t.address())}).case("*",function(e){return t.sheet().merged(t.address(),e),t}).handle(arguments)}},{key:"dataValidation",value:function(){var t=this;return new o("Range.dataValidation").case(function(){return t.sheet().dataValidation(t.address())}).case("boolean",function(e){return t.sheet().dataValidation(t.address(),e)}).case("*",function(e){return t.sheet().dataValidation(t.address(),e),t}).handle(arguments)}},{key:"reduce",value:function(n,e){var i=this,a=e;return this.forEach(function(e,t,r){a=n(a,e,t,r,i)}),a}},{key:"sheet",value:function(){return this.startCell().sheet()}},{key:"startCell",value:function(){return this._startCell}},{key:"style",value:function(){var a=this;return new o("Range.style").case("string",function(t){return a.map(function(e){return e.style(t)})}).case("array",function(e){var t={};return e.forEach(function(e){t[e]=a.style(e)}),t}).case(["string","function"],function(n,i){return a.forEach(function(e,t,r){e.style(n,i(e,t,r,a))})}).case(["string","array"],function(n,i){return a.forEach(function(e,t,r){i[t]&&void 0!==i[t][r]&&e.style(n,i[t][r])})}).case(["string","*"],function(t,r){return a.forEach(function(e){return e.style(t,r)})}).case("object",function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];a.style(t,r)}return a}).case("Style",function(t){return a._style=t,a.forEach(function(e){return e.style(t)})}).handle(arguments)}},{key:"tap",value:function(e){return e(this),this}},{key:"thru",value:function(e){return e(this)}},{key:"value",value:function(){var i=this;return new o("Range.value").case(function(){return i.map(function(e){return e.value()})}).case("function",function(n){return i.forEach(function(e,t,r){e.value(n(e,t,r,i))})}).case("array",function(n){return i.forEach(function(e,t,r){n[t]&&void 0!==n[t][r]&&e.value(n[t][r])})}).case("*",function(t){return i.forEach(function(e){return e.value(t)})}).handle(arguments)}},{key:"workbook",value:function(){return this.sheet().workbook()}},{key:"_findRangeExtent",value:function(){this._minRowNumber=Math.min(this._startCell.rowNumber(),this._endCell.rowNumber()),this._maxRowNumber=Math.max(this._startCell.rowNumber(),this._endCell.rowNumber()),this._minColumnNumber=Math.min(this._startCell.columnNumber(),this._endCell.columnNumber()),this._maxColumnNumber=Math.max(this._startCell.columnNumber(),this._endCell.columnNumber()),this._numRows=this._maxRowNumber-this._minRowNumber+1,this._numColumns=this._maxColumnNumber-this._minColumnNumber+1}}])&&i(e.prototype,t),n&&i(e,n),r}();t.exports=n},{"./ArgHandler":2,"./addressConverter":23}],11:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("lodash"),o="http://schemas.openxmlformats.org/officeDocument/2006/relationships/",n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._init(e),this._getStartingId()}var e,r,n;return e=t,(r=[{key:"add",value:function(e,t,r){var n={name:"Relationship",attributes:{Id:"rId".concat(this._nextId++),Type:"".concat(o).concat(e),Target:t}};return r&&(n.attributes.TargetMode=r),this._node.children.push(n),n}},{key:"findById",value:function(t){return a.find(this._node.children,function(e){return e.attributes.Id===t})}},{key:"findByType",value:function(t){return a.find(this._node.children,function(e){return e.attributes.Type==="".concat(o).concat(t)})}},{key:"toXml",value:function(){if(this._node.children.length)return this._node}},{key:"_getStartingId",value:function(){var r=this;this._nextId=1,this._node.children.forEach(function(e){var t=parseInt(e.attributes.Id.substr(3));t>=r._nextId&&(r._nextId=t+1)})}},{key:"_init",value:function(e){e=e||{name:"Relationships",attributes:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},children:[]},this._node=e}}])&&i(e.prototype,r),n&&i(e,n),t}();t.exports=n},{lodash:170}],12:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("lodash"),o=e("./RichTextFragment"),n=function(){function n(e){if(!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._node=[],this._cell=null,this._remainingNodes=[],e)for(var t=0;t<e.length;t++){var r=e[t];"r"===r.name?this._node.push(new o(r,null,this)):this._remainingNodes.push(r)}}var e,t,r;return e=n,(t=[{key:"text",value:function(){for(var e="",t=0;t<this._node.length;t++)e+=this.get(t).value();return e}},{key:"getInstanceWithCellRef",value:function(e){return this._cell=e,this}},{key:"copy",value:function(e){var t=new n(a.cloneDeep(this.toXml()));return e&&a.includes(this.text(),"\n")&&e.style("wrapText",!0),t}},{key:"get",value:function(e){return this._node[e]}},{key:"remove",value:function(e){return this._node.splice(e,1),this.removeUnsupportedNodes(),this}},{key:"add",value:function(e,t,r){return null==r?this._node.push(new o(e,t,this)):this._node.splice(r,0,new o(e,t,this)),this.removeUnsupportedNodes(),this}},{key:"clear",value:function(){return this._node=[],this._remainingNodes=[],this._cell=void 0,this}},{key:"removeUnsupportedNodes",value:function(){this._remainingNodes=[]}},{key:"toXml",value:function(){for(var e=[],t=0;t<this._node.length;t++)e.push(this._node[t].toXml());return e.concat(this._remainingNodes)}},{key:"cell",get:function(){return this._cell}},{key:"length",get:function(){return this._node.length}}])&&i(e.prototype,t),r&&i(e,r),n}();n.name||(n.name="RichText"),t.exports=n},{"./RichTextFragment":13,lodash:170}],13:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("./ArgHandler"),o=e("lodash"),s=e("./xmlq"),f=e("./colorIndexes"),n=function(){function n(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this._richText=r,"r"===e.name?(this._node=e,this._fontNode=s.findChild(this._node,"rPr"),this._fontNode||(this._fontNode={name:"rPr",attributes:{},children:[]},this._node.children.unshift(this._fontNode)),this._valueNode=s.findChild(this._node,"t")):(this._node={name:"r",attributes:{},children:[{name:"rPr",attributes:{},children:[]},{name:"t",attributes:{},children:[]}]},this._fontNode=s.findChild(this._node,"rPr"),this._valueNode=s.findChild(this._node,"t"),this.value(e),t&&this.style(t))}var e,t,r;return e=n,(t=[{key:"value",value:function(){var r=this;return new a("_RichText.value").case(function(){return r._valueNode.children[0]}).case("string",function(e){var t=-1!==(e=e.replace(/(?:\r\n|\r|\n)/g,"\r\n")).indexOf("\r\n");return" "===(r._valueNode.children[0]=e).charAt(0)&&s.setAttributes(r._valueNode,{"xml:space":"preserve"}),r._richText&&r._richText.removeUnsupportedNodes(),t&&(r._richText.cell&&r._richText.cell.style("wrapText",!0),s.setAttributes(r._valueNode,{"xml:space":"preserve"})),r}).handle(arguments)}},{key:"toXml",value:function(){return this._node}},{key:"style",value:function(){var n=this;return new a("_RichText.style").case("string",function(e){var t="_get_".concat(e);if(!n[t])throw new Error("_RichText.style: '".concat(e,"' is not a valid style"));return n[t]()}).case("array",function(e){var t={};return e.forEach(function(e){t[e]=n.style(e)}),t}).case(["string","*"],function(e,t){var r="_set_".concat(e);if(!n[r])throw new Error("_RichText.style: '".concat(e,"' is not a valid style"));return n[r](t)}).case("object",function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];n.style(t,r)}return n}).handle(arguments)}},{key:"_getColor",value:function(e,t){var r=s.findChild(e,t);if(r&&r.attributes){var n={};if(r.attributes.hasOwnProperty("rgb")?n.rgb=r.attributes.rgb:r.attributes.hasOwnProperty("theme")?n.theme=r.attributes.theme:r.attributes.hasOwnProperty("indexed")&&(n.rgb=f[r.attributes.indexed]),r.attributes.hasOwnProperty("tint")&&(n.tint=r.attributes.tint),!o.isEmpty(n))return n}}},{key:"_setColor",value:function(e,t,r){"string"==typeof r?r={rgb:r}:"number"==typeof r&&(r={theme:r}),s.setChildAttributes(e,t,{rgb:r&&r.rgb&&r.rgb.toUpperCase(),indexed:null,theme:r&&r.theme,tint:r&&r.tint}),s.removeChildIfEmpty(e,"color")}},{key:"_get_bold",value:function(){return s.hasChild(this._fontNode,"b")}},{key:"_set_bold",value:function(e){e?s.appendChildIfNotFound(this._fontNode,"b"):s.removeChild(this._fontNode,"b")}},{key:"_get_italic",value:function(){return s.hasChild(this._fontNode,"i")}},{key:"_set_italic",value:function(e){e?s.appendChildIfNotFound(this._fontNode,"i"):s.removeChild(this._fontNode,"i")}},{key:"_get_underline",value:function(){var e=s.findChild(this._fontNode,"u");return!!e&&(e.attributes.val||!0)}},{key:"_set_underline",value:function(e){if(e){var t=s.appendChildIfNotFound(this._fontNode,"u"),r="string"==typeof e?e:null;s.setAttributes(t,{val:r})}else s.removeChild(this._fontNode,"u")}},{key:"_get_strikethrough",value:function(){return s.hasChild(this._fontNode,"strike")}},{key:"_set_strikethrough",value:function(e){e?s.appendChildIfNotFound(this._fontNode,"strike"):s.removeChild(this._fontNode,"strike")}},{key:"_getFontVerticalAlignment",value:function(){return s.getChildAttribute(this._fontNode,"vertAlign","val")}},{key:"_setFontVerticalAlignment",value:function(e){s.setChildAttributes(this._fontNode,"vertAlign",{val:e}),s.removeChildIfEmpty(this._fontNode,"vertAlign")}},{key:"_get_subscript",value:function(){return"subscript"===this._getFontVerticalAlignment()}},{key:"_set_subscript",value:function(e){this._setFontVerticalAlignment(e?"subscript":null)}},{key:"_get_superscript",value:function(){return"superscript"===this._getFontVerticalAlignment()}},{key:"_set_superscript",value:function(e){this._setFontVerticalAlignment(e?"superscript":null)}},{key:"_get_fontSize",value:function(){return s.getChildAttribute(this._fontNode,"sz","val")}},{key:"_set_fontSize",value:function(e){s.setChildAttributes(this._fontNode,"sz",{val:e}),s.removeChildIfEmpty(this._fontNode,"sz")}},{key:"_get_fontFamily",value:function(){return s.getChildAttribute(this._fontNode,"rFont","val")}},{key:"_set_fontFamily",value:function(e){s.setChildAttributes(this._fontNode,"rFont",{val:e}),s.removeChildIfEmpty(this._fontNode,"rFont")}},{key:"_get_fontGenericFamily",value:function(){return s.getChildAttribute(this._fontNode,"family","val")}},{key:"_set_fontGenericFamily",value:function(e){s.setChildAttributes(this._fontNode,"family",{val:e}),s.removeChildIfEmpty(this._fontNode,"family")}},{key:"_get_fontColor",value:function(){return this._getColor(this._fontNode,"color")}},{key:"_set_fontColor",value:function(e){this._setColor(this._fontNode,"color",e)}},{key:"_get_fontScheme",value:function(){return s.getChildAttribute(this._fontNode,"scheme","val")}},{key:"_set_fontScheme",value:function(e){s.setChildAttributes(this._fontNode,"scheme",{val:e}),s.removeChildIfEmpty(this._fontNode,"scheme")}}])&&i(e.prototype,t),r&&i(e,r),n}();n.name||(n.name="RichTextFragment"),t.exports=n},{"./ArgHandler":2,"./colorIndexes":25,"./xmlq":29,lodash:170}],14:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=e("lodash"),s=e("./Cell"),a=e("./regexify"),f=e("./ArgHandler"),u=e("./addressConverter"),n=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this._sheet=e,this._init(t)}var e,t,n;return e=r,(t=[{key:"address",value:function(e){return u.toAddress({type:"row",rowNumber:this.rowNumber(),sheetName:e&&e.includeSheetName&&this.sheet().name(),rowAnchored:e&&e.anchored})}},{key:"cell",value:function(e){var t,r=e;if("string"==typeof e&&(r=u.columnNameToNumber(e)),r<1)throw new RangeError("Invalid column number ".concat(r,". Remember that spreadsheets use 1-based indexing."));if(this._cells[r])return this._cells[r];var n=this._node.attributes.s,i=this.sheet().existingColumnStyleId(r);o.isNil(n)?o.isNil(i)||(t=i):t=n;var a=new s(this,r,t);return this._cells[r]=a}},{key:"height",value:function(){var t=this;return new f("Row.height").case(function(){return t._node.attributes.customHeight?t._node.attributes.ht:void 0}).case("number",function(e){return t._node.attributes.ht=e,t._node.attributes.customHeight=1,t}).case("nil",function(){return delete t._node.attributes.ht,delete t._node.attributes.customHeight,t}).handle(arguments)}},{key:"hidden",value:function(){var t=this;return new f("Row.hidden").case(function(){return 1===t._node.attributes.hidden}).case("boolean",function(e){return e?t._node.attributes.hidden=1:delete t._node.attributes.hidden,t}).handle(arguments)}},{key:"rowNumber",value:function(){return this._node.attributes.r}},{key:"sheet",value:function(){return this._sheet}},{key:"style",value:function(){var n=this;return new f("Row.style").case("string",function(e){return n._createStyleIfNeeded(),n._style.style(e)}).case("array",function(e){var t={};return e.forEach(function(e){t[e]=n.style(e)}),t}).case(["string","*"],function(t,r){return n._createCellStylesIfNeeded(),o.forEach(n._cells,function(e){e&&e.style(t,r)}),n._createStyleIfNeeded(),n._style.style(t,r),n}).case("object",function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];n.style(t,r)}return n}).case("Style",function(t){return n._createCellStylesIfNeeded(),o.forEach(n._cells,function(e){e&&e.style(t)}),n._style=t,n._node.attributes.s=t.id(),n._node.attributes.customFormat=1,n}).handle(arguments)}},{key:"workbook",value:function(){return this.sheet().workbook()}},{key:"addPageBreak",value:function(){return this.sheet().horizontalPageBreaks().add(this.rowNumber()),this}},{key:"clearCellsUsingSharedFormula",value:function(t){this._cells.forEach(function(e){e&&e.sharesFormula(t)&&e.clear()})}},{key:"find",value:function(t,r){t=a(t);var n=[];return this._cells.forEach(function(e){e&&e.find(t,r)&&n.push(e)}),n}},{key:"hasCell",value:function(e){if(e<1)throw new RangeError("Invalid column number ".concat(e,". Remember that spreadsheets use 1-based indexing."));return!!this._cells[e]}},{key:"hasStyle",value:function(){return!o.isNil(this._node.attributes.s)}},{key:"minUsedColumnNumber",value:function(){return o.findIndex(this._cells)}},{key:"maxUsedColumnNumber",value:function(){return this._cells.length-1}},{key:"toXml",value:function(){return this._node}},{key:"_createCellStylesIfNeeded",value:function(){var t=this;this.sheet().forEachExistingColumnNumber(function(e){o.isNil(t.sheet().existingColumnStyleId(e))||t.cell(e)})}},{key:"_createStyleIfNeeded",value:function(){if(!this._style){var e=this._node.attributes.s;this._style=this.workbook().styleSheet().createStyle(e),this._node.attributes.s=this._style.id(),this._node.attributes.customFormat=1}}},{key:"_init",value:function(e){var r=this;this._node=e,this._cells=[],this._node.children.forEach(function(e){var t=new s(r,e);r._cells[t.columnNumber()]=t}),this._node.children=this._cells}}])&&i(e.prototype,t),n&&i(e,n),r}();t.exports=n},{"./ArgHandler":2,"./Cell":3,"./addressConverter":23,"./regexify":28,lodash:170}],15:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("lodash"),n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._stringArray=[],this._indexMap={},this._init(e),this._cacheExistingSharedStrings()}var e,r,n;return e=t,(r=[{key:"getIndexForString",value:function(e){var t=a.isArray(e)?JSON.stringify(e):e,r=this._indexMap[t];return 0<=r||(r=this._stringArray.length,this._stringArray.push(e),this._indexMap[t]=r,this._node.children.push({name:"si",children:a.isArray(e)?e:[{name:"t",attributes:{"xml:space":"preserve"},children:[e]}]})),r}},{key:"getStringByIndex",value:function(e){return this._stringArray[e]}},{key:"toXml",value:function(){return this._node}},{key:"_cacheExistingSharedStrings",value:function(){var i=this;this._node.children.forEach(function(e,t){var r=e.children[0];if("t"===r.name){var n=r.children[0];i._stringArray.push(n),i._indexMap[n]=t}else i._stringArray.push(e.children),i._indexMap[JSON.stringify(e.children)]=t})}},{key:"_init",value:function(e){e=e||{name:"sst",attributes:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"},children:[]},this._node=e,delete this._node.attributes.count,delete this._node.attributes.uniqueCount}}])&&i(e.prototype,r),n&&i(e,n),t}();t.exports=n},{lodash:170}],16:[function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=e("lodash"),s=e("./Cell"),c=e("./Row"),h=e("./Column"),o=e("./Range"),l=e("./Relationships"),d=e("./xmlq"),f=e("./regexify"),p=e("./addressConverter"),b=e("./ArgHandler"),m=e("./colorIndexes"),v=e("./PageBreaks"),y=["sheetPr","dimension","sheetViews","sheetFormatPr","cols","sheetData","sheetCalcPr","sheetProtection","autoFilter","protectedRanges","scenarios","autoFilter","sortState","dataConsolidate","customSheetViews","mergeCells","phoneticPr","conditionalFormatting","dataValidations","hyperlinks","printOptions","pageMargins","pageSetup","headerFooter","rowBreaks","colBreaks","customProperties","cellWatches","ignoredErrors","smartTags","drawing","drawingHF","legacyDrawing","legacyDrawingHF","picture","oleObjects","controls","webPublishItems","tableParts","extLst"],i=function(){function i(e,t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._init(e,t,r,n)}var e,t,r;return e=i,(t=[{key:"active",value:function(){var t=this;return new b("Sheet.active").case(function(){return t.workbook().activeSheet()===t}).case("boolean",function(e){if(!e)throw new Error("Deactivating sheet directly not supported. Activate a different sheet instead.");return t.workbook().activeSheet(t),t}).handle(arguments)}},{key:"activeCell",value:function(){var n=this,t=this._getOrCreateSheetViewNode(),r=d.findChild(t,"selection");return new b("Sheet.activeCell").case(function(){var e=r?r.attributes.activeCell:"A1";return n.cell(e)}).case(["number","*"],function(e,t){var r=n.cell(e,t);return n.activeCell(r)}).case("*",function(e){return r||(r={name:"selection",attributes:{},children:[]},d.appendChild(t,r)),e instanceof s||(e=n.cell(e)),r.attributes.activeCell=r.attributes.sqref=e.address(),n}).handle(arguments)}},{key:"cell",value:function(){var r=this;return new b("Sheet.cell").case("string",function(e){var t=p.fromAddress(e);if("cell"!==t.type)throw new Error("Sheet.cell: Invalid address.");return r.row(t.rowNumber).cell(t.columnNumber)}).case(["number","*"],function(e,t){return r.row(e).cell(t)}).handle(arguments)}},{key:"column",value:function(e){var t="string"==typeof e?p.columnNameToNumber(e):e;if(this._columns[t])return this._columns[t];var r,n=this._colNodes[t];if(n){if(n.attributes.min<t){var i=u.cloneDeep(n);i.attributes.max=t-1;for(var a=i.attributes.min;a<=i.attributes.max;a++)this._colNodes[a]=i}if((r=u.cloneDeep(n)).attributes.min=t,r.attributes.max=t,this._colNodes[t]=r,n.attributes.max>t){var o=u.cloneDeep(n);o.attributes.min=t+1;for(var s=o.attributes.min;s<=o.attributes.max;s++)this._colNodes[s]=o}}else r={name:"col",attributes:{min:t,max:t},children:[]},this._colNodes[t]=r;var f=new h(this,r);return this._columns[t]=f}},{key:"definedName",value:function(){var r=this;return new b("Workbook.definedName").case("string",function(e){return r.workbook().scopedDefinedName(r,e)}).case(["string","*"],function(e,t){return r.workbook().scopedDefinedName(r,e,t),r}).handle(arguments)}},{key:"delete",value:function(){return this.workbook().deleteSheet(this),this.workbook()}},{key:"find",value:function(t,r){t=f(t);var n=[];return this._rows.forEach(function(e){e&&(n=n.concat(e.find(t,r)))}),n}},{key:"gridLinesVisible",value:function(){var t=this,r=this._getOrCreateSheetViewNode();return new b("Sheet.gridLinesVisible").case(function(){return 1===r.attributes.showGridLines||void 0===r.attributes.showGridLines}).case("boolean",function(e){return r.attributes.showGridLines=e?1:0,t}).handle(arguments)}},{key:"hidden",value:function(){var r=this;return new b("Sheet.hidden").case(function(){return"hidden"===r._idNode.attributes.state||"veryHidden"===r._idNode.attributes.state&&"very"}).case("*",function(e){if(e){var t=u.filter(r.workbook().sheets(),function(e){return!e.hidden()});if(1===t.length&&t[0]===r)throw new Error("This sheet may not be hidden as a workbook must contain at least one visible sheet.");if(r.active())t[t[0]===r?1:0].active(!0)}return"very"===e?r._idNode.attributes.state="veryHidden":e?r._idNode.attributes.state="hidden":delete r._idNode.attributes.state,r}).handle(arguments)}},{key:"move",value:function(e){return this.workbook().moveSheet(this,e),this}},{key:"name",value:function(){var t=this;return new b("Sheet.name").case(function(){return"".concat(t._idNode.attributes.name)}).case("string",function(e){return t._idNode.attributes.name=e,t}).handle(arguments)}},{key:"range",value:function(){var i=this;return new b("Sheet.range").case("string",function(e){var t=p.fromAddress(e);if("range"!==t.type)throw new Error("Sheet.range: Invalid address");return i.range(t.startRowNumber,t.startColumnNumber,t.endRowNumber,t.endColumnNumber)}).case(["*","*"],function(e,t){return"string"==typeof e&&(e=i.cell(e)),"string"==typeof t&&(t=i.cell(t)),new o(e,t)}).case(["number","*","number","*"],function(e,t,r,n){return i.range(i.cell(e,t),i.cell(r,n))}).handle(arguments)}},{key:"autoFilter",value:function(e){return this._autoFilter=e,this}},{key:"row",value:function(e){if(e<1)throw new RangeError("Invalid row number ".concat(e,". Remember that spreadsheets use 1-based indexing."));if(this._rows[e])return this._rows[e];var t=new c(this,{name:"row",attributes:{r:e},children:[]});return this._rows[e]=t}},{key:"tabColor",value:function(){var r=this;return new b("Sheet.tabColor").case(function(){var e=d.findChild(r._sheetPrNode,"tabColor");if(e){var t={};return e.attributes.hasOwnProperty("rgb")?t.rgb=e.attributes.rgb:e.attributes.hasOwnProperty("theme")?t.theme=e.attributes.theme:e.attributes.hasOwnProperty("indexed")&&(t.rgb=m[e.attributes.indexed]),e.attributes.hasOwnProperty("tint")&&(t.tint=e.attributes.tint),t}}).case("string",function(e){return r.tabColor({rgb:e})}).case("integer",function(e){return r.tabColor({theme:e})}).case("nil",function(){return d.removeChild(r._sheetPrNode,"tabColor"),r}).case("object",function(e){var t=d.appendChildIfNotFound(r._sheetPrNode,"tabColor");return d.setAttributes(t,{rgb:e.rgb&&e.rgb.toUpperCase(),indexed:null,theme:e.theme,tint:e.tint}),r}).handle(arguments)}},{key:"tabSelected",value:function(){var t=this,r=this._getOrCreateSheetViewNode();return new b("Sheet.tabSelected").case(function(){return 1===r.attributes.tabSelected}).case("boolean",function(e){return e?r.attributes.tabSelected=1:delete r.attributes.tabSelected,t}).handle(arguments)}},{key:"rightToLeft",value:function(){var t=this,r=this._getOrCreateSheetViewNode();return new b("Sheet.rightToLeft").case(function(){return r.attributes.rightToLeft}).case("boolean",function(e){return e?r.attributes.rightToLeft=!0:delete r.attributes.rightToLeft,t}).handle(arguments)}},{key:"usedRange",value:function(){for(var e=u.findIndex(this._rows),t=this._rows.length-1,r=0,n=0,i=0;i<this._rows.length;i++){var a=this._rows[i];if(a){var o=a.minUsedColumnNumber(),s=a.maxUsedColumnNumber();0<o&&(!r||o<r)&&(r=o),0<s&&(!n||n<s)&&(n=s)}}if(!(e<=0||r<=0||t<=0||n<=0))return this.range(e,r,t,n)}},{key:"workbook",value:function(){return this._workbook}},{key:"pageBreaks",value:function(){return this._pageBreaks}},{key:"verticalPageBreaks",value:function(){return this._pageBreaks.colBreaks}},{key:"horizontalPageBreaks",value:function(){return this._pageBreaks.rowBreaks}},{key:"clearCellsUsingSharedFormula",value:function(t){this._rows.forEach(function(e){e&&e.clearCellsUsingSharedFormula(t)})}},{key:"existingColumnStyleId",value:function(e){var t=this._colNodes[e];return t&&t.attributes.style}},{key:"forEachExistingColumnNumber",value:function(r){u.forEach(this._colNodes,function(e,t){e&&r(t)})}},{key:"forEachExistingRow",value:function(r){return u.forEach(this._rows,function(e,t){e&&r(e,t)}),this}},{key:"hyperlink",value:function(){var o=this;return new b("Sheet.hyperlink").case("string",function(e){var t=o._hyperlinks[e];if(t){var r=o._relationships.findById(t.attributes["r:id"]);return r&&r.attributes.Target}}).case(["string","nil"],function(e){return delete o._hyperlinks[e],o}).case(["string","string"],function(e,t){return o.hyperlink(e,t,!1)}).case(["string","string","boolean"],function(e,t,r){var n;r||p.fromAddress(t)?n={ref:e,location:t,display:t}:n={ref:e,"r:id":o._relationships.add("hyperlink",t,"External").attributes.Id};return o._hyperlinks[e]={name:"hyperlink",attributes:n,children:[]},o}).case(["string","object"],function(e,t){if(t instanceof s){var r=t.address({includeSheetName:!0});o.hyperlink(e,r,!0)}else if(t.hyperlink)o.hyperlink(e,t.hyperlink);else if(t.email){var n=t.email,i=t.emailSubject||"";o.hyperlink(e,encodeURI("mailto:".concat(n,"?subject=").concat(i)))}var a=o._hyperlinks[e];return a&&t.tooltip&&(a.attributes.tooltip=t.tooltip),o}).handle(arguments)}},{key:"incrementMaxSharedFormulaId",value:function(){return++this._maxSharedFormulaId}},{key:"merged",value:function(){var r=this;return new b("Sheet.merge").case("string",function(e){return r._mergeCells.hasOwnProperty(e)}).case(["string","*"],function(e,t){return t?r._mergeCells[e]={name:"mergeCell",attributes:{ref:e},children:[]}:delete r._mergeCells[e],r}).handle(arguments)}},{key:"dataValidation",value:function(){var r=this;return new b("Sheet.dataValidation").case("string",function(e){return!!r._dataValidations[e]&&{type:r._dataValidations[e].attributes.type,allowBlank:r._dataValidations[e].attributes.allowBlank,showInputMessage:r._dataValidations[e].attributes.showInputMessage,prompt:r._dataValidations[e].attributes.prompt,promptTitle:r._dataValidations[e].attributes.promptTitle,showErrorMessage:r._dataValidations[e].attributes.showErrorMessage,error:r._dataValidations[e].attributes.error,errorTitle:r._dataValidations[e].attributes.errorTitle,operator:r._dataValidations[e].attributes.operator,formula1:r._dataValidations[e].children[0].children[0],formula2:r._dataValidations[e].children[1]?r._dataValidations[e].children[1].children[0]:void 0}}).case(["string","boolean"],function(e,t){return!!r._dataValidations[e]&&(!1===t?delete r._dataValidations[e]:void 0)}).case(["string","*"],function(e,t){return"string"==typeof t?r._dataValidations[e]={name:"dataValidation",attributes:{type:"list",allowBlank:!1,showInputMessage:!1,prompt:"",promptTitle:"",showErrorMessage:!1,error:"",errorTitle:"",operator:"",sqref:e},children:[{name:"formula1",atrributes:{},children:[t]},{name:"formula2",atrributes:{},children:[""]}]}:"object"===n(t)&&(r._dataValidations[e]={name:"dataValidation",attributes:{type:t.type?t.type:"list",allowBlank:t.allowBlank,showInputMessage:t.showInputMessage,prompt:t.prompt,promptTitle:t.promptTitle,showErrorMessage:t.showErrorMessage,error:t.error,errorTitle:t.errorTitle,operator:t.operator,sqref:e},children:[{name:"formula1",atrributes:{},children:[t.formula1]},{name:"formula2",atrributes:{},children:[t.formula2]}]}),r}).handle(arguments)}},{key:"toXmls",value:function(){var r=this,n=u.clone(this._node);if(n.children=n.children.slice(),this._colsNode.children=u.filter(this._colNodes,function(e,t){return e&&t===e.attributes.min&&2<Object.keys(e.attributes).length}),this._colsNode.children.length&&d.insertInOrder(n,this._colsNode,y),this._hyperlinksNode.children=u.values(this._hyperlinks),this._hyperlinksNode.children.length&&d.insertInOrder(n,this._hyperlinksNode,y),this._printOptionsNode&&Object.keys(this._printOptionsNode.attributes).length&&d.insertInOrder(n,this._printOptionsNode,y),this._pageMarginsNode&&this._pageMarginsPresetName){var e=u.clone(this._pageMarginsNode);Object.keys(this._pageMarginsNode.attributes).length?e.attributes=u.assign(this._pageMarginsPresets[this._pageMarginsPresetName],this._pageMarginsNode.attributes):e.attributes=this._pageMarginsPresets[this._pageMarginsPresetName],d.insertInOrder(n,e,y)}return this._mergeCellsNode.children=u.values(this._mergeCells),this._mergeCellsNode.children.length&&d.insertInOrder(n,this._mergeCellsNode,y),this._dataValidationsNode.children=u.values(this._dataValidations),this._dataValidationsNode.children.length&&d.insertInOrder(n,this._dataValidationsNode,y),this._autoFilter&&d.insertInOrder(n,{name:"autoFilter",children:[],attributes:{ref:this._autoFilter.address()}},y),["colBreaks","rowBreaks"].forEach(function(e){var t=r["_".concat(e,"Node")];t.attributes.count&&d.insertInOrder(n,t,y)}),{id:this._idNode,sheet:n,relationships:this._relationships}}},{key:"updateMaxSharedFormulaId",value:function(e){e>this._maxSharedFormulaId&&(this._maxSharedFormulaId=e)}},{key:"printOptions",value:function(){var r=this,n=this._getCheckAttributeNameHelper("printOptions",["gridLines","gridLinesSet","headings","horizontalCentered","verticalCentered"]);return new b("Sheet.printOptions").case(["string"],function(e){return n(e),1===r._printOptionsNode.attributes[e]}).case(["string","nil"],function(e){return n(e),delete r._printOptionsNode.attributes[e],r}).case(["string","boolean"],function(e,t){return n(e),t?(r._printOptionsNode.attributes[e]=1,r):r.printOptions(e,void 0)}).handle(arguments)}},{key:"printGridLines",value:function(){var t=this;return new b("Sheet.gridLines").case(function(){return t.printOptions("gridLines")&&t.printOptions("gridLinesSet")}).case(["nil"],function(){return t.printOptions("gridLines",void 0),t.printOptions("gridLinesSet",void 0),t}).case(["boolean"],function(e){return t.printOptions("gridLines",e),t.printOptions("gridLinesSet",e),t}).handle(arguments)}},{key:"pageMargins",value:function(){var r=this;if(void 0===this.pageMarginsPreset())throw new Error("Sheet.pageMargins: preset is undefined.");var n=this._getCheckAttributeNameHelper("pageMargins",["left","right","top","bottom","header","footer"]),i=this._getCheckRangeHelper("pageMargins",0,void 0);return new b("Sheet.pageMargins").case(["string"],function(e){n(e);var t=r._pageMarginsNode.attributes[e];return void 0!==t?parseFloat(t):r._pageMarginsPresetName?parseFloat(r._pageMarginsPresets[r._pageMarginsPresetName][e]):void 0}).case(["string","nil"],function(e){return n(e),delete r._pageMarginsNode.attributes[e],r}).case(["string","number"],function(e,t){return n(e),i(t),r._pageMarginsNode.attributes[e]=t,r}).case(["string","string"],function(e,t){return r.pageMargins(e,parseFloat(t))}).handle(arguments)}},{key:"pageMarginsPreset",value:function(){var r=this;return new b("Sheet.pageMarginsPreset").case(function(){return r._pageMarginsPresetName}).case(["nil"],function(){return r._pageMarginsPresetName=void 0,r._pageMarginsNode.attributes={},r}).case(["string"],function(e){return r._getCheckAttributeNameHelper("pageMarginsPreset",Object.keys(r._pageMarginsPresets))(e),r._pageMarginsPresetName=e,r._pageMarginsNode.attributes={},r}).case(["string","object"],function(e,t){if(r._pageMarginsPresets.hasOwnProperty(e))throw new Error("Sheet.pageMarginsPreset: The preset ".concat(e," already exists!"));if(!1===u.isEqual(u.sortBy(["left","right","top","bottom","header","footer"]),u.sortBy(Object.keys(t))))throw new Error('Sheet.pageMarginsPreset: Invalid preset attributes for one or key(s)! - "'.concat(Object.keys(t),'"'));return u.forEach(function(e,t){var r=parseFloat(e);if(u.isNaN(r)||!1===u.isNumber(r))throw new Error('Sheet.pageMarginsPreset: Invalid preset attribute value! - "'.concat(e,'"'))}),r._pageMarginsPresetName=e,r._pageMarginsNode.attributes={},r._pageMarginsPresets[e]=t,r}).handle(arguments)}},{key:"panes",value:function(){var r=this,n=this._getCheckAttributeNameHelper("pane.state",["split","frozen","frozenSplit"]),i=this._getCheckAttributeNameHelper("pane.activePane",["bottomLeft","bottomRight","topLeft","topRight"]),a=this._getOrCreateSheetViewNode(),o=d.findChild(a,"pane");return new b("Sheet.pane").case(function(){if(o){var e=u.cloneDeep(o.attributes);return e.state||(e.state="split"),e}}).case(["nil"],function(){return d.removeChild(a,"pane"),r}).case(["object"],function(e){var t=u.assign({activePane:"bottomRight"},e);return n(t.state),i(t.activePane),o?o.attributes=t:(o={name:"pane",attributes:t,children:[]},d.appendChild(a,o)),r}).handle(arguments)}},{key:"freezePanes",value:function(){var a=this;return new b("Sheet.feezePanes").case(["integer","integer"],function(e,t){var r=p.columnNumberToName(e+1)+(t+1),n=0===e?"bottomLeft":"bottomRight";return n=0===t?"topRight":n,a.panes({state:"frozen",topLeftCell:r,xSplit:e,ySplit:t,activePane:n})}).case(["string"],function(e){var t=p.fromAddress(e),r=t.columnNumber-1,n=t.rowNumber-1,i=0==r?"bottomLeft":"bottomRight";return i=0==n?"topRight":i,a.panes({state:"frozen",topLeftCell:e,xSplit:r,ySplit:n,activePane:i})}).handle(arguments)}},{key:"splitPanes",value:function(e,t){return this.panes({state:"split",xSplit:e,ySplit:t})}},{key:"resetPanes",value:function(){return this.panes(null)}},{key:"_getCheckAttributeNameHelper",value:function(t,r){return function(e){if(!u.includes(r,e))throw new Error("Sheet.".concat(t,': "').concat(e,'" is not supported.'))}}},{key:"_getCheckTypeHelper",value:function(t,r){return function(e){if(n(e)!==r)throw new TypeError("Sheet.".concat(t,": invalid type - value must be of type ").concat(r,"."))}}},{key:"_getCheckRangeHelper",value:function(t,r,n){var i=this._getCheckTypeHelper(t,"number");return function(e){if(i(e),void 0!==r&&e<r)throw new RangeError("Sheet.".concat(t,": value too small - value must be greater than or equal to ").concat(r,"."));if(void 0!==n&&n<=e)throw new RangeError("Sheet.".concat(t,": value too large - value must be less than ").concat(n,"."))}}},{key:"_getOrCreateSheetViewNode",value:function(){var e=d.findChild(this._node,"sheetViews");return e||(e={name:"sheetViews",attributes:{},children:[{name:"sheetView",attributes:{workbookViewId:0},children:[]}]},d.insertInOrder(this._node,e,y)),d.findChild(e,"sheetView")}},{key:"_init",value:function(e,t,r,n){var i=this;r=r||{name:"worksheet",attributes:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},children:[{name:"sheetData",attributes:{},children:[]}]},this._workbook=e,this._idNode=t,this._node=r,this._maxSharedFormulaId=-1,this._mergeCells={},this._dataValidations={},this._hyperlinks={},this._autoFilter=null,this._relationships=new l(n),d.removeChild(this._node,"dimension"),this._rows=[],this._sheetDataNode=d.findChild(this._node,"sheetData"),this._sheetDataNode.children.forEach(function(e){var t=new c(i,e);i._rows[t.rowNumber()]=t}),this._sheetDataNode.children=this._rows,this._columns=[],this._colsNode=d.findChild(this._node,"cols"),this._colsNode?d.removeChild(this._node,this._colsNode):this._colsNode={name:"cols",attributes:{},children:[]},this._colNodes=[],u.forEach(this._colsNode.children,function(e){for(var t=e.attributes.min,r=e.attributes.max,n=t;n<=r;n++)i._colNodes[n]=e}),this._sheetPrNode=d.findChild(this._node,"sheetPr"),this._sheetPrNode||(this._sheetPrNode={name:"sheetPr",attributes:{},children:[]},d.insertInOrder(this._node,this._sheetPrNode,y)),this._mergeCellsNode=d.findChild(this._node,"mergeCells"),this._mergeCellsNode?d.removeChild(this._node,this._mergeCellsNode):this._mergeCellsNode={name:"mergeCells",attributes:{},children:[]};var a=this._mergeCellsNode.children;this._mergeCellsNode.children=[],a.forEach(function(e){i._mergeCells[e.attributes.ref]=e}),this._dataValidationsNode=d.findChild(this._node,"dataValidations"),this._dataValidationsNode?d.removeChild(this._node,this._dataValidationsNode):this._dataValidationsNode={name:"dataValidations",attributes:{},children:[]};var o=this._dataValidationsNode.children;this._dataValidationsNode.children=[],o.forEach(function(e){i._dataValidations[e.attributes.sqref]=e}),this._hyperlinksNode=d.findChild(this._node,"hyperlinks"),this._hyperlinksNode?d.removeChild(this._node,this._hyperlinksNode):this._hyperlinksNode={name:"hyperlinks",attributes:{},children:[]};var s=this._hyperlinksNode.children;if(this._hyperlinksNode.children=[],s.forEach(function(e){i._hyperlinks[e.attributes.ref]=e}),this._printOptionsNode=d.findChild(this._node,"printOptions"),this._printOptionsNode?d.removeChild(this._node,this._printOptionsNode):this._printOptionsNode={name:"printOptions",attributes:{},children:[]},this._pageMarginsPresets={normal:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},wide:{left:1,right:1,top:1,bottom:1,header:.5,footer:.5},narrow:{left:.25,right:.25,top:.75,bottom:.75,header:.3,footer:.3}},this._pageMarginsNode=d.findChild(this._node,"pageMargins"),this._pageMarginsNode){for(var f in this._pageMarginsPresetName="template",this._pageMarginsPresets)if(u.isEqual(this._pageMarginsNode.attributes,this._pageMarginsPresets[f])){this._pageMarginsPresetName=f;break}"template"===this._pageMarginsPresetName&&(this._pageMarginsPresets.template=this._pageMarginsNode.attributes,this._pageMarginsNode.attributes={}),d.removeChild(this._node,this._pageMarginsNode)}else this._pageMarginsPresetName=void 0,this._pageMarginsNode={name:"pageMargins",attributes:{},children:[]};["colBreaks","rowBreaks"].forEach(function(e){i["_".concat(e,"Node")]=d.findChild(i._node,e),i["_".concat(e,"Node")]?d.removeChild(i._node,i["_".concat(e,"Node")]):i["_".concat(e,"Node")]={name:e,children:[],attributes:{count:0,manualBreakCount:0}}}),this._pageBreaks={colBreaks:new v(this._colBreaksNode),rowBreaks:new v(this._rowBreaksNode)}}}])&&a(e.prototype,t),r&&a(e,r),i}();t.exports=i},{"./ArgHandler":2,"./Cell":3,"./Column":4,"./PageBreaks":9,"./Range":10,"./Relationships":11,"./Row":14,"./addressConverter":23,"./colorIndexes":25,"./regexify":28,"./xmlq":29,lodash:170}],17:[function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("./ArgHandler"),c=e("lodash"),h=e("./xmlq"),s=e("./colorIndexes"),o=function(){function o(e,t,r,n,i,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this._styleSheet=e,this._id=t,this._xfNode=r,this._fontNode=n,this._fillNode=i,this._borderNode=a}var e,t,r;return e=o,(t=[{key:"id",value:function(){return this._id}},{key:"style",value:function(){var n=this;return new a("_Style.style").case("string",function(e){var t="_get_".concat(e);if(!n[t])throw new Error("_Style.style: '".concat(e,"' is not a valid style"));return n[t]()}).case(["string","*"],function(e,t){var r="_set_".concat(e);if(!n[r])throw new Error("_Style.style: '".concat(e,"' is not a valid style"));return n[r](t),n}).handle(arguments)}},{key:"_getColor",value:function(e,t){var r=h.findChild(e,t);if(r&&r.attributes){var n={};if(r.attributes.hasOwnProperty("rgb")?n.rgb=r.attributes.rgb:r.attributes.hasOwnProperty("theme")?n.theme=r.attributes.theme:r.attributes.hasOwnProperty("indexed")&&(n.rgb=s[r.attributes.indexed]),r.attributes.hasOwnProperty("tint")&&(n.tint=r.attributes.tint),!c.isEmpty(n))return n}}},{key:"_setColor",value:function(e,t,r){"string"==typeof r?r={rgb:r}:"number"==typeof r&&(r={theme:r}),h.setChildAttributes(e,t,{rgb:r&&r.rgb&&r.rgb.toUpperCase(),indexed:null,theme:r&&r.theme,tint:r&&r.tint}),h.removeChildIfEmpty(e,"color")}},{key:"_get_bold",value:function(){return h.hasChild(this._fontNode,"b")}},{key:"_set_bold",value:function(e){e?h.appendChildIfNotFound(this._fontNode,"b"):h.removeChild(this._fontNode,"b")}},{key:"_get_italic",value:function(){return h.hasChild(this._fontNode,"i")}},{key:"_set_italic",value:function(e){e?h.appendChildIfNotFound(this._fontNode,"i"):h.removeChild(this._fontNode,"i")}},{key:"_get_underline",value:function(){var e=h.findChild(this._fontNode,"u");return!!e&&(e.attributes.val||!0)}},{key:"_set_underline",value:function(e){if(e){var t=h.appendChildIfNotFound(this._fontNode,"u"),r="string"==typeof e?e:null;h.setAttributes(t,{val:r})}else h.removeChild(this._fontNode,"u")}},{key:"_get_strikethrough",value:function(){return h.hasChild(this._fontNode,"strike")}},{key:"_set_strikethrough",value:function(e){e?h.appendChildIfNotFound(this._fontNode,"strike"):h.removeChild(this._fontNode,"strike")}},{key:"_getFontVerticalAlignment",value:function(){return h.getChildAttribute(this._fontNode,"vertAlign","val")}},{key:"_setFontVerticalAlignment",value:function(e){h.setChildAttributes(this._fontNode,"vertAlign",{val:e}),h.removeChildIfEmpty(this._fontNode,"vertAlign")}},{key:"_get_subscript",value:function(){return"subscript"===this._getFontVerticalAlignment()}},{key:"_set_subscript",value:function(e){this._setFontVerticalAlignment(e?"subscript":null)}},{key:"_get_superscript",value:function(){return"superscript"===this._getFontVerticalAlignment()}},{key:"_set_superscript",value:function(e){this._setFontVerticalAlignment(e?"superscript":null)}},{key:"_get_fontSize",value:function(){return h.getChildAttribute(this._fontNode,"sz","val")}},{key:"_set_fontSize",value:function(e){h.setChildAttributes(this._fontNode,"sz",{val:e}),h.removeChildIfEmpty(this._fontNode,"sz")}},{key:"_get_fontFamily",value:function(){return h.getChildAttribute(this._fontNode,"name","val")}},{key:"_set_fontFamily",value:function(e){h.setChildAttributes(this._fontNode,"name",{val:e}),h.removeChildIfEmpty(this._fontNode,"name")}},{key:"_get_fontGenericFamily",value:function(){return h.getChildAttribute(this._fontNode,"family","val")}},{key:"_set_fontGenericFamily",value:function(e){h.setChildAttributes(this._fontNode,"family",{val:e}),h.removeChildIfEmpty(this._fontNode,"family")}},{key:"_get_fontColor",value:function(){return this._getColor(this._fontNode,"color")}},{key:"_set_fontColor",value:function(e){this._setColor(this._fontNode,"color",e)}},{key:"_get_fontScheme",value:function(){return h.getChildAttribute(this._fontNode,"scheme","val")}},{key:"_set_fontScheme",value:function(e){h.setChildAttributes(this._fontNode,"scheme",{val:e}),h.removeChildIfEmpty(this._fontNode,"scheme")}},{key:"_get_horizontalAlignment",value:function(){return h.getChildAttribute(this._xfNode,"alignment","horizontal")}},{key:"_set_horizontalAlignment",value:function(e){h.setChildAttributes(this._xfNode,"alignment",{horizontal:e}),h.removeChildIfEmpty(this._xfNode,"alignment")}},{key:"_get_justifyLastLine",value:function(){return 1===h.getChildAttribute(this._xfNode,"alignment","justifyLastLine")}},{key:"_set_justifyLastLine",value:function(e){h.setChildAttributes(this._xfNode,"alignment",{justifyLastLine:e?1:null}),h.removeChildIfEmpty(this._xfNode,"alignment")}},{key:"_get_indent",value:function(){return h.getChildAttribute(this._xfNode,"alignment","indent")}},{key:"_set_indent",value:function(e){h.setChildAttributes(this._xfNode,"alignment",{indent:e}),h.removeChildIfEmpty(this._xfNode,"alignment")}},{key:"_get_verticalAlignment",value:function(){return h.getChildAttribute(this._xfNode,"alignment","vertical")}},{key:"_set_verticalAlignment",value:function(e){h.setChildAttributes(this._xfNode,"alignment",{vertical:e}),h.removeChildIfEmpty(this._xfNode,"alignment")}},{key:"_get_wrapText",value:function(){return 1===h.getChildAttribute(this._xfNode,"alignment","wrapText")}},{key:"_set_wrapText",value:function(e){h.setChildAttributes(this._xfNode,"alignment",{wrapText:e?1:null}),h.removeChildIfEmpty(this._xfNode,"alignment")}},{key:"_get_shrinkToFit",value:function(){return 1===h.getChildAttribute(this._xfNode,"alignment","shrinkToFit")}},{key:"_set_shrinkToFit",value:function(e){h.setChildAttributes(this._xfNode,"alignment",{shrinkToFit:e?1:null}),h.removeChildIfEmpty(this._xfNode,"alignment")}},{key:"_get_textDirection",value:function(){var e=h.getChildAttribute(this._xfNode,"alignment","readingOrder");return 1===e?"left-to-right":2===e?"right-to-left":e}},{key:"_set_textDirection",value:function(e){var t;"left-to-right"===e?t=1:"right-to-left"===e&&(t=2),h.setChildAttributes(this._xfNode,"alignment",{readingOrder:t}),h.removeChildIfEmpty(this._xfNode,"alignment")}},{key:"_getTextRotation",value:function(){return h.getChildAttribute(this._xfNode,"alignment","textRotation")}},{key:"_setTextRotation",value:function(e){h.setChildAttributes(this._xfNode,"alignment",{textRotation:e}),h.removeChildIfEmpty(this._xfNode,"alignment")}},{key:"_get_textRotation",value:function(){var e=this._getTextRotation();return 90<e&&(e=90-e),e}},{key:"_set_textRotation",value:function(e){e<0&&(e=90-e),this._setTextRotation(e)}},{key:"_get_angleTextCounterclockwise",value:function(){return 45===this._getTextRotation()}},{key:"_set_angleTextCounterclockwise",value:function(e){this._setTextRotation(e?45:null)}},{key:"_get_angleTextClockwise",value:function(){return 135===this._getTextRotation()}},{key:"_set_angleTextClockwise",value:function(e){this._setTextRotation(e?135:null)}},{key:"_get_rotateTextUp",value:function(){return 90===this._getTextRotation()}},{key:"_set_rotateTextUp",value:function(e){this._setTextRotation(e?90:null)}},{key:"_get_rotateTextDown",value:function(){return 180===this._getTextRotation()}},{key:"_set_rotateTextDown",value:function(e){this._setTextRotation(e?180:null)}},{key:"_get_verticalText",value:function(){return 255===this._getTextRotation()}},{key:"_set_verticalText",value:function(e){this._setTextRotation(e?255:null)}},{key:"_get_fill",value:function(){var t=this,e=h.findChild(this._fillNode,"patternFill"),r=h.findChild(this._fillNode,"gradientFill"),n=e&&e.attributes.patternType;if("solid"===n)return{type:"solid",color:this._getColor(e,"fgColor")};if(n)return{type:"pattern",pattern:n,foreground:this._getColor(e,"fgColor"),background:this._getColor(e,"bgColor")};if(r){var i=r.attributes.type||"linear",a={type:"gradient",gradientType:i,stops:c.map(r.children,function(e){return{position:e.attributes.position,color:t._getColor(e,"color")}})};return"linear"===i?a.angle=r.attributes.degree:(a.left=r.attributes.left,a.right=r.attributes.right,a.top=r.attributes.top,a.bottom=r.attributes.bottom),a}}},{key:"_set_fill",value:function(e){var n=this;if(this._fillNode.children=[],!c.isNil(e)){if("pattern"===e.type){var t={name:"patternFill",attributes:{patternType:e.pattern},children:[]};return this._fillNode.children.push(t),this._setColor(t,"fgColor",e.foreground),void this._setColor(t,"bgColor",e.background)}if("gradient"===e.type){var i={name:"gradientFill",attributes:{},children:[]};return this._fillNode.children.push(i),h.setAttributes(i,{type:"path"===e.gradientType?"path":void 0,left:e.left,right:e.right,top:e.top,bottom:e.bottom,degree:e.angle}),void c.forEach(e.stops,function(e,t){var r={name:"stop",attributes:{position:e.position},children:[]};i.children.push(r),n._setColor(r,"color",e.color)})}c.isObject(e)?(e.hasOwnProperty("rgb")||e.hasOwnProperty("theme"))&&(e={color:e}):e={type:"solid",color:e};var r={name:"patternFill",attributes:{patternType:"solid"}};this._fillNode.children.push(r),this._setColor(r,"fgColor",e.color)}}},{key:"_getBorder",value:function(){var f=this,u={};return["left","right","top","bottom","diagonal"].forEach(function(e){var t=h.findChild(f._borderNode,e),r={},n=h.getChildAttribute(f._borderNode,e,"style");n&&(r.style=n);var i=f._getColor(t,"color");if(i&&(r.color=i),"diagonal"===e){var a,o=f._borderNode.attributes.diagonalUp,s=f._borderNode.attributes.diagonalDown;o&&s?a="both":o?a="up":s&&(a="down"),a&&(r.direction=a)}c.isEmpty(r)||(u[e]=r)}),u}},{key:"_setBorder",value:function(e){var n=this;c.forOwn(e,function(e,t){if("boolean"==typeof e?e={style:e?"thin":null}:"string"==typeof e?e={style:e}:null==e&&(e={style:null,color:null,direction:null}),e.hasOwnProperty("style")&&h.setChildAttributes(n._borderNode,t,{style:e.style}),e.hasOwnProperty("color")){var r=h.findChild(n._borderNode,t);n._setColor(r,"color",e.color)}"diagonal"===t&&h.setAttributes(n._borderNode,{diagonalUp:"up"===e.direction||"both"===e.direction?1:null,diagonalDown:"down"===e.direction||"both"===e.direction?1:null})})}},{key:"_get_border",value:function(){return this._getBorder()}},{key:"_set_border",value:function(e){!c.isObject(e)||e.hasOwnProperty("style")||e.hasOwnProperty("color")?this._setBorder({left:e,right:e,top:e,bottom:e}):(e=c.defaults(e,{left:null,right:null,top:null,bottom:null,diagonal:null}),this._setBorder(e))}},{key:"_get_borderColor",value:function(){return c.mapValues(this._getBorder(),function(e){return e.color})}},{key:"_set_borderColor",value:function(e){c.isObject(e)?this._setBorder(c.mapValues(e,function(e){return{color:e}})):this._setBorder({left:{color:e},right:{color:e},top:{color:e},bottom:{color:e},diagonal:{color:e}})}},{key:"_get_borderStyle",value:function(){return c.mapValues(this._getBorder(),function(e){return e.style})}},{key:"_set_borderStyle",value:function(e){c.isObject(e)?this._setBorder(c.mapValues(e,function(e){return{style:e}})):this._setBorder({left:{style:e},right:{style:e},top:{style:e},bottom:{style:e}})}},{key:"_get_diagonalBorderDirection",value:function(){var e=this._getBorder().diagonal;return e&&e.direction}},{key:"_set_diagonalBorderDirection",value:function(e){this._setBorder({diagonal:{direction:e}})}},{key:"_get_numberFormat",value:function(){var e=this._xfNode.attributes.numFmtId||0;return this._styleSheet.getNumberFormatCode(e)}},{key:"_set_numberFormat",value:function(e){this._xfNode.attributes.numFmtId=this._styleSheet.getNumberFormatId(e)}}])&&i(e.prototype,t),r&&i(e,r),o}();["left","right","top","bottom","diagonal"].forEach(function(t){o.prototype["_get_".concat(t,"Border")]=function(){return this._getBorder()[t]},o.prototype["_set_".concat(t,"Border")]=function(e){this._setBorder(n({},t,e))},o.prototype["_get_".concat(t,"BorderColor")]=function(){var e=this._getBorder()[t];return e&&e.color},o.prototype["_set_".concat(t,"BorderColor")]=function(e){this._setBorder(n({},t,{color:e}))},o.prototype["_get_".concat(t,"BorderStyle")]=function(){var e=this._getBorder()[t];return e&&e.style},o.prototype["_set_".concat(t,"BorderStyle")]=function(e){this._setBorder(n({},t,{style:e}))}}),o.name||(o.name="Style"),t.exports=o},{"./ArgHandler":2,"./colorIndexes":25,"./xmlq":29,lodash:170}],18:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=e("lodash"),c=e("./xmlq"),h=e("./Style"),a={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"mm-dd-yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"},n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._init(e),this._cacheNumberFormats()}var e,r,n;return e=t,(r=[{key:"createStyle",value:function(e){var t,r,n,i;if(0<=e){var a=this._cellXfsNode.children[e];if(i=u.cloneDeep(a),a.attributes.applyFont){var o=a.attributes.fontId;t=u.cloneDeep(this._fontsNode.children[o])}if(a.attributes.applyFill){var s=a.attributes.fillId;r=u.cloneDeep(this._fillsNode.children[s])}if(a.attributes.applyBorder){var f=a.attributes.borderId;n=u.cloneDeep(this._bordersNode.children[f])}}return t=t||{name:"font",attributes:{},children:[]},this._fontsNode.children.push(t),r=r||{name:"fill",attributes:{},children:[]},this._fillsNode.children.push(r),(n=n||{name:"border",attributes:{},children:[]}).children=[c.findChild(n,"left")||{name:"left",attributes:{},children:[]},c.findChild(n,"right")||{name:"right",attributes:{},children:[]},c.findChild(n,"top")||{name:"top",attributes:{},children:[]},c.findChild(n,"bottom")||{name:"bottom",attributes:{},children:[]},c.findChild(n,"diagonal")||{name:"diagonal",attributes:{},children:[]}],this._bordersNode.children.push(n),i=i||{name:"xf",attributes:{},children:[]},u.assign(i.attributes,{fontId:this._fontsNode.children.length-1,fillId:this._fillsNode.children.length-1,borderId:this._bordersNode.children.length-1,applyFont:1,applyFill:1,applyBorder:1}),this._cellXfsNode.children.push(i),new h(this,this._cellXfsNode.children.length-1,i,t,r,n)}},{key:"getNumberFormatCode",value:function(e){return this._numberFormatCodesById[e]}},{key:"getNumberFormatId",value:function(e){var t=this._numberFormatIdsByCode[e];return void 0===t&&(t=this._nextNumFormatId++,this._numberFormatCodesById[t]=e,this._numberFormatIdsByCode[e]=t,this._numFmtsNode.children.push({name:"numFmt",attributes:{numFmtId:t,formatCode:e}})),t}},{key:"toXml",value:function(){return this._node}},{key:"_cacheNumberFormats",value:function(){var n=this;for(var e in this._numberFormatCodesById={},this._numberFormatIdsByCode={},a)if(a.hasOwnProperty(e)){var t=a[e];this._numberFormatCodesById[e]=t,this._numberFormatIdsByCode[t]=parseInt(e)}this._nextNumFormatId=164,this._numFmtsNode.children.forEach(function(e){var t=e.attributes.numFmtId,r=e.attributes.formatCode;n._numberFormatCodesById[t]=r,(n._numberFormatIdsByCode[r]=t)>=n._nextNumFormatId&&(n._nextNumFormatId=t+1)})}},{key:"_init",value:function(e){this._node=e,this._numFmtsNode=c.findChild(this._node,"numFmts"),this._fontsNode=c.findChild(this._node,"fonts"),this._fillsNode=c.findChild(this._node,"fills"),this._bordersNode=c.findChild(this._node,"borders"),this._cellXfsNode=c.findChild(this._node,"cellXfs"),this._numFmtsNode||(this._numFmtsNode={name:"numFmts",attributes:{},children:[]},c.insertBefore(this._node,this._numFmtsNode,this._fontsNode)),delete this._numFmtsNode.attributes.count,delete this._fontsNode.attributes.count,delete this._fillsNode.attributes.count,delete this._bordersNode.attributes.count,delete this._cellXfsNode.attributes.count}}])&&i(e.prototype,r),n&&i(e,n),t}();t.exports=n},{"./Style":17,"./xmlq":29,lodash:170}],19:[function(M,T,e){(function(i,a){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var c=M("lodash"),f=M("fs"),u=M("jszip"),h=M("./externals"),l=M("./regexify"),d=M("./blank")(),p=M("./xmlq"),b=M("./Sheet"),m=M("./ContentTypes"),v=M("./AppProperties"),y=M("./CoreProperties"),g=M("./Relationships"),_=M("./SharedStrings"),w=M("./StyleSheet"),e=M("./Encryptor"),t=M("./XmlParser"),r=M("./XmlBuilder"),A=M("./ArgHandler"),k=M("./addressConverter"),S={date:new Date(0),createFolders:!1},E=new t,x=new r,C="function"==typeof e&&new e,I=["\\","/","*","[","]",":","?"],N=["fileVersion","fileSharing","workbookPr","workbookProtection","bookViews","sheets","functionGroups","externalReferences","definedNames","calcPr","oleSize","customWorkbookViews","pivotCaches","smartTagPr","smartTagTypes","webPublishing","fileRecoveryPr","webPublishObjects","extLst"],n=function(){function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r)}var e,t,n;return e=r,n=[{key:"fromBlankAsync",value:function(){return r.fromDataAsync(d)}},{key:"fromDataAsync",value:function(e,t){return(new r)._initAsync(e,t)}},{key:"fromFileAsync",value:function(e,t){if(i.browser)throw new Error("Workbook.fromFileAsync is not supported in the browser");return new h.Promise(function(r,n){f.readFile(e,function(e,t){if(e)return n(e);r(t)})}).then(function(e){return r.fromDataAsync(e,t)})}}],(t=[{key:"activeSheet",value:function(){var e=this;return new A("Workbook.activeSheet").case(function(){return e._activeSheet}).case("*",function(t){if(t instanceof b||(t=e.sheet(t)),t.hidden())throw new Error("You may not activate a hidden sheet.");return c.forEach(e._sheets,function(e){e.tabSelected(e===t)}),e._activeSheet=t,e}).handle(arguments)}},{key:"addSheet",value:function(e,t){return this._addSheet(e,t)}},{key:"definedName",value:function(){var r=this;return new A("Workbook.definedName").case("string",function(e){return r.scopedDefinedName(void 0,e)}).case(["string","*"],function(e,t){return r.scopedDefinedName(void 0,e,t),r}).handle(arguments)}},{key:"deleteSheet",value:function(e){if(!(e instanceof b||(e=this.sheet(e))))throw new Error("Invalid move sheet reference.");var t=c.filter(this._sheets,function(e){return!e.hidden()});if(1===t.length&&t[0]===e)throw new Error("This sheet may not be deleted as a workbook must contain at least one visible sheet.");var r=this._sheets.indexOf(e);return this._sheets.splice(r,1),e===this.activeSheet()&&(r>=this._sheets.length&&r--,this.activeSheet(r)),this}},{key:"find",value:function(t,r){t=l(t);var n=[];return this._sheets.forEach(function(e){n=n.concat(e.find(t,r))}),n}},{key:"moveSheet",value:function(e,t){if(!(e instanceof b||(e=this.sheet(e))))throw new Error("Invalid move sheet reference.");var r,n=this._sheets.indexOf(e);if(c.isNil(t))r=this._sheets.length-1;else if(c.isInteger(t))r=t;else{if(!(t instanceof b||(t=this.sheet(t))))throw new Error("Invalid before sheet reference.");r=this._sheets.indexOf(t)}return this._sheets.splice(r,0,this._sheets.splice(n,1)[0]),this}},{key:"outputAsync",value:function(t){var o=this;"string"==typeof(t=t||{})&&(t={type:t}),this._setSheetRefs();var r=p.findChild(this._node,"definedNames");return this._sheets.forEach(function(e,t){e._autoFilter&&(r||(r={name:"definedNames",attributes:{},children:[]},p.insertInOrder(o._node,r,N)),p.appendChild(r,{name:"definedName",attributes:{name:"_xlnm._FilterDatabase",localSheetId:t,hidden:"1"},children:[e._autoFilter.address({includeSheetName:!0,anchored:!0})]}))}),this._sheetsNode.children=[],this._sheets.forEach(function(e,t){var r="xl/worksheets/sheet".concat(t+1,".xml"),n="xl/worksheets/_rels/sheet".concat(t+1,".xml.rels"),i=e.toXmls();o._relationships.findById(i.id.attributes["r:id"]).attributes.Target="worksheets/sheet".concat(t+1,".xml"),o._sheetsNode.children.push(i.id),o._zip.file(r,x.build(i.sheet),S);var a=x.build(i.relationships);a?o._zip.file(n,a,S):o._zip.remove(n)}),this._zip.file("[Content_Types].xml",x.build(this._contentTypes),S),this._zip.file("docProps/app.xml",x.build(this._appProperties),S),this._zip.file("docProps/core.xml",x.build(this._coreProperties),S),this._zip.file("xl/_rels/workbook.xml.rels",x.build(this._relationships),S),this._zip.file("xl/sharedStrings.xml",x.build(this._sharedStrings),S),this._zip.file("xl/styles.xml",x.build(this._styleSheet),S),this._zip.file("xl/workbook.xml",x.build(this._node),S),this._zip.generateAsync({type:"nodebuffer",compression:"DEFLATE"}).then(function(e){return t.password&&(e=C.encrypt(e,t.password)),o._convertBufferToOutput(e,t.type)})}},{key:"sheet",value:function(t){return c.isInteger(t)?this._sheets[t]:c.find(this._sheets,function(e){return e.name()===t})}},{key:"sheets",value:function(){return this._sheets.slice()}},{key:"property",value:function(){var n=this;return new A("Workbook.property").case("string",function(e){return n._coreProperties.get(e)}).case("array",function(e){var t={};return e.forEach(function(e){t[e]=n._coreProperties.get(e)}),t}).case(["string","*"],function(e,t){return n._coreProperties.set(e,t),n}).case("object",function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];n._coreProperties.set(t,r)}return n}).handle(arguments)}},{key:"properties",value:function(){return this._coreProperties}},{key:"toFileAsync",value:function(n,e){if(i.browser)throw new Error("Workbook.toFileAsync is not supported in the browser.");return this.outputAsync(e).then(function(e){return new h.Promise(function(t,r){f.writeFile(n,e,function(e){if(e)return r(e);t()})})})}},{key:"scopedDefinedName",value:function(t,r,e){var n=this,i=p.findChild(this._node,"definedNames"),a=i&&c.find(i.children,function(e){return e.attributes.name===r&&e.localSheet===t});return new A("Workbook.scopedDefinedName").case(["*","string"],function(){var e=a&&a.children[0];if(e){var t=k.fromAddress(e);if(!t)return e;var r=n.sheet(t.sheetName);return"cell"===t.type?r.cell(t.rowNumber,t.columnNumber):"range"===t.type?r.range(t.startRowNumber,t.startColumnNumber,t.endRowNumber,t.endColumnNumber):"row"===t.type?r.row(t.rowNumber):"column"===t.type?r.column(t.columnNumber):e}}).case(["*","string","nil"],function(){return a&&p.removeChild(i,a),i&&!i.children.length&&p.removeChild(n._node,i),n}).case(["*","string","*"],function(){return"string"!=typeof e&&(e=e.address({includeSheetName:!0,anchored:!0})),i||(i={name:"definedNames",attributes:{},children:[]},p.insertInOrder(n._node,i,N)),a||(a={name:"definedName",attributes:{name:r},children:[e]},t&&(a.localSheet=t),p.appendChild(i,a)),a.children=[e],n}).handle(arguments)}},{key:"sharedStrings",value:function(){return this._sharedStrings}},{key:"styleSheet",value:function(){return this._styleSheet}},{key:"cloneSheet",value:function(t,e,r){if(!(t&&t instanceof b))throw new Error("Invalid clone from.");return this._addSheet(e,r,function(){function n(e){if(e&&c.isFunction(e.toXml)&&(e=e.toXml()),"object"===o(e)){if(e.name){var t,r={name:e.name,attributes:{},children:[]};return c.forOwn(e.attributes,function(e,t){r.attributes[t]=e}),e.children&&e.children.forEach(function(e){t=n(e),null!==e&&r.children.push(t)}),r}}else if(null!==e)return e;return null}var e=t.toXmls();return{sheetNode:n(e.sheet),relationshipNode:n(e.relationships)}})}},{key:"_addSheet",value:function(t,e,r){if(!t||"string"!=typeof t)throw new Error("Invalid sheet name.");if(c.some(I,function(e){return 0<=t.indexOf(e)}))throw new Error("Sheet name may not contain any of the following characters: ".concat(I.join(" ")));if(31<t.length)throw new Error("Sheet name may not be greater than ".concat(31," characters."));if(this.sheet(t))throw new Error('Sheet with name "'.concat(t,'" already exists.'));var n;if(c.isNil(e))n=this._sheets.length;else if(c.isInteger(e))n=e;else{if(!(e instanceof b||(e=this.sheet(e))))throw new Error("Invalid before sheet reference.");n=this._sheets.indexOf(e)}var i,a=this._relationships.add("worksheet"),o={name:"sheet",attributes:{name:t,sheetId:++this._maxSheetId,"r:id":a.attributes.Id},children:[]};if(r){var s=r(),f=s.sheetNode,u=s.relationshipNode;i=new b(this,o,f,u)}else i=new b(this,o);return this._sheets.splice(n,0,i),i}},{key:"_initAsync",value:function(t,e){var f=this;return e=e||{},this._maxSheetId=0,this._sheets=[],h.Promise.resolve().then(function(){return f._convertInputToBufferAsync(t,e.base64).then(function(e){t=e})}).then(function(){if(e.password)return C.decryptAsync(t,e.password).then(function(e){t=e})}).then(function(){return u.loadAsync(t)}).then(function(e){return f._zip=e,f._parseNodesAsync(["[Content_Types].xml","docProps/app.xml","docProps/core.xml","xl/_rels/workbook.xml.rels","xl/sharedStrings.xml","xl/styles.xml","xl/workbook.xml"])}).then(function(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6];return f._contentTypes=new m(t),f._appProperties=new v(r),f._coreProperties=new y(n),f._relationships=new g(i),f._sharedStrings=new _(a),f._styleSheet=new w(o),f._node=s,f._relationships.findByType("sharedStrings")||f._relationships.add("sharedStrings","sharedStrings.xml"),f._contentTypes.findByPartName("/xl/sharedStrings.xml")||f._contentTypes.add("/xl/sharedStrings.xml","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"),f._zip.remove("xl/calcChain.xml"),f._sheetsNode=p.findChild(f._node,"sheets"),h.Promise.all(c.map(f._sheetsNode.children,function(n,i){return n.attributes.sheetId>f._maxSheetId&&(f._maxSheetId=n.attributes.sheetId),f._parseNodesAsync(["xl/worksheets/sheet".concat(i+1,".xml"),"xl/worksheets/_rels/sheet".concat(i+1,".xml.rels")]).then(function(e){var t=e[0],r=e[1];f._sheets[i]=new b(f,n,t,r)})}))}).then(function(){return f._parseSheetRefs()}).then(function(){return f})}},{key:"_parseNodesAsync",value:function(e){var t=this;return h.Promise.all(c.map(e,function(e){return t._zip.file(e)})).then(function(e){return h.Promise.all(c.map(e,function(e){return e&&e.async("string")}))}).then(function(e){return h.Promise.all(c.map(e,function(e){return e&&E.parseAsync(e)}))})}},{key:"_parseSheetRefs",value:function(){var t=this,e=p.findChild(this._node,"bookViews"),r=e&&p.findChild(e,"workbookView"),n=r&&r.attributes.activeTab||0;this._activeSheet=this._sheets[n];var i=p.findChild(this._node,"definedNames");i&&c.forEach(i.children,function(e){e.attributes.hasOwnProperty("localSheetId")&&(e.localSheet=t._sheets[e.attributes.localSheetId])})}},{key:"_setSheetRefs",value:function(){var t=this,e=p.findChild(this._node,"bookViews");e||(e={name:"bookViews",attributes:{},children:[]},p.insertInOrder(this._node,e,N));var r=p.findChild(e,"workbookView");r||(r={name:"workbookView",attributes:{},children:[]},p.appendChild(e,r)),r.attributes.activeTab=this._sheets.indexOf(this._activeSheet);var n=p.findChild(this._node,"definedNames");n&&c.forEach(n.children,function(e){e.localSheet&&(e.attributes.localSheetId=t._sheets.indexOf(e.localSheet))})}},{key:"_convertBufferToOutput",value:function(e,t){if("buffer"===(t=t||(i.browser?"blob":"nodebuffer"))||"nodebuffer"===t)return e;if(i.browser&&"blob"===t)return new Blob([e],{type:r.MIME_TYPE});if("base64"===t)return e.toString("base64");if("binarystring"===t)return e.toString("utf8");if("uint8array"===t)return new Uint8Array(e);if("arraybuffer"===t)return new Uint8Array(e).buffer;throw new Error("Output type '".concat(t,"' not supported."))}},{key:"_convertInputToBufferAsync",value:function(r,e){return h.Promise.resolve().then(function(){if(a.isBuffer(r))return r;if(i.browser&&r instanceof Blob)return new h.Promise(function(t){var e=new FileReader;e.onload=function(e){t(a.from(e.target.result))},e.readAsArrayBuffer(r)});if("string"==typeof r&&e)return a.from(r,"base64");if("string"==typeof r&&!e)return a.from(r,"utf8");if(r instanceof Uint8Array||r instanceof ArrayBuffer)return a.from(r);throw new Error("Input type unknown.")})}}])&&s(e.prototype,t),n&&s(e,n),r}();n.MIME_TYPE="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",T.exports=n}).call(this,M("_process"),M("buffer").Buffer)},{"./AppProperties":1,"./ArgHandler":2,"./ContentTypes":5,"./CoreProperties":6,"./Encryptor":7,"./Relationships":11,"./SharedStrings":15,"./Sheet":16,"./StyleSheet":18,"./XmlBuilder":21,"./XmlParser":22,"./addressConverter":23,"./blank":24,"./externals":27,"./regexify":28,"./xmlq":29,_process:202,buffer:77,fs:75,jszip:143,lodash:170}],20:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("./externals"),o=e("./Workbook"),n=e("./FormulaError"),s=e("./dateConverter"),f=e("./RichText"),u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"dateToNumber",value:function(e){return s.dateToNumber(e)}},{key:"fromBlankAsync",value:function(){return o.fromBlankAsync()}},{key:"fromDataAsync",value:function(e,t){return o.fromDataAsync(e,t)}},{key:"fromFileAsync",value:function(e,t){return o.fromFileAsync(e,t)}},{key:"numberToDate",value:function(e){return s.numberToDate(e)}},{key:"Promise",get:function(){return a.Promise},set:function(e){a.Promise=e}}],(r=null)&&i(t.prototype,r),n&&i(t,n),e}();u.MIME_TYPE=o.MIME_TYPE,u.FormulaError=n,u.RichText=f,t.exports=u},{"./FormulaError":8,"./RichText":12,"./Workbook":19,"./dateConverter":26,"./externals":27}],21:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("lodash"),n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"build",value:function(e){this._i=0;var t=this._build(e,"");if(""!==t)return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+t}},{key:"_build",value:function(e,r){var n=this;if(this._i++%1e6==0&&(this._c=r[0]),e&&a.isFunction(e.toXml)&&(e=e.toXml()),a.isObject(e)){if(!e.name)throw new Error("XML node does not have name: ".concat(JSON.stringify(e)));r+="<".concat(e.name),a.forOwn(e.attributes,function(e,t){r+=" ".concat(t,'="').concat(n._escapeString(e,!0),'"')}),a.isEmpty(e.children)?r+="/>":(r+=">",a.forEach(e.children,function(e){r=n._build(e,r)}),r+="</".concat(e.name,">"))}else a.isNil(e)||(r+=this._escapeString(e));return r}},{key:"_escapeString",value:function(e,t){return a.isNil(e)||(e=e.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),t&&(e=e.replace(/"/g,"&quot;"))),e}}])&&i(t.prototype,r),n&&i(t,n),e}();t.exports=n},{lodash:170}],22:[function(e,t,r){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=e("sax"),a=e("./externals"),u=/^\s+$/,n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"parseAsync",value:function(o){var s=this;return new a.Promise(function(e,t){var r,n,i=f.parser(!0),a=[];i.onerror=t,i.ontext=function(e){u.test(e)?n&&"preserve"===n.attributes["xml:space"]&&n.children.push(e):n.children.push(s._covertToNumberIfNumber(e))},i.onopentagstart=function(e){var t={name:e.name,attributes:{},children:[]};n?n.children.push(t):r=t,a.push(t),n=t},i.onclosetag=function(e){a.pop(),n=a[a.length-1]},i.onattribute=function(e){n.attributes[e.name]=s._covertToNumberIfNumber(e.value)},i.onend=function(){return e(r)},i.write(o).close()})}},{key:"_covertToNumberIfNumber",value:function(e){var t=Number(e);return t.toString()===e?t:e}}])&&i(t.prototype,r),n&&i(t,n),e}();t.exports=n},{"./externals":27,sax:226}],23:[function(e,t,r){"use strict";e("lodash");var n=/^(?:'?(.+?)'?!)?(?:(\$)?([A-Z]+)(\$)?(\d+)(?::(\$)?([A-Z]+)(\$)?(\d+))?|(\$)?([A-Z]+):(\$)?([A-Z]+)|(\$)?(\d+):(\$)?(\d+))$/;t.exports={columnNameToNumber:function(e){if(e&&"string"==typeof e){e=e.toUpperCase();for(var t=0,r=0;r<e.length;r++)t*=26,t+=e[r].charCodeAt(0)-"A".charCodeAt(0)+1;return t}},columnNumberToName:function(e){for(var t=e,r="",n=0;0<t;)n=(t-1)%26,r=String.fromCharCode("A".charCodeAt(0)+n)+r,t=Math.floor((t-n)/26);return r},fromAddress:function(e){var t=e.match(n);if(t){var r={};return t[1]&&(r.sheetName=t[1].replace(/''/g,"'")),t[3]&&t[7]?(r.type="range",r.startColumnAnchored=!!t[2],r.startColumnName=t[3],r.startColumnNumber=this.columnNameToNumber(r.startColumnName),r.startRowAnchored=!!t[4],r.startRowNumber=parseInt(t[5]),r.endColumnAnchored=!!t[6],r.endColumnName=t[7],r.endColumnNumber=this.columnNameToNumber(r.endColumnName),r.endRowAnchored=!!t[8],r.endRowNumber=parseInt(t[9])):t[3]?(r.type="cell",r.columnAnchored=!!t[2],r.columnName=t[3],r.columnNumber=this.columnNameToNumber(r.columnName),r.rowAnchored=!!t[4],r.rowNumber=parseInt(t[5])):t[11]&&t[11]!==t[13]?(r.type="columnRange",r.startColumnAnchored=!!t[10],r.startColumnName=t[11],r.startColumnNumber=this.columnNameToNumber(r.startColumnName),r.endColumnAnchored=!!t[12],r.endColumnName=t[13],r.endColumnNumber=this.columnNameToNumber(r.endColumnName)):t[11]?(r.type="column",r.columnAnchored=!!t[10],r.columnName=t[11],r.columnNumber=this.columnNameToNumber(r.columnName)):t[15]&&t[15]!==t[17]?(r.type="rowRange",r.startRowAnchored=!!t[14],r.startRowNumber=parseInt(t[15]),r.endRowAnchored=!!t[16],r.endRowNumber=parseInt(t[17])):t[15]&&(r.type="row",r.rowAnchored=!!t[14],r.rowNumber=parseInt(t[15])),r}},toAddress:function(e){var t,r,n=e.sheetName;"cell"===e.type?t={columnName:e.columnName,columnNumber:e.columnNumber,columnAnchored:e.columnAnchored,rowNumber:e.rowNumber,rowAnchored:e.rowAnchored}:"range"===e.type?(t={columnName:e.startColumnName,columnNumber:e.startColumnNumber,columnAnchored:e.startColumnAnchored,rowNumber:e.startRowNumber,rowAnchored:e.startRowAnchored},r={columnName:e.endColumnName,columnNumber:e.endColumnNumber,columnAnchored:e.endColumnAnchored,rowNumber:e.endRowNumber,rowAnchored:e.endRowAnchored}):"column"===e.type?t=r={columnName:e.columnName,columnNumber:e.columnNumber,columnAnchored:e.columnAnchored}:"row"===e.type?t=r={rowNumber:e.rowNumber,rowAnchored:e.rowAnchored}:"columnRange"===e.type?(t={columnName:e.startColumnName,columnNumber:e.startColumnNumber,columnAnchored:e.startColumnAnchored},r={columnName:e.endColumnName,columnNumber:e.endColumnNumber,columnAnchored:e.endColumnAnchored}):"rowRange"===e.type&&(t={rowNumber:e.startRowNumber,rowAnchored:e.startRowAnchored},r={rowNumber:e.endRowNumber,rowAnchored:e.endRowAnchored});var i="";return n&&(i="".concat(i,"'").concat(n.replace(/'/g,"''"),"'!")),t.columnAnchored&&(i="".concat(i,"$")),t.columnName?i+=t.columnName:t.columnNumber&&(i+=this.columnNumberToName(t.columnNumber)),t.rowAnchored&&(i="".concat(i,"$")),t.rowNumber&&(i+=t.rowNumber),r&&(i="".concat(i,":"),r.columnAnchored&&(i="".concat(i,"$")),r.columnName?i+=r.columnName:r.columnNumber&&(i+=this.columnNumberToName(r.columnNumber)),r.rowAnchored&&(i="".concat(i,"$")),r.rowNumber&&(i+=r.rowNumber)),i}}},{lodash:170}],24:[function(e,t,r){(function(e){"use strict";t.exports=function(){return e.from("UEsDBBQAAAAIAAAAIQC1VTAj7AAAAEwCAAALAAAAX3JlbHMvLnJlbHONks1OwzAMgO9IvEPk++puSAihpbsgpN0QKg9gEvdHbeMoCdC9PeGAoNIYPcaxP3+2vD/M06jeOcRenIZtUYJiZ8T2rtXwUj9u7kDFRM7SKI41nDjCobq+2j/zSCkXxa73UWWKixq6lPw9YjQdTxQL8ezyTyNhopSfoUVPZqCWcVeWtxh+M6BaMNXRaghHewOqPnlew5am6Q0/iHmb2KUzLZDnxM6y3fiQ60Pq8zSqptBy0mDFPOVwRPK+yGjA80a79UZ/T4sTJ7KUCI0EvuzzlXFJaLte6P8VLTN+bOYRPyQMryLDtwsubqD6BFBLAwQUAAAACAAAACEA3kEW2XsBAAARAwAAEAAAAGRvY1Byb3BzL2FwcC54bWydkkFP4zAQhe9I/IfId+oElhWqHCNUQBwWbaUWOBtn0lg4tuUZopZfj5OqIV32xO3NzNPLlxmL621rsw4iGu9KVsxyloHTvjJuU7Kn9f3ZFcuQlKuU9Q5KtgNk1/L0RCyjDxDJAGYpwmHJGqIw5xx1A63CWRq7NKl9bBWlMm64r2uj4dbr9xYc8fM8/81hS+AqqM7CGMj2ifOOfhpaed3z4fN6F1KeFDchWKMVpb+Uj0ZHj76m7G6rwQo+HYoUtAL9Hg3tZC74tBQrrSwsUrCslUUQ/KshHkD1S1sqE1GKjuYdaPIxQ/OR1nbOsleF0OOUrFPRKEdsb9sXg7YBKcoXH9+wASAUfGwOcuqdavNLFoMhiWMjH0GSPkZcG7KAf+ulivQf4mJKPDCwCeOq5yu+8R2+9E/2wrdBubRAPqo/xr3hU1j7W0VwWOdxU6waFaFKFxjXPTbEQ+KKtvcvGuU2UB083wf98Z/3L1wWl7P8Is+Hmx96gn+9ZfkJUEsDBBQAAAAIAOehdkc+qGWw1QAAAG0BAAARAAAAZG9jUHJvcHMvY29yZS54bWxtkE1Lw0AQhu9C/0PYezKJBZGQpDdPCkIVvA67Y7qY/WBnNO2/7zZoFOxxeJ95mHm73dFNxRcltsH3qqlqVZDXwVg/9ur15aG8VwULeoNT8NSrE7HaDZubTsdWh0TPKURKYomLbPLc6tirg0hsAVgfyCFXmfA5fA/JoeQxjRBRf+BIcFvXd+BI0KAgXIRlXI3qW2n0qoyfaVoERgNN5MgLQ1M18MsKJcdXF5bkD+msnCJdRX/ClT6yXcF5nqt5u6D5/gbenh73y6ul9ZeuNKmhg38FDWdQSwMEFAAAAAAA2aF2RwAAAAAAAAAAAAAAAAkAAAB4bC9fcmVscy9QSwMEFAAAAAgAAAAhAI2H2nDaAAAALQIAABoAAAB4bC9fcmVscy93b3JrYm9vay54bWwucmVsc62R3YrCMBCF7xf2HcLcb9NWWGQx9UYWeiv1AUI6/cE2CZlZtW9vXMEfEPHCq+FMmO+cySyWh3EQOwzUO6sgS1IQaI2re9sq2FS/X3MQxNrWenAWFUxIsCw+PxZrHDTHIep6TyJSLCnomP2PlGQ6HDUlzqONL40Lo+YoQyu9NlvdoszT9FuGWwYUd0xR1gpCWc9AVJPHV9iuaXqDK2f+RrT8wEIST0NcQFQ6tMgKzjqJHJCP7fN32nOcxav7vzw3s2cZsndm2LuwpQ6RrzkurfhBp3IJI++OXBwBUEsDBBQAAAAIAAAAIQDeI/LTbgIAALEFAAANAAAAeGwvc3R5bGVzLnhtbKWUXWvbMBSG7wf7D0L3rmw3zpJguyxNDYVuDJrBbhVbTkT1YSSlSzb233tkO7FDxzbWK53z6ug5rz7s9OYgBXpmxnKtMhxdhRgxVeqKq22Gv66LYIaRdVRVVGjFMnxkFt/k79+l1h0Fe9wx5hAglM3wzrlmQYgtd0xSe6UbpmCm1kZSB6nZEtsYRivrF0lB4jCcEkm5wh1hIct/gUhqnvZNUGrZUMc3XHB3bFkYyXJxv1Xa0I0Aq4doQssTu01e4SUvjba6dleAI7quecleu5yTOQFSntZaOYtKvVcOzgrQHrp4Uvq7KvyUF7uqPLU/0DMVoESY5GmphTbIQVfmi0BRVLKu4pYKvjHcizWVXBw7OfZCa7Svkxy25kXSdWgHC4u4EGdXMe6EPIXTccyoAhLUx+tjA+0VXGSHaev+Ur019BjFyWhBO0DfjTYVPJzhPE5SngpWO1hg+HbnR6cb4iedg1PO04rTrVZUeORpRR8AtmRCPPrH9a2+YB9qpPaykO6+yjA8U7/7UwiG+rDDdInnj2kd+81YdKgv+Wd02+iCflaRv+8Mf/YPWQwItNlz4bj6jWFgVofBazvr/Mu+7AKMitV0L9z6PJnhIf7EKr6X8bnqC3/Wrq8a4gd/U9HU92AH92BdO6K94Rn+ebf8MF/dFXEwC5ezYHLNkmCeLFdBMrldrlbFPIzD21+jD+0Nn1n7O4BLiSYLK6DK9JvtzT8OWoZHSWe/PT+wPfY+j6fhxyQKg+I6jILJlM6C2fQ6CYokilfTyfIuKZKR9+T/vEchiaLBfLJwXDLBFbu0vx6rcEmQ/mET5HQTZPjX5i9QSwMEFAAAAAAA2aF2RwAAAAAAAAAAAAAAAAkAAAB4bC90aGVtZS9QSwMEFAAAAAgAAAAhAIuCblj1BQAAjhoAABMAAAB4bC90aGVtZS90aGVtZTEueG1s7VlPjxs1FL8j8R2suafzfyZZNVslk6SF7rZVd1vUozNxMm4842js7G5UVULtEQkJURAXJG4cEFCplbiUT7NQBEXqV8DjyR9P4tCFbqWCmkjJ+Pn3nn9+7/nZM3Px0klKwBHKGaZZ07AvWAZAWUwHOBs1jVuHvVrdAIzDbAAJzVDTmCFmXNp9/72LcIcnKEVA6GdsBzaNhPPJjmmyWIghu0AnKBN9Q5qnkItmPjIHOTwWdlNiOpYVmCnEmQEymAqz14dDHCNwWJg0dhfGu0T8ZJwVgpjkB7EcUdWQ2MHYLv7YjEUkB0eQNA0xzoAeH6ITbgACGRcdTcOSH8PcvWgulQjfoqvo9eRnrjdXGIwdqZeP+ktFz/O9oLW075T2N3HdsBt0g6U9CYBxLGZqb2D9dqPd8edYBVReamx3wo5rV/CKfXcD3/KLbwXvrvDeBr7Xi1Y+VEDlpa/xSehEXgXvr/DBBj60Wh0vrOAlKCE4G2+gLT9wo8Vsl5AhJVe08Ibv9UJnDl+hTCW7Sv2Mb8u1FN6leU8AZHAhxxngswkawljgIkhwP8dgD48SkXgTmFEmxJZj9SxX/BZfT15Jj8AdBBXtUhSzDVHBB7A4xxPeND4UVg0F8vLZ9y+fPQEvnz0+ffD09MFPpw8fnj74UaN4BWYjVfHFt5/9+fXH4I8n37x49IUez1T8rz988svPn+uBXAU+//Lxb08fP//q09+/e6SBt3LYV+GHOEUMXEPH4CZNxdw0A6B+/s80DhOIKxowEUgNsMuTCvDaDBIdro2qzrudiyKhA16e3q1wPUjyKcca4NUkrQD3KSVtmmunc7UYS53ONBvpB8+nKu4mhEe6saO10HanE5HtWGcySlCF5g0iog1HKEMcFH10jJBG7Q7GFb/u4zinjA45uINBG2KtSw5xn+uVruBUxGWmIyhCXfHN/m3QpkRnvoOOqkixICDRmUSk4sbLcMphqmUMU6Ii9yBPdCQPZnlccTjjItIjRCjoDhBjOp3r+axC96ooLvqw75NZWkXmHI91yD1IqYrs0HGUwHSi5YyzRMV+wMYiRSG4QbmWBK2ukKIt4gCzreG+jVEl3K9e1rdEXdUnSNEzzXVLAtHqepyRIUTSuLlWzVOcvbK0rxV1/11R1xf1Vo61S2u9lG/D/QcLeAdOsxtIrBkN9F39fle///f1e9taPv+qvSrUZqmonN3TrUf3ISbkgM8I2mOyxDMxvUFPCGVDKi3vFCaJuJwPV8GNciivQU75R5gnBwmciGFsOcKIzU2PGJhQJjYJY6vtooNM0306KKW2vbg5FQqQr+Rik1nIxZbES2kQru7CluZla8RUAr40enYSymBVEq6GROiejYRtnReLhoZF3f47FqYSFbH+ACyea/heyUjkGyRoUMSp1F9E99wjvc2Z1Wk7muk1vLM5+QyRrpBQ0q1KQknDBA7QuvicY91YhbRCz9HSCOtvItbmZm0gWbUFjsWac31hJoaTpjEUx0NxmU6EPVbUTUhGWdOI+dzR/6ayTHLGO5AlJUx2lfNPMUc5IDgVua6GgWQrbrYTWm8vuYb19nnOXA8yGg5RzLdIVk3RVxrR9r4muGjQqSB9kAyOQZ9M85tQOMoP7cKBA8z40psDnCvJvfLiWrmaL8XKQ7PVEoVkksD5jqIW8xIur5d0lHlIpuuzqrbnk+mPeuex675aqehQiuaWDSTcWsXe3CavsHL1rHxtrWvUl1L9LvH6G4JCra6n5uqpWVuoneOBQBku2OK35R5x3rvBetaayrlStjbeTtD+XZH5HXFcnRLOJFV0Iu4RosVz5bISSOmiupxwMM1x07hn+S0vcvyoZtX9bs1zPatW91tureX7rt31bavTdu4Lp/Aktf1y7J64nyGz+csXKd94AZMujtkXYpqaVJ6DTaksX8DYzvYXMAALz9wLnF7DbbSDWsNt9Wpep12vNaKgXesEUdjpdSK/3ujdN8CRBHstN/KCbr0W2FFU8wKroF9v1ELPcVpe2Kp3vdb9ua/FzBf/C/dKXrt/AVBLAwQUAAAACAAAACEAfDzuwy4CAACbBAAADwAAAHhsL3dvcmtib29rLnhtbK2UTY+bMBCG75X6H5DvhI9AN0Ehq81H1UjVarXN7l5yccwQ3Bib2qZJVPW/d4CSps1lK+0Fj8344Z13bCa3x1I430EbrmRKgoFPHJBMZVzuUvK0/uiOiGMslRkVSkJKTmDI7fT9u8lB6f1Wqb2DAGlSUlhbJZ5nWAElNQNVgcQ3udIltTjVO89UGmhmCgBbCi/0/Q9eSbkkHSHRr2GoPOcMForVJUjbQTQIalG+KXhlelrJXoMrqd7XlctUWSFiywW3pxZKnJIlq51Umm4Fln0M4p6M4RW65Ewro3I7QNRvkVf1Br4XBF3J00nOBTx3tju0qu5p2XxFEEdQY5cZt5ClBGUIdYC/FnRdzWoucBJEUegTb3puxYN2MshpLewaZfV4TIyHYRg2mVjUnbCgJbUwV9Kih2/kV8ueFwoLdx7hW801mM626QSflCV0ax6oLZxai5TMk82TQX2b7KsqpFFyM1cZbI7CHN1KVTV2FDaCbzcXrtNrif/hO2WNAd5ZZRf/68Z00hj5zOFg/vjaTJ3jC5eZOqRkPMQ7cupnGB/a8IVntkhJOPRvzmufgO8Kiw3wh12nvAt6K7AfHdkegC9NHOCNa8ZV02NseMIx0KssaAn9NkYFw4Y3Q5sYh3HQZsDRfja2HdFrnpIfQeTf3fjjyPWXw9iNRuPQHUXD0J1Hi3AZ3ywXy1n8822PN1KSi2PJCqrtWlO2x//KI+QzaqAprikIdXbPVrXX75r+AlBLAwQUAAAAAADZoXZHAAAAAAAAAAAAAAAADgAAAHhsL3dvcmtzaGVldHMvUEsDBBQAAAAIAAAAIQDmVajjXQEAAIQCAAAYAAAAeGwvd29ya3NoZWV0cy9zaGVldDEueG1sjZJPawIxEMXvhX6HkLtGbW2ruEpBpB4Kpf/u2ezsbjDJLMlY9dt3dq1S8OJtXibz471JZou9d+IHYrIYMjnsD6SAYLCwocrk1+eq9yRFIh0K7TBAJg+Q5GJ+ezPbYdykGoAEE0LKZE3UTJVKpgavUx8bCNwpMXpNLGOlUhNBF92Qd2o0GDwor22QR8I0XsPAsrQGlmi2HgIdIRGcJvafatukE82ba3Bex8226Rn0DSNy6ywdOqgU3kzXVcCoc8e598N7bU7sTlzgvTURE5bUZ9yf0cvMEzVRTJrPCssJ2rWLCGUmn4dSzWfdxW8Lu/SvFqTzD3BgCAp+Iyna3eeIm7a55qNBO6ouZldd0LcoCij11tE77l7AVjUxZMxZ2hTT4rCEZHiXjOmPxmcTS02a60ZX8KpjZUMSDsru1qMU8YjpasKmqxiZIxH6k6o5OcRW3UlRItJJtG7P/2f+C1BLAwQUAAAACAAAACEApFPFz0EBAAAIBAAAEwAAAFtDb250ZW50X1R5cGVzXS54bWytk89OAjEQxu8mvkPTK9kWPBhjWDj456gc8AFqO8s2dNumUxDe3tmCHgiKBC/b7M583+/bdjqebjrH1pDQBl/zkRhyBl4HY/2i5m/z5+qOM8zKG+WCh5pvAfl0cn01nm8jICO1x5q3Ocd7KVG30CkUIYKnShNSpzK9poWMSi/VAuTNcHgrdfAZfK5y78En40do1Mpl9rShz7skCRxy9rBr7Fk1VzE6q1Wmulx7c0Cp9gRBytKDrY04oAYujxL6ys+Ave6VtiZZA2ymUn5RHXXJjZMfIS3fQ1iK302OpAxNYzWYoFcdSQTGBMpgC5A7J8oqOmX94DS/NKMsy+ifg3z7n8iR6bxh97w8QrE5AcS8dYAXow62vZj+RibhLIWINLkJzqd/jWavriIZQcr2j0SyPh948LvQT70Bc4Qtyz2efAJQSwECFAAUAAAACAAAACEAtVUwI+wAAABMAgAACwAAAAAAAAABAAAAAAAAAAAAX3JlbHMvLnJlbHNQSwECFAAUAAAACAAAACEA3kEW2XsBAAARAwAAEAAAAAAAAAABAAAAAAAVAQAAZG9jUHJvcHMvYXBwLnhtbFBLAQIUABQAAAAIAOehdkc+qGWw1QAAAG0BAAARAAAAAAAAAAEAIAAAAL4CAABkb2NQcm9wcy9jb3JlLnhtbFBLAQIUABQAAAAAANmhdkcAAAAAAAAAAAAAAAAJAAAAAAAAAAAAEAAAAMIDAAB4bC9fcmVscy9QSwECFAAUAAAACAAAACEAjYfacNoAAAAtAgAAGgAAAAAAAAABAAAAAADpAwAAeGwvX3JlbHMvd29ya2Jvb2sueG1sLnJlbHNQSwECFAAUAAAACAAAACEA3iPy024CAACxBQAADQAAAAAAAAABAAAAAAD7BAAAeGwvc3R5bGVzLnhtbFBLAQIUABQAAAAAANmhdkcAAAAAAAAAAAAAAAAJAAAAAAAAAAAAEAAAAJQHAAB4bC90aGVtZS9QSwECFAAUAAAACAAAACEAi4JuWPUFAACOGgAAEwAAAAAAAAABAAAAAAC7BwAAeGwvdGhlbWUvdGhlbWUxLnhtbFBLAQIUABQAAAAIAAAAIQB8PO7DLgIAAJsEAAAPAAAAAAAAAAEAAAAAAOENAAB4bC93b3JrYm9vay54bWxQSwECFAAUAAAAAADZoXZHAAAAAAAAAAAAAAAADgAAAAAAAAAAABAAAAA8EAAAeGwvd29ya3NoZWV0cy9QSwECFAAUAAAACAAAACEA5lWo410BAACEAgAAGAAAAAAAAAABAAAAAABoEAAAeGwvd29ya3NoZWV0cy9zaGVldDEueG1sUEsBAhQAFAAAAAgAAAAhAKRTxc9BAQAACAQAABMAAAAAAAAAAQAAAAAA+xEAAFtDb250ZW50X1R5cGVzXS54bWxQSwUGAAAAAAwADADoAgAAbRMAAAAA","base64")}}).call(this,e("buffer").Buffer)},{buffer:77}],25:[function(e,t,r){"use strict";t.exports=["000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","800000","008000","000080","808000","800080","008080","C0C0C0","808080","9999FF","993366","FFFFCC","CCFFFF","660066","FF8080","0066CC","CCCCFF","000080","FF00FF","FFFF00","00FFFF","800080","800000","008080","0000FF","00CCFF","CCFFFF","CCFFCC","FFFF99","99CCFF","FF99CC","CC99FF","FFCC99","3366FF","33CCCC","99CC00","FFCC00","FF9900","FF6600","666699","969696","003366","339966","003300","333300","993300","993366","333399","333333","System Foreground","System Background"]},{}],26:[function(e,t,r){"use strict";var i=new Date(1900,0,0),a=new Date(1900,1,28);t.exports={dateToNumber:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0);var r=Math.round((t-i)/864e5);return r+=(e-t)/864e5,a<e&&(r+=1),r},numberToDate:function(e){e>this.dateToNumber(a)&&e--;var t=Math.floor(e),r=Math.round(864e5*(e-t)),n=new Date(i.getTime()+r);return n.setDate(n.getDate()+t),n}}},{}],27:[function(e,t,r){"use strict";var n=e("jszip");t.exports={get Promise(){return n.external.Promise},set Promise(e){n.external.Promise=e}}},{jszip:143}],28:[function(e,t,r){"use strict";var n=e("lodash");t.exports=function(e){return"string"==typeof e&&(e=new RegExp(n.escapeRegExp(e),"igm")),e.lastIndex=0,e}},{lodash:170}],29:[function(e,t,r){"use strict";var o=e("lodash");t.exports={appendChild:function(e,t){e.children||(e.children=[]),e.children.push(t)},appendChildIfNotFound:function(e,t){var r=this.findChild(e,t);return r||(r={name:t,attributes:{},children:[]},this.appendChild(e,r)),r},findChild:function(e,t){return o.find(e.children,{name:t})},getChildAttribute:function(e,t,r){var n=this.findChild(e,t);if(n)return n.attributes&&n.attributes[r]},hasChild:function(e,t){return o.some(e.children,{name:t})},insertAfter:function(e,t,r){e.children||(e.children=[]);var n=e.children.indexOf(r);e.children.splice(n+1,0,t)},insertBefore:function(e,t,r){e.children||(e.children=[]);var n=e.children.indexOf(r);e.children.splice(n,0,t)},insertInOrder:function(e,t,r){var n=r.indexOf(t.name);if(e.children&&0<=n)for(var i=n+1;i<r.length;i++){var a=this.findChild(e,r[i]);if(a)return void this.insertBefore(e,t,a)}this.appendChild(e,t)},isEmpty:function(e){return o.isEmpty(e.children)&&o.isEmpty(e.attributes)},removeChild:function(e,t){if(e.children)if("string"==typeof t)o.remove(e.children,{name:t});else{var r=e.children.indexOf(t);0<=r&&e.children.splice(r,1)}},setAttributes:function(r,e){o.forOwn(e,function(e,t){o.isNil(e)?r.attributes&&delete r.attributes[t]:(r.attributes||(r.attributes={}),r.attributes[t]=e)})},setChildAttributes:function(r,n,e){var i=this,a=this.findChild(r,n);return o.forOwn(e,function(e,t){o.isNil(e)?a&&a.attributes&&delete a.attributes[t]:(a||(a={name:n,attributes:{},children:[]},i.appendChild(r,a)),a.attributes||(a.attributes={}),a.attributes[t]=e)}),a},removeChildIfEmpty:function(e,t){"string"==typeof t&&(t=this.findChild(e,t)),t&&this.isEmpty(t)&&this.removeChild(e,t)}}},{lodash:170}],30:[function(e,t,r){var n=r;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.encoders=e("./asn1/encoders")},{"./asn1/api":31,"./asn1/base":33,"./asn1/constants":37,"./asn1/decoders":39,"./asn1/encoders":42,"bn.js":45}],31:[function(e,t,r){var n=e("../asn1"),i=e("inherits");function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(t){var r;try{r=e("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){r=function(e){this._initNamed(e)}}return i(r,t),r.prototype._initNamed=function(e){t.call(this,e)},new r(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"../asn1":30,inherits:131,vm:240}],32:[function(e,t,r){var n=e("inherits"),i=e("../base").Reporter,a=e("buffer").Buffer;function o(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(o,i),(r.DecoderBuffer=o).prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new o(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},(r.EncoderBuffer=s).prototype.join=function(t,r){return t=t||new a(this.length),r=r||0,0===this.length||(Array.isArray(this.value)?this.value.forEach(function(e){e.join(t,r),r+=e.length}):("number"==typeof this.value?t[r]=this.value:"string"==typeof this.value?t.write(this.value,r):a.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}},{"../base":33,buffer:77,inherits:131}],33:[function(e,t,r){var n=r;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")},{"./buffer":32,"./node":34,"./reporter":35}],34:[function(e,t,r){var c=e("../base").Reporter,n=e("../base").EncoderBuffer,d=e("../base").DecoderBuffer,i=e("minimalistic-assert"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],o=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function s(e,t){var r={};(this._baseState=r).enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=s;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];s.prototype.clone=function(){var t=this._baseState,r={};f.forEach(function(e){r[e]=t[e]});var e=new this.constructor(r.parent);return e._baseState=r,e},s.prototype._wrap=function(){var r=this._baseState;o.forEach(function(t){this[t]=function(){var e=new this.constructor(this);return r.children.push(e),e[t].apply(e,arguments)}},this)},s.prototype._init=function(e){var t=this._baseState;i(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),i.equal(t.children.length,1,"Root node can have only one child")},s.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(i(null===t.children),(t.children=r).forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(i(null===t.args),t.args=e,t.reverseArgs=e.map(function(r){if("object"!=typeof r||r.constructor!==Object)return r;var n={};return Object.keys(r).forEach(function(e){e==(0|e)&&(e|=0);var t=r[e];n[t]=e}),n}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){s.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),a.forEach(function(r){s.prototype[r]=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return i(null===e.tag),e.tag=r,this._useArgs(t),this}}),s.prototype.use=function(e){i(e);var t=this._baseState;return i(null===t.use),t.use=e,this},s.prototype.optional=function(){return this._baseState.optional=!0,this},s.prototype.def=function(e){var t=this._baseState;return i(null===t.default),t.default=e,t.optional=!0,this},s.prototype.explicit=function(e){var t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.explicit=e,this},s.prototype.implicit=function(e){var t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.implicit=e,this},s.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},s.prototype.key=function(e){var t=this._baseState;return i(null===t.key),t.key=e,this},s.prototype.any=function(){return this._baseState.any=!0,this},s.prototype.choice=function(t){var e=this._baseState;return i(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},s.prototype.contains=function(e){var t=this._baseState;return i(null===t.use),t.contains=e,this},s.prototype._decode=function(t,r){var e=this._baseState;if(null===e.parent)return t.wrapResult(e.children[0]._decode(t,r));var n,i=e.default,a=!0,o=null;if(null!==e.key&&(o=t.enterKey(e.key)),e.optional){var s=null;if(null!==e.explicit?s=e.explicit:null!==e.implicit?s=e.implicit:null!==e.tag&&(s=e.tag),null!==s||e.any){if(a=this._peekTag(t,s,e.any),t.isError(a))return a}else{var f=t.save();try{null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r),a=!0}catch(e){a=!1}t.restore(f)}}if(e.obj&&a&&(n=t.enterObject()),a){if(null!==e.explicit){var u=this._decodeTag(t,e.explicit);if(t.isError(u))return u;t=u}var c=t.offset;if(null===e.use&&null===e.choice){if(e.any)f=t.save();var h=this._decodeTag(t,null!==e.implicit?e.implicit:e.tag,e.any);if(t.isError(h))return h;e.any?i=t.raw(f):t=h}if(r&&r.track&&null!==e.tag&&r.track(t.path(),c,t.length,"tagged"),r&&r.track&&null!==e.tag&&r.track(t.path(),t.offset,t.length,"content"),i=e.any?i:null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r),t.isError(i))return i;if(e.any||null!==e.choice||null===e.children||e.children.forEach(function(e){e._decode(t,r)}),e.contains&&("octstr"===e.tag||"bitstr"===e.tag)){var l=new d(i);i=this._getUse(e.contains,t._reporterState.obj)._decode(l,r)}}return e.obj&&a&&(i=t.leaveObject(n)),null===e.key||null===i&&!0!==a?null!==o&&t.exitKey(o):t.leaveKey(o,e.key,i),i},s.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},s.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),i(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},s.prototype._decodeChoice=function(i,a){var o=this._baseState,s=null,f=!1;return Object.keys(o.choice).some(function(e){var t=i.save(),r=o.choice[e];try{var n=r._decode(i,a);if(i.isError(n))return!1;s={type:e,value:n},f=!0}catch(e){return i.restore(t),!1}return!0},this),f?s:i.error("Choice not matched")},s.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},s.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},s.prototype._encodeValue=function(n,i,e){var t=this._baseState;if(null===t.parent)return t.children[0]._encode(n,i||new c);var r=null;if(this.reporter=i,t.optional&&void 0===n){if(null===t.default)return;n=t.default}var a=null,o=!1;if(t.any)r=this._createEncoderBuffer(n);else if(t.choice)r=this._encodeChoice(n,i);else if(t.contains)a=this._getUse(t.contains,e)._encode(n,i),o=!0;else if(t.children)a=t.children.map(function(e){if("null_"===e._baseState.tag)return e._encode(null,i,n);if(null===e._baseState.key)return i.error("Child should have a key");var t=i.enterKey(e._baseState.key);if("object"!=typeof n)return i.error("Child expected, but input is not object");var r=e._encode(n[e._baseState.key],i,n);return i.leaveKey(t),r},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===t.tag||"setof"===t.tag){if(!t.args||1!==t.args.length)return i.error("Too many args for : "+t.tag);if(!Array.isArray(n))return i.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(n.map(function(e){var t=this._baseState;return this._getUse(t.args[0],n)._encode(e,i)},s))}else null!==t.use?r=this._getUse(t.use,e)._encode(n,i):(a=this._encodePrimitive(t.tag,n),o=!0);if(!t.any&&null===t.choice){var f=null!==t.implicit?t.implicit:t.tag,u=null===t.implicit?"universal":"context";null===f?null===t.use&&i.error("Tag could be omitted only for .use()"):null===t.use&&(r=this._encodeComposite(f,o,u,a))}return null!==t.explicit&&(r=this._encodeComposite(t.explicit,!1,"context",r)),r},s.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||i(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},s.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},s.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},s.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},{"../base":33,"minimalistic-assert":173}],35:[function(e,t,r){var n=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}(r.Reporter=i).prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof a;if(t=n?e:new a(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:131}],36:[function(e,t,r){var n=e("../constants");r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n._reverse(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n._reverse(r.tag)},{"../constants":37}],37:[function(e,t,r){var n=r;n._reverse=function(r){var n={};return Object.keys(r).forEach(function(e){(0|e)==e&&(e|=0);var t=r[e];n[t]=e}),n},n.der=e("./der")},{"./der":36}],38:[function(e,t,r){var n=e("inherits"),i=e("../../asn1"),a=i.base,o=i.bignum,s=i.constants.der;function f(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){a.Node.call(this,"der",e)}function c(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){var a=r;for(r=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function h(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(4<i)return e.error("length octect is too long");for(var a=n=0;a<i;a++){n<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;n|=o}return n}(t.exports=f).prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(u,a.Node),u.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=c(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},u.prototype._decodeTag=function(e,t,r){var n=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=h(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},u.prototype._skipUntilEnd=function(e,t){for(;;){var r=c(e,t);if(e.isError(r))return r;var n,i=h(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},u.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=r.decode(e,"der",n);if(e.isError(o)&&a)break;i.push(o)}return i},u.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",a=0;a<n.length/2;a++)i+=String.fromCharCode(n.readUInt16BE(2*a));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"!==t)return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported");var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")},u.prototype._decodeObjid=function(e,t,r){for(var n,i=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,0==(128&o)&&(i.push(a),a=0)}128&o&&i.push(a);var s=i[0]/40|0,f=i[0]%40;if(n=r?i:[s,f].concat(i.slice(1)),t){var u=t[n.join(" ")];void 0===u&&(u=t[n.join(".")]),void 0!==u&&(n=u)}return n},u.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),a=0|r.slice(6,8),o=0|r.slice(8,10),s=0|r.slice(10,12),f=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),a=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),f=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,a,o,s,f,0)},u.prototype._decodeNull=function(){return null},u.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},u.prototype._decodeInt=function(e,t){var r=e.raw(),n=new o(r);return t&&(n=t[n.toString(10)]||n),n},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../../asn1":30,inherits:131}],39:[function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":38,"./pem":40}],40:[function(e,t,r){var n=e("inherits"),h=e("buffer").Buffer,l=e("./der");function i(e){l.call(this,e),this.enc="pem"}n(i,l),(t.exports=i).prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,o=-1,s=0;s<r.length;s++){var f=r[s].match(i);if(null!==f&&f[2]===n){if(-1!==a){if("END"!==f[1])break;o=s;break}if("BEGIN"!==f[1])break;a=s}}if(-1===a||-1===o)throw new Error("PEM section not found for: "+n);var u=r.slice(a+1,o).join("");u.replace(/[^a-z0-9\+\/=]+/gi,"");var c=new h(u,"base64");return l.prototype.decode.call(this,c,t)}},{"./der":38,buffer:77,inherits:131}],41:[function(e,t,r){var n=e("inherits"),u=e("buffer").Buffer,i=e("../../asn1"),a=i.base,c=i.constants.der;function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new s,this.tree._init(e.body)}function s(e){a.Node.call(this,"der",e)}function f(e){return e<10?"0"+e:e}(t.exports=o).prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(s,a.Node),s.prototype._encodeComposite=function(e,t,r,n){var i,a=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(c.tagByName.hasOwnProperty(e))i=c.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(31<=i)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=c.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(i=new u(2))[0]=a,i[1]=n.length,this._createEncoderBuffer([i,n]);for(var o=1,s=n.length;256<=s;s>>=8)o++;(i=new u(2+o))[0]=a,i[1]=128|o;s=1+o;for(var f=n.length;0<f;s--,f>>=8)i[s]=255&f;return this._createEncoderBuffer([i,n])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==t)return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported");for(var r=new u(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)},s.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(40<=e[1])return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var i=0;for(n=0;n<e.length;n++){var a=e[n];for(i++;128<=a;a>>=7)i++}var o=new u(i),s=o.length-1;for(n=e.length-1;0<=n;n--){a=e[n];for(o[s--]=127&a;0<(a>>=7);)o[s--]=128|127&a}return this._createEncoderBuffer(o)},s.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[f(n.getFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[f(n.getFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!u.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new u(r)}if(u.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new u(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;256<=a;a>>=8)n++;for(a=(i=new Array(n)).length-1;0<=a;a--)i[a]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new u(i))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),a.length!==i.defaultBuffer.length)return!1;for(n=0;n<a.length;n++)if(a[n]!==i.defaultBuffer[n])return!1;return!0}},{"../../asn1":30,buffer:77,inherits:131}],42:[function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":41,"./pem":43}],43:[function(e,t,r){var n=e("inherits"),a=e("./der");function i(e){a.call(this,e),this.enc="pem"}n(i,a),(t.exports=i).prototype.encode=function(e,t){for(var r=a.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],i=0;i<r.length;i+=64)n.push(r.slice(i,i+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},{"./der":41,inherits:131}],44:[function(e,t,r){"use strict";r.byteLength=function(e){var t=h(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=h(e),i=n[0],a=n[1],o=new c(function(e,t){return 3*(e+t)/4-t}(i,a)),s=0,f=0<a?i-4:i;for(r=0;r<f;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=255&t;2===a&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,o[s++]=255&t);1===a&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t);return o},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i=[],a=0,o=r-n;a<o;a+=16383)i.push(f(e,a,o<a+16383?o:a+16383));1==n?(t=e[r-1],i.push(s[t>>2]+s[t<<4&63]+"==")):2==n&&(t=(e[r-2]<<8)+e[r-1],i.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return i.join("")};for(var s=[],u=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=n.length;i<a;++i)s[i]=n[i],u[n.charCodeAt(i)]=i;function h(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function f(e,t,r){for(var n,i,a=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(s[(i=n)>>18&63]+s[i>>12&63]+s[i>>6&63]+s[63&i]);return a.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],45:[function(k,e,t){!function(e,t){"use strict";function m(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function v(e,t,r){if(v.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var n;"object"==typeof e?e.exports=v:t.BN=v,(v.BN=v).wordSize=26;try{n=k("buffer").Buffer}catch(e){}function o(e,t,r){for(var n=0,i=Math.min(e.length,r),a=t;a<i;a++){var o=e.charCodeAt(a)-48;n<<=4,n|=49<=o&&o<=54?o-49+10:17<=o&&o<=22?o-17+10:15&o}return n}function h(e,t,r,n){for(var i=0,a=Math.min(e.length,r),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=n,i+=49<=s?s-49+10:17<=s?s-17+10:s}return i}v.isBN=function(e){return e instanceof v||null!==e&&"object"==typeof e&&e.constructor.wordSize===v.wordSize&&Array.isArray(e.words)},v.max=function(e,t){return 0<e.cmp(t)?e:t},v.min=function(e,t){return e.cmp(t)<0?e:t},v.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),m(t===(0|t)&&2<=t&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},v.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(m(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},v.prototype._initArray=function(e,t,r){if(m("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,a,o=0;if("be"===r)for(n=e.length-1,i=0;0<=n;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=a<<o&67108863,this.words[i+1]=a>>>26-o&67108863,26<=(o+=24)&&(o-=26,i++);else if("le"===r)for(i=n=0;n<e.length;n+=3)a=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[i]|=a<<o&67108863,this.words[i+1]=a>>>26-o&67108863,26<=(o+=24)&&(o-=26,i++);return this.strip()},v.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,a=0;for(r=e.length-6,n=0;t<=r;r-=6)i=o(e,r,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303,26<=(a+=24)&&(a-=26,n++);r+6!==t&&(i=o(e,t,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303),this.strip()},v.prototype._parseBase=function(e,t,r){this.words=[0];for(var n=0,i=this.length=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,o=a%n,s=Math.min(a,a-o)+r,f=0,u=r;u<s;u+=n)f=h(e,u,u+n,t),this.imuln(i),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!=o){var c=1;for(f=h(e,u,e.length,t),u=0;u<o;u++)c*=t;this.imuln(c),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},v.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},v.prototype.clone=function(){var e=new v(null);return this.copy(e),e},v.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},v.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},v.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},v.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function i(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;n=(r.length=n)-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,f=o/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var c=f>>>26,h=67108863&f,l=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=l;d++){var p=u-d|0;c+=(o=(i=0|e.words[p])*(a=0|t.words[d])+h)/67108864|0,h=67108863&o}r.words[u]=0|h,f=0|c}return 0!==f?r.words[u]=0|f:r.length--,r.strip()}v.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,a=0;a<this.length;a++){var o=this.words[a],s=(16777215&(o<<n|i)).toString(16);r=0!==(i=o>>>24-n&16777215)||a!==this.length-1?l[6-s.length]+s+r:s+r,26<=(n+=2)&&(n-=26,a--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&2<=e&&e<=36){var f=d[e],u=p[e];r="";var c=this.clone();for(c.negative=0;!c.isZero();){var h=c.modn(u).toString(e);r=(c=c.idivn(u)).isZero()?h+r:l[f-h.length]+h+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}m(!1,"Base should be between 2 and 36")},v.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&m(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},v.prototype.toJSON=function(){return this.toString(16)},v.prototype.toBuffer=function(e,t){return m(void 0!==n),this.toArrayLike(n,e,t)},v.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},v.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),i=r||Math.max(1,n);m(n<=i,"byte array longer than desired length"),m(0<i,"Requested array length <= 0"),this.strip();var a,o,s="le"===t,f=new e(i),u=this.clone();if(s){for(o=0;!u.isZero();o++)a=u.andln(255),u.iushrn(8),f[o]=a;for(;o<i;o++)f[o]=0}else{for(o=0;o<i-n;o++)f[o]=0;for(o=0;!u.isZero();o++)a=u.andln(255),u.iushrn(8),f[i-o-1]=a}return f},Math.clz32?v.prototype._countBits=function(e){return 32-Math.clz32(e)}:v.prototype._countBits=function(e){var t=e,r=0;return 4096<=t&&(r+=13,t>>>=13),64<=t&&(r+=7,t>>>=7),8<=t&&(r+=4,t>>>=4),2<=t&&(r+=2,t>>>=2),r+t},v.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},v.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},v.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},v.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},v.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},v.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},v.prototype.isNeg=function(){return 0!==this.negative},v.prototype.neg=function(){return this.clone().ineg()},v.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},v.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},v.prototype.ior=function(e){return m(0==(this.negative|e.negative)),this.iuor(e)},v.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},v.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},v.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},v.prototype.iand=function(e){return m(0==(this.negative|e.negative)),this.iuand(e)},v.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},v.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},v.prototype.iuxor=function(e){var t,r;r=this.length>e.length?(t=this,e):(t=e,this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},v.prototype.ixor=function(e){return m(0==(this.negative|e.negative)),this.iuxor(e)},v.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},v.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},v.prototype.inotn=function(e){m("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),0<r&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return 0<r&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},v.prototype.notn=function(e){return this.clone().inotn(e)},v.prototype.setn=function(e,t){m("number"==typeof e&&0<=e);var r=e/26|0,n=e%26;return this._expand(1+r),this.words[r]=t?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},v.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();n=this.length>e.length?(r=this,e):(r=e,this);for(var i=0,a=0;a<n.length;a++)t=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<r.length;a++)t=(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},v.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},v.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;n=0<i?(r=this,e):(r=e,this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|r.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<r.length;o++)a=(t=(0|r.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},v.prototype.sub=function(e){return this.clone().isub(e)};var a=function(e,t,r){var n,i,a,o=e.words,s=t.words,f=r.words,u=0,c=0|o[0],h=8191&c,l=c>>>13,d=0|o[1],p=8191&d,b=d>>>13,m=0|o[2],v=8191&m,y=m>>>13,g=0|o[3],_=8191&g,w=g>>>13,A=0|o[4],k=8191&A,S=A>>>13,E=0|o[5],x=8191&E,C=E>>>13,I=0|o[6],N=8191&I,M=I>>>13,T=0|o[7],B=8191&T,R=T>>>13,O=0|o[8],F=8191&O,P=O>>>13,j=0|o[9],D=8191&j,z=j>>>13,U=0|s[0],L=8191&U,q=U>>>13,V=0|s[1],H=8191&V,W=V>>>13,K=0|s[2],G=8191&K,X=K>>>13,Z=0|s[3],Y=8191&Z,Q=Z>>>13,J=0|s[4],$=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],fe=8191&se,ue=se>>>13,ce=0|s[8],he=8191&ce,le=ce>>>13,de=0|s[9],pe=8191&de,be=de>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(h,L))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(l,L)|0))<<13)|0;u=((a=Math.imul(l,q))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,L),i=(i=Math.imul(p,q))+Math.imul(b,L)|0,a=Math.imul(b,q);var ve=(u+(n=n+Math.imul(h,H)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(l,H)|0))<<13)|0;u=((a=a+Math.imul(l,W)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,L),i=(i=Math.imul(v,q))+Math.imul(y,L)|0,a=Math.imul(y,q),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0;var ye=(u+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(l,G)|0))<<13)|0;u=((a=a+Math.imul(l,X)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(_,L),i=(i=Math.imul(_,q))+Math.imul(w,L)|0,a=Math.imul(w,q),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,X)|0;var ge=(u+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,Q)|0)+Math.imul(l,Y)|0))<<13)|0;u=((a=a+Math.imul(l,Q)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(k,L),i=(i=Math.imul(k,q))+Math.imul(S,L)|0,a=Math.imul(S,q),n=n+Math.imul(_,H)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,H)|0,a=a+Math.imul(w,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(b,Y)|0,a=a+Math.imul(b,Q)|0;var _e=(u+(n=n+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((a=a+Math.imul(l,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(x,L),i=(i=Math.imul(x,q))+Math.imul(C,L)|0,a=Math.imul(C,q),n=n+Math.imul(k,H)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,W)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(w,G)|0,a=a+Math.imul(w,X)|0,n=n+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(y,Y)|0,a=a+Math.imul(y,Q)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,$)|0,a=a+Math.imul(b,ee)|0;var we=(u+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(l,re)|0))<<13)|0;u=((a=a+Math.imul(l,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(N,L),i=(i=Math.imul(N,q))+Math.imul(M,L)|0,a=Math.imul(M,q),n=n+Math.imul(x,H)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(S,G)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(w,Y)|0,a=a+Math.imul(w,Q)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,a=a+Math.imul(b,ne)|0;var Ae=(u+(n=n+Math.imul(h,ae)|0)|0)+((8191&(i=(i=i+Math.imul(h,oe)|0)+Math.imul(l,ae)|0))<<13)|0;u=((a=a+Math.imul(l,oe)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(B,L),i=(i=Math.imul(B,q))+Math.imul(R,L)|0,a=Math.imul(R,q),n=n+Math.imul(N,H)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(C,G)|0,a=a+Math.imul(C,X)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,Q)|0,n=n+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(y,re)|0,a=a+Math.imul(y,ne)|0,n=n+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(b,ae)|0,a=a+Math.imul(b,oe)|0;var ke=(u+(n=n+Math.imul(h,fe)|0)|0)+((8191&(i=(i=i+Math.imul(h,ue)|0)+Math.imul(l,fe)|0))<<13)|0;u=((a=a+Math.imul(l,ue)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,L),i=(i=Math.imul(F,q))+Math.imul(P,L)|0,a=Math.imul(P,q),n=n+Math.imul(B,H)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(M,G)|0,a=a+Math.imul(M,X)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,Q)|0)+Math.imul(C,Y)|0,a=a+Math.imul(C,Q)|0,n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(_,re)|0,i=(i=i+Math.imul(_,ne)|0)+Math.imul(w,re)|0,a=a+Math.imul(w,ne)|0,n=n+Math.imul(v,ae)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(b,fe)|0,a=a+Math.imul(b,ue)|0;var Se=(u+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(l,he)|0))<<13)|0;u=((a=a+Math.imul(l,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(D,L),i=(i=Math.imul(D,q))+Math.imul(z,L)|0,a=Math.imul(z,q),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,W)|0)+Math.imul(P,H)|0,a=a+Math.imul(P,W)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(R,G)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,Q)|0)+Math.imul(M,Y)|0,a=a+Math.imul(M,Q)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(C,$)|0,a=a+Math.imul(C,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(S,re)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,n=n+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,ue)|0)+Math.imul(y,fe)|0,a=a+Math.imul(y,ue)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(b,he)|0,a=a+Math.imul(b,le)|0;var Ee=(u+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,be)|0)+Math.imul(l,pe)|0))<<13)|0;u=((a=a+Math.imul(l,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,W))+Math.imul(z,H)|0,a=Math.imul(z,W),n=n+Math.imul(F,G)|0,i=(i=i+Math.imul(F,X)|0)+Math.imul(P,G)|0,a=a+Math.imul(P,X)|0,n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(R,Y)|0,a=a+Math.imul(R,Q)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(C,re)|0,a=a+Math.imul(C,ne)|0,n=n+Math.imul(k,ae)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,ue)|0)+Math.imul(w,fe)|0,a=a+Math.imul(w,ue)|0,n=n+Math.imul(v,he)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,he)|0,a=a+Math.imul(y,le)|0;var xe=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((a=a+Math.imul(b,be)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,X))+Math.imul(z,G)|0,a=Math.imul(z,X),n=n+Math.imul(F,Y)|0,i=(i=i+Math.imul(F,Q)|0)+Math.imul(P,Y)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,ee)|0,n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(M,re)|0,a=a+Math.imul(M,ne)|0,n=n+Math.imul(x,ae)|0,i=(i=i+Math.imul(x,oe)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(S,fe)|0,a=a+Math.imul(S,ue)|0,n=n+Math.imul(_,he)|0,i=(i=i+Math.imul(_,le)|0)+Math.imul(w,he)|0,a=a+Math.imul(w,le)|0;var Ce=(u+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,be)|0)+Math.imul(y,pe)|0))<<13)|0;u=((a=a+Math.imul(y,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(D,Y),i=(i=Math.imul(D,Q))+Math.imul(z,Y)|0,a=Math.imul(z,Q),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,ee)|0)+Math.imul(P,$)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(R,re)|0,a=a+Math.imul(R,ne)|0,n=n+Math.imul(N,ae)|0,i=(i=i+Math.imul(N,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,n=n+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,ue)|0)+Math.imul(C,fe)|0,a=a+Math.imul(C,ue)|0,n=n+Math.imul(k,he)|0,i=(i=i+Math.imul(k,le)|0)+Math.imul(S,he)|0,a=a+Math.imul(S,le)|0;var Ie=(u+(n=n+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,be)|0)+Math.imul(w,pe)|0))<<13)|0;u=((a=a+Math.imul(w,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(z,$)|0,a=Math.imul(z,ee),n=n+Math.imul(F,re)|0,i=(i=i+Math.imul(F,ne)|0)+Math.imul(P,re)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(B,ae)|0,i=(i=i+Math.imul(B,oe)|0)+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,ue)|0)+Math.imul(M,fe)|0,a=a+Math.imul(M,ue)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(C,he)|0,a=a+Math.imul(C,le)|0;var Ne=(u+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,be)|0)+Math.imul(S,pe)|0))<<13)|0;u=((a=a+Math.imul(S,be)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(D,re),i=(i=Math.imul(D,ne))+Math.imul(z,re)|0,a=Math.imul(z,ne),n=n+Math.imul(F,ae)|0,i=(i=i+Math.imul(F,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(B,fe)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(R,fe)|0,a=a+Math.imul(R,ue)|0,n=n+Math.imul(N,he)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(M,he)|0,a=a+Math.imul(M,le)|0;var Me=(u+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,be)|0)+Math.imul(C,pe)|0))<<13)|0;u=((a=a+Math.imul(C,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(D,ae),i=(i=Math.imul(D,oe))+Math.imul(z,ae)|0,a=Math.imul(z,oe),n=n+Math.imul(F,fe)|0,i=(i=i+Math.imul(F,ue)|0)+Math.imul(P,fe)|0,a=a+Math.imul(P,ue)|0,n=n+Math.imul(B,he)|0,i=(i=i+Math.imul(B,le)|0)+Math.imul(R,he)|0,a=a+Math.imul(R,le)|0;var Te=(u+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,be)|0)+Math.imul(M,pe)|0))<<13)|0;u=((a=a+Math.imul(M,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(D,fe),i=(i=Math.imul(D,ue))+Math.imul(z,fe)|0,a=Math.imul(z,ue),n=n+Math.imul(F,he)|0,i=(i=i+Math.imul(F,le)|0)+Math.imul(P,he)|0,a=a+Math.imul(P,le)|0;var Be=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(R,pe)|0))<<13)|0;u=((a=a+Math.imul(R,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(D,he),i=(i=Math.imul(D,le))+Math.imul(z,he)|0,a=Math.imul(z,le);var Re=(u+(n=n+Math.imul(F,pe)|0)|0)+((8191&(i=(i=i+Math.imul(F,be)|0)+Math.imul(P,pe)|0))<<13)|0;u=((a=a+Math.imul(P,be)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Oe=(u+(n=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,be))+Math.imul(z,pe)|0))<<13)|0;return u=((a=Math.imul(z,be))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,f[0]=me,f[1]=ve,f[2]=ye,f[3]=ge,f[4]=_e,f[5]=we,f[6]=Ae,f[7]=ke,f[8]=Se,f[9]=Ee,f[10]=xe,f[11]=Ce,f[12]=Ie,f[13]=Ne,f[14]=Me,f[15]=Te,f[16]=Be,f[17]=Re,f[18]=Oe,0!==u&&(f[19]=u,r.length++),r};function s(e,t,r){return(new f).mulp(e,t,r)}function f(e,t){this.x=e,this.y=t}Math.imul||(a=i),v.prototype.mulTo=function(e,t){var r=this.length+e.length;return(10===this.length&&10===e.length?a:r<63?i:r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var o=i;i=0;for(var s=67108863&n,f=Math.min(a,t.length-1),u=Math.max(0,a-e.length+1);u<=f;u++){var c=a-u,h=(0|e.words[c])*(0|t.words[u]),l=67108863&h;s=67108863&(l=l+s|0),i+=(o=(o=o+(h/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}:s)(this,e,t)},f.prototype.makeRBT=function(e){for(var t=new Array(e),r=v.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},f.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},f.prototype.permute=function(e,t,r,n,i,a){for(var o=0;o<a;o++)n[o]=t[e[o]],i[o]=r[e[o]]},f.prototype.transform=function(e,t,r,n,i,a){this.permute(a,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,f=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var h=f,l=u,d=0;d<o;d++){var p=r[c+d],b=n[c+d],m=r[c+d+o],v=n[c+d+o],y=h*m-l*v;v=h*v+l*m,m=y,r[c+d]=p+m,n[c+d]=b+v,r[c+d+o]=p-m,n[c+d+o]=b-v,d!==s&&(y=f*h-u*l,l=f*l+u*h,h=y)}},f.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},f.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},f.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},f.prototype.convert13b=function(e,t,r,n){for(var i=0,a=0;a<t;a++)i+=0|e[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*t;a<n;++a)r[a]=0;m(0===i),m(0==(-8192&i))},f.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},f.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),f=new Array(n),u=new Array(n),c=new Array(n),h=new Array(n),l=r.words;l.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,u,n),this.transform(o,a,s,f,n,i),this.transform(u,a,c,h,n,i);for(var d=0;d<n;d++){var p=s[d]*c[d]-f[d]*h[d];f[d]=s[d]*h[d]+f[d]*c[d],s[d]=p}return this.conjugate(s,f,n),this.transform(s,f,l,a,n,i),this.conjugate(l,a,n),this.normalize13b(l,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},v.prototype.mul=function(e){var t=new v(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},v.prototype.mulf=function(e){var t=new v(null);return t.words=new Array(this.length+e.length),s(this,e,t)},v.prototype.imul=function(e){return this.clone().mulTo(e,this)},v.prototype.imuln=function(e){m("number"==typeof e),m(e<67108864);for(var t=0,r=0;r<this.length;r++){var n=(0|this.words[r])*e,i=(67108863&n)+(67108863&t);t>>=26,t+=n/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},v.prototype.muln=function(e){return this.clone().imuln(e)},v.prototype.sqr=function(){return this.mul(this)},v.prototype.isqr=function(){return this.imul(this.clone())},v.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new v(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},v.prototype.iushln=function(e){m("number"==typeof e&&0<=e);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!=r){var a=0;for(t=0;t<this.length;t++){var o=this.words[t]&i,s=(0|this.words[t])-o<<r;this.words[t]=s|a,a=o>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!=n){for(t=this.length-1;0<=t;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},v.prototype.ishln=function(e){return m(0===this.negative),this.iushln(e)},v.prototype.iushrn=function(e,t,r){var n;m("number"==typeof e&&0<=e),n=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),o=67108863^67108863>>>i<<i,s=r;if(n-=a,n=Math.max(0,n),s){for(var f=0;f<a;f++)s.words[f]=this.words[f];s.length=a}if(0!==a)if(this.length>a)for(this.length-=a,f=0;f<this.length;f++)this.words[f]=this.words[f+a];else this.words[0]=0,this.length=1;var u=0;for(f=this.length-1;0<=f&&(0!==u||n<=f);f--){var c=0|this.words[f];this.words[f]=u<<26-i|c>>>i,u=c&o}return s&&0!==u&&(s.words[s.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},v.prototype.ishrn=function(e,t,r){return m(0===this.negative),this.iushrn(e,t,r)},v.prototype.shln=function(e){return this.clone().ishln(e)},v.prototype.ushln=function(e){return this.clone().iushln(e)},v.prototype.shrn=function(e){return this.clone().ishrn(e)},v.prototype.ushrn=function(e){return this.clone().iushrn(e)},v.prototype.testn=function(e){m("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},v.prototype.imaskn=function(e){m("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26;if(m(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!=t&&r++,this.length=Math.min(r,this.length),0!=t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.strip()},v.prototype.maskn=function(e){return this.clone().imaskn(e)},v.prototype.iaddn=function(e){return m("number"==typeof e),m(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},v.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},v.prototype.isubn=function(e){if(m("number"==typeof e),m(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},v.prototype.addn=function(e){return this.clone().iaddn(e)},v.prototype.subn=function(e){return this.clone().isubn(e)},v.prototype.iabs=function(){return this.negative=0,this},v.prototype.abs=function(){return this.clone().iabs()},v.prototype._ishlnsubmul=function(e,t,r){var n,i,a=e.length+r;this._expand(a);var o=0;for(n=0;n<e.length;n++){i=(0|this.words[n+r])+o;var s=(0|e.words[n])*t;o=((i-=67108863&s)>>26)-(s/67108864|0),this.words[n+r]=67108863&i}for(;n<this.length-r;n++)o=(i=(0|this.words[n+r])+o)>>26,this.words[n+r]=67108863&i;if(0===o)return this.strip();for(m(-1===o),n=o=0;n<this.length;n++)o=(i=-(0|this.words[n])+o)>>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},v.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var o,s=n.length-i.length;if("mod"!==t){(o=new v(null)).length=1+s,o.words=new Array(o.length);for(var f=0;f<o.length;f++)o.words[f]=0}var u=n.clone()._ishlnsubmul(i,1,s);0===u.negative&&(n=u,o&&(o.words[s]=1));for(var c=s-1;0<=c;c--){var h=67108864*(0|n.words[i.length+c])+(0|n.words[i.length+c-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,c);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,c),n.isZero()||(n.negative^=1);o&&(o.words[c]=h)}return o&&o.strip(),n.strip(),"div"!==t&&0!=r&&n.iushrn(r),{div:o||null,mod:n}},v.prototype.divmod=function(e,t,r){return m(!e.isZero()),this.isZero()?{div:new v(0),mod:new v(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(n=a.div.neg()),"div"!==t&&(i=a.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(n=a.div.neg()),{div:n,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(i=a.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:a.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new v(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new v(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new v(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,a},v.prototype.div=function(e){return this.divmod(e,"div",!1).div},v.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},v.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},v.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},v.prototype.modn=function(e){m(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;0<=n;n--)r=(t*r+(0|this.words[n]))%e;return r},v.prototype.idivn=function(e){m(e<=67108863);for(var t=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},v.prototype.divn=function(e){return this.clone().idivn(e)},v.prototype.egcd=function(e){m(0===e.negative),m(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new v(1),i=new v(0),a=new v(0),o=new v(1),s=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++s;for(var f=r.clone(),u=t.clone();!t.isZero();){for(var c=0,h=1;0==(t.words[0]&h)&&c<26;++c,h<<=1);if(0<c)for(t.iushrn(c);0<c--;)(n.isOdd()||i.isOdd())&&(n.iadd(f),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(0<l)for(r.iushrn(l);0<l--;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(u)),a.iushrn(1),o.iushrn(1);0<=t.cmp(r)?(t.isub(r),n.isub(a),i.isub(o)):(r.isub(t),a.isub(n),o.isub(i))}return{a:a,b:o,gcd:r.iushln(s)}},v.prototype._invmp=function(e){m(0===e.negative),m(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new v(1),a=new v(0),o=r.clone();0<t.cmpn(1)&&0<r.cmpn(1);){for(var s=0,f=1;0==(t.words[0]&f)&&s<26;++s,f<<=1);if(0<s)for(t.iushrn(s);0<s--;)i.isOdd()&&i.iadd(o),i.iushrn(1);for(var u=0,c=1;0==(r.words[0]&c)&&u<26;++u,c<<=1);if(0<u)for(r.iushrn(u);0<u--;)a.isOdd()&&a.iadd(o),a.iushrn(1);0<=t.cmp(r)?(t.isub(r),i.isub(a)):(r.isub(t),a.isub(i))}return(n=0===t.cmpn(1)?i:a).cmpn(0)<0&&n.iadd(e),n},v.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0;for(var n=r.negative=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},v.prototype.invm=function(e){return this.egcd(e).a.umod(e)},v.prototype.isEven=function(){return 0==(1&this.words[0])},v.prototype.isOdd=function(){return 1==(1&this.words[0])},v.prototype.andln=function(e){return this.words[0]&e},v.prototype.bincn=function(e){m("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(1+r),this.words[r]|=n,this;for(var i=n,a=r;0!==i&&a<this.length;a++){var o=0|this.words[a];i=(o+=i)>>>26,o&=67108863,this.words[a]=o}return 0!==i&&(this.words[a]=i,this.length++),this},v.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},v.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1<this.length)t=1;else{r&&(e=-e),m(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},v.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},v.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;0<=r;r--){var n=0|this.words[r],i=0|e.words[r];if(n!=i){n<i?t=-1:i<n&&(t=1);break}}return t},v.prototype.gtn=function(e){return 1===this.cmpn(e)},v.prototype.gt=function(e){return 1===this.cmp(e)},v.prototype.gten=function(e){return 0<=this.cmpn(e)},v.prototype.gte=function(e){return 0<=this.cmp(e)},v.prototype.ltn=function(e){return-1===this.cmpn(e)},v.prototype.lt=function(e){return-1===this.cmp(e)},v.prototype.lten=function(e){return this.cmpn(e)<=0},v.prototype.lte=function(e){return this.cmp(e)<=0},v.prototype.eqn=function(e){return 0===this.cmpn(e)},v.prototype.eq=function(e){return 0===this.cmp(e)},v.red=function(e){return new w(e)},v.prototype.toRed=function(e){return m(!this.red,"Already a number in reduction context"),m(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},v.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},v.prototype._forceRed=function(e){return this.red=e,this},v.prototype.forceRed=function(e){return m(!this.red,"Already a number in reduction context"),this._forceRed(e)},v.prototype.redAdd=function(e){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},v.prototype.redIAdd=function(e){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},v.prototype.redSub=function(e){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},v.prototype.redISub=function(e){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},v.prototype.redShl=function(e){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},v.prototype.redMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},v.prototype.redIMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},v.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},v.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},v.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},v.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},v.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},v.prototype.redPow=function(e){return m(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var u={k256:null,p224:null,p192:null,p25519:null};function c(e,t){this.name=e,this.p=new v(t,16),this.n=this.p.bitLength(),this.k=new v(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function w(e){if("string"==typeof e){var t=v._prime(e);this.m=t.p,this.prime=t}else m(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){w.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new v(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c.prototype._tmp=function(){var e=new v(null);return e.words=new Array(Math.ceil(this.n/13)),e},c.prototype.ireduce=function(e){for(var t,r=e;this.split(r,this.tmp),(t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength())>this.n;);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):0<n?r.isub(this.p):r.strip(),r},c.prototype.split=function(e,t){e.iushrn(this.n,0,t)},c.prototype.imulK=function(e){return e.imul(this.k)},r(b,c),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var a=0|e.words[n];e.words[n-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,0===(e.words[n-10]=i)&&10<e.length?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(y,c),r(g,c),r(_,c),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},v._prime=function(e){if(u[e])return u[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new g;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return u[e]=t},w.prototype._verify1=function(e){m(0===e.negative,"red works only with positives"),m(e.red,"red works only with red numbers")},w.prototype._verify2=function(e,t){m(0==(e.negative|t.negative),"red works only with positives"),m(e.red&&e.red===t.red,"red works only with red numbers")},w.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},w.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},w.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r},w.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},w.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},w.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},w.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},w.prototype.isqr=function(e){return this.imul(e,e.clone())},w.prototype.sqr=function(e){return this.mul(e,e)},w.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(m(t%2==1),3===t){var r=this.m.add(new v(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);m(!n.isZero());var a=new v(1).toRed(this),o=a.redNeg(),s=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new v(2*f*f).toRed(this);0!==this.pow(f,s).cmp(o);)f.redIAdd(o);for(var u=this.pow(f,n),c=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(a);){for(var d=h,p=0;0!==d.cmp(a);p++)d=d.redSqr();m(p<l);var b=this.pow(u,new v(1).iushln(l-p-1));c=c.redMul(b),u=b.redSqr(),h=h.redMul(u),l=p}return c},w.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},w.prototype.pow=function(e,t){if(t.isZero())return new v(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new v(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,o=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;0<=n;n--){for(var f=t.words[n],u=s-1;0<=u;u--){var c=f>>u&1;i!==r[0]&&(i=this.sqr(i)),0!=c||0!==a?(a<<=1,a|=c,(4===++o||0===n&&0===u)&&(i=this.mul(i,r[a]),a=o=0)):o=0}s=26}return i},w.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},w.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},v.mont=function(e){return new A(e)},r(A,w),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return 0<=i.cmp(this.m)?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new v(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return 0<=i.cmp(this.m)?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:47}],46:[function(e,t,r){var n;function i(e){this.rand=e}if(t.exports=function(e){return(n=n||new i(null)).generate(e)},(t.exports.Rand=i).prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=e("crypto");if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},{crypto:47}],47:[function(e,t,r){},{}],48:[function(e,t,r){var i=e("safe-buffer").Buffer;function a(e){i.isBuffer(e)||(e=i.from(e));for(var t=e.length/4|0,r=new Array(t),n=0;n<t;n++)r[n]=e.readUInt32BE(4*n);return r}function n(e){for(;0<e.length;e++)e[0]=0}function o(e,t,r,n,i){for(var a,o,s,f,u=r[0],c=r[1],h=r[2],l=r[3],d=e[0]^t[0],p=e[1]^t[1],b=e[2]^t[2],m=e[3]^t[3],v=4,y=1;y<i;y++)a=u[d>>>24]^c[p>>>16&255]^h[b>>>8&255]^l[255&m]^t[v++],o=u[p>>>24]^c[b>>>16&255]^h[m>>>8&255]^l[255&d]^t[v++],s=u[b>>>24]^c[m>>>16&255]^h[d>>>8&255]^l[255&p]^t[v++],f=u[m>>>24]^c[d>>>16&255]^h[p>>>8&255]^l[255&b]^t[v++],d=a,p=o,b=s,m=f;return a=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&m])^t[v++],o=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[m>>>8&255]<<8|n[255&d])^t[v++],s=(n[b>>>24]<<24|n[m>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^t[v++],f=(n[m>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[v++],[a>>>=0,o>>>=0,s>>>=0,f>>>=0]}var h=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,f=0;f<256;++f){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99;var c=e[n[r[o]=u]=o],h=e[c],l=e[h],d=257*e[u]^16843008*u;i[0][o]=d<<24|d>>>8,i[1][o]=d<<16|d>>>16,i[2][o]=d<<8|d>>>24,i[3][o]=d,d=16843009*l^65537*h^257*c^16843008*o,a[0][u]=d<<24|d>>>8,a[1][u]=d<<16|d>>>16,a[2][u]=d<<8|d>>>24,a[3][u]=d,0===o?o=s=1:(o=c^e[e[e[l^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:a}}();function s(e){this._key=a(e),this._reset()}s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<n;a++){var o=i[a-1];a%t==0?(o=o<<8|o>>>24,o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=h[a/t|0]<<24):6<t&&a%t==4&&(o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]),i[a]=i[a-t]^o}for(var s=[],f=0;f<n;f++){var u=n-f,c=i[u-(f%4?0:4)];s[f]=f<4||u<=4?c:l.INV_SUB_MIX[0][l.SBOX[c>>>24]]^l.INV_SUB_MIX[1][l.SBOX[c>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[c>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&c]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},s.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},s.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),n=i.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n},s.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},t.exports.AES=s},{"safe-buffer":225}],49:[function(e,t,r){var o=e("./aes"),u=e("safe-buffer").Buffer,s=e("cipher-base"),n=e("inherits"),c=e("./ghash"),i=e("buffer-xor"),h=e("./incr32");function a(e,t,r,n){s.call(this);var i=u.alloc(4,0);this._cipher=new o.AES(t);var a=this._cipher.encryptBlock(i);this._ghash=new c(a),r=function(e,t,r){if(12===t.length)return e._finID=u.concat([t,u.from([0,0,0,1])]),u.concat([t,u.from([0,0,0,2])]);var n=new c(r),i=t.length,a=i%16;n.update(t),a&&(a=16-a,n.update(u.alloc(a,0))),n.update(u.alloc(8,0));var o=8*i,s=u.alloc(8);s.writeUIntBE(o,0,8),n.update(s),e._finID=n.state;var f=u.from(e._finID);return h(f),f}(this,r,a),this._prev=u.from(r),this._cache=u.allocUnsafe(0),this._secCache=u.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}n(a,s),a.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=u.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},a.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=i(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},a.prototype.getAuthTag=function(){if(this._decrypt||!u.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},a.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},a.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=a},{"./aes":48,"./ghash":53,"./incr32":54,"buffer-xor":76,"cipher-base":79,inherits:131,"safe-buffer":225}],50:[function(e,t,r){var n=e("./encrypter"),i=e("./decrypter"),a=e("./modes/list.json");r.createCipher=r.Cipher=n.createCipher,r.createCipheriv=r.Cipheriv=n.createCipheriv,r.createDecipher=r.Decipher=i.createDecipher,r.createDecipheriv=r.Decipheriv=i.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(a)}},{"./decrypter":51,"./encrypter":52,"./modes/list.json":62}],51:[function(e,t,r){var i=e("./authCipher"),a=e("safe-buffer").Buffer,o=e("./modes"),s=e("./streamCipher"),n=e("cipher-base"),f=e("./aes"),u=e("evp_bytestokey");function c(e,t,r){n.call(this),this._cache=new h,this._last=void 0,this._cipher=new f.AES(t),this._prev=a.from(r),this._mode=e,this._autopadding=!0}function h(){this.cache=a.allocUnsafe(0)}function l(e,t,r){var n=o[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=a.from(r)),"GCM"!==n.mode&&r.length!==n.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=a.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===n.type?new s(n.module,t,r,!0):"auth"===n.type?new i(n.module,t,r,!0):new c(n.module,t,r)}e("inherits")(c,n),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return a.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||16<t)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=a.concat([this.cache,e])},h.prototype.get=function(e){var t;if(e){if(16<this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(16<=this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return l(e,n.key,n.iv)},r.createDecipheriv=l},{"./aes":48,"./authCipher":49,"./modes":61,"./streamCipher":64,"cipher-base":79,evp_bytestokey:114,inherits:131,"safe-buffer":225}],52:[function(e,t,r){var i=e("./modes"),a=e("./authCipher"),o=e("safe-buffer").Buffer,s=e("./streamCipher"),n=e("cipher-base"),f=e("./aes"),u=e("evp_bytestokey");function c(e,t,r){n.call(this),this._cache=new l,this._cipher=new f.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}e("inherits")(c,n),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var h=o.alloc(16,16);function l(){this.cache=o.allocUnsafe(0)}function d(e,t,r){var n=i[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==n.mode&&r.length!==n.iv)throw new TypeError("invalid iv length "+r.length);return new("stream"===n.type?s:"auth"===n.type?a:c)(n.module,t,r)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=o.concat([this.cache,e])},l.prototype.get=function(){if(15<this.cache.length){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},r.createCipheriv=d,r.createCipher=function(e,t){var r=i[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return d(e,n.key,n.iv)}},{"./aes":48,"./authCipher":49,"./modes":61,"./streamCipher":64,"cipher-base":79,evp_bytestokey:114,inherits:131,"safe-buffer":225}],53:[function(e,t,r){var n=e("safe-buffer").Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),t=3;0<t;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);16<=this.cache.length;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},t.exports=a},{"safe-buffer":225}],54:[function(e,t,r){t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],55:[function(e,t,r){var i=e("buffer-xor");r.encrypt=function(e,t){var r=i(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return i(n,r)}},{"buffer-xor":76}],56:[function(e,t,r){var a=e("safe-buffer").Buffer,o=e("buffer-xor");function s(e,t,r){var n=t.length,i=o(t,e._cache);return e._cache=e._cache.slice(n),e._prev=a.concat([e._prev,r?t:i]),i}r.encrypt=function(e,t,r){for(var n,i=a.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=a.allocUnsafe(0)),!(e._cache.length<=t.length)){i=a.concat([i,s(e,t,r)]);break}n=e._cache.length,i=a.concat([i,s(e,t.slice(0,n),r)]),t=t.slice(n)}return i}},{"buffer-xor":76,"safe-buffer":225}],57:[function(e,t,r){var o=e("safe-buffer").Buffer;function s(e,t,r){for(var n,i,a=-1,o=0;++a<8;)n=t&1<<7-a?128:0,o+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=f(e._prev,r?n:i);return o}function f(e,t){var r=e.length,n=-1,i=o.allocUnsafe(e.length);for(e=o.concat([e,o.from([t])]);++n<r;)i[n]=e[n]<<1|e[n+1]>>7;return i}r.encrypt=function(e,t,r){for(var n=t.length,i=o.allocUnsafe(n),a=-1;++a<n;)i[a]=s(e,t[a],r);return i}},{"safe-buffer":225}],58:[function(e,t,r){var c=e("safe-buffer").Buffer;r.encrypt=function(e,t,r){for(var n,i,a,o,s=t.length,f=c.allocUnsafe(s),u=-1;++u<s;)f[u]=(n=e,i=t[u],a=r,o=n._cipher.encryptBlock(n._prev)[0]^i,n._prev=c.concat([n._prev.slice(1),c.from([a?i:o])]),o);return f}},{"safe-buffer":225}],59:[function(e,t,r){var c=e("buffer-xor"),h=e("safe-buffer").Buffer,l=e("../incr32");r.encrypt=function(e,t){var r,n,i=Math.ceil(t.length/16),a=e._cache.length;e._cache=h.concat([e._cache,h.allocUnsafe(16*i)]);for(var o=0;o<i;o++){var s=(n=(r=e)._cipher.encryptBlockRaw(r._prev),l(r._prev),n),f=a+16*o;e._cache.writeUInt32BE(s[0],f+0),e._cache.writeUInt32BE(s[1],f+4),e._cache.writeUInt32BE(s[2],f+8),e._cache.writeUInt32BE(s[3],f+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),c(t,u)}},{"../incr32":54,"buffer-xor":76,"safe-buffer":225}],60:[function(e,t,r){r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],61:[function(e,t,r){var n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var a in i)i[a].module=n[i[a].mode];t.exports=i},{"./cbc":55,"./cfb":56,"./cfb1":57,"./cfb8":58,"./ctr":59,"./ecb":60,"./list.json":62,"./ofb":63}],62:[function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],63:[function(e,t,r){(function(i){var a=e("buffer-xor");r.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=i.concat([e._cache,((r=e)._prev=r._cipher.encryptBlock(r._prev),r._prev)]);var r,n=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),a(t,n)}}).call(this,e("buffer").Buffer)},{buffer:77,"buffer-xor":76}],64:[function(e,t,r){var i=e("./aes"),a=e("safe-buffer").Buffer,o=e("cipher-base");function n(e,t,r,n){o.call(this),this._cipher=new i.AES(t),this._prev=a.from(r),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=n,this._mode=e}e("inherits")(n,o),n.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},n.prototype._final=function(){this._cipher.scrub()},t.exports=n},{"./aes":48,"cipher-base":79,inherits:131,"safe-buffer":225}],65:[function(e,t,r){var n=e("browserify-des"),i=e("browserify-aes/browser"),a=e("browserify-aes/modes"),o=e("browserify-des/modes"),s=e("evp_bytestokey");function f(e,t,r){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,r);if(o[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function u(e,t,r){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,r);if(o[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),a[e])r=a[e].key,n=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");r=8*o[e].key,n=o[e].iv}var i=s(t,!1,r,n);return f(e,i.key,i.iv)},r.createCipheriv=r.Cipheriv=f,r.createDecipher=r.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),a[e])r=a[e].key,n=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");r=8*o[e].key,n=o[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},r.createDecipheriv=r.Decipheriv=u,r.listCiphers=r.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},{"browserify-aes/browser":50,"browserify-aes/modes":61,"browserify-des":66,"browserify-des/modes":67,evp_bytestokey:114}],66:[function(e,t,r){var o=e("cipher-base"),n=e("des.js"),i=e("inherits"),s=e("safe-buffer").Buffer,f={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function a(e){o.call(this);var t,r=e.mode.toLowerCase(),n=f[r];t=e.decrypt?"decrypt":"encrypt";var i=e.key;s.isBuffer(i)||(i=s.from(i)),"des-ede"!==r&&"des-ede-cbc"!==r||(i=s.concat([i,i.slice(0,8)]));var a=e.iv;s.isBuffer(a)||(a=s.from(a)),this._des=n.create({key:i,iv:a,type:t})}f.des=f["des-cbc"],f.des3=f["des-ede3-cbc"],i(t.exports=a,o),a.prototype._update=function(e){return s.from(this._des.update(e))},a.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":79,"des.js":87,inherits:131,"safe-buffer":225}],67:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],68:[function(t,r,e){(function(b){var m=t("bn.js"),n=t("randombytes");function e(e,t){var r,n,i={blinder:(n=v(r=t)).toRed(m.mont(r.modulus)).redPow(new m(r.publicExponent)).fromRed(),unblinder:n.invm(r.modulus)},a=t.modulus.byteLength(),o=(m.mont(t.modulus),new m(e).mul(i.blinder).umod(t.modulus)),s=o.toRed(m.mont(t.prime1)),f=o.toRed(m.mont(t.prime2)),u=t.coefficient,c=t.prime1,h=t.prime2,l=s.redPow(t.exponent1),d=f.redPow(t.exponent2);l=l.fromRed(),d=d.fromRed();var p=l.isub(d).imul(u).umod(c);return p.imul(h),d.iadd(p),new b(d.imul(i.unblinder).umod(t.modulus).toArray(!1,a))}function v(e){for(var t=e.modulus.byteLength(),r=new m(n(t));0<=r.cmp(e.modulus)||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new m(n(t));return r}(r.exports=e).getr=v}).call(this,t("buffer").Buffer)},{"bn.js":45,buffer:77,randombytes:209}],69:[function(e,t,r){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":70}],70:[function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],71:[function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],72:[function(h,l,e){(function(i){var r=h("create-hash"),n=h("stream"),e=h("inherits"),a=h("./sign"),o=h("./verify"),s=h("./algorithms.json");function t(e){n.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){n.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){return new t(e)}function c(e){return new f(e)}Object.keys(s).forEach(function(e){s[e].id=new i(s[e].id,"hex"),s[e.toLowerCase()]=s[e]}),e(t,n.Writable),t.prototype._write=function(e,t,r){this._hash.update(e),r()},t.prototype.update=function(e,t){return"string"==typeof e&&(e=new i(e,t)),this._hash.update(e),this},t.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=a(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},e(f,n.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=new i(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,r){"string"==typeof t&&(t=new i(t,r)),this.end();var n=this._hash.digest();return o(t,n,e,this._signType,this._tag)},l.exports={Sign:u,Verify:c,createSign:u,createVerify:c}}).call(this,h("buffer").Buffer)},{"./algorithms.json":70,"./sign":73,"./verify":74,buffer:77,"create-hash":82,inherits:131,stream:236}],73:[function(e,t,r){(function(b){var u=e("create-hmac"),c=e("browserify-rsa"),h=e("elliptic").ec,m=e("bn.js"),l=e("parse-asn1"),d=e("./curves.json");function v(e,t,r,n){if((e=new b(e.toArray())).length<t.byteLength()){var i=new b(t.byteLength()-e.length);i.fill(0),e=b.concat([i,e])}var a=r.length,o=function(e,t){e=(e=y(e,t)).mod(t);var r=new b(e.toArray());if(r.length<t.byteLength()){var n=new b(t.byteLength()-r.length);n.fill(0),r=b.concat([n,r])}return r}(r,t),s=new b(a);s.fill(1);var f=new b(a);return f.fill(0),f=u(n,f).update(s).update(new b([0])).update(e).update(o).digest(),s=u(n,f).update(s).digest(),{k:f=u(n,f).update(s).update(new b([1])).update(e).update(o).digest(),v:s=u(n,f).update(s).digest()}}function y(e,t){var r=new m(e),n=(e.length<<3)-t.bitLength();return 0<n&&r.ishrn(n),r}function g(e,t,r){var n,i;do{for(n=new b(0);8*n.length<e.bitLength();)t.v=u(r,t.k).update(t.v).digest(),n=b.concat([n,t.v]);i=y(n,e),t.k=u(r,t.k).update(t.v).update(new b([0])).digest(),t.v=u(r,t.k).update(t.v).digest()}while(-1!==i.cmp(e));return i}t.exports=function(e,t,r,n,i){var a=l(t);if(a.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");return function(e,t){var r=d[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var n=new h(r).keyFromPrivate(t.privateKey).sign(e);return new b(n.toDER())}(e,a)}if("dsa"===a.type){if("dsa"!==n)throw new Error("wrong private key type");return function(e,t,r){var n,i=t.params.priv_key,a=t.params.p,o=t.params.q,s=t.params.g,f=new m(0),u=y(e,o).mod(o),c=!1,h=v(i,o,e,r);for(;!1===c;)n=g(o,h,r),l=n,d=a,p=o,f=s.toRed(m.mont(d)).redPow(l).fromRed().mod(p),0===(c=n.invm(o).imul(u.add(i.mul(f))).mod(o)).cmpn(0)&&(c=!1,f=new m(0));var l,d,p;return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),new b(r)}(f,c)}(e,a,r)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");e=b.concat([i,e]);for(var o=a.modulus.byteLength(),s=[0,1];e.length+s.length+1<o;)s.push(255);s.push(0);for(var f=-1;++f<e.length;)s.push(e[f]);return c(s,a)},t.exports.getKey=v,t.exports.makeKey=g}).call(this,e("buffer").Buffer)},{"./curves.json":71,"bn.js":45,"browserify-rsa":68,buffer:77,"create-hmac":84,elliptic:97,"parse-asn1":195}],74:[function(e,t,r){(function(l){var d=e("bn.js"),p=e("elliptic").ec,b=e("parse-asn1"),m=e("./curves.json");function v(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,r,n,i){var a=b(r);if("ec"===a.type){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");return function(e,t,r){var n=m[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new p(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}(e,t,a)}if("dsa"===a.type){if("dsa"!==n)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,i=r.data.q,a=r.data.g,o=r.data.pub_key,s=b.signature.decode(e,"der"),f=s.s,u=s.r;v(f,i),v(u,i);var c=d.mont(n),h=f.invm(i);return 0===a.toRed(c).redPow(new d(t).mul(h).mod(i)).fromRed().mul(o.toRed(c).redPow(u.mul(h).mod(i)).fromRed()).mod(n).mod(i).cmp(u)}(e,t,a)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");t=l.concat([i,t]);for(var o=a.modulus.byteLength(),s=[1],f=0;t.length+s.length+2<o;)s.push(255),f++;s.push(0);for(var u=-1;++u<t.length;)s.push(t[u]);s=new l(s);var c=d.mont(a.modulus);e=(e=new d(e).toRed(c)).redPow(new d(a.publicExponent)),e=new l(e.fromRed().toArray());var h=f<8?1:0;for(o=Math.min(e.length,s.length),e.length!==s.length&&(h=1),u=-1;++u<o;)h|=e[u]^s[u];return 0===h}}).call(this,e("buffer").Buffer)},{"./curves.json":71,"bn.js":45,buffer:77,elliptic:97,"parse-asn1":195}],75:[function(e,t,r){arguments[4][47][0].apply(r,arguments)},{dup:47}],76:[function(e,t,r){(function(a){t.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new a(r),i=0;i<r;++i)n[i]=e[i]^t[i];return n}}).call(this,e("buffer").Buffer)},{buffer:77}],77:[function(j,e,D){(function(h){"use strict";var n=j("base64-js"),a=j("ieee754"),e="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=h,D.SlowBuffer=function(e){+e!=e&&(e=0);return h.alloc(+e)},D.INSPECT_MAX_BYTES=50;var r=2147483647;function o(e){if(r<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,h.prototype),t}function h(e,t,r){if("number"!=typeof e)return i(e,t,r);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}function i(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!h.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|l(e,t),n=o(r),i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(n,h.prototype),n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return h.from(n,t,r);var i=function(e){if(h.isBuffer(e)){var t=0|c(e.length),r=o(t);return 0===r.length?r:(e.copy(r,0,0,t),r)}if(void 0!==e.length)return"number"!=typeof e.length||F(e.length)?o(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return h.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return s(e),o(e<0?0:0|c(e))}function u(e){for(var t=e.length<0?0:0|c(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function c(e){if(r<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function l(e,t){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(e).length;default:if(i)return n?-1:T(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function p(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),F(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=h.from(t,n)),h.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var a,o=1,s=e.length,f=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s/=o=2,f/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===f)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(s<r+f&&(r=s-f),a=r;0<=a;a--){for(var h=!0,l=0;l<f;l++)if(u(e,a+l)!==u(t,l)){h=!1;break}if(h)return a}return-1}function m(e,t,r,n){r=Number(r)||0;var i=e.length-r;(!n||i<(n=Number(n)))&&(n=i);var a=t.length;a/2<n&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(F(s))return o;e[r+o]=s}return o}function v(e,t,r,n){return R(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function y(e,t,r,n){return R(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function g(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,f,u=e[i],c=null,h=239<u?4:223<u?3:191<u?2:1;if(i+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&127<(f=(31&u)<<6|63&a)&&(c=f);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&2047<(f=(15&u)<<12|(63&a)<<6|63&o)&&(f<55296||57343<f)&&(c=f);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&65535<(f=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)&&f<1114112&&(c=f)}null===c?(c=65533,h=1):65535<c&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=w));return r}(n)}D.kMaxLength=r,(h.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),h.poolSize=8192,h.from=function(e,t,r){return i(e,t,r)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(e,t,r){return i=t,a=r,s(n=e),n<=0||void 0===i?o(n):"string"==typeof a?o(n).fill(i,a):o(n).fill(i);var n,i,a},h.allocUnsafe=function(e){return f(e)},h.allocUnsafeSlow=function(e){return f(e)},h.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==h.prototype},h.compare=function(e,t){if(O(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(e)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},h.isEncoding=function(e){switch(String(e).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}},h.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var n=h.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(O(a,Uint8Array)&&(a=h.from(a)),!h.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},h.byteLength=l,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},h.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},h.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},h.prototype.toLocaleString=h.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?_(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return g(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},h.prototype.equals=function(e){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===h.compare(this,e)},h.prototype.inspect=function(){var e="",t=D.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},e&&(h.prototype[e]=h.prototype.inspect),h.prototype.compare=function(e,t,r,n,i){if(O(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=t)return 0;if(i<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),f=this.slice(n,i),u=e.slice(t,r),c=0;c<s;++c)if(f[c]!==u[c]){a=f[c],o=u[c];break}return a<o?-1:o<a?1:0},h.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},h.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},h.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},h.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||i<r)&&(r=i),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var a,o,s,f,u,c,h=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return u=t,c=r,R(T(e,(f=this).length-u),f,u,c);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return a=this,o=t,s=r,R(B(e),a,o,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,e,t,r);default:if(h)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function A(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function S(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var i="",a=t;a<r;++a)i+=P[e[a]];return i}function E(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function x(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,r,n,i,a){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function I(e,t,r,n){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,i){return t=+t,r>>>=0,i||I(e,0,r,4),a.write(e,t,r,n,23,4),r+4}function M(e,t,r,n,i){return t=+t,r>>>=0,i||I(e,0,r,8),a.write(e,t,r,n,52,8),r+8}h.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,h.prototype),n},h.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},h.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e+--t],i=1;0<t&&(i*=256);)n+=this[e+--t]*i;return n},h.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},h.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return(i*=128)<=n&&(n-=Math.pow(2,8*t)),n},h.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=t,i=1,a=this[e+--n];0<n&&(i*=256);)a+=this[e+--n]*i;return(i*=128)<=a&&(a-=Math.pow(2,8*t)),a},h.prototype.readInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),a.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),a.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),a.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),a.read(this,e,!1,52,8)},h.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||C(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},h.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||C(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;0<=--i&&(a*=256);)this[t+i]=e/a&255;return t+r},h.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},h.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},h.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},h.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;0<=--a&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},h.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},h.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},h.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},h.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},h.prototype.writeDoubleBE=function(e,t,r){return M(this,e,t,!1,r)},h.prototype.copy=function(e,t,r,n){if(!h.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r=r||0,n||0===n||(n=this.length),t>=e.length&&(t=e.length),t=t||0,0<n&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=i-1;0<=a;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},h.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(a=t;a<r;++a)this[a]=e;else{var o=h.isBuffer(e)?e:h.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var t=/[^+/0-9A-Za-z-_]/g;function T(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if(55295<(r=e.charCodeAt(o))&&r<57344){if(!i){if(56319<r){-1<(t-=3)&&a.push(239,191,189);continue}if(o+1===n){-1<(t-=3)&&a.push(239,191,189);continue}i=r;continue}if(r<56320){-1<(t-=3)&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&-1<(t-=3)&&a.push(239,191,189);if(i=null,r<128){if(--t<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function B(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(t,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function F(e){return e!=e}var P=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()}).call(this,j("buffer").Buffer)},{"base64-js":44,buffer:77,ieee754:129}],78:[function(ve,m,e){(function(e,n){var c,$=(c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",{encode:function(e){for(var t="",r=0,n=0,i=0,a=0,o=0,s=0,f=0,u=0;u<e.length;)a=(r=e.charCodeAt(u++))>>2,o=(3&r)<<4|(n=e.charCodeAt(u++))>>4,s=(15&n)<<2|(i=e.charCodeAt(u++))>>6,f=63&i,isNaN(n)?s=f=64:isNaN(i)&&(f=64),t+=c.charAt(a)+c.charAt(o)+c.charAt(s)+c.charAt(f);return t},decode:function(e){var t="",r=0,n=0,i=0,a=0,o=0,s=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var f=0;f<e.length;)r=c.indexOf(e.charAt(f++))<<2|(a=c.indexOf(e.charAt(f++)))>>4,t+=String.fromCharCode(r),n=(15&a)<<4|(o=c.indexOf(e.charAt(f++)))>>2,64!==o&&(t+=String.fromCharCode(n)),i=(3&o)<<6|(s=c.indexOf(e.charAt(f++))),64!==s&&(t+=String.fromCharCode(i));return t}}),ee=void 0!==n&&void 0!==e&&void 0!==e.versions&&e.versions.node,t=function(){};if(void 0!==n){var r=!n.from;if(!r)try{n.from("foo","utf8")}catch(e){r=!0}t=r?function(e,t){return t?new n(e,t):new n(e)}:n.from.bind(n),n.alloc||(n.alloc=function(e){return new n(e)}),n.allocUnsafe||(n.allocUnsafe=function(e){return new n(e)})}function te(e){return ee?n.alloc(e):new Array(e)}function re(e){return ee?n.allocUnsafe(e):new Array(e)}function i(e){if(Array.isArray(e[0]))return[].concat.apply([],e);var t=0,r=0;for(r=0;r<e.length;++r)t+=e[r].length;var n=new Uint8Array(t);for(t=r=0;r<e.length;t+=e[r].length,++r)n.set(e[r],t);return n}var ne=function(e){return ee?t(e,"binary"):e.split("").map(function(e){return 255&e.charCodeAt(0)})},ie=/\u0000/g,ae=/[\u0001-\u0006]/g,oe=function(e){for(var t=[],r=0;r<e[0].length;++r)t.push.apply(t,e[0][r]);return t},a=oe,se=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(h(e,i)));return n.join("").replace(ie,"")},o=se,s=function(e,t,r){for(var n=[],i=t;i<t+r;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},f=s,fe=i;ee&&(se=function(e,t,r){return n.isBuffer(e)?e.toString("utf16le",t,r).replace(ie,""):o(e,t,r)},s=function(e,t,r){return n.isBuffer(e)?e.toString("hex",t,t+r):f(e,t,r)},oe=function(e){return 0<e[0].length&&n.isBuffer(e[0][0])?n.concat(e[0]):a(e)},ne=function(e){return t(e,"binary")},fe=function(e){return n.isBuffer(e[0])?n.concat(e):i(e)});function ue(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]}var u=function(e,t){return e[t]},h=function(e,t){return 256*e[t+1]+e[t]},l=function(e,t){var r=256*e[t+1]+e[t];return r<32768?r:-1*(65535-r+1)},ce=function(e,t){return(e[t+3]<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]};function he(e,t){var r,n,i=0;switch(e){case 1:r=u(this,this.l);break;case 2:r=("i"!==t?h:l)(this,this.l);break;case 4:r=ce(this,this.l);break;case 16:i=2,n=s(this,this.l,e)}return this.l+=e,0===i?r:n}var le,d=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},p=function(e,t,r){e[r]=255&t,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255};function b(e,t,r){var n=0,i=0;switch(r){case"hex":for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this;case"utf16le":var a=this.l+e;for(i=0;i<Math.min(t.length,e);++i){var o=t.charCodeAt(i);this[this.l++]=255&o,this[this.l++]=o>>8}for(;this.l<a;)this[this.l++]=0;return this}switch(e){case 1:n=1,this[this.l]=255&t;break;case 2:n=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 4:n=4,d(this,t,this.l);break;case-4:n=4,p(this,t,this.l)}return this.l+=n,this}function de(e,t){var r=s(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function pe(e,t){e.l=t,e.read_shift=he,e.chk=de,e.write_shift=b}function be(e){var t=te(e);return pe(t,0),t}!function(e){function t(){var e=0,t=new Array(256);for(var r=0;r!=256;++r){e=r;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;e=e&1?-306674912^e>>>1:e>>>1;t[r]=e}return typeof Int32Array!=="undefined"?new Int32Array(t):t}e.version="1.2.0";var s=t();function r(e,t){var r=t^-1,n=e.length-1;for(var i=0;i<n;){r=r>>>8^s[(r^e.charCodeAt(i++))&255];r=r>>>8^s[(r^e.charCodeAt(i++))&255]}if(i===n)r=r>>>8^s[(r^e.charCodeAt(i))&255];return r^-1}function n(e,t){if(e.length>1e4)return a(e,t);var r=t^-1,n=e.length-3;for(var i=0;i<n;){r=r>>>8^s[(r^e[i++])&255];r=r>>>8^s[(r^e[i++])&255];r=r>>>8^s[(r^e[i++])&255];r=r>>>8^s[(r^e[i++])&255]}while(i<n+3)r=r>>>8^s[(r^e[i++])&255];return r^-1}function a(e,t){var r=t^-1,n=e.length-7;for(var i=0;i<n;){r=r>>>8^s[(r^e[i++])&255];r=r>>>8^s[(r^e[i++])&255];r=r>>>8^s[(r^e[i++])&255];r=r>>>8^s[(r^e[i++])&255];r=r>>>8^s[(r^e[i++])&255];r=r>>>8^s[(r^e[i++])&255];r=r>>>8^s[(r^e[i++])&255];r=r>>>8^s[(r^e[i++])&255]}while(i<n+7)r=r>>>8^s[(r^e[i++])&255];return r^-1}function i(e,t){var r=t^-1;for(var n=0,i=e.length,a,o;n<i;){a=e.charCodeAt(n++);if(a<128){r=r>>>8^s[(r^a)&255]}else if(a<2048){r=r>>>8^s[(r^(192|a>>6&31))&255];r=r>>>8^s[(r^(128|a&63))&255]}else if(a>=55296&&a<57344){a=(a&1023)+64;o=e.charCodeAt(n++)&1023;r=r>>>8^s[(r^(240|a>>8&7))&255];r=r>>>8^s[(r^(128|a>>2&63))&255];r=r>>>8^s[(r^(128|o>>6&15|(a&3)<<4))&255];r=r>>>8^s[(r^(128|o&63))&255]}else{r=r>>>8^s[(r^(224|a>>12&15))&255];r=r>>>8^s[(r^(128|a>>6&63))&255];r=r>>>8^s[(r^(128|a&63))&255]}}return r^-1}e.table=s,e.bstr=r,e.buf=n,e.str=i}(le={});var me=function(){var i,e={};function l(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:l(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function d(e){if("/"==e.charAt(e.length-1))return d(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function w(e,t){"string"==typeof t&&(t=new Date(t));var r=t.getHours();r=(r=r<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,r);var n=t.getFullYear()-1980;n=(n=n<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,n)}function g(e){pe(e,0);for(var t={},r=0;e.l<=e.length-4;){var n=e.read_shift(2),i=e.read_shift(2),a=e.l+i,o={};switch(n){case 21589:1&(r=e.read_shift(1))&&(o.mtime=e.read_shift(4)),5<i&&(2&r&&(o.atime=e.read_shift(4)),4&r&&(o.ctime=e.read_shift(4))),o.mtime&&(o.mt=new Date(1e3*o.mtime))}e.l=a,t[n]=o}return t}function a(){return i=i||ve("fs")}function o(e,t){if(80==e[0]&&75==e[1])return Y(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var r,n,i,a,o,s,f=512,u=[],c=e.slice(0,512);pe(c,0);var h=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(C,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(c);switch(r=h[0]){case 3:f=512;break;case 4:f=4096;break;case 0:if(0==h[1])return Y(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+r)}512!==f&&pe(c=e.slice(0,f),28);var l=e.slice(0,f);!function(e,t){var r;switch(e.l+=2,r=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+r);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+r);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+r)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(c,r);var d=c.read_shift(4,"i");if(3===r&&0!==d)throw new Error("# Directory Sectors: Expected 0 saw "+d);c.l+=4,a=c.read_shift(4,"i"),c.l+=4,c.chk("00100000","Mini Stream Cutoff Size: "),o=c.read_shift(4,"i"),n=c.read_shift(4,"i"),s=c.read_shift(4,"i"),i=c.read_shift(4,"i");for(var p=-1,b=0;b<109&&!((p=c.read_shift(4,"i"))<0);++b)u[b]=p;var m=function(e,t){for(var r=Math.ceil(e.length/t)-1,n=[],i=1;i<r;++i)n[i-1]=e.slice(i*t,(i+1)*t);return n[r-1]=e.slice(r*t),n}(e,f);!function e(t,r,n,i,a){var o=x;if(t===x){if(0!==r)throw new Error("DIFAT chain shorter than expected")}else if(-1!==t){var s=n[t],f=(i>>>2)-1;if(!s)return;for(var u=0;u<f&&(o=ce(s,4*u))!==x;++u)a.push(o);e(ce(s,i-4),r-1,n,i,a)}}(s,i,m,f,u);var v=function(e,t,r,n){var i=e.length,a=[],o=[],s=[],f=[],u=n-1,c=0,h=0,l=0,d=0;for(c=0;c<i;++c)if(s=[],i<=(l=c+t)&&(l-=i),!o[l]){for(f=[],h=l;0<=h;){o[h]=!0,s[s.length]=h,f.push(e[h]);var p=r[Math.floor(4*h/n)];if(n<4+(d=4*h&u))throw new Error("FAT boundary crossed: "+h+" 4 "+n);if(!e[p])break;h=ce(e[p],d)}a[l]={nodes:s,data:oe([f])}}return a}(m,a,u,f);v[a].name="!Directory",0<n&&o!==x&&(v[o].name="!MiniFAT"),v[u[0]].name="!FAT",v.fat_addrs=u,v.ssz=f;var y=[],g=[],_=[];!function(e,t,r,n,i,a,o,s){for(var f,u=0,c=n.length?2:0,h=t[e].data,l=0,d=0;l<h.length;l+=128){var p=h.slice(l,l+128);pe(p,64),d=p.read_shift(2),f=se(p,0,d-c),n.push(f);var b={name:f,type:p.read_shift(1),color:p.read_shift(1),L:p.read_shift(4,"i"),R:p.read_shift(4,"i"),C:p.read_shift(4,"i"),clsid:p.read_shift(16),state:p.read_shift(4,"i"),start:0,size:0};0!==p.read_shift(2)+p.read_shift(2)+p.read_shift(2)+p.read_shift(2)&&(b.ct=S(p,p.l-8)),0!==p.read_shift(2)+p.read_shift(2)+p.read_shift(2)+p.read_shift(2)&&(b.mt=S(p,p.l-8)),b.start=p.read_shift(4,"i"),b.size=p.read_shift(4,"i"),b.size<0&&b.start<0&&(b.size=b.type=0,b.start=x,b.name=""),5===b.type?(u=b.start,0<i&&u!==x&&(t[u].name="!StreamData")):4096<=b.size?(b.storage="fat",void 0===t[b.start]&&(t[b.start]=k(r,b.start,t.fat_addrs,t.ssz)),t[b.start].name=b.name,b.content=t[b.start].data.slice(0,b.size)):(b.storage="minifat",b.size<0?b.size=0:u!==x&&b.start!==x&&t[u]&&(b.content=A(b,t[u].data,(t[s]||{}).data))),b.content&&pe(b.content,0),a[f]=b,o.push(b)}}(a,v,m,y,n,{},g,o),function(e,t,r){for(var n=0,i=0,a=0,o=0,s=0,f=r.length,u=[],c=[];n<f;++n)u[n]=c[n]=n,t[n]=r[n];for(;s<c.length;++s)n=c[s],i=e[n].L,a=e[n].R,o=e[n].C,u[n]===n&&(-1!==i&&u[i]!==i&&(u[n]=u[i]),-1!==a&&u[a]!==a&&(u[n]=u[a])),-1!==o&&(u[o]=n),-1!==i&&n!=u[n]&&(u[i]=u[n],c.lastIndexOf(i)<s&&c.push(i)),-1!==a&&n!=u[n]&&(u[a]=u[n],c.lastIndexOf(a)<s&&c.push(a));for(n=1;n<f;++n)u[n]===n&&(-1!==a&&u[a]!==a?u[n]=u[a]:-1!==i&&u[i]!==i&&(u[n]=u[i]));for(n=1;n<f;++n)if(0!==e[n].type){if((s=n)!=u[s])for(;s=u[s],t[n]=t[s]+"/"+t[n],0!==s&&-1!==u[s]&&s!=u[s];);u[n]=-1}for(t[0]+="/",n=1;n<f;++n)2!==e[n].type&&(t[n]+="/")}(g,_,y),y.shift();var w={FileIndex:g,FullPaths:_};return t&&t.raw&&(w.raw={header:l,sectors:m}),w}function A(e,t,r){for(var n=e.start,i=e.size,a=[],o=n;r&&0<i&&0<=o;)a.push(t.slice(o*f,o*f+f)),i-=f,o=ce(r,4*o);return 0===a.length?be(0):fe(a).slice(0,e.size)}function k(e,t,r,n,i){var a=[],o=[];i=i||[];var s=n-1,f=0,u=0;for(f=t;0<=f;){i[f]=!0,a[a.length]=f,o.push(e[f]);var c=r[Math.floor(4*f/n)];if(n<4+(u=4*f&s))throw new Error("FAT boundary crossed: "+f+" 4 "+n);if(!e[c])break;f=ce(e[c],u)}return{nodes:a,data:oe([o])}}function S(e,t){return new Date(1e3*(ue(e,t+4)/1e7*Math.pow(2,32)+ue(e,t)/1e7-11644473600))}function b(e,t){var r=t||{},n=r.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=n+"/",e.FileIndex[0]={name:n,type:5}),r.CLSID&&(e.FileIndex[0].clsid=r.CLSID),function(e){var t="Sh33tJ5";if(me.find(e,"/"+t))return;var r=be(4);r[0]=55,r[1]=r[3]=50,r[2]=54,e.FileIndex.push({name:t,type:2,content:r,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),p(e)}(e)}function p(e,t){b(e);for(var r=!1,n=!1,i=e.FullPaths.length-1;0<=i;--i){var a=e.FileIndex[i];switch(a.type){case 0:n?r=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:n=!0,isNaN(a.R*a.L*a.C)&&(r=!0),-1<a.R&&-1<a.L&&a.R==a.L&&(r=!0);break;default:r=!0}}if(r||t){var o=new Date(1987,1,19),s=0,f=[];for(i=0;i<e.FullPaths.length;++i)0!==e.FileIndex[i].type&&f.push([e.FullPaths[i],e.FileIndex[i]]);for(i=0;i<f.length;++i){var u=l(f[i][0]);for(n=!1,s=0;s<f.length;++s)f[s][0]===u&&(n=!0);n||f.push([u,{name:d(u).replace("/",""),type:1,clsid:v,ct:o,mt:o,content:null}])}for(f.sort(function(e,t){return function(e,t){for(var r=e.split("/"),n=t.split("/"),i=0,a=0,o=Math.min(r.length,n.length);i<o;++i){if(a=r[i].length-n[i].length)return a;if(r[i]!=n[i])return r[i]<n[i]?-1:1}return r.length-n.length}(e[0],t[0])}),e.FullPaths=[],e.FileIndex=[],i=0;i<f.length;++i)e.FullPaths[i]=f[i][0],e.FileIndex[i]=f[i][1];for(i=0;i<f.length;++i){var c=e.FileIndex[i],h=e.FullPaths[i];if(c.name=d(h).replace("/",""),c.L=c.R=c.C=-(c.color=1),c.size=c.content?c.content.length:0,c.start=0,c.clsid=c.clsid||v,0===i)c.C=1<f.length?1:-1,c.size=0,c.type=5;else if("/"==h.slice(-1)){for(s=i+1;s<f.length&&l(e.FullPaths[s])!=h;++s);for(c.C=s>=f.length?-1:s,s=i+1;s<f.length&&l(e.FullPaths[s])!=l(h);++s);c.R=s>=f.length?-1:s,c.type=1}else l(e.FullPaths[i+1]||"")==l(h)&&(c.R=i+1),c.type=2}}}function s(e,t){var r=t||{};if(p(e),"zip"==r.fileType)return function(e,t){var r=t||{},n=[],i=[],a=be(1),o=r.compression?8:0,s=0;0;var f=0,u=0,c=0,h=0,l=e.FullPaths[0],d=l,p=e.FileIndex[0],b=[],m=0;for(f=1;f<e.FullPaths.length;++f)if(d=e.FullPaths[f].slice(l.length),(p=e.FileIndex[f]).size&&p.content&&"Sh33tJ5"!=d){var v=c,y=be(d.length);for(u=0;u<d.length;++u)y.write_shift(1,127&d.charCodeAt(u));y=y.slice(0,y.l),b[h]=le.buf(p.content,0);var g=p.content;8==o&&(_=g,g=E?E.deflateRawSync(_):D(_)),(a=be(30)).write_shift(4,67324752),a.write_shift(2,20),a.write_shift(2,s),a.write_shift(2,o),p.mt?w(a,p.mt):a.write_shift(4,0),a.write_shift(-4,8&s?0:b[h]),a.write_shift(4,8&s?0:g.length),a.write_shift(4,8&s?0:p.content.length),a.write_shift(2,y.length),a.write_shift(2,0),c+=a.length,n.push(a),c+=y.length,n.push(y),c+=g.length,n.push(g),8&s&&((a=be(12)).write_shift(-4,b[h]),a.write_shift(4,g.length),a.write_shift(4,p.content.length),c+=a.l,n.push(a)),(a=be(46)).write_shift(4,33639248),a.write_shift(2,0),a.write_shift(2,20),a.write_shift(2,s),a.write_shift(2,o),a.write_shift(4,0),a.write_shift(-4,b[h]),a.write_shift(4,g.length),a.write_shift(4,p.content.length),a.write_shift(2,y.length),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(4,0),a.write_shift(4,v),m+=a.l,i.push(a),m+=y.length,i.push(y),++h}var _;return(a=be(22)).write_shift(4,101010256),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,h),a.write_shift(2,h),a.write_shift(4,m),a.write_shift(4,c),a.write_shift(2,0),fe([fe(n),fe(i),a])}(e,r);var n=function(e){for(var t=0,r=0,n=0;n<e.FileIndex.length;++n){var i=e.FileIndex[n];if(i.content){var a=i.content.length;0<a&&(a<4096?t+=a+63>>6:r+=a+511>>9)}}for(var o=e.FullPaths.length+3>>2,s=t+127>>7,f=(t+7>>3)+r+o+s,u=f+127>>7,c=u<=109?0:Math.ceil((u-109)/127);u<f+u+c+127>>7;)c=++u<=109?0:Math.ceil((u-109)/127);var h=[1,c,u,s,o,r,t,0];return e.FileIndex[0].size=t<<6,h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),i=be(n[7]<<9),a=0,o=0;for(a=0;a<8;++a)i.write_shift(1,m[a]);for(a=0;a<8;++a)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),a=0;a<3;++a)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,n[2]),i.write_shift(4,n[0]+n[1]+n[2]+n[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,n[3]?n[0]+n[1]+n[2]-1:x),i.write_shift(4,n[3]),i.write_shift(-4,n[1]?n[0]-1:x),i.write_shift(4,n[1]),a=0;a<109;++a)i.write_shift(-4,a<n[2]?n[1]+a:-1);if(n[1])for(o=0;o<n[1];++o){for(;a<236+127*o;++a)i.write_shift(-4,a<n[2]?n[1]+a:-1);i.write_shift(-4,o===n[1]-1?x:o+1)}function s(e){for(o+=e;a<o-1;++a)i.write_shift(-4,a+1);e&&(++a,i.write_shift(-4,x))}for(o=a=0,o+=n[1];a<o;++a)i.write_shift(-4,y.DIFSECT);for(o+=n[2];a<o;++a)i.write_shift(-4,y.FATSECT);s(n[3]),s(n[4]);for(var f=0,u=0,c=e.FileIndex[0];f<e.FileIndex.length;++f)(c=e.FileIndex[f]).content&&((u=c.content.length)<4096||(c.start=o,s(u+511>>9)));for(s(n[6]+7>>3);511&i.l;)i.write_shift(-4,y.ENDOFCHAIN);for(o=a=0,f=0;f<e.FileIndex.length;++f)(c=e.FileIndex[f]).content&&(!(u=c.content.length)||4096<=u||(c.start=o,s(u+63>>6)));for(;511&i.l;)i.write_shift(-4,y.ENDOFCHAIN);for(a=0;a<n[4]<<2;++a){var h=e.FullPaths[a];if(h&&0!==h.length){c=e.FileIndex[a],0===a&&(c.start=c.size?c.start-1:x);var l=0===a&&r.root||c.name;if(u=2*(l.length+1),i.write_shift(64,l,"utf16le"),i.write_shift(2,u),i.write_shift(1,c.type),i.write_shift(1,c.color),i.write_shift(-4,c.L),i.write_shift(-4,c.R),i.write_shift(-4,c.C),c.clsid)i.write_shift(16,c.clsid,"hex");else for(f=0;f<4;++f)i.write_shift(4,0);i.write_shift(4,c.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,c.start),i.write_shift(4,c.size),i.write_shift(4,0)}else{for(f=0;f<17;++f)i.write_shift(4,0);for(f=0;f<3;++f)i.write_shift(4,-1);for(f=0;f<12;++f)i.write_shift(4,0)}}for(a=1;a<e.FileIndex.length;++a)if(4096<=(c=e.FileIndex[a]).size){for(i.l=c.start+1<<9,f=0;f<c.size;++f)i.write_shift(1,c.content[f]);for(;511&f;++f)i.write_shift(1,0)}for(a=1;a<e.FileIndex.length;++a)if(0<(c=e.FileIndex[a]).size&&c.size<4096){for(f=0;f<c.size;++f)i.write_shift(1,c.content[f]);for(;63&f;++f)i.write_shift(1,0)}for(;i.l<i.length;)i.write_shift(1,0);return i}e.version="1.1.3";var E,f=64,x=-2,C="d0cf11e0a1b11ae1",m=[208,207,17,224,161,177,26,225],v="00000000000000000000000000000000",y={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:x,FREESECT:-1,HEADER_SIGNATURE:C,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:v,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function n(e){for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}var I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=[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],N=[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];for(var t,r,M="undefined"!=typeof Uint8Array,T=M?new Uint8Array(256):[],u=0;u<256;++u)T[u]=255&((r=139536&((t=u)<<1|t<<11)|558144&(t<<5|t<<15))>>16|r>>8|r);function B(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=5?0:e[1+n]<<8))>>>r&7}function R(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=3?0:e[1+n]<<8))>>>r&31}function O(e,t){var r=7&t,n=t>>>3;return(e[n]|(r<=1?0:e[1+n]<<8))>>>r&127}function F(e,t,r){var n=7&t,i=t>>>3,a=(1<<r)-1,o=e[i]>>>n;return r<8-n?o&a:(o|=e[1+i]<<8-n,r<16-n?o&a:(o|=e[2+i]<<16-n,r<24-n?o&a:(o|=e[3+i]<<24-n)&a))}function P(e,t){var r=e.length,n=t<2*r?2*r:t+5,i=0;if(t<=r)return e;if(ee){var a=re(n);if(e.copy)e.copy(a);else for(;i<e.length;++i)a[i]=e[i];return a}if(M){var o=new Uint8Array(n);if(o.set)o.set(e);else for(;i<e.length;++i)o[i]=e[i];return o}return e.length=n,e}function j(e){for(var t=new Array(e),r=0;r<e;++r)t[r]=0;return t}var c,D=(c=function(e,t){for(var r=0;r<e.length;){var n=Math.min(65535,e.length-r),i=r+n==e.length;for(t.write_shift(1,+i),t.write_shift(2,n),t.write_shift(2,65535&~n);0<n--;)t[t.l++]=e[r++]}return t.l},function(e){var t=be(50+Math.floor(1.1*e.length)),r=c(e,t);return t.slice(0,r)});function z(e,t,r){var n=1,i=0,a=0,o=0,s=0,f=e.length,u=M?new Uint16Array(32):j(32);for(a=0;a<32;++a)u[a]=0;for(a=f;a<r;++a)e[a]=0;f=e.length;var c=M?new Uint16Array(f):j(f);for(a=0;a<f;++a)u[i=e[a]]++,n<i&&(n=i),c[a]=0;for(u[0]=0,a=1;a<=n;++a)u[a+16]=s=s+u[a-1]<<1;for(a=0;a<f;++a)0!=(s=e[a])&&(c[a]=u[s+16]++);var h,l,d,p=0;for(a=0;a<f;++a)if(0!=(p=e[a]))for(h=c[a],l=n,d=void 0,d=T[255&h],s=(l<=8?d>>>8-l:(d=d<<8|T[h>>8&255],l<=16?d>>>16-l:(d=d<<8|T[h>>16&255])>>>24-l))>>n-p,o=(1<<n+4-p)-1;0<=o;--o)t[s|o<<p]=15&p|a<<4;return n}var U=M?new Uint16Array(512):j(512),L=M?new Uint16Array(32):j(32);if(!M){for(var h=0;h<512;++h)U[h]=0;for(h=0;h<32;++h)L[h]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);z(e,L,32);var r=[];for(t=0;t<=143;t++)r.push(8);for(;t<=255;t++)r.push(9);for(;t<=279;t++)r.push(7);for(;t<=287;t++)r.push(8);z(r,U,288)}();var q=M?new Uint16Array(32768):j(32768),V=M?new Uint16Array(32768):j(32768),H=M?new Uint16Array(128):j(128),W=1,K=1;function G(e,t){var r,n,i,a,o=R(e,t)+257,s=R(e,t+=5)+1,f=(i=7&(n=t+=5),4+(((r=e)[a=n>>>3]|(i<=4?0:r[1+a]<<8))>>>i&15));t+=4;for(var u=0,c=M?new Uint8Array(19):j(19),h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,d=M?new Uint8Array(8):j(8),p=M?new Uint8Array(8):j(8),b=c.length,m=0;m<f;++m)c[I[m]]=u=B(e,t),l<u&&(l=u),d[u]++,t+=3;var v=0;for(d[0]=0,m=1;m<=l;++m)p[m]=v=v+d[m-1]<<1;for(m=0;m<b;++m)0!=(v=c[m])&&(h[m]=p[v]++);var y=0;for(m=0;m<b;++m)if(0!=(y=c[m])){v=T[h[m]]>>8-y;for(var g=(1<<7-y)-1;0<=g;--g)H[v|g<<y]=7&y|m<<3}var _,w,A,k,S=[];for(l=1;S.length<o+s;)switch(t+=7&(v=H[O(e,t)]),v>>>=3){case 16:for(u=3+(0,A=7&(w=t),((_=e)[k=w>>>3]|(A<=6?0:_[1+k]<<8))>>>A&3),t+=2,v=S[S.length-1];0<u--;)S.push(v);break;case 17:for(u=3+B(e,t),t+=3;0<u--;)S.push(0);break;case 18:for(u=11+O(e,t),t+=7;0<u--;)S.push(0);break;default:S.push(v),l<v&&(l=v)}var E=S.slice(0,o),x=S.slice(o);for(m=o;m<286;++m)E[m]=0;for(m=s;m<30;++m)x[m]=0;return W=z(E,q,286),K=z(x,V,30),t}function X(e,t){var r=function(e,t){if(3==e[0]&&!(3&e[1]))return[te(t),2];for(var r=0,n=0,i=re(t||1<<18),a=0,o=i.length>>>0,s=0,f=0;0==(1&n);)if(n=B(e,r),r+=3,n>>>1!=0)for(f=n>>>1==1?(s=9,5):(r=G(e,r),s=W,K),!t&&o<a+32767&&(o=(i=P(i,a+32767)).length);;){var u=F(e,r,s),c=n>>>1==1?U[u]:q[u];if(r+=15&c,0==((c>>>=4)>>>8&255))i[a++]=c;else{if(256==c)break;var h=(c-=257)<8?0:c-4>>2;5<h&&(h=0);var l=a+_[c];0<h&&(l+=F(e,r,h),r+=h),u=F(e,r,f),r+=15&(c=n>>>1==1?L[u]:V[u]);var d=(c>>>=4)<4?0:c-2>>1,p=N[c];for(0<d&&(p+=F(e,r,d),r+=d),!t&&o<l&&(o=(i=P(i,l)).length);a<l;)i[a]=i[a-p],++a}}else{7&r&&(r+=8-(7&r));var b=e[r>>>3]|e[1+(r>>>3)]<<8;if(r+=32,!t&&o<a+b&&(o=(i=P(i,a+b)).length),"function"==typeof e.copy)e.copy(i,a,r>>>3,(r>>>3)+b),a+=b,r+=8*b;else for(;0<b--;)i[a++]=e[r>>>3],r+=8}return[t?i:i.slice(0,a),r+7>>>3]}(e.slice(e.l||0),t);return e.l+=r[1],r[0]}function Z(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function Y(e,t){var r=e;pe(r,0);var n={FileIndex:[],FullPaths:[]};b(n,{root:t.root});for(var i=r.length-4;(80!=r[i]||75!=r[i+1]||5!=r[i+2]||6!=r[i+3])&&0<=i;)--i;r.l=i+4,r.l+=4;var a=r.read_shift(2);r.l+=6;var o=r.read_shift(4);for(r.l=o,i=0;i<a;++i){r.l+=20;var s=r.read_shift(4),f=r.read_shift(4),u=r.read_shift(2),c=r.read_shift(2),h=r.read_shift(2);r.l+=8;var l=r.read_shift(4),d=g(r.slice(r.l+u,r.l+u+c));r.l+=u+c+h;var p=r.l;r.l=l+4,Q(r,s,f,n,d),r.l=p}return n}function Q(e,t,r,n,i){e.l+=2;var a=e.read_shift(2),o=e.read_shift(2),s=function(e){var t=65535&e.read_shift(2),r=65535&e.read_shift(2),n=new Date,i=31&r,a=15&(r>>>=5);r>>>=4,n.setMilliseconds(0),n.setFullYear(r+1980),n.setMonth(a-1),n.setDate(i);var o=31&t,s=63&(t>>>=5);return t>>>=6,n.setHours(t),n.setMinutes(s),n.setSeconds(o<<1),n}(e);if(8257&a)throw new Error("Unsupported ZIP encryption");for(var f=e.read_shift(4),u=e.read_shift(4),c=e.read_shift(4),h=e.read_shift(2),l=e.read_shift(2),d="",p=0;p<h;++p)d+=String.fromCharCode(e[e.l++]);if(l){var b=g(e.slice(e.l,e.l+l));(b[21589]||{}).mt&&(s=b[21589].mt),((i||{})[21589]||{}).mt&&(s=i[21589].mt)}e.l+=l;var m=e.slice(e.l,e.l+u);switch(o){case 8:m=function(e,t){if(!E)return X(e,t);var r=new E.InflateRaw,n=r._processChunk(e.slice(e.l),r._finishFlushFlag);return e.l+=r.bytesRead,n}(e,c);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+o)}var v=!1;8&a&&(134695760==(f=e.read_shift(4))&&(f=e.read_shift(4),v=!0),u=e.read_shift(4),c=e.read_shift(4)),u!=t&&Z(v,"Bad compressed size: "+t+" != "+u),c!=r&&Z(v,"Bad uncompressed size: "+r+" != "+c);var y=le.buf(m,0);f>>0!=y>>0&&Z(v,"Bad CRC32 checksum: "+f+" != "+y),J(n,d,m,{unsafe:!0,mt:s})}function J(e,t,r,n){var i=n&&n.unsafe;i||b(e);var a=!i&&me.find(e,t);if(!a){var o=e.FullPaths[0];o=t.slice(0,o.length)==o?t:("/"!=o.slice(-1)&&(o+="/"),(o+t).replace("//","/")),a={name:d(t),type:2},e.FileIndex.push(a),e.FullPaths.push(o),i||me.utils.cfb_gc(e)}return a.content=r,a.size=r?r.length:0,n&&(n.CLSID&&(a.clsid=n.CLSID),n.mt&&(a.mt=n.mt),n.ct&&(a.ct=n.ct)),a}return e.find=function(e,t){var r=e.FullPaths.map(function(e){return e.toUpperCase()}),n=r.map(function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]}),i=!1;47===t.charCodeAt(0)?(i=!0,t=r[0].slice(0,-1)+t):i=-1!==t.indexOf("/");var a=t.toUpperCase(),o=!0===i?r.indexOf(a):n.indexOf(a);if(-1!==o)return e.FileIndex[o];var s=!a.match(ae);for(a=a.replace(ie,""),s&&(a=a.replace(ae,"!")),o=0;o<r.length;++o){if((s?r[o].replace(ae,"!"):r[o]).replace(ie,"")==a)return e.FileIndex[o];if((s?n[o].replace(ae,"!"):n[o]).replace(ie,"")==a)return e.FileIndex[o]}return null},e.read=function(e,t){switch(t&&t.type||"base64"){case"file":return r=e,n=t,a(),o(i.readFileSync(r),n);case"base64":return o(ne($.decode(e)),t);case"binary":return o(ne(e),t)}var r,n;return o(e,t)},e.parse=o,e.write=function(e,t){var r=s(e,t);switch(t&&t.type){case"file":return a(),i.writeFileSync(t.filename,r),r;case"binary":return n(r);case"base64":return $.encode(n(r))}return r},e.writeFile=function(e,t,r){a();var n=s(e,r);i.writeFileSync(t,n)},e.utils={cfb_new:function(e){var t={};return b(t,e),t},cfb_add:J,cfb_del:function(e,t){b(e);var r=me.find(e,t);if(r)for(var n=0;n<e.FileIndex.length;++n)if(e.FileIndex[n]==r)return e.FileIndex.splice(n,1),e.FullPaths.splice(n,1),!0;return!1},cfb_mov:function(e,t,r){b(e);var n=me.find(e,t);if(n)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==n)return e.FileIndex[i].name=d(r),e.FullPaths[i]=r,!0;return!1},cfb_gc:function(e){p(e,!0)},ReadShift:he,CheckField:de,prep_blob:pe,bconcat:fe,use_zlib:function(e){try{var t=new e.InflateRaw;if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");E=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:D,_inflateRaw:X,consts:y},e}();void 0!==ve&&void 0!==m&&"undefined"==typeof DO_NOT_EXPORT_CFB&&(m.exports=me)}).call(this,ve("_process"),ve("buffer").Buffer)},{_process:202,buffer:77,fs:47}],79:[function(e,t,r){var i=e("safe-buffer").Buffer,n=e("stream").Transform,a=e("string_decoder").StringDecoder;function o(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(o,n),o.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=o},{inherits:131,"safe-buffer":225,stream:236,string_decoder:237}],80:[function(e,t,r){(function(e){function t(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===t(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===t(e)},r.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":132}],81:[function(e,s,t){(function(a){var t=e("elliptic"),n=e("bn.js");s.exports=function(e){return new i(e)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function i(e){this.curveType=r[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function o(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new a(e);if(r&&n.length<r){var i=new a(r-n.length);i.fill(0),n=a.concat([i,n])}return t?n.toString(t):n}r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,i.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},i.prototype.computeSecret=function(e,t,r){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),o(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},i.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),o(r,e)},i.prototype.getPrivateKey=function(e){return o(this.keys.getPrivate(),e)},i.prototype.setPublicKey=function(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this.keys._importPublic(e),this},i.prototype.setPrivateKey=function(e,t){t=t||"utf8",a.isBuffer(e)||(e=new a(e,t));var r=new n(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,e("buffer").Buffer)},{"bn.js":45,buffer:77,elliptic:97}],82:[function(e,t,r){"use strict";var n=e("inherits"),i=e("md5.js"),a=e("ripemd160"),o=e("sha.js"),s=e("cipher-base");function f(e){s.call(this,"digest"),this._hash=e}n(f,s),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new f(o(e))}},{"cipher-base":79,inherits:131,"md5.js":171,ripemd160:224,"sha.js":229}],83:[function(e,t,r){var n=e("md5.js");t.exports=function(e){return(new n).update(e).digest()}},{"md5.js":171}],84:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./legacy"),o=e("cipher-base"),s=e("safe-buffer").Buffer,a=e("create-hash/md5"),f=e("ripemd160"),u=e("sha.js"),c=s.alloc(128);function h(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,(this._key=t).length>r)?t=("rmd160"===e?new f:u(e)).update(t).digest():t.length<r&&(t=s.concat([t,c],r));for(var n=this._ipad=s.allocUnsafe(r),i=this._opad=s.allocUnsafe(r),a=0;a<r;a++)n[a]=54^t[a],i[a]=92^t[a];this._hash="rmd160"===e?new f:u(e),this._hash.update(n)}n(h,o),h.prototype._update=function(e){this._hash.update(e)},h.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new f:u(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new h("rmd160",t):"md5"===e?new i(a,t):new h(e,t)}},{"./legacy":85,"cipher-base":79,"create-hash/md5":83,inherits:131,ripemd160:224,"safe-buffer":225,"sha.js":229}],85:[function(e,t,r){"use strict";var n=e("inherits"),a=e("safe-buffer").Buffer,o=e("cipher-base"),s=a.alloc(128);function i(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t)),this._alg=e,64<(this._key=t).length?t=e(t):t.length<64&&(t=a.concat([t,s],64));for(var r=this._ipad=a.allocUnsafe(64),n=this._opad=a.allocUnsafe(64),i=0;i<64;i++)r[i]=54^t[i],n[i]=92^t[i];this._hash=[r]}n(i,o),i.prototype._update=function(e){this._hash.push(e)},i.prototype._final=function(){var e=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,e]))},t.exports=i},{"cipher-base":79,inherits:131,"safe-buffer":225}],86:[function(e,t,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var n=e("browserify-sign/algos"),i=Object.keys(n),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);r.getHashes=function(){return a};var o=e("pbkdf2");r.pbkdf2=o.pbkdf2,r.pbkdf2Sync=o.pbkdf2Sync;var s=e("browserify-cipher");r.Cipher=s.Cipher,r.createCipher=s.createCipher,r.Cipheriv=s.Cipheriv,r.createCipheriv=s.createCipheriv,r.Decipher=s.Decipher,r.createDecipher=s.createDecipher,r.Decipheriv=s.Decipheriv,r.createDecipheriv=s.createDecipheriv,r.getCiphers=s.getCiphers,r.listCiphers=s.listCiphers;var f=e("diffie-hellman");r.DiffieHellmanGroup=f.DiffieHellmanGroup,r.createDiffieHellmanGroup=f.createDiffieHellmanGroup,r.getDiffieHellman=f.getDiffieHellman,r.createDiffieHellman=f.createDiffieHellman,r.DiffieHellman=f.DiffieHellman;var u=e("browserify-sign");r.createSign=u.createSign,r.Sign=u.Sign,r.createVerify=u.createVerify,r.Verify=u.Verify,r.createECDH=e("create-ecdh");var c=e("public-encrypt");r.publicEncrypt=c.publicEncrypt,r.privateEncrypt=c.privateEncrypt,r.publicDecrypt=c.publicDecrypt,r.privateDecrypt=c.privateDecrypt;var h=e("randomfill");r.randomFill=h.randomFill,r.randomFillSync=h.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":65,"browserify-sign":72,"browserify-sign/algos":69,"create-ecdh":81,"create-hash":82,"create-hmac":84,"diffie-hellman":93,pbkdf2:196,"public-encrypt":203,randombytes:209,randomfill:210}],87:[function(e,t,r){"use strict";r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":88,"./des/cipher":89,"./des/des":90,"./des/ede":91,"./des/utils":92}],88:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),a=e("inherits"),o={};function i(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}r.instantiate=function(t){function r(e){t.call(this,e),this._cbcInit()}a(r,t);for(var e=Object.keys(o),n=0;n<e.length;n++){var i=e[n];r.prototype[i]=o[i]}return r.create=function(e){return new r(e)},r},o._cbcInit=function(){var e=new i(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,r,n);for(s=0;s<this.blockSize;s++)o[s]=r[n+s]}else{a._update.call(this,e,t,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},{inherits:131,"minimalistic-assert":173}],89:[function(e,t,r){"use strict";var n=e("minimalistic-assert");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}(t.exports=i).prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);0<n;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":173}],90:[function(e,t,r){"use strict";var o=e("minimalistic-assert"),n=e("inherits"),l=e("./utils"),i=e("./cipher");function a(){this.tmp=new Array(2),this.keys=null}function s(e){i.call(this,e);var t=new a;this._desState=t,this.deriveKeys(t,e.key)}n(s,i),(t.exports=s).create=function(e){return new s(e)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(e,t){e.keys=new Array(32),o.equal(t.length,this.blockSize,"Invalid key length");var r=l.readUInt32BE(t,0),n=l.readUInt32BE(t,4);l.pc1(r,n,e.tmp,0),r=e.tmp[0],n=e.tmp[1];for(var i=0;i<e.keys.length;i+=2){var a=f[i>>>1];r=l.r28shl(r,a),n=l.r28shl(n,a),l.pc2(r,n,e.keys,i)}},s.prototype._update=function(e,t,r,n){var i=this._desState,a=l.readUInt32BE(e,t),o=l.readUInt32BE(e,t+4);l.ip(a,o,i.tmp,0),a=i.tmp[0],o=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,o,i.tmp,0):this._decrypt(i,a,o,i.tmp,0),a=i.tmp[0],o=i.tmp[1],l.writeUInt32BE(r,a,n),l.writeUInt32BE(r,o,n+4)},s.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},s.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)o.equal(e[r],t);return e.slice(0,e.length-t)},s.prototype._encrypt=function(e,t,r,n,i){for(var a=t,o=r,s=0;s<e.keys.length;s+=2){var f=e.keys[s],u=e.keys[s+1];l.expand(o,e.tmp,0),f^=e.tmp[0],u^=e.tmp[1];var c=l.substitute(f,u),h=o;o=(a^l.permute(c))>>>0,a=h}l.rip(o,a,n,i)},s.prototype._decrypt=function(e,t,r,n,i){for(var a=r,o=t,s=e.keys.length-2;0<=s;s-=2){var f=e.keys[s],u=e.keys[s+1];l.expand(a,e.tmp,0),f^=e.tmp[0],u^=e.tmp[1];var c=l.substitute(f,u),h=a;a=(o^l.permute(c))>>>0,o=h}l.rip(a,o,n,i)}},{"./cipher":89,"./utils":92,inherits:131,"minimalistic-assert":173}],91:[function(e,t,r){"use strict";var a=e("minimalistic-assert"),n=e("inherits"),i=e("./cipher"),o=e("./des");function s(e,t){a.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:r}),o.create({type:"decrypt",key:n}),o.create({type:"encrypt",key:i})]:[o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:r})]}function f(e){i.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}n(f,i),(t.exports=f).create=function(e){return new f(e)},f.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},f.prototype._pad=o.prototype._pad,f.prototype._unpad=o.prototype._unpad},{"./cipher":89,"./des":90,inherits:131,"minimalistic-assert":173}],92:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var i=0,a=0,o=6;0<=o;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;0<=o;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}r[n+0]=i>>>0,r[n+1]=a>>>0},r.rip=function(e,t,r,n){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;0<=s;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;0<=s;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;r[n+0]=i>>>0,r[n+1]=a>>>0},r.pc1=function(e,t,r,n){for(var i=0,a=0,o=7;5<=o;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;r[n+0]=i>>>0,r[n+1]=a>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var f=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,n){for(var i=0,a=0,o=f.length>>>1,s=0;s<o;s++)i<<=1,i|=e>>>f[s]&1;for(s=o;s<f.length;s++)a<<=1,a|=t>>>f[s]&1;r[n+0]=i>>>0,r[n+1]=a>>>0},r.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var a=23;15<=a;a-=4)n<<=6,n|=e>>>a&63;for(a=11;3<=a;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r<n.length;r++)t<<=1,t|=e>>>n[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],a=0;a<t;a+=r)i.push(n.slice(a,a+r));return i.join(" ")}},{}],93:[function(e,t,r){(function(a){var o=e("./lib/generatePrime"),n=e("./lib/primes.json"),s=e("./lib/dh");var f={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var t=new a(n[e].prime,"hex"),r=new a(n[e].gen,"hex");return new s(t,r)},r.createDiffieHellman=r.DiffieHellman=function e(t,r,n,i){return a.isBuffer(r)||void 0===f[r]?e(t,"binary",r,n):(r=r||"binary",i=i||"binary",n=n||new a([2]),a.isBuffer(n)||(n=new a(n,i)),"number"==typeof t?new s(o(t,n),n,!0):(a.isBuffer(t)||(t=new a(t,r)),new s(t,n,!0)))}}).call(this,e("buffer").Buffer)},{"./lib/dh":94,"./lib/generatePrime":95,"./lib/primes.json":96,buffer:77}],94:[function(b,m,e){(function(a){var o=b("bn.js"),s=new(b("miller-rabin")),f=new o(24),u=new o(11),c=new o(10),h=new o(3),l=new o(7),d=b("./generatePrime"),e=b("randombytes");function n(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this._pub=new o(e),this}function i(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this._priv=new o(e),this}m.exports=t;var p={};function t(e,t,r){this.setGenerator(t),this.__prime=new o(e),this._prime=o.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=n,this.setPrivateKey=i):this._primeCode=8}function r(e,t){var r=new a(e.toArray());return t?r.toString(t):r}Object.defineProperty(t.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var i,a=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!s.test(e))return a+=1,a+="02"===r||"05"===r?8:4,p[n]=a;switch(s.test(e.shrn(1))||(a+=2),r){case"02":e.mod(f).cmp(u)&&(a+=8);break;case"05":(i=e.mod(c)).cmp(h)&&i.cmp(l)&&(a+=8);break;default:a+=4}return p[n]=a}(this.__prime,this.__gen)),this._primeCode}}),t.prototype.generateKeys=function(){return this._priv||(this._priv=new o(e(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},t.prototype.computeSecret=function(e){var t=(e=(e=new o(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new a(t.toArray()),n=this.getPrime();if(r.length<n.length){var i=new a(n.length-r.length);i.fill(0),r=a.concat([i,r])}return r},t.prototype.getPublicKey=function(e){return r(this._pub,e)},t.prototype.getPrivateKey=function(e){return r(this._priv,e)},t.prototype.getPrime=function(e){return r(this.__prime,e)},t.prototype.getGenerator=function(e){return r(this._gen,e)},t.prototype.setGenerator=function(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this.__gen=e,this._gen=new o(e),this}}).call(this,b("buffer").Buffer)},{"./generatePrime":95,"bn.js":45,buffer:77,"miller-rabin":172,randombytes:209}],95:[function(e,t,r){var i=e("randombytes");(t.exports=n).simpleSieve=m,n.fermatTest=v;var a=e("bn.js"),o=new a(24),s=new(e("miller-rabin")),f=new a(1),u=new a(2),c=new a(5),h=(new a(16),new a(8),new a(10)),l=new a(3),d=(new a(7),new a(11)),p=new a(4),b=(new a(12),null);function m(e){for(var t=function(){if(null!==b)return b;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return b=e}(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function v(e){var t=a.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function n(e,t){if(e<16)return new a(2===t||5===t?[140,123]:[140,39]);var r,n;for(t=new a(t);;){for(r=new a(i(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(f),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(c))for(;r.mod(h).cmp(l);)r.iadd(p)}else for(;r.mod(o).cmp(d);)r.iadd(p);if(m(n=r.shrn(1))&&m(r)&&v(n)&&v(r)&&s.test(n)&&s.test(r))return r}}},{"bn.js":45,"miller-rabin":172,randombytes:209}],96:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],97:[function(e,t,r){"use strict";var n=r;n.version=e("../package.json").version,n.utils=e("./elliptic/utils"),n.rand=e("brorand"),n.curve=e("./elliptic/curve"),n.curves=e("./elliptic/curves"),n.ec=e("./elliptic/ec"),n.eddsa=e("./elliptic/eddsa")},{"../package.json":112,"./elliptic/curve":100,"./elliptic/curves":103,"./elliptic/ec":104,"./elliptic/eddsa":107,"./elliptic/utils":111,brorand:46}],98:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../utils"),E=i.getNAF,x=i.getJSF,h=i.assert;function a(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||0<r.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function o(e,t){this.curve=e,this.type=t,this.precomputed=null}(t.exports=a).prototype.point=function(){throw new Error("Not implemented")},a.prototype.validate=function(){throw new Error("Not implemented")},a.prototype._fixedNafMul=function(e,t){h(e.precomputed);var r=e._getDoubles(),n=E(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var a=[],o=0;o<n.length;o+=r.step){var s=0;for(t=o+r.step-1;o<=t;t--)s=(s<<1)+n[t];a.push(s)}for(var f=this.jpoint(null,null,null),u=this.jpoint(null,null,null),c=i;0<c;c--){for(o=0;o<a.length;o++){(s=a[o])===c?u=u.mixedAdd(r.points[o]):s===-c&&(u=u.mixedAdd(r.points[o].neg()))}f=f.add(u)}return f.toP()},a.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=E(t,r,this._bitLength),o=this.jpoint(null,null,null),s=a.length-1;0<=s;s--){for(t=0;0<=s&&0===a[s];s--)t++;if(0<=s&&t++,o=o.dblp(t),s<0)break;var f=a[s];h(0!==f),o="affine"===e.type?0<f?o.mixedAdd(i[f-1>>1]):o.mixedAdd(i[-f-1>>1].neg()):0<f?o.add(i[f-1>>1]):o.add(i[-f-1>>1].neg())}return"affine"===e.type?o.toP():o},a.prototype._wnafMulAdd=function(e,t,r,n,i){for(var a=this._wnafT1,o=this._wnafT2,s=this._wnafT3,f=0,u=0;u<n;u++){var c=(k=t[u])._getNAFPoints(e);a[u]=c.wnd,o[u]=c.points}for(u=n-1;1<=u;u-=2){var h=u-1,l=u;if(1===a[h]&&1===a[l]){var d=[t[h],null,null,t[l]];0===t[h].y.cmp(t[l].y)?(d[1]=t[h].add(t[l]),d[2]=t[h].toJ().mixedAdd(t[l].neg())):0===t[h].y.cmp(t[l].y.redNeg())?(d[1]=t[h].toJ().mixedAdd(t[l]),d[2]=t[h].add(t[l].neg())):(d[1]=t[h].toJ().mixedAdd(t[l]),d[2]=t[h].toJ().mixedAdd(t[l].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],b=x(r[h],r[l]);f=Math.max(b[0].length,f),s[h]=new Array(f),s[l]=new Array(f);for(var m=0;m<f;m++){var v=0|b[0][m],y=0|b[1][m];s[h][m]=p[3*(1+v)+(1+y)],s[l][m]=0,o[h]=d}}else s[h]=E(r[h],a[h],this._bitLength),s[l]=E(r[l],a[l],this._bitLength),f=Math.max(s[h].length,f),f=Math.max(s[l].length,f)}var g=this.jpoint(null,null,null),_=this._wnafT4;for(u=f;0<=u;u--){for(var w=0;0<=u;){var A=!0;for(m=0;m<n;m++)_[m]=0|s[m][u],0!==_[m]&&(A=!1);if(!A)break;w++,u--}if(0<=u&&w++,g=g.dblp(w),u<0)break;for(m=0;m<n;m++){var k,S=_[m];0!==S&&(0<S?k=o[m][S-1>>1]:S<0&&(k=o[m][-S-1>>1].neg()),g="affine"===k.type?g.mixedAdd(k):g.add(k))}}for(u=0;u<n;u++)o[u]=null;return i?g:g.toP()},(a.BasePoint=o).prototype.eq=function(){throw new Error("Not implemented")},o.prototype.validate=function(){return this.curve.validate(this)},a.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?h(e[e.length-1]%2==0):7===e[0]&&h(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},o.prototype.encodeCompressed=function(e){return this.encode(e,!0)},o.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},o.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},o.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},o.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},o.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)n=n.dbl();r.push(n)}return{step:e,points:r}},o.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1==r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},o.prototype._getBeta=function(){return null},o.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../utils":111,"bn.js":45}],99:[function(e,t,r){"use strict";var n=e("../utils"),f=e("bn.js"),i=e("inherits"),a=e("./base"),o=n.assert;function s(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new f(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new f(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new f(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,r,n,i){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new f(t,16),this.y=new f(r,16),this.z=n?new f(n,16):this.curve.one,this.t=i&&new f(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(s,a),(t.exports=s).prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},s.prototype.pointFromX=function(e,t){(e=new f(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=o.fromRed().isOdd();return(t&&!s||!t&&s)&&(o=o.redNeg()),this.point(e,o)},s.prototype.pointFromY=function(e,t){(e=new f(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=a.redSqrt();if(0!==o.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},i(u,a.BasePoint),s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},s.prototype.point=function(e,t,r,n){return new u(this,e,t,r,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=n.redAdd(t),o=a.redSub(r),s=n.redSub(t),f=i.redMul(o),u=a.redMul(s),c=i.redMul(s),h=o.redMul(a);return this.curve.point(f,u,h,c)},u.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=(u=this.curve._mulA(i)).redAdd(a);if(this.zOne)e=n.redSub(i).redSub(a).redMul(o.redSub(this.curve.two)),t=o.redMul(u.redSub(a)),r=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),f=o.redSub(s).redISub(s);e=n.redSub(i).redISub(a).redMul(f),t=o.redMul(u.redSub(a)),r=o.redMul(f)}}else{var u=i.redAdd(a);s=this.curve._mulC(this.z).redSqr(),f=u.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(u)).redMul(f),t=this.curve._mulC(u).redMul(i.redISub(a)),r=u.redMul(f)}return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),o=i.redSub(n),s=i.redAdd(n),f=r.redAdd(t),u=a.redMul(o),c=s.redMul(f),h=a.redMul(f),l=o.redMul(s);return this.curve.point(u,c,l,h)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),f=i.redSub(s),u=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),h=n.redMul(f).redMul(c);return r=this.curve.twisted?(t=n.redMul(u).redMul(o.redSub(this.curve._mulA(a))),f.redMul(u)):(t=n.redMul(u).redMul(o.redSub(a)),this.curve._mulC(f).redMul(u)),this.curve.point(h,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},{"../utils":111,"./base":98,"bn.js":45,inherits:131}],100:[function(e,t,r){"use strict";var n=r;n.base=e("./base"),n.short=e("./short"),n.mont=e("./mont"),n.edwards=e("./edwards")},{"./base":98,"./edwards":99,"./mont":101,"./short":102}],101:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("inherits"),a=e("./base"),o=e("../utils");function s(e){a.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),(t.exports=s).prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(f,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new f(this,e,t)},s.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),o=i.redMul(n),s=t.z.redMul(a.redAdd(o).redSqr()),f=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;0<=a;a--)0===i[a]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":111,"./base":98,"bn.js":45,inherits:131}],102:[function(e,t,r){"use strict";var n=e("../utils"),w=e("bn.js"),i=e("inherits"),a=e("./base"),o=n.assert;function s(e){a.call(this,"short",e),this.a=new w(e.a,16).toRed(this.red),this.b=new w(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new w(t,16),this.y=new w(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new w(0)):(this.x=new w(t,16),this.y=new w(r,16),this.z=new w(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(s,a),(t.exports=s).prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new w(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new w(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],o(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new w(e.a,16),b:new w(e.b,16)}}):this._getEndoBasis(r)}}},s.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:w.mont(e),r=new w(2).toRed(t).redInvm(),n=r.redNeg(),i=new w(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},s.prototype._getEndoBasis=function(e){for(var t,r,n,i,a,o,s,f,u,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,l=this.n.clone(),d=new w(1),p=new w(0),b=new w(0),m=new w(1),v=0;0!==h.cmpn(0);){var y=l.div(h);f=l.sub(y.mul(h)),u=b.sub(y.mul(d));var g=m.sub(y.mul(p));if(!n&&f.cmp(c)<0)t=s.neg(),r=d,n=f.neg(),i=u;else if(n&&2==++v)break;l=h,h=s=f,b=d,d=u,m=p,p=g}a=f.neg(),o=u;var _=n.sqr().add(i.sqr());return 0<=a.sqr().add(o.sqr()).cmp(_)&&(a=t,o=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),o=o.neg()),[{a:n,b:i},{a:a,b:o}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),s=a.mul(n.a),f=i.mul(r.b),u=a.mul(n.b);return{k1:e.sub(o).sub(s),k2:f.add(u).neg()}},s.prototype.pointFromX=function(e,t){(e=new w(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],f=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),f=f.neg(!0)),n[2*a]=s,n[2*a+1]=f,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*a,r),c=0;c<2*a;c++)n[c]=null,i[c]=null;return u},i(f,a.BasePoint),s.prototype.point=function(e,t,r){return new f(this,e,t,r)},s.prototype.pointFromJSON=function(e,t){return f.fromJSON(this,e,t)},f.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};(e.beta=t).precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var a=e[2];return n.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[n].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[n].concat(a.naf.points.map(i))}},n},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},f.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return e=new w(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},f.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},f.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},f.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(u,a.BasePoint),s.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),f=a.redSub(o);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),h=n.redMul(u),l=f.redSqr().redIAdd(c).redISub(h).redISub(h),d=f.redMul(h.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,d,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=r.redSub(n),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),u=f.redMul(o),c=r.redMul(f),h=s.redSqr().redIAdd(u).redISub(c).redISub(c),l=s.redMul(c.redISub(h)).redISub(i.redMul(u)),d=this.z.redMul(o);return this.curve.jpoint(h,l,d)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,f=s.redSqr().redSqr(),u=o.redAdd(o);for(r=0;r<e;r++){var c=a.redSqr(),h=u.redSqr(),l=h.redSqr(),d=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(f)),p=a.redMul(h),b=d.redSqr().redISub(p.redAdd(p)),m=p.redISub(b),v=d.redMul(m);v=v.redIAdd(v).redISub(l);var y=u.redMul(s);r+1<e&&(f=f.redMul(l)),a=b,s=y,u=v}return this.curve.jpoint(a,u.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n),f=s.redSqr().redISub(o).redISub(o),u=a.redIAdd(a);u=(u=u.redIAdd(u)).redIAdd(u),e=f,t=s.redMul(o.redISub(f)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),h=this.y.redSqr(),l=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(c).redISub(l);d=d.redIAdd(d);var p=c.redAdd(c).redIAdd(c),b=p.redSqr(),m=l.redIAdd(l);m=(m=m.redIAdd(m)).redIAdd(m),e=b.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),f=s.redSqr().redISub(o).redISub(o);e=f;var u=a.redIAdd(a);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(o.redISub(f)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),h=this.y.redSqr(),l=this.x.redMul(h),d=this.x.redSub(c).redMul(this.x.redAdd(c));d=d.redAdd(d).redIAdd(d);var p=l.redIAdd(l),b=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(c);var m=h.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=d.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),a=t.redSqr(),o=r.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),f=t.redAdd(t),u=(f=f.redIAdd(f)).redMul(o),c=s.redSqr().redISub(u.redAdd(u)),h=u.redISub(c),l=o.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=s.redMul(h).redISub(l),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,d,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),f=n.redIAdd(n);f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var u=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(f),c=t.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var h=this.x.redMul(s).redISub(c);h=(h=h.redIAdd(h)).redIAdd(h);var l=this.y.redMul(u.redMul(f.redISub(u)).redISub(o.redMul(s)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var d=this.z.redAdd(o).redSqr().redISub(r).redISub(s);return this.curve.jpoint(h,l,d)},u.prototype.mul=function(e,t){return e=new w(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),0<=n.cmp(this.curve.p))return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":111,"./base":98,"bn.js":45,inherits:131}],103:[function(e,t,r){"use strict";var n,i=r,a=e("hash.js"),o=e("./curve"),s=e("./utils").assert;function f(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(t,r){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var e=new f(r);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:e}),e}})}i.PresetCurve=f,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("./precomputed/secp256k1")}catch(e){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"./curve":100,"./precomputed/secp256k1":110,"./utils":111,"hash.js":116}],104:[function(e,t,r){"use strict";var m=e("bn.js"),v=e("hmac-drbg"),n=e("../utils"),i=e("../curves"),a=e("brorand"),d=n.assert,o=e("./key"),y=e("./signature");function s(e){if(!(this instanceof s))return new s(e);"string"==typeof e&&(d(i.hasOwnProperty(e),"Unknown curve "+e),e=i[e]),e instanceof i.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}(t.exports=s).prototype.keyPair=function(e){return new o(this,e)},s.prototype.keyFromPrivate=function(e,t){return o.fromPrivate(this,e,t)},s.prototype.keyFromPublic=function(e,t){return o.fromPublic(this,e,t)},s.prototype.genKeyPair=function(e){e=e||{};for(var t=new v({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new m(2));;){var i=new m(t.generate(r));if(!(0<i.cmp(n)))return i.iaddn(1),this.keyFromPrivate(i)}},s.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return 0<r&&(e=e.ushrn(r)),!t&&0<=e.cmp(this.n)?e.sub(this.n):e},s.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n=n||{},t=this.keyFromPrivate(t,r),e=this._truncateToN(new m(e,16));for(var i=this.n.byteLength(),a=t.getPrivate().toArray("be",i),o=e.toArray("be",i),s=new v({hash:this.hash,entropy:a,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),f=this.n.sub(new m(1)),u=0;;u++){var c=n.k?n.k(u):new m(s.generate(this.n.byteLength()));if(!((c=this._truncateToN(c,!0)).cmpn(1)<=0||0<=c.cmp(f))){var h=this.g.mul(c);if(!h.isInfinity()){var l=h.getX(),d=l.umod(this.n);if(0!==d.cmpn(0)){var p=c.invm(this.n).mul(d.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var b=(h.getY().isOdd()?1:0)|(0!==l.cmp(d)?2:0);return n.canonical&&0<p.cmp(this.nh)&&(p=this.n.sub(p),b^=1),new y({r:d,s:p,recoveryParam:b})}}}}}},s.prototype.verify=function(e,t,r,n){e=this._truncateToN(new m(e,16)),r=this.keyFromPublic(r,n);var i=(t=new y(t,"hex")).r,a=t.s;if(i.cmpn(1)<0||0<=i.cmp(this.n))return!1;if(a.cmpn(1)<0||0<=a.cmp(this.n))return!1;var o,s=a.invm(this.n),f=s.mul(e).umod(this.n),u=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(f,r.getPublic(),u)).isInfinity()&&o.eqXToP(i):!(o=this.g.mulAdd(f,r.getPublic(),u)).isInfinity()&&0===o.getX().umod(this.n).cmp(i)},s.prototype.recoverPubKey=function(e,t,r,n){d((3&r)===r,"The recovery param is more than two bits"),t=new y(t,n);var i=this.n,a=new m(e),o=t.r,s=t.s,f=1&r,u=r>>1;if(0<=o.cmp(this.curve.p.umod(this.curve.n))&&u)throw new Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),f):this.curve.pointFromX(o,f);var c=t.r.invm(i),h=i.sub(a).mul(c).umod(i),l=s.mul(c).umod(i);return this.g.mulAdd(h,o,l)},s.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new y(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":103,"../utils":111,"./key":105,"./signature":106,"bn.js":45,brorand:46,"hmac-drbg":128}],105:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../utils").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}(t.exports=a).fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":111,"bn.js":45}],106:[function(e,t,r){"use strict";var s=e("bn.js"),f=e("../utils"),n=f.assert;function i(e,t){if(e instanceof i)return e;this._importDER(e,t)||(n(e.r&&e.s,"Signature without r or s"),this.r=new s(e.r,16),this.s=new s(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function u(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,a=0,o=t.place;a<n;a++,o++)i<<=8,i|=e[o];return t.place=o,i}function o(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function h(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}(t.exports=i).prototype._importDER=function(e,t){e=f.toArray(e,t);var r=new u;if(48!==e[r.place++])return!1;if(c(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=c(e,r),i=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var a=c(e,r);if(e.length!==a+r.place)return!1;var o=e.slice(r.place,a+r.place);return 0===i[0]&&128&i[1]&&(i=i.slice(1)),0===o[0]&&128&o[1]&&(o=o.slice(1)),this.r=new s(i),this.s=new s(o),!(this.recoveryParam=null)},i.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=o(t),r=o(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];h(n,t.length),(n=n.concat(t)).push(2),h(n,r.length);var i=n.concat(r),a=[48];return h(a,i.length),a=a.concat(i),f.encode(a,e)}},{"../utils":111,"bn.js":45}],107:[function(e,t,r){"use strict";var n=e("hash.js"),i=e("../curves"),a=e("../utils"),o=a.assert,f=a.parseBytes,s=e("./key"),u=e("./signature");function c(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}(t.exports=c).prototype.sign=function(e,t){e=f(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),a=this.encodePoint(i),o=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),s=n.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:a})},c.prototype.verify=function(e,t,r){e=f(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return s.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return s.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},c.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=a.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return a.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":103,"../utils":111,"./key":108,"./signature":109,"hash.js":116}],108:[function(e,t,r){"use strict";var n=e("../utils"),i=n.assert,a=n.parseBytes,o=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),o(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},t.exports=s},{"../utils":111}],109:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../utils"),a=i.assert,o=i.cachedProperty,s=i.parseBytes;function f(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(f,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(f,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(f,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(f,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),f.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},f.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=f},{"../utils":111,"bn.js":45}],110:[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],111:[function(e,t,r){"use strict";var n=r,i=e("bn.js"),a=e("minimalistic-assert"),o=e("minimalistic-crypto-utils");n.assert=a,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<n.length;o++){var s,f=a.andln(i-1);a.isOdd()?(s=(i>>1)-1<f?(i>>1)-f:f,a.isubn(s)):s=0,n[o]=s,a.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;0<e.cmpn(-n)||0<t.cmpn(-i);){var a,o,s,f=e.andln(3)+n&3,u=t.andln(3)+i&3;if(3===f&&(f=-1),3===u&&(u=-1),0==(1&f))a=0;else a=3!==(s=e.andln(7)+n&7)&&5!==s||2!==u?f:-f;if(r[0].push(a),0==(1&u))o=0;else o=3!==(s=t.andln(7)+i&7)&&5!==s||2!==f?u:-u;r[1].push(o),2*n===a+1&&(n=1-n),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":45,"minimalistic-assert":173,"minimalistic-crypto-utils":174}],112:[function(e,t,r){t.exports={_from:"elliptic@^6.0.0",_id:"elliptic@6.5.2",_inBundle:!1,_integrity:"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.0.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz",_shasum:"05c5678d7173c049d8ca433552224a495d0e3762",_spec:"elliptic@^6.0.0",_where:"/code/personal/xlsx-populate-orig/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.5.2"}},{}],113:[function(e,t,r){var f=Object.create||function(e){function t(){}return t.prototype=e,new t},o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},a=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function n(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=f(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((t.exports=n).EventEmitter=n).prototype._events=void 0,n.prototype._maxListeners=void 0;var i,s=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),i=0===u.x}catch(e){i=!1}function c(e){return void 0===e._maxListeners?n.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var i,a,o;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]):(a=e._events=f(null),e._eventsCount=0),o){if("function"==typeof o?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),!o.warned&&(i=c(e))&&0<i&&o.length>i){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else o=a[t]=r,++e._eventsCount;return e}function l(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=a.call(l,n);return i.listener=r,n.wrapFn=i}function p(e,t,r){var n=e._events;if(!n)return[];var i=n[t];return i?"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):m(i,i.length):[]}function b(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}i?Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');s=e}}):n.defaultMaxListeners=s,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},n.prototype.getMaxListeners=function(){return c(this)},n.prototype.emit=function(e,t,r,n){var i,a,o,s,f,u,c="error"===e;if(u=this._events)c=c&&null==u.error;else if(!c)return!1;if(c){if(1<arguments.length&&(i=t),i instanceof Error)throw i;var h=new Error('Unhandled "error" event. ('+i+")");throw h.context=i,h}if(!(a=u[e]))return!1;var l="function"==typeof a;switch(o=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,i=m(e,n),a=0;a<n;++a)i[a].call(r)}(a,l,this);break;case 2:!function(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,a=m(e,i),o=0;o<i;++o)a[o].call(r,n)}(a,l,this,t);break;case 3:!function(e,t,r,n,i){if(t)e.call(r,n,i);else for(var a=e.length,o=m(e,a),s=0;s<a;++s)o[s].call(r,n,i)}(a,l,this,t,r);break;case 4:!function(e,t,r,n,i,a){if(t)e.call(r,n,i,a);else for(var o=e.length,s=m(e,o),f=0;f<o;++f)s[f].call(r,n,i,a)}(a,l,this,t,r,n);break;default:for(s=new Array(o-1),f=1;f<o;f++)s[f-1]=arguments[f];!function(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,a=m(e,i),o=0;o<i;++o)a[o].apply(r,n)}(a,l,this,s)}return!0},n.prototype.on=n.prototype.addListener=function(e,t){return h(this,e,t,!1)},n.prototype.prependListener=function(e,t){return h(this,e,t,!0)},n.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,d(this,e,t)),this},n.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,d(this,e,t)),this},n.prototype.removeListener=function(e,t){var r,n,i,a,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=f(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,a=r.length-1;0<=a;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),n.removeListener&&this.emit("removeListener",e,o||t)}return this},n.prototype.removeAllListeners=function(e){var t,r,n;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=f(null),this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=f(null):delete r[e]),this;if(0===arguments.length){var i,a=o(r);for(n=0;n<a.length;++n)"removeListener"!==(i=a[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=f(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)for(n=t.length-1;0<=n;n--)this.removeListener(e,t[n]);return this},n.prototype.listeners=function(e){return p(this,e,!0)},n.prototype.rawListeners=function(e){return p(this,e,!1)},n.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},n.prototype.listenerCount=b,n.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],114:[function(e,t,r){var d=e("safe-buffer").Buffer,p=e("md5.js");t.exports=function(e,t,r,n){if(d.isBuffer(e)||(e=d.from(e,"binary")),t&&(d.isBuffer(t)||(t=d.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=r/8,a=d.alloc(i),o=d.alloc(n||0),s=d.alloc(0);0<i||0<n;){var f=new p;f.update(s),f.update(e),t&&f.update(t),s=f.digest();var u=0;if(0<i){var c=a.length-i;u=Math.min(i,s.length),s.copy(a,c,0,u),i-=u}if(u<s.length&&0<n){var h=o.length-n,l=Math.min(n,s.length-u);s.copy(o,h,u,u+l),n-=l}}return s.fill(0),{key:a,iv:o}}},{"md5.js":171,"safe-buffer":225}],115:[function(e,t,r){"use strict";var s=e("safe-buffer").Buffer,n=e("stream").Transform;function i(e){n.call(this),this._block=s.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(i,n),i.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(!function(e,t){if(!s.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");s.isBuffer(e)||(e=s.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var a=0,o=8*e.length;0<o;++a)this._length[a]+=o,0<(o=this._length[a]/4294967296|0)&&(this._length[a]-=4294967296*o);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0);for(var r=this._blockOffset=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i},{inherits:131,"safe-buffer":225,stream:236}],116:[function(e,t,r){var n=r;n.utils=e("./hash/utils"),n.common=e("./hash/common"),n.sha=e("./hash/sha"),n.ripemd=e("./hash/ripemd"),n.hmac=e("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":117,"./hash/hmac":118,"./hash/ripemd":119,"./hash/sha":120,"./hash/utils":127}],117:[function(e,t,r){"use strict";var i=e("./utils"),n=e("minimalistic-assert");function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}(r.BlockHash=a).prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,a=8;a<this.padLength;a++)n[i++]=0;return n}},{"./utils":127,"minimalistic-assert":173}],118:[function(e,t,r){"use strict";var n=e("./utils"),i=e("minimalistic-assert");function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}(t.exports=a).prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":127,"minimalistic-assert":173}],119:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./common"),p=n.rotl32,b=n.sum32,m=n.sum32_3,v=n.sum32_4,a=i.BlockHash;function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function y(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function g(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function _(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(o,a),(r.ripemd160=o).blockSize=512,o.outSize=160,o.hmacStrength=192,o.padLength=64,o.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],a=this.h[3],o=this.h[4],s=r,f=n,u=i,c=a,h=o,l=0;l<80;l++){var d=b(p(v(r,y(l,n,i,a),e[w[l]+t],g(l)),k[l]),o);r=o,o=a,a=p(i,10),i=n,n=d,d=b(p(v(s,y(79-l,f,u,c),e[A[l]+t],_(l)),S[l]),h),s=h,h=c,c=p(u,10),u=f,f=d}d=m(this.h[1],i,c),this.h[1]=m(this.h[2],a,h),this.h[2]=m(this.h[3],o,s),this.h[3]=m(this.h[4],r,f),this.h[4]=m(this.h[0],n,u),this.h[0]=d},o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var w=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],A=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],k=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],S=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":117,"./utils":127}],120:[function(e,t,r){"use strict";r.sha1=e("./sha/1"),r.sha224=e("./sha/224"),r.sha256=e("./sha/256"),r.sha384=e("./sha/384"),r.sha512=e("./sha/512")},{"./sha/1":121,"./sha/224":122,"./sha/256":123,"./sha/384":124,"./sha/512":125}],121:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),a=e("./common"),h=n.rotl32,l=n.sum32,d=n.sum32_5,p=a.ft_1,o=i.BlockHash,b=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(s,o),(t.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=h(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],f=this.h[4];for(n=0;n<r.length;n++){var u=~~(n/20),c=d(h(i,5),p(u,a,o,s),f,r[n],b[u]);f=s,s=o,o=h(a,30),a=i,i=c}this.h[0]=l(this.h[0],i),this.h[1]=l(this.h[1],a),this.h[2]=l(this.h[2],o),this.h[3]=l(this.h[3],s),this.h[4]=l(this.h[4],f)},s.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":117,"../utils":127,"./common":126}],122:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./256");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(a,i),(t.exports=a).blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":127,"./256":123}],123:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),a=e("./common"),p=e("minimalistic-assert"),b=n.sum32,m=n.sum32_4,v=n.sum32_5,y=a.ch32,g=a.maj32,_=a.s0_256,w=a.s1_256,A=a.g0_256,k=a.g1_256,o=i.BlockHash,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function f(){if(!(this instanceof f))return new f;o.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=s,this.W=new Array(64)}n.inherits(f,o),(t.exports=f).blockSize=512,f.outSize=256,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=m(k(r[n-2]),r[n-7],A(r[n-15]),r[n-16]);var i=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],f=this.h[4],u=this.h[5],c=this.h[6],h=this.h[7];for(p(this.k.length===r.length),n=0;n<r.length;n++){var l=v(h,w(f),y(f,u,c),this.k[n],r[n]),d=b(_(i),g(i,a,o));h=c,c=u,u=f,f=b(s,l),s=o,o=a,a=i,i=b(l,d)}this.h[0]=b(this.h[0],i),this.h[1]=b(this.h[1],a),this.h[2]=b(this.h[2],o),this.h[3]=b(this.h[3],s),this.h[4]=b(this.h[4],f),this.h[5]=b(this.h[5],u),this.h[6]=b(this.h[6],c),this.h[7]=b(this.h[7],h)},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":117,"../utils":127,"./common":126,"minimalistic-assert":173}],124:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./512");function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(a,i),(t.exports=a).blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":127,"./512":125}],125:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),O=e("minimalistic-assert"),a=n.rotr64_hi,o=n.rotr64_lo,s=n.shr64_hi,f=n.shr64_lo,F=n.sum64,P=n.sum64_hi,j=n.sum64_lo,l=n.sum64_4_hi,d=n.sum64_4_lo,D=n.sum64_5_hi,z=n.sum64_5_lo,u=i.BlockHash,c=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=c,this.W=new Array(160)}function U(e,t,r,n,i){var a=e&r^~e&i;return a<0&&(a+=4294967296),a}function L(e,t,r,n,i,a){var o=t&n^~t&a;return o<0&&(o+=4294967296),o}function q(e,t,r,n,i){var a=e&r^e&i^r&i;return a<0&&(a+=4294967296),a}function V(e,t,r,n,i,a){var o=t&n^t&a^n&a;return o<0&&(o+=4294967296),o}function H(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function W(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function K(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function G(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function p(e,t){var r=a(e,t,1)^a(e,t,8)^s(e,t,7);return r<0&&(r+=4294967296),r}function b(e,t){var r=o(e,t,1)^o(e,t,8)^f(e,t,7);return r<0&&(r+=4294967296),r}function m(e,t){var r=a(e,t,19)^a(t,e,29)^s(e,t,6);return r<0&&(r+=4294967296),r}function v(e,t){var r=o(e,t,19)^o(t,e,29)^f(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(h,u),(t.exports=h).blockSize=1024,h.outSize=512,h.hmacStrength=192,h.padLength=128,h.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=m(r[n-4],r[n-3]),a=v(r[n-4],r[n-3]),o=r[n-14],s=r[n-13],f=p(r[n-30],r[n-29]),u=b(r[n-30],r[n-29]),c=r[n-32],h=r[n-31];r[n]=l(i,a,o,s,f,u,c,h),r[n+1]=d(i,a,o,s,f,u,c,h)}},h.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],o=this.h[3],s=this.h[4],f=this.h[5],u=this.h[6],c=this.h[7],h=this.h[8],l=this.h[9],d=this.h[10],p=this.h[11],b=this.h[12],m=this.h[13],v=this.h[14],y=this.h[15];O(this.k.length===r.length);for(var g=0;g<r.length;g+=2){var _=v,w=y,A=K(h,l),k=G(h,l),S=U(h,0,d,0,b),E=L(0,l,0,p,0,m),x=this.k[g],C=this.k[g+1],I=r[g],N=r[g+1],M=D(_,w,A,k,S,E,x,C,I,N),T=z(_,w,A,k,S,E,x,C,I,N);_=H(n,i),w=W(n,i),A=q(n,0,a,0,s),k=V(0,i,0,o,0,f);var B=P(_,w,A,k),R=j(_,w,A,k);v=b,y=m,b=d,m=p,d=h,p=l,h=P(u,c,M,T),l=j(c,c,M,T),u=s,c=f,s=a,f=o,a=n,o=i,n=P(M,T,B,R),i=j(M,T,B,R)}F(this.h,0,n,i),F(this.h,2,a,o),F(this.h,4,s,f),F(this.h,6,u,c),F(this.h,8,h,l),F(this.h,10,d,p),F(this.h,12,b,m),F(this.h,14,v,y)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":117,"../utils":127,"minimalistic-assert":173}],126:[function(e,t,r){"use strict";var n=e("../utils").rotr32;function i(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}r.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?o(t,r,n):2===e?a(t,r,n):void 0},r.ch32=i,r.maj32=a,r.p32=o,r.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},r.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},r.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":127}],127:[function(e,t,r){"use strict";var u=e("minimalistic-assert"),n=e("inherits");function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function i(e){return 1===e.length?"0"+e:e}function o(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=n,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r,n,i=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)i.push(parseInt(e[o]+e[o+1],16))}else for(var a=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?i[a++]=s:s<2048?(i[a++]=s>>6|192,i[a++]=63&s|128):(n=o,55296!=(64512&(r=e).charCodeAt(n))||n<0||n+1>=r.length||56320!=(64512&r.charCodeAt(n+1))?i[a++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),i[a++]=s>>18|240,i[a++]=s>>12&63|128),i[a++]=s>>6&63|128,i[a++]=63&s|128)}else for(o=0;o<e.length;o++)i[o]=0|e[o];return i},r.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t},r.htonl=a,r.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=o(i.toString(16))}return r},r.zero2=i,r.zero8=o,r.join32=function(e,t,r,n){var i=r-t;u(i%4==0);for(var a=new Array(i/4),o=0,s=t;o<a.length;o++,s+=4){var f;f="big"===n?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[o]=f>>>0}return a},r.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var a=e[n];"big"===t?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<<t|e>>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},r.sum64=function(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0,o=(a<n?1:0)+r+i;e[t]=o>>>0,e[t+1]=a},r.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,i,a,o,s){var f=0,u=t;return f+=(u=u+n>>>0)<t?1:0,f+=(u=u+a>>>0)<a?1:0,e+r+i+o+(f+=(u=u+s>>>0)<s?1:0)>>>0},r.sum64_4_lo=function(e,t,r,n,i,a,o,s){return t+n+a+s>>>0},r.sum64_5_hi=function(e,t,r,n,i,a,o,s,f,u){var c=0,h=t;return c+=(h=h+n>>>0)<t?1:0,c+=(h=h+a>>>0)<a?1:0,c+=(h=h+s>>>0)<s?1:0,e+r+i+o+f+(c+=(h=h+u>>>0)<u?1:0)>>>0},r.sum64_5_lo=function(e,t,r,n,i,a,o,s,f,u){return t+n+a+s+u>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:131,"minimalistic-assert":173}],128:[function(e,t,r){"use strict";var n=e("hash.js"),o=e("minimalistic-crypto-utils"),i=e("minimalistic-assert");function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),r=o.toArray(e.nonce,e.nonceEnc||"hex"),n=o.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}(t.exports=a).prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=o.toArray(e,t),r=o.toArray(r,n),i(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=o.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,e);return this._update(r),this._reseed++,o.encode(a,t)}},{"hash.js":116,"minimalistic-assert":173,"minimalistic-crypto-utils":174}],129:[function(e,t,r){r.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,f=(1<<s)-1,u=f>>1,c=-7,h=r?i-1:0,l=r?-1:1,d=e[t+h];for(h+=l,a=d&(1<<-c)-1,d>>=-c,c+=s;0<c;a=256*a+e[t+h],h+=l,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;0<c;o=256*o+e[t+h],h+=l,c-=8);if(0===a)a=1-u;else{if(a===f)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),a-=u}return(d?-1:1)*o*Math.pow(2,a-n)},r.write=function(e,t,r,n,i,a){var o,s,f,u=8*a-i-1,c=(1<<u)-1,h=c>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),2<=(t+=1<=o+h?l/f:l*Math.pow(2,1-h))*f&&(o++,f/=2),c<=o+h?(s=0,o=c):1<=o+h?(s=(t*f-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));8<=i;e[r+d]=255&s,d+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;0<u;e[r+d]=255&o,d+=p,o/=256,u-=8);e[r+d-p]|=128*b}},{}],130:[function(e,c,t){(function(t){"use strict";var r,n,e=t.MutationObserver||t.WebKitMutationObserver;if(e){var i=0,a=new e(u),o=t.document.createTextNode("");a.observe(o,{characterData:!0}),r=function(){o.data=i=++i%2}}else if(t.setImmediate||void 0===t.MessageChannel)r="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var s=new t.MessageChannel;s.port1.onmessage=u,r=function(){s.port2.postMessage(0)}}var f=[];function u(){var e,t;n=!0;for(var r=f.length;r;){for(t=f,f=[],e=-1;++e<r;)t[e]();r=f.length}n=!1}c.exports=function(e){1!==f.push(e)||n||r()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],131:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],132:[function(e,t,r){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(n(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))||!!e._isBuffer);var t}},{}],133:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],134:[function(e,t,r){"use strict";var d=e("./utils"),h=e("./support"),p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,n,i,a,o,s,f=[],u=0,c=e.length,h=c,l="string"!==d.getTypeOf(e);u<e.length;)h=c-u,n=l?(t=e[u++],r=u<c?e[u++]:0,u<c?e[u++]:0):(t=e.charCodeAt(u++),r=u<c?e.charCodeAt(u++):0,u<c?e.charCodeAt(u++):0),i=t>>2,a=(3&t)<<4|r>>4,o=1<h?(15&r)<<2|n>>6:64,s=2<h?63&n:64,f.push(p.charAt(i)+p.charAt(a)+p.charAt(o)+p.charAt(s));return f.join("")},r.decode=function(e){var t,r,n,i,a,o,s=0,f=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var u,c=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===p.charAt(64)&&c--,e.charAt(e.length-2)===p.charAt(64)&&c--,c%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=new(h.uint8array?Uint8Array:Array)(0|c);s<e.length;)t=p.indexOf(e.charAt(s++))<<2|(i=p.indexOf(e.charAt(s++)))>>4,r=(15&i)<<4|(a=p.indexOf(e.charAt(s++)))>>2,n=(3&a)<<6|(o=p.indexOf(e.charAt(s++))),u[f++]=t,64!==a&&(u[f++]=r),64!==o&&(u[f++]=n);return u}},{"./support":163,"./utils":165}],135:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/DataLengthProbe"),o=e("./stream/Crc32Probe");a=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":139,"./stream/Crc32Probe":158,"./stream/DataLengthProbe":159,"./stream/DataWorker":160}],136:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":140,"./stream/GenericWorker":161}],137:[function(e,t,r){"use strict";var n=e("./utils");var s=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?("string"!==n.getTypeOf(e)?function(e,t,r,n){var i=s,a=n+r;e^=-1;for(var o=n;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}:function(e,t,r,n){var i=s,a=n+r;e^=-1;for(var o=n;o<a;o++)e=e>>>8^i[255&(e^t.charCodeAt(o))];return-1^e})(0|t,e,e.length,0):0}},{"./utils":165}],138:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],139:[function(e,t,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:169}],140:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function f(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(f,o),f.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},f.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},f.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},f.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(e){return new f("Deflate",e)},r.uncompressWorker=function(){return new f("Inflate",{})}},{"./stream/GenericWorker":161,"./utils":165,pako:175}],141:[function(e,t,r){"use strict";function T(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,n,i,a){var o,s,f=e.file,u=e.compression,c=a!==R.utf8encode,h=B.transformTo("string",a(f.name)),l=B.transformTo("string",R.utf8encode(f.name)),d=f.comment,p=B.transformTo("string",a(d)),b=B.transformTo("string",R.utf8encode(d)),m=l.length!==f.name.length,v=b.length!==d.length,y="",g="",_="",w=f.dir,A=f.date,k={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(k.crc32=e.crc32,k.compressedSize=e.compressedSize,k.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),c||!m&&!v||(S|=2048);var E,x,C,I=0,N=0;w&&(I|=16),"UNIX"===i?(N=798,I|=(E=f.unixPermissions,x=w,(C=E)||(C=x?16893:33204),(65535&C)<<16)):(N=20,I|=63&(f.dosPermissions||0)),o=A.getUTCHours(),o<<=6,o|=A.getUTCMinutes(),o<<=5,o|=A.getUTCSeconds()/2,s=A.getUTCFullYear()-1980,s<<=4,s|=A.getUTCMonth()+1,s<<=5,s|=A.getUTCDate(),m&&(g=T(1,1)+T(O(h),4)+l,y+="up"+T(g.length,2)+g),v&&(_=T(1,1)+T(O(p),4)+b,y+="uc"+T(_.length,2)+_);var M="";return M+="\n\0",M+=T(S,2),M+=u.magic,M+=T(o,2),M+=T(s,2),M+=T(k.crc32,4),M+=T(k.compressedSize,4),M+=T(k.uncompressedSize,4),M+=T(h.length,2),M+=T(y.length,2),{fileRecord:F.LOCAL_FILE_HEADER+M+h+y,dirRecord:F.CENTRAL_FILE_HEADER+T(N,2)+M+T(p.length,2)+"\0\0\0\0"+T(I,4)+T(n,4)+h+y+p}}var B=e("../utils"),a=e("../stream/GenericWorker"),R=e("../utf8"),O=e("../crc32"),F=e("../signature");function n(e,t,r,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}B.inherits(n,a),n.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},n.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(e){this.accumulate=!1;var t,r=this.streamFiles&&!e.file.dir,n=i(e,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),r)this.push({data:(t=e,F.DATA_DESCRIPTOR+T(t.crc32,4)+T(t.compressedSize,4)+T(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r,n,i,a,o,s,f=this.bytesWritten-e,u=(r=this.dirRecords.length,n=f,i=e,a=this.zipComment,o=this.encodeFileName,s=B.transformTo("string",o(a)),F.CENTRAL_DIRECTORY_END+"\0\0\0\0"+T(r,2)+T(r,2)+T(n,4)+T(i,4)+T(s.length,2)+s);this.push({data:u,meta:{percent:100}})},n.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},n.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},n.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},n.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},n.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=n},{"../crc32":137,"../signature":156,"../stream/GenericWorker":161,"../utf8":164,"../utils":165}],142:[function(e,t,r){"use strict";var u=e("../compressions"),n=e("./ZipFileWorker");r.generateWorker=function(e,o,t){var s=new n(o.streamFiles,t,o.platform,o.encodeFileName),f=0;try{e.forEach(function(e,t){f++;var r=function(e,t){var r=e||t,n=u[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(t.options.compression,o.compression),n=t.options.compressionOptions||o.compressionOptions||{},i=t.dir,a=t.date;t._compressWorker(r,n).withStreamInfo("file",{name:e,dir:i,date:a,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(s)}),s.entriesCount=f}catch(e){s.error(e)}return s}},{"../compressions":136,"./ZipFileWorker":141}],143:[function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.2.0",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":138,"./external":139,"./load":144,"./object":148,"./support":163}],144:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./external"),s=e("./utf8"),f=(n=e("./utils"),e("./zipEntries")),a=e("./stream/Crc32Probe"),u=e("./nodejsUtils");function c(n){return new i.Promise(function(e,t){var r=n.decompressed.getContentWorker().pipe(new a);r.on("error",function(e){t(e)}).on("end",function(){r.streamInfo.crc32!==n.decompressed.crc32?t(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}t.exports=function(e,a){var o=this;return a=n.extend(a||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,a.optimizedBinaryString,a.base64).then(function(e){var t=new f(a);return t.load(e),t}).then(function(e){var t=[i.Promise.resolve(e)],r=e.files;if(a.checkCRC32)for(var n=0;n<r.length;n++)t.push(c(r[n]));return i.Promise.all(t)}).then(function(e){for(var t=e.shift(),r=t.files,n=0;n<r.length;n++){var i=r[n];o.file(i.fileNameStr,i.decompressed,{binary:!0,optimizedBinaryString:!0,date:i.date,dir:i.dir,comment:i.fileCommentStr.length?i.fileCommentStr:null,unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions,createFolders:a.createFolders})}return t.zipComment.length&&(o.comment=t.zipComment),o})}},{"./external":139,"./nodejsUtils":147,"./stream/Crc32Probe":158,"./utf8":164,"./utils":165,"./zipEntries":166}],145:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":161,"../utils":165}],146:[function(e,t,r){"use strict";var i=e("readable-stream").Readable;function n(e,t,r){i.call(this,t),this._helper=e;var n=this;e.on("data",function(e,t){n.push(e)||n._helper.pause(),r&&r(t)}).on("error",function(e){n.emit("error",e)}).on("end",function(){n.push(null)})}e("../utils").inherits(n,i),n.prototype._read=function(){this._helper.resume()},t.exports=n},{"../utils":165,"readable-stream":149}],147:[function(e,t,r){(function(r){"use strict";t.exports={isNode:void 0!==r,newBufferFrom:function(e,t){if(r.from&&r.from!==Uint8Array.from)return r.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new r(e,t)},allocBuffer:function(e){if(r.alloc)return r.alloc(e);var t=new r(e);return t.fill(0),t},isBuffer:function(e){return r.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}}).call(this,e("buffer").Buffer)},{buffer:77}],148:[function(e,t,r){"use strict";function a(e,t,r){var n,i=u.getTypeOf(t),a=u.extend(r||{},h);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=v(e)),a.createFolders&&(n=m(e))&&y.call(this,n,!0);var o="string"===i&&!1===a.binary&&!1===a.base64;r&&void 0!==r.binary||(a.binary=!o),(t instanceof l&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var s=null;s=t instanceof l||t instanceof c?t:p.isNode&&p.isStream(t)?new b(e,t):u.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var f=new d(e,s,a);this.files[e]=f}var i=e("./utf8"),u=e("./utils"),c=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),h=e("./defaults"),l=e("./compressedObject"),d=e("./zipObject"),s=e("./generate"),p=e("./nodejsUtils"),b=e("./nodejs/NodejsStreamInputAdapter"),m=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},v=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},y=function(e,t){return t=void 0!==t?t:h.createFolders,e=v(e),this.files[e]||a.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function f(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var n={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n))},filter:function(r){var n=[];return this.forEach(function(e,t){r(e,t)&&n.push(t)}),n},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,a.call(this,e,t,r),this;if(f(e)){var n=e;return this.filter(function(e,t){return!t.dir&&n.test(e)})}var i=this.files[this.root+e];return i&&!i.dir?i:null},folder:function(r){if(!r)return this;if(f(r))return this.filter(function(e,t){return t.dir&&r.test(e)});var e=this.root+r,t=y.call(this,e),n=this.clone();return n.root=t.name,n},remove:function(r){r=this.root+r;var e=this.files[r];if(e||("/"!==r.slice(-1)&&(r+="/"),e=this.files[r]),e&&!e.dir)delete this.files[r];else for(var t=this.filter(function(e,t){return t.name.slice(0,r.length)===r}),n=0;n<t.length;n++)delete this.files[t[n].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=u.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");u.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=s.generateWorker(this,r,n)}catch(e){(t=new c("error")).error(e)}return new o(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=n},{"./compressedObject":135,"./defaults":138,"./generate":142,"./nodejs/NodejsStreamInputAdapter":145,"./nodejsUtils":147,"./stream/GenericWorker":161,"./stream/StreamHelper":162,"./utf8":164,"./utils":165,"./zipObject":168}],149:[function(e,t,r){t.exports=e("stream")},{stream:236}],150:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":165,"./DataReader":151}],151:[function(e,t,r){"use strict";var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":165}],152:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":165,"./Uint8ArrayReader":154}],153:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":165,"./DataReader":151}],154:[function(e,t,r){"use strict";var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":165,"./ArrayReader":150}],155:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),f=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new f(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new o(e)}},{"../support":163,"../utils":165,"./ArrayReader":150,"./NodeBufferReader":152,"./StringReader":153,"./Uint8ArrayReader":154}],156:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],157:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":165,"./GenericWorker":161}],158:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,n),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":137,"../utils":165,"./GenericWorker":161}],159:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":165,"./GenericWorker":161}],160:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":165,"./GenericWorker":161}],161:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],162:[function(s,h,e){(function(f){"use strict";var u=s("../utils"),i=s("./ConvertWorker"),a=s("./GenericWorker"),c=s("../base64"),e=s("../support"),t=s("../external"),r=null;if(e.nodestream)try{r=s("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function n(e,s){return new t.Promise(function(t,r){var n=[],i=e._internalType,a=e._outputType,o=e._mimeType;e.on("data",function(e,t){n.push(e),s&&s(t)}).on("error",function(e){n=[],r(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return u.newBlob(u.transformTo("arraybuffer",t),r);case"base64":return c.encode(t);default:return u.transformTo(e,t)}}(a,function(e,t){var r,n=0,i=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(a),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return f.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(i,n),o);t(e)}catch(e){r(e)}n=[]}).resume()})}function o(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,u.checkSupport(n),this._worker=e.pipe(new i(n)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}o.prototype={accumulate:function(e){return n(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){u.delay(t,arguments,r)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(u.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new r(this,{objectMode:"nodebuffer"!==this._outputType},e)}},h.exports=o}).call(this,s("buffer").Buffer)},{"../base64":134,"../external":139,"../nodejs/NodejsStreamOutputAdapter":146,"../support":163,"../utils":165,"./ConvertWorker":157,"./GenericWorker":161,buffer:77}],163:[function(n,e,i){(function(e){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer=void 0!==e,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var t=new ArrayBuffer(0);try{i.blob=0===new Blob([t],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(t),i.blob=0===r.getBlob("application/zip").size}catch(e){i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch(e){i.nodestream=!1}}).call(this,n("buffer").Buffer)},{buffer:77,"readable-stream":149}],164:[function(e,t,a){"use strict";for(var s=e("./utils"),f=e("./support"),r=e("./nodejsUtils"),n=e("./stream/GenericWorker"),u=new Array(256),i=0;i<256;i++)u[i]=252<=i?6:248<=i?5:240<=i?4:224<=i?3:192<=i?2:1;u[254]=u[254]=1;function o(){n.call(this,"utf-8 decode"),this.leftOver=null}function c(){n.call(this,"utf-8 encode")}a.utf8encode=function(e){return f.nodebuffer?r.newBufferFrom(e,"utf-8"):function(e){var t,r,n,i,a,o=e.length,s=0;for(i=0;i<o;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new(f.uint8array?Uint8Array:Array)(s),i=a=0;a<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t}(e)},a.utf8decode=function(e){return f.nodebuffer?s.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,n,i,a=e.length,o=new Array(2*a);for(t=r=0;t<a;)if((n=e[t++])<128)o[r++]=n;else if(4<(i=u[n]))o[r++]=65533,t+=i-1;else{for(n&=2===i?31:3===i?15:7;1<i&&t<a;)n=n<<6|63&e[t++],i--;1<i?o[r++]=65533:n<65536?o[r++]=n:(n-=65536,o[r++]=55296|n>>10&1023,o[r++]=56320|1023&n)}return o.length!==r&&(o.subarray?o=o.subarray(0,r):o.length=r),s.applyFromCharCode(o)}(e=s.transformTo(f.uint8array?"uint8array":"array",e))},s.inherits(o,n),o.prototype.processChunk=function(e){var t=s.transformTo(f.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(f.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var n=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return!(r<0)&&0!==r&&r+u[e[r]]>t?r:t}(t),i=t;n!==t.length&&(f.uint8array?(i=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(i=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:a.utf8decode(i),meta:e.meta})},o.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=o,s.inherits(c,n),c.prototype.processChunk=function(e){this.push({data:a.utf8encode(e.data),meta:e.meta})},a.Utf8EncodeWorker=c},{"./nodejsUtils":147,"./stream/GenericWorker":161,"./support":163,"./utils":165}],165:[function(e,t,s){"use strict";var f=e("./support"),u=e("./base64"),r=e("./nodejsUtils"),n=e("set-immediate-shim"),c=e("./external");function i(e){return e}function h(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}s.newBlob=function(t,r){s.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var a={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return f.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return f.nodebuffer&&1===String.fromCharCode.apply(null,r.allocBuffer(1)).length}catch(e){return!1}}()}};function o(e){var t=65536,r=s.getTypeOf(e),n=!0;if("uint8array"===r?n=a.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=a.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return a.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return a.stringifyByChar(e)}function l(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}s.applyFromCharCode=o;var d={};d.string={string:i,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:function(e){return h(e,r.allocBuffer(e.length))}},d.array={string:o,array:i,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(e)}},d.arraybuffer={string:function(e){return o(new Uint8Array(e))},array:function(e){return l(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:i,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:o,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:i,nodebuffer:function(e){return r.newBufferFrom(e)}},d.nodebuffer={string:o,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:i},s.transformTo=function(e,t){if(t=t||"",!e)return t;s.checkSupport(e);var r=s.getTypeOf(t);return d[r][e](t)},s.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":f.nodebuffer&&r.isBuffer(e)?"nodebuffer":f.uint8array&&e instanceof Uint8Array?"uint8array":f.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(e){if(!f[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},s.delay=function(e,t,r){n(function(){e.apply(r||null,t||[])})},s.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},s.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},s.prepareContent=function(n,e,i,a,o){return c.Promise.resolve(e).then(function(n){return f.blob&&(n instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(n)))&&"undefined"!=typeof FileReader?new c.Promise(function(t,r){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=function(e){r(e.target.error)},e.readAsArrayBuffer(n)}):n}).then(function(e){var t,r=s.getTypeOf(e);return r?("arraybuffer"===r?e=s.transformTo("uint8array",e):"string"===r&&(o?e=u.decode(e):i&&!0!==a&&(e=h(t=e,new(f.uint8array?Uint8Array:Array)(t.length)))),e):c.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":134,"./external":139,"./nodejsUtils":147,"./support":163,"set-immediate-shim":227}],166:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=(e("./utf8"),e("./support"));function f(e){this.files=[],this.loadOptions=e}f.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw!this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=f},{"./reader/readerFor":155,"./signature":156,"./support":163,"./utf8":164,"./utils":165,"./zipEntry":167}],167:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),a=e("./utils"),i=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),f=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in f)if(f.hasOwnProperty(t)&&f[t].magic===e)return f[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n}},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=a.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=a.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)?null:o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)?null:o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":135,"./compressions":136,"./crc32":137,"./reader/readerFor":155,"./support":163,"./utf8":164,"./utils":165}],168:[function(e,t,r){"use strict";function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var a=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),f=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(t=t.pipe(new o.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new f("error")).error(e)}return new a(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof f?this._data:new i(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<u.length;h++)n.prototype[u[h]]=c;t.exports=n},{"./compressedObject":135,"./stream/DataWorker":160,"./stream/GenericWorker":161,"./stream/StreamHelper":162,"./utf8":164}],169:[function(e,t,r){"use strict";var i=e("immediate");function u(){}var c={},a=["REJECTED"],o=["FULFILLED"],n=["PENDING"];function s(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=n,this.queue=[],this.outcome=void 0,e!==u&&d(this,e)}function f(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function h(t,r,n){i(function(){var e;try{e=r(n)}catch(e){return c.reject(t,e)}e===t?c.reject(t,new TypeError("Cannot resolve promise with itself")):c.resolve(t,e)})}function l(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(t,e){var r=!1;function n(e){r||(r=!0,c.reject(t,e))}function i(e){r||(r=!0,c.resolve(t,e))}var a=p(function(){e(i,n)});"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=s).prototype.finally=function(t){if("function"!=typeof t)return this;var r=this.constructor;return this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})})},s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(u);this.state!==n?h(r,this.state===o?e:t,this.outcome):this.queue.push(new f(r,e,t));return r},f.prototype.callFulfilled=function(e){c.resolve(this.promise,e)},f.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},f.prototype.callRejected=function(e){c.reject(this.promise,e)},f.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},c.resolve=function(e,t){var r=p(l,t);if("error"===r.status)return c.reject(e,r.value);var n=r.value;if(n)d(e,n);else{e.state=o,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},c.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},s.resolve=function(e){if(e instanceof this)return e;return c.resolve(new this(u),e)},s.reject=function(e){var t=new this(u);return c.reject(t,e)},s.all=function(e){var r=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);var a=new Array(n),o=0,t=-1,s=new this(u);for(;++t<n;)f(e[t],t);return s;function f(e,t){r.resolve(e).then(function(e){a[t]=e,++o!==n||i||(i=!0,c.resolve(s,a))},function(e){i||(i=!0,c.reject(s,e))})}},s.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);var i=-1,a=new this(u);for(;++i<r;)o=e[i],t.resolve(o).then(function(e){n||(n=!0,c.resolve(a,e))},function(e){n||(n=!0,c.reject(a,e))});var o;return a}},{immediate:130}],170:[function(e,U,L){(function(z){(function(){var io,ao="Expected a function",oo="__lodash_hash_undefined__",so="__lodash_placeholder__",fo=9007199254740991,uo=NaN,co=4294967295,ho=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],lo="[object Arguments]",po="[object Array]",bo="[object Boolean]",mo="[object Date]",vo="[object Error]",yo="[object Function]",go="[object GeneratorFunction]",_o="[object Map]",wo="[object Number]",Ao="[object Object]",ko="[object Promise]",So="[object RegExp]",Eo="[object Set]",xo="[object String]",Co="[object Symbol]",Io="[object WeakMap]",No="[object ArrayBuffer]",Mo="[object DataView]",To="[object Float32Array]",Bo="[object Float64Array]",Ro="[object Int8Array]",Oo="[object Int16Array]",Fo="[object Int32Array]",Po="[object Uint8Array]",jo="[object Uint8ClampedArray]",Do="[object Uint16Array]",zo="[object Uint32Array]",Uo=/\b__p \+= '';/g,Lo=/\b(__p \+=) '' \+/g,qo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vo=/&(?:amp|lt|gt|quot|#39);/g,Ho=/[&<>"']/g,Wo=RegExp(Vo.source),Ko=RegExp(Ho.source),Go=/<%-([\s\S]+?)%>/g,Xo=/<%([\s\S]+?)%>/g,Zo=/<%=([\s\S]+?)%>/g,Yo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qo=/^\w*$/,Jo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$o=/[\\^$.*+?()[\]{}|]/g,es=RegExp($o.source),ts=/^\s+|\s+$/g,rs=/^\s+/,ns=/\s+$/,is=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,as=/\{\n\/\* \[wrapped with (.+)\] \*/,os=/,? & /,ss=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fs=/\\(\\)?/g,us=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cs=/\w*$/,hs=/^[-+]0x[0-9a-f]+$/i,ls=/^0b[01]+$/i,ds=/^\[object .+?Constructor\]$/,ps=/^0o[0-7]+$/i,bs=/^(?:0|[1-9]\d*)$/,ms=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vs=/($^)/,ys=/['\n\r\u2028\u2029\\]/g,e="\\ud800-\\udfff",t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\ufe0e\\ufe0f",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+e+"]",f="["+o+"]",u="["+t+"]",c="\\d+",h="["+r+"]",l="["+n+"]",d="[^"+e+o+c+r+n+i+"]",p="\\ud83c[\\udffb-\\udfff]",b="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",y="["+i+"]",g="(?:"+l+"|"+d+")",_="(?:"+y+"|"+d+")",w="(?:['](?:d|ll|m|re|s|t|ve))?",A="(?:['](?:D|LL|M|RE|S|T|VE))?",k="(?:"+u+"|"+p+")"+"?",S="["+a+"]?",E=S+k+("(?:\\u200d(?:"+[b,m,v].join("|")+")"+S+k+")*"),x="(?:"+[h,m,v].join("|")+")"+E,C="(?:"+[b+u+"?",u,m,v,s].join("|")+")",gs=RegExp("[']","g"),_s=RegExp(u,"g"),I=RegExp(p+"(?="+p+")|"+C+E,"g"),ws=RegExp([y+"?"+l+"+"+w+"(?="+[f,y,"$"].join("|")+")",_+"+"+A+"(?="+[f,y+g,"$"].join("|")+")",y+"?"+g+"+"+w,y+"+"+A,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c,x].join("|"),"g"),N=RegExp("[\\u200d"+e+t+a+"]"),As=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ks=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ss=-1,Es={};Es[To]=Es[Bo]=Es[Ro]=Es[Oo]=Es[Fo]=Es[Po]=Es[jo]=Es[Do]=Es[zo]=!0,Es[lo]=Es[po]=Es[No]=Es[bo]=Es[Mo]=Es[mo]=Es[vo]=Es[yo]=Es[_o]=Es[wo]=Es[Ao]=Es[So]=Es[Eo]=Es[xo]=Es[Io]=!1;var xs={};xs[lo]=xs[po]=xs[No]=xs[Mo]=xs[bo]=xs[mo]=xs[To]=xs[Bo]=xs[Ro]=xs[Oo]=xs[Fo]=xs[_o]=xs[wo]=xs[Ao]=xs[So]=xs[Eo]=xs[xo]=xs[Co]=xs[Po]=xs[jo]=xs[Do]=xs[zo]=!0,xs[vo]=xs[yo]=xs[Io]=!1;var M={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cs=parseFloat,Is=parseInt,T="object"==typeof z&&z&&z.Object===Object&&z,B="object"==typeof self&&self&&self.Object===Object&&self,Ns=T||B||Function("return this")(),R="object"==typeof L&&L&&!L.nodeType&&L,O=R&&"object"==typeof U&&U&&!U.nodeType&&U,Ms=O&&O.exports===R,F=Ms&&T.process,P=function(){try{var e=O&&O.require&&O.require("util").types;return e?e:F&&F.binding&&F.binding("util")}catch(e){}}(),Ts=P&&P.isArrayBuffer,Bs=P&&P.isDate,Rs=P&&P.isMap,Os=P&&P.isRegExp,Fs=P&&P.isSet,Ps=P&&P.isTypedArray;function js(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ds(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function zs(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Us(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Ls(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function qs(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function Vs(e,t){return!!(null==e?0:e.length)&&-1<Js(e,t,0)}function Hs(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function Ws(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function Ks(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Gs(e,t,r,n){var i=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function Xs(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function Zs(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var j=rf("length");function Ys(e,n,t){var i;return t(e,function(e,t,r){if(n(e,t,r))return i=t,!1}),i}function Qs(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Js(e,t,r){return t==t?function(e,t,r){var n=r-1,i=e.length;for(;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Qs(e,ef,r)}function $s(e,t,r,n){for(var i=r-1,a=e.length;++i<a;)if(n(e[i],t))return i;return-1}function ef(e){return e!=e}function tf(e,t){var r=null==e?0:e.length;return r?af(e,t)/r:uo}function rf(t){return function(e){return null==e?io:e[t]}}function D(t){return function(e){return null==t?io:t[e]}}function nf(e,n,i,a,t){return t(e,function(e,t,r){i=a?(a=!1,e):n(i,e,t,r)}),i}function af(e,t){for(var r,n=-1,i=e.length;++n<i;){var a=t(e[n]);a!==io&&(r=r===io?a:r+a)}return r}function of(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function sf(t){return function(e){return t(e)}}function ff(t,e){return Ws(e,function(e){return t[e]})}function uf(e,t){return e.has(t)}function cf(e,t){for(var r=-1,n=e.length;++r<n&&-1<Js(t,e[r],0););return r}function hf(e,t){for(var r=e.length;r--&&-1<Js(t,e[r],0););return r}var lf=D({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),df=D({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function pf(e){return"\\"+M[e]}function bf(e){return N.test(e)}function mf(e){var r=-1,n=Array(e.size);return e.forEach(function(e,t){n[++r]=[t,e]}),n}function vf(t,r){return function(e){return t(r(e))}}function yf(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r];o!==t&&o!==so||(e[r]=so,a[i++]=r)}return a}function gf(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function _f(e){return(bf(e)?function(e){var t=I.lastIndex=0;for(;I.test(e);)++t;return t}:j)(e)}function wf(e){return bf(e)?e.match(I)||[]:e.split("")}var Af=D({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var kf=function e(t){var r,E=(t=null==t?Ns:kf.defaults(Ns.Object(),t,kf.pick(Ns,ks))).Array,n=t.Date,i=t.Error,m=t.Function,a=t.Math,w=t.Object,v=t.RegExp,c=t.String,g=t.TypeError,o=E.prototype,s=m.prototype,h=w.prototype,f=t["__core-js_shared__"],u=s.toString,A=h.hasOwnProperty,l=0,d=(r=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",p=h.toString,b=u.call(w),y=Ns._,_=v("^"+u.call(A).replace($o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=Ms?t.Buffer:io,S=t.Symbol,x=t.Uint8Array,C=k?k.allocUnsafe:io,I=vf(w.getPrototypeOf,w),N=w.create,M=h.propertyIsEnumerable,T=o.splice,B=S?S.isConcatSpreadable:io,R=S?S.iterator:io,O=S?S.toStringTag:io,F=function(){try{var e=qr(w,"defineProperty");return e({},"",{}),e}catch(e){}}(),P=t.clearTimeout!==Ns.clearTimeout&&t.clearTimeout,j=n&&n.now!==Ns.Date.now&&n.now,D=t.setTimeout!==Ns.setTimeout&&t.setTimeout,z=a.ceil,U=a.floor,L=w.getOwnPropertySymbols,q=k?k.isBuffer:io,V=t.isFinite,H=o.join,W=vf(w.keys,w),K=a.max,G=a.min,X=n.now,Z=t.parseInt,Y=a.random,Q=o.reverse,J=qr(t,"DataView"),$=qr(t,"Map"),ee=qr(t,"Promise"),te=qr(t,"Set"),re=qr(t,"WeakMap"),ne=qr(w,"create"),ie=re&&new re,ae={},oe=vn(J),se=vn($),fe=vn(ee),ue=vn(te),ce=vn(re),he=S?S.prototype:io,le=he?he.valueOf:io,de=he?he.toString:io;function pe(e){if(Oi(e)&&!ki(e)&&!(e instanceof ge)){if(e instanceof ye)return e;if(A.call(e,"__wrapped__"))return yn(e)}return new ye(e)}var be=function(e){if(!Ri(e))return{};if(N)return N(e);me.prototype=e;var t=new me;return me.prototype=io,t};function me(){}function ve(){}function ye(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=io}function ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=co,this.__views__=[]}function _e(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function we(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ke(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Ae;++t<r;)this.add(e[t])}function Se(e){var t=this.__data__=new we(e);this.size=t.size}function Ee(e,t){var r=ki(e),n=!r&&Ai(e),i=!r&&!n&&Ci(e),a=!r&&!n&&!i&&qi(e),o=r||n||i||a,s=o?of(e.length,c):[],f=s.length;for(var u in e)!t&&!A.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Zr(u,f))||s.push(u);return s}function xe(e){var t=e.length;return t?e[kt(0,t-1)]:io}function Ce(e,t){return ln(ir(e),Pe(t,0,e.length))}function Ie(e){return ln(ir(e))}function Ne(e,t,r){(r===io||gi(e[t],r))&&(r!==io||t in e)||Oe(e,t,r)}function Me(e,t,r){var n=e[t];A.call(e,t)&&gi(n,r)&&(r!==io||t in e)||Oe(e,t,r)}function Te(e,t){for(var r=e.length;r--;)if(gi(e[r][0],t))return r;return-1}function Be(e,n,i,a){return Le(e,function(e,t,r){n(a,e,i(e),r)}),a}function Re(e,t){return e&&ar(t,ca(t),e)}function Oe(e,t,r){"__proto__"==t&&F?F(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Fe(e,t){for(var r=-1,n=t.length,i=E(n),a=null==e;++r<n;)i[r]=a?io:aa(e,t[r]);return i}function Pe(e,t,r){return e==e&&(r!==io&&(e=e<=r?e:r),t!==io&&(e=t<=e?e:t)),e}function je(r,n,i,e,t,a){var o,s=1&n,f=2&n,u=4&n;if(i&&(o=t?i(r,e,t,a):i(r)),o!==io)return o;if(!Ri(r))return r;var c,h,l,d,p,b,m=ki(r);if(m){if(o=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&A.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(r),!s)return ir(r,o)}else{var v=Wr(r),y=v==yo||v==go;if(Ci(r))return Jt(r,s);if(v==Ao||v==lo||y&&!t){if(o=f||y?{}:Gr(r),!s)return f?(b=l=r,d=(p=o)&&ar(b,ha(b),p),ar(l,Hr(l),d)):(h=Re(o,c=r),ar(c,Vr(c),h))}else{if(!xs[v])return t?r:{};o=function(e,t,r){var n=e.constructor;switch(t){case No:return $t(e);case bo:case mo:return new n(+e);case Mo:return function(e,t){var r=t?$t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case To:case Bo:case Ro:case Oo:case Fo:case Po:case jo:case Do:case zo:return er(e,r);case _o:return new n;case wo:case xo:return new n(e);case So:return function(e){var t=new e.constructor(e.source,cs.exec(e));return t.lastIndex=e.lastIndex,t}(e);case Eo:return new n;case Co:return function(e){return le?w(le.call(e)):{}}(e)}}(r,v,s)}}var g=(a=a||new Se).get(r);if(g)return g;a.set(r,o),zi(r)?r.forEach(function(e){o.add(je(e,n,i,e,r,a))}):Fi(r)&&r.forEach(function(e,t){o.set(t,je(e,n,i,t,r,a))});var _=m?io:(u?f?Fr:Or:f?ha:ca)(r);return zs(_||r,function(e,t){_&&(e=r[t=e]),Me(o,t,je(e,n,i,t,r,a))}),o}function De(e,t,r){var n=r.length;if(null==e)return!n;for(e=w(e);n--;){var i=r[n],a=t[i],o=e[i];if(o===io&&!(i in e)||!a(o))return!1}return!0}function ze(e,t,r){if("function"!=typeof e)throw new g(ao);return fn(function(){e.apply(io,r)},t)}function Ue(e,t,r,n){var i=-1,a=Vs,o=!0,s=e.length,f=[],u=t.length;if(!s)return f;r&&(t=Ws(t,sf(r))),n?(a=Hs,o=!1):200<=t.length&&(a=uf,o=!1,t=new ke(t));e:for(;++i<s;){var c=e[i],h=null==r?c:r(c);if(c=n||0!==c?c:0,o&&h==h){for(var l=u;l--;)if(t[l]===h)continue e;f.push(c)}else a(t,h,n)||f.push(c)}return f}pe.templateSettings={escape:Go,evaluate:Xo,interpolate:Zo,variable:"",imports:{_:pe}},(pe.prototype=ve.prototype).constructor=pe,(ye.prototype=be(ve.prototype)).constructor=ye,(ge.prototype=be(ve.prototype)).constructor=ge,_e.prototype.clear=function(){this.__data__=ne?ne(null):{},this.size=0},_e.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_e.prototype.get=function(e){var t=this.__data__;if(ne){var r=t[e];return r===oo?io:r}return A.call(t,e)?t[e]:io},_e.prototype.has=function(e){var t=this.__data__;return ne?t[e]!==io:A.call(t,e)},_e.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ne&&t===io?oo:t,this},we.prototype.clear=function(){this.__data__=[],this.size=0},we.prototype.delete=function(e){var t=this.__data__,r=Te(t,e);return!(r<0)&&(r==t.length-1?t.pop():T.call(t,r,1),--this.size,!0)},we.prototype.get=function(e){var t=this.__data__,r=Te(t,e);return r<0?io:t[r][1]},we.prototype.has=function(e){return-1<Te(this.__data__,e)},we.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new _e,map:new($||we),string:new _e}},Ae.prototype.delete=function(e){var t=Ur(this,e).delete(e);return this.size-=t?1:0,t},Ae.prototype.get=function(e){return Ur(this,e).get(e)},Ae.prototype.has=function(e){return Ur(this,e).has(e)},Ae.prototype.set=function(e,t){var r=Ur(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ke.prototype.add=ke.prototype.push=function(e){return this.__data__.set(e,oo),this},ke.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.clear=function(){this.__data__=new we,this.size=0},Se.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var r=this.__data__;if(r instanceof we){var n=r.__data__;if(!$||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ae(n)}return r.set(e,t),this.size=r.size,this};var Le=fr(Ze),qe=fr(Ye,!0);function Ve(e,n){var i=!0;return Le(e,function(e,t,r){return i=!!n(e,t,r)}),i}function He(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(null!=o&&(s===io?o==o&&!Li(o):r(o,s)))var s=o,f=a}return f}function We(e,n){var i=[];return Le(e,function(e,t,r){n(e,t,r)&&i.push(e)}),i}function Ke(e,t,r,n,i){var a=-1,o=e.length;for(r=r||Xr,i=i||[];++a<o;){var s=e[a];0<t&&r(s)?1<t?Ke(s,t-1,r,n,i):Ks(i,s):n||(i[i.length]=s)}return i}var Ge=ur(),Xe=ur(!0);function Ze(e,t){return e&&Ge(e,t,ca)}function Ye(e,t){return e&&Xe(e,t,ca)}function Qe(t,e){return qs(e,function(e){return Mi(t[e])})}function Je(e,t){for(var r=0,n=(t=Xt(t,e)).length;null!=e&&r<n;)e=e[mn(t[r++])];return r&&r==n?e:io}function $e(e,t,r){var n=t(e);return ki(e)?n:Ks(n,r(e))}function et(e){return null==e?e===io?"[object Undefined]":"[object Null]":O&&O in w(e)?function(e){var t=A.call(e,O),r=e[O];try{e[O]=io;var n=!0}catch(e){}var i=p.call(e);n&&(t?e[O]=r:delete e[O]);return i}(e):(t=e,p.call(t));var t}function tt(e,t){return t<e}function rt(e,t){return null!=e&&A.call(e,t)}function nt(e,t){return null!=e&&t in w(e)}function it(e,t,r){for(var n=r?Hs:Vs,i=e[0].length,a=e.length,o=a,s=E(a),f=1/0,u=[];o--;){var c=e[o];o&&t&&(c=Ws(c,sf(t))),f=G(c.length,f),s[o]=!r&&(t||120<=i&&120<=c.length)?new ke(o&&c):io}c=e[0];var h=-1,l=s[0];e:for(;++h<i&&u.length<f;){var d=c[h],p=t?t(d):d;if(d=r||0!==d?d:0,!(l?uf(l,p):n(u,p,r))){for(o=a;--o;){var b=s[o];if(!(b?uf(b,p):n(e[o],p,r)))continue e}l&&l.push(p),u.push(d)}}return u}function at(e,t,r){var n=null==(e=an(e,t=Xt(t,e)))?e:e[mn(Nn(t))];return null==n?io:js(n,e,r)}function ot(e){return Oi(e)&&et(e)==lo}function st(e,t,r,n,i){return e===t||(null==e||null==t||!Oi(e)&&!Oi(t)?e!=e&&t!=t:function(e,t,r,n,i,a){var o=ki(e),s=ki(t),f=o?po:Wr(e),u=s?po:Wr(t),c=(f=f==lo?Ao:f)==Ao,h=(u=u==lo?Ao:u)==Ao,l=f==u;if(l&&Ci(e)){if(!Ci(t))return!1;c=!(o=!0)}if(l&&!c)return a=a||new Se,o||qi(e)?Br(e,t,r,n,i,a):function(e,t,r,n,i,a,o){switch(r){case Mo:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case No:return e.byteLength==t.byteLength&&a(new x(e),new x(t))?!0:!1;case bo:case mo:case wo:return gi(+e,+t);case vo:return e.name==t.name&&e.message==t.message;case So:case xo:return e==t+"";case _o:var s=mf;case Eo:var f=1&n;if(s=s||gf,e.size!=t.size&&!f)return!1;var u=o.get(e);if(u)return u==t;n|=2,o.set(e,t);var c=Br(s(e),s(t),n,i,a,o);return o.delete(e),c;case Co:if(le)return le.call(e)==le.call(t)}return!1}(e,t,f,r,n,i,a);if(!(1&r)){var d=c&&A.call(e,"__wrapped__"),p=h&&A.call(t,"__wrapped__");if(d||p){var b=d?e.value():e,m=p?t.value():t;return a=a||new Se,i(b,m,r,n,a)}}return l&&(a=a||new Se,function(e,t,r,n,i,a){var o=1&r,s=Or(e),f=s.length,u=Or(t).length;if(f!=u&&!o)return!1;var c=f;for(;c--;){var h=s[c];if(!(o?h in t:A.call(t,h)))return!1}var l=a.get(e);if(l&&a.get(t))return l==t;var d=!0;a.set(e,t),a.set(t,e);var p=o;for(;++c<f;){h=s[c];var b=e[h],m=t[h];if(n)var v=o?n(m,b,h,t,e,a):n(b,m,h,e,t,a);if(!(v===io?b===m||i(b,m,r,n,a):v)){d=!1;break}p=p||"constructor"==h}if(d&&!p){var y=e.constructor,g=t.constructor;y!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g)&&(d=!1)}return a.delete(e),a.delete(t),d}(e,t,r,n,i,a))}(e,t,r,n,st,i))}function ft(e,t,r,n){var i=r.length,a=i,o=!n;if(null==e)return!a;for(e=w(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var f=(s=r[i])[0],u=e[f],c=s[1];if(o&&s[2]){if(u===io&&!(f in e))return!1}else{var h=new Se;if(n)var l=n(u,c,f,e,t,h);if(!(l===io?st(c,u,3,n,h):l))return!1}}return!0}function ut(e){return!(!Ri(e)||(t=e,d&&d in t))&&(Mi(e)?_:ds).test(vn(e));var t}function ct(e){return"function"==typeof e?e:null==e?Pa:"object"==typeof e?ki(e)?mt(e[0],e[1]):bt(e):Wa(e)}function ht(e){if(!en(e))return W(e);var t=[];for(var r in w(e))A.call(e,r)&&"constructor"!=r&&t.push(r);return t}function lt(e){if(!Ri(e))return function(e){var t=[];if(null!=e)for(var r in w(e))t.push(r);return t}(e);var t=en(e),r=[];for(var n in e)("constructor"!=n||!t&&A.call(e,n))&&r.push(n);return r}function dt(e,t){return e<t}function pt(e,n){var i=-1,a=Ei(e)?E(e.length):[];return Le(e,function(e,t,r){a[++i]=n(e,t,r)}),a}function bt(t){var r=Lr(t);return 1==r.length&&r[0][2]?rn(r[0][0],r[0][1]):function(e){return e===t||ft(e,t,r)}}function mt(r,n){return Qr(r)&&tn(n)?rn(mn(r),n):function(e){var t=aa(e,r);return t===io&&t===n?oa(e,r):st(n,t,3)}}function vt(n,i,a,o,s){n!==i&&Ge(i,function(e,t){if(s=s||new Se,Ri(e))!function(e,t,r,n,i,a,o){var s=on(e,r),f=on(t,r),u=o.get(f);if(u)return Ne(e,r,u);var c=a?a(s,f,r+"",e,t,o):io,h=c===io;if(h){var l=ki(f),d=!l&&Ci(f),p=!l&&!d&&qi(f);c=f,l||d||p?c=ki(s)?s:xi(s)?ir(s):d?Jt(f,!(h=!1)):p?er(f,!(h=!1)):[]:ji(f)||Ai(f)?Ai(c=s)?c=Yi(s):Ri(s)&&!Mi(s)||(c=Gr(f)):h=!1}h&&(o.set(f,c),i(c,f,n,a,o),o.delete(f));Ne(e,r,c)}(n,i,t,a,vt,o,s);else{var r=o?o(on(n,t),e,t+"",n,i,s):io;r===io&&(r=e),Ne(n,t,r)}},ha)}function yt(e,t){var r=e.length;if(r)return Zr(t+=t<0?r:0,r)?e[t]:io}function gt(e,n,r){var i=-1;return n=Ws(n.length?n:[Pa],sf(zr())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(pt(e,function(t,e,r){return{criteria:Ws(n,function(e){return e(t)}),index:++i,value:t}}),function(e,t){return function(e,t,r){var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;for(;++n<o;){var f=tr(i[n],a[n]);if(f){if(s<=n)return f;var u=r[n];return f*("desc"==u?-1:1)}}return e.index-t.index}(e,t,r)})}function _t(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=Je(e,o);r(s,o)&&It(a,Xt(o,e),s)}return a}function wt(e,t,r,n){var i=n?$s:Js,a=-1,o=t.length,s=e;for(e===t&&(t=ir(t)),r&&(s=Ws(e,sf(r)));++a<o;)for(var f=0,u=t[a],c=r?r(u):u;-1<(f=i(s,c,f,n));)s!==e&&T.call(s,f,1),T.call(e,f,1);return e}function At(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==a){var a=i;Zr(i)?T.call(e,i,1):Ut(e,i)}}return e}function kt(e,t){return e+U(Y()*(t-e+1))}function St(e,t){var r="";if(!e||t<1||fo<t)return r;for(;t%2&&(r+=e),(t=U(t/2))&&(e+=e),t;);return r}function Et(e,t){return un(nn(e,t,Pa),e+"")}function xt(e){return xe(ga(e))}function Ct(e,t){var r=ga(e);return ln(r,Pe(t,0,r.length))}function It(e,t,r,n){if(!Ri(e))return e;for(var i=-1,a=(t=Xt(t,e)).length,o=a-1,s=e;null!=s&&++i<a;){var f=mn(t[i]),u=r;if(i!=o){var c=s[f];(u=n?n(c,f,s):io)===io&&(u=Ri(c)?c:Zr(t[i+1])?[]:{})}Me(s,f,u),s=s[f]}return e}var Nt=ie?function(e,t){return ie.set(e,t),e}:Pa,Mt=F?function(e,t){return F(e,"toString",{configurable:!0,enumerable:!1,value:Ra(t),writable:!0})}:Pa;function Tt(e){return ln(ga(e))}function Bt(e,t,r){var n=-1,i=e.length;t<0&&(t=i<-t?0:i+t),(r=i<r?i:r)<0&&(r+=i),i=r<t?0:r-t>>>0,t>>>=0;for(var a=E(i);++n<i;)a[n]=e[n+t];return a}function Rt(e,n){var i;return Le(e,function(e,t,r){return!(i=n(e,t,r))}),!!i}function Ot(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var a=n+i>>>1,o=e[a];null!==o&&!Li(o)&&(r?o<=t:o<t)?n=1+a:i=a}return i}return Ft(e,t,Pa,r)}function Ft(e,t,r,n){t=r(t);for(var i=0,a=null==e?0:e.length,o=t!=t,s=null===t,f=Li(t),u=t===io;i<a;){var c=U((i+a)/2),h=r(e[c]),l=h!==io,d=null===h,p=h==h,b=Li(h);if(o)var m=n||p;else m=u?p&&(n||l):s?p&&l&&(n||!d):f?p&&l&&!d&&(n||!b):!d&&!b&&(n?h<=t:h<t);m?i=c+1:a=c}return G(a,4294967294)}function Pt(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r],s=t?t(o):o;if(!r||!gi(s,f)){var f=s;a[i++]=0===o?0:o}}return a}function jt(e){return"number"==typeof e?e:Li(e)?uo:+e}function Dt(e){if("string"==typeof e)return e;if(ki(e))return Ws(e,Dt)+"";if(Li(e))return de?de.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function zt(e,t,r){var n=-1,i=Vs,a=e.length,o=!0,s=[],f=s;if(r)o=!1,i=Hs;else if(200<=a){var u=t?null:xr(e);if(u)return gf(u);o=!1,i=uf,f=new ke}else f=t?[]:s;e:for(;++n<a;){var c=e[n],h=t?t(c):c;if(c=r||0!==c?c:0,o&&h==h){for(var l=f.length;l--;)if(f[l]===h)continue e;t&&f.push(h),s.push(c)}else i(f,h,r)||(f!==s&&f.push(h),s.push(c))}return s}function Ut(e,t){return null==(e=an(e,t=Xt(t,e)))||delete e[mn(Nn(t))]}function Lt(e,t,r,n){return It(e,t,r(Je(e,t)),n)}function qt(e,t,r,n){for(var i=e.length,a=n?i:-1;(n?a--:++a<i)&&t(e[a],a,e););return r?Bt(e,n?0:a,n?a+1:i):Bt(e,n?a+1:0,n?i:a)}function Vt(e,t){var r=e;return r instanceof ge&&(r=r.value()),Gs(t,function(e,t){return t.func.apply(t.thisArg,Ks([e],t.args))},r)}function Ht(e,t,r){var n=e.length;if(n<2)return n?zt(e[0]):[];for(var i=-1,a=E(n);++i<n;)for(var o=e[i],s=-1;++s<n;)s!=i&&(a[i]=Ue(a[i]||o,e[s],t,r));return zt(Ke(a,1),t,r)}function Wt(e,t,r){for(var n=-1,i=e.length,a=t.length,o={};++n<i;){var s=n<a?t[n]:io;r(o,e[n],s)}return o}function Kt(e){return xi(e)?e:[]}function Gt(e){return"function"==typeof e?e:Pa}function Xt(e,t){return ki(e)?e:Qr(e,t)?[e]:bn(Qi(e))}var Zt=Et;function Yt(e,t,r){var n=e.length;return r=r===io?n:r,!t&&n<=r?e:Bt(e,t,r)}var Qt=P||function(e){return Ns.clearTimeout(e)};function Jt(e,t){if(t)return e.slice();var r=e.length,n=C?C(r):new e.constructor(r);return e.copy(n),n}function $t(e){var t=new e.constructor(e.byteLength);return new x(t).set(new x(e)),t}function er(e,t){var r=t?$t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function tr(e,t){if(e!==t){var r=e!==io,n=null===e,i=e==e,a=Li(e),o=t!==io,s=null===t,f=t==t,u=Li(t);if(!s&&!u&&!a&&t<e||a&&o&&f&&!s&&!u||n&&o&&f||!r&&f||!i)return 1;if(!n&&!a&&!u&&e<t||u&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!f)return-1}return 0}function rr(e,t,r,n){for(var i=-1,a=e.length,o=r.length,s=-1,f=t.length,u=K(a-o,0),c=E(f+u),h=!n;++s<f;)c[s]=t[s];for(;++i<o;)(h||i<a)&&(c[r[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function nr(e,t,r,n){for(var i=-1,a=e.length,o=-1,s=r.length,f=-1,u=t.length,c=K(a-s,0),h=E(c+u),l=!n;++i<c;)h[i]=e[i];for(var d=i;++f<u;)h[d+f]=t[f];for(;++o<s;)(l||i<a)&&(h[d+r[o]]=e[i++]);return h}function ir(e,t){var r=-1,n=e.length;for(t=t||E(n);++r<n;)t[r]=e[r];return t}function ar(e,t,r,n){var i=!r;r=r||{};for(var a=-1,o=t.length;++a<o;){var s=t[a],f=n?n(r[s],e[s],s,r,e):io;f===io&&(f=e[s]),(i?Oe:Me)(r,s,f)}return r}function or(i,a){return function(e,t){var r=ki(e)?Ds:Be,n=a?a():{};return r(e,i,zr(t,2),n)}}function sr(s){return Et(function(e,t){var r=-1,n=t.length,i=1<n?t[n-1]:io,a=2<n?t[2]:io;for(i=3<s.length&&"function"==typeof i?(n--,i):io,a&&Yr(t[0],t[1],a)&&(i=n<3?io:i,n=1),e=w(e);++r<n;){var o=t[r];o&&s(e,o,r,i)}return e})}function fr(a,o){return function(e,t){if(null==e)return e;if(!Ei(e))return a(e,t);for(var r=e.length,n=o?r:-1,i=w(e);(o?n--:++n<r)&&!1!==t(i[n],n,i););return e}}function ur(f){return function(e,t,r){for(var n=-1,i=w(e),a=r(e),o=a.length;o--;){var s=a[f?o:++n];if(!1===t(i[s],s,i))break}return e}}function cr(i){return function(e){var t=bf(e=Qi(e))?wf(e):io,r=t?t[0]:e.charAt(0),n=t?Yt(t,1).join(""):e.slice(1);return r[i]()+n}}function hr(t){return function(e){return Gs(Ma(Aa(e).replace(gs,"")),t,"")}}function lr(n){return function(){var e=arguments;switch(e.length){case 0:return new n;case 1:return new n(e[0]);case 2:return new n(e[0],e[1]);case 3:return new n(e[0],e[1],e[2]);case 4:return new n(e[0],e[1],e[2],e[3]);case 5:return new n(e[0],e[1],e[2],e[3],e[4]);case 6:return new n(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new n(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=be(n.prototype),r=n.apply(t,e);return Ri(r)?r:t}}function dr(o,s,f){var u=lr(o);return function e(){for(var t=arguments.length,r=E(t),n=t,i=Dr(e);n--;)r[n]=arguments[n];var a=t<3&&r[0]!==i&&r[t-1]!==i?[]:yf(r,i);return(t-=a.length)<f?Sr(o,s,mr,e.placeholder,io,r,a,io,io,f-t):js(this&&this!==Ns&&this instanceof e?u:o,this,r)}}function pr(o){return function(e,t,r){var n=w(e);if(!Ei(e)){var i=zr(t,3);e=ca(e),t=function(e){return i(n[e],e,n)}}var a=o(e,t,r);return-1<a?n[i?e[a]:a]:io}}function br(f){return Rr(function(i){var a=i.length,e=a,t=ye.prototype.thru;for(f&&i.reverse();e--;){var r=i[e];if("function"!=typeof r)throw new g(ao);if(t&&!o&&"wrapper"==jr(r))var o=new ye([],!0)}for(e=o?e:a;++e<a;){var n=jr(r=i[e]),s="wrapper"==n?Pr(r):io;o=s&&Jr(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?o[jr(s[0])].apply(o,s[3]):1==r.length&&Jr(r)?o[n]():o.thru(r)}return function(){var e=arguments,t=e[0];if(o&&1==e.length&&ki(t))return o.plant(t).value();for(var r=0,n=a?i[r].apply(this,e):t;++r<a;)n=i[r].call(this,n);return n}})}function mr(u,c,h,l,d,p,b,m,v,y){var g=128&c,_=1&c,w=2&c,A=24&c,k=512&c,S=w?io:lr(u);return function e(){for(var t=arguments.length,r=E(t),n=t;n--;)r[n]=arguments[n];if(A)var i=Dr(e),a=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(r,i);if(l&&(r=rr(r,l,d,A)),p&&(r=nr(r,p,b,A)),t-=a,A&&t<y){var o=yf(r,i);return Sr(u,c,mr,e.placeholder,h,r,o,m,v,y-t)}var s=_?h:this,f=w?s[u]:u;return t=r.length,m?r=function(e,t){for(var r=e.length,n=G(t.length,r),i=ir(e);n--;){var a=t[n];e[n]=Zr(a,r)?i[a]:io}return e}(r,m):k&&1<t&&r.reverse(),g&&v<t&&(r.length=v),this&&this!==Ns&&this instanceof e&&(f=S||lr(f)),f.apply(s,r)}}function vr(o,s){return function(e,t){return r=e,n=o,i=s(t),a={},Ze(r,function(e,t,r){n(a,i(e),t,r)}),a;var r,n,i,a}}function yr(n,i){return function(e,t){var r;if(e===io&&t===io)return i;if(e!==io&&(r=e),t!==io){if(r===io)return t;t="string"==typeof e||"string"==typeof t?(e=Dt(e),Dt(t)):(e=jt(e),jt(t)),r=n(e,t)}return r}}function gr(n){return Rr(function(e){return e=Ws(e,sf(zr())),Et(function(t){var r=this;return n(e,function(e){return js(e,r,t)})})})}function _r(e,t){var r=(t=t===io?" ":Dt(t)).length;if(r<2)return r?St(t,e):t;var n=St(t,z(e/_f(t)));return bf(t)?Yt(wf(n),0,e).join(""):n.slice(0,e)}function wr(s,e,f,u){var c=1&e,h=lr(s);return function e(){for(var t=-1,r=arguments.length,n=-1,i=u.length,a=E(i+r),o=this&&this!==Ns&&this instanceof e?h:s;++n<i;)a[n]=u[n];for(;r--;)a[n++]=arguments[++t];return js(o,c?f:this,a)}}function Ar(n){return function(e,t,r){return r&&"number"!=typeof r&&Yr(e,t,r)&&(t=r=io),e=Ki(e),t===io?(t=e,e=0):t=Ki(t),function(e,t,r,n){for(var i=-1,a=K(z((t-e)/(r||1)),0),o=E(a);a--;)o[n?a:++i]=e,e+=r;return o}(e,t,r=r===io?e<t?1:-1:Ki(r),n)}}function kr(r){return function(e,t){return"string"==typeof e&&"string"==typeof t||(e=Zi(e),t=Zi(t)),r(e,t)}}function Sr(e,t,r,n,i,a,o,s,f,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var h=[e,t,i,c?a:io,c?o:io,c?io:a,c?io:o,s,f,u],l=r.apply(io,h);return Jr(e)&&sn(l,h),l.placeholder=n,cn(l,e,t)}function Er(e){var n=a[e];return function(e,t){if(e=Zi(e),(t=null==t?0:G(Gi(t),292))&&V(e)){var r=(Qi(e)+"e").split("e");return+((r=(Qi(n(r[0]+"e"+(+r[1]+t)))+"e").split("e"))[0]+"e"+(r[1]-t))}return n(e)}}var xr=te&&1/gf(new te([,-0]))[1]==1/0?function(e){return new te(e)}:La;function Cr(o){return function(e){var t,r,n,i,a=Wr(e);return a==_o?mf(e):a==Eo?(t=e,r=-1,n=Array(t.size),t.forEach(function(e){n[++r]=[e,e]}),n):Ws(o(i=e),function(e){return[e,i[e]]})}}function Ir(e,t,r,n,i,a,o,s){var f=2&t;if(!f&&"function"!=typeof e)throw new g(ao);var u=n?n.length:0;if(u||(t&=-97,n=i=io),o=o===io?o:K(Gi(o),0),s=s===io?s:Gi(s),u-=i?i.length:0,64&t){var c=n,h=i;n=i=io}var l,d,p,b,m=f?io:Pr(e),v=[e,t,r,n,i,c,h,a,o,s];if(m&&function(e,t){var r=e[1],n=t[1],i=r|n,a=i<131,o=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!o)return;1&n&&(e[2]=t[2],i|=1&r?0:4);var s=t[3];if(s){var f=e[3];e[3]=f?rr(f,s,t[4]):s,e[4]=f?yf(e[3],so):t[4]}(s=t[5])&&(f=e[5],e[5]=f?nr(f,s,t[6]):s,e[6]=f?yf(e[5],so):t[6]);(s=t[7])&&(e[7]=s);128&n&&(e[8]=null==e[8]?t[8]:G(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],r=v[2],n=v[3],i=v[4],!(s=v[9]=v[9]===io?f?0:e.length:K(v[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)y=8==t||16==t?dr(e,t,s):32!=t&&33!=t||i.length?mr.apply(io,v):wr(e,t,r,n);else var y=(d=r,p=1&t,b=lr(l=e),function e(){return(this&&this!==Ns&&this instanceof e?b:l).apply(p?d:this,arguments)});return cn((m?Nt:sn)(y,v),e,t)}function Nr(e,t,r,n){return e===io||gi(e,h[r])&&!A.call(n,r)?t:e}function Mr(e,t,r,n,i,a){return Ri(e)&&Ri(t)&&(a.set(t,e),vt(e,t,io,Mr,a),a.delete(t)),e}function Tr(e){return ji(e)?io:e}function Br(e,t,r,n,i,a){var o=1&r,s=e.length,f=t.length;if(s!=f&&!(o&&s<f))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,h=!0,l=2&r?new ke:io;for(a.set(e,t),a.set(t,e);++c<s;){var d=e[c],p=t[c];if(n)var b=o?n(p,d,c,t,e,a):n(d,p,c,e,t,a);if(b!==io){if(b)continue;h=!1;break}if(l){if(!Zs(t,function(e,t){return!uf(l,t)&&(d===e||i(d,e,r,n,a))&&l.push(t)})){h=!1;break}}else if(d!==p&&!i(d,p,r,n,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Rr(e){return un(nn(e,io,Sn),e+"")}function Or(e){return $e(e,ca,Vr)}function Fr(e){return $e(e,ha,Hr)}var Pr=ie?function(e){return ie.get(e)}:La;function jr(e){for(var t=e.name+"",r=ae[t],n=A.call(ae,t)?r.length:0;n--;){var i=r[n],a=i.func;if(null==a||a==e)return i.name}return t}function Dr(e){return(A.call(pe,"placeholder")?pe:e).placeholder}function zr(){var e=pe.iteratee||ja;return e=e===ja?ct:e,arguments.length?e(arguments[0],arguments[1]):e}function Ur(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Lr(e){for(var t=ca(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,tn(i)]}return t}function qr(e,t){var r,n,i=(n=t,null==(r=e)?io:r[n]);return ut(i)?i:io}var Vr=L?function(t){return null==t?[]:(t=w(t),qs(L(t),function(e){return M.call(t,e)}))}:Xa,Hr=L?function(e){for(var t=[];e;)Ks(t,Vr(e)),e=I(e);return t}:Xa,Wr=et;function Kr(e,t,r){for(var n=-1,i=(t=Xt(t,e)).length,a=!1;++n<i;){var o=mn(t[n]);if(!(a=null!=e&&r(e,o)))break;e=e[o]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&Bi(i)&&Zr(o,i)&&(ki(e)||Ai(e))}function Gr(e){return"function"!=typeof e.constructor||en(e)?{}:be(I(e))}function Xr(e){return ki(e)||Ai(e)||!!(B&&e&&e[B])}function Zr(e,t){var r=typeof e;return!!(t=null==t?fo:t)&&("number"==r||"symbol"!=r&&bs.test(e))&&-1<e&&e%1==0&&e<t}function Yr(e,t,r){if(Ri(r)){var n=typeof t;return("number"==n?Ei(r)&&Zr(t,r.length):"string"==n&&t in r)&&gi(r[t],e)}}function Qr(e,t){if(!ki(e)){var r=typeof e;return"number"==r||"symbol"==r||"boolean"==r||null==e||Li(e)||(Qo.test(e)||!Yo.test(e)||null!=t&&e in w(t))}}function Jr(e){var t=jr(e),r=pe[t];if("function"==typeof r&&t in ge.prototype){if(e===r)return 1;var n=Pr(r);return n&&e===n[0]}}(J&&Wr(new J(new ArrayBuffer(1)))!=Mo||$&&Wr(new $)!=_o||ee&&Wr(ee.resolve())!=ko||te&&Wr(new te)!=Eo||re&&Wr(new re)!=Io)&&(Wr=function(e){var t=et(e),r=t==Ao?e.constructor:io,n=r?vn(r):"";if(n)switch(n){case oe:return Mo;case se:return _o;case fe:return ko;case ue:return Eo;case ce:return Io}return t});var $r=f?Mi:Za;function en(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||h)}function tn(e){return e==e&&!Ri(e)}function rn(t,r){return function(e){return null!=e&&(e[t]===r&&(r!==io||t in w(e)))}}function nn(a,o,s){return o=K(o===io?a.length-1:o,0),function(){for(var e=arguments,t=-1,r=K(e.length-o,0),n=E(r);++t<r;)n[t]=e[o+t];t=-1;for(var i=E(o+1);++t<o;)i[t]=e[t];return i[o]=s(n),js(a,this,i)}}function an(e,t){return t.length<2?e:Je(e,Bt(t,0,-1))}function on(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var sn=hn(Nt),fn=D||function(e,t){return Ns.setTimeout(e,t)},un=hn(Mt);function cn(e,t,r){var n,i,a,o=t+"";return un(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(1<r?"& ":"")+t[n],t=t.join(2<r?", ":" "),e.replace(is,"{\n/* [wrapped with "+t+"] */\n")}(o,(a=o.match(as),n=a?a[1].split(os):[],i=r,zs(ho,function(e){var t="_."+e[0];i&e[1]&&!Vs(n,t)&&n.push(t)}),n.sort())))}function hn(r){var n=0,i=0;return function(){var e=X(),t=16-(e-i);if(i=e,0<t){if(800<=++n)return arguments[0]}else n=0;return r.apply(io,arguments)}}function ln(e,t){var r=-1,n=e.length,i=n-1;for(t=t===io?n:t;++r<t;){var a=kt(r,i),o=e[a];e[a]=e[r],e[r]=o}return e.length=t,e}var dn,pn,bn=(pn=(dn=di(function(e){var i=[];return 46===e.charCodeAt(0)&&i.push(""),e.replace(Jo,function(e,t,r,n){i.push(r?n.replace(fs,"$1"):t||e)}),i},function(e){return 500===pn.size&&pn.clear(),e})).cache,dn);function mn(e){if("string"==typeof e||Li(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function vn(e){if(null!=e){try{return u.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function yn(e){if(e instanceof ge)return e.clone();var t=new ye(e.__wrapped__,e.__chain__);return t.__actions__=ir(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var gn=Et(function(e,t){return xi(e)?Ue(e,Ke(t,1,xi,!0)):[]}),_n=Et(function(e,t){var r=Nn(t);return xi(r)&&(r=io),xi(e)?Ue(e,Ke(t,1,xi,!0),zr(r,2)):[]}),wn=Et(function(e,t){var r=Nn(t);return xi(r)&&(r=io),xi(e)?Ue(e,Ke(t,1,xi,!0),io,r):[]});function An(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Gi(r);return i<0&&(i=K(n+i,0)),Qs(e,zr(t,3),i)}function kn(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==io&&(i=Gi(r),i=r<0?K(n+i,0):G(i,n-1)),Qs(e,zr(t,3),i,!0)}function Sn(e){return(null==e?0:e.length)?Ke(e,1):[]}function En(e){return e&&e.length?e[0]:io}var xn=Et(function(e){var t=Ws(e,Kt);return t.length&&t[0]===e[0]?it(t):[]}),Cn=Et(function(e){var t=Nn(e),r=Ws(e,Kt);return t===Nn(r)?t=io:r.pop(),r.length&&r[0]===e[0]?it(r,zr(t,2)):[]}),In=Et(function(e){var t=Nn(e),r=Ws(e,Kt);return(t="function"==typeof t?t:io)&&r.pop(),r.length&&r[0]===e[0]?it(r,io,t):[]});function Nn(e){var t=null==e?0:e.length;return t?e[t-1]:io}var Mn=Et(Tn);function Tn(e,t){return e&&e.length&&t&&t.length?wt(e,t):e}var Bn=Rr(function(e,t){var r=null==e?0:e.length,n=Fe(e,t);return At(e,Ws(t,function(e){return Zr(e,r)?+e:e}).sort(tr)),n});function Rn(e){return null==e?e:Q.call(e)}var On=Et(function(e){return zt(Ke(e,1,xi,!0))}),Fn=Et(function(e){var t=Nn(e);return xi(t)&&(t=io),zt(Ke(e,1,xi,!0),zr(t,2))}),Pn=Et(function(e){var t=Nn(e);return t="function"==typeof t?t:io,zt(Ke(e,1,xi,!0),io,t)});function jn(t){if(!t||!t.length)return[];var r=0;return t=qs(t,function(e){return xi(e)&&(r=K(e.length,r),1)}),of(r,function(e){return Ws(t,rf(e))})}function Dn(e,t){if(!e||!e.length)return[];var r=jn(e);return null==t?r:Ws(r,function(e){return js(t,io,e)})}var zn=Et(function(e,t){return xi(e)?Ue(e,t):[]}),Un=Et(function(e){return Ht(qs(e,xi))}),Ln=Et(function(e){var t=Nn(e);return xi(t)&&(t=io),Ht(qs(e,xi),zr(t,2))}),qn=Et(function(e){var t=Nn(e);return t="function"==typeof t?t:io,Ht(qs(e,xi),io,t)}),Vn=Et(jn);var Hn=Et(function(e){var t=e.length,r=1<t?e[t-1]:io;return r="function"==typeof r?(e.pop(),r):io,Dn(e,r)});function Wn(e){var t=pe(e);return t.__chain__=!0,t}function Kn(e,t){return t(e)}var Gn=Rr(function(t){function e(e){return Fe(e,t)}var r=t.length,n=r?t[0]:0,i=this.__wrapped__;return!(1<r||this.__actions__.length)&&i instanceof ge&&Zr(n)?((i=i.slice(n,+n+(r?1:0))).__actions__.push({func:Kn,args:[e],thisArg:io}),new ye(i,this.__chain__).thru(function(e){return r&&!e.length&&e.push(io),e})):this.thru(e)});var Xn=or(function(e,t,r){A.call(e,r)?++e[r]:Oe(e,r,1)});var Zn=pr(An),Yn=pr(kn);function Qn(e,t){return(ki(e)?zs:Le)(e,zr(t,3))}function Jn(e,t){return(ki(e)?Us:qe)(e,zr(t,3))}var $n=or(function(e,t,r){A.call(e,r)?e[r].push(t):Oe(e,r,[t])});var ei=Et(function(e,t,r){var n=-1,i="function"==typeof t,a=Ei(e)?E(e.length):[];return Le(e,function(e){a[++n]=i?js(t,e,r):at(e,t,r)}),a}),ti=or(function(e,t,r){Oe(e,r,t)});function ri(e,t){return(ki(e)?Ws:pt)(e,zr(t,3))}var ni=or(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var ii=Et(function(e,t){if(null==e)return[];var r=t.length;return 1<r&&Yr(e,t[0],t[1])?t=[]:2<r&&Yr(t[0],t[1],t[2])&&(t=[t[0]]),gt(e,Ke(t,1),[])}),ai=j||function(){return Ns.Date.now()};function oi(e,t,r){return t=r?io:t,t=e&&null==t?e.length:t,Ir(e,128,io,io,io,io,t)}function si(e,t){var r;if("function"!=typeof t)throw new g(ao);return e=Gi(e),function(){return 0<--e&&(r=t.apply(this,arguments)),e<=1&&(t=io),r}}var fi=Et(function(e,t,r){var n=1;if(r.length){var i=yf(r,Dr(fi));n|=32}return Ir(e,n,t,r,i)}),ui=Et(function(e,t,r){var n=3;if(r.length){var i=yf(r,Dr(ui));n|=32}return Ir(t,n,e,r,i)});function ci(n,i,e){var a,o,s,f,u,c,h=0,l=!1,d=!1,t=!0;if("function"!=typeof n)throw new g(ao);function p(e){var t=a,r=o;return a=o=io,h=e,f=n.apply(r,t)}function b(e){var t=e-c;return c===io||i<=t||t<0||d&&s<=e-h}function m(){var e,t,r=ai();if(b(r))return v(r);u=fn(m,(t=i-((e=r)-c),d?G(t,s-(e-h)):t))}function v(e){return u=io,t&&a?p(e):(a=o=io,f)}function r(){var e,t=ai(),r=b(t);if(a=arguments,o=this,c=t,r){if(u===io)return h=e=c,u=fn(m,i),l?p(e):f;if(d)return Qt(u),u=fn(m,i),p(c)}return u===io&&(u=fn(m,i)),f}return i=Zi(i)||0,Ri(e)&&(l=!!e.leading,s=(d="maxWait"in e)?K(Zi(e.maxWait)||0,i):s,t="trailing"in e?!!e.trailing:t),r.cancel=function(){u!==io&&Qt(u),h=0,a=c=o=u=io},r.flush=function(){return u===io?f:v(ai())},r}var hi=Et(function(e,t){return ze(e,1,t)}),li=Et(function(e,t,r){return ze(e,Zi(t)||0,r)});function di(i,a){if("function"!=typeof i||null!=a&&"function"!=typeof a)throw new g(ao);var o=function(){var e=arguments,t=a?a.apply(this,e):e[0],r=o.cache;if(r.has(t))return r.get(t);var n=i.apply(this,e);return o.cache=r.set(t,n)||r,n};return o.cache=new(di.Cache||Ae),o}function pi(t){if("function"!=typeof t)throw new g(ao);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}di.Cache=Ae;var bi=Zt(function(n,i){var a=(i=1==i.length&&ki(i[0])?Ws(i[0],sf(zr())):Ws(Ke(i,1),sf(zr()))).length;return Et(function(e){for(var t=-1,r=G(e.length,a);++t<r;)e[t]=i[t].call(this,e[t]);return js(n,this,e)})}),mi=Et(function(e,t){var r=yf(t,Dr(mi));return Ir(e,32,io,t,r)}),vi=Et(function(e,t){var r=yf(t,Dr(vi));return Ir(e,64,io,t,r)}),yi=Rr(function(e,t){return Ir(e,256,io,io,io,t)});function gi(e,t){return e===t||e!=e&&t!=t}var _i=kr(tt),wi=kr(function(e,t){return t<=e}),Ai=ot(function(){return arguments}())?ot:function(e){return Oi(e)&&A.call(e,"callee")&&!M.call(e,"callee")},ki=E.isArray,Si=Ts?sf(Ts):function(e){return Oi(e)&&et(e)==No};function Ei(e){return null!=e&&Bi(e.length)&&!Mi(e)}function xi(e){return Oi(e)&&Ei(e)}var Ci=q||Za,Ii=Bs?sf(Bs):function(e){return Oi(e)&&et(e)==mo};function Ni(e){if(!Oi(e))return!1;var t=et(e);return t==vo||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ji(e)}function Mi(e){if(!Ri(e))return!1;var t=et(e);return t==yo||t==go||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ti(e){return"number"==typeof e&&e==Gi(e)}function Bi(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=fo}function Ri(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Oi(e){return null!=e&&"object"==typeof e}var Fi=Rs?sf(Rs):function(e){return Oi(e)&&Wr(e)==_o};function Pi(e){return"number"==typeof e||Oi(e)&&et(e)==wo}function ji(e){if(!Oi(e)||et(e)!=Ao)return!1;var t=I(e);if(null===t)return!0;var r=A.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==b}var Di=Os?sf(Os):function(e){return Oi(e)&&et(e)==So};var zi=Fs?sf(Fs):function(e){return Oi(e)&&Wr(e)==Eo};function Ui(e){return"string"==typeof e||!ki(e)&&Oi(e)&&et(e)==xo}function Li(e){return"symbol"==typeof e||Oi(e)&&et(e)==Co}var qi=Ps?sf(Ps):function(e){return Oi(e)&&Bi(e.length)&&!!Es[et(e)]};var Vi=kr(dt),Hi=kr(function(e,t){return e<=t});function Wi(e){if(!e)return[];if(Ei(e))return(Ui(e)?wf:ir)(e);if(R&&e[R])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[R]());var t=Wr(e);return(t==_o?mf:t==Eo?gf:ga)(e)}function Ki(e){return e?(e=Zi(e))!==1/0&&e!==-1/0?e==e?e:0:17976931348623157e292*(e<0?-1:1):0===e?e:0}function Gi(e){var t=Ki(e),r=t%1;return t==t?r?t-r:t:0}function Xi(e){return e?Pe(Gi(e),0,co):0}function Zi(e){if("number"==typeof e)return e;if(Li(e))return uo;if(Ri(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ri(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ts,"");var r=ls.test(e);return r||ps.test(e)?Is(e.slice(2),r?2:8):hs.test(e)?uo:+e}function Yi(e){return ar(e,ha(e))}function Qi(e){return null==e?"":Dt(e)}var Ji=sr(function(e,t){if(en(t)||Ei(t))ar(t,ca(t),e);else for(var r in t)A.call(t,r)&&Me(e,r,t[r])}),$i=sr(function(e,t){ar(t,ha(t),e)}),ea=sr(function(e,t,r,n){ar(t,ha(t),e,n)}),ta=sr(function(e,t,r,n){ar(t,ca(t),e,n)}),ra=Rr(Fe);var na=Et(function(e,t){e=w(e);var r=-1,n=t.length,i=2<n?t[2]:io;for(i&&Yr(t[0],t[1],i)&&(n=1);++r<n;)for(var a=t[r],o=ha(a),s=-1,f=o.length;++s<f;){var u=o[s],c=e[u];(c===io||gi(c,h[u])&&!A.call(e,u))&&(e[u]=a[u])}return e}),ia=Et(function(e){return e.push(io,Mr),js(da,io,e)});function aa(e,t,r){var n=null==e?io:Je(e,t);return n===io?r:n}function oa(e,t){return null!=e&&Kr(e,t,nt)}var sa=vr(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=p.call(t)),e[t]=r},Ra(Pa)),fa=vr(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=p.call(t)),A.call(e,t)?e[t].push(r):e[t]=[r]},zr),ua=Et(at);function ca(e){return(Ei(e)?Ee:ht)(e)}function ha(e){return Ei(e)?Ee(e,!0):lt(e)}var la=sr(function(e,t,r){vt(e,t,r)}),da=sr(function(e,t,r,n){vt(e,t,r,n)}),pa=Rr(function(t,e){var r={};if(null==t)return r;var n=!1;e=Ws(e,function(e){return e=Xt(e,t),n=n||1<e.length,e}),ar(t,Fr(t),r),n&&(r=je(r,7,Tr));for(var i=e.length;i--;)Ut(r,e[i]);return r});var ba=Rr(function(e,t){return null==e?{}:_t(r=e,t,function(e,t){return oa(r,t)});var r});function ma(e,r){if(null==e)return{};var t=Ws(Fr(e),function(e){return[e]});return r=zr(r),_t(e,t,function(e,t){return r(e,t[0])})}var va=Cr(ca),ya=Cr(ha);function ga(e){return null==e?[]:ff(e,ca(e))}var _a=hr(function(e,t,r){return t=t.toLowerCase(),e+(r?wa(t):t)});function wa(e){return Na(Qi(e).toLowerCase())}function Aa(e){return(e=Qi(e))&&e.replace(ms,lf).replace(_s,"")}var ka=hr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Sa=hr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Ea=cr("toLowerCase");var xa=hr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Ca=hr(function(e,t,r){return e+(r?" ":"")+Na(t)});var Ia=hr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Na=cr("toUpperCase");function Ma(e,t,r){return e=Qi(e),(t=r?io:t)===io?(n=e,As.test(n)?e.match(ws)||[]:e.match(ss)||[]):e.match(t)||[];var n}var Ta=Et(function(e,t){try{return js(e,io,t)}catch(e){return Ni(e)?e:new i(e)}}),Ba=Rr(function(t,e){return zs(e,function(e){e=mn(e),Oe(t,e,fi(t[e],t))}),t});function Ra(e){return function(){return e}}var Oa=br(),Fa=br(!0);function Pa(e){return e}function ja(e){return ct("function"==typeof e?e:je(e,1))}var Da=Et(function(t,r){return function(e){return at(e,t,r)}}),za=Et(function(t,r){return function(e){return at(t,e,r)}});function Ua(n,t,e){var r=ca(t),i=Qe(t,r);null!=e||Ri(t)&&(i.length||!r.length)||(e=t,t=n,n=this,i=Qe(t,ca(t)));var a=!(Ri(e)&&"chain"in e&&!e.chain),o=Mi(n);return zs(i,function(e){var r=t[e];n[e]=r,o&&(n.prototype[e]=function(){var e=this.__chain__;if(a||e){var t=n(this.__wrapped__);return(t.__actions__=ir(this.__actions__)).push({func:r,args:arguments,thisArg:n}),t.__chain__=e,t}return r.apply(n,Ks([this.value()],arguments))})}),n}function La(){}var qa=gr(Ws),Va=gr(Ls),Ha=gr(Zs);function Wa(e){return Qr(e)?rf(mn(e)):(t=e,function(e){return Je(e,t)});var t}var Ka=Ar(),Ga=Ar(!0);function Xa(){return[]}function Za(){return!1}var Ya=yr(function(e,t){return e+t},0),Qa=Er("ceil"),Ja=yr(function(e,t){return e/t},1),$a=Er("floor");var eo,to=yr(function(e,t){return e*t},1),ro=Er("round"),no=yr(function(e,t){return e-t},0);return pe.after=function(e,t){if("function"!=typeof t)throw new g(ao);return e=Gi(e),function(){if(--e<1)return t.apply(this,arguments)}},pe.ary=oi,pe.assign=Ji,pe.assignIn=$i,pe.assignInWith=ea,pe.assignWith=ta,pe.at=ra,pe.before=si,pe.bind=fi,pe.bindAll=Ba,pe.bindKey=ui,pe.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ki(e)?e:[e]},pe.chain=Wn,pe.chunk=function(e,t,r){t=(r?Yr(e,t,r):t===io)?1:K(Gi(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var i=0,a=0,o=E(z(n/t));i<n;)o[a++]=Bt(e,i,i+=t);return o},pe.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var a=e[t];a&&(i[n++]=a)}return i},pe.concat=function(){var e=arguments.length;if(!e)return[];for(var t=E(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Ks(ki(r)?ir(r):[r],Ke(t,1))},pe.cond=function(n){var i=null==n?0:n.length,t=zr();return n=i?Ws(n,function(e){if("function"!=typeof e[1])throw new g(ao);return[t(e[0]),e[1]]}):[],Et(function(e){for(var t=-1;++t<i;){var r=n[t];if(js(r[0],this,e))return js(r[1],this,e)}})},pe.conforms=function(e){return t=je(e,1),r=ca(t),function(e){return De(e,t,r)};var t,r},pe.constant=Ra,pe.countBy=Xn,pe.create=function(e,t){var r=be(e);return null==t?r:Re(r,t)},pe.curry=function e(t,r,n){var i=Ir(t,8,io,io,io,io,io,r=n?io:r);return i.placeholder=e.placeholder,i},pe.curryRight=function e(t,r,n){var i=Ir(t,16,io,io,io,io,io,r=n?io:r);return i.placeholder=e.placeholder,i},pe.debounce=ci,pe.defaults=na,pe.defaultsDeep=ia,pe.defer=hi,pe.delay=li,pe.difference=gn,pe.differenceBy=_n,pe.differenceWith=wn,pe.drop=function(e,t,r){var n=null==e?0:e.length;return n?Bt(e,(t=r||t===io?1:Gi(t))<0?0:t,n):[]},pe.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?Bt(e,0,(t=n-(t=r||t===io?1:Gi(t)))<0?0:t):[]},pe.dropRightWhile=function(e,t){return e&&e.length?qt(e,zr(t,3),!0,!0):[]},pe.dropWhile=function(e,t){return e&&e.length?qt(e,zr(t,3),!0):[]},pe.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Yr(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=Gi(r))<0&&(r=i<-r?0:i+r),(n=n===io||i<n?i:Gi(n))<0&&(n+=i),n=n<r?0:Xi(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},pe.filter=function(e,t){return(ki(e)?qs:We)(e,zr(t,3))},pe.flatMap=function(e,t){return Ke(ri(e,t),1)},pe.flatMapDeep=function(e,t){return Ke(ri(e,t),1/0)},pe.flatMapDepth=function(e,t,r){return r=r===io?1:Gi(r),Ke(ri(e,t),r)},pe.flatten=Sn,pe.flattenDeep=function(e){return(null==e?0:e.length)?Ke(e,1/0):[]},pe.flattenDepth=function(e,t){return(null==e?0:e.length)?Ke(e,t=t===io?1:Gi(t)):[]},pe.flip=function(e){return Ir(e,512)},pe.flow=Oa,pe.flowRight=Fa,pe.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},pe.functions=function(e){return null==e?[]:Qe(e,ca(e))},pe.functionsIn=function(e){return null==e?[]:Qe(e,ha(e))},pe.groupBy=$n,pe.initial=function(e){return(null==e?0:e.length)?Bt(e,0,-1):[]},pe.intersection=xn,pe.intersectionBy=Cn,pe.intersectionWith=In,pe.invert=sa,pe.invertBy=fa,pe.invokeMap=ei,pe.iteratee=ja,pe.keyBy=ti,pe.keys=ca,pe.keysIn=ha,pe.map=ri,pe.mapKeys=function(e,n){var i={};return n=zr(n,3),Ze(e,function(e,t,r){Oe(i,n(e,t,r),e)}),i},pe.mapValues=function(e,n){var i={};return n=zr(n,3),Ze(e,function(e,t,r){Oe(i,t,n(e,t,r))}),i},pe.matches=function(e){return bt(je(e,1))},pe.matchesProperty=function(e,t){return mt(e,je(t,1))},pe.memoize=di,pe.merge=la,pe.mergeWith=da,pe.method=Da,pe.methodOf=za,pe.mixin=Ua,pe.negate=pi,pe.nthArg=function(t){return t=Gi(t),Et(function(e){return yt(e,t)})},pe.omit=pa,pe.omitBy=function(e,t){return ma(e,pi(zr(t)))},pe.once=function(e){return si(2,e)},pe.orderBy=function(e,t,r,n){return null==e?[]:(ki(t)||(t=null==t?[]:[t]),ki(r=n?io:r)||(r=null==r?[]:[r]),gt(e,t,r))},pe.over=qa,pe.overArgs=bi,pe.overEvery=Va,pe.overSome=Ha,pe.partial=mi,pe.partialRight=vi,pe.partition=ni,pe.pick=ba,pe.pickBy=ma,pe.property=Wa,pe.propertyOf=function(t){return function(e){return null==t?io:Je(t,e)}},pe.pull=Mn,pe.pullAll=Tn,pe.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?wt(e,t,zr(r,2)):e},pe.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?wt(e,t,io,r):e},pe.pullAt=Bn,pe.range=Ka,pe.rangeRight=Ga,pe.rearg=yi,pe.reject=function(e,t){return(ki(e)?qs:We)(e,pi(zr(t,3)))},pe.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],a=e.length;for(t=zr(t,3);++n<a;){var o=e[n];t(o,n,e)&&(r.push(o),i.push(n))}return At(e,i),r},pe.rest=function(e,t){if("function"!=typeof e)throw new g(ao);return Et(e,t=t===io?t:Gi(t))},pe.reverse=Rn,pe.sampleSize=function(e,t,r){return t=(r?Yr(e,t,r):t===io)?1:Gi(t),(ki(e)?Ce:Ct)(e,t)},pe.set=function(e,t,r){return null==e?e:It(e,t,r)},pe.setWith=function(e,t,r,n){return n="function"==typeof n?n:io,null==e?e:It(e,t,r,n)},pe.shuffle=function(e){return(ki(e)?Ie:Tt)(e)},pe.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r=r&&"number"!=typeof r&&Yr(e,t,r)?(t=0,n):(t=null==t?0:Gi(t),r===io?n:Gi(r)),Bt(e,t,r)):[]},pe.sortBy=ii,pe.sortedUniq=function(e){return e&&e.length?Pt(e):[]},pe.sortedUniqBy=function(e,t){return e&&e.length?Pt(e,zr(t,2)):[]},pe.split=function(e,t,r){return r&&"number"!=typeof r&&Yr(e,t,r)&&(t=r=io),(r=r===io?co:r>>>0)?(e=Qi(e))&&("string"==typeof t||null!=t&&!Di(t))&&!(t=Dt(t))&&bf(e)?Yt(wf(e),0,r):e.split(t,r):[]},pe.spread=function(n,i){if("function"!=typeof n)throw new g(ao);return i=null==i?0:K(Gi(i),0),Et(function(e){var t=e[i],r=Yt(e,0,i);return t&&Ks(r,t),js(n,this,r)})},pe.tail=function(e){var t=null==e?0:e.length;return t?Bt(e,1,t):[]},pe.take=function(e,t,r){return e&&e.length?Bt(e,0,(t=r||t===io?1:Gi(t))<0?0:t):[]},pe.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Bt(e,(t=n-(t=r||t===io?1:Gi(t)))<0?0:t,n):[]},pe.takeRightWhile=function(e,t){return e&&e.length?qt(e,zr(t,3),!1,!0):[]},pe.takeWhile=function(e,t){return e&&e.length?qt(e,zr(t,3)):[]},pe.tap=function(e,t){return t(e),e},pe.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new g(ao);return Ri(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ci(e,t,{leading:n,maxWait:t,trailing:i})},pe.thru=Kn,pe.toArray=Wi,pe.toPairs=va,pe.toPairsIn=ya,pe.toPath=function(e){return ki(e)?Ws(e,mn):Li(e)?[e]:ir(bn(Qi(e)))},pe.toPlainObject=Yi,pe.transform=function(e,n,i){var t=ki(e),r=t||Ci(e)||qi(e);if(n=zr(n,4),null==i){var a=e&&e.constructor;i=r?t?new a:[]:Ri(e)&&Mi(a)?be(I(e)):{}}return(r?zs:Ze)(e,function(e,t,r){return n(i,e,t,r)}),i},pe.unary=function(e){return oi(e,1)},pe.union=On,pe.unionBy=Fn,pe.unionWith=Pn,pe.uniq=function(e){return e&&e.length?zt(e):[]},pe.uniqBy=function(e,t){return e&&e.length?zt(e,zr(t,2)):[]},pe.uniqWith=function(e,t){return t="function"==typeof t?t:io,e&&e.length?zt(e,io,t):[]},pe.unset=function(e,t){return null==e||Ut(e,t)},pe.unzip=jn,pe.unzipWith=Dn,pe.update=function(e,t,r){return null==e?e:Lt(e,t,Gt(r))},pe.updateWith=function(e,t,r,n){return n="function"==typeof n?n:io,null==e?e:Lt(e,t,Gt(r),n)},pe.values=ga,pe.valuesIn=function(e){return null==e?[]:ff(e,ha(e))},pe.without=zn,pe.words=Ma,pe.wrap=function(e,t){return mi(Gt(t),e)},pe.xor=Un,pe.xorBy=Ln,pe.xorWith=qn,pe.zip=Vn,pe.zipObject=function(e,t){return Wt(e||[],t||[],Me)},pe.zipObjectDeep=function(e,t){return Wt(e||[],t||[],It)},pe.zipWith=Hn,pe.entries=va,pe.entriesIn=ya,pe.extend=$i,pe.extendWith=ea,Ua(pe,pe),pe.add=Ya,pe.attempt=Ta,pe.camelCase=_a,pe.capitalize=wa,pe.ceil=Qa,pe.clamp=function(e,t,r){return r===io&&(r=t,t=io),r!==io&&(r=(r=Zi(r))==r?r:0),t!==io&&(t=(t=Zi(t))==t?t:0),Pe(Zi(e),t,r)},pe.clone=function(e){return je(e,4)},pe.cloneDeep=function(e){return je(e,5)},pe.cloneDeepWith=function(e,t){return je(e,5,t="function"==typeof t?t:io)},pe.cloneWith=function(e,t){return je(e,4,t="function"==typeof t?t:io)},pe.conformsTo=function(e,t){return null==t||De(e,t,ca(t))},pe.deburr=Aa,pe.defaultTo=function(e,t){return null==e||e!=e?t:e},pe.divide=Ja,pe.endsWith=function(e,t,r){e=Qi(e),t=Dt(t);var n=e.length,i=r=r===io?n:Pe(Gi(r),0,n);return 0<=(r-=t.length)&&e.slice(r,i)==t},pe.eq=gi,pe.escape=function(e){return(e=Qi(e))&&Ko.test(e)?e.replace(Ho,df):e},pe.escapeRegExp=function(e){return(e=Qi(e))&&es.test(e)?e.replace($o,"\\$&"):e},pe.every=function(e,t,r){var n=ki(e)?Ls:Ve;return r&&Yr(e,t,r)&&(t=io),n(e,zr(t,3))},pe.find=Zn,pe.findIndex=An,pe.findKey=function(e,t){return Ys(e,zr(t,3),Ze)},pe.findLast=Yn,pe.findLastIndex=kn,pe.findLastKey=function(e,t){return Ys(e,zr(t,3),Ye)},pe.floor=$a,pe.forEach=Qn,pe.forEachRight=Jn,pe.forIn=function(e,t){return null==e?e:Ge(e,zr(t,3),ha)},pe.forInRight=function(e,t){return null==e?e:Xe(e,zr(t,3),ha)},pe.forOwn=function(e,t){return e&&Ze(e,zr(t,3))},pe.forOwnRight=function(e,t){return e&&Ye(e,zr(t,3))},pe.get=aa,pe.gt=_i,pe.gte=wi,pe.has=function(e,t){return null!=e&&Kr(e,t,rt)},pe.hasIn=oa,pe.head=En,pe.identity=Pa,pe.includes=function(e,t,r,n){e=Ei(e)?e:ga(e),r=r&&!n?Gi(r):0;var i=e.length;return r<0&&(r=K(i+r,0)),Ui(e)?r<=i&&-1<e.indexOf(t,r):!!i&&-1<Js(e,t,r)},pe.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Gi(r);return i<0&&(i=K(n+i,0)),Js(e,t,i)},pe.inRange=function(e,t,r){return t=Ki(t),r===io?(r=t,t=0):r=Ki(r),e=Zi(e),(n=e)>=G(i=t,a=r)&&n<K(i,a);var n,i,a},pe.invoke=ua,pe.isArguments=Ai,pe.isArray=ki,pe.isArrayBuffer=Si,pe.isArrayLike=Ei,pe.isArrayLikeObject=xi,pe.isBoolean=function(e){return!0===e||!1===e||Oi(e)&&et(e)==bo},pe.isBuffer=Ci,pe.isDate=Ii,pe.isElement=function(e){return Oi(e)&&1===e.nodeType&&!ji(e)},pe.isEmpty=function(e){if(null==e)return!0;if(Ei(e)&&(ki(e)||"string"==typeof e||"function"==typeof e.splice||Ci(e)||qi(e)||Ai(e)))return!e.length;var t=Wr(e);if(t==_o||t==Eo)return!e.size;if(en(e))return!ht(e).length;for(var r in e)if(A.call(e,r))return!1;return!0},pe.isEqual=function(e,t){return st(e,t)},pe.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:io)?r(e,t):io;return n===io?st(e,t,io,r):!!n},pe.isError=Ni,pe.isFinite=function(e){return"number"==typeof e&&V(e)},pe.isFunction=Mi,pe.isInteger=Ti,pe.isLength=Bi,pe.isMap=Fi,pe.isMatch=function(e,t){return e===t||ft(e,t,Lr(t))},pe.isMatchWith=function(e,t,r){return r="function"==typeof r?r:io,ft(e,t,Lr(t),r)},pe.isNaN=function(e){return Pi(e)&&e!=+e},pe.isNative=function(e){if($r(e))throw new i("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ut(e)},pe.isNil=function(e){return null==e},pe.isNull=function(e){return null===e},pe.isNumber=Pi,pe.isObject=Ri,pe.isObjectLike=Oi,pe.isPlainObject=ji,pe.isRegExp=Di,pe.isSafeInteger=function(e){return Ti(e)&&-fo<=e&&e<=fo},pe.isSet=zi,pe.isString=Ui,pe.isSymbol=Li,pe.isTypedArray=qi,pe.isUndefined=function(e){return e===io},pe.isWeakMap=function(e){return Oi(e)&&Wr(e)==Io},pe.isWeakSet=function(e){return Oi(e)&&"[object WeakSet]"==et(e)},pe.join=function(e,t){return null==e?"":H.call(e,t)},pe.kebabCase=ka,pe.last=Nn,pe.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==io&&(i=(i=Gi(r))<0?K(n+i,0):G(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Qs(e,ef,i,!0)},pe.lowerCase=Sa,pe.lowerFirst=Ea,pe.lt=Vi,pe.lte=Hi,pe.max=function(e){return e&&e.length?He(e,Pa,tt):io},pe.maxBy=function(e,t){return e&&e.length?He(e,zr(t,2),tt):io},pe.mean=function(e){return tf(e,Pa)},pe.meanBy=function(e,t){return tf(e,zr(t,2))},pe.min=function(e){return e&&e.length?He(e,Pa,dt):io},pe.minBy=function(e,t){return e&&e.length?He(e,zr(t,2),dt):io},pe.stubArray=Xa,pe.stubFalse=Za,pe.stubObject=function(){return{}},pe.stubString=function(){return""},pe.stubTrue=function(){return!0},pe.multiply=to,pe.nth=function(e,t){return e&&e.length?yt(e,Gi(t)):io},pe.noConflict=function(){return Ns._===this&&(Ns._=y),this},pe.noop=La,pe.now=ai,pe.pad=function(e,t,r){e=Qi(e);var n=(t=Gi(t))?_f(e):0;if(!t||t<=n)return e;var i=(t-n)/2;return _r(U(i),r)+e+_r(z(i),r)},pe.padEnd=function(e,t,r){e=Qi(e);var n=(t=Gi(t))?_f(e):0;return t&&n<t?e+_r(t-n,r):e},pe.padStart=function(e,t,r){e=Qi(e);var n=(t=Gi(t))?_f(e):0;return t&&n<t?_r(t-n,r)+e:e},pe.parseInt=function(e,t,r){return t=r||null==t?0:t&&+t,Z(Qi(e).replace(rs,""),t||0)},pe.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Yr(e,t,r)&&(t=r=io),r===io&&("boolean"==typeof t?(r=t,t=io):"boolean"==typeof e&&(r=e,e=io)),e===io&&t===io?(e=0,t=1):(e=Ki(e),t===io?(t=e,e=0):t=Ki(t)),t<e){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Y();return G(e+i*(t-e+Cs("1e-"+((i+"").length-1))),t)}return kt(e,t)},pe.reduce=function(e,t,r){var n=ki(e)?Gs:nf,i=arguments.length<3;return n(e,zr(t,4),r,i,Le)},pe.reduceRight=function(e,t,r){var n=ki(e)?Xs:nf,i=arguments.length<3;return n(e,zr(t,4),r,i,qe)},pe.repeat=function(e,t,r){return t=(r?Yr(e,t,r):t===io)?1:Gi(t),St(Qi(e),t)},pe.replace=function(){var e=arguments,t=Qi(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pe.result=function(e,t,r){var n=-1,i=(t=Xt(t,e)).length;for(i||(i=1,e=io);++n<i;){var a=null==e?io:e[mn(t[n])];a===io&&(n=i,a=r),e=Mi(a)?a.call(e):a}return e},pe.round=ro,pe.runInContext=e,pe.sample=function(e){return(ki(e)?xe:xt)(e)},pe.size=function(e){if(null==e)return 0;if(Ei(e))return Ui(e)?_f(e):e.length;var t=Wr(e);return t==_o||t==Eo?e.size:ht(e).length},pe.snakeCase=xa,pe.some=function(e,t,r){var n=ki(e)?Zs:Rt;return r&&Yr(e,t,r)&&(t=io),n(e,zr(t,3))},pe.sortedIndex=function(e,t){return Ot(e,t)},pe.sortedIndexBy=function(e,t,r){return Ft(e,t,zr(r,2))},pe.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=Ot(e,t);if(n<r&&gi(e[n],t))return n}return-1},pe.sortedLastIndex=function(e,t){return Ot(e,t,!0)},pe.sortedLastIndexBy=function(e,t,r){return Ft(e,t,zr(r,2),!0)},pe.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=Ot(e,t,!0)-1;if(gi(e[r],t))return r}return-1},pe.startCase=Ca,pe.startsWith=function(e,t,r){return e=Qi(e),r=null==r?0:Pe(Gi(r),0,e.length),t=Dt(t),e.slice(r,r+t.length)==t},pe.subtract=no,pe.sum=function(e){return e&&e.length?af(e,Pa):0},pe.sumBy=function(e,t){return e&&e.length?af(e,zr(t,2)):0},pe.template=function(o,e,t){var r=pe.templateSettings;t&&Yr(o,e,t)&&(e=io),o=Qi(o),e=ea({},e,r,Nr);var s,f,n=ea({},e.imports,r.imports,Nr),i=ca(n),a=ff(n,i),u=0,c=e.interpolate||vs,h="__p += '",l=v((e.escape||vs).source+"|"+c.source+"|"+(c===Zo?us:vs).source+"|"+(e.evaluate||vs).source+"|$","g"),d="//# sourceURL="+(A.call(e,"sourceURL")?(e.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Ss+"]")+"\n";o.replace(l,function(e,t,r,n,i,a){return r=r||n,h+=o.slice(u,a).replace(ys,pf),t&&(s=!0,h+="' +\n__e("+t+") +\n'"),i&&(f=!0,h+="';\n"+i+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=a+e.length,e}),h+="';\n";var p=A.call(e,"variable")&&e.variable;p||(h="with (obj) {\n"+h+"\n}\n"),h=(f?h.replace(Uo,""):h).replace(Lo,"$1").replace(qo,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(f?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var b=Ta(function(){return m(i,d+"return "+h).apply(io,a)});if(b.source=h,Ni(b))throw b;return b},pe.times=function(e,t){if((e=Gi(e))<1||fo<e)return[];var r=co,n=G(e,co);t=zr(t),e-=co;for(var i=of(n,t);++r<e;)t(r);return i},pe.toFinite=Ki,pe.toInteger=Gi,pe.toLength=Xi,pe.toLower=function(e){return Qi(e).toLowerCase()},pe.toNumber=Zi,pe.toSafeInteger=function(e){return e?Pe(Gi(e),-fo,fo):0===e?e:0},pe.toString=Qi,pe.toUpper=function(e){return Qi(e).toUpperCase()},pe.trim=function(e,t,r){if((e=Qi(e))&&(r||t===io))return e.replace(ts,"");if(!e||!(t=Dt(t)))return e;var n=wf(e),i=wf(t);return Yt(n,cf(n,i),hf(n,i)+1).join("")},pe.trimEnd=function(e,t,r){if((e=Qi(e))&&(r||t===io))return e.replace(ns,"");if(!e||!(t=Dt(t)))return e;var n=wf(e);return Yt(n,0,hf(n,wf(t))+1).join("")},pe.trimStart=function(e,t,r){if((e=Qi(e))&&(r||t===io))return e.replace(rs,"");if(!e||!(t=Dt(t)))return e;var n=wf(e);return Yt(n,cf(n,wf(t))).join("")},pe.truncate=function(e,t){var r=30,n="...";if(Ri(t)){var i="separator"in t?t.separator:i;r="length"in t?Gi(t.length):r,n="omission"in t?Dt(t.omission):n}var a=(e=Qi(e)).length;if(bf(e)){var o=wf(e);a=o.length}if(a<=r)return e;var s=r-_f(n);if(s<1)return n;var f=o?Yt(o,0,s).join(""):e.slice(0,s);if(i===io)return f+n;if(o&&(s+=f.length-s),Di(i)){if(e.slice(s).search(i)){var u,c=f;for(i.global||(i=v(i.source,Qi(cs.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var h=u.index;f=f.slice(0,h===io?s:h)}}else if(e.indexOf(Dt(i),s)!=s){var l=f.lastIndexOf(i);-1<l&&(f=f.slice(0,l))}return f+n},pe.unescape=function(e){return(e=Qi(e))&&Wo.test(e)?e.replace(Vo,Af):e},pe.uniqueId=function(e){var t=++l;return Qi(e)+t},pe.upperCase=Ia,pe.upperFirst=Na,pe.each=Qn,pe.eachRight=Jn,pe.first=En,Ua(pe,(eo={},Ze(pe,function(e,t){A.call(pe.prototype,t)||(eo[t]=e)}),eo),{chain:!1}),pe.VERSION="4.17.15",zs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pe[e].placeholder=pe}),zs(["drop","take"],function(r,n){ge.prototype[r]=function(e){e=e===io?1:K(Gi(e),0);var t=this.__filtered__&&!n?new ge(this):this.clone();return t.__filtered__?t.__takeCount__=G(e,t.__takeCount__):t.__views__.push({size:G(e,co),type:r+(t.__dir__<0?"Right":"")}),t},ge.prototype[r+"Right"]=function(e){return this.reverse()[r](e).reverse()}}),zs(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;ge.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:zr(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),zs(["head","last"],function(e,t){var r="take"+(t?"Right":"");ge.prototype[e]=function(){return this[r](1).value()[0]}}),zs(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ge.prototype[e]=function(){return this.__filtered__?new ge(this):this[r](1)}}),ge.prototype.compact=function(){return this.filter(Pa)},ge.prototype.find=function(e){return this.filter(e).head()},ge.prototype.findLast=function(e){return this.reverse().find(e)},ge.prototype.invokeMap=Et(function(t,r){return"function"==typeof t?new ge(this):this.map(function(e){return at(e,t,r)})}),ge.prototype.reject=function(e){return this.filter(pi(zr(e)))},ge.prototype.slice=function(e,t){e=Gi(e);var r=this;return r.__filtered__&&(0<e||t<0)?new ge(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==io&&(r=(t=Gi(t))<0?r.dropRight(-t):r.take(t-e)),r)},ge.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ge.prototype.toArray=function(){return this.take(co)},Ze(ge.prototype,function(h,e){var l=/^(?:filter|find|map|reject)|While$/.test(e),d=/^(?:head|last)$/.test(e),p=pe[d?"take"+("last"==e?"Right":""):e],b=d||/^find/.test(e);p&&(pe.prototype[e]=function(){function e(e){var t=p.apply(pe,Ks([e],r));return d&&o?t[0]:t}var t=this.__wrapped__,r=d?[1]:arguments,n=t instanceof ge,i=r[0],a=n||ki(t);a&&l&&"function"==typeof i&&1!=i.length&&(n=a=!1);var o=this.__chain__,s=!!this.__actions__.length,f=b&&!o,u=n&&!s;if(b||!a)return f&&u?h.apply(this,r):(c=this.thru(e),f?d?c.value()[0]:c.value():c);t=u?t:new ge(this);var c=h.apply(t,r);return c.__actions__.push({func:Kn,args:[e],thisArg:io}),new ye(c,o)})}),zs(["pop","push","shift","sort","splice","unshift"],function(e){var r=o[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);pe.prototype[e]=function(){var t=arguments;if(!i||this.__chain__)return this[n](function(e){return r.apply(ki(e)?e:[],t)});var e=this.value();return r.apply(ki(e)?e:[],t)}}),Ze(ge.prototype,function(e,t){var r=pe[t];if(r){var n=r.name+"";A.call(ae,n)||(ae[n]=[]),ae[n].push({name:t,func:r})}}),ae[mr(io,2).name]=[{name:"wrapper",func:io}],ge.prototype.clone=function(){var e=new ge(this.__wrapped__);return e.__actions__=ir(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ir(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ir(this.__views__),e},ge.prototype.reverse=function(){if(this.__filtered__){var e=new ge(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ge.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ki(e),n=t<0,i=r?e.length:0,a=function(e,t,r){var n=-1,i=r.length;for(;++n<i;){var a=r[n],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=G(t,e+o);break;case"takeRight":e=K(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,f=s-o,u=n?s:o-1,c=this.__iteratees__,h=c.length,l=0,d=G(f,this.__takeCount__);if(!r||!n&&i==f&&d==f)return Vt(e,this.__actions__);var p=[];e:for(;f--&&l<d;){for(var b=-1,m=e[u+=t];++b<h;){var v=c[b],y=v.iteratee,g=v.type,_=y(m);if(2==g)m=_;else if(!_){if(1==g)continue e;break e}}p[l++]=m}return p},pe.prototype.at=Gn,pe.prototype.chain=function(){return Wn(this)},pe.prototype.commit=function(){return new ye(this.value(),this.__chain__)},pe.prototype.next=function(){this.__values__===io&&(this.__values__=Wi(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?io:this.__values__[this.__index__++]}},pe.prototype.plant=function(e){for(var t,r=this;r instanceof ve;){var n=yn(r);n.__index__=0,n.__values__=io,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},pe.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ge){var t=e;return this.__actions__.length&&(t=new ge(this)),(t=t.reverse()).__actions__.push({func:Kn,args:[Rn],thisArg:io}),new ye(t,this.__chain__)}return this.thru(Rn)},pe.prototype.toJSON=pe.prototype.valueOf=pe.prototype.value=function(){return Vt(this.__wrapped__,this.__actions__)},pe.prototype.first=pe.prototype.head,R&&(pe.prototype[R]=function(){return this}),pe}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Ns._=kf,define(function(){return kf})):O?((O.exports=kf)._=kf,R._=kf):Ns._=kf}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],171:[function(e,t,r){"use strict";var n=e("inherits"),i=e("hash-base"),a=e("safe-buffer").Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function f(e,t){return e<<t|e>>>32-t}function u(e,t,r,n,i,a,o){return f(e+(t&r|~t&n)+i+a|0,o)+t|0}function c(e,t,r,n,i,a,o){return f(e+(t&n|r&~n)+i+a|0,o)+t|0}function h(e,t,r,n,i,a,o){return f(e+(t^r^n)+i+a|0,o)+t|0}function l(e,t,r,n,i,a,o){return f(e+(r^(t|~n))+i+a|0,o)+t|0}n(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,a=this._d;r=u(r,n,i,a,e[0],3614090360,7),a=u(a,r,n,i,e[1],3905402710,12),i=u(i,a,r,n,e[2],606105819,17),n=u(n,i,a,r,e[3],3250441966,22),r=u(r,n,i,a,e[4],4118548399,7),a=u(a,r,n,i,e[5],1200080426,12),i=u(i,a,r,n,e[6],2821735955,17),n=u(n,i,a,r,e[7],4249261313,22),r=u(r,n,i,a,e[8],1770035416,7),a=u(a,r,n,i,e[9],2336552879,12),i=u(i,a,r,n,e[10],4294925233,17),n=u(n,i,a,r,e[11],2304563134,22),r=u(r,n,i,a,e[12],1804603682,7),a=u(a,r,n,i,e[13],4254626195,12),i=u(i,a,r,n,e[14],2792965006,17),r=c(r,n=u(n,i,a,r,e[15],1236535329,22),i,a,e[1],4129170786,5),a=c(a,r,n,i,e[6],3225465664,9),i=c(i,a,r,n,e[11],643717713,14),n=c(n,i,a,r,e[0],3921069994,20),r=c(r,n,i,a,e[5],3593408605,5),a=c(a,r,n,i,e[10],38016083,9),i=c(i,a,r,n,e[15],3634488961,14),n=c(n,i,a,r,e[4],3889429448,20),r=c(r,n,i,a,e[9],568446438,5),a=c(a,r,n,i,e[14],3275163606,9),i=c(i,a,r,n,e[3],4107603335,14),n=c(n,i,a,r,e[8],1163531501,20),r=c(r,n,i,a,e[13],2850285829,5),a=c(a,r,n,i,e[2],4243563512,9),i=c(i,a,r,n,e[7],1735328473,14),r=h(r,n=c(n,i,a,r,e[12],2368359562,20),i,a,e[5],4294588738,4),a=h(a,r,n,i,e[8],2272392833,11),i=h(i,a,r,n,e[11],1839030562,16),n=h(n,i,a,r,e[14],4259657740,23),r=h(r,n,i,a,e[1],2763975236,4),a=h(a,r,n,i,e[4],1272893353,11),i=h(i,a,r,n,e[7],4139469664,16),n=h(n,i,a,r,e[10],3200236656,23),r=h(r,n,i,a,e[13],681279174,4),a=h(a,r,n,i,e[0],3936430074,11),i=h(i,a,r,n,e[3],3572445317,16),n=h(n,i,a,r,e[6],76029189,23),r=h(r,n,i,a,e[9],3654602809,4),a=h(a,r,n,i,e[12],3873151461,11),i=h(i,a,r,n,e[15],530742520,16),r=l(r,n=h(n,i,a,r,e[2],3299628645,23),i,a,e[0],4096336452,6),a=l(a,r,n,i,e[7],1126891415,10),i=l(i,a,r,n,e[14],2878612391,15),n=l(n,i,a,r,e[5],4237533241,21),r=l(r,n,i,a,e[12],1700485571,6),a=l(a,r,n,i,e[3],2399980690,10),i=l(i,a,r,n,e[10],4293915773,15),n=l(n,i,a,r,e[1],2240044497,21),r=l(r,n,i,a,e[8],1873313359,6),a=l(a,r,n,i,e[15],4264355552,10),i=l(i,a,r,n,e[6],2734768916,15),n=l(n,i,a,r,e[13],1309151649,21),r=l(r,n,i,a,e[4],4149444226,6),a=l(a,r,n,i,e[11],3174756917,10),i=l(i,a,r,n,e[2],718787259,15),n=l(n,i,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":115,inherits:131,"safe-buffer":225}],172:[function(e,t,r){var d=e("bn.js"),n=e("brorand");function i(e){this.rand=e||new n.Rand}(t.exports=i).create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new d(this.rand.generate(r))}while(0<=n.cmp(e));return n},i.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},i.prototype.test=function(e,t,r){var n=e.bitLength(),i=d.mont(e),a=new d(1).toRed(i);t=t||Math.max(1,n/48|0);for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var f=e.shrn(s),u=o.toRed(i);0<t;t--){var c=this._randrange(new d(2),o);r&&r(c);var h=c.toRed(i).redPow(f);if(0!==h.cmp(a)&&0!==h.cmp(u)){for(var l=1;l<s;l++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(u))break}if(l===s)return!1}}return!0},i.prototype.getDivisor=function(e,t){var r=e.bitLength(),n=d.mont(e),i=new d(1).toRed(n);t=t||Math.max(1,r/48|0);for(var a=e.subn(1),o=0;!a.testn(o);o++);for(var s=e.shrn(o),f=a.toRed(n);0<t;t--){var u=this._randrange(new d(2),a),c=e.gcd(u);if(0!==c.cmpn(1))return c;var h=u.toRed(n).redPow(s);if(0!==h.cmp(i)&&0!==h.cmp(f)){for(var l=1;l<o;l++){if(0===(h=h.redSqr()).cmp(i))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(f))break}if(l===o)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":45,brorand:46}],173:[function(e,t,r){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}(t.exports=n).equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],174:[function(e,t,r){"use strict";var n=r;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),a=i>>8,o=255&i;a?r.push(a,o):r.push(o)}return r},n.zero2=i,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}},{}],175:[function(e,t,r){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":176,"./lib/inflate":177,"./lib/utils/common":178,"./lib/zlib/constants":181}],176:[function(e,t,r){"use strict";var o=e("./zlib/deflate"),s=e("./utils/common"),f=e("./utils/strings"),i=e("./zlib/messages"),a=e("./zlib/zstream"),u=Object.prototype.toString,c=0,h=-1,l=0,d=8;function p(e){if(!(this instanceof p))return new p(e);this.options=s.assign({level:h,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:l,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=o.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(i[r]);if(t.header&&o.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="string"==typeof t.dictionary?f.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=o.deflateSetDictionary(this.strm,n))!==c)throw new Error(i[r]);this._dict_set=!0}}function n(e,t){var r=new p(t);if(r.push(e,!0),r.err)throw r.msg||i[r.err];return r.result}p.prototype.push=function(e,t){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=f.string2buf(e):"[object ArrayBuffer]"===u.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new s.Buf8(a),i.next_out=0,i.avail_out=a),1!==(r=o.deflate(i,n))&&r!==c)return this.onEnd(r),!(this.ended=!0);0!==i.avail_out&&(0!==i.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(f.buf2binstring(s.shrinkBuf(i.output,i.next_out))):this.onData(s.shrinkBuf(i.output,i.next_out)))}while((0<i.avail_in||0===i.avail_out)&&1!==r);return 4===n?(r=o.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==n||(this.onEnd(c),!(i.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=p,r.deflate=n,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,n(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,n(e,t)}},{"./utils/common":178,"./utils/strings":179,"./zlib/deflate":183,"./zlib/messages":188,"./zlib/zstream":190}],177:[function(e,t,r){"use strict";var h=e("./zlib/inflate"),l=e("./utils/common"),d=e("./utils/strings"),p=e("./zlib/constants"),n=e("./zlib/messages"),i=e("./zlib/zstream"),a=e("./zlib/gzheader"),b=Object.prototype.toString;function o(e){if(!(this instanceof o))return new o(e);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var r=h.inflateInit2(this.strm,t.windowBits);if(r!==p.Z_OK)throw new Error(n[r]);if(this.header=new a,h.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=d.string2buf(t.dictionary):"[object ArrayBuffer]"===b.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=h.inflateSetDictionary(this.strm,t.dictionary))!==p.Z_OK))throw new Error(n[r])}function s(e,t){var r=new o(t);if(r.push(e,!0),r.err)throw r.msg||n[r.err];return r.result}o.prototype.push=function(e,t){var r,n,i,a,o,s=this.strm,f=this.options.chunkSize,u=this.options.dictionary,c=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?p.Z_FINISH:p.Z_NO_FLUSH,"string"==typeof e?s.input=d.binstring2buf(e):"[object ArrayBuffer]"===b.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new l.Buf8(f),s.next_out=0,s.avail_out=f),(r=h.inflate(s,p.Z_NO_FLUSH))===p.Z_NEED_DICT&&u&&(r=h.inflateSetDictionary(this.strm,u)),r===p.Z_BUF_ERROR&&!0===c&&(r=p.Z_OK,c=!1),r!==p.Z_STREAM_END&&r!==p.Z_OK)return this.onEnd(r),!(this.ended=!0);s.next_out&&(0!==s.avail_out&&r!==p.Z_STREAM_END&&(0!==s.avail_in||n!==p.Z_FINISH&&n!==p.Z_SYNC_FLUSH)||("string"===this.options.to?(i=d.utf8border(s.output,s.next_out),a=s.next_out-i,o=d.buf2string(s.output,i),s.next_out=a,s.avail_out=f-a,a&&l.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(l.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(c=!0)}while((0<s.avail_in||0===s.avail_out)&&r!==p.Z_STREAM_END);return r===p.Z_STREAM_END&&(n=p.Z_FINISH),n===p.Z_FINISH?(r=h.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===p.Z_OK):n!==p.Z_SYNC_FLUSH||(this.onEnd(p.Z_OK),!(s.avail_out=0))},o.prototype.onData=function(e){this.chunks.push(e)},o.prototype.onEnd=function(e){e===p.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=o,r.inflate=s,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,s(e,t)},r.ungzip=s},{"./utils/common":178,"./utils/strings":179,"./zlib/constants":181,"./zlib/gzheader":184,"./zlib/inflate":186,"./zlib/messages":188,"./zlib/zstream":190}],178:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t,r,n=Array.prototype.slice.call(arguments,1);n.length;){var i=n.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var a in i)t=i,r=a,Object.prototype.hasOwnProperty.call(t,r)&&(e[a]=i[a])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){var t,r,n,i,a,o;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(o=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(n)},{}],179:[function(e,t,r){"use strict";var f=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var u=new f.Buf8(256),n=0;n<256;n++)u[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;function c(e,t){if(t<65534&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,f.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}u[254]=u[254]=1,r.string2buf=function(e){var t,r,n,i,a,o=e.length,s=0;for(i=0;i<o;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new f.Buf8(s),i=a=0;a<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<o&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.buf2binstring=function(e){return c(e,e.length)},r.binstring2buf=function(e){for(var t=new f.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,a,o=t||e.length,s=new Array(2*o);for(r=n=0;r<o;)if((i=e[r++])<128)s[n++]=i;else if(4<(a=u[i]))s[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&r<o;)i=i<<6|63&e[r++],a--;1<a?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return c(s,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return!(r<0)&&0!==r&&r+u[e[r]]>t?r:t}},{"./common":178}],180:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;a=a+(i=i+t[n++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],181:[function(e,t,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],182:[function(e,t,r){"use strict";var s=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,n){var i=s,a=n+r;e^=-1;for(var o=n;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}},{}],183:[function(e,t,r){"use strict";var f,l=e("../utils/common"),u=e("./trees"),d=e("./adler32"),p=e("./crc32"),n=e("./messages"),c=0,h=4,b=0,m=-2,v=-1,y=4,i=2,g=8,_=9,a=286,o=30,s=19,w=2*a+1,A=15,k=3,S=258,E=S+k+1,x=42,C=113,I=1,N=2,M=3,T=4;function B(e,t){return e.msg=n[t],t}function R(e){return(e<<1)-(4<e?9:0)}function O(e){for(var t=e.length;0<=--t;)e[t]=0}function F(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(l.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function P(e,t){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function j(e,t){e.pending_buf[e.pending++]=t}function D(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function z(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,f=e.strstart>e.w_size-E?e.strstart-(e.w_size-E):0,u=e.window,c=e.w_mask,h=e.prev,l=e.strstart+S,d=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+o]===p&&u[r+o-1]===d&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&a<l);if(n=S-(l-a),a=l-S,o<n){if(e.match_start=t,s<=(o=n))break;d=u[a+o-1],p=u[a+o]}}}while((t=h[t&c])>f&&0!=--i);return o<=e.lookahead?o:e.lookahead}function U(e){var t,r,n,i,a,o,s,f,u,c,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-E)){for(l.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=r=e.hash_size;n=e.head[--t],e.head[t]=h<=n?n-h:0,--r;);for(t=r=h;n=e.prev[--t],e.prev[t]=h<=n?n-h:0,--r;);i+=h}if(0===e.strm.avail_in)break;if(o=e.strm,s=e.window,f=e.strstart+e.lookahead,u=i,c=void 0,c=o.avail_in,u<c&&(c=u),r=0===c?0:(o.avail_in-=c,l.arraySet(s,o.input,o.next_in,c,f),1===o.state.wrap?o.adler=d(o.adler,s,c,f):2===o.state.wrap&&(o.adler=p(o.adler,s,c,f)),o.next_in+=c,o.total_in+=c,c),e.lookahead+=r,e.lookahead+e.insert>=k)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+k-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<k)););}while(e.lookahead<E&&0!==e.strm.avail_in)}function L(e,t){for(var r,n;;){if(e.lookahead<E){if(U(e),e.lookahead<E&&t===c)return I;if(0===e.lookahead)break}if(r=0,e.lookahead>=k&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-E&&(e.match_length=z(e,r)),e.match_length>=k)if(n=u._tr_tally(e,e.strstart-e.match_start,e.match_length-k),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=k){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(P(e,!1),0===e.strm.avail_out))return I}return e.insert=e.strstart<k-1?e.strstart:k-1,t===h?(P(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?I:N}function q(e,t){for(var r,n,i;;){if(e.lookahead<E){if(U(e),e.lookahead<E&&t===c)return I;if(0===e.lookahead)break}if(r=0,e.lookahead>=k&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=k-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-E&&(e.match_length=z(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===k&&4096<e.strstart-e.match_start)&&(e.match_length=k-1)),e.prev_length>=k&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-k,n=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-k),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=k-1,e.strstart++,n&&(P(e,!1),0===e.strm.avail_out))return I}else if(e.match_available){if((n=u._tr_tally(e,0,e.window[e.strstart-1]))&&P(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return I}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=u._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<k-1?e.strstart:k-1,t===h?(P(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?I:N}function V(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function H(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*w),this.dyn_dtree=new l.Buf16(2*(2*o+1)),this.bl_tree=new l.Buf16(2*(2*s+1)),O(this.dyn_ltree),O(this.dyn_dtree),O(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(A+1),this.heap=new l.Buf16(2*a+1),O(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*a+1),O(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=i,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?x:C,e.adler=2===t.wrap?0:1,t.last_flush=c,u._tr_init(t),b):B(e,m)}function K(e){var t,r=W(e);return r===b&&((t=e.state).window_size=2*t.w_size,O(t.head),t.max_lazy_match=f[t.level].max_lazy,t.good_match=f[t.level].good_length,t.nice_match=f[t.level].nice_length,t.max_chain_length=f[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=k-1,t.match_available=0,t.ins_h=0),r}function G(e,t,r,n,i,a){if(!e)return m;var o=1;if(t===v&&(t=6),n<0?(o=0,n=-n):15<n&&(o=2,n-=16),i<1||_<i||r!==g||n<8||15<n||t<0||9<t||a<0||y<a)return B(e,m);8===n&&(n=9);var s=new H;return(e.state=s).strm=e,s.wrap=o,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+k-1)/k),s.window=new l.Buf8(2*s.w_size),s.head=new l.Buf16(s.hash_size),s.prev=new l.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new l.Buf8(s.pending_buf_size),s.d_buf=+s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,K(e)}f=[new V(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),0===e.lookahead&&t===c)return I;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,P(e,!1),0===e.strm.avail_out))return I;if(e.strstart-e.block_start>=e.w_size-E&&(P(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===h?(P(e,!0),0===e.strm.avail_out?M:T):(e.strstart>e.block_start&&(P(e,!1),e.strm.avail_out),I)}),new V(4,4,8,4,L),new V(4,5,16,8,L),new V(4,6,32,32,L),new V(4,4,16,16,q),new V(8,16,32,32,q),new V(8,16,128,128,q),new V(8,32,128,256,q),new V(32,128,258,1024,q),new V(32,258,258,4096,q)],r.deflateInit=function(e,t){return G(e,t,g,15,8,0)},r.deflateInit2=G,r.deflateReset=K,r.deflateResetKeep=W,r.deflateSetHeader=function(e,t){return!e||!e.state||2!==e.state.wrap?m:(e.state.gzhead=t,b)},r.deflate=function(e,t){var r,n,i,a;if(!e||!e.state||5<t||t<0)return e?B(e,m):m;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&t!==h)return B(e,0===e.avail_out?-5:m);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===x)if(2===n.wrap)e.adler=0,j(n,31),j(n,139),j(n,8),n.gzhead?(j(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),j(n,255&n.gzhead.time),j(n,n.gzhead.time>>8&255),j(n,n.gzhead.time>>16&255),j(n,n.gzhead.time>>24&255),j(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),j(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(j(n,255&n.gzhead.extra.length),j(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=p(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(j(n,0),j(n,0),j(n,0),j(n,0),j(n,0),j(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),j(n,3),n.status=C);else{var o=g+(n.w_bits-8<<4)<<8;o|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(o|=32),o+=31-o%31,n.status=C,D(n,o),0!==n.strstart&&(D(n,e.adler>>>16),D(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending!==n.pending_buf_size));)j(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,j(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,j(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&F(e),n.pending+2<=n.pending_buf_size&&(j(n,255&e.adler),j(n,e.adler>>8&255),e.adler=0,n.status=C)):n.status=C),0!==n.pending){if(F(e),0===e.avail_out)return n.last_flush=-1,b}else if(0===e.avail_in&&R(t)<=R(r)&&t!==h)return B(e,-5);if(666===n.status&&0!==e.avail_in)return B(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==c&&666!==n.status){var s=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===c)return I;break}if(e.match_length=0,r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(P(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===h?(P(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?I:N}(n,t):3===n.strategy?function(e,t){for(var r,n,i,a,o=e.window;;){if(e.lookahead<=S){if(U(e),e.lookahead<=S&&t===c)return I;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=k&&0<e.strstart&&(n=o[i=e.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=e.strstart+S;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<a);e.match_length=S-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=k?(r=u._tr_tally(e,1,e.match_length-k),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(P(e,!1),0===e.strm.avail_out))return I}return e.insert=0,t===h?(P(e,!0),0===e.strm.avail_out?M:T):e.last_lit&&(P(e,!1),0===e.strm.avail_out)?I:N}(n,t):f[n.level].func(n,t);if(s!==M&&s!==T||(n.status=666),s===I||s===M)return 0===e.avail_out&&(n.last_flush=-1),b;if(s===N&&(1===t?u._tr_align(n):5!==t&&(u._tr_stored_block(n,0,0,!1),3===t&&(O(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),F(e),0===e.avail_out))return n.last_flush=-1,b}return t!==h?b:n.wrap<=0?1:(2===n.wrap?(j(n,255&e.adler),j(n,e.adler>>8&255),j(n,e.adler>>16&255),j(n,e.adler>>24&255),j(n,255&e.total_in),j(n,e.total_in>>8&255),j(n,e.total_in>>16&255),j(n,e.total_in>>24&255)):(D(n,e.adler>>>16),D(n,65535&e.adler)),F(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?b:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==x&&69!==t&&73!==t&&91!==t&&103!==t&&t!==C&&666!==t?B(e,m):(e.state=null,t===C?B(e,-3):b):m},r.deflateSetDictionary=function(e,t){var r,n,i,a,o,s,f,u,c=t.length;if(!e||!e.state)return m;if(2===(a=(r=e.state).wrap)||1===a&&r.status!==x||r.lookahead)return m;for(1===a&&(e.adler=d(e.adler,t,c,0)),r.wrap=0,c>=r.w_size&&(0===a&&(O(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new l.Buf8(r.w_size),l.arraySet(u,t,c-r.w_size,r.w_size,0),t=u,c=r.w_size),o=e.avail_in,s=e.next_in,f=e.input,e.avail_in=c,e.next_in=0,e.input=t,U(r);r.lookahead>=k;){for(n=r.strstart,i=r.lookahead-(k-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+k-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=k-1,U(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=k-1,r.match_available=0,e.next_in=s,e.input=f,e.avail_in=o,r.wrap=a,b},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":178,"./adler32":180,"./crc32":182,"./messages":188,"./trees":189}],184:[function(e,t,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],185:[function(e,t,r){"use strict";t.exports=function(e,t){var r,n,i,a,o,s,f,u,c,h,l,d,p,b,m,v,y,g,_,w,A,k,S,E,x;r=e.state,n=e.next_in,E=e.input,i=n+(e.avail_in-5),a=e.next_out,x=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),f=r.dmax,u=r.wsize,c=r.whave,h=r.wnext,l=r.window,d=r.hold,p=r.bits,b=r.lencode,m=r.distcode,v=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;e:do{p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),g=b[d&v];t:for(;;){if(d>>>=_=g>>>24,p-=_,0===(_=g>>>16&255))x[a++]=65535&g;else{if(!(16&_)){if(0==(64&_)){g=b[(65535&g)+(d&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&g,(_&=15)&&(p<_&&(d+=E[n++]<<p,p+=8),w+=d&(1<<_)-1,d>>>=_,p-=_),p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),g=m[d&y];r:for(;;){if(d>>>=_=g>>>24,p-=_,!(16&(_=g>>>16&255))){if(0==(64&_)){g=m[(65535&g)+(d&(1<<_)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(A=65535&g,p<(_&=15)&&(d+=E[n++]<<p,(p+=8)<_&&(d+=E[n++]<<p,p+=8)),f<(A+=d&(1<<_)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=_,p-=_,(_=a-o)<A){if(c<(_=A-_)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(S=l,(k=0)===h){if(k+=u-_,_<w){for(w-=_;x[a++]=l[k++],--_;);k=a-A,S=x}}else if(h<_){if(k+=u+h-_,(_-=h)<w){for(w-=_;x[a++]=l[k++],--_;);if(k=0,h<w){for(w-=_=h;x[a++]=l[k++],--_;);k=a-A,S=x}}}else if(k+=h-_,_<w){for(w-=_;x[a++]=l[k++],--_;);k=a-A,S=x}for(;2<w;)x[a++]=S[k++],x[a++]=S[k++],x[a++]=S[k++],w-=3;w&&(x[a++]=S[k++],1<w&&(x[a++]=S[k++]))}else{for(k=a-A;x[a++]=x[k++],x[a++]=x[k++],x[a++]=x[k++],2<(w-=3););w&&(x[a++]=x[k++],1<w&&(x[a++]=x[k++]))}break}}break}}while(n<i&&a<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=a<s?s-a+257:257-(a-s),r.hold=d,r.bits=p}},{}],186:[function(e,t,r){"use strict";var N=e("../utils/common"),M=e("./adler32"),T=e("./crc32"),B=e("./inffast"),R=e("./inftrees"),O=1,F=2,P=0,j=-2,D=1,n=852,i=592;function z(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function a(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new N.Buf16(320),this.work=new N.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=D,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new N.Buf32(n),t.distcode=t.distdyn=new N.Buf32(i),t.sane=1,t.back=-1,P):j}function s(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,o(e)):j}function f(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?j:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,s(e))):j}function u(e,t){var r,n;return e?(n=new a,(e.state=n).window=null,(r=f(e,t))!==P&&(e.state=null),r):j}var c,h,l=!0;function U(e){if(l){var t;for(c=new N.Buf32(512),h=new N.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(R(O,e.lens,0,288,c,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;R(F,e.lens,0,32,h,0,e.work,{bits:5}),l=!1}e.lencode=c,e.lenbits=9,e.distcode=h,e.distbits=5}function L(e,t,r,n){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new N.Buf8(a.wsize)),n>=a.wsize?(N.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n<(i=a.wsize-a.wnext)&&(i=n),N.arraySet(a.window,t,r-n,i,a.wnext),(n-=i)?(N.arraySet(a.window,t,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}r.inflateReset=s,r.inflateReset2=f,r.inflateResetKeep=o,r.inflateInit=function(e){return u(e,15)},r.inflateInit2=u,r.inflate=function(e,t){var r,n,i,a,o,s,f,u,c,h,l,d,p,b,m,v,y,g,_,w,A,k,S,E,x=0,C=new N.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return j;12===(r=e.state).mode&&(r.mode=13),o=e.next_out,i=e.output,f=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,h=s,l=f,k=P;e:for(;;)switch(r.mode){case D:if(0===r.wrap){r.mode=13;break}for(;c<16;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(2&r.wrap&&35615===u){C[r.check=0]=255&u,C[1]=u>>>8&255,r.check=T(r.check,C,2,0),c=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&u)){e.msg="unknown compression method",r.mode=30;break}if(c-=4,A=8+(15&(u>>>=4)),0===r.wbits)r.wbits=A;else if(A>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<A,e.adler=r.check=1,r.mode=512&u?10:12,c=u=0;break;case 2:for(;c<16;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(r.flags=u,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=u>>8&1),512&r.flags&&(C[0]=255&u,C[1]=u>>>8&255,r.check=T(r.check,C,2,0)),c=u=0,r.mode=3;case 3:for(;c<32;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.head&&(r.head.time=u),512&r.flags&&(C[0]=255&u,C[1]=u>>>8&255,C[2]=u>>>16&255,C[3]=u>>>24&255,r.check=T(r.check,C,4,0)),c=u=0,r.mode=4;case 4:for(;c<16;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.head&&(r.head.xflags=255&u,r.head.os=u>>8),512&r.flags&&(C[0]=255&u,C[1]=u>>>8&255,r.check=T(r.check,C,2,0)),c=u=0,r.mode=5;case 5:if(1024&r.flags){for(;c<16;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),512&r.flags&&(C[0]=255&u,C[1]=u>>>8&255,r.check=T(r.check,C,2,0)),c=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(s<(d=r.length)&&(d=s),d&&(r.head&&(A=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),N.arraySet(r.head.extra,n,a,d,A)),512&r.flags&&(r.check=T(r.check,n,d,a)),s-=d,a+=d,r.length-=d),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;for(d=0;A=n[a+d++],r.head&&A&&r.length<65536&&(r.head.name+=String.fromCharCode(A)),A&&d<s;);if(512&r.flags&&(r.check=T(r.check,n,d,a)),s-=d,a+=d,A)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break e;for(d=0;A=n[a+d++],r.head&&A&&r.length<65536&&(r.head.comment+=String.fromCharCode(A)),A&&d<s;);if(512&r.flags&&(r.check=T(r.check,n,d,a)),s-=d,a+=d,A)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;c<16;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(u!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}c=u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;c<32;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}e.adler=r.check=z(u),c=u=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=o,e.avail_out=f,e.next_in=a,e.avail_in=s,r.hold=u,r.bits=c,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){u>>>=7&c,c-=7&c,r.mode=27;break}for(;c<3;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}switch(r.last=1&u,--c,3&(u>>>=1)){case 0:r.mode=14;break;case 1:if(U(r),r.mode=20,6!==t)break;u>>>=2,c-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}u>>>=2,c-=2;break;case 14:for(u>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,c=u=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(d=r.length){if(s<d&&(d=s),f<d&&(d=f),0===d)break e;N.arraySet(i,n,a,d,o),s-=d,a+=d,f-=d,o+=d,r.length-=d;break}r.mode=12;break;case 17:for(;c<14;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(r.nlen=257+(31&u),u>>>=5,c-=5,r.ndist=1+(31&u),u>>>=5,c-=5,r.ncode=4+(15&u),u>>>=4,c-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.lens[I[r.have++]]=7&u,u>>>=3,c-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},k=R(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,k){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;v=(x=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,y=65535&x,!((m=x>>>24)<=c);){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(y<16)u>>>=m,c-=m,r.lens[r.have++]=y;else{if(16===y){for(E=m+2;c<E;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(u>>>=m,c-=m,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}A=r.lens[r.have-1],d=3+(3&u),u>>>=2,c-=2}else if(17===y){for(E=m+3;c<E;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}c-=m,A=0,d=3+(7&(u>>>=m)),u>>>=3,c-=3}else{for(E=m+7;c<E;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}c-=m,A=0,d=11+(127&(u>>>=m)),u>>>=7,c-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=A}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},k=R(O,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,k){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},k=R(F,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,k){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=s&&258<=f){e.next_out=o,e.avail_out=f,e.next_in=a,e.avail_in=s,r.hold=u,r.bits=c,B(e,l),o=e.next_out,i=e.output,f=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,u=r.hold,c=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;v=(x=r.lencode[u&(1<<r.lenbits)-1])>>>16&255,y=65535&x,!((m=x>>>24)<=c);){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(v&&0==(240&v)){for(g=m,_=v,w=y;v=(x=r.lencode[w+((u&(1<<g+_)-1)>>g)])>>>16&255,y=65535&x,!(g+(m=x>>>24)<=c);){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}u>>>=g,c-=g,r.back+=g}if(u>>>=m,c-=m,r.back+=m,r.length=y,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=12;break}if(64&v){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(E=r.extra;c<E;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(x=r.distcode[u&(1<<r.distbits)-1])>>>16&255,y=65535&x,!((m=x>>>24)<=c);){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(0==(240&v)){for(g=m,_=v,w=y;v=(x=r.distcode[w+((u&(1<<g+_)-1)>>g)])>>>16&255,y=65535&x,!(g+(m=x>>>24)<=c);){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}u>>>=g,c-=g,r.back+=g}if(u>>>=m,c-=m,r.back+=m,64&v){e.msg="invalid distance code",r.mode=30;break}r.offset=y,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(E=r.extra;c<E;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===f)break e;if(d=l-f,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),b=r.window}else b=i,p=o-r.offset,d=r.length;for(f<d&&(d=f),f-=d,r.length-=d;i[o++]=b[p++],--d;);0===r.length&&(r.mode=21);break;case 26:if(0===f)break e;i[o++]=r.length,f--,r.mode=21;break;case 27:if(r.wrap){for(;c<32;){if(0===s)break e;s--,u|=n[a++]<<c,c+=8}if(l-=f,e.total_out+=l,r.total+=l,l&&(e.adler=r.check=(r.flags?T:M)(r.check,i,l,o-l)),l=f,(r.flags?u:z(u))!==r.check){e.msg="incorrect data check",r.mode=30;break}c=u=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break e;s--,u+=n[a++]<<c,c+=8}if(u!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}c=u=0}r.mode=29;case 29:k=1;break e;case 30:k=-3;break e;case 31:return-4;case 32:default:return j}return e.next_out=o,e.avail_out=f,e.next_in=a,e.avail_in=s,r.hold=u,r.bits=c,(r.wsize||l!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&L(e,e.output,e.next_out,l-e.avail_out)?(r.mode=31,-4):(h-=e.avail_in,l-=e.avail_out,e.total_in+=h,e.total_out+=l,r.total+=l,r.wrap&&l&&(e.adler=r.check=(r.flags?T:M)(r.check,i,l,e.next_out-l)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==h&&0===l||4===t)&&k===P&&(k=-5),k)},r.inflateEnd=function(e){if(!e||!e.state)return j;var t=e.state;return t.window&&(t.window=null),e.state=null,P},r.inflateGetHeader=function(e,t){var r;return!e||!e.state||0==(2&(r=e.state).wrap)?j:((r.head=t).done=!1,P)},r.inflateSetDictionary=function(e,t){var r,n=t.length;return!e||!e.state||0!==(r=e.state).wrap&&11!==r.mode?j:11===r.mode&&M(1,t,n,0)!==r.check?-3:L(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,P)},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":178,"./adler32":180,"./crc32":182,"./inffast":185,"./inftrees":187}],187:[function(e,t,r){"use strict";var O=e("../utils/common"),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,0,0],P=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],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,0,0],D=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,n,i,a,o,s){var f,u,c,h,l,d,p,b,m,v=s.bits,y=0,g=0,_=0,w=0,A=0,k=0,S=0,E=0,x=0,C=0,I=null,N=0,M=new O.Buf16(16),T=new O.Buf16(16),B=null,R=0;for(y=0;y<=15;y++)M[y]=0;for(g=0;g<n;g++)M[t[r+g]]++;for(A=v,w=15;1<=w&&0===M[w];w--);if(w<A&&(A=w),0===w)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(_=1;_<w&&0===M[_];_++);for(A<_&&(A=_),y=E=1;y<=15;y++)if(E<<=1,(E-=M[y])<0)return-1;if(0<E&&(0===e||1!==w))return-1;for(T[1]=0,y=1;y<15;y++)T[y+1]=T[y]+M[y];for(g=0;g<n;g++)0!==t[r+g]&&(o[T[t[r+g]]++]=g);if(d=0===e?(I=B=o,19):1===e?(I=F,N-=257,B=P,R-=257,256):(I=j,B=D,-1),y=_,l=a,S=g=C=0,c=-1,h=(x=1<<(k=A))-1,1===e&&852<x||2===e&&592<x)return 1;for(;;){for(p=y-S,m=o[g]<d?(b=0,o[g]):o[g]>d?(b=B[R+o[g]],I[N+o[g]]):(b=96,0),f=1<<y-S,_=u=1<<k;i[l+(C>>S)+(u-=f)]=p<<24|b<<16|m|0,0!==u;);for(f=1<<y-1;C&f;)f>>=1;if(0!==f?(C&=f-1,C+=f):C=0,g++,0==--M[y]){if(y===w)break;y=t[r+o[g]]}if(A<y&&(C&h)!==c){for(0===S&&(S=A),l+=_,E=1<<(k=y-S);k+S<w&&!((E-=M[k+S])<=0);)k++,E<<=1;if(x+=1<<k,1===e&&852<x||2===e&&592<x)return 1;i[c=C&h]=A<<24|k<<16|l-a|0}}return 0!==C&&(i[l+C]=y-S<<24|64<<16|0),s.bits=A,0}},{"../utils/common":178}],188:[function(e,t,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],189:[function(e,t,r){"use strict";var f=e("../utils/common"),s=0,u=1;function n(e){for(var t=e.length;0<=--t;)e[t]=0}var c=0,o=29,h=256,l=h+1+o,d=30,p=19,m=2*l+1,v=15,i=16,b=7,y=256,g=16,_=17,w=18,A=[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],k=[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],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x=new Array(2*(l+2));n(x);var C=new Array(2*d);n(C);var I=new Array(512);n(I);var N=new Array(256);n(N);var M=new Array(o);n(M);var T,B,R,O=new Array(d);function F(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function a(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function P(e){return e<256?I[e]:I[256+(e>>>7)]}function j(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function D(e,t,r){e.bi_valid>i-r?(e.bi_buf|=t<<e.bi_valid&65535,j(e,e.bi_buf),e.bi_buf=t>>i-e.bi_valid,e.bi_valid+=r-i):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function z(e,t,r){D(e,r[2*t],r[2*t+1])}function U(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function L(e,t,r){var n,i,a=new Array(v+1),o=0;for(n=1;n<=v;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=U(a[s]++,s))}}function q(e){var t;for(t=0;t<l;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<p;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*y]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function V(e){8<e.bi_valid?j(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function H(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function W(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&H(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!H(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function K(e,t,r){var n,i,a,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===n?z(e,i,t):(z(e,(a=N[i])+h+1,t),0!==(o=A[a])&&D(e,i-=M[a],o),z(e,a=P(--n),r),0!==(o=k[a])&&D(e,n-=O[a],o)),s<e.last_lit;);z(e,y,t)}function G(e,t){var r,n,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,f=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=m,r=0;r<f;r++)0!==a[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)W(e,a,r);for(i=f;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],W(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,W(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,a,o,s,f=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,h=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,b=0;for(a=0;a<=v;a++)e.bl_count[a]=0;for(f[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<m;r++)p<(a=f[2*f[2*(n=e.heap[r])+1]+1]+1)&&(a=p,b++),f[2*n+1]=a,u<n||(e.bl_count[a]++,o=0,d<=n&&(o=l[n-d]),s=f[2*n],e.opt_len+=s*(a+o),h&&(e.static_len+=s*(c[2*n+1]+o)));if(0!==b){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,b-=2}while(0<b);for(a=p;0!==a;a--)for(n=e.bl_count[a];0!==n;)u<(i=e.heap[--r])||(f[2*i+1]!==a&&(e.opt_len+=(a-f[2*i+1])*f[2*i],f[2*i+1]=a),n--)}}(e,t),L(a,u,e.bl_count)}function X(e,t,r){var n,i,a=-1,o=t[1],s=0,f=7,u=4;for(0===o&&(f=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s<f&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*g]++):s<=10?e.bl_tree[2*_]++:e.bl_tree[2*w]++,a=i,u=(s=0)===o?(f=138,3):i===o?(f=6,3):(f=7,4))}function Z(e,t,r){var n,i,a=-1,o=t[1],s=0,f=7,u=4;for(0===o&&(f=138,u=3),n=0;n<=r;n++)if(i=o,o=t[2*(n+1)+1],!(++s<f&&i===o)){if(s<u)for(;z(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(z(e,i,e.bl_tree),s--),z(e,g,e.bl_tree),D(e,s-3,2)):s<=10?(z(e,_,e.bl_tree),D(e,s-3,3)):(z(e,w,e.bl_tree),D(e,s-11,7));a=i,u=(s=0)===o?(f=138,3):i===o?(f=6,3):(f=7,4)}}n(O);var Y=!1;function Q(e,t,r,n){var i,a,o,s;D(e,(c<<1)+(n?1:0),3),a=t,o=r,s=!0,V(i=e),s&&(j(i,o),j(i,~o)),f.arraySet(i.pending_buf,i.window,a,o,i.pending),i.pending+=o}r._tr_init=function(e){Y||(function(){var e,t,r,n,i,a=new Array(v+1);for(n=r=0;n<o-1;n++)for(M[n]=r,e=0;e<1<<A[n];e++)N[r++]=n;for(N[r-1]=n,n=i=0;n<16;n++)for(O[n]=i,e=0;e<1<<k[n];e++)I[i++]=n;for(i>>=7;n<d;n++)for(O[n]=i<<7,e=0;e<1<<k[n]-7;e++)I[256+i++]=n;for(t=0;t<=v;t++)a[t]=0;for(e=0;e<=143;)x[2*e+1]=8,e++,a[8]++;for(;e<=255;)x[2*e+1]=9,e++,a[9]++;for(;e<=279;)x[2*e+1]=7,e++,a[7]++;for(;e<=287;)x[2*e+1]=8,e++,a[8]++;for(L(x,l+1,a),e=0;e<d;e++)C[2*e+1]=5,C[2*e]=U(e,5);T=new F(x,A,h+1,l,v),B=new F(C,k,0,d,v),R=new F(new Array(0),S,0,p,b)}(),Y=!0),e.l_desc=new a(e.dyn_ltree,T),e.d_desc=new a(e.dyn_dtree,B),e.bl_desc=new a(e.bl_tree,R),e.bi_buf=0,e.bi_valid=0,q(e)},r._tr_stored_block=Q,r._tr_flush_block=function(e,t,r,n){var i,a,o=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return s;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return u;for(t=32;t<h;t++)if(0!==e.dyn_ltree[2*t])return u;return s}(e)),G(e,e.l_desc),G(e,e.d_desc),o=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=p-1;3<=t&&0===e.bl_tree[2*E[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?Q(e,t,r,n):4===e.strategy||a===i?(D(e,2+(n?1:0),3),K(e,x,C)):(D(e,4+(n?1:0),3),function(e,t,r,n){var i;for(D(e,t-257,5),D(e,r-1,5),D(e,n-4,4),i=0;i<n;i++)D(e,e.bl_tree[2*E[i]+1],3);Z(e,e.dyn_ltree,t-1),Z(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),K(e,e.dyn_ltree,e.dyn_dtree)),q(e),n&&V(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(N[r]+h+1)]++,e.dyn_dtree[2*P(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;D(e,2,3),z(e,y,x),16===(t=e).bi_valid?(j(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":178}],190:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],191:[function(e,t,r){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],192:[function(e,t,r){"use strict";var n=e("asn1.js");r.certificate=e("./certificate");var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});r.RSAPrivateKey=i;var a=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});r.RSAPublicKey=a;var o=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});r.PublicKey=o;var s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),f=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});r.PrivateKey=f;var u=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});r.EncryptedPrivateKey=u;var c=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});r.DSAPrivateKey=c,r.DSAparam=n.define("DSAparam",function(){this.int()});var h=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=h;var l=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":193,"asn1.js":30}],193:[function(e,t,r){"use strict";var n=e("asn1.js"),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),f=n.define("RelativeDistinguishedName",function(){this.setof(a)}),u=n.define("RDNSequence",function(){this.seqof(f)}),c=n.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),h=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),l=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(c),this.key("validity").use(h),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())}),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});t.exports=p},{"asn1.js":30}],194:[function(e,t,r){var l=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,d=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,p=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,b=e("evp_bytestokey"),m=e("browserify-aes"),v=e("safe-buffer").Buffer;t.exports=function(e,t){var r,n=e.toString(),i=n.match(l);if(i){var a="aes"+i[1],o=v.from(i[2],"hex"),s=v.from(i[3].replace(/[\r\n]/g,""),"base64"),f=b(t,o.slice(0,8),parseInt(i[1],10)).key,u=[],c=m.createDecipheriv(a,f,o);u.push(c.update(s)),u.push(c.final()),r=v.concat(u)}else{var h=n.match(p);r=new v(h[2].replace(/[\r\n]/g,""),"base64")}return{tag:n.match(d)[1],data:r}}},{"browserify-aes":50,evp_bytestokey:114,"safe-buffer":225}],195:[function(e,t,r){var y=e("./asn1"),g=e("./aesid.json"),_=e("./fixProc"),w=e("browserify-aes"),A=e("pbkdf2"),k=e("safe-buffer").Buffer;function n(e){var t;"object"!=typeof e||k.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=k.from(e));var r,n,i,a,o,s,f,u,c,h,l,d,p,b=_(e,t),m=b.tag,v=b.data;switch(m){case"CERTIFICATE":n=y.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(r=(n=n||y.PublicKey.decode(v,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return y.RSAPublicKey.decode(n.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return n.subjectPrivateKey=n.subjectPublicKey,{type:"ec",data:n};case"1.2.840.10040.4.1":return n.algorithm.params.pub_key=y.DSAparam.decode(n.subjectPublicKey.data,"der"),{type:"dsa",data:n.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+m);case"ENCRYPTED PRIVATE KEY":v=y.EncryptedPrivateKey.decode(v,"der"),a=t,o=(i=v).algorithm.decrypt.kde.kdeparams.salt,s=parseInt(i.algorithm.decrypt.kde.kdeparams.iters.toString(),10),f=g[i.algorithm.decrypt.cipher.algo.join(".")],u=i.algorithm.decrypt.cipher.iv,c=i.subjectPrivateKey,h=parseInt(f.split("-")[1],10)/8,l=A.pbkdf2Sync(a,o,s,h,"sha1"),d=w.createDecipheriv(f,l,u),(p=[]).push(d.update(c)),p.push(d.final()),v=k.concat(p);case"PRIVATE KEY":switch(r=(n=y.PrivateKey.decode(v,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return y.RSAPrivateKey.decode(n.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:n.algorithm.curve,privateKey:y.ECPrivateKey.decode(n.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return n.algorithm.params.priv_key=y.DSAparam.decode(n.subjectPrivateKey,"der"),{type:"dsa",params:n.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+m);case"RSA PUBLIC KEY":return y.RSAPublicKey.decode(v,"der");case"RSA PRIVATE KEY":return y.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:y.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return{curve:(v=y.ECPrivateKey.decode(v,"der")).parameters.value,privateKey:v.privateKey};default:throw new Error("unknown key type "+m)}}(t.exports=n).signature=y.signature},{"./aesid.json":191,"./asn1":192,"./fixProc":194,"browserify-aes":50,pbkdf2:196,"safe-buffer":225}],196:[function(e,t,r){r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":197,"./lib/sync":200}],197:[function(e,t,r){(function(u,c){var h,l=e("./precondition"),d=e("./default-encoding"),p=e("./sync"),b=e("safe-buffer").Buffer,m=c.crypto&&c.crypto.subtle,v={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},y=[];function g(e,t,r,n,i){return m.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return m.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return b.from(e)})}t.exports=function(t,r,n,i,a,o){"function"==typeof a&&(o=a,a=void 0);var e,s,f=v[(a=a||"sha1").toLowerCase()];if(!f||"function"!=typeof c.Promise)return u.nextTick(function(){var e;try{e=p(t,r,n,i,a)}catch(e){return o(e)}o(null,e)});if(l(t,r,n,i),"function"!=typeof o)throw new Error("No callback provided to pbkdf2");b.isBuffer(t)||(t=b.from(t,d)),b.isBuffer(r)||(r=b.from(r,d)),e=function(e){if(c.process&&!c.process.browser)return Promise.resolve(!1);if(!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(void 0!==y[e])return y[e];var t=g(h=h||b.alloc(8),h,10,128,e).then(function(){return!0}).catch(function(){return!1});return y[e]=t}(f).then(function(e){return e?g(t,r,n,i,f):p(t,r,n,i,a)}),s=o,e.then(function(e){u.nextTick(function(){s(null,e)})},function(e){u.nextTick(function(){s(e)})})}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":198,"./precondition":199,"./sync":200,_process:202,"safe-buffer":225}],198:[function(e,r,t){(function(e){var t;e.browser?t="utf-8":t=6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary";r.exports=t}).call(this,e("_process"))},{_process:202}],199:[function(e,t,r){(function(r){var i=Math.pow(2,30)-1;function a(e,t){if("string"!=typeof e&&!r.isBuffer(e))throw new TypeError(t+" must be a buffer or string")}t.exports=function(e,t,r,n){if(a(e,"Password"),a(t,"Salt"),"number"!=typeof r)throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if("number"!=typeof n)throw new TypeError("Key length not a number");if(n<0||i<n||n!=n)throw new TypeError("Bad key length")}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":132}],200:[function(e,t,r){var c=e("create-hash/md5"),h=e("ripemd160"),l=e("sha.js"),m=e("./precondition"),v=e("./default-encoding"),y=e("safe-buffer").Buffer,d=y.alloc(128),g={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function _(e,t,r){var n,i="rmd160"===(n=e)||"ripemd160"===n?function(e){return(new h).update(e).digest()}:"md5"===n?c:function(e){return l(n).update(e).digest()},a="sha512"===e||"sha384"===e?128:64;t.length>a?t=i(t):t.length<a&&(t=y.concat([t,d],a));for(var o=y.allocUnsafe(a+g[e]),s=y.allocUnsafe(a+g[e]),f=0;f<a;f++)o[f]=54^t[f],s[f]=92^t[f];var u=y.allocUnsafe(a+r+4);o.copy(u,0,0,a),this.ipad1=u,this.ipad2=o,this.opad=s,this.alg=e,this.blocksize=a,this.hash=i,this.size=g[e]}_.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,r,n,i){m(e,t,r,n),y.isBuffer(e)||(e=y.from(e,v)),y.isBuffer(t)||(t=y.from(t,v));var a=new _(i=i||"sha1",e,t.length),o=y.allocUnsafe(n),s=y.allocUnsafe(t.length+4);t.copy(s,0,0,t.length);for(var f=0,u=g[i],c=Math.ceil(n/u),h=1;h<=c;h++){s.writeUInt32BE(h,t.length);for(var l=a.run(s,a.ipad1),d=l,p=1;p<r;p++){d=a.run(d,a.ipad2);for(var b=0;b<u;b++)l[b]^=d[b]}l.copy(o,f),f+=u}return o}},{"./default-encoding":198,"./precondition":199,"create-hash/md5":83,ripemd160:224,"safe-buffer":225,"sha.js":229}],201:[function(e,t,r){(function(s){"use strict";void 0===s||!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,r)});case 4:return s.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return s.nextTick(function(){e.apply(null,i)})}}}:t.exports=s}).call(this,e("_process"))},{_process:202}],202:[function(e,t,r){var n,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function f(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,c=[],h=!1,l=-1;function d(){h&&u&&(h=!1,u.length?c=u.concat(c):l=-1,c.length&&p())}function p(){if(!h){var e=f(d);h=!0;for(var t=c.length;t;){for(u=c,c=[];++l<t;)u&&u[l].run();l=-1,t=c.length}u=null,h=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new b(e,t)),1!==c.length||h||f(p)},b.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],203:[function(e,t,r){r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":205,"./publicEncrypt":206}],204:[function(e,t,r){var a=e("create-hash"),o=e("safe-buffer").Buffer;function s(e){var t=o.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var r,n=o.alloc(0),i=0;n.length<t;)r=s(i++),n=o.concat([n,a("sha1").update(e).update(r).digest()]);return n.slice(0,t)}},{"create-hash":82,"safe-buffer":225}],205:[function(e,t,r){var f=e("parse-asn1"),c=e("./mgf"),h=e("./xor"),u=e("bn.js"),l=e("browserify-rsa"),d=e("create-hash"),p=e("./withPublic"),b=e("safe-buffer").Buffer;t.exports=function(e,t,r){var n;n=e.padding?e.padding:r?1:4;var i,a=f(e),o=a.modulus.byteLength();if(t.length>o||0<=new u(t).cmp(a.modulus))throw new Error("decryption error");i=r?p(new u(t),a):l(t,a);var s=b.alloc(o-i.length);if(i=b.concat([s,i],o),4===n)return function(e,t){var r=e.modulus.byteLength(),n=d("sha1").update(b.alloc(0)).digest(),i=n.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,i+1),o=t.slice(i+1),s=h(a,c(o,i)),f=h(o,c(s,r-i-1));if(function(e,t){e=b.from(e),t=b.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i<n;)r+=e[i]^t[i];return r}(n,f.slice(0,i)))throw new Error("decryption error");var u=i;for(;0===f[u];)u++;if(1===f[u++])return f.slice(u);throw new Error("decryption error")}(a,i);if(1===n)return function(e,t){var r=e.slice(0,2),n=2,i=0;for(;0!==e[n++];)if(n>=e.length){i++;break}var a=e.slice(2,n-1);("0002"!==r.toString("hex")&&!t||"0001"!==r.toString("hex")&&t)&&i++;a.length<8&&i++;if(i)throw new Error("decryption error");return e.slice(n)}(i,r);if(3===n)return i;throw new Error("unknown padding")}},{"./mgf":204,"./withPublic":207,"./xor":208,"bn.js":45,"browserify-rsa":68,"create-hash":82,"parse-asn1":195,"safe-buffer":225}],206:[function(e,t,r){var o=e("parse-asn1"),l=e("randombytes"),d=e("create-hash"),p=e("./mgf"),b=e("./xor"),m=e("bn.js"),s=e("./withPublic"),f=e("browserify-rsa"),v=e("safe-buffer").Buffer;t.exports=function(e,t,r){var n;n=e.padding?e.padding:r?1:4;var i,a=o(e);if(4===n)i=function(e,t){var r=e.modulus.byteLength(),n=t.length,i=d("sha1").update(v.alloc(0)).digest(),a=i.length,o=2*a;if(r-o-2<n)throw new Error("message too long");var s=v.alloc(r-n-o-2),f=r-a-1,u=l(a),c=b(v.concat([i,s,v.alloc(1,1),t],f),p(u,f)),h=b(u,p(c,a));return new m(v.concat([v.alloc(1),h,c],r))}(a,t);else if(1===n)i=function(e,t,r){var n,i=t.length,a=e.modulus.byteLength();if(a-11<i)throw new Error("message too long");n=r?v.alloc(a-i-3,255):function(e){var t,r=v.allocUnsafe(e),n=0,i=l(2*e),a=0;for(;n<e;)a===i.length&&(i=l(2*e),a=0),(t=i[a++])&&(r[n++]=t);return r}(a-i-3);return new m(v.concat([v.from([0,r?1:2]),n,v.alloc(1),t],a))}(a,t,r);else{if(3!==n)throw new Error("unknown padding");if(0<=(i=new m(t)).cmp(a.modulus))throw new Error("data too long for modulus")}return(r?f:s)(i,a)}},{"./mgf":204,"./withPublic":207,"./xor":208,"bn.js":45,"browserify-rsa":68,"create-hash":82,"parse-asn1":195,randombytes:209,"safe-buffer":225}],207:[function(e,t,r){var n=e("bn.js"),i=e("safe-buffer").Buffer;t.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},{"bn.js":45,"safe-buffer":225}],208:[function(e,t,r){t.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},{}],209:[function(t,r,e){(function(i,e){"use strict";var a=t("safe-buffer").Buffer,o=e.crypto||e.msCrypto;o&&o.getRandomValues?r.exports=function(e,t){if(4294967295<e)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(0<e)if(65536<e)for(var n=0;n<e;n+=65536)o.getRandomValues(r.slice(n,n+65536));else o.getRandomValues(r);return"function"!=typeof t?r:i.nextTick(function(){t(null,r)})}:r.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:202,"safe-buffer":225}],210:[function(r,e,d){(function(o,i){"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=r("safe-buffer"),s=r("randombytes"),a=t.Buffer,n=t.kMaxLength,f=i.crypto||i.msCrypto,u=Math.pow(2,32)-1;function c(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(u<e||e<0)throw new TypeError("offset must be a uint32");if(n<e||t<e)throw new RangeError("offset out of range")}function h(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(u<e||e<0)throw new TypeError("size must be a uint32");if(r<e+t||n<e)throw new RangeError("buffer too small")}function l(r,n,e,i){if(o.browser){var t=r.buffer,a=new Uint8Array(t,n,e);return f.getRandomValues(a),i?void o.nextTick(function(){i(null,r)}):r}if(!i)return s(e).copy(r,n),r;s(e,function(e,t){if(e)return i(e);t.copy(r,n),i(null,r)})}f&&f.getRandomValues||!o.browser?(d.randomFill=function(e,t,r,n){if(!(a.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-t;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return c(t,e.length),h(r,t,e.length),l(e,t,r,n)},d.randomFillSync=function(e,t,r){void 0===t&&(t=0);if(!(a.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');c(t,e.length),void 0===r&&(r=e.length-t);return h(r,t,e.length),l(e,t,r)}):(d.randomFill=e,d.randomFillSync=e)}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:202,randombytes:209,"safe-buffer":225}],211:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":212}],212:[function(e,t,r){"use strict";var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=h;var a=Object.create(e("core-util-is"));a.inherits=e("inherits");var o=e("./_stream_readable"),s=e("./_stream_writable");a.inherits(h,o);for(var f=i(s.prototype),u=0;u<f.length;u++){var c=f[u];h.prototype[c]||(h.prototype[c]=s.prototype[c])}function h(e){if(!(this instanceof h))return new h(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":214,"./_stream_writable":216,"core-util-is":80,inherits:131,"process-nextick-args":201}],213:[function(e,t,r){"use strict";t.exports=a;var n=e("./_stream_transform"),i=Object.create(e("core-util-is"));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":215,"core-util-is":80,inherits:131}],214:[function(R,O,e){(function(m,e){"use strict";var v=R("process-nextick-args");O.exports=l;var o,y=R("isarray");l.ReadableState=a;function g(e,t){return e.listeners(t).length}R("events").EventEmitter;var i=R("./internal/streams/stream"),u=R("safe-buffer").Buffer,c=e.Uint8Array||function(){};var t=Object.create(R("core-util-is"));t.inherits=R("inherits");var r=R("util"),_=void 0;_=r&&r.debuglog?r.debuglog("stream"):function(){};var s,f=R("./internal/streams/BufferList"),n=R("./internal/streams/destroy");t.inherits(l,i);var h=["error","close","destroy","pause","resume"];function a(e,t){e=e||{};var r=t instanceof(o=o||R("./_stream_duplex"));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s=s||R("string_decoder/").StringDecoder,this.decoder=new s(e.encoding),this.encoding=e.encoding)}function l(e){if(o=o||R("./_stream_duplex"),!(this instanceof l))return new l(e);this._readableState=new a(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function d(e,t,r,n,i){var a,o,s,f=e._readableState;null===t?(f.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,A(e)}(e,f)):(i||(a=function(e,t){var r;(function(e){return u.isBuffer(e)||e instanceof c})(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(f,t)),a?e.emit("error",a):f.objectMode||t&&0<t.length?("string"==typeof t||f.objectMode||Object.getPrototypeOf(t)===u.prototype||(o=t,t=u.from(o)),n?f.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):p(e,f,t,!0):f.ended?e.emit("error",new Error("stream.push() after EOF")):(f.reading=!1,f.decoder&&!r?(t=f.decoder.write(t),f.objectMode||0!==t.length?p(e,f,t,!1):S(e,f)):p(e,f,t,!1))):n||(f.reading=!1));return!(s=f).ended&&(s.needReadable||s.length<s.highWaterMark||0===s.length)}function p(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&A(e)),S(e,t)}Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),l.prototype.destroy=n.destroy,l.prototype._undestroy=n.undestroy,l.prototype._destroy=function(e,t){this.push(null),t(e)},l.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),d(this,e,t,!1,r)},l.prototype.unshift=function(e){return d(this,e,null,!0,!1)},l.prototype.isPaused=function(){return!1===this._readableState.flowing},l.prototype.setEncoding=function(e){return s=s||R("string_decoder/").StringDecoder,this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var b=8388608;function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(b<=(r=e)?r=b:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function A(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?v.nextTick(k,e):k(e))}function k(e){_("emit readable"),e.emit("readable"),I(e)}function S(e,t){t.readingMore||(t.readingMore=!0,v.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(_("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function x(e){_("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(_("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(_("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():(r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=a.slice(o);break}++n}return t.length-=n,i}:function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=a.slice(o);break}++i}return t.length-=i,r})(e,t);return n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,v.nextTick(T,t,e))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}l.prototype.read=function(e){_("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),(0===t.length&&t.ended?M:A)(this),null;if(0===(e=w(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,i=t.needReadable;return _("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&_("length less than watermark",i=!0),t.ended||t.reading?_("reading or ended",i=!1):i&&(_("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=w(r,t))),null===(n=0<e?N(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},l.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},l.prototype.pipe=function(r,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r)}i.pipesCount+=1,_("pipe count=%d opts=%j",i.pipesCount,e);var t=(!e||!1!==e.end)&&r!==m.stdout&&r!==m.stderr?o:b;function a(e,t){_("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,_("cleanup"),r.removeListener("close",d),r.removeListener("finish",p),r.removeListener("drain",f),r.removeListener("error",l),r.removeListener("unpipe",a),n.removeListener("end",o),n.removeListener("end",b),n.removeListener("data",h),u=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||f())}function o(){_("onend"),r.end()}i.endEmitted?v.nextTick(t):n.once("end",t),r.on("unpipe",a);var s,f=(s=n,function(){var e=s._readableState;_("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&g(s,"data")&&(e.flowing=!0,I(s))});r.on("drain",f);var u=!1;var c=!1;function h(e){_("ondata"),(c=!1)!==r.write(e)||c||((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==B(i.pipes,r))&&!u&&(_("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function l(e){_("onerror",e),b(),r.removeListener("error",l),0===g(r,"error")&&r.emit("error",e)}function d(){r.removeListener("finish",p),b()}function p(){_("onfinish"),r.removeListener("close",d),b()}function b(){_("unpipe"),n.unpipe(r)}return n.on("data",h),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?y(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(r,"error",l),r.once("close",d),r.once("finish",p),r.emit("pipe",n),i.flowing||(_("pipe resume"),n.resume()),r},l.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,r);return this}var o=B(t.pipes,e);return-1===o||(t.pipes.splice(o,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},l.prototype.addListener=l.prototype.on=function(e,t){var r=i.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&A(this):v.nextTick(x,this))}return r},l.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(_("resume"),r.flowing=!0,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,v.nextTick(C,e,t))),this},l.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},l.prototype.wrap=function(t){var r=this,n=this._readableState,i=!1;for(var e in t.on("end",function(){if(_("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),t.on("data",function(e){_("wrapped data"),n.decoder&&(e=n.decoder.write(e)),n.objectMode&&null==e||(n.objectMode||e&&e.length)&&(r.push(e)||(i=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var a=0;a<h.length;a++)t.on(h[a],this.emit.bind(this,h[a]));return this._read=function(e){_("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(l.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),l._fromList=N}).call(this,R("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":212,"./internal/streams/BufferList":217,"./internal/streams/destroy":218,"./internal/streams/stream":219,_process:202,"core-util-is":80,events:113,inherits:131,isarray:133,"process-nextick-args":201,"safe-buffer":225,"string_decoder/":237,util:47}],215:[function(e,t,r){"use strict";t.exports=a;var n=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var r=this;"function"==typeof this._flush?this._flush(function(e,t){s(r,e,t)}):s(this,null,null)}function s(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},{"./_stream_duplex":212,"core-util-is":80,inherits:131}],216:[function(k,S,e){(function(e,t,r){"use strict";var v=k("process-nextick-args");function h(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}S.exports=l;var s,f=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?r:v.nextTick;l.WritableState=c;var n=Object.create(k("core-util-is"));n.inherits=k("inherits");var i={deprecate:k("util-deprecate")},a=k("./internal/streams/stream"),y=k("safe-buffer").Buffer,g=t.Uint8Array||function(){};var o,u=k("./internal/streams/destroy");function _(){}function c(e,t){s=s||k("./_stream_duplex"),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(v.nextTick(i,n),v.nextTick(A,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),A(e,t))}(e,r,n,t,i);else{var a=b(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||p(e,r),n?f(d,e,r,a,i):d(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}function l(e){if(s=s||k("./_stream_duplex"),!(o.call(l,this)||this instanceof s))return new l(e);this._writableState=new c(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function w(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function d(e,t,r,n){var i,a;r||(i=e,0===(a=t).length&&a.needDrain&&(a.needDrain=!1,i.emit("drain"))),t.pendingcb--,n(),A(e,t)}function p(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var o=0,s=!0;r;)(i[o]=r).isBuf||(s=!1),r=r.next,o+=1;i.allBuffers=s,w(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new h(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,u=r.encoding,c=r.callback;if(w(e,t,!1,t.objectMode?1:f.length,f,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function m(t,r){t._final(function(e){r.pendingcb--,e&&t.emit("error",e),r.prefinished=!0,t.emit("prefinish"),A(t,r)})}function A(e,t){var r,n,i=b(t);return i&&(r=e,(n=t).prefinished||n.finalCalled||("function"==typeof r._final?(n.pendingcb++,n.finalCalled=!0,v.nextTick(m,r,n)):(n.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}n.inherits(l,a),c.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(c.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===l&&(e&&e._writableState instanceof c)}})):o=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,r){var n,i,a,o,s,f,u,c,h,l,d,p=this._writableState,b=!1,m=!p.objectMode&&(n=e,y.isBuffer(n)||n instanceof g);return m&&!y.isBuffer(e)&&(i=e,e=y.from(i)),"function"==typeof t&&(r=t,t=null),t=m?"buffer":t||p.defaultEncoding,"function"!=typeof r&&(r=_),p.ended?(h=this,l=r,d=new Error("write after end"),h.emit("error",d),v.nextTick(l,d)):(m||(a=this,o=p,f=r,c=!(u=!0),null===(s=e)?c=new TypeError("May not write null values to stream"):"string"==typeof s||void 0===s||o.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c&&(a.emit("error",c),v.nextTick(f,c),u=!1),u))&&(p.pendingcb++,b=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=y.from(t,r));return t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var f=t.length<t.highWaterMark;f||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else w(e,t,!1,s,n,i,a);return f}(this,p,m,e,t,r)),b},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||p(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),l.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,A(e,t),r&&(t.finished?v.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=u.destroy,l.prototype._undestroy=u.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,k("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},k("timers").setImmediate)},{"./_stream_duplex":212,"./internal/streams/destroy":218,"./internal/streams/stream":219,_process:202,"core-util-is":80,inherits:131,"process-nextick-args":201,"safe-buffer":225,timers:238,"util-deprecate":239}],217:[function(e,t,r){"use strict";var s=e("safe-buffer").Buffer,n=e("util");function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.head=null,this.tail=null,this.length=0}t.exports=(i.prototype.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},i.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},i.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},i.prototype.concat=function(e){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,i=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,r=i,n=o,t.copy(r,n),o+=a.data.length,a=a.next;return i},i),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":225,util:47}],218:[function(e,t,r){"use strict";var a=e("process-nextick-args");function o(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||a.nextTick(o,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(a.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":201}],219:[function(e,t,r){t.exports=e("events").EventEmitter},{events:113}],220:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":221}],221:[function(e,t,r){(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":212,"./lib/_stream_passthrough.js":213,"./lib/_stream_readable.js":214,"./lib/_stream_transform.js":215,"./lib/_stream_writable.js":216}],222:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":221}],223:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":216}],224:[function(e,t,r){"use strict";var n=e("buffer").Buffer,i=e("inherits"),a=e("hash-base"),m=new Array(16),v=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],w=[0,1518500249,1859775393,2400959708,2840853838],A=[1352829926,1548603684,1836072691,2053994217,0];function o(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function k(e,t){return e<<t|e>>>32-t}function S(e,t,r,n,i,a,o,s){return k(e+(t^r^n)+a+o|0,s)+i|0}function E(e,t,r,n,i,a,o,s){return k(e+(t&r|~t&n)+a+o|0,s)+i|0}function x(e,t,r,n,i,a,o,s){return k(e+((t|~r)^n)+a+o|0,s)+i|0}function C(e,t,r,n,i,a,o,s){return k(e+(t&n|r&~n)+a+o|0,s)+i|0}function I(e,t,r,n,i,a,o,s){return k(e+(t^(r|~n))+a+o|0,s)+i|0}i(o,a),o.prototype._update=function(){for(var e=m,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,o=0|this._e,s=0|this._a,f=0|this._b,u=0|this._c,c=0|this._d,h=0|this._e,l=0;l<80;l+=1){var d,p;p=l<16?(d=S(r,n,i,a,o,e[v[l]],w[0],g[l]),I(s,f,u,c,h,e[y[l]],A[0],_[l])):l<32?(d=E(r,n,i,a,o,e[v[l]],w[1],g[l]),C(s,f,u,c,h,e[y[l]],A[1],_[l])):l<48?(d=x(r,n,i,a,o,e[v[l]],w[2],g[l]),x(s,f,u,c,h,e[y[l]],A[2],_[l])):l<64?(d=C(r,n,i,a,o,e[v[l]],w[3],g[l]),E(s,f,u,c,h,e[y[l]],A[3],_[l])):(d=I(r,n,i,a,o,e[v[l]],w[4],g[l]),S(s,f,u,c,h,e[y[l]],A[4],_[l])),r=o,o=a,a=k(i,10),i=n,n=d,s=h,h=c,c=k(u,10),u=f,f=p}var b=this._b+i+c|0;this._b=this._c+a+h|0,this._c=this._d+o+s|0,this._d=this._e+r+f|0,this._e=this._a+n+u|0,this._a=b},o.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=o},{buffer:77,"hash-base":115,inherits:131}],225:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(a(n,r),r.Buffer=o),a(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:77}],226:[function(z,e,t){(function(r){!function(u){u.parser=function(e,t){return new i(e,t)},u.SAXParser=i,u.SAXStream=o,u.createStream=function(e,t){return new o(e,t)},u.MAX_BUFFER_LENGTH=65536;var n,c=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,t){if(!(this instanceof i))return new i(e,t);var r=this;!function(e){for(var t=0,r=c.length;t<r;t++)e[c[t]]=""}(r),r.q=r.c="",r.bufferCheckPosition=u.MAX_BUFFER_LENGTH,r.opt=t||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!e,r.noscript=!(!e&&!r.opt.noscript),r.state=k.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?Object.create(u.XML_ENTITIES):Object.create(u.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(d)),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),S(r,"onready")}u.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}),i.prototype={end:function(){N(this)},write:function(e){var t=this;if(this.error)throw this.error;if(t.closed)return I(t,"Cannot write after close. Assign an onready handler.");if(null===e)return N(t);"object"==typeof e&&(e=e.toString());var r=0,n="";for(;n=D(e,r++),t.c=n;)switch(t.trackPosition&&(t.position++,"\n"===n?(t.line++,t.column=0):t.column++),t.state){case k.BEGIN:if(t.state=k.BEGIN_WHITESPACE,"\ufeff"===n)continue;j(t,n);continue;case k.BEGIN_WHITESPACE:j(t,n);continue;case k.TEXT:if(t.sawRoot&&!t.closedRoot){for(var i=r-1;n&&"<"!==n&&"&"!==n;)(n=D(e,r++))&&t.trackPosition&&(t.position++,"\n"===n?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(i,r-1)}"<"!==n||t.sawRoot&&t.closedRoot&&!t.strict?(y(n)||t.sawRoot&&!t.closedRoot||M(t,"Text data outside of root node."),"&"===n?t.state=k.TEXT_ENTITY:t.textNode+=n):(t.state=k.OPEN_WAKA,t.startTagPosition=t.position);continue;case k.SCRIPT:"<"===n?t.state=k.SCRIPT_ENDING:t.script+=n;continue;case k.SCRIPT_ENDING:"/"===n?t.state=k.CLOSE_TAG:(t.script+="<"+n,t.state=k.SCRIPT);continue;case k.OPEN_WAKA:if("!"===n)t.state=k.SGML_DECL,t.sgmlDecl="";else if(!y(n))if(_(p,n))t.state=k.OPEN_TAG,t.tagName=n;else if("/"===n)t.state=k.CLOSE_TAG,t.tagName="";else if("?"===n)t.state=k.PROC_INST,t.procInstName=t.procInstBody="";else{if(M(t,"Unencoded <"),t.startTagPosition+1<t.position){var a=t.position-t.startTagPosition;n=new Array(a).join(" ")+n}t.textNode+="<"+n,t.state=k.TEXT}continue;case k.SGML_DECL:(t.sgmlDecl+n).toUpperCase()===h?(E(t,"onopencdata"),t.state=k.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+n==="--"?(t.state=k.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+n).toUpperCase()===l?(t.state=k.DOCTYPE,(t.doctype||t.sawRoot)&&M(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===n?(E(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=k.TEXT):(g(n)&&(t.state=k.SGML_DECL_QUOTED),t.sgmlDecl+=n);continue;case k.SGML_DECL_QUOTED:n===t.q&&(t.state=k.SGML_DECL,t.q=""),t.sgmlDecl+=n;continue;case k.DOCTYPE:">"===n?(t.state=k.TEXT,E(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=n,"["===n?t.state=k.DOCTYPE_DTD:g(n)&&(t.state=k.DOCTYPE_QUOTED,t.q=n));continue;case k.DOCTYPE_QUOTED:t.doctype+=n,n===t.q&&(t.q="",t.state=k.DOCTYPE);continue;case k.DOCTYPE_DTD:t.doctype+=n,"]"===n?t.state=k.DOCTYPE:g(n)&&(t.state=k.DOCTYPE_DTD_QUOTED,t.q=n);continue;case k.DOCTYPE_DTD_QUOTED:t.doctype+=n,n===t.q&&(t.state=k.DOCTYPE_DTD,t.q="");continue;case k.COMMENT:"-"===n?t.state=k.COMMENT_ENDING:t.comment+=n;continue;case k.COMMENT_ENDING:"-"===n?(t.state=k.COMMENT_ENDED,t.comment=C(t.opt,t.comment),t.comment&&E(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+n,t.state=k.COMMENT);continue;case k.COMMENT_ENDED:">"!==n?(M(t,"Malformed comment"),t.comment+="--"+n,t.state=k.COMMENT):t.state=k.TEXT;continue;case k.CDATA:"]"===n?t.state=k.CDATA_ENDING:t.cdata+=n;continue;case k.CDATA_ENDING:"]"===n?t.state=k.CDATA_ENDING_2:(t.cdata+="]"+n,t.state=k.CDATA);continue;case k.CDATA_ENDING_2:">"===n?(t.cdata&&E(t,"oncdata",t.cdata),E(t,"onclosecdata"),t.cdata="",t.state=k.TEXT):"]"===n?t.cdata+="]":(t.cdata+="]]"+n,t.state=k.CDATA);continue;case k.PROC_INST:"?"===n?t.state=k.PROC_INST_ENDING:y(n)?t.state=k.PROC_INST_BODY:t.procInstName+=n;continue;case k.PROC_INST_BODY:if(!t.procInstBody&&y(n))continue;"?"===n?t.state=k.PROC_INST_ENDING:t.procInstBody+=n;continue;case k.PROC_INST_ENDING:">"===n?(E(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=k.TEXT):(t.procInstBody+="?"+n,t.state=k.PROC_INST_BODY);continue;case k.OPEN_TAG:_(b,n)?t.tagName+=n:(T(t),">"===n?O(t):"/"===n?t.state=k.OPEN_TAG_SLASH:(y(n)||M(t,"Invalid character in tag name"),t.state=k.ATTRIB));continue;case k.OPEN_TAG_SLASH:">"===n?(O(t,!0),F(t)):(M(t,"Forward-slash in opening tag not followed by >"),t.state=k.ATTRIB);continue;case k.ATTRIB:if(y(n))continue;">"===n?O(t):"/"===n?t.state=k.OPEN_TAG_SLASH:_(p,n)?(t.attribName=n,t.attribValue="",t.state=k.ATTRIB_NAME):M(t,"Invalid attribute name");continue;case k.ATTRIB_NAME:"="===n?t.state=k.ATTRIB_VALUE:">"===n?(M(t,"Attribute without value"),t.attribValue=t.attribName,R(t),O(t)):y(n)?t.state=k.ATTRIB_NAME_SAW_WHITE:_(b,n)?t.attribName+=n:M(t,"Invalid attribute name");continue;case k.ATTRIB_NAME_SAW_WHITE:if("="===n)t.state=k.ATTRIB_VALUE;else{if(y(n))continue;M(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",E(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===n?O(t):_(p,n)?(t.attribName=n,t.state=k.ATTRIB_NAME):(M(t,"Invalid attribute name"),t.state=k.ATTRIB)}continue;case k.ATTRIB_VALUE:if(y(n))continue;g(n)?(t.q=n,t.state=k.ATTRIB_VALUE_QUOTED):(M(t,"Unquoted attribute value"),t.state=k.ATTRIB_VALUE_UNQUOTED,t.attribValue=n);continue;case k.ATTRIB_VALUE_QUOTED:if(n!==t.q){"&"===n?t.state=k.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=n;continue}R(t),t.q="",t.state=k.ATTRIB_VALUE_CLOSED;continue;case k.ATTRIB_VALUE_CLOSED:y(n)?t.state=k.ATTRIB:">"===n?O(t):"/"===n?t.state=k.OPEN_TAG_SLASH:_(p,n)?(M(t,"No whitespace between attributes"),t.attribName=n,t.attribValue="",t.state=k.ATTRIB_NAME):M(t,"Invalid attribute name");continue;case k.ATTRIB_VALUE_UNQUOTED:if(">"!==(f=n)&&!y(f)){"&"===n?t.state=k.ATTRIB_VALUE_ENTITY_U:t.attribValue+=n;continue}R(t),">"===n?O(t):t.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(t.tagName)">"===n?F(t):_(b,n)?t.tagName+=n:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=k.SCRIPT):(y(n)||M(t,"Invalid tagname in closing tag"),t.state=k.CLOSE_TAG_SAW_WHITE);else{if(y(n))continue;_(p,n)?t.tagName=n:t.script?(t.script+="</"+n,t.state=k.SCRIPT):M(t,"Invalid tagname in closing tag.")}continue;case k.CLOSE_TAG_SAW_WHITE:if(y(n))continue;">"===n?F(t):M(t,"Invalid characters in closing tag");continue;case k.TEXT_ENTITY:case k.ATTRIB_VALUE_ENTITY_Q:case k.ATTRIB_VALUE_ENTITY_U:var o,s;switch(t.state){case k.TEXT_ENTITY:o=k.TEXT,s="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:o=k.ATTRIB_VALUE_QUOTED,s="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:o=k.ATTRIB_VALUE_UNQUOTED,s="attribValue"}";"===n?(t[s]+=P(t),t.entity="",t.state=o):_(t.entity.length?v:m,n)?t.entity+=n:(M(t,"Invalid character in entity name"),t[s]+="&"+t.entity+n,t.entity="",t.state=o);continue;default:throw new Error(t,"Unknown state: "+t.state)}var f;t.position>=t.bufferCheckPosition&&function(e){for(var t=Math.max(u.MAX_BUFFER_LENGTH,10),r=0,n=0,i=c.length;n<i;n++){var a=e[c[n]].length;if(t<a)switch(c[n]){case"textNode":x(e);break;case"cdata":E(e,"oncdata",e.cdata),e.cdata="";break;case"script":E(e,"onscript",e.script),e.script="";break;default:I(e,"Max buffer length exceeded: "+c[n])}r=Math.max(r,a)}var o=u.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=o+e.position}(t);return t},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;x(e=this),""!==e.cdata&&(E(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(E(e,"onscript",e.script),e.script="")}};try{n=z("stream").Stream}catch(e){n=function(){}}var a=u.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});function o(e,t){if(!(this instanceof o))return new o(e,t);n.apply(this),this._parser=new i(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,a.forEach(function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e;r.on(t,e)},enumerable:!0,configurable:!1})})}(o.prototype=Object.create(n.prototype,{constructor:{value:o}})).write=function(e){if("function"==typeof r&&"function"==typeof r.isBuffer&&r.isBuffer(e)){if(!this._decoder){var t=z("string_decoder").StringDecoder;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},o.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},o.prototype.on=function(t,e){var r=this;return r._parser["on"+t]||-1===a.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),n.prototype.on.call(r,t,e)};var h="[CDATA[",l="DOCTYPE",s="http://www.w3.org/XML/1998/namespace",f="http://www.w3.org/2000/xmlns/",d={xml:s,xmlns:f},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function y(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function g(e){return'"'===e||"'"===e}function _(e,t){return e.test(t)}var w,A,k=0;for(var e in u.STATE={BEGIN:k++,BEGIN_WHITESPACE:k++,TEXT:k++,TEXT_ENTITY:k++,OPEN_WAKA:k++,SGML_DECL:k++,SGML_DECL_QUOTED:k++,DOCTYPE:k++,DOCTYPE_QUOTED:k++,DOCTYPE_DTD:k++,DOCTYPE_DTD_QUOTED:k++,COMMENT_STARTING:k++,COMMENT:k++,COMMENT_ENDING:k++,COMMENT_ENDED:k++,CDATA:k++,CDATA_ENDING:k++,CDATA_ENDING_2:k++,PROC_INST:k++,PROC_INST_BODY:k++,PROC_INST_ENDING:k++,OPEN_TAG:k++,OPEN_TAG_SLASH:k++,ATTRIB:k++,ATTRIB_NAME:k++,ATTRIB_NAME_SAW_WHITE:k++,ATTRIB_VALUE:k++,ATTRIB_VALUE_QUOTED:k++,ATTRIB_VALUE_CLOSED:k++,ATTRIB_VALUE_UNQUOTED:k++,ATTRIB_VALUE_ENTITY_Q:k++,ATTRIB_VALUE_ENTITY_U:k++,CLOSE_TAG:k++,CLOSE_TAG_SAW_WHITE:k++,SCRIPT:k++,SCRIPT_ENDING:k++},u.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},u.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(u.ENTITIES).forEach(function(e){var t=u.ENTITIES[e],r="number"==typeof t?String.fromCharCode(t):t;u.ENTITIES[e]=r}),u.STATE)u.STATE[u.STATE[e]]=e;function S(e,t,r){e[t]&&e[t](r)}function E(e,t,r){e.textNode&&x(e),S(e,t,r)}function x(e){e.textNode=C(e.opt,e.textNode),e.textNode&&S(e,"ontext",e.textNode),e.textNode=""}function C(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function I(e,t){return x(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,S(e,"onerror",t),e}function N(e){return e.sawRoot&&!e.closedRoot&&M(e,"Unclosed root tag"),e.state!==k.BEGIN&&e.state!==k.BEGIN_WHITESPACE&&e.state!==k.TEXT&&I(e,"Unexpected end"),x(e),e.c="",e.closed=!0,S(e,"onend"),i.call(e,e.strict,e.opt),e}function M(e,t){if("object"!=typeof e||!(e instanceof i))throw new Error("bad call to strictFail");e.strict&&I(e,t)}function T(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,E(e,"onopentagstart",r)}function B(e,t){var r=e.indexOf(":")<0?["",e]:e.split(":"),n=r[0],i=r[1];return t&&"xmlns"===e&&(n="xmlns",i=""),{prefix:n,local:i}}function R(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=B(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==s)M(e,"xml: prefix must be bound to "+s+"\nActual: "+e.attribValue);else if("xmlns"===n&&e.attribValue!==f)M(e,"xmlns: prefix must be bound to "+f+"\nActual: "+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,E(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function O(t,e){if(t.opt.xmlns){var r=t.tag,n=B(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(M(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix);var i=t.tags[t.tags.length-1]||t;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach(function(e){E(t,"onopennamespace",{prefix:e,uri:r.ns[e]})});for(var a=0,o=t.attribList.length;a<o;a++){var s=t.attribList[a],f=s[0],u=s[1],c=B(f,!0),h=c.prefix,l=c.local,d=""!==h&&r.ns[h]||"",p={name:f,value:u,prefix:h,local:l,uri:d};h&&"xmlns"!==h&&!d&&(M(t,"Unbound namespace prefix: "+JSON.stringify(h)),p.uri=h),t.tag.attributes[f]=p,E(t,"onattribute",p)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),E(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=k.TEXT:t.state=k.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function F(r){if(!r.tagName)return M(r,"Weird empty close tag."),r.textNode+="</>",void(r.state=k.TEXT);if(r.script){if("script"!==r.tagName)return r.script+="</"+r.tagName+">",r.tagName="",void(r.state=k.SCRIPT);E(r,"onscript",r.script),r.script=""}var e=r.tags.length,t=r.tagName;r.strict||(t=t[r.looseCase]());for(var n=t;e--;){if(r.tags[e].name===n)break;M(r,"Unexpected close tag")}if(e<0)return M(r,"Unmatched closing tag: "+r.tagName),r.textNode+="</"+r.tagName+">",void(r.state=k.TEXT);r.tagName=t;for(var i=r.tags.length;i-- >e;){var a=r.tag=r.tags.pop();r.tagName=r.tag.name,E(r,"onclosetag",r.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var f=r.tags[r.tags.length-1]||r;r.opt.xmlns&&a.ns!==f.ns&&Object.keys(a.ns).forEach(function(e){var t=a.ns[e];E(r,"onclosenamespace",{prefix:e,uri:t})})}0===e&&(r.closedRoot=!0),r.tagName=r.attribValue=r.attribName="",r.attribList.length=0,r.state=k.TEXT}function P(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&(i="x"===r.charAt(1)?(r=r.slice(2),(t=parseInt(r,16)).toString(16)):(r=r.slice(1),(t=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==r?(M(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function j(e,t){"<"===t?(e.state=k.OPEN_WAKA,e.startTagPosition=e.position):y(t)||(M(e,"Non-whitespace before first tag."),e.textNode=t,e.state=k.TEXT)}function D(e,t){var r="";return t<e.length&&(r=e.charAt(t)),r}function t(){var e,t,r=[],n=-1,i=arguments.length;if(!i)return"";for(var a="";++n<i;){var o=Number(arguments[n]);if(!isFinite(o)||o<0||1114111<o||A(o)!==o)throw RangeError("Invalid code point: "+o);o<=65535?r.push(o):(e=55296+((o-=65536)>>10),t=o%1024+56320,r.push(e,t)),(n+1===i||16384<r.length)&&(a+=w.apply(null,r),r.length=0)}return a}k=u.STATE,String.fromCodePoint||(w=String.fromCharCode,A=Math.floor,Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:t,configurable:!0,writable:!0}):String.fromCodePoint=t)}(void 0===t?this.sax={}:t)}).call(this,z("buffer").Buffer)},{buffer:77,stream:236,string_decoder:237}],227:[function(e,t,r){(function(e){"use strict";t.exports="function"==typeof e?e:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}}).call(this,e("timers").setImmediate)},{timers:238}],228:[function(e,t,r){var c=e("safe-buffer").Buffer;function n(e,t){this._block=c.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=c.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,a=this._len,o=0;o<i;){for(var s=a%n,f=Math.min(i-o,n-s),u=0;u<f;u++)r[s+u]=e[o+u];o+=f,(a+=f)%n==0&&this._update(r)}return this._len+=i,this},n.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,1+t),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},{"safe-buffer":225}],229:[function(e,t,r){(r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":230,"./sha1":231,"./sha224":232,"./sha256":233,"./sha384":234,"./sha512":235}],230:[function(e,t,r){var n=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,v=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,i.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r,n,i,a,o,s=this._w,f=0|this._a,u=0|this._b,c=0|this._c,h=0|this._d,l=0|this._e,d=0;d<16;++d)s[d]=e.readInt32BE(4*d);for(;d<80;++d)s[d]=s[d-3]^s[d-8]^s[d-14]^s[d-16];for(var p=0;p<80;++p){var b=~~(p/20),m=0|((o=f)<<5|o>>>27)+(n=u,i=c,a=h,0===(r=b)?n&i|~n&a:2===r?n&i|n&a|i&a:n^i^a)+l+s[p]+v[b];l=h,h=c,c=(t=u)<<30|t>>>2,u=f,f=m}this._a=f+this._a|0,this._b=u+this._b|0,this._c=c+this._c|0,this._d=h+this._d|0,this._e=l+this._e|0},s.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":228,inherits:131,"safe-buffer":225}],231:[function(e,t,r){var n=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,y=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,i.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r,n,i,a,o,s,f=this._w,u=0|this._a,c=0|this._b,h=0|this._c,l=0|this._d,d=0|this._e,p=0;p<16;++p)f[p]=e.readInt32BE(4*p);for(;p<80;++p)f[p]=(t=f[p-3]^f[p-8]^f[p-14]^f[p-16])<<1|t>>>31;for(var b=0;b<80;++b){var m=~~(b/20),v=0|((s=u)<<5|s>>>27)+(i=c,a=h,o=l,0===(n=m)?i&a|~i&o:2===n?i&a|i&o|a&o:i^a^o)+d+f[b]+y[m];d=l,l=h,h=(r=c)<<30|r>>>2,c=u,u=v}this._a=u+this._a|0,this._b=c+this._b|0,this._c=h+this._c|0,this._d=l+this._d|0,this._e=d+this._e|0},s.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":228,inherits:131,"safe-buffer":225}],232:[function(e,t,r){var n=e("inherits"),i=e("./sha256"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(64);function f(){this.init(),this._w=s,a.call(this,64,56)}n(f,i),f.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},f.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=f},{"./hash":228,"./sha256":233,inherits:131,"safe-buffer":225}],233:[function(e,t,r){var n=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function s(){this.init(),this._w=o,i.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,r,n,i,a,o,s,f=this._w,u=0|this._a,c=0|this._b,h=0|this._c,l=0|this._d,d=0|this._e,p=0|this._f,b=0|this._g,m=0|this._h,v=0;v<16;++v)f[v]=e.readInt32BE(4*v);for(;v<64;++v)f[v]=0|(((r=f[v-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+f[v-7]+(((t=f[v-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+f[v-16];for(var y=0;y<64;++y){var g=m+(((s=d)>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+((o=b)^d&(p^o))+w[y]+f[y]|0,_=0|(((a=u)>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((n=u)&(i=c)|h&(n|i));m=b,b=p,p=d,d=l+g|0,l=h,h=c,c=u,u=g+_|0}this._a=u+this._a|0,this._b=c+this._b|0,this._c=h+this._c|0,this._d=l+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=m+this._h|0},s.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=s},{"./hash":228,inherits:131,"safe-buffer":225}],234:[function(e,t,r){var n=e("inherits"),i=e("./sha512"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(160);function f(){this.init(),this._w=s,a.call(this,128,112)}n(f,i),f.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},f.prototype._hash=function(){var n=o.allocUnsafe(48);function e(e,t,r){n.writeInt32BE(e,r),n.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),n},t.exports=f},{"./hash":228,"./sha512":235,inherits:131,"safe-buffer":225}],235:[function(e,t,r){var n=e("inherits"),i=e("./hash"),a=e("safe-buffer").Buffer,$=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function s(){this.init(),this._w=o,i.call(this,128,112)}function ee(e,t,r){return r^e&(t^r)}function te(e,t,r){return e&t|r&(e|t)}function re(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function ne(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function ie(e,t){return e>>>0<t>>>0?1:0}n(s,i),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t,r,n,i,a,o,s,f,u=this._w,c=0|this._ah,h=0|this._bh,l=0|this._ch,d=0|this._dh,p=0|this._eh,b=0|this._fh,m=0|this._gh,v=0|this._hh,y=0|this._al,g=0|this._bl,_=0|this._cl,w=0|this._dl,A=0|this._el,k=0|this._fl,S=0|this._gl,E=0|this._hl,x=0;x<32;x+=2)u[x]=e.readInt32BE(4*x),u[x+1]=e.readInt32BE(4*x+4);for(;x<160;x+=2){var C=u[x-30],I=u[x-30+1],N=((s=C)>>>1|(f=I)<<31)^(s>>>8|f<<24)^s>>>7,M=((a=I)>>>1|(o=C)<<31)^(a>>>8|o<<24)^(a>>>7|o<<25);C=u[x-4],I=u[x-4+1];var T=((n=C)>>>19|(i=I)<<13)^(i>>>29|n<<3)^n>>>6,B=((t=I)>>>19|(r=C)<<13)^(r>>>29|t<<3)^(t>>>6|r<<26),R=u[x-14],O=u[x-14+1],F=u[x-32],P=u[x-32+1],j=M+O|0,D=N+R+ie(j,M)|0;D=(D=D+T+ie(j=j+B|0,B)|0)+F+ie(j=j+P|0,P)|0,u[x]=D,u[x+1]=j}for(var z=0;z<160;z+=2){D=u[z],j=u[z+1];var U=te(c,h,l),L=te(y,g,_),q=re(c,y),V=re(y,c),H=ne(p,A),W=ne(A,p),K=$[z+1],G=ee(p,b,m),X=ee(A,k,S),Z=E+W|0,Y=v+H+ie(Z,E)|0;Y=(Y=(Y=Y+G+ie(Z=Z+X|0,X)|0)+$[z]+ie(Z=Z+K|0,K)|0)+D+ie(Z=Z+j|0,j)|0;var Q=V+L|0,J=q+U+ie(Q,V)|0;v=m,E=S,m=b,S=k,b=p,k=A,p=d+Y+ie(A=w+Z|0,w)|0,d=l,w=_,l=h,_=g,h=c,g=y,c=Y+J+ie(y=Z+Q|0,Z)|0}this._al=this._al+y|0,this._bl=this._bl+g|0,this._cl=this._cl+_|0,this._dl=this._dl+w|0,this._el=this._el+A|0,this._fl=this._fl+k|0,this._gl=this._gl+S|0,this._hl=this._hl+E|0,this._ah=this._ah+c+ie(this._al,y)|0,this._bh=this._bh+h+ie(this._bl,g)|0,this._ch=this._ch+l+ie(this._cl,_)|0,this._dh=this._dh+d+ie(this._dl,w)|0,this._eh=this._eh+p+ie(this._el,A)|0,this._fh=this._fh+b+ie(this._fl,k)|0,this._gh=this._gh+m+ie(this._gl,S)|0,this._hh=this._hh+v+ie(this._hl,E)|0},s.prototype._hash=function(){var n=a.allocUnsafe(64);function e(e,t,r){n.writeInt32BE(e,r),n.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),n},t.exports=s},{"./hash":228,inherits:131,"safe-buffer":225}],236:[function(e,t,r){t.exports=n;var c=e("events").EventEmitter;function n(){c.call(this)}e("inherits")(n,c),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function f(e){if(u(),0===c.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",f),t.removeListener("error",f),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("error",f),t.on("error",f),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t}},{events:113,inherits:131,"readable-stream/duplex.js":211,"readable-stream/passthrough.js":220,"readable-stream/readable.js":221,"readable-stream/transform.js":222,"readable-stream/writable.js":223}],237:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function o(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=h,this.end=l,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function f(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(55296<=n&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function h(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}(r.StringDecoder=o).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);if(0<=i)return 0<i&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(0<=(i=s(t[n])))return 0<i&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(0<=(i=s(t[n])))return 0<i&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":225}],238:[function(f,e,u){(function(e,t){var n=f("process/browser.js").nextTick,r=Function.prototype.apply,i=Array.prototype.slice,a={},o=0;function s(e,t){this._id=e,this._clearFn=t}u.setTimeout=function(){return new s(r.call(setTimeout,window,arguments),clearTimeout)},u.setInterval=function(){return new s(r.call(setInterval,window,arguments),clearInterval)},u.clearTimeout=u.clearInterval=function(e){e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},u.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},u.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},u._unrefActive=u.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},u.setImmediate="function"==typeof e?e:function(e){var t=o++,r=!(arguments.length<2)&&i.call(arguments,1);return a[t]=!0,n(function(){a[t]&&(r?e.apply(null,r):e.call(null),u.clearImmediate(t))}),t},u.clearImmediate="function"==typeof t?t:function(e){delete a[e]}}).call(this,f("timers").setImmediate,f("timers").clearImmediate)},{"process/browser.js":202,timers:238}],239:[function(e,t,r){(function(r){function n(e){try{if(!r.localStorage)return}catch(e){return}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],240:[function(require,module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(t),function(e){r[e]=t[e]}),forEach(globals,function(e){t[e]&&(r[e]=t[e])});var a=Object_keys(r),o=n.call(r,this.code);return forEach(Object_keys(r),function(e){(e in t||-1===indexOf(a,e))&&(t[e]=r[e])}),forEach(globals,function(e){e in t||defineProp(t,e,r[e])}),document.body.removeChild(e),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var r=Script.createContext(t),e=this.runInContext(r);return t&&forEach(Object_keys(r),function(e){t[e]=r[e]}),e},forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(e){var t=Script(e);return t[r].apply(t,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(t){var r=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(e){r[e]=t[e]}),r}},{}]},{},[20])(20)});
//# sourceMappingURL=xlsx-populate.min.js.map