text: // Azure Storage JavaScript Client Library 2.10.101
  // Copyright (c) Microsoft and contributors. All rights reserved.
  /* eslint-disable */
  !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;((t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).AzureStorage||(t.AzureStorage={})).Blob=e()}}(function(){var define,module,exports;return function a(o,s,c){function l(t,e){if(!s[t]){if(!o[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(u)return u(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var n=s[t]={exports:{}};o[t][0].call(n.exports,function(e){return l(o[t][1][e]||e)},n,n.exports,a,o,s,c)}return s[t].exports}for(var u="function"==typeof require&&require,e=0;e<c.length;e++)l(c[e]);return l}({1:[function(e,t,i){t.exports.generateDevelopmentStorageCredentials=function(e){var t="UseDevelopmentStorage=true;";return e&&(t+="DevelopmentStorageProxyUri="+e),t};var r=e("../lib/services/blob/blobservice.browser");t.exports.BlobService=r,t.exports.BlobUtilities=e("../lib/services/blob/blobutilities"),t.exports.createBlobService=function(e,t,i){return new r(e,t,i,null)},t.exports.createBlobServiceWithSas=function(e,t){return new r(null,null,e,t)},t.exports.createBlobServiceWithTokenCredential=function(e,t){return new r(null,null,e,null,null,t)},t.exports.createBlobServiceAnonymous=function(e){return new r(null,null,e,null)};var n=e("../lib/common/common.browser"),a=n.StorageServiceClient,o=n.SharedKey;t.exports.generateAccountSharedAccessSignature=function(e,t,i){var r=a.getStorageSettings(e,t);return new o(r._name,r._key).generateAccountSignedQueryString(i)},t.exports.Constants=n.Constants,t.exports.StorageUtilities=n.StorageUtilities,t.exports.AccessCondition=n.AccessCondition,t.exports.SR=n.SR,t.exports.StorageServiceClient=a,t.exports.Logger=n.Logger,t.exports.WebResource=n.WebResource,t.exports.Validate=n.validate,t.exports.date=n.date,t.exports.TokenCredential=n.TokenCredential,t.exports.LinearRetryPolicyFilter=n.LinearRetryPolicyFilter,t.exports.ExponentialRetryPolicyFilter=n.ExponentialRetryPolicyFilter,t.exports.RetryPolicyFilter=n.RetryPolicyFilter},{"../lib/common/common.browser":2,"../lib/services/blob/blobservice.browser":41,"../lib/services/blob/blobutilities":43}],2:[function(e,t,i){var r=e("./common.core");r.BrowserFileReadStream=e("./streams/browserfilereadstream"),t.exports=r},{"./common.core":3,"./streams/browserfilereadstream":25}],3:[function(e,t,i){i=t.exports;var r=e("./util/util");e("./util/patch-xmlbuilder");var n=r.getNodeVersion();if(0===n.major&&8<n.minor&&!(10<n.minor||10===n.minor&&3<=n.patch))throw new Error("The Microsoft Azure node SDK does not work with node versions > 0.9.0 and < 0.10.3. Please upgrade to node >= 0.10.3");i.xmlbuilder=e("xmlbuilder"),i.xml2js=e("xml2js"),i.Logger=e("./diagnostics/logger"),i.WebResource=e("./http/webresource"),i.StorageServiceClient=e("./services/storageserviceclient"),i.ServicePropertiesResult=e("./models/servicepropertiesresult"),i.ServiceStatsParser=e("./models/servicestatsparser"),i.AclResult=e("./models/aclresult"),i.TokenCredential=e("./models/tokencredential"),i.LinearRetryPolicyFilter=e("./filters/linearretrypolicyfilter"),i.ExponentialRetryPolicyFilter=e("./filters/exponentialretrypolicyfilter"),i.RetryPolicyFilter=e("./filters/retrypolicyfilter"),i.SharedAccessSignature=e("./signing/sharedaccesssignature"),i.SharedKey=e("./signing/sharedkey"),i.BatchOperation=e("./streams/batchoperation"),i.ChunkAllocator=e("./streams/chunkallocator"),i.ChunkStream=e("./streams/chunkstream"),i.ChunkStreamWithStream=e("./streams/chunkstreamwithstream"),i.SpeedSummary=e("./streams/speedsummary"),i.BufferStream=e("./streams/bufferstream"),i.Constants=e("./util/constants"),i.SR=e("./util/sr"),i.date=e("./util/date"),i.ISO8061Date=e("./util/iso8061date"),i.util=e("./util/util"),i.validate=e("./util/validate"),i.StorageUtilities=e("./util/storageutilities"),i.AccessCondition=e("./util/accesscondition")},{"./diagnostics/logger":4,"./filters/exponentialretrypolicyfilter":6,"./filters/linearretrypolicyfilter":7,"./filters/retrypolicyfilter":8,"./http/webresource":9,"./models/aclresult":12,"./models/servicepropertiesresult":13,"./models/servicestatsparser":14,"./models/tokencredential":15,"./services/storageserviceclient":18,"./signing/sharedaccesssignature":21,"./signing/sharedkey":22,"./streams/batchoperation":24,"./streams/bufferstream":26,"./streams/chunkallocator":27,"./streams/chunkstream":28,"./streams/chunkstreamwithstream":29,"./streams/speedsummary":31,"./util/accesscondition":32,"./util/constants":33,"./util/date":34,"./util/iso8061date":35,"./util/patch-xmlbuilder":36,"./util/sr":37,"./util/storageutilities":38,"./util/util":39,"./util/validate":40,xml2js:312,xmlbuilder:315}],4:[function(e,t,i){function a(e,t){this.level=e,this.loggerFunction=t,this.loggerFunction||(this.loggerFunction=this.defaultLoggerFunction)}a.logPriority=[(a.LogLevels={EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warning",NOTICE:"notice",INFO:"info",DEBUG:"debug"}).EMERGENCY,a.LogLevels.ALERT,a.LogLevels.CRITICAL,a.LogLevels.ERROR,a.LogLevels.WARNING,a.LogLevels.NOTICE,a.LogLevels.INFO,a.LogLevels.DEBUG],a.prototype.log=function(e,t){this.loggerFunction(e,t)},a.prototype.emergency=function(e){this.log(a.LogLevels.EMERGENCY,e)},a.prototype.critical=function(e){this.log(a.LogLevels.CRITICAL,e)},a.prototype.alert=function(e){this.log(a.LogLevels.ALERT,e)},a.prototype.error=function(e){this.log(a.LogLevels.ERROR,e)},a.prototype.warn=function(e){this.log(a.LogLevels.WARNING,e)},a.prototype.notice=function(e){this.log(a.LogLevels.NOTICE,e)},a.prototype.info=function(e){this.log(a.LogLevels.INFO,e)},a.prototype.debug=function(e){this.log(a.LogLevels.DEBUG,e)},a.prototype.defaultLoggerFunction=function(e,t){var i=a.logPriority.indexOf(this.level),r=a.logPriority.indexOf(e),n=(new Date).toISOString();r<=i&&console.log("["+n+"]"+this.level+" : "+t)},t.exports=a},{}],5:[function(e,t,i){var r=e("util"),n=e("underscore");function a(e,t){Error.captureStackTrace&&Error.captureStackTrace(e,t)}function o(e,t){a(this,this.constructor),this.name=this.constructor.name,this.argumentName=e,this.message=t||r.format("Invalid or missing argument supplied: %s",e)}function s(e,t){a(this,this.constructor),this.name=this.constructor.name,this.argumentName=e,this.message=t||r.format("Missing argument: %s",e)}function c(e,t){a(this,this.constructor),this.name=this.constructor.name,this.message=e,t&&n.extend(this,t)}function l(e){a(this,this.constructor),this.name=this.constructor.name,this.message=e}r.inherits(o,Error),r.inherits(s,Error),r.inherits(c,Error),r.inherits(l,Error),t.exports.ArgumentError=o,t.exports.ArgumentNullError=s,t.exports.StorageError=c,t.exports.TimeoutError=l,t.exports.captureStackTrace=a},{underscore:229,util:234}],6:[function(e,t,i){"use strict";var n=e("./retrypolicyfilter");function a(e,t,i,r){this.retryCount=e||a.DEFAULT_CLIENT_RETRY_COUNT,this.retryInterval=t||a.DEFAULT_CLIENT_RETRY_INTERVAL,this.minRetryInterval=i||a.DEFAULT_CLIENT_MIN_RETRY_INTERVAL,this.maxRetryInterval=r||a.DEFAULT_CLIENT_MAX_RETRY_INTERVAL}a.DEFAULT_CLIENT_RETRY_INTERVAL=3e4,a.DEFAULT_CLIENT_RETRY_COUNT=3,a.DEFAULT_CLIENT_MAX_RETRY_INTERVAL=9e4,a.DEFAULT_CLIENT_MIN_RETRY_INTERVAL=3e3,a.prototype.shouldRetry=function(e,t){var i=t&&t.retryContext?t.retryContext:{},r=Math.pow(2,i.retryCount)-1;return r*=.8*this.retryInterval+Math.floor(Math.random()*(1.2*this.retryInterval-.8*this.retryInterval)),i.retryInterval=Math.min(this.minRetryInterval+r,this.maxRetryInterval),n._shouldRetryOnError(e,t)},a.prototype.handle=function(e,t){n._handle(this,e,t)},t.exports=a},{"./retrypolicyfilter":8}],7:[function(e,t,i){"use strict";var r=e("./retrypolicyfilter");function n(e,t){this.retryCount=e||n.DEFAULT_CLIENT_RETRY_COUNT,this.retryInterval=t||n.DEFAULT_CLIENT_RETRY_INTERVAL}n.DEFAULT_CLIENT_RETRY_INTERVAL=3e4,n.DEFAULT_CLIENT_RETRY_COUNT=3,n.prototype.shouldRetry=function(e,t){return(t&&t.retryContext?t.retryContext:{}).retryInterval=this.retryInterval,r._shouldRetryOnError(e,t)},n.prototype.handle=function(e,t){r._handle(this,e,t)},t.exports=n},{"./retrypolicyfilter":8}],8:[function(e,t,i){var p=e("../util/util"),h=e("../util/constants"),m=e("../util/storageutilities"),r=e("util")._extend;function n(e,t){this.retryCount=e||n.DEFAULT_CLIENT_RETRY_COUNT,this.retryInterval=t||n.DEFAULT_CLIENT_RETRY_INTERVAL}n.DEFAULT_CLIENT_RETRY_INTERVAL=3e4,n.DEFAULT_CLIENT_RETRY_COUNT=3,n.prototype.handle=function(e,t){n._handle(this,e,t)},n._handle=function(c,e,t){var l,u,f=r({},e);f.retryInterval=0,f.retryContext={retryCount:0,error:null,retryInterval:f.retryInterval,locationMode:f.locationMode,currentLocation:f.currentLocation};var d=function(){t&&t(f,function(e,t,i){e.error&&(f.retryContext.error&&(e.error.innerError=f.retryContext.error),f.retryContext.error=e.error);var r=f.currentLocation===h.StorageLocation.SECONDARY&&(e.response&&404===e.response.statusCode||e.error&&"ENOTFOUND"===e.error.code),n=!f.retryContext.retryCount||f.retryContext.retryCount<=c.retryCount,a=c.shouldRetry(r?500:p.objectIsNull(e.response)?306:e.response.statusCode,f);if(f.retryContext.retryCount++,a.ignore&&(e.error=null),p.objectIsNull(a.targetLocation)&&(a.targetLocation=p.getNextLocation(f.currentLocation,f.locationMode)),p.objectIsNull(a.retryInterval)&&(a.retryInterval=c.retryInterval),!e.outputStreamSent&&e.error&&p.objectIsNull(e.retryable)&&n&&(!p.objectIsNull(e.response)&&a.retryable||"ECONNREFUSED"===e.error.code||"ETIMEDOUT"===e.error.code||"ESOCKETTIMEDOUT"===e.error.code||"ECONNRESET"===e.error.code||"EAI_AGAIN"===e.error.code||"XHR error"===e.error.message)){f.currentLocation===h.StorageLocation.PRIMARY?l=e.operationEndTime:u=e.operationEndTime,r&&f.locationMode!==m.LocationMode.SECONDARY_ONLY&&(a.locationMode=m.LocationMode.PRIMARY_ONLY,a.targetLocation=h.StorageLocation.PRIMARY);var o=a.targetLocation===h.StorageLocation.PRIMARY?l:u;if(p.objectIsNull(o))f.retryInterval=0;else{var s=(new Date).getTime()-o.getTime();s<0&&(s=0),f.retryInterval=a.retryInterval-s}p.objectIsNull(a.locationMode)||(f.locationMode=a.locationMode),f.currentLocation=a.targetLocation,d()}else i?i(e):t&&t(e)})};d()},n._shouldRetryOnError=function(e,t){var i=t&&t.retryContext?t.retryContext:{};if(300<=e&&408!=e){if(501==e||505==e)return i.retryable=!1,i;t&&t.absorbConditionalErrorsOnRetry?412==e?i.lastServerError?(i.ignore=!0,i.retryable=!0):i.retryable=!1:i.retryable&&500<=e&&e<600&&(i.retryable=!0,i.lastServerError=!0):e<500&&(i.retryable=!1)}return i},t.exports=n},{"../util/constants":33,"../util/storageutilities":38,"../util/util":39,util:234}],9:[function(e,t,i){var s=e("../util/util"),c=e("../util/sr"),r=e("../util/constants"),l=e("../errors/errors").ArgumentError,u=r.HeaderConstants,n=r.HttpConstants,a=(n=r.HttpConstants).HttpVerbs;function o(e){return e.replace(/'/g,"%27")}function f(){this.rawResponse=!1,this.queryString={}}f.put=function(e){var t=new f;return t.path=e?o(e):null,t.method=n.HttpVerbs.PUT,t},f.get=function(e){var t=new f;return t.path=e?o(e):null,t.method=n.HttpVerbs.GET,t},f.head=function(e){var t=new f;return t.path=e?o(e):null,t.method=n.HttpVerbs.HEAD,t},f.del=function(e){var t=new f;return t.path=e?o(e):null,t.method=n.HttpVerbs.DELETE,t},f.post=function(e){var t=new f;return t.path=e?o(e):null,t.method=n.HttpVerbs.POST,t},f.merge=function(e){var t=new f;return t.path=e?o(e):null,t.method=n.HttpVerbs.MERGE,t},f.prototype.withProperty=function(e,t){return this.properties||(this.properties={}),this.properties[e]=t,this},f.prototype.withRawResponse=function(e){return this.rawResponse=e,s.objectIsNull(this.rawResponse)&&(this.rawResponse=!0),this},f.prototype.withHeadersOnly=function(e){return this.headersOnly=void 0===e||e,this},f.prototype.withQueryOption=function(e,t,i){return s.objectIsNull(t)?i&&(this.queryString[e]=i):this.queryString[e]=t,this},f.prototype.withQueryOptions=function(e){if(e)for(var t=1;t<arguments.length;t++)e[arguments[t]]&&this.withQueryOption(arguments[t],e[arguments[t]]);return this},f.prototype.withHeader=function(e,t){return this.headers||(this.headers={}),s.IsNullOrEmptyOrUndefinedOrWhiteSpace(t)||(t=t instanceof Date?t.toUTCString():t,this.headers[e]=t),this},f.prototype.withBody=function(e){return this.body=e,this},f.prototype.withHeaders=function(e){if(e)for(var t=1;t<arguments.length;t++)e[arguments[t]]&&this.withHeader(arguments[t],e[arguments[t]]);return this},f.prototype.addOptionalMetadataHeaders=function(a){var o=this;return a&&Object.keys(a).forEach(function(e){if(s.IsNullOrEmptyOrUndefinedOrWhiteSpace(e))throw new l("metadata",c.METADATA_KEY_INVALID);var t=a[e];if(s.IsNullOrEmptyOrUndefinedOrWhiteSpace(t))throw new l("metadata",c.METADATA_VALUE_INVALID);var i=u.PREFIX_FOR_STORAGE_METADATA+e,r="",n=o.headers?o.headers:{};Object.keys(n).some(function(e){return(r=e).toString().toLowerCase()===i.toLowerCase()})?o.withHeader(r,o.headers[r]+","+t):o.withHeader(i,t)}),this},f.validResponse=function(e){return 200<=e&&e<300},f.prototype.pipeInput=function(e,t){var i;return(i=this.method)!==a.PUT&&i!==a.POST&&i!==a.MERGE||this.hasOwnProperty("body")||e.pipe(t),t},t.exports=f},{"../errors/errors":5,"../util/constants":33,"../util/sr":37,"../util/util":39}],10:[function(e,t,i){var r=e("md5.js"),n=function(){};n.prototype.createMd5Hash=function(){return new r},t.exports=n},{"md5.js":160}],11:[function(e,t,i){var r=e("../util/constants").HeaderConstants;i.parse=function(e){var t={};return e[r.SKU_NAME]&&(t.SkuName=e[r.SKU_NAME]),e[r.ACCOUNT_KIND]&&(t.AccountKind=e[r.ACCOUNT_KIND]),t}},{"../util/constants":33}],12:[function(e,t,i){var o=e("underscore"),r=e("xmlbuilder"),n=e("../util/util"),s=e("../util/iso8061date"),c=e("../util/constants").AclConstants;(i=t.exports).serialize=function(n){var a=r.create();a=a.begin(c.SIGNED_IDENTIFIERS_ELEMENT,{version:"1.0",encoding:"utf-8"});var e=Object.keys(n);return 0<e.length&&e.forEach(function(e){var t=n[e];if(a=a.ele(c.SIGNED_IDENTIFIER_ELEMENT).ele(c.ID).txt(e).up().ele(c.ACCESS_POLICY),t.Start){var i=t.Start;o.isDate(i)||(i=new Date(i)),i=s.format(i),a=a.ele(c.START).txt(i).up()}if(t.Expiry){var r=t.Expiry;o.isDate(r)||(r=new Date(r)),r=s.format(r),a=a.ele(c.EXPIRY).txt(r).up()}t.Permissions&&(a=a.ele(c.PERMISSION).txt(t.Permissions).up()),a=a.up().up()}),a.doc().toString()},i.parse=function(e){var i={};return(e=n.tryGetValueChain(e,["SignedIdentifiers","SignedIdentifier"]))&&(o.isArray(e)||(e=[e]),e.forEach(function(e){var t={};e.AccessPolicy&&(e.AccessPolicy.Start&&(t.Start=s.parse(e.AccessPolicy.Start)),e.AccessPolicy.Expiry&&(t.Expiry=s.parse(e.AccessPolicy.Expiry)),e.AccessPolicy.Permission&&(t.Permissions=e.AccessPolicy.Permission)),i[e.Id]=t})),i}},{"../util/constants":33,"../util/iso8061date":35,"../util/util":39,underscore:229,xmlbuilder:315}],13:[function(e,t,i){var u=e("underscore"),f=e("xmlbuilder"),d=e("../util/constants").ServicePropertiesConstants;function p(e,t){null!==t&&(void 0===t&&(t={}),e=e.ele(d.RETENTION_POLICY_ELEMENT),e=void 0!==t.Enabled?e.ele(d.ENABLED_ELEMENT).txt(t.Enabled).up():e.ele(d.ENABLED_ELEMENT).txt(!1).up(),void 0!==t.Days?e=e.ele(d.DAYS_ELEMENT).txt(t.Days).up():!0===t.Enabled&&(e=e.ele(d.DAYS_ELEMENT).txt(1).up()),e=e.up())}function h(e,t){e=void 0!==t.Version?e.ele(d.VERSION_ELEMENT).txt(t.Version).up():e.ele(d.VERSION_ELEMENT).txt(d.DEFAULT_ANALYTICS_VERSION).up(),e=void 0!==t.Enabled?e.ele(d.ENABLED_ELEMENT).txt(t.Enabled).up():e.ele(d.ENABLED_ELEMENT).txt(!1).up(),t.Enabled&&(void 0!==t.IncludeAPIs?e=e.ele(d.INCLUDE_APIS_ELEMENT).txt(t.IncludeAPIs).up():!0===t.Enabled&&(e=e.ele(d.INCLUDE_APIS_ELEMENT).txt(!1).up())),p(e,t.RetentionPolicy)}function c(e){var t={};return void 0!==e.Enabled&&(t.Enabled="true"===e.Enabled),void 0!==e.Days&&(t.Days=parseInt(e.Days,10)),t}function l(e){var t={};return void 0!==e.Version&&(t.Version=e.Version),void 0!==e.Enabled&&(t.Enabled="true"===e.Enabled),void 0!==e.IncludeAPIs&&(t.IncludeAPIs="true"===e.IncludeAPIs),void 0!==e.RetentionPolicy&&(t.RetentionPolicy=c(e.RetentionPolicy)),t}(i=t.exports).serialize=function(e){var t,i,r,n,a,o,s,c,l=f.create();return l=l.begin(d.STORAGE_SERVICE_PROPERTIES_ELEMENT,{version:"1.0",encoding:"utf-8"}),e.Logging&&(l=l.ele(d.LOGGING_ELEMENT),t=l,i=e.Logging,t=void 0!==i.Version?t.ele(d.VERSION_ELEMENT).txt(i.Version).up():t.ele(d.VERSION_ELEMENT).txt(d.DEFAULT_ANALYTICS_VERSION).up(),t=void 0!==i.Delete?t.ele(d.DELETE_ELEMENT).txt(i.Delete).up():t.ele(d.DELETE_ELEMENT).txt(!1).up(),t=void 0!==i.Read?t.ele(d.READ_ELEMENT).txt(i.Read).up():t.ele(d.READ_ELEMENT).txt(!1).up(),p(t=void 0!==i.Write?t.ele(d.WRITE_ELEMENT).txt(i.Write).up():t.ele(d.WRITE_ELEMENT).txt(!1).up(),i.RetentionPolicy),t=t.up(),l=l.up()),e.HourMetrics&&(h(l=l.ele(d.HOUR_METRICS_ELEMENT),e.HourMetrics),l=l.up()),e.MinuteMetrics&&(h(l=l.ele(d.MINUTE_METRICS_ELEMENT),e.MinuteMetrics),l=l.up()),e.Cors&&(l=l.ele(d.CORS_ELEMENT),r=l,null!=(n=e.Cors.CorsRule)&&u.isArray(n)&&n.forEach(function(e){r=r.ele(d.CORS_RULE_ELEMENT),void 0!==e.AllowedMethods&&u.isArray(e.AllowedMethods)&&(r=r.ele(d.ALLOWED_METHODS_ELEMENT).txt(e.AllowedMethods.join(",")).up()),void 0!==e.AllowedOrigins&&u.isArray(e.AllowedOrigins)&&(r=r.ele(d.ALLOWED_ORIGINS_ELEMENT).txt(e.AllowedOrigins.join(",")).up()),r=void 0!==e.AllowedHeaders&&u.isArray(e.AllowedHeaders)?r.ele(d.ALLOWED_HEADERS_ELEMENT).txt(e.AllowedHeaders.join(",")).up():r.ele(d.ALLOWED_HEADERS_ELEMENT).txt("").up(),r=void 0!==e.ExposedHeaders&&u.isArray(e.ExposedHeaders)?r.ele(d.EXPOSED_HEADERS_ELEMENT).txt(e.ExposedHeaders.join(",")).up():r.ele(d.EXPOSED_HEADERS_ELEMENT).txt("").up(),r=(r=void 0!==e.MaxAgeInSeconds?r.ele(d.MAX_AGE_IN_SECONDS_ELEMENT).txt(e.MaxAgeInSeconds).up():r.ele(d.MAX_AGE_IN_SECONDS_ELEMENT).txt("0").up()).up()}),l=l.up()),e.DefaultServiceVersion&&(l=l.ele(d.DEFAULT_SERVICE_VERSION_ELEMENT).txt(e.DefaultServiceVersion).up()),e.DeleteRetentionPolicy&&(l=l.ele(d.DEFAULT_DELETE_RETENTION_POLICY_ELEMENT),a=l,null!==(o=e.DeleteRetentionPolicy)&&(void 0===o&&(o={}),a=void 0!==o.Enabled?a.ele(d.ENABLED_ELEMENT).txt(o.Enabled).up():a.ele(d.ENABLED_ELEMENT).txt(!1).up(),void 0!==o.Days?a=a.ele(d.DAYS_ELEMENT).txt(o.Days).up():!0===o.Enabled&&(a=a.ele(d.DAYS_ELEMENT).txt(1).up()),a=a.up()),l=l.up()),e.StaticWebsite&&(l=l.ele(d.DEFAULT_STATIC_WEBSITE_ELEMENT),s=l,null!==(c=e.StaticWebsite)&&(void 0===c&&(c={}),s=void 0!==c.Enabled?s.ele(d.ENABLED_ELEMENT).txt(c.Enabled).up():s.ele(d.ENABLED_ELEMENT).txt(!1).up(),void 0!==c.IndexDocument&&(s=s.ele(d.DEFAULT_INDEX_DOCUMENT_ELEMENT).txt(c.IndexDocument).up()),void 0!==c.ErrorDocument404Path&&(s=s.ele(d.DEFAULT_ERROR_DOCUMENT_404_PATH_ELEMENT).txt(c.ErrorDocument404Path).up()),s=s.up()),l=l.up()),l.doc().toString()},i.parse=function(e){var t,i,r,n,a,o,s={};return void 0!==e.Logging&&(s.Logging=(t=e.Logging,i={},void 0!==t.Version&&(i.Version=t.Version),void 0!==t.Delete&&(i.Delete="true"===t.Delete),void 0!==t.Read&&(i.Read="true"===t.Read),void 0!==t.Write&&(i.Write="true"===t.Write),void 0!==t.RetentionPolicy&&(i.RetentionPolicy=c(t.RetentionPolicy)),i)),void 0!==e.HourMetrics&&(s.HourMetrics=l(e.HourMetrics)),void 0!==e.MinuteMetrics&&(s.MinuteMetrics=l(e.MinuteMetrics)),void 0!==e.Cors&&(s.Cors=function(e){var i={};if(void 0!==e.CorsRule){var t=e.CorsRule;u.isArray(t)||(t=[t]),i.CorsRule=[],t.forEach(function(e){var t={};void 0!==e.AllowedMethods&&(""!==e.AllowedMethods?t.AllowedMethods=e.AllowedMethods.split(","):t.AllowedMethods=[]),void 0!==e.AllowedOrigins&&(""!==e.AllowedOrigins?t.AllowedOrigins=e.AllowedOrigins.split(","):t.AllowedOrigins=[]),void 0!==e.AllowedHeaders&&(""!==e.AllowedHeaders?t.AllowedHeaders=e.AllowedHeaders.split(","):t.AllowedHeaders=[]),void 0!==e.ExposedHeaders&&(""!==e.ExposedHeaders?t.ExposedHeaders=e.ExposedHeaders.split(","):t.ExposedHeaders=[]),void 0!==e.MaxAgeInSeconds&&(t.MaxAgeInSeconds=parseInt(e.MaxAgeInSeconds,10)),i.CorsRule.push(t)})}return i}(e.Cors)),void 0!==e.DefaultServiceVersion&&(s.DefaultServiceVersion=e.DefaultServiceVersion),void 0!==e.DeleteRetentionPolicy&&(s.DeleteRetentionPolicy=(r=e.DeleteRetentionPolicy,n={},void 0!==r.Enabled&&(n.Enabled="true"===r.Enabled),void 0!==r.Days&&(n.Days=parseInt(r.Days)),n)),void 0!==e.StaticWebsite&&(s.StaticWebsite=(a=e.StaticWebsite,o={},void 0!==a.Enabled&&(o.Enabled="true"===a.Enabled),void 0!==a.IndexDocument&&(o.IndexDocument=a.IndexDocument),void 0!==a.ErrorDocument404Path&&(o.ErrorDocument404Path=a.ErrorDocument404Path),o)),s}},{"../util/constants":33,underscore:229,xmlbuilder:315}],14:[function(e,t,i){t.exports.parse=function(e){var t={};return void 0!==e.GeoReplication&&(t.GeoReplication={},void 0!==e.GeoReplication.Status&&(t.GeoReplication.Status=e.GeoReplication.Status),void 0!==e.GeoReplication.LastSyncTime&&""!==e.GeoReplication.LastSyncTime&&(t.GeoReplication.LastSyncTime=new Date(e.GeoReplication.LastSyncTime))),t}},{}],15:[function(e,t,i){function r(e){this.token=e}r.prototype.get=function(){return this.token},r.prototype.set=function(e){this.token=e},t.exports=r},{}],16:[function(t,u,e){(function(n){var a=t("../common.browser"),i=t("stream").Duplex,o=t("extend"),s=t("http"),c=t("https"),e=t("url");function l(e,t){i.call(this),this._init(e,t),this._send()}function r(e,t){return r.defaults()(e,t)}t("util").inherits(l,i),l.prototype._init=function(e,t){this.callback=t;var i=a.util.filterOutNonReservedProperties(this,e);o(this,i),this.agent=this.agent||!1,this.timeout=this.timeout||1e3*Math.pow(2,32),this._initUri(),this._initHeaders()},l.prototype._initUri=function(){if(!this.uri)return this.emit("error",new Error("options.uri is a required argument"));"string"==typeof this.uri&&(this.uri=e.parse(this.uri)),this.uri.href||(this.uri.href=e.format(this.uri))},l.prototype._initHeaders=function(){this.headers=this.headers||{},this.headers["content-length"]=this.headers["content-length"]||0},l.prototype._send=function(){this._sent=!0;var e=this.uri.protocol||"",t="https:"===e?c:s,i={scheme:e.replace(/:$/,""),method:this.method,host:this.uri.hostname,port:Number(this.uri.port)||("https:"===e?443:80),path:this.uri.path,agent:this.agent,headers:this.headers,withCredentials:this.withCredentials,localAddress:this.localAddress,mode:this.mode};"https:"===e&&(i.pfx=this.pfx,i.key=this.key,i.cert=this.cert,i.ca=this.ca,i.ciphers=this.ciphers,i.rejectUnauthorized=this.rejectUnauthorized,i.secureProtocol=this.secureProtocol);var r=t.request(i);return this.timeout&&r.setTimeout&&r.setTimeout(this.timeout),this.httpRequest=r,this.emit("request",r),this._sendBody(),this._listenHttpResponse(),this._listenHttpError(),r},l.prototype._sendBody=function(){if(this.body)return this.httpRequest.write(this.body),void this.httpRequest.end();"0"!=this.headers["content-length"]||this.httpRequest.end()},l.prototype._listenHttpError=function(){var t=this;t.httpRequest.on("error",function(e){t.emit("error",e)}),t.on("error",function(e){t.callback&&t.callback(e)})},l.prototype._listenHttpResponse=function(){var r=this;r.httpRequest.on("response",function(e){var t=[],i=0;(r.response=e).on("data",function(e){r.push(e),t.push(e),i+=e.length}),e.on("error",function(e){r.emit("error",e)}),e.on("end",function(){r.push(null),e.body="",0<i&&(e.body=n.concat(t,i)),null!==r.encoding&&(e.body=e.body.toString(r.encoding)),r.callback&&r.callback(null,e)}),r.emit("response",e)})},l.prototype.setHeader=function(e,t){if(this._sent)throw new Error("Request already sent");return this.headers[e]=t,this},l.prototype.setLocation=function(e){return this.uri=e,this},l.prototype.end=function(e){e&&this.httpRequest.write(e),this.httpRequest.end()},l.prototype._write=function(e,t,i){this.httpRequest.write(e),i()},l.prototype._read=function(){},r.defaults=function(n){return function(e,i){var r;a.util.normalizeArgs(e,i,function(e,t){r=e,i=t});var t=a.util.filterOutNonReservedProperties(r,n);return o(r,t),new l(r,i)}},u.exports=r}).call(this,t("buffer").Buffer)},{"../common.browser":2,buffer:100,extend:138,http:211,https:153,stream:210,url:230,util:234}],17:[function(e,t,i){var c=e("util"),l=e("../util/util"),r=e("../errors/errors"),u=e("../util/sr"),n=e("../util/constants");(i=t.exports).DEFAULT_PROTOCOL=n.HTTPS;var a=function(e,t){r.captureStackTrace(this,t||this),this.message=e||"Error"};c.inherits(a,Error),a.prototype.name="NoMatchError",i.NoMatchError=a,i.noMatchConnectionString=function(e){throw new a('The provided connection string "'+e+'" does not have complete configuration settings.')},i.noMatchSettings=function(e){throw new a("The provided settings "+JSON.stringify(e)+" are not complete.")},i.parseAndValidateKeys=function(e,t){for(var i={},r=e.split(";"),n=0;n<r.length;n++)if(0!==r[n].length){var a=r[n].indexOf("=");if(a<0)throw new SyntaxError(u.INVALID_CONNECTION_STRING);if(0===a)throw new SyntaxError(u.INVALID_CONNECTION_STRING_EMPTY_KEY);var o=r[n].substring(0,a);if(!l.inArrayInsensitive(o,t))throw new SyntaxError(c.format(u.INVALID_CONNECTION_STRING_BAD_KEY,o));var s=r[n].substring(a+1);if(void 0!==i[o])throw new SyntaxError(c.format(u.INVALID_CONNECTION_STRING_DUPLICATE_KEY,o));i[o]=s}return i},i.getValidator=function(o,s,c){return function(e){var t=!1,i={};for(var r in e)e.hasOwnProperty(r)&&(i[r.toLowerCase()]=e[r]);for(var n in o)if(o.hasOwnProperty(n)){var a=o[n].SettingName.toLowerCase();if(i[a])(0,o[n].SettingConstraint)(i[a])&&(delete i[a],t=!0);else if(s)return null}return c?t?i:null:i}},i.setting=function(e){var r=Array.prototype.slice.call(arguments,1,arguments.length);return i.settingWithFunc(e,function(e){var t=JSON.stringify(r);if(0===r.length)return!0;for(var i=0;i<r.length;i++)if(e.toString()==r[i].toString())return!0;throw new RangeError("The provided config value "+e+" does not belong to the valid values subset:\n"+t)})},i.atLeastOne=function(){var e=arguments;return i.getValidator(e,!1,!0)},i.optional=function(){var e=arguments;return i.getValidator(e,!1,!1)},i.allRequired=function(){var e=arguments;return i.getValidator(e,!0,!1)},i.settingWithFunc=function(e,t){var i={};return i.SettingName=e,i.SettingConstraint=t,i},i.matchedSpecification=function(e){var t=Array.prototype.slice.call(arguments,1,arguments.length);for(var i in t)if(t.hasOwnProperty(i)){var r=t[i](e);if(!r)return!1;e=r}return 0===l.objectKeysLength(e)}},{"../errors/errors":5,"../util/constants":33,"../util/sr":37,"../util/util":39,util:234}],18:[function(H,q,e){(function(r,m){var b=H("../request-wrapper"),s=H("url"),o=H("querystring"),g=H("util"),c=H("xml2js"),e=H("events"),l=H("underscore"),n=H("uuid"),a=H("os"),u=H("extend"),f=H("json-edm-parser"),v=H("../md5-wrapper"),_=H("../util/util"),d=H("../util/validate"),y=H("../util/sr"),E=H("../http/webresource"),w=H("../streams/bufferstream.js"),i=H("./servicesettings"),p=H("./storageservicesettings"),S=H("../util/constants"),h=H("../util/storageutilities"),x=H("../models/servicepropertiesresult"),A=H("../../services/table/tableutilities"),T=H("../signing/sharedkey"),I=H("../signing/sharedaccesssignature"),N=H("../signing/tokensigner"),R=S.HeaderConstants,O=S.QueryStringConstants,M=S.HttpConstants.HttpResponseCodes,t=S.StorageServiceClientConstants,C=S.RequestLocationMode.PRIMARY_ONLY,L=S.RequestLocationMode,k=H("../diagnostics/logger"),P=H("../errors/errors"),B=P.ArgumentError,D=P.ArgumentNullError,U=P.TimeoutError,j=P.StorageError;function F(e,t,i,r,n,a){F.super_.call(this),e&&t?(this.storageAccount=e,this.storageAccessKey=t,this.storageCredentials=new T(this.storageAccount,this.storageAccessKey,r)):n?(this.sasToken=n,this.storageCredentials=new I(n)):a?(this.token=a,this.storageCredentials=new N(a)):(this.anonymous=!0,this.storageCredentials={signRequest:function(e,t){t(null)}}),i&&this.setHost(i),this.apiVersion=R.TARGET_STORAGE_VERSION,this.usePathStyleUri=r,this._initDefaultFilter(),this.logger=new k(k.LogLevels.INFO),this._setDefaultProxy(),this.xml2jsSettings=F._getDefaultXml2jsSettings(),this.defaultLocationMode=h.LocationMode.PRIMARY_ONLY}g.inherits(F,e.EventEmitter),F._getDefaultXml2jsSettings=function(){var e=l.clone(c.defaults[.2]);return e.attrkey=S.TableConstants.XML_METADATA_MARKER,e.charkey=S.TableConstants.XML_VALUE_MARKER,e.explicitArray=!1,e},F.prototype.setHost=function(e){var t=function(e){var t;return _.objectIsNull(e)||(-1===e.indexOf("http")&&0!==e.indexOf("//")&&(e="//"+e),(t=s.parse(e,!1,!0)).protocol||(t.protocol=i.DEFAULT_PROTOCOL),t.port||(t.protocol===S.HTTPS?t.port=S.DEFAULT_HTTPS_PORT:t.port=S.DEFAULT_HTTP_PORT),t=s.format({protocol:t.protocol,port:t.port,hostname:t.hostname,pathname:t.pathname})),t};d.isValidHost(e),this.host={primaryHost:t(e.primaryHost),secondaryHost:t(e.secondaryHost)}},F.prototype.performRequest=function(e,t,i,r){this._performRequest(e,{outputData:t},i,r)},F.prototype.performRequestOutputStream=function(e,t,i,r){this._performRequest(e,{outputStream:t},i,r)},F.prototype.performRequestInputStream=function(e,t,i,r,n){this._performRequest(e,{outputData:t,inputStream:i},r,n)},F.prototype._performRequest=function(s,f,e,d){var p=this;if(e.clientRequestId||(e.clientRequestId=n.v1()),s.withHeader(R.CLIENT_REQUEST_ID,e.clientRequestId),!r.browser){var t=g.format("(NODE-VERSION %s; %s %s)",r.version,a.type(),a.release());s.withHeader(R.USER_AGENT,S.USER_AGENT_PRODUCT_NAME+"/"+S.USER_AGENT_PRODUCT_VERSION+" "+t)}_.objectIsNull(e.locationMode)&&(e.locationMode=this.defaultLocationMode),_.objectIsNull(e.requestLocationMode)&&(e.requestLocationMode=C),_.objectIsNull(e.useNagleAlgorithm)&&(e.useNagleAlgorithm=this.useNagleAlgorithm),this._initializeLocation(e),this._setOperationExpiryTime(e);var h=!1,i=function(u,a){p._validateLocation(u);var o=u.currentLocation;p._buildRequestOptions(s,f,u,function(e,r){if(e)d({error:e,response:null},function(e,t){t(e)});else if(p.logger.log(k.LogLevels.DEBUG,"FINAL REQUEST OPTIONS:\n"+g.inspect(r)),p._maximumExecutionTimeExceeded(Date.now(),u.operationExpiryTime))d({error:new U(y.MAXIMUM_EXECUTION_TIMEOUT_EXCEPTION),response:null},function(e,t){t(e)});else{var c,l=function(e,t){var i;e?i={error:e,response:null}:((i=p._processResponse(s,t,u)).contentMD5=t.contentMD5,i.length=t.length),i.operationEndTime=new Date,i.targetLocation=o,i.outputStreamSent=h,d(i,a)},n=function(e,o){var s,t;p.proxy?void 0===t&&(t=b.defaults({proxy:p.proxy})):t=b,e?((s=t(r)).on("error",l),s.on("response",function(e){if(E.validResponse(e.statusCode)){o&&s.pipe(o);var t=0,i=(new v).createMd5Hash();e.on("data",function(e){t+=e.length,i.update(e)}),e.on("end",function(){(_.objectIsNull(u.disableContentMD5Validation)||!1===u.disableContentMD5Validation)&&(e.contentMD5=i.digest("base64")),e.length=t,c=e})}else{var r,n=parseInt(e.headers["content-length"]),a=0;void 0!==n&&(r=new m(n)),s.on("data",function(e){void 0!==n?(e.copy(r,a),a+=e.length):r=r?m.concat([r,e]):e}),s.on("end",function(){r&&(3<r.length&&239===r[0]&&187===r[1]&&191===r[2]?e.body=r.toString("utf8",3):e.body=r.toString("utf8")),l(null,e)})}})):s=t(r,l),(_.objectIsNull(u.useNagleAlgorithm)||!1===u.useNagleAlgorithm)&&s.on("request",function(e){e.setNoDelay(!0)});var i=s.end;return s.end=function(){r.headers["content-length"]?s.headers["content-length"]=r.headers["content-length"]:s.headers["content-length"]&&delete s.headers["content-length"],i.call(s)},s.on("response",function(e){p.emit("receivedResponseEvent",e)}),s};if(f&&f.outputData&&(!_.isBrowser()&&m.isBuffer(f.outputData)?r.body=new w(f.outputData):r.body=f.outputData),f&&f.inputStream)f.inputStream.on("close",function(){c&&(l(null,c),c=null)}),f.inputStream.on("end",function(){c&&(l(null,c),c=null)}),f.inputStream.on("finish",function(){c&&(l(null,c),c=null)}),n(!0,f.inputStream);else if(f&&f.outputStream){var t=function(){var e,t,i;!_.objectIsNull(r.headers["content-length"])&&r.headers["content-length"]<30408704?(f.outputStream.pipe(n()),h=!0):(e=r.headers["content-length"]?r.headers["content-length"]:S.BlobConstants.MAX_SINGLE_UPLOAD_BLOB_SIZE_IN_BYTES,t=new m(e),i=0,f.outputStream.on("data",function(e){h=!0,p._maximumExecutionTimeExceeded(Date.now(),u.operationExpiryTime)?l(new U(y.MAXIMUM_EXECUTION_TIMEOUT_EXCEPTION)):(e.copy(t,i),i+=e.length)}).on("end",function(){var e=n();e.write(t),e.end()})),_.isStreamPaused(f.outputStream)&&f.outputStream.resume()};f.outputStream.readable?t():0===r.headers["content-length"]?n():f.outputStream.on("open",function(){t()}),f.outputStream.on("error",function(e){l(e)})}else n()}})};p.filter(e,function(e,t){if(p._maximumExecutionTimeExceeded(Date.now()+e.retryInterval,e.operationExpiryTime))d({error:new U(y.MAXIMUM_EXECUTION_TIMEOUT_EXCEPTION),response:null},function(e,t){t(e)});else if(e.retryContext){setTimeout(function(){i(e,t)},e.retryInterval)}else i(e,t)})},F.prototype._buildRequestOptions=function(r,e,n,a){r.withHeader(R.STORAGE_VERSION,this.apiVersion),r.withHeader(R.MS_DATE,(new Date).toUTCString()),r.headers[R.ACCEPT]||r.withHeader(R.ACCEPT,"application/atom+xml,application/xml"),r.withHeader(R.ACCEPT_CHARSET,"UTF-8"),!_.isBrowser()||r.method!==S.HttpConstants.HttpVerbs.GET&&r.method!==S.HttpConstants.HttpVerbs.HEAD||r.withQueryOption(R.FORCE_NO_CACHE_IN_BROWSER,(new Date).getTime()),_.objectIsNull(n.timeoutIntervalInMs)&&(n.timeoutIntervalInMs=this.defaultTimeoutIntervalInMs),_.objectIsNull(n.clientRequestTimeoutInMs)&&(n.clientRequestTimeoutInMs=this.defaultClientRequestTimeoutInMs),!_.objectIsNull(n.timeoutIntervalInMs)&&0<n.timeoutIntervalInMs&&r.withQueryOption(O.TIMEOUT,Math.ceil(n.timeoutIntervalInMs/1e3)),n.accessConditions&&(r.withHeader(R.IF_MATCH,n.accessConditions.EtagMatch),r.withHeader(R.IF_MODIFIED_SINCE,n.accessConditions.DateModifedSince),r.withHeader(R.IF_NONE_MATCH,n.accessConditions.EtagNonMatch),r.withHeader(R.IF_UNMODIFIED_SINCE,n.accessConditions.DateUnModifiedSince),r.withHeader(R.SEQUENCE_NUMBER_EQUAL,n.accessConditions.SequenceNumberEqual),r.withHeader(R.SEQUENCE_NUMBER_LESS_THAN,n.accessConditions.SequenceNumberLessThan),r.withHeader(R.SEQUENCE_NUMBER_LESS_THAN_OR_EQUAL,n.accessConditions.SequenceNumberLessThanOrEqual),r.withHeader(R.BLOB_CONDITION_MAX_SIZE,n.accessConditions.MaxBlobSize),r.withHeader(R.BLOB_CONDITION_APPEND_POSITION,n.accessConditions.MaxAppendPosition)),n.sourceAccessConditions&&(r.withHeader(R.SOURCE_IF_MATCH,n.sourceAccessConditions.EtagMatch),r.withHeader(R.SOURCE_IF_MODIFIED_SINCE,n.sourceAccessConditions.DateModifedSince),r.withHeader(R.SOURCE_IF_NONE_MATCH,n.sourceAccessConditions.EtagNonMatch),r.withHeader(R.SOURCE_IF_UNMODIFIED_SINCE,n.sourceAccessConditions.DateUnModifiedSince)),r.headers&&void 0!==r.headers[R.CONTENT_TYPE]?r.headers&&null===r.headers[R.CONTENT_TYPE]&&delete r.headers[R.CONTENT_TYPE]:r.headers[R.CONTENT_TYPE]="",r.headers&&void 0!==r.headers[R.CONTENT_LENGTH]?r.headers&&null===r.headers[R.CONTENT_LENGTH]&&delete r.headers[R.CONTENT_LENGTH]:e&&e.outputData?r.withHeader(R.CONTENT_LENGTH,m.byteLength(e.outputData,"UTF8")):void 0===r.headers[R.CONTENT_LENGTH]&&r.withHeader(R.CONTENT_LENGTH,0);var o=this.enableGlobalHttpAgent;this._setRequestUrl(r,n),this.emit("sendingRequestEvent",r),this.storageCredentials.signRequest(r,function(e){var t=null;if(!e){var i=r.uri;t={uri:s.format(i),method:r.method,headers:r.headers,mode:"disable-fetch"},n&&(t.encoding=n.responseEncoding),n&&n.clientRequestTimeoutInMs?t.timeout=n.clientRequestTimeoutInMs:t.timeout=S.DEFAULT_CLIENT_REQUEST_TIMEOUT_IN_MS,!0!==o&&(t.forever=!0)}a(e,t)})},F.prototype._processResponse=function(e,t,i){var r,n=E.validResponse(t.statusCode),a=F._buildResponse(n,t.body,function(e){var t={};if(e){for(var i=0;i<e.length;i++)t[0===e[i].indexOf(R.PREFIX_FOR_STORAGE_METADATA)?e[i]:e[i].toLowerCase()]=e[++i];return t}}(t.rawHeaders)||t.headers,t.statusCode,t.md5);if(n&&e.rawResponse)r={error:null,response:a};else if(a=F._parseResponse(a,this.xml2jsSettings,i),n&&!a.error)r={error:null,response:a};else{a.isSuccessful=!1,(t.statusCode<400||500<=t.statusCode)&&this.logger.log(k.LogLevels.DEBUG,"ERROR code = "+t.statusCode+" :\n"+g.inspect(a.body));var o=a.body;if(a.error&&(o=a.error,delete a.error),!o)o={error:{code:Object.keys(M).filter(function(e){if(M[e]===a.statusCode)return e})[0]}};r={error:F._normalizeError(o,t),response:a}}return this.logger.log(k.LogLevels.DEBUG,"RESPONSE:\n"+g.inspect(r)),r},F.prototype.withFilter=function(i){var e=l.clone(this),r=this.filter,t=i;return void 0!==r&&(t=function(e,t){i.handle(e,function(e,n){r(e,function(e,r){t(e,function(e,t,i){r(e,i,function(e){n(e,t,i)})})})})}),e.filter=t,e},F._buildResponse=function(e,t,i,r,n){var a={isSuccessful:e,statusCode:r,body:t,headers:i,md5:n};return _.objectIsNull(i)||void 0!==i[R.REQUEST_SERVER_ENCRYPTED]&&(a.requestServerEncrypted="true"===i[R.REQUEST_SERVER_ENCRYPTED]),a},F._parseResponse=function(t,i,e){function r(e){var r;return new c.Parser(i).parseString(_.removeBOM(e.toString()),function(e,t){if(e){var i=new SyntaxError("EXMLFORMAT");throw i.innerError=e,i}r=t}),r}if(t.body&&0<m.byteLength(t.body.toString())){var n="";t.headers&&t.headers["content-type"]&&(n=t.headers["content-type"].toLowerCase());try{if(-1!==n.indexOf("application/json"))if(e&&e.payloadFormat&&e.payloadFormat!==A.PayloadFormat.NO_METADATA){var a=new f;a.onValue=function(e){t.body=e},a.write(t.body)}else t.body=JSON.parse(t.body);else-1!==n.indexOf("application/xml")||-1!==n.indexOf("application/atom+xml")?t.body=r(t.body):-1!==n.indexOf("text/html")?t.body=t.body:t.body=r(t.body)}catch(e){t.error=e}}return t},F.getStorageSettings=function(e,t,i,r,n,a){return!e||t||r?e&&t||r||a||i?p.createExplicitly(e,t,i,r,n,a):p.createFromEnvironment():p.createFromConnectionString(e)},F.prototype._setRequestUrl=function(e,t){if(e.originalPath=e.originalPath||e.path,e.path=this._getPath(e.originalPath),!this.host)throw new D("this.host",y.STORAGE_HOST_LOCATION_REQUIRED);var i=this.host.primaryHost;_.objectIsNull(t)||t.currentLocation!==S.StorageLocation.SECONDARY||(i=this.host.secondaryHost),i&&i.lastIndexOf("/")!==i.length-1&&(i+="/");var r=s.format({pathname:e.path,query:e.queryString});e.uri=s.resolve(i,r),e.path=s.parse(e.uri).pathname},F.prototype._getPath=function(e){return null==e?e="":0===e.indexOf("/")&&(e=e.substring(1)),e},F.prototype._getUrl=function(e,t,i){var r;r=_.objectIsNull(i)||!1!==i?this.host.primaryHost:this.host.secondaryHost,(r=_.trimPortFromUri(r))&&r.lastIndexOf("/")!==r.length-1&&(r+="/");var n=o.parse(t),a=s.format({pathname:this._getPath(e),query:n});return s.resolve(r,a)},F.prototype._initDefaultFilter=function(){this.filter=function(e,t){t&&t(e,function(e,t,i){i?i(e):t&&t(e)})}},F.prototype.parseMetadataHeaders=function(e){var t={};if(!e)return t;for(var i in e){if(0===i.indexOf(R.PREFIX_FOR_STORAGE_METADATA))t[i.substr(R.PREFIX_FOR_STORAGE_METADATA.length,i.length-R.PREFIX_FOR_STORAGE_METADATA.length)]=e[i]}return t},F.prototype.getAccountServiceProperties=function(e,i){var r;_.normalizeArgs(e,i,function(e,t){r=e,i=t}),d.validateArgs("getServiceProperties",function(e){e.callback(i)});var t=u(!0,{},r),n=E.get().withQueryOption(O.COMP,"properties").withQueryOption(O.RESTYPE,"service");t.requestLocationMode=L.PRIMARY_OR_SECONDARY;this.performRequest(n,null,t,function(e,t){e.servicePropertiesResult=null,e.error||(e.servicePropertiesResult=x.parse(e.response.body.StorageServiceProperties));t(e,function(e){i(e.error,e.servicePropertiesResult,e.response)})})},F.prototype.setAccountServiceProperties=function(t,e,i){var r;_.normalizeArgs(e,i,function(e,t){r=e,i=t}),d.validateArgs("setServiceProperties",function(e){e.object(t,"serviceProperties"),e.callback(i)});var n=u(!0,{},r),a=x.serialize(t),o=E.put().withQueryOption(O.COMP,"properties").withQueryOption(O.RESTYPE,"service").withHeader(R.CONTENT_TYPE,'application/xml;charset="utf-8"').withHeader(R.CONTENT_LENGTH,m.byteLength(a)).withBody(a);this.performRequest(o,o.body,n,function(e,t){t(e,function(e){i(e.error,e.response)})})},F._normalizeError=function(e,t){if(_.objectIsString(e))return new j(e,null);if(e){var i={},r=e.Error||e.error||e["odata.error"]||e["m:error"]||e;for(var n in i.code=r.message,r)if(r.hasOwnProperty(n)){var a=n.toLowerCase();0===a.indexOf("m:")&&(a=a.substring(2)),i[a]=r[n],"message"===a&&l.isObject(r[n])&&r[n].value&&(i[a]=r[n].value)}return t&&(t.statusCode&&(i.statusCode=t.statusCode),t.headers&&t.headers["x-ms-request-id"]&&(i.requestId=t.headers["x-ms-request-id"])),new j(i.code,i)}return null},F.prototype.setProxy=function(e){this.proxy=e||null},F.prototype._setDefaultProxy=function(){var e=F._loadEnvironmentProxyValue();if(e){var t=s.parse(e);t.port||(t.port=80),this.setProxy(t)}else this.setProxy(null)},F._loadEnvironmentProxyValue=function(){var e=null;return r.env[t.EnvironmentVariables.HTTPS_PROXY]?e=r.env[t.EnvironmentVariables.HTTPS_PROXY]:r.env[t.EnvironmentVariables.HTTPS_PROXY.toLowerCase()]?e=r.env[t.EnvironmentVariables.HTTPS_PROXY.toLowerCase()]:r.env[t.EnvironmentVariables.HTTP_PROXY]?e=r.env[t.EnvironmentVariables.HTTP_PROXY]:r.env[t.EnvironmentVariables.HTTP_PROXY.toLowerCase()]&&(e=r.env[t.EnvironmentVariables.HTTP_PROXY.toLowerCase()]),e},F.prototype._initializeLocation=function(e){if(_.objectIsNull(e.locationMode))e.locationMode=h.LocationMode.PRIMARY_ONLY,e.currentLocation=S.StorageLocation.PRIMARY;else switch(e.locationMode){case h.LocationMode.PRIMARY_ONLY:case h.LocationMode.PRIMARY_THEN_SECONDARY:e.currentLocation=S.StorageLocation.PRIMARY;break;case h.LocationMode.SECONDARY_ONLY:case h.LocationMode.SECONDARY_THEN_PRIMARY:e.currentLocation=S.StorageLocation.SECONDARY;break;default:throw new RangeError(g.format(y.ARGUMENT_OUT_OF_RANGE_ERROR,"locationMode",e.locationMode))}},F.prototype._validateLocation=function(e){if(this._invalidLocationMode(e.locationMode))throw new D("host",y.STORAGE_HOST_MISSING_LOCATION);switch(e.requestLocationMode){case S.RequestLocationMode.PRIMARY_ONLY:if(e.locationMode===h.LocationMode.SECONDARY_ONLY)throw new B("host.primaryHost",y.PRIMARY_ONLY_COMMAND);e.currentLocation=S.StorageLocation.PRIMARY,e.locationMode=h.LocationMode.PRIMARY_ONLY;break;case S.RequestLocationMode.SECONDARY_ONLY:if(e.locationMode===h.LocationMode.PRIMARY_ONLY)throw new B("host.secondaryHost",y.SECONDARY_ONLY_COMMAND);e.currentLocation=S.StorageLocation.SECONDARY,e.locationMode=h.LocationMode.SECONDARY_ONLY}},F.prototype._invalidLocationMode=function(e){switch(e){case h.LocationMode.PRIMARY_ONLY:return _.objectIsNull(this.host.primaryHost);case h.LocationMode.SECONDARY_ONLY:return _.objectIsNull(this.host.secondaryHost);default:return _.objectIsNull(this.host.primaryHost)||_.objectIsNull(this.host.secondaryHost)}},F.prototype._maximumExecutionTimeExceeded=function(e,t){return!_.objectIsNull(t)&&t<e},F.prototype._setOperationExpiryTime=function(e){_.objectIsNull(e.operationExpiryTime)&&(_.objectIsNull(e.maximumExecutionTimeInMs)?this.defaultMaximumExecutionTimeInMs&&(e.operationExpiryTime=Date.now()+this.defaultMaximumExecutionTimeInMs):e.operationExpiryTime=Date.now()+e.maximumExecutionTimeInMs)},q.exports=F}).call(this,H("_process"),H("buffer").Buffer)},{"../../services/table/tableutilities":51,"../diagnostics/logger":4,"../errors/errors":5,"../http/webresource":9,"../md5-wrapper":10,"../models/servicepropertiesresult":13,"../request-wrapper":16,"../signing/sharedaccesssignature":21,"../signing/sharedkey":22,"../signing/tokensigner":23,"../streams/bufferstream.js":26,"../util/constants":33,"../util/sr":37,"../util/storageutilities":38,"../util/util":39,"../util/validate":40,"./servicesettings":17,"./storageservicesettings":19,_process:176,buffer:100,events:136,extend:138,"json-edm-parser":158,os:164,querystring:186,underscore:229,url:230,util:234,uuid:235,xml2js:312}],19:[function(A,T,e){(function(r){"use strict";var c=A("underscore"),l=A("url"),u=A("../util/util"),f=A("./servicesettings"),e=A("../util/constants"),d=e.StorageServiceClientConstants,p=e.ConnectionStringKeys,t=A("../util/validate"),n=A("../util/sr"),i=A("../models/tokencredential"),a=f.setting(p.USE_DEVELOPMENT_STORAGE_NAME,!0),o=f.settingWithFunc(p.DEVELOPMENT_STORAGE_PROXY_URI_NAME,t.isValidUri),s=f.setting(p.DEFAULT_ENDPOINTS_PROTOCOL_NAME,"http","https"),h=f.setting(p.ACCOUNT_NAME_NAME),m=f.settingWithFunc(p.ACCOUNT_KEY_NAME,t.isBase64Encoded),b=f.settingWithFunc(p.SHARED_ACCESS_SIGNATURE_NAME,c.isString),g=f.settingWithFunc("token",function(e){return e instanceof i}),v=f.settingWithFunc(p.BLOB_ENDPOINT_NAME,t.isValidHost),_=f.settingWithFunc(p.QUEUE_ENDPOINT_NAME,t.isValidHost),y=f.settingWithFunc(p.TABLE_ENDPOINT_NAME,t.isValidHost),E=f.settingWithFunc(p.FILE_ENDPOINT_NAME,t.isValidHost),w=f.settingWithFunc(p.ENDPOINT_SUFFIX_NAME,t.isValidHost),S=[p.USE_DEVELOPMENT_STORAGE_NAME,p.DEVELOPMENT_STORAGE_PROXY_URI_NAME,p.DEFAULT_ENDPOINTS_PROTOCOL_NAME,p.ACCOUNT_NAME_NAME,p.ACCOUNT_KEY_NAME,p.SHARED_ACCESS_SIGNATURE_NAME,p.BLOB_ENDPOINT_NAME,p.QUEUE_ENDPOINT_NAME,p.TABLE_ENDPOINT_NAME,p.FILE_ENDPOINT_NAME,p.ENDPOINT_SUFFIX_NAME];function x(e,t,i,r,n,a,o,s,c){this._name=e,this._key=t,i&&"?"===i[0]?this._sasToken=i.slice(1):this._sasToken=i,this._blobEndpoint=r,this._queueEndpoint=n,this._tableEndpoint=a,this._fileEndpoint=o,this._usePathStyleUri=s||!1,this._token=c}x.createFromConnectionString=function(t){var e=f.parseAndValidateKeys(t,S);try{return x.createFromSettings(e)}catch(e){if(!(e instanceof f.NoMatchError))throw e;f.noMatchConnectionString(t)}},x.createExplicitly=function(e,t,i,r,n,a){var o={};function s(e,t){("string"!=typeof t||u.stringIsEmpty(t))&&("object"!=typeof t||u.objectIsNull(t))||(o[e]=t)}return i?(s("blobendpoint",i),s("tableendpoint",i),s("queueendpoint",i),s("fileendpoint",i)):s("defaultendpointsprotocol",f.DEFAULT_PROTOCOL.split(":",1)[0]),s("accountname",e),s("accountkey",t),s("sharedaccesssignature",r),s("endpointsuffix",n),s("token",a),x.createFromSettings(o)},x.createFromEnvironment=function(){if(r.env[d.EnvironmentVariables.EMULATED])return x.getDevelopmentStorageAccountSettings();var e=r.env[d.EnvironmentVariables.AZURE_STORAGE_CONNECTION_STRING];if(e)return x.createFromConnectionString(e);var t=r.env[d.EnvironmentVariables.AZURE_STORAGE_ACCOUNT],i=r.env[d.EnvironmentVariables.AZURE_STORAGE_ACCESS_KEY];if(t&&i)return x.createExplicitly(t,i,null,null,null);throw new Error(n.NO_CREDENTIALS_PROVIDED)},x.createFromSettings=function(e){var t=f.matchedSpecification(e,f.allRequired(a),f.optional(o));if(t){var i=u.tryGetValueInsensitive(p.DEVELOPMENT_STORAGE_PROXY_URI_NAME,e);return this.getDevelopmentStorageAccountSettings(i)}return(t=f.matchedSpecification(e,f.allRequired(s,h,m),f.optional(v,_,y,E,w)))?this._createStorageServiceSettings(e):(t=f.matchedSpecification(e,f.allRequired(h,m),f.atLeastOne(v,_,y,E,w)))?this._createStorageServiceSettings(e):(t=f.matchedSpecification(e,f.allRequired(b),f.atLeastOne(v,_,y,E,w)))?this._createStorageServiceSettings(e):(t=f.matchedSpecification(e,f.allRequired(v),f.optional(E,_,y,w)))?this._createStorageServiceSettings(e):(t=f.matchedSpecification(e,f.allRequired(g),f.atLeastOne(v,_,y,E)))?this._createStorageServiceSettings(e):void f.noMatchSettings(e)},x.getDevelopmentStorageAccountSettings=function(e){e||(e=d.DEV_STORE_URI);var t=l.parse(e),i=t.protocol+"//"+t.host,r={primaryHost:i+":10000/"+d.DEVSTORE_STORAGE_ACCOUNT,secondaryHost:i+":10000/"+d.DEVSTORE_STORAGE_ACCOUNT+"-secondary"},n={primaryHost:i+":10001/"+d.DEVSTORE_STORAGE_ACCOUNT,secondaryHost:i+":10001/"+d.DEVSTORE_STORAGE_ACCOUNT+"-secondary"},a={primaryHost:i+":10002/"+d.DEVSTORE_STORAGE_ACCOUNT,secondaryHost:i+":10002/"+d.DEVSTORE_STORAGE_ACCOUNT+"-secondary"};return new x(d.DEVSTORE_STORAGE_ACCOUNT,d.DEVSTORE_STORAGE_ACCESS_KEY,null,r,n,a,null,!0)},x._createStorageServiceSettings=function(e){var t=function(e,t,i,r){var n;return e&&((n={}).primaryHost=c.isString(e)?e:e.primaryHost,n.secondaryHost=c.isString(e)?void 0:e.secondaryHost),i&&t&&r&&((n=n||{}).primaryHost=n.primaryHost?n.primaryHost:l.format({protocol:i,hostname:t+"."+r}),n.secondaryHost=n.secondaryHost?n.secondaryHost:l.format({protocol:i,hostname:t+"-secondary."+r})),n},i=u.tryGetValueInsensitive(p.DEFAULT_ENDPOINTS_PROTOCOL_NAME,e),r=u.tryGetValueInsensitive(p.ACCOUNT_NAME_NAME,e),n=u.tryGetValueInsensitive(p.ACCOUNT_KEY_NAME,e),a=u.tryGetValueInsensitive(p.SHARED_ACCESS_SIGNATURE_NAME,e),o=u.tryGetValueInsensitive(p.ENDPOINT_SUFFIX_NAME,e),s=u.tryGetValueInsensitive("token",e);return new x(r,n,a,t(u.tryGetValueInsensitive(p.BLOB_ENDPOINT_NAME,e),r,i,o?"blob."+o:d.CLOUD_BLOB_HOST),t(u.tryGetValueInsensitive(p.QUEUE_ENDPOINT_NAME,e),r,i,o?"queue."+o:d.CLOUD_QUEUE_HOST),t(u.tryGetValueInsensitive(p.TABLE_ENDPOINT_NAME,e),r,i,o?"table."+o:d.CLOUD_TABLE_HOST),t(u.tryGetValueInsensitive(p.FILE_ENDPOINT_NAME,e),r,i,o?"file."+o:d.CLOUD_FILE_HOST),s)},x.validKeys=S,T.exports=x}).call(this,A("_process"))},{"../models/tokencredential":15,"../util/constants":33,"../util/sr":37,"../util/util":39,"../util/validate":40,"./servicesettings":17,_process:176,underscore:229,url:230}],20:[function(r,n,e){(function(t){var i=r("crypto");function e(e){this._accessKey=e,this._decodedAccessKey=new t(this._accessKey,"base64")}e.prototype.sign=function(e){return i.createHmac("sha256",this._decodedAccessKey).update(e,"utf-8").digest("base64")},n.exports=e}).call(this,r("buffer").Buffer)},{buffer:100,crypto:109}],21:[function(e,t,i){var r=e("./hmacsha256sign"),n=e("./../util/constants"),a=e("./../util/sr");function o(e){this.sasToken=e,this.signer=new r(e)}o.prototype.signRequest=function(e,t){if(-1===e.uri.indexOf("?")?e.uri+="?":e.uri+="&",e.uri+=this.sasToken,-1!=this.sasToken.indexOf("api-version"))throw new SyntaxError(a.INVALID_SAS_TOKEN);e.uri+="&"+n.QueryStringConstants.API_VERSION+"="+n.HeaderConstants.TARGET_STORAGE_VERSION,t(null)},t.exports=o},{"./../util/constants":33,"./../util/sr":37,"./hmacsha256sign":20}],22:[function(e,t,i){var d=e("underscore"),p=e("querystring"),h=e("../util/util"),r=e("./hmacsha256sign"),m=e("../util/sr"),b=e("../errors/errors").ArgumentError,n=e("../util/constants"),g=n.HeaderConstants,v=n.QueryStringConstants,_=(g=n.HeaderConstants,n.CompatibleVersionConstants);function a(e,t,i){this.storageAccount=e,this.storageAccessKey=t,this.usePathStyleUri=i,this.signer=new r(t)}a.prototype.generateAccountSignedQueryString=function(e){var t,i=function(e,t,i){h.objectIsNull(t)||h.objectIsNull(i)||(e[t]=i)},r={};return i(r,v.SIGNED_VERSION,g.TARGET_STORAGE_VERSION),e.AccessPolicy&&(t=e.AccessPolicy,h.objectIsNull(t.Start)||(d.isDate(t.Start)||(t.Start=new Date(t.Start)),t.Start=h.truncatedISO8061Date(t.Start)),h.objectIsNull(t.Expiry)||(d.isDate(t.Expiry)||(t.Expiry=new Date(t.Expiry)),t.Expiry=h.truncatedISO8061Date(t.Expiry)),i(r,v.SIGNED_SERVICES,e.AccessPolicy.Services),i(r,v.SIGNED_RESOURCE_TYPES,e.AccessPolicy.ResourceTypes),i(r,v.SIGNED_PERMISSIONS,e.AccessPolicy.Permissions),i(r,v.SIGNED_START,e.AccessPolicy.Start),i(r,v.SIGNED_EXPIRY,e.AccessPolicy.Expiry),i(r,v.SIGNED_IP,e.AccessPolicy.IPAddressOrRange),i(r,v.SIGNED_PROTOCOL,e.AccessPolicy.Protocols)),i(r,v.SIGNATURE,this._generateAccountSharedAccessSignature(e)),p.stringify(r)},a.prototype._generateAccountSharedAccessSignature=function(e){var t=function(e,t){var i="";return h.objectIsNull(e)||(i=e),!0!==t&&(i+="\n"),i},i=t(this.storageAccount)+t(e.AccessPolicy?e.AccessPolicy.Permissions:"")+t(e.AccessPolicy?e.AccessPolicy.Services:"")+t(e.AccessPolicy?e.AccessPolicy.ResourceTypes:"")+t(e.AccessPolicy?e.AccessPolicy.Start:"")+t(e.AccessPolicy?e.AccessPolicy.Expiry:"")+t(e.AccessPolicy?e.AccessPolicy.IPAddressOrRange:"")+t(e.AccessPolicy?e.AccessPolicy.Protocols:"")+t(g.TARGET_STORAGE_VERSION);return this.signer.sign(i)},a.prototype.signRequest=function(e,t){var i=function(e,t){return t!==g.CONTENT_LENGTH||!h.objectIsNull(e[t])&&"0"!==e[t].toString()?h.objectIsNull(e)||h.objectIsNull(e[t])?"\n":e[t]+"\n":"\n"},r=e.method+"\n"+i(e.headers,g.CONTENT_ENCODING)+i(e.headers,g.CONTENT_LANGUAGE)+i(e.headers,g.CONTENT_LENGTH)+i(e.headers,g.CONTENT_MD5)+i(e.headers,g.CONTENT_TYPE)+i(e.headers,g.DATE)+i(e.headers,g.IF_MODIFIED_SINCE)+i(e.headers,g.IF_MATCH)+i(e.headers,g.IF_NONE_MATCH)+i(e.headers,g.IF_UNMODIFIED_SINCE)+i(e.headers,g.RANGE)+this._getCanonicalizedHeaders(e)+this._getCanonicalizedResource(e),n=this.signer.sign(r);e.withHeader(g.AUTHORIZATION,"SharedKey "+this.storageAccount+":"+n),t(null)},a.prototype._getCanonicalizedResource=function(e){var t="/";e.path&&(t=e.path);var i="/"+this.storageAccount+t,r=e.queryString;if(r){var n=[];Object.keys(r).forEach(function(e){n.push(e)}),n=n.sort(),Object.keys(n).forEach(function(e){i+="\n"+n[e]+":"+r[n[e]]})}return i},a.prototype._getCanonicalizedHeaders=function(i){var r="";if(i.headers){var e=[];for(var t in i.headers)if(0===t.indexOf(g.PREFIX_FOR_STORAGE)){var n={canonicalized:t.toLowerCase(),original:t};e.push(n)}e.sort(function(e,t){return e.canonicalized.localeCompare(t.canonicalized)}),d.each(e,function(e){var t=i.headers[e.original];h.IsNullOrEmptyOrUndefinedOrWhiteSpace(t)?r+=e.canonicalized+":\n":r+=e.canonicalized+":"+t+"\n"})}return r},a.prototype.generateSignedQueryString=function(e,t,i,r,n){var a,o,s,c,l,u=function(e,t,i){h.objectIsNull(t)||h.objectIsNull(i)||(e[t]=i)};n&&(a=n.queryString,o=n.resourceType,c=n.tableName,s=n.headers),a||(a={}),i.AccessPolicy&&(l=i.AccessPolicy,h.objectIsNull(l.Start)||(d.isDate(l.Start)||(l.Start=new Date(l.Start)),l.Start=h.truncatedISO8061Date(l.Start)),h.objectIsNull(l.Expiry)||(d.isDate(l.Expiry)||(l.Expiry=new Date(l.Expiry)),l.Expiry=h.truncatedISO8061Date(l.Expiry)),u(a,v.SIGNED_START,i.AccessPolicy.Start),u(a,v.SIGNED_EXPIRY,i.AccessPolicy.Expiry),u(a,v.SIGNED_PERMISSIONS,i.AccessPolicy.Permissions),u(a,v.SIGNED_IP,i.AccessPolicy.IPAddressOrRange),u(a,v.SIGNED_PROTOCOL,i.AccessPolicy.Protocols),u(a,v.STARTPK,i.AccessPolicy.StartPk),u(a,v.ENDPK,i.AccessPolicy.EndPk),u(a,v.STARTRK,i.AccessPolicy.StartRk),u(a,v.ENDRK,i.AccessPolicy.EndRk));var f=function(t){if(h.objectIsNull(t))return g.TARGET_STORAGE_VERSION;var e=d.values(_);if(e.some(function(e){return e.toLowerCase()===t.toLowerCase()}))return t;throw new b("sasVersion",h.stringFormat(m.INVALID_SAS_VERSION,t,e))}(r);return u(a,v.SIGNED_VERSION,f),u(a,v.SIGNED_IDENTIFIER,i.Id),u(a,v.SIGNED_RESOURCE,o),s&&(u(a,v.CACHE_CONTROL,s.cacheControl),u(a,v.CONTENT_TYPE,s.contentType),u(a,v.CONTENT_ENCODING,s.contentEncoding),u(a,v.CONTENT_LANGUAGE,s.contentLanguage),u(a,v.CONTENT_DISPOSITION,s.contentDisposition)),u(a,v.TABLENAME,c),u(a,v.SIGNATURE,this._generateSignature(e,t,i,f,{resourceType:o,headers:s,tableName:c})),p.stringify(a)},a.prototype._generateSignature=function(e,t,i,r,n){var a,o,s,c,l=function(e,t){var i="";return h.objectIsNull(e)||(i=e),!0!==t&&(i+="\n"),i};n&&(a=n.resourceType,o=n.tableName,s=n.headers),"/"!==t.substr(0,1)&&(t="/"+t),c=r===_.FEBRUARY_2012||r===_.AUGUST_2013?"/"+this.storageAccount+t:"/"+e+"/"+this.storageAccount+t;var u=l(i.AccessPolicy?i.AccessPolicy.Permissions:"")+l(i.AccessPolicy?i.AccessPolicy.Start:"")+l(i.AccessPolicy?i.AccessPolicy.Expiry:"")+l(c)+l(i.Id)+l(i.AccessPolicy?i.AccessPolicy.IPAddressOrRange:"")+l(i.AccessPolicy?i.AccessPolicy.Protocols:"")+r;if(r==_.FEBRUARY_2012){if(s)throw new b("args.headers",m.INVALID_HEADERS)}else a&&(u+="\n"+l(s?s.cacheControl:"")+l(s?s.contentDisposition:"")+l(s?s.contentEncoding:"")+l(s?s.contentLanguage:"")+l(s?s.contentType:"",!0));return o&&(u+="\n"+l(i.AccessPolicy?i.AccessPolicy.StartPk:"")+l(i.AccessPolicy?i.AccessPolicy.StartRk:"")+l(i.AccessPolicy?i.AccessPolicy.EndPk:"")+l(i.AccessPolicy?i.AccessPolicy.EndRk:"",!0)),this.signer.sign(u)},t.exports=a},{"../errors/errors":5,"../util/constants":33,"../util/sr":37,"../util/util":39,"./hmacsha256sign":20,querystring:186,underscore:229}],23:[function(e,t,i){var r=e("../util/constants").HeaderConstants;function n(e){this.tokenCredential=e}n.prototype.signRequest=function(e,t){e.withHeader(r.AUTHORIZATION,"Bearer "+this.tokenCredential.get()),t(null)},t.exports=n},{"../util/constants":33}],24:[function(_,y,e){(function(e){var a=_("util"),t=_("http"),i=_("https"),r=_("events").EventEmitter,n=_("os"),o=_("../util/util"),s=_("../diagnostics/logger"),c=_("../util/constants"),l=_("../errors/errors").ArgumentError,u=c.BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES,f=c.BlobConstants.DEFAULT_CRITICAL_MEMORY_LIMITATION_32_IN_BYTES,d=c.BlobConstants.DEFAULT_CRITICAL_MEMORY_LIMITATION_BROWSER_IN_BYTES,p=c.BlobConstants.DEFAULT_MINIMUM_MEMORY_USAGE_BROWSER_IN_BYTES,h=n.totalmem(),m=.1*h,b=o.getNodeVersion();function g(e,t){t||(t={}),this.name=e,this.logger=t.logger||new s(s.LogLevels.INFO),this.operationMemoryUsage=t.operationMemoryUsage||u,this.callbackInOrder=!0===t.callbackInOrder,this.callInOrder=!0===t.callInOrder,this._currentOperationId=this.callbackInOrder?1:-1,this.concurrency=5,this.enableReuseSocket=(0<b.major||10<=b.minor)&&t.enableReuseSocket,this._emitter=new r,this._enableComplete=!1,this._ended=!1,this._error=null,this._paused=!1,this._totalOperation=0,this._activeOperation=0,this._queuedOperation=0,this._operations=[]}var v={INITED:"inited",QUEUED:"queued",RUNNING:"running",COMPLETE:"complete",CALLBACK:"callback",ERROR:"error"};g.OperationState=v,g.prototype.setConcurrency=function(e){e&&(this.concurrency=e,t.Agent.maxSockets=this.concurrency,i.Agent.maxSockets=this.concurrency)},g.prototype.IsWorkloadHeavy=function(){var e=1;return this.enableReuseSocket&&!this.callInOrder&&(e=2),this._activeOperation>=e*this.concurrency||this._isLowMemory()},g.prototype._getApproximateMemoryUsage=function(){return(o.isBrowser()?p:e.memoryUsage().rss)+this._queuedOperation*this.operationMemoryUsage},g.prototype._isLowMemory=function(){var e=this._getApproximateMemoryUsage();return n.freemem()<m||this._activeOperation>=this.concurrency&&.5*h<e||o.is32()&&f<e||o.isBrowser()&&d<e},g.prototype.addOperation=function(e){return this._operations.push(e),e.status=v.QUEUED,e.operationId=++this._totalOperation,this._queuedOperation++,this.logger.debug(a.format("Add operation %d into batch operation %s. Active: %s; Queued: %s",e.operationId,this.name,this._activeOperation,this._queuedOperation)),this._runOperation(e),this.IsWorkloadHeavy()},g.prototype.enableComplete=function(){this._enableComplete=!0,this.logger.debug(a.format("Enable batch operation %s complete",this.name)),this._tryEmitEndEvent()},g.prototype.pause=function(){this._paused=!0},g.prototype.resume=function(){this._paused&&(this._paused=!1,this._fireOperationUserCallback())},g.prototype.on=function(e,t){this._ended&&"end"===e?t():this._emitter.on(e,t)},g.prototype._runOperation=function(e){this.logger.debug(a.format("Operation %d start to run",e.operationId));var t=this.getBatchOperationCallback(e);this._error?t(this._error):e.run(t),this._activeOperation++},g.prototype.getBatchOperationCallback=function(t){var i=this;return function(e){if(i._queuedOperation--,e?(t.status=v.ERROR,i.logger.debug(a.format("Operation %d failed. Error %s",t.operationId,e)),i._error=e):(t.status=v.CALLBACK,i.logger.debug(a.format("Operation %d succeed",t.operationId))),t._callbackArguments=arguments,i._paused)t.status=v.CALLBACK,i.logger.debug(a.format("Batch operation paused and Operation %d wait for firing callback",t.operationId));else if(i.callbackInOrder)if(t.status=v.CALLBACK,i._currentOperationId===t.operationId)i._fireOperationUserCallback(t);else{if(i._currentOperationId>t.operationId)throw new Error("Debug error: current callback operation id cannot be larger than operation id");i.logger.debug(a.format("Operation %d is waiting for firing callback %s",t.operationId,i._currentOperationId))}else i._fireOperationUserCallback(t);i._tryEmitDrainEvent(),i=t=null}},g.prototype._fireOperationUserCallback=function(e){var t=this._getCallbackOperationIndex();e||-1==t||(e=this._operations[t]),e&&!this._paused?(e._userCallback&&(this.logger.debug(a.format("Fire user call back for operation %d",e.operationId)),e._fireUserCallback()),this._operations.splice(t,1),this._activeOperation--,e.status=v.COMPLETE,t=e=null,this.callbackInOrder&&this._currentOperationId++,this._fireOperationUserCallback()):this._paused?this._tryEmitDrainEvent():this._tryEmitEndEvent()},g.prototype._tryEmitEndEvent=function(){return this._enableComplete&&0===this._activeOperation&&0===this._operations.length?(this._ended=!0,this.logger.debug(a.format("Batch operation %s emits the end event",this.name)),this._emitter.emit("end",this._error,null),!0):(this._tryEmitDrainEvent(),!1)},g.prototype._tryEmitDrainEvent=function(){return!!this._emitter&&((!this.IsWorkloadHeavy()||this._activeOperation<this.concurrency)&&(this._emitter.emit("drain"),!0))},g.prototype._getCallbackOperationIndex=function(){for(var e=null,t=0;t<this._operations.length;t++)if(e=this._operations[t],this.callbackInOrder){if(e.operationId==this._currentOperationId)return e.status===v.CALLBACK?t:-1}else if(e.status===v.CALLBACK)return t;return-1},g.noOperation=function(e){e()},g.RestOperation=function(i,r){this.status=v.Inited,this.operationId=-1,this._callbackArguments=null,this._userCallback=arguments[arguments.length-1];var e=arguments.length;o.objectIsFunction(this._userCallback)?e--:this._userCallback=null;var n=Array.prototype.slice.call(arguments).slice(2,e);this.run=function(e){var t=i[r];if(!t)throw new l("operation",a.format("Unknown operation %s in serviceclient",r));e||(e=this._userCallback),n.push(e),this.status=v.RUNNING,t.apply(i,n),n=r=null},this._fireUserCallback=function(){this._userCallback&&this._userCallback.apply(null,this._callbackArguments)}},g.CommonOperation=function(t,e){this.status=v.Inited,this.operationId=-1,this._callbackArguments=null;var i=2;o.objectIsFunction(e)?this._userCallback=e:(this._userCallback=null,i=1);var r=Array.prototype.slice.call(arguments).slice(i);this.run=function(e){e||(e=this._userCallback),r.push(e),this.status=v.RUNNING,t.apply(null,r),r=t=null},this._fireUserCallback=function(){this._userCallback&&this._userCallback.apply(null,this._callbackArguments),this._userCallback=this._callbackArguments=null}},y.exports=g}).call(this,_("_process"))},{"../diagnostics/logger":4,"../errors/errors":5,"../util/constants":33,"../util/util":39,_process:176,events:136,http:211,https:153,os:164,util:234}],25:[function(e,t,i){var n=e("buffer").Buffer,a=e("stream"),r=e("util"),o=e("../util/constants").BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;function s(e,t){a.Readable.call(this,t),t||(t={}),this._fileReader=new FileReader(e),this._file=e,this._size=e.size,this._highWaterMark=t.highWaterMark||o,this._offset=0;var r=this;this._fileReader.onloadend=function(e){var t=e.target.result,i=n.from(t);r.push(i)},this._fileReader.onerror=function(e){r.emit("error",e)}}r.inherits(s,a.Readable),s.prototype._read=function(){if(this._offset>=this._size)this.push(null);else{var e=this._offset+this._highWaterMark,t=this._file.slice(this._offset,e);this._fileReader.readAsArrayBuffer(t),this._offset=e}},t.exports=s},{"../util/constants":33,buffer:100,stream:210,util:234}],26:[function(e,t,i){var r=e("stream");function n(e,t){r.Readable.call(this,t),this._buffer=e,this._offset=0,this._chunkSize=4194304,this._bufferSize=e.length}e("util").inherits(n,r.Readable),n.prototype._read=function(){for(;this.push(this._readNextChunk()););},n.prototype._readNextChunk=function(){var e=null;if(this._offset<this._bufferSize){var t=this._offset+this._chunkSize;t=t>this._bufferSize?this._bufferSize:t,e=this._buffer.slice(this._offset,t),this._offset=t}return e},t.exports=n},{stream:210,util:234}],27:[function(e,t,i){(function(n){function e(e,t){this._pool=[],this._inuse=0,this._chunkSize=e,this._maxCount=t||10,this._extendMemoryPool()}e.prototype.getBuffer=function(e){var t=this._getBufferFromPool(e);return null===t&&(t=new n(e)),this._inuse++,t},e.prototype._getBufferFromPool=function(e){return e!==this._chunkSize?null:(0===this._pool.length&&this._extendMemoryPool(),0!==this._pool.length?this._pool.pop():null)},e.prototype._extendMemoryPool=function(){var e=this._pool.length+this._inuse;if(!(e>=this._maxCount))for(var t=(Math.min(2*e,this._maxCount)||1)-e,i=0;i<t;i++){var r=new n(this._chunkSize);this._pool.push(r)}},e.prototype.releaseBuffer=function(e){e.length===this._chunkSize?(this._pool.length<this._maxCount?this._pool.push(e):e=null,this._inuse--,this._inuse<0&&(this._inuse=0)):e=null},e.prototype.destroy=function(){this._pool=[],this._inuse=0},t.exports=e}).call(this,e("buffer").Buffer)},{buffer:100}],28:[function(o,c,e){(function(s){var t=o("stream"),e=o("util"),i=o("../util/util"),r=o("../md5-wrapper"),n=o("../util/constants").BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES;function a(e){t.Stream.call(this),this.writable=this.readable=!0,e||(e={}),this._highWaterMark=e.highWaterMark||n,this._paused=void 0,this._isStreamOpened=!1,this._offset=0,this._allocator=e.allocator,this._streamEnded=!1,this._md5hash=null,this._buffer=null,this._internalBufferSize=0,this._outputLengthLimit=0,this._md5sum=void 0,e.calcContentMd5&&(this._md5hash=(new r).createMd5Hash())}e.inherits(a,t.Stream),a.prototype.setMemoryAllocator=function(e){this._allocator=e},a.prototype.setOutputLength=function(e){e&&(this._outputLengthLimit=e)},a.prototype.end=function(e,t,i){"function"==typeof e?(i=e,t=e=null):"function"==typeof t&&(i=t,t=null),e&&this.write(e,t),this._streamEnded=!0,this._flushInternalBuffer(),i&&this.once("end",i),this.emit("end")},a.prototype.finish=function(){this.emit("finish"),this.destroy()},a.prototype.error=function(){this.emit("error"),this.destroy()},a.prototype.destroy=function(){this.writable=this.readable=!1,this._allocator&&i.objectIsFunction(this._allocator.destroy)&&this._allocator.destroy(),this.emit("close")},a.prototype.stop=function(){this.destroy(),this._streamEnded=!0,this.emit("end")},a.prototype.write=function(e,t){return this._isStreamOpened||(this._isStreamOpened=!0),this._buildChunk(e,t),!this._paused},a.prototype._buildChunk=function(e){"string"==typeof e&&(e=new s(e));var t=e.length,i=0;do{var r=null,n=this._internalBufferSize+t;if(n<this._highWaterMark)return void this._copyToInternalBuffer(e,i,e.length);if(n==this._highWaterMark){var a=this._stream&&this._stream._allocator&&this._stream._allocator.releaseBuffer;0!==this._internalBufferSize||e.length!==this._highWaterMark||a?(this._copyToInternalBuffer(e,i,e.length),r=this._popInternalBuffer()):r=e,t=0}else{var o=this._highWaterMark-this._internalBufferSize;this._copyToInternalBuffer(e,i,i+o),t-=o,i+=o,r=this._popInternalBuffer()}this._emitBufferData(r)}while(0<t)},a.prototype._emitBufferData=function(e){var t=this._offset+e.length,i={start:this._offset,end:t-1,size:e.length};this._offset=t,0<this._outputLengthLimit?i.start<=this._outputLengthLimit&&(this._offset>this._outputLengthLimit&&(e=e.slice(0,e.length-(this._offset-this._outputLengthLimit))),this._md5hash&&this._md5hash.update(e)):this._md5hash&&this._md5hash.update(e),this.emit("data",e,i)},a.prototype._copyToInternalBuffer=function(e,t,i){void 0===t&&(t=0),void 0===i&&(i=e.length),this._buffer||(this._buffer=this._allocateNewBuffer(),this._internalBufferSize=0);var r=e.copy(this._buffer,this._internalBufferSize,t,i);if(this._internalBufferSize+=r,this._stream&&this._stream._allocator&&this._stream._allocator.releaseBuffer&&this._stream._allocator.releaseBuffer(e),r!=i-t)throw new Error("Can not copy entire data to buffer")},a.prototype._flushInternalBuffer=function(){var e=this._popInternalBuffer();e&&this._emitBufferData(e)},a.prototype._popInternalBuffer=function(){var e=null;return e=this._buffer&&0!==this._internalBufferSize?this._internalBufferSize==this._highWaterMark?this._buffer:this._buffer.slice(0,this._internalBufferSize):null,this._buffer=null,this._internalBufferSize=0,e},a.prototype._allocateNewBuffer=function(){var e=this._highWaterMark;return this._allocator&&i.objectIsFunction(this._allocator.getBuffer)?this._allocator.getBuffer(e):new s(e)},a.prototype.getContentMd5=function(e){if(e||(e="base64"),this._md5hash){if(this._streamEnded)return this._md5sum||(this._md5sum=this._md5hash.digest(e)),this._md5sum;throw new Error("Stream has not ended.")}throw new Error("Can't get content md5, please set the calcContentMd5 option for FileReadStream.")},a.prototype.pause=function(){this._paused=!0},a.prototype.resume=function(){this._paused&&(this._paused=!1,this.emit("drain"))},c.exports=a}).call(this,o("buffer").Buffer)},{"../md5-wrapper":10,"../util/constants":33,"../util/util":39,buffer:100,stream:210,util:234}],29:[function(e,t,i){var r=e("./chunkstream"),n=e("events").EventEmitter,a=e("util"),o=e("./../util/util");function s(e,t){r.call(this,t),e.pause(),this._stream=e,this._stream.on("end",this.end.bind(this))}a.inherits(s,r),s.prototype.on=function(e,t){return"end"===e&&this._streamEnded?t():n.prototype.on.call(this,e,t),"data"===e&&(this._isStreamOpened||(this._isStreamOpened=!0,this._stream.on("data",this._buildChunk.bind(this))),void 0===this._paused&&this._stream.resume()),this},s.prototype.stop=function(e,t,i){o.objectIsFunction(this._stream.destroy)?this._stream.destroy():this.pause(),r.prototype.end.call(this,e,t,i)},s.prototype.pause=function(){r.prototype.pause.call(this),this._stream.pause()},s.prototype.resume=function(){r.prototype.resume.call(this),this._stream.resume()},s.prototype.finish=function(){r.prototype.finish.call(this),this._stream.emit.call(this._stream,"finish")},s.prototype.destroy=function(){r.prototype.destroy.call(this),this._stream.emit.call(this._stream,"close")},t.exports=s},{"./../util/util":39,"./chunkstream":28,events:136,util:234}],30:[function(t,i,e){(function(d){var r=t("./../common.core").util,n=t("./../util/constants"),a=t("events").EventEmitter;function e(e,t,i,r){this.serviceClient=e,this._emitter=new a,this._paused=!1,this._emittedAll=!1,this._emittedRangeIndex=0,this._rangelist=[],this._resourcePath=[],this._isEmitting=!1,this._rangeStreamEnded=!1,this._lengthHeader=n.HeaderConstants.CONTENT_LENGTH,this._minRangeSize=n.BlobConstants.MIN_WRITE_PAGE_SIZE_IN_BYTES,this._maxRangeSize=n.BlobConstants.DEFAULT_WRITE_PAGE_SIZE_IN_BYTES,r.rangeStart?this._startOffset=r.rangeStart:this._startOffset=0,this._dataOffset=this._startOffset,r.rangeEnd?this._endOffset=r.rangeEnd:this._endOffset=Number.MAX_VALUE,t&&this._resourcePath.push(t),i&&this._resourcePath.push(i)}e.prototype.list=function(o,s){var c,l=this._startOffset,u=n.BlobConstants.MAX_SINGLE_GET_PAGE_RANGE_SIZE;void 0===this._listFunc?(this._listFunc=this._defaultListFunc,c=this._endOffset):c=Math.min(this._startOffset+u-1,this._endOffset),o.rangeStart=l,c!=Number.MAX_VALUE&&(o.rangeEnd=c);var f=this,e=Array.prototype.slice.call(this._resourcePath);e.push(o),e.push(function(e,t,i){if(e)s(e);else{if(f._rangeStreamEnded)return;var r=parseInt(i.headers[f._lengthHeader],10),n=Math.min(r-1,f._endOffset),a=Math.min(c,n);t.length?t[t.length-1].end!==a&&t.push({start:t[t.length-1].end+1,end:a,dataSize:0}):t.push({start:l,end:a,dataSize:0}),n<=c&&(f._rangeStreamEnded=!0),f.resizeAndSaveRanges(t),f._startOffset+=u,f._emitRange(),c<n&&!f._rangeStreamEnded&&d.nextTick(function(){t=null,f.list(o,s),f=null})}}),this._listFunc.apply(this.serviceClient,e)},e.prototype.resizeAndSaveRanges=function(e){for(var t=this._rangelist,i={type:"range",size:0,dataSize:0,start:this._startOffset,end:-1},r=null,n=0;n<e.length;n++)(r=e[n]).end-i.start+1<this._minRangeSize?this.mergeRanges(i,r):(-1!=i.end&&(this.splitAndSaveRanges(i,t),i=r),this._dataOffset!=r.start?(this.putZeroRange(this._dataOffset,r.start-1,t),i=r):-1==i.end&&(this.splitAndSaveRanges(r,t),i.start=r.end+1)),n==e.length-1&&i.end>i.start&&this.splitAndSaveRanges(i,t),this._dataOffset=r.end+1},e.prototype.putZeroRange=function(e,t,i){var r={type:"range",size:-1,dataSize:0,start:e,end:t};this.splitAndSaveRanges(r,i)},e.prototype.mergeRanges=function(e,t){return e.size=t.end-e.start+1,e.dataSize+=t.dataSize,e.end=t.end,e},e.prototype.splitAndSaveRanges=function(e,t){for(var i=e.end-e.start+1,r=e.start,n=0;0<i;){var a={type:"range",size:0,dataSize:0,start:-1,end:-1};n=Math.min(i,this._maxRangeSize),a.start=r,a.size=n,0===e.dataSize?a.dataSize=0:a.dataSize=n,r+=n,a.end=r-1,t.push(a),i-=n}},e.prototype._emitRange=function(){if(!(this._paused||this._emittedAll||this._isEmitting)){this._isEmitting=!0;try{for(;this._emittedRangeIndex<this._rangelist.length;this._emittedRangeIndex++){if(this._paused)return;var e=this._rangelist[this._emittedRangeIndex];this._emitter.emit("range",e),this._rangelist[this._emittedRangeIndex]=null}this._rangeStreamEnded&&(this._rangelist=null,this._emittedAll=!0,this._emitter.emit("end"))}finally{this._isEmitting=!1}}},e.prototype._defaultListFunc=function(e,t,i,n){var a;r.normalizeArgs(i,n,function(e,t){a=e,n=t}),this.getBlobProperties(e,t,a,function(e,t,i){if(e)n(e);else{var r=[{}];r[0].start=a.rangeStart?Math.max(a.rangeStart,0):0,r[0].end=a.rangeEnd?Math.min(a.rangeEnd,t.contentLength-1):t.contentLength-1,r[0].size=r[0].end-r[0].start+1,r[0].dataSize=r[0].size,n(e,r,i)}})},e.prototype.on=function(e,t){this._emitter.on(e,t)},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1,this._isEmitting||this._emitRange()},e.prototype.stop=function(){this.pause(),this._emittedAll=!0,this._emitter.emit("end")},i.exports=e}).call(this,t("_process"))},{"./../common.core":3,"./../util/constants":33,_process:176,events:136}],31:[function(r,a,e){(function(i){var e=r("events"),o=r("util"),s=r("../util/util");function t(e){this.name=e,this._startTime=Date.now(),this._timeWindowInSeconds=10,this._timeWindow=1e3*this._timeWindowInSeconds,this._totalWindowSize=0,this._speedTracks=new Array(this._timeWindowInSeconds),this._speedTrackPtr=0,this.totalSize=void 0,this.completeSize=0}function n(e,t){if(!e)return"0B";(!t||t<=0)&&(t=2);var i=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,i)).toFixed(t)+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}o.inherits(t,e),t.prototype.getElapsedSeconds=function(e){var t=Date.now(),i=parseInt((t-this._startTime)/1e3,10);if(!1!==e){var r=parseInt(i%60,10);i/=60;var n=Math.floor(i%60);i/=60;var a=Math.floor(i);i=o.format("%s:%s:%s",s.zeroPaddingString(a,2),s.zeroPaddingString(n,2),s.zeroPaddingString(r,2))}return i},t.prototype.getCompletePercent=function(e){return this.totalSize?((!e||e<=0)&&(e=1),(100*this.completeSize/this.totalSize).toFixed(e)):0===this.totalSize?100:0},t.prototype.getAverageSpeed=function(e){var t=this.getElapsedSeconds(!1);return this._getInternalSpeed(this.completeSize,t,e)},t.prototype.getSpeed=function(e){this._refreshSpeedTracks();var t=this.getElapsedSeconds(!1);return t=Math.min(t,this._timeWindowInSeconds),this._getInternalSpeed(this._totalWindowSize,t,e)},t.prototype._getInternalSpeed=function(e,t,i){t<=0&&(t=1);var r=e/t;return!1!==i&&(r=n(r)+"/s"),r},t.prototype._refreshSpeedTracks=function(){for(var e=Date.now(),t=0,i=0;i<this._speedTracks.length;i++)this._speedTracks[i]&&(e-this._speedTracks[i].timeStamp<=this._timeWindow?t+=this._speedTracks[i].size:this._speedTracks[i]=null);this._totalWindowSize=t},t.prototype.increment=function(e){this.completeSize+=e,this._recordSpeed(e);var t=this;return i.nextTick(function(){t.emit("progress")}),this.completeSize},t.prototype._recordSpeed=function(e){var t=Date.now(),i=this._speedTracks[this._speedTrackPtr];if(i){var r=t-i.timeStamp;r>this._timeWindow?(i.timeStamp=t,i.size=e):r<=1e3?i.size+=e:(this._speedTrackPtr=(this._speedTrackPtr+1)%this._timeWindowInSeconds,this._recordSpeed(e))}else i={timeStamp:t,size:e},this._speedTracks[this._speedTrackPtr]=i},t.prototype.getAutoIncrementFunction=function(r){var n=this;return function(e,t){if(!e){var i=0;i=!t&&0!==t||isNaN(t)?r:t,n.increment(i)}}},t.prototype.getTotalSize=function(e){return!1!==e?n(this.totalSize):this.totalSize},t.prototype.getCompleteSize=function(e){return!1!==e?n(this.completeSize):this.completeSize},a.exports=t}).call(this,r("_process"))},{"../util/util":39,_process:176,events:136,util:234}],32:[function(e,t,i){"use strict";(i=t.exports).generateEmptyCondition=function(){return{}},i.generateIfNotExistsCondition=function(){var e={EtagNonMatch:"*"};return e},i.generateIfExistsCondition=function(){var e={EtagMatch:"*"};return e},i.generateIfNoneMatchCondition=function(e){var t={};return t.EtagNonMatch=e,t},i.generateIfMatchCondition=function(e){var t={};return t.EtagMatch=e,t},i.generateIfModifiedSinceCondition=function(e){var t={};return t.DateModifedSince=e,t},i.generateIfNotModifiedSinceCondition=function(e){var t={};return t.DateUnModifiedSince=e,t},i.generateSequenceNumberEqualCondition=function(e){var t={};return t.SequenceNumberEqual=e,t},i.generateSequenceNumberLessThanCondition=function(e){var t={};return t.SequenceNumberLessThan=e,t},i.generateSequenceNumberLessThanOrEqualCondition=function(e){var t={};return t.SequenceNumberLessThanOrEqual=e,t}},{}],33:[function(e,r,t){(function(e){r.exports;var t=e.env.AZURE_STORAGE_DNS_SUFFIX||"core.windows.net",i={USER_AGENT_PRODUCT_NAME:"Azure-Storage",USER_AGENT_PRODUCT_VERSION:"2.10.1",DEFAULT_PARALLEL_OPERATION_THREAD_COUNT:5,DEFAULT_ENABLE_REUSE_SOCKET:!0,KB:1024,MB:1048576,GB:1073741824,HTTP:"http:",HTTPS:"https:",DEFAULT_HTTP_PORT:80,DEFAULT_HTTPS_PORT:443,DEFAULT_CLIENT_REQUEST_TIMEOUT_IN_MS:12e4,XML_METADATA_MARKER:"$",XML_VALUE_MARKER:"_",ServiceType:{Blob:"blob",Queue:"queue",Table:"table",File:"file"},RequestLocationMode:{PRIMARY_ONLY:0,SECONDARY_ONLY:1,PRIMARY_OR_SECONDARY:2},StorageLocation:{PRIMARY:0,SECONDARY:1},AccountSasConstants:{Permissions:{READ:"r",ADD:"a",CREATE:"c",UPDATE:"u",PROCESS:"p",WRITE:"w",DELETE:"d",LIST:"l"},Services:{BLOB:"b",FILE:"f",QUEUE:"q",TABLE:"t"},Resources:{SERVICE:"s",CONTAINER:"c",OBJECT:"o"},Protocols:{HTTPSONLY:"https",HTTPSORHTTP:"https,http"}},AclConstants:{ACCESS_POLICY:"AccessPolicy",EXPIRY:"Expiry",ID:"Id",PERMISSION:"Permission",SIGNED_IDENTIFIER_ELEMENT:"SignedIdentifier",SIGNED_IDENTIFIERS_ELEMENT:"SignedIdentifiers",START:"Start"},ServicePropertiesConstants:{STORAGE_SERVICE_PROPERTIES_ELEMENT:"StorageServiceProperties",DEFAULT_ANALYTICS_VERSION:"1.0",LOGGING_ELEMENT:"Logging",VERSION_ELEMENT:"Version",DELETE_ELEMENT:"Delete",READ_ELEMENT:"Read",WRITE_ELEMENT:"Write",RETENTION_POLICY_ELEMENT:"RetentionPolicy",ENABLED_ELEMENT:"Enabled",DAYS_ELEMENT:"Days",HOUR_METRICS_ELEMENT:"HourMetrics",MINUTE_METRICS_ELEMENT:"MinuteMetrics",CORS_ELEMENT:"Cors",CORS_RULE_ELEMENT:"CorsRule",ALLOWED_ORIGINS_ELEMENT:"AllowedOrigins",ALLOWED_METHODS_ELEMENT:"AllowedMethods",MAX_AGE_IN_SECONDS_ELEMENT:"MaxAgeInSeconds",EXPOSED_HEADERS_ELEMENT:"ExposedHeaders",ALLOWED_HEADERS_ELEMENT:"AllowedHeaders",INCLUDE_APIS_ELEMENT:"IncludeAPIs",DEFAULT_SERVICE_VERSION_ELEMENT:"DefaultServiceVersion",DEFAULT_DELETE_RETENTION_POLICY_ELEMENT:"DeleteRetentionPolicy",DEFAULT_STATIC_WEBSITE_ELEMENT:"StaticWebsite",DEFAULT_INDEX_DOCUMENT_ELEMENT:"IndexDocument",DEFAULT_ERROR_DOCUMENT_404_PATH_ELEMENT:"ErrorDocument404Path"},BlobConstants:{LATEST_ELEMENT:"Latest",UNCOMMITTED_ELEMENT:"Uncommitted",BLOCK_LIST_ELEMENT:"BlockList",COMMITTED_ELEMENT:"Committed",DEFAULT_WRITE_PAGE_SIZE_IN_BYTES:4194304,MIN_WRITE_PAGE_SIZE_IN_BYTES:2097152,DEFAULT_SINGLE_BLOB_PUT_THRESHOLD_IN_BYTES:33554432,DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES:4194304,DEFAULT_CRITICAL_MEMORY_LIMITATION_32_IN_BYTES:838860800,DEFAULT_CRITICAL_MEMORY_LIMITATION_BROWSER_IN_BYTES:1073741824,DEFAULT_MINIMUM_MEMORY_USAGE_BROWSER_IN_BYTES:4194304,MAX_BLOCK_BLOB_BLOCK_SIZE:104857600,MAX_APPEND_BLOB_BLOCK_SIZE:4194304,MAX_SINGLE_UPLOAD_BLOB_SIZE_IN_BYTES:67108864,MAX_RANGE_GET_SIZE_WITH_MD5:4194304,MAX_UPDATE_PAGE_SIZE:4194304,MAX_QUEUED_WRITE_DISK_BUFFER_SIZE:67108864,MAX_SINGLE_GET_PAGE_RANGE_SIZE:155189248,PAGE_SIZE:512,ResourceTypes:{CONTAINER:"c",BLOB:"b"},ListBlobTypes:{Blob:"b",Directory:"d"},PageWriteOptions:{UPDATE:"update",CLEAR:"clear"},BlobTypes:{BLOCK:"BlockBlob",PAGE:"PageBlob",APPEND:"AppendBlob"},LeaseOperation:{ACQUIRE:"acquire",RENEW:"renew",CHANGE:"change",RELEASE:"release",BREAK:"break"}},FileConstants:{DEFAULT_WRITE_SIZE_IN_BYTES:4194304,MAX_RANGE_GET_SIZE_WITH_MD5:4194304,MAX_UPDATE_FILE_SIZE:4194304,DEFAULT_SINGLE_FILE_GET_THRESHOLD_IN_BYTES:33554432,MIN_WRITE_FILE_SIZE_IN_BYTES:2097152,RangeWriteOptions:{UPDATE:"update",CLEAR:"clear"},ResourceTypes:{SHARE:"s",FILE:"f"}},QueueConstants:{QUEUE_MESSAGE_ELEMENT:"QueueMessage",MESSAGE_TEXT_ELEMENT:"MessageText"},TableConstants:{CHANGESET_DELIMITER:"--changesetresponse_",BATCH_DELIMITER:"--batchresponse_",CONTINUATION_NEXT_ROW_KEY:"x-ms-continuation-nextrowkey",CONTINUATION_NEXT_PARTITION_KEY:"x-ms-continuation-nextpartitionkey",CONTINUATION_NEXT_TABLE_NAME:"x-ms-continuation-nexttablename",NEXT_ROW_KEY:"NextRowKey",NEXT_PARTITION_KEY:"NextPartitionKey",NEXT_TABLE_NAME:"NextTableName",ODATA_PREFIX:"odata.",ODATA_TYPE_SUFFIX:"@odata.type",ODATA_METADATA_MARKER:".metadata",ODATA_VALUE_MARKER:"_",ODATA_TYPE_MARKER:"$",DEFAULT_DATA_SERVICE_VERSION:"3.0;NetFx",TABLE_NAME:"TableName",TABLE_SERVICE_TABLE_NAME:"Tables",Operations:{RETRIEVE:"RETRIEVE",INSERT:"INSERT",REPLACE:"REPLACE",MERGE:"MERGE",DELETE:"DELETE",INSERT_OR_REPLACE:"INSERT_OR_REPLACE",INSERT_OR_MERGE:"INSERT_OR_MERGE"}},HeaderConstants:{ACCEPT_RANGES:"accept_ranges",CONTENT_TRANSFER_ENCODING:"content-transfer-encoding",TRANSFER_ENCODING:"transfer-encoding",SERVER:"server",LOCATION:"location",LAST_MODIFIED:"Last-Modified",CREATION_TIME:"x-ms-creation-time",DATA_SERVICE_VERSION:"dataserviceversion",MAX_DATA_SERVICE_VERSION:"maxdataserviceversion",PREFIX_FOR_STORAGE:"x-ms-",CLIENT_REQUEST_ID:"x-ms-client-request-id",APPROXIMATE_MESSAGES_COUNT:"x-ms-approximate-messages-count",AUTHORIZATION:"authorization",FORCE_NO_CACHE_IN_BROWSER:"_",BLOB_PUBLIC_ACCESS:"x-ms-blob-public-access",HAS_IMMUTABILITY_POLICY:"x-ms-has-immutability-policy",HAS_LEGAL_HOLD:"x-ms-has-legal-hold",BLOB_TYPE:"x-ms-blob-type",TYPE:"x-ms-type",BLOCK_BLOB:"blockblob",CACHE_CONTROL:"cache-control",BLOB_CACHE_CONTROL:"x-ms-blob-cache-control",FILE_CACHE_CONTROL:"x-ms-cache-control",COPY_STATUS:"x-ms-copy-status",COPY_COMPLETION_TIME:"x-ms-copy-completion-time",COPY_STATUS_DESCRIPTION:"x-ms-copy-status-description",COPY_ID:"x-ms-copy-id",COPY_PROGRESS:"x-ms-copy-progress",COPY_ACTION:"x-ms-copy-action",INCREMENTAL_COPY:"x-ms-incremental-copy",COPY_DESTINATION_SNAPSHOT:"x-ms-copy-destination-snapshot",CONTENT_ID:"content-id",CONTENT_ENCODING:"content-encoding",BLOB_CONTENT_ENCODING:"x-ms-blob-content-encoding",FILE_CONTENT_ENCODING:"x-ms-content-encoding",CONTENT_LANGUAGE:"content-language",BLOB_CONTENT_LANGUAGE:"x-ms-blob-content-language",FILE_CONTENT_LANGUAGE:"x-ms-content-language",CONTENT_LENGTH:"content-length",BLOB_CONTENT_LENGTH:"x-ms-blob-content-length",FILE_CONTENT_LENGTH:"x-ms-content-length",CONTENT_DISPOSITION:"content-disposition",BLOB_CONTENT_DISPOSITION:"x-ms-blob-content-disposition",FILE_CONTENT_DISPOSITION:"x-ms-content-disposition",CONTENT_MD5:"content-md5",BLOB_CONTENT_MD5:"x-ms-blob-content-md5",FILE_CONTENT_MD5:"x-ms-content-md5",CONTENT_RANGE:"cache-range",CONTENT_TYPE:"content-type",BLOB_CONTENT_TYPE:"x-ms-blob-content-type",FILE_CONTENT_TYPE:"x-ms-content-type",COPY_SOURCE:"x-ms-copy-source",DATE:"date",MS_DATE:"x-ms-date",DELETE_SNAPSHOT:"x-ms-delete-snapshots",ETAG:"etag",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",INCLUDE_SNAPSHOTS_VALUE:"include",JSON_CONTENT_TYPE_VALUE:"application/json",SKU_NAME:"x-ms-sku-name",ACCOUNT_KIND:"x-ms-account-kind",LEASE_ID:"x-ms-lease-id",LEASE_BREAK_PERIOD:"x-ms-lease-break-period",PROPOSED_LEASE_ID:"x-ms-proposed-lease-id",LEASE_DURATION:"x-ms-lease-duration",SOURCE_LEASE_ID:"x-ms-source-lease-id",LEASE_TIME:"x-ms-lease-time",LEASE_STATUS:"x-ms-lease-status",LEASE_STATE:"x-ms-lease-state",PAGE_BLOB:"PageBlob",PAGE_WRITE:"x-ms-page-write",FILE_WRITE:"x-ms-write",PREFER:"Prefer",PREFER_CONTENT:"return-content",PREFER_NO_CONTENT:"return-no-content",PREFIX_FOR_STORAGE_METADATA:"x-ms-meta-",PREFIX_FOR_STORAGE_PROPERTIES:"x-ms-prop-",RANGE:"Range",SOURCE_RANGE:"x-ms-source-range",RANGE_GET_CONTENT_MD5:"x-ms-range-get-content-md5",RANGE_HEADER_FORMAT:"bytes:%d-%d",REQUEST_ID:"x-ms-request-id",SEQUENCE_NUMBER:"x-ms-blob-sequence-number",SEQUENCE_NUMBER_EQUAL:"x-ms-if-sequence-number-eq",SEQUENCE_NUMBER_LESS_THAN:"x-ms-if-sequence-number-lt",SEQUENCE_NUMBER_LESS_THAN_OR_EQUAL:"x-ms-if-sequence-number-le",SEQUENCE_NUMBER_ACTION:"x-ms-sequence-number-action",SIZE:"x-ms-blob-content-length",SNAPSHOT:"x-ms-snapshot",SNAPSHOTS_ONLY_VALUE:"only",SOURCE_IF_MATCH:"x-ms-source-if-match",SOURCE_IF_MODIFIED_SINCE:"x-ms-source-if-modified-since",SOURCE_IF_NONE_MATCH:"x-ms-source-if-none-match",SOURCE_IF_UNMODIFIED_SINCE:"x-ms-source-if-unmodified-since",STORAGE_RANGE:"x-ms-range",STORAGE_VERSION:"x-ms-version",TARGET_STORAGE_VERSION:"2018-03-28",USER_AGENT:"user-agent",POP_RECEIPT:"x-ms-popreceipt",TIME_NEXT_VISIBLE:"x-ms-time-next-visible",APPROXIMATE_MESSAGE_COUNT:"x-ms-approximate-message-count",LEASE_ACTION:"x-ms-lease-action",ACCEPT:"accept",ACCEPT_CHARSET:"Accept-Charset",HOST:"host",CORRELATION_ID:"x-ms-correlation-id",GROUP_ID:"x-ms-group-id",SHARE_QUOTA:"x-ms-share-quota",BLOB_CONDITION_MAX_SIZE:"x-ms-blob-condition-maxsize",BLOB_CONDITION_APPEND_POSITION:"x-ms-blob-condition-appendpos",BLOB_APPEND_OFFSET:"x-ms-blob-append-offset",BLOB_COMMITTED_BLOCK_COUNT:"x-ms-blob-committed-block-count",REQUEST_SERVER_ENCRYPTED:"x-ms-request-server-encrypted",SERVER_ENCRYPTED:"x-ms-server-encrypted",ACCESS_TIER:"x-ms-access-tier",ACCESS_TIER_CHANGE_TIME:"x-ms-access-tier-change-time",ACCESS_TIER_INFERRED:"x-ms-access-tier-inferred",ARCHIVE_STATUS:"x-ms-archive-status"},QueryStringConstants:{API_VERSION:"api-version",COMP:"comp",RESTYPE:"restype",COPY_ID:"copyid",SNAPSHOT:"snapshot",SHARE_SNAPSHOT:"sharesnapshot",PREV_SNAPSHOT:"prevsnapshot",TIMEOUT:"timeout",SIGNED_START:"st",SIGNED_EXPIRY:"se",SIGNED_RESOURCE:"sr",SIGNED_PERMISSIONS:"sp",SIGNED_SERVICES:"ss",SIGNED_RESOURCE_TYPES:"srt",SIGNED_IP:"sip",SIGNED_PROTOCOL:"spr",SIGNED_IDENTIFIER:"si",SIGNATURE:"sig",SIGNED_VERSION:"sv",CACHE_CONTROL:"rscc",CONTENT_TYPE:"rsct",CONTENT_ENCODING:"rsce",CONTENT_LANGUAGE:"rscl",CONTENT_DISPOSITION:"rscd",BLOCK_ID:"blockid",BLOCK_LIST_TYPE:"blocklisttype",PREFIX:"prefix",MARKER:"marker",MAX_RESULTS:"maxresults",DELIMITER:"delimiter",INCLUDE:"include",PEEK_ONLY:"peekonly",NUM_OF_MESSAGES:"numofmessages",POP_RECEIPT:"popreceipt",VISIBILITY_TIMEOUT:"visibilitytimeout",MESSAGE_TTL:"messagettl",SELECT:"$select",FILTER:"$filter",TOP:"$top",SKIP:"$skip",NEXT_PARTITION_KEY:"NextPartitionKey",NEXT_ROW_KEY:"NextRowKey",LOCK_ID:"lockid",TABLENAME:"tn",STARTPK:"spk",STARTRK:"srk",ENDPK:"epk",ENDRK:"erk"},StorageServiceClientConstants:{DEFAULT_PROTOCOL:"https:",EnvironmentVariables:{AZURE_STORAGE_ACCOUNT:"AZURE_STORAGE_ACCOUNT",AZURE_STORAGE_ACCESS_KEY:"AZURE_STORAGE_ACCESS_KEY",AZURE_STORAGE_DNS_SUFFIX:"AZURE_STORAGE_DNS_SUFFIX",AZURE_STORAGE_CONNECTION_STRING:"AZURE_STORAGE_CONNECTION_STRING",HTTP_PROXY:"HTTP_PROXY",HTTPS_PROXY:"HTTPS_PROXY",EMULATED:"EMULATED"},DEVSTORE_STORAGE_ACCOUNT:"devstoreaccount1",DEVSTORE_STORAGE_ACCESS_KEY:"Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==",DEV_STORE_URI:"http://127.0.0.1",DEVSTORE_DEFAULT_PROTOCOL:"http://",DEVSTORE_BLOB_HOST:"127.0.0.1:10000",DEVSTORE_QUEUE_HOST:"127.0.0.1:10001",DEVSTORE_TABLE_HOST:"127.0.0.1:10002",CLOUD_BLOB_HOST:"blob."+t,CLOUD_QUEUE_HOST:"queue."+t,CLOUD_TABLE_HOST:"table."+t,CLOUD_FILE_HOST:"file."+t},HttpConstants:{HttpVerbs:{PUT:"PUT",GET:"GET",DELETE:"DELETE",POST:"POST",MERGE:"MERGE",HEAD:"HEAD"},HttpResponseCodes:{Ok:200,Created:201,Accepted:202,NoContent:204,PartialContent:206,BadRequest:400,Unauthorized:401,Forbidden:403,NotFound:404,Conflict:409,LengthRequired:411,PreconditionFailed:412}},CompatibleVersionConstants:{AUGUST_2013:"2013-08-15",FEBRUARY_2012:"2012-02-12"},BlobErrorCodeStrings:{INVALID_BLOCK_ID:"InvalidBlockId",BLOB_NOT_FOUND:"BlobNotFound",BLOB_ALREADY_EXISTS:"BlobAlreadyExists",CONTAINER_ALREADY_EXISTS:"ContainerAlreadyExists",CONTAINER_NOT_FOUND:"ContainerNotFound",INVALID_BLOB_OR_BLOCK:"InvalidBlobOrBlock",INVALID_BLOCK_LIST:"InvalidBlockList"},FileErrorCodeStrings:{SHARE_ALREADY_EXISTS:"ShareAlreadyExists",SHARE_NOT_FOUND:"ShareNotFound",FILE_NOT_FOUND:"FileNotFound"},QueueErrorCodeStrings:{QUEUE_NOT_FOUND:"QueueNotFound",QUEUE_DISABLED:"QueueDisabled",QUEUE_ALREADY_EXISTS:"QueueAlreadyExists",QUEUE_NOT_EMPTY:"QueueNotEmpty",QUEUE_BEING_DELETED:"QueueBeingDeleted",POP_RECEIPT_MISMATCH:"PopReceiptMismatch",INVALID_PARAMETER:"InvalidParameter",MESSAGE_NOT_FOUND:"MessageNotFound",MESSAGE_TOO_LARGE:"MessageTooLarge",INVALID_MARKER:"InvalidMarker"},StorageErrorCodeStrings:{CONDITION_NOT_MET:"ConditionNotMet",MISSING_REQUIRED_HEADER:"MissingRequiredHeader",MISSING_REQUIRED_XML_NODE:"MissingRequiredXmlNode",UNSUPPORTED_HEADER:"UnsupportedHeader",UNSUPPORTED_XML_NODE:"UnsupportedXmlNode",INVALID_HEADER_VALUE:"InvalidHeaderValue",INVALID_XML_NODE_VALUE:"InvalidXmlNodeValue",MISSING_REQUIRED_QUERY_PARAMETER:"MissingRequiredQueryParameter",UNSUPPORTED_QUERY_PARAMETER:"UnsupportedQueryParameter",INVALID_QUERY_PARAMETER_VALUE:"InvalidQueryParameterValue",OUT_OF_RANGE_QUERY_PARAMETER_VALUE:"OutOfRangeQueryParameterValue",REQUEST_URL_FAILED_TO_PARSE:"RequestUrlFailedToParse",INVALID_URI:"InvalidUri",INVALID_HTTP_VERB:"InvalidHttpVerb",EMPTY_METADATA_KEY:"EmptyMetadataKey",INVALID_XML_DOCUMENT:"InvalidXmlDocument",MD5_MISMATCH:"Md5Mismatch",INVALID_MD5:"InvalidMd5",OUT_OF_RANGE_INPUT:"OutOfRangeInput",INVALID_AUTHENTICATION_INFO:"InvalidAuthenticationInfo",INVALID_INPUT:"InvalidInput",INVALID_METADATA:"InvalidMetadata",INVALID_RESOURCE_NAME:"InvalidResourceName",METADATA_TOO_LARGE:"MetadataTooLarge",CONDITION_HEADER_NOT_SUPPORTED:"ConditionHeadersNotSupported",MULTIPLE_CONDITION_HEADER_NOT_SUPPORTED:"MultipleConditionHeadersNotSupported",AUTHENTICATION_FAILED:"AuthenticationFailed",INSUFFICIENT_ACCOUNT_PERMISSIONS:"InsufficientAccountPermissions",RESOURCE_NOT_FOUND:"ResourceNotFound",ACCOUNT_IS_DISABLED:"AccountIsDisabled",UNSUPPORTED_HTTP_VERB:"UnsupportedHttpVerb",ACCOUNT_ALREADY_EXISTS:"AccountAlreadyExists",ACCOUNT_BEING_CREATED:"AccountBeingCreated",RESOURCE_ALREADY_EXISTS:"ResourceAlreadyExists",RESOURCE_TYPE_MISMATCH:"ResourceTypeMismatch",MISSING_CONTENT_LENGTH_HEADER:"MissingContentLengthHeader",REQUEST_BODY_TOO_LARGE:"RequestBodyTooLarge",INVALID_RANGE:"InvalidRange",INTERNAL_ERROR:"InternalError",OPERATION_TIMED_OUT:"OperationTimedOut",SERVER_BUSY:"ServerBusy",UPDATE_CONDITION_NOT_SATISFIED:"UpdateConditionNotSatisfied",CONTAINER_NOT_FOUND:"ContainerNotFound",CONTAINER_ALREADY_EXISTS:"ContainerAlreadyExists",CONTAINER_DISABLED:"ContainerDisabled",CONTAINER_BEING_DELETED:"ContainerBeingDeleted"},TableErrorCodeStrings:{XMETHOD_NOT_USING_POST:"XMethodNotUsingPost",XMETHOD_INCORRECT_VALUE:"XMethodIncorrectValue",XMETHOD_INCORRECT_COUNT:"XMethodIncorrectCount",TABLE_HAS_NO_PROPERTIES:"TableHasNoProperties",DUPLICATE_PROPERTIES_SPECIFIED:"DuplicatePropertiesSpecified",TABLE_HAS_NO_SUCH_PROPERTY:"TableHasNoSuchProperty",DUPLICATE_KEY_PROPERTY_SPECIFIED:"DuplicateKeyPropertySpecified",TABLE_ALREADY_EXISTS:"TableAlreadyExists",TABLE_NOT_FOUND:"TableNotFound",ENTITY_NOT_FOUND:"EntityNotFound",ENTITY_ALREADY_EXISTS:"EntityAlreadyExists",PARTITION_KEY_NOT_SPECIFIED:"PartitionKeyNotSpecified",OPERATOR_INVALID:"OperatorInvalid",UPDATE_CONDITION_NOT_SATISFIED:"UpdateConditionNotSatisfied",PROPERTIES_NEED_VALUE:"PropertiesNeedValue",PARTITION_KEY_PROPERTY_CANNOT_BE_UPDATED:"PartitionKeyPropertyCannotBeUpdated",TOO_MANY_PROPERTIES:"TooManyProperties",ENTITY_TOO_LARGE:"EntityTooLarge",PROPERTY_VALUE_TOO_LARGE:"PropertyValueTooLarge",INVALID_VALUE_TYPE:"InvalidValueType",TABLE_BEING_DELETED:"TableBeingDeleted",TABLE_SERVER_OUT_OF_MEMORY:"TableServerOutOfMemory",PRIMARY_KEY_PROPERTY_IS_INVALID_TYPE:"PrimaryKeyPropertyIsInvalidType",PROPERTY_NAME_TOO_LONG:"PropertyNameTooLong",PROPERTY_NAME_INVALID:"PropertyNameInvalid",BATCH_OPERATION_NOT_SUPPORTED:"BatchOperationNotSupported",JSON_FORMAT_NOT_SUPPORTED:"JsonFormatNotSupported",METHOD_NOT_ALLOWED:"MethodNotAllowed",NOT_IMPLEMENTED:"NotImplemented"},ConnectionStringKeys:{USE_DEVELOPMENT_STORAGE_NAME:"UseDevelopmentStorage",DEVELOPMENT_STORAGE_PROXY_URI_NAME:"DevelopmentStorageProxyUri",DEFAULT_ENDPOINTS_PROTOCOL_NAME:"DefaultEndpointsProtocol",ACCOUNT_NAME_NAME:"AccountName",ACCOUNT_KEY_NAME:"AccountKey",BLOB_ENDPOINT_NAME:"BlobEndpoint",FILE_ENDPOINT_NAME:"FileEndpoint",QUEUE_ENDPOINT_NAME:"QueueEndpoint",TABLE_ENDPOINT_NAME:"TableEndpoint",SHARED_ACCESS_SIGNATURE_NAME:"SharedAccessSignature",ENDPOINT_SUFFIX_NAME:"EndpointSuffix",BLOB_BASE_DNS_NAME:"blob.core.windows.net",FILE_BASE_DNS_NAME:"file.core.windows.net",QUEUE_BASE_DNS_NAME:"queue.core.windows.net",TABLE_BASE_DNS_NAME:"table.core.windows.net"}};r.exports=i}).call(this,e("_process"))},{_process:176}],34:[function(e,t,i){i.daysFromNow=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},i.hoursFromNow=function(e){var t=new Date;return t.setHours(t.getHours()+e),t},i.minutesFromNow=function(e){var t=new Date;return t.setMinutes(t.getMinutes()+e),t},i.secondsFromNow=function(e){var t=new Date;return t.setSeconds(t.getSeconds()+e),t}},{}],35:[function(e,t,i){i.format=function(e){var t=e.toISOString();return t.substring(0,t.length-1)+"0000Z"},i.parse=function(e){var t=e.split("T"),i=t[0].split("-"),r=t[1].split("."),n=r[0].split(":"),a=0;return r[1]&&(a=r[1].split("Z")),new Date(Date.UTC(parseInt(i[0],10),parseInt(i[1],10)-1,parseInt(i[2],10),parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10),Math.round(parseInt(function(e,t){for(var i=""+e;i.length<t;)i+="0";return i}(a[0],7),10)/1e4)))}},{}],36:[function(e,t,i){"use strict";e("xmlbuilder/lib/XMLBuilder").prototype.assertLegalChar=function(e){var t,i;if(t=/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE-\uFFFF]/,i=e.match(t))throw new Error("Invalid character ("+i+") in string: "+e)}},{"xmlbuilder/lib/XMLBuilder":313}],37:[function(e,t,i){t.exports;t.exports={ANONYMOUS_ACCESS_BLOBSERVICE_ONLY:"Anonymous access is only valid for the BlobService.",ARGUMENT_NULL_OR_EMPTY:"The argument must not be null or an empty string. Argument name: %s.",ARGUMENT_NULL_OR_UNDEFINED:"The argument must not be null or undefined. Argument name: %s.",ARGUMENT_OUT_OF_RANGE_ERROR:"The argument is out of range. Argument name: %s, Value passed: %s.",BATCH_ONE_PARTITION_KEY:"All entities in the batch must have the same PartitionKey value.",BATCH_ONE_RETRIEVE:"If a retrieve operation is part of a batch, it must be the only operation in the batch.",BATCH_TOO_LARGE:"Batches must not contain more than 100 operations.",BLOB_INVALID_SEQUENCE_NUMBER:"The sequence number may not be specified for an increment operation.",BLOB_TYPE_MISMATCH:"Blob type of the blob reference doesn't match blob type of the blob.",CANNOT_CREATE_SAS_WITHOUT_ACCOUNT_KEY:"Cannot create Shared Access Signature unless the Account Name and Key are used to create the ServiceClient.",CONTENT_LENGTH_MISMATCH:"An incorrect number of bytes was read from the connection. The connection may have been closed.",CONTENT_TYPE_MISSING:"Content-Type response header is missing or invalid.",EMPTY_BATCH:"Batch must not be empty.",EXCEEDED_SIZE_LIMITATION:"Upload exceeds the size limitation. Max size is %s but the current size is %s",HASH_MISMATCH:"Hash mismatch (integrity check failed), Expected value is %s, retrieved %s.",INCORRECT_ENTITY_KEYS:"PartitionKey and RowKey must be specified as strings in the entity object.",INVALID_BLOB_LENGTH:"createBlockBlobFromText requires the size of text to be less than 64MB. Please use createBlockBlobFromLocalFile or createBlockBlobFromStream to upload large blobs.",INVALID_CONNECTION_STRING:'Connection strings must be of the form "key1=value1;key2=value2".',INVALID_CONNECTION_STRING_BAD_KEY:'Connection string contains unrecognized key: "%s"',INVALID_CONNECTION_STRING_DUPLICATE_KEY:'Connection string contains duplicate key: "%s"',INVALID_CONNECTION_STRING_EMPTY_KEY:"Connection strings must not contain empty keys.",INVALID_DELETE_SNAPSHOT_OPTION:"The deleteSnapshots option cannot be included when deleting a specific snapshot using the snapshotId option.",INVALID_EDM_TYPE:"The value '%s' does not match the type '%s'.",INVALID_FILE_LENGTH:"createFileFromText requires the size of text to be less than 4MB. Please use createFileFromLocalFile or createFileFromStream to upload large files.",INVALID_FILE_RANGE_FOR_UPDATE:"Range size should be less than 4MB for a file range update operation.",INVALID_HEADERS:"Headers are not supported in the 2012-02-12 version.",INVALID_MESSAGE_ID:"Message ID cannot be null or undefined for deleteMessage and updateMessage operations.",INVALID_PAGE_BLOB_LENGTH:"Page blob length must be multiple of 512.",INVALID_PAGE_END_OFFSET:"Page end offset must be multiple of 512.",INVALID_PAGE_RANGE_FOR_UPDATE:"Page range size should be less than 4MB for a page update operation.",INVALID_PAGE_START_OFFSET:"Page start offset must be multiple of 512.",INVALID_POP_RECEIPT:"Pop Receipt cannot be null or undefined for deleteMessage and updateMessage operations.",INVALID_PROPERTY_RESOLVER:"The specified property resolver returned an invalid type. %s:{_:%s,$:%s }",INVALID_RANGE_FOR_MD5:"The requested range should be less than 4MB when contentMD5 is expected from the server",INVALID_SAS_VERSION:"SAS Version ? is invalid. Valid versions include: ?.",INVALID_SAS_TOKEN:"The SAS token should not contain api-version.",INVALID_SIGNED_IDENTIFIERS:"Signed identifiers need to be a hash object with key as the id and the value as the access policy.",INVALID_STREAM_LENGTH:"The length of the provided stream is invalid.",INVALID_STRING_ERROR:"Invalid string error.",INVALID_TABLE_OPERATION:"Operation not found: %s",INVALID_TEXT_LENGTH:"The length of the provided text is invalid.",MAXIMUM_EXECUTION_TIMEOUT_EXCEPTION:"The client could not finish the operation within specified maximum execution timeout.",MD5_NOT_POSSIBLE:"MD5 cannot be calculated for an existing blob because it would require reading the existing data. Please disable storeBlobContentMD5.",MD5_NOT_PRESENT_ERROR:"MD5 does not exist. If you do not want to force validation, please disable useTransactionalMD5.",METADATA_KEY_INVALID:"The key for one of the metadata key-value pairs is null, empty, or whitespace.",METADATA_VALUE_INVALID:"The value for one of the metadata key-value pairs is null, empty, or whitespace.",NO_CREDENTIALS_PROVIDED:"Credentials must be provided when creating a service client.",PRIMARY_ONLY_COMMAND:"This operation can only be executed against the primary storage location.",QUERY_OPERATOR_REQUIRES_WHERE:"%s operator needs to be used after where.",SECONDARY_ONLY_COMMAND:"This operation can only be executed against the secondary storage location.",STORAGE_HOST_LOCATION_REQUIRED:"The host for the storage service must be specified.",STORAGE_HOST_MISSING_LOCATION:"The host for the target storage location is not specified. Please consider changing the request's location mode.",TYPE_NOT_SUPPORTED:"Type not supported when sending data to the service: ",MAX_BLOB_SIZE_CONDITION_NOT_MEET:"Append block data should not exceed the maximum blob size condition value."}},{}],38:[function(e,t,i){t.exports={LocationMode:{PRIMARY_ONLY:0,PRIMARY_THEN_SECONDARY:1,SECONDARY_ONLY:2,SECONDARY_THEN_PRIMARY:3}}},{}],39:[function(e,t,p){(function(t,l){var n=e("underscore"),i=e("util"),r=e("url"),a=e("stream"),u=e("./constants"),s=e("../md5-wrapper"),o=e("./storageutilities"),c=e("./sr");p.trimPortFromUri=function(e){return((e=r.parse(e)).protocol===u.HTTPS&&e.port==u.DEFAULT_HTTPS_PORT||e.protocol===u.HTTP&&e.port==u.DEFAULT_HTTP_PORT)&&(e.host=e.hostname),r.format(e)},p.objectKeysLength=function(e){return e?n.keys(e).length:0},p.isBrowser=function(){return"undefined"!=typeof window},p.isIE=function(){if(!p.isBrowser())return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),i=e.indexOf("Trident/");return 0<t||0<i},p.is32=function(){return!p.isBrowser()&&"ia32"===t.arch},p.objectIsNull=function(e){return n.isNull(e)||n.isUndefined(e)},p.objectIsEmpty=function(e){return n.isEmpty(e)},p.objectIsInt=function(e){return"number"==typeof e&&parseFloat(e)==parseInt(e,10)&&!isNaN(e)},p.objectIsNaN=function(e){return"number"==typeof e&&isNaN(e)},p.objectIsString=function(e){return n.isString(e)},p.objectIsFunction=function(e){return n.isFunction(e)},p.zeroPaddingString=function(e,t){var i="0000000000"+e;return i.length<t?p.zeroPaddingString(i,t):i.substr(-1*t)},p.stringIsEmpty=function(e){return n.isNull(e)||n.isUndefined(e)||""===e},p.IsNullOrEmptyOrUndefinedOrWhiteSpace=function(e){return!(!n.isNull(e)&&!n.isUndefined(e)&&""!==e)||!(!n.isString(e)||0!==e.trim().length)},p.stringFormat=function(e){if(1<arguments.length)for(var t=1;-1!==e.indexOf("?");t++)e=e.replace("?",arguments[t]);return e},p.stringStartsWith=function(e,t){return!!n.isNull(t)||e.substr(0,t.length)===t},p.stringEndsWith=function(e,t){return!!n.isNull(t)||e.substr(e.length-t.length)===t},p.removeBOM=function(e){return 65279!==e.charCodeAt(0)&&65519!==e.charCodeAt(0)||(e=e.substring(1)),e},p.merge=function(){return n.extend.apply(this,arguments)},p.inArrayInsensitive=function(e,t){return n.contains(n.map(t,function(e){return e.toLowerCase()}),e.toLowerCase())},p.tryGetValueInsensitive=function(e,t,i){if(t)for(var r in t)if(t.hasOwnProperty(r)&&r.toString().toLowerCase()===e.toString().toLowerCase())return t[r];return i},p.tryGetValueChain=function(e,t,i){if(0===t.length)return e;var r=t.shift();return e&&void 0!==e[r]?p.tryGetValueChain(e[r],t,i):i},p.setObjectInnerPropertyValue=function(e,t,i){if(e&&!(t.length<1)){var r=t.shift();0!==t.length?(e[r]||(e[r]={}),p.setObjectInnerPropertyValue(e[r],t,i)):e[r]=i}},p.truncatedISO8061Date=function(e){var t=e.toISOString();return t.substring(0,t.length-5)+"Z"},p.normalizeArgs=function(e,t,i){var r={};n.isFunction(e)&&!t?t=e:e&&(r=e),i(r,t)},p.getNodeVersion=function(){var e=t.version.split(".");return{major:parseInt(e[0].substr(1),10),minor:parseInt(e[1],10),patch:parseInt(e[2],10)}},p.calculateMD5=function(i,r,e,t){var n=new l(r),a=0,o=(new s).createMd5Hash();i.on("data",function(e){if(a+e.length>r){var t=r-a;0<t&&((e=e.slice(0,t)).copy(n,a),o.update(e),a+=t),i.emit("end")}else e.copy(n,a),o.update(e),a+=e.length}).on("end",function(){if(!i.endEmitted){n=n.slice(0,a);var e=o.digest("base64");i.endEmitted=!0,t(n,e)}})},p.isBufferAllZero=function(e){for(var t=0,i=e.length;t<i;t++)if(0!==e[t])return!1;return!0};var f=null;p.writeZerosToStream=function(e,t,i,r,n){var a=u.BlobConstants.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES,o=Math.min(a,t),s=t-o,c=null;return o==a?(f||(f=new l(a)).fill(0),c=f):(c=new l(o)).fill(0),i&&i.update(c),e.write(c,function(){p.objectIsFunction(r)&&r(null,c.length),c=null,0<s?p.writeZerosToStream(e,s,i,r,n):p.objectIsFunction(n)&&n(null,null)})},p.getContentMd5=function(e,t){t||(t="base64");var i=(new s).createMd5Hash();return i.update(e,"utf8"),i.digest(t)},p.getNextLocation=function(e,t){switch(t){case o.LocationMode.PRIMARY_ONLY:return u.StorageLocation.PRIMARY;case o.LocationMode.SECONDARY_ONLY:return u.StorageLocation.SECONDARY;case o.LocationMode.PRIMARY_THEN_SECONDARY:case o.LocationMode.SECONDARY_THEN_PRIMARY:return e===u.StorageLocation.PRIMARY?u.StorageLocation.SECONDARY:u.StorageLocation.PRIMARY;default:throw new RangeError(i.format(c.ARGUMENT_OUT_OF_RANGE_ERROR,"locationMode",t))}},p.getNextListingLocationMode=function(e){if(n.isNull(e)||n.isUndefined(e))return u.RequestLocationMode.PRIMARY_OR_SECONDARY;switch(e.targetLocation){case u.StorageLocation.PRIMARY:return u.RequestLocationMode.PRIMARY_ONLY;case u.StorageLocation.SECONDARY:return u.RequestLocationMode.SECONDARY_ONLY;default:throw new RangeError(i.format(c.ARGUMENT_OUT_OF_RANGE_ERROR,"targetLocation",e.targetLocation))}},p.isStreamPaused=function(e){return e instanceof a&&(!0===e._paused||e._readableState&&!1===e._readableState.flowing)},p.parseCopyProgress=function(e){if("string"!=typeof e||-1===e.indexOf("/"))return{};var t=e.split("/");return{bytesCopied:t[0],totalBytes:t[1]}};var d={"x-ms-blob-sequence-number":"sequenceNumber","content-Type":"contentSettings.contentType","content-Encoding":"contentSettings.contentEncoding","content-Language":"contentSettings.contentLanguage","cache-Control":"contentSettings.cacheControl","content-Disposition":"contentSettings.contentDisposition","content-MD5":"contentSettings.contentMD5",leaseId:"lease.id",leaseStatus:"lease.status",leaseDuration:"lease.duration",leaseState:"lease.state",copyId:"copy.id",copyStatus:"copy.status",copySource:"copy.source",copyProgress:"copy.progress",copyCompletionTime:"copy.completionTime",copyStatusDescription:"copy.statusDescription",copyDestinationSnapshot:"copy.destinationSnapshot",publicAccess:"publicAccessLevel",incrementalCopy:"isIncrementalCopy"};p.normalizePropertyNameFromXML=function(e){return this.IsNullOrEmptyOrUndefinedOrWhiteSpace(e)?"":(e=(e=e.trim())[0].toLowerCase()+e.substring(1))in d?d[e]:-1!=e.toLowerCase().indexOf("-")?e.replace("-",""):e},p.setPropertyValueFromXML=function(e,t,i){for(var r in t)if(t.hasOwnProperty(r)){if(i){var n=this.normalizePropertyNameFromXML(r).split(".");p.setObjectInnerPropertyValue(e,n,t[r])}else e[r.toLowerCase()]=t[r];if("copyprogress"===r.toLowerCase()){var a=this.parseCopyProgress(t[r]);p.setObjectInnerPropertyValue(e,["copy","bytesCopied"],parseInt(a.bytesCopied)),p.setObjectInnerPropertyValue(e,["copy","totalBytes"],parseInt(a.totalBytes))}}},p.filterOutNonReservedProperties=function(e,t){var i={};if(t)for(var r in t)if(t.hasOwnProperty(r)){var n=e.hasOwnProperty(r),a="function"==typeof t[r];n||a||(i[r]=t[r])}return i}}).call(this,e("_process"),e("buffer").Buffer)},{"../md5-wrapper":10,"./constants":33,"./sr":37,"./storageutilities":38,_process:176,buffer:100,stream:210,underscore:229,url:230,util:234}],40:[function(e,t,i){var n=e("underscore"),a=e("util"),r=e("./../util/constants").BlobConstants,o=e("./../../services/blob/blobutilities"),s=e("./../../services/file/fileutilities"),c=e("./util"),l=e("./sr"),u=e("validator"),f=e("../errors/errors"),d=f.ArgumentError,p=f.ArgumentNullError;function h(t,e){var i;t?i=function(e){return t(e),!1}:(i=function(e){throw e},t=function(){}),e(i,t)}(i=t.exports).isValidEnumValue=function(t,e,i){var r;return h(i,function(e,t){r=e,i=t}),e.some(function(e){return e.toLowerCase()===t.toLowerCase()})?(i(),!0):r(new RangeError(a.format("Invalid value: %s. Options are: %s.",t,e)))},i.isValidUri=function(e){if(!u.isURL(e,{require_tld:!1}))throw new URIError('The provided URI "'+e+'" is invalid.');return!0},i.isValidHost=function(e){if(c.objectIsNull(e))throw new p("host",l.STORAGE_HOST_LOCATION_REQUIRED);var t={};if(t.primaryHost=n.isString(e)?e:e.primaryHost,t.primaryHost&&!u.isURL(t.primaryHost,{require_tld:!1}))throw new URIError('The provided URI "'+t.primaryHost+'" is invalid.');if(t.secondaryHost=n.isString(e)?void 0:e.secondaryHost,t.secondaryHost&&!u.isURL(t.secondaryHost,{require_tld:!1}))throw new URIError('The provided URI "'+t.secondaryHost+'" is invalid.');if(!t.primaryHost&&!t.secondaryHost)throw new p("host",l.STORAGE_HOST_LOCATION_REQUIRED);return!0},i.isValidUuid=function(e,i){var r;return h(i,function(e,t){r=e,i=t}),/^[a-zA-Z0-9]{8}\-[a-zA-Z0-9]{4}\-[a-zA-Z0-9]{4}\-[a-zA-Z0-9]{4}\-[a-zA-Z0-9]{12}$/.test(e)?(i(),!0):r(new SyntaxError("The value is not a valid UUID format."))},i.isBase64Encoded=function(e){if(e.match(/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/))return!0;throw new SyntaxError("The provided account key "+e+" is not a valid base64 string.")},i.isValidFunction=function(e,t){if(!e)throw new p("functionObject",t+" must be specified.");if(!n.isFunction(e))throw new TypeError(t+" specified should be a function.");return!0};var m=function(e,t){return c.stringIsEmpty(e)?new p("name",a.format("%s name must be a non empty string.",t)):e.length<3||63<e.length?new d("name",a.format("%s name must be between 3 and 63 characters long.",t)):null===e.match(/^([a-z0-9]+(-[a-z0-9]+)*)$/)?new SyntaxError(a.format("%s name format is incorrect.",t)):null};function b(e,t){throw new p(e,"Required argument "+e+" for function "+t+" is not defined")}function g(e){this.func=e}i.containerNameIsValid=function(e,i){var r;h(i,function(e,t){r=e,i=t});var t=m(e,"Container");return!t||e.match(/^(\$root|\$logs|\$web)$/)?(i(),!0):r(t)},i.blobNameIsValid=function(e,t,i){var r;return h(i,function(e,t){r=e,i=t}),t?"$root"===e&&-1!==t.indexOf("/")?r(new SyntaxError("Blob name format is incorrect.")):(i(),!0):r(new p("blobName","Blob name is not specified."))},i.blobTierNameIsValid=function(e,i){var r;return h(i,function(e,t){r=e,i=t}),e?n.chain(n.union(n.values(o.BlobTier.PremiumPageBlobTier),n.values(o.BlobTier.StandardBlobTier))).map(function(e){return e.toString().toUpperCase()}).contains(e.toString().toUpperCase()).value()?(i(),!0):r(new SyntaxError("Blob tier is incorrect. Refer to BlobUtilities.BlobTier for possible values.")):r(new p("blobTier","Blob tier is not specified."))},i.shareNameIsValid=function(e,i){var r;h(i,function(e,t){r=e,i=t});var t=m(e,"Share");return t?r(t):(i(),!0)},i.queueNameIsValid=function(e,i){var r;h(i,function(e,t){r=e,i=t});var t=m(e,"Queue");return t?r(t):(i(),!0)},i.tableNameIsValid=function(e,i){var r;return h(i,function(e,t){r=e,i=t}),c.stringIsEmpty(e)?r(new p("table","Table name must be a non empty string.")):e.length<3||63<e.length?r(new d("table","Table name must be between 3 and 63 characters long.")):"tables"===e.toLowerCase()?r(new RangeError("Table name cannot be 'Tables'.")):null!==e.match(/^([A-Za-z][A-Za-z0-9]{2,62})$/)||"$MetricsCapacityBlob"===e||null!==e.match(/^(\$Metrics(HourPrimary|MinutePrimary|HourSecondary|MinuteSecondary)?(Transactions)(Blob|Queue|Table|File))$/)?(i(),!0):r(new SyntaxError("Table name format is incorrect."))},i.browserFileIsValid=function(e,i){var r;return h(i,function(e,t){r=e,i=t}),c.isBrowser()&&e&&e.constructor&&(c.isIE()||e.constructor.name)&&(c.isIE()||"File"===e.constructor.name||"Blob"===e.constructor.name)&&c.objectIsInt(e.size)?(i(),!0):r(new d("type","Invalid HTML File object."))},i.pageRangesAreValid=function(e,t,i,r){var n;if(h(r,function(e,t){n=e,r=t}),e%512!=0)return n(new RangeError("Start byte offset must be a multiple of 512."));if(!c.objectIsNull(t)){if((t+1)%512!=0)return n(new RangeError("End byte offset must be a multiple of 512 minus 1."));if(i<t-e+1)return n(new RangeError("Page blob size cannot be larger than "+i+" bytes."))}return r(),!0},i.blobTypeIsValid=function(e,t){return this.isValidEnumValue(e,function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(e[i]);return t}(r.BlobTypes),t)},i.shareACLIsValid=function(e,i){var r;return h(i,function(e,t){r=e,i=t}),e!=s.SharePublicAccessType.OFF&&r(new d("type","The access type is not supported.")),i(),!0},i.shareQuotaIsValid=function(e,i){var r;return h(i,function(e,t){r=e,i=t}),e&&e<=0&&r(new RangeError("The share quota value, in GB, must be greater than 0.")),i(),!0},n.extend(g.prototype,{string:function(e,t){if(this.exists(e,t),"string"!=typeof e)throw new TypeError("Parameter "+t+" for function "+this.func+" should be a non-empty string")},stringAllowEmpty:function(e,t){if("string"!=typeof e)throw new TypeError("Parameter "+t+" for function "+this.func+" should be a string")},object:function(e,t){if(this.exists(e,t),"object"!=typeof e)throw new TypeError("Parameter "+t+" for function "+this.func+" should be an object")},exists:function(e,t){e||b(t,this.func)},function:function(e,t){if(this.exists(e,t),"function"!=typeof e)throw new TypeError("Parameter "+t+" for function "+this.func+" should be a function")},value:function(e,t){e||0===e||b(t,this.func)},nonEmptyArray:function(e,t){if(!e||0===e.length)throw new TypeError("Required array argument "+t+" for function "+this.func+" is either not defined or empty")},callback:function(e){this.exists(e,"callback"),this.function(e,"callback")},test:function(e,t){if(!e())throw new Error(t+" in function "+this.func)},tableNameIsValid:i.tableNameIsValid,browserFileIsValid:i.browserFileIsValid,containerNameIsValid:i.containerNameIsValid,shareNameIsValid:i.shareNameIsValid,blobNameIsValid:i.blobNameIsValid,blobTierNameIsValid:i.blobTierNameIsValid,pageRangesAreValid:i.pageRangesAreValid,queueNameIsValid:i.queueNameIsValid,blobTypeIsValid:i.blobTypeIsValid,shareACLIsValid:i.shareACLIsValid,shareQuotaIsValid:i.shareQuotaIsValid,isValidEnumValue:i.isValidEnumValue}),i.ArgumentValidator=g,i.validateArgs=function(e,t){t(new g(e))}},{"../errors/errors":5,"./../../services/blob/blobutilities":43,"./../../services/file/fileutilities":50,"./../util/constants":33,"./sr":37,"./util":39,underscore:229,util:234,validator:240}],41:[function(e,t,i){var r=e("./blobservice.core"),n=e("./../../common/common.browser"),f=e("extend"),d=e("browserify-mime"),a=n.Constants,p=n.util,c=a.BlobConstants,h=n.BrowserFileReadStream,m=n.SpeedSummary,b=n.validate;r.prototype.createBlockBlobFromBrowserFile=function(e,t,i,r,n){return this._createBlobFromBrowserFile(e,t,c.BlobTypes.BLOCK,i,r,n)},r.prototype.createPageBlobFromBrowserFile=function(e,t,i,r,n){return this._createBlobFromBrowserFile(e,t,c.BlobTypes.PAGE,i,r,n)},r.prototype.createAppendBlobFromBrowserFile=function(e,t,i,r,n){return this._createBlobFromBrowserFile(e,t,c.BlobTypes.APPEND,i,r,n)},r.prototype.appendFromBrowserFile=function(t,i,r,e,n){var a;p.normalizeArgs(e,n,function(e,t){a=e,n=t}),b.validateArgs("appendFromBrowserFile",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.browserFileIsValid(r),e.callback(n)});var o=f(!0,{},a);o.speedSummary=o.speedSummary||new m(i);var s=new h(r);return this._uploadBlobFromStream(!1,t,i,c.BlobTypes.APPEND,s,r.size,o,function(e,t,i){p.objectIsFunction(s.destroy)&&s.destroy(),n(e,t,i)}),o.speedSummary},r.prototype._createBlobFromBrowserFile=function(n,a,o,s,e,c){var i;p.normalizeArgs(e,c,function(e,t){i=e,c=t}),b.validateArgs("_createBlobFromBrowserFile",function(e){e.string(n,"container"),e.string(a,"blob"),e.containerNameIsValid(n),e.blobTypeIsValid(o),e.browserFileIsValid(s),e.callback(c)});var l=f(!0,{},i);l.speedSummary=l.speedSummary||new m(a);var u=this;return this._createBlob(n,a,o,s.size,l,function(e,t,i){if(e)c(e,t,i);else{void 0===p.tryGetValueChain(l,["contentSettings","contentType"],void 0)&&p.setObjectInnerPropertyValue(l,["contentSettings","contentType"],d.lookup(s.name));var r=new h(s);u._uploadBlobFromStream(!0,n,a,o,r,s.size,l,function(e,t,i){p.objectIsFunction(r.destroy)&&r.destroy(),c(e,t,i)})}}),l.speedSummary},t.exports=r},{"./../../common/common.browser":2,"./blobservice.core":42,"browserify-mime":90,extend:138}],42:[function(i,r,e){(function(d){var c=i("querystring"),u=i("url"),T=i("util"),l=i("underscore"),I=i("extend"),e=i("./../../common/common.core"),v=i("./internal/blockrangestream"),_=i("./../../common/md5-wrapper"),y=i("./internal/pagerangestream"),E=i("./../../common/streams/rangestream"),N=e.util,R=e.SR,w=e.validate,s=e.StorageServiceClient,p=e.WebResource,f=e.Constants,O=f.BlobConstants,h=f.HeaderConstants,m=f.QueryStringConstants,b=f.RequestLocationMode,M=e.BatchOperation,C=e.SpeedSummary,L=e.ChunkAllocator,g=e.ChunkStream,S=e.ChunkStreamWithStream,x=e.AclResult,n=e.ServiceStatsParser,A=i("../../common/models/accountpropertiesresult"),k=i("./models/blocklistresult"),P=i("./models/blobresult"),B=i("./models/containerresult"),D=i("./models/leaseresult"),U=i("./blobutilities"),t=i("../../common/errors/errors"),j=t.ArgumentError,F=t.ArgumentNullError,a=t.StorageError;function H(e,t,i,r,n,a){var o=s.getStorageSettings(e,t,i,r,n,a);H.super_.call(this,o._name,o._key,o._blobEndpoint,o._usePathStyleUri,o._sasToken,a),this.defaultEnableReuseSocket=f.DEFAULT_ENABLE_REUSE_SOCKET,this.singleBlobPutThresholdInBytes=O.DEFAULT_SINGLE_BLOB_PUT_THRESHOLD_IN_BYTES,this.parallelOperationThreadCount=f.DEFAULT_PARALLEL_OPERATION_THREAD_COUNT}function q(e,t,i){return t&&!i&&(t=(t=(t=(t=encodeURIComponent(t)).replace(/%2F/g,"/")).replace(/%5C/g,"/")).replace(/\+/g,"%20")),t?e+"/"+t:e}T.inherits(H,s),H.prototype.getServiceStats=function(e,i){var r;N.normalizeArgs(e,i,function(e,t){r=e,i=t}),w.validateArgs("getServiceStats",function(e){e.callback(i)});var t=p.get().withQueryOption(m.COMP,"stats").withQueryOption(m.RESTYPE,"service");r.requestLocationMode=b.PRIMARY_OR_SECONDARY;this.performRequest(t,null,r,function(e,t){e.serviceStatsResult=null,e.error||(e.serviceStatsResult=n.parse(e.response.body.StorageServiceStats));t(e,function(e){i(e.error,e.serviceStatsResult,e.response)})})},H.prototype.getServiceProperties=function(e,t){return this.getAccountServiceProperties(e,t)},H.prototype.getAccountProperties=function(e,t,i,r){var n;N.normalizeArgs(i,r,function(e,t){n=e,r=t}),w.validateArgs("getAccountProperties",function(e){e.callback(r)});var a=I(!0,{},n),o=p.head(q(e,t)).withQueryOption(m.COMP,"properties").withQueryOption(m.RESTYPE,"account");a.requestLocationMode=b.PRIMARY_OR_SECONDARY;this.performRequest(o,null,a,function(e,t){e.accountPropertiesResult=null,e.error||(e.accountPropertiesResult=A.parse(e.response.headers));t(e,function(e){r(e.error,e.accountPropertiesResult,e.response)})})},H.prototype.setServiceProperties=function(e,t,i){return this.setAccountServiceProperties(e,t,i)},H.prototype.setBlobTier=function(t,i,r,e,n){var a;N.normalizeArgs(e,n,function(e,t){a=e,n=t}),w.validateArgs("setBlobTier",function(e){e.string(t,"container"),e.string(i,"blob"),e.string(r,"blobTier"),e.containerNameIsValid(t),e.blobNameIsValid(t,i),e.blobTierNameIsValid(r),e.callback(n)});var o=I(!0,{},a),s=q(t,i),c=p.put(s).withQueryOption(m.COMP,"tier").withHeader(h.ACCESS_TIER,r);this.performRequest(c,null,o,function(e,t){t(e,function(e){n(e.error,e.response)})})},H.prototype.listContainersSegmented=function(e,t,i){this.listContainersSegmentedWithPrefix(null,e,t,i)},H.prototype.listContainersSegmentedWithPrefix=function(e,t,i,r){var n;N.normalizeArgs(i,r,function(e,t){n=e,r=t}),w.validateArgs("listContainers",function(e){e.callback(r)});var a=I(!0,{},n),o=p.get().withQueryOption(m.COMP,"list").withQueryOption(m.MAX_RESULTS,a.maxResults).withQueryOption(m.INCLUDE,a.include);N.objectIsNull(t)||o.withQueryOption(m.MARKER,t.nextMarker),o.withQueryOption(m.PREFIX,e),a.requestLocationMode=N.getNextListingLocationMode(t);this.performRequest(o,null,a,function(i,e){if(i.listContainersResult=null,!i.error){i.listContainersResult={entries:null,continuationToken:null},i.listContainersResult.entries=[];var t=[];i.response.body.EnumerationResults.Containers&&i.response.body.EnumerationResults.Containers.Container&&(t=i.response.body.EnumerationResults.Containers.Container,l.isArray(t)||(t=[t])),t.forEach(function(e){var t=B.parse(e);i.listContainersResult.entries.push(t)}),i.response.body.EnumerationResults.NextMarker&&(i.listContainersResult.continuationToken={nextMarker:null,targetLocation:null},i.listContainersResult.continuationToken.nextMarker=i.response.body.EnumerationResults.NextMarker,i.listContainersResult.continuationToken.targetLocation=i.targetLocation)}e(i,function(e){r(e.error,e.listContainersResult,e.response)})})},H.prototype.doesContainerExist=function(t,e,i){var r;N.normalizeArgs(e,i,function(e,t){r=e,i=t}),w.validateArgs("doesContainerExist",function(e){e.string(t,"container"),e.containerNameIsValid(t),e.callback(i)});var n=I(!0,{},r);this._doesContainerExist(t,!1,n,i)},H.prototype.createContainer=function(i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("createContainer",function(e){e.string(i,"container"),e.test(function(){return"$logs"!==i},"Container name format is incorrect"),e.containerNameIsValid(i),e.callback(r)});var a=I(!0,{},n),t=p.put(i).withQueryOption(m.RESTYPE,"container");t.addOptionalMetadataHeaders(a.metadata),t.withHeader(h.BLOB_PUBLIC_ACCESS,a.publicAccessLevel);this.performRequest(t,null,a,function(e,t){e.containerResult=null,e.error||(e.containerResult=new B(i),e.containerResult.getPropertiesFromHeaders(e.response.headers),a.metadata&&(e.containerResult.metadata=a.metadata));t(e,function(e){r(e.error,e.containerResult,e.response)})})},H.prototype.createContainerIfNotExists=function(n,e,a){var i;N.normalizeArgs(e,a,function(e,t){i=e,a=t}),w.validateArgs("createContainerIfNotExists",function(e){e.string(n,"container"),e.containerNameIsValid(n),e.callback(a)});var o=I(!0,{},i),s=this;s._doesContainerExist(n,!0,o,function(e,t,i){var r=t.exists;t.created=!1,delete t.exists,e?a(e,t,i):r?(i.isSuccessful=!0,a(e,t,i)):s.createContainer(n,o,function(e,t,i){e?e&&e.statusCode===f.HttpConstants.HttpResponseCodes.Conflict&&e.code===f.BlobErrorCodeStrings.CONTAINER_ALREADY_EXISTS&&(e=null,i.isSuccessful=!0):t.created=!0,a(e,t,i)})})},H.prototype.getContainerProperties=function(i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("getContainerProperties",function(e){e.string(i,"container"),e.containerNameIsValid(i),e.callback(r)});var t=I(!0,{},n),a=p.head(i).withQueryOption(m.RESTYPE,"container").withHeader(h.LEASE_ID,t.leaseId);t.requestLocationMode=f.RequestLocationMode.PRIMARY_OR_SECONDARY;var o=this;this.performRequest(a,null,t,function(e,t){e.containerResult=null,e.error||(e.containerResult=new B(i),e.containerResult.metadata=o.parseMetadataHeaders(e.response.headers),e.containerResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){r(e.error,e.containerResult,e.response)})})},H.prototype.getContainerMetadata=function(i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("getContainerMetadata",function(e){e.string(i,"container"),e.containerNameIsValid(i),e.callback(r)});var t=I(!0,{},n),a=p.head(i).withQueryOption(m.RESTYPE,"container").withQueryOption(m.COMP,"metadata").withHeader(h.LEASE_ID,t.leaseId);t.requestLocationMode=f.RequestLocationMode.PRIMARY_OR_SECONDARY;var o=this;this.performRequest(a,null,t,function(e,t){e.containerResult=null,e.error||(e.containerResult=new B(i),e.containerResult.metadata=o.parseMetadataHeaders(e.response.headers),e.containerResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){r(e.error,e.containerResult,e.response)})})},H.prototype.setContainerMetadata=function(i,t,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("setContainerMetadata",function(e){e.string(i,"container"),e.object(t,"metadata"),e.containerNameIsValid(i),e.callback(r)});var a=I(!0,{},n),o=p.put(i).withQueryOption(m.RESTYPE,"container").withQueryOption(m.COMP,"metadata").withHeader(h.LEASE_ID,a.leaseId);o.addOptionalMetadataHeaders(t);this.performRequest(o,null,a,function(e,t){e.containerResult=null,e.error||(e.containerResult=new B(i),e.containerResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){r(e.error,e.containerResult,e.response)})})},H.prototype.getContainerAcl=function(i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("getContainerAcl",function(e){e.string(i,"container"),e.containerNameIsValid(i),e.callback(r)});var t=I(!0,{},n),a=p.get(i).withQueryOption(m.RESTYPE,"container").withQueryOption(m.COMP,"acl").withHeader(h.LEASE_ID,t.leaseId);t.requestLocationMode=f.RequestLocationMode.PRIMARY_OR_SECONDARY;this.performRequest(a,null,t,function(e,t){e.containerResult=null,e.error||(e.containerResult=new B(i),e.containerResult.getPropertiesFromHeaders(e.response.headers),e.containerResult.signedIdentifiers=x.parse(e.response.body));t(e,function(e){r(e.error,e.containerResult,e.response)})})},H.prototype.setContainerAcl=function(i,r,e,n){var a;N.normalizeArgs(e,n,function(e,t){a=e,n=t}),w.validateArgs("setContainerAcl",function(e){e.string(i,"container"),e.containerNameIsValid(i),e.callback(n)});var o=I(!0,{},a),t=null;if(r){if(l.isArray(r))throw new TypeError(R.INVALID_SIGNED_IDENTIFIERS);t=x.serialize(r)}var s=p.put(i).withQueryOption(m.RESTYPE,"container").withQueryOption(m.COMP,"acl").withHeader(h.CONTENT_LENGTH,N.objectIsNull(t)?0:d.byteLength(t)).withHeader(h.BLOB_PUBLIC_ACCESS,o.publicAccessLevel).withHeader(h.LEASE_ID,o.leaseId).withBody(t);this.performRequest(s,s.body,o,function(e,t){e.containerResult=null,e.error||(e.containerResult=new B(i,o.publicAccessLevel),e.containerResult.getPropertiesFromHeaders(e.response.headers),r&&(e.containerResult.signedIdentifiers=r));t(e,function(e){n(e.error,e.containerResult,e.response)})})},H.prototype.deleteContainer=function(t,e,i){var r;N.normalizeArgs(e,i,function(e,t){r=e,i=t}),w.validateArgs("deleteContainer",function(e){e.string(t,"container"),e.containerNameIsValid(t),e.callback(i)});var n=I(!0,{},r),a=p.del(t).withQueryOption(m.RESTYPE,"container").withHeader(h.LEASE_ID,n.leaseId);this.performRequest(a,null,n,function(e,t){t(e,function(e){i(e.error,e.response)})})},H.prototype.deleteContainerIfExists=function(r,e,n){var i;N.normalizeArgs(e,n,function(e,t){i=e,n=t}),w.validateArgs("deleteContainerIfExists",function(e){e.string(r,"container"),e.containerNameIsValid(r),e.callback(n)});var a=I(!0,{},i),o=this;o._doesContainerExist(r,!0,a,function(e,t,i){e?n(e,t.exists,i):t.exists?o.deleteContainer(r,a,function(e,t){var i;e?e&&e.statuscode===f.HttpConstants.HttpResponseCodes.NotFound&&e.code===f.BlobErrorCodeStrings.CONTAINER_NOT_FOUND&&(i=!1,e=null,t.isSuccessful=!0):i=!0,n(e,i,t)}):(i.isSuccessful=!0,n(e,!1,i))})},H.prototype.listBlobDirectoriesSegmented=function(e,t,i,r){this.listBlobDirectoriesSegmentedWithPrefix(e,null,t,i,r)},H.prototype.listBlobDirectoriesSegmentedWithPrefix=function(e,t,i,r,n){var a;N.normalizeArgs(r,n,function(e,t){a=e,n=t}),a.delimiter="/",this._listBlobsOrDircotriesSegmentedWithPrefix(e,t,i,O.ListBlobTypes.Directory,a,n)},H.prototype.listBlobsSegmented=function(e,t,i,r){this.listBlobsSegmentedWithPrefix(e,null,t,i,r)},H.prototype.listBlobsSegmentedWithPrefix=function(e,t,i,r,n){this._listBlobsOrDircotriesSegmentedWithPrefix(e,t,i,O.ListBlobTypes.Blob,r,n)},H.prototype.acquireLease=function(t,e,i,r){var n;N.normalizeArgs(i,r,function(e,t){n=e,r=t}),w.validateArgs("acquireLease",function(e){e.string(t,"container"),e.containerNameIsValid(t),e.callback(r)});var a=I(!0,{},n);a.leaseDuration||(a.leaseDuration=-1),this._leaseImpl(t,e,null,O.LeaseOperation.ACQUIRE,a,r)},H.prototype.renewLease=function(t,e,i,r,n){var a;N.normalizeArgs(r,n,function(e,t){a=e,n=t}),w.validateArgs("renewLease",function(e){e.string(t,"container"),e.containerNameIsValid(t),e.callback(n)});var o=I(!0,{},a);this._leaseImpl(t,e,i,O.LeaseOperation.RENEW,o,n)},H.prototype.changeLease=function(t,e,i,r,n,a){var o;N.normalizeArgs(n,a,function(e,t){o=e,a=t}),w.validateArgs("changeLease",function(e){e.string(t,"container"),e.containerNameIsValid(t),e.callback(a)});var s=I(!0,{},o);s.proposedLeaseId=r,this._leaseImpl(t,e,i,O.LeaseOperation.CHANGE,s,a)},H.prototype.releaseLease=function(t,e,i,r,n){var a;N.normalizeArgs(r,n,function(e,t){a=e,n=t}),w.validateArgs("releaseLease",function(e){e.string(t,"container"),e.containerNameIsValid(t),e.callback(n)});var o=I(!0,{},a);this._leaseImpl(t,e,i,O.LeaseOperation.RELEASE,o,n)},H.prototype.breakLease=function(t,e,i,r){var n;N.normalizeArgs(i,r,function(e,t){n=e,r=t}),w.validateArgs("breakLease",function(e){e.string(t,"container"),e.containerNameIsValid(t),e.callback(r)});var a=I(!0,{},n);this._leaseImpl(t,e,null,O.LeaseOperation.BREAK,a,r)},H.prototype.getBlobProperties=function(i,r,e,n){var a;N.normalizeArgs(e,n,function(e,t){a=e,n=t}),w.validateArgs("getBlobProperties",function(e){e.string(i,"container"),e.string(r,"blob"),e.containerNameIsValid(i),e.callback(n)});var t=I(!0,{},a),o=q(i,r),s=p.head(o);t.snapshotId&&s.withQueryOption(m.SNAPSHOT,t.snapshotId),P.setHeadersFromBlob(s,t),t.requestLocationMode=f.RequestLocationMode.PRIMARY_OR_SECONDARY;var c=this;this.performRequest(s,null,t,function(e,t){e.blobResult=null,e.error||(e.blobResult=new P(i,r),e.blobResult.metadata=c.parseMetadataHeaders(e.response.headers),e.blobResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){n(e.error,e.blobResult,e.response)})})},H.prototype.getBlobMetadata=function(i,r,e,n){var a;N.normalizeArgs(e,n,function(e,t){a=e,n=t}),w.validateArgs("getBlobMetadata",function(e){e.string(i,"container"),e.string(r,"blob"),e.containerNameIsValid(i),e.callback(n)});var t=I(!0,{},a),o=q(i,r),s=p.head(o);s.withQueryOption(m.COMP,"metadata"),s.withQueryOption(m.SNAPSHOT,t.snapshotId),P.setHeadersFromBlob(s,t),t.requestLocationMode=f.RequestLocationMode.PRIMARY_OR_SECONDARY;var c=this;this.performRequest(s,null,t,function(e,t){e.blobResult=null,e.error||(e.blobResult=new P(i,r),e.blobResult.metadata=c.parseMetadataHeaders(e.response.headers),e.blobResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){n(e.error,e.blobResult,e.response)})})},H.prototype.setBlobProperties=function(t,i,e,r,n){var a;N.normalizeArgs(r,n,function(e,t){a=e,n=t}),w.validateArgs("setBlobProperties",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(n)});var o=I(!0,{contentSettings:e},a),s=q(t,i),c=p.put(s).withQueryOption(m.COMP,"properties");P.setPropertiesFromBlob(c,o),this._setBlobPropertiesHelper({webResource:c,options:o,container:t,blob:i,callback:n})},H.prototype.setBlobMetadata=function(i,r,t,e,n){var a;N.normalizeArgs(e,n,function(e,t){a=e,n=t}),w.validateArgs("setBlobMetadata",function(e){e.string(i,"container"),e.string(r,"blob"),e.object(t,"metadata"),e.containerNameIsValid(i),e.callback(n)});var o=I(!0,{},a),s=q(i,r),c=p.put(s).withQueryOption(m.COMP,"metadata");c.withQueryOption(m.SNAPSHOT,o.snapshotId),o.metadata=t,P.setHeadersFromBlob(c,o);this.performRequest(c,null,o,function(e,t){e.blobResult=null,e.error||(e.blobResult=new P(i,r),e.blobResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){n(e.error,e.blobResult,e.response)})})},H.prototype.createReadStream=function(t,i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("createReadStream",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t)});var a=new g;return this.getBlobToStream(t,i,a,n,function(e,t,i){e&&a.emit("error",e),r&&r(e,t,i)}),a},H.prototype.getBlobToStream=function(n,a,o,e,s){var i;N.normalizeArgs(e,s,function(e,t){i=e,s=t}),i.speedSummary=i.speedSummary||new C(a),w.validateArgs("getBlobToStream",function(e){e.string(n,"container"),e.string(a,"blob"),e.object(o,"writeStream"),e.containerNameIsValid(n),e.callback(s)});var c=I(!0,{},i),t={timeoutIntervalInMs:c.timeoutIntervalInMs,clientRequestTimeoutInMs:c.clientRequestTimeoutInMs,snapshotId:c.snapshotId,accessConditions:c.accessConditions};if(c.skipSizeCheck)this._getBlobToStream(n,a,o,c,s);else{var l=this;this.getBlobProperties(n,a,t,function(e,t){if(e)s(e);else{var i;if(c.rangeStart){var r=t.contentLength-1;i=(c.rangeEnd?Math.min(c.rangeEnd,r):r)-c.rangeStart+1}else i=t.contentLength;(c.speedSummary.totalSize=i)>l.singleBlobPutThresholdInBytes?(N.setObjectInnerPropertyValue(c,["contentSettings","contentMD5"],N.tryGetValueChain(t,["contentSettings","contentMD5"],null)),l._getBlobToRangeStream(n,a,t.blobType,o,c,s)):l._getBlobToStream(n,a,o,c,s)}})}return c.speedSummary},H.prototype.getBlobToText=function(i,r,e,n){var a;N.normalizeArgs(e,n,function(e,t){a=e,n=t}),w.validateArgs("getBlobToText",function(e){e.string(i,"container"),e.string(r,"blob"),e.containerNameIsValid(i),e.callback(n)});var o=I(!0,{},a),t=q(i,r),s=p.get(t).withRawResponse();s.withQueryOption(m.SNAPSHOT,o.snapshotId),P.setHeadersFromBlob(s,o),this._setRangeContentMD5Header(s,o),o.requestLocationMode=f.RequestLocationMode.PRIMARY_OR_SECONDARY;var c=this;this.performRequest(s,null,o,function(e,t){e.text=null,e.blobResult=null,e.error||(e.blobResult=new P(i,r),e.blobResult.metadata=c.parseMetadataHeaders(e.response.headers),e.blobResult.getPropertiesFromHeaders(e.response.headers),e.text=e.response.body,c._validateLengthAndMD5(o,e));t(e,function(e){n(e.error,e.text,e.blobResult,e.response)})})},H.prototype.deleteBlob=function(t,i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("deleteBlob",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(r)});var a=I(!0,{},n),o=q(t,i),s=p.del(o).withHeader(h.LEASE_ID,a.leaseId);if(!N.objectIsNull(a.snapshotId)&&!N.objectIsNull(a.deleteSnapshots))throw new j("options",R.INVALID_DELETE_SNAPSHOT_OPTION);s.withQueryOption(m.SNAPSHOT,a.snapshotId),s.withHeader(h.DELETE_SNAPSHOT,a.deleteSnapshots),P.setHeadersFromBlob(s,a);this.performRequest(s,null,a,function(e,t){t(e,function(e){r(e.error,e.response)})})},H.prototype.undeleteBlob=function(t,i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("deleteBlob",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(r)});var a=I(!0,{},n),o=q(t,i),s=p.put(o).withQueryOption(m.COMP,"undelete");P.setHeadersFromBlob(s,a);this.performRequest(s,null,a,function(e,t){t(e,function(e){r(e.error,e.response)})})},H.prototype.doesBlobExist=function(t,i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("doesBlobExist",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(r)});var a=I(!0,{},n);this._doesBlobExist(t,i,!1,a,r)},H.prototype.deleteBlobIfExists=function(r,n,e,a){var i;N.normalizeArgs(e,a,function(e,t){i=e,a=t}),w.validateArgs("deleteBlobIfExists",function(e){e.string(r,"container"),e.string(n,"blob"),e.containerNameIsValid(r),e.callback(a)});var o=I(!0,{},i),s=this;s._doesBlobExist(r,n,!0,o,function(e,t,i){e?a(e,t.exists,i):t.exists?s.deleteBlob(r,n,o,function(e,t){var i;e?e&&e.statusCode===f.HttpConstants.HttpResponseCodes.NotFound&&e.code===f.BlobErrorCodeStrings.BLOB_NOT_FOUND&&(i=!1,e=null,t.isSuccessful=!0):i=!0,a(e,i,t)}):(i.isSuccessful=!0,a(e,!1,i))})},H.prototype.createBlobSnapshot=function(t,i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("createBlobSnapshot",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(r)});var a=I(!0,{},n),o=q(t,i),s=p.put(o).withQueryOption(m.COMP,"snapshot");P.setHeadersFromBlob(s,a);this.performRequest(s,null,a,function(e,t){e.snapshotId=null,e.error||(e.snapshotId=e.response.headers[h.SNAPSHOT]);t(e,function(e){r(e.error,e.snapshotId,e.response)})})},H.prototype.startCopyBlob=function(t,i,r,e,n){var a;N.normalizeArgs(e,n,function(e,t){a=e,n=t}),w.validateArgs("startCopyBlob",function(e){e.string(t,"sourceUri"),e.string(i,"targetContainer"),e.string(r,"targetBlob"),e.containerNameIsValid(i),e.callback(n)});var o=q(i,r),s=I(!0,{},a);if(s.snapshotId){var c=u.parse(t,!0);if(c.query.snapshot)throw new j("options.snapshotId","Duplicate snapshot supplied in both the source uri and option.");c.search=void 0,c.query.snapshot=s.snapshotId,t=u.format(c)}var l=p.put(o).withHeader(h.COPY_SOURCE,t);s.isIncrementalCopy&&l.withQueryOption(m.COMP,"incrementalcopy"),l.withHeader(h.ACCESS_TIER,s.blobTier),l.withHeader(h.LEASE_ID,s.leaseId),l.withHeader(h.SOURCE_LEASE_ID,s.sourceLeaseId),l.addOptionalMetadataHeaders(s.metadata);this.performRequest(l,null,s,function(e,t){e.blobResult=null,e.error||(e.blobResult=new P(i,r),e.blobResult.getPropertiesFromHeaders(e.response.headers),s.metadata&&(e.blobResult.metadata=s.metadata));t(e,function(e){n(e.error,e.blobResult,e.response)})})},H.prototype.abortCopyBlob=function(t,i,e,r,n){var a;N.normalizeArgs(r,n,function(e,t){a=e,n=t}),w.validateArgs("abortCopyBlob",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(n)});var o=q(t,i),s=I(!0,{},a),c=p.put(o).withQueryOption(m.COPY_ID,e).withQueryOption(m.COMP,"copy").withHeader(h.COPY_ACTION,"abort");c.withHeader(h.LEASE_ID,s.leaseId);this.performRequest(c,null,s,function(e,t){t(e,function(e){n(e.error,e.response)})})},H.prototype.generateSharedAccessSignature=function(t,i,r,e){if(!this.storageCredentials)throw new F("storageCredentials");if(!this.storageCredentials.generateSignedQueryString)throw new j("storageCredentials",R.CANNOT_CREATE_SAS_WITHOUT_ACCOUNT_KEY);w.validateArgs("generateSharedAccessSignature",function(e){e.string(t,"container"),e.containerNameIsValid(t),e.object(r,"sharedAccessPolicy")});var n=O.ResourceTypes.CONTAINER;i&&(w.validateArgs("generateSharedAccessSignature",function(e){e.string(i,"blob")}),n=O.ResourceTypes.BLOB),r.AccessPolicy&&(N.objectIsNull(r.AccessPolicy.Start)||(l.isDate(r.AccessPolicy.Start)||(r.AccessPolicy.Start=new Date(r.AccessPolicy.Start)),r.AccessPolicy.Start=N.truncatedISO8061Date(r.AccessPolicy.Start)),N.objectIsNull(r.AccessPolicy.Expiry)||(l.isDate(r.AccessPolicy.Expiry)||(r.AccessPolicy.Expiry=new Date(r.AccessPolicy.Expiry)),r.AccessPolicy.Expiry=N.truncatedISO8061Date(r.AccessPolicy.Expiry)));var a=q(t,i,!0);return this.storageCredentials.generateSignedQueryString(f.ServiceType.Blob,a,r,null,{headers:e,resourceType:n})},H.prototype.getUrl=function(t,e,i,r,n){var a;w.validateArgs("getUrl",function(e){e.string(t,"container"),e.containerNameIsValid(t)}),a=N.objectIsNull(r)||!1!==r?this.host.primaryHost:this.host.secondaryHost,(a=N.trimPortFromUri(a))&&a.lastIndexOf("/")!==a.length-1&&(a+="/");var o=c.parse(i);n&&(o[m.SNAPSHOT]=n);var s=u.format({pathname:this._getPath(q(t,e)),query:o});return u.resolve(a,s)},H.prototype.createPageBlob=function(t,i,r,e,n){var a;if(N.normalizeArgs(e,n,function(e,t){a=e,n=t}),w.validateArgs("createPageBlob",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.value(r,"length"),e.callback(n)}),r&&r%O.PAGE_SIZE!=0)throw new RangeError(R.INVALID_PAGE_BLOB_LENGTH);var o=I(!0,{},a),s=q(t,i),c=p.put(s).withHeader(h.BLOB_TYPE,O.BlobTypes.PAGE).withHeader(h.BLOB_CONTENT_LENGTH,r).withHeader(h.CONTENT_LENGTH,0).withHeader(h.ACCESS_TIER,o.blobTier).withHeader(h.LEASE_ID,o.leaseId);P.setHeadersFromBlob(c,o);this.performRequest(c,null,o,function(e,t){t(e,function(e){n(e.error,e.response)})})},H.prototype.createPageBlobFromStream=function(e,t,i,r,n,a){return this._createBlobFromStream(e,t,O.BlobTypes.PAGE,i,r,n,a)},H.prototype.createWriteStreamToExistingPageBlob=function(e,t,i,r){return this._createWriteStreamToBlob(e,t,O.BlobTypes.PAGE,0,!1,i,r)},H.prototype.createWriteStreamToNewPageBlob=function(e,t,i,r,n){return this._createWriteStreamToBlob(e,t,O.BlobTypes.PAGE,i,!0,r,n)},H.prototype.createPagesFromStream=function(i,r,e,n,a,t,o){var s;N.normalizeArgs(t,o,function(e,t){s=e,o=t}),w.validateArgs("createPagesFromStream",function(e){e.string(i,"container"),e.string(r,"blob"),e.containerNameIsValid(i),e.callback(o)});var c=I(!0,{},s);if(a-n+1>O.MAX_UPDATE_PAGE_SIZE)throw new RangeError(R.INVALID_PAGE_RANGE_FOR_UPDATE);var l=this;N.objectIsNull(c.transactionalContentMD5)&&c.useTransactionalMD5?N.calculateMD5(e,O.MAX_UPDATE_PAGE_SIZE,c,function(e,t){c.transactionalContentMD5=t,l._createPages(i,r,e,null,n,a,c,o)}):l._createPages(i,r,null,e,n,a,c,o)},H.prototype.listPageRanges=function(t,i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("listPageRanges",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(r)});var a=I(!0,{},n),o=q(t,i),s=p.get(o).withQueryOption(m.COMP,"pagelist").withQueryOption(m.SNAPSHOT,a.snapshotId);if(a.rangeStart&&a.rangeStart%O.PAGE_SIZE!=0)throw new RangeError(R.INVALID_PAGE_START_OFFSET);if(a.rangeEnd&&(a.rangeEnd+1)%O.PAGE_SIZE!=0)throw new RangeError(R.INVALID_PAGE_END_OFFSET);P.setHeadersFromBlob(s,a),a.requestLocationMode=b.PRIMARY_OR_SECONDARY;this.performRequest(s,null,a,function(i,e){if(i.pageRanges=null,!i.error){i.pageRanges=[];var t=[];i.response.body.PageList.PageRange&&(t=i.response.body.PageList.PageRange,l.isArray(t)||(t=[t])),t.forEach(function(e){var t={start:parseInt(e.Start,10),end:parseInt(e.End,10)};i.pageRanges.push(t)})}e(i,function(e){r(e.error,e.pageRanges,e.response)})})},H.prototype.getPageRangesDiff=function(t,i,e,r,n){var a;N.normalizeArgs(r,n,function(e,t){a=e,n=t}),w.validateArgs("getPageRangesDiff",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(n)});var o=I(!0,{},a),s=q(t,i),c=p.get(s).withQueryOption(m.COMP,"pagelist").withQueryOption(m.SNAPSHOT,o.snapshotId).withQueryOption(m.PREV_SNAPSHOT,e);if(o.rangeStart&&o.rangeStart%O.PAGE_SIZE!=0)throw new RangeError(R.INVALID_PAGE_START_OFFSET);if(o.rangeEnd&&(o.rangeEnd+1)%O.PAGE_SIZE!=0)throw new RangeError(R.INVALID_PAGE_END_OFFSET);if(o.rangeEnd&&(o.rangeEnd+1)%O.PAGE_SIZE!=0)throw new RangeError(R.INVALID_PAGE_END_OFFSET);P.setHeadersFromBlob(c,o),o.requestLocationMode=b.PRIMARY_OR_SECONDARY;this.performRequest(c,null,o,function(i,e){if(i.pageRangesDiff=null,!i.error){if(i.pageRangesDiff=[],i.response.body.PageList.PageRange){var t=i.response.body.PageList.PageRange;l.isArray(t)||(t=[t]),t.forEach(function(e){var t={start:parseInt(e.Start,10),end:parseInt(e.End,10),isCleared:!1};i.pageRangesDiff.push(t)})}if(i.response.body.PageList.ClearRange){var r=i.response.body.PageList.ClearRange;l.isArray(r)||(r=[r]),r.forEach(function(e){var t={start:parseInt(e.Start,10),end:parseInt(e.End,10),isCleared:!0};i.pageRangesDiff.push(t)})}}e(i,function(e){n(e.error,e.pageRangesDiff,e.response)})})},H.prototype.clearPageRange=function(t,i,e,r,n,a){var o;N.normalizeArgs(n,a,function(e,t){o=e,a=t}),w.validateArgs("clearPageRange",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(a)});var s=I(!0,{},o),c=this._updatePageBlobPagesImpl(t,i,e,r,O.PageWriteOptions.CLEAR,s);this.performRequest(c,null,s,function(e,t){t(e,function(e){a(e.error,e.response)})})},H.prototype.resizePageBlob=function(t,i,e,r,n){var a;N.normalizeArgs(r,n,function(e,t){a=e,n=t}),w.validateArgs("resizePageBlob",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(n)});var o=I(!0,{},a),s=q(t,i),c=p.put(s).withQueryOption(m.COMP,"properties").withHeader(h.LEASE_ID,o.leaseId);if(e&&e%O.PAGE_SIZE!=0)throw new RangeError(R.INVALID_PAGE_BLOB_LENGTH);c.withHeader(h.BLOB_CONTENT_LENGTH,e),this._setBlobPropertiesHelper({webResource:c,options:o,container:t,blob:i,callback:n})},H.prototype.setPageBlobSequenceNumber=function(i,r,e,t,n,a){var o;if(N.normalizeArgs(n,a,function(e,t){o=e,a=t}),w.validateArgs("setPageBlobSequenceNumber",function(e){e.string(i,"container"),e.string(r,"blob"),e.containerNameIsValid(i),e.callback(a)}),e===U.SequenceNumberAction.INCREMENT){if(!N.objectIsNull(t))throw new j("sequenceNumber",R.BLOB_INVALID_SEQUENCE_NUMBER)}else if(N.objectIsNull(t))throw new F("sequenceNumber",T.format(R.ARGUMENT_NULL_OR_EMPTY,"sequenceNumber"));var s=I(!0,{},o),c=q(i,r),l=p.put(c).withQueryOption(m.COMP,"properties").withHeader(h.SEQUENCE_NUMBER_ACTION,e);e!==U.SequenceNumberAction.INCREMENT&&l.withHeader(h.SEQUENCE_NUMBER,t);this.performRequest(l,null,s,function(e,t){e.blobResult=null,e.error||(e.blobResult=new P(i,r),e.blobResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){a(e.error,e.blobResult,e.response)})})},H.prototype.createBlockBlobFromStream=function(e,t,i,r,n,a){return this._createBlobFromStream(e,t,O.BlobTypes.BLOCK,i,r,n,a)},H.prototype.createBlockBlobFromText=function(e,t,i,r,n){return this._createBlobFromText(e,t,O.BlobTypes.BLOCK,i,r,n)},H.prototype.createWriteStreamToBlockBlob=function(e,t,i,r){return this._createWriteStreamToBlob(e,t,O.BlobTypes.BLOCK,0,!1,i,r)},H.prototype.createBlockFromStream=function(e,t,i,r,n,a,o){var s;N.normalizeArgs(a,o,function(e,t){s=e,o=t}),w.validateArgs("createBlockFromStream",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.exists(r,"readStream"),e.value(n,"streamLength"),e.callback(o)});var c=I(!0,{},s);if(n>O.MAX_BLOCK_BLOB_BLOCK_SIZE)throw new RangeError(R.INVALID_STREAM_LENGTH);this._createBlock(e,t,i,null,r,n,c,o)},H.prototype.createBlockFromText=function(e,t,i,r,n,a){var o;N.normalizeArgs(n,a,function(e,t){o=e,a=t}),w.validateArgs("createBlockFromText",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(a)});var s=I(!0,{},o),c=d.isBuffer(r)?r.length:d.byteLength(r);if(c>O.MAX_BLOCK_BLOB_BLOCK_SIZE)throw new RangeError(R.INVALID_TEXT_LENGTH);this._createBlock(e,t,i,r,null,c,s,a)},H.prototype.createBlockFromURL=function(e,t,i,r,n,a,o,s){var c;N.normalizeArgs(o,s,function(e,t){c=e,s=t}),w.validateArgs("createBlockFromURL",function(e){e.string(t,"container"),e.string(i,"blob"),e.string(r,"sourceURL"),e.containerNameIsValid(t),e.callback(s)});var l=I(!0,{},c),u=q(t,i),f=p.put(u).withQueryOption(m.COMP,"block").withQueryOption(m.BLOCK_ID,new d(e).toString("base64")).withHeader(h.COPY_SOURCE,r);l.sourceRangeStart=n,l.sourceRangeEnd=a,P.setHeadersFromBlob(f,l);this.performRequest(f,null,l,function(e,t){t(e,function(e){s(e.error,e.response)})})},H.prototype._createBlock=function(i,e,t,r,n,a,o,s){var c=q(e,t),l=this,u=function(){var e=p.put(c).withQueryOption(m.COMP,"block").withQueryOption(m.BLOCK_ID,new d(i).toString("base64")).withHeader(h.CONTENT_LENGTH,a);P.setHeadersFromBlob(e,o);var t=function(e,t){t(e,function(e){s(e.error,e.response)})};N.objectIsNull(r)?l.performRequestOutputStream(e,n,o,t):l.performRequest(e,r,o,t)};N.objectIsNull(o.transactionalContentMD5)&&o.useTransactionalMD5?N.objectIsNull(r)?N.calculateMD5(n,a,o,function(e,t){o.transactionalContentMD5=t,a=(r=e).length,u()}):(o.transactionalContentMD5=N.getContentMd5(r),u()):u()},H.prototype.commitBlocks=function(i,r,n,e,a){var o;N.normalizeArgs(e,a,function(e,t){o=e,a=t}),w.validateArgs("commitBlocks",function(e){e.string(i,"container"),e.string(r,"blob"),e.object(n,"blockList"),e.containerNameIsValid(i),e.callback(a)});var t=k.serialize(n),s=q(i,r),c=I(!0,{},o),l=p.put(s).withQueryOption(m.COMP,"blocklist").withHeader(h.CONTENT_LENGTH,d.byteLength(t)).withBody(t);P.setPropertiesFromBlob(l,c);this.performRequest(l,l.body,c,function(e,t){e.blobResult=new P(i,r),e.blobResult.list=null,e.error||(e.blobResult.getPropertiesFromHeaders(e.response.headers),e.blobResult.list=n);t(e,function(e){a(e.error,e.blobResult,e.response)})})},H.prototype.listBlocks=function(t,i,e,r,n){var a;N.normalizeArgs(r,n,function(e,t){a=e,n=t}),w.validateArgs("listBlocks",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(n)});var o=q(t,i),s=I(!0,{},a),c=p.get(o).withQueryOption(m.COMP,"blocklist").withQueryOption(m.BLOCK_LIST_TYPE,e).withQueryOption(m.SNAPSHOT,s.snapshotId);s.requestLocationMode=b.PRIMARY_OR_SECONDARY;this.performRequest(c,null,s,function(e,t){e.blockListResult=null,e.error||(e.blockListResult=k.parse(e.response.body.BlockList));t(e,function(e){n(e.error,e.blockListResult,e.response)})})},H.prototype.generateBlockIdPrefix=function(){var e=Math.floor(4294967296*Math.random()).toString(16);return N.zeroPaddingString(e,8)},H.prototype.getBlockId=function(e,t){return e+"-"+N.zeroPaddingString(t,6)},H.prototype.createOrReplaceAppendBlob=function(t,i,e,r){var n;N.normalizeArgs(e,r,function(e,t){n=e,r=t}),w.validateArgs("createOrReplaceAppendBlob",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(r)});var a=I(!0,{},n),o=q(t,i),s=p.put(o).withHeader(h.BLOB_TYPE,O.BlobTypes.APPEND).withHeader(h.LEASE_ID,a.leaseId).withHeader(h.CONTENT_LENGTH,0);P.setHeadersFromBlob(s,a);this.performRequest(s,null,a,function(e,t){t(e,function(e){r(e.error,e.response)})})},H.prototype.createAppendBlobFromStream=function(e,t,i,r,n,a){return this._createBlobFromStream(e,t,O.BlobTypes.APPEND,i,r,n,a)},H.prototype.createAppendBlobFromText=function(e,t,i,r,n){return this._createBlobFromText(e,t,O.BlobTypes.APPEND,i,r,n)},H.prototype.createWriteStreamToNewAppendBlob=function(e,t,i,r){return this._createWriteStreamToBlob(e,t,O.BlobTypes.APPEND,0,!0,i,r)},H.prototype.createWriteStreamToExistingAppendBlob=function(e,t,i,r){return this._createWriteStreamToBlob(e,t,O.BlobTypes.APPEND,0,!1,i,r)},H.prototype.appendFromStream=function(t,i,r,n,e,a){var o;return N.normalizeArgs(e,a,function(e,t){o=e,a=t}),w.validateArgs("appendFromStream",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.exists(r,"stream"),e.value(n,"streamLength"),e.callback(a)}),this._uploadBlobFromStream(!1,t,i,O.BlobTypes.APPEND,r,n,o,a)},H.prototype.appendFromText=function(e,t,i,r,n){return this._uploadBlobFromText(!1,e,t,O.BlobTypes.APPEND,i,r,n)},H.prototype.appendBlockFromStream=function(t,i,r,n,e,a){var o;N.normalizeArgs(e,a,function(e,t){o=e,a=t}),w.validateArgs("appendBlockFromStream",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.exists(r,"readStream"),e.value(n,"streamLength"),e.callback(a)});var s=I(!0,{},o);if(n>O.MAX_APPEND_BLOB_BLOCK_SIZE)throw new RangeError(R.INVALID_STREAM_LENGTH);this._appendBlock(t,i,null,r,n,s,a)},H.prototype.appendBlockFromText=function(t,i,e,r,n){var a;N.normalizeArgs(r,n,function(e,t){a=e,n=t}),w.validateArgs("appendBlockFromText",function(e){e.string(t,"container"),e.string(i,"blob"),e.containerNameIsValid(t),e.callback(n)});var o=I(!0,{},a),s=d.isBuffer(e)?e.length:d.byteLength(e);if(s>O.MAX_APPEND_BLOB_BLOCK_SIZE)throw new RangeError(R.INVALID_TEXT_LENGTH);this._appendBlock(t,i,e,null,s,o,n)},H.prototype._createBlobFromStream=function(r,n,a,o,s,e,c){var i;N.normalizeArgs(e,c,function(e,t){i=e,c=t}),w.validateArgs("_createBlobFromStream",function(e){e.string(r,"container"),e.string(n,"blob"),e.containerNameIsValid(r),e.blobTypeIsValid(a),e.exists(o,"stream"),e.value(s,"streamLength"),e.callback(c)});var l=I(!0,{},i),u=this;return this._createBlob(r,n,a,s,l,function(e,t,i){e?c(e,t,i):u._uploadBlobFromStream(!0,r,n,a,o,s,l,c)}),l.speedSummary},H.prototype._createBlobFromText=function(r,n,a,o,e,s){var i;N.normalizeArgs(e,s,function(e,t){i=e,s=t}),w.validateArgs("_createBlobFromText",function(e){e.string(r,"container"),e.string(n,"blob"),e.containerNameIsValid(r),e.blobTypeIsValid(a),e.callback(s)});var c=I(!0,{},i),l=this,t=N.objectIsNull(o)?0:d.isBuffer(o)?o.length:d.byteLength(o);return this._createBlob(r,n,a,t,c,function(e,t,i){e?s(e,t,i):l._uploadBlobFromText(!0,r,n,a,o,c,s)}),c.speedSummary},H.prototype._createWriteStreamToBlob=function(r,n,a,e,o,t,s){var i;N.normalizeArgs(t,s,function(e,t){i=e,s=t}),w.validateArgs("_createWriteStreamToBlob",function(e){e.string(r,"container"),e.string(n,"blob"),e.containerNameIsValid(r),e.blobTypeIsValid(a)});var c,l=I(!0,{},i);a===O.BlobTypes.BLOCK?(l.storeBlobContentMD5=!1!==l.storeBlobContentMD5,c=l.blockSize||O.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES):a==O.BlobTypes.PAGE?c=O.DEFAULT_WRITE_PAGE_SIZE_IN_BYTES:a==O.BlobTypes.APPEND&&(c=O.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES);var u=new g({calcContentMd5:l.storeBlobContentMD5});u._highWaterMark=c,u.pause();var f=this,d=function(e,t,i){e?s&&s(e,t,i):f._uploadBlobFromStream(o,r,n,a,u,null,l,function(e,t,i){e&&u.emit("error",e),s&&s(e,t,i)})};return!0===o?this._createBlob(r,n,a,e,l,d):d(),u},H.prototype._uploadBlobFromStream=function(e,i,r,n,t,a,o,s){var c;N.normalizeArgs(o,s,function(e,t){c=e,s=t}),c.speedSummary=c.speedSummary||new C(r),n===O.BlobTypes.BLOCK&&(c.storeBlobContentMD5=!1!==c.storeBlobContentMD5),t.pause();var l=this,u=function(){if(null===a||a>=l.singleBlobPutThresholdInBytes||n!==O.BlobTypes.BLOCK){var e=new S(t,{calcContentMd5:c.storeBlobContentMD5});l._uploadContentFromChunkStream(i,r,n,e,a,c,s)}else 0<a&&N.objectIsNull(N.tryGetValueChain(c,["contentSettings","contentMD5"],null))&&c.storeBlobContentMD5?(N.calculateMD5(t,Math.min(l.singleBlobPutThresholdInBytes,a),c,function(e,t){N.setObjectInnerPropertyValue(c,["contentSettings","contentMD5"],t),l._putBlockBlob(i,r,e,null,e.length,c,s)}),t.resume()):l._putBlockBlob(i,r,null,t,a,c,s)};if(e)u();else{if(c.storeBlobContentMD5&&n!==O.BlobTypes.BLOCK)throw new Error(R.MD5_NOT_POSSIBLE);n===O.BlobTypes.APPEND||c.accessConditions?this.getBlobProperties(i,r,c,function(e,t,i){!e||c.accessConditions&&"*"===c.accessConditions.EtagNonMatch&&400===i.statusCode?(n===O.BlobTypes.APPEND&&(c.appendPosition=t.contentLength),u()):s(e)}):u()}return c.speedSummary},H.prototype._uploadBlobFromText=function(e,i,n,a,r,t,o){var s;N.normalizeArgs(t,o,function(e,t){s=e,o=t}),s.speedSummary=s.speedSummary||new C(n),s[h.CONTENT_TYPE]=s.contentSettings&&s.contentSettings.contentType||'text/plain;charset="utf-8"';var c=this,l=function(){var e,t=N.objectIsNull(r)?0:d.isBuffer(r)?r.length:d.byteLength(r);if(a===O.BlobTypes.BLOCK){if(s.storeBlobContentMD5=!1!==s.storeBlobContentMD5,e=c._putBlockBlob,t>O.MAX_SINGLE_UPLOAD_BLOB_SIZE_IN_BYTES)throw new RangeError(R.INVALID_BLOB_LENGTH)}else if(a===O.BlobTypes.APPEND&&(e=c._appendBlock,t>O.MAX_APPEND_BLOB_BLOCK_SIZE))throw new RangeError(R.INVALID_TEXT_LENGTH);e.call(c,i,n,r,null,t,s,function(e,r,t){a!==O.BlobTypes.BLOCK?c.setBlobProperties(i,n,s.contentSettings,s,function(e,t,i){t=I(!1,t,r),o(e,t,i)}):o(e,r,t)})};if(e)!N.objectIsNull(r)&&N.objectIsNull(N.tryGetValueChain(s,["contentSettings","contentMD5"],null))&&s.storeBlobContentMD5&&N.setObjectInnerPropertyValue(s,["contentSettings","contentMD5"],N.getContentMd5(r)),l();else{if(s.storeBlobContentMD5&&a!==O.BlobTypes.BLOCK)throw new Error(R.MD5_NOT_POSSIBLE);(a===O.BlobTypes.APPEND||s.accessConditions)&&this.getBlobProperties(i,n,s,function(e,t){e?o(e):(a===O.BlobTypes.APPEND&&(s.appendPosition=t.contentLength),l())})}},H.prototype._putBlockBlob=function(i,r,e,t,n,a,o){a.speedSummary||(a.speedSummary=new C(r));var s=a.speedSummary;s.totalSize=n;var c=q(i,r),l=p.put(c).withHeader(h.CONTENT_TYPE,"application/octet-stream").withHeader(h.BLOB_TYPE,O.BlobTypes.BLOCK).withHeader(h.CONTENT_LENGTH,n);!N.objectIsNull(e)&&N.objectIsNull(a.transactionalContentMD5)&&a.useTransactionalMD5&&(a.transactionalContentMD5=N.getContentMd5(e)),P.setHeadersFromBlob(l,a);var u=function(e,t){e.blobResult=null,e.error||(e.blobResult=new P(i,r),e.blobResult.getPropertiesFromHeaders(e.response.headers),a.metadata&&(e.blobResult.metadata=a.metadata));t(e,function(e){e&&e.error||s.increment(n),o(e.error,e.blobResult,e.response)})};return N.objectIsNull(e)?this.performRequestOutputStream(l,t,a,u):this.performRequest(l,e,a,u),a.speedSummary},H.prototype._appendBlock=function(r,n,a,o,s,c,l){var u=c.speedSummary||new C(n);u.totalSize=s;var f=this,i=function(){var e=q(r,n),t=p.put(e).withQueryOption(m.COMP,"appendblock").withHeader(h.CONTENT_LENGTH,s).withHeader(h.BLOB_CONDITION_MAX_SIZE,c.maxBlobSize).withHeader(h.BLOB_CONDITION_APPEND_POSITION,c.appendPosition);P.setHeadersFromBlob(t,c);var i=function(e,t){e.blobResult=null,e.error||(e.blobResult=new P(r,n),e.blobResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){e&&e.error||u.increment(s),l(e.error,e.blobResult,e.response)})};N.objectIsNull(a)?f.performRequestOutputStream(t,o,c,i):f.performRequest(t,a,c,i)};return N.objectIsNull(c.transactionalContentMD5)&&c.useTransactionalMD5?N.objectIsNull(a)?N.calculateMD5(o,s,c,function(e,t){c.transactionalContentMD5=t,s=(a=e).length,i()}):(c.transactionalContentMD5=N.getContentMd5(a),i()):i(),c.speedSummary},H.prototype._leaseImpl=function(i,r,e,t,n,a){var o;if(N.objectIsNull(r))o=p.put(i).withQueryOption(m.RESTYPE,"container");else{w.validateArgs("_leaseImpl",function(e){e.string(r,"blob")});var s=q(i,r);o=p.put(s)}o.withQueryOption(m.COMP,"lease").withHeader(h.LEASE_ID,e).withHeader(h.LEASE_ACTION,t.toLowerCase()).withHeader(h.LEASE_BREAK_PERIOD,n.leaseBreakPeriod).withHeader(h.PROPOSED_LEASE_ID,n.proposedLeaseId).withHeader(h.LEASE_DURATION,n.leaseDuration);this.performRequest(o,null,n,function(e,t){e.leaseResult=null,e.error||(e.leaseResult=new D(i,r),e.leaseResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){a(e.error,e.leaseResult,e.response)})})},H.prototype._createPages=function(i,r,e,t,n,a,o,s){var c=this._updatePageBlobPagesImpl(i,r,n,a,O.PageWriteOptions.UPDATE,o);!N.objectIsNull(e)&&N.objectIsNull(o.transactionalContentMD5)&&o.useTransactionalMD5&&c.withHeader(h.CONTENT_MD5,N.getContentMd5(e));var l=function(e,t){e.blobResult=null,e.error||(e.blobResult=new P(i,r),e.blobResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){s(e.error,e.blobResult,e.response)})};N.objectIsNull(e)?this.performRequestOutputStream(c,t,o,l):this.performRequest(c,e,o,l)},H.prototype._updatePageBlobPagesImpl=function(e,t,i,r,n,a){if(i&&i%O.PAGE_SIZE!=0)throw new RangeError(R.INVALID_PAGE_START_OFFSET);if(r&&(r+1)%O.PAGE_SIZE!=0)throw new RangeError(R.INVALID_PAGE_END_OFFSET);a||(a={}),a.rangeStart=i,a.rangeEnd=r,a.contentLength=n===O.PageWriteOptions.UPDATE?r-i+1:0;var o=q(e,t),s=p.put(o).withQueryOption(m.COMP,"page").withHeader(h.CONTENT_TYPE,"application/octet-stream").withHeader(h.PAGE_WRITE,n);return P.setHeadersFromBlob(s,a),s},H.prototype._uploadContentFromChunkStream=function(s,c,e,l,u,f,n){var d,p,h,m,b;this.logger.debug(T.format("_uploadContentFromChunkStream for blob %s",c));var a=N.tryGetValueChain(f,["contentSettings","contentMD5"],null),t=f.parallelOperationThreadCount||this.parallelOperationThreadCount;if(e==O.BlobTypes.BLOCK){d="createBlockFromText",p=!0;var i=Math.ceil(u/5e4);if(f.blockSize){if(f.blockSize<i){var r=new j("options.blockSize",T.format("The minimum blockSize is %s and the provided blockSize %s is too small.",i,f.blockSize));return void n(r)}b=f.blockSize}else b=Math.max(i,O.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES)}else if(e==O.BlobTypes.PAGE)d="_createPages",h=!0,b=O.DEFAULT_WRITE_PAGE_SIZE_IN_BYTES;else{if(e!=O.BlobTypes.APPEND){r=new j("blobType",T.format("Unknown blob type %s",e));return void n(r)}d="appendBlockFromText",m=!0,t=1,b=O.DEFAULT_WRITE_BLOCK_SIZE_IN_BYTES}l._highWaterMark=b,this._setOperationExpiryTime(f);var g=f.speedSummary||new C(c);g.totalSize=u;var v=new L(b,t,{logger:this.logger});if(l.setMemoryAllocator(v),l.setOutputLength(u),l._stream&&l._stream.setMemoryAllocator){var o=new L(l._stream._highWaterMark,t,{logger:this.logger});l._stream.setMemoryAllocator(o)}var _=new M(d,{callInOrder:m,callbackInOrder:m,logger:this.logger,enableReuseSocket:this.defaultEnableReuseSocket,operationMemoryUsage:b});_.setConcurrency(t);var y={leaseId:f.leaseId,timeoutIntervalInMs:f.timeoutIntervalInMs,clientRequestTimeoutInMs:f.clientRequestTimeoutInMs,operationExpiryTime:f.operationExpiryTime,maxBlobSize:f.maxBlobSize,appendPosition:f.appendPosition||0,initialAppendPosition:f.appendPosition||0,absorbConditionalErrorsOnRetry:f.absorbConditionalErrorsOnRetry},E=f.blockIdPrefix||this.generateBlockIdPrefix(),w=0,S=[],x={},A=this;return l.on("data",function(i,e){var t=null,r=!1,n=g.getAutoIncrementFunction(i.length);if(i.length>b)throw new RangeError(T.format(R.EXCEEDED_SIZE_LIMITATION,b,i.length));if(f.useTransactionalMD5){var a=N.getContentMd5(i);y.transactionalContentMD5=a}var o=function(){return!u||(e.start>=u?(A.logger.debug(T.format("Stop uploading data from %s bytes to %s bytes to blob %s because of limit %s",e.start,e.end,c,u)),l.stop(),!1):(e.end>=u&&(A.logger.debug(T.format("Clip uploading data from %s bytes to %s bytes to blob %s because of limit %s",e.start,e.end,c,u)),e.end=u-1,i=i.slice(0,u-e.start),f.useTransactionalMD5&&(y.transactionalContentMD5=N.getContentMd5(i))),!0))};p?function(){if(o()){var e=A.getBlockId(E,w);S.push(e),t=new M.RestOperation(A,d,e,s,c,i,y,function(e){e?(A.logger.debug(T.format("Stop uploading data as error happens. Error: %s",T.inspect(e))),l.stop()):n(),v.releaseBuffer(i),i=null}),w++}}():m?function(){if(o()){if(y.appendPosition=Number(y.initialAppendPosition)+Number(e.start),f.maxBlobSize&&y.appendPosition+i.length>f.maxBlobSize)throw new Error(R.MAX_BLOB_SIZE_CONDITION_NOT_MEET);t=new M.RestOperation(A,d,s,c,i,y,function(e,t){e?(A.logger.debug(T.format("Stop uploading data as error happens. Error: %s",T.inspect(e))),l.stop()):n(),x=t,v.releaseBuffer(i),i=null})}}():h&&o()&&(N.isBufferAllZero(i)?(A.logger.debug(T.format("Skip upload data from %s bytes to %s bytes to blob %s",e.start,e.end,c)),g.increment(i.length)):(A.logger.debug(T.format("Upload data from %s bytes to %s bytes to blob %s",e.start,e.end,c)),t=new M.RestOperation(A,d,s,c,i,null,e.start,e.end,y,function(e){e?(A.logger.debug(T.format("Stop uploading data as error happens. Error: %s",T.inspect(e))),l.stop()):n(),v.releaseBuffer(i),i=null}))),t&&(r=_.addOperation(t),t=null,r&&(A.logger.debug("File stream paused"),l.pause()))}),l.on("end",function(){A.logger.debug(T.format("File read stream ended for blob %s",c)),_.enableComplete()}),_.on("drain",function(){A.logger.debug("file stream resume"),l.resume()}),_.on("end",function(e){if(A.logger.debug("batch operations commited"),g=null,e)n(e);else{if(a)f.contentSettings.contentMD5=a;else if(f.storeBlobContentMD5){var t=l.getContentMd5("base64");N.setObjectInnerPropertyValue(f,["contentSettings","contentMD5"],t)}if(p){var i={UncommittedBlocks:S};A.commitBlocks(s,c,i,f,function(e,t,i){A.logger.debug(T.format("Blob %s committed",c)),e?(l.finish(),n(e)):(x.commmittedBlocks=S,l.finish(),n(e,x,i))})}else{var r=f.contentSettings;A.setBlobProperties(s,c,r,function(e,t,i){l.finish(),t=I(!1,t,x),n(e,t,i)})}}}),g},H.prototype._doesContainerExist=function(i,e,t,r){var n=p.head(i).withQueryOption(m.RESTYPE,"container").withHeader(h.LEASE_ID,t.leaseId);!1===e&&(t.requestLocationMode=b.PRIMARY_OR_SECONDARY);this.performRequest(n,null,t,function(e,t){e.containerResult=new B(i),e.error?e.error&&e.error.statusCode===f.HttpConstants.HttpResponseCodes.NotFound&&(e.error=null,e.containerResult.exists=!1,e.response.isSuccessful=!0):(e.containerResult.exists=!0,e.containerResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){r(e.error,e.containerResult,e.response)})})},H.prototype._doesBlobExist=function(i,r,e,t,n){var a=q(i,r),o=p.head(a).withQueryOption(m.SNAPSHOT,t.snapshotId).withHeader(h.LEASE_ID,t.leaseId);!1===e&&(t.requestLocationMode=b.PRIMARY_OR_SECONDARY);this.performRequest(o,null,t,function(e,t){e.blobResult=new P(i,r),e.error?e.error&&e.error.statusCode===f.HttpConstants.HttpResponseCodes.NotFound&&(e.error=null,e.blobResult.exists=!1,e.response.isSuccessful=!0):(e.blobResult.exists=!0,e.blobResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){n(e.error,e.blobResult,e.response)})})},H.prototype._setBlobPropertiesHelper=function(i){this.performRequest(i.webResource,null,i.options,function(e,t){e.blobResult=null,e.error||(e.blobResult=new P(i.container,i.blob),e.blobResult.getPropertiesFromHeaders(e.response.headers));t(e,function(e){i.callback(e.error,e.blobResult,e.response)})})},H.prototype._validateLengthAndMD5=function(e,t){var i,r=t.response.headers[f.HeaderConstants.CONTENT_MD5];N.objectIsNull(t.response.headers[f.HeaderConstants.CONTENT_LENGTH])||(i=parseInt(t.response.headers[f.HeaderConstants.CONTENT_LENGTH],10)),N.objectIsNull(e.disableContentMD5Validation)&&(e.disableContentMD5Validation=!1),!1===e.disableContentMD5Validation&&!0===e.useTransactionalMD5&&N.objectIsNull(r)&&(t.error=new a(R.MD5_NOT_PRESENT_ERROR),t.retryable=!1),N.objectIsNull(t.length)&&("string"==typeof t.response.body?t.length=d.byteLength(t.response.body):d.isBuffer(t.response.body)&&(t.length=t.response.body.length)),N.objectIsNull(i)||t.length===i||(t.error=new Error(R.CONTENT_LENGTH_MISMATCH),t.retryable=!1),!1===e.disableContentMD5Validation&&N.objectIsNull(t.contentMD5)&&(t.contentMD5=N.getContentMd5(t.response.body)),!1!==e.disableContentMD5Validation||N.objectIsNull(r)||r===t.contentMD5||(t.error=new Error(T.format(R.HASH_MISMATCH,r,t.contentMD5)),t.retryable=!1)},H.prototype._setRangeContentMD5Header=function(e,t){if(!N.objectIsNull(t.rangeStart)&&t.useTransactionalMD5){if(N.objectIsNull(t.rangeEnd))throw new F("options.rangeEndHeader",T.format(R.ARGUMENT_NULL_OR_EMPTY,t.rangeEndHeader));if(parseInt(t.rangeEnd,10)-parseInt(t.rangeStart,10)+1>O.MAX_RANGE_GET_SIZE_WITH_MD5)throw new j("options",R.INVALID_RANGE_FOR_MD5);e.withHeader(h.RANGE_GET_CONTENT_MD5,"true")}},H.prototype._getBlobToRangeStream=function(o,s,t,c,e,i){var l;N.normalizeArgs(e,i,function(e,t){l=e,i=t}),w.validateArgs("_getBlobToRangeStream",function(e){e.string(o,"container"),e.string(s,"blob"),e.containerNameIsValid(o),e.blobNameIsValid(o,s),e.blobTypeIsValid(t),e.callback(i)});var u=null,f=!0;t==O.BlobTypes.PAGE?u=new y(this,o,s,l):t==O.BlobTypes.APPEND?(u=new E(this,o,s,l),f=!1):t==O.BlobTypes.BLOCK&&(u=new v(this,o,s,l),f=!1),l.speedSummary||(l.speedSummary=new C(s));var d=l.speedSummary,r=l.parallelOperationThreadCount||this.parallelOperationThreadCount,p=new M("getBlobInRanges",{callbackInOrder:!0,logger:this.logger,enableReuseSocket:this.defaultEnableReuseSocket});p.setConcurrency(r);var h=this,n=!l.disableContentMD5Validation,m=null;n&&(m=(new _).createMd5Hash());var b=null,g=null;u.on("range",function(i){d.totalSize||(d.totalSize=u.rangeSize);var e={rangeStart:i.start,rangeEnd:i.end,responseEncoding:null},a=i.size;if(e.timeoutIntervalInMs=l.timeoutIntervalInMs,e.clientRequestTimeoutInMs=l.clientRequestTimeoutInMs,e.useTransactionalMD5=l.useTransactionalMD5,e.snapshotId=l.snapshotId,0!==i.dataSize){if(!(i.start>i.end)){var t=new M.RestOperation(h,"getBlobToText",o,s,e,function(e,t,i,r){if(e)h.logger.debug(T.format("Stop downloading data as error happens. Error: %s",T.inspect(e))),u.stop();else{a!==t.length&&h.logger.warn(T.format("Request %s bytes, but server returns %s bytes",a,t.length)),b||(b=i),g||(g=r);var n=d.getAutoIncrementFunction(t.length);c.write(t,n)||(h.logger.debug("Write stream is full and pause batch operation"),p.pause()),m&&m.update(t),t=null}});p.addOperation(t)&&(h.logger.debug("Pause range stream"),u.pause())}}else if(f){var r=d.getAutoIncrementFunction(a),n=new M.CommonOperation(M.noOperation,function(e){if(!e){var t=N.writeZerosToStream(c,a,m,r);h.logger.debug(T.format("Write %s bytes Zero from %s to %s",a,i.start,i.end)),t||(h.logger.debug("Write stream is full and pause batch operation"),p.pause())}});p.addOperation(n)}else h.logger.debug(T.format("Can not read %s bytes to %s bytes of blob %s",i.start,i.end,s))}),u.on("end",function(){h.logger.debug("Range stream has ended."),p.enableComplete()}),p.on("drain",function(){h.logger.debug("Resume range stream"),u.resume()}),c.on("drain",function(){h.logger.debug("Resume batch operations"),p.resume()}),p.on("end",function(e){h.logger.debug("Download completed!"),e?i(e):c.end(function(){h.logger.debug("Write stream has ended"),b||(b={}),N.setObjectInnerPropertyValue(b,["contentSettings","contentMD5"],N.tryGetValueChain(l,["contentSettings","contentMD5"],null)),b.clientSideContentMD5=null,m&&(b.clientSideContentMD5=m.digest("base64")),i(e,b,g)})});var a={timeoutIntervalInMs:l.timeoutIntervalInMs,clientRequestTimeoutInMs:l.clientRequestTimeoutInMs,snapshotId:l.snapshotId,leaseId:l.leaseId,blockListFilter:U.BlockListFilter.COMMITTED};return u.list(a,function(e){i(e)}),d},H.prototype._getBlobToStream=function(i,r,e,t,n){var a;N.normalizeArgs(t,n,function(e,t){a=e,n=t});var o=q(i,r),s=p.get(o).withRawResponse(),c=I(!0,{},a);s.withQueryOption(m.SNAPSHOT,c.snapshotId),P.setHeadersFromBlob(s,c),this._setRangeContentMD5Header(s,c);var l=this;this.performRequestInputStream(s,null,e,c,function(e,t){e.blobResult=null,e.error||(e.blobResult=new P(i,r),e.blobResult.metadata=l.parseMetadataHeaders(e.response.headers),e.blobResult.getPropertiesFromHeaders(e.response.headers),l._validateLengthAndMD5(c,e),c.speedSummary&&c.speedSummary.increment(e.length));t(e,function(e){n(e.error,e.blobResult,e.response)})})},H.prototype._listBlobsOrDircotriesSegmentedWithPrefix=function(t,e,i,r,n,a){var o;N.normalizeArgs(n,a,function(e,t){o=e,a=t}),w.validateArgs("listBlobsSegmented",function(e){e.string(t,"container"),e.containerNameIsValid(t),e.callback(a)});var s=I(!0,{},o),c=p.get(t).withQueryOption(m.RESTYPE,"container").withQueryOption(m.COMP,"list").withQueryOption(m.MAX_RESULTS,s.maxResults).withQueryOptions(s,m.DELIMITER,m.INCLUDE);N.objectIsNull(i)||c.withQueryOption(m.MARKER,i.nextMarker),c.withQueryOption(m.PREFIX,e),s.requestLocationMode=N.getNextListingLocationMode(i);this.performRequest(c,null,s,function(i,e){if(i.listBlobsResult=null,!i.error){i.listBlobsResult={entries:null,continuationToken:null},i.listBlobsResult.entries=[];var t=[];r==O.ListBlobTypes.Directory&&i.response.body.EnumerationResults.Blobs.BlobPrefix?(t=i.response.body.EnumerationResults.Blobs.BlobPrefix,l.isArray(t)||(t=[t])):r==O.ListBlobTypes.Blob&&i.response.body.EnumerationResults.Blobs.Blob&&(t=i.response.body.EnumerationResults.Blobs.Blob,l.isArray(t)||(t=[t])),t.forEach(function(e){var t=P.parse(e);i.listBlobsResult.entries.push(t)}),i.response.body.EnumerationResults.NextMarker&&(i.listBlobsResult.continuationToken={nextMarker:null,targetLocation:null},i.listBlobsResult.continuationToken.nextMarker=i.response.body.EnumerationResults.NextMarker,i.listBlobsResult.continuationToken.targetLocation=i.targetLocation)}e(i,function(e){a(e.error,e.listBlobsResult,e.response)})})},H.prototype._createBlob=function(e,t,i,r,n,a){i==O.BlobTypes.APPEND?this.createOrReplaceAppendBlob(e,t,n,function(e,t){a(e,null,t)}):i==O.BlobTypes.PAGE?this.createPageBlob(e,t,r,n,function(e){a(e)}):i==O.BlobTypes.BLOCK&&a()},H.SpeedSummary=C,r.exports=H}).call(this,i("buffer").Buffer)},{"../../common/errors/errors":5,"../../common/models/accountpropertiesresult":11,"./../../common/common.core":3,"./../../common/md5-wrapper":10,"./../../common/streams/rangestream":30,"./blobutilities":43,"./internal/blockrangestream":44,"./internal/pagerangestream":45,"./models/blobresult":46,"./models/blocklistresult":47,"./models/containerresult":48,"./models/leaseresult":49,buffer:100,extend:138,querystring:186,underscore:229,url:230,util:234}],43:[function(e,t,i){t.exports;t.exports={SharedAccessPermissions:{READ:"r",ADD:"a",CREATE:"c",WRITE:"w",DELETE:"d",LIST:"l"},BlobListingDetails:{SNAPSHOTS:"snapshots",METADATA:"metadata",UNCOMMITTED_BLOBS:"uncommittedblobs",COPY:"copy",DELETED:"deleted"},SnapshotDeleteOptions:{SNAPSHOTS_ONLY:"only",BLOB_AND_SNAPSHOTS:"include"},BlockListFilter:{ALL:"all",COMMITTED:"committed",UNCOMMITTED:"uncommitted"},BlobContainerPublicAccessType:{OFF:null,CONTAINER:"container",BLOB:"blob"},SequenceNumberAction:{MAX:"max",UPDATE:"update",INCREMENT:"increment"},BlobTier:{PremiumPageBlobTier:{P4:"P4",P6:"P6",P10:"P10",P20:"P20",P30:"P30",P40:"P40",P50:"P50",P60:"P60"},StandardBlobTier:{HOT:"Hot",COOL:"Cool",ARCHIVE:"Archive"}}}},{}],44:[function(e,t,i){var o=e("./../../../common/util/constants"),n=e("events").EventEmitter,r=e("./../blobutilities");function a(e,t,i,r){this.blobServiceClient=e,this.container=t,this.blob=i,this._emitter=new n,this._paused=!1,this._emittedAll=!1,this._emittedRangeType=null,this._emittedRangeIndex=null,this._offset=0,this._rangelist=[],this._isEmitting=!1,r.rangeStart?this._startOffset=r.rangeStart:this._startOffset=0,r.rangeEnd?this._endOffset=r.rangeEnd:this._endOffset=Number.MAX_VALUE}a.prototype.on=function(e,t){this._emitter.on(e,t)},a.prototype.list=function(e,n){e||(e={}),e.blockListFilter||(e.blockListFilter=r.BlockListFilter.ALL);var a=this;this.blobServiceClient.listBlocks(this.container,this.blob,e.blockListFilter,e,function(e,t,i){if(e)n(e);else{var r=parseInt(i.headers[o.HeaderConstants.BLOB_CONTENT_LENGTH],10);if(!t.CommittedBlocks){t.CommittedBlocks=[{Name:"NODESDK_BLOCKBLOB_RANGESTREAM",Size:r}]}a._rangelist=t,a._emitBlockList(),a=t=null}})},a.prototype._emitBlockList=function(){if(!(this._paused||this._emittedAll||this._isEmitting)){var e=this;this._getTypeList(function(){e._rangelist=null,e._emittedAll=!0,e._emitter.emit("end")})}},a.prototype._getTypeList=function(e){this._isEmitting=!0;try{var t=!1;if(this._rangelist)for(var i in this._rangelist)if(this._rangelist.hasOwnProperty(i)){if(null===this._emittedRangeType||t||this._emittedRangeType==i)this._emittedRangeType=i,t=!0;else if(this._emittedRangeType!==i)continue;if(this._paused)return;this._emitBlockRange(i,e)}}finally{this._isEmitting=!1}},a.prototype._emitBlockRange=function(e,t){for(var i=this._rangelist[e],r=!1,n=0;n<i.length;n++){if(null===this._emittedRangeIndex||r||this._emittedRangeIndex===n)this._emittedRangeIndex=n,r=!0;else if(this._emittedRangeIndex!==n)continue;if(this._paused)return;var a=i[n];if(a.name=a.Name,a.type=e,a.start=this._offset,this._offset+=parseInt(a.Size,10),a.end=this._offset-1,delete a.Name,delete a.Size,a.start>this._endOffset)break;a.end<this._startOffset||(a.start=Math.max(a.start,this._startOffset),a.end=Math.min(a.end,this._endOffset),a.size=a.end-a.start+1,a.dataSize=a.size,this._emitter.emit("range",a))}this._rangelist[e]=null,t()},a.prototype.pause=function(){this._paused=!0},a.prototype.resume=function(){this._paused=!1,this._isEmitting||this._emitBlockList()},a.prototype.stop=function(){this.pause(),this._emittedAll=!0,this._emitter.emit("end")},t.exports=a},{"./../../../common/util/constants":33,"./../blobutilities":43,events:136}],45:[function(e,t,i){var r=e("util"),n=e("./../../../common/streams/rangestream"),a=e("./../../../common/util/constants");function o(e,t,i,r){o.super_.call(this,e,t,i,r),r.minRangeSize?this._minRangeSize=r.minRangeSize:this._minRangeSize=a.BlobConstants.MIN_WRITE_PAGE_SIZE_IN_BYTES,r.maxRangeSize?this._maxRangeSize=r.maxRangeSize:this._maxRangeSize=a.BlobConstants.DEFAULT_WRITE_PAGE_SIZE_IN_BYTES,this._lengthHeader=a.HeaderConstants.BLOB_CONTENT_LENGTH,this._listFunc=e.listPageRanges}r.inherits(o,n),t.exports=o},{"./../../../common/streams/rangestream":30,"./../../../common/util/constants":33,util:234}],46:[function(e,t,i){var o=e("underscore"),r=e("./../../../common/common.core"),s=r.util,c=r.Constants.HeaderConstants;function n(e,t){e&&(this.container=e),t&&(this.name=t)}n.parse=function(e){var t=new n;for(var i in e)if(e.hasOwnProperty(i))if("Properties"===i)s.setPropertyValueFromXML(t,e[i],!0);else if("Metadata"===i){var r=s.normalizePropertyNameFromXML(i);t[r]={},s.setPropertyValueFromXML(t[r],e[i],!1)}else t[i.toLowerCase()]=e[i];return void 0!==t.isIncrementalCopy&&(t.isIncrementalCopy="true"===t.isIncrementalCopy),void 0!==t.accessTierInferred&&(t.accessTierInferred="true"===t.accessTierInferred),void 0!==t.deleted&&(t.deleted="true"==t.deleted),void 0!==t.remainingRetentionDays&&(t.remainingRetentionDays=parseInt(t.remainingRetentionDays)),t};var l={lastModified:"LAST_MODIFIED",creationTime:"CREATION_TIME",etag:"ETAG",sequenceNumber:"SEQUENCE_NUMBER",blobType:"BLOB_TYPE",contentLength:"CONTENT_LENGTH",blobContentLength:"BLOB_CONTENT_LENGTH",contentRange:"CONTENT_RANGE",committedBlockCount:"BLOB_COMMITTED_BLOCK_COUNT",serverEncrypted:"SERVER_ENCRYPTED",requestId:"REQUEST_ID",range:"RANGE",blobRange:"STORAGE_RANGE",getContentMd5:"RANGE_GET_CONTENT_MD5",acceptRanges:"ACCEPT_RANGES",appendOffset:"BLOB_APPEND_OFFSET",accessTier:"ACCESS_TIER",accessTierChangeTime:"ACCESS_TIER_CHANGE_TIME",accessTierInferred:"ACCESS_TIER_INFERRED",archiveStatus:"ARCHIVE_STATUS",isIncrementalCopy:"INCREMENTAL_COPY","contentSettings.contentType":"CONTENT_TYPE","contentSettings.contentEncoding":"CONTENT_ENCODING","contentSettings.contentLanguage":"CONTENT_LANGUAGE","contentSettings.cacheControl":"CACHE_CONTROL","contentSettings.contentDisposition":"CONTENT_DISPOSITION","contentSettings.contentMD5":"CONTENT_MD5","lease.id":"LEASE_ID","lease.status":"LEASE_STATUS","lease.duration":"LEASE_DURATION","lease.state":"LEASE_STATE","copy.id":"COPY_ID","copy.status":"COPY_STATUS","copy.source":"COPY_SOURCE","copy.progress":"COPY_PROGRESS","copy.completionTime":"COPY_COMPLETION_TIME","copy.statusDescription":"COPY_STATUS_DESCRIPTION","copy.destinationSnapshot":"COPY_DESTINATION_SNAPSHOT"};n.prototype.getPropertiesFromHeaders=function(r){var n=this,a=function(e,t){if(!s.tryGetValueChain(n,e.split("."),null)&&r[t.toLowerCase()]&&(s.setObjectInnerPropertyValue(n,e.split("."),r[t.toLowerCase()]),"copy.progress"===e)){var i=s.parseCopyProgress(n.copy.progress);n.copy.bytesCopied=parseInt(i.bytesCopied),n.copy.totalBytes=parseInt(i.totalBytes)}};a("contentSettings.contentMD5",c.BLOB_CONTENT_MD5),o.chain(l).pairs().each(function(e){var t=e[0],i=c[e[1]];a(t,i)}),void 0!==n.isIncrementalCopy&&(n.isIncrementalCopy="true"===n.isIncrementalCopy),void 0!==n.accessTierInferred&&(n.accessTierInferred="true"==n.accessTierInferred)},n.setHeadersFromBlob=function(r,n){var e=function(e,t){var i=s.tryGetValueChain(n,t.split("."),null);i&&r.withHeader(e,i)};if(n){if(e(c.BLOB_CONTENT_TYPE,"contentSettings.contentType"),e(c.BLOB_CONTENT_ENCODING,"contentSettings.contentEncoding"),e(c.BLOB_CONTENT_LANGUAGE,"contentSettings.contentLanguage"),e(c.BLOB_CONTENT_DISPOSITION,"contentSettings.contentDisposition"),e(c.BLOB_CACHE_CONTROL,"contentSettings.cacheControl"),e(c.BLOB_CONTENT_MD5,"contentSettings.contentMD5"),e(c.CONTENT_LENGTH,"contentLength"),e(c.CONTENT_MD5,"transactionalContentMD5"),!s.objectIsNull(n.rangeStart)){var t="bytes="+n.rangeStart+"-";s.objectIsNull(n.rangeEnd)||(t+=n.rangeEnd),r.withHeader(c.RANGE,t)}if(!s.objectIsNull(n.sourceRangeStart)){var i="bytes="+n.sourceRangeStart+"-";s.objectIsNull(n.sourceRangeEnd)||(i+=n.sourceRangeEnd),r.withHeader(c.SOURCE_RANGE,i)}e(c.BLOB_TYPE,"blobType"),e(c.LEASE_ID,"leaseId"),e(c.SEQUENCE_NUMBER,"sequenceNumber"),e(c.SEQUENCE_NUMBER_ACTION,"sequenceNumberAction"),n.metadata&&r.addOptionalMetadataHeaders(n.metadata)}},n.setPropertiesFromBlob=function(r,n){var e=function(e,t){var i=s.tryGetValueChain(n,t.split("."),null);i&&r.withHeader(e,i)};n&&(e(c.BLOB_CONTENT_TYPE,"contentSettings.contentType"),e(c.BLOB_CONTENT_ENCODING,"contentSettings.contentEncoding"),e(c.BLOB_CONTENT_LANGUAGE,"contentSettings.contentLanguage"),e(c.BLOB_CONTENT_DISPOSITION,"contentSettings.contentDisposition"),e(c.BLOB_CACHE_CONTROL,"contentSettings.cacheControl"),e(c.BLOB_CONTENT_MD5,"contentSettings.contentMD5"),e(c.LEASE_ID,"leaseId"),n.metadata&&r.addOptionalMetadataHeaders(n.metadata))},t.exports=n},{"./../../../common/common.core":3,underscore:229}],47:[function(t,e,o){(function(i){var r=t("underscore"),e=t("./../../../common/common.core"),n=e.xmlbuilder,a=e.Constants;o.serialize=function(e){var t=n.create();return t=t.begin(a.BlobConstants.BLOCK_LIST_ELEMENT,{version:"1.0",encoding:"utf-8"}),r.isArray(e.LatestBlocks)&&e.LatestBlocks.forEach(function(e){t=t.ele(a.BlobConstants.LATEST_ELEMENT).txt(new i(e).toString("base64")).up()}),r.isArray(e.CommittedBlocks)&&e.CommittedBlocks.forEach(function(e){t=t.ele(a.BlobConstants.COMMITTED_ELEMENT).txt(new i(e).toString("base64")).up()}),r.isArray(e.UncommittedBlocks)&&e.UncommittedBlocks.forEach(function(e){t=t.ele(a.BlobConstants.UNCOMMITTED_ELEMENT).txt(new i(e).toString("base64")).up()}),t.doc().toString()},o.parse=function(e){var t={};return e.CommittedBlocks&&e.CommittedBlocks.Block&&(t.CommittedBlocks=e.CommittedBlocks.Block,r.isArray(t.CommittedBlocks)||(t.CommittedBlocks=[t.CommittedBlocks]),t.CommittedBlocks.forEach(function(e){e.Name=new i(e.Name,"base64").toString()})),e.UncommittedBlocks&&e.UncommittedBlocks.Block&&(t.UncommittedBlocks=e.UncommittedBlocks.Block,r.isArray(t.UncommittedBlocks)||(t.UncommittedBlocks=[t.UncommittedBlocks]),t.UncommittedBlocks.forEach(function(e){e.Name=new i(e.Name,"base64").toString()})),t}}).call(this,t("buffer").Buffer)},{"./../../../common/common.core":3,buffer:100,underscore:229}],48:[function(e,t,i){var r=e("./../../../common/common.core"),n=r.util,a=r.Constants.HeaderConstants,o=e("../blobutilities");function s(e,t){e&&(this.name=e),t&&(this.publicAccessLevel=t)}s.parse=function(e){var t=new s;for(var i in e)if(e.hasOwnProperty(i))if("Properties"===i)n.setPropertyValueFromXML(t,e[i],!0);else if("Metadata"===i){var r=n.normalizePropertyNameFromXML(i);t[r]={},n.setPropertyValueFromXML(t[r],e[i],!1)}else t[i.toLowerCase()]=e[i];return t.publicAccessLevel||(t.publicAccessLevel=o.BlobContainerPublicAccessType.OFF),void 0!==t.hasImmutabilityPolicy&&(t.hasImmutabilityPolicy="true"===t.hasImmutabilityPolicy),void 0!==t.hasLegalHold&&(t.hasLegalHold="true"===t.hasLegalHold),t},s.prototype.getPropertiesFromHeaders=function(i){var r=this,e=function(e,t){!n.tryGetValueChain(r,e.split("."),null)&&i[t.toLowerCase()]&&n.setObjectInnerPropertyValue(r,e.split("."),i[t.toLowerCase()])};e("etag",a.ETAG),e("lastModified",a.LAST_MODIFIED),e("lease.status",a.LEASE_STATUS),e("lease.state",a.LEASE_STATE),e("lease.duration",a.LEASE_DURATION),e("requestId",a.REQUEST_ID),e("hasImmutabilityPolicy",a.HAS_IMMUTABILITY_POLICY),e("hasLegalHold",a.HAS_LEGAL_HOLD),void 0!==r.hasImmutabilityPolicy&&(r.hasImmutabilityPolicy="true"===r.hasImmutabilityPolicy),void 0!==r.hasLegalHold&&(r.hasLegalHold="true"===r.hasLegalHold),r.publicAccessLevel||(r.publicAccessLevel=o.BlobContainerPublicAccessType.OFF,i[a.BLOB_PUBLIC_ACCESS]&&(r.publicAccessLevel=i[a.BLOB_PUBLIC_ACCESS])),"true"===r.publicAccessLevel&&(r.publicAccessLevel=o.BlobContainerPublicAccessType.CONTAINER)},t.exports=s},{"../blobutilities":43,"./../../../common/common.core":3}],49:[function(e,t,i){var r=e("./../../../common/common.core").Constants.HeaderConstants;function n(e,t,i,r){e&&(this.container=e),t&&(this.blob=t),i&&(this.id=i),r&&(this.time=r)}n.prototype.getPropertiesFromHeaders=function(e){var t=this;!t.id&&e[r.LEASE_ID]&&(t.id=e[r.LEASE_ID]),!t.time&&e[r.LEASE_TIME]&&(t.time=parseInt(e[r.LEASE_TIME],10)),t.etag=e[r.ETAG],t.lastModified=e[r.LAST_MODIFIED.toLowerCase()]},t.exports=n},{"./../../../common/common.core":3}],50:[function(e,t,i){t.exports;t.exports={SharedAccessPermissions:{READ:"r",CREATE:"c",WRITE:"w",DELETE:"d",LIST:"l"},ListingDetails:{METADATA:"metadata"},SharePublicAccessType:{OFF:null,SHARE:"share",FILE:"file"},ShareSnapshotDeleteOptions:{SHARE_AND_SNAPSHOTS:"include"}}},{}],51:[function(e,t,i){t.exports;var r,n={SharedAccessPermissions:{QUERY:"r",ADD:"a",UPDATE:"u",DELETE:"d"},PayloadFormat:{FULL_METADATA:"application/json;odata=fullmetadata",MINIMAL_METADATA:"application/json;odata=minimalmetadata",NO_METADATA:"application/json;odata=nometadata"},TableOperators:{AND:"and",NOT:"not",OR:"or"},QueryComparisons:{EQUAL:"eq",NOT_EQUAL:"ne",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL:"ge",LESS_THAN:"lt",LESS_THAN_OR_EQUAL:"le"},EdmType:{STRING:"Edm.String",BINARY:"Edm.Binary",INT64:"Edm.Int64",INT32:"Edm.Int32",DOUBLE:"Edm.Double",DATETIME:"Edm.DateTime",GUID:"Edm.Guid",BOOLEAN:"Edm.Boolean"},entityGenerator:(r=function(e,t){var i={_:e};return t&&(i.$=t),i},{EntityProperty:r,Int32:function(e){return new r(e,"Edm.Int32")},Int64:function(e){return new r(e,"Edm.Int64")},Binary:function(e){return new r(e,"Edm.Binary")},Boolean:function(e){return new r(e,"Edm.Boolean")},String:function(e){return new r(e,"Edm.String")},Guid:function(e){return new r(e,"Edm.Guid")},Double:function(e){return new r(e,"Edm.Double")},DateTime:function(e){return new r(e,"Edm.DateTime")}})};t.exports=n},{}],52:[function(e,t,i){var r=i;r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":53,"./asn1/base":55,"./asn1/constants":59,"./asn1/decoders":61,"./asn1/encoders":64,"bn.js":67}],53:[function(e,t,i){var r=e("../asn1"),n=e("inherits");function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}i.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(t){var i;try{i=e("vm").runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(e){i=function(e){this._initNamed(e)}}return n(i,t),i.prototype._initNamed=function(e){t.call(this,e)},new i(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},{"../asn1":52,inherits:155,vm:311}],54:[function(e,t,i){var r=e("inherits"),n=e("../base").Reporter,a=e("buffer").Buffer;function o(e,t){n.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}}r(o,n),(i.DecoderBuffer=o).prototype.save=function(){return{offset:this.offset,reporter:n.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,n.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 i=new o(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},(i.EncoderBuffer=s).prototype.join=function(t,i){return t||(t=new a(this.length)),i||(i=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(e){e.join(t,i),i+=e.length}):("number"==typeof this.value?t[i]=this.value:"string"==typeof this.value?t.write(this.value,i):a.isBuffer(this.value)&&this.value.copy(t,i),i+=this.length)),t}},{"../base":55,buffer:100,inherits:155}],55:[function(e,t,i){var r=i;r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":54,"./node":56,"./reporter":57}],56:[function(e,t,i){var u=e("../base").Reporter,r=e("../base").EncoderBuffer,p=e("../base").DecoderBuffer,n=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 i={};(this._baseState=i).enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=s;var c=["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,i={};c.forEach(function(e){i[e]=t[e]});var e=new this.constructor(i.parent);return e._baseState=i,e},s.prototype._wrap=function(){var i=this._baseState;o.forEach(function(t){this[t]=function(){var e=new this.constructor(this);return i.children.push(e),e[t].apply(e,arguments)}},this)},s.prototype._init=function(e){var t=this._baseState;n(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),n.equal(t.children.length,1,"Root node can have only one child")},s.prototype._useArgs=function(e){var t=this._baseState,i=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==i.length&&(n(null===t.children),(t.children=i).forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(n(null===t.args),t.args=e,t.reverseArgs=e.map(function(i){if("object"!=typeof i||i.constructor!==Object)return i;var r={};return Object.keys(i).forEach(function(e){e==(0|e)&&(e|=0);var t=i[e];r[t]=e}),r}))},["_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(i){s.prototype[i]=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return n(null===e.tag),e.tag=i,this._useArgs(t),this}}),s.prototype.use=function(e){n(e);var t=this._baseState;return n(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 n(null===t.default),t.default=e,t.optional=!0,this},s.prototype.explicit=function(e){var t=this._baseState;return n(null===t.explicit&&null===t.implicit),t.explicit=e,this},s.prototype.implicit=function(e){var t=this._baseState;return n(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 n(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 n(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 n(null===t.use),t.contains=e,this},s.prototype._decode=function(t,i){var e=this._baseState;if(null===e.parent)return t.wrapResult(e.children[0]._decode(t,i));var r,n=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 c=t.save();try{null===e.choice?this._decodeGeneric(e.tag,t,i):this._decodeChoice(t,i),a=!0}catch(e){a=!1}t.restore(c)}}if(e.obj&&a&&(r=t.enterObject()),a){if(null!==e.explicit){var l=this._decodeTag(t,e.explicit);if(t.isError(l))return l;t=l}var u=t.offset;if(null===e.use&&null===e.choice){if(e.any)c=t.save();var f=this._decodeTag(t,null!==e.implicit?e.implicit:e.tag,e.any);if(t.isError(f))return f;e.any?n=t.raw(c):t=f}if(i&&i.track&&null!==e.tag&&i.track(t.path(),u,t.length,"tagged"),i&&i.track&&null!==e.tag&&i.track(t.path(),t.offset,t.length,"content"),n=e.any?n:null===e.choice?this._decodeGeneric(e.tag,t,i):this._decodeChoice(t,i),t.isError(n))return n;if(e.any||null!==e.choice||null===e.children||e.children.forEach(function(e){e._decode(t,i)}),e.contains&&("octstr"===e.tag||"bitstr"===e.tag)){var d=new p(n);n=this._getUse(e.contains,t._reporterState.obj)._decode(d,i)}}return e.obj&&a&&(n=t.leaveObject(r)),null===e.key||null===n&&!0!==a?null!==o&&t.exitKey(o):t.leaveKey(o,e.key,n),n},s.prototype._decodeGeneric=function(e,t,i){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],i):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},s.prototype._getUse=function(e,t){var i=this._baseState;return i.useDecoder=this._use(e,t),n(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},s.prototype._decodeChoice=function(n,a){var o=this._baseState,s=null,c=!1;return Object.keys(o.choice).some(function(e){var t=n.save(),i=o.choice[e];try{var r=i._decode(n,a);if(n.isError(r))return!1;s={type:e,value:r},c=!0}catch(e){return n.restore(t),!1}return!0},this),c?s:n.error("Choice not matched")},s.prototype._createEncoderBuffer=function(e){return new r(e,this.reporter)},s.prototype._encode=function(e,t,i){var r=this._baseState;if(null===r.default||r.default!==e){var n=this._encodeValue(e,t,i);if(void 0!==n&&!this._skipDefault(n,t,i))return n}},s.prototype._encodeValue=function(r,n,e){var t=this._baseState;if(null===t.parent)return t.children[0]._encode(r,n||new u);var i=null;if(this.reporter=n,t.optional&&void 0===r){if(null===t.default)return;r=t.default}var a=null,o=!1;if(t.any)i=this._createEncoderBuffer(r);else if(t.choice)i=this._encodeChoice(r,n);else if(t.contains)a=this._getUse(t.contains,e)._encode(r,n),o=!0;else if(t.children)a=t.children.map(function(e){if("null_"===e._baseState.tag)return e._encode(null,n,r);if(null===e._baseState.key)return n.error("Child should have a key");var t=n.enterKey(e._baseState.key);if("object"!=typeof r)return n.error("Child expected, but input is not object");var i=e._encode(r[e._baseState.key],n,r);return n.leaveKey(t),i},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 n.error("Too many args for : "+t.tag);if(!Array.isArray(r))return n.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(r.map(function(e){var t=this._baseState;return this._getUse(t.args[0],r)._encode(e,n)},s))}else null!==t.use?i=this._getUse(t.use,e)._encode(r,n):(a=this._encodePrimitive(t.tag,r),o=!0);if(!t.any&&null===t.choice){var c=null!==t.implicit?t.implicit:t.tag,l=null===t.implicit?"universal":"context";null===c?null===t.use&&n.error("Tag could be omitted only for .use()"):null===t.use&&(i=this._encodeComposite(c,o,l,a))}return null!==t.explicit&&(i=this._encodeComposite(t.explicit,!1,"context",i)),i},s.prototype._encodeChoice=function(e,t){var i=this._baseState,r=i.choice[e.type];return r||n(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(e.value,t)},s.prototype._encodePrimitive=function(e,t){var i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.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,i.args&&i.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":55,"minimalistic-assert":162}],57:[function(e,t,i){var r=e("inherits");function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}(i.Reporter=n).prototype.isError=function(e){return e instanceof a},n.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,i){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){var t=this._reporterState,i=t.obj;return t.obj=e,i},n.prototype.error=function(e){var t,i=this._reporterState,r=e instanceof a;if(t=r?e:new a(i.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!i.options.partial)throw t;return r||i.errors.push(t),t},n.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(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:155}],58:[function(e,t,i){var r=e("../constants");i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=r._reverse(i.tagClass),i.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"},i.tagByName=r._reverse(i.tag)},{"../constants":59}],59:[function(e,t,i){var r=i;r._reverse=function(i){var r={};return Object.keys(i).forEach(function(e){(0|e)==e&&(e|=0);var t=i[e];r[t]=e}),r},r.der=e("./der")},{"./der":58}],60:[function(e,t,i){var r=e("inherits"),n=e("../../asn1"),a=n.base,o=n.bignum,s=n.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){a.Node.call(this,"der",e)}function u(e,t){var i=e.readUInt8(t);if(e.isError(i))return i;var r=s.tagClass[i>>6],n=0==(32&i);if(31==(31&i)){var a=i;for(i=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;i<<=7,i|=127&a}}else i&=31;return{cls:r,primitive:n,tag:i,tagStr:s.tag[i]}}function f(e,t,i){var r=e.readUInt8(i);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var n=127&r;if(4<n)return e.error("length octect is too long");for(var a=r=0;a<n;a++){r<<=8;var o=e.readUInt8(i);if(e.isError(o))return o;r|=o}return r}(t.exports=c).prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},r(l,a.Node),l.prototype._peekTag=function(e,t,i){if(e.isEmpty())return!1;var r=e.save(),n=u(e,'Failed to peek tag: "'+t+'"');return e.isError(n)?n:(e.restore(r),n.tag===t||n.tagStr===t||n.tagStr+"of"===t||i)},l.prototype._decodeTag=function(e,t,i){var r=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var n=f(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(n))return n;if(!i&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==n)return e.skip(n,'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:(n=e.offset-a.offset,e.restore(a),e.skip(n,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){var i=u(e,t);if(e.isError(i))return i;var r,n=f(e,i.primitive,t);if(e.isError(n))return n;if(r=i.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===i.tagStr)break}},l.prototype._decodeList=function(e,t,i,r){for(var n=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=i.decode(e,"der",r);if(e.isError(o)&&a)break;n.push(o)}return n},l.prototype._decodeStr=function(e,t){if("bitstr"===t){var i=e.readUInt8();return e.isError(i)?i:{unused:i,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var n="",a=0;a<r.length/2;a++)n+=String.fromCharCode(r.readUInt16BE(2*a));return n}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){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},l.prototype._decodeObjid=function(e,t,i){for(var r,n=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,0==(128&o)&&(n.push(a),a=0)}128&o&&n.push(a);var s=n[0]/40|0,c=n[0]%40;if(r=i?n:[s,c].concat(n.slice(1)),t){var l=t[r.join(" ")];void 0===l&&(l=t[r.join(".")]),void 0!==l&&(r=l)}return r},l.prototype._decodeTime=function(e,t){var i=e.raw().toString();if("gentime"===t)var r=0|i.slice(0,4),n=0|i.slice(4,6),a=0|i.slice(6,8),o=0|i.slice(8,10),s=0|i.slice(10,12),c=0|i.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|i.slice(0,2),n=0|i.slice(2,4),a=0|i.slice(4,6),o=0|i.slice(6,8),s=0|i.slice(8,10),c=0|i.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,n-1,a,o,s,c,0)},l.prototype._decodeNull=function(e){return null},l.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){var i=e.raw(),r=new o(i);return t&&(r=t[r.toString(10)]||r),r},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../../asn1":52,inherits:155}],61:[function(e,t,i){var r=i;r.der=e("./der"),r.pem=e("./pem")},{"./der":60,"./pem":62}],62:[function(e,t,i){var r=e("inherits"),f=e("buffer").Buffer,d=e("./der");function n(e){d.call(this,e),this.enc="pem"}r(n,d),(t.exports=n).prototype.decode=function(e,t){for(var i=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),n=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,o=-1,s=0;s<i.length;s++){var c=i[s].match(n);if(null!==c&&c[2]===r){if(-1!==a){if("END"!==c[1])break;o=s;break}if("BEGIN"!==c[1])break;a=s}}if(-1===a||-1===o)throw new Error("PEM section not found for: "+r);var l=i.slice(a+1,o).join("");l.replace(/[^a-z0-9\+\/=]+/gi,"");var u=new f(l,"base64");return d.prototype.decode.call(this,u,t)}},{"./der":60,buffer:100,inherits:155}],63:[function(e,t,i){var r=e("inherits"),l=e("buffer").Buffer,n=e("../../asn1"),a=n.base,u=n.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 c(e){return e<10?"0"+e:e}(t.exports=o).prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(s,a.Node),s.prototype._encodeComposite=function(e,t,i,r){var n,a=function(e,t,i,r){var n;"seqof"===e?e="seq":"setof"===e&&(e="set");if(u.tagByName.hasOwnProperty(e))n=u.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);n=e}if(31<=n)return r.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=u.tagClassByName[i||"universal"]<<6}(e,t,i,this.reporter);if(r.length<128)return(n=new l(2))[0]=a,n[1]=r.length,this._createEncoderBuffer([n,r]);for(var o=1,s=r.length;256<=s;s>>=8)o++;(n=new l(2+o))[0]=a,n[1]=128|o;s=1+o;for(var c=r.length;0<c;s--,c>>=8)n[s]=255&c;return this._createEncoderBuffer([n,r])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var i=new l(2*e.length),r=0;r<e.length;r++)i.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(i)}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)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},s.prototype._encodeObjid=function(e,t,i){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 r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(r=0;r<e.length;r++)e[r]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!i){if(40<=e[1])return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var n=0;for(r=0;r<e.length;r++){var a=e[r];for(n++;128<=a;a>>=7)n++}var o=new l(n),s=o.length-1;for(r=e.length-1;0<=r;r--){a=e[r];for(o[s--]=127&a;0<(a>>=7);)o[s--]=128|127&a}return this._createEncoderBuffer(o)},s.prototype._encodeTime=function(e,t){var i,r=new Date(e);return"gentime"===t?i=[c(r.getFullYear()),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[c(r.getFullYear()%100),c(r.getUTCMonth()+1),c(r.getUTCDate()),c(r.getUTCHours()),c(r.getUTCMinutes()),c(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"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&&!l.isBuffer(e)){var i=e.toArray();!e.sign&&128&i[0]&&i.unshift(0),e=new l(i)}if(l.isBuffer(e)){var r=e.length;0===e.length&&r++;var n=new l(r);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var a=e;256<=a;a>>=8)r++;for(a=(n=new Array(r)).length-1;0<=a;a--)n[a]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(new l(n))},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,i){var r,n=this._baseState;if(null===n.default)return!1;var a=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,i).join()),a.length!==n.defaultBuffer.length)return!1;for(r=0;r<a.length;r++)if(a[r]!==n.defaultBuffer[r])return!1;return!0}},{"../../asn1":52,buffer:100,inherits:155}],64:[function(e,t,i){var r=i;r.der=e("./der"),r.pem=e("./pem")},{"./der":63,"./pem":65}],65:[function(e,t,i){var r=e("inherits"),a=e("./der");function n(e){a.call(this,e),this.enc="pem"}r(n,a),(t.exports=n).prototype.encode=function(e,t){for(var i=a.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],n=0;n<i.length;n+=64)r.push(i.slice(n,n+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},{"./der":63,inherits:155}],66:[function(e,t,i){"use strict";i.byteLength=function(e){var t=p(e),i=t[0],r=t[1];return 3*(i+r)/4-r},i.toByteArray=function(e){for(var t,i=p(e),r=i[0],n=i[1],a=new d((l=r,u=n,3*(l+u)/4-u)),o=0,s=0<n?r-4:r,c=0;c<s;c+=4)t=f[e.charCodeAt(c)]<<18|f[e.charCodeAt(c+1)]<<12|f[e.charCodeAt(c+2)]<<6|f[e.charCodeAt(c+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=255&t;var l,u;2===n&&(t=f[e.charCodeAt(c)]<<2|f[e.charCodeAt(c+1)]>>4,a[o++]=255&t);1===n&&(t=f[e.charCodeAt(c)]<<10|f[e.charCodeAt(c+1)]<<4|f[e.charCodeAt(c+2)]>>2,a[o++]=t>>8&255,a[o++]=255&t);return a},i.fromByteArray=function(e){for(var t,i=e.length,r=i%3,n=[],a=0,o=i-r;a<o;a+=16383)n.push(c(e,a,o<a+16383?o:a+16383));1===r?(t=e[i-1],n.push(s[t>>2]+s[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return n.join("")};for(var s=[],f=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,a=r.length;n<a;++n)s[n]=r[n],f[r.charCodeAt(n)]=n;function p(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function c(e,t,i){for(var r,n,a=[],o=t;o<i;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(s[(n=r)>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return a.join("")}f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},{}],67:[function(S,e,t){!function(e,t){"use strict";function b(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function g(e,t,i){if(g.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var r;"object"==typeof e?e.exports=g:t.BN=g,(g.BN=g).wordSize=26;try{r=S("buffer").Buffer}catch(e){}function o(e,t,i){for(var r=0,n=Math.min(e.length,i),a=t;a<n;a++){var o=e.charCodeAt(a)-48;r<<=4,r|=49<=o&&o<=54?o-49+10:17<=o&&o<=22?o-17+10:15&o}return r}function f(e,t,i,r){for(var n=0,a=Math.min(e.length,i),o=t;o<a;o++){var s=e.charCodeAt(o)-48;n*=r,n+=49<=s?s-49+10:17<=s?s-17+10:s}return n}g.isBN=function(e){return e instanceof g||null!==e&&"object"==typeof e&&e.constructor.wordSize===g.wordSize&&Array.isArray(e.words)},g.max=function(e,t){return 0<e.cmp(t)?e:t},g.min=function(e,t){return e.cmp(t)<0?e:t},g.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),b(t===(0|t)&&2<=t&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===t?this._parseHex(e,r):this._parseBase(e,t,r),"-"===e[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),t,i)},g.prototype._initNumber=function(e,t,i){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):(b(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},g.prototype._initArray=function(e,t,i){if(b("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 r=0;r<this.length;r++)this.words[r]=0;var n,a,o=0;if("be"===i)for(r=e.length-1,n=0;0<=r;r-=3)a=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[n]|=a<<o&67108863,this.words[n+1]=a>>>26-o&67108863,26<=(o+=24)&&(o-=26,n++);else if("le"===i)for(n=r=0;r<e.length;r+=3)a=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[n]|=a<<o&67108863,this.words[n+1]=a>>>26-o&67108863,26<=(o+=24)&&(o-=26,n++);return this.strip()},g.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n,a=0;for(i=e.length-6,r=0;t<=i;i-=6)n=o(e,i,i+6),this.words[r]|=n<<a&67108863,this.words[r+1]|=n>>>26-a&4194303,26<=(a+=24)&&(a-=26,r++);i+6!==t&&(n=o(e,t,i+6),this.words[r]|=n<<a&67108863,this.words[r+1]|=n>>>26-a&4194303),this.strip()},g.prototype._parseBase=function(e,t,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var a=e.length-i,o=a%r,s=Math.min(a,a-o)+i,c=0,l=i;l<s;l+=r)c=f(e,l,l+r,t),this.imuln(n),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var u=1;for(c=f(e,l,e.length,t),l=0;l<o;l++)u*=t;this.imuln(u),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},g.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},g.prototype.clone=function(){var e=new g(null);return this.copy(e),e},g.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},g.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},g.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},g.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","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"],p=[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],h=[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 n(e,t,i){i.negative=t.negative^e.negative;var r=e.length+t.length|0;r=(i.length=r)-1|0;var n=0|e.words[0],a=0|t.words[0],o=n*a,s=67108863&o,c=o/67108864|0;i.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,f=67108863&c,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;u+=(o=(n=0|e.words[h])*(a=0|t.words[p])+f)/67108864|0,f=67108863&o}i.words[l]=0|f,c=0|u}return 0!==c?i.words[l]=0|c:i.length--,i.strip()}g.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,n=0,a=0;a<this.length;a++){var o=this.words[a],s=(16777215&(o<<r|n)).toString(16);i=0!==(n=o>>>24-r&16777215)||a!==this.length-1?d[6-s.length]+s+i:s+i,26<=(r+=2)&&(r-=26,a--)}for(0!==n&&(i=n.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&2<=e&&e<=36){var c=p[e],l=h[e];i="";var u=this.clone();for(u.negative=0;!u.isZero();){var f=u.modn(l).toString(e);i=(u=u.idivn(l)).isZero()?f+i:d[c-f.length]+f+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}b(!1,"Base should be between 2 and 36")},g.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&&b(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},g.prototype.toJSON=function(){return this.toString(16)},g.prototype.toBuffer=function(e,t){return b(void 0!==r),this.toArrayLike(r,e,t)},g.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},g.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),n=i||Math.max(1,r);b(r<=n,"byte array longer than desired length"),b(0<n,"Requested array length <= 0"),this.strip();var a,o,s="le"===t,c=new e(n),l=this.clone();if(s){for(o=0;!l.isZero();o++)a=l.andln(255),l.iushrn(8),c[o]=a;for(;o<n;o++)c[o]=0}else{for(o=0;o<n-r;o++)c[o]=0;for(o=0;!l.isZero();o++)a=l.andln(255),l.iushrn(8),c[n-o-1]=a}return c},g.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var t=e,i=0;return 4096<=t&&(i+=13,t>>>=13),64<=t&&(i+=7,t>>>=7),8<=t&&(i+=4,t>>>=4),2<=t&&(i+=2,t>>>=2),i+t},g.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},g.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},g.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},g.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},g.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},g.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},g.prototype.isNeg=function(){return 0!==this.negative},g.prototype.neg=function(){return this.clone().ineg()},g.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},g.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()},g.prototype.ior=function(e){return b(0==(this.negative|e.negative)),this.iuor(e)},g.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},g.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},g.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},g.prototype.iand=function(e){return b(0==(this.negative|e.negative)),this.iuand(e)},g.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},g.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},g.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var r=0;r<i.length;r++)this.words[r]=t.words[r]^i.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},g.prototype.ixor=function(e){return b(0==(this.negative|e.negative)),this.iuxor(e)},g.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},g.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},g.prototype.inotn=function(e){b("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),0<i&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return 0<i&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},g.prototype.notn=function(e){return this.clone().inotn(e)},g.prototype.setn=function(e,t){b("number"==typeof e&&0<=e);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<r:this.words[i]&~(1<<r),this.strip()},g.prototype.iadd=function(e){var t,i,r;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();this.length>e.length?(i=this,r=e):(i=e,r=this);for(var n=0,a=0;a<r.length;a++)t=(0|i.words[a])+(0|r.words[a])+n,this.words[a]=67108863&t,n=t>>>26;for(;0!==n&&a<i.length;a++)t=(0|i.words[a])+n,this.words[a]=67108863&t,n=t>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this},g.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)},g.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 i,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;0<n?(i=this,r=e):(i=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|i.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<i.length;o++)a=(t=(0|i.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},g.prototype.sub=function(e){return this.clone().isub(e)};var a=function(e,t,i){var r,n,a,o=e.words,s=t.words,c=i.words,l=0,u=0|o[0],f=8191&u,d=u>>>13,p=0|o[1],h=8191&p,m=p>>>13,b=0|o[2],g=8191&b,v=b>>>13,_=0|o[3],y=8191&_,E=_>>>13,w=0|o[4],S=8191&w,x=w>>>13,A=0|o[5],T=8191&A,I=A>>>13,N=0|o[6],R=8191&N,O=N>>>13,M=0|o[7],C=8191&M,L=M>>>13,k=0|o[8],P=8191&k,B=k>>>13,D=0|o[9],U=8191&D,j=D>>>13,F=0|s[0],H=8191&F,q=F>>>13,z=0|s[1],G=8191&z,V=z>>>13,Y=0|s[2],K=8191&Y,W=Y>>>13,X=0|s[3],Z=8191&X,$=X>>>13,Q=0|s[4],J=8191&Q,ee=Q>>>13,te=0|s[5],ie=8191&te,re=te>>>13,ne=0|s[6],ae=8191&ne,oe=ne>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;i.negative=e.negative^t.negative,i.length=19;var be=(l+(r=Math.imul(f,H))|0)+((8191&(n=(n=Math.imul(f,q))+Math.imul(d,H)|0))<<13)|0;l=((a=Math.imul(d,q))+(n>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(h,H),n=(n=Math.imul(h,q))+Math.imul(m,H)|0,a=Math.imul(m,q);var ge=(l+(r=r+Math.imul(f,G)|0)|0)+((8191&(n=(n=n+Math.imul(f,V)|0)+Math.imul(d,G)|0))<<13)|0;l=((a=a+Math.imul(d,V)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,H),n=(n=Math.imul(g,q))+Math.imul(v,H)|0,a=Math.imul(v,q),r=r+Math.imul(h,G)|0,n=(n=n+Math.imul(h,V)|0)+Math.imul(m,G)|0,a=a+Math.imul(m,V)|0;var ve=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(n=(n=n+Math.imul(f,W)|0)+Math.imul(d,K)|0))<<13)|0;l=((a=a+Math.imul(d,W)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(y,H),n=(n=Math.imul(y,q))+Math.imul(E,H)|0,a=Math.imul(E,q),r=r+Math.imul(g,G)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(v,G)|0,a=a+Math.imul(v,V)|0,r=r+Math.imul(h,K)|0,n=(n=n+Math.imul(h,W)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,W)|0;var _e=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(n=(n=n+Math.imul(f,$)|0)+Math.imul(d,Z)|0))<<13)|0;l=((a=a+Math.imul(d,$)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(S,H),n=(n=Math.imul(S,q))+Math.imul(x,H)|0,a=Math.imul(x,q),r=r+Math.imul(y,G)|0,n=(n=n+Math.imul(y,V)|0)+Math.imul(E,G)|0,a=a+Math.imul(E,V)|0,r=r+Math.imul(g,K)|0,n=(n=n+Math.imul(g,W)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,W)|0,r=r+Math.imul(h,Z)|0,n=(n=n+Math.imul(h,$)|0)+Math.imul(m,Z)|0,a=a+Math.imul(m,$)|0;var ye=(l+(r=r+Math.imul(f,J)|0)|0)+((8191&(n=(n=n+Math.imul(f,ee)|0)+Math.imul(d,J)|0))<<13)|0;l=((a=a+Math.imul(d,ee)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(T,H),n=(n=Math.imul(T,q))+Math.imul(I,H)|0,a=Math.imul(I,q),r=r+Math.imul(S,G)|0,n=(n=n+Math.imul(S,V)|0)+Math.imul(x,G)|0,a=a+Math.imul(x,V)|0,r=r+Math.imul(y,K)|0,n=(n=n+Math.imul(y,W)|0)+Math.imul(E,K)|0,a=a+Math.imul(E,W)|0,r=r+Math.imul(g,Z)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(v,Z)|0,a=a+Math.imul(v,$)|0,r=r+Math.imul(h,J)|0,n=(n=n+Math.imul(h,ee)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,ee)|0;var Ee=(l+(r=r+Math.imul(f,ie)|0)|0)+((8191&(n=(n=n+Math.imul(f,re)|0)+Math.imul(d,ie)|0))<<13)|0;l=((a=a+Math.imul(d,re)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(R,H),n=(n=Math.imul(R,q))+Math.imul(O,H)|0,a=Math.imul(O,q),r=r+Math.imul(T,G)|0,n=(n=n+Math.imul(T,V)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,V)|0,r=r+Math.imul(S,K)|0,n=(n=n+Math.imul(S,W)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,W)|0,r=r+Math.imul(y,Z)|0,n=(n=n+Math.imul(y,$)|0)+Math.imul(E,Z)|0,a=a+Math.imul(E,$)|0,r=r+Math.imul(g,J)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(h,ie)|0,n=(n=n+Math.imul(h,re)|0)+Math.imul(m,ie)|0,a=a+Math.imul(m,re)|0;var we=(l+(r=r+Math.imul(f,ae)|0)|0)+((8191&(n=(n=n+Math.imul(f,oe)|0)+Math.imul(d,ae)|0))<<13)|0;l=((a=a+Math.imul(d,oe)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(C,H),n=(n=Math.imul(C,q))+Math.imul(L,H)|0,a=Math.imul(L,q),r=r+Math.imul(R,G)|0,n=(n=n+Math.imul(R,V)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,V)|0,r=r+Math.imul(T,K)|0,n=(n=n+Math.imul(T,W)|0)+Math.imul(I,K)|0,a=a+Math.imul(I,W)|0,r=r+Math.imul(S,Z)|0,n=(n=n+Math.imul(S,$)|0)+Math.imul(x,Z)|0,a=a+Math.imul(x,$)|0,r=r+Math.imul(y,J)|0,n=(n=n+Math.imul(y,ee)|0)+Math.imul(E,J)|0,a=a+Math.imul(E,ee)|0,r=r+Math.imul(g,ie)|0,n=(n=n+Math.imul(g,re)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(h,ae)|0,n=(n=n+Math.imul(h,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var Se=(l+(r=r+Math.imul(f,ce)|0)|0)+((8191&(n=(n=n+Math.imul(f,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((a=a+Math.imul(d,le)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(P,H),n=(n=Math.imul(P,q))+Math.imul(B,H)|0,a=Math.imul(B,q),r=r+Math.imul(C,G)|0,n=(n=n+Math.imul(C,V)|0)+Math.imul(L,G)|0,a=a+Math.imul(L,V)|0,r=r+Math.imul(R,K)|0,n=(n=n+Math.imul(R,W)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,W)|0,r=r+Math.imul(T,Z)|0,n=(n=n+Math.imul(T,$)|0)+Math.imul(I,Z)|0,a=a+Math.imul(I,$)|0,r=r+Math.imul(S,J)|0,n=(n=n+Math.imul(S,ee)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,ee)|0,r=r+Math.imul(y,ie)|0,n=(n=n+Math.imul(y,re)|0)+Math.imul(E,ie)|0,a=a+Math.imul(E,re)|0,r=r+Math.imul(g,ae)|0,n=(n=n+Math.imul(g,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,r=r+Math.imul(h,ce)|0,n=(n=n+Math.imul(h,le)|0)+Math.imul(m,ce)|0,a=a+Math.imul(m,le)|0;var xe=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(n=(n=n+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((a=a+Math.imul(d,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(U,H),n=(n=Math.imul(U,q))+Math.imul(j,H)|0,a=Math.imul(j,q),r=r+Math.imul(P,G)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,V)|0,r=r+Math.imul(C,K)|0,n=(n=n+Math.imul(C,W)|0)+Math.imul(L,K)|0,a=a+Math.imul(L,W)|0,r=r+Math.imul(R,Z)|0,n=(n=n+Math.imul(R,$)|0)+Math.imul(O,Z)|0,a=a+Math.imul(O,$)|0,r=r+Math.imul(T,J)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(I,J)|0,a=a+Math.imul(I,ee)|0,r=r+Math.imul(S,ie)|0,n=(n=n+Math.imul(S,re)|0)+Math.imul(x,ie)|0,a=a+Math.imul(x,re)|0,r=r+Math.imul(y,ae)|0,n=(n=n+Math.imul(y,oe)|0)+Math.imul(E,ae)|0,a=a+Math.imul(E,oe)|0,r=r+Math.imul(g,ce)|0,n=(n=n+Math.imul(g,le)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,le)|0,r=r+Math.imul(h,fe)|0,n=(n=n+Math.imul(h,de)|0)+Math.imul(m,fe)|0,a=a+Math.imul(m,de)|0;var Ae=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(n=(n=n+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;l=((a=a+Math.imul(d,me)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(U,G),n=(n=Math.imul(U,V))+Math.imul(j,G)|0,a=Math.imul(j,V),r=r+Math.imul(P,K)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(B,K)|0,a=a+Math.imul(B,W)|0,r=r+Math.imul(C,Z)|0,n=(n=n+Math.imul(C,$)|0)+Math.imul(L,Z)|0,a=a+Math.imul(L,$)|0,r=r+Math.imul(R,J)|0,n=(n=n+Math.imul(R,ee)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,ee)|0,r=r+Math.imul(T,ie)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(I,ie)|0,a=a+Math.imul(I,re)|0,r=r+Math.imul(S,ae)|0,n=(n=n+Math.imul(S,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,r=r+Math.imul(y,ce)|0,n=(n=n+Math.imul(y,le)|0)+Math.imul(E,ce)|0,a=a+Math.imul(E,le)|0,r=r+Math.imul(g,fe)|0,n=(n=n+Math.imul(g,de)|0)+Math.imul(v,fe)|0,a=a+Math.imul(v,de)|0;var Te=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(n=(n=n+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((a=a+Math.imul(m,me)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,K),n=(n=Math.imul(U,W))+Math.imul(j,K)|0,a=Math.imul(j,W),r=r+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(B,Z)|0,a=a+Math.imul(B,$)|0,r=r+Math.imul(C,J)|0,n=(n=n+Math.imul(C,ee)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,ee)|0,r=r+Math.imul(R,ie)|0,n=(n=n+Math.imul(R,re)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,re)|0,r=r+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,r=r+Math.imul(S,ce)|0,n=(n=n+Math.imul(S,le)|0)+Math.imul(x,ce)|0,a=a+Math.imul(x,le)|0,r=r+Math.imul(y,fe)|0,n=(n=n+Math.imul(y,de)|0)+Math.imul(E,fe)|0,a=a+Math.imul(E,de)|0;var Ie=(l+(r=r+Math.imul(g,he)|0)|0)+((8191&(n=(n=n+Math.imul(g,me)|0)+Math.imul(v,he)|0))<<13)|0;l=((a=a+Math.imul(v,me)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,Z),n=(n=Math.imul(U,$))+Math.imul(j,Z)|0,a=Math.imul(j,$),r=r+Math.imul(P,J)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(B,J)|0,a=a+Math.imul(B,ee)|0,r=r+Math.imul(C,ie)|0,n=(n=n+Math.imul(C,re)|0)+Math.imul(L,ie)|0,a=a+Math.imul(L,re)|0,r=r+Math.imul(R,ae)|0,n=(n=n+Math.imul(R,oe)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,oe)|0,r=r+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,le)|0)+Math.imul(I,ce)|0,a=a+Math.imul(I,le)|0,r=r+Math.imul(S,fe)|0,n=(n=n+Math.imul(S,de)|0)+Math.imul(x,fe)|0,a=a+Math.imul(x,de)|0;var Ne=(l+(r=r+Math.imul(y,he)|0)|0)+((8191&(n=(n=n+Math.imul(y,me)|0)+Math.imul(E,he)|0))<<13)|0;l=((a=a+Math.imul(E,me)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(U,J),n=(n=Math.imul(U,ee))+Math.imul(j,J)|0,a=Math.imul(j,ee),r=r+Math.imul(P,ie)|0,n=(n=n+Math.imul(P,re)|0)+Math.imul(B,ie)|0,a=a+Math.imul(B,re)|0,r=r+Math.imul(C,ae)|0,n=(n=n+Math.imul(C,oe)|0)+Math.imul(L,ae)|0,a=a+Math.imul(L,oe)|0,r=r+Math.imul(R,ce)|0,n=(n=n+Math.imul(R,le)|0)+Math.imul(O,ce)|0,a=a+Math.imul(O,le)|0,r=r+Math.imul(T,fe)|0,n=(n=n+Math.imul(T,de)|0)+Math.imul(I,fe)|0,a=a+Math.imul(I,de)|0;var Re=(l+(r=r+Math.imul(S,he)|0)|0)+((8191&(n=(n=n+Math.imul(S,me)|0)+Math.imul(x,he)|0))<<13)|0;l=((a=a+Math.imul(x,me)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,ie),n=(n=Math.imul(U,re))+Math.imul(j,ie)|0,a=Math.imul(j,re),r=r+Math.imul(P,ae)|0,n=(n=n+Math.imul(P,oe)|0)+Math.imul(B,ae)|0,a=a+Math.imul(B,oe)|0,r=r+Math.imul(C,ce)|0,n=(n=n+Math.imul(C,le)|0)+Math.imul(L,ce)|0,a=a+Math.imul(L,le)|0,r=r+Math.imul(R,fe)|0,n=(n=n+Math.imul(R,de)|0)+Math.imul(O,fe)|0,a=a+Math.imul(O,de)|0;var Oe=(l+(r=r+Math.imul(T,he)|0)|0)+((8191&(n=(n=n+Math.imul(T,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((a=a+Math.imul(I,me)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ae),n=(n=Math.imul(U,oe))+Math.imul(j,ae)|0,a=Math.imul(j,oe),r=r+Math.imul(P,ce)|0,n=(n=n+Math.imul(P,le)|0)+Math.imul(B,ce)|0,a=a+Math.imul(B,le)|0,r=r+Math.imul(C,fe)|0,n=(n=n+Math.imul(C,de)|0)+Math.imul(L,fe)|0,a=a+Math.imul(L,de)|0;var Me=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(n=(n=n+Math.imul(R,me)|0)+Math.imul(O,he)|0))<<13)|0;l=((a=a+Math.imul(O,me)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,ce),n=(n=Math.imul(U,le))+Math.imul(j,ce)|0,a=Math.imul(j,le),r=r+Math.imul(P,fe)|0,n=(n=n+Math.imul(P,de)|0)+Math.imul(B,fe)|0,a=a+Math.imul(B,de)|0;var Ce=(l+(r=r+Math.imul(C,he)|0)|0)+((8191&(n=(n=n+Math.imul(C,me)|0)+Math.imul(L,he)|0))<<13)|0;l=((a=a+Math.imul(L,me)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,fe),n=(n=Math.imul(U,de))+Math.imul(j,fe)|0,a=Math.imul(j,de);var Le=(l+(r=r+Math.imul(P,he)|0)|0)+((8191&(n=(n=n+Math.imul(P,me)|0)+Math.imul(B,he)|0))<<13)|0;l=((a=a+Math.imul(B,me)|0)+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863;var ke=(l+(r=Math.imul(U,he))|0)+((8191&(n=(n=Math.imul(U,me))+Math.imul(j,he)|0))<<13)|0;return l=((a=Math.imul(j,me))+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,c[0]=be,c[1]=ge,c[2]=ve,c[3]=_e,c[4]=ye,c[5]=Ee,c[6]=we,c[7]=Se,c[8]=xe,c[9]=Ae,c[10]=Te,c[11]=Ie,c[12]=Ne,c[13]=Re,c[14]=Oe,c[15]=Me,c[16]=Ce,c[17]=Le,c[18]=ke,0!==l&&(c[19]=l,i.length++),i};function s(e,t,i){return(new c).mulp(e,t,i)}function c(e,t){this.x=e,this.y=t}Math.imul||(a=n),g.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?a(this,e,t):i<63?n(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var r=0,n=0,a=0;a<i.length-1;a++){var o=n;n=0;for(var s=67108863&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,f=(0|e.words[u])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),n+=(o=(o=o+(f/67108864|0)|0)+(d>>>26)|0)>>>26,o&=67108863}i.words[a]=s,r=o,o=n}return 0!==r?i.words[a]=r:i.length--,i.strip()}(this,e,t):s(this,e,t)},c.prototype.makeRBT=function(e){for(var t=new Array(e),i=g.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,i,e);return t},c.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var r=0,n=0;n<t;n++)r|=(1&e)<<t-n-1,e>>=1;return r},c.prototype.permute=function(e,t,i,r,n,a){for(var o=0;o<a;o++)r[o]=t[e[o]],n[o]=i[e[o]]},c.prototype.transform=function(e,t,i,r,n,a){this.permute(a,e,t,i,r,n);for(var o=1;o<n;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<n;u+=s)for(var f=c,d=l,p=0;p<o;p++){var h=i[u+p],m=r[u+p],b=i[u+p+o],g=r[u+p+o],v=f*b-d*g;g=f*g+d*b,b=v,i[u+p]=h+b,r[u+p]=m+g,i[u+p+o]=h-b,r[u+p+o]=m-g,p!==s&&(v=c*f-l*d,d=c*d+l*f,f=v)}},c.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),r=1&i,n=0;for(i=i/2|0;i;i>>>=1)n++;return 1<<n+1+r},c.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=e[r];e[r]=e[i-r-1],e[i-r-1]=n,n=t[r],t[r]=-t[i-r-1],t[i-r-1]=-n}},c.prototype.normalize13b=function(e,t){for(var i=0,r=0;r<t/2;r++){var n=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+i;e[r]=67108863&n,i=n<67108864?0:n/67108864|0}return e},c.prototype.convert13b=function(e,t,i,r){for(var n=0,a=0;a<t;a++)n+=0|e[a],i[2*a]=8191&n,n>>>=13,i[2*a+1]=8191&n,n>>>=13;for(a=2*t;a<r;++a)i[a]=0;b(0===n),b(0==(-8192&n))},c.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},c.prototype.mulp=function(e,t,i){var r=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),f=new Array(r),d=i.words;d.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,n),this.transform(l,a,u,f,r,n);for(var p=0;p<r;p++){var h=s[p]*u[p]-c[p]*f[p];c[p]=s[p]*f[p]+c[p]*u[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,d,a,r,n),this.conjugate(d,a,r),this.normalize13b(d,r),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},g.prototype.mul=function(e){var t=new g(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},g.prototype.mulf=function(e){var t=new g(null);return t.words=new Array(this.length+e.length),s(this,e,t)},g.prototype.imul=function(e){return this.clone().mulTo(e,this)},g.prototype.imuln=function(e){b("number"==typeof e),b(e<67108864);for(var t=0,i=0;i<this.length;i++){var r=(0|this.words[i])*e,n=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=n>>>26,this.words[i]=67108863&n}return 0!==t&&(this.words[i]=t,this.length++),this},g.prototype.muln=function(e){return this.clone().imuln(e)},g.prototype.sqr=function(){return this.mul(this)},g.prototype.isqr=function(){return this.imul(this.clone())},g.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var r=i/26|0,n=i%26;t[i]=(e.words[r]&1<<n)>>>n}return t}(e);if(0===t.length)return new g(1);for(var i=this,r=0;r<t.length&&0===t[r];r++,i=i.sqr());if(++r<t.length)for(var n=i.sqr();r<t.length;r++,n=n.sqr())0!==t[r]&&(i=i.mul(n));return i},g.prototype.iushln=function(e){b("number"==typeof e&&0<=e);var t,i=e%26,r=(e-i)/26,n=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(t=0;t<this.length;t++){var o=this.words[t]&n,s=(0|this.words[t])-o<<i;this.words[t]=s|a,a=o>>>26-i}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;0<=t;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},g.prototype.ishln=function(e){return b(0===this.negative),this.iushln(e)},g.prototype.iushrn=function(e,t,i){var r;b("number"==typeof e&&0<=e),r=t?(t-t%26)/26:0;var n=e%26,a=Math.min((e-n)/26,this.length),o=67108863^67108863>>>n<<n,s=i;if(r-=a,r=Math.max(0,r),s){for(var c=0;c<a;c++)s.words[c]=this.words[c];s.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;0<=c&&(0!==l||r<=c);c--){var u=0|this.words[c];this.words[c]=l<<26-n|u>>>n,l=u&o}return s&&0!==l&&(s.words[s.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},g.prototype.ishrn=function(e,t,i){return b(0===this.negative),this.iushrn(e,t,i)},g.prototype.shln=function(e){return this.clone().ishln(e)},g.prototype.ushln=function(e){return this.clone().iushln(e)},g.prototype.shrn=function(e){return this.clone().ishrn(e)},g.prototype.ushrn=function(e){return this.clone().iushrn(e)},g.prototype.testn=function(e){b("number"==typeof e&&0<=e);var t=e%26,i=(e-t)/26,r=1<<t;return!(this.length<=i)&&!!(this.words[i]&r)},g.prototype.imaskn=function(e){b("number"==typeof e&&0<=e);var t=e%26,i=(e-t)/26;if(b(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},g.prototype.maskn=function(e){return this.clone().imaskn(e)},g.prototype.iaddn=function(e){return b("number"==typeof e),b(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)},g.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},g.prototype.isubn=function(e){if(b("number"==typeof e),b(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]-=1;return this.strip()},g.prototype.addn=function(e){return this.clone().iaddn(e)},g.prototype.subn=function(e){return this.clone().isubn(e)},g.prototype.iabs=function(){return this.negative=0,this},g.prototype.abs=function(){return this.clone().iabs()},g.prototype._ishlnsubmul=function(e,t,i){var r,n,a=e.length+i;this._expand(a);var o=0;for(r=0;r<e.length;r++){n=(0|this.words[r+i])+o;var s=(0|e.words[r])*t;o=((n-=67108863&s)>>26)-(s/67108864|0),this.words[r+i]=67108863&n}for(;r<this.length-i;r++)o=(n=(0|this.words[r+i])+o)>>26,this.words[r+i]=67108863&n;if(0===o)return this.strip();for(b(-1===o),r=o=0;r<this.length;r++)o=(n=-(0|this.words[r])+o)>>26,this.words[r]=67108863&n;return this.negative=1,this.strip()},g.prototype._wordDiv=function(e,t){var i=(this.length,e.length),r=this.clone(),n=e,a=0|n.words[n.length-1];0!==(i=26-this._countBits(a))&&(n=n.ushln(i),r.iushln(i),a=0|n.words[n.length-1]);var o,s=r.length-n.length;if("mod"!==t){(o=new g(null)).length=s+1,o.words=new Array(o.length);for(var c=0;c<o.length;c++)o.words[c]=0}var l=r.clone()._ishlnsubmul(n,1,s);0===l.negative&&(r=l,o&&(o.words[s]=1));for(var u=s-1;0<=u;u--){var f=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(n,f,u);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=f)}return o&&o.strip(),r.strip(),"div"!==t&&0!==i&&r.iushrn(i),{div:o||null,mod:r}},g.prototype.divmod=function(e,t,i){return b(!e.isZero()),this.isZero()?{div:new g(0),mod:new g(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(n=a.mod.neg(),i&&0!==n.negative&&n.iadd(e)),{div:r,mod:n}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(n=a.mod.neg(),i&&0!==n.negative&&n.isub(e)),{div:a.div,mod:n}):e.length>this.length||this.cmp(e)<0?{div:new g(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new g(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new g(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,n,a},g.prototype.div=function(e){return this.divmod(e,"div",!1).div},g.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},g.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},g.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),a=i.cmp(r);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},g.prototype.modn=function(e){b(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;0<=r;r--)i=(t*i+(0|this.words[r]))%e;return i},g.prototype.idivn=function(e){b(e<=67108863);for(var t=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},g.prototype.divn=function(e){return this.clone().idivn(e)},g.prototype.egcd=function(e){b(0===e.negative),b(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new g(1),n=new g(0),a=new g(0),o=new g(1),s=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++s;for(var c=i.clone(),l=t.clone();!t.isZero();){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(0<u)for(t.iushrn(u);0<u--;)(r.isOdd()||n.isOdd())&&(r.iadd(c),n.isub(l)),r.iushrn(1),n.iushrn(1);for(var d=0,p=1;0==(i.words[0]&p)&&d<26;++d,p<<=1);if(0<d)for(i.iushrn(d);0<d--;)(a.isOdd()||o.isOdd())&&(a.iadd(c),o.isub(l)),a.iushrn(1),o.iushrn(1);0<=t.cmp(i)?(t.isub(i),r.isub(a),n.isub(o)):(i.isub(t),a.isub(r),o.isub(n))}return{a:a,b:o,gcd:i.iushln(s)}},g.prototype._invmp=function(e){b(0===e.negative),b(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,n=new g(1),a=new g(0),o=i.clone();0<t.cmpn(1)&&0<i.cmpn(1);){for(var s=0,c=1;0==(t.words[0]&c)&&s<26;++s,c<<=1);if(0<s)for(t.iushrn(s);0<s--;)n.isOdd()&&n.iadd(o),n.iushrn(1);for(var l=0,u=1;0==(i.words[0]&u)&&l<26;++l,u<<=1);if(0<l)for(i.iushrn(l);0<l--;)a.isOdd()&&a.iadd(o),a.iushrn(1);0<=t.cmp(i)?(t.isub(i),n.isub(a)):(i.isub(t),a.isub(n))}return(r=0===t.cmpn(1)?n:a).cmpn(0)<0&&r.iadd(e),r},g.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0;for(var r=i.negative=0;t.isEven()&&i.isEven();r++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=t.cmp(i);if(n<0){var a=t;t=i,i=a}else if(0===n||0===i.cmpn(1))break;t.isub(i)}return i.iushln(r)},g.prototype.invm=function(e){return this.egcd(e).a.umod(e)},g.prototype.isEven=function(){return 0==(1&this.words[0])},g.prototype.isOdd=function(){return 1==(1&this.words[0])},g.prototype.andln=function(e){return this.words[0]&e},g.prototype.bincn=function(e){b("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=r,this;for(var n=r,a=i;0!==n&&a<this.length;a++){var o=0|this.words[a];n=(o+=n)>>>26,o&=67108863,this.words[a]=o}return 0!==n&&(this.words[a]=n,this.length++),this},g.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},g.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),1<this.length)t=1;else{i&&(e=-e),b(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:r<e?-1:1}return 0!==this.negative?0|-t:t},g.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},g.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|e.words[i];if(r!==n){r<n?t=-1:n<r&&(t=1);break}}return t},g.prototype.gtn=function(e){return 1===this.cmpn(e)},g.prototype.gt=function(e){return 1===this.cmp(e)},g.prototype.gten=function(e){return 0<=this.cmpn(e)},g.prototype.gte=function(e){return 0<=this.cmp(e)},g.prototype.ltn=function(e){return-1===this.cmpn(e)},g.prototype.lt=function(e){return-1===this.cmp(e)},g.prototype.lten=function(e){return this.cmpn(e)<=0},g.prototype.lte=function(e){return this.cmp(e)<=0},g.prototype.eqn=function(e){return 0===this.cmpn(e)},g.prototype.eq=function(e){return 0===this.cmp(e)},g.red=function(e){return new E(e)},g.prototype.toRed=function(e){return b(!this.red,"Already a number in reduction context"),b(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},g.prototype.fromRed=function(){return b(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},g.prototype._forceRed=function(e){return this.red=e,this},g.prototype.forceRed=function(e){return b(!this.red,"Already a number in reduction context"),this._forceRed(e)},g.prototype.redAdd=function(e){return b(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},g.prototype.redIAdd=function(e){return b(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},g.prototype.redSub=function(e){return b(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},g.prototype.redISub=function(e){return b(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},g.prototype.redShl=function(e){return b(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},g.prototype.redMul=function(e){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},g.prototype.redIMul=function(e){return b(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},g.prototype.redSqr=function(){return b(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},g.prototype.redISqr=function(){return b(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},g.prototype.redSqrt=function(){return b(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},g.prototype.redInvm=function(){return b(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},g.prototype.redNeg=function(){return b(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},g.prototype.redPow=function(e){return b(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var l={k256:null,p224:null,p192:null,p25519:null};function u(e,t){this.name=e,this.p=new g(t,16),this.n=this.p.bitLength(),this.k=new g(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function m(){u.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){u.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){u.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){u.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=g._prime(e);this.m=t.p,this.prime=t}else b(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function w(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new g(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)}u.prototype._tmp=function(){var e=new g(null);return e.words=new Array(Math.ceil(this.n/13)),e},u.prototype.ireduce=function(e){for(var t,i=e;this.split(i,this.tmp),(t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength())>this.n;);var r=t<this.n?-1:i.ucmp(this.p);return 0===r?(i.words[0]=0,i.length=1):0<r?i.isub(this.p):i.strip(),i},u.prototype.split=function(e,t){e.iushrn(this.n,0,t)},u.prototype.imulK=function(e){return e.imul(this.k)},i(m,u),m.prototype.split=function(e,t){for(var i=Math.min(e.length,9),r=0;r<i;r++)t.words[r]=e.words[r];if(t.length=i,e.length<=9)return e.words[0]=0,void(e.length=1);var n=e.words[9];for(t.words[t.length++]=4194303&n,r=10;r<e.length;r++){var a=0|e.words[r];e.words[r-10]=(4194303&a)<<4|n>>>22,n=a}n>>>=22,0===(e.words[r-10]=n)&&10<e.length?e.length-=10:e.length-=9},m.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var r=0|e.words[i];t+=977*r,e.words[i]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,u),i(_,u),i(y,u),y.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var r=19*(0|e.words[i])+t,n=67108863&r;r>>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},g._prime=function(e){if(l[e])return l[e];var t;if("k256"===e)t=new m;else if("p224"===e)t=new v;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new y}return l[e]=t},E.prototype._verify1=function(e){b(0===e.negative,"red works only with positives"),b(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){b(0==(e.negative|t.negative),"red works only with positives"),b(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return 0<=i.cmp(this.m)&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return 0<=i.cmp(this.m)&&i.isub(this.m),i},E.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(b(t%2==1),3===t){var i=this.m.add(new g(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),n=0;!r.isZero()&&0===r.andln(1);)n++,r.iushrn(1);b(!r.isZero());var a=new g(1).toRed(this),o=a.redNeg(),s=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new g(2*c*c).toRed(this);0!==this.pow(c,s).cmp(o);)c.redIAdd(o);for(var l=this.pow(c,r),u=this.pow(e,r.addn(1).iushrn(1)),f=this.pow(e,r),d=n;0!==f.cmp(a);){for(var p=f,h=0;0!==p.cmp(a);h++)p=p.redSqr();b(h<d);var m=this.pow(l,new g(1).iushln(d-h-1));u=u.redMul(m),l=m.redSqr(),f=f.redMul(l),d=h}return u},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new g(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new g(1).toRed(this),i[1]=e;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],e);var n=i[0],a=0,o=0,s=t.bitLength()%26;for(0===s&&(s=26),r=t.length-1;0<=r;r--){for(var c=t.words[r],l=s-1;0<=l;l--){var u=c>>l&1;n!==i[0]&&(n=this.sqr(n)),0!==u||0!==a?(a<<=1,a|=u,(4===++o||0===r&&0===l)&&(n=this.mul(n,i[a]),a=o=0)):o=0}s=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},g.mont=function(e){return new w(e)},i(w,E),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),a=n;return 0<=n.cmp(this.m)?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new g(0)._forceRed(this);var i=e.mul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),a=n;return 0<=n.cmp(this.m)?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:69}],68:[function(e,t,i){var r;function n(e){this.rand=e}if(t.exports=function(e){return r||(r=new n(null)),r.generate(e)},(t.exports.Rand=n).prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(n.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");n.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},{crypto:69}],69:[function(e,t,i){},{}],70:[function(e,t,i){var n=e("safe-buffer").Buffer;function a(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,i=new Array(t),r=0;r<t;r++)i[r]=e.readUInt32BE(4*r);return i}function r(e){for(;0<e.length;e++)e[0]=0}function o(e,t,i,r,n){for(var a,o,s,c,l=i[0],u=i[1],f=i[2],d=i[3],p=e[0]^t[0],h=e[1]^t[1],m=e[2]^t[2],b=e[3]^t[3],g=4,v=1;v<n;v++)a=l[p>>>24]^u[h>>>16&255]^f[m>>>8&255]^d[255&b]^t[g++],o=l[h>>>24]^u[m>>>16&255]^f[b>>>8&255]^d[255&p]^t[g++],s=l[m>>>24]^u[b>>>16&255]^f[p>>>8&255]^d[255&h]^t[g++],c=l[b>>>24]^u[p>>>16&255]^f[h>>>8&255]^d[255&m]^t[g++],p=a,h=o,m=s,b=c;return a=(r[p>>>24]<<24|r[h>>>16&255]<<16|r[m>>>8&255]<<8|r[255&b])^t[g++],o=(r[h>>>24]<<24|r[m>>>16&255]<<16|r[b>>>8&255]<<8|r[255&p])^t[g++],s=(r[m>>>24]<<24|r[b>>>16&255]<<16|r[p>>>8&255]<<8|r[255&h])^t[g++],c=(r[b>>>24]<<24|r[p>>>16&255]<<16|r[h>>>8&255]<<8|r[255&m])^t[g++],[a>>>=0,o>>>=0,s>>>=0,c>>>=0]}var f=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],r=[],n=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99;var u=e[r[i[o]=l]=o],f=e[u],d=e[f],p=257*e[l]^16843008*l;n[0][o]=p<<24|p>>>8,n[1][o]=p<<16|p>>>16,n[2][o]=p<<8|p>>>24,n[3][o]=p,p=16843009*d^65537*f^257*u^16843008*o,a[0][l]=p<<24|p>>>8,a[1][l]=p<<16|p>>>16,a[2][l]=p<<8|p>>>24,a[3][l]=p,0===o?o=s=1:(o=u^e[e[e[d^u]]],s^=e[e[s]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,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,i=t+6,r=4*(i+1),n=[],a=0;a<t;a++)n[a]=e[a];for(a=t;a<r;a++){var o=n[a-1];a%t==0?(o=o<<8|o>>>24,o=d.SBOX[o>>>24]<<24|d.SBOX[o>>>16&255]<<16|d.SBOX[o>>>8&255]<<8|d.SBOX[255&o],o^=f[a/t|0]<<24):6<t&&a%t==4&&(o=d.SBOX[o>>>24]<<24|d.SBOX[o>>>16&255]<<16|d.SBOX[o>>>8&255]<<8|d.SBOX[255&o]),n[a]=n[a-t]^o}for(var s=[],c=0;c<r;c++){var l=r-c,u=n[l-(c%4?0:4)];s[c]=c<4||l<=4?u:d.INV_SUB_MIX[0][d.SBOX[u>>>24]]^d.INV_SUB_MIX[1][d.SBOX[u>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[u>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&u]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},s.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=n.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},s.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var i=o(e,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),r=n.allocUnsafe(16);return r.writeUInt32BE(i[0],0),r.writeUInt32BE(i[3],4),r.writeUInt32BE(i[2],8),r.writeUInt32BE(i[1],12),r},s.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},t.exports.AES=s},{"safe-buffer":200}],71:[function(e,t,i){var o=e("./aes"),l=e("safe-buffer").Buffer,s=e("cipher-base"),r=e("inherits"),u=e("./ghash"),n=e("buffer-xor"),f=e("./incr32");function a(e,t,i,r){s.call(this);var n=l.alloc(4,0);this._cipher=new o.AES(t);var a=this._cipher.encryptBlock(n);this._ghash=new u(a),i=function(e,t,i){if(12===t.length)return e._finID=l.concat([t,l.from([0,0,0,1])]),l.concat([t,l.from([0,0,0,2])]);var r=new u(i),n=t.length,a=n%16;r.update(t),a&&(a=16-a,r.update(l.alloc(a,0))),r.update(l.alloc(8,0));var o=8*n,s=l.alloc(8);s.writeUIntBE(o,0,8),r.update(s),e._finID=r.state;var c=l.from(e._finID);return f(c),c}(this,i,a),this._prev=l.from(i),this._cache=l.allocUnsafe(0),this._secCache=l.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}r(a,s),a.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=l.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},a.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=n(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var i=0;e.length!==t.length&&i++;for(var r=Math.min(e.length,t.length),n=0;n<r;++n)i+=e[n]^t[n];return i}(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||!l.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":70,"./ghash":75,"./incr32":76,"buffer-xor":99,"cipher-base":102,inherits:155,"safe-buffer":200}],72:[function(e,t,i){var r=e("./encrypter"),n=e("./decrypter"),a=e("./modes/list.json");i.createCipher=i.Cipher=r.createCipher,i.createCipheriv=i.Cipheriv=r.createCipheriv,i.createDecipher=i.Decipher=n.createDecipher,i.createDecipheriv=i.Decipheriv=n.createDecipheriv,i.listCiphers=i.getCiphers=function(){return Object.keys(a)}},{"./decrypter":73,"./encrypter":74,"./modes/list.json":84}],73:[function(e,t,i){var n=e("./authCipher"),a=e("safe-buffer").Buffer,o=e("./modes"),s=e("./streamCipher"),r=e("cipher-base"),c=e("./aes"),l=e("evp_bytestokey");function u(e,t,i){r.call(this),this._cache=new f,this._last=void 0,this._cipher=new c.AES(t),this._prev=a.from(i),this._mode=e,this._autopadding=!0}function f(){this.cache=a.allocUnsafe(0)}function d(e,t,i){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=a.from(i)),"GCM"!==r.mode&&i.length!==r.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof t&&(t=a.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===r.type?new s(r.module,t,i,!0):"auth"===r.type?new n(r.module,t,i,!0):new u(r.module,t,i)}e("inherits")(u,r),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,t),r.push(i);return a.concat(r)},u.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 i=-1;for(;++i<t;)if(e[i+(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")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=a.concat([this.cache,e])},f.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},f.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function(e,t){var i=o[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=l(t,!1,i.key,i.iv);return d(e,r.key,r.iv)},i.createDecipheriv=d},{"./aes":70,"./authCipher":71,"./modes":83,"./streamCipher":86,"cipher-base":102,evp_bytestokey:137,inherits:155,"safe-buffer":200}],74:[function(e,t,i){var n=e("./modes"),a=e("./authCipher"),o=e("safe-buffer").Buffer,s=e("./streamCipher"),r=e("cipher-base"),c=e("./aes"),l=e("evp_bytestokey");function u(e,t,i){r.call(this),this._cache=new d,this._cipher=new c.AES(t),this._prev=o.from(i),this._mode=e,this._autopadding=!0}e("inherits")(u,r),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var r=[];t=this._cache.get();)i=this._mode.encrypt(this,t),r.push(i);return o.concat(r)};var f=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function p(e,t,i){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=o.from(i)),"GCM"!==r.mode&&i.length!==r.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===r.type?new s(r.module,t,i):"auth"===r.type?new a(r.module,t,i):new u(r.module,t,i)}u.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(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.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},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),i=-1;++i<e;)t.writeUInt8(e,i);return o.concat([this.cache,t])},i.createCipheriv=p,i.createCipher=function(e,t){var i=n[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=l(t,!1,i.key,i.iv);return p(e,r.key,r.iv)}},{"./aes":70,"./authCipher":71,"./modes":83,"./streamCipher":86,"cipher-base":102,evp_bytestokey:137,inherits:155,"safe-buffer":200}],75:[function(e,t,i){var r=e("safe-buffer").Buffer,n=r.alloc(16,0);function o(e){var t=r.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=r.alloc(16,0),this.cache=r.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,i,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],n=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(n[0]^=r[0],n[1]^=r[1],n[2]^=r[2],n[3]^=r[3]),i=0!=(1&r[3]),t=3;0<t;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=o(n)},a.prototype.update=function(e){var t;for(this.cache=r.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(r.concat([this.cache,n],16)),this.ghash(o([0,e,0,t])),this.state},t.exports=a},{"safe-buffer":200}],76:[function(e,t,i){t.exports=function(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}},{}],77:[function(e,t,i){var n=e("buffer-xor");i.encrypt=function(e,t){var i=n(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},i.decrypt=function(e,t){var i=e._prev;e._prev=t;var r=e._cipher.decryptBlock(t);return n(r,i)}},{"buffer-xor":99}],78:[function(e,t,i){var a=e("safe-buffer").Buffer,o=e("buffer-xor");function s(e,t,i){var r=t.length,n=o(t,e._cache);return e._cache=e._cache.slice(r),e._prev=a.concat([e._prev,i?t:n]),n}i.encrypt=function(e,t,i){for(var r,n=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)){n=a.concat([n,s(e,t,i)]);break}r=e._cache.length,n=a.concat([n,s(e,t.slice(0,r),i)]),t=t.slice(r)}return n}},{"buffer-xor":99,"safe-buffer":200}],79:[function(e,t,i){var o=e("safe-buffer").Buffer;function s(e,t,i){for(var r,n,a=-1,o=0;++a<8;)r=t&1<<7-a?128:0,o+=(128&(n=e._cipher.encryptBlock(e._prev)[0]^r))>>a%8,e._prev=c(e._prev,i?r:n);return o}function c(e,t){var i=e.length,r=-1,n=o.allocUnsafe(e.length);for(e=o.concat([e,o.from([t])]);++r<i;)n[r]=e[r]<<1|e[r+1]>>7;return n}i.encrypt=function(e,t,i){for(var r=t.length,n=o.allocUnsafe(r),a=-1;++a<r;)n[a]=s(e,t[a],i);return n}},{"safe-buffer":200}],80:[function(e,t,i){var u=e("safe-buffer").Buffer;i.encrypt=function(e,t,i){for(var r,n,a,o,s=t.length,c=u.allocUnsafe(s),l=-1;++l<s;)c[l]=(r=e,n=t[l],a=i,void 0,o=r._cipher.encryptBlock(r._prev)[0]^n,r._prev=u.concat([r._prev.slice(1),u.from([a?n:o])]),o);return c}},{"safe-buffer":200}],81:[function(e,t,i){var u=e("buffer-xor"),f=e("safe-buffer").Buffer,d=e("../incr32");i.encrypt=function(e,t){var i,r,n=Math.ceil(t.length/16),a=e._cache.length;e._cache=f.concat([e._cache,f.allocUnsafe(16*n)]);for(var o=0;o<n;o++){var s=(void 0,r=(i=e)._cipher.encryptBlockRaw(i._prev),d(i._prev),r),c=a+16*o;e._cache.writeUInt32BE(s[0],c+0),e._cache.writeUInt32BE(s[1],c+4),e._cache.writeUInt32BE(s[2],c+8),e._cache.writeUInt32BE(s[3],c+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),u(t,l)}},{"../incr32":76,"buffer-xor":99,"safe-buffer":200}],82:[function(e,t,i){i.encrypt=function(e,t){return e._cipher.encryptBlock(t)},i.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],83:[function(e,t,i){var r={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},n=e("./list.json");for(var a in n)n[a].module=r[n[a].mode];t.exports=n},{"./cbc":77,"./cfb":78,"./cfb1":79,"./cfb8":80,"./ctr":81,"./ecb":82,"./list.json":84,"./ofb":85}],84:[function(e,t,i){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"}}},{}],85:[function(e,t,i){(function(n){var a=e("buffer-xor");i.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=n.concat([e._cache,(i=e,i._prev=i._cipher.encryptBlock(i._prev),i._prev)]);var i,r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),a(t,r)}}).call(this,e("buffer").Buffer)},{buffer:100,"buffer-xor":99}],86:[function(e,t,i){var n=e("./aes"),a=e("safe-buffer").Buffer,o=e("cipher-base");function r(e,t,i,r){o.call(this),this._cipher=new n.AES(t),this._prev=a.from(i),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=r,this._mode=e}e("inherits")(r,o),r.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},r.prototype._final=function(){this._cipher.scrub()},t.exports=r},{"./aes":70,"cipher-base":102,inherits:155,"safe-buffer":200}],87:[function(e,t,i){var r=e("browserify-des"),n=e("browserify-aes/browser"),a=e("browserify-aes/modes"),o=e("browserify-des/modes"),s=e("evp_bytestokey");function c(e,t,i){if(e=e.toLowerCase(),a[e])return n.createCipheriv(e,t,i);if(o[e])return new r({key:t,iv:i,mode:e});throw new TypeError("invalid suite type")}function l(e,t,i){if(e=e.toLowerCase(),a[e])return n.createDecipheriv(e,t,i);if(o[e])return new r({key:t,iv:i,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}i.createCipher=i.Cipher=function(e,t){var i,r;if(e=e.toLowerCase(),a[e])i=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");i=8*o[e].key,r=o[e].iv}var n=s(t,!1,i,r);return c(e,n.key,n.iv)},i.createCipheriv=i.Cipheriv=c,i.createDecipher=i.Decipher=function(e,t){var i,r;if(e=e.toLowerCase(),a[e])i=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");i=8*o[e].key,r=o[e].iv}var n=s(t,!1,i,r);return l(e,n.key,n.iv)},i.createDecipheriv=i.Decipheriv=l,i.listCiphers=i.getCiphers=function(){return Object.keys(o).concat(n.getCiphers())}},{"browserify-aes/browser":72,"browserify-aes/modes":83,"browserify-des":88,"browserify-des/modes":89,evp_bytestokey:137}],88:[function(e,t,i){var o=e("cipher-base"),r=e("des.js"),n=e("inherits"),s=e("safe-buffer").Buffer,c={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function a(e){o.call(this);var t,i=e.mode.toLowerCase(),r=c[i];t=e.decrypt?"decrypt":"encrypt";var n=e.key;s.isBuffer(n)||(n=s.from(n)),"des-ede"!==i&&"des-ede-cbc"!==i||(n=s.concat([n,n.slice(0,8)]));var a=e.iv;s.isBuffer(a)||(a=s.from(a)),this._des=r.create({key:n,iv:a,type:t})}c.des=c["des-cbc"],c.des3=c["des-ede3-cbc"],n(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":102,"des.js":110,inherits:155,"safe-buffer":200}],89:[function(e,t,i){i["des-ecb"]={key:8,iv:0},i["des-cbc"]=i.des={key:8,iv:8},i["des-ede3-cbc"]=i.des3={key:24,iv:8},i["des-ede3"]={key:24,iv:0},i["des-ede-cbc"]={key:16,iv:8},i["des-ede"]={key:16,iv:0}},{}],90:[function(e,t,i){"use strict";var r=t.exports={lookup:function(e,t){var i=e.replace(/.*[\.\/]/,"").toLowerCase();return this.types[i]||t||this.default_type},default_type:"application/octet-stream",types:{123:"application/vnd.lotus-1-2-3",ez:"application/andrew-inset",aw:"application/applixware",atom:"application/atom+xml",atomcat:"application/atomcat+xml",atomsvc:"application/atomsvc+xml",ccxml:"application/ccxml+xml",cdmia:"application/cdmi-capability",cdmic:"application/cdmi-container",cdmid:"application/cdmi-domain",cdmio:"application/cdmi-object",cdmiq:"application/cdmi-queue",cu:"application/cu-seeme",davmount:"application/davmount+xml",dbk:"application/docbook+xml",dssc:"application/dssc+der",xdssc:"application/dssc+xml",ecma:"application/ecmascript",emma:"application/emma+xml",epub:"application/epub+zip",exi:"application/exi",pfr:"application/font-tdpfr",gml:"application/gml+xml",gpx:"application/gpx+xml",gxf:"application/gxf",stk:"application/hyperstudio",ink:"application/inkml+xml",inkml:"application/inkml+xml",ipfix:"application/ipfix",jar:"application/java-archive",ser:"application/java-serialized-object",class:"application/java-vm",js:"application/javascript",json:"application/json",jsonml:"application/jsonml+json",lostxml:"application/lost+xml",hqx:"application/mac-binhex40",cpt:"application/mac-compactpro",mads:"application/mads+xml",mrc:"application/marc",mrcx:"application/marcxml+xml",ma:"application/mathematica",nb:"application/mathematica",mb:"application/mathematica",mathml:"application/mathml+xml",mbox:"application/mbox",mscml:"application/mediaservercontrol+xml",metalink:"application/metalink+xml",meta4:"application/metalink4+xml",mets:"application/mets+xml",mods:"application/mods+xml",m21:"application/mp21",mp21:"application/mp21",mp4s:"application/mp4",doc:"application/msword",dot:"application/msword",mxf:"application/mxf",bin:"application/octet-stream",dms:"application/octet-stream",lrf:"application/octet-stream",mar:"application/octet-stream",so:"application/octet-stream",dist:"application/octet-stream",distz:"application/octet-stream",pkg:"application/octet-stream",bpk:"application/octet-stream",dump:"application/octet-stream",elc:"application/octet-stream",deploy:"application/octet-stream",oda:"application/oda",opf:"application/oebps-package+xml",ogx:"application/ogg",omdoc:"application/omdoc+xml",onetoc:"application/onenote",onetoc2:"application/onenote",onetmp:"application/onenote",onepkg:"application/onenote",oxps:"application/oxps",xer:"application/patch-ops-error+xml",pdf:"application/pdf",pgp:"application/pgp-encrypted",asc:"application/pgp-signature",sig:"application/pgp-signature",prf:"application/pics-rules",p10:"application/pkcs10",p7m:"application/pkcs7-mime",p7c:"application/pkcs7-mime",p7s:"application/pkcs7-signature",p8:"application/pkcs8",ac:"application/pkix-attr-cert",cer:"application/pkix-cert",crl:"application/pkix-crl",pkipath:"application/pkix-pkipath",pki:"application/pkixcmp",pls:"application/pls+xml",ai:"application/postscript",eps:"application/postscript",ps:"application/postscript",cww:"application/prs.cww",pskcxml:"application/pskc+xml",rdf:"application/rdf+xml",rif:"application/reginfo+xml",rnc:"application/relax-ng-compact-syntax",rl:"application/resource-lists+xml",rld:"application/resource-lists-diff+xml",rs:"application/rls-services+xml",gbr:"application/rpki-ghostbusters",mft:"application/rpki-manifest",roa:"application/rpki-roa",rsd:"application/rsd+xml",rss:"application/rss+xml",rtf:"application/rtf",sbml:"application/sbml+xml",scq:"application/scvp-cv-request",scs:"application/scvp-cv-response",spq:"application/scvp-vp-request",spp:"application/scvp-vp-response",sdp:"application/sdp",setpay:"application/set-payment-initiation",setreg:"application/set-registration-initiation",shf:"application/shf+xml",smi:"application/smil+xml",smil:"application/smil+xml",rq:"application/sparql-query",srx:"application/sparql-results+xml",gram:"application/srgs",grxml:"application/srgs+xml",sru:"application/sru+xml",ssdl:"application/ssdl+xml",ssml:"application/ssml+xml",tei:"application/tei+xml",teicorpus:"application/tei+xml",tfi:"application/thraud+xml",tsd:"application/timestamped-data",plb:"application/vnd.3gpp.pic-bw-large",psb:"application/vnd.3gpp.pic-bw-small",pvb:"application/vnd.3gpp.pic-bw-var",tcap:"application/vnd.3gpp2.tcap",pwn:"application/vnd.3m.post-it-notes",aso:"application/vnd.accpac.simply.aso",imp:"application/vnd.accpac.simply.imp",acu:"application/vnd.acucobol",atc:"application/vnd.acucorp",acutc:"application/vnd.acucorp",air:"application/vnd.adobe.air-application-installer-package+zip",fcdt:"application/vnd.adobe.formscentral.fcdt",fxp:"application/vnd.adobe.fxp",fxpl:"application/vnd.adobe.fxp",xdp:"application/vnd.adobe.xdp+xml",xfdf:"application/vnd.adobe.xfdf",ahead:"application/vnd.ahead.space",azf:"application/vnd.airzip.filesecure.azf",azs:"application/vnd.airzip.filesecure.azs",azw:"application/vnd.amazon.ebook",acc:"application/vnd.americandynamics.acc",ami:"application/vnd.amiga.ami",apk:"application/vnd.android.package-archive",cii:"application/vnd.anser-web-certificate-issue-initiation",fti:"application/vnd.anser-web-funds-transfer-initiation",atx:"application/vnd.antix.game-component",mpkg:"application/vnd.apple.installer+xml",m3u8:"application/vnd.apple.mpegurl",swi:"application/vnd.aristanetworks.swi",iota:"application/vnd.astraea-software.iota",aep:"application/vnd.audiograph",mpm:"application/vnd.blueice.multipass",bmi:"application/vnd.bmi",rep:"application/vnd.businessobjects",cdxml:"application/vnd.chemdraw+xml",mmd:"application/vnd.chipnuts.karaoke-mmd",cdy:"application/vnd.cinderella",cla:"application/vnd.claymore",rp9:"application/vnd.cloanto.rp9",c4g:"application/vnd.clonk.c4group",c4d:"application/vnd.clonk.c4group",c4f:"application/vnd.clonk.c4group",c4p:"application/vnd.clonk.c4group",c4u:"application/vnd.clonk.c4group",c11amc:"application/vnd.cluetrust.cartomobile-config",c11amz:"application/vnd.cluetrust.cartomobile-config-pkg",csp:"application/vnd.commonspace",cdbcmsg:"application/vnd.contact.cmsg",cmc:"application/vnd.cosmocaller",clkx:"application/vnd.crick.clicker",clkk:"application/vnd.crick.clicker.keyboard",clkp:"application/vnd.crick.clicker.palette",clkt:"application/vnd.crick.clicker.template",clkw:"application/vnd.crick.clicker.wordbank",wbs:"application/vnd.criticaltools.wbs+xml",pml:"application/vnd.ctc-posml",ppd:"application/vnd.cups-ppd",car:"application/vnd.curl.car",pcurl:"application/vnd.curl.pcurl",dart:"application/vnd.dart",rdz:"application/vnd.data-vision.rdz",uvf:"application/vnd.dece.data",uvvf:"application/vnd.dece.data",uvd:"application/vnd.dece.data",uvvd:"application/vnd.dece.data",uvt:"application/vnd.dece.ttml+xml",uvvt:"application/vnd.dece.ttml+xml",uvx:"application/vnd.dece.unspecified",uvvx:"application/vnd.dece.unspecified",uvz:"application/vnd.dece.zip",uvvz:"application/vnd.dece.zip",fe_launch:"application/vnd.denovo.fcselayout-link",dna:"application/vnd.dna",mlp:"application/vnd.dolby.mlp",dpg:"application/vnd.dpgraph",dfac:"application/vnd.dreamfactory",kpxx:"application/vnd.ds-keypoint",ait:"application/vnd.dvb.ait",svc:"application/vnd.dvb.service",geo:"application/vnd.dynageo",mag:"application/vnd.ecowin.chart",nml:"application/vnd.enliven",esf:"application/vnd.epson.esf",msf:"application/vnd.epson.msf",qam:"application/vnd.epson.quickanime",slt:"application/vnd.epson.salt",ssf:"application/vnd.epson.ssf",es3:"application/vnd.eszigno3+xml",et3:"application/vnd.eszigno3+xml",ez2:"application/vnd.ezpix-album",ez3:"application/vnd.ezpix-package",fdf:"application/vnd.fdf",mseed:"application/vnd.fdsn.mseed",seed:"application/vnd.fdsn.seed",dataless:"application/vnd.fdsn.seed",gph:"application/vnd.flographit",ftc:"application/vnd.fluxtime.clip",fm:"application/vnd.framemaker",frame:"application/vnd.framemaker",maker:"application/vnd.framemaker",book:"application/vnd.framemaker",fnc:"application/vnd.frogans.fnc",ltf:"application/vnd.frogans.ltf",fsc:"application/vnd.fsc.weblaunch",oas:"application/vnd.fujitsu.oasys",oa2:"application/vnd.fujitsu.oasys2",oa3:"application/vnd.fujitsu.oasys3",fg5:"application/vnd.fujitsu.oasysgp",bh2:"application/vnd.fujitsu.oasysprs",ddd:"application/vnd.fujixerox.ddd",xdw:"application/vnd.fujixerox.docuworks",xbd:"application/vnd.fujixerox.docuworks.binder",fzs:"application/vnd.fuzzysheet",txd:"application/vnd.genomatix.tuxedo",ggb:"application/vnd.geogebra.file",ggt:"application/vnd.geogebra.tool",gex:"application/vnd.geometry-explorer",gre:"application/vnd.geometry-explorer",gxt:"application/vnd.geonext",g2w:"application/vnd.geoplan",g3w:"application/vnd.geospace",gmx:"application/vnd.gmx",kml:"application/vnd.google-earth.kml+xml",kmz:"application/vnd.google-earth.kmz",gqf:"application/vnd.grafeq",gqs:"application/vnd.grafeq",gac:"application/vnd.groove-account",ghf:"application/vnd.groove-help",gim:"application/vnd.groove-identity-message",grv:"application/vnd.groove-injector",gtm:"application/vnd.groove-tool-message",tpl:"application/vnd.groove-tool-template",vcg:"application/vnd.groove-vcard",hal:"application/vnd.hal+xml",zmm:"application/vnd.handheld-entertainment+xml",hbci:"application/vnd.hbci",les:"application/vnd.hhe.lesson-player",hpgl:"application/vnd.hp-hpgl",hpid:"application/vnd.hp-hpid",hps:"application/vnd.hp-hps",jlt:"application/vnd.hp-jlyt",pcl:"application/vnd.hp-pcl",pclxl:"application/vnd.hp-pclxl","sfd-hdstx":"application/vnd.hydrostatix.sof-data",mpy:"application/vnd.ibm.minipay",afp:"application/vnd.ibm.modcap",listafp:"application/vnd.ibm.modcap",list3820:"application/vnd.ibm.modcap",irm:"application/vnd.ibm.rights-management",sc:"application/vnd.ibm.secure-container",icc:"application/vnd.iccprofile",icm:"application/vnd.iccprofile",igl:"application/vnd.igloader",ivp:"application/vnd.immervision-ivp",ivu:"application/vnd.immervision-ivu",igm:"application/vnd.insors.igm",xpw:"application/vnd.intercon.formnet",xpx:"application/vnd.intercon.formnet",i2g:"application/vnd.intergeo",qbo:"application/vnd.intu.qbo",qfx:"application/vnd.intu.qfx",rcprofile:"application/vnd.ipunplugged.rcprofile",irp:"application/vnd.irepository.package+xml",xpr:"application/vnd.is-xpr",fcs:"application/vnd.isac.fcs",jam:"application/vnd.jam",rms:"application/vnd.jcp.javame.midlet-rms",jisp:"application/vnd.jisp",joda:"application/vnd.joost.joda-archive",ktz:"application/vnd.kahootz",ktr:"application/vnd.kahootz",karbon:"application/vnd.kde.karbon",chrt:"application/vnd.kde.kchart",kfo:"application/vnd.kde.kformula",flw:"application/vnd.kde.kivio",kon:"application/vnd.kde.kontour",kpr:"application/vnd.kde.kpresenter",kpt:"application/vnd.kde.kpresenter",ksp:"application/vnd.kde.kspread",kwd:"application/vnd.kde.kword",kwt:"application/vnd.kde.kword",htke:"application/vnd.kenameaapp",kia:"application/vnd.kidspiration",kne:"application/vnd.kinar",knp:"application/vnd.kinar",skp:"application/vnd.koan",skd:"application/vnd.koan",skt:"application/vnd.koan",skm:"application/vnd.koan",sse:"application/vnd.kodak-descriptor",lasxml:"application/vnd.las.las+xml",lbd:"application/vnd.llamagraphics.life-balance.desktop",lbe:"application/vnd.llamagraphics.life-balance.exchange+xml",apr:"application/vnd.lotus-approach",pre:"application/vnd.lotus-freelance",nsf:"application/vnd.lotus-notes",org:"application/vnd.lotus-organizer",scm:"application/vnd.lotus-screencam",lwp:"application/vnd.lotus-wordpro",portpkg:"application/vnd.macports.portpkg",mcd:"application/vnd.mcd",mc1:"application/vnd.medcalcdata",cdkey:"application/vnd.mediastation.cdkey",mwf:"application/vnd.mfer",mfm:"application/vnd.mfmp",flo:"application/vnd.micrografx.flo",igx:"application/vnd.micrografx.igx",mif:"application/vnd.mif",daf:"application/vnd.mobius.daf",dis:"application/vnd.mobius.dis",mbk:"application/vnd.mobius.mbk",mqy:"application/vnd.mobius.mqy",msl:"application/vnd.mobius.msl",plc:"application/vnd.mobius.plc",txf:"application/vnd.mobius.txf",mpn:"application/vnd.mophun.application",mpc:"application/vnd.mophun.certificate",xul:"application/vnd.mozilla.xul+xml",cil:"application/vnd.ms-artgalry",cab:"application/vnd.ms-cab-compressed",xls:"application/vnd.ms-excel",xlm:"application/vnd.ms-excel",xla:"application/vnd.ms-excel",xlc:"application/vnd.ms-excel",xlt:"application/vnd.ms-excel",xlw:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xltm:"application/vnd.ms-excel.template.macroenabled.12",eot:"application/vnd.ms-fontobject",chm:"application/vnd.ms-htmlhelp",ims:"application/vnd.ms-ims",lrm:"application/vnd.ms-lrm",thmx:"application/vnd.ms-officetheme",cat:"application/vnd.ms-pki.seccat",stl:"application/vnd.ms-pki.stl",ppt:"application/vnd.ms-powerpoint",pps:"application/vnd.ms-powerpoint",pot:"application/vnd.ms-powerpoint",ppam:"application/vnd.ms-powerpoint.addin.macroenabled.12",pptm:"application/vnd.ms-powerpoint.presentation.macroenabled.12",sldm:"application/vnd.ms-powerpoint.slide.macroenabled.12",ppsm:"application/vnd.ms-powerpoint.slideshow.macroenabled.12",potm:"application/vnd.ms-powerpoint.template.macroenabled.12",mpp:"application/vnd.ms-project",mpt:"application/vnd.ms-project",docm:"application/vnd.ms-word.document.macroenabled.12",dotm:"application/vnd.ms-word.template.macroenabled.12",wps:"application/vnd.ms-works",wks:"application/vnd.ms-works",wcm:"application/vnd.ms-works",wdb:"application/vnd.ms-works",wpl:"application/vnd.ms-wpl",xps:"application/vnd.ms-xpsdocument",mseq:"application/vnd.mseq",mus:"application/vnd.musician",msty:"application/vnd.muvee.style",taglet:"application/vnd.mynfc",nlu:"application/vnd.neurolanguage.nlu",ntf:"application/vnd.nitf",nitf:"application/vnd.nitf",nnd:"application/vnd.noblenet-directory",nns:"application/vnd.noblenet-sealer",nnw:"application/vnd.noblenet-web",ngdat:"application/vnd.nokia.n-gage.data","n-gage":"application/vnd.nokia.n-gage.symbian.install",rpst:"application/vnd.nokia.radio-preset",rpss:"application/vnd.nokia.radio-presets",edm:"application/vnd.novadigm.edm",edx:"application/vnd.novadigm.edx",ext:"application/vnd.novadigm.ext",odc:"application/vnd.oasis.opendocument.chart",otc:"application/vnd.oasis.opendocument.chart-template",odb:"application/vnd.oasis.opendocument.database",odf:"application/vnd.oasis.opendocument.formula",odft:"application/vnd.oasis.opendocument.formula-template",odg:"application/vnd.oasis.opendocument.graphics",otg:"application/vnd.oasis.opendocument.graphics-template",odi:"application/vnd.oasis.opendocument.image",oti:"application/vnd.oasis.opendocument.image-template",odp:"application/vnd.oasis.opendocument.presentation",otp:"application/vnd.oasis.opendocument.presentation-template",ods:"application/vnd.oasis.opendocument.spreadsheet",ots:"application/vnd.oasis.opendocument.spreadsheet-template",odt:"application/vnd.oasis.opendocument.text",odm:"application/vnd.oasis.opendocument.text-master",ott:"application/vnd.oasis.opendocument.text-template",oth:"application/vnd.oasis.opendocument.text-web",xo:"application/vnd.olpc-sugar",dd2:"application/vnd.oma.dd2+xml",oxt:"application/vnd.openofficeorg.extension",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",sldx:"application/vnd.openxmlformats-officedocument.presentationml.slide",ppsx:"application/vnd.openxmlformats-officedocument.presentationml.slideshow",potx:"application/vnd.openxmlformats-officedocument.presentationml.template",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",mgp:"application/vnd.osgeo.mapguide.package",dp:"application/vnd.osgi.dp",esa:"application/vnd.osgi.subsystem",pdb:"application/vnd.palm",pqa:"application/vnd.palm",oprc:"application/vnd.palm",paw:"application/vnd.pawaafile",str:"application/vnd.pg.format",ei6:"application/vnd.pg.osasli",efif:"application/vnd.picsel",wg:"application/vnd.pmi.widget",plf:"application/vnd.pocketlearn",pbd:"application/vnd.powerbuilder6",box:"application/vnd.previewsystems.box",mgz:"application/vnd.proteus.magazine",qps:"application/vnd.publishare-delta-tree",ptid:"application/vnd.pvi.ptid1",qxd:"application/vnd.quark.quarkxpress",qxt:"application/vnd.quark.quarkxpress",qwd:"application/vnd.quark.quarkxpress",qwt:"application/vnd.quark.quarkxpress",qxl:"application/vnd.quark.quarkxpress",qxb:"application/vnd.quark.quarkxpress",bed:"application/vnd.realvnc.bed",mxl:"application/vnd.recordare.musicxml",musicxml:"application/vnd.recordare.musicxml+xml",cryptonote:"application/vnd.rig.cryptonote",cod:"application/vnd.rim.cod",rm:"application/vnd.rn-realmedia",rmvb:"application/vnd.rn-realmedia-vbr",link66:"application/vnd.route66.link66+xml",st:"application/vnd.sailingtracker.track",see:"application/vnd.seemail",sema:"application/vnd.sema",semd:"application/vnd.semd",semf:"application/vnd.semf",ifm:"application/vnd.shana.informed.formdata",itp:"application/vnd.shana.informed.formtemplate",iif:"application/vnd.shana.informed.interchange",ipk:"application/vnd.shana.informed.package",twd:"application/vnd.simtech-mindmapper",twds:"application/vnd.simtech-mindmapper",mmf:"application/vnd.smaf",teacher:"application/vnd.smart.teacher",sdkm:"application/vnd.solent.sdkm+xml",sdkd:"application/vnd.solent.sdkm+xml",dxp:"application/vnd.spotfire.dxp",sfs:"application/vnd.spotfire.sfs",sdc:"application/vnd.stardivision.calc",sda:"application/vnd.stardivision.draw",sdd:"application/vnd.stardivision.impress",smf:"application/vnd.stardivision.math",sdw:"application/vnd.stardivision.writer",vor:"application/vnd.stardivision.writer",sgl:"application/vnd.stardivision.writer-global",smzip:"application/vnd.stepmania.package",sm:"application/vnd.stepmania.stepchart",sxc:"application/vnd.sun.xml.calc",stc:"application/vnd.sun.xml.calc.template",sxd:"application/vnd.sun.xml.draw",std:"application/vnd.sun.xml.draw.template",sxi:"application/vnd.sun.xml.impress",sti:"application/vnd.sun.xml.impress.template",sxm:"application/vnd.sun.xml.math",sxw:"application/vnd.sun.xml.writer",sxg:"application/vnd.sun.xml.writer.global",stw:"application/vnd.sun.xml.writer.template",sus:"application/vnd.sus-calendar",susp:"application/vnd.sus-calendar",svd:"application/vnd.svd",sis:"application/vnd.symbian.install",sisx:"application/vnd.symbian.install",xsm:"application/vnd.syncml+xml",bdm:"application/vnd.syncml.dm+wbxml",xdm:"application/vnd.syncml.dm+xml",tao:"application/vnd.tao.intent-module-archive",pcap:"application/vnd.tcpdump.pcap",cap:"application/vnd.tcpdump.pcap",dmp:"application/vnd.tcpdump.pcap",tmo:"application/vnd.tmobile-livetv",tpt:"application/vnd.trid.tpt",mxs:"application/vnd.triscape.mxs",tra:"application/vnd.trueapp",ufd:"application/vnd.ufdl",ufdl:"application/vnd.ufdl",utz:"application/vnd.uiq.theme",umj:"application/vnd.umajin",unityweb:"application/vnd.unity",uoml:"application/vnd.uoml+xml",vcx:"application/vnd.vcx",vsd:"application/vnd.visio",vst:"application/vnd.visio",vss:"application/vnd.visio",vsw:"application/vnd.visio",vis:"application/vnd.visionary",vsf:"application/vnd.vsf",wbxml:"application/vnd.wap.wbxml",wmlc:"application/vnd.wap.wmlc",wmlsc:"application/vnd.wap.wmlscriptc",wtb:"application/vnd.webturbo",nbp:"application/vnd.wolfram.player",wpd:"application/vnd.wordperfect",wqd:"application/vnd.wqd",stf:"application/vnd.wt.stf",xar:"application/vnd.xara",xfdl:"application/vnd.xfdl",hvd:"application/vnd.yamaha.hv-dic",hvs:"application/vnd.yamaha.hv-script",hvp:"application/vnd.yamaha.hv-voice",osf:"application/vnd.yamaha.openscoreformat",osfpvg:"application/vnd.yamaha.openscoreformat.osfpvg+xml",saf:"application/vnd.yamaha.smaf-audio",spf:"application/vnd.yamaha.smaf-phrase",cmp:"application/vnd.yellowriver-custom-menu",zir:"application/vnd.zul",zirz:"application/vnd.zul",zaz:"application/vnd.zzazz.deck+xml",vxml:"application/voicexml+xml",wgt:"application/widget",hlp:"application/winhlp",wsdl:"application/wsdl+xml",wspolicy:"application/wspolicy+xml","7z":"application/x-7z-compressed",abw:"application/x-abiword",ace:"application/x-ace-compressed",dmg:"application/x-apple-diskimage",aab:"application/x-authorware-bin",x32:"application/x-authorware-bin",u32:"application/x-authorware-bin",vox:"application/x-authorware-bin",aam:"application/x-authorware-map",aas:"application/x-authorware-seg",bcpio:"application/x-bcpio",torrent:"application/x-bittorrent",blb:"application/x-blorb",blorb:"application/x-blorb",bz:"application/x-bzip",bz2:"application/x-bzip2",boz:"application/x-bzip2",cbr:"application/x-cbr",cba:"application/x-cbr",cbt:"application/x-cbr",cbz:"application/x-cbr",cb7:"application/x-cbr",vcd:"application/x-cdlink",cfs:"application/x-cfs-compressed",chat:"application/x-chat",pgn:"application/x-chess-pgn",nsc:"application/x-conference",cpio:"application/x-cpio",csh:"application/x-csh",deb:"application/x-debian-package",udeb:"application/x-debian-package",dgc:"application/x-dgc-compressed",dir:"application/x-director",dcr:"application/x-director",dxr:"application/x-director",cst:"application/x-director",cct:"application/x-director",cxt:"application/x-director",w3d:"application/x-director",fgd:"application/x-director",swa:"application/x-director",wad:"application/x-doom",ncx:"application/x-dtbncx+xml",dtb:"application/x-dtbook+xml",res:"application/x-dtbresource+xml",dvi:"application/x-dvi",evy:"application/x-envoy",eva:"application/x-eva",bdf:"application/x-font-bdf",gsf:"application/x-font-ghostscript",psf:"application/x-font-linux-psf",otf:"application/x-font-otf",pcf:"application/x-font-pcf",snf:"application/x-font-snf",ttf:"application/x-font-ttf",ttc:"application/x-font-ttf",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfm:"application/x-font-type1",afm:"application/x-font-type1",woff:"application/x-font-woff",arc:"application/x-freearc",spl:"application/x-futuresplash",gca:"application/x-gca-compressed",ulx:"application/x-glulx",gnumeric:"application/x-gnumeric",gramps:"application/x-gramps-xml",gtar:"application/x-gtar",hdf:"application/x-hdf",install:"application/x-install-instructions",iso:"application/x-iso9660-image",jnlp:"application/x-java-jnlp-file",latex:"application/x-latex",lzh:"application/x-lzh-compressed",lha:"application/x-lzh-compressed",mie:"application/x-mie",prc:"application/x-mobipocket-ebook",mobi:"application/x-mobipocket-ebook",application:"application/x-ms-application",lnk:"application/x-ms-shortcut",wmd:"application/x-ms-wmd",wmz:"application/x-msmetafile",xbap:"application/x-ms-xbap",mdb:"application/x-msaccess",obd:"application/x-msbinder",crd:"application/x-mscardfile",clp:"application/x-msclip",exe:"application/x-msdownload",dll:"application/x-msdownload",com:"application/x-msdownload",bat:"application/x-msdownload",msi:"application/x-msdownload",mvb:"application/x-msmediaview",m13:"application/x-msmediaview",m14:"application/x-msmediaview",wmf:"application/x-msmetafile",emf:"application/x-msmetafile",emz:"application/x-msmetafile",mny:"application/x-msmoney",pub:"application/x-mspublisher",scd:"application/x-msschedule",trm:"application/x-msterminal",wri:"application/x-mswrite",nc:"application/x-netcdf",cdf:"application/x-netcdf",nzb:"application/x-nzb",p12:"application/x-pkcs12",pfx:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",spc:"application/x-pkcs7-certificates",p7r:"application/x-pkcs7-certreqresp",rar:"application/x-rar-compressed",ris:"application/x-research-info-systems",sh:"application/x-sh",shar:"application/x-shar",swf:"application/x-shockwave-flash",xap:"application/x-silverlight-app",sql:"application/x-sql",sit:"application/x-stuffit",sitx:"application/x-stuffitx",srt:"application/x-subrip",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",t3:"application/x-t3vm-image",gam:"application/x-tads",tar:"application/x-tar",tcl:"application/x-tcl",tex:"application/x-tex",tfm:"application/x-tex-tfm",texinfo:"application/x-texinfo",texi:"application/x-texinfo",obj:"application/x-tgif",ustar:"application/x-ustar",src:"application/x-wais-source",der:"application/x-x509-ca-cert",crt:"application/x-x509-ca-cert",fig:"application/x-xfig",xlf:"application/x-xliff+xml",xpi:"application/x-xpinstall",xz:"application/x-xz",z1:"application/x-zmachine",z2:"application/x-zmachine",z3:"application/x-zmachine",z4:"application/x-zmachine",z5:"application/x-zmachine",z6:"application/x-zmachine",z7:"application/x-zmachine",z8:"application/x-zmachine",xaml:"application/xaml+xml",xdf:"application/xcap-diff+xml",xenc:"application/xenc+xml",xhtml:"application/xhtml+xml",xht:"application/xhtml+xml",xml:"application/xml",xsl:"application/xml",dtd:"application/xml-dtd",xop:"application/xop+xml",xpl:"application/xproc+xml",xslt:"application/xslt+xml",xspf:"application/xspf+xml",mxml:"application/xv+xml",xhvml:"application/xv+xml",xvml:"application/xv+xml",xvm:"application/xv+xml",yang:"application/yang",yin:"application/yin+xml",zip:"application/zip",adp:"audio/adpcm",au:"audio/basic",snd:"audio/basic",mid:"audio/midi",midi:"audio/midi",kar:"audio/midi",rmi:"audio/midi",mp4a:"audio/mp4",mpga:"audio/mpeg",mp2:"audio/mpeg",mp2a:"audio/mpeg",mp3:"audio/mpeg",m2a:"audio/mpeg",m3a:"audio/mpeg",oga:"audio/ogg",ogg:"audio/ogg",spx:"audio/ogg",s3m:"audio/s3m",sil:"audio/silk",uva:"audio/vnd.dece.audio",uvva:"audio/vnd.dece.audio",eol:"audio/vnd.digital-winds",dra:"audio/vnd.dra",dts:"audio/vnd.dts",dtshd:"audio/vnd.dts.hd",lvp:"audio/vnd.lucent.voice",pya:"audio/vnd.ms-playready.media.pya",ecelp4800:"audio/vnd.nuera.ecelp4800",ecelp7470:"audio/vnd.nuera.ecelp7470",ecelp9600:"audio/vnd.nuera.ecelp9600",rip:"audio/vnd.rip",weba:"audio/webm",aac:"audio/x-aac",aif:"audio/x-aiff",aiff:"audio/x-aiff",aifc:"audio/x-aiff",caf:"audio/x-caf",flac:"audio/x-flac",mka:"audio/x-matroska",m3u:"audio/x-mpegurl",wax:"audio/x-ms-wax",wma:"audio/x-ms-wma",ram:"audio/x-pn-realaudio",ra:"audio/x-pn-realaudio",rmp:"audio/x-pn-realaudio-plugin",wav:"audio/x-wav",xm:"audio/xm",cdx:"chemical/x-cdx",cif:"chemical/x-cif",cmdf:"chemical/x-cmdf",cml:"chemical/x-cml",csml:"chemical/x-csml",xyz:"chemical/x-xyz",bmp:"image/bmp",cgm:"image/cgm",g3:"image/g3fax",gif:"image/gif",ief:"image/ief",jpeg:"image/jpeg",jpg:"image/jpeg",jpe:"image/jpeg",ktx:"image/ktx",png:"image/png",btif:"image/prs.btif",sgi:"image/sgi",svg:"image/svg+xml",svgz:"image/svg+xml",tiff:"image/tiff",tif:"image/tiff",psd:"image/vnd.adobe.photoshop",uvi:"image/vnd.dece.graphic",uvvi:"image/vnd.dece.graphic",uvg:"image/vnd.dece.graphic",uvvg:"image/vnd.dece.graphic",sub:"text/vnd.dvb.subtitle",djvu:"image/vnd.djvu",djv:"image/vnd.djvu",dwg:"image/vnd.dwg",dxf:"image/vnd.dxf",fbs:"image/vnd.fastbidsheet",fpx:"image/vnd.fpx",fst:"image/vnd.fst",mmr:"image/vnd.fujixerox.edmics-mmr",rlc:"image/vnd.fujixerox.edmics-rlc",mdi:"image/vnd.ms-modi",wdp:"image/vnd.ms-photo",npx:"image/vnd.net-fpx",wbmp:"image/vnd.wap.wbmp",xif:"image/vnd.xiff",webp:"image/webp","3ds":"image/x-3ds",ras:"image/x-cmu-raster",cmx:"image/x-cmx",fh:"image/x-freehand",fhc:"image/x-freehand",fh4:"image/x-freehand",fh5:"image/x-freehand",fh7:"image/x-freehand",ico:"image/x-icon",sid:"image/x-mrsid-image",pcx:"image/x-pcx",pic:"image/x-pict",pct:"image/x-pict",pnm:"image/x-portable-anymap",pbm:"image/x-portable-bitmap",pgm:"image/x-portable-graymap",ppm:"image/x-portable-pixmap",rgb:"image/x-rgb",tga:"image/x-tga",xbm:"image/x-xbitmap",xpm:"image/x-xpixmap",xwd:"image/x-xwindowdump",eml:"message/rfc822",mime:"message/rfc822",igs:"model/iges",iges:"model/iges",msh:"model/mesh",mesh:"model/mesh",silo:"model/mesh",dae:"model/vnd.collada+xml",dwf:"model/vnd.dwf",gdl:"model/vnd.gdl",gtw:"model/vnd.gtw",mts:"model/vnd.mts",vtu:"model/vnd.vtu",wrl:"model/vrml",vrml:"model/vrml",x3db:"model/x3d+binary",x3dbz:"model/x3d+binary",x3dv:"model/x3d+vrml",x3dvz:"model/x3d+vrml",x3d:"model/x3d+xml",x3dz:"model/x3d+xml",appcache:"text/cache-manifest",ics:"text/calendar",ifb:"text/calendar",css:"text/css",csv:"text/csv",html:"text/html",htm:"text/html",n3:"text/n3",txt:"text/plain",text:"text/plain",conf:"text/plain",def:"text/plain",list:"text/plain",log:"text/plain",in:"text/plain",dsc:"text/prs.lines.tag",rtx:"text/richtext",sgml:"text/sgml",sgm:"text/sgml",tsv:"text/tab-separated-values",t:"text/troff",tr:"text/troff",roff:"text/troff",man:"text/troff",me:"text/troff",ms:"text/troff",ttl:"text/turtle",uri:"text/uri-list",uris:"text/uri-list",urls:"text/uri-list",vcard:"text/vcard",curl:"text/vnd.curl",dcurl:"text/vnd.curl.dcurl",scurl:"text/vnd.curl.scurl",mcurl:"text/vnd.curl.mcurl",fly:"text/vnd.fly",flx:"text/vnd.fmi.flexstor",gv:"text/vnd.graphviz","3dml":"text/vnd.in3d.3dml",spot:"text/vnd.in3d.spot",jad:"text/vnd.sun.j2me.app-descriptor",wml:"text/vnd.wap.wml",wmls:"text/vnd.wap.wmlscript",s:"text/x-asm",asm:"text/x-asm",c:"text/x-c",cc:"text/x-c",cxx:"text/x-c",cpp:"text/x-c",h:"text/x-c",hh:"text/x-c",dic:"text/x-c",f:"text/x-fortran",for:"text/x-fortran",f77:"text/x-fortran",f90:"text/x-fortran",java:"text/x-java-source",opml:"text/x-opml",p:"text/x-pascal",pas:"text/x-pascal",nfo:"text/x-nfo",etx:"text/x-setext",sfv:"text/x-sfv",uu:"text/x-uuencode",vcs:"text/x-vcalendar",vcf:"text/x-vcard","3gp":"video/3gpp","3g2":"video/3gpp2",h261:"video/h261",h263:"video/h263",h264:"video/h264",jpgv:"video/jpeg",jpm:"video/jpm",jpgm:"video/jpm",mj2:"video/mj2",mjp2:"video/mj2",mp4:"video/mp4",mp4v:"video/mp4",mpg4:"video/mp4",mpeg:"video/mpeg",mpg:"video/mpeg",mpe:"video/mpeg",m1v:"video/mpeg",m2v:"video/mpeg",ogv:"video/ogg",qt:"video/quicktime",mov:"video/quicktime",uvh:"video/vnd.dece.hd",uvvh:"video/vnd.dece.hd",uvm:"video/vnd.dece.mobile",uvvm:"video/vnd.dece.mobile",uvp:"video/vnd.dece.pd",uvvp:"video/vnd.dece.pd",uvs:"video/vnd.dece.sd",uvvs:"video/vnd.dece.sd",uvv:"video/vnd.dece.video",uvvv:"video/vnd.dece.video",dvb:"video/vnd.dvb.file",fvt:"video/vnd.fvt",mxu:"video/vnd.mpegurl",m4u:"video/vnd.mpegurl",pyv:"video/vnd.ms-playready.media.pyv",uvu:"video/vnd.uvvu.mp4",uvvu:"video/vnd.uvvu.mp4",viv:"video/vnd.vivo",webm:"video/webm",f4v:"video/x-f4v",fli:"video/x-fli",flv:"video/x-flv",m4v:"video/x-m4v",mkv:"video/x-matroska",mk3d:"video/x-matroska",mks:"video/x-matroska",mng:"video/x-mng",asf:"video/x-ms-asf",asx:"video/x-ms-asf",vob:"video/x-ms-vob",wm:"video/x-ms-wm",wmv:"video/x-ms-wmv",wmx:"video/x-ms-wmx",wvx:"video/x-ms-wvx",avi:"video/x-msvideo",movie:"video/x-sgi-movie",smv:"video/x-smv",ice:"x-conference/x-cooltalk",vtt:"text/vtt",crx:"application/x-chrome-extension",htc:"text/x-component",manifest:"text/cache-manifest",buffer:"application/octet-stream",m4p:"application/mp4",m4a:"audio/mp4",ts:"video/MP2T","event-stream":"text/event-stream",webapp:"application/x-web-app-manifest+json",lua:"text/x-lua",luac:"application/x-lua-bytecode",markdown:"text/x-markdown",md:"text/x-markdown",mkd:"text/x-markdown"},extensions:{"application/andrew-inset":"ez","application/applixware":"aw","application/atom+xml":"atom","application/atomcat+xml":"atomcat","application/atomsvc+xml":"atomsvc","application/ccxml+xml":"ccxml","application/cdmi-capability":"cdmia","application/cdmi-container":"cdmic","application/cdmi-domain":"cdmid","application/cdmi-object":"cdmio","application/cdmi-queue":"cdmiq","application/cu-seeme":"cu","application/davmount+xml":"davmount","application/docbook+xml":"dbk","application/dssc+der":"dssc","application/dssc+xml":"xdssc","application/ecmascript":"ecma","application/emma+xml":"emma","application/epub+zip":"epub","application/exi":"exi","application/font-tdpfr":"pfr","application/gml+xml":"gml","application/gpx+xml":"gpx","application/gxf":"gxf","application/hyperstudio":"stk","application/inkml+xml":"ink","application/ipfix":"ipfix","application/java-archive":"jar","application/java-serialized-object":"ser","application/java-vm":"class","application/javascript":"js","application/json":"json","application/jsonml+json":"jsonml","application/lost+xml":"lostxml","application/mac-binhex40":"hqx","application/mac-compactpro":"cpt","application/mads+xml":"mads","application/marc":"mrc","application/marcxml+xml":"mrcx","application/mathematica":"ma","application/mathml+xml":"mathml","application/mbox":"mbox","application/mediaservercontrol+xml":"mscml","application/metalink+xml":"metalink","application/metalink4+xml":"meta4","application/mets+xml":"mets","application/mods+xml":"mods","application/mp21":"m21","application/mp4":"mp4s","application/msword":"doc","application/mxf":"mxf","application/octet-stream":"bin","application/oda":"oda","application/oebps-package+xml":"opf","application/ogg":"ogx","application/omdoc+xml":"omdoc","application/onenote":"onetoc","application/oxps":"oxps","application/patch-ops-error+xml":"xer","application/pdf":"pdf","application/pgp-encrypted":"pgp","application/pgp-signature":"asc","application/pics-rules":"prf","application/pkcs10":"p10","application/pkcs7-mime":"p7m","application/pkcs7-signature":"p7s","application/pkcs8":"p8","application/pkix-attr-cert":"ac","application/pkix-cert":"cer","application/pkix-crl":"crl","application/pkix-pkipath":"pkipath","application/pkixcmp":"pki","application/pls+xml":"pls","application/postscript":"ai","application/prs.cww":"cww","application/pskc+xml":"pskcxml","application/rdf+xml":"rdf","application/reginfo+xml":"rif","application/relax-ng-compact-syntax":"rnc","application/resource-lists+xml":"rl","application/resource-lists-diff+xml":"rld","application/rls-services+xml":"rs","application/rpki-ghostbusters":"gbr","application/rpki-manifest":"mft","application/rpki-roa":"roa","application/rsd+xml":"rsd","application/rss+xml":"rss","application/rtf":"rtf","application/sbml+xml":"sbml","application/scvp-cv-request":"scq","application/scvp-cv-response":"scs","application/scvp-vp-request":"spq","application/scvp-vp-response":"spp","application/sdp":"sdp","application/set-payment-initiation":"setpay","application/set-registration-initiation":"setreg","application/shf+xml":"shf","application/smil+xml":"smi","application/sparql-query":"rq","application/sparql-results+xml":"srx","application/srgs":"gram","application/srgs+xml":"grxml","application/sru+xml":"sru","application/ssdl+xml":"ssdl","application/ssml+xml":"ssml","application/tei+xml":"tei","application/thraud+xml":"tfi","application/timestamped-data":"tsd","application/vnd.3gpp.pic-bw-large":"plb","application/vnd.3gpp.pic-bw-small":"psb","application/vnd.3gpp.pic-bw-var":"pvb","application/vnd.3gpp2.tcap":"tcap","application/vnd.3m.post-it-notes":"pwn","application/vnd.accpac.simply.aso":"aso","application/vnd.accpac.simply.imp":"imp","application/vnd.acucobol":"acu","application/vnd.acucorp":"atc","application/vnd.adobe.air-application-installer-package+zip":"air","application/vnd.adobe.formscentral.fcdt":"fcdt","application/vnd.adobe.fxp":"fxp","application/vnd.adobe.xdp+xml":"xdp","application/vnd.adobe.xfdf":"xfdf","application/vnd.ahead.space":"ahead","application/vnd.airzip.filesecure.azf":"azf","application/vnd.airzip.filesecure.azs":"azs","application/vnd.amazon.ebook":"azw","application/vnd.americandynamics.acc":"acc","application/vnd.amiga.ami":"ami","application/vnd.android.package-archive":"apk","application/vnd.anser-web-certificate-issue-initiation":"cii","application/vnd.anser-web-funds-transfer-initiation":"fti","application/vnd.antix.game-component":"atx","application/vnd.apple.installer+xml":"mpkg","application/vnd.apple.mpegurl":"m3u8","application/vnd.aristanetworks.swi":"swi","application/vnd.astraea-software.iota":"iota","application/vnd.audiograph":"aep","application/vnd.blueice.multipass":"mpm","application/vnd.bmi":"bmi","application/vnd.businessobjects":"rep","application/vnd.chemdraw+xml":"cdxml","application/vnd.chipnuts.karaoke-mmd":"mmd","application/vnd.cinderella":"cdy","application/vnd.claymore":"cla","application/vnd.cloanto.rp9":"rp9","application/vnd.clonk.c4group":"c4g","application/vnd.cluetrust.cartomobile-config":"c11amc","application/vnd.cluetrust.cartomobile-config-pkg":"c11amz","application/vnd.commonspace":"csp","application/vnd.contact.cmsg":"cdbcmsg","application/vnd.cosmocaller":"cmc","application/vnd.crick.clicker":"clkx","application/vnd.crick.clicker.keyboard":"clkk","application/vnd.crick.clicker.palette":"clkp","application/vnd.crick.clicker.template":"clkt","application/vnd.crick.clicker.wordbank":"clkw","application/vnd.criticaltools.wbs+xml":"wbs","application/vnd.ctc-posml":"pml","application/vnd.cups-ppd":"ppd","application/vnd.curl.car":"car","application/vnd.curl.pcurl":"pcurl","application/vnd.dart":"dart","application/vnd.data-vision.rdz":"rdz","application/vnd.dece.data":"uvf","application/vnd.dece.ttml+xml":"uvt","application/vnd.dece.unspecified":"uvx","application/vnd.dece.zip":"uvz","application/vnd.denovo.fcselayout-link":"fe_launch","application/vnd.dna":"dna","application/vnd.dolby.mlp":"mlp","application/vnd.dpgraph":"dpg","application/vnd.dreamfactory":"dfac","application/vnd.ds-keypoint":"kpxx","application/vnd.dvb.ait":"ait","application/vnd.dvb.service":"svc","application/vnd.dynageo":"geo","application/vnd.ecowin.chart":"mag","application/vnd.enliven":"nml","application/vnd.epson.esf":"esf","application/vnd.epson.msf":"msf","application/vnd.epson.quickanime":"qam","application/vnd.epson.salt":"slt","application/vnd.epson.ssf":"ssf","application/vnd.eszigno3+xml":"es3","application/vnd.ezpix-album":"ez2","application/vnd.ezpix-package":"ez3","application/vnd.fdf":"fdf","application/vnd.fdsn.mseed":"mseed","application/vnd.fdsn.seed":"seed","application/vnd.flographit":"gph","application/vnd.fluxtime.clip":"ftc","application/vnd.framemaker":"fm","application/vnd.frogans.fnc":"fnc","application/vnd.frogans.ltf":"ltf","application/vnd.fsc.weblaunch":"fsc","application/vnd.fujitsu.oasys":"oas","application/vnd.fujitsu.oasys2":"oa2","application/vnd.fujitsu.oasys3":"oa3","application/vnd.fujitsu.oasysgp":"fg5","application/vnd.fujitsu.oasysprs":"bh2","application/vnd.fujixerox.ddd":"ddd","application/vnd.fujixerox.docuworks":"xdw","application/vnd.fujixerox.docuworks.binder":"xbd","application/vnd.fuzzysheet":"fzs","application/vnd.genomatix.tuxedo":"txd","application/vnd.geogebra.file":"ggb","application/vnd.geogebra.tool":"ggt","application/vnd.geometry-explorer":"gex","application/vnd.geonext":"gxt","application/vnd.geoplan":"g2w","application/vnd.geospace":"g3w","application/vnd.gmx":"gmx","application/vnd.google-earth.kml+xml":"kml","application/vnd.google-earth.kmz":"kmz","application/vnd.grafeq":"gqf","application/vnd.groove-account":"gac","application/vnd.groove-help":"ghf","application/vnd.groove-identity-message":"gim","application/vnd.groove-injector":"grv","application/vnd.groove-tool-message":"gtm","application/vnd.groove-tool-template":"tpl","application/vnd.groove-vcard":"vcg","application/vnd.hal+xml":"hal","application/vnd.handheld-entertainment+xml":"zmm","application/vnd.hbci":"hbci","application/vnd.hhe.lesson-player":"les","application/vnd.hp-hpgl":"hpgl","application/vnd.hp-hpid":"hpid","application/vnd.hp-hps":"hps","application/vnd.hp-jlyt":"jlt","application/vnd.hp-pcl":"pcl","application/vnd.hp-pclxl":"pclxl","application/vnd.hydrostatix.sof-data":"sfd-hdstx","application/vnd.ibm.minipay":"mpy","application/vnd.ibm.modcap":"afp","application/vnd.ibm.rights-management":"irm","application/vnd.ibm.secure-container":"sc","application/vnd.iccprofile":"icc","application/vnd.igloader":"igl","application/vnd.immervision-ivp":"ivp","application/vnd.immervision-ivu":"ivu","application/vnd.insors.igm":"igm","application/vnd.intercon.formnet":"xpw","application/vnd.intergeo":"i2g","application/vnd.intu.qbo":"qbo","application/vnd.intu.qfx":"qfx","application/vnd.ipunplugged.rcprofile":"rcprofile","application/vnd.irepository.package+xml":"irp","application/vnd.is-xpr":"xpr","application/vnd.isac.fcs":"fcs","application/vnd.jam":"jam","application/vnd.jcp.javame.midlet-rms":"rms","application/vnd.jisp":"jisp","application/vnd.joost.joda-archive":"joda","application/vnd.kahootz":"ktz","application/vnd.kde.karbon":"karbon","application/vnd.kde.kchart":"chrt","application/vnd.kde.kformula":"kfo","application/vnd.kde.kivio":"flw","application/vnd.kde.kontour":"kon","application/vnd.kde.kpresenter":"kpr","application/vnd.kde.kspread":"ksp","application/vnd.kde.kword":"kwd","application/vnd.kenameaapp":"htke","application/vnd.kidspiration":"kia","application/vnd.kinar":"kne","application/vnd.koan":"skp","application/vnd.kodak-descriptor":"sse","application/vnd.las.las+xml":"lasxml","application/vnd.llamagraphics.life-balance.desktop":"lbd","application/vnd.llamagraphics.life-balance.exchange+xml":"lbe","application/vnd.lotus-1-2-3":"123","application/vnd.lotus-approach":"apr","application/vnd.lotus-freelance":"pre","application/vnd.lotus-notes":"nsf","application/vnd.lotus-organizer":"org","application/vnd.lotus-screencam":"scm","application/vnd.lotus-wordpro":"lwp","application/vnd.macports.portpkg":"portpkg","application/vnd.mcd":"mcd","application/vnd.medcalcdata":"mc1","application/vnd.mediastation.cdkey":"cdkey","application/vnd.mfer":"mwf","application/vnd.mfmp":"mfm","application/vnd.micrografx.flo":"flo","application/vnd.micrografx.igx":"igx","application/vnd.mif":"mif","application/vnd.mobius.daf":"daf","application/vnd.mobius.dis":"dis","application/vnd.mobius.mbk":"mbk","application/vnd.mobius.mqy":"mqy","application/vnd.mobius.msl":"msl","application/vnd.mobius.plc":"plc","application/vnd.mobius.txf":"txf","application/vnd.mophun.application":"mpn","application/vnd.mophun.certificate":"mpc","application/vnd.mozilla.xul+xml":"xul","application/vnd.ms-artgalry":"cil","application/vnd.ms-cab-compressed":"cab","application/vnd.ms-excel":"xls","application/vnd.ms-excel.addin.macroenabled.12":"xlam","application/vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","application/vnd.ms-excel.sheet.macroenabled.12":"xlsm","application/vnd.ms-excel.template.macroenabled.12":"xltm","application/vnd.ms-fontobject":"eot","application/vnd.ms-htmlhelp":"chm","application/vnd.ms-ims":"ims","application/vnd.ms-lrm":"lrm","application/vnd.ms-officetheme":"thmx","application/vnd.ms-pki.seccat":"cat","application/vnd.ms-pki.stl":"stl","application/vnd.ms-powerpoint":"ppt","application/vnd.ms-powerpoint.addin.macroenabled.12":"ppam","application/vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","application/vnd.ms-powerpoint.slide.macroenabled.12":"sldm","application/vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","application/vnd.ms-powerpoint.template.macroenabled.12":"potm","application/vnd.ms-project":"mpp","application/vnd.ms-word.document.macroenabled.12":"docm","application/vnd.ms-word.template.macroenabled.12":"dotm","application/vnd.ms-works":"wps","application/vnd.ms-wpl":"wpl","application/vnd.ms-xpsdocument":"xps","application/vnd.mseq":"mseq","application/vnd.musician":"mus","application/vnd.muvee.style":"msty","application/vnd.mynfc":"taglet","application/vnd.neurolanguage.nlu":"nlu","application/vnd.nitf":"ntf","application/vnd.noblenet-directory":"nnd","application/vnd.noblenet-sealer":"nns","application/vnd.noblenet-web":"nnw","application/vnd.nokia.n-gage.data":"ngdat","application/vnd.nokia.n-gage.symbian.install":"n-gage","application/vnd.nokia.radio-preset":"rpst","application/vnd.nokia.radio-presets":"rpss","application/vnd.novadigm.edm":"edm","application/vnd.novadigm.edx":"edx","application/vnd.novadigm.ext":"ext","application/vnd.oasis.opendocument.chart":"odc","application/vnd.oasis.opendocument.chart-template":"otc","application/vnd.oasis.opendocument.database":"odb","application/vnd.oasis.opendocument.formula":"odf","application/vnd.oasis.opendocument.formula-template":"odft","application/vnd.oasis.opendocument.graphics":"odg","application/vnd.oasis.opendocument.graphics-template":"otg","application/vnd.oasis.opendocument.image":"odi","application/vnd.oasis.opendocument.image-template":"oti","application/vnd.oasis.opendocument.presentation":"odp","application/vnd.oasis.opendocument.presentation-template":"otp","application/vnd.oasis.opendocument.spreadsheet":"ods","application/vnd.oasis.opendocument.spreadsheet-template":"ots","application/vnd.oasis.opendocument.text":"odt","application/vnd.oasis.opendocument.text-master":"odm","application/vnd.oasis.opendocument.text-template":"ott","application/vnd.oasis.opendocument.text-web":"oth","application/vnd.olpc-sugar":"xo","application/vnd.oma.dd2+xml":"dd2","application/vnd.openofficeorg.extension":"oxt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/vnd.openxmlformats-officedocument.presentationml.slide":"sldx","application/vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","application/vnd.openxmlformats-officedocument.presentationml.template":"potx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","application/vnd.osgeo.mapguide.package":"mgp","application/vnd.osgi.dp":"dp","application/vnd.osgi.subsystem":"esa","application/vnd.palm":"pdb","application/vnd.pawaafile":"paw","application/vnd.pg.format":"str","application/vnd.pg.osasli":"ei6","application/vnd.picsel":"efif","application/vnd.pmi.widget":"wg","application/vnd.pocketlearn":"plf","application/vnd.powerbuilder6":"pbd","application/vnd.previewsystems.box":"box","application/vnd.proteus.magazine":"mgz","application/vnd.publishare-delta-tree":"qps","application/vnd.pvi.ptid1":"ptid","application/vnd.quark.quarkxpress":"qxd","application/vnd.realvnc.bed":"bed","application/vnd.recordare.musicxml":"mxl","application/vnd.recordare.musicxml+xml":"musicxml","application/vnd.rig.cryptonote":"cryptonote","application/vnd.rim.cod":"cod","application/vnd.rn-realmedia":"rm","application/vnd.rn-realmedia-vbr":"rmvb","application/vnd.route66.link66+xml":"link66","application/vnd.sailingtracker.track":"st","application/vnd.seemail":"see","application/vnd.sema":"sema","application/vnd.semd":"semd","application/vnd.semf":"semf","application/vnd.shana.informed.formdata":"ifm","application/vnd.shana.informed.formtemplate":"itp","application/vnd.shana.informed.interchange":"iif","application/vnd.shana.informed.package":"ipk","application/vnd.simtech-mindmapper":"twd","application/vnd.smaf":"mmf","application/vnd.smart.teacher":"teacher","application/vnd.solent.sdkm+xml":"sdkm","application/vnd.spotfire.dxp":"dxp","application/vnd.spotfire.sfs":"sfs","application/vnd.stardivision.calc":"sdc","application/vnd.stardivision.draw":"sda","application/vnd.stardivision.impress":"sdd","application/vnd.stardivision.math":"smf","application/vnd.stardivision.writer":"sdw","application/vnd.stardivision.writer-global":"sgl","application/vnd.stepmania.package":"smzip","application/vnd.stepmania.stepchart":"sm","application/vnd.sun.xml.calc":"sxc","application/vnd.sun.xml.calc.template":"stc","application/vnd.sun.xml.draw":"sxd","application/vnd.sun.xml.draw.template":"std","application/vnd.sun.xml.impress":"sxi","application/vnd.sun.xml.impress.template":"sti","application/vnd.sun.xml.math":"sxm","application/vnd.sun.xml.writer":"sxw","application/vnd.sun.xml.writer.global":"sxg","application/vnd.sun.xml.writer.template":"stw","application/vnd.sus-calendar":"sus","application/vnd.svd":"svd","application/vnd.symbian.install":"sis","application/vnd.syncml+xml":"xsm","application/vnd.syncml.dm+wbxml":"bdm","application/vnd.syncml.dm+xml":"xdm","application/vnd.tao.intent-module-archive":"tao","application/vnd.tcpdump.pcap":"pcap","application/vnd.tmobile-livetv":"tmo","application/vnd.trid.tpt":"tpt","application/vnd.triscape.mxs":"mxs","application/vnd.trueapp":"tra","application/vnd.ufdl":"ufd","application/vnd.uiq.theme":"utz","application/vnd.umajin":"umj","application/vnd.unity":"unityweb","application/vnd.uoml+xml":"uoml","application/vnd.vcx":"vcx","application/vnd.visio":"vsd","application/vnd.visionary":"vis","application/vnd.vsf":"vsf","application/vnd.wap.wbxml":"wbxml","application/vnd.wap.wmlc":"wmlc","application/vnd.wap.wmlscriptc":"wmlsc","application/vnd.webturbo":"wtb","application/vnd.wolfram.player":"nbp","application/vnd.wordperfect":"wpd","application/vnd.wqd":"wqd","application/vnd.wt.stf":"stf","application/vnd.xara":"xar","application/vnd.xfdl":"xfdl","application/vnd.yamaha.hv-dic":"hvd","application/vnd.yamaha.hv-script":"hvs","application/vnd.yamaha.hv-voice":"hvp","application/vnd.yamaha.openscoreformat":"osf","application/vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","application/vnd.yamaha.smaf-audio":"saf","application/vnd.yamaha.smaf-phrase":"spf","application/vnd.yellowriver-custom-menu":"cmp","application/vnd.zul":"zir","application/vnd.zzazz.deck+xml":"zaz","application/voicexml+xml":"vxml","application/widget":"wgt","application/winhlp":"hlp","application/wsdl+xml":"wsdl","application/wspolicy+xml":"wspolicy","application/x-7z-compressed":"7z","application/x-abiword":"abw","application/x-ace-compressed":"ace","application/x-apple-diskimage":"dmg","application/x-authorware-bin":"aab","application/x-authorware-map":"aam","application/x-authorware-seg":"aas","application/x-bcpio":"bcpio","application/x-bittorrent":"torrent","application/x-blorb":"blb","application/x-bzip":"bz","application/x-bzip2":"bz2","application/x-cbr":"cbr","application/x-cdlink":"vcd","application/x-cfs-compressed":"cfs","application/x-chat":"chat","application/x-chess-pgn":"pgn","application/x-conference":"nsc","application/x-cpio":"cpio","application/x-csh":"csh","application/x-debian-package":"deb","application/x-dgc-compressed":"dgc","application/x-director":"dir","application/x-doom":"wad","application/x-dtbncx+xml":"ncx","application/x-dtbook+xml":"dtb","application/x-dtbresource+xml":"res","application/x-dvi":"dvi","application/x-envoy":"evy","application/x-eva":"eva","application/x-font-bdf":"bdf","application/x-font-ghostscript":"gsf","application/x-font-linux-psf":"psf","application/x-font-otf":"otf","application/x-font-pcf":"pcf","application/x-font-snf":"snf","application/x-font-ttf":"ttf","application/x-font-type1":"pfa","application/x-font-woff":"woff","application/x-freearc":"arc","application/x-futuresplash":"spl","application/x-gca-compressed":"gca","application/x-glulx":"ulx","application/x-gnumeric":"gnumeric","application/x-gramps-xml":"gramps","application/x-gtar":"gtar","application/x-hdf":"hdf","application/x-install-instructions":"install","application/x-iso9660-image":"iso","application/x-java-jnlp-file":"jnlp","application/x-latex":"latex","application/x-lzh-compressed":"lzh","application/x-mie":"mie","application/x-mobipocket-ebook":"prc","application/x-ms-application":"application","application/x-ms-shortcut":"lnk","application/x-ms-wmd":"wmd","application/x-ms-wmz":"wmz","application/x-ms-xbap":"xbap","application/x-msaccess":"mdb","application/x-msbinder":"obd","application/x-mscardfile":"crd","application/x-msclip":"clp","application/x-msdownload":"exe","application/x-msmediaview":"mvb","application/x-msmetafile":"wmf","application/x-msmoney":"mny","application/x-mspublisher":"pub","application/x-msschedule":"scd","application/x-msterminal":"trm","application/x-mswrite":"wri","application/x-netcdf":"nc","application/x-nzb":"nzb","application/x-pkcs12":"p12","application/x-pkcs7-certificates":"p7b","application/x-pkcs7-certreqresp":"p7r","application/x-rar-compressed":"rar","application/x-research-info-systems":"ris","application/x-sh":"sh","application/x-shar":"shar","application/x-shockwave-flash":"swf","application/x-silverlight-app":"xap","application/x-sql":"sql","application/x-stuffit":"sit","application/x-stuffitx":"sitx","application/x-subrip":"srt","application/x-sv4cpio":"sv4cpio","application/x-sv4crc":"sv4crc","application/x-t3vm-image":"t3","application/x-tads":"gam","application/x-tar":"tar","application/x-tcl":"tcl","application/x-tex":"tex","application/x-tex-tfm":"tfm","application/x-texinfo":"texinfo","application/x-tgif":"obj","application/x-ustar":"ustar","application/x-wais-source":"src","application/x-x509-ca-cert":"der","application/x-xfig":"fig","application/x-xliff+xml":"xlf","application/x-xpinstall":"xpi","application/x-xz":"xz","application/x-zmachine":"z1","application/xaml+xml":"xaml","application/xcap-diff+xml":"xdf","application/xenc+xml":"xenc","application/xhtml+xml":"xhtml","application/xml":"xml","application/xml-dtd":"dtd","application/xop+xml":"xop","application/xproc+xml":"xpl","application/xslt+xml":"xslt","application/xspf+xml":"xspf","application/xv+xml":"mxml","application/yang":"yang","application/yin+xml":"yin","application/zip":"zip","audio/adpcm":"adp","audio/basic":"au","audio/midi":"mid","audio/mp4":"mp4a","audio/mpeg":"mpga","audio/ogg":"oga","audio/s3m":"s3m","audio/silk":"sil","audio/vnd.dece.audio":"uva","audio/vnd.digital-winds":"eol","audio/vnd.dra":"dra","audio/vnd.dts":"dts","audio/vnd.dts.hd":"dtshd","audio/vnd.lucent.voice":"lvp","audio/vnd.ms-playready.media.pya":"pya","audio/vnd.nuera.ecelp4800":"ecelp4800","audio/vnd.nuera.ecelp7470":"ecelp7470","audio/vnd.nuera.ecelp9600":"ecelp9600","audio/vnd.rip":"rip","audio/webm":"weba","audio/x-aac":"aac","audio/x-aiff":"aif","audio/x-caf":"caf","audio/x-flac":"flac","audio/x-matroska":"mka","audio/x-mpegurl":"m3u","audio/x-ms-wax":"wax","audio/x-ms-wma":"wma","audio/x-pn-realaudio":"ram","audio/x-pn-realaudio-plugin":"rmp","audio/x-wav":"wav","audio/xm":"xm","chemical/x-cdx":"cdx","chemical/x-cif":"cif","chemical/x-cmdf":"cmdf","chemical/x-cml":"cml","chemical/x-csml":"csml","chemical/x-xyz":"xyz","image/bmp":"bmp","image/cgm":"cgm","image/g3fax":"g3","image/gif":"gif","image/ief":"ief","image/jpeg":"jpeg","image/ktx":"ktx","image/png":"png","image/prs.btif":"btif","image/sgi":"sgi","image/svg+xml":"svg","image/tiff":"tiff","image/vnd.adobe.photoshop":"psd","image/vnd.dece.graphic":"uvi","image/vnd.dvb.subtitle":"sub","image/vnd.djvu":"djvu","image/vnd.dwg":"dwg","image/vnd.dxf":"dxf","image/vnd.fastbidsheet":"fbs","image/vnd.fpx":"fpx","image/vnd.fst":"fst","image/vnd.fujixerox.edmics-mmr":"mmr","image/vnd.fujixerox.edmics-rlc":"rlc","image/vnd.ms-modi":"mdi","image/vnd.ms-photo":"wdp","image/vnd.net-fpx":"npx","image/vnd.wap.wbmp":"wbmp","image/vnd.xiff":"xif","image/webp":"webp","image/x-3ds":"3ds","image/x-cmu-raster":"ras","image/x-cmx":"cmx","image/x-freehand":"fh","image/x-icon":"ico","image/x-mrsid-image":"sid","image/x-pcx":"pcx","image/x-pict":"pic","image/x-portable-anymap":"pnm","image/x-portable-bitmap":"pbm","image/x-portable-graymap":"pgm","image/x-portable-pixmap":"ppm","image/x-rgb":"rgb","image/x-tga":"tga","image/x-xbitmap":"xbm","image/x-xpixmap":"xpm","image/x-xwindowdump":"xwd","message/rfc822":"eml","model/iges":"igs","model/mesh":"msh","model/vnd.collada+xml":"dae","model/vnd.dwf":"dwf","model/vnd.gdl":"gdl","model/vnd.gtw":"gtw","model/vnd.mts":"mts","model/vnd.vtu":"vtu","model/vrml":"wrl","model/x3d+binary":"x3db","model/x3d+vrml":"x3dv","model/x3d+xml":"x3d","text/cache-manifest":"appcache","text/calendar":"ics","text/css":"css","text/csv":"csv","text/html":"html","text/n3":"n3","text/plain":"txt","text/prs.lines.tag":"dsc","text/richtext":"rtx","text/sgml":"sgml","text/tab-separated-values":"tsv","text/troff":"t","text/turtle":"ttl","text/uri-list":"uri","text/vcard":"vcard","text/vnd.curl":"curl","text/vnd.curl.dcurl":"dcurl","text/vnd.curl.scurl":"scurl","text/vnd.curl.mcurl":"mcurl","text/vnd.dvb.subtitle":"sub","text/vnd.fly":"fly","text/vnd.fmi.flexstor":"flx","text/vnd.graphviz":"gv","text/vnd.in3d.3dml":"3dml","text/vnd.in3d.spot":"spot","text/vnd.sun.j2me.app-descriptor":"jad","text/vnd.wap.wml":"wml","text/vnd.wap.wmlscript":"wmls","text/x-asm":"s","text/x-c":"c","text/x-fortran":"f","text/x-java-source":"java","text/x-opml":"opml","text/x-pascal":"p","text/x-nfo":"nfo","text/x-setext":"etx","text/x-sfv":"sfv","text/x-uuencode":"uu","text/x-vcalendar":"vcs","text/x-vcard":"vcf","video/3gpp":"3gp","video/3gpp2":"3g2","video/h261":"h261","video/h263":"h263","video/h264":"h264","video/jpeg":"jpgv","video/jpm":"jpm","video/mj2":"mj2","video/mp4":"mp4","video/mpeg":"mpeg","video/ogg":"ogv","video/quicktime":"qt","video/vnd.dece.hd":"uvh","video/vnd.dece.mobile":"uvm","video/vnd.dece.pd":"uvp","video/vnd.dece.sd":"uvs","video/vnd.dece.video":"uvv","video/vnd.dvb.file":"dvb","video/vnd.fvt":"fvt","video/vnd.mpegurl":"mxu","video/vnd.ms-playready.media.pyv":"pyv","video/vnd.uvvu.mp4":"uvu","video/vnd.vivo":"viv","video/webm":"webm","video/x-f4v":"f4v","video/x-fli":"fli","video/x-flv":"flv","video/x-m4v":"m4v","video/x-matroska":"mkv","video/x-mng":"mng","video/x-ms-asf":"asf","video/x-ms-vob":"vob","video/x-ms-wm":"wm","video/x-ms-wmv":"wmv","video/x-ms-wmx":"wmx","video/x-ms-wvx":"wvx","video/x-msvideo":"avi","video/x-sgi-movie":"movie","video/x-smv":"smv","x-conference/x-cooltalk":"ice","text/vtt":"vtt","application/x-chrome-extension":"crx","text/x-component":"htc","video/MP2T":"ts","text/event-stream":"event-stream","application/x-web-app-manifest+json":"webapp","text/x-lua":"lua","application/x-lua-bytecode":"luac","text/x-markdown":"markdown"},extension:function(e){var t=e.match(/^\s*([^;\s]*)(?:;|\s|$)/)[1].toLowerCase();return this.extensions[t]},define:function(e){for(var t in e){for(var i=e[t],r=0;r<i.length;r++)this.types[i[r]]=t;this.extensions[t]||(this.extensions[t]=i[0])}},charsets:{lookup:function(e,t){return/^text\//.test(e)?"UTF-8":t}}};r.types.constructor=void 0,r.extensions.constructor=void 0},{}],91:[function(t,i,e){(function(m){var b=t("bn.js"),r=t("randombytes");function e(e,t){var i,r,n={blinder:(r=g(i=t)).toRed(b.mont(i.modulus)).redPow(new b(i.publicExponent)).fromRed(),unblinder:r.invm(i.modulus)},a=t.modulus.byteLength(),o=(b.mont(t.modulus),new b(e).mul(n.blinder).umod(t.modulus)),s=o.toRed(b.mont(t.prime1)),c=o.toRed(b.mont(t.prime2)),l=t.coefficient,u=t.prime1,f=t.prime2,d=s.redPow(t.exponent1),p=c.redPow(t.exponent2);d=d.fromRed(),p=p.fromRed();var h=d.isub(p).imul(l).umod(u);return h.imul(f),p.iadd(h),new m(p.imul(n.unblinder).umod(t.modulus).toArray(!1,a))}function g(e){for(var t=e.modulus.byteLength(),i=new b(r(t));0<=i.cmp(e.modulus)||!i.umod(e.prime1)||!i.umod(e.prime2);)i=new b(r(t));return i}(i.exports=e).getr=g}).call(this,t("buffer").Buffer)},{"bn.js":67,buffer:100,randombytes:187}],92:[function(e,t,i){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":93}],93:[function(e,t,i){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"}}},{}],94:[function(e,t,i){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"}},{}],95:[function(f,d,e){(function(n){var i=f("create-hash"),r=f("stream"),e=f("inherits"),a=f("./sign"),o=f("./verify"),s=f("./algorithms.json");function t(e){r.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function c(e){r.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){return new t(e)}function u(e){return new c(e)}Object.keys(s).forEach(function(e){s[e].id=new n(s[e].id,"hex"),s[e.toLowerCase()]=s[e]}),e(t,r.Writable),t.prototype._write=function(e,t,i){this._hash.update(e),i()},t.prototype.update=function(e,t){return"string"==typeof e&&(e=new n(e,t)),this._hash.update(e),this},t.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),r=a(i,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},e(c,r.Writable),c.prototype._write=function(e,t,i){this._hash.update(e),i()},c.prototype.update=function(e,t){return"string"==typeof e&&(e=new n(e,t)),this._hash.update(e),this},c.prototype.verify=function(e,t,i){"string"==typeof t&&(t=new n(t,i)),this.end();var r=this._hash.digest();return o(t,r,e,this._signType,this._tag)},d.exports={Sign:l,Verify:u,createSign:l,createVerify:u}}).call(this,f("buffer").Buffer)},{"./algorithms.json":93,"./sign":96,"./verify":97,buffer:100,"create-hash":105,inherits:155,stream:210}],96:[function(e,t,i){(function(m){var l=e("create-hmac"),u=e("browserify-rsa"),f=e("elliptic").ec,b=e("bn.js"),d=e("parse-asn1"),p=e("./curves.json");function g(e,t,i,r){if((e=new m(e.toArray())).length<t.byteLength()){var n=new m(t.byteLength()-e.length);n.fill(0),e=m.concat([n,e])}var a=i.length,o=function(e,t){e=(e=v(e,t)).mod(t);var i=new m(e.toArray());if(i.length<t.byteLength()){var r=new m(t.byteLength()-i.length);r.fill(0),i=m.concat([r,i])}return i}(i,t),s=new m(a);s.fill(1);var c=new m(a);return c.fill(0),c=l(r,c).update(s).update(new m([0])).update(e).update(o).digest(),s=l(r,c).update(s).digest(),{k:c=l(r,c).update(s).update(new m([1])).update(e).update(o).digest(),v:s=l(r,c).update(s).digest()}}function v(e,t){var i=new b(e),r=(e.length<<3)-t.bitLength();return 0<r&&i.ishrn(r),i}function _(e,t,i){var r,n;do{for(r=new m(0);8*r.length<e.bitLength();)t.v=l(i,t.k).update(t.v).digest(),r=m.concat([r,t.v]);n=v(r,e),t.k=l(i,t.k).update(t.v).update(new m([0])).digest(),t.v=l(i,t.k).update(t.v).digest()}while(-1!==n.cmp(e));return n}t.exports=function(e,t,i,r,n){var a=d(t);if(a.curve){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");return function(e,t){var i=p[t.curve.join(".")];if(!i)throw new Error("unknown curve "+t.curve.join("."));var r=new f(i).keyFromPrivate(t.privateKey).sign(e);return new m(r.toDER())}(e,a)}if("dsa"===a.type){if("dsa"!==r)throw new Error("wrong private key type");return function(e,t,i){for(var r,n,a,o,s=t.params.priv_key,c=t.params.p,l=t.params.q,u=t.params.g,f=new b(0),d=v(e,l).mod(l),p=!1,h=g(s,l,e,i);!1===p;)r=_(l,h,i),n=r,a=c,o=l,f=u.toRed(b.mont(a)).redPow(n).fromRed().mod(o),0===(p=r.invm(l).imul(d.add(s.mul(f))).mod(l)).cmpn(0)&&(p=!1,f=new b(0));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 i=[48,e.length+t.length+4,2,e.length];return i=i.concat(e,[2,t.length],t),new m(i)}(f,p)}(e,a,i)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");e=m.concat([n,e]);for(var o=a.modulus.byteLength(),s=[0,1];e.length+s.length+1<o;)s.push(255);s.push(0);for(var c=-1;++c<e.length;)s.push(e[c]);return u(s,a)},t.exports.getKey=g,t.exports.makeKey=_}).call(this,e("buffer").Buffer)},{"./curves.json":94,"bn.js":67,"browserify-rsa":91,buffer:100,"create-hmac":107,elliptic:120,"parse-asn1":169}],97:[function(e,t,i){(function(d){var p=e("bn.js"),h=e("elliptic").ec,m=e("parse-asn1"),b=e("./curves.json");function g(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,i,r,n){var a=m(i);if("ec"===a.type){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");return function(e,t,i){var r=b[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var n=new h(r),a=i.data.subjectPrivateKey.data;return n.verify(t,e,a)}(e,t,a)}if("dsa"===a.type){if("dsa"!==r)throw new Error("wrong public key type");return function(e,t,i){var r=i.data.p,n=i.data.q,a=i.data.g,o=i.data.pub_key,s=m.signature.decode(e,"der"),c=s.s,l=s.r;g(c,n),g(l,n);var u=p.mont(r),f=c.invm(n);return 0===a.toRed(u).redPow(new p(t).mul(f).mod(n)).fromRed().mul(o.toRed(u).redPow(l.mul(f).mod(n)).fromRed()).mod(r).mod(n).cmp(l)}(e,t,a)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");t=d.concat([n,t]);for(var o=a.modulus.byteLength(),s=[1],c=0;t.length+s.length+2<o;)s.push(255),c++;s.push(0);for(var l=-1;++l<t.length;)s.push(t[l]);s=new d(s);var u=p.mont(a.modulus);e=(e=new p(e).toRed(u)).redPow(new p(a.publicExponent)),e=new d(e.fromRed().toArray());var f=c<8?1:0;for(o=Math.min(e.length,s.length),e.length!==s.length&&(f=1),l=-1;++l<o;)f|=e[l]^s[l];return 0===f}}).call(this,e("buffer").Buffer)},{"./curves.json":94,"bn.js":67,buffer:100,elliptic:120,"parse-asn1":169}],98:[function(e,t,i){"use strict";var r=e("safe-buffer").Buffer,n=r.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;switch(this.encoding=function(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&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,i=function(e,t,i){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==i?i: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 c(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var r=i.charCodeAt(i.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function u(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?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-i))}function f(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):""}(i.StringDecoder=a).prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<e.length?t?t+this.text(e,i):this.text(e,i):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var i=function(e,t,i){var r=t.length-1;if(r<i)return 0;var n=o(t[r]);if(0<=n)return 0<n&&(e.lastNeed=n-1),n;if(--r<i||-2===n)return 0;if(0<=(n=o(t[r])))return 0<n&&(e.lastNeed=n-2),n;if(--r<i||-2===n)return 0;if(0<=(n=o(t[r])))return 0<n&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var r=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.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":200}],99:[function(e,t,i){(function(a){t.exports=function(e,t){for(var i=Math.min(e.length,t.length),r=new a(i),n=0;n<i;++n)r[n]=e[n]^t[n];return r}}).call(this,e("buffer").Buffer)},{buffer:100}],100:[function(e,t,i){"use strict";var r=e("base64-js"),a=e("ieee754");i.Buffer=f,i.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},i.INSPECT_MAX_BYTES=50;var n=2147483647;function o(e){if(n<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=f.prototype,t}function f(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return s(e,t,i)}function s(e,t,i){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!f.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var i=0|p(e,t),r=o(i),n=r.write(e,t);n!==i&&(r=r.slice(0,n));return r}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer))return function(e,t,i){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===t&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,t):new Uint8Array(e,t,i);return r.__proto__=f.prototype,r}(e,t,i);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return f.from(r,t,i);var n=function(e){if(f.isBuffer(e)){var t=0|d(e.length),i=o(t);return 0===i.length||e.copy(i,0,0,t),i}if(void 0!==e.length)return"number"!=typeof e.length||D(e.length)?o(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(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 l(e){return c(e),o(e<0?0:0|d(e))}function u(e){for(var t=e.length<0?0:0|d(e.length),i=o(t),r=0;r<t;r+=1)i[r]=255&e[r];return i}function d(e){if(n<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(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 i=e.length,r=2<arguments.length&&!0===arguments[2];if(!r&&0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return k(e).length;default:if(n)return r?-1:L(e).length;t=(""+t).toLowerCase(),n=!0}}function h(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function m(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):2147483647<i?i=2147483647:i<-2147483648&&(i=-2147483648),D(i=+i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=f.from(t,r)),f.isBuffer(t))return 0===t.length?-1:b(e,t,i,r,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):b(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function b(e,t,i,r,n){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s/=o=2,c/=2,i/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var u=-1;for(a=i;a<s;a++)if(l(e,a)===l(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(s<i+c&&(i=s-c),a=i;0<=a;a--){for(var f=!0,d=0;d<c;d++)if(l(e,a+d)!==l(t,d)){f=!1;break}if(f)return a}return-1}function g(e,t,i,r){i=Number(i)||0;var n=e.length-i;r?n<(r=Number(r))&&(r=n):r=n;var a=t.length;a/2<r&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(D(s))return o;e[i+o]=s}return o}function v(e,t,i,r){return P(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,r)}function _(e,t,i){return 0===t&&i===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,i))}function y(e,t,i){i=Math.min(e.length,i);for(var r=[],n=t;n<i;){var a,o,s,c,l=e[n],u=null,f=239<l?4:223<l?3:191<l?2:1;if(n+f<=i)switch(f){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[n+1]))&&127<(c=(31&l)<<6|63&a)&&(u=c);break;case 3:a=e[n+1],o=e[n+2],128==(192&a)&&128==(192&o)&&2047<(c=(15&l)<<12|(63&a)<<6|63&o)&&(c<55296||57343<c)&&(u=c);break;case 4:a=e[n+1],o=e[n+2],s=e[n+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&65535<(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)&&c<1114112&&(u=c)}null===u?(u=65533,f=1):65535<u&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),n+=f}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var i="",r=0;for(;r<t;)i+=String.fromCharCode.apply(String,e.slice(r,r+=E));return i}(r)}i.kMaxLength=n,(f.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},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(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192,f.from=function(e,t,i){return s(e,t,i)},f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,f.alloc=function(e,t,i){return n=t,a=i,c(r=e),r<=0?o(r):void 0!==n?"string"==typeof a?o(r).fill(n,a):o(r).fill(n):o(r);var r,n,a},f.allocUnsafe=function(e){return l(e)},f.allocUnsafeSlow=function(e){return l(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(B(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var i=e.length,r=t.length,n=0,a=Math.min(i,r);n<a;++n)if(e[n]!==t[n]){i=e[n],r=t[n];break}return i<r?-1:r<i?1:0},f.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}},f.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var i;if(void 0===t)for(i=t=0;i<e.length;++i)t+=e[i].length;var r=f.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var a=e[i];if(B(a,Uint8Array)&&(a=f.from(a)),!f.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,n),n+=a.length}return r},f.byteLength=p,f.prototype._isBuffer=!0,f.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)h(this,t,t+1);return this},f.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)h(this,t,t+3),h(this,t+1,t+2);return this},f.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)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},f.prototype.toLocaleString=f.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?y(this,0,e):function(e,t,i){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,i);case"utf8":case"utf-8":return y(this,t,i);case"ascii":return w(this,t,i);case"latin1":case"binary":return S(this,t,i);case"base64":return _(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=i.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},f.prototype.compare=function(e,t,i,r,n){if(B(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.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===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(n<=r&&i<=t)return 0;if(n<=r)return-1;if(i<=t)return 1;if(this===e)return 0;for(var a=(n>>>=0)-(r>>>=0),o=(i>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,n),l=e.slice(t,i),u=0;u<s;++u)if(c[u]!==l[u]){a=c[u],o=l[u];break}return a<o?-1:o<a?1:0},f.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},f.prototype.indexOf=function(e,t,i){return m(this,e,t,i,!0)},f.prototype.lastIndexOf=function(e,t,i){return m(this,e,t,i,!1)},f.prototype.write=function(e,t,i,r){if(void 0===t)r="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)r=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-t;if((void 0===i||n<i)&&(i=n),0<e.length&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a,o,s,c,l,u,f,d,p,h=!1;;)switch(r){case"hex":return g(this,e,t,i);case"utf8":case"utf-8":return d=t,p=i,P(L(e,(f=this).length-d),f,d,p);case"ascii":return v(this,e,t,i);case"latin1":case"binary":return v(this,e,t,i);case"base64":return c=this,l=t,u=i,P(k(e),c,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=t,s=i,P(function(e,t){for(var i,r,n,a=[],o=0;o<e.length&&!((t-=2)<0);++o)i=e.charCodeAt(o),r=i>>8,n=i%256,a.push(n),a.push(r);return a}(e,(a=this).length-o),a,o,s);default:if(h)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function w(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(127&e[n]);return r}function S(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(e[n]);return r}function x(e,t,i){var r=e.length;(!t||t<0)&&(t=0),(!i||i<0||r<i)&&(i=r);for(var n="",a=t;a<i;++a)n+=C(e[a]);return n}function A(e,t,i){for(var r=e.slice(t,i),n="",a=0;a<r.length;a+=2)n+=String.fromCharCode(r[a]+256*r[a+1]);return n}function T(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(i<e+t)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,i,r,n,a){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n<t||t<a)throw new RangeError('"value" argument is out of bounds');if(i+r>e.length)throw new RangeError("Index out of range")}function N(e,t,i,r,n,a){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function R(e,t,i,r,n){return t=+t,i>>>=0,n||N(e,0,i,4),a.write(e,t,i,r,23,4),i+4}function O(e,t,i,r,n){return t=+t,i>>>=0,n||N(e,0,i,8),a.write(e,t,i,r,52,8),i+8}f.prototype.slice=function(e,t){var i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):i<e&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):i<t&&(t=i),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=f.prototype,r},f.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||T(e,t,this.length);for(var r=this[e],n=1,a=0;++a<t&&(n*=256);)r+=this[e+a]*n;return r},f.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||T(e,t,this.length);for(var r=this[e+--t],n=1;0<t&&(n*=256);)r+=this[e+--t]*n;return r},f.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||T(e,t,this.length);for(var r=this[e],n=1,a=0;++a<t&&(n*=256);)r+=this[e+a]*n;return(n*=128)<=r&&(r-=Math.pow(2,8*t)),r},f.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||T(e,t,this.length);for(var r=t,n=1,a=this[e+--r];0<r&&(n*=256);)a+=this[e+--r]*n;return(n*=128)<=a&&(a-=Math.pow(2,8*t)),a},f.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},f.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),a.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),a.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),a.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),a.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,i,r){(e=+e,t>>>=0,i>>>=0,r)||I(this,e,t,i,Math.pow(2,8*i)-1,0);var n=1,a=0;for(this[t]=255&e;++a<i&&(n*=256);)this[t+a]=e/n&255;return t+i},f.prototype.writeUIntBE=function(e,t,i,r){(e=+e,t>>>=0,i>>>=0,r)||I(this,e,t,i,Math.pow(2,8*i)-1,0);var n=i-1,a=1;for(this[t+n]=255&e;0<=--n&&(a*=256);)this[t+n]=e/a&255;return t+i},f.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||I(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||I(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},f.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||I(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},f.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t>>>=0,!r){var n=Math.pow(2,8*i-1);I(this,e,t,i,n-1,-n)}var a=0,o=1,s=0;for(this[t]=255&e;++a<i&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+i},f.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t>>>=0,!r){var n=Math.pow(2,8*i-1);I(this,e,t,i,n-1,-n)}var a=i-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+i},f.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||I(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},f.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||I(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},f.prototype.writeFloatLE=function(e,t,i){return R(this,e,t,!0,i)},f.prototype.writeFloatBE=function(e,t,i){return R(this,e,t,!1,i)},f.prototype.writeDoubleLE=function(e,t,i){return O(this,e,t,!0,i)},f.prototype.writeDoubleBE=function(e,t,i){return O(this,e,t,!1,i)},f.prototype.copy=function(e,t,i,r){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),0<r&&r<i&&(r=i),r===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-i&&(r=e.length-t+i);var n=r-i;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,i,r);else if(this===e&&i<t&&t<r)for(var a=n-1;0<=a;--a)e[a+t]=this[a+i];else Uint8Array.prototype.set.call(e,this.subarray(i,r),t);return n},f.prototype.fill=function(e,t,i,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!f.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var n=e.charCodeAt(0);("utf8"===r&&n<128||"latin1"===r)&&(e=n)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var a;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(a=t;a<i;++a)this[a]=e;else{var o=f.isBuffer(e)?e:f.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<i-t;++a)this[a+t]=o[a%s]}return this};var M=/[^+/0-9A-Za-z-_]/g;function C(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(e,t){var i;t=t||1/0;for(var r=e.length,n=null,a=[],o=0;o<r;++o){if(55295<(i=e.charCodeAt(o))&&i<57344){if(!n){if(56319<i){-1<(t-=3)&&a.push(239,191,189);continue}if(o+1===r){-1<(t-=3)&&a.push(239,191,189);continue}n=i;continue}if(i<56320){-1<(t-=3)&&a.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&-1<(t-=3)&&a.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;a.push(i)}else if(i<2048){if((t-=2)<0)break;a.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;a.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return a}function k(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,i,r){for(var n=0;n<r&&!(n+i>=t.length||n>=e.length);++n)t[n+i]=e[n];return n}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function D(e){return e!=e}},{"base64-js":66,ieee754:154}],101:[function(e,t,i){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],102:[function(e,t,i){var n=e("safe-buffer").Buffer,r=e("stream").Transform,a=e("string_decoder").StringDecoder;function o(e){r.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,r),o.prototype.update=function(e,t,i){"string"==typeof e&&(e=n.from(e,t));var r=this._update(e);return this.hashMode?this:(i&&(r=this._toString(r,i)),r)},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,i){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{i(r)}},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()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,i){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return i&&(r+=this._decoder.end()),r},t.exports=o},{inherits:155,"safe-buffer":200,stream:210,string_decoder:98}],103:[function(e,t,i){(function(e){function t(e){return Object.prototype.toString.call(e)}i.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},i.isBoolean=function(e){return"boolean"==typeof e},i.isNull=function(e){return null===e},i.isNullOrUndefined=function(e){return null==e},i.isNumber=function(e){return"number"==typeof e},i.isString=function(e){return"string"==typeof e},i.isSymbol=function(e){return"symbol"==typeof e},i.isUndefined=function(e){return void 0===e},i.isRegExp=function(e){return"[object RegExp]"===t(e)},i.isObject=function(e){return"object"==typeof e&&null!==e},i.isDate=function(e){return"[object Date]"===t(e)},i.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},i.isFunction=function(e){return"function"==typeof e},i.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},i.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":156}],104:[function(e,s,t){(function(a){var t=e("elliptic"),r=e("bn.js");s.exports=function(e){return new n(e)};var i={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 n(e){this.curveType=i[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function o(e,t,i){Array.isArray(e)||(e=e.toArray());var r=new a(e);if(i&&r.length<i){var n=new a(i-r.length);n.fill(0),r=a.concat([n,r])}return t?r.toString(t):r}i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1,n.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},n.prototype.computeSecret=function(e,t,i){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),o(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength)},n.prototype.getPublicKey=function(e,t){var i=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(i[i.length-1]%2?i[0]=7:i[0]=6),o(i,e)},n.prototype.getPrivateKey=function(e){return o(this.keys.getPrivate(),e)},n.prototype.setPublicKey=function(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this.keys._importPublic(e),this},n.prototype.setPrivateKey=function(e,t){t=t||"utf8",a.isBuffer(e)||(e=new a(e,t));var i=new r(e);return i=i.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(i),this}}).call(this,e("buffer").Buffer)},{"bn.js":67,buffer:100,elliptic:120}],105:[function(e,t,i){"use strict";var r=e("inherits"),n=e("md5.js"),a=e("ripemd160"),o=e("sha.js"),s=e("cipher-base");function c(e){s.call(this,"digest"),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new n:"rmd160"===e||"ripemd160"===e?new a:new c(o(e))}},{"cipher-base":102,inherits:155,"md5.js":160,ripemd160:199,"sha.js":203}],106:[function(e,t,i){var r=e("md5.js");t.exports=function(e){return(new r).update(e).digest()}},{"md5.js":160}],107:[function(e,t,i){"use strict";var r=e("inherits"),n=e("./legacy"),o=e("cipher-base"),s=e("safe-buffer").Buffer,a=e("create-hash/md5"),c=e("ripemd160"),l=e("sha.js"),u=s.alloc(128);function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var i="sha512"===e||"sha384"===e?128:64;(this._alg=e,(this._key=t).length>i)?t=("rmd160"===e?new c:l(e)).update(t).digest():t.length<i&&(t=s.concat([t,u],i));for(var r=this._ipad=s.allocUnsafe(i),n=this._opad=s.allocUnsafe(i),a=0;a<i;a++)r[a]=54^t[a],n[a]=92^t[a];this._hash="rmd160"===e?new c:l(e),this._hash.update(r)}r(f,o),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:l(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new n(a,t):new f(e,t)}},{"./legacy":108,"cipher-base":102,"create-hash/md5":106,inherits:155,ripemd160:199,"safe-buffer":200,"sha.js":203}],108:[function(e,t,i){"use strict";var r=e("inherits"),a=e("safe-buffer").Buffer,o=e("cipher-base"),s=a.alloc(128);function n(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 i=this._ipad=a.allocUnsafe(64),r=this._opad=a.allocUnsafe(64),n=0;n<64;n++)i[n]=54^t[n],r[n]=92^t[n];this._hash=[i]}r(n,o),n.prototype._update=function(e){this._hash.push(e)},n.prototype._final=function(){var e=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,e]))},t.exports=n},{"cipher-base":102,inherits:155,"safe-buffer":200}],109:[function(e,t,i){"use strict";i.randomBytes=i.rng=i.pseudoRandomBytes=i.prng=e("randombytes"),i.createHash=i.Hash=e("create-hash"),i.createHmac=i.Hmac=e("create-hmac");var r=e("browserify-sign/algos"),n=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(n);i.getHashes=function(){return a};var o=e("pbkdf2");i.pbkdf2=o.pbkdf2,i.pbkdf2Sync=o.pbkdf2Sync;var s=e("browserify-cipher");i.Cipher=s.Cipher,i.createCipher=s.createCipher,i.Cipheriv=s.Cipheriv,i.createCipheriv=s.createCipheriv,i.Decipher=s.Decipher,i.createDecipher=s.createDecipher,i.Decipheriv=s.Decipheriv,i.createDecipheriv=s.createDecipheriv,i.getCiphers=s.getCiphers,i.listCiphers=s.listCiphers;var c=e("diffie-hellman");i.DiffieHellmanGroup=c.DiffieHellmanGroup,i.createDiffieHellmanGroup=c.createDiffieHellmanGroup,i.getDiffieHellman=c.getDiffieHellman,i.createDiffieHellman=c.createDiffieHellman,i.DiffieHellman=c.DiffieHellman;var l=e("browserify-sign");i.createSign=l.createSign,i.Sign=l.Sign,i.createVerify=l.createVerify,i.Verify=l.Verify,i.createECDH=e("create-ecdh");var u=e("public-encrypt");i.publicEncrypt=u.publicEncrypt,i.privateEncrypt=u.privateEncrypt,i.publicDecrypt=u.publicDecrypt,i.privateDecrypt=u.privateDecrypt;var f=e("randomfill");i.randomFill=f.randomFill,i.randomFillSync=f.randomFillSync,i.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},i.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":87,"browserify-sign":95,"browserify-sign/algos":92,"create-ecdh":104,"create-hash":105,"create-hmac":107,"diffie-hellman":116,pbkdf2:170,"public-encrypt":177,randombytes:187,randomfill:188}],110:[function(e,t,i){"use strict";i.utils=e("./des/utils"),i.Cipher=e("./des/cipher"),i.DES=e("./des/des"),i.CBC=e("./des/cbc"),i.EDE=e("./des/ede")},{"./des/cbc":111,"./des/cipher":112,"./des/des":113,"./des/ede":114,"./des/utils":115}],111:[function(e,t,i){"use strict";var r=e("minimalistic-assert"),a=e("inherits"),o={};function n(e){r.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]}i.instantiate=function(t){function i(e){t.call(this,e),this._cbcInit()}a(i,t);for(var e=Object.keys(o),r=0;r<e.length;r++){var n=e[r];i.prototype[n]=o[n]}return i.create=function(e){return new i(e)},i},o._cbcInit=function(){var e=new n(this.options.iv);this._cbcState=e},o._update=function(e,t,i,r){var n=this._cbcState,a=this.constructor.super_.prototype,o=n.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,i,r);for(s=0;s<this.blockSize;s++)o[s]=i[r+s]}else{a._update.call(this,e,t,i,r);for(s=0;s<this.blockSize;s++)i[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},{inherits:155,"minimalistic-assert":162}],112:[function(e,t,i){"use strict";var r=e("minimalistic-assert");function n(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=n).prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var i=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<i;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=i,i},n.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(e){var t=0,i=0,r=(this.bufferOff+e.length)/this.blockSize|0,n=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(n,i)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,n,i),i+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},n.prototype._updateDecrypt=function(e){for(var t=0,i=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,n=new Array(r*this.blockSize);0<r;r--)t+=this._buffer(e,t),i+=this._flushBuffer(n,i);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,i;return e&&(t=this.update(e)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(i):i},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},n.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},n.prototype._unpad=function(e){return e},n.prototype._finalDecrypt=function(){r.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":162}],113:[function(e,t,i){"use strict";var o=e("minimalistic-assert"),r=e("inherits"),n=e("../des"),d=n.utils,a=n.Cipher;function s(){this.tmp=new Array(2),this.keys=null}function c(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}r(c,a),(t.exports=c).create=function(e){return new c(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),o.equal(t.length,this.blockSize,"Invalid key length");var i=d.readUInt32BE(t,0),r=d.readUInt32BE(t,4);d.pc1(i,r,e.tmp,0),i=e.tmp[0],r=e.tmp[1];for(var n=0;n<e.keys.length;n+=2){var a=l[n>>>1];i=d.r28shl(i,a),r=d.r28shl(r,a),d.pc2(i,r,e.keys,n)}},c.prototype._update=function(e,t,i,r){var n=this._desState,a=d.readUInt32BE(e,t),o=d.readUInt32BE(e,t+4);d.ip(a,o,n.tmp,0),a=n.tmp[0],o=n.tmp[1],"encrypt"===this.type?this._encrypt(n,a,o,n.tmp,0):this._decrypt(n,a,o,n.tmp,0),a=n.tmp[0],o=n.tmp[1],d.writeUInt32BE(i,a,r),d.writeUInt32BE(i,o,r+4)},c.prototype._pad=function(e,t){for(var i=e.length-t,r=t;r<e.length;r++)e[r]=i;return!0},c.prototype._unpad=function(e){for(var t=e[e.length-1],i=e.length-t;i<e.length;i++)o.equal(e[i],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,i,r,n){for(var a=t,o=i,s=0;s<e.keys.length;s+=2){var c=e.keys[s],l=e.keys[s+1];d.expand(o,e.tmp,0),c^=e.tmp[0],l^=e.tmp[1];var u=d.substitute(c,l),f=o;o=(a^d.permute(u))>>>0,a=f}d.rip(o,a,r,n)},c.prototype._decrypt=function(e,t,i,r,n){for(var a=i,o=t,s=e.keys.length-2;0<=s;s-=2){var c=e.keys[s],l=e.keys[s+1];d.expand(a,e.tmp,0),c^=e.tmp[0],l^=e.tmp[1];var u=d.substitute(c,l),f=a;a=(o^d.permute(u))>>>0,o=f}d.rip(a,o,r,n)}},{"../des":110,inherits:155,"minimalistic-assert":162}],114:[function(e,t,i){"use strict";var a=e("minimalistic-assert"),r=e("inherits"),n=e("../des"),o=n.Cipher,s=n.DES;function c(e,t){a.equal(t.length,24,"Invalid key length");var i=t.slice(0,8),r=t.slice(8,16),n=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:r}),s.create({type:"encrypt",key:n})]:[s.create({type:"decrypt",key:n}),s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i})]}function l(e){o.call(this,e);var t=new c(this.type,this.options.key);this._edeState=t}r(l,o),(t.exports=l).create=function(e){return new l(e)},l.prototype._update=function(e,t,i,r){var n=this._edeState;n.ciphers[0]._update(e,t,i,r),n.ciphers[1]._update(i,r,i,r),n.ciphers[2]._update(i,r,i,r)},l.prototype._pad=s.prototype._pad,l.prototype._unpad=s.prototype._unpad},{"../des":110,inherits:155,"minimalistic-assert":162}],115:[function(e,t,i){"use strict";i.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},i.writeUInt32BE=function(e,t,i){e[0+i]=t>>>24,e[1+i]=t>>>16&255,e[2+i]=t>>>8&255,e[3+i]=255&t},i.ip=function(e,t,i,r){for(var n=0,a=0,o=6;0<=o;o-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+o&1;for(s=0;s<=24;s+=8)n<<=1,n|=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}i[r+0]=n>>>0,i[r+1]=a>>>0},i.rip=function(e,t,i,r){for(var n=0,a=0,o=0;o<4;o++)for(var s=24;0<=s;s-=8)n<<=1,n|=t>>>s+o&1,n<<=1,n|=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;i[r+0]=n>>>0,i[r+1]=a>>>0},i.pc1=function(e,t,i,r){for(var n=0,a=0,o=7;5<=o;o--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(s=0;s<=24;s+=8)n<<=1,n|=e>>s+o&1}for(s=0;s<=24;s+=8)n<<=1,n|=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;i[r+0]=n>>>0,i[r+1]=a>>>0},i.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var c=[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];i.pc2=function(e,t,i,r){for(var n=0,a=0,o=c.length>>>1,s=0;s<o;s++)n<<=1,n|=e>>>c[s]&1;for(s=o;s<c.length;s++)a<<=1,a|=t>>>c[s]&1;i[r+0]=n>>>0,i[r+1]=a>>>0},i.expand=function(e,t,i){var r=0,n=0;r=(1&e)<<5|e>>>27;for(var a=23;15<=a;a-=4)r<<=6,r|=e>>>a&63;for(a=11;3<=a;a-=4)n|=e>>>a&63,n<<=6;n|=(31&e)<<1|e>>>31,t[i+0]=r>>>0,t[i+1]=n>>>0};var n=[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];i.substitute=function(e,t){for(var i=0,r=0;r<4;r++){i<<=4,i|=n[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){i<<=4,i|=n[256+64*r+(t>>>18-6*r&63)]}return i>>>0};var r=[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];i.permute=function(e){for(var t=0,i=0;i<r.length;i++)t<<=1,t|=e>>>r[i]&1;return t>>>0},i.padSplit=function(e,t,i){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var n=[],a=0;a<t;a+=i)n.push(r.slice(a,a+i));return n.join(" ")}},{}],116:[function(e,t,i){(function(a){var o=e("./lib/generatePrime"),r=e("./lib/primes.json"),s=e("./lib/dh");var c={binary:!0,hex:!0,base64:!0};i.DiffieHellmanGroup=i.createDiffieHellmanGroup=i.getDiffieHellman=function(e){var t=new a(r[e].prime,"hex"),i=new a(r[e].gen,"hex");return new s(t,i)},i.createDiffieHellman=i.DiffieHellman=function e(t,i,r,n){return a.isBuffer(i)||void 0===c[i]?e(t,"binary",i,r):(i=i||"binary",n=n||"binary",r=r||new a([2]),a.isBuffer(r)||(r=new a(r,n)),"number"==typeof t?new s(o(t,r),r,!0):(a.isBuffer(t)||(t=new a(t,i)),new s(t,r,!0)))}}).call(this,e("buffer").Buffer)},{"./lib/dh":117,"./lib/generatePrime":118,"./lib/primes.json":119,buffer:100}],117:[function(m,b,e){(function(a){var o=m("bn.js"),s=new(m("miller-rabin")),c=new o(24),l=new o(11),u=new o(10),f=new o(3),d=new o(7),p=m("./generatePrime"),e=m("randombytes");function r(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this._pub=new o(e),this}function n(e,t){return t=t||"utf8",a.isBuffer(e)||(e=new a(e,t)),this._priv=new o(e),this}b.exports=t;var h={};function t(e,t,i){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,i?(this.setPublicKey=r,this.setPrivateKey=n):this._primeCode=8}function i(e,t){var i=new a(e.toArray());return t?i.toString(t):i}Object.defineProperty(t.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var i=t.toString("hex"),r=[i,e.toString(16)].join("_");if(r in h)return h[r];var n,a=0;if(e.isEven()||!p.simpleSieve||!p.fermatTest(e)||!s.test(e))return a+=1,a+="02"===i||"05"===i?8:4,h[r]=a;switch(s.test(e.shrn(1))||(a+=2),i){case"02":e.mod(c).cmp(l)&&(a+=8);break;case"05":(n=e.mod(u)).cmp(f)&&n.cmp(d)&&(a+=8);break;default:a+=4}return h[r]=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(),i=new a(t.toArray()),r=this.getPrime();if(i.length<r.length){var n=new a(r.length-i.length);n.fill(0),i=a.concat([n,i])}return i},t.prototype.getPublicKey=function(e){return i(this._pub,e)},t.prototype.getPrivateKey=function(e){return i(this._priv,e)},t.prototype.getPrime=function(e){return i(this.__prime,e)},t.prototype.getGenerator=function(e){return i(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,m("buffer").Buffer)},{"./generatePrime":118,"bn.js":67,buffer:100,"miller-rabin":161,randombytes:187}],118:[function(e,t,i){var n=e("randombytes");(t.exports=r).simpleSieve=b,r.fermatTest=g;var a=e("bn.js"),o=new a(24),s=new(e("miller-rabin")),c=new a(1),l=new a(2),u=new a(5),f=(new a(16),new a(8),new a(10)),d=new a(3),p=(new a(7),new a(11)),h=new a(4),m=(new a(12),null);function b(e){for(var t=function(){if(null!==m)return m;var e=[];e[0]=2;for(var t=1,i=3;i<1048576;i+=2){for(var r=Math.ceil(Math.sqrt(i)),n=0;n<t&&e[n]<=r&&i%e[n]!=0;n++);t!==n&&e[n]<=r||(e[t++]=i)}return m=e}(),i=0;i<t.length;i++)if(0===e.modn(t[i]))return 0===e.cmpn(t[i]);return!0}function g(e){var t=a.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function r(e,t){if(e<16)return new a(2===t||5===t?[140,123]:[140,39]);var i,r;for(t=new a(t);;){for(i=new a(n(Math.ceil(e/8)));i.bitLength()>e;)i.ishrn(1);if(i.isEven()&&i.iadd(c),i.testn(1)||i.iadd(l),t.cmp(l)){if(!t.cmp(u))for(;i.mod(f).cmp(d);)i.iadd(h)}else for(;i.mod(o).cmp(p);)i.iadd(h);if(b(r=i.shrn(1))&&b(i)&&g(r)&&g(i)&&s.test(r)&&s.test(i))return i}}},{"bn.js":67,"miller-rabin":161,randombytes:187}],119:[function(e,t,i){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"}}},{}],120:[function(e,t,i){"use strict";var r=i;r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":135,"./elliptic/curve":123,"./elliptic/curves":126,"./elliptic/ec":127,"./elliptic/eddsa":130,"./elliptic/utils":134,brorand:68}],121:[function(e,t,i){"use strict";var r=e("bn.js"),n=e("../../elliptic").utils,A=n.getNAF,T=n.getJSF,f=n.assert;function a(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(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);var i=this.n&&this.p.div(this.n);!i||0<i.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){f(e.precomputed);var i=e._getDoubles(),r=A(t,1),n=(1<<i.step+1)-(i.step%2==0?2:1);n/=3;for(var a=[],o=0;o<r.length;o+=i.step){var s=0;for(t=o+i.step-1;o<=t;t--)s=(s<<1)+r[t];a.push(s)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),u=n;0<u;u--){for(o=0;o<a.length;o++){(s=a[o])===u?l=l.mixedAdd(i.points[o]):s===-u&&(l=l.mixedAdd(i.points[o].neg()))}c=c.add(l)}return c.toP()},a.prototype._wnafMul=function(e,t){var i=4,r=e._getNAFPoints(i);i=r.wnd;for(var n=r.points,a=A(t,i),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 c=a[s];f(0!==c),o="affine"===e.type?0<c?o.mixedAdd(n[c-1>>1]):o.mixedAdd(n[-c-1>>1].neg()):0<c?o.add(n[c-1>>1]):o.add(n[-c-1>>1].neg())}return"affine"===e.type?o.toP():o},a.prototype._wnafMulAdd=function(e,t,i,r,n){for(var a=this._wnafT1,o=this._wnafT2,s=this._wnafT3,c=0,l=0;l<r;l++){var u=(S=t[l])._getNAFPoints(e);a[l]=u.wnd,o[l]=u.points}for(l=r-1;1<=l;l-=2){var f=l-1,d=l;if(1===a[f]&&1===a[d]){var p=[t[f],null,null,t[d]];0===t[f].y.cmp(t[d].y)?(p[1]=t[f].add(t[d]),p[2]=t[f].toJ().mixedAdd(t[d].neg())):0===t[f].y.cmp(t[d].y.redNeg())?(p[1]=t[f].toJ().mixedAdd(t[d]),p[2]=t[f].add(t[d].neg())):(p[1]=t[f].toJ().mixedAdd(t[d]),p[2]=t[f].toJ().mixedAdd(t[d].neg()));var h=[-3,-1,-5,-7,0,7,5,1,3],m=T(i[f],i[d]);c=Math.max(m[0].length,c),s[f]=new Array(c),s[d]=new Array(c);for(var b=0;b<c;b++){var g=0|m[0][b],v=0|m[1][b];s[f][b]=h[3*(g+1)+(v+1)],s[d][b]=0,o[f]=p}}else s[f]=A(i[f],a[f]),s[d]=A(i[d],a[d]),c=Math.max(s[f].length,c),c=Math.max(s[d].length,c)}var _=this.jpoint(null,null,null),y=this._wnafT4;for(l=c;0<=l;l--){for(var E=0;0<=l;){var w=!0;for(b=0;b<r;b++)y[b]=0|s[b][l],0!==y[b]&&(w=!1);if(!w)break;E++,l--}if(0<=l&&E++,_=_.dblp(E),l<0)break;for(b=0;b<r;b++){var S,x=y[b];0!==x&&(0<x?S=o[b][x-1>>1]:x<0&&(S=o[b][-x-1>>1].neg()),_="affine"===S.type?_.mixedAdd(S):_.add(S))}}for(l=0;l<r;l++)o[l]=null;return n?_:_.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=n.toArray(e,t);var i=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*i)return 6===e[0]?f(e[e.length-1]%2==0):7===e[0]&&f(e[e.length-1]%2==1),this.point(e.slice(1,1+i),e.slice(1+i,1+2*i));if((2===e[0]||3===e[0])&&e.length-1===i)return this.pointFromX(e.slice(1,1+i),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(),i=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",t))},o.prototype.encode=function(e,t){return n.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 i=[this],r=this,n=0;n<t;n+=e){for(var a=0;a<e;a++)r=r.dbl();i.push(r)}return{step:e,points:i}},o.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],i=(1<<e)-1,r=1===i?null:this.dbl(),n=1;n<i;n++)t[n]=t[n-1].add(r);return{wnd:e,points:t}},o.prototype._getBeta=function(){return null},o.prototype.dblp=function(e){for(var t=this,i=0;i<e;i++)t=t.dbl();return t}},{"../../elliptic":120,"bn.js":67}],122:[function(e,t,i){"use strict";var r=e("../curve"),n=e("../../elliptic"),c=e("bn.js"),a=e("inherits"),o=r.base,s=n.utils.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new c(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new c(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new c(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,i,r,n){o.BasePoint.call(this,e,"projective"),null===t&&null===i&&null===r?(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 c(t,16),this.y=new c(i,16),this.z=r?new c(r,16):this.curve.one,this.t=n&&new c(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.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()))))}a(l,o),(t.exports=l).prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,i,r){return this.point(e,t,i,r)},l.prototype.pointFromX=function(e,t){(e=new c(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),r=this.c2.redSub(this.a.redMul(i)),n=this.one.redSub(this.c2.redMul(this.d).redMul(i)),a=r.redMul(n.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)},l.prototype.pointFromY=function(e,t){(e=new c(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),r=i.redSub(this.one),n=i.redMul(this.d).redAdd(this.one),a=r.redMul(n.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.isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),i=e.y.redSqr(),r=t.redMul(this.a).redAdd(i),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(i)));return 0===r.cmp(n)},a(u,o.BasePoint),l.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},l.prototype.point=function(e,t,i,r){return new u(this,e,t,i,r)},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)},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var r=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(i),s=r.redSub(t),c=n.redMul(o),l=a.redMul(s),u=n.redMul(s),f=o.redMul(a);return this.curve.point(c,l,f,u)},u.prototype._projDbl=function(){var e,t,i,r=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=(l=this.curve._mulA(n)).redAdd(a);if(this.zOne)e=r.redSub(n).redSub(a).redMul(o.redSub(this.curve.two)),t=o.redMul(l.redSub(a)),i=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),c=o.redSub(s).redISub(s);e=r.redSub(n).redISub(a).redMul(c),t=o.redMul(l.redSub(a)),i=o.redMul(c)}}else{var l=n.redAdd(a);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),c=l.redSub(s).redSub(s);e=this.curve._mulC(r.redISub(l)).redMul(c),t=this.curve._mulC(l).redMul(n.redISub(a)),i=l.redMul(c)}return this.curve.point(e,t,i)},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)),i=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=i.redSub(t),o=n.redSub(r),s=n.redAdd(r),c=i.redAdd(t),l=a.redMul(o),u=s.redMul(c),f=a.redMul(c),d=o.redMul(s);return this.curve.point(l,u,d,f)},u.prototype._projAdd=function(e){var t,i,r=this.z.redMul(e.z),n=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),c=n.redSub(s),l=n.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),f=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(o.redSub(this.curve._mulA(a))),i=c.redMul(l)):(t=r.redMul(l).redMul(o.redSub(a)),i=this.curve._mulC(c).redMul(l)),this.curve.point(f,t,i)},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,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!1)},u.prototype.jmulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],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 i=e.clone(),r=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}return!1},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},{"../../elliptic":120,"../curve":123,"bn.js":67,inherits:155}],123:[function(e,t,i){"use strict";var r=i;r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":121,"./edwards":122,"./mont":124,"./short":125}],124:[function(e,t,i){"use strict";var r=e("../curve"),n=e("bn.js"),a=e("inherits"),o=r.base,s=e("../../elliptic").utils;function c(e){o.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 l(e,t,i){o.BasePoint.call(this,e,"projective"),null===t&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(c,o),(t.exports=c).prototype.validate=function(e){var t=e.normalize().x,i=t.redSqr(),r=i.redMul(t).redAdd(i.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},a(l,o.BasePoint),c.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},c.prototype.point=function(e,t){return new l(this,e,t)},c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.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)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),i=e.redSub(t),r=e.redMul(t),n=i.redMul(t.redAdd(this.curve.a24.redMul(i)));return this.curve.point(r,n)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(i),o=n.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),c=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,c)},l.prototype.mul=function(e){for(var t=e.clone(),i=this,r=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;0<=a;a--)0===n[a]?(i=i.diffAdd(r,this),r=r.dbl()):(r=i.diffAdd(r,this),i=i.dbl());return r},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":120,"../curve":123,"bn.js":67,inherits:155}],125:[function(e,t,i){"use strict";var r=e("../curve"),n=e("../../elliptic"),E=e("bn.js"),a=e("inherits"),o=r.base,s=n.utils.assert;function c(e){o.call(this,"short",e),this.a=new E(e.a,16).toRed(this.red),this.b=new E(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 l(e,t,i,r){o.BasePoint.call(this,e,"affine"),null===t&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new E(t,16),this.y=new E(i,16),r&&(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,i,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===i&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new E(0)):(this.x=new E(t,16),this.y=new E(i,16),this.z=new E(r,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}a(c,o),(t.exports=c).prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,i;if(e.beta)t=new E(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)i=new E(e.lambda,16);else{var n=this._getEndoRoots(this.n);0===this.g.mul(n[0]).x.cmp(this.g.x.redMul(t))?i=n[0]:(i=n[1],s(0===this.g.mul(i).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:i,basis:e.basis?e.basis.map(function(e){return{a:new E(e.a,16),b:new E(e.b,16)}}):this._getEndoBasis(i)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:E.mont(e),i=new E(2).toRed(t).redInvm(),r=i.redNeg(),n=new E(3).toRed(t).redNeg().redSqrt().redMul(i);return[r.redAdd(n).fromRed(),r.redSub(n).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,i,r,n,a,o,s,c,l,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,d=this.n.clone(),p=new E(1),h=new E(0),m=new E(0),b=new E(1),g=0;0!==f.cmpn(0);){var v=d.div(f);c=d.sub(v.mul(f)),l=m.sub(v.mul(p));var _=b.sub(v.mul(h));if(!r&&c.cmp(u)<0)t=s.neg(),i=p,r=c.neg(),n=l;else if(r&&2==++g)break;d=f,f=s=c,m=p,p=l,b=h,h=_}a=c.neg(),o=l;var y=r.sqr().add(n.sqr());return 0<=a.sqr().add(o.sqr()).cmp(y)&&(a=t,o=i),r.negative&&(r=r.neg(),n=n.neg()),a.negative&&(a=a.neg(),o=o.neg()),[{a:r,b:n},{a:a,b:o}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,i=t[0],r=t[1],n=r.b.mul(e).divRound(this.n),a=i.b.neg().mul(e).divRound(this.n),o=n.mul(i.a),s=a.mul(r.a),c=n.mul(i.b),l=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new E(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=i.redSqrt();if(0!==r.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var n=r.fromRed().isOdd();return(t&&!n||!t&&n)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,i=e.y,r=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===i.redSqr().redISub(n).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,i){for(var r=this._endoWnafT1,n=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],c=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),r[2*a]=s,r[2*a+1]=c,n[2*a]=o.k1,n[2*a+1]=o.k2}for(var l=this._wnafMulAdd(1,r,n,2*a,i),u=0;u<2*a;u++)r[u]=null,n[u]=null;return l},a(l,o.BasePoint),c.prototype.point=function(e,t,i){return new l(this,e,t,i)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.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 i=this.curve,r=function(e){return i.point(e.x.redMul(i.endo.beta),e.y)};(e.beta=t).precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},l.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]},l.fromJSON=function(t,e,i){"string"==typeof e&&(e=JSON.parse(e));var r=t.point(e[0],e[1],i);if(!e[2])return r;function n(e){return t.point(e[0],e[1],i)}var a=e[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(n))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(n))}},r},l.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)+">"},l.prototype.isInfinity=function(){return this.inf},l.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 i=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,r)},l.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,i=this.x.redSqr(),r=e.redInvm(),n=i.redAdd(i).redIAdd(i).redIAdd(t).redMul(r),a=n.redSqr().redISub(this.x.redAdd(this.x)),o=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new E(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,i){var r=[this,t],n=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(r,n):this.curve._wnafMulAdd(1,r,n,2)},l.prototype.jmulAdd=function(e,t,i){var r=[this,t],n=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(r,n,!0):this.curve._wnafMulAdd(1,r,n,2,!0)},l.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))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(r)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,o.BasePoint),c.prototype.jpoint=function(e,t,i){return new u(this,e,t,i)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),i=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(i,r)},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(),i=this.z.redSqr(),r=this.x.redMul(t),n=e.x.redMul(i),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(i.redMul(this.z)),s=r.redSub(n),c=a.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),f=r.redMul(l),d=c.redSqr().redIAdd(u).redISub(f).redISub(f),p=c.redMul(f.redISub(d)).redISub(a.redMul(u)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,p,h)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),i=this.x,r=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),o=i.redSub(r),s=n.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=i.redMul(c),f=s.redSqr().redIAdd(l).redISub(u).redISub(u),d=s.redMul(u.redISub(f)).redISub(n.redMul(l)),p=this.z.redMul(o);return this.curve.jpoint(f,d,p)},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,i=0;i<e;i++)t=t.dbl();return t}var r=this.curve.a,n=this.curve.tinv,a=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),l=o.redAdd(o);for(i=0;i<e;i++){var u=a.redSqr(),f=l.redSqr(),d=f.redSqr(),p=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),h=a.redMul(f),m=p.redSqr().redISub(h.redAdd(h)),b=h.redISub(m),g=p.redMul(b);g=g.redIAdd(g).redISub(d);var v=l.redMul(s);i+1<e&&(c=c.redMul(d)),a=m,s=v,l=g}return this.curve.jpoint(a,l.redMul(n),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,i;if(this.zOne){var r=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(o).redISub(o),l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(o.redISub(c)).redISub(l),i=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),p=this.x.redAdd(f).redSqr().redISub(u).redISub(d);p=p.redIAdd(p);var h=u.redAdd(u).redIAdd(u),m=h.redSqr(),b=d.redIAdd(d);b=(b=b.redIAdd(b)).redIAdd(b),e=m.redISub(p).redISub(p),t=h.redMul(p.redISub(e)).redISub(b),i=(i=this.y.redMul(this.z)).redIAdd(i)}return this.curve.jpoint(e,t,i)},u.prototype._threeDbl=function(){var e,t,i;if(this.zOne){var r=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(o).redISub(o);e=c;var l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(o.redISub(c)).redISub(l),i=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),p=this.x.redSub(u).redMul(this.x.redAdd(u));p=p.redAdd(p).redIAdd(p);var h=d.redIAdd(d),m=(h=h.redIAdd(h)).redAdd(h);e=p.redSqr().redISub(m),i=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var b=f.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),t=p.redMul(h.redISub(e)).redISub(b)}return this.curve.jpoint(e,t,i)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,i=this.y,r=this.z,n=r.redSqr().redSqr(),a=t.redSqr(),o=i.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(n)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(o),u=s.redSqr().redISub(l.redAdd(l)),f=l.redISub(u),d=o.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=s.redMul(f).redISub(d),h=i.redAdd(i).redMul(r);return this.curve.jpoint(u,p,h)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr(),r=t.redSqr(),n=e.redAdd(e).redIAdd(e),a=n.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=n.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(s).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(l.redMul(c.redISub(l)).redISub(o.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=this.z.redAdd(o).redSqr().redISub(i).redISub(s);return this.curve.jpoint(f,d,p)},u.prototype.mul=function(e,t){return e=new E(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(),i=e.z.redSqr();if(0!==this.x.redMul(i).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),n=i.redMul(e.z);return 0===this.y.redMul(n).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),i=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(i))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(i.redIAdd(n),0===this.x.cmp(i))return!0}return!1},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)}},{"../../elliptic":120,"../curve":123,"bn.js":67,inherits:155}],126:[function(e,t,i){"use strict";var r,n=i,a=e("hash.js"),o=e("../elliptic"),s=o.utils.assert;function c(e){"short"===e.type?this.curve=new o.curve.short(e):"edwards"===e.type?this.curve=new o.curve.edwards(e):this.curve=new o.curve.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 l(t,i){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var e=new c(i);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:e}),e}})}n.PresetCurve=c,l("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"]}),l("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"]}),l("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"]}),l("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"]}),l("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"]}),l("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"]}),l("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{r=e("./precomputed/secp256k1")}catch(e){r=void 0}l("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",r]})},{"../elliptic":120,"./precomputed/secp256k1":133,"hash.js":140}],127:[function(e,t,i){"use strict";var b=e("bn.js"),g=e("hmac-drbg"),a=e("../../elliptic"),p=a.utils.assert,r=e("./key"),v=e("./signature");function n(e){if(!(this instanceof n))return new n(e);"string"==typeof e&&(p(a.curves.hasOwnProperty(e),"Unknown curve "+e),e=a.curves[e]),e instanceof a.curves.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=n).prototype.keyPair=function(e){return new r(this,e)},n.prototype.keyFromPrivate=function(e,t){return r.fromPrivate(this,e,t)},n.prototype.keyFromPublic=function(e,t){return r.fromPublic(this,e,t)},n.prototype.genKeyPair=function(e){e||(e={});for(var t=new g({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),r=this.n.sub(new b(2));;){var n=new b(t.generate(i));if(!(0<n.cmp(r)))return n.iaddn(1),this.keyFromPrivate(n)}},n.prototype._truncateToN=function(e,t){var i=8*e.byteLength()-this.n.bitLength();return 0<i&&(e=e.ushrn(i)),!t&&0<=e.cmp(this.n)?e.sub(this.n):e},n.prototype.sign=function(e,t,i,r){"object"==typeof i&&(r=i,i=null),r||(r={}),t=this.keyFromPrivate(t,i),e=this._truncateToN(new b(e,16));for(var n=this.n.byteLength(),a=t.getPrivate().toArray("be",n),o=e.toArray("be",n),s=new g({hash:this.hash,entropy:a,nonce:o,pers:r.pers,persEnc:r.persEnc||"utf8"}),c=this.n.sub(new b(1)),l=0;;l++){var u=r.k?r.k(l):new b(s.generate(this.n.byteLength()));if(!((u=this._truncateToN(u,!0)).cmpn(1)<=0||0<=u.cmp(c))){var f=this.g.mul(u);if(!f.isInfinity()){var d=f.getX(),p=d.umod(this.n);if(0!==p.cmpn(0)){var h=u.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(h=h.umod(this.n)).cmpn(0)){var m=(f.getY().isOdd()?1:0)|(0!==d.cmp(p)?2:0);return r.canonical&&0<h.cmp(this.nh)&&(h=this.n.sub(h),m^=1),new v({r:p,s:h,recoveryParam:m})}}}}}},n.prototype.verify=function(e,t,i,r){e=this._truncateToN(new b(e,16)),i=this.keyFromPublic(i,r);var n=(t=new v(t,"hex")).r,a=t.s;if(n.cmpn(1)<0||0<=n.cmp(this.n))return!1;if(a.cmpn(1)<0||0<=a.cmp(this.n))return!1;var o,s=a.invm(this.n),c=s.mul(e).umod(this.n),l=s.mul(n).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,i.getPublic(),l)).isInfinity()&&o.eqXToP(n):!(o=this.g.mulAdd(c,i.getPublic(),l)).isInfinity()&&0===o.getX().umod(this.n).cmp(n)},n.prototype.recoverPubKey=function(e,t,i,r){p((3&i)===i,"The recovery param is more than two bits"),t=new v(t,r);var n=this.n,a=new b(e),o=t.r,s=t.s,c=1&i,l=i>>1;if(0<=o.cmp(this.curve.p.umod(this.curve.n))&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),c):this.curve.pointFromX(o,c);var u=t.r.invm(n),f=n.sub(a).mul(u).umod(n),d=s.mul(u).umod(n);return this.g.mulAdd(f,o,d)},n.prototype.getKeyRecoveryParam=function(e,t,i,r){if(null!==(t=new v(t,r)).recoveryParam)return t.recoveryParam;for(var n=0;n<4;n++){var a;try{a=this.recoverPubKey(e,t,n)}catch(e){continue}if(a.eq(i))return n}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":120,"./key":128,"./signature":129,"bn.js":67,"hmac-drbg":152}],128:[function(e,t,i){"use strict";var r=e("bn.js"),n=e("../../elliptic").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,i){return t instanceof a?t:new a(e,{pub:t,pubEnc:i})},a.fromPrivate=function(e,t,i){return t instanceof a?t:new a(e,{priv:t,privEnc:i})},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 r(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?n(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||n(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,i){return this.ec.sign(e,this,t,i)},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())+" >"}},{"../../elliptic":120,"bn.js":67}],129:[function(e,t,i){"use strict";var s=e("bn.js"),c=e("../../elliptic").utils,r=c.assert;function n(e,t){if(e instanceof n)return e;this._importDER(e,t)||(r(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 l(){this.place=0}function u(e,t){var i=e[t.place++];if(!(128&i))return i;for(var r=15&i,n=0,a=0,o=t.place;a<r;a++,o++)n<<=8,n|=e[o];return t.place=o,n}function o(e){for(var t=0,i=e.length-1;!e[t]&&!(128&e[t+1])&&t<i;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var i=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|i);--i;)e.push(t>>>(i<<3)&255);e.push(t)}}(t.exports=n).prototype._importDER=function(e,t){e=c.toArray(e,t);var i=new l;if(48!==e[i.place++])return!1;if(u(e,i)+i.place!==e.length)return!1;if(2!==e[i.place++])return!1;var r=u(e,i),n=e.slice(i.place,r+i.place);if(i.place+=r,2!==e[i.place++])return!1;var a=u(e,i);if(e.length!==a+i.place)return!1;var o=e.slice(i.place,a+i.place);return 0===n[0]&&128&n[1]&&(n=n.slice(1)),0===o[0]&&128&o[1]&&(o=o.slice(1)),this.r=new s(n),this.s=new s(o),!(this.recoveryParam=null)},n.prototype.toDER=function(e){var t=this.r.toArray(),i=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&i[0]&&(i=[0].concat(i)),t=o(t),i=o(i);!(i[0]||128&i[1]);)i=i.slice(1);var r=[2];f(r,t.length),(r=r.concat(t)).push(2),f(r,i.length);var n=r.concat(i),a=[48];return f(a,n.length),a=a.concat(n),c.encode(a,e)}},{"../../elliptic":120,"bn.js":67}],130:[function(e,t,i){"use strict";var r=e("hash.js"),n=e("../../elliptic"),a=n.utils,o=a.assert,c=a.parseBytes,s=e("./key"),l=e("./signature");function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=n.curves[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=r.sha512}(t.exports=u).prototype.sign=function(e,t){e=c(e);var i=this.keyFromSecret(t),r=this.hashInt(i.messagePrefix(),e),n=this.g.mul(r),a=this.encodePoint(n),o=this.hashInt(a,i.pubBytes(),e).mul(i.priv()),s=r.add(o).umod(this.curve.n);return this.makeSignature({R:n,S:s,Rencoded:a})},u.prototype.verify=function(e,t,i){e=c(e),t=this.makeSignature(t);var r=this.keyFromPublic(i),n=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(n)).eq(a)},u.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)},u.prototype.keyFromPublic=function(e){return s.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return s.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,i=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),n=a.intFromLE(i);return this.curve.pointFromY(n,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return a.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../../elliptic":120,"./key":131,"./signature":132,"hash.js":140}],131:[function(e,t,i){"use strict";var r=e("../../elliptic").utils,n=r.assert,a=r.parseBytes,o=r.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(),i=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[i]&=127,r[i]|=64,r}),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 n(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 n(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},t.exports=s},{"../../elliptic":120}],132:[function(e,t,i){"use strict";var r=e("bn.js"),n=e("../../elliptic").utils,a=n.assert,o=n.cachedProperty,s=n.parseBytes;function c(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 r&&(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(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},{"../../elliptic":120,"bn.js":67}],133:[function(e,t,i){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"]]}}},{}],134:[function(e,t,i){"use strict";var r=i,n=e("bn.js"),a=e("minimalistic-assert"),o=e("minimalistic-crypto-utils");r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t){for(var i=[],r=1<<t+1,n=e.clone();0<=n.cmpn(1);){var a;if(n.isOdd()){var o=n.andln(r-1);a=(r>>1)-1<o?(r>>1)-o:o,n.isubn(a)}else a=0;i.push(a);for(var s=0!==n.cmpn(0)&&0===n.andln(r-1)?t+1:1,c=1;c<s;c++)i.push(0);n.iushrn(s)}return i},r.getJSF=function(e,t){var i=[[],[]];e=e.clone(),t=t.clone();for(var r=0,n=0;0<e.cmpn(-r)||0<t.cmpn(-n);){var a,o,s,c=e.andln(3)+r&3,l=t.andln(3)+n&3;3===c&&(c=-1),3===l&&(l=-1),a=0==(1&c)?0:3!=(s=e.andln(7)+r&7)&&5!==s||2!==l?c:-c,i[0].push(a),o=0==(1&l)?0:3!=(s=t.andln(7)+n&7)&&5!==s||2!==c?l:-l,i[1].push(o),2*r===a+1&&(r=1-r),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return i},r.cachedProperty=function(e,t,i){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=i.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new n(e,"hex","le")}},{"bn.js":67,"minimalistic-assert":162,"minimalistic-crypto-utils":163}],135:[function(e,t,i){t.exports={_from:"elliptic@^6.0.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_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.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.0.0",_where:"C:\\SDKRoot\\Node\\azure-storage-node-browser-master\\azure-storage-node\\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:"^2.11.3",grunt:"^0.4.5","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":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},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.4.0"}},{}],136:[function(e,t,i){var c=Object.create||function(e){var t=function(){};return t.prototype=e,new t},o=Object.keys||function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return i},a=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function r(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=c(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((t.exports=r).EventEmitter=r).prototype._events=void 0,r.prototype._maxListeners=void 0;var n,s=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),n=0===l.x}catch(e){n=!1}function u(e){return void 0===e._maxListeners?r.defaultMaxListeners:e._maxListeners}function f(e,t,i,r){var n,a,o;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),a=e._events),o=a[t]):(a=e._events=c(null),e._eventsCount=0),o){if("function"==typeof o?o=a[t]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),!o.warned&&(n=u(e))&&0<n&&o.length>n){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]=i,++e._eventsCount;return e}function d(){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 p(e,t,i){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},n=a.call(d,r);return n.listener=i,r.wrapFn=n}function h(e,t,i){var r=e._events;if(!r)return[];var n=r[t];return n?"function"==typeof n?i?[n.listener||n]:[n]:i?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(n):b(n,n.length):[]}function m(e){var t=this._events;if(t){var i=t[e];if("function"==typeof i)return 1;if(i)return i.length}return 0}function b(e,t){for(var i=new Array(t),r=0;r<t;++r)i[r]=e[r];return i}n?Object.defineProperty(r,"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}}):r.defaultMaxListeners=s,r.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},r.prototype.getMaxListeners=function(){return u(this)},r.prototype.emit=function(e){var t,i,r,n,a,o,s="error"===e;if(o=this._events)s=s&&null==o.error;else if(!s)return!1;if(s){if(1<arguments.length&&(t=arguments[1]),t instanceof Error)throw t;var c=new Error('Unhandled "error" event. ('+t+")");throw c.context=t,c}if(!(i=o[e]))return!1;var l="function"==typeof i;switch(r=arguments.length){case 1:!function(e,t,i){if(t)e.call(i);else for(var r=e.length,n=b(e,r),a=0;a<r;++a)n[a].call(i)}(i,l,this);break;case 2:!function(e,t,i,r){if(t)e.call(i,r);else for(var n=e.length,a=b(e,n),o=0;o<n;++o)a[o].call(i,r)}(i,l,this,arguments[1]);break;case 3:!function(e,t,i,r,n){if(t)e.call(i,r,n);else for(var a=e.length,o=b(e,a),s=0;s<a;++s)o[s].call(i,r,n)}(i,l,this,arguments[1],arguments[2]);break;case 4:!function(e,t,i,r,n,a){if(t)e.call(i,r,n,a);else for(var o=e.length,s=b(e,o),c=0;c<o;++c)s[c].call(i,r,n,a)}(i,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(n=new Array(r-1),a=1;a<r;a++)n[a-1]=arguments[a];!function(e,t,i,r){if(t)e.apply(i,r);else for(var n=e.length,a=b(e,n),o=0;o<n;++o)a[o].apply(i,r)}(i,l,this,n)}return!0},r.prototype.on=r.prototype.addListener=function(e,t){return f(this,e,t,!1)},r.prototype.prependListener=function(e,t){return f(this,e,t,!0)},r.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,p(this,e,t)),this},r.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,p(this,e,t)),this},r.prototype.removeListener=function(e,t){var i,r,n,a,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(i=r[e]))return this;if(i===t||i.listener===t)0==--this._eventsCount?this._events=c(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(n=-1,a=i.length-1;0<=a;a--)if(i[a]===t||i[a].listener===t){o=i[a].listener,n=a;break}if(n<0)return this;0===n?i.shift():function(e,t){for(var i=t,r=i+1,n=e.length;r<n;i+=1,r+=1)e[i]=e[r];e.pop()}(i,n),1===i.length&&(r[e]=i[0]),r.removeListener&&this.emit("removeListener",e,o||t)}return this},r.prototype.removeAllListeners=function(e){var t,i,r;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=c(null),this._eventsCount=0):i[e]&&(0==--this._eventsCount?this._events=c(null):delete i[e]),this;if(0===arguments.length){var n,a=o(i);for(r=0;r<a.length;++r)"removeListener"!==(n=a[r])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=c(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(t)for(r=t.length-1;0<=r;r--)this.removeListener(e,t[r]);return this},r.prototype.listeners=function(e){return h(this,e,!0)},r.prototype.rawListeners=function(e){return h(this,e,!1)},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},r.prototype.listenerCount=m,r.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],137:[function(e,t,i){var p=e("safe-buffer").Buffer,h=e("md5.js");t.exports=function(e,t,i,r){if(p.isBuffer(e)||(e=p.from(e,"binary")),t&&(p.isBuffer(t)||(t=p.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=i/8,a=p.alloc(n),o=p.alloc(r||0),s=p.alloc(0);0<n||0<r;){var c=new h;c.update(s),c.update(e),t&&c.update(t),s=c.digest();var l=0;if(0<n){var u=a.length-n;l=Math.min(n,s.length),s.copy(a,u,0,l),n-=l}if(l<s.length&&0<r){var f=o.length-r,d=Math.min(r,s.length-l);s.copy(o,f,l,l+d),r-=d}}return s.fill(0),{key:a,iv:o}}},{"md5.js":160,"safe-buffer":200}],138:[function(e,t,i){var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString;function f(e){if(!e||"[object Object]"!==a.call(e)||e.nodeType||e.setInterval)return!1;var t,i=n.call(e,"constructor"),r=n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!r)return!1;for(t in e);return void 0===t||n.call(e,t)}t.exports=function e(){var t,i,r,n,a,o,s=arguments[0]||{},c=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},c=2),"object"!=typeof s&&"function"!=typeof s&&(s={});c<l;c++)if(null!=(t=arguments[c]))for(i in t)r=s[i],s!==(n=t[i])&&(u&&n&&(f(n)||(a=Array.isArray(n)))?(a?(a=!1,o=r&&Array.isArray(r)?r:[]):o=r&&f(r)?r:{},s[i]=e(u,o,n)):void 0!==n&&(s[i]=n));return s}},{}],139:[function(e,t,i){"use strict";var s=e("safe-buffer").Buffer,r=e("stream").Transform;function n(e){r.call(this),this._block=s.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(n,r),n.prototype._transform=function(e,t,i){var r=null;try{this.update(e,t)}catch(e){r=e}i(r)},n.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},n.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 i=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)i[n++]=e[r++];this._update(),this._blockOffset=0}for(;r<e.length;)i[this._blockOffset++]=e[r++];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},n.prototype._update=function(){throw new Error("_update is not implemented")},n.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 i=this._blockOffset=0;i<4;++i)this._length[i]=0;return t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=n},{inherits:155,"safe-buffer":200,stream:210}],140:[function(e,t,i){var r=i;r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":141,"./hash/hmac":142,"./hash/ripemd":143,"./hash/sha":144,"./hash/utils":151}],141:[function(e,t,i){"use strict";var n=e("./utils"),r=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}(i.BlockHash=a).prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var i=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-i,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-i,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),r(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,i=t-(e+this.padLength)%t,r=new Array(i+this.padLength);r[0]=128;for(var n=1;n<i;n++)r[n]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[n++]=0;r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=e>>>24&255,r[n++]=e>>>16&255,r[n++]=e>>>8&255,r[n++]=255&e}else for(r[n++]=255&e,r[n++]=e>>>8&255,r[n++]=e>>>16&255,r[n++]=e>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,a=8;a<this.padLength;a++)r[n++]=0;return r}},{"./utils":151,"minimalistic-assert":162}],142:[function(e,t,i){"use strict";var r=e("./utils"),n=e("minimalistic-assert");function a(e,t,i){if(!(this instanceof a))return new a(e,t,i);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,i))}(t.exports=a).prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),n(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":151,"minimalistic-assert":162}],143:[function(e,t,i){"use strict";var r=e("./utils"),n=e("./common"),h=r.rotl32,m=r.sum32,b=r.sum32_3,g=r.sum32_4,a=n.BlockHash;function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function v(e,t,i,r){return e<=15?t^i^r:e<=31?t&i|~t&r:e<=47?(t|~i)^r:e<=63?t&r|i&~r:t^(i|~r)}function _(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function y(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(o,a),(i.ripemd160=o).blockSize=512,o.outSize=160,o.hmacStrength=192,o.padLength=64,o.prototype._update=function(e,t){for(var i=this.h[0],r=this.h[1],n=this.h[2],a=this.h[3],o=this.h[4],s=i,c=r,l=n,u=a,f=o,d=0;d<80;d++){var p=m(h(g(i,v(d,r,n,a),e[E[d]+t],_(d)),S[d]),o);i=o,o=a,a=h(n,10),n=r,r=p,p=m(h(g(s,v(79-d,c,l,u),e[w[d]+t],y(d)),x[d]),f),s=f,f=u,u=h(l,10),l=c,c=p}p=b(this.h[1],n,u),this.h[1]=b(this.h[2],a,f),this.h[2]=b(this.h[3],o,s),this.h[3]=b(this.h[4],i,c),this.h[4]=b(this.h[0],r,l),this.h[0]=p},o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var E=[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],w=[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],S=[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],x=[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":141,"./utils":151}],144:[function(e,t,i){"use strict";i.sha1=e("./sha/1"),i.sha224=e("./sha/224"),i.sha256=e("./sha/256"),i.sha384=e("./sha/384"),i.sha512=e("./sha/512")},{"./sha/1":145,"./sha/224":146,"./sha/256":147,"./sha/384":148,"./sha/512":149}],145:[function(e,t,i){"use strict";var r=e("../utils"),n=e("../common"),a=e("./common"),f=r.rotl32,d=r.sum32,p=r.sum32_5,h=a.ft_1,o=n.BlockHash,m=[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)}r.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 i=this.W,r=0;r<16;r++)i[r]=e[t+r];for(;r<i.length;r++)i[r]=f(i[r-3]^i[r-8]^i[r-14]^i[r-16],1);var n=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4];for(r=0;r<i.length;r++){var l=~~(r/20),u=p(f(n,5),h(l,a,o,s),c,i[r],m[l]);c=s,s=o,o=f(a,30),a=n,n=u}this.h[0]=d(this.h[0],n),this.h[1]=d(this.h[1],a),this.h[2]=d(this.h[2],o),this.h[3]=d(this.h[3],s),this.h[4]=d(this.h[4],c)},s.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":141,"../utils":151,"./common":150}],146:[function(e,t,i){"use strict";var r=e("../utils"),n=e("./256");function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,n),(t.exports=a).blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},{"../utils":151,"./256":147}],147:[function(e,t,i){"use strict";var r=e("../utils"),n=e("../common"),a=e("./common"),h=e("minimalistic-assert"),m=r.sum32,b=r.sum32_4,g=r.sum32_5,v=a.ch32,_=a.maj32,y=a.s0_256,E=a.s1_256,w=a.g0_256,S=a.g1_256,o=n.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 c(){if(!(this instanceof c))return new c;o.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=s,this.W=new Array(64)}r.inherits(c,o),(t.exports=c).blockSize=512,c.outSize=256,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var i=this.W,r=0;r<16;r++)i[r]=e[t+r];for(;r<i.length;r++)i[r]=b(S(i[r-2]),i[r-7],w(i[r-15]),i[r-16]);var n=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],u=this.h[6],f=this.h[7];for(h(this.k.length===i.length),r=0;r<i.length;r++){var d=g(f,E(c),v(c,l,u),this.k[r],i[r]),p=m(y(n),_(n,a,o));f=u,u=l,l=c,c=m(s,d),s=o,o=a,a=n,n=m(d,p)}this.h[0]=m(this.h[0],n),this.h[1]=m(this.h[1],a),this.h[2]=m(this.h[2],o),this.h[3]=m(this.h[3],s),this.h[4]=m(this.h[4],c),this.h[5]=m(this.h[5],l),this.h[6]=m(this.h[6],u),this.h[7]=m(this.h[7],f)},c.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":141,"../utils":151,"./common":150,"minimalistic-assert":162}],148:[function(e,t,i){"use strict";var r=e("../utils"),n=e("./512");function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,n),(t.exports=a).blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},{"../utils":151,"./512":149}],149:[function(e,t,i){"use strict";var r=e("../utils"),n=e("../common"),k=e("minimalistic-assert"),a=r.rotr64_hi,o=r.rotr64_lo,s=r.shr64_hi,c=r.shr64_lo,P=r.sum64,B=r.sum64_hi,D=r.sum64_lo,d=r.sum64_4_hi,p=r.sum64_4_lo,U=r.sum64_5_hi,j=r.sum64_5_lo,l=n.BlockHash,u=[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 f(){if(!(this instanceof f))return new f;l.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=u,this.W=new Array(160)}function F(e,t,i,r,n){var a=e&i^~e&n;return a<0&&(a+=4294967296),a}function H(e,t,i,r,n,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function q(e,t,i,r,n){var a=e&i^e&n^i&n;return a<0&&(a+=4294967296),a}function z(e,t,i,r,n,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function G(e,t){var i=a(e,t,28)^a(t,e,2)^a(t,e,7);return i<0&&(i+=4294967296),i}function V(e,t){var i=o(e,t,28)^o(t,e,2)^o(t,e,7);return i<0&&(i+=4294967296),i}function Y(e,t){var i=a(e,t,14)^a(e,t,18)^a(t,e,9);return i<0&&(i+=4294967296),i}function K(e,t){var i=o(e,t,14)^o(e,t,18)^o(t,e,9);return i<0&&(i+=4294967296),i}function h(e,t){var i=a(e,t,1)^a(e,t,8)^s(e,t,7);return i<0&&(i+=4294967296),i}function m(e,t){var i=o(e,t,1)^o(e,t,8)^c(e,t,7);return i<0&&(i+=4294967296),i}function b(e,t){var i=a(e,t,19)^a(t,e,29)^s(e,t,6);return i<0&&(i+=4294967296),i}function g(e,t){var i=o(e,t,19)^o(t,e,29)^c(e,t,6);return i<0&&(i+=4294967296),i}r.inherits(f,l),(t.exports=f).blockSize=1024,f.outSize=512,f.hmacStrength=192,f.padLength=128,f.prototype._prepareBlock=function(e,t){for(var i=this.W,r=0;r<32;r++)i[r]=e[t+r];for(;r<i.length;r+=2){var n=b(i[r-4],i[r-3]),a=g(i[r-4],i[r-3]),o=i[r-14],s=i[r-13],c=h(i[r-30],i[r-29]),l=m(i[r-30],i[r-29]),u=i[r-32],f=i[r-31];i[r]=d(n,a,o,s,c,l,u,f),i[r+1]=p(n,a,o,s,c,l,u,f)}},f.prototype._update=function(e,t){this._prepareBlock(e,t);var i=this.W,r=this.h[0],n=this.h[1],a=this.h[2],o=this.h[3],s=this.h[4],c=this.h[5],l=this.h[6],u=this.h[7],f=this.h[8],d=this.h[9],p=this.h[10],h=this.h[11],m=this.h[12],b=this.h[13],g=this.h[14],v=this.h[15];k(this.k.length===i.length);for(var _=0;_<i.length;_+=2){var y=g,E=v,w=Y(f,d),S=K(f,d),x=F(f,d,p,h,m),A=H(f,d,p,h,m,b),T=this.k[_],I=this.k[_+1],N=i[_],R=i[_+1],O=U(y,E,w,S,x,A,T,I,N,R),M=j(y,E,w,S,x,A,T,I,N,R);y=G(r,n),E=V(r,n),w=q(r,n,a,o,s),S=z(r,n,a,o,s,c);var C=B(y,E,w,S),L=D(y,E,w,S);g=m,v=b,m=p,b=h,p=f,h=d,f=B(l,u,O,M),d=D(u,u,O,M),l=s,u=c,s=a,c=o,a=r,o=n,r=B(O,M,C,L),n=D(O,M,C,L)}P(this.h,0,r,n),P(this.h,2,a,o),P(this.h,4,s,c),P(this.h,6,l,u),P(this.h,8,f,d),P(this.h,10,p,h),P(this.h,12,m,b),P(this.h,14,g,v)},f.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":141,"../utils":151,"minimalistic-assert":162}],150:[function(e,t,i){"use strict";var r=e("../utils").rotr32;function n(e,t,i){return e&t^~e&i}function a(e,t,i){return e&t^e&i^t&i}function o(e,t,i){return e^t^i}i.ft_1=function(e,t,i,r){return 0===e?n(t,i,r):1===e||3===e?o(t,i,r):2===e?a(t,i,r):void 0},i.ch32=n,i.maj32=a,i.p32=o,i.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},i.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},i.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},i.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},{"../utils":151}],151:[function(e,t,i){"use strict";var l=e("minimalistic-assert"),r=e("inherits");function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function n(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}i.inherits=r,i.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)i.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var n=e.charCodeAt(r),a=n>>8,o=255&n;a?i.push(a,o):i.push(o)}else for(r=0;r<e.length;r++)i[r]=0|e[r];return i},i.toHex=function(e){for(var t="",i=0;i<e.length;i++)t+=n(e[i].toString(16));return t},i.htonl=a,i.toHex32=function(e,t){for(var i="",r=0;r<e.length;r++){var n=e[r];"little"===t&&(n=a(n)),i+=o(n.toString(16))}return i},i.zero2=n,i.zero8=o,i.join32=function(e,t,i,r){var n=i-t;l(n%4==0);for(var a=new Array(n/4),o=0,s=t;o<a.length;o++,s+=4){var c;c="big"===r?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]=c>>>0}return a},i.split32=function(e,t){for(var i=new Array(4*e.length),r=0,n=0;r<e.length;r++,n+=4){var a=e[r];"big"===t?(i[n]=a>>>24,i[n+1]=a>>>16&255,i[n+2]=a>>>8&255,i[n+3]=255&a):(i[n+3]=a>>>24,i[n+2]=a>>>16&255,i[n+1]=a>>>8&255,i[n]=255&a)}return i},i.rotr32=function(e,t){return e>>>t|e<<32-t},i.rotl32=function(e,t){return e<<t|e>>>32-t},i.sum32=function(e,t){return e+t>>>0},i.sum32_3=function(e,t,i){return e+t+i>>>0},i.sum32_4=function(e,t,i,r){return e+t+i+r>>>0},i.sum32_5=function(e,t,i,r,n){return e+t+i+r+n>>>0},i.sum64=function(e,t,i,r){var n=e[t],a=r+e[t+1]>>>0,o=(a<r?1:0)+i+n;e[t]=o>>>0,e[t+1]=a},i.sum64_hi=function(e,t,i,r){return(t+r>>>0<t?1:0)+e+i>>>0},i.sum64_lo=function(e,t,i,r){return t+r>>>0},i.sum64_4_hi=function(e,t,i,r,n,a,o,s){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+a>>>0)<a?1:0,e+i+n+o+(c+=(l=l+s>>>0)<s?1:0)>>>0},i.sum64_4_lo=function(e,t,i,r,n,a,o,s){return t+r+a+s>>>0},i.sum64_5_hi=function(e,t,i,r,n,a,o,s,c,l){var u=0,f=t;return u+=(f=f+r>>>0)<t?1:0,u+=(f=f+a>>>0)<a?1:0,u+=(f=f+s>>>0)<s?1:0,e+i+n+o+c+(u+=(f=f+l>>>0)<l?1:0)>>>0},i.sum64_5_lo=function(e,t,i,r,n,a,o,s,c,l){return t+r+a+s+l>>>0},i.rotr64_hi=function(e,t,i){return(t<<32-i|e>>>i)>>>0},i.rotr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0},i.shr64_hi=function(e,t,i){return e>>>i},i.shr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0}},{inherits:155,"minimalistic-assert":162}],152:[function(e,t,i){"use strict";var r=e("hash.js"),o=e("minimalistic-crypto-utils"),n=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"),i=o.toArray(e.nonce,e.nonceEnc||"hex"),r=o.toArray(e.pers,e.persEnc||"hex");n(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,i,r)}(t.exports=a).prototype._init=function(e,t,i){var r=e.concat(t).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.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,i,r){"string"!=typeof t&&(r=i,i=t,t=null),e=o.toArray(e,t),i=o.toArray(i,r),n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1},a.prototype.generate=function(e,t,i,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=i,i=t,t=null),i&&(i=o.toArray(i,r||"hex"),this._update(i));for(var n=[];n.length<e;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var a=n.slice(0,e);return this._update(i),this._reseed++,o.encode(a,t)}},{"hash.js":140,"minimalistic-assert":162,"minimalistic-crypto-utils":163}],153:[function(e,t,i){var r=e("http"),n=e("url"),a=t.exports;for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);function s(e){if("string"==typeof e&&(e=n.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}a.request=function(e,t){return e=s(e),r.request.call(this,e,t)},a.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},{http:211,url:230}],154:[function(e,t,i){i.read=function(e,t,i,r,n){var a,o,s=8*n-r-1,c=(1<<s)-1,l=c>>1,u=-7,f=i?n-1:0,d=i?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-u)-1,p>>=-u,u+=s;0<u;a=256*a+e[t+f],f+=d,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;0<u;o=256*o+e[t+f],f+=d,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=l}return(p?-1:1)*o*Math.pow(2,a-r)},i.write=function(e,t,i,r,n,a){var o,s,c,l=8*a-n-1,u=(1<<l)-1,f=u>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,h=r?1:-1,m=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=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),2<=(t+=1<=o+f?d/c:d*Math.pow(2,1-f))*c&&(o++,c/=2),u<=o+f?(s=0,o=u):1<=o+f?(s=(t*c-1)*Math.pow(2,n),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,n),o=0));8<=n;e[i+p]=255&s,p+=h,s/=256,n-=8);for(o=o<<n|s,l+=n;0<l;e[i+p]=255&o,p+=h,o/=256,l-=8);e[i+p-h]|=128*m}},{}],155:[function(e,t,i){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}},{}],156:[function(e,t,i){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(r(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))||!!e._isBuffer);var t}},{}],157:[function(e,t,i){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],158:[function(e,t,i){"use strict";var r=e("util"),c=e("jsonparse");function n(){return this.internalParser=new c,this.originalOnToken=this.internalParser.onToken,this.internalParser.onToken=a.bind(this),this.internalParser}t.exports,r.inherits(n,c);var a=function(e,t){var i,r,n,a=this,o=!1;if((e===c.C.STRING||e===c.C.NUMBER||e===c.C.TRUE||e===c.C.FALSE||e===c.C.NULL)&&"number"==typeof t&&-1!=this.internalParser.string.indexOf(".")&&parseInt(this.internalParser.string)===t&&this.internalParser.mode!==c.C.ARRAY){var s=this.internalParser.key+"@odata.type";this.internalParser.value&&(this.internalParser.value[s]="Edm.Double"),i=s,r="Edm.Double",n=a.internalParser.key,a.internalParser.key=i,a.internalParser.onValue(r),a.internalParser.key=n,o=this.internalParser.string!==t.toString()}o?this.originalOnToken.call(this.internalParser,e,this.internalParser.string):this.originalOnToken.call(this.internalParser,e,t)};n.C=c.C,t.exports=n},{jsonparse:159,util:234}],159:[function(e,t,i){(function(s){var a={},c=a.LEFT_BRACE=1,l=a.RIGHT_BRACE=2,u=a.LEFT_BRACKET=3,f=a.RIGHT_BRACKET=4,d=a.COLON=5,p=a.COMMA=6,h=a.TRUE=7,m=a.FALSE=8,b=a.NULL=9,g=a.STRING=10,v=a.NUMBER=11,_=a.START=17,i=a.STOP=18,y=a.TRUE1=33,E=a.TRUE2=34,w=a.TRUE3=35,S=a.FALSE1=49,x=a.FALSE2=50,A=a.FALSE3=51,T=a.FALSE4=52,I=a.NULL1=65,N=a.NULL2=66,R=a.NULL3=67,O=a.NUMBER1=81,M=a.NUMBER3=83,C=a.STRING1=97,L=a.STRING2=98,k=a.STRING3=99,P=a.STRING4=100,B=a.STRING5=101,D=a.STRING6=102,r=a.VALUE=113,n=a.KEY=114,o=a.OBJECT=129,U=a.ARRAY=130;function j(){this.tState=_,this.value=void 0,this.string=void 0,this.unicode=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=r,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new s(2),3:new s(3),4:new s(4)},this.offset=-1}j.toknam=function(e){for(var t=Object.keys(a),i=0,r=t.length;i<r;i++){var n=t[i];if(a[n]===e)return n}return e&&"0x"+e.toString(16)};var e=j.prototype;e.onError=function(e){throw e},e.charError=function(e,t){this.tState=i,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(e[t]))+" at position "+t+" in state "+j.toknam(this.tState)))},e.write=function(e){var t;"string"==typeof e&&(e=new s(e));for(var i=0,r=e.length;i<r;i++)if(this.tState===_){if(t=e[i],this.offset++,123===t)this.onToken(c,"{");else if(125===t)this.onToken(l,"}");else if(91===t)this.onToken(u,"[");else if(93===t)this.onToken(f,"]");else if(58===t)this.onToken(d,":");else if(44===t)this.onToken(p,",");else if(116===t)this.tState=y;else if(102===t)this.tState=S;else if(110===t)this.tState=I;else if(34===t)this.string="",this.tState=C;else if(45===t)this.string="-",this.tState=O;else if(48<=t&&t<64)this.string=String.fromCharCode(t),this.tState=M;else if(32!==t&&9!==t&&10!==t&&13!==t)return this.charError(e,i)}else if(this.tState===C)if(t=e[i],0<this.bytes_remaining){for(var n=0;n<this.bytes_remaining;n++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+n]=e[n];this.string+=this.temp_buffs[this.bytes_in_sequence].toString(),this.bytes_in_sequence=this.bytes_remaining=0,i=i+n-1}else if(0===this.bytes_remaining&&128<=t){if(t<=193||244<t)return this.onError(new Error("Invalid UTF-8 character at position "+i+" in state "+j.toknam(this.tState)));if(194<=t&&t<=223&&(this.bytes_in_sequence=2),224<=t&&t<=239&&(this.bytes_in_sequence=3),240<=t&&t<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+i>e.length){for(var a=0;a<=e.length-1-i;a++)this.temp_buffs[this.bytes_in_sequence][a]=e[i+a];this.bytes_remaining=i+this.bytes_in_sequence-e.length,i=e.length-1}else this.string+=e.slice(i,i+this.bytes_in_sequence).toString(),i=i+this.bytes_in_sequence-1}else if(34===t)this.tState=_,this.onToken(g,this.string),this.offset+=s.byteLength(this.string,"utf8")+1,this.string=void 0;else if(92===t)this.tState=L;else{if(!(32<=t))return this.charError(e,i);this.string+=String.fromCharCode(t)}else if(this.tState===L)if(34===(t=e[i]))this.string+='"',this.tState=C;else if(92===t)this.string+="\\",this.tState=C;else if(47===t)this.string+="/",this.tState=C;else if(98===t)this.string+="\b",this.tState=C;else if(102===t)this.string+="\f",this.tState=C;else if(110===t)this.string+="\n",this.tState=C;else if(114===t)this.string+="\r",this.tState=C;else if(116===t)this.string+="\t",this.tState=C;else{if(117!==t)return this.charError(e,i);this.unicode="",this.tState=k}else if(this.tState===k||this.tState===P||this.tState===B||this.tState===D){if(!(48<=(t=e[i])&&t<64||64<t&&t<=70||96<t&&t<=102))return this.charError(e,i);this.unicode+=String.fromCharCode(t),this.tState++===D&&(this.string+=String.fromCharCode(parseInt(this.unicode,16)),this.unicode=void 0,this.tState=C)}else if(this.tState===O||this.tState===M)switch(t=e[i]){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(t),this.tState=M;break;default:this.tState=_;var o=Number(this.string);if(isNaN(o))return this.charError(e,i);this.string.match(/[0-9]+/)==this.string&&o.toString()!=this.string?this.onToken(g,this.string):this.onToken(v,o),this.offset+=this.string.length-1,this.string=void 0,i--}else if(this.tState===y){if(114!==e[i])return this.charError(e,i);this.tState=E}else if(this.tState===E){if(117!==e[i])return this.charError(e,i);this.tState=w}else if(this.tState===w){if(101!==e[i])return this.charError(e,i);this.tState=_,this.onToken(h,!0),this.offset+=3}else if(this.tState===S){if(97!==e[i])return this.charError(e,i);this.tState=x}else if(this.tState===x){if(108!==e[i])return this.charError(e,i);this.tState=A}else if(this.tState===A){if(115!==e[i])return this.charError(e,i);this.tState=T}else if(this.tState===T){if(101!==e[i])return this.charError(e,i);this.tState=_,this.onToken(m,!1),this.offset+=4}else if(this.tState===I){if(117!==e[i])return this.charError(e,i);this.tState=N}else if(this.tState===N){if(108!==e[i])return this.charError(e,i);this.tState=R}else if(this.tState===R){if(108!==e[i])return this.charError(e,i);this.tState=_,this.onToken(b,null),this.offset+=3}},e.onToken=function(e,t){},e.parseError=function(e,t){this.tState=i,this.onError(new Error("Unexpected "+j.toknam(e)+(t?"("+JSON.stringify(t)+")":"")+" in state "+j.toknam(this.state)))},e.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},e.pop=function(){var e=this.value,t=this.stack.pop();this.value=t.value,this.key=t.key,this.mode=t.mode,this.emit(e),this.mode||(this.state=r)},e.emit=function(e){this.mode&&(this.state=p),this.onValue(e)},e.onValue=function(e){},e.onToken=function(e,t){if(this.state===r)if(e===g||e===v||e===h||e===m||e===b)this.value&&(this.value[this.key]=t),this.emit(t);else if(e===c)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=n,this.mode=o;else if(e===u)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=U,this.state=r;else if(e===l){if(this.mode!==o)return this.parseError(e,t);this.pop()}else{if(e!==f)return this.parseError(e,t);if(this.mode!==U)return this.parseError(e,t);this.pop()}else if(this.state===n)if(e===g)this.key=t,this.state=d;else{if(e!==l)return this.parseError(e,t);this.pop()}else if(this.state===d){if(e!==d)return this.parseError(e,t);this.state=r}else{if(this.state!==p)return this.parseError(e,t);if(e===p)this.mode===U?(this.key++,this.state=r):this.mode===o&&(this.state=n);else{if(!(e===f&&this.mode===U||e===l&&this.mode===o))return this.parseError(e,t);this.pop()}}},j.C=a,t.exports=j}).call(this,e("buffer").Buffer)},{buffer:100}],160:[function(n,a,e){(function(t){"use strict";var e=n("inherits"),i=n("hash-base"),o=new Array(16);function r(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<<t|e>>>32-t}function c(e,t,i,r,n,a,o){return s(e+(t&i|~t&r)+n+a|0,o)+t|0}function l(e,t,i,r,n,a,o){return s(e+(t&r|i&~r)+n+a|0,o)+t|0}function u(e,t,i,r,n,a,o){return s(e+(t^i^r)+n+a|0,o)+t|0}function f(e,t,i,r,n,a,o){return s(e+(i^(t|~r))+n+a|0,o)+t|0}e(r,i),r.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,r=this._b,n=this._c,a=this._d;r=f(r=f(r=f(r=f(r=u(r=u(r=u(r=u(r=l(r=l(r=l(r=l(r=c(r=c(r=c(r=c(r,n=c(n,a=c(a,i=c(i,r,n,a,e[0],3614090360,7),r,n,e[1],3905402710,12),i,r,e[2],606105819,17),a,i,e[3],3250441966,22),n=c(n,a=c(a,i=c(i,r,n,a,e[4],4118548399,7),r,n,e[5],1200080426,12),i,r,e[6],2821735955,17),a,i,e[7],4249261313,22),n=c(n,a=c(a,i=c(i,r,n,a,e[8],1770035416,7),r,n,e[9],2336552879,12),i,r,e[10],4294925233,17),a,i,e[11],2304563134,22),n=c(n,a=c(a,i=c(i,r,n,a,e[12],1804603682,7),r,n,e[13],4254626195,12),i,r,e[14],2792965006,17),a,i,e[15],1236535329,22),n=l(n,a=l(a,i=l(i,r,n,a,e[1],4129170786,5),r,n,e[6],3225465664,9),i,r,e[11],643717713,14),a,i,e[0],3921069994,20),n=l(n,a=l(a,i=l(i,r,n,a,e[5],3593408605,5),r,n,e[10],38016083,9),i,r,e[15],3634488961,14),a,i,e[4],3889429448,20),n=l(n,a=l(a,i=l(i,r,n,a,e[9],568446438,5),r,n,e[14],3275163606,9),i,r,e[3],4107603335,14),a,i,e[8],1163531501,20),n=l(n,a=l(a,i=l(i,r,n,a,e[13],2850285829,5),r,n,e[2],4243563512,9),i,r,e[7],1735328473,14),a,i,e[12],2368359562,20),n=u(n,a=u(a,i=u(i,r,n,a,e[5],4294588738,4),r,n,e[8],2272392833,11),i,r,e[11],1839030562,16),a,i,e[14],4259657740,23),n=u(n,a=u(a,i=u(i,r,n,a,e[1],2763975236,4),r,n,e[4],1272893353,11),i,r,e[7],4139469664,16),a,i,e[10],3200236656,23),n=u(n,a=u(a,i=u(i,r,n,a,e[13],681279174,4),r,n,e[0],3936430074,11),i,r,e[3],3572445317,16),a,i,e[6],76029189,23),n=u(n,a=u(a,i=u(i,r,n,a,e[9],3654602809,4),r,n,e[12],3873151461,11),i,r,e[15],530742520,16),a,i,e[2],3299628645,23),n=f(n,a=f(a,i=f(i,r,n,a,e[0],4096336452,6),r,n,e[7],1126891415,10),i,r,e[14],2878612391,15),a,i,e[5],4237533241,21),n=f(n,a=f(a,i=f(i,r,n,a,e[12],1700485571,6),r,n,e[3],2399980690,10),i,r,e[10],4293915773,15),a,i,e[1],2240044497,21),n=f(n,a=f(a,i=f(i,r,n,a,e[8],1873313359,6),r,n,e[15],4264355552,10),i,r,e[6],2734768916,15),a,i,e[13],1309151649,21),n=f(n,a=f(a,i=f(i,r,n,a,e[4],4149444226,6),r,n,e[11],3174756917,10),i,r,e[2],718787259,15),a,i,e[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+a|0},r.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=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},a.exports=r}).call(this,n("buffer").Buffer)},{buffer:100,"hash-base":139,inherits:155}],161:[function(e,t,i){var p=e("bn.js"),r=e("brorand");function n(e){this.rand=e||new r.Rand}(t.exports=n).create=function(e){return new n(e)},n.prototype._randbelow=function(e){var t=e.bitLength(),i=Math.ceil(t/8);do{var r=new p(this.rand.generate(i))}while(0<=r.cmp(e));return r},n.prototype._randrange=function(e,t){var i=t.sub(e);return e.add(this._randbelow(i))},n.prototype.test=function(e,t,i){var r=e.bitLength(),n=p.mont(e),a=new p(1).toRed(n);t||(t=Math.max(1,r/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),l=o.toRed(n);0<t;t--){var u=this._randrange(new p(2),o);i&&i(u);var f=u.toRed(n).redPow(c);if(0!==f.cmp(a)&&0!==f.cmp(l)){for(var d=1;d<s;d++){if(0===(f=f.redSqr()).cmp(a))return!1;if(0===f.cmp(l))break}if(d===s)return!1}}return!0},n.prototype.getDivisor=function(e,t){var i=e.bitLength(),r=p.mont(e),n=new p(1).toRed(r);t||(t=Math.max(1,i/48|0));for(var a=e.subn(1),o=0;!a.testn(o);o++);for(var s=e.shrn(o),c=a.toRed(r);0<t;t--){var l=this._randrange(new p(2),a),u=e.gcd(l);if(0!==u.cmpn(1))return u;var f=l.toRed(r).redPow(s);if(0!==f.cmp(n)&&0!==f.cmp(c)){for(var d=1;d<o;d++){if(0===(f=f.redSqr()).cmp(n))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(c))break}if(d===o)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":67,brorand:68}],162:[function(e,t,i){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}(t.exports=r).equal=function(e,t,i){if(e!=t)throw new Error(i||"Assertion failed: "+e+" != "+t)}},{}],163:[function(e,t,i){"use strict";var r=i;function n(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",i=0;i<e.length;i++)t+=n(e[i].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)i[r]=0|e[r];return i}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)i.push(parseInt(e[r]+e[r+1],16));else for(r=0;r<e.length;r++){var n=e.charCodeAt(r),a=n>>8,o=255&n;a?i.push(a,o):i.push(o)}return i},r.zero2=n,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},{}],164:[function(e,t,i){i.endianness=function(){return"LE"},i.hostname=function(){return"undefined"!=typeof location?location.hostname:""},i.loadavg=function(){return[]},i.uptime=function(){return 0},i.freemem=function(){return Number.MAX_VALUE},i.totalmem=function(){return Number.MAX_VALUE},i.cpus=function(){return[]},i.type=function(){return"Browser"},i.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},i.networkInterfaces=i.getNetworkInterfaces=function(){return{}},i.arch=function(){return"javascript"},i.platform=function(){return"browser"},i.tmpdir=i.tmpDir=function(){return"/tmp"},i.EOL="\n",i.homedir=function(){return"/"}},{}],165:[function(e,t,i){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"}},{}],166:[function(e,t,i){"use strict";var r=e("asn1.js");i.certificate=e("./certificate");var n=r.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())});i.RSAPrivateKey=n;var a=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});i.RSAPublicKey=a;var o=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});i.PublicKey=o;var s=r.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())}),c=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});i.PrivateKey=c;var l=r.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())});i.EncryptedPrivateKey=l;var u=r.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())});i.DSAPrivateKey=u,i.DSAparam=r.define("DSAparam",function(){this.int()});var f=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});i.ECPrivateKey=f;var d=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});i.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":167,"asn1.js":52}],167:[function(e,t,i){"use strict";var r=e("asn1.js"),n=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),c=r.define("RelativeDistinguishedName",function(){this.setof(a)}),l=r.define("RDNSequence",function(){this.seqof(c)}),u=r.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),f=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))}),d=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),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(d).optional())}),h=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});t.exports=h},{"asn1.js":52}],168:[function(e,t,i){(function(d){var p=/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,h=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m,m=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,b=e("evp_bytestokey"),g=e("browserify-aes");t.exports=function(e,t){var i,r=e.toString(),n=r.match(p);if(n){var a="aes"+n[1],o=new d(n[2],"hex"),s=new d(n[3].replace(/[\r\n]/g,""),"base64"),c=b(t,o.slice(0,8),parseInt(n[1],10)).key,l=[],u=g.createDecipheriv(a,c,o);l.push(u.update(s)),l.push(u.final()),i=d.concat(l)}else{var f=r.match(m);i=new d(f[2].replace(/[\r\n]/g,""),"base64")}return{tag:r.match(h)[1],data:i}}}).call(this,e("buffer").Buffer)},{"browserify-aes":72,buffer:100,evp_bytestokey:137}],169:[function(t,i,e){(function(v){var _=t("./asn1"),y=t("./aesid.json"),E=t("./fixProc"),w=t("browserify-aes"),S=t("pbkdf2");function e(e){var t;"object"!=typeof e||v.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=new v(e));var i,r,n,a,o,s,c,l,u,f,d,p,h,m=E(e,t),b=m.tag,g=m.data;switch(b){case"CERTIFICATE":r=_.certificate.decode(g,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(r||(r=_.PublicKey.decode(g,"der")),i=r.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return _.RSAPublicKey.decode(r.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return r.subjectPrivateKey=r.subjectPublicKey,{type:"ec",data:r};case"1.2.840.10040.4.1":return r.algorithm.params.pub_key=_.DSAparam.decode(r.subjectPublicKey.data,"der"),{type:"dsa",data:r.algorithm.params};default:throw new Error("unknown key id "+i)}throw new Error("unknown key type "+b);case"ENCRYPTED PRIVATE KEY":g=_.EncryptedPrivateKey.decode(g,"der"),a=t,o=(n=g).algorithm.decrypt.kde.kdeparams.salt,s=parseInt(n.algorithm.decrypt.kde.kdeparams.iters.toString(),10),c=y[n.algorithm.decrypt.cipher.algo.join(".")],l=n.algorithm.decrypt.cipher.iv,u=n.subjectPrivateKey,f=parseInt(c.split("-")[1],10)/8,d=S.pbkdf2Sync(a,o,s,f),p=w.createDecipheriv(c,d,l),(h=[]).push(p.update(u)),h.push(p.final()),g=v.concat(h);case"PRIVATE KEY":switch(i=(r=_.PrivateKey.decode(g,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return _.RSAPrivateKey.decode(r.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:r.algorithm.curve,privateKey:_.ECPrivateKey.decode(r.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return r.algorithm.params.priv_key=_.DSAparam.decode(r.subjectPrivateKey,"der"),{type:"dsa",params:r.algorithm.params};default:throw new Error("unknown key id "+i)}throw new Error("unknown key type "+b);case"RSA PUBLIC KEY":return _.RSAPublicKey.decode(g,"der");case"RSA PRIVATE KEY":return _.RSAPrivateKey.decode(g,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:_.DSAPrivateKey.decode(g,"der")};case"EC PRIVATE KEY":return{curve:(g=_.ECPrivateKey.decode(g,"der")).parameters.value,privateKey:g.privateKey};default:throw new Error("unknown key type "+b)}}(i.exports=e).signature=_.signature}).call(this,t("buffer").Buffer)},{"./aesid.json":165,"./asn1":166,"./fixProc":168,"browserify-aes":72,buffer:100,pbkdf2:170}],170:[function(e,t,i){i.pbkdf2=e("./lib/async"),i.pbkdf2Sync=e("./lib/sync")},{"./lib/async":171,"./lib/sync":174}],171:[function(e,t,i){(function(l,u){var f,d=e("./precondition"),p=e("./default-encoding"),h=e("./sync"),m=e("safe-buffer").Buffer,b=u.crypto&&u.crypto.subtle,g={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"},v=[];function _(e,t,i,r,n){return b.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return b.deriveBits({name:"PBKDF2",salt:t,iterations:i,hash:{name:n}},e,r<<3)}).then(function(e){return m.from(e)})}t.exports=function(t,i,r,n,a,o){"function"==typeof a&&(o=a,a=void 0);var e,s,c=g[(a=a||"sha1").toLowerCase()];if(!c||"function"!=typeof u.Promise)return l.nextTick(function(){var e;try{e=h(t,i,r,n,a)}catch(e){return o(e)}o(null,e)});if(d(t,i,r,n),"function"!=typeof o)throw new Error("No callback provided to pbkdf2");m.isBuffer(t)||(t=m.from(t,p)),m.isBuffer(i)||(i=m.from(i,p)),e=function(e){if(u.process&&!u.process.browser)return Promise.resolve(!1);if(!b||!b.importKey||!b.deriveBits)return Promise.resolve(!1);if(void 0!==v[e])return v[e];var t=_(f=f||m.alloc(8),f,10,128,e).then(function(){return!0}).catch(function(){return!1});return v[e]=t}(c).then(function(e){return e?_(t,i,r,n,c):h(t,i,r,n,a)}),s=o,e.then(function(e){l.nextTick(function(){s(null,e)})},function(e){l.nextTick(function(){s(e)})})}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":172,"./precondition":173,"./sync":174,_process:176,"safe-buffer":200}],172:[function(e,i,t){(function(e){var t;e.browser?t="utf-8":t=6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary";i.exports=t}).call(this,e("_process"))},{_process:176}],173:[function(e,t,i){(function(i){var n=Math.pow(2,30)-1;function a(e,t){if("string"!=typeof e&&!i.isBuffer(e))throw new TypeError(t+" must be a buffer or string")}t.exports=function(e,t,i,r){if(a(e,"Password"),a(t,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof r)throw new TypeError("Key length not a number");if(r<0||n<r||r!=r)throw new TypeError("Bad key length")}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":156}],174:[function(e,t,i){var u=e("create-hash/md5"),f=e("ripemd160"),d=e("sha.js"),b=e("./precondition"),g=e("./default-encoding"),v=e("safe-buffer").Buffer,p=v.alloc(128),_={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function y(e,t,i){var r,n="rmd160"===(r=e)||"ripemd160"===r?f:"md5"===r?u:function(e){return d(r).update(e).digest()},a="sha512"===e||"sha384"===e?128:64;t.length>a?t=n(t):t.length<a&&(t=v.concat([t,p],a));for(var o=v.allocUnsafe(a+_[e]),s=v.allocUnsafe(a+_[e]),c=0;c<a;c++)o[c]=54^t[c],s[c]=92^t[c];var l=v.allocUnsafe(a+i+4);o.copy(l,0,0,a),this.ipad1=l,this.ipad2=o,this.opad=s,this.alg=e,this.blocksize=a,this.hash=n,this.size=_[e]}y.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,i,r,n){b(e,t,i,r),v.isBuffer(e)||(e=v.from(e,g)),v.isBuffer(t)||(t=v.from(t,g));var a=new y(n=n||"sha1",e,t.length),o=v.allocUnsafe(r),s=v.allocUnsafe(t.length+4);t.copy(s,0,0,t.length);for(var c=0,l=_[n],u=Math.ceil(r/l),f=1;f<=u;f++){s.writeUInt32BE(f,t.length);for(var d=a.run(s,a.ipad1),p=d,h=1;h<i;h++){p=a.run(p,a.ipad2);for(var m=0;m<l;m++)d[m]^=p[m]}d.copy(o,c),c+=l}return o}},{"./default-encoding":172,"./precondition":173,"create-hash/md5":106,ripemd160:199,"safe-buffer":200,"sha.js":203}],175:[function(e,t,i){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports=function(e,t,i,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var n,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,i)});case 4:return s.nextTick(function(){e.call(null,t,i,r)});default:for(n=new Array(o-1),a=0;a<n.length;)n[a++]=arguments[a];return s.nextTick(function(){e.apply(null,n)})}}:t.exports=s.nextTick}).call(this,e("_process"))},{_process:176}],176:[function(e,t,i){var r,n,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l,u=[],f=!1,d=-1;function p(){f&&l&&(f=!1,l.length?u=l.concat(u):d=-1,u.length&&h())}function h(){if(!f){var e=c(p);f=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function b(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];u.push(new m(e,t)),1!==u.length||f||c(h)},m.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=b,a.addListener=b,a.once=b,a.off=b,a.removeListener=b,a.removeAllListeners=b,a.emit=b,a.prependListener=b,a.prependOnceListener=b,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}},{}],177:[function(e,t,i){i.publicEncrypt=e("./publicEncrypt"),i.privateDecrypt=e("./privateDecrypt"),i.privateEncrypt=function(e,t){return i.publicEncrypt(e,t,!0)},i.publicDecrypt=function(e,t){return i.privateDecrypt(e,t,!0)}},{"./privateDecrypt":179,"./publicEncrypt":180}],178:[function(e,t,i){(function(a){var o=e("create-hash");function s(e){var t=new a(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var i,r=new a(""),n=0;r.length<t;)i=s(n++),r=a.concat([r,o("sha1").update(e).update(i).digest()]);return r.slice(0,t)}}).call(this,e("buffer").Buffer)},{buffer:100,"create-hash":105}],179:[function(e,t,i){(function(u){var c=e("parse-asn1"),f=e("./mgf"),d=e("./xor"),l=e("bn.js"),p=e("browserify-rsa"),h=e("create-hash"),m=e("./withPublic");t.exports=function(e,t,i){var r;r=e.padding?e.padding:i?1:4;var n,a=c(e),o=a.modulus.byteLength();if(t.length>o||0<=new l(t).cmp(a.modulus))throw new Error("decryption error");n=i?m(new l(t),a):p(t,a);var s=new u(o-n.length);if(s.fill(0),n=u.concat([s,n],o),4===r)return function(e,t){e.modulus;var i=e.modulus.byteLength(),r=(t.length,h("sha1").update(new u("")).digest()),n=r.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,n+1),o=t.slice(n+1),s=d(a,f(o,n)),c=d(o,f(s,i-n-1));if(function(e,t){e=new u(e),t=new u(t);var i=0,r=e.length;e.length!==t.length&&(i++,r=Math.min(e.length,t.length));var n=-1;for(;++n<r;)i+=e[n]^t[n];return i}(r,c.slice(0,n)))throw new Error("decryption error");var l=n;for(;0===c[l];)l++;if(1!==c[l++])throw new Error("decryption error");return c.slice(l)}(a,n);if(1===r)return function(e,t,i){var r=t.slice(0,2),n=2,a=0;for(;0!==t[n++];)if(n>=t.length){a++;break}var o=t.slice(2,n-1);t.slice(n-1,n);("0002"!==r.toString("hex")&&!i||"0001"!==r.toString("hex")&&i)&&a++;o.length<8&&a++;if(a)throw new Error("decryption error");return t.slice(n)}(0,n,i);if(3===r)return n;throw new Error("unknown padding")}}).call(this,e("buffer").Buffer)},{"./mgf":178,"./withPublic":181,"./xor":182,"bn.js":67,"browserify-rsa":91,buffer:100,"create-hash":105,"parse-asn1":169}],180:[function(e,t,i){(function(d){var o=e("parse-asn1"),p=e("randombytes"),h=e("create-hash"),m=e("./mgf"),b=e("./xor"),g=e("bn.js"),s=e("./withPublic"),c=e("browserify-rsa");t.exports=function(e,t,i){var r;r=e.padding?e.padding:i?1:4;var n,a=o(e);if(4===r)n=function(e,t){var i=e.modulus.byteLength(),r=t.length,n=h("sha1").update(new d("")).digest(),a=n.length,o=2*a;if(i-o-2<r)throw new Error("message too long");var s=new d(i-r-o-2);s.fill(0);var c=i-a-1,l=p(a),u=b(d.concat([n,s,new d([1]),t],c),m(l,c)),f=b(l,m(u,a));return new g(d.concat([new d([0]),f,u],i))}(a,t);else if(1===r)n=function(e,t,i){var r,n=t.length,a=e.modulus.byteLength();if(a-11<n)throw new Error("message too long");i?(r=new d(a-n-3)).fill(255):r=function(e,t){var i,r=new d(e),n=0,a=p(2*e),o=0;for(;n<e;)o===a.length&&(a=p(2*e),o=0),(i=a[o++])&&(r[n++]=i);return r}(a-n-3);return new g(d.concat([new d([0,i?1:2]),r,new d([0]),t],a))}(a,t,i);else{if(3!==r)throw new Error("unknown padding");if(0<=(n=new g(t)).cmp(a.modulus))throw new Error("data too long for modulus")}return i?c(n,a):s(n,a)}}).call(this,e("buffer").Buffer)},{"./mgf":178,"./withPublic":181,"./xor":182,"bn.js":67,"browserify-rsa":91,buffer:100,"create-hash":105,"parse-asn1":169,randombytes:187}],181:[function(e,t,i){(function(i){var r=e("bn.js");t.exports=function(e,t){return new i(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}}).call(this,e("buffer").Buffer)},{"bn.js":67,buffer:100}],182:[function(e,t,i){t.exports=function(e,t){for(var i=e.length,r=-1;++r<i;)e[r]^=t[r];return e}},{}],183:[function(e,C,L){(function(M){!function(e){var t="object"==typeof L&&L&&!L.nodeType&&L,i="object"==typeof C&&C&&!C.nodeType&&C,r="object"==typeof M&&M;r.global!==r&&r.window!==r&&r.self!==r||(e=r);var n,a,g=2147483647,v=36,_=1,y=26,o=38,s=700,E=72,w=128,S="-",c=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=v-_,x=Math.floor,A=String.fromCharCode;function T(e){throw new RangeError(f[e])}function p(e,t){for(var i=e.length,r=[];i--;)r[i]=t(e[i]);return r}function h(e,t){var i=e.split("@"),r="";return 1<i.length&&(r=i[0]+"@",e=i[1]),r+p((e=e.replace(u,".")).split("."),t).join(".")}function I(e){for(var t,i,r=[],n=0,a=e.length;n<a;)55296<=(t=e.charCodeAt(n++))&&t<=56319&&n<a?56320==(64512&(i=e.charCodeAt(n++)))?r.push(((1023&t)<<10)+(1023&i)+65536):(r.push(t),n--):r.push(t);return r}function N(e){return p(e,function(e){var t="";return 65535<e&&(t+=A((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=A(e)}).join("")}function R(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,i){var r=0;for(e=i?x(e/s):e>>1,e+=x(e/t);d*y>>1<e;r+=v)e=x(e/d);return x(r+(d+1)*e/(e+o))}function m(e){var t,i,r,n,a,o,s,c,l,u,f,d=[],p=e.length,h=0,m=w,b=E;for((i=e.lastIndexOf(S))<0&&(i=0),r=0;r<i;++r)128<=e.charCodeAt(r)&&T("not-basic"),d.push(e.charCodeAt(r));for(n=0<i?i+1:0;n<p;){for(a=h,o=1,s=v;p<=n&&T("invalid-input"),f=e.charCodeAt(n++),(v<=(c=f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:v)||c>x((g-h)/o))&&T("overflow"),h+=c*o,!(c<(l=s<=b?_:b+y<=s?y:s-b));s+=v)o>x(g/(u=v-l))&&T("overflow"),o*=u;b=O(h-a,t=d.length+1,0==a),x(h/t)>g-m&&T("overflow"),m+=x(h/t),h%=t,d.splice(h++,0,m)}return N(d)}function b(e){var t,i,r,n,a,o,s,c,l,u,f,d,p,h,m,b=[];for(d=(e=I(e)).length,t=w,a=E,o=i=0;o<d;++o)(f=e[o])<128&&b.push(A(f));for(r=n=b.length,n&&b.push(S);r<d;){for(s=g,o=0;o<d;++o)t<=(f=e[o])&&f<s&&(s=f);for(s-t>x((g-i)/(p=r+1))&&T("overflow"),i+=(s-t)*p,t=s,o=0;o<d;++o)if((f=e[o])<t&&++i>g&&T("overflow"),f==t){for(c=i,l=v;!(c<(u=l<=a?_:a+y<=l?y:l-a));l+=v)m=c-u,h=v-u,b.push(A(R(u+m%h,0))),c=x(m/h);b.push(A(R(c,0))),a=O(i,p,r==n),i=0,++r}++i,++t}return b.join("")}if(n={version:"1.4.1",ucs2:{decode:I,encode:N},decode:m,encode:b,toASCII:function(e){return h(e,function(e){return l.test(e)?"xn--"+b(e):e})},toUnicode:function(e){return h(e,function(e){return c.test(e)?m(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return n});else if(t&&i)if(C.exports==t)i.exports=n;else for(a in n)n.hasOwnProperty(a)&&(t[a]=n[a]);else e.punycode=n}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],184:[function(e,t,i){"use strict";t.exports=function(e,t,i,r){t=t||"&",i=i||"=";var n={};if("string"!=typeof e||0===e.length)return n;var a=/\+/g;e=e.split(t);var o=1e3;r&&"number"==typeof r.maxKeys&&(o=r.maxKeys);var s,c,l=e.length;0<o&&o<l&&(l=o);for(var u=0;u<l;++u){var f,d,p,h,m=e[u].replace(a,"%20"),b=m.indexOf(i);0<=b?(f=m.substr(0,b),d=m.substr(b+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),s=n,c=p,Object.prototype.hasOwnProperty.call(s,c)?g(n[p])?n[p].push(h):n[p]=[n[p],h]:n[p]=h}return n};var g=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],185:[function(e,t,i){"use strict";var a=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(i,r,n,e){return r=r||"&",n=n||"=",null===i&&(i=void 0),"object"==typeof i?s(c(i),function(e){var t=encodeURIComponent(a(e))+n;return o(i[e])?s(i[e],function(e){return t+encodeURIComponent(a(e))}).join(r):t+encodeURIComponent(a(i[e]))}).join(r):e?encodeURIComponent(a(e))+n+encodeURIComponent(a(i)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var i=[],r=0;r<e.length;r++)i.push(t(e[r],r));return i}var c=Object.keys||function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}},{}],186:[function(e,t,i){"use strict";i.decode=i.parse=e("./decode"),i.encode=i.stringify=e("./encode")},{"./decode":184,"./encode":185}],187:[function(e,t,i){(function(n,a){"use strict";var o=e("safe-buffer").Buffer,s=a.crypto||a.msCrypto;s&&s.getRandomValues?t.exports=function(e,t){if(65536<e)throw new Error("requested too many random bytes");var i=new a.Uint8Array(e);0<e&&s.getRandomValues(i);var r=o.from(i.buffer);if("function"==typeof t)return n.nextTick(function(){t(null,r)});return r}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:176,"safe-buffer":200}],188:[function(i,e,p){(function(o,n){"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=i("safe-buffer"),s=i("randombytes"),a=t.Buffer,r=t.kMaxLength,c=n.crypto||n.msCrypto,l=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(l<e||e<0)throw new TypeError("offset must be a uint32");if(r<e||t<e)throw new RangeError("offset out of range")}function f(e,t,i){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(l<e||e<0)throw new TypeError("size must be a uint32");if(i<e+t||r<e)throw new RangeError("buffer too small")}function d(i,r,e,n){if(o.browser){var t=i.buffer,a=new Uint8Array(t,r,e);return c.getRandomValues(a),n?void o.nextTick(function(){n(null,i)}):i}if(!n)return s(e).copy(i,r),i;s(e,function(e,t){if(e)return n(e);t.copy(i,r),n(null,i)})}c&&c.getRandomValues||!o.browser?(p.randomFill=function(e,t,i,r){if(!(a.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)r=t,t=0,i=e.length;else if("function"==typeof i)r=i,i=e.length-t;else if("function"!=typeof r)throw new TypeError('"cb" argument must be a function');return u(t,e.length),f(i,t,e.length),d(e,t,i,r)},p.randomFillSync=function(e,t,i){void 0===t&&(t=0);if(!(a.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');u(t,e.length),void 0===i&&(i=e.length-t);return f(i,t,e.length),d(e,t,i)}):(p.randomFill=e,p.randomFillSync=e)}).call(this,i("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:176,randombytes:187,"safe-buffer":200}],189:[function(e,t,i){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":190}],190:[function(e,t,i){"use strict";var r=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};t.exports=f;var n=e("process-nextick-args"),a=e("core-util-is");a.inherits=e("inherits");var o=e("./_stream_readable"),s=e("./_stream_writable");a.inherits(f,o);for(var c=r(s.prototype),l=0;l<c.length;l++){var u=c[l];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(e){if(!(this instanceof f))return new f(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",d)}function d(){this.allowHalfOpen||this._writableState.ended||n(p,this)}function p(e){e.end()}},{"./_stream_readable":192,"./_stream_writable":194,"core-util-is":103,inherits:155,"process-nextick-args":175}],191:[function(e,t,i){"use strict";t.exports=a;var r=e("./_stream_transform"),n=e("core-util-is");function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}n.inherits=e("inherits"),n.inherits(a,r),a.prototype._transform=function(e,t,i){i(null,e)}},{"./_stream_transform":193,"core-util-is":103,inherits:155}],192:[function(A,T,e){(function(b){"use strict";T.exports=r;var g=A("process-nextick-args"),v=A("isarray"),d=A("buffer").Buffer;r.ReadableState=i;A("events");var n,_=function(e,t){return e.listeners(t).length};!function(){try{n=A("stream")}catch(e){}finally{n||(n=A("events").EventEmitter)}}();d=A("buffer").Buffer;var e=A("core-util-is");e.inherits=A("inherits");var a,o,t=A("util"),y=void 0;function i(e,t){o=o||A("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,t instanceof o&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.buffer=[],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.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=A("string_decoder/").StringDecoder),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function r(e){if(o=o||A("./_stream_duplex"),!(this instanceof r))return new r(e);this._readableState=new i(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),n.call(this)}function s(e,t,i,r,n){var a,o,s,c=function(e,t){var i=null;d.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));return i}(t,i);if(c)e.emit("error",c);else if(null===i)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,f(e)}(e,t);else if(t.objectMode||i&&0<i.length)if(t.ended&&!n){var l=new Error("stream.push() after EOF");e.emit("error",l)}else if(t.endEmitted&&n){l=new Error("stream.unshift() after end event");e.emit("error",l)}else{var u;!t.decoder||n||r||(i=t.decoder.write(i),u=!t.objectMode&&0===i.length),n||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&f(e))),a=e,(o=t).readingMore||(o.readingMore=!0,g(p,a,o))}else n||(t.reading=!1);return!(s=t).ended&&(s.needReadable||s.length<s.highWaterMark||0===s.length)}y=t&&t.debuglog?t.debuglog("stream"):function(){},e.inherits(r,n),r.prototype.push=function(e,t){var i=this._readableState;return i.objectMode||"string"!=typeof e||(t=t||i.defaultEncoding)!==i.encoding&&(e=new d(e,t),t=""),s(this,i,e,t,!1)},r.prototype.unshift=function(e){return s(this,this._readableState,e,"",!0)},r.prototype.isPaused=function(){return!1===this._readableState.flowing},r.prototype.setEncoding=function(e){return a||(a=A("string_decoder/").StringDecoder),this._readableState.decoder=new a(e),this._readableState.encoding=e,this};var c=8388608;function l(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=(c<=(i=e)?i=c:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e);var i}function f(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(y("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?g(u,e):u(e))}function u(e){y("emit readable"),e.emit("readable"),E(e)}function p(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(y("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function h(e){y("readable nexttick read 0"),e.read(0)}function m(e,t){t.reading||(y("resume read 0"),e.read(0)),t.resumeScheduled=!1,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;if(y("flow",t.flowing),t.flowing)do{var i=e.read()}while(null!==i&&t.flowing)}function w(e,t){var i,r=t.buffer,n=t.length,a=!!t.decoder,o=!!t.objectMode;if(0===r.length)return null;if(0===n)i=null;else if(o)i=r.shift();else if(!e||n<=e)i=a?r.join(""):1===r.length?r[0]:d.concat(r,n),r.length=0;else{if(e<r[0].length)i=(u=r[0]).slice(0,e),r[0]=u.slice(e);else if(e===r[0].length)i=r.shift();else{i=a?"":new d(e);for(var s=0,c=0,l=r.length;c<l&&s<e;c++){var u=r[0],f=Math.min(e-s,u.length);a?i+=u.slice(0,f):u.copy(i,s,0,f),f<u.length?r[0]=u.slice(f):r.shift(),s+=f}}}return i}function S(e){var t=e._readableState;if(0<t.length)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,g(x,t,e))}function x(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}r.prototype.read=function(e){y("read",e);var t=this._readableState,i=e;if(("number"!=typeof e||0<e)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return y("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?S(this):f(this),null;if(0===(e=l(e,t))&&t.ended)return 0===t.length&&S(this),null;var r,n=t.needReadable;return y("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&y("length less than watermark",n=!0),(t.ended||t.reading)&&y("reading or ended",n=!1),n&&(y("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),n&&!t.reading&&(e=l(i,t)),null===(r=0<e?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),i!==e&&t.ended&&0===t.length&&S(this),null!==r&&this.emit("data",r),r},r.prototype._read=function(e){this.emit("error",new Error("not implemented"))},r.prototype.pipe=function(t,e){var i=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,y("pipe count=%d opts=%j",r.pipesCount,e);var n=(!e||!1!==e.end)&&t!==b.stdout&&t!==b.stderr?o:u;function a(e){y("onunpipe"),e===i&&u()}function o(){y("onend"),t.end()}r.endEmitted?g(n):i.once("end",n),t.on("unpipe",a);var s,c=(s=i,function(){var e=s._readableState;y("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&_(s,"data")&&(e.flowing=!0,E(s))});t.on("drain",c);var l=!1;function u(){y("cleanup"),t.removeListener("close",p),t.removeListener("finish",h),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",a),i.removeListener("end",o),i.removeListener("end",u),i.removeListener("data",f),l=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function f(e){y("ondata"),!1===t.write(e)&&(1!==r.pipesCount||r.pipes[0]!==t||1!==i.listenerCount("data")||l||(y("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++),i.pause())}function d(e){y("onerror",e),m(),t.removeListener("error",d),0===_(t,"error")&&t.emit("error",e)}function p(){t.removeListener("finish",h),m()}function h(){y("onfinish"),t.removeListener("close",p),m()}function m(){y("unpipe"),i.unpipe(t)}return i.on("data",f),t._events&&t._events.error?v(t._events.error)?t._events.error.unshift(d):t._events.error=[d,t._events.error]:t.on("error",d),t.once("close",p),t.once("finish",h),t.emit("pipe",i),r.flowing||(y("pipe resume"),i.resume()),t},r.prototype.unpipe=function(e){var t=this._readableState;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)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n<r;n++)i[n].emit("unpipe",this);return this}var a=function(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},r.prototype.addListener=r.prototype.on=function(e,t){var i=n.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&!this._readableState.endEmitted){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&f(this):g(h,this))}return i},r.prototype.resume=function(){var e,t,i=this._readableState;return i.flowing||(y("resume"),i.flowing=!0,e=this,(t=i).resumeScheduled||(t.resumeScheduled=!0,g(m,e,t))),this},r.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this},r.prototype.wrap=function(t){var i=this._readableState,r=!1,n=this;for(var e in t.on("end",function(){if(y("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),t.on("data",function(e){(y("wrapped data"),i.decoder&&(e=i.decoder.write(e)),i.objectMode&&null==e)||(i.objectMode||e&&e.length)&&(n.push(e)||(r=!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));return function(e,t){for(var i=0,r=e.length;i<r;i++)t(e[i],i)}(["error","close","destroy","pause","resume"],function(e){t.on(e,n.emit.bind(n,e))}),n._read=function(e){y("wrapped _read",e),r&&(r=!1,t.resume())},n},r._fromList=w}).call(this,A("_process"))},{"./_stream_duplex":190,_process:176,buffer:100,"core-util-is":103,events:136,inherits:155,isarray:157,"process-nextick-args":175,"string_decoder/":226,util:69}],193:[function(e,t,i){"use strict";t.exports=o;var r=e("./_stream_duplex"),n=e("core-util-is");function a(i){this.afterTransform=function(e,t){return function(e,t,i){var r=e._transformState;r.transforming=!1;var n=r.writecb;if(!n)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,(r.writecb=null)!=i&&e.push(i);n(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(i,e,t)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState=new a(this);var t=this;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.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var i=e._writableState,r=e._transformState;if(i.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}n.inherits=e("inherits"),n.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,i){throw new Error("not implemented")},o.prototype._write=function(e,t,i){var r=this._transformState;if(r.writecb=i,r.writechunk=e,r.writeencoding=t,!r.transforming){var n=this._readableState;(r.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},o.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}},{"./_stream_duplex":190,"core-util-is":103,inherits:155}],194:[function(y,E,e){(function(e,t){"use strict";E.exports=u;var c=y("process-nextick-args"),s=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?t:c,f=y("buffer").Buffer;u.WritableState=o;var i=y("core-util-is");i.inherits=y("inherits");var r,n={deprecate:y("util-deprecate")};!function(){try{r=y("stream")}catch(e){}finally{r||(r=y("events").EventEmitter)}}();var a;f=y("buffer").Buffer;function l(){}function d(e,t,i){this.chunk=e,this.encoding=t,this.callback=i,this.next=null}function o(e,t){a=a||y("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,t instanceof a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1;var n=(this.finished=!1)===e.decodeStrings;this.decodeStrings=!n,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 i=e._writableState,r=i.sync,n=i.writecb;if(o=i,o.writing=!1,o.writecb=null,o.length-=o.writelen,o.writelen=0,t)!function(e,t,i,r,n){--t.pendingcb,i?c(n,r):n(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,i,r,t,n);else{var a=b(i);a||i.corked||i.bufferProcessing||!i.bufferedRequest||m(e,i),r?s(h,e,i,a,n):h(e,i,a,n)}var o}(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 _(this),this.corkedRequestsFree.next=new _(this)}function u(e){if(a=a||y("./_stream_duplex"),!(this instanceof u||this instanceof a))return new u(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),r.call(this)}function p(e,t,i,r,n,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,i?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function h(e,t,i,r){var n,a;i||(n=e,0===(a=t).length&&a.needDrain&&(a.needDrain=!1,n.emit("drain"))),t.pendingcb--,r(),v(e,t)}function m(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var r=t.bufferedRequestCount,n=new Array(r),a=t.corkedRequestsFree;a.entry=i;for(var o=0;i;)i=(n[o]=i).next,o+=1;p(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,t.corkedRequestsFree=a.next,a.next=null}else{for(;i;){var s=i.chunk,c=i.encoding,l=i.callback;if(p(e,t,!1,t.objectMode?1:s.length,s,c,l),i=i.next,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=i,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function g(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function v(e,t){var i=b(t);return i&&(0===t.pendingcb?(g(e,t),t.finished=!0,e.emit("finish")):g(e,t)),i}function _(r){var n=this;this.next=null,this.entry=null,this.finish=function(e){var t=n.entry;for(n.entry=null;t;){var i=t.callback;r.pendingcb--,i(e),t=t.next}r.corkedRequestsFree?r.corkedRequestsFree.next=n:r.corkedRequestsFree=n}}i.inherits(u,r),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(o.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}(),u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},u.prototype.write=function(e,t,i){var r,n,a,o=this._writableState,s=!1;return"function"==typeof t&&(i=t,t=null),f.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof i&&(i=l),o.ended?(r=this,n=i,a=new Error("write after end"),r.emit("error",a),c(n,a)):function(e,t,i,r){var n=!0;if(!f.isBuffer(i)&&"string"!=typeof i&&null!=i&&!t.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");e.emit("error",a),c(r,a),n=!1}return n}(this,o,e,i)&&(o.pendingcb++,s=function(e,t,i,r,n){a=t,o=i,s=r,a.objectMode||!1===a.decodeStrings||"string"!=typeof o||(o=new f(o,s)),i=o,f.isBuffer(i)&&(r="buffer");var a,o,s;var c=t.objectMode?1:i.length;t.length+=c;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest=new d(i,r,n),u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else p(e,t,!1,c,i,r,n);return l}(this,o,e,t,i)),s},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||m(this,e))},u.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);this._writableState.defaultEncoding=e},u.prototype._write=function(e,t,i){i(new Error("not implemented"))},u.prototype._writev=null,u.prototype.end=function(e,t,i){var r=this._writableState;"function"==typeof e?(i=e,t=e=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,i){t.ending=!0,v(e,t),i&&(t.finished?c(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,r,i)}}).call(this,y("_process"),y("timers").setImmediate)},{"./_stream_duplex":190,_process:176,buffer:100,"core-util-is":103,events:136,inherits:155,"process-nextick-args":175,timers:227,"util-deprecate":232}],195:[function(e,t,i){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":191}],196:[function(e,t,i){var r=function(){try{return e("stream")}catch(e){}}();(i=t.exports=e("./lib/_stream_readable.js")).Stream=r||i,(i.Readable=i).Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":190,"./lib/_stream_passthrough.js":191,"./lib/_stream_readable.js":192,"./lib/_stream_transform.js":193,"./lib/_stream_writable.js":194}],197:[function(e,t,i){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":193}],198:[function(e,t,i){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":194}],199:[function(e,t,i){"use strict";var r=e("buffer").Buffer,n=e("inherits"),a=e("hash-base"),b=new Array(16),g=[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],v=[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],_=[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],y=[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],E=[0,1518500249,1859775393,2400959708,2840853838],w=[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 S(e,t){return e<<t|e>>>32-t}function x(e,t,i,r,n,a,o,s){return S(e+(t^i^r)+a+o|0,s)+n|0}function A(e,t,i,r,n,a,o,s){return S(e+(t&i|~t&r)+a+o|0,s)+n|0}function T(e,t,i,r,n,a,o,s){return S(e+((t|~i)^r)+a+o|0,s)+n|0}function I(e,t,i,r,n,a,o,s){return S(e+(t&r|i&~r)+a+o|0,s)+n|0}function N(e,t,i,r,n,a,o,s){return S(e+(t^(i|~r))+a+o|0,s)+n|0}n(o,a),o.prototype._update=function(){for(var e=b,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var i=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,o=0|this._e,s=0|this._a,c=0|this._b,l=0|this._c,u=0|this._d,f=0|this._e,d=0;d<80;d+=1){var p,h;d<16?(p=x(i,r,n,a,o,e[g[d]],E[0],_[d]),h=N(s,c,l,u,f,e[v[d]],w[0],y[d])):d<32?(p=A(i,r,n,a,o,e[g[d]],E[1],_[d]),h=I(s,c,l,u,f,e[v[d]],w[1],y[d])):d<48?(p=T(i,r,n,a,o,e[g[d]],E[2],_[d]),h=T(s,c,l,u,f,e[v[d]],w[2],y[d])):d<64?(p=I(i,r,n,a,o,e[g[d]],E[3],_[d]),h=A(s,c,l,u,f,e[v[d]],w[3],y[d])):(p=N(i,r,n,a,o,e[g[d]],E[4],_[d]),h=x(s,c,l,u,f,e[v[d]],w[4],y[d])),i=o,o=a,a=S(n,10),n=r,r=p,s=f,f=u,u=S(l,10),l=c,c=h}var m=this._b+n+u|0;this._b=this._c+a+f|0,this._c=this._d+o+s|0,this._d=this._e+i+c|0,this._e=this._a+r+l|0,this._a=m},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=r.alloc?r.alloc(20):new r(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:100,"hash-base":139,inherits:155}],200:[function(e,t,i){var r=e("buffer"),n=r.Buffer;function a(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,i),i.Buffer=o),a(n,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:100}],201:[function(D,e,t){(function(B){!function(c){c.parser=function(e,t){return new r(e,t)},c.SAXParser=r,c.SAXStream=o,c.createStream=function(e,t){return new o(e,t)},c.MAX_BUFFER_LENGTH=65536;var l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function r(e,t){if(!(this instanceof r))return new r(e,t);var i=this;!function(e){for(var t=0,i=l.length;t<i;t++)e[l[t]]=""}(i),i.q=i.c="",i.bufferCheckPosition=c.MAX_BUFFER_LENGTH,i.opt=t||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!e,i.noscript=!(!e&&!i.opt.noscript),i.state=w.BEGIN,i.ENTITIES=Object.create(c.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=Object.create(g)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),S(i,"onready")}c.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){this.__proto__=e}return t.prototype=e,new t}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__}),Object.keys||(Object.keys=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);return t}),r.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);var i=0,r="";for(;t.c=r=e.charAt(i++);)switch(t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++),t.state){case w.BEGIN:"<"===r?(t.state=w.OPEN_WAKA,t.startTagPosition=t.position):E(u,r)&&(R(t,"Non-whitespace before first tag."),t.textNode=r,t.state=w.TEXT);continue;case w.TEXT:if(t.sawRoot&&!t.closedRoot){for(var n=i-1;r&&"<"!==r&&"&"!==r;)(r=e.charAt(i++))&&t.trackPosition&&(t.position++,"\n"===r?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(n,i-1)}"<"===r?(t.state=w.OPEN_WAKA,t.startTagPosition=t.position):(!E(u,r)||t.sawRoot&&!t.closedRoot||R(t,"Text data outside of root node."),"&"===r?t.state=w.TEXT_ENTITY:t.textNode+=r);continue;case w.SCRIPT:"<"===r?t.state=w.SCRIPT_ENDING:t.script+=r;continue;case w.SCRIPT_ENDING:"/"===r?t.state=w.CLOSE_TAG:(t.script+="<"+r,t.state=w.SCRIPT);continue;case w.OPEN_WAKA:if("!"===r)t.state=w.SGML_DECL,t.sgmlDecl="";else if(y(u,r));else if(y(v,r))t.state=w.OPEN_TAG,t.tagName=r;else if("/"===r)t.state=w.CLOSE_TAG,t.tagName="";else if("?"===r)t.state=w.PROC_INST,t.procInstName=t.procInstBody="";else{if(R(t,"Unencoded <"),t.startTagPosition+1<t.position){var a=t.position-t.startTagPosition;r=new Array(a).join(" ")+r}t.textNode+="<"+r,t.state=w.TEXT}continue;case w.SGML_DECL:(t.sgmlDecl+r).toUpperCase()===h?(x(t,"onopencdata"),t.state=w.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+r==="--"?(t.state=w.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+r).toUpperCase()===m?(t.state=w.DOCTYPE,(t.doctype||t.sawRoot)&&R(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===r?(x(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=w.TEXT):(y(f,r)&&(t.state=w.SGML_DECL_QUOTED),t.sgmlDecl+=r);continue;case w.SGML_DECL_QUOTED:r===t.q&&(t.state=w.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case w.DOCTYPE:">"===r?(t.state=w.TEXT,x(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=w.DOCTYPE_DTD:y(f,r)&&(t.state=w.DOCTYPE_QUOTED,t.q=r));continue;case w.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=w.DOCTYPE:y(f,r)&&(t.state=w.DOCTYPE_DTD_QUOTED,t.q=r);continue;case w.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=w.DOCTYPE_DTD,t.q="");continue;case w.COMMENT:"-"===r?t.state=w.COMMENT_ENDING:t.comment+=r;continue;case w.COMMENT_ENDING:"-"===r?(t.state=w.COMMENT_ENDED,t.comment=T(t.opt,t.comment),t.comment&&x(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==r?(R(t,"Malformed comment"),t.comment+="--"+r,t.state=w.COMMENT):t.state=w.TEXT;continue;case w.CDATA:"]"===r?t.state=w.CDATA_ENDING:t.cdata+=r;continue;case w.CDATA_ENDING:"]"===r?t.state=w.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===r?(t.cdata&&x(t,"oncdata",t.cdata),x(t,"onclosecdata"),t.cdata="",t.state=w.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=w.CDATA);continue;case w.PROC_INST:"?"===r?t.state=w.PROC_INST_ENDING:y(u,r)?t.state=w.PROC_INST_BODY:t.procInstName+=r;continue;case w.PROC_INST_BODY:if(!t.procInstBody&&y(u,r))continue;"?"===r?t.state=w.PROC_INST_ENDING:t.procInstBody+=r;continue;case w.PROC_INST_ENDING:">"===r?(x(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=w.TEXT):(t.procInstBody+="?"+r,t.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:y(_,r)?t.tagName+=r:(O(t),">"===r?L(t):"/"===r?t.state=w.OPEN_TAG_SLASH:(E(u,r)&&R(t,"Invalid character in tag name"),t.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:">"===r?(L(t,!0),k(t)):(R(t,"Forward-slash in opening tag not followed by >"),t.state=w.ATTRIB);continue;case w.ATTRIB:if(y(u,r))continue;">"===r?L(t):"/"===r?t.state=w.OPEN_TAG_SLASH:y(v,r)?(t.attribName=r,t.attribValue="",t.state=w.ATTRIB_NAME):R(t,"Invalid attribute name");continue;case w.ATTRIB_NAME:"="===r?t.state=w.ATTRIB_VALUE:">"===r?(R(t,"Attribute without value"),t.attribValue=t.attribName,C(t),L(t)):y(u,r)?t.state=w.ATTRIB_NAME_SAW_WHITE:y(_,r)?t.attribName+=r:R(t,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=w.ATTRIB_VALUE;else{if(y(u,r))continue;R(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",x(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?L(t):y(v,r)?(t.attribName=r,t.state=w.ATTRIB_NAME):(R(t,"Invalid attribute name"),t.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:if(y(u,r))continue;y(f,r)?(t.q=r,t.state=w.ATTRIB_VALUE_QUOTED):(R(t,"Unquoted attribute value"),t.state=w.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case w.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=w.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}C(t),t.q="",t.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:y(u,r)?t.state=w.ATTRIB:">"===r?L(t):"/"===r?t.state=w.OPEN_TAG_SLASH:y(v,r)?(R(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=w.ATTRIB_NAME):R(t,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(E(p,r)){"&"===r?t.state=w.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}C(t),">"===r?L(t):t.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(t.tagName)">"===r?k(t):y(_,r)?t.tagName+=r:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=w.SCRIPT):(E(u,r)&&R(t,"Invalid tagname in closing tag"),t.state=w.CLOSE_TAG_SAW_WHITE);else{if(y(u,r))continue;E(v,r)?t.script?(t.script+="</"+r,t.state=w.SCRIPT):R(t,"Invalid tagname in closing tag."):t.tagName=r}continue;case w.CLOSE_TAG_SAW_WHITE:if(y(u,r))continue;">"===r?k(t):R(t,"Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:switch(t.state){case w.TEXT_ENTITY:var o=w.TEXT,s="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:var o=w.ATTRIB_VALUE_QUOTED,s="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:var o=w.ATTRIB_VALUE_UNQUOTED,s="attribValue"}";"===r?(t[s]+=P(t),t.entity="",t.state=o):y(d,r)?t.entity+=r:(R(t,"Invalid character entity"),t[s]+="&"+t.entity+r,t.entity="",t.state=o);continue;default:throw new Error(t,"Unknown state: "+t.state)}t.position>=t.bufferCheckPosition&&function(e){for(var t=Math.max(c.MAX_BUFFER_LENGTH,10),i=0,r=0,n=l.length;r<n;r++){var a=e[l[r]].length;if(t<a)switch(l[r]){case"textNode":A(e);break;case"cdata":x(e,"oncdata",e.cdata),e.cdata="";break;case"script":x(e,"onscript",e.script),e.script="";break;default:I(e,"Max buffer length exceeded: "+l[r])}i=Math.max(i,a)}e.bufferCheckPosition=c.MAX_BUFFER_LENGTH-i+e.position}(t);return t},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;A(e=this),""!==e.cdata&&(x(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(x(e,"onscript",e.script),e.script="")}};try{var n=D("stream").Stream}catch(e){n=function(){}}var a=c.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 r(e,t),this.writable=!0,this.readable=!0;var i=this;this._parser.onend=function(){i.emit("end")},this._parser.onerror=function(e){i.emit("error",e),i._parser.error=null},this._decoder=null,a.forEach(function(t){Object.defineProperty(i,"on"+t,{get:function(){return i._parser["on"+t]},set:function(e){if(!e)return i.removeAllListeners(t),i._parser["on"+t]=e;i.on(t,e)},enumerable:!0,configurable:!1})})}(o.prototype=Object.create(n.prototype,{constructor:{value:o}})).write=function(e){if("function"==typeof B&&"function"==typeof B.isBuffer&&B.isBuffer(e)){if(!this._decoder){var t=D("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 i=this;return i._parser["on"+t]||-1===a.indexOf(t)||(i._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),i.emit.apply(i,e)}),n.prototype.on.call(i,t,e)};var u="\r\n\t ",e="0124356789",t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",f="'\"",d=e+t+"#",p=u+">",h="[CDATA[",m="DOCTYPE",s="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",g={xml:s,xmlns:b};u=i(u),e=i(e),t=i(t);var 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]/,_=/[:_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 i(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}function y(e,t){return i=e,"[object RegExp]"===Object.prototype.toString.call(i)?!!t.match(e):e[t];var i}function E(e,t){return!y(e,t)}f=i(f),d=i(d),p=i(p);var w=0;for(var w in c.STATE={BEGIN:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},c.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(c.ENTITIES).forEach(function(e){var t=c.ENTITIES[e],i="number"==typeof t?String.fromCharCode(t):t;c.ENTITIES[e]=i}),c.STATE)c.STATE[c.STATE[w]]=w;function S(e,t,i){e[t]&&e[t](i)}function x(e,t,i){e.textNode&&A(e),S(e,t,i)}function A(e){e.textNode=T(e.opt,e.textNode),e.textNode&&S(e,"ontext",e.textNode),e.textNode=""}function T(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function I(e,t){return A(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.closedRoot||R(e,"Unclosed root tag"),e.state!==w.BEGIN&&e.state!==w.TEXT&&I(e,"Unexpected end"),A(e),e.c="",e.closed=!0,S(e,"onend"),r.call(e,e.strict,e.opt),e}function R(e,t){if("object"!=typeof e||!(e instanceof r))throw new Error("bad call to strictFail");e.strict&&I(e,t)}function O(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,i=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(i.ns=t.ns),e.attribList.length=0}function M(e,t){var i=e.indexOf(":")<0?["",e]:e.split(":"),r=i[0],n=i[1];return t&&"xmlns"===e&&(r="xmlns",n=""),{prefix:r,local:n}}function C(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))return e.attribName=e.attribValue="";if(e.opt.xmlns){var t=M(e.attribName,!0),i=t.prefix,r=t.local;if("xmlns"===i)if("xml"===r&&e.attribValue!==s)R(e,"xml: prefix must be bound to "+s+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==b)R(e,"xmlns: prefix must be bound to "+b+"\nActual: "+e.attribValue);else{var n=e.tag,a=e.tags[e.tags.length-1]||e;n.ns===a.ns&&(n.ns=Object.create(a.ns)),n.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,x(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}function L(t,e){if(t.opt.xmlns){var i=t.tag,r=M(t.tagName);i.prefix=r.prefix,i.local=r.local,i.uri=i.ns[r.prefix]||"",i.prefix&&!i.uri&&(R(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),i.uri=r.prefix);var n=t.tags[t.tags.length-1]||t;i.ns&&n.ns!==i.ns&&Object.keys(i.ns).forEach(function(e){x(t,"onopennamespace",{prefix:e,uri:i.ns[e]})});for(var a=0,o=t.attribList.length;a<o;a++){var s=t.attribList[a],c=s[0],l=s[1],u=M(c,!0),f=u.prefix,d=u.local,p=""==f?"":i.ns[f]||"",h={name:c,value:l,prefix:f,local:d,uri:p};f&&"xmlns"!=f&&!p&&(R(t,"Unbound namespace prefix: "+JSON.stringify(f)),h.uri=f),t.tag.attributes[c]=h,x(t,"onattribute",h)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),x(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=w.TEXT:t.state=w.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function k(i){if(!i.tagName)return R(i,"Weird empty close tag."),i.textNode+="</>",void(i.state=w.TEXT);if(i.script){if("script"!==i.tagName)return i.script+="</"+i.tagName+">",i.tagName="",void(i.state=w.SCRIPT);x(i,"onscript",i.script),i.script=""}var e=i.tags.length,t=i.tagName;i.strict||(t=t[i.looseCase]());for(var r=t;e--;){if(i.tags[e].name===r)break;R(i,"Unexpected close tag")}if(e<0)return R(i,"Unmatched closing tag: "+i.tagName),i.textNode+="</"+i.tagName+">",void(i.state=w.TEXT);i.tagName=t;for(var n=i.tags.length;n-- >e;){var a=i.tag=i.tags.pop();i.tagName=i.tag.name,x(i,"onclosetag",i.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var c=i.tags[i.tags.length-1]||i;i.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach(function(e){var t=a.ns[e];x(i,"onclosenamespace",{prefix:e,uri:t})})}0===e&&(i.closedRoot=!0),i.tagName=i.attribValue=i.attribName="",i.attribList.length=0,i.state=w.TEXT}function P(e){var t,i=e.entity,r=i.toLowerCase(),n="";return e.ENTITIES[i]?e.ENTITIES[i]:e.ENTITIES[r]?e.ENTITIES[r]:("#"===(i=r).charAt(0)&&("x"===i.charAt(1)?(i=i.slice(2),n=(t=parseInt(i,16)).toString(16)):(i=i.slice(1),n=(t=parseInt(i,10)).toString(10))),i=i.replace(/^0+/,""),n.toLowerCase()!==i?(R(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCharCode(t))}w=c.STATE}(void 0===t?sax={}:t)}).call(this,D("buffer").Buffer)},{buffer:100,stream:210,string_decoder:98}],202:[function(e,t,i){var u=e("safe-buffer").Buffer;function r(e,t){this._block=u.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=u.from(e,t));for(var i=this._block,r=this._blockSize,n=e.length,a=this._len,o=0;o<n;){for(var s=a%r,c=Math.min(n-o,r-s),l=0;l<c;l++)i[s+l]=e[o+l];o+=c,(a+=c)%r==0&&this._update(i)}return this._len+=n,this},r.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var r=(4294967295&i)>>>0,n=(i-r)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},{"safe-buffer":200}],203:[function(e,t,i){(i=t.exports=function(e){e=e.toLowerCase();var t=i[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),i.sha1=e("./sha1"),i.sha224=e("./sha224"),i.sha256=e("./sha256"),i.sha384=e("./sha384"),i.sha512=e("./sha512")},{"./sha":204,"./sha1":205,"./sha224":206,"./sha256":207,"./sha384":208,"./sha512":209}],204:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,g=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}r(s,n),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,i,r,n,a,o,s=this._w,c=0|this._a,l=0|this._b,u=0|this._c,f=0|this._d,d=0|this._e,p=0;p<16;++p)s[p]=e.readInt32BE(4*p);for(;p<80;++p)s[p]=s[p-3]^s[p-8]^s[p-14]^s[p-16];for(var h=0;h<80;++h){var m=~~(h/20),b=0|((o=c)<<5|o>>>27)+(r=l,n=u,a=f,0===(i=m)?r&n|~r&a:2===i?r&n|r&a|n&a:r^n^a)+d+s[h]+g[m];d=f,f=u,u=(t=l)<<30|t>>>2,l=c,c=b}this._a=c+this._a|0,this._b=l+this._b|0,this._c=u+this._c|0,this._d=f+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":202,inherits:155,"safe-buffer":200}],205:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,v=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}r(s,n),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,i,r,n,a,o,s,c=this._w,l=0|this._a,u=0|this._b,f=0|this._c,d=0|this._d,p=0|this._e,h=0;h<16;++h)c[h]=e.readInt32BE(4*h);for(;h<80;++h)c[h]=(t=c[h-3]^c[h-8]^c[h-14]^c[h-16])<<1|t>>>31;for(var m=0;m<80;++m){var b=~~(m/20),g=0|((s=l)<<5|s>>>27)+(n=u,a=f,o=d,0===(r=b)?n&a|~n&o:2===r?n&a|n&o|a&o:n^a^o)+p+c[m]+v[b];p=d,d=f,f=(i=u)<<30|i>>>2,u=l,l=g}this._a=l+this._a|0,this._b=u+this._b|0,this._c=f+this._c|0,this._d=d+this._d|0,this._e=p+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":202,inherits:155,"safe-buffer":200}],206:[function(e,t,i){var r=e("inherits"),n=e("./sha256"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}r(c,n),c.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},c.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=c},{"./hash":202,"./sha256":207,inherits:155,"safe-buffer":200}],207:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,E=[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,n.call(this,64,56)}r(s,n),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,i,r,n,a,o,s,c=this._w,l=0|this._a,u=0|this._b,f=0|this._c,d=0|this._d,p=0|this._e,h=0|this._f,m=0|this._g,b=0|this._h,g=0;g<16;++g)c[g]=e.readInt32BE(4*g);for(;g<64;++g)c[g]=0|(((i=c[g-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)+c[g-7]+(((t=c[g-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+c[g-16];for(var v=0;v<64;++v){var _=b+(((s=p)>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+((o=m)^p&(h^o))+E[v]+c[v]|0,y=0|(((a=l)>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((r=l)&(n=u)|f&(r|n));b=m,m=h,h=p,p=d+_|0,d=f,f=u,u=l,l=_+y|0}this._a=l+this._a|0,this._b=u+this._b|0,this._c=f+this._c|0,this._d=d+this._d|0,this._e=p+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=b+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":202,inherits:155,"safe-buffer":200}],208:[function(e,t,i){var r=e("inherits"),n=e("./sha512"),a=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}r(c,n),c.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},c.prototype._hash=function(){var r=o.allocUnsafe(48);function e(e,t,i){r.writeInt32BE(e,i),r.writeInt32BE(t,i+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),r},t.exports=c},{"./hash":202,"./sha512":209,inherits:155,"safe-buffer":200}],209:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,ee=[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,n.call(this,128,112)}function te(e,t,i){return i^e&(t^i)}function ie(e,t,i){return e&t|i&(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 ae(e,t){return e>>>0<t>>>0?1:0}r(s,n),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,i,r,n,a,o,s,c,l=this._w,u=0|this._ah,f=0|this._bh,d=0|this._ch,p=0|this._dh,h=0|this._eh,m=0|this._fh,b=0|this._gh,g=0|this._hh,v=0|this._al,_=0|this._bl,y=0|this._cl,E=0|this._dl,w=0|this._el,S=0|this._fl,x=0|this._gl,A=0|this._hl,T=0;T<32;T+=2)l[T]=e.readInt32BE(4*T),l[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var I=l[T-30],N=l[T-30+1],R=((s=I)>>>1|(c=N)<<31)^(s>>>8|c<<24)^s>>>7,O=((a=N)>>>1|(o=I)<<31)^(a>>>8|o<<24)^(a>>>7|o<<25);I=l[T-4],N=l[T-4+1];var M=((r=I)>>>19|(n=N)<<13)^(n>>>29|r<<3)^r>>>6,C=((t=N)>>>19|(i=I)<<13)^(i>>>29|t<<3)^(t>>>6|i<<26),L=l[T-14],k=l[T-14+1],P=l[T-32],B=l[T-32+1],D=O+k|0,U=R+L+ae(D,O)|0;U=(U=U+M+ae(D=D+C|0,C)|0)+P+ae(D=D+B|0,B)|0,l[T]=U,l[T+1]=D}for(var j=0;j<160;j+=2){U=l[j],D=l[j+1];var F=ie(u,f,d),H=ie(v,_,y),q=re(u,v),z=re(v,u),G=ne(h,w),V=ne(w,h),Y=ee[j],K=ee[j+1],W=te(h,m,b),X=te(w,S,x),Z=A+V|0,$=g+G+ae(Z,A)|0;$=($=($=$+W+ae(Z=Z+X|0,X)|0)+Y+ae(Z=Z+K|0,K)|0)+U+ae(Z=Z+D|0,D)|0;var Q=z+H|0,J=q+F+ae(Q,z)|0;g=b,A=x,b=m,x=S,m=h,S=w,h=p+$+ae(w=E+Z|0,E)|0,p=d,E=y,d=f,y=_,f=u,_=v,u=$+J+ae(v=Z+Q|0,Z)|0}this._al=this._al+v|0,this._bl=this._bl+_|0,this._cl=this._cl+y|0,this._dl=this._dl+E|0,this._el=this._el+w|0,this._fl=this._fl+S|0,this._gl=this._gl+x|0,this._hl=this._hl+A|0,this._ah=this._ah+u+ae(this._al,v)|0,this._bh=this._bh+f+ae(this._bl,_)|0,this._ch=this._ch+d+ae(this._cl,y)|0,this._dh=this._dh+p+ae(this._dl,E)|0,this._eh=this._eh+h+ae(this._el,w)|0,this._fh=this._fh+m+ae(this._fl,S)|0,this._gh=this._gh+b+ae(this._gl,x)|0,this._hh=this._hh+g+ae(this._hl,A)|0},s.prototype._hash=function(){var r=a.allocUnsafe(64);function e(e,t,i){r.writeInt32BE(e,i),r.writeInt32BE(t,i+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),r},t.exports=s},{"./hash":202,inherits:155,"safe-buffer":200}],210:[function(e,t,i){t.exports=r;var u=e("events").EventEmitter;function r(){u.call(this)}e("inherits")(r,u),r.Readable=e("readable-stream/readable.js"),r.Writable=e("readable-stream/writable.js"),r.Duplex=e("readable-stream/duplex.js"),r.Transform=e("readable-stream/transform.js"),r.PassThrough=e("readable-stream/passthrough.js"),(r.Stream=r).prototype.pipe=function(t,e){var i=this;function r(e){t.writable&&!1===t.write(e)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),t.on("drain",n),t._isStdio||e&&!1===e.end||(i.on("end",o),i.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 c(e){if(l(),0===u.listenerCount(this,"error"))throw e}function l(){i.removeListener("data",r),t.removeListener("drain",n),i.removeListener("end",o),i.removeListener("close",s),i.removeListener("error",c),t.removeListener("error",c),i.removeListener("end",l),i.removeListener("close",l),t.removeListener("close",l)}return i.on("error",c),t.on("error",c),i.on("end",l),i.on("close",l),t.on("close",l),t.emit("pipe",i),t}},{events:136,inherits:155,"readable-stream/duplex.js":189,"readable-stream/passthrough.js":195,"readable-stream/readable.js":196,"readable-stream/transform.js":197,"readable-stream/writable.js":198}],211:[function(i,e,n){(function(c){var l=i("./lib/request"),e=i("./lib/response"),u=i("xtend"),t=i("builtin-status-codes"),f=i("url"),r=n;r.request=function(e,t){e="string"==typeof e?f.parse(e):u(e);var i=-1===c.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||i,n=e.hostname||e.host,a=e.port,o=e.path||"/";n&&-1!==n.indexOf(":")&&(n="["+n+"]"),e.url=(n?r+"//"+n:"")+(a?":"+a:"")+o,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var s=new l(e);return t&&s.on("response",t),s},r.get=function(e,t){var i=r.request(e,t);return i.end(),i},r.ClientRequest=l,r.IncomingMessage=e.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=t,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":213,"./lib/response":214,"builtin-status-codes":101,url:230,xtend:316}],212:[function(e,t,s){(function(e){s.fetch=o(e.fetch)&&o(e.ReadableStream),s.writableStream=o(e.WritableStream),s.abortController=o(e.AbortController),s.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),s.blobConstructor=!0}catch(e){}var t;function i(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function r(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var n=void 0!==e.ArrayBuffer,a=n&&o(e.ArrayBuffer.prototype.slice);function o(e){return"function"==typeof e}s.arraybuffer=s.fetch||n&&r("arraybuffer"),s.msstream=!s.fetch&&a&&r("ms-stream"),s.mozchunkedarraybuffer=!s.fetch&&n&&r("moz-chunked-arraybuffer"),s.overrideMimeType=s.fetch||!!i()&&o(i().overrideMimeType),s.vbArray=o(e.VBArray),t=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],213:[function(a,s,e){(function(c,l,u){var f=a("./capability"),e=a("inherits"),t=a("./response"),o=a("readable-stream"),d=a("to-arraybuffer"),i=t.IncomingMessage,p=t.readyStates;var r=s.exports=function(t){var e,i=this;o.Writable.call(i),i._opts=t,i._body=[],i._headers={},t.auth&&i.setHeader("Authorization","Basic "+new u(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){i.setHeader(e,t.headers[e])});var r,n,a=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!f.abortController)e=!(a=!1);else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!f.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}i._mode=(r=e,n=a,f.fetch&&n?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&r?"arraybuffer":f.vbArray&&r?"text:vbarray":"text"),i._fetchTimer=null,i.on("finish",function(){i._onFinish()})};e(r,o.Writable),r.prototype.setHeader=function(e,t){var i=e.toLowerCase();-1===n.indexOf(i)&&(this._headers[i]={name:e,value:t})},r.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},r.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},r.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,r=t._headers,i=null;"GET"!==e.method&&"HEAD"!==e.method&&(i=f.arraybuffer?d(u.concat(t._body)):f.blobConstructor?new l.Blob(t._body.map(function(e){return d(e)}),{type:(r["content-type"]||{}).value||""}):u.concat(t._body).toString());var n=[];if(Object.keys(r).forEach(function(e){var t=r[e].name,i=r[e].value;Array.isArray(i)?i.forEach(function(e){n.push([t,e])}):n.push([t,i])}),"fetch"===t._mode){var a=null;if(f.abortController){var o=new AbortController;a=o.signal,t._fetchAbortController=o,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=l.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout))}l.fetch(t._opts.url,{method:t._opts.method,headers:n,body:i||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:a}).then(function(e){t._fetchResponse=e,t._connect()},function(e){l.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)})}else{var s=t._xhr=new l.XMLHttpRequest;try{s.open(t._opts.method,t._opts.url,!0)}catch(e){return void c.nextTick(function(){t.emit("error",e)})}"responseType"in s&&(s.responseType=t._mode.split(":")[0]),"withCredentials"in s&&(s.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(s.timeout=e.requestTimeout,s.ontimeout=function(){t.emit("requestTimeout")}),n.forEach(function(e){s.setRequestHeader(e[0],e[1])}),t._response=null,s.onreadystatechange=function(){switch(s.readyState){case p.LOADING:case p.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(s.onprogress=function(){t._onXHRProgress()}),s.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{s.send(i)}catch(e){return void c.nextTick(function(){t.emit("error",e)})}}}},r.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},r.prototype._connect=function(){var t=this;t._destroyed||(t._response=new i(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},r.prototype._write=function(e,t,i){this._body.push(e),i()},r.prototype.abort=r.prototype.destroy=function(){this._destroyed=!0,l.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},r.prototype.end=function(e,t,i){"function"==typeof e&&(i=e,e=void 0),o.Writable.prototype.end.call(this,e,t,i)},r.prototype.flushHeaders=function(){},r.prototype.setTimeout=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var n=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":212,"./response":214,_process:176,buffer:100,inherits:155,"readable-stream":224,"to-arraybuffer":228}],214:[function(i,e,r){(function(l,u,f){var d=i("./capability"),e=i("inherits"),p=i("readable-stream"),s=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=r.IncomingMessage=function(e,t,i,r){var n=this;if(p.Readable.call(n),n._mode=i,n.headers={},n.rawHeaders=[],n.trailers={},n.rawTrailers=[],n.on("end",function(){l.nextTick(function(){n.emit("close")})}),"fetch"===i){if(n._fetchResponse=t,n.url=t.url,n.statusCode=t.status,n.statusMessage=t.statusText,t.headers.forEach(function(e,t){n.headers[t.toLowerCase()]=e,n.rawHeaders.push(t,e)}),d.writableStream){var a=new WritableStream({write:function(i){return new Promise(function(e,t){n._destroyed?t():n.push(new f(i))?e():n._resumeFetch=e})},close:function(){u.clearTimeout(r),n._destroyed||n.push(null)},abort:function(e){n._destroyed||n.emit("error",e)}});try{return void t.body.pipeTo(a).catch(function(e){u.clearTimeout(r),n._destroyed||n.emit("error",e)})}catch(e){}}var o=t.body.getReader();!function t(){o.read().then(function(e){if(!n._destroyed){if(e.done)return u.clearTimeout(r),void n.push(null);n.push(new f(e.value)),t()}}).catch(function(e){u.clearTimeout(r),n._destroyed||n.emit("error",e)})}()}else{if(n._xhr=e,n._pos=0,n.url=e.responseURL,n.statusCode=e.status,n.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var i=t[1].toLowerCase();"set-cookie"===i?(void 0===n.headers[i]&&(n.headers[i]=[]),n.headers[i].push(t[2])):void 0!==n.headers[i]?n.headers[i]+=", "+t[2]:n.headers[i]=t[2],n.rawHeaders.push(t[1],t[2])}}),n._charset="x-user-defined",!d.overrideMimeType){var s=n.rawHeaders["mime-type"];if(s){var c=s.match(/;\s*charset=([^;])(;|$)/);c&&(n._charset=c[1].toLowerCase())}n._charset||(n._charset="utf-8")}}};e(t,p.Readable),t.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var t=this,e=t._xhr,i=null;switch(t._mode){case"text:vbarray":if(e.readyState!==s.DONE)break;try{i=new u.VBArray(e.responseBody).toArray()}catch(e){}if(null!==i){t.push(new f(i));break}case"text":try{i=e.responseText}catch(e){t._mode="text:vbarray";break}if(i.length>t._pos){var r=i.substr(t._pos);if("x-user-defined"===t._charset){for(var n=new f(r.length),a=0;a<r.length;a++)n[a]=255&r.charCodeAt(a);t.push(n)}else t.push(r,t._charset);t._pos=i.length}break;case"arraybuffer":if(e.readyState!==s.DONE||!e.response)break;i=e.response,t.push(new f(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=e.response,e.readyState!==s.LOADING||!i)break;t.push(new f(new Uint8Array(i)));break;case"ms-stream":if(i=e.response,e.readyState!==s.LOADING)break;var o=new u.MSStreamReader;o.onprogress=function(){o.result.byteLength>t._pos&&(t.push(new f(new Uint8Array(o.result.slice(t._pos)))),t._pos=o.result.byteLength)},o.onload=function(){t.push(null)},o.readAsArrayBuffer(i)}t._xhr.readyState===s.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,i("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},i("buffer").Buffer)},{"./capability":212,_process:176,buffer:100,inherits:155,"readable-stream":224}],215:[function(e,t,i){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,i,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var n,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,i)});case 4:return s.nextTick(function(){e.call(null,t,i,r)});default:for(n=new Array(o-1),a=0;a<n.length;)n[a++]=arguments[a];return s.nextTick(function(){e.apply(null,n)})}}}:t.exports=s}).call(this,e("_process"))},{_process:176}],216:[function(e,t,i){"use strict";var r=e("process-nextick-args"),n=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};t.exports=f;var a=e("core-util-is");a.inherits=e("inherits");var o=e("./_stream_readable"),s=e("./_stream_writable");a.inherits(f,o);for(var c=n(s.prototype),l=0;l<c.length;l++){var u=c[l];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(e){if(!(this instanceof f))return new f(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",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.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)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":218,"./_stream_writable":220,"core-util-is":103,inherits:155,"process-nextick-args":215}],217:[function(e,t,i){"use strict";t.exports=a;var r=e("./_stream_transform"),n=e("core-util-is");function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}n.inherits=e("inherits"),n.inherits(a,r),a.prototype._transform=function(e,t,i){i(null,e)}},{"./_stream_transform":219,"core-util-is":103,inherits:155}],218:[function(L,k,e){(function(b,e){"use strict";var g=L("process-nextick-args");k.exports=d;var o,v=L("isarray");d.ReadableState=a;L("events").EventEmitter;var _=function(e,t){return e.listeners(t).length},n=L("./internal/streams/stream"),l=L("safe-buffer").Buffer,u=e.Uint8Array||function(){};var t=L("core-util-is");t.inherits=L("inherits");var i=L("util"),y=void 0;y=i&&i.debuglog?i.debuglog("stream"):function(){};var s,c=L("./internal/streams/BufferList"),r=L("./internal/streams/destroy");t.inherits(d,n);var f=["error","close","destroy","pause","resume"];function a(e,t){e=e||{};var i=t instanceof(o=o||L("./_stream_duplex"));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(n||0===n)?n:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new c,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=L("string_decoder/").StringDecoder),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function d(e){if(o=o||L("./_stream_duplex"),!(this instanceof d))return new d(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)),n.call(this)}function p(e,t,i,r,n){var a,o,s,c=e._readableState;null===t?(c.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,w(e)}(e,c)):(n||(a=function(e,t){var i;r=t,l.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));var r;return i}(c,t)),a?e.emit("error",a):c.objectMode||t&&0<t.length?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===l.prototype||(o=t,t=l.from(o)),r?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):h(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,c.decoder&&!i?(t=c.decoder.write(t),c.objectMode||0!==t.length?h(e,c,t,!1):x(e,c)):h(e,c,t,!1))):r||(c.reading=!1));return!(s=c).ended&&(s.needReadable||s.length<s.highWaterMark||0===s.length)}function h(e,t,i,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,r?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&w(e)),x(e,t)}Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),d.prototype.destroy=r.destroy,d.prototype._undestroy=r.undestroy,d.prototype._destroy=function(e,t){this.push(null),t(e)},d.prototype.push=function(e,t){var i,r=this._readableState;return r.objectMode?i=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),i=!0),p(this,e,t,!1,i)},d.prototype.unshift=function(e){return p(this,e,null,!0,!1)},d.prototype.isPaused=function(){return!1===this._readableState.flowing},d.prototype.setEncoding=function(e){return s||(s=L("string_decoder/").StringDecoder),this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var m=8388608;function E(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=(m<=(i=e)?i=m:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var i}function w(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(y("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?g.nextTick(S,e):S(e))}function S(e){y("emit readable"),e.emit("readable"),N(e)}function x(e,t){t.readingMore||(t.readingMore=!0,g.nextTick(A,e,t))}function A(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(y("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function T(e){y("readable nexttick read 0"),e.read(0)}function I(e,t){t.reading||(y("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(y("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():i?function(e,t){var i=t.head,r=1,n=i.data;e-=n.length;for(;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i).data=a.slice(o);break}++r}return t.length-=r,n}(e,t):function(e,t){var i=l.allocUnsafe(e),r=t.head,n=1;r.data.copy(i),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(i,i.length-e,0,o),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}(e,t);return r}(e,t.buffer,t.decoder),i);var i}function O(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,g.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}d.prototype.read=function(e){y("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return y("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):w(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&O(this),null;var r,n=t.needReadable;return y("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&y("length less than watermark",n=!0),t.ended||t.reading?y("reading or ended",n=!1):n&&(y("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(i,t))),null===(r=0<e?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&O(this)),null!==r&&this.emit("data",r),r},d.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},d.prototype.pipe=function(i,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=i;break;case 1:n.pipes=[n.pipes,i];break;default:n.pipes.push(i)}n.pipesCount+=1,y("pipe count=%d opts=%j",n.pipesCount,e);var t=(!e||!1!==e.end)&&i!==b.stdout&&i!==b.stderr?o:m;function a(e,t){y("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,y("cleanup"),i.removeListener("close",p),i.removeListener("finish",h),i.removeListener("drain",c),i.removeListener("error",d),i.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",m),r.removeListener("data",f),l=!0,!n.awaitDrain||i._writableState&&!i._writableState.needDrain||c())}function o(){y("onend"),i.end()}n.endEmitted?g.nextTick(t):r.once("end",t),i.on("unpipe",a);var s,c=(s=r,function(){var e=s._readableState;y("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&_(s,"data")&&(e.flowing=!0,N(s))});i.on("drain",c);var l=!1;var u=!1;function f(e){y("ondata"),(u=!1)!==i.write(e)||u||((1===n.pipesCount&&n.pipes===i||1<n.pipesCount&&-1!==C(n.pipes,i))&&!l&&(y("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,u=!0),r.pause())}function d(e){y("onerror",e),m(),i.removeListener("error",d),0===_(i,"error")&&i.emit("error",e)}function p(){i.removeListener("finish",h),m()}function h(){y("onfinish"),i.removeListener("close",p),m()}function m(){y("unpipe"),r.unpipe(i)}return r.on("data",f),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?v(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(i,"error",d),i.once("close",p),i.once("finish",h),i.emit("pipe",r),n.flowing||(y("pipe resume"),r.resume()),i},d.prototype.unpipe=function(e){var t=this._readableState,i={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,i)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)r[a].emit("unpipe",this,i);return this}var o=C(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i)),this},d.prototype.addListener=d.prototype.on=function(e,t){var i=n.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&w(this):g.nextTick(T,this))}return i},d.prototype.resume=function(){var e,t,i=this._readableState;return i.flowing||(y("resume"),i.flowing=!0,e=this,(t=i).resumeScheduled||(t.resumeScheduled=!0,g.nextTick(I,e,t))),this},d.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this},d.prototype.wrap=function(t){var i=this,r=this._readableState,n=!1;for(var e in t.on("end",function(){if(y("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&i.push(e)}i.push(null)}),t.on("data",function(e){(y("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e)||(r.objectMode||e&&e.length)&&(i.push(e)||(n=!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<f.length;a++)t.on(f[a],this.emit.bind(this,f[a]));return this._read=function(e){y("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),d._fromList=R}).call(this,L("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":216,"./internal/streams/BufferList":221,"./internal/streams/destroy":222,"./internal/streams/stream":223,_process:176,"core-util-is":103,events:136,inherits:155,isarray:157,"process-nextick-args":215,"safe-buffer":200,"string_decoder/":225,util:69}],219:[function(e,t,i){"use strict";t.exports=a;var r=e("./_stream_duplex"),n=e("core-util-is");function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:function(e,t){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,(i.writecb=null)!=t&&this.push(t),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.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 i=this;"function"==typeof this._flush?this._flush(function(e,t){s(i,e,t)}):s(this,null,null)}function s(e,t,i){if(t)return e.emit("error",t);if(null!=i&&e.push(i),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)}n.inherits=e("inherits"),n.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,i){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,i){var r=this._transformState;if(r.writecb=i,r.writechunk=e,r.writeencoding=t,!r.transforming){var n=this._readableState;(r.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.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 i=this;r.prototype._destroy.call(this,e,function(e){t(e),i.emit("close")})}},{"./_stream_duplex":216,"core-util-is":103,inherits:155}],220:[function(S,x,e){(function(e,t,i){"use strict";var g=S("process-nextick-args");function f(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var r=e.entry;e.entry=null;for(;r;){var n=r.callback;t.pendingcb--,n(i),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}x.exports=u;var s,d=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?i:g.nextTick;u.WritableState=l;var r=S("core-util-is");r.inherits=S("inherits");var n={deprecate:S("util-deprecate")},a=S("./internal/streams/stream"),v=S("safe-buffer").Buffer,_=t.Uint8Array||function(){};var o,c=S("./internal/streams/destroy");function y(){}function l(e,t){s=s||S("./_stream_duplex"),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(n||0===n)?n: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 i=e._writableState,r=i.sync,n=i.writecb;if(f=i,f.writing=!1,f.writecb=null,f.length-=f.writelen,f.writelen=0,t)o=e,s=i,c=r,l=t,u=n,--s.pendingcb,c?(g.nextTick(u,l),g.nextTick(w,o,s),o._writableState.errorEmitted=!0,o.emit("error",l)):(u(l),o._writableState.errorEmitted=!0,o.emit("error",l),w(o,s));else{var a=m(i);a||i.corked||i.bufferProcessing||!i.bufferedRequest||h(e,i),r?d(p,e,i,a,n):p(e,i,a,n)}var o,s,c,l,u;var f}(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 f(this)}function u(e){if(s=s||S("./_stream_duplex"),!(o.call(u,this)||this instanceof s))return new u(e);this._writableState=new l(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 E(e,t,i,r,n,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,i?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function p(e,t,i,r){var n,a;i||(n=e,0===(a=t).length&&a.needDrain&&(a.needDrain=!1,n.emit("drain"))),t.pendingcb--,r(),w(e,t)}function h(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var r=t.bufferedRequestCount,n=new Array(r),a=t.corkedRequestsFree;a.entry=i;for(var o=0,s=!0;i;)(n[o]=i).isBuf||(s=!1),i=i.next,o+=1;n.allBuffers=s,E(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new f(t),t.bufferedRequestCount=0}else{for(;i;){var c=i.chunk,l=i.encoding,u=i.callback;if(E(e,t,!1,t.objectMode?1:c.length,c,l,u),i=i.next,t.bufferedRequestCount--,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequest=i,t.bufferProcessing=!1}function m(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function b(t,i){t._final(function(e){i.pendingcb--,e&&t.emit("error",e),i.prefinished=!0,t.emit("prefinish"),w(t,i)})}function w(e,t){var i,r,n=m(t);return n&&(i=e,(r=t).prefinished||r.finalCalled||("function"==typeof i._final?(r.pendingcb++,r.finalCalled=!0,g.nextTick(b,i,r)):(r.prefinished=!0,i.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}r.inherits(u,a),l.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(l.prototype,"buffer",{get:n.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(u,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===u&&(e&&e._writableState instanceof l)}})):o=function(e){return e instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(e,t,i){var r,n,a,o,s,c,l,u,f,d,p,h=this._writableState,m=!1,b=!h.objectMode&&(r=e,v.isBuffer(r)||r instanceof _);return b&&!v.isBuffer(e)&&(n=e,e=v.from(n)),"function"==typeof t&&(i=t,t=null),b?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof i&&(i=y),h.ended?(f=this,d=i,p=new Error("write after end"),f.emit("error",p),g.nextTick(d,p)):(b||(a=this,o=h,c=i,u=!(l=!0),null===(s=e)?u=new TypeError("May not write null values to stream"):"string"==typeof s||void 0===s||o.objectMode||(u=new TypeError("Invalid non-string/buffer chunk")),u&&(a.emit("error",u),g.nextTick(c,u),l=!1),l))&&(h.pendingcb++,m=function(e,t,i,r,n,a){if(!i){var o=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=v.from(t,i));return t}(t,r,n);r!==o&&(i=!0,n="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:n,isBuf:i,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,r,n,a);return c}(this,h,b,e,t,i)),m},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||h(this,e))},u.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(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),u.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(e,t,i){var r=this._writableState;"function"==typeof e?(i=e,t=e=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,i){t.ending=!0,w(e,t),i&&(t.finished?g.nextTick(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,r,i)},Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),u.prototype.destroy=c.destroy,u.prototype._undestroy=c.undestroy,u.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("timers").setImmediate)},{"./_stream_duplex":216,"./internal/streams/destroy":222,"./internal/streams/stream":223,_process:176,"core-util-is":103,inherits:155,"process-nextick-args":215,"safe-buffer":200,timers:227,"util-deprecate":232}],221:[function(e,t,i){"use strict";var s=e("safe-buffer").Buffer,r=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.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},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},e.prototype.concat=function(e){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var t,i,r,n=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,i=n,r=o,t.copy(i,r),o+=a.data.length,a=a.next;return n},e}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":200,util:69}],222:[function(e,t,i){"use strict";var a=e("process-nextick-args");function o(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var i=this,r=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return r||n?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,i,e),i._writableState&&(i._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":215}],223:[function(e,t,i){t.exports=e("events").EventEmitter},{events:136}],224:[function(e,t,i){(((i=t.exports=e("./lib/_stream_readable.js")).Stream=i).Readable=i).Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":216,"./lib/_stream_passthrough.js":217,"./lib/_stream_readable.js":218,"./lib/_stream_transform.js":219,"./lib/_stream_writable.js":220}],225:[function(e,t,i){arguments[4][98][0].apply(i,arguments)},{dup:98,"safe-buffer":200}],226:[function(e,t,i){var r=e("buffer").Buffer,n=r.isEncoding||function(e){switch(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}};var a=i.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!n(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=o)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function o(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}a.prototype.write=function(e){for(var t="";this.charLength;){var i=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";if(e=e.slice(i,e.length),!(55296<=(n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var n;r=(t+=e.toString(this.encoding,0,r)).length-1;if(55296<=(n=t.charCodeAt(r))&&n<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,r)}return t},a.prototype.detectIncompleteChar=function(e){for(var t=3<=e.length?3:e.length;0<t;t--){var i=e[e.length-t];if(1==t&&i>>5==6){this.charLength=2;break}if(t<=2&&i>>4==14){this.charLength=3;break}if(t<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=t},a.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var i=this.charReceived,r=this.charBuffer,n=this.encoding;t+=r.slice(0,i).toString(n)}return t}},{buffer:100}],227:[function(c,e,l){(function(e,t){var r=c("process/browser.js").nextTick,i=Function.prototype.apply,n=Array.prototype.slice,a={},o=0;function s(e,t){this._id=e,this._clearFn=t}l.setTimeout=function(){return new s(i.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new s(i.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof e?e:function(e){var t=o++,i=!(arguments.length<2)&&n.call(arguments,1);return a[t]=!0,r(function(){a[t]&&(i?e.apply(null,i):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof t?t:function(e){delete a[e]}}).call(this,c("timers").setImmediate,c("timers").clearImmediate)},{"process/browser.js":176,timers:227}],228:[function(e,t,i){var n=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),i=e.length,r=0;r<i;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:100}],229:[function(e,q,z){(function(){var e=this,t=e._,r=Array.prototype,o=Object.prototype,i=Function.prototype,n=r.push,c=r.slice,f=o.toString,a=o.hasOwnProperty,s=Array.isArray,l=Object.keys,u=i.bind,d=Object.create,p=function(){},h=function(e){return e instanceof h?e:this instanceof h?void(this._wrapped=e):new h(e)};void 0!==z?(void 0!==q&&q.exports&&(z=q.exports=h),z._=h):e._=h,h.VERSION="1.8.3";var m=function(n,a,e){if(void 0===a)return n;switch(null==e?3:e){case 1:return function(e){return n.call(a,e)};case 2:return function(e,t){return n.call(a,e,t)};case 3:return function(e,t,i){return n.call(a,e,t,i)};case 4:return function(e,t,i,r){return n.call(a,e,t,i,r)}}return function(){return n.apply(a,arguments)}},b=function(e,t,i){return null==e?h.identity:h.isFunction(e)?m(e,t,i):h.isObject(e)?h.matcher(e):h.property(e)};h.iteratee=function(e,t){return b(e,t,1/0)};var g=function(c,l){return function(e){var t=arguments.length;if(t<2||null==e)return e;for(var i=1;i<t;i++)for(var r=arguments[i],n=c(r),a=n.length,o=0;o<a;o++){var s=n[o];l&&void 0!==e[s]||(e[s]=r[s])}return e}},v=function(e){if(!h.isObject(e))return{};if(d)return d(e);p.prototype=e;var t=new p;return p.prototype=null,t},_=function(t){return function(e){return null==e?void 0:e[t]}},y=Math.pow(2,53)-1,E=_("length"),w=function(e){var t=E(e);return"number"==typeof t&&0<=t&&t<=y};function S(s){return function(e,t,i,r){t=m(t,r,4);var n=!w(e)&&h.keys(e),a=(n||e).length,o=0<s?0:a-1;return arguments.length<3&&(i=e[n?n[o]:o],o+=s),function(e,t,i,r,n,a){for(;0<=n&&n<a;n+=s){var o=r?r[n]:n;i=t(i,e[o],o,e)}return i}(e,t,i,n,o,a)}}h.each=h.forEach=function(e,t,i){var r,n;if(t=m(t,i),w(e))for(r=0,n=e.length;r<n;r++)t(e[r],r,e);else{var a=h.keys(e);for(r=0,n=a.length;r<n;r++)t(e[a[r]],a[r],e)}return e},h.map=h.collect=function(e,t,i){t=b(t,i);for(var r=!w(e)&&h.keys(e),n=(r||e).length,a=Array(n),o=0;o<n;o++){var s=r?r[o]:o;a[o]=t(e[s],s,e)}return a},h.reduce=h.foldl=h.inject=S(1),h.reduceRight=h.foldr=S(-1),h.find=h.detect=function(e,t,i){var r;if(void 0!==(r=w(e)?h.findIndex(e,t,i):h.findKey(e,t,i))&&-1!==r)return e[r]},h.filter=h.select=function(e,r,t){var n=[];return r=b(r,t),h.each(e,function(e,t,i){r(e,t,i)&&n.push(e)}),n},h.reject=function(e,t,i){return h.filter(e,h.negate(b(t)),i)},h.every=h.all=function(e,t,i){t=b(t,i);for(var r=!w(e)&&h.keys(e),n=(r||e).length,a=0;a<n;a++){var o=r?r[a]:a;if(!t(e[o],o,e))return!1}return!0},h.some=h.any=function(e,t,i){t=b(t,i);for(var r=!w(e)&&h.keys(e),n=(r||e).length,a=0;a<n;a++){var o=r?r[a]:a;if(t(e[o],o,e))return!0}return!1},h.contains=h.includes=h.include=function(e,t,i,r){return w(e)||(e=h.values(e)),("number"!=typeof i||r)&&(i=0),0<=h.indexOf(e,t,i)},h.invoke=function(e,i){var r=c.call(arguments,2),n=h.isFunction(i);return h.map(e,function(e){var t=n?i:e[i];return null==t?t:t.apply(e,r)})},h.pluck=function(e,t){return h.map(e,h.property(t))},h.where=function(e,t){return h.filter(e,h.matcher(t))},h.findWhere=function(e,t){return h.find(e,h.matcher(t))},h.max=function(e,r,t){var i,n,a=-1/0,o=-1/0;if(null==r&&null!=e)for(var s=0,c=(e=w(e)?e:h.values(e)).length;s<c;s++)i=e[s],a<i&&(a=i);else r=b(r,t),h.each(e,function(e,t,i){n=r(e,t,i),(o<n||n===-1/0&&a===-1/0)&&(a=e,o=n)});return a},h.min=function(e,r,t){var i,n,a=1/0,o=1/0;if(null==r&&null!=e)for(var s=0,c=(e=w(e)?e:h.values(e)).length;s<c;s++)(i=e[s])<a&&(a=i);else r=b(r,t),h.each(e,function(e,t,i){((n=r(e,t,i))<o||n===1/0&&a===1/0)&&(a=e,o=n)});return a},h.shuffle=function(e){for(var t,i=w(e)?e:h.values(e),r=i.length,n=Array(r),a=0;a<r;a++)(t=h.random(0,a))!==a&&(n[a]=n[t]),n[t]=i[a];return n},h.sample=function(e,t,i){return null==t||i?(w(e)||(e=h.values(e)),e[h.random(e.length-1)]):h.shuffle(e).slice(0,Math.max(0,t))},h.sortBy=function(e,r,t){return r=b(r,t),h.pluck(h.map(e,function(e,t,i){return{value:e,index:t,criteria:r(e,t,i)}}).sort(function(e,t){var i=e.criteria,r=t.criteria;if(i!==r){if(r<i||void 0===i)return 1;if(i<r||void 0===r)return-1}return e.index-t.index}),"value")};var x=function(o){return function(r,n,e){var a={};return n=b(n,e),h.each(r,function(e,t){var i=n(e,t,r);o(a,e,i)}),a}};h.groupBy=x(function(e,t,i){h.has(e,i)?e[i].push(t):e[i]=[t]}),h.indexBy=x(function(e,t,i){e[i]=t}),h.countBy=x(function(e,t,i){h.has(e,i)?e[i]++:e[i]=1}),h.toArray=function(e){return e?h.isArray(e)?c.call(e):w(e)?h.map(e,h.identity):h.values(e):[]},h.size=function(e){return null==e?0:w(e)?e.length:h.keys(e).length},h.partition=function(e,r,t){r=b(r,t);var n=[],a=[];return h.each(e,function(e,t,i){(r(e,t,i)?n:a).push(e)}),[n,a]},h.first=h.head=h.take=function(e,t,i){if(null!=e)return null==t||i?e[0]:h.initial(e,e.length-t)},h.initial=function(e,t,i){return c.call(e,0,Math.max(0,e.length-(null==t||i?1:t)))},h.last=function(e,t,i){if(null!=e)return null==t||i?e[e.length-1]:h.rest(e,Math.max(0,e.length-t))},h.rest=h.tail=h.drop=function(e,t,i){return c.call(e,null==t||i?1:t)},h.compact=function(e){return h.filter(e,h.identity)};var A=function(e,t,i,r){for(var n=[],a=0,o=r||0,s=E(e);o<s;o++){var c=e[o];if(w(c)&&(h.isArray(c)||h.isArguments(c))){t||(c=A(c,t,i));var l=0,u=c.length;for(n.length+=u;l<u;)n[a++]=c[l++]}else i||(n[a++]=c)}return n};function T(a){return function(e,t,i){t=b(t,i);for(var r=E(e),n=0<a?0:r-1;0<=n&&n<r;n+=a)if(t(e[n],n,e))return n;return-1}}function I(a,o,s){return function(e,t,i){var r=0,n=E(e);if("number"==typeof i)0<a?r=0<=i?i:Math.max(i+n,r):n=0<=i?Math.min(i+1,n):i+n+1;else if(s&&i&&n)return e[i=s(e,t)]===t?i:-1;if(t!=t)return 0<=(i=o(c.call(e,r,n),h.isNaN))?i+r:-1;for(i=0<a?r:n-1;0<=i&&i<n;i+=a)if(e[i]===t)return i;return-1}}h.flatten=function(e,t){return A(e,t,!1)},h.without=function(e){return h.difference(e,c.call(arguments,1))},h.uniq=h.unique=function(e,t,i,r){h.isBoolean(t)||(r=i,i=t,t=!1),null!=i&&(i=b(i,r));for(var n=[],a=[],o=0,s=E(e);o<s;o++){var c=e[o],l=i?i(c,o,e):c;t?(o&&a===l||n.push(c),a=l):i?h.contains(a,l)||(a.push(l),n.push(c)):h.contains(n,c)||n.push(c)}return n},h.union=function(){return h.uniq(A(arguments,!0,!0))},h.intersection=function(e){for(var t=[],i=arguments.length,r=0,n=E(e);r<n;r++){var a=e[r];if(!h.contains(t,a)){for(var o=1;o<i&&h.contains(arguments[o],a);o++);o===i&&t.push(a)}}return t},h.difference=function(e){var t=A(arguments,!0,!0,1);return h.filter(e,function(e){return!h.contains(t,e)})},h.zip=function(){return h.unzip(arguments)},h.unzip=function(e){for(var t=e&&h.max(e,E).length||0,i=Array(t),r=0;r<t;r++)i[r]=h.pluck(e,r);return i},h.object=function(e,t){for(var i={},r=0,n=E(e);r<n;r++)t?i[e[r]]=t[r]:i[e[r][0]]=e[r][1];return i},h.findIndex=T(1),h.findLastIndex=T(-1),h.sortedIndex=function(e,t,i,r){for(var n=(i=b(i,r,1))(t),a=0,o=E(e);a<o;){var s=Math.floor((a+o)/2);i(e[s])<n?a=s+1:o=s}return a},h.indexOf=I(1,h.findIndex,h.sortedIndex),h.lastIndexOf=I(-1,h.findLastIndex),h.range=function(e,t,i){null==t&&(t=e||0,e=0),i=i||1;for(var r=Math.max(Math.ceil((t-e)/i),0),n=Array(r),a=0;a<r;a++,e+=i)n[a]=e;return n};var N=function(e,t,i,r,n){if(!(r instanceof t))return e.apply(i,n);var a=v(e.prototype),o=e.apply(a,n);return h.isObject(o)?o:a};h.bind=function(e,t){if(u&&e.bind===u)return u.apply(e,c.call(arguments,1));if(!h.isFunction(e))throw new TypeError("Bind must be called on a function");var i=c.call(arguments,2),r=function(){return N(e,r,t,this,i.concat(c.call(arguments)))};return r},h.partial=function(n){var a=c.call(arguments,1),o=function(){for(var e=0,t=a.length,i=Array(t),r=0;r<t;r++)i[r]=a[r]===h?arguments[e++]:a[r];for(;e<arguments.length;)i.push(arguments[e++]);return N(n,o,this,this,i)};return o},h.bindAll=function(e){var t,i,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)e[i=arguments[t]]=h.bind(e[i],e);return e},h.memoize=function(r,n){var a=function(e){var t=a.cache,i=""+(n?n.apply(this,arguments):e);return h.has(t,i)||(t[i]=r.apply(this,arguments)),t[i]};return a.cache={},a},h.delay=function(e,t){var i=c.call(arguments,2);return setTimeout(function(){return e.apply(null,i)},t)},h.defer=h.partial(h.delay,h,1),h.throttle=function(i,r,n){var a,o,s,c=null,l=0;n||(n={});var u=function(){l=!1===n.leading?0:h.now(),c=null,s=i.apply(a,o),c||(a=o=null)};return function(){var e=h.now();l||!1!==n.leading||(l=e);var t=r-(e-l);return a=this,o=arguments,t<=0||r<t?(c&&(clearTimeout(c),c=null),l=e,s=i.apply(a,o),c||(a=o=null)):c||!1===n.trailing||(c=setTimeout(u,t)),s}},h.debounce=function(t,i,r){var n,a,o,s,c,l=function(){var e=h.now()-s;e<i&&0<=e?n=setTimeout(l,i-e):(n=null,r||(c=t.apply(o,a),n||(o=a=null)))};return function(){o=this,a=arguments,s=h.now();var e=r&&!n;return n||(n=setTimeout(l,i)),e&&(c=t.apply(o,a),o=a=null),c}},h.wrap=function(e,t){return h.partial(t,e)},h.negate=function(e){return function(){return!e.apply(this,arguments)}},h.compose=function(){var i=arguments,r=i.length-1;return function(){for(var e=r,t=i[r].apply(this,arguments);e--;)t=i[e].call(this,t);return t}},h.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},h.before=function(e,t){var i;return function(){return 0<--e&&(i=t.apply(this,arguments)),e<=1&&(t=null),i}},h.once=h.partial(h.before,2);var R=!{toString:null}.propertyIsEnumerable("toString"),O=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function M(e,t){var i=O.length,r=e.constructor,n=h.isFunction(r)&&r.prototype||o,a="constructor";for(h.has(e,a)&&!h.contains(t,a)&&t.push(a);i--;)(a=O[i])in e&&e[a]!==n[a]&&!h.contains(t,a)&&t.push(a)}h.keys=function(e){if(!h.isObject(e))return[];if(l)return l(e);var t=[];for(var i in e)h.has(e,i)&&t.push(i);return R&&M(e,t),t},h.allKeys=function(e){if(!h.isObject(e))return[];var t=[];for(var i in e)t.push(i);return R&&M(e,t),t},h.values=function(e){for(var t=h.keys(e),i=t.length,r=Array(i),n=0;n<i;n++)r[n]=e[t[n]];return r},h.mapObject=function(e,t,i){t=b(t,i);for(var r,n=h.keys(e),a=n.length,o={},s=0;s<a;s++)o[r=n[s]]=t(e[r],r,e);return o},h.pairs=function(e){for(var t=h.keys(e),i=t.length,r=Array(i),n=0;n<i;n++)r[n]=[t[n],e[t[n]]];return r},h.invert=function(e){for(var t={},i=h.keys(e),r=0,n=i.length;r<n;r++)t[e[i[r]]]=i[r];return t},h.functions=h.methods=function(e){var t=[];for(var i in e)h.isFunction(e[i])&&t.push(i);return t.sort()},h.extend=g(h.allKeys),h.extendOwn=h.assign=g(h.keys),h.findKey=function(e,t,i){t=b(t,i);for(var r,n=h.keys(e),a=0,o=n.length;a<o;a++)if(t(e[r=n[a]],r,e))return r},h.pick=function(e,t,i){var r,n,a={},o=e;if(null==o)return a;h.isFunction(t)?(n=h.allKeys(o),r=m(t,i)):(n=A(arguments,!1,!1,1),r=function(e,t,i){return t in i},o=Object(o));for(var s=0,c=n.length;s<c;s++){var l=n[s],u=o[l];r(u,l,o)&&(a[l]=u)}return a},h.omit=function(e,t,i){if(h.isFunction(t))t=h.negate(t);else{var r=h.map(A(arguments,!1,!1,1),String);t=function(e,t){return!h.contains(r,t)}}return h.pick(e,t,i)},h.defaults=g(h.allKeys,!0),h.create=function(e,t){var i=v(e);return t&&h.extendOwn(i,t),i},h.clone=function(e){return h.isObject(e)?h.isArray(e)?e.slice():h.extend({},e):e},h.tap=function(e,t){return t(e),e},h.isMatch=function(e,t){var i=h.keys(t),r=i.length;if(null==e)return!r;for(var n=Object(e),a=0;a<r;a++){var o=i[a];if(t[o]!==n[o]||!(o in n))return!1}return!0};var C=function(e,t,i,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof h&&(e=e._wrapped),t instanceof h&&(t=t._wrapped);var n=f.call(e);if(n!==f.call(t))return!1;switch(n){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}var a="[object Array]"===n;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,s=t.constructor;if(o!==s&&!(h.isFunction(o)&&o instanceof o&&h.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(i=i||[]).length;c--;)if(i[c]===e)return r[c]===t;if(i.push(e),r.push(t),a){if((c=e.length)!==t.length)return!1;for(;c--;)if(!C(e[c],t[c],i,r))return!1}else{var l,u=h.keys(e);if(c=u.length,h.keys(t).length!==c)return!1;for(;c--;)if(l=u[c],!h.has(t,l)||!C(e[l],t[l],i,r))return!1}return i.pop(),r.pop(),!0};h.isEqual=function(e,t){return C(e,t)},h.isEmpty=function(e){return null==e||(w(e)&&(h.isArray(e)||h.isString(e)||h.isArguments(e))?0===e.length:0===h.keys(e).length)},h.isElement=function(e){return!(!e||1!==e.nodeType)},h.isArray=s||function(e){return"[object Array]"===f.call(e)},h.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},h.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){h["is"+t]=function(e){return f.call(e)==="[object "+t+"]"}}),h.isArguments(arguments)||(h.isArguments=function(e){return h.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(h.isFunction=function(e){return"function"==typeof e||!1}),h.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},h.isNaN=function(e){return h.isNumber(e)&&e!==+e},h.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)},h.isNull=function(e){return null===e},h.isUndefined=function(e){return void 0===e},h.has=function(e,t){return null!=e&&a.call(e,t)},h.noConflict=function(){return e._=t,this},h.identity=function(e){return e},h.constant=function(e){return function(){return e}},h.noop=function(){},h.property=_,h.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},h.matcher=h.matches=function(t){return t=h.extendOwn({},t),function(e){return h.isMatch(e,t)}},h.times=function(e,t,i){var r=Array(Math.max(0,e));t=m(t,i,1);for(var n=0;n<e;n++)r[n]=t(n);return r},h.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},h.now=Date.now||function(){return(new Date).getTime()};var L={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},k=h.invert(L),P=function(t){var i=function(e){return t[e]},e="(?:"+h.keys(t).join("|")+")",r=RegExp(e),n=RegExp(e,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(n,i):e}};h.escape=P(L),h.unescape=P(k),h.result=function(e,t,i){var r=null==e?void 0:e[t];return void 0===r&&(r=i),h.isFunction(r)?r.call(e):r};var B=0;h.uniqueId=function(e){var t=++B+"";return e?e+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var D=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},j=/\\|'|\r|\n|\u2028|\u2029/g,F=function(e){return"\\"+U[e]};h.template=function(a,e,t){!e&&t&&(e=t),e=h.defaults({},e,h.templateSettings);var i=RegExp([(e.escape||D).source,(e.interpolate||D).source,(e.evaluate||D).source].join("|")+"|$","g"),o=0,s="__p+='";a.replace(i,function(e,t,i,r,n){return s+=a.slice(o,n).replace(j,F),o=n+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":i?s+="'+\n((__t=("+i+"))==null?'':__t)+\n'":r&&(s+="';\n"+r+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var r=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}var n=function(e){return r.call(this,e,h)},c=e.variable||"obj";return n.source="function("+c+"){\n"+s+"}",n},h.chain=function(e){var t=h(e);return t._chain=!0,t};var H=function(e,t){return e._chain?h(t).chain():t};h.mixin=function(i){h.each(h.functions(i),function(e){var t=h[e]=i[e];h.prototype[e]=function(){var e=[this._wrapped];return n.apply(e,arguments),H(this,t.apply(h,e))}})},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=r[t];h.prototype[t]=function(){var e=this._wrapped;return i.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],H(this,e)}}),h.each(["concat","join","slice"],function(e){var t=r[e];h.prototype[e]=function(){return H(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return h})}).call(this)},{}],230:[function(e,t,i){"use strict";var L=e("punycode"),k=e("./util");function I(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}i.parse=a,i.resolve=function(e,t){return a(e,!1,!0).resolve(t)},i.resolveObject=function(e,t){return e?a(e,!1,!0).resolveObject(t):t},i.format=function(e){k.isString(e)&&(e=a(e));return e instanceof I?e.format():I.prototype.format.call(e)},i.Url=I;var P=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,B=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),D=["'"].concat(n),U=["%","/","?",";","#"].concat(D),j=["/","?","#"],F=/^[+a-z0-9A-Z_-]{0,63}$/,H=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,q={javascript:!0,"javascript:":!0},z={javascript:!0,"javascript:":!0},G={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},V=e("querystring");function a(e,t,i){if(e&&k.isObject(e)&&e instanceof I)return e;var r=new I;return r.parse(e,t,i),r}I.prototype.parse=function(e,t,i){if(!k.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),n=-1!==r&&r<e.indexOf("#")?"?":"#",a=e.split(n);a[0]=a[0].replace(/\\/g,"/");var o=e=a.join(n);if(o=o.trim(),!i&&1===e.split("#").length){var s=B.exec(o);if(s)return this.path=o,this.href=o,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?V.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=P.exec(o);if(c){var l=(c=c[0]).toLowerCase();this.protocol=l,o=o.substr(c.length)}if(i||c||o.match(/^\/\/[^@\/]+@[^@\/]+/)){var u="//"===o.substr(0,2);!u||c&&z[c]||(o=o.substr(2),this.slashes=!0)}if(!z[c]&&(u||c&&!G[c])){for(var f,d,p=-1,h=0;h<j.length;h++){-1!==(m=o.indexOf(j[h]))&&(-1===p||m<p)&&(p=m)}-1!==(d=-1===p?o.lastIndexOf("@"):o.lastIndexOf("@",p))&&(f=o.slice(0,d),o=o.slice(d+1),this.auth=decodeURIComponent(f)),p=-1;for(h=0;h<U.length;h++){var m;-1!==(m=o.indexOf(U[h]))&&(-1===p||m<p)&&(p=m)}-1===p&&(p=o.length),this.host=o.slice(0,p),o=o.slice(p),this.parseHost(),this.hostname=this.hostname||"";var b="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!b)for(var g=this.hostname.split(/\./),v=(h=0,g.length);h<v;h++){var _=g[h];if(_&&!_.match(F)){for(var y="",E=0,w=_.length;E<w;E++)127<_.charCodeAt(E)?y+="x":y+=_[E];if(!y.match(F)){var S=g.slice(0,h),x=g.slice(h+1),A=_.match(H);A&&(S.push(A[1]),x.unshift(A[2])),x.length&&(o="/"+x.join(".")+o),this.hostname=S.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),b||(this.hostname=L.toASCII(this.hostname));var T=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+T,this.href+=this.host,b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==o[0]&&(o="/"+o))}if(!q[l])for(h=0,v=D.length;h<v;h++){var N=D[h];if(-1!==o.indexOf(N)){var R=encodeURIComponent(N);R===N&&(R=escape(N)),o=o.split(N).join(R)}}var O=o.indexOf("#");-1!==O&&(this.hash=o.substr(O),o=o.slice(0,O));var M=o.indexOf("?");if(-1!==M?(this.search=o.substr(M),this.query=o.substr(M+1),t&&(this.query=V.parse(this.query)),o=o.slice(0,M)):t&&(this.search="",this.query={}),o&&(this.pathname=o),G[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){T=this.pathname||"";var C=this.search||"";this.path=T+C}return this.href=this.format(),this},I.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",i=this.pathname||"",r=this.hash||"",n=!1,a="";this.host?n=e+this.host:this.hostname&&(n=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&k.isObject(this.query)&&Object.keys(this.query).length&&(a=V.stringify(this.query));var o=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||G[t])&&!1!==n?(n="//"+(n||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):n||(n=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),t+n+(i=i.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(o=o.replace("#","%23"))+r},I.prototype.resolve=function(e){return this.resolveObject(a(e,!1,!0)).format()},I.prototype.resolveObject=function(e){if(k.isString(e)){var t=new I;t.parse(e,!1,!0),e=t}for(var i=new I,r=Object.keys(this),n=0;n<r.length;n++){var a=r[n];i[a]=this[a]}if(i.hash=e.hash,""===e.href)return i.href=i.format(),i;if(e.slashes&&!e.protocol){for(var o=Object.keys(e),s=0;s<o.length;s++){var c=o[s];"protocol"!==c&&(i[c]=e[c])}return G[i.protocol]&&i.hostname&&!i.pathname&&(i.path=i.pathname="/"),i.href=i.format(),i}if(e.protocol&&e.protocol!==i.protocol){if(!G[e.protocol]){for(var l=Object.keys(e),u=0;u<l.length;u++){var f=l[u];i[f]=e[f]}return i.href=i.format(),i}if(i.protocol=e.protocol,e.host||z[e.protocol])i.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),i.pathname=d.join("/")}if(i.search=e.search,i.query=e.query,i.host=e.host||"",i.auth=e.auth,i.hostname=e.hostname||e.host,i.port=e.port,i.pathname||i.search){var p=i.pathname||"",h=i.search||"";i.path=p+h}return i.slashes=i.slashes||e.slashes,i.href=i.format(),i}var m=i.pathname&&"/"===i.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),g=b||m||i.host&&e.pathname,v=g,_=i.pathname&&i.pathname.split("/")||[],y=(d=e.pathname&&e.pathname.split("/")||[],i.protocol&&!G[i.protocol]);if(y&&(i.hostname="",i.port=null,i.host&&(""===_[0]?_[0]=i.host:_.unshift(i.host)),i.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),g=g&&(""===d[0]||""===_[0])),b)i.host=e.host||""===e.host?e.host:i.host,i.hostname=e.hostname||""===e.hostname?e.hostname:i.hostname,i.search=e.search,i.query=e.query,_=d;else if(d.length)_||(_=[]),_.pop(),_=_.concat(d),i.search=e.search,i.query=e.query;else if(!k.isNullOrUndefined(e.search)){if(y)i.hostname=i.host=_.shift(),(A=!!(i.host&&0<i.host.indexOf("@"))&&i.host.split("@"))&&(i.auth=A.shift(),i.host=i.hostname=A.shift());return i.search=e.search,i.query=e.query,k.isNull(i.pathname)&&k.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i}if(!_.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var E=_.slice(-1)[0],w=(i.host||e.host||1<_.length)&&("."===E||".."===E)||""===E,S=0,x=_.length;0<=x;x--)"."===(E=_[x])?_.splice(x,1):".."===E?(_.splice(x,1),S++):S&&(_.splice(x,1),S--);if(!g&&!v)for(;S--;S)_.unshift("..");!g||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),w&&"/"!==_.join("/").substr(-1)&&_.push("");var A,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);y&&(i.hostname=i.host=T?"":_.length?_.shift():"",(A=!!(i.host&&0<i.host.indexOf("@"))&&i.host.split("@"))&&(i.auth=A.shift(),i.host=i.hostname=A.shift()));return(g=g||i.host&&_.length)&&!T&&_.unshift(""),_.length?i.pathname=_.join("/"):(i.pathname=null,i.path=null),k.isNull(i.pathname)&&k.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=e.auth||i.auth,i.slashes=i.slashes||e.slashes,i.href=i.format(),i},I.prototype.parseHost=function(){var e=this.host,t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":231,punycode:183,querystring:186}],231:[function(e,t,i){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],232:[function(e,t,i){(function(i){function r(e){try{if(!i.localStorage)return!1}catch(e){return!1}var t=i.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var i=!1;return function(){if(!i){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],233:[function(e,t,i){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],234:[function(d,e,I){(function(r,n){var s=/%[sdj%]/g;I.format=function(e){if(!y(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(c(arguments[i]));return t.join(" ")}i=1;for(var r=arguments,n=r.length,a=String(e).replace(s,function(e){if("%%"===e)return"%";if(n<=i)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}default:return e}}),o=r[i];i<n;o=r[++i])v(o)||!u(o)?a+=" "+o:a+=" "+c(o);return a},I.deprecate=function(e,t){if(E(n.process))return function(){return I.deprecate(e,t).apply(this,arguments)};if(!0===r.noDeprecation)return e;var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(t);r.traceDeprecation?console.trace(t):console.error(t),i=!0}return e.apply(this,arguments)}};var e,a={};function c(e,t){var i={seen:[],stylize:l};return 3<=arguments.length&&(i.depth=arguments[2]),4<=arguments.length&&(i.colors=arguments[3]),g(t)?i.showHidden=t:t&&I._extend(i,t),E(i.showHidden)&&(i.showHidden=!1),E(i.depth)&&(i.depth=2),E(i.colors)&&(i.colors=!1),E(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=o),p(i,e,i.depth)}function o(e,t){var i=c.styles[t];return i?"["+c.colors[i][0]+"m"+e+"["+c.colors[i][1]+"m":e}function l(e,t){return e}function p(t,i,r){if(t.customInspect&&i&&A(i.inspect)&&i.inspect!==I.inspect&&(!i.constructor||i.constructor.prototype!==i)){var e=i.inspect(r,t);return y(e)||(e=p(t,e,r)),e}var n=function(e,t){if(E(t))return e.stylize("undefined","undefined");if(y(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(_(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(t,i);if(n)return n;var a,o=Object.keys(i),s=(a={},o.forEach(function(e,t){a[e]=!0}),a);if(t.showHidden&&(o=Object.getOwnPropertyNames(i)),x(i)&&(0<=o.indexOf("message")||0<=o.indexOf("description")))return h(i);if(0===o.length){if(A(i)){var c=i.name?": "+i.name:"";return t.stylize("[Function"+c+"]","special")}if(w(i))return t.stylize(RegExp.prototype.toString.call(i),"regexp");if(S(i))return t.stylize(Date.prototype.toString.call(i),"date");if(x(i))return h(i)}var l,u="",f=!1,d=["{","}"];(b(i)&&(f=!0,d=["[","]"]),A(i))&&(u=" [Function"+(i.name?": "+i.name:"")+"]");return w(i)&&(u=" "+RegExp.prototype.toString.call(i)),S(i)&&(u=" "+Date.prototype.toUTCString.call(i)),x(i)&&(u=" "+h(i)),0!==o.length||f&&0!=i.length?r<0?w(i)?t.stylize(RegExp.prototype.toString.call(i),"regexp"):t.stylize("[Object]","special"):(t.seen.push(i),l=f?function(t,i,r,n,e){for(var a=[],o=0,s=i.length;o<s;++o)T(i,String(o))?a.push(m(t,i,r,n,String(o),!0)):a.push("");return e.forEach(function(e){e.match(/^\d+$/)||a.push(m(t,i,r,n,e,!0))}),a}(t,i,r,s,o):o.map(function(e){return m(t,i,r,s,e,f)}),t.seen.pop(),function(e,t,i){if(60<e.reduce(function(e,t){return 0,0<=t.indexOf("\n")&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0))return i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+i[1];return i[0]+t+" "+e.join(", ")+" "+i[1]}(l,u,d)):d[0]+u+d[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,i,r,n,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),T(r,n)||(o="["+n+"]"),s||(e.seen.indexOf(c.value)<0?-1<(s=v(i)?p(e,c.value,null):p(e,c.value,i-1)).indexOf("\n")&&(s=a?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),E(o)){if(a&&n.match(/^\d+$/))return s;(o=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function b(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function v(e){return null===e}function _(e){return"number"==typeof e}function y(e){return"string"==typeof e}function E(e){return void 0===e}function w(e){return u(e)&&"[object RegExp]"===t(e)}function u(e){return"object"==typeof e&&null!==e}function S(e){return u(e)&&"[object Date]"===t(e)}function x(e){return u(e)&&("[object Error]"===t(e)||e instanceof Error)}function A(e){return"function"==typeof e}function t(e){return Object.prototype.toString.call(e)}function i(e){return e<10?"0"+e.toString(10):e.toString(10)}I.debuglog=function(t){if(E(e)&&(e=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!a[t])if(new RegExp("\\b"+t+"\\b","i").test(e)){var i=r.pid;a[t]=function(){var e=I.format.apply(I,arguments);console.error("%s %d: %s",t,i,e)}}else a[t]=function(){};return a[t]},(I.inspect=c).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.isArray=b,I.isBoolean=g,I.isNull=v,I.isNullOrUndefined=function(e){return null==e},I.isNumber=_,I.isString=y,I.isSymbol=function(e){return"symbol"==typeof e},I.isUndefined=E,I.isRegExp=w,I.isObject=u,I.isDate=S,I.isError=x,I.isFunction=A,I.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},I.isBuffer=d("./support/isBuffer");var f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}I.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[i(e.getHours()),i(e.getMinutes()),i(e.getSeconds())].join(":"),[e.getDate(),f[e.getMonth()],t].join(" ")),I.format.apply(I,arguments))},I.inherits=d("inherits"),I._extend=function(e,t){if(!t||!u(t))return e;for(var i=Object.keys(t),r=i.length;r--;)e[i[r]]=t[i[r]];return e}}).call(this,d("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":233,_process:176,inherits:155}],235:[function(e,t,i){var r=e("./v1"),n=e("./v4"),a=n;a.v1=r,a.v4=n,t.exports=a},{"./v1":238,"./v4":239}],236:[function(e,t,i){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(e,t){var i=t||0,r=n;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].join("")}},{}],237:[function(e,t,i){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var a=new Array(16);t.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},{}],238:[function(e,t,i){var h,m,b=e("./lib/rng"),g=e("./lib/bytesToUuid"),v=0,_=0;t.exports=function(e,t,i){var r=t&&i||0,n=t||[],a=(e=e||{}).node||h,o=void 0!==e.clockseq?e.clockseq:m;if(null==a||null==o){var s=b();null==a&&(a=h=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==o&&(o=m=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:(new Date).getTime(),l=void 0!==e.nsecs?e.nsecs:_+1,u=c-v+(l-_)/1e4;if(u<0&&void 0===e.clockseq&&(o=o+1&16383),(u<0||v<c)&&void 0===e.nsecs&&(l=0),1e4<=l)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=c,m=o;var f=(1e4*(268435455&(c+=122192928e5))+(_=l))%4294967296;n[r++]=f>>>24&255,n[r++]=f>>>16&255,n[r++]=f>>>8&255,n[r++]=255&f;var d=c/4294967296*1e4&268435455;n[r++]=d>>>8&255,n[r++]=255&d,n[r++]=d>>>24&15|16,n[r++]=d>>>16&255,n[r++]=o>>>8|128,n[r++]=255&o;for(var p=0;p<6;++p)n[r+p]=a[p];return t||g(n)}},{"./lib/bytesToUuid":236,"./lib/rng":237}],239:[function(e,t,i){var o=e("./lib/rng"),s=e("./lib/bytesToUuid");t.exports=function(e,t,i){var r=t&&i||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t)for(var a=0;a<16;++a)t[r+a]=n[a];return t||s(n)}},{"./lib/bytesToUuid":236,"./lib/rng":237}],240:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=be(e("./lib/toDate")),n=be(e("./lib/toFloat")),a=be(e("./lib/toInt")),o=be(e("./lib/toBoolean")),s=be(e("./lib/equals")),c=be(e("./lib/contains")),l=be(e("./lib/matches")),u=be(e("./lib/isEmail")),f=be(e("./lib/isURL")),d=be(e("./lib/isMACAddress")),p=be(e("./lib/isIP")),h=be(e("./lib/isFQDN")),m=be(e("./lib/isBoolean")),b=be(e("./lib/isAlpha")),g=be(e("./lib/isAlphanumeric")),v=be(e("./lib/isNumeric")),_=be(e("./lib/isPort")),y=be(e("./lib/isLowercase")),E=be(e("./lib/isUppercase")),w=be(e("./lib/isAscii")),S=be(e("./lib/isFullWidth")),x=be(e("./lib/isHalfWidth")),A=be(e("./lib/isVariableWidth")),T=be(e("./lib/isMultibyte")),I=be(e("./lib/isSurrogatePair")),N=be(e("./lib/isInt")),R=be(e("./lib/isFloat")),O=be(e("./lib/isDecimal")),M=be(e("./lib/isHexadecimal")),C=be(e("./lib/isDivisibleBy")),L=be(e("./lib/isHexColor")),k=be(e("./lib/isISRC")),P=be(e("./lib/isMD5")),B=be(e("./lib/isHash")),D=be(e("./lib/isJSON")),U=be(e("./lib/isEmpty")),j=be(e("./lib/isLength")),F=be(e("./lib/isByteLength")),H=be(e("./lib/isUUID")),q=be(e("./lib/isMongoId")),z=be(e("./lib/isAfter")),G=be(e("./lib/isBefore")),V=be(e("./lib/isIn")),Y=be(e("./lib/isCreditCard")),K=be(e("./lib/isISIN")),W=be(e("./lib/isISBN")),X=be(e("./lib/isISSN")),Z=be(e("./lib/isMobilePhone")),$=be(e("./lib/isCurrency")),Q=be(e("./lib/isISO8601")),J=be(e("./lib/isISO31661Alpha2")),ee=be(e("./lib/isBase64")),te=be(e("./lib/isDataURI")),ie=be(e("./lib/isMimeType")),re=be(e("./lib/isLatLong")),ne=be(e("./lib/isPostalCode")),ae=be(e("./lib/ltrim")),oe=be(e("./lib/rtrim")),se=be(e("./lib/trim")),ce=be(e("./lib/escape")),le=be(e("./lib/unescape")),ue=be(e("./lib/stripLow")),fe=be(e("./lib/whitelist")),de=be(e("./lib/blacklist")),pe=be(e("./lib/isWhitelisted")),he=be(e("./lib/normalizeEmail")),me=be(e("./lib/util/toString"));function be(e){return e&&e.__esModule?e:{default:e}}var ge={version:"9.4.1",toDate:r.default,toFloat:n.default,toInt:a.default,toBoolean:o.default,equals:s.default,contains:c.default,matches:l.default,isEmail:u.default,isURL:f.default,isMACAddress:d.default,isIP:p.default,isFQDN:h.default,isBoolean:m.default,isAlpha:b.default,isAlphanumeric:g.default,isNumeric:v.default,isPort:_.default,isLowercase:y.default,isUppercase:E.default,isAscii:w.default,isFullWidth:S.default,isHalfWidth:x.default,isVariableWidth:A.default,isMultibyte:T.default,isSurrogatePair:I.default,isInt:N.default,isFloat:R.default,isDecimal:O.default,isHexadecimal:M.default,isDivisibleBy:C.default,isHexColor:L.default,isISRC:k.default,isMD5:P.default,isHash:B.default,isJSON:D.default,isEmpty:U.default,isLength:j.default,isByteLength:F.default,isUUID:H.default,isMongoId:q.default,isAfter:z.default,isBefore:G.default,isIn:V.default,isCreditCard:Y.default,isISIN:K.default,isISBN:W.default,isISSN:X.default,isMobilePhone:Z.default,isPostalCode:ne.default,isCurrency:$.default,isISO8601:Q.default,isISO31661Alpha2:J.default,isBase64:ee.default,isDataURI:te.default,isMimeType:ie.default,isLatLong:re.default,ltrim:ae.default,rtrim:oe.default,trim:se.default,escape:ce.default,unescape:le.default,stripLow:ue.default,whitelist:fe.default,blacklist:de.default,isWhitelisted:pe.default,normalizeEmail:he.default,toString:me.default};i.default=ge,t.exports=i.default},{"./lib/blacklist":242,"./lib/contains":243,"./lib/equals":244,"./lib/escape":245,"./lib/isAfter":246,"./lib/isAlpha":247,"./lib/isAlphanumeric":248,"./lib/isAscii":249,"./lib/isBase64":250,"./lib/isBefore":251,"./lib/isBoolean":252,"./lib/isByteLength":253,"./lib/isCreditCard":254,"./lib/isCurrency":255,"./lib/isDataURI":256,"./lib/isDecimal":257,"./lib/isDivisibleBy":258,"./lib/isEmail":259,"./lib/isEmpty":260,"./lib/isFQDN":261,"./lib/isFloat":262,"./lib/isFullWidth":263,"./lib/isHalfWidth":264,"./lib/isHash":265,"./lib/isHexColor":266,"./lib/isHexadecimal":267,"./lib/isIP":268,"./lib/isISBN":269,"./lib/isISIN":270,"./lib/isISO31661Alpha2":271,"./lib/isISO8601":272,"./lib/isISRC":273,"./lib/isISSN":274,"./lib/isIn":275,"./lib/isInt":276,"./lib/isJSON":277,"./lib/isLatLong":278,"./lib/isLength":279,"./lib/isLowercase":280,"./lib/isMACAddress":281,"./lib/isMD5":282,"./lib/isMimeType":283,"./lib/isMobilePhone":284,"./lib/isMongoId":285,"./lib/isMultibyte":286,"./lib/isNumeric":287,"./lib/isPort":288,"./lib/isPostalCode":289,"./lib/isSurrogatePair":290,"./lib/isURL":291,"./lib/isUUID":292,"./lib/isUppercase":293,"./lib/isVariableWidth":294,"./lib/isWhitelisted":295,"./lib/ltrim":296,"./lib/matches":297,"./lib/normalizeEmail":298,"./lib/rtrim":299,"./lib/stripLow":300,"./lib/toBoolean":301,"./lib/toDate":302,"./lib/toFloat":303,"./lib/toInt":304,"./lib/trim":305,"./lib/unescape":306,"./lib/util/toString":309,"./lib/whitelist":310}],241:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});for(var r,n=i.alpha={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ω]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},a=i.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/},o=i.decimal={"en-US":".",ar:"٫"},s=i.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],c=0;c<s.length;c++)n[r="en-"+s[c]]=n["en-US"],a[r]=a["en-US"],o[r]=o["en-US"];for(var l,u=i.arabicLocales=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"],f=0;f<u.length;f++)n[l="ar-"+u[f]]=n.ar,a[l]=a.ar,o[l]=o.ar;for(var d=i.dotDecimal=[],p=i.commaDecimal=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","es-ES","fr-FR","it-IT","hu-HU","nb-NO","nn-NO","nl-NL","pl-Pl","pt-PT","ru-RU","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA"],h=0;h<d.length;h++)o[d[h]]=o["en-US"];for(var m=0;m<p.length;m++)o[p[m]]=",";n["pt-BR"]=n["pt-PT"],a["pt-BR"]=a["pt-PT"],o["pt-BR"]=o["pt-PT"]},{}],242:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("["+t+"]+","g"),"")};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],243:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),0<=e.indexOf((0,n.default)(t))};var r=a(e("./util/assertString")),n=a(e("./util/toString"));function a(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default},{"./util/assertString":307,"./util/toString":309}],244:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,a.default)(e),e===t};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],245:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;")};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],246:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var i=(0,a.default)(t),r=(0,a.default)(e);return!!(r&&i&&i<r)};var n=r(e("./util/assertString")),a=r(e("./toDate"));function r(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default},{"./toDate":302,"./util/assertString":307}],247:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,a.default)(e),t in o.alpha)return o.alpha[t].test(e);throw new Error("Invalid locale '"+t+"'")};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r},o=e("./alpha");t.exports=i.default},{"./alpha":241,"./util/assertString":307}],248:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,a.default)(e),t in o.alphanumeric)return o.alphanumeric[t].test(e);throw new Error("Invalid locale '"+t+"'")};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r},o=e("./alpha");t.exports=i.default},{"./alpha":241,"./util/assertString":307}],249:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^[\x00-\x7F]+$/;t.exports=i.default},{"./util/assertString":307}],250:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,a.default)(e);var t=e.length;if(!t||t%4!=0||o.test(e))return!1;var i=e.indexOf("=");return-1===i||i===t-1||i===t-2&&"="===e[t-1]};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/[^A-Z0-9+\/=]/i;t.exports=i.default},{"./util/assertString":307}],251:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var i=(0,a.default)(t),r=(0,a.default)(e);return!!(r&&i&&r<i)};var n=r(e("./util/assertString")),a=r(e("./toDate"));function r(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default},{"./toDate":302,"./util/assertString":307}],252:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),0<=["true","false","1","0"].indexOf(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],253:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var 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};i.default=function(e,t){(0,o.default)(e);var i=void 0,r=void 0;"object"===(void 0===t?"undefined":a(t))?(i=t.min||0,r=t.max):(i=t,r=arguments[2]);var n=encodeURI(e).split(/%..|./).length-1;return i<=n&&(void 0===r||n<=r)};var r,n=e("./util/assertString"),o=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],254:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,s.default)(e);var t=e.replace(/[- ]+/g,"");if(!c.test(t))return!1;for(var i=0,r=void 0,n=void 0,a=void 0,o=t.length-1;0<=o;o--)r=t.substring(o,o+1),n=parseInt(r,10),i+=a&&10<=(n*=2)?n%10+1:n,a=!a;return!(i%10!=0||!t)};var r,n=e("./util/assertString"),s=(r=n)&&r.__esModule?r:{default:r};var c=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|62[0-9]{14})$/;t.exports=i.default},{"./util/assertString":307}],255:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,n.default)(e),function(e){var i="\\d{"+e.digits_after_decimal[0]+"}";e.digits_after_decimal.forEach(function(e,t){0!==t&&(i=i+"|\\d{"+e+"}")});var t="(\\"+e.symbol.replace(/\./g,"\\.")+")"+(e.require_symbol?"":"?"),r="[1-9]\\d{0,2}(\\"+e.thousands_separator+"\\d{3})*",n="("+["0","[1-9]\\d*",r].join("|")+")?",a="(\\"+e.decimal_separator+"("+i+"))"+(e.require_decimal?"":"?"),o=n+(e.allow_decimal||e.require_decimal?a:"");return e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?o+="-?":e.negative_sign_before_digits&&(o="-?"+o)),e.allow_negative_sign_placeholder?o="( (?!\\-))?"+o:e.allow_space_after_symbol?o=" ?"+o:e.allow_space_after_digits&&(o+="( (?!$))?"),e.symbol_after_digits?o+=t:o=t+o,e.allow_negatives&&(e.parens_for_negatives?o="(\\("+o+"\\)|"+o+")":e.negative_sign_before_digits||e.negative_sign_after_digits||(o="-?"+o)),new RegExp("^(?!-? )(?=.*\\d)"+o+"$")}(t=(0,r.default)(t,o)).test(e)};var r=a(e("./util/merge")),n=a(e("./util/assertString"));function a(e){return e&&e.__esModule?e:{default:e}}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};t.exports=i.default},{"./util/assertString":307,"./util/merge":308}],256:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,s.default)(e);var t=e.split(",");if(t.length<2)return!1;var i=t.shift().trim().split(";"),r=i.shift();if("data:"!==r.substr(0,5))return!1;var n=r.substr(5);if(""!==n&&!c.test(n))return!1;for(var a=0;a<i.length;a++)if(a===i.length-1&&"base64"===i[a].toLowerCase());else if(!l.test(i[a]))return!1;for(var o=0;o<t.length;o++)if(!u.test(t[o]))return!1;return!0};var r,n=e("./util/assertString"),s=(r=n)&&r.__esModule?r:{default:r};var c=/^[a-z]+\/[a-z0-9\-\+]+$/i,l=/^[a-z\-]+=[a-z0-9\-]+$/i,u=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;t.exports=i.default},{"./util/assertString":307}],257:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,n.default)(e),(t=(0,r.default)(t,s)).locale in a.decimal)return!c.includes(e.replace(/ /g,""))&&(i=t,new RegExp("^[-+]?([0-9]+)?(\\"+a.decimal[i.locale]+"[0-9]{"+i.decimal_digits+"})"+(i.force_decimal?"":"?")+"$")).test(e);var i;throw new Error("Invalid locale '"+t.locale+"'")};var r=o(e("./util/merge")),n=o(e("./util/assertString")),a=e("./alpha");function o(e){return e&&e.__esModule?e:{default:e}}var s={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},c=["","-","+"];t.exports=i.default},{"./alpha":241,"./util/assertString":307,"./util/merge":308}],258:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),(0,n.default)(e)%parseInt(t,10)==0};var r=a(e("./util/assertString")),n=a(e("./toFloat"));function a(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default},{"./toFloat":303,"./util/assertString":307}],259:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,u.default)(e),(t=(0,f.default)(t,h)).require_display_name||t.allow_display_name){var i=e.match(m);if(i)e=i[1];else if(t.require_display_name)return!1}var r=e.split("@"),n=r.pop(),a=r.join("@"),o=n.toLowerCase();"gmail.com"!==o&&"googlemail.com"!==o||(a=a.replace(/\./g,"").toLowerCase());if(!(0,d.default)(a,{max:64})||!(0,d.default)(n,{max:254}))return!1;if(!(0,p.default)(n,{require_tld:t.require_tld}))return!1;if('"'===a[0])return a=a.slice(1,a.length-1),t.allow_utf8_local_part?_.test(a):g.test(a);for(var s=t.allow_utf8_local_part?v:b,c=a.split("."),l=0;l<c.length;l++)if(!s.test(c[l]))return!1;return!0};var u=r(e("./util/assertString")),f=r(e("./util/merge")),d=r(e("./isByteLength")),p=r(e("./isFQDN"));function r(e){return e&&e.__esModule?e:{default:e}}var h={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0},m=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\,\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i,b=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,v=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,_=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;t.exports=i.default},{"./isByteLength":253,"./isFQDN":261,"./util/assertString":307,"./util/merge":308}],260:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),0===e.length};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],261:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,o.default)(e),(t=(0,s.default)(t,c)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));var i=e.split(".");if(t.require_tld){var r=i.pop();if(!i.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(r))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(r))return!1}for(var n,a=0;a<i.length;a++){if(n=i[a],t.allow_underscores&&(n=n.replace(/_/g,"")),!/^[a-z\u00a1-\uffff0-9-]+$/i.test(n))return!1;if(/[\uff01-\uff5e]/.test(n))return!1;if("-"===n[0]||"-"===n[n.length-1])return!1}return!0};var o=r(e("./util/assertString")),s=r(e("./util/merge"));function r(e){return e&&e.__esModule?e:{default:e}}var c={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1};t.exports=i.default},{"./util/assertString":307,"./util/merge":308}],262:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,a.default)(e),t=t||{};var i=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\"+(t.locale?o.decimal[t.locale]:".")+"[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$");if(""===e||"."===e||"-"===e||"+"===e)return!1;return i.test(e)&&(!t.hasOwnProperty("min")||e>=t.min)&&(!t.hasOwnProperty("max")||e<=t.max)&&(!t.hasOwnProperty("lt")||e<t.lt)&&(!t.hasOwnProperty("gt")||e>t.gt)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r},o=e("./alpha");t.exports=i.default},{"./alpha":241,"./util/assertString":307}],263:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.fullWidth=void 0,i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=i.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},{"./util/assertString":307}],264:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.halfWidth=void 0,i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=i.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},{"./util/assertString":307}],265:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,a.default)(e),new RegExp("^[a-f0-9]{"+o[t]+"}$").test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};t.exports=i.default},{"./util/assertString":307}],266:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;t.exports=i.default},{"./util/assertString":307}],267:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^[0-9A-F]+$/i;t.exports=i.default},{"./util/assertString":307}],268:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";(0,l.default)(t);i=String(i);{if(!i)return e(t,4)||e(t,6);if("4"===i){if(!u.test(t))return!1;var r=t.split(".").sort(function(e,t){return e-t});return r[3]<=255}if("6"===i){var n=t.split(":"),a=!1,o=e(n[n.length-1],4),s=o?7:8;if(n.length>s)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(n.shift(),n.shift(),a=!0):"::"===t.substr(t.length-2)&&(n.pop(),n.pop(),a=!0);for(var c=0;c<n.length;++c)if(""===n[c]&&0<c&&c<n.length-1){if(a)return!1;a=!0}else if(o&&c===n.length-1);else if(!f.test(n[c]))return!1;return a?1<=n.length:n.length===s}}return!1};var r,n=e("./util/assertString"),l=(r=n)&&r.__esModule?r:{default:r};var u=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^[0-9A-F]{1,4}$/i;t.exports=i.default},{"./util/assertString":307}],269:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";(0,o.default)(t);i=String(i);if(!i)return e(t,10)||e(t,13);var r=t.replace(/[\s-]+/g,"");var n=0;var a=void 0;if("10"===i){if(!s.test(r))return!1;for(a=0;a<9;a++)n+=(a+1)*r.charAt(a);if("X"===r.charAt(9)?n+=100:n+=10*r.charAt(9),n%11==0)return!!r}else if("13"===i){if(!c.test(r))return!1;for(a=0;a<12;a++)n+=l[a%2]*r.charAt(a);if(r.charAt(12)-(10-n%10)%10==0)return!!r}return!1};var r,n=e("./util/assertString"),o=(r=n)&&r.__esModule?r:{default:r};var s=/^(?:[0-9]{9}X|[0-9]{10})$/,c=/^(?:[0-9]{13})$/,l=[1,3];t.exports=i.default},{"./util/assertString":307}],270:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,s.default)(e),!c.test(e))return!1;for(var t=e.replace(/[A-Z]/g,function(e){return parseInt(e,36)}),i=0,r=void 0,n=void 0,a=!0,o=t.length-2;0<=o;o--)r=t.substring(o,o+1),n=parseInt(r,10),i+=a&&10<=(n*=2)?n+1:n,a=!a;return parseInt(e.substr(e.length-1),10)===(1e4-i)%10};var r,n=e("./util/assertString"),s=(r=n)&&r.__esModule?r:{default:r};var c=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;t.exports=i.default},{"./util/assertString":307}],271:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.includes(e.toUpperCase())};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"];t.exports=i.default},{"./util/assertString":307}],272:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;t.exports=i.default},{"./util/assertString":307}],273:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;t.exports=i.default},{"./util/assertString":307}],274:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};(0,p.default)(e);var i=h;if(i=t.require_hyphen?i.replace("?",""):i,!(i=t.case_sensitive?new RegExp(i):new RegExp(i,"i")).test(e))return!1;var r=e.replace("-",""),n=8,a=0,o=!0,s=!1,c=void 0;try{for(var l,u=r[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var f=l.value,d="X"===f.toUpperCase()?10:+f;a+=d*n,--n}}catch(e){s=!0,c=e}finally{try{!o&&u.return&&u.return()}finally{if(s)throw c}}return a%11==0};var r,n=e("./util/assertString"),p=(r=n)&&r.__esModule?r:{default:r};var h="^\\d{4}-?\\d{3}[\\dX]$";t.exports=i.default},{"./util/assertString":307}],275:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var 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};i.default=function(e,t){(0,a.default)(e);var i=void 0;{if("[object Array]"===Object.prototype.toString.call(t)){var r=[];for(i in t)({}).hasOwnProperty.call(t,i)&&(r[i]=(0,o.default)(t[i]));return 0<=r.indexOf(e)}if("object"===(void 0===t?"undefined":n(t)))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return 0<=t.indexOf(e)}return!1};var a=r(e("./util/assertString")),o=r(e("./util/toString"));function r(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default},{"./util/assertString":307,"./util/toString":309}],276:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,s.default)(e);var i=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?c:l,r=!t.hasOwnProperty("min")||e>=t.min,n=!t.hasOwnProperty("max")||e<=t.max,a=!t.hasOwnProperty("lt")||e<t.lt,o=!t.hasOwnProperty("gt")||e>t.gt;return i.test(e)&&r&&n&&a&&o};var r,n=e("./util/assertString"),s=(r=n)&&r.__esModule?r:{default:r};var c=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,l=/^[-+]?[0-9]+$/;t.exports=i.default},{"./util/assertString":307}],277:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r="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};i.default=function(e){(0,o.default)(e);try{var t=JSON.parse(e);return!!t&&"object"===(void 0===t?"undefined":r(t))}catch(e){}return!1};var n,a=e("./util/assertString"),o=(n=a)&&n.__esModule?n:{default:n};t.exports=i.default},{"./util/assertString":307}],278:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,a.default)(e),!e.includes(","))return!1;var t=e.split(",");return o.test(t[0])&&s.test(t[1])};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,s=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/;t.exports=i.default},{"./util/assertString":307}],279:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var 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};i.default=function(e,t){(0,s.default)(e);var i=void 0,r=void 0;"object"===(void 0===t?"undefined":o(t))?(i=t.min||0,r=t.max):(i=t,r=arguments[2]);var n=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],a=e.length-n.length;return i<=a&&(void 0===r||a<=r)};var r,n=e("./util/assertString"),s=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],280:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),e===e.toLowerCase()};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],281:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;t.exports=i.default},{"./util/assertString":307}],282:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^[a-f0-9]{32}$/;t.exports=i.default},{"./util/assertString":307}],283:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)||s.test(e)||c.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,s=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,c=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;t.exports=i.default},{"./util/assertString":307}],284:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){if((0,a.default)(e),i&&i.strictMode&&!e.startsWith("+"))return!1;{if(t in o)return o[t].test(e);if("any"===t){for(var r in o)if(o.hasOwnProperty(r)){var n=o[r];if(n.test(e))return!0}return!1}}throw new Error("Invalid locale '"+t+"'")};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o={"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-EG":/^((\+?20)|0)?1[012]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^(\+?49[ \.\-])?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,"el-GR":/^(\+?30|0)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-HK":/^(\+?852\-?)?[456789]\d{3}\-?\d{4}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-KE":/^(\+?254|0)?[7]\d{8}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)2\d{7,9}$/,"en-PK":/^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[89]\d{7}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"es-ES":/^(\+?34)?(6\d{1}|7[1234])\d{7}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}/,"hu-HU":/^(\+?36)(20|30|70)\d{7}$/,"id-ID":/^(\+?62|0[1-9])[\s|\d]+$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"ja-JP":/^(\+?81|0)[789]0[ \-]?[1-9]\d{2}[ \-]?\d{5}$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"ms-MY":/^(\+?6?01){1}(([145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"nl-BE":/^(\+?32|0)4?\d{8}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^(\+?55|0)\-?[1-9]{2}\-?[2-9]{1}\d{3,4}\-?\d{4}$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"ro-RO":/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"vi-VN":/^(\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,"zh-CN":/^(\+?0?86\-?)?1[3456789]\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/};o["en-CA"]=o["en-US"],o["fr-BE"]=o["nl-BE"],o["zh-HK"]=o["en-HK"],t.exports=i.default},{"./util/assertString":307}],285:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),(0,n.default)(e)&&24===e.length};var r=a(e("./util/assertString")),n=a(e("./isHexadecimal"));function a(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default},{"./isHexadecimal":267,"./util/assertString":307}],286:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/[^\x00-\x7F]/;t.exports=i.default},{"./util/assertString":307}],287:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^[-+]?[0-9]+$/;t.exports=i.default},{"./util/assertString":307}],288:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e,{min:0,max:65535})};var r,n=e("./isInt"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./isInt":276}],289:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.locales=void 0,i.default=function(e,t){if((0,a.default)(e),t in l)return l[t].test(e);if("any"===t){for(var i in l){if(l.hasOwnProperty(i))if(l[i].test(e))return!0}return!1}throw new Error("Invalid locale '"+t+"'")};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/^\d{4}$/,s=/^\d{5}$/,c=/^\d{6}$/,l={AT:o,AU:o,BE:o,BG:o,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:o,CZ:/^\d{3}\s?\d{2}$/,DE:s,DK:o,DZ:s,ES:s,FI:s,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,IL:s,IN:c,IS:/^\d{3}$/,IT:s,JP:/^\d{3}\-\d{4}$/,KE:s,LI:/^(948[5-9]|949[0-7])$/,MX:s,NL:/^\d{4}\s?[a-z]{2}$/i,NO:o,PL:/^\d{2}\-\d{3}$/,PT:/^\d{4}\-\d{3}?$/,RO:c,RU:c,SA:s,SE:/^\d{3}\s?\d{2}$/,TW:/^\d{3}(\d{2})?$/,US:/^\d{5}(-\d{4})?$/,ZA:o,ZM:s};i.locales=Object.keys(l)},{"./util/assertString":307}],290:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;t.exports=i.default},{"./util/assertString":307}],291:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,f.default)(e),!e||2083<=e.length||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;t=(0,h.default)(t,m);var i=void 0,r=void 0,n=void 0,a=void 0,o=void 0,s=void 0,c=void 0,l=void 0;if(1<(c=(e=(c=(e=(c=e.split("#")).shift()).split("?")).shift()).split("://")).length){if(i=c.shift(),t.require_valid_protocol&&-1===t.protocols.indexOf(i))return!1}else{if(t.require_protocol)return!1;t.allow_protocol_relative_urls&&"//"===e.substr(0,2)&&(c[0]=e.substr(2))}if(""===(e=c.join("://")))return!1;if(""===(e=(c=e.split("/")).shift())&&!t.require_host)return!0;if(1<(c=e.split("@")).length&&0<=(r=c.shift()).indexOf(":")&&2<r.split(":").length)return!1;a=c.join("@"),l=s=null;var u=a.match(b);u?(n="",l=u[1],s=u[2]||null):(c=a.split(":"),n=c.shift(),c.length&&(s=c.join(":")));if(null!==s&&(o=parseInt(s,10),!/^[0-9]+$/.test(s)||o<=0||65535<o))return!1;if(!((0,p.default)(n)||(0,d.default)(n,t)||l&&(0,p.default)(l,6)))return!1;if(n=n||l,t.host_whitelist&&!g(n,t.host_whitelist))return!1;if(t.host_blacklist&&g(n,t.host_blacklist))return!1;return!0};var f=r(e("./util/assertString")),d=r(e("./isFQDN")),p=r(e("./isIP")),h=r(e("./util/merge"));function r(e){return e&&e.__esModule?e:{default:e}}var m={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},b=/^\[([^\]]+)\](?::([0-9]+))?$/;function g(e,t){for(var i=0;i<t.length;i++){var r=t[i];if(e===r||(n=r,"[object RegExp]"===Object.prototype.toString.call(n)&&r.test(e)))return!0}var n;return!1}t.exports=i.default},{"./isFQDN":261,"./isIP":268,"./util/assertString":307,"./util/merge":308}],292:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"all";(0,a.default)(e);var i=o[t];return i&&i.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};var o={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};t.exports=i.default},{"./util/assertString":307}],293:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),e===e.toUpperCase()};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],294:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),o.fullWidth.test(e)&&s.halfWidth.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r},o=e("./isFullWidth"),s=e("./isHalfWidth");t.exports=i.default},{"./isFullWidth":263,"./isHalfWidth":264,"./util/assertString":307}],295:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,a.default)(e);for(var i=e.length-1;0<=i;i--)if(-1===t.indexOf(e[i]))return!1;return!0};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],296:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,a.default)(e);var i=t?new RegExp("^["+t+"]+","g"):/^\s+/g;return e.replace(i,"")};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],297:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){(0,a.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,i));return t.test(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],298:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){t=(0,o.default)(t,s);var i=e.split("@"),r=i.pop(),n=[i.join("@"),r];if(n[1]=n[1].toLowerCase(),"gmail.com"===n[1]||"googlemail.com"===n[1]){if(t.gmail_remove_subaddress&&(n[0]=n[0].split("+")[0]),t.gmail_remove_dots&&(n[0]=n[0].replace(/\./g,"")),!n[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(n[0]=n[0].toLowerCase()),n[1]=t.gmail_convert_googlemaildotcom?"gmail.com":n[1]}else if(~c.indexOf(n[1])){if(t.icloud_remove_subaddress&&(n[0]=n[0].split("+")[0]),!n[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(n[0]=n[0].toLowerCase())}else if(~l.indexOf(n[1])){if(t.outlookdotcom_remove_subaddress&&(n[0]=n[0].split("+")[0]),!n[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(n[0]=n[0].toLowerCase())}else if(~u.indexOf(n[1])){if(t.yahoo_remove_subaddress){var a=n[0].split("-");n[0]=1<a.length?a.slice(0,-1).join("-"):a[0]}if(!n[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(n[0]=n[0].toLowerCase())}else t.all_lowercase&&(n[0]=n[0].toLowerCase());return n.join("@")};var r,n=e("./util/merge"),o=(r=n)&&r.__esModule?r:{default:r};var s={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},c=["icloud.com","me.com"],l=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],u=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"];t.exports=i.default},{"./util/merge":308}],299:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,a.default)(e);var i=t?new RegExp("["+t+"]"):/\s/,r=e.length-1;for(;0<=r&&i.test(e[r]);)r--;return r<e.length?e.substr(0,r+1):e};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],300:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,n.default)(e,i)};var r=a(e("./util/assertString")),n=a(e("./blacklist"));function a(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default},{"./blacklist":242,"./util/assertString":307}],301:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,a.default)(e),t)return"1"===e||"true"===e;return"0"!==e&&"false"!==e&&""!==e};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],302:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],303:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),parseFloat(e)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],304:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,a.default)(e),parseInt(e,t||10)};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],305:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)((0,n.default)(e,t),t)};var r=a(e("./rtrim")),n=a(e("./ltrim"));function a(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default},{"./ltrim":296,"./rtrim":299}],306:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,a.default)(e),e.replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#x2F;/g,"/").replace(/&#x5C;/g,"\\").replace(/&#96;/g,"`")};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],307:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if(!("string"==typeof e||e instanceof String))throw new TypeError("This library (validator.js) validates strings only")},t.exports=i.default},{}],308:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];for(var i in t)void 0===e[i]&&(e[i]=t[i]);return e},t.exports=i.default},{}],309:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r="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};i.default=function(e){"object"===(void 0===e?"undefined":r(e))&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},t.exports=i.default},{}],310:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,a.default)(e),e.replace(new RegExp("[^"+t+"]+","g"),"")};var r,n=e("./util/assertString"),a=(r=n)&&r.__esModule?r:{default:r};t.exports=i.default},{"./util/assertString":307}],311:[function(require,module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0;i<e.length;i++)if(e[i]===t)return i;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var i in e)t.push(i);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var i=0;i<e.length;i++)t(e[i],i,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,i){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:i})}}catch(e){return function(e,t,i){e[t]=i}}}(),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 i=e.contentWindow,r=i.eval,n=i.execScript;!r&&n&&(n.call(i,"null"),r=i.eval),forEach(Object_keys(t),function(e){i[e]=t[e]}),forEach(globals,function(e){t[e]&&(i[e]=t[e])});var a=Object_keys(i),o=r.call(i,this.code);return forEach(Object_keys(i),function(e){(e in t||-1===indexOf(a,e))&&(t[e]=i[e])}),forEach(globals,function(e){e in t||defineProp(t,e,i[e])}),document.body.removeChild(e),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var i=Script.createContext(t),e=this.runInContext(i);return t&&forEach(Object_keys(i),function(e){t[e]=i[e]}),e},forEach(Object_keys(Script.prototype),function(i){exports[i]=Script[i]=function(e){var t=Script(e);return t[i].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 i=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(e){i[e]=t[e]}),i}},{}],312:[function(t,e,s){(function(o){(function(){var e,d,r,a={}.hasOwnProperty,i=function(e,t){for(var i in t)a.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},n=function(e,t){return function(){return e.apply(t,arguments)}};r=t("sax"),e=t("events"),d=function(e){return"object"==typeof e&&null!=e&&0===Object.keys(e).length},s.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,async:!1,strict:!0},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,childkey:"$$",charsAsChildren:!1,async:!1,strict:!0}},s.ValidationError=function(e){function t(e){this.message=e}return i(t,e),t}(Error),s.Parser=function(e){function t(e){var t,i,r;if(this.parseString=n(this.parseString,this),this.reset=n(this.reset,this),!(this instanceof s.Parser))return new s.Parser(e);for(t in this.options={},r=s.defaults[.2])a.call(r,t)&&(i=r[t],this.options[t]=i);for(t in e)a.call(e,t)&&(i=e[t],this.options[t]=i);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.reset()}return i(t,e),t.prototype.reset=function(){var n,c,l,i,u,f=this;return this.removeAllListeners(),this.saxParser=r.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),l=!1,this.saxParser.onerror=function(e){if(!l)return l=!0,f.emit("error",e)},this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,u=[],n=this.options.attrkey,c=this.options.charkey,this.saxParser.onopentag=function(e){var t,i,r;if((i={})[c]="",!f.options.ignoreAttrs)for(t in r=e.attributes)a.call(r,t)&&(n in i||f.options.mergeAttrs||(i[n]={}),f.options.mergeAttrs?i[t]=e.attributes[t]:i[n][t]=e.attributes[t]);return i["#name"]=f.options.normalizeTags?e.name.toLowerCase():e.name,f.options.xmlns&&(i[f.options.xmlnskey]={uri:e.uri,local:e.local}),u.push(i)},this.saxParser.onclosetag=function(){var e,t,r,i,n,a,o,s;if(i=(n=u.pop())["#name"],delete n["#name"],e=n.cdata,delete n.cdata,o=u[u.length-1],n[c].match(/^\s*$/)&&!e?(t=n[c],delete n[c]):(f.options.trim&&(n[c]=n[c].trim()),f.options.normalize&&(n[c]=n[c].replace(/\s{2,}/g," ").trim()),1===Object.keys(n).length&&c in n&&!f.EXPLICIT_CHARKEY&&(n=n[c])),d(n)&&(n=void 0!==f.options.emptyTag?f.options.emptyTag:t),null!=f.options.validator){s="/"+function(){var e,t,i;for(i=[],e=0,t=u.length;e<t;e++)r=u[e],i.push(r["#name"]);return i}().concat(i).join("/");try{n=f.options.validator(s,o&&o[i],n)}catch(e){l=e,f.emit("error",l)}}return f.options.explicitChildren&&!f.options.mergeAttrs&&"object"==typeof n&&(r={},f.options.attrkey in n&&(r[f.options.attrkey]=n[f.options.attrkey],delete n[f.options.attrkey]),!f.options.charsAsChildren&&f.options.charkey in n&&(r[f.options.charkey]=n[f.options.charkey],delete n[f.options.charkey]),0<Object.getOwnPropertyNames(n).length&&(r[f.options.childkey]=n),n=r),0<u.length?f.options.explicitArray?(o[i]instanceof Array||(o[i]=[]),o[i].push(n)):i in o?(o[i]instanceof Array||(a=o[i],o[i]=[a]),o[i].push(n)):o[i]=n:(f.options.explicitRoot&&(a=n,(n={})[i]=a),f.resultObject=n,f.emit("end",f.resultObject))},i=function(e){var t;if(t=u[u.length-1])return t[c]+=e,t},this.saxParser.ontext=i,this.saxParser.oncdata=function(e){var t;if(t=i(e))return t.cdata=!0}},t.prototype.parseString=function(e,t){return null!=t&&"function"==typeof t&&(this.on("end",function(e){return this.reset(),this.options.async?o.nextTick(function(){return t(null,e)}):t(null,e)}),this.on("error",function(e){return this.reset(),this.options.async?o.nextTick(function(){return t(e)}):t(e)})),""===e.toString().trim()?(this.emit("end",null),!0):this.saxParser.write(e.toString())},t}(e.EventEmitter),s.parseString=function(e,t,i){var r,n;return null!=i?("function"==typeof i&&(r=i),"object"==typeof t&&(n=t)):("function"==typeof t&&(r=t),n={}),new s.Parser(n).parseString(e,r)}}).call(this)}).call(this,t("_process"))},{_process:176,events:136,sax:201}],313:[function(t,i,e){(function(){var e,l;l=t("./XMLFragment"),e=function(){function n(e,t,i,r){var n,a,o,s,c;if(this.assertLegalChar=(n=this.assertLegalChar,a=this,function(){return n.apply(a,arguments)}),this.children=[],this.rootObject=null,this.is(e,"Object")&&(t=(c=[e,t])[0],i=c[1],e=null),null!=e&&(e=""+e||"",null==t&&(t={version:"1.0"})),this.allowSurrogateChars=null!=r?r.allowSurrogateChars:void 0,null!=t&&null==t.version)throw new Error("Version number is required");if(null!=t){if(t.version=""+t.version||"",!t.version.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t.version);if(o={version:t.version},null!=t.encoding){if(t.encoding=""+t.encoding||"",!t.encoding.match(/[A-Za-z](?:[A-Za-z0-9._-]|-)*/))throw new Error("Invalid encoding: "+t.encoding);o.encoding=t.encoding}null!=t.standalone&&(o.standalone=t.standalone?"yes":"no"),s=new l(this,"?xml",o),this.children.push(s)}null!=i&&(o={},null!=e&&(o.name=e),null!=i.ext&&(i.ext=""+i.ext||"",o.ext=i.ext),s=new l(this,"!DOCTYPE",o),this.children.push(s)),null!=e&&this.begin(e)}return n.prototype.begin=function(e,t,i){var r;if(null==e)throw new Error("Root element needs a name");return this.rootObject&&(this.children=[],this.rootObject=null),null!=t?new n(e,t,i).root():((r=new l(this,e=""+e||"",{})).isRoot=!0,(r.documentObject=this).children.push(r),this.rootObject=r)},n.prototype.root=function(){return this.rootObject},n.prototype.end=function(e){return toString(e)},n.prototype.toString=function(e){var t,i,r,n;for(t="",i=0,r=(n=this.children).length;i<r;i++)t+=n[i].toString(e);return t},n.prototype.is=function(e,t){var i;return i=Object.prototype.toString.call(e).slice(8,-1),null!=e&&i===t},n.prototype.assertLegalChar=function(e){var t,i;if(t=this.allowSurrogateChars?/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE-\uFFFF]/:/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/,i=e.match(t))throw new Error("Invalid character ("+i+") in string: "+e+" at index "+i.index)},n}(),i.exports=e}).call(this)},{"./XMLFragment":314}],314:[function(e,t,i){(function(){var e,p={}.hasOwnProperty;e=function(){function l(e,t,i,r){this.isRoot=!1,this.documentObject=null,this.parent=e,this.name=t,this.attributes=i,this.value=r,this.children=[],this.assertLegalChar=e.assertLegalChar}return l.prototype.element=function(e,t,i){var r,n,a,o,s;if(null==e)throw new Error("Missing element name");for(n in e=""+e||"",this.assertLegalChar(e),null==t&&(t={}),this.is(t,"String")&&this.is(i,"Object")?(t=(o=[i,t])[0],i=o[1]):this.is(t,"String")&&(t=(s=[{},t])[0],i=s[1]),t)p.call(t,n)&&(a=""+(a=t[n])||"",t[n]=this.escape(a));return r=new l(this,e,t),null!=i&&(i=""+i||"",i=this.escape(i),this.assertLegalChar(i),r.raw(i)),this.children.push(r),r},l.prototype.insertBefore=function(e,t,i){var r,n,a,o,s,c;if(this.isRoot)throw new Error("Cannot insert elements at root level");if(null==e)throw new Error("Missing element name");for(a in e=""+e||"",this.assertLegalChar(e),null==t&&(t={}),this.is(t,"String")&&this.is(i,"Object")?(t=(s=[i,t])[0],i=s[1]):this.is(t,"String")&&(t=(c=[{},t])[0],i=c[1]),t)p.call(t,a)&&(o=""+(o=t[a])||"",t[a]=this.escape(o));return r=new l(this.parent,e,t),null!=i&&(i=""+i||"",i=this.escape(i),this.assertLegalChar(i),r.raw(i)),n=this.parent.children.indexOf(this),this.parent.children.splice(n,0,r),r},l.prototype.insertAfter=function(e,t,i){var r,n,a,o,s,c;if(this.isRoot)throw new Error("Cannot insert elements at root level");if(null==e)throw new Error("Missing element name");for(a in e=""+e||"",this.assertLegalChar(e),null==t&&(t={}),this.is(t,"String")&&this.is(i,"Object")?(t=(s=[i,t])[0],i=s[1]):this.is(t,"String")&&(t=(c=[{},t])[0],i=c[1]),t)p.call(t,a)&&(o=""+(o=t[a])||"",t[a]=this.escape(o));return r=new l(this.parent,e,t),null!=i&&(i=""+i||"",i=this.escape(i),this.assertLegalChar(i),r.raw(i)),n=this.parent.children.indexOf(this),this.parent.children.splice(n+1,0,r),r},l.prototype.remove=function(){var e;if(this.isRoot)throw new Error("Cannot remove the root element");return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},l.prototype.text=function(e){var t;if(null==e)throw new Error("Missing element text");return e=""+e||"",e=this.escape(e),this.assertLegalChar(e),t=new l(this,"",{},e),this.children.push(t),this},l.prototype.cdata=function(e){var t;if(null==e)throw new Error("Missing CDATA text");if(e=""+e||"",this.assertLegalChar(e),e.match(/]]>/))throw new Error("Invalid CDATA text: "+e);return t=new l(this,"",{},"<![CDATA["+e+"]]>"),this.children.push(t),this},l.prototype.comment=function(e){var t;if(null==e)throw new Error("Missing comment text");if(e=""+e||"",e=this.escape(e),this.assertLegalChar(e),e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return t=new l(this,"",{},"\x3c!-- "+e+" --\x3e"),this.children.push(t),this},l.prototype.raw=function(e){var t;if(null==e)throw new Error("Missing raw text");return t=new l(this,"",{},e=""+e||""),this.children.push(t),this},l.prototype.up=function(){if(this.isRoot)throw new Error("This node has no parent. Use doc() if you need to get the document object.");return this.parent},l.prototype.root=function(){var e;if(this.isRoot)return this;for(e=this.parent;!e.isRoot;)e=e.parent;return e},l.prototype.document=function(){return this.root().documentObject},l.prototype.end=function(e){return this.document().toString(e)},l.prototype.prev=function(){var e;if(this.isRoot)throw new Error("Root node has no siblings");if((e=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[e-1]},l.prototype.next=function(){var e;if(this.isRoot)throw new Error("Root node has no siblings");if(-1===(e=this.parent.children.indexOf(this))||e===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[e+1]},l.prototype.clone=function(i){var r;return r=new l(this.parent,this.name,this.attributes,this.value),i&&this.children.forEach(function(e){var t;return((t=e.clone(i)).parent=r).children.push(t)}),r},l.prototype.importXMLBuilder=function(e){var t;return((t=e.root().clone(!0)).parent=this).children.push(t),t.isRoot=!1,this},l.prototype.attribute=function(e,t){if(null==e)throw new Error("Missing attribute name");if(null==t)throw new Error("Missing attribute value");return e=""+e||"",t=""+t||"",null==this.attributes&&(this.attributes={}),this.attributes[e]=this.escape(t),this},l.prototype.removeAttribute=function(e){if(null==e)throw new Error("Missing attribute name");return e=""+e||"",delete this.attributes[e],this},l.prototype.toString=function(e,t){var i,r,n,a,o,s,c,l,u,f,d;for(i in o=null!=e&&e.pretty||!1,n=null!=e&&e.indent||"  ",a=null!=e&&e.newline||"\n",t||(t=0),c=new Array(t+1).join(n),s="",o&&(s+=c),null==this.value?s+="<"+this.name:s+=""+this.value,f=this.attributes)p.call(f,i)&&(r=f[i],"!DOCTYPE"===this.name?s+=" "+r:s+=" "+i+'="'+r+'"');if(0===this.children.length)null==this.value&&(s+="?xml"===this.name?"?>":"!DOCTYPE"===this.name?">":"/>"),o&&(s+=a);else if(o&&1===this.children.length&&null!=this.children[0].value)s+=">",s+=this.children[0].value,s+="</"+this.name+">",s+=a;else{for(s+=">",o&&(s+=a),l=0,u=(d=this.children).length;l<u;l++)s+=d[l].toString(e,t+1);o&&(s+=c),s+="</"+this.name+">",o&&(s+=a)}return s},l.prototype.escape=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")},l.prototype.is=function(e,t){var i;return i=Object.prototype.toString.call(e).slice(8,-1),null!=e&&i===t},l.prototype.ele=function(e,t,i){return this.element(e,t,i)},l.prototype.txt=function(e){return this.text(e)},l.prototype.dat=function(e){return this.cdata(e)},l.prototype.att=function(e,t){return this.attribute(e,t)},l.prototype.com=function(e){return this.comment(e)},l.prototype.doc=function(){return this.document()},l.prototype.e=function(e,t,i){return this.element(e,t,i)},l.prototype.t=function(e){return this.text(e)},l.prototype.d=function(e){return this.cdata(e)},l.prototype.a=function(e,t){return this.attribute(e,t)},l.prototype.c=function(e){return this.comment(e)},l.prototype.r=function(e){return this.raw(e)},l.prototype.u=function(){return this.up()},l}(),t.exports=e}).call(this)},{}],315:[function(e,t,i){(function(){var n;n=e("./XMLBuilder"),t.exports.create=function(e,t,i,r){return null!=e?new n(e,t,i,r).root():new n}}).call(this)},{"./XMLBuilder":313}],316:[function(e,t,i){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var i=arguments[t];for(var r in i)n.call(i,r)&&(e[r]=i[r])}return e};var n=Object.prototype.hasOwnProperty},{}]},{},[1])(1)});