(()=>{var __webpack_modules__={6183:(e,t,r)=>{"use strict";var n=r(76424),i=r(26657),o=r(294),s=r(65830),a=r(16289),u=r(9815),c=r(20757),l=r(60284),d=r(59757);e.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=r(40093);var h=r(47073);Ajv.prototype.addKeyword=h.add;Ajv.prototype.getKeyword=h.get;Ajv.prototype.removeKeyword=h.remove;Ajv.prototype.validateKeyword=h.validate;var m=r(33579);Ajv.ValidationError=m.Validation;Ajv.MissingRefError=m.MissingRef;Ajv.$dataMetaSchema=l;var g="http://json-schema.org/draft-07/schema";var y=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var v=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=d.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=u(e.format);this._cache=e.cache||new o;this._loadingSchemas={};this._compilations=[];this.RULES=c();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=a;this._metaOpts=getMetaSchemaOptions(this);if(e.formats)addInitialFormats(this);if(e.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof e.meta=="object")this.addMetaSchema(e.meta);if(e.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(e,t){var r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var i=r(t);if(r.$async!==true)this.errors=r.errors;return i}function compile(e,t){var r=this._addSchema(e,undefined,t);return r.validate||this._compile(r)}function addSchema(e,t,r,n){if(Array.isArray(e)){for(var o=0;o{"use strict";var t=e.exports=function Cache(){this._cache={}};t.prototype.put=function Cache_put(e,t){this._cache[e]=t};t.prototype.get=function Cache_get(e){return this._cache[e]};t.prototype.del=function Cache_del(e){delete this._cache[e]};t.prototype.clear=function Cache_clear(){this._cache={}}},40093:(e,t,r)=>{"use strict";var n=r(33579).MissingRef;e.exports=compileAsync;function compileAsync(e,t,r){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof t=="function"){r=t;t=undefined}var o=loadMetaSchemaOf(e).then((function(){var r=i._addSchema(e,undefined,t);return r.validate||_compileAsync(r)}));if(r){o.then((function(e){r(null,e)}),r)}return o;function loadMetaSchemaOf(e){var t=e.$schema;return t&&!i.getSchema(t)?compileAsync.call(i,{$ref:t},true):Promise.resolve()}function _compileAsync(e){try{return i._compile(e)}catch(e){if(e instanceof n)return loadMissingSchema(e);throw e}function loadMissingSchema(r){var n=r.missingSchema;if(added(n))throw new Error("Schema "+n+" is loaded but "+r.missingRef+" cannot be resolved");var o=i._loadingSchemas[n];if(!o){o=i._loadingSchemas[n]=i._opts.loadSchema(n);o.then(removePromise,removePromise)}return o.then((function(e){if(!added(n)){return loadMetaSchemaOf(e).then((function(){if(!added(n))i.addSchema(e,n,undefined,t)}))}})).then((function(){return _compileAsync(e)}));function removePromise(){delete i._loadingSchemas[n]}function added(e){return i._refs[e]||i._schemas[e]}}}}},33579:(e,t,r)=>{"use strict";var n=r(26657);e.exports={Validation:errorSubclass(ValidationError),MissingRef:errorSubclass(MissingRefError)};function ValidationError(e){this.message="validation failed";this.errors=e;this.ajv=this.validation=true}MissingRefError.message=function(e,t){return"can't resolve reference "+t+" from id "+e};function MissingRefError(e,t,r){this.message=r||MissingRefError.message(e,t);this.missingRef=n.url(e,t);this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},9815:(e,t,r)=>{"use strict";var n=r(59757);var i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var o=[0,31,28,31,30,31,30,31,31,30,31,30,31];var s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var a=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var c=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var l=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var d=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var h=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var m=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var g=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var y=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return n.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:d,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:h,"json-pointer":m,"json-pointer-uri-fragment":g,"relative-json-pointer":y};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":c,"uri-template":l,url:d,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:h,"json-pointer":m,"json-pointer-uri-fragment":g,"relative-json-pointer":y};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var t=e.match(i);if(!t)return false;var r=+t[1];var n=+t[2];var s=+t[3];return n>=1&&n<=12&&s>=1&&s<=(n==2&&isLeapYear(r)?29:o[n])}function time(e,t){var r=e.match(s);if(!r)return false;var n=r[1];var i=r[2];var o=r[3];var a=r[5];return(n<=23&&i<=59&&o<=59||n==23&&i==59&&o==60)&&(!t||a)}var v=/t|\s/i;function date_time(e){var t=e.split(v);return t.length==2&&date(t[0])&&time(t[1],true)}var b=/\/|:/;function uri(e){return b.test(e)&&u.test(e)}var _=/[^\\]\\Z/;function regex(e){if(_.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},76424:(e,t,r)=>{"use strict";var n=r(26657),i=r(59757),o=r(33579),s=r(16289);var a=r(3932);var u=i.ucs2length;var c=r(52006);var l=o.Validation;e.exports=compile;function compile(e,t,r,d){var h=this,m=this._opts,g=[undefined],y={},v=[],b={},_=[],E={},k=[];t=t||{schema:e,refVal:g,refs:y};var x=checkCompiling.call(this,e,t,d);var C=this._compilations[x.index];if(x.compiling)return C.callValidate=callValidate;var O=this._formats;var D=this.RULES;try{var B=localCompile(e,t,r,d);C.validate=B;var P=C.callValidate;if(P){P.schema=B.schema;P.errors=null;P.refs=B.refs;P.refVal=B.refVal;P.root=B.root;P.$async=B.$async;if(m.sourceCode)P.source=B.source}return B}finally{endCompiling.call(this,e,t,d)}function callValidate(){var e=C.validate;var t=e.apply(this,arguments);callValidate.errors=e.errors;return t}function localCompile(e,r,s,d){var b=!r||r&&r.schema==e;if(r.schema!=t.schema)return compile.call(h,e,r,s,d);var E=e.$async===true;var x=a({isTop:true,schema:e,isRoot:b,baseId:d,root:r,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:o.MissingRef,RULES:D,validate:a,util:i,resolve:n,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:m,formats:O,logger:h.logger,self:h});x=vars(g,refValCode)+vars(v,patternCode)+vars(_,defaultCode)+vars(k,customRuleCode)+x;if(m.processCode)x=m.processCode(x,e);var C;try{var B=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",x);C=B(h,D,O,t,g,_,k,c,u,l);g[0]=C}catch(e){h.logger.error("Error compiling schema, function code:",x);throw e}C.schema=e;C.errors=null;C.refs=y;C.refVal=g;C.root=b?C:r;if(E)C.$async=true;if(m.sourceCode===true){C.source={code:x,patterns:v,defaults:_}}return C}function resolveRef(e,i,o){i=n.url(e,i);var s=y[i];var a,u;if(s!==undefined){a=g[s];u="refVal["+s+"]";return resolvedRef(a,u)}if(!o&&t.refs){var c=t.refs[i];if(c!==undefined){a=t.refVal[c];u=addLocalRef(i,a);return resolvedRef(a,u)}}u=addLocalRef(i);var l=n.call(h,localCompile,t,i);if(l===undefined){var d=r&&r[i];if(d){l=n.inlineRef(d,m.inlineRefs)?d:compile.call(h,d,t,r,e)}}if(l===undefined){removeLocalRef(i)}else{replaceLocalRef(i,l);return resolvedRef(l,u)}}function addLocalRef(e,t){var r=g.length;g[r]=t;y[e]=r;return"refVal"+r}function removeLocalRef(e){delete y[e]}function replaceLocalRef(e,t){var r=y[e];g[r]=t}function resolvedRef(e,t){return typeof e=="object"||typeof e=="boolean"?{code:t,schema:e,inline:true}:{code:t,$async:e&&!!e.$async}}function usePattern(e){var t=b[e];if(t===undefined){t=b[e]=v.length;v[t]=e}return"pattern"+t}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(e===null)return"null";var t=s(e);var r=E[t];if(r===undefined){r=E[t]=_.length;_[r]=e}return"default"+r}}function useCustomRule(e,t,r,n){if(h._opts.validateSchema!==false){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var o=e.definition.validateSchema;if(o){var s=o(t);if(!s){var a="keyword schema is invalid: "+h.errorsText(o.errors);if(h._opts.validateSchema=="log")h.logger.error(a);else throw new Error(a)}}}var u=e.definition.compile,c=e.definition.inline,l=e.definition.macro;var d;if(u){d=u.call(h,t,r,n)}else if(l){d=l.call(h,t,r,n);if(m.validateSchema!==false)h.validateSchema(d,true)}else if(c){d=c.call(h,n,e.keyword,t,r)}else{d=e.definition.validate;if(!d)return}if(d===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var g=k.length;k[g]=d;return{code:"customRule"+g,validate:d}}}function checkCompiling(e,t,r){var n=compIndex.call(this,e,t,r);if(n>=0)return{index:n,compiling:true};n=this._compilations.length;this._compilations[n]={schema:e,root:t,baseId:r};return{index:n,compiling:false}}function endCompiling(e,t,r){var n=compIndex.call(this,e,t,r);if(n>=0)this._compilations.splice(n,1)}function compIndex(e,t,r){for(var n=0;n{"use strict";var n=r(77780),i=r(52006),o=r(59757),s=r(65830),a=r(44862);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,t,r){var n=this._refs[r];if(typeof n=="string"){if(this._refs[n])n=this._refs[n];else return resolve.call(this,e,t,n)}n=n||this._schemas[r];if(n instanceof s){return inlineRef(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n)}var i=resolveSchema.call(this,t,r);var o,a,u;if(i){o=i.schema;t=i.root;u=i.baseId}if(o instanceof s){a=o.validate||e.call(this,o.schema,t,undefined,u)}else if(o!==undefined){a=inlineRef(o,this._opts.inlineRefs)?o:e.call(this,o,t,undefined,u)}return a}function resolveSchema(e,t){var r=n.parse(t),i=_getFullPath(r),o=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||i!==o){var a=normalizeId(i);var u=this._refs[a];if(typeof u=="string"){return resolveRecursive.call(this,e,u,r)}else if(u instanceof s){if(!u.validate)this._compile(u);e=u}else{u=this._schemas[a];if(u instanceof s){if(!u.validate)this._compile(u);if(a==normalizeId(t))return{schema:u,root:e,baseId:o};e=u}else{return}}if(!e.schema)return;o=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,r,o,e.schema,e)}function resolveRecursive(e,t,r){var n=resolveSchema.call(this,e,t);if(n){var i=n.schema;var o=n.baseId;e=n.root;var s=this._getId(i);if(s)o=resolveUrl(o,s);return getJsonPointer.call(this,r,o,i,e)}}var u=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,t,r,n){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var i=e.fragment.split("/");for(var s=1;s{"use strict";var n=r(19031),i=r(59757).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var t=["type","$comment"];var r=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var o=["number","integer","string","array","object","boolean","null"];e.all=i(t);e.types=i(o);e.forEach((function(r){r.rules=r.rules.map((function(r){var i;if(typeof r=="object"){var o=Object.keys(r)[0];i=r[o];r=o;i.forEach((function(r){t.push(r);e.all[r]=true}))}t.push(r);var s=e.all[r]={keyword:r,code:n[r],implements:i};return s}));e.all.$comment={keyword:"$comment",code:n.$comment};if(r.type)e.types[r.type]=r}));e.keywords=i(t.concat(r));e.custom={};return e}},65830:(e,t,r)=>{"use strict";var n=r(59757);e.exports=SchemaObject;function SchemaObject(e){n.copy(e,this)}},3689:e=>{"use strict";e.exports=function ucs2length(e){var t=0,r=e.length,n=0,i;while(n=55296&&i<=56319&&n{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:r(52006),ucs2length:r(3689),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(e,t){t=t||{};for(var r in e)t[r]=e[r];return t}function checkDataType(e,t,r,n){var i=n?" !== ":" === ",o=n?" || ":" && ",s=n?"!":"",a=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return s+"Array.isArray("+t+")";case"object":return"("+s+t+o+"typeof "+t+i+'"object"'+o+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+a+"("+t+" % 1)"+o+t+i+t+(r?o+s+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?o+s+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}function checkDataTypes(e,t,r){switch(e.length){case 1:return checkDataType(e[0],t,r,true);default:var n="";var i=toHash(e);if(i.array&&i.object){n=i.null?"(":"(!"+t+" || ";n+="typeof "+t+' !== "object")';delete i.null;delete i.array;delete i.object}if(i.number)delete i.integer;for(var o in i)n+=(n?" && ":"")+checkDataType(o,t,r,true);return n}}var n=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,t){if(Array.isArray(t)){var r=[];for(var i=0;i=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);o="data"+(t-n||"");if(!i)return o}var c=o;var l=i.split("/");for(var d=0;d{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n{"use strict";var n=r(6680);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},82122:e=>{"use strict";e.exports=function generate__limit(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l;var d="data"+(o||"");var h=e.opts.$data&&s&&s.$data,m;if(h){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";m="schema"+i}else{m=s}var g=t=="maximum",y=g?"exclusiveMaximum":"exclusiveMinimum",v=e.schema[y],b=e.opts.$data&&v&&v.$data,_=g?"<":">",E=g?">":"<",l=undefined;if(!(h||typeof s=="number"||s===undefined)){throw new Error(t+" must be number")}if(!(b||v===undefined||typeof v=="number"||typeof v=="boolean")){throw new Error(y+" must be number or boolean")}if(b){var k=e.util.getData(v.$data,o,e.dataPathArr),x="exclusive"+i,C="exclType"+i,O="exclIsNumber"+i,D="op"+i,B="' + "+D+" + '";n+=" var schemaExcl"+i+" = "+k+"; ";k="schemaExcl"+i;n+=" var "+x+"; var "+C+" = typeof "+k+"; if ("+C+" != 'boolean' && "+C+" != 'undefined' && "+C+" != 'number') { ";var l=y;var P=P||[];P.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(l||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: '"+y+" should be boolean' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var I=n;n=P.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+I+"]); "}else{n+=" validate.errors = ["+I+"]; return false; "}}else{n+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else if ( ";if(h){n+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}n+=" "+C+" == 'number' ? ( ("+x+" = "+m+" === undefined || "+k+" "+_+"= "+m+") ? "+d+" "+E+"= "+k+" : "+d+" "+E+" "+m+" ) : ( ("+x+" = "+k+" === true) ? "+d+" "+E+"= "+m+" : "+d+" "+E+" "+m+" ) || "+d+" !== "+d+") { var op"+i+" = "+x+" ? '"+_+"' : '"+_+"='; ";if(s===undefined){l=y;u=e.errSchemaPath+"/"+y;m=k;h=b}}else{var O=typeof v=="number",B=_;if(O&&h){var D="'"+B+"'";n+=" if ( ";if(h){n+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}n+=" ( "+m+" === undefined || "+v+" "+_+"= "+m+" ? "+d+" "+E+"= "+v+" : "+d+" "+E+" "+m+" ) || "+d+" !== "+d+") { "}else{if(O&&s===undefined){x=true;l=y;u=e.errSchemaPath+"/"+y;m=v;E+="="}else{if(O)m=Math[g?"min":"max"](v,s);if(v===(O?m:true)){x=true;l=y;u=e.errSchemaPath+"/"+y;E+="="}else{x=false;B+="="}}var D="'"+B+"'";n+=" if ( ";if(h){n+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}n+=" "+d+" "+E+" "+m+" || "+d+" !== "+d+") { "}}l=l||t;var P=P||[];P.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(l||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+D+", limit: "+m+", exclusive: "+x+" } ";if(e.opts.messages!==false){n+=" , message: 'should be "+B+" ";if(h){n+="' + "+m}else{n+=""+m+"'"}}if(e.opts.verbose){n+=" , schema: ";if(h){n+="validate.schema"+a}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var I=n;n=P.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+I+"]); "}else{n+=" validate.errors = ["+I+"]; return false; "}}else{n+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(c){n+=" else { "}return n}},44740:e=>{"use strict";e.exports=function generate__limitItems(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l;var d="data"+(o||"");var h=e.opts.$data&&s&&s.$data,m;if(h){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";m="schema"+i}else{m=s}if(!(h||typeof s=="number")){throw new Error(t+" must be number")}var g=t=="maxItems"?">":"<";n+="if ( ";if(h){n+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}n+=" "+d+".length "+g+" "+m+") { ";var l=t;var y=y||[];y.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(l||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+m+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have ";if(t=="maxItems"){n+="more"}else{n+="fewer"}n+=" than ";if(h){n+="' + "+m+" + '"}else{n+=""+s}n+=" items' "}if(e.opts.verbose){n+=" , schema: ";if(h){n+="validate.schema"+a}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var v=n;n=y.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+v+"]); "}else{n+=" validate.errors = ["+v+"]; return false; "}}else{n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(c){n+=" else { "}return n}},30398:e=>{"use strict";e.exports=function generate__limitLength(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l;var d="data"+(o||"");var h=e.opts.$data&&s&&s.$data,m;if(h){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";m="schema"+i}else{m=s}if(!(h||typeof s=="number")){throw new Error(t+" must be number")}var g=t=="maxLength"?">":"<";n+="if ( ";if(h){n+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}if(e.opts.unicode===false){n+=" "+d+".length "}else{n+=" ucs2length("+d+") "}n+=" "+g+" "+m+") { ";var l=t;var y=y||[];y.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(l||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+m+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT be ";if(t=="maxLength"){n+="longer"}else{n+="shorter"}n+=" than ";if(h){n+="' + "+m+" + '"}else{n+=""+s}n+=" characters' "}if(e.opts.verbose){n+=" , schema: ";if(h){n+="validate.schema"+a}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var v=n;n=y.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+v+"]); "}else{n+=" validate.errors = ["+v+"]; return false; "}}else{n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(c){n+=" else { "}return n}},71330:e=>{"use strict";e.exports=function generate__limitProperties(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l;var d="data"+(o||"");var h=e.opts.$data&&s&&s.$data,m;if(h){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";m="schema"+i}else{m=s}if(!(h||typeof s=="number")){throw new Error(t+" must be number")}var g=t=="maxProperties"?">":"<";n+="if ( ";if(h){n+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}n+=" Object.keys("+d+").length "+g+" "+m+") { ";var l=t;var y=y||[];y.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(l||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+m+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have ";if(t=="maxProperties"){n+="more"}else{n+="fewer"}n+=" than ";if(h){n+="' + "+m+" + '"}else{n+=""+s}n+=" properties' "}if(e.opts.verbose){n+=" , schema: ";if(h){n+="validate.schema"+a}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var v=n;n=y.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+v+"]); "}else{n+=" validate.errors = ["+v+"]; return false; "}}else{n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(c){n+=" else { "}return n}},56688:e=>{"use strict";e.exports=function generate_allOf(e,t,r){var n=" ";var i=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var s=e.errSchemaPath+"/"+t;var a=!e.opts.allErrors;var u=e.util.copy(e);var c="";u.level++;var l="valid"+u.level;var d=u.baseId,h=true;var m=i;if(m){var g,y=-1,v=m.length-1;while(y0||g===false:e.util.schemaHasRules(g,e.RULES.all)){h=false;u.schema=g;u.schemaPath=o+"["+y+"]";u.errSchemaPath=s+"/"+y;n+=" "+e.validate(u)+" ";u.baseId=d;if(a){n+=" if ("+l+") { ";c+="}"}}}}if(a){if(h){n+=" if (true) { "}else{n+=" "+c.slice(0,-1)+" "}}return n}},61098:e=>{"use strict";e.exports=function generate_anyOf(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="valid"+i;var h="errs__"+i;var m=e.util.copy(e);var g="";m.level++;var y="valid"+m.level;var v=s.every((function(t){return e.opts.strictKeywords?typeof t=="object"&&Object.keys(t).length>0||t===false:e.util.schemaHasRules(t,e.RULES.all)}));if(v){var b=m.baseId;n+=" var "+h+" = errors; var "+d+" = false; ";var _=e.compositeRule;e.compositeRule=m.compositeRule=true;var E=s;if(E){var k,x=-1,C=E.length-1;while(x{"use strict";e.exports=function generate_comment(e,t,r){var n=" ";var i=e.schema[t];var o=e.errSchemaPath+"/"+t;var s=!e.opts.allErrors;var a=e.util.toQuotedString(i);if(e.opts.$comment===true){n+=" console.log("+a+");"}else if(typeof e.opts.$comment=="function"){n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(o)+", validate.root.schema);"}return n}},38183:e=>{"use strict";e.exports=function generate_const(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="valid"+i;var h=e.opts.$data&&s&&s.$data,m;if(h){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";m="schema"+i}else{m=s}if(!h){n+=" var schema"+i+" = validate.schema"+a+";"}n+="var "+d+" = equal("+l+", schema"+i+"); if (!"+d+") { ";var g=g||[];g.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+i+" } ";if(e.opts.messages!==false){n+=" , message: 'should be equal to constant' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var y=n;n=g.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+y+"]); "}else{n+=" validate.errors = ["+y+"]; return false; "}}else{n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" }";if(c){n+=" else { "}return n}},16593:e=>{"use strict";e.exports=function generate_contains(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="valid"+i;var h="errs__"+i;var m=e.util.copy(e);var g="";m.level++;var y="valid"+m.level;var v="i"+i,b=m.dataLevel=e.dataLevel+1,_="data"+b,E=e.baseId,k=e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all);n+="var "+h+" = errors;var "+d+";";if(k){var x=e.compositeRule;e.compositeRule=m.compositeRule=true;m.schema=s;m.schemaPath=a;m.errSchemaPath=u;n+=" var "+y+" = false; for (var "+v+" = 0; "+v+" < "+l+".length; "+v+"++) { ";m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=l+"["+v+"]";m.dataPathArr[b]=v;var O=e.validate(m);m.baseId=E;if(e.util.varOccurences(O,_)<2){n+=" "+e.util.varReplace(O,_,C)+" "}else{n+=" var "+_+" = "+C+"; "+O+" "}n+=" if ("+y+") break; } ";e.compositeRule=m.compositeRule=x;n+=" "+g+" if (!"+y+") {"}else{n+=" if ("+l+".length == 0) {"}var D=D||[];D.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should contain a valid item' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var B=n;n=D.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+B+"]); "}else{n+=" validate.errors = ["+B+"]; return false; "}}else{n+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { ";if(k){n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "}if(e.opts.allErrors){n+=" } "}return n}},19658:e=>{"use strict";e.exports=function generate_custom(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l;var d="data"+(o||"");var h="valid"+i;var m="errs__"+i;var g=e.opts.$data&&s&&s.$data,y;if(g){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";y="schema"+i}else{y=s}var v=this,b="definition"+i,_=v.definition,E="";var k,x,C,O,D;if(g&&_.$data){D="keywordValidate"+i;var B=_.validateSchema;n+=" var "+b+" = RULES.custom['"+t+"'].definition; var "+D+" = "+b+".validate;"}else{O=e.useCustomRule(v,s,e.schema,e);if(!O)return;y="validate.schema"+a;D=O.code;k=_.compile;x=_.inline;C=_.macro}var P=D+".errors",I="i"+i,R="ruleErr"+i,N=_.async;if(N&&!e.async)throw new Error("async keyword in sync schema");if(!(x||C)){n+=""+P+" = null;"}n+="var "+m+" = errors;var "+h+";";if(g&&_.$data){E+="}";n+=" if ("+y+" === undefined) { "+h+" = true; } else { ";if(B){E+="}";n+=" "+h+" = "+b+".validateSchema("+y+"); if ("+h+") { "}}if(x){if(_.statements){n+=" "+O.validate+" "}else{n+=" "+h+" = "+O.validate+"; "}}else if(C){var $=e.util.copy(e);var E="";$.level++;var L="valid"+$.level;$.schema=O.validate;$.schemaPath="";var q=e.compositeRule;e.compositeRule=$.compositeRule=true;var z=e.validate($).replace(/validate\.schema/g,D);e.compositeRule=$.compositeRule=q;n+=" "+z}else{var U=U||[];U.push(n);n="";n+=" "+D+".call( ";if(e.opts.passContext){n+="this"}else{n+="self"}if(k||_.schema===false){n+=" , "+d+" "}else{n+=" , "+y+" , "+d+" , validate.schema"+e.schemaPath+" "}n+=" , (dataPath || '')";if(e.errorPath!='""'){n+=" + "+e.errorPath}var V=o?"data"+(o-1||""):"parentData",W=o?e.dataPathArr[o]:"parentDataProperty";n+=" , "+V+" , "+W+" , rootData ) ";var G=n;n=U.pop();if(_.errors===false){n+=" "+h+" = ";if(N){n+="await "}n+=""+G+"; "}else{if(N){P="customErrors"+i;n+=" var "+P+" = null; try { "+h+" = await "+G+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+P+" = e.errors; else throw e; } "}else{n+=" "+P+" = null; "+h+" = "+G+"; "}}}if(_.modifying){n+=" if ("+V+") "+d+" = "+V+"["+W+"];"}n+=""+E;if(_.valid){if(c){n+=" if (true) { "}}else{n+=" if ( ";if(_.valid===undefined){n+=" !";if(C){n+=""+L}else{n+=""+h}}else{n+=" "+!_.valid+" "}n+=") { ";l=v.keyword;var U=U||[];U.push(n);n="";var U=U||[];U.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(l||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+v.keyword+"' } ";if(e.opts.messages!==false){n+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var Q=n;n=U.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+Q+"]); "}else{n+=" validate.errors = ["+Q+"]; return false; "}}else{n+=" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var Y=n;n=U.pop();if(x){if(_.errors){if(_.errors!="full"){n+=" for (var "+I+"="+m+"; "+I+"{"use strict";e.exports=function generate_dependencies(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="errs__"+i;var h=e.util.copy(e);var m="";h.level++;var g="valid"+h.level;var y={},v={},b=e.opts.ownProperties;for(x in s){if(x=="__proto__")continue;var _=s[x];var E=Array.isArray(_)?v:y;E[x]=_}n+="var "+d+" = errors;";var k=e.errorPath;n+="var missing"+i+";";for(var x in v){E=v[x];if(E.length){n+=" if ( "+l+e.util.getProperty(x)+" !== undefined ";if(b){n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(x)+"') "}if(c){n+=" && ( ";var C=E;if(C){var O,D=-1,B=C.length-1;while(D0||_===false:e.util.schemaHasRules(_,e.RULES.all)){n+=" "+g+" = true; if ( "+l+e.util.getProperty(x)+" !== undefined ";if(b){n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(x)+"') "}n+=") { ";h.schema=_;h.schemaPath=a+e.util.getProperty(x);h.errSchemaPath=u+"/"+e.util.escapeFragment(x);n+=" "+e.validate(h)+" ";h.baseId=V;n+=" } ";if(c){n+=" if ("+g+") { ";m+="}"}}}if(c){n+=" "+m+" if ("+d+" == errors) {"}return n}},10859:e=>{"use strict";e.exports=function generate_enum(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="valid"+i;var h=e.opts.$data&&s&&s.$data,m;if(h){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";m="schema"+i}else{m=s}var g="i"+i,y="schema"+i;if(!h){n+=" var "+y+" = validate.schema"+a+";"}n+="var "+d+";";if(h){n+=" if (schema"+i+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+i+")) "+d+" = false; else {"}n+=""+d+" = false;for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) if (equal("+l+", "+y+"["+g+"])) { "+d+" = true; break; }";if(h){n+=" } "}n+=" if (!"+d+") { ";var v=v||[];v.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ";if(e.opts.messages!==false){n+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var b=n;n=v.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+b+"]); "}else{n+=" validate.errors = ["+b+"]; return false; "}}else{n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" }";if(c){n+=" else { "}return n}},60271:e=>{"use strict";e.exports=function generate_format(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");if(e.opts.format===false){if(c){n+=" if (true) { "}return n}var d=e.opts.$data&&s&&s.$data,h;if(d){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";h="schema"+i}else{h=s}var m=e.opts.unknownFormats,g=Array.isArray(m);if(d){var y="format"+i,v="isObject"+i,b="formatType"+i;n+=" var "+y+" = formats["+h+"]; var "+v+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+b+" = "+v+" && "+y+".type || 'string'; if ("+v+") { ";if(e.async){n+=" var async"+i+" = "+y+".async; "}n+=" "+y+" = "+y+".validate; } if ( ";if(d){n+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "}n+=" (";if(m!="ignore"){n+=" ("+h+" && !"+y+" ";if(g){n+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "}n+=") || "}n+=" ("+y+" && "+b+" == '"+r+"' && !(typeof "+y+" == 'function' ? ";if(e.async){n+=" (async"+i+" ? await "+y+"("+l+") : "+y+"("+l+")) "}else{n+=" "+y+"("+l+") "}n+=" : "+y+".test("+l+"))))) {"}else{var y=e.formats[s];if(!y){if(m=="ignore"){e.logger.warn('unknown format "'+s+'" ignored in schema at path "'+e.errSchemaPath+'"');if(c){n+=" if (true) { "}return n}else if(g&&m.indexOf(s)>=0){if(c){n+=" if (true) { "}return n}else{throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}}var v=typeof y=="object"&&!(y instanceof RegExp)&&y.validate;var b=v&&y.type||"string";if(v){var _=y.async===true;y=y.validate}if(b!=r){if(c){n+=" if (true) { "}return n}if(_){if(!e.async)throw new Error("async format in sync schema");var E="formats"+e.util.getProperty(s)+".validate";n+=" if (!(await "+E+"("+l+"))) { "}else{n+=" if (! ";var E="formats"+e.util.getProperty(s);if(v)E+=".validate";if(typeof y=="function"){n+=" "+E+"("+l+") "}else{n+=" "+E+".test("+l+") "}n+=") { "}}var k=k||[];k.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ";if(d){n+=""+h}else{n+=""+e.util.toQuotedString(s)}n+=" } ";if(e.opts.messages!==false){n+=" , message: 'should match format \"";if(d){n+="' + "+h+" + '"}else{n+=""+e.util.escapeQuotes(s)}n+="\"' "}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+a}else{n+=""+e.util.toQuotedString(s)}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var x=n;n=k.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+x+"]); "}else{n+=" validate.errors = ["+x+"]; return false; "}}else{n+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(c){n+=" else { "}return n}},55815:e=>{"use strict";e.exports=function generate_if(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="valid"+i;var h="errs__"+i;var m=e.util.copy(e);m.level++;var g="valid"+m.level;var y=e.schema["then"],v=e.schema["else"],b=y!==undefined&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===false:e.util.schemaHasRules(y,e.RULES.all)),_=v!==undefined&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===false:e.util.schemaHasRules(v,e.RULES.all)),E=m.baseId;if(b||_){var k;m.createErrors=false;m.schema=s;m.schemaPath=a;m.errSchemaPath=u;n+=" var "+h+" = errors; var "+d+" = true; ";var x=e.compositeRule;e.compositeRule=m.compositeRule=true;n+=" "+e.validate(m)+" ";m.baseId=E;m.createErrors=true;n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ";e.compositeRule=m.compositeRule=x;if(b){n+=" if ("+g+") { ";m.schema=e.schema["then"];m.schemaPath=e.schemaPath+".then";m.errSchemaPath=e.errSchemaPath+"/then";n+=" "+e.validate(m)+" ";m.baseId=E;n+=" "+d+" = "+g+"; ";if(b&&_){k="ifClause"+i;n+=" var "+k+" = 'then'; "}else{k="'then'"}n+=" } ";if(_){n+=" else { "}}else{n+=" if (!"+g+") { "}if(_){m.schema=e.schema["else"];m.schemaPath=e.schemaPath+".else";m.errSchemaPath=e.errSchemaPath+"/else";n+=" "+e.validate(m)+" ";m.baseId=E;n+=" "+d+" = "+g+"; ";if(b&&_){k="ifClause"+i;n+=" var "+k+" = 'else'; "}else{k="'else'"}n+=" } "}n+=" if (!"+d+") { var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+k+" } ";if(e.opts.messages!==false){n+=" , message: 'should match \"' + "+k+" + '\" schema' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(vErrors); "}else{n+=" validate.errors = vErrors; return false; "}}n+=" } ";if(c){n+=" else { "}}else{if(c){n+=" if (true) { "}}return n}},19031:(e,t,r)=>{"use strict";e.exports={$ref:r(19105),allOf:r(56688),anyOf:r(61098),$comment:r(59191),const:r(38183),contains:r(16593),dependencies:r(78),enum:r(10859),format:r(60271),if:r(55815),items:r(18044),maximum:r(82122),minimum:r(82122),maxItems:r(44740),minItems:r(44740),maxLength:r(30398),minLength:r(30398),maxProperties:r(71330),minProperties:r(71330),multipleOf:r(63570),not:r(22307),oneOf:r(56834),pattern:r(73306),properties:r(59809),propertyNames:r(26935),required:r(9310),uniqueItems:r(36581),validate:r(3932)}},18044:e=>{"use strict";e.exports=function generate_items(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="valid"+i;var h="errs__"+i;var m=e.util.copy(e);var g="";m.level++;var y="valid"+m.level;var v="i"+i,b=m.dataLevel=e.dataLevel+1,_="data"+b,E=e.baseId;n+="var "+h+" = errors;var "+d+";";if(Array.isArray(s)){var k=e.schema.additionalItems;if(k===false){n+=" "+d+" = "+l+".length <= "+s.length+"; ";var x=u;u=e.errSchemaPath+"/additionalItems";n+=" if (!"+d+") { ";var C=C||[];C.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+s.length+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have more than "+s.length+" items' "}if(e.opts.verbose){n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var O=n;n=C.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+O+"]); "}else{n+=" validate.errors = ["+O+"]; return false; "}}else{n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";u=x;if(c){g+="}";n+=" else { "}}var D=s;if(D){var B,P=-1,I=D.length-1;while(P0||B===false:e.util.schemaHasRules(B,e.RULES.all)){n+=" "+y+" = true; if ("+l+".length > "+P+") { ";var R=l+"["+P+"]";m.schema=B;m.schemaPath=a+"["+P+"]";m.errSchemaPath=u+"/"+P;m.errorPath=e.util.getPathExpr(e.errorPath,P,e.opts.jsonPointers,true);m.dataPathArr[b]=P;var N=e.validate(m);m.baseId=E;if(e.util.varOccurences(N,_)<2){n+=" "+e.util.varReplace(N,_,R)+" "}else{n+=" var "+_+" = "+R+"; "+N+" "}n+=" } ";if(c){n+=" if ("+y+") { ";g+="}"}}}}if(typeof k=="object"&&(e.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===false:e.util.schemaHasRules(k,e.RULES.all))){m.schema=k;m.schemaPath=e.schemaPath+".additionalItems";m.errSchemaPath=e.errSchemaPath+"/additionalItems";n+=" "+y+" = true; if ("+l+".length > "+s.length+") { for (var "+v+" = "+s.length+"; "+v+" < "+l+".length; "+v+"++) { ";m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var R=l+"["+v+"]";m.dataPathArr[b]=v;var N=e.validate(m);m.baseId=E;if(e.util.varOccurences(N,_)<2){n+=" "+e.util.varReplace(N,_,R)+" "}else{n+=" var "+_+" = "+R+"; "+N+" "}if(c){n+=" if (!"+y+") break; "}n+=" } } ";if(c){n+=" if ("+y+") { ";g+="}"}}}else if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){m.schema=s;m.schemaPath=a;m.errSchemaPath=u;n+=" for (var "+v+" = "+0+"; "+v+" < "+l+".length; "+v+"++) { ";m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var R=l+"["+v+"]";m.dataPathArr[b]=v;var N=e.validate(m);m.baseId=E;if(e.util.varOccurences(N,_)<2){n+=" "+e.util.varReplace(N,_,R)+" "}else{n+=" var "+_+" = "+R+"; "+N+" "}if(c){n+=" if (!"+y+") break; "}n+=" }"}if(c){n+=" "+g+" if ("+h+" == errors) {"}return n}},63570:e=>{"use strict";e.exports=function generate_multipleOf(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d=e.opts.$data&&s&&s.$data,h;if(d){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";h="schema"+i}else{h=s}if(!(d||typeof s=="number")){throw new Error(t+" must be number")}n+="var division"+i+";if (";if(d){n+=" "+h+" !== undefined && ( typeof "+h+" != 'number' || "}n+=" (division"+i+" = "+l+" / "+h+", ";if(e.opts.multipleOfPrecision){n+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" "}else{n+=" division"+i+" !== parseInt(division"+i+") "}n+=" ) ";if(d){n+=" ) "}n+=" ) { ";var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+h+" } ";if(e.opts.messages!==false){n+=" , message: 'should be multiple of ";if(d){n+="' + "+h}else{n+=""+h+"'"}}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+a}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var g=n;n=m.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+g+"]); "}else{n+=" validate.errors = ["+g+"]; return false; "}}else{n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(c){n+=" else { "}return n}},22307:e=>{"use strict";e.exports=function generate_not(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="errs__"+i;var h=e.util.copy(e);h.level++;var m="valid"+h.level;if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){h.schema=s;h.schemaPath=a;h.errSchemaPath=u;n+=" var "+d+" = errors; ";var g=e.compositeRule;e.compositeRule=h.compositeRule=true;h.createErrors=false;var y;if(h.opts.allErrors){y=h.opts.allErrors;h.opts.allErrors=false}n+=" "+e.validate(h)+" ";h.createErrors=true;if(y)h.opts.allErrors=y;e.compositeRule=h.compositeRule=g;n+=" if ("+m+") { ";var v=v||[];v.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should NOT be valid' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var b=n;n=v.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+b+"]); "}else{n+=" validate.errors = ["+b+"]; return false; "}}else{n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ";if(e.opts.allErrors){n+=" } "}}else{n+=" var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should NOT be valid' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(c){n+=" if (false) { "}}return n}},56834:e=>{"use strict";e.exports=function generate_oneOf(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="valid"+i;var h="errs__"+i;var m=e.util.copy(e);var g="";m.level++;var y="valid"+m.level;var v=m.baseId,b="prevValid"+i,_="passingSchemas"+i;n+="var "+h+" = errors , "+b+" = false , "+d+" = false , "+_+" = null; ";var E=e.compositeRule;e.compositeRule=m.compositeRule=true;var k=s;if(k){var x,C=-1,O=k.length-1;while(C0||x===false:e.util.schemaHasRules(x,e.RULES.all)){m.schema=x;m.schemaPath=a+"["+C+"]";m.errSchemaPath=u+"/"+C;n+=" "+e.validate(m)+" ";m.baseId=v}else{n+=" var "+y+" = true; "}if(C){n+=" if ("+y+" && "+b+") { "+d+" = false; "+_+" = ["+_+", "+C+"]; } else { ";g+="}"}n+=" if ("+y+") { "+d+" = "+b+" = true; "+_+" = "+C+"; }"}}e.compositeRule=m.compositeRule=E;n+=""+g+"if (!"+d+") { var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+_+" } ";if(e.opts.messages!==false){n+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(vErrors); "}else{n+=" validate.errors = vErrors; return false; "}}n+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }";if(e.opts.allErrors){n+=" } "}return n}},73306:e=>{"use strict";e.exports=function generate_pattern(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d=e.opts.$data&&s&&s.$data,h;if(d){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";h="schema"+i}else{h=s}var m=d?"(new RegExp("+h+"))":e.usePattern(s);n+="if ( ";if(d){n+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "}n+=" !"+m+".test("+l+") ) { ";var g=g||[];g.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ";if(d){n+=""+h}else{n+=""+e.util.toQuotedString(s)}n+=" } ";if(e.opts.messages!==false){n+=" , message: 'should match pattern \"";if(d){n+="' + "+h+" + '"}else{n+=""+e.util.escapeQuotes(s)}n+="\"' "}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+a}else{n+=""+e.util.toQuotedString(s)}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var y=n;n=g.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+y+"]); "}else{n+=" validate.errors = ["+y+"]; return false; "}}else{n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(c){n+=" else { "}return n}},59809:e=>{"use strict";e.exports=function generate_properties(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="errs__"+i;var h=e.util.copy(e);var m="";h.level++;var g="valid"+h.level;var y="key"+i,v="idx"+i,b=h.dataLevel=e.dataLevel+1,_="data"+b,E="dataProperties"+i;var k=Object.keys(s||{}).filter(notProto),x=e.schema.patternProperties||{},C=Object.keys(x).filter(notProto),O=e.schema.additionalProperties,D=k.length||C.length,B=O===false,P=typeof O=="object"&&Object.keys(O).length,I=e.opts.removeAdditional,R=B||P||I,N=e.opts.ownProperties,$=e.baseId;var L=e.schema.required;if(L&&!(e.opts.$data&&L.$data)&&L.length8){n+=" || validate.schema"+a+".hasOwnProperty("+y+") "}else{var z=k;if(z){var U,V=-1,W=z.length-1;while(V0||pe===false:e.util.schemaHasRules(pe,e.RULES.all)){var fe=e.util.getProperty(U),oe=l+fe,de=ae&&pe.default!==undefined;h.schema=pe;h.schemaPath=a+fe;h.errSchemaPath=u+"/"+e.util.escapeFragment(U);h.errorPath=e.util.getPath(e.errorPath,U,e.opts.jsonPointers);h.dataPathArr[b]=e.util.toQuotedString(U);var se=e.validate(h);h.baseId=$;if(e.util.varOccurences(se,_)<2){se=e.util.varReplace(se,_,oe);var he=oe}else{var he=_;n+=" var "+_+" = "+oe+"; "}if(de){n+=" "+se+" "}else{if(q&&q[U]){n+=" if ( "+he+" === undefined ";if(N){n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(U)+"') "}n+=") { "+g+" = false; ";var X=e.errorPath,te=u,me=e.util.escapeQuotes(U);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(X,U,e.opts.jsonPointers)}u=e.errSchemaPath+"/required";var re=re||[];re.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+me+"' } ";if(e.opts.messages!==false){n+=" , message: '";if(e.opts._errorDataPathProperty){n+="is a required property"}else{n+="should have required property \\'"+me+"\\'"}n+="' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var ne=n;n=re.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+ne+"]); "}else{n+=" validate.errors = ["+ne+"]; return false; "}}else{n+=" var err = "+ne+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}u=te;e.errorPath=X;n+=" } else { "}else{if(c){n+=" if ( "+he+" === undefined ";if(N){n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(U)+"') "}n+=") { "+g+" = true; } else { "}else{n+=" if ("+he+" !== undefined ";if(N){n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(U)+"') "}n+=" ) { "}}n+=" "+se+" } "}}if(c){n+=" if ("+g+") { ";m+="}"}}}}if(C.length){var ge=C;if(ge){var Q,ye=-1,ve=ge.length-1;while(ye0||pe===false:e.util.schemaHasRules(pe,e.RULES.all)){h.schema=pe;h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(Q);h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(Q);if(N){n+=" "+E+" = "+E+" || Object.keys("+l+"); for (var "+v+"=0; "+v+"<"+E+".length; "+v+"++) { var "+y+" = "+E+"["+v+"]; "}else{n+=" for (var "+y+" in "+l+") { "}n+=" if ("+e.usePattern(Q)+".test("+y+")) { ";h.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var oe=l+"["+y+"]";h.dataPathArr[b]=y;var se=e.validate(h);h.baseId=$;if(e.util.varOccurences(se,_)<2){n+=" "+e.util.varReplace(se,_,oe)+" "}else{n+=" var "+_+" = "+oe+"; "+se+" "}if(c){n+=" if (!"+g+") break; "}n+=" } ";if(c){n+=" else "+g+" = true; "}n+=" } ";if(c){n+=" if ("+g+") { ";m+="}"}}}}}if(c){n+=" "+m+" if ("+d+" == errors) {"}return n}},26935:e=>{"use strict";e.exports=function generate_propertyNames(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="errs__"+i;var h=e.util.copy(e);var m="";h.level++;var g="valid"+h.level;n+="var "+d+" = errors;";if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){h.schema=s;h.schemaPath=a;h.errSchemaPath=u;var y="key"+i,v="idx"+i,b="i"+i,_="' + "+y+" + '",E=h.dataLevel=e.dataLevel+1,k="data"+E,x="dataProperties"+i,C=e.opts.ownProperties,O=e.baseId;if(C){n+=" var "+x+" = undefined; "}if(C){n+=" "+x+" = "+x+" || Object.keys("+l+"); for (var "+v+"=0; "+v+"<"+x+".length; "+v+"++) { var "+y+" = "+x+"["+v+"]; "}else{n+=" for (var "+y+" in "+l+") { "}n+=" var startErrs"+i+" = errors; ";var D=y;var B=e.compositeRule;e.compositeRule=h.compositeRule=true;var P=e.validate(h);h.baseId=O;if(e.util.varOccurences(P,k)<2){n+=" "+e.util.varReplace(P,k,D)+" "}else{n+=" var "+k+" = "+D+"; "+P+" "}e.compositeRule=h.compositeRule=B;n+=" if (!"+g+") { for (var "+b+"=startErrs"+i+"; "+b+"{"use strict";e.exports=function generate_ref(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var c="data"+(o||"");var l="valid"+i;var d,h;if(s=="#"||s=="#/"){if(e.isRoot){d=e.async;h="validate"}else{d=e.root.schema.$async===true;h="root.refVal[0]"}}else{var m=e.resolveRef(e.baseId,s,e.isRoot);if(m===undefined){var g=e.MissingRefError.message(e.baseId,s);if(e.opts.missingRefs=="fail"){e.logger.error(g);var y=y||[];y.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(a)+" , params: { ref: '"+e.util.escapeQuotes(s)+"' } ";if(e.opts.messages!==false){n+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(s)+"' "}if(e.opts.verbose){n+=" , schema: "+e.util.toQuotedString(s)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var v=n;n=y.pop();if(!e.compositeRule&&u){if(e.async){n+=" throw new ValidationError(["+v+"]); "}else{n+=" validate.errors = ["+v+"]; return false; "}}else{n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(u){n+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(g);if(u){n+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,s,g)}}else if(m.inline){var b=e.util.copy(e);b.level++;var _="valid"+b.level;b.schema=m.schema;b.schemaPath="";b.errSchemaPath=s;var E=e.validate(b).replace(/validate\.schema/g,m.code);n+=" "+E+" ";if(u){n+=" if ("+_+") { "}}else{d=m.$async===true||e.async&&m.$async!==false;h=m.code}}if(h){var y=y||[];y.push(n);n="";if(e.opts.passContext){n+=" "+h+".call(this, "}else{n+=" "+h+"( "}n+=" "+c+", (dataPath || '')";if(e.errorPath!='""'){n+=" + "+e.errorPath}var k=o?"data"+(o-1||""):"parentData",x=o?e.dataPathArr[o]:"parentDataProperty";n+=" , "+k+" , "+x+", rootData) ";var C=n;n=y.pop();if(d){if(!e.async)throw new Error("async schema referenced by sync schema");if(u){n+=" var "+l+"; "}n+=" try { await "+C+"; ";if(u){n+=" "+l+" = true; "}n+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(u){n+=" "+l+" = false; "}n+=" } ";if(u){n+=" if ("+l+") { "}}else{n+=" if (!"+C+") { if (vErrors === null) vErrors = "+h+".errors; else vErrors = vErrors.concat("+h+".errors); errors = vErrors.length; } ";if(u){n+=" else { "}}}return n}},9310:e=>{"use strict";e.exports=function generate_required(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="valid"+i;var h=e.opts.$data&&s&&s.$data,m;if(h){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";m="schema"+i}else{m=s}var g="schema"+i;if(!h){if(s.length0||k===false:e.util.schemaHasRules(k,e.RULES.all)))){y[y.length]=b}}}}else{var y=s}}if(h||y.length){var x=e.errorPath,C=h||y.length>=e.opts.loopRequired,O=e.opts.ownProperties;if(c){n+=" var missing"+i+"; ";if(C){if(!h){n+=" var "+g+" = validate.schema"+a+"; "}var D="i"+i,B="schema"+i+"["+D+"]",P="' + "+B+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(x,B,e.opts.jsonPointers)}n+=" var "+d+" = true; ";if(h){n+=" if (schema"+i+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+i+")) "+d+" = false; else {"}n+=" for (var "+D+" = 0; "+D+" < "+g+".length; "+D+"++) { "+d+" = "+l+"["+g+"["+D+"]] !== undefined ";if(O){n+=" && Object.prototype.hasOwnProperty.call("+l+", "+g+"["+D+"]) "}n+="; if (!"+d+") break; } ";if(h){n+=" } "}n+=" if (!"+d+") { ";var I=I||[];I.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+P+"' } ";if(e.opts.messages!==false){n+=" , message: '";if(e.opts._errorDataPathProperty){n+="is a required property"}else{n+="should have required property \\'"+P+"\\'"}n+="' "}if(e.opts.verbose){n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var R=n;n=I.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+R+"]); "}else{n+=" validate.errors = ["+R+"]; return false; "}}else{n+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { "}else{n+=" if ( ";var N=y;if(N){var $,D=-1,L=N.length-1;while(D{"use strict";e.exports=function generate_uniqueItems(e,t,r){var n=" ";var i=e.level;var o=e.dataLevel;var s=e.schema[t];var a=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var l="data"+(o||"");var d="valid"+i;var h=e.opts.$data&&s&&s.$data,m;if(h){n+=" var schema"+i+" = "+e.util.getData(s.$data,o,e.dataPathArr)+"; ";m="schema"+i}else{m=s}if((s||h)&&e.opts.uniqueItems!==false){if(h){n+=" var "+d+"; if ("+m+" === false || "+m+" === undefined) "+d+" = true; else if (typeof "+m+" != 'boolean') "+d+" = false; else { "}n+=" var i = "+l+".length , "+d+" = true , j; if (i > 1) { ";var g=e.schema.items&&e.schema.items.type,y=Array.isArray(g);if(!g||g=="object"||g=="array"||y&&(g.indexOf("object")>=0||g.indexOf("array")>=0)){n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+l+"[i], "+l+"[j])) { "+d+" = false; break outer; } } } "}else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+l+"[i]; ";var v="checkDataType"+(y?"s":"");n+=" if ("+e.util[v](g,"item",e.opts.strictNumbers,true)+") continue; ";if(y){n+=" if (typeof item == 'string') item = '\"' + item; "}n+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ";if(h){n+=" } "}n+=" if (!"+d+") { ";var b=b||[];b.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){n+=" , schema: ";if(h){n+="validate.schema"+a}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}n+=" } "}else{n+=" {} "}var _=n;n=b.pop();if(!e.compositeRule&&c){if(e.async){n+=" throw new ValidationError(["+_+"]); "}else{n+=" validate.errors = ["+_+"]; return false; "}}else{n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(c){n+=" else { "}}else{if(c){n+=" if (true) { "}}return n}},3932:e=>{"use strict";e.exports=function generate_validate(e,t,r){var n="";var i=e.schema.$async===true,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords){var a=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(a){var u="unknown keyword: "+a;if(e.opts.strictKeywords==="log")e.logger.warn(u);else throw new Error(u)}}if(e.isTop){n+=" var validate = ";if(i){e.async=true;n+="async "}n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(s&&(e.opts.sourceCode||e.opts.processCode)){n+=" "+("/*# sourceURL="+s+" */")+" "}}if(typeof e.schema=="boolean"||!(o||e.schema.$ref)){var t="false schema";var c=e.level;var l=e.dataLevel;var d=e.schema[t];var h=e.schemaPath+e.util.getProperty(t);var m=e.errSchemaPath+"/"+t;var g=!e.opts.allErrors;var y;var v="data"+(l||"");var b="valid"+c;if(e.schema===false){if(e.isTop){g=true}else{n+=" var "+b+" = false; "}var _=_||[];_.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(y||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'boolean schema is false' "}if(e.opts.verbose){n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}n+=" } "}else{n+=" {} "}var E=n;n=_.pop();if(!e.compositeRule&&g){if(e.async){n+=" throw new ValidationError(["+E+"]); "}else{n+=" validate.errors = ["+E+"]; return false; "}}else{n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(i){n+=" return data; "}else{n+=" validate.errors = null; return true; "}}else{n+=" var "+b+" = true; "}}if(e.isTop){n+=" }; return validate; "}return n}if(e.isTop){var k=e.isTop,c=e.level=0,l=e.dataLevel=0,v="data";e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema));e.baseId=e.baseId||e.rootId;delete e.isTop;e.dataPathArr=[""];if(e.schema.default!==undefined&&e.opts.useDefaults&&e.opts.strictDefaults){var x="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(x);else throw new Error(x)}n+=" var vErrors = null; ";n+=" var errors = 0; ";n+=" if (rootData === undefined) rootData = data; "}else{var c=e.level,l=e.dataLevel,v="data"+(l||"");if(s)e.baseId=e.resolve.url(e.baseId,s);if(i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}var b="valid"+c,g=!e.opts.allErrors,C="",O="";var y;var D=e.schema.type,B=Array.isArray(D);if(D&&e.opts.nullable&&e.schema.nullable===true){if(B){if(D.indexOf("null")==-1)D=D.concat("null")}else if(D!="null"){D=[D,"null"];B=true}}if(B&&D.length==1){D=D[0];B=false}if(e.schema.$ref&&o){if(e.opts.extendRefs=="fail"){throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)')}else if(e.opts.extendRefs!==true){o=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){n+=" "+e.RULES.all.$comment.code(e,"$comment")}if(D){if(e.opts.coerceTypes){var P=e.util.coerceToTypes(e.opts.coerceTypes,D)}var I=e.RULES.types[D];if(P||B||I===true||I&&!$shouldUseGroup(I)){var h=e.schemaPath+".type",m=e.errSchemaPath+"/type";var h=e.schemaPath+".type",m=e.errSchemaPath+"/type",R=B?"checkDataTypes":"checkDataType";n+=" if ("+e.util[R](D,v,e.opts.strictNumbers,true)+") { ";if(P){var N="dataType"+c,$="coerced"+c;n+=" var "+N+" = typeof "+v+"; var "+$+" = undefined; ";if(e.opts.coerceTypes=="array"){n+=" if ("+N+" == 'object' && Array.isArray("+v+") && "+v+".length == 1) { "+v+" = "+v+"[0]; "+N+" = typeof "+v+"; if ("+e.util.checkDataType(e.schema.type,v,e.opts.strictNumbers)+") "+$+" = "+v+"; } "}n+=" if ("+$+" !== undefined) ; ";var L=P;if(L){var q,z=-1,U=L.length-1;while(z{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i;var i=r(19658);var o=r(52174);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,true);var o=t.type;if(Array.isArray(o)){for(var s=0;s{"use strict";var n=r(57323);var i=r(91656);var o=r(13859);e.exports=function findIndex(e){var t=o(this);var r=i(t.length);if(!n(e)){throw new TypeError("Array#findIndex: predicate must be a function")}if(r===0){return-1}var s;if(arguments.length>0){s=arguments[1]}for(var a=0,u;a{"use strict";var n=r(80981);var i=r(22886);var o=r(67151);var s=r(3068);var a=r(69897);var u=Array.prototype.slice;var c=s();var l=function findIndex(e,t){i(e);var r=u.call(arguments,1);return c.apply(e,r)};n(l,{getPolyfill:s,implementation:o,shim:a});e.exports=l},3068:(e,t,r)=>{"use strict";var n=r(67151);e.exports=function getPolyfill(){var e=Array.prototype.findIndex&&[,1].findIndex((function(e,t){return t===0}))===0;return e?Array.prototype.findIndex:n}},69897:(e,t,r)=>{"use strict";var n=r(80981);var i=r(3068);e.exports=function shimFindIndex(){var e=i();n(Array.prototype,{findIndex:e},{findIndex:function(){return Array.prototype.findIndex!==e}});return e}},1681:e=>{e.exports={newInvalidAsn1Error:function(e){var t=new Error;t.name="InvalidAsn1Error";t.message=e||"";return t}}},5447:(e,t,r)=>{var n=r(1681);var i=r(44539);var o=r(95882);var s=r(85490);e.exports={Reader:o,Writer:s};for(var a in i){if(i.hasOwnProperty(a))e.exports[a]=i[a]}for(var u in n){if(n.hasOwnProperty(u))e.exports[u]=n[u]}},95882:(e,t,r)=>{var n=r(39491);var i=r(18874).Buffer;var o=r(44539);var s=r(1681);var a=s.newInvalidAsn1Error;function Reader(e){if(!e||!i.isBuffer(e))throw new TypeError("data must be a node Buffer");this._buf=e;this._size=e.length;this._len=0;this._offset=0}Object.defineProperty(Reader.prototype,"length",{enumerable:true,get:function(){return this._len}});Object.defineProperty(Reader.prototype,"offset",{enumerable:true,get:function(){return this._offset}});Object.defineProperty(Reader.prototype,"remain",{get:function(){return this._size-this._offset}});Object.defineProperty(Reader.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}});Reader.prototype.readByte=function(e){if(this._size-this._offset<1)return null;var t=this._buf[this._offset]&255;if(!e)this._offset+=1;return t};Reader.prototype.peek=function(){return this.readByte(true)};Reader.prototype.readLength=function(e){if(e===undefined)e=this._offset;if(e>=this._size)return null;var t=this._buf[e++]&255;if(t===null)return null;if((t&128)===128){t&=127;if(t===0)throw a("Indefinite length not supported");if(t>4)throw a("encoding too long");if(this._size-ethis._size-n)return null;this._offset=n;if(this.length===0)return t?i.alloc(0):"";var s=this._buf.slice(this._offset,this._offset+this.length);this._offset+=this.length;return t?s:s.toString("utf8")};Reader.prototype.readOID=function(e){if(!e)e=o.OID;var t=this.readString(e,true);if(t===null)return null;var r=[];var n=0;for(var i=0;i>0);return r.join(".")};Reader.prototype._readTag=function(e){n.ok(e!==undefined);var t=this.peek();if(t===null)return null;if(t!==e)throw a("Expected 0x"+e.toString(16)+": got 0x"+t.toString(16));var r=this.readLength(this._offset+1);if(r===null)return null;if(this.length>4)throw a("Integer too long: "+this.length);if(this.length>this._size-r)return null;this._offset=r;var i=this._buf[this._offset];var o=0;for(var s=0;s>0};e.exports=Reader},44539:e=>{e.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}},85490:(e,t,r)=>{var n=r(39491);var i=r(18874).Buffer;var o=r(44539);var s=r(1681);var a=s.newInvalidAsn1Error;var u={size:1024,growthFactor:8};function merge(e,t){n.ok(e);n.equal(typeof e,"object");n.ok(t);n.equal(typeof t,"object");var r=Object.getOwnPropertyNames(e);r.forEach((function(r){if(t[r])return;var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n)}));return t}function Writer(e){e=merge(u,e||{});this._buf=i.alloc(e.size||1024);this._size=this._buf.length;this._offset=0;this._options=e;this._seq=[]}Object.defineProperty(Writer.prototype,"buffer",{get:function(){if(this._seq.length)throw a(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}});Writer.prototype.writeByte=function(e){if(typeof e!=="number")throw new TypeError("argument must be a Number");this._ensure(1);this._buf[this._offset++]=e};Writer.prototype.writeInt=function(e,t){if(typeof e!=="number")throw new TypeError("argument must be a Number");if(typeof t!=="number")t=o.Integer;var r=4;while(((e&4286578688)===0||(e&4286578688)===4286578688>>0)&&r>1){r--;e<<=8}if(r>4)throw a("BER ints cannot be > 0xffffffff");this._ensure(2+r);this._buf[this._offset++]=t;this._buf[this._offset++]=r;while(r-- >0){this._buf[this._offset++]=(e&4278190080)>>>24;e<<=8}};Writer.prototype.writeNull=function(){this.writeByte(o.Null);this.writeByte(0)};Writer.prototype.writeEnumeration=function(e,t){if(typeof e!=="number")throw new TypeError("argument must be a Number");if(typeof t!=="number")t=o.Enumeration;return this.writeInt(e,t)};Writer.prototype.writeBoolean=function(e,t){if(typeof e!=="boolean")throw new TypeError("argument must be a Boolean");if(typeof t!=="number")t=o.Boolean;this._ensure(3);this._buf[this._offset++]=t;this._buf[this._offset++]=1;this._buf[this._offset++]=e?255:0};Writer.prototype.writeString=function(e,t){if(typeof e!=="string")throw new TypeError("argument must be a string (was: "+typeof e+")");if(typeof t!=="number")t=o.OctetString;var r=i.byteLength(e);this.writeByte(t);this.writeLength(r);if(r){this._ensure(r);this._buf.write(e,this._offset);this._offset+=r}};Writer.prototype.writeBuffer=function(e,t){if(typeof t!=="number")throw new TypeError("tag must be a number");if(!i.isBuffer(e))throw new TypeError("argument must be a buffer");this.writeByte(t);this.writeLength(e.length);this._ensure(e.length);e.copy(this._buf,this._offset,0,e.length);this._offset+=e.length};Writer.prototype.writeStringArray=function(e){if(!e instanceof Array)throw new TypeError("argument must be an Array[String]");var t=this;e.forEach((function(e){t.writeString(e)}))};Writer.prototype.writeOID=function(e,t){if(typeof e!=="string")throw new TypeError("argument must be a string");if(typeof t!=="number")t=o.OID;if(!/^([0-9]+\.){3,}[0-9]+$/.test(e))throw new Error("argument is not a valid OID string");function encodeOctet(e,t){if(t<128){e.push(t)}else if(t<16384){e.push(t>>>7|128);e.push(t&127)}else if(t<2097152){e.push(t>>>14|128);e.push((t>>>7|128)&255);e.push(t&127)}else if(t<268435456){e.push(t>>>21|128);e.push((t>>>14|128)&255);e.push((t>>>7|128)&255);e.push(t&127)}else{e.push((t>>>28|128)&255);e.push((t>>>21|128)&255);e.push((t>>>14|128)&255);e.push((t>>>7|128)&255);e.push(t&127)}}var r=e.split(".");var n=[];n.push(parseInt(r[0],10)*40+parseInt(r[1],10));r.slice(2).forEach((function(e){encodeOctet(n,parseInt(e,10))}));var i=this;this._ensure(2+n.length);this.writeByte(t);this.writeLength(n.length);n.forEach((function(e){i.writeByte(e)}))};Writer.prototype.writeLength=function(e){if(typeof e!=="number")throw new TypeError("argument must be a Number");this._ensure(4);if(e<=127){this._buf[this._offset++]=e}else if(e<=255){this._buf[this._offset++]=129;this._buf[this._offset++]=e}else if(e<=65535){this._buf[this._offset++]=130;this._buf[this._offset++]=e>>8;this._buf[this._offset++]=e}else if(e<=16777215){this._buf[this._offset++]=131;this._buf[this._offset++]=e>>16;this._buf[this._offset++]=e>>8;this._buf[this._offset++]=e}else{throw a("Length too long (> 4 bytes)")}};Writer.prototype.startSequence=function(e){if(typeof e!=="number")e=o.Sequence|o.Constructor;this.writeByte(e);this._seq.push(this._offset);this._ensure(3);this._offset+=3};Writer.prototype.endSequence=function(){var e=this._seq.pop();var t=e+3;var r=this._offset-t;if(r<=127){this._shift(t,r,-2);this._buf[e]=r}else if(r<=255){this._shift(t,r,-1);this._buf[e]=129;this._buf[e+1]=r}else if(r<=65535){this._buf[e]=130;this._buf[e+1]=r>>8;this._buf[e+2]=r}else if(r<=16777215){this._shift(t,r,1);this._buf[e]=131;this._buf[e+1]=r>>16;this._buf[e+2]=r>>8;this._buf[e+3]=r}else{throw a("Sequence too long")}};Writer.prototype._shift=function(e,t,r){n.ok(e!==undefined);n.ok(t!==undefined);n.ok(r);this._buf.copy(this._buf,e+r,e,e+t);this._offset+=r};Writer.prototype._ensure=function(e){n.ok(e);if(this._size-this._offset{var n=r(5447);e.exports={Ber:n,BerReader:n.Reader,BerWriter:n.Writer}},31258:(e,t,r)=>{var n=r(39491);var i=r(12781).Stream;var o=r(73837);var s=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function _capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}function _toss(e,t,r,i,s){throw new n.AssertionError({message:o.format("%s (%s) is required",e,t),actual:s===undefined?typeof i:s(i),expected:t,operator:r||"===",stackStartFunction:_toss.caller})}function _getClass(e){return Object.prototype.toString.call(e).slice(8,-1)}function noop(){}var a={bool:{check:function(e){return typeof e==="boolean"}},func:{check:function(e){return typeof e==="function"}},string:{check:function(e){return typeof e==="string"}},object:{check:function(e){return typeof e==="object"&&e!==null}},number:{check:function(e){return typeof e==="number"&&!isNaN(e)}},finite:{check:function(e){return typeof e==="number"&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return Buffer.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof i},operator:"instanceof",actual:_getClass},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:_getClass},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:_getClass},uuid:{check:function(e){return typeof e==="string"&&s.test(e)},operator:"isUUID"}};function _setExports(e){var t=Object.keys(a);var r;if(process.env.NODE_NDEBUG){r=noop}else{r=function(e,t){if(!e){_toss(t,"true",e)}}}t.forEach((function(t){if(e){r[t]=noop;return}var n=a[t];r[t]=function(e,r){if(!n.check(e)){_toss(r,t,n.operator,e,n.actual)}}}));t.forEach((function(t){var n="optional"+_capitalize(t);if(e){r[n]=noop;return}var i=a[t];r[n]=function(e,r){if(e===undefined||e===null){return}if(!i.check(e)){_toss(r,t,i.operator,e,i.actual)}}}));t.forEach((function(t){var n="arrayOf"+_capitalize(t);if(e){r[n]=noop;return}var i=a[t];var o="["+t+"]";r[n]=function(e,t){if(!Array.isArray(e)){_toss(t,o,i.operator,e,i.actual)}var r;for(r=0;r{e.exports={parallel:r(80856),serial:r(76570),serialOrdered:r(1826)}},57358:e=>{e.exports=abort;function abort(e){Object.keys(e.jobs).forEach(clean.bind(e));e.jobs={}}function clean(e){if(typeof this.jobs[e]=="function"){this.jobs[e]()}}},69698:(e,t,r)=>{var n=r(14413);e.exports=async;function async(e){var t=false;n((function(){t=true}));return function async_callback(r,i){if(t){e(r,i)}else{n((function nextTick_callback(){e(r,i)}))}}}},14413:e=>{e.exports=defer;function defer(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(t){t(e)}else{setTimeout(e,0)}}},32255:(e,t,r)=>{var n=r(69698),i=r(57358);e.exports=iterate;function iterate(e,t,r,n){var o=r["keyedList"]?r["keyedList"][r.index]:r.index;r.jobs[o]=runJob(t,o,e[o],(function(e,t){if(!(o in r.jobs)){return}delete r.jobs[o];if(e){i(r)}else{r.results[o]=t}n(e,r.results)}))}function runJob(e,t,r,i){var o;if(e.length==2){o=e(r,n(i))}else{o=e(r,t,n(i))}return o}},89052:e=>{e.exports=state;function state(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};if(t){n.keyedList.sort(r?t:function(r,n){return t(e[r],e[n])})}return n}},71568:(e,t,r)=>{var n=r(57358),i=r(69698);e.exports=terminator;function terminator(e){if(!Object.keys(this.jobs).length){return}this.index=this.size;n(this);i(e)(null,this.results)}},80856:(e,t,r)=>{var n=r(32255),i=r(89052),o=r(71568);e.exports=parallel;function parallel(e,t,r){var s=i(e);while(s.index<(s["keyedList"]||e).length){n(e,t,s,(function(e,t){if(e){r(e,t);return}if(Object.keys(s.jobs).length===0){r(null,s.results);return}}));s.index++}return o.bind(s,r)}},76570:(e,t,r)=>{var n=r(1826);e.exports=serial;function serial(e,t,r){return n(e,t,null,r)}},1826:(e,t,r)=>{var n=r(32255),i=r(89052),o=r(71568);e.exports=serialOrdered;e.exports.ascending=ascending;e.exports.descending=descending;function serialOrdered(e,t,r,s){var a=i(e,r);n(e,t,a,(function iteratorHandler(r,i){if(r){s(r,i);return}a.index++;if(a.index<(a["keyedList"]||e).length){n(e,t,a,iteratorHandler);return}s(null,a.results)}));return o.bind(a,s)}function ascending(e,t){return et?1:0}function descending(e,t){return-1*ascending(e,t)}},17853:(e,t,r)=>{ /*! * Copyright 2010 LearnBoost * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var n=r(6113),i=r(57310).parse;var o=["acl","location","logging","notification","partNumber","policy","requestPayment","torrent","uploadId","uploads","versionId","versioning","versions","website"];function authorization(e){return"AWS "+e.key+":"+sign(e)}e.exports=authorization;e.exports.authorization=authorization;function hmacSha1(e){return n.createHmac("sha1",e.secret).update(e.message).digest("base64")}e.exports.hmacSha1=hmacSha1;function sign(e){e.message=stringToSign(e);return hmacSha1(e)}e.exports.sign=sign;function signQuery(e){e.message=queryStringToSign(e);return hmacSha1(e)}e.exports.signQuery=signQuery;function stringToSign(e){var t=e.amazonHeaders||"";if(t)t+="\n";var r=[e.verb,e.md5,e.contentType,e.date?e.date.toUTCString():"",t+e.resource];return r.join("\n")}e.exports.stringToSign=stringToSign;function queryStringToSign(e){return"GET\n\n\n"+e.date+"\n"+e.resource}e.exports.queryStringToSign=queryStringToSign;function canonicalizeHeaders(e){var t=[],r=Object.keys(e);for(var n=0,i=r.length;n{var n=t,i=r(57310),o=r(63477),s=r(6113),a=r(27087),u=a(1e3);function hmac(e,t,r){return s.createHmac("sha256",e).update(t,"utf8").digest(r)}function hash(e,t){return s.createHash("sha256").update(e,"utf8").digest(t)}function encodeRfc3986(e){return e.replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeRfc3986Full(e){return encodeRfc3986(encodeURIComponent(e))}var c={authorization:true,connection:true,"x-amzn-trace-id":true,"user-agent":true,expect:true,"presigned-expires":true,range:true};function RequestSigner(e,t){if(typeof e==="string")e=i.parse(e);var r=e.headers=e.headers||{},n=(!this.service||!this.region)&&this.matchHost(e.hostname||e.host||r.Host||r.host);this.request=e;this.credentials=t||this.defaultCredentials();this.service=e.service||n[0]||"";this.region=e.region||n[1]||"us-east-1";if(this.service==="email")this.service="ses";if(!e.method&&e.body)e.method="POST";if(!r.Host&&!r.host){r.Host=e.hostname||e.host||this.createHost();if(e.port)r.Host+=":"+e.port}if(!e.hostname&&!e.host)e.hostname=r.Host||r.host;this.isCodeCommitGit=this.service==="codecommit"&&e.method==="GIT"}RequestSigner.prototype.matchHost=function(e){var t=(e||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/);var r=(t||[]).slice(1,3);if(r[1]==="es")r=r.reverse();if(r[1]=="s3"){r[0]="s3";r[1]="us-east-1"}else{for(var n=0;n<2;n++){if(/^s3-/.test(r[n])){r[1]=r[n].slice(3);r[0]="s3";break}}}return r};RequestSigner.prototype.isSingleRegion=function(){if(["s3","sdb"].indexOf(this.service)>=0&&this.region==="us-east-1")return true;return["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0};RequestSigner.prototype.createHost=function(){var e=this.isSingleRegion()?"":"."+this.region,t=this.service==="ses"?"email":this.service;return t+e+".amazonaws.com"};RequestSigner.prototype.prepareRequest=function(){this.parsePath();var e=this.request,t=e.headers,r;if(e.signQuery){this.parsedPath.query=r=this.parsedPath.query||{};if(this.credentials.sessionToken)r["X-Amz-Security-Token"]=this.credentials.sessionToken;if(this.service==="s3"&&!r["X-Amz-Expires"])r["X-Amz-Expires"]=86400;if(r["X-Amz-Date"])this.datetime=r["X-Amz-Date"];else r["X-Amz-Date"]=this.getDateTime();r["X-Amz-Algorithm"]="AWS4-HMAC-SHA256";r["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString();r["X-Amz-SignedHeaders"]=this.signedHeaders()}else{if(!e.doNotModifyHeaders&&!this.isCodeCommitGit){if(e.body&&!t["Content-Type"]&&!t["content-type"])t["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";if(e.body&&!t["Content-Length"]&&!t["content-length"])t["Content-Length"]=Buffer.byteLength(e.body);if(this.credentials.sessionToken&&!t["X-Amz-Security-Token"]&&!t["x-amz-security-token"])t["X-Amz-Security-Token"]=this.credentials.sessionToken;if(this.service==="s3"&&!t["X-Amz-Content-Sha256"]&&!t["x-amz-content-sha256"])t["X-Amz-Content-Sha256"]=hash(this.request.body||"","hex");if(t["X-Amz-Date"]||t["x-amz-date"])this.datetime=t["X-Amz-Date"]||t["x-amz-date"];else t["X-Amz-Date"]=this.getDateTime()}delete t.Authorization;delete t.authorization}};RequestSigner.prototype.sign=function(){if(!this.parsedPath)this.prepareRequest();if(this.request.signQuery){this.parsedPath.query["X-Amz-Signature"]=this.signature()}else{this.request.headers.Authorization=this.authHeader()}this.request.path=this.formatPath();return this.request};RequestSigner.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,"");if(this.isCodeCommitGit)this.datetime=this.datetime.slice(0,-1)}return this.datetime};RequestSigner.prototype.getDate=function(){return this.getDateTime().substr(0,8)};RequestSigner.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")};RequestSigner.prototype.signature=function(){var e=this.getDate(),t=[this.credentials.secretAccessKey,e,this.region,this.service].join(),r,n,i,o=u.get(t);if(!o){r=hmac("AWS4"+this.credentials.secretAccessKey,e);n=hmac(r,this.region);i=hmac(n,this.service);o=hmac(i,"aws4_request");u.set(t,o)}return hmac(o,this.stringToSign(),"hex")};RequestSigner.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),hash(this.canonicalString(),"hex")].join("\n")};RequestSigner.prototype.canonicalString=function(){if(!this.parsedPath)this.prepareRequest();var e=this.parsedPath.path,t=this.parsedPath.query,r=this.request.headers,n="",i=this.service!=="s3",o=this.service==="s3"||this.request.doNotEncodePath,s=this.service==="s3",a=this.service==="s3",u;if(this.service==="s3"&&this.request.signQuery){u="UNSIGNED-PAYLOAD"}else if(this.isCodeCommitGit){u=""}else{u=r["X-Amz-Content-Sha256"]||r["x-amz-content-sha256"]||hash(this.request.body||"","hex")}if(t){var c=Object.keys(t).reduce((function(e,r){if(!r)return e;e[encodeRfc3986Full(r)]=!Array.isArray(t[r])?t[r]:a?t[r][0]:t[r];return e}),{});var l=[];Object.keys(c).sort().forEach((function(e){if(!Array.isArray(c[e])){l.push(e+"="+encodeRfc3986Full(c[e]))}else{c[e].map(encodeRfc3986Full).sort().forEach((function(t){l.push(e+"="+t)}))}}));n=l.join("&")}if(e!=="/"){if(i)e=e.replace(/\/{2,}/g,"/");e=e.split("/").reduce((function(e,t){if(i&&t===".."){e.pop()}else if(!i||t!=="."){if(o)t=decodeURIComponent(t.replace(/\+/g," "));e.push(encodeRfc3986Full(t))}return e}),[]).join("/");if(e[0]!=="/")e="/"+e;if(s)e=e.replace(/%2F/g,"/")}return[this.request.method||"GET",e,n,this.canonicalHeaders()+"\n",this.signedHeaders(),u].join("\n")};RequestSigner.prototype.canonicalHeaders=function(){var e=this.request.headers;function trimAll(e){return e.toString().trim().replace(/\s+/g," ")}return Object.keys(e).filter((function(e){return c[e.toLowerCase()]==null})).sort((function(e,t){return e.toLowerCase()=0){r=o.parse(e.slice(t+1));e=e.slice(0,t)}this.parsedPath={path:e,query:r}};RequestSigner.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;if(!t)return e;if(t[""]!=null)delete t[""];return e+"?"+encodeRfc3986(o.stringify(t))};n.RequestSigner=RequestSigner;n.sign=function(e,t){return new RequestSigner(e,t).sign()}},27087:e=>{e.exports=function(e){return new LruCache(e)};function LruCache(e){this.capacity=e|0;this.map=Object.create(null);this.list=new DoublyLinkedList}LruCache.prototype.get=function(e){var t=this.map[e];if(t==null)return undefined;this.used(t);return t.val};LruCache.prototype.set=function(e,t){var r=this.map[e];if(r!=null){r.val=t}else{if(!this.capacity)this.prune();if(!this.capacity)return false;r=new DoublyLinkedNode(e,t);this.map[e]=r;this.capacity--}this.used(r);return true};LruCache.prototype.used=function(e){this.list.moveToFront(e)};LruCache.prototype.prune=function(){var e=this.list.pop();if(e!=null){delete this.map[e.key];this.capacity++}};function DoublyLinkedList(){this.firstNode=null;this.lastNode=null}DoublyLinkedList.prototype.moveToFront=function(e){if(this.firstNode==e)return;this.remove(e);if(this.firstNode==null){this.firstNode=e;this.lastNode=e;e.prev=null;e.next=null}else{e.prev=null;e.next=this.firstNode;e.next.prev=e;this.firstNode=e}};DoublyLinkedList.prototype.pop=function(){var e=this.lastNode;if(e!=null){this.remove(e)}return e};DoublyLinkedList.prototype.remove=function(e){if(this.firstNode==e){this.firstNode=e.next}else if(e.prev!=null){e.prev.next=e.next}if(this.lastNode==e){this.lastNode=e.prev}else if(e.next!=null){e.next.prev=e.prev}};function DoublyLinkedNode(e,t){this.key=e;this.val=t;this.prev=null;this.next=null}},50815:(e,t,r)=>{"use strict";var n=r(54740).lowlevel.crypto_hash;var i=0;var Blowfish=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])];this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};function F(e,t,r){return(e[0][t[r+3]]+e[1][t[r+2]]^e[2][t[r+1]])+e[3][t[r]]}Blowfish.prototype.encipher=function(e,t){if(t===undefined){t=new Uint8Array(e.buffer);if(e.byteOffset!==0)t=t.subarray(e.byteOffset)}e[0]^=this.P[0];for(var r=1;r<16;r+=2){e[1]^=F(this.S,t,0)^this.P[r];e[0]^=F(this.S,t,4)^this.P[r+1]}var n=e[0];e[0]=e[1]^this.P[17];e[1]=n};Blowfish.prototype.decipher=function(e){var t=new Uint8Array(e.buffer);if(e.byteOffset!==0)t=t.subarray(e.byteOffset);e[0]^=this.P[17];for(var r=16;r>0;r-=2){e[1]^=F(this.S,t,0)^this.P[r];e[0]^=F(this.S,t,4)^this.P[r-1]}var n=e[0];e[0]=e[1]^this.P[0];e[1]=n};function stream2word(e,t){var r,n=0;for(r=0;r<4;r++,i++){if(i>=t)i=0;n=n<<8|e[i]}return n}Blowfish.prototype.expand0state=function(e,t){var r=new Uint32Array(2),n,o;var s=new Uint8Array(r.buffer);for(n=0,i=0;n<18;n++){this.P[n]^=stream2word(e,t)}i=0;for(n=0;n<18;n+=2){this.encipher(r,s);this.P[n]=r[0];this.P[n+1]=r[1]}for(n=0;n<4;n++){for(o=0;o<256;o+=2){this.encipher(r,s);this.S[n][o]=r[0];this.S[n][o+1]=r[1]}}};Blowfish.prototype.expandstate=function(e,t,r,n){var o=new Uint32Array(2),s,a;for(s=0,i=0;s<18;s++){this.P[s]^=stream2word(r,n)}for(s=0,i=0;s<18;s+=2){o[0]^=stream2word(e,t);o[1]^=stream2word(e,t);this.encipher(o);this.P[s]=o[0];this.P[s+1]=o[1]}for(s=0;s<4;s++){for(a=0;a<256;a+=2){o[0]^=stream2word(e,t);o[1]^=stream2word(e,t);this.encipher(o);this.S[s][a]=o[0];this.S[s][a+1]=o[1]}}i=0};Blowfish.prototype.enc=function(e,t){for(var r=0;r>>24;r[4*s+2]=i[s]>>>16;r[4*s+1]=i[s]>>>8;r[4*s+0]=i[s]}}function bcrypt_pbkdf(e,t,r,i,o,a,u){var c=new Uint8Array(64),l=new Uint8Array(64),d=new Uint8Array(s),h=new Uint8Array(s),m=new Uint8Array(i+4),g,y,v,b,_,E,k=a;if(u<1)return-1;if(t===0||i===0||a===0||a>d.byteLength*d.byteLength||i>1<<20)return-1;b=Math.floor((a+d.byteLength-1)/d.byteLength);v=Math.floor((a+b-1)/b);for(g=0;g0;E++){m[i+0]=E>>>24;m[i+1]=E>>>16;m[i+2]=E>>>8;m[i+3]=E;n(l,m,i+4);bcrypt_hash(c,l,h);for(g=d.byteLength;g--;)d[g]=h[g];for(g=1;g=k)break;o[_]=d[g]}a-=g}return 0}e.exports={BLOCKS:o,HASHSIZE:s,hash:bcrypt_hash,pbkdf:bcrypt_pbkdf}},92378:(e,t,r)=>{var n=r(79090),i=r(73837),o=r(14465).Buffer;function BufferList(e){if(!(this instanceof BufferList))return new BufferList(e);this._bufs=[];this.length=0;if(typeof e=="function"){this._callback=e;var t=function piper(e){if(this._callback){this._callback(e);this._callback=null}}.bind(this);this.on("pipe",(function onPipe(e){e.on("error",t)}));this.on("unpipe",(function onUnpipe(e){e.removeListener("error",t)}))}else{this.append(e)}n.call(this)}i.inherits(BufferList,n);BufferList.prototype._offset=function _offset(e){var t=0,r=0,n;if(e===0)return[0,0];for(;rthis.length)n=this.length;if(r>=this.length)return e||o.alloc(0);if(n<=0)return e||o.alloc(0);var copy=!!e,i=this._offset(r),s=n-r,a=s,u=copy&&t||0,c=i[1],l,d;if(r===0&&n==this.length){if(!copy){return this._bufs.length===1?this._bufs[0]:o.concat(this._bufs,this.length)}for(d=0;dl){this._bufs[d].copy(e,u,c);u+=l}else{this._bufs[d].copy(e,u,c,c+a);u+=l;break}a-=l;if(c)c=0}if(e.length>u)return e.slice(0,u);return e};BufferList.prototype.shallowSlice=function shallowSlice(e,t){e=e||0;t=t||this.length;if(e<0)e+=this.length;if(t<0)t+=this.length;var r=this._offset(e),n=this._offset(t),i=this._bufs.slice(r[0],n[0]+1);if(n[1]==0)i.pop();else i[i.length-1]=i[i.length-1].slice(0,n[1]);if(r[1]!=0)i[0]=i[0].slice(r[1]);return new BufferList(i)};BufferList.prototype.toString=function toString(e,t,r){return this.slice(t,r).toString(e)};BufferList.prototype.consume=function consume(e){e=Math.trunc(e);if(Number.isNaN(e)||e<=0)return this;while(this._bufs.length){if(e>=this._bufs[0].length){e-=this._bufs[0].length;this.length-=this._bufs[0].length;this._bufs.shift()}else{this._bufs[0]=this._bufs[0].slice(e);this.length-=e;break}}return this};BufferList.prototype.duplicate=function duplicate(){var e=0,t=new BufferList;for(;e{"use strict";e.exports=function(e){var t=e._SomePromiseArray;function any(e){var r=new t(e);var n=r.promise();r.setHowMany(1);r.setUnwrap();r.init();return n}e.any=function(e){return any(e)};e.prototype.any=function(){return any(this)}}},50790:(e,t,r)=>{"use strict";var n;try{throw new Error}catch(e){n=e}var i=r(95610);var o=r(3447);function Async(){this._customScheduler=false;this._isTickUsed=false;this._lateQueue=new o(16);this._normalQueue=new o(16);this._haveDrainedQueues=false;var e=this;this.drainQueues=function(){e._drainQueues()};this._schedule=i}Async.prototype.setScheduler=function(e){var t=this._schedule;this._schedule=e;this._customScheduler=true;return t};Async.prototype.hasCustomScheduler=function(){return this._customScheduler};Async.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Async.prototype.fatalError=function(e,t){if(t){process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n");process.exit(2)}else{this.throwLater(e)}};Async.prototype.throwLater=function(e,t){if(arguments.length===1){t=e;e=function(){throw t}}if(typeof setTimeout!=="undefined"){setTimeout((function(){e(t)}),0)}else try{this._schedule((function(){e(t)}))}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}};function AsyncInvokeLater(e,t,r){this._lateQueue.push(e,t,r);this._queueTick()}function AsyncInvoke(e,t,r){this._normalQueue.push(e,t,r);this._queueTick()}function AsyncSettlePromises(e){this._normalQueue._pushOne(e);this._queueTick()}Async.prototype.invokeLater=AsyncInvokeLater;Async.prototype.invoke=AsyncInvoke;Async.prototype.settlePromises=AsyncSettlePromises;function _drainQueue(e){while(e.length()>0){_drainQueueStep(e)}}function _drainQueueStep(e){var t=e.shift();if(typeof t!=="function"){t._settlePromises()}else{var r=e.shift();var n=e.shift();t.call(r,n)}}Async.prototype._drainQueues=function(){_drainQueue(this._normalQueue);this._reset();this._haveDrainedQueues=true;_drainQueue(this._lateQueue)};Async.prototype._queueTick=function(){if(!this._isTickUsed){this._isTickUsed=true;this._schedule(this.drainQueues)}};Async.prototype._reset=function(){this._isTickUsed=false};e.exports=Async;e.exports.firstLineError=n},45091:e=>{"use strict";e.exports=function(e,t,r,n){var i=false;var rejectThis=function(e,t){this._reject(t)};var targetRejected=function(e,t){t.promiseRejectionQueued=true;t.bindingPromise._then(rejectThis,rejectThis,null,this,e)};var bindingResolved=function(e,t){if((this._bitField&50397184)===0){this._resolveCallback(t.target)}};var bindingRejected=function(e,t){if(!t.promiseRejectionQueued)this._reject(e)};e.prototype.bind=function(o){if(!i){i=true;e.prototype._propagateFrom=n.propagateFromFunction();e.prototype._boundValue=n.boundValueFunction()}var s=r(o);var a=new e(t);a._propagateFrom(this,1);var u=this._target();a._setBoundTo(s);if(s instanceof e){var c={promiseRejectionQueued:false,promise:a,target:u,bindingPromise:s};u._then(t,targetRejected,undefined,a,c);s._then(bindingResolved,bindingRejected,undefined,a,c);a._setOnCancel(s)}else{a._resolveCallback(u)}return a};e.prototype._setBoundTo=function(e){if(e!==undefined){this._bitField=this._bitField|2097152;this._boundTo=e}else{this._bitField=this._bitField&~2097152}};e.prototype._isBound=function(){return(this._bitField&2097152)===2097152};e.bind=function(t,r){return e.resolve(r).bind(t)}}},21168:(e,t,r)=>{"use strict";var n;if(typeof Promise!=="undefined")n=Promise;function noConflict(){try{if(Promise===i)Promise=n}catch(e){}return i}var i=r(80546)();i.noConflict=noConflict;e.exports=i},53298:(e,t,r)=>{"use strict";var n=Object.create;if(n){var i=n(null);var o=n(null);i[" size"]=o[" size"]=0}e.exports=function(e){var t=r(65311);var n=t.canEvaluate;var s=t.isIdentifier;var a;var u;if(true){var makeMethodCaller=function(e){return new Function("ensureMethod"," \n return function(obj) { \n 'use strict' \n var len = this.length; \n ensureMethod(obj, 'methodName'); \n switch(len) { \n case 1: return obj.methodName(this[0]); \n case 2: return obj.methodName(this[0], this[1]); \n case 3: return obj.methodName(this[0], this[1], this[2]); \n case 0: return obj.methodName(); \n default: \n return obj.methodName.apply(obj, this); \n } \n }; \n ".replace(/methodName/g,e))(ensureMethod)};var makeGetter=function(e){return new Function("obj"," \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName",e))};var getCompiled=function(e,t,r){var n=r[e];if(typeof n!=="function"){if(!s(e)){return null}n=t(e);r[e]=n;r[" size"]++;if(r[" size"]>512){var i=Object.keys(r);for(var o=0;o<256;++o)delete r[i[o]];r[" size"]=i.length-256}}return n};a=function(e){return getCompiled(e,makeMethodCaller,i)};u=function(e){return getCompiled(e,makeGetter,o)}}function ensureMethod(r,n){var i;if(r!=null)i=r[n];if(typeof i!=="function"){var o="Object "+t.classString(r)+" has no method '"+t.toString(n)+"'";throw new e.TypeError(o)}return i}function caller(e){var t=this.pop();var r=ensureMethod(e,t);return r.apply(e,this)}e.prototype.call=function(e){var t=arguments.length;var r=new Array(Math.max(t-1,0));for(var i=1;i{"use strict";e.exports=function(e,t,n,i){var o=r(65311);var s=o.tryCatch;var a=o.errorObj;var u=e._async;e.prototype["break"]=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");var e=this;var t=e;while(e._isCancellable()){if(!e._cancelBy(t)){if(t._isFollowing()){t._followee().cancel()}else{t._cancelBranched()}break}var r=e._cancellationParent;if(r==null||!r._isCancellable()){if(e._isFollowing()){e._followee().cancel()}else{e._cancelBranched()}break}else{if(e._isFollowing())e._followee().cancel();e._setWillBeCancelled();t=e;e=r}}};e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--};e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===undefined||this._branchesRemainingToCancel<=0};e.prototype._cancelBy=function(e){if(e===this){this._branchesRemainingToCancel=0;this._invokeOnCancel();return true}else{this._branchHasCancelled();if(this._enoughBranchesHaveCancelled()){this._invokeOnCancel();return true}}return false};e.prototype._cancelBranched=function(){if(this._enoughBranchesHaveCancelled()){this._cancel()}};e.prototype._cancel=function(){if(!this._isCancellable())return;this._setCancelled();u.invoke(this._cancelPromises,this,undefined)};e.prototype._cancelPromises=function(){if(this._length()>0)this._settlePromises()};e.prototype._unsetOnCancel=function(){this._onCancelField=undefined};e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()};e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()};e.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e)){for(var r=0;r{"use strict";e.exports=function(e){var t=r(65311);var n=r(72975).keys;var i=t.tryCatch;var o=t.errorObj;function catchFilter(r,s,a){return function(u){var c=a._boundValue();e:for(var l=0;l{"use strict";e.exports=function(e){var t=false;var r=[];e.prototype._promiseCreated=function(){};e.prototype._pushContext=function(){};e.prototype._popContext=function(){return null};e._peekContext=e.prototype._peekContext=function(){};function Context(){this._trace=new Context.CapturedTrace(peekContext())}Context.prototype._pushContext=function(){if(this._trace!==undefined){this._trace._promiseCreated=null;r.push(this._trace)}};Context.prototype._popContext=function(){if(this._trace!==undefined){var e=r.pop();var t=e._promiseCreated;e._promiseCreated=null;return t}return null};function createContext(){if(t)return new Context}function peekContext(){var e=r.length-1;if(e>=0){return r[e]}return undefined}Context.CapturedTrace=null;Context.create=createContext;Context.deactivateLongStackTraces=function(){};Context.activateLongStackTraces=function(){var r=e.prototype._pushContext;var n=e.prototype._popContext;var i=e._peekContext;var o=e.prototype._peekContext;var s=e.prototype._promiseCreated;Context.deactivateLongStackTraces=function(){e.prototype._pushContext=r;e.prototype._popContext=n;e._peekContext=i;e.prototype._peekContext=o;e.prototype._promiseCreated=s;t=false};t=true;e.prototype._pushContext=Context.prototype._pushContext;e.prototype._popContext=Context.prototype._popContext;e._peekContext=e.prototype._peekContext=peekContext;e.prototype._promiseCreated=function(){var e=this._peekContext();if(e&&e._promiseCreated==null)e._promiseCreated=this}};return Context}},38219:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i){var o=e._async;var s=r(14822).Warning;var a=r(65311);var u=r(72975);var c=a.canAttachTrace;var l;var d;var h=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/;var m=/\((?:timers\.js):\d+:\d+\)/;var g=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/;var y=null;var v=null;var b=false;var _;var E=!!(a.env("BLUEBIRD_DEBUG")!=0&&(false||a.env("BLUEBIRD_DEBUG")||a.env("NODE_ENV")==="development"));var k=!!(a.env("BLUEBIRD_WARNINGS")!=0&&(E||a.env("BLUEBIRD_WARNINGS")));var x=!!(a.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(E||a.env("BLUEBIRD_LONG_STACK_TRACES")));var C=a.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(k||!!a.env("BLUEBIRD_W_FORGOTTEN_RETURN"));var O;(function(){var t=[];function unhandledRejectionCheck(){for(var e=0;e0};e.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576};e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&~1048576;if(this._isUnhandledRejectionNotified()){this._unsetUnhandledRejectionIsNotified();this._notifyUnhandledRejectionIsHandled()}};e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0};e.prototype._warn=function(e,t,r){return warn(e,t,r||this)};e.onPossiblyUnhandledRejection=function(t){var r=e._getContext();d=a.contextBind(r,t)};e.onUnhandledRejectionHandled=function(t){var r=e._getContext();l=a.contextBind(r,t)};var disableLongStackTraces=function(){};e.longStackTraces=function(){if(o.haveItemsQueued()&&!L.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}if(!L.longStackTraces&&longStackTracesIsSupported()){var r=e.prototype._captureStackTrace;var n=e.prototype._attachExtraTrace;var i=e.prototype._dereferenceTrace;L.longStackTraces=true;disableLongStackTraces=function(){if(o.haveItemsQueued()&&!L.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}e.prototype._captureStackTrace=r;e.prototype._attachExtraTrace=n;e.prototype._dereferenceTrace=i;t.deactivateLongStackTraces();L.longStackTraces=false};e.prototype._captureStackTrace=longStackTracesCaptureStackTrace;e.prototype._attachExtraTrace=longStackTracesAttachExtraTrace;e.prototype._dereferenceTrace=longStackTracesDereferenceTrace;t.activateLongStackTraces()}};e.hasLongStackTraces=function(){return L.longStackTraces&&longStackTracesIsSupported()};var D={unhandledrejection:{before:function(){var e=a.global.onunhandledrejection;a.global.onunhandledrejection=null;return e},after:function(e){a.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=a.global.onrejectionhandled;a.global.onrejectionhandled=null;return e},after:function(e){a.global.onrejectionhandled=e}}};var B=function(){var dispatch=function(e,t){if(e){var r;try{r=e.before();return!a.global.dispatchEvent(t)}finally{e.after(r)}}else{return!a.global.dispatchEvent(t)}};try{if(typeof CustomEvent==="function"){var e=new CustomEvent("CustomEvent");a.global.dispatchEvent(e);return function(e,t){e=e.toLowerCase();var r={detail:t,cancelable:true};var n=new CustomEvent(e,r);u.defineProperty(n,"promise",{value:t.promise});u.defineProperty(n,"reason",{value:t.reason});return dispatch(D[e],n)}}else if(typeof Event==="function"){var e=new Event("CustomEvent");a.global.dispatchEvent(e);return function(e,t){e=e.toLowerCase();var r=new Event(e,{cancelable:true});r.detail=t;u.defineProperty(r,"promise",{value:t.promise});u.defineProperty(r,"reason",{value:t.reason});return dispatch(D[e],r)}}else{var e=document.createEvent("CustomEvent");e.initCustomEvent("testingtheevent",false,true,{});a.global.dispatchEvent(e);return function(e,t){e=e.toLowerCase();var r=document.createEvent("CustomEvent");r.initCustomEvent(e,false,true,t);return dispatch(D[e],r)}}}catch(e){}return function(){return false}}();var P=function(){if(a.isNode){return function(){return process.emit.apply(process,arguments)}}else{if(!a.global){return function(){return false}}return function(e){var t="on"+e.toLowerCase();var r=a.global[t];if(!r)return false;r.apply(a.global,[].slice.call(arguments,1));return true}}}();function generatePromiseLifecycleEventObject(e,t){return{promise:t}}var I={promiseCreated:generatePromiseLifecycleEventObject,promiseFulfilled:generatePromiseLifecycleEventObject,promiseRejected:generatePromiseLifecycleEventObject,promiseResolved:generatePromiseLifecycleEventObject,promiseCancelled:generatePromiseLifecycleEventObject,promiseChained:function(e,t,r){return{promise:t,child:r}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,r){return{reason:t,promise:r}},rejectionHandled:generatePromiseLifecycleEventObject};var activeFireEvent=function(e){var t=false;try{t=P.apply(null,arguments)}catch(e){o.throwLater(e);t=true}var r=false;try{r=B(e,I[e].apply(null,arguments))}catch(e){o.throwLater(e);r=true}return r||t};e.config=function(t){t=Object(t);if("longStackTraces"in t){if(t.longStackTraces){e.longStackTraces()}else if(!t.longStackTraces&&e.hasLongStackTraces()){disableLongStackTraces()}}if("warnings"in t){var r=t.warnings;L.warnings=!!r;C=L.warnings;if(a.isObject(r)){if("wForgottenReturn"in r){C=!!r.wForgottenReturn}}}if("cancellation"in t&&t.cancellation&&!L.cancellation){if(o.haveItemsQueued()){throw new Error("cannot enable cancellation after promises are in use")}e.prototype._clearCancellationData=cancellationClearCancellationData;e.prototype._propagateFrom=cancellationPropagateFrom;e.prototype._onCancel=cancellationOnCancel;e.prototype._setOnCancel=cancellationSetOnCancel;e.prototype._attachCancellationCallback=cancellationAttachCancellationCallback;e.prototype._execute=cancellationExecute;R=cancellationPropagateFrom;L.cancellation=true}if("monitoring"in t){if(t.monitoring&&!L.monitoring){L.monitoring=true;e.prototype._fireEvent=activeFireEvent}else if(!t.monitoring&&L.monitoring){L.monitoring=false;e.prototype._fireEvent=defaultFireEvent}}if("asyncHooks"in t&&a.nodeSupportsAsyncResource){var s=L.asyncHooks;var u=!!t.asyncHooks;if(s!==u){L.asyncHooks=u;if(u){n()}else{i()}}}return e};function defaultFireEvent(){return false}e.prototype._fireEvent=defaultFireEvent;e.prototype._execute=function(e,t,r){try{e(t,r)}catch(e){return e}};e.prototype._onCancel=function(){};e.prototype._setOnCancel=function(e){};e.prototype._attachCancellationCallback=function(e){};e.prototype._captureStackTrace=function(){};e.prototype._attachExtraTrace=function(){};e.prototype._dereferenceTrace=function(){};e.prototype._clearCancellationData=function(){};e.prototype._propagateFrom=function(e,t){};function cancellationExecute(e,t,r){var n=this;try{e(t,r,(function(e){if(typeof e!=="function"){throw new TypeError("onCancel must be a function, got: "+a.toString(e))}n._attachCancellationCallback(e)}))}catch(e){return e}}function cancellationAttachCancellationCallback(e){if(!this._isCancellable())return this;var t=this._onCancel();if(t!==undefined){if(a.isArray(t)){t.push(e)}else{this._setOnCancel([t,e])}}else{this._setOnCancel(e)}}function cancellationOnCancel(){return this._onCancelField}function cancellationSetOnCancel(e){this._onCancelField=e}function cancellationClearCancellationData(){this._cancellationParent=undefined;this._onCancelField=undefined}function cancellationPropagateFrom(e,t){if((t&1)!==0){this._cancellationParent=e;var r=e._branchesRemainingToCancel;if(r===undefined){r=0}e._branchesRemainingToCancel=r+1}if((t&2)!==0&&e._isBound()){this._setBoundTo(e._boundTo)}}function bindingPropagateFrom(e,t){if((t&2)!==0&&e._isBound()){this._setBoundTo(e._boundTo)}}var R=bindingPropagateFrom;function boundValueFunction(){var t=this._boundTo;if(t!==undefined){if(t instanceof e){if(t.isFulfilled()){return t.value()}else{return undefined}}}return t}function longStackTracesCaptureStackTrace(){this._trace=new CapturedTrace(this._peekContext())}function longStackTracesAttachExtraTrace(e,t){if(c(e)){var r=this._trace;if(r!==undefined){if(t)r=r._parent}if(r!==undefined){r.attachExtraTrace(e)}else if(!e.__stackCleaned__){var n=parseStackAndMessage(e);a.notEnumerableProp(e,"stack",n.message+"\n"+n.stack.join("\n"));a.notEnumerableProp(e,"__stackCleaned__",true)}}}function longStackTracesDereferenceTrace(){this._trace=undefined}function checkForgottenReturns(e,t,r,n,i){if(e===undefined&&t!==null&&C){if(i!==undefined&&i._returnedNonUndefined())return;if((n._bitField&65535)===0)return;if(r)r=r+" ";var o="";var s="";if(t._trace){var a=t._trace.stack.split("\n");var u=cleanStack(a);for(var c=u.length-1;c>=0;--c){var l=u[c];if(!m.test(l)){var d=l.match(g);if(d){o="at "+d[1]+":"+d[2]+":"+d[3]+" "}break}}if(u.length>0){var h=u[0];for(var c=0;c0){s="\n"+a[c-1]}break}}}}var y="a promise was created in a "+r+"handler "+o+"but was not returned from it, "+"see http://goo.gl/rRqMUw"+s;n._warn(y,true,t)}}function deprecated(e,t){var r=e+" is deprecated and will be removed in a future version.";if(t)r+=" Use "+t+" instead.";return warn(r)}function warn(t,r,n){if(!L.warnings)return;var i=new s(t);var o;if(r){n._attachExtraTrace(i)}else if(L.longStackTraces&&(o=e._peekContext())){o.attachExtraTrace(i)}else{var a=parseStackAndMessage(i);i.stack=a.message+"\n"+a.stack.join("\n")}if(!activeFireEvent("warning",i)){formatAndLogError(i,"",true)}}function reconstructStack(e,t){for(var r=0;r=0;--a){if(n[a]===o){s=a;break}}for(var a=s;a>=0;--a){var u=n[a];if(t[i]===u){t.pop();i--}else{break}}t=n}}function cleanStack(e){var t=[];for(var r=0;r0&&e.name!="SyntaxError"){t=t.slice(r)}return t}function parseStackAndMessage(e){var t=e.stack;var r=e.toString();t=typeof t==="string"&&t.length>0?stackFramesAsArray(e):[" (No stack trace)"];return{message:r,stack:e.name=="SyntaxError"?t:cleanStack(t)}}function formatAndLogError(e,t,r){if(typeof console!=="undefined"){var n;if(a.isObject(e)){var i=e.stack;n=t+v(i,e)}else{n=t+String(e)}if(typeof _==="function"){_(n,r)}else if(typeof console.log==="function"||typeof console.log==="object"){console.log(n)}}}function fireRejectionEvent(e,t,r,n){var i=false;try{if(typeof t==="function"){i=true;if(e==="rejectionHandled"){t(n)}else{t(r,n)}}}catch(e){o.throwLater(e)}if(e==="unhandledRejection"){if(!activeFireEvent(e,r,n)&&!i){formatAndLogError(r,"Unhandled rejection ")}}else{activeFireEvent(e,n)}}function formatNonError(e){var t;if(typeof e==="function"){t="[function "+(e.name||"anonymous")+"]"}else{t=e&&typeof e.toString==="function"?e.toString():a.toString(e);var r=/\[object [a-zA-Z0-9$_]+\]/;if(r.test(t)){try{var n=JSON.stringify(e);t=n}catch(e){}}if(t.length===0){t="(empty array)"}}return"(<"+snip(t)+">, no stack trace)"}function snip(e){var t=41;if(e.length=o){return}shouldIgnore=function(e){if(h.test(e))return true;var t=parseLineInfo(e);if(t){if(t.fileName===s&&(i<=t.line&&t.line<=o)){return true}}return false}}function CapturedTrace(e){this._parent=e;this._promisesCreated=0;var t=this._length=1+(e===undefined?0:e._length);$(this,CapturedTrace);if(t>32)this.uncycle()}a.inherits(CapturedTrace,Error);t.CapturedTrace=CapturedTrace;CapturedTrace.prototype.uncycle=function(){var e=this._length;if(e<2)return;var t=[];var r={};for(var n=0,i=this;i!==undefined;++n){t.push(i);i=i._parent}e=this._length=n;for(var n=e-1;n>=0;--n){var o=t[n].stack;if(r[o]===undefined){r[o]=n}}for(var n=0;n0){t[a-1]._parent=undefined;t[a-1]._length=1}t[n]._parent=undefined;t[n]._length=1;var u=n>0?t[n-1]:this;if(a=0;--l){t[l]._length=c;c++}return}}};CapturedTrace.prototype.attachExtraTrace=function(e){if(e.__stackCleaned__)return;this.uncycle();var t=parseStackAndMessage(e);var r=t.message;var n=[t.stack];var i=this;while(i!==undefined){n.push(cleanStack(i.stack.split("\n")));i=i._parent}removeCommonRoots(n);removeDuplicateOrEmptyJumps(n);a.notEnumerableProp(e,"stack",reconstructStack(r,n));a.notEnumerableProp(e,"__stackCleaned__",true)};var $=function stackDetection(){var e=/^\s*at\s*/;var v8stackFormatter=function(e,t){if(typeof e==="string")return e;if(t.name!==undefined&&t.message!==undefined){return t.toString()}return formatNonError(t)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6;y=e;v=v8stackFormatter;var t=Error.captureStackTrace;shouldIgnore=function(e){return h.test(e)};return function(e,r){Error.stackTraceLimit+=6;t(e,r);Error.stackTraceLimit-=6}}var r=new Error;if(typeof r.stack==="string"&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0){y=/@/;v=v8stackFormatter;b=true;return function captureStackTrace(e){e.stack=(new Error).stack}}var n;try{throw new Error}catch(e){n="stack"in e}if(!("stack"in r)&&n&&typeof Error.stackTraceLimit==="number"){y=e;v=v8stackFormatter;return function captureStackTrace(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}}v=function(e,t){if(typeof e==="string")return e;if((typeof t==="object"||typeof t==="function")&&t.name!==undefined&&t.message!==undefined){return t.toString()}return formatNonError(t)};return null}([]);if(typeof console!=="undefined"&&typeof console.warn!=="undefined"){_=function(e){console.warn(e)};if(a.isNode&&process.stderr.isTTY){_=function(e,t){var r=t?"":"";console.warn(r+e+"\n")}}else if(!a.isNode&&typeof(new Error).stack==="string"){_=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}}}var L={warnings:k,longStackTraces:false,cancellation:false,monitoring:false,asyncHooks:false};if(x)e.longStackTraces();return{asyncHooks:function(){return L.asyncHooks},longStackTraces:function(){return L.longStackTraces},warnings:function(){return L.warnings},cancellation:function(){return L.cancellation},monitoring:function(){return L.monitoring},propagateFromFunction:function(){return R},boundValueFunction:function(){return boundValueFunction},checkForgottenReturns:checkForgottenReturns,setBounds:setBounds,warn:warn,deprecated:deprecated,CapturedTrace:CapturedTrace,fireDomEvent:B,fireGlobalEvent:P}}},1009:e=>{"use strict";e.exports=function(e){function returner(){return this.value}function thrower(){throw this.reason}e.prototype["return"]=e.prototype.thenReturn=function(t){if(t instanceof e)t.suppressUnhandledRejections();return this._then(returner,undefined,undefined,{value:t},undefined)};e.prototype["throw"]=e.prototype.thenThrow=function(e){return this._then(thrower,undefined,undefined,{reason:e},undefined)};e.prototype.catchThrow=function(e){if(arguments.length<=1){return this._then(undefined,thrower,undefined,{reason:e},undefined)}else{var t=arguments[1];var handler=function(){throw t};return this.caught(e,handler)}};e.prototype.catchReturn=function(t){if(arguments.length<=1){if(t instanceof e)t.suppressUnhandledRejections();return this._then(undefined,returner,undefined,{value:t},undefined)}else{var r=arguments[1];if(r instanceof e)r.suppressUnhandledRejections();var handler=function(){return r};return this.caught(t,handler)}}}},61873:e=>{"use strict";e.exports=function(e,t){var r=e.reduce;var n=e.all;function promiseAllThis(){return n(this)}function PromiseMapSeries(e,n){return r(e,n,t,t)}e.prototype.each=function(e){return r(this,e,t,0)._then(promiseAllThis,undefined,undefined,this,undefined)};e.prototype.mapSeries=function(e){return r(this,e,t,t)};e.each=function(e,n){return r(e,n,t,0)._then(promiseAllThis,undefined,undefined,e,undefined)};e.mapSeries=PromiseMapSeries}},14822:(e,t,r)=>{"use strict";var n=r(72975);var i=n.freeze;var o=r(65311);var s=o.inherits;var a=o.notEnumerableProp;function subError(e,t){function SubError(r){if(!(this instanceof SubError))return new SubError(r);a(this,"message",typeof r==="string"?r:t);a(this,"name",e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{Error.call(this)}}s(SubError,Error);return SubError}var u,c;var l=subError("Warning","warning");var d=subError("CancellationError","cancellation error");var h=subError("TimeoutError","timeout error");var m=subError("AggregateError","aggregate error");try{u=TypeError;c=RangeError}catch(e){u=subError("TypeError","type error");c=subError("RangeError","range error")}var g=("join pop push shift unshift slice filter forEach some "+"every map indexOf lastIndexOf reduce reduceRight sort reverse").split(" ");for(var y=0;y{var t=function(){"use strict";return this===undefined}();if(t){e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:t,propertyIsWritable:function(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!!(!r||r.writable||r.set)}}}else{var r={}.hasOwnProperty;var n={}.toString;var i={}.constructor.prototype;var ObjectKeys=function(e){var t=[];for(var n in e){if(r.call(e,n)){t.push(n)}}return t};var ObjectGetDescriptor=function(e,t){return{value:e[t]}};var ObjectDefineProperty=function(e,t,r){e[t]=r.value;return e};var ObjectFreeze=function(e){return e};var ObjectGetPrototypeOf=function(e){try{return Object(e).constructor.prototype}catch(e){return i}};var ArrayIsArray=function(e){try{return n.call(e)==="[object Array]"}catch(e){return false}};e.exports={isArray:ArrayIsArray,keys:ObjectKeys,names:ObjectKeys,defineProperty:ObjectDefineProperty,getDescriptor:ObjectGetDescriptor,freeze:ObjectFreeze,getPrototypeOf:ObjectGetPrototypeOf,isES5:t,propertyIsWritable:function(){return true}}}},6757:e=>{"use strict";e.exports=function(e,t){var r=e.map;e.prototype.filter=function(e,n){return r(this,e,n,t)};e.filter=function(e,n,i){return r(e,n,i,t)}}},55347:(e,t,r)=>{"use strict";e.exports=function(e,t,n){var i=r(65311);var o=e.CancellationError;var s=i.errorObj;var a=r(43970)(n);function PassThroughHandlerContext(e,t,r){this.promise=e;this.type=t;this.handler=r;this.called=false;this.cancelPromise=null}PassThroughHandlerContext.prototype.isFinallyHandler=function(){return this.type===0};function FinallyHandlerCancelReaction(e){this.finallyHandler=e}FinallyHandlerCancelReaction.prototype._resultCancelled=function(){checkCancel(this.finallyHandler)};function checkCancel(e,t){if(e.cancelPromise!=null){if(arguments.length>1){e.cancelPromise._reject(t)}else{e.cancelPromise._cancel()}e.cancelPromise=null;return true}return false}function succeed(){return finallyHandler.call(this,this.promise._target()._settledValue())}function fail(e){if(checkCancel(this,e))return;s.e=e;return s}function finallyHandler(r){var i=this.promise;var a=this.handler;if(!this.called){this.called=true;var u=this.isFinallyHandler()?a.call(i._boundValue()):a.call(i._boundValue(),r);if(u===n){return u}else if(u!==undefined){i._setReturnedNonUndefined();var c=t(u,i);if(c instanceof e){if(this.cancelPromise!=null){if(c._isCancelled()){var l=new o("late cancellation observer");i._attachExtraTrace(l);s.e=l;return s}else if(c.isPending()){c._attachCancellationCallback(new FinallyHandlerCancelReaction(this))}}return c._then(succeed,fail,undefined,this,undefined)}}}if(i.isRejected()){checkCancel(this);s.e=r;return s}else{checkCancel(this);return r}}e.prototype._passThrough=function(e,t,r,n){if(typeof e!=="function")return this.then();return this._then(r,n,undefined,new PassThroughHandlerContext(this,t,e),undefined)};e.prototype.lastly=e.prototype["finally"]=function(e){return this._passThrough(e,0,finallyHandler,finallyHandler)};e.prototype.tap=function(e){return this._passThrough(e,1,finallyHandler)};e.prototype.tapCatch=function(t){var r=arguments.length;if(r===1){return this._passThrough(t,1,undefined,finallyHandler)}else{var n=new Array(r-1),o=0,s;for(s=0;s{"use strict";e.exports=function(e,t,n,i,o,s){var a=r(14822);var u=a.TypeError;var c=r(65311);var l=c.errorObj;var d=c.tryCatch;var h=[];function promiseFromYieldHandler(t,r,n){for(var o=0;o{"use strict";e.exports=function(e,t,n,i,o){var s=r(65311);var a=s.canEvaluate;var u=s.tryCatch;var c=s.errorObj;var l;if(true){if(a){var thenCallback=function(e){return new Function("value","holder"," \n 'use strict'; \n holder.pIndex = value; \n holder.checkFulfillment(this); \n ".replace(/Index/g,e))};var promiseSetter=function(e){return new Function("promise","holder"," \n 'use strict'; \n holder.pIndex = promise; \n ".replace(/Index/g,e))};var generateHolderClass=function(t){var r=new Array(t);for(var n=0;n0&&typeof arguments[r]==="function"){o=arguments[r];if(true){if(r<=8&&a){var u=new e(i);u._captureStackTrace();var c=d[r-1];var g=new c(o);var y=h;for(var v=0;v{"use strict";e.exports=function(e,t,n,i,o,s){var a=r(65311);var u=a.tryCatch;var c=a.errorObj;var l=e._async;function MappingPromiseArray(t,r,n,i){this.constructor$(t);this._promise._captureStackTrace();var s=e._getContext();this._callback=a.contextBind(s,r);this._preservedValues=i===o?new Array(this.length()):null;this._limit=n;this._inFlight=0;this._queue=[];l.invoke(this._asyncInit,this,undefined);if(a.isArray(t)){for(var u=0;u=1){this._inFlight--;this._drainQueue();if(this._isResolved())return true}}else{if(l>=1&&this._inFlight>=l){n[r]=t;this._queue.push(r);return false}if(a!==null)a[r]=t;var d=this._promise;var h=this._callback;var m=d._boundValue();d._pushContext();var g=u(h).call(m,t,r,o);var y=d._popContext();s.checkForgottenReturns(g,y,a!==null?"Promise.filter":"Promise.map",d);if(g===c){this._reject(g.e);return true}var v=i(g,this._promise);if(v instanceof e){v=v._target();var b=v._bitField;if((b&50397184)===0){if(l>=1)this._inFlight++;n[r]=v;v._proxy(this,(r+1)*-1);return false}else if((b&33554432)!==0){g=v._value()}else if((b&16777216)!==0){this._reject(v._reason());return true}else{this._cancel();return true}}n[r]=g}var _=++this._totalResolved;if(_>=o){if(a!==null){this._filter(n,a)}else{this._resolve(n)}return true}return false};MappingPromiseArray.prototype._drainQueue=function(){var e=this._queue;var t=this._limit;var r=this._values;while(e.length>0&&this._inFlight=1?s:0;return new MappingPromiseArray(t,r,s,o).promise()}e.prototype.map=function(e,t){return map(this,e,t,null)};e.map=function(e,t,r,n){return map(e,t,r,n)}}},77844:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i,o){var s=r(65311);var a=s.tryCatch;e.method=function(r){if(typeof r!=="function"){throw new e.TypeError("expecting a function but got "+s.classString(r))}return function(){var n=new e(t);n._captureStackTrace();n._pushContext();var i=a(r).apply(this,arguments);var s=n._popContext();o.checkForgottenReturns(i,s,"Promise.method",n);n._resolveFromSyncValue(i);return n}};e.attempt=e["try"]=function(r){if(typeof r!=="function"){return i("expecting a function but got "+s.classString(r))}var n=new e(t);n._captureStackTrace();n._pushContext();var u;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1];var l=arguments[2];u=s.isArray(c)?a(r).apply(l,c):a(r).call(l,c)}else{u=a(r)()}var d=n._popContext();o.checkForgottenReturns(u,d,"Promise.try",n);n._resolveFromSyncValue(u);return n};e.prototype._resolveFromSyncValue=function(e){if(e===s.errorObj){this._rejectCallback(e.e,false)}else{this._resolveCallback(e,true)}}}},44729:(e,t,r)=>{"use strict";var n=r(65311);var i=n.maybeWrapAsError;var o=r(14822);var s=o.OperationalError;var a=r(72975);function isUntypedError(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}var u=/^(?:name|message|stack|cause)$/;function wrapAsOperationalError(e){var t;if(isUntypedError(e)){t=new s(e);t.name=e.name;t.message=e.message;t.stack=e.stack;var r=a.keys(e);for(var i=0;i{"use strict";e.exports=function(e){var t=r(65311);var n=e._async;var i=t.tryCatch;var o=t.errorObj;function spreadAdapter(e,r){var s=this;if(!t.isArray(e))return successAdapter.call(s,e,r);var a=i(r).apply(s._boundValue(),[null].concat(e));if(a===o){n.throwLater(a.e)}}function successAdapter(e,t){var r=this;var s=r._boundValue();var a=e===undefined?i(t).call(s,null):i(t).call(s,null,e);if(a===o){n.throwLater(a.e)}}function errorAdapter(e,t){var r=this;if(!e){var s=new Error(e+"");s.cause=e;e=s}var a=i(t).call(r._boundValue(),e);if(a===o){n.throwLater(a.e)}}e.prototype.asCallback=e.prototype.nodeify=function(e,t){if(typeof e=="function"){var r=successAdapter;if(t!==undefined&&Object(t).spread){r=spreadAdapter}this._then(r,errorAdapter,undefined,this,e)}return this}}},80546:(e,t,r)=>{"use strict";e.exports=function(){var makeSelfResolutionError=function(){return new l("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")};var reflectHandler=function(){return new Promise.PromiseInspection(this._target())};var apiRejection=function(e){return Promise.reject(new l(e))};function Proxyable(){}var t={};var n=r(65311);n.setReflectHandler(reflectHandler);var getDomain=function(){var e=process.domain;if(e===undefined){return null}return e};var getContextDefault=function(){return null};var getContextDomain=function(){return{domain:getDomain(),async:null}};var i=n.isNode&&n.nodeSupportsAsyncResource?r(50852).AsyncResource:null;var getContextAsyncHooks=function(){return{domain:getDomain(),async:new i("Bluebird::Promise")}};var o=n.isNode?getContextDomain:getContextDefault;n.notEnumerableProp(Promise,"_getContext",o);var enableAsyncHooks=function(){o=getContextAsyncHooks;n.notEnumerableProp(Promise,"_getContext",getContextAsyncHooks)};var disableAsyncHooks=function(){o=getContextDomain;n.notEnumerableProp(Promise,"_getContext",getContextDomain)};var s=r(72975);var a=r(50790);var u=new a;s.defineProperty(Promise,"_async",{value:u});var c=r(14822);var l=Promise.TypeError=c.TypeError;Promise.RangeError=c.RangeError;var d=Promise.CancellationError=c.CancellationError;Promise.TimeoutError=c.TimeoutError;Promise.OperationalError=c.OperationalError;Promise.RejectionError=c.OperationalError;Promise.AggregateError=c.AggregateError;var INTERNAL=function(){};var h={};var m={};var g=r(53791)(Promise,INTERNAL);var y=r(60619)(Promise,INTERNAL,g,apiRejection,Proxyable);var v=r(93197)(Promise);var b=v.create;var _=r(38219)(Promise,v,enableAsyncHooks,disableAsyncHooks);var E=_.CapturedTrace;var k=r(55347)(Promise,g,m);var x=r(43970)(m);var C=r(44729);var O=n.errorObj;var D=n.tryCatch;function check(e,t){if(e==null||e.constructor!==Promise){throw new l("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}if(typeof t!=="function"){throw new l("expecting a function but got "+n.classString(t))}}function Promise(e){if(e!==INTERNAL){check(this,e)}this._bitField=0;this._fulfillmentHandler0=undefined;this._rejectionHandler0=undefined;this._promise0=undefined;this._receiver0=undefined;this._resolveFromExecutor(e);this._promiseCreated();this._fireEvent("promiseCreated",this)}Promise.prototype.toString=function(){return"[object Promise]"};Promise.prototype.caught=Promise.prototype["catch"]=function(e){var t=arguments.length;if(t>1){var r=new Array(t-1),i=0,o;for(o=0;o0&&typeof e!=="function"&&typeof t!=="function"){var r=".then() only accepts functions but was passed: "+n.classString(e);if(arguments.length>1){r+=", "+n.classString(t)}this._warn(r)}return this._then(e,t,undefined,undefined,undefined)};Promise.prototype.done=function(e,t){var r=this._then(e,t,undefined,undefined,undefined);r._setIsFinal()};Promise.prototype.spread=function(e){if(typeof e!=="function"){return apiRejection("expecting a function but got "+n.classString(e))}return this.all()._then(e,undefined,undefined,h,undefined)};Promise.prototype.toJSON=function(){var e={isFulfilled:false,isRejected:false,fulfillmentValue:undefined,rejectionReason:undefined};if(this.isFulfilled()){e.fulfillmentValue=this.value();e.isFulfilled=true}else if(this.isRejected()){e.rejectionReason=this.reason();e.isRejected=true}return e};Promise.prototype.all=function(){if(arguments.length>0){this._warn(".all() was passed arguments but it does not take any")}return new y(this).promise()};Promise.prototype.error=function(e){return this.caught(n.originatesFromRejection,e)};Promise.getNewLibraryCopy=e.exports;Promise.is=function(e){return e instanceof Promise};Promise.fromNode=Promise.fromCallback=function(e){var t=new Promise(INTERNAL);t._captureStackTrace();var r=arguments.length>1?!!Object(arguments[1]).multiArgs:false;var n=D(e)(C(t,r));if(n===O){t._rejectCallback(n.e,true)}if(!t._isFateSealed())t._setAsyncGuaranteed();return t};Promise.all=function(e){return new y(e).promise()};Promise.cast=function(e){var t=g(e);if(!(t instanceof Promise)){t=new Promise(INTERNAL);t._captureStackTrace();t._setFulfilled();t._rejectionHandler0=e}return t};Promise.resolve=Promise.fulfilled=Promise.cast;Promise.reject=Promise.rejected=function(e){var t=new Promise(INTERNAL);t._captureStackTrace();t._rejectCallback(e,true);return t};Promise.setScheduler=function(e){if(typeof e!=="function"){throw new l("expecting a function but got "+n.classString(e))}return u.setScheduler(e)};Promise.prototype._then=function(e,t,r,i,s){var a=s!==undefined;var c=a?s:new Promise(INTERNAL);var l=this._target();var h=l._bitField;if(!a){c._propagateFrom(this,3);c._captureStackTrace();if(i===undefined&&(this._bitField&2097152)!==0){if(!((h&50397184)===0)){i=this._boundValue()}else{i=l===this?undefined:this._boundTo}}this._fireEvent("promiseChained",this,c)}var m=o();if(!((h&50397184)===0)){var g,y,v=l._settlePromiseCtx;if((h&33554432)!==0){y=l._rejectionHandler0;g=e}else if((h&16777216)!==0){y=l._fulfillmentHandler0;g=t;l._unsetRejectionIsUnhandled()}else{v=l._settlePromiseLateCancellationObserver;y=new d("late cancellation observer");l._attachExtraTrace(y);g=t}u.invoke(v,l,{handler:n.contextBind(m,g),promise:c,receiver:i,value:y})}else{l._addCallbacks(e,t,c,i,m)}return c};Promise.prototype._length=function(){return this._bitField&65535};Promise.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0};Promise.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864};Promise.prototype._setLength=function(e){this._bitField=this._bitField&-65536|e&65535};Promise.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432;this._fireEvent("promiseFulfilled",this)};Promise.prototype._setRejected=function(){this._bitField=this._bitField|16777216;this._fireEvent("promiseRejected",this)};Promise.prototype._setFollowing=function(){this._bitField=this._bitField|67108864;this._fireEvent("promiseResolved",this)};Promise.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304};Promise.prototype._isFinal=function(){return(this._bitField&4194304)>0};Promise.prototype._unsetCancelled=function(){this._bitField=this._bitField&~65536};Promise.prototype._setCancelled=function(){this._bitField=this._bitField|65536;this._fireEvent("promiseCancelled",this)};Promise.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608};Promise.prototype._setAsyncGuaranteed=function(){if(u.hasCustomScheduler())return;var e=this._bitField;this._bitField=e|(e&536870912)>>2^134217728};Promise.prototype._setNoAsyncGuarantee=function(){this._bitField=(this._bitField|536870912)&~134217728};Promise.prototype._receiverAt=function(e){var r=e===0?this._receiver0:this[e*4-4+3];if(r===t){return undefined}else if(r===undefined&&this._isBound()){return this._boundValue()}return r};Promise.prototype._promiseAt=function(e){return this[e*4-4+2]};Promise.prototype._fulfillmentHandlerAt=function(e){return this[e*4-4+0]};Promise.prototype._rejectionHandlerAt=function(e){return this[e*4-4+1]};Promise.prototype._boundValue=function(){};Promise.prototype._migrateCallback0=function(e){var r=e._bitField;var n=e._fulfillmentHandler0;var i=e._rejectionHandler0;var o=e._promise0;var s=e._receiverAt(0);if(s===undefined)s=t;this._addCallbacks(n,i,o,s,null)};Promise.prototype._migrateCallbackAt=function(e,r){var n=e._fulfillmentHandlerAt(r);var i=e._rejectionHandlerAt(r);var o=e._promiseAt(r);var s=e._receiverAt(r);if(s===undefined)s=t;this._addCallbacks(n,i,o,s,null)};Promise.prototype._addCallbacks=function(e,t,r,i,o){var s=this._length();if(s>=65535-4){s=0;this._setLength(0)}if(s===0){this._promise0=r;this._receiver0=i;if(typeof e==="function"){this._fulfillmentHandler0=n.contextBind(o,e)}if(typeof t==="function"){this._rejectionHandler0=n.contextBind(o,t)}}else{var a=s*4-4;this[a+2]=r;this[a+3]=i;if(typeof e==="function"){this[a+0]=n.contextBind(o,e)}if(typeof t==="function"){this[a+1]=n.contextBind(o,t)}}this._setLength(s+1);return s};Promise.prototype._proxy=function(e,t){this._addCallbacks(undefined,undefined,t,e,null)};Promise.prototype._resolveCallback=function(e,t){if((this._bitField&117506048)!==0)return;if(e===this)return this._rejectCallback(makeSelfResolutionError(),false);var r=g(e,this);if(!(r instanceof Promise))return this._fulfill(e);if(t)this._propagateFrom(r,2);var n=r._target();if(n===this){this._reject(makeSelfResolutionError());return}var i=n._bitField;if((i&50397184)===0){var o=this._length();if(o>0)n._migrateCallback0(this);for(var s=1;s>>16)return;if(e===this){var r=makeSelfResolutionError();this._attachExtraTrace(r);return this._reject(r)}this._setFulfilled();this._rejectionHandler0=e;if((t&65535)>0){if((t&134217728)!==0){this._settlePromises()}else{u.settlePromises(this)}this._dereferenceTrace()}};Promise.prototype._reject=function(e){var t=this._bitField;if((t&117506048)>>>16)return;this._setRejected();this._fulfillmentHandler0=e;if(this._isFinal()){return u.fatalError(e,n.isNode)}if((t&65535)>0){u.settlePromises(this)}else{this._ensurePossibleRejectionHandled()}};Promise.prototype._fulfillPromises=function(e,t){for(var r=1;r0){if((e&16842752)!==0){var r=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,r,e);this._rejectPromises(t,r)}else{var n=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,n,e);this._fulfillPromises(t,n)}this._setLength(0)}this._clearCancellationData()};Promise.prototype._settledValue=function(){var e=this._bitField;if((e&33554432)!==0){return this._rejectionHandler0}else if((e&16777216)!==0){return this._fulfillmentHandler0}};if(typeof Symbol!=="undefined"&&Symbol.toStringTag){s.defineProperty(Promise.prototype,Symbol.toStringTag,{get:function(){return"Object"}})}function deferResolve(e){this.promise._resolveCallback(e)}function deferReject(e){this.promise._rejectCallback(e,false)}Promise.defer=Promise.pending=function(){_.deprecated("Promise.defer","new Promise");var e=new Promise(INTERNAL);return{promise:e,resolve:deferResolve,reject:deferReject}};n.notEnumerableProp(Promise,"_makeSelfResolutionError",makeSelfResolutionError);r(77844)(Promise,INTERNAL,g,apiRejection,_);r(45091)(Promise,INTERNAL,g,_);r(44506)(Promise,y,apiRejection,_);r(1009)(Promise);r(99218)(Promise);r(32190)(Promise,y,g,INTERNAL,u);Promise.Promise=Promise;Promise.version="3.7.2";r(53298)(Promise);r(17661)(Promise,apiRejection,INTERNAL,g,Proxyable,_);r(50131)(Promise,y,apiRejection,g,INTERNAL,_);r(91042)(Promise);r(7529)(Promise,INTERNAL);r(99713)(Promise,y,g,apiRejection);r(68805)(Promise,INTERNAL,g,apiRejection);r(52148)(Promise,y,apiRejection,g,INTERNAL,_);r(58098)(Promise,y,_);r(44877)(Promise,y,apiRejection);r(9478)(Promise,INTERNAL,_);r(55127)(Promise,apiRejection,g,b,INTERNAL,_);r(88159)(Promise);r(61873)(Promise,INTERNAL);r(6757)(Promise,INTERNAL);n.toFastProperties(Promise);n.toFastProperties(Promise.prototype);function fillTypes(e){var t=new Promise(INTERNAL);t._fulfillmentHandler0=e;t._rejectionHandler0=e;t._promise0=e;t._receiver0=e}fillTypes({a:1});fillTypes({b:2});fillTypes({c:3});fillTypes(1);fillTypes((function(){}));fillTypes(undefined);fillTypes(false);fillTypes(new Promise(INTERNAL));_.setBounds(a.firstLineError,n.lastLineError);return Promise}},60619:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i,o){var s=r(65311);var a=s.isArray;function toResolutionValue(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}function PromiseArray(r){var n=this._promise=new e(t);if(r instanceof e){n._propagateFrom(r,3);r.suppressUnhandledRejections()}n._setOnCancel(this);this._values=r;this._length=0;this._totalResolved=0;this._init(undefined,-2)}s.inherits(PromiseArray,o);PromiseArray.prototype.length=function(){return this._length};PromiseArray.prototype.promise=function(){return this._promise};PromiseArray.prototype._init=function init(t,r){var o=n(this._values,this._promise);if(o instanceof e){o=o._target();var a=o._bitField;this._values=o;if((a&50397184)===0){this._promise._setAsyncGuaranteed();return o._then(init,this._reject,undefined,this,r)}else if((a&33554432)!==0){o=o._value()}else if((a&16777216)!==0){return this._reject(o._reason())}else{return this._cancel()}}o=s.asArray(o);if(o===null){var u=i("expecting an array or an iterable object but got "+s.classString(o)).reason();this._promise._rejectCallback(u,false);return}if(o.length===0){if(r===-5){this._resolveEmptyArray()}else{this._resolve(toResolutionValue(r))}return}this._iterate(o)};PromiseArray.prototype._iterate=function(t){var r=this.getActualLength(t.length);this._length=r;this._values=this.shouldCopyValues()?new Array(r):this._values;var i=this._promise;var o=false;var s=null;for(var a=0;a=this._length){this._resolve(this._values);return true}return false};PromiseArray.prototype._promiseCancelled=function(){this._cancel();return true};PromiseArray.prototype._promiseRejected=function(e){this._totalResolved++;this._reject(e);return true};PromiseArray.prototype._resultCancelled=function(){if(this._isResolved())return;var t=this._values;this._cancel();if(t instanceof e){t.cancel()}else{for(var r=0;r{"use strict";e.exports=function(e,t){var n={};var i=r(65311);var o=r(44729);var s=i.withAppended;var a=i.maybeWrapAsError;var u=i.canEvaluate;var c=r(14822).TypeError;var l="Async";var d={__isPromisified__:true};var h=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"];var m=new RegExp("^(?:"+h.join("|")+")$");var defaultFilter=function(e){return i.isIdentifier(e)&&e.charAt(0)!=="_"&&e!=="constructor"};function propsFilter(e){return!m.test(e)}function isPromisified(e){try{return e.__isPromisified__===true}catch(e){return false}}function hasPromisified(e,t,r){var n=i.getDataPropertyOrDefault(e,t+r,d);return n?isPromisified(n):false}function checkValid(e,t,r){for(var n=0;n=r;--n){t.push(n)}for(var n=e+1;n<=3;++n){t.push(n)}return t};var argumentSequence=function(e){return i.filledRange(e,"_arg","")};var parameterDeclaration=function(e){return i.filledRange(Math.max(e,3),"_arg","")};var parameterCount=function(e){if(typeof e.length==="number"){return Math.max(Math.min(e.length,1023+1),0)}return 0};g=function(r,u,c,l,d,h){var m=Math.max(0,parameterCount(l)-1);var g=switchCaseArgumentOrder(m);var y=typeof r==="string"||u===n;function generateCallForArgumentCount(e){var t=argumentSequence(e).join(", ");var r=e>0?", ":"";var n;if(y){n="ret = callback.call(this, {{args}}, nodeback); break;\n"}else{n=u===undefined?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n"}return n.replace("{{args}}",t).replace(", ",r)}function generateArgumentSwitchCase(){var e="";for(var t=0;t{"use strict";e.exports=function(e,t,n,i){var o=r(65311);var s=o.isObject;var a=r(72975);var u;if(typeof Map==="function")u=Map;var c=function(){var e=0;var t=0;function extractEntry(r,n){this[e]=r;this[e+t]=n;e++}return function mapToEntries(r){t=r.size;e=0;var n=new Array(r.size*2);r.forEach(extractEntry,n);return n}}();var entriesToMap=function(e){var t=new u;var r=e.length/2|0;for(var n=0;n=this._length){var n;if(this._isMap){n=entriesToMap(this._values)}else{n={};var i=this.length();for(var o=0,s=this.length();o>1};function props(t){var r;var o=n(t);if(!s(o)){return i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}else if(o instanceof e){r=o._then(e.props,undefined,undefined,undefined,undefined)}else{r=new PropertiesPromiseArray(o).promise()}if(o instanceof e){r._propagateFrom(o,2)}return r}e.prototype.props=function(){return props(this)};e.props=function(e){return props(e)}}},3447:e=>{"use strict";function arrayMove(e,t,r,n,i){for(var o=0;o{"use strict";e.exports=function(e,t,n,i){var o=r(65311);var raceLater=function(e){return e.then((function(t){return race(t,e)}))};function race(r,s){var a=n(r);if(a instanceof e){return raceLater(a)}else{r=o.asArray(r);if(r===null)return i("expecting an array or an iterable object but got "+o.classString(r))}var u=new e(t);if(s!==undefined){u._propagateFrom(s,3)}var c=u._fulfill;var l=u._reject;for(var d=0,h=r.length;d{"use strict";e.exports=function(e,t,n,i,o,s){var a=r(65311);var u=a.tryCatch;function ReductionPromiseArray(t,r,n,i){this.constructor$(t);var s=e._getContext();this._fn=a.contextBind(s,r);if(n!==undefined){n=e.resolve(n);n._attachCancellationCallback(this)}this._initialValue=n;this._currentCancellable=null;if(i===o){this._eachValues=Array(this._length)}else if(i===0){this._eachValues=null}else{this._eachValues=undefined}this._promise._captureStackTrace();this._init$(undefined,-5)}a.inherits(ReductionPromiseArray,t);ReductionPromiseArray.prototype._gotAccum=function(e){if(this._eachValues!==undefined&&this._eachValues!==null&&e!==o){this._eachValues.push(e)}};ReductionPromiseArray.prototype._eachComplete=function(e){if(this._eachValues!==null){this._eachValues.push(e)}return this._eachValues};ReductionPromiseArray.prototype._init=function(){};ReductionPromiseArray.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==undefined?this._eachValues:this._initialValue)};ReductionPromiseArray.prototype.shouldCopyValues=function(){return false};ReductionPromiseArray.prototype._resolve=function(e){this._promise._resolveCallback(e);this._values=null};ReductionPromiseArray.prototype._resultCancelled=function(t){if(t===this._initialValue)return this._cancel();if(this._isResolved())return;this._resultCancelled$();if(this._currentCancellable instanceof e){this._currentCancellable.cancel()}if(this._initialValue instanceof e){this._initialValue.cancel()}};ReductionPromiseArray.prototype._iterate=function(t){this._values=t;var r;var n;var i=t.length;if(this._initialValue!==undefined){r=this._initialValue;n=0}else{r=e.resolve(t[0]);n=1}this._currentCancellable=r;for(var o=n;o{"use strict";var n=r(65311);var i;var noAsyncScheduler=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};var o=n.getNativePromise();if(n.isNode&&typeof MutationObserver==="undefined"){var s=global.setImmediate;var a=process.nextTick;i=n.isRecentNode?function(e){s.call(global,e)}:function(e){a.call(process,e)}}else if(typeof o==="function"&&typeof o.resolve==="function"){var u=o.resolve();i=function(e){u.then(e)}}else if(typeof MutationObserver!=="undefined"&&!(typeof window!=="undefined"&&window.navigator&&(window.navigator.standalone||window.cordova))&&"classList"in document.documentElement){i=function(){var e=document.createElement("div");var t={attributes:true};var r=false;var n=document.createElement("div");var i=new MutationObserver((function(){e.classList.toggle("foo");r=false}));i.observe(n,t);var scheduleToggle=function(){if(r)return;r=true;n.classList.toggle("foo")};return function schedule(r){var n=new MutationObserver((function(){n.disconnect();r()}));n.observe(e,t);scheduleToggle()}}()}else if(typeof setImmediate!=="undefined"){i=function(e){setImmediate(e)}}else if(typeof setTimeout!=="undefined"){i=function(e){setTimeout(e,0)}}else{i=noAsyncScheduler}e.exports=i},58098:(e,t,r)=>{"use strict";e.exports=function(e,t,n){var i=e.PromiseInspection;var o=r(65311);function SettledPromiseArray(e){this.constructor$(e)}o.inherits(SettledPromiseArray,t);SettledPromiseArray.prototype._promiseResolved=function(e,t){this._values[e]=t;var r=++this._totalResolved;if(r>=this._length){this._resolve(this._values);return true}return false};SettledPromiseArray.prototype._promiseFulfilled=function(e,t){var r=new i;r._bitField=33554432;r._settledValueField=e;return this._promiseResolved(t,r)};SettledPromiseArray.prototype._promiseRejected=function(e,t){var r=new i;r._bitField=16777216;r._settledValueField=e;return this._promiseResolved(t,r)};e.settle=function(e){n.deprecated(".settle()",".reflect()");return new SettledPromiseArray(e).promise()};e.allSettled=function(e){return new SettledPromiseArray(e).promise()};e.prototype.settle=function(){return e.settle(this)}}},44877:(e,t,r)=>{"use strict";e.exports=function(e,t,n){var i=r(65311);var o=r(14822).RangeError;var s=r(14822).AggregateError;var a=i.isArray;var u={};function SomePromiseArray(e){this.constructor$(e);this._howMany=0;this._unwrap=false;this._initialized=false}i.inherits(SomePromiseArray,t);SomePromiseArray.prototype._init=function(){if(!this._initialized){return}if(this._howMany===0){this._resolve([]);return}this._init$(undefined,-5);var e=a(this._values);if(!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()){this._reject(this._getRangeError(this.length()))}};SomePromiseArray.prototype.init=function(){this._initialized=true;this._init()};SomePromiseArray.prototype.setUnwrap=function(){this._unwrap=true};SomePromiseArray.prototype.howMany=function(){return this._howMany};SomePromiseArray.prototype.setHowMany=function(e){this._howMany=e};SomePromiseArray.prototype._promiseFulfilled=function(e){this._addFulfilled(e);if(this._fulfilled()===this.howMany()){this._values.length=this.howMany();if(this.howMany()===1&&this._unwrap){this._resolve(this._values[0])}else{this._resolve(this._values)}return true}return false};SomePromiseArray.prototype._promiseRejected=function(e){this._addRejected(e);return this._checkOutcome()};SomePromiseArray.prototype._promiseCancelled=function(){if(this._values instanceof e||this._values==null){return this._cancel()}this._addRejected(u);return this._checkOutcome()};SomePromiseArray.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){var e=new s;for(var t=this.length();t0){this._reject(e)}else{this._cancel()}return true}return false};SomePromiseArray.prototype._fulfilled=function(){return this._totalResolved};SomePromiseArray.prototype._rejected=function(){return this._values.length-this.length()};SomePromiseArray.prototype._addRejected=function(e){this._values.push(e)};SomePromiseArray.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e};SomePromiseArray.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()};SomePromiseArray.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)};SomePromiseArray.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function some(e,t){if((t|0)!==t||t<0){return n("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n")}var r=new SomePromiseArray(e);var i=r.promise();r.setHowMany(t);r.init();return i}e.some=function(e,t){return some(e,t)};e.prototype.some=function(e){return some(this,e)};e._SomePromiseArray=SomePromiseArray}},99218:e=>{"use strict";e.exports=function(e){function PromiseInspection(e){if(e!==undefined){e=e._target();this._bitField=e._bitField;this._settledValueField=e._isFateSealed()?e._settledValue():undefined}else{this._bitField=0;this._settledValueField=undefined}}PromiseInspection.prototype._settledValue=function(){return this._settledValueField};var t=PromiseInspection.prototype.value=function(){if(!this.isFulfilled()){throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n")}return this._settledValue()};var r=PromiseInspection.prototype.error=PromiseInspection.prototype.reason=function(){if(!this.isRejected()){throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n")}return this._settledValue()};var n=PromiseInspection.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0};var i=PromiseInspection.prototype.isRejected=function(){return(this._bitField&16777216)!==0};var o=PromiseInspection.prototype.isPending=function(){return(this._bitField&50397184)===0};var s=PromiseInspection.prototype.isResolved=function(){return(this._bitField&50331648)!==0};PromiseInspection.prototype.isCancelled=function(){return(this._bitField&8454144)!==0};e.prototype.__isCancelled=function(){return(this._bitField&65536)===65536};e.prototype._isCancelled=function(){return this._target().__isCancelled()};e.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0};e.prototype.isPending=function(){return o.call(this._target())};e.prototype.isRejected=function(){return i.call(this._target())};e.prototype.isFulfilled=function(){return n.call(this._target())};e.prototype.isResolved=function(){return s.call(this._target())};e.prototype.value=function(){return t.call(this._target())};e.prototype.reason=function(){var e=this._target();e._unsetRejectionIsUnhandled();return r.call(e)};e.prototype._value=function(){return this._settledValue()};e.prototype._reason=function(){this._unsetRejectionIsUnhandled();return this._settledValue()};e.PromiseInspection=PromiseInspection}},53791:(e,t,r)=>{"use strict";e.exports=function(e,t){var n=r(65311);var i=n.errorObj;var o=n.isObject;function tryConvertToPromise(r,n){if(o(r)){if(r instanceof e)return r;var s=getThen(r);if(s===i){if(n)n._pushContext();var a=e.reject(s.e);if(n)n._popContext();return a}else if(typeof s==="function"){if(isAnyBluebirdPromise(r)){var a=new e(t);r._then(a._fulfill,a._reject,undefined,a,null);return a}return doThenable(r,s,n)}}return r}function doGetThen(e){return e.then}function getThen(e){try{return doGetThen(e)}catch(e){i.e=e;return i}}var s={}.hasOwnProperty;function isAnyBluebirdPromise(e){try{return s.call(e,"_promise0")}catch(e){return false}}function doThenable(r,o,s){var a=new e(t);var u=a;if(s)s._pushContext();a._captureStackTrace();if(s)s._popContext();var c=true;var l=n.tryCatch(o).call(r,resolve,reject);c=false;if(a&&l===i){a._rejectCallback(l.e,true,true);a=null}function resolve(e){if(!a)return;a._resolveCallback(e);a=null}function reject(e){if(!a)return;a._rejectCallback(e,c,true);a=null}return u}return tryConvertToPromise}},9478:(e,t,r)=>{"use strict";e.exports=function(e,t,n){var i=r(65311);var o=e.TimeoutError;function HandleWrapper(e){this.handle=e}HandleWrapper.prototype._resultCancelled=function(){clearTimeout(this.handle)};var afterValue=function(e){return s(+this).thenReturn(e)};var s=e.delay=function(r,i){var o;var s;if(i!==undefined){o=e.resolve(i)._then(afterValue,null,null,r,undefined);if(n.cancellation()&&i instanceof e){o._setOnCancel(i)}}else{o=new e(t);s=setTimeout((function(){o._fulfill()}),+r);if(n.cancellation()){o._setOnCancel(new HandleWrapper(s))}o._captureStackTrace()}o._setAsyncGuaranteed();return o};e.prototype.delay=function(e){return s(e,this)};var afterTimeout=function(e,t,r){var n;if(typeof t!=="string"){if(t instanceof Error){n=t}else{n=new o("operation timed out")}}else{n=new o(t)}i.markAsOriginatingFromRejection(n);e._attachExtraTrace(n);e._reject(n);if(r!=null){r.cancel()}};function successClear(e){clearTimeout(this.handle);return e}function failureClear(e){clearTimeout(this.handle);throw e}e.prototype.timeout=function(e,t){e=+e;var r,i;var o=new HandleWrapper(setTimeout((function timeoutTimeout(){if(r.isPending()){afterTimeout(r,t,i)}}),e));if(n.cancellation()){i=this.then();r=i._then(successClear,failureClear,undefined,o,undefined);r._setOnCancel(o)}else{r=this._then(successClear,failureClear,undefined,o,undefined)}return r}}},55127:(e,t,r)=>{"use strict";e.exports=function(e,t,n,i,o,s){var a=r(65311);var u=r(14822).TypeError;var c=r(65311).inherits;var l=a.errorObj;var d=a.tryCatch;var h={};function thrower(e){setTimeout((function(){throw e}),0)}function castPreservingDisposable(e){var t=n(e);if(t!==e&&typeof e._isDisposable==="function"&&typeof e._getDisposer==="function"&&e._isDisposable()){t._setDisposable(e._getDisposer())}return t}function dispose(t,r){var i=0;var s=t.length;var a=new e(o);function iterator(){if(i>=s)return a._fulfill();var o=castPreservingDisposable(t[i++]);if(o instanceof e&&o._isDisposable()){try{o=n(o._getDisposer().tryDispose(r),t.promise)}catch(e){return thrower(e)}if(o instanceof e){return o._then(iterator,thrower,null,null,null)}}iterator()}iterator();return a}function Disposer(e,t,r){this._data=e;this._promise=t;this._context=r}Disposer.prototype.data=function(){return this._data};Disposer.prototype.promise=function(){return this._promise};Disposer.prototype.resource=function(){if(this.promise().isFulfilled()){return this.promise().value()}return h};Disposer.prototype.tryDispose=function(e){var t=this.resource();var r=this._context;if(r!==undefined)r._pushContext();var n=t!==h?this.doDispose(t,e):null;if(r!==undefined)r._popContext();this._promise._unsetDisposable();this._data=null;return n};Disposer.isDisposer=function(e){return e!=null&&typeof e.resource==="function"&&typeof e.tryDispose==="function"};function FunctionDisposer(e,t,r){this.constructor$(e,t,r)}c(FunctionDisposer,Disposer);FunctionDisposer.prototype.doDispose=function(e,t){var r=this.data();return r.call(e,e,t)};function maybeUnwrapDisposer(e){if(Disposer.isDisposer(e)){this.resources[this.index]._setDisposable(e);return e.promise()}return e}function ResourceList(e){this.length=e;this.promise=null;this[e-1]=null}ResourceList.prototype._resultCancelled=function(){var t=this.length;for(var r=0;r0};e.prototype._getDisposer=function(){return this._disposer};e.prototype._unsetDisposable=function(){this._bitField=this._bitField&~131072;this._disposer=undefined};e.prototype.disposer=function(e){if(typeof e==="function"){return new FunctionDisposer(e,this,i())}throw new u}}},65311:function(module,__unused_webpack_exports,__nccwpck_require__){"use strict";var es5=__nccwpck_require__(72975);var canEvaluate=typeof navigator=="undefined";var errorObj={e:{}};var tryCatchTarget;var globalObject=typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:this!==undefined?this:null;function tryCatcher(){try{var e=tryCatchTarget;tryCatchTarget=null;return e.apply(this,arguments)}catch(e){errorObj.e=e;return errorObj}}function tryCatch(e){tryCatchTarget=e;return tryCatcher}var inherits=function(e,t){var r={}.hasOwnProperty;function T(){this.constructor=e;this.constructor$=t;for(var n in t.prototype){if(r.call(t.prototype,n)&&n.charAt(n.length-1)!=="$"){this[n+"$"]=t.prototype[n]}}}T.prototype=t.prototype;e.prototype=new T;return e.prototype};function isPrimitive(e){return e==null||e===true||e===false||typeof e==="string"||typeof e==="number"}function isObject(e){return typeof e==="function"||typeof e==="object"&&e!==null}function maybeWrapAsError(e){if(!isPrimitive(e))return e;return new Error(safeToString(e))}function withAppended(e,t){var r=e.length;var n=new Array(r+1);var i;for(i=0;i1;var n=t.length>0&&!(t.length===1&&t[0]==="constructor");var i=thisAssignmentPattern.test(e+"")&&es5.names(e).length>0;if(r||n||i){return true}}return false}catch(e){return false}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var receiver=new FakeConstructor;function ic(){return typeof receiver.foo}ic();ic();return obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(e){return rident.test(e)}function filledRange(e,t,r){var n=new Array(e);for(var i=0;i10||e[0]>0}();ret.nodeSupportsAsyncResource=ret.isNode&&function(){var e=false;try{var t=__nccwpck_require__(50852).AsyncResource;e=typeof t.prototype.runInAsyncScope==="function"}catch(t){e=false}return e}();if(ret.isNode)ret.toFastProperties(process);try{throw new Error}catch(e){ret.lastLineError=e}module.exports=ret},94623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Binary=void 0;var n=r(14300);var i=r(85643);var o=r(26549);var s=r(17101);var a=r(85471);var u=function(){function Binary(e,t){if(!(this instanceof Binary))return new Binary(e,t);if(!(e==null)&&!(typeof e==="string")&&!ArrayBuffer.isView(e)&&!(e instanceof ArrayBuffer)&&!Array.isArray(e)){throw new a.BSONTypeError("Binary can only be constructed from string, Buffer, TypedArray, or Array")}this.sub_type=t!==null&&t!==void 0?t:Binary.BSON_BINARY_SUBTYPE_DEFAULT;if(e==null){this.buffer=n.Buffer.alloc(Binary.BUFFER_SIZE);this.position=0}else{if(typeof e==="string"){this.buffer=n.Buffer.from(e,"binary")}else if(Array.isArray(e)){this.buffer=n.Buffer.from(e)}else{this.buffer=i.ensureBuffer(e)}this.position=this.buffer.byteLength}}Binary.prototype.put=function(e){if(typeof e==="string"&&e.length!==1){throw new a.BSONTypeError("only accepts single character String")}else if(typeof e!=="number"&&e.length!==1)throw new a.BSONTypeError("only accepts single character Uint8Array or Array");var t;if(typeof e==="string"){t=e.charCodeAt(0)}else if(typeof e==="number"){t=e}else{t=e[0]}if(t<0||t>255){throw new a.BSONTypeError("only accepts number in a valid unsigned byte range 0-255")}if(this.buffer.length>this.position){this.buffer[this.position++]=t}else{var r=n.Buffer.alloc(Binary.BUFFER_SIZE+this.buffer.length);this.buffer.copy(r,0,0,this.buffer.length);this.buffer=r;this.buffer[this.position++]=t}};Binary.prototype.write=function(e,t){t=typeof t==="number"?t:this.position;if(this.buffer.lengththis.position?t+e.length:this.position}else if(typeof e==="string"){this.buffer.write(e,t,e.length,"binary");this.position=t+e.length>this.position?t+e.length:this.position}};Binary.prototype.read=function(e,t){t=t&&t>0?t:this.position;return this.buffer.slice(e,e+t)};Binary.prototype.value=function(e){e=!!e;if(e&&this.buffer.length===this.position){return this.buffer}if(e){return this.buffer.slice(0,this.position)}return this.buffer.toString("binary",0,this.position)};Binary.prototype.length=function(){return this.position};Binary.prototype.toJSON=function(){return this.buffer.toString("base64")};Binary.prototype.toString=function(e){return this.buffer.toString(e)};Binary.prototype.toExtendedJSON=function(e){e=e||{};var t=this.buffer.toString("base64");var r=Number(this.sub_type).toString(16);if(e.legacy){return{$binary:t,$type:r.length===1?"0"+r:r}}return{$binary:{base64:t,subType:r.length===1?"0"+r:r}}};Binary.prototype.toUUID=function(){if(this.sub_type===Binary.SUBTYPE_UUID){return new s.UUID(this.buffer.slice(0,this.position))}throw new a.BSONError('Binary sub_type "'+this.sub_type+'" is not supported for converting to UUID. Only "'+Binary.SUBTYPE_UUID+'" is currently supported.')};Binary.fromExtendedJSON=function(e,t){t=t||{};var r;var i;if("$binary"in e){if(t.legacy&&typeof e.$binary==="string"&&"$type"in e){i=e.$type?parseInt(e.$type,16):0;r=n.Buffer.from(e.$binary,"base64")}else{if(typeof e.$binary!=="string"){i=e.$binary.subType?parseInt(e.$binary.subType,16):0;r=n.Buffer.from(e.$binary.base64,"base64")}}}else if("$uuid"in e){i=4;r=o.uuidHexStringToBuffer(e.$uuid)}if(!r){throw new a.BSONTypeError("Unexpected Binary Extended JSON format "+JSON.stringify(e))}return new Binary(r,i)};Binary.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};Binary.prototype.inspect=function(){var e=this.value(true);return'new Binary(Buffer.from("'+e.toString("hex")+'", "hex"), '+this.sub_type+")"};Binary.BSON_BINARY_SUBTYPE_DEFAULT=0;Binary.BUFFER_SIZE=256;Binary.SUBTYPE_DEFAULT=0;Binary.SUBTYPE_FUNCTION=1;Binary.SUBTYPE_BYTE_ARRAY=2;Binary.SUBTYPE_UUID_OLD=3;Binary.SUBTYPE_UUID=4;Binary.SUBTYPE_MD5=5;Binary.SUBTYPE_ENCRYPTED=6;Binary.SUBTYPE_COLUMN=7;Binary.SUBTYPE_USER_DEFINED=128;return Binary}();t.Binary=u;Object.defineProperty(u.prototype,"_bsontype",{value:"Binary"})},61528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BSONRegExp=t.MaxKey=t.MinKey=t.Int32=t.Double=t.Timestamp=t.Long=t.UUID=t.ObjectId=t.Binary=t.DBRef=t.BSONSymbol=t.Map=t.Code=t.LongWithoutOverridesClass=t.EJSON=t.BSON_INT64_MIN=t.BSON_INT64_MAX=t.BSON_INT32_MIN=t.BSON_INT32_MAX=t.BSON_DATA_UNDEFINED=t.BSON_DATA_TIMESTAMP=t.BSON_DATA_SYMBOL=t.BSON_DATA_STRING=t.BSON_DATA_REGEXP=t.BSON_DATA_OID=t.BSON_DATA_OBJECT=t.BSON_DATA_NUMBER=t.BSON_DATA_NULL=t.BSON_DATA_MIN_KEY=t.BSON_DATA_MAX_KEY=t.BSON_DATA_LONG=t.BSON_DATA_INT=t.BSON_DATA_DECIMAL128=t.BSON_DATA_DBPOINTER=t.BSON_DATA_DATE=t.BSON_DATA_CODE_W_SCOPE=t.BSON_DATA_CODE=t.BSON_DATA_BOOLEAN=t.BSON_DATA_BINARY=t.BSON_DATA_ARRAY=t.BSON_BINARY_SUBTYPE_COLUMN=t.BSON_BINARY_SUBTYPE_ENCRYPTED=t.BSON_BINARY_SUBTYPE_UUID_NEW=t.BSON_BINARY_SUBTYPE_UUID=t.BSON_BINARY_SUBTYPE_USER_DEFINED=t.BSON_BINARY_SUBTYPE_MD5=t.BSON_BINARY_SUBTYPE_FUNCTION=t.BSON_BINARY_SUBTYPE_DEFAULT=t.BSON_BINARY_SUBTYPE_BYTE_ARRAY=void 0;t.deserializeStream=t.calculateObjectSize=t.deserialize=t.serializeWithBufferAndIndex=t.serialize=t.setInternalBufferSize=t.BSONTypeError=t.BSONError=t.ObjectID=t.Decimal128=void 0;var n=r(14300);var i=r(94623);Object.defineProperty(t,"Binary",{enumerable:true,get:function(){return i.Binary}});var o=r(89421);Object.defineProperty(t,"Code",{enumerable:true,get:function(){return o.Code}});var s=r(75725);Object.defineProperty(t,"DBRef",{enumerable:true,get:function(){return s.DBRef}});var a=r(22098);Object.defineProperty(t,"Decimal128",{enumerable:true,get:function(){return a.Decimal128}});var u=r(90030);Object.defineProperty(t,"Double",{enumerable:true,get:function(){return u.Double}});var c=r(85643);var l=r(19244);var d=r(79356);Object.defineProperty(t,"Int32",{enumerable:true,get:function(){return d.Int32}});var h=r(46522);Object.defineProperty(t,"Long",{enumerable:true,get:function(){return h.Long}});var m=r(40298);Object.defineProperty(t,"Map",{enumerable:true,get:function(){return m.Map}});var g=r(81351);Object.defineProperty(t,"MaxKey",{enumerable:true,get:function(){return g.MaxKey}});var y=r(4014);Object.defineProperty(t,"MinKey",{enumerable:true,get:function(){return y.MinKey}});var v=r(32087);Object.defineProperty(t,"ObjectId",{enumerable:true,get:function(){return v.ObjectId}});Object.defineProperty(t,"ObjectID",{enumerable:true,get:function(){return v.ObjectId}});var b=r(85471);var _=r(74029);var E=r(79610);var k=r(10546);var x=r(51716);Object.defineProperty(t,"BSONRegExp",{enumerable:true,get:function(){return x.BSONRegExp}});var C=r(97602);Object.defineProperty(t,"BSONSymbol",{enumerable:true,get:function(){return C.BSONSymbol}});var O=r(56754);Object.defineProperty(t,"Timestamp",{enumerable:true,get:function(){return O.Timestamp}});var D=r(17101);Object.defineProperty(t,"UUID",{enumerable:true,get:function(){return D.UUID}});var B=r(7782);Object.defineProperty(t,"BSON_BINARY_SUBTYPE_BYTE_ARRAY",{enumerable:true,get:function(){return B.BSON_BINARY_SUBTYPE_BYTE_ARRAY}});Object.defineProperty(t,"BSON_BINARY_SUBTYPE_DEFAULT",{enumerable:true,get:function(){return B.BSON_BINARY_SUBTYPE_DEFAULT}});Object.defineProperty(t,"BSON_BINARY_SUBTYPE_FUNCTION",{enumerable:true,get:function(){return B.BSON_BINARY_SUBTYPE_FUNCTION}});Object.defineProperty(t,"BSON_BINARY_SUBTYPE_MD5",{enumerable:true,get:function(){return B.BSON_BINARY_SUBTYPE_MD5}});Object.defineProperty(t,"BSON_BINARY_SUBTYPE_USER_DEFINED",{enumerable:true,get:function(){return B.BSON_BINARY_SUBTYPE_USER_DEFINED}});Object.defineProperty(t,"BSON_BINARY_SUBTYPE_UUID",{enumerable:true,get:function(){return B.BSON_BINARY_SUBTYPE_UUID}});Object.defineProperty(t,"BSON_BINARY_SUBTYPE_UUID_NEW",{enumerable:true,get:function(){return B.BSON_BINARY_SUBTYPE_UUID_NEW}});Object.defineProperty(t,"BSON_BINARY_SUBTYPE_ENCRYPTED",{enumerable:true,get:function(){return B.BSON_BINARY_SUBTYPE_ENCRYPTED}});Object.defineProperty(t,"BSON_BINARY_SUBTYPE_COLUMN",{enumerable:true,get:function(){return B.BSON_BINARY_SUBTYPE_COLUMN}});Object.defineProperty(t,"BSON_DATA_ARRAY",{enumerable:true,get:function(){return B.BSON_DATA_ARRAY}});Object.defineProperty(t,"BSON_DATA_BINARY",{enumerable:true,get:function(){return B.BSON_DATA_BINARY}});Object.defineProperty(t,"BSON_DATA_BOOLEAN",{enumerable:true,get:function(){return B.BSON_DATA_BOOLEAN}});Object.defineProperty(t,"BSON_DATA_CODE",{enumerable:true,get:function(){return B.BSON_DATA_CODE}});Object.defineProperty(t,"BSON_DATA_CODE_W_SCOPE",{enumerable:true,get:function(){return B.BSON_DATA_CODE_W_SCOPE}});Object.defineProperty(t,"BSON_DATA_DATE",{enumerable:true,get:function(){return B.BSON_DATA_DATE}});Object.defineProperty(t,"BSON_DATA_DBPOINTER",{enumerable:true,get:function(){return B.BSON_DATA_DBPOINTER}});Object.defineProperty(t,"BSON_DATA_DECIMAL128",{enumerable:true,get:function(){return B.BSON_DATA_DECIMAL128}});Object.defineProperty(t,"BSON_DATA_INT",{enumerable:true,get:function(){return B.BSON_DATA_INT}});Object.defineProperty(t,"BSON_DATA_LONG",{enumerable:true,get:function(){return B.BSON_DATA_LONG}});Object.defineProperty(t,"BSON_DATA_MAX_KEY",{enumerable:true,get:function(){return B.BSON_DATA_MAX_KEY}});Object.defineProperty(t,"BSON_DATA_MIN_KEY",{enumerable:true,get:function(){return B.BSON_DATA_MIN_KEY}});Object.defineProperty(t,"BSON_DATA_NULL",{enumerable:true,get:function(){return B.BSON_DATA_NULL}});Object.defineProperty(t,"BSON_DATA_NUMBER",{enumerable:true,get:function(){return B.BSON_DATA_NUMBER}});Object.defineProperty(t,"BSON_DATA_OBJECT",{enumerable:true,get:function(){return B.BSON_DATA_OBJECT}});Object.defineProperty(t,"BSON_DATA_OID",{enumerable:true,get:function(){return B.BSON_DATA_OID}});Object.defineProperty(t,"BSON_DATA_REGEXP",{enumerable:true,get:function(){return B.BSON_DATA_REGEXP}});Object.defineProperty(t,"BSON_DATA_STRING",{enumerable:true,get:function(){return B.BSON_DATA_STRING}});Object.defineProperty(t,"BSON_DATA_SYMBOL",{enumerable:true,get:function(){return B.BSON_DATA_SYMBOL}});Object.defineProperty(t,"BSON_DATA_TIMESTAMP",{enumerable:true,get:function(){return B.BSON_DATA_TIMESTAMP}});Object.defineProperty(t,"BSON_DATA_UNDEFINED",{enumerable:true,get:function(){return B.BSON_DATA_UNDEFINED}});Object.defineProperty(t,"BSON_INT32_MAX",{enumerable:true,get:function(){return B.BSON_INT32_MAX}});Object.defineProperty(t,"BSON_INT32_MIN",{enumerable:true,get:function(){return B.BSON_INT32_MIN}});Object.defineProperty(t,"BSON_INT64_MAX",{enumerable:true,get:function(){return B.BSON_INT64_MAX}});Object.defineProperty(t,"BSON_INT64_MIN",{enumerable:true,get:function(){return B.BSON_INT64_MIN}});var P=r(19244);Object.defineProperty(t,"EJSON",{enumerable:true,get:function(){return P.EJSON}});var I=r(56754);Object.defineProperty(t,"LongWithoutOverridesClass",{enumerable:true,get:function(){return I.LongWithoutOverridesClass}});var R=r(85471);Object.defineProperty(t,"BSONError",{enumerable:true,get:function(){return R.BSONError}});Object.defineProperty(t,"BSONTypeError",{enumerable:true,get:function(){return R.BSONTypeError}});var N=1024*1024*17;var $=n.Buffer.alloc(N);function setInternalBufferSize(e){if($.length{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Code=void 0;var r=function(){function Code(e,t){if(!(this instanceof Code))return new Code(e,t);this.code=e;this.scope=t}Code.prototype.toJSON=function(){return{code:this.code,scope:this.scope}};Code.prototype.toExtendedJSON=function(){if(this.scope){return{$code:this.code,$scope:this.scope}}return{$code:this.code}};Code.fromExtendedJSON=function(e){return new Code(e.$code,e.$scope)};Code.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};Code.prototype.inspect=function(){var e=this.toJSON();return'new Code("'+e.code+'"'+(e.scope?", "+JSON.stringify(e.scope):"")+")"};return Code}();t.Code=r;Object.defineProperty(r.prototype,"_bsontype",{value:"Code"})},7782:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BSON_BINARY_SUBTYPE_USER_DEFINED=t.BSON_BINARY_SUBTYPE_COLUMN=t.BSON_BINARY_SUBTYPE_ENCRYPTED=t.BSON_BINARY_SUBTYPE_MD5=t.BSON_BINARY_SUBTYPE_UUID_NEW=t.BSON_BINARY_SUBTYPE_UUID=t.BSON_BINARY_SUBTYPE_BYTE_ARRAY=t.BSON_BINARY_SUBTYPE_FUNCTION=t.BSON_BINARY_SUBTYPE_DEFAULT=t.BSON_DATA_MAX_KEY=t.BSON_DATA_MIN_KEY=t.BSON_DATA_DECIMAL128=t.BSON_DATA_LONG=t.BSON_DATA_TIMESTAMP=t.BSON_DATA_INT=t.BSON_DATA_CODE_W_SCOPE=t.BSON_DATA_SYMBOL=t.BSON_DATA_CODE=t.BSON_DATA_DBPOINTER=t.BSON_DATA_REGEXP=t.BSON_DATA_NULL=t.BSON_DATA_DATE=t.BSON_DATA_BOOLEAN=t.BSON_DATA_OID=t.BSON_DATA_UNDEFINED=t.BSON_DATA_BINARY=t.BSON_DATA_ARRAY=t.BSON_DATA_OBJECT=t.BSON_DATA_STRING=t.BSON_DATA_NUMBER=t.JS_INT_MIN=t.JS_INT_MAX=t.BSON_INT64_MIN=t.BSON_INT64_MAX=t.BSON_INT32_MIN=t.BSON_INT32_MAX=void 0;t.BSON_INT32_MAX=2147483647;t.BSON_INT32_MIN=-2147483648;t.BSON_INT64_MAX=Math.pow(2,63)-1;t.BSON_INT64_MIN=-Math.pow(2,63);t.JS_INT_MAX=Math.pow(2,53);t.JS_INT_MIN=-Math.pow(2,53);t.BSON_DATA_NUMBER=1;t.BSON_DATA_STRING=2;t.BSON_DATA_OBJECT=3;t.BSON_DATA_ARRAY=4;t.BSON_DATA_BINARY=5;t.BSON_DATA_UNDEFINED=6;t.BSON_DATA_OID=7;t.BSON_DATA_BOOLEAN=8;t.BSON_DATA_DATE=9;t.BSON_DATA_NULL=10;t.BSON_DATA_REGEXP=11;t.BSON_DATA_DBPOINTER=12;t.BSON_DATA_CODE=13;t.BSON_DATA_SYMBOL=14;t.BSON_DATA_CODE_W_SCOPE=15;t.BSON_DATA_INT=16;t.BSON_DATA_TIMESTAMP=17;t.BSON_DATA_LONG=18;t.BSON_DATA_DECIMAL128=19;t.BSON_DATA_MIN_KEY=255;t.BSON_DATA_MAX_KEY=127;t.BSON_BINARY_SUBTYPE_DEFAULT=0;t.BSON_BINARY_SUBTYPE_FUNCTION=1;t.BSON_BINARY_SUBTYPE_BYTE_ARRAY=2;t.BSON_BINARY_SUBTYPE_UUID=3;t.BSON_BINARY_SUBTYPE_UUID_NEW=4;t.BSON_BINARY_SUBTYPE_MD5=5;t.BSON_BINARY_SUBTYPE_ENCRYPTED=6;t.BSON_BINARY_SUBTYPE_COLUMN=7;t.BSON_BINARY_SUBTYPE_USER_DEFINED=128},75725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DBRef=t.isDBRefLike=void 0;var n=r(48650);function isDBRefLike(e){return n.isObjectLike(e)&&e.$id!=null&&typeof e.$ref==="string"&&(e.$db==null||typeof e.$db==="string")}t.isDBRefLike=isDBRefLike;var i=function(){function DBRef(e,t,r,n){if(!(this instanceof DBRef))return new DBRef(e,t,r,n);var i=e.split(".");if(i.length===2){r=i.shift();e=i.shift()}this.collection=e;this.oid=t;this.db=r;this.fields=n||{}}Object.defineProperty(DBRef.prototype,"namespace",{get:function(){return this.collection},set:function(e){this.collection=e},enumerable:false,configurable:true});DBRef.prototype.toJSON=function(){var e=Object.assign({$ref:this.collection,$id:this.oid},this.fields);if(this.db!=null)e.$db=this.db;return e};DBRef.prototype.toExtendedJSON=function(e){e=e||{};var t={$ref:this.collection,$id:this.oid};if(e.legacy){return t}if(this.db)t.$db=this.db;t=Object.assign(t,this.fields);return t};DBRef.fromExtendedJSON=function(e){var t=Object.assign({},e);delete t.$ref;delete t.$id;delete t.$db;return new DBRef(e.$ref,e.$id,e.$db,t)};DBRef.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};DBRef.prototype.inspect=function(){var e=this.oid===undefined||this.oid.toString===undefined?this.oid:this.oid.toString();return'new DBRef("'+this.namespace+'", new ObjectId("'+e+'")'+(this.db?', "'+this.db+'"':"")+")"};return DBRef}();t.DBRef=i;Object.defineProperty(i.prototype,"_bsontype",{value:"DBRef"})},22098:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Decimal128=void 0;var n=r(14300);var i=r(85471);var o=r(46522);var s=r(48650);var a=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/;var u=/^(\+|-)?(Infinity|inf)$/i;var c=/^(\+|-)?NaN$/i;var l=6111;var d=-6176;var h=6176;var m=34;var g=[124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse();var y=[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse();var v=[120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse();var b=/^([-+])?(\d+)?$/;var _=31;var E=16383;var k=30;var x=31;function isDigit(e){return!isNaN(parseInt(e,10))}function divideu128(e){var t=o.Long.fromNumber(1e3*1e3*1e3);var r=o.Long.fromNumber(0);if(!e.parts[0]&&!e.parts[1]&&!e.parts[2]&&!e.parts[3]){return{quotient:e,rem:r}}for(var n=0;n<=3;n++){r=r.shiftLeft(32);r=r.add(new o.Long(e.parts[n],0));e.parts[n]=r.div(t).low;r=r.modulo(t)}return{quotient:e,rem:r}}function multiply64x2(e,t){if(!e&&!t){return{high:o.Long.fromNumber(0),low:o.Long.fromNumber(0)}}var r=e.shiftRightUnsigned(32);var n=new o.Long(e.getLowBits(),0);var i=t.shiftRightUnsigned(32);var s=new o.Long(t.getLowBits(),0);var a=r.multiply(i);var u=r.multiply(s);var c=n.multiply(i);var l=n.multiply(s);a=a.add(u.shiftRightUnsigned(32));u=new o.Long(u.getLowBits(),0).add(c).add(l.shiftRightUnsigned(32));a=a.add(u.shiftRightUnsigned(32));l=u.shiftLeft(32).add(new o.Long(l.getLowBits(),0));return{high:a,low:l}}function lessThan(e,t){var r=e.high>>>0;var n=t.high>>>0;if(r>>0;var o=t.low>>>0;if(i=7e3){throw new i.BSONTypeError(""+e+" not a valid Decimal128 string")}var U=e.match(a);var V=e.match(u);var W=e.match(c);if(!U&&!V&&!W||e.length===0){throw new i.BSONTypeError(""+e+" not a valid Decimal128 string")}if(U){var G=U[2];var Q=U[4];var Y=U[5];var J=U[6];if(Q&&J===undefined)invalidErr(e,"missing exponent power");if(Q&&G===undefined)invalidErr(e,"missing exponent base");if(Q===undefined&&(Y||J)){invalidErr(e,"missing e before exponent")}}if(e[z]==="+"||e[z]==="-"){t=e[z++]==="-"}if(!isDigit(e[z])&&e[z]!=="."){if(e[z]==="i"||e[z]==="I"){return new Decimal128(n.Buffer.from(t?y:v))}else if(e[z]==="N"){return new Decimal128(n.Buffer.from(g))}}while(isDigit(e[z])||e[z]==="."){if(e[z]==="."){if(r)invalidErr(e,"contains multiple periods");r=true;z=z+1;continue}if(D<34){if(e[z]!=="0"||s){if(!s){C=E}s=true;O[B++]=parseInt(e[z],10);D=D+1}}if(s)k=k+1;if(r)x=x+1;E=E+1;z=z+1}if(r&&!E)throw new i.BSONTypeError(""+e+" not a valid Decimal128 string");if(e[z]==="e"||e[z]==="E"){var X=e.substr(++z).match(b);if(!X||!X[2])return new Decimal128(n.Buffer.from(g));R=parseInt(X[0],10);z=z+X[0].length}if(e[z])return new Decimal128(n.Buffer.from(g));P=0;if(!D){P=0;I=0;O[0]=0;k=1;D=1;_=0}else{I=D-1;_=k;if(_!==1){while(O[C+_-1]===0){_=_-1}}}if(R<=x&&x-R>1<<14){R=d}else{R=R-x}while(R>l){I=I+1;if(I-P>m){var ee=O.join("");if(ee.match(/^0+$/)){R=l;break}invalidErr(e,"overflow")}R=R-1}while(R=5){ne=1;if(re===5){ne=O[I]%2===1?1:0;for(N=C+I+2;N=0;ie--){if(++O[ie]>9){O[ie]=0;if(ie===0){if(R>8&255;ae[z++]=se.low.low>>16&255;ae[z++]=se.low.low>>24&255;ae[z++]=se.low.high&255;ae[z++]=se.low.high>>8&255;ae[z++]=se.low.high>>16&255;ae[z++]=se.low.high>>24&255;ae[z++]=se.high.low&255;ae[z++]=se.high.low>>8&255;ae[z++]=se.high.low>>16&255;ae[z++]=se.high.low>>24&255;ae[z++]=se.high.high&255;ae[z++]=se.high.high>>8&255;ae[z++]=se.high.high>>16&255;ae[z++]=se.high.high>>24&255;return new Decimal128(ae)};Decimal128.prototype.toString=function(){var e;var t=0;var r=new Array(36);for(var n=0;n>26&_;if(O>>3===3){if(O===k){return d.join("")+"Infinity"}else if(O===x){return"NaN"}else{e=b>>15&E;a=8+(b>>14&1)}}else{a=b>>14&7;e=b>>17&E}var D=e-h;u.parts[0]=(b&16383)+((a&15)<<14);u.parts[1]=v;u.parts[2]=y;u.parts[3]=g;if(u.parts[0]===0&&u.parts[1]===0&&u.parts[2]===0&&u.parts[3]===0){s=true}else{for(l=3;l>=0;l--){var B=0;var P=divideu128(u);u=P.quotient;B=P.rem.low;if(!B)continue;for(c=8;c>=0;c--){r[l*9+c]=B%10;B=Math.floor(B/10)}}}if(s){t=1;r[i]=0}else{t=36;while(!r[i]){t=t-1;i=i+1}}var I=t-1+D;if(I>=34||I<=-7||D>0){if(t>34){d.push(""+0);if(D>0)d.push("E+"+D);else if(D<0)d.push("E"+D);return d.join("")}d.push(""+r[i++]);t=t-1;if(t){d.push(".")}for(var n=0;n0){d.push("+"+I)}else{d.push(""+I)}}else{if(D>=0){for(var n=0;n0){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Double=void 0;var r=function(){function Double(e){if(!(this instanceof Double))return new Double(e);if(e instanceof Number){e=e.valueOf()}this.value=+e}Double.prototype.valueOf=function(){return this.value};Double.prototype.toJSON=function(){return this.value};Double.prototype.toString=function(e){return this.value.toString(e)};Double.prototype.toExtendedJSON=function(e){if(e&&(e.legacy||e.relaxed&&isFinite(this.value))){return this.value}if(Object.is(Math.sign(this.value),-0)){return{$numberDouble:"-"+this.value.toFixed(1)}}var t;if(Number.isInteger(this.value)){t=this.value.toFixed(1);if(t.length>=13){t=this.value.toExponential(13).toUpperCase()}}else{t=this.value.toString()}return{$numberDouble:t}};Double.fromExtendedJSON=function(e,t){var r=parseFloat(e.$numberDouble);return t&&t.relaxed?r:new Double(r)};Double.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};Double.prototype.inspect=function(){var e=this.toExtendedJSON();return"new Double("+e.$numberDouble+")"};return Double}();t.Double=r;Object.defineProperty(r.prototype,"_bsontype",{value:"Double"})},85643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ensureBuffer=void 0;var n=r(14300);var i=r(85471);var o=r(48650);function ensureBuffer(e){if(ArrayBuffer.isView(e)){return n.Buffer.from(e.buffer,e.byteOffset,e.byteLength)}if(o.isAnyArrayBuffer(e)){return n.Buffer.from(e)}throw new i.BSONTypeError("Must use either Buffer or TypedArray")}t.ensureBuffer=ensureBuffer},85471:function(e,t){"use strict";var r=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.BSONTypeError=t.BSONError=void 0;var n=function(e){r(BSONError,e);function BSONError(t){var r=e.call(this,t)||this;Object.setPrototypeOf(r,BSONError.prototype);return r}Object.defineProperty(BSONError.prototype,"name",{get:function(){return"BSONError"},enumerable:false,configurable:true});return BSONError}(Error);t.BSONError=n;var i=function(e){r(BSONTypeError,e);function BSONTypeError(t){var r=e.call(this,t)||this;Object.setPrototypeOf(r,BSONTypeError.prototype);return r}Object.defineProperty(BSONTypeError.prototype,"name",{get:function(){return"BSONTypeError"},enumerable:false,configurable:true});return BSONTypeError}(TypeError);t.BSONTypeError=i},19244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EJSON=t.isBSONType=void 0;var n=r(94623);var i=r(89421);var o=r(75725);var s=r(22098);var a=r(90030);var u=r(85471);var c=r(79356);var l=r(46522);var d=r(81351);var h=r(4014);var m=r(32087);var g=r(48650);var y=r(51716);var v=r(97602);var b=r(56754);function isBSONType(e){return g.isObjectLike(e)&&Reflect.has(e,"_bsontype")&&typeof e._bsontype==="string"}t.isBSONType=isBSONType;var _=2147483647;var E=-2147483648;var k=0x8000000000000000;var x=-0x8000000000000000;var C={$oid:m.ObjectId,$binary:n.Binary,$uuid:n.Binary,$symbol:v.BSONSymbol,$numberInt:c.Int32,$numberDecimal:s.Decimal128,$numberDouble:a.Double,$numberLong:l.Long,$minKey:h.MinKey,$maxKey:d.MaxKey,$regex:y.BSONRegExp,$regularExpression:y.BSONRegExp,$timestamp:b.Timestamp};function deserializeValue(e,t){if(t===void 0){t={}}if(typeof e==="number"){if(t.relaxed||t.legacy){return e}if(Math.floor(e)===e){if(e>=E&&e<=_)return new c.Int32(e);if(e>=x&&e<=k)return l.Long.fromNumber(e)}return new a.Double(e)}if(e==null||typeof e!=="object")return e;if(e.$undefined)return null;var r=Object.keys(e).filter((function(t){return t.startsWith("$")&&e[t]!=null}));for(var n=0;n "})).join("");var o=n[r];var s=" -> "+n.slice(r+1,n.length-1).map((function(e){return e+" -> "})).join("");var a=n[n.length-1];var c=" ".repeat(i.length+o.length/2);var l="-".repeat(s.length+(o.length+a.length)/2-1);throw new u.BSONTypeError("Converting circular structure to EJSON:\n"+(" "+i+o+s+a+"\n")+(" "+c+"\\"+l+"/"))}t.seenObjects[t.seenObjects.length-1].obj=e}if(Array.isArray(e))return serializeArray(e,t);if(e===undefined)return null;if(e instanceof Date||g.isDate(e)){var d=e.getTime(),h=d>-1&&d<2534023188e5;if(t.legacy){return t.relaxed&&h?{$date:e.getTime()}:{$date:getISOString(e)}}return t.relaxed&&h?{$date:getISOString(e)}:{$date:{$numberLong:e.getTime().toString()}}}if(typeof e==="number"&&(!t.relaxed||!isFinite(e))){if(Math.floor(e)===e){var m=e>=E&&e<=_,v=e>=x&&e<=k;if(m)return{$numberInt:e.toString()};if(v)return{$numberLong:e.toString()}}return{$numberDouble:e.toString()}}if(e instanceof RegExp||g.isRegExp(e)){var b=e.flags;if(b===undefined){var C=e.toString().match(/[gimuy]*$/);if(C){b=C[0]}}var O=new y.BSONRegExp(e.source,b);return O.toExtendedJSON(t)}if(e!=null&&typeof e==="object")return serializeDocument(e,t);return e}var O={Binary:function(e){return new n.Binary(e.value(),e.sub_type)},Code:function(e){return new i.Code(e.code,e.scope)},DBRef:function(e){return new o.DBRef(e.collection||e.namespace,e.oid,e.db,e.fields)},Decimal128:function(e){return new s.Decimal128(e.bytes)},Double:function(e){return new a.Double(e.value)},Int32:function(e){return new c.Int32(e.value)},Long:function(e){return l.Long.fromBits(e.low!=null?e.low:e.low_,e.low!=null?e.high:e.high_,e.low!=null?e.unsigned:e.unsigned_)},MaxKey:function(){return new d.MaxKey},MinKey:function(){return new h.MinKey},ObjectID:function(e){return new m.ObjectId(e)},ObjectId:function(e){return new m.ObjectId(e)},BSONRegExp:function(e){return new y.BSONRegExp(e.pattern,e.options)},Symbol:function(e){return new v.BSONSymbol(e.value)},Timestamp:function(e){return b.Timestamp.fromBits(e.low,e.high)}};function serializeDocument(e,t){if(e==null||typeof e!=="object")throw new u.BSONError("not an object instance");var r=e._bsontype;if(typeof r==="undefined"){var n={};for(var s in e){t.seenObjects.push({propertyName:s,obj:null});try{n[s]=serializeValue(e[s],t)}finally{t.seenObjects.pop()}}return n}else if(isBSONType(e)){var a=e;if(typeof a.toExtendedJSON!=="function"){var c=O[e._bsontype];if(!c){throw new u.BSONTypeError("Unrecognized or invalid _bsontype: "+e._bsontype)}a=c(a)}if(r==="Code"&&a.scope){a=new i.Code(a.code,serializeValue(a.scope,t))}else if(r==="DBRef"&&a.oid){a=new o.DBRef(serializeValue(a.collection,t),serializeValue(a.oid,t),serializeValue(a.db,t),serializeValue(a.fields,t))}return a.toExtendedJSON(t)}else{throw new u.BSONError("_bsontype must be a string, but was: "+typeof r)}}var D;(function(e){function parse(e,t){var r=Object.assign({},{relaxed:true,legacy:false},t);if(typeof r.relaxed==="boolean")r.strict=!r.relaxed;if(typeof r.strict==="boolean")r.relaxed=!r.strict;return JSON.parse(e,(function(e,t){if(e.indexOf("\0")!==-1){throw new u.BSONError("BSON Document field names cannot contain null bytes, found: "+JSON.stringify(e))}return deserializeValue(t,r)}))}e.parse=parse;function stringify(e,t,r,n){if(r!=null&&typeof r==="object"){n=r;r=0}if(t!=null&&typeof t==="object"&&!Array.isArray(t)){n=t;t=undefined;r=0}var i=Object.assign({relaxed:true,legacy:false},n,{seenObjects:[{propertyName:"(root)",obj:null}]});var o=serializeValue(e,i);return JSON.stringify(o,t,r)}e.stringify=stringify;function serialize(e,t){t=t||{};return JSON.parse(stringify(e,t))}e.serialize=serialize;function deserialize(e,t){t=t||{};return parse(JSON.stringify(e),t)}e.deserialize=deserialize})(D=t.EJSON||(t.EJSON={}))},37002:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeIEEE754=t.readIEEE754=void 0;function readIEEE754(e,t,r,n,i){var o;var s;var a=r==="big";var u=i*8-n-1;var c=(1<>1;var d=-7;var h=a?0:i-1;var m=a?1:-1;var g=e[t+h];h+=m;o=g&(1<<-d)-1;g>>=-d;d+=u;for(;d>0;o=o*256+e[t+h],h+=m,d-=8);s=o&(1<<-d)-1;o>>=-d;d+=n;for(;d>0;s=s*256+e[t+h],h+=m,d-=8);if(o===0){o=1-l}else if(o===c){return s?NaN:(g?-1:1)*Infinity}else{s=s+Math.pow(2,n);o=o-l}return(g?-1:1)*s*Math.pow(2,o-n)}t.readIEEE754=readIEEE754;function writeIEEE754(e,t,r,n,i,o){var s;var a;var u;var c=n==="big";var l=o*8-i-1;var d=(1<>1;var m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var g=c?o-1:0;var y=c?-1:1;var v=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===Infinity){a=isNaN(t)?1:0;s=d}else{s=Math.floor(Math.log(t)/Math.LN2);if(t*(u=Math.pow(2,-s))<1){s--;u*=2}if(s+h>=1){t+=m/u}else{t+=m*Math.pow(2,1-h)}if(t*u>=2){s++;u/=2}if(s+h>=d){a=0;s=d}else if(s+h>=1){a=(t*u-1)*Math.pow(2,i);s=s+h}else{a=t*Math.pow(2,h-1)*Math.pow(2,i);s=0}}if(isNaN(t))a=0;while(i>=8){e[r+g]=a&255;g+=y;a/=256;i-=8}s=s<0){e[r+g]=s&255;g+=y;s/=256;l-=8}e[r+g-y]|=v*128}t.writeIEEE754=writeIEEE754},79356:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Int32=void 0;var r=function(){function Int32(e){if(!(this instanceof Int32))return new Int32(e);if(e instanceof Number){e=e.valueOf()}this.value=+e|0}Int32.prototype.valueOf=function(){return this.value};Int32.prototype.toString=function(e){return this.value.toString(e)};Int32.prototype.toJSON=function(){return this.value};Int32.prototype.toExtendedJSON=function(e){if(e&&(e.relaxed||e.legacy))return this.value;return{$numberInt:this.value.toString()}};Int32.fromExtendedJSON=function(e,t){return t&&t.relaxed?parseInt(e.$numberInt,10):new Int32(e.$numberInt)};Int32.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};Int32.prototype.inspect=function(){return"new Int32("+this.valueOf()+")"};return Int32}();t.Int32=r;Object.defineProperty(r.prototype,"_bsontype",{value:"Int32"})},46522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Long=void 0;var n=r(48650);var i=undefined;try{i=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}var o=1<<16;var s=1<<24;var a=o*o;var u=a*a;var c=u/2;var l={};var d={};var h=function(){function Long(e,t,r){if(e===void 0){e=0}if(!(this instanceof Long))return new Long(e,t,r);if(typeof e==="bigint"){Object.assign(this,Long.fromBigInt(e,!!t))}else if(typeof e==="string"){Object.assign(this,Long.fromString(e,!!t))}else{this.low=e|0;this.high=t|0;this.unsigned=!!r}Object.defineProperty(this,"__isLong__",{value:true,configurable:false,writable:false,enumerable:false})}Long.fromBits=function(e,t,r){return new Long(e,t,r)};Long.fromInt=function(e,t){var r,n,i;if(t){e>>>=0;if(i=0<=e&&e<256){n=d[e];if(n)return n}r=Long.fromBits(e,(e|0)<0?-1:0,true);if(i)d[e]=r;return r}else{e|=0;if(i=-128<=e&&e<128){n=l[e];if(n)return n}r=Long.fromBits(e,e<0?-1:0,false);if(i)l[e]=r;return r}};Long.fromNumber=function(e,t){if(isNaN(e))return t?Long.UZERO:Long.ZERO;if(t){if(e<0)return Long.UZERO;if(e>=u)return Long.MAX_UNSIGNED_VALUE}else{if(e<=-c)return Long.MIN_VALUE;if(e+1>=c)return Long.MAX_VALUE}if(e<0)return Long.fromNumber(-e,t).neg();return Long.fromBits(e%a|0,e/a|0,t)};Long.fromBigInt=function(e,t){return Long.fromString(e.toString(),t)};Long.fromString=function(e,t,r){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return Long.ZERO;if(typeof t==="number"){r=t,t=false}else{t=!!t}r=r||10;if(r<2||360)throw Error("interior hyphen");else if(n===0){return Long.fromString(e.substring(1),t,r).neg()}var i=Long.fromNumber(Math.pow(r,8));var o=Long.ZERO;for(var s=0;s>>16;var r=this.high&65535;var n=this.low>>>16;var i=this.low&65535;var o=e.high>>>16;var s=e.high&65535;var a=e.low>>>16;var u=e.low&65535;var c=0,l=0,d=0,h=0;h+=i+u;d+=h>>>16;h&=65535;d+=n+a;l+=d>>>16;d&=65535;l+=r+s;c+=l>>>16;l&=65535;c+=t+o;c&=65535;return Long.fromBits(d<<16|h,c<<16|l,this.unsigned)};Long.prototype.and=function(e){if(!Long.isLong(e))e=Long.fromValue(e);return Long.fromBits(this.low&e.low,this.high&e.high,this.unsigned)};Long.prototype.compare=function(e){if(!Long.isLong(e))e=Long.fromValue(e);if(this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();if(t&&!r)return-1;if(!t&&r)return 1;if(!this.unsigned)return this.sub(e).isNegative()?-1:1;return e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1};Long.prototype.comp=function(e){return this.compare(e)};Long.prototype.divide=function(e){if(!Long.isLong(e))e=Long.fromValue(e);if(e.isZero())throw Error("division by zero");if(i){if(!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1){return this}var t=(this.unsigned?i.div_u:i.div_s)(this.low,this.high,e.low,e.high);return Long.fromBits(t,i.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?Long.UZERO:Long.ZERO;var r,n,o;if(!this.unsigned){if(this.eq(Long.MIN_VALUE)){if(e.eq(Long.ONE)||e.eq(Long.NEG_ONE))return Long.MIN_VALUE;else if(e.eq(Long.MIN_VALUE))return Long.ONE;else{var s=this.shr(1);r=s.div(e).shl(1);if(r.eq(Long.ZERO)){return e.isNegative()?Long.ONE:Long.NEG_ONE}else{n=this.sub(e.mul(r));o=r.add(n.div(e));return o}}}else if(e.eq(Long.MIN_VALUE))return this.unsigned?Long.UZERO:Long.ZERO;if(this.isNegative()){if(e.isNegative())return this.neg().div(e.neg());return this.neg().div(e).neg()}else if(e.isNegative())return this.div(e.neg()).neg();o=Long.ZERO}else{if(!e.unsigned)e=e.toUnsigned();if(e.gt(this))return Long.UZERO;if(e.gt(this.shru(1)))return Long.UONE;o=Long.UZERO}n=this;while(n.gte(e)){r=Math.max(1,Math.floor(n.toNumber()/e.toNumber()));var a=Math.ceil(Math.log(r)/Math.LN2);var u=a<=48?1:Math.pow(2,a-48);var c=Long.fromNumber(r);var l=c.mul(e);while(l.isNegative()||l.gt(n)){r-=u;c=Long.fromNumber(r,this.unsigned);l=c.mul(e)}if(c.isZero())c=Long.ONE;o=o.add(c);n=n.sub(l)}return o};Long.prototype.div=function(e){return this.divide(e)};Long.prototype.equals=function(e){if(!Long.isLong(e))e=Long.fromValue(e);if(this.unsigned!==e.unsigned&&this.high>>>31===1&&e.high>>>31===1)return false;return this.high===e.high&&this.low===e.low};Long.prototype.eq=function(e){return this.equals(e)};Long.prototype.getHighBits=function(){return this.high};Long.prototype.getHighBitsUnsigned=function(){return this.high>>>0};Long.prototype.getLowBits=function(){return this.low};Long.prototype.getLowBitsUnsigned=function(){return this.low>>>0};Long.prototype.getNumBitsAbs=function(){if(this.isNegative()){return this.eq(Long.MIN_VALUE)?64:this.neg().getNumBitsAbs()}var e=this.high!==0?this.high:this.low;var t;for(t=31;t>0;t--)if((e&1<0};Long.prototype.gt=function(e){return this.greaterThan(e)};Long.prototype.greaterThanOrEqual=function(e){return this.comp(e)>=0};Long.prototype.gte=function(e){return this.greaterThanOrEqual(e)};Long.prototype.ge=function(e){return this.greaterThanOrEqual(e)};Long.prototype.isEven=function(){return(this.low&1)===0};Long.prototype.isNegative=function(){return!this.unsigned&&this.high<0};Long.prototype.isOdd=function(){return(this.low&1)===1};Long.prototype.isPositive=function(){return this.unsigned||this.high>=0};Long.prototype.isZero=function(){return this.high===0&&this.low===0};Long.prototype.lessThan=function(e){return this.comp(e)<0};Long.prototype.lt=function(e){return this.lessThan(e)};Long.prototype.lessThanOrEqual=function(e){return this.comp(e)<=0};Long.prototype.lte=function(e){return this.lessThanOrEqual(e)};Long.prototype.modulo=function(e){if(!Long.isLong(e))e=Long.fromValue(e);if(i){var t=(this.unsigned?i.rem_u:i.rem_s)(this.low,this.high,e.low,e.high);return Long.fromBits(t,i.get_high(),this.unsigned)}return this.sub(this.div(e).mul(e))};Long.prototype.mod=function(e){return this.modulo(e)};Long.prototype.rem=function(e){return this.modulo(e)};Long.prototype.multiply=function(e){if(this.isZero())return Long.ZERO;if(!Long.isLong(e))e=Long.fromValue(e);if(i){var t=i.mul(this.low,this.high,e.low,e.high);return Long.fromBits(t,i.get_high(),this.unsigned)}if(e.isZero())return Long.ZERO;if(this.eq(Long.MIN_VALUE))return e.isOdd()?Long.MIN_VALUE:Long.ZERO;if(e.eq(Long.MIN_VALUE))return this.isOdd()?Long.MIN_VALUE:Long.ZERO;if(this.isNegative()){if(e.isNegative())return this.neg().mul(e.neg());else return this.neg().mul(e).neg()}else if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(Long.TWO_PWR_24)&&e.lt(Long.TWO_PWR_24))return Long.fromNumber(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16;var n=this.high&65535;var o=this.low>>>16;var s=this.low&65535;var a=e.high>>>16;var u=e.high&65535;var c=e.low>>>16;var l=e.low&65535;var d=0,h=0,m=0,g=0;g+=s*l;m+=g>>>16;g&=65535;m+=o*l;h+=m>>>16;m&=65535;m+=s*c;h+=m>>>16;m&=65535;h+=n*l;d+=h>>>16;h&=65535;h+=o*c;d+=h>>>16;h&=65535;h+=s*u;d+=h>>>16;h&=65535;d+=r*l+n*c+o*u+s*a;d&=65535;return Long.fromBits(m<<16|g,d<<16|h,this.unsigned)};Long.prototype.mul=function(e){return this.multiply(e)};Long.prototype.negate=function(){if(!this.unsigned&&this.eq(Long.MIN_VALUE))return Long.MIN_VALUE;return this.not().add(Long.ONE)};Long.prototype.neg=function(){return this.negate()};Long.prototype.not=function(){return Long.fromBits(~this.low,~this.high,this.unsigned)};Long.prototype.notEquals=function(e){return!this.equals(e)};Long.prototype.neq=function(e){return this.notEquals(e)};Long.prototype.ne=function(e){return this.notEquals(e)};Long.prototype.or=function(e){if(!Long.isLong(e))e=Long.fromValue(e);return Long.fromBits(this.low|e.low,this.high|e.high,this.unsigned)};Long.prototype.shiftLeft=function(e){if(Long.isLong(e))e=e.toInt();if((e&=63)===0)return this;else if(e<32)return Long.fromBits(this.low<>>32-e,this.unsigned);else return Long.fromBits(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned);else return Long.fromBits(this.high>>e-32,this.high>=0?0:-1,this.unsigned)};Long.prototype.shr=function(e){return this.shiftRight(e)};Long.prototype.shiftRightUnsigned=function(e){if(Long.isLong(e))e=e.toInt();e&=63;if(e===0)return this;else{var t=this.high;if(e<32){var r=this.low;return Long.fromBits(r>>>e|t<<32-e,t>>>e,this.unsigned)}else if(e===32)return Long.fromBits(t,0,this.unsigned);else return Long.fromBits(t>>>e-32,0,this.unsigned)}};Long.prototype.shr_u=function(e){return this.shiftRightUnsigned(e)};Long.prototype.shru=function(e){return this.shiftRightUnsigned(e)};Long.prototype.subtract=function(e){if(!Long.isLong(e))e=Long.fromValue(e);return this.add(e.neg())};Long.prototype.sub=function(e){return this.subtract(e)};Long.prototype.toInt=function(){return this.unsigned?this.low>>>0:this.low};Long.prototype.toNumber=function(){if(this.unsigned)return(this.high>>>0)*a+(this.low>>>0);return this.high*a+(this.low>>>0)};Long.prototype.toBigInt=function(){return BigInt(this.toString())};Long.prototype.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()};Long.prototype.toBytesLE=function(){var e=this.high,t=this.low;return[t&255,t>>>8&255,t>>>16&255,t>>>24,e&255,e>>>8&255,e>>>16&255,e>>>24]};Long.prototype.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255]};Long.prototype.toSigned=function(){if(!this.unsigned)return this;return Long.fromBits(this.low,this.high,false)};Long.prototype.toString=function(e){e=e||10;if(e<2||36>>0;var c=u.toString(e);o=a;if(o.isZero()){return c+s}else{while(c.length<6)c="0"+c;s=""+c+s}}};Long.prototype.toUnsigned=function(){if(this.unsigned)return this;return Long.fromBits(this.low,this.high,true)};Long.prototype.xor=function(e){if(!Long.isLong(e))e=Long.fromValue(e);return Long.fromBits(this.low^e.low,this.high^e.high,this.unsigned)};Long.prototype.eqz=function(){return this.isZero()};Long.prototype.le=function(e){return this.lessThanOrEqual(e)};Long.prototype.toExtendedJSON=function(e){if(e&&e.relaxed)return this.toNumber();return{$numberLong:this.toString()}};Long.fromExtendedJSON=function(e,t){var r=Long.fromString(e.$numberLong);return t&&t.relaxed?r.toNumber():r};Long.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};Long.prototype.inspect=function(){return'new Long("'+this.toString()+'"'+(this.unsigned?", true":"")+")"};Long.TWO_PWR_24=Long.fromInt(s);Long.MAX_UNSIGNED_VALUE=Long.fromBits(4294967295|0,4294967295|0,true);Long.ZERO=Long.fromInt(0);Long.UZERO=Long.fromInt(0,true);Long.ONE=Long.fromInt(1);Long.UONE=Long.fromInt(1,true);Long.NEG_ONE=Long.fromInt(-1);Long.MAX_VALUE=Long.fromBits(4294967295|0,2147483647|0,false);Long.MIN_VALUE=Long.fromBits(0,2147483648|0,false);return Long}();t.Long=h;Object.defineProperty(h.prototype,"__isLong__",{value:true});Object.defineProperty(h.prototype,"_bsontype",{value:"Long"})},40298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Map=void 0;var n=r(85243);var i;t.Map=i;var o=n.getGlobal();if(o.Map){t.Map=i=o.Map}else{t.Map=i=function(){function Map(e){if(e===void 0){e=[]}this._keys=[];this._values={};for(var t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MaxKey=void 0;var r=function(){function MaxKey(){if(!(this instanceof MaxKey))return new MaxKey}MaxKey.prototype.toExtendedJSON=function(){return{$maxKey:1}};MaxKey.fromExtendedJSON=function(){return new MaxKey};MaxKey.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};MaxKey.prototype.inspect=function(){return"new MaxKey()"};return MaxKey}();t.MaxKey=r;Object.defineProperty(r.prototype,"_bsontype",{value:"MaxKey"})},4014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MinKey=void 0;var r=function(){function MinKey(){if(!(this instanceof MinKey))return new MinKey}MinKey.prototype.toExtendedJSON=function(){return{$minKey:1}};MinKey.fromExtendedJSON=function(){return new MinKey};MinKey.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};MinKey.prototype.inspect=function(){return"new MinKey()"};return MinKey}();t.MinKey=r;Object.defineProperty(r.prototype,"_bsontype",{value:"MinKey"})},32087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ObjectId=void 0;var n=r(14300);var i=r(85643);var o=r(85471);var s=r(48650);var a=new RegExp("^[0-9a-fA-F]{24}$");var u=null;var c=Symbol("id");var l=function(){function ObjectId(e){if(!(this instanceof ObjectId))return new ObjectId(e);var t;if(typeof e==="object"&&e&&"id"in e){if(typeof e.id!=="string"&&!ArrayBuffer.isView(e.id)){throw new o.BSONTypeError("Argument passed in must have an id that is of type string or Buffer")}if("toHexString"in e&&typeof e.toHexString==="function"){t=n.Buffer.from(e.toHexString(),"hex")}else{t=e.id}}else{t=e}if(t==null||typeof t==="number"){this[c]=ObjectId.generate(typeof t==="number"?t:undefined)}else if(ArrayBuffer.isView(t)&&t.byteLength===12){this[c]=i.ensureBuffer(t)}else if(typeof t==="string"){if(t.length===12){var r=n.Buffer.from(t);if(r.byteLength===12){this[c]=r}else{throw new o.BSONTypeError("Argument passed in must be a string of 12 bytes")}}else if(t.length===24&&a.test(t)){this[c]=n.Buffer.from(t,"hex")}else{throw new o.BSONTypeError("Argument passed in must be a string of 12 bytes or a string of 24 hex characters")}}else{throw new o.BSONTypeError("Argument passed in does not match the accepted types")}if(ObjectId.cacheHexString){this.__id=this.id.toString("hex")}}Object.defineProperty(ObjectId.prototype,"id",{get:function(){return this[c]},set:function(e){this[c]=e;if(ObjectId.cacheHexString){this.__id=e.toString("hex")}},enumerable:false,configurable:true});Object.defineProperty(ObjectId.prototype,"generationTime",{get:function(){return this.id.readInt32BE(0)},set:function(e){this.id.writeUInt32BE(e,0)},enumerable:false,configurable:true});ObjectId.prototype.toHexString=function(){if(ObjectId.cacheHexString&&this.__id){return this.__id}var e=this.id.toString("hex");if(ObjectId.cacheHexString&&!this.__id){this.__id=e}return e};ObjectId.getInc=function(){return ObjectId.index=(ObjectId.index+1)%16777215};ObjectId.generate=function(e){if("number"!==typeof e){e=Math.floor(Date.now()/1e3)}var t=ObjectId.getInc();var r=n.Buffer.alloc(12);r.writeUInt32BE(e,0);if(u===null){u=s.randomBytes(5)}r[4]=u[0];r[5]=u[1];r[6]=u[2];r[7]=u[3];r[8]=u[4];r[11]=t&255;r[10]=t>>8&255;r[9]=t>>16&255;return r};ObjectId.prototype.toString=function(e){if(e)return this.id.toString(e);return this.toHexString()};ObjectId.prototype.toJSON=function(){return this.toHexString()};ObjectId.prototype.equals=function(e){if(e===undefined||e===null){return false}if(e instanceof ObjectId){return this.toString()===e.toString()}if(typeof e==="string"&&ObjectId.isValid(e)&&e.length===12&&s.isUint8Array(this.id)){return e===n.Buffer.prototype.toString.call(this.id,"latin1")}if(typeof e==="string"&&ObjectId.isValid(e)&&e.length===24){return e.toLowerCase()===this.toHexString()}if(typeof e==="string"&&ObjectId.isValid(e)&&e.length===12){return n.Buffer.from(e).equals(this.id)}if(typeof e==="object"&&"toHexString"in e&&typeof e.toHexString==="function"){return e.toHexString()===this.toHexString()}return false};ObjectId.prototype.getTimestamp=function(){var e=new Date;var t=this.id.readUInt32BE(0);e.setTime(Math.floor(t)*1e3);return e};ObjectId.createPk=function(){return new ObjectId};ObjectId.createFromTime=function(e){var t=n.Buffer.from([0,0,0,0,0,0,0,0,0,0,0,0]);t.writeUInt32BE(e,0);return new ObjectId(t)};ObjectId.createFromHexString=function(e){if(typeof e==="undefined"||e!=null&&e.length!==24){throw new o.BSONTypeError("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters")}return new ObjectId(n.Buffer.from(e,"hex"))};ObjectId.isValid=function(e){if(e==null)return false;try{new ObjectId(e);return true}catch(e){return false}};ObjectId.prototype.toExtendedJSON=function(){if(this.toHexString)return{$oid:this.toHexString()};return{$oid:this.toString("hex")}};ObjectId.fromExtendedJSON=function(e){return new ObjectId(e.$oid)};ObjectId.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};ObjectId.prototype.inspect=function(){return'new ObjectId("'+this.toHexString()+'")'};ObjectId.index=Math.floor(Math.random()*16777215);return ObjectId}();t.ObjectId=l;Object.defineProperty(l.prototype,"generate",{value:s.deprecate((function(e){return l.generate(e)}),"Please use the static `ObjectId.generate(time)` instead")});Object.defineProperty(l.prototype,"getInc",{value:s.deprecate((function(){return l.getInc()}),"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(l.prototype,"get_inc",{value:s.deprecate((function(){return l.getInc()}),"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(l,"get_inc",{value:s.deprecate((function(){return l.getInc()}),"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(l.prototype,"_bsontype",{value:"ObjectID"})},74029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateObjectSize=void 0;var n=r(14300);var i=r(94623);var o=r(7782);var s=r(48650);function calculateObjectSize(e,t,r){var n=4+1;if(Array.isArray(e)){for(var i=0;i=o.JS_INT_MIN&&t<=o.JS_INT_MAX){if(t>=o.BSON_INT32_MIN&&t<=o.BSON_INT32_MAX){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(4+1)}else{return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(8+1)}}else{return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(8+1)}case"undefined":if(a||!u)return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+1;return 0;case"boolean":return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(1+1);case"object":if(t==null||t["_bsontype"]==="MinKey"||t["_bsontype"]==="MaxKey"){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+1}else if(t["_bsontype"]==="ObjectId"||t["_bsontype"]==="ObjectID"){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(12+1)}else if(t instanceof Date||s.isDate(t)){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(8+1)}else if(ArrayBuffer.isView(t)||t instanceof ArrayBuffer||s.isAnyArrayBuffer(t)){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(1+4+1)+t.byteLength}else if(t["_bsontype"]==="Long"||t["_bsontype"]==="Double"||t["_bsontype"]==="Timestamp"){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(8+1)}else if(t["_bsontype"]==="Decimal128"){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(16+1)}else if(t["_bsontype"]==="Code"){if(t.scope!=null&&Object.keys(t.scope).length>0){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+1+4+4+n.Buffer.byteLength(t.code.toString(),"utf8")+1+calculateObjectSize(t.scope,r,u)}else{return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+1+4+n.Buffer.byteLength(t.code.toString(),"utf8")+1}}else if(t["_bsontype"]==="Binary"){if(t.sub_type===i.Binary.SUBTYPE_BYTE_ARRAY){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(t.position+1+4+1+4)}else{return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+(t.position+1+4+1)}}else if(t["_bsontype"]==="Symbol"){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+n.Buffer.byteLength(t.value,"utf8")+4+1+1}else if(t["_bsontype"]==="DBRef"){var c=Object.assign({$ref:t.collection,$id:t.oid},t.fields);if(t.db!=null){c["$db"]=t.db}return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+1+calculateObjectSize(c,r,u)}else if(t instanceof RegExp||s.isRegExp(t)){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+1+n.Buffer.byteLength(t.source,"utf8")+1+(t.global?1:0)+(t.ignoreCase?1:0)+(t.multiline?1:0)+1}else if(t["_bsontype"]==="BSONRegExp"){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+1+n.Buffer.byteLength(t.pattern,"utf8")+1+n.Buffer.byteLength(t.options,"utf8")+1}else{return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+calculateObjectSize(t,r,u)+1}case"function":if(t instanceof RegExp||s.isRegExp(t)||String.call(t)==="[object RegExp]"){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+1+n.Buffer.byteLength(t.source,"utf8")+1+(t.global?1:0)+(t.ignoreCase?1:0)+(t.multiline?1:0)+1}else{if(r&&t.scope!=null&&Object.keys(t.scope).length>0){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+1+4+4+n.Buffer.byteLength(s.normalizedFunctionString(t),"utf8")+1+calculateObjectSize(t.scope,r,u)}else if(r){return(e!=null?n.Buffer.byteLength(e,"utf8")+1:0)+1+4+n.Buffer.byteLength(s.normalizedFunctionString(t),"utf8")+1}}}return 0}},79610:function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r= 5, is "+i)}if(t.allowObjectSmallerThanBufferSize&&e.length= bson size "+i)}if(!t.allowObjectSmallerThanBufferSize&&e.length!==i){throw new d.BSONError("buffer length "+e.length+" must === bson size "+i)}if(i+n>e.byteLength){throw new d.BSONError("(bson size "+i+" + options.index "+n+" must be <= buffer length "+e.byteLength+")")}if(e[n+i-1]!==0){throw new d.BSONError("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00")}return deserializeObject(e,n,t,r)}t.deserialize=deserialize;var D=/^\$ref$|^\$id$|^\$db$/;function deserializeObject(e,t,r,B){if(B===void 0){B=false}var P=r["evalFunctions"]==null?false:r["evalFunctions"];var I=r["cacheFunctions"]==null?false:r["cacheFunctions"];var R=r["fieldsAsRaw"]==null?null:r["fieldsAsRaw"];var N=r["raw"]==null?false:r["raw"];var $=typeof r["bsonRegExp"]==="boolean"?r["bsonRegExp"]:false;var L=r["promoteBuffers"]==null?false:r["promoteBuffers"];var q=r["promoteLongs"]==null?true:r["promoteLongs"];var z=r["promoteValues"]==null?true:r["promoteValues"];var U=r.validation==null?{utf8:true}:r.validation;var V=true;var W;var G=new Set;var Q=U.utf8;if(typeof Q==="boolean"){W=Q}else{V=false;var Y=Object.keys(Q).map((function(e){return Q[e]}));if(Y.length===0){throw new d.BSONError("UTF-8 validation setting cannot be empty")}if(typeof Y[0]!=="boolean"){throw new d.BSONError("Invalid UTF-8 validation option, must specify boolean values")}W=Y[0];if(!Y.every((function(e){return e===W}))){throw new d.BSONError("Invalid UTF-8 validation option - keys must be all true or all false")}}if(!V){for(var J=0,X=Object.keys(Q);Je.length)throw new d.BSONError("corrupt bson message");var ne=B?[]:{};var ie=0;var oe=false;var se=B?false:null;while(!oe){var ae=e[t++];if(ae===0)break;var ue=t;while(e[ue]!==0&&ue=e.byteLength)throw new d.BSONError("Bad BSON Document: illegal CString");var ce=B?ie++:e.toString("utf8",t,ue);var le=true;if(V||G.has(ce)){le=W}else{le=!W}if(se!==false&&ce[0]==="$"){se=D.test(ce)}var pe=void 0;t=ue+1;if(ae===a.BSON_DATA_STRING){var fe=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;if(fe<=0||fe>e.length-t||e[t+fe-1]!==0){throw new d.BSONError("bad string length in bson")}pe=getValidatedString(e,t,t+fe-1,le);t=t+fe}else if(ae===a.BSON_DATA_OID){var de=i.Buffer.alloc(12);e.copy(de,0,t,t+12);pe=new v.ObjectId(de);t=t+12}else if(ae===a.BSON_DATA_INT&&z===false){pe=new h.Int32(e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24)}else if(ae===a.BSON_DATA_INT){pe=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24}else if(ae===a.BSON_DATA_NUMBER&&z===false){pe=new l.Double(e.readDoubleLE(t));t=t+8}else if(ae===a.BSON_DATA_NUMBER){pe=e.readDoubleLE(t);t=t+8}else if(ae===a.BSON_DATA_DATE){var he=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;var me=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;pe=new Date(new m.Long(he,me).toNumber())}else if(ae===a.BSON_DATA_BOOLEAN){if(e[t]!==0&&e[t]!==1)throw new d.BSONError("illegal boolean type value");pe=e[t++]===1}else if(ae===a.BSON_DATA_OBJECT){var ge=t;var ye=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24;if(ye<=0||ye>e.length-t)throw new d.BSONError("bad embedded document length in bson");if(N){pe=e.slice(t,t+ye)}else{var ve=r;if(!V){ve=n(n({},r),{validation:{utf8:le}})}pe=deserializeObject(e,ge,ve,false)}t=t+ye}else if(ae===a.BSON_DATA_ARRAY){var ge=t;var ye=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24;var be=r;var _e=t+ye;if(R&&R[ce]){be={};for(var Ee in r){be[Ee]=r[Ee]}be["raw"]=true}if(!V){be=n(n({},be),{validation:{utf8:le}})}pe=deserializeObject(e,ge,be,true);t=t+ye;if(e[t-1]!==0)throw new d.BSONError("invalid array terminator byte");if(t!==_e)throw new d.BSONError("corrupted array bson")}else if(ae===a.BSON_DATA_UNDEFINED){pe=undefined}else if(ae===a.BSON_DATA_NULL){pe=null}else if(ae===a.BSON_DATA_LONG){var he=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;var me=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;var we=new m.Long(he,me);if(q&&z===true){pe=we.lessThanOrEqual(x)&&we.greaterThanOrEqual(C)?we.toNumber():we}else{pe=we}}else if(ae===a.BSON_DATA_DECIMAL128){var Se=i.Buffer.alloc(16);e.copy(Se,0,t,t+16);t=t+16;var ke=new c.Decimal128(Se);if("toObject"in ke&&typeof ke.toObject==="function"){pe=ke.toObject()}else{pe=ke}}else if(ae===a.BSON_DATA_BINARY){var Ae=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;var xe=Ae;var Ce=e[t++];if(Ae<0)throw new d.BSONError("Negative binary type element size found");if(Ae>e.byteLength)throw new d.BSONError("Binary type size larger than document size");if(e["slice"]!=null){if(Ce===o.Binary.SUBTYPE_BYTE_ARRAY){Ae=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;if(Ae<0)throw new d.BSONError("Negative binary type element size found for subtype 0x02");if(Ae>xe-4)throw new d.BSONError("Binary type with subtype 0x02 contains too long binary size");if(Aexe-4)throw new d.BSONError("Binary type with subtype 0x02 contains too long binary size");if(Ae=e.length)throw new d.BSONError("Bad BSON Document: illegal CString");var je=e.toString("utf8",t,ue);t=ue+1;ue=t;while(e[ue]!==0&&ue=e.length)throw new d.BSONError("Bad BSON Document: illegal CString");var De=e.toString("utf8",t,ue);t=ue+1;var Be=new Array(De.length);for(ue=0;ue=e.length)throw new d.BSONError("Bad BSON Document: illegal CString");var je=e.toString("utf8",t,ue);t=ue+1;ue=t;while(e[ue]!==0&&ue=e.length)throw new d.BSONError("Bad BSON Document: illegal CString");var De=e.toString("utf8",t,ue);t=ue+1;pe=new b.BSONRegExp(je,De)}else if(ae===a.BSON_DATA_SYMBOL){var fe=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;if(fe<=0||fe>e.length-t||e[t+fe-1]!==0){throw new d.BSONError("bad string length in bson")}var Pe=getValidatedString(e,t,t+fe-1,le);pe=z?Pe:new _.BSONSymbol(Pe);t=t+fe}else if(ae===a.BSON_DATA_TIMESTAMP){var he=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;var me=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;pe=new E.Timestamp(he,me)}else if(ae===a.BSON_DATA_MIN_KEY){pe=new y.MinKey}else if(ae===a.BSON_DATA_MAX_KEY){pe=new g.MaxKey}else if(ae===a.BSON_DATA_CODE){var fe=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;if(fe<=0||fe>e.length-t||e[t+fe-1]!==0){throw new d.BSONError("bad string length in bson")}var Fe=getValidatedString(e,t,t+fe-1,le);if(P){if(I){pe=isolateEval(Fe,O,ne)}else{pe=isolateEval(Fe)}}else{pe=new s.Code(Fe)}t=t+fe}else if(ae===a.BSON_DATA_CODE_W_SCOPE){var Te=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;if(Te<4+4+4+1){throw new d.BSONError("code_w_scope total size shorter minimum expected length")}var fe=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;if(fe<=0||fe>e.length-t||e[t+fe-1]!==0){throw new d.BSONError("bad string length in bson")}var Fe=getValidatedString(e,t,t+fe-1,le);t=t+fe;var ge=t;var ye=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24;var Ie=deserializeObject(e,ge,r,false);t=t+ye;if(Te<4+4+ye+fe){throw new d.BSONError("code_w_scope total size is too short, truncating scope")}if(Te>4+4+ye+fe){throw new d.BSONError("code_w_scope total size is too long, clips outer document")}if(P){if(I){pe=isolateEval(Fe,O,ne)}else{pe=isolateEval(Fe)}pe.scope=Ie}else{pe=new s.Code(Fe,Ie)}}else if(ae===a.BSON_DATA_DBPOINTER){var fe=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;if(fe<=0||fe>e.length-t||e[t+fe-1]!==0)throw new d.BSONError("bad string length in bson");if(U!=null&&U.utf8){if(!k.validateUtf8(e,t,t+fe-1)){throw new d.BSONError("Invalid UTF-8 string in BSON document")}}var Me=e.toString("utf8",t,t+fe-1);t=t+fe;var Re=i.Buffer.alloc(12);e.copy(Re,0,t,t+12);var de=new v.ObjectId(Re);t=t+12;pe=new u.DBRef(Me,de)}else{throw new d.BSONError("Detected unknown BSON type "+ae.toString(16)+' for fieldname "'+ce+'"')}if(ce==="__proto__"){Object.defineProperty(ne,ce,{value:pe,writable:true,enumerable:true,configurable:true})}else{ne[ce]=pe}}if(re!==t-te){if(B)throw new d.BSONError("corrupt array bson");throw new d.BSONError("corrupt object bson")}if(!se)return ne;if(u.isDBRefLike(ne)){var Ne=Object.assign({},ne);delete Ne.$ref;delete Ne.$id;delete Ne.$db;return new u.DBRef(ne.$ref,ne.$id,ne.$db,Ne)}return ne}function isolateEval(e,t,r){if(!t)return new Function(e);if(t[e]==null){t[e]=new Function(e)}return t[e].bind(r)}function getValidatedString(e,t,r,n){var i=e.toString("utf8",t,r);if(n){for(var o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializeInto=void 0;var n=r(94623);var i=r(7782);var o=r(85643);var s=r(85471);var a=r(19244);var u=r(37002);var c=r(46522);var l=r(40298);var d=r(48650);var h=/\x00/;var m=new Set(["$db","$ref","$id","$clusterTime"]);function serializeString(e,t,r,n,o){e[n++]=i.BSON_DATA_STRING;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s+1;e[n-1]=0;var a=e.write(r,n+4,undefined,"utf8");e[n+3]=a+1>>24&255;e[n+2]=a+1>>16&255;e[n+1]=a+1>>8&255;e[n]=a+1&255;n=n+4+a;e[n++]=0;return n}function serializeNumber(e,t,r,n,o){if(Number.isInteger(r)&&r>=i.BSON_INT32_MIN&&r<=i.BSON_INT32_MAX){e[n++]=i.BSON_DATA_INT;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;e[n++]=r&255;e[n++]=r>>8&255;e[n++]=r>>16&255;e[n++]=r>>24&255}else{e[n++]=i.BSON_DATA_NUMBER;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;u.writeIEEE754(e,r,n,"little",52,8);n=n+8}return n}function serializeNull(e,t,r,n,o){e[n++]=i.BSON_DATA_NULL;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;return n}function serializeBoolean(e,t,r,n,o){e[n++]=i.BSON_DATA_BOOLEAN;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;e[n++]=r?1:0;return n}function serializeDate(e,t,r,n,o){e[n++]=i.BSON_DATA_DATE;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;var a=c.Long.fromNumber(r.getTime());var u=a.getLowBits();var l=a.getHighBits();e[n++]=u&255;e[n++]=u>>8&255;e[n++]=u>>16&255;e[n++]=u>>24&255;e[n++]=l&255;e[n++]=l>>8&255;e[n++]=l>>16&255;e[n++]=l>>24&255;return n}function serializeRegExp(e,t,r,n,o){e[n++]=i.BSON_DATA_REGEXP;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;if(r.source&&r.source.match(h)!=null){throw Error("value "+r.source+" must not contain null bytes")}n=n+e.write(r.source,n,undefined,"utf8");e[n++]=0;if(r.ignoreCase)e[n++]=105;if(r.global)e[n++]=115;if(r.multiline)e[n++]=109;e[n++]=0;return n}function serializeBSONRegExp(e,t,r,n,o){e[n++]=i.BSON_DATA_REGEXP;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;if(r.pattern.match(h)!=null){throw Error("pattern "+r.pattern+" must not contain null bytes")}n=n+e.write(r.pattern,n,undefined,"utf8");e[n++]=0;n=n+e.write(r.options.split("").sort().join(""),n,undefined,"utf8");e[n++]=0;return n}function serializeMinMax(e,t,r,n,o){if(r===null){e[n++]=i.BSON_DATA_NULL}else if(r._bsontype==="MinKey"){e[n++]=i.BSON_DATA_MIN_KEY}else{e[n++]=i.BSON_DATA_MAX_KEY}var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;return n}function serializeObjectId(e,t,r,n,o){e[n++]=i.BSON_DATA_OID;var a=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+a;e[n++]=0;if(typeof r.id==="string"){e.write(r.id,n,undefined,"binary")}else if(d.isUint8Array(r.id)){e.set(r.id.subarray(0,12),n)}else{throw new s.BSONTypeError("object ["+JSON.stringify(r)+"] is not a valid ObjectId")}return n+12}function serializeBuffer(e,t,r,n,s){e[n++]=i.BSON_DATA_BINARY;var a=!s?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+a;e[n++]=0;var u=r.length;e[n++]=u&255;e[n++]=u>>8&255;e[n++]=u>>16&255;e[n++]=u>>24&255;e[n++]=i.BSON_BINARY_SUBTYPE_DEFAULT;e.set(o.ensureBuffer(r),n);n=n+u;return n}function serializeObject(e,t,r,n,o,a,u,c,l,d){if(o===void 0){o=false}if(a===void 0){a=0}if(u===void 0){u=false}if(c===void 0){c=true}if(l===void 0){l=false}if(d===void 0){d=[]}for(var h=0;h>8&255;e[n++]=a>>16&255;e[n++]=a>>24&255;e[n++]=u&255;e[n++]=u>>8&255;e[n++]=u>>16&255;e[n++]=u>>24&255;return n}function serializeInt32(e,t,r,n,o){r=r.valueOf();e[n++]=i.BSON_DATA_INT;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;e[n++]=r&255;e[n++]=r>>8&255;e[n++]=r>>16&255;e[n++]=r>>24&255;return n}function serializeDouble(e,t,r,n,o){e[n++]=i.BSON_DATA_NUMBER;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;u.writeIEEE754(e,r.value,n,"little",52,8);n=n+8;return n}function serializeFunction(e,t,r,n,o,s,a){if(o===void 0){o=false}if(s===void 0){s=0}e[n++]=i.BSON_DATA_CODE;var u=!a?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+u;e[n++]=0;var c=d.normalizedFunctionString(r);var l=e.write(c,n+4,undefined,"utf8")+1;e[n]=l&255;e[n+1]=l>>8&255;e[n+2]=l>>16&255;e[n+3]=l>>24&255;n=n+4+l-1;e[n++]=0;return n}function serializeCode(e,t,r,n,o,s,a,u,c){if(o===void 0){o=false}if(s===void 0){s=0}if(a===void 0){a=false}if(u===void 0){u=true}if(c===void 0){c=false}if(r.scope&&typeof r.scope==="object"){e[n++]=i.BSON_DATA_CODE_W_SCOPE;var l=!c?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+l;e[n++]=0;var d=n;var h=typeof r.code==="string"?r.code:r.code.toString();n=n+4;var m=e.write(h,n+4,undefined,"utf8")+1;e[n]=m&255;e[n+1]=m>>8&255;e[n+2]=m>>16&255;e[n+3]=m>>24&255;e[n+4+m-1]=0;n=n+m+4;var g=serializeInto(e,r.scope,o,n,s+1,a,u);n=g-1;var y=g-d;e[d++]=y&255;e[d++]=y>>8&255;e[d++]=y>>16&255;e[d++]=y>>24&255;e[n++]=0}else{e[n++]=i.BSON_DATA_CODE;var l=!c?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+l;e[n++]=0;var h=r.code.toString();var v=e.write(h,n+4,undefined,"utf8")+1;e[n]=v&255;e[n+1]=v>>8&255;e[n+2]=v>>16&255;e[n+3]=v>>24&255;n=n+4+v-1;e[n++]=0}return n}function serializeBinary(e,t,r,o,s){e[o++]=i.BSON_DATA_BINARY;var a=!s?e.write(t,o,undefined,"utf8"):e.write(t,o,undefined,"ascii");o=o+a;e[o++]=0;var u=r.value(true);var c=r.position;if(r.sub_type===n.Binary.SUBTYPE_BYTE_ARRAY)c=c+4;e[o++]=c&255;e[o++]=c>>8&255;e[o++]=c>>16&255;e[o++]=c>>24&255;e[o++]=r.sub_type;if(r.sub_type===n.Binary.SUBTYPE_BYTE_ARRAY){c=c-4;e[o++]=c&255;e[o++]=c>>8&255;e[o++]=c>>16&255;e[o++]=c>>24&255}e.set(u,o);o=o+r.position;return o}function serializeSymbol(e,t,r,n,o){e[n++]=i.BSON_DATA_SYMBOL;var s=!o?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+s;e[n++]=0;var a=e.write(r.value,n+4,undefined,"utf8")+1;e[n]=a&255;e[n+1]=a>>8&255;e[n+2]=a>>16&255;e[n+3]=a>>24&255;n=n+4+a-1;e[n++]=0;return n}function serializeDBRef(e,t,r,n,o,s,a){e[n++]=i.BSON_DATA_OBJECT;var u=!a?e.write(t,n,undefined,"utf8"):e.write(t,n,undefined,"ascii");n=n+u;e[n++]=0;var c=n;var l={$ref:r.collection||r.namespace,$id:r.oid};if(r.db!=null){l.$db=r.db}l=Object.assign(l,r.fields);var d=serializeInto(e,l,false,n,o+1,s);var h=d-c;e[c++]=h&255;e[c++]=h>>8&255;e[c++]=h>>16&255;e[c++]=h>>24&255;return d}function serializeInto(e,t,r,n,i,o,u,c){if(r===void 0){r=false}if(n===void 0){n=0}if(i===void 0){i=0}if(o===void 0){o=false}if(u===void 0){u=true}if(c===void 0){c=[]}n=n||0;c=c||[];c.push(t);var g=n+4;if(Array.isArray(t)){for(var y=0;y>8&255;e[n++]=C>>16&255;e[n++]=C>>24&255;return g}t.serializeInto=serializeInto},48650:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deprecate=t.isObjectLike=t.isDate=t.haveBuffer=t.isMap=t.isRegExp=t.isBigUInt64Array=t.isBigInt64Array=t.isUint8Array=t.isAnyArrayBuffer=t.randomBytes=t.normalizedFunctionString=void 0;var n=r(14300);var i=r(85243);function normalizedFunctionString(e){return e.toString().replace("function(","function (")}t.normalizedFunctionString=normalizedFunctionString;function isReactNative(){var e=i.getGlobal();return typeof e.navigator==="object"&&e.navigator.product==="ReactNative"}var o=function insecureRandomBytes(e){var t=isReactNative()?"BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.":"BSON: No cryptographic implementation for random bytes present, falling back to a less secure implementation.";console.warn(t);var r=n.Buffer.alloc(e);for(var i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BSONRegExp=void 0;var n=r(85471);function alphabetize(e){return e.split("").sort().join("")}var i=function(){function BSONRegExp(e,t){if(!(this instanceof BSONRegExp))return new BSONRegExp(e,t);this.pattern=e;this.options=alphabetize(t!==null&&t!==void 0?t:"");if(this.pattern.indexOf("\0")!==-1){throw new n.BSONError("BSON Regex patterns cannot contain null bytes, found: "+JSON.stringify(this.pattern))}if(this.options.indexOf("\0")!==-1){throw new n.BSONError("BSON Regex options cannot contain null bytes, found: "+JSON.stringify(this.options))}for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BSONSymbol=void 0;var r=function(){function BSONSymbol(e){if(!(this instanceof BSONSymbol))return new BSONSymbol(e);this.value=e}BSONSymbol.prototype.valueOf=function(){return this.value};BSONSymbol.prototype.toString=function(){return this.value};BSONSymbol.prototype.inspect=function(){return'new BSONSymbol("'+this.value+'")'};BSONSymbol.prototype.toJSON=function(){return this.value};BSONSymbol.prototype.toExtendedJSON=function(){return{$symbol:this.value}};BSONSymbol.fromExtendedJSON=function(e){return new BSONSymbol(e.$symbol)};BSONSymbol.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};return BSONSymbol}();t.BSONSymbol=r;Object.defineProperty(r.prototype,"_bsontype",{value:"Symbol"})},56754:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Timestamp=t.LongWithoutOverridesClass=void 0;var i=r(46522);var o=r(48650);t.LongWithoutOverridesClass=i.Long;var s=function(e){n(Timestamp,e);function Timestamp(t,r){var n=this;if(!(n instanceof Timestamp))return new Timestamp(t,r);if(i.Long.isLong(t)){n=e.call(this,t.low,t.high,true)||this}else if(o.isObjectLike(t)&&typeof t.t!=="undefined"&&typeof t.i!=="undefined"){n=e.call(this,t.i,t.t,true)||this}else{n=e.call(this,t,r,true)||this}Object.defineProperty(n,"_bsontype",{value:"Timestamp",writable:false,configurable:false,enumerable:false});return n}Timestamp.prototype.toJSON=function(){return{$timestamp:this.toString()}};Timestamp.fromInt=function(e){return new Timestamp(i.Long.fromInt(e,true))};Timestamp.fromNumber=function(e){return new Timestamp(i.Long.fromNumber(e,true))};Timestamp.fromBits=function(e,t){return new Timestamp(e,t)};Timestamp.fromString=function(e,t){return new Timestamp(i.Long.fromString(e,true,t))};Timestamp.prototype.toExtendedJSON=function(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}};Timestamp.fromExtendedJSON=function(e){return new Timestamp(e.$timestamp)};Timestamp.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};Timestamp.prototype.inspect=function(){return"new Timestamp({ t: "+this.getHighBits()+", i: "+this.getLowBits()+" })"};Timestamp.MAX_VALUE=i.Long.MAX_UNSIGNED_VALUE;return Timestamp}(t.LongWithoutOverridesClass);t.Timestamp=s},85243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getGlobal=void 0;function checkForMath(e){return e&&e.Math==Math&&e}function getGlobal(){return checkForMath(typeof globalThis==="object"&&globalThis)||checkForMath(typeof window==="object"&&window)||checkForMath(typeof self==="object"&&self)||checkForMath(typeof global==="object"&&global)||Function("return this")()}t.getGlobal=getGlobal},17101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UUID=void 0;var n=r(14300);var i=r(85643);var o=r(94623);var s=r(26549);var a=r(48650);var u=r(85471);var c=16;var l=Symbol("id");var d=function(){function UUID(e){if(typeof e==="undefined"){this.id=UUID.generate()}else if(e instanceof UUID){this[l]=n.Buffer.from(e.id);this.__id=e.__id}else if(ArrayBuffer.isView(e)&&e.byteLength===c){this.id=i.ensureBuffer(e)}else if(typeof e==="string"){this.id=s.uuidHexStringToBuffer(e)}else{throw new u.BSONTypeError("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).")}}Object.defineProperty(UUID.prototype,"id",{get:function(){return this[l]},set:function(e){this[l]=e;if(UUID.cacheHexString){this.__id=s.bufferToUuidHexString(e)}},enumerable:false,configurable:true});UUID.prototype.toHexString=function(e){if(e===void 0){e=true}if(UUID.cacheHexString&&this.__id){return this.__id}var t=s.bufferToUuidHexString(this.id,e);if(UUID.cacheHexString){this.__id=t}return t};UUID.prototype.toString=function(e){return e?this.id.toString(e):this.toHexString()};UUID.prototype.toJSON=function(){return this.toHexString()};UUID.prototype.equals=function(e){if(!e){return false}if(e instanceof UUID){return e.id.equals(this.id)}try{return new UUID(e).id.equals(this.id)}catch(e){return false}};UUID.prototype.toBinary=function(){return new o.Binary(this.id,o.Binary.SUBTYPE_UUID)};UUID.generate=function(){var e=a.randomBytes(c);e[6]=e[6]&15|64;e[8]=e[8]&63|128;return n.Buffer.from(e)};UUID.isValid=function(e){if(!e){return false}if(e instanceof UUID){return true}if(typeof e==="string"){return s.uuidValidateString(e)}if(a.isUint8Array(e)){if(e.length!==c){return false}try{return parseInt(e[6].toString(16)[0],10)===o.Binary.SUBTYPE_UUID}catch(e){return false}}return false};UUID.createFromHexString=function(e){var t=s.uuidHexStringToBuffer(e);return new UUID(t)};UUID.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()};UUID.prototype.inspect=function(){return'new UUID("'+this.toHexString()+'")'};return UUID}();t.UUID=d;Object.defineProperty(d.prototype,"_bsontype",{value:"UUID"})},26549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bufferToUuidHexString=t.uuidHexStringToBuffer=t.uuidValidateString=void 0;var n=r(14300);var i=r(85471);var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15})$/i;var uuidValidateString=function(e){return typeof e==="string"&&o.test(e)};t.uuidValidateString=uuidValidateString;var uuidHexStringToBuffer=function(e){if(!t.uuidValidateString(e)){throw new i.BSONTypeError('UUID string representations must be a 32 or 36 character hex string (dashes excluded/included). Format: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" or "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".')}var r=e.replace(/-/g,"");return n.Buffer.from(r,"hex")};t.uuidHexStringToBuffer=uuidHexStringToBuffer;var bufferToUuidHexString=function(e,t){if(t===void 0){t=true}return t?e.toString("hex",0,4)+"-"+e.toString("hex",4,6)+"-"+e.toString("hex",6,8)+"-"+e.toString("hex",8,10)+"-"+e.toString("hex",10,16):e.toString("hex")};t.bufferToUuidHexString=bufferToUuidHexString},63707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateUtf8=void 0;var r=128;var n=192;var i=224;var o=240;var s=248;var a=192;var u=224;var c=240;var l=128;function validateUtf8(e,t,d){var h=0;for(var m=t;m{"use strict";var n=r(84512);var i=r(80595);var o=i(n("String.prototype.indexOf"));e.exports=function callBoundIntrinsic(e,t){var r=n(e,!!t);if(typeof r==="function"&&o(e,".prototype.")>-1){return i(r)}return r}},80595:(e,t,r)=>{"use strict";var n=r(26788);var i=r(84512);var o=i("%Function.prototype.apply%");var s=i("%Function.prototype.call%");var a=i("%Reflect.apply%",true)||n.call(s,o);var u=i("%Object.getOwnPropertyDescriptor%",true);var c=i("%Object.defineProperty%",true);var l=i("%Math.max%");if(c){try{c({},"a",{value:1})}catch(e){c=null}}e.exports=function callBind(e){var t=a(n,s,arguments);if(u&&c){var r=u(t,"length");if(r.configurable){c(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}}return t};var d=function applyBind(){return a(n,o,arguments)};if(c){c(e.exports,"apply",{value:d})}else{e.exports.apply=d}},64101:e=>{function Caseless(e){this.dict=e||{}}Caseless.prototype.set=function(e,t,r){if(typeof e==="object"){for(var n in e){this.set(n,e[n],t)}}else{if(typeof r==="undefined")r=true;var i=this.has(e);if(!r&&i)this.dict[i]=this.dict[i]+","+t;else this.dict[i||e]=t;return i}};Caseless.prototype.has=function(e){var t=Object.keys(this.dict),e=e.toLowerCase();for(var r=0;r{var n=r(73837);var i=r(12781).Stream;var o=r(12214);e.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}n.inherits(CombinedStream,i);CombinedStream.create=function(e){var t=new this;e=e||{};for(var r in e){t[r]=e[r]}return t};CombinedStream.isStreamLike=function(e){return typeof e!=="function"&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"&&!Buffer.isBuffer(e)};CombinedStream.prototype.append=function(e){var t=CombinedStream.isStreamLike(e);if(t){if(!(e instanceof o)){var r=o.create(e,{maxDataSize:Infinity,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this));e=r}this._handleErrors(e);if(this.pauseStreams){e.pause()}}this._streams.push(e);return this};CombinedStream.prototype.pipe=function(e,t){i.prototype.pipe.call(this,e,t);this.resume();return e};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e=="undefined"){this.end();return}if(typeof e!=="function"){this._pipeNext(e);return}var t=e;t(function(e){var t=CombinedStream.isStreamLike(e);if(t){e.on("data",this._checkDataSize.bind(this));this._handleErrors(e)}this._pipeNext(e)}.bind(this))};CombinedStream.prototype._pipeNext=function(e){this._currentStream=e;var t=CombinedStream.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this));e.pipe(this,{end:false});return}var r=e;this.write(r);this._getNext()};CombinedStream.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))};CombinedStream.prototype.write=function(e){this.emit("data",e)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){if(!t.dataSize){return}e.dataSize+=t.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(e){this._reset();this.emit("error",e)}},46789:(e,t,r)=>{function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=r(14300).Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},49411:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){i=n}}));t.splice(i,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(93008)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},93008:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(86975);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}o++;const i=createDebug.formatters[n];if(typeof i==="function"){const n=e[o];t=i.call(r,n);e.splice(o,1);o--}return t}));createDebug.formatArgs.call(r,e);const s=r.log||createDebug.log;s.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(49411)}else{e.exports=r(76974)}},76974:(e,t,r)=>{const n=r(76224);const i=r(73837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(45653);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const i="[3"+(n<8?n:"8;5;"+n);const o=` ${i};1m${r} `;t[0]=o+t[0].split("\n").join("\n"+o);t.push(i+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};o.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},80981:(e,t,r)=>{"use strict";var n=r(56308);var i=typeof Symbol==="function"&&typeof Symbol("foo")==="symbol";var o=Object.prototype.toString;var s=Array.prototype.concat;var a=Object.defineProperty;var isFunction=function(e){return typeof e==="function"&&o.call(e)==="[object Function]"};var arePropertyDescriptorsSupported=function(){var e={};try{a(e,"x",{enumerable:false,value:e});for(var t in e){return false}return e.x===e}catch(e){return false}};var u=a&&arePropertyDescriptorsSupported();var defineProperty=function(e,t,r,n){if(t in e&&(!isFunction(n)||!n())){return}if(u){a(e,t,{configurable:true,enumerable:false,value:r,writable:true})}else{e[t]=r}};var defineProperties=function(e,t){var r=arguments.length>2?arguments[2]:{};var o=n(t);if(i){o=s.call(o,Object.getOwnPropertySymbols(t))}for(var a=0;a{var n=r(12781).Stream;var i=r(73837);e.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}i.inherits(DelayedStream,n);DelayedStream.create=function(e,t){var r=new this;t=t||{};for(var n in t){r[n]=t[n]}r.source=e;var i=e.emit;e.emit=function(){r._handleEmit(arguments);return i.apply(e,arguments)};e.on("error",(function(){}));if(r.pauseStream){e.pause()}return r};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var e=n.prototype.pipe.apply(this,arguments);this.resume();return e};DelayedStream.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}if(e[0]==="data"){this.dataSize+=e[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(e)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}},29361:e=>{"use strict";function Denque(e,t){var t=t||{};this._head=0;this._tail=0;this._capacity=t.capacity;this._capacityMask=3;this._list=new Array(4);if(Array.isArray(e)){this._fromArray(e)}}Denque.prototype.peekAt=function peekAt(e){var t=e;if(t!==(t|0)){return void 0}var r=this.size();if(t>=r||t<-r)return undefined;if(t<0)t+=r;t=this._head+t&this._capacityMask;return this._list[t]};Denque.prototype.get=function get(e){return this.peekAt(e)};Denque.prototype.peek=function peek(){if(this._head===this._tail)return undefined;return this._list[this._head]};Denque.prototype.peekFront=function peekFront(){return this.peek()};Denque.prototype.peekBack=function peekBack(){return this.peekAt(-1)};Object.defineProperty(Denque.prototype,"length",{get:function length(){return this.size()}});Denque.prototype.size=function size(){if(this._head===this._tail)return 0;if(this._headthis._capacity)this.pop();if(this._head1e4&&this._tail<=this._list.length>>>2)this._shrinkArray();return t};Denque.prototype.push=function push(e){if(arguments.length===0)return this.size();var t=this._tail;this._list[t]=e;this._tail=t+1&this._capacityMask;if(this._tail===this._head){this._growArray()}if(this._capacity&&this.size()>this._capacity){this.shift()}if(this._head1e4&&e<=t>>>2)this._shrinkArray();return r};Denque.prototype.removeOne=function removeOne(e){var t=e;if(t!==(t|0)){return void 0}if(this._head===this._tail)return void 0;var r=this.size();var n=this._list.length;if(t>=r||t<-r)return void 0;if(t<0)t+=r;t=this._head+t&this._capacityMask;var i=this._list[t];var o;if(e0;o--){this._list[t]=this._list[t=t-1+n&this._capacityMask]}this._list[t]=void 0;this._head=this._head+1+n&this._capacityMask}else{for(o=r-1-e;o>0;o--){this._list[t]=this._list[t=t+1+n&this._capacityMask]}this._list[t]=void 0;this._tail=this._tail-1+n&this._capacityMask}return i};Denque.prototype.remove=function remove(e,t){var r=e;var n;var i=t;if(r!==(r|0)){return void 0}if(this._head===this._tail)return void 0;var o=this.size();var s=this._list.length;if(r>=o||r<-o||t<1)return void 0;if(r<0)r+=o;if(t===1||!t){n=new Array(1);n[0]=this.removeOne(r);return n}if(r===0&&r+t>=o){n=this.toArray();this.clear();return n}if(r+t>o)t=o-r;var a;n=new Array(t);for(a=0;a0;a--){this._list[r=r+1+s&this._capacityMask]=void 0}return n}if(e===0){this._head=this._head+t+s&this._capacityMask;for(a=t-1;a>0;a--){this._list[r=r+1+s&this._capacityMask]=void 0}return n}if(r0;a--){this.unshift(this._list[r=r-1+s&this._capacityMask])}r=this._head-1+s&this._capacityMask;while(i>0){this._list[r=r-1+s&this._capacityMask]=void 0;i--}if(e<0)this._tail=r}else{this._tail=r;r=r+t+s&this._capacityMask;for(a=o-(t+e);a>0;a--){this.push(this._list[r++])}r=this._tail;while(i>0){this._list[r=r+1+s&this._capacityMask]=void 0;i--}}if(this._head<2&&this._tail>1e4&&this._tail<=s>>>2)this._shrinkArray();return n};Denque.prototype.splice=function splice(e,t){var r=e;if(r!==(r|0)){return void 0}var n=this.size();if(r<0)r+=n;if(r>n)return void 0;if(arguments.length>2){var i;var o;var s;var a=arguments.length;var u=this._list.length;var c=2;if(!n||r0){this._head=this._head+r+u&this._capacityMask}}else{s=this.remove(r,t);this._head=this._head+r+u&this._capacityMask}while(a>c){this.unshift(arguments[--a])}for(i=r;i>0;i--){this.unshift(o[i-1])}}else{o=new Array(n-(r+t));var l=o.length;for(i=0;ithis._tail){for(i=this._head;i>>=1;this._capacityMask>>>=1};e.exports=Denque},39846:(module,__unused_webpack_exports,__nccwpck_require__)=>{ /*! * depd * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed */ var callSiteToString=__nccwpck_require__(52807).callSiteToString;var eventListenerCount=__nccwpck_require__(52807).eventListenerCount;var relative=__nccwpck_require__(71017).relative;module.exports=depd;var basePath=process.cwd();function containsNamespace(e,t){var r=e.split(/[ ,]+/);var n=String(t).toLowerCase();for(var i=0;i";var r=e.getLineNumber();var n=e.getColumnNumber();if(e.isEval()){t=e.getEvalOrigin()+", "+t}var i=[t,r,n];i.callSite=e;i.name=e.getFunctionName();return i}function defaultMessage(e){var t=e.callSite;var r=e.name;if(!r){r=""}var n=t.getThis();var i=n&&t.getTypeName();if(i==="Object"){i=undefined}if(i==="Function"){i=n.name||i}return i&&t.getMethodName()?i+"."+r:r}function formatPlain(e,t,r){var n=(new Date).toUTCString();var i=n+" "+this._namespace+" deprecated "+e;if(this._traced){for(var o=0;o{"use strict"; /*! * depd * Copyright(c) 2014 Douglas Christopher Wilson * MIT Licensed */e.exports=callSiteToString;function callSiteFileLocation(e){var t;var r="";if(e.isNative()){r="native"}else if(e.isEval()){t=e.getScriptNameOrSourceURL();if(!t){r=e.getEvalOrigin()}}else{t=e.getFileName()}if(t){r+=t;var n=e.getLineNumber();if(n!=null){r+=":"+n;var i=e.getColumnNumber();if(i){r+=":"+i}}}return r||"unknown source"}function callSiteToString(e){var t=true;var r=callSiteFileLocation(e);var n=e.getFunctionName();var i=e.isConstructor();var o=!(e.isToplevel()||i);var s="";if(o){var a=e.getMethodName();var u=getConstructorName(e);if(n){if(u&&n.indexOf(u)!==0){s+=u+"."}s+=n;if(a&&n.lastIndexOf("."+a)!==n.length-a.length-1){s+=" [as "+a+"]"}}else{s+=u+"."+(a||"")}}else if(i){s+="new "+(n||"")}else if(n){s+=n}else{t=false;s+=r}if(t){s+=" ("+r+")"}return s}function getConstructorName(e){var t=e.receiver;return t.constructor&&t.constructor.name||null}},52322:e=>{"use strict"; /*! * depd * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */e.exports=eventListenerCount;function eventListenerCount(e,t){return e.listeners(t).length}},52807:(e,t,r)=>{"use strict"; /*! * depd * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */var n=r(82361).EventEmitter;lazyProperty(e.exports,"callSiteToString",(function callSiteToString(){var e=Error.stackTraceLimit;var t={};var n=Error.prepareStackTrace;function prepareObjectStackTrace(e,t){return t}Error.prepareStackTrace=prepareObjectStackTrace;Error.stackTraceLimit=2;Error.captureStackTrace(t);var i=t.stack.slice();Error.prepareStackTrace=n;Error.stackTraceLimit=e;return i[0].toString?toString:r(35127)}));lazyProperty(e.exports,"eventListenerCount",(function eventListenerCount(){return n.listenerCount||r(52322)}));function lazyProperty(e,t,r){function get(){var n=r();Object.defineProperty(e,t,{configurable:true,enumerable:true,value:n});return n}Object.defineProperty(e,t,{configurable:true,enumerable:true,get:get})}function toString(e){return e.toString()}},82279:(e,t,r)=>{var n=r(6113);var i=r(79187).BigInteger;var o=r(19480).ECPointFp;var s=r(18874).Buffer;t.ECCurves=r(75177);function unstupid(e,t){return e.length>=t?e:unstupid("0"+e,t)}t.ECKey=function(e,t,r){var o;var a=e();var u=a.getN();var c=Math.floor(u.bitLength()/8);if(t){if(r){var e=a.getCurve();this.P=e.decodePointHex(t.toString("hex"))}else{if(t.length!=c)return false;o=new i(t.toString("hex"),16)}}else{var l=u.subtract(i.ONE);var d=new i(n.randomBytes(u.bitLength()));o=d.mod(l).add(i.ONE);this.P=a.getG().multiply(o)}if(this.P){this.PublicKey=s.from(a.getCurve().encodeCompressedPointHex(this.P),"hex")}if(o){this.PrivateKey=s.from(unstupid(o.toString(16),c*2),"hex");this.deriveSharedSecret=function(e){if(!e||!e.P)return false;var t=e.P.multiply(o);return s.from(unstupid(t.getX().toBigInteger().toString(16),c*2),"hex")}}}},19480:(e,t,r)=>{var n=r(79187).BigInteger;var i=n.prototype.Barrett;function ECFieldElementFp(e,t){this.x=t;this.q=e}function feFpEquals(e){if(e==this)return true;return this.q.equals(e.q)&&this.x.equals(e.x)}function feFpToBigInteger(){return this.x}function feFpNegate(){return new ECFieldElementFp(this.q,this.x.negate().mod(this.q))}function feFpAdd(e){return new ECFieldElementFp(this.q,this.x.add(e.toBigInteger()).mod(this.q))}function feFpSubtract(e){return new ECFieldElementFp(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}function feFpMultiply(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}function feFpSquare(){return new ECFieldElementFp(this.q,this.x.square().mod(this.q))}function feFpDivide(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}ECFieldElementFp.prototype.equals=feFpEquals;ECFieldElementFp.prototype.toBigInteger=feFpToBigInteger;ECFieldElementFp.prototype.negate=feFpNegate;ECFieldElementFp.prototype.add=feFpAdd;ECFieldElementFp.prototype.subtract=feFpSubtract;ECFieldElementFp.prototype.multiply=feFpMultiply;ECFieldElementFp.prototype.square=feFpSquare;ECFieldElementFp.prototype.divide=feFpDivide;function ECPointFp(e,t,r,i){this.curve=e;this.x=t;this.y=r;if(i==null){this.z=n.ONE}else{this.z=i}this.zinv=null}function pointFpGetX(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q)}var e=this.x.toBigInteger().multiply(this.zinv);this.curve.reduce(e);return this.curve.fromBigInteger(e)}function pointFpGetY(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q)}var e=this.y.toBigInteger().multiply(this.zinv);this.curve.reduce(e);return this.curve.fromBigInteger(e)}function pointFpEquals(e){if(e==this)return true;if(this.isInfinity())return e.isInfinity();if(e.isInfinity())return this.isInfinity();var t,r;t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q);if(!t.equals(n.ZERO))return false;r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);return r.equals(n.ZERO)}function pointFpIsInfinity(){if(this.x==null&&this.y==null)return true;return this.z.equals(n.ZERO)&&!this.y.toBigInteger().equals(n.ZERO)}function pointFpNegate(){return new ECPointFp(this.curve,this.x,this.y.negate(),this.z)}function pointFpAdd(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q);var r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(n.ZERO.equals(r)){if(n.ZERO.equals(t)){return this.twice()}return this.curve.getInfinity()}var i=new n("3");var o=this.x.toBigInteger();var s=this.y.toBigInteger();var a=e.x.toBigInteger();var u=e.y.toBigInteger();var c=r.square();var l=c.multiply(r);var d=o.multiply(c);var h=t.square().multiply(this.z);var m=h.subtract(d.shiftLeft(1)).multiply(e.z).subtract(l).multiply(r).mod(this.curve.q);var g=d.multiply(i).multiply(t).subtract(s.multiply(l)).subtract(h.multiply(t)).multiply(e.z).add(t.multiply(l)).mod(this.curve.q);var y=l.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(m),this.curve.fromBigInteger(g),y)}function pointFpTwice(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=new n("3");var t=this.x.toBigInteger();var r=this.y.toBigInteger();var i=r.multiply(this.z);var o=i.multiply(r).mod(this.curve.q);var s=this.curve.a.toBigInteger();var a=t.square().multiply(e);if(!n.ZERO.equals(s)){a=a.add(this.z.square().multiply(s))}a=a.mod(this.curve.q);var u=a.square().subtract(t.shiftLeft(3).multiply(o)).shiftLeft(1).multiply(i).mod(this.curve.q);var c=a.multiply(e).multiply(t).subtract(o.shiftLeft(1)).shiftLeft(2).multiply(o).subtract(a.square().multiply(a)).mod(this.curve.q);var l=i.square().multiply(i).shiftLeft(3).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(c),l)}function pointFpMultiply(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t=e;var r=t.multiply(new n("3"));var i=this.negate();var o=this;var s;for(s=r.bitLength()-2;s>0;--s){o=o.twice();var a=r.testBit(s);var u=t.testBit(s);if(a!=u){o=o.add(a?this:i)}}return o}function pointFpMultiplyTwo(e,t,r){var n;if(e.bitLength()>r.bitLength())n=e.bitLength()-1;else n=r.bitLength()-1;var i=this.curve.getInfinity();var o=this.add(t);while(n>=0){i=i.twice();if(e.testBit(n)){if(r.testBit(n)){i=i.add(o)}else{i=i.add(this)}}else{if(r.testBit(n)){i=i.add(t)}}--n}return i}ECPointFp.prototype.getX=pointFpGetX;ECPointFp.prototype.getY=pointFpGetY;ECPointFp.prototype.equals=pointFpEquals;ECPointFp.prototype.isInfinity=pointFpIsInfinity;ECPointFp.prototype.negate=pointFpNegate;ECPointFp.prototype.add=pointFpAdd;ECPointFp.prototype.twice=pointFpTwice;ECPointFp.prototype.multiply=pointFpMultiply;ECPointFp.prototype.multiplyTwo=pointFpMultiplyTwo;function ECCurveFp(e,t,r){this.q=e;this.a=this.fromBigInteger(t);this.b=this.fromBigInteger(r);this.infinity=new ECPointFp(this,null,null);this.reducer=new i(this.q)}function curveFpGetQ(){return this.q}function curveFpGetA(){return this.a}function curveFpGetB(){return this.b}function curveFpEquals(e){if(e==this)return true;return this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}function curveFpGetInfinity(){return this.infinity}function curveFpFromBigInteger(e){return new ECFieldElementFp(this.q,e)}function curveReduce(e){this.reducer.reduce(e)}function curveFpDecodePointHex(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2;var r=e.substr(2,t);var i=e.substr(t+2,t);return new ECPointFp(this,this.fromBigInteger(new n(r,16)),this.fromBigInteger(new n(i,16)));default:return null}}function curveFpEncodePointHex(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16);var r=e.getY().toBigInteger().toString(16);var n=this.getQ().toString(16).length;if(n%2!=0)n++;while(t.length128){var t=this.q.shiftRight(e-64);if(t.intValue()==-1){this.r=n.ONE.shiftLeft(e).subtract(this.q)}}return this.r};ECFieldElementFp.prototype.modMult=function(e,t){return this.modReduce(e.multiply(t))};ECFieldElementFp.prototype.modReduce=function(e){if(this.getR()!=null){var t=q.bitLength();while(e.bitLength()>t+1){var r=e.shiftRight(t);var i=e.subtract(r.shiftLeft(t));if(!this.getR().equals(n.ONE)){r=r.multiply(this.getR())}e=r.add(i)}while(e.compareTo(q)>=0){e=e.subtract(q)}}else{e=e.mod(q)}return e};ECFieldElementFp.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var e=new ECFieldElementFp(this.q,this.x.modPow(this.q.shiftRight(2).add(n.ONE),this.q));return e.square().equals(this)?e:null}var t=this.q.subtract(n.ONE);var r=t.shiftRight(1);if(!this.x.modPow(r,this.q).equals(n.ONE)){return null}var i=t.shiftRight(2);var o=i.shiftLeft(1).add(n.ONE);var s=this.x;var a=modDouble(modDouble(s));var u,c;do{var l;do{l=new n(this.q.bitLength(),new SecureRandom)}while(l.compareTo(this.q)>=0||!l.multiply(l).subtract(a).modPow(r,this.q).equals(t));var d=this.lucasSequence(l,s,o);u=d[0];c=d[1];if(this.modMult(c,c).equals(a)){if(c.testBit(0)){c=c.add(q)}c=c.shiftRight(1);return new ECFieldElementFp(q,c)}}while(u.equals(n.ONE)||u.equals(t));return null};ECFieldElementFp.prototype.lucasSequence=function(e,t,r){var i=r.bitLength();var o=r.getLowestSetBit();var s=n.ONE;var a=n.TWO;var u=e;var c=n.ONE;var l=n.ONE;for(var d=i-1;d>=o+1;--d){c=this.modMult(c,l);if(r.testBit(d)){l=this.modMult(c,t);s=this.modMult(s,u);a=this.modReduce(u.multiply(a).subtract(e.multiply(c)));u=this.modReduce(u.multiply(u).subtract(l.shiftLeft(1)))}else{l=c;s=this.modReduce(s.multiply(a).subtract(c));u=this.modReduce(u.multiply(a).subtract(e.multiply(c)));a=this.modReduce(a.multiply(a).subtract(c.shiftLeft(1)))}}c=this.modMult(c,l);l=this.modMult(c,t);s=this.modReduce(s.multiply(a).subtract(c));a=this.modReduce(u.multiply(a).subtract(e.multiply(c)));c=this.modMult(c,l);for(var d=1;d<=o;++d){s=this.modMult(s,a);a=this.modReduce(a.multiply(a).subtract(c.shiftLeft(1)));c=this.modMult(c,c)}return[s,a]};var o={ECCurveFp:ECCurveFp,ECPointFp:ECPointFp,ECFieldElementFp:ECFieldElementFp};e.exports=o},75177:(e,t,r)=>{var n=r(79187).BigInteger;var i=r(19480).ECCurveFp;function X9ECParameters(e,t,r,n){this.curve=e;this.g=t;this.n=r;this.h=n}function x9getCurve(){return this.curve}function x9getG(){return this.g}function x9getN(){return this.n}function x9getH(){return this.h}X9ECParameters.prototype.getCurve=x9getCurve;X9ECParameters.prototype.getG=x9getG;X9ECParameters.prototype.getN=x9getN;X9ECParameters.prototype.getH=x9getH;function fromHex(e){return new n(e,16)}function secp128r1(){var e=fromHex("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF");var t=fromHex("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC");var r=fromHex("E87579C11079F43DD824993C2CEE5ED3");var o=fromHex("FFFFFFFE0000000075A30D1B9038A115");var s=n.ONE;var a=new i(e,t,r);var u=a.decodePointHex("04"+"161FF7528B899B2D0C28607CA52C5B86"+"CF5AC8395BAFEB13C02DA292DDED7A83");return new X9ECParameters(a,u,o,s)}function secp160k1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73");var t=n.ZERO;var r=fromHex("7");var o=fromHex("0100000000000000000001B8FA16DFAB9ACA16B6B3");var s=n.ONE;var a=new i(e,t,r);var u=a.decodePointHex("04"+"3B4C382CE37AA192A4019E763036F4F5DD4D7EBB"+"938CF935318FDCED6BC28286531733C3F03C4FEE");return new X9ECParameters(a,u,o,s)}function secp160r1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF");var t=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC");var r=fromHex("1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45");var o=fromHex("0100000000000000000001F4C8F927AED3CA752257");var s=n.ONE;var a=new i(e,t,r);var u=a.decodePointHex("04"+"4A96B5688EF573284664698968C38BB913CBFC82"+"23A628553168947D59DCC912042351377AC5FB32");return new X9ECParameters(a,u,o,s)}function secp192k1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37");var t=n.ZERO;var r=fromHex("3");var o=fromHex("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D");var s=n.ONE;var a=new i(e,t,r);var u=a.decodePointHex("04"+"DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D"+"9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D");return new X9ECParameters(a,u,o,s)}function secp192r1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF");var t=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC");var r=fromHex("64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1");var o=fromHex("FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831");var s=n.ONE;var a=new i(e,t,r);var u=a.decodePointHex("04"+"188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012"+"07192B95FFC8DA78631011ED6B24CDD573F977A11E794811");return new X9ECParameters(a,u,o,s)}function secp224r1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001");var t=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE");var r=fromHex("B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4");var o=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D");var s=n.ONE;var a=new i(e,t,r);var u=a.decodePointHex("04"+"B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21"+"BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34");return new X9ECParameters(a,u,o,s)}function secp256r1(){var e=fromHex("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF");var t=fromHex("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC");var r=fromHex("5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B");var o=fromHex("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551");var s=n.ONE;var a=new i(e,t,r);var u=a.decodePointHex("04"+"6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296"+"4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5");return new X9ECParameters(a,u,o,s)}function getSECCurveByName(e){if(e=="secp128r1")return secp128r1();if(e=="secp160k1")return secp160k1();if(e=="secp160r1")return secp160r1();if(e=="secp192k1")return secp192k1();if(e=="secp192r1")return secp192r1();if(e=="secp224r1")return secp224r1();if(e=="secp256r1")return secp256r1();return null}e.exports={secp128r1:secp128r1,secp160k1:secp160k1,secp160r1:secp160r1,secp192k1:secp192k1,secp192r1:secp192r1,secp224r1:secp224r1,secp256r1:secp256r1}},90065:(e,t,r)=>{var n=r(81428);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=n(r||noop);var i=e._writableState;var o=e._readableState;var s=t.readable||t.readable!==false&&e.readable;var a=t.writable||t.writable!==false&&e.writable;var u=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){a=false;if(!s)r.call(e)};var onend=function(){s=false;if(!a)r.call(e)};var onexit=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var onerror=function(t){r.call(e,t)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(u)return;if(s&&!(o&&(o.ended&&!o.destroyed)))return r.call(e,new Error("premature close"));if(a&&!(i&&(i.ended&&!i.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(a&&!i){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(t.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){u=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},19912:(e,t,r)=>{"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol";var i=r(51403);var o=r(87606);var s=r(61711);var a=r(69802);var u=function OrdinaryToPrimitive(e,t){if(typeof e==="undefined"||e===null){throw new TypeError("Cannot call method on "+e)}if(typeof t!=="string"||t!=="number"&&t!=="string"){throw new TypeError('hint must be "string" or "number"')}var r=t==="string"?["toString","valueOf"]:["valueOf","toString"];var n,s,a;for(a=0;a1){if(arguments[1]===String){t="string"}else if(arguments[1]===Number){t="number"}}var r;if(n){if(Symbol.toPrimitive){r=c(e,Symbol.toPrimitive)}else if(a(e)){r=Symbol.prototype.valueOf}}if(typeof r!=="undefined"){var o=r.call(e,t);if(i(o)){return o}throw new TypeError("unable to convert exotic object to primitive")}if(t==="default"&&(s(e)||a(e))){t="string"}return u(e,t==="default"?"number":t)}},41227:(e,t,r)=>{"use strict";var n=Object.prototype.toString;var i=r(51403);var o=r(87606);var s={"[[DefaultValue]]":function(e){var t;if(arguments.length>1){t=arguments[1]}else{t=n.call(e)==="[object Date]"?String:Number}if(t===String||t===Number){var r=t===String?["toString","valueOf"]:["valueOf","toString"];var s,a;for(a=0;a1){return s["[[DefaultValue]]"](e,arguments[1])}return s["[[DefaultValue]]"](e)}},51403:e=>{"use strict";e.exports=function isPrimitive(e){return e===null||typeof e!=="function"&&typeof e!=="object"}},17848:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function Events(){}if(Object.create){Events.prototype=Object.create(null);if(!(new Events).__proto__)r=false}function EE(e,t,r){this.fn=e;this.context=t;this.once=r||false}function addListener(e,t,n,i,o){if(typeof n!=="function"){throw new TypeError("The listener must be a function")}var s=new EE(n,i||e,o),a=r?r+t:t;if(!e._events[a])e._events[a]=s,e._eventsCount++;else if(!e._events[a].fn)e._events[a].push(s);else e._events[a]=[e._events[a],s];return e}function clearEvent(e,t){if(--e._eventsCount===0)e._events=new Events;else delete e._events[t]}function EventEmitter(){this._events=new Events;this._eventsCount=0}EventEmitter.prototype.eventNames=function eventNames(){var e=[],n,i;if(this._eventsCount===0)return e;for(i in n=this._events){if(t.call(n,i))e.push(r?i.slice(1):i)}if(Object.getOwnPropertySymbols){return e.concat(Object.getOwnPropertySymbols(n))}return e};EventEmitter.prototype.listeners=function listeners(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=new Array(o);i{"use strict";var t=Object.prototype.hasOwnProperty;var r=Object.prototype.toString;var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var o=function isArray(e){if(typeof Array.isArray==="function"){return Array.isArray(e)}return r.call(e)==="[object Array]"};var s=function isPlainObject(e){if(!e||r.call(e)!=="[object Object]"){return false}var n=t.call(e,"constructor");var i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i){return false}var o;for(o in e){}return typeof o==="undefined"||t.call(e,o)};var a=function setProperty(e,t){if(n&&t.name==="__proto__"){n(e,t.name,{enumerable:true,configurable:true,value:t.newValue,writable:true})}else{e[t.name]=t.newValue}};var u=function getProperty(e,r){if(r==="__proto__"){if(!t.call(e,r)){return void 0}else if(i){return i(e,r).value}}return e[r]};e.exports=function extend(){var e,t,r,n,i,c;var l=arguments[0];var d=1;var h=arguments.length;var m=false;if(typeof l==="boolean"){m=l;l=arguments[1]||{};d=2}if(l==null||typeof l!=="object"&&typeof l!=="function"){l={}}for(;d{var n=r(39491);var i=r(73837);t.sprintf=jsSprintf;t.printf=jsPrintf;t.fprintf=jsFprintf;function jsSprintf(e){var t=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join("");var r=new RegExp(t);var o=Array.prototype.slice.call(arguments,1);var s,a,u,c;var l,d,h,m,g;var y="";var v=1;n.equal("string",typeof e);while((g=r.exec(e))!==null){y+=g[1];e=e.substring(g[0].length);s=g[2]||"";a=g[3]||0;u=g[4]||"";c=g[6];l=false;h=false;d=" ";if(c=="%"){y+="%";continue}if(o.length===0)throw new Error("too few args to sprintf");m=o.shift();v++;if(s.match(/[\' #]/))throw new Error("unsupported flags: "+s);if(u.length>0)throw new Error("non-zero precision not supported");if(s.match(/-/))l=true;if(s.match(/0/))d="0";if(s.match(/\+/))h=true;switch(c){case"s":if(m===undefined||m===null)throw new Error("argument "+v+": attempted to print undefined or null "+"as a string");y+=doPad(d,a,l,m.toString());break;case"d":m=Math.floor(m);case"f":h=h&&m>0?"+":"";y+=h+doPad(d,a,l,m.toString());break;case"x":y+=doPad(d,a,l,m.toString(16));break;case"j":if(a===0)a=10;y+=i.inspect(m,false,a);break;case"r":y+=dumpException(m);break;default:throw new Error("unsupported conversion: "+c)}}y+=e;return y}function jsPrintf(){var e=Array.prototype.slice.call(arguments);e.unshift(process.stdout);jsFprintf.apply(null,e)}function jsFprintf(e){var t=Array.prototype.slice.call(arguments,1);return e.write(jsSprintf.apply(this,t))}function doPad(e,t,r,n){var i=n;while(i.length{"use strict";e.exports=function equal(e,t){if(e===t)return true;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return false;var r,n,i;if(Array.isArray(e)){r=e.length;if(r!=t.length)return false;for(n=r;n--!==0;)if(!equal(e[n],t[n]))return false;return true}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();i=Object.keys(e);r=i.length;if(r!==Object.keys(t).length)return false;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return false;for(n=r;n--!==0;){var o=i[n];if(!equal(e[o],t[o]))return false}return true}return e!==e&&t!==t}},16289:e=>{"use strict";e.exports=function(e,t){if(!t)t={};if(typeof t==="function")t={cmp:t};var r=typeof t.cycles==="boolean"?t.cycles:false;var n=t.cmp&&function(e){return function(t){return function(r,n){var i={key:r,value:t[r]};var o={key:n,value:t[n]};return e(i,o)}}}(t.cmp);var i=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var t,o;if(Array.isArray(e)){o="[";for(t=0;t{"use strict";e.exports=function(e){if(!(e&&e.length>1)){return null}if(e[0]===255&&e[1]===216&&e[2]===255){return{ext:"jpg",mime:"image/jpeg"}}if(e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71){return{ext:"png",mime:"image/png"}}if(e[0]===71&&e[1]===73&&e[2]===70){return{ext:"gif",mime:"image/gif"}}if(e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80){return{ext:"webp",mime:"image/webp"}}if(e[0]===70&&e[1]===76&&e[2]===73&&e[3]===70){return{ext:"flif",mime:"image/flif"}}if((e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42)&&e[8]===67&&e[9]===82){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42){return{ext:"tif",mime:"image/tiff"}}if(e[0]===66&&e[1]===77){return{ext:"bmp",mime:"image/bmp"}}if(e[0]===73&&e[1]===73&&e[2]===188){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(e[0]===56&&e[1]===66&&e[2]===80&&e[3]===83){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===109&&e[31]===105&&e[32]===109&&e[33]===101&&e[34]===116&&e[35]===121&&e[36]===112&&e[37]===101&&e[38]===97&&e[39]===112&&e[40]===112&&e[41]===108&&e[42]===105&&e[43]===99&&e[44]===97&&e[45]===116&&e[46]===105&&e[47]===111&&e[48]===110&&e[49]===47&&e[50]===101&&e[51]===112&&e[52]===117&&e[53]===98&&e[54]===43&&e[55]===122&&e[56]===105&&e[57]===112){return{ext:"epub",mime:"application/epub+zip"}}if(e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===77&&e[31]===69&&e[32]===84&&e[33]===65&&e[34]===45&&e[35]===73&&e[36]===78&&e[37]===70&&e[38]===47&&e[39]===109&&e[40]===111&&e[41]===122&&e[42]===105&&e[43]===108&&e[44]===108&&e[45]===97&&e[46]===46&&e[47]===114&&e[48]===115&&e[49]===97){return{ext:"xpi",mime:"application/x-xpinstall"}}if(e[0]===80&&e[1]===75&&(e[2]===3||e[2]===5||e[2]===7)&&(e[3]===4||e[3]===6||e[3]===8)){return{ext:"zip",mime:"application/zip"}}if(e[257]===117&&e[258]===115&&e[259]===116&&e[260]===97&&e[261]===114){return{ext:"tar",mime:"application/x-tar"}}if(e[0]===82&&e[1]===97&&e[2]===114&&e[3]===33&&e[4]===26&&e[5]===7&&(e[6]===0||e[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(e[0]===31&&e[1]===139&&e[2]===8){return{ext:"gz",mime:"application/gzip"}}if(e[0]===66&&e[1]===90&&e[2]===104){return{ext:"bz2",mime:"application/x-bzip2"}}if(e[0]===55&&e[1]===122&&e[2]===188&&e[3]===175&&e[4]===39&&e[5]===28){return{ext:"7z",mime:"application/x-7z-compressed"}}if(e[0]===120&&e[1]===1){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(e[0]===0&&e[1]===0&&e[2]===0&&(e[3]===24||e[3]===32)&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112||e[0]===51&&e[1]===103&&e[2]===112&&e[3]===53||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[16]===109&&e[17]===112&&e[18]===52&&e[19]===49&&e[20]===109&&e[21]===112&&e[22]===52&&e[23]===50&&e[24]===105&&e[25]===115&&e[26]===111&&e[27]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===105&&e[9]===115&&e[10]===111&&e[11]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[12]===0&&e[13]===0&&e[14]===0&&e[15]===0){return{ext:"mp4",mime:"video/mp4"}}if(e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===86){return{ext:"m4v",mime:"video/x-m4v"}}if(e[0]===77&&e[1]===84&&e[2]===104&&e[3]===100){return{ext:"mid",mime:"audio/midi"}}if(e[31]===109&&e[32]===97&&e[33]===116&&e[34]===114&&e[35]===111&&e[36]===115&&e[37]===107&&e[38]===97){return{ext:"mkv",mime:"video/x-matroska"}}if(e[0]===26&&e[1]===69&&e[2]===223&&e[3]===163){return{ext:"webm",mime:"video/webm"}}if(e[0]===0&&e[1]===0&&e[2]===0&&e[3]===20&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112){return{ext:"mov",mime:"video/quicktime"}}if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===65&&e[9]===86&&e[10]===73){return{ext:"avi",mime:"video/x-msvideo"}}if(e[0]===48&&e[1]===38&&e[2]===178&&e[3]===117&&e[4]===142&&e[5]===102&&e[6]===207&&e[7]===17&&e[8]===166&&e[9]===217){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(e[0]===0&&e[1]===0&&e[2]===1&&e[3].toString(16)[0]==="b"){return{ext:"mpg",mime:"video/mpeg"}}if(e[0]===73&&e[1]===68&&e[2]===51||e[0]===255&&e[1]===251){return{ext:"mp3",mime:"audio/mpeg"}}if(e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===65||e[0]===77&&e[1]===52&&e[2]===65&&e[3]===32){return{ext:"m4a",mime:"audio/m4a"}}if(e[28]===79&&e[29]===112&&e[30]===117&&e[31]===115&&e[32]===72&&e[33]===101&&e[34]===97&&e[35]===100){return{ext:"opus",mime:"audio/opus"}}if(e[0]===79&&e[1]===103&&e[2]===103&&e[3]===83){return{ext:"ogg",mime:"audio/ogg"}}if(e[0]===102&&e[1]===76&&e[2]===97&&e[3]===67){return{ext:"flac",mime:"audio/x-flac"}}if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===65&&e[10]===86&&e[11]===69){return{ext:"wav",mime:"audio/x-wav"}}if(e[0]===35&&e[1]===33&&e[2]===65&&e[3]===77&&e[4]===82&&e[5]===10){return{ext:"amr",mime:"audio/amr"}}if(e[0]===37&&e[1]===80&&e[2]===68&&e[3]===70){return{ext:"pdf",mime:"application/pdf"}}if(e[0]===77&&e[1]===90){return{ext:"exe",mime:"application/x-msdownload"}}if((e[0]===67||e[0]===70)&&e[1]===87&&e[2]===83){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(e[0]===123&&e[1]===92&&e[2]===114&&e[3]===116&&e[4]===102){return{ext:"rtf",mime:"application/rtf"}}if(e[0]===119&&e[1]===79&&e[2]===70&&e[3]===70&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)){return{ext:"woff",mime:"application/font-woff"}}if(e[0]===119&&e[1]===79&&e[2]===70&&e[3]===50&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)){return{ext:"woff2",mime:"application/font-woff"}}if(e[34]===76&&e[35]===80&&(e[8]===0&&e[9]===0&&e[10]===1||e[8]===1&&e[9]===0&&e[10]===2||e[8]===2&&e[9]===0&&e[10]===2)){return{ext:"eot",mime:"application/octet-stream"}}if(e[0]===0&&e[1]===1&&e[2]===0&&e[3]===0&&e[4]===0){return{ext:"ttf",mime:"application/font-sfnt"}}if(e[0]===79&&e[1]===84&&e[2]===84&&e[3]===79&&e[4]===0){return{ext:"otf",mime:"application/font-sfnt"}}if(e[0]===0&&e[1]===0&&e[2]===1&&e[3]===0){return{ext:"ico",mime:"image/x-icon"}}if(e[0]===70&&e[1]===76&&e[2]===86&&e[3]===1){return{ext:"flv",mime:"video/x-flv"}}if(e[0]===37&&e[1]===33){return{ext:"ps",mime:"application/postscript"}}if(e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0){return{ext:"xz",mime:"application/x-xz"}}if(e[0]===83&&e[1]===81&&e[2]===76&&e[3]===105){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(e[0]===78&&e[1]===69&&e[2]===83&&e[3]===26){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(e[0]===67&&e[1]===114&&e[2]===50&&e[3]===52){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(e[0]===77&&e[1]===83&&e[2]===67&&e[3]===70||e[0]===73&&e[1]===83&&e[2]===99&&e[3]===40){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62&&e[7]===10&&e[8]===100&&e[9]===101&&e[10]===98&&e[11]===105&&e[12]===97&&e[13]===110&&e[14]===45&&e[15]===98&&e[16]===105&&e[17]===110&&e[18]===97&&e[19]===114&&e[20]===121){return{ext:"deb",mime:"application/x-deb"}}if(e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62){return{ext:"ar",mime:"application/x-unix-archive"}}if(e[0]===237&&e[1]===171&&e[2]===238&&e[3]===219){return{ext:"rpm",mime:"application/x-rpm"}}if(e[0]===31&&e[1]===160||e[0]===31&&e[1]===157){return{ext:"Z",mime:"application/x-compress"}}if(e[0]===76&&e[1]===90&&e[2]===73&&e[3]===80){return{ext:"lz",mime:"application/x-lzip"}}if(e[0]===208&&e[1]===207&&e[2]===17&&e[3]===224&&e[4]===161&&e[5]===177&&e[6]===26&&e[7]===225){return{ext:"msi",mime:"application/x-msi"}}return null}},73738:(e,t,r)=>{e.exports=ForeverAgent;ForeverAgent.SSL=ForeverAgentSSL;var n=r(73837),i=r(13685).Agent,o=r(41808),s=r(24404),a=r(95687).Agent;function getConnectionName(e,t){var r="";if(typeof e==="string"){r=e+":"+t}else{r=e.host+":"+e.port+":"+(e.localAddress?e.localAddress+":":":")}return r}function ForeverAgent(e){var t=this;t.options=e||{};t.requests={};t.sockets={};t.freeSockets={};t.maxSockets=t.options.maxSockets||i.defaultMaxSockets;t.minSockets=t.options.minSockets||ForeverAgent.defaultMinSockets;t.on("free",(function(e,r,n){var i=getConnectionName(r,n);if(t.requests[i]&&t.requests[i].length){t.requests[i].shift().onSocket(e)}else if(t.sockets[i].length0&&!e.useChunkedEncodingByDefault){var o=this.freeSockets[n].pop();o.removeListener("error",o._onIdleError);delete o._onIdleError;e._reusedSocket=true;e.onSocket(o)}else{this.addRequestNoreuse(e,t,r)}};ForeverAgent.prototype.removeSocket=function(e,t,r,n){if(this.sockets[t]){var i=this.sockets[t].indexOf(e);if(i!==-1){this.sockets[t].splice(i,1)}}else if(this.sockets[t]&&this.sockets[t].length===0){delete this.sockets[t];delete this.requests[t]}if(this.freeSockets[t]){var i=this.freeSockets[t].indexOf(e);if(i!==-1){this.freeSockets[t].splice(i,1);if(this.freeSockets[t].length===0){delete this.freeSockets[t]}}}if(this.requests[t]&&this.requests[t].length){this.createSocket(t,r,n).emit("free")}};function ForeverAgentSSL(e){ForeverAgent.call(this,e)}n.inherits(ForeverAgentSSL,ForeverAgent);ForeverAgentSSL.prototype.createConnection=createConnectionSSL;ForeverAgentSSL.prototype.addRequestNoreuse=a.prototype.addRequest;function createConnectionSSL(e,t,r){if(typeof e==="object"){r=e}else if(typeof t==="object"){r=t}else if(typeof r==="object"){r=r}else{r={}}if(typeof e==="number"){r.port=e}if(typeof t==="string"){r.host=t}return s.connect(r)}},18558:e=>{"use strict";var t="Function.prototype.bind called on incompatible ";var r=Array.prototype.slice;var n=Object.prototype.toString;var i="[object Function]";e.exports=function bind(e){var o=this;if(typeof o!=="function"||n.call(o)!==i){throw new TypeError(t+o)}var s=r.call(arguments,1);var a;var binder=function(){if(this instanceof a){var t=o.apply(this,s.concat(r.call(arguments)));if(Object(t)===t){return t}return this}else{return o.apply(e,s.concat(r.call(arguments)))}};var u=Math.max(0,o.length-s.length);var c=[];for(var l=0;l{"use strict";var n=r(18558);e.exports=Function.prototype.bind||n},84512:(e,t,r)=>{"use strict";var n;var i=SyntaxError;var o=Function;var s=TypeError;var getEvalledConstructor=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}};var a=Object.getOwnPropertyDescriptor;if(a){try{a({},"")}catch(e){a=null}}var throwTypeError=function(){throw new s};var u=a?function(){try{arguments.callee;return throwTypeError}catch(e){try{return a(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var c=r(68388)();var l=Object.getPrototypeOf||function(e){return e.__proto__};var d={};var h=typeof Uint8Array==="undefined"?n:l(Uint8Array);var m={"%AggregateError%":typeof AggregateError==="undefined"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?n:ArrayBuffer,"%ArrayIteratorPrototype%":c?l([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":typeof Atomics==="undefined"?n:Atomics,"%BigInt%":typeof BigInt==="undefined"?n:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?n:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":typeof Int8Array==="undefined"?n:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?n:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?l(l([][Symbol.iterator]())):n,"%JSON%":typeof JSON==="object"?JSON:n,"%Map%":typeof Map==="undefined"?n:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!c?n:l((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?n:Promise,"%Proxy%":typeof Proxy==="undefined"?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?n:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!c?n:l((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?l(""[Symbol.iterator]()):n,"%Symbol%":c?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array==="undefined"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?n:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?n:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?n:WeakSet};var g=function doEval(e){var t;if(e==="%AsyncFunction%"){t=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){t=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){t=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var r=doEval("%AsyncGeneratorFunction%");if(r){t=r.prototype}}else if(e==="%AsyncIteratorPrototype%"){var n=doEval("%AsyncGenerator%");if(n){t=l(n.prototype)}}m[e]=t;return t};var y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var v=r(26788);var b=r(38411);var _=v.call(Function.call,Array.prototype.concat);var E=v.call(Function.apply,Array.prototype.splice);var k=v.call(Function.call,String.prototype.replace);var x=v.call(Function.call,String.prototype.slice);var C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var O=/\\(\\)?/g;var D=function stringToPath(e){var t=x(e,0,1);var r=x(e,-1);if(t==="%"&&r!=="%"){throw new i("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&t!=="%"){throw new i("invalid intrinsic syntax, expected opening `%`")}var n=[];k(e,C,(function(e,t,r,i){n[n.length]=r?k(i,O,"$1"):t||e}));return n};var B=function getBaseIntrinsic(e,t){var r=e;var n;if(b(y,r)){n=y[r];r="%"+n[0]+"%"}if(b(m,r)){var o=m[r];if(o===d){o=g(r)}if(typeof o==="undefined"&&!t){throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new s("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new s('"allowMissing" argument must be a boolean')}var r=D(e);var o=r.length>0?r[0]:"";var u=B("%"+o+"%",t);var c=u.name;var l=u.value;var d=false;var h=u.alias;if(h){o=h[0];E(r,_([0,1],h))}for(var g=1,y=true;g=r.length){var O=a(l,v);y=!!O;if(y&&"get"in O&&!("originalValue"in O.get)){l=O.get}else{l=l[v]}}else{y=b(l,v);l=l[v]}if(y&&!d){m[c]=l}}}return l}},16439:(e,t,r)=>{"use strict";e.exports={afterRequest:r(83932),beforeRequest:r(36136),browser:r(805),cache:r(51632),content:r(61567),cookie:r(25725),creator:r(47218),entry:r(74560),har:r(75579),header:r(75147),log:r(53013),page:r(34777),pageTimings:r(5538),postData:r(12096),query:r(21251),request:r(99646),response:r(9103),timings:r(22007)}},25655:e=>{function HARError(e){var t="validation failed";this.name="HARError";this.message=t;this.errors=e;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,this.constructor)}else{this.stack=new Error(t).stack}}HARError.prototype=Error.prototype;e.exports=HARError},66303:(e,t,r)=>{var n=r(6183);var i=r(25655);var o=r(16439);var s;function createAjvInstance(){var e=new n({allErrors:true});e.addMetaSchema(r(96273));e.addSchema(o);return e}function validate(e,t){t=t||{};s=s||createAjvInstance();var r=s.getSchema(e+".json");return new Promise((function(e,n){var o=r(t);!o?n(new i(r.errors)):e(t)}))}t.afterRequest=function(e){return validate("afterRequest",e)};t.beforeRequest=function(e){return validate("beforeRequest",e)};t.browser=function(e){return validate("browser",e)};t.cache=function(e){return validate("cache",e)};t.content=function(e){return validate("content",e)};t.cookie=function(e){return validate("cookie",e)};t.creator=function(e){return validate("creator",e)};t.entry=function(e){return validate("entry",e)};t.har=function(e){return validate("har",e)};t.header=function(e){return validate("header",e)};t.log=function(e){return validate("log",e)};t.page=function(e){return validate("page",e)};t.pageTimings=function(e){return validate("pageTimings",e)};t.postData=function(e){return validate("postData",e)};t.query=function(e){return validate("query",e)};t.request=function(e){return validate("request",e)};t.response=function(e){return validate("response",e)};t.timings=function(e){return validate("timings",e)}},57929:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1||n{"use strict";var n=typeof Symbol!=="undefined"&&Symbol;var i=r(57707);e.exports=function hasNativeSymbols(){if(typeof n!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof n("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return i()}},57707:e=>{"use strict";e.exports=function hasSymbols(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var t=Symbol("test");var r=Object(t);if(typeof t==="string"){return false}if(Object.prototype.toString.call(t)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;e[t]=n;for(t in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t){return false}if(!Object.prototype.propertyIsEnumerable.call(e,t)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||o.enumerable!==true){return false}}return true}},48742:(e,t,r)=>{"use strict";var n=r(57707);e.exports=function hasToStringTagShams(){return n()&&!!Symbol.toStringTag}},38411:(e,t,r)=>{"use strict";var n=r(26788);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},22329:(e,t,r)=>{var n=r(85281);var i=r(11370);var o=r(2692);var s=r(79933);e.exports={parse:n.parseRequest,parseRequest:n.parseRequest,sign:i.signRequest,signRequest:i.signRequest,createSigner:i.createSigner,isSigner:i.isSigner,sshKeyToPEM:s.sshKeyToPEM,sshKeyFingerprint:s.fingerprint,pemToRsaSSHKey:s.pemToRsaSSHKey,verify:o.verifySignature,verifySignature:o.verifySignature,verifyHMAC:o.verifyHMAC}},85281:(e,t,r)=>{var n=r(31258);var i=r(73837);var o=r(79933);var s=o.HASH_ALGOS;var a=o.PK_ALGOS;var u=o.HttpSignatureError;var c=o.InvalidAlgorithmError;var l=o.validateAlgorithm;var d={New:0,Params:1};var h={Name:0,Quote:1,Value:2,Comma:3};function ExpiredRequestError(e){u.call(this,e,ExpiredRequestError)}i.inherits(ExpiredRequestError,u);function InvalidHeaderError(e){u.call(this,e,InvalidHeaderError)}i.inherits(InvalidHeaderError,u);function InvalidParamsError(e){u.call(this,e,InvalidParamsError)}i.inherits(InvalidParamsError,u);function MissingHeaderError(e){u.call(this,e,MissingHeaderError)}i.inherits(MissingHeaderError,u);function StrictParsingError(e){u.call(this,e,StrictParsingError)}i.inherits(StrictParsingError,u);e.exports={parseRequest:function parseRequest(e,t){n.object(e,"request");n.object(e.headers,"request.headers");if(t===undefined){t={}}if(t.headers===undefined){t.headers=[e.headers["x-date"]?"x-date":"date"]}n.object(t,"options");n.arrayOfString(t.headers,"options.headers");n.optionalFinite(t.clockSkew,"options.clockSkew");var r=t.authorizationHeaderName||"authorization";if(!e.headers[r]){throw new MissingHeaderError("no "+r+" header "+"present in the request")}t.clockSkew=t.clockSkew||300;var i=0;var o=d.New;var s=h.Name;var a="";var u="";var m={scheme:"",params:{},signingString:""};var g=e.headers[r];for(i=0;i=65&&v<=90||v>=97&&v<=122){a+=y}else if(y==="="){if(a.length===0)throw new InvalidHeaderError("bad param format");s=h.Quote}else{throw new InvalidHeaderError("bad param format")}break;case h.Quote:if(y==='"'){u="";s=h.Value}else{throw new InvalidHeaderError("bad param format")}break;case h.Value:if(y==='"'){m.params[a]=u;s=h.Comma}else{u+=y}break;case h.Comma:if(y===","){a="";s=h.Name}else{throw new InvalidHeaderError("bad param format")}break;default:throw new Error("Invalid substate")}break;default:throw new Error("Invalid substate")}}if(!m.params.headers||m.params.headers===""){if(e.headers["x-date"]){m.params.headers=["x-date"]}else{m.params.headers=["date"]}}else{m.params.headers=m.params.headers.split(" ")}if(!m.scheme||m.scheme!=="Signature")throw new InvalidHeaderError('scheme was not "Signature"');if(!m.params.keyId)throw new InvalidHeaderError("keyId was not specified");if(!m.params.algorithm)throw new InvalidHeaderError("algorithm was not specified");if(!m.params.signature)throw new InvalidHeaderError("signature was not specified");m.params.algorithm=m.params.algorithm.toLowerCase();try{l(m.params.algorithm)}catch(e){if(e instanceof c)throw new InvalidParamsError(m.params.algorithm+" is not "+"supported");else throw e}for(i=0;it.clockSkew*1e3){throw new ExpiredRequestError("clock skew of "+x/1e3+"s was greater than "+t.clockSkew+"s")}}t.headers.forEach((function(e){if(m.params.headers.indexOf(e.toLowerCase())<0)throw new MissingHeaderError(e+" was not a signed header")}));if(t.algorithms){if(t.algorithms.indexOf(m.params.algorithm)===-1)throw new InvalidParamsError(m.params.algorithm+" is not a supported algorithm")}m.algorithm=m.params.algorithm.toUpperCase();m.keyId=m.params.keyId;return m}}},11370:(e,t,r)=>{var n=r(31258);var i=r(6113);var o=r(13685);var s=r(73837);var a=r(82066);var u=r(70146);var c=r(79933);var l=r(73837).format;var d=c.HASH_ALGOS;var h=c.PK_ALGOS;var m=c.InvalidAlgorithmError;var g=c.HttpSignatureError;var y=c.validateAlgorithm;var v='Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"';function MissingHeaderError(e){g.call(this,e,MissingHeaderError)}s.inherits(MissingHeaderError,g);function StrictParsingError(e){g.call(this,e,StrictParsingError)}s.inherits(StrictParsingError,g);function RequestSigner(e){n.object(e,"options");var t=[];if(e.algorithm!==undefined){n.string(e.algorithm,"options.algorithm");t=y(e.algorithm)}this.rs_alg=t;if(e.sign!==undefined){n.func(e.sign,"options.sign");this.rs_signFunc=e.sign}else if(t[0]==="hmac"&&e.key!==undefined){n.string(e.keyId,"options.keyId");this.rs_keyId=e.keyId;if(typeof e.key!=="string"&&!Buffer.isBuffer(e.key))throw new TypeError("options.key for HMAC must be a string or Buffer");this.rs_signer=i.createHmac(t[1].toUpperCase(),e.key);this.rs_signer.sign=function(){var e=this.digest("base64");return{hashAlgorithm:t[1],toString:function(){return e}}}}else if(e.key!==undefined){var r=e.key;if(typeof r==="string"||Buffer.isBuffer(r))r=a.parsePrivateKey(r);n.ok(a.PrivateKey.isPrivateKey(r,[1,2]),"options.key must be a sshpk.PrivateKey");this.rs_key=r;n.string(e.keyId,"options.keyId");this.rs_keyId=e.keyId;if(!h[r.type]){throw new m(r.type.toUpperCase()+" type "+"keys are not supported")}if(t[0]!==undefined&&r.type!==t[0]){throw new m("options.key must be a "+t[0].toUpperCase()+" key, was given a "+r.type.toUpperCase()+" key instead")}this.rs_signer=r.createSign(t[1])}else{throw new TypeError("options.sign (func) or options.key is required")}this.rs_headers=[];this.rs_lines=[]}RequestSigner.prototype.writeHeader=function(e,t){n.string(e,"header");e=e.toLowerCase();n.string(t,"value");this.rs_headers.push(e);if(this.rs_signFunc){this.rs_lines.push(e+": "+t)}else{var r=e+": "+t;if(this.rs_headers.length>0)r="\n"+r;this.rs_signer.update(r)}return t};RequestSigner.prototype.writeDateHeader=function(){return this.writeHeader("date",u.rfc1123(new Date))};RequestSigner.prototype.writeTarget=function(e,t){n.string(e,"method");n.string(t,"path");e=e.toLowerCase();this.writeHeader("(request-target)",e+" "+t)};RequestSigner.prototype.sign=function(e){n.func(e,"callback");if(this.rs_headers.length<1)throw new Error("At least one header must be signed");var t,r;if(this.rs_signFunc){var i=this.rs_lines.join("\n");var o=this;this.rs_signFunc(i,(function(i,s){if(i){e(i);return}try{n.object(s,"signature");n.string(s.keyId,"signature.keyId");n.string(s.algorithm,"signature.algorithm");n.string(s.signature,"signature.signature");t=y(s.algorithm);r=l(v,s.keyId,s.algorithm,o.rs_headers.join(" "),s.signature)}catch(t){e(t);return}e(null,r)}))}else{try{var s=this.rs_signer.sign()}catch(t){e(t);return}t=(this.rs_alg[0]||this.rs_key.type)+"-"+s.hashAlgorithm;var a=s.toString();r=l(v,this.rs_keyId,t,this.rs_headers.join(" "),a);e(null,r)}};e.exports={isSigner:function(e){if(typeof e==="object"&&e instanceof RequestSigner)return true;return false},createSigner:function createSigner(e){return new RequestSigner(e)},signRequest:function signRequest(e,t){n.object(e,"request");n.object(t,"options");n.optionalString(t.algorithm,"options.algorithm");n.string(t.keyId,"options.keyId");n.optionalArrayOfString(t.headers,"options.headers");n.optionalString(t.httpVersion,"options.httpVersion");if(!e.getHeader("Date"))e.setHeader("Date",u.rfc1123(new Date));if(!t.headers)t.headers=["date"];if(!t.httpVersion)t.httpVersion="1.1";var r=[];if(t.algorithm){t.algorithm=t.algorithm.toLowerCase();r=y(t.algorithm)}var o;var s="";for(o=0;o{var n=r(31258);var i=r(82066);var o=r(73837);var s={sha1:true,sha256:true,sha512:true};var a={rsa:true,dsa:true,ecdsa:true};function HttpSignatureError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,t||HttpSignatureError);this.message=e;this.name=t.name}o.inherits(HttpSignatureError,Error);function InvalidAlgorithmError(e){HttpSignatureError.call(this,e,InvalidAlgorithmError)}o.inherits(InvalidAlgorithmError,HttpSignatureError);function validateAlgorithm(e){var t=e.toLowerCase().split("-");if(t.length!==2){throw new InvalidAlgorithmError(t[0].toUpperCase()+" is not a "+"valid algorithm")}if(t[0]!=="hmac"&&!a[t[0]]){throw new InvalidAlgorithmError(t[0].toUpperCase()+" type keys "+"are not supported")}if(!s[t[1]]){throw new InvalidAlgorithmError(t[1].toUpperCase()+" is not a "+"supported hash algorithm")}return t}e.exports={HASH_ALGOS:s,PK_ALGOS:a,HttpSignatureError:HttpSignatureError,InvalidAlgorithmError:InvalidAlgorithmError,validateAlgorithm:validateAlgorithm,sshKeyToPEM:function sshKeyToPEM(e){n.string(e,"ssh_key");var t=i.parseKey(e,"ssh");return t.toString("pem")},fingerprint:function fingerprint(e){n.string(e,"ssh_key");var t=i.parseKey(e,"ssh");return t.fingerprint("md5").toString("hex")},pemToRsaSSHKey:function pemToRsaSSHKey(e,t){n.equal("string",typeof e,"typeof pem");var r=i.parseKey(e,"pem");r.comment=t;return r.toString("ssh")}}},2692:(e,t,r)=>{var n=r(31258);var i=r(6113);var o=r(82066);var s=r(79933);var a=s.HASH_ALGOS;var u=s.PK_ALGOS;var c=s.InvalidAlgorithmError;var l=s.HttpSignatureError;var d=s.validateAlgorithm;e.exports={verifySignature:function verifySignature(e,t){n.object(e,"parsedSignature");if(typeof t==="string"||Buffer.isBuffer(t))t=o.parseKey(t);n.ok(o.Key.isKey(t,[1,1]),"pubkey must be a sshpk.Key");var r=d(e.algorithm);if(r[0]==="hmac"||r[0]!==t.type)return false;var i=t.createVerify(r[1]);i.update(e.signingString);return i.verify(e.params.signature,"base64")},verifyHMAC:function verifyHMAC(e,t){n.object(e,"parsedHMAC");n.string(t,"secret");var r=d(e.algorithm);if(r[0]!=="hmac")return false;var o=r[1].toUpperCase();var s=i.createHmac(o,t);s.update(e.signingString);var a=i.createHmac(o,t);a.update(s.digest());a=a.digest();var u=i.createHmac(o,t);u.update(new Buffer(e.params.signature,"base64"));u=u.digest();if(typeof a==="string")return a===u;if(Buffer.isBuffer(a)&&!a.equals)return a.toString("binary")===u.toString("binary");return a.equals(u)}}},21225:(e,t,r)=>{try{var n=r(73837);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(53505)}},53505:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},10618:(e,t,r)=>{"use strict";var n=t;var i=r(14300).Buffer;var o=r(22037);n.toBuffer=function(e,t,r){r=~~r;var n;if(this.isV4Format(e)){n=t||new i(r+4);e.split(/\./g).map((function(e){n[r++]=parseInt(e,10)&255}))}else if(this.isV6Format(e)){var o=e.split(":",8);var s;for(s=0;s0;s--){c.push("0")}o.splice.apply(o,c)}n=t||new i(r+16);for(s=0;s>8&255;n[r++]=l&255}}if(!n){throw Error("Invalid ip address: "+e)}return n};n.toString=function(e,t,r){t=~~t;r=r||e.length-t;var n=[];if(r===4){for(var i=0;i32){t="ipv6"}else{t=_normalizeFamily(t)}var r=4;if(t==="ipv6"){r=16}var o=new i(r);for(var s=0,a=o.length;s>u)&255}return n.toString(o)};n.mask=function(e,t){e=n.toBuffer(e);t=n.toBuffer(t);var r=new i(Math.max(e.length,t.length));var o=0;if(e.length===t.length){for(o=0;oe.length){i=t;o=e}var s=i.length-o.length;for(var r=s;r>>0};n.fromLong=function(e){return(e>>>24)+"."+(e>>16&255)+"."+(e>>8&255)+"."+(e&255)}},87606:e=>{"use strict";var t=Function.prototype.toString;var r=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply;var n;var i;if(typeof r==="function"&&typeof Object.defineProperty==="function"){try{n=Object.defineProperty({},"length",{get:function(){throw i}});i={};r((function(){throw 42}),null,n)}catch(e){if(e!==i){r=null}}}else{r=null}var o=/^\s*class\b/;var s=function isES6ClassFunction(e){try{var r=t.call(e);return o.test(r)}catch(e){return false}};var a=function tryFunctionToStr(e){try{if(s(e)){return false}t.call(e);return true}catch(e){return false}};var u=Object.prototype.toString;var c="[object Function]";var l="[object GeneratorFunction]";var d=typeof Symbol==="function"&&!!Symbol.toStringTag;var h=typeof document==="object"&&typeof document.all==="undefined"&&document.all!==undefined?document.all:{};e.exports=r?function isCallable(e){if(e===h){return true}if(!e){return false}if(typeof e!=="function"&&typeof e!=="object"){return false}if(typeof e==="function"&&!e.prototype){return true}try{r(e,null,n)}catch(e){if(e!==i){return false}}return!s(e)}:function isCallable(e){if(e===h){return true}if(!e){return false}if(typeof e!=="function"&&typeof e!=="object"){return false}if(typeof e==="function"&&!e.prototype){return true}if(d){return a(e)}if(s(e)){return false}var t=u.call(e);return t===c||t===l}},61711:(e,t,r)=>{"use strict";var n=Date.prototype.getDay;var i=function tryDateGetDayCall(e){try{n.call(e);return true}catch(e){return false}};var o=Object.prototype.toString;var s="[object Date]";var a=r(48742)();e.exports=function isDateObject(e){if(typeof e!=="object"||e===null){return false}return a?i(e):o.call(e)===s}},69802:(e,t,r)=>{"use strict";var n=Object.prototype.toString;var i=r(68388)();if(i){var o=Symbol.prototype.toString;var s=/^Symbol\(.*\)$/;var a=function isRealSymbolObject(e){if(typeof e.valueOf()!=="symbol"){return false}return s.test(o.call(e))};e.exports=function isSymbol(e){if(typeof e==="symbol"){return true}if(n.call(e)!=="[object Symbol]"){return false}try{return a(e)}catch(e){return false}}}else{e.exports=function isSymbol(e){return false&&0}}},99839:e=>{e.exports=isTypedArray;isTypedArray.strict=isStrictTypedArray;isTypedArray.loose=isLooseTypedArray;var t=Object.prototype.toString;var r={"[object Int8Array]":true,"[object Int16Array]":true,"[object Int32Array]":true,"[object Uint8Array]":true,"[object Uint8ClampedArray]":true,"[object Uint16Array]":true,"[object Uint32Array]":true,"[object Float32Array]":true,"[object Float64Array]":true};function isTypedArray(e){return isStrictTypedArray(e)||isLooseTypedArray(e)}function isStrictTypedArray(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function isLooseTypedArray(e){return r[t.call(e)]}},95480:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},62910:(e,t,r)=>{var n=r(12781);function isStream(e){return e instanceof n.Stream}function isReadable(e){return isStream(e)&&typeof e._read=="function"&&typeof e._readableState=="object"}function isWritable(e){return isStream(e)&&typeof e._write=="function"&&typeof e._writableState=="object"}function isDuplex(e){return isReadable(e)&&isWritable(e)}e.exports=isStream;e.exports.isReadable=isReadable;e.exports.isWritable=isWritable;e.exports.isDuplex=isDuplex},79187:function(e,t){(function(){var r;var n=0xdeadbeefcafe;var i=(n&16777215)==15715070;function BigInteger(e,t,r){if(e!=null)if("number"==typeof e)this.fromNumber(e,t,r);else if(t==null&&"string"!=typeof e)this.fromString(e,256);else this.fromString(e,t)}function nbi(){return new BigInteger(null)}function am1(e,t,r,n,i,o){while(--o>=0){var s=t*this[e++]+r[n]+i;i=Math.floor(s/67108864);r[n++]=s&67108863}return i}function am2(e,t,r,n,i,o){var s=t&32767,a=t>>15;while(--o>=0){var u=this[e]&32767;var c=this[e++]>>15;var l=a*u+c*s;u=s*u+((l&32767)<<15)+r[n]+(i&1073741823);i=(u>>>30)+(l>>>15)+a*c+(i>>>30);r[n++]=u&1073741823}return i}function am3(e,t,r,n,i,o){var s=t&16383,a=t>>14;while(--o>=0){var u=this[e]&16383;var c=this[e++]>>14;var l=a*u+c*s;u=s*u+((l&16383)<<14)+r[n]+i;i=(u>>28)+(l>>14)+a*c;r[n++]=u&268435455}return i}var o=typeof navigator!=="undefined";if(o&&i&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;r=30}else if(o&&i&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;r=26}else{BigInteger.prototype.am=am3;r=28}BigInteger.prototype.DB=r;BigInteger.prototype.DM=(1<=0;--t)e[t]=this[t];e.t=this.t;e.s=this.s}function bnpFromInt(e){this.t=1;this.s=e<0?-1:0;if(e>0)this[0]=e;else if(e<-1)this[0]=e+this.DV;else this.t=0}function nbv(e){var t=nbi();t.fromInt(e);return t}function bnpFromString(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0;this.s=0;var n=e.length,i=false,o=0;while(--n>=0){var s=r==8?e[n]&255:intAt(e,n);if(s<0){if(e.charAt(n)=="-")i=true;continue}i=false;if(o==0)this[this.t++]=s;else if(o+r>this.DB){this[this.t-1]|=(s&(1<>this.DB-o}else this[this.t-1]|=s<=this.DB)o-=this.DB}if(r==8&&(e[0]&128)!=0){this.s=-1;if(o>0)this[this.t-1]|=(1<0&&this[this.t-1]==e)--this.t}function bnToString(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<0){if(a>a)>0){i=true;o=int2char(n)}while(s>=0){if(a>(a+=this.DB-t)}else{n=this[s]>>(a-=t)&r;if(a<=0){a+=this.DB;--s}}if(n>0)i=true;if(i)o+=int2char(n)}}return i?o:"0"}function bnNegate(){var e=nbi();BigInteger.ZERO.subTo(this,e);return e}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;t=r-e.t;if(t!=0)return this.s<0?-t:t;while(--r>=0)if((t=this[r]-e[r])!=0)return t;return 0}function nbits(e){var t=1,r;if((r=e>>>16)!=0){e=r;t+=16}if((r=e>>8)!=0){e=r;t+=8}if((r=e>>4)!=0){e=r;t+=4}if((r=e>>2)!=0){e=r;t+=2}if((r=e>>1)!=0){e=r;t+=1}return t}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e;t.s=this.s}function bnpDRShiftTo(e,t){for(var r=e;r=0;--a){t[a+o+1]=this[a]>>n|s;s=(this[a]&i)<=0;--a)t[a]=0;t[o]=s;t.t=this.t+o+1;t.s=this.s;t.clamp()}function bnpRShiftTo(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var n=e%this.DB;var i=this.DB-n;var o=(1<>n;for(var s=r+1;s>n}if(n>0)t[this.t-r-1]|=(this.s&o)<>=this.DB}if(e.t>=this.DB}n+=this.s}else{n+=this.s;while(r>=this.DB}n-=e.s}t.s=n<0?-1:0;if(n<-1)t[r++]=this.DV+n;else if(n>0)t[r++]=n;t.t=r;t.clamp()}function bnpMultiplyTo(e,t){var r=this.abs(),n=e.abs();var i=r.t;t.t=i+n.t;while(--i>=0)t[i]=0;for(i=0;i=0)e[r]=0;for(r=0;r=t.DV){e[r+t.t]-=t.DV;e[r+t.t+1]=1}}if(e.t>0)e[e.t-1]+=t.am(r,t[r],e,2*r,0,1);e.s=0;e.clamp()}function bnpDivRemTo(e,t,r){var n=e.abs();if(n.t<=0)return;var i=this.abs();if(i.t0){n.lShiftTo(u,o);i.lShiftTo(u,r)}else{n.copyTo(o);i.copyTo(r)}var c=o.t;var l=o[c-1];if(l==0)return;var d=l*(1<1?o[c-2]>>this.F2:0);var h=this.FV/d,m=(1<=0){r[r.t++]=1;r.subTo(b,r)}BigInteger.ONE.dlShiftTo(c,b);b.subTo(o,o);while(o.t=0){var _=r[--y]==l?this.DM:Math.floor(r[y]*h+(r[y-1]+g)*m);if((r[y]+=o.am(0,_,r,v,0,c))<_){o.dlShiftTo(v,b);r.subTo(b,r);while(r[y]<--_)r.subTo(b,r)}}if(t!=null){r.drShiftTo(c,t);if(s!=a)BigInteger.ZERO.subTo(t,t)}r.t=c;r.clamp();if(u>0)r.rShiftTo(u,r);if(s<0)BigInteger.ZERO.subTo(r,r)}function bnMod(e){var t=nbi();this.abs().divRemTo(e,null,t);if(this.s<0&&t.compareTo(BigInteger.ZERO)>0)e.subTo(t,t);return t}function Classic(e){this.m=e}function cConvert(e){if(e.s<0||e.compareTo(this.m)>=0)return e.mod(this.m);else return e}function cRevert(e){return e}function cReduce(e){e.divRemTo(this.m,null,e)}function cMulTo(e,t,r){e.multiplyTo(t,r);this.reduce(r)}function cSqrTo(e,t){e.squareTo(t);this.reduce(t)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var t=e&3;t=t*(2-(e&15)*t)&15;t=t*(2-(e&255)*t)&255;t=t*(2-((e&65535)*t&65535))&65535;t=t*(2-e*t%this.DV)%this.DV;return t>0?this.DV-t:-t}function Montgomery(e){this.m=e;this.mp=e.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(t,t);return t}function montRevert(e){var t=nbi();e.copyTo(t);this.reduce(t);return t}function montReduce(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;r=t+this.m.t;e[r]+=this.m.am(0,n,e,t,0,this.m.t);while(e[r]>=e.DV){e[r]-=e.DV;e[++r]++}}e.clamp();e.drShiftTo(this.m.t,e);if(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function montSqrTo(e,t){e.squareTo(t);this.reduce(t)}function montMulTo(e,t,r){e.multiplyTo(t,r);this.reduce(r)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0}function bnpExp(e,t){if(e>4294967295||e<1)return BigInteger.ONE;var r=nbi(),n=nbi(),i=t.convert(this),o=nbits(e)-1;i.copyTo(r);while(--o>=0){t.sqrTo(r,n);if((e&1<0)t.mulTo(n,i,r);else{var s=r;r=n;n=s}}return t.revert(r)}function bnModPowInt(e,t){var r;if(e<256||t.isEven())r=new Classic(t);else r=new Montgomery(t);return this.exp(e,r)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnClone(){var e=nbi();this.copyTo(e);return e}function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<>24}function bnShortValue(){return this.t==0?this.s:this[0]<<16>>16}function bnpChunkSize(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function bnpToRadix(e){if(e==null)e=10;if(this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e);var r=Math.pow(e,t);var n=nbv(r),i=nbi(),o=nbi(),s="";this.divRemTo(n,i,o);while(i.signum()>0){s=(r+o.intValue()).toString(e).substr(1)+s;i.divRemTo(n,i,o)}return o.intValue().toString(e)+s}function bnpFromRadix(e,t){this.fromInt(0);if(t==null)t=10;var r=this.chunkSize(t);var n=Math.pow(t,r),i=false,o=0,s=0;for(var a=0;a=r){this.dMultiply(n);this.dAddOffset(s,0);o=0;s=0}}if(o>0){this.dMultiply(Math.pow(t,o));this.dAddOffset(s,0)}if(i)BigInteger.ZERO.subTo(this,this)}function bnpFromNumber(e,t,r){if("number"==typeof t){if(e<2)this.fromInt(1);else{this.fromNumber(e,r);if(!this.testBit(e-1))this.bitwiseTo(BigInteger.ONE.shiftLeft(e-1),op_or,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(t)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(BigInteger.ONE.shiftLeft(e-1),this)}}}else{var n=new Array,i=e&7;n.length=(e>>3)+1;t.nextBytes(n);if(i>0)n[0]&=(1<0){if(r>r)!=(this.s&this.DM)>>r)t[i++]=n|this.s<=0){if(r<8){n=(this[e]&(1<>(r+=this.DB-8)}else{n=this[e]>>(r-=8)&255;if(r<=0){r+=this.DB;--e}}if((n&128)!=0)n|=-256;if(i==0&&(this.s&128)!=(n&128))++i;if(i>0||n!=this.s)t[i++]=n}}return t}function bnEquals(e){return this.compareTo(e)==0}function bnMin(e){return this.compareTo(e)<0?this:e}function bnMax(e){return this.compareTo(e)>0?this:e}function bnpBitwiseTo(e,t,r){var n,i,o=Math.min(e.t,this.t);for(n=0;n>=16;t+=16}if((e&255)==0){e>>=8;t+=8}if((e&15)==0){e>>=4;t+=4}if((e&3)==0){e>>=2;t+=2}if((e&1)==0)++t;return t}function bnGetLowestSetBit(){for(var e=0;e=this.t)return this.s!=0;return(this[t]&1<>=this.DB}if(e.t>=this.DB}n+=this.s}else{n+=this.s;while(r>=this.DB}n+=e.s}t.s=n<0?-1:0;if(n>0)t[r++]=n;else if(n<-1)t[r++]=this.DV+n;t.t=r;t.clamp()}function bnAdd(e){var t=nbi();this.addTo(e,t);return t}function bnSubtract(e){var t=nbi();this.subTo(e,t);return t}function bnMultiply(e){var t=nbi();this.multiplyTo(e,t);return t}function bnSquare(){var e=nbi();this.squareTo(e);return e}function bnDivide(e){var t=nbi();this.divRemTo(e,t,null);return t}function bnRemainder(e){var t=nbi();this.divRemTo(e,null,t);return t}function bnDivideAndRemainder(e){var t=nbi(),r=nbi();this.divRemTo(e,t,r);return new Array(t,r)}function bnpDMultiply(e){this[this.t]=this.am(0,e-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(e,t){if(e==0)return;while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV){this[t]-=this.DV;if(++t>=this.t)this[this.t++]=0;++this[t]}}function NullExp(){}function nNop(e){return e}function nMulTo(e,t,r){e.multiplyTo(t,r)}function nSqrTo(e,t){e.squareTo(t)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(e){return this.exp(e,new NullExp)}function bnpMultiplyLowerTo(e,t,r){var n=Math.min(this.t+e.t,t);r.s=0;r.t=n;while(n>0)r[--n]=0;var i;for(i=r.t-this.t;n=0)r[n]=0;for(n=Math.max(t-this.t,0);n2*this.m.t)return e.mod(this.m);else if(e.compareTo(this.m)<0)return e;else{var t=nbi();e.copyTo(t);this.reduce(t);return t}}function barrettRevert(e){return e}function barrettReduce(e){e.drShiftTo(this.m.t-1,this.r2);if(e.t>this.m.t+1){e.t=this.m.t+1;e.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function barrettSqrTo(e,t){e.squareTo(t);this.reduce(t)}function barrettMulTo(e,t,r){e.multiplyTo(t,r);this.reduce(r)}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;function bnModPow(e,t){var r=e.bitLength(),n,i=nbv(1),o;if(r<=0)return i;else if(r<18)n=1;else if(r<48)n=3;else if(r<144)n=4;else if(r<768)n=5;else n=6;if(r<8)o=new Classic(t);else if(t.isEven())o=new Barrett(t);else o=new Montgomery(t);var s=new Array,a=3,u=n-1,c=(1<1){var l=nbi();o.sqrTo(s[1],l);while(a<=c){s[a]=nbi();o.mulTo(l,s[a-2],s[a]);a+=2}}var d=e.t-1,h,m=true,g=nbi(),y;r=nbits(e[d])-1;while(d>=0){if(r>=u)h=e[d]>>r-u&c;else{h=(e[d]&(1<0)h|=e[d-1]>>this.DB+r-u}a=n;while((h&1)==0){h>>=1;--a}if((r-=a)<0){r+=this.DB;--d}if(m){s[h].copyTo(i);m=false}else{while(a>1){o.sqrTo(i,g);o.sqrTo(g,i);a-=2}if(a>0)o.sqrTo(i,g);else{y=i;i=g;g=y}o.mulTo(g,s[h],i)}while(d>=0&&(e[d]&1<0){t.rShiftTo(o,t);r.rShiftTo(o,r)}while(t.signum()>0){if((i=t.getLowestSetBit())>0)t.rShiftTo(i,t);if((i=r.getLowestSetBit())>0)r.rShiftTo(i,r);if(t.compareTo(r)>=0){t.subTo(r,t);t.rShiftTo(1,t)}else{r.subTo(t,r);r.rShiftTo(1,r)}}if(o>0)r.lShiftTo(o,r);return r}function bnpModInt(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this[n])%e;return r}function bnModInverse(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return BigInteger.ZERO;var r=e.clone(),n=this.clone();var i=nbv(1),o=nbv(0),s=nbv(0),a=nbv(1);while(r.signum()!=0){while(r.isEven()){r.rShiftTo(1,r);if(t){if(!i.isEven()||!o.isEven()){i.addTo(this,i);o.subTo(e,o)}i.rShiftTo(1,i)}else if(!o.isEven())o.subTo(e,o);o.rShiftTo(1,o)}while(n.isEven()){n.rShiftTo(1,n);if(t){if(!s.isEven()||!a.isEven()){s.addTo(this,s);a.subTo(e,a)}s.rShiftTo(1,s)}else if(!a.isEven())a.subTo(e,a);a.rShiftTo(1,a)}if(r.compareTo(n)>=0){r.subTo(n,r);if(t)i.subTo(s,i);o.subTo(a,o)}else{n.subTo(r,n);if(t)s.subTo(i,s);a.subTo(o,a)}}if(n.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(a.compareTo(e)>=0)return a.subtract(e);if(a.signum()<0)a.addTo(e,a);else return a;if(a.signum()<0)return a.add(e);else return a}var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var h=(1<<26)/d[d.length-1];function bnIsProbablePrime(e){var t,r=this.abs();if(r.t==1&&r[0]<=d[d.length-1]){for(t=0;t>1;if(e>d.length)e=d.length;var i=nbi();for(var o=0;o>8&255;g[y++]^=e>>16&255;g[y++]^=e>>24&255;if(y>=E)y-=E}function rng_seed_time(){rng_seed_int((new Date).getTime())}if(g==null){g=new Array;y=0;var v;if(typeof window!=="undefined"&&window.crypto){if(window.crypto.getRandomValues){var b=new Uint8Array(32);window.crypto.getRandomValues(b);for(v=0;v<32;++v)g[y++]=b[v]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var _=window.crypto.random(32);for(v=0;v<_.length;++v)g[y++]=_.charCodeAt(v)&255}}while(y>>8;g[y++]=v&255}y=0;rng_seed_time()}function rng_get_byte(){if(m==null){rng_seed_time();m=prng_newstate();m.init(g);for(y=0;y{"use strict";var t=e.exports=function(e,t,r){if(typeof t=="function"){r=t;t={}}r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){};var i=r.post||function(){};_traverse(t,n,i,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,r,n,i,o,s,a,u,c,l){if(i&&typeof i=="object"&&!Array.isArray(i)){r(i,o,s,a,u,c,l);for(var d in i){var h=i[d];if(Array.isArray(h)){if(d in t.arrayKeywords){for(var m=0;mt.maxItems){addError("There must be a maximum of "+t.maxItems+" in the array")}}else if(t.properties||t.additionalProperties){o.concat(checkObj(e,t.properties,r,t.additionalProperties))}if(t.pattern&&typeof e=="string"&&!e.match(t.pattern)){addError("does not match the regex pattern "+t.pattern)}if(t.maxLength&&typeof e=="string"&&e.length>t.maxLength){addError("may only be "+t.maxLength+" characters long")}if(t.minLength&&typeof e=="string"&&e.lengthe){addError("must have a minimum value of "+t.minimum)}if(typeof t.maximum!=="undefined"&&typeof e==typeof t.maximum&&t.maximum{t=e.exports=stringify;t.getSerialize=serializer;function stringify(e,t,r,n){return JSON.stringify(e,serializer(t,n),r)}function serializer(e,t){var r=[],n=[];if(t==null)t=function(e,t){if(r[0]===t)return"[Circular ~]";return"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"};return function(i,o){if(r.length>0){var s=r.indexOf(this);~s?r.splice(s+1):r.push(this);~s?n.splice(s,Infinity,i):n.push(i);if(~r.indexOf(o))o=t.call(this,i,o)}else r.push(o);return e==null?o:e.call(this,i,o)}}},70146:(e,t,r)=>{var n=r(31258);var i=r(73837);var o=r(67619);var s=r(40698);var a=r(82623);t.deepCopy=deepCopy;t.deepEqual=deepEqual;t.isEmpty=isEmpty;t.hasKey=hasKey;t.forEachKey=forEachKey;t.pluck=pluck;t.flattenObject=flattenObject;t.flattenIter=flattenIter;t.validateJsonObject=validateJsonObjectJS;t.validateJsonObjectJS=validateJsonObjectJS;t.randElt=randElt;t.extraProperties=extraProperties;t.mergeObjects=mergeObjects;t.startsWith=startsWith;t.endsWith=endsWith;t.parseInteger=parseInteger;t.iso8601=iso8601;t.rfc1123=rfc1123;t.parseDateTime=parseDateTime;t.hrtimediff=hrtimeDiff;t.hrtimeDiff=hrtimeDiff;t.hrtimeAccum=hrtimeAccum;t.hrtimeAdd=hrtimeAdd;t.hrtimeNanosec=hrtimeNanosec;t.hrtimeMicrosec=hrtimeMicrosec;t.hrtimeMillisec=hrtimeMillisec;function deepCopy(e){var t,r;var n="__deepCopy";if(e&&e[n])throw new Error("attempted deep copy of cyclic object");if(e&&e.constructor==Object){t={};e[n]=true;for(r in e){if(r==n)continue;t[r]=deepCopy(e[r])}delete e[n];return t}if(e&&e.constructor==Array){t=[];e[n]=true;for(r=0;r=0);for(s in e){o=r.slice(0);o.push(s);doFlattenIter(e[s],t-1,o,i)}}function flattenObject(e,t){if(t===0)return[e];n.ok(e!==null);n.equal(typeof e,"object");n.equal(typeof t,"number");n.ok(t>=0);var r=[];var i;for(i in e){flattenObject(e[i],t-1).forEach((function(e){r.push([i].concat(e))}))}return r}function startsWith(e,t){return e.substr(0,t.length)==t}function endsWith(e,t){return e.substr(e.length-t.length,t.length)==t}function iso8601(e){if(typeof e=="number")e=new Date(e);n.ok(e.constructor===Date);return o.sprintf("%4d-%02d-%02dT%02d:%02d:%02d.%03dZ",e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}var u=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function rfc1123(e){return o.sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT",c[e.getUTCDay()],e.getUTCDate(),u[e.getUTCMonth()],e.getUTCFullYear(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function parseDateTime(e){var t=+e;if(!isNaN(t)){return new Date(t)}else{return new Date(e)}}var l=Number.MAX_SAFE_INTEGER||9007199254740991;var d=Number.MIN_SAFE_INTEGER||-9007199254740991;var h={base:10,allowSign:true,allowPrefix:false,allowTrailing:false,allowImprecise:false,trimWhitespace:false,leadingZeroIsOctal:false};var m=48;var g=57;var y=65;var v=66;var b=79;var _=84;var E=88;var k=90;var x=97;var C=98;var O=111;var D=116;var B=120;var P=122;var I=48;var R=55;var N=87;function parseInteger(e,t){n.string(e,"str");n.optionalObject(t,"options");var r=false;var i=h;if(t){r=hasKey(t,"base");i=mergeObjects(i,t);n.number(i.base,"options.base");n.ok(i.base>=2,"options.base >= 2");n.ok(i.base<=36,"options.base <= 36");n.bool(i.allowSign,"options.allowSign");n.bool(i.allowPrefix,"options.allowPrefix");n.bool(i.allowTrailing,"options.allowTrailing");n.bool(i.allowImprecise,"options.allowImprecise");n.bool(i.trimWhitespace,"options.trimWhitespace");n.bool(i.leadingZeroIsOctal,"options.leadingZeroIsOctal");if(i.leadingZeroIsOctal){n.ok(!r,'"base" and "leadingZeroIsOctal" are '+"mutually exclusive")}}var o;var s=-1;var a=i.base;var u;var c=1;var m=0;var g=0;var y=e.length;if(i.trimWhitespace){while(gl||v=m&&e<=g){return e-I}else if(e>=y&&e<=k){return e-R}else if(e>=x&&e<=P){return e-N}else{return-1}}function isSpace(e){return e===32||e>=9&&e<=13||e===160||e===5760||e===6158||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function prefixToBase(e){if(e===C||e===v){return 2}else if(e===O||e===b){return 8}else if(e===D||e===_){return 10}else if(e===B||e===E){return 16}else{return-1}}function validateJsonObjectJS(e,t){var r=a.validate(t,e);if(r.errors.length===0)return null;var n=r.errors[0];var i=n["property"];var o=n["message"].toLowerCase();var u,c;if((u=o.indexOf("the property "))!=-1&&(c=o.indexOf(" is not defined in the schema and the "+"schema does not allow additional properties"))!=-1){u+="the property ".length;if(i==="")i=o.substr(u,c-u);else i=i+"."+o.substr(u,c-u);o="unsupported property"}var l=new s.VError('property "%s": %s',i,o);l.jsv_details=n;return l}function randElt(e){n.ok(Array.isArray(e)&&e.length>0,"randElt argument must be a non-empty array");return e[Math.floor(Math.random()*e.length)]}function assertHrtime(e){n.ok(e[0]>=0&&e[1]>=0,"negative numbers not allowed in hrtimes");n.ok(e[1]<1e9,"nanoseconds column overflow")}function hrtimeDiff(e,t){assertHrtime(e);assertHrtime(t);n.ok(e[0]>t[0]||e[0]==t[0]&&e[1]>=t[1],"negative differences not allowed");var r=[e[0]-t[0],0];if(e[1]>=t[1]){r[1]=e[1]-t[1]}else{r[0]--;r[1]=1e9-(t[1]-e[1])}return r}function hrtimeNanosec(e){assertHrtime(e);return Math.floor(e[0]*1e9+e[1])}function hrtimeMicrosec(e){assertHrtime(e);return Math.floor(e[0]*1e6+e[1]/1e3)}function hrtimeMillisec(e){assertHrtime(e);return Math.floor(e[0]*1e3+e[1]/1e6)}function hrtimeAccum(e,t){assertHrtime(e);assertHrtime(t);e[1]+=t[1];if(e[1]>=1e9){e[0]++;e[1]-=1e9}e[0]+=t[0];return e}function hrtimeAdd(e,t){assertHrtime(e);var r=[e[0],e[1]];return hrtimeAccum(r,t)}function extraProperties(e,t){n.ok(typeof e==="object"&&e!==null,"obj argument must be a non-null object");n.ok(Array.isArray(t),"allowed argument must be an array of strings");for(var r=0;r{"use strict";function Kareem(){this._pres=new Map;this._posts=new Map}Kareem.prototype.execPre=function(e,t,r,n){if(arguments.length===3){n=r;r=[]}var i=get(this._pres,e,[]);var o=i.length;var s=i.numAsync||0;var a=0;var u=s;var c=false;var l=r;if(!o){return process.nextTick((function(){n(null)}))}var next=function(){if(a>=o){return}var e=i[a];if(e.isAsync){var r=[decorateNextFn(_next),decorateNextFn((function(e){if(e){if(c){return}c=true;return n(e)}if(--u===0&&a>=o){return n(null)}}))];callMiddlewareFunction(e.fn,t,r,r[0])}else if(e.fn.length>0){var r=[decorateNextFn(_next)];var s=arguments.length>=2?arguments:[null].concat(l);for(var d=1;d_next()),(e=>_next(e)))}else{if(++a>=o){if(u>0){return}else{return process.nextTick((function(){n(null)}))}}next()}}};next.apply(null,[null].concat(r));function _next(e){if(e){if(c){return}c=true;return n(e)}if(++a>=o){if(u>0){return}else{return n(null)}}next.apply(t,arguments)}};Kareem.prototype.execPreSync=function(e,t,r){var n=get(this._pres,e,[]);var i=n.length;for(var o=0;o=s){return i.call(null,u)}next()}));callMiddlewareFunction(e,t,[u].concat(l).concat([h]),h)}else{if(++a>=s){return i.call(null,u)}next()}}else{const o=decorateNextFn((function(e){if(e){u=e;return next()}if(++a>=s){return i.apply(null,[null].concat(r))}next()}));if(e.length===n+2){if(++a>=s){return i.apply(null,[null].concat(r))}return next()}if(e.length===n+1){callMiddlewareFunction(e,t,l.concat([o]),o)}else{let n;let c;try{c=e.apply(t,l)}catch(e){n=e;u=e}if(isPromise(c)){return c.then((()=>o()),(e=>o(e)))}if(++a>=s){return i.apply(null,[n].concat(r))}next(n)}}};next()};Kareem.prototype.execPostSync=function(e,t,r){const n=get(this._posts,e,[]);const i=n.length;for(let e=0;e0?n[n.length-1]:null;const s=typeof o==="function"?n.slice(0,n.length-1):n;const a=this;i=i||{};const u=i.checkForPromise;this.execPre(e,r,n,(function(s){if(s){const t=i.numCallbackParams||0;const n=i.contextParameter?[r]:[];for(var c=n.length;c_cb(null,e)),(e=>_cb(e)))}if(dObject.assign({},e,{name:n}))).filter(e);if(r.length===0){t._pres.delete(n);continue}r.numAsync=r.filter((e=>e.isAsync)).length;t._pres.set(n,r)}const n=Array.from(t._posts.keys());for(const r of n){const n=this._posts.get(r).map((e=>Object.assign({},e,{name:r}))).filter(e);if(n.length===0){t._posts.delete(r);continue}t._posts.set(r,n)}return t};Kareem.prototype.hasHooks=function(e){return this._pres.has(e)||this._posts.has(e)};Kareem.prototype.createWrapper=function(e,t,r,n){var i=this;if(!this.hasHooks(e)){return function(){process.nextTick((()=>t.apply(this,arguments)))}}return function(){var o=r||this;var s=Array.prototype.slice.call(arguments);i.wrap(e,t,o,s,n)}};Kareem.prototype.pre=function(e,t,r,n,i){let o={};if(typeof t==="object"&&t!=null){o=t;t=o.isAsync}else if(typeof arguments[1]!=="boolean"){n=r;r=t;t=false}const s=get(this._pres,e,[]);this._pres.set(e,s);if(t){s.numAsync=s.numAsync||0;++s.numAsync}if(typeof r!=="function"){throw new Error('pre() requires a function, got "'+typeof r+'"')}if(i){s.unshift(Object.assign({},o,{fn:r,isAsync:t}))}else{s.push(Object.assign({},o,{fn:r,isAsync:t}))}return this};Kareem.prototype.post=function(e,t,r,n){const i=get(this._posts,e,[]);if(typeof t==="function"){n=!!r;r=t;t={}}if(typeof r!=="function"){throw new Error('post() requires a function, got "'+typeof r+'"')}if(n){i.unshift(Object.assign({},t,{fn:r}))}else{i.push(Object.assign({},t,{fn:r}))}this._posts.set(e,i);return this};Kareem.prototype.clone=function(){const e=new Kareem;for(let t of this._pres.keys()){const r=this._pres.get(t).slice();r.numAsync=this._pres.get(t).numAsync;e._pres.set(t,r)}for(let t of this._posts.keys()){e._posts.set(t,this._posts.get(t).slice())}return e};Kareem.prototype.merge=function(e,t){t=arguments.length===1?true:t;var r=t?this.clone():this;for(let t of e._pres.keys()){const n=get(r._pres,t,[]);const i=e._pres.get(t).filter((e=>n.map((e=>e.fn)).indexOf(e.fn)===-1));const o=n.concat(i);o.numAsync=n.numAsync||0;o.numAsync+=i.filter((e=>e.isAsync)).length;r._pres.set(t,o)}for(let t of e._posts.keys()){const n=get(r._posts,t,[]);const i=e._posts.get(t).filter((e=>n.indexOf(e)===-1));r._posts.set(t,n.concat(i))}return r};function get(e,t,r){if(e.has(t)){return e.get(t)}return r}function callMiddlewareFunction(e,t,r,n){let i;try{i=e.apply(t,r)}catch(e){return n(e)}if(isPromise(i)){i.then((()=>n()),(e=>n(e)))}}function isPromise(e){return e!=null&&typeof e.then==="function"}function decorateNextFn(e){var t=false;var r=this;return function(){if(t){return}t=true;return process.nextTick((()=>e.apply(r,arguments)))}}e.exports=Kareem},30314:(e,t,r)=>{var n=r(42183);var i=n.Symbol;e.exports=i},60407:(e,t,r)=>{var n=r(30314),i=r(56221),o=r(5374);var s="[object Null]",a="[object Undefined]";var u=n?n.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?a:s}return u&&u in Object(e)?i(e):o(e)}e.exports=baseGetTag},62789:e=>{var t=typeof global=="object"&&global&&global.Object===Object&&global;e.exports=t},56221:(e,t,r)=>{var n=r(30314);var i=Object.prototype;var o=i.hasOwnProperty;var s=i.toString;var a=n?n.toStringTag:undefined;function getRawTag(e){var t=o.call(e,a),r=e[a];try{e[a]=undefined;var n=true}catch(e){}var i=s.call(e);if(n){if(t){e[a]=r}else{delete e[a]}}return i}e.exports=getRawTag},5374:e=>{var t=Object.prototype;var r=t.toString;function objectToString(e){return r.call(e)}e.exports=objectToString},42183:(e,t,r)=>{var n=r(62789);var i=typeof self=="object"&&self&&self.Object===Object&&self;var o=n||i||Function("return this")();e.exports=o},70112:e=>{var t=Array.isArray;e.exports=t},46123:(e,t,r)=>{var n=r(60407),i=r(14058);var o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",u="[object Proxy]";function isFunction(e){if(!i(e)){return false}var t=n(e);return t==s||t==a||t==o||t==u}e.exports=isFunction},14058:e=>{function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=isObject},88193:e=>{function isObjectLike(e){return e!=null&&typeof e=="object"}e.exports=isObjectLike},79639:(e,t,r)=>{var n=r(60407),i=r(70112),o=r(88193);var s="[object String]";function isString(e){return typeof e=="string"||!i(e)&&o(e)&&n(e)==s}e.exports=isString},68537:e=>{function isUndefined(e){return e===undefined}e.exports=isUndefined},43157:e=>{e.exports=Pager;function Pager(e,t){if(!(this instanceof Pager))return new Pager(e,t);this.length=0;this.updates=[];this.path=new Uint16Array(4);this.pages=new Array(32768);this.maxPages=this.pages.length;this.level=0;this.pageSize=e||1024;this.deduplicate=t?t.deduplicate:null;this.zeros=this.deduplicate?alloc(this.deduplicate.length):null}Pager.prototype.updated=function(e){while(this.deduplicate&&e.buffer[e.deduplicate]===this.deduplicate[e.deduplicate]){e.deduplicate++;if(e.deduplicate===this.deduplicate.length){e.deduplicate=0;if(e.buffer.equals&&e.buffer.equals(this.deduplicate))e.buffer=this.deduplicate;break}}if(e.updated||!this.updates)return;e.updated=true;this.updates.push(e)};Pager.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var e=this.updates.pop();e.updated=false;return e};Pager.prototype._array=function(e,t){if(e>=this.maxPages){if(t)return;grow(this,e)}factor(e,this.path);var r=this.pages;for(var n=this.level;n>0;n--){var i=this.path[n];var o=r[i];if(!o){if(t)return;o=r[i]=new Array(32768)}r=o}return r};Pager.prototype.get=function(e,t){var r=this._array(e,t);var n=this.path[0];var i=r&&r[n];if(!i&&!t){i=r[n]=new Page(e,alloc(this.pageSize));if(e>=this.length)this.length=e+1}if(i&&i.buffer===this.deduplicate&&this.deduplicate&&!t){i.buffer=copy(i.buffer);i.deduplicate=0}return i};Pager.prototype.set=function(e,t){var r=this._array(e,false);var n=this.path[0];if(e>=this.length)this.length=e+1;if(!t||this.zeros&&t.equals&&t.equals(this.zeros)){r[n]=undefined;return}if(this.deduplicate&&t.equals&&t.equals(this.deduplicate)){t=this.deduplicate}var i=r[n];var o=truncate(t,this.pageSize);if(i)i.buffer=o;else r[n]=new Page(e,o)};Pager.prototype.toBuffer=function(){var e=new Array(this.length);var t=alloc(this.pageSize);var r=0;while(rt)return e.slice(0,t);var r=alloc(t);e.copy(r);return r}function alloc(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);t.fill(0);return t}function copy(e){var t=Buffer.allocUnsafe?Buffer.allocUnsafe(e.length):new Buffer(e.length);e.copy(t);return t}function Page(e,t){this.offset=e*t.length;this.buffer=t;this.updated=false;this.deduplicate=0}function factor(e,t){e=(e-(t[0]=e&32767))/32768;e=(e-(t[1]=e&32767))/32768;t[3]=(e-(t[2]=e&32767))/32768&32767}},81029:(e,t,r)=>{ /*! * mime-db * Copyright(c) 2014 Jonathan Ong * MIT Licensed */ e.exports=r(53765)},45509:(e,t,r)=>{"use strict"; /*! * mime-types * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */var n=r(81029);var i=r(71017).extname;var o=/^\s*([^;\s]*)(?:;|\s|$)/;var s=/^text\//i;t.charset=charset;t.charsets={lookup:charset};t.contentType=contentType;t.extension=extension;t.extensions=Object.create(null);t.lookup=lookup;t.types=Object.create(null);populateMaps(t.extensions,t.types);function charset(e){if(!e||typeof e!=="string"){return false}var t=o.exec(e);var r=t&&n[t[1].toLowerCase()];if(r&&r.charset){return r.charset}if(t&&s.test(t[1])){return"UTF-8"}return false}function contentType(e){if(!e||typeof e!=="string"){return false}var r=e.indexOf("/")===-1?t.lookup(e):e;if(!r){return false}if(r.indexOf("charset")===-1){var n=t.charset(r);if(n)r+="; charset="+n.toLowerCase()}return r}function extension(e){if(!e||typeof e!=="string"){return false}var r=o.exec(e);var n=r&&t.extensions[r[1].toLowerCase()];if(!n||!n.length){return false}return n[0]}function lookup(e){if(!e||typeof e!=="string"){return false}var r=i("x."+e).toLowerCase().substr(1);if(!r){return false}return t.types[r]||false}function populateMaps(e,t){var r=["nginx","apache",undefined,"iana"];Object.keys(n).forEach((function forEachMimeType(i){var o=n[i];var s=o.extensions;if(!s||!s.length){return}e[i]=s;for(var a=0;al||c===l&&t[u].substr(0,12)==="application/")){continue}}t[u]=i}}))}},96709:(e,t,r)=>{var n=r(71017);var i=r(57147);function Mime(){this.types=Object.create(null);this.extensions=Object.create(null)}Mime.prototype.define=function(e){for(var t in e){var r=e[t];for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CommaAndColonSeparatedRecord=t.redactConnectionString=void 0;const n=r(68145);const i=r(33262);Object.defineProperty(t,"redactConnectionString",{enumerable:true,get:function(){return i.redactConnectionString}});const o="__this_is_a_placeholder__";function connectionStringHasValidScheme(e){return e.startsWith("mongodb://")||e.startsWith("mongodb+srv://")}const s=new RegExp(String.raw`^(?mongodb(?:\+srv|)):\/\/(?:(?[^:]*)(?::(?[^@]*))?@)?(?(?!:)[^\/?@]*)(?.*)`);class CaseInsensitiveMap extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys()){if(t.toLowerCase()===e.toLowerCase()){e=t;break}}return e}}function caseInsenstiveURLSearchParams(e){return class CaseInsenstiveURLSearchParams extends e{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return CaseInsensitiveMap.prototype._normalizeKey.call(this,e)}}}class URLWithoutHost extends n.URL{}class MongoParseError extends Error{get name(){return"MongoParseError"}}class ConnectionString extends URLWithoutHost{constructor(e){var t;if(!connectionStringHasValidScheme(e)){throw new MongoParseError('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"')}const r=e.match(s);if(!r){throw new MongoParseError(`Invalid connection string "${e}"`)}const{protocol:n,username:i,password:a,hosts:u,rest:c}=(t=r.groups)!==null&&t!==void 0?t:{};if(!n||!u){throw new MongoParseError(`Protocol and host list are required in "${e}"`)}try{decodeURIComponent(i!==null&&i!==void 0?i:"");decodeURIComponent(a!==null&&a!==void 0?a:"")}catch(e){throw new MongoParseError(e.message)}const l=new RegExp(String.raw`[:/?#\[\]@]`,"gi");if(i===null||i===void 0?void 0:i.match(l)){throw new MongoParseError(`Username contains unescaped characters ${i}`)}if(!i||!a){const t=e.replace(`${n}://`,"");if(t.startsWith("@")||t.startsWith(":")){throw new MongoParseError("URI contained empty userinfo section")}}if(a===null||a===void 0?void 0:a.match(l)){throw new MongoParseError("Password contains unescaped characters")}let d="";if(typeof i==="string")d+=i;if(typeof a==="string")d+=`:${a}`;if(d)d+="@";super(`${n.toLowerCase()}://${d}${o}${c}`);this._hosts=u.split(",");if(this.isSRV&&this.hosts.length!==1){throw new MongoParseError("mongodb+srv URI cannot have multiple service names")}if(this.isSRV&&this.hosts.some((e=>e.includes(":")))){throw new MongoParseError("mongodb+srv URI cannot have port number")}if(!this.pathname){this.pathname="/"}Object.setPrototypeOf(this.searchParams,caseInsenstiveURLSearchParams(this.searchParams.constructor).prototype)}get host(){return o}set host(e){throw new Error("No single host for connection string")}get hostname(){return o}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(o,this.hosts.join(","))}clone(){return new ConnectionString(this.toString())}redact(e){return(0,i.redactValidConnectionString)(this,e)}typedSearchParams(){const e=false&&0;return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:r,username:n,password:i,hosts:o,pathname:s,search:a,searchParams:u,hash:c}=this;return{href:e,origin:t,protocol:r,username:n,password:i,hosts:o,pathname:s,search:a,searchParams:u,hash:c}}}t["default"]=ConnectionString;class CommaAndColonSeparatedRecord extends CaseInsensitiveMap{constructor(e){super();for(const t of(e!==null&&e!==void 0?e:"").split(",")){if(!t)continue;const e=t.indexOf(":");if(e===-1){this.set(t,"")}else{this.set(t.slice(0,e),t.slice(e+1))}}}toString(){return[...this].map((e=>e.join(":"))).join(",")}}t.CommaAndColonSeparatedRecord=CommaAndColonSeparatedRecord},33262:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.redactConnectionString=t.redactValidConnectionString=void 0;const s=o(r(61090));function redactValidConnectionString(e,t){var r,n;const i=e.clone();const o=(r=t===null||t===void 0?void 0:t.replacementString)!==null&&r!==void 0?r:"_credentials_";const a=(n=t===null||t===void 0?void 0:t.redactUsernames)!==null&&n!==void 0?n:true;if((i.username||i.password)&&a){i.username=o;i.password=""}else if(i.password){i.password=o}if(i.searchParams.has("authMechanismProperties")){const e=new s.CommaAndColonSeparatedRecord(i.searchParams.get("authMechanismProperties"));if(e.get("AWS_SESSION_TOKEN")){e.set("AWS_SESSION_TOKEN",o);i.searchParams.set("authMechanismProperties",e.toString())}}if(i.searchParams.has("tlsCertificateKeyFilePassword")){i.searchParams.set("tlsCertificateKeyFilePassword",o)}if(i.searchParams.has("proxyUsername")&&a){i.searchParams.set("proxyUsername",o)}if(i.searchParams.has("proxyPassword")){i.searchParams.set("proxyPassword",o)}return i}t.redactValidConnectionString=redactValidConnectionString;function redactConnectionString(e,t){var r,n;const i=(r=t===null||t===void 0?void 0:t.replacementString)!==null&&r!==void 0?r:"";const o=(n=t===null||t===void 0?void 0:t.redactUsernames)!==null&&n!==void 0?n:true;let a;try{a=new s.default(e)}catch(e){}if(a){t={...t,replacementString:"___credentials___"};return a.redact(t).toString().replace(/___credentials___/g,i)}const u=[o?/(?<=\/\/)(.*)(?=@)/g:/(?<=\/\/[^@]+:)(.*)(?=@)/g,/(?<=AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,/(?<=tlsCertificateKeyFilePassword=)([^&]+)/gi,o?/(?<=proxyUsername=)([^&]+)/gi:null,/(?<=proxyPassword=)([^&]+)/gi];for(const t of u){if(t!==null){e=e.replace(t,i)}}return e}t.redactConnectionString=redactConnectionString},63189:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Admin=void 0;const n=r(95381);const i=r(91082);const o=r(65293);const s=r(13328);const a=r(3524);const u=r(10537);const c=r(3332);class Admin{constructor(e){this.s={db:e}}command(e,t,r){if(typeof t==="function")r=t,t={};t=Object.assign({dbName:"admin"},t);return(0,i.executeOperation)((0,c.getTopology)(this.s.db),new a.RunCommandOperation(this.s.db,e,t),r)}buildInfo(e,t){if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};return this.command({buildinfo:1},e,t)}serverInfo(e,t){if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};return this.command({buildinfo:1},e,t)}serverStatus(e,t){if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};return this.command({serverStatus:1},e,t)}ping(e,t){if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};return this.command({ping:1},e,t)}addUser(e,t,r,o){if(typeof t==="function"){o=t,t=undefined,r={}}else if(typeof t!=="string"){if(typeof r==="function"){o=r,r=t,t=undefined}else{r=t,o=undefined,t=undefined}}else{if(typeof r==="function")o=r,r={}}r=Object.assign({dbName:"admin"},r);return(0,i.executeOperation)((0,c.getTopology)(this.s.db),new n.AddUserOperation(this.s.db,e,t,r),o)}removeUser(e,t,r){if(typeof t==="function")r=t,t={};t=Object.assign({dbName:"admin"},t);return(0,i.executeOperation)((0,c.getTopology)(this.s.db),new s.RemoveUserOperation(this.s.db,e,t),r)}validateCollection(e,t,r){if(typeof t==="function")r=t,t={};t=t!==null&&t!==void 0?t:{};return(0,i.executeOperation)((0,c.getTopology)(this.s.db),new u.ValidateCollectionOperation(this,e,t),r)}listDatabases(e,t){if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};return(0,i.executeOperation)((0,c.getTopology)(this.s.db),new o.ListDatabasesOperation(this.s.db,e),t)}replSetGetStatus(e,t){if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};return this.command({replSetGetStatus:1},e,t)}}t.Admin=Admin},85539:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveBSONOptions=t.pluckBSONSerializeOptions=t.Timestamp=t.ObjectId=t.MinKey=t.MaxKey=t.Map=t.Long=t.Int32=t.Double=t.Decimal128=t.DBRef=t.Code=t.BSONSymbol=t.BSONRegExp=t.Binary=t.calculateObjectSize=t.serialize=t.deserialize=void 0;let n=r(61528);try{n=r(12375)}catch{}t.deserialize=n.deserialize;t.serialize=n.serialize;t.calculateObjectSize=n.calculateObjectSize;var i=r(61528);Object.defineProperty(t,"Binary",{enumerable:true,get:function(){return i.Binary}});Object.defineProperty(t,"BSONRegExp",{enumerable:true,get:function(){return i.BSONRegExp}});Object.defineProperty(t,"BSONSymbol",{enumerable:true,get:function(){return i.BSONSymbol}});Object.defineProperty(t,"Code",{enumerable:true,get:function(){return i.Code}});Object.defineProperty(t,"DBRef",{enumerable:true,get:function(){return i.DBRef}});Object.defineProperty(t,"Decimal128",{enumerable:true,get:function(){return i.Decimal128}});Object.defineProperty(t,"Double",{enumerable:true,get:function(){return i.Double}});Object.defineProperty(t,"Int32",{enumerable:true,get:function(){return i.Int32}});Object.defineProperty(t,"Long",{enumerable:true,get:function(){return i.Long}});Object.defineProperty(t,"Map",{enumerable:true,get:function(){return i.Map}});Object.defineProperty(t,"MaxKey",{enumerable:true,get:function(){return i.MaxKey}});Object.defineProperty(t,"MinKey",{enumerable:true,get:function(){return i.MinKey}});Object.defineProperty(t,"ObjectId",{enumerable:true,get:function(){return i.ObjectId}});Object.defineProperty(t,"Timestamp",{enumerable:true,get:function(){return i.Timestamp}});function pluckBSONSerializeOptions(e){const{fieldsAsRaw:t,promoteValues:r,promoteBuffers:n,promoteLongs:i,serializeFunctions:o,ignoreUndefined:s,bsonRegExp:a,raw:u,enableUtf8Validation:c}=e;return{fieldsAsRaw:t,promoteValues:r,promoteBuffers:n,promoteLongs:i,serializeFunctions:o,ignoreUndefined:s,bsonRegExp:a,raw:u,enableUtf8Validation:c}}t.pluckBSONSerializeOptions=pluckBSONSerializeOptions;function resolveBSONOptions(e,t){var r,n,i,o,s,a,u,c,l,d,h,m,g,y,v,b,_,E;const k=t===null||t===void 0?void 0:t.bsonOptions;return{raw:(n=(r=e===null||e===void 0?void 0:e.raw)!==null&&r!==void 0?r:k===null||k===void 0?void 0:k.raw)!==null&&n!==void 0?n:false,promoteLongs:(o=(i=e===null||e===void 0?void 0:e.promoteLongs)!==null&&i!==void 0?i:k===null||k===void 0?void 0:k.promoteLongs)!==null&&o!==void 0?o:true,promoteValues:(a=(s=e===null||e===void 0?void 0:e.promoteValues)!==null&&s!==void 0?s:k===null||k===void 0?void 0:k.promoteValues)!==null&&a!==void 0?a:true,promoteBuffers:(c=(u=e===null||e===void 0?void 0:e.promoteBuffers)!==null&&u!==void 0?u:k===null||k===void 0?void 0:k.promoteBuffers)!==null&&c!==void 0?c:false,ignoreUndefined:(d=(l=e===null||e===void 0?void 0:e.ignoreUndefined)!==null&&l!==void 0?l:k===null||k===void 0?void 0:k.ignoreUndefined)!==null&&d!==void 0?d:false,bsonRegExp:(m=(h=e===null||e===void 0?void 0:e.bsonRegExp)!==null&&h!==void 0?h:k===null||k===void 0?void 0:k.bsonRegExp)!==null&&m!==void 0?m:false,serializeFunctions:(y=(g=e===null||e===void 0?void 0:e.serializeFunctions)!==null&&g!==void 0?g:k===null||k===void 0?void 0:k.serializeFunctions)!==null&&y!==void 0?y:false,fieldsAsRaw:(b=(v=e===null||e===void 0?void 0:e.fieldsAsRaw)!==null&&v!==void 0?v:k===null||k===void 0?void 0:k.fieldsAsRaw)!==null&&b!==void 0?b:{},enableUtf8Validation:(E=(_=e===null||e===void 0?void 0:e.enableUtf8Validation)!==null&&_!==void 0?_:k===null||k===void 0?void 0:k.enableUtf8Validation)!==null&&E!==void 0?E:true}}t.resolveBSONOptions=resolveBSONOptions},81797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BulkOperationBase=t.FindOperators=t.MongoBulkWriteError=t.mergeBatchResults=t.WriteError=t.WriteConcernError=t.BulkWriteResult=t.Batch=t.BatchType=void 0;const n=r(85539);const i=r(95544);const o=r(52933);const s=r(91082);const a=r(41075);const u=r(4292);const c=r(44912);const l=r(3332);const d=r(31942);const h=Symbol("serverError");t.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3});class Batch{constructor(e,t){this.originalZeroIndex=t;this.currentIndex=0;this.originalIndexes=[];this.batchType=e;this.operations=[];this.size=0;this.sizeBytes=0}}t.Batch=Batch;class BulkWriteResult{constructor(e){this.result=e}get insertedCount(){var e;return(e=this.result.nInserted)!==null&&e!==void 0?e:0}get matchedCount(){var e;return(e=this.result.nMatched)!==null&&e!==void 0?e:0}get modifiedCount(){var e;return(e=this.result.nModified)!==null&&e!==void 0?e:0}get deletedCount(){var e;return(e=this.result.nRemoved)!==null&&e!==void 0?e:0}get upsertedCount(){var e;return(e=this.result.upserted.length)!==null&&e!==void 0?e:0}get upsertedIds(){var e;const t={};for(const r of(e=this.result.upserted)!==null&&e!==void 0?e:[]){t[r.index]=r._id}return t}get insertedIds(){var e;const t={};for(const r of(e=this.result.insertedIds)!==null&&e!==void 0?e:[]){t[r.index]=r._id}return t}get ok(){return this.result.ok}get nInserted(){return this.result.nInserted}get nUpserted(){return this.result.nUpserted}get nMatched(){return this.result.nMatched}get nModified(){return this.result.nModified}get nRemoved(){return this.result.nRemoved}getInsertedIds(){return this.result.insertedIds}getUpsertedIds(){return this.result.upserted}getUpsertedIdAt(e){return this.result.upserted[e]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(e){if(ee.multi))}if(isDeleteBatch(n)){c.retryWrites=c.retryWrites&&!n.operations.some((e=>e.limit===0))}}try{if(isInsertBatch(n)){(0,s.executeOperation)(e.s.topology,new a.InsertOperation(e.s.namespace,n.operations,c),resultHandler)}else if(isUpdateBatch(n)){(0,s.executeOperation)(e.s.topology,new u.UpdateOperation(e.s.namespace,n.operations,c),resultHandler)}else if(isDeleteBatch(n)){(0,s.executeOperation)(e.s.topology,new o.DeleteOperation(e.s.namespace,n.operations,c),resultHandler)}}catch(t){t.ok=0;mergeBatchResults(n,e.s.bulkResult,t,undefined);r()}}function handleMongoWriteConcernError(e,t,r,n){var i,o;mergeBatchResults(e,t,undefined,r.result);n(new MongoBulkWriteError({message:(i=r.result)===null||i===void 0?void 0:i.writeConcernError.errmsg,code:(o=r.result)===null||o===void 0?void 0:o.writeConcernError.result},new BulkWriteResult(t)))}class MongoBulkWriteError extends i.MongoServerError{constructor(e,t){var r;super(e);this.writeErrors=[];if(e instanceof WriteConcernError)this.err=e;else if(!(e instanceof Error)){this.message=e.message;this.code=e.code;this.writeErrors=(r=e.writeErrors)!==null&&r!==void 0?r:[]}this.result=t;Object.assign(this,e)}get name(){return"MongoBulkWriteError"}get insertedCount(){return this.result.insertedCount}get matchedCount(){return this.result.matchedCount}get modifiedCount(){return this.result.modifiedCount}get deletedCount(){return this.result.deletedCount}get upsertedCount(){return this.result.upsertedCount}get insertedIds(){return this.result.insertedIds}get upsertedIds(){return this.result.upsertedIds}}t.MongoBulkWriteError=MongoBulkWriteError;class FindOperators{constructor(e){this.bulkOperation=e}update(e){const r=buildCurrentOp(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,u.makeUpdateStatement)(r.selector,e,{...r,multi:true}))}updateOne(e){if(!(0,l.hasAtomicOperators)(e)){throw new i.MongoInvalidArgumentError("Update document requires atomic operators")}const r=buildCurrentOp(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,u.makeUpdateStatement)(r.selector,e,{...r,multi:false}))}replaceOne(e){if((0,l.hasAtomicOperators)(e)){throw new i.MongoInvalidArgumentError("Replacement document must not use atomic operators")}const r=buildCurrentOp(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,u.makeUpdateStatement)(r.selector,e,{...r,multi:false}))}deleteOne(){const e=buildCurrentOp(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.DELETE,(0,o.makeDeleteStatement)(e.selector,{...e,limit:1}))}delete(){const e=buildCurrentOp(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.DELETE,(0,o.makeDeleteStatement)(e.selector,{...e,limit:0}))}upsert(){if(!this.bulkOperation.s.currentOp){this.bulkOperation.s.currentOp={}}this.bulkOperation.s.currentOp.upsert=true;return this}collation(e){if(!this.bulkOperation.s.currentOp){this.bulkOperation.s.currentOp={}}this.bulkOperation.s.currentOp.collation=e;return this}arrayFilters(e){if(!this.bulkOperation.s.currentOp){this.bulkOperation.s.currentOp={}}this.bulkOperation.s.currentOp.arrayFilters=e;return this}}t.FindOperators=FindOperators;class BulkOperationBase{constructor(e,t,r){this.isOrdered=r;const i=(0,l.getTopology)(e);t=t==null?{}:t;const o=e.s.namespace;const s=false;const a=undefined;const u=i.lastHello();const c=!!(i.s.options&&i.s.options.autoEncrypter);const h=u&&u.maxBsonObjectSize?u.maxBsonObjectSize:1024*1024*16;const m=c?1024*1024*2:h;const g=u&&u.maxWriteBatchSize?u.maxWriteBatchSize:1e3;const y=(g-1).toString(10).length+2;let v=Object.assign({},t);v=(0,l.applyRetryableWrites)(v,e.s.db);const b={ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]};this.s={bulkResult:b,currentBatch:undefined,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:undefined,currentUpdateBatch:undefined,currentRemoveBatch:undefined,batches:[],writeConcern:d.WriteConcern.fromOptions(t),maxBsonObjectSize:h,maxBatchSizeBytes:m,maxWriteBatchSize:g,maxKeySize:y,namespace:o,topology:i,options:v,bsonOptions:(0,n.resolveBSONOptions)(t),currentOp:a,executed:s,collection:e,err:undefined,checkKeys:typeof t.checkKeys==="boolean"?t.checkKeys:false};if(t.bypassDocumentValidation===true){this.s.bypassDocumentValidation=true}}insert(e){if(e._id==null&&!shouldForceServerObjectId(this)){e._id=new n.ObjectId}return this.addToOperationsList(t.BatchType.INSERT,e)}find(e){if(!e){throw new i.MongoInvalidArgumentError("Bulk find operation must specify a selector")}this.s.currentOp={selector:e};return new FindOperators(this)}raw(e){if("insertOne"in e){const r=shouldForceServerObjectId(this);if(e.insertOne&&e.insertOne.document==null){if(r!==true&&e.insertOne._id==null){e.insertOne._id=new n.ObjectId}return this.addToOperationsList(t.BatchType.INSERT,e.insertOne)}if(r!==true&&e.insertOne.document._id==null){e.insertOne.document._id=new n.ObjectId}return this.addToOperationsList(t.BatchType.INSERT,e.insertOne.document)}if("replaceOne"in e||"updateOne"in e||"updateMany"in e){if("replaceOne"in e){if("q"in e.replaceOne){throw new i.MongoInvalidArgumentError("Raw operations are not allowed")}const r=(0,u.makeUpdateStatement)(e.replaceOne.filter,e.replaceOne.replacement,{...e.replaceOne,multi:false});if((0,l.hasAtomicOperators)(r.u)){throw new i.MongoInvalidArgumentError("Replacement document must not use atomic operators")}return this.addToOperationsList(t.BatchType.UPDATE,r)}if("updateOne"in e){if("q"in e.updateOne){throw new i.MongoInvalidArgumentError("Raw operations are not allowed")}const r=(0,u.makeUpdateStatement)(e.updateOne.filter,e.updateOne.update,{...e.updateOne,multi:false});if(!(0,l.hasAtomicOperators)(r.u)){throw new i.MongoInvalidArgumentError("Update document requires atomic operators")}return this.addToOperationsList(t.BatchType.UPDATE,r)}if("updateMany"in e){if("q"in e.updateMany){throw new i.MongoInvalidArgumentError("Raw operations are not allowed")}const r=(0,u.makeUpdateStatement)(e.updateMany.filter,e.updateMany.update,{...e.updateMany,multi:true});if(!(0,l.hasAtomicOperators)(r.u)){throw new i.MongoInvalidArgumentError("Update document requires atomic operators")}return this.addToOperationsList(t.BatchType.UPDATE,r)}}if("deleteOne"in e){if("q"in e.deleteOne){throw new i.MongoInvalidArgumentError("Raw operations are not allowed")}return this.addToOperationsList(t.BatchType.DELETE,(0,o.makeDeleteStatement)(e.deleteOne.filter,{...e.deleteOne,limit:1}))}if("deleteMany"in e){if("q"in e.deleteMany){throw new i.MongoInvalidArgumentError("Raw operations are not allowed")}return this.addToOperationsList(t.BatchType.DELETE,(0,o.makeDeleteStatement)(e.deleteMany.filter,{...e.deleteMany,limit:0}))}throw new i.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const e=[...this.s.batches];if(this.isOrdered){if(this.s.currentBatch)e.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)e.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)e.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)e.push(this.s.currentRemoveBatch)}return e}execute(e,t){if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};if(this.s.executed){return handleEarlyError(new i.MongoBatchReExecutionError,t)}const r=d.WriteConcern.fromOptions(e);if(r){this.s.writeConcern=r}if(this.isOrdered){if(this.s.currentBatch)this.s.batches.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)this.s.batches.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)this.s.batches.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)this.s.batches.push(this.s.currentRemoveBatch)}if(this.s.batches.length===0){const e=new i.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");return handleEarlyError(e,t)}this.s.executed=true;const n={...this.s.options,...e};return(0,l.executeLegacyOperation)(this.s.topology,executeCommands,[this,n,t])}handleWriteError(e,t){if(this.s.bulkResult.writeErrors.length>0){const r=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";e(new MongoBulkWriteError({message:r,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},t));return true}const r=t.getWriteConcernError();if(r){e(new MongoBulkWriteError(r,t));return true}}}t.BulkOperationBase=BulkOperationBase;Object.defineProperty(BulkOperationBase.prototype,"length",{enumerable:true,get(){return this.s.currentIndex}});function handleEarlyError(e,t){const r=c.PromiseProvider.get();if(typeof t==="function"){t(e);return}return r.reject(e)}function shouldForceServerObjectId(e){var t,r;if(typeof e.s.options.forceServerObjectId==="boolean"){return e.s.options.forceServerObjectId}if(typeof((t=e.s.collection.s.db.options)===null||t===void 0?void 0:t.forceServerObjectId)==="boolean"){return(r=e.s.collection.s.db.options)===null||r===void 0?void 0:r.forceServerObjectId}return false}function isInsertBatch(e){return e.batchType===t.BatchType.INSERT}function isUpdateBatch(e){return e.batchType===t.BatchType.UPDATE}function isDeleteBatch(e){return e.batchType===t.BatchType.DELETE}function buildCurrentOp(e){let{currentOp:t}=e.s;e.s.currentOp=undefined;if(!t)t={};return t}},5875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OrderedBulkOperation=void 0;const n=r(85539);const i=r(95544);const o=r(81797);class OrderedBulkOperation extends o.BulkOperationBase{constructor(e,t){super(e,t,true)}addToOperationsList(e,t){const r=n.calculateObjectSize(t,{checkKeys:false,ignoreUndefined:false});if(r>=this.s.maxBsonObjectSize)throw new i.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch==null){this.s.currentBatch=new o.Batch(e,this.s.currentIndex)}const s=this.s.maxKeySize;if(this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+s+r>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==e){this.s.batches.push(this.s.currentBatch);this.s.currentBatch=new o.Batch(e,this.s.currentIndex);this.s.currentBatchSize=0;this.s.currentBatchSizeBytes=0}if(e===o.BatchType.INSERT){this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:t._id})}if(Array.isArray(t)){throw new i.MongoInvalidArgumentError("Operation passed in cannot be an Array")}this.s.currentBatch.originalIndexes.push(this.s.currentIndex);this.s.currentBatch.operations.push(t);this.s.currentBatchSize+=1;this.s.currentBatchSizeBytes+=s+r;this.s.currentIndex+=1;return this}}t.OrderedBulkOperation=OrderedBulkOperation},41659:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UnorderedBulkOperation=void 0;const n=r(85539);const i=r(95544);const o=r(81797);class UnorderedBulkOperation extends o.BulkOperationBase{constructor(e,t){super(e,t,false)}handleWriteError(e,t){if(this.s.batches.length){return false}return super.handleWriteError(e,t)}addToOperationsList(e,t){const r=n.calculateObjectSize(t,{checkKeys:false,ignoreUndefined:false});if(r>=this.s.maxBsonObjectSize){throw new i.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`)}this.s.currentBatch=undefined;if(e===o.BatchType.INSERT){this.s.currentBatch=this.s.currentInsertBatch}else if(e===o.BatchType.UPDATE){this.s.currentBatch=this.s.currentUpdateBatch}else if(e===o.BatchType.DELETE){this.s.currentBatch=this.s.currentRemoveBatch}const s=this.s.maxKeySize;if(this.s.currentBatch==null){this.s.currentBatch=new o.Batch(e,this.s.currentIndex)}if(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+s+r>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==e){this.s.batches.push(this.s.currentBatch);this.s.currentBatch=new o.Batch(e,this.s.currentIndex)}if(Array.isArray(t)){throw new i.MongoInvalidArgumentError("Operation passed in cannot be an Array")}this.s.currentBatch.operations.push(t);this.s.currentBatch.originalIndexes.push(this.s.currentIndex);this.s.currentIndex=this.s.currentIndex+1;if(e===o.BatchType.INSERT){this.s.currentInsertBatch=this.s.currentBatch;this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:t._id})}else if(e===o.BatchType.UPDATE){this.s.currentUpdateBatch=this.s.currentBatch}else if(e===o.BatchType.DELETE){this.s.currentRemoveBatch=this.s.currentBatch}this.s.currentBatch.size+=1;this.s.currentBatch.sizeBytes+=s+r;return this}}t.UnorderedBulkOperation=UnorderedBulkOperation},61521:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ChangeStreamCursor=t.ChangeStream=void 0;const n=r(29361);const i=r(63978);const o=r(53734);const s=r(49150);const a=r(95544);const u=r(88135);const c=r(18284);const l=r(86392);const d=r(91082);const h=r(3332);const m=Symbol("resumeQueue");const g=Symbol("cursorStream");const y=Symbol("closed");const v=Symbol("mode");const b=["resumeAfter","startAfter","startAtOperationTime","fullDocument"];const _=["batchSize","maxAwaitTimeMS","collation","readPreference"].concat(b);const E={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")};const k="A change stream document has been received that lacks a resume token (_id).";const x="ChangeStream has no cursor";const C="ChangeStream is closed";class ChangeStream extends c.TypedEventEmitter{constructor(e,t=[],r={}){super();this.pipeline=t;this.options=r;if(e instanceof i.Collection){this.type=E.COLLECTION}else if(e instanceof s.Db){this.type=E.DATABASE}else if(e instanceof u.MongoClient){this.type=E.CLUSTER}else{throw new a.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient")}this.parent=e;this.namespace=e.s.namespace;if(!this.options.readPreference&&e.readPreference){this.options.readPreference=e.readPreference}this[m]=new n;this.cursor=createChangeStreamCursor(this,r);this[y]=false;this[v]=false;this.on("newListener",(e=>{if(e==="change"&&this.cursor&&this.listenerCount("change")===0){streamEvents(this,this.cursor)}}));this.on("removeListener",(e=>{var t;if(e==="change"&&this.listenerCount("change")===0&&this.cursor){(t=this[g])===null||t===void 0?void 0:t.removeAllListeners("data")}}))}get cursorStream(){return this[g]}get resumeToken(){var e;return(e=this.cursor)===null||e===void 0?void 0:e.resumeToken}hasNext(e){setIsIterator(this);return(0,h.maybePromise)(e,(e=>{getCursor(this,((t,r)=>{if(t||!r)return e(t);r.hasNext(e)}))}))}next(e){setIsIterator(this);return(0,h.maybePromise)(e,(e=>{getCursor(this,((t,r)=>{if(t||!r)return e(t);r.next(((t,r)=>{if(t){this[m].push((()=>this.next(e)));processError(this,t,e);return}processNewChange(this,r,e)}))}))}))}get closed(){var e,t;return this[y]||((t=(e=this.cursor)===null||e===void 0?void 0:e.closed)!==null&&t!==void 0?t:false)}close(e){this[y]=true;return(0,h.maybePromise)(e,(e=>{if(!this.cursor){return e()}const t=this.cursor;return t.close((t=>{endStream(this);this.cursor=undefined;return e(t)}))}))}stream(e){this.streamOptions=e;if(!this.cursor)throw new a.MongoChangeStreamError(x);return this.cursor.stream(e)}tryNext(e){setIsIterator(this);return(0,h.maybePromise)(e,(e=>{getCursor(this,((t,r)=>{if(t||!r)return e(t);return r.tryNext(e)}))}))}}t.ChangeStream=ChangeStream;ChangeStream.RESPONSE="response";ChangeStream.MORE="more";ChangeStream.INIT="init";ChangeStream.CLOSE="close";ChangeStream.CHANGE="change";ChangeStream.END="end";ChangeStream.ERROR="error";ChangeStream.RESUME_TOKEN_CHANGED="resumeTokenChanged";class ChangeStreamCursor extends o.AbstractCursor{constructor(e,t,r=[],n={}){super(e,t,n);this.pipeline=r;this.options=n;this._resumeToken=null;this.startAtOperationTime=n.startAtOperationTime;if(n.startAfter){this.resumeToken=n.startAfter}else if(n.resumeAfter){this.resumeToken=n.resumeAfter}}set resumeToken(e){this._resumeToken=e;this.emit(ChangeStream.RESUME_TOKEN_CHANGED,e)}get resumeToken(){return this._resumeToken}get resumeOptions(){const e={};for(const t of _){if(Reflect.has(this.options,t)){Reflect.set(e,t,Reflect.get(this.options,t))}}if(this.resumeToken||this.startAtOperationTime){["resumeAfter","startAfter","startAtOperationTime"].forEach((t=>Reflect.deleteProperty(e,t)));if(this.resumeToken){const t=this.options.startAfter&&!this.hasReceived?"startAfter":"resumeAfter";Reflect.set(e,t,this.resumeToken)}else if(this.startAtOperationTime&&(0,h.maxWireVersion)(this.server)>=7){e.startAtOperationTime=this.startAtOperationTime}}return e}cacheResumeToken(e){if(this.bufferedCount()===0&&this.postBatchResumeToken){this.resumeToken=this.postBatchResumeToken}else{this.resumeToken=e}this.hasReceived=true}_processBatch(e,t){const r=(t===null||t===void 0?void 0:t.cursor)||{};if(r.postBatchResumeToken){this.postBatchResumeToken=r.postBatchResumeToken;if(r[e].length===0){this.resumeToken=r.postBatchResumeToken}}}clone(){return new ChangeStreamCursor(this.topology,this.namespace,this.pipeline,{...this.cursorOptions})}_initialize(e,t){const r=new l.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:e});(0,d.executeOperation)(this.topology,r,((n,i)=>{if(n||i==null){return t(n)}const o=r.server;if(this.startAtOperationTime==null&&this.resumeAfter==null&&this.startAfter==null&&(0,h.maxWireVersion)(o)>=7){this.startAtOperationTime=i.operationTime}this._processBatch("firstBatch",i);this.emit(ChangeStream.INIT,i);this.emit(ChangeStream.RESPONSE);t(undefined,{server:o,session:e,response:i})}))}_getMore(e,t){super._getMore(e,((e,r)=>{if(e){return t(e)}this._processBatch("nextBatch",r);this.emit(ChangeStream.MORE,r);this.emit(ChangeStream.RESPONSE);t(e,r)}))}}t.ChangeStreamCursor=ChangeStreamCursor;const O=[ChangeStream.RESUME_TOKEN_CHANGED,ChangeStream.END,ChangeStream.CLOSE];function setIsEmitter(e){if(e[v]==="iterator"){throw new a.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator")}e[v]="emitter"}function setIsIterator(e){if(e[v]==="emitter"){throw new a.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter")}e[v]="iterator"}function createChangeStreamCursor(e,t){const r={fullDocument:t.fullDocument||"default"};applyKnownOptions(r,t,b);if(e.type===E.CLUSTER){r.allChangesForCluster=true}const n=[{$changeStream:r}].concat(e.pipeline);const i=applyKnownOptions({},t,_);const o=new ChangeStreamCursor((0,h.getTopology)(e.parent),e.namespace,n,i);for(const t of O){o.on(t,(r=>e.emit(t,r)))}if(e.listenerCount(ChangeStream.CHANGE)>0){streamEvents(e,o)}return o}function applyKnownOptions(e,t,r){r.forEach((r=>{if(t[r]){e[r]=t[r]}}));return e}const D=3e4;function waitForTopologyConnected(e,t,r){setTimeout((()=>{if(t&&t.start==null){t.start=(0,h.now)()}const n=t.start||(0,h.now)();const i=t.timeout||D;if(e.isConnected()){return r()}if((0,h.calculateDurationInMs)(n)>i){return r(new a.MongoRuntimeError("Timed out waiting for connection"))}waitForTopologyConnected(e,t,r)}),500)}function closeWithError(e,t,r){if(!r){e.emit(ChangeStream.ERROR,t)}e.close((()=>r&&r(t)))}function streamEvents(e,t){setIsEmitter(e);const r=e[g]||t.stream();e[g]=r;r.on("data",(t=>processNewChange(e,t)));r.on("error",(t=>processError(e,t)))}function endStream(e){const t=e[g];if(t){["data","close","end","error"].forEach((e=>t.removeAllListeners(e)));t.destroy()}e[g]=undefined}function processNewChange(e,t,r){var n;if(e[y]){if(r)r(new a.MongoAPIError(C));return}if(t==null){return closeWithError(e,new a.MongoRuntimeError(C),r)}if(t&&!t._id){return closeWithError(e,new a.MongoChangeStreamError(k),r)}(n=e.cursor)===null||n===void 0?void 0:n.cacheResumeToken(t._id);e.options.startAtOperationTime=undefined;if(!r)return e.emit(ChangeStream.CHANGE,t);return r(undefined,t)}function processError(e,t,r){const n=e.cursor;if(e[y]){if(r)r(new a.MongoAPIError(C));return}function resumeWithCursor(t){e.cursor=t;processResumeQueue(e)}function unresumableError(t){if(!r){e.emit(ChangeStream.ERROR,t)}e.close((()=>processResumeQueue(e,t)))}if(n&&(0,a.isResumableError)(t,(0,h.maxWireVersion)(n.server))){e.cursor=undefined;endStream(e);n.close();const t=(0,h.getTopology)(e.parent);waitForTopologyConnected(t,{readPreference:n.readPreference},(t=>{if(t)return unresumableError(t);const i=createChangeStreamCursor(e,n.resumeOptions);if(!r)return resumeWithCursor(i);i.hasNext((e=>{if(e)return unresumableError(e);resumeWithCursor(i)}))}));return}return closeWithError(e,t,r)}function getCursor(e,t){if(e[y]){t(new a.MongoAPIError(C));return}if(e.cursor){t(undefined,e.cursor);return}e[m].push(t)}function processResumeQueue(e,t){while(e[m].length){const r=e[m].pop();if(!r)break;if(!t){if(e[y]){r(new a.MongoAPIError(C));return}if(!e.cursor){r(new a.MongoChangeStreamError(x));return}}r(t,e.cursor)}}},21235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AuthProvider=t.AuthContext=void 0;const n=r(95544);class AuthContext{constructor(e,t,r){this.connection=e;this.credentials=t;this.options=r}}t.AuthContext=AuthContext;class AuthProvider{prepare(e,t,r){r(undefined,e)}auth(e,t){t(new n.MongoRuntimeError("`auth` method must be overridden by subclass"))}}t.AuthProvider=AuthProvider},46801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GSSAPI=void 0;const n=r(9523);const i=r(74116);const o=r(95544);const s=r(3332);const a=r(21235);class GSSAPI extends a.AuthProvider{auth(e,t){const{connection:r,credentials:n}=e;if(n==null)return t(new o.MongoMissingCredentialsError("Credentials required for GSSAPI authentication"));const{username:i}=n;function externalCommand(e,t){return r.command((0,s.ns)("$external.$cmd"),e,undefined,t)}makeKerberosClient(e,((e,r)=>{if(e)return t(e);if(r==null)return t(new o.MongoMissingDependencyError("GSSAPI client missing"));r.step("",((e,n)=>{if(e)return t(e);externalCommand(saslStart(n),((e,n)=>{if(e)return t(e);if(n==null)return t();negotiate(r,10,n.payload,((e,o)=>{if(e)return t(e);externalCommand(saslContinue(o,n.conversationId),((e,n)=>{if(e)return t(e);if(n==null)return t();finalize(r,i,n.payload,((e,r)=>{if(e)return t(e);externalCommand({saslContinue:1,conversationId:n.conversationId,payload:r},((e,r)=>{if(e)return t(e);t(undefined,r)}))}))}))}))}))}))}))}}t.GSSAPI=GSSAPI;function makeKerberosClient(e,t){var r;const{hostAddress:n}=e.options;const{credentials:s}=e;if(!n||typeof n.host!=="string"||!s){return t(new o.MongoInvalidArgumentError("Connection must have host and port and credentials defined."))}if("kModuleError"in i.Kerberos){return t(i.Kerberos["kModuleError"])}const{initializeClient:a}=i.Kerberos;const{username:u,password:c}=s;const l=s.mechanismProperties;const d=(r=l.SERVICE_NAME)!==null&&r!==void 0?r:"mongodb";performGssapiCanonicalizeHostName(n.host,l,((e,r)=>{if(e)return t(e);const n={};if(c!=null){Object.assign(n,{user:u,password:c})}let i=`${d}${process.platform==="win32"?"/":"@"}${r}`;if("SERVICE_REALM"in l){i=`${i}@${l.SERVICE_REALM}`}a(i,n,((e,r)=>{if(e)return t(new o.MongoRuntimeError(e));t(undefined,r)}))}))}function saslStart(e){return{saslStart:1,mechanism:"GSSAPI",payload:e,autoAuthorize:1}}function saslContinue(e,t){return{saslContinue:1,conversationId:t,payload:e}}function negotiate(e,t,r,n){e.step(r,((i,o)=>{if(i&&t===0)return n(i);if(i)return negotiate(e,t-1,r,n);n(undefined,o||"")}))}function finalize(e,t,r,n){e.unwrap(r,((r,i)=>{if(r)return n(r);e.wrap(i||"",{user:t},((e,t)=>{if(e)return n(e);n(undefined,t)}))}))}function performGssapiCanonicalizeHostName(e,t,r){if(!t.gssapiCanonicalizeHostName)return r(undefined,e);n.resolveCname(e,((t,n)=>{if(t)return r(t);if(Array.isArray(n)&&n.length>0){return r(undefined,n[0])}r(undefined,e)}))}},3339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MongoCredentials=void 0;const n=r(95544);const i=r(62856);function getDefaultAuthMechanism(e){if(e){if(Array.isArray(e.saslSupportedMechs)){return e.saslSupportedMechs.includes(i.AuthMechanism.MONGODB_SCRAM_SHA256)?i.AuthMechanism.MONGODB_SCRAM_SHA256:i.AuthMechanism.MONGODB_SCRAM_SHA1}if(e.maxWireVersion>=3){return i.AuthMechanism.MONGODB_SCRAM_SHA1}}return i.AuthMechanism.MONGODB_CR}class MongoCredentials{constructor(e){this.username=e.username;this.password=e.password;this.source=e.source;if(!this.source&&e.db){this.source=e.db}this.mechanism=e.mechanism||i.AuthMechanism.MONGODB_DEFAULT;this.mechanismProperties=e.mechanismProperties||{};if(this.mechanism.match(/MONGODB-AWS/i)){if(!this.username&&process.env.AWS_ACCESS_KEY_ID){this.username=process.env.AWS_ACCESS_KEY_ID}if(!this.password&&process.env.AWS_SECRET_ACCESS_KEY){this.password=process.env.AWS_SECRET_ACCESS_KEY}if(this.mechanismProperties.AWS_SESSION_TOKEN==null&&process.env.AWS_SESSION_TOKEN!=null){this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN}}}Object.freeze(this.mechanismProperties);Object.freeze(this)}equals(e){return this.mechanism===e.mechanism&&this.username===e.username&&this.password===e.password&&this.source===e.source}resolveAuthMechanism(e){if(this.mechanism.match(/DEFAULT/i)){return new MongoCredentials({username:this.username,password:this.password,source:this.source,mechanism:getDefaultAuthMechanism(e),mechanismProperties:this.mechanismProperties})}return this}validate(){if((this.mechanism===i.AuthMechanism.MONGODB_GSSAPI||this.mechanism===i.AuthMechanism.MONGODB_CR||this.mechanism===i.AuthMechanism.MONGODB_PLAIN||this.mechanism===i.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===i.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username){throw new n.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`)}if(i.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)){if(this.source!=null&&this.source!=="$external"){throw new n.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`)}}if(this.mechanism===i.AuthMechanism.MONGODB_PLAIN&&this.source==null){throw new n.MongoAPIError("PLAIN Authentication Mechanism needs an auth source")}if(this.mechanism===i.AuthMechanism.MONGODB_X509&&this.password!=null){if(this.password===""){Reflect.set(this,"password",undefined);return}throw new n.MongoAPIError(`Password not allowed for mechanism MONGODB-X509`)}}static merge(e,t){var r,n,o,s,a,u,c,l,d,h,m;return new MongoCredentials({username:(n=(r=t.username)!==null&&r!==void 0?r:e===null||e===void 0?void 0:e.username)!==null&&n!==void 0?n:"",password:(s=(o=t.password)!==null&&o!==void 0?o:e===null||e===void 0?void 0:e.password)!==null&&s!==void 0?s:"",mechanism:(u=(a=t.mechanism)!==null&&a!==void 0?a:e===null||e===void 0?void 0:e.mechanism)!==null&&u!==void 0?u:i.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:(l=(c=t.mechanismProperties)!==null&&c!==void 0?c:e===null||e===void 0?void 0:e.mechanismProperties)!==null&&l!==void 0?l:{},source:(m=(h=(d=t.source)!==null&&d!==void 0?d:t.db)!==null&&h!==void 0?h:e===null||e===void 0?void 0:e.source)!==null&&m!==void 0?m:"admin"})}}t.MongoCredentials=MongoCredentials},30497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MongoCR=void 0;const n=r(6113);const i=r(95544);const o=r(3332);const s=r(21235);class MongoCR extends s.AuthProvider{auth(e,t){const{connection:r,credentials:s}=e;if(!s){return t(new i.MongoMissingCredentialsError("AuthContext must provide credentials."))}const a=s.username;const u=s.password;const c=s.source;r.command((0,o.ns)(`${c}.$cmd`),{getnonce:1},undefined,((e,i)=>{let s=null;let l=null;if(e==null){s=i.nonce;let e=n.createHash("md5");e.update(`${a}:mongo:${u}`,"utf8");const t=e.digest("hex");e=n.createHash("md5");e.update(s+a+t,"utf8");l=e.digest("hex")}const d={authenticate:1,user:a,nonce:s,key:l};r.command((0,o.ns)(`${c}.$cmd`),d,undefined,t)}))}}t.MongoCR=MongoCR},36691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MongoDBAWS=void 0;const n=r(6113);const i=r(13685);const o=r(57310);const s=r(85539);const a=r(74116);const u=r(95544);const c=r(3332);const l=r(21235);const d=r(3339);const h=r(62856);const m=110;const g="http://169.254.170.2";const y="http://169.254.169.254";const v="/latest/meta-data/iam/security-credentials";const b={promoteLongs:true,promoteValues:true,promoteBuffers:false,bsonRegExp:false};class MongoDBAWS extends l.AuthProvider{auth(e,t){const{connection:r,credentials:i}=e;if(!i){return t(new u.MongoMissingCredentialsError("AuthContext must provide credentials."))}if("kModuleError"in a.aws4){return t(a.aws4["kModuleError"])}const{sign:o}=a.aws4;if((0,c.maxWireVersion)(r)<9){t(new u.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later"));return}if(!i.username){makeTempCredentials(i,((r,n)=>{if(r||!n)return t(r);e.credentials=n;this.auth(e,t)}));return}const l=i.username;const d=i.password;const h=i.mechanismProperties.AWS_SESSION_TOKEN;const g=l&&d&&h?{accessKeyId:l,secretAccessKey:d,sessionToken:h}:l&&d?{accessKeyId:l,secretAccessKey:d}:undefined;const y=i.source;n.randomBytes(32,((e,n)=>{if(e){t(e);return}const i={saslStart:1,mechanism:"MONGODB-AWS",payload:s.serialize({r:n,p:m},b)};r.command((0,c.ns)(`${y}.$cmd`),i,undefined,((e,i)=>{if(e)return t(e);const a=s.deserialize(i.payload.buffer,b);const l=a.h;const d=a.s.buffer;if(d.length!==64){t(new u.MongoRuntimeError(`Invalid server nonce length ${d.length}, expected 64`));return}if(d.compare(n,0,n.length,0,n.length)!==0){t(new u.MongoRuntimeError("Server nonce does not begin with client nonce"));return}if(l.length<1||l.length>255||l.indexOf("..")!==-1){t(new u.MongoRuntimeError(`Server returned an invalid host: "${l}"`));return}const m="Action=GetCallerIdentity&Version=2011-06-15";const v=o({method:"POST",host:l,region:deriveRegion(a.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":m.length,"X-MongoDB-Server-Nonce":d.toString("base64"),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:m},g);const _={a:v.headers.Authorization,d:v.headers["X-Amz-Date"]};if(h){_.t=h}const E={saslContinue:1,conversationId:1,payload:s.serialize(_,b)};r.command((0,c.ns)(`${y}.$cmd`),E,undefined,t)}))}))}}t.MongoDBAWS=MongoDBAWS;function makeTempCredentials(e,t){function done(r){if(!r.AccessKeyId||!r.SecretAccessKey||!r.Token){t(new u.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials"));return}t(undefined,new d.MongoCredentials({username:r.AccessKeyId,password:r.SecretAccessKey,source:e.source,mechanism:h.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:r.Token}}))}if(process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI){request(`${g}${process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`,undefined,((e,r)=>{if(e)return t(e);done(r)}));return}request(`${y}/latest/api/token`,{method:"PUT",json:false,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}},((e,r)=>{if(e)return t(e);request(`${y}/${v}`,{json:false,headers:{"X-aws-ec2-metadata-token":r}},((e,n)=>{if(e)return t(e);request(`${y}/${v}/${n}`,{headers:{"X-aws-ec2-metadata-token":r}},((e,r)=>{if(e)return t(e);done(r)}))}))}))}function deriveRegion(e){const t=e.split(".");if(t.length===1||t[1]==="amazonaws"){return"us-east-1"}return t[1]}function request(e,t,r){const n=Object.assign({method:"GET",timeout:1e4,json:true},o.parse(e),t);const s=i.request(n,(e=>{e.setEncoding("utf8");let t="";e.on("data",(e=>t+=e));e.on("end",(()=>{if(n.json===false){r(undefined,t);return}try{const e=JSON.parse(t);r(undefined,e)}catch(e){r(new u.MongoRuntimeError(`Invalid JSON response: "${t}"`))}}))}));s.on("error",(e=>r(e)));s.end()}},75497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Plain=void 0;const n=r(85539);const i=r(95544);const o=r(3332);const s=r(21235);class Plain extends s.AuthProvider{auth(e,t){const{connection:r,credentials:s}=e;if(!s){return t(new i.MongoMissingCredentialsError("AuthContext must provide credentials."))}const a=s.username;const u=s.password;const c=new n.Binary(Buffer.from(`\0${a}\0${u}`));const l={saslStart:1,mechanism:"PLAIN",payload:c,autoAuthorize:1};r.command((0,o.ns)("$external.$cmd"),l,undefined,t)}}t.Plain=Plain},62856:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AUTH_MECHS_AUTH_SRC_EXTERNAL=t.AuthMechanism=void 0;t.AuthMechanism=Object.freeze({MONGODB_AWS:"MONGODB-AWS",MONGODB_CR:"MONGODB-CR",MONGODB_DEFAULT:"DEFAULT",MONGODB_GSSAPI:"GSSAPI",MONGODB_PLAIN:"PLAIN",MONGODB_SCRAM_SHA1:"SCRAM-SHA-1",MONGODB_SCRAM_SHA256:"SCRAM-SHA-256",MONGODB_X509:"MONGODB-X509"});t.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([t.AuthMechanism.MONGODB_GSSAPI,t.AuthMechanism.MONGODB_AWS,t.AuthMechanism.MONGODB_X509])},93818:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ScramSHA256=t.ScramSHA1=void 0;const n=r(6113);const i=r(85539);const o=r(74116);const s=r(95544);const a=r(3332);const u=r(21235);const c=r(62856);class ScramSHA extends u.AuthProvider{constructor(e){super();this.cryptoMethod=e||"sha1"}prepare(e,t,r){const i=this.cryptoMethod;const u=t.credentials;if(!u){return r(new s.MongoMissingCredentialsError("AuthContext must provide credentials."))}if(i==="sha256"&&o.saslprep==null){(0,a.emitWarning)("Warning: no saslprep library specified. Passwords will not be sanitized")}n.randomBytes(24,((n,o)=>{if(n){return r(n)}Object.assign(t,{nonce:o});const s=Object.assign({},e,{speculativeAuthenticate:Object.assign(makeFirstMessage(i,u,o),{db:u.source})});r(undefined,s)}))}auth(e,t){const r=e.response;if(r&&r.speculativeAuthenticate){continueScramConversation(this.cryptoMethod,r.speculativeAuthenticate,e,t);return}executeScram(this.cryptoMethod,e,t)}}function cleanUsername(e){return e.replace("=","=3D").replace(",","=2C")}function clientFirstMessageBare(e,t){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(e,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(t.toString("base64"),"utf8")])}function makeFirstMessage(e,t,r){const n=cleanUsername(t.username);const o=e==="sha1"?c.AuthMechanism.MONGODB_SCRAM_SHA1:c.AuthMechanism.MONGODB_SCRAM_SHA256;return{saslStart:1,mechanism:o,payload:new i.Binary(Buffer.concat([Buffer.from("n,,","utf8"),clientFirstMessageBare(n,r)])),autoAuthorize:1,options:{skipEmptyExchange:true}}}function executeScram(e,t,r){const{connection:n,credentials:i}=t;if(!i){return r(new s.MongoMissingCredentialsError("AuthContext must provide credentials."))}if(!t.nonce){return r(new s.MongoInvalidArgumentError("AuthContext must contain a valid nonce property"))}const o=t.nonce;const u=i.source;const c=makeFirstMessage(e,i,o);n.command((0,a.ns)(`${u}.$cmd`),c,undefined,((n,i)=>{const o=resolveError(n,i);if(o){return r(o)}continueScramConversation(e,i,t,r)}))}function continueScramConversation(e,t,r,n){const u=r.connection;const c=r.credentials;if(!c){return n(new s.MongoMissingCredentialsError("AuthContext must provide credentials."))}if(!r.nonce){return n(new s.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce"))}const l=r.nonce;const d=c.source;const h=cleanUsername(c.username);const m=c.password;let g;if(e==="sha256"){g="kModuleError"in o.saslprep?m:(0,o.saslprep)(m)}else{try{g=passwordDigest(h,m)}catch(e){return n(e)}}const y=Buffer.isBuffer(t.payload)?new i.Binary(t.payload):t.payload;const v=parsePayload(y.value());const b=parseInt(v.i,10);if(b&&b<4096){n(new s.MongoRuntimeError(`Server returned an invalid iteration count ${b}`),false);return}const _=v.s;const E=v.r;if(E.startsWith("nonce")){n(new s.MongoRuntimeError(`Server returned an invalid nonce: ${E}`),false);return}const k=`c=biws,r=${E}`;const x=HI(g,Buffer.from(_,"base64"),b,e);const C=HMAC(e,x,"Client Key");const O=HMAC(e,x,"Server Key");const D=H(e,C);const B=[clientFirstMessageBare(h,l),y.value(),k].join(",");const P=HMAC(e,D,B);const I=`p=${xor(C,P)}`;const R=[k,I].join(",");const N=HMAC(e,O,B);const $={saslContinue:1,conversationId:t.conversationId,payload:new i.Binary(Buffer.from(R))};u.command((0,a.ns)(`${d}.$cmd`),$,undefined,((e,t)=>{const r=resolveError(e,t);if(r){return n(r)}const i=parsePayload(t.payload.value());if(!compareDigest(Buffer.from(i.v,"base64"),N)){n(new s.MongoRuntimeError("Server returned an invalid signature"));return}if(!t||t.done!==false){return n(r,t)}const o={saslContinue:1,conversationId:t.conversationId,payload:Buffer.alloc(0)};u.command((0,a.ns)(`${d}.$cmd`),o,undefined,n)}))}function parsePayload(e){const t={};const r=e.split(",");for(let e=0;e=200){_hiCachePurge()}l[o]=s;d+=1;return s}function compareDigest(e,t){if(e.length!==t.length){return false}if(typeof n.timingSafeEqual==="function"){return n.timingSafeEqual(e,t)}let r=0;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.X509=void 0;const n=r(95544);const i=r(3332);const o=r(21235);class X509 extends o.AuthProvider{prepare(e,t,r){const{credentials:i}=t;if(!i){return r(new n.MongoMissingCredentialsError("AuthContext must provide credentials."))}Object.assign(e,{speculativeAuthenticate:x509AuthenticateCommand(i)});r(undefined,e)}auth(e,t){const r=e.connection;const o=e.credentials;if(!o){return t(new n.MongoMissingCredentialsError("AuthContext must provide credentials."))}const s=e.response;if(s&&s.speculativeAuthenticate){return t()}r.command((0,i.ns)("$external.$cmd"),x509AuthenticateCommand(o),undefined,t)}}t.X509=X509;function x509AuthenticateCommand(e){const t={authenticate:1,mechanism:"MONGODB-X509"};if(e.username){t.user=e.username}return t}},4002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CommandFailedEvent=t.CommandSucceededEvent=t.CommandStartedEvent=void 0;const n=r(72367);const i=r(3332);const o=r(64739);class CommandStartedEvent{constructor(e,t){const r=extractCommand(t);const n=extractCommandName(r);const{address:i,connectionId:o,serviceId:a}=extractConnectionDetails(e);if(s.has(n)){this.commandObj={};this.commandObj[n]=true}this.address=i;this.connectionId=o;this.serviceId=a;this.requestId=t.requestId;this.databaseName=databaseName(t);this.commandName=n;this.command=maybeRedact(n,r,r)}get hasServiceId(){return!!this.serviceId}}t.CommandStartedEvent=CommandStartedEvent;class CommandSucceededEvent{constructor(e,t,r,n){const o=extractCommand(t);const s=extractCommandName(o);const{address:a,connectionId:u,serviceId:c}=extractConnectionDetails(e);this.address=a;this.connectionId=u;this.serviceId=c;this.requestId=t.requestId;this.commandName=s;this.duration=(0,i.calculateDurationInMs)(n);this.reply=maybeRedact(s,o,extractReply(t,r))}get hasServiceId(){return!!this.serviceId}}t.CommandSucceededEvent=CommandSucceededEvent;class CommandFailedEvent{constructor(e,t,r,n){const o=extractCommand(t);const s=extractCommandName(o);const{address:a,connectionId:u,serviceId:c}=extractConnectionDetails(e);this.address=a;this.connectionId=u;this.serviceId=c;this.requestId=t.requestId;this.commandName=s;this.duration=(0,i.calculateDurationInMs)(n);this.failure=maybeRedact(s,o,r)}get hasServiceId(){return!!this.serviceId}}t.CommandFailedEvent=CommandFailedEvent;const s=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);const a=new Set(["hello",n.LEGACY_HELLO_COMMAND,n.LEGACY_HELLO_COMMAND_CAMEL_CASE]);const extractCommandName=e=>Object.keys(e)[0];const namespace=e=>e.ns;const databaseName=e=>e.ns.split(".")[0];const collectionName=e=>e.ns.split(".")[1];const maybeRedact=(e,t,r)=>s.has(e)||a.has(e)&&t.speculativeAuthenticate?{}:r;const u={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"};const c={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"};const l=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"];function extractCommand(e){var t;if(e instanceof o.GetMore){return{getMore:(0,i.deepCopy)(e.cursorId),collection:collectionName(e),batchSize:e.numberToReturn}}if(e instanceof o.KillCursor){return{killCursors:collectionName(e),cursors:(0,i.deepCopy)(e.cursorIds)}}if(e instanceof o.Msg){return(0,i.deepCopy)(e.command)}if((t=e.query)===null||t===void 0?void 0:t.$query){let t;if(e.ns==="admin.$cmd"){t=Object.assign({},e.query.$query)}else{t={find:collectionName(e)};Object.keys(u).forEach((r=>{if(e.query[r]!=null){t[u[r]]=(0,i.deepCopy)(e.query[r])}}))}Object.keys(c).forEach((r=>{const n=r;if(e[n]!=null){t[c[n]]=(0,i.deepCopy)(e[n])}}));l.forEach((r=>{const n=r;if(e[n]){t[n]=e[n]}}));if(e.pre32Limit!=null){t.limit=e.pre32Limit}if(e.query.$explain){return{explain:t}}return t}const r={};const n={};if(e.query){for(const t in e.query){r[t]=(0,i.deepCopy)(e.query[t])}n.query=r}for(const t in e){if(t==="query")continue;n[t]=(0,i.deepCopy)(e[t])}return e.query?r:n}function extractReply(e,t){if(e instanceof o.KillCursor){return{ok:1,cursorsUnknown:e.cursorIds}}if(!t){return t}if(e instanceof o.GetMore){return{ok:1,cursor:{id:(0,i.deepCopy)(t.cursorId),ns:namespace(e),nextBatch:(0,i.deepCopy)(t.documents)}}}if(e instanceof o.Msg){return(0,i.deepCopy)(t.result?t.result:t)}if(e.query&&e.query.$query!=null){return{ok:1,cursor:{id:(0,i.deepCopy)(t.cursorId),ns:namespace(e),firstBatch:(0,i.deepCopy)(t.documents)}}}return(0,i.deepCopy)(t.result?t.result:t)}function extractConnectionDetails(e){let t;if("id"in e){t=e.id}return{address:e.address,serviceId:e.serviceId,connectionId:t}}},64739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinMsg=t.Msg=t.Response=t.KillCursor=t.GetMore=t.Query=void 0;const n=r(85539);const i=r(95544);const o=r(46334);const s=r(3332);const a=r(58437);let u=0;const c=2;const l=4;const d=8;const h=16;const m=32;const g=64;const y=128;const v=1;const b=2;const _=4;const E=8;class Query{constructor(e,t,r){if(e==null)throw new i.MongoRuntimeError("Namespace must be specified for query");if(t==null)throw new i.MongoRuntimeError("A query document must be specified for query");if(e.indexOf("\0")!==-1){throw new i.MongoRuntimeError("Namespace cannot contain a null character")}this.ns=e;this.query=t;this.numberToSkip=r.numberToSkip||0;this.numberToReturn=r.numberToReturn||0;this.returnFieldSelector=r.returnFieldSelector||undefined;this.requestId=Query.getRequestId();this.pre32Limit=r.pre32Limit;this.serializeFunctions=typeof r.serializeFunctions==="boolean"?r.serializeFunctions:false;this.ignoreUndefined=typeof r.ignoreUndefined==="boolean"?r.ignoreUndefined:false;this.maxBsonSize=r.maxBsonSize||1024*1024*16;this.checkKeys=typeof r.checkKeys==="boolean"?r.checkKeys:false;this.batchSize=this.numberToReturn;this.tailable=false;this.secondaryOk=typeof r.secondaryOk==="boolean"?r.secondaryOk:false;this.oplogReplay=false;this.noCursorTimeout=false;this.awaitData=false;this.exhaust=false;this.partial=false}incRequestId(){this.requestId=u++}nextRequestId(){return u+1}static getRequestId(){return++u}toBin(){const e=[];let t=null;let r=0;if(this.tailable){r|=c}if(this.secondaryOk){r|=l}if(this.oplogReplay){r|=d}if(this.noCursorTimeout){r|=h}if(this.awaitData){r|=m}if(this.exhaust){r|=g}if(this.partial){r|=y}if(this.batchSize!==this.numberToReturn)this.numberToReturn=this.batchSize;const i=Buffer.alloc(4*4+4+Buffer.byteLength(this.ns)+1+4+4);e.push(i);const o=n.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});e.push(o);if(this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0){t=n.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});e.push(t)}const s=i.length+o.length+(t?t.length:0);let u=4;i[3]=s>>24&255;i[2]=s>>16&255;i[1]=s>>8&255;i[0]=s&255;i[u+3]=this.requestId>>24&255;i[u+2]=this.requestId>>16&255;i[u+1]=this.requestId>>8&255;i[u]=this.requestId&255;u=u+4;i[u+3]=0>>24&255;i[u+2]=0>>16&255;i[u+1]=0>>8&255;i[u]=0&255;u=u+4;i[u+3]=a.OP_QUERY>>24&255;i[u+2]=a.OP_QUERY>>16&255;i[u+1]=a.OP_QUERY>>8&255;i[u]=a.OP_QUERY&255;u=u+4;i[u+3]=r>>24&255;i[u+2]=r>>16&255;i[u+1]=r>>8&255;i[u]=r&255;u=u+4;u=u+i.write(this.ns,u,"utf8")+1;i[u-1]=0;i[u+3]=this.numberToSkip>>24&255;i[u+2]=this.numberToSkip>>16&255;i[u+1]=this.numberToSkip>>8&255;i[u]=this.numberToSkip&255;u=u+4;i[u+3]=this.numberToReturn>>24&255;i[u+2]=this.numberToReturn>>16&255;i[u+1]=this.numberToReturn>>8&255;i[u]=this.numberToReturn&255;u=u+4;return e}}t.Query=Query;class GetMore{constructor(e,t,r={}){this.numberToReturn=r.numberToReturn||0;this.requestId=u++;this.ns=e;this.cursorId=t}toBin(){const e=4+Buffer.byteLength(this.ns)+1+4+8+4*4;let t=0;const r=Buffer.alloc(e);r[t+3]=e>>24&255;r[t+2]=e>>16&255;r[t+1]=e>>8&255;r[t]=e&255;t=t+4;r[t+3]=this.requestId>>24&255;r[t+2]=this.requestId>>16&255;r[t+1]=this.requestId>>8&255;r[t]=this.requestId&255;t=t+4;r[t+3]=0>>24&255;r[t+2]=0>>16&255;r[t+1]=0>>8&255;r[t]=0&255;t=t+4;r[t+3]=a.OP_GETMORE>>24&255;r[t+2]=a.OP_GETMORE>>16&255;r[t+1]=a.OP_GETMORE>>8&255;r[t]=a.OP_GETMORE&255;t=t+4;r[t+3]=0>>24&255;r[t+2]=0>>16&255;r[t+1]=0>>8&255;r[t]=0&255;t=t+4;t=t+r.write(this.ns,t,"utf8")+1;r[t-1]=0;r[t+3]=this.numberToReturn>>24&255;r[t+2]=this.numberToReturn>>16&255;r[t+1]=this.numberToReturn>>8&255;r[t]=this.numberToReturn&255;t=t+4;r[t+3]=this.cursorId.getLowBits()>>24&255;r[t+2]=this.cursorId.getLowBits()>>16&255;r[t+1]=this.cursorId.getLowBits()>>8&255;r[t]=this.cursorId.getLowBits()&255;t=t+4;r[t+3]=this.cursorId.getHighBits()>>24&255;r[t+2]=this.cursorId.getHighBits()>>16&255;r[t+1]=this.cursorId.getHighBits()>>8&255;r[t]=this.cursorId.getHighBits()&255;t=t+4;return[r]}}t.GetMore=GetMore;class KillCursor{constructor(e,t){this.ns=e;this.requestId=u++;this.cursorIds=t}toBin(){const e=4+4+4*4+this.cursorIds.length*8;let t=0;const r=Buffer.alloc(e);r[t+3]=e>>24&255;r[t+2]=e>>16&255;r[t+1]=e>>8&255;r[t]=e&255;t=t+4;r[t+3]=this.requestId>>24&255;r[t+2]=this.requestId>>16&255;r[t+1]=this.requestId>>8&255;r[t]=this.requestId&255;t=t+4;r[t+3]=0>>24&255;r[t+2]=0>>16&255;r[t+1]=0>>8&255;r[t]=0&255;t=t+4;r[t+3]=a.OP_KILL_CURSORS>>24&255;r[t+2]=a.OP_KILL_CURSORS>>16&255;r[t+1]=a.OP_KILL_CURSORS>>8&255;r[t]=a.OP_KILL_CURSORS&255;t=t+4;r[t+3]=0>>24&255;r[t+2]=0>>16&255;r[t+1]=0>>8&255;r[t]=0&255;t=t+4;r[t+3]=this.cursorIds.length>>24&255;r[t+2]=this.cursorIds.length>>16&255;r[t+1]=this.cursorIds.length>>8&255;r[t]=this.cursorIds.length&255;t=t+4;for(let e=0;e>24&255;r[t+2]=this.cursorIds[e].getLowBits()>>16&255;r[t+1]=this.cursorIds[e].getLowBits()>>8&255;r[t]=this.cursorIds[e].getLowBits()&255;t=t+4;r[t+3]=this.cursorIds[e].getHighBits()>>24&255;r[t+2]=this.cursorIds[e].getHighBits()>>16&255;r[t+1]=this.cursorIds[e].getHighBits()>>8&255;r[t]=this.cursorIds[e].getHighBits()&255;t=t+4}return[r]}}t.KillCursor=KillCursor;class Response{constructor(e,t,r,i){this.parsed=false;this.raw=e;this.data=r;this.opts=i!==null&&i!==void 0?i:{promoteLongs:true,promoteValues:true,promoteBuffers:false,bsonRegExp:false};this.length=t.length;this.requestId=t.requestId;this.responseTo=t.responseTo;this.opCode=t.opCode;this.fromCompressed=t.fromCompressed;this.responseFlags=r.readInt32LE(0);this.cursorId=new n.Long(r.readInt32LE(4),r.readInt32LE(8));this.startingFrom=r.readInt32LE(12);this.numberReturned=r.readInt32LE(16);this.documents=new Array(this.numberReturned);this.cursorNotFound=(this.responseFlags&v)!==0;this.queryFailure=(this.responseFlags&b)!==0;this.shardConfigStale=(this.responseFlags&_)!==0;this.awaitCapable=(this.responseFlags&E)!==0;this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:true;this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:true;this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:false;this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:false}isParsed(){return this.parsed}parse(e){var t,r,i,o;if(this.parsed)return;e=e!==null&&e!==void 0?e:{};const s=e.raw||false;const a=e.documentsReturnedIn||null;const u=(t=e.promoteLongs)!==null&&t!==void 0?t:this.opts.promoteLongs;const c=(r=e.promoteValues)!==null&&r!==void 0?r:this.opts.promoteValues;const l=(i=e.promoteBuffers)!==null&&i!==void 0?i:this.opts.promoteBuffers;const d=(o=e.bsonRegExp)!==null&&o!==void 0?o:this.opts.bsonRegExp;let h;const m={promoteLongs:u,promoteValues:c,promoteBuffers:l,bsonRegExp:d};this.index=20;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LEGAL_TCP_SOCKET_OPTIONS=t.LEGAL_TLS_SOCKET_OPTIONS=t.connect=void 0;const n=r(41808);const i=r(72662);const o=r(24404);const s=r(85539);const a=r(72367);const u=r(95544);const c=r(3332);const l=r(21235);const d=r(46801);const h=r(30497);const m=r(36691);const g=r(75497);const y=r(62856);const v=r(93818);const b=r(78182);const _=r(68046);const E=r(58437);const k=new Map([[y.AuthMechanism.MONGODB_AWS,new m.MongoDBAWS],[y.AuthMechanism.MONGODB_CR,new h.MongoCR],[y.AuthMechanism.MONGODB_GSSAPI,new d.GSSAPI],[y.AuthMechanism.MONGODB_PLAIN,new g.Plain],[y.AuthMechanism.MONGODB_SCRAM_SHA1,new v.ScramSHA1],[y.AuthMechanism.MONGODB_SCRAM_SHA256,new v.ScramSHA256],[y.AuthMechanism.MONGODB_X509,new b.X509]]);const x=typeof process.env.FAKE_MONGODB_SERVICE_ID==="string"&&process.env.FAKE_MONGODB_SERVICE_ID.toLowerCase()==="true";function connect(e,t){makeConnection({...e,existingSocket:undefined},((r,n)=>{var i;if(r||!n){return t(r)}let o=(i=e.connectionType)!==null&&i!==void 0?i:_.Connection;if(e.autoEncrypter){o=_.CryptoConnection}performInitialHandshake(new o(n,e),e,t)}))}t.connect=connect;function checkSupportedServer(e,t){var r;const n=e&&(typeof e.maxWireVersion==="number"||e.maxWireVersion instanceof s.Int32)&&e.maxWireVersion>=E.MIN_SUPPORTED_WIRE_VERSION;const i=e&&(typeof e.minWireVersion==="number"||e.minWireVersion instanceof s.Int32)&&e.minWireVersion<=E.MAX_SUPPORTED_WIRE_VERSION;if(n){if(i){return null}const r=`Server at ${t.hostAddress} reports minimum wire version ${JSON.stringify(e.minWireVersion)}, but this version of the Node.js Driver requires at most ${E.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${E.MAX_SUPPORTED_SERVER_VERSION})`;return new u.MongoCompatibilityError(r)}const o=`Server at ${t.hostAddress} reports maximum wire version ${(r=JSON.stringify(e.maxWireVersion))!==null&&r!==void 0?r:0}, but this version of the Node.js Driver requires at least ${E.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${E.MIN_SUPPORTED_SERVER_VERSION})`;return new u.MongoCompatibilityError(o)}function performInitialHandshake(e,t,r){const callback=function(t,n){if(t&&e){e.destroy()}r(t,n)};const n=t.credentials;if(n){if(!(n.mechanism===y.AuthMechanism.MONGODB_DEFAULT)&&!k.get(n.mechanism)){callback(new u.MongoInvalidArgumentError(`AuthMechanism '${n.mechanism}' not supported`));return}}const i=new l.AuthContext(e,n,t);prepareHandshakeDocument(i,((r,o)=>{if(r||!o){return callback(r)}const s=Object.assign({},t);if(typeof t.connectTimeoutMS==="number"){s.socketTimeoutMS=t.connectTimeoutMS}const l=(new Date).getTime();e.command((0,c.ns)("admin.$cmd"),o,s,((r,o)=>{if(r){callback(r);return}if((o===null||o===void 0?void 0:o.ok)===0){callback(new u.MongoServerError(o));return}if(!("isWritablePrimary"in o)){o.isWritablePrimary=o[a.LEGACY_HELLO_COMMAND]}if(o.helloOk){e.helloOk=true}const s=checkSupportedServer(o,t);if(s){callback(s);return}if(t.loadBalanced){if(x){o.serviceId=o.topologyVersion.processId}if(!o.serviceId){return callback(new u.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, "+"but the server does not support this mode."))}}e.hello=o;e.lastHelloMS=(new Date).getTime()-l;if(!o.arbiterOnly&&n){i.response=o;const t=n.resolveAuthMechanism(o);const r=k.get(t.mechanism);if(!r){return callback(new u.MongoInvalidArgumentError(`No AuthProvider for ${t.mechanism} defined.`))}r.auth(i,(t=>{if(t)return callback(t);callback(undefined,e)}));return}callback(undefined,e)}))}))}function prepareHandshakeDocument(e,t){const r=e.options;const n=r.compressors?r.compressors:[];const{serverApi:i}=e.connection;const o={[(i===null||i===void 0?void 0:i.version)?"hello":a.LEGACY_HELLO_COMMAND]:true,helloOk:true,client:r.metadata||(0,c.makeClientMetadata)(r),compression:n,loadBalanced:r.loadBalanced};const s=e.credentials;if(s){if(s.mechanism===y.AuthMechanism.MONGODB_DEFAULT&&s.username){o.saslSupportedMechs=`${s.source}.${s.username}`;const r=k.get(y.AuthMechanism.MONGODB_SCRAM_SHA256);if(!r){return t(new u.MongoInvalidArgumentError(`No AuthProvider for ${y.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`))}return r.prepare(o,e,t)}const r=k.get(s.mechanism);if(!r){return t(new u.MongoInvalidArgumentError(`No AuthProvider for ${s.mechanism} defined.`))}return r.prepare(o,e,t)}t(undefined,o)}t.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"];t.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];function parseConnectOptions(e){const r=e.hostAddress;if(!r)throw new u.MongoInvalidArgumentError('Option "hostAddress" is required');const n={};for(const r of t.LEGAL_TCP_SOCKET_OPTIONS){if(e[r]!=null){n[r]=e[r]}}if(typeof r.socketPath==="string"){n.path=r.socketPath;return n}else if(typeof r.host==="string"){n.host=r.host;n.port=r.port;return n}else{throw new u.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(r)}`)}}function parseSslOptions(e){const r=parseConnectOptions(e);for(const n of t.LEGAL_TLS_SOCKET_OPTIONS){if(e[n]!=null){r[n]=e[n]}}if(e.existingSocket){r.socket=e.existingSocket}if(r.servername==null&&r.host&&!n.isIP(r.host)){r.servername=r.host}return r}const C=["error","close","timeout","parseError"];const O=new Set(C);function makeConnection(e,t){var r,i,s,a,u,c,l,d,h;const m=(r=e.tls)!==null&&r!==void 0?r:false;const g=(i=e.keepAlive)!==null&&i!==void 0?i:true;const y=(a=(s=e.socketTimeoutMS)!==null&&s!==void 0?s:Reflect.get(e,"socketTimeout"))!==null&&a!==void 0?a:0;const v=(u=e.noDelay)!==null&&u!==void 0?u:true;const b=(c=e.connectTimeoutMS)!==null&&c!==void 0?c:3e4;const _=(l=e.rejectUnauthorized)!==null&&l!==void 0?l:true;const E=(h=((d=e.keepAliveInitialDelay)!==null&&d!==void 0?d:12e4)>y?Math.round(y/2):e.keepAliveInitialDelay)!==null&&h!==void 0?h:12e4;const k=e.existingSocket;let x;const callback=function(e,r){if(e&&x){x.destroy()}t(e,r)};if(e.proxyHost!=null){return makeSocks5Connection({...e,connectTimeoutMS:b},callback)}if(m){const t=o.connect(parseSslOptions(e));if(typeof t.disableRenegotiation==="function"){t.disableRenegotiation()}x=t}else if(k){x=k}else{x=n.createConnection(parseConnectOptions(e))}x.setKeepAlive(g,E);x.setTimeout(b);x.setNoDelay(v);const C=m?"secureConnect":"connect";let D;function errorHandler(t){return r=>{O.forEach((e=>x.removeAllListeners(e)));if(D&&e.cancellationToken){e.cancellationToken.removeListener("cancel",D)}x.removeListener(C,connectHandler);callback(connectionFailureError(t,r))}}function connectHandler(){O.forEach((e=>x.removeAllListeners(e)));if(D&&e.cancellationToken){e.cancellationToken.removeListener("cancel",D)}if("authorizationError"in x){if(x.authorizationError&&_){return callback(x.authorizationError)}}x.setTimeout(y);callback(undefined,x)}O.forEach((e=>x.once(e,errorHandler(e))));if(e.cancellationToken){D=errorHandler("cancel");e.cancellationToken.once("cancel",D)}if(k){process.nextTick(connectHandler)}else{x.once(C,connectHandler)}}function makeSocks5Connection(e,t){var r,n;const o=c.HostAddress.fromHostPort((r=e.proxyHost)!==null&&r!==void 0?r:"",(n=e.proxyPort)!==null&&n!==void 0?n:1080);makeConnection({...e,hostAddress:o,tls:false,proxyHost:undefined},((r,n)=>{if(r){return t(r)}const o=parseConnectOptions(e);if(typeof o.host!=="string"||typeof o.port!=="number"){return t(new u.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"))}i.SocksClient.createConnection({existing_socket:n,timeout:e.connectTimeoutMS,command:"connect",destination:{host:o.host,port:o.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:e.proxyUsername||undefined,password:e.proxyPassword||undefined}},((r,n)=>{if(r){return t(connectionFailureError("error",r))}makeConnection({...e,existingSocket:n.socket,proxyHost:undefined},t)}))}))}function connectionFailureError(e,t){switch(e){case"error":return new u.MongoNetworkError(t);case"timeout":return new u.MongoNetworkTimeoutError("connection timed out");case"close":return new u.MongoNetworkError("connection closed");case"cancel":return new u.MongoNetworkError("connection establishment was cancelled");default:return new u.MongoNetworkError("unknown network error")}}},68046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasSessionSupport=t.CryptoConnection=t.Connection=void 0;const n=r(85539);const i=r(72367);const o=r(95544);const s=r(18284);const a=r(46334);const u=r(47463);const c=r(3332);const l=r(4002);const d=r(64739);const h=r(47027);const m=r(89787);const g=r(9074);const y=Symbol("stream");const v=Symbol("queue");const b=Symbol("messageStream");const _=Symbol("generation");const E=Symbol("lastUseTime");const k=Symbol("clusterTime");const x=Symbol("description");const C=Symbol("hello");const O=Symbol("autoEncrypter");const D=Symbol("fullResult");class Connection extends s.TypedEventEmitter{constructor(e,t){var r,n;super();this.id=t.id;this.address=streamIdentifier(e,t);this.socketTimeoutMS=(r=t.socketTimeoutMS)!==null&&r!==void 0?r:0;this.monitorCommands=t.monitorCommands;this.serverApi=t.serverApi;this.closed=false;this.destroyed=false;this[x]=new m.StreamDescription(this.address,t);this[_]=t.generation;this[E]=(0,c.now)();this[v]=new Map;this[b]=new h.MessageStream({...t,maxBsonMessageSize:(n=this.hello)===null||n===void 0?void 0:n.maxBsonMessageSize});this[b].on("message",messageHandler(this));this[y]=e;e.on("error",(()=>{}));this[b].on("error",(e=>this.handleIssue({destroy:e})));e.on("close",(()=>this.handleIssue({isClose:true})));e.on("timeout",(()=>this.handleIssue({isTimeout:true,destroy:true})));e.pipe(this[b]);this[b].pipe(e)}get description(){return this[x]}get hello(){return this[C]}set hello(e){this[x].receiveResponse(e);this[x]=Object.freeze(this[x]);this[C]=e}get serviceId(){var e;return(e=this.hello)===null||e===void 0?void 0:e.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[_]||0}set generation(e){this[_]=e}get idleTime(){return(0,c.calculateDurationInMs)(this[E])}get clusterTime(){return this[k]}get stream(){return this[y]}markAvailable(){this[E]=(0,c.now)()}handleIssue(e){if(this.closed){return}if(e.destroy){this[y].destroy(typeof e.destroy==="boolean"?undefined:e.destroy)}this.closed=true;for(const[,t]of this[v]){if(e.isTimeout){t.cb(new o.MongoNetworkTimeoutError(`connection ${this.id} to ${this.address} timed out`,{beforeHandshake:this.hello==null}))}else if(e.isClose){t.cb(new o.MongoNetworkError(`connection ${this.id} to ${this.address} closed`))}else{t.cb(typeof e.destroy==="boolean"?undefined:e.destroy)}}this[v].clear();this.emit(Connection.CLOSE)}destroy(e,t){if(typeof e==="function"){t=e;e={force:false}}this.removeAllListeners(Connection.PINNED);this.removeAllListeners(Connection.UNPINNED);e=Object.assign({force:false},e);if(this[y]==null||this.destroyed){this.destroyed=true;if(typeof t==="function"){t()}return}if(e.force){this[y].destroy();this.destroyed=true;if(typeof t==="function"){t()}return}this[y].end((()=>{this.destroyed=true;if(typeof t==="function"){t()}}))}command(e,t,r,n){if(!(e instanceof c.MongoDBNamespace)){throw new o.MongoRuntimeError("Must provide a MongoDBNamespace instance")}const i=(0,g.getReadPreference)(t,r);const s=supportsOpMsg(this);const a=r===null||r===void 0?void 0:r.session;let l=this.clusterTime;let h=Object.assign({},t);if(this.serverApi){const{version:e,strict:t,deprecationErrors:r}=this.serverApi;h.apiVersion=e;if(t!=null)h.apiStrict=t;if(r!=null)h.apiDeprecationErrors=r}if(hasSessionSupport(this)&&a){if(a.clusterTime&&l&&a.clusterTime.clusterTime.greaterThan(l.clusterTime)){l=a.clusterTime}const e=(0,u.applySession)(a,h,r);if(e){return n(e)}}if(l){h.$clusterTime=l}if((0,g.isSharded)(this)&&!s&&i&&i.mode!=="primary"){h={$query:h,$readPreference:i.toJSON()}}const m=Object.assign({command:true,numberToSkip:0,numberToReturn:-1,checkKeys:false,secondaryOk:i.secondaryOk()},r);const y=`${e.db}.$cmd`;const v=s?new d.Msg(y,h,m):new d.Query(y,h,m);try{write(this,v,m,n)}catch(e){n(e)}}query(e,t,r,i){var o;const s=t.$explain!=null;const u=(o=r.readPreference)!==null&&o!==void 0?o:a.ReadPreference.primary;const c=r.batchSize||0;const l=r.limit;const h=r.skip||0;let m=0;if(l&&(l<0||l!==0&&l0&&c===0)){m=l}else{m=c}if(s){m=-Math.abs(l||0)}const g={numberToSkip:h,numberToReturn:m,pre32Limit:typeof l==="number"?l:undefined,checkKeys:false,secondaryOk:u.secondaryOk()};if(r.projection){g.returnFieldSelector=r.projection}const y=new d.Query(e.toString(),t,g);if(typeof r.tailable==="boolean"){y.tailable=r.tailable}if(typeof r.oplogReplay==="boolean"){y.oplogReplay=r.oplogReplay}if(typeof r.timeout==="boolean"){y.noCursorTimeout=!r.timeout}else if(typeof r.noCursorTimeout==="boolean"){y.noCursorTimeout=r.noCursorTimeout}if(typeof r.awaitData==="boolean"){y.awaitData=r.awaitData}if(typeof r.partial==="boolean"){y.partial=r.partial}write(this,y,{[D]:true,...(0,n.pluckBSONSerializeOptions)(r)},((e,t)=>{if(e||!t)return i(e,t);if(s&&t.documents&&t.documents[0]){return i(undefined,t.documents[0])}i(undefined,t)}))}getMore(e,t,r,i){const s=!!r[D];const a=(0,c.maxWireVersion)(this);if(!t){i(new o.MongoRuntimeError("Invalid internal cursor state, no known cursor id"));return}if(a<4){const o=new d.GetMore(e.toString(),t,{numberToReturn:r.batchSize});const a=(0,g.applyCommonQueryOptions)({},Object.assign(r,{...(0,n.pluckBSONSerializeOptions)(r)}));a[D]=true;a.command=true;write(this,o,a,((e,t)=>{if(s)return i(e,t);if(e)return i(e);i(undefined,{cursor:{id:t.cursorId,nextBatch:t.documents}})}));return}const u={getMore:t,collection:e.collection};if(typeof r.batchSize==="number"){u.batchSize=Math.abs(r.batchSize)}if(typeof r.maxAwaitTimeMS==="number"){u.maxTimeMS=r.maxAwaitTimeMS}const l=Object.assign({returnFieldSelector:null,documentsReturnedIn:"nextBatch"},r);this.command(e,u,l,i)}killCursors(e,t,r,n){if(!t||!Array.isArray(t)){throw new o.MongoRuntimeError(`Invalid list of cursor ids provided: ${t}`)}if((0,c.maxWireVersion)(this)<4){try{write(this,new d.KillCursor(e.toString(),t),{noResponse:true,...r},n)}catch(e){n(e)}return}this.command(e,{killCursors:e.collection,cursors:t},{[D]:true,...r},((e,r)=>{if(e||!r)return n(e);if(r.cursorNotFound){return n(new o.MongoNetworkError("cursor killed or timed out"),null)}if(!Array.isArray(r.documents)||r.documents.length===0){return n(new o.MongoRuntimeError(`invalid killCursors result returned for cursor id ${t[0]}`))}n(undefined,r.documents[0])}))}}t.Connection=Connection;Connection.COMMAND_STARTED=i.COMMAND_STARTED;Connection.COMMAND_SUCCEEDED=i.COMMAND_SUCCEEDED;Connection.COMMAND_FAILED=i.COMMAND_FAILED;Connection.CLUSTER_TIME_RECEIVED=i.CLUSTER_TIME_RECEIVED;Connection.CLOSE=i.CLOSE;Connection.MESSAGE=i.MESSAGE;Connection.PINNED=i.PINNED;Connection.UNPINNED=i.UNPINNED;class CryptoConnection extends Connection{constructor(e,t){super(e,t);this[O]=t.autoEncrypter}command(e,t,r,n){const i=this[O];if(!i){return n(new o.MongoMissingDependencyError("No AutoEncrypter available for encryption"))}const s=(0,c.maxWireVersion)(this);if(s===0){return super.command(e,t,r,n)}if(s<8){n(new o.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2"));return}i.encrypt(e.toString(),t,r,((t,o)=>{if(t||o==null){n(t,null);return}super.command(e,o,r,((e,t)=>{if(e||t==null){n(e,t);return}i.decrypt(t,r,n)}))}))}}t.CryptoConnection=CryptoConnection;function hasSessionSupport(e){const t=e.description;return t.logicalSessionTimeoutMinutes!=null||!!t.loadBalanced}t.hasSessionSupport=hasSessionSupport;function supportsOpMsg(e){const t=e.description;if(t==null){return false}return(0,c.maxWireVersion)(e)>=6&&!t.__nodejs_mock_server__}function messageHandler(e){return function messageHandler(t){e.emit("message",t);const r=e[v].get(t.responseTo);if(!r){return}const n=r.cb;e[v].delete(t.responseTo);if("moreToCome"in t&&t.moreToCome){e[v].set(t.requestId,r)}else if(r.socketTimeoutOverride){e[y].setTimeout(e.socketTimeoutMS)}try{t.parse(r)}catch(e){n(e);return}if(t.documents[0]){const i=t.documents[0];const s=r.session;if(s){(0,u.updateSessionFromResponse)(s,i)}if(i.$clusterTime){e[k]=i.$clusterTime;e.emit(Connection.CLUSTER_TIME_RECEIVED,i.$clusterTime)}if(r.command){if(i.writeConcernError){n(new o.MongoWriteConcernError(i.writeConcernError,i));return}if(i.ok===0||i.$err||i.errmsg||i.code){n(new o.MongoServerError(i));return}}else{if(i.ok===0||i.$err||i.errmsg){n(new o.MongoServerError(i));return}}}n(undefined,r.fullResult?t:t.documents[0])}}function streamIdentifier(e,t){if(t.proxyHost){return t.hostAddress.toString()}if(typeof e.address==="function"){return`${e.remoteAddress}:${e.remotePort}`}return(0,c.uuidV4)().toString("hex")}function write(e,t,r,n){if(typeof r==="function"){n=r}r=r!==null&&r!==void 0?r:{};const i={requestId:t.requestId,cb:n,session:r.session,fullResult:!!r[D],noResponse:typeof r.noResponse==="boolean"?r.noResponse:false,documentsReturnedIn:r.documentsReturnedIn,command:!!r.command,promoteLongs:typeof r.promoteLongs==="boolean"?r.promoteLongs:true,promoteValues:typeof r.promoteValues==="boolean"?r.promoteValues:true,promoteBuffers:typeof r.promoteBuffers==="boolean"?r.promoteBuffers:false,bsonRegExp:typeof r.bsonRegExp==="boolean"?r.bsonRegExp:false,enableUtf8Validation:typeof r.enableUtf8Validation==="boolean"?r.enableUtf8Validation:true,raw:typeof r.raw==="boolean"?r.raw:false,started:0};if(e[x]&&e[x].compressor){i.agreedCompressor=e[x].compressor;if(e[x].zlibCompressionLevel){i.zlibCompressionLevel=e[x].zlibCompressionLevel}}if(typeof r.socketTimeoutMS==="number"){i.socketTimeoutOverride=true;e[y].setTimeout(r.socketTimeoutMS)}if(e.monitorCommands){e.emit(Connection.COMMAND_STARTED,new l.CommandStartedEvent(e,t));i.started=(0,c.now)();i.cb=(r,o)=>{if(r){e.emit(Connection.COMMAND_FAILED,new l.CommandFailedEvent(e,t,r,i.started))}else{if(o&&(o.ok===0||o.$err)){e.emit(Connection.COMMAND_FAILED,new l.CommandFailedEvent(e,t,o,i.started))}else{e.emit(Connection.COMMAND_SUCCEEDED,new l.CommandSucceededEvent(e,t,o,i.started))}}if(typeof n==="function"){n(r,o)}}}if(!i.noResponse){e[v].set(i.requestId,i)}try{e[b].writeCommand(t,i)}catch(t){if(!i.noResponse){e[v].delete(i.requestId);i.cb(t);return}}if(i.noResponse){i.cb()}}},72995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConnectionPool=void 0;const n=r(29361);const i=r(72367);const o=r(95544);const s=r(47394);const a=r(18284);const u=r(3332);const c=r(9001);const l=r(68046);const d=r(47659);const h=r(30904);const m=r(20854);const g=Symbol("logger");const y=Symbol("connections");const v=Symbol("permits");const b=Symbol("minPoolSizeTimer");const _=Symbol("generation");const E=Symbol("serviceGenerations");const k=Symbol("connectionCounter");const x=Symbol("cancellationToken");const C=Symbol("waitQueue");const O=Symbol("cancelled");const D=Symbol("metrics");const B=Symbol("checkedOut");const P=Symbol("processingWaitQueue");class ConnectionPool extends a.TypedEventEmitter{constructor(e){var t,r,i,c;super();this.closed=false;this.options=Object.freeze({...e,connectionType:l.Connection,maxPoolSize:(t=e.maxPoolSize)!==null&&t!==void 0?t:100,minPoolSize:(r=e.minPoolSize)!==null&&r!==void 0?r:0,maxIdleTimeMS:(i=e.maxIdleTimeMS)!==null&&i!==void 0?i:0,waitQueueTimeoutMS:(c=e.waitQueueTimeoutMS)!==null&&c!==void 0?c:0,autoEncrypter:e.autoEncrypter,metadata:e.metadata});if(this.options.minPoolSize>this.options.maxPoolSize){throw new o.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size")}this[g]=new s.Logger("ConnectionPool");this[y]=new n;this[v]=this.options.maxPoolSize;this[b]=undefined;this[_]=0;this[E]=new Map;this[k]=(0,u.makeCounter)(1);this[x]=new a.CancellationToken;this[x].setMaxListeners(Infinity);this[C]=new n;this[D]=new m.ConnectionPoolMetrics;this[B]=0;this[P]=false;process.nextTick((()=>{this.emit(ConnectionPool.CONNECTION_POOL_CREATED,new d.ConnectionPoolCreatedEvent(this));ensureMinPoolSize(this)}))}get address(){return this.options.hostAddress.toString()}get generation(){return this[_]}get totalConnectionCount(){return this[y].length+(this.options.maxPoolSize-this[v])}get availableConnectionCount(){return this[y].length}get waitQueueSize(){return this[C].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[E]}get currentCheckedOutCount(){return this[B]}waitQueueErrorMetrics(){return this[D].info(this.options.maxPoolSize)}checkOut(e){this.emit(ConnectionPool.CONNECTION_CHECK_OUT_STARTED,new d.ConnectionCheckOutStartedEvent(this));if(this.closed){this.emit(ConnectionPool.CONNECTION_CHECK_OUT_FAILED,new d.ConnectionCheckOutFailedEvent(this,"poolClosed"));e(new h.PoolClosedError(this));return}const t={callback:e};const r=this.options.waitQueueTimeoutMS;if(r){t.timer=setTimeout((()=>{t[O]=true;t.timer=undefined;this.emit(ConnectionPool.CONNECTION_CHECK_OUT_FAILED,new d.ConnectionCheckOutFailedEvent(this,"timeout"));t.callback(new h.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))}),r)}this[B]=this[B]+1;this[C].push(t);process.nextTick(processWaitQueue,this)}checkIn(e){const t=this.closed;const r=connectionIsStale(this,e);const n=!!(t||r||e.closed);if(!n){e.markAvailable();this[y].unshift(e)}this[B]=this[B]-1;this.emit(ConnectionPool.CONNECTION_CHECKED_IN,new d.ConnectionCheckedInEvent(this,e));if(n){const r=e.closed?"error":t?"poolClosed":"stale";destroyConnection(this,e,r)}process.nextTick(processWaitQueue,this)}clear(e){if(this.loadBalanced&&e){const t=e.toHexString();const r=this.serviceGenerations.get(t);if(r==null){throw new o.MongoRuntimeError("Service generations are required in load balancer mode.")}else{this.serviceGenerations.set(t,r+1)}}else{this[_]+=1}this.emit("connectionPoolCleared",new d.ConnectionPoolClearedEvent(this,e))}close(e,t){let r=e;const n=t!==null&&t!==void 0?t:e;if(typeof r==="function"){r={}}r=Object.assign({force:false},r);if(this.closed){return n()}this[x].emit("cancel");while(this.waitQueueSize){const e=this[C].pop();if(e){if(e.timer){clearTimeout(e.timer)}if(!e[O]){e.callback(new o.MongoRuntimeError("Connection pool closed"))}}}const i=this[b];if(i){clearTimeout(i)}if(typeof this[k].return==="function"){this[k].return(undefined)}this.closed=true;(0,u.eachAsync)(this[y].toArray(),((e,t)=>{this.emit(ConnectionPool.CONNECTION_CLOSED,new d.ConnectionClosedEvent(this,e,"poolClosed"));e.destroy(r,t)}),(e=>{this[y].clear();this.emit(ConnectionPool.CONNECTION_POOL_CLOSED,new d.ConnectionPoolClosedEvent(this));n(e)}))}withConnection(e,t,r){if(e){t(undefined,e,((e,t)=>{if(typeof r==="function"){if(e){r(e)}else{r(undefined,t)}}}));return}this.checkOut(((e,n)=>{t(e,n,((e,t)=>{if(typeof r==="function"){if(e){r(e)}else{r(undefined,t)}}if(n){this.checkIn(n)}}))}))}}t.ConnectionPool=ConnectionPool;ConnectionPool.CONNECTION_POOL_CREATED=i.CONNECTION_POOL_CREATED;ConnectionPool.CONNECTION_POOL_CLOSED=i.CONNECTION_POOL_CLOSED;ConnectionPool.CONNECTION_POOL_CLEARED=i.CONNECTION_POOL_CLEARED;ConnectionPool.CONNECTION_CREATED=i.CONNECTION_CREATED;ConnectionPool.CONNECTION_READY=i.CONNECTION_READY;ConnectionPool.CONNECTION_CLOSED=i.CONNECTION_CLOSED;ConnectionPool.CONNECTION_CHECK_OUT_STARTED=i.CONNECTION_CHECK_OUT_STARTED;ConnectionPool.CONNECTION_CHECK_OUT_FAILED=i.CONNECTION_CHECK_OUT_FAILED;ConnectionPool.CONNECTION_CHECKED_OUT=i.CONNECTION_CHECKED_OUT;ConnectionPool.CONNECTION_CHECKED_IN=i.CONNECTION_CHECKED_IN;function ensureMinPoolSize(e){if(e.closed||e.options.minPoolSize===0){return}const t=e.options.minPoolSize;for(let r=e.totalConnectionCount;rensureMinPoolSize(e)),10)}function connectionIsStale(e,t){const r=t.serviceId;if(e.loadBalanced&&r){const n=r.toHexString();const i=e.serviceGenerations.get(n);return t.generation!==i}return t.generation!==e[_]}function connectionIsIdle(e,t){return!!(e.options.maxIdleTimeMS&&t.idleTime>e.options.maxIdleTimeMS)}function createConnection(e,t){const r={...e.options,id:e[k].next().value,generation:e[_],cancellationToken:e[x]};e[v]--;(0,c.connect)(r,((r,n)=>{if(r||!n){e[v]++;e[g].debug(`connection attempt failed with error [${JSON.stringify(r)}]`);if(typeof t==="function"){t(r)}return}if(e.closed){n.destroy({force:true});return}for(const t of[...i.APM_EVENTS,l.Connection.CLUSTER_TIME_RECEIVED]){n.on(t,(r=>e.emit(t,r)))}e.emit(ConnectionPool.CONNECTION_CREATED,new d.ConnectionCreatedEvent(e,n));if(e.loadBalanced){n.on(l.Connection.PINNED,(t=>e[D].markPinned(t)));n.on(l.Connection.UNPINNED,(t=>e[D].markUnpinned(t)));const t=n.serviceId;if(t){let r;const i=t.toHexString();if(r=e.serviceGenerations.get(i)){n.generation=r}else{e.serviceGenerations.set(i,0);n.generation=0}}}n.markAvailable();e.emit(ConnectionPool.CONNECTION_READY,new d.ConnectionReadyEvent(e,n));if(typeof t==="function"){t(undefined,n);return}e[y].push(n);process.nextTick(processWaitQueue,e)}))}function destroyConnection(e,t,r){e.emit(ConnectionPool.CONNECTION_CLOSED,new d.ConnectionClosedEvent(e,t,r));e[v]++;process.nextTick((()=>t.destroy()))}function processWaitQueue(e){if(e.closed||e[P]){return}e[P]=true;while(e.waitQueueSize){const t=e[C].peekFront();if(!t){e[C].shift();continue}if(t[O]){e[C].shift();continue}if(!e.availableConnectionCount){break}const r=e[y].shift();if(!r){break}const n=connectionIsStale(e,r);const i=connectionIsIdle(e,r);if(!n&&!i&&!r.closed){e.emit(ConnectionPool.CONNECTION_CHECKED_OUT,new d.ConnectionCheckedOutEvent(e,r));if(t.timer){clearTimeout(t.timer)}e[C].shift();t.callback(undefined,r)}else{const t=r.closed?"error":n?"stale":"idle";destroyConnection(e,r,t)}}const t=e.options.maxPoolSize;if(e.waitQueueSize&&(t<=0||e.totalConnectionCount{const n=e[C].shift();if(!n||n[O]){if(!t&&r){e[y].push(r)}e[P]=false;return}if(t){e.emit(ConnectionPool.CONNECTION_CHECK_OUT_FAILED,new d.ConnectionCheckOutFailedEvent(e,t))}else if(r){e.emit(ConnectionPool.CONNECTION_CHECKED_OUT,new d.ConnectionCheckedOutEvent(e,r))}if(n.timer){clearTimeout(n.timer)}n.callback(t,r);e[P]=false;process.nextTick((()=>processWaitQueue(e)))}))}else{e[P]=false}}},47659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConnectionPoolClearedEvent=t.ConnectionCheckedInEvent=t.ConnectionCheckedOutEvent=t.ConnectionCheckOutFailedEvent=t.ConnectionCheckOutStartedEvent=t.ConnectionClosedEvent=t.ConnectionReadyEvent=t.ConnectionCreatedEvent=t.ConnectionPoolClosedEvent=t.ConnectionPoolCreatedEvent=t.ConnectionPoolMonitoringEvent=void 0;class ConnectionPoolMonitoringEvent{constructor(e){this.time=new Date;this.address=e.address}}t.ConnectionPoolMonitoringEvent=ConnectionPoolMonitoringEvent;class ConnectionPoolCreatedEvent extends ConnectionPoolMonitoringEvent{constructor(e){super(e);this.options=e.options}}t.ConnectionPoolCreatedEvent=ConnectionPoolCreatedEvent;class ConnectionPoolClosedEvent extends ConnectionPoolMonitoringEvent{constructor(e){super(e)}}t.ConnectionPoolClosedEvent=ConnectionPoolClosedEvent;class ConnectionCreatedEvent extends ConnectionPoolMonitoringEvent{constructor(e,t){super(e);this.connectionId=t.id}}t.ConnectionCreatedEvent=ConnectionCreatedEvent;class ConnectionReadyEvent extends ConnectionPoolMonitoringEvent{constructor(e,t){super(e);this.connectionId=t.id}}t.ConnectionReadyEvent=ConnectionReadyEvent;class ConnectionClosedEvent extends ConnectionPoolMonitoringEvent{constructor(e,t,r){super(e);this.connectionId=t.id;this.reason=r||"unknown";this.serviceId=t.serviceId}}t.ConnectionClosedEvent=ConnectionClosedEvent;class ConnectionCheckOutStartedEvent extends ConnectionPoolMonitoringEvent{constructor(e){super(e)}}t.ConnectionCheckOutStartedEvent=ConnectionCheckOutStartedEvent;class ConnectionCheckOutFailedEvent extends ConnectionPoolMonitoringEvent{constructor(e,t){super(e);this.reason=t}}t.ConnectionCheckOutFailedEvent=ConnectionCheckOutFailedEvent;class ConnectionCheckedOutEvent extends ConnectionPoolMonitoringEvent{constructor(e,t){super(e);this.connectionId=t.id}}t.ConnectionCheckedOutEvent=ConnectionCheckedOutEvent;class ConnectionCheckedInEvent extends ConnectionPoolMonitoringEvent{constructor(e,t){super(e);this.connectionId=t.id}}t.ConnectionCheckedInEvent=ConnectionCheckedInEvent;class ConnectionPoolClearedEvent extends ConnectionPoolMonitoringEvent{constructor(e,t){super(e);this.serviceId=t}}t.ConnectionPoolClearedEvent=ConnectionPoolClearedEvent},30904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WaitQueueTimeoutError=t.PoolClosedError=void 0;const n=r(95544);class PoolClosedError extends n.MongoDriverError{constructor(e){super("Attempted to check out a connection from closed connection pool");this.address=e.address}get name(){return"MongoPoolClosedError"}}t.PoolClosedError=PoolClosedError;class WaitQueueTimeoutError extends n.MongoDriverError{constructor(e,t){super(e);this.address=t}get name(){return"MongoWaitQueueTimeoutError"}}t.WaitQueueTimeoutError=WaitQueueTimeoutError},47027:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MessageStream=void 0;const n=r(12781);const i=r(95544);const o=r(3332);const s=r(64739);const a=r(11424);const u=r(58437);const c=16;const l=9;const d=1024*1024*16*4;const h=Symbol("buffer");class MessageStream extends n.Duplex{constructor(e={}){super(e);this.maxBsonMessageSize=e.maxBsonMessageSize||d;this[h]=new o.BufferPool}_write(e,t,r){this[h].append(e);processIncomingData(this,r)}_read(){return}writeCommand(e,t){const r=t&&t.agreedCompressor?t.agreedCompressor:"none";if(r==="none"||!canCompress(e)){const t=e.toBin();this.push(Array.isArray(t)?Buffer.concat(t):t);return}const n=Buffer.concat(e.toBin());const i=n.slice(c);const o=n.readInt32LE(12);(0,a.compress)({options:t},i,((n,s)=>{if(n||!s){t.cb(n);return}const d=Buffer.alloc(c);d.writeInt32LE(c+l+s.length,0);d.writeInt32LE(e.requestId,4);d.writeInt32LE(0,8);d.writeInt32LE(u.OP_COMPRESSED,12);const h=Buffer.alloc(l);h.writeInt32LE(o,0);h.writeInt32LE(i.length,4);h.writeUInt8(a.Compressor[r],8);this.push(Buffer.concat([d,h,s]))}))}}t.MessageStream=MessageStream;function canCompress(e){const t=e instanceof s.Msg?e.command:e.query;const r=Object.keys(t)[0];return!a.uncompressibleCommands.has(r)}function processIncomingData(e,t){const r=e[h];if(r.length<4){t();return}const n=r.peek(4).readInt32LE();if(n<0){t(new i.MongoParseError(`Invalid message size: ${n}`));return}if(n>e.maxBsonMessageSize){t(new i.MongoParseError(`Invalid message size: ${n}, max allowed: ${e.maxBsonMessageSize}`));return}if(n>r.length){t();return}const o=r.read(n);const l={length:o.readInt32LE(0),requestId:o.readInt32LE(4),responseTo:o.readInt32LE(8),opCode:o.readInt32LE(12)};let d=l.opCode===u.OP_MSG?s.BinMsg:s.Response;if(l.opCode!==u.OP_COMPRESSED){const n=o.slice(c);e.emit("message",new d(o,l,n));if(r.length>=4){processIncomingData(e,t)}else{t()}return}l.fromCompressed=true;l.opCode=o.readInt32LE(c);l.length=o.readInt32LE(c+4);const m=o[c+8];const g=o.slice(c+9);d=l.opCode===u.OP_MSG?s.BinMsg:s.Response;(0,a.decompress)(m,g,((n,s)=>{if(n||!s){t(n);return}if(s.length!==l.length){t(new i.MongoDecompressionError("Message body and message header must be the same length"));return}e.emit("message",new d(o,l,s));if(r.length>=4){processIncomingData(e,t)}else{t()}}))}},20854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConnectionPoolMetrics=void 0;class ConnectionPoolMetrics{constructor(){this.txnConnections=0;this.cursorConnections=0;this.otherConnections=0}markPinned(e){if(e===ConnectionPoolMetrics.TXN){this.txnConnections+=1}else if(e===ConnectionPoolMetrics.CURSOR){this.cursorConnections+=1}else{this.otherConnections+=1}}markUnpinned(e){if(e===ConnectionPoolMetrics.TXN){this.txnConnections-=1}else if(e===ConnectionPoolMetrics.CURSOR){this.cursorConnections-=1}else{this.otherConnections-=1}}info(e){return"Timed out while checking out a connection from connection pool: "+`maxPoolSize: ${e}, `+`connections in use by cursors: ${this.cursorConnections}, `+`connections in use by transactions: ${this.txnConnections}, `+`connections in use by other operations: ${this.otherConnections}`}reset(){this.txnConnections=0;this.cursorConnections=0;this.otherConnections=0}}t.ConnectionPoolMetrics=ConnectionPoolMetrics;ConnectionPoolMetrics.TXN="txn";ConnectionPoolMetrics.CURSOR="cursor";ConnectionPoolMetrics.OTHER="other"},89787:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StreamDescription=void 0;const n=r(30875);const i=r(40612);const o=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];class StreamDescription{constructor(e,t){this.address=e;this.type=n.ServerType.Unknown;this.minWireVersion=undefined;this.maxWireVersion=undefined;this.maxBsonObjectSize=16777216;this.maxMessageSizeBytes=48e6;this.maxWriteBatchSize=1e5;this.logicalSessionTimeoutMinutes=t===null||t===void 0?void 0:t.logicalSessionTimeoutMinutes;this.loadBalanced=!!(t===null||t===void 0?void 0:t.loadBalanced);this.compressors=t&&t.compressors&&Array.isArray(t.compressors)?t.compressors:[]}receiveResponse(e){this.type=(0,i.parseServerType)(e);for(const t of o){if(e[t]!=null){this[t]=e[t]}if("__nodejs_mock_server__"in e){this.__nodejs_mock_server__=e["__nodejs_mock_server__"]}}if(e.compression){this.compressor=this.compressors.filter((t=>{var r;return(r=e.compression)===null||r===void 0?void 0:r.includes(t)}))[0]}}}t.StreamDescription=StreamDescription},11424:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decompress=t.compress=t.uncompressibleCommands=t.Compressor=void 0;const n=r(59796);const i=r(72367);const o=r(74116);const s=r(95544);t.Compressor=Object.freeze({none:0,snappy:1,zlib:2});t.uncompressibleCommands=new Set([i.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);function compress(e,t,r){const i={};switch(e.options.agreedCompressor){case"snappy":{if("kModuleError"in o.Snappy){return r(o.Snappy["kModuleError"])}if(o.Snappy[o.PKG_VERSION].major<=6){o.Snappy.compress(t,r)}else{o.Snappy.compress(t).then((e=>r(undefined,e))).catch((e=>r(e)))}break}case"zlib":if(e.options.zlibCompressionLevel){i.level=e.options.zlibCompressionLevel}n.deflate(t,i,r);break;default:throw new s.MongoInvalidArgumentError(`Unknown compressor ${e.options.agreedCompressor} failed to compress`)}}t.compress=compress;function decompress(e,r,i){if(e<0||e>Math.max(2)){throw new s.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${e})`)}switch(e){case t.Compressor.snappy:{if("kModuleError"in o.Snappy){return i(o.Snappy["kModuleError"])}if(o.Snappy[o.PKG_VERSION].major<=6){o.Snappy.uncompress(r,{asBuffer:true},i)}else{o.Snappy.uncompress(r,{asBuffer:true}).then((e=>i(undefined,e))).catch((e=>i(e)))}break}case t.Compressor.zlib:n.inflate(r,i);break;default:i(undefined,r)}}t.decompress=decompress},58437:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OP_MSG=t.OP_COMPRESSED=t.OP_KILL_CURSORS=t.OP_DELETE=t.OP_GETMORE=t.OP_QUERY=t.OP_INSERT=t.OP_UPDATE=t.OP_REPLY=t.MAX_SUPPORTED_WIRE_VERSION=t.MIN_SUPPORTED_WIRE_VERSION=t.MAX_SUPPORTED_SERVER_VERSION=t.MIN_SUPPORTED_SERVER_VERSION=void 0;t.MIN_SUPPORTED_SERVER_VERSION="3.6";t.MAX_SUPPORTED_SERVER_VERSION="5.1";t.MIN_SUPPORTED_WIRE_VERSION=6;t.MAX_SUPPORTED_WIRE_VERSION=14;t.OP_REPLY=1;t.OP_UPDATE=2001;t.OP_INSERT=2002;t.OP_QUERY=2004;t.OP_GETMORE=2005;t.OP_DELETE=2006;t.OP_KILL_CURSORS=2007;t.OP_COMPRESSED=2012;t.OP_MSG=2013},9074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSharded=t.applyCommonQueryOptions=t.getReadPreference=void 0;const n=r(95544);const i=r(46334);const o=r(30875);const s=r(49728);function getReadPreference(e,t){let r=e.readPreference||i.ReadPreference.primary;if(t===null||t===void 0?void 0:t.readPreference){r=t.readPreference}if(typeof r==="string"){r=i.ReadPreference.fromString(r)}if(!(r instanceof i.ReadPreference)){throw new n.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance')}return r}t.getReadPreference=getReadPreference;function applyCommonQueryOptions(e,t){Object.assign(e,{raw:typeof t.raw==="boolean"?t.raw:false,promoteLongs:typeof t.promoteLongs==="boolean"?t.promoteLongs:true,promoteValues:typeof t.promoteValues==="boolean"?t.promoteValues:true,promoteBuffers:typeof t.promoteBuffers==="boolean"?t.promoteBuffers:false,bsonRegExp:typeof t.bsonRegExp==="boolean"?t.bsonRegExp:false,enableUtf8Validation:typeof t.enableUtf8Validation==="boolean"?t.enableUtf8Validation:true});if(t.session){e.session=t.session}return e}t.applyCommonQueryOptions=applyCommonQueryOptions;function isSharded(e){if(e.description&&e.description.type===o.ServerType.Mongos){return true}if(e.description&&e.description instanceof s.TopologyDescription){const t=Array.from(e.description.servers.values());return t.some((e=>e.type===o.ServerType.Mongos))}return false}t.isSharded=isSharded},63978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Collection=void 0;const n=r(85539);const i=r(5875);const o=r(41659);const s=r(61521);const a=r(72429);const u=r(76553);const c=r(95544);const l=r(84340);const d=r(39389);const h=r(52933);const m=r(33631);const g=r(4992);const y=r(66375);const v=r(91082);const b=r(57931);const _=r(35008);const E=r(41075);const k=r(88660);const x=r(19868);const C=r(68934);const O=r(15149);const D=r(65870);const B=r(4292);const P=r(31256);const I=r(46334);const R=r(3332);const N=r(31942);class Collection{constructor(e,t,r){var i,o;(0,R.checkCollectionName)(t);this.s={db:e,options:r,namespace:new R.MongoDBNamespace(e.databaseName,t),pkFactory:(o=(i=e.options)===null||i===void 0?void 0:i.pkFactory)!==null&&o!==void 0?o:R.DEFAULT_PK_FACTORY,readPreference:I.ReadPreference.fromOptions(r),bsonOptions:(0,n.resolveBSONOptions)(r,e),readConcern:P.ReadConcern.fromOptions(r),writeConcern:N.WriteConcern.fromOptions(r)}}get dbName(){return this.s.namespace.db}get collectionName(){return this.s.namespace.collection}get namespace(){return this.s.namespace.toString()}get readConcern(){if(this.s.readConcern==null){return this.s.db.readConcern}return this.s.readConcern}get readPreference(){if(this.s.readPreference==null){return this.s.db.readPreference}return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){if(this.s.writeConcern==null){return this.s.db.writeConcern}return this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(e){this.s.collectionHint=(0,R.normalizeHintField)(e)}insertOne(e,t,r){if(typeof t==="function"){r=t;t={}}if(t&&Reflect.get(t,"w")){t.writeConcern=N.WriteConcern.fromOptions(Reflect.get(t,"w"))}return(0,v.executeOperation)((0,R.getTopology)(this),new E.InsertOneOperation(this,e,(0,R.resolveOptions)(this,t)),r)}insertMany(e,t,r){if(typeof t==="function")r=t,t={};t=t?Object.assign({},t):{ordered:true};return(0,v.executeOperation)((0,R.getTopology)(this),new E.InsertManyOperation(this,e,(0,R.resolveOptions)(this,t)),r)}bulkWrite(e,t,r){if(typeof t==="function")r=t,t={};t=t||{ordered:true};if(!Array.isArray(e)){throw new c.MongoInvalidArgumentError('Argument "operations" must be an array of documents')}return(0,v.executeOperation)((0,R.getTopology)(this),new l.BulkWriteOperation(this,e,(0,R.resolveOptions)(this,t)),r)}updateOne(e,t,r,n){if(typeof r==="function")n=r,r={};return(0,v.executeOperation)((0,R.getTopology)(this),new B.UpdateOneOperation(this,e,t,(0,R.resolveOptions)(this,r)),n)}replaceOne(e,t,r,n){if(typeof r==="function")n=r,r={};return(0,v.executeOperation)((0,R.getTopology)(this),new B.ReplaceOneOperation(this,e,t,(0,R.resolveOptions)(this,r)),n)}updateMany(e,t,r,n){if(typeof r==="function")n=r,r={};return(0,v.executeOperation)((0,R.getTopology)(this),new B.UpdateManyOperation(this,e,t,(0,R.resolveOptions)(this,r)),n)}deleteOne(e,t,r){if(typeof t==="function")r=t,t={};return(0,v.executeOperation)((0,R.getTopology)(this),new h.DeleteOneOperation(this,e,(0,R.resolveOptions)(this,t)),r)}deleteMany(e,t,r){if(e==null){e={};t={};r=undefined}else if(typeof e==="function"){r=e;e={};t={}}else if(typeof t==="function"){r=t;t={}}return(0,v.executeOperation)((0,R.getTopology)(this),new h.DeleteManyOperation(this,e,(0,R.resolveOptions)(this,t)),r)}rename(e,t,r){if(typeof t==="function")r=t,t={};return(0,v.executeOperation)((0,R.getTopology)(this),new O.RenameOperation(this,e,{...t,readPreference:I.ReadPreference.PRIMARY}),r)}drop(e,t){if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};return(0,v.executeOperation)((0,R.getTopology)(this),new g.DropCollectionOperation(this.s.db,this.collectionName,e),t)}findOne(e,t,r){if(r!=null&&typeof r!=="function"){throw new c.MongoInvalidArgumentError("Third parameter to `findOne()` must be a callback or undefined")}if(typeof e==="function"){r=e;e={};t={}}if(typeof t==="function"){r=t;t={}}const n=e!==null&&e!==void 0?e:{};const i=t!==null&&t!==void 0?t:{};return this.find(n,i).limit(-1).batchSize(1).next(r)}find(e,t){if(arguments.length>2){throw new c.MongoInvalidArgumentError('Method "collection.find()" accepts at most two arguments')}if(typeof t==="function"){throw new c.MongoInvalidArgumentError('Argument "options" must not be function')}return new u.FindCursor((0,R.getTopology)(this),this.s.namespace,e,(0,R.resolveOptions)(this,t))}options(e,t){if(typeof e==="function")t=e,e={};return(0,v.executeOperation)((0,R.getTopology)(this),new C.OptionsOperation(this,(0,R.resolveOptions)(this,e)),t)}isCapped(e,t){if(typeof e==="function")t=e,e={};return(0,v.executeOperation)((0,R.getTopology)(this),new k.IsCappedOperation(this,(0,R.resolveOptions)(this,e)),t)}createIndex(e,t,r){if(typeof t==="function")r=t,t={};return(0,v.executeOperation)((0,R.getTopology)(this),new _.CreateIndexOperation(this,this.collectionName,e,(0,R.resolveOptions)(this,t)),r)}createIndexes(e,t,r){if(typeof t==="function")r=t,t={};t=t?Object.assign({},t):{};if(typeof t.maxTimeMS!=="number")delete t.maxTimeMS;return(0,v.executeOperation)((0,R.getTopology)(this),new _.CreateIndexesOperation(this,this.collectionName,e,(0,R.resolveOptions)(this,t)),r)}dropIndex(e,t,r){if(typeof t==="function")r=t,t={};t=(0,R.resolveOptions)(this,t);t.readPreference=I.ReadPreference.primary;return(0,v.executeOperation)((0,R.getTopology)(this),new _.DropIndexOperation(this,e,t),r)}dropIndexes(e,t){if(typeof e==="function")t=e,e={};return(0,v.executeOperation)((0,R.getTopology)(this),new _.DropIndexesOperation(this,(0,R.resolveOptions)(this,e)),t)}listIndexes(e){return new _.ListIndexesCursor(this,(0,R.resolveOptions)(this,e))}indexExists(e,t,r){if(typeof t==="function")r=t,t={};return(0,v.executeOperation)((0,R.getTopology)(this),new _.IndexExistsOperation(this,e,(0,R.resolveOptions)(this,t)),r)}indexInformation(e,t){if(typeof e==="function")t=e,e={};return(0,v.executeOperation)((0,R.getTopology)(this),new _.IndexInformationOperation(this.s.db,this.collectionName,(0,R.resolveOptions)(this,e)),t)}estimatedDocumentCount(e,t){if(typeof e==="function")t=e,e={};return(0,v.executeOperation)((0,R.getTopology)(this),new y.EstimatedDocumentCountOperation(this,(0,R.resolveOptions)(this,e)),t)}countDocuments(e,t,r){if(e==null){e={},t={},r=undefined}else if(typeof e==="function"){r=e,e={},t={}}else{if(arguments.length===2){if(typeof t==="function")r=t,t={}}}e!==null&&e!==void 0?e:e={};return(0,v.executeOperation)((0,R.getTopology)(this),new d.CountDocumentsOperation(this,e,(0,R.resolveOptions)(this,t)),r)}distinct(e,t,r,n){if(typeof t==="function"){n=t,t={},r={}}else{if(arguments.length===3&&typeof r==="function"){n=r,r={}}}t!==null&&t!==void 0?t:t={};return(0,v.executeOperation)((0,R.getTopology)(this),new m.DistinctOperation(this,e,t,(0,R.resolveOptions)(this,r)),n)}indexes(e,t){if(typeof e==="function")t=e,e={};return(0,v.executeOperation)((0,R.getTopology)(this),new _.IndexesOperation(this,(0,R.resolveOptions)(this,e)),t)}stats(e,t){if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};return(0,v.executeOperation)((0,R.getTopology)(this),new D.CollStatsOperation(this,e),t)}findOneAndDelete(e,t,r){if(typeof t==="function")r=t,t={};return(0,v.executeOperation)((0,R.getTopology)(this),new b.FindOneAndDeleteOperation(this,e,(0,R.resolveOptions)(this,t)),r)}findOneAndReplace(e,t,r,n){if(typeof r==="function")n=r,r={};return(0,v.executeOperation)((0,R.getTopology)(this),new b.FindOneAndReplaceOperation(this,e,t,(0,R.resolveOptions)(this,r)),n)}findOneAndUpdate(e,t,r,n){if(typeof r==="function")n=r,r={};return(0,v.executeOperation)((0,R.getTopology)(this),new b.FindOneAndUpdateOperation(this,e,t,(0,R.resolveOptions)(this,r)),n)}aggregate(e=[],t){if(arguments.length>2){throw new c.MongoInvalidArgumentError('Method "collection.aggregate()" accepts at most two arguments')}if(!Array.isArray(e)){throw new c.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages')}if(typeof t==="function"){throw new c.MongoInvalidArgumentError('Argument "options" must not be function')}return new a.AggregationCursor((0,R.getTopology)(this),this.s.namespace,e,(0,R.resolveOptions)(this,t))}watch(e=[],t={}){if(!Array.isArray(e)){t=e;e=[]}return new s.ChangeStream(this,e,(0,R.resolveOptions)(this,t))}mapReduce(e,t,r,n){(0,R.emitWarningOnce)("collection.mapReduce is deprecated. Use the aggregation pipeline instead. Visit https://docs.mongodb.com/manual/reference/map-reduce-to-aggregation-pipeline for more information on how to translate map-reduce operations to the aggregation pipeline.");if("function"===typeof r)n=r,r={};if((r===null||r===void 0?void 0:r.out)==null){throw new c.MongoInvalidArgumentError('Option "out" must be defined, see mongodb docs for possible values')}if("function"===typeof e){e=e.toString()}if("function"===typeof t){t=t.toString()}if("function"===typeof r.finalize){r.finalize=r.finalize.toString()}return(0,v.executeOperation)((0,R.getTopology)(this),new x.MapReduceOperation(this,e,t,(0,R.resolveOptions)(this,r)),n)}initializeUnorderedBulkOp(e){return new o.UnorderedBulkOperation(this,(0,R.resolveOptions)(this,e))}initializeOrderedBulkOp(e){return new i.OrderedBulkOperation(this,(0,R.resolveOptions)(this,e))}getLogger(){return this.s.db.s.logger}get logger(){return this.s.db.s.logger}insert(e,t,r){(0,R.emitWarningOnce)("collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead.");if(typeof t==="function")r=t,t={};t=t||{ordered:false};e=!Array.isArray(e)?[e]:e;if(t.keepGoing===true){t.ordered=false}return this.insertMany(e,t,r)}update(e,t,r,n){(0,R.emitWarningOnce)("collection.update is deprecated. Use updateOne, updateMany, or bulkWrite instead.");if(typeof r==="function")n=r,r={};r=r!==null&&r!==void 0?r:{};return this.updateMany(e,t,r,n)}remove(e,t,r){(0,R.emitWarningOnce)("collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead.");if(typeof t==="function")r=t,t={};t=t!==null&&t!==void 0?t:{};return this.deleteMany(e,t,r)}count(e,t,r){if(typeof e==="function"){r=e,e={},t={}}else{if(typeof t==="function")r=t,t={}}e!==null&&e!==void 0?e:e={};return(0,v.executeOperation)((0,R.getTopology)(this),new d.CountDocumentsOperation(this,e,(0,R.resolveOptions)(this,t)),r)}}t.Collection=Collection},44830:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_OPTIONS=t.OPTIONS=t.parseOptions=t.checkTLSOptions=t.resolveSRVRecord=void 0;const n=r(9523);const i=r(57147);const o=r(61090);const s=r(57310);const a=r(3339);const u=r(62856);const c=r(11424);const l=r(37516);const d=r(95544);const h=r(47394);const m=r(88135);const g=r(44912);const y=r(31256);const v=r(46334);const b=r(3332);const _=r(31942);const E=["authSource","replicaSet","loadBalanced"];const k="loadBalanced option only supported with a single host in the URI";const x="loadBalanced option not supported with a replicaSet option";const C="loadBalanced option not supported when directConnection is provided";function matchesParentDomain(e,t){const r=/^.*?\./;const n=`.${e.replace(r,"")}`;const i=`.${t.replace(r,"")}`;return n.endsWith(i)}function resolveSRVRecord(e,t){if(typeof e.srvHost!=="string"){return t(new d.MongoAPIError('Option "srvHost" must not be empty'))}if(e.srvHost.split(".").length<3){return t(new d.MongoAPIError("URI must include hostname, domain name, and tld"))}const r=e.srvHost;n.resolveSrv(`_${e.srvServiceName}._tcp.${r}`,((i,o)=>{if(i)return t(i);if(o.length===0){return t(new d.MongoAPIError("No addresses found at host"))}for(const{name:e}of o){if(!matchesParentDomain(e,r)){return t(new d.MongoAPIError("Server record does not share hostname with parent URI"))}}const c=o.map((e=>{var t;return b.HostAddress.fromString(`${e.name}:${(t=e.port)!==null&&t!==void 0?t:27017}`)}));const l=validateLoadBalancedOptions(c,e,true);if(l){return t(l)}n.resolveTxt(r,((r,n)=>{var i,o,l;if(r){if(r.code!=="ENODATA"&&r.code!=="ENOTFOUND"){return t(r)}}else{if(n.length>1){return t(new d.MongoParseError("Multiple text records not allowed"))}const r=new s.URLSearchParams(n[0].join(""));const h=[...r.keys()];if(h.some((e=>!E.includes(e)))){return t(new d.MongoParseError(`Text record may only set any of: ${E.join(", ")}`))}if(E.some((e=>r.get(e)===""))){return t(new d.MongoParseError("Cannot have empty URI params in DNS TXT Record"))}const m=(i=r.get("authSource"))!==null&&i!==void 0?i:undefined;const g=(o=r.get("replicaSet"))!==null&&o!==void 0?o:undefined;const y=(l=r.get("loadBalanced"))!==null&&l!==void 0?l:undefined;if(!e.userSpecifiedAuthSource&&m&&e.credentials&&!u.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(e.credentials.mechanism)){e.credentials=a.MongoCredentials.merge(e.credentials,{source:m})}if(!e.userSpecifiedReplicaSet&&g){e.replicaSet=g}if(y==="true"){e.loadBalanced=true}if(e.replicaSet&&e.srvMaxHosts>0){return t(new d.MongoParseError("Cannot combine replicaSet option with srvMaxHosts"))}const v=validateLoadBalancedOptions(c,e,true);if(v){return t(v)}}t(undefined,c)}))}))}t.resolveSRVRecord=resolveSRVRecord;function checkTLSOptions(e){if(!e)return;const check=(t,r)=>{if(Reflect.has(e,t)&&Reflect.has(e,r)){throw new d.MongoParseError(`The '${t}' option cannot be used with '${r}'`)}};check("tlsInsecure","tlsAllowInvalidCertificates");check("tlsInsecure","tlsAllowInvalidHostnames");check("tlsInsecure","tlsDisableCertificateRevocationCheck");check("tlsInsecure","tlsDisableOCSPEndpointCheck");check("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck");check("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck");check("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")}t.checkTLSOptions=checkTLSOptions;const O=new Set(["true","t","1","y","yes"]);const D=new Set(["false","f","0","n","no","-1"]);function getBoolean(e,t){if(typeof t==="boolean")return t;const r=String(t).toLowerCase();if(O.has(r))return true;if(D.has(r))return false;throw new d.MongoParseError(`Expected ${e} to be stringified boolean value, got: ${t}`)}function getInt(e,t){if(typeof t==="number")return Math.trunc(t);const r=Number.parseInt(String(t),10);if(!Number.isNaN(r))return r;throw new d.MongoParseError(`Expected ${e} to be stringified int value, got: ${t}`)}function getUint(e,t){const r=getInt(e,t);if(r<0){throw new d.MongoParseError(`${e} can only be a positive int value, got: ${t}`)}return r}function toRecord(e){const t=Object.create(null);const r=e.split(",");for(const e of r){const[r,n]=e.split(":");if(n==null){throw new d.MongoParseError("Cannot have undefined values in key value pairs")}try{t[r]=getBoolean("",n)}catch{try{t[r]=getInt("",n)}catch{t[r]=n}}}return t}class CaseInsensitiveMap extends Map{constructor(e=[]){super(e.map((([e,t])=>[e.toLowerCase(),t])))}has(e){return super.has(e.toLowerCase())}get(e){return super.get(e.toLowerCase())}set(e,t){return super.set(e.toLowerCase(),t)}delete(e){return super.delete(e.toLowerCase())}}function parseOptions(e,r=undefined,n={}){var i,s,c,h;if(r!=null&&!(r instanceof m.MongoClient)){n=r;r=undefined}const y=new o.default(e);const{hosts:v,isSRV:_}=y;const E=Object.create(null);E.hosts=_?[]:v.map(b.HostAddress.fromString);const k=new CaseInsensitiveMap;if(y.pathname!=="/"&&y.pathname!==""){const e=decodeURIComponent(y.pathname[0]==="/"?y.pathname.slice(1):y.pathname);if(e){k.set("dbName",[e])}}if(y.username!==""){const e={username:decodeURIComponent(y.username)};if(typeof y.password==="string"){e.password=decodeURIComponent(y.password)}k.set("auth",[e])}for(const e of y.searchParams.keys()){const t=[...y.searchParams.getAll(e)];if(t.includes("")){throw new d.MongoAPIError("URI cannot contain options with no value")}if(!k.has(e)){k.set(e,t)}}const x=new CaseInsensitiveMap(Object.entries(n).filter((([,e])=>e!=null)));if(k.has("serverApi")){throw new d.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client")}if(x.has("loadBalanced")){throw new d.MongoParseError("loadBalanced is only a valid option in the URI")}const C=new CaseInsensitiveMap;const O=new Set([...k.keys(),...x.keys(),...t.DEFAULT_OPTIONS.keys()]);for(const e of O){const r=[];if(x.has(e)){r.push(x.get(e))}if(k.has(e)){r.push(...k.get(e))}if(t.DEFAULT_OPTIONS.has(e)){r.push(t.DEFAULT_OPTIONS.get(e))}C.set(e,r)}if(C.has("tlsCertificateKeyFile")&&!C.has("tlsCertificateFile")){C.set("tlsCertificateFile",C.get("tlsCertificateKeyFile"))}if(C.has("tls")||C.has("ssl")){const e=(C.get("tls")||[]).concat(C.get("ssl")||[]).map(getBoolean.bind(null,"tls/ssl"));if(new Set(e).size!==1){throw new d.MongoParseError("All values of tls/ssl must be the same.")}}const D=(0,b.setDifference)(O,Array.from(Object.keys(t.OPTIONS)).map((e=>e.toLowerCase())));if(D.size!==0){const e=D.size>1?"options":"option";const t=D.size>1?"are":"is";throw new d.MongoParseError(`${e} ${Array.from(D).join(", ")} ${t} not supported`)}for(const[e,r]of Object.entries(t.OPTIONS)){const t=C.get(e);if(!t||t.length===0)continue;setOption(E,e,r,t)}if(E.credentials){const e=E.credentials.mechanism===u.AuthMechanism.MONGODB_GSSAPI;const t=E.credentials.mechanism===u.AuthMechanism.MONGODB_X509;const r=E.credentials.mechanism===u.AuthMechanism.MONGODB_AWS;if((e||t)&&C.has("authSource")&&E.credentials.source!=="$external"){throw new d.MongoParseError(`${E.credentials} can only have authSource set to '$external'`)}if(!(e||t||r)&&E.dbName&&!C.has("authSource")){E.credentials=a.MongoCredentials.merge(E.credentials,{source:E.dbName})}E.credentials.validate()}if(!E.dbName){E.dbName="test"}checkTLSOptions(E);if(n.promiseLibrary)g.PromiseProvider.set(n.promiseLibrary);const B=validateLoadBalancedOptions(v,E,_);if(B){throw B}if(r&&E.autoEncryption){l.Encrypter.checkForMongoCrypt();E.encrypter=new l.Encrypter(r,e,n);E.autoEncrypter=E.encrypter.autoEncrypter}E.userSpecifiedAuthSource=x.has("authSource")||k.has("authSource");E.userSpecifiedReplicaSet=x.has("replicaSet")||k.has("replicaSet");if(_){E.srvHost=v[0];if(E.directConnection){throw new d.MongoAPIError("SRV URI does not support directConnection")}if(E.srvMaxHosts>0&&typeof E.replicaSet==="string"){throw new d.MongoParseError("Cannot use srvMaxHosts option with replicaSet")}const e=!x.has("tls")&&!k.has("tls");const t=!x.has("ssl")&&!k.has("ssl");if(e&&t){E.tls=true}}else{const e=k.has("srvMaxHosts")||x.has("srvMaxHosts")||k.has("srvServiceName")||x.has("srvServiceName");if(e){throw new d.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string")}}if(!E.proxyHost&&(E.proxyPort||E.proxyUsername||E.proxyPassword)){throw new d.MongoParseError("Must specify proxyHost if other proxy options are passed")}if(E.proxyUsername&&!E.proxyPassword||!E.proxyUsername&&E.proxyPassword){throw new d.MongoParseError("Can only specify both of proxy username/password or neither")}if(((i=k.get("proxyHost"))===null||i===void 0?void 0:i.length)>1||((s=k.get("proxyPort"))===null||s===void 0?void 0:s.length)>1||((c=k.get("proxyUsername"))===null||c===void 0?void 0:c.length)>1||((h=k.get("proxyPassword"))===null||h===void 0?void 0:h.length)>1){throw new d.MongoParseError("Proxy options cannot be specified multiple times in the connection string")}return E}t.parseOptions=parseOptions;function validateLoadBalancedOptions(e,t,r){if(t.loadBalanced){if(e.length>1){return new d.MongoParseError(k)}if(t.replicaSet){return new d.MongoParseError(x)}if(t.directConnection){return new d.MongoParseError(C)}if(r&&t.srvMaxHosts>0){return new d.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}}}function setOption(e,t,r,n){const{target:i,type:o,transform:s,deprecated:a}=r;const u=i!==null&&i!==void 0?i:t;if(a){const e=typeof a==="string"?`: ${a}`:"";(0,b.emitWarning)(`${t} is a deprecated option${e}`)}switch(o){case"boolean":e[u]=getBoolean(u,n[0]);break;case"int":e[u]=getInt(u,n[0]);break;case"uint":e[u]=getUint(u,n[0]);break;case"string":if(n[0]==null){break}e[u]=String(n[0]);break;case"record":if(!(0,b.isRecord)(n[0])){throw new d.MongoParseError(`${u} must be an object`)}e[u]=n[0];break;case"any":e[u]=n[0];break;default:{if(!s){throw new d.MongoParseError("Descriptors missing a type must define a transform")}const t=s({name:u,options:e,values:n});e[u]=t;break}}}t.OPTIONS={appName:{target:"metadata",transform({options:e,values:[t]}){return(0,b.makeClientMetadata)({...e.driverInfo,appName:String(t)})}},auth:{target:"credentials",transform({name:e,options:t,values:[r]}){if(!(0,b.isRecord)(r,["username","password"])){throw new d.MongoParseError(`${e} must be an object with 'username' and 'password' properties`)}return a.MongoCredentials.merge(t.credentials,{username:r.username,password:r.password})}},authMechanism:{target:"credentials",transform({options:e,values:[t]}){var r,n;const i=Object.values(u.AuthMechanism);const[o]=i.filter((e=>e.match(RegExp(String.raw`\b${t}\b`,"i"))));if(!o){throw new d.MongoParseError(`authMechanism one of ${i}, got ${t}`)}let s=(r=e.credentials)===null||r===void 0?void 0:r.source;if(o===u.AuthMechanism.MONGODB_PLAIN||u.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(o)){s="$external"}let c=(n=e.credentials)===null||n===void 0?void 0:n.password;if(o===u.AuthMechanism.MONGODB_X509&&c===""){c=undefined}return a.MongoCredentials.merge(e.credentials,{mechanism:o,source:s,password:c})}},authMechanismProperties:{target:"credentials",transform({options:e,values:[t]}){if(typeof t==="string"){t=toRecord(t)}if(!(0,b.isRecord)(t)){throw new d.MongoParseError("AuthMechanismProperties must be an object")}return a.MongoCredentials.merge(e.credentials,{mechanismProperties:t})}},authSource:{target:"credentials",transform({options:e,values:[t]}){const r=String(t);return a.MongoCredentials.merge(e.credentials,{source:r})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[e]}){const t=typeof e==="string"?{version:e}:e;const r=t&&t.version;if(!r){throw new d.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(m.ServerApiVersion).join('", "')}"]`)}if(!Object.values(m.ServerApiVersion).some((e=>e===r))){throw new d.MongoParseError(`Invalid server API version=${r}; must be in the following enum: ["${Object.values(m.ServerApiVersion).join('", "')}"]`)}return t}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:e}){const t=new Set;for(const r of e){const e=typeof r==="string"?r.split(","):r;if(!Array.isArray(e)){throw new d.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings")}for(const r of e){if(Object.keys(c.Compressor).includes(String(r))){t.add(String(r))}else{throw new d.MongoInvalidArgumentError(`${r} is not a valid compression mechanism. Must be one of: ${Object.keys(c.Compressor)}.`)}}}return[...t]}},connectTimeoutMS:{default:3e4,type:"uint"},dbName:{type:"string"},directConnection:{default:false,type:"boolean"},driverInfo:{target:"metadata",default:(0,b.makeClientMetadata)(),transform({options:e,values:[t]}){var r,n;if(!(0,b.isRecord)(t))throw new d.MongoParseError("DriverInfo must be an object");return(0,b.makeClientMetadata)({driverInfo:t,appName:(n=(r=e.metadata)===null||r===void 0?void 0:r.application)===null||n===void 0?void 0:n.name})}},enableUtf8Validation:{type:"boolean",default:true},family:{transform({name:e,values:[t]}){const r=getInt(e,t);if(r===4||r===6){return r}throw new d.MongoParseError(`Option 'family' must be 4 or 6 got ${r}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:false,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:e,options:t,values:[r]}){const n=_.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,fsync:getBoolean(e,r)}});if(!n)throw new d.MongoParseError(`Unable to make a writeConcern from fsync=${r}`);return n}},heartbeatFrequencyMS:{default:1e4,type:"uint"},ignoreUndefined:{type:"boolean"},j:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:e,options:t,values:[r]}){const n=_.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,journal:getBoolean(e,r)}});if(!n)throw new d.MongoParseError(`Unable to make a writeConcern from journal=${r}`);return n}},journal:{target:"writeConcern",transform({name:e,options:t,values:[r]}){const n=_.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,journal:getBoolean(e,r)}});if(!n)throw new d.MongoParseError(`Unable to make a writeConcern from journal=${r}`);return n}},keepAlive:{default:true,type:"boolean"},keepAliveInitialDelay:{default:12e4,type:"uint"},loadBalanced:{default:false,type:"boolean"},localThresholdMS:{default:15,type:"uint"},logger:{default:new h.Logger("MongoClient"),transform({values:[e]}){if(e instanceof h.Logger){return e}(0,b.emitWarning)("Alternative loggers might not be supported")}},loggerLevel:{target:"logger",transform({values:[e]}){return new h.Logger("MongoClient",{loggerLevel:e})}},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:e,options:t,values:[r]}){const n=getUint(e,r);if(t.readPreference){return v.ReadPreference.fromOptions({readPreference:{...t.readPreference,maxStalenessSeconds:n}})}else{return new v.ReadPreference("secondary",undefined,{maxStalenessSeconds:n})}}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:false,type:"boolean"},name:{target:"driverInfo",transform({values:[e],options:t}){return{...t.driverInfo,name:String(e)}}},noDelay:{default:true,type:"boolean"},pkFactory:{default:b.DEFAULT_PK_FACTORY,transform({values:[e]}){if((0,b.isRecord)(e,["createPk"])&&typeof e.createPk==="function"){return e}throw new d.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${e}`)}},promiseLibrary:{deprecated:true,type:"any"},promoteBuffers:{type:"boolean"},promoteLongs:{type:"boolean"},promoteValues:{type:"boolean"},proxyHost:{type:"string"},proxyPassword:{type:"string"},proxyPort:{type:"uint"},proxyUsername:{type:"string"},raw:{default:false,type:"boolean"},readConcern:{transform({values:[e],options:t}){if(e instanceof y.ReadConcern||(0,b.isRecord)(e,["level"])){return y.ReadConcern.fromOptions({...t.readConcern,...e})}throw new d.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(e)}`)}},readConcernLevel:{target:"readConcern",transform({values:[e],options:t}){return y.ReadConcern.fromOptions({...t.readConcern,level:e})}},readPreference:{default:v.ReadPreference.primary,transform({values:[e],options:t}){var r,n,i;if(e instanceof v.ReadPreference){return v.ReadPreference.fromOptions({readPreference:{...t.readPreference,...e},...e})}if((0,b.isRecord)(e,["mode"])){const r=v.ReadPreference.fromOptions({readPreference:{...t.readPreference,...e},...e});if(r)return r;else throw new d.MongoParseError(`Cannot make read preference from ${JSON.stringify(e)}`)}if(typeof e==="string"){const o={hedge:(r=t.readPreference)===null||r===void 0?void 0:r.hedge,maxStalenessSeconds:(n=t.readPreference)===null||n===void 0?void 0:n.maxStalenessSeconds};return new v.ReadPreference(e,(i=t.readPreference)===null||i===void 0?void 0:i.tags,o)}}},readPreferenceTags:{target:"readPreference",transform({values:e,options:t}){const r=[];for(const t of e){const e=Object.create(null);if(typeof t==="string"){for(const[r,n]of Object.entries(toRecord(t))){e[r]=n}}if((0,b.isRecord)(t)){for(const[r,n]of Object.entries(t)){e[r]=n}}r.push(e)}return v.ReadPreference.fromOptions({readPreference:t.readPreference,readPreferenceTags:r})}},replicaSet:{type:"string"},retryReads:{default:true,type:"boolean"},retryWrites:{default:true,type:"boolean"},serializeFunctions:{type:"boolean"},serverSelectionTimeoutMS:{default:3e4,type:"uint"},servername:{type:"string"},socketTimeoutMS:{default:0,type:"uint"},srvMaxHosts:{type:"uint",default:0},srvServiceName:{type:"string",default:"mongodb"},ssl:{target:"tls",type:"boolean"},sslCA:{target:"ca",transform({values:[e]}){return i.readFileSync(String(e),{encoding:"ascii"})}},sslCRL:{target:"crl",transform({values:[e]}){return i.readFileSync(String(e),{encoding:"ascii"})}},sslCert:{target:"cert",transform({values:[e]}){return i.readFileSync(String(e),{encoding:"ascii"})}},sslKey:{target:"key",transform({values:[e]}){return i.readFileSync(String(e),{encoding:"ascii"})}},sslPass:{deprecated:true,target:"passphrase",type:"string"},sslValidate:{target:"rejectUnauthorized",type:"boolean"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform({name:e,values:[t]}){return!getBoolean(e,t)}},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform({name:e,values:[t]}){return getBoolean(e,t)?()=>undefined:undefined}},tlsCAFile:{target:"ca",transform({values:[e]}){return i.readFileSync(String(e),{encoding:"ascii"})}},tlsCertificateFile:{target:"cert",transform({values:[e]}){return i.readFileSync(String(e),{encoding:"ascii"})}},tlsCertificateKeyFile:{target:"key",transform({values:[e]}){return i.readFileSync(String(e),{encoding:"ascii"})}},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:e,options:t,values:[r]}){const n=getBoolean(e,r);if(n){t.checkServerIdentity=()=>undefined;t.rejectUnauthorized=false}else{t.checkServerIdentity=t.tlsAllowInvalidHostnames?()=>undefined:undefined;t.rejectUnauthorized=t.tlsAllowInvalidCertificates?false:true}return n}},w:{target:"writeConcern",transform({values:[e],options:t}){return _.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,w:e}})}},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[e],options:t}){if((0,b.isRecord)(e)||e instanceof _.WriteConcern){return _.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,...e}})}else if(e==="majority"||typeof e==="number"){return _.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,w:e}})}throw new d.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(e)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[e],options:t}){const r=_.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,wtimeout:getUint("wtimeout",e)}});if(r)return r;throw new d.MongoParseError(`Cannot make WriteConcern from wtimeout`)}},wtimeoutMS:{target:"writeConcern",transform({values:[e],options:t}){const r=_.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,wtimeoutMS:getUint("wtimeoutMS",e)}});if(r)return r;throw new d.MongoParseError(`Cannot make WriteConcern from wtimeout`)}},zlibCompressionLevel:{default:0,type:"int"},connectionType:{type:"any"},srvPoller:{type:"any"},minDHSize:{type:"any"},pskCallback:{type:"any"},secureContext:{type:"any"},enableTrace:{type:"any"},requestCert:{type:"any"},rejectUnauthorized:{type:"any"},checkServerIdentity:{type:"any"},ALPNProtocols:{type:"any"},SNICallback:{type:"any"},session:{type:"any"},requestOCSP:{type:"any"},localAddress:{type:"any"},localPort:{type:"any"},hints:{type:"any"},lookup:{type:"any"},ca:{type:"any"},cert:{type:"any"},ciphers:{type:"any"},crl:{type:"any"},ecdhCurve:{type:"any"},key:{type:"any"},passphrase:{type:"any"},pfx:{type:"any"},secureProtocol:{type:"any"},index:{type:"any"},useNewUrlParser:{type:"boolean"},useUnifiedTopology:{type:"boolean"}};t.DEFAULT_OPTIONS=new CaseInsensitiveMap(Object.entries(t.OPTIONS).filter((([,e])=>e.default!=null)).map((([e,t])=>[e,t.default])))},72367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LEGACY_HELLO_COMMAND_CAMEL_CASE=t.LEGACY_HELLO_COMMAND=t.MONGO_CLIENT_EVENTS=t.LOCAL_SERVER_EVENTS=t.SERVER_RELAY_EVENTS=t.APM_EVENTS=t.TOPOLOGY_EVENTS=t.CMAP_EVENTS=t.HEARTBEAT_EVENTS=t.SERVER_HEARTBEAT_FAILED=t.SERVER_HEARTBEAT_SUCCEEDED=t.SERVER_HEARTBEAT_STARTED=t.COMMAND_FAILED=t.COMMAND_SUCCEEDED=t.COMMAND_STARTED=t.CLUSTER_TIME_RECEIVED=t.CONNECTION_CHECKED_IN=t.CONNECTION_CHECKED_OUT=t.CONNECTION_CHECK_OUT_FAILED=t.CONNECTION_CHECK_OUT_STARTED=t.CONNECTION_CLOSED=t.CONNECTION_READY=t.CONNECTION_CREATED=t.CONNECTION_POOL_CLEARED=t.CONNECTION_POOL_CLOSED=t.CONNECTION_POOL_CREATED=t.TOPOLOGY_DESCRIPTION_CHANGED=t.TOPOLOGY_CLOSED=t.TOPOLOGY_OPENING=t.SERVER_DESCRIPTION_CHANGED=t.SERVER_CLOSED=t.SERVER_OPENING=t.DESCRIPTION_RECEIVED=t.UNPINNED=t.PINNED=t.MESSAGE=t.ENDED=t.CLOSED=t.CONNECT=t.OPEN=t.CLOSE=t.TIMEOUT=t.ERROR=t.SYSTEM_JS_COLLECTION=t.SYSTEM_COMMAND_COLLECTION=t.SYSTEM_USER_COLLECTION=t.SYSTEM_PROFILE_COLLECTION=t.SYSTEM_INDEX_COLLECTION=t.SYSTEM_NAMESPACE_COLLECTION=void 0;t.SYSTEM_NAMESPACE_COLLECTION="system.namespaces";t.SYSTEM_INDEX_COLLECTION="system.indexes";t.SYSTEM_PROFILE_COLLECTION="system.profile";t.SYSTEM_USER_COLLECTION="system.users";t.SYSTEM_COMMAND_COLLECTION="$cmd";t.SYSTEM_JS_COLLECTION="system.js";t.ERROR="error";t.TIMEOUT="timeout";t.CLOSE="close";t.OPEN="open";t.CONNECT="connect";t.CLOSED="closed";t.ENDED="ended";t.MESSAGE="message";t.PINNED="pinned";t.UNPINNED="unpinned";t.DESCRIPTION_RECEIVED="descriptionReceived";t.SERVER_OPENING="serverOpening";t.SERVER_CLOSED="serverClosed";t.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged";t.TOPOLOGY_OPENING="topologyOpening";t.TOPOLOGY_CLOSED="topologyClosed";t.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged";t.CONNECTION_POOL_CREATED="connectionPoolCreated";t.CONNECTION_POOL_CLOSED="connectionPoolClosed";t.CONNECTION_POOL_CLEARED="connectionPoolCleared";t.CONNECTION_CREATED="connectionCreated";t.CONNECTION_READY="connectionReady";t.CONNECTION_CLOSED="connectionClosed";t.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted";t.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed";t.CONNECTION_CHECKED_OUT="connectionCheckedOut";t.CONNECTION_CHECKED_IN="connectionCheckedIn";t.CLUSTER_TIME_RECEIVED="clusterTimeReceived";t.COMMAND_STARTED="commandStarted";t.COMMAND_SUCCEEDED="commandSucceeded";t.COMMAND_FAILED="commandFailed";t.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted";t.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded";t.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed";t.HEARTBEAT_EVENTS=Object.freeze([t.SERVER_HEARTBEAT_STARTED,t.SERVER_HEARTBEAT_SUCCEEDED,t.SERVER_HEARTBEAT_FAILED]);t.CMAP_EVENTS=Object.freeze([t.CONNECTION_POOL_CREATED,t.CONNECTION_POOL_CLOSED,t.CONNECTION_CREATED,t.CONNECTION_READY,t.CONNECTION_CLOSED,t.CONNECTION_CHECK_OUT_STARTED,t.CONNECTION_CHECK_OUT_FAILED,t.CONNECTION_CHECKED_OUT,t.CONNECTION_CHECKED_IN,t.CONNECTION_POOL_CLEARED]);t.TOPOLOGY_EVENTS=Object.freeze([t.SERVER_OPENING,t.SERVER_CLOSED,t.SERVER_DESCRIPTION_CHANGED,t.TOPOLOGY_OPENING,t.TOPOLOGY_CLOSED,t.TOPOLOGY_DESCRIPTION_CHANGED,t.ERROR,t.TIMEOUT,t.CLOSE]);t.APM_EVENTS=Object.freeze([t.COMMAND_STARTED,t.COMMAND_SUCCEEDED,t.COMMAND_FAILED]);t.SERVER_RELAY_EVENTS=Object.freeze([t.SERVER_HEARTBEAT_STARTED,t.SERVER_HEARTBEAT_SUCCEEDED,t.SERVER_HEARTBEAT_FAILED,t.COMMAND_STARTED,t.COMMAND_SUCCEEDED,t.COMMAND_FAILED,...t.CMAP_EVENTS]);t.LOCAL_SERVER_EVENTS=Object.freeze([t.CONNECT,t.DESCRIPTION_RECEIVED,t.CLOSED,t.ENDED]);t.MONGO_CLIENT_EVENTS=Object.freeze([...t.CMAP_EVENTS,...t.APM_EVENTS,...t.TOPOLOGY_EVENTS,...t.HEARTBEAT_EVENTS]);t.LEGACY_HELLO_COMMAND="ismaster";t.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"},53734:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertUninitialized=t.AbstractCursor=t.CURSOR_FLAGS=void 0;const n=r(12781);const i=r(85539);const o=r(95544);const s=r(18284);const a=r(91082);const u=r(90940);const c=r(31256);const l=r(46334);const d=r(47463);const h=r(3332);const m=Symbol("id");const g=Symbol("documents");const y=Symbol("server");const v=Symbol("namespace");const b=Symbol("topology");const _=Symbol("session");const E=Symbol("options");const k=Symbol("transform");const x=Symbol("initialized");const C=Symbol("closed");const O=Symbol("killed");t.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class AbstractCursor extends s.TypedEventEmitter{constructor(e,t,r={}){super();this[b]=e;this[v]=t;this[g]=[];this[x]=false;this[C]=false;this[O]=false;this[E]={readPreference:r.readPreference&&r.readPreference instanceof l.ReadPreference?r.readPreference:l.ReadPreference.primary,...(0,i.pluckBSONSerializeOptions)(r)};const n=c.ReadConcern.fromOptions(r);if(n){this[E].readConcern=n}if(typeof r.batchSize==="number"){this[E].batchSize=r.batchSize}if(r.comment!=null){this[E].comment=r.comment}if(typeof r.maxTimeMS==="number"){this[E].maxTimeMS=r.maxTimeMS}if(r.session instanceof d.ClientSession){this[_]=r.session}}get id(){return this[m]}get topology(){return this[b]}get server(){return this[y]}get namespace(){return this[v]}get readPreference(){return this[E].readPreference}get readConcern(){return this[E].readConcern}get session(){return this[_]}set session(e){this[_]=e}get cursorOptions(){return this[E]}get closed(){return this[C]}get killed(){return this[O]}get loadBalanced(){return this[b].loadBalanced}bufferedCount(){return this[g].length}readBufferedDocuments(e){return this[g].splice(0,e!==null&&e!==void 0?e:this[g].length)}[Symbol.asyncIterator](){return{next:()=>this.next().then((e=>e!=null?{value:e,done:false}:{value:undefined,done:true}))}}stream(e){if(e===null||e===void 0?void 0:e.transform){const t=e.transform;const r=makeCursorStream(this);return r.pipe(new n.Transform({objectMode:true,highWaterMark:1,transform(e,r,n){try{const r=t(e);n(undefined,r)}catch(e){n(e)}}}))}return makeCursorStream(this)}hasNext(e){return(0,h.maybePromise)(e,(e=>{if(this[m]===i.Long.ZERO){return e(undefined,false)}if(this[g].length){return e(undefined,true)}next(this,true,((t,r)=>{if(t)return e(t);if(r){this[g].unshift(r);e(undefined,true);return}e(undefined,false)}))}))}next(e){return(0,h.maybePromise)(e,(e=>{if(this[m]===i.Long.ZERO){return e(new o.MongoCursorExhaustedError)}next(this,true,e)}))}tryNext(e){return(0,h.maybePromise)(e,(e=>{if(this[m]===i.Long.ZERO){return e(new o.MongoCursorExhaustedError)}next(this,false,e)}))}forEach(e,t){if(typeof e!=="function"){throw new o.MongoInvalidArgumentError('Argument "iterator" must be a function')}return(0,h.maybePromise)(t,(t=>{const r=this[k];const fetchDocs=()=>{next(this,true,((n,i)=>{if(n||i==null)return t(n);let o;try{o=e(i)}catch(e){return t(e)}if(o===false)return t();const s=this[g].splice(0,this[g].length);for(let n=0;ncleanupCursor(this,{needsToEmitClosed:r},e)))}toArray(e){return(0,h.maybePromise)(e,(e=>{const t=[];const r=this[k];const fetchDocs=()=>{next(this,true,((n,i)=>{if(n)return e(n);if(i==null)return e(undefined,t);t.push(i);const o=r?this[g].splice(0,this[g].length).map(r):this[g].splice(0,this[g].length);if(o){t.push(...o)}fetchDocs()}))};fetchDocs()}))}addCursorFlag(e,r){assertUninitialized(this);if(!t.CURSOR_FLAGS.includes(e)){throw new o.MongoInvalidArgumentError(`Flag ${e} is not one of ${t.CURSOR_FLAGS}`)}if(typeof r!=="boolean"){throw new o.MongoInvalidArgumentError(`Flag ${e} must be a boolean value`)}this[E][e]=r;return this}map(e){assertUninitialized(this);const t=this[k];if(t){this[k]=r=>e(t(r))}else{this[k]=e}return this}withReadPreference(e){assertUninitialized(this);if(e instanceof l.ReadPreference){this[E].readPreference=e}else if(typeof e==="string"){this[E].readPreference=l.ReadPreference.fromString(e)}else{throw new o.MongoInvalidArgumentError(`Invalid read preference: ${e}`)}return this}withReadConcern(e){assertUninitialized(this);const t=c.ReadConcern.fromOptions({readConcern:e});if(t){this[E].readConcern=t}return this}maxTimeMS(e){assertUninitialized(this);if(typeof e!=="number"){throw new o.MongoInvalidArgumentError("Argument for maxTimeMS must be a number")}this[E].maxTimeMS=e;return this}batchSize(e){assertUninitialized(this);if(this[E].tailable){throw new o.MongoTailableCursorError("Tailable cursor does not support batchSize")}if(typeof e!=="number"){throw new o.MongoInvalidArgumentError('Operation "batchSize" requires an integer')}this[E].batchSize=e;return this}rewind(){if(!this[x]){return}this[m]=undefined;this[g]=[];this[C]=false;this[O]=false;this[x]=false;const e=this[_];if(e){if(e.explicit===false&&!e.hasEnded){e.endSession()}this[_]=undefined}}_getMore(e,t){const r=this[m];const n=this[v];const i=this[y];if(r==null){t(new o.MongoRuntimeError("Unable to iterate cursor with no id"));return}if(i==null){t(new o.MongoRuntimeError("Unable to iterate cursor without selected server"));return}const s=new u.GetMoreOperation(n,r,i,{...this[E],session:this[_],batchSize:e});(0,a.executeOperation)(this.topology,s,t)}}t.AbstractCursor=AbstractCursor;AbstractCursor.CLOSE="close";function nextDocument(e){if(e[g]==null||!e[g].length){return null}const t=e[g].shift();if(t){const r=e[k];if(r){return r(t)}return t}return null}function next(e,t,r){const n=e[m];if(e.closed){return r(undefined,null)}if(e[g]&&e[g].length){r(undefined,nextDocument(e));return}if(n==null){if(e[_]==null&&e[b].hasSessionSupport()){e[_]=e[b].startSession({owner:e,explicit:false})}e._initialize(e[_],((n,o)=>{if(o){const t=o.response;e[y]=o.server;e[_]=o.session;if(t.cursor){e[m]=typeof t.cursor.id==="number"?i.Long.fromNumber(t.cursor.id):t.cursor.id;if(t.cursor.ns){e[v]=(0,h.ns)(t.cursor.ns)}e[g]=t.cursor.firstBatch}else{e[m]=typeof t.cursorId==="number"?i.Long.fromNumber(t.cursorId):t.cursorId;e[g]=t.documents}if(e[m]==null){e[m]=i.Long.ZERO;e[g]=[o.response]}}e[x]=true;if(n||cursorIsDead(e)){return cleanupCursor(e,{error:n},(()=>r(n,nextDocument(e))))}next(e,t,r)}));return}if(cursorIsDead(e)){return cleanupCursor(e,undefined,(()=>r(undefined,null)))}const o=e[E].batchSize||1e3;e._getMore(o,((n,o)=>{if(o){const t=typeof o.cursor.id==="number"?i.Long.fromNumber(o.cursor.id):o.cursor.id;e[g]=o.cursor.nextBatch;e[m]=t}if(n||cursorIsDead(e)){return cleanupCursor(e,{error:n},(()=>r(n,nextDocument(e))))}if(e[g].length===0&&t===false){return r(undefined,null)}next(e,t,r)}))}function cursorIsDead(e){const t=e[m];return!!t&&t.isZero()}function cleanupCursor(e,t,r){var n;const s=e[m];const a=e[v];const u=e[y];const c=e[_];const l=t===null||t===void 0?void 0:t.error;const h=(n=t===null||t===void 0?void 0:t.needsToEmitClosed)!==null&&n!==void 0?n:e[g].length===0;if(l){if(e.loadBalanced&&l instanceof o.MongoNetworkError){return completeCleanup()}}if(s==null||u==null||s.isZero()||a==null){if(h){e[C]=true;e[m]=i.Long.ZERO;e.emit(AbstractCursor.CLOSE)}if(c){if(c.owner===e){return c.endSession({error:l},r)}if(!c.inTransaction()){(0,d.maybeClearPinnedConnection)(c,{error:l})}}return r()}function completeCleanup(){if(c){if(c.owner===e){return c.endSession({error:l},(()=>{e.emit(AbstractCursor.CLOSE);r()}))}if(!c.inTransaction()){(0,d.maybeClearPinnedConnection)(c,{error:l})}}e.emit(AbstractCursor.CLOSE);return r()}e[O]=true;u.killCursors(a,[s],{...(0,i.pluckBSONSerializeOptions)(e[E]),session:c},(()=>completeCleanup()))}function assertUninitialized(e){if(e[x]){throw new o.MongoCursorInUseError}}t.assertUninitialized=assertUninitialized;function makeCursorStream(e){const t=new n.Readable({objectMode:true,autoDestroy:false,highWaterMark:1});let r=false;let i=false;let o=true;t._read=function(){if(r===false){o=false;r=true}if(!i){i=true;readNext()}};t._destroy=function(t,r){if(o){e.close((e=>process.nextTick(r,e||t)))}else{r(t)}};function readNext(){o=false;next(e,true,((r,n)=>{o=r?!e.closed:n!=null;if(r){if(r.message.match(/server is closed/)){e.close();return t.push(null)}if(r.message.match(/interrupted/)){return t.push(null)}return t.destroy(r)}if(n==null){t.push(null)}else if(t.destroyed){e.close()}else{if(t.push(n)){return readNext()}i=false}}))}return t}},72429:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AggregationCursor=void 0;const n=r(86392);const i=r(91082);const o=r(3332);const s=r(53734);const a=Symbol("pipeline");const u=Symbol("options");class AggregationCursor extends s.AbstractCursor{constructor(e,t,r=[],n={}){super(e,t,n);this[a]=r;this[u]=n}get pipeline(){return this[a]}clone(){const e=(0,o.mergeOptions)({},this[u]);delete e.session;return new AggregationCursor(this.topology,this.namespace,this[a],{...e})}map(e){return super.map(e)}_initialize(e,t){const r=new n.AggregateOperation(this.namespace,this[a],{...this[u],...this.cursorOptions,session:e});(0,i.executeOperation)(this.topology,r,((n,i)=>{if(n||i==null)return t(n);t(undefined,{server:r.server,session:e,response:i})}))}explain(e,t){if(typeof e==="function")t=e,e=true;if(e==null)e=true;return(0,i.executeOperation)(this.topology,new n.AggregateOperation(this.namespace,this[a],{...this[u],...this.cursorOptions,explain:e}),t)}group(e){(0,s.assertUninitialized)(this);this[a].push({$group:e});return this}limit(e){(0,s.assertUninitialized)(this);this[a].push({$limit:e});return this}match(e){(0,s.assertUninitialized)(this);this[a].push({$match:e});return this}out(e){(0,s.assertUninitialized)(this);this[a].push({$out:e});return this}project(e){(0,s.assertUninitialized)(this);this[a].push({$project:e});return this}lookup(e){(0,s.assertUninitialized)(this);this[a].push({$lookup:e});return this}redact(e){(0,s.assertUninitialized)(this);this[a].push({$redact:e});return this}skip(e){(0,s.assertUninitialized)(this);this[a].push({$skip:e});return this}sort(e){(0,s.assertUninitialized)(this);this[a].push({$sort:e});return this}unwind(e){(0,s.assertUninitialized)(this);this[a].push({$unwind:e});return this}geoNear(e){(0,s.assertUninitialized)(this);this[a].push({$geoNear:e});return this}}t.AggregationCursor=AggregationCursor},76553:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FindCursor=t.FLAGS=void 0;const n=r(95544);const i=r(3152);const o=r(91082);const s=r(3682);const a=r(73416);const u=r(3332);const c=r(53734);const l=Symbol("filter");const d=Symbol("numReturned");const h=Symbol("builtOptions");t.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class FindCursor extends c.AbstractCursor{constructor(e,t,r,n={}){super(e,t,n);this[l]=r||{};this[h]=n;if(n.sort!=null){this[h].sort=(0,a.formatSort)(n.sort)}}clone(){const e=(0,u.mergeOptions)({},this[h]);delete e.session;return new FindCursor(this.topology,this.namespace,this[l],{...e})}map(e){return super.map(e)}_initialize(e,t){const r=new s.FindOperation(undefined,this.namespace,this[l],{...this[h],...this.cursorOptions,session:e});(0,o.executeOperation)(this.topology,r,((n,i)=>{if(n||i==null)return t(n);if(i.cursor){this[d]=i.cursor.firstBatch.length}else{this[d]=i.documents?i.documents.length:0}t(undefined,{server:r.server,session:e,response:i})}))}_getMore(e,t){const r=this[d];if(r){const n=this[h].limit;e=n&&n>0&&r+e>n?n-r:e;if(e<=0){return this.close(t)}}super._getMore(e,((e,r)=>{if(e)return t(e);if(r){this[d]=this[d]+r.cursor.nextBatch.length}t(undefined,r)}))}count(e,t){if(typeof e==="boolean"){throw new n.MongoInvalidArgumentError("Invalid first parameter to count")}if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};return(0,o.executeOperation)(this.topology,new i.CountOperation(this.namespace,this[l],{...this[h],...this.cursorOptions,...e}),t)}explain(e,t){if(typeof e==="function")t=e,e=true;if(e==null)e=true;return(0,o.executeOperation)(this.topology,new s.FindOperation(undefined,this.namespace,this[l],{...this[h],...this.cursorOptions,explain:e}),t)}filter(e){(0,c.assertUninitialized)(this);this[l]=e;return this}hint(e){(0,c.assertUninitialized)(this);this[h].hint=e;return this}min(e){(0,c.assertUninitialized)(this);this[h].min=e;return this}max(e){(0,c.assertUninitialized)(this);this[h].max=e;return this}returnKey(e){(0,c.assertUninitialized)(this);this[h].returnKey=e;return this}showRecordId(e){(0,c.assertUninitialized)(this);this[h].showRecordId=e;return this}addQueryModifier(e,t){(0,c.assertUninitialized)(this);if(e[0]!=="$"){throw new n.MongoInvalidArgumentError(`${e} is not a valid query modifier`)}const r=e.substr(1);switch(r){case"comment":this[h].comment=t;break;case"explain":this[h].explain=t;break;case"hint":this[h].hint=t;break;case"max":this[h].max=t;break;case"maxTimeMS":this[h].maxTimeMS=t;break;case"min":this[h].min=t;break;case"orderby":this[h].sort=(0,a.formatSort)(t);break;case"query":this[l]=t;break;case"returnKey":this[h].returnKey=t;break;case"showDiskLoc":this[h].showRecordId=t;break;default:throw new n.MongoInvalidArgumentError(`Invalid query modifier: ${e}`)}return this}comment(e){(0,c.assertUninitialized)(this);this[h].comment=e;return this}maxAwaitTimeMS(e){(0,c.assertUninitialized)(this);if(typeof e!=="number"){throw new n.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number")}this[h].maxAwaitTimeMS=e;return this}maxTimeMS(e){(0,c.assertUninitialized)(this);if(typeof e!=="number"){throw new n.MongoInvalidArgumentError("Argument for maxTimeMS must be a number")}this[h].maxTimeMS=e;return this}project(e){(0,c.assertUninitialized)(this);this[h].projection=e;return this}sort(e,t){(0,c.assertUninitialized)(this);if(this[h].tailable){throw new n.MongoTailableCursorError("Tailable cursor does not support sorting")}this[h].sort=(0,a.formatSort)(e,t);return this}allowDiskUse(){(0,c.assertUninitialized)(this);if(!this[h].sort){throw new n.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification')}this[h].allowDiskUse=true;return this}collation(e){(0,c.assertUninitialized)(this);this[h].collation=e;return this}limit(e){(0,c.assertUninitialized)(this);if(this[h].tailable){throw new n.MongoTailableCursorError("Tailable cursor does not support limit")}if(typeof e!=="number"){throw new n.MongoInvalidArgumentError('Operation "limit" requires an integer')}this[h].limit=e;return this}skip(e){(0,c.assertUninitialized)(this);if(this[h].tailable){throw new n.MongoTailableCursorError("Tailable cursor does not support skip")}if(typeof e!=="number"){throw new n.MongoInvalidArgumentError('Operation "skip" requires an integer')}this[h].skip=e;return this}}t.FindCursor=FindCursor},49150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Db=void 0;const n=r(63189);const i=r(85539);const o=r(61521);const s=r(63978);const a=r(72367);const u=r(72429);const c=r(95544);const l=r(47394);const d=r(95381);const h=r(83501);const m=r(52661);const g=r(4992);const y=r(91082);const v=r(35008);const b=r(27228);const _=r(91435);const E=r(13328);const k=r(15149);const x=r(3524);const C=r(38357);const O=r(65870);const D=r(31256);const B=r(46334);const P=r(3332);const I=r(31942);const R=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","loggerLevel","logger","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class Db{constructor(e,t,r){var n;r=r!==null&&r!==void 0?r:{};r=(0,P.filterOptions)(r,R);validateDatabaseName(t);this.s={client:e,options:r,logger:new l.Logger("Db",r),readPreference:B.ReadPreference.fromOptions(r),bsonOptions:(0,i.resolveBSONOptions)(r,e),pkFactory:(n=r===null||r===void 0?void 0:r.pkFactory)!==null&&n!==void 0?n:P.DEFAULT_PK_FACTORY,readConcern:D.ReadConcern.fromOptions(r),writeConcern:I.WriteConcern.fromOptions(r),namespace:new P.MongoDBNamespace(t)}}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get slaveOk(){return this.secondaryOk}get secondaryOk(){var e;return((e=this.s.readPreference)===null||e===void 0?void 0:e.preference)!=="primary"||false}get readConcern(){return this.s.readConcern}get readPreference(){if(this.s.readPreference==null){return this.s.client.readPreference}return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get namespace(){return this.s.namespace.toString()}createCollection(e,t,r){if(typeof t==="function")r=t,t={};return(0,y.executeOperation)((0,P.getTopology)(this),new m.CreateCollectionOperation(this,e,(0,P.resolveOptions)(this,t)),r)}command(e,t,r){if(typeof t==="function")r=t,t={};return(0,y.executeOperation)((0,P.getTopology)(this),new x.RunCommandOperation(this,e,t!==null&&t!==void 0?t:{}),r)}aggregate(e=[],t){if(arguments.length>2){throw new c.MongoInvalidArgumentError('Method "db.aggregate()" accepts at most two arguments')}if(typeof e==="function"){throw new c.MongoInvalidArgumentError('Argument "pipeline" must not be function')}if(typeof t==="function"){throw new c.MongoInvalidArgumentError('Argument "options" must not be function')}return new u.AggregationCursor((0,P.getTopology)(this),this.s.namespace,e,(0,P.resolveOptions)(this,t))}admin(){return new n.Admin(this)}collection(e,t={}){if(typeof t==="function"){throw new c.MongoInvalidArgumentError("The callback form of this helper has been removed.")}const r=(0,P.resolveOptions)(this,t);return new s.Collection(this,e,r)}stats(e,t){if(typeof e==="function")t=e,e={};return(0,y.executeOperation)((0,P.getTopology)(this),new O.DbStatsOperation(this,(0,P.resolveOptions)(this,e)),t)}listCollections(e={},t={}){return new b.ListCollectionsCursor(this,e,(0,P.resolveOptions)(this,t))}renameCollection(e,t,r,n){if(typeof r==="function")n=r,r={};r={...r,readPreference:B.ReadPreference.PRIMARY};r.new_collection=true;return(0,y.executeOperation)((0,P.getTopology)(this),new k.RenameOperation(this.collection(e),t,r),n)}dropCollection(e,t,r){if(typeof t==="function")r=t,t={};return(0,y.executeOperation)((0,P.getTopology)(this),new g.DropCollectionOperation(this,e,(0,P.resolveOptions)(this,t)),r)}dropDatabase(e,t){if(typeof e==="function")t=e,e={};return(0,y.executeOperation)((0,P.getTopology)(this),new g.DropDatabaseOperation(this,(0,P.resolveOptions)(this,e)),t)}collections(e,t){if(typeof e==="function")t=e,e={};return(0,y.executeOperation)((0,P.getTopology)(this),new h.CollectionsOperation(this,(0,P.resolveOptions)(this,e)),t)}createIndex(e,t,r,n){if(typeof r==="function")n=r,r={};return(0,y.executeOperation)((0,P.getTopology)(this),new v.CreateIndexOperation(this,e,t,(0,P.resolveOptions)(this,r)),n)}addUser(e,t,r,n){if(typeof t==="function"){n=t,t=undefined,r={}}else if(typeof t!=="string"){if(typeof r==="function"){n=r,r=t,t=undefined}else{r=t,n=undefined,t=undefined}}else{if(typeof r==="function")n=r,r={}}return(0,y.executeOperation)((0,P.getTopology)(this),new d.AddUserOperation(this,e,t,(0,P.resolveOptions)(this,r)),n)}removeUser(e,t,r){if(typeof t==="function")r=t,t={};return(0,y.executeOperation)((0,P.getTopology)(this),new E.RemoveUserOperation(this,e,(0,P.resolveOptions)(this,t)),r)}setProfilingLevel(e,t,r){if(typeof t==="function")r=t,t={};return(0,y.executeOperation)((0,P.getTopology)(this),new C.SetProfilingLevelOperation(this,e,(0,P.resolveOptions)(this,t)),r)}profilingLevel(e,t){if(typeof e==="function")t=e,e={};return(0,y.executeOperation)((0,P.getTopology)(this),new _.ProfilingLevelOperation(this,(0,P.resolveOptions)(this,e)),t)}indexInformation(e,t,r){if(typeof t==="function")r=t,t={};return(0,y.executeOperation)((0,P.getTopology)(this),new v.IndexInformationOperation(this,e,(0,P.resolveOptions)(this,t)),r)}unref(){(0,P.getTopology)(this).unref()}watch(e=[],t={}){if(!Array.isArray(e)){t=e;e=[]}return new o.ChangeStream(this,e,(0,P.resolveOptions)(this,t))}getLogger(){return this.s.logger}get logger(){return this.s.logger}}t.Db=Db;Db.SYSTEM_NAMESPACE_COLLECTION=a.SYSTEM_NAMESPACE_COLLECTION;Db.SYSTEM_INDEX_COLLECTION=a.SYSTEM_INDEX_COLLECTION;Db.SYSTEM_PROFILE_COLLECTION=a.SYSTEM_PROFILE_COLLECTION;Db.SYSTEM_USER_COLLECTION=a.SYSTEM_USER_COLLECTION;Db.SYSTEM_COMMAND_COLLECTION=a.SYSTEM_COMMAND_COLLECTION;Db.SYSTEM_JS_COLLECTION=a.SYSTEM_JS_COLLECTION;function validateDatabaseName(e){if(typeof e!=="string")throw new c.MongoInvalidArgumentError("Database name must be a string");if(e.length===0)throw new c.MongoInvalidArgumentError("Database name cannot be the empty string");if(e==="$external")return;const t=[" ",".","$","/","\\"];for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AutoEncryptionLoggerLevel=t.aws4=t.saslprep=t.Snappy=t.Kerberos=t.PKG_VERSION=void 0;const n=r(95544);const i=r(3332);t.PKG_VERSION=Symbol("kPkgVersion");function makeErrorModule(e){const t=e?{kModuleError:e}:{};return new Proxy(t,{get:(t,r)=>{if(r==="kModuleError"){return e}throw e},set:()=>{throw e}})}t.Kerberos=makeErrorModule(new n.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication"));try{t.Kerberos=r(64923)}catch{}t.Snappy=makeErrorModule(new n.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression"));try{t.Snappy=r(38682);try{t.Snappy[t.PKG_VERSION]=(0,i.parsePackageVersion)(r(56271))}catch{}}catch{}t.saslprep=makeErrorModule(new n.MongoMissingDependencyError("Optional module `saslprep` not found."+" Please install it to enable Stringprep Profile for User Names and Passwords"));try{t.saslprep=r(96136)}catch{}t.aws4=makeErrorModule(new n.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{t.aws4=r(37368)}catch{}t.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4})},37516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Encrypter=void 0;const n=r(85539);const i=r(72367);const o=r(95544);const s=r(88135);let a;const u=Symbol("internalClient");class Encrypter{constructor(e,t,r){if(typeof r.autoEncryption!=="object"){throw new o.MongoInvalidArgumentError('Option "autoEncryption" must be specified')}this.bypassAutoEncryption=!!r.autoEncryption.bypassAutoEncryption;this.needsConnecting=false;if(r.maxPoolSize===0&&r.autoEncryption.keyVaultClient==null){r.autoEncryption.keyVaultClient=e}else if(r.autoEncryption.keyVaultClient==null){r.autoEncryption.keyVaultClient=this.getInternalClient(e,t,r)}if(this.bypassAutoEncryption){r.autoEncryption.metadataClient=undefined}else if(r.maxPoolSize===0){r.autoEncryption.metadataClient=e}else{r.autoEncryption.metadataClient=this.getInternalClient(e,t,r)}if(r.proxyHost){r.autoEncryption.proxyOptions={proxyHost:r.proxyHost,proxyPort:r.proxyPort,proxyUsername:r.proxyUsername,proxyPassword:r.proxyPassword}}r.autoEncryption.bson=Object.create(null);r.autoEncryption.bson.serialize=n.serialize;r.autoEncryption.bson.deserialize=n.deserialize;this.autoEncrypter=new a(e,r.autoEncryption)}getInternalClient(e,t,r){if(!this[u]){const n={};for(const e of Object.keys(r)){if(["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(e))continue;Reflect.set(n,e,Reflect.get(r,e))}n.minPoolSize=0;this[u]=new s.MongoClient(t,n);for(const t of i.MONGO_CLIENT_EVENTS){for(const r of e.listeners(t)){this[u].on(t,r)}}e.on("newListener",((e,t)=>{this[u].on(e,t)}));this.needsConnecting=true}return this[u]}connectInternalClient(e){if(this.needsConnecting){this.needsConnecting=false;return this[u].connect(e)}return e()}close(e,t,r){this.autoEncrypter.teardown(!!t,(n=>{if(this[u]&&e!==this[u]){return this[u].close(t,r)}r(n)}))}static checkForMongoCrypt(){let e=undefined;try{e=r(5046)}catch(e){throw new o.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. "+"Please add `mongodb-client-encryption` as a dependency of your project")}a=e.extension(r(13297)).AutoEncrypter}}t.Encrypter=Encrypter},95544:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isResumableError=t.isNetworkTimeoutError=t.isSDAMUnrecoverableError=t.isNodeShuttingDownError=t.isRetryableError=t.isRetryableWriteError=t.isRetryableEndTransactionError=t.MongoWriteConcernError=t.MongoServerSelectionError=t.MongoSystemError=t.MongoMissingDependencyError=t.MongoMissingCredentialsError=t.MongoCompatibilityError=t.MongoInvalidArgumentError=t.MongoParseError=t.MongoNetworkTimeoutError=t.MongoNetworkError=t.isNetworkErrorBeforeHandshake=t.MongoTopologyClosedError=t.MongoCursorExhaustedError=t.MongoServerClosedError=t.MongoCursorInUseError=t.MongoGridFSChunkError=t.MongoGridFSStreamError=t.MongoTailableCursorError=t.MongoChangeStreamError=t.MongoKerberosError=t.MongoExpiredSessionError=t.MongoTransactionError=t.MongoNotConnectedError=t.MongoDecompressionError=t.MongoBatchReExecutionError=t.MongoRuntimeError=t.MongoAPIError=t.MongoDriverError=t.MongoServerError=t.MongoError=t.GET_MORE_RESUMABLE_CODES=t.MONGODB_ERROR_CODES=t.NODE_IS_RECOVERING_ERROR_MESSAGE=t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;const r=Symbol("errorLabels");t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE="not master";t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE="not master or secondary";t.NODE_IS_RECOVERING_ERROR_MESSAGE="node is recovering";t.MONGODB_ERROR_CODES=Object.freeze({HostUnreachable:6,HostNotFound:7,NetworkTimeout:89,ShutdownInProgress:91,PrimarySteppedDown:189,ExceededTimeLimit:262,SocketException:9001,NotWritablePrimary:10107,InterruptedAtShutdown:11600,InterruptedDueToReplStateChange:11602,NotPrimaryNoSecondaryOk:13435,NotPrimaryOrSecondary:13436,StaleShardVersion:63,StaleEpoch:150,StaleConfig:13388,RetryChangeStream:234,FailedToSatisfyReadPreference:133,CursorNotFound:43,LegacyNotPrimary:10058,WriteConcernFailed:64,NamespaceNotFound:26,IllegalOperation:20,MaxTimeMSExpired:50,UnknownReplWriteConcern:79,UnsatisfiableWriteConcern:100});t.GET_MORE_RESUMABLE_CODES=new Set([t.MONGODB_ERROR_CODES.HostUnreachable,t.MONGODB_ERROR_CODES.HostNotFound,t.MONGODB_ERROR_CODES.NetworkTimeout,t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.ExceededTimeLimit,t.MONGODB_ERROR_CODES.SocketException,t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,t.MONGODB_ERROR_CODES.StaleShardVersion,t.MONGODB_ERROR_CODES.StaleEpoch,t.MONGODB_ERROR_CODES.StaleConfig,t.MONGODB_ERROR_CODES.RetryChangeStream,t.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,t.MONGODB_ERROR_CODES.CursorNotFound]);class MongoError extends Error{constructor(e){if(e instanceof Error){super(e.message)}else{super(e)}}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(e){if(this[r]==null){return false}return this[r].has(e)}addErrorLabel(e){if(this[r]==null){this[r]=new Set}this[r].add(e)}get errorLabels(){return this[r]?Array.from(this[r]):[]}}t.MongoError=MongoError;class MongoServerError extends MongoError{constructor(e){super(e.message||e.errmsg||e.$err||"n/a");if(e.errorLabels){this[r]=new Set(e.errorLabels)}for(const t in e){if(t!=="errorLabels"&&t!=="errmsg"&&t!=="message")this[t]=e[t]}}get name(){return"MongoServerError"}}t.MongoServerError=MongoServerError;class MongoDriverError extends MongoError{constructor(e){super(e)}get name(){return"MongoDriverError"}}t.MongoDriverError=MongoDriverError;class MongoAPIError extends MongoDriverError{constructor(e){super(e)}get name(){return"MongoAPIError"}}t.MongoAPIError=MongoAPIError;class MongoRuntimeError extends MongoDriverError{constructor(e){super(e)}get name(){return"MongoRuntimeError"}}t.MongoRuntimeError=MongoRuntimeError;class MongoBatchReExecutionError extends MongoAPIError{constructor(e="This batch has already been executed, create new batch to execute"){super(e)}get name(){return"MongoBatchReExecutionError"}}t.MongoBatchReExecutionError=MongoBatchReExecutionError;class MongoDecompressionError extends MongoRuntimeError{constructor(e){super(e)}get name(){return"MongoDecompressionError"}}t.MongoDecompressionError=MongoDecompressionError;class MongoNotConnectedError extends MongoAPIError{constructor(e){super(e)}get name(){return"MongoNotConnectedError"}}t.MongoNotConnectedError=MongoNotConnectedError;class MongoTransactionError extends MongoAPIError{constructor(e){super(e)}get name(){return"MongoTransactionError"}}t.MongoTransactionError=MongoTransactionError;class MongoExpiredSessionError extends MongoAPIError{constructor(e="Cannot use a session that has ended"){super(e)}get name(){return"MongoExpiredSessionError"}}t.MongoExpiredSessionError=MongoExpiredSessionError;class MongoKerberosError extends MongoRuntimeError{constructor(e){super(e)}get name(){return"MongoKerberosError"}}t.MongoKerberosError=MongoKerberosError;class MongoChangeStreamError extends MongoRuntimeError{constructor(e){super(e)}get name(){return"MongoChangeStreamError"}}t.MongoChangeStreamError=MongoChangeStreamError;class MongoTailableCursorError extends MongoAPIError{constructor(e="Tailable cursor does not support this operation"){super(e)}get name(){return"MongoTailableCursorError"}}t.MongoTailableCursorError=MongoTailableCursorError;class MongoGridFSStreamError extends MongoRuntimeError{constructor(e){super(e)}get name(){return"MongoGridFSStreamError"}}t.MongoGridFSStreamError=MongoGridFSStreamError;class MongoGridFSChunkError extends MongoRuntimeError{constructor(e){super(e)}get name(){return"MongoGridFSChunkError"}}t.MongoGridFSChunkError=MongoGridFSChunkError;class MongoCursorInUseError extends MongoAPIError{constructor(e="Cursor is already initialized"){super(e)}get name(){return"MongoCursorInUseError"}}t.MongoCursorInUseError=MongoCursorInUseError;class MongoServerClosedError extends MongoAPIError{constructor(e="Server is closed"){super(e)}get name(){return"MongoServerClosedError"}}t.MongoServerClosedError=MongoServerClosedError;class MongoCursorExhaustedError extends MongoAPIError{constructor(e){super(e||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}}t.MongoCursorExhaustedError=MongoCursorExhaustedError;class MongoTopologyClosedError extends MongoAPIError{constructor(e="Topology is closed"){super(e)}get name(){return"MongoTopologyClosedError"}}t.MongoTopologyClosedError=MongoTopologyClosedError;const n=Symbol("beforeHandshake");function isNetworkErrorBeforeHandshake(e){return e[n]===true}t.isNetworkErrorBeforeHandshake=isNetworkErrorBeforeHandshake;class MongoNetworkError extends MongoError{constructor(e,t){super(e);if(t&&typeof t.beforeHandshake==="boolean"){this[n]=t.beforeHandshake}}get name(){return"MongoNetworkError"}}t.MongoNetworkError=MongoNetworkError;class MongoNetworkTimeoutError extends MongoNetworkError{constructor(e,t){super(e,t)}get name(){return"MongoNetworkTimeoutError"}}t.MongoNetworkTimeoutError=MongoNetworkTimeoutError;class MongoParseError extends MongoDriverError{constructor(e){super(e)}get name(){return"MongoParseError"}}t.MongoParseError=MongoParseError;class MongoInvalidArgumentError extends MongoAPIError{constructor(e){super(e)}get name(){return"MongoInvalidArgumentError"}}t.MongoInvalidArgumentError=MongoInvalidArgumentError;class MongoCompatibilityError extends MongoAPIError{constructor(e){super(e)}get name(){return"MongoCompatibilityError"}}t.MongoCompatibilityError=MongoCompatibilityError;class MongoMissingCredentialsError extends MongoAPIError{constructor(e){super(e)}get name(){return"MongoMissingCredentialsError"}}t.MongoMissingCredentialsError=MongoMissingCredentialsError;class MongoMissingDependencyError extends MongoAPIError{constructor(e){super(e)}get name(){return"MongoMissingDependencyError"}}t.MongoMissingDependencyError=MongoMissingDependencyError;class MongoSystemError extends MongoError{constructor(e,t){if(t&&t.error){super(t.error.message||t.error)}else{super(e)}if(t){this.reason=t}}get name(){return"MongoSystemError"}}t.MongoSystemError=MongoSystemError;class MongoServerSelectionError extends MongoSystemError{constructor(e,t){super(e,t)}get name(){return"MongoServerSelectionError"}}t.MongoServerSelectionError=MongoServerSelectionError;function makeWriteConcernResultObject(e){const t=Object.assign({},e);if(t.ok===0){t.ok=1;delete t.errmsg;delete t.code;delete t.codeName}return t}class MongoWriteConcernError extends MongoServerError{constructor(e,t){if(t&&Array.isArray(t.errorLabels)){e.errorLabels=t.errorLabels}super(e);this.errInfo=e.errInfo;if(t!=null){this.result=makeWriteConcernResultObject(t)}}get name(){return"MongoWriteConcernError"}}t.MongoWriteConcernError=MongoWriteConcernError;const i=new Set([t.MONGODB_ERROR_CODES.HostUnreachable,t.MONGODB_ERROR_CODES.HostNotFound,t.MONGODB_ERROR_CODES.NetworkTimeout,t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.SocketException,t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]);const o=new Set([t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.HostNotFound,t.MONGODB_ERROR_CODES.HostUnreachable,t.MONGODB_ERROR_CODES.NetworkTimeout,t.MONGODB_ERROR_CODES.SocketException,t.MONGODB_ERROR_CODES.ExceededTimeLimit]);function isRetryableEndTransactionError(e){return e.hasErrorLabel("RetryableWriteError")}t.isRetryableEndTransactionError=isRetryableEndTransactionError;function isRetryableWriteError(e){var t,r,n;if(e instanceof MongoWriteConcernError){return o.has((n=(r=(t=e.result)===null||t===void 0?void 0:t.code)!==null&&r!==void 0?r:e.code)!==null&&n!==void 0?n:0)}return typeof e.code==="number"&&o.has(e.code)}t.isRetryableWriteError=isRetryableWriteError;function isRetryableError(e){return typeof e.code==="number"&&i.has(e.code)||e instanceof MongoNetworkError||!!e.message.match(new RegExp(t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE))||!!e.message.match(new RegExp(t.NODE_IS_RECOVERING_ERROR_MESSAGE))}t.isRetryableError=isRetryableError;const s=new Set([t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]);const a=new Set([t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.LegacyNotPrimary]);const u=new Set([t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.ShutdownInProgress]);function isRecoveringError(e){if(typeof e.code==="number"){return s.has(e.code)}return new RegExp(t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE).test(e.message)||new RegExp(t.NODE_IS_RECOVERING_ERROR_MESSAGE).test(e.message)}function isNotWritablePrimaryError(e){if(typeof e.code==="number"){return a.has(e.code)}if(isRecoveringError(e)){return false}return new RegExp(t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE).test(e.message)}function isNodeShuttingDownError(e){return!!(typeof e.code==="number"&&u.has(e.code))}t.isNodeShuttingDownError=isNodeShuttingDownError;function isSDAMUnrecoverableError(e){if(e instanceof MongoParseError||e==null){return true}return isRecoveringError(e)||isNotWritablePrimaryError(e)}t.isSDAMUnrecoverableError=isSDAMUnrecoverableError;function isNetworkTimeoutError(e){return!!(e instanceof MongoNetworkError&&e.message.match(/timed out/))}t.isNetworkTimeoutError=isNetworkTimeoutError;function isResumableError(e,r){if(e instanceof MongoNetworkError){return true}if(r!=null&&r>=9){if(e&&e instanceof MongoError&&e.code===43){return true}return e instanceof MongoError&&e.hasErrorLabel("ResumableChangeStreamError")}if(e&&typeof e.code==="number"){return t.GET_MORE_RESUMABLE_CODES.has(e.code)}return false}t.isResumableError=isResumableError},14286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Explain=t.ExplainVerbosity=void 0;const n=r(95544);t.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class Explain{constructor(e){if(typeof e==="boolean"){this.verbosity=e?t.ExplainVerbosity.allPlansExecution:t.ExplainVerbosity.queryPlanner}else{this.verbosity=e}}static fromOptions(e){if((e===null||e===void 0?void 0:e.explain)==null)return;const t=e.explain;if(typeof t==="boolean"||typeof t==="string"){return new Explain(t)}throw new n.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}t.Explain=Explain},13761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GridFSBucketReadStream=void 0;const n=r(12781);const i=r(95544);class GridFSBucketReadStream extends n.Readable{constructor(e,t,r,n,i){super();this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:e,expected:0,files:t,filter:n,init:false,expectedEnd:0,options:{start:0,end:0,...i},readPreference:r}}_read(){if(this.destroyed)return;waitForFile(this,(()=>doRead(this)))}start(e=0){throwIfInitialized(this);this.s.options.start=e;return this}end(e=0){throwIfInitialized(this);this.s.options.end=e;return this}abort(e){this.push(null);this.destroyed=true;if(this.s.cursor){this.s.cursor.close((t=>{this.emit(GridFSBucketReadStream.CLOSE);e&&e(t)}))}else{if(!this.s.init){this.emit(GridFSBucketReadStream.CLOSE)}e&&e()}}}t.GridFSBucketReadStream=GridFSBucketReadStream;GridFSBucketReadStream.ERROR="error";GridFSBucketReadStream.FILE="file";GridFSBucketReadStream.DATA="data";GridFSBucketReadStream.END="end";GridFSBucketReadStream.CLOSE="close";function throwIfInitialized(e){if(e.s.init){throw new i.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")}}function doRead(e){if(e.destroyed)return;if(!e.s.cursor)return;if(!e.s.file)return;e.s.cursor.next(((t,r)=>{if(e.destroyed){return}if(t){e.emit(GridFSBucketReadStream.ERROR,t);return}if(!r){e.push(null);process.nextTick((()=>{if(!e.s.cursor)return;e.s.cursor.close((t=>{if(t){e.emit(GridFSBucketReadStream.ERROR,t);return}e.emit(GridFSBucketReadStream.CLOSE)}))}));return}if(!e.s.file)return;const n=e.s.file.length-e.s.bytesRead;const o=e.s.expected++;const s=Math.min(e.s.file.chunkSize,n);if(r.n>o){return e.emit(GridFSBucketReadStream.ERROR,new i.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${r.n}, expected: ${o}`))}if(r.n{if(t){return e.emit(GridFSBucketReadStream.ERROR,t)}if(!r){const t=e.s.filter._id?e.s.filter._id.toString():e.s.filter.filename;const r=`FileNotFound: file ${t} was not found`;const n=new i.MongoRuntimeError(r);n.code="ENOENT";return e.emit(GridFSBucketReadStream.ERROR,n)}if(r.length<=0){e.push(null);return}if(e.destroyed){e.emit(GridFSBucketReadStream.CLOSE);return}try{e.s.bytesToSkip=handleStartOption(e,r,e.s.options)}catch(t){return e.emit(GridFSBucketReadStream.ERROR,t)}const n={files_id:r._id};if(e.s.options&&e.s.options.start!=null){const t=Math.floor(e.s.options.start/r.chunkSize);if(t>0){n["n"]={$gte:t}}}e.s.cursor=e.s.chunks.find(n).sort({n:1});if(e.s.readPreference){e.s.cursor.withReadPreference(e.s.readPreference)}e.s.expectedEnd=Math.ceil(r.length/r.chunkSize);e.s.file=r;try{e.s.bytesToTrim=handleEndOption(e,r,e.s.cursor,e.s.options)}catch(t){return e.emit(GridFSBucketReadStream.ERROR,t)}e.emit(GridFSBucketReadStream.FILE,r)}))}function waitForFile(e,t){if(e.s.file){return t()}if(!e.s.init){init(e);e.s.init=true}e.once("file",(()=>{t()}))}function handleStartOption(e,t,r){if(r&&r.start!=null){if(r.start>t.length){throw new i.MongoInvalidArgumentError(`Stream start (${r.start}) must not be more than the length of the file (${t.length})`)}if(r.start<0){throw new i.MongoInvalidArgumentError(`Stream start (${r.start}) must not be negative`)}if(r.end!=null&&r.endt.length){throw new i.MongoInvalidArgumentError(`Stream end (${n.end}) must not be more than the length of the file (${t.length})`)}if(n.start==null||n.start<0){throw new i.MongoInvalidArgumentError(`Stream end (${n.end}) must not be negative`)}const o=n.start!=null?Math.floor(n.start/t.chunkSize):0;r.limit(Math.ceil(n.end/t.chunkSize)-o);e.s.expectedEnd=Math.ceil(n.end/t.chunkSize);return Math.ceil(n.end/t.chunkSize)*t.chunkSize-n.end}throw new i.MongoInvalidArgumentError("End option must be defined")}},34697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GridFSBucket=void 0;const n=r(95544);const i=r(18284);const o=r(3332);const s=r(31942);const a=r(13761);const u=r(44699);const c={bucketName:"fs",chunkSizeBytes:255*1024};class GridFSBucket extends i.TypedEventEmitter{constructor(e,t){super();this.setMaxListeners(0);const r={...c,...t,writeConcern:s.WriteConcern.fromOptions(t)};this.s={db:e,options:r,_chunksCollection:e.collection(r.bucketName+".chunks"),_filesCollection:e.collection(r.bucketName+".files"),checkedIndexes:false,calledOpenUploadStream:false}}openUploadStream(e,t){return new u.GridFSBucketWriteStream(this,e,t)}openUploadStreamWithId(e,t,r){return new u.GridFSBucketWriteStream(this,t,{...r,id:e})}openDownloadStream(e,t){return new a.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:e},t)}delete(e,t){return(0,o.executeLegacyOperation)((0,o.getTopology)(this.s.db),_delete,[this,e,t],{skipSessions:true})}find(e,t){e!==null&&e!==void 0?e:e={};t=t!==null&&t!==void 0?t:{};return this.s._filesCollection.find(e,t)}openDownloadStreamByName(e,t){let r={uploadDate:-1};let n=undefined;if(t&&t.revision!=null){if(t.revision>=0){r={uploadDate:1};n=t.revision}else{n=-t.revision-1}}return new a.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:e},{...t,sort:r,skip:n})}rename(e,t,r){return(0,o.executeLegacyOperation)((0,o.getTopology)(this.s.db),_rename,[this,e,t,r],{skipSessions:true})}drop(e){return(0,o.executeLegacyOperation)((0,o.getTopology)(this.s.db),_drop,[this,e],{skipSessions:true})}getLogger(){return this.s.db.s.logger}}t.GridFSBucket=GridFSBucket;GridFSBucket.INDEX="index";function _delete(e,t,r){return e.s._filesCollection.deleteOne({_id:t},((i,o)=>{if(i){return r(i)}return e.s._chunksCollection.deleteMany({files_id:t},(e=>{if(e){return r(e)}if(!(o===null||o===void 0?void 0:o.deletedCount)){return r(new n.MongoRuntimeError(`File not found for id ${t}`))}return r()}))}))}function _rename(e,t,r,i){const o={_id:t};const s={$set:{filename:r}};return e.s._filesCollection.updateOne(o,s,((e,r)=>{if(e){return i(e)}if(!(r===null||r===void 0?void 0:r.matchedCount)){return i(new n.MongoRuntimeError(`File with id ${t} not found`))}return i()}))}function _drop(e,t){return e.s._filesCollection.drop((r=>{if(r){return t(r)}return e.s._chunksCollection.drop((e=>{if(e){return t(e)}return t()}))}))}},44699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GridFSBucketWriteStream=void 0;const n=r(12781);const i=r(85539);const o=r(95544);const s=r(3332);const a=r(31942);class GridFSBucketWriteStream extends n.Writable{constructor(e,t,r){super();r=r!==null&&r!==void 0?r:{};this.bucket=e;this.chunks=e.s._chunksCollection;this.filename=t;this.files=e.s._filesCollection;this.options=r;this.writeConcern=a.WriteConcern.fromOptions(r)||e.s.options.writeConcern;this.done=false;this.id=r.id?r.id:new i.ObjectId;this.chunkSizeBytes=r.chunkSizeBytes||this.bucket.s.options.chunkSizeBytes;this.bufToStore=Buffer.alloc(this.chunkSizeBytes);this.length=0;this.n=0;this.pos=0;this.state={streamEnd:false,outstandingRequests:0,errored:false,aborted:false};if(!this.bucket.s.calledOpenUploadStream){this.bucket.s.calledOpenUploadStream=true;checkIndexes(this,(()=>{this.bucket.s.checkedIndexes=true;this.bucket.emit("index")}))}}write(e,t,r){const n=typeof t==="function"?undefined:t;r=typeof t==="function"?t:r;return waitForIndexes(this,(()=>doWrite(this,e,n,r)))}abort(e){return(0,s.maybePromise)(e,(e=>{if(this.state.streamEnd){return e(new o.MongoAPIError("Cannot abort a stream that has already completed"))}if(this.state.aborted){return e(new o.MongoAPIError("Cannot call abort() on a stream twice"))}this.state.aborted=true;this.chunks.deleteMany({files_id:this.id},(t=>e(t)))}))}end(e,t,r){const n=typeof e==="function"?undefined:e;const i=typeof t==="function"?undefined:t;r=typeof e==="function"?e:typeof t==="function"?t:r;if(checkAborted(this,r))return this;this.state.streamEnd=true;if(r){this.once(GridFSBucketWriteStream.FINISH,(e=>{if(r)r(undefined,e)}))}if(!n){waitForIndexes(this,(()=>!!writeRemnant(this)));return this}this.write(n,i,(()=>{writeRemnant(this)}));return this}}t.GridFSBucketWriteStream=GridFSBucketWriteStream;GridFSBucketWriteStream.CLOSE="close";GridFSBucketWriteStream.ERROR="error";GridFSBucketWriteStream.FINISH="finish";function __handleError(e,t,r){if(e.state.errored){return}e.state.errored=true;if(r){return r(t)}e.emit(GridFSBucketWriteStream.ERROR,t)}function createChunkDoc(e,t,r){return{_id:new i.ObjectId,files_id:e,n:t,data:r}}function checkChunksIndex(e,t){e.chunks.listIndexes().toArray(((r,n)=>{let i;if(r){if(r instanceof o.MongoError&&r.code===o.MONGODB_ERROR_CODES.NamespaceNotFound){i={files_id:1,n:1};e.chunks.createIndex(i,{background:false,unique:true},(e=>{if(e){return t(e)}t()}));return}return t(r)}let s=false;if(n){n.forEach((e=>{if(e.key){const t=Object.keys(e.key);if(t.length===2&&e.key.files_id===1&&e.key.n===1){s=true}}}))}if(s){t()}else{i={files_id:1,n:1};const r=getWriteOptions(e);e.chunks.createIndex(i,{...r,background:true,unique:true},t)}}))}function checkDone(e,t){if(e.done)return true;if(e.state.streamEnd&&e.state.outstandingRequests===0&&!e.state.errored){e.done=true;const r=createFilesDoc(e.id,e.length,e.chunkSizeBytes,e.filename,e.options.contentType,e.options.aliases,e.options.metadata);if(checkAborted(e,t)){return false}e.files.insertOne(r,getWriteOptions(e),(n=>{if(n){return __handleError(e,n,t)}e.emit(GridFSBucketWriteStream.FINISH,r);e.emit(GridFSBucketWriteStream.CLOSE)}));return true}return false}function checkIndexes(e,t){e.files.findOne({},{projection:{_id:1}},((r,n)=>{if(r){return t(r)}if(n){return t()}e.files.listIndexes().toArray(((r,n)=>{let i;if(r){if(r instanceof o.MongoError&&r.code===o.MONGODB_ERROR_CODES.NamespaceNotFound){i={filename:1,uploadDate:1};e.files.createIndex(i,{background:false},(r=>{if(r){return t(r)}checkChunksIndex(e,t)}));return}return t(r)}let s=false;if(n){n.forEach((e=>{const t=Object.keys(e.key);if(t.length===2&&e.key.filename===1&&e.key.uploadDate===1){s=true}}))}if(s){checkChunksIndex(e,t)}else{i={filename:1,uploadDate:1};const r=getWriteOptions(e);e.files.createIndex(i,{...r,background:false},(r=>{if(r){return t(r)}checkChunksIndex(e,t)}))}}))}))}function createFilesDoc(e,t,r,n,i,o,s){const a={_id:e,length:t,chunkSize:r,uploadDate:new Date,filename:n};if(i){a.contentType=i}if(o){a.aliases=o}if(s){a.metadata=s}return a}function doWrite(e,t,r,n){if(checkAborted(e,n)){return false}const i=Buffer.isBuffer(t)?t:Buffer.from(t,r);e.length+=i.length;if(e.pos+i.length0){const t=i.length-o;i.copy(e.bufToStore,e.pos,t,t+a);e.pos+=a;s-=a;let r;if(s===0){r=createChunkDoc(e.id,e.n,Buffer.from(e.bufToStore));++e.state.outstandingRequests;++u;if(checkAborted(e,n)){return false}e.chunks.insertOne(r,getWriteOptions(e),(t=>{if(t){return __handleError(e,t)}--e.state.outstandingRequests;--u;if(!u){e.emit("drain",r);n&&n();checkDone(e)}}));s=e.chunkSizeBytes;e.pos=0;++e.n}o-=a;a=Math.min(s,o)}return false}function getWriteOptions(e){const t={};if(e.writeConcern){t.writeConcern={w:e.writeConcern.w,wtimeout:e.writeConcern.wtimeout,j:e.writeConcern.j}}return t}function waitForIndexes(e,t){if(e.bucket.s.checkedIndexes){return t(false)}e.bucket.once("index",(()=>{t(true)}));return true}function writeRemnant(e,t){if(e.pos===0){return checkDone(e,t)}++e.state.outstandingRequests;const r=Buffer.alloc(e.pos);e.bufToStore.copy(r,0,0,e.pos);const n=createChunkDoc(e.id,e.n,r);if(checkAborted(e,t)){return false}e.chunks.insertOne(n,getWriteOptions(e),(t=>{if(t){return __handleError(e,t)}--e.state.outstandingRequests;checkDone(e)}));return true}function checkAborted(e,t){if(e.state.aborted){if(typeof t==="function"){t(new o.MongoAPIError("Stream has been aborted"))}return true}return false}},13297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Db=t.Collection=t.CancellationToken=t.AggregationCursor=t.Admin=t.AbstractCursor=t.MongoWriteConcernError=t.MongoTransactionError=t.MongoTopologyClosedError=t.MongoSystemError=t.MongoServerSelectionError=t.MongoServerError=t.MongoServerClosedError=t.MongoRuntimeError=t.MongoParseError=t.MongoNotConnectedError=t.MongoNetworkTimeoutError=t.MongoNetworkError=t.MongoMissingDependencyError=t.MongoMissingCredentialsError=t.MongoKerberosError=t.MongoInvalidArgumentError=t.MongoGridFSStreamError=t.MongoGridFSChunkError=t.MongoExpiredSessionError=t.MongoError=t.MongoDriverError=t.MongoDecompressionError=t.MongoCursorInUseError=t.MongoCursorExhaustedError=t.MongoCompatibilityError=t.MongoChangeStreamError=t.MongoBatchReExecutionError=t.MongoAPIError=t.MongoBulkWriteError=t.ObjectID=t.Timestamp=t.ObjectId=t.MinKey=t.MaxKey=t.Map=t.Long=t.Int32=t.Double=t.Decimal128=t.DBRef=t.Code=t.BSONSymbol=t.BSONRegExp=t.Binary=void 0;t.SrvPollingEvent=t.TopologyOpeningEvent=t.TopologyDescriptionChangedEvent=t.TopologyClosedEvent=t.ServerOpeningEvent=t.ServerHeartbeatSucceededEvent=t.ServerHeartbeatStartedEvent=t.ServerHeartbeatFailedEvent=t.ServerDescriptionChangedEvent=t.ServerClosedEvent=t.ConnectionReadyEvent=t.ConnectionPoolMonitoringEvent=t.ConnectionPoolCreatedEvent=t.ConnectionPoolClosedEvent=t.ConnectionPoolClearedEvent=t.ConnectionCreatedEvent=t.ConnectionClosedEvent=t.ConnectionCheckOutStartedEvent=t.ConnectionCheckOutFailedEvent=t.ConnectionCheckedOutEvent=t.ConnectionCheckedInEvent=t.CommandSucceededEvent=t.CommandStartedEvent=t.CommandFailedEvent=t.WriteConcern=t.ReadPreference=t.ReadConcern=t.TopologyType=t.ServerType=t.ReadPreferenceMode=t.ReadConcernLevel=t.ProfilingLevel=t.ReturnDocument=t.BSONType=t.ServerApiVersion=t.LoggerLevel=t.ExplainVerbosity=t.AutoEncryptionLoggerLevel=t.CURSOR_FLAGS=t.Compressor=t.AuthMechanism=t.BatchType=t.Promise=t.MongoClient=t.Logger=t.ListIndexesCursor=t.ListCollectionsCursor=t.GridFSBucket=t.FindCursor=void 0;const n=r(63189);Object.defineProperty(t,"Admin",{enumerable:true,get:function(){return n.Admin}});const i=r(85539);const o=r(63978);Object.defineProperty(t,"Collection",{enumerable:true,get:function(){return o.Collection}});const s=r(53734);Object.defineProperty(t,"AbstractCursor",{enumerable:true,get:function(){return s.AbstractCursor}});const a=r(72429);Object.defineProperty(t,"AggregationCursor",{enumerable:true,get:function(){return a.AggregationCursor}});const u=r(76553);Object.defineProperty(t,"FindCursor",{enumerable:true,get:function(){return u.FindCursor}});const c=r(49150);Object.defineProperty(t,"Db",{enumerable:true,get:function(){return c.Db}});const l=r(34697);Object.defineProperty(t,"GridFSBucket",{enumerable:true,get:function(){return l.GridFSBucket}});const d=r(47394);Object.defineProperty(t,"Logger",{enumerable:true,get:function(){return d.Logger}});const h=r(88135);Object.defineProperty(t,"MongoClient",{enumerable:true,get:function(){return h.MongoClient}});const m=r(18284);Object.defineProperty(t,"CancellationToken",{enumerable:true,get:function(){return m.CancellationToken}});const g=r(35008);Object.defineProperty(t,"ListIndexesCursor",{enumerable:true,get:function(){return g.ListIndexesCursor}});const y=r(27228);Object.defineProperty(t,"ListCollectionsCursor",{enumerable:true,get:function(){return y.ListCollectionsCursor}});const v=r(44912);Object.defineProperty(t,"Promise",{enumerable:true,get:function(){return v.PromiseProvider}});var b=r(85539);Object.defineProperty(t,"Binary",{enumerable:true,get:function(){return b.Binary}});Object.defineProperty(t,"BSONRegExp",{enumerable:true,get:function(){return b.BSONRegExp}});Object.defineProperty(t,"BSONSymbol",{enumerable:true,get:function(){return b.BSONSymbol}});Object.defineProperty(t,"Code",{enumerable:true,get:function(){return b.Code}});Object.defineProperty(t,"DBRef",{enumerable:true,get:function(){return b.DBRef}});Object.defineProperty(t,"Decimal128",{enumerable:true,get:function(){return b.Decimal128}});Object.defineProperty(t,"Double",{enumerable:true,get:function(){return b.Double}});Object.defineProperty(t,"Int32",{enumerable:true,get:function(){return b.Int32}});Object.defineProperty(t,"Long",{enumerable:true,get:function(){return b.Long}});Object.defineProperty(t,"Map",{enumerable:true,get:function(){return b.Map}});Object.defineProperty(t,"MaxKey",{enumerable:true,get:function(){return b.MaxKey}});Object.defineProperty(t,"MinKey",{enumerable:true,get:function(){return b.MinKey}});Object.defineProperty(t,"ObjectId",{enumerable:true,get:function(){return b.ObjectId}});Object.defineProperty(t,"Timestamp",{enumerable:true,get:function(){return b.Timestamp}});t.ObjectID=i.ObjectId;var _=r(81797);Object.defineProperty(t,"MongoBulkWriteError",{enumerable:true,get:function(){return _.MongoBulkWriteError}});var E=r(95544);Object.defineProperty(t,"MongoAPIError",{enumerable:true,get:function(){return E.MongoAPIError}});Object.defineProperty(t,"MongoBatchReExecutionError",{enumerable:true,get:function(){return E.MongoBatchReExecutionError}});Object.defineProperty(t,"MongoChangeStreamError",{enumerable:true,get:function(){return E.MongoChangeStreamError}});Object.defineProperty(t,"MongoCompatibilityError",{enumerable:true,get:function(){return E.MongoCompatibilityError}});Object.defineProperty(t,"MongoCursorExhaustedError",{enumerable:true,get:function(){return E.MongoCursorExhaustedError}});Object.defineProperty(t,"MongoCursorInUseError",{enumerable:true,get:function(){return E.MongoCursorInUseError}});Object.defineProperty(t,"MongoDecompressionError",{enumerable:true,get:function(){return E.MongoDecompressionError}});Object.defineProperty(t,"MongoDriverError",{enumerable:true,get:function(){return E.MongoDriverError}});Object.defineProperty(t,"MongoError",{enumerable:true,get:function(){return E.MongoError}});Object.defineProperty(t,"MongoExpiredSessionError",{enumerable:true,get:function(){return E.MongoExpiredSessionError}});Object.defineProperty(t,"MongoGridFSChunkError",{enumerable:true,get:function(){return E.MongoGridFSChunkError}});Object.defineProperty(t,"MongoGridFSStreamError",{enumerable:true,get:function(){return E.MongoGridFSStreamError}});Object.defineProperty(t,"MongoInvalidArgumentError",{enumerable:true,get:function(){return E.MongoInvalidArgumentError}});Object.defineProperty(t,"MongoKerberosError",{enumerable:true,get:function(){return E.MongoKerberosError}});Object.defineProperty(t,"MongoMissingCredentialsError",{enumerable:true,get:function(){return E.MongoMissingCredentialsError}});Object.defineProperty(t,"MongoMissingDependencyError",{enumerable:true,get:function(){return E.MongoMissingDependencyError}});Object.defineProperty(t,"MongoNetworkError",{enumerable:true,get:function(){return E.MongoNetworkError}});Object.defineProperty(t,"MongoNetworkTimeoutError",{enumerable:true,get:function(){return E.MongoNetworkTimeoutError}});Object.defineProperty(t,"MongoNotConnectedError",{enumerable:true,get:function(){return E.MongoNotConnectedError}});Object.defineProperty(t,"MongoParseError",{enumerable:true,get:function(){return E.MongoParseError}});Object.defineProperty(t,"MongoRuntimeError",{enumerable:true,get:function(){return E.MongoRuntimeError}});Object.defineProperty(t,"MongoServerClosedError",{enumerable:true,get:function(){return E.MongoServerClosedError}});Object.defineProperty(t,"MongoServerError",{enumerable:true,get:function(){return E.MongoServerError}});Object.defineProperty(t,"MongoServerSelectionError",{enumerable:true,get:function(){return E.MongoServerSelectionError}});Object.defineProperty(t,"MongoSystemError",{enumerable:true,get:function(){return E.MongoSystemError}});Object.defineProperty(t,"MongoTopologyClosedError",{enumerable:true,get:function(){return E.MongoTopologyClosedError}});Object.defineProperty(t,"MongoTransactionError",{enumerable:true,get:function(){return E.MongoTransactionError}});Object.defineProperty(t,"MongoWriteConcernError",{enumerable:true,get:function(){return E.MongoWriteConcernError}});var k=r(81797);Object.defineProperty(t,"BatchType",{enumerable:true,get:function(){return k.BatchType}});var x=r(62856);Object.defineProperty(t,"AuthMechanism",{enumerable:true,get:function(){return x.AuthMechanism}});var C=r(11424);Object.defineProperty(t,"Compressor",{enumerable:true,get:function(){return C.Compressor}});var O=r(53734);Object.defineProperty(t,"CURSOR_FLAGS",{enumerable:true,get:function(){return O.CURSOR_FLAGS}});var D=r(74116);Object.defineProperty(t,"AutoEncryptionLoggerLevel",{enumerable:true,get:function(){return D.AutoEncryptionLoggerLevel}});var B=r(14286);Object.defineProperty(t,"ExplainVerbosity",{enumerable:true,get:function(){return B.ExplainVerbosity}});var P=r(47394);Object.defineProperty(t,"LoggerLevel",{enumerable:true,get:function(){return P.LoggerLevel}});var I=r(88135);Object.defineProperty(t,"ServerApiVersion",{enumerable:true,get:function(){return I.ServerApiVersion}});var R=r(18284);Object.defineProperty(t,"BSONType",{enumerable:true,get:function(){return R.BSONType}});var N=r(57931);Object.defineProperty(t,"ReturnDocument",{enumerable:true,get:function(){return N.ReturnDocument}});var $=r(38357);Object.defineProperty(t,"ProfilingLevel",{enumerable:true,get:function(){return $.ProfilingLevel}});var L=r(31256);Object.defineProperty(t,"ReadConcernLevel",{enumerable:true,get:function(){return L.ReadConcernLevel}});var q=r(46334);Object.defineProperty(t,"ReadPreferenceMode",{enumerable:true,get:function(){return q.ReadPreferenceMode}});var z=r(30875);Object.defineProperty(t,"ServerType",{enumerable:true,get:function(){return z.ServerType}});Object.defineProperty(t,"TopologyType",{enumerable:true,get:function(){return z.TopologyType}});var U=r(31256);Object.defineProperty(t,"ReadConcern",{enumerable:true,get:function(){return U.ReadConcern}});var V=r(46334);Object.defineProperty(t,"ReadPreference",{enumerable:true,get:function(){return V.ReadPreference}});var W=r(31942);Object.defineProperty(t,"WriteConcern",{enumerable:true,get:function(){return W.WriteConcern}});var G=r(4002);Object.defineProperty(t,"CommandFailedEvent",{enumerable:true,get:function(){return G.CommandFailedEvent}});Object.defineProperty(t,"CommandStartedEvent",{enumerable:true,get:function(){return G.CommandStartedEvent}});Object.defineProperty(t,"CommandSucceededEvent",{enumerable:true,get:function(){return G.CommandSucceededEvent}});var Q=r(47659);Object.defineProperty(t,"ConnectionCheckedInEvent",{enumerable:true,get:function(){return Q.ConnectionCheckedInEvent}});Object.defineProperty(t,"ConnectionCheckedOutEvent",{enumerable:true,get:function(){return Q.ConnectionCheckedOutEvent}});Object.defineProperty(t,"ConnectionCheckOutFailedEvent",{enumerable:true,get:function(){return Q.ConnectionCheckOutFailedEvent}});Object.defineProperty(t,"ConnectionCheckOutStartedEvent",{enumerable:true,get:function(){return Q.ConnectionCheckOutStartedEvent}});Object.defineProperty(t,"ConnectionClosedEvent",{enumerable:true,get:function(){return Q.ConnectionClosedEvent}});Object.defineProperty(t,"ConnectionCreatedEvent",{enumerable:true,get:function(){return Q.ConnectionCreatedEvent}});Object.defineProperty(t,"ConnectionPoolClearedEvent",{enumerable:true,get:function(){return Q.ConnectionPoolClearedEvent}});Object.defineProperty(t,"ConnectionPoolClosedEvent",{enumerable:true,get:function(){return Q.ConnectionPoolClosedEvent}});Object.defineProperty(t,"ConnectionPoolCreatedEvent",{enumerable:true,get:function(){return Q.ConnectionPoolCreatedEvent}});Object.defineProperty(t,"ConnectionPoolMonitoringEvent",{enumerable:true,get:function(){return Q.ConnectionPoolMonitoringEvent}});Object.defineProperty(t,"ConnectionReadyEvent",{enumerable:true,get:function(){return Q.ConnectionReadyEvent}});var Y=r(27907);Object.defineProperty(t,"ServerClosedEvent",{enumerable:true,get:function(){return Y.ServerClosedEvent}});Object.defineProperty(t,"ServerDescriptionChangedEvent",{enumerable:true,get:function(){return Y.ServerDescriptionChangedEvent}});Object.defineProperty(t,"ServerHeartbeatFailedEvent",{enumerable:true,get:function(){return Y.ServerHeartbeatFailedEvent}});Object.defineProperty(t,"ServerHeartbeatStartedEvent",{enumerable:true,get:function(){return Y.ServerHeartbeatStartedEvent}});Object.defineProperty(t,"ServerHeartbeatSucceededEvent",{enumerable:true,get:function(){return Y.ServerHeartbeatSucceededEvent}});Object.defineProperty(t,"ServerOpeningEvent",{enumerable:true,get:function(){return Y.ServerOpeningEvent}});Object.defineProperty(t,"TopologyClosedEvent",{enumerable:true,get:function(){return Y.TopologyClosedEvent}});Object.defineProperty(t,"TopologyDescriptionChangedEvent",{enumerable:true,get:function(){return Y.TopologyDescriptionChangedEvent}});Object.defineProperty(t,"TopologyOpeningEvent",{enumerable:true,get:function(){return Y.TopologyOpeningEvent}});var J=r(78234);Object.defineProperty(t,"SrvPollingEvent",{enumerable:true,get:function(){return J.SrvPollingEvent}})},47394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Logger=t.LoggerLevel=void 0;const n=r(73837);const i=r(95544);const o=r(3332);const s={};let a={};let u;const c=process.pid;let l=console.warn;t.LoggerLevel=Object.freeze({ERROR:"error",WARN:"warn",INFO:"info",DEBUG:"debug",error:"error",warn:"warn",info:"info",debug:"debug"});class Logger{constructor(e,r){r=r!==null&&r!==void 0?r:{};this.className=e;if(!(r.logger instanceof Logger)&&typeof r.logger==="function"){l=r.logger}if(r.loggerLevel){u=r.loggerLevel||t.LoggerLevel.ERROR}if(a[this.className]==null){s[this.className]=true}}debug(e,r){if(this.isDebug()&&(Object.keys(a).length>0&&a[this.className]||Object.keys(a).length===0&&s[this.className])){const i=(new Date).getTime();const o=(0,n.format)("[%s-%s:%s] %s %s","DEBUG",this.className,c,i,e);const s={type:t.LoggerLevel.DEBUG,message:e,className:this.className,pid:c,date:i};if(r)s.meta=r;l(o,s)}}warn(e,r){if(this.isWarn()&&(Object.keys(a).length>0&&a[this.className]||Object.keys(a).length===0&&s[this.className])){const i=(new Date).getTime();const o=(0,n.format)("[%s-%s:%s] %s %s","WARN",this.className,c,i,e);const s={type:t.LoggerLevel.WARN,message:e,className:this.className,pid:c,date:i};if(r)s.meta=r;l(o,s)}}info(e,r){if(this.isInfo()&&(Object.keys(a).length>0&&a[this.className]||Object.keys(a).length===0&&s[this.className])){const i=(new Date).getTime();const o=(0,n.format)("[%s-%s:%s] %s %s","INFO",this.className,c,i,e);const s={type:t.LoggerLevel.INFO,message:e,className:this.className,pid:c,date:i};if(r)s.meta=r;l(o,s)}}error(e,r){if(this.isError()&&(Object.keys(a).length>0&&a[this.className]||Object.keys(a).length===0&&s[this.className])){const i=(new Date).getTime();const o=(0,n.format)("[%s-%s:%s] %s %s","ERROR",this.className,c,i,e);const s={type:t.LoggerLevel.ERROR,message:e,className:this.className,pid:c,date:i};if(r)s.meta=r;l(o,s)}}isInfo(){return u===t.LoggerLevel.INFO||u===t.LoggerLevel.DEBUG}isError(){return u===t.LoggerLevel.ERROR||u===t.LoggerLevel.INFO||u===t.LoggerLevel.DEBUG}isWarn(){return u===t.LoggerLevel.ERROR||u===t.LoggerLevel.WARN||u===t.LoggerLevel.INFO||u===t.LoggerLevel.DEBUG}isDebug(){return u===t.LoggerLevel.DEBUG}static reset(){u=t.LoggerLevel.ERROR;a={}}static currentLogger(){return l}static setCurrentLogger(e){if(typeof e!=="function"){throw new i.MongoInvalidArgumentError("Current logger must be a function")}l=e}static filter(e,t){if(e==="class"&&Array.isArray(t)){a={};t.forEach((e=>a[e]=true))}}static setLevel(e){if(e!==t.LoggerLevel.INFO&&e!==t.LoggerLevel.ERROR&&e!==t.LoggerLevel.DEBUG&&e!==t.LoggerLevel.WARN){throw new i.MongoInvalidArgumentError(`Argument "newLevel" should be one of ${(0,o.enumToString)(t.LoggerLevel)}`)}u=e}}t.Logger=Logger},88135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MongoClient=t.ServerApiVersion=void 0;const n=r(85539);const i=r(61521);const o=r(44830);const s=r(49150);const a=r(95544);const u=r(18284);const c=r(71206);const l=r(44912);const d=r(3332);t.ServerApiVersion=Object.freeze({v1:"1"});const h=Symbol("options");class MongoClient extends u.TypedEventEmitter{constructor(e,t){super();this[h]=(0,o.parseOptions)(e,this,t);const r=this;this.s={url:e,sessions:new Set,bsonOptions:(0,n.resolveBSONOptions)(this[h]),namespace:(0,d.ns)("admin"),get options(){return r[h]},get readConcern(){return r[h].readConcern},get writeConcern(){return r[h].writeConcern},get readPreference(){return r[h].readPreference},get logger(){return r[h].logger}}}get options(){return Object.freeze({...this[h]})}get serverApi(){return this[h].serverApi&&Object.freeze({...this[h].serverApi})}get monitorCommands(){return this[h].monitorCommands}set monitorCommands(e){this[h].monitorCommands=e}get autoEncrypter(){return this[h].autoEncrypter}get readConcern(){return this.s.readConcern}get writeConcern(){return this.s.writeConcern}get readPreference(){return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get logger(){return this.s.logger}connect(e){if(e&&typeof e!=="function"){throw new a.MongoInvalidArgumentError("Method `connect` only accepts a callback")}return(0,d.maybePromise)(e,(e=>{(0,c.connect)(this,this[h],(t=>{if(t)return e(t);e(undefined,this)}))}))}close(e,t){if(typeof e==="function"){t=e}const r=typeof e==="boolean"?e:false;return(0,d.maybePromise)(t,(e=>{if(this.topology==null){return e()}const t=this.topology;this.topology=undefined;t.close({force:r},(t=>{if(t)return e(t);const{encrypter:n}=this[h];if(n){return n.close(this,r,(t=>{e(t)}))}e()}))}))}db(e,t){t=t!==null&&t!==void 0?t:{};if(!e){e=this.options.dbName}const r=Object.assign({},this[h],t);const n=new s.Db(this,e,r);return n}static connect(e,t,r){if(typeof t==="function")r=t,t={};t=t!==null&&t!==void 0?t:{};try{const n=new MongoClient(e,t);if(r){return n.connect(r)}else{return n.connect()}}catch(e){if(r)return r(e);else return l.PromiseProvider.get().reject(e)}}startSession(e){e=Object.assign({explicit:true},e);if(!this.topology){throw new a.MongoNotConnectedError("MongoClient must be connected to start a session")}return this.topology.startSession(e,this.s.options)}withSession(e,t){let r=e;if(typeof e==="function"){t=e;r={owner:Symbol()}}if(t==null){throw new a.MongoInvalidArgumentError("Missing required callback parameter")}const n=this.startSession(r);const i=l.PromiseProvider.get();let cleanupHandler=(e,t,r)=>{cleanupHandler=()=>{throw new a.MongoRuntimeError("cleanupHandler was called too many times")};r=Object.assign({throw:true},r);n.endSession();if(e){if(r.throw)throw e;return i.reject(e)}};try{const e=t(n);return i.resolve(e).then((e=>cleanupHandler(undefined,e,undefined)),(e=>cleanupHandler(e,null,{throw:true})))}catch(e){return cleanupHandler(e,null,{throw:false})}}watch(e=[],t={}){if(!Array.isArray(e)){t=e;e=[]}return new i.ChangeStream(this,e,(0,d.resolveOptions)(this,t))}getLogger(){return this.s.logger}}t.MongoClient=MongoClient},18284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CancellationToken=t.TypedEventEmitter=t.BSONType=void 0;const n=r(82361);t.BSONType=Object.freeze({double:1,string:2,object:3,array:4,binData:5,undefined:6,objectId:7,bool:8,date:9,null:10,regex:11,dbPointer:12,javascript:13,symbol:14,javascriptWithScope:15,int:16,timestamp:17,long:18,decimal:19,minKey:-1,maxKey:127});class TypedEventEmitter extends n.EventEmitter{}t.TypedEventEmitter=TypedEventEmitter;class CancellationToken extends TypedEventEmitter{}t.CancellationToken=CancellationToken},95381:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AddUserOperation=void 0;const n=r(6113);const i=r(95544);const o=r(3332);const s=r(40504);const a=r(39612);class AddUserOperation extends s.CommandOperation{constructor(e,t,r,n){super(e,n);this.db=e;this.username=t;this.password=r;this.options=n!==null&&n!==void 0?n:{}}execute(e,t,r){const s=this.db;const a=this.username;const u=this.password;const c=this.options;if(c.digestPassword!=null){return r(new i.MongoInvalidArgumentError('Option "digestPassword" not supported via addUser, use db.command(...) instead'))}let l;if(!c.roles||Array.isArray(c.roles)&&c.roles.length===0){(0,o.emitWarningOnce)('Creating a user without roles is deprecated. Defaults to "root" if db is "admin" or "dbOwner" otherwise');if(s.databaseName.toLowerCase()==="admin"){l=["root"]}else{l=["dbOwner"]}}else{l=Array.isArray(c.roles)?c.roles:[c.roles]}const d=(0,o.getTopology)(s).lastHello().maxWireVersion>=7;let h=u;if(!d){const e=n.createHash("md5");e.update(`${a}:mongo:${u}`);h=e.digest("hex")}const m={createUser:a,customData:c.customData||{},roles:l,digestPassword:d};if(typeof u==="string"){m.pwd=h}super.executeCommand(e,t,m,r)}}t.AddUserOperation=AddUserOperation;(0,a.defineAspects)(AddUserOperation,[a.Aspect.WRITE_OPERATION])},86392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AggregateOperation=t.DB_AGGREGATE_COLLECTION=void 0;const n=r(95544);const i=r(3332);const o=r(40504);const s=r(39612);t.DB_AGGREGATE_COLLECTION=1;const a=8;class AggregateOperation extends o.CommandOperation{constructor(e,r,i){super(undefined,{...i,dbName:e.db});this.options=i!==null&&i!==void 0?i:{};this.target=e.collection||t.DB_AGGREGATE_COLLECTION;this.pipeline=r;this.hasWriteStage=false;if(typeof(i===null||i===void 0?void 0:i.out)==="string"){this.pipeline=this.pipeline.concat({$out:i.out});this.hasWriteStage=true}else if(r.length>0){const e=r[r.length-1];if(e.$out||e.$merge){this.hasWriteStage=true}}if(this.hasWriteStage){this.trySecondaryWrite=true}if(this.explain&&this.writeConcern){throw new n.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern')}if((i===null||i===void 0?void 0:i.cursor)!=null&&typeof i.cursor!=="object"){throw new n.MongoInvalidArgumentError("Cursor options must be an object")}}get canRetryRead(){return!this.hasWriteStage}addToPipeline(e){this.pipeline.push(e)}execute(e,t,r){const n=this.options;const o=(0,i.maxWireVersion)(e);const s={aggregate:this.target,pipeline:this.pipeline};if(this.hasWriteStage&&o=5){if(this.hasWriteStage&&this.writeConcern){Object.assign(s,{writeConcern:this.writeConcern})}}if(n.bypassDocumentValidation===true){s.bypassDocumentValidation=n.bypassDocumentValidation}if(typeof n.allowDiskUse==="boolean"){s.allowDiskUse=n.allowDiskUse}if(n.hint){s.hint=n.hint}if(n.let){s.let=n.let}s.cursor=n.cursor||{};if(n.batchSize&&!this.hasWriteStage){s.cursor.batchSize=n.batchSize}super.executeCommand(e,t,s,r)}}t.AggregateOperation=AggregateOperation;(0,s.defineAspects)(AggregateOperation,[s.Aspect.READ_OPERATION,s.Aspect.RETRYABLE,s.Aspect.EXPLAINABLE,s.Aspect.CURSOR_CREATING])},84340:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BulkWriteOperation=void 0;const n=r(39612);class BulkWriteOperation extends n.AbstractOperation{constructor(e,t,r){super(r);this.options=r;this.collection=e;this.operations=t}execute(e,t,r){const n=this.collection;const i=this.operations;const o={...this.options,...this.bsonOptions,readPreference:this.readPreference};const s=o.ordered===false?n.initializeUnorderedBulkOp(o):n.initializeOrderedBulkOp(o);try{for(let e=0;e{if(!t&&e){return r(e)}r(undefined,t)}))}}t.BulkWriteOperation=BulkWriteOperation;(0,n.defineAspects)(BulkWriteOperation,[n.Aspect.WRITE_OPERATION])},83501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CollectionsOperation=void 0;const n=r(63978);const i=r(39612);class CollectionsOperation extends i.AbstractOperation{constructor(e,t){super(t);this.options=t;this.db=e}execute(e,t,r){const i=this.db;i.listCollections({},{...this.options,nameOnly:true,readPreference:this.readPreference,session:t}).toArray(((e,t)=>{if(e||!t)return r(e);t=t.filter((e=>e.name.indexOf("$")===-1));r(undefined,t.map((e=>new n.Collection(i,e.name,i.s.options))))}))}}t.CollectionsOperation=CollectionsOperation},40504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CommandOperation=void 0;const n=r(95544);const i=r(14286);const o=r(31256);const s=r(86285);const a=r(3332);const u=r(31942);const c=r(39612);const l=5;class CommandOperation extends c.AbstractOperation{constructor(e,t){super(t);this.options=t!==null&&t!==void 0?t:{};const r=(t===null||t===void 0?void 0:t.dbName)||(t===null||t===void 0?void 0:t.authdb);if(r){this.ns=new a.MongoDBNamespace(r,"$cmd")}else{this.ns=e?e.s.namespace.withCollection("$cmd"):new a.MongoDBNamespace("admin","$cmd")}this.readConcern=o.ReadConcern.fromOptions(t);this.writeConcern=u.WriteConcern.fromOptions(t);if(e&&e.logger){this.logger=e.logger}if(this.hasAspect(c.Aspect.EXPLAINABLE)){this.explain=i.Explain.fromOptions(t)}else if((t===null||t===void 0?void 0:t.explain)!=null){throw new n.MongoInvalidArgumentError(`Option "explain" is not supported on this command`)}}get canRetryWrite(){if(this.hasAspect(c.Aspect.EXPLAINABLE)){return this.explain==null}return true}executeCommand(e,t,r,i){this.server=e;const o={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:t};const u=(0,a.maxWireVersion)(e);const d=this.session&&this.session.inTransaction();if(this.readConcern&&(0,a.commandSupportsReadConcern)(r)&&!d){Object.assign(r,{readConcern:this.readConcern})}if(this.trySecondaryWrite&&u=l){if(o.collation&&typeof o.collation==="object"&&!this.hasAspect(c.Aspect.SKIP_COLLATION)){Object.assign(r,{collation:o.collation})}}if(typeof o.maxTimeMS==="number"){r.maxTimeMS=o.maxTimeMS}if(typeof o.comment==="string"){r.comment=o.comment}if(this.hasAspect(c.Aspect.EXPLAINABLE)&&this.explain){if(u<6&&r.aggregate){r.explain=true}else{r=(0,a.decorateWithExplain)(r,this.explain)}}e.command(this.ns,r,o,i)}}t.CommandOperation=CommandOperation},20801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareDocs=t.indexInformation=void 0;const n=r(95544);const i=r(3332);function indexInformation(e,t,r,o){let s=r;let a=o;if("function"===typeof r){a=r;s={}}const u=s.full==null?false:s.full;if((0,i.getTopology)(e).isDestroyed())return a(new n.MongoTopologyClosedError);function processResults(e){const t={};for(let r=0;r{if(e)return a(e);if(!Array.isArray(t))return a(undefined,[]);if(u)return a(undefined,t);a(undefined,processResults(t))}))}t.indexInformation=indexInformation;function prepareDocs(e,t,r){var n;const i=typeof r.forceServerObjectId==="boolean"?r.forceServerObjectId:(n=e.s.db.options)===null||n===void 0?void 0:n.forceServerObjectId;if(i===true){return t}return t.map((t=>{if(t._id==null){t._id=e.s.pkFactory.createPk()}return t}))}t.prepareDocs=prepareDocs},71206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.connect=void 0;const n=r(44830);const i=r(72367);const o=r(95544);const s=r(24575);function connect(e,t,r){if(!r){throw new o.MongoInvalidArgumentError("Callback function must be provided")}if(e.topology&&e.topology.isConnected()){return r(undefined,e)}const i=e.logger;const connectCallback=t=>{const n="seed list contains no mongos proxies, replicaset connections requires "+"the parameter replicaSet to be supplied in the URI or options object, "+"mongodb://server:port/db?replicaSet=name";if(t&&t.message==="no mongos proxies found in seed list"){if(i.isWarn()){i.warn(n)}return r(new o.MongoRuntimeError(n))}r(t,e)};if(typeof t.srvHost==="string"){return(0,n.resolveSRVRecord)(t,((n,i)=>{if(n||!i)return r(n);for(const[e,r]of i.entries()){t.hosts[e]=r}return createTopology(e,t,connectCallback)}))}return createTopology(e,t,connectCallback)}t.connect=connect;function createTopology(e,t,r){const n=new s.Topology(t.hosts,t);e.topology=n;n.once(s.Topology.OPEN,(()=>e.emit("open",e)));for(const t of i.MONGO_CLIENT_EVENTS){n.on(t,((...r)=>e.emit(t,...r)))}if(e.autoEncrypter){e.autoEncrypter.init((e=>{if(e){return r(e)}n.connect(t,(e=>{if(e){n.close({force:true});return r(e)}t.encrypter.connectInternalClient((e=>{if(e)return r(e);r(undefined,n)}))}))}));return}n.connect(t,(e=>{if(e){n.close({force:true});return r(e)}r(undefined,n);return}))}},3152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CountOperation=void 0;const n=r(40504);const i=r(39612);class CountOperation extends n.CommandOperation{constructor(e,t,r){super({s:{namespace:e}},r);this.options=r;this.collectionName=e.collection;this.query=t}execute(e,t,r){const n=this.options;const i={count:this.collectionName,query:this.query};if(typeof n.limit==="number"){i.limit=n.limit}if(typeof n.skip==="number"){i.skip=n.skip}if(n.hint!=null){i.hint=n.hint}if(typeof n.maxTimeMS==="number"){i.maxTimeMS=n.maxTimeMS}super.executeCommand(e,t,i,((e,t)=>{r(e,t?t.n:0)}))}}t.CountOperation=CountOperation;(0,i.defineAspects)(CountOperation,[i.Aspect.READ_OPERATION,i.Aspect.RETRYABLE])},39389:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CountDocumentsOperation=void 0;const n=r(86392);class CountDocumentsOperation extends n.AggregateOperation{constructor(e,t,r){const n=[];n.push({$match:t});if(typeof r.skip==="number"){n.push({$skip:r.skip})}if(typeof r.limit==="number"){n.push({$limit:r.limit})}n.push({$group:{_id:1,n:{$sum:1}}});super(e.s.namespace,n,r)}execute(e,t,r){super.execute(e,t,((e,t)=>{if(e||!t){r(e);return}const n=t;if(n.cursor==null||n.cursor.firstBatch==null){r(undefined,0);return}const i=n.cursor.firstBatch;r(undefined,i.length?i[0].n:0)}))}}t.CountDocumentsOperation=CountDocumentsOperation},52661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateCollectionOperation=void 0;const n=r(63978);const i=r(40504);const o=r(39612);const s=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]);class CreateCollectionOperation extends i.CommandOperation{constructor(e,t,r={}){super(e,r);this.options=r;this.db=e;this.name=t}execute(e,t,r){const i=this.db;const o=this.name;const a=this.options;const done=e=>{if(e){return r(e)}r(undefined,new n.Collection(i,o,a))};const u={create:o};for(const e in a){if(a[e]!=null&&typeof a[e]!=="function"&&!s.has(e)){u[e]=a[e]}}super.executeCommand(e,t,u,done)}}t.CreateCollectionOperation=CreateCollectionOperation;(0,o.defineAspects)(CreateCollectionOperation,[o.Aspect.WRITE_OPERATION])},52933:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeDeleteStatement=t.DeleteManyOperation=t.DeleteOneOperation=t.DeleteOperation=void 0;const n=r(95544);const i=r(3332);const o=r(40504);const s=r(39612);class DeleteOperation extends o.CommandOperation{constructor(e,t,r){super(undefined,r);this.options=r;this.ns=e;this.statements=t}get canRetryWrite(){if(super.canRetryWrite===false){return false}return this.statements.every((e=>e.limit!=null?e.limit>0:true))}execute(e,t,r){var o;const s=(o=this.options)!==null&&o!==void 0?o:{};const a=typeof s.ordered==="boolean"?s.ordered:true;const u={delete:this.ns.collection,deletes:this.statements,ordered:a};if(s.let){u.let=s.let}if(s.explain!=null&&(0,i.maxWireVersion)(e)<3){return r?r(new n.MongoCompatibilityError(`Server ${e.name} does not support explain on delete`)):undefined}const c=this.writeConcern&&this.writeConcern.w===0;if(c||(0,i.maxWireVersion)(e)<5){if(this.statements.find((e=>e.hint))){r(new n.MongoCompatibilityError(`Servers < 3.4 do not support hint on delete`));return}}const l=this.statements.find((e=>!!e.collation));if(l&&(0,i.collationNotSupported)(e,l)){r(new n.MongoCompatibilityError(`Server ${e.name} does not support collation`));return}super.executeCommand(e,t,u,r)}}t.DeleteOperation=DeleteOperation;class DeleteOneOperation extends DeleteOperation{constructor(e,t,r){super(e.s.namespace,[makeDeleteStatement(t,{...r,limit:1})],r)}execute(e,t,r){super.execute(e,t,((e,t)=>{var i,o;if(e||t==null)return r(e);if(t.code)return r(new n.MongoServerError(t));if(t.writeErrors)return r(new n.MongoServerError(t.writeErrors[0]));if(this.explain)return r(undefined,t);r(undefined,{acknowledged:(o=((i=this.writeConcern)===null||i===void 0?void 0:i.w)!==0)!==null&&o!==void 0?o:true,deletedCount:t.n})}))}}t.DeleteOneOperation=DeleteOneOperation;class DeleteManyOperation extends DeleteOperation{constructor(e,t,r){super(e.s.namespace,[makeDeleteStatement(t,r)],r)}execute(e,t,r){super.execute(e,t,((e,t)=>{var i,o;if(e||t==null)return r(e);if(t.code)return r(new n.MongoServerError(t));if(t.writeErrors)return r(new n.MongoServerError(t.writeErrors[0]));if(this.explain)return r(undefined,t);r(undefined,{acknowledged:(o=((i=this.writeConcern)===null||i===void 0?void 0:i.w)!==0)!==null&&o!==void 0?o:true,deletedCount:t.n})}))}}t.DeleteManyOperation=DeleteManyOperation;function makeDeleteStatement(e,t){const r={q:e,limit:typeof t.limit==="number"?t.limit:0};if(t.single===true){r.limit=1}if(t.collation){r.collation=t.collation}if(t.hint){r.hint=t.hint}if(t.comment){r.comment=t.comment}return r}t.makeDeleteStatement=makeDeleteStatement;(0,s.defineAspects)(DeleteOperation,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION]);(0,s.defineAspects)(DeleteOneOperation,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION,s.Aspect.EXPLAINABLE,s.Aspect.SKIP_COLLATION]);(0,s.defineAspects)(DeleteManyOperation,[s.Aspect.WRITE_OPERATION,s.Aspect.EXPLAINABLE,s.Aspect.SKIP_COLLATION])},33631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DistinctOperation=void 0;const n=r(95544);const i=r(3332);const o=r(40504);const s=r(39612);class DistinctOperation extends o.CommandOperation{constructor(e,t,r,n){super(e,n);this.options=n!==null&&n!==void 0?n:{};this.collection=e;this.key=t;this.query=r}execute(e,t,r){const o=this.collection;const s=this.key;const a=this.query;const u=this.options;const c={distinct:o.collectionName,key:s,query:a};if(typeof u.maxTimeMS==="number"){c.maxTimeMS=u.maxTimeMS}(0,i.decorateWithReadConcern)(c,o,u);try{(0,i.decorateWithCollation)(c,o,u)}catch(e){return r(e)}if(this.explain&&(0,i.maxWireVersion)(e)<4){r(new n.MongoCompatibilityError(`Server ${e.name} does not support explain on distinct`));return}super.executeCommand(e,t,c,((e,t)=>{if(e){r(e);return}r(undefined,this.explain?t:t.values)}))}}t.DistinctOperation=DistinctOperation;(0,s.defineAspects)(DistinctOperation,[s.Aspect.READ_OPERATION,s.Aspect.RETRYABLE,s.Aspect.EXPLAINABLE])},4992:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DropDatabaseOperation=t.DropCollectionOperation=void 0;const n=r(40504);const i=r(39612);class DropCollectionOperation extends n.CommandOperation{constructor(e,t,r){super(e,r);this.options=r;this.name=t}execute(e,t,r){super.executeCommand(e,t,{drop:this.name},((e,t)=>{if(e)return r(e);if(t.ok)return r(undefined,true);r(undefined,false)}))}}t.DropCollectionOperation=DropCollectionOperation;class DropDatabaseOperation extends n.CommandOperation{constructor(e,t){super(e,t);this.options=t}execute(e,t,r){super.executeCommand(e,t,{dropDatabase:1},((e,t)=>{if(e)return r(e);if(t.ok)return r(undefined,true);r(undefined,false)}))}}t.DropDatabaseOperation=DropDatabaseOperation;(0,i.defineAspects)(DropCollectionOperation,[i.Aspect.WRITE_OPERATION]);(0,i.defineAspects)(DropDatabaseOperation,[i.Aspect.WRITE_OPERATION])},66375:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EstimatedDocumentCountOperation=void 0;const n=r(3332);const i=r(40504);const o=r(39612);class EstimatedDocumentCountOperation extends i.CommandOperation{constructor(e,t={}){super(e,t);this.options=t;this.collectionName=e.collectionName}execute(e,t,r){if((0,n.maxWireVersion)(e)<12){return this.executeLegacy(e,t,r)}const i=[{$collStats:{count:{}}},{$group:{_id:1,n:{$sum:"$count"}}}];const o={aggregate:this.collectionName,pipeline:i,cursor:{}};if(typeof this.options.maxTimeMS==="number"){o.maxTimeMS=this.options.maxTimeMS}super.executeCommand(e,t,o,((e,t)=>{var n,i;if(e&&e.code!==26){r(e);return}r(undefined,((i=(n=t===null||t===void 0?void 0:t.cursor)===null||n===void 0?void 0:n.firstBatch[0])===null||i===void 0?void 0:i.n)||0)}))}executeLegacy(e,t,r){const n={count:this.collectionName};if(typeof this.options.maxTimeMS==="number"){n.maxTimeMS=this.options.maxTimeMS}super.executeCommand(e,t,n,((e,t)=>{if(e){r(e);return}r(undefined,t.n||0)}))}}t.EstimatedDocumentCountOperation=EstimatedDocumentCountOperation;(0,o.defineAspects)(EstimatedDocumentCountOperation,[o.Aspect.READ_OPERATION,o.Aspect.RETRYABLE,o.Aspect.CURSOR_CREATING])},91082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.executeOperation=void 0;const n=r(95544);const i=r(46334);const o=r(86285);const s=r(3332);const a=r(39612);const u=n.MONGODB_ERROR_CODES.IllegalOperation;const c="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";function executeOperation(e,t,r){if(!(t instanceof a.AbstractOperation)){throw new n.MongoRuntimeError("This method requires a valid operation instance")}return(0,s.maybePromise)(r,(r=>{if(e.shouldCheckForSessionSupport()){return e.selectServer(i.ReadPreference.primaryPreferred,(n=>{if(n)return r(n);executeOperation(e,t,r)}))}let o=t.session;let s;if(e.hasSessionSupport()){if(o==null){s=Symbol();o=e.startSession({owner:s,explicit:false})}else if(o.hasEnded){return r(new n.MongoExpiredSessionError("Use of expired sessions is not permitted"))}else if(o.snapshotEnabled&&!e.capabilities.supportsSnapshotReads){return r(new n.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later"))}}else if(o){return r(new n.MongoCompatibilityError("Current topology does not support sessions"))}try{executeWithServerSelection(e,o,t,((e,t)=>{if(o&&o.owner&&o.owner===s){return o.endSession((n=>r(n||e,t)))}r(e,t)}))}catch(e){if(o&&o.owner&&o.owner===s){o.endSession()}throw e}}))}t.executeOperation=executeOperation;function supportsRetryableReads(e){return(0,s.maxWireVersion)(e)>=6}function executeWithServerSelection(e,t,r,l){var d;const h=r.readPreference||i.ReadPreference.primary;const m=t&&t.inTransaction();if(m&&!h.equals(i.ReadPreference.primary)){l(new n.MongoTransactionError(`Read preference in a transaction must be primary, not: ${h.mode}`));return}if(t&&t.isPinned&&t.transaction.isCommitted&&!r.bypassPinningCheck){t.unpin()}let g;if(r.hasAspect(a.Aspect.CURSOR_ITERATING)){g=(0,o.sameServerSelector)((d=r.server)===null||d===void 0?void 0:d.description)}else if(r.trySecondaryWrite){g=(0,o.secondaryWritableServerSelector)(e.commonWireVersion,h)}else{g=h}const y={session:t};function callbackWithRetry(i,o){if(i==null){return l(undefined,o)}const d=r.hasAspect(a.Aspect.READ_OPERATION);const h=r.hasAspect(a.Aspect.WRITE_OPERATION);const m=shouldRetryWrite(i);if(d&&!(0,n.isRetryableError)(i)||h&&!m){return l(i)}if(h&&m&&i.code===u&&i.errmsg.match(/Transaction numbers/)){l(new n.MongoServerError({message:c,errmsg:c,originalError:i}));return}e.selectServer(g,y,((e,o)=>{if(e||r.hasAspect(a.Aspect.READ_OPERATION)&&!supportsRetryableReads(o)||r.hasAspect(a.Aspect.WRITE_OPERATION)&&!(0,s.supportsRetryableWrites)(o)){l(e);return}if(i&&i instanceof n.MongoNetworkError&&o.loadBalanced&&t&&t.isPinned&&!t.inTransaction()&&r.hasAspect(a.Aspect.CURSOR_CREATING)){t.unpin({force:true,forceClear:true})}r.execute(o,t,l)}))}if(h&&!h.equals(i.ReadPreference.primary)&&t&&t.inTransaction()){l(new n.MongoTransactionError(`Read preference in a transaction must be primary, not: ${h.mode}`));return}e.selectServer(g,y,((n,i)=>{if(n){l(n);return}if(t&&r.hasAspect(a.Aspect.RETRYABLE)){const n=e.s.options.retryReads!==false&&!m&&supportsRetryableReads(i)&&r.canRetryRead;const o=e.s.options.retryWrites===true&&!m&&(0,s.supportsRetryableWrites)(i)&&r.canRetryWrite;const u=r.hasAspect(a.Aspect.READ_OPERATION);const c=r.hasAspect(a.Aspect.WRITE_OPERATION);if(u&&n||c&&o){if(c&&o){r.options.willRetryWrite=true;t.incrementTransactionNumber()}r.execute(i,t,callbackWithRetry);return}}r.execute(i,t,l)}))}function shouldRetryWrite(e){return e instanceof n.MongoError&&e.hasErrorLabel("RetryableWriteError")}},3682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FindOperation=void 0;const n=r(9074);const i=r(95544);const o=r(31256);const s=r(73416);const a=r(3332);const u=r(40504);const c=r(39612);const l=5;class FindOperation extends u.CommandOperation{constructor(e,t,r={},n={}){super(e,n);this.options=n;this.ns=t;if(typeof r!=="object"||Array.isArray(r)){throw new i.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId")}if(Buffer.isBuffer(r)){const e=r[0]|r[1]<<8|r[2]<<16|r[3]<<24;if(e!==r.length){throw new i.MongoInvalidArgumentError(`Query filter raw message size does not match message header size [${r.length}] != [${e}]`)}}this.filter=r!=null&&r._bsontype==="ObjectID"?{_id:r}:r}execute(e,t,r){this.server=e;const o=(0,a.maxWireVersion)(e);const s=this.options;if(s.allowDiskUse!=null&&o<4){r(new i.MongoCompatibilityError('Option "allowDiskUse" is not supported on MongoDB < 3.2'));return}if(s.collation&&o{e[t]=1;return e}),{}):{_id:1}}n.projection=e}if(r.hint){n.hint=(0,a.normalizeHintField)(r.hint)}if(typeof r.skip==="number"){n.skip=r.skip}if(typeof r.limit==="number"){if(r.limit<0){n.limit=-r.limit;n.singleBatch=true}else{n.limit=r.limit}}if(typeof r.batchSize==="number"){if(r.batchSize<0){if(r.limit&&r.limit!==0&&Math.abs(r.batchSize){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FindOneAndUpdateOperation=t.FindOneAndReplaceOperation=t.FindOneAndDeleteOperation=t.ReturnDocument=void 0;const n=r(95544);const i=r(46334);const o=r(73416);const s=r(3332);const a=r(40504);const u=r(39612);t.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});function configureFindAndModifyCmdBaseUpdateOpts(e,r){e.new=r.returnDocument===t.ReturnDocument.AFTER;e.upsert=r.upsert===true;if(r.bypassDocumentValidation===true){e.bypassDocumentValidation=r.bypassDocumentValidation}return e}class FindAndModifyOperation extends a.CommandOperation{constructor(e,t,r){super(e,r);this.options=r!==null&&r!==void 0?r:{};this.cmdBase={remove:false,new:false,upsert:false};const n=(0,o.formatSort)(r.sort);if(n){this.cmdBase.sort=n}if(r.projection){this.cmdBase.fields=r.projection}if(r.maxTimeMS){this.cmdBase.maxTimeMS=r.maxTimeMS}if(r.writeConcern){this.cmdBase.writeConcern=r.writeConcern}if(r.let){this.cmdBase.let=r.let}this.readPreference=i.ReadPreference.primary;this.collection=e;this.query=t}execute(e,t,r){var i;const o=this.collection;const a=this.query;const u={...this.options,...this.bsonOptions};const c={findAndModify:o.collectionName,query:a,...this.cmdBase};try{(0,s.decorateWithCollation)(c,o,u)}catch(e){return r(e)}if(u.hint){const t=((i=this.writeConcern)===null||i===void 0?void 0:i.w)===0;if(t||(0,s.maxWireVersion)(e)<8){r(new n.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands"));return}c.hint=u.hint}if(this.explain&&(0,s.maxWireVersion)(e)<4){r(new n.MongoCompatibilityError(`Server ${e.name} does not support explain on findAndModify`));return}super.executeCommand(e,t,c,((e,t)=>{if(e)return r(e);return r(undefined,t)}))}}class FindOneAndDeleteOperation extends FindAndModifyOperation{constructor(e,t,r){if(t==null||typeof t!=="object"){throw new n.MongoInvalidArgumentError('Argument "filter" must be an object')}super(e,t,r);this.cmdBase.remove=true}}t.FindOneAndDeleteOperation=FindOneAndDeleteOperation;class FindOneAndReplaceOperation extends FindAndModifyOperation{constructor(e,t,r,i){if(t==null||typeof t!=="object"){throw new n.MongoInvalidArgumentError('Argument "filter" must be an object')}if(r==null||typeof r!=="object"){throw new n.MongoInvalidArgumentError('Argument "replacement" must be an object')}if((0,s.hasAtomicOperators)(r)){throw new n.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}super(e,t,i);this.cmdBase.update=r;configureFindAndModifyCmdBaseUpdateOpts(this.cmdBase,i)}}t.FindOneAndReplaceOperation=FindOneAndReplaceOperation;class FindOneAndUpdateOperation extends FindAndModifyOperation{constructor(e,t,r,i){if(t==null||typeof t!=="object"){throw new n.MongoInvalidArgumentError('Argument "filter" must be an object')}if(r==null||typeof r!=="object"){throw new n.MongoInvalidArgumentError('Argument "update" must be an object')}if(!(0,s.hasAtomicOperators)(r)){throw new n.MongoInvalidArgumentError("Update document requires atomic operators")}super(e,t,i);this.cmdBase.update=r;configureFindAndModifyCmdBaseUpdateOpts(this.cmdBase,i);if(i.arrayFilters){this.cmdBase.arrayFilters=i.arrayFilters}}}t.FindOneAndUpdateOperation=FindOneAndUpdateOperation;(0,u.defineAspects)(FindAndModifyOperation,[u.Aspect.WRITE_OPERATION,u.Aspect.RETRYABLE,u.Aspect.EXPLAINABLE])},90940:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetMoreOperation=void 0;const n=r(95544);const i=r(39612);class GetMoreOperation extends i.AbstractOperation{constructor(e,t,r,n={}){super(n);this.options=n;this.ns=e;this.cursorId=t;this.server=r}execute(e,t,r){if(e!==this.server){return r(new n.MongoRuntimeError("Getmore must run on the same server operation began on"))}e.getMore(this.ns,this.cursorId,this.options,r)}}t.GetMoreOperation=GetMoreOperation;(0,i.defineAspects)(GetMoreOperation,[i.Aspect.READ_OPERATION,i.Aspect.CURSOR_ITERATING])},35008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IndexInformationOperation=t.IndexExistsOperation=t.ListIndexesCursor=t.ListIndexesOperation=t.DropIndexesOperation=t.DropIndexOperation=t.EnsureIndexOperation=t.CreateIndexOperation=t.CreateIndexesOperation=t.IndexesOperation=void 0;const n=r(53734);const i=r(95544);const o=r(46334);const s=r(3332);const a=r(40504);const u=r(20801);const c=r(91082);const l=r(39612);const d=3;const h=new Set(["background","unique","name","partialFilterExpression","sparse","hidden","expireAfterSeconds","storageEngine","collation","version","weights","default_language","language_override","textIndexVersion","2dsphereIndexVersion","bits","min","max","bucketSize","wildcardProjection"]);function makeIndexSpec(e,t){const r=(0,s.parseIndexOptions)(e);const n=typeof t.name==="string"?t.name:r.name;const i={name:n,key:r.fieldHash};for(const e in t){if(h.has(e)){i[e]=t[e]}}return i}class IndexesOperation extends l.AbstractOperation{constructor(e,t){super(t);this.options=t;this.collection=e}execute(e,t,r){const n=this.collection;const i=this.options;(0,u.indexInformation)(n.s.db,n.collectionName,{full:true,...i,readPreference:this.readPreference,session:t},r)}}t.IndexesOperation=IndexesOperation;class CreateIndexesOperation extends a.CommandOperation{constructor(e,t,r,n){super(e,n);this.options=n!==null&&n!==void 0?n:{};this.collectionName=t;this.indexes=r}execute(e,t,r){const n=this.options;const o=this.indexes;const a=(0,s.maxWireVersion)(e);for(let t=0;t{if(e){r(e);return}const t=o.map((e=>e.name||""));r(undefined,t)}))}}t.CreateIndexesOperation=CreateIndexesOperation;class CreateIndexOperation extends CreateIndexesOperation{constructor(e,t,r,n){super(e,t,[makeIndexSpec(r,n)],n)}execute(e,t,r){super.execute(e,t,((e,t)=>{if(e||!t)return r(e);return r(undefined,t[0])}))}}t.CreateIndexOperation=CreateIndexOperation;class EnsureIndexOperation extends CreateIndexOperation{constructor(e,t,r,n){super(e,t,r,n);this.readPreference=o.ReadPreference.primary;this.db=e;this.collectionName=t}execute(e,t,r){const n=this.indexes[0].name;const o=this.db.collection(this.collectionName).listIndexes({session:t});o.toArray(((o,s)=>{if(o&&o.code!==i.MONGODB_ERROR_CODES.NamespaceNotFound){return r(o)}if(s){s=Array.isArray(s)?s:[s];if(s.some((e=>e.name===n))){r(undefined,n);return}}super.execute(e,t,r)}))}}t.EnsureIndexOperation=EnsureIndexOperation;class DropIndexOperation extends a.CommandOperation{constructor(e,t,r){super(e,r);this.options=r!==null&&r!==void 0?r:{};this.collection=e;this.indexName=t}execute(e,t,r){const n={dropIndexes:this.collection.collectionName,index:this.indexName};super.executeCommand(e,t,n,r)}}t.DropIndexOperation=DropIndexOperation;class DropIndexesOperation extends DropIndexOperation{constructor(e,t){super(e,"*",t)}execute(e,t,r){super.execute(e,t,(e=>{if(e)return r(e,false);r(undefined,true)}))}}t.DropIndexesOperation=DropIndexesOperation;class ListIndexesOperation extends a.CommandOperation{constructor(e,t){super(e,t);this.options=t!==null&&t!==void 0?t:{};this.collectionNamespace=e.s.namespace}execute(e,t,r){const n=(0,s.maxWireVersion)(e);if(n{if(n||i==null)return t(n);t(undefined,{server:r.server,session:e,response:i})}))}}t.ListIndexesCursor=ListIndexesCursor;class IndexExistsOperation extends l.AbstractOperation{constructor(e,t,r){super(r);this.options=r;this.collection=e;this.indexes=t}execute(e,t,r){const n=this.collection;const i=this.indexes;(0,u.indexInformation)(n.s.db,n.collectionName,{...this.options,readPreference:this.readPreference,session:t},((e,t)=>{if(e!=null)return r(e);if(!Array.isArray(i))return r(undefined,t[i]!=null);for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InsertManyOperation=t.InsertOneOperation=t.InsertOperation=void 0;const n=r(95544);const i=r(31942);const o=r(84340);const s=r(40504);const a=r(20801);const u=r(39612);class InsertOperation extends s.CommandOperation{constructor(e,t,r){var n;super(undefined,r);this.options={...r,checkKeys:(n=r.checkKeys)!==null&&n!==void 0?n:false};this.ns=e;this.documents=t}execute(e,t,r){var n;const i=(n=this.options)!==null&&n!==void 0?n:{};const o=typeof i.ordered==="boolean"?i.ordered:true;const s={insert:this.ns.collection,documents:this.documents,ordered:o};if(typeof i.bypassDocumentValidation==="boolean"){s.bypassDocumentValidation=i.bypassDocumentValidation}if(i.comment!=null){s.comment=i.comment}super.executeCommand(e,t,s,r)}}t.InsertOperation=InsertOperation;class InsertOneOperation extends InsertOperation{constructor(e,t,r){super(e.s.namespace,(0,a.prepareDocs)(e,[t],r),r)}execute(e,t,r){super.execute(e,t,((e,t)=>{var i,o;if(e||t==null)return r(e);if(t.code)return r(new n.MongoServerError(t));if(t.writeErrors){return r(new n.MongoServerError(t.writeErrors[0]))}r(undefined,{acknowledged:(o=((i=this.writeConcern)===null||i===void 0?void 0:i.w)!==0)!==null&&o!==void 0?o:true,insertedId:this.documents[0]._id})}))}}t.InsertOneOperation=InsertOneOperation;class InsertManyOperation extends u.AbstractOperation{constructor(e,t,r){super(r);if(!Array.isArray(t)){throw new n.MongoInvalidArgumentError('Argument "docs" must be an array of documents')}this.options=r;this.collection=e;this.docs=t}execute(e,t,r){const n=this.collection;const s={...this.options,...this.bsonOptions,readPreference:this.readPreference};const u=i.WriteConcern.fromOptions(s);const c=new o.BulkWriteOperation(n,(0,a.prepareDocs)(n,this.docs,s).map((e=>({insertOne:{document:e}}))),s);c.execute(e,t,((e,t)=>{var n;if(e||t==null)return r(e);r(undefined,{acknowledged:(n=(u===null||u===void 0?void 0:u.w)!==0)!==null&&n!==void 0?n:true,insertedCount:t.insertedCount,insertedIds:t.insertedIds})}))}}t.InsertManyOperation=InsertManyOperation;(0,u.defineAspects)(InsertOperation,[u.Aspect.RETRYABLE,u.Aspect.WRITE_OPERATION]);(0,u.defineAspects)(InsertOneOperation,[u.Aspect.RETRYABLE,u.Aspect.WRITE_OPERATION]);(0,u.defineAspects)(InsertManyOperation,[u.Aspect.WRITE_OPERATION])},88660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IsCappedOperation=void 0;const n=r(95544);const i=r(39612);class IsCappedOperation extends i.AbstractOperation{constructor(e,t){super(t);this.options=t;this.collection=e}execute(e,t,r){const i=this.collection;i.s.db.listCollections({name:i.collectionName},{...this.options,nameOnly:false,readPreference:this.readPreference,session:t}).toArray(((e,t)=>{if(e||!t)return r(e);if(t.length===0){return r(new n.MongoAPIError(`collection ${i.namespace} not found`))}const o=t[0].options;r(undefined,!!(o&&o.capped))}))}}t.IsCappedOperation=IsCappedOperation},27228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListCollectionsCursor=t.ListCollectionsOperation=void 0;const n=r(72367);const i=r(53734);const o=r(3332);const s=r(40504);const a=r(91082);const u=r(39612);const c=3;class ListCollectionsOperation extends s.CommandOperation{constructor(e,t,r){super(e,r);this.options=r!==null&&r!==void 0?r:{};this.db=e;this.filter=t;this.nameOnly=!!this.options.nameOnly;this.authorizedCollections=!!this.options.authorizedCollections;if(typeof this.options.batchSize==="number"){this.batchSize=this.options.batchSize}}execute(e,t,r){if((0,o.maxWireVersion)(e){const t=`${i}.`;const r=e.name.indexOf(t);if(e.name&&r===0){e.name=e.name.substr(r+t.length)}return e};e.query(new o.MongoDBNamespace(i,n.SYSTEM_NAMESPACE_COLLECTION),{query:t},{batchSize:this.batchSize||1e3,readPreference:this.readPreference},((e,t)=>{if(t&&t.documents&&Array.isArray(t.documents)){t.documents=t.documents.map(documentTransform)}r(e,t)}));return}return super.executeCommand(e,t,this.generateCommand(),r)}generateCommand(){return{listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections}}}t.ListCollectionsOperation=ListCollectionsOperation;class ListCollectionsCursor extends i.AbstractCursor{constructor(e,t,r){super((0,o.getTopology)(e),e.s.namespace,r);this.parent=e;this.filter=t;this.options=r}clone(){return new ListCollectionsCursor(this.parent,this.filter,{...this.options,...this.cursorOptions})}_initialize(e,t){const r=new ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:e});(0,a.executeOperation)((0,o.getTopology)(this.parent),r,((n,i)=>{if(n||i==null)return t(n);t(undefined,{server:r.server,session:e,response:i})}))}}t.ListCollectionsCursor=ListCollectionsCursor;(0,u.defineAspects)(ListCollectionsOperation,[u.Aspect.READ_OPERATION,u.Aspect.RETRYABLE,u.Aspect.CURSOR_CREATING])},65293:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListDatabasesOperation=void 0;const n=r(3332);const i=r(40504);const o=r(39612);class ListDatabasesOperation extends i.CommandOperation{constructor(e,t){super(e,t);this.options=t!==null&&t!==void 0?t:{};this.ns=new n.MongoDBNamespace("admin","$cmd")}execute(e,t,r){const n={listDatabases:1};if(this.options.nameOnly){n.nameOnly=Number(n.nameOnly)}if(this.options.filter){n.filter=this.options.filter}if(typeof this.options.authorizedDatabases==="boolean"){n.authorizedDatabases=this.options.authorizedDatabases}super.executeCommand(e,t,n,r)}}t.ListDatabasesOperation=ListDatabasesOperation;(0,o.defineAspects)(ListDatabasesOperation,[o.Aspect.READ_OPERATION,o.Aspect.RETRYABLE])},19868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MapReduceOperation=void 0;const n=r(85539);const i=r(49150);const o=r(95544);const s=r(46334);const a=r(3332);const u=r(40504);const c=r(39612);const l=["explain","readPreference","readConcern","session","bypassDocumentValidation","writeConcern","raw","fieldsAsRaw","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation","scope"];class MapReduceOperation extends u.CommandOperation{constructor(e,t,r,n){super(e,n);this.options=n!==null&&n!==void 0?n:{};this.collection=e;this.map=t;this.reduce=r}execute(e,t,r){const n=this.collection;const u=this.map;const c=this.reduce;let d=this.options;const h={mapReduce:n.collectionName,map:u,reduce:c};if(d.scope){h.scope=processScope(d.scope)}for(const e in d){if(l.indexOf(e)===-1){h[e]=d[e]}}d=Object.assign({},d);if(this.readPreference.mode===s.ReadPreferenceMode.primary&&d.out&&d.out.inline!==1&&d.out!=="inline"){d.readPreference=s.ReadPreference.primary;(0,a.applyWriteConcern)(h,{db:n.s.db,collection:n},d)}else{(0,a.decorateWithReadConcern)(h,n,d)}if(d.bypassDocumentValidation===true){h.bypassDocumentValidation=d.bypassDocumentValidation}try{(0,a.decorateWithCollation)(h,n,d)}catch(e){return r(e)}if(this.explain&&(0,a.maxWireVersion)(e)<9){r(new o.MongoCompatibilityError(`Server ${e.name} does not support explain on mapReduce`));return}super.executeCommand(e,t,h,((e,t)=>{if(e)return r(e);if(1!==t.ok||t.err||t.errmsg){return r(new o.MongoServerError(t))}if(this.explain)return r(undefined,t);const s={};if(t.timeMillis)s["processtime"]=t.timeMillis;if(t.counts)s["counts"]=t.counts;if(t.timing)s["timing"]=t.timing;if(t.results){if(d["verbose"]==null||!d["verbose"]){return r(undefined,t.results)}return r(undefined,{results:t.results,stats:s})}let a=null;if(t.result!=null&&typeof t.result==="object"){const e=t.result;a=new i.Db(n.s.db.s.client,e.db,n.s.db.s.options).collection(e.collection)}else{a=n.s.db.collection(t.result)}if(d["verbose"]==null||!d["verbose"]){return r(e,a)}r(e,{collection:a,stats:s})}))}}t.MapReduceOperation=MapReduceOperation;function processScope(e){if(!(0,a.isObject)(e)||e._bsontype==="ObjectID"){return e}const t={};for(const r of Object.keys(e)){if("function"===typeof e[r]){t[r]=new n.Code(String(e[r]))}else if(e[r]._bsontype==="Code"){t[r]=e[r]}else{t[r]=processScope(e[r])}}return t}(0,c.defineAspects)(MapReduceOperation,[c.Aspect.EXPLAINABLE])},39612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defineAspects=t.AbstractOperation=t.Aspect=void 0;const n=r(85539);const i=r(46334);t.Aspect={READ_OPERATION:Symbol("READ_OPERATION"),WRITE_OPERATION:Symbol("WRITE_OPERATION"),RETRYABLE:Symbol("RETRYABLE"),EXPLAINABLE:Symbol("EXPLAINABLE"),SKIP_COLLATION:Symbol("SKIP_COLLATION"),CURSOR_CREATING:Symbol("CURSOR_CREATING"),CURSOR_ITERATING:Symbol("CURSOR_ITERATING")};const o=Symbol("session");class AbstractOperation{constructor(e={}){var r;this.readPreference=this.hasAspect(t.Aspect.WRITE_OPERATION)?i.ReadPreference.primary:(r=i.ReadPreference.fromOptions(e))!==null&&r!==void 0?r:i.ReadPreference.primary;this.bsonOptions=(0,n.resolveBSONOptions)(e);if(e.session){this[o]=e.session}this.options=e;this.bypassPinningCheck=!!e.bypassPinningCheck;this.trySecondaryWrite=false}hasAspect(e){const t=this.constructor;if(t.aspects==null){return false}return t.aspects.has(e)}get session(){return this[o]}get canRetryRead(){return true}get canRetryWrite(){return true}}t.AbstractOperation=AbstractOperation;function defineAspects(e,t){if(!Array.isArray(t)&&!(t instanceof Set)){t=[t]}t=new Set(t);Object.defineProperty(e,"aspects",{value:t,writable:false});return t}t.defineAspects=defineAspects},68934:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OptionsOperation=void 0;const n=r(95544);const i=r(39612);class OptionsOperation extends i.AbstractOperation{constructor(e,t){super(t);this.options=t;this.collection=e}execute(e,t,r){const i=this.collection;i.s.db.listCollections({name:i.collectionName},{...this.options,nameOnly:false,readPreference:this.readPreference,session:t}).toArray(((e,t)=>{if(e||!t)return r(e);if(t.length===0){return r(new n.MongoAPIError(`collection ${i.namespace} not found`))}r(e,t[0].options)}))}}t.OptionsOperation=OptionsOperation},91435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProfilingLevelOperation=void 0;const n=r(95544);const i=r(40504);class ProfilingLevelOperation extends i.CommandOperation{constructor(e,t){super(e,t);this.options=t}execute(e,t,r){super.executeCommand(e,t,{profile:-1},((e,t)=>{if(e==null&&t.ok===1){const e=t.was;if(e===0)return r(undefined,"off");if(e===1)return r(undefined,"slow_only");if(e===2)return r(undefined,"all");return r(new n.MongoRuntimeError(`Illegal profiling level value ${e}`))}else{e!=null?r(e):r(new n.MongoRuntimeError("Error with profile command"))}}))}}t.ProfilingLevelOperation=ProfilingLevelOperation},13328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoveUserOperation=void 0;const n=r(40504);const i=r(39612);class RemoveUserOperation extends n.CommandOperation{constructor(e,t,r){super(e,r);this.options=r;this.username=t}execute(e,t,r){super.executeCommand(e,t,{dropUser:this.username},(e=>{r(e,e?false:true)}))}}t.RemoveUserOperation=RemoveUserOperation;(0,i.defineAspects)(RemoveUserOperation,[i.Aspect.WRITE_OPERATION])},15149:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RenameOperation=void 0;const n=r(63978);const i=r(95544);const o=r(3332);const s=r(39612);const a=r(3524);class RenameOperation extends a.RunAdminCommandOperation{constructor(e,t,r){(0,o.checkCollectionName)(t);const n=e.namespace;const i=e.s.namespace.withCollection(t).toString();const s=typeof r.dropTarget==="boolean"?r.dropTarget:false;const a={renameCollection:n,to:i,dropTarget:s};super(e,a,r);this.options=r;this.collection=e;this.newName=t}execute(e,t,r){const o=this.collection;super.execute(e,t,((e,t)=>{if(e)return r(e);if(t.errmsg){return r(new i.MongoServerError(t))}let s;try{s=new n.Collection(o.s.db,this.newName,o.s.options)}catch(e){return r(e)}return r(undefined,s)}))}}t.RenameOperation=RenameOperation;(0,s.defineAspects)(RenameOperation,[s.Aspect.WRITE_OPERATION])},3524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RunAdminCommandOperation=t.RunCommandOperation=void 0;const n=r(3332);const i=r(40504);class RunCommandOperation extends i.CommandOperation{constructor(e,t,r){super(e,r);this.options=r!==null&&r!==void 0?r:{};this.command=t}execute(e,t,r){const n=this.command;this.executeCommand(e,t,n,r)}}t.RunCommandOperation=RunCommandOperation;class RunAdminCommandOperation extends RunCommandOperation{constructor(e,t,r){super(e,t,r);this.ns=new n.MongoDBNamespace("admin")}}t.RunAdminCommandOperation=RunAdminCommandOperation},38357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetProfilingLevelOperation=t.ProfilingLevel=void 0;const n=r(95544);const i=r(3332);const o=r(40504);const s=new Set(["off","slow_only","all"]);t.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class SetProfilingLevelOperation extends o.CommandOperation{constructor(e,r,n){super(e,n);this.options=n;switch(r){case t.ProfilingLevel.off:this.profile=0;break;case t.ProfilingLevel.slowOnly:this.profile=1;break;case t.ProfilingLevel.all:this.profile=2;break;default:this.profile=0;break}this.level=r}execute(e,r,o){const a=this.level;if(!s.has(a)){return o(new n.MongoInvalidArgumentError(`Profiling level must be one of "${(0,i.enumToString)(t.ProfilingLevel)}"`))}super.executeCommand(e,r,{profile:this.profile},((e,t)=>{if(e==null&&t.ok===1)return o(undefined,a);return e!=null?o(e):o(new n.MongoRuntimeError("Error with profile command"))}))}}t.SetProfilingLevelOperation=SetProfilingLevelOperation},65870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DbStatsOperation=t.CollStatsOperation=void 0;const n=r(40504);const i=r(39612);class CollStatsOperation extends n.CommandOperation{constructor(e,t){super(e,t);this.options=t!==null&&t!==void 0?t:{};this.collectionName=e.collectionName}execute(e,t,r){const n={collStats:this.collectionName};if(this.options.scale!=null){n.scale=this.options.scale}super.executeCommand(e,t,n,r)}}t.CollStatsOperation=CollStatsOperation;class DbStatsOperation extends n.CommandOperation{constructor(e,t){super(e,t);this.options=t}execute(e,t,r){const n={dbStats:true};if(this.options.scale!=null){n.scale=this.options.scale}super.executeCommand(e,t,n,r)}}t.DbStatsOperation=DbStatsOperation;(0,i.defineAspects)(CollStatsOperation,[i.Aspect.READ_OPERATION]);(0,i.defineAspects)(DbStatsOperation,[i.Aspect.READ_OPERATION])},4292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeUpdateStatement=t.ReplaceOneOperation=t.UpdateManyOperation=t.UpdateOneOperation=t.UpdateOperation=void 0;const n=r(95544);const i=r(3332);const o=r(40504);const s=r(39612);class UpdateOperation extends o.CommandOperation{constructor(e,t,r){super(undefined,r);this.options=r;this.ns=e;this.statements=t}get canRetryWrite(){if(super.canRetryWrite===false){return false}return this.statements.every((e=>e.multi==null||e.multi===false))}execute(e,t,r){var o;const s=(o=this.options)!==null&&o!==void 0?o:{};const a=typeof s.ordered==="boolean"?s.ordered:true;const u={update:this.ns.collection,updates:this.statements,ordered:a};if(typeof s.bypassDocumentValidation==="boolean"){u.bypassDocumentValidation=s.bypassDocumentValidation}if(s.let){u.let=s.let}const c=this.statements.find((e=>!!e.collation));if((0,i.collationNotSupported)(e,s)||c&&(0,i.collationNotSupported)(e,c)){r(new n.MongoCompatibilityError(`Server ${e.name} does not support collation`));return}const l=this.writeConcern&&this.writeConcern.w===0;if(l||(0,i.maxWireVersion)(e)<5){if(this.statements.find((e=>e.hint))){r(new n.MongoCompatibilityError(`Servers < 3.4 do not support hint on update`));return}}if(this.explain&&(0,i.maxWireVersion)(e)<3){r(new n.MongoCompatibilityError(`Server ${e.name} does not support explain on update`));return}if(this.statements.some((e=>!!e.arrayFilters))&&(0,i.maxWireVersion)(e)<6){r(new n.MongoCompatibilityError('Option "arrayFilters" is only supported on MongoDB 3.6+'));return}super.executeCommand(e,t,u,r)}}t.UpdateOperation=UpdateOperation;class UpdateOneOperation extends UpdateOperation{constructor(e,t,r,o){super(e.s.namespace,[makeUpdateStatement(t,r,{...o,multi:false})],o);if(!(0,i.hasAtomicOperators)(r)){throw new n.MongoInvalidArgumentError("Update document requires atomic operators")}}execute(e,t,r){super.execute(e,t,((e,t)=>{var i,o;if(e||!t)return r(e);if(this.explain!=null)return r(undefined,t);if(t.code)return r(new n.MongoServerError(t));if(t.writeErrors)return r(new n.MongoServerError(t.writeErrors[0]));r(undefined,{acknowledged:(o=((i=this.writeConcern)===null||i===void 0?void 0:i.w)!==0)!==null&&o!==void 0?o:true,modifiedCount:t.nModified!=null?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})}))}}t.UpdateOneOperation=UpdateOneOperation;class UpdateManyOperation extends UpdateOperation{constructor(e,t,r,o){super(e.s.namespace,[makeUpdateStatement(t,r,{...o,multi:true})],o);if(!(0,i.hasAtomicOperators)(r)){throw new n.MongoInvalidArgumentError("Update document requires atomic operators")}}execute(e,t,r){super.execute(e,t,((e,t)=>{var i,o;if(e||!t)return r(e);if(this.explain!=null)return r(undefined,t);if(t.code)return r(new n.MongoServerError(t));if(t.writeErrors)return r(new n.MongoServerError(t.writeErrors[0]));r(undefined,{acknowledged:(o=((i=this.writeConcern)===null||i===void 0?void 0:i.w)!==0)!==null&&o!==void 0?o:true,modifiedCount:t.nModified!=null?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})}))}}t.UpdateManyOperation=UpdateManyOperation;class ReplaceOneOperation extends UpdateOperation{constructor(e,t,r,o){super(e.s.namespace,[makeUpdateStatement(t,r,{...o,multi:false})],o);if((0,i.hasAtomicOperators)(r)){throw new n.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}}execute(e,t,r){super.execute(e,t,((e,t)=>{var i,o;if(e||!t)return r(e);if(this.explain!=null)return r(undefined,t);if(t.code)return r(new n.MongoServerError(t));if(t.writeErrors)return r(new n.MongoServerError(t.writeErrors[0]));r(undefined,{acknowledged:(o=((i=this.writeConcern)===null||i===void 0?void 0:i.w)!==0)!==null&&o!==void 0?o:true,modifiedCount:t.nModified!=null?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})}))}}t.ReplaceOneOperation=ReplaceOneOperation;function makeUpdateStatement(e,t,r){if(e==null||typeof e!=="object"){throw new n.MongoInvalidArgumentError("Selector must be a valid JavaScript object")}if(t==null||typeof t!=="object"){throw new n.MongoInvalidArgumentError("Document must be a valid JavaScript object")}const i={q:e,u:t};if(typeof r.upsert==="boolean"){i.upsert=r.upsert}if(r.multi){i.multi=r.multi}if(r.hint){i.hint=r.hint}if(r.arrayFilters){i.arrayFilters=r.arrayFilters}if(r.collation){i.collation=r.collation}return i}t.makeUpdateStatement=makeUpdateStatement;(0,s.defineAspects)(UpdateOperation,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION,s.Aspect.SKIP_COLLATION]);(0,s.defineAspects)(UpdateOneOperation,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION,s.Aspect.EXPLAINABLE,s.Aspect.SKIP_COLLATION]);(0,s.defineAspects)(UpdateManyOperation,[s.Aspect.WRITE_OPERATION,s.Aspect.EXPLAINABLE,s.Aspect.SKIP_COLLATION]);(0,s.defineAspects)(ReplaceOneOperation,[s.Aspect.RETRYABLE,s.Aspect.WRITE_OPERATION,s.Aspect.SKIP_COLLATION])},10537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValidateCollectionOperation=void 0;const n=r(95544);const i=r(40504);class ValidateCollectionOperation extends i.CommandOperation{constructor(e,t,r){const n={validate:t};const i=Object.keys(r);for(let e=0;e{if(e!=null)return r(e);if(t.ok===0)return r(new n.MongoRuntimeError("Error with validate command"));if(t.result!=null&&typeof t.result!=="string")return r(new n.MongoRuntimeError("Error with validation data"));if(t.result!=null&&t.result.match(/exception|corrupt/)!=null)return r(new n.MongoRuntimeError(`Invalid collection ${i}`));if(t.valid!=null&&!t.valid)return r(new n.MongoRuntimeError(`Invalid collection ${i}`));return r(undefined,t)}))}}t.ValidateCollectionOperation=ValidateCollectionOperation},44912:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PromiseProvider=void 0;const n=r(95544);const i=Symbol("promise");const o={[i]:undefined};class PromiseProvider{static validate(e){if(typeof e!=="function")throw new n.MongoInvalidArgumentError(`Promise must be a function, got ${e}`);return!!e}static set(e){if(!PromiseProvider.validate(e)){return}o[i]=e}static get(){return o[i]}}t.PromiseProvider=PromiseProvider;PromiseProvider.set(global.Promise)},31256:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReadConcern=t.ReadConcernLevel=void 0;t.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class ReadConcern{constructor(e){var r;this.level=(r=t.ReadConcernLevel[e])!==null&&r!==void 0?r:e}static fromOptions(e){if(e==null){return}if(e.readConcern){const{readConcern:t}=e;if(t instanceof ReadConcern){return t}else if(typeof t==="string"){return new ReadConcern(t)}else if("level"in t&&t.level){return new ReadConcern(t.level)}}if(e.level){return new ReadConcern(e.level)}}static get MAJORITY(){return t.ReadConcernLevel.majority}static get AVAILABLE(){return t.ReadConcernLevel.available}static get LINEARIZABLE(){return t.ReadConcernLevel.linearizable}static get SNAPSHOT(){return t.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}t.ReadConcern=ReadConcern},46334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReadPreference=t.ReadPreferenceMode=void 0;const n=r(95544);t.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class ReadPreference{constructor(e,t,r){if(!ReadPreference.isValid(e)){throw new n.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(e)}`)}if(r==null&&typeof t==="object"&&!Array.isArray(t)){r=t;t=undefined}else if(t&&!Array.isArray(t)){throw new n.MongoInvalidArgumentError("ReadPreference tags must be an array")}this.mode=e;this.tags=t;this.hedge=r===null||r===void 0?void 0:r.hedge;this.maxStalenessSeconds=undefined;this.minWireVersion=undefined;r=r!==null&&r!==void 0?r:{};if(r.maxStalenessSeconds!=null){if(r.maxStalenessSeconds<=0){throw new n.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer")}this.maxStalenessSeconds=r.maxStalenessSeconds;this.minWireVersion=5}if(this.mode===ReadPreference.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0){throw new n.MongoInvalidArgumentError("Primary read preference cannot be combined with tags")}if(this.maxStalenessSeconds){throw new n.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds")}if(this.hedge){throw new n.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}}get preference(){return this.mode}static fromString(e){return new ReadPreference(e)}static fromOptions(e){var t,r,n;if(!e)return;const i=(t=e.readPreference)!==null&&t!==void 0?t:(r=e.session)===null||r===void 0?void 0:r.transaction.options.readPreference;const o=e.readPreferenceTags;if(i==null){return}if(typeof i==="string"){return new ReadPreference(i,o,{maxStalenessSeconds:e.maxStalenessSeconds,hedge:e.hedge})}else if(!(i instanceof ReadPreference)&&typeof i==="object"){const t=i.mode||i.preference;if(t&&typeof t==="string"){return new ReadPreference(t,(n=i.tags)!==null&&n!==void 0?n:o,{maxStalenessSeconds:i.maxStalenessSeconds,hedge:e.hedge})}}if(o){i.tags=o}return i}static translate(e){if(e.readPreference==null)return e;const t=e.readPreference;if(typeof t==="string"){e.readPreference=new ReadPreference(t)}else if(t&&!(t instanceof ReadPreference)&&typeof t==="object"){const r=t.mode||t.preference;if(r&&typeof r==="string"){e.readPreference=new ReadPreference(r,t.tags,{maxStalenessSeconds:t.maxStalenessSeconds})}}else if(!(t instanceof ReadPreference)){throw new n.MongoInvalidArgumentError(`Invalid read preference: ${t}`)}return e}static isValid(e){const t=new Set([ReadPreference.PRIMARY,ReadPreference.PRIMARY_PREFERRED,ReadPreference.SECONDARY,ReadPreference.SECONDARY_PREFERRED,ReadPreference.NEAREST,null]);return t.has(e)}isValid(e){return ReadPreference.isValid(typeof e==="string"?e:this.mode)}slaveOk(){return this.secondaryOk()}secondaryOk(){const e=new Set([ReadPreference.PRIMARY_PREFERRED,ReadPreference.SECONDARY,ReadPreference.SECONDARY_PREFERRED,ReadPreference.NEAREST]);return e.has(this.mode)}equals(e){return e.mode===this.mode}toJSON(){const e={mode:this.mode};if(Array.isArray(this.tags))e.tags=this.tags;if(this.maxStalenessSeconds)e.maxStalenessSeconds=this.maxStalenessSeconds;if(this.hedge)e.hedge=this.hedge;return e}}t.ReadPreference=ReadPreference;ReadPreference.PRIMARY=t.ReadPreferenceMode.primary;ReadPreference.PRIMARY_PREFERRED=t.ReadPreferenceMode.primaryPreferred;ReadPreference.SECONDARY=t.ReadPreferenceMode.secondary;ReadPreference.SECONDARY_PREFERRED=t.ReadPreferenceMode.secondaryPreferred;ReadPreference.NEAREST=t.ReadPreferenceMode.nearest;ReadPreference.primary=new ReadPreference(t.ReadPreferenceMode.primary);ReadPreference.primaryPreferred=new ReadPreference(t.ReadPreferenceMode.primaryPreferred);ReadPreference.secondary=new ReadPreference(t.ReadPreferenceMode.secondary);ReadPreference.secondaryPreferred=new ReadPreference(t.ReadPreferenceMode.secondaryPreferred);ReadPreference.nearest=new ReadPreference(t.ReadPreferenceMode.nearest)},30875:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._advanceClusterTime=t.clearAndRemoveTimerFrom=t.drainTimerQueue=t.ServerType=t.TopologyType=t.STATE_CONNECTED=t.STATE_CONNECTING=t.STATE_CLOSED=t.STATE_CLOSING=void 0;t.STATE_CLOSING="closing";t.STATE_CLOSED="closed";t.STATE_CONNECTING="connecting";t.STATE_CONNECTED="connected";t.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"});t.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"});function drainTimerQueue(e){e.forEach(clearTimeout);e.clear()}t.drainTimerQueue=drainTimerQueue;function clearAndRemoveTimerFrom(e,t){clearTimeout(e);return t.delete(e)}t.clearAndRemoveTimerFrom=clearAndRemoveTimerFrom;function _advanceClusterTime(e,t){if(e.clusterTime==null){e.clusterTime=t}else{if(t.clusterTime.greaterThan(e.clusterTime.clusterTime)){e.clusterTime=t}}}t._advanceClusterTime=_advanceClusterTime},27907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServerHeartbeatFailedEvent=t.ServerHeartbeatSucceededEvent=t.ServerHeartbeatStartedEvent=t.TopologyClosedEvent=t.TopologyOpeningEvent=t.TopologyDescriptionChangedEvent=t.ServerClosedEvent=t.ServerOpeningEvent=t.ServerDescriptionChangedEvent=void 0;class ServerDescriptionChangedEvent{constructor(e,t,r,n){this.topologyId=e;this.address=t;this.previousDescription=r;this.newDescription=n}}t.ServerDescriptionChangedEvent=ServerDescriptionChangedEvent;class ServerOpeningEvent{constructor(e,t){this.topologyId=e;this.address=t}}t.ServerOpeningEvent=ServerOpeningEvent;class ServerClosedEvent{constructor(e,t){this.topologyId=e;this.address=t}}t.ServerClosedEvent=ServerClosedEvent;class TopologyDescriptionChangedEvent{constructor(e,t,r){this.topologyId=e;this.previousDescription=t;this.newDescription=r}}t.TopologyDescriptionChangedEvent=TopologyDescriptionChangedEvent;class TopologyOpeningEvent{constructor(e){this.topologyId=e}}t.TopologyOpeningEvent=TopologyOpeningEvent;class TopologyClosedEvent{constructor(e){this.topologyId=e}}t.TopologyClosedEvent=TopologyClosedEvent;class ServerHeartbeatStartedEvent{constructor(e){this.connectionId=e}}t.ServerHeartbeatStartedEvent=ServerHeartbeatStartedEvent;class ServerHeartbeatSucceededEvent{constructor(e,t,r){this.connectionId=e;this.duration=t;this.reply=r}}t.ServerHeartbeatSucceededEvent=ServerHeartbeatSucceededEvent;class ServerHeartbeatFailedEvent{constructor(e,t,r){this.connectionId=e;this.duration=t;this.failure=r}}t.ServerHeartbeatFailedEvent=ServerHeartbeatFailedEvent},85811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RTTPinger=t.Monitor=void 0;const n=r(85539);const i=r(9001);const o=r(68046);const s=r(72367);const a=r(95544);const u=r(18284);const c=r(3332);const l=r(30875);const d=r(27907);const h=r(11102);const m=Symbol("server");const g=Symbol("monitorId");const y=Symbol("connection");const v=Symbol("cancellationToken");const b=Symbol("rttPinger");const _=Symbol("roundTripTime");const E="idle";const k="monitoring";const x=(0,c.makeStateMachine)({[l.STATE_CLOSING]:[l.STATE_CLOSING,E,l.STATE_CLOSED],[l.STATE_CLOSED]:[l.STATE_CLOSED,k],[E]:[E,k,l.STATE_CLOSING],[k]:[k,E,l.STATE_CLOSING]});const C=new Set([l.STATE_CLOSING,l.STATE_CLOSED,k]);function isInCloseState(e){return e.s.state===l.STATE_CLOSED||e.s.state===l.STATE_CLOSING}class Monitor extends u.TypedEventEmitter{constructor(e,t){var r,n,i;super();this[m]=e;this[y]=undefined;this[v]=new u.CancellationToken;this[v].setMaxListeners(Infinity);this[g]=undefined;this.s={state:l.STATE_CLOSED};this.address=e.description.address;this.options=Object.freeze({connectTimeoutMS:(r=t.connectTimeoutMS)!==null&&r!==void 0?r:1e4,heartbeatFrequencyMS:(n=t.heartbeatFrequencyMS)!==null&&n!==void 0?n:1e4,minHeartbeatFrequencyMS:(i=t.minHeartbeatFrequencyMS)!==null&&i!==void 0?i:500});const s=this[v];const a=Object.assign({id:"",generation:e.s.pool.generation,connectionType:o.Connection,cancellationToken:s,hostAddress:e.description.hostAddress},t,{raw:false,promoteLongs:true,promoteValues:true,promoteBuffers:true});delete a.credentials;if(a.autoEncrypter){delete a.autoEncrypter}this.connectOptions=Object.freeze(a)}connect(){if(this.s.state!==l.STATE_CLOSED){return}const e=this.options.heartbeatFrequencyMS;const t=this.options.minHeartbeatFrequencyMS;this[g]=(0,c.makeInterruptibleAsyncInterval)(monitorServer(this),{interval:e,minInterval:t,immediate:true})}requestCheck(){var e;if(C.has(this.s.state)){return}(e=this[g])===null||e===void 0?void 0:e.wake()}reset(){const e=this[m].description.topologyVersion;if(isInCloseState(this)||e==null){return}x(this,l.STATE_CLOSING);resetMonitorState(this);x(this,E);const t=this.options.heartbeatFrequencyMS;const r=this.options.minHeartbeatFrequencyMS;this[g]=(0,c.makeInterruptibleAsyncInterval)(monitorServer(this),{interval:t,minInterval:r})}close(){if(isInCloseState(this)){return}x(this,l.STATE_CLOSING);resetMonitorState(this);this.emit("close");x(this,l.STATE_CLOSED)}}t.Monitor=Monitor;function resetMonitorState(e){var t,r,n;(t=e[g])===null||t===void 0?void 0:t.stop();e[g]=undefined;(r=e[b])===null||r===void 0?void 0:r.close();e[b]=undefined;e[v].emit("cancel");(n=e[y])===null||n===void 0?void 0:n.destroy({force:true});e[y]=undefined}function checkServer(e,t){let r=(0,c.now)();e.emit(h.Server.SERVER_HEARTBEAT_STARTED,new d.ServerHeartbeatStartedEvent(e.address));function failureHandler(n){var i;(i=e[y])===null||i===void 0?void 0:i.destroy({force:true});e[y]=undefined;e.emit(h.Server.SERVER_HEARTBEAT_FAILED,new d.ServerHeartbeatFailedEvent(e.address,(0,c.calculateDurationInMs)(r),n));e.emit("resetServer",n);e.emit("resetConnectionPool");t(n)}const n=e[y];if(n&&!n.closed){const{serverApi:i,helloOk:o}=n;const a=e.options.connectTimeoutMS;const u=e.options.heartbeatFrequencyMS;const l=e[m].description.topologyVersion;const g=l!=null;const y={[(i===null||i===void 0?void 0:i.version)||o?"hello":s.LEGACY_HELLO_COMMAND]:true,...g&&l?{maxAwaitTimeMS:u,topologyVersion:makeTopologyVersion(l)}:{}};const _=g?{socketTimeoutMS:a?a+u:0,exhaustAllowed:true}:{socketTimeoutMS:a};if(g&&e[b]==null){e[b]=new RTTPinger(e[v],Object.assign({heartbeatFrequencyMS:e.options.heartbeatFrequencyMS},e.connectOptions))}n.command((0,c.ns)("admin.$cmd"),y,_,((n,i)=>{var o;if(n){failureHandler(n);return}if(!("isWritablePrimary"in i)){i.isWritablePrimary=i[s.LEGACY_HELLO_COMMAND]}const a=e[b];const u=g&&a?a.roundTripTime:(0,c.calculateDurationInMs)(r);e.emit(h.Server.SERVER_HEARTBEAT_SUCCEEDED,new d.ServerHeartbeatSucceededEvent(e.address,u,i));if(g&&i.topologyVersion){e.emit(h.Server.SERVER_HEARTBEAT_STARTED,new d.ServerHeartbeatStartedEvent(e.address));r=(0,c.now)()}else{(o=e[b])===null||o===void 0?void 0:o.close();e[b]=undefined;t(undefined,i)}}));return}(0,i.connect)(e.connectOptions,((n,i)=>{if(n){e[y]=undefined;if(!(n instanceof a.MongoNetworkError)){e.emit("resetConnectionPool")}failureHandler(n);return}if(i){if(isInCloseState(e)){i.destroy({force:true});return}e[y]=i;e.emit(h.Server.SERVER_HEARTBEAT_SUCCEEDED,new d.ServerHeartbeatSucceededEvent(e.address,(0,c.calculateDurationInMs)(r),i.hello));t(undefined,i.hello)}}))}function monitorServer(e){return t=>{x(e,k);function done(){if(!isInCloseState(e)){x(e,E)}t()}checkServer(e,((t,r)=>{if(t){if(e[m].description.type===l.ServerType.Unknown){e.emit("resetServer",t);return done()}}if(r&&r.topologyVersion){setTimeout((()=>{var t;if(!isInCloseState(e)){(t=e[g])===null||t===void 0?void 0:t.wake()}}),0)}done()}))}}function makeTopologyVersion(e){return{processId:e.processId,counter:n.Long.isLong(e.counter)?e.counter:n.Long.fromNumber(e.counter)}}class RTTPinger{constructor(e,t){this[y]=undefined;this[v]=e;this[_]=0;this.closed=false;const r=t.heartbeatFrequencyMS;this[g]=setTimeout((()=>measureRoundTripTime(this,t)),r)}get roundTripTime(){return this[_]}close(){var e;this.closed=true;clearTimeout(this[g]);(e=this[y])===null||e===void 0?void 0:e.destroy({force:true});this[y]=undefined}}t.RTTPinger=RTTPinger;function measureRoundTripTime(e,t){const r=(0,c.now)();t.cancellationToken=e[v];const n=t.heartbeatFrequencyMS;if(e.closed){return}function measureAndReschedule(i){if(e.closed){i===null||i===void 0?void 0:i.destroy({force:true});return}if(e[y]==null){e[y]=i}e[_]=(0,c.calculateDurationInMs)(r);e[g]=setTimeout((()=>measureRoundTripTime(e,t)),n)}const o=e[y];if(o==null){(0,i.connect)(t,((t,r)=>{if(t){e[y]=undefined;e[_]=0;return}measureAndReschedule(r)}));return}o.command((0,c.ns)("admin.$cmd"),{[s.LEGACY_HELLO_COMMAND]:1},undefined,(t=>{if(t){e[y]=undefined;e[_]=0;return}measureAndReschedule()}))}},11102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Server=void 0;const n=r(68046);const i=r(72995);const o=r(72367);const s=r(95544);const a=r(47394);const u=r(18284);const c=r(6658);const l=r(3332);const d=r(30875);const h=r(85811);const m=r(40612);const g=(0,l.makeStateMachine)({[d.STATE_CLOSED]:[d.STATE_CLOSED,d.STATE_CONNECTING],[d.STATE_CONNECTING]:[d.STATE_CONNECTING,d.STATE_CLOSING,d.STATE_CONNECTED,d.STATE_CLOSED],[d.STATE_CONNECTED]:[d.STATE_CONNECTED,d.STATE_CLOSING,d.STATE_CLOSED],[d.STATE_CLOSING]:[d.STATE_CLOSING,d.STATE_CLOSED]});const y=Symbol("monitor");class Server extends u.TypedEventEmitter{constructor(e,t,r){super();this.serverApi=r.serverApi;const s={hostAddress:t.hostAddress,...r};this.s={description:t,options:r,logger:new a.Logger("Server"),state:d.STATE_CLOSED,topology:e,pool:new i.ConnectionPool(s)};for(const e of[...o.CMAP_EVENTS,...o.APM_EVENTS]){this.s.pool.on(e,(t=>this.emit(e,t)))}this.s.pool.on(n.Connection.CLUSTER_TIME_RECEIVED,(e=>{this.clusterTime=e}));if(this.loadBalanced)return;this[y]=new h.Monitor(this,this.s.options);for(const e of o.HEARTBEAT_EVENTS){this[y].on(e,(t=>this.emit(e,t)))}this[y].on("resetConnectionPool",(()=>{this.s.pool.clear()}));this[y].on("resetServer",(e=>markServerUnknown(this,e)));this[y].on(Server.SERVER_HEARTBEAT_SUCCEEDED,(e=>{this.emit(Server.DESCRIPTION_RECEIVED,new m.ServerDescription(this.description.hostAddress,e.reply,{roundTripTime:calculateRoundTripTime(this.description.roundTripTime,e.duration)}));if(this.s.state===d.STATE_CONNECTING){g(this,d.STATE_CONNECTED);this.emit(Server.CONNECT,this)}}))}get clusterTime(){return this.s.topology.clusterTime}set clusterTime(e){this.s.topology.clusterTime=e}get description(){return this.s.description}get name(){return this.s.description.address}get autoEncrypter(){if(this.s.options&&this.s.options.autoEncrypter){return this.s.options.autoEncrypter}}get loadBalanced(){return this.s.topology.description.type===d.TopologyType.LoadBalanced}connect(){if(this.s.state!==d.STATE_CLOSED){return}g(this,d.STATE_CONNECTING);if(!this.loadBalanced){this[y].connect()}else{g(this,d.STATE_CONNECTED);this.emit(Server.CONNECT,this)}}destroy(e,t){if(typeof e==="function")t=e,e={};e=Object.assign({},{force:false},e);if(this.s.state===d.STATE_CLOSED){if(typeof t==="function"){t()}return}g(this,d.STATE_CLOSING);if(!this.loadBalanced){this[y].close()}this.s.pool.close(e,(e=>{g(this,d.STATE_CLOSED);this.emit("closed");if(typeof t==="function"){t(e)}}))}requestCheck(){if(!this.loadBalanced){this[y].requestCheck()}}command(e,t,r,n){if(typeof r==="function"){n=r,r={},r=r!==null&&r!==void 0?r:{}}if(n==null){throw new s.MongoInvalidArgumentError("Callback must be provided")}if(e.db==null||typeof e==="string"){throw new s.MongoInvalidArgumentError("Namespace must not be a string")}if(this.s.state===d.STATE_CLOSING||this.s.state===d.STATE_CLOSED){n(new s.MongoServerClosedError);return}const i=Object.assign({},r,{wireProtocolCommand:false});if(i.omitReadPreference){delete i.readPreference}if((0,l.collationNotSupported)(this,t)){n(new s.MongoCompatibilityError(`Server ${this.name} does not support collation`));return}const o=i.session;const a=o===null||o===void 0?void 0:o.pinnedConnection;if(this.loadBalanced&&o&&a==null&&isPinnableCommand(t,o)){this.s.pool.checkOut(((r,s)=>{if(r||s==null){if(n)return n(r);return}o.pin(s);this.command(e,t,i,n)}));return}this.s.pool.withConnection(a,((r,n,o)=>{if(r||!n){markServerUnknown(this,r);return o(r)}n.command(e,t,i,makeOperationHandler(this,n,t,i,o))}),n)}query(e,t,r,n){if(this.s.state===d.STATE_CLOSING||this.s.state===d.STATE_CLOSED){n(new s.MongoServerClosedError);return}this.s.pool.withConnection(undefined,((n,i,o)=>{if(n||!i){markServerUnknown(this,n);return o(n)}i.query(e,t,r,makeOperationHandler(this,i,t,r,o))}),n)}getMore(e,t,r,n){var i;if(this.s.state===d.STATE_CLOSING||this.s.state===d.STATE_CLOSED){n(new s.MongoServerClosedError);return}this.s.pool.withConnection((i=r.session)===null||i===void 0?void 0:i.pinnedConnection,((n,i,o)=>{if(n||!i){markServerUnknown(this,n);return o(n)}i.getMore(e,t,r,makeOperationHandler(this,i,{},r,o))}),n)}killCursors(e,t,r,n){var i;if(this.s.state===d.STATE_CLOSING||this.s.state===d.STATE_CLOSED){if(typeof n==="function"){n(new s.MongoServerClosedError)}return}this.s.pool.withConnection((i=r.session)===null||i===void 0?void 0:i.pinnedConnection,((n,i,o)=>{if(n||!i){markServerUnknown(this,n);return o(n)}i.killCursors(e,t,r,makeOperationHandler(this,i,{},undefined,o))}),n)}}t.Server=Server;Server.SERVER_HEARTBEAT_STARTED=o.SERVER_HEARTBEAT_STARTED;Server.SERVER_HEARTBEAT_SUCCEEDED=o.SERVER_HEARTBEAT_SUCCEEDED;Server.SERVER_HEARTBEAT_FAILED=o.SERVER_HEARTBEAT_FAILED;Server.CONNECT=o.CONNECT;Server.DESCRIPTION_RECEIVED=o.DESCRIPTION_RECEIVED;Server.CLOSED=o.CLOSED;Server.ENDED=o.ENDED;function calculateRoundTripTime(e,t){if(e===-1){return t}const r=.2;return r*t+(1-r)*e}function markServerUnknown(e,t){if(e.loadBalanced){return}if(t instanceof s.MongoNetworkError&&!(t instanceof s.MongoNetworkTimeoutError)){e[y].reset()}e.emit(Server.DESCRIPTION_RECEIVED,new m.ServerDescription(e.description.hostAddress,undefined,{error:t,topologyVersion:t&&t.topologyVersion?t.topologyVersion:e.description.topologyVersion}))}function isPinnableCommand(e,t){if(t){return t.inTransaction()||"aggregate"in e||"find"in e||"getMore"in e||"listCollections"in e||"listIndexes"in e}return false}function connectionIsStale(e,t){if(t.serviceId){return t.generation!==e.serviceGenerations.get(t.serviceId.toHexString())}return t.generation!==e.generation}function shouldHandleStateChangeError(e,t){const r=t.topologyVersion;const n=e.description.topologyVersion;return(0,m.compareTopologyVersion)(n,r)<0}function inActiveTransaction(e,t){return e&&e.inTransaction()&&!(0,c.isTransactionCommand)(t)}function isRetryableWritesEnabled(e){return e.s.options.retryWrites!==false}function makeOperationHandler(e,t,r,n,i){const o=n===null||n===void 0?void 0:n.session;return function handleOperationResult(n,a){if(n&&!connectionIsStale(e.s.pool,t)){if(n instanceof s.MongoNetworkError){if(o&&!o.hasEnded&&o.serverSession){o.serverSession.isDirty=true}if(inActiveTransaction(o,r)&&!n.hasErrorLabel("TransientTransactionError")){n.addErrorLabel("TransientTransactionError")}if((isRetryableWritesEnabled(e.s.topology)||(0,c.isTransactionCommand)(r))&&(0,l.supportsRetryableWrites)(e)&&!inActiveTransaction(o,r)){n.addErrorLabel("RetryableWriteError")}if(!(n instanceof s.MongoNetworkTimeoutError)||(0,s.isNetworkErrorBeforeHandshake)(n)){e.s.pool.clear(t.serviceId);if(!e.loadBalanced){markServerUnknown(e,n)}}}else{if((isRetryableWritesEnabled(e.s.topology)||(0,c.isTransactionCommand)(r))&&(0,l.maxWireVersion)(e)<9&&(0,s.isRetryableWriteError)(n)&&!inActiveTransaction(o,r)){n.addErrorLabel("RetryableWriteError")}if((0,s.isSDAMUnrecoverableError)(n)){if(shouldHandleStateChangeError(e,n)){if((0,l.maxWireVersion)(e)<=7||(0,s.isNodeShuttingDownError)(n)){e.s.pool.clear(t.serviceId)}if(!e.loadBalanced){markServerUnknown(e,n);process.nextTick((()=>e.requestCheck()))}}}}if(o&&o.isPinned&&n.hasErrorLabel("TransientTransactionError")){o.unpin({force:true})}}i(n,a)}}},40612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareTopologyVersion=t.parseServerType=t.ServerDescription=void 0;const n=r(85539);const i=r(3332);const o=r(30875);const s=new Set([o.ServerType.RSPrimary,o.ServerType.Standalone,o.ServerType.Mongos,o.ServerType.LoadBalancer]);const a=new Set([o.ServerType.RSPrimary,o.ServerType.RSSecondary,o.ServerType.Mongos,o.ServerType.Standalone,o.ServerType.LoadBalancer]);class ServerDescription{constructor(e,t,r){var n,o,s,a,u,c,l,d,h,m,g,y;if(typeof e==="string"){this._hostAddress=new i.HostAddress(e);this.address=this._hostAddress.toString()}else{this._hostAddress=e;this.address=this._hostAddress.toString()}this.type=parseServerType(t,r);this.hosts=(o=(n=t===null||t===void 0?void 0:t.hosts)===null||n===void 0?void 0:n.map((e=>e.toLowerCase())))!==null&&o!==void 0?o:[];this.passives=(a=(s=t===null||t===void 0?void 0:t.passives)===null||s===void 0?void 0:s.map((e=>e.toLowerCase())))!==null&&a!==void 0?a:[];this.arbiters=(c=(u=t===null||t===void 0?void 0:t.arbiters)===null||u===void 0?void 0:u.map((e=>e.toLowerCase())))!==null&&c!==void 0?c:[];this.tags=(l=t===null||t===void 0?void 0:t.tags)!==null&&l!==void 0?l:{};this.minWireVersion=(d=t===null||t===void 0?void 0:t.minWireVersion)!==null&&d!==void 0?d:0;this.maxWireVersion=(h=t===null||t===void 0?void 0:t.maxWireVersion)!==null&&h!==void 0?h:0;this.roundTripTime=(m=r===null||r===void 0?void 0:r.roundTripTime)!==null&&m!==void 0?m:-1;this.lastUpdateTime=(0,i.now)();this.lastWriteDate=(y=(g=t===null||t===void 0?void 0:t.lastWrite)===null||g===void 0?void 0:g.lastWriteDate)!==null&&y!==void 0?y:0;if(r===null||r===void 0?void 0:r.topologyVersion){this.topologyVersion=r.topologyVersion}else if(t===null||t===void 0?void 0:t.topologyVersion){this.topologyVersion=t.topologyVersion}if(r===null||r===void 0?void 0:r.error){this.error=r.error}if(t===null||t===void 0?void 0:t.primary){this.primary=t.primary}if(t===null||t===void 0?void 0:t.me){this.me=t.me.toLowerCase()}if(t===null||t===void 0?void 0:t.setName){this.setName=t.setName}if(t===null||t===void 0?void 0:t.setVersion){this.setVersion=t.setVersion}if(t===null||t===void 0?void 0:t.electionId){this.electionId=t.electionId}if(t===null||t===void 0?void 0:t.logicalSessionTimeoutMinutes){this.logicalSessionTimeoutMinutes=t.logicalSessionTimeoutMinutes}if(t===null||t===void 0?void 0:t.$clusterTime){this.$clusterTime=t.$clusterTime}}get hostAddress(){if(this._hostAddress)return this._hostAddress;else return new i.HostAddress(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===o.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return a.has(this.type)}get isWritable(){return s.has(this.type)}get host(){const e=`:${this.port}`.length;return this.address.slice(0,-e)}get port(){const e=this.address.split(":").pop();return e?Number.parseInt(e,10):27017}equals(e){const t=this.topologyVersion===e.topologyVersion||compareTopologyVersion(this.topologyVersion,e.topologyVersion)===0;const r=this.electionId&&e.electionId?e.electionId&&this.electionId.equals(e.electionId):this.electionId===e.electionId;return e!=null&&(0,i.errorStrictEqual)(this.error,e.error)&&this.type===e.type&&this.minWireVersion===e.minWireVersion&&(0,i.arrayStrictEqual)(this.hosts,e.hosts)&&tagsStrictEqual(this.tags,e.tags)&&this.setName===e.setName&&this.setVersion===e.setVersion&&r&&this.primary===e.primary&&this.logicalSessionTimeoutMinutes===e.logicalSessionTimeoutMinutes&&t}}t.ServerDescription=ServerDescription;function parseServerType(e,t){if(t===null||t===void 0?void 0:t.loadBalanced){return o.ServerType.LoadBalancer}if(!e||!e.ok){return o.ServerType.Unknown}if(e.isreplicaset){return o.ServerType.RSGhost}if(e.msg&&e.msg==="isdbgrid"){return o.ServerType.Mongos}if(e.setName){if(e.hidden){return o.ServerType.RSOther}else if(e.isWritablePrimary){return o.ServerType.RSPrimary}else if(e.secondary){return o.ServerType.RSSecondary}else if(e.arbiterOnly){return o.ServerType.RSArbiter}else{return o.ServerType.RSOther}}return o.ServerType.Standalone}t.parseServerType=parseServerType;function tagsStrictEqual(e,t){const r=Object.keys(e);const n=Object.keys(t);return r.length===n.length&&r.every((r=>t[r]===e[r]))}function compareTopologyVersion(e,t){if(e==null||t==null){return-1}if(e.processId.equals(t.processId)){const r=n.Long.isLong(e.counter)?e.counter:n.Long.fromNumber(e.counter);const i=n.Long.isLong(t.counter)?e.counter:n.Long.fromNumber(t.counter);return r.compare(i)}return-1}t.compareTopologyVersion=compareTopologyVersion},86285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readPreferenceServerSelector=t.secondaryWritableServerSelector=t.sameServerSelector=t.writableServerSelector=t.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;const n=r(95544);const i=r(46334);const o=r(30875);const s=1e4;const a=90;t.MIN_SECONDARY_WRITE_WIRE_VERSION=13;function writableServerSelector(){return(e,t)=>latencyWindowReducer(e,t.filter((e=>e.isWritable)))}t.writableServerSelector=writableServerSelector;function sameServerSelector(e){return(t,r)=>{if(!e)return[];return r.filter((t=>t.address===e.address&&t.type!==o.ServerType.Unknown))}}t.sameServerSelector=sameServerSelector;function secondaryWritableServerSelector(e,r){if(!r||!e||e&&e{var o;const s=i.lastUpdateTime-i.lastWriteDate-(n.lastUpdateTime-n.lastWriteDate)+t.heartbeatFrequencyMS;const a=s/1e3;const u=(o=e.maxStalenessSeconds)!==null&&o!==void 0?o:0;if(a<=u){r.push(i)}return r}),[])}if(t.type===o.TopologyType.ReplicaSetNoPrimary){if(r.length===0){return r}const n=r.reduce(((e,t)=>t.lastWriteDate>e.lastWriteDate?t:e));return r.reduce(((r,i)=>{var o;const s=n.lastWriteDate-i.lastWriteDate+t.heartbeatFrequencyMS;const a=s/1e3;const u=(o=e.maxStalenessSeconds)!==null&&o!==void 0?o:0;if(a<=u){r.push(i)}return r}),[])}return r}function tagSetMatch(e,t){const r=Object.keys(e);const n=Object.keys(t);for(let i=0;i{if(tagSetMatch(n,t.tags))e.push(t);return e}),[]);if(i.length){return i}}return[]}function latencyWindowReducer(e,t){const r=t.reduce(((e,t)=>e===-1?t.roundTripTime:Math.min(t.roundTripTime,e)),-1);const n=r+e.localThresholdMS;return t.reduce(((e,t)=>{if(t.roundTripTime<=n&&t.roundTripTime>=r)e.push(t);return e}),[])}function primaryFilter(e){return e.type===o.ServerType.RSPrimary}function secondaryFilter(e){return e.type===o.ServerType.RSSecondary}function nearestFilter(e){return e.type===o.ServerType.RSSecondary||e.type===o.ServerType.RSPrimary}function knownFilter(e){return e.type!==o.ServerType.Unknown}function loadBalancerFilter(e){return e.type===o.ServerType.LoadBalancer}function readPreferenceServerSelector(e){if(!e.isValid()){throw new n.MongoInvalidArgumentError("Invalid read preference specified")}return(t,r)=>{const s=t.commonWireVersion;if(s&&e.minWireVersion&&e.minWireVersion>s){throw new n.MongoCompatibilityError(`Minimum wire version '${e.minWireVersion}' required, but found '${s}'`)}if(t.type===o.TopologyType.LoadBalanced){return r.filter(loadBalancerFilter)}if(t.type===o.TopologyType.Unknown){return[]}if(t.type===o.TopologyType.Single||t.type===o.TopologyType.Sharded){return latencyWindowReducer(t,r.filter(knownFilter))}const a=e.mode;if(a===i.ReadPreference.PRIMARY){return r.filter(primaryFilter)}if(a===i.ReadPreference.PRIMARY_PREFERRED){const e=r.filter(primaryFilter);if(e.length){return e}}const u=a===i.ReadPreference.NEAREST?nearestFilter:secondaryFilter;const c=latencyWindowReducer(t,tagSetReducer(e,maxStalenessReducer(e,t,r.filter(u))));if(a===i.ReadPreference.SECONDARY_PREFERRED&&c.length===0){return r.filter(primaryFilter)}return c}}t.readPreferenceServerSelector=readPreferenceServerSelector},78234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SrvPoller=t.SrvPollingEvent=void 0;const n=r(9523);const i=r(95544);const o=r(47394);const s=r(18284);const a=r(3332);function matchesParentDomain(e,t){const r=/^.*?\./;const n=`.${e.replace(r,"")}`;const i=`.${t.replace(r,"")}`;return n.endsWith(i)}class SrvPollingEvent{constructor(e){this.srvRecords=e}hostnames(){return new Set(this.srvRecords.map((e=>a.HostAddress.fromSrvRecord(e).toString())))}}t.SrvPollingEvent=SrvPollingEvent;class SrvPoller extends s.TypedEventEmitter{constructor(e){var t,r,n;super();if(!e||!e.srvHost){throw new i.MongoRuntimeError("Options for SrvPoller must exist and include srvHost")}this.srvHost=e.srvHost;this.srvMaxHosts=(t=e.srvMaxHosts)!==null&&t!==void 0?t:0;this.srvServiceName=(r=e.srvServiceName)!==null&&r!==void 0?r:"mongodb";this.rescanSrvIntervalMS=6e4;this.heartbeatFrequencyMS=(n=e.heartbeatFrequencyMS)!==null&&n!==void 0?n:1e4;this.logger=new o.Logger("srvPoller",e);this.haMode=false;this.generation=0;this._timeout=undefined}get srvAddress(){return`_${this.srvServiceName}._tcp.${this.srvHost}`}get intervalMS(){return this.haMode?this.heartbeatFrequencyMS:this.rescanSrvIntervalMS}start(){if(!this._timeout){this.schedule()}}stop(){if(this._timeout){clearTimeout(this._timeout);this.generation+=1;this._timeout=undefined}}schedule(){if(this._timeout){clearTimeout(this._timeout)}this._timeout=setTimeout((()=>this._poll()),this.intervalMS)}success(e){this.haMode=false;this.schedule();this.emit(SrvPoller.SRV_RECORD_DISCOVERY,new SrvPollingEvent(e))}failure(e,t){this.logger.warn(e,t);this.haMode=true;this.schedule()}parentDomainMismatch(e){this.logger.warn(`parent domain mismatch on SRV record (${e.name}:${e.port})`,e)}_poll(){const e=this.generation;n.resolveSrv(this.srvAddress,((t,r)=>{if(e!==this.generation){return}if(t){this.failure("DNS error",t);return}const n=[];for(const e of r){if(matchesParentDomain(e.name,this.srvHost)){n.push(e)}else{this.parentDomainMismatch(e)}}if(!n.length){this.failure("No valid addresses found at host");return}this.success(n)}))}}t.SrvPoller=SrvPoller;SrvPoller.SRV_RECORD_DISCOVERY="srvRecordDiscovery"},24575:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServerCapabilities=t.Topology=void 0;const n=r(29361);const i=r(85539);const o=r(44830);const s=r(72367);const a=r(95544);const u=r(18284);const c=r(46334);const l=r(47463);const d=r(3332);const h=r(30875);const m=r(27907);const g=r(11102);const y=r(40612);const v=r(86285);const b=r(78234);const _=r(49728);let E=0;const k=(0,d.makeStateMachine)({[h.STATE_CLOSED]:[h.STATE_CLOSED,h.STATE_CONNECTING],[h.STATE_CONNECTING]:[h.STATE_CONNECTING,h.STATE_CLOSING,h.STATE_CONNECTED,h.STATE_CLOSED],[h.STATE_CONNECTED]:[h.STATE_CONNECTED,h.STATE_CLOSING,h.STATE_CLOSED],[h.STATE_CLOSING]:[h.STATE_CLOSING,h.STATE_CLOSED]});const x=Symbol("cancelled");const C=Symbol("waitQueue");class Topology extends u.TypedEventEmitter{constructor(e,t){var r;super();this.bson=Object.create(null);this.bson.serialize=i.serialize;this.bson.deserialize=i.deserialize;t=t!==null&&t!==void 0?t:{hosts:[d.HostAddress.fromString("localhost:27017")],retryReads:o.DEFAULT_OPTIONS.get("retryReads"),retryWrites:o.DEFAULT_OPTIONS.get("retryWrites"),serverSelectionTimeoutMS:o.DEFAULT_OPTIONS.get("serverSelectionTimeoutMS"),directConnection:o.DEFAULT_OPTIONS.get("directConnection"),loadBalanced:o.DEFAULT_OPTIONS.get("loadBalanced"),metadata:o.DEFAULT_OPTIONS.get("metadata"),monitorCommands:o.DEFAULT_OPTIONS.get("monitorCommands"),tls:o.DEFAULT_OPTIONS.get("tls"),maxPoolSize:o.DEFAULT_OPTIONS.get("maxPoolSize"),minPoolSize:o.DEFAULT_OPTIONS.get("minPoolSize"),waitQueueTimeoutMS:o.DEFAULT_OPTIONS.get("waitQueueTimeoutMS"),connectionType:o.DEFAULT_OPTIONS.get("connectionType"),connectTimeoutMS:o.DEFAULT_OPTIONS.get("connectTimeoutMS"),maxIdleTimeMS:o.DEFAULT_OPTIONS.get("maxIdleTimeMS"),heartbeatFrequencyMS:o.DEFAULT_OPTIONS.get("heartbeatFrequencyMS"),minHeartbeatFrequencyMS:o.DEFAULT_OPTIONS.get("minHeartbeatFrequencyMS")};if(typeof e==="string"){e=[d.HostAddress.fromString(e)]}else if(!Array.isArray(e)){e=[e]}const s=[];for(const t of e){if(typeof t==="string"){s.push(d.HostAddress.fromString(t))}else if(t instanceof d.HostAddress){s.push(t)}else{throw new a.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(t)}`)}}const u=topologyTypeFromOptions(t);const c=E++;const m=t.srvMaxHosts==null||t.srvMaxHosts===0||t.srvMaxHosts>=s.length?s:(0,d.shuffle)(s,t.srvMaxHosts);const g=new Map;for(const e of m){g.set(e.toString(),new y.ServerDescription(e))}this[C]=new n;this.s={id:c,options:t,seedlist:s,state:h.STATE_CLOSED,description:new _.TopologyDescription(u,g,t.replicaSet,undefined,undefined,undefined,t),serverSelectionTimeoutMS:t.serverSelectionTimeoutMS,heartbeatFrequencyMS:t.heartbeatFrequencyMS,minHeartbeatFrequencyMS:t.minHeartbeatFrequencyMS,servers:new Map,sessionPool:new l.ServerSessionPool(this),sessions:new Set,credentials:t===null||t===void 0?void 0:t.credentials,clusterTime:undefined,connectionTimers:new Set,detectShardedTopology:e=>this.detectShardedTopology(e),detectSrvRecords:e=>this.detectSrvRecords(e)};if(t.srvHost&&!t.loadBalanced){this.s.srvPoller=(r=t.srvPoller)!==null&&r!==void 0?r:new b.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:t.srvHost,srvMaxHosts:t.srvMaxHosts,srvServiceName:t.srvServiceName});this.on(Topology.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology)}}detectShardedTopology(e){var t,r,n;const i=e.previousDescription.type;const o=e.newDescription.type;const s=i!==h.TopologyType.Sharded&&o===h.TopologyType.Sharded;const a=(t=this.s.srvPoller)===null||t===void 0?void 0:t.listeners(b.SrvPoller.SRV_RECORD_DISCOVERY);const u=!!(a===null||a===void 0?void 0:a.includes(this.s.detectSrvRecords));if(s&&!u){(r=this.s.srvPoller)===null||r===void 0?void 0:r.on(b.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords);(n=this.s.srvPoller)===null||n===void 0?void 0:n.start()}}detectSrvRecords(e){const t=this.s.description;this.s.description=this.s.description.updateFromSrvPollingEvent(e,this.s.options.srvMaxHosts);if(this.s.description===t){return}updateServers(this);this.emit(Topology.TOPOLOGY_DESCRIPTION_CHANGED,new m.TopologyDescriptionChangedEvent(this.s.id,t,this.s.description))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new ServerCapabilities(this.lastHello())}connect(e,t){var r;if(typeof e==="function")t=e,e={};e=e!==null&&e!==void 0?e:{};if(this.s.state===h.STATE_CONNECTED){if(typeof t==="function"){t()}return}k(this,h.STATE_CONNECTING);this.emit(Topology.TOPOLOGY_OPENING,new m.TopologyOpeningEvent(this.s.id));this.emit(Topology.TOPOLOGY_DESCRIPTION_CHANGED,new m.TopologyDescriptionChangedEvent(this.s.id,new _.TopologyDescription(h.TopologyType.Unknown),this.s.description));const n=Array.from(this.s.description.servers.values());connectServers(this,n);if(this.s.options.loadBalanced){for(const e of n){const t=new y.ServerDescription(e.hostAddress,undefined,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(t)}}const i=(r=e.readPreference)!==null&&r!==void 0?r:c.ReadPreference.primary;this.selectServer((0,v.readPreferenceServerSelector)(i),e,((e,r)=>{if(e){this.close();typeof t==="function"?t(e):this.emit(Topology.ERROR,e);return}if(r&&this.s.credentials){r.command((0,d.ns)("admin.$cmd"),{ping:1},(e=>{if(e){typeof t==="function"?t(e):this.emit(Topology.ERROR,e);return}k(this,h.STATE_CONNECTED);this.emit(Topology.OPEN,this);this.emit(Topology.CONNECT,this);if(typeof t==="function")t(undefined,this)}));return}k(this,h.STATE_CONNECTED);this.emit(Topology.OPEN,this);this.emit(Topology.CONNECT,this);if(typeof t==="function")t(undefined,this)}))}close(e,t){if(typeof e==="function"){t=e;e={}}if(typeof e==="boolean"){e={force:e}}e=e!==null&&e!==void 0?e:{};if(this.s.state===h.STATE_CLOSED||this.s.state===h.STATE_CLOSING){if(typeof t==="function"){t()}return}k(this,h.STATE_CLOSING);drainWaitQueue(this[C],new a.MongoTopologyClosedError);(0,h.drainTimerQueue)(this.s.connectionTimers);if(this.s.srvPoller){this.s.srvPoller.stop();this.s.srvPoller.removeListener(b.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords)}this.removeListener(Topology.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology);(0,d.eachAsync)(Array.from(this.s.sessions.values()),((e,t)=>e.endSession(t)),(()=>{this.s.sessionPool.endAllPooledSessions((()=>{(0,d.eachAsync)(Array.from(this.s.servers.values()),((t,r)=>destroyServer(t,this,e,r)),(e=>{this.s.servers.clear();this.emit(Topology.TOPOLOGY_CLOSED,new m.TopologyClosedEvent(this.s.id));k(this,h.STATE_CLOSED);if(typeof t==="function"){t(e)}}))}))}))}selectServer(e,t,r){let n=t;const i=r!==null&&r!==void 0?r:t;if(typeof n==="function"){n={}}let o;if(typeof e!=="function"){if(typeof e==="string"){o=(0,v.readPreferenceServerSelector)(c.ReadPreference.fromString(e))}else{let t;if(e instanceof c.ReadPreference){t=e}else{c.ReadPreference.translate(n);t=n.readPreference||c.ReadPreference.primary}o=(0,v.readPreferenceServerSelector)(t)}}else{o=e}n=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},n);const s=this.description.type===h.TopologyType.Sharded;const u=n.session;const l=u&&u.transaction;if(s&&l&&l.server){i(undefined,l.server);return}const d={serverSelector:o,transaction:l,callback:i};const m=n.serverSelectionTimeoutMS;if(m){d.timer=setTimeout((()=>{d[x]=true;d.timer=undefined;const e=new a.MongoServerSelectionError(`Server selection timed out after ${m} ms`,this.description);d.callback(e)}),m)}this[C].push(d);processWaitQueue(this)}shouldCheckForSessionSupport(){if(this.description.type===h.TopologyType.Single){return!this.description.hasKnownServers}return!this.description.hasDataBearingServers}hasSessionSupport(){return this.loadBalanced||this.description.logicalSessionTimeoutMinutes!=null}startSession(e,t){const r=new l.ClientSession(this,this.s.sessionPool,e,t);r.once("ended",(()=>{this.s.sessions.delete(r)}));this.s.sessions.add(r);return r}endSessions(e,t){if(!Array.isArray(e)){e=[e]}this.selectServer((0,v.readPreferenceServerSelector)(c.ReadPreference.primaryPreferred),((r,n)=>{if(r||!n){if(typeof t==="function")t(r);return}n.command((0,d.ns)("admin.$cmd"),{endSessions:e},{noResponse:true},((e,r)=>{if(typeof t==="function")t(e,r)}))}))}serverUpdateHandler(e){if(!this.s.description.hasServer(e.address)){return}if(isStaleServerDescription(this.s.description,e)){return}const t=this.s.description;const r=this.s.description.servers.get(e.address);if(!r){return}const n=e.$clusterTime;if(n){(0,h._advanceClusterTime)(this,n)}const i=r&&r.equals(e);this.s.description=this.s.description.update(e);if(this.s.description.compatibilityError){this.emit(Topology.ERROR,new a.MongoCompatibilityError(this.s.description.compatibilityError));return}if(!i){const t=this.s.description.servers.get(e.address);if(t){this.emit(Topology.SERVER_DESCRIPTION_CHANGED,new m.ServerDescriptionChangedEvent(this.s.id,e.address,r,t))}}updateServers(this,e);if(this[C].length>0){processWaitQueue(this)}if(!i){this.emit(Topology.TOPOLOGY_DESCRIPTION_CHANGED,new m.TopologyDescriptionChangedEvent(this.s.id,t,this.s.description))}}auth(e,t){if(typeof e==="function")t=e,e=undefined;if(typeof t==="function")t(undefined,true)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===h.STATE_CONNECTED}isDestroyed(){return this.s.state===h.STATE_CLOSED}unref(){(0,d.emitWarning)("`unref` is a noop and will be removed in the next major version")}lastHello(){const e=Array.from(this.description.servers.values());if(e.length===0)return{};const t=e.filter((e=>e.type!==h.ServerType.Unknown))[0];const r=t||{maxWireVersion:this.description.commonWireVersion};return r}get commonWireVersion(){return this.description.commonWireVersion}get logicalSessionTimeoutMinutes(){return this.description.logicalSessionTimeoutMinutes}get clusterTime(){return this.s.clusterTime}set clusterTime(e){this.s.clusterTime=e}}t.Topology=Topology;Topology.SERVER_OPENING=s.SERVER_OPENING;Topology.SERVER_CLOSED=s.SERVER_CLOSED;Topology.SERVER_DESCRIPTION_CHANGED=s.SERVER_DESCRIPTION_CHANGED;Topology.TOPOLOGY_OPENING=s.TOPOLOGY_OPENING;Topology.TOPOLOGY_CLOSED=s.TOPOLOGY_CLOSED;Topology.TOPOLOGY_DESCRIPTION_CHANGED=s.TOPOLOGY_DESCRIPTION_CHANGED;Topology.ERROR=s.ERROR;Topology.OPEN=s.OPEN;Topology.CONNECT=s.CONNECT;Topology.CLOSE=s.CLOSE;Topology.TIMEOUT=s.TIMEOUT;function destroyServer(e,t,r,n){r=r!==null&&r!==void 0?r:{};for(const t of s.LOCAL_SERVER_EVENTS){e.removeAllListeners(t)}e.destroy(r,(()=>{t.emit(Topology.SERVER_CLOSED,new m.ServerClosedEvent(t.s.id,e.description.address));for(const t of s.SERVER_RELAY_EVENTS){e.removeAllListeners(t)}if(typeof n==="function"){n()}}))}function topologyTypeFromOptions(e){if(e===null||e===void 0?void 0:e.directConnection){return h.TopologyType.Single}if(e===null||e===void 0?void 0:e.replicaSet){return h.TopologyType.ReplicaSetNoPrimary}if(e===null||e===void 0?void 0:e.loadBalanced){return h.TopologyType.LoadBalanced}return h.TopologyType.Unknown}function randomSelection(e){return e[Math.floor(Math.random()*e.length)]}function createAndConnectServer(e,t,r){e.emit(Topology.SERVER_OPENING,new m.ServerOpeningEvent(e.s.id,t.address));const n=new g.Server(e,t,e.s.options);for(const t of s.SERVER_RELAY_EVENTS){n.on(t,(r=>e.emit(t,r)))}n.on(g.Server.DESCRIPTION_RECEIVED,(t=>e.serverUpdateHandler(t)));if(r){const t=setTimeout((()=>{(0,h.clearAndRemoveTimerFrom)(t,e.s.connectionTimers);n.connect()}),r);e.s.connectionTimers.add(t);return n}n.connect();return n}function connectServers(e,t){e.s.servers=t.reduce(((t,r)=>{const n=createAndConnectServer(e,r);t.set(r.address,n);return t}),new Map)}function updateServers(e,t){if(t&&e.s.servers.has(t.address)){const r=e.s.servers.get(t.address);if(r){r.s.description=t}}for(const t of e.description.servers.values()){if(!e.s.servers.has(t.address)){const r=createAndConnectServer(e,t);e.s.servers.set(t.address,r)}}for(const t of e.s.servers){const r=t[0];if(e.description.hasServer(r)){continue}if(!e.s.servers.has(r)){continue}const n=e.s.servers.get(r);e.s.servers.delete(r);if(n){destroyServer(n,e)}}}function drainWaitQueue(e,t){while(e.length){const r=e.shift();if(!r){continue}if(r.timer){clearTimeout(r.timer)}if(!r[x]){r.callback(t)}}}function processWaitQueue(e){if(e.s.state===h.STATE_CLOSED){drainWaitQueue(e[C],new a.MongoTopologyClosedError);return}const t=e.description.type===h.TopologyType.Sharded;const r=Array.from(e.description.servers.values());const n=e[C].length;for(let i=0;i0){for(const[,t]of e.s.servers){process.nextTick((function scheduleServerCheck(){return t.requestCheck()}))}}}function isStaleServerDescription(e,t){const r=e.servers.get(t.address);const n=r===null||r===void 0?void 0:r.topologyVersion;return(0,y.compareTopologyVersion)(n,t.topologyVersion)>0}class ServerCapabilities{constructor(e){this.minWireVersion=e.minWireVersion||0;this.maxWireVersion=e.maxWireVersion||0}get hasAggregationCursor(){return this.maxWireVersion>=1}get hasWriteCommands(){return this.maxWireVersion>=2}get hasTextSearch(){return this.minWireVersion>=0}get hasAuthCommands(){return this.maxWireVersion>=1}get hasListCollectionsCommand(){return this.maxWireVersion>=3}get hasListIndexesCommand(){return this.maxWireVersion>=3}get supportsSnapshotReads(){return this.maxWireVersion>=13}get commandsTakeWriteConcern(){return this.maxWireVersion>=5}get commandsTakeCollation(){return this.maxWireVersion>=5}}t.ServerCapabilities=ServerCapabilities},49728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TopologyDescription=void 0;const n=r(58437);const i=r(95544);const o=r(3332);const s=r(30875);const a=r(40612);const u=n.MIN_SUPPORTED_SERVER_VERSION;const c=n.MAX_SUPPORTED_SERVER_VERSION;const l=n.MIN_SUPPORTED_WIRE_VERSION;const d=n.MAX_SUPPORTED_WIRE_VERSION;const h=new Set([s.ServerType.Mongos,s.ServerType.Unknown]);const m=new Set([s.ServerType.Mongos,s.ServerType.Standalone]);const g=new Set([s.ServerType.RSSecondary,s.ServerType.RSArbiter,s.ServerType.RSOther]);class TopologyDescription{constructor(e,t,r,n,i,o,a){var h,m;a=a!==null&&a!==void 0?a:{};this.type=e!==null&&e!==void 0?e:s.TopologyType.Unknown;this.servers=t!==null&&t!==void 0?t:new Map;this.stale=false;this.compatible=true;this.heartbeatFrequencyMS=(h=a.heartbeatFrequencyMS)!==null&&h!==void 0?h:0;this.localThresholdMS=(m=a.localThresholdMS)!==null&&m!==void 0?m:0;if(r){this.setName=r}if(n){this.maxSetVersion=n}if(i){this.maxElectionId=i}if(o){this.commonWireVersion=o}for(const e of this.servers.values()){if(e.type===s.ServerType.Unknown||e.type===s.ServerType.LoadBalancer){continue}if(e.minWireVersion>d){this.compatible=false;this.compatibilityError=`Server at ${e.address} requires wire version ${e.minWireVersion}, but this version of the driver only supports up to ${d} (MongoDB ${c})`}if(e.maxWireVersion0){if(t===0){for(const e of i){u.set(e,new a.ServerDescription(e))}}else if(u.sizee.error));if(e.length>0){return e[0].error}}get hasKnownServers(){return Array.from(this.servers.values()).some((e=>e.type!==s.ServerType.Unknown))}get hasDataBearingServers(){return Array.from(this.servers.values()).some((e=>e.isDataBearing))}hasServer(e){return this.servers.has(e)}}t.TopologyDescription=TopologyDescription;function topologyTypeForServerType(e){switch(e){case s.ServerType.Standalone:return s.TopologyType.Single;case s.ServerType.Mongos:return s.TopologyType.Sharded;case s.ServerType.RSPrimary:return s.TopologyType.ReplicaSetWithPrimary;case s.ServerType.RSOther:case s.ServerType.RSSecondary:return s.TopologyType.ReplicaSetNoPrimary;default:return s.TopologyType.Unknown}}function compareObjectId(e,t){if(e==null){return-1}if(t==null){return 1}if(e.id instanceof Buffer&&t.id instanceof Buffer){const r=e.id;const n=t.id;return r.compare(n)}const r=e.toString();const n=t.toString();return r.localeCompare(n)}function updateRsFromPrimary(e,t,r,n,i){r=r||t.setName;if(r!==t.setName){e.delete(t.address);return[checkHasPrimary(e),r,n,i]}const o=t.electionId?t.electionId:null;if(t.setVersion&&o){if(n&&i){if(n>t.setVersion||compareObjectId(i,o)>0){e.set(t.address,new a.ServerDescription(t.address));return[checkHasPrimary(e),r,n,i]}}i=t.electionId}if(t.setVersion!=null&&(n==null||t.setVersion>n)){n=t.setVersion}for(const[r,n]of e){if(n.type===s.ServerType.RSPrimary&&n.address!==t.address){e.set(r,new a.ServerDescription(n.address));break}}t.allHosts.forEach((t=>{if(!e.has(t)){e.set(t,new a.ServerDescription(t))}}));const u=Array.from(e.keys());const c=t.allHosts;u.filter((e=>c.indexOf(e)===-1)).forEach((t=>{e.delete(t)}));return[checkHasPrimary(e),r,n,i]}function updateRsWithPrimaryFromMember(e,t,r){if(r==null){throw new i.MongoRuntimeError('Argument "setName" is required if connected to a replica set')}if(r!==t.setName||t.me&&t.address!==t.me){e.delete(t.address)}return checkHasPrimary(e)}function updateRsNoPrimaryFromMember(e,t,r){const n=s.TopologyType.ReplicaSetNoPrimary;r=r||t.setName;if(r!==t.setName){e.delete(t.address);return[n,r]}t.allHosts.forEach((t=>{if(!e.has(t)){e.set(t,new a.ServerDescription(t))}}));if(t.me&&t.address!==t.me){e.delete(t.address)}return[n,r]}function checkHasPrimary(e){for(const t of e.values()){if(t.type===s.ServerType.RSPrimary){return s.TopologyType.ReplicaSetWithPrimary}}return s.TopologyType.ReplicaSetNoPrimary}},47463:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:true});t.updateSessionFromResponse=t.applySession=t.ServerSessionPool=t.ServerSession=t.maybeClearPinnedConnection=t.ClientSession=void 0;const i=r(85539);const o=r(20854);const s=r(9074);const a=r(72367);const u=r(95544);const c=r(18284);const l=r(91082);const d=r(3524);const h=r(44912);const m=r(31256);const g=r(46334);const y=r(30875);const v=r(6658);const b=r(3332);const _=8;function assertAlive(e,t){if(e.serverSession==null){const e=new u.MongoExpiredSessionError;if(typeof t==="function"){t(e);return false}throw e}return true}const E=Symbol("serverSession");const k=Symbol("snapshotTime");const x=Symbol("snapshotEnabled");const C=Symbol("pinnedConnection");class ClientSession extends c.TypedEventEmitter{constructor(e,t,r,i){super();this[n]=false;if(e==null){throw new u.MongoRuntimeError("ClientSession requires a topology")}if(t==null||!(t instanceof ServerSessionPool)){throw new u.MongoRuntimeError("ClientSession requires a ServerSessionPool")}r=r!==null&&r!==void 0?r:{};if(r.snapshot===true){this[x]=true;if(r.causalConsistency===true){throw new u.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive')}}this.topology=e;this.sessionPool=t;this.hasEnded=false;this.clientOptions=i;this[E]=undefined;this.supports={causalConsistency:r.snapshot!==true&&r.causalConsistency!==false};this.clusterTime=r.initialClusterTime;this.operationTime=undefined;this.explicit=!!r.explicit;this.owner=r.owner;this.defaultTransactionOptions=Object.assign({},r.defaultTransactionOptions);this.transaction=new v.Transaction}get id(){var e;return(e=this.serverSession)===null||e===void 0?void 0:e.id}get serverSession(){if(this[E]==null){this[E]=this.sessionPool.acquire()}return this[E]}get snapshotEnabled(){return this[x]}get loadBalanced(){return this.topology.description.type===y.TopologyType.LoadBalanced}get pinnedConnection(){return this[C]}pin(e){if(this[C]){throw TypeError("Cannot pin multiple connections to the same session")}this[C]=e;e.emit(a.PINNED,this.inTransaction()?o.ConnectionPoolMetrics.TXN:o.ConnectionPoolMetrics.CURSOR)}unpin(e){if(this.loadBalanced){return maybeClearPinnedConnection(this,e)}this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[C]:this.transaction.isPinned}endSession(e,t){if(typeof e==="function")t=e,e={};const r={force:true,...e};return(0,b.maybePromise)(t,(e=>{if(this.hasEnded){maybeClearPinnedConnection(this,r);return e()}const completeEndSession=()=>{maybeClearPinnedConnection(this,r);this.sessionPool.release(this.serverSession);this[E]=undefined;this.hasEnded=true;this.emit("ended",this);e()};if(this.serverSession&&this.inTransaction()){this.abortTransaction((t=>{if(t)return e(t);completeEndSession()}));return}completeEndSession()}))}advanceOperationTime(e){if(this.operationTime==null){this.operationTime=e;return}if(e.greaterThan(this.operationTime)){this.operationTime=e}}advanceClusterTime(e){var t,r;if(!e||typeof e!=="object"){throw new u.MongoInvalidArgumentError("input cluster time must be an object")}if(!e.clusterTime||e.clusterTime._bsontype!=="Timestamp"){throw new u.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp')}if(!e.signature||((t=e.signature.hash)===null||t===void 0?void 0:t._bsontype)!=="Binary"||typeof e.signature.keyId!=="number"&&((r=e.signature.keyId)===null||r===void 0?void 0:r._bsontype)!=="Long"){throw new u.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId')}(0,y._advanceClusterTime)(this,e)}equals(e){if(!(e instanceof ClientSession)){return false}if(this.id==null||e.id==null){return false}return this.id.id.buffer.equals(e.id.id.buffer)}incrementTransactionNumber(){if(this.serverSession){this.serverSession.txnNumber=typeof this.serverSession.txnNumber==="number"?this.serverSession.txnNumber+1:0}}inTransaction(){return this.transaction.isActive}startTransaction(e){var t,r,n,i,o,a,c,l,d,h;if(this[x]){throw new u.MongoCompatibilityError("Transactions are not allowed with snapshot sessions")}assertAlive(this);if(this.inTransaction()){throw new u.MongoTransactionError("Transaction already in progress")}if(this.isPinned&&this.transaction.isCommitted){this.unpin()}const m=(0,b.maxWireVersion)(this.topology);if((0,s.isSharded)(this.topology)&&m!=null&&m<_){throw new u.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.")}this.incrementTransactionNumber();this.transaction=new v.Transaction({readConcern:(r=(t=e===null||e===void 0?void 0:e.readConcern)!==null&&t!==void 0?t:this.defaultTransactionOptions.readConcern)!==null&&r!==void 0?r:(n=this.clientOptions)===null||n===void 0?void 0:n.readConcern,writeConcern:(o=(i=e===null||e===void 0?void 0:e.writeConcern)!==null&&i!==void 0?i:this.defaultTransactionOptions.writeConcern)!==null&&o!==void 0?o:(a=this.clientOptions)===null||a===void 0?void 0:a.writeConcern,readPreference:(l=(c=e===null||e===void 0?void 0:e.readPreference)!==null&&c!==void 0?c:this.defaultTransactionOptions.readPreference)!==null&&l!==void 0?l:(d=this.clientOptions)===null||d===void 0?void 0:d.readPreference,maxCommitTimeMS:(h=e===null||e===void 0?void 0:e.maxCommitTimeMS)!==null&&h!==void 0?h:this.defaultTransactionOptions.maxCommitTimeMS});this.transaction.transition(v.TxnState.STARTING_TRANSACTION)}commitTransaction(e){return(0,b.maybePromise)(e,(e=>endTransaction(this,"commitTransaction",e)))}abortTransaction(e){return(0,b.maybePromise)(e,(e=>endTransaction(this,"abortTransaction",e)))}toBSON(){throw new u.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}withTransaction(e,t){const r=(0,b.now)();return attemptTransaction(this,r,e,t)}}t.ClientSession=ClientSession;n=x;const O=12e4;const D=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);function hasNotTimedOut(e,t){return(0,b.calculateDurationInMs)(e){if(i instanceof u.MongoError&&hasNotTimedOut(t,O)&&!isMaxTimeMSExpiredError(i)){if(i.hasErrorLabel("UnknownTransactionCommitResult")){return attemptTransactionCommit(e,t,r,n)}if(i.hasErrorLabel("TransientTransactionError")){return attemptTransaction(e,t,r,n)}}throw i}))}const B=new Set([v.TxnState.NO_TRANSACTION,v.TxnState.TRANSACTION_COMMITTED,v.TxnState.TRANSACTION_ABORTED]);function userExplicitlyEndedTransaction(e){return B.has(e.transaction.state)}function attemptTransaction(e,t,r,n){const i=h.PromiseProvider.get();e.startTransaction(n);let o;try{o=r(e)}catch(e){o=i.reject(e)}if(!(0,b.isPromiseLike)(o)){e.abortTransaction();throw new u.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise")}return o.then((()=>{if(userExplicitlyEndedTransaction(e)){return}return attemptTransactionCommit(e,t,r,n)}),(i=>{function maybeRetryOrThrow(i){if(i instanceof u.MongoError&&i.hasErrorLabel("TransientTransactionError")&&hasNotTimedOut(t,O)){return attemptTransaction(e,t,r,n)}if(isMaxTimeMSExpiredError(i)){i.addErrorLabel("UnknownTransactionCommitResult")}throw i}if(e.transaction.isActive){return e.abortTransaction().then((()=>maybeRetryOrThrow(i)))}return maybeRetryOrThrow(i)}))}function endTransaction(e,t,r){if(!assertAlive(e,r)){return}const n=e.transaction.state;if(n===v.TxnState.NO_TRANSACTION){r(new u.MongoTransactionError("No transaction started"));return}if(t==="commitTransaction"){if(n===v.TxnState.STARTING_TRANSACTION||n===v.TxnState.TRANSACTION_COMMITTED_EMPTY){e.transaction.transition(v.TxnState.TRANSACTION_COMMITTED_EMPTY);r();return}if(n===v.TxnState.TRANSACTION_ABORTED){r(new u.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"));return}}else{if(n===v.TxnState.STARTING_TRANSACTION){e.transaction.transition(v.TxnState.TRANSACTION_ABORTED);r();return}if(n===v.TxnState.TRANSACTION_ABORTED){r(new u.MongoTransactionError("Cannot call abortTransaction twice"));return}if(n===v.TxnState.TRANSACTION_COMMITTED||n===v.TxnState.TRANSACTION_COMMITTED_EMPTY){r(new u.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"));return}}const i={[t]:1};let o;if(e.transaction.options.writeConcern){o=Object.assign({},e.transaction.options.writeConcern)}else if(e.clientOptions&&e.clientOptions.writeConcern){o={w:e.clientOptions.writeConcern.w}}if(n===v.TxnState.TRANSACTION_COMMITTED){o=Object.assign({wtimeout:1e4},o,{w:"majority"})}if(o){Object.assign(i,{writeConcern:o})}if(t==="commitTransaction"&&e.transaction.options.maxTimeMS){Object.assign(i,{maxTimeMS:e.transaction.options.maxTimeMS})}function commandHandler(n,i){if(t!=="commitTransaction"){e.transaction.transition(v.TxnState.TRANSACTION_ABORTED);if(e.loadBalanced){maybeClearPinnedConnection(e,{force:false})}return r()}e.transaction.transition(v.TxnState.TRANSACTION_COMMITTED);if(n){if(n instanceof u.MongoNetworkError||n instanceof u.MongoWriteConcernError||(0,u.isRetryableError)(n)||isMaxTimeMSExpiredError(n)){if(isUnknownTransactionCommitResult(n)){n.addErrorLabel("UnknownTransactionCommitResult");e.unpin({error:n})}}else if(n.hasErrorLabel("TransientTransactionError")){e.unpin({error:n})}}r(n,i)}if(e.transaction.recoveryToken){i.recoveryToken=e.transaction.recoveryToken}(0,l.executeOperation)(e.topology,new d.RunAdminCommandOperation(undefined,i,{session:e,readPreference:g.ReadPreference.primary,bypassPinningCheck:true}),((t,r)=>{if(i.abortTransaction){e.unpin()}if(t&&(0,u.isRetryableEndTransactionError)(t)){if(i.commitTransaction){e.unpin({force:true});i.writeConcern=Object.assign({wtimeout:1e4},i.writeConcern,{w:"majority"})}return(0,l.executeOperation)(e.topology,new d.RunAdminCommandOperation(undefined,i,{session:e,readPreference:g.ReadPreference.primary,bypassPinningCheck:true}),((e,t)=>commandHandler(e,t)))}commandHandler(t,r)}))}class ServerSession{constructor(){this.id={id:new i.Binary((0,b.uuidV4)(),i.Binary.SUBTYPE_UUID)};this.lastUse=(0,b.now)();this.txnNumber=0;this.isDirty=false}hasTimedOut(e){const t=Math.round((0,b.calculateDurationInMs)(this.lastUse)%864e5%36e5/6e4);return t>e-1}}t.ServerSession=ServerSession;class ServerSessionPool{constructor(e){if(e==null){throw new u.MongoRuntimeError("ServerSessionPool requires a topology")}this.topology=e;this.sessions=[]}endAllPooledSessions(e){if(this.sessions.length){this.topology.endSessions(this.sessions.map((e=>e.id)),(()=>{this.sessions=[];if(typeof e==="function"){e()}}));return}if(typeof e==="function"){e()}}acquire(){const e=this.topology.logicalSessionTimeoutMinutes||10;while(this.sessions.length){const t=this.sessions.shift();if(t&&(this.topology.loadBalanced||!t.hasTimedOut(e))){return t}}return new ServerSession}release(e){const t=this.topology.logicalSessionTimeoutMinutes;if(this.topology.loadBalanced&&!t){this.sessions.unshift(e)}if(!t){return}while(this.sessions.length){const e=this.sessions[this.sessions.length-1];if(e.hasTimedOut(t)){this.sessions.pop()}else{break}}if(!e.hasTimedOut(t)){if(e.isDirty){return}this.sessions.unshift(e)}}}t.ServerSessionPool=ServerSessionPool;function applySession(e,t,r){var n;if(e.hasEnded){return new u.MongoExpiredSessionError}const o=e.serverSession;if(o==null){return new u.MongoRuntimeError("Unable to acquire server session")}if(r&&r.writeConcern&&r.writeConcern.w===0){if(e&&e.explicit){return new u.MongoAPIError("Cannot have explicit session with unacknowledged writes")}return}o.lastUse=(0,b.now)();t.lsid=o.id;const s=e.inTransaction()||(0,v.isTransactionCommand)(t);const a=(r===null||r===void 0?void 0:r.willRetryWrite)||false;if(o.txnNumber&&(a||s)){t.txnNumber=i.Long.fromNumber(o.txnNumber)}if(!s){if(e.transaction.state!==v.TxnState.NO_TRANSACTION){e.transaction.transition(v.TxnState.NO_TRANSACTION)}if(e.supports.causalConsistency&&e.operationTime&&(0,b.commandSupportsReadConcern)(t,r)){t.readConcern=t.readConcern||{};Object.assign(t.readConcern,{afterClusterTime:e.operationTime})}else if(e[x]){t.readConcern=t.readConcern||{level:m.ReadConcernLevel.snapshot};if(e[k]!=null){Object.assign(t.readConcern,{atClusterTime:e[k]})}}return}t.autocommit=false;if(e.transaction.state===v.TxnState.STARTING_TRANSACTION){e.transaction.transition(v.TxnState.TRANSACTION_IN_PROGRESS);t.startTransaction=true;const r=e.transaction.options.readConcern||((n=e===null||e===void 0?void 0:e.clientOptions)===null||n===void 0?void 0:n.readConcern);if(r){t.readConcern=r}if(e.supports.causalConsistency&&e.operationTime){t.readConcern=t.readConcern||{};Object.assign(t.readConcern,{afterClusterTime:e.operationTime})}}}t.applySession=applySession;function updateSessionFromResponse(e,t){var r;if(t.$clusterTime){(0,y._advanceClusterTime)(e,t.$clusterTime)}if(t.operationTime&&e&&e.supports.causalConsistency){e.advanceOperationTime(t.operationTime)}if(t.recoveryToken&&e&&e.inTransaction()){e.transaction._recoveryToken=t.recoveryToken}if((e===null||e===void 0?void 0:e[x])&&e[k]==null){const n=((r=t.cursor)===null||r===void 0?void 0:r.atClusterTime)||t.atClusterTime;if(n){e[k]=n}}}t.updateSessionFromResponse=updateSessionFromResponse},73416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatSort=void 0;const n=r(95544);function prepareDirection(e=1){const t=`${e}`.toLowerCase();if(isMeta(e))return e;switch(t){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new n.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(e)}`)}}function isMeta(e){return typeof e==="object"&&e!=null&&"$meta"in e&&typeof e.$meta==="string"}function isPair(e){if(Array.isArray(e)&&e.length===2){try{prepareDirection(e[1]);return true}catch(e){return false}}return false}function isDeep(e){return Array.isArray(e)&&Array.isArray(e[0])}function isMap(e){return e instanceof Map&&e.size>0}function pairToMap(e){return new Map([[`${e[0]}`,prepareDirection([e[1]])]])}function deepToMap(e){const t=e.map((([e,t])=>[`${e}`,prepareDirection(t)]));return new Map(t)}function stringsToMap(e){const t=e.map((e=>[`${e}`,1]));return new Map(t)}function objectToMap(e){const t=Object.entries(e).map((([e,t])=>[`${e}`,prepareDirection(t)]));return new Map(t)}function mapToMap(e){const t=Array.from(e).map((([e,t])=>[`${e}`,prepareDirection(t)]));return new Map(t)}function formatSort(e,t){if(e==null)return undefined;if(typeof e==="string")return new Map([[e,prepareDirection(t)]]);if(typeof e!=="object"){throw new n.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(e)} Sort must be a valid object`)}if(!Array.isArray(e)){return isMap(e)?mapToMap(e):Object.keys(e).length?objectToMap(e):undefined}if(!e.length)return undefined;if(isDeep(e))return deepToMap(e);if(isPair(e))return pairToMap(e);return stringsToMap(e)}t.formatSort=formatSort},6658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTransactionCommand=t.Transaction=t.TxnState=void 0;const n=r(95544);const i=r(31256);const o=r(46334);const s=r(31942);t.TxnState=Object.freeze({NO_TRANSACTION:"NO_TRANSACTION",STARTING_TRANSACTION:"STARTING_TRANSACTION",TRANSACTION_IN_PROGRESS:"TRANSACTION_IN_PROGRESS",TRANSACTION_COMMITTED:"TRANSACTION_COMMITTED",TRANSACTION_COMMITTED_EMPTY:"TRANSACTION_COMMITTED_EMPTY",TRANSACTION_ABORTED:"TRANSACTION_ABORTED"});const a={[t.TxnState.NO_TRANSACTION]:[t.TxnState.NO_TRANSACTION,t.TxnState.STARTING_TRANSACTION],[t.TxnState.STARTING_TRANSACTION]:[t.TxnState.TRANSACTION_IN_PROGRESS,t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.TRANSACTION_ABORTED],[t.TxnState.TRANSACTION_IN_PROGRESS]:[t.TxnState.TRANSACTION_IN_PROGRESS,t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_ABORTED],[t.TxnState.TRANSACTION_COMMITTED]:[t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.STARTING_TRANSACTION,t.TxnState.NO_TRANSACTION],[t.TxnState.TRANSACTION_ABORTED]:[t.TxnState.STARTING_TRANSACTION,t.TxnState.NO_TRANSACTION],[t.TxnState.TRANSACTION_COMMITTED_EMPTY]:[t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.NO_TRANSACTION]};const u=new Set([t.TxnState.STARTING_TRANSACTION,t.TxnState.TRANSACTION_IN_PROGRESS]);const c=new Set([t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.TRANSACTION_ABORTED]);class Transaction{constructor(e){e=e!==null&&e!==void 0?e:{};this.state=t.TxnState.NO_TRANSACTION;this.options={};const r=s.WriteConcern.fromOptions(e);if(r){if(r.w===0){throw new n.MongoTransactionError("Transactions do not support unacknowledged write concern")}this.options.writeConcern=r}if(e.readConcern){this.options.readConcern=i.ReadConcern.fromOptions(e)}if(e.readPreference){this.options.readPreference=o.ReadPreference.fromOptions(e)}if(e.maxCommitTimeMS){this.options.maxTimeMS=e.maxCommitTimeMS}this._pinnedServer=undefined;this._recoveryToken=undefined}get server(){return this._pinnedServer}get recoveryToken(){return this._recoveryToken}get isPinned(){return!!this.server}get isStarting(){return this.state===t.TxnState.STARTING_TRANSACTION}get isActive(){return u.has(this.state)}get isCommitted(){return c.has(this.state)}transition(e){const r=a[this.state];if(r&&r.includes(e)){this.state=e;if(this.state===t.TxnState.NO_TRANSACTION||this.state===t.TxnState.STARTING_TRANSACTION||this.state===t.TxnState.TRANSACTION_ABORTED){this.unpinServer()}return}throw new n.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${e}]`)}pinServer(e){if(this.isActive){this._pinnedServer=e}}unpinServer(){this._pinnedServer=undefined}}t.Transaction=Transaction;function isTransactionCommand(e){return!!(e.commitTransaction||e.abortTransaction)}t.isTransactionCommand=isTransactionCommand},3332:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePackageVersion=t.supportsRetryableWrites=t.enumToString=t.emitWarningOnce=t.emitWarning=t.MONGODB_WARNING_CODE=t.DEFAULT_PK_FACTORY=t.HostAddress=t.BufferPool=t.deepCopy=t.isRecord=t.setDifference=t.isHello=t.isSuperset=t.resolveOptions=t.hasAtomicOperators=t.makeInterruptibleAsyncInterval=t.calculateDurationInMs=t.now=t.makeClientMetadata=t.makeStateMachine=t.errorStrictEqual=t.arrayStrictEqual=t.eachAsyncSeries=t.eachAsync=t.collationNotSupported=t.maxWireVersion=t.uuidV4=t.databaseNamespace=t.maybePromise=t.makeCounter=t.MongoDBNamespace=t.ns=t.deprecateOptions=t.defaultMsgHandler=t.getTopology=t.decorateWithExplain=t.decorateWithReadConcern=t.decorateWithCollation=t.isPromiseLike=t.applyWriteConcern=t.applyRetryableWrites=t.executeLegacyOperation=t.filterOptions=t.mergeOptions=t.isObject=t.parseIndexOptions=t.normalizeHintField=t.checkCollectionName=t.MAX_JS_INT=void 0;t.commandSupportsReadConcern=t.shuffle=void 0;const n=r(6113);const i=r(22037);const o=r(57310);const s=r(85539);const a=r(58437);const u=r(72367);const c=r(95544);const l=r(44912);const d=r(31256);const h=r(46334);const m=r(30875);const g=r(31942);t.MAX_JS_INT=Number.MAX_SAFE_INTEGER+1;function checkCollectionName(e){if("string"!==typeof e){throw new c.MongoInvalidArgumentError("Collection name must be a String")}if(!e||e.indexOf("..")!==-1){throw new c.MongoInvalidArgumentError("Collection names cannot be empty")}if(e.indexOf("$")!==-1&&e.match(/((^\$cmd)|(oplog\.\$main))/)==null){throw new c.MongoInvalidArgumentError("Collection names must not contain '$'")}if(e.match(/^\.|\.$/)!=null){throw new c.MongoInvalidArgumentError("Collection names must not start or end with '.'")}if(e.indexOf("\0")!==-1){throw new c.MongoInvalidArgumentError("Collection names cannot contain a null character")}}t.checkCollectionName=checkCollectionName;function normalizeHintField(e){let t=undefined;if(typeof e==="string"){t=e}else if(Array.isArray(e)){t={};e.forEach((e=>{t[e]=1}))}else if(e!=null&&typeof e==="object"){t={};for(const r in e){t[r]=e[r]}}return t}t.normalizeHintField=normalizeHintField;function parseIndexOptions(e){const t={};const r=[];let n;if("string"===typeof e){r.push(e+"_"+1);t[e]=1}else if(Array.isArray(e)){e.forEach((e=>{if("string"===typeof e){r.push(e+"_"+1);t[e]=1}else if(Array.isArray(e)){r.push(e[0]+"_"+(e[1]||1));t[e[0]]=e[1]||1}else if(isObject(e)){n=Object.keys(e);n.forEach((n=>{r.push(n+"_"+e[n]);t[n]=e[n]}))}else{}}))}else if(isObject(e)){n=Object.keys(e);Object.entries(e).forEach((([e,n])=>{r.push(e+"_"+n);t[e]=n}))}return{name:r.join("_"),keys:n,fieldHash:t}}t.parseIndexOptions=parseIndexOptions;function isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}t.isObject=isObject;function mergeOptions(e,t){return{...e,...t}}t.mergeOptions=mergeOptions;function filterOptions(e,t){const r={};for(const n in e){if(t.includes(n)){r[n]=e[n]}}return r}t.filterOptions=filterOptions;function executeLegacyOperation(e,t,r,n){const i=l.PromiseProvider.get();if(!Array.isArray(r)){throw new c.MongoRuntimeError("This method requires an array of arguments to apply")}n=n!==null&&n!==void 0?n:{};let o=r[r.length-1];let s;let a;let u;if(!n.skipSessions&&e.hasSessionSupport()){a=r[r.length-2];if(a==null||a.session==null){u=Symbol();s=e.startSession({owner:u});const t=r.length-2;r[t]=Object.assign({},r[t],{session:s})}else if(a.session&&a.session.hasEnded){throw new c.MongoExpiredSessionError}}function makeExecuteCallback(e,t){return function(r,i){if(s&&s.owner===u&&!(n===null||n===void 0?void 0:n.returnsCursor)){s.endSession((()=>{delete a.session;if(r)return t(r);e(i)}))}else{if(r)return t(r);e(i)}}}if(typeof o==="function"){o=r.pop();const e=makeExecuteCallback((e=>o(undefined,e)),(e=>o(e,null)));r.push(e);try{return t(...r)}catch(t){e(t);throw t}}if(r[r.length-1]!=null){throw new c.MongoRuntimeError("Final argument to `executeLegacyOperation` must be a callback")}return new i(((e,n)=>{const i=makeExecuteCallback(e,n);r[r.length-1]=i;try{return t(...r)}catch(e){i(e)}}))}t.executeLegacyOperation=executeLegacyOperation;function applyRetryableWrites(e,t){var r;if(t&&((r=t.s.options)===null||r===void 0?void 0:r.retryWrites)){e.retryWrites=true}return e}t.applyRetryableWrites=applyRetryableWrites;function applyWriteConcern(e,t,r){r=r!==null&&r!==void 0?r:{};const n=t.db;const i=t.collection;if(r.session&&r.session.inTransaction()){if(e.writeConcern){delete e.writeConcern}return e}const o=g.WriteConcern.fromOptions(r);if(o){return Object.assign(e,{writeConcern:o})}if(i&&i.writeConcern){return Object.assign(e,{writeConcern:Object.assign({},i.writeConcern)})}if(n&&n.writeConcern){return Object.assign(e,{writeConcern:Object.assign({},n.writeConcern)})}return e}t.applyWriteConcern=applyWriteConcern;function isPromiseLike(e){return!!e&&typeof e.then==="function"}t.isPromiseLike=isPromiseLike;function decorateWithCollation(e,t,r){const n=getTopology(t).capabilities;if(r.collation&&typeof r.collation==="object"){if(n&&n.commandsTakeCollation){e.collation=r.collation}else{throw new c.MongoCompatibilityError(`Current topology does not support collation`)}}}t.decorateWithCollation=decorateWithCollation;function decorateWithReadConcern(e,t,r){if(r&&r.session&&r.session.inTransaction()){return}const n=Object.assign({},e.readConcern||{});if(t.s.readConcern){Object.assign(n,t.s.readConcern)}if(Object.keys(n).length>0){Object.assign(e,{readConcern:n})}}t.decorateWithReadConcern=decorateWithReadConcern;function decorateWithExplain(e,t){if(e.explain){return e}return{explain:e,verbosity:t.verbosity}}t.decorateWithExplain=decorateWithExplain;function getTopology(e){if(`topology`in e&&e.topology){return e.topology}else if("client"in e.s&&e.s.client.topology){return e.s.client.topology}else if("db"in e.s&&e.s.db.s.client.topology){return e.s.db.s.client.topology}throw new c.MongoNotConnectedError("MongoClient must be connected to perform this operation")}t.getTopology=getTopology;function defaultMsgHandler(e,t){return`${e} option [${t}] is deprecated and will be removed in a later version.`}t.defaultMsgHandler=defaultMsgHandler;function deprecateOptions(e,t){if(process.noDeprecation===true){return t}const r=e.msgHandler?e.msgHandler:defaultMsgHandler;const n=new Set;function deprecated(...i){const o=i[e.optionsIndex];if(!isObject(o)||Object.keys(o).length===0){return t.bind(this)(...i)}for(const t of e.deprecatedOptions){if(t in o&&!n.has(t)){n.add(t);const i=r(e.name,t);emitWarning(i);if(this&&"getLogger"in this){const e=this.getLogger();if(e){e.warn(i)}}}}return t.bind(this)(...i)}Object.setPrototypeOf(deprecated,t);if(t.prototype){deprecated.prototype=t.prototype}return deprecated}t.deprecateOptions=deprecateOptions;function ns(e){return MongoDBNamespace.fromString(e)}t.ns=ns;class MongoDBNamespace{constructor(e,t){this.db=e;this.collection=t}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(e){return new MongoDBNamespace(this.db,e)}static fromString(e){if(!e){throw new c.MongoRuntimeError(`Cannot parse namespace from "${e}"`)}const[t,...r]=e.split(".");return new MongoDBNamespace(t,r.join("."))}}t.MongoDBNamespace=MongoDBNamespace;function*makeCounter(e=0){let t=e;while(true){const e=t;t+=1;yield e}}t.makeCounter=makeCounter;function maybePromise(e,t){const r=l.PromiseProvider.get();let n;if(typeof e!=="function"){n=new r(((t,r)=>{e=(e,n)=>{if(e)return r(e);t(n)}}))}t(((t,r)=>{if(t!=null){try{e(t)}catch(e){process.nextTick((()=>{throw e}))}return}e(t,r)}));return n}t.maybePromise=maybePromise;function databaseNamespace(e){return e.split(".")[0]}t.databaseNamespace=databaseNamespace;function uuidV4(){const e=n.randomBytes(16);e[6]=e[6]&15|64;e[8]=e[8]&63|128;return e}t.uuidV4=uuidV4;function maxWireVersion(e){if(e){if(e.loadBalanced){return a.MAX_SUPPORTED_WIRE_VERSION}if(e.hello){return e.hello.maxWireVersion}if("lastHello"in e&&typeof e.lastHello==="function"){const t=e.lastHello();if(t){return t.maxWireVersion}}if(e.description&&"maxWireVersion"in e.description&&e.description.maxWireVersion!=null){return e.description.maxWireVersion}}return 0}t.maxWireVersion=maxWireVersion;function collationNotSupported(e,t){return t&&t.collation&&maxWireVersion(e)<5}t.collationNotSupported=collationNotSupported;function eachAsync(e,t,r){e=e||[];let n=0;let i=0;for(n=0;ne===t[r]))}t.arrayStrictEqual=arrayStrictEqual;function errorStrictEqual(e,t){if(e===t){return true}if(!e||!t){return e===t}if(e==null&&t!=null||e!=null&&t==null){return false}if(e.constructor.name!==t.constructor.name){return false}if(e.message!==t.message){return false}return true}t.errorStrictEqual=errorStrictEqual;function makeStateMachine(e){return function stateTransition(t,r){const n=e[t.s.state];if(n&&n.indexOf(r)<0){throw new c.MongoRuntimeError(`illegal state transition from [${t.s.state}] => [${r}], allowed: [${n}]`)}t.emit("stateChanged",t.s.state,r);t.s.state=r}}t.makeStateMachine=makeStateMachine;const y=r(4147).version;function makeClientMetadata(e){e=e!==null&&e!==void 0?e:{};const t={driver:{name:"nodejs",version:y},os:{type:i.type(),name:process.platform,architecture:process.arch,version:i.release()},platform:`Node.js ${process.version}, ${i.endianness()} (unified)`};if(e.driverInfo){if(e.driverInfo.name){t.driver.name=`${t.driver.name}|${e.driverInfo.name}`}if(e.driverInfo.version){t.version=`${t.driver.version}|${e.driverInfo.version}`}if(e.driverInfo.platform){t.platform=`${t.platform}|${e.driverInfo.platform}`}}if(e.appName){const r=Buffer.from(e.appName);t.application={name:r.byteLength>128?r.slice(0,128).toString("utf8"):e.appName}}return t}t.makeClientMetadata=makeClientMetadata;function now(){const e=process.hrtime();return Math.floor(e[0]*1e3+e[1]/1e6)}t.now=now;function calculateDurationInMs(e){if(typeof e!=="number"){throw new c.MongoInvalidArgumentError("Numeric value required to calculate duration")}const t=now()-e;return t<0?0:t}t.calculateDurationInMs=calculateDurationInMs;function makeInterruptibleAsyncInterval(e,t){let r;let n;let i=false;let o=false;t=t!==null&&t!==void 0?t:{};const s=t.interval||1e3;const a=t.minInterval||500;const u=typeof t.immediate==="boolean"?t.immediate:false;const c=typeof t.clock==="function"?t.clock:now;function wake(){const e=c();const t=n+s;const r=t-e;if(r<0){executeAndReschedule();return}if(i){return}if(r>a){reschedule(a);i=true}}function stop(){o=true;if(r){clearTimeout(r);r=undefined}n=0;i=false}function reschedule(e){if(o)return;if(r){clearTimeout(r)}r=setTimeout(executeAndReschedule,e||s)}function executeAndReschedule(){i=false;n=c();e((e=>{if(e)throw e;reschedule(s)}))}if(u){executeAndReschedule()}else{n=c();reschedule(undefined)}return{wake:wake,stop:stop}}t.makeInterruptibleAsyncInterval=makeInterruptibleAsyncInterval;function hasAtomicOperators(e){if(Array.isArray(e)){for(const t of e){if(hasAtomicOperators(t)){return true}}return false}const t=Object.keys(e);return t.length>0&&t[0][0]==="$"}t.hasAtomicOperators=hasAtomicOperators;function resolveOptions(e,t){var r,n,i;const o=Object.assign({},t,(0,s.resolveBSONOptions)(t,e));const a=t===null||t===void 0?void 0:t.session;if(!(a===null||a===void 0?void 0:a.inTransaction())){const i=(r=d.ReadConcern.fromOptions(t))!==null&&r!==void 0?r:e===null||e===void 0?void 0:e.readConcern;if(i){o.readConcern=i}const s=(n=g.WriteConcern.fromOptions(t))!==null&&n!==void 0?n:e===null||e===void 0?void 0:e.writeConcern;if(s){o.writeConcern=s}}const u=(i=h.ReadPreference.fromOptions(t))!==null&&i!==void 0?i:e===null||e===void 0?void 0:e.readPreference;if(u){o.readPreference=u}return o}t.resolveOptions=resolveOptions;function isSuperset(e,t){e=Array.isArray(e)?new Set(e):e;t=Array.isArray(t)?new Set(t):t;for(const r of t){if(!e.has(r)){return false}}return true}t.isSuperset=isSuperset;function isHello(e){return e[u.LEGACY_HELLO_COMMAND]||e.hello?true:false}t.isHello=isHello;function setDifference(e,t){const r=new Set(e);for(const e of t){r.delete(e)}return r}t.setDifference=setDifference;function isRecord(e,t=undefined){const r=Object.prototype.toString;const n=Object.prototype.hasOwnProperty;const isObject=e=>r.call(e)==="[object Object]";if(!isObject(e)){return false}const i=e.constructor;if(i&&i.prototype){if(!isObject(i.prototype)){return false}if(!n.call(i.prototype,"isPrototypeOf")){return false}}if(t){const r=Object.keys(e);return isSuperset(r,t)}return true}t.isRecord=isRecord;function deepCopy(e){if(e==null){return e}else if(Array.isArray(e)){return e.map((e=>deepCopy(e)))}else if(isRecord(e)){const t={};for(const r in e){t[r]=deepCopy(e[r])}return t}const t=e.constructor;if(t){switch(t.name.toLowerCase()){case"date":return new t(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return Buffer.from(e)}}return e}t.deepCopy=deepCopy;const v=Symbol("buffers");const b=Symbol("length");class BufferPool{constructor(){this[v]=[];this[b]=0}get length(){return this[b]}append(e){this[v].push(e);this[b]+=e.length}peek(e){return this.read(e,false)}read(e,t=true){if(typeof e!=="number"||e<0){throw new c.MongoInvalidArgumentError('Argument "size" must be a non-negative number')}if(e>this[b]){return Buffer.alloc(0)}let r;if(e===this.length){r=Buffer.concat(this[v]);if(t){this[v]=[];this[b]=0}}else if(e<=this[v][0].length){r=this[v][0].slice(0,e);if(t){this[v][0]=this[v][0].slice(e);this[b]-=e}}else{r=Buffer.allocUnsafe(e);let n;let i=0;let o=e;for(n=0;nthis[v][n].length){e=this[v][n].copy(r,i,0);i+=e}else{e=this[v][n].copy(r,i,0,o);if(t){this[v][n]=this[v][n].slice(e)}i+=e;break}o-=e}if(t){this[v]=this[v].slice(n);this[b]-=e}}return r}}t.BufferPool=BufferPool;class HostAddress{constructor(e){const t=e.split(" ").join("%20");const{hostname:r,port:n}=new o.URL(`mongodb://${t}`);if(r.endsWith(".sock")){this.socketPath=decodeURIComponent(r)}else if(typeof r==="string"){this.isIPv6=false;let e=decodeURIComponent(r).toLowerCase();if(e.startsWith("[")&&e.endsWith("]")){this.isIPv6=true;e=e.substring(1,r.length-1)}this.host=e.toLowerCase();if(typeof n==="number"){this.port=n}else if(typeof n==="string"&&n!==""){this.port=Number.parseInt(n,10)}else{this.port=27017}if(this.port===0){throw new c.MongoParseError("Invalid port (zero) with hostname")}}else{throw new c.MongoInvalidArgumentError("Either socketPath or host must be defined.")}Object.freeze(this)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new HostAddress('${this.toString(true)}')`}toString(e=false){if(typeof this.host==="string"){if(this.isIPv6&&e){return`[${this.host}]:${this.port}`}return`${this.host}:${this.port}`}return`${this.socketPath}`}static fromString(e){return new HostAddress(e)}static fromHostPort(e,t){if(e.includes(":")){e=`[${e}]`}return HostAddress.fromString(`${e}:${t}`)}static fromSrvRecord({name:e,port:t}){return HostAddress.fromHostPort(e,t)}}t.HostAddress=HostAddress;t.DEFAULT_PK_FACTORY={createPk(){return new s.ObjectId}};t.MONGODB_WARNING_CODE="MONGODB DRIVER";function emitWarning(e){return process.emitWarning(e,{code:t.MONGODB_WARNING_CODE})}t.emitWarning=emitWarning;const _=new Set;function emitWarningOnce(e){if(!_.has(e)){_.add(e);return emitWarning(e)}}t.emitWarningOnce=emitWarningOnce;function enumToString(e){return Object.values(e).join(", ")}t.enumToString=enumToString;function supportsRetryableWrites(e){return!!e.loadBalanced||e.description.maxWireVersion>=6&&!!e.description.logicalSessionTimeoutMinutes&&e.description.type!==m.ServerType.Standalone}t.supportsRetryableWrites=supportsRetryableWrites;function parsePackageVersion({version:e}){const[t,r,n]=e.split(".").map((e=>Number.parseInt(e,10)));return{major:t,minor:r,patch:n}}t.parsePackageVersion=parsePackageVersion;function shuffle(e,t=0){const r=Array.from(e);if(t>r.length){throw new c.MongoRuntimeError("Limit must be less than the number of items")}let n=r.length;const i=t%r.length===0?1:r.length-t;while(n>i){const e=Math.floor(Math.random()*n);n-=1;const t=r[n];r[n]=r[e];r[e]=t}return t%r.length===0?r:r.slice(i)}t.shuffle=shuffle;function commandSupportsReadConcern(e,t){if(e.aggregate||e.count||e.distinct||e.find||e.geoNear){return true}if(e.mapReduce&&t&&t.out&&(t.out.inline===1||t.out==="inline")){return true}return false}t.commandSupportsReadConcern=commandSupportsReadConcern},31942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WriteConcern=t.WRITE_CONCERN_KEYS=void 0;t.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class WriteConcern{constructor(e,t,r,n){if(e!=null){if(!Number.isNaN(Number(e))){this.w=Number(e)}else{this.w=e}}if(t!=null){this.wtimeout=t}if(r!=null){this.j=r}if(n!=null){this.fsync=n}}static fromOptions(e,t){if(e==null)return undefined;t=t!==null&&t!==void 0?t:{};let r;if(typeof e==="string"||typeof e==="number"){r={w:e}}else if(e instanceof WriteConcern){r=e}else{r=e.writeConcern}const n=t instanceof WriteConcern?t:t.writeConcern;const{w:i=undefined,wtimeout:o=undefined,j:s=undefined,fsync:a=undefined,journal:u=undefined,wtimeoutMS:c=undefined}={...n,...r};if(i!=null||o!=null||c!=null||s!=null||u!=null||a!=null){return new WriteConcern(i,o!==null&&o!==void 0?o:c,s!==null&&s!==void 0?s:u,a)}return undefined}}t.WriteConcern=WriteConcern},17649:(e,t,r)=>{"use strict";e.exports=r(34815)},31616:(e,t,r)=>{"use strict"; /*! * Module dependencies */const n=r(60267);const i=r(68488);const o=r(90412);const s=r(55716);const a=r(40500);const u=r(43607);const c=r(99477);const l=r(52492);const d=i.prototype.read;const h=i.prototype.readConcern;function Aggregate(e,t){this._pipeline=[];this._model=t;this.options={};if(arguments.length===1&&Array.isArray(e)){this.append.apply(this,e)}}Aggregate.prototype.options;Aggregate.prototype.model=function(e){if(arguments.length===0){return this._model}this._model=e;if(e.schema!=null){if(this.options.readPreference==null&&e.schema.options.read!=null){this.options.readPreference=e.schema.options.read}if(this.options.collation==null&&e.schema.options.collation!=null){this.options.collation=e.schema.options.collation}}return e};Aggregate.prototype.append=function(){const e=arguments.length===1&&Array.isArray(arguments[0])?arguments[0]:[...arguments];if(!e.every(isOperator)){throw new Error("Arguments must be aggregate pipeline operators")}this._pipeline=this._pipeline.concat(e);return this};Aggregate.prototype.addFields=function(e){const t={};if(typeof e==="object"&&!Array.isArray(e)){Object.keys(e).forEach((function(r){t[r]=e[r]}))}else{throw new Error("Invalid addFields() argument. Must be an object")}return this.append({$addFields:t})};Aggregate.prototype.project=function(e){const t={};if(typeof e==="object"&&!Array.isArray(e)){Object.keys(e).forEach((function(r){t[r]=e[r]}))}else if(arguments.length===1&&typeof e==="string"){e.split(/\s+/).forEach((function(e){if(!e){return}const r=e[0]==="-"?0:1;if(r===0){e=e.substring(1)}t[e]=r}))}else{throw new Error("Invalid project() argument. Must be string or object")}return this.append({$project:t})};Aggregate.prototype.near=function(e){const t={};t.$geoNear=e;return this.append(t)}; /*! * define methods */"group match skip limit out".split(" ").forEach((function(e){Aggregate.prototype[e]=function(t){const r={};r["$"+e]=t;return this.append(r)}}));Aggregate.prototype.unwind=function(){const e=[...arguments];const t=[];for(const r of e){if(r&&typeof r==="object"){t.push({$unwind:r})}else if(typeof r==="string"){t.push({$unwind:r&&r.startsWith("$")?r:"$"+r})}else{throw new Error('Invalid arg "'+r+'" to unwind(), '+"must be string or object")}}return this.append.apply(this,t)};Aggregate.prototype.replaceRoot=function(e){let t;if(typeof e==="string"){t=e.startsWith("$")?e:"$"+e}else{t=e}return this.append({$replaceRoot:{newRoot:t}})};Aggregate.prototype.count=function(e){return this.append({$count:e})};Aggregate.prototype.sortByCount=function(e){if(e&&typeof e==="object"){return this.append({$sortByCount:e})}else if(typeof e==="string"){return this.append({$sortByCount:e&&e.startsWith("$")?e:"$"+e})}else{throw new TypeError('Invalid arg "'+e+'" to sortByCount(), '+"must be string or object")}};Aggregate.prototype.lookup=function(e){return this.append({$lookup:e})};Aggregate.prototype.graphLookup=function(e){const t={};if(e){if(!l.isObject(e)){throw new TypeError("Invalid graphLookup() argument. Must be an object.")}l.mergeClone(t,e);const r=t.startWith;if(r&&typeof r==="string"){t.startWith=t.startWith.startsWith("$")?t.startWith:"$"+t.startWith}}return this.append({$graphLookup:t})};Aggregate.prototype.sample=function(e){return this.append({$sample:{size:e}})};Aggregate.prototype.sort=function(e){const t={};if(s(e)==="Object"){const r=["desc","descending",-1];Object.keys(e).forEach((function(n){if(e[n]instanceof Object&&e[n].$meta){t[n]=e[n];return}t[n]=r.indexOf(e[n])===-1?1:-1}))}else if(arguments.length===1&&typeof e==="string"){e.split(/\s+/).forEach((function(e){if(!e){return}const r=e[0]==="-"?-1:1;if(r===-1){e=e.substring(1)}t[e]=r}))}else{throw new TypeError("Invalid sort() argument. Must be a string or object.")}return this.append({$sort:t})};Aggregate.prototype.unionWith=function(e){return this.append({$unionWith:e})};Aggregate.prototype.read=function(e,t){if(!this.options){this.options={}}d.call(this,e,t);return this};Aggregate.prototype.readConcern=function(e){if(!this.options){this.options={}}h.call(this,e);return this};Aggregate.prototype.redact=function(e,t,r){if(arguments.length===3){if(typeof t==="string"&&!t.startsWith("$$")||typeof r==="string"&&!r.startsWith("$$")){throw new Error("If thenExpr or elseExpr is string, it must start with $$. e.g. $$DESCEND, $$PRUNE, $$KEEP")}e={$cond:{if:e,then:t,else:r}}}else if(arguments.length!==1){throw new TypeError("Invalid arguments")}return this.append({$redact:e})};Aggregate.prototype.explain=function(e,t){const r=this._model;if(typeof e==="function"){t=e;e=null}return u(t,(t=>{if(!this._pipeline.length){const e=new Error("Aggregate has empty pipeline");return t(e)}a(this._pipeline,this._model.schema);r.hooks.execPre("aggregate",this,(n=>{if(n){const e={error:n};return r.hooks.execPost("aggregate",this,[null],e,(e=>{t(e)}))}r.collection.aggregate(this._pipeline,this.options,((n,i)=>{if(n!=null){const e={error:n};return r.hooks.execPost("aggregate",this,[null],e,(e=>{t(e)}))}if(e!=null){i.explain(e,((e,n)=>{const i={error:e};return r.hooks.execPost("aggregate",this,[n],i,(e=>{if(e){return t(e)}return t(null,n)}))}))}else{i.explain(((e,n)=>{const i={error:e};return r.hooks.execPost("aggregate",this,[n],i,(e=>{if(e){return t(e)}return t(null,n)}))}))}}))}))}),r.events)};Aggregate.prototype.allowDiskUse=function(e){this.options.allowDiskUse=e;return this};Aggregate.prototype.hint=function(e){this.options.hint=e;return this};Aggregate.prototype.session=function(e){if(e==null){delete this.options.session}else{this.options.session=e}return this};Aggregate.prototype.option=function(e){for(const t in e){this.options[t]=e[t]}return this};Aggregate.prototype.cursor=function(e){if(!this.options){this.options={}}this.options.cursor=e||{};return new n(this)};Aggregate.prototype.collation=function(e){if(!this.options){this.options={}}this.options.collation=e;return this};Aggregate.prototype.facet=function(e){return this.append({$facet:e})};Aggregate.prototype.search=function(e){return this.append({$search:e})};Aggregate.prototype.pipeline=function(){return this._pipeline};Aggregate.prototype.exec=function(e){if(!this._model){throw new Error("Aggregate not bound to any Model")}const t=this._model;const r=this._model.collection;o(this.options,t);if(this.options&&this.options.cursor){return new n(this)}return u(e,(e=>{a(this._pipeline,this._model.schema);c(this._pipeline);t.hooks.execPre("aggregate",this,(n=>{if(n){const r={error:n};return t.hooks.execPost("aggregate",this,[null],r,(t=>{e(t)}))}if(!this._pipeline.length){return e(new Error("Aggregate has empty pipeline"))}const i=l.clone(this.options||{});r.aggregate(this._pipeline,i,((r,n)=>{if(r!=null){return e(r)}n.toArray(((r,n)=>{const i={error:r};t.hooks.execPost("aggregate",this,[n],i,((t,r)=>{if(t){return e(t)}e(null,r)}))}))}))}))}),t.events)};Aggregate.prototype.then=function(e,t){return this.exec().then(e,t)};Aggregate.prototype.catch=function(e){return this.exec().then(null,e)};if(Symbol.asyncIterator!=null){Aggregate.prototype[Symbol.asyncIterator]=function(){return this.cursor({useMongooseAggCursor:true}).transformNull()._transformForAsyncIterator()}} /*! * Helpers */function isOperator(e){if(typeof e!=="object"){return false}const t=Object.keys(e);return t.length===1&&t.some((e=>e[0]==="$"))} /*! * Adds the appropriate `$match` pipeline step to the top of an aggregate's * pipeline, should it's model is a non-root discriminator type. This is * analogous to the `prepareDiscriminatorCriteria` function in `lib/query.js`. * * @param {Aggregate} aggregate Aggregate to prepare */Aggregate._prepareDiscriminatorPipeline=a; /*! * Exports */e.exports=Aggregate},26766:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(30754);const i=r(82361).EventEmitter;const o=r(88513);const s=r(27991);const a=r(69078);const u=o.ValidationError;const c=r(59342);const l=r(65295);function Document(e,t,r,i,u){if(!(this instanceof Document)){return new Document(e,t,r,i,u)}if(l(t)&&!t.instanceOfSchema){t=new s(t)}t=this.schema||t;if(!this.schema&&t.options._id){e=e||{};if(e._id===undefined){e._id=new a}}if(!t){throw new o.MissingSchemaError}this.$__setSchema(t);n.call(this,e,r,i,u);c(this,t,{decorateDoc:true});for(const e in t.methods){this[e]=t.methods[e]}for(const e in t.statics){this[e]=t.statics[e]}} /*! * Inherit from the NodeJS document */Document.prototype=Object.create(n.prototype);Document.prototype.constructor=Document; /*! * ignore */Document.events=new i; /*! * Browser doc exposes the event emitter API */Document.$emitter=new i;["on","once","emit","listeners","removeListener","setMaxListeners","removeAllListeners","addListener"].forEach((function(e){Document[e]=function(){return Document.$emitter[e].apply(Document.$emitter,arguments)}})); /*! * Module exports. */Document.ValidationError=u;e.exports=t=Document},15278:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(94498);const i=r(44197);const o=r(29735);const s=r(17727);const a=r(81102);const u=r(6709);const c=r(55716);const l=r(81711);const d=r(58356);const h=r(73837);const m=r(65295);const g=r(14637);const y=["Polygon","MultiPolygon"];e.exports=function cast(e,t,r,v){if(Array.isArray(t)){throw new Error("Query filter must be an object, got an array ",h.inspect(t))}if(t==null){return t}if(e!=null&&e.discriminators!=null&&t[e.options.discriminatorKey]!=null){e=l(e,t[e.options.discriminatorKey])||e}const b=Object.keys(t);let _=b.length;let E;let k;let x;let C;let O;let D;let B;r=r||{};while(_--){O=b[_];B=t[O];if(O==="$or"||O==="$nor"||O==="$and"){if(!Array.isArray(B)){throw new n("Array",B,O)}for(let t=0;t{"use strict";const n=r(94498); /*! * Given a value, cast it to a boolean, or throw a `CastError` if the value * cannot be casted. `null` and `undefined` are considered valid. * * @param {Any} value * @param {String} [path] optional the path to set on the CastError * @return {Boolean|null|undefined} * @throws {CastError} if `value` is not one of the allowed values * @api private */e.exports=function castBoolean(t,r){if(e.exports.convertToTrue.has(t)){return true}if(e.exports.convertToFalse.has(t)){return false}if(t==null){return t}throw new n("boolean",t,r)};e.exports.convertToTrue=new Set([true,"true",1,"1","yes"]);e.exports.convertToFalse=new Set([false,"false",0,"0","no"])},21175:(e,t,r)=>{"use strict";const n=r(39491);e.exports=function castDate(e){if(e==null||e===""){return null}if(e instanceof Date){n.ok(!isNaN(e.valueOf()));return e}let t;n.ok(typeof e!=="boolean");if(e instanceof Number||typeof e==="number"){t=new Date(e)}else if(typeof e==="string"&&!isNaN(Number(e))&&(Number(e)>=275761||Number(e)<-271820)){t=new Date(Number(e))}else if(typeof e.valueOf==="function"){t=new Date(e.valueOf())}else{t=new Date(e)}if(!isNaN(t.valueOf())){return t}n.ok(false)}},18164:(e,t,r)=>{"use strict";const n=r(43890);const i=r(39491);e.exports=function castDecimal128(e){if(e==null){return e}if(typeof e==="object"&&typeof e.$numberDecimal==="string"){return n.fromString(e.$numberDecimal)}if(e instanceof n){return e}if(typeof e==="string"){return n.fromString(e)}if(Buffer.isBuffer(e)){return new n(e)}if(typeof e==="number"){return n.fromString(String(e))}if(typeof e.valueOf==="function"&&typeof e.valueOf()==="string"){return n.fromString(e.valueOf())}i.ok(false)}},93054:(e,t,r)=>{"use strict";const n=r(39491); /*! * Given a value, cast it to a number, or throw a `CastError` if the value * cannot be casted. `null` and `undefined` are considered valid. * * @param {Any} value * @param {String} [path] optional the path to set on the CastError * @return {Boolean|null|undefined} * @throws {Error} if `value` is not one of the allowed values * @api private */e.exports=function castNumber(e){if(e==null){return e}if(e===""){return null}if(typeof e==="string"||typeof e==="boolean"){e=Number(e)}n.ok(!isNaN(e));if(e instanceof Number){return e.valueOf()}if(typeof e==="number"){return e}if(!Array.isArray(e)&&typeof e.valueOf==="function"){return Number(e.valueOf())}if(e.toString&&!Array.isArray(e)&&e.toString()==Number(e)){return Number(e)}n.ok(false)}},63441:(e,t,r)=>{"use strict";const n=r(71243).get().ObjectId;e.exports=function castObjectId(e){if(e==null){return e}if(e instanceof n){return e}if(e._id){if(e._id instanceof n){return e._id}if(e._id.toString instanceof Function){return new n(e._id.toString())}}if(e.toString instanceof Function){return new n(e.toString())}return new n(e)}},90851:(e,t,r)=>{"use strict";const n=r(94498); /*! * Given a value, cast it to a string, or throw a `CastError` if the value * cannot be casted. `null` and `undefined` are considered valid. * * @param {Any} value * @param {String} [path] optional the path to set on the CastError * @return {string|null|undefined} * @throws {CastError} * @api private */e.exports=function castString(e,t){if(e==null){return e}if(e._id&&typeof e._id==="string"){return e._id}if(e.toString&&e.toString!==Object.prototype.toString&&!Array.isArray(e)){return e.toString()}throw new n("string",e,t)}},23772:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(82361).EventEmitter;const i=r(88865);const o=r(64248);function Collection(e,t,r){if(r===void 0){r={}}if(r.capped===void 0){r.capped={}}if(typeof r.capped==="number"){r.capped={size:r.capped}}this.opts=r;this.name=e;this.collectionName=e;this.conn=t;this.queue=[];this.buffer=true;this.emitter=new n;if(i.connected===this.conn.readyState){this.onOpen()}}Collection.prototype.name;Collection.prototype.collectionName;Collection.prototype.conn;Collection.prototype.onOpen=function(){this.buffer=false;o((()=>this.doQueue()))};Collection.prototype.onClose=function(){};Collection.prototype.addQueue=function(e,t){this.queue.push([e,t]);return this};Collection.prototype.removeQueue=function(e,t){const r=this.queue.findIndex((r=>r[0]===e&&r[1]===t));if(r===-1){return false}this.queue.splice(r,1);return true};Collection.prototype.doQueue=function(){for(const e of this.queue){if(typeof e[0]==="function"){e[0].apply(this,e[1])}else{this[e[0]].apply(this,e[1])}}this.queue=[];const e=this;o((function(){e.emitter.emit("queue")}));return this};Collection.prototype.ensureIndex=function(){throw new Error("Collection#ensureIndex unimplemented by driver")};Collection.prototype.createIndex=function(){throw new Error("Collection#createIndex unimplemented by driver")};Collection.prototype.findAndModify=function(){throw new Error("Collection#findAndModify unimplemented by driver")};Collection.prototype.findOneAndUpdate=function(){throw new Error("Collection#findOneAndUpdate unimplemented by driver")};Collection.prototype.findOneAndDelete=function(){throw new Error("Collection#findOneAndDelete unimplemented by driver")};Collection.prototype.findOneAndReplace=function(){throw new Error("Collection#findOneAndReplace unimplemented by driver")};Collection.prototype.findOne=function(){throw new Error("Collection#findOne unimplemented by driver")};Collection.prototype.find=function(){throw new Error("Collection#find unimplemented by driver")};Collection.prototype.insert=function(){throw new Error("Collection#insert unimplemented by driver")};Collection.prototype.insertOne=function(){throw new Error("Collection#insertOne unimplemented by driver")};Collection.prototype.insertMany=function(){throw new Error("Collection#insertMany unimplemented by driver")};Collection.prototype.save=function(){throw new Error("Collection#save unimplemented by driver")};Collection.prototype.update=function(){throw new Error("Collection#update unimplemented by driver")};Collection.prototype.getIndexes=function(){throw new Error("Collection#getIndexes unimplemented by driver")};Collection.prototype.mapReduce=function(){throw new Error("Collection#mapReduce unimplemented by driver")};Collection.prototype.watch=function(){throw new Error("Collection#watch unimplemented by driver")}; /*! * ignore */Collection.prototype._shouldBufferCommands=function _shouldBufferCommands(){const e=this.opts;if(e.bufferCommands!=null){return e.bufferCommands}if(e&&e.schemaUserProvidedOptions!=null&&e.schemaUserProvidedOptions.bufferCommands!=null){return e.schemaUserProvidedOptions.bufferCommands}return this.conn._shouldBufferCommands()}; /*! * ignore */Collection.prototype._getBufferTimeoutMS=function _getBufferTimeoutMS(){const e=this.conn;const t=this.opts;if(t.bufferTimeoutMS!=null){return t.bufferTimeoutMS}if(t&&t.schemaUserProvidedOptions!=null&&t.schemaUserProvidedOptions.bufferTimeoutMS!=null){return t.schemaUserProvidedOptions.bufferTimeoutMS}if(e.config.bufferTimeoutMS!=null){return e.config.bufferTimeoutMS}if(e.base!=null&&e.base.get("bufferTimeoutMS")!=null){return e.base.get("bufferTimeoutMS")}return 1e4}; /*! * Module exports. */e.exports=Collection},29853:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(78233);const i=r(82361).EventEmitter;const o=r(27991);const s=r(71243).get().Collection;const a=r(88865);const u=r(88513);const c=r(73358);const l=r(35071);const d=r(30078);const h=r(7034);const m=r(43607);const g=r(6709);const y=r(64248);const v=r(13297);const b=r(4147);const _=r(52492);const E=r(47133);const k=r(63241).arrayAtomicsSymbol;const x=r(63241).sessionNewDocuments; /*! * A list of authentication mechanisms that don't require a password for authentication. * This is used by the authMechanismDoesNotRequirePassword method. * * @api private */const C=["MONGODB-X509"];function Connection(e){this.base=e;this.collections={};this.models={};this.config={};this.replica=false;this.options=null;this.otherDbs=[];this.relatedDbs={};this.states=a;this._readyState=a.disconnected;this._closeCalled=false;this._hasOpened=false;this.plugins=[];if(typeof e==="undefined"||!e.connections.length){this.id=0}else{this.id=e.connections.length}this._queue=[]} /*! * Inherit from EventEmitter */Connection.prototype.__proto__=i.prototype;Object.defineProperty(Connection.prototype,"readyState",{get:function(){return this._readyState},set:function(e){if(!(e in a)){throw new Error("Invalid connection state: "+e)}if(this._readyState!==e){this._readyState=e;for(const t of this.otherDbs){t.readyState=e}if(a.connected===e){this._hasOpened=true}this.emit(a[e])}}});Connection.prototype.get=function(e){if(this.config.hasOwnProperty(e)){return this.config[e]}return g(this.options,e)};Connection.prototype.set=function(e,t){if(this.config.hasOwnProperty(e)){this.config[e]=t;return t}this.options=this.options||{};this.options[e]=t;return t};Connection.prototype.collections;Connection.prototype.name;Connection.prototype.models;Connection.prototype.id;Object.defineProperty(Connection.prototype,"plugins",{configurable:false,enumerable:true,writable:true});Object.defineProperty(Connection.prototype,"host",{configurable:true,enumerable:true,writable:true});Object.defineProperty(Connection.prototype,"port",{configurable:true,enumerable:true,writable:true});Object.defineProperty(Connection.prototype,"user",{configurable:true,enumerable:true,writable:true});Object.defineProperty(Connection.prototype,"pass",{configurable:true,enumerable:true,writable:true});Connection.prototype.db;Connection.prototype.client;Connection.prototype.config;Connection.prototype.createCollection=_wrapConnHelper((function createCollection(e,t,r){if(typeof t==="function"){r=t;t={}}this.db.createCollection(e,t,r)}));Connection.prototype.startSession=_wrapConnHelper((function startSession(e,t){if(typeof e==="function"){t=e;e=null}const r=this.client.startSession(e);t(null,r)}));Connection.prototype.transaction=function transaction(e,t){return this.startSession().then((r=>{r[x]=new Map;return r.withTransaction((()=>e(r)),t).then((e=>{delete r[x];return e})).catch((e=>{for(const e of r[x].keys()){const t=r[x].get(e);if(t.hasOwnProperty("isNew")){e.$isNew=t.$isNew}if(t.hasOwnProperty("versionKey")){e.set(e.schema.options.versionKey,t.versionKey)}for(const r of t.modifiedPaths){e.$__.activePaths.paths[r]="modify";e.$__.activePaths.states.modify[r]=true}for(const r of t.atomics.keys()){const n=e.$__getValue(r);if(n==null){continue}n[k]=t.atomics.get(r)}}delete r[x];throw e})).finally((()=>{r.endSession().catch((()=>{}))}))}))};Connection.prototype.dropCollection=_wrapConnHelper((function dropCollection(e,t){this.db.dropCollection(e,t)}));Connection.prototype.dropDatabase=_wrapConnHelper((function dropDatabase(e){for(const e of Object.keys(this.models)){delete this.models[e].$init}this.db.dropDatabase(e)})); /*! * ignore */function _wrapConnHelper(e){return function(){const t=arguments.length>0?arguments[arguments.length-1]:null;const r=typeof t==="function"?Array.prototype.slice.call(arguments,0,arguments.length-1):Array.prototype.slice.call(arguments);const n=new u("Connection "+this.id+" was disconnected when calling `"+e.name+"`");return m(t,(t=>{y((()=>{if((this.readyState===a.connecting||this.readyState===a.disconnected)&&this._shouldBufferCommands()){this._queue.push({fn:e,ctx:this,args:r.concat([t])})}else if(this.readyState===a.disconnected&&this.db==null){t(n)}else{try{e.apply(this,r.concat([t]))}catch(e){return t(e)}}}))}))}} /*! * ignore */Connection.prototype._shouldBufferCommands=function _shouldBufferCommands(){if(this.config.bufferCommands!=null){return this.config.bufferCommands}if(this.base.get("bufferCommands")!=null){return this.base.get("bufferCommands")}return true};Connection.prototype.error=function(e,t){if(t){t(e);return null}if(this.listeners("error").length>0){this.emit("error",e)}return Promise.reject(e)};Connection.prototype.onOpen=function(){this.readyState=a.connected;for(const e of this._queue){e.fn.apply(e.ctx,e.args)}this._queue=[];for(const e in this.collections){if(_.object.hasOwnProperty(this.collections,e)){this.collections[e].onOpen()}}this.emit("open")};Connection.prototype.openUri=function(e,t,r){if(typeof t==="function"){r=t;t=null}if(["string","number"].indexOf(typeof t)!==-1){throw new u("Mongoose 5.x no longer supports "+"`mongoose.connect(host, dbname, port)` or "+"`mongoose.createConnection(host, dbname, port)`. See "+"http://mongoosejs.com/docs/connections.html for supported connection syntax")}if(typeof e!=="string"){throw new u("The `uri` parameter to `openUri()` must be a "+`string, got "${typeof e}". Make sure the first parameter to `+"`mongoose.connect()` or `mongoose.createConnection()` is a string.")}if(r!=null&&typeof r!=="function"){throw new u("3rd parameter to `mongoose.connect()` or "+'`mongoose.createConnection()` must be a function, got "'+typeof r+'"')}if(this.readyState===a.connecting||this.readyState===a.connected){if(this._connectionString!==e){throw new u("Can't call `openUri()` on an active connection with "+"different connection strings. Make sure you aren't calling `mongoose.connect()` "+"multiple times. See: https://mongoosejs.com/docs/connections.html#multiple_connections")}if(typeof r==="function"){this.$initialConnection=this.$initialConnection.then((()=>r(null,this)),(e=>r(e)))}return this}this._connectionString=e;this.readyState=a.connecting;this._closeCalled=false;const n=l.get();const i=this;t=E(e,t);if(t){t=_.clone(t);const e=t.config&&t.config.autoIndex!=null?t.config.autoIndex:t.autoIndex;if(e!=null){this.config.autoIndex=e!==false;delete t.config;delete t.autoIndex}if("autoCreate"in t){this.config.autoCreate=!!t.autoCreate;delete t.autoCreate}if("sanitizeFilter"in t){this.config.sanitizeFilter=t.sanitizeFilter;delete t.sanitizeFilter}if(t.user||t.pass){t.auth=t.auth||{};t.auth.username=t.user;t.auth.password=t.pass;this.user=t.user;this.pass=t.pass}delete t.user;delete t.pass;if(t.bufferCommands!=null){this.config.bufferCommands=t.bufferCommands;delete t.bufferCommands}}else{t={}}this._connectionOptions=t;const o=t.dbName;if(o!=null){this.$dbName=o}delete t.dbName;if(!_.hasUserDefinedProperty(t,"driverInfo")){t.driverInfo={name:"Mongoose",version:b.version}}const s=new n(((r,n)=>{let s;try{s=new v.MongoClient(e,t)}catch(e){i.readyState=a.disconnected;return n(e)}i.client=s;s.setMaxListeners(0);s.connect((e=>{if(e){return n(e)}_setClient(i,s,t,o);r(i)}))}));const c=new d;this.$initialConnection=s.then((()=>this)).catch((e=>{this.readyState=a.disconnected;if(e!=null&&e.name==="MongoServerSelectionError"){e=c.assimilateError(e)}if(this.listeners("error").length>0){y((()=>this.emit("error",e)))}throw e}));if(r!=null){this.$initialConnection=this.$initialConnection.then((()=>{r(null,this);return this}),(e=>r(e)))}return this.$initialConnection}; /*! * ignore */function _setClient(e,t,r,n){const i=n!=null?t.db(n):t.db();e.db=i;e.client=t;e.host=g(t,"s.options.hosts.0.host",void 0);e.port=g(t,"s.options.hosts.0.port",void 0);e.name=n!=null?n:g(t,"s.options.dbName",void 0);e._closeCalled=t._closeCalled;const _handleReconnect=()=>{if(e.readyState!==a.connected){e.readyState=a.connected;e.emit("reconnect");e.emit("reconnected");e.onOpen()}};const o=g(t,"topology.description.type","");if(o==="Single"){t.on("serverDescriptionChanged",(t=>{const r=t.newDescription;if(r.type==="Unknown"){e.readyState=a.disconnected}else{_handleReconnect()}}))}else if(o.startsWith("ReplicaSet")){t.on("topologyDescriptionChanged",(t=>{const r=t.newDescription;if(e.readyState===a.connected&&r.type!=="ReplicaSetWithPrimary"){e.readyState=a.disconnected}else if(e.readyState===a.disconnected&&r.type==="ReplicaSetWithPrimary"){_handleReconnect()}}))}e.onOpen();for(const t in e.collections){if(_.object.hasOwnProperty(e.collections,t)){e.collections[t].onOpen()}}}Connection.prototype.close=function(e,t){if(typeof e==="function"){t=e;e=false}this.$wasForceClosed=!!e;return m(t,(t=>{this._close(e,t)}))};Connection.prototype._close=function(e,t){const r=this;const n=this._closeCalled;this._closeCalled=true;if(this.client!=null){this.client._closeCalled=true}switch(this.readyState){case a.disconnected:if(n){t()}else{this.doClose(e,(function(n){if(n){return t(n)}r.onClose(e);t(null)}))}break;case a.connected:this.readyState=a.disconnecting;this.doClose(e,(function(n){if(n){return t(n)}r.onClose(e);t(null)}));break;case a.connecting:this.once("open",(function(){r.close(t)}));break;case a.disconnecting:this.once("close",(function(){t()}));break}return this};Connection.prototype.onClose=function(e){this.readyState=a.disconnected;for(const t in this.collections){if(_.object.hasOwnProperty(this.collections,t)){this.collections[t].onClose(e)}}this.emit("close",e);for(const t of this.otherDbs){t.close(e)}};Connection.prototype.collection=function(e,t){const r={autoIndex:this.config.autoIndex!=null?this.config.autoIndex:this.base.options.autoIndex,autoCreate:this.config.autoCreate!=null?this.config.autoCreate:this.base.options.autoCreate};t=Object.assign({},r,t?_.clone(t):{});t.$wasForceClosed=this.$wasForceClosed;if(!(e in this.collections)){this.collections[e]=new s(e,this,t)}return this.collections[e]};Connection.prototype.plugin=function(e,t){this.plugins.push([e,t]);return this};Connection.prototype.model=function(e,t,r,n){if(!(this instanceof Connection)){throw new u("`connection.model()` should not be run with "+"`new`. If you are doing `new db.model(foo)(bar)`, use "+"`db.model(foo)(bar)` instead")}let i;if(typeof e==="function"){i=e;e=i.name}if(typeof t==="string"){r=t;t=false}if(_.isObject(t)){if(!t.instanceOfSchema){t=new o(t)}else if(!(t instanceof this.base.Schema)){t=t._clone(this.base.Schema)}}if(t&&!t.instanceOfSchema){throw new Error("The 2nd parameter to `mongoose.model()` should be a "+"schema or a POJO")}const s={cache:false,overwriteModels:this.base.options.overwriteModels};const a=Object.assign(s,n,{connection:this});if(this.models[e]&&!r&&a.overwriteModels!==true){if(t&&t.instanceOfSchema&&t!==this.models[e].schema){throw new u.OverwriteModelError(e)}return this.models[e]}let c;if(t&&t.instanceOfSchema){h(t,this.plugins,null,"$connectionPluginsApplied");c=this.base._model(i||e,t,r,a);if(!this.models[e]){this.models[e]=c}c.init((function $modelInitNoop(){}));return c}if(this.models[e]&&r){c=this.models[e];t=c.prototype.schema;const n=c.__subclass(this,t,r);return n}if(!c){throw new u.MissingSchemaError(e)}if(this===c.prototype.db&&(!r||r===c.collection.name)){if(!this.models[e]){this.models[e]=c}return c}this.models[e]=c.__subclass(this,t,r);return this.models[e]};Connection.prototype.deleteModel=function(e){if(typeof e==="string"){const t=this.model(e);if(t==null){return this}const r=t.collection.name;delete this.models[e];delete this.collections[r];this.emit("deleteModel",t)}else if(e instanceof RegExp){const t=e;const r=this.modelNames();for(const e of r){if(t.test(e)){this.deleteModel(e)}}}else{throw new Error("First parameter to `deleteModel()` must be a string "+'or regexp, got "'+e+'"')}return this};Connection.prototype.watch=function(e,t){const r=new u("Connection "+this.id+" was disconnected when calling `watch()`");const changeStreamThunk=n=>{y((()=>{if(this.readyState===a.connecting){this.once("open",(function(){const r=this.db.watch(e,t);n(null,r)}))}else if(this.readyState===a.disconnected&&this.db==null){n(r)}else{const r=this.db.watch(e,t);n(null,r)}}))};const i=new n(changeStreamThunk,e,t);return i};Connection.prototype.asPromise=function asPromise(){return this.$initialConnection};Connection.prototype.modelNames=function(){return Object.keys(this.models)};Connection.prototype.shouldAuthenticate=function(){return this.user!=null&&(this.pass!=null||this.authMechanismDoesNotRequirePassword())};Connection.prototype.authMechanismDoesNotRequirePassword=function(){if(this.options&&this.options.auth){return C.indexOf(this.options.auth.authMechanism)>=0}return true};Connection.prototype.optionsProvideAuthenticationData=function(e){return e&&e.user&&(e.pass||this.authMechanismDoesNotRequirePassword())};Connection.prototype.getClient=function getClient(){return this.client};Connection.prototype.setClient=function setClient(e){if(!(e instanceof v.MongoClient)){throw new u("Must call `setClient()` with an instance of MongoClient")}if(this.readyState!==a.disconnected){throw new u("Cannot call `setClient()` on a connection that is already connected.")}if(e.topology==null){throw new u("Cannot call `setClient()` with a MongoClient that you have not called `connect()` on yet.")}this._connectionString=e.s.url;_setClient(this,e,{useUnifiedTopology:e.s.options.useUnifiedTopology},e.s.options.dbName);return this};Connection.prototype.syncIndexes=async function syncIndexes(e={}){const t={};const r={};const{continueOnError:n}=e;delete e.continueOnError;for(const i of Object.values(this.models)){try{t[i.modelName]=await i.syncIndexes(e)}catch(e){if(!n){r[i.modelName]=e;break}else{t[i.modelName]=e}}}if(!n&&Object.keys(r).length){const e=Object.entries(r).map((([e,t])=>`${e}: ${t.message}`)).join(", ");const t=new c(e,r);throw t}return t}; /*! * Module exports. */Connection.STATES=a;e.exports=Connection},88865:(e,t)=>{"use strict"; /*! * Connection states */const r=e.exports=t=Object.create(null);const n="disconnected";const i="connected";const o="connecting";const s="disconnecting";const a="uninitialized";r[0]=n;r[1]=i;r[2]=o;r[3]=s;r[99]=a;r[n]=0;r[i]=1;r[o]=2;r[s]=3;r[a]=99},60267:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(50598);const i=r(12781).Readable;const o=r(43607);const s=r(65686);const a=r(64248);const u=r(73837);function AggregationCursor(e){i.call(this,{autoDestroy:true,objectMode:true});this.cursor=null;this.agg=e;this._transforms=[];const t=e._model;delete e.options.cursor.useMongooseAggCursor;this._mongooseOptions={};_init(t,this,e)}u.inherits(AggregationCursor,i); /*! * ignore */function _init(e,t,r){if(!e.collection.buffer){e.hooks.execPre("aggregate",r,(function(){t.cursor=e.collection.aggregate(r._pipeline,r.options||{});t.emit("cursor",t.cursor)}))}else{e.collection.emitter.once("queue",(function(){e.hooks.execPre("aggregate",r,(function(){t.cursor=e.collection.aggregate(r._pipeline,r.options||{});t.emit("cursor",t.cursor)}))}))}} /*! * Necessary to satisfy the Readable API */AggregationCursor.prototype._read=function(){const e=this;_next(this,(function(t,r){if(t){return e.emit("error",t)}if(!r){e.push(null);e.cursor.close((function(t){if(t){return e.emit("error",t)}}));return}e.push(r)}))};if(Symbol.asyncIterator!=null){const e="Mongoose does not support using async iterators with an "+"existing aggregation cursor. See http://bit.ly/mongoose-async-iterate-aggregation";AggregationCursor.prototype[Symbol.asyncIterator]=function(){throw new n(e)}}AggregationCursor.prototype.map=function(e){this._transforms.push(e);return this}; /*! * Marks this cursor as errored */AggregationCursor.prototype._markError=function(e){this._error=e;return this};AggregationCursor.prototype.close=function(e){return o(e,(e=>{this.cursor.close((t=>{if(t){e(t);return this.listeners("error").length>0&&this.emit("error",t)}this.emit("close");e(null)}))}))};AggregationCursor.prototype.next=function(e){return o(e,(e=>{_next(this,e)}))};AggregationCursor.prototype.eachAsync=function(e,t,r){const n=this;if(typeof t==="function"){r=t;t={}}t=t||{};return s((function(e){return _next(n,e)}),e,t,r)};if(Symbol.asyncIterator!=null){AggregationCursor.prototype[Symbol.asyncIterator]=function(){return this.transformNull()._transformForAsyncIterator()}} /*! * ignore */AggregationCursor.prototype._transformForAsyncIterator=function(){if(this._transforms.indexOf(_transformForAsyncIterator)===-1){this.map(_transformForAsyncIterator)}return this}; /*! * ignore */AggregationCursor.prototype.transformNull=function(e){if(arguments.length===0){e=true}this._mongooseOptions.transformNull=e;return this}; /*! * ignore */function _transformForAsyncIterator(e){return e==null?{done:true}:{value:e,done:false}}AggregationCursor.prototype.addCursorFlag=function(e,t){const r=this;_waitForCursor(this,(function(){r.cursor.addCursorFlag(e,t)}));return this}; /*! * ignore */function _waitForCursor(e,t){if(e.cursor){return t()}e.once("cursor",(function(){t()}))} /*! * Get the next doc from the underlying cursor and mongooseify it * (populate, etc.) */function _next(e,t){let r=t;if(e._transforms.length){r=function(r,n){if(r||n===null&&!e._mongooseOptions.transformNull){return t(r,n)}t(r,e._transforms.reduce((function(e,t){return t(e)}),n))}}if(e._error){return a((function(){r(e._error)}))}if(e.cursor){return e.cursor.next((function(e,t){if(e){return r(e)}if(!t){return r(null,null)}r(null,t)}))}else{e.once("cursor",(function(){_next(e,t)}))}}e.exports=AggregationCursor},78233:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(82361).EventEmitter; /*! * ignore */class ChangeStream extends n{constructor(e,t,r){super();this.driverChangeStream=null;this.closed=false;this.pipeline=t;this.options=r;e(((e,t)=>{if(e!=null){this.emit("error",e);return}this.driverChangeStream=t;this._bindEvents();this.emit("ready")}))}_bindEvents(){this.driverChangeStream.on("close",(()=>{this.closed=true}));["close","change","end","error"].forEach((e=>{this.driverChangeStream.on(e,(t=>this.emit(e,t)))}))}_queue(e){this.once("ready",(()=>e()))}close(){this.closed=true;if(this.driverChangeStream){this.driverChangeStream.close()}}} /*! * ignore */e.exports=ChangeStream},4222:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(12781).Readable;const i=r(43607);const o=r(65686);const s=r(67579);const a=r(64248);const u=r(73837);function QueryCursor(e,t){n.call(this,{autoDestroy:true,objectMode:true});this.cursor=null;this.query=e;const r=this;const i=e.model;this._mongooseOptions={};this._transforms=[];this.model=i;this.options=t||{};i.hooks.execPre("find",e,(n=>{if(n!=null){r._markError(n);r.listeners("error").length>0&&r.emit("error",n);return}this._transforms=this._transforms.concat(e._transforms.slice());if(this.options.transform){this._transforms.push(t.transform)}if(this.options.batchSize){this.options.cursor=t.cursor||{};this.options.cursor.batchSize=t.batchSize;this.options._populateBatchSize=Math.min(this.options.batchSize,5e3)}i.collection.find(e._conditions,this.options,((e,t)=>{if(e!=null){r._markError(e);r.listeners("error").length>0&&r.emit("error",r._error);return}if(r._error){t.close((function(){}));r.listeners("error").length>0&&r.emit("error",r._error)}r.cursor=t;r.emit("cursor",t)}))}))}u.inherits(QueryCursor,n); /*! * Necessary to satisfy the Readable API */QueryCursor.prototype._read=function(){const e=this;_next(this,(function(t,r){if(t){return e.emit("error",t)}if(!r){e.push(null);e.cursor.close((function(t){if(t){return e.emit("error",t)}}));return}e.push(r)}))};QueryCursor.prototype.map=function(e){this._transforms.push(e);return this}; /*! * Marks this cursor as errored */QueryCursor.prototype._markError=function(e){this._error=e;return this};QueryCursor.prototype.close=function(e){return i(e,(e=>{this.cursor.close((t=>{if(t){e(t);return this.listeners("error").length>0&&this.emit("error",t)}this.emit("close");e(null)}))}),this.model.events)};QueryCursor.prototype.next=function(e){return i(e,(e=>{_next(this,(function(t,r){if(t){return e(t)}e(null,r)}))}),this.model.events)};QueryCursor.prototype.eachAsync=function(e,t,r){const n=this;if(typeof t==="function"){r=t;t={}}t=t||{};return o((function(e){return _next(n,e)}),e,t,r)};QueryCursor.prototype.options;QueryCursor.prototype.addCursorFlag=function(e,t){const r=this;_waitForCursor(this,(function(){r.cursor.addCursorFlag(e,t)}));return this}; /*! * ignore */QueryCursor.prototype.transformNull=function(e){if(arguments.length===0){e=true}this._mongooseOptions.transformNull=e;return this}; /*! * ignore */QueryCursor.prototype._transformForAsyncIterator=function(){if(this._transforms.indexOf(_transformForAsyncIterator)===-1){this.map(_transformForAsyncIterator)}return this};if(Symbol.asyncIterator!=null){QueryCursor.prototype[Symbol.asyncIterator]=function(){return this.transformNull()._transformForAsyncIterator()}} /*! * ignore */function _transformForAsyncIterator(e){return e==null?{done:true}:{value:e,done:false}} /*! * Get the next doc from the underlying cursor and mongooseify it * (populate, etc.) */function _next(e,t){let r=t;if(e._transforms.length){r=function(r,n){if(r||n===null&&!e._mongooseOptions.transformNull){return t(r,n)}t(r,e._transforms.reduce((function(t,r){return r.call(e,t)}),n))}}if(e._error){return a((function(){r(e._error)}))}if(e.cursor){if(e.query._mongooseOptions.populate&&!e._pop){e._pop=s.preparePopulationOptionsMQ(e.query,e.query._mongooseOptions);e._pop.__noPromise=true}if(e.query._mongooseOptions.populate&&e.options._populateBatchSize>1){if(e._batchDocs&&e._batchDocs.length){return _nextDoc(e,e._batchDocs.shift(),e._pop,r)}else if(e._batchExhausted){return r(null,null)}else{e._batchDocs=[];return e.cursor.next(_onNext.bind({ctx:e,callback:r}))}}else{return e.cursor.next((function(t,n){if(t){return r(t)}if(!n){return r(null,null)}if(!e.query._mongooseOptions.populate){return _nextDoc(e,n,null,r)}e.query.model.populate(n,e._pop,(function(t,n){if(t){return r(t)}return _nextDoc(e,n,e._pop,r)}))}))}}else{e.once("error",t);e.once("cursor",(function(r){e.removeListener("error",t);if(r==null){return}_next(e,t)}))}} /*! * ignore */function _onNext(e,t){if(e){return this.callback(e)}if(!t){this.ctx._batchExhausted=true;return _populateBatch.call(this)}this.ctx._batchDocs.push(t);if(this.ctx._batchDocs.length0&&this.ctx._batchDocs.length%1e3===0){return a((()=>this.ctx.cursor.next(_onNext.bind(this))))}this.ctx.cursor.next(_onNext.bind(this))}else{_populateBatch.call(this)}} /*! * ignore */function _populateBatch(){if(!this.ctx._batchDocs.length){return this.callback(null,null)}const e=this;this.ctx.query.model.populate(this.ctx._batchDocs,this.ctx._pop,(function(t){if(t){return e.callback(t)}_nextDoc(e.ctx,e.ctx._batchDocs.shift(),e.ctx._pop,e.callback)}))} /*! * ignore */function _nextDoc(e,t,r,n){if(e.query._mongooseOptions.lean){return e.model.hooks.execPost("find",e.query,[[t]],(e=>{if(e!=null){return n(e)}n(null,t)}))}e.query._completeOne(t,null,((t,r)=>{if(t!=null){return n(t)}e.model.hooks.execPost("find",e.query,[[r]],(e=>{if(e!=null){return n(e)}n(null,r)}))}))} /*! * ignore */function _waitForCursor(e,t){if(e.cursor){return t()}e.once("cursor",(function(e){if(e==null){return}t()}))}e.exports=QueryCursor},30754:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(82361).EventEmitter;const i=r(63902);const o=r(88513);const s=r(9902);const a=r(71449);const u=r(10625);const c=r(54680);const l=r(27991);const d=r(44197);const h=r(83793);const m=r(94528);const g=r(94198);const y=r(43607);const v=r(47339);const b=r(99882).M;const _=r(99882).c;const E=r(8207).x;const k=r(48854);const x=r(6709);const C=r(32411);const O=r(36908);const D=r(31038);const B=r(64248);const P=r(72866);const I=r(60257);const R=r(73837).inspect;const N=r(28561).h;const $=r(54996);const L=r(22522);const q=r(67579);const z=r(52492);const U=r(70159);const V=z.clone;const W=z.deepEqual;const G=z.isMongooseObject;const Q=r(63241).arrayAtomicsBackupSymbol;const Y=r(63241).arrayAtomicsSymbol;const J=r(63241).documentArrayParent;const X=r(63241).documentIsModified;const ee=r(63241).documentModifiedPaths;const te=r(63241).documentSchemaSymbol;const re=r(63241).getSymbol;const ne=r(63241).populateModelSymbol;const ie=r(63241).scopeSymbol;const oe=r(11035).schemaMixedSymbol;const se=r(75254);let ae;let ue;let ce;const le=z.specialProperties;function Document(e,t,r,n){if(typeof r==="object"&&r!=null){n=r;r=n.skipId}n=Object.assign({},n);if(this.$__schema==null){const e=z.isObject(t)&&!t.instanceOfSchema?new l(t):t;this.$__setSchema(e);t=r;r=n;n=arguments[4]||{}}this.$__=new i;this.$isNew="isNew"in n?n.isNew:true;if("priorDoc"in n){this.$__.priorDoc=n.priorDoc}if(r){this.$__.skipId=r}if(e!=null&&typeof e!=="object"){throw new u(e,"obj","Document")}let o=true;if(n.defaults!==undefined){this.$__.defaults=n.defaults;o=n.defaults}const s=this.$__schema;if(typeof t==="boolean"||t==="throw"){this.$__.strictMode=t;t=undefined}else{this.$__.strictMode=s.options.strict;if(t!==undefined){this.$__.selected=t}}const a=s.requiredPaths(true);for(const e of a){this.$__.activePaths.require(e)}let c=null;if(z.isPOJO(t)){c=I(t);this.$__.fields=t;this.$__.exclude=c}const d=c===false&&t?$__hasIncludedChildren(t):{};if(this._doc==null){this.$__buildDoc(e,t,r,c,d,false);if(o){$__applyDefaults(this,t,c,d,true,{isNew:this.$isNew})}}if(e){if(this.$__original_set){this.$__original_set(e,undefined,true)}else{this.$set(e,undefined,true)}if(e instanceof Document){this.$isNew=e.$isNew}}if(n.willInit&&o){if(n.skipDefaults){this.$__.skipDefaults=n.skipDefaults}}else if(o){$__applyDefaults(this,t,c,d,false,n.skipDefaults,{isNew:this.$isNew})}this.$__._id=this._id;if(!this.$__.strictMode&&e){const e=this;const t=Object.keys(this._doc);t.forEach((function(t){if(!(t in s.tree)&&!(t in s.methods)&&!(t in s.virtuals)&&!t.startsWith("$")){_({prop:t,subprops:null,prototype:e})}}))}applyQueue(this)}Object.defineProperty(Document.prototype,"isNew",{get:function(){return this.$isNew},set:function(e){this.$isNew=e}});Object.defineProperty(Document.prototype,"errors",{get:function(){return this.$errors},set:function(e){this.$errors=e}}); /*! * Document exposes the NodeJS event emitter API, so you can use * `on`, `once`, etc. */z.each(["on","once","emit","listeners","removeListener","setMaxListeners","removeAllListeners","addListener"],(function(e){Document.prototype[e]=function(){if(!this.$__.emitter){if(e==="emit"){return}this.$__.emitter=new n;this.$__.emitter.setMaxListeners(0)}return this.$__.emitter[e].apply(this.$__.emitter,arguments)};Document.prototype[`$${e}`]=Document.prototype[e]}));Document.prototype.constructor=Document;for(const e in n.prototype){Document[e]=n.prototype[e]}Document.prototype.$__schema;Document.prototype.schema;Object.defineProperty(Document.prototype,"$locals",{configurable:false,enumerable:false,get:function(){if(this.$__.locals==null){this.$__.locals={}}return this.$__.locals},set:function(e){this.$__.locals=e}});Document.prototype.$isNew;Document.prototype.isNew;Object.defineProperty(Document.prototype,"$where",{configurable:false,enumerable:false,writable:true});Document.prototype.id;Document.prototype.$errors;Document.prototype.errors;Object.defineProperty(Document.prototype,"$op",{get:function(){return this.$__.op||null},set:function(e){this.$__.op=e}}); /*! * ignore */function $__hasIncludedChildren(e){const t={};const r=Object.keys(e);for(const e of r){if(e.indexOf(".")===-1){t[e]=1;continue}const r=e.split(".");let n=r[0];for(let e=0;e!e.includes("$*")));const a=s.length;let u=0;for(;u{this.constructor._middleware.execPre("updateOne",this,[this],e)}));n.post((e=>{this.constructor._middleware.execPost("updateOne",this,[this],{},e)}));if(this.$session()!=null){if(!("session"in n.options)){n.options.session=this.$session()}}if(r!=null){return n.exec(r)}return n};Document.prototype.replaceOne=function replaceOne(){const e=[...arguments];e.unshift({_id:this._id});return this.constructor.replaceOne.apply(this.constructor,e)};Document.prototype.$session=function $session(e){if(arguments.length===0){if(this.$__.session!=null&&this.$__.session.hasEnded){this.$__.session=null;return null}return this.$__.session}if(e!=null&&e.hasEnded){throw new o("Cannot set a document's session to a session that has ended. Make sure you haven't "+"called `endSession()` on the session you are passing to `$session()`.")}if(e==null&&this.$__.session==null){return}this.$__.session=e;if(!this.$isSubdocument){const t=this.$getAllSubdocs();for(const r of t){r.$session(e)}}return e};Document.prototype.overwrite=function overwrite(e){const t=Array.from(new Set(Object.keys(this._doc).concat(Object.keys(e))));for(const r of t){if(r==="_id"){continue}if(this.$__schema.options.versionKey&&r===this.$__schema.options.versionKey){continue}if(this.$__schema.options.discriminatorKey&&r===this.$__schema.options.discriminatorKey){continue}this.$set(r,e[r])}return this};Document.prototype.$set=function $set(e,t,r,n){if(z.isPOJO(r)){n=r;r=undefined}n=n||{};const i=n.merge;const u=r&&r!==true;const c=r===true;const l=this.$__schema.options.typeKey;let h;let m;let g=0;let y;let b;let _;const E="strict"in n?n.strict:this.$__.strictMode;if(u){h=this.$__.adhocPaths||(this.$__.adhocPaths={});h[e]=this.$__schema.interpretAsType(e,r,this.$__schema.options)}if(e==null){[e,t]=[t,e]}else if(typeof e!=="string"){if(e instanceof Document){if(e.$__isNested){e=e.toObject()}else{e=e._doc}}if(e==null){[e,t]=[t,e]}_=t?t+".":"";m=O(this.$__schema,e);const i=m.length;const o=x(n,"_skipMinimizeTopLevel",false);if(i===0&&o){delete n._skipMinimizeTopLevel;if(t){this.$set(t,{})}return this}for(let t=0;t{if(this.$__.priorDoc!=null){return this.$__.priorDoc.$__getValue(e)}if(c){return void 0}return this.$__getValue(e)})();if(k==="nested"&&t){if(typeof t==="object"&&t!=null){if(t.$__!=null){t=t.toObject(N)}if(t==null){this.invalidate(e,new o.CastError("Object",t,e));return this}const r=this.$__.savedState!=null&&this.$__.savedState.hasOwnProperty(e);if(this.$__.savedState!=null&&!this.$isNew&&!this.$__.savedState.hasOwnProperty(e)){const t=this.$__getValue(e);this.$__.savedState[e]=t;const r=Object.keys(t||{});for(const n of r){this.$__.savedState[e+"."+n]=t[n]}}if(!i){this.$__setValue(e,null);v(this,e)}else{return this.$set(t,e,c)}const s=O(this.$__schema,t,e);this.$__setValue(e,{});for(const r of s){this.$set(e+"."+r,t[r],c,n)}if(B!=null&&z.deepEqual(r?this.$__.savedState[e]:B,t)){this.unmarkModified(e)}else{this.markModified(e)}v(this,e,{skipDocArrays:true});return this}this.invalidate(e,new o.CastError("Object",t,e));return this}let P;const I=e.indexOf(".")===-1?[e]:e.split(".");if(typeof this.$__schema.aliases[I[0]]=="string"){I[0]=this.$__schema.aliases[I[0]]}if(k==="adhocOrUndefined"&&E){let r;for(g=0;g{if(P.options==null){return false}if(!(t instanceof Document)){return false}const e=t.constructor;const r=P.options.ref;if(r!=null&&(r===e.modelName||r===e.baseModelName)){return true}const n=P.options.refPath;if(n==null){return false}const i=t.get(n);return i===e.modelName||i===e.baseModelName})();let n=false;if(r&&t instanceof Document){this.$populated(e,t._id,{[ne]:t.constructor});t.$__.wasPopulated=true;n=true}let i;if(P.options&&Array.isArray(P.options[l])&&P.options[l].length&&P.options[l][0].ref&&_isManuallyPopulatedArray(t,P.options[l][0].ref)){i={[ne]:t[0].constructor};this.$populated(e,t.map((function(e){return e._id})),i);for(const e of t){e.$__.wasPopulated=true}n=true}if(this.$__schema.singleNestedPaths[e]==null&&(!r||!P.$isSingleNested||!t.$__)){t=P.applySetters(t,this,false,B)}if(Array.isArray(t)&&!Array.isArray(P)&&P.$isMongooseDocumentArray&&t.length!==0&&t[0]!=null&&t[0].$__!=null&&t[0].$__.populated!=null){const r=Object.keys(t[0].$__.populated);for(const n of r){this.$populated(e+"."+n,t.map((e=>e.$populated(n))),t[0].$__.populated[n].options)}n=true}if(!n&&this.$__.populated){if(Array.isArray(t)&&this.$__.populated[e]){for(let e=0;e{e.isNew=false}))}}let d=this._doc;let h=0;const m=o.length;let g="";for(;hthis.$__.activePaths.states.default.hasOwnProperty(e)))};Document.prototype.$isDeleted=function(e){if(arguments.length===0){return!!this.$__.isDeleted}this.$__.isDeleted=!!e;return this};Document.prototype.isDirectModified=function(e){if(e==null){return this.$__.activePaths.some("modify")}if(typeof e==="string"&&e.indexOf(" ")===-1){return this.$__.activePaths.states.modify.hasOwnProperty(e)}let t=e;if(!Array.isArray(t)){t=t.split(" ")}return t.some((e=>this.$__.activePaths.states.modify.hasOwnProperty(e)))};Document.prototype.isInit=function(e){if(e==null){return this.$__.activePaths.some("init")}if(typeof e==="string"&&e.indexOf(" ")===-1){return this.$__.activePaths.states.init.hasOwnProperty(e)}let t=e;if(!Array.isArray(t)){t=t.split(" ")}return t.some((e=>this.$__.activePaths.states.init.hasOwnProperty(e)))};Document.prototype.isSelected=function isSelected(e){if(this.$__.selected==null){return true}if(!e){return false}if(e==="_id"){return this.$__.selected._id!==0}if(e.indexOf(" ")!==-1){e=e.split(" ")}if(Array.isArray(e)){return e.some((e=>this.$__isSelected(e)))}const t=Object.keys(this.$__.selected);let r=null;if(t.length===1&&t[0]==="_id"){return this.$__.selected._id===0}for(const e of t){if(e==="_id"){continue}if(!P(this.$__.selected[e])){continue}r=!!this.$__.selected[e];break}if(r===null){return true}if(e in this.$__.selected){return r}const n=e+".";for(const e of t){if(e==="_id"){continue}if(e.startsWith(n)){return r||e!==n}if(n.startsWith(e+".")){return r}}return!r};Document.prototype.$__isSelected=Document.prototype.isSelected;Document.prototype.isDirectSelected=function isDirectSelected(e){if(this.$__.selected==null){return true}if(e==="_id"){return this.$__.selected._id!==0}if(e.indexOf(" ")!==-1){e=e.split(" ")}if(Array.isArray(e)){return e.some((e=>this.isDirectSelected(e)))}const t=Object.keys(this.$__.selected);let r=null;if(t.length===1&&t[0]==="_id"){return this.$__.selected._id===0}for(const e of t){if(e==="_id"){continue}if(!P(this.$__.selected[e])){continue}r=!!this.$__.selected[e];break}if(r===null){return true}if(this.$__.selected.hasOwnProperty(e)){return r}return!r};Document.prototype.validate=function(e,t,r){let n;this.$op="validate";if(this.$isSubdocument!=null){}else if(this.$__.validating){n=new c(this,{parentStack:t&&t.parentStack,conflictStack:this.$__.validating.stack})}else{this.$__.validating=new c(this,{parentStack:t&&t.parentStack})}if(arguments.length===1){if(typeof arguments[0]==="object"&&!Array.isArray(arguments[0])){t=arguments[0];r=null;e=null}else if(typeof arguments[0]==="function"){r=arguments[0];t=null;e=null}}else if(typeof e==="function"){r=e;t=null;e=null}else if(typeof t==="function"){r=t;t=e;e=null}if(t&&typeof t.pathsToSkip==="string"){const e=t.pathsToSkip.indexOf(" ")===-1;t.pathsToSkip=e?[t.pathsToSkip]:t.pathsToSkip.split(" ")}return y(r,(r=>{if(n!=null){return r(n)}this.$__validate(e,t,(e=>{this.$op=null;r(e)}))}),this.constructor.events)};Document.prototype.$validate=Document.prototype.validate; /*! * ignore */function _evaluateRequiredFunctions(e){const t=Object.keys(e.$__.activePaths.states.require);let r=0;const n=t.length;for(r=0;r{let e=this.$__.validationError;this.$__.validationError=undefined;if(s&&e!=null){const t=Object.keys(e.errors);for(const r of t){if(!this.$isModified(r)){delete e.errors[r]}}if(Object.keys(e.errors).length===0){e=void 0}}this.$__.cachedRequired={};this.$emit("validate",a);this.constructor.emit("validate",a);if(e){for(const t in e.errors){if(!this[J]&&e.errors[t]instanceof o.CastError){this.invalidate(t,e.errors[t])}}return e}};const u=_getPathsToValidate(this);let c=s?u[0].filter((e=>this.$isModified(e))):u[0];const l=u[1];if(typeof e==="string"){e=e.split(" ")}if(Array.isArray(e)){c=_handlePathsToValidate(c,e)}else if(i){c=_handlePathsToSkip(c,i)}if(c.length===0){return B((function(){const e=_complete();if(e){return a.$__schema.s.hooks.execPost("validate:error",a,[a],{error:e},(function(e){r(e)}))}r(null,a)}))}const d={};let m=0;for(const e of c){validatePath(e)}function validatePath(e){if(e==null||d[e]){return}d[e]=true;m++;B((function(){const t=a.$__schema.path(e);if(!t){return--m||complete()}if(!a.$isValid(e)){--m||complete();return}if(t[oe]!=null&&e!==t.path){return--m||complete()}let r=a.$__getValue(e);let n;if(n=a.$populated(e)){r=n}else if(r!=null&&r.$__!=null&&r.$__.wasPopulated){r=r._id}const i=a.$__.pathsToScopes!=null&&e in a.$__.pathsToScopes?a.$__.pathsToScopes[e]:a;const o={skipSchemaValidators:l[e],path:e,validateModifiedOnly:s};t.doValidate(r,(function(r){if(r){const n=t.$isSingleNested||t.$isArraySubdocument||t.$isMongooseDocumentArray;if(n&&r instanceof h){return--m||complete()}a.invalidate(e,r,undefined,true)}--m||complete()}),i,o)}))}function complete(){const e=_complete();if(e){return a.$__schema.s.hooks.execPost("validate:error",a,[a],{error:e},(function(e){r(e)}))}r(null,a)}}; /*! * ignore */function _handlePathsToValidate(e,t){const r=new Set(t);const n=new Map([]);for(const e of t){if(e.indexOf(".")===-1){continue}const t=e.split(".");let r=t[0];for(let i=1;i!t.has(e)));return e}Document.prototype.validateSync=function(e,t){const r=this;if(arguments.length===1&&typeof arguments[0]==="object"&&!Array.isArray(arguments[0])){t=arguments[0];e=null}const n=t&&typeof t==="object"&&"validateModifiedOnly"in t;let i;if(n){i=!!t.validateModifiedOnly}else{i=this.$__schema.options.validateModifiedOnly}let s=t&&t.pathsToSkip;if(typeof e==="string"){const t=e.indexOf(" ")===-1;e=t?[e]:e.split(" ")}else if(typeof s==="string"&&s.indexOf(" ")!==-1){s=s.split(" ")}const a=_getPathsToValidate(this);let u=i?a[0].filter((e=>this.$isModified(e))):a[0];const c=a[1];if(Array.isArray(e)){u=_handlePathsToValidate(u,e)}else if(Array.isArray(s)){u=_handlePathsToSkip(u,s)}const l={};u.forEach((function(e){if(l[e]){return}l[e]=true;const t=r.$__schema.path(e);if(!t){return}if(!r.$isValid(e)){return}const n=r.$__getValue(e);const o=t.doValidateSync(n,r,{skipSchemaValidators:c[e],path:e,validateModifiedOnly:i});if(o){const n=t.$isSingleNested||t.$isArraySubdocument||t.$isMongooseDocumentArray;if(n&&o instanceof h){return}r.invalidate(e,o,undefined,true)}}));const d=r.$__.validationError;r.$__.validationError=undefined;r.$emit("validate",r);r.constructor.emit("validate",r);if(d){for(const e in d.errors){if(d.errors[e]instanceof o.CastError){r.invalidate(e,d.errors[e])}}}return d};Document.prototype.invalidate=function(e,t,r,n){if(!this.$__.validationError){this.$__.validationError=new h(this)}if(this.$__.validationError.errors[e]){return}if(!t||typeof t==="string"){t=new m({path:e,message:t,type:n||"user defined",value:r})}if(this.$__.validationError===t){return this.$__.validationError}this.$__.validationError.addError(e,t);return this.$__.validationError};Document.prototype.$markValid=function(e){if(!this.$__.validationError||!this.$__.validationError.errors[e]){return}delete this.$__.validationError.errors[e];if(Object.keys(this.$__.validationError.errors).length===0){this.$__.validationError=null}}; /*! * ignore */function _markValidSubpaths(e,t){if(!e.$__.validationError){return}const r=Object.keys(e.$__.validationError.errors);for(const n of r){if(n.startsWith(t+".")){delete e.$__.validationError.errors[n]}}if(Object.keys(e.$__.validationError.errors).length===0){e.$__.validationError=null}} /*! * ignore */function _checkImmutableSubpaths(e,t,r){const n=t.schema;if(n==null){return}for(const t of Object.keys(n.paths)){const i=n.paths[t];if(i.$immutableSetter==null){continue}const o=r==null?void 0:r.$__getValue(t);i.$immutableSetter.call(e,o)}}Document.prototype.$isValid=function(e){if(this.$__.validationError==null||Object.keys(this.$__.validationError.errors).length===0){return true}if(e==null){return false}if(e.indexOf(" ")!==-1){e=e.split(" ")}if(Array.isArray(e)){return e.some((e=>this.$__.validationError.errors[e]==null))}return this.$__.validationError.errors[e]==null};Document.prototype.$__reset=function reset(){let e=this;ae||(ae=r(99211));this.$__.activePaths.map("init","modify",(function(t){return e.$__getValue(t)})).filter((function(e){return e&&e instanceof Array&&z.isMongooseDocumentArray(e)&&e.length})).forEach((function(t){let r=t.length;while(r--){const e=t[r];if(!e){continue}e.$__reset()}e.$__.activePaths.init(t.$path());t[Q]=t[Y];t[Y]={}}));this.$__.activePaths.map("init","modify",(function(t){return e.$__getValue(t)})).filter((function(e){return e&&!Array.isArray(e)&&e.$isSingleNested})).forEach((function(t){t.$__reset();if(t.$parent()===e){e.$__.activePaths.init(t.$basePath)}else if(t.$parent()!=null&&t.$parent().$isSubdocument){t.$parent().$__reset()}}));this.$__dirty().forEach((function(e){const t=e.value;if(t&&t[Y]){t[Q]=t[Y];t[Y]={}}}));this.$__.backup={};this.$__.backup.activePaths={modify:Object.assign({},this.$__.activePaths.states.modify),default:Object.assign({},this.$__.activePaths.states.default)};this.$__.backup.validationError=this.$__.validationError;this.$__.backup.errors=this.$errors;this.$__.activePaths.clear("modify");this.$__.activePaths.clear("default");this.$__.validationError=undefined;this.$errors=undefined;e=this;this.$__schema.requiredPaths().forEach((function(t){e.$__.activePaths.require(t)}));return this}; /*! * ignore */Document.prototype.$__undoReset=function $__undoReset(){if(this.$__.backup==null||this.$__.backup.activePaths==null){return}this.$__.activePaths.states.modify=this.$__.backup.activePaths.modify;this.$__.activePaths.states.default=this.$__.backup.activePaths.default;this.$__.validationError=this.$__.backup.validationError;this.$errors=this.$__.backup.errors;for(const e of this.$__dirty()){const t=e.value;if(t&&t[Y]&&t[Q]){t[Y]=t[Q]}}for(const e of this.$getAllSubdocs()){e.$__undoReset()}};Document.prototype.$__dirty=function(){const e=this;let t=this.$__.activePaths.map("modify",(function(t){return{path:t,value:e.$__getValue(t),schema:e.$__path(t)}}));t=t.concat(this.$__.activePaths.map("default",(function(t){if(t==="_id"||e.$__getValue(t)==null){return}return{path:t,value:e.$__getValue(t),schema:e.$__path(t)}})));const r=new Map(t.filter((e=>e!=null)).map((e=>[e.path,e.value])));const n=[];t.forEach((function(e){if(!e){return}let t=null;const i=se(e.path);for(let e=0;e{if(t.options==null){t.options={session:e};return}if(!("session"in t.options)){t.options.session=e}}))}n.forEach((e=>{e._localModel=i}));return i.populate(this,n,r)};Document.prototype.$getPopulatedDocs=function $getPopulatedDocs(){let e=[];if(this.$__.populated!=null){e=e.concat(Object.keys(this.$__.populated))}let t=[];for(const r of e){const e=this.$get(r);if(Array.isArray(e)){t=t.concat(e)}else if(e instanceof Document){t.push(e)}}return t};Document.prototype.populated=function(e,t,r){if(t==null||t===true){if(!this.$__.populated){return undefined}if(typeof e!=="string"){return undefined}const r=e.endsWith(".$*")?e.replace(/\.\$\*$/,""):e;const n=this.$__.populated[r];if(n){return t===true?n:n.value}return undefined}this.$__.populated||(this.$__.populated={});this.$__.populated[e]={value:t,options:r};const n=e.split(".");for(let e=0;e{"use strict"; /*! * Module dependencies. */const n=r(30754);const i=r(26766);let o=false;e.exports=function(){if(o){return i}return n}; /*! * ignore */e.exports.setBrowser=function(e){o=e}},71243:e=>{"use strict"; /*! * ignore */let t=null;e.exports.get=function(){return t};e.exports.set=function(e){t=e}},95942:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(13297);const i=n.ReadPreference; /*! * Converts arguments to ReadPrefs the driver * can understand. * * @param {String|Array} pref * @param {Array} [tags] */e.exports=function readPref(e,t){if(Array.isArray(e)){t=e[1];e=e[0]}if(e instanceof i){return e}switch(e){case"p":e="primary";break;case"pp":e="primaryPreferred";break;case"s":e="secondary";break;case"sp":e="secondaryPreferred";break;case"n":e="nearest";break}return new i(e,t)}},18259:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(13297).Binary;e.exports=t=n},85457:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(23772);const i=r(50598);const o=r(13297).Collection;const s=r(7174);const a=r(6709);const u=r(55716);const c=r(12781);const l=r(73837);function NativeCollection(e,t,r){this.collection=null;this.Promise=r.Promise||Promise;this.modelName=r.modelName;delete r.modelName;this._closed=false;n.apply(this,arguments)} /*! * Inherit from abstract Collection. */NativeCollection.prototype.__proto__=n.prototype;NativeCollection.prototype.onOpen=function(){const e=this;e.collection=e.conn.db.collection(e.name);n.prototype.onOpen.call(e);return e.collection};NativeCollection.prototype.onClose=function(e){n.prototype.onClose.call(this,e)}; /*! * ignore */const d={watch:true,find:true,aggregate:true}; /*! * Copy the collection methods and make them subject to queues */function iter(e){NativeCollection.prototype[e]=function(){const t=this.collection;const r=Array.from(arguments);const n=this;const o=a(n,"conn.base.options.debug");const u=arguments[arguments.length-1];const l=new s;if(this.conn.$wasForceClosed){const e=new i("Connection was force closed");if(r.length>0&&typeof r[r.length-1]==="function"){r[r.length-1](e);return}else{throw e}}let h=r;let m=null;if(this._shouldBufferCommands()&&this.buffer){if(d[e]&&typeof u!=="function"){throw new Error("Collection method "+e+" is synchronous")}this.conn.emit("buffer",{_id:l,modelName:n.modelName,collectionName:n.name,method:e,args:r});let t;let o=r;let s=null;let a=null;if(d[e]){this.addQueue((()=>{u.call(this,null,this[e].apply(this,o.slice(0,o.length-1)))}),[])}else if(typeof u==="function"){t=function collectionOperationCallback(){if(a!=null){clearTimeout(a)}return u.apply(this,arguments)};o=r.slice(0,r.length-1).concat([t])}else{s=new this.Promise(((n,i)=>{t=function collectionOperationCallback(e,t){if(a!=null){clearTimeout(a)}if(e!=null){return i(e)}n(t)};o=r.concat([t]);this.addQueue(e,o)}))}const c=this._getBufferTimeoutMS();a=setTimeout((()=>{const r=this.removeQueue(e,o);if(r){const r="Operation `"+this.name+"."+e+"()` buffering timed out after "+c+"ms";const o=new i(r);this.conn.emit("buffer-end",{_id:l,modelName:n.modelName,collectionName:n.name,method:e,error:o});t(o)}}),c);if(!d[e]&&typeof u==="function"){this.addQueue(e,o);return}return s}else if(!d[e]&&typeof u==="function"){m=function collectionOperationCallback(t,r){if(t!=null){n.conn.emit("operation-end",{_id:l,modelName:n.modelName,collectionName:n.name,method:e,error:t})}else{n.conn.emit("operation-end",{_id:l,modelName:n.modelName,collectionName:n.name,method:e,result:r})}return u.apply(this,arguments)};h=r.slice(0,r.length-1).concat([m])}if(o){if(typeof o==="function"){o.apply(n,[n.name,e].concat(r.slice(0,r.length-1)))}else if(o instanceof c.Writable){this.$printToStream(n.name,e,r,o)}else{const t=o.color==null?true:o.color;const i=o.shell==null?false:o.shell;this.$print(n.name,e,r,t,i)}}this.conn.emit("operation-start",{_id:l,modelName:n.modelName,collectionName:this.name,method:e,params:h});try{if(t==null){const t="Cannot call `"+this.name+"."+e+"()` before initial connection "+"is complete if `bufferCommands = false`. Make sure you `await mongoose.connect()` if "+"you have `bufferCommands = false`.";throw new i(t)}if(d[e]&&typeof u==="function"){return u.call(this,null,t[e].apply(t,h.slice(0,h.length-1)))}const r=t[e].apply(t,h);if(r!=null&&typeof r.then==="function"){return r.then((t=>{this.conn.emit("operation-end",{_id:l,modelName:this.modelName,collectionName:this.name,method:e,result:t});return t}),(t=>{this.conn.emit("operation-end",{_id:l,modelName:this.modelName,collectionName:this.name,method:e,error:t});throw t}))}return r}catch(t){if(typeof u==="function"){return u(t)}else{this.conn.emit("operation-end",{_id:l,modelName:n.modelName,collectionName:this.name,method:e,error:t});throw t}}}}for(const e of Object.getOwnPropertyNames(o.prototype)){const t=Object.getOwnPropertyDescriptor(o.prototype,e);if(t.get!==undefined){continue}if(typeof o.prototype[e]!=="function"){continue}iter(e)}NativeCollection.prototype.$print=function(e,t,r,n,i){const o=n?"Mongoose: ":"Mongoose: ";const s=[e,t].join(".");const a=[];for(let e=r.length-1;e>=0;--e){if(this.$format(r[e])||a.length){a.unshift(this.$format(r[e],n,i))}}const u="("+a.join(", ")+")";console.info(o+s+u)};NativeCollection.prototype.$printToStream=function(e,t,r,n){const i=[e,t].join(".");const o=[];for(let e=r.length-1;e>=0;--e){if(this.$format(r[e])||o.length){o.unshift(this.$format(r[e]))}}const s="("+o.join(", ")+")";n.write(i+s,"utf8")};NativeCollection.prototype.$format=function(e,t,r){const n=typeof e;if(n==="function"||n==="undefined")return"";return format(e,false,t,r)}; /*! * Debug print helper */function inspectable(e){const t={inspect:function(){return e}};if(l.inspect.custom){t[l.inspect.custom]=t.inspect}return t}function map(e){return format(e,true)}function formatObjectId(e,t){e[t]=inspectable('ObjectId("'+e[t].toHexString()+'")')}function formatDate(e,t,r){if(r){e[t]=inspectable('ISODate("'+e[t].toUTCString()+'")')}else{e[t]=inspectable('new Date("'+e[t].toUTCString()+'")')}}function format(e,t,n,i){if(e&&typeof e.toBSON==="function"){e=e.toBSON()}if(e==null){return e}const o=r(48546);let s=o(e,{transform:false});const c=u(s);if(c==="Binary"){s="BinData("+s.sub_type+', "'+s.toString("base64")+'")'}else if(c==="ObjectID"){s=inspectable('ObjectId("'+s.toHexString()+'")')}else if(c==="Date"){s=inspectable('new Date("'+s.toUTCString()+'")')}else if(c==="Object"){const e=Object.keys(s);const t=e.length;let r;for(let n=0;n{"use strict"; /*! * Module dependencies. */const n=r(29853);const i=r(88865);const o=r(64248);const s=r(58064).i;function NativeConnection(){n.apply(this,arguments);this._listening=false}NativeConnection.STATES=i; /*! * Inherits from Connection. */NativeConnection.prototype.__proto__=n.prototype;NativeConnection.prototype.useDb=function(e,t){t=t||{};if(t.useCache&&this.relatedDbs[e]){return this.relatedDbs[e]}const r=new this.constructor;r.name=e;r.base=this.base;r.collections={};r.models={};r.replica=this.replica;r.config=Object.assign({},this.config,r.config);r.name=this.name;r.options=this.options;r._readyState=this._readyState;r._closeCalled=this._closeCalled;r._hasOpened=this._hasOpened;r._listening=false;r._parent=this;r.host=this.host;r.port=this.port;r.user=this.user;r.pass=this.pass;const n=this;r.client=n.client;if(this.db&&this._readyState===i.connected){wireup()}else{this.once("connected",wireup)}function wireup(){r.client=n.client;const i={};if(t.hasOwnProperty("noListener")){i.noListener=t.noListener}r.db=n.client.db(e,i);r.onOpen()}r.name=e;if(t.noListener!==true){this.otherDbs.push(r)}r.otherDbs.push(this);if(t&&t.useCache){this.relatedDbs[r.name]=r;r.relatedDbs=this.relatedDbs}return r};NativeConnection.prototype.doClose=function(e,t){if(this.client==null){o((()=>t()));return this}this.client.close(e,((e,r)=>{s((()=>t(e,r)),1)}));return this}; /*! * Module exports. */e.exports=NativeConnection},88455:(e,t,r)=>{"use strict"; /*! * ignore */e.exports=r(13297).Decimal128},68719:(e,t,r)=>{"use strict"; /*! * Module exports. */t.Binary=r(18259);t.Collection=r(85457);t.Decimal128=r(88455);t.ObjectId=r(7174);t.ReadPreference=r(95942);t.getConnection=()=>r(83420)},7174:(e,t,r)=>{"use strict"; /*! * [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId * @constructor NodeMongoDbObjectId * @see ObjectId */const n=r(13297).ObjectId; /*! * ignore */e.exports=t=n},94498:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(50598);const i=r(6709);const o=r(73837);class CastError extends n{constructor(e,t,r,n,i){if(arguments.length>0){const o=getStringValue(t);const s=getValueType(t);const a=getMessageFormat(i);const u=formatMessage(null,e,o,r,a,s);super(u);this.init(e,t,r,n,i)}else{super(formatMessage())}}toJSON(){return{stringValue:this.stringValue,valueType:this.valueType,kind:this.kind,value:this.value,path:this.path,reason:this.reason,name:this.name,message:this.message}} /*! * ignore */init(e,t,r,n,i){this.stringValue=getStringValue(t);this.messageFormat=getMessageFormat(i);this.kind=e;this.value=t;this.path=r;this.reason=n;this.valueType=getValueType(t)} /*! * ignore * @param {Readonly} other */copy(e){this.messageFormat=e.messageFormat;this.stringValue=e.stringValue;this.kind=e.kind;this.value=e.value;this.path=e.path;this.reason=e.reason;this.message=e.message;this.valueType=e.valueType} /*! * ignore */setModel(e){this.model=e;this.message=formatMessage(e,this.kind,this.stringValue,this.path,this.messageFormat,this.valueType)}}Object.defineProperty(CastError.prototype,"name",{value:"CastError"});function getStringValue(e){let t=o.inspect(e);t=t.replace(/^'|'$/g,'"');if(!t.startsWith('"')){t='"'+t+'"'}return t}function getValueType(e){if(e==null){return""+e}const t=typeof e;if(t!=="object"){return t}if(typeof e.constructor!=="function"){return t}return e.constructor.name}function getMessageFormat(e){const t=i(e,"options.cast",null);if(typeof t==="string"){return t}} /*! * ignore */function formatMessage(e,t,r,n,i,o){if(i!=null){let o=i.replace("{KIND}",t).replace("{VALUE}",r).replace("{PATH}",n);if(e!=null){o=o.replace("{MODEL}",e.modelName)}return o}else{const i=o?" (type "+o+")":"";let s="Cast to "+t+" failed for value "+r+i+' at path "'+n+'"';if(e!=null){s+=' for model "'+e.modelName+'"'}return s}} /*! * exports */e.exports=CastError},65883:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(88513);class DivergentArrayError extends n{ /*! * DivergentArrayError constructor. * @param {Array} paths */ constructor(e){const t="For your own good, using `document.save()` to update an array "+"which was selected using an $elemMatch projection OR "+"populated using skip, limit, query conditions, or exclusion of "+"the _id field when the operation results in a $pop or $set of "+"the entire array is not supported. The following "+"path(s) would have been modified unsafely:\n"+" "+e.join("\n ")+"\n"+"Use Model.update() to update these arrays instead.";super(t)}}Object.defineProperty(DivergentArrayError.prototype,"name",{value:"DivergentArrayError"}); /*! * exports */e.exports=DivergentArrayError},88513:(e,t,r)=>{"use strict";const n=r(50598); /*! * Module exports. */e.exports=t=n;n.messages=r(78020);n.Messages=n.messages;n.DocumentNotFoundError=r(8492);n.CastError=r(94498);n.ValidationError=r(83793);n.ValidatorError=r(94528);n.VersionError=r(22889);n.ParallelSaveError=r(9560);n.OverwriteModelError=r(94446);n.MissingSchemaError=r(41525);n.MongooseServerSelectionError=r(30078);n.DivergentArrayError=r(65883);n.StrictModeError=r(44197)},78020:(e,t)=>{"use strict";const r=e.exports=t={};r.DocumentNotFoundError=null;r.general={};r.general.default="Validator failed for path `{PATH}` with value `{VALUE}`";r.general.required="Path `{PATH}` is required.";r.Number={};r.Number.min="Path `{PATH}` ({VALUE}) is less than minimum allowed value ({MIN}).";r.Number.max="Path `{PATH}` ({VALUE}) is more than maximum allowed value ({MAX}).";r.Number.enum="`{VALUE}` is not a valid enum value for path `{PATH}`.";r.Date={};r.Date.min="Path `{PATH}` ({VALUE}) is before minimum allowed value ({MIN}).";r.Date.max="Path `{PATH}` ({VALUE}) is after maximum allowed value ({MAX}).";r.String={};r.String.enum="`{VALUE}` is not a valid enum value for path `{PATH}`.";r.String.match="Path `{PATH}` is invalid ({VALUE}).";r.String.minlength="Path `{PATH}` (`{VALUE}`) is shorter than the minimum allowed length ({MINLENGTH}).";r.String.maxlength="Path `{PATH}` (`{VALUE}`) is longer than the maximum allowed length ({MAXLENGTH})."},41525:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(88513);class MissingSchemaError extends n{ /*! * MissingSchema Error constructor. * @param {String} name */ constructor(e){const t="Schema hasn't been registered for model \""+e+'".\n'+"Use mongoose.model(name, schema)";super(t)}}Object.defineProperty(MissingSchemaError.prototype,"name",{value:"MissingSchemaError"}); /*! * exports */e.exports=MissingSchemaError},50598:e=>{"use strict"; /*! * ignore */class MongooseError extends Error{}Object.defineProperty(MongooseError.prototype,"name",{value:"MongooseError"});e.exports=MongooseError},8492:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(88513);const i=r(73837);class DocumentNotFoundError extends n{ /*! * OverwriteModel Error constructor. */ constructor(e,t,r,o){let s;const a=n.messages;if(a.DocumentNotFoundError!=null){s=typeof a.DocumentNotFoundError==="function"?a.DocumentNotFoundError(e,t):a.DocumentNotFoundError}else{s='No document found for query "'+i.inspect(e)+'" on model "'+t+'"'}super(s);this.result=o;this.numAffected=r;this.filter=e;this.query=e}}Object.defineProperty(DocumentNotFoundError.prototype,"name",{value:"DocumentNotFoundError"}); /*! * exports */e.exports=DocumentNotFoundError},71449:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(88513);class ObjectExpectedError extends n{constructor(e,t){const r=Array.isArray(t)?"array":"primitive value";super("Tried to set nested object field `"+e+`\` to ${r} \``+t+"`");this.path=e}}Object.defineProperty(ObjectExpectedError.prototype,"name",{value:"ObjectExpectedError"});e.exports=ObjectExpectedError},10625:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(88513);class ObjectParameterError extends n{constructor(e,t,r){super('Parameter "'+t+'" to '+r+"() must be an object, got "+e.toString())}}Object.defineProperty(ObjectParameterError.prototype,"name",{value:"ObjectParameterError"});e.exports=ObjectParameterError},94446:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(88513);class OverwriteModelError extends n{ /*! * OverwriteModel Error constructor. * @param {String} name */ constructor(e){super("Cannot overwrite `"+e+"` model once compiled.")}}Object.defineProperty(OverwriteModelError.prototype,"name",{value:"OverwriteModelError"}); /*! * exports */e.exports=OverwriteModelError},9560:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(88513);class ParallelSaveError extends n{constructor(e){const t="Can't save() the same doc multiple times in parallel. Document: ";super(t+e._id)}}Object.defineProperty(ParallelSaveError.prototype,"name",{value:"ParallelSaveError"}); /*! * exports */e.exports=ParallelSaveError},54680:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(50598);class ParallelValidateError extends n{constructor(e){const t="Can't validate() the same doc multiple times in parallel. Document: ";super(t+e._id)}}Object.defineProperty(ParallelValidateError.prototype,"name",{value:"ParallelValidateError"}); /*! * exports */e.exports=ParallelValidateError},30078:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(50598);const i=r(88796);const o=r(9541);const s=r(5234); /*! * ignore */const a="Could not connect to any servers in your MongoDB Atlas cluster. "+"One common reason is that you're trying to access the database from "+"an IP that isn't whitelisted. Make sure your current IP address is on your Atlas "+"cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/";const u="Mongoose is connecting with SSL enabled, but the server is "+"not accepting SSL connections. Please ensure that the MongoDB server you are "+"connecting to is configured to accept SSL connections. Learn more: "+"https://mongoosejs.com/docs/tutorials/ssl.html";class MongooseServerSelectionError extends n{assimilateError(e){const t=e.reason;const r=o(t)&&i(t)&&e.message.indexOf("bad auth")===-1&&e.message.indexOf("Authentication failed")===-1;if(r){this.message=a}else if(s(t)){this.message=u}else{this.message=e.message}for(const t in e){if(t!=="name"){this[t]=e[t]}}return this}}Object.defineProperty(MongooseServerSelectionError.prototype,"name",{value:"MongooseServerSelectionError"});e.exports=MongooseServerSelectionError},44197:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(88513);class StrictModeError extends n{constructor(e,t,r){t=t||"Field `"+e+"` is not in schema and strict "+"mode is set to throw.";super(t);this.isImmutableError=!!r;this.path=e}}Object.defineProperty(StrictModeError.prototype,"name",{value:"StrictModeError"});e.exports=StrictModeError},73358:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(50598);class SyncIndexesError extends n{constructor(e,t){super(e);this.errors=t}}Object.defineProperty(SyncIndexesError.prototype,"name",{value:"SyncIndexesError"});e.exports=SyncIndexesError},83793:(e,t,r)=>{"use strict"; /*! * Module requirements */const n=r(50598);const i=r(55716);const o=r(73837);class ValidationError extends n{constructor(e){let t;if(i(e)==="model"){t=e.constructor.modelName+" validation failed"}else{t="Validation failed"}super(t);this.errors={};this._message=t;if(e){e.$errors=this.errors}}toString(){return this.name+": "+_generateMessage(this)} /*! * inspect helper */inspect(){return Object.assign(new Error(this.message),this)} /*! * add message */addError(e,t){this.errors[e]=t;this.message=this._message+": "+_generateMessage(this)}}if(o.inspect.custom){ /*! * Avoid Node deprecation warning DEP0079 */ ValidationError.prototype[o.inspect.custom]=ValidationError.prototype.inspect} /*! * Helper for JSON.stringify * Ensure `name` and `message` show up in toJSON output re: gh-9847 */Object.defineProperty(ValidationError.prototype,"toJSON",{enumerable:false,writable:false,configurable:true,value:function(){return Object.assign({},this,{name:this.name,message:this.message})}});Object.defineProperty(ValidationError.prototype,"name",{value:"ValidationError"}); /*! * ignore */function _generateMessage(e){const t=Object.keys(e.errors||{});const r=t.length;const n=[];let i;for(let o=0;o{"use strict"; /*! * Module dependencies. */const n=r(88513);class ValidatorError extends n{constructor(e){let t=e.message;if(!t){t=n.messages.general.default}const r=formatMessage(t,e);super(r);e=Object.assign({},e,{message:r});this.properties=e;this.kind=e.type;this.path=e.path;this.value=e.value;this.reason=e.reason} /*! * toString helper * TODO remove? This defaults to `${this.name}: ${this.message}` */toString(){return this.message} /*! * Ensure `name` and `message` show up in toJSON output re: gh-9296 */toJSON(){return Object.assign({name:this.name,message:this.message},this)}}Object.defineProperty(ValidatorError.prototype,"name",{value:"ValidatorError"}); /*! * The object used to define this validator. Not enumerable to hide * it from `require('util').inspect()` output re: gh-3925 */Object.defineProperty(ValidatorError.prototype,"properties",{enumerable:false,writable:true,value:null});ValidatorError.prototype.formatMessage=formatMessage; /*! * Formats error messages */function formatMessage(e,t){if(typeof e==="function"){return e(t)}const r=Object.keys(t);for(const n of r){if(n==="message"){continue}e=e.replace("{"+n.toUpperCase()+"}",t[n])}return e} /*! * exports */e.exports=ValidatorError},22889:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(88513);class VersionError extends n{constructor(e,t,r){const n=r.join(", ");super('No matching document found for id "'+e._id+'" version '+t+' modifiedPaths "'+n+'"');this.version=t;this.modifiedPaths=r}}Object.defineProperty(VersionError.prototype,"name",{value:"VersionError"}); /*! * exports */e.exports=VersionError},40500:e=>{"use strict";e.exports=function prepareDiscriminatorPipeline(e,t,r){const n=t&&t.discriminatorMapping;r=r||"";if(n&&!n.isRoot){const t=e;const i=(r.length>0?r+".":r)+n.key;const o=n.value;if(t[0]!=null&&t[0].$match&&!t[0].$match[i]){t[0].$match[i]=o}else if(t[0]!=null&&t[0].$geoNear){t[0].$geoNear.query=t[0].$geoNear.query||{};t[0].$geoNear.query[i]=o}else if(t[0]!=null&&t[0].$search){if(t[1]&&t[1].$match!=null){t[1].$match[i]=t[1].$match[i]||o}else{const e={};e[i]=o;t.splice(1,0,{$match:e})}}else{const e={};e[i]=o;t.unshift({$match:e})}}}},99477:e=>{"use strict";e.exports=function stringifyFunctionOperators(e){if(!Array.isArray(e)){return}for(const t of e){if(t==null){continue}const e=t.$group||t.$bucket||t.$bucketAuto;if(e!=null){for(const t of Object.keys(e)){handleAccumulator(e[t])}}const r=Object.keys(t)[0];if(r&&typeof t[r]==="object"){const e=t[r];for(const t of Object.keys(e)){if(e[t]!=null&&e[t].$function!=null&&typeof e[t].$function.body==="function"){e[t].$function.body=e[t].$function.body.toString()}}}if(t.$facet!=null){for(const e of Object.keys(t.$facet)){stringifyFunctionOperators(t.$facet[e])}}}};function handleAccumulator(e){if(e==null||e.$accumulator==null){return}for(const t of["init","accumulate","merge","finalize"]){if(typeof e.$accumulator[t]==="function"){e.$accumulator[t]=String(e.$accumulator[t])}}}},88544:e=>{"use strict";e.exports=arrayDepth;function arrayDepth(e){if(!Array.isArray(e)){return{min:0,max:0,containsNonArrayItem:true}}if(e.length===0){return{min:1,max:1,containsNonArrayItem:false}}if(e.length===1&&!Array.isArray(e[0])){return{min:1,max:1,containsNonArrayItem:false}}const t=arrayDepth(e[0]);for(let r=1;rt.max){t.max=n.max}t.containsNonArrayItem=t.containsNonArrayItem||n.containsNonArrayItem}t.min=t.min+1;t.max=t.max+1;return t}},48546:(e,t,r)=>{"use strict";const n=r(43890);const i=r(69078);const o=r(47383);const s=r(14637);const a=r(27522);const u=r(94855);const c=r(65295);const l=r(63241);const d=r(92973).trustedSymbol;const h=r(52492); /*! * Object clone with Mongoose natives support. * * If options.minimize is true, creates a minimal data object. Empty objects and undefined values will not be cloned. This makes the data payload sent to MongoDB as small as possible. * * Functions are never cloned. * * @param {Object} obj the object to clone * @param {Object} options * @param {Boolean} isArrayChild true if cloning immediately underneath an array. Special case for minimize. * @return {Object} the cloned object * @api private */function clone(e,t,r){if(e==null){return e}if(Array.isArray(e)){return cloneArray(h.isMongooseArray(e)?e.__array:e,t)}if(s(e)){if(t&&t._skipSingleNestedGetters&&e.$isSingleNested){t=Object.assign({},t,{getters:false})}if(h.isPOJO(e)&&e.$__!=null&&e._doc!=null){return e._doc}if(t&&t.json&&typeof e.toJSON==="function"){return e.toJSON(t)}return e.toObject(t)}const o=e.constructor;if(o){switch(a(o)){case"Object":return cloneObject(e,t,r);case"Date":return new o(+e);case"RegExp":return cloneRegExp(e);default:break}}if(e instanceof i){return new i(e.id)}if(u(e,"Decimal128")){if(t&&t.flattenDecimals){return e.toJSON()}return n.fromString(e.toString())}if(!o&&c(e)){return cloneObject(e,t,r)}if(typeof e==="object"&&e[l.schemaTypeSymbol]){return e.clone()}if(t&&t.bson&&typeof e.toBSON==="function"){return e}if(typeof e.valueOf==="function"){return e.valueOf()}return cloneObject(e,t,r)}e.exports=clone; /*! * ignore */function cloneObject(e,t,r){const n=t&&t.minimize;const i={};let s;if(d in e){i[d]=e[d]}let a=0;let u="";const c=Object.keys(e);const l=c.length;for(a=0;a{"use strict"; /*! * Module dependencies. */const n=r(71243).get().Binary;const i=r(43890);const o=r(69078);const s=r(14637);t.x=flatten;t.M=modifiedPaths; /*! * ignore */function flatten(e,t,r,n){let i;if(e&&s(e)&&!Buffer.isBuffer(e)){i=Object.keys(e.toObject({transform:false,virtuals:false})||{})}else{i=Object.keys(e||{})}const o=i.length;const a={};t=t?t+".":"";for(let s=0;s{"use strict"; /*! * Module dependencies. */const n=r(64248);const i=r(43607);e.exports=function eachAsync(e,t,r,o){const s=r.parallel||1;const a=r.batchSize;const u=asyncQueue();return i(o,(e=>{if(a!=null){if(typeof a!=="number"){throw new TypeError("batchSize must be a number")}if(a<1){throw new TypeError("batchSize must be at least 1")}if(a!==Math.floor(a)){throw new TypeError("batchSize must be a positive integer")}}iterate(e)}));function iterate(t){let r=false;let i=0;let o=0;let c=[];let l=null;for(let e=0;es()));if(a!=null){c.push(d)}if(a!=null&&c.length!==a){setTimeout((()=>u(fetch)),0);return}const h=a!=null?c:d;function handleNextResultCallBack(e){if(a!=null){i-=c.length;c=[]}else{--i}if(e!=null){l=e;return t(e)}if(r&&i<=0){return t(null)}setTimeout((()=>u(fetch)),0)}handleNextResult(h,o++,handleNextResultCallBack)}))}}function handleNextResult(e,r,n){const i=t(e,r);if(i&&typeof i.then==="function"){i.then((function(){n(null)}),(function(e){n(e||new Error("`eachAsync()` promise rejected without error"))}))}else{n(null)}}};function asyncQueue(){const e=[];let t=null;let r=0;return function enqueue(n){if(e.length===0&&t==null){t=r++;return n(_step)}e.push(n)};function _step(){t=null;if(e.length>0){t=r++;const n=e.shift();n(_step)}}}},52868:(e,t,r)=>{"use strict";const n=r(69078);e.exports=function areDiscriminatorValuesEqual(e,t){if(typeof e==="string"&&typeof t==="string"){return e===t}if(typeof e==="number"&&typeof t==="number"){return e===t}if(e instanceof n&&t instanceof n){return e.toString()===t.toString()}return false}},3774:e=>{"use strict";e.exports=function checkEmbeddedDiscriminatorKeyProjection(e,t,r,n,i){const o=Object.keys(e).reduce(((e,r)=>e||r.startsWith(t+".")),false);const s=t+"."+r.options.discriminatorKey;if(!o&&i.length===1&&i[0]===s){n.splice(n.indexOf(s),1)}}},34171:(e,t,r)=>{"use strict";const n=r(74693); /*! * Find the correct constructor, taking into account discriminators */e.exports=function getConstructor(e,t){const r=e.schema.options.discriminatorKey;if(t!=null&&e.discriminators&&t[r]!=null){if(e.discriminators[t[r]]){e=e.discriminators[t[r]]}else{const i=n(e.discriminators,t[r]);if(i){e=i}}}return e}},74693:(e,t,r)=>{"use strict";const n=r(52868); /*! * returns discriminator by discriminatorMapping.value * * @param {Model} model * @param {string} value */e.exports=function getDiscriminatorByValue(e,t){if(e==null){return null}for(const r of Object.keys(e)){const i=e[r];if(i.schema&&i.schema.discriminatorMapping&&n(i.schema.discriminatorMapping.value,t)){return i}}return null}},81711:(e,t,r)=>{"use strict";const n=r(52868); /*! * returns discriminator by discriminatorMapping.value * * @param {Schema} schema * @param {string} value */e.exports=function getSchemaDiscriminatorByValue(e,t){if(e==null||e.discriminators==null){return null}for(const r of Object.keys(e.discriminators)){const i=e.discriminators[r];if(i.discriminatorMapping==null){continue}if(n(i.discriminatorMapping.value,t)){return i}}return null}},47339:e=>{"use strict"; /*! * ignore */e.exports=function cleanModifiedSubpaths(e,t,r){r=r||{};const n=r.skipDocArrays;let i=0;if(!e){return i}for(const r of Object.keys(e.$__.activePaths.states.modify)){if(n){const t=e.$__schema.path(r);if(t&&t.$isMongooseDocumentArray){continue}}if(r.startsWith(t+".")){delete e.$__.activePaths.states.modify[r];++i;if(e.$isSubdocument){const t=e.ownerDocument();const n=e.$__fullPath(r);delete t.$__.activePaths.states.modify[n]}}}return i}},99882:(e,t,r)=>{"use strict";const n=r(63241).documentSchemaSymbol;const i=r(6709);const o=r(28561).h;const s=r(52492);let a;const u=r(63241).getSymbol;const c=r(63241).scopeSymbol;const l=s.isPOJO; /*! * exports */t.M=compile;t.c=defineKey; /*! * Compiles schemas. */function compile(e,t,n,i){a=a||r(30754);const o=i.typeKey;for(const r of Object.keys(e)){const s=e[r];const a=l(s)&&Object.keys(s).length>0&&(!s[o]||o==="type"&&l(s.type)&&s.type.type);const u=a?s:null;defineKey({prop:r,subprops:u,prototype:t,prefix:n,options:i})}} /*! * Defines the accessor named prop on the incoming prototype. */function defineKey({prop:e,subprops:t,prototype:l,prefix:d,options:h}){a=a||r(30754);const m=(d?d+".":"")+e;d=d||"";if(t){Object.defineProperty(l,e,{enumerable:true,configurable:true,get:function(){const e=this;if(!this.$__.getters){this.$__.getters={}}if(!this.$__.getters[m]){const r=Object.create(a.prototype,getOwnPropertyDescriptors(this));if(!d){r.$__[c]=this}r.$__.nestedPath=m;Object.defineProperty(r,"schema",{enumerable:false,configurable:true,writable:false,value:l.schema});Object.defineProperty(r,"$__schema",{enumerable:false,configurable:true,writable:false,value:l.schema});Object.defineProperty(r,n,{enumerable:false,configurable:true,writable:false,value:l.schema});Object.defineProperty(r,"toObject",{enumerable:false,configurable:true,writable:false,value:function(){return s.clone(e.get(m,null,{virtuals:i(this,"schema.options.toObject.virtuals",null)}))}});Object.defineProperty(r,"$__get",{enumerable:false,configurable:true,writable:false,value:function(){return e.get(m,null,{virtuals:i(this,"schema.options.toObject.virtuals",null)})}});Object.defineProperty(r,"toJSON",{enumerable:false,configurable:true,writable:false,value:function(){return e.get(m,null,{virtuals:i(e,"schema.options.toJSON.virtuals",null)})}});Object.defineProperty(r,"$__isNested",{enumerable:false,configurable:true,writable:false,value:true});const o=Object.freeze({minimize:true,virtuals:false,getters:false,transform:false});Object.defineProperty(r,"$isEmpty",{enumerable:false,configurable:true,writable:false,value:function(){return Object.keys(this.get(m,null,o)||{}).length===0}});Object.defineProperty(r,"$__parent",{enumerable:false,configurable:true,writable:false,value:this});compile(t,r,m,h);this.$__.getters[m]=r}return this.$__.getters[m]},set:function(e){if(e!=null&&e.$__isNested){e=e.$__get()}else if(e instanceof a&&!e.$__isNested){e=e.$toObject(o)}const t=this.$__[c]||this;t.$set(m,e)}})}else{Object.defineProperty(l,e,{enumerable:true,configurable:true,get:function(){return this[u].call(this.$__[c]||this,m)},set:function(e){this.$set.call(this.$__[c]||this,m,e)}})}}function getOwnPropertyDescriptors(e){const t={};Object.getOwnPropertyNames(e).forEach((function(r){const n=["isNew","$__","$errors","errors","_doc","$locals","$op","__parentArray","__index","$isDocumentArrayElement"].indexOf(r)===-1;if(n){return}t[r]=Object.getOwnPropertyDescriptor(e,r);t[r].enumerable=false}));return t}},32411:(e,t,r)=>{"use strict";const n=r(6709);const i=r(81711); /*! * Like `schema.path()`, except with a document, because impossible to * determine path type without knowing the embedded discriminator key. */e.exports=function getEmbeddedDiscriminatorPath(e,t,r){r=r||{};const o=r.typeOnly;const s=t.indexOf(".")===-1?[t]:t.split(".");let a=null;let u="adhocOrUndefined";const c=i(e.schema,e.get(e.schema.options.discriminatorKey))||e.schema;for(let t=0;t{"use strict";const n=r(52492);e.exports=function handleSpreadDoc(e){if(n.isPOJO(e)&&e.$__!=null&&e._doc!=null){return e._doc}return e}},93801:e=>{"use strict";e.exports=function each(e,t,r){if(e.length===0){return r()}let n=e.length;let i=null;for(const o of e){t(o,(function(e){if(i!=null){return}if(e!=null){i=e;return r(i)}if(--n<=0){return r()}}))}}},6709:e=>{"use strict"; /*! * Simplified lodash.get to work around the annoying null quirk. See: * https://github.com/lodash/lodash/issues/3659 */e.exports=function get(e,t,r){let n;let i=false;if(typeof t==="string"){if(t.indexOf(".")===-1){const n=getProperty(e,t);if(n==null){return r}return n}n=t.split(".")}else{i=true;n=t;if(n.length===1){const t=getProperty(e,n[0]);if(t==null){return r}return t}}let o=t;let s=e;for(const e of n){if(s==null){return r}if(!i&&s[o]!=null){return s[o]}s=getProperty(s,e);if(!i){o=o.substr(e.length+1)}}return s==null?r:s};function getProperty(e,t){if(e==null){return e}if(e instanceof Map){return e.get(t)}return e[t]}},55716:e=>{"use strict"; /*! * If `val` is an object, returns constructor name, if possible. Otherwise returns undefined. */e.exports=function getConstructorName(e){if(e==null){return void 0}if(typeof e.constructor!=="function"){return void 0}return e.constructor.name}},79439:e=>{"use strict";function getDefaultBulkwriteResult(){return{result:{ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]},insertedCount:0,matchedCount:0,modifiedCount:0,deletedCount:0,upsertedCount:0,upsertedIds:{},insertedIds:{},n:0}}e.exports=getDefaultBulkwriteResult},27522:e=>{"use strict";const t=/^function\s*([^\s(]+)/;e.exports=function(e){return e.name||(e.toString().trim().match(t)||[])[1]}},64248:e=>{"use strict"; /*! * Centralize this so we can more easily work around issues with people * stubbing out `process.nextTick()` in tests using sinon: * https://github.com/sinonjs/lolex#automatically-incrementing-mocked-time * See gh-6074 */const t=process.nextTick.bind(process);e.exports=function immediate(e){return t(e)}},71546:(e,t,r)=>{"use strict";const n=r(6709);e.exports=function isDefaultIdIndex(e){if(Array.isArray(e)){const t=Object.keys(e[0]);return t.length===1&&t[0]==="_id"&&e[0]._id!=="hashed"}if(typeof e!=="object"){return false}const t=n(e,"key",{});return Object.keys(t).length===1&&t.hasOwnProperty("_id")}},46658:(e,t,r)=>{"use strict";const n=r(6709);const i=r(52492);e.exports=function isIndexEqual(e,t,r){if(r.textIndexVersion!=null){delete r.key._fts;delete r.key._ftsx;const i={...r.weights,...r.key};if(Object.keys(i).length!==Object.keys(e).length){return false}for(const r of Object.keys(i)){if(!(r in e)){return false}const o=i[r];if(o!==n(t,"weights."+r)&&!(o===1&&n(t,"weights."+r)==null)){return false}}if(t["default_language"]!==r["default_language"]){return r["default_language"]==="english"&&t["default_language"]==null}return true}const o=["unique","partialFilterExpression","sparse","expireAfterSeconds","collation"];for(const e of o){if(!(e in t)&&!(e in r)){continue}if(e==="collation"){if(t[e]==null||r[e]==null){return t[e]==null&&r[e]==null}const i=Object.keys(t.collation);const o=t.collation;const s=r.collation;for(const e of i){if(n(o,e)!==n(s,e)){return false}}}else if(!i.deepEqual(t[e],r[e])){return false}}const s=Object.keys(e);const a=Object.keys(r.key);if(s.length!==a.length){return false}for(let t=0;t{"use strict";const{inspect:n}=r(73837);e.exports=function isAsyncFunction(e){if(typeof e!=="function"){return}return n(e).startsWith("[AsyncFunction:")}},94855:(e,t,r)=>{"use strict";const n=r(6709); /*! * Get the bson type, if it exists */function isBsonType(e,t){return n(e,"_bsontype",void 0)===t}e.exports=isBsonType},14637:(e,t,r)=>{"use strict";const n=r(50125).isMongooseArray; /*! * Returns if `v` is a mongoose object that has a `toObject()` method we can use. * * This is for compatibility with libs like Date.js which do foolish things to Natives. * * @param {any} v * @api private */e.exports=function(e){return e!=null&&(n(e)||e.$__!=null||e.isMongooseBuffer||e.$isMongooseMap)}},65295:e=>{"use strict"; /*! * Determines if `arg` is an object. * * @param {Object|Array|String|Function|RegExp|any} arg * @api private * @return {Boolean} */e.exports=function(e){return Buffer.isBuffer(e)||Object.prototype.toString.call(e)==="[object Object]"}},70159:e=>{"use strict";function isPromise(e){return!!e&&(typeof e==="object"||typeof e==="function")&&typeof e.then==="function"}e.exports=isPromise},59342:(e,t,r)=>{"use strict";const n=r(11035);const i=r(43607); /*! * ignore */e.exports=applyHooks; /*! * ignore */applyHooks.middlewareFunctions=["deleteOne","save","validate","remove","updateOne","init"]; /*! * Register hooks for this model * * @param {Model} model * @param {Schema} schema */function applyHooks(e,t,r){r=r||{};const o={useErrorHandlers:true,numCallbackParams:1,nullResultByDefault:true,contextParameter:true};const s=r.decorateDoc?e:e.prototype;e.$appliedHooks=true;for(const e of Object.keys(t.paths)){const n=t.paths[e];let i=null;if(n.$isSingleNested){i=n.caster}else if(n.$isMongooseDocumentArray){i=n.Constructor}else{continue}if(i.$appliedHooks){continue}applyHooks(i,n.schema,r);if(i.discriminators!=null){const e=Object.keys(i.discriminators);for(const t of e){applyHooks(i.discriminators[t],i.discriminators[t].schema,r)}}}const a=t.s.hooks.filter((e=>{if(e.name==="updateOne"||e.name==="deleteOne"){return!!e["document"]}if(e.name==="remove"||e.name==="init"){return e["document"]==null||!!e["document"]}if(e.query!=null||e.document!=null){return e.document!==false}return true})).filter((e=>{if(t.methods[e.name]){return!e.fn[n.builtInMiddleware]}return true}));e._middleware=a;s.$__originalValidate=s.$__originalValidate||s.$__validate;for(const e of["save","validate","remove","deleteOne"]){const t=e==="validate"?"$__originalValidate":`$__${e}`;const r=a.createWrapper(e,s[t],null,o);s[`$__${e}`]=r}s.$__init=a.createWrapperSync("init",s.$__init,null,o);const u=Object.keys(t.methods);const c=Object.assign({},o,{checkForPromise:true});for(const t of u){if(!a.hasHooks(t)){continue}const r=s[t];s[t]=function(){const r=Array.prototype.slice.call(arguments);const n=r.slice(-1).pop();const o=typeof n==="function"?r.slice(0,r.length-1):r;return i(n,(e=>this[`$__${t}`].apply(this,o.concat([e]))),e.events)};s[`$__${t}`]=a.createWrapper(t,r,null,c)}}},12558:(e,t,r)=>{"use strict";const n=r(6709);const i=r(52492); /*! * Register methods for this model * * @param {Model} model * @param {Schema} schema */e.exports=function applyMethods(e,t){function apply(t,r){Object.defineProperty(e.prototype,t,{get:function(){const e={};for(const n in r.methods[t]){e[n]=r.methods[t][n].bind(this)}return e},configurable:true})}for(const r of Object.keys(t.methods)){const o=t.methods[r];if(t.tree.hasOwnProperty(r)){throw new Error("You have a method and a property in your schema both "+'named "'+r+'"')}if(t.reserved[r]&&!n(t,`methodOptions.${r}.suppressWarning`,false)){i.warn(`mongoose: the method name "${r}" is used by mongoose `+"internally, overwriting it may cause bugs. If you're sure you know "+"what you're doing, you can suppress this error by using "+`\`schema.method('${r}', fn, { suppressWarning: true })\`.`)}if(typeof o==="function"){e.prototype[r]=o}else{apply(r,t)}}e.$appliedMethods=true;for(const e of Object.keys(t.paths)){const r=t.paths[e];if(r.$isSingleNested&&!r.caster.$appliedMethods){applyMethods(r.caster,r.schema)}if(r.$isMongooseDocumentArray&&!r.Constructor.$appliedMethods){applyMethods(r.Constructor,r.schema)}}}},84820:(e,t,r)=>{"use strict";const n=r(38956).middlewareFunctions;const i=r(43607);e.exports=function applyStaticHooks(e,t,r){const o={useErrorHandlers:true,numCallbackParams:1};t=t.filter((e=>{if(n.indexOf(e.name)!==-1){return!!e.model}return e.model!==false}));e.$__insertMany=t.createWrapper("insertMany",e.$__insertMany,e,o);for(const n of Object.keys(r)){if(t.hasHooks(n)){const r=e[n];e[n]=function(){const o=arguments.length;const s=o>0?arguments[o-1]:null;const a=typeof s==="function"?s:null;const u=Array.prototype.slice.call(arguments,0,a==null?o:o-1);return i(a,(i=>{t.execPre(n,e,u,(function(o){if(o!=null){return i(o)}let s=0;const a=r.apply(e,u.concat(post));if(a!=null&&typeof a.then==="function"){a.then((e=>post(null,e)),(e=>post(e)))}function post(r,o){if(s++>0){return}if(r!=null){return i(r)}t.execPost(n,e,[o],(function(e){if(e!=null){return i(e)}i(null,o)}))}}))}),e.events)}}}}},3418:e=>{"use strict"; /*! * Register statics for this model * @param {Model} model * @param {Schema} schema */e.exports=function applyStatics(e,t){for(const r in t.statics){e[r]=t.statics[r]}}},81033:(e,t,r)=>{"use strict";const n=r(74693);const i=r(85134);const o=r(6747);const s=r(15278);const a=r(30003);const u=r(22451); /*! * Given a model and a bulkWrite op, return a thunk that handles casting and * validating the individual op. */e.exports=function castBulkWrite(e,t,r){const n=e.base.now();if(t["insertOne"]){return n=>{const i=decideModelByObject(e,t["insertOne"]["document"]);const o=new i(t["insertOne"]["document"]);if(i.schema.options.timestamps){o.initializeTimestamps()}if(r.session!=null){o.$session(r.session)}t["insertOne"]["document"]=o;t["insertOne"]["document"].$validate({__noPromise:true},(function(e){if(e){return n(e,null)}n(null)}))}}else if(t["updateOne"]){return c=>{try{if(!t["updateOne"]["filter"]){throw new Error("Must provide a filter object.")}if(!t["updateOne"]["update"]){throw new Error("Must provide an update object.")}const c=decideModelByObject(e,t["updateOne"]["filter"]);const l=c.schema;const d=r.strict!=null?r.strict:c.schema.options.strict;_addDiscriminatorToObject(l,t["updateOne"]["filter"]);if(c.schema.$timestamps!=null&&t["updateOne"].timestamps!==false){const e=c.schema.$timestamps.createdAt;const r=c.schema.$timestamps.updatedAt;o(n,e,r,t["updateOne"]["update"],{})}i(n,t["updateOne"]["update"],c.schema);if(t["updateOne"].setDefaultsOnInsert!==false){u(t["updateOne"]["filter"],c.schema,t["updateOne"]["update"],{setDefaultsOnInsert:true,upsert:t["updateOne"].upsert})}t["updateOne"]["filter"]=s(c.schema,t["updateOne"]["filter"],{strict:d,upsert:t["updateOne"].upsert});t["updateOne"]["update"]=a(c.schema,t["updateOne"]["update"],{strict:d,overwrite:false,upsert:t["updateOne"].upsert},c,t["updateOne"]["filter"])}catch(e){return c(e,null)}c(null)}}else if(t["updateMany"]){return c=>{try{if(!t["updateMany"]["filter"]){throw new Error("Must provide a filter object.")}if(!t["updateMany"]["update"]){throw new Error("Must provide an update object.")}const c=decideModelByObject(e,t["updateMany"]["filter"]);const l=c.schema;const d=r.strict!=null?r.strict:c.schema.options.strict;if(t["updateMany"].setDefaultsOnInsert!==false){u(t["updateMany"]["filter"],c.schema,t["updateMany"]["update"],{setDefaultsOnInsert:true,upsert:t["updateMany"].upsert})}if(c.schema.$timestamps!=null&&t["updateMany"].timestamps!==false){const e=c.schema.$timestamps.createdAt;const r=c.schema.$timestamps.updatedAt;o(n,e,r,t["updateMany"]["update"],{})}i(n,t["updateMany"]["update"],c.schema);_addDiscriminatorToObject(l,t["updateMany"]["filter"]);t["updateMany"]["filter"]=s(c.schema,t["updateMany"]["filter"],{strict:d,upsert:t["updateMany"].upsert});t["updateMany"]["update"]=a(c.schema,t["updateMany"]["update"],{strict:d,overwrite:false,upsert:t["updateMany"].upsert},c,t["updateMany"]["filter"])}catch(e){return c(e,null)}c(null)}}else if(t["replaceOne"]){return n=>{const i=decideModelByObject(e,t["replaceOne"]["filter"]);const o=i.schema;const a=r.strict!=null?r.strict:i.schema.options.strict;_addDiscriminatorToObject(o,t["replaceOne"]["filter"]);try{t["replaceOne"]["filter"]=s(i.schema,t["replaceOne"]["filter"],{strict:a,upsert:t["replaceOne"].upsert})}catch(e){return n(e,null)}const u=new i(t["replaceOne"]["replacement"],a,true);if(i.schema.options.timestamps){u.initializeTimestamps()}if(r.session!=null){u.$session(r.session)}t["replaceOne"]["replacement"]=u;t["replaceOne"]["replacement"].$validate({__noPromise:true},(function(e){if(e){return n(e,null)}t["replaceOne"]["replacement"]=t["replaceOne"]["replacement"].toBSON();n(null)}))}}else if(t["deleteOne"]){return r=>{const n=decideModelByObject(e,t["deleteOne"]["filter"]);const i=n.schema;_addDiscriminatorToObject(i,t["deleteOne"]["filter"]);try{t["deleteOne"]["filter"]=s(n.schema,t["deleteOne"]["filter"])}catch(e){return r(e,null)}r(null)}}else if(t["deleteMany"]){return r=>{const n=decideModelByObject(e,t["deleteMany"]["filter"]);const i=n.schema;_addDiscriminatorToObject(i,t["deleteMany"]["filter"]);try{t["deleteMany"]["filter"]=s(n.schema,t["deleteMany"]["filter"])}catch(e){return r(e,null)}r(null)}}else{return e=>{e(new Error("Invalid op passed to `bulkWrite()`"),null)}}};function _addDiscriminatorToObject(e,t){if(e==null){return}if(e.discriminatorMapping&&!e.discriminatorMapping.isRoot){t[e.discriminatorMapping.key]=e.discriminatorMapping.value}} /*! * gets discriminator model if discriminator key is present in object */function decideModelByObject(e,t){const r=e.schema.options.discriminatorKey;if(t!=null&&t.hasOwnProperty(r)){e=n(e.discriminators,t[r])||e}return e}},40387:(e,t,r)=>{"use strict";const n=r(9902);const i=r(99882).c;const o=r(6709);const s=r(52492);const a={toJSON:true,toObject:true,_id:true,id:true}; /*! * ignore */e.exports=function discriminator(e,t,r,u,c){if(!(r&&r.instanceOfSchema)){throw new Error("You must pass a valid discriminator Schema")}if(e.schema.discriminatorMapping&&!e.schema.discriminatorMapping.isRoot){throw new Error('Discriminator "'+t+'" can only be a discriminator of the root model')}if(c){const t=o(e.base,"options.applyPluginsToDiscriminators",false);e.base._applyPlugins(r,{skipTopLevel:!t})}const l=e.schema.options.discriminatorKey;const d=e.schema.path(l);if(d!=null){if(!s.hasUserDefinedProperty(d.options,"select")){d.options.select=true}d.options.$skipDiscriminatorCheck=true}else{const t={};t[l]={default:void 0,select:true,$skipDiscriminatorCheck:true};t[l][e.schema.options.typeKey]=String;e.schema.add(t);i({prop:l,prototype:e.prototype,options:e.schema.options})}if(r.path(l)&&r.path(l).options.$skipDiscriminatorCheck!==true){throw new Error('Discriminator "'+t+'" cannot have field with name "'+l+'"')}let h=t;if(typeof u==="string"&&u.length||u!=null){h=u}function merge(t,r){t._baseSchema=r;if(r.paths._id&&r.paths._id.options&&!r.paths._id.options.auto){t.remove("_id")}const i=Object.keys(r.paths);const o=[];for(const e of i){if(t.nested[e]){o.push(e);continue}if(e.indexOf(".")===-1){continue}const r=e.split(".").slice(0,-1);let i="";for(const s of r){i+=(i.length?".":"")+s;if(t.paths[i]instanceof n||t.singleNestedPaths[i]instanceof n){o.push(e)}}}s.merge(t,r,{isDiscriminatorSchemaMerge:true,omit:{discriminators:true,base:true},omitNested:o.reduce(((e,t)=>{e["tree."+t]=true;return e}),{})});for(const e of o){delete t.paths[e]}t.childSchemas.forEach((e=>{e.model.prototype.$__setSchema(e.schema)}));const u={};u[l]={default:h,select:true,set:function(e){if(e===h||Array.isArray(h)&&s.deepEqual(e,h)){return h}throw new Error("Can't set discriminator key \""+l+'"')},$skipDiscriminatorCheck:true};u[l][t.options.typeKey]=d?d.options[t.options.typeKey]:String;t.add(u);t.discriminatorMapping={key:l,value:h,isRoot:false};if(r.options.collection){t.options.collection=r.options.collection}const c=t.options.toJSON;const m=t.options.toObject;const g=t.options._id;const y=t.options.id;const v=Object.keys(t.options);t.options.discriminatorKey=r.options.discriminatorKey;for(const e of v){if(!a[e]){if(e==="pluralization"&&t.options[e]==true&&r.options[e]==null){continue}if(!s.deepEqual(t.options[e],r.options[e])){throw new Error("Can't customize discriminator option "+e+" (can only modify "+Object.keys(a).join(", ")+")")}}}t.options=s.clone(r.options);if(c)t.options.toJSON=c;if(m)t.options.toObject=m;if(typeof g!=="undefined"){t.options._id=g}t.options.id=y;t.s.hooks=e.schema.s.hooks.merge(t.s.hooks);t.plugins=Array.prototype.slice.call(r.plugins);t.callQueue=r.callQueue.concat(t.callQueue);delete t._requiredpaths}merge(r,e.schema);if(!e.discriminators){e.discriminators={}}if(!e.schema.discriminatorMapping){e.schema.discriminatorMapping={key:l,value:null,isRoot:true}}if(!e.schema.discriminators){e.schema.discriminators={}}e.schema.discriminators[t]=r;if(e.discriminators[t]&&!r.options.overwriteModels){throw new Error('Discriminator with name "'+t+'" already exists')}return r}},69634:e=>{"use strict";e.exports=parallelLimit; /*! * ignore */function parallelLimit(e,t,r){let n=0;let i=0;let o=null;if(t<=0){throw new Error("Limit must be positive")}if(e.length===0){return r(null,[])}for(let r=0;r{--n;++i;if(o!=null){return}if(a!=null){o=a;return r(o)}s[t]=u;if(i===e.length){return r(null,s)}else if(i+n{"use strict";const n=r(50598);const i=r(68248);const o=r(73837);e.exports=function flattenObjectWithDottedPaths(e){if(e==null||typeof e!=="object"||Array.isArray(e)){return}if(e.$__){return}const t=Object.keys(e);for(const r of t){const t=e[r];if(r.indexOf(".")!==-1){try{delete e[r];i(e,r,t)}catch(e){if(!(e instanceof TypeError)){throw e}throw new n(`Conflicting dotted paths when setting document path, key: "${r}", value: ${o.inspect(t)}`)}continue}flattenObjectWithDottedPaths(e[r])}}},75254:e=>{"use strict";const t=/\./g;e.exports=function parentPaths(e){if(e.indexOf(".")===-1){return[e]}const r=e.split(t);const n=r.length;const i=new Array(n);let o="";for(let e=0;e{"use strict";e.exports=function setDottedPath(e,t,r){if(t.indexOf(".")===-1){e[t]=r;return}const n=t.split(".");const i=n.pop();let o=e;for(const e of n){if(o[e]==null){o[e]={}}o=o[e]}o[i]=r}},64544:(e,t)=>{"use strict";e.exports=pluralize;t.pluralization=[[/(m)an$/gi,"$1en"],[/(pe)rson$/gi,"$1ople"],[/(child)$/gi,"$1ren"],[/^(ox)$/gi,"$1en"],[/(ax|test)is$/gi,"$1es"],[/(octop|vir)us$/gi,"$1i"],[/(alias|status)$/gi,"$1es"],[/(bu)s$/gi,"$1ses"],[/(buffal|tomat|potat)o$/gi,"$1oes"],[/([ti])um$/gi,"$1a"],[/sis$/gi,"ses"],[/(?:([^f])fe|([lr])f)$/gi,"$1$2ves"],[/(hive)$/gi,"$1s"],[/([^aeiouy]|qu)y$/gi,"$1ies"],[/(x|ch|ss|sh)$/gi,"$1es"],[/(matr|vert|ind)ix|ex$/gi,"$1ices"],[/([m|l])ouse$/gi,"$1ice"],[/(kn|w|l)ife$/gi,"$1ives"],[/(quiz)$/gi,"$1zes"],[/^goose$/i,"geese"],[/s$/gi,"s"],[/([^a-z])$/,"$1"],[/$/gi,"s"]];const r=t.pluralization;t.uncountables=["advice","energy","excretion","digestion","cooperation","health","justice","labour","machinery","equipment","information","pollution","sewage","paper","money","species","series","rain","rice","fish","sheep","moose","deer","news","expertise","status","media"];const n=t.uncountables; /*! * Pluralize function. * * @author TJ Holowaychuk (extracted from _ext.js_) * @param {String} string to pluralize * @api private */function pluralize(e){let t;e=e.toLowerCase();if(!~n.indexOf(e)){t=r.filter((function(t){return e.match(t[0])}));if(t[0]){return e.replace(t[0][0],t[0][1])}}return e}},81956:e=>{"use strict";e.exports=function SkipPopulateValue(e){if(!(this instanceof SkipPopulateValue)){return new SkipPopulateValue(e)}this.val=e;return this}},88383:(e,t,r)=>{"use strict";const n=r(5638);const i=r(63241).modelSymbol;const o=r(52492);e.exports=assignRawDocsToIdStructure; /*! * Assign `vals` returned by mongo query to the `rawIds` * structure returned from utils.getVals() honoring * query sort order if specified by user. * * This can be optimized. * * Rules: * * if the value of the path is not an array, use findOne rules, else find. * for findOne the results are assigned directly to doc path (including null results). * for find, if user specified sort order, results are assigned directly * else documents are put back in original order of array if found in results * * @param {Array} rawIds * @param {Array} vals * @param {Boolean} sort * @api private */function assignRawDocsToIdStructure(e,t,r,s,a){const u=[];const c=s.sort&&e.length>1;const l=s.$nullIfNotFound;let d;let h;let m;if(o.isMongooseArray(e)){e=e.__array}let g=0;const y=e.length;for(g=0;g{"use strict";const n=r(87325);const i=r(81956);const o=r(88383);const s=r(6709);const a=r(67652);const u=r(5638);const c=r(8274);const l=r(54996);const d=r(22522);const h=r(55669)["default"];const m=r(52492);const{populateModelSymbol:g}=r(63241);e.exports=function assignVals(e){const t=Object.assign({},s(e,"allOptions.options.options"),s(e,"allOptions.options"));const r=Object.assign({},e.options,t,{justOne:e.justOne});r.$nullIfNotFound=e.isVirtual;const y=e.populatedModel;const v=[].concat(e.rawIds);e.allIds=[].concat(e.allIds);o(e.rawIds,e.rawDocs,e.rawOrder,r);const b=e.docs;const _=e.rawIds;const E=e.options;const k=e.count&&e.isVirtual;let x;function setValue(t){if(k){return t}if(t instanceof i){return t.val}if(t===void 0){return t}const n=e.allIds[x];if(e.justOne===true&&Array.isArray(t)){const e=[];for(const r of t){const t=u.get(r);if(t==null||t===y){e.push(r)}}while(t.length>e.length){Array.prototype.pop.apply(t,[])}for(let r=0;r{t.set(e[n],r);return t}),new Map)}if(u&&Array.isArray(i)){for(const e of i){if(e!=null&&e.$__!=null){e.$__.parent=b[x]}}}else if(u&&i!=null&&i.$__!=null){i.$__.parent=b[x]}if(e.isVirtual&&u){b[x].$populated(t,e.justOne?v[0]:v,e.allOptions);if(Array.isArray(i)){i=i.map((e=>e==null?void 0:e))}d.set(t,i,b[x],void 0,setValue,false);continue}const E=t.split(".");let C=b[x];const O=E[0];for(let e=0;eArray.isArray(e)))){return e.map((e=>numDocs(e)))}return e.length}return e==null?0:1} /*! * 1) Apply backwards compatible find/findOne behavior to sub documents * * find logic: * a) filter out non-documents * b) remove _id from sub docs when user specified * * findOne * a) if no doc found, set to null * b) remove _id from sub docs when user specified * * 2) Remove _ids when specified by users query. * * background: * _ids are left in the query even when user excludes them so * that population mapping can occur. */function valueFilter(e,t,r,n){const i=typeof r.transform==="function";const o=i?r.transform:noop;if(Array.isArray(e)){const s=[];const a=e.length;for(let u=0;u=t.originalLimit){break}}const u=s.length;while(e.length>u){Array.prototype.pop.apply(e,[])}let c=0;if(m.isMongooseArray(e)){for(c=0;c{"use strict";const n=r(81956);const i=r(75254);const{trusted:o}=r(92973);e.exports=function createPopulateQueryFilter(e,t,r,n,s){const a=_formatMatch(t);if(r.size===1){const t=Array.from(r)[0];const u=n.schema.path(t);if(t!=="_id"||!a["_id"]){e=_filterInvalidIds(e,u,s);a[t]=o({$in:e})}const c=i(t);for(let r=0;r!(e instanceof n)));if(!r){return e}return e.filter((e=>{try{t.cast(e);return true}catch(e){return false}}))} /*! * Format `mod.match` given that it may be an array that we need to $or if * the client has multiple docs with match functions */function _formatMatch(e){if(Array.isArray(e)){if(e.length>1){return{$or:[].concat(e.map((e=>Object.assign({},e))))}}return Object.assign({},e[0])}return Object.assign({},e)}},9803:(e,t,r)=>{"use strict";const n=r(88513);const i=r(81956);const o=r(6709);const s=r(74693);const a=r(55716);const u=r(72069);const c=r(67652);const l=r(8274);const d=r(22522);const h=r(93105);const m=r(52492);const g=r(63241).modelSymbol;const y=r(63241).populateModelSymbol;const v=r(11035).schemaMixedSymbol;e.exports=function getModelsMapForPopulate(e,t,r){let i;const a=t.length;const g=[];const y=r.model&&r.model.modelName||r.model;let b;let _;let E;const k={};const x=e.schema;if(r._localModel!=null&&r._localModel.schema.nested[r.path]){return[]}const C=c(e.schema,r.path);const O=C==null?null:C.virtual;if(O!=null){return _virtualPopulate(e,t,r,C)}let D=u(e,x,null,r.path);D=Array.isArray(D)?D:[D].filter((e=>e!=null));if(D.length===0&&r.strictPopulate!==false&&r._localModel!=null){return new n("Cannot populate path `"+(r._fullPath||r.path)+"` because it is not in your schema. Set the `strictPopulate` option "+"to false to override.")}for(let s=0;s!e.$isMongooseArray)):!b.$isMongooseArray}}if(!E){continue}D.isVirtual=false;D.justOne=a;D.localField=B;D.foreignField=P;const I=_getLocalFieldValues(i,B,e,r,null,b);const R=String(m.getValue(P,i));r._docs[R]=Array.isArray(I)?I.slice():I;let N=o(r,"match",null);const $=typeof N==="function";if($){N=N.call(i,i)}D.match=N;D.hasMatchFunction=$;D.isRefPath=h;D.modelNamesInOrder=O;if(h){const e=_findRefPathForDiscriminators(i,x,D,r,_,I);E=e||E}try{addModelNamesToMap(e,g,k,E,r,D,I,i,C)}catch(e){return e}}return g;function _getModelNames(e,t,n,i){let a;let u=false;let c=null;if(t&&t.instance==="Array"){t=t.caster}if(t&&t.$isSchemaMap){t=t.$__schemaType}const g=t&&t.options&&t.options.ref;_=t&&t.options&&t.options.refPath;if(t!=null&&t[v]&&!g&&!_&&!n){return{modelNames:null}}if(n){a=[n]}else if(_!=null){if(typeof _==="function"){const n=r.path.slice(0,r.path.length-t.path.length-1);const i=d.get(n,e,l);const o=Array.isArray(i)?m.array.flatten(i):i?[i]:[];a=new Set;for(const t of o){_=_.call(t,t,r.path);h(_,e,r.path,x,r._queryProjection).forEach((e=>a.add(e)))}a=Array.from(a)}else{a=h(_,e,r.path,x,r._queryProjection)}u=true}else{let n;let g;let y;let v;let b=i;const _=i.schema.options.discriminatorKey;if(!t&&_&&(v=m.getValue(_,e))){const e=s(i.discriminators,v)||i;if(e!=null){b=e}else{try{b=_getModelFromConn(i.db,v)}catch(e){return e}}y=b.schema._getSchema(r.path);if(y&&y.caster){y=y.caster}}else{y=t}if(y!=null){c=!y.$isMongooseArray&&!y._arrayPath}if((n=o(y,"options.ref"))!=null){if(y!=null&&typeof n==="function"&&r.path.endsWith("."+y.path)){a=new Set;const t=r.path.slice(0,r.path.length-y.path.length-1);const i=d.get(t,e,l);const o=Array.isArray(i)?m.array.flatten(i):i?[i]:[];for(const e of o){a.add(handleRefFunction(n,e))}if(o.length===0){a=[handleRefFunction(n,e)]}else{a=Array.from(a)}}else{n=handleRefFunction(n,e);a=[n]}}else if((y=o(t,"options.refPath"))!=null){u=true;if(typeof g==="function"){const t=r.path.slice(0,r.path.length-y.path.length-1);const n=d.get(t,e,l);const i=Array.isArray(n)?m.array.flatten(n):n?[n]:[];a=new Set;for(const t of i){g=g.call(t,t,r.path);h(g,e,r.path,x,r._queryProjection).forEach((e=>a.add(e)))}a=Array.from(a)}else{a=h(g,e,r.path,x,r._queryProjection)}}}if(!a){if(r._localModel==null){a=[i.modelName]}else{return{modelNames:a,justOne:c,isRefPath:u,refPath:_}}}if(!Array.isArray(a)){a=[a]}return{modelNames:a,justOne:c,isRefPath:u,refPath:_}}}; /*! * ignore */function _virtualPopulate(e,t,r,i){const s=[];const a={};const u=i.virtual;for(const c of t){let t=null;const m={};let y;const v=i.nestedSchemaPath?i.nestedSchemaPath+".":"";if(typeof u.options.localField==="function"){y=v+u.options.localField.call(c,c)}else if(Array.isArray(u.options.localField)){y=u.options.localField.map((e=>v+e))}else{y=v+u.options.localField}m.count=u.options.count;if(u.options.skip!=null&&!r.hasOwnProperty("skip")){r.skip=u.options.skip}if(u.options.limit!=null&&!r.hasOwnProperty("limit")){r.limit=u.options.limit}if(u.options.perDocumentLimit!=null&&!r.hasOwnProperty("perDocumentLimit")){r.perDocumentLimit=u.options.perDocumentLimit}let b=u.options.foreignField;if(!y||!b){return new n("If you are populating a virtual, you must set the "+"localField and foreignField options")}if(typeof y==="function"){y=y.call(c,c)}if(typeof b==="function"){b=b.call(c)}m.isRefPath=false;let _=null;if("justOne"in r&&r.justOne!==void 0){_=r.justOne}if(u.options.refPath){t=h(u.options.refPath,c,r.path);_=!!u.options.justOne;m.isRefPath=true}else if(u.options.ref){let e;if(typeof u.options.ref==="function"&&!u.options.ref[g]){e=u.options.ref.call(c,c)}else{e=u.options.ref}_=!!u.options.justOne;if(Array.isArray(e)){t=e}else{t=[e]}}m.isVirtual=true;m.virtual=u;m.justOne=_;let E=o(r,"match",null)||o(m,"virtual.options.match",null)||o(m,"virtual.options.options.match",null);let k=typeof E==="function";if(k){E=E.call(c,c)}if(Array.isArray(y)&&Array.isArray(b)&&y.length===b.length){E=Object.assign({},E);for(let t=1;tE[r]===e))}const k=i.perDocumentLimit==null?o(i,"options.perDocumentLimit",null):i.perDocumentLimit;if(!r[e]||k!=null){const n={model:v};if(s.isVirtual&&o(s.virtual,"options.options")){n.options=m.clone(s.virtual.options.options)}else if(c!=null){n.options=Object.assign({},c)}m.merge(n,i);i[y]=v;r[e]={model:v,options:n,match:s.hasMatchFunction?[s.match]:s.match,docs:[u],ids:[b],allIds:[a],unpopulatedValues:[l],localField:new Set([s.localField]),foreignField:new Set([s.foreignField]),justOne:s.justOne,isVirtual:s.isVirtual,virtual:s.virtual,count:s.count,[y]:v};t.push(r[e])}else{r[e].localField.add(s.localField);r[e].foreignField.add(s.foreignField);r[e].docs.push(u);r[e].ids.push(b);r[e].allIds.push(a);r[e].unpopulatedValues.push(l);if(s.hasMatchFunction){r[e].match.push(s.match)}}}}function _getModelFromConn(e,t){if(e.models[t]==null&&e._parent!=null){return _getModelFromConn(e._parent,t)}return e.model(t)} /*! * ignore */function handleRefFunction(e,t){if(typeof e==="function"&&!e[g]){return e.call(t,t)}return e} /*! * ignore */function _getLocalFieldValues(e,t,r,n,i,s){const a=r.schema._getPathType(t);const u=a==="real"?r.schema.path(t):a.schema;const c=u&&u.getters?u.getters:[];t=u!=null&&u.instance==="Embedded"?t+"._id":t;const h=o(n,"options",{});const g="getters"in h?h.getters:o(i,"options.getters",false);if(c.length!==0&&g){const n=e.$__!=null?e:r.hydrate(e);const i=m.getValue(t,e);if(Array.isArray(i)){const e=m.getValue(t.split(".").slice(0,-1),n);return i.map(((t,r)=>u.applyGetters(t,e[r])))}else{return u.applyGetters(i,n)}}else{return convertTo_id(d.get(t,e,l),s)}} /*! * Retrieve the _id of `val` if a Document or Array of Documents. * * @param {Array|Document|Any} val * @return {Array|Document|Any} */function convertTo_id(e,t){if(e!=null&&e.$__!=null){return e._id}if(e!=null&&e._id!=null&&(t==null||!t.$isSchemaMap)){return e._id}if(Array.isArray(e)){const t=e.__array!=null?e.__array:e;for(let e=0;e{if(e===t){s[r]=i(e)}}));continue}const v=m.getValue(a.slice(o+1).join("."),e);c.push(v)}}}return c}},72069:(e,t,r)=>{"use strict"; /*! * ignore */const n=r(9902);const i=r(6709);const o=r(74693);const s=r(5638);const a=r(22522);const u=r(63241).populateModelSymbol; /*! * Given a model and its schema, find all possible schema types for `path`, * including searching through discriminators. If `doc` is specified, will * use the doc's values for discriminator keys when searching, otherwise * will search all discriminators. * * @param {Schema} schema * @param {Object} doc POJO * @param {string} path */e.exports=function getSchemaTypes(e,t,r,c){const l=t.path(c);const d=r;if(l){return l}const h=t.discriminatorMapping&&t.discriminatorMapping.key;if(h&&e!=null){if(r!=null&&r[h]!=null){const n=o(e.discriminators,r[h]);t=n?n.schema:t}else if(e.discriminators!=null){return Object.keys(e.discriminators).reduce(((t,r)=>{const n=e.discriminators[r];return t.concat(getSchemaTypes(n,n.schema,null,c))}),[])}}function search(e,t,o,c){let l=e.length+1;let h;let m;while(l--){m=e.slice(0,l).join(".");h=t.path(m);if(h==null){continue}if(h.caster){if(h.caster instanceof n){return h.caster}let i=null;if(h.schema!=null&&h.schema.discriminators!=null){const e=h.schema.discriminators;const t=m+"."+h.schema.options.discriminatorKey;const n=o?a.get(t,o)||[]:[];i=Object.keys(e).reduce((function(t,i){const o=e[i].discriminatorMapping.value;if(r==null||n.indexOf(i)!==-1||n.indexOf(o)!==-1){t.push(e[i])}return t}),[])}if(l!==e.length&&h.schema){let r;if(e[l]==="$"){if(l+1===e.length){return h}r=search(e.slice(l+1),t,o?a.get(m,o):null,c.concat(e.slice(0,l)));if(r){r.$isUnderneathDocArray=r.$isUnderneathDocArray||!h.schema.$isSingleNested}return r}if(i!=null&&i.length>0){r=[];for(const t of i){const n=search(e.slice(l),t,o?a.get(m,o):null,c.concat(e.slice(0,l)));if(n!=null){n.$isUnderneathDocArray=n.$isUnderneathDocArray||!h.schema.$isSingleNested;if(n.$isUnderneathDocArray){r.$isUnderneathDocArray=true}r.push(n)}}return r}else{r=search(e.slice(l),h.schema,o?a.get(m,o):null,c.concat(e.slice(0,l)));if(r){r.$isUnderneathDocArray=r.$isUnderneathDocArray||!h.schema.$isSingleNested}return r}}else if(l!==e.length&&h.$isMongooseArray&&h.casterConstructor.$isMongooseArray){let t=h;while(t.$isMongooseArray&&!t.$isMongooseDocumentArray){t=t.casterConstructor}const r=search(e.slice(l),t.schema,null,c.concat(e.slice(0,l)));if(r!=null){return r}if(t.schema.discriminators){const r=[];for(const n of Object.keys(t.schema.discriminators)){const i=t.schema.discriminators[n]||t.schema;const o=search(e.slice(l),i,null,c.concat(e.slice(0,l)));if(o!=null){r.push(o)}}if(r.length>0){return r}}}}const g=c.concat([m]).join(".");if(d!=null&&d.$__&&d.$populated(g)&&l0?s.get(y[0]):s.get(y);const r=t!=null?t.schema:null;if(r!=null){const t=search(e.slice(l),r,o?a.get(m,o):null,c.concat(e.slice(0,l)));if(t!=null){t.$isUnderneathDocArray=t.$isUnderneathDocArray||!r.$isSingleNested;return t}}}return h}}const m=c.split(".");for(let e=0;e{"use strict";e.exports=getVirtual; /*! * ignore */function getVirtual(e,t){if(e.virtuals[t]){return{virtual:e.virtuals[t],path:void 0}}const r=t.split(".");let n="";let i="";for(let o=0;o0?".":"")+r[o];if(e.virtuals[n]){if(o===r.length-1){return{virtual:e.virtuals[n],path:i}}continue}if(e.nested[n]){continue}if(e.paths[n]&&e.paths[n].schema){e=e.paths[n].schema;const t=r.slice(o+1).join(".");if(e.virtuals[t]){if(o===r.length-2){return{virtual:e.virtuals[t],nestedSchemaPath:[i,n].filter((e=>!!e)).join(".")}}continue}if(o+1!!e)).join(".");return{virtual:o.virtual,nestedSchemaPath:e}}}}i+=(i.length>0?".":"")+n;n="";continue}if(e.discriminators){for(const r of Object.keys(e.discriminators)){const n=getVirtual(e.discriminators[r],t);if(n)return n}}return null}}},5638:e=>{"use strict"; /*! * ignore */e.exports=new WeakMap},8274:e=>{"use strict";e.exports=function lookupLocalFields(e,t,r){if(e==null){return e}if(e._doc!=null){e=e._doc}if(arguments.length>=3){if(typeof e!=="object"){return void 0}if(r===void 0){return void 0}if(e instanceof Map){e.set(t,r)}else{e[t]=r}return r}if(t==="$*"){return e instanceof Map?Array.from(e.values()):Object.keys(e).map((t=>e[t]))}if(e instanceof Map){return e.get(t)}return e[t]}},54996:(e,t,r)=>{"use strict";const n=r(52492); /*! * If populating a path within a document array, make sure each * subdoc within the array knows its subpaths are populated. * * ####Example: * const doc = await Article.findOne().populate('comments.author'); * doc.comments[0].populated('author'); // Should be set */e.exports=function markArraySubdocsPopulated(e,t){if(e._id==null||t==null||t.length===0){return}const r=String(e._id);for(const i of t){if(i.isVirtual){continue}const t=i.path;const o=t.split(".");for(let t=0;t{"use strict";const n=r(50598);const i=r(87739);const o=r(8274);const s=r(22522);const a=r(73837);const u=r(52492);const c=/(\.\d+$|\.\d+\.)/g;e.exports=function modelNamesFromRefPath(e,t,r,l,d){if(e==null){return[]}if(typeof e==="string"&&d!=null&&i(d,e)){throw new n("refPath `"+e+"` must not be excluded in projection, got "+a.inspect(d))}if(c.test(r)){const n=r.split(c);if(n[n.length-1]===""){throw new Error("Can't populate individual element in an array")}let i="";let a=e;for(let e=0;e{"use strict";const n=r(6709);const i=r(22522);const o=r(91069); /*! * ignore */e.exports=function removeDeselectedForeignField(e,t,r){const s=o(n(t,"select",null),true)||o(n(t,"options.select",null),true);if(s==null){return}for(const t of e){if(!s.hasOwnProperty("-"+t)){continue}for(const e of r){if(e.$__!=null){i.unset(t,e._doc)}else{i.unset(t,e)}}}}},89702:(e,t,r)=>{"use strict";const n=r(50598);const i=r(73837);e.exports=validateRef;function validateRef(e,t){if(typeof e==="string"){return}if(typeof e==="function"){return}throw new n('Invalid ref at path "'+t+'". Got '+i.inspect(e,{depth:0}))}},24e3:(e,t,r)=>{"use strict";const n=r(52492);if(typeof jest!=="undefined"&&typeof window!=="undefined"){n.warn("Mongoose: looks like you're trying to test a Mongoose app "+"with Jest's default jsdom test environment. Please make sure you read "+"Mongoose's docs on configuring Jest to test Node.js apps: "+"http://mongoosejs.com/docs/jest.html")}if(typeof jest!=="undefined"&&process.nextTick.toString().indexOf("nextTick")===-1){n.warn("Mongoose: looks like you're trying to test a Mongoose app "+"with Jest's mock timers enabled. Please make sure you read "+"Mongoose's docs on configuring Jest to test Node.js apps: "+"http://mongoosejs.com/docs/jest.html")}},47133:(e,t,r)=>{"use strict";const n=r(48546);const i=r(88513);function processConnectionOptions(e,t){const r=t?t:{};const i=r.readPreference?r.readPreference:getUriReadPreference(e);const o=i&&i!=="primary"?resolveOptsConflicts(i,r):r;return n(o)}function resolveOptsConflicts(e,t){if(setsIndexOptions(t)&&setsSecondaryRead(e)){throwReadPreferenceError()}else{return defaultIndexOptsToFalse(t)}}function setsIndexOptions(e){const t=e.config&&e.config.autoIndex;const{autoCreate:r,autoIndex:n}=e;return!!(t||r||n)}function setsSecondaryRead(e){return!!(e==="secondary"||e==="secondaryPreferred")}function getUriReadPreference(e){const t=/(?:&|\?)readPreference=(\w+)(?:&|$)/;const r=t.exec(e);return r?r[1]:null}function defaultIndexOptsToFalse(e){e.config={autoIndex:false};e.autoCreate=false;e.autoIndex=false;return e}function throwReadPreferenceError(){throw new i("MongoDB prohibits index creation on connections that read from "+'non-primary replicas. Connections that set "readPreference" to "secondary" or '+'"secondaryPreferred" may not opt-in to the following connection options: '+"autoCreate, autoIndex")}e.exports=processConnectionOptions},72866:e=>{"use strict"; /*! * ignore */e.exports=function isDefiningProjection(e){if(e==null){return true}if(typeof e==="object"){return!("$meta"in e)&&!("$slice"in e)}return true}},60257:(e,t,r)=>{"use strict";const n=r(72866); /*! * ignore */e.exports=function isExclusive(e){if(e==null){return null}const t=Object.keys(e);let r=t.length;let i=null;if(r===1&&t[0]==="_id"){i=!e._id}else{while(r--){if(t[r]!=="_id"&&n(e[t[r]])){i=!e[t[r]];break}}}return i}},46072:(e,t,r)=>{"use strict";const n=r(72866); /*! * ignore */e.exports=function isInclusive(e){if(e==null){return false}const t=Object.keys(e);const r=t.length;if(r===0){return false}for(let i=0;i{"use strict";const n=r(72866); /*! * Determines if `path` is excluded by `projection` * * @param {Object} projection * @param {string} path * @return {Boolean} */e.exports=function isPathExcluded(e,t){if(t==="_id"){return e._id===0}const r=Object.keys(e);let i=null;for(const o of r){if(n(e[o])){i=e[t]===1?"inclusive":"exclusive";break}}if(i==="inclusive"){return e[t]!==1}if(i==="exclusive"){return e[t]===0}return false}},17467:e=>{"use strict"; /*! * ignore */e.exports=function isPathSelectedInclusive(e,t){const r=t.split(".");let n="";let i;let o;let s;for(let a=0;a{"use strict"; /*! * Determines if `path2` is a subpath of or equal to `path1` * * @param {string} path1 * @param {string} path2 * @return {Boolean} */e.exports=function isSubpath(e,t){return e===t||t.startsWith(e+".")}},91069:e=>{"use strict";e.exports=function parseProjection(e,t){const r=typeof e;if(r==="string"){e=e.split(/\s+/)}if(!Array.isArray(e)&&Object.prototype.toString.call(e)!=="[object Arguments]"){return e}const n=e.length;const i={};for(let r=0;r{"use strict";const n=r(35071);const i=r(64248);const o=Symbol("mongoose:emitted");e.exports=function promiseOrCallback(e,t,r,s){if(typeof e==="function"){return t((function(t){if(t!=null){if(r!=null&&r.listeners!=null&&r.listeners("error").length>0&&!t[o]){t[o]=true;r.emit("error",t)}try{e(t)}catch(t){return i((()=>{throw t}))}return}e.apply(this,arguments)}))}s=s||n.get();return new s(((e,n)=>{t((function(t,i){if(t!=null){if(r!=null&&r.listeners!=null&&r.listeners("error").length>0&&!t[o]){t[o]=true;r.emit("error",t)}return n(t)}if(arguments.length>2){return e(Array.prototype.slice.call(arguments,1))}e(i)}))}))}},90412:(e,t,r)=>{"use strict";const n=r(52492);e.exports=function applyGlobalMaxTimeMS(e,t){if(n.hasUserDefinedProperty(e,"maxTimeMS")){return}if(n.hasUserDefinedProperty(t.db.options,"maxTimeMS")){e.maxTimeMS=t.db.options.maxTimeMS}else if(n.hasUserDefinedProperty(t.base.options,"maxTimeMS")){e.maxTimeMS=t.base.options.maxTimeMS}}},38956:(e,t,r)=>{"use strict"; /*! * ignore */e.exports=applyQueryMiddleware;const n=r(87765); /*! * ignore */applyQueryMiddleware.middlewareFunctions=n.concat(["validate"]); /*! * Apply query middleware * * @param {Query} query constructor * @param {Model} model */function applyQueryMiddleware(e,t){const r={useErrorHandlers:true,numCallbackParams:1,nullResultByDefault:true};const n=t.hooks.filter((e=>{const t=_getContexts(e);if(e.name==="updateOne"){return t.query==null||!!t.query}if(e.name==="deleteOne"){return!!t.query||Object.keys(t).length===0}if(e.name==="validate"||e.name==="remove"){return!!t.query}if(e.query!=null||e.document!=null){return!!e.query}return true}));e.prototype._execUpdate=n.createWrapper("update",e.prototype._execUpdate,null,r);e.prototype.__distinct=n.createWrapper("distinct",e.prototype.__distinct,null,r);e.prototype.validate=n.createWrapper("validate",e.prototype.validate,null,r);applyQueryMiddleware.middlewareFunctions.filter((e=>e!=="update"&&e!=="distinct"&&e!=="validate")).forEach((t=>{e.prototype[`_${t}`]=n.createWrapper(t,e.prototype[`_${t}`],null,r)}))}function _getContexts(e){const t={};if(e.hasOwnProperty("query")){t.query=e.query}if(e.hasOwnProperty("document")){t.document=e.document}return t}},17727:(e,t,r)=>{"use strict";const n=r(94498);const i=r(44197);const o=r(93054);const s=new Set(["$and","$or","$not"]);const a=new Set(["$cmp","$eq","$lt","$lte","$gt","$gte"]);const u=new Set(["$multiply","$divide","$log","$mod","$trunc","$avg","$max","$min","$stdDevPop","$stdDevSamp","$sum"]);const c=new Set(["$abs","$exp","$ceil","$floor","$ln","$log10","$round","$sqrt","$sin","$cos","$tan","$asin","$acos","$atan","$atan2","$asinh","$acosh","$atanh","$sinh","$cosh","$tanh","$degreesToRadians","$radiansToDegrees"]);const l=new Set(["$arrayElemAt","$first","$last"]);const d=new Set(["$year","$month","$week","$dayOfMonth","$dayOfYear","$hour","$minute","$second","$isoDayOfWeek","$isoWeekYear","$isoWeek","$millisecond"]);e.exports=function cast$expr(e,t,r){if(typeof e!=="object"||e==null){throw new Error("`$expr` must be an object")}return _castExpression(e,t,r)};function _castExpression(e,t,r){if(isPath(e)){return e}if(e.$cond!=null){if(Array.isArray(e.$cond)){e.$cond=e.$cond.map((e=>_castExpression(e,t,r)))}else{e.$cond.if=_castExpression(e.$cond.if,t,r);e.$cond.then=_castExpression(e.$cond.then,t,r);e.$cond.else=_castExpression(e.$cond.else,t,r)}}else if(e.$ifNull!=null){e.$ifNull.map((e=>_castExpression(e,t,r)))}else if(e.$switch!=null){e.branches.map((e=>_castExpression(e,t,r)));e.default=_castExpression(e.default,t,r)}const n=Object.keys(e);for(const i of n){if(s.has(i)){e[i]=e[i].map((e=>_castExpression(e,t,r)))}else if(a.has(i)){e[i]=castComparison(e[i],t,r)}else if(u.has(i)){e[i]=castArithmetic(e[i],t,r)}else if(c.has(i)){e[i]=castNumberOperator(e[i],t,r)}}if(e.$in){e.$in=castIn(e.$in,t,r)}if(e.$size){e.$size=castNumberOperator(e.$size,t,r)}_omitUndefined(e);return e}function _omitUndefined(e){const t=Object.keys(e);for(const r of t){if(e[r]===void 0){delete e[r]}}}function castNumberOperator(e){if(!isLiteral(e)){return e}try{return o(e)}catch(t){throw new n("Number",e)}}function castIn(e,t,r){let n=e[0];let o=e[1];if(!isPath(o)){return e}o=o.slice(1);const s=t.path(o);if(s==null){if(r===false){return e}else if(r==="throw"){throw new i("$in")}return void 0}if(!s.$isMongooseArray){throw new Error("Path must be an array for $in")}if(s.$isMongooseDocumentArray){n=s.$embeddedSchemaType.cast(n)}else{n=s.caster.cast(n)}return[n,e[1]]}function castArithmetic(e){if(!Array.isArray(e)){if(!isLiteral(e)){return e}try{return o(e)}catch(t){throw new n("Number",e)}}return e.map((e=>{if(!isLiteral(e)){return e}try{return o(e)}catch(t){throw new n("Number",e)}}))}function castComparison(e,t,r){if(!Array.isArray(e)||e.length!==2){throw new Error("Comparison operator must be an array of length 2")}e[0]=_castExpression(e[0],t,r);const s=e[0];if(isLiteral(e[1])){let a=null;let u=null;let c=null;if(isPath(s)){a=s.slice(1);u=t.path(a)}else if(typeof s==="object"&&s!=null){for(const e of Object.keys(s)){if(d.has(e)&&isPath(s[e])){a=s[e].slice(1)+"."+e;c=o}else if(l.has(e)&&isPath(s[e])){a=s[e].slice(1)+"."+e;u=t.path(s[e].slice(1));if(u!=null){if(u.$isMongooseDocumentArray){u=u.$embeddedSchemaType}else if(u.$isMongooseArray){u=u.caster}}}}}const h=typeof e[1]==="object"&&e[1]!=null&&e[1].$literal!=null;if(u!=null){if(h){e[1]={$literal:u.cast(e[1].$literal)}}else{e[1]=u.cast(e[1])}}else if(c!=null){if(h){try{e[1]={$literal:c(e[1].$literal)}}catch(t){throw new n(c.name.replace(/^cast/,""),e[1],a+".$literal")}}else{try{e[1]=c(e[1])}catch(t){throw new n(c.name.replace(/^cast/,""),e[1],a)}}}else if(a!=null&&r===true){return void 0}else if(a!=null&&r==="throw"){throw new i(a)}}else{e[1]=_castExpression(e[1])}return e}function isPath(e){return typeof e==="string"&&e.startsWith("$")}function isLiteral(e){if(typeof e==="string"&&e.startsWith("$")){return false}if(typeof e==="object"&&e!=null&&Object.keys(e).find((e=>e.startsWith("$")))){return e.$literal!=null}return true}},70131:(e,t,r)=>{"use strict";const n=r(58356);e.exports=function castFilterPath(e,t,r){const i=e;const o=Object.keys(r).some(n);if(!o){return t.castForQueryWrapper({val:r,context:i})}const s=Object.keys(r);let a=s.length;while(a--){const e=s[a];const o=r[e];if(e==="$not"){if(o&&t&&!t.caster){const s=Object.keys(o);if(s.length&&n(s[0])){for(const e of Object.keys(o)){o[e]=t.castForQueryWrapper({$conditional:e,val:o[e],context:i})}}else{r[e]=t.castForQueryWrapper({$conditional:e,val:o,context:i})}continue}}else{r[e]=t.castForQueryWrapper({$conditional:e,val:o,context:i})}}return r}},30003:(e,t,r)=>{"use strict";const n=r(94498);const i=r(50598);const o=r(44197);const s=r(83793);const a=r(93054);const u=r(15278);const c=r(55716);const l=r(23249);const d=r(61906);const h=r(96885);const m=r(11035).schemaMixedSymbol;const g=r(68248);const y=r(52492); /*! * Casts an update op based on the given schema * * @param {Schema} schema * @param {Object} obj * @param {Object} options * @param {Boolean} [options.overwrite] defaults to false * @param {Boolean|String} [options.strict] defaults to true * @param {Query} context passed to setters * @return {Boolean} true iff the update is non-empty */e.exports=function castUpdate(e,t,r,n,i){if(t==null){return undefined}r=r||{};if(Array.isArray(t)){const e=t.length;for(let r=0;r0){return{$setOnInsert:i}}return u}; /*! * ignore */function castPipelineOperator(e,t){if(e==="$unset"){if(typeof t!=="string"&&(!Array.isArray(t)||t.find((e=>typeof e!=="string")))){throw new i("Invalid $unset in pipeline, must be "+" a string or an array of strings")}return t}if(e==="$project"){if(t==null||typeof t!=="object"){throw new i("Invalid $project in pipeline, must be an object")}return t}if(e==="$addFields"||e==="$set"){if(t==null||typeof t!=="object"){throw new i("Invalid "+e+" in pipeline, must be an object")}return t}else if(e==="$replaceRoot"||e==="$replaceWith"){if(t==null||typeof t!=="object"){throw new i("Invalid "+e+" in pipeline, must be an object")}return t}throw new i('Invalid update pipeline operator: "'+e+'"')} /*! * Walk each path of obj and cast its values * according to its schema. * * @param {Schema} schema * @param {Object} obj - part of a query * @param {String} op - the atomic operator ($pull, $set, etc) * @param {Object} options * @param {Boolean|String} [options.strict] * @param {Query} context * @param {String} pref - path prefix (internal only) * @return {Bool} true if this path has keys to update * @api private */function walkUpdatePath(e,t,r,n,i,s,h){const v=n.strict;const b=h?h+".":"";const E=Object.keys(t);let k=E.length;let x=false;let C;let O;let D;let B=null;while(k--){O=E[k];D=t[O];if(r==="$pull"){C=e._getSchema(b+O);if(C!=null&&C.schema!=null){t[O]=u(C.schema,t[O],n,i);x=true;continue}}if(c(D)==="Object"){C=e._getSchema(b+O);if(C==null){const r=l(e,t,s,b+O,n);if(r.schematype!=null){C=r.schematype}}if(r!=="$setOnInsert"&&d(C,v,t,O,b+O,i)){continue}if(C&&C.caster&&r in _){if("$each"in D){x=true;try{t[O]={$each:castUpdateVal(C,D.$each,r,O,i,b+O)}}catch(e){B=_handleCastError(e,i,O,B)}if(D.$slice!=null){t[O].$slice=D.$slice|0}if(D.$sort){t[O].$sort=D.$sort}if(D.$position!=null){t[O].$position=a(D.$position)}}else{if(C!=null&&C.$isSingleNested){const e=v==null?C.schema.options.strict:v;try{t[O]=C.castForQuery(D,i,{strict:e})}catch(e){B=_handleCastError(e,i,O,B)}}else{try{t[O]=castUpdateVal(C,D,r,O,i,b+O)}catch(e){B=_handleCastError(e,i,O,B)}}if(t[O]===void 0){delete t[O];continue}x=true}}else if(r==="$currentDate"||r in _&&C){try{t[O]=castUpdateVal(C,D,r,O,i,b+O)}catch(e){B=_handleCastError(e,i,O,B)}if(t[O]===void 0){delete t[O];continue}x=true}else{const a=b+O;const u=e._getPathType(a);let c=v;if(u&&u.schema&&c==null){c=u.schema.options.strict}if(u.pathType==="undefined"){if(c==="throw"){throw new o(a)}else if(c){delete t[O];continue}}x|=walkUpdatePath(e,D,r,n,i,s,b+O)||y.isObject(D)&&Object.keys(D).length===0}}else{const a=O==="$each"||O==="$or"||O==="$and"||O==="$in"?h:b+O;C=e._getSchema(a);if(r!=="$setOnInsert"&&d(C,v,t,O,b+O,i)){continue}let u=e._getPathType(a);if(C==null){const r=l(e,t,s,a,n);if(r.schematype!=null){C=r.schematype;u=r.type}}let c=v;if(u&&u.schema&&v==null){c=u.schema.options.strict}const y=c&&!C&&!/real|nested/.test(u.pathType);if(y){if(c==="throw"&&e.virtuals[a]==null){throw new o(b+O)}else{delete t[O]}}else{if(r==="$rename"){x=true;continue}try{if(b.length===0||O.indexOf(".")===-1){t[O]=castUpdateVal(C,D,r,O,i,b+O)}else{g(t,O,castUpdateVal(C,D,r,O,i,b+O));delete t[O]}}catch(e){B=_handleCastError(e,i,O,B)}if(Array.isArray(t[O])&&(r==="$addToSet"||r==="$push")&&O!=="$each"){if(C&&C.caster&&!C.caster.$isMongooseArray&&!C.caster[m]){t[O]={$each:t[O]}}}if(t[O]===void 0){delete t[O];continue}x=true}}}if(B!=null){throw B}return x} /*! * ignore */function _handleCastError(e,t,r,n){if(typeof t!=="object"||!t.options.multipleCastError){throw e}n=n||new s;n.addError(r,e);return n} /*! * These operators should be cast to numbers instead * of their path schema type. */const v={$pop:1,$inc:1}; /*! * These ops require no casting because the RHS doesn't do anything. */const b={$unset:1}; /*! * These operators require casting docs * to real Documents for Update operations. */const _={$push:1,$addToSet:1,$set:1,$setOnInsert:1}; /*! * ignore */const E={$set:1,$setOnInsert:1}; /*! * Casts `val` according to `schema` and atomic `op`. * * @param {SchemaType} schema * @param {Object} val * @param {String} op - the atomic operator ($pull, $set, etc) * @param {String} $conditional * @param {Query} context * @api private */function castUpdateVal(e,t,r,i,o,s){if(!e){if(r in v){try{return a(t)}catch(e){throw new n("number",t,s)}}return t}const u=e.caster&&r in _&&(y.isObject(t)||Array.isArray(t));if(u&&!E[r]){let r=0;let n=e;while(n.$isMongooseArray){++r;n=n.caster}let i=0;let s=t;while(Array.isArray(s)){++i;s=s[0]}const a=r-i;while(i{"use strict";const n=r(67579);const i=r(64248);e.exports=completeMany; /*! * Given a model and an array of docs, hydrates all the docs to be instances * of the model. Used to initialize docs returned from the db from `find()` * * @param {Model} model * @param {Array} docs * @param {Object} fields the projection used, including `select` from schemas * @param {Object} userProvidedFields the user-specified projection * @param {Object} opts * @param {Array} [opts.populated] * @param {ClientSession} [opts.session] * @param {Function} callback */function completeMany(e,t,r,o,s,a){const u=[];let c=t.length;const l=c;let d=null;function init(e){if(e!=null){d=d||e}if(d!=null){--c||i((()=>a(d)));return}--c||i((()=>a(d,u)))}for(let i=0;i{"use strict";const n=r(18134);const i=r(6709);const o=r(74693);const s=r(39958); /*! * Like `schema.path()`, except with a document, because impossible to * determine path type without knowing the embedded discriminator key. */e.exports=function getEmbeddedDiscriminatorPath(e,t,r,a,u){const c=a.split(".");let l=null;let d="adhocOrUndefined";r=r||{};t=t||{};const h=u!=null&&Array.isArray(u.arrayFilters)?u.arrayFilters:[];const m=s(t);for(let s=0;se.hasOwnProperty(n)));if(e!=null){g=e[n]}}}if(g==null){continue}const v=o(l.caster.discriminators,g).schema;const b=c.slice(s+1).join(".");l=v.path(b);if(l!=null){d=v._getPathType(b);break}}}return{type:d,schematype:l}}},61906:(e,t,r)=>{"use strict";const n=r(44197);e.exports=function handleImmutable(e,t,r,i,o,s){if(e==null||!e.options||!e.options.immutable){return false}let a=e.options.immutable;if(typeof a==="function"){a=a.call(s,s)}if(!a){return false}if(t===false){return false}if(t==="throw"){throw new n(null,`Field ${o} is immutable and strict = 'throw'`)}delete r[i];return true}},60138:e=>{"use strict"; /*! * ignore */e.exports=function(e){if(e==null||typeof e!=="object"){return false}const t=Object.keys(e);const r=t.length;for(let e=0;e{"use strict";const t=new Set(["$ref","$id","$db"]);e.exports=function isOperator(e){return e.startsWith("$")&&!t.has(e)}},17488:(e,t,r)=>{"use strict";const n=r(60138);const{trustedSymbol:i}=r(92973);e.exports=function sanitizeFilter(e){if(e==null||typeof e!=="object"){return e}if(Array.isArray(e)){for(const t of e){sanitizeFilter(t)}return e}const t=Object.keys(e);for(const r of t){const t=e[r];if(t!=null&&t[i]){continue}if(r==="$and"||r==="$or"){sanitizeFilter(t);continue}if(n(t)){const n=Object.keys(t);if(n.length===1&&n[0]==="$eq"){continue}e[r]={$eq:e[r]}}}return e}},73956:e=>{"use strict";e.exports=function sanitizeProjection(e){if(e==null){return}const t=Object.keys(e);for(let r=0;r{"use strict";const n=r(60257);const i=r(46072); /*! * ignore */e.exports=function selectPopulatedFields(e,t,r){if(r==null){return}const o=Object.keys(r);t=t||{};if(i(e)){for(const r of o){if(!isPathInFields(t,r)){e[r]=1}else if(t[r]===0){delete e[r]}}}else if(n(e)){for(const r of o){if(t[r]==null){delete e[r]}}}}; /*! * ignore */function isPathInFields(e,t){const r=t.split(".");const n=r.length;let i=r[0];for(let t=1;t{"use strict";const r=Symbol("mongoose#trustedSymbol");t.trustedSymbol=r;t.trusted=function trusted(e){if(e==null||typeof e!=="object"){return e}e[r]=true;return e}},87765:e=>{"use strict";e.exports=Object.freeze(["count","countDocuments","distinct","estimatedDocumentCount","find","findOne","findOneAndReplace","findOneAndUpdate","replaceOne","update","updateMany","updateOne","deleteMany","deleteOne","findOneAndDelete","findOneAndRemove","remove"])},31164:(e,t,r)=>{"use strict";const n=r(50598); /*! * A query thunk is the function responsible for sending the query to MongoDB, * like `Query#_findOne()` or `Query#_execUpdate()`. The `Query#exec()` function * calls a thunk. The term "thunk" here is the traditional Node.js definition: * a function that takes exactly 1 parameter, a callback. * * This function defines common behavior for all query thunks. */e.exports=function wrapThunk(e){return function _wrappedThunk(t){if(this._executionStack!=null){let e=this.toString();if(e.length>60){e=e.slice(0,60)+"..."}const r=new n("Query was already executed: "+e);r.originalStack=this._executionStack.stack;return t(r)}this._executionStack=new Error;e.call(this,t)}}},74441:e=>{"use strict";e.exports=function addAutoId(e){const t={_id:{auto:true}};t._id[e.options.typeKey]="ObjectId";e.add(t)}},7034:e=>{"use strict";e.exports=function applyPlugins(e,t,r,n){if(e[n]){return}e[n]=true;if(!r||!r.skipTopLevel){let r=null;for(const n of t){const t=n[1]==null?null:n[1].tags;if(!Array.isArray(t)){e.plugin(n[0],n[1]);continue}r=r||new Set(e.options.pluginTags||[]);if(!t.find((e=>r.has(e)))){continue}e.plugin(n[0],n[1])}}r=Object.assign({},r);delete r.skipTopLevel;if(r.applyPluginsToChildSchemas!==false){for(const i of Object.keys(e.paths)){const o=e.paths[i];if(o.schema!=null){applyPlugins(o.schema,t,r,n);o.caster.prototype.$__setSchema(o.schema)}}}const i=e.discriminators;if(i==null){return}const o=r.applyPluginsToDiscriminators;const s=Object.keys(i);for(const e of s){const r=i[e];applyPlugins(r,t,{skipTopLevel:!o},n)}}},35724:(e,t,r)=>{"use strict";const n=r(6709);e.exports=function applyWriteConcern(e,t){const r=n(e,"options.writeConcern",{});if(Object.keys(r).length!=0){t.writeConcern={};if(!("w"in t)&&r.w!=null){t.writeConcern.w=r.w}if(!("j"in t)&&r.j!=null){t.writeConcern.j=r.j}if(!("wtimeout"in t)&&r.wtimeout!=null){t.writeConcern.wtimeout=r.wtimeout}}else{if(!("w"in t)&&r.w!=null){t.w=r.w}if(!("j"in t)&&r.j!=null){t.j=r.j}if(!("wtimeout"in t)&&r.wtimeout!=null){t.wtimeout=r.wtimeout}}}},18134:e=>{"use strict";e.exports=function cleanPositionalOperators(e){return e.replace(/\.\$(\[[^\]]*\])?(?=\.)/g,".0").replace(/\.\$(\[[^\]]*\])?$/g,".0")}},87506:(e,t,r)=>{"use strict";const n=r(6709);const i=r(65295); /*! * Gather all indexes defined in the schema, including single nested, * document arrays, and embedded discriminators. */e.exports=function getIndexes(e){let t=[];const r=new WeakMap;const o=e.constructor.indexTypes;const s=new Map;collectIndexes(e);return t;function collectIndexes(e,a,u){if(r.has(e)){return}r.set(e,true);a=a||"";const c=Object.keys(e.paths);for(const r of c){const c=e.paths[r];if(u!=null&&u.paths[r]){continue}if(c.$isMongooseDocumentArray||c.$isSingleNested){if(n(c,"options.excludeIndexes")!==true&&n(c,"schemaOptions.excludeIndexes")!==true&&n(c,"schema.options.excludeIndexes")!==true){collectIndexes(c.schema,a+r+".")}if(c.schema.discriminators!=null){const e=c.schema.discriminators;const t=Object.keys(e);for(const n of t){collectIndexes(e[n],a+r+".",c.schema)}}if(c.$isMongooseDocumentArray){continue}}const l=c._index||c.caster&&c.caster._index;if(l!==false&&l!==null&&l!==undefined){const n={};const u=i(l);const c=u?l:{};const d=typeof l==="string"?l:u?l.type:false;if(d&&o.indexOf(d)!==-1){n[a+r]=d}else if(c.text){n[a+r]="text";delete c.text}else{const e=Number(l)===-1;n[a+r]=e?-1:1}delete c.type;if(!("background"in c)){c.background=true}if(e.options.autoIndex!=null){c._autoIndex=e.options.autoIndex}const h=c&&c.name;if(typeof h==="string"){if(s.has(h)){Object.assign(s.get(h),n)}else{t.push([n,c]);s.set(h,n)}}else{t.push([n,c]);s.set(h,n)}}}r.delete(e);if(a){fixSubIndexPaths(e,a)}else{e._indexes.forEach((function(e){if(!("background"in e[1])){e[1].background=true}}));t=t.concat(e._indexes)}} /*! * Checks for indexes added to subdocs using Schema.index(). * These indexes need their paths prefixed properly. * * schema._indexes = [ [indexObj, options], [indexObj, options] ..] */function fixSubIndexPaths(e,r){const n=e._indexes;const i=n.length;for(let e=0;e{"use strict";const n=r(6709);e.exports=function getKeysInSchemaOrder(e,t,r){const i=r!=null?Object.keys(n(e.tree,r,{})):Object.keys(e.tree);const o=new Set(Object.keys(t));let s;if(o.size>1){s=new Set;for(const e of i){if(o.has(e)){s.add(e)}}for(const e of o){if(!s.has(e)){s.add(e)}}s=Array.from(s)}else{s=Array.from(o)}return s}},93243:e=>{"use strict"; /*! * Behaves like `Schema#path()`, except for it also digs into arrays without * needing to put `.0.`, so `getPath(schema, 'docArr.elProp')` works. */const t=/^\d+$/;e.exports=function getPath(e,r){let n=e.path(r);if(n!=null){return n}const i=r.split(".");let o="";let s=false;for(const r of i){if(s&&t.test(r)){continue}o=o.length===0?r:o+"."+r;n=e.path(o);if(n!=null&&n.schema){e=n.schema;o="";if(!s&&n.$isMongooseDocumentArray){s=true}}}return n}},42543:(e,t,r)=>{"use strict";const n=r(74441);e.exports=function handleIdOption(e,t){if(t==null||t._id==null){return e}e=e.clone();if(!t._id){e.remove("_id");e.options._id=false}else if(!e.paths["_id"]){n(e);e.options._id=true}return e}},97330:e=>{"use strict";e.exports=handleTimestampOption; /*! * ignore */function handleTimestampOption(e,t){if(e==null){return null}if(typeof e==="boolean"){return t}if(typeof e[t]==="boolean"){return e[t]?t:null}if(!(t in e)){return t}return e[t]}},59723:e=>{"use strict"; /*! * ignore */e.exports=function addIdGetter(e){const t=!e.paths["id"]&&e.paths["_id"]&&e.options.id;if(!t){return e}e.virtual("id").get(idGetter);return e}; /*! * Returns this documents _id cast to a string. */function idGetter(){if(this._id!=null){return String(this._id)}return null}},86021:e=>{"use strict";e.exports=function merge(e,t,r){const n=Object.keys(t.tree);const i={};for(const o of n){if(r&&(e.paths[o]||e.nested[o]||e.singleNestedPaths[o])){continue}i[o]=t.tree[o]}e.add(i);e.callQueue=e.callQueue.concat(t.callQueue);e.method(t.methods);e.static(t.statics);for(const r in t.query){e.query[r]=t.query[r]}for(const r in t.virtuals){e.virtuals[r]=t.virtuals[r].clone()}e.s.hooks.merge(t.s.hooks,false)}},67922:(e,t,r)=>{"use strict";const n=r(44197); /*! * ignore */e.exports=function(e){if(e.$immutable){e.$immutableSetter=createImmutableSetter(e.path,e.options.immutable);e.set(e.$immutableSetter)}else if(e.$immutableSetter){e.setters=e.setters.filter((t=>t!==e.$immutableSetter));delete e.$immutableSetter}};function createImmutableSetter(e,t){return function immutableSetter(r){if(this==null||this.$__==null){return r}if(this.isNew){return r}const i=typeof t==="function"?t.call(this,this):t;if(!i){return r}const o=this.$__.priorDoc!=null?this.$__.priorDoc.$__getValue(e):this.$__getValue(e);if(this.$__.strictMode==="throw"&&r!==o){throw new n(e,"Path `"+e+"` is immutable "+"and strict mode is set to throw.",true)}return o}}},22451:(e,t,r)=>{"use strict";const n=r(8207).M;const i=r(6709);e.exports=function(e,t,r,o){o=o||{};const s=o.setDefaultsOnInsert!=null?o.setDefaultsOnInsert:t.base.options.setDefaultsOnInsert;if(!o.upsert||s===false){return r}const a=Object.keys(r||{});const u={};const c={};const l=a.length;const d={};let h=false;for(let e=0;e{"use strict";e.exports=new Set(["__proto__","constructor","prototype"])},63241:(e,t)=>{"use strict";t.arrayAtomicsBackupSymbol=Symbol("mongoose#Array#atomicsBackup");t.arrayAtomicsSymbol=Symbol("mongoose#Array#_atomics");t.arrayParentSymbol=Symbol("mongoose#Array#_parent");t.arrayPathSymbol=Symbol("mongoose#Array#_path");t.arraySchemaSymbol=Symbol("mongoose#Array#_schema");t.documentArrayParent=Symbol("mongoose:documentArrayParent");t.documentIsSelected=Symbol("mongoose#Document#isSelected");t.documentIsModified=Symbol("mongoose#Document#isModified");t.documentModifiedPaths=Symbol("mongoose#Document#modifiedPaths");t.documentSchemaSymbol=Symbol("mongoose#Document#schema");t.getSymbol=Symbol("mongoose#Document#get");t.modelSymbol=Symbol("mongoose#Model");t.objectIdSymbol=Symbol("mongoose#ObjectId");t.populateModelSymbol=Symbol("mongoose.PopulateOptions#Model");t.schemaTypeSymbol=Symbol("mongoose#schemaType");t.sessionNewDocuments=Symbol("mongoose:ClientSession#newDocuments");t.scopeSymbol=Symbol("mongoose#Document#scope");t.validatorErrorSymbol=Symbol("mongoose:validatorError")},58064:(e,t)=>{"use strict";t.i=setTimeout},22693:(e,t,r)=>{"use strict";const n=r(85134);const i=r(6747);const o=r(6709);const s=r(97330);const a=r(11035);e.exports=function setupTimestamps(e,t){const r=e.childSchemas.find(withTimestamp);function withTimestamp(e){const t=e.schema.options.timestamps;return!!t}if(!t&&!r){return}const u=s(t,"createdAt");const c=s(t,"updatedAt");const l=t!=null&&t.hasOwnProperty("currentTime")?t.currentTime:null;const d={};e.$timestamps={createdAt:u,updatedAt:c};if(c&&!e.paths[c]){d[c]=Date}if(u&&!e.paths[u]){d[u]={[e.options.typeKey||"type"]:Date,immutable:true}}e.add(d);e.pre("save",(function(e){const t=o(this,"$__.saveOptions.timestamps");if(t===false){return e()}const r=t!=null&&t.updatedAt===false;const n=t!=null&&t.createdAt===false;const i=l!=null?l():this.ownerDocument().constructor.base.now();if(!n&&this.isNew&&u&&!this.$__getValue(u)&&this.$__isSelected(u)){this.$set(u,i)}if(!r&&c&&(this.isNew||this.$isModified())){let e=i;if(this.isNew&&u!=null){e=this.$__getValue(u)}this.$set(c,e)}e()}));e.methods.initializeTimestamps=function(){const e=l!=null?l():this.constructor.base.now();if(u&&!this.get(u)){this.$set(u,e)}if(c&&!this.get(c)){this.$set(c,e)}return this};_setTimestampsOnUpdate[a.builtInMiddleware]=true;const h={query:true,model:false};e.pre("findOneAndReplace",h,_setTimestampsOnUpdate);e.pre("findOneAndUpdate",h,_setTimestampsOnUpdate);e.pre("replaceOne",h,_setTimestampsOnUpdate);e.pre("update",h,_setTimestampsOnUpdate);e.pre("updateOne",h,_setTimestampsOnUpdate);e.pre("updateMany",h,_setTimestampsOnUpdate);function _setTimestampsOnUpdate(e){const t=l!=null?l():this.model.base.now();if(this.op==="findOneAndReplace"&&this.getUpdate()==null){this.setUpdate({})}i(t,u,c,this.getUpdate(),this.options,this.schema);n(t,this.getUpdate(),this.model.schema);e()}}},88796:(e,t,r)=>{"use strict";const n=r(55716);e.exports=function allServersUnknown(e){if(n(e)!=="TopologyDescription"){return false}const t=Array.from(e.servers.values());return t.length>0&&t.every((e=>e.type==="Unknown"))}},9541:(e,t,r)=>{"use strict";const n=r(55716);e.exports=function isAtlas(e){if(n(e)!=="TopologyDescription"){return false}const t=Array.from(e.servers.keys());return t.length>0&&t.every((e=>e.endsWith(".mongodb.net:27017")))}},5234:(e,t,r)=>{"use strict";const n=r(55716);const i="Client network socket disconnected before secure TLS "+"connection was established";e.exports=function isSSLError(e){if(n(e)!=="TopologyDescription"){return false}const t=Array.from(e.servers.values());return t.length>0&&t.every((e=>e.error&&e.error.message.indexOf(i)!==-1))}},85134:(e,t,r)=>{"use strict";const n=r(18134);const i=r(97330);e.exports=applyTimestampsToChildren; /*! * ignore */function applyTimestampsToChildren(e,t,r){if(t==null){return}const n=Object.keys(t);const o=n.some((e=>e.startsWith("$")));if(o){if(t.$push){_applyTimestampToUpdateOperator(t.$push)}if(t.$addToSet){_applyTimestampToUpdateOperator(t.$addToSet)}if(t.$set!=null){const n=Object.keys(t.$set);for(const i of n){applyTimestampsToUpdateKey(r,i,t.$set,e)}}if(t.$setOnInsert!=null){const n=Object.keys(t.$setOnInsert);for(const i of n){applyTimestampsToUpdateKey(r,i,t.$setOnInsert,e)}}}const s=Object.keys(t).filter((e=>!e.startsWith("$")));for(const n of s){applyTimestampsToUpdateKey(r,n,t,e)}function _applyTimestampToUpdateOperator(t){for(const n of Object.keys(t)){const o=r.path(n.replace(/\.\$\./i,".").replace(/.\$$/,""));if(t[n]&&o&&o.$isMongooseDocumentArray&&o.schema.options.timestamps){const r=o.schema.options.timestamps;const s=i(r,"createdAt");const a=i(r,"updatedAt");if(t[n].$each){t[n].$each.forEach((function(t){if(a!=null){t[a]=e}if(s!=null){t[s]=e}}))}else{if(a!=null){t[n][a]=e}if(s!=null){t[n][s]=e}}}}}}function applyTimestampsToDocumentArray(e,t,r){const n=t.schema.options.timestamps;if(!n){return}const o=e.length;const s=i(n,"createdAt");const a=i(n,"updatedAt");for(let n=0;n0;--r){const n=e.path(c.slice(0,r).join("."));if(n!=null&&(n.$isMongooseDocumentArray||n.$isSingleNested)){u.push({parentPath:t.split(".").slice(0,r).join("."),parentSchemaType:n})}}if(Array.isArray(r[t])&&a.$isMongooseDocumentArray){applyTimestampsToDocumentArray(r[t],a,o)}else if(r[t]&&a.$isSingleNested){applyTimestampsToSingleNested(r[t],a,o)}else if(u.length>0){for(const e of u){const n=e.parentPath;const s=e.parentSchemaType;const a=s.schema.options.timestamps;const u=i(a,"updatedAt");if(!a||u==null){continue}if(s.$isSingleNested){r[n+"."+u]=o}else if(s.$isMongooseDocumentArray){let e=t.substring(n.length+1);if(/^\d+$/.test(e)){r[n+"."+e][u]=o;continue}const i=e.indexOf(".");e=i!==-1?e.substring(0,i):e;r[n+"."+e+"."+u]=o}}}else if(a.schema!=null&&a.schema!=e&&r[t]){const e=a.schema.options.timestamps;const n=i(e,"createdAt");const s=i(e,"updatedAt");if(!e){return}if(s!=null){r[t][s]=o}if(n!=null){r[t][n]=o}}}},6747:(e,t,r)=>{"use strict"; /*! * ignore */const n=r(6709);e.exports=applyTimestampsToUpdate; /*! * ignore */function applyTimestampsToUpdate(e,t,r,i,o){const s=i;let a=s;const u=n(o,"overwrite",false);const c=n(o,"timestamps",true);if(!c||s==null){return i}const l=c!=null&&c.createdAt===false;const d=c!=null&&c.updatedAt===false;if(u){if(i&&i.$set){i=i.$set;s.$set={};a=s.$set}if(!d&&r&&!i[r]){a[r]=e}if(!l&&t&&!i[t]){a[t]=e}return s}i=i||{};if(Array.isArray(s)){s.push({$set:{[r]:e}});return s}s.$set=s.$set||{};if(!d&&r&&(!i.$currentDate||!i.$currentDate[r])){let t=false;if(r.indexOf(".")!==-1){const n=r.split(".");for(let r=1;r{"use strict";const n=r(70131);const i=r(18134);const o=r(93243);const s=r(39958);e.exports=function castArrayFilters(e){const t=e.options.arrayFilters;const r=e.getUpdate();const n=e.schema;const i=s(r);let o=n.options.strict;if(e._mongooseOptions.strict!=null){o=e._mongooseOptions.strict}if(n._userProvidedOptions.strictQuery!=null){o=n._userProvidedOptions.strictQuery}if(e._mongooseOptions.strictQuery!=null){o=e._mongooseOptions.strictQuery}_castArrayFilters(t,n,o,i,e)};function _castArrayFilters(e,t,r,s,a){if(!Array.isArray(e)){return}for(const u of e){if(u==null){throw new Error(`Got null array filter in ${e}`)}for(const e of Object.keys(u)){if(e==="$and"||e==="$or"){_castArrayFilters(u[e],t,r,s,a);continue}if(u[e]==null){continue}if(s[e]===null){continue}if(Object.keys(s).length===0){continue}const c=e.indexOf(".");let l=c===-1?s[e]+".0":s[e.substring(0,c)]+".0"+e.substring(c);if(l==null){throw new Error(`Filter path not found for ${e}`)}l=i(l);const d=o(t,l);if(d==null){if(!r){return}throw new Error(`Could not find path "${l}" in schema`)}if(typeof u[e]==="object"){u[e]=n(a,d,u[e])}else{u[e]=d.castForQuery(u[e])}}}}},4666:(e,t,r)=>{"use strict";const n=r(8207).M;e.exports=function modifiedPaths(e){const t=Object.keys(e);const r={};const i={};for(const o of t){if(o.startsWith("$")){n(e[o],"",r);continue}i[o]=e[o]}n(i,"",r);return r}},96885:(e,t,r)=>{"use strict";const n=r(6709);e.exports=function moveImmutableProperties(e,t,r){if(t==null){return}const n=Object.keys(t);for(const i of n){const n=i.startsWith("$");if(i==="$set"){const n=Object.keys(t[i]);for(const o of n){_walkUpdatePath(e,t[i],o,t,r)}}else if(!n){_walkUpdatePath(e,t,i,t,r)}}};function _walkUpdatePath(e,t,r,i,o){const s=e.path(r);if(s==null){return}let a=n(s,"options.immutable",null);if(a==null){return}if(typeof a==="function"){a=a.call(o,o)}if(!a){return}i.$setOnInsert=i.$setOnInsert||{};i.$setOnInsert[r]=t[r];delete t[r]}},59310:e=>{"use strict";e.exports=function removeUnusedArrayFilters(e,t){const r=Object.keys(e).map((t=>Object.keys(e[t]))).reduce(((e,t)=>e.concat(t)),[]);return t.filter((e=>_checkSingleFilterKey(e,r)))};function _checkSingleFilterKey(e,t){const r=Object.keys(e)[0];if(r==="$and"||r==="$or"){if(!Array.isArray(e[r])){return false}return e[r].find((e=>_checkSingleFilterKey(e,t)))!=null}const n=r.indexOf(".");const i=n===-1?r:r.slice(0,n);return t.find((e=>e.includes("$["+i+"]")))!=null}},39958:(e,t,r)=>{"use strict";const n=r(4666);e.exports=function updatedPathsByArrayFilter(e){if(e==null){return{}}const t=n(e);return Object.keys(t).reduce(((e,t)=>{const r=t.match(/\$\[[^\]]+\]/g);if(r==null){return e}for(const n of r){const r=t.indexOf(n);if(r!==t.lastIndexOf(n)){throw new Error(`Path '${t}' contains the same array filter multiple times`)}e[n.substring(2,n.length-1)]=t.substring(0,r-1).replace(/\$\[[^\]]+\]/g,"0")}return e}),{})}},15838:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(83793);const i=r(18134);const o=r(8207).x;const s=r(8207).M;e.exports=function(e,t,r,a,u){const c=Object.keys(r||{});let l={};let d={};const h={};const m={};const g=c.length;let y=false;const v={};let b;let _;let E;for(E=0;E{C.push((function(r){i.doValidate(e,(function(e){if(e){e.path=k[t]+".$in."+t;O.push(e)}r(null)}),B,{updateValidator:true})}))}))}else{if(h[k[e]]&&i.$isMongooseArray){return}if(i.$isMongooseDocumentArrayElement&&r!=null&&r.$__!=null){D.push(k[e]);C.push((function(t){i.doValidate(r,(function(n){if(n){n.path=k[e];O.push(n);return t(null)}r.validate((function(r){if(r){if(r.errors){for(const t of Object.keys(r.errors)){const n=r.errors[t];n.path=k[e]+"."+t;O.push(n)}}else{r.path=k[e];O.push(r)}}t(null)}))}),B,{updateValidator:true})}))}else{C.push((function(t){for(const r of D){if(k[e].startsWith(r+".")){return t(null)}}i.doValidate(r,(function(r){if(i.schema!=null&&i.schema.options.storeSubdocValidationError===false&&r instanceof n){return t(null)}if(r){r.path=k[e];O.push(r)}t(null)}),B,{updateValidator:true})}))}}}for(E=0;E{"use strict"; /*! * Module dependencies. */r(71243).set(r(68719));const n=r(30754);const i=r(82361).EventEmitter;const o=r(27991);const s=r(80633);const a=r(29735);const u=r(94198);const c=r(88865);const l=r(72388);const d=r(49122);const h=r(68488);const m=r(19076);const g=r(7034);const y=r(71243);const v=r(6709);const b=r(43607);const _=r(64544);const E=r(52492);const k=r(4147);const x=r(15278);const C=r(66766);const O=r(65667);const D=r(23803);const B=r(54435);const P=r(64579);const I=r(31616);const R=r(35071);const N=r(89974);const $=r(92973).trusted;const L=r(17488);const q=Symbol.for("mongoose:default");r(24e3);function Mongoose(e){this.connections=[];this.models={};this.events=new i;this.options=Object.assign({pluralization:true,autoIndex:true,autoCreate:true},e);const t=this.createConnection();t.models=this.models;if(this.options.pluralization){this._pluralize=_}if(!e||!e[q]){const e=this;this.Schema=function(){this.base=e;return o.apply(this,arguments)};this.Schema.prototype=Object.create(o.prototype);Object.assign(this.Schema,o);this.Schema.base=this;this.Schema.Types=Object.assign({},o.Types)}else{for(const e of["Schema","model"]){this[e]=Mongoose.prototype[e]}}this.Schema.prototype.base=this;Object.defineProperty(this,"plugins",{configurable:false,enumerable:true,writable:false,value:[[D,{deduplicate:true}],[P,{deduplicate:true}],[N,{deduplicate:true}],[O,{deduplicate:true}],[B,{deduplicate:true}],[C,{deduplicate:true}]]})}Mongoose.prototype.cast=x;Mongoose.prototype.STATES=c;Mongoose.prototype.ConnectionStates=c;Mongoose.prototype.driver=y;Mongoose.prototype.set=function(e,t){const r=this instanceof Mongoose?this:V;if(l.indexOf(e)===-1)throw new Error(`\`${e}\` is an invalid option.`);if(arguments.length===1){return r.options[e]}r.options[e]=t;if(e==="objectIdGetter"){if(t){Object.defineProperty(V.Types.ObjectId.prototype,"_id",{enumerable:false,configurable:true,get:function(){return this}})}else{delete V.Types.ObjectId.prototype._id}}return r};Mongoose.prototype.get=Mongoose.prototype.set;Mongoose.prototype.createConnection=function(e,t,r){const n=this instanceof Mongoose?this:V;const i=new z(n);if(typeof t==="function"){r=t;t=null}n.connections.push(i);n.events.emit("createConnection",i);if(arguments.length>0){i.openUri(e,t,r)}return i};Mongoose.prototype.connect=function(e,t,r){const n=this instanceof Mongoose?this:V;const i=n.connection;return n._promiseOrCallback(r,(r=>{i.openUri(e,t,(e=>{if(e!=null){return r(e)}return r(null,n)}))}))};Mongoose.prototype.disconnect=function(e){const t=this instanceof Mongoose?this:V;return t._promiseOrCallback(e,(e=>{let r=t.connections.length;if(r<=0){return e(null)}t.connections.forEach((t=>{t.close((function(t){if(t){return e(t)}if(!--r){e(null)}}))}))}))};Mongoose.prototype.startSession=function(){const e=this instanceof Mongoose?this:V;return e.connection.startSession.apply(e.connection,arguments)};Mongoose.prototype.pluralize=function(e){const t=this instanceof Mongoose?this:V;if(arguments.length>0){t._pluralize=e}return t._pluralize};Mongoose.prototype.model=function(e,t,r,n){const i=this instanceof Mongoose?this:V;if(typeof t==="string"){r=t;t=false}if(E.isObject(t)&&!(t instanceof o)){t=new o(t)}if(t&&!(t instanceof o)){throw new Error("The 2nd parameter to `mongoose.model()` should be a "+"schema or a POJO")}n=n||{};const s=t;if(t){if(i.get("cloneSchemas")){t=t.clone()}i._applyPlugins(t)}const a=i.options.hasOwnProperty("overwriteModels")?i.options.overwriteModels:n.overwriteModels;if(i.models.hasOwnProperty(e)&&n.cache!==false&&a!==true){if(s&&s.instanceOfSchema&&s!==i.models[e].schema){throw new i.Error.OverwriteModelError(e)}if(r&&r!==i.models[e].collection.name){const n=i.models[e];t=n.prototype.schema;const o=n.__subclass(i.connection,t,r);return o}return i.models[e]}if(t==null){throw new i.Error.MissingSchemaError(e)}const u=i._model(e,t,r,n);i.connection.models[e]=u;i.models[e]=u;return u}; /*! * ignore */Mongoose.prototype._model=function(e,t,r,n){const i=this instanceof Mongoose?this:V;let o;if(typeof e==="function"){o=e;e=o.name;if(!(o.prototype instanceof m)){throw new i.Error("The provided class "+e+" must extend Model")}}if(t){if(i.get("cloneSchemas")){t=t.clone()}i._applyPlugins(t)}if(t==null||!("pluralization"in t.options)){t.options.pluralization=i.options.pluralization}if(!r){r=t.get("collection")||E.toCollectionName(e,i.pluralize())}const s=n.connection||i.connection;o=i.Model.compile(o||e,t,r,s,i);o.init((function $modelInitNoop(){}));s.emit("model",o);return o};Mongoose.prototype.deleteModel=function(e){const t=this instanceof Mongoose?this:V;t.connection.deleteModel(e);delete t.models[e];return t};Mongoose.prototype.modelNames=function(){const e=this instanceof Mongoose?this:V;const t=Object.keys(e.models);return t};Mongoose.prototype._applyPlugins=function(e,t){const r=this instanceof Mongoose?this:V;t=t||{};t.applyPluginsToDiscriminators=v(r,"options.applyPluginsToDiscriminators",false);t.applyPluginsToChildSchemas=v(r,"options.applyPluginsToChildSchemas",true);g(e,r.plugins,t,"$globalPluginsApplied")};Mongoose.prototype.plugin=function(e,t){const r=this instanceof Mongoose?this:V;r.plugins.push([e,t]);return r};Mongoose.prototype.__defineGetter__("connection",(function(){return this.connections[0]}));Mongoose.prototype.__defineSetter__("connection",(function(e){if(e instanceof z){this.connections[0]=e;this.models=e.models}}));Mongoose.prototype.connections; /*! * Connection */const z=y.get().getConnection(); /*! * Collection */const U=y.get().Collection;Mongoose.prototype.Aggregate=I;Mongoose.prototype.Collection=U;Mongoose.prototype.Connection=z;Mongoose.prototype.version=k.version;Mongoose.prototype.Mongoose=Mongoose;Mongoose.prototype.Schema=o;Mongoose.prototype.SchemaType=s;Mongoose.prototype.SchemaTypes=o.Types;Mongoose.prototype.VirtualType=u;Mongoose.prototype.Types=d;Mongoose.prototype.Query=h;Object.defineProperty(Mongoose.prototype,"Promise",{get:function(){return R.get()},set:function(e){R.set(e)}});Mongoose.prototype.PromiseProvider=R;Mongoose.prototype.Model=m;Mongoose.prototype.Document=n;Mongoose.prototype.DocumentProvider=r(67234);Mongoose.prototype.ObjectId=a.ObjectId;Mongoose.prototype.isValidObjectId=function(e){const t=this instanceof Mongoose?this:V;return t.Types.ObjectId.isValid(e)};Mongoose.prototype.syncIndexes=function(e){const t=this instanceof Mongoose?this:V;return t.connection.syncIndexes(e)};Mongoose.prototype.Decimal128=a.Decimal128;Mongoose.prototype.Mixed=a.Mixed;Mongoose.prototype.Date=a.Date;Mongoose.prototype.Number=a.Number;Mongoose.prototype.Error=r(88513);Mongoose.prototype.now=function now(){return new Date};Mongoose.prototype.CastError=r(94498);Mongoose.prototype.SchemaTypeOptions=r(44829);Mongoose.prototype.mongo=r(13297);Mongoose.prototype.mquery=r(50231);Mongoose.prototype.sanitizeFilter=L;Mongoose.prototype.trusted=$; /*! * ignore */Mongoose.prototype._promiseOrCallback=function(e,t,r){return b(e,t,r,this.Promise)}; /*! * The exports object is an instance of Mongoose. * * @api public */const V=e.exports=t=new Mongoose({[q]:true})},63902:(e,t,r)=>{"use strict"; /*! * Dependencies */const n=r(51919);const i=n.ctor("require","modify","init","default","ignore");e.exports=t=InternalCache;function InternalCache(){this.activePaths=new i;this.strictMode=undefined}InternalCache.prototype.fullPath=undefined;InternalCache.prototype.strictMode=undefined;InternalCache.prototype.selected=undefined;InternalCache.prototype.shardval=undefined;InternalCache.prototype.saveError=undefined;InternalCache.prototype.validationError=undefined;InternalCache.prototype.adhocPaths=undefined;InternalCache.prototype.removing=undefined;InternalCache.prototype.inserting=undefined;InternalCache.prototype.saving=undefined;InternalCache.prototype.version=undefined;InternalCache.prototype._id=undefined;InternalCache.prototype.ownerDocument=undefined;InternalCache.prototype.populate=undefined;InternalCache.prototype.populated=undefined;InternalCache.prototype.wasPopulated=false;InternalCache.prototype.scope=undefined;InternalCache.prototype.session=null;InternalCache.prototype.pathsToScopes=null;InternalCache.prototype.cachedRequired=null},19076:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(31616);const i=r(78233);const o=r(30754);const s=r(8492);const a=r(65883);const u=r(82361).EventEmitter;const c=r(13789);const l=r(88513);const d=r(94446);const h=r(35071);const m=r(68488);const g=r(76469);const y=r(74903);const v=r(27991);const b=r(30078);const _=r(83793);const E=r(22889);const k=r(9560);const x=r(38956);const C=r(59342);const O=r(12558);const D=r(84820);const B=r(3418);const P=r(35724);const I=r(91635);const R=r(81033);const N=r(16862);const $=r(79439);const L=r(40387);const q=r(93801);const z=r(6709);const U=r(55716);const V=r(74693);const W=r(9803);const G=r(64248);const Q=r(28561).h;const Y=r(71546);const J=r(46658);const X=r(17467);const ee=r(5638);const te=r(4666);const re=r(69634);const ne=r(40500);const ie=r(70824);const oe=r(68248);const se=r(73837);const ae=r(52492);const ue=1;const ce=2;const le=ue|ce;const pe=r(63241).arrayAtomicsSymbol;const fe=Symbol("mongoose#Model#collection");const de=Symbol("mongoose#Model#db");const he=r(63241).modelSymbol;const me=Symbol("mongoose#Model#subclassed");const ge=Object.assign({},Q,{bson:true});function Model(e,t,r){if(t instanceof v){throw new TypeError("2nd argument to `Model` must be a POJO or string, "+"**not** a schema. Make sure you're calling `mongoose.model()`, not "+"`mongoose.Model()`.")}o.call(this,e,t,r)} /*! * Inherits from Document. * * All Model.prototype features are available on * top level (non-sub) documents. */Model.prototype.__proto__=o.prototype;Model.prototype.$isMongooseModelPrototype=true;Model.prototype.db;Model.prototype.collection;Model.prototype.$__collection;Model.prototype.modelName;Model.prototype.$where;Model.prototype.baseModelName;Model.events; /*! * Compiled middleware for this model. Set in `applyHooks()`. * * @api private * @property _middleware * @memberOf Model * @static */Model._middleware; /*! * ignore */function _applyCustomWhere(e,t){if(e.$where==null){return}for(const r of Object.keys(e.$where)){t[r]=e.$where[r]}} /*! * ignore */Model.prototype.$__handleSave=function(e,t){const r=this;let n={};P(this.$__schema,e);if(typeof e.writeConcern!="undefined"){n.writeConcern={};if("w"in e.writeConcern){n.writeConcern.w=e.writeConcern.w}if("j"in e.writeConcern){n.writeConcern.j=e.writeConcern.j}if("wtimeout"in e.writeConcern){n.writeConcern.wtimeout=e.writeConcern.wtimeout}}else{if("w"in e){n.w=e.w}if("j"in e){n.j=e.j}if("wtimeout"in e){n.wtimeout=e.wtimeout}}if("checkKeys"in e){n.checkKeys=e.checkKeys}const i=this.$session();if(!n.hasOwnProperty("session")){n.session=i}if(Object.keys(n).length===0){n=null}if(this.$isNew){const e=this.toObject(ge);if((e||{})._id===void 0){G((function(){t(new l("document must have an _id before saving"))}));return}this.$__version(true,e);this[fe].insertOne(e,n,(function(e,n){if(e){_setIsNew(r,true);t(e,null);return}t(null,n)}));this.$__reset();_setIsNew(this,false);this.$__.inserting=true}else{this.$__.inserting=false;const r=this.$__delta();if(r){if(r instanceof l){t(r);return}const e=this.$__where(r[0]);if(e instanceof l){t(e);return}_applyCustomWhere(this,e);this[fe].updateOne(e,r[1],n,((r,n)=>{if(r){this.$__undoReset();t(r);return}n.$where=e;t(null,n)}))}else{const r=Object.assign({},e,n);const i=this.$__where();if(this.$__schema.options.optimisticConcurrency){const e=this.$__schema.options.versionKey;const t=this.$__getValue(e);if(t!=null){i[e]=t}}this.constructor.exists(i,r).then((e=>{if(!e){const e=0;return t(null,{$where:i,matchedCount:e})}const r=1;t(null,{$where:i,matchedCount:r})})).catch(t);return}this.$__.modifiedPaths=this.modifiedPaths();this.$__reset();_setIsNew(this,false)}}; /*! * ignore */Model.prototype.$__save=function(e,t){this.$__handleSave(e,((r,n)=>{const i=this.$__schema.s.hooks;if(r){return i.execPost("save:error",this,[this],{error:r},(e=>{t(e,this)}))}let o=0;const a=e!=null?e.writeConcern!=null?e.writeConcern.w:e.w:0;if(a!==0){if(n!=null){if(Array.isArray(n)){o=n.length}else if(n.matchedCount!=null){o=n.matchedCount}else{o=n}}const e=this.$__.version||this.$__schema.options.optimisticConcurrency;if(e&&!this.$__.inserting){const e=ce===(ce&this.$__.version);this.$__.version=undefined;const r=this.$__schema.options.versionKey;const n=this.$__getValue(r)||0;if(o<=0){this.$__undoReset();const e=this.$__.$versionError||new E(this,n,this.$__.modifiedPaths);return t(e)}if(e){this.$__setValue(r,n+1)}}if(n!=null&&o<=0){this.$__undoReset();r=new s(n.$where,this.constructor.modelName,o,n);return i.execPost("save:error",this,[this],{error:r},(e=>{t(e,this)}))}}this.$__.saving=undefined;this.$__.savedState={};this.$emit("save",this,o);this.constructor.emit("save",this,o);t(null,this)}))}; /*! * ignore */function generateVersionError(e,t){const r=e.$__schema.options.versionKey;if(!r){return null}const n=e.$__getValue(r)||0;return new E(e,n,t)}Model.prototype.save=function(e,t){let r;this.$op="save";if(this.$__.saving){r=new k(this)}else{this.$__.saving=new k(this)}if(typeof e==="function"){t=e;e=undefined}e=new y(e);if(e.hasOwnProperty("session")){this.$session(e.session)}this.$__.$versionError=generateVersionError(this,this.modifiedPaths());t=this.constructor.$handleCallbackError(t);return this.constructor.db.base._promiseOrCallback(t,(t=>{t=this.constructor.$wrapCallback(t);if(r){this.$__handleReject(r);return t(r)}this.$__.saveOptions=e;this.$__save(e,(e=>{this.$__.saving=undefined;delete this.$__.saveOptions;delete this.$__.$versionError;this.$op=null;if(e){this.$__handleReject(e);return t(e)}t(null,this)}))}),this.constructor.events)};Model.prototype.$save=Model.prototype.save; /*! * Determines whether versioning should be skipped for the given path * * @param {Document} self * @param {String} path * @return {Boolean} true if versioning should be skipped for the given path */function shouldSkipVersioning(e,t){const r=e.$__schema.options.skipVersioning;if(!r)return false;t=t.replace(/\.\d+\./,".");return r[t]} /*! * Apply the operation to the delta (update) clause as * well as track versioning for our where clause. * * @param {Document} self * @param {Object} where * @param {Object} delta * @param {Object} data * @param {Mixed} val * @param {String} [operation] */function operand(e,t,r,n,i,o){o||(o="$set");if(!r[o])r[o]={};r[o][n.path]=i;if(e.$__schema.options.versionKey===false)return;if(shouldSkipVersioning(e,n.path))return;if(le===(le&e.$__.version))return;if(e.$__schema.options.optimisticConcurrency){e.$__.version=le;return}switch(o){case"$set":case"$unset":case"$pop":case"$pull":case"$pullAll":case"$push":case"$addToSet":break;default:return}if(o==="$push"||o==="$addToSet"||o==="$pullAll"||o==="$pull"){if(/\.\d+\.|\.\d+$/.test(n.path)){increment.call(e)}else{e.$__.version=ce}}else if(/^\$p/.test(o)){increment.call(e)}else if(Array.isArray(i)){increment.call(e)}else if(/\.\d+\.|\.\d+$/.test(n.path)){e.$__.version=ue}} /*! * Compiles an update and where clause for a `val` with _atomics. * * @param {Document} self * @param {Object} where * @param {Object} delta * @param {Object} data * @param {Array} value */function handleAtomics(e,t,r,n,i){if(r.$set&&r.$set[n.path]){return}if(typeof i.$__getAtomics==="function"){i.$__getAtomics().forEach((function(i){const o=i[0];const s=i[1];operand(e,t,r,n,s,o)}));return}const o=i[pe];const s=Object.keys(o);let a=s.length;let u;let c;if(a===0){if(ae.isMongooseObject(i)){i=i.toObject({depopulate:1,_isNested:true})}else if(i.valueOf){i=i.valueOf()}return operand(e,t,r,n,i)}function iter(e){return ae.isMongooseObject(e)?e.toObject({depopulate:1,_isNested:true}):e}while(a--){c=s[a];u=o[c];if(ae.isMongooseObject(u)){u=u.toObject({depopulate:true,transform:false,_isNested:true})}else if(Array.isArray(u)){u=u.map(iter)}else if(u.valueOf){u=u.valueOf()}if(c==="$addToSet"){u={$each:u}}operand(e,t,r,n,u,c)}}Model.prototype.$__delta=function(){const e=this.$__dirty();if(!e.length&&le!==this.$__.version){return}const t={};const r={};const n=e.length;const i=[];let o=0;t._id=this._doc._id;if(z(t,"_id.$__",null)!=null){t._id=t._id.toObject({transform:false,depopulate:true})}for(;o1&&e[1]==0&&typeof t[r]==="undefined"){t[r]=this.$__.selected[r];e[1]="$";n.path=e.join(".")}else{i.push(n.path);continue}}}if(i.length)continue;if(s===undefined){operand(this,t,r,n,1,"$unset")}else if(s===null){operand(this,t,r,n,null)}else if(ae.isMongooseArray(s)&&s.$path()&&s[pe]){handleAtomics(this,t,r,n,s)}else if(s[c.pathSymbol]&&Buffer.isBuffer(s)){s=s.toObject();operand(this,t,r,n,s)}else{s=ae.clone(s,{depopulate:true,transform:false,virtuals:false,getters:false,_isNested:true});operand(this,t,r,n,s)}}if(i.length){return new a(i)}if(this.$__.version){this.$__version(t,r)}return[t,r]}; /*! * Determine if array was populated with some form of filter and is now * being updated in a manner which could overwrite data unintentionally. * * @see https://github.com/Automattic/mongoose/issues/1334 * @param {Document} doc * @param {String} path * @return {String|undefined} */function checkDivergentArray(e,t,r){const n=e.$populated(t,true);if(!n&&e.$__.selected){const r=t.split(".")[0];if(e.$__.selected[r+".$"]){return r}}if(!(n&&ae.isMongooseArray(r)))return;const i=n.options.match||n.options.options&&ae.object.hasOwnProperty(n.options.options,"limit")||n.options.options&&n.options.options.skip||n.options.select&&(n.options.select._id===0||/\s?-_id\s?/.test(n.options.select));if(i){const e=r[pe];if(Object.keys(e).length===0||e.$set||e.$pop){return t}}}Model.prototype.$__version=function(e,t){const r=this.$__schema.options.versionKey;if(e===true){if(r){oe(t,r,0);this.$__setValue(r,0)}return}if(r===false){return}if(!this.$__isSelected(r)){return}if(ue===(ue&this.$__.version)){const t=this.$__getValue(r);if(t!=null)e[r]=t}if(ce===(ce&this.$__.version)){if(z(t.$set,r,null)!=null){++t.$set[r]}else{t.$inc=t.$inc||{};t.$inc[r]=1}}};function increment(){this.$__.version=le;return this}Model.prototype.increment=increment;Model.prototype.$__where=function _where(e){e||(e={});if(!e._id){e._id=this._doc._id}if(this._doc._id===void 0){return new l("No _id found on document!")}return e};Model.prototype.remove=function remove(e,t){if(typeof e==="function"){t=e;e=undefined}e=new g(e);if(e.hasOwnProperty("session")){this.$session(e.session)}this.$op="remove";t=this.constructor.$handleCallbackError(t);return this.constructor.db.base._promiseOrCallback(t,(t=>{t=this.constructor.$wrapCallback(t);this.$__remove(e,((e,r)=>{this.$op=null;t(e,r)}))}),this.constructor.events)}; /*! * Alias for remove */Model.prototype.$remove=Model.prototype.remove;Model.prototype.delete=Model.prototype.remove;Model.prototype.deleteOne=function deleteOne(e,t){if(typeof e==="function"){t=e;e=undefined}if(!e){e={}}t=this.constructor.$handleCallbackError(t);return this.constructor.db.base._promiseOrCallback(t,(t=>{t=this.constructor.$wrapCallback(t);this.$__deleteOne(e,t)}),this.constructor.events)}; /*! * ignore */Model.prototype.$__remove=function $__remove(e,t){if(this.$__.isDeleted){return G((()=>t(null,this)))}const r=this.$__where();if(r instanceof l){return t(r)}_applyCustomWhere(this,r);const n=this.$session();if(!e.hasOwnProperty("session")){e.session=n}this[fe].deleteOne(r,e,(e=>{if(!e){this.$__.isDeleted=true;this.$emit("remove",this);this.constructor.emit("remove",this);return t(null,this)}this.$__.isDeleted=false;t(e)}))}; /*! * ignore */Model.prototype.$__deleteOne=Model.prototype.$__remove;Model.prototype.model=function model(e){return this[de].model(e)};Model.exists=function exists(e,t,r){_checkContext(this,"exists");if(typeof t==="function"){r=t;t=null}const n=this.findOne(e).select({_id:1}).lean().setOptions(t);if(typeof r==="function"){return n.exec(r)}return n};Model.discriminator=function(e,t,r){let n;if(typeof e==="function"){n=e;e=ae.getFunctionName(n);if(!(n.prototype instanceof Model)){throw new l("The provided class "+e+" must extend Model")}}r=r||{};const i=ae.isPOJO(r)?r.value:r;const o=z(r,"clone",true);_checkContext(this,"discriminator");if(ae.isObject(t)&&!t.instanceOfSchema){t=new v(t)}if(t instanceof v&&o){t=t.clone()}t=L(this,e,t,i,true);if(this.db.models[e]&&!t.options.overwriteModels){throw new d(e)}t.$isRootDiscriminator=true;t.$globalPluginsApplied=true;n=this.db.model(n||e,t,this.$__collection.name);this.discriminators[e]=n;const s=this.discriminators[e];s.prototype.__proto__=this.prototype;Object.defineProperty(s,"baseModelName",{value:this.modelName,configurable:true,writable:false});O(s,t);B(s,t);if(this[me]!=null){for(const r of this[me]){r.discriminators=r.discriminators||{};r.discriminators[e]=n.__subclass(n.db,t,r.collection.name)}}return s}; /*! * Make sure `this` is a model */function _checkContext(e,t){if(e==null||e===global){throw new l("`Model."+t+"()` cannot run without a "+"model as `this`. Make sure you are calling `MyModel."+t+"()` "+"where `MyModel` is a Mongoose model.")}else if(e[he]==null){throw new l("`Model."+t+"()` cannot run without a "+"model as `this`. Make sure you are not calling "+"`new Model."+t+"()`")}} /*! * Give the constructor the ability to emit events. */for(const e in u.prototype){Model[e]=u.prototype[e]}Model.init=function init(e){_checkContext(this,"init");this.schema.emit("init",this);if(this.$init!=null){if(e){this.$init.then((()=>e()),(t=>e(t)));return null}return this.$init}const t=h.get();const r=ae.getOption("autoIndex",this.schema.options,this.db.config,this.db.base.options);const n=ae.getOption("autoCreate",this.schema.options,this.db.config,this.db.base.options);const i=r?e=>this.ensureIndexes({_automatic:true},e):e=>e();const o=n?e=>this.createCollection({},e):e=>e();this.$init=new t(((e,t)=>{o((r=>{if(r){return t(r)}i((r=>{if(r){return t(r)}e(this)}))}))}));if(e){this.$init.then((()=>e()),(t=>e(t)));this.$caught=true;return null}else{const e=this.$init.catch;const t=this;this.$init.catch=function(){this.$caught=true;return e.apply(t.$init,arguments)}}return this.$init};Model.createCollection=function createCollection(e,t){_checkContext(this,"createCollection");if(typeof e==="string"){throw new l("You can't specify a new collection name in Model.createCollection."+"This is not like Connection.createCollection. Only options are accepted here.")}else if(typeof e==="function"){t=e;e=void 0}const r=z(this,["schema","options","collation"],null);if(r!=null){e=Object.assign({collation:r},e)}const n=z(this,["schema","options","capped"]);if(n){e=Object.assign({capped:true},n,e)}const i=z(this,["schema","options","timeseries"]);if(i!=null){e=Object.assign({timeseries:i},e)}t=this.$handleCallbackError(t);return this.db.base._promiseOrCallback(t,(t=>{t=this.$wrapCallback(t);this.db.createCollection(this.$__collection.collectionName,e,ae.tick((r=>{if(r!=null&&(r.name!=="MongoServerError"||r.code!==48)){return t(r)}this.$__collection=this.db.collection(this.$__collection.collectionName,e);t(null,this.$__collection)})))}),this.events)};Model.syncIndexes=function syncIndexes(e,t){_checkContext(this,"syncIndexes");t=this.$handleCallbackError(t);return this.db.base._promiseOrCallback(t,(t=>{t=this.$wrapCallback(t);this.createCollection((r=>{if(r!=null&&(r.name!=="MongoServerError"||r.code!==48)){return t(r)}this.cleanIndexes(((r,n)=>{if(r!=null){return t(r)}this.createIndexes(e,(e=>{if(e!=null){return t(e)}t(null,n)}))}))}))}),this.events)};Model.diffIndexes=function diffIndexes(e,t){const r=[];const n=[];t=this.$handleCallbackError(t);return this.db.base._promiseOrCallback(t,(e=>{e=this.$wrapCallback(e);this.listIndexes(((t,i)=>{if(i===undefined){i=[]}const o=this.schema.indexes();for(const e of i){let t=false;if(Y(e)){continue}for(const r of o){const n=r[0];const i=_decorateDiscriminatorIndexOptions(this,ae.clone(r[1]));if(J(n,i,e)){t=true}}if(!t){r.push(e.name)}}for(const e of o){const t=e[0];let r=false;const o=_decorateDiscriminatorIndexOptions(this,ae.clone(e[1]));for(const e of i){if(Y(e)){continue}if(J(t,o,e)){r=true}}if(!r){n.push(t)}}e(null,{toDrop:r,toCreate:n})}))}))};Model.cleanIndexes=function cleanIndexes(e){_checkContext(this,"cleanIndexes");e=this.$handleCallbackError(e);return this.db.base._promiseOrCallback(e,(e=>{const t=this.$__collection;this.listIndexes(((t,r)=>{if(t!=null){return e(t)}const n=this.schema.indexes();const i=[];for(const e of r){let t=false;if(Y(e)){continue}for(const r of n){const n=r[0];const i=_decorateDiscriminatorIndexOptions(this,ae.clone(r[1]));if(J(n,i,e)){t=true}}if(!t){i.push(e.name)}}if(i.length===0){return e(null,[])}dropIndexes(i,e)}));function dropIndexes(e,r){let n=e.length;let i=false;e.forEach((o=>{t.dropIndex(o,(t=>{if(t!=null){i=true;return r(t)}if(!i){--n||r(null,e)}}))}))}}))};Model.listIndexes=function init(e){_checkContext(this,"listIndexes");const _listIndexes=e=>{this.$__collection.listIndexes().toArray(e)};e=this.$handleCallbackError(e);return this.db.base._promiseOrCallback(e,(e=>{e=this.$wrapCallback(e);if(this.$__collection.buffer){this.$__collection.addQueue(_listIndexes,[e])}else{_listIndexes(e)}}),this.events)};Model.ensureIndexes=function ensureIndexes(e,t){_checkContext(this,"ensureIndexes");if(typeof e==="function"){t=e;e=null}t=this.$handleCallbackError(t);return this.db.base._promiseOrCallback(t,(t=>{t=this.$wrapCallback(t);_ensureIndexes(this,e||{},(e=>{if(e){return t(e)}t(null)}))}),this.events)};Model.createIndexes=function createIndexes(e,t){_checkContext(this,"createIndexes");if(typeof e==="function"){t=e;e={}}e=e||{};e.createIndex=true;return this.ensureIndexes(e,t)}; /*! * ignore */function _ensureIndexes(e,t,r){const n=e.schema.indexes();let i;t=t||{};const done=function(t){if(t&&!e.$caught){e.emit("error",t)}e.emit("index",t||i);r&&r(t||i)};for(const t of n){if(Y(t)){ae.warn("mongoose: Cannot specify a custom index on `_id` for "+'model name "'+e.modelName+'", '+"MongoDB does not allow overwriting the default `_id` index. See "+"http://bit.ly/mongodb-id-index")}}if(!n.length){G((function(){done()}));return}const indexSingleDone=function(t,r,n,i){e.emit("index-single-done",t,r,n,i)};const indexSingleStart=function(t,r){e.emit("index-single-start",t,r)};const o=e.schema._baseSchema;const s=o?o.indexes():[];const create=function(){if(t._automatic){if(e.schema.options.autoIndex===false||e.schema.options.autoIndex==null&&e.db.config.autoIndex===false){return done()}}const r=n.shift();if(!r){return done()}if(t._automatic&&r[1]._autoIndex===false){return create()}if(s.find((e=>ae.deepEqual(e,r)))){return create()}const o=ae.clone(r[0]);const a=ae.clone(r[1]);let u=false;for(const e of Object.keys(o)){if(o[e]==="text"){u=true}}delete a._autoIndex;_decorateDiscriminatorIndexOptions(e,a);P(e.schema,a);indexSingleStart(o,t);if("background"in t){a.background=t.background}if(e.schema.options.hasOwnProperty("collation")&&!a.hasOwnProperty("collation")&&!u){a.collation=e.schema.options.collation}e.collection.createIndex(o,a,ae.tick((function(t,r){indexSingleDone(t,o,a,r);if(t){if(!i){i=t}if(!e.$caught){e.emit("error",t)}}create()})))};G((function(){if(t._automatic&&!e.collection.collection){e.collection.addQueue(create,[])}else{create()}}))}function _decorateDiscriminatorIndexOptions(e,t){if(e.baseModelName!=null&&!("partialFilterExpression"in t)&&!("sparse"in t)){const r=e.schema.discriminatorMapping&&e.schema.discriminatorMapping.value||e.modelName;const n=e.schema.options.discriminatorKey;t.partialFilterExpression={[n]:r}}return t}Model.schema; /*! * Connection instance the model uses. * * @property db * @api public * @memberOf Model */Model.db; /*! * Collection the model uses. * * @property collection * @api public * @memberOf Model */Model.collection;Model.$__collection;Model.base;Model.discriminators;Model.translateAliases=function translateAliases(e){_checkContext(this,"translateAliases");const translate=(t,r)=>{let n;const i=[];const o=t.split(".");let s=this.schema;for(const e in o){const t=o[e];if(s&&s.aliases[t]){n=s.aliases[t];i.push(n)}else{n=t;i.push(t)}if(s&&s.paths[n]){s=s.paths[n].schema}else s=null}const a=i.join(".");if(e instanceof Map)e.set(a,r);else e[a]=r;if(a!==t){if(e instanceof Map){e.delete(t)}else{delete e[t]}}return e};if(typeof e==="object"){if(e instanceof Map){for(const t of new Map(e)){e=translate(t[0],t[1])}}else{for(const t of Object.keys(e)){e=translate(t,e[t]);if(t[0]==="$"){if(Array.isArray(e[t])){for(const r in e[t]){e[t][r]=this.translateAliases(e[t][r])}}}}}return e}else{return e}};Model.remove=function remove(e,t,r){_checkContext(this,"remove");if(typeof e==="function"){r=e;e={};t=null}else if(typeof t==="function"){r=t;t=null}const n=new this.Query({},{},this,this.$__collection);n.setOptions(t);r=this.$handleCallbackError(r);return n.remove(e,r)};Model.deleteOne=function deleteOne(e,t,r){_checkContext(this,"deleteOne");if(typeof e==="function"){r=e;e={};t=null}else if(typeof t==="function"){r=t;t=null}const n=new this.Query({},{},this,this.$__collection);n.setOptions(t);r=this.$handleCallbackError(r);return n.deleteOne(e,r)};Model.deleteMany=function deleteMany(e,t,r){_checkContext(this,"deleteMany");if(typeof e==="function"){r=e;e={};t=null}else if(typeof t==="function"){r=t;t=null}const n=new this.Query({},{},this,this.$__collection);n.setOptions(t);r=this.$handleCallbackError(r);return n.deleteMany(e,r)};Model.find=function find(e,t,r,n){_checkContext(this,"find");if(typeof e==="function"){n=e;e={};t=null;r=null}else if(typeof t==="function"){n=t;t=null;r=null}else if(typeof r==="function"){n=r;r=null}const i=new this.Query({},{},this,this.$__collection);i.select(t);i.setOptions(r);if(this.schema.discriminatorMapping&&this.schema.discriminatorMapping.isRoot&&i.selectedInclusively()){i.select(this.schema.options.discriminatorKey)}n=this.$handleCallbackError(n);return i.find(e,n)};Model.findById=function findById(e,t,r,n){_checkContext(this,"findById");if(typeof e==="undefined"){e=null}n=this.$handleCallbackError(n);return this.findOne({_id:e},t,r,n)};Model.findOne=function findOne(e,t,r,n){_checkContext(this,"findOne");if(typeof r==="function"){n=r;r=null}else if(typeof t==="function"){n=t;t=null;r=null}else if(typeof e==="function"){n=e;e={};t=null;r=null}const i=new this.Query({},{},this,this.$__collection);i.select(t);i.setOptions(r);if(this.schema.discriminatorMapping&&this.schema.discriminatorMapping.isRoot&&i.selectedInclusively()){i.select(this.schema.options.discriminatorKey)}n=this.$handleCallbackError(n);return i.findOne(e,n)};Model.estimatedDocumentCount=function estimatedDocumentCount(e,t){_checkContext(this,"estimatedDocumentCount");const r=new this.Query({},{},this,this.$__collection);t=this.$handleCallbackError(t);return r.estimatedDocumentCount(e,t)};Model.countDocuments=function countDocuments(e,t,r){_checkContext(this,"countDocuments");if(typeof e==="function"){r=e;e={}}if(typeof t==="function"){r=t;t=null}const n=new this.Query({},{},this,this.$__collection);if(t!=null){n.setOptions(t)}r=this.$handleCallbackError(r);return n.countDocuments(e,r)};Model.count=function count(e,t){_checkContext(this,"count");if(typeof e==="function"){t=e;e={}}const r=new this.Query({},{},this,this.$__collection);t=this.$handleCallbackError(t);return r.count(e,t)};Model.distinct=function distinct(e,t,r){_checkContext(this,"distinct");const n=new this.Query({},{},this,this.$__collection);if(typeof t==="function"){r=t;t={}}r=this.$handleCallbackError(r);return n.distinct(e,t,r)};Model.where=function where(e,t){_checkContext(this,"where");void t;const r=new this.Query({},{},this,this.$__collection).find({});return r.where.apply(r,arguments)};Model.$where=function $where(){_checkContext(this,"$where");const e=new this.Query({},{},this,this.$__collection).find({});return e.$where.apply(e,arguments)};Model.findOneAndUpdate=function(e,t,r,n){_checkContext(this,"findOneAndUpdate");if(typeof r==="function"){n=r;r=null}else if(arguments.length===1){if(typeof e==="function"){const e="Model.findOneAndUpdate(): First argument must not be a function.\n\n"+" "+this.modelName+".findOneAndUpdate(conditions, update, options, callback)\n"+" "+this.modelName+".findOneAndUpdate(conditions, update, options)\n"+" "+this.modelName+".findOneAndUpdate(conditions, update)\n"+" "+this.modelName+".findOneAndUpdate(update)\n"+" "+this.modelName+".findOneAndUpdate()\n";throw new TypeError(e)}t=e;e=undefined}n=this.$handleCallbackError(n);let i;if(r){i=r.fields||r.projection}t=ae.clone(t,{depopulate:true,_isNested:true});_decorateUpdateWithVersionKey(t,r,this.schema.options.versionKey);const o=new this.Query({},{},this,this.$__collection);o.select(i);return o.findOneAndUpdate(e,t,r,n)}; /*! * Decorate the update with a version key, if necessary */function _decorateUpdateWithVersionKey(e,t,r){if(!r||!z(t,"upsert",false)){return}const n=te(e);if(!n[r]){if(t.overwrite){e[r]=0}else{if(!e.$setOnInsert){e.$setOnInsert={}}e.$setOnInsert[r]=0}}}Model.findByIdAndUpdate=function(e,t,r,n){_checkContext(this,"findByIdAndUpdate");n=this.$handleCallbackError(n);if(arguments.length===1){if(typeof e==="function"){const e="Model.findByIdAndUpdate(): First argument must not be a function.\n\n"+" "+this.modelName+".findByIdAndUpdate(id, callback)\n"+" "+this.modelName+".findByIdAndUpdate(id)\n"+" "+this.modelName+".findByIdAndUpdate()\n";throw new TypeError(e)}return this.findOneAndUpdate({_id:e},undefined)}if(e instanceof o){e=e._id}return this.findOneAndUpdate.call(this,{_id:e},t,r,n)};Model.findOneAndDelete=function(e,t,r){_checkContext(this,"findOneAndDelete");if(arguments.length===1&&typeof e==="function"){const e="Model.findOneAndDelete(): First argument must not be a function.\n\n"+" "+this.modelName+".findOneAndDelete(conditions, callback)\n"+" "+this.modelName+".findOneAndDelete(conditions)\n"+" "+this.modelName+".findOneAndDelete()\n";throw new TypeError(e)}if(typeof t==="function"){r=t;t=undefined}r=this.$handleCallbackError(r);let n;if(t){n=t.select;t.select=undefined}const i=new this.Query({},{},this,this.$__collection);i.select(n);return i.findOneAndDelete(e,t,r)};Model.findByIdAndDelete=function(e,t,r){_checkContext(this,"findByIdAndDelete");if(arguments.length===1&&typeof e==="function"){const e="Model.findByIdAndDelete(): First argument must not be a function.\n\n"+" "+this.modelName+".findByIdAndDelete(id, callback)\n"+" "+this.modelName+".findByIdAndDelete(id)\n"+" "+this.modelName+".findByIdAndDelete()\n";throw new TypeError(e)}r=this.$handleCallbackError(r);return this.findOneAndDelete({_id:e},t,r)};Model.findOneAndReplace=function(e,t,r,n){_checkContext(this,"findOneAndReplace");if(arguments.length===1&&typeof e==="function"){const e="Model.findOneAndReplace(): First argument must not be a function.\n\n"+" "+this.modelName+".findOneAndReplace(conditions, callback)\n"+" "+this.modelName+".findOneAndReplace(conditions)\n"+" "+this.modelName+".findOneAndReplace()\n";throw new TypeError(e)}if(arguments.length===3&&typeof r==="function"){n=r;r=t;t=void 0}if(arguments.length===2&&typeof t==="function"){n=t;t=void 0;r=void 0}n=this.$handleCallbackError(n);let i;if(r){i=r.select;r.select=undefined}const o=new this.Query({},{},this,this.$__collection);o.select(i);return o.findOneAndReplace(e,t,r,n)};Model.findOneAndRemove=function(e,t,r){_checkContext(this,"findOneAndRemove");if(arguments.length===1&&typeof e==="function"){const e="Model.findOneAndRemove(): First argument must not be a function.\n\n"+" "+this.modelName+".findOneAndRemove(conditions, callback)\n"+" "+this.modelName+".findOneAndRemove(conditions)\n"+" "+this.modelName+".findOneAndRemove()\n";throw new TypeError(e)}if(typeof t==="function"){r=t;t=undefined}r=this.$handleCallbackError(r);let n;if(t){n=t.select;t.select=undefined}const i=new this.Query({},{},this,this.$__collection);i.select(n);return i.findOneAndRemove(e,t,r)};Model.findByIdAndRemove=function(e,t,r){_checkContext(this,"findByIdAndRemove");if(arguments.length===1&&typeof e==="function"){const e="Model.findByIdAndRemove(): First argument must not be a function.\n\n"+" "+this.modelName+".findByIdAndRemove(id, callback)\n"+" "+this.modelName+".findByIdAndRemove(id)\n"+" "+this.modelName+".findByIdAndRemove()\n";throw new TypeError(e)}r=this.$handleCallbackError(r);return this.findOneAndRemove({_id:e},t,r)};Model.create=function create(e,t,r){_checkContext(this,"create");let n;let i;const o=this.schema.options.discriminatorKey;if(Array.isArray(e)){n=e;i=typeof t==="function"?t:r;t=t!=null&&typeof t==="object"?t:{}}else{const e=arguments[arguments.length-1];t={};if(typeof e==="function"||arguments.length>1&&!e){n=[...arguments];i=n.pop()}else{n=[...arguments]}if(n.length===2&&n[0]!=null&&n[1]!=null&&n[0].session==null&&U(e.session)==="ClientSession"&&!this.schema.path("session")){ae.warn("WARNING: to pass a `session` to `Model.create()` in "+"Mongoose, you **must** pass an array as the first argument. See: "+"https://mongoosejs.com/docs/api.html#model_Model.create")}}return this.db.base._promiseOrCallback(i,(r=>{r=this.$wrapCallback(r);if(n.length===0){if(Array.isArray(e)){return r(null,[])}else{return r(null)}}const i=[];let s;n.forEach((e=>{i.push((r=>{const n=this.discriminators&&e[o]!=null?this.discriminators[e[o]]||V(this.discriminators,e[o]):this;if(n==null){throw new l(`Discriminator "${e[o]}" not `+`found for model "${this.modelName}"`)}let i=e;const callbackWrapper=(e,t)=>{if(e){if(!s){s=e}return r(null,{error:e})}r(null,{doc:t})};if(!(i instanceof n)){try{i=new n(i)}catch(e){return callbackWrapper(e)}}i.$save(t,callbackWrapper)}))}));let a=i.length;if(a===0){return r(null,[])}const _done=(t,n)=>{const i=[];const o=n.length;for(let e=0;e{e(((e,r)=>{u[t]=r;if(--a<=0){return _done(null,u)}}))}))}),this.events)};Model.watch=function(e,t){_checkContext(this,"watch");const changeStreamThunk=r=>{e=e||[];ne(e,this.schema,"fullDocument");if(this.$__collection.buffer){this.$__collection.addQueue((()=>{if(this.closed){return}const n=this.$__collection.watch(e,t);r(null,n)}))}else{const n=this.$__collection.watch(e,t);r(null,n)}};return new i(changeStreamThunk,e,t)};Model.startSession=function(){_checkContext(this,"startSession");return this.db.startSession.apply(this.db,arguments)};Model.insertMany=function(e,t,r){_checkContext(this,"insertMany");if(typeof t==="function"){r=t;t=null}return this.db.base._promiseOrCallback(r,(r=>{this.$__insertMany(e,t,r)}),this.events)}; /*! * ignore */Model.$__insertMany=function(e,t,r){const n=this;if(typeof t==="function"){r=t;t=null}if(r){r=this.$handleCallbackError(r);r=this.$wrapCallback(r)}r=r||ae.noop;t=t||{};const i=z(t,"limit",1e3);const o=z(t,"rawResult",false);const s=z(t,"ordered",true);const a=z(t,"lean",false);if(!Array.isArray(e)){e=[e]}const u=[];const c=e.map((e=>r=>{if(!(e instanceof n)){try{e=new n(e)}catch(e){return r(e)}}if(t.session!=null){e.$session(t.session)}if(a){return G((()=>r(null,e)))}e.$validate({__noPromise:true},(function(t){if(t){if(s===false){u.push(t);return r(null,null)}return r(t)}r(null,e)}))}));re(c,i,(function(e,i){if(e){r(e,null);return}const a=i.filter((function(e){return e!=null}));if(a.length===0){if(o){const e={mongoose:{validationErrors:u}};return r(null,e)}r(null,[]);return}const c=a.map((function(e){if(e.$__schema.options.versionKey){e[e.$__schema.options.versionKey]=0}if(e.initializeTimestamps){return e.initializeTimestamps().toObject(Q)}return e.toObject(Q)}));n.$__collection.insertMany(c,t,(function(e,c){if(e){if(e.writeErrors==null&&z(e,"result.result.writeErrors")!=null){e.writeErrors=e.result.result.writeErrors}const t=new Set(z(e,"writeErrors",[]).map((e=>e.index)));let n=-1;e.insertedDocs=a.filter(((e,r)=>{const i=t.has(r);if(s){if(n>-1){return r{if(t!=null){e.insertedDocs=a;return r(t)}r(null,i)}))}r(null,a)}))}))}; /*! * ignore */function _setIsNew(e,t){e.$isNew=t;e.$emit("isNew",t);e.constructor.emit("isNew",t);const r=e.$getAllSubdocs();for(const e of r){e.$isNew=t}}Model.bulkWrite=function(e,t,r){_checkContext(this,"bulkWrite");if(typeof t==="function"){r=t;t=null}t=t||{};const n=e.map((e=>R(this,e,t)));r=this.$handleCallbackError(r);return this.db.base._promiseOrCallback(r,(r=>{r=this.$wrapCallback(r);q(n,((e,t)=>e(t)),(n=>{if(n){return r(n)}if(e.length===0){return r(null,$())}this.$__collection.bulkWrite(e,t,((e,t)=>{if(e){return r(e)}r(null,t)}))}))}),this.events)};Model.bulkSave=function(e,t){const r=e.map(buildPreSavePromise);const n=this.buildBulkWriteOperations(e,{skipValidation:true});let i;return Promise.all(r).then((()=>i=this.bulkWrite(n,t))).then((()=>e.map(buildSuccessfulWriteHandlerPromise))).then((()=>i)).catch((t=>{if(!z(t,"writeErrors.length")){throw t}return Promise.all(e.map((e=>{const r=t.writeErrors.find((t=>{const r=t.err.op._id||t.err.op.q._id;return r.toString()===e._id.toString()}));if(r==null){return buildSuccessfulWriteHandlerPromise(e)}}))).then((()=>{throw t}))}))};function buildPreSavePromise(e){return new Promise(((t,r)=>{e.schema.s.hooks.execPre("save",e,(e=>{if(e){r(e);return}t()}))}))}function buildSuccessfulWriteHandlerPromise(e){return new Promise(((t,r)=>{handleSuccessfulWrite(e,t,r)}))}function handleSuccessfulWrite(e,t,r){if(e.$isNew){_setIsNew(e,false)}e.$__reset();e.schema.s.hooks.execPost("save",e,{},(e=>{if(e){r(e);return}t()}))}Model.buildBulkWriteOperations=function buildBulkWriteOperations(e,t){if(!Array.isArray(e)){throw new Error(`bulkSave expects an array of documents to be passed, received \`${e}\` instead`)}setDefaultOptions();const r=e.reduce(((e,r,n)=>{if(!t.skipValidation){if(!(r instanceof o)){throw new Error(`documents.${n} was not a mongoose document, documents must be an array of mongoose documents (instanceof mongoose.Document).`)}const e=r.validateSync();if(e){throw e}}const i=r.isNew;if(i){e.push({insertOne:{document:r}});return e}const s=r.$__delta();const a=s!=null&&!ae.isEmptyObject(s[0]);if(a){const t=r.$__where(s[0]);const n=s[1];_applyCustomWhere(r,t);r.$__version(t,s);e.push({updateOne:{filter:t,update:n}});return e}return e}),[]);return r;function setDefaultOptions(){t=t||{};if(t.skipValidation==null){t.skipValidation=false}}};Model.hydrate=function(e,t){_checkContext(this,"hydrate");const n=r(67579).createModel(this,e,t);n.$init(e);return n};Model.update=function update(e,t,r,n){_checkContext(this,"update");return _update(this,"update",e,t,r,n)};Model.updateMany=function updateMany(e,t,r,n){_checkContext(this,"updateMany");return _update(this,"updateMany",e,t,r,n)};Model.updateOne=function updateOne(e,t,r,n){_checkContext(this,"updateOne");return _update(this,"updateOne",e,t,r,n)};Model.replaceOne=function replaceOne(e,t,r,n){_checkContext(this,"replaceOne");const i=z(this,"schema.options.versionKey",null);if(i&&!t[i]){t[i]=0}return _update(this,"replaceOne",e,t,r,n)}; /*! * Common code for `updateOne()`, `updateMany()`, `replaceOne()`, and `update()` * because they need to do the same thing */function _update(e,t,r,n,i,s){const a=new e.Query({},{},e,e.collection);s=e.$handleCallbackError(s);if(r instanceof o){r=r.toObject()}else{r=ae.clone(r)}i=typeof i==="function"?i:ae.clone(i);const u=z(e,"schema.options.versionKey",null);_decorateUpdateWithVersionKey(n,i,u);return a[t](r,n,i,s)}Model.mapReduce=function mapReduce(e,t){_checkContext(this,"mapReduce");t=this.$handleCallbackError(t);return this.db.base._promiseOrCallback(t,(t=>{t=this.$wrapCallback(t);if(!Model.mapReduce.schema){const e={_id:false,id:false,strict:false};Model.mapReduce.schema=new v({},e)}if(!e.out)e.out={inline:1};if(e.verbose!==false)e.verbose=true;e.map=String(e.map);e.reduce=String(e.reduce);if(e.query){let t=new this.Query(e.query);t.cast(this);e.query=t._conditions;t=undefined}this.$__collection.mapReduce(null,null,e,((e,r)=>{if(e){return t(e)}if(r.collection){const e=Model.compile("_mapreduce_"+r.collection.collectionName,Model.mapReduce.schema,r.collection.collectionName,this.db,this.base);e._mapreduce=true;r.model=e;return t(null,r)}t(null,r)}))}),this.events)};Model.aggregate=function aggregate(e,t,r){_checkContext(this,"aggregate");if(arguments.length>3||z(e,"constructor.name")==="Object"){throw new l("Mongoose 5.x disallows passing a spread of operators "+"to `Model.aggregate()`. Instead of "+"`Model.aggregate({ $match }, { $skip })`, do "+"`Model.aggregate([{ $match }, { $skip }])`")}if(typeof e==="function"){r=e;e=[]}if(typeof t==="function"){r=t;t=null}const aggregate=new n(e||[]);aggregate.model(this);if(t!=null){aggregate.option(t)}if(typeof r==="undefined"){return aggregate}r=this.$handleCallbackError(r);r=this.$wrapCallback(r);aggregate.exec(r);return aggregate};Model.validate=function validate(e,t,r,n){if(arguments.length<3||arguments.length===3&&typeof arguments[2]==="function"){r=e}return this.db.base._promiseOrCallback(n,(n=>{const i=this.schema;let o=Object.keys(i.paths);if(t!=null){const e=new Set(t);o=o.filter((t=>{const r=t.split(".");let n=r[0];for(const t of r){if(e.has(n)){return true}n+="."+t}return e.has(t)}))}for(const t of o){const r=i.path(t);if(!r||!r.$isMongooseArray){continue}const n=z(e,t);pushNestedArrayPaths(n,t)}let s=o.length;let a=null;for(const t of o){const n=i.path(t);if(n==null){_checkDone();continue}const o=t.split(".");let s=e;for(let e=0;e{if(e){a=a||new _;if(e instanceof _){for(const r of Object.keys(e.errors)){a.addError(`${t}.${e.errors[r].path}`,r)}}else{a.addError(e.path,e)}}_checkDone()}),r,{path:t})}function pushNestedArrayPaths(e,t){if(e==null){return}for(let r=0;r{r=this.$wrapCallback(r);_populate(n,e,t,i,r)}),this.events)}; /*! * Populate helper * * @param {Model} model the model to use * @param {Document|Array} docs Either a single document or array of documents to populate. * @param {Object} paths * @param {Function} [cb(err,doc)] Optional callback, executed upon completion. Receives `err` and the `doc(s)`. * @return {Function} * @api private */function _populate(e,t,r,n,i){let o=r.length;if(r.length===0){return i(null,t)}for(const n of r){populate(e,t,n,next)}function next(e){if(e){return i(e,null)}if(--o){return}i(null,t)}} /*! * Populates `docs` */const ye=/\s?-_id\s?/;const ve=/\s?-_id\s?/g;function populate(e,t,r,n){const i={...r};if(r.strictPopulate==null){if(r._localModel!=null&&r._localModel.schema._userProvidedOptions.strictPopulate!=null){i.strictPopulate=r._localModel.schema._userProvidedOptions.strictPopulate}else if(r._localModel!=null&&e.base.options.strictPopulate!=null){i.strictPopulate=e.base.options.strictPopulate}else if(e.base.options.strictPopulate!=null){i.strictPopulate=e.base.options.strictPopulate}}if(!Array.isArray(t)){t=[t]}if(t.length===0||t.every(ae.isNullOrUndefined)){return n()}const o=W(e,t,i);if(o instanceof l){return G((function(){n(o)}))}const s=o.length;let a=[];function flatten(e){return undefined!==e}let u=s;let c=false;const d=[];for(let t=0;tObject.assign({},e,{path:r.path+"."+e.path})));return e.populate(t,i,n)}return n()}for(const e of d){_execPopulateQuery.apply(null,e)}function _next(e,t){if(e!=null){return n(e,null)}a=a.concat(t);if(--u===0){_done()}}function _done(){for(const t of d){const r=t[0];const n=t[3];for(const e of a){r.options._childDocs.push(e)}_assign(e,a,r,n)}for(const e of d){ie(e[0].foreignField,e[0].options,a)}n()}} /*! * ignore */function _execPopulateQuery(e,t,r,n,i){const o=ae.clone(e.options.populate);const s=Object.assign({skip:e.options.skip,limit:e.options.limit,perDocumentLimit:e.options.perDocumentLimit},e.options.options);if(e.count){delete s.skip}if(s.perDocumentLimit!=null){s.limit=s.perDocumentLimit;delete s.perDocumentLimit}else if(s.limit!=null){s.limit=s.limit*e.ids.length}const a=e.model.find(t,r,s);for(const t of e.foreignField){if(t!=="_id"&&a.selectedInclusively()&&!X(a._fields,t)){a.select(t)}}if(e.count){for(const t of e.foreignField){a.select(t)}}if(o){if(e.model.baseModelName!=null){if(Array.isArray(o)){o.forEach((e=>{e.strictPopulate=false}))}else{o.strictPopulate=false}}const t=e.options._fullPath||e.options.path;if(Array.isArray(o)){for(const e of o){e._fullPath=t+"."+e.path}}else if(typeof o==="object"){o._fullPath=t+"."+o.path}a.populate(o)}a.exec(((t,r)=>{if(t!=null){return i(t)}for(const t of r){ee.set(t,e.model)}i(null,r)}))} /*! * ignore */function _assign(e,t,r,n){const i=r.options;const s=r.isVirtual;const a=r.justOne;let u;const c=z(i,"options.lean",false);const l=t.length;const d={};const h={};let m;let g;const y=ae.clone(r.allIds);for(let e=0;e{}));return i};Model.$handleCallbackError=function(e){if(e==null){return e}if(typeof e!=="function"){throw new l("Callback must be a function, got "+e)}const t=this;return function(){G((()=>{try{e.apply(null,arguments)}catch(e){t.emit("error",e)}}))}}; /*! * ignore */Model.$wrapCallback=function(e){const t=new b;const r=this;return function(n){if(n!=null&&n.name==="MongoServerSelectionError"){arguments[0]=t.assimilateError(n)}if(n!=null&&n.name==="MongoNetworkTimeoutError"&&n.message.endsWith("timed out")){r.db.emit("timeout")}return e.apply(null,arguments)}};Model.inspect=function(){return`Model { ${this.modelName} }`};if(se.inspect.custom){ /*! * Avoid Node deprecation warning DEP0079 */ Model[se.inspect.custom]=Model.inspect} /*! * Module exports. */e.exports=t=Model},28561:(e,t)=>{"use strict"; /*! * ignore */t.h={transform:false,virtuals:false,getters:false,_skipDepopulateTopLevel:true,depopulate:true,flattenDecimals:false,useProjection:false}},6078:(e,t,r)=>{"use strict";const n=r(48546);class PopulateOptions{constructor(e){this._docs={};this._childDocs=[];if(e==null){return}e=n(e);Object.assign(this,e);if(typeof e.subPopulate==="object"){this.populate=e.subPopulate}if(e.perDocumentLimit!=null&&e.limit!=null){throw new Error("Can not use `limit` and `perDocumentLimit` at the same time. Path: `"+e.path+"`.")}}}e.exports=PopulateOptions},10293:(e,t,r)=>{"use strict";const n=r(44829);class SchemaArrayOptions extends n{}const i=r(80458);Object.defineProperty(SchemaArrayOptions.prototype,"enum",i);Object.defineProperty(SchemaArrayOptions.prototype,"of",i); /*! * ignore */e.exports=SchemaArrayOptions},22137:(e,t,r)=>{"use strict";const n=r(44829);class SchemaBufferOptions extends n{}const i=r(80458);Object.defineProperty(SchemaBufferOptions.prototype,"subtype",i); /*! * ignore */e.exports=SchemaBufferOptions},27157:(e,t,r)=>{"use strict";const n=r(44829);class SchemaDateOptions extends n{}const i=r(80458);Object.defineProperty(SchemaDateOptions.prototype,"min",i);Object.defineProperty(SchemaDateOptions.prototype,"max",i);Object.defineProperty(SchemaDateOptions.prototype,"expires",i); /*! * ignore */e.exports=SchemaDateOptions},99157:(e,t,r)=>{"use strict";const n=r(44829);class SchemaDocumentArrayOptions extends n{}const i=r(80458);Object.defineProperty(SchemaDocumentArrayOptions.prototype,"excludeIndexes",i);Object.defineProperty(SchemaDocumentArrayOptions.prototype,"_id",i); /*! * ignore */e.exports=SchemaDocumentArrayOptions},7950:(e,t,r)=>{"use strict";const n=r(44829);class SchemaMapOptions extends n{}const i=r(80458);Object.defineProperty(SchemaMapOptions.prototype,"of",i);e.exports=SchemaMapOptions},38288:(e,t,r)=>{"use strict";const n=r(44829);class SchemaNumberOptions extends n{}const i=r(80458);Object.defineProperty(SchemaNumberOptions.prototype,"min",i);Object.defineProperty(SchemaNumberOptions.prototype,"max",i);Object.defineProperty(SchemaNumberOptions.prototype,"enum",i);Object.defineProperty(SchemaNumberOptions.prototype,"populate",i); /*! * ignore */e.exports=SchemaNumberOptions},95510:(e,t,r)=>{"use strict";const n=r(44829);class SchemaObjectIdOptions extends n{}const i=r(80458);Object.defineProperty(SchemaObjectIdOptions.prototype,"auto",i);Object.defineProperty(SchemaObjectIdOptions.prototype,"populate",i); /*! * ignore */e.exports=SchemaObjectIdOptions},85790:(e,t,r)=>{"use strict";const n=r(44829);class SchemaStringOptions extends n{}const i=r(80458);Object.defineProperty(SchemaStringOptions.prototype,"enum",i);Object.defineProperty(SchemaStringOptions.prototype,"match",i);Object.defineProperty(SchemaStringOptions.prototype,"lowercase",i);Object.defineProperty(SchemaStringOptions.prototype,"trim",i);Object.defineProperty(SchemaStringOptions.prototype,"uppercase",i);Object.defineProperty(SchemaStringOptions.prototype,"minLength",i);Object.defineProperty(SchemaStringOptions.prototype,"minlength",i);Object.defineProperty(SchemaStringOptions.prototype,"maxLength",i);Object.defineProperty(SchemaStringOptions.prototype,"maxlength",i);Object.defineProperty(SchemaStringOptions.prototype,"populate",i); /*! * ignore */e.exports=SchemaStringOptions},98137:(e,t,r)=>{"use strict";const n=r(44829);class SchemaSubdocumentOptions extends n{}const i=r(80458);Object.defineProperty(SchemaSubdocumentOptions.prototype,"_id",i);e.exports=SchemaSubdocumentOptions},44829:(e,t,r)=>{"use strict";const n=r(48546);class SchemaTypeOptions{constructor(e){if(e==null){return this}Object.assign(this,n(e))}}const i=r(80458);Object.defineProperty(SchemaTypeOptions.prototype,"type",i);Object.defineProperty(SchemaTypeOptions.prototype,"validate",i);Object.defineProperty(SchemaTypeOptions.prototype,"cast",i);Object.defineProperty(SchemaTypeOptions.prototype,"required",i);Object.defineProperty(SchemaTypeOptions.prototype,"default",i);Object.defineProperty(SchemaTypeOptions.prototype,"ref",i);Object.defineProperty(SchemaTypeOptions.prototype,"select",i);Object.defineProperty(SchemaTypeOptions.prototype,"index",i);Object.defineProperty(SchemaTypeOptions.prototype,"unique",i);Object.defineProperty(SchemaTypeOptions.prototype,"immutable",i);Object.defineProperty(SchemaTypeOptions.prototype,"sparse",i);Object.defineProperty(SchemaTypeOptions.prototype,"text",i);Object.defineProperty(SchemaTypeOptions.prototype,"transform",i);e.exports=SchemaTypeOptions},23370:(e,t,r)=>{"use strict";const n=r(80458);class VirtualOptions{constructor(e){Object.assign(this,e);if(e!=null&&e.options!=null){this.options=Object.assign({},e.options)}}}Object.defineProperty(VirtualOptions.prototype,"ref",n);Object.defineProperty(VirtualOptions.prototype,"refPath",n);Object.defineProperty(VirtualOptions.prototype,"localField",n);Object.defineProperty(VirtualOptions.prototype,"foreignField",n);Object.defineProperty(VirtualOptions.prototype,"justOne",n);Object.defineProperty(VirtualOptions.prototype,"count",n);Object.defineProperty(VirtualOptions.prototype,"match",n);Object.defineProperty(VirtualOptions.prototype,"options",n);Object.defineProperty(VirtualOptions.prototype,"skip",n);Object.defineProperty(VirtualOptions.prototype,"limit",n);Object.defineProperty(VirtualOptions.prototype,"perDocumentLimit",n);e.exports=VirtualOptions},80458:e=>{"use strict";e.exports=Object.freeze({enumerable:true,configurable:true,writable:true,value:void 0})},76469:(e,t,r)=>{"use strict";const n=r(48546);class RemoveOptions{constructor(e){if(e==null){return}Object.assign(this,n(e))}}e.exports=RemoveOptions},74903:(e,t,r)=>{"use strict";const n=r(48546);class SaveOptions{constructor(e){if(e==null){return}Object.assign(this,n(e))}}e.exports=SaveOptions},66766:e=>{"use strict"; /*! * ignore */e.exports=function(e){const t=true;e.s.hooks.post("validate",false,(function(){if(this.$isSubdocument){return}this.$__.validating=null}),t);e.s.hooks.post("validate",false,(function(e,t,r){if(this.$isSubdocument){r();return}this.$__.validating=null;r()}),t)}},65667:(e,t,r)=>{"use strict";const n=r(93801); /*! * ignore */e.exports=function(e){const t=true;e.s.hooks.pre("remove",false,(function(e){if(this.$isSubdocument){e();return}const t=this;const r=this.$getAllSubdocs();n(r,(function(e,t){e.$__remove(t)}),(function(r){if(r){return t.$__schema.s.hooks.execPost("remove:error",t,[t],{error:r},(function(t){e(t)}))}e()}))}),null,t)}},23803:(e,t,r)=>{"use strict";const n=r(93801); /*! * ignore */e.exports=function(e){const t=true;e.s.hooks.pre("save",false,(function(e){if(this.$isSubdocument){e();return}const t=this;const r=this.$getAllSubdocs();if(!r.length){e();return}n(r,(function(e,t){e.$__schema.s.hooks.execPre("save",e,(function(e){t(e)}))}),(function(r){if(r){return t.$__schema.s.hooks.execPost("save:error",t,[t],{error:r},(function(t){e(t)}))}e()}))}),null,t);e.s.hooks.post("save",(function(e,t){if(this.$isSubdocument){t();return}const r=this;const i=this.$getAllSubdocs();if(!i.length){t();return}n(i,(function(e,t){e.$__schema.s.hooks.execPost("save",e,[e],(function(e){t(e)}))}),(function(e){if(e){return r.$__schema.s.hooks.execPost("save:error",r,[r],{error:e},(function(e){t(e)}))}t()}))}),null,t)}},89974:(e,t,r)=>{"use strict";const n=r(63241).objectIdSymbol;const i=r(52492); /*! * ignore */e.exports=function shardingPlugin(e){e.post("init",(function(){storeShard.call(this);return this}));e.pre("save",(function(e){applyWhere.call(this);e()}));e.pre("remove",(function(e){applyWhere.call(this);e()}));e.post("save",(function(){storeShard.call(this)}))}; /*! * ignore */function applyWhere(){let e;let t;if(this.$__.shardval){e=Object.keys(this.$__.shardval);t=e.length;this.$where=this.$where||{};for(let r=0;r{"use strict";const n=r(63241).arrayAtomicsSymbol;const i=r(63241).sessionNewDocuments;const o=r(52492);e.exports=function trackTransaction(e){e.pre("save",(function(){const e=this.$session();if(e==null){return}if(e.transaction==null||e[i]==null){return}if(!e[i].has(this)){const t={};if(this.isNew){t.isNew=true}if(this.$__schema.options.versionKey){t.versionKey=this.get(this.$__schema.options.versionKey)}t.modifiedPaths=new Set(Object.keys(this.$__.activePaths.states.modify));t.atomics=_getAtomics(this);e[i].set(this,t)}else{const t=e[i].get(this);for(const e of Object.keys(this.$__.activePaths.states.modify)){t.modifiedPaths.add(e)}t.atomics=_getAtomics(this,t.atomics)}}))};function _getAtomics(e,t){const r=new Map;t=t||new Map;const i=Object.keys(e.$__.activePaths.init).concat(Object.keys(e.$__.activePaths.modify));for(const s of i){const i=e.$__getValue(s);if(i!=null&&i instanceof Array&&o.isMongooseDocumentArray(i)&&i.length&&i[n]!=null&&Object.keys(i[n]).length!==0){const e=t.get(s)||{};r.set(s,mergeAtomics(e,i[n]))}}const s=e.$__dirty();for(const e of s){const i=e.path;const o=e.value;if(o!=null&&o[n]!=null&&Object.keys(o[n]).length!==0){const e=t.get(i)||{};r.set(i,mergeAtomics(e,o[n]))}}return r}function mergeAtomics(e,t){e=e||{};if(t.$pullAll!=null){e.$pullAll=(e.$pullAll||[]).concat(t.$pullAll)}if(t.$push!=null){e.$push=e.$push||{};e.$push.$each=(e.$push.$each||[]).concat(t.$push.$each)}if(t.$addToSet!=null){e.$addToSet=(e.$addToSet||[]).concat(t.$addToSet)}if(t.$set!=null){e.$set=Object.assign(e.$set||{},t.$set)}return e}},64579:e=>{"use strict"; /*! * ignore */e.exports=function(e){const t=true;e.pre("save",false,(function validateBeforeSave(e,t){const r=this;if(this.$isSubdocument){return e()}const n=t&&typeof t==="object"&&"validateBeforeSave"in t;let i;if(n){i=!!t.validateBeforeSave}else{i=this.$__schema.options.validateBeforeSave}if(i){const n=t&&typeof t==="object"&&"validateModifiedOnly"in t;const i=n?{validateModifiedOnly:t.validateModifiedOnly}:null;this.$validate(i,(function(t){return r.$__schema.s.hooks.execPost("save:error",r,[r],{error:t},(function(t){r.$op="save";e(t)}))}))}else{e()}}),null,t)}},35071:(e,t,r)=>{"use strict"; /*! * ignore */const n=r(39491);const i=r(50231);const o={_promise:null};o.get=function(){return o._promise};o.set=function(e){n.ok(typeof e==="function",`mongoose.Promise must be a function, got ${e}`);o._promise=e;i.Promise=e}; /*! * Use native promises by default */o.set(global.Promise);e.exports=o},68488:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(94498);const i=r(8492);const o=r(96387);const s=r(50598);const a=r(10625);const u=r(4222);const c=r(71243).get().ReadPreference;const l=r(90412);const d=r(35724);const h=r(15278);const m=r(245);const g=r(93054);const y=r(30003);const v=r(32939);const b=r(6709);const _=r(43607);const E=r(74693);const k=r(60138);const x=r(67579);const C=r(64248);const O=r(60257);const D=r(46072);const B=r(71647);const P=r(50231);const I=r(91069);const R=r(59310);const N=r(17488);const $=r(73956);const L=r(53849);const q=r(22451);const z=r(15838);const U=r(73837);const V=r(52492);const W=r(87765);const G=r(31164);function Query(e,t,r,n){if(!this._mongooseOptions){this._mongooseOptions={}}t=t||{};this._transforms=[];this._hooks=new o;this._executionStack=null;const i=Object.keys(t);for(const e of i){this._mongooseOptions[e]=t[e]}if(n){this.mongooseCollection=n}if(r){this.model=r;this.schema=r.schema}if(this.model&&this.model._mapreduce){this.lean()}P.call(this,this.mongooseCollection,t);if(e){this.find(e)}this.options=this.options||{};this.$useProjection=true;const s=b(this,"schema.options.collation",null);if(s!=null){this.options.collation=s}} /*! * inherit mquery */Query.prototype=new P;Query.prototype.constructor=Query;Query.base=P.prototype;Query.use$geoWithin=P.use$geoWithin;Query.prototype.toConstructor=function toConstructor(){const e=this.model;const t=this.mongooseCollection;const CustomQuery=function(n,i){if(!(this instanceof CustomQuery)){return new CustomQuery(n,i)}this._mongooseOptions=V.clone(r._mongooseOptions);Query.call(this,n,i||null,e,t)};U.inherits(CustomQuery,e.Query);const r=CustomQuery.prototype;r.options={};const n=Object.assign({},this.options);if(n.sort!=null){r.sort(n.sort);delete n.sort}r.setOptions(n);r.op=this.op;r._validateOp();r._conditions=V.clone(this._conditions);r._fields=V.clone(this._fields);r._update=V.clone(this._update,{flattenDecimals:false});r._path=this._path;r._distinct=this._distinct;r._collection=this._collection;r._mongooseOptions=this._mongooseOptions;return CustomQuery};Query.prototype.clone=function clone(){const e=this.model;const t=this.mongooseCollection;const r=new this.constructor({},{},e,t);const n=Object.assign({},this.options);if(n.sort!=null){r.sort(n.sort);delete n.sort}r.setOptions(n);r.op=this.op;r._validateOp();r._conditions=V.clone(this._conditions);r._fields=V.clone(this._fields);r._update=V.clone(this._update,{flattenDecimals:false});r._path=this._path;r._distinct=this._distinct;r._collection=this._collection;r._mongooseOptions=this._mongooseOptions;return r};Query.prototype.slice=function(){if(arguments.length===0){return this}this._validate("slice");let e;let t;if(arguments.length===1){const r=arguments[0];if(typeof r==="object"&&!Array.isArray(r)){const e=Object.keys(r);const t=e.length;for(let n=0;n{if(n){t[e]=r[e]=sanitizeValue(n)}else{Object.keys(r).forEach((n=>{if(B(e,n)){delete t[n];delete r[n]}}))}}))}else if(this.selectedExclusively()){Object.entries(e).forEach((([e,n])=>{if(!n){t[e]=r[e]=sanitizeValue(n)}else{Object.keys(r).forEach((n=>{if(B(e,n)){delete t[n];delete r[n]}}))}}))}else{const n=Object.keys(e);for(let i=0;i0){this._mongooseOptions=e}return this._mongooseOptions}; /*! * ignore */Query.prototype._castConditions=function(){let e=undefined;if(this.model!=null&&V.hasUserDefinedProperty(this.model.db.options,"sanitizeFilter")){e=this.model.db.options.sanitizeFilter}else if(this.model!=null&&V.hasUserDefinedProperty(this.model.base.options,"sanitizeFilter")){e=this.model.base.options.sanitizeFilter}else{e=this._mongooseOptions.sanitizeFilter}if(e){N(this._conditions)}try{this.cast(this.model);this._unsetCastError()}catch(e){this.error(e)}}; /*! * ignore */function _castArrayFilters(e){try{m(e)}catch(t){e.error(t)}}Query.prototype._find=G((function(e){this._castConditions();if(this.error()!=null){e(this.error());return null}e=_wrapThunkCallback(this,e);this._applyPaths();this._fields=this._castFields(this._fields);const t=this._fieldsForExec();const r=this._mongooseOptions;const n=this;const i=n._userProvidedFields||{};l(this.options,this.model);const o=Object.assign({},{session:b(this,"options.session",null)});const cb=(s,a)=>{if(s){return e(s)}if(a.length===0){return e(null,a)}if(this.options.explain){return e(null,a)}if(!r.populate){return r.lean?e(null,a):v(n.model,a,t,i,o,e)}const u=x.preparePopulationOptionsMQ(n,r);if(r.lean){return n.model.populate(a,u,e)}v(n.model,a,t,i,o,((t,r)=>{if(t!=null){return e(t)}n.model.populate(r,u,e)}))};const s=this._optionsForExec();s.projection=this._fieldsForExec();const a=this._conditions;this._collection.collection.find(a,s,((e,t)=>{if(e!=null){return cb(e)}if(s.explain){return t.explain(cb)}try{return t.toArray(cb)}catch(e){return cb(e)}}))}));Query.prototype.find=function(e,t){this.op="find";if(typeof e==="function"){t=e;e={}}e=V.toObject(e);if(P.canMerge(e)){this.merge(e);prepareDiscriminatorCriteria(this)}else if(e!=null){this.error(new a(e,"filter","find"))}if(!t){return Query.base.find.call(this)}this.exec(t);return this};Query.prototype.merge=function(e){if(!e){return this}const t={overwrite:true};if(e instanceof Query){if(e._conditions){V.merge(this._conditions,e._conditions,t)}if(e._fields){this._fields||(this._fields={});V.merge(this._fields,e._fields,t)}if(e.options){this.options||(this.options={});V.merge(this.options,e.options,t)}if(e._update){this._update||(this._update={});V.mergeClone(this._update,e._update)}if(e._distinct){this._distinct=e._distinct}V.merge(this._mongooseOptions,e._mongooseOptions);return this}V.merge(this._conditions,e,t);return this};Query.prototype.collation=function(e){if(this.options==null){this.options={}}this.options.collation=e;return this};Query.prototype._completeOne=function(e,t,r){if(!e&&!this.options.rawResult){return r(null,null)}const n=this.model;const i=V.clone(this._fields);const o=this._userProvidedFields||{};const s=this._mongooseOptions;const a=this.options;if(a.explain){return r(null,e)}if(!s.populate){return s.lean?_completeOneLean(e,t,a,r):completeOne(n,e,t,a,i,o,null,r)}const u=x.preparePopulationOptionsMQ(this,this._mongooseOptions);if(s.lean){return n.populate(e,u,((e,n)=>{if(e!=null){return r(e)}_completeOneLean(n,t,a,r)}))}completeOne(n,e,t,a,i,o,[],((e,t)=>{if(e!=null){return r(e)}n.populate(t,u,r)}))};Query.prototype._findOne=G((function(e){this._castConditions();if(this.error()){e(this.error());return null}this._applyPaths();this._fields=this._castFields(this._fields);l(this.options,this.model);Query.base.findOne.call(this,{},((t,r)=>{if(t){e(t);return null}this._completeOne(r,null,_wrapThunkCallback(this,e))}))}));Query.prototype.findOne=function(e,t,r,n){this.op="findOne";this._validateOp();if(typeof e==="function"){n=e;e=null;t=null;r=null}else if(typeof t==="function"){n=t;r=null;t=null}else if(typeof r==="function"){n=r;r=null}e=V.toObject(e);if(r){this.setOptions(r)}if(t){this.select(t)}if(P.canMerge(e)){this.merge(e);prepareDiscriminatorCriteria(this)}else if(e!=null){this.error(new a(e,"filter","findOne"))}if(!n){return Query.base.findOne.call(this)}this.exec(n);return this};Query.prototype._count=G((function(e){try{this.cast(this.model)}catch(e){this.error(e)}if(this.error()){return e(this.error())}l(this.options,this.model);const t=this._conditions;const r=this._optionsForExec();this._collection.count(t,r,V.tick(e))}));Query.prototype._countDocuments=G((function(e){try{this.cast(this.model)}catch(e){this.error(e)}if(this.error()){return e(this.error())}l(this.options,this.model);const t=this._conditions;const r=this._optionsForExec();this._collection.collection.countDocuments(t,r,V.tick(e))}));Query.prototype._estimatedDocumentCount=G((function(e){if(this.error()){return e(this.error())}const t=this._optionsForExec();this._collection.collection.estimatedDocumentCount(t,V.tick(e))}));Query.prototype.count=function(e,t){this.op="count";this._validateOp();if(typeof e==="function"){t=e;e=undefined}e=V.toObject(e);if(P.canMerge(e)){this.merge(e)}if(!t){return this}this.exec(t);return this};Query.prototype.estimatedDocumentCount=function(e,t){this.op="estimatedDocumentCount";this._validateOp();if(typeof e==="function"){t=e;e=undefined}if(typeof e==="object"&&e!=null){this.setOptions(e)}if(!t){return this}this.exec(t);return this};Query.prototype.countDocuments=function(e,t,r){this.op="countDocuments";this._validateOp();if(typeof e==="function"){r=e;e=undefined;t=undefined}if(typeof t==="function"){r=t;t=undefined}e=V.toObject(e);if(P.canMerge(e)){this.merge(e)}if(typeof t==="object"&&t!=null){this.setOptions(t)}if(!r){return this}this.exec(r);return this};Query.prototype.__distinct=G((function __distinct(e){this._castConditions();if(this.error()){e(this.error());return null}l(this.options,this.model);const t=this._optionsForExec();this._collection.collection.distinct(this._distinct,this._conditions,t,e)}));Query.prototype.distinct=function(e,t,r){this.op="distinct";this._validateOp();if(!r){if(typeof t==="function"){r=t;t=undefined}else if(typeof e==="function"){r=e;e=undefined;t=undefined}}t=V.toObject(t);if(P.canMerge(t)){this.merge(t);prepareDiscriminatorCriteria(this)}else if(t!=null){this.error(new a(t,"filter","distinct"))}if(e!=null){this._distinct=e}if(r!=null){this.exec(r)}return this};Query.prototype.sort=function(e){if(arguments.length>1){throw new Error("sort() only takes 1 Argument")}return Query.base.sort.call(this,e)};Query.prototype.remove=function(e,t){this.op="remove";if(typeof e==="function"){t=e;e=null}e=V.toObject(e);if(P.canMerge(e)){this.merge(e);prepareDiscriminatorCriteria(this)}else if(e!=null){this.error(new a(e,"filter","remove"))}if(!t){return Query.base.remove.call(this)}this.exec(t);return this}; /*! * ignore */Query.prototype._remove=G((function(e){this._castConditions();if(this.error()!=null){e(this.error());return this}e=_wrapThunkCallback(this,e);return Query.base.remove.call(this,x.handleDeleteWriteOpResult(e))}));Query.prototype.deleteOne=function(e,t,r){this.op="deleteOne";if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}else{this.setOptions(t)}e=V.toObject(e);if(P.canMerge(e)){this.merge(e);prepareDiscriminatorCriteria(this)}else if(e!=null){this.error(new a(e,"filter","deleteOne"))}if(!r){return Query.base.deleteOne.call(this)}this.exec.call(this,r);return this}; /*! * Internal thunk for `deleteOne()` */Query.prototype._deleteOne=G((function(e){this._castConditions();if(this.error()!=null){e(this.error());return this}e=_wrapThunkCallback(this,e);return Query.base.deleteOne.call(this,x.handleDeleteWriteOpResult(e))}));Query.prototype.deleteMany=function(e,t,r){this.op="deleteMany";if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}else{this.setOptions(t)}e=V.toObject(e);if(P.canMerge(e)){this.merge(e);prepareDiscriminatorCriteria(this)}else if(e!=null){this.error(new a(e,"filter","deleteMany"))}if(!r){return Query.base.deleteMany.call(this)}this.exec.call(this,r);return this}; /*! * Internal thunk around `deleteMany()` */Query.prototype._deleteMany=G((function(e){this._castConditions();if(this.error()!=null){e(this.error());return this}e=_wrapThunkCallback(this,e);return Query.base.deleteMany.call(this,x.handleDeleteWriteOpResult(e))})); /*! * hydrates a document * * @param {Model} model * @param {Document} doc * @param {Object} res 3rd parameter to callback * @param {Object} fields * @param {Query} self * @param {Array} [pop] array of paths used in population * @param {Function} callback */function completeOne(e,t,r,n,i,o,s,a){const u=s?{populated:s}:undefined;if(n.rawResult&&t==null){_init(null);return null}const c=x.createModel(e,t,i,o,n);try{c.$init(t,u,_init)}catch(e){_init(e)}function _init(e){if(e){return C((()=>a(e)))}if(n.rawResult){if(t&&c){if(n.session!=null){c.$session(n.session)}r.value=c}else{r.value=null}return C((()=>a(null,r)))}if(n.session!=null){c.$session(n.session)}C((()=>a(null,c)))}} /*! * If the model is a discriminator type and not root, then add the key & value to the criteria. */function prepareDiscriminatorCriteria(e){if(!e||!e.model||!e.model.schema){return}const t=e.model.schema;if(t&&t.discriminatorMapping&&!t.discriminatorMapping.isRoot){e._conditions[t.discriminatorMapping.key]=t.discriminatorMapping.value}}Query.prototype.findOneAndUpdate=function(e,t,r,n){this.op="findOneAndUpdate";this._validateOp();this._validate();switch(arguments.length){case 3:if(typeof r==="function"){n=r;r={}}break;case 2:if(typeof t==="function"){n=t;t=e;e=undefined}r=undefined;break;case 1:if(typeof e==="function"){n=e;e=r=t=undefined}else{t=e;e=r=undefined}}if(P.canMerge(e)){this.merge(e)}if(t){this._mergeUpdate(t)}r=r?V.clone(r):{};if(r.projection){this.select(r.projection);delete r.projection}if(r.fields){this.select(r.fields);delete r.fields}const i=b(this,"model.base.options.returnOriginal");if(r.new==null&&r.returnDocument==null&&r.returnOriginal==null&&i!=null){r.returnOriginal=i}this.setOptions(r);if(!n){return this}this.exec(n);return this}; /*! * Thunk around findOneAndUpdate() * * @param {Function} [callback] * @api private */Query.prototype._findOneAndUpdate=G((function(e){if(this.error()!=null){return e(this.error())}this._findAndModify("update",e)}));Query.prototype.findOneAndRemove=function(e,t,r){this.op="findOneAndRemove";this._validateOp();this._validate();switch(arguments.length){case 2:if(typeof t==="function"){r=t;t={}}break;case 1:if(typeof e==="function"){r=e;e=undefined;t=undefined}break}if(P.canMerge(e)){this.merge(e)}t&&this.setOptions(t);if(!r){return this}this.exec(r);return this};Query.prototype.findOneAndDelete=function(e,t,r){this.op="findOneAndDelete";this._validateOp();this._validate();switch(arguments.length){case 2:if(typeof t==="function"){r=t;t={}}break;case 1:if(typeof e==="function"){r=e;e=undefined;t=undefined}break}if(P.canMerge(e)){this.merge(e)}t&&this.setOptions(t);if(!r){return this}this.exec(r);return this}; /*! * Thunk around findOneAndDelete() * * @param {Function} [callback] * @return {Query} this * @api private */Query.prototype._findOneAndDelete=G((function(e){this._castConditions();if(this.error()!=null){e(this.error());return null}const t=this._conditions;const r=this._optionsForExec();let n=null;if(this._fields!=null){r.projection=this._castFields(V.clone(this._fields));n=r.projection;if(n instanceof Error){e(n);return null}}this._collection.collection.findOneAndDelete(t,r,_wrapThunkCallback(this,((t,r)=>{if(t){return e(t)}const n=r.value;return this._completeOne(n,r,e)})))}));Query.prototype.findOneAndReplace=function(e,t,r,n){this.op="findOneAndReplace";this._validateOp();this._validate();switch(arguments.length){case 3:if(typeof r==="function"){n=r;r=void 0}break;case 2:if(typeof t==="function"){n=t;t=void 0}break;case 1:if(typeof e==="function"){n=e;e=void 0;t=void 0;r=void 0}break}if(P.canMerge(e)){this.merge(e)}if(t!=null){if(k(t)){throw new Error("The replacement document must not contain atomic operators.")}this._mergeUpdate(t)}r=r||{};const i=b(this,"model.base.options.returnOriginal");if(r.new==null&&r.returnDocument==null&&r.returnOriginal==null&&i!=null){r.returnOriginal=i}this.setOptions(r);this.setOptions({overwrite:true});if(!n){return this}this.exec(n);return this}; /*! * Thunk around findOneAndReplace() * * @param {Function} [callback] * @return {Query} this * @api private */Query.prototype._findOneAndReplace=G((function(e){this._castConditions();if(this.error()!=null){e(this.error());return null}const t=this._conditions;const r=this._optionsForExec();convertNewToReturnDocument(r);let n=null;let i=new this.model(this._update,null,true);this._update=i;this._applyPaths();if(this._fields!=null){r.projection=this._castFields(V.clone(this._fields));n=r.projection;if(n instanceof Error){e(n);return null}}i.$validate((n=>{if(n!=null){return e(n)}if(i.toBSON){i=i.toBSON()}this._collection.collection.findOneAndReplace(t,i,r,_wrapThunkCallback(this,((t,r)=>{if(t){return e(t)}const n=r.value;return this._completeOne(n,r,e)})))}))})); /*! * Support the `new` option as an alternative to `returnOriginal` for backwards * compat. */function convertNewToReturnDocument(e){if("new"in e){e.returnDocument=e["new"]?"after":"before";delete e["new"]}if("returnOriginal"in e){e.returnDocument=e["returnOriginal"]?"before":"after";delete e["returnOriginal"]}if(typeof e.returnDocument==="string"){e.returnOriginal=e.returnDocument==="before"}} /*! * Thunk around findOneAndRemove() * * @param {Function} [callback] * @return {Query} this * @api private */Query.prototype._findOneAndRemove=G((function(e){if(this.error()!=null){e(this.error());return}this._findAndModify("remove",e)})); /*! * Get options from query opts, falling back to the base mongoose object. */function _getOption(e,t,r){const n=e._optionsForExec(e.model);if(t in n){return n[t]}if(t in e.model.base.options){return e.model.base.options[t]}return r} /*! * Override mquery.prototype._findAndModify to provide casting etc. * * @param {String} type - either "remove" or "update" * @param {Function} callback * @api private */Query.prototype._findAndModify=function(e,t){if(typeof t!=="function"){throw new Error("Expected callback in _findAndModify")}const r=this.model;const n=r.schema;const i=this;let o;const s=castQuery(this);if(s instanceof Error){return t(s)}_castArrayFilters(this);const a=this._optionsForExec(r);if("strict"in a){this._mongooseOptions.strict=a.strict}const u=this.options.overwrite&&!k(this._update);if(u){this._update=new this.model(this._update,null,true)}if(e==="remove"){a.remove=true}else{if(!("new"in a)&&!("returnOriginal"in a)&&!("returnDocument"in a)){a.new=false}if(!("upsert"in a)){a.upsert=false}if(a.upsert||a["new"]){a.remove=false}if(!u){this._update=castDoc(this,a.overwrite);const e=Object.assign({},a,{setDefaultsOnInsert:this._mongooseOptions.setDefaultsOnInsert});this._update=q(this._conditions,n,this._update,e);if(!this._update||Object.keys(this._update).length===0){if(a.upsert){const e=V.clone(s);delete e._id;this._update={$set:e}}else{this._executionStack=null;this.findOne(t);return this}}else if(this._update instanceof Error){return t(this._update)}else{if(this._update.$set&&Object.keys(this._update.$set).length===0){delete this._update.$set}}}if(Array.isArray(a.arrayFilters)){a.arrayFilters=R(this._update,a.arrayFilters)}}this._applyPaths();if(this._fields){o=V.clone(this._fields);a.projection=this._castFields(o);if(a.projection instanceof Error){return t(a.projection)}}if(a.sort)convertSortToArray(a);const cb=function(e,r,n){if(e){return t(e)}i._completeOne(r,n,t)};const c=_getOption(this,"runValidators",false);const l=i._collection.collection;convertNewToReturnDocument(a);if(e==="remove"){l.findOneAndDelete(s,a,_wrapThunkCallback(i,(function(e,t){return cb(e,t?t.value:t,t)})));return this}const d=u?"findOneAndReplace":"findOneAndUpdate";if(c){this.validate(this._update,a,u,(e=>{if(e){return t(e)}if(this._update&&this._update.toBSON){this._update=this._update.toBSON()}l[d](s,this._update,a,_wrapThunkCallback(i,(function(e,t){return cb(e,t?t.value:t,t)})))}))}else{if(this._update&&this._update.toBSON){this._update=this._update.toBSON()}l[d](s,this._update,a,_wrapThunkCallback(i,(function(e,t){return cb(e,t?t.value:t,t)})))}return this}; /*! * ignore */function _completeOneLean(e,t,r,n){if(r.rawResult){return n(null,t)}return n(null,e)} /*! * Override mquery.prototype._mergeUpdate to handle mongoose objects in * updates. * * @param {Object} doc * @api private */Query.prototype._mergeUpdate=function(e){if(e==null||typeof e==="object"&&Object.keys(e).length===0){return}if(!this._update){this._update=Array.isArray(e)?[]:{}}if(e instanceof Query){if(Array.isArray(this._update)){throw new Error("Cannot mix array and object updates")}if(e._update){V.mergeClone(this._update,e._update)}}else if(Array.isArray(e)){if(!Array.isArray(this._update)){throw new Error("Cannot mix array and object updates")}this._update=this._update.concat(e)}else{if(Array.isArray(this._update)){throw new Error("Cannot mix array and object updates")}V.mergeClone(this._update,e)}}; /*! * The mongodb driver 1.3.23 only supports the nested array sort * syntax. We must convert it or sorting findAndModify will not work. */function convertSortToArray(e){if(Array.isArray(e.sort)){return}if(!V.isObject(e.sort)){return}const t=[];for(const r in e.sort){if(V.object.hasOwnProperty(e.sort,r)){t.push([r,e.sort[r]])}}e.sort=t} /*! * ignore */function _updateThunk(e,t){this._castConditions();_castArrayFilters(this);if(this.error()!=null){t(this.error());return null}t=_wrapThunkCallback(this,t);const r=this._conditions;const n=this._optionsForExec(this.model);this._update=V.clone(this._update,n);const i=this.options.overwrite&&!k(this._update);if(i){if(e==="updateOne"||e==="updateMany"){return t(new s("The MongoDB server disallows "+"overwriting documents using `"+e+"`. See: "+"https://mongoosejs.com/docs/deprecations.html#update"))}this._update=new this.model(this._update,null,true)}else{this._update=castDoc(this,n.overwrite);if(this._update instanceof Error){t(this._update);return null}if(this._update==null||Object.keys(this._update).length===0){t(null,{acknowledged:false});return null}const e=Object.assign({},n,{setDefaultsOnInsert:this._mongooseOptions.setDefaultsOnInsert});this._update=q(this._conditions,this.model.schema,this._update,e)}if(Array.isArray(n.arrayFilters)){n.arrayFilters=R(this._update,n.arrayFilters)}const o=_getOption(this,"runValidators",false);if(o){this.validate(this._update,n,i,(i=>{if(i){return t(i)}if(this._update.toBSON){this._update=this._update.toBSON()}this._collection[e](r,this._update,n,t)}));return null}if(this._update.toBSON){this._update=this._update.toBSON()}this._collection[e](r,this._update,n,t);return null} /*! * Mongoose calls this function internally to validate the query if * `runValidators` is set * * @param {Object} castedDoc the update, after casting * @param {Object} options the options from `_optionsForExec()` * @param {Function} callback * @api private */Query.prototype.validate=function validate(e,t,r,n){return _(n,(n=>{try{if(r){e.$validate(n)}else{z(this,this.model.schema,e,t,n)}}catch(e){C((function(){n(e)}))}}))}; /*! * Internal thunk for .update() * * @param {Function} callback * @see Model.update #model_Model.update * @api private */Query.prototype._execUpdate=G((function(e){return _updateThunk.call(this,"update",e)})); /*! * Internal thunk for .updateMany() * * @param {Function} callback * @see Model.update #model_Model.update * @api private */Query.prototype._updateMany=G((function(e){return _updateThunk.call(this,"updateMany",e)})); /*! * Internal thunk for .updateOne() * * @param {Function} callback * @see Model.update #model_Model.update * @api private */Query.prototype._updateOne=G((function(e){return _updateThunk.call(this,"updateOne",e)})); /*! * Internal thunk for .replaceOne() * * @param {Function} callback * @see Model.replaceOne #model_Model.replaceOne * @api private */Query.prototype._replaceOne=G((function(e){return _updateThunk.call(this,"replaceOne",e)}));Query.prototype.update=function(e,t,r,n){if(typeof r==="function"){n=r;r=null}else if(typeof t==="function"){n=t;t=e;e={};r=null}else if(typeof e==="function"){n=e;e=undefined;t=undefined;r=undefined}else if(typeof e==="object"&&!t&&!r&&!n){t=e;e=undefined;r=undefined;n=undefined}return _update(this,"update",e,t,r,n)};Query.prototype.updateMany=function(e,t,r,n){if(typeof r==="function"){n=r;r=null}else if(typeof t==="function"){n=t;t=e;e={};r=null}else if(typeof e==="function"){n=e;e=undefined;t=undefined;r=undefined}else if(typeof e==="object"&&!t&&!r&&!n){t=e;e=undefined;r=undefined;n=undefined}return _update(this,"updateMany",e,t,r,n)};Query.prototype.updateOne=function(e,t,r,n){if(typeof r==="function"){n=r;r=null}else if(typeof t==="function"){n=t;t=e;e={};r=null}else if(typeof e==="function"){n=e;e=undefined;t=undefined;r=undefined}else if(typeof e==="object"&&!t&&!r&&!n){t=e;e=undefined;r=undefined;n=undefined}return _update(this,"updateOne",e,t,r,n)};Query.prototype.replaceOne=function(e,t,r,n){if(typeof r==="function"){n=r;r=null}else if(typeof t==="function"){n=t;t=e;e={};r=null}else if(typeof e==="function"){n=e;e=undefined;t=undefined;r=undefined}else if(typeof e==="object"&&!t&&!r&&!n){t=e;e=undefined;r=undefined;n=undefined}this.setOptions({overwrite:true});return _update(this,"replaceOne",e,t,r,n)}; /*! * Internal helper for update, updateMany, updateOne, replaceOne */function _update(e,t,r,n,i,o){e.op=t;e._validateOp();r=V.toObject(r);n=n||{};if(i!=null){if("strict"in i){e._mongooseOptions.strict=i.strict}}if(!(r instanceof Query)&&r!=null&&r.toString()!=="[object Object]"){e.error(new a(r,"filter",t))}else{e.merge(r)}if(V.isObject(i)){e.setOptions(i)}e._mergeUpdate(n);if(o){e.exec(o);return e}return Query.base[t].call(e,r,void 0,i,o)}Query.prototype.transform=function(e){this._transforms.push(e);return this};Query.prototype.orFail=function(e){this.transform((t=>{switch(this.op){case"find":if(t.length===0){throw _orFailError(e,this)}break;case"findOne":if(t==null){throw _orFailError(e,this)}break;case"replaceOne":case"update":case"updateMany":case"updateOne":if(b(t,"modifiedCount")===0){throw _orFailError(e,this)}break;case"findOneAndDelete":case"findOneAndRemove":if(b(t,"lastErrorObject.n")===0){throw _orFailError(e,this)}break;case"findOneAndUpdate":case"findOneAndReplace":if(b(t,"lastErrorObject.updatedExisting")===false){throw _orFailError(e,this)}break;case"deleteMany":case"deleteOne":case"remove":if(t.deletedCount===0){throw _orFailError(e,this)}break;default:break}return t}));return this}; /*! * Get the error to throw for `orFail()` */function _orFailError(e,t){if(typeof e==="function"){e=e.call(t)}if(e==null){e=new i(t.getQuery(),t.model.modelName)}return e}Query.prototype.exec=function exec(e,t){const r=this;const i=new n;if(typeof e==="function"){t=e;e=null}else if(typeof e==="string"){this.op=e}if(this.op==null){throw new Error("Query must have `op` before executing")}this._validateOp();t=this.model.$handleCallbackError(t);return _(t,(e=>{e=this.model.$wrapCallback(e);if(!r.op){e();return}this._hooks.execPre("exec",this,[],(t=>{if(t!=null){return e(_cleanCastErrorStack(i,t))}let r="_"+this.op;if(this.op==="update"){r="_execUpdate"}else if(this.op==="distinct"){r="__distinct"}this[r].call(this,((t,r)=>{if(t){return e(_cleanCastErrorStack(i,t))}this._hooks.execPost("exec",this,[],{},(t=>{if(t){return e(_cleanCastErrorStack(i,t))}e(null,r)}))}))}))}),this.model.events)}; /*! * ignore */function _cleanCastErrorStack(e,t){if(t instanceof n){e.copy(t);return e}return t} /*! * ignore */function _wrapThunkCallback(e,t){return function(r,n){if(r!=null){return t(r)}for(const i of e._transforms){try{n=i(n)}catch(r){return t(r)}}return t(null,n)}}Query.prototype.then=function(e,t){return this.exec().then(e,t)};Query.prototype.catch=function(e){return this.exec().then(null,e)};Query.prototype.pre=function(e){this._hooks.pre("exec",e);return this};Query.prototype.post=function(e){this._hooks.post("exec",e);return this}; /*! * Casts obj for an update command. * * @param {Object} obj * @return {Object} obj after casting its values * @api private */Query.prototype._castUpdate=function _castUpdate(e,t){let r=this.schema;const n=r.options.discriminatorKey;const i=r._baseSchema?r._baseSchema:r;if(this._mongooseOptions.overwriteDiscriminatorKey&&e[n]!=null&&i.discriminators){const t=i.discriminators[e[n]];if(t!=null){r=t}}let o;if("upsert"in this.options){o=this.options.upsert}const s=this._conditions;if(r!=null&&V.hasUserDefinedProperty(s,r.options.discriminatorKey)&&typeof s[r.options.discriminatorKey]!=="object"&&r.discriminators!=null){const e=s[r.options.discriminatorKey];const t=E(this.model.discriminators,e);r=r.discriminators[e]||t&&t.schema||r}return y(r,e,{overwrite:t,strict:this._mongooseOptions.strict,upsert:o,arrayFilters:this.options.arrayFilters,overwriteDiscriminatorKey:this._mongooseOptions.overwriteDiscriminatorKey},this,this._conditions)}; /*! * castQuery * @api private */function castQuery(e){try{return e.cast(e.model)}catch(e){return e}} /*! * castDoc * @api private */function castDoc(e,t){try{return e._castUpdate(e._update,t)}catch(e){return e}}Query.prototype.populate=function(){if(!Array.from(arguments).some(Boolean)){return this}const e=V.populate.apply(null,arguments);if(this.options!=null){const t=this.options.readConcern;const r=this.options.readPreference;for(const n of e){if(t!=null&&b(n,"options.readConcern")==null){n.options=n.options||{};n.options.readConcern=t}if(r!=null&&b(n,"options.readPreference")==null){n.options=n.options||{};n.options.readPreference=r}}}const t=this._mongooseOptions;if(t.lean!=null){const r=t.lean;for(const t of e){if(b(t,"options.lean")==null){t.options=t.options||{};t.options.lean=r}}}if(!V.isObject(t.populate)){t.populate={}}const r=t.populate;for(const t of e){const e=t.path;if(r[e]&&r[e].populate&&t.populate){t.populate=r[e].populate.concat(t.populate)}r[t.path]=t}return this};Query.prototype.getPopulatedPaths=function getPopulatedPaths(){const e=this._mongooseOptions.populate||{};const t=Object.keys(e);for(const r of Object.keys(e)){const n=e[r];if(!Array.isArray(n.populate)){continue}_getPopulatedPaths(t,n.populate,r+".")}return t}; /*! * ignore */function _getPopulatedPaths(e,t,r){for(const n of t){e.push(r+n.path);if(!Array.isArray(n.populate)){continue}_getPopulatedPaths(e,n.populate,r+n.path+".")}}Query.prototype.cast=function(e,t){t||(t=this._conditions);e=e||this.model;const r=e.schema.options.discriminatorKey;if(t!=null&&t.hasOwnProperty(r)){e=E(e.discriminators,t[r])||e}const n={upsert:this.options&&this.options.upsert};if(this.options){if("strict"in this.options){n.strict=this.options.strict;n.strictQuery=n.strict}if("strictQuery"in this.options){n.strictQuery=this.options.strictQuery}}try{return h(e.schema,t,n,this)}catch(t){if(typeof t.setModel==="function"){t.setModel(e)}throw t}};Query.prototype._castFields=function _castFields(e){let t,r,n,i,o,s;if(e){n=Object.keys(e);r=[];s=n.length;while(s--){i=n[s];if(e[i].$elemMatch){t||(t={});t[i]=e[i];r.push(i)}}}if(t){try{o=this.cast(this.model,t)}catch(e){return e}s=r.length;while(s--){i=r[s];e[i]=o[i]}}return e};Query.prototype._applyPaths=function applyPaths(){this._fields=this._fields||{};x.applyPaths(this._fields,this.model.schema);let e=true;if("selectPopulatedPaths"in this.model.base.options){e=this.model.base.options.selectPopulatedPaths}if("selectPopulatedPaths"in this.model.schema.options){e=this.model.schema.options.selectPopulatedPaths}if(e){L(this._fields,this._userProvidedFields,this._mongooseOptions.populate)}};Query.prototype.cursor=function cursor(e){this._applyPaths();this._fields=this._castFields(this._fields);this.setOptions({projection:this._fieldsForExec()});if(e){this.setOptions(e)}const t=Object.assign({},this._optionsForExec(),{projection:this.projection()});try{this.cast(this.model)}catch(e){return new u(this,t)._markError(e)}return new u(this,t)};Query.prototype.maxscan=Query.base.maxScan;Query.prototype.tailable=function(e,t){if(e!=null&&typeof e.constructor==="function"&&e.constructor.name==="Object"){t=e;e=true}if(e===undefined){e=true}if(t&&typeof t==="object"){for(const e of Object.keys(t)){if(e==="awaitData"||e==="awaitdata"){this.options["awaitData"]=!!t[e]}else{this.options[e]=t[e]}}}return Query.base.tailable.call(this,e)}; /*! * Overwriting mquery is needed to support a couple different near() forms found in older * versions of mongoose * near([1,1]) * near(1,1) * near(field, [1,2]) * near(field, 1, 2) * In addition to all of the normal forms supported by mquery */Query.prototype.near=function(){const e=[];const t=this._mongooseOptions.nearSphere;if(arguments.length===1){if(Array.isArray(arguments[0])){e.push({center:arguments[0],spherical:t})}else if(typeof arguments[0]==="string"){e.push(arguments[0])}else if(V.isObject(arguments[0])){if(typeof arguments[0].spherical!=="boolean"){arguments[0].spherical=t}e.push(arguments[0])}else{throw new TypeError("invalid argument")}}else if(arguments.length===2){if(typeof arguments[0]==="number"&&typeof arguments[1]==="number"){e.push({center:[arguments[0],arguments[1]],spherical:t})}else if(typeof arguments[0]==="string"&&Array.isArray(arguments[1])){e.push(arguments[0]);e.push({center:arguments[1],spherical:t})}else if(typeof arguments[0]==="string"&&V.isObject(arguments[1])){e.push(arguments[0]);if(typeof arguments[1].spherical!=="boolean"){arguments[1].spherical=t}e.push(arguments[1])}else{throw new TypeError("invalid argument")}}else if(arguments.length===3){if(typeof arguments[0]==="string"&&typeof arguments[1]==="number"&&typeof arguments[2]==="number"){e.push(arguments[0]);e.push({center:[arguments[1],arguments[2]],spherical:t})}else{throw new TypeError("invalid argument")}}else{throw new TypeError("invalid argument")}return Query.base.near.apply(this,e)};Query.prototype.nearSphere=function(){this._mongooseOptions.nearSphere=true;this.near.apply(this,arguments);return this};if(Symbol.asyncIterator!=null){Query.prototype[Symbol.asyncIterator]=function(){return this.cursor().transformNull()._transformForAsyncIterator()}} /*! * this is needed to support the mongoose syntax of: * box(field, { ll : [x,y], ur : [x2,y2] }) * box({ ll : [x,y], ur : [x2,y2] }) */Query.prototype.box=function(e,t){if(!Array.isArray(e)&&V.isObject(e)){t=e.ur;e=e.ll}return Query.base.box.call(this,e,t)};Query.prototype.center=Query.base.circle;Query.prototype.centerSphere=function(){if(arguments[0]!=null&&typeof arguments[0].constructor==="function"&&arguments[0].constructor.name==="Object"){arguments[0].spherical=true}if(arguments[1]!=null&&typeof arguments[1].constructor==="function"&&arguments[1].constructor.name==="Object"){arguments[1].spherical=true}Query.base.circle.apply(this,arguments)};Query.prototype.selectedInclusively=function selectedInclusively(){return D(this._fields)};Query.prototype.selectedExclusively=function selectedExclusively(){return O(this._fields)};Query.prototype.model; /*! * Export */e.exports=Query},67579:(e,t,r)=>{"use strict"; /*! * Module dependencies */const n=r(3774);const i=r(6709);const o=r(74693);const s=r(72866);const a=r(48546); /*! * Prepare a set of path options for query population. * * @param {Query} query * @param {Object} options * @return {Array} */t.preparePopulationOptions=function preparePopulationOptions(e,t){const r=e.options.populate;const n=Object.keys(r).reduce(((e,t)=>e.concat([r[t]])),[]);if(t.lean!=null){n.filter((e=>i(e,"options.lean")==null)).forEach(makeLean(t.lean))}n.forEach((t=>{t._localModel=e.model}));return n}; /*! * Prepare a set of path options for query population. This is the MongooseQuery * version * * @param {Query} query * @param {Object} options * @return {Array} */t.preparePopulationOptionsMQ=function preparePopulationOptionsMQ(e,t){const r=e._mongooseOptions.populate;const n=Object.keys(r).reduce(((e,t)=>e.concat([r[t]])),[]);if(t.lean!=null){n.filter((e=>i(e,"options.lean")==null)).forEach(makeLean(t.lean))}const o=i(e,"options.session",null);if(o!=null){n.forEach((e=>{if(e.options==null){e.options={session:o};return}if(!("session"in e.options)){e.options.session=o}}))}const s=e._fieldsForExec();n.forEach((e=>{e._queryProjection=s}));n.forEach((t=>{t._localModel=e.model}));return n}; /*! * If the document is a mapped discriminator type, it returns a model instance for that type, otherwise, * it returns an instance of the given model. * * @param {Model} model * @param {Object} doc * @param {Object} fields * * @return {Document} */t.createModel=function createModel(e,r,n,i,s){e.hooks.execPreSync("createModel",r);const u=e.schema?e.schema.discriminatorMapping:null;const c=u&&u.isRoot?u.key:null;const l=r[c];if(c&&l&&e.discriminators){const r=e.discriminators[l]||o(e.discriminators,l);if(r){const e=a(i);t.applyPaths(e,r.schema);return new r(undefined,e,true)}}const d={skipId:true,isNew:false,willInit:true};if(s!=null&&"defaults"in s){d.defaults=s.defaults}return new e(undefined,n,d)}; /*! * ignore */t.applyPaths=function applyPaths(e,t){let r;let o;let a;if(e){o=Object.keys(e);a=o.length;while(a--){if(o[a][0]==="+"){continue}const t=e[o[a]];if(!s(t)){continue}r=!t;break}}const u=[];const c=[];const l=[];analyzeSchema(t);switch(r){case true:for(const t of c){e[t]=0}break;case false:if(t&&t.paths["_id"]&&t.paths["_id"].options&&t.paths["_id"].options.select===false){e._id=0}for(const t of u){e[t]=e[t]||1}break;case undefined:if(e==null){break}for(const t of Object.keys(e||{})){if(t.startsWith("+")){delete e[t]}}for(const t of c){e[t]=0}break}function analyzeSchema(t,i){i||(i="");if(l.indexOf(t)!==-1){return[]}l.push(t);const o=[];t.eachPath((function(t,s){if(i)t=i+"."+t;let a=analyzePath(t,s);if(a==null&&!Array.isArray(s)&&s.$isMongooseArray&&!s.$isMongooseDocumentArray){a=analyzePath(t,s.caster)}if(a!=null){o.push(a)}if(s.schema){const i=analyzeSchema(s.schema,t);if(r===false){n(e,t,s.schema,u,i)}}}));l.pop();return o}function analyzePath(t,n){const s="+"+t;const a=e&&s in e;if(a){delete e[s]}if(typeof n.selected!=="boolean")return;if(a){delete e[s];if(r===false&&o.length>1&&!~o.indexOf(t)){e[t]=1}return}const l=t.split(".");let d="";for(let e=0;etypeof e==="string"&&e.startsWith(t.path+"."))).map((e=>e.slice(t.path.length+1)))}t.options.lean=e}} /*! * Handle the `WriteOpResult` from the server */t.handleDeleteWriteOpResult=function handleDeleteWriteOpResult(e){return function _handleDeleteWriteOpResult(t,r){if(t){return e(t)}const n=Object.assign({},r.result);if(i(r,"result.n",null)!=null){n.deletedCount=r.result.n}if(r.deletedCount!=null){n.deletedCount=r.deletedCount}return e(null,n)}}},27991:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(82361).EventEmitter;const i=r(96387);const o=r(50598);const s=r(80633);const a=r(44829);const u=r(23370);const c=r(94198);const l=r(74441);const d=r(6709);const h=r(55716);const m=r(87506);const g=r(59723);const y=r(86021);const v=r(22522);const b=r(71243).get().ReadPreference;const _=r(22693);const E=r(52492);const k=r(89702);let x;const C=r(38956).middlewareFunctions;const O=r(59342).middlewareFunctions;const D=C.concat(O).reduce(((e,t)=>e.add(t)),new Set);const B=E.isPOJO;let P=0;function Schema(e,t){if(!(this instanceof Schema)){return new Schema(e,t)}this.obj=e;this.paths={};this.aliases={};this.subpaths={};this.virtuals={};this.singleNestedPaths={};this.nested={};this.inherits={};this.callQueue=[];this._indexes=[];this.methods={};this.methodOptions={};this.statics={};this.tree={};this.query={};this.childSchemas=[];this.plugins=[];this.$id=++P;this.mapPaths=[];this.s={hooks:new i};this.options=this.defaultOptions(t);if(Array.isArray(e)){for(const t of e){this.add(t)}}else if(e){this.add(e)}const r=e&&e._id&&E.isObject(e._id);const n=!this.paths["_id"]&&this.options._id&&!r;if(n){l(this)}this.setupTimestamp(this.options.timestamps)} /*! * Create virtual properties with alias field */function aliasFields(e,t){t=t||Object.keys(e.paths);for(const r of t){const t=d(e.paths[r],"options");if(t==null){continue}const n=e.paths[r].path;const i=t.alias;if(!i){continue}if(typeof i!=="string"){throw new Error("Invalid value for alias option on "+n+", got "+i)}e.aliases[i]=n;e.virtual(i).get(function(e){return function(){if(typeof this.get==="function"){return this.get(e)}return this[e]}}(n)).set(function(e){return function(t){return this.$set(e,t)}}(n))}} /*! * Inherit from EventEmitter. */Schema.prototype=Object.create(n.prototype);Schema.prototype.constructor=Schema;Schema.prototype.instanceOfSchema=true; /*! * ignore */Object.defineProperty(Schema.prototype,"$schemaType",{configurable:false,enumerable:false,writable:true});Object.defineProperty(Schema.prototype,"childSchemas",{configurable:false,enumerable:true,writable:true});Object.defineProperty(Schema.prototype,"virtuals",{configurable:false,enumerable:true,writable:true});Schema.prototype.obj;Schema.prototype.paths;Schema.prototype.tree;Schema.prototype.clone=function(){const e=this._clone();e.on("init",(e=>this.emit("init",e)));return e};Schema.prototype._clone=function _clone(e){e=e||(this.base==null?Schema:this.base.Schema);const t=new e({},this._userProvidedOptions);t.base=this.base;t.obj=this.obj;t.options=E.clone(this.options);t.callQueue=this.callQueue.map((function(e){return e}));t.methods=E.clone(this.methods);t.methodOptions=E.clone(this.methodOptions);t.statics=E.clone(this.statics);t.query=E.clone(this.query);t.plugins=Array.prototype.slice.call(this.plugins);t._indexes=E.clone(this._indexes);t.s.hooks=this.s.hooks.clone();t.tree=E.clone(this.tree);t.paths=E.clone(this.paths);t.nested=E.clone(this.nested);t.subpaths=E.clone(this.subpaths);t.singleNestedPaths=E.clone(this.singleNestedPaths);t.childSchemas=gatherChildSchemas(t);t.virtuals=E.clone(this.virtuals);t.$globalPluginsApplied=this.$globalPluginsApplied;t.$isRootDiscriminator=this.$isRootDiscriminator;t.$implicitlyCreated=this.$implicitlyCreated;t.$id=++P;t.$originalSchemaId=this.$id;t.mapPaths=[].concat(this.mapPaths);if(this.discriminatorMapping!=null){t.discriminatorMapping=Object.assign({},this.discriminatorMapping)}if(this.discriminators!=null){t.discriminators=Object.assign({},this.discriminators)}t.aliases=Object.assign({},this.aliases);return t};Schema.prototype.pick=function(e,t){const r=new Schema({},t||this.options);if(!Array.isArray(e)){throw new o("Schema#pick() only accepts an array argument, "+'got "'+typeof e+'"')}for(const t of e){if(this.nested[t]){r.add({[t]:d(this.tree,t)})}else{const e=this.path(t);if(e==null){throw new o("Path `"+t+"` is not in the schema")}r.add({[t]:e})}}return r};Schema.prototype.defaultOptions=function(e){this._userProvidedOptions=e==null?{}:E.clone(e);const t=d(this,"base.options",{});const r="strict"in t?t.strict:true;e=E.options({strict:r,strictQuery:"strict"in this._userProvidedOptions?this._userProvidedOptions.strict:"strictQuery"in t?t.strictQuery:r,bufferCommands:true,capped:false,versionKey:"__v",optimisticConcurrency:false,minimize:true,autoIndex:null,discriminatorKey:"__t",shardKey:null,read:null,validateBeforeSave:true,_id:true,id:true,typeKey:"type"},E.clone(e));if(e.read){e.read=b(e.read)}if(e.versionKey&&typeof e.versionKey!=="string"){throw new o("`versionKey` must be falsy or string, got `"+typeof e.versionKey+"`")}if(e.optimisticConcurrency&&!e.versionKey){throw new o("Must set `versionKey` if using `optimisticConcurrency`")}return e};Schema.prototype.add=function add(e,t){if(e instanceof Schema||e!=null&&e.instanceOfSchema){y(this,e);return this}if(e._id===false&&t==null){this.options._id=false}t=t||"";if(t==="__proto__."||t==="constructor."||t==="prototype."){return this}const r=Object.keys(e);const n=this.options.typeKey;for(const i of r){const r=t+i;const o=e[i];if(o==null){throw new TypeError("Invalid value for schema path `"+r+'`, got value "'+o+'"')}if(i==="_id"&&o===false){continue}if(o instanceof c||d(o,"constructor.name",null)==="VirtualType"){this.virtual(o);continue}if(Array.isArray(o)&&o.length===1&&o[0]==null){throw new TypeError("Invalid value for schema Array path `"+r+'`, got value "'+o[0]+'"')}if(!(B(o)||o instanceof a)){if(t){this.nested[t.substring(0,t.length-1)]=true}this.path(t+i,o)}else if(Object.keys(o).length<1){if(t){this.nested[t.substring(0,t.length-1)]=true}this.path(r,o)}else if(!o[n]||n==="type"&&B(o.type)&&o.type.type){this.nested[r]=true;this.add(o,r+".")}else{const e=o[n];if(B(e)&&Object.keys(e).length>0){if(t){this.nested[t.substring(0,t.length-1)]=true}const r=new Schema(e);const n=Object.assign({},o,{type:r});this.path(t+i,n)}else{if(t){this.nested[t.substring(0,t.length-1)]=true}this.path(t+i,o)}}}const i=Object.keys(e).map((e=>t?t+e:e));aliasFields(this,i);return this};Schema.reserved=Object.create(null);Schema.prototype.reserved=Schema.reserved;const I=Schema.reserved;I["prototype"]=I.emit=I.listeners=I.on=I.removeListener=I.collection=I.errors=I.get=I.init=I.isModified=I.isNew=I.populated=I.remove=I.save=I.toObject=I.validate=1;I.collection=1;Schema.prototype.path=function(e,t){const r=_pathToPositionalSyntax(e);if(t===undefined){let t=_getPath(this,e,r);if(t!=null){return t}const n=getMapPath(this,e);if(n!=null){return n}t=this.hasMixedParent(r);if(t!=null){return t}return/\.\d+\.?.*$/.test(e)?getPositionalPath(this,e):undefined}const n=e.split(".")[0];if(I[n]&&!this.options.supressReservedKeysWarning){const e=`\`${n}\` is a reserved schema pathname and may break some functionality. `+"You are allowed to use it, but use at your own risk. "+"To disable this warning pass `supressReservedKeysWarning` as a schema option.";E.warn(e)}if(typeof t==="object"&&E.hasUserDefinedProperty(t,"ref")){k(t.ref,e)}const i=e.split(/\./);const o=i.pop();let a=this.tree;let u="";for(const t of i){u=u+=(u.length>0?".":"")+t;if(!a[t]){this.nested[u]=true;a[t]={}}if(typeof a[t]!=="object"){const r="Cannot set nested path `"+e+"`. "+"Parent path `"+u+"` already set to type "+a[t].name+".";throw new Error(r)}a=a[t]}a[o]=E.clone(t);this.paths[e]=this.interpretAsType(e,t,this.options);const c=this.paths[e];if(c.$isSchemaMap){const t=e+".$*";this.paths[t]=c.$__schemaType;this.mapPaths.push(this.paths[t])}if(c.$isSingleNested){for(const t of Object.keys(c.schema.paths)){this.singleNestedPaths[e+"."+t]=c.schema.paths[t]}for(const t of Object.keys(c.schema.singleNestedPaths)){this.singleNestedPaths[e+"."+t]=c.schema.singleNestedPaths[t]}for(const t of Object.keys(c.schema.subpaths)){this.singleNestedPaths[e+"."+t]=c.schema.subpaths[t]}for(const t of Object.keys(c.schema.nested)){this.singleNestedPaths[e+"."+t]="nested"}Object.defineProperty(c.schema,"base",{configurable:true,enumerable:false,writable:false,value:this.base});c.caster.base=this.base;this.childSchemas.push({schema:c.schema,model:c.caster})}else if(c.$isMongooseDocumentArray){Object.defineProperty(c.schema,"base",{configurable:true,enumerable:false,writable:false,value:this.base});c.casterConstructor.base=this.base;this.childSchemas.push({schema:c.schema,model:c.casterConstructor})}if(c.$isMongooseArray&&c.caster instanceof s){let t=e;let r=c;const n=[];while(r.$isMongooseArray){t=t+".$";if(r.$isMongooseDocumentArray){r.$embeddedSchemaType._arrayPath=t;r.$embeddedSchemaType._arrayParentPath=e;r=r.$embeddedSchemaType.clone()}else{r.caster._arrayPath=t;r.caster._arrayParentPath=e;r=r.caster.clone()}r.path=t;n.push(r)}for(const e of n){this.subpaths[e.path]=e}}if(c.$isMongooseDocumentArray){for(const t of Object.keys(c.schema.paths)){const r=c.schema.paths[t];this.subpaths[e+"."+t]=r;if(typeof r==="object"&&r!=null){r.$isUnderneathDocArray=true}}for(const t of Object.keys(c.schema.subpaths)){const r=c.schema.subpaths[t];this.subpaths[e+"."+t]=r;if(typeof r==="object"&&r!=null){r.$isUnderneathDocArray=true}}for(const t of Object.keys(c.schema.singleNestedPaths)){const r=c.schema.singleNestedPaths[t];this.subpaths[e+"."+t]=r;if(typeof r==="object"&&r!=null){r.$isUnderneathDocArray=true}}}return this}; /*! * ignore */function gatherChildSchemas(e){const t=[];for(const r of Object.keys(e.paths)){const n=e.paths[r];if(n.$isMongooseDocumentArray||n.$isSingleNested){t.push({schema:n.schema,model:n.caster})}}return t} /*! * ignore */function _getPath(e,t,r){if(e.paths.hasOwnProperty(t)){return e.paths[t]}if(e.subpaths.hasOwnProperty(r)){return e.subpaths[r]}if(e.singleNestedPaths.hasOwnProperty(r)&&typeof e.singleNestedPaths[r]==="object"){return e.singleNestedPaths[r]}return null} /*! * ignore */function _pathToPositionalSyntax(e){if(!/\.\d+/.test(e)){return e}return e.replace(/\.\d+\./g,".$.").replace(/\.\d+$/,".$")} /*! * ignore */function getMapPath(e,t){if(e.mapPaths.length===0){return null}for(const r of e.mapPaths){const n=r.path;const i=new RegExp("^"+n.replace(/\.\$\*/g,"\\.[^.]+")+"$");if(i.test(t)){return e.paths[n]}}return null}Object.defineProperty(Schema.prototype,"base",{configurable:true,enumerable:false,writable:true,value:null});Schema.prototype.interpretAsType=function(e,t,r){if(t instanceof s){if(t.path===e){return t}const r=t.clone();r.path=e;return r}const n=this.base!=null?this.base.Schema.Types:Schema.Types;if(!E.isPOJO(t)&&!(t instanceof a)){const e=E.getFunctionName(t.constructor);if(e!=="Object"){const e=t;t={};t[r.typeKey]=e}}let i=t[r.typeKey]&&(t[r.typeKey]instanceof Function||r.typeKey!=="type"||!t.type.type)?t[r.typeKey]:{};let o;if(E.isPOJO(i)||i==="mixed"){return new n.Mixed(e,t)}if(Array.isArray(i)||i===Array||i==="array"||i===n.Array){let s=i===Array||i==="array"?t.cast||t.of:i[0];if(s&&s.instanceOfSchema){if(!(s instanceof Schema)){throw new TypeError("Schema for array path `"+e+"` is from a different copy of the Mongoose module. Please make sure you're using the same version "+"of Mongoose everywhere with `npm list mongoose`.")}return new n.DocumentArray(e,s,t)}if(s&&s[r.typeKey]&&s[r.typeKey].instanceOfSchema){if(!(s[r.typeKey]instanceof Schema)){throw new TypeError("Schema for array path `"+e+"` is from a different copy of the Mongoose module. Please make sure you're using the same version "+"of Mongoose everywhere with `npm list mongoose`.")}return new n.DocumentArray(e,s[r.typeKey],t,s)}if(Array.isArray(s)){return new n.Array(e,this.interpretAsType(e,s,r),t)}const a=s!=null&&s[r.typeKey]&&(r.typeKey!=="type"||!s.type.type)?s[r.typeKey]:s;if(typeof s==="string"){s=n[s.charAt(0).toUpperCase()+s.substring(1)]}else if(E.isPOJO(a)){if(Object.keys(a).length){const i={minimize:r.minimize};if(r.typeKey){i.typeKey=r.typeKey}if(r.hasOwnProperty("strict")){i.strict=r.strict}if(this._userProvidedOptions.hasOwnProperty("_id")){i._id=this._userProvidedOptions._id}else if(Schema.Types.DocumentArray.defaultOptions._id!=null){i._id=Schema.Types.DocumentArray.defaultOptions._id}const o=new Schema(a,i);o.$implicitlyCreated=true;return new n.DocumentArray(e,o,t)}else{return new n.Array(e,n.Mixed,t)}}if(s){i=s[r.typeKey]&&(r.typeKey!=="type"||!s.type.type)?s[r.typeKey]:s;o=typeof i==="string"?i:i.schemaName||E.getFunctionName(i);if(o==="ClockDate"){o="Date"}if(o===void 0){throw new TypeError("Invalid schema configuration: "+`Could not determine the embedded type for array \`${e}\`. `+"See https://mongoosejs.com/docs/guide.html#definition for more info on supported schema syntaxes.")}if(!n.hasOwnProperty(o)){throw new TypeError("Invalid schema configuration: "+`\`${o}\` is not a valid type within the array \`${e}\`.`+"See http://bit.ly/mongoose-schematypes for a list of valid schema types.")}}return new n.Array(e,s||n.Mixed,t,r)}if(i&&i.instanceOfSchema){return new n.Subdocument(i,e,t)}if(Buffer.isBuffer(i)){o="Buffer"}else if(typeof i==="function"||typeof i==="object"){o=i.schemaName||E.getFunctionName(i)}else{o=i==null?""+i:i.toString()}if(o){o=o.charAt(0).toUpperCase()+o.substring(1)}if(o==="ObjectID"){o="ObjectId"}if(o==="ClockDate"){o="Date"}if(o===void 0){throw new TypeError(`Invalid schema configuration: \`${e}\` schematype definition is `+"invalid. See "+"https://mongoosejs.com/docs/guide.html#definition for more info on supported schema syntaxes.")}if(n[o]==null){throw new TypeError(`Invalid schema configuration: \`${o}\` is not `+`a valid type at path \`${e}\`. See `+"http://bit.ly/mongoose-schematypes for a list of valid schema types.")}const u=new n[o](e,t);if(u.$isSchemaMap){createMapNestedSchemaType(this,u,e,t,r)}return u}; /*! * ignore */function createMapNestedSchemaType(e,t,r,n,i){const o=r+".$*";let s={type:{}};if(E.hasUserDefinedProperty(n,"of")){const t=E.isPOJO(n.of)&&Object.keys(n.of).length>0&&!E.hasUserDefinedProperty(n.of,e.options.typeKey);if(t){s={[e.options.typeKey]:new Schema(n.of)}}else if(E.isPOJO(n.of)){s=Object.assign({},n.of)}else{s={[e.options.typeKey]:n.of}}if(E.hasUserDefinedProperty(n,"ref")){s.ref=n.ref}}t.$__schemaType=e.interpretAsType(o,s,i)}Schema.prototype.eachPath=function(e){const t=Object.keys(this.paths);const r=t.length;for(let n=0;n0?e+"."+t[r]:t[r];if(this.paths.hasOwnProperty(e)&&this.paths[e]instanceof x.Mixed){return this.paths[e]}}return null};Schema.prototype.setupTimestamp=function(e){return _(this,e)}; /*! * ignore. Deprecated re: #6405 */function getPositionalPathType(e,t){const r=t.split(/\.(\d+)\.|\.(\d+)$/).filter(Boolean);if(r.length<2){return e.paths.hasOwnProperty(r[0])?e.paths[r[0]]:"adhocOrUndefined"}let n=e.path(r[0]);let i=false;if(!n){return"adhocOrUndefined"}const o=r.length-1;for(let e=1;e=e.length){return i}if(r+1>=e.length){return i.$__schemaType}const t=search(e.slice(r+1),i.$__schemaType.schema);return t}i.$fullPath=n.join(".");return i}}}const i=e.split(".");for(let e=0;e{"use strict"; /*! * Module dependencies. */const n=r(94498);const i=r(82361).EventEmitter;const o=r(71449);const s=r(98137);const a=r(80633);const u=r(54631);const c=r(86489).W;const l=r(40387);const d=r(29581);const h=r(6709);const m=r(34171);const g=r(42543);const y=r(28561).h;const v=r(52492);let b;e.exports=SubdocumentPath;function SubdocumentPath(e,t,r){e=g(e,r);this.caster=_createConstructor(e);this.caster.path=t;this.caster.prototype.$basePath=t;this.schema=e;this.$isSingleNested=true;a.call(this,t,r,"Embedded")} /*! * ignore */SubdocumentPath.prototype=Object.create(a.prototype);SubdocumentPath.prototype.constructor=SubdocumentPath;SubdocumentPath.prototype.OptionsConstructor=s; /*! * ignore */function _createConstructor(e,t){b||(b=r(10094));const n=function SingleNested(e,t,r){const n=this;this.$__parent=r;b.apply(this,arguments);this.$session(this.ownerDocument().$session());if(r){r.$on("save",(function(){n.emit("save",n);n.constructor.emit("save",n)}));r.$on("isNew",(function(e){n.isNew=e;n.emit("isNew",e);n.constructor.emit("isNew",e)}))}};e._preCompile();const o=t!=null?t.prototype:b.prototype;n.prototype=Object.create(o);n.prototype.$__setSchema(e);n.prototype.constructor=n;n.schema=e;n.$isSingleNested=true;n.events=new i;n.prototype.toBSON=function(){return this.toObject(y)};for(const t in e.methods){n.prototype[t]=e.methods[t]}for(const t in e.statics){n[t]=e.statics[t]}for(const e in i.prototype){n[e]=i.prototype[e]}return n} /*! * Special case for when users use a common location schema to represent * locations for use with $geoWithin. * https://docs.mongodb.org/manual/reference/operator/query/geoWithin/ * * @param {Object} val * @api private */SubdocumentPath.prototype.$conditionalHandlers.$geoWithin=function handle$geoWithin(e){return{$geometry:this.castForQuery(e.$geometry)}}; /*! * ignore */SubdocumentPath.prototype.$conditionalHandlers.$near=SubdocumentPath.prototype.$conditionalHandlers.$nearSphere=d.cast$near;SubdocumentPath.prototype.$conditionalHandlers.$within=SubdocumentPath.prototype.$conditionalHandlers.$geoWithin=d.cast$within;SubdocumentPath.prototype.$conditionalHandlers.$geoIntersects=d.cast$geoIntersects;SubdocumentPath.prototype.$conditionalHandlers.$minDistance=c;SubdocumentPath.prototype.$conditionalHandlers.$maxDistance=c;SubdocumentPath.prototype.$conditionalHandlers.$exists=u;SubdocumentPath.prototype.cast=function(e,t,r,n,i){if(e&&e.$isSingleNested&&e.parent===t){return e}if(e!=null&&(typeof e!=="object"||Array.isArray(e))){throw new o(this.path,e)}const s=m(this.caster,e);let a;const u=h(t,"$__.selected",{});const c=this.path;const l=Object.keys(u).reduce(((e,t)=>{if(t.startsWith(c+".")){e[t.substring(c.length+1)]=u[t]}return e}),{});i=Object.assign({},i,{priorDoc:n});if(r){a=new s(void 0,l,t);a.$init(e)}else{if(Object.keys(e).length===0){return new s({},l,t,undefined,i)}return new s(e,l,t,undefined,i)}return a};SubdocumentPath.prototype.castForQuery=function(e,t,r){let i;if(arguments.length===2){i=this.$conditionalHandlers[e];if(!i){throw new Error("Can't use "+e)}return i.call(this,t)}t=e;if(t==null){return t}if(this.options.runSetters){t=this._applySetters(t)}const o=m(this.caster,t);const s=r!=null&&r.strict!=null?r.strict:void 0;try{t=new o(t,s)}catch(e){if(!(e instanceof n)){throw new n("Embedded",t,this.path,e,this)}throw e}return t};SubdocumentPath.prototype.doValidate=function(e,t,r,n){const i=m(this.caster,e);if(e&&!(e instanceof i)){e=new i(e,null,r)}if(n&&n.skipSchemaValidators){return e.validate(t)}a.prototype.doValidate.call(this,e,(function(r){if(r){return t(r)}if(!e){return t(null)}e.validate(t)}),r,n)};SubdocumentPath.prototype.doValidateSync=function(e,t,r){if(!r||!r.skipSchemaValidators){const r=a.prototype.doValidateSync.call(this,e,t);if(r){return r}}if(!e){return}return e.validateSync()};SubdocumentPath.prototype.discriminator=function(e,t,r){r=r||{};const n=v.isPOJO(r)?r.value:r;const i=h(r,"clone",true);if(t.instanceOfSchema&&i){t=t.clone()}t=l(this.caster,e,t,n);this.caster.discriminators[e]=_createConstructor(t,this.caster);return this.caster.discriminators[e]};SubdocumentPath.defaultOptions={};SubdocumentPath.set=a.set; /*! * ignore */SubdocumentPath.prototype.clone=function(){const e=Object.assign({},this.options);const t=new this.constructor(this.schema,this.path,e);t.validators=this.validators.slice();if(this.requiredValidator!==undefined){t.requiredValidator=this.requiredValidator}t.caster.discriminators=Object.assign({},this.caster.discriminators);return t}},85846:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(54631);const i=r(2191);const o=r(50598);const s=r(10293);const a=r(80633);const u=a.CastError;const c=r(9902);const l=r(88544);const d=r(15278);const h=r(6709);const m=r(58356);const g=r(73837);const y=r(52492);const v=r(86489).W;const b=r(29581);const _=r(74693);let E;let k;const x=Symbol("mongoose#isNestedArray");const C=Object.freeze({});function SchemaArray(e,t,n,i){k||(k=r(49122).Embedded);let o="type";if(i&&i.typeKey){o=i.typeKey}this.schemaOptions=i;if(t){let i={};if(y.isPOJO(t)){if(t[o]){i=y.clone(t);delete i[o];t=t[o]}else{t=c}}if(n!=null&&n.ref!=null&&i.ref==null){i.ref=n.ref}if(t===Object){t=c}const s=typeof t==="string"?t:y.getFunctionName(t);const a=r(29735);const u=a.hasOwnProperty(s)?a[s]:t;this.casterConstructor=u;if(this.casterConstructor instanceof SchemaArray){this.casterConstructor[x]=true}if(typeof u==="function"&&!u.$isArraySubdocument&&!u.$isSchemaMap){const t=this.caster instanceof k?null:e;this.caster=new u(t,i)}else{this.caster=u;if(!(this.caster instanceof k)){this.caster.path=e}}this.$embeddedSchemaType=this.caster}this.$isMongooseArray=true;a.call(this,e,n,"Array");let s;let u;if(this.defaultValue!=null){s=this.defaultValue;u=typeof s==="function"}if(!("defaultValue"in this)||this.defaultValue!==void 0){const defaultFn=function(){return u?s.call(this):s!=null?[].concat(s):[]};defaultFn.$runBeforeSetters=!u;this.default(defaultFn)}}SchemaArray.schemaName="Array";SchemaArray.options={castNonArrays:true}; /*! * ignore */SchemaArray.defaultOptions={};SchemaArray.set=a.set; /*! * Inherits from SchemaType. */SchemaArray.prototype=Object.create(a.prototype);SchemaArray.prototype.constructor=SchemaArray;SchemaArray.prototype.OptionsConstructor=s; /*! * ignore */SchemaArray._checkRequired=a.prototype.checkRequired;SchemaArray.checkRequired=a.checkRequired;SchemaArray.prototype.checkRequired=function checkRequired(e,t){if(a._isRef(this,e,t,true)){return!!e}const r=typeof this.constructor.checkRequired=="function"?this.constructor.checkRequired():SchemaArray.checkRequired();return r(e)};SchemaArray.prototype.enum=function(){let e=this;while(true){const t=h(e,"caster.instance");if(t==="Array"){e=e.caster;continue}if(t!=="String"&&t!=="Number"){throw new Error("`enum` can only be set on an array of strings or numbers "+", not "+t)}break}let t=arguments;if(!Array.isArray(arguments)&&y.isObject(arguments)){t=y.object.vals(t)}e.caster.enum.apply(e.caster,t);return this};SchemaArray.prototype.applyGetters=function(e,t){if(t!=null&&t.$__!=null&&t.$populated(this.path)){return e}const r=a.prototype.applyGetters.call(this,e,t);if(Array.isArray(r)){const e=y.isMongooseArray(r)?r.__array:r;const n=e.length;for(let r=0;r{n=e.call(this,n,this)}));n=n.map((function(e){if(y.isObject(e)&&e.$elemMatch){return e}if(i){e=i.call(o,e);return e}if(e!=null){e=new t(e);return e}return e}))}else if(i){n=i.call(o,n)}else if(n!=null){n=new t(n)}}return n};function cast$all(e){if(!Array.isArray(e)){e=[e]}e=e.map((function(e){if(!y.isObject(e)){return e}if(e.$elemMatch!=null){return{$elemMatch:d(this.casterConstructor.schema,e.$elemMatch)}}const t={};t[this.path]=e;return d(this.casterConstructor.schema,t)[this.path]}),this);return this.castForQuery(e)}function cast$elemMatch(e){const t=Object.keys(e);const r=t.length;for(let n=0;n{"use strict"; /*! * Module dependencies. */const n=r(94498);const i=r(80633);const o=r(87357);const s=r(52492);function SchemaBoolean(e,t){i.call(this,e,t,"Boolean")}SchemaBoolean.schemaName="Boolean";SchemaBoolean.defaultOptions={}; /*! * Inherits from SchemaType. */SchemaBoolean.prototype=Object.create(i.prototype);SchemaBoolean.prototype.constructor=SchemaBoolean; /*! * ignore */SchemaBoolean._cast=o;SchemaBoolean.set=i.set;SchemaBoolean.cast=function cast(e){if(arguments.length===0){return this._cast}if(e===false){e=this._defaultCaster}this._cast=e;return this._cast}; /*! * ignore */SchemaBoolean._defaultCaster=e=>{if(e!=null&&typeof e!=="boolean"){throw new Error}return e}; /*! * ignore */SchemaBoolean._checkRequired=e=>e===true||e===false;SchemaBoolean.checkRequired=i.checkRequired;SchemaBoolean.prototype.checkRequired=function(e){return this.constructor._checkRequired(e)};Object.defineProperty(SchemaBoolean,"convertToTrue",{get:()=>o.convertToTrue,set:e=>{o.convertToTrue=e}});Object.defineProperty(SchemaBoolean,"convertToFalse",{get:()=>o.convertToFalse,set:e=>{o.convertToFalse=e}});SchemaBoolean.prototype.cast=function(e){let t;if(typeof this._castFunction==="function"){t=this._castFunction}else if(typeof this.constructor.cast==="function"){t=this.constructor.cast()}else{t=SchemaBoolean.cast()}try{return t(e)}catch(t){throw new n("Boolean",e,this.path,t,this)}};SchemaBoolean.$conditionalHandlers=s.options(i.prototype.$conditionalHandlers,{});SchemaBoolean.prototype.castForQuery=function(e,t){let r;if(arguments.length===2){r=SchemaBoolean.$conditionalHandlers[e];if(r){return r.call(this,t)}return this._castForQuery(t)}return this._castForQuery(e)};SchemaBoolean.prototype._castNullish=function _castNullish(e){if(typeof e==="undefined"){return e}const t=typeof this.constructor.cast==="function"?this.constructor.cast():SchemaBoolean.cast();if(t==null){return e}if(t.convertToFalse instanceof Set&&t.convertToFalse.has(e)){return false}if(t.convertToTrue instanceof Set&&t.convertToTrue.has(e)){return true}return e}; /*! * Module exports. */e.exports=SchemaBoolean},945:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(13789);const i=r(22137);const o=r(80633);const s=r(261);const a=r(52492);const u=n.Binary;const c=o.CastError;function SchemaBuffer(e,t){o.call(this,e,t,"Buffer")}SchemaBuffer.schemaName="Buffer";SchemaBuffer.defaultOptions={}; /*! * Inherits from SchemaType. */SchemaBuffer.prototype=Object.create(o.prototype);SchemaBuffer.prototype.constructor=SchemaBuffer;SchemaBuffer.prototype.OptionsConstructor=i; /*! * ignore */SchemaBuffer._checkRequired=e=>!!(e&&e.length);SchemaBuffer.set=o.set;SchemaBuffer.checkRequired=o.checkRequired;SchemaBuffer.prototype.checkRequired=function(e,t){if(o._isRef(this,e,t,true)){return!!e}return this.constructor._checkRequired(e)};SchemaBuffer.prototype.cast=function(e,t,r){let i;if(o._isRef(this,e,t,r)){if(e&&e.isMongooseBuffer){return e}if(Buffer.isBuffer(e)){if(!e||!e.isMongooseBuffer){e=new n(e,[this.path,t]);if(this.options.subtype!=null){e._subtype=this.options.subtype}}return e}if(e instanceof u){i=new n(e.value(true),[this.path,t]);if(typeof e.sub_type!=="number"){throw new c("Buffer",e,this.path,null,this)}i._subtype=e.sub_type;return i}if(e==null||a.isNonBuiltinObject(e)){return this._castRef(e,t,r)}}if(e&&e._id){e=e._id}if(e&&e.isMongooseBuffer){return e}if(Buffer.isBuffer(e)){if(!e||!e.isMongooseBuffer){e=new n(e,[this.path,t]);if(this.options.subtype!=null){e._subtype=this.options.subtype}}return e}if(e instanceof u){i=new n(e.value(true),[this.path,t]);if(typeof e.sub_type!=="number"){throw new c("Buffer",e,this.path,null,this)}i._subtype=e.sub_type;return i}if(e===null){return e}const s=typeof e;if(s==="string"||s==="number"||Array.isArray(e)||s==="object"&&e.type==="Buffer"&&Array.isArray(e.data)){if(s==="number"){e=[e]}i=new n(e,[this.path,t]);if(this.options.subtype!=null){i._subtype=this.options.subtype}return i}throw new c("Buffer",e,this.path,null,this)};SchemaBuffer.prototype.subtype=function(e){this.options.subtype=e;return this}; /*! * ignore */function handleSingle(e){return this.castForQuery(e)}SchemaBuffer.prototype.$conditionalHandlers=a.options(o.prototype.$conditionalHandlers,{$bitsAllClear:s,$bitsAnyClear:s,$bitsAllSet:s,$bitsAnySet:s,$gt:handleSingle,$gte:handleSingle,$lt:handleSingle,$lte:handleSingle});SchemaBuffer.prototype.castForQuery=function(e,t){let r;if(arguments.length===2){r=this.$conditionalHandlers[e];if(!r){throw new Error("Can't use "+e+" with Buffer.")}return r.call(this,t)}t=e;const n=this._castForQuery(t);return n?n.toObject({transform:false,virtuals:false}):n}; /*! * Module exports. */e.exports=SchemaBuffer},10997:(e,t,r)=>{"use strict"; /*! * Module requirements. */const n=r(88513);const i=r(27157);const o=r(80633);const s=r(21175);const a=r(55716);const u=r(52492);const c=o.CastError;function SchemaDate(e,t){o.call(this,e,t,"Date")}SchemaDate.schemaName="Date";SchemaDate.defaultOptions={}; /*! * Inherits from SchemaType. */SchemaDate.prototype=Object.create(o.prototype);SchemaDate.prototype.constructor=SchemaDate;SchemaDate.prototype.OptionsConstructor=i; /*! * ignore */SchemaDate._cast=s;SchemaDate.set=o.set;SchemaDate.cast=function cast(e){if(arguments.length===0){return this._cast}if(e===false){e=this._defaultCaster}this._cast=e;return this._cast}; /*! * ignore */SchemaDate._defaultCaster=e=>{if(e!=null&&!(e instanceof Date)){throw new Error}return e};SchemaDate.prototype.expires=function(e){if(a(this._index)!=="Object"){this._index={}}this._index.expires=e;u.expires(this._index);return this}; /*! * ignore */SchemaDate._checkRequired=e=>e instanceof Date;SchemaDate.checkRequired=o.checkRequired;SchemaDate.prototype.checkRequired=function(e,t){if(o._isRef(this,e,t,true)){return!!e}const r=typeof this.constructor.checkRequired=="function"?this.constructor.checkRequired():SchemaDate.checkRequired();return r(e)};SchemaDate.prototype.min=function(e,t){if(this.minValidator){this.validators=this.validators.filter((function(e){return e.validator!==this.minValidator}),this)}if(e){let r=t||n.messages.Date.min;if(typeof r==="string"){r=r.replace(/{MIN}/,e===Date.now?"Date.now()":e.toString())}const i=this;this.validators.push({validator:this.minValidator=function(t){let r=e;if(typeof e==="function"&&e!==Date.now){r=r.call(this)}const n=r===Date.now?r():i.cast(r);return t===null||t.valueOf()>=n.valueOf()},message:r,type:"min",min:e})}return this};SchemaDate.prototype.max=function(e,t){if(this.maxValidator){this.validators=this.validators.filter((function(e){return e.validator!==this.maxValidator}),this)}if(e){let r=t||n.messages.Date.max;if(typeof r==="string"){r=r.replace(/{MAX}/,e===Date.now?"Date.now()":e.toString())}const i=this;this.validators.push({validator:this.maxValidator=function(t){let r=e;if(typeof r==="function"&&r!==Date.now){r=r.call(this)}const n=r===Date.now?r():i.cast(r);return t===null||t.valueOf()<=n.valueOf()},message:r,type:"max",max:e})}return this};SchemaDate.prototype.cast=function(e){let t;if(typeof this._castFunction==="function"){t=this._castFunction}else if(typeof this.constructor.cast==="function"){t=this.constructor.cast()}else{t=SchemaDate.cast()}try{return t(e)}catch(t){throw new c("date",e,this.path,t,this)}}; /*! * Date Query casting. * * @api private */function handleSingle(e){return this.cast(e)}SchemaDate.prototype.$conditionalHandlers=u.options(o.prototype.$conditionalHandlers,{$gt:handleSingle,$gte:handleSingle,$lt:handleSingle,$lte:handleSingle});SchemaDate.prototype.castForQuery=function(e,t){if(arguments.length!==2){return this._castForQuery(e)}const r=this.$conditionalHandlers[e];if(!r){throw new Error("Can't use "+e+" with Date.")}return r.call(this,t)}; /*! * Module exports. */e.exports=SchemaDate},7688:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(80633);const i=n.CastError;const o=r(43890);const s=r(18164);const a=r(52492);function Decimal128(e,t){n.call(this,e,t,"Decimal128")}Decimal128.schemaName="Decimal128";Decimal128.defaultOptions={}; /*! * Inherits from SchemaType. */Decimal128.prototype=Object.create(n.prototype);Decimal128.prototype.constructor=Decimal128; /*! * ignore */Decimal128._cast=s;Decimal128.set=n.set;Decimal128.cast=function cast(e){if(arguments.length===0){return this._cast}if(e===false){e=this._defaultCaster}this._cast=e;return this._cast}; /*! * ignore */Decimal128._defaultCaster=e=>{if(e!=null&&!(e instanceof o)){throw new Error}return e}; /*! * ignore */Decimal128._checkRequired=e=>e instanceof o;Decimal128.checkRequired=n.checkRequired;Decimal128.prototype.checkRequired=function checkRequired(e,t){if(n._isRef(this,e,t,true)){return!!e}const r=typeof this.constructor.checkRequired=="function"?this.constructor.checkRequired():Decimal128.checkRequired();return r(e)};Decimal128.prototype.cast=function(e,t,r){if(n._isRef(this,e,t,r)){if(e instanceof o){return e}return this._castRef(e,t,r)}let s;if(typeof this._castFunction==="function"){s=this._castFunction}else if(typeof this.constructor.cast==="function"){s=this.constructor.cast()}else{s=Decimal128.cast()}try{return s(e)}catch(t){throw new i("Decimal128",e,this.path,t,this)}}; /*! * ignore */function handleSingle(e){return this.cast(e)}Decimal128.prototype.$conditionalHandlers=a.options(n.prototype.$conditionalHandlers,{$gt:handleSingle,$gte:handleSingle,$lt:handleSingle,$lte:handleSingle}); /*! * Module exports. */e.exports=Decimal128},92663:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(85846);const i=r(94498);const o=r(82361).EventEmitter;const s=r(99157);const a=r(80633);const u=r(40387);const c=r(6709);const l=r(42543);const d=r(73837);const h=r(52492);const m=r(34171);const g=r(63241).arrayAtomicsSymbol;const y=r(63241).arrayPathSymbol;const v=r(63241).documentArrayParent;let b;let _;function DocumentArrayPath(e,t,r,i){if(i!=null&&i._id!=null){t=l(t,i)}else if(r!=null&&r._id!=null){t=l(t,r)}const o=_createConstructor(t,r);o.prototype.$basePath=e;n.call(this,e,o,r);this.schema=t;this.schemaOptions=i||{};this.$isMongooseDocumentArray=true;this.Constructor=o;o.base=t.base;const s=this.defaultValue;if(!("defaultValue"in this)||s!==void 0){this.default((function(){let e=s.call(this);if(e!=null&&!Array.isArray(e)){e=[e]}return e}))}const u=this;this.$embeddedSchemaType=new a(e+".$",{required:c(this,"schemaOptions.required",false)});this.$embeddedSchemaType.cast=function(e,t,r){return u.cast(e,t,r)[0]};this.$embeddedSchemaType.$isMongooseDocumentArrayElement=true;this.$embeddedSchemaType.caster=this.Constructor;this.$embeddedSchemaType.schema=this.schema}DocumentArrayPath.schemaName="DocumentArray";DocumentArrayPath.options={castNonArrays:true}; /*! * Inherits from ArrayType. */DocumentArrayPath.prototype=Object.create(n.prototype);DocumentArrayPath.prototype.constructor=DocumentArrayPath;DocumentArrayPath.prototype.OptionsConstructor=s; /*! * Ignore */function _createConstructor(e,t,n){_||(_=r(21545));function EmbeddedDocument(){_.apply(this,arguments);this.$session(this.ownerDocument().$session())}e._preCompile();const i=n!=null?n.prototype:_.prototype;EmbeddedDocument.prototype=Object.create(i);EmbeddedDocument.prototype.$__setSchema(e);EmbeddedDocument.schema=e;EmbeddedDocument.prototype.constructor=EmbeddedDocument;EmbeddedDocument.$isArraySubdocument=true;EmbeddedDocument.events=new o;for(const t in e.methods){EmbeddedDocument.prototype[t]=e.methods[t]}for(const t in e.statics){EmbeddedDocument[t]=e.statics[t]}for(const e in o.prototype){EmbeddedDocument[e]=o.prototype[e]}EmbeddedDocument.options=t;return EmbeddedDocument}DocumentArrayPath.prototype.discriminator=function(e,t,r){if(typeof e==="function"){e=h.getFunctionName(e)}r=r||{};const n=h.isPOJO(r)?r.value:r;const i=c(r,"clone",true);if(t.instanceOfSchema&&i){t=t.clone()}t=u(this.casterConstructor,e,t,n);const o=_createConstructor(t,null,this.casterConstructor);o.baseCasterConstructor=this.casterConstructor;try{Object.defineProperty(o,"name",{value:e})}catch(e){}this.casterConstructor.discriminators[e]=o;return this.casterConstructor.discriminators[e]};DocumentArrayPath.prototype.doValidate=function(e,t,n,i){b||(b=r(99211));const o=this;try{a.prototype.doValidate.call(this,e,cb,n)}catch(e){return t(e)}function cb(r){if(r){return t(r)}let s=e&&e.length;let a;if(!s){return t()}if(i&&i.updateValidator){return t()}if(!h.isMongooseDocumentArray(e)){e=new b(e,o.path,n)}function callback(e){if(e!=null){a=e}--s||t(a)}for(let r=0,n=s;r{"use strict"; /*! * Module exports. */t.String=r(24661);t.Number=r(5550);t.Boolean=r(69783);t.DocumentArray=r(92663);t.Subdocument=r(75142);t.Array=r(85846);t.Buffer=r(945);t.Date=r(10997);t.ObjectId=r(17791);t.Mixed=r(9902);t.Decimal128=t.Decimal=r(7688);t.Map=r(54079);t.Oid=t.ObjectId;t.Object=t.Mixed;t.Bool=t.Boolean;t.ObjectID=t.ObjectId},54079:(e,t,r)=>{"use strict"; /*! * ignore */const n=r(87325);const i=r(7950);const o=r(80633); /*! * ignore */class Map extends o{constructor(e,t){super(e,t,"Map");this.$isSchemaMap=true}set(e,t){return o.set(e,t)}cast(e,t,r){if(e instanceof n){return e}const i=this.path;if(r){const r=new n({},i,t,this.$__schemaType);if(e instanceof global.Map){for(const n of e.keys()){let o=e.get(n);if(o==null){o=r.$__schemaType._castNullish(o)}else{o=r.$__schemaType.cast(o,t,true,null,{path:i+"."+n})}r.$init(n,o)}}else{for(const n of Object.keys(e)){let o=e[n];if(o==null){o=r.$__schemaType._castNullish(o)}else{o=r.$__schemaType.cast(o,t,true,null,{path:i+"."+n})}r.$init(n,o)}}return r}return new n(e,i,t,this.$__schemaType)}clone(){const e=super.clone();if(this.$__schemaType!=null){e.$__schemaType=this.$__schemaType.clone()}return e}}Map.prototype.OptionsConstructor=i;Map.defaultOptions={};e.exports=Map},9902:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(80633);const i=r(11035);const o=r(65295);const s=r(52492);function Mixed(e,t){if(t&&t.default){const e=t.default;if(Array.isArray(e)&&e.length===0){t.default=Array}else if(!t.shared&&o(e)&&Object.keys(e).length===0){t.default=function(){return{}}}}n.call(this,e,t,"Mixed");this[i.schemaMixedSymbol]=true}Mixed.schemaName="Mixed";Mixed.defaultOptions={}; /*! * Inherits from SchemaType. */Mixed.prototype=Object.create(n.prototype);Mixed.prototype.constructor=Mixed;Mixed.get=n.get;Mixed.set=n.set;Mixed.prototype.cast=function(e){if(e instanceof Error){return s.errorToPOJO(e)}return e};Mixed.prototype.castForQuery=function(e,t){if(arguments.length===2){return t}return e}; /*! * Module exports. */e.exports=Mixed},5550:(e,t,r)=>{"use strict"; /*! * Module requirements. */const n=r(88513);const i=r(38288);const o=r(80633);const s=r(93054);const a=r(261);const u=r(52492);const c=o.CastError;function SchemaNumber(e,t){o.call(this,e,t,"Number")}SchemaNumber.get=o.get;SchemaNumber.set=o.set; /*! * ignore */SchemaNumber._cast=s;SchemaNumber.cast=function cast(e){if(arguments.length===0){return this._cast}if(e===false){e=this._defaultCaster}this._cast=e;return this._cast}; /*! * ignore */SchemaNumber._defaultCaster=e=>{if(typeof e!=="number"){throw new Error}return e};SchemaNumber.schemaName="Number";SchemaNumber.defaultOptions={}; /*! * Inherits from SchemaType. */SchemaNumber.prototype=Object.create(o.prototype);SchemaNumber.prototype.constructor=SchemaNumber;SchemaNumber.prototype.OptionsConstructor=i; /*! * ignore */SchemaNumber._checkRequired=e=>typeof e==="number"||e instanceof Number;SchemaNumber.checkRequired=o.checkRequired;SchemaNumber.prototype.checkRequired=function checkRequired(e,t){if(o._isRef(this,e,t,true)){return!!e}const r=typeof this.constructor.checkRequired=="function"?this.constructor.checkRequired():SchemaNumber.checkRequired();return r(e)};SchemaNumber.prototype.min=function(e,t){if(this.minValidator){this.validators=this.validators.filter((function(e){return e.validator!==this.minValidator}),this)}if(e!==null&&e!==undefined){let r=t||n.messages.Number.min;r=r.replace(/{MIN}/,e);this.validators.push({validator:this.minValidator=function(t){return t==null||t>=e},message:r,type:"min",min:e})}return this};SchemaNumber.prototype.max=function(e,t){if(this.maxValidator){this.validators=this.validators.filter((function(e){return e.validator!==this.maxValidator}),this)}if(e!==null&&e!==undefined){let r=t||n.messages.Number.max;r=r.replace(/{MAX}/,e);this.validators.push({validator:this.maxValidator=function(t){return t==null||t<=e},message:r,type:"max",max:e})}return this};SchemaNumber.prototype.enum=function(e,t){if(this.enumValidator){this.validators=this.validators.filter((function(e){return e.validator!==this.enumValidator}),this)}if(!Array.isArray(e)){const r=u.isPOJO(e)&&e.values!=null;if(r){t=e.message;e=e.values}else if(typeof e==="number"){e=Array.prototype.slice.call(arguments);t=null}if(u.isPOJO(e)){e=Object.values(e)}t=t||n.messages.Number.enum}t=t==null?n.messages.Number.enum:t;this.enumValidator=t=>t==null||e.indexOf(t)!==-1;this.validators.push({validator:this.enumValidator,message:t,type:"enum",enumValues:e});return this};SchemaNumber.prototype.cast=function(e,t,r){if(o._isRef(this,e,t,r)){if(typeof e==="number"){return e}if(e==null||u.isNonBuiltinObject(e)){return this._castRef(e,t,r)}}const n=e&&typeof e._id!=="undefined"?e._id:e;let i;if(typeof this._castFunction==="function"){i=this._castFunction}else if(typeof this.constructor.cast==="function"){i=this.constructor.cast()}else{i=SchemaNumber.cast()}try{return i(n)}catch(e){throw new c("Number",n,this.path,e,this)}}; /*! * ignore */function handleSingle(e){return this.cast(e)}function handleArray(e){const t=this;if(!Array.isArray(e)){return[this.cast(e)]}return e.map((function(e){return t.cast(e)}))}SchemaNumber.prototype.$conditionalHandlers=u.options(o.prototype.$conditionalHandlers,{$bitsAllClear:a,$bitsAnyClear:a,$bitsAllSet:a,$bitsAnySet:a,$gt:handleSingle,$gte:handleSingle,$lt:handleSingle,$lte:handleSingle,$mod:handleArray});SchemaNumber.prototype.castForQuery=function(e,t){let r;if(arguments.length===2){r=this.$conditionalHandlers[e];if(!r){throw new c("number",t,this.path,null,this)}return r.call(this,t)}t=this._castForQuery(e);return t}; /*! * Module exports. */e.exports=SchemaNumber},17791:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(95510);const i=r(80633);const o=r(63441);const s=r(55716);const a=r(69078);const u=r(52492);const c=i.CastError;let l;function ObjectId(e,t){const r=typeof e==="string"&&e.length===24&&/^[a-f0-9]+$/i.test(e);const n=t&&t.suppressWarning;if((r||typeof e==="undefined")&&!n){u.warn("mongoose: To create a new ObjectId please try "+"`Mongoose.Types.ObjectId` instead of using "+"`Mongoose.Schema.ObjectId`. Set the `suppressWarning` option if "+"you're trying to create a hex char path in your schema.")}i.call(this,e,t,"ObjectID")}ObjectId.schemaName="ObjectId";ObjectId.defaultOptions={}; /*! * Inherits from SchemaType. */ObjectId.prototype=Object.create(i.prototype);ObjectId.prototype.constructor=ObjectId;ObjectId.prototype.OptionsConstructor=n;ObjectId.get=i.get;ObjectId.set=i.set;ObjectId.prototype.auto=function(e){if(e){this.default(defaultId);this.set(resetId)}return this}; /*! * ignore */ObjectId._checkRequired=e=>e instanceof a /*! * ignore */;ObjectId._cast=o;ObjectId.cast=function cast(e){if(arguments.length===0){return this._cast}if(e===false){e=this._defaultCaster}this._cast=e;return this._cast}; /*! * ignore */ObjectId._defaultCaster=e=>{if(!(e instanceof a)){throw new Error(e+" is not an instance of ObjectId")}return e};ObjectId.checkRequired=i.checkRequired;ObjectId.prototype.checkRequired=function checkRequired(e,t){if(i._isRef(this,e,t,true)){return!!e}const r=typeof this.constructor.checkRequired=="function"?this.constructor.checkRequired():ObjectId.checkRequired();return r(e)};ObjectId.prototype.cast=function(e,t,r){if(i._isRef(this,e,t,r)){if(e instanceof a){return e}else if((s(e)||"").toLowerCase()==="objectid"){return new a(e.toHexString())}if(e==null||u.isNonBuiltinObject(e)){return this._castRef(e,t,r)}}let n;if(typeof this._castFunction==="function"){n=this._castFunction}else if(typeof this.constructor.cast==="function"){n=this.constructor.cast()}else{n=ObjectId.cast()}try{return n(e)}catch(t){throw new c("ObjectId",e,this.path,t,this)}}; /*! * ignore */function handleSingle(e){return this.cast(e)}ObjectId.prototype.$conditionalHandlers=u.options(i.prototype.$conditionalHandlers,{$gt:handleSingle,$gte:handleSingle,$lt:handleSingle,$lte:handleSingle}); /*! * ignore */function defaultId(){return new a}defaultId.$runBeforeSetters=true;function resetId(e){l||(l=r(30754));if(this instanceof l){if(e===void 0){const e=new a;this.$__._id=e;return e}this.$__._id=e}return e} /*! * Module exports. */e.exports=ObjectId},261:(e,t,r)=>{"use strict"; /*! * Module requirements. */const n=r(94498); /*! * ignore */function handleBitwiseOperator(e){const t=this;if(Array.isArray(e)){return e.map((function(e){return _castNumber(t.path,e)}))}else if(Buffer.isBuffer(e)){return e}return _castNumber(t.path,e)} /*! * ignore */function _castNumber(e,t){const r=Number(t);if(isNaN(r)){throw new n("number",t,e)}return r}e.exports=handleBitwiseOperator},54631:(e,t,r)=>{"use strict";const n=r(87357); /*! * ignore */e.exports=function(e){const t=this!=null?this.path:null;return n(e,t)}},29581:(e,t,r)=>{"use strict"; /*! * Module requirements. */const n=r(86489).i;const i=r(86489).W; /*! * ignore */t.cast$geoIntersects=cast$geoIntersects;t.cast$near=cast$near;t.cast$within=cast$within;function cast$near(e){const t=r(85846);if(Array.isArray(e)){n(e,this);return e}_castMinMaxDistance(this,e);if(e&&e.$geometry){return cast$geometry(e,this)}if(!Array.isArray(e)){throw new TypeError("$near must be either an array or an object "+"with a $geometry property")}return t.prototype.castForQuery.call(this,e)}function cast$geometry(e,t){switch(e.$geometry.type){case"Polygon":case"LineString":case"Point":n(e.$geometry.coordinates,t);break;default:break}_castMinMaxDistance(t,e);return e}function cast$within(e){_castMinMaxDistance(this,e);if(e.$box||e.$polygon){const t=e.$box?"$box":"$polygon";e[t].forEach((e=>{if(!Array.isArray(e)){const t="Invalid $within $box argument. "+"Expected an array, received "+e;throw new TypeError(t)}e.forEach(((t,r)=>{e[r]=i.call(this,t)}))}))}else if(e.$center||e.$centerSphere){const t=e.$center?"$center":"$centerSphere";e[t].forEach(((r,n)=>{if(Array.isArray(r)){r.forEach(((e,t)=>{r[t]=i.call(this,e)}))}else{e[t][n]=i.call(this,r)}}))}else if(e.$geometry){cast$geometry(e,this)}return e}function cast$geoIntersects(e){const t=e.$geometry;if(!t){return}cast$geometry(e,this);return e}function _castMinMaxDistance(e,t){if(t.$maxDistance){t.$maxDistance=i.call(e,t.$maxDistance)}if(t.$minDistance){t.$minDistance=i.call(e,t.$minDistance)}}},86489:(e,t,r)=>{"use strict"; /*! * Module requirements. */const n=r(5550); /*! * @ignore */t.W=castToNumber;t.i=castArraysOfNumbers; /*! * @ignore */function castToNumber(e){return n.cast()(e)}function castArraysOfNumbers(e,t){e.forEach((function(r,n){if(Array.isArray(r)){castArraysOfNumbers(r,t)}else{e[n]=castToNumber.call(t,r)}}))}},81102:(e,t,r)=>{"use strict";const n=r(94498);const i=r(87357);const o=r(90851); /*! * Casts val to an object suitable for `$text`. Throws an error if the object * can't be casted. * * @param {Any} val value to cast * @param {String} [path] path to associate with any errors that occured * @return {Object} casted object * @see https://docs.mongodb.com/manual/reference/operator/query/text/ * @api private */e.exports=function(e,t){if(e==null||typeof e!=="object"){throw new n("$text",e,t)}if(e.$search!=null){e.$search=o(e.$search,t+".$search")}if(e.$language!=null){e.$language=o(e.$language,t+".$language")}if(e.$caseSensitive!=null){e.$caseSensitive=i(e.$caseSensitive,t+".$castSensitive")}if(e.$diacriticSensitive!=null){e.$diacriticSensitive=i(e.$diacriticSensitive,t+".$diacriticSensitive")}return e}},2191:e=>{"use strict"; /*! * ignore */e.exports=function(e){if(Array.isArray(e)){if(!e.every((e=>typeof e==="number"||typeof e==="string"))){throw new Error("$type array values must be strings or numbers")}return e}if(typeof e!=="number"&&typeof e!=="string"){throw new Error("$type parameter must be number, string, or array of numbers and strings")}return e}},24661:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(80633);const i=r(88513);const o=r(85790);const s=r(90851);const a=r(52492);const u=n.CastError;function SchemaString(e,t){this.enumValues=[];this.regExp=null;n.call(this,e,t,"String")}SchemaString.schemaName="String";SchemaString.defaultOptions={}; /*! * Inherits from SchemaType. */SchemaString.prototype=Object.create(n.prototype);SchemaString.prototype.constructor=SchemaString;Object.defineProperty(SchemaString.prototype,"OptionsConstructor",{configurable:false,enumerable:false,writable:false,value:o}); /*! * ignore */SchemaString._cast=s;SchemaString.cast=function cast(e){if(arguments.length===0){return this._cast}if(e===false){e=this._defaultCaster}this._cast=e;return this._cast}; /*! * ignore */SchemaString._defaultCaster=e=>{if(e!=null&&typeof e!=="string"){throw new Error}return e};SchemaString.get=n.get;SchemaString.set=n.set; /*! * ignore */SchemaString._checkRequired=e=>(e instanceof String||typeof e==="string")&&e.length;SchemaString.checkRequired=n.checkRequired;SchemaString.prototype.enum=function(){if(this.enumValidator){this.validators=this.validators.filter((function(e){return e.validator!==this.enumValidator}),this);this.enumValidator=false}if(arguments[0]===void 0||arguments[0]===false){return this}let e;let t;if(a.isObject(arguments[0])){if(Array.isArray(arguments[0].values)){e=arguments[0].values;t=arguments[0].message}else{e=a.object.vals(arguments[0]);t=i.messages.String.enum}}else{e=arguments;t=i.messages.String.enum}for(const t of e){if(t!==undefined){this.enumValues.push(this.cast(t))}}const r=this.enumValues;this.enumValidator=function(e){return undefined===e||~r.indexOf(e)};this.validators.push({validator:this.enumValidator,message:t,type:"enum",enumValues:r});return this};SchemaString.prototype.lowercase=function(e){if(arguments.length>0&&!e){return this}return this.set((e=>{if(typeof e!=="string"){e=this.cast(e)}if(e){return e.toLowerCase()}return e}))};SchemaString.prototype.uppercase=function(e){if(arguments.length>0&&!e){return this}return this.set((e=>{if(typeof e!=="string"){e=this.cast(e)}if(e){return e.toUpperCase()}return e}))};SchemaString.prototype.trim=function(e){if(arguments.length>0&&!e){return this}return this.set((e=>{if(typeof e!=="string"){e=this.cast(e)}if(e){return e.trim()}return e}))};SchemaString.prototype.minlength=function(e,t){if(this.minlengthValidator){this.validators=this.validators.filter((function(e){return e.validator!==this.minlengthValidator}),this)}if(e!==null&&e!==undefined){let r=t||i.messages.String.minlength;r=r.replace(/{MINLENGTH}/,e);this.validators.push({validator:this.minlengthValidator=function(t){return t===null||t.length>=e},message:r,type:"minlength",minlength:e})}return this};SchemaString.prototype.minLength=SchemaString.prototype.minlength;SchemaString.prototype.maxlength=function(e,t){if(this.maxlengthValidator){this.validators=this.validators.filter((function(e){return e.validator!==this.maxlengthValidator}),this)}if(e!==null&&e!==undefined){let r=t||i.messages.String.maxlength;r=r.replace(/{MAXLENGTH}/,e);this.validators.push({validator:this.maxlengthValidator=function(t){return t===null||t.length<=e},message:r,type:"maxlength",maxlength:e})}return this};SchemaString.prototype.maxLength=SchemaString.prototype.maxlength;SchemaString.prototype.match=function match(e,t){const r=t||i.messages.String.match;const matchValidator=function(t){if(!e){return false}e.lastIndex=0;const r=t!=null&&t!==""?e.test(t):true;return r};this.validators.push({validator:matchValidator,message:r,type:"regexp",regexp:e});return this};SchemaString.prototype.checkRequired=function checkRequired(e,t){if(n._isRef(this,e,t,true)){return!!e}const r=typeof this.constructor.checkRequired=="function"?this.constructor.checkRequired():SchemaString.checkRequired();return r(e)};SchemaString.prototype.cast=function(e,t,r){if(n._isRef(this,e,t,r)){if(typeof e==="string"){return e}return this._castRef(e,t,r)}let i;if(typeof this._castFunction==="function"){i=this._castFunction}else if(typeof this.constructor.cast==="function"){i=this.constructor.cast()}else{i=SchemaString.cast()}try{return i(e)}catch(t){throw new u("string",e,this.path,null,this)}}; /*! * ignore */function handleSingle(e){return this.castForQuery(e)}function handleArray(e){const t=this;if(!Array.isArray(e)){return[this.castForQuery(e)]}return e.map((function(e){return t.castForQuery(e)}))}const c=a.options(n.prototype.$conditionalHandlers,{$all:handleArray,$gt:handleSingle,$gte:handleSingle,$lt:handleSingle,$lte:handleSingle,$options:String,$regex:handleSingle,$not:handleSingle});Object.defineProperty(SchemaString.prototype,"$conditionalHandlers",{configurable:false,enumerable:false,writable:false,value:Object.freeze(c)});SchemaString.prototype.castForQuery=function(e,t){let r;if(arguments.length===2){r=this.$conditionalHandlers[e];if(!r){throw new Error("Can't use "+e+" with String.")}return r.call(this,t)}t=e;if(Object.prototype.toString.call(t)==="[object RegExp]"){return t}return this._castForQuery(t)}; /*! * Module exports. */e.exports=SchemaString},11035:(e,t)=>{"use strict";t.schemaMixedSymbol=Symbol.for("mongoose:schema_mixed");t.builtInMiddleware=Symbol.for("mongoose:built-in-middleware")},80633:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(88513);const i=r(44829);const o=r(54631);const s=r(2191);const a=r(6709);const u=r(67922);const c=r(73265);const l=r(64248);const d=r(63241).schemaTypeSymbol;const h=r(52492);const m=r(63241).validatorErrorSymbol;const g=r(63241).documentIsModified;const y=r(63241).populateModelSymbol;const v=n.CastError;const b=n.ValidatorError;function SchemaType(e,t,r){this[d]=true;this.path=e;this.instance=r;this.validators=[];this.getters=this.constructor.hasOwnProperty("getters")?this.constructor.getters.slice():[];this.setters=[];this.splitPath();t=t||{};const n=this.constructor.defaultOptions||{};const o=Object.keys(n);for(const e of o){if(n.hasOwnProperty(e)&&!t.hasOwnProperty(e)){t[e]=n[e]}}if(t.select==null){delete t.select}const s=this.OptionsConstructor||i;this.options=new s(t);this._index=null;if(h.hasUserDefinedProperty(this.options,"immutable")){this.$immutable=this.options.immutable;u(this)}const a=Object.keys(this.options);for(const e of a){if(e==="cast"){this.castFunction(this.options[e]);continue}if(h.hasUserDefinedProperty(this.options,e)&&typeof this[e]==="function"){if(e==="index"&&this._index){if(t.index===false){const e=this._index;if(typeof e==="object"&&e!=null){if(e.unique){throw new Error('Path "'+this.path+'" may not have `index` '+"set to false and `unique` set to true")}if(e.sparse){throw new Error('Path "'+this.path+'" may not have `index` '+"set to false and `sparse` set to true")}}this._index=false}continue}const r=t[e];if(e==="default"){this.default(r);continue}const n=Array.isArray(r)?r:[r];this[e].apply(this,n)}}Object.defineProperty(this,"$$context",{enumerable:false,configurable:false,writable:true,value:null})} /*! * The class that Mongoose uses internally to instantiate this SchemaType's `options` property. */SchemaType.prototype.OptionsConstructor=i;SchemaType.prototype.path;SchemaType.prototype.validators;SchemaType.prototype.validators; /*! * ignore */SchemaType.prototype.splitPath=function(){if(this._presplitPath!=null){return this._presplitPath}if(this.path==null){return undefined}this._presplitPath=this.path.indexOf(".")===-1?[this.path]:this.path.split(".");return this._presplitPath};SchemaType.cast=function cast(e){if(arguments.length===0){return this._cast}if(e===false){e=e=>e}this._cast=e;return this._cast};SchemaType.prototype.castFunction=function castFunction(e){if(arguments.length===0){return this._castFunction}if(e===false){e=this.constructor._defaultCaster||(e=>e)}this._castFunction=e;return this._castFunction};SchemaType.prototype.cast=function cast(){throw new Error("Base SchemaType class does not implement a `cast()` function")};SchemaType.set=function set(e,t){if(!this.hasOwnProperty("defaultOptions")){this.defaultOptions=Object.assign({},this.defaultOptions)}this.defaultOptions[e]=t};SchemaType.get=function(e){this.getters=this.hasOwnProperty("getters")?this.getters:[];this.getters.push(e)};SchemaType.prototype.default=function(e){if(arguments.length===1){if(e===void 0){this.defaultValue=void 0;return void 0}if(e!=null&&e.instanceOfSchema){throw new n("Cannot set default value of path `"+this.path+"` to a mongoose Schema instance.")}this.defaultValue=e;return this.defaultValue}else if(arguments.length>1){this.defaultValue=[...arguments]}return this.defaultValue};SchemaType.prototype.index=function(e){this._index=e;h.expires(this._index);return this};SchemaType.prototype.unique=function(e){if(this._index===false){if(!e){return}throw new Error('Path "'+this.path+'" may not have `index` set to '+"false and `unique` set to true")}if(!this.options.hasOwnProperty("index")&&e===false){return this}if(this._index==null||this._index===true){this._index={}}else if(typeof this._index==="string"){this._index={type:this._index}}this._index.unique=e;return this};SchemaType.prototype.text=function(e){if(this._index===false){if(!e){return}throw new Error('Path "'+this.path+'" may not have `index` set to '+"false and `text` set to true")}if(!this.options.hasOwnProperty("index")&&e===false){return this}if(this._index===null||this._index===undefined||typeof this._index==="boolean"){this._index={}}else if(typeof this._index==="string"){this._index={type:this._index}}this._index.text=e;return this};SchemaType.prototype.sparse=function(e){if(this._index===false){if(!e){return}throw new Error('Path "'+this.path+'" may not have `index` set to '+"false and `sparse` set to true")}if(!this.options.hasOwnProperty("index")&&e===false){return this}if(this._index==null||typeof this._index==="boolean"){this._index={}}else if(typeof this._index==="string"){this._index={type:this._index}}this._index.sparse=e;return this};SchemaType.prototype.immutable=function(e){this.$immutable=e;u(this);return this};SchemaType.prototype.transform=function(e){this.options.transform=e;return this};SchemaType.prototype.set=function(e){if(typeof e!=="function"){throw new TypeError("A setter must be a function.")}this.setters.push(e);return this};SchemaType.prototype.get=function(e){if(typeof e!=="function"){throw new TypeError("A getter must be a function.")}this.getters.push(e);return this};SchemaType.prototype.validate=function(e,t,r){if(typeof e==="function"||e&&h.getFunctionName(e.constructor)==="RegExp"){let i;if(typeof t==="function"){i={validator:e,message:t};i.type=r||"user defined"}else if(t instanceof Object&&!r){i=h.clone(t);if(!i.message){i.message=i.msg}i.validator=e;i.type=i.type||"user defined"}else{if(t==null){t=n.messages.general.default}if(!r){r="user defined"}i={message:t,type:r,validator:e}}this.validators.push(i);return this}let i;let o;let s;for(i=0,o=arguments.length;i0&&e==null){this.validators=this.validators.filter((function(e){return e.validator!==this.requiredValidator}),this);this.isRequired=false;delete this.originalRequiredValue;return this}if(typeof e==="object"){r=e;t=r.message||t;e=e.isRequired}if(e===false){this.validators=this.validators.filter((function(e){return e.validator!==this.requiredValidator}),this);this.isRequired=false;delete this.originalRequiredValue;return this}const i=this;this.isRequired=true;this.requiredValidator=function(t){const r=a(this,"$__.cachedRequired");if(r!=null&&!this.$__isSelected(i.path)&&!this[g](i.path)){return true}if(r!=null&&i.path in r){const e=r[i.path]?i.checkRequired(t,this):true;delete r[i.path];return e}else if(typeof e==="function"){return e.apply(this)?i.checkRequired(t,this):true}return i.checkRequired(t,this)};this.originalRequiredValue=e;if(typeof e==="string"){t=e;e=undefined}const o=t||n.messages.general.required;this.validators.unshift(Object.assign({},r,{validator:this.requiredValidator,message:o,type:"required"}));return this};SchemaType.prototype.ref=function(e){this.options.ref=e;return this};SchemaType.prototype.getDefault=function(e,t){let r;if(typeof this.defaultValue==="function"){if(this.defaultValue===Date.now||this.defaultValue===Array||this.defaultValue.name.toLowerCase()==="objectid"){r=this.defaultValue.call(e)}else{r=this.defaultValue.call(e,e)}}else{r=this.defaultValue}if(r!==null&&r!==undefined){if(typeof r==="object"&&(!this.options||!this.options.shared)){r=h.clone(r)}const n=this.applySetters(r,e,t);if(n&&!Array.isArray(n)&&n.$isSingleNested){n.$__parent=e}return n}return r}; /*! * Applies setters without casting * * @api private */SchemaType.prototype._applySetters=function(e,t,r,n){let i=e;if(r){return i}const o=this.setters;for(let e=o.length-1;e>=0;e--){i=o[e].call(t,i,n,this)}return i}; /*! * ignore */SchemaType.prototype._castNullish=function _castNullish(e){return e};SchemaType.prototype.applySetters=function(e,t,r,n,i){let o=this._applySetters(e,t,r,n,i);if(o==null){return this._castNullish(o)}o=this.cast(o,t,r,n,i);return o};SchemaType.prototype.applyGetters=function(e,t){let r=e;const n=this.getters;const i=n.length;if(i===0){return r}for(let e=0;ee!=null&&typeof e==="object"));let a=s.length;if(!a){return t(null)}const u=this;s.forEach((function(t){if(i){return}const s=t.validator;let a;const c=h.clone(t);c.path=n&&n.path?n.path:o;c.value=e;if(s instanceof RegExp){validate(s.test(e),c);return}if(typeof s!=="function"){return}if(e===undefined&&s!==u.requiredValidator){validate(true,c);return}try{if(c.propsParameter){a=s.call(r,e,c)}else{a=s.call(r,e)}}catch(e){a=false;c.reason=e;if(e.message){c.message=e.message}}if(a!=null&&typeof a.then==="function"){a.then((function(e){validate(e,c)}),(function(e){c.reason=e;c.message=e.message;a=false;validate(a,c)}))}else{validate(a,c)}}));function validate(e,r){if(i){return}if(e===undefined||e){if(--a<=0){l((function(){t(null)}))}}else{const e=r.ErrorConstructor||b;i=new e(r);i[m]=true;l((function(){t(i)}))}}};function _validate(e,t){if(e!==undefined&&!e){const e=t.ErrorConstructor||b;const r=new e(t);r[m]=true;return r}}SchemaType.prototype.doValidateSync=function(e,t,r){const n=this.path;const i=this.validators.length;if(!i){return null}let o=this.validators;if(e===void 0){if(this.validators.length!==0&&this.validators[0].type==="required"){o=[this.validators[0]]}else{return null}}let s=null;let a=0;const u=o.length;for(a=0;a{"use strict"; /*! * Module dependencies. */const n=r(52492); /*! * StateMachine represents a minimal `interface` for the * constructors it builds via StateMachine.ctor(...). * * @api private */const i=e.exports=t=function StateMachine(){}; /*! * StateMachine.ctor('state1', 'state2', ...) * A factory method for subclassing StateMachine. * The arguments are a list of states. For each state, * the constructor's prototype gets state transition * methods named after each state. These transition methods * place their path argument into the given state. * * @param {String} state * @param {String} [state] * @return {Function} subclass constructor * @private */i.ctor=function(){const e=[...arguments];const ctor=function(){i.apply(this,arguments);this.paths={};this.states={};this.stateNames=e;let t=e.length,r;while(t--){r=e[t];this.states[r]={}}};ctor.prototype=new i;e.forEach((function(e){ctor.prototype[e]=function(t){this._changeState(t,e)}}));return ctor}; /*! * This function is wrapped by the state change functions: * * - `require(path)` * - `modify(path)` * - `init(path)` * * @api private */i.prototype._changeState=function _changeState(e,t){const r=this.states[this.paths[e]];if(r)delete r[e];this.paths[e]=t;this.states[t][e]=true}; /*! * ignore */i.prototype.clear=function clear(e){const t=Object.keys(this.states[e]);let r=t.length;let n;while(r--){n=t[r];delete this.states[e][n];delete this.paths[n]}}; /*! * Checks to see if at least one path is in the states passed in via `arguments` * e.g., this.some('required', 'inited') * * @param {String} state that we want to check for. * @private */i.prototype.some=function some(){const e=this;const t=arguments.length?arguments:this.stateNames;return Array.prototype.some.call(t,(function(t){return Object.keys(e.states[t]).length}))}; /*! * This function builds the functions that get assigned to `forEach` and `map`, * since both of those methods share a lot of the same logic. * * @param {String} iterMethod is either 'forEach' or 'map' * @return {Function} * @api private */i.prototype._iter=function _iter(e){return function(){let t=[...arguments];const r=t.pop();if(!t.length)t=this.stateNames;const n=this;const i=t.reduce((function(e,t){return e.concat(Object.keys(n.states[t]))}),[]);return i[e]((function(e,t,n){return r(e,t,n)}))}}; /*! * Iterates over the paths that belong to one of the parameter states. * * The function profile can look like: * this.forEach(state1, fn); // iterates over all paths in state1 * this.forEach(state1, state2, fn); // iterates over all paths in state1 or state2 * this.forEach(fn); // iterates over all paths in all states * * @param {String} [state] * @param {String} [state] * @param {Function} callback * @private */i.prototype.forEach=function forEach(){this.forEach=this._iter("forEach");return this.forEach.apply(this,arguments)}; /*! * Maps over the paths that belong to one of the parameter states. * * The function profile can look like: * this.forEach(state1, fn); // iterates over all paths in state1 * this.forEach(state1, state2, fn); // iterates over all paths in state1 or state2 * this.forEach(fn); // iterates over all paths in all states * * @param {String} [state] * @param {String} [state] * @param {Function} callback * @return {Array} * @private */i.prototype.map=function map(){this.map=this._iter("map");return this.map.apply(this,arguments)}},21545:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(82361).EventEmitter;const i=r(10094);const o=r(52492);const s=r(63241).documentArrayParent; /*! * A constructor. * * @param {Object} obj js object returned from the db * @param {MongooseDocumentArray} parentArr the parent array of this document * @param {Boolean} skipId * @inherits Document * @api private */function ArraySubdocument(e,t,r,n,a){if(o.isMongooseDocumentArray(t)){this.__parentArray=t;this[s]=t.$parent()}else{this.__parentArray=undefined;this[s]=undefined}this.$setIndex(a);this.$__parent=this[s];i.call(this,e,n,this[s],void 0,{isNew:true})} /*! * Inherit from Subdocument */ArraySubdocument.prototype=Object.create(i.prototype);ArraySubdocument.prototype.constructor=ArraySubdocument;Object.defineProperty(ArraySubdocument.prototype,"$isSingleNested",{configurable:false,writable:false,value:false});Object.defineProperty(ArraySubdocument.prototype,"$isDocumentArrayElement",{configurable:false,writable:false,value:true});for(const e in n.prototype){ArraySubdocument[e]=n.prototype[e]} /*! * ignore */ArraySubdocument.prototype.$setIndex=function(e){this.__index=e;if(this.$__!=null&&this.$__.validationError!=null){const e=Object.keys(this.$__.validationError.errors);for(const t of e){this.invalidate(t,this.$__.validationError.errors[t])}}}; /*! * ignore */ArraySubdocument.prototype.populate=function(){throw new Error("Mongoose does not support calling populate() on nested "+'docs. Instead of `doc.arr[0].populate("path")`, use '+'`doc.populate("arr.0.path")`')}; /*! * ignore */ArraySubdocument.prototype.$__removeFromParent=function(){const e=this._doc._id;if(!e){throw new Error("For your own good, Mongoose does not know "+"how to remove an ArraySubdocument that has no _id")}this.__parentArray.pull({_id:e})};ArraySubdocument.prototype.$__fullPath=function(e,t){if(this.__index==null){return null}if(!this.$__.fullPath){this.ownerDocument()}if(t){return e?this.$__.fullPath+"."+e:this.$__.fullPath}return e?this.$__.fullPath+"."+this.__index+"."+e:this.$__.fullPath+"."+this.__index}; /*! * Given a path relative to this document, return the path relative * to the top-level document. */ArraySubdocument.prototype.$__pathRelativeToParent=function(e,t){if(this.__index==null){return null}if(t){return e==null?this.__parentArray.$path():this.__parentArray.$path()+"."+e}if(e==null){return this.__parentArray.$path()+"."+this.__index}return this.__parentArray.$path()+"."+this.__index+"."+e}; /*! * Returns this sub-documents parent document. */ArraySubdocument.prototype.$parent=function(){return this[s]};ArraySubdocument.prototype.parentArray=function(){return this.__parentArray}; /*! * Module exports. */e.exports=ArraySubdocument},99211:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(90624);const i=r(61513);const o=r(30754);const s=r(63241).arrayAtomicsSymbol;const a=r(63241).arrayAtomicsBackupSymbol;const u=r(63241).arrayParentSymbol;const c=r(63241).arrayPathSymbol;const l=r(63241).arraySchemaSymbol;const d=Array.prototype.push;const h=/^\d+$/;function MongooseDocumentArray(e,t,r){const m=[];const g={[s]:{},[a]:void 0,[c]:t,[l]:void 0,[u]:void 0};if(Array.isArray(e)){if(e[c]===t&&e[u]===r){g[s]=Object.assign({},e[s])}e.forEach((e=>{d.call(m,e)}))}g[c]=t;g.__array=m;if(r&&r instanceof o){g[u]=r;g[l]=r.schema.path(t);while(g[l]!=null&&g[l].$isMongooseArray&&!g[l].$isMongooseDocumentArray){g[l]=g[l].casterConstructor}}const y=new Proxy(m,{get:function(e,t){if(t==="isMongooseArray"||t==="isMongooseArrayProxy"||t==="isMongooseDocumentArray"||t==="isMongooseDocumentArrayProxy"){return true}if(g.hasOwnProperty(t)){return g[t]}if(i.hasOwnProperty(t)){return i[t]}if(n.hasOwnProperty(t)){return n[t]}return m[t]},set:function(e,t,r){if(typeof t==="string"&&h.test(t)){i.set.call(y,t,r,false)}else if(g.hasOwnProperty(t)){g[t]=r}else{m[t]=r}return true}});return y} /*! * Module exports. */e.exports=MongooseDocumentArray},33677:(e,t)=>{"use strict";t.isMongooseDocumentArray=function(e){return Array.isArray(e)&&e.isMongooseDocumentArray}},61513:(e,t,r)=>{"use strict";const n=r(90624);const i=r(30754);const o=r(69078);const s=r(63441);const a=r(74693);const u=r(28561).h;const c=r(52492);const l=r(63241).arrayParentSymbol;const d=r(63241).arrayPathSymbol;const h=r(63241).arraySchemaSymbol;const m=r(63241).documentArrayParent;const g={ /*! * ignore */ toBSON(){return this.toObject(u)},_cast(e,t){if(this[h]==null){return e}let r=this[h].casterConstructor;const n=r.$isMongooseDocumentArray?c.isMongooseDocumentArray(e):e instanceof r;if(n||e&&e.constructor&&e.constructor.baseCasterConstructor===r){if(!(e[m]&&e.__parentArray)){e[m]=this[l];e.__parentArray=this}e.$setIndex(t);return e}if(e===undefined||e===null){return null}if(Buffer.isBuffer(e)||e instanceof o||!c.isObject(e)){e={_id:e}}if(e&&r.discriminators&&r.schema&&r.schema.options&&r.schema.options.discriminatorKey){if(typeof e[r.schema.options.discriminatorKey]==="string"&&r.discriminators[e[r.schema.options.discriminatorKey]]){r=r.discriminators[e[r.schema.options.discriminatorKey]]}else{const t=a(r.discriminators,e[r.schema.options.discriminatorKey]);if(t){r=t}}}if(r.$isMongooseDocumentArray){return r.cast(e,this,undefined,undefined,t)}const i=new r(e,this,undefined,undefined,t);i.isNew=true;return i},id(e){let t;let r;let n;try{t=s(e).toString()}catch(e){t=null}for(const s of this){if(!s){continue}n=s.get("_id");if(n===null||typeof n==="undefined"){continue}else if(n instanceof i){r||(r=String(e));if(r==n._id){return s}}else if(!(e instanceof o)&&!(n instanceof o)){if(e==n||c.deepEqual(e,n)){return s}}else if(t==n){return s}}return null},toObject(e){return[].concat(this.map((function(t){if(t==null){return null}if(typeof t.toObject!=="function"){return t}return t.toObject(e)})))},$toObject(){return this.constructor.prototype.toObject.apply(this,arguments)},push(){const e=n.push.apply(this,arguments);_updateParentPopulated(this);return e},pull(){const e=n.pull.apply(this,arguments);_updateParentPopulated(this);return e}, /*! * Wraps [`Array#shift`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshift) with proper change tracking. */ shift(){const e=n.shift.apply(this,arguments);_updateParentPopulated(this);return e}, /*! * Wraps [`Array#splice`](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice) with proper change tracking and casting. */ splice(){const e=n.splice.apply(this,arguments);_updateParentPopulated(this);return e},inspect(){return this.toObject()},create(e){let t=this[h].casterConstructor;if(e&&t.discriminators&&t.schema&&t.schema.options&&t.schema.options.discriminatorKey){if(typeof e[t.schema.options.discriminatorKey]==="string"&&t.discriminators[e[t.schema.options.discriminatorKey]]){t=t.discriminators[e[t.schema.options.discriminatorKey]]}else{const r=a(t.discriminators,e[t.schema.options.discriminatorKey]);if(r){t=r}}}return new t(e,this)}, /*! * ignore */ notify(e){const t=this;return function notify(r,n){n=n||t;let i=n.length;while(i--){if(n[i]==null){continue}switch(e){case"save":r=t[i];break;default:break}if(c.isMongooseArray(n[i])){notify(r,n[i])}else if(n[i]){n[i].emit(e,r)}}}},set(e,t,r){const n=this.__array;if(r){n[e]=t;return this}const i=g._cast.call(this,t,e);n[e]=i;g._markModified.call(this,e);return this},_markModified(e,t){const r=this[l];let n;if(r){n=this[d];if(arguments.length){if(t!=null){const r=e.__index;n=n+"."+r+"."+t}else{n=n+"."+e}}if(n!=null&&n.endsWith(".$")){return this}r.markModified(n,arguments.length!==0?e:r)}return this}};e.exports=g; /*! * If this is a document array, each element may contain single * populated paths, so we need to modify the top-level document's * populated cache. See gh-8247, gh-8265. */function _updateParentPopulated(e){const t=e[l];if(!t||t.$__.populated==null)return;const r=Object.keys(t.$__.populated).filter((t=>t.startsWith(e[d]+".")));for(const n of r){const r=n.slice((e[d]+".").length);if(!Array.isArray(t.$__.populated[n].value)){continue}t.$__.populated[n].value=e.map((e=>e.$populated(r)))}}},75484:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(30754);const i=r(90624);const o=r(63241).arrayAtomicsSymbol;const s=r(63241).arrayAtomicsBackupSymbol;const a=r(63241).arrayParentSymbol;const u=r(63241).arrayPathSymbol;const c=r(63241).arraySchemaSymbol;const l=Array.prototype.push;const d=/^\d+$/;function MongooseArray(e,t,r,h){let m;if(Array.isArray(e)){const t=e.length;if(t===0){m=new Array}else if(t===1){m=new Array(1);m[0]=e[0]}else if(t<1e4){m=new Array;l.apply(m,e)}else{m=new Array;for(let r=0;r{"use strict";t.isMongooseArray=function(e){return Array.isArray(e)&&e.isMongooseArray}},90624:(e,t,r)=>{"use strict";const n=r(30754);const i=r(21545);const o=r(50598);const s=r(69078);const a=r(47339);const u=r(6709);const c=r(28561).h;const l=r(52492);const d=r(63241).arrayAtomicsSymbol;const h=r(63241).arrayParentSymbol;const m=r(63241).arrayPathSymbol;const g=r(63241).arraySchemaSymbol;const y=r(63241).populateModelSymbol;const v=Symbol("mongoose#Array#sliced");const b=Array.prototype.push; /*! * ignore */const _={$__getAtomics(){const e=[];const t=Object.keys(this[d]||{});let r=t.length;const n=Object.assign({},c,{_isNested:true});if(r===0){e[0]=["$set",this.toObject(n)];return e}while(r--){const i=t[r];let o=this[d][i];if(l.isMongooseObject(o)){o=o.toObject(n)}else if(Array.isArray(o)){o=this.toObject.call(o,n)}else if(o!=null&&Array.isArray(o.$each)){o.$each=this.toObject.call(o.$each,n)}else if(o!=null&&typeof o.valueOf==="function"){o=o.valueOf()}if(i==="$addToSet"){o={$each:o}}e.push([i,o])}return e}, /*! * ignore */ $atomics(){return this[d]}, /*! * ignore */ $parent(){return this[h]}, /*! * ignore */ $path(){return this[m]},$shift(){this._registerAtomic("$pop",-1);this._markModified();if(this._shifted){return}this._shifted=true;return[].shift.call(this)},$pop(){this._registerAtomic("$pop",1);this._markModified();if(this._popped){return}this._popped=true;return[].pop.call(this)}, /*! * ignore */ $schema(){return this[g]},_cast(e){let t=false;let r;const n=this[h];if(n){t=n.$populated(this[m],true)}if(t&&e!==null&&e!==undefined){r=t.options[y];if(Buffer.isBuffer(e)||e instanceof s||!l.isObject(e)){e={_id:e}}const i=e.schema&&e.schema.discriminatorMapping&&e.schema.discriminatorMapping.key!==undefined;if(!i){e=new r(e)}return this[g].caster.applySetters(e,n,true)}return this[g].caster.applySetters(e,n,false)},_mapCast(e,t){return this._cast(e,this.length+t)},_markModified(e){const t=this[h];let r;if(t){r=this[m];if(arguments.length){r=r+"."+e}if(r!=null&&r.endsWith(".$")){return this}t.markModified(r,arguments.length!==0?e:t)}return this},_registerAtomic(e,t){if(this[v]){return}if(e==="$set"){this[d]={$set:t};a(this[h],this[m]);this._markModified();return this}const r=this[d];if(e==="$pop"&&!("$pop"in r)){const e=this;this[h].once("save",(function(){e._popped=e._shifted=null}))}if(r.$set||Object.keys(r).length&&!(e in r)){this[d]={$set:this};return this}let n;if(e==="$pullAll"||e==="$addToSet"){r[e]||(r[e]=[]);r[e]=r[e].concat(t)}else if(e==="$pullDocs"){const e=r["$pull"]||(r["$pull"]={});if(t[0]instanceof i){n=e["$or"]||(e["$or"]=[]);Array.prototype.push.apply(n,t.map((function(e){return e.toObject({transform:false,virtuals:false})})))}else{n=e["_id"]||(e["_id"]={$in:[]});n["$in"]=n["$in"].concat(t)}}else if(e==="$push"){r.$push=r.$push||{$each:[]};if(t!=null&&l.hasUserDefinedProperty(t,"$each")){r.$push=t}else{r.$push.$each=r.$push.$each.concat(t)}}else{r[e]=t}return this},addToSet(){_checkManualPopulation(this,arguments);let e=[].map.call(arguments,this._mapCast,this);e=this[g].applySetters(e,this[h]);const t=[];let r="";if(e[0]instanceof i){r="doc"}else if(e[0]instanceof Date){r="date"}const n=l.isMongooseArray(e)?e.__array:this;const o=l.isMongooseArray(this)?this.__array:this;n.forEach((function(e){let n;const i=+e;switch(r){case"doc":n=this.some((function(t){return t.equals(e)}));break;case"date":n=this.some((function(e){return+e===i}));break;default:n=~this.indexOf(e)}if(!n){o.push(e);this._registerAtomic("$addToSet",e);this._markModified();[].push.call(t,e)}}),this);return t},hasAtomics(){if(!l.isPOJO(this[d])){return 0}return Object.keys(this[d]).length},includes(e,t){const r=this.indexOf(e,t);return r!==-1},indexOf(e,t){if(e instanceof s){e=e.toString()}t=t==null?0:t;const r=this.length;for(let n=t;n0){this._registerAtomic("$set",this)}return this},push(){let e=arguments;let t=e;const r=e[0]!=null&&l.hasUserDefinedProperty(e[0],"$each");const n=l.isMongooseArray(this)?this.__array:this;if(r){t=e[0];e=e[0].$each}if(this[g]==null){return b.apply(this,e)}_checkManualPopulation(this,e);const i=this[h];e=[].map.call(e,this._mapCast,this);e=this[g].applySetters(e,i,undefined,undefined,{skipDocumentArrayCast:true});let s;const a=this[d];if(r){t.$each=e;if(u(a,"$push.$each.length",0)>0&&a.$push.$position!=t.$position){throw new o("Cannot call `Array#push()` multiple times "+"with different `$position`")}if(t.$position!=null){[].splice.apply(n,[t.$position,0].concat(e));s=this.length}else{s=[].push.apply(n,e)}}else{if(u(a,"$push.$each.length",0)>0&&a.$push.$position!=null){throw new o("Cannot call `Array#push()` multiple times "+"with different `$position`")}t=e;s=[].push.apply(n,e)}this._registerAtomic("$push",t);this._markModified();return s},remove(){return this.pull.apply(this,arguments)},set(e,t,r){const n=this.__array;if(r){n[e]=t;return this}const i=_._cast.call(this,t,e);n[e]=i;_._markModified.call(this,e);return this},shift(){const e=l.isMongooseArray(this)?this.__array:this;const t=[].shift.call(e);this._registerAtomic("$set",this);this._markModified();return t},sort(){const e=l.isMongooseArray(this)?this.__array:this;const t=[].sort.apply(e,arguments);this._registerAtomic("$set",this);return t},splice(){let e;const t=l.isMongooseArray(this)?this.__array:this;_checkManualPopulation(this,Array.prototype.slice.call(arguments,2));if(arguments.length){let r;if(this[g]==null){r=arguments}else{r=[];for(let e=0;e{"use strict"; /*! * Module dependencies. */const n=r(71243).get().Binary;const i=r(52492);function MongooseBuffer(e,t,r){let n=e;if(e==null){n=0}let o;let a;let u;if(Array.isArray(t)){a=t[0];u=t[1]}else{o=t}let c;if(typeof n==="number"||n instanceof Number){c=Buffer.alloc(n)}else{c=Buffer.from(n,o,r)}i.decorate(c,MongooseBuffer.mixin);c.isMongooseBuffer=true;c[MongooseBuffer.pathSymbol]=a;c[s]=u;c._subtype=0;return c}const o=Symbol.for("mongoose#Buffer#_path");const s=Symbol.for("mongoose#Buffer#_parent");MongooseBuffer.pathSymbol=o; /*! * Inherit from Buffer. */MongooseBuffer.mixin={_subtype:undefined,_markModified:function(){const e=this[s];if(e){e.markModified(this[MongooseBuffer.pathSymbol])}return this},write:function(){const e=Buffer.prototype.write.apply(this,arguments);if(e>0){this._markModified()}return e},copy:function(e){const t=Buffer.prototype.copy.apply(this,arguments);if(e&&e.isMongooseBuffer){e._markModified()}return t}}; /*! * Compile other Buffer methods marking this buffer as modified. */("writeUInt8 writeUInt16 writeUInt32 writeInt8 writeInt16 writeInt32 "+"writeFloat writeDouble fill "+"utf8Write binaryWrite asciiWrite set "+"writeUInt16LE writeUInt16BE writeUInt32LE writeUInt32BE "+"writeInt16LE writeInt16BE writeInt32LE writeInt32BE "+"writeFloatLE writeFloatBE writeDoubleLE writeDoubleBE").split(" ").forEach((function(e){if(!Buffer.prototype[e]){return}MongooseBuffer.mixin[e]=function(){const t=Buffer.prototype[e].apply(this,arguments);this._markModified();return t}}));MongooseBuffer.mixin.toObject=function(e){const t=typeof e==="number"?e:this._subtype||0;return new n(Buffer.from(this),t)};MongooseBuffer.mixin.$toObject=MongooseBuffer.mixin.toObject;MongooseBuffer.mixin.toBSON=function(){return new n(this,this._subtype||0)};MongooseBuffer.mixin.equals=function(e){if(!Buffer.isBuffer(e)){return false}if(this.length!==e.length){return false}for(let t=0;t{"use strict";e.exports=r(71243).get().Decimal128},49122:(e,t,r)=>{"use strict"; /*! * Module exports. */t.Array=r(75484);t.Buffer=r(13789);t.Document=t.Embedded=r(21545);t.DocumentArray=r(99211);t.Decimal128=r(43890);t.ObjectId=r(69078);t.Map=r(87325);t.Subdocument=r(10094)},87325:(e,t,r)=>{"use strict";const n=r(9902);const i=r(69078);const o=r(48546);const s=r(52492).deepEqual;const a=r(6709);const u=r(55716);const c=r(31038);const l=r(73837);const d=r(47383);const h=r(63241).populateModelSymbol; /*! * ignore */class MongooseMap extends Map{constructor(e,t,r,i){if(u(e)==="Object"){e=Object.keys(e).reduce(((t,r)=>t.concat([[r,e[r]]])),[])}super(e);this.$__parent=r!=null&&r.$__!=null?r:null;this.$__path=t;this.$__schemaType=i==null?new n(t):i;this.$__runDeferred()}$init(e,t){checkValidKey(e);super.set(e,t);if(t!=null&&t.$isSingleNested){t.$basePath=this.$__path+"."+e}}$__set(e,t){super.set(e,t)}get(e,t){if(e instanceof i){e=e.toString()}t=t||{};if(t.getters===false){return super.get(e)}return this.$__schemaType.applyGetters(super.get(e),this.$__parent)}set(e,t){if(e instanceof i){e=e.toString()}checkValidKey(e);t=c(t);if(this.$__schemaType==null){this.$__deferred=this.$__deferred||[];this.$__deferred.push({key:e,value:t});return}const r=this.$__path+"."+e;const n=this.$__parent!=null&&this.$__parent.$__?this.$__parent.$populated(r)||this.$__parent.$populated(this.$__path):null;const o=this.get(e);if(n!=null){if(t.$__==null){t=new n.options[h](t)}t.$__.wasPopulated=true}else{try{t=this.$__schemaType.applySetters(t,this.$__parent,false,this.get(e),{path:r})}catch(e){if(this.$__parent!=null&&this.$__parent.$__!=null){this.$__parent.invalidate(r,e);return}throw e}}super.set(e,t);if(t!=null&&t.$isSingleNested){t.$basePath=this.$__path+"."+e}const a=this.$__parent;if(a!=null&&a.$__!=null&&!s(t,o)){a.markModified(this.$__path+"."+e)}}clear(){super.clear();const e=this.$__parent;if(e!=null){e.markModified(this.$__path)}}delete(e){if(e instanceof i){e=e.toString()}this.set(e,undefined);super.delete(e)}toBSON(){return new Map(this)}toObject(e){if(a(e,"flattenMaps")){const t={};const r=this.keys();for(const n of r){t[n]=o(this.get(n),e)}return t}return new Map(this)}$toObject(){return this.constructor.prototype.toObject.apply(this,arguments)}toJSON(e){if(a(e,"flattenMaps",true)){const t={};const r=this.keys();for(const n of r){t[n]=o(this.get(n),e)}return t}return new Map(this)}inspect(){return new Map(this)}$__runDeferred(){if(!this.$__deferred){return}for(const e of this.$__deferred){this.set(e.key,e.value)}this.$__deferred=null}}if(l.inspect.custom){Object.defineProperty(MongooseMap.prototype,l.inspect.custom,{enumerable:false,writable:false,configurable:false,value:MongooseMap.prototype.inspect})}Object.defineProperty(MongooseMap.prototype,"$__set",{enumerable:false,writable:true,configurable:false});Object.defineProperty(MongooseMap.prototype,"$__parent",{enumerable:false,writable:true,configurable:false});Object.defineProperty(MongooseMap.prototype,"$__path",{enumerable:false,writable:true,configurable:false});Object.defineProperty(MongooseMap.prototype,"$__schemaType",{enumerable:false,writable:true,configurable:false});Object.defineProperty(MongooseMap.prototype,"$isMongooseMap",{enumerable:false,writable:false,configurable:false,value:true});Object.defineProperty(MongooseMap.prototype,"$__deferredCalls",{enumerable:false,writable:false,configurable:false,value:true}); /*! * Since maps are stored as objects under the hood, keys must be strings * and can't contain any invalid characters */function checkValidKey(e){const t=typeof e;if(t!=="string"){throw new TypeError(`Mongoose maps only support string keys, got ${t}`)}if(e.startsWith("$")){throw new Error(`Mongoose maps do not support keys that start with "$", got "${e}"`)}if(e.includes(".")){throw new Error(`Mongoose maps do not support keys that contain ".", got "${e}"`)}if(d.has(e)){throw new Error(`Mongoose maps do not support reserved key name "${e}"`)}}e.exports=MongooseMap},69078:(e,t,r)=>{"use strict";const n=r(71243).get().ObjectId;const i=r(63241).objectIdSymbol; /*! * Getter for convenience with populate, see gh-6115 */Object.defineProperty(n.prototype,"_id",{enumerable:false,configurable:true,get:function(){return this}}); /*! * Convenience `valueOf()` to allow comparing ObjectIds using double equals re: gh-7299 */if(!n.prototype.hasOwnProperty("valueOf")){n.prototype.valueOf=function objectIdValueOf(){return this.toString()}}n.prototype[i]=true;e.exports=n},10094:(e,t,r)=>{"use strict";const n=r(30754);const i=r(64248);const o=r(28561).h;const s=r(43607);const a=r(73837);const u=r(52492);e.exports=Subdocument;function Subdocument(e,t,r,i,o){if(r!=null){const e={isNew:r.isNew};if("defaults"in r.$__){e.defaults=r.$__.defaults}o=Object.assign(e,o)}if(o!=null&&o.path!=null){this.$basePath=o.path}n.call(this,e,t,i,o);delete this.$__.priorDoc}Subdocument.prototype=Object.create(n.prototype);Object.defineProperty(Subdocument.prototype,"$isSubdocument",{configurable:false,writable:false,value:true});Object.defineProperty(Subdocument.prototype,"$isSingleNested",{configurable:false,writable:false,value:true}); /*! * ignore */Subdocument.prototype.toBSON=function(){return this.toObject(o)};Subdocument.prototype.save=function(e,t){if(typeof e==="function"){t=e;e={}}e=e||{};if(!e.suppressWarning){u.warn("mongoose: calling `save()` on a subdoc does **not** save "+"the document to MongoDB, it only runs save middleware. "+"Use `subdoc.save({ suppressWarning: true })` to hide this warning "+"if you're sure this behavior is right for your app.")}return s(t,(e=>{this.$__save(e)}))}; /*! * Given a path relative to this document, return the path relative * to the top-level document. */Subdocument.prototype.$__fullPath=function(e){if(!this.$__.fullPath){this.ownerDocument()}return e?this.$__.fullPath+"."+e:this.$__.fullPath}; /*! * Given a path relative to this document, return the path relative * to the top-level document. */Subdocument.prototype.$__pathRelativeToParent=function(e){if(e==null){return this.$basePath}return[this.$basePath,e].join(".")};Subdocument.prototype.$__save=function(e){return i((()=>e(null,this)))}; /*! * ignore */Subdocument.prototype.$isValid=function(e){const t=this.$parent();const r=this.$__pathRelativeToParent(e);if(t!=null&&r!=null){return t.$isValid(r)}return n.prototype.$isValid.call(this,e)}; /*! * ignore */Subdocument.prototype.markModified=function(e){n.prototype.markModified.call(this,e);const t=this.$parent();const r=this.$__pathRelativeToParent(e);if(t==null||r==null){return}const i=this.$__pathRelativeToParent().replace(/\.$/,"");if(t.isDirectModified(i)||this.isNew){return}this.$__parent.markModified(r,this)}; /*! * ignore */Subdocument.prototype.isModified=function(e,t){const r=this.$parent();if(r!=null){if(Array.isArray(e)||typeof e==="string"){e=Array.isArray(e)?e:e.split(" ");e=e.map((e=>this.$__pathRelativeToParent(e))).filter((e=>e!=null))}else if(!e){e=this.$__pathRelativeToParent()}return r.$isModified(e,t)}return n.prototype.isModified.call(this,e,t)};Subdocument.prototype.$markValid=function(e){n.prototype.$markValid.call(this,e);const t=this.$parent();const r=this.$__pathRelativeToParent(e);if(t!=null&&r!=null){t.$markValid(r)}}; /*! * ignore */Subdocument.prototype.invalidate=function(e,t,r){n.prototype.invalidate.call(this,e,t,r);const i=this.$parent();const o=this.$__pathRelativeToParent(e);if(i!=null&&o!=null){i.invalidate(o,t,r)}else if(t.kind==="cast"||t.name==="CastError"||o==null){throw t}return this.ownerDocument().$__.validationError}; /*! * ignore */Subdocument.prototype.$ignore=function(e){n.prototype.$ignore.call(this,e);const t=this.$parent();const r=this.$__pathRelativeToParent(e);if(t!=null&&r!=null){t.$ignore(r)}};Subdocument.prototype.ownerDocument=function(){if(this.$__.ownerDocument){return this.$__.ownerDocument}let e=this;const t=[];const r=new Set([e]);while(true){if(typeof e.$__pathRelativeToParent!=="function"){break}t.unshift(e.$__pathRelativeToParent(void 0,true));const n=e.$parent();if(n==null){break}e=n;if(r.has(e)){throw new Error("Infinite subdocument loop: subdoc with _id "+e._id+" is a parent of itself")}r.add(e)}this.$__.fullPath=t.join(".");this.$__.ownerDocument=e;return this.$__.ownerDocument};Subdocument.prototype.parent=function(){return this.$__parent};Subdocument.prototype.$parent=Subdocument.prototype.parent; /*! * no-op for hooks */Subdocument.prototype.$__remove=function(e){if(e==null){return}return e(null,this)};Subdocument.prototype.$__removeFromParent=function(){this.$__parent.set(this.$basePath,null)};Subdocument.prototype.remove=function(e,t){if(typeof e==="function"){t=e;e=null}registerRemoveListener(this);if(!e||!e.noop){this.$__removeFromParent()}return this.$__remove(t)}; /*! * ignore */Subdocument.prototype.populate=function(){throw new Error("Mongoose does not support calling populate() on nested "+'docs. Instead of `doc.nested.populate("path")`, use '+'`doc.populate("nested.path")`')};Subdocument.prototype.inspect=function(){return this.toObject({transform:false,virtuals:false,flattenDecimals:false})};if(a.inspect.custom){ /*! * Avoid Node deprecation warning DEP0079 */ Subdocument.prototype[a.inspect.custom]=Subdocument.prototype.inspect} /*! * Registers remove event listeners for triggering * on subdocuments. * * @param {Subdocument} sub * @api private */function registerRemoveListener(e){let t=e.ownerDocument();function emitRemove(){t.$removeListener("save",emitRemove);t.$removeListener("remove",emitRemove);e.emit("remove",e);e.constructor.emit("remove",e);t=e=null}t.$on("save",emitRemove);t.$on("remove",emitRemove)}},52492:(e,t,r)=>{"use strict"; /*! * Module dependencies. */const n=r(86975);const i=r(22522);const o=r(43890);const s=r(69078);const a=r(6078);const u=r(48546);const c=r(64248);const l=r(65295);const d=r(50125);const h=r(33677);const m=r(94855);const g=r(27522);const y=r(14637);const v=r(43607);const b=r(86021);const _=r(47383);const{trustedSymbol:E}=r(92973);let k;t.specialProperties=_;t.isMongooseArray=d.isMongooseArray;t.isMongooseDocumentArray=h.isMongooseDocumentArray;t.registerMongooseArray=d.registerMongooseArray;t.registerMongooseDocumentArray=h.registerMongooseDocumentArray; /*! * Produces a collection name from model `name`. By default, just returns * the model name * * @param {String} name a model name * @param {Function} pluralize function that pluralizes the collection name * @return {String} a collection name * @api private */t.toCollectionName=function(e,t){if(e==="system.profile"){return e}if(e==="system.indexes"){return e}if(typeof t==="function"){return t(e)}return e}; /*! * Determines if `a` and `b` are deep equal. * * Modified from node/lib/assert.js * * @param {any} a a value to compare to `b` * @param {any} b a value to compare to `a` * @return {Boolean} * @api private */t.deepEqual=function deepEqual(e,r){if(e===r){return true}if(typeof e!=="object"&&typeof r!=="object"){return e===r}if(e instanceof Date&&r instanceof Date){return e.getTime()===r.getTime()}if(m(e,"ObjectID")&&m(r,"ObjectID")||m(e,"Decimal128")&&m(r,"Decimal128")){return e.toString()===r.toString()}if(e instanceof RegExp&&r instanceof RegExp){return e.source===r.source&&e.ignoreCase===r.ignoreCase&&e.multiline===r.multiline&&e.global===r.global&&e.dotAll===r.dotAll&&e.unicode===r.unicode&&e.sticky===r.sticky&&e.hasIndices===r.hasIndices}if(e==null||r==null){return false}if(e.prototype!==r.prototype){return false}if(e instanceof Map&&r instanceof Map){return deepEqual(Array.from(e.keys()),Array.from(r.keys()))&&deepEqual(Array.from(e.values()),Array.from(r.values()))}if(e instanceof Number&&r instanceof Number){return e.valueOf()===r.valueOf()}if(Buffer.isBuffer(e)){return t.buffer.areEqual(e,r)}if(Array.isArray(e)&&Array.isArray(r)){const t=e.length;if(t!==r.length){return false}for(let n=0;n=0;e--){if(n[e]!==i[e]){return false}}for(const t of n){if(!deepEqual(e[t],r[t])){return false}}return true}; /*! * Get the last element of an array */t.last=function(e){if(e.length>0){return e[e.length-1]}return void 0};t.clone=u; /*! * ignore */t.promiseOrCallback=v; /*! * ignore */t.cloneArrays=function cloneArrays(e){if(!Array.isArray(e)){return e}return e.map((e=>t.cloneArrays(e)))}; /*! * ignore */t.omit=function omit(e,t){if(t==null){return Object.assign({},e)}if(!Array.isArray(t)){t=[t]}const r=Object.assign({},e);for(const e of t){delete r[e]}return r}; /*! * Shallow copies defaults into options. * * @param {Object} defaults * @param {Object} options * @return {Object} the merged object * @api private */t.options=function(e,t){const r=Object.keys(e);let n=r.length;let i;t=t||{};while(n--){i=r[n];if(!(i in t)){t[i]=e[i]}}return t}; /*! * Merges `from` into `to` without overwriting existing properties. * * @param {Object} to * @param {Object} from * @api private */t.merge=function merge(e,r,n,i){n=n||{};const o=Object.keys(r);let a=0;const u=o.length;let c;if(r[E]){e[E]=r[E]}i=i||"";const l=n.omitNested||{};while(at.populate(e)[0]))}if(t.isObject(e)){l=Object.assign({},e)}else{l={path:e}}}else if(typeof n==="object"){l={path:e,select:r,match:n,options:i}}else{l={path:e,select:r,model:n,match:i,options:o,populate:s,justOne:u,count:c}}if(typeof l.path!=="string"){throw new TypeError("utils.populate: invalid path. Expected string. Got typeof `"+typeof e+"`")}return _populateObj(l);function makeSingles(e){const t=[];e.forEach((function(e){if(/[\s]/.test(e.path)){const r=e.path.split(" ");r.forEach((function(r){const n=Object.assign({},e);n.path=r;t.push(n)}))}else{t.push(e)}}));return t}};function _populateObj(e){if(Array.isArray(e.populate)){const r=[];e.populate.forEach((function(e){if(/[\s]/.test(e.path)){const n=Object.assign({},e);const i=n.path.split(" ");i.forEach((function(e){n.path=e;r.push(t.populate(n)[0])}))}else{r.push(t.populate(e)[0])}}));e.populate=t.populate(r)}else if(e.populate!=null&&typeof e.populate==="object"){e.populate=t.populate(e.populate)}const r=[];const n=e.path.split(" ");if(e.options!=null){e.options=t.clone(e.options)}for(const t of n){r.push(new a(Object.assign({},e,{path:t})))}return r} /*! * Return the value of `obj` at the given `path`. * * @param {String} path * @param {Object} obj */t.getValue=function(e,t,r){return i.get(e,t,"_doc",r)}; /*! * Sets the value of `obj` at the given `path`. * * @param {String} path * @param {Anything} val * @param {Object} obj */t.setValue=function(e,t,r,n,o){i.set(e,t,r,"_doc",n,o)}; /*! * Returns an array of values from object `o`. * * @param {Object} o * @return {Array} * @private */t.object={};t.object.vals=function vals(e){const t=Object.keys(e);let r=t.length;const n=[];while(r--){n.push(e[t[r]])}return n}; /*! * @see exports.options */t.object.shallowCopy=t.options; /*! * Safer helper for hasOwnProperty checks * * @param {Object} obj * @param {String} prop */const x=Object.prototype.hasOwnProperty;t.object.hasOwnProperty=function(e,t){return x.call(e,t)}; /*! * Determine if `val` is null or undefined * * @return {Boolean} */t.isNullOrUndefined=function(e){return e===null||e===undefined}; /*! * ignore */t.array={}; /*! * Flattens an array. * * [ 1, [ 2, 3, [4] ]] -> [1,2,3,4] * * @param {Array} arr * @param {Function} [filter] If passed, will be invoked with each item in the array. If `filter` returns a falsy value, the item will not be included in the results. * @return {Array} * @private */t.array.flatten=function flatten(e,t,r){r||(r=[]);e.forEach((function(e){if(Array.isArray(e)){flatten(e,t,r)}else{if(!t||t(e)){r.push(e)}}}));return r}; /*! * ignore */const C=Object.prototype.hasOwnProperty;t.hasUserDefinedProperty=function(e,r){if(e==null){return false}if(Array.isArray(r)){for(const n of r){if(t.hasUserDefinedProperty(e,n)){return true}}return false}if(C.call(e,r)){return true}if(typeof e==="object"&&r in e){const t=e[r];return t!==Object.prototype[r]&&t!==Array.prototype[r]}return false}; /*! * ignore */const O=Math.pow(2,32)-1;t.isArrayIndex=function(e){if(typeof e==="number"){return e>=0&&e<=O}if(typeof e==="string"){if(!/^\d+$/.test(e)){return false}e=+e;return e>=0&&e<=O}return false}; /*! * Removes duplicate values from an array * * [1, 2, 3, 3, 5] => [1, 2, 3, 5] * [ ObjectId("550988ba0c19d57f697dc45e"), ObjectId("550988ba0c19d57f697dc45e") ] * => [ObjectId("550988ba0c19d57f697dc45e")] * * @param {Array} arr * @return {Array} * @private */t.array.unique=function(e){const t=new Set;const r=new Set;const n=[];for(const i of e){if(typeof i==="number"||typeof i==="string"||i==null){if(t.has(i)){continue}n.push(i);t.add(i)}else if(i instanceof s){if(r.has(i.toString())){continue}n.push(i);r.add(i.toString())}else{n.push(i)}}return n}; /*! * Determines if two buffers are equal. * * @param {Buffer} a * @param {Object} b */t.buffer={};t.buffer.areEqual=function(e,t){if(!Buffer.isBuffer(e)){return false}if(!Buffer.isBuffer(t)){return false}if(e.length!==t.length){return false}for(let r=0,n=e.length;r{"use strict"; /*! * Valid mongoose options */const t=Object.freeze(["applyPluginsToChildSchemas","applyPluginsToDiscriminators","autoCreate","autoIndex","bufferCommands","bufferTimeoutMS","cloneSchemas","debug","maxTimeMS","objectIdGetter","overwriteModels","returnOriginal","runValidators","sanitizeFilter","sanitizeProjection","selectPopulatedPaths","setDefaultsOnInsert","strict","strictPopulate","strictQuery","toJSON","toObject"]);e.exports=t},94198:(e,t,r)=>{"use strict";const n=r(52492);function VirtualType(e,t){this.path=t;this.getters=[];this.setters=[];this.options=Object.assign({},e)}VirtualType.prototype._applyDefaultGetters=function(){if(this.getters.length>0||this.setters.length>0){return}const e=this.path;const t="$"+e;this.getters.push((function(){return this[t]}));this.setters.push((function(e){this[t]=e}))}; /*! * ignore */VirtualType.prototype.clone=function(){const e=new VirtualType(this.options,this.path);e.getters=[].concat(this.getters);e.setters=[].concat(this.setters);return e};VirtualType.prototype.get=function(e){this.getters.push(e);return this};VirtualType.prototype.set=function(e){this.setters.push(e);return this};VirtualType.prototype.applyGetters=function(e,t){if(n.hasUserDefinedProperty(this.options,["ref","refPath"])&&t.$$populatedVirtuals&&t.$$populatedVirtuals.hasOwnProperty(this.path)){e=t.$$populatedVirtuals[this.path]}let r=e;for(const e of this.getters){r=e.call(t,r,this,t)}return r};VirtualType.prototype.applySetters=function(e,t){let r=e;for(const e of this.setters){r=e.call(t,r,this,t)}return r}; /*! * exports */e.exports=VirtualType},22522:(e,t,r)=>{"use strict";e.exports=t=r(64901)},64901:(e,t,r)=>{var n=r(74484);var i=["__proto__","constructor","prototype"];t.get=function(e,r,i,o){var s;if("function"==typeof i){if(i.length<2){o=i;i=undefined}else{s=i;i=undefined}}o||(o=K);var a="string"==typeof e?n(e):e;if(!Array.isArray(a)){throw new TypeError("Invalid `path`. Must be either string or array")}var u=r,c;for(var l=0;l{"use strict";e.exports=function stringToParts(e){const t=[];let r="";let n="DEFAULT";for(let i=0;i{"use strict";const r=["find","findOne","update","updateMany","updateOne","replaceOne","remove","count","distinct","findOneAndDelete","findOneAndUpdate","aggregate","findCursor","deleteOne","deleteMany"];function Collection(){}for(let e=0,t=r.length;e{"use strict";const n=r(89376);if("unknown"==n.type){throw new Error("Unknown environment")}e.exports=n.isNode?r(65446):n.isMongo?r(36617):r(36617)},65446:(e,t,r)=>{"use strict";const n=r(36617);class NodeCollection extends n{constructor(e){super();this.collection=e;this.collectionName=e.collectionName}find(e,t,r){const n=this.collection.find(e,t);try{n.toArray(r)}catch(e){r(e)}}findOne(e,t,r){this.collection.findOne(e,t,r)}count(e,t,r){this.collection.count(e,t,r)}distinct(e,t,r,n){this.collection.distinct(e,t,r,n)}update(e,t,r,n){this.collection.update(e,t,r,n)}updateMany(e,t,r,n){this.collection.updateMany(e,t,r,n)}updateOne(e,t,r,n){this.collection.updateOne(e,t,r,n)}replaceOne(e,t,r,n){this.collection.replaceOne(e,t,r,n)}deleteOne(e,t,r){this.collection.deleteOne(e,t,r)}deleteMany(e,t,r){this.collection.deleteMany(e,t,r)}remove(e,t,r){this.collection.remove(e,t,r)}findOneAndDelete(e,t,r){this.collection.findOneAndDelete(e,t,r)}findOneAndUpdate(e,t,r,n){this.collection.findOneAndUpdate(e,t,r,n)}findCursor(e,t){return this.collection.find(e,t)}}e.exports=t=NodeCollection},89376:(e,t)=>{"use strict";t.isNode="undefined"!=typeof process&&"object"=="object"&&"object"==typeof global&&"function"==typeof Buffer&&process.argv;t.isMongo=!t.isNode&&"function"==typeof printjson&&"function"==typeof ObjectId&&"function"==typeof rs&&"function"==typeof sh;t.isBrowser=!t.isNode&&!t.isMongo&&"undefined"!=typeof window;t.type=t.isNode?"node":t.isMongo?"mongo":t.isBrowser?"browser":"unknown"},50231:(e,t,r)=>{"use strict";const n=r(39491);const i=r(73837);const o=r(60336);const s=r(71933)("mquery");function Query(e,t){if(!(this instanceof Query))return new Query(e,t);const r=this.constructor.prototype;this.op=r.op||undefined;this.options=Object.assign({},r.options);this._conditions=r._conditions?o.clone(r._conditions):{};this._fields=r._fields?o.clone(r._fields):undefined;this._update=r._update?o.clone(r._update):undefined;this._path=r._path||undefined;this._distinct=r._distinct||undefined;this._collection=r._collection||undefined;this._traceFunction=r._traceFunction||undefined;if(t){this.setOptions(t)}if(e){if(e.find&&e.remove&&e.update){this.collection(e)}else{this.find(e)}}}let a="$geoWithin";Object.defineProperty(Query,"use$geoWithin",{get:function(){return a=="$geoWithin"},set:function(e){if(true===e){a="$geoWithin"}else{a="$within"}}});Query.prototype.toConstructor=function toConstructor(){function CustomQuery(e,t){if(!(this instanceof CustomQuery))return new CustomQuery(e,t);Query.call(this,e,t)}o.inherits(CustomQuery,Query);const e=CustomQuery.prototype;e.options={};e.setOptions(this.options);e.op=this.op;e._conditions=o.clone(this._conditions);e._fields=o.clone(this._fields);e._update=o.clone(this._update);e._path=this._path;e._distinct=this._distinct;e._collection=this._collection;e._traceFunction=this._traceFunction;return CustomQuery};Query.prototype.setOptions=function(e){if(!(e&&o.isObject(e)))return this;const t=o.keys(e);let r;for(let n=0;n");e.sort.set(r,n)}))} /*! * limit, skip, maxScan, batchSize, comment * * Sets these associated options. * * query.comment('feed query'); */["limit","skip","maxScan","batchSize","comment"].forEach((function(e){Query.prototype[e]=function(t){this._validate(e);this.options[e]=t;return this}}));Query.prototype.maxTime=Query.prototype.maxTimeMS=function(e){this._validate("maxTime");this.options.maxTimeMS=e;return this};Query.prototype.snapshot=function(){this._validate("snapshot");this.options.snapshot=arguments.length?!!arguments[0]:true;return this};Query.prototype.hint=function(){if(0===arguments.length)return this;this._validate("hint");const e=arguments[0];if(o.isObject(e)){const t=this.options.hint||(this.options.hint={});for(const r in e){t[r]=e[r]}return this}if(typeof e==="string"){this.options.hint=e;return this}throw new TypeError("Invalid hint. "+e)};Query.prototype.j=function j(e){this.options.j=e;return this};Query.prototype.slaveOk=function(e){this.options.slaveOk=arguments.length?!!e:true;return this};Query.prototype.read=Query.prototype.setReadPreference=function(e){if(arguments.length>1&&!Query.prototype.read.deprecationWarningIssued){console.error("Deprecation warning: 'tags' argument is not supported anymore in Query.read() method. Please use mongodb.ReadPreference object instead.");Query.prototype.read.deprecationWarningIssued=true}this.options.readPreference=o.readPref(e);return this};Query.prototype.readConcern=Query.prototype.r=function(e){this.options.readConcern=o.readConcern(e);return this};Query.prototype.tailable=function(){this._validate("tailable");this.options.tailable=arguments.length?!!arguments[0]:true;return this};Query.prototype.writeConcern=Query.prototype.w=function writeConcern(e){if("object"===typeof e){if("undefined"!==typeof e.j)this.options.j=e.j;if("undefined"!==typeof e.w)this.options.w=e.w;if("undefined"!==typeof e.wtimeout)this.options.wtimeout=e.wtimeout}else{this.options.w="m"===e?"majority":e}return this};Query.prototype.wtimeout=Query.prototype.wTimeout=function wtimeout(e){this.options.wtimeout=e;return this};Query.prototype.merge=function(e){if(!e)return this;if(!Query.canMerge(e))throw new TypeError("Invalid argument. Expected instanceof mquery or plain object");if(e instanceof Query){if(e._conditions){o.merge(this._conditions,e._conditions)}if(e._fields){this._fields||(this._fields={});o.merge(this._fields,e._fields)}if(e.options){this.options||(this.options={});o.merge(this.options,e.options)}if(e._update){this._update||(this._update={});o.mergeClone(this._update,e._update)}if(e._distinct){this._distinct=e._distinct}return this}o.merge(this._conditions,e);return this};Query.prototype.find=function(e,t){this.op="find";if("function"===typeof e){t=e;e=undefined}else if(Query.canMerge(e)){this.merge(e)}if(!t)return this;const r=this._conditions;const n=this._optionsForExec();if(this.$useProjection){n.projection=this._fieldsForExec()}else{n.fields=this._fieldsForExec()}s("find",this._collection.collectionName,r,n);t=this._wrapCallback("find",t,{conditions:r,options:n});this._collection.find(r,n,o.tick(t));return this};Query.prototype.cursor=function cursor(e){if(this.op){if(this.op!=="find"){throw new TypeError(".cursor only support .find method")}}else{this.find(e)}const t=this._conditions;const r=this._optionsForExec();if(this.$useProjection){r.projection=this._fieldsForExec()}else{r.fields=this._fieldsForExec()}s("findCursor",this._collection.collectionName,t,r);return this._collection.findCursor(t,r)};Query.prototype.findOne=function(e,t){this.op="findOne";if("function"===typeof e){t=e;e=undefined}else if(Query.canMerge(e)){this.merge(e)}if(!t)return this;const r=this._conditions;const n=this._optionsForExec();if(this.$useProjection){n.projection=this._fieldsForExec()}else{n.fields=this._fieldsForExec()}s("findOne",this._collection.collectionName,r,n);t=this._wrapCallback("findOne",t,{conditions:r,options:n});this._collection.findOne(r,n,o.tick(t));return this};Query.prototype.count=function(e,t){this.op="count";this._validate();if("function"===typeof e){t=e;e=undefined}else if(Query.canMerge(e)){this.merge(e)}if(!t)return this;const r=this._conditions,n=this._optionsForExec();s("count",this._collection.collectionName,r,n);t=this._wrapCallback("count",t,{conditions:r,options:n});this._collection.count(r,n,o.tick(t));return this};Query.prototype.distinct=function(e,t,r){this.op="distinct";this._validate();if(!r){switch(typeof t){case"function":r=t;if("string"==typeof e){t=e;e=undefined}break;case"undefined":case"string":break;default:throw new TypeError("Invalid `field` argument. Must be string or function")}switch(typeof e){case"function":r=e;e=t=undefined;break;case"string":t=e;e=undefined;break}}if("string"==typeof t){this._distinct=t}if(Query.canMerge(e)){this.merge(e)}if(!r){return this}if(!this._distinct){throw new Error("No value for `distinct` has been declared")}const n=this._conditions,i=this._optionsForExec();s("distinct",this._collection.collectionName,n,i);r=this._wrapCallback("distinct",r,{conditions:n,options:i});this._collection.distinct(this._distinct,n,i,o.tick(r));return this};Query.prototype.update=function update(e,t,r,n){let i;switch(arguments.length){case 3:if("function"==typeof r){n=r;r=undefined}break;case 2:if("function"==typeof t){n=t;t=e;e=undefined}break;case 1:switch(typeof e){case"function":n=e;e=r=t=undefined;break;case"boolean":i=e;e=undefined;break;default:t=e;e=r=undefined;break}}return _update(this,"update",e,t,r,i,n)};Query.prototype.updateMany=function updateMany(e,t,r,n){let i;switch(arguments.length){case 3:if("function"==typeof r){n=r;r=undefined}break;case 2:if("function"==typeof t){n=t;t=e;e=undefined}break;case 1:switch(typeof e){case"function":n=e;e=r=t=undefined;break;case"boolean":i=e;e=undefined;break;default:t=e;e=r=undefined;break}}return _update(this,"updateMany",e,t,r,i,n)};Query.prototype.updateOne=function updateOne(e,t,r,n){let i;switch(arguments.length){case 3:if("function"==typeof r){n=r;r=undefined}break;case 2:if("function"==typeof t){n=t;t=e;e=undefined}break;case 1:switch(typeof e){case"function":n=e;e=r=t=undefined;break;case"boolean":i=e;e=undefined;break;default:t=e;e=r=undefined;break}}return _update(this,"updateOne",e,t,r,i,n)};Query.prototype.replaceOne=function replaceOne(e,t,r,n){let i;switch(arguments.length){case 3:if("function"==typeof r){n=r;r=undefined}break;case 2:if("function"==typeof t){n=t;t=e;e=undefined}break;case 1:switch(typeof e){case"function":n=e;e=r=t=undefined;break;case"boolean":i=e;e=undefined;break;default:t=e;e=r=undefined;break}}this.setOptions({overwrite:true});return _update(this,"replaceOne",e,t,r,i,n)}; /*! * Internal helper for update, updateMany, updateOne */function _update(e,t,r,n,i,a,u){e.op=t;if(Query.canMerge(r)){e.merge(r)}if(n){e._mergeUpdate(n)}if(o.isObject(i)){e.setOptions(i)}if(!(a||u)){return e}if(!e._update||!e.options.overwrite&&0===o.keys(e._update).length){u&&o.soon(u.bind(null,null,0));return e}i=e._optionsForExec();if(!u)i.safe=false;r=e._conditions;n=e._updateForExec();s("update",e._collection.collectionName,r,n,i);u=e._wrapCallback(t,u,{conditions:r,doc:n,options:i});e._collection[t](r,n,i,o.tick(u));return e}Query.prototype.remove=function(e,t){this.op="remove";let r;if("function"===typeof e){t=e;e=undefined}else if(Query.canMerge(e)){this.merge(e)}else if(true===e){r=e;e=undefined}if(!(r||t))return this;const n=this._optionsForExec();if(!t)n.safe=false;const i=this._conditions;s("remove",this._collection.collectionName,i,n);t=this._wrapCallback("remove",t,{conditions:i,options:n});this._collection.remove(i,n,o.tick(t));return this};Query.prototype.deleteOne=function(e,t){this.op="deleteOne";let r;if("function"===typeof e){t=e;e=undefined}else if(Query.canMerge(e)){this.merge(e)}else if(true===e){r=e;e=undefined}if(!(r||t))return this;const n=this._optionsForExec();if(!t)n.safe=false;delete n.justOne;const i=this._conditions;s("deleteOne",this._collection.collectionName,i,n);t=this._wrapCallback("deleteOne",t,{conditions:i,options:n});this._collection.deleteOne(i,n,o.tick(t));return this};Query.prototype.deleteMany=function(e,t){this.op="deleteMany";let r;if("function"===typeof e){t=e;e=undefined}else if(Query.canMerge(e)){this.merge(e)}else if(true===e){r=e;e=undefined}if(!(r||t))return this;const n=this._optionsForExec();if(!t)n.safe=false;delete n.justOne;const i=this._conditions;s("deleteOne",this._collection.collectionName,i,n);t=this._wrapCallback("deleteOne",t,{conditions:i,options:n});this._collection.deleteMany(i,n,o.tick(t));return this};Query.prototype.findOneAndUpdate=function(e,t,r,n){this.op="findOneAndUpdate";this._validate();switch(arguments.length){case 3:if("function"==typeof r){n=r;r={}}break;case 2:if("function"==typeof t){n=t;t=e;e=undefined}r=undefined;break;case 1:if("function"==typeof e){n=e;e=r=t=undefined}else{t=e;e=r=undefined}}if(Query.canMerge(e)){this.merge(e)}if(t){this._mergeUpdate(t)}r&&this.setOptions(r);if(!n)return this;const i=this._conditions;const s=this._updateForExec();r=this._optionsForExec();return this._collection.findOneAndUpdate(i,s,r,o.tick(n))};Query.prototype.findOneAndRemove=Query.prototype.findOneAndDelete=function(e,t,r){this.op="findOneAndRemove";this._validate();if("function"==typeof t){r=t;t=undefined}else if("function"==typeof e){r=e;e=undefined}if(Query.canMerge(e)){this.merge(e)}t&&this.setOptions(t);if(!r)return this;t=this._optionsForExec();const n=this._conditions;return this._collection.findOneAndDelete(n,t,o.tick(r))};Query.prototype._wrapCallback=function(e,t,r){const n=this._traceFunction||Query.traceFunction;if(n){r.collectionName=this._collection.collectionName;const i=n&&n.call(null,e,r,this);const o=(new Date).getTime();return function wrapperCallback(e,r){if(i){const t=(new Date).getTime()-o;i.call(null,e,r,t)}if(t){t.apply(null,arguments)}}}return t};Query.prototype.setTraceFunction=function(e){this._traceFunction=e;return this};Query.prototype.exec=function exec(e,t){switch(typeof e){case"function":t=e;e=null;break;case"string":this.op=e;break}n.ok(this.op,"Missing query type: (find, update, etc)");if("update"==this.op||"remove"==this.op){t||(t=true)}const r=this;if("function"==typeof t){this[this.op](t)}else{return new Query.Promise((function(e,t){r[r.op]((function(r,n){if(r)t(r);else e(n);e=t=null}))}))}};Query.prototype.thunk=function(){const e=this;return function(t){e.exec(t)}};Query.prototype.then=function(e,t){const r=this;const n=new Query.Promise((function(e,t){r.exec((function(r,n){if(r)t(r);else e(n);e=t=null}))}));return n.then(e,t)};Query.prototype.cursor=function(){if("find"!=this.op)throw new Error("cursor() is only available for find");const e=this._conditions;const t=this._optionsForExec();if(this.$useProjection){t.projection=this._fieldsForExec()}else{t.fields=this._fieldsForExec()}s("cursor",this._collection.collectionName,e,t);return this._collection.findCursor(e,t)};Query.prototype.selected=function selected(){return!!(this._fields&&Object.keys(this._fields).length>0)};Query.prototype.selectedInclusively=function selectedInclusively(){if(!this._fields)return false;const e=Object.keys(this._fields);if(0===e.length)return false;for(let t=0;t{"use strict";const r=t;r.distinct=function(e){if(e._fields&&Object.keys(e._fields).length>0){return"field selection and slice"}const t=Object.keys(r.distinct);let n;t.every((function(t){if(e.options[t]){n=t;return false}return true}));return n};r.distinct.select=r.distinct.slice=r.distinct.sort=r.distinct.limit=r.distinct.skip=r.distinct.batchSize=r.distinct.comment=r.distinct.maxScan=r.distinct.snapshot=r.distinct.hint=r.distinct.tailable=true;r.findOneAndUpdate=r.findOneAndRemove=function(e){const t=Object.keys(r.findOneAndUpdate);let n;t.every((function(t){if(e.options[t]){n=t;return false}return true}));return n};r.findOneAndUpdate.limit=r.findOneAndUpdate.skip=r.findOneAndUpdate.batchSize=r.findOneAndUpdate.maxScan=r.findOneAndUpdate.snapshot=r.findOneAndUpdate.hint=r.findOneAndUpdate.tailable=r.findOneAndUpdate.comment=true;r.count=function(e){if(e._fields&&Object.keys(e._fields).length>0){return"field selection and slice"}const t=Object.keys(r.count);let n;t.every((function(t){if(e.options[t]){n=t;return false}return true}));return n};r.count.slice=r.count.batchSize=r.count.comment=r.count.maxScan=r.count.snapshot=r.count.tailable=true},60336:(e,t)=>{"use strict"; /*! * Module dependencies. */const r=["__proto__","constructor","prototype"];const n=t.clone=function clone(e,r){if(e===undefined||e===null)return e;if(Array.isArray(e))return t.cloneArray(e,r);if(e.constructor){if(/ObjectI[dD]$/.test(e.constructor.name)){return"function"==typeof e.clone?e.clone():new e.constructor(e.id)}if(e.constructor.name==="ReadPreference"){return new e.constructor(e.mode,clone(e.tags,r))}if("Binary"==e._bsontype&&e.buffer&&e.value){return"function"==typeof e.clone?e.clone():new e.constructor(e.value(true),e.sub_type)}if("Date"===e.constructor.name||"Function"===e.constructor.name)return new e.constructor(+e);if("RegExp"===e.constructor.name)return new RegExp(e);if("Buffer"===e.constructor.name)return Buffer.from(e)}if(o(e))return t.cloneObject(e,r);if(e.valueOf)return e.valueOf()}; /*! * ignore */t.cloneObject=function cloneObject(e,t){const i=t&&t.minimize,o={},s=Object.keys(e),a=s.length;let u=false,c,l="",d=0;for(d=0;d1){throw new Error("Adding properties is not supported")}function F(){}F.prototype=e;return new F}t.inherits=function(e,r){e.prototype=t.create(r.prototype);e.prototype.constructor=e};const s=t.soon="function"==typeof setImmediate?setImmediate:process.nextTick;t.isArgumentsObject=function(e){return Object.prototype.toString.call(e)==="[object Arguments]"}},86975:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var o=i*7;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=i){return Math.round(e/i)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=i){return plural(e,o,i,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},70759:(e,t,r)=>{const n=parseInt(process.versions.node.split(".")[0],10);if(n<=5){const t=r(39846)("node-telegram-bot-api");t("Node.js v5.x and below will no longer be supported in the future");e.exports=r(1664)}else{e.exports=r(98684)}},41698:(e,t)=>{"use strict";var r=function(){function defineProperties(e,t){for(var r=0;r{"use strict";var n=function(){function sliceIterator(e,t){var r=[];var n=true;var i=false;var o=undefined;try{for(var s=e[Symbol.iterator](),a;!(n=(a=s.next()).done);n=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){i=true;o=e}finally{try{if(!n&&s["return"])s["return"]()}finally{if(i)throw o}}return r}return function(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=function(){function defineProperties(e,t){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,TelegramBot);var r=_possibleConstructorReturn(this,(TelegramBot.__proto__||Object.getPrototypeOf(TelegramBot)).call(this));r.token=e;r.options=t;r.options.polling=typeof t.polling==="undefined"?false:t.polling;r.options.webHook=typeof t.webHook==="undefined"?false:t.webHook;r.options.baseApiUrl=t.baseApiUrl||"https://api.telegram.org";r.options.filepath=typeof t.filepath==="undefined"?true:t.filepath;r.options.badRejection=typeof t.badRejection==="undefined"?false:t.badRejection;r._textRegexpCallbacks=[];r._replyListenerId=0;r._replyListeners=[];r._polling=null;r._webHook=null;if(t.polling){var n=t.polling.autoStart;if(typeof n==="undefined"||n===true){r.startPolling()}}if(t.webHook){var i=t.webHook.autoOpen;if(typeof i==="undefined"||i===true){r.openWebHook()}}return r}o(TelegramBot,[{key:"_buildURL",value:function _buildURL(e){return this.options.baseApiUrl+"/bot"+this.token+"/"+e}},{key:"_fixReplyMarkup",value:function _fixReplyMarkup(e){var t=e.reply_markup;if(t&&typeof t!=="string"){e.reply_markup=stringify(t)}}},{key:"_request",value:function _request(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!this.token){return O.reject(new a.FatalError("Telegram Bot Token not provided!"))}if(this.options.request){Object.assign(t,this.options.request)}if(t.form){this._fixReplyMarkup(t.form)}if(t.qs){this._fixReplyMarkup(t.qs)}t.method="POST";t.url=this._buildURL(e);t.simple=false;t.resolveWithFullResponse=true;t.forever=true;l("HTTP request: %j",t);return m(t).then((function(e){var t=void 0;try{t=e.body=JSON.parse(e.body)}catch(t){throw new a.ParseError("Error parsing response: "+e.body,e)}if(t.ok){return t.result}throw new a.TelegramError(t.error_code+" "+t.description,e)})).catch((function(e){if(e.response)throw e;throw new a.FatalError(e)}))}},{key:"_formatSendData",value:function _formatSendData(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n="See https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md#sending-files"+" for more information on how sending files has been improved and"+" on how to disable this deprecation message altogether.";var i=t;var o=r.filename;var s=r.contentType;if(t instanceof v.Stream){if(!o&&t.path){var u=E.parse(_.basename(t.path.toString()));if(u.pathname){o=y.unescape(u.pathname)}}}else if(Buffer.isBuffer(t)){if(!o&&!process.env.NTBA_FIX_350){C('Buffers will have their filenames default to "filename" instead of "data". '+n);o="data"}if(!s){var c=h(t);if(c){s=c.mime;var l=c.ext;if(l&&!process.env.NTBA_FIX_350){o=o+"."+l}}else if(!process.env.NTBA_FIX_350){C("An error will no longer be thrown if file-type of buffer could not be detected. "+n);throw new a.FatalError("Unsupported Buffer file-type")}}}else if(t){if(this.options.filepath&&k.existsSync(t)){i=k.createReadStream(t);if(!o){o=_.basename(t)}}else{return[null,t]}}else{return[null,t]}o=o||"filename";s=s||b.lookup(o);if(process.env.NTBA_FIX_350){s=s||"application/octet-stream"}else{C('In the future, content-type of files you send will default to "application/octet-stream". '+n)}return[_defineProperty({},e,{value:i,options:{filename:o,contentType:s}}),null]}},{key:"startPolling",value:function startPolling(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(this.hasOpenWebHook()){return O.reject(new a.FatalError("Polling and WebHook are mutually exclusive"))}e.restart=typeof e.restart==="undefined"?true:e.restart;if(!this._polling){this._polling=new c(this)}return this._polling.start(e)}},{key:"initPolling",value:function initPolling(){C("TelegramBot#initPolling() is deprecated. Use TelegramBot#startPolling() instead.");return this.startPolling()}},{key:"stopPolling",value:function stopPolling(e){if(!this._polling){return O.resolve()}return this._polling.stop(e)}},{key:"isPolling",value:function isPolling(){return this._polling?this._polling.isPolling():false}},{key:"openWebHook",value:function openWebHook(){if(this.isPolling()){return O.reject(new a.FatalError("WebHook and Polling are mutually exclusive"))}if(!this._webHook){this._webHook=new u(this)}return this._webHook.open()}},{key:"closeWebHook",value:function closeWebHook(){if(!this._webHook){return O.resolve()}return this._webHook.close()}},{key:"hasOpenWebHook",value:function hasOpenWebHook(){return this._webHook?this._webHook.isOpen():false}},{key:"getMe",value:function getMe(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("getMe",{form:e})}},{key:"logOut",value:function logOut(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("logOut",{form:e})}},{key:"close",value:function close(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("close",{form:e})}},{key:"setWebHook",value:function setWebHook(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=void 0;if((typeof t==="undefined"?"undefined":i(t))!=="object"||t instanceof v.Stream){C("The method signature setWebHook(url, cert) has been deprecated since v0.25.0");n=t;t={}}else{n=t.certificate}var o={qs:t};o.qs.url=e;if(n){try{var s=this._formatSendData("certificate",n,r);o.formData=s[0];o.qs.certificate=s[1]}catch(e){return O.reject(e)}}return this._request("setWebHook",o)}},{key:"deleteWebHook",value:function deleteWebHook(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("deleteWebhook",{form:e})}},{key:"getWebHookInfo",value:function getWebHookInfo(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("getWebhookInfo",{form:e})}},{key:"getUpdates",value:function getUpdates(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if((typeof e==="undefined"?"undefined":i(e))!=="object"){C("The method signature getUpdates(timeout, limit, offset) has been deprecated since v0.25.0");e={timeout:arguments[0],limit:arguments[1],offset:arguments[2]}}return this._request("getUpdates",{form:e})}},{key:"processUpdate",value:function processUpdate(e){var t=this;l("Process Update %j",e);var r=e.message;var n=e.edited_message;var i=e.channel_post;var o=e.edited_channel_post;var s=e.inline_query;var a=e.chosen_inline_result;var u=e.callback_query;var c=e.shipping_query;var d=e.pre_checkout_query;var h=e.poll;var m=e.poll_answer;var g=e.chat_member;var y=e.my_chat_member;var v=e.chat_join_request;if(r){l("Process Update message %j",r);var b={};b.type=TelegramBot.messageTypes.find((function(e){return r[e]}));this.emit("message",r,b);if(b.type){l("Emitting %s: %j",b.type,r);this.emit(b.type,r,b)}if(r.text){l("Text message");this._textRegexpCallbacks.some((function(e){l("Matching %s with %s",r.text,e.regexp);var n=e.regexp.exec(r.text);if(!n){return false}e.regexp.lastIndex=0;l("Matches %s",e.regexp);e.callback(r,n);return t.options.onlyFirstMatch}))}if(r.reply_to_message){this._replyListeners.forEach((function(e){if(e.chatId===r.chat.id){if(e.messageId===r.reply_to_message.message_id){e.callback(r)}}}))}}else if(n){l("Process Update edited_message %j",n);this.emit("edited_message",n);if(n.text){this.emit("edited_message_text",n)}if(n.caption){this.emit("edited_message_caption",n)}}else if(i){l("Process Update channel_post %j",i);this.emit("channel_post",i)}else if(o){l("Process Update edited_channel_post %j",o);this.emit("edited_channel_post",o);if(o.text){this.emit("edited_channel_post_text",o)}if(o.caption){this.emit("edited_channel_post_caption",o)}}else if(s){l("Process Update inline_query %j",s);this.emit("inline_query",s)}else if(a){l("Process Update chosen_inline_result %j",a);this.emit("chosen_inline_result",a)}else if(u){l("Process Update callback_query %j",u);this.emit("callback_query",u)}else if(c){l("Process Update shipping_query %j",c);this.emit("shipping_query",c)}else if(d){l("Process Update pre_checkout_query %j",d);this.emit("pre_checkout_query",d)}else if(h){l("Process Update poll %j",h);this.emit("poll",h)}else if(m){l("Process Update poll_answer %j",m);this.emit("poll_answer",m)}else if(g){l("Process Update chat_member %j",g);this.emit("chat_member",g)}else if(y){l("Process Update my_chat_member %j",y);this.emit("my_chat_member",y)}else if(v){l("Process Update my_chat_member %j",v);this.emit("chat_join_request",v)}}},{key:"sendMessage",value:function sendMessage(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.text=t;return this._request("sendMessage",{form:r})}},{key:"answerInlineQuery",value:function answerInlineQuery(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.inline_query_id=e;r.results=stringify(t);return this._request("answerInlineQuery",{form:r})}},{key:"forwardMessage",value:function forwardMessage(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};n.chat_id=e;n.from_chat_id=t;n.message_id=r;return this._request("forwardMessage",{form:n})}},{key:"copyMessage",value:function copyMessage(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};n.chat_id=e;n.from_chat_id=t;n.message_id=r;return this._request("copyMessage",{form:n})}},{key:"sendPhoto",value:function sendPhoto(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var o=this._formatSendData("photo",t,n);i.formData=o[0];i.qs.photo=o[1]}catch(e){return O.reject(e)}return this._request("sendPhoto",i)}},{key:"sendAudio",value:function sendAudio(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var o=this._formatSendData("audio",t,n);i.formData=o[0];i.qs.audio=o[1]}catch(e){return O.reject(e)}return this._request("sendAudio",i)}},{key:"sendDice",value:function sendDice(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r={qs:t};r.qs.chat_id=e;try{var n=this._formatSendData("dice");r.formData=n[0]}catch(e){return O.reject(e)}return this._request("sendDice",r)}},{key:"sendDocument",value:function sendDocument(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var o=this._formatSendData("document",t,n);i.formData=o[0];i.qs.document=o[1]}catch(e){return O.reject(e)}return this._request("sendDocument",i)}},{key:"sendSticker",value:function sendSticker(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var o=this._formatSendData("sticker",t,n);i.formData=o[0];i.qs.sticker=o[1]}catch(e){return O.reject(e)}return this._request("sendSticker",i)}},{key:"sendVideo",value:function sendVideo(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var o=this._formatSendData("video",t,n);i.formData=o[0];i.qs.video=o[1]}catch(e){return O.reject(e)}return this._request("sendVideo",i)}},{key:"sendAnimation",value:function sendAnimation(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var o=this._formatSendData("animation",t,n);i.formData=o[0];i.qs.animation=o[1]}catch(e){return O.reject(e)}return this._request("sendAnimation",i)}},{key:"sendVideoNote",value:function sendVideoNote(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var o=this._formatSendData("video_note",t,n);i.formData=o[0];i.qs.video_note=o[1]}catch(e){return O.reject(e)}return this._request("sendVideoNote",i)}},{key:"sendVoice",value:function sendVoice(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var o=this._formatSendData("voice",t,n);i.formData=o[0];i.qs.voice=o[1]}catch(e){return O.reject(e)}return this._request("sendVoice",i)}},{key:"sendChatAction",value:function sendChatAction(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.action=t;return this._request("sendChatAction",{form:r})}},{key:"kickChatMember",value:function kickChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};C('The method kickChatMembet is deprecated since Telegram Bot API v5.3, replace it with "banChatMember"');r.chat_id=e;r.user_id=t;return this._request("kickChatMember",{form:r})}},{key:"banChatMember",value:function banChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("banChatMember",{form:r})}},{key:"unbanChatMember",value:function unbanChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("unbanChatMember",{form:r})}},{key:"restrictChatMember",value:function restrictChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("restrictChatMember",{form:r})}},{key:"promoteChatMember",value:function promoteChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("promoteChatMember",{form:r})}},{key:"setChatAdministratorCustomTitle",value:function setChatAdministratorCustomTitle(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};n.chat_id=e;n.user_id=t;n.custom_title=r;return this._request("setChatAdministratorCustomTitle",{form:n})}},{key:"banChatSenderChat",value:function banChatSenderChat(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.sender_chat_id=t;return this._request("banChatSenderChat",{form:r})}},{key:"unbanChatSenderChat",value:function unbanChatSenderChat(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.sender_chat_id=t;return this._request("unbanChatSenderChat",{form:r})}},{key:"setChatPermissions",value:function setChatPermissions(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.permissions=JSON.stringify(t);return this._request("setChatPermissions",{form:r})}},{key:"exportChatInviteLink",value:function exportChatInviteLink(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("exportChatInviteLink",{form:t})}},{key:"createChatInviteLink",value:function createChatInviteLink(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("createChatInviteLink",{form:t})}},{key:"editChatInviteLink",value:function editChatInviteLink(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.invite_link=t;return this._request("editChatInviteLink",{form:r})}},{key:"revokeChatInviteLink",value:function revokeChatInviteLink(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.invite_link=t;return this._request("revokeChatInviteLink",{form:r})}},{key:"approveChatJoinRequest",value:function approveChatJoinRequest(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("approveChatJoinRequest",{form:r})}},{key:"declineChatJoinRequest",value:function declineChatJoinRequest(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("declineChatJoinRequest",{form:r})}},{key:"setChatPhoto",value:function setChatPhoto(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var o=this._formatSendData("photo",t,n);i.formData=o[0];i.qs.photo=o[1]}catch(e){return O.reject(e)}return this._request("setChatPhoto",i)}},{key:"deleteChatPhoto",value:function deleteChatPhoto(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("deleteChatPhoto",{form:t})}},{key:"setChatTitle",value:function setChatTitle(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.title=t;return this._request("setChatTitle",{form:r})}},{key:"setChatDescription",value:function setChatDescription(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.description=t;return this._request("setChatDescription",{form:r})}},{key:"pinChatMessage",value:function pinChatMessage(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.message_id=t;return this._request("pinChatMessage",{form:r})}},{key:"unpinChatMessage",value:function unpinChatMessage(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("unpinChatMessage",{form:t})}},{key:"unpinAllChatMessages",value:function unpinAllChatMessages(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("unpinAllChatMessages",{form:t})}},{key:"answerCallbackQuery",value:function answerCallbackQuery(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if((typeof t==="undefined"?"undefined":i(t))!=="object"){C("The method signature answerCallbackQuery(callbackQueryId, text, showAlert) has been deprecated since v0.27.1");t={callback_query_id:arguments[0],text:arguments[1],show_alert:arguments[2]}}if((typeof e==="undefined"?"undefined":i(e))==="object"){C("The method signature answerCallbackQuery([options]) has been deprecated since v0.29.0");t=e}else{t.callback_query_id=e}return this._request("answerCallbackQuery",{form:t})}},{key:"setMyCommands",value:function setMyCommands(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.commands=stringify(e);return this._request("setMyCommands",{form:t})}},{key:"getMyCommands",value:function getMyCommands(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("getMyCommands",{form:e})}},{key:"deleteMyCommands",value:function deleteMyCommands(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("deleteMyCommands",{form:e})}},{key:"editMessageText",value:function editMessageText(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.text=e;return this._request("editMessageText",{form:t})}},{key:"editMessageCaption",value:function editMessageCaption(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.caption=e;return this._request("editMessageCaption",{form:t})}},{key:"editMessageMedia",value:function editMessageMedia(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=/attach:\/\/.+/;if(typeof e.media==="string"&&r.test(e.media)){var i={qs:t};i.formData={};var o=Object.assign({},e);delete o.media;try{var s=String(0);var u=this._formatSendData(s,e.media.replace("attach://",""),e.fileOptions),c=n(u,1),l=c[0];if(l){i.formData[s]=l[s];o.media="attach://"+s}else{throw new a.FatalError("Failed to process the replacement action for your "+e.type)}}catch(e){return O.reject(e)}i.qs.media=JSON.stringify(o);return this._request("editMessageMedia",i)}t.media=stringify(e);return this._request("editMessageMedia",{form:t})}},{key:"editMessageReplyMarkup",value:function editMessageReplyMarkup(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.reply_markup=e;return this._request("editMessageReplyMarkup",{form:t})}},{key:"getUserProfilePhotos",value:function getUserProfilePhotos(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if((typeof t==="undefined"?"undefined":i(t))!=="object"){C("The method signature getUserProfilePhotos(userId, offset, limit) has been deprecated since v0.25.0");t={offset:arguments[1],limit:arguments[2]}}t.user_id=e;return this._request("getUserProfilePhotos",{form:t})}},{key:"sendLocation",value:function sendLocation(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};n.chat_id=e;n.latitude=t;n.longitude=r;return this._request("sendLocation",{form:n})}},{key:"editMessageLiveLocation",value:function editMessageLiveLocation(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.latitude=e;r.longitude=t;return this._request("editMessageLiveLocation",{form:r})}},{key:"stopMessageLiveLocation",value:function stopMessageLiveLocation(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("stopMessageLiveLocation",{form:e})}},{key:"sendVenue",value:function sendVenue(e,t,r,n,i){var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};o.chat_id=e;o.latitude=t;o.longitude=r;o.title=n;o.address=i;return this._request("sendVenue",{form:o})}},{key:"sendContact",value:function sendContact(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};n.chat_id=e;n.phone_number=t;n.first_name=r;return this._request("sendContact",{form:n})}},{key:"sendPoll",value:function sendPoll(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};n.chat_id=e;n.question=t;n.options=stringify(r);return this._request("sendPoll",{form:n})}},{key:"stopPoll",value:function stopPoll(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.message_id=t;return this._request("stopPoll",{form:r})}},{key:"getFile",value:function getFile(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.file_id=e;return this._request("getFile",{form:t})}},{key:"getFileLink",value:function getFileLink(e){var t=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return this.getFile(e,r).then((function(e){return t.options.baseApiUrl+"/file/bot"+t.token+"/"+e.file_path}))}},{key:"getFileStream",value:function getFileStream(e){var t=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=new v.PassThrough;n.path=e;this.getFileLink(e,r).then((function(e){n.emit("info",{uri:e});x(g(Object.assign({uri:e},t.options.request)),n)})).catch((function(e){n.emit("error",e)}));return n}},{key:"downloadFile",value:function downloadFile(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=void 0;var i=void 0;var o=new O((function(e,t){n=e;i=t}));var s=this.getFileStream(e,r);s.on("info",(function(e){var r=e.uri.slice(e.uri.lastIndexOf("/")+1);var o=_.join(t,r);x(s,k.createWriteStream(o),(function(e){if(e){return i(e)}return n(o)}))}));s.on("error",(function(e){i(e)}));return o}},{key:"onText",value:function onText(e,t){this._textRegexpCallbacks.push({regexp:e,callback:t})}},{key:"removeTextListener",value:function removeTextListener(e){var t=this._textRegexpCallbacks.findIndex((function(t){return String(t.regexp)===String(e)}));if(t===-1){return null}return this._textRegexpCallbacks.splice(t,1)[0]}},{key:"clearTextListeners",value:function clearTextListeners(){this._textRegexpCallbacks=[]}},{key:"onReplyToMessage",value:function onReplyToMessage(e,t,r){var n=++this._replyListenerId;this._replyListeners.push({id:n,chatId:e,messageId:t,callback:r});return n}},{key:"removeReplyListener",value:function removeReplyListener(e){var t=this._replyListeners.findIndex((function(t){return t.id===e}));if(t===-1){return null}return this._replyListeners.splice(t,1)[0]}},{key:"clearReplyListeners",value:function clearReplyListeners(){this._replyListeners=[]}},{key:"getChat",value:function getChat(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("getChat",{form:t})}},{key:"getChatAdministrators",value:function getChatAdministrators(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("getChatAdministrators",{form:t})}},{key:"getChatMembersCount",value:function getChatMembersCount(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};C('The method "getChatMembersCount" is deprecated since Telegram Bot API v5.3, replace it with "getChatMemberCount"');t.chat_id=e;return this._request("getChatMembersCount",{form:t})}},{key:"getChatMemberCount",value:function getChatMemberCount(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("getChatMemberCount",{form:t})}},{key:"getChatMember",value:function getChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("getChatMember",{form:r})}},{key:"leaveChat",value:function leaveChat(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("leaveChat",{form:t})}},{key:"setChatStickerSet",value:function setChatStickerSet(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.sticker_set_name=t;return this._request("setChatStickerSet",{form:r})}},{key:"deleteChatStickerSet",value:function deleteChatStickerSet(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("deleteChatStickerSet",{form:t})}},{key:"sendGame",value:function sendGame(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.game_short_name=t;return this._request("sendGame",{form:r})}},{key:"setGameScore",value:function setGameScore(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.user_id=e;r.score=t;return this._request("setGameScore",{form:r})}},{key:"getGameHighScores",value:function getGameHighScores(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.user_id=e;return this._request("getGameHighScores",{form:t})}},{key:"deleteMessage",value:function deleteMessage(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.message_id=t;return this._request("deleteMessage",{form:r})}},{key:"sendInvoice",value:function sendInvoice(e,t,r,n,i,o,s,a){var u=arguments.length>8&&arguments[8]!==undefined?arguments[8]:{};u.chat_id=e;u.title=t;u.description=r;u.payload=n;u.provider_token=i;u.start_parameter=o;u.currency=s;u.prices=stringify(a);u.provider_data=stringify(u.provider_data);return this._request("sendInvoice",{form:u})}},{key:"answerShippingQuery",value:function answerShippingQuery(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.shipping_query_id=e;r.ok=t;r.shipping_options=stringify(r.shipping_options);return this._request("answerShippingQuery",{form:r})}},{key:"answerPreCheckoutQuery",value:function answerPreCheckoutQuery(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.pre_checkout_query_id=e;r.ok=t;return this._request("answerPreCheckoutQuery",{form:r})}},{key:"getStickerSet",value:function getStickerSet(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.name=e;return this._request("getStickerSet",{form:t})}},{key:"uploadStickerFile",value:function uploadStickerFile(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.user_id=e;try{var o=this._formatSendData("png_sticker",t,n);i.formData=o[0];i.qs.png_sticker=o[1]}catch(e){return O.reject(e)}return this._request("uploadStickerFile",i)}},{key:"createNewStickerSet",value:function createNewStickerSet(e,t,r,n,i){var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};var s=arguments.length>6&&arguments[6]!==undefined?arguments[6]:{};var a={qs:o};a.qs.user_id=e;a.qs.name=t;a.qs.title=r;a.qs.emojis=i;a.qs.mask_position=stringify(o.mask_position);try{var u=this._formatSendData("png_sticker",n,s);a.formData=u[0];a.qs.png_sticker=u[1]}catch(e){return O.reject(e)}return this._request("createNewStickerSet",a)}},{key:"addStickerToSet",value:function addStickerToSet(e,t,r,n){var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};var s={qs:i};s.qs.user_id=e;s.qs.name=t;s.qs.emojis=n;s.qs.mask_position=stringify(i.mask_position);try{var a=this._formatSendData("png_sticker",r,o);s.formData=a[0];s.qs.png_sticker=a[1]}catch(e){return O.reject(e)}return this._request("addStickerToSet",s)}},{key:"setStickerPositionInSet",value:function setStickerPositionInSet(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.sticker=e;r.position=t;return this._request("setStickerPositionInSet",{form:r})}},{key:"deleteStickerFromSet",value:function deleteStickerFromSet(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.sticker=e;return this._request("deleteStickerFromSet",{form:t})}},{key:"sendMediaGroup",value:function sendMediaGroup(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var i={qs:r};i.qs.chat_id=e;i.formData={};var o=[];var s=0;var a=true;var u=false;var c=undefined;try{for(var l=t[Symbol.iterator](),d;!(a=(d=l.next()).done);a=true){var h=d.value;var m=Object.assign({},h);delete m.media;delete m.fileOptions;try{var g=String(s);var y=this._formatSendData(g,h.media,h.fileOptions),v=n(y,2),b=v[0],_=v[1];if(b){i.formData[g]=b[g];m.media="attach://"+g}else{m.media=_}}catch(e){return O.reject(e)}o.push(m);s++}}catch(e){u=true;c=e}finally{try{if(!a&&l.return){l.return()}}finally{if(u){throw c}}}i.qs.media=JSON.stringify(o);return this._request("sendMediaGroup",i)}}]);return TelegramBot}(d);e.exports=R},86474:(e,t,r)=>{"use strict";var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){function defineProperties(e,t){for(var r=0;r0&&arguments[0]!==undefined?arguments[0]:{};if(this._lastRequest){if(!t.restart){return Promise.resolve()}return this.stop({cancel:true,reason:"Polling restart"}).then((function(){return e._polling()}))}return this._polling()}},{key:"stop",value:function stop(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!this._lastRequest){return Promise.resolve()}var r=this._lastRequest;this._lastRequest=null;clearTimeout(this._pollingTimeout);if(t.cancel){var n=t.reason||"Polling stop";r.cancel(n);return Promise.resolve()}this._abort=true;return r.finally((function(){e._abort=false}))}},{key:"isPolling",value:function isPolling(){return!!this._lastRequest}},{key:"_error",value:function _error(e){if(!this.bot.listeners("polling_error").length){return console.error("error: [polling_error] %j",e)}return this.bot.emit("polling_error",e)}},{key:"_polling",value:function _polling(){var e=this;this._lastRequest=this._getUpdates().then((function(t){e._lastUpdate=Date.now();s("polling data %j",t);t.forEach((function(t){e.options.params.offset=t.update_id+1;s("updated offset: %s",e.options.params.offset);try{e.bot.processUpdate(t)}catch(e){e._processing=true;throw e}}));return null})).catch((function(t){s("polling error: %s",t.message);if(!t._processing){return e._error(t)}delete t._processing;if(!e.bot.options.badRejection){return e._error(t)}var r={offset:e.options.params.offset,limit:1,timeout:0};return e.bot.getUpdates(r).then((function(){return e._error(t)})).catch((function(r){var n="https://github.com/yagop/node-telegram-bot-api/issues/36#issuecomment-268532067";console.error("error: Internal handling of The Offset Infinite Loop failed");console.error("error: Due to error '"+r+"'");console.error("error: You may receive already-processed updates on app restart");console.error("error: Please see "+n+" for more information");return e.bot.emit("error",new o.FatalError(t))}))})).finally((function(){if(e._abort){s("Polling is aborted!")}else{s("setTimeout for %s miliseconds",e.options.interval);e._pollingTimeout=setTimeout((function(){return e._polling()}),e.options.interval)}}));return this._lastRequest}},{key:"_unsetWebHook",value:function _unsetWebHook(){s("unsetting webhook");return this.bot._request("setWebHook")}},{key:"_getUpdates",value:function _getUpdates(){var e=this;s("polling with options: %j",this.options.params);return this.bot.getUpdates(this.options.params).catch((function(t){if(t.response&&t.response.statusCode===u){return e._unsetWebHook().then((function(){return e.bot.getUpdates(e.options.params)}))}throw t}))}}]);return TelegramBotPolling}();e.exports=c},22422:(e,t,r)=>{"use strict";var n=function(){function defineProperties(e,t){for(var r=0;r{"use strict";function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(e){return typeof e}}else{_typeof=function _typeof(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var n=0;var i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){if(e==="%%"){return}n++;if(e==="%c"){i=n}}));t.splice(i,0,r)}function log(){var e;return(typeof console==="undefined"?"undefined":_typeof(console))==="object"&&console.log&&(e=console).log.apply(e,arguments)}function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){var e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(60186)(t);var n=e.exports.formatters;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},60186:(e,t,r)=>{"use strict";function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(62178);Object.keys(e).forEach((function(t){createDebug[t]=e[t]}));createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){var t=0;for(var r=0;r{"use strict";if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(44285)}else{e.exports=r(12360)}},12360:(e,t,r)=>{"use strict";var n=r(76224);var i=r(73837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{var o=r(45653);if(o&&(o.stderr||o).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()}));var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){var r=this.namespace,n=this.useColors;if(n){var i=this.color;var o="[3"+(i<8?i:"8;5;"+i);var s=" ".concat(o,";1m").concat(r," ");t[0]=s+t[0].split("\n").join("\n"+s);t.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(){return process.stderr.write(i.format.apply(i,arguments)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var o=i*7;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=i){return Math.round(e/i)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=i){return plural(e,o,i,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},5131:(e,t)=>{t.BaseError=class BaseError extends Error{constructor(e,t){super(`${e}: ${t}`);this.code=e}toJSON(){return{code:this.code,message:this.message}}};t.FatalError=class FatalError extends t.BaseError{constructor(e){const t=typeof e==="string"?null:e;const r=t?t.message:e;super("EFATAL",r);if(t)this.stack=t.stack}};t.ParseError=class ParseError extends t.BaseError{constructor(e,t){super("EPARSE",e);this.response=t}};t.TelegramError=class TelegramError extends t.BaseError{constructor(e,t){super("ETELEGRAM",e);this.response=t}}},98684:(e,t,r)=>{r(11138).shim();const n=r(5131);const i=r(83890);const o=r(76799);const s=r(40942)("node-telegram-bot-api");const a=r(17848);const u=r(29390);const c=r(78928);const l=r(59650);const d=r(63477);const h=r(12781);const m=r(96709);const g=r(71017);const y=r(57310);const v=r(57147);const b=r(33563);const _=r(39846)("node-telegram-bot-api");let E=r(21168);const k=["text","animation","audio","channel_chat_created","contact","delete_chat_photo","dice","document","game","group_chat_created","invoice","left_chat_member","location","migrate_from_chat_id","migrate_to_chat_id","new_chat_members","new_chat_photo","new_chat_title","passport_data","photo","pinned_message","poll","sticker","successful_payment","supergroup_chat_created","video","video_note","voice","voice_chat_started","voice_chat_ended","voice_chat_participants_invited","voice_chat_scheduled","message_auto_delete_timer_changed","chat_invite_link","chat_member_updated"];const x=["new_chat_participant","left_chat_participant"];if(!process.env.NTBA_FIX_319){try{const e="Automatic enabling of cancellation of promises is deprecated.\n"+"In the future, you will have to enable it yourself.\n"+"See https://github.com/yagop/node-telegram-bot-api/issues/319.";_(e);E.config({cancellation:true})}catch(e){const t="error: Enabling Promise cancellation failed.\n"+" Temporary fix is to load/require this library as early as possible before using any Promises.";console.error(t);throw e}}function stringify(e){if(typeof e==="string"){return e}return JSON.stringify(e)}class TelegramBot extends a{static get errors(){return n}static get messageTypes(){return k}static set Promise(e){E=e}on(e,t){if(x.indexOf(e)!==-1){const e="https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md#events";_(`Events ${x.join(",")} are deprecated. See the updated list of events: ${e}`)}super.on(e,t)}constructor(e,t={}){super();this.token=e;this.options=t;this.options.polling=typeof t.polling==="undefined"?false:t.polling;this.options.webHook=typeof t.webHook==="undefined"?false:t.webHook;this.options.baseApiUrl=t.baseApiUrl||"https://api.telegram.org";this.options.filepath=typeof t.filepath==="undefined"?true:t.filepath;this.options.badRejection=typeof t.badRejection==="undefined"?false:t.badRejection;this._textRegexpCallbacks=[];this._replyListenerId=0;this._replyListeners=[];this._polling=null;this._webHook=null;if(t.polling){const e=t.polling.autoStart;if(typeof e==="undefined"||e===true){this.startPolling()}}if(t.webHook){const e=t.webHook.autoOpen;if(typeof e==="undefined"||e===true){this.openWebHook()}}}_buildURL(e){return`${this.options.baseApiUrl}/bot${this.token}/${e}`}_fixReplyMarkup(e){const t=e.reply_markup;if(t&&typeof t!=="string"){e.reply_markup=stringify(t)}}_request(e,t={}){if(!this.token){return E.reject(new n.FatalError("Telegram Bot Token not provided!"))}if(this.options.request){Object.assign(t,this.options.request)}if(t.form){this._fixReplyMarkup(t.form)}if(t.qs){this._fixReplyMarkup(t.qs)}t.method="POST";t.url=this._buildURL(e);t.simple=false;t.resolveWithFullResponse=true;t.forever=true;s("HTTP request: %j",t);return c(t).then((e=>{let t;try{t=e.body=JSON.parse(e.body)}catch(t){throw new n.ParseError(`Error parsing response: ${e.body}`,e)}if(t.ok){return t.result}throw new n.TelegramError(`${t.error_code} ${t.description}`,e)})).catch((e=>{if(e.response)throw e;throw new n.FatalError(e)}))}_formatSendData(e,t,r={}){const i="See https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md#sending-files"+" for more information on how sending files has been improved and"+" on how to disable this deprecation message altogether.";let o=t;let s=r.filename;let a=r.contentType;if(t instanceof h.Stream){if(!s&&t.path){const e=y.parse(g.basename(t.path.toString()));if(e.pathname){s=d.unescape(e.pathname)}}}else if(Buffer.isBuffer(t)){if(!s&&!process.env.NTBA_FIX_350){_(`Buffers will have their filenames default to "filename" instead of "data". ${i}`);s="data"}if(!a){const e=u(t);if(e){a=e.mime;const t=e.ext;if(t&&!process.env.NTBA_FIX_350){s=`${s}.${t}`}}else if(!process.env.NTBA_FIX_350){_(`An error will no longer be thrown if file-type of buffer could not be detected. ${i}`);throw new n.FatalError("Unsupported Buffer file-type")}}}else if(t){if(this.options.filepath&&v.existsSync(t)){o=v.createReadStream(t);if(!s){s=g.basename(t)}}else{return[null,t]}}else{return[null,t]}s=s||"filename";a=a||m.lookup(s);if(process.env.NTBA_FIX_350){a=a||"application/octet-stream"}else{_(`In the future, content-type of files you send will default to "application/octet-stream". ${i}`)}return[{[e]:{value:o,options:{filename:s,contentType:a}}},null]}startPolling(e={}){if(this.hasOpenWebHook()){return E.reject(new n.FatalError("Polling and WebHook are mutually exclusive"))}e.restart=typeof e.restart==="undefined"?true:e.restart;if(!this._polling){this._polling=new o(this)}return this._polling.start(e)}initPolling(){_("TelegramBot#initPolling() is deprecated. Use TelegramBot#startPolling() instead.");return this.startPolling()}stopPolling(e){if(!this._polling){return E.resolve()}return this._polling.stop(e)}isPolling(){return this._polling?this._polling.isPolling():false}openWebHook(){if(this.isPolling()){return E.reject(new n.FatalError("WebHook and Polling are mutually exclusive"))}if(!this._webHook){this._webHook=new i(this)}return this._webHook.open()}closeWebHook(){if(!this._webHook){return E.resolve()}return this._webHook.close()}hasOpenWebHook(){return this._webHook?this._webHook.isOpen():false}getMe(e={}){return this._request("getMe",{form:e})}logOut(e={}){return this._request("logOut",{form:e})}close(e={}){return this._request("close",{form:e})}setWebHook(e,t={},r={}){let n;if(typeof t!=="object"||t instanceof h.Stream){_("The method signature setWebHook(url, cert) has been deprecated since v0.25.0");n=t;t={}}else{n=t.certificate}const i={qs:t};i.qs.url=e;if(n){try{const e=this._formatSendData("certificate",n,r);i.formData=e[0];i.qs.certificate=e[1]}catch(e){return E.reject(e)}}return this._request("setWebHook",i)}deleteWebHook(e={}){return this._request("deleteWebhook",{form:e})}getWebHookInfo(e={}){return this._request("getWebhookInfo",{form:e})}getUpdates(e={}){if(typeof e!=="object"){_("The method signature getUpdates(timeout, limit, offset) has been deprecated since v0.25.0");e={timeout:arguments[0],limit:arguments[1],offset:arguments[2]}}return this._request("getUpdates",{form:e})}processUpdate(e){s("Process Update %j",e);const t=e.message;const r=e.edited_message;const n=e.channel_post;const i=e.edited_channel_post;const o=e.inline_query;const a=e.chosen_inline_result;const u=e.callback_query;const c=e.shipping_query;const l=e.pre_checkout_query;const d=e.poll;const h=e.poll_answer;const m=e.chat_member;const g=e.my_chat_member;const y=e.chat_join_request;if(t){s("Process Update message %j",t);const e={};e.type=TelegramBot.messageTypes.find((e=>t[e]));this.emit("message",t,e);if(e.type){s("Emitting %s: %j",e.type,t);this.emit(e.type,t,e)}if(t.text){s("Text message");this._textRegexpCallbacks.some((e=>{s("Matching %s with %s",t.text,e.regexp);const r=e.regexp.exec(t.text);if(!r){return false}e.regexp.lastIndex=0;s("Matches %s",e.regexp);e.callback(t,r);return this.options.onlyFirstMatch}))}if(t.reply_to_message){this._replyListeners.forEach((e=>{if(e.chatId===t.chat.id){if(e.messageId===t.reply_to_message.message_id){e.callback(t)}}}))}}else if(r){s("Process Update edited_message %j",r);this.emit("edited_message",r);if(r.text){this.emit("edited_message_text",r)}if(r.caption){this.emit("edited_message_caption",r)}}else if(n){s("Process Update channel_post %j",n);this.emit("channel_post",n)}else if(i){s("Process Update edited_channel_post %j",i);this.emit("edited_channel_post",i);if(i.text){this.emit("edited_channel_post_text",i)}if(i.caption){this.emit("edited_channel_post_caption",i)}}else if(o){s("Process Update inline_query %j",o);this.emit("inline_query",o)}else if(a){s("Process Update chosen_inline_result %j",a);this.emit("chosen_inline_result",a)}else if(u){s("Process Update callback_query %j",u);this.emit("callback_query",u)}else if(c){s("Process Update shipping_query %j",c);this.emit("shipping_query",c)}else if(l){s("Process Update pre_checkout_query %j",l);this.emit("pre_checkout_query",l)}else if(d){s("Process Update poll %j",d);this.emit("poll",d)}else if(h){s("Process Update poll_answer %j",h);this.emit("poll_answer",h)}else if(m){s("Process Update chat_member %j",m);this.emit("chat_member",m)}else if(g){s("Process Update my_chat_member %j",g);this.emit("my_chat_member",g)}else if(y){s("Process Update my_chat_member %j",y);this.emit("chat_join_request",y)}}sendMessage(e,t,r={}){r.chat_id=e;r.text=t;return this._request("sendMessage",{form:r})}answerInlineQuery(e,t,r={}){r.inline_query_id=e;r.results=stringify(t);return this._request("answerInlineQuery",{form:r})}forwardMessage(e,t,r,n={}){n.chat_id=e;n.from_chat_id=t;n.message_id=r;return this._request("forwardMessage",{form:n})}copyMessage(e,t,r,n={}){n.chat_id=e;n.from_chat_id=t;n.message_id=r;return this._request("copyMessage",{form:n})}sendPhoto(e,t,r={},n={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("photo",t,n);i.formData=e[0];i.qs.photo=e[1]}catch(e){return E.reject(e)}return this._request("sendPhoto",i)}sendAudio(e,t,r={},n={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("audio",t,n);i.formData=e[0];i.qs.audio=e[1]}catch(e){return E.reject(e)}return this._request("sendAudio",i)}sendDice(e,t={}){const r={qs:t};r.qs.chat_id=e;try{const e=this._formatSendData("dice");r.formData=e[0]}catch(e){return E.reject(e)}return this._request("sendDice",r)}sendDocument(e,t,r={},n={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("document",t,n);i.formData=e[0];i.qs.document=e[1]}catch(e){return E.reject(e)}return this._request("sendDocument",i)}sendSticker(e,t,r={},n={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("sticker",t,n);i.formData=e[0];i.qs.sticker=e[1]}catch(e){return E.reject(e)}return this._request("sendSticker",i)}sendVideo(e,t,r={},n={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("video",t,n);i.formData=e[0];i.qs.video=e[1]}catch(e){return E.reject(e)}return this._request("sendVideo",i)}sendAnimation(e,t,r={},n={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("animation",t,n);i.formData=e[0];i.qs.animation=e[1]}catch(e){return E.reject(e)}return this._request("sendAnimation",i)}sendVideoNote(e,t,r={},n={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("video_note",t,n);i.formData=e[0];i.qs.video_note=e[1]}catch(e){return E.reject(e)}return this._request("sendVideoNote",i)}sendVoice(e,t,r={},n={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("voice",t,n);i.formData=e[0];i.qs.voice=e[1]}catch(e){return E.reject(e)}return this._request("sendVoice",i)}sendChatAction(e,t,r={}){r.chat_id=e;r.action=t;return this._request("sendChatAction",{form:r})}kickChatMember(e,t,r={}){_('The method kickChatMembet is deprecated since Telegram Bot API v5.3, replace it with "banChatMember"');r.chat_id=e;r.user_id=t;return this._request("kickChatMember",{form:r})}banChatMember(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("banChatMember",{form:r})}unbanChatMember(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("unbanChatMember",{form:r})}restrictChatMember(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("restrictChatMember",{form:r})}promoteChatMember(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("promoteChatMember",{form:r})}setChatAdministratorCustomTitle(e,t,r,n={}){n.chat_id=e;n.user_id=t;n.custom_title=r;return this._request("setChatAdministratorCustomTitle",{form:n})}banChatSenderChat(e,t,r={}){r.chat_id=e;r.sender_chat_id=t;return this._request("banChatSenderChat",{form:r})}unbanChatSenderChat(e,t,r={}){r.chat_id=e;r.sender_chat_id=t;return this._request("unbanChatSenderChat",{form:r})}setChatPermissions(e,t,r={}){r.chat_id=e;r.permissions=JSON.stringify(t);return this._request("setChatPermissions",{form:r})}exportChatInviteLink(e,t={}){t.chat_id=e;return this._request("exportChatInviteLink",{form:t})}createChatInviteLink(e,t={}){t.chat_id=e;return this._request("createChatInviteLink",{form:t})}editChatInviteLink(e,t,r={}){r.chat_id=e;r.invite_link=t;return this._request("editChatInviteLink",{form:r})}revokeChatInviteLink(e,t,r={}){r.chat_id=e;r.invite_link=t;return this._request("revokeChatInviteLink",{form:r})}approveChatJoinRequest(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("approveChatJoinRequest",{form:r})}declineChatJoinRequest(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("declineChatJoinRequest",{form:r})}setChatPhoto(e,t,r={},n={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("photo",t,n);i.formData=e[0];i.qs.photo=e[1]}catch(e){return E.reject(e)}return this._request("setChatPhoto",i)}deleteChatPhoto(e,t={}){t.chat_id=e;return this._request("deleteChatPhoto",{form:t})}setChatTitle(e,t,r={}){r.chat_id=e;r.title=t;return this._request("setChatTitle",{form:r})}setChatDescription(e,t,r={}){r.chat_id=e;r.description=t;return this._request("setChatDescription",{form:r})}pinChatMessage(e,t,r={}){r.chat_id=e;r.message_id=t;return this._request("pinChatMessage",{form:r})}unpinChatMessage(e,t={}){t.chat_id=e;return this._request("unpinChatMessage",{form:t})}unpinAllChatMessages(e,t={}){t.chat_id=e;return this._request("unpinAllChatMessages",{form:t})}answerCallbackQuery(e,t={}){if(typeof t!=="object"){_("The method signature answerCallbackQuery(callbackQueryId, text, showAlert) has been deprecated since v0.27.1");t={callback_query_id:arguments[0],text:arguments[1],show_alert:arguments[2]}}if(typeof e==="object"){_("The method signature answerCallbackQuery([options]) has been deprecated since v0.29.0");t=e}else{t.callback_query_id=e}return this._request("answerCallbackQuery",{form:t})}setMyCommands(e,t={}){t.commands=stringify(e);return this._request("setMyCommands",{form:t})}getMyCommands(e={}){return this._request("getMyCommands",{form:e})}deleteMyCommands(e={}){return this._request("deleteMyCommands",{form:e})}editMessageText(e,t={}){t.text=e;return this._request("editMessageText",{form:t})}editMessageCaption(e,t={}){t.caption=e;return this._request("editMessageCaption",{form:t})}editMessageMedia(e,t={}){const r=/attach:\/\/.+/;if(typeof e.media==="string"&&r.test(e.media)){const r={qs:t};r.formData={};const i=Object.assign({},e);delete i.media;try{const t=String(0);const[o]=this._formatSendData(t,e.media.replace("attach://",""),e.fileOptions);if(o){r.formData[t]=o[t];i.media=`attach://${t}`}else{throw new n.FatalError(`Failed to process the replacement action for your ${e.type}`)}}catch(e){return E.reject(e)}r.qs.media=JSON.stringify(i);return this._request("editMessageMedia",r)}t.media=stringify(e);return this._request("editMessageMedia",{form:t})}editMessageReplyMarkup(e,t={}){t.reply_markup=e;return this._request("editMessageReplyMarkup",{form:t})}getUserProfilePhotos(e,t={}){if(typeof t!=="object"){_("The method signature getUserProfilePhotos(userId, offset, limit) has been deprecated since v0.25.0");t={offset:arguments[1],limit:arguments[2]}}t.user_id=e;return this._request("getUserProfilePhotos",{form:t})}sendLocation(e,t,r,n={}){n.chat_id=e;n.latitude=t;n.longitude=r;return this._request("sendLocation",{form:n})}editMessageLiveLocation(e,t,r={}){r.latitude=e;r.longitude=t;return this._request("editMessageLiveLocation",{form:r})}stopMessageLiveLocation(e={}){return this._request("stopMessageLiveLocation",{form:e})}sendVenue(e,t,r,n,i,o={}){o.chat_id=e;o.latitude=t;o.longitude=r;o.title=n;o.address=i;return this._request("sendVenue",{form:o})}sendContact(e,t,r,n={}){n.chat_id=e;n.phone_number=t;n.first_name=r;return this._request("sendContact",{form:n})}sendPoll(e,t,r,n={}){n.chat_id=e;n.question=t;n.options=stringify(r);return this._request("sendPoll",{form:n})}stopPoll(e,t,r={}){r.chat_id=e;r.message_id=t;return this._request("stopPoll",{form:r})}getFile(e,t={}){t.file_id=e;return this._request("getFile",{form:t})}getFileLink(e,t={}){return this.getFile(e,t).then((e=>`${this.options.baseApiUrl}/file/bot${this.token}/${e.file_path}`))}getFileStream(e,t={}){const r=new h.PassThrough;r.path=e;this.getFileLink(e,t).then((e=>{r.emit("info",{uri:e});b(l(Object.assign({uri:e},this.options.request)),r)})).catch((e=>{r.emit("error",e)}));return r}downloadFile(e,t,r={}){let n;let i;const o=new E(((e,t)=>{n=e;i=t}));const s=this.getFileStream(e,r);s.on("info",(e=>{const r=e.uri.slice(e.uri.lastIndexOf("/")+1);const o=g.join(t,r);b(s,v.createWriteStream(o),(e=>{if(e){return i(e)}return n(o)}))}));s.on("error",(e=>{i(e)}));return o}onText(e,t){this._textRegexpCallbacks.push({regexp:e,callback:t})}removeTextListener(e){const t=this._textRegexpCallbacks.findIndex((t=>String(t.regexp)===String(e)));if(t===-1){return null}return this._textRegexpCallbacks.splice(t,1)[0]}clearTextListeners(){this._textRegexpCallbacks=[]}onReplyToMessage(e,t,r){const n=++this._replyListenerId;this._replyListeners.push({id:n,chatId:e,messageId:t,callback:r});return n}removeReplyListener(e){const t=this._replyListeners.findIndex((t=>t.id===e));if(t===-1){return null}return this._replyListeners.splice(t,1)[0]}clearReplyListeners(){this._replyListeners=[]}getChat(e,t={}){t.chat_id=e;return this._request("getChat",{form:t})}getChatAdministrators(e,t={}){t.chat_id=e;return this._request("getChatAdministrators",{form:t})}getChatMembersCount(e,t={}){_('The method "getChatMembersCount" is deprecated since Telegram Bot API v5.3, replace it with "getChatMemberCount"');t.chat_id=e;return this._request("getChatMembersCount",{form:t})}getChatMemberCount(e,t={}){t.chat_id=e;return this._request("getChatMemberCount",{form:t})}getChatMember(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("getChatMember",{form:r})}leaveChat(e,t={}){t.chat_id=e;return this._request("leaveChat",{form:t})}setChatStickerSet(e,t,r={}){r.chat_id=e;r.sticker_set_name=t;return this._request("setChatStickerSet",{form:r})}deleteChatStickerSet(e,t={}){t.chat_id=e;return this._request("deleteChatStickerSet",{form:t})}sendGame(e,t,r={}){r.chat_id=e;r.game_short_name=t;return this._request("sendGame",{form:r})}setGameScore(e,t,r={}){r.user_id=e;r.score=t;return this._request("setGameScore",{form:r})}getGameHighScores(e,t={}){t.user_id=e;return this._request("getGameHighScores",{form:t})}deleteMessage(e,t,r={}){r.chat_id=e;r.message_id=t;return this._request("deleteMessage",{form:r})}sendInvoice(e,t,r,n,i,o,s,a,u={}){u.chat_id=e;u.title=t;u.description=r;u.payload=n;u.provider_token=i;u.start_parameter=o;u.currency=s;u.prices=stringify(a);u.provider_data=stringify(u.provider_data);return this._request("sendInvoice",{form:u})}answerShippingQuery(e,t,r={}){r.shipping_query_id=e;r.ok=t;r.shipping_options=stringify(r.shipping_options);return this._request("answerShippingQuery",{form:r})}answerPreCheckoutQuery(e,t,r={}){r.pre_checkout_query_id=e;r.ok=t;return this._request("answerPreCheckoutQuery",{form:r})}getStickerSet(e,t={}){t.name=e;return this._request("getStickerSet",{form:t})}uploadStickerFile(e,t,r={},n={}){const i={qs:r};i.qs.user_id=e;try{const e=this._formatSendData("png_sticker",t,n);i.formData=e[0];i.qs.png_sticker=e[1]}catch(e){return E.reject(e)}return this._request("uploadStickerFile",i)}createNewStickerSet(e,t,r,n,i,o={},s={}){const a={qs:o};a.qs.user_id=e;a.qs.name=t;a.qs.title=r;a.qs.emojis=i;a.qs.mask_position=stringify(o.mask_position);try{const e=this._formatSendData("png_sticker",n,s);a.formData=e[0];a.qs.png_sticker=e[1]}catch(e){return E.reject(e)}return this._request("createNewStickerSet",a)}addStickerToSet(e,t,r,n,i={},o={}){const s={qs:i};s.qs.user_id=e;s.qs.name=t;s.qs.emojis=n;s.qs.mask_position=stringify(i.mask_position);try{const e=this._formatSendData("png_sticker",r,o);s.formData=e[0];s.qs.png_sticker=e[1]}catch(e){return E.reject(e)}return this._request("addStickerToSet",s)}setStickerPositionInSet(e,t,r={}){r.sticker=e;r.position=t;return this._request("setStickerPositionInSet",{form:r})}deleteStickerFromSet(e,t={}){t.sticker=e;return this._request("deleteStickerFromSet",{form:t})}sendMediaGroup(e,t,r={}){const n={qs:r};n.qs.chat_id=e;n.formData={};const i=[];let o=0;for(const e of t){const t=Object.assign({},e);delete t.media;delete t.fileOptions;try{const r=String(o);const[i,s]=this._formatSendData(r,e.media,e.fileOptions);if(i){n.formData[r]=i[r];t.media=`attach://${r}`}else{t.media=s}}catch(e){return E.reject(e)}i.push(t);o++}n.qs.media=JSON.stringify(i);return this._request("sendMediaGroup",n)}}e.exports=TelegramBot},76799:(e,t,r)=>{const n=r(5131);const i=r(40942)("node-telegram-bot-api");const o=r(39846)("node-telegram-bot-api");const s=409;class TelegramBotPolling{constructor(e){this.bot=e;this.options=typeof e.options.polling==="boolean"?{}:e.options.polling;this.options.interval=typeof this.options.interval==="number"?this.options.interval:300;this.options.params=typeof this.options.params==="object"?this.options.params:{};this.options.params.offset=typeof this.options.params.offset==="number"?this.options.params.offset:0;this.options.params.timeout=typeof this.options.params.timeout==="number"?this.options.params.timeout:10;if(typeof this.options.timeout==="number"){o("`options.polling.timeout` is deprecated. Use `options.polling.params` instead.");this.options.params.timeout=this.options.timeout}this._lastUpdate=0;this._lastRequest=null;this._abort=false;this._pollingTimeout=null}start(e={}){if(this._lastRequest){if(!e.restart){return Promise.resolve()}return this.stop({cancel:true,reason:"Polling restart"}).then((()=>this._polling()))}return this._polling()}stop(e={}){if(!this._lastRequest){return Promise.resolve()}const t=this._lastRequest;this._lastRequest=null;clearTimeout(this._pollingTimeout);if(e.cancel){const r=e.reason||"Polling stop";t.cancel(r);return Promise.resolve()}this._abort=true;return t.finally((()=>{this._abort=false}))}isPolling(){return!!this._lastRequest}_error(e){if(!this.bot.listeners("polling_error").length){return console.error("error: [polling_error] %j",e)}return this.bot.emit("polling_error",e)}_polling(){this._lastRequest=this._getUpdates().then((e=>{this._lastUpdate=Date.now();i("polling data %j",e);e.forEach((e=>{this.options.params.offset=e.update_id+1;i("updated offset: %s",this.options.params.offset);try{this.bot.processUpdate(e)}catch(e){e._processing=true;throw e}}));return null})).catch((e=>{i("polling error: %s",e.message);if(!e._processing){return this._error(e)}delete e._processing;if(!this.bot.options.badRejection){return this._error(e)}const t={offset:this.options.params.offset,limit:1,timeout:0};return this.bot.getUpdates(t).then((()=>this._error(e))).catch((t=>{const r="https://github.com/yagop/node-telegram-bot-api/issues/36#issuecomment-268532067";console.error("error: Internal handling of The Offset Infinite Loop failed");console.error(`error: Due to error '${t}'`);console.error("error: You may receive already-processed updates on app restart");console.error(`error: Please see ${r} for more information`);return this.bot.emit("error",new n.FatalError(e))}))})).finally((()=>{if(this._abort){i("Polling is aborted!")}else{i("setTimeout for %s miliseconds",this.options.interval);this._pollingTimeout=setTimeout((()=>this._polling()),this.options.interval)}}));return this._lastRequest}_unsetWebHook(){i("unsetting webhook");return this.bot._request("setWebHook")}_getUpdates(){i("polling with options: %j",this.options.params);return this.bot.getUpdates(this.options.params).catch((e=>{if(e.response&&e.response.statusCode===s){return this._unsetWebHook().then((()=>this.bot.getUpdates(this.options.params)))}throw e}))}}e.exports=TelegramBotPolling},83890:(e,t,r)=>{const n=r(5131);const i=r(40942)("node-telegram-bot-api");const o=r(95687);const s=r(13685);const a=r(57147);const u=r(92378);const c=r(21168);class TelegramBotWebHook{constructor(e){this.bot=e;this.options=typeof e.options.webHook==="boolean"?{}:e.options.webHook;this.options.host=this.options.host||"0.0.0.0";this.options.port=this.options.port||8443;this.options.https=this.options.https||{};this.options.healthEndpoint=this.options.healthEndpoint||"/healthz";this._healthRegex=new RegExp(this.options.healthEndpoint);this._webServer=null;this._open=false;this._requestListener=this._requestListener.bind(this);this._parseBody=this._parseBody.bind(this);if(this.options.key&&this.options.cert){i("HTTPS WebHook enabled (by key/cert)");this.options.https.key=a.readFileSync(this.options.key);this.options.https.cert=a.readFileSync(this.options.cert);this._webServer=o.createServer(this.options.https,this._requestListener)}else if(this.options.pfx){i("HTTPS WebHook enabled (by pfx)");this.options.https.pfx=a.readFileSync(this.options.pfx);this._webServer=o.createServer(this.options.https,this._requestListener)}else if(Object.keys(this.options.https).length){i("HTTPS WebHook enabled by (https)");this._webServer=o.createServer(this.options.https,this._requestListener)}else{i("HTTP WebHook enabled");this._webServer=s.createServer(this._requestListener)}}open(){if(this.isOpen()){return c.resolve()}return new c((e=>{this._webServer.listen(this.options.port,this.options.host,(()=>{i("WebHook listening on port %s",this.options.port);this._open=true;return e()}))}))}close(){if(!this.isOpen()){return c.resolve()}return new c(((e,t)=>{this._webServer.close((r=>{if(r)return t(r);this._open=false;return e()}))}))}isOpen(){return this._open}_error(e){if(!this.bot.listeners("webhook_error").length){return console.error("error: [webhook_error] %j",e)}return this.bot.emit("webhook_error",e)}_parseBody(e,t){if(e){return this._error(new n.FatalError(e))}let r;try{r=JSON.parse(t.toString())}catch(e){return this._error(new n.ParseError(e.message))}return this.bot.processUpdate(r)}_requestListener(e,t){i("WebHook request URL: %s",e.url);i("WebHook request headers: %j",e.headers);if(e.url.indexOf(this.bot.token)!==-1){if(e.method!=="POST"){i("WebHook request isn't a POST");t.statusCode=418;t.end()}else{e.pipe(u(this._parseBody)).on("finish",(()=>t.end("OK")))}}else if(this._healthRegex.test(e.url)){i("WebHook health check passed");t.statusCode=200;t.end("OK")}else{i("WebHook request unauthorized");t.statusCode=401;t.end()}}}e.exports=TelegramBotWebHook},66477:(e,t,r)=>{var n=r(6113);function sha(e,t,r){return n.createHmac(r,e).update(t).digest("base64")}function rsa(e,t){return n.createSign("RSA-SHA1").update(t).sign(e,"base64")}function rfc3986(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}function map(e){var t,r,n=[];for(t in e){r=e[t];if(Array.isArray(r))for(var i=0;it?1:e{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty;var o=Object.prototype.toString;var s=r(3641);var a=Object.prototype.propertyIsEnumerable;var u=!a.call({toString:null},"toString");var c=a.call((function(){}),"prototype");var l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var equalsConstructorPrototype=function(e){var t=e.constructor;return t&&t.prototype===e};var d={$applicationCache:true,$console:true,$external:true,$frame:true,$frameElement:true,$frames:true,$innerHeight:true,$innerWidth:true,$onmozfullscreenchange:true,$onmozfullscreenerror:true,$outerHeight:true,$outerWidth:true,$pageXOffset:true,$pageYOffset:true,$parent:true,$scrollLeft:true,$scrollTop:true,$scrollX:true,$scrollY:true,$self:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$window:true};var h=function(){if(typeof window==="undefined"){return false}for(var e in window){try{if(!d["$"+e]&&i.call(window,e)&&window[e]!==null&&typeof window[e]==="object"){try{equalsConstructorPrototype(window[e])}catch(e){return true}}}catch(e){return true}}return false}();var equalsConstructorPrototypeIfNotBuggy=function(e){if(typeof window==="undefined"||!h){return equalsConstructorPrototype(e)}try{return equalsConstructorPrototype(e)}catch(e){return false}};n=function keys(e){var t=e!==null&&typeof e==="object";var r=o.call(e)==="[object Function]";var n=s(e);var a=t&&o.call(e)==="[object String]";var d=[];if(!t&&!r&&!n){throw new TypeError("Object.keys called on a non-object")}var h=c&&r;if(a&&e.length>0&&!i.call(e,0)){for(var m=0;m0){for(var g=0;g{"use strict";var n=Array.prototype.slice;var i=r(3641);var o=Object.keys;var s=o?function keys(e){return o(e)}:r(85161);var a=Object.keys;s.shim=function shimObjectKeys(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);if(!e){Object.keys=function keys(e){if(i(e)){return a(n.call(e))}return a(e)}}}else{Object.keys=s}return Object.keys||s};e.exports=s},3641:e=>{"use strict";var t=Object.prototype.toString;e.exports=function isArguments(e){var r=t.call(e);var n=r==="[object Arguments]";if(!n){n=r!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&t.call(e.callee)==="[object Function]"}return n}},81428:(e,t,r)=>{var n=r(52165);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},46505:function(e){(function(){var t,r,n,i,o,s;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof process!=="undefined"&&process!==null&&process.hrtime){e.exports=function(){return(t()-o)/1e6};r=process.hrtime;t=function(){var e;e=r();return e[0]*1e9+e[1]};i=t();s=process.uptime()*1e9;o=i-s}else if(Date.now){e.exports=function(){return Date.now()-n};n=Date.now()}else{e.exports=function(){return(new Date).getTime()-n};n=(new Date).getTime()}}).call(this)},60616:e=>{"use strict";if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){e.exports={nextTick:nextTick}}else{e.exports=process}function nextTick(e,t,r,n){if(typeof e!=="function"){throw new TypeError('"callback" argument must be a function')}var i=arguments.length;var o,s;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function afterTickOne(){e.call(null,t)}));case 3:return process.nextTick((function afterTickTwo(){e.call(null,t,r)}));case 4:return process.nextTick((function afterTickThree(){e.call(null,t,r,n)}));default:o=new Array(i-1);s=0;while(s{"use strict";var n=r(85477);var i={};i.rules=r(3704).map((function(e){return{rule:e,suffix:e.replace(/^(\*\.|\!)/,""),punySuffix:-1,wildcard:e.charAt(0)==="*",exception:e.charAt(0)==="!"}}));i.endsWith=function(e,t){return e.indexOf(t,e.length-t.length)!==-1};i.findRule=function(e){var t=n.toASCII(e);return i.rules.reduce((function(e,r){if(r.punySuffix===-1){r.punySuffix=n.toASCII(r.suffix)}if(!i.endsWith(t,"."+r.punySuffix)&&t!==r.punySuffix){return e}return r}),null)};t.errorCodes={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."};i.validate=function(e){var t=n.toASCII(e);if(t.length<1){return"DOMAIN_TOO_SHORT"}if(t.length>255){return"DOMAIN_TOO_LONG"}var r=t.split(".");var i;for(var o=0;o63){return"LABEL_TOO_LONG"}if(i.charAt(0)==="-"){return"LABEL_STARTS_WITH_DASH"}if(i.charAt(i.length-1)==="-"){return"LABEL_ENDS_WITH_DASH"}if(!/^[a-z0-9\-]+$/.test(i)){return"LABEL_INVALID_CHARS"}}};t.parse=function(e){if(typeof e!=="string"){throw new TypeError("Domain name must be a string.")}var r=e.slice(0).toLowerCase();if(r.charAt(r.length-1)==="."){r=r.slice(0,r.length-1)}var o=i.validate(r);if(o){return{input:e,error:{message:t.errorCodes[o],code:o}}}var s={input:e,tld:null,sld:null,domain:null,subdomain:null,listed:false};var a=r.split(".");if(a[a.length-1]==="local"){return s}var handlePunycode=function(){if(!/xn--/.test(r)){return s}if(s.domain){s.domain=n.toASCII(s.domain)}if(s.subdomain){s.subdomain=n.toASCII(s.subdomain)}return s};var u=i.findRule(r);if(!u){if(a.length<2){return s}s.tld=a.pop();s.sld=a.pop();s.domain=[s.sld,s.tld].join(".");if(a.length){s.subdomain=a.pop()}return handlePunycode()}s.listed=true;var c=u.suffix.split(".");var l=a.slice(0,a.length-c.length);if(u.exception){l.push(c.shift())}s.tld=c.join(".");if(!l.length){return handlePunycode()}if(u.wildcard){c.unshift(l.pop());s.tld=c.join(".")}if(!l.length){return handlePunycode()}s.sld=l.pop();s.domain=[s.sld,s.tld].join(".");if(l.length){s.subdomain=l.join(".")}return handlePunycode()};t.get=function(e){if(!e){return null}return t.parse(e).domain||null};t.isValid=function(e){var r=t.parse(e);return Boolean(r.domain&&r.listed)}},33563:(e,t,r)=>{var n=r(81428);var i=r(90065);var o=r(57147);var noop=function(){};var s=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!s)return false;if(!o)return false;return(e instanceof(o.ReadStream||noop)||e instanceof(o.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,t,r,o){o=n(o);var s=false;e.on("close",(function(){s=true}));i(e,{readable:t,writable:r},(function(e){if(e)return o(e);s=true;o()}));var a=false;return function(t){if(s)return;if(a)return;a=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();o(t||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,t){return e.pipe(t)};var pump=function(){var e=Array.prototype.slice.call(arguments);var t=isFn(e[e.length-1]||noop)&&e.pop()||noop;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map((function(i,o){var s=o0;return destroyer(i,s,a,(function(e){if(!r)r=e;if(e)n.forEach(call);if(s)return;n.forEach(call);t(r)}))}));e.reduce(pipe)};e.exports=pump},55648:e=>{"use strict";var t=String.prototype.replace;var r=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},10279:(e,t,r)=>{"use strict";var n=r(47521);var i=r(46848);var o=r(55648);e.exports={formats:o,parse:i,stringify:n}},46848:(e,t,r)=>{"use strict";var n=r(92638);var i=Object.prototype.hasOwnProperty;var o={allowDots:false,allowPrototypes:false,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:false,strictNullHandling:false};var s=function parseQueryStringValues(e,t){var r={};var n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;var s=t.parameterLimit===Infinity?undefined:t.parameterLimit;var a=n.split(t.delimiter,s);for(var u=0;u=0;--i){var o;var s=e[i];if(s==="[]"&&r.parseArrays){o=[].concat(n)}else{o=r.plainObjects?Object.create(null):{};var a=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var u=parseInt(a,10);if(!r.parseArrays&&a===""){o={0:n}}else if(!isNaN(u)&&s!==a&&String(u)===a&&u>=0&&(r.parseArrays&&u<=r.arrayLimit)){o=[];o[u]=n}else if(a!=="__proto__"){o[a]=n}}n=o}return n};var a=function parseQueryStringKeys(e,t,r){if(!e){return}var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var o=/(\[[^[\]]*])/;var s=/(\[[^[\]]*])/g;var a=o.exec(n);var u=a?n.slice(0,a.index):n;var c=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)){if(!r.allowPrototypes){return}}c.push(u)}var l=0;while((a=s.exec(n))!==null&&l{"use strict";var n=r(92638);var i=r(55648);var o={brackets:function brackets(e){return e+"[]"},indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var s=Array.isArray;var a=Array.prototype.push;var pushToArray=function(e,t){a.apply(e,s(t)?t:[t])};var u=Date.prototype.toISOString;var c={delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,serializeDate:function serializeDate(e){return u.call(e)},skipNulls:false,strictNullHandling:false};var l=function stringify(e,t,r,i,o,a,u,l,d,h,m,g){var y=e;if(typeof u==="function"){y=u(t,y)}else if(y instanceof Date){y=h(y)}if(y===null){if(i){return a&&!g?a(t,c.encoder):t}y=""}if(typeof y==="string"||typeof y==="number"||typeof y==="boolean"||n.isBuffer(y)){if(a){var v=g?t:a(t,c.encoder);return[m(v)+"="+m(a(y,c.encoder))]}return[m(t)+"="+m(String(y))]}var b=[];if(typeof y==="undefined"){return b}var _;if(s(u)){_=u}else{var E=Object.keys(y);_=l?E.sort(l):E}for(var k=0;k<_.length;++k){var x=_[k];if(o&&y[x]===null){continue}if(s(y)){pushToArray(b,stringify(y[x],r(t,x),r,i,o,a,u,l,d,h,m,g))}else{pushToArray(b,stringify(y[x],t+(d?"."+x:"["+x+"]"),r,i,o,a,u,l,d,h,m,g))}}return b};e.exports=function(e,t){var r=e;var a=t?n.assign({},t):{};if(a.encoder!==null&&typeof a.encoder!=="undefined"&&typeof a.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var u=typeof a.delimiter==="undefined"?c.delimiter:a.delimiter;var d=typeof a.strictNullHandling==="boolean"?a.strictNullHandling:c.strictNullHandling;var h=typeof a.skipNulls==="boolean"?a.skipNulls:c.skipNulls;var m=typeof a.encode==="boolean"?a.encode:c.encode;var g=typeof a.encoder==="function"?a.encoder:c.encoder;var y=typeof a.sort==="function"?a.sort:null;var v=typeof a.allowDots==="undefined"?false:a.allowDots;var b=typeof a.serializeDate==="function"?a.serializeDate:c.serializeDate;var _=typeof a.encodeValuesOnly==="boolean"?a.encodeValuesOnly:c.encodeValuesOnly;if(typeof a.format==="undefined"){a.format=i["default"]}else if(!Object.prototype.hasOwnProperty.call(i.formatters,a.format)){throw new TypeError("Unknown format option provided.")}var E=i.formatters[a.format];var k;var x;if(typeof a.filter==="function"){x=a.filter;r=x("",r)}else if(s(a.filter)){x=a.filter;k=x}var C=[];if(typeof r!=="object"||r===null){return""}var O;if(a.arrayFormat in o){O=a.arrayFormat}else if("indices"in a){O=a.indices?"indices":"repeat"}else{O="indices"}var D=o[O];if(!k){k=Object.keys(r)}if(y){k.sort(y)}for(var B=0;B0?R+I:""}},92638:e=>{"use strict";var t=Object.prototype.hasOwnProperty;var r=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var n=function compactQueue(e){var t;while(e.length){var r=e.pop();t=r.obj[r.prop];if(Array.isArray(t)){var n=[];for(var i=0;i=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(i);continue}if(o<128){n=n+r[o];continue}if(o<2048){n=n+(r[192|o>>6]+r[128|o&63]);continue}if(o<55296||o>=57344){n=n+(r[224|o>>12]+r[128|o>>6&63]+r[128|o&63]);continue}i+=1;o=65536+((o&1023)<<10|t.charCodeAt(i)&1023);n+=r[240|o>>18]+r[128|o>>12&63]+r[128|o>>6&63]+r[128|o&63]}return n};var u=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var i=0;i{e.exports=r(79877).Duplex},54316:(e,t,r)=>{"use strict";var n=r(60616);var i=Object.keys||function(e){var t=[];for(var r in e){t.push(r)}return t};e.exports=Duplex;var o=Object.create(r(46789));o.inherits=r(21225);var s=r(19695);var a=r(94374);o.inherits(Duplex,s);{var u=i(a.prototype);for(var c=0;c{"use strict";e.exports=PassThrough;var n=r(14814);var i=Object.create(r(46789));i.inherits=r(21225);i.inherits(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},19695:(e,t,r)=>{"use strict";var n=r(60616);e.exports=Readable;var i=r(95480);var o;Readable.ReadableState=ReadableState;var s=r(82361).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length};var a=r(15097);var u=r(10682).Buffer;var c=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof c}var l=Object.create(r(46789));l.inherits=r(21225);var d=r(73837);var h=void 0;if(d&&d.debuglog){h=d.debuglog("stream")}else{h=function(){}}var m=r(25247);var g=r(64621);var y;l.inherits(Readable,a);var v=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(i(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){o=o||r(54316);e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.readableObjectMode;var i=e.highWaterMark;var s=e.readableHighWaterMark;var a=this.objectMode?16:16*1024;if(i||i===0)this.highWaterMark=i;else if(n&&(s||s===0))this.highWaterMark=s;else this.highWaterMark=a;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new m;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!y)y=r(66707).s;this.decoder=new y(e.encoding);this.encoding=e.encoding}}function Readable(e){o=o||r(54316);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}a.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=g.destroy;Readable.prototype._undestroy=g.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var n;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=u.from(e,t);t=""}n=true}}else{n=true}return readableAddChunk(this,e,t,false,n)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,n,i){var o=e._readableState;if(t===null){o.reading=false;onEofChunk(e,o)}else{var s;if(!i)s=chunkInvalid(o,t);if(s){e.emit("error",s)}else if(o.objectMode||t&&t.length>0){if(typeof t!=="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==u.prototype){t=_uint8ArrayToBuffer(t)}if(n){if(o.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,o,t,true)}else if(o.ended){e.emit("error",new Error("stream.push() after EOF"))}else{o.reading=false;if(o.decoder&&!r){t=o.decoder.write(t);if(o.objectMode||t.length!==0)addChunk(e,o,t,false);else maybeReadMore(e,o)}else{addChunk(e,o,t,false)}}}else if(!n){o.reading=false}}return needMoreData(o)}function addChunk(e,t,r,n){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(n)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length=b){e=b}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){h("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){h("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var n=t.needReadable;h("need readable",n);if(t.length===0||t.length-e0)i=fromList(e,t);else i=null;if(i===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(i!==null)this.emit("data",i);return i};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){h("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)n.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){h("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;n.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length1&&indexOf(i.pipes,e)!==-1)&&!u){h("false write response, pause",r._readableState.awaitDrain);r._readableState.awaitDrain++;c=true}r.pause()}}function onerror(t){h("onerror",t);unpipe();e.removeListener("error",onerror);if(EElistenerCount(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){h("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){h("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!i.flowing){h("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&EElistenerCount(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var n=t.pipes;var i=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var o=0;o=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var n;if(eo.length?o.length:e;if(s===o.length)i+=o;else i+=o.slice(0,e);e-=s;if(e===0){if(s===o.length){++n;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=o.slice(s)}break}++n}t.length-=n;return i}function copyFromBuffer(e,t){var r=u.allocUnsafe(e);var n=t.head;var i=1;n.data.copy(r);e-=n.data.length;while(n=n.next){var o=n.data;var s=e>o.length?o.length:e;o.copy(r,r.length-e,0,s);e-=s;if(e===0){if(s===o.length){++i;if(n.next)t.head=n.next;else t.head=t.tail=null}else{t.head=n;n.data=o.slice(s)}break}++i}t.length-=i;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;n.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,n=e.length;r{"use strict";e.exports=Transform;var n=r(54316);var i=Object.create(r(46789));i.inherits=r(21225);i.inherits(Transform,n);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var n=r.writecb;if(!n){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);n(e);var i=this._readableState;i.reading=false;if(i.needReadable||i.length{"use strict";var n=r(60616);e.exports=Writable;function WriteReq(e,t,r){this.chunk=e;this.encoding=t;this.callback=r;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var i=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;var o;Writable.WritableState=WritableState;var s=Object.create(r(46789));s.inherits=r(21225);var a={deprecate:r(68072)};var u=r(15097);var c=r(10682).Buffer;var l=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof l}var d=r(64621);s.inherits(Writable,u);function nop(){}function WritableState(e,t){o=o||r(54316);e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode;if(n)this.objectMode=this.objectMode||!!e.writableObjectMode;var i=e.highWaterMark;var s=e.writableHighWaterMark;var a=this.objectMode?16:16*1024;if(i||i===0)this.highWaterMark=i;else if(n&&(s||s===0))this.highWaterMark=s;else this.highWaterMark=a;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var h;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){h=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(h.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{h=function(e){return e instanceof this}}function Writable(e){o=o||r(54316);if(!h.call(Writable,this)&&!(this instanceof o)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);n.nextTick(t,r)}function validChunk(e,t,r,i){var o=true;var s=false;if(r===null){s=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){s=new TypeError("Invalid non-string/buffer chunk")}if(s){e.emit("error",s);n.nextTick(i,s);o=false}return o}Writable.prototype.write=function(e,t,r){var n=this._writableState;var i=false;var o=!n.objectMode&&_isUint8Array(e);if(o&&!c.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(o)t="buffer";else if(!t)t=n.defaultEncoding;if(typeof r!=="function")r=nop;if(n.ended)writeAfterEnd(this,r);else if(o||validChunk(this,n,e,r)){n.pendingcb++;i=writeOrBuffer(this,n,o,e,t,r)}return i};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=c.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,n,i,o){if(!r){var s=decodeChunk(t,n,i);if(n!==s){r=true;i="buffer";n=s}}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length{"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var n=r(10682).Buffer;var i=r(73837);function copyBuffer(e,t,r){e.copy(t,r)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=function concat(e){if(this.length===0)return n.alloc(0);if(this.length===1)return this.head.data;var t=n.allocUnsafe(e>>>0);var r=this.head;var i=0;while(r){copyBuffer(r.data,t,i);i+=r.data.length;r=r.next}return t};return BufferList}();if(i&&i.inspect&&i.inspect.custom){e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e}}},64621:(e,t,r)=>{"use strict";var n=r(60616);function destroy(e,t){var r=this;var i=this._readableState&&this._readableState.destroyed;var o=this._writableState&&this._writableState.destroyed;if(i||o){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){n.nextTick(emitErrorNT,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){n.nextTick(emitErrorNT,r,e);if(r._writableState){r._writableState.errorEmitted=true}}else if(t){t(e)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},15097:(e,t,r)=>{e.exports=r(12781)},10682:(e,t,r)=>{var n=r(14300);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},79877:(e,t,r)=>{var n=r(12781);if(process.env.READABLE_STREAM==="disable"&&n){e.exports=n;t=e.exports=n.Readable;t.Readable=n.Readable;t.Writable=n.Writable;t.Duplex=n.Duplex;t.Transform=n.Transform;t.PassThrough=n.PassThrough;t.Stream=n}else{t=e.exports=r(19695);t.Stream=n||t;t.Readable=t;t.Writable=r(94374);t.Duplex=r(54316);t.Transform=r(14814);t.PassThrough=r(16157)}},43781:(e,t,r)=>{"use strict";var n=r(56488),i=r(70112),o=r(46123),s=r(88193);e.exports=function(e){var t="Please verify options";if(!s(e)){throw new TypeError(t)}if(!o(e.request)){throw new TypeError(t+".request")}if(!i(e.expose)||e.expose.length===0){throw new TypeError(t+".expose")}var r=n({PromiseImpl:e.PromiseImpl,constructorMixin:e.constructorMixin});var a=e.request.Request.prototype.init;e.request.Request.prototype.init=function RP$initInterceptor(e){if(s(e)&&!this._callback&&!this._rp_promise){r.init.call(this,e)}return a.apply(this,arguments)};var u=false;for(var c=0;c{"use strict";function RequestError(e,t,r){this.name="RequestError";this.message=String(e);this.cause=e;this.error=e;this.options=t;this.response=r;if(Error.captureStackTrace){Error.captureStackTrace(this)}}RequestError.prototype=Object.create(Error.prototype);RequestError.prototype.constructor=RequestError;function StatusCodeError(e,t,r,n){this.name="StatusCodeError";this.statusCode=e;this.message=e+" - "+(JSON&&JSON.stringify?JSON.stringify(t):t);this.error=t;this.options=r;this.response=n;if(Error.captureStackTrace){Error.captureStackTrace(this)}}StatusCodeError.prototype=Object.create(Error.prototype);StatusCodeError.prototype.constructor=StatusCodeError;function TransformError(e,t,r){this.name="TransformError";this.message=String(e);this.cause=e;this.error=e;this.options=t;this.response=r;if(Error.captureStackTrace){Error.captureStackTrace(this)}}TransformError.prototype=Object.create(Error.prototype);TransformError.prototype.constructor=TransformError;e.exports={RequestError:RequestError,StatusCodeError:StatusCodeError,TransformError:TransformError}},56488:(e,t,r)=>{"use strict";var n=r(47570),i=r(46123),o=r(88193),s=r(79639),a=r(68537);e.exports=function(e){var t="Please verify options";if(!o(e)){throw new TypeError(t)}if(!i(e.PromiseImpl)){throw new TypeError(t+".PromiseImpl")}if(!a(e.constructorMixin)&&!i(e.constructorMixin)){throw new TypeError(t+".PromiseImpl")}var r=e.PromiseImpl;var u=e.constructorMixin;var c={};c.init=function(e){var t=this;t._rp_promise=new r((function(e,r){t._rp_resolve=e;t._rp_reject=r;if(u){u.apply(t,arguments)}}));t._rp_callbackOrig=e.callback;e.callback=t.callback=function RP$callback(e,r,n){c.callback.call(t,e,r,n)};if(s(e.method)){e.method=e.method.toUpperCase()}e.transform=e.transform||c.defaultTransformations[e.method];t._rp_options=e;t._rp_options.simple=e.simple!==false;t._rp_options.resolveWithFullResponse=e.resolveWithFullResponse===true;t._rp_options.transform2xxOnly=e.transform2xxOnly===true};c.defaultTransformations={HEAD:function(e,t,r){return r?t:t.headers}};c.callback=function(e,t,o){var s=this;var a=false,u=null;if(i(s._rp_callbackOrig)){try{s._rp_callbackOrig.apply(s,arguments)}catch(e){a=true;u=e}}var c=!e&&/^2/.test(""+t.statusCode);if(e){s._rp_reject(new n.RequestError(e,s._rp_options,t))}else if(s._rp_options.simple&&!c){if(i(s._rp_options.transform)&&s._rp_options.transform2xxOnly===false){new r((function(e){e(s._rp_options.transform(o,t,s._rp_options.resolveWithFullResponse))})).then((function(e){s._rp_reject(new n.StatusCodeError(t.statusCode,o,s._rp_options,e))})).catch((function(e){s._rp_reject(new n.TransformError(e,s._rp_options,t))}))}else{s._rp_reject(new n.StatusCodeError(t.statusCode,o,s._rp_options,t))}}else{if(i(s._rp_options.transform)&&(c||s._rp_options.transform2xxOnly===false)){new r((function(e){e(s._rp_options.transform(o,t,s._rp_options.resolveWithFullResponse))})).then((function(e){s._rp_resolve(e)})).catch((function(e){s._rp_reject(new n.TransformError(e,s._rp_options,t))}))}else if(s._rp_options.resolveWithFullResponse){s._rp_resolve(t)}else{s._rp_resolve(o)}}if(a){throw u}};c.exposePromiseMethod=function(e,t,r,n,i){i=i||n;if(i in e){throw new Error('Unable to expose method "'+i+'"')}e[i]=function RP$exposed(){var e=t||this;return e[r][n].apply(e[r],arguments)}};c.exposePromise=function(e,t,r,n){n=n||"promise";if(n in e){throw new Error('Unable to expose method "'+n+'"')}e[n]=function RP$promise(){var e=t||this;return e[r]}};return c}},78928:(e,t,r)=>{"use strict";e=r.nmd(e);var n=r(21168).getNewLibraryCopy(),i=r(43781),o=r(96515);try{var s=o(require.cache,(function(){return r(59650)}),(function(){r(1452)}),e)}catch(e){var a=r(22037).EOL;console.error(a+"###"+a+'### The "request" library is not installed automatically anymore.'+a+'### But is a dependency of "request-promise".'+a+"### Please install it with:"+a+"### npm install request --save"+a+"###"+a);throw e}n.config({cancellation:true});i({request:s,PromiseImpl:n,expose:["then","catch","finally","cancel","promise"],constructorMixin:function(e,t,r){var n=this;r((function(){n.abort()}))}});s.bindCLS=function RP$bindCLS(){throw new Error("CLS support was dropped. To get it back read: https://github.com/request/request-promise/wiki/Getting-Back-Support-for-Continuation-Local-Storage")};e.exports=s},59650:(e,t,r)=>{"use strict";var n=r(71559);var i=r(10491);var o=r(99227);var s=o.paramsHaveRequestBody;function initParams(e,t,r){if(typeof t==="function"){r=t}var i={};if(t!==null&&typeof t==="object"){n(i,t,{uri:e})}else if(typeof e==="string"){n(i,{uri:e})}else{n(i,e)}i.callback=r||i.callback;return i}function request(e,t,r){if(typeof e==="undefined"){throw new Error("undefined is not a valid uri or options object.")}var n=initParams(e,t,r);if(n.method==="HEAD"&&s(n)){throw new Error("HTTP HEAD requests MUST NOT include a request body.")}return new request.Request(n)}function verbFunc(e){var t=e.toUpperCase();return function(e,r,n){var i=initParams(e,r,n);i.method=t;return request(i,i.callback)}}request.get=verbFunc("get");request.head=verbFunc("head");request.options=verbFunc("options");request.post=verbFunc("post");request.put=verbFunc("put");request.patch=verbFunc("patch");request.del=verbFunc("delete");request["delete"]=verbFunc("delete");request.jar=function(e){return i.jar(e)};request.cookie=function(e){return i.parse(e)};function wrapRequestMethod(e,t,r,i){return function(o,s,a){var u=initParams(o,s,a);var c={};n(true,c,t,u);c.pool=u.pool||t.pool;if(i){c.method=i.toUpperCase()}if(typeof r==="function"){e=r}return e(c,c.callback)}}request.defaults=function(e,t){var r=this;e=e||{};if(typeof e==="function"){t=e;e={}}var n=wrapRequestMethod(r,e,t);var i=["get","head","post","put","patch","del","delete"];i.forEach((function(i){n[i]=wrapRequestMethod(r[i],e,t,i)}));n.cookie=wrapRequestMethod(r.cookie,e,t);n.jar=r.jar;n.defaults=r.defaults;return n};request.forever=function(e,t){var r={};if(t){n(r,t)}if(e){r.agentOptions=e}r.forever=true;return request.defaults(r)};e.exports=request;request.Request=r(27979);request.initParams=initParams;Object.defineProperty(request,"debug",{enumerable:true,get:function(){return request.Request.debug},set:function(e){request.Request.debug=e}})},11892:(e,t,r)=>{"use strict";var n=r(64101);var i=r(76876);var o=r(99227);var s=o.md5;var a=o.toBase64;function Auth(e){this.request=e;this.hasAuth=false;this.sentAuth=false;this.bearerToken=null;this.user=null;this.pass=null}Auth.prototype.basic=function(e,t,r){var n=this;if(typeof e!=="string"||t!==undefined&&typeof t!=="string"){n.request.emit("error",new Error("auth() received invalid user or password"))}n.user=e;n.pass=t;n.hasAuth=true;var i=e+":"+(t||"");if(r||typeof r==="undefined"){var o="Basic "+a(i);n.sentAuth=true;return o}};Auth.prototype.bearer=function(e,t){var r=this;r.bearerToken=e;r.hasAuth=true;if(t||typeof t==="undefined"){if(typeof e==="function"){e=e()}var n="Bearer "+(e||"");r.sentAuth=true;return n}};Auth.prototype.digest=function(e,t,r){var n=this;var o={};var a=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;while(true){var u=a.exec(r);if(!u){break}o[u[1]]=u[2]||u[3]}var ha1Compute=function(e,t,r,n,i,o){var a=s(t+":"+r+":"+n);if(e&&e.toLowerCase()==="md5-sess"){return s(a+":"+i+":"+o)}else{return a}};var c=/(^|,)\s*auth\s*($|,)/.test(o.qop)&&"auth";var l=c&&"00000001";var d=c&&i().replace(/-/g,"");var h=ha1Compute(o.algorithm,n.user,o.realm,n.pass,o.nonce,d);var m=s(e+":"+t);var g=c?s(h+":"+o.nonce+":"+l+":"+d+":"+c+":"+m):s(h+":"+o.nonce+":"+m);var y={username:n.user,realm:o.realm,nonce:o.nonce,uri:t,qop:c,response:g,nc:l,cnonce:d,algorithm:o.algorithm,opaque:o.opaque};r=[];for(var v in y){if(y[v]){if(v==="qop"||v==="nc"||v==="algorithm"){r.push(v+"="+y[v])}else{r.push(v+'="'+y[v]+'"')}}}r="Digest "+r.join(", ");n.sentAuth=true;return r};Auth.prototype.onRequest=function(e,t,r,n){var i=this;var o=i.request;var s;if(n===undefined&&e===undefined){i.request.emit("error",new Error("no auth mechanism defined"))}else if(n!==undefined){s=i.bearer(n,r)}else{s=i.basic(e,t,r)}if(s){o.setHeader("authorization",s)}};Auth.prototype.onResponse=function(e){var t=this;var r=t.request;if(!t.hasAuth||t.sentAuth){return null}var i=n(e.headers);var o=i.get("www-authenticate");var s=o&&o.split(" ")[0].toLowerCase();r.debug("reauth",s);switch(s){case"basic":return t.basic(t.user,t.pass,true);case"bearer":return t.bearer(t.bearerToken,true);case"digest":return t.digest(r.method,r.path,o)}};t.g=Auth},10491:(e,t,r)=>{"use strict";var n=r(1452);var i=n.Cookie;var o=n.CookieJar;t.parse=function(e){if(e&&e.uri){e=e.uri}if(typeof e!=="string"){throw new Error("The cookie function only accepts STRING as param")}return i.parse(e,{loose:true})};function RequestJar(e){var t=this;t._jar=new o(e,{looseMode:true})}RequestJar.prototype.setCookie=function(e,t,r){var n=this;return n._jar.setCookieSync(e,t,r||{})};RequestJar.prototype.getCookieString=function(e){var t=this;return t._jar.getCookieStringSync(e)};RequestJar.prototype.getCookies=function(e){var t=this;return t._jar.getCookiesSync(e)};t.jar=function(e){return new RequestJar(e)}},14575:e=>{"use strict";function formatHostname(e){return e.replace(/^\.*/,".").toLowerCase()}function parseNoProxyZone(e){e=e.trim().toLowerCase();var t=e.split(":",2);var r=formatHostname(t[0]);var n=t[1];var i=e.indexOf(":")>-1;return{hostname:r,port:n,hasPort:i}}function uriInNoProxy(e,t){var r=e.port||(e.protocol==="https:"?"443":"80");var n=formatHostname(e.hostname);var i=t.split(",");return i.map(parseNoProxyZone).some((function(e){var t=n.indexOf(e.hostname);var i=t>-1&&t===n.length-e.hostname.length;if(e.hasPort){return r===e.port&&i}return i}))}function getProxyFromURI(e){var t=process.env.NO_PROXY||process.env.no_proxy||"";if(t==="*"){return null}if(t!==""&&uriInNoProxy(e,t)){return null}if(e.protocol==="http:"){return process.env.HTTP_PROXY||process.env.http_proxy||null}if(e.protocol==="https:"){return process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||null}return null}e.exports=getProxyFromURI},71079:(e,t,r)=>{"use strict";var n=r(57147);var i=r(63477);var o=r(66303);var s=r(71559);function Har(e){this.request=e}Har.prototype.reducer=function(e,t){if(e[t.name]===undefined){e[t.name]=t.value;return e}var r=[e[t.name],t.value];e[t.name]=r;return e};Har.prototype.prep=function(e){e.queryObj={};e.headersObj={};e.postData.jsonObj=false;e.postData.paramsObj=false;if(e.queryString&&e.queryString.length){e.queryObj=e.queryString.reduce(this.reducer,{})}if(e.headers&&e.headers.length){e.headersObj=e.headers.reduceRight((function(e,t){e[t.name]=t.value;return e}),{})}if(e.cookies&&e.cookies.length){var t=e.cookies.map((function(e){return e.name+"="+e.value}));if(t.length){e.headersObj.cookie=t.join("; ")}}function some(t){return t.some((function(t){return e.postData.mimeType.indexOf(t)===0}))}if(some(["multipart/mixed","multipart/related","multipart/form-data","multipart/alternative"])){e.postData.mimeType="multipart/form-data"}else if(some(["application/x-www-form-urlencoded"])){if(!e.postData.params){e.postData.text=""}else{e.postData.paramsObj=e.postData.params.reduce(this.reducer,{});e.postData.text=i.stringify(e.postData.paramsObj)}}else if(some(["text/json","text/x-json","application/json","application/x-json"])){e.postData.mimeType="application/json";if(e.postData.text){try{e.postData.jsonObj=JSON.parse(e.postData.text)}catch(t){this.request.debug(t);e.postData.mimeType="text/plain"}}}return e};Har.prototype.options=function(e){if(!e.har){return e}var t={};s(t,e.har);if(t.log&&t.log.entries){t=t.log.entries[0]}t.url=t.url||e.url||e.uri||e.baseUrl||"/";t.httpVersion=t.httpVersion||"HTTP/1.1";t.queryString=t.queryString||[];t.headers=t.headers||[];t.cookies=t.cookies||[];t.postData=t.postData||{};t.postData.mimeType=t.postData.mimeType||"application/octet-stream";t.bodySize=0;t.headersSize=0;t.postData.size=0;if(!o.request(t)){return e}var r=this.prep(t);if(r.url){e.url=r.url}if(r.method){e.method=r.method}if(Object.keys(r.queryObj).length){e.qs=r.queryObj}if(Object.keys(r.headersObj).length){e.headers=r.headersObj}function test(e){return r.postData.mimeType.indexOf(e)===0}if(test("application/x-www-form-urlencoded")){e.form=r.postData.paramsObj}else if(test("application/json")){if(r.postData.jsonObj){e.body=r.postData.jsonObj;e.json=true}}else if(test("multipart/form-data")){e.formData={};r.postData.params.forEach((function(t){var r={};if(!t.fileName&&!t.contentType){e.formData[t.name]=t.value;return}if(t.fileName&&!t.value){r.value=n.createReadStream(t.fileName)}else if(t.value){r.value=t.value}if(t.fileName){r.options={filename:t.fileName,contentType:t.contentType?t.contentType:null}}e.formData[t.name]=r}))}else{if(r.postData.text){e.body=r.postData.text}}return e};t.t=Har},13923:(e,t,r)=>{"use strict";var n=r(6113);function randomString(e){var t=(e+1)*6;var r=n.randomBytes(Math.ceil(t/8));var i=r.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return i.slice(0,e)}function calculatePayloadHash(e,t,r){var i=n.createHash(t);i.update("hawk.1.payload\n");i.update((r?r.split(";")[0].trim().toLowerCase():"")+"\n");i.update(e||"");i.update("\n");return i.digest("base64")}t.calculateMac=function(e,t){var r="hawk.1.header\n"+t.ts+"\n"+t.nonce+"\n"+(t.method||"").toUpperCase()+"\n"+t.resource+"\n"+t.host.toLowerCase()+"\n"+t.port+"\n"+(t.hash||"")+"\n";if(t.ext){r=r+t.ext.replace("\\","\\\\").replace("\n","\\n")}r=r+"\n";if(t.app){r=r+t.app+"\n"+(t.dlg||"")+"\n"}var i=n.createHmac(e.algorithm,e.key).update(r);var o=i.digest("base64");return o};t.header=function(e,r,n){var i=n.timestamp||Math.floor((Date.now()+(n.localtimeOffsetMsec||0))/1e3);var o=n.credentials;if(!o||!o.id||!o.key||!o.algorithm){return""}if(["sha1","sha256"].indexOf(o.algorithm)===-1){return""}var s={ts:i,nonce:n.nonce||randomString(6),method:r,resource:e.pathname+(e.search||""),host:e.hostname,port:e.port||(e.protocol==="http:"?80:443),hash:n.hash,ext:n.ext,app:n.app,dlg:n.dlg};if(!s.hash&&(n.payload||n.payload==="")){s.hash=calculatePayloadHash(n.payload,o.algorithm,n.contentType)}var a=t.calculateMac(o,s);var u=s.ext!==null&&s.ext!==undefined&&s.ext!=="";var c='Hawk id="'+o.id+'", ts="'+s.ts+'", nonce="'+s.nonce+(s.hash?'", hash="'+s.hash:"")+(u?'", ext="'+s.ext.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):"")+'", mac="'+a+'"';if(s.app){c=c+', app="'+s.app+(s.dlg?'", dlg="'+s.dlg:"")+'"'}return c}},99227:(e,t,r)=>{"use strict";var n=r(85997);var i=r(6113);var o=r(14465).Buffer;var s=typeof setImmediate==="undefined"?process.nextTick:setImmediate;function paramsHaveRequestBody(e){return e.body||e.requestBodyStream||e.json&&typeof e.json!=="boolean"||e.multipart}function safeStringify(e,t){var r;try{r=JSON.stringify(e,t)}catch(i){r=n(e,t)}return r}function md5(e){return i.createHash("md5").update(e).digest("hex")}function isReadStream(e){return e.readable&&e.path&&e.mode}function toBase64(e){return o.from(e||"","utf8").toString("base64")}function copy(e){var t={};Object.keys(e).forEach((function(r){t[r]=e[r]}));return t}function version(){var e=process.version.replace("v","").split(".");return{major:parseInt(e[0],10),minor:parseInt(e[1],10),patch:parseInt(e[2],10)}}t.paramsHaveRequestBody=paramsHaveRequestBody;t.safeStringify=safeStringify;t.md5=md5;t.isReadStream=isReadStream;t.toBase64=toBase64;t.copy=copy;t.version=version;t.defer=s},75931:(e,t,r)=>{"use strict";var n=r(76876);var i=r(29671);var o=r(62910);var s=r(14465).Buffer;function Multipart(e){this.request=e;this.boundary=n();this.chunked=false;this.body=null}Multipart.prototype.isChunked=function(e){var t=this;var r=false;var n=e.data||e;if(!n.forEach){t.request.emit("error",new Error("Argument error, options.multipart."))}if(e.chunked!==undefined){r=e.chunked}if(t.request.getHeader("transfer-encoding")==="chunked"){r=true}if(!r){n.forEach((function(e){if(typeof e.body==="undefined"){t.request.emit("error",new Error("Body attribute missing in multipart."))}if(o(e.body)){r=true}}))}return r};Multipart.prototype.setHeaders=function(e){var t=this;if(e&&!t.request.hasHeader("transfer-encoding")){t.request.setHeader("transfer-encoding","chunked")}var r=t.request.getHeader("content-type");if(!r||r.indexOf("multipart")===-1){t.request.setHeader("content-type","multipart/related; boundary="+t.boundary)}else{if(r.indexOf("boundary")!==-1){t.boundary=r.replace(/.*boundary=([^\s;]+).*/,"$1")}else{t.request.setHeader("content-type",r+"; boundary="+t.boundary)}}};Multipart.prototype.build=function(e,t){var r=this;var n=t?new i:[];function add(e){if(typeof e==="number"){e=e.toString()}return t?n.append(e):n.push(s.from(e))}if(r.request.preambleCRLF){add("\r\n")}e.forEach((function(e){var t="--"+r.boundary+"\r\n";Object.keys(e).forEach((function(r){if(r==="body"){return}t+=r+": "+e[r]+"\r\n"}));t+="\r\n";add(t);add(e.body);add("\r\n")}));add("--"+r.boundary+"--");if(r.request.postambleCRLF){add("\r\n")}return n};Multipart.prototype.onRequest=function(e){var t=this;var r=t.isChunked(e);var n=e.data||e;t.setHeaders(r);t.chunked=r;t.body=t.build(n,r)};t.$=Multipart},1641:(e,t,r)=>{"use strict";var n=r(57310);var i=r(10279);var o=r(64101);var s=r(76876);var a=r(66477);var u=r(6113);var c=r(14465).Buffer;function OAuth(e){this.request=e;this.params=null}OAuth.prototype.buildParams=function(e,t,r,n,i,o){var u={};for(var c in e){u["oauth_"+c]=e[c]}if(!u.oauth_version){u.oauth_version="1.0"}if(!u.oauth_timestamp){u.oauth_timestamp=Math.floor(Date.now()/1e3).toString()}if(!u.oauth_nonce){u.oauth_nonce=s().replace(/-/g,"")}if(!u.oauth_signature_method){u.oauth_signature_method="HMAC-SHA1"}var l=u.oauth_consumer_secret||u.oauth_private_key;delete u.oauth_consumer_secret;delete u.oauth_private_key;var d=u.oauth_token_secret;delete u.oauth_token_secret;var h=u.oauth_realm;delete u.oauth_realm;delete u.oauth_transport_method;var m=t.protocol+"//"+t.host+t.pathname;var g=o.parse([].concat(n,i,o.stringify(u)).join("&"));u.oauth_signature=a.sign(u.oauth_signature_method,r,m,g,l,d);if(h){u.realm=h}return u};OAuth.prototype.buildBodyHash=function(e,t){if(["HMAC-SHA1","RSA-SHA1"].indexOf(e.signature_method||"HMAC-SHA1")<0){this.request.emit("error",new Error("oauth: "+e.signature_method+" signature_method not supported with body_hash signing."))}var r=u.createHash("sha1");r.update(t||"");var n=r.digest("hex");return c.from(n,"hex").toString("base64")};OAuth.prototype.concatParams=function(e,t,r){r=r||"";var n=Object.keys(e).filter((function(e){return e!=="realm"&&e!=="oauth_signature"})).sort();if(e.realm){n.splice(0,0,"realm")}n.push("oauth_signature");return n.map((function(t){return t+"="+r+a.rfc3986(e[t])+r})).join(t)};OAuth.prototype.onRequest=function(e){var t=this;t.params=e;var r=t.request.uri||{};var s=t.request.method||"";var a=o(t.request.headers);var u=t.request.body||"";var c=t.request.qsLib||i;var l;var d;var h=a.get("content-type")||"";var m="application/x-www-form-urlencoded";var g=e.transport_method||"header";if(h.slice(0,m.length)===m){h=m;l=u}if(r.query){d=r.query}if(g==="body"&&(s!=="POST"||h!==m)){t.request.emit("error",new Error("oauth: transport_method of body requires POST "+"and content-type "+m))}if(!l&&typeof e.body_hash==="boolean"){e.body_hash=t.buildBodyHash(e,t.request.body.toString())}var y=t.buildParams(e,r,s,d,l,c);switch(g){case"header":t.request.setHeader("Authorization","OAuth "+t.concatParams(y,",",'"'));break;case"query":var v=t.request.uri.href+=(d?"&":"?")+t.concatParams(y,"&");t.request.uri=n.parse(v);t.request.path=t.request.uri.path;break;case"body":t.request.body=(l?l+"&":"")+t.concatParams(y,"&");break;default:t.request.emit("error",new Error("oauth: transport_method invalid"))}};t.f=OAuth},45683:(e,t,r)=>{"use strict";var n=r(10279);var i=r(63477);function Querystring(e){this.request=e;this.lib=null;this.useQuerystring=null;this.parseOptions=null;this.stringifyOptions=null}Querystring.prototype.init=function(e){if(this.lib){return}this.useQuerystring=e.useQuerystring;this.lib=this.useQuerystring?i:n;this.parseOptions=e.qsParseOptions||{};this.stringifyOptions=e.qsStringifyOptions||{}};Querystring.prototype.stringify=function(e){return this.useQuerystring?this.rfc3986(this.lib.stringify(e,this.stringifyOptions.sep||null,this.stringifyOptions.eq||null,this.stringifyOptions)):this.lib.stringify(e,this.stringifyOptions)};Querystring.prototype.parse=function(e){return this.useQuerystring?this.lib.parse(e,this.parseOptions.sep||null,this.parseOptions.eq||null,this.parseOptions):this.lib.parse(e,this.parseOptions)};Querystring.prototype.rfc3986=function(e){return e.replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))};Querystring.prototype.unescape=i.unescape;t.h=Querystring},345:(e,t,r)=>{"use strict";var n=r(57310);var i=/^https?:/;function Redirect(e){this.request=e;this.followRedirect=true;this.followRedirects=true;this.followAllRedirects=false;this.followOriginalHttpMethod=false;this.allowRedirect=function(){return true};this.maxRedirects=10;this.redirects=[];this.redirectsFollowed=0;this.removeRefererHeader=false}Redirect.prototype.onRequest=function(e){var t=this;if(e.maxRedirects!==undefined){t.maxRedirects=e.maxRedirects}if(typeof e.followRedirect==="function"){t.allowRedirect=e.followRedirect}if(e.followRedirect!==undefined){t.followRedirects=!!e.followRedirect}if(e.followAllRedirects!==undefined){t.followAllRedirects=e.followAllRedirects}if(t.followRedirects||t.followAllRedirects){t.redirects=t.redirects||[]}if(e.removeRefererHeader!==undefined){t.removeRefererHeader=e.removeRefererHeader}if(e.followOriginalHttpMethod!==undefined){t.followOriginalHttpMethod=e.followOriginalHttpMethod}};Redirect.prototype.redirectTo=function(e){var t=this;var r=t.request;var n=null;if(e.statusCode>=300&&e.statusCode<400&&e.caseless.has("location")){var i=e.caseless.get("location");r.debug("redirect",i);if(t.followAllRedirects){n=i}else if(t.followRedirects){switch(r.method){case"PATCH":case"PUT":case"POST":case"DELETE":break;default:n=i;break}}}else if(e.statusCode===401){var o=r._auth.onResponse(e);if(o){r.setHeader("authorization",o);n=r.uri}}return n};Redirect.prototype.onResponse=function(e){var t=this;var r=t.request;var o=t.redirectTo(e);if(!o||!t.allowRedirect.call(r,e)){return false}r.debug("redirect to",o);if(e.resume){e.resume()}if(t.redirectsFollowed>=t.maxRedirects){r.emit("error",new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+r.uri.href));return false}t.redirectsFollowed+=1;if(!i.test(o)){o=n.resolve(r.uri.href,o)}var s=r.uri;r.uri=n.parse(o);if(r.uri.protocol!==s.protocol){delete r.agent}t.redirects.push({statusCode:e.statusCode,redirectUri:o});if(t.followAllRedirects&&r.method!=="HEAD"&&e.statusCode!==401&&e.statusCode!==307){r.method=t.followOriginalHttpMethod?r.method:"GET"}delete r.src;delete r.req;delete r._started;if(e.statusCode!==401&&e.statusCode!==307){delete r.body;delete r._form;if(r.headers){r.removeHeader("host");r.removeHeader("content-type");r.removeHeader("content-length");if(r.uri.hostname!==r.originalHost.split(":")[0]){r.removeHeader("authorization")}}}if(!t.removeRefererHeader){r.setHeader("referer",s.href)}r.emit("redirect");r.init();return true};t.l=Redirect},10242:(e,t,r)=>{"use strict";var n=r(57310);var i=r(26793);var o=["accept","accept-charset","accept-encoding","accept-language","accept-ranges","cache-control","content-encoding","content-language","content-location","content-md5","content-range","content-type","connection","date","expect","max-forwards","pragma","referer","te","user-agent","via"];var s=["proxy-authorization"];function constructProxyHost(e){var t=e.port;var r=e.protocol;var n=e.hostname+":";if(t){n+=t}else if(r==="https:"){n+="443"}else{n+="80"}return n}function constructProxyHeaderWhiteList(e,t){var r=t.reduce((function(e,t){e[t.toLowerCase()]=true;return e}),{});return Object.keys(e).filter((function(e){return r[e.toLowerCase()]})).reduce((function(t,r){t[r]=e[r];return t}),{})}function constructTunnelOptions(e,t){var r=e.proxy;var n={proxy:{host:r.hostname,port:+r.port,proxyAuth:r.auth,headers:t},headers:e.headers,ca:e.ca,cert:e.cert,key:e.key,passphrase:e.passphrase,pfx:e.pfx,ciphers:e.ciphers,rejectUnauthorized:e.rejectUnauthorized,secureOptions:e.secureOptions,secureProtocol:e.secureProtocol};return n}function constructTunnelFnName(e,t){var r=e.protocol==="https:"?"https":"http";var n=t.protocol==="https:"?"Https":"Http";return[r,n].join("Over")}function getTunnelFn(e){var t=e.uri;var r=e.proxy;var n=constructTunnelFnName(t,r);return i[n]}function Tunnel(e){this.request=e;this.proxyHeaderWhiteList=o;this.proxyHeaderExclusiveList=[];if(typeof e.tunnel!=="undefined"){this.tunnelOverride=e.tunnel}}Tunnel.prototype.isEnabled=function(){var e=this;var t=e.request;if(typeof e.tunnelOverride!=="undefined"){return e.tunnelOverride}if(t.uri.protocol==="https:"){return true}return false};Tunnel.prototype.setup=function(e){var t=this;var r=t.request;e=e||{};if(typeof r.proxy==="string"){r.proxy=n.parse(r.proxy)}if(!r.proxy||!r.tunnel){return false}if(e.proxyHeaderWhiteList){t.proxyHeaderWhiteList=e.proxyHeaderWhiteList}if(e.proxyHeaderExclusiveList){t.proxyHeaderExclusiveList=e.proxyHeaderExclusiveList}var i=t.proxyHeaderExclusiveList.concat(s);var o=t.proxyHeaderWhiteList.concat(i);var a=constructProxyHeaderWhiteList(r.headers,o);a.host=constructProxyHost(r.uri);i.forEach(r.removeHeader,r);var u=getTunnelFn(r);var c=constructTunnelOptions(r,a);r.agent=u(c);return true};Tunnel.defaultProxyHeaderWhiteList=o;Tunnel.defaultProxyHeaderExclusiveList=s;t.n=Tunnel},44789:(e,t,r)=>{var n=r(29671);var i=r(73837);var o=r(71017);var s=r(13685);var a=r(95687);var u=r(57310).parse;var c=r(57147);var l=r(45509);var d=r(22170);var h=r(59002);e.exports=FormData;i.inherits(FormData,n);function FormData(e){if(!(this instanceof FormData)){return new FormData}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];n.call(this);e=e||{};for(var t in e){this[t]=e[t]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(e,t,r){r=r||{};if(typeof r=="string"){r={filename:r}}var o=n.prototype.append.bind(this);if(typeof t=="number"){t=""+t}if(i.isArray(t)){this._error(new Error("Arrays are not supported."));return}var s=this._multiPartHeader(e,t,r);var a=this._multiPartFooter();o(s);o(t);o(a);this._trackLength(s,t,r)};FormData.prototype._trackLength=function(e,t,r){var n=0;if(r.knownLength!=null){n+=+r.knownLength}else if(Buffer.isBuffer(t)){n=t.length}else if(typeof t==="string"){n=Buffer.byteLength(t)}this._valueLength+=n;this._overheadLength+=Buffer.byteLength(e)+FormData.LINE_BREAK.length;if(!t||!t.path&&!(t.readable&&t.hasOwnProperty("httpVersion"))){return}if(!r.knownLength){this._valuesToMeasure.push(t)}};FormData.prototype._lengthRetriever=function(e,t){if(e.hasOwnProperty("fd")){if(e.end!=undefined&&e.end!=Infinity&&e.start!=undefined){t(null,e.end+1-(e.start?e.start:0))}else{c.stat(e.path,(function(r,n){var i;if(r){t(r);return}i=n.size-(e.start?e.start:0);t(null,i)}))}}else if(e.hasOwnProperty("httpVersion")){t(null,+e.headers["content-length"])}else if(e.hasOwnProperty("httpModule")){e.on("response",(function(r){e.pause();t(null,+r.headers["content-length"])}));e.resume()}else{t("Unknown stream")}};FormData.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string"){return r.header}var n=this._getContentDisposition(t,r);var i=this._getContentType(t,r);var o="";var s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};if(typeof r.header=="object"){h(s,r.header)}var a;for(var u in s){if(!s.hasOwnProperty(u))continue;a=s[u];if(a==null){continue}if(!Array.isArray(a)){a=[a]}if(a.length){o+=u+": "+a.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+o+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(e,t){var r,n;if(typeof t.filepath==="string"){r=o.normalize(t.filepath).replace(/\\/g,"/")}else if(t.filename||e.name||e.path){r=o.basename(t.filename||e.name||e.path)}else if(e.readable&&e.hasOwnProperty("httpVersion")){r=o.basename(e.client._httpMessage.path)}if(r){n='filename="'+r+'"'}return n};FormData.prototype._getContentType=function(e,t){var r=t.contentType;if(!r&&e.name){r=l.lookup(e.name)}if(!r&&e.path){r=l.lookup(e.path)}if(!r&&e.readable&&e.hasOwnProperty("httpVersion")){r=e.headers["content-type"]}if(!r&&(t.filepath||t.filename)){r=l.lookup(t.filepath||t.filename)}if(!r&&typeof e=="object"){r=FormData.DEFAULT_CONTENT_TYPE}return r};FormData.prototype._multiPartFooter=function(){return function(e){var t=FormData.LINE_BREAK;var r=this._streams.length===0;if(r){t+=this._lastBoundary()}e(t)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(e){var t;var r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e){if(e.hasOwnProperty(t)){r[t.toLowerCase()]=e[t]}}return r};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype._generateBoundary=function(){var e="--------------------------";for(var t=0;t<24;t++){e+=Math.floor(Math.random()*10).toString(16)}this._boundary=e};FormData.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;if(this._streams.length){e+=this._lastBoundary().length}if(!this.hasKnownLength()){this._error(new Error("Cannot calculate proper length in synchronous way."))}return e};FormData.prototype.hasKnownLength=function(){var e=true;if(this._valuesToMeasure.length){e=false}return e};FormData.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length){t+=this._lastBoundary().length}if(!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}d.parallel(this._valuesToMeasure,this._lengthRetriever,(function(r,n){if(r){e(r);return}n.forEach((function(e){t+=e}));e(null,t)}))};FormData.prototype.submit=function(e,t){var r,n,i={method:"post"};if(typeof e=="string"){e=u(e);n=h({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)}else{n=h(e,i);if(!n.port){n.port=n.protocol=="https:"?443:80}}n.headers=this.getHeaders(e.headers);if(n.protocol=="https:"){r=a.request(n)}else{r=s.request(n)}this.getLength(function(e,n){if(e){this._error(e);return}r.setHeader("Content-Length",n);this.pipe(r);if(t){r.on("error",t);r.on("response",t.bind(this,null))}}.bind(this));return r};FormData.prototype._error=function(e){if(!this.error){this.error=e;this.pause();this.emit("error",e)}};FormData.prototype.toString=function(){return"[object FormData]"}},59002:e=>{e.exports=function(e,t){Object.keys(t).forEach((function(r){e[r]=e[r]||t[r]}));return e}},27979:(e,t,r)=>{"use strict";var n=r(13685);var i=r(95687);var o=r(57310);var s=r(73837);var a=r(12781);var u=r(59796);var c=r(17853);var l=r(37368);var d=r(22329);var h=r(45509);var m=r(64101);var g=r(73738);var y=r(44789);var v=r(71559);var b=r(62910);var _=r(99839).strict;var E=r(99227);var k=r(10491);var x=r(14575);var C=r(45683).h;var O=r(71079).t;var D=r(11892).g;var B=r(1641).f;var P=r(13923);var I=r(75931).$;var R=r(345).l;var N=r(10242).n;var $=r(46505);var L=r(14465).Buffer;var q=E.safeStringify;var z=E.isReadStream;var U=E.toBase64;var V=E.defer;var W=E.copy;var G=E.version;var Q=k.jar();var Y={};function filterForNonReserved(e,t){var r={};for(var n in t){var i=e.indexOf(n)===-1;if(i){r[n]=t[n]}}return r}function filterOutReservedFunctions(e,t){var r={};for(var n in t){var i=!(e.indexOf(n)===-1);var o=typeof t[n]==="function";if(!(i&&o)){r[n]=t[n]}}return r}function requestToJSON(){var e=this;return{uri:e.uri,method:e.method,headers:e.headers}}function responseToJSON(){var e=this;return{statusCode:e.statusCode,body:e.body,headers:e.headers,request:requestToJSON.call(e.request)}}function Request(e){var t=this;if(e.har){t._har=new O(t);e=t._har.options(e)}a.Stream.call(t);var r=Object.keys(Request.prototype);var n=filterForNonReserved(r,e);v(t,n);e=filterOutReservedFunctions(r,e);t.readable=true;t.writable=true;if(e.method){t.explicitMethod=true}t._qs=new C(t);t._auth=new D(t);t._oauth=new B(t);t._multipart=new I(t);t._redirect=new R(t);t._tunnel=new N(t);t.init(e)}s.inherits(Request,a.Stream);Request.debug=process.env.NODE_DEBUG&&/\brequest\b/.test(process.env.NODE_DEBUG);function debug(){if(Request.debug){console.error("REQUEST %s",s.format.apply(s,arguments))}}Request.prototype.debug=debug;Request.prototype.init=function(e){var t=this;if(!e){e={}}t.headers=t.headers?W(t.headers):{};for(var r in t.headers){if(typeof t.headers[r]==="undefined"){delete t.headers[r]}}m.httpify(t,t.headers);if(!t.method){t.method=e.method||"GET"}if(!t.localAddress){t.localAddress=e.localAddress}t._qs.init(e);debug(e);if(!t.pool&&t.pool!==false){t.pool=Y}t.dests=t.dests||[];t.__isRequestRequest=true;if(!t._callback&&t.callback){t._callback=t.callback;t.callback=function(){if(t._callbackCalled){return}t._callbackCalled=true;t._callback.apply(t,arguments)};t.on("error",t.callback.bind());t.on("complete",t.callback.bind(t,null))}if(!t.uri&&t.url){t.uri=t.url;delete t.url}if(t.baseUrl){if(typeof t.baseUrl!=="string"){return t.emit("error",new Error("options.baseUrl must be a string"))}if(typeof t.uri!=="string"){return t.emit("error",new Error("options.uri must be a string when using options.baseUrl"))}if(t.uri.indexOf("//")===0||t.uri.indexOf("://")!==-1){return t.emit("error",new Error("options.uri must be a path when using options.baseUrl"))}var s=t.baseUrl.lastIndexOf("/")===t.baseUrl.length-1;var a=t.uri.indexOf("/")===0;if(s&&a){t.uri=t.baseUrl+t.uri.slice(1)}else if(s||a){t.uri=t.baseUrl+t.uri}else if(t.uri===""){t.uri=t.baseUrl}else{t.uri=t.baseUrl+"/"+t.uri}delete t.baseUrl}if(!t.uri){return t.emit("error",new Error("options.uri is a required argument"))}if(typeof t.uri==="string"){t.uri=o.parse(t.uri)}if(!t.uri.href){t.uri.href=o.format(t.uri)}if(t.uri.protocol==="unix:"){return t.emit("error",new Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"))}if(t.uri.host==="unix"){t.enableUnixSocket()}if(t.strictSSL===false){t.rejectUnauthorized=false}if(!t.uri.pathname){t.uri.pathname="/"}if(!(t.uri.host||t.uri.hostname&&t.uri.port)&&!t.uri.isUnix){var u=o.format(t.uri);var c='Invalid URI "'+u+'"';if(Object.keys(e).length===0){c+=". This can be caused by a crappy redirection."}t.abort();return t.emit("error",new Error(c))}if(!t.hasOwnProperty("proxy")){t.proxy=x(t.uri)}t.tunnel=t._tunnel.isEnabled();if(t.proxy){t._tunnel.setup(e)}t._redirect.onRequest(e);t.setHost=false;if(!t.hasHeader("host")){var l=t.originalHostHeaderName||"host";t.setHeader(l,t.uri.host);if(t.uri.port){if(t.uri.port==="80"&&t.uri.protocol==="http:"||t.uri.port==="443"&&t.uri.protocol==="https:"){t.setHeader(l,t.uri.hostname)}}t.setHost=true}t.jar(t._jar||e.jar);if(!t.uri.port){if(t.uri.protocol==="http:"){t.uri.port=80}else if(t.uri.protocol==="https:"){t.uri.port=443}}if(t.proxy&&!t.tunnel){t.port=t.proxy.port;t.host=t.proxy.hostname}else{t.port=t.uri.port;t.host=t.uri.hostname}if(e.form){t.form(e.form)}if(e.formData){var d=e.formData;var y=t.form();var appendFormValue=function(e,t){if(t&&t.hasOwnProperty("value")&&t.hasOwnProperty("options")){y.append(e,t.value,t.options)}else{y.append(e,t)}};for(var v in d){if(d.hasOwnProperty(v)){var E=d[v];if(E instanceof Array){for(var k=0;k=100&&e<200||e===204||e===304};var s;if(t.gzip&&!noBody(e.statusCode)){var a=e.headers["content-encoding"]||"identity";a=a.trim().toLowerCase();var c={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if(a==="gzip"){s=u.createGunzip(c);e.pipe(s)}else if(a==="deflate"){s=u.createInflate(c);e.pipe(s)}else{if(a!=="identity"){debug("ignoring unrecognized Content-Encoding "+a)}s=e}}else{s=e}if(t.encoding){if(t.dests.length!==0){console.error("Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid.")}else{s.setEncoding(t.encoding)}}if(t._paused){s.pause()}t.responseContent=s;t.emit("response",e);t.dests.forEach((function(e){t.pipeDest(e)}));s.on("data",(function(r){if(t.timing&&!t.responseStarted){t.responseStartTime=(new Date).getTime();e.responseStartTime=t.responseStartTime}t._destdata=true;t.emit("data",r)}));s.once("end",(function(e){t.emit("end",e)}));s.on("error",(function(e){t.emit("error",e)}));s.on("close",(function(){t.emit("close")}));if(t.callback){t.readResponseBody(e)}else{t.on("end",(function(){if(t._aborted){debug("aborted",t.uri.href);return}t.emit("complete",e)}))}}debug("finish init function",t.uri.href)};Request.prototype.readResponseBody=function(e){var t=this;debug("reading response's body");var r=[];var n=0;var i=[];t.on("data",(function(e){if(!L.isBuffer(e)){i.push(e)}else if(e.length){n+=e.length;r.push(e)}}));t.on("end",(function(){debug("end event",t.uri.href);if(t._aborted){debug("aborted",t.uri.href);r=[];n=0;return}if(n){debug("has body",t.uri.href,n);e.body=L.concat(r,n);if(t.encoding!==null){e.body=e.body.toString(t.encoding)}r=[];n=0}else if(i.length){if(t.encoding==="utf8"&&i[0].length>0&&i[0][0]==="\ufeff"){i[0]=i[0].substring(1)}e.body=i.join("")}if(t._json){try{e.body=JSON.parse(e.body,t._jsonReviver)}catch(e){debug("invalid JSON received",t.uri.href)}}debug("emitting complete",t.uri.href);if(typeof e.body==="undefined"&&!t._json){e.body=t.encoding===null?L.alloc(0):""}t.emit("complete",e,e.body)}))};Request.prototype.abort=function(){var e=this;e._aborted=true;if(e.req){e.req.abort()}else if(e.response){e.response.destroy()}e.clearTimeout();e.emit("abort")};Request.prototype.pipeDest=function(e){var t=this;var r=t.response;if(e.headers&&!e.headersSent){if(r.caseless.has("content-type")){var n=r.caseless.has("content-type");if(e.setHeader){e.setHeader(n,r.headers[n])}else{e.headers[n]=r.headers[n]}}if(r.caseless.has("content-length")){var i=r.caseless.has("content-length");if(e.setHeader){e.setHeader(i,r.headers[i])}else{e.headers[i]=r.headers[i]}}}if(e.setHeader&&!e.headersSent){for(var o in r.headers){if(!t.gzip||o!=="content-encoding"){e.setHeader(o,r.headers[o])}}e.statusCode=r.statusCode}if(t.pipefilter){t.pipefilter(r,e)}};Request.prototype.qs=function(e,t){var r=this;var n;if(!t&&r.uri.query){n=r._qs.parse(r.uri.query)}else{n={}}for(var i in e){n[i]=e[i]}var s=r._qs.stringify(n);if(s===""){return r}r.uri=o.parse(r.uri.href.split("?")[0]+"?"+s);r.url=r.uri;r.path=r.uri.path;if(r.uri.host==="unix"){r.enableUnixSocket()}return r};Request.prototype.form=function(e){var t=this;if(e){if(!/^application\/x-www-form-urlencoded\b/.test(t.getHeader("content-type"))){t.setHeader("content-type","application/x-www-form-urlencoded")}t.body=typeof e==="string"?t._qs.rfc3986(e.toString("utf8")):t._qs.stringify(e).toString("utf8");return t}t._form=new y;t._form.on("error",(function(e){e.message="form-data: "+e.message;t.emit("error",e);t.abort()}));return t._form};Request.prototype.multipart=function(e){var t=this;t._multipart.onRequest(e);if(!t._multipart.chunked){t.body=t._multipart.body}return t};Request.prototype.json=function(e){var t=this;if(!t.hasHeader("accept")){t.setHeader("accept","application/json")}if(typeof t.jsonReplacer==="function"){t._jsonReplacer=t.jsonReplacer}t._json=true;if(typeof e==="boolean"){if(t.body!==undefined){if(!/^application\/x-www-form-urlencoded\b/.test(t.getHeader("content-type"))){t.body=q(t.body,t._jsonReplacer)}else{t.body=t._qs.rfc3986(t.body)}if(!t.hasHeader("content-type")){t.setHeader("content-type","application/json")}}}else{t.body=q(e,t._jsonReplacer);if(!t.hasHeader("content-type")){t.setHeader("content-type","application/json")}}if(typeof t.jsonReviver==="function"){t._jsonReviver=t.jsonReviver}return t};Request.prototype.getHeader=function(e,t){var r=this;var n,i,o;if(!t){t=r.headers}Object.keys(t).forEach((function(r){if(r.length!==e.length){return}i=new RegExp(e,"i");o=r.match(i);if(o){n=t[r]}}));return n};Request.prototype.enableUnixSocket=function(){var e=this.uri.path.split(":");var t=e[0];var r=e[1];this.socketPath=t;this.uri.pathname=r;this.uri.path=r;this.uri.host=t;this.uri.hostname=t;this.uri.isUnix=true};Request.prototype.auth=function(e,t,r,n){var i=this;i._auth.onRequest(e,t,r,n);return i};Request.prototype.aws=function(e,t){var r=this;if(!t){r._aws=e;return r}if(e.sign_version===4||e.sign_version==="4"){var n={host:r.uri.host,path:r.uri.path,method:r.method,headers:r.headers,body:r.body};if(e.service){n.service=e.service}var i=l.sign(n,{accessKeyId:e.key,secretAccessKey:e.secret,sessionToken:e.session});r.setHeader("authorization",i.headers.Authorization);r.setHeader("x-amz-date",i.headers["X-Amz-Date"]);if(i.headers["X-Amz-Security-Token"]){r.setHeader("x-amz-security-token",i.headers["X-Amz-Security-Token"])}}else{var o=new Date;r.setHeader("date",o.toUTCString());var s={key:e.key,secret:e.secret,verb:r.method.toUpperCase(),date:o,contentType:r.getHeader("content-type")||"",md5:r.getHeader("content-md5")||"",amazonHeaders:c.canonicalizeHeaders(r.headers)};var a=r.uri.path;if(e.bucket&&a){s.resource="/"+e.bucket+a}else if(e.bucket&&!a){s.resource="/"+e.bucket}else if(!e.bucket&&a){s.resource=a}else if(!e.bucket&&!a){s.resource="/"}s.resource=c.canonicalizeResource(s.resource);r.setHeader("authorization",c.authorization(s))}return r};Request.prototype.httpSignature=function(e){var t=this;d.signRequest({getHeader:function(e){return t.getHeader(e,t.headers)},setHeader:function(e,r){t.setHeader(e,r)},method:t.method,path:t.path},e);debug("httpSignature authorization",t.getHeader("authorization"));return t};Request.prototype.hawk=function(e){var t=this;t.setHeader("Authorization",P.header(t.uri,t.method,e))};Request.prototype.oauth=function(e){var t=this;t._oauth.onRequest(e);return t};Request.prototype.jar=function(e){var t=this;var r;if(t._redirect.redirectsFollowed===0){t.originalCookieHeader=t.getHeader("cookie")}if(!e){r=false;t._disableCookies=true}else{var n=e.getCookieString?e:Q;var i=t.uri.href;if(n){r=n.getCookieString(i)}}if(r&&r.length){if(t.originalCookieHeader){t.setHeader("cookie",t.originalCookieHeader+"; "+r)}else{t.setHeader("cookie",r)}}t._jar=e;return t};Request.prototype.pipe=function(e,t){var r=this;if(r.response){if(r._destdata){r.emit("error",new Error("You cannot pipe after data has been emitted from the response."))}else if(r._ended){r.emit("error",new Error("You cannot pipe after the response has been ended."))}else{a.Stream.prototype.pipe.call(r,e,t);r.pipeDest(e);return e}}else{r.dests.push(e);a.Stream.prototype.pipe.call(r,e,t);return e}};Request.prototype.write=function(){var e=this;if(e._aborted){return}if(!e._started){e.start()}if(e.req){return e.req.write.apply(e.req,arguments)}};Request.prototype.end=function(e){var t=this;if(t._aborted){return}if(e){t.write(e)}if(!t._started){t.start()}if(t.req){t.req.end()}};Request.prototype.pause=function(){var e=this;if(!e.responseContent){e._paused=true}else{e.responseContent.pause.apply(e.responseContent,arguments)}};Request.prototype.resume=function(){var e=this;if(!e.responseContent){e._paused=false}else{e.responseContent.resume.apply(e.responseContent,arguments)}};Request.prototype.destroy=function(){var e=this;this.clearTimeout();if(!e._ended){e.end()}else if(e.response){e.response.destroy()}};Request.prototype.clearTimeout=function(){if(this.timeoutTimer){clearTimeout(this.timeoutTimer);this.timeoutTimer=null}};Request.defaultProxyHeaderWhiteList=N.defaultProxyHeaderWhiteList.slice();Request.defaultProxyHeaderExclusiveList=N.defaultProxyHeaderExclusiveList.slice();Request.prototype.toJSON=requestToJSON;e.exports=Request},14465:(e,t,r)=>{ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var n=r(14300);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},18874:(e,t,r)=>{"use strict";var n=r(14300);var i=n.Buffer;var o={};var s;for(s in n){if(!n.hasOwnProperty(s))continue;if(s==="SlowBuffer"||s==="Buffer")continue;o[s]=n[s]}var a=o.Buffer={};for(s in i){if(!i.hasOwnProperty(s))continue;if(s==="allocUnsafe"||s==="allocUnsafeSlow")continue;a[s]=i[s]}o.Buffer.prototype=i.prototype;if(!a.from||a.from===Uint8Array.from){a.from=function(e,t,r){if(typeof e==="number"){throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e)}if(e&&typeof e.length==="undefined"){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}return i(e,t,r)}}if(!a.alloc){a.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError('The "size" argument must be of type number. Received type '+typeof e)}if(e<0||e>=2*(1<<30)){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var n=i(e);if(!t||t.length===0){n.fill(0)}else if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}return n}}if(!o.kStringMaxLength){try{o.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}}if(!o.constants){o.constants={MAX_LENGTH:o.kMaxLength};if(o.kStringMaxLength){o.constants.MAX_STRING_LENGTH=o.kStringMaxLength}}e.exports=o},96136:(e,t,r)=>{"use strict";const{unassigned_code_points:n,commonly_mapped_to_nothing:i,non_ASCII_space_characters:o,prohibited_characters:s,bidirectional_r_al:a,bidirectional_l:u}=r(63096);e.exports=saslprep;const c=o;const l=i;const getCodePoint=e=>e.codePointAt(0);const first=e=>e[0];const last=e=>e[e.length-1];function toCodePoints(e){const t=[];const r=e.length;for(let n=0;n=55296&&i<=56319&&r>n+1){const r=e.charCodeAt(n+1);if(r>=56320&&r<=57343){t.push((i-55296)*1024+r-56320+65536);n+=1;continue}}t.push(i)}return t}function saslprep(e,t={}){if(typeof e!=="string"){throw new TypeError("Expected string.")}if(e.length===0){return""}const r=toCodePoints(e).map((e=>c.get(e)?32:e)).filter((e=>!l.get(e)));const i=String.fromCodePoint.apply(null,r).normalize("NFKC");const o=toCodePoints(i);const d=o.some((e=>s.get(e)));if(d){throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3")}if(t.allowUnassigned!==true){const e=o.some((e=>n.get(e)));if(e){throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5")}}const h=o.some((e=>a.get(e)));const m=o.some((e=>u.get(e)));if(h&&m){throw new Error("String must not contain RandALCat and LCat at the same time,"+" see https://tools.ietf.org/html/rfc3454#section-6")}const g=a.get(getCodePoint(first(i)));const y=a.get(getCodePoint(last(i)));if(h&&!(g&&y)){throw new Error("Bidirectional RandALCat character must be the first and the last"+" character of the string, see https://tools.ietf.org/html/rfc3454#section-6")}return i}},63096:(e,t,r)=>{"use strict";const n=r(57147);const i=r(71017);const o=r(74607);const s=n.readFileSync(r.ab+"code-points.mem");let a=0;function read(){const e=s.readUInt32BE(a);a+=4;const t=s.slice(a,a+e);a+=e;return o({buffer:t})}const u=read();const c=read();const l=read();const d=read();const h=read();const m=read();e.exports={unassigned_code_points:u,commonly_mapped_to_nothing:c,non_ASCII_space_characters:l,prohibited_characters:d,bidirectional_r_al:h,bidirectional_l:m}},55669:(e,t,r)=>{const n=r(13867);e.exports=n.default;Object.assign(e.exports,n)},13867:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return extendStatics(e,t)};function __extends(e,t){extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}var typeChecker=function(e){var t="[object "+e+"]";return function(e){return getClassName(e)===t}};var getClassName=function(e){return Object.prototype.toString.call(e)};var comparable=function(e){if(e instanceof Date){return e.getTime()}else if(t(e)){return e.map(comparable)}else if(e&&typeof e.toJSON==="function"){return e.toJSON()}return e};var t=typeChecker("Array");var r=typeChecker("Object");var n=typeChecker("Function");var isVanillaObject=function(e){return e&&(e.constructor===Object||e.constructor===Array||e.constructor.toString()==="function Object() { [native code] }"||e.constructor.toString()==="function Array() { [native code] }")&&!e.toJSON};var equals=function(e,n){if(e==null&&e==n){return true}if(e===n){return true}if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(n)){return false}if(t(e)){if(e.length!==n.length){return false}for(var i=0,o=e.length;ie}}));var B=numericalOperation((function(e){return function(t){return t>=e}}));var $mod=function(e,t,r){var n=e[0],i=e[1];return new l((function(e){return comparable(e)%n===i}),t,r)};var $exists=function(e,t,r,n){return new k(e,t,r,n)};var $regex=function(e,t,r){return new l(new RegExp(e,t.$options),t,r)};var $not=function(e,t,r,n){return new g(e,t,r,n)};var P={number:function(e){return typeof e==="number"},string:function(e){return typeof e==="string"},bool:function(e){return typeof e==="boolean"},array:function(e){return Array.isArray(e)},null:function(e){return e===null},timestamp:function(e){return e instanceof Date}};var $type=function(e,t,r){return new l((function(t){if(typeof e==="string"){if(!P[e]){throw new Error("Type alias does not exist")}return P[e](t)}return t!=null?t instanceof e||t.constructor===e:false}),t,r)};var $and=function(e,t,r,n){return new x(e,t,r,n)};var I=$and;var $size=function(e,t,r){return new y(e,t,r,"$size")};var $options=function(){return null};var $where=function(e,t,r){var i;if(n(e)){i=e}else if(!process.env.CSP_ENABLED){i=new Function("obj","return "+e)}else{throw new Error('In CSP mode, sift does not support strings in "$where" condition')}return new l((function(e){return i.bind(e)(e)}),t,r)};var R=Object.freeze({__proto__:null,$Size:y,$eq:$eq,$ne:$ne,$or:$or,$nor:$nor,$elemMatch:$elemMatch,$nin:$nin,$in:$in,$lt:C,$lte:O,$gt:D,$gte:B,$mod:$mod,$exists:$exists,$regex:$regex,$not:$not,$type:$type,$and:$and,$all:I,$size:$size,$options:$options,$where:$where});var createDefaultQueryOperation=function(e,t,r){var n=r===void 0?{}:r,i=n.compare,o=n.operations;return createQueryOperation(e,t,{compare:i,operations:Object.assign({},R,o||{})})};var createDefaultQueryTester=function(e,t){if(t===void 0){t={}}var r=createDefaultQueryOperation(e,null,t);return createOperationTester(r)};e.$Size=y;e.$all=I;e.$and=$and;e.$elemMatch=$elemMatch;e.$eq=$eq;e.$exists=$exists;e.$gt=D;e.$gte=B;e.$in=$in;e.$lt=C;e.$lte=O;e.$mod=$mod;e.$ne=$ne;e.$nin=$nin;e.$nor=$nor;e.$not=$not;e.$options=$options;e.$or=$or;e.$regex=$regex;e.$size=$size;e.$type=$type;e.$where=$where;e.EqualsOperation=l;e.createDefaultQueryOperation=createDefaultQueryOperation;e.createEqualsOperation=createEqualsOperation;e.createOperationTester=createOperationTester;e.createQueryOperation=createQueryOperation;e.createQueryTester=createQueryTester;e.default=createDefaultQueryTester;Object.defineProperty(e,"__esModule",{value:true})}))},86607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(54964);const i=4096;const o="utf8";class SmartBuffer{constructor(e){this.length=0;this._encoding=o;this._writeOffset=0;this._readOffset=0;if(SmartBuffer.isSmartBufferOptions(e)){if(e.encoding){n.checkEncoding(e.encoding);this._encoding=e.encoding}if(e.size){if(n.isFiniteInteger(e.size)&&e.size>0){this._buff=Buffer.allocUnsafe(e.size)}else{throw new Error(n.ERRORS.INVALID_SMARTBUFFER_SIZE)}}else if(e.buff){if(Buffer.isBuffer(e.buff)){this._buff=e.buff;this.length=e.buff.length}else{throw new Error(n.ERRORS.INVALID_SMARTBUFFER_BUFFER)}}else{this._buff=Buffer.allocUnsafe(i)}}else{if(typeof e!=="undefined"){throw new Error(n.ERRORS.INVALID_SMARTBUFFER_OBJECT)}this._buff=Buffer.allocUnsafe(i)}}static fromSize(e,t){return new this({size:e,encoding:t})}static fromBuffer(e,t){return new this({buff:e,encoding:t})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){const t=e;return t&&(t.encoding!==undefined||t.size!==undefined||t.buff!==undefined)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){n.bigIntAndBufferInt64Check("readBigInt64BE");return this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){n.bigIntAndBufferInt64Check("readBigInt64LE");return this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,t){this._writeNumberValue(Buffer.prototype.writeInt8,1,e,t);return this}insertInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,t)}writeInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}insertInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}writeInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}insertInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}writeInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}insertInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}writeInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}insertInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}writeBigInt64BE(e,t){n.bigIntAndBufferInt64Check("writeBigInt64BE");return this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}insertBigInt64BE(e,t){n.bigIntAndBufferInt64Check("writeBigInt64BE");return this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}writeBigInt64LE(e,t){n.bigIntAndBufferInt64Check("writeBigInt64LE");return this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}insertBigInt64LE(e,t){n.bigIntAndBufferInt64Check("writeBigInt64LE");return this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}readUInt8(e){return this._readNumberValue(Buffer.prototype.readUInt8,1,e)}readUInt16BE(e){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,e)}readUInt16LE(e){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,e)}readUInt32BE(e){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,e)}readUInt32LE(e){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,e)}readBigUInt64BE(e){n.bigIntAndBufferInt64Check("readBigUInt64BE");return this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,e)}readBigUInt64LE(e){n.bigIntAndBufferInt64Check("readBigUInt64LE");return this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,e)}writeUInt8(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,e,t)}insertUInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,e,t)}writeUInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}insertUInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}writeUInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}insertUInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}writeUInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}insertUInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}writeUInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}insertUInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}writeBigUInt64BE(e,t){n.bigIntAndBufferInt64Check("writeBigUInt64BE");return this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}insertBigUInt64BE(e,t){n.bigIntAndBufferInt64Check("writeBigUInt64BE");return this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}writeBigUInt64LE(e,t){n.bigIntAndBufferInt64Check("writeBigUInt64LE");return this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}insertBigUInt64LE(e,t){n.bigIntAndBufferInt64Check("writeBigUInt64LE");return this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}readFloatBE(e){return this._readNumberValue(Buffer.prototype.readFloatBE,4,e)}readFloatLE(e){return this._readNumberValue(Buffer.prototype.readFloatLE,4,e)}writeFloatBE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}insertFloatBE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}writeFloatLE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}insertFloatLE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}readDoubleBE(e){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,e)}readDoubleLE(e){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,e)}writeDoubleBE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}insertDoubleBE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}writeDoubleLE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}insertDoubleLE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}readString(e,t){let r;if(typeof e==="number"){n.checkLengthValue(e);r=Math.min(e,this.length-this._readOffset)}else{t=e;r=this.length-this._readOffset}if(typeof t!=="undefined"){n.checkEncoding(t)}const i=this._buff.slice(this._readOffset,this._readOffset+r).toString(t||this._encoding);this._readOffset+=r;return i}insertString(e,t,r){n.checkOffsetValue(t);return this._handleString(e,true,t,r)}writeString(e,t,r){return this._handleString(e,false,t,r)}readStringNT(e){if(typeof e!=="undefined"){n.checkEncoding(e)}let t=this.length;for(let e=this._readOffset;ethis.length){throw new Error(n.ERRORS.INVALID_READ_BEYOND_BOUNDS)}}ensureInsertable(e,t){n.checkOffsetValue(t);this._ensureCapacity(this.length+e);if(tthis.length){this.length=t+e}else{this.length+=e}}_ensureWriteable(e,t){const r=typeof t==="number"?t:this._writeOffset;this._ensureCapacity(r+e);if(r+e>this.length){this.length=r+e}}_ensureCapacity(e){const t=this._buff.length;if(e>t){let r=this._buff;let n=t*3/2+1;if(n{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(14300);const i={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};t.ERRORS=i;function checkEncoding(e){if(!n.Buffer.isEncoding(e)){throw new Error(i.INVALID_ENCODING)}}t.checkEncoding=checkEncoding;function isFiniteInteger(e){return typeof e==="number"&&isFinite(e)&&isInteger(e)}t.isFiniteInteger=isFiniteInteger;function checkOffsetOrLengthValue(e,t){if(typeof e==="number"){if(!isFiniteInteger(e)||e<0){throw new Error(t?i.INVALID_OFFSET:i.INVALID_LENGTH)}}else{throw new Error(t?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER)}}function checkLengthValue(e){checkOffsetOrLengthValue(e,false)}t.checkLengthValue=checkLengthValue;function checkOffsetValue(e){checkOffsetOrLengthValue(e,true)}t.checkOffsetValue=checkOffsetValue;function checkTargetOffset(e,t){if(e<0||e>t.length){throw new Error(i.INVALID_TARGET_OFFSET)}}t.checkTargetOffset=checkTargetOffset;function isInteger(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e}function bigIntAndBufferInt64Check(e){if(typeof BigInt==="undefined"){throw new Error("Platform does not support JS BigInt type.")}if(typeof n.Buffer.prototype[e]==="undefined"){throw new Error(`Platform does not support Buffer.prototype.${e}.`)}}t.bigIntAndBufferInt64Check=bigIntAndBufferInt64Check},72076:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.SocksClientError=t.SocksClient=void 0;const i=r(82361);const o=r(41808);const s=r(10618);const a=r(86607);const u=r(88901);const c=r(9921);const l=r(97257);const d=r(12663);Object.defineProperty(t,"SocksClientError",{enumerable:true,get:function(){return d.SocksClientError}});class SocksClient extends i.EventEmitter{constructor(e){super();this.options=Object.assign({},e);(0,c.validateSocksClientOptions)(e);this.setState(u.SocksClientState.Created)}static createConnection(e,t){return new Promise(((r,n)=>{try{(0,c.validateSocksClientOptions)(e,["connect"])}catch(e){if(typeof t==="function"){t(e);return r(e)}else{return n(e)}}const i=new SocksClient(e);i.connect(e.existing_socket);i.once("established",(e=>{i.removeAllListeners();if(typeof t==="function"){t(null,e);r(e)}else{r(e)}}));i.once("error",(e=>{i.removeAllListeners();if(typeof t==="function"){t(e);r(e)}else{n(e)}}))}))}static createConnectionChain(e,t){return new Promise(((r,i)=>n(this,void 0,void 0,(function*(){try{(0,c.validateSocksClientChainOptions)(e)}catch(e){if(typeof t==="function"){t(e);return r(e)}else{return i(e)}}let n;if(e.randomizeChain){(0,d.shuffleArray)(e.proxies)}try{for(let t=0;tthis.onDataReceivedHandler(e);this.onClose=()=>this.onCloseHandler();this.onError=e=>this.onErrorHandler(e);this.onConnect=()=>this.onConnectHandler();const t=setTimeout((()=>this.onEstablishedTimeout()),this.options.timeout||u.DEFAULT_TIMEOUT);if(t.unref&&typeof t.unref==="function"){t.unref()}if(e){this.socket=e}else{this.socket=new o.Socket}this.socket.once("close",this.onClose);this.socket.once("error",this.onError);this.socket.once("connect",this.onConnect);this.socket.on("data",this.onDataReceived);this.setState(u.SocksClientState.Connecting);this.receiveBuffer=new l.ReceiveBuffer;if(e){this.socket.emit("connect")}else{this.socket.connect(this.getSocketOptions());if(this.options.set_tcp_nodelay!==undefined&&this.options.set_tcp_nodelay!==null){this.socket.setNoDelay(!!this.options.set_tcp_nodelay)}}this.prependOnceListener("established",(e=>{setImmediate((()=>{if(this.receiveBuffer.length>0){const t=this.receiveBuffer.get(this.receiveBuffer.length);e.socket.emit("data",t)}e.socket.resume()}))}))}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){if(this.state!==u.SocksClientState.Established&&this.state!==u.SocksClientState.BoundWaitingForConnection){this.closeSocket(u.ERRORS.ProxyConnectionTimedOut)}}onConnectHandler(){this.setState(u.SocksClientState.Connected);if(this.options.proxy.type===4){this.sendSocks4InitialHandshake()}else{this.sendSocks5InitialHandshake()}this.setState(u.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(e){this.receiveBuffer.append(e);this.processData()}processData(){while(this.state!==u.SocksClientState.Established&&this.state!==u.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize){if(this.state===u.SocksClientState.SentInitialHandshake){if(this.options.proxy.type===4){this.handleSocks4FinalHandshakeResponse()}else{this.handleInitialSocks5HandshakeResponse()}}else if(this.state===u.SocksClientState.SentAuthentication){this.handleInitialSocks5AuthenticationHandshakeResponse()}else if(this.state===u.SocksClientState.SentFinalHandshake){this.handleSocks5FinalHandshakeResponse()}else if(this.state===u.SocksClientState.BoundWaitingForConnection){if(this.options.proxy.type===4){this.handleSocks4IncomingConnectionResponse()}else{this.handleSocks5IncomingConnectionResponse()}}else{this.closeSocket(u.ERRORS.InternalError);break}}}onCloseHandler(){this.closeSocket(u.ERRORS.SocketClosed)}onErrorHandler(e){this.closeSocket(e.message)}removeInternalSocketHandlers(){this.socket.pause();this.socket.removeListener("data",this.onDataReceived);this.socket.removeListener("close",this.onClose);this.socket.removeListener("error",this.onError);this.socket.removeListener("connect",this.onConnect)}closeSocket(e){if(this.state!==u.SocksClientState.Error){this.setState(u.SocksClientState.Error);this.socket.destroy();this.removeInternalSocketHandlers();this.emit("error",new d.SocksClientError(e,this.options))}}sendSocks4InitialHandshake(){const e=this.options.proxy.userId||"";const t=new a.SmartBuffer;t.writeUInt8(4);t.writeUInt8(u.SocksCommand[this.options.command]);t.writeUInt16BE(this.options.destination.port);if(o.isIPv4(this.options.destination.host)){t.writeBuffer(s.toBuffer(this.options.destination.host));t.writeStringNT(e)}else{t.writeUInt8(0);t.writeUInt8(0);t.writeUInt8(0);t.writeUInt8(1);t.writeStringNT(e);t.writeStringNT(this.options.destination.host)}this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks4Response;this.socket.write(t.toBuffer())}handleSocks4FinalHandshakeResponse(){const e=this.receiveBuffer.get(8);if(e[1]!==u.Socks4Response.Granted){this.closeSocket(`${u.ERRORS.Socks4ProxyRejectedConnection} - (${u.Socks4Response[e[1]]})`)}else{if(u.SocksCommand[this.options.command]===u.SocksCommand.bind){const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const r={port:t.readUInt16BE(),host:s.fromLong(t.readUInt32BE())};if(r.host==="0.0.0.0"){r.host=this.options.proxy.ipaddress}this.setState(u.SocksClientState.BoundWaitingForConnection);this.emit("bound",{remoteHost:r,socket:this.socket})}else{this.setState(u.SocksClientState.Established);this.removeInternalSocketHandlers();this.emit("established",{socket:this.socket})}}}handleSocks4IncomingConnectionResponse(){const e=this.receiveBuffer.get(8);if(e[1]!==u.Socks4Response.Granted){this.closeSocket(`${u.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${u.Socks4Response[e[1]]})`)}else{const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const r={port:t.readUInt16BE(),host:s.fromLong(t.readUInt32BE())};this.setState(u.SocksClientState.Established);this.removeInternalSocketHandlers();this.emit("established",{remoteHost:r,socket:this.socket})}}sendSocks5InitialHandshake(){const e=new a.SmartBuffer;const t=[u.Socks5Auth.NoAuth];if(this.options.proxy.userId||this.options.proxy.password){t.push(u.Socks5Auth.UserPass)}if(this.options.proxy.custom_auth_method!==undefined){t.push(this.options.proxy.custom_auth_method)}e.writeUInt8(5);e.writeUInt8(t.length);for(const r of t){e.writeUInt8(r)}this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse;this.socket.write(e.toBuffer());this.setState(u.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const e=this.receiveBuffer.get(2);if(e[0]!==5){this.closeSocket(u.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion)}else if(e[1]===u.SOCKS5_NO_ACCEPTABLE_AUTH){this.closeSocket(u.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType)}else{if(e[1]===u.Socks5Auth.NoAuth){this.socks5ChosenAuthType=u.Socks5Auth.NoAuth;this.sendSocks5CommandRequest()}else if(e[1]===u.Socks5Auth.UserPass){this.socks5ChosenAuthType=u.Socks5Auth.UserPass;this.sendSocks5UserPassAuthentication()}else if(e[1]===this.options.proxy.custom_auth_method){this.socks5ChosenAuthType=this.options.proxy.custom_auth_method;this.sendSocks5CustomAuthentication()}else{this.closeSocket(u.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}}}sendSocks5UserPassAuthentication(){const e=this.options.proxy.userId||"";const t=this.options.proxy.password||"";const r=new a.SmartBuffer;r.writeUInt8(1);r.writeUInt8(Buffer.byteLength(e));r.writeString(e);r.writeUInt8(Buffer.byteLength(t));r.writeString(t);this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse;this.socket.write(r.toBuffer());this.setState(u.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return n(this,void 0,void 0,(function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size;this.socket.write(yield this.options.proxy.custom_auth_request_handler());this.setState(u.SocksClientState.SentAuthentication)}))}handleSocks5CustomAuthHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return yield this.options.proxy.custom_auth_response_handler(e)}))}handleSocks5AuthenticationNoAuthHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return e[1]===0}))}handleSocks5AuthenticationUserPassHandshakeResponse(e){return n(this,void 0,void 0,(function*(){return e[1]===0}))}handleInitialSocks5AuthenticationHandshakeResponse(){return n(this,void 0,void 0,(function*(){this.setState(u.SocksClientState.ReceivedAuthenticationResponse);let e=false;if(this.socks5ChosenAuthType===u.Socks5Auth.NoAuth){e=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2))}else if(this.socks5ChosenAuthType===u.Socks5Auth.UserPass){e=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2))}else if(this.socks5ChosenAuthType===this.options.proxy.custom_auth_method){e=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))}if(!e){this.closeSocket(u.ERRORS.Socks5AuthenticationFailed)}else{this.sendSocks5CommandRequest()}}))}sendSocks5CommandRequest(){const e=new a.SmartBuffer;e.writeUInt8(5);e.writeUInt8(u.SocksCommand[this.options.command]);e.writeUInt8(0);if(o.isIPv4(this.options.destination.host)){e.writeUInt8(u.Socks5HostType.IPv4);e.writeBuffer(s.toBuffer(this.options.destination.host))}else if(o.isIPv6(this.options.destination.host)){e.writeUInt8(u.Socks5HostType.IPv6);e.writeBuffer(s.toBuffer(this.options.destination.host))}else{e.writeUInt8(u.Socks5HostType.Hostname);e.writeUInt8(this.options.destination.host.length);e.writeString(this.options.destination.host)}e.writeUInt16BE(this.options.destination.port);this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader;this.socket.write(e.toBuffer());this.setState(u.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const e=this.receiveBuffer.peek(5);if(e[0]!==5||e[1]!==u.Socks5Response.Granted){this.closeSocket(`${u.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${u.Socks5Response[e[1]]}`)}else{const t=e[3];let r;let n;if(t===u.Socks5HostType.IPv4){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SOCKS5_NO_ACCEPTABLE_AUTH=t.SOCKS5_CUSTOM_AUTH_END=t.SOCKS5_CUSTOM_AUTH_START=t.SOCKS_INCOMING_PACKET_SIZES=t.SocksClientState=t.Socks5Response=t.Socks5HostType=t.Socks5Auth=t.Socks4Response=t.SocksCommand=t.ERRORS=t.DEFAULT_TIMEOUT=void 0;const r=3e4;t.DEFAULT_TIMEOUT=r;const n={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};t.ERRORS=n;const i={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:e=>e+7,Socks4Response:8};t.SOCKS_INCOMING_PACKET_SIZES=i;var o;(function(e){e[e["connect"]=1]="connect";e[e["bind"]=2]="bind";e[e["associate"]=3]="associate"})(o||(o={}));t.SocksCommand=o;var s;(function(e){e[e["Granted"]=90]="Granted";e[e["Failed"]=91]="Failed";e[e["Rejected"]=92]="Rejected";e[e["RejectedIdent"]=93]="RejectedIdent"})(s||(s={}));t.Socks4Response=s;var a;(function(e){e[e["NoAuth"]=0]="NoAuth";e[e["GSSApi"]=1]="GSSApi";e[e["UserPass"]=2]="UserPass"})(a||(a={}));t.Socks5Auth=a;const u=128;t.SOCKS5_CUSTOM_AUTH_START=u;const c=254;t.SOCKS5_CUSTOM_AUTH_END=c;const l=255;t.SOCKS5_NO_ACCEPTABLE_AUTH=l;var d;(function(e){e[e["Granted"]=0]="Granted";e[e["Failure"]=1]="Failure";e[e["NotAllowed"]=2]="NotAllowed";e[e["NetworkUnreachable"]=3]="NetworkUnreachable";e[e["HostUnreachable"]=4]="HostUnreachable";e[e["ConnectionRefused"]=5]="ConnectionRefused";e[e["TTLExpired"]=6]="TTLExpired";e[e["CommandNotSupported"]=7]="CommandNotSupported";e[e["AddressNotSupported"]=8]="AddressNotSupported"})(d||(d={}));t.Socks5Response=d;var h;(function(e){e[e["IPv4"]=1]="IPv4";e[e["Hostname"]=3]="Hostname";e[e["IPv6"]=4]="IPv6"})(h||(h={}));t.Socks5HostType=h;var m;(function(e){e[e["Created"]=0]="Created";e[e["Connecting"]=1]="Connecting";e[e["Connected"]=2]="Connected";e[e["SentInitialHandshake"]=3]="SentInitialHandshake";e[e["ReceivedInitialHandshakeResponse"]=4]="ReceivedInitialHandshakeResponse";e[e["SentAuthentication"]=5]="SentAuthentication";e[e["ReceivedAuthenticationResponse"]=6]="ReceivedAuthenticationResponse";e[e["SentFinalHandshake"]=7]="SentFinalHandshake";e[e["ReceivedFinalResponse"]=8]="ReceivedFinalResponse";e[e["BoundWaitingForConnection"]=9]="BoundWaitingForConnection";e[e["Established"]=10]="Established";e[e["Disconnected"]=11]="Disconnected";e[e["Error"]=99]="Error"})(m||(m={}));t.SocksClientState=m},9921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSocksClientChainOptions=t.validateSocksClientOptions=void 0;const n=r(12663);const i=r(88901);const o=r(12781);function validateSocksClientOptions(e,t=["connect","bind","associate"]){if(!i.SocksCommand[e.command]){throw new n.SocksClientError(i.ERRORS.InvalidSocksCommand,e)}if(t.indexOf(e.command)===-1){throw new n.SocksClientError(i.ERRORS.InvalidSocksCommandForOperation,e)}if(!isValidSocksRemoteHost(e.destination)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsDestination,e)}if(!isValidSocksProxy(e.proxy)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxy,e)}validateCustomProxyAuth(e.proxy,e);if(e.timeout&&!isValidTimeoutValue(e.timeout)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsTimeout,e)}if(e.existing_socket&&!(e.existing_socket instanceof o.Duplex)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsExistingSocket,e)}}t.validateSocksClientOptions=validateSocksClientOptions;function validateSocksClientChainOptions(e){if(e.command!=="connect"){throw new n.SocksClientError(i.ERRORS.InvalidSocksCommandChain,e)}if(!isValidSocksRemoteHost(e.destination)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsDestination,e)}if(!(e.proxies&&Array.isArray(e.proxies)&&e.proxies.length>=2)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxiesLength,e)}e.proxies.forEach((t=>{if(!isValidSocksProxy(t)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxy,e)}validateCustomProxyAuth(t,e)}));if(e.timeout&&!isValidTimeoutValue(e.timeout)){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsTimeout,e)}}t.validateSocksClientChainOptions=validateSocksClientChainOptions;function validateCustomProxyAuth(e,t){if(e.custom_auth_method!==undefined){if(e.custom_auth_methodi.SOCKS5_CUSTOM_AUTH_END){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthRange,t)}if(e.custom_auth_request_handler===undefined||typeof e.custom_auth_request_handler!=="function"){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t)}if(e.custom_auth_response_size===undefined){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t)}if(e.custom_auth_response_handler===undefined||typeof e.custom_auth_response_handler!=="function"){throw new n.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t)}}}function isValidSocksRemoteHost(e){return e&&typeof e.host==="string"&&typeof e.port==="number"&&e.port>=0&&e.port<=65535}function isValidSocksProxy(e){return e&&(typeof e.host==="string"||typeof e.ipaddress==="string")&&typeof e.port==="number"&&e.port>=0&&e.port<=65535&&(e.type===4||e.type===5)}function isValidTimeoutValue(e){return typeof e==="number"&&e>0}},97257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReceiveBuffer=void 0;class ReceiveBuffer{constructor(e=4096){this.buffer=Buffer.allocUnsafe(e);this.offset=0;this.originalSize=e}get length(){return this.offset}append(e){if(!Buffer.isBuffer(e)){throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.")}if(this.offset+e.length>=this.buffer.length){const t=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+e.length));t.copy(this.buffer)}e.copy(this.buffer,this.offset);return this.offset+=e.length}peek(e){if(e>this.offset){throw new Error("Attempted to read beyond the bounds of the managed internal data.")}return this.buffer.slice(0,e)}get(e){if(e>this.offset){throw new Error("Attempted to read beyond the bounds of the managed internal data.")}const t=Buffer.allocUnsafe(e);this.buffer.slice(0,e).copy(t);this.buffer.copyWithin(0,e,e+this.offset-e);this.offset-=e;return t}}t.ReceiveBuffer=ReceiveBuffer},12663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shuffleArray=t.SocksClientError=void 0;class SocksClientError extends Error{constructor(e,t){super(e);this.options=t}}t.SocksClientError=SocksClientError;function shuffleArray(e){for(let t=e.length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1));[e[t],e[r]]=[e[r],e[t]]}}t.shuffleArray=shuffleArray},72662:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});i(r(72076),t)},74607:(e,t,r)=>{var n=r(43157);e.exports=Bitfield;function Bitfield(e){if(!(this instanceof Bitfield))return new Bitfield(e);if(!e)e={};if(Buffer.isBuffer(e))e={buffer:e};this.pageOffset=e.pageOffset||0;this.pageSize=e.pageSize||1024;this.pages=e.pages||n(this.pageSize);this.byteLength=this.pages.length*this.pageSize;this.length=8*this.byteLength;if(!powerOfTwo(this.pageSize))throw new Error("The page size should be a power of two");this._trackUpdates=!!e.trackUpdates;this._pageMask=this.pageSize-1;if(e.buffer){for(var t=0;t>t)};Bitfield.prototype.getByte=function(e){var t=e&this._pageMask;var r=(e-t)/this.pageSize;var n=this.pages.get(r,true);return n?n.buffer[t+this.pageOffset]:0};Bitfield.prototype.set=function(e,t){var r=e&7;var n=(e-r)/8;var i=this.getByte(n);return this.setByte(n,t?i|128>>r:i&(255^128>>r))};Bitfield.prototype.toBuffer=function(){var e=alloc(this.pages.length*this.pageSize);for(var t=0;t=this.byteLength){this.byteLength=e+1;this.length=this.byteLength*8}if(this._trackUpdates)this.pages.updated(i);return true};function alloc(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);t.fill(0);return t}function powerOfTwo(e){return!(e&e-1)}},29045:(e,t,r)=>{var n=r(18874).Buffer;var i={dsa:{parts:["p","q","g","y"],sizePart:"p"},rsa:{parts:["e","n"],sizePart:"n"},ecdsa:{parts:["curve","Q"],sizePart:"Q"},ed25519:{parts:["A"],sizePart:"A"}};i["curve25519"]=i["ed25519"];var o={dsa:{parts:["p","q","g","y","x"]},rsa:{parts:["n","e","d","iqmp","p","q"]},ecdsa:{parts:["curve","Q","d"]},ed25519:{parts:["A","k"]}};o["curve25519"]=o["ed25519"];var s={md5:true,sha1:true,sha256:true,sha384:true,sha512:true};var a={nistp256:{size:256,pkcs8oid:"1.2.840.10045.3.1.7",p:n.from(("00"+"ffffffff 00000001 00000000 00000000"+"00000000 ffffffff ffffffff ffffffff").replace(/ /g,""),"hex"),a:n.from(("00"+"FFFFFFFF 00000001 00000000 00000000"+"00000000 FFFFFFFF FFFFFFFF FFFFFFFC").replace(/ /g,""),"hex"),b:n.from(("5ac635d8 aa3a93e7 b3ebbd55 769886bc"+"651d06b0 cc53b0f6 3bce3c3e 27d2604b").replace(/ /g,""),"hex"),s:n.from(("00"+"c49d3608 86e70493 6a6678e1 139d26b7"+"819f7e90").replace(/ /g,""),"hex"),n:n.from(("00"+"ffffffff 00000000 ffffffff ffffffff"+"bce6faad a7179e84 f3b9cac2 fc632551").replace(/ /g,""),"hex"),G:n.from(("04"+"6b17d1f2 e12c4247 f8bce6e5 63a440f2"+"77037d81 2deb33a0 f4a13945 d898c296"+"4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16"+"2bce3357 6b315ece cbb64068 37bf51f5").replace(/ /g,""),"hex")},nistp384:{size:384,pkcs8oid:"1.3.132.0.34",p:n.from(("00"+"ffffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff ffffffff fffffffe"+"ffffffff 00000000 00000000 ffffffff").replace(/ /g,""),"hex"),a:n.from(("00"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE"+"FFFFFFFF 00000000 00000000 FFFFFFFC").replace(/ /g,""),"hex"),b:n.from(("b3312fa7 e23ee7e4 988e056b e3f82d19"+"181d9c6e fe814112 0314088f 5013875a"+"c656398d 8a2ed19d 2a85c8ed d3ec2aef").replace(/ /g,""),"hex"),s:n.from(("00"+"a335926a a319a27a 1d00896a 6773a482"+"7acdac73").replace(/ /g,""),"hex"),n:n.from(("00"+"ffffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff c7634d81 f4372ddf"+"581a0db2 48b0a77a ecec196a ccc52973").replace(/ /g,""),"hex"),G:n.from(("04"+"aa87ca22 be8b0537 8eb1c71e f320ad74"+"6e1d3b62 8ba79b98 59f741e0 82542a38"+"5502f25d bf55296c 3a545e38 72760ab7"+"3617de4a 96262c6f 5d9e98bf 9292dc29"+"f8f41dbd 289a147c e9da3113 b5f0b8c0"+"0a60b1ce 1d7e819d 7a431d7c 90ea0e5f").replace(/ /g,""),"hex")},nistp521:{size:521,pkcs8oid:"1.3.132.0.35",p:n.from(("01ffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff ffffffff ffffffff"+"ffff").replace(/ /g,""),"hex"),a:n.from(("01FF"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC").replace(/ /g,""),"hex"),b:n.from(("51"+"953eb961 8e1c9a1f 929a21a0 b68540ee"+"a2da725b 99b315f3 b8b48991 8ef109e1"+"56193951 ec7e937b 1652c0bd 3bb1bf07"+"3573df88 3d2c34f1 ef451fd4 6b503f00").replace(/ /g,""),"hex"),s:n.from(("00"+"d09e8800 291cb853 96cc6717 393284aa"+"a0da64ba").replace(/ /g,""),"hex"),n:n.from(("01ff"+"ffffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff ffffffff fffffffa"+"51868783 bf2f966b 7fcc0148 f709a5d0"+"3bb5c9b8 899c47ae bb6fb71e 91386409").replace(/ /g,""),"hex"),G:n.from(("04"+"00c6 858e06b7 0404e9cd 9e3ecb66 2395b442"+"9c648139 053fb521 f828af60 6b4d3dba"+"a14b5e77 efe75928 fe1dc127 a2ffa8de"+"3348b3c1 856a429b f97e7e31 c2e5bd66"+"0118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9"+"98f54449 579b4468 17afbd17 273e662c"+"97ee7299 5ef42640 c550b901 3fad0761"+"353c7086 a272c240 88be9476 9fd16650").replace(/ /g,""),"hex")}};e.exports={info:i,privInfo:o,hashAlgs:s,curves:a}},1421:(e,t,r)=>{e.exports=Certificate;var n=r(31258);var i=r(18874).Buffer;var o=r(29045);var s=r(6113);var a=r(57115);var u=r(80765);var c=r(77980);var l=r(73837);var d=r(47220);var h=r(53364);var m=r(4596);var g=r(13220);var y={};y["openssh"]=r(41445);y["x509"]=r(38305);y["pem"]=r(73710);var v=c.CertificateParseError;var b=c.InvalidAlgorithmError;function Certificate(e){n.object(e,"options");n.arrayOfObject(e.subjects,"options.subjects");d.assertCompatible(e.subjects[0],g,[1,0],"options.subjects");d.assertCompatible(e.subjectKey,h,[1,0],"options.subjectKey");d.assertCompatible(e.issuer,g,[1,0],"options.issuer");if(e.issuerKey!==undefined){d.assertCompatible(e.issuerKey,h,[1,0],"options.issuerKey")}n.object(e.signatures,"options.signatures");n.buffer(e.serial,"options.serial");n.date(e.validFrom,"options.validFrom");n.date(e.validUntil,"optons.validUntil");n.optionalArrayOfString(e.purposes,"options.purposes");this._hashCache={};this.subjects=e.subjects;this.issuer=e.issuer;this.subjectKey=e.subjectKey;this.issuerKey=e.issuerKey;this.signatures=e.signatures;this.serial=e.serial;this.validFrom=e.validFrom;this.validUntil=e.validUntil;this.purposes=e.purposes}Certificate.formats=y;Certificate.prototype.toBuffer=function(e,t){if(e===undefined)e="x509";n.string(e,"format");n.object(y[e],"formats[format]");n.optionalObject(t,"options");return y[e].write(this,t)};Certificate.prototype.toString=function(e,t){if(e===undefined)e="pem";return this.toBuffer(e,t).toString()};Certificate.prototype.fingerprint=function(e){if(e===undefined)e="sha256";n.string(e,"algorithm");var t={type:"certificate",hash:this.hash(e),algorithm:e};return new a(t)};Certificate.prototype.hash=function(e){n.string(e,"algorithm");e=e.toLowerCase();if(o.hashAlgs[e]===undefined)throw new b(e);if(this._hashCache[e])return this._hashCache[e];var t=s.createHash(e).update(this.toBuffer("x509")).digest();this._hashCache[e]=t;return t};Certificate.prototype.isExpired=function(e){if(e===undefined)e=new Date;return!(e.getTime()>=this.validFrom.getTime()&&e.getTime()0&&this.issuer.purposes.indexOf("ca")===-1){return false}return this.isSignedByKey(e.subjectKey)};Certificate.prototype.getExtension=function(e){n.string(e,"keyOrOid");var t=this.getExtensions().filter((function(t){if(t.format==="x509")return t.oid===e;if(t.format==="openssh")return t.name===e;return false}))[0];return t};Certificate.prototype.getExtensions=function(){var e=[];var t=this.signatures.x509;if(t&&t.extras&&t.extras.exts){t.extras.exts.forEach((function(t){t.format="x509";e.push(t)}))}var r=this.signatures.openssh;if(r&&r.exts){r.exts.forEach((function(t){t.format="openssh";e.push(t)}))}return e};Certificate.prototype.isSignedByKey=function(e){d.assertCompatible(e,h,[1,2],"issuerKey");if(this.issuerKey!==undefined){return this.issuerKey.fingerprint("sha512").matches(e)}var t=Object.keys(this.signatures)[0];var r=y[t].verify(this,e);if(r)this.issuerKey=e;return r};Certificate.prototype.signWith=function(e){d.assertCompatible(e,m,[1,2],"key");var t=Object.keys(y);var r=false;for(var n=0;n0){if(l.indexOf("serverAuth")===-1)l.push("serverAuth")}if(y.length>0){if(l.indexOf("clientAuth")===-1)l.push("clientAuth")}if(y.length>0||h.length>0){if(l.indexOf("keyAgreement")===-1)l.push("keyAgreement");if(t.type==="rsa"&&l.indexOf("encryption")===-1)l.push("encryption")}}var v=new Certificate({subjects:o,issuer:o[0],subjectKey:t.toPublic(),issuerKey:t.toPublic(),signatures:{},serial:c,validFrom:s,validUntil:a,purposes:l});v.signWith(t);return v};Certificate.create=function(e,t,r,o,s){var a;if(Array.isArray(e))a=e;else a=[e];n.arrayOfObject(a);a.forEach((function(e){d.assertCompatible(e,g,[1,0],"subject")}));d.assertCompatible(t,h,[1,0],"key");if(m.isPrivateKey(t))t=t.toPublic();d.assertCompatible(r,g,[1,0],"issuer");d.assertCompatible(o,m,[1,2],"issuer key");n.optionalObject(s,"options");if(s===undefined)s={};n.optionalObject(s.validFrom,"options.validFrom");n.optionalObject(s.validUntil,"options.validUntil");var u=s.validFrom;var c=s.validUntil;if(u===undefined)u=new Date;if(c===undefined){n.optionalNumber(s.lifetime,"options.lifetime");var l=s.lifetime;if(l===undefined)l=10*365*24*3600;c=new Date;c.setTime(c.getTime()+l*1e3)}n.optionalBuffer(s.serial,"options.serial");var y=s.serial;if(y===undefined)y=i.from("0000000000000001","hex");var v=s.purposes;if(v===undefined)v=[];if(v.indexOf("signature")===-1)v.push("signature");if(s.ca===true){if(v.indexOf("ca")===-1)v.push("ca");if(v.indexOf("crl")===-1)v.push("crl")}var b=a.filter((function(e){return e.type==="host"}));var _=a.filter((function(e){return e.type==="user"}));if(b.length>0){if(v.indexOf("serverAuth")===-1)v.push("serverAuth")}if(_.length>0){if(v.indexOf("clientAuth")===-1)v.push("clientAuth")}if(_.length>0||b.length>0){if(v.indexOf("keyAgreement")===-1)v.push("keyAgreement");if(t.type==="rsa"&&v.indexOf("encryption")===-1)v.push("encryption")}var E=new Certificate({subjects:a,issuer:r,subjectKey:t,issuerKey:o.toPublic(),signatures:{},serial:y,validFrom:u,validUntil:c,purposes:v});E.signWith(o);return E};Certificate.parse=function(e,t,r){if(typeof e!=="string")n.buffer(e,"data");if(t===undefined)t="auto";n.string(t,"format");if(typeof r==="string")r={filename:r};n.optionalObject(r,"options");if(r===undefined)r={};n.optionalString(r.filename,"options.filename");if(r.filename===undefined)r.filename="(unnamed)";n.object(y[t],"formats[format]");try{var i=y[t].read(e,r);return i}catch(e){throw new v(r.filename,t,e)}};Certificate.isCertificate=function(e,t){return d.isCompatible(e,Certificate,t)};Certificate.prototype._sshpkApiVersion=[1,1];Certificate._oldVersionDetect=function(e){return[1,0]}},99330:(e,t,r)=>{e.exports={DiffieHellman:DiffieHellman,generateECDSA:generateECDSA,generateED25519:generateED25519};var n=r(31258);var i=r(6113);var o=r(18874).Buffer;var s=r(29045);var a=r(47220);var u=r(54740);var c=r(53364);var l=r(4596);var d=i.createECDH!==undefined;var h=r(82279);var m=r(19480);var g=r(79187).BigInteger;function DiffieHellman(e){a.assertCompatible(e,c,[1,4],"key");this._isPriv=l.isPrivateKey(e,[1,3]);this._algo=e.type;this._curve=e.curve;this._key=e;if(e.type==="dsa"){if(!d){throw new Error("Due to bugs in the node 0.10 "+"crypto API, node 0.12.x or later is required "+"to use DH")}this._dh=i.createDiffieHellman(e.part.p.data,undefined,e.part.g.data,undefined);this._p=e.part.p;this._g=e.part.g;if(this._isPriv)this._dh.setPrivateKey(e.part.x.data);this._dh.setPublicKey(e.part.y.data)}else if(e.type==="ecdsa"){if(!d){this._ecParams=new X9ECParameters(this._curve);if(this._isPriv){this._priv=new ECPrivate(this._ecParams,e.part.d.data)}return}var t={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e.curve];this._dh=i.createECDH(t);if(typeof this._dh!=="object"||typeof this._dh.setPrivateKey!=="function"){d=false;DiffieHellman.call(this,e);return}if(this._isPriv)this._dh.setPrivateKey(e.part.d.data);this._dh.setPublicKey(e.part.Q.data)}else if(e.type==="curve25519"){if(this._isPriv){a.assertCompatible(e,l,[1,5],"key");this._priv=e.part.k.data}}else{throw new Error("DH not supported for "+e.type+" keys")}}DiffieHellman.prototype.getPublicKey=function(){if(this._isPriv)return this._key.toPublic();return this._key};DiffieHellman.prototype.getPrivateKey=function(){if(this._isPriv)return this._key;else return undefined};DiffieHellman.prototype.getKey=DiffieHellman.prototype.getPrivateKey;DiffieHellman.prototype._keyCheck=function(e,t){n.object(e,"key");if(!t)a.assertCompatible(e,l,[1,3],"key");a.assertCompatible(e,c,[1,4],"key");if(e.type!==this._algo){throw new Error("A "+e.type+" key cannot be used in "+this._algo+" Diffie-Hellman")}if(e.curve!==this._curve){throw new Error("A key from the "+e.curve+" curve "+"cannot be used with a "+this._curve+" Diffie-Hellman")}if(e.type==="dsa"){n.deepEqual(e.part.p,this._p,"DSA key prime does not match");n.deepEqual(e.part.g,this._g,"DSA key generator does not match")}};DiffieHellman.prototype.setKey=function(e){this._keyCheck(e);if(e.type==="dsa"){this._dh.setPrivateKey(e.part.x.data);this._dh.setPublicKey(e.part.y.data)}else if(e.type==="ecdsa"){if(d){this._dh.setPrivateKey(e.part.d.data);this._dh.setPublicKey(e.part.Q.data)}else{this._priv=new ECPrivate(this._ecParams,e.part.d.data)}}else if(e.type==="curve25519"){var t=e.part.k;if(!e.part.k)t=e.part.r;this._priv=t.data;if(this._priv[0]===0)this._priv=this._priv.slice(1);this._priv=this._priv.slice(0,32)}this._key=e;this._isPriv=true};DiffieHellman.prototype.setPrivateKey=DiffieHellman.prototype.setKey;DiffieHellman.prototype.computeSecret=function(e){this._keyCheck(e,true);if(!this._isPriv)throw new Error("DH exchange has not been initialized with "+"a private key yet");var t;if(this._algo==="dsa"){return this._dh.computeSecret(e.part.y.data)}else if(this._algo==="ecdsa"){if(d){return this._dh.computeSecret(e.part.Q.data)}else{t=new ECPublic(this._ecParams,e.part.Q.data);return this._priv.deriveSharedSecret(t)}}else if(this._algo==="curve25519"){t=e.part.A.data;while(t[0]===0&&t.length>32)t=t.slice(1);var r=this._priv;n.strictEqual(t.length,32);n.strictEqual(r.length,32);var i=u.box.before(new Uint8Array(t),new Uint8Array(r));return o.from(i)}throw new Error("Invalid algorithm: "+this._algo)};DiffieHellman.prototype.generateKey=function(){var e=[];var t,r;if(this._algo==="dsa"){this._dh.generateKeys();e.push({name:"p",data:this._p.data});e.push({name:"q",data:this._key.part.q.data});e.push({name:"g",data:this._g.data});e.push({name:"y",data:this._dh.getPublicKey()});e.push({name:"x",data:this._dh.getPrivateKey()});this._key=new l({type:"dsa",parts:e});this._isPriv=true;return this._key}else if(this._algo==="ecdsa"){if(d){this._dh.generateKeys();e.push({name:"curve",data:o.from(this._curve)});e.push({name:"Q",data:this._dh.getPublicKey()});e.push({name:"d",data:this._dh.getPrivateKey()});this._key=new l({type:"ecdsa",curve:this._curve,parts:e});this._isPriv=true;return this._key}else{var s=this._ecParams.getN();var a=new g(i.randomBytes(s.bitLength()));var c=s.subtract(g.ONE);t=a.mod(c).add(g.ONE);r=this._ecParams.getG().multiply(t);t=o.from(t.toByteArray());r=o.from(this._ecParams.getCurve().encodePointHex(r),"hex");this._priv=new ECPrivate(this._ecParams,t);e.push({name:"curve",data:o.from(this._curve)});e.push({name:"Q",data:r});e.push({name:"d",data:t});this._key=new l({type:"ecdsa",curve:this._curve,parts:e});this._isPriv=true;return this._key}}else if(this._algo==="curve25519"){var h=u.box.keyPair();t=o.from(h.secretKey);r=o.from(h.publicKey);t=o.concat([t,r]);n.strictEqual(t.length,64);n.strictEqual(r.length,32);e.push({name:"A",data:r});e.push({name:"k",data:t});this._key=new l({type:"curve25519",parts:e});this._isPriv=true;return this._key}throw new Error("Invalid algorithm: "+this._algo)};DiffieHellman.prototype.generateKeys=DiffieHellman.prototype.generateKey;function X9ECParameters(e){var t=s.curves[e];n.object(t);var r=new g(t.p);var i=new g(t.a);var o=new g(t.b);var a=new g(t.n);var u=g.ONE;var c=new m.ECCurveFp(r,i,o);var l=c.decodePointHex(t.G.toString("hex"));this.curve=c;this.g=l;this.n=a;this.h=u}X9ECParameters.prototype.getCurve=function(){return this.curve};X9ECParameters.prototype.getG=function(){return this.g};X9ECParameters.prototype.getN=function(){return this.n};X9ECParameters.prototype.getH=function(){return this.h};function ECPublic(e,t){this._params=e;if(t[0]===0)t=t.slice(1);this._pub=e.getCurve().decodePointHex(t.toString("hex"))}function ECPrivate(e,t){this._params=e;this._priv=new g(a.mpNormalize(t))}ECPrivate.prototype.deriveSharedSecret=function(e){n.ok(e instanceof ECPublic);var t=e._pub.multiply(this._priv);return o.from(t.getX().toBigInteger().toByteArray())};function generateED25519(){var e=u.sign.keyPair();var t=o.from(e.secretKey);var r=o.from(e.publicKey);n.strictEqual(t.length,64);n.strictEqual(r.length,32);var i=[];i.push({name:"A",data:r});i.push({name:"k",data:t.slice(0,32)});var s=new l({type:"ed25519",parts:i});return s}function generateECDSA(e){var t=[];var r;if(d){var n={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e];var s=i.createECDH(n);s.generateKeys();t.push({name:"curve",data:o.from(e)});t.push({name:"Q",data:s.getPublicKey()});t.push({name:"d",data:s.getPrivateKey()});r=new l({type:"ecdsa",curve:e,parts:t});return r}else{var a=new X9ECParameters(e);var u=a.getN();var c=Math.ceil((u.bitLength()+64)/8);var h=new g(i.randomBytes(c));var m=u.subtract(g.ONE);var y=h.mod(m).add(g.ONE);var v=a.getG().multiply(y);y=o.from(y.toByteArray());v=o.from(a.getCurve().encodePointHex(v),"hex");t.push({name:"curve",data:o.from(e)});t.push({name:"Q",data:v});t.push({name:"d",data:y});r=new l({type:"ecdsa",curve:e,parts:t});return r}}},78798:(e,t,r)=>{e.exports={Verifier:Verifier,Signer:Signer};var n=r(54740);var i=r(12781);var o=r(73837);var s=r(31258);var a=r(18874).Buffer;var u=r(80765);function Verifier(e,t){if(t.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of "+"SHA-512 hashes");this.key=e;this.chunks=[];i.Writable.call(this,{})}o.inherits(Verifier,i.Writable);Verifier.prototype._write=function(e,t,r){this.chunks.push(e);r()};Verifier.prototype.update=function(e){if(typeof e==="string")e=a.from(e,"binary");this.chunks.push(e)};Verifier.prototype.verify=function(e,t){var r;if(u.isSignature(e,[2,0])){if(e.type!=="ed25519")return false;r=e.toBuffer("raw")}else if(typeof e==="string"){r=a.from(e,"base64")}else if(u.isSignature(e,[1,0])){throw new Error("signature was created by too old "+"a version of sshpk and cannot be verified")}s.buffer(r);return n.sign.detached.verify(new Uint8Array(a.concat(this.chunks)),new Uint8Array(r),new Uint8Array(this.key.part.A.data))};function Signer(e,t){if(t.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of "+"SHA-512 hashes");this.key=e;this.chunks=[];i.Writable.call(this,{})}o.inherits(Signer,i.Writable);Signer.prototype._write=function(e,t,r){this.chunks.push(e);r()};Signer.prototype.update=function(e){if(typeof e==="string")e=a.from(e,"binary");this.chunks.push(e)};Signer.prototype.sign=function(){var e=n.sign.detached(new Uint8Array(a.concat(this.chunks)),new Uint8Array(a.concat([this.key.part.k.data,this.key.part.A.data])));var t=a.from(e);var r=u.parse(t,"ed25519","raw");r.hashAlgorithm="sha512";return r}},77980:(e,t,r)=>{var n=r(31258);var i=r(73837);function FingerprintFormatError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,FingerprintFormatError);this.name="FingerprintFormatError";this.fingerprint=e;this.format=t;this.message="Fingerprint format is not supported, or is invalid: ";if(e!==undefined)this.message+=" fingerprint = "+e;if(t!==undefined)this.message+=" format = "+t}i.inherits(FingerprintFormatError,Error);function InvalidAlgorithmError(e){if(Error.captureStackTrace)Error.captureStackTrace(this,InvalidAlgorithmError);this.name="InvalidAlgorithmError";this.algorithm=e;this.message='Algorithm "'+e+'" is not supported'}i.inherits(InvalidAlgorithmError,Error);function KeyParseError(e,t,r){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyParseError);this.name="KeyParseError";this.format=t;this.keyName=e;this.innerErr=r;this.message="Failed to parse "+e+" as a valid "+t+" format key: "+r.message}i.inherits(KeyParseError,Error);function SignatureParseError(e,t,r){if(Error.captureStackTrace)Error.captureStackTrace(this,SignatureParseError);this.name="SignatureParseError";this.type=e;this.format=t;this.innerErr=r;this.message="Failed to parse the given data as a "+e+" signature in "+t+" format: "+r.message}i.inherits(SignatureParseError,Error);function CertificateParseError(e,t,r){if(Error.captureStackTrace)Error.captureStackTrace(this,CertificateParseError);this.name="CertificateParseError";this.format=t;this.certName=e;this.innerErr=r;this.message="Failed to parse "+e+" as a valid "+t+" format certificate: "+r.message}i.inherits(CertificateParseError,Error);function KeyEncryptedError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyEncryptedError);this.name="KeyEncryptedError";this.format=t;this.keyName=e;this.message="The "+t+" format key "+e+" is "+"encrypted (password-protected), and no passphrase was "+"provided in `options`"}i.inherits(KeyEncryptedError,Error);e.exports={FingerprintFormatError:FingerprintFormatError,InvalidAlgorithmError:InvalidAlgorithmError,KeyParseError:KeyParseError,SignatureParseError:SignatureParseError,KeyEncryptedError:KeyEncryptedError,CertificateParseError:CertificateParseError}},57115:(e,t,r)=>{e.exports=Fingerprint;var n=r(31258);var i=r(18874).Buffer;var o=r(29045);var s=r(6113);var a=r(77980);var u=r(53364);var c=r(4596);var l=r(1421);var d=r(47220);var h=a.FingerprintFormatError;var m=a.InvalidAlgorithmError;function Fingerprint(e){n.object(e,"options");n.string(e.type,"options.type");n.buffer(e.hash,"options.hash");n.string(e.algorithm,"options.algorithm");this.algorithm=e.algorithm.toLowerCase();if(o.hashAlgs[this.algorithm]!==true)throw new m(this.algorithm);this.hash=e.hash;this.type=e.type;this.hashType=e.hashType}Fingerprint.prototype.toString=function(e){if(e===undefined){if(this.algorithm==="md5"||this.hashType==="spki")e="hex";else e="base64"}n.string(e);switch(e){case"hex":if(this.hashType==="spki")return this.hash.toString("hex");return addColons(this.hash.toString("hex"));case"base64":if(this.hashType==="spki")return this.hash.toString("base64");return sshBase64Format(this.algorithm,this.hash.toString("base64"));default:throw new h(undefined,e)}};Fingerprint.prototype.matches=function(e){n.object(e,"key or certificate");if(this.type==="key"&&this.hashType!=="ssh"){d.assertCompatible(e,u,[1,7],"key with spki");if(c.isPrivateKey(e)){d.assertCompatible(e,c,[1,6],"privatekey with spki support")}}else if(this.type==="key"){d.assertCompatible(e,u,[1,0],"key")}else{d.assertCompatible(e,l,[1,0],"certificate")}var t=e.hash(this.algorithm,this.hashType);var r=s.createHash(this.algorithm).update(t).digest("base64");if(this.hash2===undefined)this.hash2=s.createHash(this.algorithm).update(this.hash).digest("base64");return this.hash2===r};var g=/^[A-Za-z0-9+\/=]+$/;var y=/^[a-fA-F0-9]+$/;Fingerprint.parse=function(e,t){n.string(e,"fingerprint");var r,s,a;if(Array.isArray(t)){a=t;t={}}n.optionalObject(t,"options");if(t===undefined)t={};if(t.enAlgs!==undefined)a=t.enAlgs;if(t.algorithms!==undefined)a=t.algorithms;n.optionalArrayOfString(a,"algorithms");var u="ssh";if(t.hashType!==undefined)u=t.hashType;n.string(u,"options.hashType");var c=e.split(":");if(c.length==2){r=c[0].toLowerCase();if(!g.test(c[1]))throw new h(e);try{s=i.from(c[1],"base64")}catch(t){throw new h(e)}}else if(c.length>2){r="md5";if(c[0].toLowerCase()==="md5")c=c.slice(1);c=c.map((function(t){while(t.length<2)t="0"+t;if(t.length>2)throw new h(e);return t}));c=c.join("");if(!y.test(c)||c.length%2!==0)throw new h(e);try{s=i.from(c,"hex")}catch(t){throw new h(e)}}else{if(y.test(e)){s=i.from(e,"hex")}else if(g.test(e)){s=i.from(e,"base64")}else{throw new h(e)}switch(s.length){case 32:r="sha256";break;case 16:r="md5";break;case 20:r="sha1";break;case 64:r="sha512";break;default:throw new h(e)}if(t.hashType===undefined)u="spki"}if(r===undefined)throw new h(e);if(o.hashAlgs[r]===undefined)throw new m(r);if(a!==undefined){a=a.map((function(e){return e.toLowerCase()}));if(a.indexOf(r)===-1)throw new m(r)}return new Fingerprint({algorithm:r,hash:s,type:t.type||"key",hashType:u})};function addColons(e){return e.replace(/(.{2})(?=.)/g,"$1:")}function base64Strip(e){return e.replace(/=*$/,"")}function sshBase64Format(e,t){return e.toUpperCase()+":"+base64Strip(t)}Fingerprint.isFingerprint=function(e,t){return d.isCompatible(e,Fingerprint,t)};Fingerprint.prototype._sshpkApiVersion=[1,2];Fingerprint._oldVersionDetect=function(e){n.func(e.toString);n.func(e.matches);return[1,0]}},71030:(e,t,r)=>{e.exports={read:read,write:write};var n=r(31258);var i=r(18874).Buffer;var o=r(47220);var s=r(53364);var a=r(4596);var u=r(85558);var c=r(53769);var l=r(63382);var d=r(4784);var h=r(30181);var m="Private-key-format: v1";function read(e,t){if(typeof e==="string"){if(e.trim().match(/^[-]+[ ]*BEGIN/))return u.read(e,t);if(e.match(/^\s*ssh-[a-z]/))return c.read(e,t);if(e.match(/^\s*ecdsa-/))return c.read(e,t);if(e.match(/^putty-user-key-file-2:/i))return h.read(e,t);if(findDNSSECHeader(e))return d.read(e,t);e=i.from(e,"binary")}else{n.buffer(e);if(findPEMHeader(e))return u.read(e,t);if(findSSHHeader(e))return c.read(e,t);if(findPuTTYHeader(e))return h.read(e,t);if(findDNSSECHeader(e))return d.read(e,t)}if(e.readUInt32BE(0)e.length||e.slice(t,t+5).toString("ascii")!=="BEGIN")return false;return true}function findDNSSECHeader(e){if(e.length<=m.length)return false;var t=e.slice(0,m.length);if(t.toString("ascii")===m)return true;if(typeof e!=="string"){e=e.toString("ascii")}var r=e.split("\n");var n=0;while(r[n].match(/^\;/))n++;if(r[n].toString("ascii").match(/\. IN KEY /))return true;if(r[n].toString("ascii").match(/\. IN DNSKEY /))return true;return false}function write(e,t){throw new Error('"auto" format cannot be used for writing')}},4784:(e,t,r)=>{e.exports={read:read,write:write};var n=r(31258);var i=r(18874).Buffer;var o=r(53364);var s=r(4596);var a=r(47220);var u=r(84106);var c=r(99330);var l={"rsa-sha1":5,"rsa-sha256":8,"rsa-sha512":10,"ecdsa-p256-sha256":13,"ecdsa-p384-sha384":14};var d={};Object.keys(l).forEach((function(e){d[l[e]]=e.toUpperCase()}));function read(e,t){if(typeof e!=="string"){n.buffer(e,"buf");e=e.toString("ascii")}var r=e.split("\n");if(r[0].match(/^Private-key-format\: v1/)){var i=r[1].split(" ");var o=parseInt(i[1],10);var s=i[2];if(!d[o])throw new Error("Unsupported algorithm: "+s);return readDNSSECPrivateKey(o,r.slice(2))}var a=0;while(r[a].match(/^\;/))a++;if((r[a].match(/\. IN KEY /)||r[a].match(/\. IN DNSKEY /))&&r[a+1].length===0){return readRFC3110(r[a])}throw new Error("Cannot parse dnssec key")}function readRFC3110(e){var t=e.split(" ");var r=parseInt(t[5],10);if(!d[r])throw new Error("Unsupported algorithm: "+r);var n=t.slice(6,t.length).join();var s=i.from(n,"base64");if(d[r].match(/^RSA-/)){var u=s.readUInt8(0);if(u!=3&&u!=1)throw new Error("Cannot parse dnssec key: "+"unsupported exponent length");var c=s.slice(1,u+1);c=a.mpNormalize(c);var l=s.slice(1+u);l=a.mpNormalize(l);var h={type:"rsa",parts:[]};h.parts.push({name:"e",data:c});h.parts.push({name:"n",data:l});return new o(h)}if(d[r]==="ECDSA-P384-SHA384"||d[r]==="ECDSA-P256-SHA256"){var m="nistp384";var g=384;if(d[r].match(/^ECDSA-P256-SHA256/)){m="nistp256";g=256}var y={type:"ecdsa",curve:m,size:g,parts:[{name:"curve",data:i.from(m)},{name:"Q",data:a.ecNormalize(s)}]};return new o(y)}throw new Error("Unsupported algorithm: "+d[r])}function elementToBuf(e){return i.from(e.split(" ")[1],"base64")}function readDNSSECRSAPrivateKey(e){var t={};e.forEach((function(e){if(e.split(" ")[0]==="Modulus:")t["n"]=elementToBuf(e);else if(e.split(" ")[0]==="PublicExponent:")t["e"]=elementToBuf(e);else if(e.split(" ")[0]==="PrivateExponent:")t["d"]=elementToBuf(e);else if(e.split(" ")[0]==="Prime1:")t["p"]=elementToBuf(e);else if(e.split(" ")[0]==="Prime2:")t["q"]=elementToBuf(e);else if(e.split(" ")[0]==="Exponent1:")t["dmodp"]=elementToBuf(e);else if(e.split(" ")[0]==="Exponent2:")t["dmodq"]=elementToBuf(e);else if(e.split(" ")[0]==="Coefficient:")t["iqmp"]=elementToBuf(e)}));var r={type:"rsa",parts:[{name:"e",data:a.mpNormalize(t["e"])},{name:"n",data:a.mpNormalize(t["n"])},{name:"d",data:a.mpNormalize(t["d"])},{name:"p",data:a.mpNormalize(t["p"])},{name:"q",data:a.mpNormalize(t["q"])},{name:"dmodp",data:a.mpNormalize(t["dmodp"])},{name:"dmodq",data:a.mpNormalize(t["dmodq"])},{name:"iqmp",data:a.mpNormalize(t["iqmp"])}]};return new s(r)}function readDNSSECPrivateKey(e,t){if(d[e].match(/^RSA-/)){return readDNSSECRSAPrivateKey(t)}if(d[e]==="ECDSA-P384-SHA384"||d[e]==="ECDSA-P256-SHA256"){var r=i.from(t[0].split(" ")[1],"base64");var n="nistp384";var o=384;if(d[e]==="ECDSA-P256-SHA256"){n="nistp256";o=256}var u=a.publicFromPrivateECDSA(n,r);var c=u.part["Q"].data;var l={type:"ecdsa",curve:n,size:o,parts:[{name:"curve",data:i.from(n)},{name:"d",data:r},{name:"Q",data:c}]};return new s(l)}throw new Error("Unsupported algorithm: "+d[e])}function dnssecTimestamp(e){var t=e.getFullYear()+"";var r=e.getMonth()+1;var n=t+r+e.getUTCDate();n+=""+e.getUTCHours()+e.getUTCMinutes();n+=e.getUTCSeconds();return n}function rsaAlgFromOptions(e){if(!e||!e.hashAlgo||e.hashAlgo==="sha1")return"5 (RSASHA1)";else if(e.hashAlgo==="sha256")return"8 (RSASHA256)";else if(e.hashAlgo==="sha512")return"10 (RSASHA512)";else throw new Error("Unknown or unsupported hash: "+e.hashAlgo)}function writeRSA(e,t){if(!e.part.dmodp||!e.part.dmodq){a.addRSAMissing(e)}var r="";r+="Private-key-format: v1.3\n";r+="Algorithm: "+rsaAlgFromOptions(t)+"\n";var n=a.mpDenormalize(e.part["n"].data);r+="Modulus: "+n.toString("base64")+"\n";var o=a.mpDenormalize(e.part["e"].data);r+="PublicExponent: "+o.toString("base64")+"\n";var s=a.mpDenormalize(e.part["d"].data);r+="PrivateExponent: "+s.toString("base64")+"\n";var u=a.mpDenormalize(e.part["p"].data);r+="Prime1: "+u.toString("base64")+"\n";var c=a.mpDenormalize(e.part["q"].data);r+="Prime2: "+c.toString("base64")+"\n";var l=a.mpDenormalize(e.part["dmodp"].data);r+="Exponent1: "+l.toString("base64")+"\n";var d=a.mpDenormalize(e.part["dmodq"].data);r+="Exponent2: "+d.toString("base64")+"\n";var h=a.mpDenormalize(e.part["iqmp"].data);r+="Coefficient: "+h.toString("base64")+"\n";var m=new Date;r+="Created: "+dnssecTimestamp(m)+"\n";r+="Publish: "+dnssecTimestamp(m)+"\n";r+="Activate: "+dnssecTimestamp(m)+"\n";return i.from(r,"ascii")}function writeECDSA(e,t){var r="";r+="Private-key-format: v1.3\n";if(e.curve==="nistp256"){r+="Algorithm: 13 (ECDSAP256SHA256)\n"}else if(e.curve==="nistp384"){r+="Algorithm: 14 (ECDSAP384SHA384)\n"}else{throw new Error("Unsupported curve")}var n=e.part["d"].data.toString("base64");r+="PrivateKey: "+n+"\n";var o=new Date;r+="Created: "+dnssecTimestamp(o)+"\n";r+="Publish: "+dnssecTimestamp(o)+"\n";r+="Activate: "+dnssecTimestamp(o)+"\n";return i.from(r,"ascii")}function write(e,t){if(s.isPrivateKey(e)){if(e.type==="rsa"){return writeRSA(e,t)}else if(e.type==="ecdsa"){return writeECDSA(e,t)}else{throw new Error("Unsupported algorithm: "+e.type)}}else if(o.isKey(e)){throw new Error('Format "dnssec" only supports '+"writing private keys")}else{throw new Error("key is not a Key or PrivateKey")}}},41445:(e,t,r)=>{e.exports={read:read,verify:verify,sign:sign,signAsync:signAsync,write:write,fromBuffer:fromBuffer,toBuffer:toBuffer};var n=r(31258);var i=r(84106);var o=r(6113);var s=r(18874).Buffer;var a=r(29045);var u=r(53364);var c=r(4596);var l=r(13220);var d=r(63382);var h=r(80765);var m=r(47220);var g=r(1421);function verify(e,t){return false}var y={user:1,host:2};Object.keys(y).forEach((function(e){y[y[e]]=e}));var v=/^ecdsa-sha2-([^@-]+)-cert-v01@openssh.com$/;function read(e,t){if(s.isBuffer(e))e=e.toString("ascii");var r=e.trim().split(/[ \t\n]+/g);if(r.length<2||r.length>3)throw new Error("Not a valid SSH certificate line");var n=r[0];var i=r[1];i=s.from(i,"base64");return fromBuffer(i,n)}function fromBuffer(e,t,r){var o=new i({buffer:e});var s=o.readString();if(t!==undefined&&s!==t)throw new Error("SSH certificate algorithm mismatch");if(t===undefined)t=s;var c={};c.signatures={};c.signatures.openssh={};c.signatures.openssh.nonce=o.readBuffer();var b={};var _=b.parts=[];b.type=getAlg(t);var E=a.info[b.type].parts.length;while(_.length=1,"key must have at least one part");var k=a.info[b.type];if(b.type==="ecdsa"){var x=v.exec(t);n.ok(x!==null);n.strictEqual(x[1],_[0].data.toString())}for(var C=0;C{e.exports={read:read,write:write};var n=r(31258);var i=r(86760);var o=r(6113);var s=r(18874).Buffer;var a=r(29045);var u=r(47220);var c=r(53364);var l=r(4596);var d=r(3860);var h=r(4128);var m=r(87370);var g=r(63382);var y=r(77980);var v="1.2.840.113549.1.5.13";var b="1.2.840.113549.1.5.12";var _={"1.2.840.113549.3.7":"3des-cbc","2.16.840.1.101.3.4.1.2":"aes128-cbc","2.16.840.1.101.3.4.1.42":"aes256-cbc"};var E={};Object.keys(_).forEach((function(e){E[_[e]]=e}));var k={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"};var x={};Object.keys(k).forEach((function(e){x[k[e]]=e}));function read(e,t,r){var a=e;if(typeof e!=="string"){n.buffer(e,"buf");e=e.toString("ascii")}var c=e.trim().split(/[\r\n]+/g);var l;var E=-1;while(!l&&E0){x=c[--C].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/)}n.ok(x,"invalid PEM footer");n.equal(l[2],x[2]);var O=l[2].toLowerCase();var D;if(l[1]){n.equal(l[1],x[1],"PEM header and footer mismatch");D=l[1].trim()}c=c.slice(E,C+1);var B={};while(true){c=c.slice(1);l=c[0].match(/^([A-Za-z0-9-]+): (.+)$/);if(!l)break;B[l[1].toLowerCase()]=l[2]}c=c.slice(0,-1).join("");e=s.from(c,"base64");var P,I,R;if(B["proc-type"]){var N=B["proc-type"].split(",");if(N[0]==="4"&&N[1]==="ENCRYPTED"){if(typeof t.passphrase==="string"){t.passphrase=s.from(t.passphrase,"utf-8")}if(!s.isBuffer(t.passphrase)){throw new y.KeyEncryptedError(t.filename,"PEM")}else{N=B["dek-info"].split(",");n.ok(N.length===2);P=N[0].toLowerCase();R=s.from(N[1],"hex");I=u.opensslKeyDeriv(P,R,t.passphrase,1).key}}}if(D&&D.toLowerCase()==="encrypted"){var $=new i.BerReader(e);var L;$.readSequence();$.readSequence();L=$.offset+$.length;var q=$.readOID();if(q!==v){throw new Error("Unsupported PEM/PKCS8 encryption "+"scheme: "+q)}$.readSequence();$.readSequence();var z=$.offset+$.length;var U=$.readOID();if(U!==b)throw new Error("Unsupported PBES2 KDF: "+U);$.readSequence();var V=$.readString(i.Ber.OctetString,true);var W=$.readInt();var G="sha1";if($.offsetm.length)_=m.length;v+=y.write(m.slice(b,_),v);y[v++]=10;b=_}v+=y.write("-----END "+a+"-----\n",v);return y.slice(0,v)}},3860:(e,t,r)=>{e.exports={read:read,readPkcs1:readPkcs1,write:write,writePkcs1:writePkcs1};var n=r(31258);var i=r(86760);var o=r(18874).Buffer;var s=r(29045);var a=r(47220);var u=r(53364);var c=r(4596);var l=r(85558);var d=r(4128);var h=d.readECDSACurve;function read(e,t){return l.read(e,t,"pkcs1")}function write(e,t){return l.write(e,t,"pkcs1")}function readMPInt(e,t){n.strictEqual(e.peek(),i.Ber.Integer,t+" is not an Integer");return a.mpNormalize(e.readString(i.Ber.Integer,true))}function readPkcs1(e,t,r){switch(e){case"RSA":if(t==="public")return readPkcs1RSAPublic(r);else if(t==="private")return readPkcs1RSAPrivate(r);throw new Error("Unknown key type: "+t);case"DSA":if(t==="public")return readPkcs1DSAPublic(r);else if(t==="private")return readPkcs1DSAPrivate(r);throw new Error("Unknown key type: "+t);case"EC":case"ECDSA":if(t==="private")return readPkcs1ECDSAPrivate(r);else if(t==="public")return readPkcs1ECDSAPublic(r);throw new Error("Unknown key type: "+t);case"EDDSA":case"EdDSA":if(t==="private")return readPkcs1EdDSAPrivate(r);throw new Error(t+" keys not supported with EdDSA");default:throw new Error("Unknown key algo: "+e)}}function readPkcs1RSAPublic(e){var t=readMPInt(e,"modulus");var r=readMPInt(e,"exponent");var n={type:"rsa",parts:[{name:"e",data:r},{name:"n",data:t}]};return new u(n)}function readPkcs1RSAPrivate(e){var t=readMPInt(e,"version");n.strictEqual(t[0],0);var r=readMPInt(e,"modulus");var i=readMPInt(e,"public exponent");var o=readMPInt(e,"private exponent");var s=readMPInt(e,"prime1");var a=readMPInt(e,"prime2");var u=readMPInt(e,"exponent1");var l=readMPInt(e,"exponent2");var d=readMPInt(e,"iqmp");var h={type:"rsa",parts:[{name:"n",data:r},{name:"e",data:i},{name:"d",data:o},{name:"iqmp",data:d},{name:"p",data:s},{name:"q",data:a},{name:"dmodp",data:u},{name:"dmodq",data:l}]};return new c(h)}function readPkcs1DSAPrivate(e){var t=readMPInt(e,"version");n.strictEqual(t.readUInt8(0),0);var r=readMPInt(e,"p");var i=readMPInt(e,"q");var o=readMPInt(e,"g");var s=readMPInt(e,"y");var a=readMPInt(e,"x");var u={type:"dsa",parts:[{name:"p",data:r},{name:"q",data:i},{name:"g",data:o},{name:"y",data:s},{name:"x",data:a}]};return new c(u)}function readPkcs1EdDSAPrivate(e){var t=readMPInt(e,"version");n.strictEqual(t.readUInt8(0),1);var r=e.readString(i.Ber.OctetString,true);e.readSequence(160);var o=e.readOID();n.strictEqual(o,"1.3.101.112","the ed25519 curve identifier");e.readSequence(161);var s=a.readBitString(e);var u={type:"ed25519",parts:[{name:"A",data:a.zeroPadToLength(s,32)},{name:"k",data:r}]};return new c(u)}function readPkcs1DSAPublic(e){var t=readMPInt(e,"y");var r=readMPInt(e,"p");var n=readMPInt(e,"q");var i=readMPInt(e,"g");var o={type:"dsa",parts:[{name:"y",data:t},{name:"p",data:r},{name:"q",data:n},{name:"g",data:i}]};return new u(o)}function readPkcs1ECDSAPublic(e){e.readSequence();var t=e.readOID();n.strictEqual(t,"1.2.840.10045.2.1","must be ecPublicKey");var r=e.readOID();var c;var l=Object.keys(s.curves);for(var d=0;d{e.exports={read:read,readPkcs8:readPkcs8,write:write,writePkcs8:writePkcs8,pkcs8ToBuffer:pkcs8ToBuffer,readECDSACurve:readECDSACurve,writeECDSACurve:writeECDSACurve};var n=r(31258);var i=r(86760);var o=r(18874).Buffer;var s=r(29045);var a=r(47220);var u=r(53364);var c=r(4596);var l=r(85558);function read(e,t){return l.read(e,t,"pkcs8")}function write(e,t){return l.write(e,t,"pkcs8")}function readMPInt(e,t){n.strictEqual(e.peek(),i.Ber.Integer,t+" is not an Integer");return a.mpNormalize(e.readString(i.Ber.Integer,true))}function readPkcs8(e,t,r){if(r.peek()===i.Ber.Integer){n.strictEqual(t,"private","unexpected Integer at start of public key");r.readString(i.Ber.Integer,true)}r.readSequence();var o=r.offset+r.length;var s=r.readOID();switch(s){case"1.2.840.113549.1.1.1":r._offset=o;if(t==="public")return readPkcs8RSAPublic(r);else return readPkcs8RSAPrivate(r);case"1.2.840.10040.4.1":if(t==="public")return readPkcs8DSAPublic(r);else return readPkcs8DSAPrivate(r);case"1.2.840.10045.2.1":if(t==="public")return readPkcs8ECDSAPublic(r);else return readPkcs8ECDSAPrivate(r);case"1.3.101.112":if(t==="public"){return readPkcs8EdDSAPublic(r)}else{return readPkcs8EdDSAPrivate(r)}case"1.3.101.110":if(t==="public"){return readPkcs8X25519Public(r)}else{return readPkcs8X25519Private(r)}default:throw new Error("Unknown key type OID "+s)}}function readPkcs8RSAPublic(e){e.readSequence(i.Ber.BitString);e.readByte();e.readSequence();var t=readMPInt(e,"modulus");var r=readMPInt(e,"exponent");var n={type:"rsa",source:e.originalInput,parts:[{name:"e",data:r},{name:"n",data:t}]};return new u(n)}function readPkcs8RSAPrivate(e){e.readSequence(i.Ber.OctetString);e.readSequence();var t=readMPInt(e,"version");n.equal(t[0],0,"unknown RSA private key version");var r=readMPInt(e,"modulus");var o=readMPInt(e,"public exponent");var s=readMPInt(e,"private exponent");var a=readMPInt(e,"prime1");var u=readMPInt(e,"prime2");var l=readMPInt(e,"exponent1");var d=readMPInt(e,"exponent2");var h=readMPInt(e,"iqmp");var m={type:"rsa",parts:[{name:"n",data:r},{name:"e",data:o},{name:"d",data:s},{name:"iqmp",data:h},{name:"p",data:a},{name:"q",data:u},{name:"dmodp",data:l},{name:"dmodq",data:d}]};return new c(m)}function readPkcs8DSAPublic(e){e.readSequence();var t=readMPInt(e,"p");var r=readMPInt(e,"q");var n=readMPInt(e,"g");e.readSequence(i.Ber.BitString);e.readByte();var o=readMPInt(e,"y");var s={type:"dsa",parts:[{name:"p",data:t},{name:"q",data:r},{name:"g",data:n},{name:"y",data:o}]};return new u(s)}function readPkcs8DSAPrivate(e){e.readSequence();var t=readMPInt(e,"p");var r=readMPInt(e,"q");var n=readMPInt(e,"g");e.readSequence(i.Ber.OctetString);var o=readMPInt(e,"x");var s=a.calculateDSAPublic(n,t,o);var u={type:"dsa",parts:[{name:"p",data:t},{name:"q",data:r},{name:"g",data:n},{name:"y",data:s},{name:"x",data:o}]};return new c(u)}function readECDSACurve(e){var t,r;var u,c,l;if(e.peek()===i.Ber.OID){var d=e.readOID();r=Object.keys(s.curves);for(u=0;u{e.exports={read:read,write:write};var n=r(31258);var i=r(18874).Buffer;var o=r(63382);var s=r(53364);var a=r(84106);var u=r(6113);var c=r(4596);var l=r(77980);function read(e,t){var r=e.toString("ascii").split(/[\r\n]+/);var s=false;var d;var h=0;var m;while(hr.length){throw new Error("Invalid public-lines count")}var _=i.from(r.slice(h,h+b).join(""),"base64");var E=o.algToKeyType(g);var k=o.read(_);if(k.type!==E){throw new Error("Outer key algorithm mismatch")}h+=b;if(r[h]){d=splitHeader(r[h++]);n.equal(d[0].toLowerCase(),"private-lines");var x=parseInt(d[1],10);if(!isFinite(x)||x<0||x>r.length){throw new Error("Invalid private-lines count")}var C=i.from(r.slice(h,h+x).join(""),"base64");if(y!=="none"&&m===3){throw new Error("Encrypted keys arenot supported for"+" PuTTY format version 3")}if(y==="aes256-cbc"){if(!t.passphrase){throw new l.KeyEncryptedError(t.filename,"PEM")}var O=i.alloc(16,0);var D=u.createDecipheriv("aes-256-cbc",derivePPK2EncryptionKey(t.passphrase),O);D.setAutoPadding(false);C=i.concat([D.update(C),D.final()])}k=new c(k);if(k.type!==E){throw new Error("Outer key algorithm mismatch")}var B=new a({buffer:C});var P;if(g==="ssh-dss"){P=[{name:"x",data:B.readBuffer()}]}else if(g==="ssh-rsa"){P=[{name:"d",data:B.readBuffer()},{name:"p",data:B.readBuffer()},{name:"q",data:B.readBuffer()},{name:"iqmp",data:B.readBuffer()}]}else if(g.match(/^ecdsa-sha2-nistp/)){P=[{name:"d",data:B.readBuffer()}]}else if(g==="ssh-ed25519"){P=[{name:"k",data:B.readBuffer()}]}else{throw new Error("Unsupported PPK key type: "+g)}k=new c({type:k.type,parts:k.parts.concat(P)})}k.comment=v;return k}function derivePPK2EncryptionKey(e){var t=u.createHash("sha1").update(i.concat([i.from([0,0,0,0]),i.from(e)])).digest();var r=u.createHash("sha1").update(i.concat([i.from([0,0,0,1]),i.from(e)])).digest();return i.concat([t,r]).slice(0,32)}function splitHeader(e){var t=e.indexOf(":");if(t===-1)return null;var r=e.slice(0,t);++t;while(e[t]===" ")++t;var n=e.slice(t);return[r,n]}function write(e,t){n.object(e);if(!s.isKey(e))throw new Error("Must be a public key");var r=o.keyTypeToAlg(e);var a=o.write(e);var u=e.comment||"";var c=a.toString("base64");var l=wrap(c,64);l.unshift("Public-Lines: "+l.length);l.unshift("Comment: "+u);l.unshift("Encryption: none");l.unshift("PuTTY-User-Key-File-2: "+r);return i.from(l.join("\n")+"\n")}function wrap(e,t){var r=[];var n=0;while(n{e.exports={read:read.bind(undefined,false,undefined),readType:read.bind(undefined,false),write:write,readPartial:read.bind(undefined,true),readInternal:read,keyTypeToAlg:keyTypeToAlg,algToKeyType:algToKeyType};var n=r(31258);var i=r(18874).Buffer;var o=r(29045);var s=r(47220);var a=r(53364);var u=r(4596);var c=r(84106);function algToKeyType(e){n.string(e);if(e==="ssh-dss")return"dsa";else if(e==="ssh-rsa")return"rsa";else if(e==="ssh-ed25519")return"ed25519";else if(e==="ssh-curve25519")return"curve25519";else if(e.match(/^ecdsa-sha2-/))return"ecdsa";else throw new Error("Unknown algorithm "+e)}function keyTypeToAlg(e){n.object(e);if(e.type==="dsa")return"ssh-dss";else if(e.type==="rsa")return"ssh-rsa";else if(e.type==="ed25519")return"ssh-ed25519";else if(e.type==="curve25519")return"ssh-curve25519";else if(e.type==="ecdsa")return"ecdsa-sha2-"+e.part.curve.data.toString();else throw new Error("Unknown key type "+e.type)}function read(e,t,r,l){if(typeof r==="string")r=i.from(r);n.buffer(r,"buf");var d={};var h=d.parts=[];var m=new c({buffer:r});var g=m.readString();n.ok(!m.atEnd(),"key must have at least one part");d.type=algToKeyType(g);var y=o.info[d.type].parts.length;if(t&&t==="private")y=o.privInfo[d.type].parts.length;while(!m.atEnd()&&h.length=1,"key must have at least one part");n.ok(e||m.atEnd(),"leftover bytes at end of key");var v=a;var b=o.info[d.type];if(t==="private"||b.parts.length!==h.length){b=o.privInfo[d.type];v=u}n.strictEqual(b.parts.length,h.length);if(d.type==="ecdsa"){var _=/^ecdsa-sha2-(.+)$/.exec(g);n.ok(_!==null);n.strictEqual(_[1],h[0].data.toString())}var E=true;for(var k=0;k{e.exports={read:read,readSSHPrivate:readSSHPrivate,write:write};var n=r(31258);var i=r(86760);var o=r(18874).Buffer;var s=r(29045);var a=r(47220);var u=r(6113);var c=r(53364);var l=r(4596);var d=r(85558);var h=r(63382);var m=r(84106);var g=r(77980);var y;function read(e,t){return d.read(e,t)}var v="openssh-key-v1";function readSSHPrivate(e,t,i){t=new m({buffer:t});var s=t.readCString();n.strictEqual(s,v,"bad magic string");var c=t.readString();var l=t.readString();var d=t.readBuffer();var b=t.readInt();if(b!==1){throw new Error("OpenSSH-format key file contains "+"multiple keys: this is unsupported.")}var _=t.readBuffer();if(e==="public"){n.ok(t.atEnd(),"excess bytes left after key");return h.read(_)}var E=t.readBuffer();n.ok(t.atEnd(),"excess bytes left after key");var k=new m({buffer:d});switch(l){case"none":if(c!=="none"){throw new Error('OpenSSH-format key uses KDF "none" '+'but specifies a cipher other than "none"')}break;case"bcrypt":var x=k.readBuffer();var C=k.readInt();var O=a.opensshCipherInfo(c);if(y===undefined){y=r(50815)}if(typeof i.passphrase==="string"){i.passphrase=o.from(i.passphrase,"utf-8")}if(!o.isBuffer(i.passphrase)){throw new g.KeyEncryptedError(i.filename,"OpenSSH")}var D=new Uint8Array(i.passphrase);var B=new Uint8Array(x);var P=new Uint8Array(O.keySize+O.blockSize);var I=y.pbkdf(D,D.length,B,B.length,P,P.length,C);if(I!==0){throw new Error("bcrypt_pbkdf function returned "+"failure, parameters invalid")}P=o.from(P);var R=P.slice(0,O.keySize);var N=P.slice(O.keySize,O.keySize+O.blockSize);var $=u.createDecipheriv(O.opensslName,R,N);$.setAutoPadding(false);var L,q=[];$.once("error",(function(e){if(e.toString().indexOf("bad decrypt")!==-1){throw new Error("Incorrect passphrase "+"supplied, could not decrypt key")}throw e}));$.write(E);$.end();while((L=$.read())!==null)q.push(L);E=o.concat(q);break;default:throw new Error('OpenSSH-format key uses unknown KDF "'+l+'"')}t=new m({buffer:E});var z=t.readInt();var U=t.readInt();if(z!==U){throw new Error("Incorrect passphrase supplied, could not "+"decrypt key")}var V={};var W=h.readInternal(V,"private",t.remainder());t.skip(V.consumed);var G=t.readString();W.comment=G;return W}function write(e,t){var i;if(l.isPrivateKey(e))i=e.toPublic();else i=e;var s="none";var c="none";var d=o.alloc(0);var h={blockSize:8};var g;if(t!==undefined){g=t.passphrase;if(typeof g==="string")g=o.from(g,"utf-8");if(g!==undefined){n.buffer(g,"options.passphrase");n.optionalString(t.cipher,"options.cipher");s=t.cipher;if(s===undefined)s="aes128-ctr";h=a.opensshCipherInfo(s);c="bcrypt"}}var b;if(l.isPrivateKey(e)){b=new m({});var _=u.randomBytes(4).readUInt32BE(0);b.writeInt(_);b.writeInt(_);b.write(e.toBuffer("rfc4253"));b.writeString(e.comment||"");var E=1;while(b._offset%h.blockSize!==0)b.writeChar(E++);b=b.toBuffer()}switch(c){case"none":break;case"bcrypt":var k=u.randomBytes(16);var x=16;var C=new m({});C.writeBuffer(k);C.writeInt(x);d=C.toBuffer();if(y===undefined){y=r(50815)}var O=new Uint8Array(g);var D=new Uint8Array(k);var B=new Uint8Array(h.keySize+h.blockSize);var P=y.pbkdf(O,O.length,D,D.length,B,B.length,x);if(P!==0){throw new Error("bcrypt_pbkdf function returned "+"failure, parameters invalid")}B=o.from(B);var I=B.slice(0,h.keySize);var R=B.slice(h.keySize,h.keySize+h.blockSize);var N=u.createCipheriv(h.opensslName,I,R);N.setAutoPadding(false);var $,L=[];N.once("error",(function(e){throw e}));N.write(b);N.end();while(($=N.read())!==null)L.push($);b=o.concat(L);break;default:throw new Error("Unsupported kdf "+c)}var q=new m({});q.writeCString(v);q.writeString(s);q.writeString(c);q.writeBuffer(d);q.writeInt(1);q.writeBuffer(i.toBuffer("rfc4253"));if(b)q.writeBuffer(b);q=q.toBuffer();var z;if(l.isPrivateKey(e))z="OPENSSH PRIVATE KEY";else z="OPENSSH PUBLIC KEY";var U=q.toString("base64");var V=U.length+U.length/70+18+16+z.length*2+10;q=o.alloc(V);var W=0;W+=q.write("-----BEGIN "+z+"-----\n",W);for(var G=0;GU.length)Q=U.length;W+=q.write(U.slice(G,Q),W);q[W++]=10;G=Q}W+=q.write("-----END "+z+"-----\n",W);return q.slice(0,W)}},53769:(e,t,r)=>{e.exports={read:read,write:write};var n=r(31258);var i=r(18874).Buffer;var o=r(63382);var s=r(47220);var a=r(53364);var u=r(4596);var c=r(87370);var l=/^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/;var d=/^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/;function read(e,t){if(typeof e!=="string"){n.buffer(e,"buf");e=e.toString("ascii")}var r=e.trim().replace(/[\\\r]/g,"");var s=r.match(l);if(!s)s=r.match(d);n.ok(s,"key must match regex");var a=o.algToKeyType(s[1]);var u=i.from(s[2],"base64");var c;var h={};if(s[4]){try{c=o.read(u)}catch(e){s=r.match(d);n.ok(s,"key must match regex");u=i.from(s[2],"base64");c=o.readInternal(h,"public",u)}}else{c=o.readInternal(h,"public",u)}n.strictEqual(a,c.type);if(s[4]&&s[4].length>0){c.comment=s[4]}else if(h.consumed){var m=s[2]+(s[3]?s[3]:"");var g=Math.ceil(h.consumed/3)*4;m=m.slice(0,g-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+m.slice(g-2);var y=h.consumed%3;if(y>0&&m.slice(g-1,g)!=="=")g--;while(m.slice(g,g+1)==="=")g++;var v=m.slice(g);v=v.replace(/[\r\n]/g," ").replace(/^\s+/,"");if(v.match(/^[a-zA-Z0-9]/))c.comment=v}return c}function write(e,t){n.object(e);if(!a.isKey(e))throw new Error("Must be a public key");var r=[];var s=o.keyTypeToAlg(e);r.push(s);var u=o.write(e);r.push(u.toString("base64"));if(e.comment)r.push(e.comment);return i.from(r.join(" "))}},73710:(e,t,r)=>{var n=r(38305);e.exports={read:read,verify:n.verify,sign:n.sign,write:write};var i=r(31258);var o=r(86760);var s=r(18874).Buffer;var a=r(29045);var u=r(47220);var c=r(53364);var l=r(4596);var d=r(85558);var h=r(13220);var m=r(80765);var g=r(1421);function read(e,t){if(typeof e!=="string"){i.buffer(e,"buf");e=e.toString("ascii")}var r=e.trim().split(/[\r\n]+/g);var o;var a=-1;while(!o&&a0){u=r[--c].match(/[-]+[ ]*END CERTIFICATE[ ]*[-]+/)}i.ok(u,"invalid PEM footer");r=r.slice(a,c+1);var l={};while(true){r=r.slice(1);o=r[0].match(/^([A-Za-z0-9-]+): (.+)$/);if(!o)break;l[o[1].toLowerCase()]=o[2]}r=r.slice(0,-1).join("");e=s.from(r,"base64");return n.read(e,t)}function write(e,t){var r=n.write(e,t);var i="CERTIFICATE";var o=r.toString("base64");var a=o.length+o.length/64+18+16+i.length*2+10;var u=s.alloc(a);var c=0;c+=u.write("-----BEGIN "+i+"-----\n",c);for(var l=0;lo.length)d=o.length;c+=u.write(o.slice(l,d),c);u[c++]=10;l=d}c+=u.write("-----END "+i+"-----\n",c);return u.slice(0,c)}},38305:(e,t,r)=>{e.exports={read:read,verify:verify,sign:sign,signAsync:signAsync,write:write};var n=r(31258);var i=r(86760);var o=r(18874).Buffer;var s=r(29045);var a=r(47220);var u=r(53364);var c=r(4596);var l=r(85558);var d=r(13220);var h=r(80765);var m=r(1421);var g=r(4128);function readMPInt(e,t){n.strictEqual(e.peek(),i.Ber.Integer,t+" is not an Integer");return a.mpNormalize(e.readString(i.Ber.Integer,true))}function verify(e,t){var r=e.signatures.x509;n.object(r,"x509 signature");var o=r.algo.split("-");if(o[0]!==t.type)return false;var s=r.cache;if(s===undefined){var a=new i.BerWriter;writeTBSCert(e,a);s=a.buffer}var u=t.createVerify(o[1]);u.write(s);return u.verify(r.signature)}function Local(e){return i.Ber.Context|i.Ber.Constructor|e}function Context(e){return i.Ber.Context|e}var y={"rsa-md5":"1.2.840.113549.1.1.4","rsa-sha1":"1.2.840.113549.1.1.5","rsa-sha256":"1.2.840.113549.1.1.11","rsa-sha384":"1.2.840.113549.1.1.12","rsa-sha512":"1.2.840.113549.1.1.13","dsa-sha1":"1.2.840.10040.4.3","dsa-sha256":"2.16.840.1.101.3.4.3.2","ecdsa-sha1":"1.2.840.10045.4.1","ecdsa-sha256":"1.2.840.10045.4.3.2","ecdsa-sha384":"1.2.840.10045.4.3.3","ecdsa-sha512":"1.2.840.10045.4.3.4","ed25519-sha512":"1.3.101.112"};Object.keys(y).forEach((function(e){y[y[e]]=e}));y["1.3.14.3.2.3"]="rsa-md5";y["1.3.14.3.2.29"]="rsa-sha1";var v={issuerKeyId:"2.5.29.35",altName:"2.5.29.17",basicConstraints:"2.5.29.19",keyUsage:"2.5.29.15",extKeyUsage:"2.5.29.37"};function read(e,t){if(typeof e==="string"){e=o.from(e,"binary")}n.buffer(e,"buf");var r=new i.BerReader(e);r.readSequence();if(Math.abs(r.length-r.remain)>1){throw new Error("DER sequence does not contain whole byte "+"stream")}var s=r.offset;r.readSequence();var a=r.offset+r.length;var u=a;if(r.peek()===Local(0)){r.readSequence(Local(0));var c=r.readInt();n.ok(c<=3,"only x.509 versions up to v3 supported")}var l={};l.signatures={};var v=l.signatures.x509={};v.extras={};l.serial=readMPInt(r,"serial");r.readSequence();var b=r.offset+r.length;var _=r.readOID();var E=y[_];if(E===undefined)throw new Error("unknown signature algorithm "+_);r._offset=b;l.issuer=d.parseAsn1(r);r.readSequence();l.validFrom=readDate(r);l.validUntil=readDate(r);l.subjects=[d.parseAsn1(r)];r.readSequence();b=r.offset+r.length;l.subjectKey=g.readPkcs8(undefined,"public",r);r._offset=b;if(r.peek()===Local(1)){r.readSequence(Local(1));v.extras.issuerUniqueID=e.slice(r.offset,r.offset+r.length);r._offset+=r.length}if(r.peek()===Local(2)){r.readSequence(Local(2));v.extras.subjectUniqueID=e.slice(r.offset,r.offset+r.length);r._offset+=r.length}if(r.peek()===Local(3)){r.readSequence(Local(3));var k=r.offset+r.length;r.readSequence();while(r.offset=2050||t.getUTCFullYear()<1950){e.writeString(dateToGTime(t),i.Ber.GeneralizedTime)}else{e.writeString(dateToUTCTime(t),i.Ber.UTCTime)}}var b={OtherName:Local(0),RFC822Name:Context(1),DNSName:Context(2),X400Address:Local(3),DirectoryName:Local(4),EDIPartyName:Local(5),URI:Context(6),IPAddress:Context(7),OID:Context(8)};var _={serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",joyentDocker:"1.3.6.1.4.1.38678.1.4.1",joyentCmon:"1.3.6.1.4.1.38678.1.4.2"};var E={};Object.keys(_).forEach((function(e){E[_[e]]=e}));var k=["signature","identity","keyEncryption","encryption","keyAgreement","ca","crl"];function readExtension(e,t,r){r.readSequence();var n=r.offset+r.length;var o=r.readOID();var s;var a=e.signatures.x509;if(!a.extras.exts)a.extras.exts=[];var u;if(r.peek()===i.Ber.Boolean)u=r.readBoolean();switch(o){case v.basicConstraints:r.readSequence(i.Ber.OctetString);r.readSequence();var c=r.offset+r.length;var l=false;if(r.peek()===i.Ber.Boolean)l=r.readBoolean();if(e.purposes===undefined)e.purposes=[];if(l===true)e.purposes.push("ca");var h={oid:o,critical:u};if(r.offset=60)s+=o-1;else s+=o;r.setUTCFullYear(s,parseInt(t[2],10)-1,parseInt(t[3],10));r.setUTCHours(parseInt(t[4],10),parseInt(t[5],10));if(t[6]&&t[6].length>0)r.setUTCSeconds(parseInt(t[6],10));return r}var C=/^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;function gTimeToDate(e){var t=e.match(C);n.ok(t);var r=new Date;r.setUTCFullYear(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10));r.setUTCHours(parseInt(t[4],10),parseInt(t[5],10));if(t[6]&&t[6].length>0)r.setUTCSeconds(parseInt(t[6],10));return r}function zeroPad(e,t){if(t===undefined)t=2;var r=""+e;while(r.length0||o.type==="host"||e.purposes!==undefined&&e.purposes.length>0||r.extras&&r.extras.exts){t.startSequence(Local(3));t.startSequence();var u=[];if(e.purposes!==undefined&&e.purposes.length>0){u.push({oid:v.basicConstraints,critical:true});u.push({oid:v.keyUsage,critical:true});u.push({oid:v.extKeyUsage,critical:true})}u.push({oid:v.altName});if(r.extras&&r.extras.exts)u=r.extras.exts;for(var c=0;c{e.exports=Identity;var n=r(31258);var i=r(29045);var o=r(6113);var s=r(57115);var a=r(80765);var u=r(77980);var c=r(73837);var l=r(47220);var d=r(86760);var h=r(18874).Buffer;var m=/^([*]|[a-z0-9][a-z0-9\-]{0,62})(?:\.([*]|[a-z0-9][a-z0-9\-]{0,62}))*$/i;var g={};g.cn="2.5.4.3";g.o="2.5.4.10";g.ou="2.5.4.11";g.l="2.5.4.7";g.s="2.5.4.8";g.c="2.5.4.6";g.sn="2.5.4.4";g.postalCode="2.5.4.17";g.serialNumber="2.5.4.5";g.street="2.5.4.9";g.x500UniqueIdentifier="2.5.4.45";g.role="2.5.4.72";g.telephoneNumber="2.5.4.20";g.description="2.5.4.13";g.dc="0.9.2342.19200300.100.1.25";g.uid="0.9.2342.19200300.100.1.1";g.mail="0.9.2342.19200300.100.1.3";g.title="2.5.4.12";g.gn="2.5.4.42";g.initials="2.5.4.43";g.pseudonym="2.5.4.65";g.emailAddress="1.2.840.113549.1.9.1";var y={};Object.keys(g).forEach((function(e){y[g[e]]=e}));function Identity(e){var t=this;n.object(e,"options");n.arrayOfObject(e.components,"options.components");this.components=e.components;this.componentLookup={};this.components.forEach((function(e){if(e.name&&!e.oid)e.oid=g[e.name];if(e.oid&&!e.name)e.name=y[e.oid];if(t.componentLookup[e.name]===undefined)t.componentLookup[e.name]=[];t.componentLookup[e.name].push(e)}));if(this.componentLookup.cn&&this.componentLookup.cn.length>0){this.cn=this.componentLookup.cn[0].value}n.optionalString(e.type,"options.type");if(e.type===undefined){if(this.components.length===1&&this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(m)){this.type="host";this.hostname=this.componentLookup.cn[0].value}else if(this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length){this.type="host";this.hostname=this.componentLookup.dc.map((function(e){return e.value})).join(".")}else if(this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length){this.type="user";this.uid=this.componentLookup.uid[0].value}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(m)){this.type="host";this.hostname=this.componentLookup.cn[0].value}else if(this.componentLookup.uid&&this.componentLookup.uid.length===1){this.type="user";this.uid=this.componentLookup.uid[0].value}else if(this.componentLookup.mail&&this.componentLookup.mail.length===1){this.type="email";this.email=this.componentLookup.mail[0].value}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1){this.type="user";this.uid=this.componentLookup.cn[0].value}else{this.type="unknown"}}else{this.type=e.type;if(this.type==="host")this.hostname=e.hostname;else if(this.type==="user")this.uid=e.uid;else if(this.type==="email")this.email=e.email;else throw new Error("Unknown type "+this.type)}}Identity.prototype.toString=function(){return this.components.map((function(e){var t=e.name.toUpperCase();t=t.replace(/=/g,"\\=");var r=e.value;r=r.replace(/,/g,"\\,");return t+"="+r})).join(", ")};Identity.prototype.get=function(e,t){n.string(e,"name");var r=this.componentLookup[e];if(r===undefined||r.length===0)return undefined;if(!t&&r.length>1)throw new Error("Multiple values for attribute "+e);if(!t)return r[0].value;return r.map((function(e){return e.value}))};Identity.prototype.toArray=function(e){return this.components.map((function(e){return{name:e.name,value:e.value}}))};var v=/[^a-zA-Z0-9 '(),+.\/:=?-]/;var b=/[^\x00-\x7f]/;Identity.prototype.toAsn1=function(e,t){e.startSequence(t);this.components.forEach((function(t){e.startSequence(d.Ber.Constructor|d.Ber.Set);e.startSequence();e.writeOID(t.oid);if(t.asn1type===d.Ber.Utf8String||t.value.match(b)){var r=h.from(t.value,"utf8");e.writeBuffer(r,d.Ber.Utf8String)}else if(t.asn1type===d.Ber.IA5String||t.value.match(v)){e.writeString(t.value,d.Ber.IA5String)}else{var n=d.Ber.PrintableString;if(t.asn1type!==undefined)n=t.asn1type;e.writeString(t.value,n)}e.endSequence();e.endSequence()}));e.endSequence()};function globMatch(e,t){if(e==="**"||t==="**")return true;var r=e.split(".");var n=t.split(".");if(r.length!==n.length)return false;for(var i=0;i0){var o;if((o=/^,/.exec(i))!==null){t[++r]="";i=i.slice(o[0].length)}else if((o=/^\\,/.exec(i))!==null){t[r]+=",";i=i.slice(o[0].length)}else if((o=/^\\./.exec(i))!==null){t[r]+=o[0];i=i.slice(o[0].length)}else if((o=/^[^\\,]+/.exec(i))!==null){t[r]+=o[0];i=i.slice(o[0].length)}else{throw new Error("Failed to parse DN")}}var s=t.map((function(e){e=e.trim();var t=e.indexOf("=");while(t>0&&e.charAt(t-1)==="\\")t=e.indexOf("=",t+1);if(t===-1){throw new Error("Failed to parse DN")}var r=e.slice(0,t).toLowerCase().replace(/\\=/g,"=");var n=e.slice(t+1);return{name:r,value:n}}));return new Identity({components:s})};Identity.fromArray=function(e){n.arrayOfObject(e,"components");e.forEach((function(e){n.object(e,"component");n.string(e.name,"component.name");if(!h.isBuffer(e.value)&&!(typeof e.value==="string")){throw new Error("Invalid component value")}}));return new Identity({components:e})};Identity.parseAsn1=function(e,t){var r=[];e.readSequence(t);var n=e.offset+e.length;while(e.offset{var n=r(53364);var i=r(57115);var o=r(80765);var s=r(4596);var a=r(1421);var u=r(13220);var c=r(77980);e.exports={Key:n,parseKey:n.parse,Fingerprint:i,parseFingerprint:i.parse,Signature:o,parseSignature:o.parse,PrivateKey:s,parsePrivateKey:s.parse,generatePrivateKey:s.generate,Certificate:a,parseCertificate:a.parse,createSelfSignedCertificate:a.createSelfSigned,createCertificate:a.create,Identity:u,identityFromDN:u.parseDN,identityForHost:u.forHost,identityForUser:u.forUser,identityForEmail:u.forEmail,identityFromArray:u.fromArray,FingerprintFormatError:c.FingerprintFormatError,InvalidAlgorithmError:c.InvalidAlgorithmError,KeyParseError:c.KeyParseError,SignatureParseError:c.SignatureParseError,KeyEncryptedError:c.KeyEncryptedError,CertificateParseError:c.CertificateParseError}},53364:(e,t,r)=>{e.exports=Key;var n=r(31258);var i=r(29045);var o=r(6113);var s=r(57115);var a=r(80765);var u=r(99330).DiffieHellman;var c=r(77980);var l=r(47220);var d=r(4596);var h;try{h=r(78798)}catch(e){}var m=c.InvalidAlgorithmError;var g=c.KeyParseError;var y={};y["auto"]=r(71030);y["pem"]=r(85558);y["pkcs1"]=r(3860);y["pkcs8"]=r(4128);y["rfc4253"]=r(63382);y["ssh"]=r(53769);y["ssh-private"]=r(87370);y["openssh"]=y["ssh-private"];y["dnssec"]=r(4784);y["putty"]=r(30181);y["ppk"]=y["putty"];function Key(e){n.object(e,"options");n.arrayOfObject(e.parts,"options.parts");n.string(e.type,"options.type");n.optionalString(e.comment,"options.comment");var t=i.info[e.type];if(typeof t!=="object")throw new m(e.type);var r={};for(var o=0;o1024)e="sha256";if(this.type==="ed25519")e="sha512";if(this.type==="ecdsa"){if(this.size<=256)e="sha256";else if(this.size<=384)e="sha384";else e="sha512"}return e};Key.prototype.createVerify=function(e){if(e===undefined)e=this.defaultHashAlgorithm();n.string(e,"hash algorithm");if(this.type==="ed25519"&&h!==undefined)return new h.Verifier(this,e);if(this.type==="curve25519")throw new Error("Curve25519 keys are not suitable for "+"signing or verification");var t,r,i;try{r=e.toUpperCase();t=o.createVerify(r)}catch(e){i=e}if(t===undefined||i instanceof Error&&i.message.match(/Unknown message digest/)){r="RSA-";r+=e.toUpperCase();t=o.createVerify(r)}n.ok(t,"failed to create verifier");var s=t.verify.bind(t);var u=this.toBuffer("pkcs8");var c=this.curve;var l=this;t.verify=function(t,r){if(a.isSignature(t,[2,0])){if(t.type!==l.type)return false;if(t.hashAlgorithm&&t.hashAlgorithm!==e)return false;if(t.curve&&l.type==="ecdsa"&&t.curve!==c)return false;return s(u,t.toBuffer("asn1"))}else if(typeof t==="string"||Buffer.isBuffer(t)){return s(u,t,r)}else if(a.isSignature(t,[1,0])){throw new Error("signature was created by too old "+"a version of sshpk and cannot be verified")}else{throw new TypeError("signature must be a string, "+"Buffer, or Signature object")}};return t};Key.prototype.createDiffieHellman=function(){if(this.type==="rsa")throw new Error("RSA keys do not support Diffie-Hellman");return new u(this)};Key.prototype.createDH=Key.prototype.createDiffieHellman;Key.parse=function(e,t,r){if(typeof e!=="string")n.buffer(e,"data");if(t===undefined)t="auto";n.string(t,"format");if(typeof r==="string")r={filename:r};n.optionalObject(r,"options");if(r===undefined)r={};n.optionalString(r.filename,"options.filename");if(r.filename===undefined)r.filename="(unnamed)";n.object(y[t],"formats[format]");try{var i=y[t].read(e,r);if(i instanceof d)i=i.toPublic();if(!i.comment)i.comment=r.filename;return i}catch(e){if(e.name==="KeyEncryptedError")throw e;throw new g(r.filename,t,e)}};Key.isKey=function(e,t){return l.isCompatible(e,Key,t)};Key.prototype._sshpkApiVersion=[1,7];Key._oldVersionDetect=function(e){n.func(e.toBuffer);n.func(e.fingerprint);if(e.createDH)return[1,4];if(e.defaultHashAlgorithm)return[1,3];if(e.formats["auto"])return[1,2];if(e.formats["pkcs1"])return[1,1];return[1,0]}},4596:(e,t,r)=>{e.exports=PrivateKey;var n=r(31258);var i=r(18874).Buffer;var o=r(29045);var s=r(6113);var a=r(57115);var u=r(80765);var c=r(77980);var l=r(73837);var d=r(47220);var h=r(99330);var m=h.generateECDSA;var g=h.generateED25519;var y=r(78798);var v=r(54740);var b=r(53364);var _=c.InvalidAlgorithmError;var E=c.KeyParseError;var k=c.KeyEncryptedError;var x={};x["auto"]=r(71030);x["pem"]=r(85558);x["pkcs1"]=r(3860);x["pkcs8"]=r(4128);x["rfc4253"]=r(63382);x["ssh-private"]=r(87370);x["openssh"]=x["ssh-private"];x["ssh"]=x["ssh-private"];x["dnssec"]=r(4784);x["putty"]=r(30181);function PrivateKey(e){n.object(e,"options");b.call(this,e);this._pubCache=undefined}l.inherits(PrivateKey,b);PrivateKey.formats=x;PrivateKey.prototype.toBuffer=function(e,t){if(e===undefined)e="pkcs1";n.string(e,"format");n.object(x[e],"formats[format]");n.optionalObject(t,"options");return x[e].write(this,t)};PrivateKey.prototype.hash=function(e,t){return this.toPublic().hash(e,t)};PrivateKey.prototype.fingerprint=function(e,t){return this.toPublic().fingerprint(e,t)};PrivateKey.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;var e=o.info[this.type];var t=[];for(var r=0;r{e.exports=Signature;var n=r(31258);var i=r(18874).Buffer;var o=r(29045);var s=r(6113);var a=r(77980);var u=r(47220);var c=r(86760);var l=r(84106);var d=a.InvalidAlgorithmError;var h=a.SignatureParseError;function Signature(e){n.object(e,"options");n.arrayOfObject(e.parts,"options.parts");n.string(e.type,"options.type");var t={};for(var r=0;r20&&o[0]===0)o=o.slice(1);s=this.part.s.data;if(s.length>20&&s[0]===0)s=s.slice(1);if(this.hashAlgorithm&&this.hashAlgorithm!=="sha1"||o.length+s.length!==40){throw new Error("OpenSSH only supports "+"DSA signatures with SHA1 hash")}t.writeBuffer(i.concat([o,s]));return t.toBuffer()}else if(e==="ssh"&&this.type==="ecdsa"){var d=new l({});o=this.part.r.data;d.writeBuffer(o);d.writePart(this.part.s);t=new l({});var h;if(o[0]===0)o=o.slice(1);var m=o.length*8;if(m===256)h="nistp256";else if(m===384)h="nistp384";else if(m===528)h="nistp521";t.writeString("ecdsa-sha2-"+h);t.writeBuffer(d.toBuffer());return t.toBuffer()}throw new Error("Invalid signature format");default:throw new Error("Invalid signature data")}};Signature.prototype.toString=function(e){n.optionalString(e,"format");return this.toBuffer(e).toString("base64")};Signature.parse=function(e,t,r){if(typeof e==="string")e=i.from(e,"base64");n.buffer(e,"data");n.string(r,"format");n.string(t,"type");var o={};o.type=t.toLowerCase();o.parts=[];try{n.ok(e.length>0,"signature must not be empty");switch(o.type){case"rsa":return parseOneNum(e,t,r,o);case"ed25519":return parseOneNum(e,t,r,o);case"dsa":case"ecdsa":if(r==="asn1")return parseDSAasn1(e,t,r,o);else if(o.type==="dsa")return parseDSA(e,t,r,o);else return parseECDSA(e,t,r,o);default:throw new d(t)}}catch(e){if(e instanceof d)throw e;throw new h(t,r,e)}};function parseOneNum(e,t,r,i){if(r==="ssh"){try{var o=new l({buffer:e});var s=o.readString()}catch(e){}if(o!==undefined){var a="SSH signature does not match expected "+"type (expected "+t+", got "+s+")";switch(s){case"ssh-rsa":n.strictEqual(t,"rsa",a);i.hashAlgo="sha1";break;case"rsa-sha2-256":n.strictEqual(t,"rsa",a);i.hashAlgo="sha256";break;case"rsa-sha2-512":n.strictEqual(t,"rsa",a);i.hashAlgo="sha512";break;case"ssh-ed25519":n.strictEqual(t,"ed25519",a);i.hashAlgo="sha512";break;default:throw new Error("Unknown SSH signature "+"type: "+s)}var u=o.readPart();n.ok(o.atEnd(),"extra trailing bytes");u.name="sig";i.parts.push(u);return new Signature(i)}}i.parts.push({name:"sig",data:e});return new Signature(i)}function parseDSAasn1(e,t,r,n){var i=new c.BerReader(e);i.readSequence();var o=i.readString(c.Ber.Integer,true);var s=i.readString(c.Ber.Integer,true);n.parts.push({name:"r",data:u.mpNormalize(o)});n.parts.push({name:"s",data:u.mpNormalize(s)});return new Signature(n)}function parseDSA(e,t,r,i){if(e.length!=40){var o=new l({buffer:e});var s=o.readBuffer();if(s.toString("ascii")==="ssh-dss")s=o.readBuffer();n.ok(o.atEnd(),"extra trailing bytes");n.strictEqual(s.length,40,"invalid inner length");e=s}i.parts.push({name:"r",data:e.slice(0,20)});i.parts.push({name:"s",data:e.slice(20,40)});return new Signature(i)}function parseECDSA(e,t,r,i){var o=new l({buffer:e});var s,a;var u=o.readBuffer();var c=u.toString("ascii");if(c.slice(0,6)==="ecdsa-"){var d=c.split("-");n.strictEqual(d[0],"ecdsa");n.strictEqual(d[1],"sha2");i.curve=d[2];switch(i.curve){case"nistp256":i.hashAlgo="sha256";break;case"nistp384":i.hashAlgo="sha384";break;case"nistp521":i.hashAlgo="sha512";break;default:throw new Error("Unsupported ECDSA curve: "+i.curve)}u=o.readBuffer();n.ok(o.atEnd(),"extra trailing bytes on outer");o=new l({buffer:u});s=o.readPart()}else{s={data:u}}a=o.readPart();n.ok(o.atEnd(),"extra trailing bytes");s.name="r";a.name="s";i.parts.push(s);i.parts.push(a);return new Signature(i)}Signature.isSignature=function(e,t){return u.isCompatible(e,Signature,t)};Signature.prototype._sshpkApiVersion=[2,1];Signature._oldVersionDetect=function(e){n.func(e.toBuffer);if(e.hasOwnProperty("hashAlgorithm"))return[2,0];return[1,0]}},84106:(e,t,r)=>{e.exports=SSHBuffer;var n=r(31258);var i=r(18874).Buffer;function SSHBuffer(e){n.object(e,"options");if(e.buffer!==undefined)n.buffer(e.buffer,"options.buffer");this._size=e.buffer?e.buffer.length:1024;this._buffer=e.buffer||i.alloc(this._size);this._offset=0}SSHBuffer.prototype.toBuffer=function(){return this._buffer.slice(0,this._offset)};SSHBuffer.prototype.atEnd=function(){return this._offset>=this._buffer.length};SSHBuffer.prototype.remainder=function(){return this._buffer.slice(this._offset)};SSHBuffer.prototype.skip=function(e){this._offset+=e};SSHBuffer.prototype.expand=function(){this._size*=2;var e=i.alloc(this._size);this._buffer.copy(e,0);this._buffer=e};SSHBuffer.prototype.readPart=function(){return{data:this.readBuffer()}};SSHBuffer.prototype.readBuffer=function(){var e=this._buffer.readUInt32BE(this._offset);this._offset+=4;n.ok(this._offset+e<=this._buffer.length,"length out of bounds at +0x"+this._offset.toString(16)+" (data truncated?)");var t=this._buffer.slice(this._offset,this._offset+e);this._offset+=e;return t};SSHBuffer.prototype.readString=function(){return this.readBuffer().toString()};SSHBuffer.prototype.readCString=function(){var e=this._offset;while(ethis._size)this.expand();this._buffer.writeUInt32BE(e.length,this._offset);this._offset+=4;e.copy(this._buffer,this._offset);this._offset+=e.length};SSHBuffer.prototype.writeString=function(e){this.writeBuffer(i.from(e,"utf8"))};SSHBuffer.prototype.writeCString=function(e){while(this._offset+1+e.length>this._size)this.expand();this._buffer.write(e,this._offset);this._offset+=e.length;this._buffer[this._offset++]=0};SSHBuffer.prototype.writeInt=function(e){while(this._offset+4>this._size)this.expand();this._buffer.writeUInt32BE(e,this._offset);this._offset+=4};SSHBuffer.prototype.writeInt64=function(e){n.buffer(e,"value");if(e.length>8){var t=e.slice(0,e.length-8);for(var r=0;rthis._size)this.expand();e.copy(this._buffer,this._offset);this._offset+=8};SSHBuffer.prototype.writeChar=function(e){while(this._offset+1>this._size)this.expand();this._buffer[this._offset++]=e};SSHBuffer.prototype.writePart=function(e){this.writeBuffer(e.data)};SSHBuffer.prototype.write=function(e){while(this._offset+e.length>this._size)this.expand();e.copy(this._buffer,this._offset);this._offset+=e.length}},47220:(e,t,r)=>{e.exports={bufferSplit:bufferSplit,addRSAMissing:addRSAMissing,calculateDSAPublic:calculateDSAPublic,calculateED25519Public:calculateED25519Public,calculateX25519Public:calculateX25519Public,mpNormalize:mpNormalize,mpDenormalize:mpDenormalize,ecNormalize:ecNormalize,countZeros:countZeros,assertCompatible:assertCompatible,isCompatible:isCompatible,opensslKeyDeriv:opensslKeyDeriv,opensshCipherInfo:opensshCipherInfo,publicFromPrivateECDSA:publicFromPrivateECDSA,zeroPadToLength:zeroPadToLength,writeBitString:writeBitString,readBitString:readBitString,pbkdf2:pbkdf2};var n=r(31258);var i=r(18874).Buffer;var o=r(4596);var s=r(53364);var a=r(6113);var u=r(29045);var c=r(86760);var l=r(19480);var d=r(79187).BigInteger;var h=r(54740);var m=3;function isCompatible(e,t,r){if(e===null||typeof e!=="object")return false;if(r===undefined)r=t.prototype._sshpkApiVersion;if(e instanceof t&&t.prototype._sshpkApiVersion[0]==r[0])return true;var n=Object.getPrototypeOf(e);var i=0;while(n.constructor.name!==t.name){n=Object.getPrototypeOf(n);if(!n||++i>m)return false}if(n.constructor.name!==t.name)return false;var o=n._sshpkApiVersion;if(o===undefined)o=t._oldVersionDetect(e);if(o[0]!=r[0]||o[1]=r[1],i+" must be compatible with "+t.name+" klass "+"version "+r[0]+"."+r[1])}var g={"des-ede3-cbc":{key:24,iv:8},"aes-128-cbc":{key:16,iv:16},"aes-256-cbc":{key:32,iv:16}};var y=8;function opensslKeyDeriv(e,t,r,o){n.buffer(t,"salt");n.buffer(r,"passphrase");n.number(o,"iteration count");var s=g[e];n.object(s,"supported cipher");t=t.slice(0,y);var u,c,l;var d=i.alloc(0);while(d.length=t.length){var a=s+1;r.push(e.slice(i,a-o));i=a;o=0}}if(i<=e.length)r.push(e.slice(i,e.length));return r}function ecNormalize(e,t){n.buffer(e);if(e[0]===0&&e[1]===4){if(t)return e;return e.slice(1)}else if(e[0]===4){if(!t)return e}else{while(e[0]===0)e=e.slice(1);if(e[0]===2||e[0]===3)throw new Error("Compressed elliptic curve points "+"are not supported");if(e[0]!==4)throw new Error("Not a valid elliptic curve point");if(!t)return e}var r=i.alloc(e.length+1);r[0]=0;e.copy(r,1);return r}function readBitString(e,t){if(t===undefined)t=c.Ber.BitString;var r=e.readString(t,true);n.strictEqual(r[0],0,"bit strings with unused bits are "+"not supported (0x"+r[0].toString(16)+")");return r.slice(1)}function writeBitString(e,t,r){if(r===undefined)r=c.Ber.BitString;var n=i.alloc(t.length+1);n[0]=0;t.copy(n,1);e.writeBuffer(n,r)}function mpNormalize(e){n.buffer(e);while(e.length>1&&e[0]===0&&(e[1]&128)===0)e=e.slice(1);if((e[0]&128)===128){var t=i.alloc(e.length+1);t[0]=0;e.copy(t,1);e=t}return e}function mpDenormalize(e){n.buffer(e);while(e.length>1&&e[0]===0)e=e.slice(1);return e}function zeroPadToLength(e,t){n.buffer(e);n.number(t);while(e.length>t){n.equal(e[0],0);e=e.slice(1)}while(e.length{"use strict";var t=/\.node$/;function forEach(e,t){for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r)){continue}t(r)}}function assign(e,t){forEach(t,(function(r){e[r]=t[r]}));return e}function clearCache(e){forEach(e,(function(r){if(!t.test(r)){delete e[r]}}))}e.exports=function(e,t,r,n){var i=assign({},e);clearCache(e);if(r){var o=n.children?n.children.slice():false;r();var s=[];forEach(e,(function(e){s.push(e)}));clearCache(e);if(n.children){n.children=o}for(var a=0;a{"use strict";var n=r(65907).Buffer;var i=n.isEncoding||function(e){e=""+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 true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){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=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}t.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var n=t.length-1;if(n=0){if(i>0)e.lastNeed=i-1;return i}if(--n=0){if(i>0)e.lastNeed=i-2;return i}if(--n=0){if(i>0){if(i===2)i=0;else e.lastNeed=i-3}return i}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},65907:(e,t,r)=>{var n=r(14300);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},45653:(e,t,r)=>{"use strict";const n=r(22037);const i=r(76224);const o=r(57929);const{env:s}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(s.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},1452:(e,t,r)=>{"use strict"; /*! * Copyright (c) 2015, Salesforce.com, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of Salesforce.com nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */var n=r(41808);var i=r(57310).parse;var o=r(73837);var s=r(81353);var a=r(94039).y;var u=r(98268).m;var c=r(77181).U;var l=r(48912);var d;try{d=r(85477)}catch(e){console.warn("tough-cookie: can't load punycode; won't use punycode for domain normalization")}var h=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/;var m=/[\x00-\x1F]/;var g=["\n","\r","\0"];var y=/[\x20-\x3A\x3C-\x7E]+/;var v=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/;var b={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11};var _=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var E=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var k=2147483647e3;var x=0;function parseDigits(e,t,r,n){var i=0;while(i=58){break}i++}if(ir){return null}if(!n&&i!=e.length){return null}return parseInt(e.substr(0,i),10)}function parseTime(e){var t=e.split(":");var r=[0,0,0];if(t.length!==3){return null}for(var n=0;n<3;n++){var i=n==2;var o=parseDigits(t[n],1,2,i);if(o===null){return null}r[n]=o}return r}function parseMonth(e){e=String(e).substr(0,3).toLowerCase();var t=b[e];return t>=0?t:null}function parseDate(e){if(!e){return}var t=e.split(v);if(!t){return}var r=null;var n=null;var i=null;var o=null;var s=null;var a=null;for(var u=0;u=70&&a<=99){a+=1900}else if(a>=0&&a<=69){a+=2e3}}}}if(o===null||s===null||a===null||i===null||o<1||o>31||a<1601||r>23||n>59||i>59){return}return new Date(Date.UTC(a,s,o,r,n,i))}function formatDate(e){var t=e.getUTCDate();t=t>=10?t:"0"+t;var r=e.getUTCHours();r=r>=10?r:"0"+r;var n=e.getUTCMinutes();n=n>=10?n:"0"+n;var i=e.getUTCSeconds();i=i>=10?i:"0"+i;return E[e.getUTCDay()]+", "+t+" "+_[e.getUTCMonth()]+" "+e.getUTCFullYear()+" "+r+":"+n+":"+i+" GMT"}function canonicalDomain(e){if(e==null){return null}e=e.trim().replace(/^\./,"");if(d&&/[^\u0001-\u007f]/.test(e)){e=d.toASCII(e)}return e.toLowerCase()}function domainMatch(e,t,r){if(e==null||t==null){return null}if(r!==false){e=canonicalDomain(e);t=canonicalDomain(t)}if(e==t){return true}if(n.isIP(e)){return false}var i=e.indexOf(t);if(i<=0){return false}if(e.length!==t.length+i){return false}if(e.substr(i-1,1)!=="."){return false}return true}function defaultPath(e){if(!e||e.substr(0,1)!=="/"){return"/"}if(e==="/"){return e}var t=e.lastIndexOf("/");if(t===0){return"/"}return e.slice(0,t)}function trimTerminator(e){for(var t=0;t1){var r=e.lastIndexOf("/");if(r===0){break}e=e.substr(0,r);t.push(e)}t.push("/");return t}function getCookieContext(e){if(e instanceof Object){return e}try{e=decodeURI(e)}catch(e){}return i(e)}function Cookie(e){e=e||{};Object.keys(e).forEach((function(t){if(Cookie.prototype.hasOwnProperty(t)&&Cookie.prototype[t]!==e[t]&&t.substr(0,1)!=="_"){this[t]=e[t]}}),this);this.creation=this.creation||new Date;Object.defineProperty(this,"creationIndex",{configurable:false,enumerable:false,writable:true,value:++Cookie.cookiesCreated})}Cookie.cookiesCreated=0;Cookie.parse=parse;Cookie.fromJSON=fromJSON;Cookie.prototype.key="";Cookie.prototype.value="";Cookie.prototype.expires="Infinity";Cookie.prototype.maxAge=null;Cookie.prototype.domain=null;Cookie.prototype.path=null;Cookie.prototype.secure=false;Cookie.prototype.httpOnly=false;Cookie.prototype.extensions=null;Cookie.prototype.hostOnly=null;Cookie.prototype.pathIsDefault=null;Cookie.prototype.creation=null;Cookie.prototype.lastAccessed=null;Object.defineProperty(Cookie.prototype,"creationIndex",{configurable:true,enumerable:false,writable:true,value:0});Cookie.serializableProperties=Object.keys(Cookie.prototype).filter((function(e){return!(Cookie.prototype[e]instanceof Function||e==="creationIndex"||e.substr(0,1)==="_")}));Cookie.prototype.inspect=function inspect(){var e=Date.now();return'Cookie="'+this.toString()+"; hostOnly="+(this.hostOnly!=null?this.hostOnly:"?")+"; aAge="+(this.lastAccessed?e-this.lastAccessed.getTime()+"ms":"?")+"; cAge="+(this.creation?e-this.creation.getTime()+"ms":"?")+'"'};if(o.inspect.custom){Cookie.prototype[o.inspect.custom]=Cookie.prototype.inspect}Cookie.prototype.toJSON=function(){var e={};var t=Cookie.serializableProperties;for(var r=0;r{"use strict"; /*! * Copyright (c) 2015, Salesforce.com, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of Salesforce.com nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */var n=r(94039).y;var i=r(79770).permuteDomain;var o=r(77181).U;var s=r(73837);function MemoryCookieStore(){n.call(this);this.idx={}}s.inherits(MemoryCookieStore,n);t.m=MemoryCookieStore;MemoryCookieStore.prototype.idx=null;MemoryCookieStore.prototype.synchronous=true;MemoryCookieStore.prototype.inspect=function(){return"{ idx: "+s.inspect(this.idx,false,2)+" }"};if(s.inspect.custom){MemoryCookieStore.prototype[s.inspect.custom]=MemoryCookieStore.prototype.inspect}MemoryCookieStore.prototype.findCookie=function(e,t,r,n){if(!this.idx[e]){return n(null,undefined)}if(!this.idx[e][t]){return n(null,undefined)}return n(null,this.idx[e][t][r]||null)};MemoryCookieStore.prototype.findCookies=function(e,t,r){var n=[];if(!e){return r(null,[])}var s;if(!t){s=function matchAll(e){for(var t in e){var r=e[t];for(var i in r){n.push(r[i])}}}}else{s=function matchRFC(e){Object.keys(e).forEach((function(r){if(o(t,r)){var i=e[r];for(var s in i){n.push(i[s])}}}))}}var a=i(e)||[e];var u=this.idx;a.forEach((function(e){var t=u[e];if(!t){return}s(t)}));r(null,n)};MemoryCookieStore.prototype.putCookie=function(e,t){if(!this.idx[e.domain]){this.idx[e.domain]={}}if(!this.idx[e.domain][e.path]){this.idx[e.domain][e.path]={}}this.idx[e.domain][e.path][e.key]=e;t(null)};MemoryCookieStore.prototype.updateCookie=function(e,t,r){this.putCookie(t,r)};MemoryCookieStore.prototype.removeCookie=function(e,t,r,n){if(this.idx[e]&&this.idx[e][t]&&this.idx[e][t][r]){delete this.idx[e][t][r]}n(null)};MemoryCookieStore.prototype.removeCookies=function(e,t,r){if(this.idx[e]){if(t){delete this.idx[e][t]}else{delete this.idx[e]}}return r(null)};MemoryCookieStore.prototype.removeAllCookies=function(e){this.idx={};return e(null)};MemoryCookieStore.prototype.getAllCookies=function(e){var t=[];var r=this.idx;var n=Object.keys(r);n.forEach((function(e){var n=Object.keys(r[e]);n.forEach((function(n){var i=Object.keys(r[e][n]);i.forEach((function(i){if(i!==null){t.push(r[e][n][i])}}))}))}));t.sort((function(e,t){return(e.creationIndex||0)-(t.creationIndex||0)}));e(null,t)}},77181:(e,t)=>{"use strict"; /*! * Copyright (c) 2015, Salesforce.com, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of Salesforce.com nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */function pathMatch(e,t){if(t===e){return true}var r=e.indexOf(t);if(r===0){if(t.substr(-1)==="/"){return true}if(e.substr(t.length,1)==="/"){return true}}return false}t.U=pathMatch},79770:(e,t,r)=>{"use strict"; /*! * Copyright (c) 2015, Salesforce.com, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of Salesforce.com nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */var n=r(81353);function permuteDomain(e){var t=n.getPublicSuffix(e);if(!t){return null}if(t==e){return[e]}var r=e.slice(0,-(t.length+1));var i=r.split(".").reverse();var o=t;var s=[o];while(i.length){o=i.shift()+"."+o;s.push(o)}return s}t.permuteDomain=permuteDomain},81353:(e,t,r)=>{"use strict"; /*! * Copyright (c) 2018, Salesforce.com, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of Salesforce.com nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */var n=r(49368);function getPublicSuffix(e){return n.get(e)}t.getPublicSuffix=getPublicSuffix},94039:(e,t)=>{"use strict"; /*! * Copyright (c) 2015, Salesforce.com, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of Salesforce.com nor the names of its contributors may * be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */function Store(){}t.y=Store;Store.prototype.synchronous=false;Store.prototype.findCookie=function(e,t,r,n){throw new Error("findCookie is not implemented")};Store.prototype.findCookies=function(e,t,r){throw new Error("findCookies is not implemented")};Store.prototype.putCookie=function(e,t){throw new Error("putCookie is not implemented")};Store.prototype.updateCookie=function(e,t,r){throw new Error("updateCookie is not implemented")};Store.prototype.removeCookie=function(e,t,r,n){throw new Error("removeCookie is not implemented")};Store.prototype.removeCookies=function(e,t,r){throw new Error("removeCookies is not implemented")};Store.prototype.removeAllCookies=function(e){throw new Error("removeAllCookies is not implemented")};Store.prototype.getAllCookies=function(e){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}},48912:e=>{e.exports="2.5.0"},57201:(e,t,r)=>{"use strict";const n=r(85477);const i=r(90018);const o=r(72020);const{STATUS_MAPPING:s}=r(15811);function containsNonASCII(e){return/[^\x00-\x7F]/u.test(e)}function findStatus(e,{useSTD3ASCIIRules:t}){let r=0;let n=o.length-1;while(r<=n){const i=Math.floor((r+n)/2);const a=o[i];const u=Array.isArray(a[0])?a[0][0]:a[0];const c=Array.isArray(a[0])?a[0][1]:a[0];if(u<=e&&c>=e){if(t&&(a[1]===s.disallowed_STD3_valid||a[1]===s.disallowed_STD3_mapped)){return[s.disallowed,...a.slice(2)]}else if(a[1]===s.disallowed_STD3_valid){return[s.valid,...a.slice(2)]}else if(a[1]===s.disallowed_STD3_mapped){return[s.mapped,...a.slice(2)]}return a.slice(1)}else if(u>e){n=i-1}else{r=i+1}}return null}function mapChars(e,{useSTD3ASCIIRules:t,processingOption:r}){let n=false;let i="";for(const o of e){const[e,a]=findStatus(o.codePointAt(0),{useSTD3ASCIIRules:t});switch(e){case s.disallowed:n=true;i+=o;break;case s.ignored:break;case s.mapped:i+=a;break;case s.deviation:if(r==="transitional"){i+=a}else{i+=o}break;case s.valid:i+=o;break}}return{string:i,error:n}}function validateLabel(e,{checkHyphens:t,checkBidi:r,checkJoiners:n,processingOption:o,useSTD3ASCIIRules:a}){if(e.normalize("NFC")!==e){return false}const u=Array.from(e);if(t){if(u[2]==="-"&&u[3]==="-"||(e.startsWith("-")||e.endsWith("-"))){return false}}if(e.includes(".")||u.length>0&&i.combiningMarks.test(u[0])){return false}for(const e of u){const[t]=findStatus(e.codePointAt(0),{useSTD3ASCIIRules:a});if(o==="transitional"&&t!==s.valid||o==="nontransitional"&&t!==s.valid&&t!==s.deviation){return false}}if(n){let e=0;for(const[t,r]of u.entries()){if(r==="‌"||r==="‍"){if(t>0){if(i.combiningClassVirama.test(u[t-1])){continue}if(r==="‌"){const r=u.indexOf("‌",t+1);const n=r<0?u.slice(e):u.slice(e,r);if(i.validZWNJ.test(n.join(""))){e=t+1;continue}}}return false}}}if(r){let t;if(i.bidiS1LTR.test(u[0])){t=false}else if(i.bidiS1RTL.test(u[0])){t=true}else{return false}if(t){if(!i.bidiS2.test(e)||!i.bidiS3.test(e)||i.bidiS4EN.test(e)&&i.bidiS4AN.test(e)){return false}}else if(!i.bidiS5.test(e)||!i.bidiS6.test(e)){return false}}return true}function isBidiDomain(e){const t=e.map((e=>{if(e.startsWith("xn--")){try{return n.decode(e.substring(4))}catch(e){return""}}return e})).join(".");return i.bidiDomain.test(t)}function processing(e,t){const{processingOption:r}=t;let{string:i,error:o}=mapChars(e,t);i=i.normalize("NFC");const s=i.split(".");const a=isBidiDomain(s);for(const[e,i]of s.entries()){let u=i;let c=r;if(u.startsWith("xn--")){try{u=n.decode(u.substring(4));s[e]=u}catch(e){o=true;continue}c="nontransitional"}if(o){continue}const l=validateLabel(u,{...t,processingOption:c,checkBidi:t.checkBidi&&a});if(!l){o=true}}return{string:s.join("."),error:o}}function toASCII(e,{checkHyphens:t=false,checkBidi:r=false,checkJoiners:i=false,useSTD3ASCIIRules:o=false,processingOption:s="nontransitional",verifyDNSLength:a=false}={}){if(s!=="transitional"&&s!=="nontransitional"){throw new RangeError("processingOption must be either transitional or nontransitional")}const u=processing(e,{processingOption:s,checkHyphens:t,checkBidi:r,checkJoiners:i,useSTD3ASCIIRules:o});let c=u.string.split(".");c=c.map((e=>{if(containsNonASCII(e)){try{return`xn--${n.encode(e)}`}catch(e){u.error=true}}return e}));if(a){const e=c.join(".").length;if(e>253||e===0){u.error=true}for(let e=0;e63||c[e].length===0){u.error=true;break}}}if(u.error){return null}return c.join(".")}function toUnicode(e,{checkHyphens:t=false,checkBidi:r=false,checkJoiners:n=false,useSTD3ASCIIRules:i=false,processingOption:o="nontransitional"}={}){const s=processing(e,{processingOption:o,checkHyphens:t,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:i});return{domain:s.string,error:s.error}}e.exports={toASCII:toASCII,toUnicode:toUnicode}},90018:e=>{"use strict";const t=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u;const r=/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}]/u;const n=/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u08A0-\u08A9\u08AF\u08B0\u08B3\u08B4\u08B6-\u08B8\u08BA-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0855\u0860\u0862-\u0865\u0867-\u086A\u08A0-\u08AC\u08AE-\u08B4\u08B6-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{1E900}-\u{1E943}]/u;const i=/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u;const o=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u;const s=/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u;const a=/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0898-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2426\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E3\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11FD5}-\u{11FF1}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6DB}\u{1D715}\u{1D74F}\u{1D789}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u;const u=/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u;const c=/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u;const l=/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u;const d=/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B7E\u1B80-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2426\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E3\u31F0-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1123E}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u;const h=/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u;e.exports={combiningMarks:t,combiningClassVirama:r,validZWNJ:n,bidiDomain:i,bidiS1LTR:o,bidiS1RTL:s,bidiS2:a,bidiS3:u,bidiS4EN:c,bidiS4AN:l,bidiS5:d,bidiS6:h}},15811:e=>{"use strict";e.exports.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}},26793:(e,t,r)=>{"use strict";var n=r(41808),i=r(24404),o=r(13685),s=r(95687),a=r(82361),u=r(39491),c=r(73837),l=r(14465).Buffer;t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n){for(var i=0,o=t.requests.length;i=this.maxSockets){r.requests.push({host:t.host,port:t.port,request:e});return}r.createConnection({host:t.host,port:t.port,request:e})};TunnelingAgent.prototype.createConnection=function createConnection(e){var t=this;t.createSocket(e,(function(r){r.on("free",onFree);r.on("close",onCloseOrRemove);r.on("agentRemove",onCloseOrRemove);e.request.onSocket(r);function onFree(){t.emit("free",r,e.host,e.port)}function onCloseOrRemove(e){t.removeSocket(r);r.removeListener("free",onFree);r.removeListener("close",onCloseOrRemove);r.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false});if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+l.from(i.proxyAuth).toString("base64")}d("making CONNECT request");var o=r.request(i);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(i,s,a){o.removeAllListeners();s.removeAllListeners();if(i.statusCode===200){u.equal(a.length,0);d("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=s;t(s)}else{d("tunneling socket could not be established, statusCode=%d",i.statusCode);var c=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n)}}function onError(t){o.removeAllListeners();d("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1)return;this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createConnection(r)}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=i.connect(0,mergeOptions({},r.options,{servername:e.host,socket:n}));r.sockets[r.sockets.indexOf(n)]=o;t(o)}))}function mergeOptions(e){for(var t=1,r=arguments.length;t{(function(e){"use strict";var gf=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t>24&255;e[t+1]=r>>16&255;e[t+2]=r>>8&255;e[t+3]=r&255;e[t+4]=n>>24&255;e[t+5]=n>>16&255;e[t+6]=n>>8&255;e[t+7]=n&255}function vn(e,t,r,n,i){var o,s=0;for(o=0;o>>8)-1}function crypto_verify_16(e,t,r,n){return vn(e,t,r,n,16)}function crypto_verify_32(e,t,r,n){return vn(e,t,r,n,32)}function core_salsa20(e,t,r,n){var i=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,o=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,s=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,a=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,u=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,c=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,l=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,h=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,m=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,g=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,y=r[16]&255|(r[17]&255)<<8|(r[18]&255)<<16|(r[19]&255)<<24,v=r[20]&255|(r[21]&255)<<8|(r[22]&255)<<16|(r[23]&255)<<24,b=r[24]&255|(r[25]&255)<<8|(r[26]&255)<<16|(r[27]&255)<<24,_=r[28]&255|(r[29]&255)<<8|(r[30]&255)<<16|(r[31]&255)<<24,E=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24;var k=i,x=o,C=s,O=a,D=u,B=c,P=l,I=d,R=h,N=m,$=g,L=y,q=v,z=b,U=_,V=E,W;for(var G=0;G<20;G+=2){W=k+q|0;D^=W<<7|W>>>32-7;W=D+k|0;R^=W<<9|W>>>32-9;W=R+D|0;q^=W<<13|W>>>32-13;W=q+R|0;k^=W<<18|W>>>32-18;W=B+x|0;N^=W<<7|W>>>32-7;W=N+B|0;z^=W<<9|W>>>32-9;W=z+N|0;x^=W<<13|W>>>32-13;W=x+z|0;B^=W<<18|W>>>32-18;W=$+P|0;U^=W<<7|W>>>32-7;W=U+$|0;C^=W<<9|W>>>32-9;W=C+U|0;P^=W<<13|W>>>32-13;W=P+C|0;$^=W<<18|W>>>32-18;W=V+L|0;O^=W<<7|W>>>32-7;W=O+V|0;I^=W<<9|W>>>32-9;W=I+O|0;L^=W<<13|W>>>32-13;W=L+I|0;V^=W<<18|W>>>32-18;W=k+O|0;x^=W<<7|W>>>32-7;W=x+k|0;C^=W<<9|W>>>32-9;W=C+x|0;O^=W<<13|W>>>32-13;W=O+C|0;k^=W<<18|W>>>32-18;W=B+D|0;P^=W<<7|W>>>32-7;W=P+B|0;I^=W<<9|W>>>32-9;W=I+P|0;D^=W<<13|W>>>32-13;W=D+I|0;B^=W<<18|W>>>32-18;W=$+N|0;L^=W<<7|W>>>32-7;W=L+$|0;R^=W<<9|W>>>32-9;W=R+L|0;N^=W<<13|W>>>32-13;W=N+R|0;$^=W<<18|W>>>32-18;W=V+U|0;q^=W<<7|W>>>32-7;W=q+V|0;z^=W<<9|W>>>32-9;W=z+q|0;U^=W<<13|W>>>32-13;W=U+z|0;V^=W<<18|W>>>32-18}k=k+i|0;x=x+o|0;C=C+s|0;O=O+a|0;D=D+u|0;B=B+c|0;P=P+l|0;I=I+d|0;R=R+h|0;N=N+m|0;$=$+g|0;L=L+y|0;q=q+v|0;z=z+b|0;U=U+_|0;V=V+E|0;e[0]=k>>>0&255;e[1]=k>>>8&255;e[2]=k>>>16&255;e[3]=k>>>24&255;e[4]=x>>>0&255;e[5]=x>>>8&255;e[6]=x>>>16&255;e[7]=x>>>24&255;e[8]=C>>>0&255;e[9]=C>>>8&255;e[10]=C>>>16&255;e[11]=C>>>24&255;e[12]=O>>>0&255;e[13]=O>>>8&255;e[14]=O>>>16&255;e[15]=O>>>24&255;e[16]=D>>>0&255;e[17]=D>>>8&255;e[18]=D>>>16&255;e[19]=D>>>24&255;e[20]=B>>>0&255;e[21]=B>>>8&255;e[22]=B>>>16&255;e[23]=B>>>24&255;e[24]=P>>>0&255;e[25]=P>>>8&255;e[26]=P>>>16&255;e[27]=P>>>24&255;e[28]=I>>>0&255;e[29]=I>>>8&255;e[30]=I>>>16&255;e[31]=I>>>24&255;e[32]=R>>>0&255;e[33]=R>>>8&255;e[34]=R>>>16&255;e[35]=R>>>24&255;e[36]=N>>>0&255;e[37]=N>>>8&255;e[38]=N>>>16&255;e[39]=N>>>24&255;e[40]=$>>>0&255;e[41]=$>>>8&255;e[42]=$>>>16&255;e[43]=$>>>24&255;e[44]=L>>>0&255;e[45]=L>>>8&255;e[46]=L>>>16&255;e[47]=L>>>24&255;e[48]=q>>>0&255;e[49]=q>>>8&255;e[50]=q>>>16&255;e[51]=q>>>24&255;e[52]=z>>>0&255;e[53]=z>>>8&255;e[54]=z>>>16&255;e[55]=z>>>24&255;e[56]=U>>>0&255;e[57]=U>>>8&255;e[58]=U>>>16&255;e[59]=U>>>24&255;e[60]=V>>>0&255;e[61]=V>>>8&255;e[62]=V>>>16&255;e[63]=V>>>24&255}function core_hsalsa20(e,t,r,n){var i=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,o=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,s=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,a=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,u=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,c=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,l=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,h=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,m=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,g=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,y=r[16]&255|(r[17]&255)<<8|(r[18]&255)<<16|(r[19]&255)<<24,v=r[20]&255|(r[21]&255)<<8|(r[22]&255)<<16|(r[23]&255)<<24,b=r[24]&255|(r[25]&255)<<8|(r[26]&255)<<16|(r[27]&255)<<24,_=r[28]&255|(r[29]&255)<<8|(r[30]&255)<<16|(r[31]&255)<<24,E=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24;var k=i,x=o,C=s,O=a,D=u,B=c,P=l,I=d,R=h,N=m,$=g,L=y,q=v,z=b,U=_,V=E,W;for(var G=0;G<20;G+=2){W=k+q|0;D^=W<<7|W>>>32-7;W=D+k|0;R^=W<<9|W>>>32-9;W=R+D|0;q^=W<<13|W>>>32-13;W=q+R|0;k^=W<<18|W>>>32-18;W=B+x|0;N^=W<<7|W>>>32-7;W=N+B|0;z^=W<<9|W>>>32-9;W=z+N|0;x^=W<<13|W>>>32-13;W=x+z|0;B^=W<<18|W>>>32-18;W=$+P|0;U^=W<<7|W>>>32-7;W=U+$|0;C^=W<<9|W>>>32-9;W=C+U|0;P^=W<<13|W>>>32-13;W=P+C|0;$^=W<<18|W>>>32-18;W=V+L|0;O^=W<<7|W>>>32-7;W=O+V|0;I^=W<<9|W>>>32-9;W=I+O|0;L^=W<<13|W>>>32-13;W=L+I|0;V^=W<<18|W>>>32-18;W=k+O|0;x^=W<<7|W>>>32-7;W=x+k|0;C^=W<<9|W>>>32-9;W=C+x|0;O^=W<<13|W>>>32-13;W=O+C|0;k^=W<<18|W>>>32-18;W=B+D|0;P^=W<<7|W>>>32-7;W=P+B|0;I^=W<<9|W>>>32-9;W=I+P|0;D^=W<<13|W>>>32-13;W=D+I|0;B^=W<<18|W>>>32-18;W=$+N|0;L^=W<<7|W>>>32-7;W=L+$|0;R^=W<<9|W>>>32-9;W=R+L|0;N^=W<<13|W>>>32-13;W=N+R|0;$^=W<<18|W>>>32-18;W=V+U|0;q^=W<<7|W>>>32-7;W=q+V|0;z^=W<<9|W>>>32-9;W=z+q|0;U^=W<<13|W>>>32-13;W=U+z|0;V^=W<<18|W>>>32-18}e[0]=k>>>0&255;e[1]=k>>>8&255;e[2]=k>>>16&255;e[3]=k>>>24&255;e[4]=B>>>0&255;e[5]=B>>>8&255;e[6]=B>>>16&255;e[7]=B>>>24&255;e[8]=$>>>0&255;e[9]=$>>>8&255;e[10]=$>>>16&255;e[11]=$>>>24&255;e[12]=V>>>0&255;e[13]=V>>>8&255;e[14]=V>>>16&255;e[15]=V>>>24&255;e[16]=P>>>0&255;e[17]=P>>>8&255;e[18]=P>>>16&255;e[19]=P>>>24&255;e[20]=I>>>0&255;e[21]=I>>>8&255;e[22]=I>>>16&255;e[23]=I>>>24&255;e[24]=R>>>0&255;e[25]=R>>>8&255;e[26]=R>>>16&255;e[27]=R>>>24&255;e[28]=N>>>0&255;e[29]=N>>>8&255;e[30]=N>>>16&255;e[31]=N>>>24&255}function crypto_core_salsa20(e,t,r,n){core_salsa20(e,t,r,n)}function crypto_core_hsalsa20(e,t,r,n){core_hsalsa20(e,t,r,n)}var h=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function crypto_stream_salsa20_xor(e,t,r,n,i,o,s){var a=new Uint8Array(16),u=new Uint8Array(64);var c,l;for(l=0;l<16;l++)a[l]=0;for(l=0;l<8;l++)a[l]=o[l];while(i>=64){crypto_core_salsa20(u,a,s,h);for(l=0;l<64;l++)e[t+l]=r[n+l]^u[l];c=1;for(l=8;l<16;l++){c=c+(a[l]&255)|0;a[l]=c&255;c>>>=8}i-=64;t+=64;n+=64}if(i>0){crypto_core_salsa20(u,a,s,h);for(l=0;l=64){crypto_core_salsa20(s,o,i,h);for(u=0;u<64;u++)e[t+u]=s[u];a=1;for(u=8;u<16;u++){a=a+(o[u]&255)|0;o[u]=a&255;a>>>=8}r-=64;t+=64}if(r>0){crypto_core_salsa20(s,o,i,h);for(u=0;u>>13|r<<3)&8191;n=e[4]&255|(e[5]&255)<<8;this.r[2]=(r>>>10|n<<6)&7939;i=e[6]&255|(e[7]&255)<<8;this.r[3]=(n>>>7|i<<9)&8191;o=e[8]&255|(e[9]&255)<<8;this.r[4]=(i>>>4|o<<12)&255;this.r[5]=o>>>1&8190;s=e[10]&255|(e[11]&255)<<8;this.r[6]=(o>>>14|s<<2)&8191;a=e[12]&255|(e[13]&255)<<8;this.r[7]=(s>>>11|a<<5)&8065;u=e[14]&255|(e[15]&255)<<8;this.r[8]=(a>>>8|u<<8)&8191;this.r[9]=u>>>5&127;this.pad[0]=e[16]&255|(e[17]&255)<<8;this.pad[1]=e[18]&255|(e[19]&255)<<8;this.pad[2]=e[20]&255|(e[21]&255)<<8;this.pad[3]=e[22]&255|(e[23]&255)<<8;this.pad[4]=e[24]&255|(e[25]&255)<<8;this.pad[5]=e[26]&255|(e[27]&255)<<8;this.pad[6]=e[28]&255|(e[29]&255)<<8;this.pad[7]=e[30]&255|(e[31]&255)<<8};poly1305.prototype.blocks=function(e,t,r){var n=this.fin?0:1<<11;var i,o,s,a,u,c,l,d,h;var m,g,y,v,b,_,E,k,x,C;var O=this.h[0],D=this.h[1],B=this.h[2],P=this.h[3],I=this.h[4],R=this.h[5],N=this.h[6],$=this.h[7],L=this.h[8],q=this.h[9];var z=this.r[0],U=this.r[1],V=this.r[2],W=this.r[3],G=this.r[4],Q=this.r[5],Y=this.r[6],J=this.r[7],X=this.r[8],ee=this.r[9];while(r>=16){i=e[t+0]&255|(e[t+1]&255)<<8;O+=i&8191;o=e[t+2]&255|(e[t+3]&255)<<8;D+=(i>>>13|o<<3)&8191;s=e[t+4]&255|(e[t+5]&255)<<8;B+=(o>>>10|s<<6)&8191;a=e[t+6]&255|(e[t+7]&255)<<8;P+=(s>>>7|a<<9)&8191;u=e[t+8]&255|(e[t+9]&255)<<8;I+=(a>>>4|u<<12)&8191;R+=u>>>1&8191;c=e[t+10]&255|(e[t+11]&255)<<8;N+=(u>>>14|c<<2)&8191;l=e[t+12]&255|(e[t+13]&255)<<8;$+=(c>>>11|l<<5)&8191;d=e[t+14]&255|(e[t+15]&255)<<8;L+=(l>>>8|d<<8)&8191;q+=d>>>5|n;h=0;m=h;m+=O*z;m+=D*(5*ee);m+=B*(5*X);m+=P*(5*J);m+=I*(5*Y);h=m>>>13;m&=8191;m+=R*(5*Q);m+=N*(5*G);m+=$*(5*W);m+=L*(5*V);m+=q*(5*U);h+=m>>>13;m&=8191;g=h;g+=O*U;g+=D*z;g+=B*(5*ee);g+=P*(5*X);g+=I*(5*J);h=g>>>13;g&=8191;g+=R*(5*Y);g+=N*(5*Q);g+=$*(5*G);g+=L*(5*W);g+=q*(5*V);h+=g>>>13;g&=8191;y=h;y+=O*V;y+=D*U;y+=B*z;y+=P*(5*ee);y+=I*(5*X);h=y>>>13;y&=8191;y+=R*(5*J);y+=N*(5*Y);y+=$*(5*Q);y+=L*(5*G);y+=q*(5*W);h+=y>>>13;y&=8191;v=h;v+=O*W;v+=D*V;v+=B*U;v+=P*z;v+=I*(5*ee);h=v>>>13;v&=8191;v+=R*(5*X);v+=N*(5*J);v+=$*(5*Y);v+=L*(5*Q);v+=q*(5*G);h+=v>>>13;v&=8191;b=h;b+=O*G;b+=D*W;b+=B*V;b+=P*U;b+=I*z;h=b>>>13;b&=8191;b+=R*(5*ee);b+=N*(5*X);b+=$*(5*J);b+=L*(5*Y);b+=q*(5*Q);h+=b>>>13;b&=8191;_=h;_+=O*Q;_+=D*G;_+=B*W;_+=P*V;_+=I*U;h=_>>>13;_&=8191;_+=R*z;_+=N*(5*ee);_+=$*(5*X);_+=L*(5*J);_+=q*(5*Y);h+=_>>>13;_&=8191;E=h;E+=O*Y;E+=D*Q;E+=B*G;E+=P*W;E+=I*V;h=E>>>13;E&=8191;E+=R*U;E+=N*z;E+=$*(5*ee);E+=L*(5*X);E+=q*(5*J);h+=E>>>13;E&=8191;k=h;k+=O*J;k+=D*Y;k+=B*Q;k+=P*G;k+=I*W;h=k>>>13;k&=8191;k+=R*V;k+=N*U;k+=$*z;k+=L*(5*ee);k+=q*(5*X);h+=k>>>13;k&=8191;x=h;x+=O*X;x+=D*J;x+=B*Y;x+=P*Q;x+=I*G;h=x>>>13;x&=8191;x+=R*W;x+=N*V;x+=$*U;x+=L*z;x+=q*(5*ee);h+=x>>>13;x&=8191;C=h;C+=O*ee;C+=D*X;C+=B*J;C+=P*Y;C+=I*Q;h=C>>>13;C&=8191;C+=R*G;C+=N*W;C+=$*V;C+=L*U;C+=q*z;h+=C>>>13;C&=8191;h=(h<<2)+h|0;h=h+m|0;m=h&8191;h=h>>>13;g+=h;O=m;D=g;B=y;P=v;I=b;R=_;N=E;$=k;L=x;q=C;t+=16;r-=16}this.h[0]=O;this.h[1]=D;this.h[2]=B;this.h[3]=P;this.h[4]=I;this.h[5]=R;this.h[6]=N;this.h[7]=$;this.h[8]=L;this.h[9]=q};poly1305.prototype.finish=function(e,t){var r=new Uint16Array(10);var n,i,o,s;if(this.leftover){s=this.leftover;this.buffer[s++]=1;for(;s<16;s++)this.buffer[s]=0;this.fin=1;this.blocks(this.buffer,0,16)}n=this.h[1]>>>13;this.h[1]&=8191;for(s=2;s<10;s++){this.h[s]+=n;n=this.h[s]>>>13;this.h[s]&=8191}this.h[0]+=n*5;n=this.h[0]>>>13;this.h[0]&=8191;this.h[1]+=n;n=this.h[1]>>>13;this.h[1]&=8191;this.h[2]+=n;r[0]=this.h[0]+5;n=r[0]>>>13;r[0]&=8191;for(s=1;s<10;s++){r[s]=this.h[s]+n;n=r[s]>>>13;r[s]&=8191}r[9]-=1<<13;i=(n^1)-1;for(s=0;s<10;s++)r[s]&=i;i=~i;for(s=0;s<10;s++)this.h[s]=this.h[s]&i|r[s];this.h[0]=(this.h[0]|this.h[1]<<13)&65535;this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535;this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535;this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535;this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535;this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535;this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535;this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535;o=this.h[0]+this.pad[0];this.h[0]=o&65535;for(s=1;s<8;s++){o=(this.h[s]+this.pad[s]|0)+(o>>>16)|0;this.h[s]=o&65535}e[t+0]=this.h[0]>>>0&255;e[t+1]=this.h[0]>>>8&255;e[t+2]=this.h[1]>>>0&255;e[t+3]=this.h[1]>>>8&255;e[t+4]=this.h[2]>>>0&255;e[t+5]=this.h[2]>>>8&255;e[t+6]=this.h[3]>>>0&255;e[t+7]=this.h[3]>>>8&255;e[t+8]=this.h[4]>>>0&255;e[t+9]=this.h[4]>>>8&255;e[t+10]=this.h[5]>>>0&255;e[t+11]=this.h[5]>>>8&255;e[t+12]=this.h[6]>>>0&255;e[t+13]=this.h[6]>>>8&255;e[t+14]=this.h[7]>>>0&255;e[t+15]=this.h[7]>>>8&255};poly1305.prototype.update=function(e,t,r){var n,i;if(this.leftover){i=16-this.leftover;if(i>r)i=r;for(n=0;n=16){i=r-r%16;this.blocks(e,t,i);t+=i;r-=i}if(r){for(n=0;n>16&1);o[r-1]&=65535}o[15]=s[15]-32767-(o[14]>>16&1);i=o[15]>>16&1;o[14]&=65535;sel25519(s,o,1-i)}for(r=0;r<16;r++){e[2*r]=s[r]&255;e[2*r+1]=s[r]>>8}}function neq25519(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);pack25519(r,e);pack25519(n,t);return crypto_verify_32(r,0,n,0)}function par25519(e){var t=new Uint8Array(32);pack25519(t,e);return t[0]&1}function unpack25519(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function A(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function Z(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function M(e,t,r){var n,i,o=0,s=0,a=0,u=0,c=0,l=0,d=0,h=0,m=0,g=0,y=0,v=0,b=0,_=0,E=0,k=0,x=0,C=0,O=0,D=0,B=0,P=0,I=0,R=0,N=0,$=0,L=0,q=0,z=0,U=0,V=0,W=r[0],G=r[1],Q=r[2],Y=r[3],J=r[4],X=r[5],ee=r[6],te=r[7],re=r[8],ne=r[9],ie=r[10],oe=r[11],se=r[12],ae=r[13],ue=r[14],ce=r[15];n=t[0];o+=n*W;s+=n*G;a+=n*Q;u+=n*Y;c+=n*J;l+=n*X;d+=n*ee;h+=n*te;m+=n*re;g+=n*ne;y+=n*ie;v+=n*oe;b+=n*se;_+=n*ae;E+=n*ue;k+=n*ce;n=t[1];s+=n*W;a+=n*G;u+=n*Q;c+=n*Y;l+=n*J;d+=n*X;h+=n*ee;m+=n*te;g+=n*re;y+=n*ne;v+=n*ie;b+=n*oe;_+=n*se;E+=n*ae;k+=n*ue;x+=n*ce;n=t[2];a+=n*W;u+=n*G;c+=n*Q;l+=n*Y;d+=n*J;h+=n*X;m+=n*ee;g+=n*te;y+=n*re;v+=n*ne;b+=n*ie;_+=n*oe;E+=n*se;k+=n*ae;x+=n*ue;C+=n*ce;n=t[3];u+=n*W;c+=n*G;l+=n*Q;d+=n*Y;h+=n*J;m+=n*X;g+=n*ee;y+=n*te;v+=n*re;b+=n*ne;_+=n*ie;E+=n*oe;k+=n*se;x+=n*ae;C+=n*ue;O+=n*ce;n=t[4];c+=n*W;l+=n*G;d+=n*Q;h+=n*Y;m+=n*J;g+=n*X;y+=n*ee;v+=n*te;b+=n*re;_+=n*ne;E+=n*ie;k+=n*oe;x+=n*se;C+=n*ae;O+=n*ue;D+=n*ce;n=t[5];l+=n*W;d+=n*G;h+=n*Q;m+=n*Y;g+=n*J;y+=n*X;v+=n*ee;b+=n*te;_+=n*re;E+=n*ne;k+=n*ie;x+=n*oe;C+=n*se;O+=n*ae;D+=n*ue;B+=n*ce;n=t[6];d+=n*W;h+=n*G;m+=n*Q;g+=n*Y;y+=n*J;v+=n*X;b+=n*ee;_+=n*te;E+=n*re;k+=n*ne;x+=n*ie;C+=n*oe;O+=n*se;D+=n*ae;B+=n*ue;P+=n*ce;n=t[7];h+=n*W;m+=n*G;g+=n*Q;y+=n*Y;v+=n*J;b+=n*X;_+=n*ee;E+=n*te;k+=n*re;x+=n*ne;C+=n*ie;O+=n*oe;D+=n*se;B+=n*ae;P+=n*ue;I+=n*ce;n=t[8];m+=n*W;g+=n*G;y+=n*Q;v+=n*Y;b+=n*J;_+=n*X;E+=n*ee;k+=n*te;x+=n*re;C+=n*ne;O+=n*ie;D+=n*oe;B+=n*se;P+=n*ae;I+=n*ue;R+=n*ce;n=t[9];g+=n*W;y+=n*G;v+=n*Q;b+=n*Y;_+=n*J;E+=n*X;k+=n*ee;x+=n*te;C+=n*re;O+=n*ne;D+=n*ie;B+=n*oe;P+=n*se;I+=n*ae;R+=n*ue;N+=n*ce;n=t[10];y+=n*W;v+=n*G;b+=n*Q;_+=n*Y;E+=n*J;k+=n*X;x+=n*ee;C+=n*te;O+=n*re;D+=n*ne;B+=n*ie;P+=n*oe;I+=n*se;R+=n*ae;N+=n*ue;$+=n*ce;n=t[11];v+=n*W;b+=n*G;_+=n*Q;E+=n*Y;k+=n*J;x+=n*X;C+=n*ee;O+=n*te;D+=n*re;B+=n*ne;P+=n*ie;I+=n*oe;R+=n*se;N+=n*ae;$+=n*ue;L+=n*ce;n=t[12];b+=n*W;_+=n*G;E+=n*Q;k+=n*Y;x+=n*J;C+=n*X;O+=n*ee;D+=n*te;B+=n*re;P+=n*ne;I+=n*ie;R+=n*oe;N+=n*se;$+=n*ae;L+=n*ue;q+=n*ce;n=t[13];_+=n*W;E+=n*G;k+=n*Q;x+=n*Y;C+=n*J;O+=n*X;D+=n*ee;B+=n*te;P+=n*re;I+=n*ne;R+=n*ie;N+=n*oe;$+=n*se;L+=n*ae;q+=n*ue;z+=n*ce;n=t[14];E+=n*W;k+=n*G;x+=n*Q;C+=n*Y;O+=n*J;D+=n*X;B+=n*ee;P+=n*te;I+=n*re;R+=n*ne;N+=n*ie;$+=n*oe;L+=n*se;q+=n*ae;z+=n*ue;U+=n*ce;n=t[15];k+=n*W;x+=n*G;C+=n*Q;O+=n*Y;D+=n*J;B+=n*X;P+=n*ee;I+=n*te;R+=n*re;N+=n*ne;$+=n*ie;L+=n*oe;q+=n*se;z+=n*ae;U+=n*ue;V+=n*ce;o+=38*x;s+=38*C;a+=38*O;u+=38*D;c+=38*B;l+=38*P;d+=38*I;h+=38*R;m+=38*N;g+=38*$;y+=38*L;v+=38*q;b+=38*z;_+=38*U;E+=38*V;i=1;n=o+i+65535;i=Math.floor(n/65536);o=n-i*65536;n=s+i+65535;i=Math.floor(n/65536);s=n-i*65536;n=a+i+65535;i=Math.floor(n/65536);a=n-i*65536;n=u+i+65535;i=Math.floor(n/65536);u=n-i*65536;n=c+i+65535;i=Math.floor(n/65536);c=n-i*65536;n=l+i+65535;i=Math.floor(n/65536);l=n-i*65536;n=d+i+65535;i=Math.floor(n/65536);d=n-i*65536;n=h+i+65535;i=Math.floor(n/65536);h=n-i*65536;n=m+i+65535;i=Math.floor(n/65536);m=n-i*65536;n=g+i+65535;i=Math.floor(n/65536);g=n-i*65536;n=y+i+65535;i=Math.floor(n/65536);y=n-i*65536;n=v+i+65535;i=Math.floor(n/65536);v=n-i*65536;n=b+i+65535;i=Math.floor(n/65536);b=n-i*65536;n=_+i+65535;i=Math.floor(n/65536);_=n-i*65536;n=E+i+65535;i=Math.floor(n/65536);E=n-i*65536;n=k+i+65535;i=Math.floor(n/65536);k=n-i*65536;o+=i-1+37*(i-1);i=1;n=o+i+65535;i=Math.floor(n/65536);o=n-i*65536;n=s+i+65535;i=Math.floor(n/65536);s=n-i*65536;n=a+i+65535;i=Math.floor(n/65536);a=n-i*65536;n=u+i+65535;i=Math.floor(n/65536);u=n-i*65536;n=c+i+65535;i=Math.floor(n/65536);c=n-i*65536;n=l+i+65535;i=Math.floor(n/65536);l=n-i*65536;n=d+i+65535;i=Math.floor(n/65536);d=n-i*65536;n=h+i+65535;i=Math.floor(n/65536);h=n-i*65536;n=m+i+65535;i=Math.floor(n/65536);m=n-i*65536;n=g+i+65535;i=Math.floor(n/65536);g=n-i*65536;n=y+i+65535;i=Math.floor(n/65536);y=n-i*65536;n=v+i+65535;i=Math.floor(n/65536);v=n-i*65536;n=b+i+65535;i=Math.floor(n/65536);b=n-i*65536;n=_+i+65535;i=Math.floor(n/65536);_=n-i*65536;n=E+i+65535;i=Math.floor(n/65536);E=n-i*65536;n=k+i+65535;i=Math.floor(n/65536);k=n-i*65536;o+=i-1+37*(i-1);e[0]=o;e[1]=s;e[2]=a;e[3]=u;e[4]=c;e[5]=l;e[6]=d;e[7]=h;e[8]=m;e[9]=g;e[10]=y;e[11]=v;e[12]=b;e[13]=_;e[14]=E;e[15]=k}function S(e,t){M(e,t,t)}function inv25519(e,t){var r=gf();var n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--){S(r,r);if(n!==2&&n!==4)M(r,r,t)}for(n=0;n<16;n++)e[n]=r[n]}function pow2523(e,t){var r=gf();var n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--){S(r,r);if(n!==1)M(r,r,t)}for(n=0;n<16;n++)e[n]=r[n]}function crypto_scalarmult(e,t,r){var n=new Uint8Array(32);var i=new Float64Array(80),o,a;var u=gf(),c=gf(),l=gf(),d=gf(),h=gf(),m=gf();for(a=0;a<31;a++)n[a]=t[a];n[31]=t[31]&127|64;n[0]&=248;unpack25519(i,r);for(a=0;a<16;a++){c[a]=i[a];d[a]=u[a]=l[a]=0}u[0]=d[0]=1;for(a=254;a>=0;--a){o=n[a>>>3]>>>(a&7)&1;sel25519(u,c,o);sel25519(l,d,o);A(h,u,l);Z(u,u,l);A(l,c,d);Z(c,c,d);S(d,h);S(m,u);M(u,l,u);M(l,c,h);A(h,u,l);Z(u,u,l);S(c,u);Z(l,d,m);M(u,l,s);A(u,u,d);M(l,l,u);M(u,d,m);M(d,c,i);S(c,h);sel25519(u,c,o);sel25519(l,d,o)}for(a=0;a<16;a++){i[a+16]=u[a];i[a+32]=l[a];i[a+48]=c[a];i[a+64]=d[a]}var g=i.subarray(32);var y=i.subarray(16);inv25519(g,g);M(y,y,g);pack25519(e,y);return 0}function crypto_scalarmult_base(e,t){return crypto_scalarmult(e,t,n)}function crypto_box_keypair(e,t){randombytes(t,32);return crypto_scalarmult_base(e,t)}function crypto_box_beforenm(e,r,n){var i=new Uint8Array(32);crypto_scalarmult(i,n,r);return crypto_core_hsalsa20(e,t,i,h)}var m=crypto_secretbox;var g=crypto_secretbox_open;function crypto_box(e,t,r,n,i,o){var s=new Uint8Array(32);crypto_box_beforenm(s,i,o);return m(e,t,r,n,s)}function crypto_box_open(e,t,r,n,i,o){var s=new Uint8Array(32);crypto_box_beforenm(s,i,o);return g(e,t,r,n,s)}var y=[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 crypto_hashblocks_hl(e,t,r,n){var i=new Int32Array(16),o=new Int32Array(16),s,a,u,c,l,d,h,m,g,v,b,_,E,k,x,C,O,D,B,P,I,R,N,$,L,q;var z=e[0],U=e[1],V=e[2],W=e[3],G=e[4],Q=e[5],Y=e[6],J=e[7],X=t[0],ee=t[1],te=t[2],re=t[3],ne=t[4],ie=t[5],oe=t[6],se=t[7];var ae=0;while(n>=128){for(B=0;B<16;B++){P=8*B+ae;i[B]=r[P+0]<<24|r[P+1]<<16|r[P+2]<<8|r[P+3];o[B]=r[P+4]<<24|r[P+5]<<16|r[P+6]<<8|r[P+7]}for(B=0;B<80;B++){s=z;a=U;u=V;c=W;l=G;d=Q;h=Y;m=J;g=X;v=ee;b=te;_=re;E=ne;k=ie;x=oe;C=se;I=J;R=se;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=(G>>>14|ne<<32-14)^(G>>>18|ne<<32-18)^(ne>>>41-32|G<<32-(41-32));R=(ne>>>14|G<<32-14)^(ne>>>18|G<<32-18)^(G>>>41-32|ne<<32-(41-32));N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;I=G&Q^~G&Y;R=ne&ie^~ne&oe;N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;I=y[B*2];R=y[B*2+1];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;I=i[B%16];R=o[B%16];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;O=L&65535|q<<16;D=N&65535|$<<16;I=O;R=D;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=(z>>>28|X<<32-28)^(X>>>34-32|z<<32-(34-32))^(X>>>39-32|z<<32-(39-32));R=(X>>>28|z<<32-28)^(z>>>34-32|X<<32-(34-32))^(z>>>39-32|X<<32-(39-32));N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;I=z&U^z&V^U&V;R=X&ee^X&te^ee&te;N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;m=L&65535|q<<16;C=N&65535|$<<16;I=c;R=_;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=O;R=D;N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;c=L&65535|q<<16;_=N&65535|$<<16;U=s;V=a;W=u;G=c;Q=l;Y=d;J=h;z=m;ee=g;te=v;re=b;ne=_;ie=E;oe=k;se=x;X=C;if(B%16===15){for(P=0;P<16;P++){I=i[P];R=o[P];N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=i[(P+9)%16];R=o[(P+9)%16];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;O=i[(P+1)%16];D=o[(P+1)%16];I=(O>>>1|D<<32-1)^(O>>>8|D<<32-8)^O>>>7;R=(D>>>1|O<<32-1)^(D>>>8|O<<32-8)^(D>>>7|O<<32-7);N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;O=i[(P+14)%16];D=o[(P+14)%16];I=(O>>>19|D<<32-19)^(D>>>61-32|O<<32-(61-32))^O>>>6;R=(D>>>19|O<<32-19)^(O>>>61-32|D<<32-(61-32))^(D>>>6|O<<32-6);N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;i[P]=L&65535|q<<16;o[P]=N&65535|$<<16}}}I=z;R=X;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=e[0];R=t[0];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;e[0]=z=L&65535|q<<16;t[0]=X=N&65535|$<<16;I=U;R=ee;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=e[1];R=t[1];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;e[1]=U=L&65535|q<<16;t[1]=ee=N&65535|$<<16;I=V;R=te;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=e[2];R=t[2];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;e[2]=V=L&65535|q<<16;t[2]=te=N&65535|$<<16;I=W;R=re;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=e[3];R=t[3];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;e[3]=W=L&65535|q<<16;t[3]=re=N&65535|$<<16;I=G;R=ne;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=e[4];R=t[4];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;e[4]=G=L&65535|q<<16;t[4]=ne=N&65535|$<<16;I=Q;R=ie;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=e[5];R=t[5];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;e[5]=Q=L&65535|q<<16;t[5]=ie=N&65535|$<<16;I=Y;R=oe;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=e[6];R=t[6];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;e[6]=Y=L&65535|q<<16;t[6]=oe=N&65535|$<<16;I=J;R=se;N=R&65535;$=R>>>16;L=I&65535;q=I>>>16;I=e[7];R=t[7];N+=R&65535;$+=R>>>16;L+=I&65535;q+=I>>>16;$+=N>>>16;L+=$>>>16;q+=L>>>16;e[7]=J=L&65535|q<<16;t[7]=se=N&65535|$<<16;ae+=128;n-=128}return n}function crypto_hash(e,t,r){var n=new Int32Array(8),i=new Int32Array(8),o=new Uint8Array(256),s,a=r;n[0]=1779033703;n[1]=3144134277;n[2]=1013904242;n[3]=2773480762;n[4]=1359893119;n[5]=2600822924;n[6]=528734635;n[7]=1541459225;i[0]=4089235720;i[1]=2227873595;i[2]=4271175723;i[3]=1595750129;i[4]=2917565137;i[5]=725511199;i[6]=4215389547;i[7]=327033209;crypto_hashblocks_hl(n,i,t,r);r%=128;for(s=0;s=0;--s){n=r[s/8|0]>>(s&7)&1;cswap(e,t,n);add(t,e);add(e,e);cswap(e,t,n)}}function scalarbase(e,t){var r=[gf(),gf(),gf(),gf()];set25519(r[0],c);set25519(r[1],l);set25519(r[2],o);M(r[3],c,l);scalarmult(e,r,t)}function crypto_sign_keypair(e,t,r){var n=new Uint8Array(64);var i=[gf(),gf(),gf(),gf()];var o;if(!r)randombytes(t,32);crypto_hash(n,t,32);n[0]&=248;n[31]&=127;n[31]|=64;scalarbase(i,n);pack(e,i);for(o=0;o<32;o++)t[o+32]=e[o];return 0}var v=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function modL(e,t){var r,n,i,o;for(n=63;n>=32;--n){r=0;for(i=n-32,o=n-12;i>8;t[i]-=r*256}t[i]+=r;t[n]=0}r=0;for(i=0;i<32;i++){t[i]+=r-(t[31]>>4)*v[i];r=t[i]>>8;t[i]&=255}for(i=0;i<32;i++)t[i]-=r*v[i];for(n=0;n<32;n++){t[n+1]+=t[n]>>8;e[n]=t[n]&255}}function reduce(e){var t=new Float64Array(64),r;for(r=0;r<64;r++)t[r]=e[r];for(r=0;r<64;r++)e[r]=0;modL(e,t)}function crypto_sign(e,t,r,n){var i=new Uint8Array(64),o=new Uint8Array(64),s=new Uint8Array(64);var a,u,c=new Float64Array(64);var l=[gf(),gf(),gf(),gf()];crypto_hash(i,n,32);i[0]&=248;i[31]&=127;i[31]|=64;var d=r+64;for(a=0;a>7)Z(e[0],i,e[0]);M(e[3],e[0],e[1]);return 0}function crypto_sign_open(e,t,r,n){var i,o;var s=new Uint8Array(32),a=new Uint8Array(64);var u=[gf(),gf(),gf(),gf()],c=[gf(),gf(),gf(),gf()];o=-1;if(r<64)return-1;if(unpackneg(c,n))return-1;for(i=0;i=0};e.sign.keyPair=function(){var e=new Uint8Array($);var t=new Uint8Array(L);crypto_sign_keypair(e,t);return{publicKey:e,secretKey:t}};e.sign.keyPair.fromSecretKey=function(e){checkArrayTypes(e);if(e.length!==L)throw new Error("bad secret key size");var t=new Uint8Array($);for(var r=0;r1){t[0]=t[0].slice(0,-1);var n=t.length-1;for(var i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var b=o-s;var _=Math.floor;var E=String.fromCharCode;function error$1(e){throw new RangeError(v[e])}function map(e,t){var r=[];var n=e.length;while(n--){r[n]=t(e[n])}return r}function mapDomain(e,t){var r=e.split("@");var n="";if(r.length>1){n=r[0]+"@";e=r[1]}e=e.replace(y,".");var i=e.split(".");var o=map(i,t).join(".");return n+o}function ucs2decode(e){var t=[];var r=0;var n=e.length;while(r=55296&&i<=56319&&r>1;e+=_(e/t);for(;e>b*a>>1;n+=o){e=_(e/b)}return _(n+(b+1)*e/(e+u))};var D=function decode(e){var t=[];var r=e.length;var n=0;var u=d;var c=l;var m=e.lastIndexOf(h);if(m<0){m=0}for(var g=0;g=128){error$1("not-basic")}t.push(e.charCodeAt(g))}for(var y=m>0?m+1:0;y=r){error$1("invalid-input")}var k=x(e.charCodeAt(y++));if(k>=o||k>_((i-n)/b)){error$1("overflow")}n+=k*b;var C=E<=c?s:E>=c+a?a:E-c;if(k_(i/D)){error$1("overflow")}b*=D}var B=t.length+1;c=O(n-v,B,v==0);if(_(n/B)>i-u){error$1("overflow")}u+=_(n/B);n%=B;t.splice(n++,0,u)}return String.fromCodePoint.apply(String,t)};var B=function encode(e){var t=[];e=ucs2decode(e);var r=e.length;var n=d;var u=0;var c=l;var m=true;var g=false;var y=undefined;try{for(var v=e[Symbol.iterator](),b;!(m=(b=v.next()).done);m=true){var k=b.value;if(k<128){t.push(E(k))}}}catch(e){g=true;y=e}finally{try{if(!m&&v.return){v.return()}}finally{if(g){throw y}}}var x=t.length;var D=x;if(x){t.push(h)}while(D=n&&L_((i-u)/q)){error$1("overflow")}u+=(B-n)*q;n=B;var z=true;var U=false;var V=undefined;try{for(var W=e[Symbol.iterator](),G;!(z=(G=W.next()).done);z=true){var Q=G.value;if(Qi){error$1("overflow")}if(Q==n){var Y=u;for(var J=o;;J+=o){var X=J<=c?s:J>=c+a?a:J-c;if(Y>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else r="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return r}function pctDecChars(e){var t="";var r=0;var n=e.length;while(r=194&&i<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((i&31)<<6|o&63)}else{t+=e.substr(r,6)}r+=6}else if(i>=224){if(n-r>=9){var s=parseInt(e.substr(r+4,2),16);var a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((i&15)<<12|(s&63)<<6|a&63)}else{t+=e.substr(r,9)}r+=9}else{t+=e.substr(r,3);r+=3}}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(t.UNRESERVED)?e:r}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var r=e.match(t.IPV4ADDRESS)||[];var i=n(r,2),o=i[1];if(o){return o.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,t){var r=e.match(t.IPV6ADDRESS)||[];var i=n(r,3),o=i[1],s=i[2];if(o){var a=o.toLowerCase().split("::").reverse(),u=n(a,2),c=u[0],l=u[1];var d=l?l.split(":").map(_stripLeadingZeros):[];var h=c.split(":").map(_stripLeadingZeros);var m=t.IPV4ADDRESS.test(h[h.length-1]);var g=m?7:8;var y=h.length-g;var v=Array(g);for(var b=0;b1){var x=v.slice(0,E.index);var C=v.slice(E.index+E.length);k=x.join(":")+"::"+C.join(":")}else{k=v.join(":")}if(s){k+="%"+s}return k}else{return e}}var $=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var L="".match(/(){0}/)[1]===undefined;function parse(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i={};var o=n.iri!==false?r:t;if(n.reference==="suffix")e=(n.scheme?n.scheme+":":"")+"//"+e;var s=e.match($);if(s){if(L){i.scheme=s[1];i.userinfo=s[3];i.host=s[4];i.port=parseInt(s[5],10);i.path=s[6]||"";i.query=s[7];i.fragment=s[8];if(isNaN(i.port)){i.port=s[5]}}else{i.scheme=s[1]||undefined;i.userinfo=e.indexOf("@")!==-1?s[3]:undefined;i.host=e.indexOf("//")!==-1?s[4]:undefined;i.port=parseInt(s[5],10);i.path=s[6]||"";i.query=e.indexOf("?")!==-1?s[7]:undefined;i.fragment=e.indexOf("#")!==-1?s[8]:undefined;if(isNaN(i.port)){i.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:undefined}}if(i.host){i.host=_normalizeIPv6(_normalizeIPv4(i.host,o),o)}if(i.scheme===undefined&&i.userinfo===undefined&&i.host===undefined&&i.port===undefined&&!i.path&&i.query===undefined){i.reference="same-document"}else if(i.scheme===undefined){i.reference="relative"}else if(i.fragment===undefined){i.reference="absolute"}else{i.reference="uri"}if(n.reference&&n.reference!=="suffix"&&n.reference!==i.reference){i.error=i.error||"URI is not a "+n.reference+" reference."}var a=N[(n.scheme||i.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!a||!a.unicodeSupport)){if(i.host&&(n.domainHost||a&&a.domainHost)){try{i.host=R.toASCII(i.host.replace(o.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(i,t)}else{_normalizeComponentEncoding(i,o)}if(a&&a.parse){a.parse(i,n)}}else{i.error=i.error||"URI can not be parsed."}return i}function _recomposeAuthority(e,n){var i=n.iri!==false?r:t;var o=[];if(e.userinfo!==undefined){o.push(e.userinfo);o.push("@")}if(e.host!==undefined){o.push(_normalizeIPv6(_normalizeIPv4(String(e.host),i),i).replace(i.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})))}if(typeof e.port==="number"||typeof e.port==="string"){o.push(":");o.push(String(e.port))}return o.length?o.join(""):undefined}var q=/^\.\.?\//;var z=/^\/\.(\/|$)/;var U=/^\/\.\.(\/|$)/;var V=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var t=[];while(e.length){if(e.match(q)){e=e.replace(q,"")}else if(e.match(z)){e=e.replace(z,"/")}else if(e.match(U)){e=e.replace(U,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var r=e.match(V);if(r){var n=r[0];e=e.slice(n.length);t.push(n)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function serialize(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=n.iri?r:t;var o=[];var s=N[(n.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize)s.serialize(e,n);if(e.host){if(i.IPV6ADDRESS.test(e.host)){}else if(n.domainHost||s&&s.domainHost){try{e.host=!n.iri?R.toASCII(e.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase()):R.toUnicode(e.host)}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+t}}}_normalizeComponentEncoding(e,i);if(n.reference!=="suffix"&&e.scheme){o.push(e.scheme);o.push(":")}var a=_recomposeAuthority(e,n);if(a!==undefined){if(n.reference!=="suffix"){o.push("//")}o.push(a);if(e.path&&e.path.charAt(0)!=="/"){o.push("/")}}if(e.path!==undefined){var u=e.path;if(!n.absolutePath&&(!s||!s.absolutePath)){u=removeDotSegments(u)}if(a===undefined){u=u.replace(/^\/\//,"/%2F")}o.push(u)}if(e.query!==undefined){o.push("?");o.push(e.query)}if(e.fragment!==undefined){o.push("#");o.push(e.fragment)}return o.join("")}function resolveComponents(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments[3];var i={};if(!n){e=parse(serialize(e,r),r);t=parse(serialize(t,r),r)}r=r||{};if(!r.tolerant&&t.scheme){i.scheme=t.scheme;i.userinfo=t.userinfo;i.host=t.host;i.port=t.port;i.path=removeDotSegments(t.path||"");i.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){i.userinfo=t.userinfo;i.host=t.host;i.port=t.port;i.path=removeDotSegments(t.path||"");i.query=t.query}else{if(!t.path){i.path=e.path;if(t.query!==undefined){i.query=t.query}else{i.query=e.query}}else{if(t.path.charAt(0)==="/"){i.path=removeDotSegments(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){i.path="/"+t.path}else if(!e.path){i.path=t.path}else{i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}i.path=removeDotSegments(i.path)}i.query=t.query}i.userinfo=e.userinfo;i.host=e.host;i.port=e.port}i.scheme=e.scheme}i.fragment=t.fragment;return i}function resolve(e,t,r){var n=assign({scheme:"null"},r);return serialize(resolveComponents(parse(e,n),parse(t,n),n,true),n)}function normalize(e,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=parse(serialize(e,t),t)}return e}function equal(e,t,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=serialize(e,r)}if(typeof t==="string"){t=serialize(parse(t,r),r)}else if(typeOf(t)==="object"){t=serialize(t,r)}return e===t}function escapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.ESCAPE:r.ESCAPE,pctEncChar)}function unescapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.PCT_ENCODED:r.PCT_ENCODED,pctDecChars)}var W={scheme:"http",domainHost:true,parse:function parse(e,t){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,t){var r=String(e.scheme).toLowerCase()==="https";if(e.port===(r?443:80)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var G={scheme:"https",domainHost:W.domainHost,parse:W.parse,serialize:W.serialize};function isSecure(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}var Q={scheme:"ws",domainHost:true,parse:function parse(e,t){var r=e;r.secure=isSecure(r);r.resourceName=(r.path||"/")+(r.query?"?"+r.query:"");r.path=undefined;r.query=undefined;return r},serialize:function serialize(e,t){if(e.port===(isSecure(e)?443:80)||e.port===""){e.port=undefined}if(typeof e.secure==="boolean"){e.scheme=e.secure?"wss":"ws";e.secure=undefined}if(e.resourceName){var r=e.resourceName.split("?"),i=n(r,2),o=i[0],s=i[1];e.path=o&&o!=="/"?o:undefined;e.query=s;e.resourceName=undefined}e.fragment=undefined;return e}};var Y={scheme:"wss",domainHost:Q.domainHost,parse:Q.parse,serialize:Q.serialize};var J={};var X=true;var ee="[A-Za-z0-9\\-\\.\\_\\~"+(X?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var te="[0-9A-Fa-f]";var re=subexp(subexp("%[EFef]"+te+"%"+te+te+"%"+te+te)+"|"+subexp("%[89A-Fa-f]"+te+"%"+te+te)+"|"+subexp("%"+te+te));var ne="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var ie="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var oe=merge(ie,'[\\"\\\\]');var se="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var ae=new RegExp(ee,"g");var ue=new RegExp(re,"g");var ce=new RegExp(merge("[^]",ne,"[\\.]",'[\\"]',oe),"g");var le=new RegExp(merge("[^]",ee,se),"g");var pe=le;function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(ae)?e:t}var fe={scheme:"mailto",parse:function parse$$1(e,t){var r=e;var n=r.to=r.path?r.path.split(","):[];r.path=undefined;if(r.query){var i=false;var o={};var s=r.query.split("&");for(var a=0,u=s.length;a{e.exports=r(73837).deprecate},43171:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},97465:(e,t,r)=>{var n=r(6113);e.exports=function nodeRNG(){return n.randomBytes(16)}},76876:(e,t,r)=>{var n=r(97465);var i=r(43171);function v4(e,t,r){var o=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||n)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var a=0;a<16;++a){t[o+a]=s[a]}}return t||i(s)}e.exports=v4},40698:(e,t,r)=>{var n=r(31258);var i=r(73837);var o=r(48727);var s=r(53695).VZ;var a=o.sprintf;e.exports=VError;VError.VError=VError;VError.SError=SError;VError.WError=WError;VError.MultiError=MultiError;function parseConstructorArguments(e){var t,r,i,o,u;n.object(e,"args");n.bool(e.strict,"args.strict");n.array(e.argv,"args.argv");t=e.argv;if(t.length===0){r={};i=[]}else if(s(t[0])){r={cause:t[0]};i=t.slice(1)}else if(typeof t[0]==="object"){r={};for(u in t[0]){r[u]=t[0][u]}i=t.slice(1)}else{n.string(t[0],"first argument to VError, SError, or WError "+"constructor must be a string, object, or Error");r={};i=t}n.object(r);if(!r.strict&&!e.strict){i=i.map((function(e){return e===null?"null":e===undefined?"undefined":e}))}if(i.length===0){o=""}else{o=a.apply(null,i)}return{options:r,shortmessage:o}}function VError(){var e,t,r,i,o,a,u;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof VError)){t=Object.create(VError.prototype);VError.apply(t,arguments);return t}r=parseConstructorArguments({argv:e,strict:false});if(r.options.name){n.string(r.options.name,'error\'s "name" must be a string');this.name=r.options.name}this.jse_shortmsg=r.shortmessage;a=r.shortmessage;i=r.options.cause;if(i){n.ok(s(i),"cause is not an Error");this.jse_cause=i;if(!r.options.skipCauseMessage){a+=": "+i.message}}this.jse_info={};if(r.options.info){for(u in r.options.info){this.jse_info[u]=r.options.info[u]}}this.message=a;Error.call(this,a);if(Error.captureStackTrace){o=r.options.constructorOpt||this.constructor;Error.captureStackTrace(this,o)}return this}i.inherits(VError,Error);VError.prototype.name="VError";VError.prototype.toString=function ve_toString(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;if(this.message)e+=": "+this.message;return e};VError.prototype.cause=function ve_cause(){var e=VError.cause(this);return e===null?undefined:e};VError.cause=function(e){n.ok(s(e),"err must be an Error");return s(e.jse_cause)?e.jse_cause:null};VError.info=function(e){var t,r,i;n.ok(s(e),"err must be an Error");r=VError.cause(e);if(r!==null){t=VError.info(r)}else{t={}}if(typeof e.jse_info=="object"&&e.jse_info!==null){for(i in e.jse_info){t[i]=e.jse_info[i]}}return t};VError.findCauseByName=function(e,t){var r;n.ok(s(e),"err must be an Error");n.string(t,"name");n.ok(t.length>0,"name cannot be empty");for(r=e;r!==null;r=VError.cause(r)){n.ok(s(r));if(r.name==t){return r}}return null};VError.hasCauseWithName=function(e,t){return VError.findCauseByName(e,t)!==null};VError.fullStack=function(e){n.ok(s(e),"err must be an Error");var t=VError.cause(e);if(t){return e.stack+"\ncaused by: "+VError.fullStack(t)}return e.stack};VError.errorFromList=function(e){n.arrayOfObject(e,"errors");if(e.length===0){return null}e.forEach((function(e){n.ok(s(e))}));if(e.length==1){return e[0]}return new MultiError(e)};VError.errorForEach=function(e,t){n.ok(s(e),"err must be an Error");n.func(t,"func");if(e instanceof MultiError){e.errors().forEach((function iterError(e){t(e)}))}else{t(e)}};function SError(){var e,t,r,n;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof SError)){t=Object.create(SError.prototype);SError.apply(t,arguments);return t}r=parseConstructorArguments({argv:e,strict:true});n=r.options;VError.call(this,n,"%s",r.shortmessage);return this}i.inherits(SError,VError);function MultiError(e){n.array(e,"list of errors");n.ok(e.length>0,"must be at least one error");this.ase_errors=e;VError.call(this,{cause:e[0]},"first of %d error%s",e.length,e.length==1?"":"s")}i.inherits(MultiError,VError);MultiError.prototype.name="MultiError";MultiError.prototype.errors=function me_errors(){return this.ase_errors.slice(0)};function WError(){var e,t,r,n;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof WError)){t=Object.create(WError.prototype);WError.apply(t,e);return t}r=parseConstructorArguments({argv:e,strict:false});n=r.options;n["skipCauseMessage"]=true;VError.call(this,n,"%s",r.shortmessage);return this}i.inherits(WError,VError);WError.prototype.name="WError";WError.prototype.toString=function we_toString(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;if(this.message)e+=": "+this.message;if(this.jse_cause&&this.jse_cause.message)e+="; caused by "+this.jse_cause.toString();return e};WError.prototype.cause=function we_cause(e){if(s(e))this.jse_cause=e;return this.jse_cause}},53695:(e,t)=>{var r;function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}r=isArray;function isBoolean(e){return typeof e==="boolean"}r=isBoolean;function isNull(e){return e===null}r=isNull;function isNullOrUndefined(e){return e==null}r=isNullOrUndefined;function isNumber(e){return typeof e==="number"}r=isNumber;function isString(e){return typeof e==="string"}r=isString;function isSymbol(e){return typeof e==="symbol"}r=isSymbol;function isUndefined(e){return e===void 0}r=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}r=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}r=isObject;function isDate(e){return objectToString(e)==="[object Date]"}r=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.VZ=isError;function isFunction(e){return typeof e==="function"}r=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}r=isPrimitive;r=Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},48727:(e,t,r)=>{var n=r(39491);var i=r(73837);t.sprintf=jsSprintf;t.printf=jsPrintf;t.fprintf=jsFprintf;function jsSprintf(e){var t=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join("");var r=new RegExp(t);var o=Array.prototype.slice.call(arguments,1);var s=e;var a,u,c,l;var d,h,m,g,y;var v="";var b=1;var _=0;var E;var k;n.equal("string",typeof s,"first argument must be a format string");while((y=r.exec(s))!==null){v+=y[1];s=s.substring(y[0].length);k=y[0].substring(y[1].length);E=_+y[1].length+1;_+=y[0].length;a=y[2]||"";u=y[3]||0;c=y[4]||"";l=y[6];d=false;m=false;h=" ";if(l=="%"){v+="%";continue}if(o.length===0){throw jsError(e,E,k,"has no matching argument "+"(too few arguments passed)")}g=o.shift();b++;if(a.match(/[\' #]/)){throw jsError(e,E,k,"uses unsupported flags")}if(c.length>0){throw jsError(e,E,k,"uses non-zero precision (not supported)")}if(a.match(/-/))d=true;if(a.match(/0/))h="0";if(a.match(/\+/))m=true;switch(l){case"s":if(g===undefined||g===null){throw jsError(e,E,k,"attempted to print undefined or null "+"as a string (argument "+b+" to "+"sprintf)")}v+=doPad(h,u,d,g.toString());break;case"d":g=Math.floor(g);case"f":m=m&&g>0?"+":"";v+=m+doPad(h,u,d,g.toString());break;case"x":v+=doPad(h,u,d,g.toString(16));break;case"j":if(u===0)u=10;v+=i.inspect(g,false,u);break;case"r":v+=dumpException(g);break;default:throw jsError(e,E,k,"is not supported")}}v+=s;return v}function jsError(e,t,r,i){n.equal(typeof e,"string");n.equal(typeof r,"string");n.equal(typeof t,"number");n.equal(typeof i,"string");return new Error('format string "'+e+'": conversion specifier "'+r+'" at character '+t+" "+i)}function jsPrintf(){var e=Array.prototype.slice.call(arguments);e.unshift(process.stdout);jsFprintf.apply(null,e)}function jsFprintf(e){var t=Array.prototype.slice.call(arguments,1);return e.write(jsSprintf.apply(this,t))}function doPad(e,t,r,n){var i=n;while(i.length{"use strict";function makeException(e,t,r){if(r.globals){e=r.globals[e.name]}return new e(`${r.context?r.context:"Value"} ${t}.`)}function toNumber(e,t){if(typeof e==="bigint"){throw makeException(TypeError,"is a BigInt which cannot be converted to a number",t)}if(!t.globals){return Number(e)}return t.globals.Number(e)}function evenRound(e){if(e>0&&e%1===+.5&&(e&1)===0||e<0&&e%1===-.5&&(e&1)===1){return censorNegativeZero(Math.floor(e))}return censorNegativeZero(Math.round(e))}function integerPart(e){return censorNegativeZero(Math.trunc(e))}function sign(e){return e<0?-1:1}function modulo(e,t){const r=e%t;if(sign(t)!==sign(r)){return r+t}return r}function censorNegativeZero(e){return e===0?0:e}function createIntegerConversion(e,{unsigned:t}){let r,n;if(t){r=0;n=2**e-1}else{r=-(2**(e-1));n=2**(e-1)-1}const i=2**e;const o=2**(e-1);return(e,s={})=>{let a=toNumber(e,s);a=censorNegativeZero(a);if(s.enforceRange){if(!Number.isFinite(a)){throw makeException(TypeError,"is not a finite number",s)}a=integerPart(a);if(an){throw makeException(TypeError,`is outside the accepted range of ${r} to ${n}, inclusive`,s)}return a}if(!Number.isNaN(a)&&s.clamp){a=Math.min(Math.max(a,r),n);a=evenRound(a);return a}if(!Number.isFinite(a)||a===0){return 0}a=integerPart(a);if(a>=r&&a<=n){return a}a=modulo(a,i);if(!t&&a>=o){return a-i}return a}}function createLongLongConversion(e,{unsigned:t}){const r=Number.MAX_SAFE_INTEGER;const n=t?0:Number.MIN_SAFE_INTEGER;const i=t?BigInt.asUintN:BigInt.asIntN;return(t,o={})=>{let s=toNumber(t,o);s=censorNegativeZero(s);if(o.enforceRange){if(!Number.isFinite(s)){throw makeException(TypeError,"is not a finite number",o)}s=integerPart(s);if(sr){throw makeException(TypeError,`is outside the accepted range of ${n} to ${r}, inclusive`,o)}return s}if(!Number.isNaN(s)&&o.clamp){s=Math.min(Math.max(s,n),r);s=evenRound(s);return s}if(!Number.isFinite(s)||s===0){return 0}let a=BigInt(integerPart(s));a=i(e,a);return Number(a)}}t.any=e=>e;t.undefined=()=>undefined;t.boolean=e=>Boolean(e);t.byte=createIntegerConversion(8,{unsigned:false});t.octet=createIntegerConversion(8,{unsigned:true});t.short=createIntegerConversion(16,{unsigned:false});t["unsigned short"]=createIntegerConversion(16,{unsigned:true});t.long=createIntegerConversion(32,{unsigned:false});t["unsigned long"]=createIntegerConversion(32,{unsigned:true});t["long long"]=createLongLongConversion(64,{unsigned:false});t["unsigned long long"]=createLongLongConversion(64,{unsigned:true});t.double=(e,t={})=>{const r=toNumber(e,t);if(!Number.isFinite(r)){throw makeException(TypeError,"is not a finite floating-point value",t)}return r};t["unrestricted double"]=(e,t={})=>{const r=toNumber(e,t);return r};t.float=(e,t={})=>{const r=toNumber(e,t);if(!Number.isFinite(r)){throw makeException(TypeError,"is not a finite floating-point value",t)}if(Object.is(r,-0)){return r}const n=Math.fround(r);if(!Number.isFinite(n)){throw makeException(TypeError,"is outside the range of a single-precision floating-point value",t)}return n};t["unrestricted float"]=(e,t={})=>{const r=toNumber(e,t);if(isNaN(r)){return r}if(Object.is(r,-0)){return r}return Math.fround(r)};t.DOMString=(e,t={})=>{if(t.treatNullAsEmptyString&&e===null){return""}if(typeof e==="symbol"){throw makeException(TypeError,"is a symbol, which cannot be converted to a string",t)}const r=t.globals?t.globals.String:String;return r(e)};t.ByteString=(e,r={})=>{const n=t.DOMString(e,r);let i;for(let e=0;(i=n.codePointAt(e))!==undefined;++e){if(i>255){throw makeException(TypeError,"is not a valid ByteString",r)}}return n};t.USVString=(e,r={})=>{const n=t.DOMString(e,r);const i=n.length;const o=[];for(let e=0;e57343){o.push(String.fromCodePoint(t))}else if(56320<=t&&t<=57343){o.push(String.fromCodePoint(65533))}else if(e===i-1){o.push(String.fromCodePoint(65533))}else{const r=n.charCodeAt(e+1);if(56320<=r&&r<=57343){const n=t&1023;const i=r&1023;o.push(String.fromCodePoint((2<<15)+(2<<9)*n+i));++e}else{o.push(String.fromCodePoint(65533))}}}return o.join("")};t.object=(e,t={})=>{if(e===null||typeof e!=="object"&&typeof e!=="function"){throw makeException(TypeError,"is not an object",t)}return e};const r=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;const n=typeof SharedArrayBuffer==="function"?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function isNonSharedArrayBuffer(e){try{r.call(e);return true}catch{return false}}function isSharedArrayBuffer(e){try{n.call(e);return true}catch{return false}}function isArrayBufferDetached(e){try{new Uint8Array(e);return false}catch{return true}}t.ArrayBuffer=(e,t={})=>{if(!isNonSharedArrayBuffer(e)){if(t.allowShared&&!isSharedArrayBuffer(e)){throw makeException(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",t)}throw makeException(TypeError,"is not an ArrayBuffer",t)}if(isArrayBufferDetached(e)){throw makeException(TypeError,"is a detached ArrayBuffer",t)}return e};const i=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;t.DataView=(e,t={})=>{try{i.call(e)}catch(e){throw makeException(TypeError,"is not a DataView",t)}if(!t.allowShared&&isSharedArrayBuffer(e.buffer)){throw makeException(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",t)}if(isArrayBufferDetached(e.buffer)){throw makeException(TypeError,"is backed by a detached ArrayBuffer",t)}return e};const o=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((e=>{const{name:r}=e;const n=/^[AEIOU]/u.test(r)?"an":"a";t[r]=(e,t={})=>{if(!ArrayBuffer.isView(e)||o.call(e)!==r){throw makeException(TypeError,`is not ${n} ${r} object`,t)}if(!t.allowShared&&isSharedArrayBuffer(e.buffer)){throw makeException(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t)}if(isArrayBufferDetached(e.buffer)){throw makeException(TypeError,"is a view on a detached ArrayBuffer",t)}return e}}));t.ArrayBufferView=(e,t={})=>{if(!ArrayBuffer.isView(e)){throw makeException(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",t)}if(!t.allowShared&&isSharedArrayBuffer(e.buffer)){throw makeException(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t)}if(isArrayBufferDetached(e.buffer)){throw makeException(TypeError,"is a view on a detached ArrayBuffer",t)}return e};t.BufferSource=(e,t={})=>{if(ArrayBuffer.isView(e)){if(!t.allowShared&&isSharedArrayBuffer(e.buffer)){throw makeException(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t)}if(isArrayBufferDetached(e.buffer)){throw makeException(TypeError,"is a view on a detached ArrayBuffer",t)}return e}if(!t.allowShared&&!isNonSharedArrayBuffer(e)){throw makeException(TypeError,"is not an ArrayBuffer or a view on one",t)}if(t.allowShared&&!isSharedArrayBuffer(e)&&!isNonSharedArrayBuffer(e)){throw makeException(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",t)}if(isArrayBufferDetached(e)){throw makeException(TypeError,"is a detached ArrayBuffer",t)}return e};t.DOMTimeStamp=t["unsigned long long"]},68145:(e,t,r)=>{"use strict";const{URL:n,URLSearchParams:i}=r(26301);const o=r(68530);const s=r(12593);const a={Array:Array,Object:Object,Promise:Promise,String:String,TypeError:TypeError};n.install(a,["Window"]);i.install(a,["Window"]);t.URL=a.URL;t.URLSearchParams=a.URLSearchParams;t.parseURL=o.parseURL;t.basicURLParse=o.basicURLParse;t.serializeURL=o.serializeURL;t.serializePath=o.serializePath;t.serializeHost=o.serializeHost;t.serializeInteger=o.serializeInteger;t.serializeURLOrigin=o.serializeURLOrigin;t.setTheUsername=o.setTheUsername;t.setThePassword=o.setThePassword;t.cannotHaveAUsernamePasswordPort=o.cannotHaveAUsernamePasswordPort;t.hasAnOpaquePath=o.hasAnOpaquePath;t.percentDecodeString=s.percentDecodeString;t.percentDecodeBytes=s.percentDecodeBytes},29349:(e,t,r)=>{"use strict";const n=r(27607);const i=r(18278);t.convert=(e,t,{context:r="The provided value"}={})=>{if(typeof t!=="function"){throw new e.TypeError(r+" is not a function")}function invokeTheCallbackFunction(...o){const s=i.tryWrapperForImpl(this);let a;for(let e=0;e{for(let e=0;e{"use strict";const n=r(68530);const i=r(60106);const o=r(26584);t.implementation=class URLImpl{constructor(e,t){const r=t[0];const i=t[1];let s=null;if(i!==undefined){s=n.basicURLParse(i);if(s===null){throw new TypeError(`Invalid base URL: ${i}`)}}const a=n.basicURLParse(r,{baseURL:s});if(a===null){throw new TypeError(`Invalid URL: ${r}`)}const u=a.query!==null?a.query:"";this._url=a;this._query=o.createImpl(e,[u],{doNotStripQMark:true});this._query._url=this}get href(){return n.serializeURL(this._url)}set href(e){const t=n.basicURLParse(e);if(t===null){throw new TypeError(`Invalid URL: ${e}`)}this._url=t;this._query._list.splice(0);const{query:r}=t;if(r!==null){this._query._list=i.parseUrlencodedString(r)}}get origin(){return n.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(e){n.basicURLParse(`${e}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){if(n.cannotHaveAUsernamePasswordPort(this._url)){return}n.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){if(n.cannotHaveAUsernamePasswordPort(this._url)){return}n.setThePassword(this._url,e)}get host(){const e=this._url;if(e.host===null){return""}if(e.port===null){return n.serializeHost(e.host)}return`${n.serializeHost(e.host)}:${n.serializeInteger(e.port)}`}set host(e){if(n.hasAnOpaquePath(this._url)){return}n.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return n.serializeHost(this._url.host)}set hostname(e){if(n.hasAnOpaquePath(this._url)){return}n.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return n.serializeInteger(this._url.port)}set port(e){if(n.cannotHaveAUsernamePasswordPort(this._url)){return}if(e===""){this._url.port=null}else{n.basicURLParse(e,{url:this._url,stateOverride:"port"})}}get pathname(){return n.serializePath(this._url)}set pathname(e){if(n.hasAnOpaquePath(this._url)){return}this._url.path=[];n.basicURLParse(e,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return`?${this._url.query}`}set search(e){const t=this._url;if(e===""){t.query=null;this._query._list=[];return}const r=e[0]==="?"?e.substring(1):e;t.query="";n.basicURLParse(r,{url:t,stateOverride:"query"});this._query._list=i.parseUrlencodedString(r)}get searchParams(){return this._query}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return`#${this._url.fragment}`}set hash(e){if(e===""){this._url.fragment=null;return}const t=e[0]==="#"?e.substring(1):e;this._url.fragment="";n.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},12418:(e,t,r)=>{"use strict";const n=r(27607);const i=r(18278);const o=i.implSymbol;const s=i.ctorRegistrySymbol;const a="URL";t.is=e=>i.isObject(e)&&i.hasOwn(e,o)&&e[o]instanceof c.implementation;t.isImpl=e=>i.isObject(e)&&e instanceof c.implementation;t.convert=(e,r,{context:n="The provided value"}={})=>{if(t.is(r)){return i.implForWrapper(r)}throw new e.TypeError(`${n} is not of type 'URL'.`)};function makeWrapper(e,t){let r;if(t!==undefined){r=t.prototype}if(!i.isObject(r)){r=e[s]["URL"].prototype}return Object.create(r)}t.create=(e,r,n)=>{const i=makeWrapper(e);return t.setup(i,e,r,n)};t.createImpl=(e,r,n)=>{const o=t.create(e,r,n);return i.implForWrapper(o)};t._internalSetup=(e,t)=>{};t.setup=(e,r,n=[],s={})=>{s.wrapper=e;t._internalSetup(e,r);Object.defineProperty(e,o,{value:new c.implementation(r,n,s),configurable:true});e[o][i.wrapperSymbol]=e;if(c.init){c.init(e[o])}return e};t["new"]=(e,r)=>{const n=makeWrapper(e,r);t._internalSetup(n,e);Object.defineProperty(n,o,{value:Object.create(c.implementation.prototype),configurable:true});n[o][i.wrapperSymbol]=n;if(c.init){c.init(n[o])}return n[o]};const u=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>u.has(e)))){return}const s=i.initCtorRegistry(e);class URL{constructor(r){if(arguments.length<1){throw new e.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`)}const i=[];{let t=arguments[0];t=n["USVString"](t,{context:"Failed to construct 'URL': parameter 1",globals:e});i.push(t)}{let t=arguments[1];if(t!==undefined){t=n["USVString"](t,{context:"Failed to construct 'URL': parameter 2",globals:e})}i.push(t)}return t.setup(Object.create(new.target.prototype),e,i)}toJSON(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'toJSON' called on an object that is not a valid instance of URL.")}return r[o].toJSON()}get href(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get href' called on an object that is not a valid instance of URL.")}return r[o]["href"]}set href(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'set href' called on an object that is not a valid instance of URL.")}r=n["USVString"](r,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:e});i[o]["href"]=r}toString(){const r=this;if(!t.is(r)){throw new e.TypeError("'toString' called on an object that is not a valid instance of URL.")}return r[o]["href"]}get origin(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get origin' called on an object that is not a valid instance of URL.")}return r[o]["origin"]}get protocol(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get protocol' called on an object that is not a valid instance of URL.")}return r[o]["protocol"]}set protocol(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'set protocol' called on an object that is not a valid instance of URL.")}r=n["USVString"](r,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:e});i[o]["protocol"]=r}get username(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get username' called on an object that is not a valid instance of URL.")}return r[o]["username"]}set username(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'set username' called on an object that is not a valid instance of URL.")}r=n["USVString"](r,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:e});i[o]["username"]=r}get password(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get password' called on an object that is not a valid instance of URL.")}return r[o]["password"]}set password(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'set password' called on an object that is not a valid instance of URL.")}r=n["USVString"](r,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:e});i[o]["password"]=r}get host(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get host' called on an object that is not a valid instance of URL.")}return r[o]["host"]}set host(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'set host' called on an object that is not a valid instance of URL.")}r=n["USVString"](r,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:e});i[o]["host"]=r}get hostname(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get hostname' called on an object that is not a valid instance of URL.")}return r[o]["hostname"]}set hostname(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'set hostname' called on an object that is not a valid instance of URL.")}r=n["USVString"](r,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:e});i[o]["hostname"]=r}get port(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get port' called on an object that is not a valid instance of URL.")}return r[o]["port"]}set port(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'set port' called on an object that is not a valid instance of URL.")}r=n["USVString"](r,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:e});i[o]["port"]=r}get pathname(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get pathname' called on an object that is not a valid instance of URL.")}return r[o]["pathname"]}set pathname(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'set pathname' called on an object that is not a valid instance of URL.")}r=n["USVString"](r,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:e});i[o]["pathname"]=r}get search(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get search' called on an object that is not a valid instance of URL.")}return r[o]["search"]}set search(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'set search' called on an object that is not a valid instance of URL.")}r=n["USVString"](r,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:e});i[o]["search"]=r}get searchParams(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get searchParams' called on an object that is not a valid instance of URL.")}return i.getSameObject(this,"searchParams",(()=>i.tryWrapperForImpl(r[o]["searchParams"])))}get hash(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'get hash' called on an object that is not a valid instance of URL.")}return r[o]["hash"]}set hash(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'set hash' called on an object that is not a valid instance of URL.")}r=n["USVString"](r,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:e});i[o]["hash"]=r}}Object.defineProperties(URL.prototype,{toJSON:{enumerable:true},href:{enumerable:true},toString:{enumerable:true},origin:{enumerable:true},protocol:{enumerable:true},username:{enumerable:true},password:{enumerable:true},host:{enumerable:true},hostname:{enumerable:true},port:{enumerable:true},pathname:{enumerable:true},search:{enumerable:true},searchParams:{enumerable:true},hash:{enumerable:true},[Symbol.toStringTag]:{value:"URL",configurable:true}});s[a]=URL;Object.defineProperty(e,a,{configurable:true,writable:true,value:URL});if(r.includes("Window")){Object.defineProperty(e,"webkitURL",{configurable:true,writable:true,value:URL})}};const c=r(69911)},13866:(e,t,r)=>{"use strict";const n=r(60106);t.implementation=class URLSearchParamsImpl{constructor(e,t,{doNotStripQMark:r=false}){let i=t[0];this._list=[];this._url=null;if(!r&&typeof i==="string"&&i[0]==="?"){i=i.slice(1)}if(Array.isArray(i)){for(const e of i){if(e.length!==2){throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not "+"contain exactly two elements.")}this._list.push([e[0],e[1]])}}else if(typeof i==="object"&&Object.getPrototypeOf(i)===null){for(const e of Object.keys(i)){const t=i[e];this._list.push([e,t])}}else{this._list=n.parseUrlencodedString(i)}}_updateSteps(){if(this._url!==null){let e=n.serializeUrlencoded(this._list);if(e===""){e=null}this._url._url.query=e}}append(e,t){this._list.push([e,t]);this._updateSteps()}delete(e){let t=0;while(t{if(e[0]t[0]){return 1}return 0}));this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return n.serializeUrlencoded(this._list)}}},26584:(e,t,r)=>{"use strict";const n=r(27607);const i=r(18278);const o=r(29349);const s=i.newObjectInRealm;const a=i.implSymbol;const u=i.ctorRegistrySymbol;const c="URLSearchParams";t.is=e=>i.isObject(e)&&i.hasOwn(e,a)&&e[a]instanceof d.implementation;t.isImpl=e=>i.isObject(e)&&e instanceof d.implementation;t.convert=(e,r,{context:n="The provided value"}={})=>{if(t.is(r)){return i.implForWrapper(r)}throw new e.TypeError(`${n} is not of type 'URLSearchParams'.`)};t.createDefaultIterator=(e,t,r)=>{const n=e[u];const o=n["URLSearchParams Iterator"];const s=Object.create(o);Object.defineProperty(s,i.iterInternalSymbol,{value:{target:t,kind:r,index:0},configurable:true});return s};function makeWrapper(e,t){let r;if(t!==undefined){r=t.prototype}if(!i.isObject(r)){r=e[u]["URLSearchParams"].prototype}return Object.create(r)}t.create=(e,r,n)=>{const i=makeWrapper(e);return t.setup(i,e,r,n)};t.createImpl=(e,r,n)=>{const o=t.create(e,r,n);return i.implForWrapper(o)};t._internalSetup=(e,t)=>{};t.setup=(e,r,n=[],o={})=>{o.wrapper=e;t._internalSetup(e,r);Object.defineProperty(e,a,{value:new d.implementation(r,n,o),configurable:true});e[a][i.wrapperSymbol]=e;if(d.init){d.init(e[a])}return e};t["new"]=(e,r)=>{const n=makeWrapper(e,r);t._internalSetup(n,e);Object.defineProperty(n,a,{value:Object.create(d.implementation.prototype),configurable:true});n[a][i.wrapperSymbol]=n;if(d.init){d.init(n[a])}return n[a]};const l=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>l.has(e)))){return}const u=i.initCtorRegistry(e);class URLSearchParams{constructor(){const r=[];{let t=arguments[0];if(t!==undefined){if(i.isObject(t)){if(t[Symbol.iterator]!==undefined){if(!i.isObject(t)){throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1"+" sequence"+" is not an iterable object.")}else{const r=[];const o=t;for(let t of o){if(!i.isObject(t)){throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1"+" sequence"+"'s element"+" is not an iterable object.")}else{const r=[];const i=t;for(let t of i){t=n["USVString"](t,{context:"Failed to construct 'URLSearchParams': parameter 1"+" sequence"+"'s element"+"'s element",globals:e});r.push(t)}t=r}r.push(t)}t=r}}else{if(!i.isObject(t)){throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1"+" record"+" is not an object.")}else{const r=Object.create(null);for(const i of Reflect.ownKeys(t)){const o=Object.getOwnPropertyDescriptor(t,i);if(o&&o.enumerable){let o=i;o=n["USVString"](o,{context:"Failed to construct 'URLSearchParams': parameter 1"+" record"+"'s key",globals:e});let s=t[i];s=n["USVString"](s,{context:"Failed to construct 'URLSearchParams': parameter 1"+" record"+"'s value",globals:e});r[o]=s}}t=r}}}else{t=n["USVString"](t,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:e})}}else{t=""}r.push(t)}return t.setup(Object.create(new.target.prototype),e,r)}append(r,o){const s=this!==null&&this!==undefined?this:e;if(!t.is(s)){throw new e.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.")}if(arguments.length<2){throw new e.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`)}const u=[];{let t=arguments[0];t=n["USVString"](t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:e});u.push(t)}{let t=arguments[1];t=n["USVString"](t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:e});u.push(t)}return i.tryWrapperForImpl(s[a].append(...u))}delete(r){const o=this!==null&&this!==undefined?this:e;if(!t.is(o)){throw new e.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.")}if(arguments.length<1){throw new e.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`)}const s=[];{let t=arguments[0];t=n["USVString"](t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:e});s.push(t)}return i.tryWrapperForImpl(o[a].delete(...s))}get(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.")}if(arguments.length<1){throw new e.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`)}const o=[];{let t=arguments[0];t=n["USVString"](t,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:e});o.push(t)}return i[a].get(...o)}getAll(r){const o=this!==null&&this!==undefined?this:e;if(!t.is(o)){throw new e.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.")}if(arguments.length<1){throw new e.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`)}const s=[];{let t=arguments[0];t=n["USVString"](t,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:e});s.push(t)}return i.tryWrapperForImpl(o[a].getAll(...s))}has(r){const i=this!==null&&this!==undefined?this:e;if(!t.is(i)){throw new e.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.")}if(arguments.length<1){throw new e.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`)}const o=[];{let t=arguments[0];t=n["USVString"](t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:e});o.push(t)}return i[a].has(...o)}set(r,o){const s=this!==null&&this!==undefined?this:e;if(!t.is(s)){throw new e.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.")}if(arguments.length<2){throw new e.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`)}const u=[];{let t=arguments[0];t=n["USVString"](t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:e});u.push(t)}{let t=arguments[1];t=n["USVString"](t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:e});u.push(t)}return i.tryWrapperForImpl(s[a].set(...u))}sort(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.")}return i.tryWrapperForImpl(r[a].sort())}toString(){const r=this!==null&&this!==undefined?this:e;if(!t.is(r)){throw new e.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.")}return r[a].toString()}keys(){if(!t.is(this)){throw new e.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.")}return t.createDefaultIterator(e,this,"key")}values(){if(!t.is(this)){throw new e.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.")}return t.createDefaultIterator(e,this,"value")}entries(){if(!t.is(this)){throw new e.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.")}return t.createDefaultIterator(e,this,"key+value")}forEach(r){if(!t.is(this)){throw new e.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.")}if(arguments.length<1){throw new e.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.")}r=o.convert(e,r,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const n=arguments[1];let s=Array.from(this[a]);let u=0;while(u=c){return s(e,{value:undefined,done:true})}const l=u[o];t.index=o+1;return s(e,i.iteratorResult(l.map(i.tryWrapperForImpl),n))}});Object.defineProperty(e,c,{configurable:true,writable:true,value:URLSearchParams})};const d=r(13866)},18908:e=>{"use strict";const t=new TextEncoder;const r=new TextDecoder("utf-8",{ignoreBOM:true});function utf8Encode(e){return t.encode(e)}function utf8DecodeWithoutBOM(e){return r.decode(e)}e.exports={utf8Encode:utf8Encode,utf8DecodeWithoutBOM:utf8DecodeWithoutBOM}},54827:e=>{"use strict";function isASCIIDigit(e){return e>=48&&e<=57}function isASCIIAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}function isASCIIAlphanumeric(e){return isASCIIAlpha(e)||isASCIIDigit(e)}function isASCIIHex(e){return isASCIIDigit(e)||e>=65&&e<=70||e>=97&&e<=102}e.exports={isASCIIDigit:isASCIIDigit,isASCIIAlpha:isASCIIAlpha,isASCIIAlphanumeric:isASCIIAlphanumeric,isASCIIHex:isASCIIHex}},12593:(e,t,r)=>{"use strict";const{isASCIIHex:n}=r(54827);const{utf8Encode:i}=r(18908);function p(e){return e.codePointAt(0)}function percentEncode(e){let t=e.toString(16).toUpperCase();if(t.length===1){t=`0${t}`}return`%${t}`}function percentDecodeBytes(e){const t=new Uint8Array(e.byteLength);let r=0;for(let i=0;i126}const o=new Set([p(" "),p('"'),p("<"),p(">"),p("`")]);function isFragmentPercentEncode(e){return isC0ControlPercentEncode(e)||o.has(e)}const s=new Set([p(" "),p('"'),p("#"),p("<"),p(">")]);function isQueryPercentEncode(e){return isC0ControlPercentEncode(e)||s.has(e)}function isSpecialQueryPercentEncode(e){return isQueryPercentEncode(e)||e===p("'")}const a=new Set([p("?"),p("`"),p("{"),p("}")]);function isPathPercentEncode(e){return isQueryPercentEncode(e)||a.has(e)}const u=new Set([p("/"),p(":"),p(";"),p("="),p("@"),p("["),p("\\"),p("]"),p("^"),p("|")]);function isUserinfoPercentEncode(e){return isPathPercentEncode(e)||u.has(e)}const c=new Set([p("$"),p("%"),p("&"),p("+"),p(",")]);function isComponentPercentEncode(e){return isUserinfoPercentEncode(e)||c.has(e)}const l=new Set([p("!"),p("'"),p("("),p(")"),p("~")]);function isURLEncodedPercentEncode(e){return isComponentPercentEncode(e)||l.has(e)}function utf8PercentEncodeCodePointInternal(e,t){const r=i(e);let n="";for(const e of r){if(!t(e)){n+=String.fromCharCode(e)}else{n+=percentEncode(e)}}return n}function utf8PercentEncodeCodePoint(e,t){return utf8PercentEncodeCodePointInternal(String.fromCodePoint(e),t)}function utf8PercentEncodeString(e,t,r=false){let n="";for(const i of e){if(r&&i===" "){n+="+"}else{n+=utf8PercentEncodeCodePointInternal(i,t)}}return n}e.exports={isC0ControlPercentEncode:isC0ControlPercentEncode,isFragmentPercentEncode:isFragmentPercentEncode,isQueryPercentEncode:isQueryPercentEncode,isSpecialQueryPercentEncode:isSpecialQueryPercentEncode,isPathPercentEncode:isPathPercentEncode,isUserinfoPercentEncode:isUserinfoPercentEncode,isURLEncodedPercentEncode:isURLEncodedPercentEncode,percentDecodeString:percentDecodeString,percentDecodeBytes:percentDecodeBytes,utf8PercentEncodeString:utf8PercentEncodeString,utf8PercentEncodeCodePoint:utf8PercentEncodeCodePoint}},68530:(e,t,r)=>{"use strict";const n=r(57201);const i=r(54827);const{utf8DecodeWithoutBOM:o}=r(18908);const{percentDecodeString:s,utf8PercentEncodeCodePoint:a,utf8PercentEncodeString:u,isC0ControlPercentEncode:c,isFragmentPercentEncode:l,isQueryPercentEncode:d,isSpecialQueryPercentEncode:h,isPathPercentEncode:m,isUserinfoPercentEncode:g}=r(12593);function p(e){return e.codePointAt(0)}const y={ftp:21,file:null,http:80,https:443,ws:80,wss:443};const v=Symbol("failure");function countSymbols(e){return[...e].length}function at(e,t){const r=e[t];return isNaN(r)?undefined:String.fromCodePoint(r)}function isSingleDot(e){return e==="."||e.toLowerCase()==="%2e"}function isDoubleDot(e){e=e.toLowerCase();return e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"}function isWindowsDriveLetterCodePoints(e,t){return i.isASCIIAlpha(e)&&(t===p(":")||t===p("|"))}function isWindowsDriveLetterString(e){return e.length===2&&i.isASCIIAlpha(e.codePointAt(0))&&(e[1]===":"||e[1]==="|")}function isNormalizedWindowsDriveLetterString(e){return e.length===2&&i.isASCIIAlpha(e.codePointAt(0))&&e[1]===":"}function containsForbiddenHostCodePoint(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1}function containsForbiddenHostCodePointExcludingPercent(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1}function isSpecialScheme(e){return y[e]!==undefined}function isSpecial(e){return isSpecialScheme(e.scheme)}function isNotSpecial(e){return!isSpecialScheme(e.scheme)}function defaultPort(e){return y[e]}function parseIPv4Number(e){if(e===""){return v}let t=10;if(e.length>=2&&e.charAt(0)==="0"&&e.charAt(1).toLowerCase()==="x"){e=e.substring(2);t=16}else if(e.length>=2&&e.charAt(0)==="0"){e=e.substring(1);t=8}if(e===""){return 0}let r=/[^0-7]/u;if(t===10){r=/[^0-9]/u}if(t===16){r=/[^0-9A-Fa-f]/u}if(r.test(e)){return v}return parseInt(e,t)}function parseIPv4(e){const t=e.split(".");if(t[t.length-1]===""){if(t.length>1){t.pop()}}if(t.length>4){return v}const r=[];for(const e of t){const t=parseIPv4Number(e);if(t===v){return v}r.push(t)}for(let e=0;e255){return v}}if(r[r.length-1]>=256**(5-r.length)){return v}let n=r.pop();let i=0;for(const e of r){n+=e*256**(3-i);++i}return n}function serializeIPv4(e){let t="";let r=e;for(let e=1;e<=4;++e){t=String(r%256)+t;if(e!==4){t=`.${t}`}r=Math.floor(r/256)}return t}function parseIPv6(e){const t=[0,0,0,0,0,0,0,0];let r=0;let n=null;let o=0;e=Array.from(e,(e=>e.codePointAt(0)));if(e[o]===p(":")){if(e[o+1]!==p(":")){return v}o+=2;++r;n=r}while(o6){return v}let n=0;while(e[o]!==undefined){let s=null;if(n>0){if(e[o]===p(".")&&n<4){++o}else{return v}}if(!i.isASCIIDigit(e[o])){return v}while(i.isASCIIDigit(e[o])){const t=parseInt(at(e,o));if(s===null){s=t}else if(s===0){return v}else{s=s*10+t}if(s>255){return v}++o}t[r]=t[r]*256+s;++n;if(n===2||n===4){++r}}if(n!==4){return v}break}else if(e[o]===p(":")){++o;if(e[o]===undefined){return v}}else if(e[o]!==undefined){return v}t[r]=s;++r}if(n!==null){let e=r-n;r=7;while(r!==0&&e>0){const i=t[n+e-1];t[n+e-1]=t[r];t[r]=i;--r;--e}}else if(n===null&&r!==8){return v}return t}function serializeIPv6(e){let t="";const r=findLongestZeroSequence(e);let n=false;for(let i=0;i<=7;++i){if(n&&e[i]===0){continue}else if(n){n=false}if(r===i){const e=i===0?"::":":";t+=e;n=true;continue}t+=e[i].toString(16);if(i!==7){t+=":"}}return t}function parseHost(e,t=false){if(e[0]==="["){if(e[e.length-1]!=="]"){return v}return parseIPv6(e.substring(1,e.length-1))}if(t){return parseOpaqueHost(e)}const r=o(s(e));const n=domainToASCII(r);if(n===v){return v}if(containsForbiddenHostCodePoint(n)){return v}if(endsInANumber(n)){return parseIPv4(n)}return n}function endsInANumber(e){const t=e.split(".");if(t[t.length-1]===""){if(t.length===1){return false}t.pop()}const r=t[t.length-1];if(parseIPv4Number(r)!==v){return true}if(/^[0-9]+$/u.test(r)){return true}return false}function parseOpaqueHost(e){if(containsForbiddenHostCodePointExcludingPercent(e)){return v}return u(e,c)}function findLongestZeroSequence(e){let t=null;let r=1;let n=null;let i=0;for(let o=0;or){t=n;r=i}n=null;i=0}else{if(n===null){n=o}++i}}if(i>r){return n}return t}function serializeHost(e){if(typeof e==="number"){return serializeIPv4(e)}if(e instanceof Array){return`[${serializeIPv6(e)}]`}return e}function domainToASCII(e,t=false){const r=n.toASCII(e,{checkBidi:true,checkHyphens:false,checkJoiners:true,useSTD3ASCIIRules:t,verifyDNSLength:t});if(r===null||r===""){return v}return r}function trimControlChars(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/gu,"")}function trimTabAndNewline(e){return e.replace(/\u0009|\u000A|\u000D/gu,"")}function shortenPath(e){const{path:t}=e;if(t.length===0){return}if(e.scheme==="file"&&t.length===1&&isNormalizedWindowsDriveLetter(t[0])){return}t.pop()}function includesCredentials(e){return e.username!==""||e.password!==""}function cannotHaveAUsernamePasswordPort(e){return e.host===null||e.host===""||hasAnOpaquePath(e)||e.scheme==="file"}function hasAnOpaquePath(e){return typeof e.path==="string"}function isNormalizedWindowsDriveLetter(e){return/^[A-Za-z]:$/u.test(e)}function URLStateMachine(e,t,r,n,i){this.pointer=0;this.input=e;this.base=t||null;this.encodingOverride=r||"utf-8";this.stateOverride=i;this.url=n;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const e=trimControlChars(this.input);if(e!==this.input){this.parseError=true}this.input=e}const o=trimTabAndNewline(this.input);if(o!==this.input){this.parseError=true}this.input=o;this.state=i||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=Array.from(this.input,(e=>e.codePointAt(0)));for(;this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer];const t=isNaN(e)?undefined:String.fromCodePoint(e);const r=this[`parse ${this.state}`](e,t);if(!r){break}else if(r===v){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(e,t){if(i.isASCIIAlpha(e)){this.buffer+=t.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return v}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(e,t){if(i.isASCIIAlphanumeric(e)||e===p("+")||e===p("-")||e===p(".")){this.buffer+=t.toLowerCase()}else if(e===p(":")){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&this.url.host===""){return false}}this.url.scheme=this.buffer;if(this.stateOverride){if(this.url.port===defaultPort(this.url.scheme)){this.url.port=null}return false}this.buffer="";if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==p("/")||this.input[this.pointer+2]!==p("/")){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===p("/")){this.state="path or authority";++this.pointer}else{this.url.path="";this.state="opaque path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return v}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(e){if(this.base===null||hasAnOpaquePath(this.base)&&e!==p("#")){return v}else if(hasAnOpaquePath(this.base)&&e===p("#")){this.url.scheme=this.base.scheme;this.url.path=this.base.path;this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(e){if(e===p("/")&&this.input[this.pointer+1]===p("/")){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(e){if(e===p("/")){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(e){this.url.scheme=this.base.scheme;if(e===p("/")){this.state="relative slash"}else if(isSpecial(this.url)&&e===p("\\")){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;if(e===p("?")){this.url.query="";this.state="query"}else if(e===p("#")){this.url.fragment="";this.state="fragment"}else if(!isNaN(e)){this.url.query=null;this.url.path.pop();this.state="path";--this.pointer}}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(e){if(isSpecial(this.url)&&(e===p("/")||e===p("\\"))){if(e===p("\\")){this.parseError=true}this.state="special authority ignore slashes"}else if(e===p("/")){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(e){if(e===p("/")&&this.input[this.pointer+1]===p("/")){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(e){if(e!==p("/")&&e!==p("\\")){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(e,t){if(e===p("@")){this.parseError=true;if(this.atFlag){this.buffer=`%40${this.buffer}`}this.atFlag=true;const e=countSymbols(this.buffer);for(let t=0;t2**16-1){this.parseError=true;return v}this.url.port=e===defaultPort(this.url.scheme)?null:e;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return v}return true};const b=new Set([p("/"),p("\\"),p("?"),p("#")]);function startsWithWindowsDriveLetter(e,t){const r=e.length-t;return r>=2&&isWindowsDriveLetterCodePoints(e[t],e[t+1])&&(r===2||b.has(e[t+2]))}URLStateMachine.prototype["parse file"]=function parseFile(e){this.url.scheme="file";this.url.host="";if(e===p("/")||e===p("\\")){if(e===p("\\")){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;if(e===p("?")){this.url.query="";this.state="query"}else if(e===p("#")){this.url.fragment="";this.state="fragment"}else if(!isNaN(e)){this.url.query=null;if(!startsWithWindowsDriveLetter(this.input,this.pointer)){shortenPath(this.url)}else{this.parseError=true;this.url.path=[]}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(e){if(e===p("/")||e===p("\\")){if(e===p("\\")){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(!startsWithWindowsDriveLetter(this.input,this.pointer)&&isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}this.url.host=this.base.host}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(e,t){if(isNaN(e)||e===p("/")||e===p("\\")||e===p("?")||e===p("#")){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let e=parseHost(this.buffer,isNotSpecial(this.url));if(e===v){return v}if(e==="localhost"){e=""}this.url.host=e;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=t}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(e){if(isSpecial(this.url)){if(e===p("\\")){this.parseError=true}this.state="path";if(e!==p("/")&&e!==p("\\")){--this.pointer}}else if(!this.stateOverride&&e===p("?")){this.url.query="";this.state="query"}else if(!this.stateOverride&&e===p("#")){this.url.fragment="";this.state="fragment"}else if(e!==undefined){this.state="path";if(e!==p("/")){--this.pointer}}else if(this.stateOverride&&this.url.host===null){this.url.path.push("")}return true};URLStateMachine.prototype["parse path"]=function parsePath(e){if(isNaN(e)||e===p("/")||isSpecial(this.url)&&e===p("\\")||!this.stateOverride&&(e===p("?")||e===p("#"))){if(isSpecial(this.url)&&e===p("\\")){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(e!==p("/")&&!(isSpecial(this.url)&&e===p("\\"))){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&e!==p("/")&&!(isSpecial(this.url)&&e===p("\\"))){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){this.buffer=`${this.buffer[0]}:`}this.url.path.push(this.buffer)}this.buffer="";if(e===p("?")){this.url.query="";this.state="query"}if(e===p("#")){this.url.fragment="";this.state="fragment"}}else{if(e===p("%")&&(!i.isASCIIHex(this.input[this.pointer+1])||!i.isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=a(e,m)}return true};URLStateMachine.prototype["parse opaque path"]=function parseOpaquePath(e){if(e===p("?")){this.url.query="";this.state="query"}else if(e===p("#")){this.url.fragment="";this.state="fragment"}else{if(!isNaN(e)&&e!==p("%")){this.parseError=true}if(e===p("%")&&(!i.isASCIIHex(this.input[this.pointer+1])||!i.isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(e)){this.url.path+=a(e,c)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(e,t){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}if(!this.stateOverride&&e===p("#")||isNaN(e)){const t=isSpecial(this.url)?h:d;this.url.query+=u(this.buffer,t);this.buffer="";if(e===p("#")){this.url.fragment="";this.state="fragment"}}else if(!isNaN(e)){if(e===p("%")&&(!i.isASCIIHex(this.input[this.pointer+1])||!i.isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=t}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(e){if(!isNaN(e)){if(e===p("%")&&(!i.isASCIIHex(this.input[this.pointer+1])||!i.isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=a(e,l)}return true};function serializeURL(e,t){let r=`${e.scheme}:`;if(e.host!==null){r+="//";if(e.username!==""||e.password!==""){r+=e.username;if(e.password!==""){r+=`:${e.password}`}r+="@"}r+=serializeHost(e.host);if(e.port!==null){r+=`:${e.port}`}}if(e.host===null&&!hasAnOpaquePath(e)&&e.path.length>1&&e.path[0]===""){r+="/."}r+=serializePath(e);if(e.query!==null){r+=`?${e.query}`}if(!t&&e.fragment!==null){r+=`#${e.fragment}`}return r}function serializeOrigin(e){let t=`${e.scheme}://`;t+=serializeHost(e.host);if(e.port!==null){t+=`:${e.port}`}return t}function serializePath(e){if(hasAnOpaquePath(e)){return e.path}let t="";for(const r of e.path){t+=`/${r}`}return t}e.exports.serializeURL=serializeURL;e.exports.serializePath=serializePath;e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(serializePath(t)))}catch(e){return"null"}case"ftp":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:t.scheme,host:t.host,port:t.port});case"file":return"null";default:return"null"}};e.exports.basicURLParse=function(e,t){if(t===undefined){t={}}const r=new URLStateMachine(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);if(r.failure){return null}return r.url};e.exports.setTheUsername=function(e,t){e.username=u(t,g)};e.exports.setThePassword=function(e,t){e.password=u(t,g)};e.exports.serializeHost=serializeHost;e.exports.cannotHaveAUsernamePasswordPort=cannotHaveAUsernamePasswordPort;e.exports.hasAnOpaquePath=hasAnOpaquePath;e.exports.serializeInteger=function(e){return String(e)};e.exports.parseURL=function(t,r){if(r===undefined){r={}}return e.exports.basicURLParse(t,{baseURL:r.baseURL,encodingOverride:r.encodingOverride})}},60106:(e,t,r)=>{"use strict";const{utf8Encode:n,utf8DecodeWithoutBOM:i}=r(18908);const{percentDecodeBytes:o,utf8PercentEncodeString:s,isURLEncodedPercentEncode:a}=r(12593);function p(e){return e.codePointAt(0)}function parseUrlencoded(e){const t=strictlySplitByteSequence(e,p("&"));const r=[];for(const e of t){if(e.length===0){continue}let t,n;const s=e.indexOf(p("="));if(s>=0){t=e.slice(0,s);n=e.slice(s+1)}else{t=e;n=new Uint8Array(0)}t=replaceByteInByteSequence(t,43,32);n=replaceByteInByteSequence(n,43,32);const a=i(o(t));const u=i(o(n));r.push([a,u])}return r}function parseUrlencodedString(e){return parseUrlencoded(n(e))}function serializeUrlencoded(e,t=undefined){let r="utf-8";if(t!==undefined){r=t}let n="";for(const[t,i]of e.entries()){const e=s(i[0],a,true);let o=i[1];if(i.length>2&&i[2]!==undefined){if(i[2]==="hidden"&&e==="_charset_"){o=r}else if(i[2]==="file"){o=o.name}}o=s(o,a,true);if(t!==0){n+="&"}n+=`${e}=${o}`}return n}function strictlySplitByteSequence(e,t){const r=[];let n=0;let i=e.indexOf(t);while(i>=0){r.push(e.slice(n,i));n=i+1;i=e.indexOf(t,n)}if(n!==e.length){r.push(e.slice(n))}return r}function replaceByteInByteSequence(e,t,r){let n=e.indexOf(t);while(n>=0){e[n]=r;n=e.indexOf(t,n+1)}return e}e.exports={parseUrlencodedString:parseUrlencodedString,serializeUrlencoded:serializeUrlencoded}},18278:(e,t)=>{"use strict";function isObject(e){return typeof e==="object"&&e!==null||typeof e==="function"}const r=Function.prototype.call.bind(Object.prototype.hasOwnProperty);function define(e,t){for(const r of Reflect.ownKeys(t)){const n=Reflect.getOwnPropertyDescriptor(t,r);if(n&&!Reflect.defineProperty(e,r,n)){throw new TypeError(`Cannot redefine property: ${String(r)}`)}}}function newObjectInRealm(e,t){const r=initCtorRegistry(e);return Object.defineProperties(Object.create(r["%Object.prototype%"]),Object.getOwnPropertyDescriptors(t))}const n=Symbol("wrapper");const i=Symbol("impl");const o=Symbol("SameObject caches");const s=Symbol.for("[webidl2js] constructor registry");const a=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);function initCtorRegistry(e){if(r(e,s)){return e[s]}const t=Object.create(null);t["%Object.prototype%"]=e.Object.prototype;t["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new e.Array)[Symbol.iterator]()));try{t["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(e.eval("(async function* () {})").prototype))}catch{t["%AsyncIteratorPrototype%"]=a}e[s]=t;return t}function getSameObject(e,t,r){if(!e[o]){e[o]=Object.create(null)}if(t in e[o]){return e[o][t]}e[o][t]=r();return e[o][t]}function wrapperForImpl(e){return e?e[n]:null}function implForWrapper(e){return e?e[i]:null}function tryWrapperForImpl(e){const t=wrapperForImpl(e);return t?t:e}function tryImplForWrapper(e){const t=implForWrapper(e);return t?t:e}const u=Symbol("internal");function isArrayIndexPropName(e){if(typeof e!=="string"){return false}const t=e>>>0;if(t===2**32-1){return false}const r=`${t}`;if(e!==r){return false}return true}const c=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;function isArrayBuffer(e){try{c.call(e);return true}catch(e){return false}}function iteratorResult([e,t],r){let n;switch(r){case"key":n=e;break;case"value":n=t;break;case"key+value":n=[e,t];break}return{value:n,done:false}}const l=Symbol("supports property index");const d=Symbol("supported property indices");const h=Symbol("supports property name");const m=Symbol("supported property names");const g=Symbol("indexed property get");const y=Symbol("indexed property set new");const v=Symbol("indexed property set existing");const b=Symbol("named property get");const _=Symbol("named property set new");const E=Symbol("named property set existing");const k=Symbol("named property delete");const x=Symbol("async iterator get the next iteration result");const C=Symbol("async iterator return steps");const O=Symbol("async iterator initialization steps");const D=Symbol("async iterator end of iteration");e.exports=t={isObject:isObject,hasOwn:r,define:define,newObjectInRealm:newObjectInRealm,wrapperSymbol:n,implSymbol:i,getSameObject:getSameObject,ctorRegistrySymbol:s,initCtorRegistry:initCtorRegistry,wrapperForImpl:wrapperForImpl,implForWrapper:implForWrapper,tryWrapperForImpl:tryWrapperForImpl,tryImplForWrapper:tryImplForWrapper,iterInternalSymbol:u,isArrayBuffer:isArrayBuffer,isArrayIndexPropName:isArrayIndexPropName,supportsPropertyIndex:l,supportedPropertyIndices:d,supportsPropertyName:h,supportedPropertyNames:m,indexedGet:g,indexedSetNew:y,indexedSetExisting:v,namedGet:b,namedSetNew:_,namedSetExisting:E,namedDelete:k,asyncIteratorNext:x,asyncIteratorReturn:C,asyncIteratorInit:O,asyncIteratorEOI:D,iteratorResult:iteratorResult}},26301:(e,t,r)=>{"use strict";const n=r(12418);const i=r(26584);t.URL=n;t.URLSearchParams=i},52165:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r{module.exports=eval("require")("bson-ext")},64923:module=>{module.exports=eval("require")("kerberos")},5046:module=>{module.exports=eval("require")("mongodb-client-encryption")},38682:module=>{module.exports=eval("require")("snappy")},56271:module=>{module.exports=eval("require")("snappy/package.json")},39491:e=>{"use strict";e.exports=require("assert")},50852:e=>{"use strict";e.exports=require("async_hooks")},14300:e=>{"use strict";e.exports=require("buffer")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},13685:e=>{"use strict";e.exports=require("http")},95687:e=>{"use strict";e.exports=require("https")},41808:e=>{"use strict";e.exports=require("net")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},85477:e=>{"use strict";e.exports=require("punycode")},63477:e=>{"use strict";e.exports=require("querystring")},12781:e=>{"use strict";e.exports=require("stream")},24404:e=>{"use strict";e.exports=require("tls")},76224:e=>{"use strict";e.exports=require("tty")},57310:e=>{"use strict";e.exports=require("url")},73837:e=>{"use strict";e.exports=require("util")},59796:e=>{"use strict";e.exports=require("zlib")},57323:(e,t,r)=>{"use strict";e.exports=r(87606)},22886:(e,t,r)=>{"use strict";e.exports=r(79203)},76723:(e,t,r)=>{"use strict";var n=r(81080);var i=r(8561);e.exports=function ToInteger(e){var t=i(e);return n(t)}},91656:(e,t,r)=>{"use strict";var n=r(93369);var i=r(76723);e.exports=function ToLength(e){var t=i(e);if(t<=0){return 0}if(t>n){return n}return t}},8561:(e,t,r)=>{"use strict";var n=r(84512);var i=n("%TypeError%");var o=n("%Number%");var s=n("%RegExp%");var a=n("%parseInt%");var u=r(43928);var c=r(14716);var l=r(20657);var d=u("String.prototype.slice");var h=c(/^0b[01]+$/i);var m=c(/^0o[0-7]+$/i);var g=c(/^[-+]0x[0-9a-f]+$/i);var y=["…","​","￾"].join("");var v=new s("["+y+"]","g");var b=c(v);var _=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join("");var E=new RegExp("(^["+_+"]+)|(["+_+"]+$)","g");var k=u("String.prototype.replace");var $trim=function(e){return k(e,E,"")};var x=r(84418);e.exports=function ToNumber(e){var t=l(e)?e:x(e,o);if(typeof t==="symbol"){throw new i("Cannot convert a Symbol value to a number")}if(typeof t==="string"){if(h(t)){return ToNumber(a(d(t,2),2))}else if(m(t)){return ToNumber(a(d(t,2),8))}else if(b(t)||g(t)){return NaN}var r=$trim(t);if(r!==t){return ToNumber(r)}}return o(t)}},13859:(e,t,r)=>{"use strict";var n=r(84512);var i=n("%Object%");var o=r(22886);e.exports=function ToObject(e){o(e);return i(e)}},84418:(e,t,r)=>{"use strict";var n=r(19912);e.exports=function ToPrimitive(e){if(arguments.length>1){return n(e,arguments[1])}return n(e)}},79203:(e,t,r)=>{"use strict";var n=r(84512);var i=n("%TypeError%");e.exports=function CheckObjectCoercible(e,t){if(e==null){throw new i(t||"Cannot call method on "+e)}return e}},81080:(e,t,r)=>{"use strict";var n=r(19915);var i=r(49655);var o=r(31056);var s=r(99134);var a=r(88665);var u=r(57779);e.exports=function ToInteger(e){var t=o(e);if(s(t)){return 0}if(t===0||!a(t)){return t}return u(t)*i(n(t))}},31056:(e,t,r)=>{"use strict";var n=r(94184);e.exports=function ToNumber(e){var t=n(e,Number);if(typeof t!=="string"){return+t}var r=t.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");if(/^0[ob]|^[+-]0x/.test(r)){return NaN}return+r}},94184:(e,t,r)=>{"use strict";e.exports=r(41227)},19915:(e,t,r)=>{"use strict";var n=r(84512);var i=n("%Math.abs%");e.exports=function abs(e){return i(e)}},49655:e=>{"use strict";var t=Math.floor;e.exports=function floor(e){return t(e)}},88665:e=>{"use strict";var t=Number.isNaN||function(e){return e!==e};e.exports=Number.isFinite||function(e){return typeof e==="number"&&!t(e)&&e!==Infinity&&e!==-Infinity}},99134:e=>{"use strict";e.exports=Number.isNaN||function isNaN(e){return e!==e}},20657:e=>{"use strict";e.exports=function isPrimitive(e){return e===null||typeof e!=="function"&&typeof e!=="object"}},93369:(e,t,r)=>{"use strict";var n=r(84512);var i=n("%Math%");var o=n("%Number%");e.exports=o.MAX_SAFE_INTEGER||i.pow(2,53)-1},14716:(e,t,r)=>{"use strict";var n=r(84512);var i=n("RegExp.prototype.test");var o=r(80595);e.exports=function regexTester(e){return o(i,e)}},57779:e=>{"use strict";e.exports=function sign(e){return e>=0?1:-1}},894:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},96273:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},6680:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},83932:e=>{"use strict";e.exports=JSON.parse('{"$id":"afterRequest.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["lastAccess","eTag","hitCount"],"properties":{"expires":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"lastAccess":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"eTag":{"type":"string"},"hitCount":{"type":"integer"},"comment":{"type":"string"}}}')},36136:e=>{"use strict";e.exports=JSON.parse('{"$id":"beforeRequest.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["lastAccess","eTag","hitCount"],"properties":{"expires":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"lastAccess":{"type":"string","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))?"},"eTag":{"type":"string"},"hitCount":{"type":"integer"},"comment":{"type":"string"}}}')},805:e=>{"use strict";e.exports=JSON.parse('{"$id":"browser.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"comment":{"type":"string"}}}')},51632:e=>{"use strict";e.exports=JSON.parse('{"$id":"cache.json#","$schema":"http://json-schema.org/draft-06/schema#","properties":{"beforeRequest":{"oneOf":[{"type":"null"},{"$ref":"beforeRequest.json#"}]},"afterRequest":{"oneOf":[{"type":"null"},{"$ref":"afterRequest.json#"}]},"comment":{"type":"string"}}}')},61567:e=>{"use strict";e.exports=JSON.parse('{"$id":"content.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["size","mimeType"],"properties":{"size":{"type":"integer"},"compression":{"type":"integer"},"mimeType":{"type":"string"},"text":{"type":"string"},"encoding":{"type":"string"},"comment":{"type":"string"}}}')},25725:e=>{"use strict";e.exports=JSON.parse('{"$id":"cookie.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"path":{"type":"string"},"domain":{"type":"string"},"expires":{"type":["string","null"],"format":"date-time"},"httpOnly":{"type":"boolean"},"secure":{"type":"boolean"},"comment":{"type":"string"}}}')},47218:e=>{"use strict";e.exports=JSON.parse('{"$id":"creator.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"},"comment":{"type":"string"}}}')},74560:e=>{"use strict";e.exports=JSON.parse('{"$id":"entry.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["startedDateTime","time","request","response","cache","timings"],"properties":{"pageref":{"type":"string"},"startedDateTime":{"type":"string","format":"date-time","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))"},"time":{"type":"number","min":0},"request":{"$ref":"request.json#"},"response":{"$ref":"response.json#"},"cache":{"$ref":"cache.json#"},"timings":{"$ref":"timings.json#"},"serverIPAddress":{"type":"string","oneOf":[{"format":"ipv4"},{"format":"ipv6"}]},"connection":{"type":"string"},"comment":{"type":"string"}}}')},75579:e=>{"use strict";e.exports=JSON.parse('{"$id":"har.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["log"],"properties":{"log":{"$ref":"log.json#"}}}')},75147:e=>{"use strict";e.exports=JSON.parse('{"$id":"header.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},53013:e=>{"use strict";e.exports=JSON.parse('{"$id":"log.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["version","creator","entries"],"properties":{"version":{"type":"string"},"creator":{"$ref":"creator.json#"},"browser":{"$ref":"browser.json#"},"pages":{"type":"array","items":{"$ref":"page.json#"}},"entries":{"type":"array","items":{"$ref":"entry.json#"}},"comment":{"type":"string"}}}')},34777:e=>{"use strict";e.exports=JSON.parse('{"$id":"page.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["startedDateTime","id","title","pageTimings"],"properties":{"startedDateTime":{"type":"string","format":"date-time","pattern":"^(\\\\d{4})(-)?(\\\\d\\\\d)(-)?(\\\\d\\\\d)(T)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(:)?(\\\\d\\\\d)(\\\\.\\\\d+)?(Z|([+-])(\\\\d\\\\d)(:)?(\\\\d\\\\d))"},"id":{"type":"string","unique":true},"title":{"type":"string"},"pageTimings":{"$ref":"pageTimings.json#"},"comment":{"type":"string"}}}')},5538:e=>{"use strict";e.exports=JSON.parse('{"$id":"pageTimings.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","properties":{"onContentLoad":{"type":"number","min":-1},"onLoad":{"type":"number","min":-1},"comment":{"type":"string"}}}')},12096:e=>{"use strict";e.exports=JSON.parse('{"$id":"postData.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","optional":true,"required":["mimeType"],"properties":{"mimeType":{"type":"string"},"text":{"type":"string"},"params":{"type":"array","required":["name"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"fileName":{"type":"string"},"contentType":{"type":"string"},"comment":{"type":"string"}}},"comment":{"type":"string"}}}')},21251:e=>{"use strict";e.exports=JSON.parse('{"$id":"query.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["name","value"],"properties":{"name":{"type":"string"},"value":{"type":"string"},"comment":{"type":"string"}}}')},99646:e=>{"use strict";e.exports=JSON.parse('{"$id":"request.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["method","url","httpVersion","cookies","headers","queryString","headersSize","bodySize"],"properties":{"method":{"type":"string"},"url":{"type":"string","format":"uri"},"httpVersion":{"type":"string"},"cookies":{"type":"array","items":{"$ref":"cookie.json#"}},"headers":{"type":"array","items":{"$ref":"header.json#"}},"queryString":{"type":"array","items":{"$ref":"query.json#"}},"postData":{"$ref":"postData.json#"},"headersSize":{"type":"integer"},"bodySize":{"type":"integer"},"comment":{"type":"string"}}}')},9103:e=>{"use strict";e.exports=JSON.parse('{"$id":"response.json#","$schema":"http://json-schema.org/draft-06/schema#","type":"object","required":["status","statusText","httpVersion","cookies","headers","content","redirectURL","headersSize","bodySize"],"properties":{"status":{"type":"integer"},"statusText":{"type":"string"},"httpVersion":{"type":"string"},"cookies":{"type":"array","items":{"$ref":"cookie.json#"}},"headers":{"type":"array","items":{"$ref":"header.json#"}},"content":{"$ref":"content.json#"},"redirectURL":{"type":"string"},"headersSize":{"type":"integer"},"bodySize":{"type":"integer"},"comment":{"type":"string"}}}')},22007:e=>{"use strict";e.exports=JSON.parse('{"$id":"timings.json#","$schema":"http://json-schema.org/draft-06/schema#","required":["send","wait","receive"],"properties":{"dns":{"type":"number","min":-1},"connect":{"type":"number","min":-1},"blocked":{"type":"number","min":-1},"send":{"type":"number","min":-1},"wait":{"type":"number","min":-1},"receive":{"type":"number","min":-1},"ssl":{"type":"number","min":-1},"comment":{"type":"string"}}}')},53765:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana"},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana"},"image/avcs":{"source":"iana"},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},55799:e=>{"use strict";e.exports=JSON.parse('{"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"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/dash+xml":["mpd"],"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/font-woff":[],"application/font-woff2":[],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"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","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"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","eps","ps"],"application/prs.cww":["cww"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"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","smil"],"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","teicorpus"],"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","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"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.apple.pkpass":["pkpass"],"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","c4d","c4f","c4p","c4u"],"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","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"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","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"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","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"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","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"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","ktr"],"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","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"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","xlm","xla","xlc","xlt","xlw"],"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-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"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","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"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","nitf"],"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","pqa","oprc"],"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","qxt","qwd","qwt","qxl","qxb"],"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","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"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","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"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","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"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","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"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","vst","vss","vsw"],"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","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"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":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"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-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"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-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"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-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"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","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"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/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-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"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/ktx":["ktx"],"image/png":["png"],"image/prs.btif":["btif"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"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","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"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","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"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","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/prs.lines.tag":["dsc"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"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/vtt":["vtt"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"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","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"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"]}')},3704:e=>{"use strict";e.exports=JSON.parse('["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac","org.ac","ad","nom.ad","ae","co.ae","net.ae","org.ae","sch.ae","ac.ae","gov.ae","mil.ae","aero","accident-investigation.aero","accident-prevention.aero","aerobatic.aero","aeroclub.aero","aerodrome.aero","agents.aero","aircraft.aero","airline.aero","airport.aero","air-surveillance.aero","airtraffic.aero","air-traffic-control.aero","ambulance.aero","amusement.aero","association.aero","author.aero","ballooning.aero","broker.aero","caa.aero","cargo.aero","catering.aero","certification.aero","championship.aero","charter.aero","civilaviation.aero","club.aero","conference.aero","consultant.aero","consulting.aero","control.aero","council.aero","crew.aero","design.aero","dgca.aero","educator.aero","emergency.aero","engine.aero","engineer.aero","entertainment.aero","equipment.aero","exchange.aero","express.aero","federation.aero","flight.aero","freight.aero","fuel.aero","gliding.aero","government.aero","groundhandling.aero","group.aero","hanggliding.aero","homebuilt.aero","insurance.aero","journal.aero","journalist.aero","leasing.aero","logistics.aero","magazine.aero","maintenance.aero","media.aero","microlight.aero","modelling.aero","navigation.aero","parachuting.aero","paragliding.aero","passenger-association.aero","pilot.aero","press.aero","production.aero","recreation.aero","repbody.aero","res.aero","research.aero","rotorcraft.aero","safety.aero","scientist.aero","services.aero","show.aero","skydiving.aero","software.aero","student.aero","trader.aero","trading.aero","trainer.aero","union.aero","workinggroup.aero","works.aero","af","gov.af","com.af","org.af","net.af","edu.af","ag","com.ag","org.ag","net.ag","co.ag","nom.ag","ai","off.ai","com.ai","net.ai","org.ai","al","com.al","edu.al","gov.al","mil.al","net.al","org.al","am","co.am","com.am","commune.am","net.am","org.am","ao","ed.ao","gv.ao","og.ao","co.ao","pb.ao","it.ao","aq","ar","com.ar","edu.ar","gob.ar","gov.ar","int.ar","mil.ar","musica.ar","net.ar","org.ar","tur.ar","arpa","e164.arpa","in-addr.arpa","ip6.arpa","iris.arpa","uri.arpa","urn.arpa","as","gov.as","asia","at","ac.at","co.at","gv.at","or.at","au","com.au","net.au","org.au","edu.au","gov.au","asn.au","id.au","info.au","conf.au","oz.au","act.au","nsw.au","nt.au","qld.au","sa.au","tas.au","vic.au","wa.au","act.edu.au","catholic.edu.au","nsw.edu.au","nt.edu.au","qld.edu.au","sa.edu.au","tas.edu.au","vic.edu.au","wa.edu.au","qld.gov.au","sa.gov.au","tas.gov.au","vic.gov.au","wa.gov.au","education.tas.edu.au","schools.nsw.edu.au","aw","com.aw","ax","az","com.az","net.az","int.az","gov.az","org.az","edu.az","info.az","pp.az","mil.az","name.az","pro.az","biz.az","ba","com.ba","edu.ba","gov.ba","mil.ba","net.ba","org.ba","bb","biz.bb","co.bb","com.bb","edu.bb","gov.bb","info.bb","net.bb","org.bb","store.bb","tv.bb","*.bd","be","ac.be","bf","gov.bf","bg","a.bg","b.bg","c.bg","d.bg","e.bg","f.bg","g.bg","h.bg","i.bg","j.bg","k.bg","l.bg","m.bg","n.bg","o.bg","p.bg","q.bg","r.bg","s.bg","t.bg","u.bg","v.bg","w.bg","x.bg","y.bg","z.bg","0.bg","1.bg","2.bg","3.bg","4.bg","5.bg","6.bg","7.bg","8.bg","9.bg","bh","com.bh","edu.bh","net.bh","org.bh","gov.bh","bi","co.bi","com.bi","edu.bi","or.bi","org.bi","biz","bj","asso.bj","barreau.bj","gouv.bj","bm","com.bm","edu.bm","gov.bm","net.bm","org.bm","bn","com.bn","edu.bn","gov.bn","net.bn","org.bn","bo","com.bo","edu.bo","gob.bo","int.bo","org.bo","net.bo","mil.bo","tv.bo","web.bo","academia.bo","agro.bo","arte.bo","blog.bo","bolivia.bo","ciencia.bo","cooperativa.bo","democracia.bo","deporte.bo","ecologia.bo","economia.bo","empresa.bo","indigena.bo","industria.bo","info.bo","medicina.bo","movimiento.bo","musica.bo","natural.bo","nombre.bo","noticias.bo","patria.bo","politica.bo","profesional.bo","plurinacional.bo","pueblo.bo","revista.bo","salud.bo","tecnologia.bo","tksat.bo","transporte.bo","wiki.bo","br","9guacu.br","abc.br","adm.br","adv.br","agr.br","aju.br","am.br","anani.br","aparecida.br","arq.br","art.br","ato.br","b.br","barueri.br","belem.br","bhz.br","bio.br","blog.br","bmd.br","boavista.br","bsb.br","campinagrande.br","campinas.br","caxias.br","cim.br","cng.br","cnt.br","com.br","contagem.br","coop.br","cri.br","cuiaba.br","curitiba.br","def.br","ecn.br","eco.br","edu.br","emp.br","eng.br","esp.br","etc.br","eti.br","far.br","feira.br","flog.br","floripa.br","fm.br","fnd.br","fortal.br","fot.br","foz.br","fst.br","g12.br","ggf.br","goiania.br","gov.br","ac.gov.br","al.gov.br","am.gov.br","ap.gov.br","ba.gov.br","ce.gov.br","df.gov.br","es.gov.br","go.gov.br","ma.gov.br","mg.gov.br","ms.gov.br","mt.gov.br","pa.gov.br","pb.gov.br","pe.gov.br","pi.gov.br","pr.gov.br","rj.gov.br","rn.gov.br","ro.gov.br","rr.gov.br","rs.gov.br","sc.gov.br","se.gov.br","sp.gov.br","to.gov.br","gru.br","imb.br","ind.br","inf.br","jab.br","jampa.br","jdf.br","joinville.br","jor.br","jus.br","leg.br","lel.br","londrina.br","macapa.br","maceio.br","manaus.br","maringa.br","mat.br","med.br","mil.br","morena.br","mp.br","mus.br","natal.br","net.br","niteroi.br","*.nom.br","not.br","ntr.br","odo.br","ong.br","org.br","osasco.br","palmas.br","poa.br","ppg.br","pro.br","psc.br","psi.br","pvh.br","qsl.br","radio.br","rec.br","recife.br","ribeirao.br","rio.br","riobranco.br","riopreto.br","salvador.br","sampa.br","santamaria.br","santoandre.br","saobernardo.br","saogonca.br","sjc.br","slg.br","slz.br","sorocaba.br","srv.br","taxi.br","tc.br","teo.br","the.br","tmp.br","trd.br","tur.br","tv.br","udi.br","vet.br","vix.br","vlog.br","wiki.br","zlg.br","bs","com.bs","net.bs","org.bs","edu.bs","gov.bs","bt","com.bt","edu.bt","gov.bt","net.bt","org.bt","bv","bw","co.bw","org.bw","by","gov.by","mil.by","com.by","of.by","bz","com.bz","net.bz","org.bz","edu.bz","gov.bz","ca","ab.ca","bc.ca","mb.ca","nb.ca","nf.ca","nl.ca","ns.ca","nt.ca","nu.ca","on.ca","pe.ca","qc.ca","sk.ca","yk.ca","gc.ca","cat","cc","cd","gov.cd","cf","cg","ch","ci","org.ci","or.ci","com.ci","co.ci","edu.ci","ed.ci","ac.ci","net.ci","go.ci","asso.ci","aéroport.ci","int.ci","presse.ci","md.ci","gouv.ci","*.ck","!www.ck","cl","aprendemas.cl","co.cl","gob.cl","gov.cl","mil.cl","cm","co.cm","com.cm","gov.cm","net.cm","cn","ac.cn","com.cn","edu.cn","gov.cn","net.cn","org.cn","mil.cn","公司.cn","网络.cn","網絡.cn","ah.cn","bj.cn","cq.cn","fj.cn","gd.cn","gs.cn","gz.cn","gx.cn","ha.cn","hb.cn","he.cn","hi.cn","hl.cn","hn.cn","jl.cn","js.cn","jx.cn","ln.cn","nm.cn","nx.cn","qh.cn","sc.cn","sd.cn","sh.cn","sn.cn","sx.cn","tj.cn","xj.cn","xz.cn","yn.cn","zj.cn","hk.cn","mo.cn","tw.cn","co","arts.co","com.co","edu.co","firm.co","gov.co","info.co","int.co","mil.co","net.co","nom.co","org.co","rec.co","web.co","com","coop","cr","ac.cr","co.cr","ed.cr","fi.cr","go.cr","or.cr","sa.cr","cu","com.cu","edu.cu","org.cu","net.cu","gov.cu","inf.cu","cv","cw","com.cw","edu.cw","net.cw","org.cw","cx","gov.cx","cy","ac.cy","biz.cy","com.cy","ekloges.cy","gov.cy","ltd.cy","name.cy","net.cy","org.cy","parliament.cy","press.cy","pro.cy","tm.cy","cz","de","dj","dk","dm","com.dm","net.dm","org.dm","edu.dm","gov.dm","do","art.do","com.do","edu.do","gob.do","gov.do","mil.do","net.do","org.do","sld.do","web.do","dz","com.dz","org.dz","net.dz","gov.dz","edu.dz","asso.dz","pol.dz","art.dz","ec","com.ec","info.ec","net.ec","fin.ec","k12.ec","med.ec","pro.ec","org.ec","edu.ec","gov.ec","gob.ec","mil.ec","edu","ee","edu.ee","gov.ee","riik.ee","lib.ee","med.ee","com.ee","pri.ee","aip.ee","org.ee","fie.ee","eg","com.eg","edu.eg","eun.eg","gov.eg","mil.eg","name.eg","net.eg","org.eg","sci.eg","*.er","es","com.es","nom.es","org.es","gob.es","edu.es","et","com.et","gov.et","org.et","edu.et","biz.et","name.et","info.et","net.et","eu","fi","aland.fi","fj","ac.fj","biz.fj","com.fj","gov.fj","info.fj","mil.fj","name.fj","net.fj","org.fj","pro.fj","*.fk","fm","fo","fr","asso.fr","com.fr","gouv.fr","nom.fr","prd.fr","tm.fr","aeroport.fr","avocat.fr","avoues.fr","cci.fr","chambagri.fr","chirurgiens-dentistes.fr","experts-comptables.fr","geometre-expert.fr","greta.fr","huissier-justice.fr","medecin.fr","notaires.fr","pharmacien.fr","port.fr","veterinaire.fr","ga","gb","gd","ge","com.ge","edu.ge","gov.ge","org.ge","mil.ge","net.ge","pvt.ge","gf","gg","co.gg","net.gg","org.gg","gh","com.gh","edu.gh","gov.gh","org.gh","mil.gh","gi","com.gi","ltd.gi","gov.gi","mod.gi","edu.gi","org.gi","gl","co.gl","com.gl","edu.gl","net.gl","org.gl","gm","gn","ac.gn","com.gn","edu.gn","gov.gn","org.gn","net.gn","gov","gp","com.gp","net.gp","mobi.gp","edu.gp","org.gp","asso.gp","gq","gr","com.gr","edu.gr","net.gr","org.gr","gov.gr","gs","gt","com.gt","edu.gt","gob.gt","ind.gt","mil.gt","net.gt","org.gt","gu","com.gu","edu.gu","gov.gu","guam.gu","info.gu","net.gu","org.gu","web.gu","gw","gy","co.gy","com.gy","edu.gy","gov.gy","net.gy","org.gy","hk","com.hk","edu.hk","gov.hk","idv.hk","net.hk","org.hk","公司.hk","教育.hk","敎育.hk","政府.hk","個人.hk","个人.hk","箇人.hk","網络.hk","网络.hk","组織.hk","網絡.hk","网絡.hk","组织.hk","組織.hk","組织.hk","hm","hn","com.hn","edu.hn","org.hn","net.hn","mil.hn","gob.hn","hr","iz.hr","from.hr","name.hr","com.hr","ht","com.ht","shop.ht","firm.ht","info.ht","adult.ht","net.ht","pro.ht","org.ht","med.ht","art.ht","coop.ht","pol.ht","asso.ht","edu.ht","rel.ht","gouv.ht","perso.ht","hu","co.hu","info.hu","org.hu","priv.hu","sport.hu","tm.hu","2000.hu","agrar.hu","bolt.hu","casino.hu","city.hu","erotica.hu","erotika.hu","film.hu","forum.hu","games.hu","hotel.hu","ingatlan.hu","jogasz.hu","konyvelo.hu","lakas.hu","media.hu","news.hu","reklam.hu","sex.hu","shop.hu","suli.hu","szex.hu","tozsde.hu","utazas.hu","video.hu","id","ac.id","biz.id","co.id","desa.id","go.id","mil.id","my.id","net.id","or.id","ponpes.id","sch.id","web.id","ie","gov.ie","il","ac.il","co.il","gov.il","idf.il","k12.il","muni.il","net.il","org.il","im","ac.im","co.im","com.im","ltd.co.im","net.im","org.im","plc.co.im","tt.im","tv.im","in","co.in","firm.in","net.in","org.in","gen.in","ind.in","nic.in","ac.in","edu.in","res.in","gov.in","mil.in","info","int","eu.int","io","com.io","iq","gov.iq","edu.iq","mil.iq","com.iq","org.iq","net.iq","ir","ac.ir","co.ir","gov.ir","id.ir","net.ir","org.ir","sch.ir","ایران.ir","ايران.ir","is","net.is","com.is","edu.is","gov.is","org.is","int.is","it","gov.it","edu.it","abr.it","abruzzo.it","aosta-valley.it","aostavalley.it","bas.it","basilicata.it","cal.it","calabria.it","cam.it","campania.it","emilia-romagna.it","emiliaromagna.it","emr.it","friuli-v-giulia.it","friuli-ve-giulia.it","friuli-vegiulia.it","friuli-venezia-giulia.it","friuli-veneziagiulia.it","friuli-vgiulia.it","friuliv-giulia.it","friulive-giulia.it","friulivegiulia.it","friulivenezia-giulia.it","friuliveneziagiulia.it","friulivgiulia.it","fvg.it","laz.it","lazio.it","lig.it","liguria.it","lom.it","lombardia.it","lombardy.it","lucania.it","mar.it","marche.it","mol.it","molise.it","piedmont.it","piemonte.it","pmn.it","pug.it","puglia.it","sar.it","sardegna.it","sardinia.it","sic.it","sicilia.it","sicily.it","taa.it","tos.it","toscana.it","trentin-sud-tirol.it","trentin-süd-tirol.it","trentin-sudtirol.it","trentin-südtirol.it","trentin-sued-tirol.it","trentin-suedtirol.it","trentino-a-adige.it","trentino-aadige.it","trentino-alto-adige.it","trentino-altoadige.it","trentino-s-tirol.it","trentino-stirol.it","trentino-sud-tirol.it","trentino-süd-tirol.it","trentino-sudtirol.it","trentino-südtirol.it","trentino-sued-tirol.it","trentino-suedtirol.it","trentino.it","trentinoa-adige.it","trentinoaadige.it","trentinoalto-adige.it","trentinoaltoadige.it","trentinos-tirol.it","trentinostirol.it","trentinosud-tirol.it","trentinosüd-tirol.it","trentinosudtirol.it","trentinosüdtirol.it","trentinosued-tirol.it","trentinosuedtirol.it","trentinsud-tirol.it","trentinsüd-tirol.it","trentinsudtirol.it","trentinsüdtirol.it","trentinsued-tirol.it","trentinsuedtirol.it","tuscany.it","umb.it","umbria.it","val-d-aosta.it","val-daosta.it","vald-aosta.it","valdaosta.it","valle-aosta.it","valle-d-aosta.it","valle-daosta.it","valleaosta.it","valled-aosta.it","valledaosta.it","vallee-aoste.it","vallée-aoste.it","vallee-d-aoste.it","vallée-d-aoste.it","valleeaoste.it","valléeaoste.it","valleedaoste.it","valléedaoste.it","vao.it","vda.it","ven.it","veneto.it","ag.it","agrigento.it","al.it","alessandria.it","alto-adige.it","altoadige.it","an.it","ancona.it","andria-barletta-trani.it","andria-trani-barletta.it","andriabarlettatrani.it","andriatranibarletta.it","ao.it","aosta.it","aoste.it","ap.it","aq.it","aquila.it","ar.it","arezzo.it","ascoli-piceno.it","ascolipiceno.it","asti.it","at.it","av.it","avellino.it","ba.it","balsan-sudtirol.it","balsan-südtirol.it","balsan-suedtirol.it","balsan.it","bari.it","barletta-trani-andria.it","barlettatraniandria.it","belluno.it","benevento.it","bergamo.it","bg.it","bi.it","biella.it","bl.it","bn.it","bo.it","bologna.it","bolzano-altoadige.it","bolzano.it","bozen-sudtirol.it","bozen-südtirol.it","bozen-suedtirol.it","bozen.it","br.it","brescia.it","brindisi.it","bs.it","bt.it","bulsan-sudtirol.it","bulsan-südtirol.it","bulsan-suedtirol.it","bulsan.it","bz.it","ca.it","cagliari.it","caltanissetta.it","campidano-medio.it","campidanomedio.it","campobasso.it","carbonia-iglesias.it","carboniaiglesias.it","carrara-massa.it","carraramassa.it","caserta.it","catania.it","catanzaro.it","cb.it","ce.it","cesena-forli.it","cesena-forlì.it","cesenaforli.it","cesenaforlì.it","ch.it","chieti.it","ci.it","cl.it","cn.it","co.it","como.it","cosenza.it","cr.it","cremona.it","crotone.it","cs.it","ct.it","cuneo.it","cz.it","dell-ogliastra.it","dellogliastra.it","en.it","enna.it","fc.it","fe.it","fermo.it","ferrara.it","fg.it","fi.it","firenze.it","florence.it","fm.it","foggia.it","forli-cesena.it","forlì-cesena.it","forlicesena.it","forlìcesena.it","fr.it","frosinone.it","ge.it","genoa.it","genova.it","go.it","gorizia.it","gr.it","grosseto.it","iglesias-carbonia.it","iglesiascarbonia.it","im.it","imperia.it","is.it","isernia.it","kr.it","la-spezia.it","laquila.it","laspezia.it","latina.it","lc.it","le.it","lecce.it","lecco.it","li.it","livorno.it","lo.it","lodi.it","lt.it","lu.it","lucca.it","macerata.it","mantova.it","massa-carrara.it","massacarrara.it","matera.it","mb.it","mc.it","me.it","medio-campidano.it","mediocampidano.it","messina.it","mi.it","milan.it","milano.it","mn.it","mo.it","modena.it","monza-brianza.it","monza-e-della-brianza.it","monza.it","monzabrianza.it","monzaebrianza.it","monzaedellabrianza.it","ms.it","mt.it","na.it","naples.it","napoli.it","no.it","novara.it","nu.it","nuoro.it","og.it","ogliastra.it","olbia-tempio.it","olbiatempio.it","or.it","oristano.it","ot.it","pa.it","padova.it","padua.it","palermo.it","parma.it","pavia.it","pc.it","pd.it","pe.it","perugia.it","pesaro-urbino.it","pesarourbino.it","pescara.it","pg.it","pi.it","piacenza.it","pisa.it","pistoia.it","pn.it","po.it","pordenone.it","potenza.it","pr.it","prato.it","pt.it","pu.it","pv.it","pz.it","ra.it","ragusa.it","ravenna.it","rc.it","re.it","reggio-calabria.it","reggio-emilia.it","reggiocalabria.it","reggioemilia.it","rg.it","ri.it","rieti.it","rimini.it","rm.it","rn.it","ro.it","roma.it","rome.it","rovigo.it","sa.it","salerno.it","sassari.it","savona.it","si.it","siena.it","siracusa.it","so.it","sondrio.it","sp.it","sr.it","ss.it","suedtirol.it","südtirol.it","sv.it","ta.it","taranto.it","te.it","tempio-olbia.it","tempioolbia.it","teramo.it","terni.it","tn.it","to.it","torino.it","tp.it","tr.it","trani-andria-barletta.it","trani-barletta-andria.it","traniandriabarletta.it","tranibarlettaandria.it","trapani.it","trento.it","treviso.it","trieste.it","ts.it","turin.it","tv.it","ud.it","udine.it","urbino-pesaro.it","urbinopesaro.it","va.it","varese.it","vb.it","vc.it","ve.it","venezia.it","venice.it","verbania.it","vercelli.it","verona.it","vi.it","vibo-valentia.it","vibovalentia.it","vicenza.it","viterbo.it","vr.it","vs.it","vt.it","vv.it","je","co.je","net.je","org.je","*.jm","jo","com.jo","org.jo","net.jo","edu.jo","sch.jo","gov.jo","mil.jo","name.jo","jobs","jp","ac.jp","ad.jp","co.jp","ed.jp","go.jp","gr.jp","lg.jp","ne.jp","or.jp","aichi.jp","akita.jp","aomori.jp","chiba.jp","ehime.jp","fukui.jp","fukuoka.jp","fukushima.jp","gifu.jp","gunma.jp","hiroshima.jp","hokkaido.jp","hyogo.jp","ibaraki.jp","ishikawa.jp","iwate.jp","kagawa.jp","kagoshima.jp","kanagawa.jp","kochi.jp","kumamoto.jp","kyoto.jp","mie.jp","miyagi.jp","miyazaki.jp","nagano.jp","nagasaki.jp","nara.jp","niigata.jp","oita.jp","okayama.jp","okinawa.jp","osaka.jp","saga.jp","saitama.jp","shiga.jp","shimane.jp","shizuoka.jp","tochigi.jp","tokushima.jp","tokyo.jp","tottori.jp","toyama.jp","wakayama.jp","yamagata.jp","yamaguchi.jp","yamanashi.jp","栃木.jp","愛知.jp","愛媛.jp","兵庫.jp","熊本.jp","茨城.jp","北海道.jp","千葉.jp","和歌山.jp","長崎.jp","長野.jp","新潟.jp","青森.jp","静岡.jp","東京.jp","石川.jp","埼玉.jp","三重.jp","京都.jp","佐賀.jp","大分.jp","大阪.jp","奈良.jp","宮城.jp","宮崎.jp","富山.jp","山口.jp","山形.jp","山梨.jp","岩手.jp","岐阜.jp","岡山.jp","島根.jp","広島.jp","徳島.jp","沖縄.jp","滋賀.jp","神奈川.jp","福井.jp","福岡.jp","福島.jp","秋田.jp","群馬.jp","香川.jp","高知.jp","鳥取.jp","鹿児島.jp","*.kawasaki.jp","*.kitakyushu.jp","*.kobe.jp","*.nagoya.jp","*.sapporo.jp","*.sendai.jp","*.yokohama.jp","!city.kawasaki.jp","!city.kitakyushu.jp","!city.kobe.jp","!city.nagoya.jp","!city.sapporo.jp","!city.sendai.jp","!city.yokohama.jp","aisai.aichi.jp","ama.aichi.jp","anjo.aichi.jp","asuke.aichi.jp","chiryu.aichi.jp","chita.aichi.jp","fuso.aichi.jp","gamagori.aichi.jp","handa.aichi.jp","hazu.aichi.jp","hekinan.aichi.jp","higashiura.aichi.jp","ichinomiya.aichi.jp","inazawa.aichi.jp","inuyama.aichi.jp","isshiki.aichi.jp","iwakura.aichi.jp","kanie.aichi.jp","kariya.aichi.jp","kasugai.aichi.jp","kira.aichi.jp","kiyosu.aichi.jp","komaki.aichi.jp","konan.aichi.jp","kota.aichi.jp","mihama.aichi.jp","miyoshi.aichi.jp","nishio.aichi.jp","nisshin.aichi.jp","obu.aichi.jp","oguchi.aichi.jp","oharu.aichi.jp","okazaki.aichi.jp","owariasahi.aichi.jp","seto.aichi.jp","shikatsu.aichi.jp","shinshiro.aichi.jp","shitara.aichi.jp","tahara.aichi.jp","takahama.aichi.jp","tobishima.aichi.jp","toei.aichi.jp","togo.aichi.jp","tokai.aichi.jp","tokoname.aichi.jp","toyoake.aichi.jp","toyohashi.aichi.jp","toyokawa.aichi.jp","toyone.aichi.jp","toyota.aichi.jp","tsushima.aichi.jp","yatomi.aichi.jp","akita.akita.jp","daisen.akita.jp","fujisato.akita.jp","gojome.akita.jp","hachirogata.akita.jp","happou.akita.jp","higashinaruse.akita.jp","honjo.akita.jp","honjyo.akita.jp","ikawa.akita.jp","kamikoani.akita.jp","kamioka.akita.jp","katagami.akita.jp","kazuno.akita.jp","kitaakita.akita.jp","kosaka.akita.jp","kyowa.akita.jp","misato.akita.jp","mitane.akita.jp","moriyoshi.akita.jp","nikaho.akita.jp","noshiro.akita.jp","odate.akita.jp","oga.akita.jp","ogata.akita.jp","semboku.akita.jp","yokote.akita.jp","yurihonjo.akita.jp","aomori.aomori.jp","gonohe.aomori.jp","hachinohe.aomori.jp","hashikami.aomori.jp","hiranai.aomori.jp","hirosaki.aomori.jp","itayanagi.aomori.jp","kuroishi.aomori.jp","misawa.aomori.jp","mutsu.aomori.jp","nakadomari.aomori.jp","noheji.aomori.jp","oirase.aomori.jp","owani.aomori.jp","rokunohe.aomori.jp","sannohe.aomori.jp","shichinohe.aomori.jp","shingo.aomori.jp","takko.aomori.jp","towada.aomori.jp","tsugaru.aomori.jp","tsuruta.aomori.jp","abiko.chiba.jp","asahi.chiba.jp","chonan.chiba.jp","chosei.chiba.jp","choshi.chiba.jp","chuo.chiba.jp","funabashi.chiba.jp","futtsu.chiba.jp","hanamigawa.chiba.jp","ichihara.chiba.jp","ichikawa.chiba.jp","ichinomiya.chiba.jp","inzai.chiba.jp","isumi.chiba.jp","kamagaya.chiba.jp","kamogawa.chiba.jp","kashiwa.chiba.jp","katori.chiba.jp","katsuura.chiba.jp","kimitsu.chiba.jp","kisarazu.chiba.jp","kozaki.chiba.jp","kujukuri.chiba.jp","kyonan.chiba.jp","matsudo.chiba.jp","midori.chiba.jp","mihama.chiba.jp","minamiboso.chiba.jp","mobara.chiba.jp","mutsuzawa.chiba.jp","nagara.chiba.jp","nagareyama.chiba.jp","narashino.chiba.jp","narita.chiba.jp","noda.chiba.jp","oamishirasato.chiba.jp","omigawa.chiba.jp","onjuku.chiba.jp","otaki.chiba.jp","sakae.chiba.jp","sakura.chiba.jp","shimofusa.chiba.jp","shirako.chiba.jp","shiroi.chiba.jp","shisui.chiba.jp","sodegaura.chiba.jp","sosa.chiba.jp","tako.chiba.jp","tateyama.chiba.jp","togane.chiba.jp","tohnosho.chiba.jp","tomisato.chiba.jp","urayasu.chiba.jp","yachimata.chiba.jp","yachiyo.chiba.jp","yokaichiba.chiba.jp","yokoshibahikari.chiba.jp","yotsukaido.chiba.jp","ainan.ehime.jp","honai.ehime.jp","ikata.ehime.jp","imabari.ehime.jp","iyo.ehime.jp","kamijima.ehime.jp","kihoku.ehime.jp","kumakogen.ehime.jp","masaki.ehime.jp","matsuno.ehime.jp","matsuyama.ehime.jp","namikata.ehime.jp","niihama.ehime.jp","ozu.ehime.jp","saijo.ehime.jp","seiyo.ehime.jp","shikokuchuo.ehime.jp","tobe.ehime.jp","toon.ehime.jp","uchiko.ehime.jp","uwajima.ehime.jp","yawatahama.ehime.jp","echizen.fukui.jp","eiheiji.fukui.jp","fukui.fukui.jp","ikeda.fukui.jp","katsuyama.fukui.jp","mihama.fukui.jp","minamiechizen.fukui.jp","obama.fukui.jp","ohi.fukui.jp","ono.fukui.jp","sabae.fukui.jp","sakai.fukui.jp","takahama.fukui.jp","tsuruga.fukui.jp","wakasa.fukui.jp","ashiya.fukuoka.jp","buzen.fukuoka.jp","chikugo.fukuoka.jp","chikuho.fukuoka.jp","chikujo.fukuoka.jp","chikushino.fukuoka.jp","chikuzen.fukuoka.jp","chuo.fukuoka.jp","dazaifu.fukuoka.jp","fukuchi.fukuoka.jp","hakata.fukuoka.jp","higashi.fukuoka.jp","hirokawa.fukuoka.jp","hisayama.fukuoka.jp","iizuka.fukuoka.jp","inatsuki.fukuoka.jp","kaho.fukuoka.jp","kasuga.fukuoka.jp","kasuya.fukuoka.jp","kawara.fukuoka.jp","keisen.fukuoka.jp","koga.fukuoka.jp","kurate.fukuoka.jp","kurogi.fukuoka.jp","kurume.fukuoka.jp","minami.fukuoka.jp","miyako.fukuoka.jp","miyama.fukuoka.jp","miyawaka.fukuoka.jp","mizumaki.fukuoka.jp","munakata.fukuoka.jp","nakagawa.fukuoka.jp","nakama.fukuoka.jp","nishi.fukuoka.jp","nogata.fukuoka.jp","ogori.fukuoka.jp","okagaki.fukuoka.jp","okawa.fukuoka.jp","oki.fukuoka.jp","omuta.fukuoka.jp","onga.fukuoka.jp","onojo.fukuoka.jp","oto.fukuoka.jp","saigawa.fukuoka.jp","sasaguri.fukuoka.jp","shingu.fukuoka.jp","shinyoshitomi.fukuoka.jp","shonai.fukuoka.jp","soeda.fukuoka.jp","sue.fukuoka.jp","tachiarai.fukuoka.jp","tagawa.fukuoka.jp","takata.fukuoka.jp","toho.fukuoka.jp","toyotsu.fukuoka.jp","tsuiki.fukuoka.jp","ukiha.fukuoka.jp","umi.fukuoka.jp","usui.fukuoka.jp","yamada.fukuoka.jp","yame.fukuoka.jp","yanagawa.fukuoka.jp","yukuhashi.fukuoka.jp","aizubange.fukushima.jp","aizumisato.fukushima.jp","aizuwakamatsu.fukushima.jp","asakawa.fukushima.jp","bandai.fukushima.jp","date.fukushima.jp","fukushima.fukushima.jp","furudono.fukushima.jp","futaba.fukushima.jp","hanawa.fukushima.jp","higashi.fukushima.jp","hirata.fukushima.jp","hirono.fukushima.jp","iitate.fukushima.jp","inawashiro.fukushima.jp","ishikawa.fukushima.jp","iwaki.fukushima.jp","izumizaki.fukushima.jp","kagamiishi.fukushima.jp","kaneyama.fukushima.jp","kawamata.fukushima.jp","kitakata.fukushima.jp","kitashiobara.fukushima.jp","koori.fukushima.jp","koriyama.fukushima.jp","kunimi.fukushima.jp","miharu.fukushima.jp","mishima.fukushima.jp","namie.fukushima.jp","nango.fukushima.jp","nishiaizu.fukushima.jp","nishigo.fukushima.jp","okuma.fukushima.jp","omotego.fukushima.jp","ono.fukushima.jp","otama.fukushima.jp","samegawa.fukushima.jp","shimogo.fukushima.jp","shirakawa.fukushima.jp","showa.fukushima.jp","soma.fukushima.jp","sukagawa.fukushima.jp","taishin.fukushima.jp","tamakawa.fukushima.jp","tanagura.fukushima.jp","tenei.fukushima.jp","yabuki.fukushima.jp","yamato.fukushima.jp","yamatsuri.fukushima.jp","yanaizu.fukushima.jp","yugawa.fukushima.jp","anpachi.gifu.jp","ena.gifu.jp","gifu.gifu.jp","ginan.gifu.jp","godo.gifu.jp","gujo.gifu.jp","hashima.gifu.jp","hichiso.gifu.jp","hida.gifu.jp","higashishirakawa.gifu.jp","ibigawa.gifu.jp","ikeda.gifu.jp","kakamigahara.gifu.jp","kani.gifu.jp","kasahara.gifu.jp","kasamatsu.gifu.jp","kawaue.gifu.jp","kitagata.gifu.jp","mino.gifu.jp","minokamo.gifu.jp","mitake.gifu.jp","mizunami.gifu.jp","motosu.gifu.jp","nakatsugawa.gifu.jp","ogaki.gifu.jp","sakahogi.gifu.jp","seki.gifu.jp","sekigahara.gifu.jp","shirakawa.gifu.jp","tajimi.gifu.jp","takayama.gifu.jp","tarui.gifu.jp","toki.gifu.jp","tomika.gifu.jp","wanouchi.gifu.jp","yamagata.gifu.jp","yaotsu.gifu.jp","yoro.gifu.jp","annaka.gunma.jp","chiyoda.gunma.jp","fujioka.gunma.jp","higashiagatsuma.gunma.jp","isesaki.gunma.jp","itakura.gunma.jp","kanna.gunma.jp","kanra.gunma.jp","katashina.gunma.jp","kawaba.gunma.jp","kiryu.gunma.jp","kusatsu.gunma.jp","maebashi.gunma.jp","meiwa.gunma.jp","midori.gunma.jp","minakami.gunma.jp","naganohara.gunma.jp","nakanojo.gunma.jp","nanmoku.gunma.jp","numata.gunma.jp","oizumi.gunma.jp","ora.gunma.jp","ota.gunma.jp","shibukawa.gunma.jp","shimonita.gunma.jp","shinto.gunma.jp","showa.gunma.jp","takasaki.gunma.jp","takayama.gunma.jp","tamamura.gunma.jp","tatebayashi.gunma.jp","tomioka.gunma.jp","tsukiyono.gunma.jp","tsumagoi.gunma.jp","ueno.gunma.jp","yoshioka.gunma.jp","asaminami.hiroshima.jp","daiwa.hiroshima.jp","etajima.hiroshima.jp","fuchu.hiroshima.jp","fukuyama.hiroshima.jp","hatsukaichi.hiroshima.jp","higashihiroshima.hiroshima.jp","hongo.hiroshima.jp","jinsekikogen.hiroshima.jp","kaita.hiroshima.jp","kui.hiroshima.jp","kumano.hiroshima.jp","kure.hiroshima.jp","mihara.hiroshima.jp","miyoshi.hiroshima.jp","naka.hiroshima.jp","onomichi.hiroshima.jp","osakikamijima.hiroshima.jp","otake.hiroshima.jp","saka.hiroshima.jp","sera.hiroshima.jp","seranishi.hiroshima.jp","shinichi.hiroshima.jp","shobara.hiroshima.jp","takehara.hiroshima.jp","abashiri.hokkaido.jp","abira.hokkaido.jp","aibetsu.hokkaido.jp","akabira.hokkaido.jp","akkeshi.hokkaido.jp","asahikawa.hokkaido.jp","ashibetsu.hokkaido.jp","ashoro.hokkaido.jp","assabu.hokkaido.jp","atsuma.hokkaido.jp","bibai.hokkaido.jp","biei.hokkaido.jp","bifuka.hokkaido.jp","bihoro.hokkaido.jp","biratori.hokkaido.jp","chippubetsu.hokkaido.jp","chitose.hokkaido.jp","date.hokkaido.jp","ebetsu.hokkaido.jp","embetsu.hokkaido.jp","eniwa.hokkaido.jp","erimo.hokkaido.jp","esan.hokkaido.jp","esashi.hokkaido.jp","fukagawa.hokkaido.jp","fukushima.hokkaido.jp","furano.hokkaido.jp","furubira.hokkaido.jp","haboro.hokkaido.jp","hakodate.hokkaido.jp","hamatonbetsu.hokkaido.jp","hidaka.hokkaido.jp","higashikagura.hokkaido.jp","higashikawa.hokkaido.jp","hiroo.hokkaido.jp","hokuryu.hokkaido.jp","hokuto.hokkaido.jp","honbetsu.hokkaido.jp","horokanai.hokkaido.jp","horonobe.hokkaido.jp","ikeda.hokkaido.jp","imakane.hokkaido.jp","ishikari.hokkaido.jp","iwamizawa.hokkaido.jp","iwanai.hokkaido.jp","kamifurano.hokkaido.jp","kamikawa.hokkaido.jp","kamishihoro.hokkaido.jp","kamisunagawa.hokkaido.jp","kamoenai.hokkaido.jp","kayabe.hokkaido.jp","kembuchi.hokkaido.jp","kikonai.hokkaido.jp","kimobetsu.hokkaido.jp","kitahiroshima.hokkaido.jp","kitami.hokkaido.jp","kiyosato.hokkaido.jp","koshimizu.hokkaido.jp","kunneppu.hokkaido.jp","kuriyama.hokkaido.jp","kuromatsunai.hokkaido.jp","kushiro.hokkaido.jp","kutchan.hokkaido.jp","kyowa.hokkaido.jp","mashike.hokkaido.jp","matsumae.hokkaido.jp","mikasa.hokkaido.jp","minamifurano.hokkaido.jp","mombetsu.hokkaido.jp","moseushi.hokkaido.jp","mukawa.hokkaido.jp","muroran.hokkaido.jp","naie.hokkaido.jp","nakagawa.hokkaido.jp","nakasatsunai.hokkaido.jp","nakatombetsu.hokkaido.jp","nanae.hokkaido.jp","nanporo.hokkaido.jp","nayoro.hokkaido.jp","nemuro.hokkaido.jp","niikappu.hokkaido.jp","niki.hokkaido.jp","nishiokoppe.hokkaido.jp","noboribetsu.hokkaido.jp","numata.hokkaido.jp","obihiro.hokkaido.jp","obira.hokkaido.jp","oketo.hokkaido.jp","okoppe.hokkaido.jp","otaru.hokkaido.jp","otobe.hokkaido.jp","otofuke.hokkaido.jp","otoineppu.hokkaido.jp","oumu.hokkaido.jp","ozora.hokkaido.jp","pippu.hokkaido.jp","rankoshi.hokkaido.jp","rebun.hokkaido.jp","rikubetsu.hokkaido.jp","rishiri.hokkaido.jp","rishirifuji.hokkaido.jp","saroma.hokkaido.jp","sarufutsu.hokkaido.jp","shakotan.hokkaido.jp","shari.hokkaido.jp","shibecha.hokkaido.jp","shibetsu.hokkaido.jp","shikabe.hokkaido.jp","shikaoi.hokkaido.jp","shimamaki.hokkaido.jp","shimizu.hokkaido.jp","shimokawa.hokkaido.jp","shinshinotsu.hokkaido.jp","shintoku.hokkaido.jp","shiranuka.hokkaido.jp","shiraoi.hokkaido.jp","shiriuchi.hokkaido.jp","sobetsu.hokkaido.jp","sunagawa.hokkaido.jp","taiki.hokkaido.jp","takasu.hokkaido.jp","takikawa.hokkaido.jp","takinoue.hokkaido.jp","teshikaga.hokkaido.jp","tobetsu.hokkaido.jp","tohma.hokkaido.jp","tomakomai.hokkaido.jp","tomari.hokkaido.jp","toya.hokkaido.jp","toyako.hokkaido.jp","toyotomi.hokkaido.jp","toyoura.hokkaido.jp","tsubetsu.hokkaido.jp","tsukigata.hokkaido.jp","urakawa.hokkaido.jp","urausu.hokkaido.jp","uryu.hokkaido.jp","utashinai.hokkaido.jp","wakkanai.hokkaido.jp","wassamu.hokkaido.jp","yakumo.hokkaido.jp","yoichi.hokkaido.jp","aioi.hyogo.jp","akashi.hyogo.jp","ako.hyogo.jp","amagasaki.hyogo.jp","aogaki.hyogo.jp","asago.hyogo.jp","ashiya.hyogo.jp","awaji.hyogo.jp","fukusaki.hyogo.jp","goshiki.hyogo.jp","harima.hyogo.jp","himeji.hyogo.jp","ichikawa.hyogo.jp","inagawa.hyogo.jp","itami.hyogo.jp","kakogawa.hyogo.jp","kamigori.hyogo.jp","kamikawa.hyogo.jp","kasai.hyogo.jp","kasuga.hyogo.jp","kawanishi.hyogo.jp","miki.hyogo.jp","minamiawaji.hyogo.jp","nishinomiya.hyogo.jp","nishiwaki.hyogo.jp","ono.hyogo.jp","sanda.hyogo.jp","sannan.hyogo.jp","sasayama.hyogo.jp","sayo.hyogo.jp","shingu.hyogo.jp","shinonsen.hyogo.jp","shiso.hyogo.jp","sumoto.hyogo.jp","taishi.hyogo.jp","taka.hyogo.jp","takarazuka.hyogo.jp","takasago.hyogo.jp","takino.hyogo.jp","tamba.hyogo.jp","tatsuno.hyogo.jp","toyooka.hyogo.jp","yabu.hyogo.jp","yashiro.hyogo.jp","yoka.hyogo.jp","yokawa.hyogo.jp","ami.ibaraki.jp","asahi.ibaraki.jp","bando.ibaraki.jp","chikusei.ibaraki.jp","daigo.ibaraki.jp","fujishiro.ibaraki.jp","hitachi.ibaraki.jp","hitachinaka.ibaraki.jp","hitachiomiya.ibaraki.jp","hitachiota.ibaraki.jp","ibaraki.ibaraki.jp","ina.ibaraki.jp","inashiki.ibaraki.jp","itako.ibaraki.jp","iwama.ibaraki.jp","joso.ibaraki.jp","kamisu.ibaraki.jp","kasama.ibaraki.jp","kashima.ibaraki.jp","kasumigaura.ibaraki.jp","koga.ibaraki.jp","miho.ibaraki.jp","mito.ibaraki.jp","moriya.ibaraki.jp","naka.ibaraki.jp","namegata.ibaraki.jp","oarai.ibaraki.jp","ogawa.ibaraki.jp","omitama.ibaraki.jp","ryugasaki.ibaraki.jp","sakai.ibaraki.jp","sakuragawa.ibaraki.jp","shimodate.ibaraki.jp","shimotsuma.ibaraki.jp","shirosato.ibaraki.jp","sowa.ibaraki.jp","suifu.ibaraki.jp","takahagi.ibaraki.jp","tamatsukuri.ibaraki.jp","tokai.ibaraki.jp","tomobe.ibaraki.jp","tone.ibaraki.jp","toride.ibaraki.jp","tsuchiura.ibaraki.jp","tsukuba.ibaraki.jp","uchihara.ibaraki.jp","ushiku.ibaraki.jp","yachiyo.ibaraki.jp","yamagata.ibaraki.jp","yawara.ibaraki.jp","yuki.ibaraki.jp","anamizu.ishikawa.jp","hakui.ishikawa.jp","hakusan.ishikawa.jp","kaga.ishikawa.jp","kahoku.ishikawa.jp","kanazawa.ishikawa.jp","kawakita.ishikawa.jp","komatsu.ishikawa.jp","nakanoto.ishikawa.jp","nanao.ishikawa.jp","nomi.ishikawa.jp","nonoichi.ishikawa.jp","noto.ishikawa.jp","shika.ishikawa.jp","suzu.ishikawa.jp","tsubata.ishikawa.jp","tsurugi.ishikawa.jp","uchinada.ishikawa.jp","wajima.ishikawa.jp","fudai.iwate.jp","fujisawa.iwate.jp","hanamaki.iwate.jp","hiraizumi.iwate.jp","hirono.iwate.jp","ichinohe.iwate.jp","ichinoseki.iwate.jp","iwaizumi.iwate.jp","iwate.iwate.jp","joboji.iwate.jp","kamaishi.iwate.jp","kanegasaki.iwate.jp","karumai.iwate.jp","kawai.iwate.jp","kitakami.iwate.jp","kuji.iwate.jp","kunohe.iwate.jp","kuzumaki.iwate.jp","miyako.iwate.jp","mizusawa.iwate.jp","morioka.iwate.jp","ninohe.iwate.jp","noda.iwate.jp","ofunato.iwate.jp","oshu.iwate.jp","otsuchi.iwate.jp","rikuzentakata.iwate.jp","shiwa.iwate.jp","shizukuishi.iwate.jp","sumita.iwate.jp","tanohata.iwate.jp","tono.iwate.jp","yahaba.iwate.jp","yamada.iwate.jp","ayagawa.kagawa.jp","higashikagawa.kagawa.jp","kanonji.kagawa.jp","kotohira.kagawa.jp","manno.kagawa.jp","marugame.kagawa.jp","mitoyo.kagawa.jp","naoshima.kagawa.jp","sanuki.kagawa.jp","tadotsu.kagawa.jp","takamatsu.kagawa.jp","tonosho.kagawa.jp","uchinomi.kagawa.jp","utazu.kagawa.jp","zentsuji.kagawa.jp","akune.kagoshima.jp","amami.kagoshima.jp","hioki.kagoshima.jp","isa.kagoshima.jp","isen.kagoshima.jp","izumi.kagoshima.jp","kagoshima.kagoshima.jp","kanoya.kagoshima.jp","kawanabe.kagoshima.jp","kinko.kagoshima.jp","kouyama.kagoshima.jp","makurazaki.kagoshima.jp","matsumoto.kagoshima.jp","minamitane.kagoshima.jp","nakatane.kagoshima.jp","nishinoomote.kagoshima.jp","satsumasendai.kagoshima.jp","soo.kagoshima.jp","tarumizu.kagoshima.jp","yusui.kagoshima.jp","aikawa.kanagawa.jp","atsugi.kanagawa.jp","ayase.kanagawa.jp","chigasaki.kanagawa.jp","ebina.kanagawa.jp","fujisawa.kanagawa.jp","hadano.kanagawa.jp","hakone.kanagawa.jp","hiratsuka.kanagawa.jp","isehara.kanagawa.jp","kaisei.kanagawa.jp","kamakura.kanagawa.jp","kiyokawa.kanagawa.jp","matsuda.kanagawa.jp","minamiashigara.kanagawa.jp","miura.kanagawa.jp","nakai.kanagawa.jp","ninomiya.kanagawa.jp","odawara.kanagawa.jp","oi.kanagawa.jp","oiso.kanagawa.jp","sagamihara.kanagawa.jp","samukawa.kanagawa.jp","tsukui.kanagawa.jp","yamakita.kanagawa.jp","yamato.kanagawa.jp","yokosuka.kanagawa.jp","yugawara.kanagawa.jp","zama.kanagawa.jp","zushi.kanagawa.jp","aki.kochi.jp","geisei.kochi.jp","hidaka.kochi.jp","higashitsuno.kochi.jp","ino.kochi.jp","kagami.kochi.jp","kami.kochi.jp","kitagawa.kochi.jp","kochi.kochi.jp","mihara.kochi.jp","motoyama.kochi.jp","muroto.kochi.jp","nahari.kochi.jp","nakamura.kochi.jp","nankoku.kochi.jp","nishitosa.kochi.jp","niyodogawa.kochi.jp","ochi.kochi.jp","okawa.kochi.jp","otoyo.kochi.jp","otsuki.kochi.jp","sakawa.kochi.jp","sukumo.kochi.jp","susaki.kochi.jp","tosa.kochi.jp","tosashimizu.kochi.jp","toyo.kochi.jp","tsuno.kochi.jp","umaji.kochi.jp","yasuda.kochi.jp","yusuhara.kochi.jp","amakusa.kumamoto.jp","arao.kumamoto.jp","aso.kumamoto.jp","choyo.kumamoto.jp","gyokuto.kumamoto.jp","kamiamakusa.kumamoto.jp","kikuchi.kumamoto.jp","kumamoto.kumamoto.jp","mashiki.kumamoto.jp","mifune.kumamoto.jp","minamata.kumamoto.jp","minamioguni.kumamoto.jp","nagasu.kumamoto.jp","nishihara.kumamoto.jp","oguni.kumamoto.jp","ozu.kumamoto.jp","sumoto.kumamoto.jp","takamori.kumamoto.jp","uki.kumamoto.jp","uto.kumamoto.jp","yamaga.kumamoto.jp","yamato.kumamoto.jp","yatsushiro.kumamoto.jp","ayabe.kyoto.jp","fukuchiyama.kyoto.jp","higashiyama.kyoto.jp","ide.kyoto.jp","ine.kyoto.jp","joyo.kyoto.jp","kameoka.kyoto.jp","kamo.kyoto.jp","kita.kyoto.jp","kizu.kyoto.jp","kumiyama.kyoto.jp","kyotamba.kyoto.jp","kyotanabe.kyoto.jp","kyotango.kyoto.jp","maizuru.kyoto.jp","minami.kyoto.jp","minamiyamashiro.kyoto.jp","miyazu.kyoto.jp","muko.kyoto.jp","nagaokakyo.kyoto.jp","nakagyo.kyoto.jp","nantan.kyoto.jp","oyamazaki.kyoto.jp","sakyo.kyoto.jp","seika.kyoto.jp","tanabe.kyoto.jp","uji.kyoto.jp","ujitawara.kyoto.jp","wazuka.kyoto.jp","yamashina.kyoto.jp","yawata.kyoto.jp","asahi.mie.jp","inabe.mie.jp","ise.mie.jp","kameyama.mie.jp","kawagoe.mie.jp","kiho.mie.jp","kisosaki.mie.jp","kiwa.mie.jp","komono.mie.jp","kumano.mie.jp","kuwana.mie.jp","matsusaka.mie.jp","meiwa.mie.jp","mihama.mie.jp","minamiise.mie.jp","misugi.mie.jp","miyama.mie.jp","nabari.mie.jp","shima.mie.jp","suzuka.mie.jp","tado.mie.jp","taiki.mie.jp","taki.mie.jp","tamaki.mie.jp","toba.mie.jp","tsu.mie.jp","udono.mie.jp","ureshino.mie.jp","watarai.mie.jp","yokkaichi.mie.jp","furukawa.miyagi.jp","higashimatsushima.miyagi.jp","ishinomaki.miyagi.jp","iwanuma.miyagi.jp","kakuda.miyagi.jp","kami.miyagi.jp","kawasaki.miyagi.jp","marumori.miyagi.jp","matsushima.miyagi.jp","minamisanriku.miyagi.jp","misato.miyagi.jp","murata.miyagi.jp","natori.miyagi.jp","ogawara.miyagi.jp","ohira.miyagi.jp","onagawa.miyagi.jp","osaki.miyagi.jp","rifu.miyagi.jp","semine.miyagi.jp","shibata.miyagi.jp","shichikashuku.miyagi.jp","shikama.miyagi.jp","shiogama.miyagi.jp","shiroishi.miyagi.jp","tagajo.miyagi.jp","taiwa.miyagi.jp","tome.miyagi.jp","tomiya.miyagi.jp","wakuya.miyagi.jp","watari.miyagi.jp","yamamoto.miyagi.jp","zao.miyagi.jp","aya.miyazaki.jp","ebino.miyazaki.jp","gokase.miyazaki.jp","hyuga.miyazaki.jp","kadogawa.miyazaki.jp","kawaminami.miyazaki.jp","kijo.miyazaki.jp","kitagawa.miyazaki.jp","kitakata.miyazaki.jp","kitaura.miyazaki.jp","kobayashi.miyazaki.jp","kunitomi.miyazaki.jp","kushima.miyazaki.jp","mimata.miyazaki.jp","miyakonojo.miyazaki.jp","miyazaki.miyazaki.jp","morotsuka.miyazaki.jp","nichinan.miyazaki.jp","nishimera.miyazaki.jp","nobeoka.miyazaki.jp","saito.miyazaki.jp","shiiba.miyazaki.jp","shintomi.miyazaki.jp","takaharu.miyazaki.jp","takanabe.miyazaki.jp","takazaki.miyazaki.jp","tsuno.miyazaki.jp","achi.nagano.jp","agematsu.nagano.jp","anan.nagano.jp","aoki.nagano.jp","asahi.nagano.jp","azumino.nagano.jp","chikuhoku.nagano.jp","chikuma.nagano.jp","chino.nagano.jp","fujimi.nagano.jp","hakuba.nagano.jp","hara.nagano.jp","hiraya.nagano.jp","iida.nagano.jp","iijima.nagano.jp","iiyama.nagano.jp","iizuna.nagano.jp","ikeda.nagano.jp","ikusaka.nagano.jp","ina.nagano.jp","karuizawa.nagano.jp","kawakami.nagano.jp","kiso.nagano.jp","kisofukushima.nagano.jp","kitaaiki.nagano.jp","komagane.nagano.jp","komoro.nagano.jp","matsukawa.nagano.jp","matsumoto.nagano.jp","miasa.nagano.jp","minamiaiki.nagano.jp","minamimaki.nagano.jp","minamiminowa.nagano.jp","minowa.nagano.jp","miyada.nagano.jp","miyota.nagano.jp","mochizuki.nagano.jp","nagano.nagano.jp","nagawa.nagano.jp","nagiso.nagano.jp","nakagawa.nagano.jp","nakano.nagano.jp","nozawaonsen.nagano.jp","obuse.nagano.jp","ogawa.nagano.jp","okaya.nagano.jp","omachi.nagano.jp","omi.nagano.jp","ookuwa.nagano.jp","ooshika.nagano.jp","otaki.nagano.jp","otari.nagano.jp","sakae.nagano.jp","sakaki.nagano.jp","saku.nagano.jp","sakuho.nagano.jp","shimosuwa.nagano.jp","shinanomachi.nagano.jp","shiojiri.nagano.jp","suwa.nagano.jp","suzaka.nagano.jp","takagi.nagano.jp","takamori.nagano.jp","takayama.nagano.jp","tateshina.nagano.jp","tatsuno.nagano.jp","togakushi.nagano.jp","togura.nagano.jp","tomi.nagano.jp","ueda.nagano.jp","wada.nagano.jp","yamagata.nagano.jp","yamanouchi.nagano.jp","yasaka.nagano.jp","yasuoka.nagano.jp","chijiwa.nagasaki.jp","futsu.nagasaki.jp","goto.nagasaki.jp","hasami.nagasaki.jp","hirado.nagasaki.jp","iki.nagasaki.jp","isahaya.nagasaki.jp","kawatana.nagasaki.jp","kuchinotsu.nagasaki.jp","matsuura.nagasaki.jp","nagasaki.nagasaki.jp","obama.nagasaki.jp","omura.nagasaki.jp","oseto.nagasaki.jp","saikai.nagasaki.jp","sasebo.nagasaki.jp","seihi.nagasaki.jp","shimabara.nagasaki.jp","shinkamigoto.nagasaki.jp","togitsu.nagasaki.jp","tsushima.nagasaki.jp","unzen.nagasaki.jp","ando.nara.jp","gose.nara.jp","heguri.nara.jp","higashiyoshino.nara.jp","ikaruga.nara.jp","ikoma.nara.jp","kamikitayama.nara.jp","kanmaki.nara.jp","kashiba.nara.jp","kashihara.nara.jp","katsuragi.nara.jp","kawai.nara.jp","kawakami.nara.jp","kawanishi.nara.jp","koryo.nara.jp","kurotaki.nara.jp","mitsue.nara.jp","miyake.nara.jp","nara.nara.jp","nosegawa.nara.jp","oji.nara.jp","ouda.nara.jp","oyodo.nara.jp","sakurai.nara.jp","sango.nara.jp","shimoichi.nara.jp","shimokitayama.nara.jp","shinjo.nara.jp","soni.nara.jp","takatori.nara.jp","tawaramoto.nara.jp","tenkawa.nara.jp","tenri.nara.jp","uda.nara.jp","yamatokoriyama.nara.jp","yamatotakada.nara.jp","yamazoe.nara.jp","yoshino.nara.jp","aga.niigata.jp","agano.niigata.jp","gosen.niigata.jp","itoigawa.niigata.jp","izumozaki.niigata.jp","joetsu.niigata.jp","kamo.niigata.jp","kariwa.niigata.jp","kashiwazaki.niigata.jp","minamiuonuma.niigata.jp","mitsuke.niigata.jp","muika.niigata.jp","murakami.niigata.jp","myoko.niigata.jp","nagaoka.niigata.jp","niigata.niigata.jp","ojiya.niigata.jp","omi.niigata.jp","sado.niigata.jp","sanjo.niigata.jp","seiro.niigata.jp","seirou.niigata.jp","sekikawa.niigata.jp","shibata.niigata.jp","tagami.niigata.jp","tainai.niigata.jp","tochio.niigata.jp","tokamachi.niigata.jp","tsubame.niigata.jp","tsunan.niigata.jp","uonuma.niigata.jp","yahiko.niigata.jp","yoita.niigata.jp","yuzawa.niigata.jp","beppu.oita.jp","bungoono.oita.jp","bungotakada.oita.jp","hasama.oita.jp","hiji.oita.jp","himeshima.oita.jp","hita.oita.jp","kamitsue.oita.jp","kokonoe.oita.jp","kuju.oita.jp","kunisaki.oita.jp","kusu.oita.jp","oita.oita.jp","saiki.oita.jp","taketa.oita.jp","tsukumi.oita.jp","usa.oita.jp","usuki.oita.jp","yufu.oita.jp","akaiwa.okayama.jp","asakuchi.okayama.jp","bizen.okayama.jp","hayashima.okayama.jp","ibara.okayama.jp","kagamino.okayama.jp","kasaoka.okayama.jp","kibichuo.okayama.jp","kumenan.okayama.jp","kurashiki.okayama.jp","maniwa.okayama.jp","misaki.okayama.jp","nagi.okayama.jp","niimi.okayama.jp","nishiawakura.okayama.jp","okayama.okayama.jp","satosho.okayama.jp","setouchi.okayama.jp","shinjo.okayama.jp","shoo.okayama.jp","soja.okayama.jp","takahashi.okayama.jp","tamano.okayama.jp","tsuyama.okayama.jp","wake.okayama.jp","yakage.okayama.jp","aguni.okinawa.jp","ginowan.okinawa.jp","ginoza.okinawa.jp","gushikami.okinawa.jp","haebaru.okinawa.jp","higashi.okinawa.jp","hirara.okinawa.jp","iheya.okinawa.jp","ishigaki.okinawa.jp","ishikawa.okinawa.jp","itoman.okinawa.jp","izena.okinawa.jp","kadena.okinawa.jp","kin.okinawa.jp","kitadaito.okinawa.jp","kitanakagusuku.okinawa.jp","kumejima.okinawa.jp","kunigami.okinawa.jp","minamidaito.okinawa.jp","motobu.okinawa.jp","nago.okinawa.jp","naha.okinawa.jp","nakagusuku.okinawa.jp","nakijin.okinawa.jp","nanjo.okinawa.jp","nishihara.okinawa.jp","ogimi.okinawa.jp","okinawa.okinawa.jp","onna.okinawa.jp","shimoji.okinawa.jp","taketomi.okinawa.jp","tarama.okinawa.jp","tokashiki.okinawa.jp","tomigusuku.okinawa.jp","tonaki.okinawa.jp","urasoe.okinawa.jp","uruma.okinawa.jp","yaese.okinawa.jp","yomitan.okinawa.jp","yonabaru.okinawa.jp","yonaguni.okinawa.jp","zamami.okinawa.jp","abeno.osaka.jp","chihayaakasaka.osaka.jp","chuo.osaka.jp","daito.osaka.jp","fujiidera.osaka.jp","habikino.osaka.jp","hannan.osaka.jp","higashiosaka.osaka.jp","higashisumiyoshi.osaka.jp","higashiyodogawa.osaka.jp","hirakata.osaka.jp","ibaraki.osaka.jp","ikeda.osaka.jp","izumi.osaka.jp","izumiotsu.osaka.jp","izumisano.osaka.jp","kadoma.osaka.jp","kaizuka.osaka.jp","kanan.osaka.jp","kashiwara.osaka.jp","katano.osaka.jp","kawachinagano.osaka.jp","kishiwada.osaka.jp","kita.osaka.jp","kumatori.osaka.jp","matsubara.osaka.jp","minato.osaka.jp","minoh.osaka.jp","misaki.osaka.jp","moriguchi.osaka.jp","neyagawa.osaka.jp","nishi.osaka.jp","nose.osaka.jp","osakasayama.osaka.jp","sakai.osaka.jp","sayama.osaka.jp","sennan.osaka.jp","settsu.osaka.jp","shijonawate.osaka.jp","shimamoto.osaka.jp","suita.osaka.jp","tadaoka.osaka.jp","taishi.osaka.jp","tajiri.osaka.jp","takaishi.osaka.jp","takatsuki.osaka.jp","tondabayashi.osaka.jp","toyonaka.osaka.jp","toyono.osaka.jp","yao.osaka.jp","ariake.saga.jp","arita.saga.jp","fukudomi.saga.jp","genkai.saga.jp","hamatama.saga.jp","hizen.saga.jp","imari.saga.jp","kamimine.saga.jp","kanzaki.saga.jp","karatsu.saga.jp","kashima.saga.jp","kitagata.saga.jp","kitahata.saga.jp","kiyama.saga.jp","kouhoku.saga.jp","kyuragi.saga.jp","nishiarita.saga.jp","ogi.saga.jp","omachi.saga.jp","ouchi.saga.jp","saga.saga.jp","shiroishi.saga.jp","taku.saga.jp","tara.saga.jp","tosu.saga.jp","yoshinogari.saga.jp","arakawa.saitama.jp","asaka.saitama.jp","chichibu.saitama.jp","fujimi.saitama.jp","fujimino.saitama.jp","fukaya.saitama.jp","hanno.saitama.jp","hanyu.saitama.jp","hasuda.saitama.jp","hatogaya.saitama.jp","hatoyama.saitama.jp","hidaka.saitama.jp","higashichichibu.saitama.jp","higashimatsuyama.saitama.jp","honjo.saitama.jp","ina.saitama.jp","iruma.saitama.jp","iwatsuki.saitama.jp","kamiizumi.saitama.jp","kamikawa.saitama.jp","kamisato.saitama.jp","kasukabe.saitama.jp","kawagoe.saitama.jp","kawaguchi.saitama.jp","kawajima.saitama.jp","kazo.saitama.jp","kitamoto.saitama.jp","koshigaya.saitama.jp","kounosu.saitama.jp","kuki.saitama.jp","kumagaya.saitama.jp","matsubushi.saitama.jp","minano.saitama.jp","misato.saitama.jp","miyashiro.saitama.jp","miyoshi.saitama.jp","moroyama.saitama.jp","nagatoro.saitama.jp","namegawa.saitama.jp","niiza.saitama.jp","ogano.saitama.jp","ogawa.saitama.jp","ogose.saitama.jp","okegawa.saitama.jp","omiya.saitama.jp","otaki.saitama.jp","ranzan.saitama.jp","ryokami.saitama.jp","saitama.saitama.jp","sakado.saitama.jp","satte.saitama.jp","sayama.saitama.jp","shiki.saitama.jp","shiraoka.saitama.jp","soka.saitama.jp","sugito.saitama.jp","toda.saitama.jp","tokigawa.saitama.jp","tokorozawa.saitama.jp","tsurugashima.saitama.jp","urawa.saitama.jp","warabi.saitama.jp","yashio.saitama.jp","yokoze.saitama.jp","yono.saitama.jp","yorii.saitama.jp","yoshida.saitama.jp","yoshikawa.saitama.jp","yoshimi.saitama.jp","aisho.shiga.jp","gamo.shiga.jp","higashiomi.shiga.jp","hikone.shiga.jp","koka.shiga.jp","konan.shiga.jp","kosei.shiga.jp","koto.shiga.jp","kusatsu.shiga.jp","maibara.shiga.jp","moriyama.shiga.jp","nagahama.shiga.jp","nishiazai.shiga.jp","notogawa.shiga.jp","omihachiman.shiga.jp","otsu.shiga.jp","ritto.shiga.jp","ryuoh.shiga.jp","takashima.shiga.jp","takatsuki.shiga.jp","torahime.shiga.jp","toyosato.shiga.jp","yasu.shiga.jp","akagi.shimane.jp","ama.shimane.jp","gotsu.shimane.jp","hamada.shimane.jp","higashiizumo.shimane.jp","hikawa.shimane.jp","hikimi.shimane.jp","izumo.shimane.jp","kakinoki.shimane.jp","masuda.shimane.jp","matsue.shimane.jp","misato.shimane.jp","nishinoshima.shimane.jp","ohda.shimane.jp","okinoshima.shimane.jp","okuizumo.shimane.jp","shimane.shimane.jp","tamayu.shimane.jp","tsuwano.shimane.jp","unnan.shimane.jp","yakumo.shimane.jp","yasugi.shimane.jp","yatsuka.shimane.jp","arai.shizuoka.jp","atami.shizuoka.jp","fuji.shizuoka.jp","fujieda.shizuoka.jp","fujikawa.shizuoka.jp","fujinomiya.shizuoka.jp","fukuroi.shizuoka.jp","gotemba.shizuoka.jp","haibara.shizuoka.jp","hamamatsu.shizuoka.jp","higashiizu.shizuoka.jp","ito.shizuoka.jp","iwata.shizuoka.jp","izu.shizuoka.jp","izunokuni.shizuoka.jp","kakegawa.shizuoka.jp","kannami.shizuoka.jp","kawanehon.shizuoka.jp","kawazu.shizuoka.jp","kikugawa.shizuoka.jp","kosai.shizuoka.jp","makinohara.shizuoka.jp","matsuzaki.shizuoka.jp","minamiizu.shizuoka.jp","mishima.shizuoka.jp","morimachi.shizuoka.jp","nishiizu.shizuoka.jp","numazu.shizuoka.jp","omaezaki.shizuoka.jp","shimada.shizuoka.jp","shimizu.shizuoka.jp","shimoda.shizuoka.jp","shizuoka.shizuoka.jp","susono.shizuoka.jp","yaizu.shizuoka.jp","yoshida.shizuoka.jp","ashikaga.tochigi.jp","bato.tochigi.jp","haga.tochigi.jp","ichikai.tochigi.jp","iwafune.tochigi.jp","kaminokawa.tochigi.jp","kanuma.tochigi.jp","karasuyama.tochigi.jp","kuroiso.tochigi.jp","mashiko.tochigi.jp","mibu.tochigi.jp","moka.tochigi.jp","motegi.tochigi.jp","nasu.tochigi.jp","nasushiobara.tochigi.jp","nikko.tochigi.jp","nishikata.tochigi.jp","nogi.tochigi.jp","ohira.tochigi.jp","ohtawara.tochigi.jp","oyama.tochigi.jp","sakura.tochigi.jp","sano.tochigi.jp","shimotsuke.tochigi.jp","shioya.tochigi.jp","takanezawa.tochigi.jp","tochigi.tochigi.jp","tsuga.tochigi.jp","ujiie.tochigi.jp","utsunomiya.tochigi.jp","yaita.tochigi.jp","aizumi.tokushima.jp","anan.tokushima.jp","ichiba.tokushima.jp","itano.tokushima.jp","kainan.tokushima.jp","komatsushima.tokushima.jp","matsushige.tokushima.jp","mima.tokushima.jp","minami.tokushima.jp","miyoshi.tokushima.jp","mugi.tokushima.jp","nakagawa.tokushima.jp","naruto.tokushima.jp","sanagochi.tokushima.jp","shishikui.tokushima.jp","tokushima.tokushima.jp","wajiki.tokushima.jp","adachi.tokyo.jp","akiruno.tokyo.jp","akishima.tokyo.jp","aogashima.tokyo.jp","arakawa.tokyo.jp","bunkyo.tokyo.jp","chiyoda.tokyo.jp","chofu.tokyo.jp","chuo.tokyo.jp","edogawa.tokyo.jp","fuchu.tokyo.jp","fussa.tokyo.jp","hachijo.tokyo.jp","hachioji.tokyo.jp","hamura.tokyo.jp","higashikurume.tokyo.jp","higashimurayama.tokyo.jp","higashiyamato.tokyo.jp","hino.tokyo.jp","hinode.tokyo.jp","hinohara.tokyo.jp","inagi.tokyo.jp","itabashi.tokyo.jp","katsushika.tokyo.jp","kita.tokyo.jp","kiyose.tokyo.jp","kodaira.tokyo.jp","koganei.tokyo.jp","kokubunji.tokyo.jp","komae.tokyo.jp","koto.tokyo.jp","kouzushima.tokyo.jp","kunitachi.tokyo.jp","machida.tokyo.jp","meguro.tokyo.jp","minato.tokyo.jp","mitaka.tokyo.jp","mizuho.tokyo.jp","musashimurayama.tokyo.jp","musashino.tokyo.jp","nakano.tokyo.jp","nerima.tokyo.jp","ogasawara.tokyo.jp","okutama.tokyo.jp","ome.tokyo.jp","oshima.tokyo.jp","ota.tokyo.jp","setagaya.tokyo.jp","shibuya.tokyo.jp","shinagawa.tokyo.jp","shinjuku.tokyo.jp","suginami.tokyo.jp","sumida.tokyo.jp","tachikawa.tokyo.jp","taito.tokyo.jp","tama.tokyo.jp","toshima.tokyo.jp","chizu.tottori.jp","hino.tottori.jp","kawahara.tottori.jp","koge.tottori.jp","kotoura.tottori.jp","misasa.tottori.jp","nanbu.tottori.jp","nichinan.tottori.jp","sakaiminato.tottori.jp","tottori.tottori.jp","wakasa.tottori.jp","yazu.tottori.jp","yonago.tottori.jp","asahi.toyama.jp","fuchu.toyama.jp","fukumitsu.toyama.jp","funahashi.toyama.jp","himi.toyama.jp","imizu.toyama.jp","inami.toyama.jp","johana.toyama.jp","kamiichi.toyama.jp","kurobe.toyama.jp","nakaniikawa.toyama.jp","namerikawa.toyama.jp","nanto.toyama.jp","nyuzen.toyama.jp","oyabe.toyama.jp","taira.toyama.jp","takaoka.toyama.jp","tateyama.toyama.jp","toga.toyama.jp","tonami.toyama.jp","toyama.toyama.jp","unazuki.toyama.jp","uozu.toyama.jp","yamada.toyama.jp","arida.wakayama.jp","aridagawa.wakayama.jp","gobo.wakayama.jp","hashimoto.wakayama.jp","hidaka.wakayama.jp","hirogawa.wakayama.jp","inami.wakayama.jp","iwade.wakayama.jp","kainan.wakayama.jp","kamitonda.wakayama.jp","katsuragi.wakayama.jp","kimino.wakayama.jp","kinokawa.wakayama.jp","kitayama.wakayama.jp","koya.wakayama.jp","koza.wakayama.jp","kozagawa.wakayama.jp","kudoyama.wakayama.jp","kushimoto.wakayama.jp","mihama.wakayama.jp","misato.wakayama.jp","nachikatsuura.wakayama.jp","shingu.wakayama.jp","shirahama.wakayama.jp","taiji.wakayama.jp","tanabe.wakayama.jp","wakayama.wakayama.jp","yuasa.wakayama.jp","yura.wakayama.jp","asahi.yamagata.jp","funagata.yamagata.jp","higashine.yamagata.jp","iide.yamagata.jp","kahoku.yamagata.jp","kaminoyama.yamagata.jp","kaneyama.yamagata.jp","kawanishi.yamagata.jp","mamurogawa.yamagata.jp","mikawa.yamagata.jp","murayama.yamagata.jp","nagai.yamagata.jp","nakayama.yamagata.jp","nanyo.yamagata.jp","nishikawa.yamagata.jp","obanazawa.yamagata.jp","oe.yamagata.jp","oguni.yamagata.jp","ohkura.yamagata.jp","oishida.yamagata.jp","sagae.yamagata.jp","sakata.yamagata.jp","sakegawa.yamagata.jp","shinjo.yamagata.jp","shirataka.yamagata.jp","shonai.yamagata.jp","takahata.yamagata.jp","tendo.yamagata.jp","tozawa.yamagata.jp","tsuruoka.yamagata.jp","yamagata.yamagata.jp","yamanobe.yamagata.jp","yonezawa.yamagata.jp","yuza.yamagata.jp","abu.yamaguchi.jp","hagi.yamaguchi.jp","hikari.yamaguchi.jp","hofu.yamaguchi.jp","iwakuni.yamaguchi.jp","kudamatsu.yamaguchi.jp","mitou.yamaguchi.jp","nagato.yamaguchi.jp","oshima.yamaguchi.jp","shimonoseki.yamaguchi.jp","shunan.yamaguchi.jp","tabuse.yamaguchi.jp","tokuyama.yamaguchi.jp","toyota.yamaguchi.jp","ube.yamaguchi.jp","yuu.yamaguchi.jp","chuo.yamanashi.jp","doshi.yamanashi.jp","fuefuki.yamanashi.jp","fujikawa.yamanashi.jp","fujikawaguchiko.yamanashi.jp","fujiyoshida.yamanashi.jp","hayakawa.yamanashi.jp","hokuto.yamanashi.jp","ichikawamisato.yamanashi.jp","kai.yamanashi.jp","kofu.yamanashi.jp","koshu.yamanashi.jp","kosuge.yamanashi.jp","minami-alps.yamanashi.jp","minobu.yamanashi.jp","nakamichi.yamanashi.jp","nanbu.yamanashi.jp","narusawa.yamanashi.jp","nirasaki.yamanashi.jp","nishikatsura.yamanashi.jp","oshino.yamanashi.jp","otsuki.yamanashi.jp","showa.yamanashi.jp","tabayama.yamanashi.jp","tsuru.yamanashi.jp","uenohara.yamanashi.jp","yamanakako.yamanashi.jp","yamanashi.yamanashi.jp","ke","ac.ke","co.ke","go.ke","info.ke","me.ke","mobi.ke","ne.ke","or.ke","sc.ke","kg","org.kg","net.kg","com.kg","edu.kg","gov.kg","mil.kg","*.kh","ki","edu.ki","biz.ki","net.ki","org.ki","gov.ki","info.ki","com.ki","km","org.km","nom.km","gov.km","prd.km","tm.km","edu.km","mil.km","ass.km","com.km","coop.km","asso.km","presse.km","medecin.km","notaires.km","pharmaciens.km","veterinaire.km","gouv.km","kn","net.kn","org.kn","edu.kn","gov.kn","kp","com.kp","edu.kp","gov.kp","org.kp","rep.kp","tra.kp","kr","ac.kr","co.kr","es.kr","go.kr","hs.kr","kg.kr","mil.kr","ms.kr","ne.kr","or.kr","pe.kr","re.kr","sc.kr","busan.kr","chungbuk.kr","chungnam.kr","daegu.kr","daejeon.kr","gangwon.kr","gwangju.kr","gyeongbuk.kr","gyeonggi.kr","gyeongnam.kr","incheon.kr","jeju.kr","jeonbuk.kr","jeonnam.kr","seoul.kr","ulsan.kr","kw","com.kw","edu.kw","emb.kw","gov.kw","ind.kw","net.kw","org.kw","ky","edu.ky","gov.ky","com.ky","org.ky","net.ky","kz","org.kz","edu.kz","net.kz","gov.kz","mil.kz","com.kz","la","int.la","net.la","info.la","edu.la","gov.la","per.la","com.la","org.la","lb","com.lb","edu.lb","gov.lb","net.lb","org.lb","lc","com.lc","net.lc","co.lc","org.lc","edu.lc","gov.lc","li","lk","gov.lk","sch.lk","net.lk","int.lk","com.lk","org.lk","edu.lk","ngo.lk","soc.lk","web.lk","ltd.lk","assn.lk","grp.lk","hotel.lk","ac.lk","lr","com.lr","edu.lr","gov.lr","org.lr","net.lr","ls","ac.ls","biz.ls","co.ls","edu.ls","gov.ls","info.ls","net.ls","org.ls","sc.ls","lt","gov.lt","lu","lv","com.lv","edu.lv","gov.lv","org.lv","mil.lv","id.lv","net.lv","asn.lv","conf.lv","ly","com.ly","net.ly","gov.ly","plc.ly","edu.ly","sch.ly","med.ly","org.ly","id.ly","ma","co.ma","net.ma","gov.ma","org.ma","ac.ma","press.ma","mc","tm.mc","asso.mc","md","me","co.me","net.me","org.me","edu.me","ac.me","gov.me","its.me","priv.me","mg","org.mg","nom.mg","gov.mg","prd.mg","tm.mg","edu.mg","mil.mg","com.mg","co.mg","mh","mil","mk","com.mk","org.mk","net.mk","edu.mk","gov.mk","inf.mk","name.mk","ml","com.ml","edu.ml","gouv.ml","gov.ml","net.ml","org.ml","presse.ml","*.mm","mn","gov.mn","edu.mn","org.mn","mo","com.mo","net.mo","org.mo","edu.mo","gov.mo","mobi","mp","mq","mr","gov.mr","ms","com.ms","edu.ms","gov.ms","net.ms","org.ms","mt","com.mt","edu.mt","net.mt","org.mt","mu","com.mu","net.mu","org.mu","gov.mu","ac.mu","co.mu","or.mu","museum","academy.museum","agriculture.museum","air.museum","airguard.museum","alabama.museum","alaska.museum","amber.museum","ambulance.museum","american.museum","americana.museum","americanantiques.museum","americanart.museum","amsterdam.museum","and.museum","annefrank.museum","anthro.museum","anthropology.museum","antiques.museum","aquarium.museum","arboretum.museum","archaeological.museum","archaeology.museum","architecture.museum","art.museum","artanddesign.museum","artcenter.museum","artdeco.museum","arteducation.museum","artgallery.museum","arts.museum","artsandcrafts.museum","asmatart.museum","assassination.museum","assisi.museum","association.museum","astronomy.museum","atlanta.museum","austin.museum","australia.museum","automotive.museum","aviation.museum","axis.museum","badajoz.museum","baghdad.museum","bahn.museum","bale.museum","baltimore.museum","barcelona.museum","baseball.museum","basel.museum","baths.museum","bauern.museum","beauxarts.museum","beeldengeluid.museum","bellevue.museum","bergbau.museum","berkeley.museum","berlin.museum","bern.museum","bible.museum","bilbao.museum","bill.museum","birdart.museum","birthplace.museum","bonn.museum","boston.museum","botanical.museum","botanicalgarden.museum","botanicgarden.museum","botany.museum","brandywinevalley.museum","brasil.museum","bristol.museum","british.museum","britishcolumbia.museum","broadcast.museum","brunel.museum","brussel.museum","brussels.museum","bruxelles.museum","building.museum","burghof.museum","bus.museum","bushey.museum","cadaques.museum","california.museum","cambridge.museum","can.museum","canada.museum","capebreton.museum","carrier.museum","cartoonart.museum","casadelamoneda.museum","castle.museum","castres.museum","celtic.museum","center.museum","chattanooga.museum","cheltenham.museum","chesapeakebay.museum","chicago.museum","children.museum","childrens.museum","childrensgarden.museum","chiropractic.museum","chocolate.museum","christiansburg.museum","cincinnati.museum","cinema.museum","circus.museum","civilisation.museum","civilization.museum","civilwar.museum","clinton.museum","clock.museum","coal.museum","coastaldefence.museum","cody.museum","coldwar.museum","collection.museum","colonialwilliamsburg.museum","coloradoplateau.museum","columbia.museum","columbus.museum","communication.museum","communications.museum","community.museum","computer.museum","computerhistory.museum","comunicações.museum","contemporary.museum","contemporaryart.museum","convent.museum","copenhagen.museum","corporation.museum","correios-e-telecomunicações.museum","corvette.museum","costume.museum","countryestate.museum","county.museum","crafts.museum","cranbrook.museum","creation.museum","cultural.museum","culturalcenter.museum","culture.museum","cyber.museum","cymru.museum","dali.museum","dallas.museum","database.museum","ddr.museum","decorativearts.museum","delaware.museum","delmenhorst.museum","denmark.museum","depot.museum","design.museum","detroit.museum","dinosaur.museum","discovery.museum","dolls.museum","donostia.museum","durham.museum","eastafrica.museum","eastcoast.museum","education.museum","educational.museum","egyptian.museum","eisenbahn.museum","elburg.museum","elvendrell.museum","embroidery.museum","encyclopedic.museum","england.museum","entomology.museum","environment.museum","environmentalconservation.museum","epilepsy.museum","essex.museum","estate.museum","ethnology.museum","exeter.museum","exhibition.museum","family.museum","farm.museum","farmequipment.museum","farmers.museum","farmstead.museum","field.museum","figueres.museum","filatelia.museum","film.museum","fineart.museum","finearts.museum","finland.museum","flanders.museum","florida.museum","force.museum","fortmissoula.museum","fortworth.museum","foundation.museum","francaise.museum","frankfurt.museum","franziskaner.museum","freemasonry.museum","freiburg.museum","fribourg.museum","frog.museum","fundacio.museum","furniture.museum","gallery.museum","garden.museum","gateway.museum","geelvinck.museum","gemological.museum","geology.museum","georgia.museum","giessen.museum","glas.museum","glass.museum","gorge.museum","grandrapids.museum","graz.museum","guernsey.museum","halloffame.museum","hamburg.museum","handson.museum","harvestcelebration.museum","hawaii.museum","health.museum","heimatunduhren.museum","hellas.museum","helsinki.museum","hembygdsforbund.museum","heritage.museum","histoire.museum","historical.museum","historicalsociety.museum","historichouses.museum","historisch.museum","historisches.museum","history.museum","historyofscience.museum","horology.museum","house.museum","humanities.museum","illustration.museum","imageandsound.museum","indian.museum","indiana.museum","indianapolis.museum","indianmarket.museum","intelligence.museum","interactive.museum","iraq.museum","iron.museum","isleofman.museum","jamison.museum","jefferson.museum","jerusalem.museum","jewelry.museum","jewish.museum","jewishart.museum","jfk.museum","journalism.museum","judaica.museum","judygarland.museum","juedisches.museum","juif.museum","karate.museum","karikatur.museum","kids.museum","koebenhavn.museum","koeln.museum","kunst.museum","kunstsammlung.museum","kunstunddesign.museum","labor.museum","labour.museum","lajolla.museum","lancashire.museum","landes.museum","lans.museum","läns.museum","larsson.museum","lewismiller.museum","lincoln.museum","linz.museum","living.museum","livinghistory.museum","localhistory.museum","london.museum","losangeles.museum","louvre.museum","loyalist.museum","lucerne.museum","luxembourg.museum","luzern.museum","mad.museum","madrid.museum","mallorca.museum","manchester.museum","mansion.museum","mansions.museum","manx.museum","marburg.museum","maritime.museum","maritimo.museum","maryland.museum","marylhurst.museum","media.museum","medical.museum","medizinhistorisches.museum","meeres.museum","memorial.museum","mesaverde.museum","michigan.museum","midatlantic.museum","military.museum","mill.museum","miners.museum","mining.museum","minnesota.museum","missile.museum","missoula.museum","modern.museum","moma.museum","money.museum","monmouth.museum","monticello.museum","montreal.museum","moscow.museum","motorcycle.museum","muenchen.museum","muenster.museum","mulhouse.museum","muncie.museum","museet.museum","museumcenter.museum","museumvereniging.museum","music.museum","national.museum","nationalfirearms.museum","nationalheritage.museum","nativeamerican.museum","naturalhistory.museum","naturalhistorymuseum.museum","naturalsciences.museum","nature.museum","naturhistorisches.museum","natuurwetenschappen.museum","naumburg.museum","naval.museum","nebraska.museum","neues.museum","newhampshire.museum","newjersey.museum","newmexico.museum","newport.museum","newspaper.museum","newyork.museum","niepce.museum","norfolk.museum","north.museum","nrw.museum","nyc.museum","nyny.museum","oceanographic.museum","oceanographique.museum","omaha.museum","online.museum","ontario.museum","openair.museum","oregon.museum","oregontrail.museum","otago.museum","oxford.museum","pacific.museum","paderborn.museum","palace.museum","paleo.museum","palmsprings.museum","panama.museum","paris.museum","pasadena.museum","pharmacy.museum","philadelphia.museum","philadelphiaarea.museum","philately.museum","phoenix.museum","photography.museum","pilots.museum","pittsburgh.museum","planetarium.museum","plantation.museum","plants.museum","plaza.museum","portal.museum","portland.museum","portlligat.museum","posts-and-telecommunications.museum","preservation.museum","presidio.museum","press.museum","project.museum","public.museum","pubol.museum","quebec.museum","railroad.museum","railway.museum","research.museum","resistance.museum","riodejaneiro.museum","rochester.museum","rockart.museum","roma.museum","russia.museum","saintlouis.museum","salem.museum","salvadordali.museum","salzburg.museum","sandiego.museum","sanfrancisco.museum","santabarbara.museum","santacruz.museum","santafe.museum","saskatchewan.museum","satx.museum","savannahga.museum","schlesisches.museum","schoenbrunn.museum","schokoladen.museum","school.museum","schweiz.museum","science.museum","scienceandhistory.museum","scienceandindustry.museum","sciencecenter.museum","sciencecenters.museum","science-fiction.museum","sciencehistory.museum","sciences.museum","sciencesnaturelles.museum","scotland.museum","seaport.museum","settlement.museum","settlers.museum","shell.museum","sherbrooke.museum","sibenik.museum","silk.museum","ski.museum","skole.museum","society.museum","sologne.museum","soundandvision.museum","southcarolina.museum","southwest.museum","space.museum","spy.museum","square.museum","stadt.museum","stalbans.museum","starnberg.museum","state.museum","stateofdelaware.museum","station.museum","steam.museum","steiermark.museum","stjohn.museum","stockholm.museum","stpetersburg.museum","stuttgart.museum","suisse.museum","surgeonshall.museum","surrey.museum","svizzera.museum","sweden.museum","sydney.museum","tank.museum","tcm.museum","technology.museum","telekommunikation.museum","television.museum","texas.museum","textile.museum","theater.museum","time.museum","timekeeping.museum","topology.museum","torino.museum","touch.museum","town.museum","transport.museum","tree.museum","trolley.museum","trust.museum","trustee.museum","uhren.museum","ulm.museum","undersea.museum","university.museum","usa.museum","usantiques.museum","usarts.museum","uscountryestate.museum","usculture.museum","usdecorativearts.museum","usgarden.museum","ushistory.museum","ushuaia.museum","uslivinghistory.museum","utah.museum","uvic.museum","valley.museum","vantaa.museum","versailles.museum","viking.museum","village.museum","virginia.museum","virtual.museum","virtuel.museum","vlaanderen.museum","volkenkunde.museum","wales.museum","wallonie.museum","war.museum","washingtondc.museum","watchandclock.museum","watch-and-clock.museum","western.museum","westfalen.museum","whaling.museum","wildlife.museum","williamsburg.museum","windmill.museum","workshop.museum","york.museum","yorkshire.museum","yosemite.museum","youth.museum","zoological.museum","zoology.museum","ירושלים.museum","иком.museum","mv","aero.mv","biz.mv","com.mv","coop.mv","edu.mv","gov.mv","info.mv","int.mv","mil.mv","museum.mv","name.mv","net.mv","org.mv","pro.mv","mw","ac.mw","biz.mw","co.mw","com.mw","coop.mw","edu.mw","gov.mw","int.mw","museum.mw","net.mw","org.mw","mx","com.mx","org.mx","gob.mx","edu.mx","net.mx","my","com.my","net.my","org.my","gov.my","edu.my","mil.my","name.my","mz","ac.mz","adv.mz","co.mz","edu.mz","gov.mz","mil.mz","net.mz","org.mz","na","info.na","pro.na","name.na","school.na","or.na","dr.na","us.na","mx.na","ca.na","in.na","cc.na","tv.na","ws.na","mobi.na","co.na","com.na","org.na","name","nc","asso.nc","nom.nc","ne","net","nf","com.nf","net.nf","per.nf","rec.nf","web.nf","arts.nf","firm.nf","info.nf","other.nf","store.nf","ng","com.ng","edu.ng","gov.ng","i.ng","mil.ng","mobi.ng","name.ng","net.ng","org.ng","sch.ng","ni","ac.ni","biz.ni","co.ni","com.ni","edu.ni","gob.ni","in.ni","info.ni","int.ni","mil.ni","net.ni","nom.ni","org.ni","web.ni","nl","no","fhs.no","vgs.no","fylkesbibl.no","folkebibl.no","museum.no","idrett.no","priv.no","mil.no","stat.no","dep.no","kommune.no","herad.no","aa.no","ah.no","bu.no","fm.no","hl.no","hm.no","jan-mayen.no","mr.no","nl.no","nt.no","of.no","ol.no","oslo.no","rl.no","sf.no","st.no","svalbard.no","tm.no","tr.no","va.no","vf.no","gs.aa.no","gs.ah.no","gs.bu.no","gs.fm.no","gs.hl.no","gs.hm.no","gs.jan-mayen.no","gs.mr.no","gs.nl.no","gs.nt.no","gs.of.no","gs.ol.no","gs.oslo.no","gs.rl.no","gs.sf.no","gs.st.no","gs.svalbard.no","gs.tm.no","gs.tr.no","gs.va.no","gs.vf.no","akrehamn.no","åkrehamn.no","algard.no","ålgård.no","arna.no","brumunddal.no","bryne.no","bronnoysund.no","brønnøysund.no","drobak.no","drøbak.no","egersund.no","fetsund.no","floro.no","florø.no","fredrikstad.no","hokksund.no","honefoss.no","hønefoss.no","jessheim.no","jorpeland.no","jørpeland.no","kirkenes.no","kopervik.no","krokstadelva.no","langevag.no","langevåg.no","leirvik.no","mjondalen.no","mjøndalen.no","mo-i-rana.no","mosjoen.no","mosjøen.no","nesoddtangen.no","orkanger.no","osoyro.no","osøyro.no","raholt.no","råholt.no","sandnessjoen.no","sandnessjøen.no","skedsmokorset.no","slattum.no","spjelkavik.no","stathelle.no","stavern.no","stjordalshalsen.no","stjørdalshalsen.no","tananger.no","tranby.no","vossevangen.no","afjord.no","åfjord.no","agdenes.no","al.no","ål.no","alesund.no","ålesund.no","alstahaug.no","alta.no","áltá.no","alaheadju.no","álaheadju.no","alvdal.no","amli.no","åmli.no","amot.no","åmot.no","andebu.no","andoy.no","andøy.no","andasuolo.no","ardal.no","årdal.no","aremark.no","arendal.no","ås.no","aseral.no","åseral.no","asker.no","askim.no","askvoll.no","askoy.no","askøy.no","asnes.no","åsnes.no","audnedaln.no","aukra.no","aure.no","aurland.no","aurskog-holand.no","aurskog-høland.no","austevoll.no","austrheim.no","averoy.no","averøy.no","balestrand.no","ballangen.no","balat.no","bálát.no","balsfjord.no","bahccavuotna.no","báhccavuotna.no","bamble.no","bardu.no","beardu.no","beiarn.no","bajddar.no","bájddar.no","baidar.no","báidár.no","berg.no","bergen.no","berlevag.no","berlevåg.no","bearalvahki.no","bearalváhki.no","bindal.no","birkenes.no","bjarkoy.no","bjarkøy.no","bjerkreim.no","bjugn.no","bodo.no","bodø.no","badaddja.no","bådåddjå.no","budejju.no","bokn.no","bremanger.no","bronnoy.no","brønnøy.no","bygland.no","bykle.no","barum.no","bærum.no","bo.telemark.no","bø.telemark.no","bo.nordland.no","bø.nordland.no","bievat.no","bievát.no","bomlo.no","bømlo.no","batsfjord.no","båtsfjord.no","bahcavuotna.no","báhcavuotna.no","dovre.no","drammen.no","drangedal.no","dyroy.no","dyrøy.no","donna.no","dønna.no","eid.no","eidfjord.no","eidsberg.no","eidskog.no","eidsvoll.no","eigersund.no","elverum.no","enebakk.no","engerdal.no","etne.no","etnedal.no","evenes.no","evenassi.no","evenášši.no","evje-og-hornnes.no","farsund.no","fauske.no","fuossko.no","fuoisku.no","fedje.no","fet.no","finnoy.no","finnøy.no","fitjar.no","fjaler.no","fjell.no","flakstad.no","flatanger.no","flekkefjord.no","flesberg.no","flora.no","fla.no","flå.no","folldal.no","forsand.no","fosnes.no","frei.no","frogn.no","froland.no","frosta.no","frana.no","fræna.no","froya.no","frøya.no","fusa.no","fyresdal.no","forde.no","førde.no","gamvik.no","gangaviika.no","gáŋgaviika.no","gaular.no","gausdal.no","gildeskal.no","gildeskål.no","giske.no","gjemnes.no","gjerdrum.no","gjerstad.no","gjesdal.no","gjovik.no","gjøvik.no","gloppen.no","gol.no","gran.no","grane.no","granvin.no","gratangen.no","grimstad.no","grong.no","kraanghke.no","kråanghke.no","grue.no","gulen.no","hadsel.no","halden.no","halsa.no","hamar.no","hamaroy.no","habmer.no","hábmer.no","hapmir.no","hápmir.no","hammerfest.no","hammarfeasta.no","hámmárfeasta.no","haram.no","hareid.no","harstad.no","hasvik.no","aknoluokta.no","ákŋoluokta.no","hattfjelldal.no","aarborte.no","haugesund.no","hemne.no","hemnes.no","hemsedal.no","heroy.more-og-romsdal.no","herøy.møre-og-romsdal.no","heroy.nordland.no","herøy.nordland.no","hitra.no","hjartdal.no","hjelmeland.no","hobol.no","hobøl.no","hof.no","hol.no","hole.no","holmestrand.no","holtalen.no","holtålen.no","hornindal.no","horten.no","hurdal.no","hurum.no","hvaler.no","hyllestad.no","hagebostad.no","hægebostad.no","hoyanger.no","høyanger.no","hoylandet.no","høylandet.no","ha.no","hå.no","ibestad.no","inderoy.no","inderøy.no","iveland.no","jevnaker.no","jondal.no","jolster.no","jølster.no","karasjok.no","karasjohka.no","kárášjohka.no","karlsoy.no","galsa.no","gálsá.no","karmoy.no","karmøy.no","kautokeino.no","guovdageaidnu.no","klepp.no","klabu.no","klæbu.no","kongsberg.no","kongsvinger.no","kragero.no","kragerø.no","kristiansand.no","kristiansund.no","krodsherad.no","krødsherad.no","kvalsund.no","rahkkeravju.no","ráhkkerávju.no","kvam.no","kvinesdal.no","kvinnherad.no","kviteseid.no","kvitsoy.no","kvitsøy.no","kvafjord.no","kvæfjord.no","giehtavuoatna.no","kvanangen.no","kvænangen.no","navuotna.no","návuotna.no","kafjord.no","kåfjord.no","gaivuotna.no","gáivuotna.no","larvik.no","lavangen.no","lavagis.no","loabat.no","loabát.no","lebesby.no","davvesiida.no","leikanger.no","leirfjord.no","leka.no","leksvik.no","lenvik.no","leangaviika.no","leaŋgaviika.no","lesja.no","levanger.no","lier.no","lierne.no","lillehammer.no","lillesand.no","lindesnes.no","lindas.no","lindås.no","lom.no","loppa.no","lahppi.no","láhppi.no","lund.no","lunner.no","luroy.no","lurøy.no","luster.no","lyngdal.no","lyngen.no","ivgu.no","lardal.no","lerdal.no","lærdal.no","lodingen.no","lødingen.no","lorenskog.no","lørenskog.no","loten.no","løten.no","malvik.no","masoy.no","måsøy.no","muosat.no","muosát.no","mandal.no","marker.no","marnardal.no","masfjorden.no","meland.no","meldal.no","melhus.no","meloy.no","meløy.no","meraker.no","meråker.no","moareke.no","moåreke.no","midsund.no","midtre-gauldal.no","modalen.no","modum.no","molde.no","moskenes.no","moss.no","mosvik.no","malselv.no","målselv.no","malatvuopmi.no","málatvuopmi.no","namdalseid.no","aejrie.no","namsos.no","namsskogan.no","naamesjevuemie.no","nååmesjevuemie.no","laakesvuemie.no","nannestad.no","narvik.no","narviika.no","naustdal.no","nedre-eiker.no","nes.akershus.no","nes.buskerud.no","nesna.no","nesodden.no","nesseby.no","unjarga.no","unjárga.no","nesset.no","nissedal.no","nittedal.no","nord-aurdal.no","nord-fron.no","nord-odal.no","norddal.no","nordkapp.no","davvenjarga.no","davvenjárga.no","nordre-land.no","nordreisa.no","raisa.no","ráisa.no","nore-og-uvdal.no","notodden.no","naroy.no","nærøy.no","notteroy.no","nøtterøy.no","odda.no","oksnes.no","øksnes.no","oppdal.no","oppegard.no","oppegård.no","orkdal.no","orland.no","ørland.no","orskog.no","ørskog.no","orsta.no","ørsta.no","os.hedmark.no","os.hordaland.no","osen.no","osteroy.no","osterøy.no","ostre-toten.no","østre-toten.no","overhalla.no","ovre-eiker.no","øvre-eiker.no","oyer.no","øyer.no","oygarden.no","øygarden.no","oystre-slidre.no","øystre-slidre.no","porsanger.no","porsangu.no","porsáŋgu.no","porsgrunn.no","radoy.no","radøy.no","rakkestad.no","rana.no","ruovat.no","randaberg.no","rauma.no","rendalen.no","rennebu.no","rennesoy.no","rennesøy.no","rindal.no","ringebu.no","ringerike.no","ringsaker.no","rissa.no","risor.no","risør.no","roan.no","rollag.no","rygge.no","ralingen.no","rælingen.no","rodoy.no","rødøy.no","romskog.no","rømskog.no","roros.no","røros.no","rost.no","røst.no","royken.no","røyken.no","royrvik.no","røyrvik.no","rade.no","råde.no","salangen.no","siellak.no","saltdal.no","salat.no","sálát.no","sálat.no","samnanger.no","sande.more-og-romsdal.no","sande.møre-og-romsdal.no","sande.vestfold.no","sandefjord.no","sandnes.no","sandoy.no","sandøy.no","sarpsborg.no","sauda.no","sauherad.no","sel.no","selbu.no","selje.no","seljord.no","sigdal.no","siljan.no","sirdal.no","skaun.no","skedsmo.no","ski.no","skien.no","skiptvet.no","skjervoy.no","skjervøy.no","skierva.no","skiervá.no","skjak.no","skjåk.no","skodje.no","skanland.no","skånland.no","skanit.no","skánit.no","smola.no","smøla.no","snillfjord.no","snasa.no","snåsa.no","snoasa.no","snaase.no","snåase.no","sogndal.no","sokndal.no","sola.no","solund.no","songdalen.no","sortland.no","spydeberg.no","stange.no","stavanger.no","steigen.no","steinkjer.no","stjordal.no","stjørdal.no","stokke.no","stor-elvdal.no","stord.no","stordal.no","storfjord.no","omasvuotna.no","strand.no","stranda.no","stryn.no","sula.no","suldal.no","sund.no","sunndal.no","surnadal.no","sveio.no","svelvik.no","sykkylven.no","sogne.no","søgne.no","somna.no","sømna.no","sondre-land.no","søndre-land.no","sor-aurdal.no","sør-aurdal.no","sor-fron.no","sør-fron.no","sor-odal.no","sør-odal.no","sor-varanger.no","sør-varanger.no","matta-varjjat.no","mátta-várjjat.no","sorfold.no","sørfold.no","sorreisa.no","sørreisa.no","sorum.no","sørum.no","tana.no","deatnu.no","time.no","tingvoll.no","tinn.no","tjeldsund.no","dielddanuorri.no","tjome.no","tjøme.no","tokke.no","tolga.no","torsken.no","tranoy.no","tranøy.no","tromso.no","tromsø.no","tromsa.no","romsa.no","trondheim.no","troandin.no","trysil.no","trana.no","træna.no","trogstad.no","trøgstad.no","tvedestrand.no","tydal.no","tynset.no","tysfjord.no","divtasvuodna.no","divttasvuotna.no","tysnes.no","tysvar.no","tysvær.no","tonsberg.no","tønsberg.no","ullensaker.no","ullensvang.no","ulvik.no","utsira.no","vadso.no","vadsø.no","cahcesuolo.no","čáhcesuolo.no","vaksdal.no","valle.no","vang.no","vanylven.no","vardo.no","vardø.no","varggat.no","várggát.no","vefsn.no","vaapste.no","vega.no","vegarshei.no","vegårshei.no","vennesla.no","verdal.no","verran.no","vestby.no","vestnes.no","vestre-slidre.no","vestre-toten.no","vestvagoy.no","vestvågøy.no","vevelstad.no","vik.no","vikna.no","vindafjord.no","volda.no","voss.no","varoy.no","værøy.no","vagan.no","vågan.no","voagat.no","vagsoy.no","vågsøy.no","vaga.no","vågå.no","valer.ostfold.no","våler.østfold.no","valer.hedmark.no","våler.hedmark.no","*.np","nr","biz.nr","info.nr","gov.nr","edu.nr","org.nr","net.nr","com.nr","nu","nz","ac.nz","co.nz","cri.nz","geek.nz","gen.nz","govt.nz","health.nz","iwi.nz","kiwi.nz","maori.nz","mil.nz","māori.nz","net.nz","org.nz","parliament.nz","school.nz","om","co.om","com.om","edu.om","gov.om","med.om","museum.om","net.om","org.om","pro.om","onion","org","pa","ac.pa","gob.pa","com.pa","org.pa","sld.pa","edu.pa","net.pa","ing.pa","abo.pa","med.pa","nom.pa","pe","edu.pe","gob.pe","nom.pe","mil.pe","org.pe","com.pe","net.pe","pf","com.pf","org.pf","edu.pf","*.pg","ph","com.ph","net.ph","org.ph","gov.ph","edu.ph","ngo.ph","mil.ph","i.ph","pk","com.pk","net.pk","edu.pk","org.pk","fam.pk","biz.pk","web.pk","gov.pk","gob.pk","gok.pk","gon.pk","gop.pk","gos.pk","info.pk","pl","com.pl","net.pl","org.pl","aid.pl","agro.pl","atm.pl","auto.pl","biz.pl","edu.pl","gmina.pl","gsm.pl","info.pl","mail.pl","miasta.pl","media.pl","mil.pl","nieruchomosci.pl","nom.pl","pc.pl","powiat.pl","priv.pl","realestate.pl","rel.pl","sex.pl","shop.pl","sklep.pl","sos.pl","szkola.pl","targi.pl","tm.pl","tourism.pl","travel.pl","turystyka.pl","gov.pl","ap.gov.pl","ic.gov.pl","is.gov.pl","us.gov.pl","kmpsp.gov.pl","kppsp.gov.pl","kwpsp.gov.pl","psp.gov.pl","wskr.gov.pl","kwp.gov.pl","mw.gov.pl","ug.gov.pl","um.gov.pl","umig.gov.pl","ugim.gov.pl","upow.gov.pl","uw.gov.pl","starostwo.gov.pl","pa.gov.pl","po.gov.pl","psse.gov.pl","pup.gov.pl","rzgw.gov.pl","sa.gov.pl","so.gov.pl","sr.gov.pl","wsa.gov.pl","sko.gov.pl","uzs.gov.pl","wiih.gov.pl","winb.gov.pl","pinb.gov.pl","wios.gov.pl","witd.gov.pl","wzmiuw.gov.pl","piw.gov.pl","wiw.gov.pl","griw.gov.pl","wif.gov.pl","oum.gov.pl","sdn.gov.pl","zp.gov.pl","uppo.gov.pl","mup.gov.pl","wuoz.gov.pl","konsulat.gov.pl","oirm.gov.pl","augustow.pl","babia-gora.pl","bedzin.pl","beskidy.pl","bialowieza.pl","bialystok.pl","bielawa.pl","bieszczady.pl","boleslawiec.pl","bydgoszcz.pl","bytom.pl","cieszyn.pl","czeladz.pl","czest.pl","dlugoleka.pl","elblag.pl","elk.pl","glogow.pl","gniezno.pl","gorlice.pl","grajewo.pl","ilawa.pl","jaworzno.pl","jelenia-gora.pl","jgora.pl","kalisz.pl","kazimierz-dolny.pl","karpacz.pl","kartuzy.pl","kaszuby.pl","katowice.pl","kepno.pl","ketrzyn.pl","klodzko.pl","kobierzyce.pl","kolobrzeg.pl","konin.pl","konskowola.pl","kutno.pl","lapy.pl","lebork.pl","legnica.pl","lezajsk.pl","limanowa.pl","lomza.pl","lowicz.pl","lubin.pl","lukow.pl","malbork.pl","malopolska.pl","mazowsze.pl","mazury.pl","mielec.pl","mielno.pl","mragowo.pl","naklo.pl","nowaruda.pl","nysa.pl","olawa.pl","olecko.pl","olkusz.pl","olsztyn.pl","opoczno.pl","opole.pl","ostroda.pl","ostroleka.pl","ostrowiec.pl","ostrowwlkp.pl","pila.pl","pisz.pl","podhale.pl","podlasie.pl","polkowice.pl","pomorze.pl","pomorskie.pl","prochowice.pl","pruszkow.pl","przeworsk.pl","pulawy.pl","radom.pl","rawa-maz.pl","rybnik.pl","rzeszow.pl","sanok.pl","sejny.pl","slask.pl","slupsk.pl","sosnowiec.pl","stalowa-wola.pl","skoczow.pl","starachowice.pl","stargard.pl","suwalki.pl","swidnica.pl","swiebodzin.pl","swinoujscie.pl","szczecin.pl","szczytno.pl","tarnobrzeg.pl","tgory.pl","turek.pl","tychy.pl","ustka.pl","walbrzych.pl","warmia.pl","warszawa.pl","waw.pl","wegrow.pl","wielun.pl","wlocl.pl","wloclawek.pl","wodzislaw.pl","wolomin.pl","wroclaw.pl","zachpomor.pl","zagan.pl","zarow.pl","zgora.pl","zgorzelec.pl","pm","pn","gov.pn","co.pn","org.pn","edu.pn","net.pn","post","pr","com.pr","net.pr","org.pr","gov.pr","edu.pr","isla.pr","pro.pr","biz.pr","info.pr","name.pr","est.pr","prof.pr","ac.pr","pro","aaa.pro","aca.pro","acct.pro","avocat.pro","bar.pro","cpa.pro","eng.pro","jur.pro","law.pro","med.pro","recht.pro","ps","edu.ps","gov.ps","sec.ps","plo.ps","com.ps","org.ps","net.ps","pt","net.pt","gov.pt","org.pt","edu.pt","int.pt","publ.pt","com.pt","nome.pt","pw","co.pw","ne.pw","or.pw","ed.pw","go.pw","belau.pw","py","com.py","coop.py","edu.py","gov.py","mil.py","net.py","org.py","qa","com.qa","edu.qa","gov.qa","mil.qa","name.qa","net.qa","org.qa","sch.qa","re","asso.re","com.re","nom.re","ro","arts.ro","com.ro","firm.ro","info.ro","nom.ro","nt.ro","org.ro","rec.ro","store.ro","tm.ro","www.ro","rs","ac.rs","co.rs","edu.rs","gov.rs","in.rs","org.rs","ru","rw","ac.rw","co.rw","coop.rw","gov.rw","mil.rw","net.rw","org.rw","sa","com.sa","net.sa","org.sa","gov.sa","med.sa","pub.sa","edu.sa","sch.sa","sb","com.sb","edu.sb","gov.sb","net.sb","org.sb","sc","com.sc","gov.sc","net.sc","org.sc","edu.sc","sd","com.sd","net.sd","org.sd","edu.sd","med.sd","tv.sd","gov.sd","info.sd","se","a.se","ac.se","b.se","bd.se","brand.se","c.se","d.se","e.se","f.se","fh.se","fhsk.se","fhv.se","g.se","h.se","i.se","k.se","komforb.se","kommunalforbund.se","komvux.se","l.se","lanbib.se","m.se","n.se","naturbruksgymn.se","o.se","org.se","p.se","parti.se","pp.se","press.se","r.se","s.se","t.se","tm.se","u.se","w.se","x.se","y.se","z.se","sg","com.sg","net.sg","org.sg","gov.sg","edu.sg","per.sg","sh","com.sh","net.sh","gov.sh","org.sh","mil.sh","si","sj","sk","sl","com.sl","net.sl","edu.sl","gov.sl","org.sl","sm","sn","art.sn","com.sn","edu.sn","gouv.sn","org.sn","perso.sn","univ.sn","so","com.so","edu.so","gov.so","me.so","net.so","org.so","sr","ss","biz.ss","com.ss","edu.ss","gov.ss","net.ss","org.ss","st","co.st","com.st","consulado.st","edu.st","embaixada.st","gov.st","mil.st","net.st","org.st","principe.st","saotome.st","store.st","su","sv","com.sv","edu.sv","gob.sv","org.sv","red.sv","sx","gov.sx","sy","edu.sy","gov.sy","net.sy","mil.sy","com.sy","org.sy","sz","co.sz","ac.sz","org.sz","tc","td","tel","tf","tg","th","ac.th","co.th","go.th","in.th","mi.th","net.th","or.th","tj","ac.tj","biz.tj","co.tj","com.tj","edu.tj","go.tj","gov.tj","int.tj","mil.tj","name.tj","net.tj","nic.tj","org.tj","test.tj","web.tj","tk","tl","gov.tl","tm","com.tm","co.tm","org.tm","net.tm","nom.tm","gov.tm","mil.tm","edu.tm","tn","com.tn","ens.tn","fin.tn","gov.tn","ind.tn","intl.tn","nat.tn","net.tn","org.tn","info.tn","perso.tn","tourism.tn","edunet.tn","rnrt.tn","rns.tn","rnu.tn","mincom.tn","agrinet.tn","defense.tn","turen.tn","to","com.to","gov.to","net.to","org.to","edu.to","mil.to","tr","av.tr","bbs.tr","bel.tr","biz.tr","com.tr","dr.tr","edu.tr","gen.tr","gov.tr","info.tr","mil.tr","k12.tr","kep.tr","name.tr","net.tr","org.tr","pol.tr","tel.tr","tsk.tr","tv.tr","web.tr","nc.tr","gov.nc.tr","tt","co.tt","com.tt","org.tt","net.tt","biz.tt","info.tt","pro.tt","int.tt","coop.tt","jobs.tt","mobi.tt","travel.tt","museum.tt","aero.tt","name.tt","gov.tt","edu.tt","tv","tw","edu.tw","gov.tw","mil.tw","com.tw","net.tw","org.tw","idv.tw","game.tw","ebiz.tw","club.tw","網路.tw","組織.tw","商業.tw","tz","ac.tz","co.tz","go.tz","hotel.tz","info.tz","me.tz","mil.tz","mobi.tz","ne.tz","or.tz","sc.tz","tv.tz","ua","com.ua","edu.ua","gov.ua","in.ua","net.ua","org.ua","cherkassy.ua","cherkasy.ua","chernigov.ua","chernihiv.ua","chernivtsi.ua","chernovtsy.ua","ck.ua","cn.ua","cr.ua","crimea.ua","cv.ua","dn.ua","dnepropetrovsk.ua","dnipropetrovsk.ua","dominic.ua","donetsk.ua","dp.ua","if.ua","ivano-frankivsk.ua","kh.ua","kharkiv.ua","kharkov.ua","kherson.ua","khmelnitskiy.ua","khmelnytskyi.ua","kiev.ua","kirovograd.ua","km.ua","kr.ua","krym.ua","ks.ua","kv.ua","kyiv.ua","lg.ua","lt.ua","lugansk.ua","lutsk.ua","lv.ua","lviv.ua","mk.ua","mykolaiv.ua","nikolaev.ua","od.ua","odesa.ua","odessa.ua","pl.ua","poltava.ua","rivne.ua","rovno.ua","rv.ua","sb.ua","sebastopol.ua","sevastopol.ua","sm.ua","sumy.ua","te.ua","ternopil.ua","uz.ua","uzhgorod.ua","vinnica.ua","vinnytsia.ua","vn.ua","volyn.ua","yalta.ua","zaporizhzhe.ua","zaporizhzhia.ua","zhitomir.ua","zhytomyr.ua","zp.ua","zt.ua","ug","co.ug","or.ug","ac.ug","sc.ug","go.ug","ne.ug","com.ug","org.ug","uk","ac.uk","co.uk","gov.uk","ltd.uk","me.uk","net.uk","nhs.uk","org.uk","plc.uk","police.uk","*.sch.uk","us","dni.us","fed.us","isa.us","kids.us","nsn.us","ak.us","al.us","ar.us","as.us","az.us","ca.us","co.us","ct.us","dc.us","de.us","fl.us","ga.us","gu.us","hi.us","ia.us","id.us","il.us","in.us","ks.us","ky.us","la.us","ma.us","md.us","me.us","mi.us","mn.us","mo.us","ms.us","mt.us","nc.us","nd.us","ne.us","nh.us","nj.us","nm.us","nv.us","ny.us","oh.us","ok.us","or.us","pa.us","pr.us","ri.us","sc.us","sd.us","tn.us","tx.us","ut.us","vi.us","vt.us","va.us","wa.us","wi.us","wv.us","wy.us","k12.ak.us","k12.al.us","k12.ar.us","k12.as.us","k12.az.us","k12.ca.us","k12.co.us","k12.ct.us","k12.dc.us","k12.de.us","k12.fl.us","k12.ga.us","k12.gu.us","k12.ia.us","k12.id.us","k12.il.us","k12.in.us","k12.ks.us","k12.ky.us","k12.la.us","k12.ma.us","k12.md.us","k12.me.us","k12.mi.us","k12.mn.us","k12.mo.us","k12.ms.us","k12.mt.us","k12.nc.us","k12.ne.us","k12.nh.us","k12.nj.us","k12.nm.us","k12.nv.us","k12.ny.us","k12.oh.us","k12.ok.us","k12.or.us","k12.pa.us","k12.pr.us","k12.ri.us","k12.sc.us","k12.tn.us","k12.tx.us","k12.ut.us","k12.vi.us","k12.vt.us","k12.va.us","k12.wa.us","k12.wi.us","k12.wy.us","cc.ak.us","cc.al.us","cc.ar.us","cc.as.us","cc.az.us","cc.ca.us","cc.co.us","cc.ct.us","cc.dc.us","cc.de.us","cc.fl.us","cc.ga.us","cc.gu.us","cc.hi.us","cc.ia.us","cc.id.us","cc.il.us","cc.in.us","cc.ks.us","cc.ky.us","cc.la.us","cc.ma.us","cc.md.us","cc.me.us","cc.mi.us","cc.mn.us","cc.mo.us","cc.ms.us","cc.mt.us","cc.nc.us","cc.nd.us","cc.ne.us","cc.nh.us","cc.nj.us","cc.nm.us","cc.nv.us","cc.ny.us","cc.oh.us","cc.ok.us","cc.or.us","cc.pa.us","cc.pr.us","cc.ri.us","cc.sc.us","cc.sd.us","cc.tn.us","cc.tx.us","cc.ut.us","cc.vi.us","cc.vt.us","cc.va.us","cc.wa.us","cc.wi.us","cc.wv.us","cc.wy.us","lib.ak.us","lib.al.us","lib.ar.us","lib.as.us","lib.az.us","lib.ca.us","lib.co.us","lib.ct.us","lib.dc.us","lib.fl.us","lib.ga.us","lib.gu.us","lib.hi.us","lib.ia.us","lib.id.us","lib.il.us","lib.in.us","lib.ks.us","lib.ky.us","lib.la.us","lib.ma.us","lib.md.us","lib.me.us","lib.mi.us","lib.mn.us","lib.mo.us","lib.ms.us","lib.mt.us","lib.nc.us","lib.nd.us","lib.ne.us","lib.nh.us","lib.nj.us","lib.nm.us","lib.nv.us","lib.ny.us","lib.oh.us","lib.ok.us","lib.or.us","lib.pa.us","lib.pr.us","lib.ri.us","lib.sc.us","lib.sd.us","lib.tn.us","lib.tx.us","lib.ut.us","lib.vi.us","lib.vt.us","lib.va.us","lib.wa.us","lib.wi.us","lib.wy.us","pvt.k12.ma.us","chtr.k12.ma.us","paroch.k12.ma.us","ann-arbor.mi.us","cog.mi.us","dst.mi.us","eaton.mi.us","gen.mi.us","mus.mi.us","tec.mi.us","washtenaw.mi.us","uy","com.uy","edu.uy","gub.uy","mil.uy","net.uy","org.uy","uz","co.uz","com.uz","net.uz","org.uz","va","vc","com.vc","net.vc","org.vc","gov.vc","mil.vc","edu.vc","ve","arts.ve","co.ve","com.ve","e12.ve","edu.ve","firm.ve","gob.ve","gov.ve","info.ve","int.ve","mil.ve","net.ve","org.ve","rec.ve","store.ve","tec.ve","web.ve","vg","vi","co.vi","com.vi","k12.vi","net.vi","org.vi","vn","com.vn","net.vn","org.vn","edu.vn","gov.vn","int.vn","ac.vn","biz.vn","info.vn","name.vn","pro.vn","health.vn","vu","com.vu","edu.vu","net.vu","org.vu","wf","ws","com.ws","net.ws","org.ws","gov.ws","edu.ws","yt","امارات","հայ","বাংলা","бг","бел","中国","中國","الجزائر","مصر","ею","ευ","موريتانيا","გე","ελ","香港","公司.香港","教育.香港","政府.香港","個人.香港","網絡.香港","組織.香港","ಭಾರತ","ଭାରତ","ভাৰত","भारतम्","भारोत","ڀارت","ഭാരതം","भारत","بارت","بھارت","భారత్","ભારત","ਭਾਰਤ","ভারত","இந்தியா","ایران","ايران","عراق","الاردن","한국","қаз","ලංකා","இலங்கை","المغرب","мкд","мон","澳門","澳门","مليسيا","عمان","پاکستان","پاكستان","فلسطين","срб","пр.срб","орг.срб","обр.срб","од.срб","упр.срб","ак.срб","рф","قطر","السعودية","السعودیة","السعودیۃ","السعوديه","سودان","新加坡","சிங்கப்பூர்","سورية","سوريا","ไทย","ศึกษา.ไทย","ธุรกิจ.ไทย","รัฐบาล.ไทย","ทหาร.ไทย","เน็ต.ไทย","องค์กร.ไทย","تونس","台灣","台湾","臺灣","укр","اليمن","xxx","*.ye","ac.za","agric.za","alt.za","co.za","edu.za","gov.za","grondar.za","law.za","mil.za","net.za","ngo.za","nic.za","nis.za","nom.za","org.za","school.za","tm.za","web.za","zm","ac.zm","biz.zm","co.zm","com.zm","edu.zm","gov.zm","info.zm","mil.zm","net.zm","org.zm","sch.zm","zw","ac.zw","co.zw","gov.zw","mil.zw","org.zw","aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","academy","accenture","accountant","accountants","aco","actor","adac","ads","adult","aeg","aetna","afamilycompany","afl","africa","agakhan","agency","aig","aigo","airbus","airforce","airtel","akdn","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","aol","apartments","app","apple","aquarelle","arab","aramco","archi","army","art","arte","asda","associates","athleta","attorney","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aws","axa","azure","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bbc","bbt","bbva","bcg","bcn","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bharti","bible","bid","bike","bing","bingo","bio","black","blackfriday","blockbuster","blog","bloomberg","blue","bms","bmw","bnpparibas","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","bradesco","bridgestone","broadway","broker","brother","brussels","budapest","bugatti","build","builders","business","buy","buzz","bzh","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","caseih","cash","casino","catering","catholic","cba","cbn","cbre","cbs","ceb","center","ceo","cern","cfa","cfd","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","coach","codes","coffee","college","cologne","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","corsica","country","coupon","coupons","courses","cpa","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","csc","cuisinella","cymru","cyou","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dnp","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","duck","dunlop","dupont","durban","dvag","dvr","earth","eat","eco","edeka","education","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","ericsson","erni","esq","estate","esurance","etisalat","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","flickr","flights","flir","florist","flowers","fly","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fujixerox","fun","fund","furniture","futbol","fyi","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gbiz","gdn","gea","gent","genting","george","ggee","gift","gifts","gives","giving","glade","glass","gle","global","globo","gmail","gmbh","gmo","gmx","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","grainger","graphics","gratis","green","gripe","grocery","group","guardian","gucci","guge","guide","guitars","guru","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hkt","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hsbc","hughes","hyatt","hyundai","ibm","icbc","ice","icu","ieee","ifm","ikano","imamat","imdb","immo","immobilien","inc","industries","infiniti","ing","ink","institute","insurance","insure","intel","international","intuit","investments","ipiranga","irish","ismaili","ist","istanbul","itau","itv","iveco","jaguar","java","jcb","jcp","jeep","jetzt","jewelry","jio","jll","jmp","jnj","joburg","jot","joy","jpmorgan","jprs","juegos","juniper","kaufen","kddi","kerryhotels","kerrylogistics","kerryproperties","kfh","kia","kim","kinder","kindle","kitchen","kiwi","koeln","komatsu","kosher","kpmg","kpn","krd","kred","kuokgroup","kyoto","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lixil","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","ltd","ltda","lundbeck","lupin","luxe","luxury","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mckinsey","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","metlife","miami","microsoft","mini","mint","mit","mitsubishi","mlb","mls","mma","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","msd","mtn","mtr","mutual","nab","nadex","nagoya","nationwide","natura","navy","nba","nec","netbank","netflix","network","neustar","new","newholland","news","next","nextdirect","nexus","nfl","ngo","nhk","nico","nike","nikon","ninja","nissan","nissay","nokia","northwesternmutual","norton","now","nowruz","nowtv","nra","nrw","ntt","nyc","obi","observer","off","office","okinawa","olayan","olayangroup","oldnavy","ollo","omega","one","ong","onl","online","onyourside","ooo","open","oracle","orange","organic","origins","osaka","otsuka","ott","ovh","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pet","pfizer","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","place","play","playstation","plumbing","plus","pnc","pohl","poker","politie","porn","pramerica","praxi","press","prime","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","pub","pwc","qpon","quebec","quest","qvc","racing","radio","raid","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","rightathome","ril","rio","rip","rmit","rocher","rocks","rodeo","rogers","room","rsvp","rugby","ruhr","run","rwe","ryukyu","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sbi","sbs","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scjohnson","scor","scot","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","shriram","silk","sina","singles","site","ski","skin","sky","skype","sling","smart","smile","sncf","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","spreadbetting","srl","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","sucks","supplies","supply","support","surf","surgery","suzuki","swatch","swiftcover","swiss","sydney","symantec","systems","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tci","tdk","team","tech","technology","temasek","tennis","teva","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tjmaxx","tjx","tkmaxx","tmall","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tube","tui","tunes","tushu","tvs","ubank","ubs","unicom","university","uno","uol","ups","vacations","vana","vanguard","vegas","ventures","verisign","versicherung","vet","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vodka","volkswagen","volvo","vote","voting","voto","voyage","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","कॉम","セール","佛山","慈善","集团","在线","大众汽车","点看","คอม","八卦","موقع","公益","公司","香格里拉","网站","移动","我爱你","москва","католик","онлайн","сайт","联通","קום","时尚","微博","淡马锡","ファッション","орг","नेट","ストア","アマゾン","삼성","商标","商店","商城","дети","ポイント","新闻","工行","家電","كوم","中文网","中信","娱乐","谷歌","電訊盈科","购物","クラウド","通販","网店","संगठन","餐厅","网络","ком","亚马逊","诺基亚","食品","飞利浦","手表","手机","ارامكو","العليان","اتصالات","بازار","ابوظبي","كاثوليك","همراه","닷컴","政府","شبكة","بيتك","عرب","机构","组织机构","健康","招聘","рус","珠宝","大拿","みんな","グーグル","世界","書籍","网址","닷넷","コム","天主教","游戏","vermögensberater","vermögensberatung","企业","信息","嘉里大酒店","嘉里","广东","政务","xyz","yachts","yahoo","yamaxun","yandex","yodobashi","yoga","yokohama","you","youtube","yun","zappos","zara","zero","zip","zone","zuerich","cc.ua","inf.ua","ltd.ua","adobeaemcloud.com","adobeaemcloud.net","*.dev.adobeaemcloud.com","beep.pl","barsy.ca","*.compute.estate","*.alces.network","altervista.org","alwaysdata.net","cloudfront.net","*.compute.amazonaws.com","*.compute-1.amazonaws.com","*.compute.amazonaws.com.cn","us-east-1.amazonaws.com","cn-north-1.eb.amazonaws.com.cn","cn-northwest-1.eb.amazonaws.com.cn","elasticbeanstalk.com","ap-northeast-1.elasticbeanstalk.com","ap-northeast-2.elasticbeanstalk.com","ap-northeast-3.elasticbeanstalk.com","ap-south-1.elasticbeanstalk.com","ap-southeast-1.elasticbeanstalk.com","ap-southeast-2.elasticbeanstalk.com","ca-central-1.elasticbeanstalk.com","eu-central-1.elasticbeanstalk.com","eu-west-1.elasticbeanstalk.com","eu-west-2.elasticbeanstalk.com","eu-west-3.elasticbeanstalk.com","sa-east-1.elasticbeanstalk.com","us-east-1.elasticbeanstalk.com","us-east-2.elasticbeanstalk.com","us-gov-west-1.elasticbeanstalk.com","us-west-1.elasticbeanstalk.com","us-west-2.elasticbeanstalk.com","*.elb.amazonaws.com","*.elb.amazonaws.com.cn","s3.amazonaws.com","s3-ap-northeast-1.amazonaws.com","s3-ap-northeast-2.amazonaws.com","s3-ap-south-1.amazonaws.com","s3-ap-southeast-1.amazonaws.com","s3-ap-southeast-2.amazonaws.com","s3-ca-central-1.amazonaws.com","s3-eu-central-1.amazonaws.com","s3-eu-west-1.amazonaws.com","s3-eu-west-2.amazonaws.com","s3-eu-west-3.amazonaws.com","s3-external-1.amazonaws.com","s3-fips-us-gov-west-1.amazonaws.com","s3-sa-east-1.amazonaws.com","s3-us-gov-west-1.amazonaws.com","s3-us-east-2.amazonaws.com","s3-us-west-1.amazonaws.com","s3-us-west-2.amazonaws.com","s3.ap-northeast-2.amazonaws.com","s3.ap-south-1.amazonaws.com","s3.cn-north-1.amazonaws.com.cn","s3.ca-central-1.amazonaws.com","s3.eu-central-1.amazonaws.com","s3.eu-west-2.amazonaws.com","s3.eu-west-3.amazonaws.com","s3.us-east-2.amazonaws.com","s3.dualstack.ap-northeast-1.amazonaws.com","s3.dualstack.ap-northeast-2.amazonaws.com","s3.dualstack.ap-south-1.amazonaws.com","s3.dualstack.ap-southeast-1.amazonaws.com","s3.dualstack.ap-southeast-2.amazonaws.com","s3.dualstack.ca-central-1.amazonaws.com","s3.dualstack.eu-central-1.amazonaws.com","s3.dualstack.eu-west-1.amazonaws.com","s3.dualstack.eu-west-2.amazonaws.com","s3.dualstack.eu-west-3.amazonaws.com","s3.dualstack.sa-east-1.amazonaws.com","s3.dualstack.us-east-1.amazonaws.com","s3.dualstack.us-east-2.amazonaws.com","s3-website-us-east-1.amazonaws.com","s3-website-us-west-1.amazonaws.com","s3-website-us-west-2.amazonaws.com","s3-website-ap-northeast-1.amazonaws.com","s3-website-ap-southeast-1.amazonaws.com","s3-website-ap-southeast-2.amazonaws.com","s3-website-eu-west-1.amazonaws.com","s3-website-sa-east-1.amazonaws.com","s3-website.ap-northeast-2.amazonaws.com","s3-website.ap-south-1.amazonaws.com","s3-website.ca-central-1.amazonaws.com","s3-website.eu-central-1.amazonaws.com","s3-website.eu-west-2.amazonaws.com","s3-website.eu-west-3.amazonaws.com","s3-website.us-east-2.amazonaws.com","amsw.nl","t3l3p0rt.net","tele.amune.org","apigee.io","on-aptible.com","user.aseinet.ne.jp","gv.vc","d.gv.vc","user.party.eus","pimienta.org","poivron.org","potager.org","sweetpepper.org","myasustor.com","myfritz.net","*.awdev.ca","*.advisor.ws","b-data.io","backplaneapp.io","balena-devices.com","app.banzaicloud.io","betainabox.com","bnr.la","blackbaudcdn.net","boomla.net","boxfuse.io","square7.ch","bplaced.com","bplaced.de","square7.de","bplaced.net","square7.net","browsersafetymark.io","uk0.bigv.io","dh.bytemark.co.uk","vm.bytemark.co.uk","mycd.eu","carrd.co","crd.co","uwu.ai","ae.org","ar.com","br.com","cn.com","com.de","com.se","de.com","eu.com","gb.com","gb.net","hu.com","hu.net","jp.net","jpn.com","kr.com","mex.com","no.com","qc.com","ru.com","sa.com","se.net","uk.com","uk.net","us.com","uy.com","za.bz","za.com","africa.com","gr.com","in.net","us.org","co.com","c.la","certmgr.org","xenapponazure.com","discourse.group","discourse.team","virtueeldomein.nl","cleverapps.io","*.lcl.dev","*.stg.dev","c66.me","cloud66.ws","cloud66.zone","jdevcloud.com","wpdevcloud.com","cloudaccess.host","freesite.host","cloudaccess.net","cloudcontrolled.com","cloudcontrolapp.com","cloudera.site","trycloudflare.com","workers.dev","wnext.app","co.ca","*.otap.co","co.cz","c.cdn77.org","cdn77-ssl.net","r.cdn77.net","rsc.cdn77.org","ssl.origin.cdn77-secure.org","cloudns.asia","cloudns.biz","cloudns.club","cloudns.cc","cloudns.eu","cloudns.in","cloudns.info","cloudns.org","cloudns.pro","cloudns.pw","cloudns.us","cloudeity.net","cnpy.gdn","co.nl","co.no","webhosting.be","hosting-cluster.nl","ac.ru","edu.ru","gov.ru","int.ru","mil.ru","test.ru","dyn.cosidns.de","dynamisches-dns.de","dnsupdater.de","internet-dns.de","l-o-g-i-n.de","dynamic-dns.info","feste-ip.net","knx-server.net","static-access.net","realm.cz","*.cryptonomic.net","cupcake.is","*.customer-oci.com","*.oci.customer-oci.com","*.ocp.customer-oci.com","*.ocs.customer-oci.com","cyon.link","cyon.site","daplie.me","localhost.daplie.me","dattolocal.com","dattorelay.com","dattoweb.com","mydatto.com","dattolocal.net","mydatto.net","biz.dk","co.dk","firm.dk","reg.dk","store.dk","*.dapps.earth","*.bzz.dapps.earth","builtwithdark.com","edgestack.me","debian.net","dedyn.io","dnshome.de","online.th","shop.th","drayddns.com","dreamhosters.com","mydrobo.com","drud.io","drud.us","duckdns.org","dy.fi","tunk.org","dyndns-at-home.com","dyndns-at-work.com","dyndns-blog.com","dyndns-free.com","dyndns-home.com","dyndns-ip.com","dyndns-mail.com","dyndns-office.com","dyndns-pics.com","dyndns-remote.com","dyndns-server.com","dyndns-web.com","dyndns-wiki.com","dyndns-work.com","dyndns.biz","dyndns.info","dyndns.org","dyndns.tv","at-band-camp.net","ath.cx","barrel-of-knowledge.info","barrell-of-knowledge.info","better-than.tv","blogdns.com","blogdns.net","blogdns.org","blogsite.org","boldlygoingnowhere.org","broke-it.net","buyshouses.net","cechire.com","dnsalias.com","dnsalias.net","dnsalias.org","dnsdojo.com","dnsdojo.net","dnsdojo.org","does-it.net","doesntexist.com","doesntexist.org","dontexist.com","dontexist.net","dontexist.org","doomdns.com","doomdns.org","dvrdns.org","dyn-o-saur.com","dynalias.com","dynalias.net","dynalias.org","dynathome.net","dyndns.ws","endofinternet.net","endofinternet.org","endoftheinternet.org","est-a-la-maison.com","est-a-la-masion.com","est-le-patron.com","est-mon-blogueur.com","for-better.biz","for-more.biz","for-our.info","for-some.biz","for-the.biz","forgot.her.name","forgot.his.name","from-ak.com","from-al.com","from-ar.com","from-az.net","from-ca.com","from-co.net","from-ct.com","from-dc.com","from-de.com","from-fl.com","from-ga.com","from-hi.com","from-ia.com","from-id.com","from-il.com","from-in.com","from-ks.com","from-ky.com","from-la.net","from-ma.com","from-md.com","from-me.org","from-mi.com","from-mn.com","from-mo.com","from-ms.com","from-mt.com","from-nc.com","from-nd.com","from-ne.com","from-nh.com","from-nj.com","from-nm.com","from-nv.com","from-ny.net","from-oh.com","from-ok.com","from-or.com","from-pa.com","from-pr.com","from-ri.com","from-sc.com","from-sd.com","from-tn.com","from-tx.com","from-ut.com","from-va.com","from-vt.com","from-wa.com","from-wi.com","from-wv.com","from-wy.com","ftpaccess.cc","fuettertdasnetz.de","game-host.org","game-server.cc","getmyip.com","gets-it.net","go.dyndns.org","gotdns.com","gotdns.org","groks-the.info","groks-this.info","ham-radio-op.net","here-for-more.info","hobby-site.com","hobby-site.org","home.dyndns.org","homedns.org","homeftp.net","homeftp.org","homeip.net","homelinux.com","homelinux.net","homelinux.org","homeunix.com","homeunix.net","homeunix.org","iamallama.com","in-the-band.net","is-a-anarchist.com","is-a-blogger.com","is-a-bookkeeper.com","is-a-bruinsfan.org","is-a-bulls-fan.com","is-a-candidate.org","is-a-caterer.com","is-a-celticsfan.org","is-a-chef.com","is-a-chef.net","is-a-chef.org","is-a-conservative.com","is-a-cpa.com","is-a-cubicle-slave.com","is-a-democrat.com","is-a-designer.com","is-a-doctor.com","is-a-financialadvisor.com","is-a-geek.com","is-a-geek.net","is-a-geek.org","is-a-green.com","is-a-guru.com","is-a-hard-worker.com","is-a-hunter.com","is-a-knight.org","is-a-landscaper.com","is-a-lawyer.com","is-a-liberal.com","is-a-libertarian.com","is-a-linux-user.org","is-a-llama.com","is-a-musician.com","is-a-nascarfan.com","is-a-nurse.com","is-a-painter.com","is-a-patsfan.org","is-a-personaltrainer.com","is-a-photographer.com","is-a-player.com","is-a-republican.com","is-a-rockstar.com","is-a-socialist.com","is-a-soxfan.org","is-a-student.com","is-a-teacher.com","is-a-techie.com","is-a-therapist.com","is-an-accountant.com","is-an-actor.com","is-an-actress.com","is-an-anarchist.com","is-an-artist.com","is-an-engineer.com","is-an-entertainer.com","is-by.us","is-certified.com","is-found.org","is-gone.com","is-into-anime.com","is-into-cars.com","is-into-cartoons.com","is-into-games.com","is-leet.com","is-lost.org","is-not-certified.com","is-saved.org","is-slick.com","is-uberleet.com","is-very-bad.org","is-very-evil.org","is-very-good.org","is-very-nice.org","is-very-sweet.org","is-with-theband.com","isa-geek.com","isa-geek.net","isa-geek.org","isa-hockeynut.com","issmarterthanyou.com","isteingeek.de","istmein.de","kicks-ass.net","kicks-ass.org","knowsitall.info","land-4-sale.us","lebtimnetz.de","leitungsen.de","likes-pie.com","likescandy.com","merseine.nu","mine.nu","misconfused.org","mypets.ws","myphotos.cc","neat-url.com","office-on-the.net","on-the-web.tv","podzone.net","podzone.org","readmyblog.org","saves-the-whales.com","scrapper-site.net","scrapping.cc","selfip.biz","selfip.com","selfip.info","selfip.net","selfip.org","sells-for-less.com","sells-for-u.com","sells-it.net","sellsyourhome.org","servebbs.com","servebbs.net","servebbs.org","serveftp.net","serveftp.org","servegame.org","shacknet.nu","simple-url.com","space-to-rent.com","stuff-4-sale.org","stuff-4-sale.us","teaches-yoga.com","thruhere.net","traeumtgerade.de","webhop.biz","webhop.info","webhop.net","webhop.org","worse-than.tv","writesthisblog.com","ddnss.de","dyn.ddnss.de","dyndns.ddnss.de","dyndns1.de","dyn-ip24.de","home-webserver.de","dyn.home-webserver.de","myhome-server.de","ddnss.org","definima.net","definima.io","bci.dnstrace.pro","ddnsfree.com","ddnsgeek.com","giize.com","gleeze.com","kozow.com","loseyourip.com","ooguy.com","theworkpc.com","casacam.net","dynu.net","accesscam.org","camdvr.org","freeddns.org","mywire.org","webredirect.org","myddns.rocks","blogsite.xyz","dynv6.net","e4.cz","en-root.fr","mytuleap.com","onred.one","staging.onred.one","enonic.io","customer.enonic.io","eu.org","al.eu.org","asso.eu.org","at.eu.org","au.eu.org","be.eu.org","bg.eu.org","ca.eu.org","cd.eu.org","ch.eu.org","cn.eu.org","cy.eu.org","cz.eu.org","de.eu.org","dk.eu.org","edu.eu.org","ee.eu.org","es.eu.org","fi.eu.org","fr.eu.org","gr.eu.org","hr.eu.org","hu.eu.org","ie.eu.org","il.eu.org","in.eu.org","int.eu.org","is.eu.org","it.eu.org","jp.eu.org","kr.eu.org","lt.eu.org","lu.eu.org","lv.eu.org","mc.eu.org","me.eu.org","mk.eu.org","mt.eu.org","my.eu.org","net.eu.org","ng.eu.org","nl.eu.org","no.eu.org","nz.eu.org","paris.eu.org","pl.eu.org","pt.eu.org","q-a.eu.org","ro.eu.org","ru.eu.org","se.eu.org","si.eu.org","sk.eu.org","tr.eu.org","uk.eu.org","us.eu.org","eu-1.evennode.com","eu-2.evennode.com","eu-3.evennode.com","eu-4.evennode.com","us-1.evennode.com","us-2.evennode.com","us-3.evennode.com","us-4.evennode.com","twmail.cc","twmail.net","twmail.org","mymailer.com.tw","url.tw","apps.fbsbx.com","ru.net","adygeya.ru","bashkiria.ru","bir.ru","cbg.ru","com.ru","dagestan.ru","grozny.ru","kalmykia.ru","kustanai.ru","marine.ru","mordovia.ru","msk.ru","mytis.ru","nalchik.ru","nov.ru","pyatigorsk.ru","spb.ru","vladikavkaz.ru","vladimir.ru","abkhazia.su","adygeya.su","aktyubinsk.su","arkhangelsk.su","armenia.su","ashgabad.su","azerbaijan.su","balashov.su","bashkiria.su","bryansk.su","bukhara.su","chimkent.su","dagestan.su","east-kazakhstan.su","exnet.su","georgia.su","grozny.su","ivanovo.su","jambyl.su","kalmykia.su","kaluga.su","karacol.su","karaganda.su","karelia.su","khakassia.su","krasnodar.su","kurgan.su","kustanai.su","lenug.su","mangyshlak.su","mordovia.su","msk.su","murmansk.su","nalchik.su","navoi.su","north-kazakhstan.su","nov.su","obninsk.su","penza.su","pokrovsk.su","sochi.su","spb.su","tashkent.su","termez.su","togliatti.su","troitsk.su","tselinograd.su","tula.su","tuva.su","vladikavkaz.su","vladimir.su","vologda.su","channelsdvr.net","u.channelsdvr.net","fastly-terrarium.com","fastlylb.net","map.fastlylb.net","freetls.fastly.net","map.fastly.net","a.prod.fastly.net","global.prod.fastly.net","a.ssl.fastly.net","b.ssl.fastly.net","global.ssl.fastly.net","fastpanel.direct","fastvps-server.com","fhapp.xyz","fedorainfracloud.org","fedorapeople.org","cloud.fedoraproject.org","app.os.fedoraproject.org","app.os.stg.fedoraproject.org","mydobiss.com","filegear.me","filegear-au.me","filegear-de.me","filegear-gb.me","filegear-ie.me","filegear-jp.me","filegear-sg.me","firebaseapp.com","flynnhub.com","flynnhosting.net","0e.vc","freebox-os.com","freeboxos.com","fbx-os.fr","fbxos.fr","freebox-os.fr","freeboxos.fr","freedesktop.org","*.futurecms.at","*.ex.futurecms.at","*.in.futurecms.at","futurehosting.at","futuremailing.at","*.ex.ortsinfo.at","*.kunden.ortsinfo.at","*.statics.cloud","service.gov.uk","gehirn.ne.jp","usercontent.jp","gentapps.com","lab.ms","github.io","githubusercontent.com","gitlab.io","glitch.me","lolipop.io","cloudapps.digital","london.cloudapps.digital","homeoffice.gov.uk","ro.im","shop.ro","goip.de","run.app","a.run.app","web.app","*.0emm.com","appspot.com","*.r.appspot.com","blogspot.ae","blogspot.al","blogspot.am","blogspot.ba","blogspot.be","blogspot.bg","blogspot.bj","blogspot.ca","blogspot.cf","blogspot.ch","blogspot.cl","blogspot.co.at","blogspot.co.id","blogspot.co.il","blogspot.co.ke","blogspot.co.nz","blogspot.co.uk","blogspot.co.za","blogspot.com","blogspot.com.ar","blogspot.com.au","blogspot.com.br","blogspot.com.by","blogspot.com.co","blogspot.com.cy","blogspot.com.ee","blogspot.com.eg","blogspot.com.es","blogspot.com.mt","blogspot.com.ng","blogspot.com.tr","blogspot.com.uy","blogspot.cv","blogspot.cz","blogspot.de","blogspot.dk","blogspot.fi","blogspot.fr","blogspot.gr","blogspot.hk","blogspot.hr","blogspot.hu","blogspot.ie","blogspot.in","blogspot.is","blogspot.it","blogspot.jp","blogspot.kr","blogspot.li","blogspot.lt","blogspot.lu","blogspot.md","blogspot.mk","blogspot.mr","blogspot.mx","blogspot.my","blogspot.nl","blogspot.no","blogspot.pe","blogspot.pt","blogspot.qa","blogspot.re","blogspot.ro","blogspot.rs","blogspot.ru","blogspot.se","blogspot.sg","blogspot.si","blogspot.sk","blogspot.sn","blogspot.td","blogspot.tw","blogspot.ug","blogspot.vn","cloudfunctions.net","cloud.goog","codespot.com","googleapis.com","googlecode.com","pagespeedmobilizer.com","publishproxy.com","withgoogle.com","withyoutube.com","awsmppl.com","fin.ci","free.hr","caa.li","ua.rs","conf.se","hs.zone","hs.run","hashbang.sh","hasura.app","hasura-app.io","hepforge.org","herokuapp.com","herokussl.com","myravendb.com","ravendb.community","ravendb.me","development.run","ravendb.run","bpl.biz","orx.biz","ng.city","biz.gl","ng.ink","col.ng","firm.ng","gen.ng","ltd.ng","ngo.ng","ng.school","sch.so","häkkinen.fi","*.moonscale.io","moonscale.net","iki.fi","dyn-berlin.de","in-berlin.de","in-brb.de","in-butter.de","in-dsl.de","in-dsl.net","in-dsl.org","in-vpn.de","in-vpn.net","in-vpn.org","biz.at","info.at","info.cx","ac.leg.br","al.leg.br","am.leg.br","ap.leg.br","ba.leg.br","ce.leg.br","df.leg.br","es.leg.br","go.leg.br","ma.leg.br","mg.leg.br","ms.leg.br","mt.leg.br","pa.leg.br","pb.leg.br","pe.leg.br","pi.leg.br","pr.leg.br","rj.leg.br","rn.leg.br","ro.leg.br","rr.leg.br","rs.leg.br","sc.leg.br","se.leg.br","sp.leg.br","to.leg.br","pixolino.com","ipifony.net","mein-iserv.de","test-iserv.de","iserv.dev","iobb.net","myjino.ru","*.hosting.myjino.ru","*.landing.myjino.ru","*.spectrum.myjino.ru","*.vps.myjino.ru","*.triton.zone","*.cns.joyent.com","js.org","kaas.gg","khplay.nl","keymachine.de","kinghost.net","uni5.net","knightpoint.systems","oya.to","co.krd","edu.krd","git-repos.de","lcube-server.de","svn-repos.de","leadpages.co","lpages.co","lpusercontent.com","lelux.site","co.business","co.education","co.events","co.financial","co.network","co.place","co.technology","app.lmpm.com","linkitools.space","linkyard.cloud","linkyard-cloud.ch","members.linode.com","nodebalancer.linode.com","we.bs","loginline.app","loginline.dev","loginline.io","loginline.services","loginline.site","krasnik.pl","leczna.pl","lubartow.pl","lublin.pl","poniatowa.pl","swidnik.pl","uklugs.org","glug.org.uk","lug.org.uk","lugs.org.uk","barsy.bg","barsy.co.uk","barsyonline.co.uk","barsycenter.com","barsyonline.com","barsy.club","barsy.de","barsy.eu","barsy.in","barsy.info","barsy.io","barsy.me","barsy.menu","barsy.mobi","barsy.net","barsy.online","barsy.org","barsy.pro","barsy.pub","barsy.shop","barsy.site","barsy.support","barsy.uk","*.magentosite.cloud","mayfirst.info","mayfirst.org","hb.cldmail.ru","miniserver.com","memset.net","cloud.metacentrum.cz","custom.metacentrum.cz","flt.cloud.muni.cz","usr.cloud.muni.cz","meteorapp.com","eu.meteorapp.com","co.pl","azurecontainer.io","azurewebsites.net","azure-mobile.net","cloudapp.net","mozilla-iot.org","bmoattachments.org","net.ru","org.ru","pp.ru","ui.nabu.casa","pony.club","of.fashion","on.fashion","of.football","in.london","of.london","for.men","and.mom","for.mom","for.one","for.sale","of.work","to.work","nctu.me","bitballoon.com","netlify.com","4u.com","ngrok.io","nh-serv.co.uk","nfshost.com","dnsking.ch","mypi.co","n4t.co","001www.com","ddnslive.com","myiphost.com","forumz.info","16-b.it","32-b.it","64-b.it","soundcast.me","tcp4.me","dnsup.net","hicam.net","now-dns.net","ownip.net","vpndns.net","dynserv.org","now-dns.org","x443.pw","now-dns.top","ntdll.top","freeddns.us","crafting.xyz","zapto.xyz","nsupdate.info","nerdpol.ovh","blogsyte.com","brasilia.me","cable-modem.org","ciscofreak.com","collegefan.org","couchpotatofries.org","damnserver.com","ddns.me","ditchyourip.com","dnsfor.me","dnsiskinky.com","dvrcam.info","dynns.com","eating-organic.net","fantasyleague.cc","geekgalaxy.com","golffan.us","health-carereform.com","homesecuritymac.com","homesecuritypc.com","hopto.me","ilovecollege.info","loginto.me","mlbfan.org","mmafan.biz","myactivedirectory.com","mydissent.net","myeffect.net","mymediapc.net","mypsx.net","mysecuritycamera.com","mysecuritycamera.net","mysecuritycamera.org","net-freaks.com","nflfan.org","nhlfan.net","no-ip.ca","no-ip.co.uk","no-ip.net","noip.us","onthewifi.com","pgafan.net","point2this.com","pointto.us","privatizehealthinsurance.net","quicksytes.com","read-books.org","securitytactics.com","serveexchange.com","servehumour.com","servep2p.com","servesarcasm.com","stufftoread.com","ufcfan.org","unusualperson.com","workisboring.com","3utilities.com","bounceme.net","ddns.net","ddnsking.com","gotdns.ch","hopto.org","myftp.biz","myftp.org","myvnc.com","no-ip.biz","no-ip.info","no-ip.org","noip.me","redirectme.net","servebeer.com","serveblog.net","servecounterstrike.com","serveftp.com","servegame.com","servehalflife.com","servehttp.com","serveirc.com","serveminecraft.net","servemp3.com","servepics.com","servequake.com","sytes.net","webhop.me","zapto.org","stage.nodeart.io","nodum.co","nodum.io","pcloud.host","nyc.mn","nom.ae","nom.af","nom.ai","nom.al","nym.by","nom.bz","nym.bz","nom.cl","nym.ec","nom.gd","nom.ge","nom.gl","nym.gr","nom.gt","nym.gy","nym.hk","nom.hn","nym.ie","nom.im","nom.ke","nym.kz","nym.la","nym.lc","nom.li","nym.li","nym.lt","nym.lu","nom.lv","nym.me","nom.mk","nym.mn","nym.mx","nom.nu","nym.nz","nym.pe","nym.pt","nom.pw","nom.qa","nym.ro","nom.rs","nom.si","nym.sk","nom.st","nym.su","nym.sx","nom.tj","nym.tw","nom.ug","nom.uy","nom.vc","nom.vg","static.observableusercontent.com","cya.gg","cloudycluster.net","nid.io","opencraft.hosting","operaunite.com","skygearapp.com","outsystemscloud.com","ownprovider.com","own.pm","ox.rs","oy.lc","pgfog.com","pagefrontapp.com","art.pl","gliwice.pl","krakow.pl","poznan.pl","wroc.pl","zakopane.pl","pantheonsite.io","gotpantheon.com","mypep.link","perspecta.cloud","on-web.fr","*.platform.sh","*.platformsh.site","dyn53.io","co.bn","xen.prgmr.com","priv.at","prvcy.page","*.dweb.link","protonet.io","chirurgiens-dentistes-en-france.fr","byen.site","pubtls.org","qualifioapp.com","qbuser.com","instantcloud.cn","ras.ru","qa2.com","qcx.io","*.sys.qcx.io","dev-myqnapcloud.com","alpha-myqnapcloud.com","myqnapcloud.com","*.quipelements.com","vapor.cloud","vaporcloud.io","rackmaze.com","rackmaze.net","*.on-k3s.io","*.on-rancher.cloud","*.on-rio.io","readthedocs.io","rhcloud.com","app.render.com","onrender.com","repl.co","repl.run","resindevice.io","devices.resinstaging.io","hzc.io","wellbeingzone.eu","ptplus.fit","wellbeingzone.co.uk","git-pages.rit.edu","sandcats.io","logoip.de","logoip.com","schokokeks.net","gov.scot","scrysec.com","firewall-gateway.com","firewall-gateway.de","my-gateway.de","my-router.de","spdns.de","spdns.eu","firewall-gateway.net","my-firewall.org","myfirewall.org","spdns.org","senseering.net","biz.ua","co.ua","pp.ua","shiftedit.io","myshopblocks.com","shopitsite.com","mo-siemens.io","1kapp.com","appchizi.com","applinzi.com","sinaapp.com","vipsinaapp.com","siteleaf.net","bounty-full.com","alpha.bounty-full.com","beta.bounty-full.com","stackhero-network.com","static.land","dev.static.land","sites.static.land","apps.lair.io","*.stolos.io","spacekit.io","customer.speedpartner.de","api.stdlib.com","storj.farm","utwente.io","soc.srcf.net","user.srcf.net","temp-dns.com","applicationcloud.io","scapp.io","*.s5y.io","*.sensiosite.cloud","syncloud.it","diskstation.me","dscloud.biz","dscloud.me","dscloud.mobi","dsmynas.com","dsmynas.net","dsmynas.org","familyds.com","familyds.net","familyds.org","i234.me","myds.me","synology.me","vpnplus.to","direct.quickconnect.to","taifun-dns.de","gda.pl","gdansk.pl","gdynia.pl","med.pl","sopot.pl","edugit.org","telebit.app","telebit.io","*.telebit.xyz","gwiddle.co.uk","thingdustdata.com","cust.dev.thingdust.io","cust.disrec.thingdust.io","cust.prod.thingdust.io","cust.testing.thingdust.io","arvo.network","azimuth.network","bloxcms.com","townnews-staging.com","12hp.at","2ix.at","4lima.at","lima-city.at","12hp.ch","2ix.ch","4lima.ch","lima-city.ch","trafficplex.cloud","de.cool","12hp.de","2ix.de","4lima.de","lima-city.de","1337.pictures","clan.rip","lima-city.rocks","webspace.rocks","lima.zone","*.transurl.be","*.transurl.eu","*.transurl.nl","tuxfamily.org","dd-dns.de","diskstation.eu","diskstation.org","dray-dns.de","draydns.de","dyn-vpn.de","dynvpn.de","mein-vigor.de","my-vigor.de","my-wan.de","syno-ds.de","synology-diskstation.de","synology-ds.de","uber.space","*.uberspace.de","hk.com","hk.org","ltd.hk","inc.hk","virtualuser.de","virtual-user.de","urown.cloud","dnsupdate.info","lib.de.us","2038.io","router.management","v-info.info","voorloper.cloud","v.ua","wafflecell.com","*.webhare.dev","wedeploy.io","wedeploy.me","wedeploy.sh","remotewd.com","wmflabs.org","myforum.community","community-pro.de","diskussionsbereich.de","community-pro.net","meinforum.net","half.host","xnbay.com","u2.xnbay.com","u2-local.xnbay.com","cistron.nl","demon.nl","xs4all.space","yandexcloud.net","storage.yandexcloud.net","website.yandexcloud.net","official.academy","yolasite.com","ybo.faith","yombo.me","homelink.one","ybo.party","ybo.review","ybo.science","ybo.trade","nohost.me","noho.st","za.net","za.org","now.sh","bss.design","basicserver.io","virtualserver.io","enterprisecloud.nu"]')},72020:e=>{"use strict";e.exports=JSON.parse('[[[0,44],4],[[45,46],2],[47,4],[[48,57],2],[[58,64],4],[65,1,"a"],[66,1,"b"],[67,1,"c"],[68,1,"d"],[69,1,"e"],[70,1,"f"],[71,1,"g"],[72,1,"h"],[73,1,"i"],[74,1,"j"],[75,1,"k"],[76,1,"l"],[77,1,"m"],[78,1,"n"],[79,1,"o"],[80,1,"p"],[81,1,"q"],[82,1,"r"],[83,1,"s"],[84,1,"t"],[85,1,"u"],[86,1,"v"],[87,1,"w"],[88,1,"x"],[89,1,"y"],[90,1,"z"],[[91,96],4],[[97,122],2],[[123,127],4],[[128,159],3],[160,5," "],[[161,167],2],[168,5," ̈"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," ̄"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," ́"],[181,1,"μ"],[182,2],[183,2],[184,5," ̧"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1⁄4"],[189,1,"1⁄2"],[190,1,"3⁄4"],[191,2],[192,1,"à"],[193,1,"á"],[194,1,"â"],[195,1,"ã"],[196,1,"ä"],[197,1,"å"],[198,1,"æ"],[199,1,"ç"],[200,1,"è"],[201,1,"é"],[202,1,"ê"],[203,1,"ë"],[204,1,"ì"],[205,1,"í"],[206,1,"î"],[207,1,"ï"],[208,1,"ð"],[209,1,"ñ"],[210,1,"ò"],[211,1,"ó"],[212,1,"ô"],[213,1,"õ"],[214,1,"ö"],[215,2],[216,1,"ø"],[217,1,"ù"],[218,1,"ú"],[219,1,"û"],[220,1,"ü"],[221,1,"ý"],[222,1,"þ"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"ā"],[257,2],[258,1,"ă"],[259,2],[260,1,"ą"],[261,2],[262,1,"ć"],[263,2],[264,1,"ĉ"],[265,2],[266,1,"ċ"],[267,2],[268,1,"č"],[269,2],[270,1,"ď"],[271,2],[272,1,"đ"],[273,2],[274,1,"ē"],[275,2],[276,1,"ĕ"],[277,2],[278,1,"ė"],[279,2],[280,1,"ę"],[281,2],[282,1,"ě"],[283,2],[284,1,"ĝ"],[285,2],[286,1,"ğ"],[287,2],[288,1,"ġ"],[289,2],[290,1,"ģ"],[291,2],[292,1,"ĥ"],[293,2],[294,1,"ħ"],[295,2],[296,1,"ĩ"],[297,2],[298,1,"ī"],[299,2],[300,1,"ĭ"],[301,2],[302,1,"į"],[303,2],[304,1,"i̇"],[305,2],[[306,307],1,"ij"],[308,1,"ĵ"],[309,2],[310,1,"ķ"],[[311,312],2],[313,1,"ĺ"],[314,2],[315,1,"ļ"],[316,2],[317,1,"ľ"],[318,2],[[319,320],1,"l·"],[321,1,"ł"],[322,2],[323,1,"ń"],[324,2],[325,1,"ņ"],[326,2],[327,1,"ň"],[328,2],[329,1,"ʼn"],[330,1,"ŋ"],[331,2],[332,1,"ō"],[333,2],[334,1,"ŏ"],[335,2],[336,1,"ő"],[337,2],[338,1,"œ"],[339,2],[340,1,"ŕ"],[341,2],[342,1,"ŗ"],[343,2],[344,1,"ř"],[345,2],[346,1,"ś"],[347,2],[348,1,"ŝ"],[349,2],[350,1,"ş"],[351,2],[352,1,"š"],[353,2],[354,1,"ţ"],[355,2],[356,1,"ť"],[357,2],[358,1,"ŧ"],[359,2],[360,1,"ũ"],[361,2],[362,1,"ū"],[363,2],[364,1,"ŭ"],[365,2],[366,1,"ů"],[367,2],[368,1,"ű"],[369,2],[370,1,"ų"],[371,2],[372,1,"ŵ"],[373,2],[374,1,"ŷ"],[375,2],[376,1,"ÿ"],[377,1,"ź"],[378,2],[379,1,"ż"],[380,2],[381,1,"ž"],[382,2],[383,1,"s"],[384,2],[385,1,"ɓ"],[386,1,"ƃ"],[387,2],[388,1,"ƅ"],[389,2],[390,1,"ɔ"],[391,1,"ƈ"],[392,2],[393,1,"ɖ"],[394,1,"ɗ"],[395,1,"ƌ"],[[396,397],2],[398,1,"ǝ"],[399,1,"ə"],[400,1,"ɛ"],[401,1,"ƒ"],[402,2],[403,1,"ɠ"],[404,1,"ɣ"],[405,2],[406,1,"ɩ"],[407,1,"ɨ"],[408,1,"ƙ"],[[409,411],2],[412,1,"ɯ"],[413,1,"ɲ"],[414,2],[415,1,"ɵ"],[416,1,"ơ"],[417,2],[418,1,"ƣ"],[419,2],[420,1,"ƥ"],[421,2],[422,1,"ʀ"],[423,1,"ƨ"],[424,2],[425,1,"ʃ"],[[426,427],2],[428,1,"ƭ"],[429,2],[430,1,"ʈ"],[431,1,"ư"],[432,2],[433,1,"ʊ"],[434,1,"ʋ"],[435,1,"ƴ"],[436,2],[437,1,"ƶ"],[438,2],[439,1,"ʒ"],[440,1,"ƹ"],[[441,443],2],[444,1,"ƽ"],[[445,451],2],[[452,454],1,"dž"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"ǎ"],[462,2],[463,1,"ǐ"],[464,2],[465,1,"ǒ"],[466,2],[467,1,"ǔ"],[468,2],[469,1,"ǖ"],[470,2],[471,1,"ǘ"],[472,2],[473,1,"ǚ"],[474,2],[475,1,"ǜ"],[[476,477],2],[478,1,"ǟ"],[479,2],[480,1,"ǡ"],[481,2],[482,1,"ǣ"],[483,2],[484,1,"ǥ"],[485,2],[486,1,"ǧ"],[487,2],[488,1,"ǩ"],[489,2],[490,1,"ǫ"],[491,2],[492,1,"ǭ"],[493,2],[494,1,"ǯ"],[[495,496],2],[[497,499],1,"dz"],[500,1,"ǵ"],[501,2],[502,1,"ƕ"],[503,1,"ƿ"],[504,1,"ǹ"],[505,2],[506,1,"ǻ"],[507,2],[508,1,"ǽ"],[509,2],[510,1,"ǿ"],[511,2],[512,1,"ȁ"],[513,2],[514,1,"ȃ"],[515,2],[516,1,"ȅ"],[517,2],[518,1,"ȇ"],[519,2],[520,1,"ȉ"],[521,2],[522,1,"ȋ"],[523,2],[524,1,"ȍ"],[525,2],[526,1,"ȏ"],[527,2],[528,1,"ȑ"],[529,2],[530,1,"ȓ"],[531,2],[532,1,"ȕ"],[533,2],[534,1,"ȗ"],[535,2],[536,1,"ș"],[537,2],[538,1,"ț"],[539,2],[540,1,"ȝ"],[541,2],[542,1,"ȟ"],[543,2],[544,1,"ƞ"],[545,2],[546,1,"ȣ"],[547,2],[548,1,"ȥ"],[549,2],[550,1,"ȧ"],[551,2],[552,1,"ȩ"],[553,2],[554,1,"ȫ"],[555,2],[556,1,"ȭ"],[557,2],[558,1,"ȯ"],[559,2],[560,1,"ȱ"],[561,2],[562,1,"ȳ"],[563,2],[[564,566],2],[[567,569],2],[570,1,"ⱥ"],[571,1,"ȼ"],[572,2],[573,1,"ƚ"],[574,1,"ⱦ"],[[575,576],2],[577,1,"ɂ"],[578,2],[579,1,"ƀ"],[580,1,"ʉ"],[581,1,"ʌ"],[582,1,"ɇ"],[583,2],[584,1,"ɉ"],[585,2],[586,1,"ɋ"],[587,2],[588,1,"ɍ"],[589,2],[590,1,"ɏ"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"ɦ"],[690,1,"j"],[691,1,"r"],[692,1,"ɹ"],[693,1,"ɻ"],[694,1,"ʁ"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," ̆"],[729,5," ̇"],[730,5," ̊"],[731,5," ̨"],[732,5," ̃"],[733,5," ̋"],[734,2],[735,2],[736,1,"ɣ"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"ʕ"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"̀"],[833,1,"́"],[834,2],[835,1,"̓"],[836,1,"̈́"],[837,1,"ι"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"ͱ"],[881,2],[882,1,"ͳ"],[883,2],[884,1,"ʹ"],[885,2],[886,1,"ͷ"],[887,2],[[888,889],3],[890,5," ι"],[[891,893],2],[894,5,";"],[895,1,"ϳ"],[[896,899],3],[900,5," ́"],[901,5," ̈́"],[902,1,"ά"],[903,1,"·"],[904,1,"έ"],[905,1,"ή"],[906,1,"ί"],[907,3],[908,1,"ό"],[909,3],[910,1,"ύ"],[911,1,"ώ"],[912,2],[913,1,"α"],[914,1,"β"],[915,1,"γ"],[916,1,"δ"],[917,1,"ε"],[918,1,"ζ"],[919,1,"η"],[920,1,"θ"],[921,1,"ι"],[922,1,"κ"],[923,1,"λ"],[924,1,"μ"],[925,1,"ν"],[926,1,"ξ"],[927,1,"ο"],[928,1,"π"],[929,1,"ρ"],[930,3],[931,1,"σ"],[932,1,"τ"],[933,1,"υ"],[934,1,"φ"],[935,1,"χ"],[936,1,"ψ"],[937,1,"ω"],[938,1,"ϊ"],[939,1,"ϋ"],[[940,961],2],[962,6,"σ"],[[963,974],2],[975,1,"ϗ"],[976,1,"β"],[977,1,"θ"],[978,1,"υ"],[979,1,"ύ"],[980,1,"ϋ"],[981,1,"φ"],[982,1,"π"],[983,2],[984,1,"ϙ"],[985,2],[986,1,"ϛ"],[987,2],[988,1,"ϝ"],[989,2],[990,1,"ϟ"],[991,2],[992,1,"ϡ"],[993,2],[994,1,"ϣ"],[995,2],[996,1,"ϥ"],[997,2],[998,1,"ϧ"],[999,2],[1000,1,"ϩ"],[1001,2],[1002,1,"ϫ"],[1003,2],[1004,1,"ϭ"],[1005,2],[1006,1,"ϯ"],[1007,2],[1008,1,"κ"],[1009,1,"ρ"],[1010,1,"σ"],[1011,2],[1012,1,"θ"],[1013,1,"ε"],[1014,2],[1015,1,"ϸ"],[1016,2],[1017,1,"σ"],[1018,1,"ϻ"],[1019,2],[1020,2],[1021,1,"ͻ"],[1022,1,"ͼ"],[1023,1,"ͽ"],[1024,1,"ѐ"],[1025,1,"ё"],[1026,1,"ђ"],[1027,1,"ѓ"],[1028,1,"є"],[1029,1,"ѕ"],[1030,1,"і"],[1031,1,"ї"],[1032,1,"ј"],[1033,1,"љ"],[1034,1,"њ"],[1035,1,"ћ"],[1036,1,"ќ"],[1037,1,"ѝ"],[1038,1,"ў"],[1039,1,"џ"],[1040,1,"а"],[1041,1,"б"],[1042,1,"в"],[1043,1,"г"],[1044,1,"д"],[1045,1,"е"],[1046,1,"ж"],[1047,1,"з"],[1048,1,"и"],[1049,1,"й"],[1050,1,"к"],[1051,1,"л"],[1052,1,"м"],[1053,1,"н"],[1054,1,"о"],[1055,1,"п"],[1056,1,"р"],[1057,1,"с"],[1058,1,"т"],[1059,1,"у"],[1060,1,"ф"],[1061,1,"х"],[1062,1,"ц"],[1063,1,"ч"],[1064,1,"ш"],[1065,1,"щ"],[1066,1,"ъ"],[1067,1,"ы"],[1068,1,"ь"],[1069,1,"э"],[1070,1,"ю"],[1071,1,"я"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"ѡ"],[1121,2],[1122,1,"ѣ"],[1123,2],[1124,1,"ѥ"],[1125,2],[1126,1,"ѧ"],[1127,2],[1128,1,"ѩ"],[1129,2],[1130,1,"ѫ"],[1131,2],[1132,1,"ѭ"],[1133,2],[1134,1,"ѯ"],[1135,2],[1136,1,"ѱ"],[1137,2],[1138,1,"ѳ"],[1139,2],[1140,1,"ѵ"],[1141,2],[1142,1,"ѷ"],[1143,2],[1144,1,"ѹ"],[1145,2],[1146,1,"ѻ"],[1147,2],[1148,1,"ѽ"],[1149,2],[1150,1,"ѿ"],[1151,2],[1152,1,"ҁ"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"ҋ"],[1163,2],[1164,1,"ҍ"],[1165,2],[1166,1,"ҏ"],[1167,2],[1168,1,"ґ"],[1169,2],[1170,1,"ғ"],[1171,2],[1172,1,"ҕ"],[1173,2],[1174,1,"җ"],[1175,2],[1176,1,"ҙ"],[1177,2],[1178,1,"қ"],[1179,2],[1180,1,"ҝ"],[1181,2],[1182,1,"ҟ"],[1183,2],[1184,1,"ҡ"],[1185,2],[1186,1,"ң"],[1187,2],[1188,1,"ҥ"],[1189,2],[1190,1,"ҧ"],[1191,2],[1192,1,"ҩ"],[1193,2],[1194,1,"ҫ"],[1195,2],[1196,1,"ҭ"],[1197,2],[1198,1,"ү"],[1199,2],[1200,1,"ұ"],[1201,2],[1202,1,"ҳ"],[1203,2],[1204,1,"ҵ"],[1205,2],[1206,1,"ҷ"],[1207,2],[1208,1,"ҹ"],[1209,2],[1210,1,"һ"],[1211,2],[1212,1,"ҽ"],[1213,2],[1214,1,"ҿ"],[1215,2],[1216,3],[1217,1,"ӂ"],[1218,2],[1219,1,"ӄ"],[1220,2],[1221,1,"ӆ"],[1222,2],[1223,1,"ӈ"],[1224,2],[1225,1,"ӊ"],[1226,2],[1227,1,"ӌ"],[1228,2],[1229,1,"ӎ"],[1230,2],[1231,2],[1232,1,"ӑ"],[1233,2],[1234,1,"ӓ"],[1235,2],[1236,1,"ӕ"],[1237,2],[1238,1,"ӗ"],[1239,2],[1240,1,"ә"],[1241,2],[1242,1,"ӛ"],[1243,2],[1244,1,"ӝ"],[1245,2],[1246,1,"ӟ"],[1247,2],[1248,1,"ӡ"],[1249,2],[1250,1,"ӣ"],[1251,2],[1252,1,"ӥ"],[1253,2],[1254,1,"ӧ"],[1255,2],[1256,1,"ө"],[1257,2],[1258,1,"ӫ"],[1259,2],[1260,1,"ӭ"],[1261,2],[1262,1,"ӯ"],[1263,2],[1264,1,"ӱ"],[1265,2],[1266,1,"ӳ"],[1267,2],[1268,1,"ӵ"],[1269,2],[1270,1,"ӷ"],[1271,2],[1272,1,"ӹ"],[1273,2],[1274,1,"ӻ"],[1275,2],[1276,1,"ӽ"],[1277,2],[1278,1,"ӿ"],[1279,2],[1280,1,"ԁ"],[1281,2],[1282,1,"ԃ"],[1283,2],[1284,1,"ԅ"],[1285,2],[1286,1,"ԇ"],[1287,2],[1288,1,"ԉ"],[1289,2],[1290,1,"ԋ"],[1291,2],[1292,1,"ԍ"],[1293,2],[1294,1,"ԏ"],[1295,2],[1296,1,"ԑ"],[1297,2],[1298,1,"ԓ"],[1299,2],[1300,1,"ԕ"],[1301,2],[1302,1,"ԗ"],[1303,2],[1304,1,"ԙ"],[1305,2],[1306,1,"ԛ"],[1307,2],[1308,1,"ԝ"],[1309,2],[1310,1,"ԟ"],[1311,2],[1312,1,"ԡ"],[1313,2],[1314,1,"ԣ"],[1315,2],[1316,1,"ԥ"],[1317,2],[1318,1,"ԧ"],[1319,2],[1320,1,"ԩ"],[1321,2],[1322,1,"ԫ"],[1323,2],[1324,1,"ԭ"],[1325,2],[1326,1,"ԯ"],[1327,2],[1328,3],[1329,1,"ա"],[1330,1,"բ"],[1331,1,"գ"],[1332,1,"դ"],[1333,1,"ե"],[1334,1,"զ"],[1335,1,"է"],[1336,1,"ը"],[1337,1,"թ"],[1338,1,"ժ"],[1339,1,"ի"],[1340,1,"լ"],[1341,1,"խ"],[1342,1,"ծ"],[1343,1,"կ"],[1344,1,"հ"],[1345,1,"ձ"],[1346,1,"ղ"],[1347,1,"ճ"],[1348,1,"մ"],[1349,1,"յ"],[1350,1,"ն"],[1351,1,"շ"],[1352,1,"ո"],[1353,1,"չ"],[1354,1,"պ"],[1355,1,"ջ"],[1356,1,"ռ"],[1357,1,"ս"],[1358,1,"վ"],[1359,1,"տ"],[1360,1,"ր"],[1361,1,"ց"],[1362,1,"ւ"],[1363,1,"փ"],[1364,1,"ք"],[1365,1,"օ"],[1366,1,"ֆ"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"եւ"],[1416,2],[1417,2],[1418,2],[[1419,1420],3],[[1421,1422],2],[1423,2],[1424,3],[[1425,1441],2],[1442,2],[[1443,1455],2],[[1456,1465],2],[1466,2],[[1467,1469],2],[1470,2],[1471,2],[1472,2],[[1473,1474],2],[1475,2],[1476,2],[1477,2],[1478,2],[1479,2],[[1480,1487],3],[[1488,1514],2],[[1515,1518],3],[1519,2],[[1520,1524],2],[[1525,1535],3],[[1536,1539],3],[1540,3],[1541,3],[[1542,1546],2],[1547,2],[1548,2],[[1549,1551],2],[[1552,1557],2],[[1558,1562],2],[1563,2],[1564,3],[1565,2],[1566,2],[1567,2],[1568,2],[[1569,1594],2],[[1595,1599],2],[1600,2],[[1601,1618],2],[[1619,1621],2],[[1622,1624],2],[[1625,1630],2],[1631,2],[[1632,1641],2],[[1642,1645],2],[[1646,1647],2],[[1648,1652],2],[1653,1,"اٴ"],[1654,1,"وٴ"],[1655,1,"ۇٴ"],[1656,1,"يٴ"],[[1657,1719],2],[[1720,1721],2],[[1722,1726],2],[1727,2],[[1728,1742],2],[1743,2],[[1744,1747],2],[1748,2],[[1749,1756],2],[1757,3],[1758,2],[[1759,1768],2],[1769,2],[[1770,1773],2],[[1774,1775],2],[[1776,1785],2],[[1786,1790],2],[1791,2],[[1792,1805],2],[1806,3],[1807,3],[[1808,1836],2],[[1837,1839],2],[[1840,1866],2],[[1867,1868],3],[[1869,1871],2],[[1872,1901],2],[[1902,1919],2],[[1920,1968],2],[1969,2],[[1970,1983],3],[[1984,2037],2],[[2038,2042],2],[[2043,2044],3],[2045,2],[[2046,2047],2],[[2048,2093],2],[[2094,2095],3],[[2096,2110],2],[2111,3],[[2112,2139],2],[[2140,2141],3],[2142,2],[2143,3],[[2144,2154],2],[[2155,2159],3],[[2160,2183],2],[2184,2],[[2185,2190],2],[2191,3],[[2192,2193],3],[[2194,2199],3],[[2200,2207],2],[2208,2],[2209,2],[[2210,2220],2],[[2221,2226],2],[[2227,2228],2],[2229,2],[[2230,2237],2],[[2238,2247],2],[[2248,2258],2],[2259,2],[[2260,2273],2],[2274,3],[2275,2],[[2276,2302],2],[2303,2],[2304,2],[[2305,2307],2],[2308,2],[[2309,2361],2],[[2362,2363],2],[[2364,2381],2],[2382,2],[2383,2],[[2384,2388],2],[2389,2],[[2390,2391],2],[2392,1,"क़"],[2393,1,"ख़"],[2394,1,"ग़"],[2395,1,"ज़"],[2396,1,"ड़"],[2397,1,"ढ़"],[2398,1,"फ़"],[2399,1,"य़"],[[2400,2403],2],[[2404,2405],2],[[2406,2415],2],[2416,2],[[2417,2418],2],[[2419,2423],2],[2424,2],[[2425,2426],2],[[2427,2428],2],[2429,2],[[2430,2431],2],[2432,2],[[2433,2435],2],[2436,3],[[2437,2444],2],[[2445,2446],3],[[2447,2448],2],[[2449,2450],3],[[2451,2472],2],[2473,3],[[2474,2480],2],[2481,3],[2482,2],[[2483,2485],3],[[2486,2489],2],[[2490,2491],3],[2492,2],[2493,2],[[2494,2500],2],[[2501,2502],3],[[2503,2504],2],[[2505,2506],3],[[2507,2509],2],[2510,2],[[2511,2518],3],[2519,2],[[2520,2523],3],[2524,1,"ড়"],[2525,1,"ঢ়"],[2526,3],[2527,1,"য়"],[[2528,2531],2],[[2532,2533],3],[[2534,2545],2],[[2546,2554],2],[2555,2],[2556,2],[2557,2],[2558,2],[[2559,2560],3],[2561,2],[2562,2],[2563,2],[2564,3],[[2565,2570],2],[[2571,2574],3],[[2575,2576],2],[[2577,2578],3],[[2579,2600],2],[2601,3],[[2602,2608],2],[2609,3],[2610,2],[2611,1,"ਲ਼"],[2612,3],[2613,2],[2614,1,"ਸ਼"],[2615,3],[[2616,2617],2],[[2618,2619],3],[2620,2],[2621,3],[[2622,2626],2],[[2627,2630],3],[[2631,2632],2],[[2633,2634],3],[[2635,2637],2],[[2638,2640],3],[2641,2],[[2642,2648],3],[2649,1,"ਖ਼"],[2650,1,"ਗ਼"],[2651,1,"ਜ਼"],[2652,2],[2653,3],[2654,1,"ਫ਼"],[[2655,2661],3],[[2662,2676],2],[2677,2],[2678,2],[[2679,2688],3],[[2689,2691],2],[2692,3],[[2693,2699],2],[2700,2],[2701,2],[2702,3],[[2703,2705],2],[2706,3],[[2707,2728],2],[2729,3],[[2730,2736],2],[2737,3],[[2738,2739],2],[2740,3],[[2741,2745],2],[[2746,2747],3],[[2748,2757],2],[2758,3],[[2759,2761],2],[2762,3],[[2763,2765],2],[[2766,2767],3],[2768,2],[[2769,2783],3],[2784,2],[[2785,2787],2],[[2788,2789],3],[[2790,2799],2],[2800,2],[2801,2],[[2802,2808],3],[2809,2],[[2810,2815],2],[2816,3],[[2817,2819],2],[2820,3],[[2821,2828],2],[[2829,2830],3],[[2831,2832],2],[[2833,2834],3],[[2835,2856],2],[2857,3],[[2858,2864],2],[2865,3],[[2866,2867],2],[2868,3],[2869,2],[[2870,2873],2],[[2874,2875],3],[[2876,2883],2],[2884,2],[[2885,2886],3],[[2887,2888],2],[[2889,2890],3],[[2891,2893],2],[[2894,2900],3],[2901,2],[[2902,2903],2],[[2904,2907],3],[2908,1,"ଡ଼"],[2909,1,"ଢ଼"],[2910,3],[[2911,2913],2],[[2914,2915],2],[[2916,2917],3],[[2918,2927],2],[2928,2],[2929,2],[[2930,2935],2],[[2936,2945],3],[[2946,2947],2],[2948,3],[[2949,2954],2],[[2955,2957],3],[[2958,2960],2],[2961,3],[[2962,2965],2],[[2966,2968],3],[[2969,2970],2],[2971,3],[2972,2],[2973,3],[[2974,2975],2],[[2976,2978],3],[[2979,2980],2],[[2981,2983],3],[[2984,2986],2],[[2987,2989],3],[[2990,2997],2],[2998,2],[[2999,3001],2],[[3002,3005],3],[[3006,3010],2],[[3011,3013],3],[[3014,3016],2],[3017,3],[[3018,3021],2],[[3022,3023],3],[3024,2],[[3025,3030],3],[3031,2],[[3032,3045],3],[3046,2],[[3047,3055],2],[[3056,3058],2],[[3059,3066],2],[[3067,3071],3],[3072,2],[[3073,3075],2],[3076,2],[[3077,3084],2],[3085,3],[[3086,3088],2],[3089,3],[[3090,3112],2],[3113,3],[[3114,3123],2],[3124,2],[[3125,3129],2],[[3130,3131],3],[3132,2],[3133,2],[[3134,3140],2],[3141,3],[[3142,3144],2],[3145,3],[[3146,3149],2],[[3150,3156],3],[[3157,3158],2],[3159,3],[[3160,3161],2],[3162,2],[[3163,3164],3],[3165,2],[[3166,3167],3],[[3168,3169],2],[[3170,3171],2],[[3172,3173],3],[[3174,3183],2],[[3184,3190],3],[3191,2],[[3192,3199],2],[3200,2],[3201,2],[[3202,3203],2],[3204,2],[[3205,3212],2],[3213,3],[[3214,3216],2],[3217,3],[[3218,3240],2],[3241,3],[[3242,3251],2],[3252,3],[[3253,3257],2],[[3258,3259],3],[[3260,3261],2],[[3262,3268],2],[3269,3],[[3270,3272],2],[3273,3],[[3274,3277],2],[[3278,3284],3],[[3285,3286],2],[[3287,3292],3],[3293,2],[3294,2],[3295,3],[[3296,3297],2],[[3298,3299],2],[[3300,3301],3],[[3302,3311],2],[3312,3],[[3313,3314],2],[[3315,3327],3],[3328,2],[3329,2],[[3330,3331],2],[3332,2],[[3333,3340],2],[3341,3],[[3342,3344],2],[3345,3],[[3346,3368],2],[3369,2],[[3370,3385],2],[3386,2],[[3387,3388],2],[3389,2],[[3390,3395],2],[3396,2],[3397,3],[[3398,3400],2],[3401,3],[[3402,3405],2],[3406,2],[3407,2],[[3408,3411],3],[[3412,3414],2],[3415,2],[[3416,3422],2],[3423,2],[[3424,3425],2],[[3426,3427],2],[[3428,3429],3],[[3430,3439],2],[[3440,3445],2],[[3446,3448],2],[3449,2],[[3450,3455],2],[3456,3],[3457,2],[[3458,3459],2],[3460,3],[[3461,3478],2],[[3479,3481],3],[[3482,3505],2],[3506,3],[[3507,3515],2],[3516,3],[3517,2],[[3518,3519],3],[[3520,3526],2],[[3527,3529],3],[3530,2],[[3531,3534],3],[[3535,3540],2],[3541,3],[3542,2],[3543,3],[[3544,3551],2],[[3552,3557],3],[[3558,3567],2],[[3568,3569],3],[[3570,3571],2],[3572,2],[[3573,3584],3],[[3585,3634],2],[3635,1,"ํา"],[[3636,3642],2],[[3643,3646],3],[3647,2],[[3648,3662],2],[3663,2],[[3664,3673],2],[[3674,3675],2],[[3676,3712],3],[[3713,3714],2],[3715,3],[3716,2],[3717,3],[3718,2],[[3719,3720],2],[3721,2],[3722,2],[3723,3],[3724,2],[3725,2],[[3726,3731],2],[[3732,3735],2],[3736,2],[[3737,3743],2],[3744,2],[[3745,3747],2],[3748,3],[3749,2],[3750,3],[3751,2],[[3752,3753],2],[[3754,3755],2],[3756,2],[[3757,3762],2],[3763,1,"ໍາ"],[[3764,3769],2],[3770,2],[[3771,3773],2],[[3774,3775],3],[[3776,3780],2],[3781,3],[3782,2],[3783,3],[[3784,3789],2],[[3790,3791],3],[[3792,3801],2],[[3802,3803],3],[3804,1,"ຫນ"],[3805,1,"ຫມ"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"་"],[[3853,3863],2],[[3864,3865],2],[[3866,3871],2],[[3872,3881],2],[[3882,3892],2],[3893,2],[3894,2],[3895,2],[3896,2],[3897,2],[[3898,3901],2],[[3902,3906],2],[3907,1,"གྷ"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"ཌྷ"],[[3918,3921],2],[3922,1,"དྷ"],[[3923,3926],2],[3927,1,"བྷ"],[[3928,3931],2],[3932,1,"ཛྷ"],[[3933,3944],2],[3945,1,"ཀྵ"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"ཱི"],[3956,2],[3957,1,"ཱུ"],[3958,1,"ྲྀ"],[3959,1,"ྲཱྀ"],[3960,1,"ླྀ"],[3961,1,"ླཱྀ"],[[3962,3968],2],[3969,1,"ཱྀ"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"ྒྷ"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"ྜྷ"],[[3998,4001],2],[4002,1,"ྡྷ"],[[4003,4006],2],[4007,1,"ྦྷ"],[[4008,4011],2],[4012,1,"ྫྷ"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"ྐྵ"],[[4026,4028],2],[4029,3],[[4030,4037],2],[4038,2],[[4039,4044],2],[4045,3],[4046,2],[4047,2],[[4048,4049],2],[[4050,4052],2],[[4053,4056],2],[[4057,4058],2],[[4059,4095],3],[[4096,4129],2],[4130,2],[[4131,4135],2],[4136,2],[[4137,4138],2],[4139,2],[[4140,4146],2],[[4147,4149],2],[[4150,4153],2],[[4154,4159],2],[[4160,4169],2],[[4170,4175],2],[[4176,4185],2],[[4186,4249],2],[[4250,4253],2],[[4254,4255],2],[[4256,4293],3],[4294,3],[4295,1,"ⴧ"],[[4296,4300],3],[4301,1,"ⴭ"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"ნ"],[[4349,4351],2],[[4352,4441],2],[[4442,4446],2],[[4447,4448],3],[[4449,4514],2],[[4515,4519],2],[[4520,4601],2],[[4602,4607],2],[[4608,4614],2],[4615,2],[[4616,4678],2],[4679,2],[4680,2],[4681,3],[[4682,4685],2],[[4686,4687],3],[[4688,4694],2],[4695,3],[4696,2],[4697,3],[[4698,4701],2],[[4702,4703],3],[[4704,4742],2],[4743,2],[4744,2],[4745,3],[[4746,4749],2],[[4750,4751],3],[[4752,4782],2],[4783,2],[4784,2],[4785,3],[[4786,4789],2],[[4790,4791],3],[[4792,4798],2],[4799,3],[4800,2],[4801,3],[[4802,4805],2],[[4806,4807],3],[[4808,4814],2],[4815,2],[[4816,4822],2],[4823,3],[[4824,4846],2],[4847,2],[[4848,4878],2],[4879,2],[4880,2],[4881,3],[[4882,4885],2],[[4886,4887],3],[[4888,4894],2],[4895,2],[[4896,4934],2],[4935,2],[[4936,4954],2],[[4955,4956],3],[[4957,4958],2],[4959,2],[4960,2],[[4961,4988],2],[[4989,4991],3],[[4992,5007],2],[[5008,5017],2],[[5018,5023],3],[[5024,5108],2],[5109,2],[[5110,5111],3],[5112,1,"Ᏸ"],[5113,1,"Ᏹ"],[5114,1,"Ᏺ"],[5115,1,"Ᏻ"],[5116,1,"Ᏼ"],[5117,1,"Ᏽ"],[[5118,5119],3],[5120,2],[[5121,5740],2],[[5741,5742],2],[[5743,5750],2],[[5751,5759],2],[5760,3],[[5761,5786],2],[[5787,5788],2],[[5789,5791],3],[[5792,5866],2],[[5867,5872],2],[[5873,5880],2],[[5881,5887],3],[[5888,5900],2],[5901,2],[[5902,5908],2],[5909,2],[[5910,5918],3],[5919,2],[[5920,5940],2],[[5941,5942],2],[[5943,5951],3],[[5952,5971],2],[[5972,5983],3],[[5984,5996],2],[5997,3],[[5998,6000],2],[6001,3],[[6002,6003],2],[[6004,6015],3],[[6016,6067],2],[[6068,6069],3],[[6070,6099],2],[[6100,6102],2],[6103,2],[[6104,6107],2],[6108,2],[6109,2],[[6110,6111],3],[[6112,6121],2],[[6122,6127],3],[[6128,6137],2],[[6138,6143],3],[[6144,6149],2],[6150,3],[[6151,6154],2],[[6155,6157],7],[6158,3],[6159,7],[[6160,6169],2],[[6170,6175],3],[[6176,6263],2],[6264,2],[[6265,6271],3],[[6272,6313],2],[6314,2],[[6315,6319],3],[[6320,6389],2],[[6390,6399],3],[[6400,6428],2],[[6429,6430],2],[6431,3],[[6432,6443],2],[[6444,6447],3],[[6448,6459],2],[[6460,6463],3],[6464,2],[[6465,6467],3],[[6468,6469],2],[[6470,6509],2],[[6510,6511],3],[[6512,6516],2],[[6517,6527],3],[[6528,6569],2],[[6570,6571],2],[[6572,6575],3],[[6576,6601],2],[[6602,6607],3],[[6608,6617],2],[6618,2],[[6619,6621],3],[[6622,6623],2],[[6624,6655],2],[[6656,6683],2],[[6684,6685],3],[[6686,6687],2],[[6688,6750],2],[6751,3],[[6752,6780],2],[[6781,6782],3],[[6783,6793],2],[[6794,6799],3],[[6800,6809],2],[[6810,6815],3],[[6816,6822],2],[6823,2],[[6824,6829],2],[[6830,6831],3],[[6832,6845],2],[6846,2],[[6847,6848],2],[[6849,6862],2],[[6863,6911],3],[[6912,6987],2],[6988,2],[[6989,6991],3],[[6992,7001],2],[[7002,7018],2],[[7019,7027],2],[[7028,7036],2],[[7037,7038],2],[7039,3],[[7040,7082],2],[[7083,7085],2],[[7086,7097],2],[[7098,7103],2],[[7104,7155],2],[[7156,7163],3],[[7164,7167],2],[[7168,7223],2],[[7224,7226],3],[[7227,7231],2],[[7232,7241],2],[[7242,7244],3],[[7245,7293],2],[[7294,7295],2],[7296,1,"в"],[7297,1,"д"],[7298,1,"о"],[7299,1,"с"],[[7300,7301],1,"т"],[7302,1,"ъ"],[7303,1,"ѣ"],[7304,1,"ꙋ"],[[7305,7311],3],[7312,1,"ა"],[7313,1,"ბ"],[7314,1,"გ"],[7315,1,"დ"],[7316,1,"ე"],[7317,1,"ვ"],[7318,1,"ზ"],[7319,1,"თ"],[7320,1,"ი"],[7321,1,"კ"],[7322,1,"ლ"],[7323,1,"მ"],[7324,1,"ნ"],[7325,1,"ო"],[7326,1,"პ"],[7327,1,"ჟ"],[7328,1,"რ"],[7329,1,"ს"],[7330,1,"ტ"],[7331,1,"უ"],[7332,1,"ფ"],[7333,1,"ქ"],[7334,1,"ღ"],[7335,1,"ყ"],[7336,1,"შ"],[7337,1,"ჩ"],[7338,1,"ც"],[7339,1,"ძ"],[7340,1,"წ"],[7341,1,"ჭ"],[7342,1,"ხ"],[7343,1,"ჯ"],[7344,1,"ჰ"],[7345,1,"ჱ"],[7346,1,"ჲ"],[7347,1,"ჳ"],[7348,1,"ჴ"],[7349,1,"ჵ"],[7350,1,"ჶ"],[7351,1,"ჷ"],[7352,1,"ჸ"],[7353,1,"ჹ"],[7354,1,"ჺ"],[[7355,7356],3],[7357,1,"ჽ"],[7358,1,"ჾ"],[7359,1,"ჿ"],[[7360,7367],2],[[7368,7375],3],[[7376,7378],2],[7379,2],[[7380,7410],2],[[7411,7414],2],[7415,2],[[7416,7417],2],[7418,2],[[7419,7423],3],[[7424,7467],2],[7468,1,"a"],[7469,1,"æ"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"ǝ"],[7475,1,"g"],[7476,1,"h"],[7477,1,"i"],[7478,1,"j"],[7479,1,"k"],[7480,1,"l"],[7481,1,"m"],[7482,1,"n"],[7483,2],[7484,1,"o"],[7485,1,"ȣ"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"ɐ"],[7493,1,"ɑ"],[7494,1,"ᴂ"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"ə"],[7499,1,"ɛ"],[7500,1,"ɜ"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"ŋ"],[7506,1,"o"],[7507,1,"ɔ"],[7508,1,"ᴖ"],[7509,1,"ᴗ"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"ᴝ"],[7514,1,"ɯ"],[7515,1,"v"],[7516,1,"ᴥ"],[7517,1,"β"],[7518,1,"γ"],[7519,1,"δ"],[7520,1,"φ"],[7521,1,"χ"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"β"],[7527,1,"γ"],[7528,1,"ρ"],[7529,1,"φ"],[7530,1,"χ"],[7531,2],[[7532,7543],2],[7544,1,"н"],[[7545,7578],2],[7579,1,"ɒ"],[7580,1,"c"],[7581,1,"ɕ"],[7582,1,"ð"],[7583,1,"ɜ"],[7584,1,"f"],[7585,1,"ɟ"],[7586,1,"ɡ"],[7587,1,"ɥ"],[7588,1,"ɨ"],[7589,1,"ɩ"],[7590,1,"ɪ"],[7591,1,"ᵻ"],[7592,1,"ʝ"],[7593,1,"ɭ"],[7594,1,"ᶅ"],[7595,1,"ʟ"],[7596,1,"ɱ"],[7597,1,"ɰ"],[7598,1,"ɲ"],[7599,1,"ɳ"],[7600,1,"ɴ"],[7601,1,"ɵ"],[7602,1,"ɸ"],[7603,1,"ʂ"],[7604,1,"ʃ"],[7605,1,"ƫ"],[7606,1,"ʉ"],[7607,1,"ʊ"],[7608,1,"ᴜ"],[7609,1,"ʋ"],[7610,1,"ʌ"],[7611,1,"z"],[7612,1,"ʐ"],[7613,1,"ʑ"],[7614,1,"ʒ"],[7615,1,"θ"],[[7616,7619],2],[[7620,7626],2],[[7627,7654],2],[[7655,7669],2],[[7670,7673],2],[7674,2],[7675,2],[7676,2],[7677,2],[[7678,7679],2],[7680,1,"ḁ"],[7681,2],[7682,1,"ḃ"],[7683,2],[7684,1,"ḅ"],[7685,2],[7686,1,"ḇ"],[7687,2],[7688,1,"ḉ"],[7689,2],[7690,1,"ḋ"],[7691,2],[7692,1,"ḍ"],[7693,2],[7694,1,"ḏ"],[7695,2],[7696,1,"ḑ"],[7697,2],[7698,1,"ḓ"],[7699,2],[7700,1,"ḕ"],[7701,2],[7702,1,"ḗ"],[7703,2],[7704,1,"ḙ"],[7705,2],[7706,1,"ḛ"],[7707,2],[7708,1,"ḝ"],[7709,2],[7710,1,"ḟ"],[7711,2],[7712,1,"ḡ"],[7713,2],[7714,1,"ḣ"],[7715,2],[7716,1,"ḥ"],[7717,2],[7718,1,"ḧ"],[7719,2],[7720,1,"ḩ"],[7721,2],[7722,1,"ḫ"],[7723,2],[7724,1,"ḭ"],[7725,2],[7726,1,"ḯ"],[7727,2],[7728,1,"ḱ"],[7729,2],[7730,1,"ḳ"],[7731,2],[7732,1,"ḵ"],[7733,2],[7734,1,"ḷ"],[7735,2],[7736,1,"ḹ"],[7737,2],[7738,1,"ḻ"],[7739,2],[7740,1,"ḽ"],[7741,2],[7742,1,"ḿ"],[7743,2],[7744,1,"ṁ"],[7745,2],[7746,1,"ṃ"],[7747,2],[7748,1,"ṅ"],[7749,2],[7750,1,"ṇ"],[7751,2],[7752,1,"ṉ"],[7753,2],[7754,1,"ṋ"],[7755,2],[7756,1,"ṍ"],[7757,2],[7758,1,"ṏ"],[7759,2],[7760,1,"ṑ"],[7761,2],[7762,1,"ṓ"],[7763,2],[7764,1,"ṕ"],[7765,2],[7766,1,"ṗ"],[7767,2],[7768,1,"ṙ"],[7769,2],[7770,1,"ṛ"],[7771,2],[7772,1,"ṝ"],[7773,2],[7774,1,"ṟ"],[7775,2],[7776,1,"ṡ"],[7777,2],[7778,1,"ṣ"],[7779,2],[7780,1,"ṥ"],[7781,2],[7782,1,"ṧ"],[7783,2],[7784,1,"ṩ"],[7785,2],[7786,1,"ṫ"],[7787,2],[7788,1,"ṭ"],[7789,2],[7790,1,"ṯ"],[7791,2],[7792,1,"ṱ"],[7793,2],[7794,1,"ṳ"],[7795,2],[7796,1,"ṵ"],[7797,2],[7798,1,"ṷ"],[7799,2],[7800,1,"ṹ"],[7801,2],[7802,1,"ṻ"],[7803,2],[7804,1,"ṽ"],[7805,2],[7806,1,"ṿ"],[7807,2],[7808,1,"ẁ"],[7809,2],[7810,1,"ẃ"],[7811,2],[7812,1,"ẅ"],[7813,2],[7814,1,"ẇ"],[7815,2],[7816,1,"ẉ"],[7817,2],[7818,1,"ẋ"],[7819,2],[7820,1,"ẍ"],[7821,2],[7822,1,"ẏ"],[7823,2],[7824,1,"ẑ"],[7825,2],[7826,1,"ẓ"],[7827,2],[7828,1,"ẕ"],[[7829,7833],2],[7834,1,"aʾ"],[7835,1,"ṡ"],[[7836,7837],2],[7838,1,"ss"],[7839,2],[7840,1,"ạ"],[7841,2],[7842,1,"ả"],[7843,2],[7844,1,"ấ"],[7845,2],[7846,1,"ầ"],[7847,2],[7848,1,"ẩ"],[7849,2],[7850,1,"ẫ"],[7851,2],[7852,1,"ậ"],[7853,2],[7854,1,"ắ"],[7855,2],[7856,1,"ằ"],[7857,2],[7858,1,"ẳ"],[7859,2],[7860,1,"ẵ"],[7861,2],[7862,1,"ặ"],[7863,2],[7864,1,"ẹ"],[7865,2],[7866,1,"ẻ"],[7867,2],[7868,1,"ẽ"],[7869,2],[7870,1,"ế"],[7871,2],[7872,1,"ề"],[7873,2],[7874,1,"ể"],[7875,2],[7876,1,"ễ"],[7877,2],[7878,1,"ệ"],[7879,2],[7880,1,"ỉ"],[7881,2],[7882,1,"ị"],[7883,2],[7884,1,"ọ"],[7885,2],[7886,1,"ỏ"],[7887,2],[7888,1,"ố"],[7889,2],[7890,1,"ồ"],[7891,2],[7892,1,"ổ"],[7893,2],[7894,1,"ỗ"],[7895,2],[7896,1,"ộ"],[7897,2],[7898,1,"ớ"],[7899,2],[7900,1,"ờ"],[7901,2],[7902,1,"ở"],[7903,2],[7904,1,"ỡ"],[7905,2],[7906,1,"ợ"],[7907,2],[7908,1,"ụ"],[7909,2],[7910,1,"ủ"],[7911,2],[7912,1,"ứ"],[7913,2],[7914,1,"ừ"],[7915,2],[7916,1,"ử"],[7917,2],[7918,1,"ữ"],[7919,2],[7920,1,"ự"],[7921,2],[7922,1,"ỳ"],[7923,2],[7924,1,"ỵ"],[7925,2],[7926,1,"ỷ"],[7927,2],[7928,1,"ỹ"],[7929,2],[7930,1,"ỻ"],[7931,2],[7932,1,"ỽ"],[7933,2],[7934,1,"ỿ"],[7935,2],[[7936,7943],2],[7944,1,"ἀ"],[7945,1,"ἁ"],[7946,1,"ἂ"],[7947,1,"ἃ"],[7948,1,"ἄ"],[7949,1,"ἅ"],[7950,1,"ἆ"],[7951,1,"ἇ"],[[7952,7957],2],[[7958,7959],3],[7960,1,"ἐ"],[7961,1,"ἑ"],[7962,1,"ἒ"],[7963,1,"ἓ"],[7964,1,"ἔ"],[7965,1,"ἕ"],[[7966,7967],3],[[7968,7975],2],[7976,1,"ἠ"],[7977,1,"ἡ"],[7978,1,"ἢ"],[7979,1,"ἣ"],[7980,1,"ἤ"],[7981,1,"ἥ"],[7982,1,"ἦ"],[7983,1,"ἧ"],[[7984,7991],2],[7992,1,"ἰ"],[7993,1,"ἱ"],[7994,1,"ἲ"],[7995,1,"ἳ"],[7996,1,"ἴ"],[7997,1,"ἵ"],[7998,1,"ἶ"],[7999,1,"ἷ"],[[8000,8005],2],[[8006,8007],3],[8008,1,"ὀ"],[8009,1,"ὁ"],[8010,1,"ὂ"],[8011,1,"ὃ"],[8012,1,"ὄ"],[8013,1,"ὅ"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"ὑ"],[8026,3],[8027,1,"ὓ"],[8028,3],[8029,1,"ὕ"],[8030,3],[8031,1,"ὗ"],[[8032,8039],2],[8040,1,"ὠ"],[8041,1,"ὡ"],[8042,1,"ὢ"],[8043,1,"ὣ"],[8044,1,"ὤ"],[8045,1,"ὥ"],[8046,1,"ὦ"],[8047,1,"ὧ"],[8048,2],[8049,1,"ά"],[8050,2],[8051,1,"έ"],[8052,2],[8053,1,"ή"],[8054,2],[8055,1,"ί"],[8056,2],[8057,1,"ό"],[8058,2],[8059,1,"ύ"],[8060,2],[8061,1,"ώ"],[[8062,8063],3],[8064,1,"ἀι"],[8065,1,"ἁι"],[8066,1,"ἂι"],[8067,1,"ἃι"],[8068,1,"ἄι"],[8069,1,"ἅι"],[8070,1,"ἆι"],[8071,1,"ἇι"],[8072,1,"ἀι"],[8073,1,"ἁι"],[8074,1,"ἂι"],[8075,1,"ἃι"],[8076,1,"ἄι"],[8077,1,"ἅι"],[8078,1,"ἆι"],[8079,1,"ἇι"],[8080,1,"ἠι"],[8081,1,"ἡι"],[8082,1,"ἢι"],[8083,1,"ἣι"],[8084,1,"ἤι"],[8085,1,"ἥι"],[8086,1,"ἦι"],[8087,1,"ἧι"],[8088,1,"ἠι"],[8089,1,"ἡι"],[8090,1,"ἢι"],[8091,1,"ἣι"],[8092,1,"ἤι"],[8093,1,"ἥι"],[8094,1,"ἦι"],[8095,1,"ἧι"],[8096,1,"ὠι"],[8097,1,"ὡι"],[8098,1,"ὢι"],[8099,1,"ὣι"],[8100,1,"ὤι"],[8101,1,"ὥι"],[8102,1,"ὦι"],[8103,1,"ὧι"],[8104,1,"ὠι"],[8105,1,"ὡι"],[8106,1,"ὢι"],[8107,1,"ὣι"],[8108,1,"ὤι"],[8109,1,"ὥι"],[8110,1,"ὦι"],[8111,1,"ὧι"],[[8112,8113],2],[8114,1,"ὰι"],[8115,1,"αι"],[8116,1,"άι"],[8117,3],[8118,2],[8119,1,"ᾶι"],[8120,1,"ᾰ"],[8121,1,"ᾱ"],[8122,1,"ὰ"],[8123,1,"ά"],[8124,1,"αι"],[8125,5," ̓"],[8126,1,"ι"],[8127,5," ̓"],[8128,5," ͂"],[8129,5," ̈͂"],[8130,1,"ὴι"],[8131,1,"ηι"],[8132,1,"ήι"],[8133,3],[8134,2],[8135,1,"ῆι"],[8136,1,"ὲ"],[8137,1,"έ"],[8138,1,"ὴ"],[8139,1,"ή"],[8140,1,"ηι"],[8141,5," ̓̀"],[8142,5," ̓́"],[8143,5," ̓͂"],[[8144,8146],2],[8147,1,"ΐ"],[[8148,8149],3],[[8150,8151],2],[8152,1,"ῐ"],[8153,1,"ῑ"],[8154,1,"ὶ"],[8155,1,"ί"],[8156,3],[8157,5," ̔̀"],[8158,5," ̔́"],[8159,5," ̔͂"],[[8160,8162],2],[8163,1,"ΰ"],[[8164,8167],2],[8168,1,"ῠ"],[8169,1,"ῡ"],[8170,1,"ὺ"],[8171,1,"ύ"],[8172,1,"ῥ"],[8173,5," ̈̀"],[8174,5," ̈́"],[8175,5,"`"],[[8176,8177],3],[8178,1,"ὼι"],[8179,1,"ωι"],[8180,1,"ώι"],[8181,3],[8182,2],[8183,1,"ῶι"],[8184,1,"ὸ"],[8185,1,"ό"],[8186,1,"ὼ"],[8187,1,"ώ"],[8188,1,"ωι"],[8189,5," ́"],[8190,5," ̔"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"‐"],[[8210,8214],2],[8215,5," ̳"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"′′"],[8244,1,"′′′"],[8245,2],[8246,1,"‵‵"],[8247,1,"‵‵‵"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," ̅"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"′′′′"],[[8280,8286],2],[8287,5," "],[8288,7],[[8289,8291],3],[8292,7],[8293,3],[[8294,8297],3],[[8298,8303],3],[8304,1,"0"],[8305,1,"i"],[[8306,8307],3],[8308,1,"4"],[8309,1,"5"],[8310,1,"6"],[8311,1,"7"],[8312,1,"8"],[8313,1,"9"],[8314,5,"+"],[8315,1,"−"],[8316,5,"="],[8317,5,"("],[8318,5,")"],[8319,1,"n"],[8320,1,"0"],[8321,1,"1"],[8322,1,"2"],[8323,1,"3"],[8324,1,"4"],[8325,1,"5"],[8326,1,"6"],[8327,1,"7"],[8328,1,"8"],[8329,1,"9"],[8330,5,"+"],[8331,1,"−"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"ə"],[8341,1,"h"],[8342,1,"k"],[8343,1,"l"],[8344,1,"m"],[8345,1,"n"],[8346,1,"p"],[8347,1,"s"],[8348,1,"t"],[[8349,8351],3],[[8352,8359],2],[8360,1,"rs"],[[8361,8362],2],[8363,2],[8364,2],[[8365,8367],2],[[8368,8369],2],[[8370,8373],2],[[8374,8376],2],[8377,2],[8378,2],[[8379,8381],2],[8382,2],[8383,2],[8384,2],[[8385,8399],3],[[8400,8417],2],[[8418,8419],2],[[8420,8426],2],[8427,2],[[8428,8431],2],[8432,2],[[8433,8447],3],[8448,5,"a/c"],[8449,5,"a/s"],[8450,1,"c"],[8451,1,"°c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"ɛ"],[8456,2],[8457,1,"°f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"ħ"],[[8464,8465],1,"i"],[[8466,8467],1,"l"],[8468,2],[8469,1,"n"],[8470,1,"no"],[[8471,8472],2],[8473,1,"p"],[8474,1,"q"],[[8475,8477],1,"r"],[[8478,8479],2],[8480,1,"sm"],[8481,1,"tel"],[8482,1,"tm"],[8483,2],[8484,1,"z"],[8485,2],[8486,1,"ω"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"å"],[8492,1,"b"],[8493,1,"c"],[8494,2],[[8495,8496],1,"e"],[8497,1,"f"],[8498,3],[8499,1,"m"],[8500,1,"o"],[8501,1,"א"],[8502,1,"ב"],[8503,1,"ג"],[8504,1,"ד"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"π"],[[8509,8510],1,"γ"],[8511,1,"π"],[8512,1,"∑"],[[8513,8516],2],[[8517,8518],1,"d"],[8519,1,"e"],[8520,1,"i"],[8521,1,"j"],[[8522,8523],2],[8524,2],[8525,2],[8526,2],[8527,2],[8528,1,"1⁄7"],[8529,1,"1⁄9"],[8530,1,"1⁄10"],[8531,1,"1⁄3"],[8532,1,"2⁄3"],[8533,1,"1⁄5"],[8534,1,"2⁄5"],[8535,1,"3⁄5"],[8536,1,"4⁄5"],[8537,1,"1⁄6"],[8538,1,"5⁄6"],[8539,1,"1⁄8"],[8540,1,"3⁄8"],[8541,1,"5⁄8"],[8542,1,"7⁄8"],[8543,1,"1⁄"],[8544,1,"i"],[8545,1,"ii"],[8546,1,"iii"],[8547,1,"iv"],[8548,1,"v"],[8549,1,"vi"],[8550,1,"vii"],[8551,1,"viii"],[8552,1,"ix"],[8553,1,"x"],[8554,1,"xi"],[8555,1,"xii"],[8556,1,"l"],[8557,1,"c"],[8558,1,"d"],[8559,1,"m"],[8560,1,"i"],[8561,1,"ii"],[8562,1,"iii"],[8563,1,"iv"],[8564,1,"v"],[8565,1,"vi"],[8566,1,"vii"],[8567,1,"viii"],[8568,1,"ix"],[8569,1,"x"],[8570,1,"xi"],[8571,1,"xii"],[8572,1,"l"],[8573,1,"c"],[8574,1,"d"],[8575,1,"m"],[[8576,8578],2],[8579,3],[8580,2],[[8581,8584],2],[8585,1,"0⁄3"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"∫∫"],[8749,1,"∫∫∫"],[8750,2],[8751,1,"∮∮"],[8752,1,"∮∮∮"],[[8753,8799],2],[8800,4],[[8801,8813],2],[[8814,8815],4],[[8816,8945],2],[[8946,8959],2],[8960,2],[8961,2],[[8962,9000],2],[9001,1,"〈"],[9002,1,"〉"],[[9003,9082],2],[9083,2],[9084,2],[[9085,9114],2],[[9115,9166],2],[[9167,9168],2],[[9169,9179],2],[[9180,9191],2],[9192,2],[[9193,9203],2],[[9204,9210],2],[[9211,9214],2],[9215,2],[[9216,9252],2],[[9253,9254],2],[[9255,9279],3],[[9280,9290],2],[[9291,9311],3],[9312,1,"1"],[9313,1,"2"],[9314,1,"3"],[9315,1,"4"],[9316,1,"5"],[9317,1,"6"],[9318,1,"7"],[9319,1,"8"],[9320,1,"9"],[9321,1,"10"],[9322,1,"11"],[9323,1,"12"],[9324,1,"13"],[9325,1,"14"],[9326,1,"15"],[9327,1,"16"],[9328,1,"17"],[9329,1,"18"],[9330,1,"19"],[9331,1,"20"],[9332,5,"(1)"],[9333,5,"(2)"],[9334,5,"(3)"],[9335,5,"(4)"],[9336,5,"(5)"],[9337,5,"(6)"],[9338,5,"(7)"],[9339,5,"(8)"],[9340,5,"(9)"],[9341,5,"(10)"],[9342,5,"(11)"],[9343,5,"(12)"],[9344,5,"(13)"],[9345,5,"(14)"],[9346,5,"(15)"],[9347,5,"(16)"],[9348,5,"(17)"],[9349,5,"(18)"],[9350,5,"(19)"],[9351,5,"(20)"],[[9352,9371],3],[9372,5,"(a)"],[9373,5,"(b)"],[9374,5,"(c)"],[9375,5,"(d)"],[9376,5,"(e)"],[9377,5,"(f)"],[9378,5,"(g)"],[9379,5,"(h)"],[9380,5,"(i)"],[9381,5,"(j)"],[9382,5,"(k)"],[9383,5,"(l)"],[9384,5,"(m)"],[9385,5,"(n)"],[9386,5,"(o)"],[9387,5,"(p)"],[9388,5,"(q)"],[9389,5,"(r)"],[9390,5,"(s)"],[9391,5,"(t)"],[9392,5,"(u)"],[9393,5,"(v)"],[9394,5,"(w)"],[9395,5,"(x)"],[9396,5,"(y)"],[9397,5,"(z)"],[9398,1,"a"],[9399,1,"b"],[9400,1,"c"],[9401,1,"d"],[9402,1,"e"],[9403,1,"f"],[9404,1,"g"],[9405,1,"h"],[9406,1,"i"],[9407,1,"j"],[9408,1,"k"],[9409,1,"l"],[9410,1,"m"],[9411,1,"n"],[9412,1,"o"],[9413,1,"p"],[9414,1,"q"],[9415,1,"r"],[9416,1,"s"],[9417,1,"t"],[9418,1,"u"],[9419,1,"v"],[9420,1,"w"],[9421,1,"x"],[9422,1,"y"],[9423,1,"z"],[9424,1,"a"],[9425,1,"b"],[9426,1,"c"],[9427,1,"d"],[9428,1,"e"],[9429,1,"f"],[9430,1,"g"],[9431,1,"h"],[9432,1,"i"],[9433,1,"j"],[9434,1,"k"],[9435,1,"l"],[9436,1,"m"],[9437,1,"n"],[9438,1,"o"],[9439,1,"p"],[9440,1,"q"],[9441,1,"r"],[9442,1,"s"],[9443,1,"t"],[9444,1,"u"],[9445,1,"v"],[9446,1,"w"],[9447,1,"x"],[9448,1,"y"],[9449,1,"z"],[9450,1,"0"],[[9451,9470],2],[9471,2],[[9472,9621],2],[[9622,9631],2],[[9632,9711],2],[[9712,9719],2],[[9720,9727],2],[[9728,9747],2],[[9748,9749],2],[[9750,9751],2],[9752,2],[9753,2],[[9754,9839],2],[[9840,9841],2],[[9842,9853],2],[[9854,9855],2],[[9856,9865],2],[[9866,9873],2],[[9874,9884],2],[9885,2],[[9886,9887],2],[[9888,9889],2],[[9890,9905],2],[9906,2],[[9907,9916],2],[[9917,9919],2],[[9920,9923],2],[[9924,9933],2],[9934,2],[[9935,9953],2],[9954,2],[9955,2],[[9956,9959],2],[[9960,9983],2],[9984,2],[[9985,9988],2],[9989,2],[[9990,9993],2],[[9994,9995],2],[[9996,10023],2],[10024,2],[[10025,10059],2],[10060,2],[10061,2],[10062,2],[[10063,10066],2],[[10067,10069],2],[10070,2],[10071,2],[[10072,10078],2],[[10079,10080],2],[[10081,10087],2],[[10088,10101],2],[[10102,10132],2],[[10133,10135],2],[[10136,10159],2],[10160,2],[[10161,10174],2],[10175,2],[[10176,10182],2],[[10183,10186],2],[10187,2],[10188,2],[10189,2],[[10190,10191],2],[[10192,10219],2],[[10220,10223],2],[[10224,10239],2],[[10240,10495],2],[[10496,10763],2],[10764,1,"∫∫∫∫"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"⫝̸"],[[10973,11007],2],[[11008,11021],2],[[11022,11027],2],[[11028,11034],2],[[11035,11039],2],[[11040,11043],2],[[11044,11084],2],[[11085,11087],2],[[11088,11092],2],[[11093,11097],2],[[11098,11123],2],[[11124,11125],3],[[11126,11157],2],[11158,3],[11159,2],[[11160,11193],2],[[11194,11196],2],[[11197,11208],2],[11209,2],[[11210,11217],2],[11218,2],[[11219,11243],2],[[11244,11247],2],[[11248,11262],2],[11263,2],[11264,1,"ⰰ"],[11265,1,"ⰱ"],[11266,1,"ⰲ"],[11267,1,"ⰳ"],[11268,1,"ⰴ"],[11269,1,"ⰵ"],[11270,1,"ⰶ"],[11271,1,"ⰷ"],[11272,1,"ⰸ"],[11273,1,"ⰹ"],[11274,1,"ⰺ"],[11275,1,"ⰻ"],[11276,1,"ⰼ"],[11277,1,"ⰽ"],[11278,1,"ⰾ"],[11279,1,"ⰿ"],[11280,1,"ⱀ"],[11281,1,"ⱁ"],[11282,1,"ⱂ"],[11283,1,"ⱃ"],[11284,1,"ⱄ"],[11285,1,"ⱅ"],[11286,1,"ⱆ"],[11287,1,"ⱇ"],[11288,1,"ⱈ"],[11289,1,"ⱉ"],[11290,1,"ⱊ"],[11291,1,"ⱋ"],[11292,1,"ⱌ"],[11293,1,"ⱍ"],[11294,1,"ⱎ"],[11295,1,"ⱏ"],[11296,1,"ⱐ"],[11297,1,"ⱑ"],[11298,1,"ⱒ"],[11299,1,"ⱓ"],[11300,1,"ⱔ"],[11301,1,"ⱕ"],[11302,1,"ⱖ"],[11303,1,"ⱗ"],[11304,1,"ⱘ"],[11305,1,"ⱙ"],[11306,1,"ⱚ"],[11307,1,"ⱛ"],[11308,1,"ⱜ"],[11309,1,"ⱝ"],[11310,1,"ⱞ"],[11311,1,"ⱟ"],[[11312,11358],2],[11359,2],[11360,1,"ⱡ"],[11361,2],[11362,1,"ɫ"],[11363,1,"ᵽ"],[11364,1,"ɽ"],[[11365,11366],2],[11367,1,"ⱨ"],[11368,2],[11369,1,"ⱪ"],[11370,2],[11371,1,"ⱬ"],[11372,2],[11373,1,"ɑ"],[11374,1,"ɱ"],[11375,1,"ɐ"],[11376,1,"ɒ"],[11377,2],[11378,1,"ⱳ"],[11379,2],[11380,2],[11381,1,"ⱶ"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"ȿ"],[11391,1,"ɀ"],[11392,1,"ⲁ"],[11393,2],[11394,1,"ⲃ"],[11395,2],[11396,1,"ⲅ"],[11397,2],[11398,1,"ⲇ"],[11399,2],[11400,1,"ⲉ"],[11401,2],[11402,1,"ⲋ"],[11403,2],[11404,1,"ⲍ"],[11405,2],[11406,1,"ⲏ"],[11407,2],[11408,1,"ⲑ"],[11409,2],[11410,1,"ⲓ"],[11411,2],[11412,1,"ⲕ"],[11413,2],[11414,1,"ⲗ"],[11415,2],[11416,1,"ⲙ"],[11417,2],[11418,1,"ⲛ"],[11419,2],[11420,1,"ⲝ"],[11421,2],[11422,1,"ⲟ"],[11423,2],[11424,1,"ⲡ"],[11425,2],[11426,1,"ⲣ"],[11427,2],[11428,1,"ⲥ"],[11429,2],[11430,1,"ⲧ"],[11431,2],[11432,1,"ⲩ"],[11433,2],[11434,1,"ⲫ"],[11435,2],[11436,1,"ⲭ"],[11437,2],[11438,1,"ⲯ"],[11439,2],[11440,1,"ⲱ"],[11441,2],[11442,1,"ⲳ"],[11443,2],[11444,1,"ⲵ"],[11445,2],[11446,1,"ⲷ"],[11447,2],[11448,1,"ⲹ"],[11449,2],[11450,1,"ⲻ"],[11451,2],[11452,1,"ⲽ"],[11453,2],[11454,1,"ⲿ"],[11455,2],[11456,1,"ⳁ"],[11457,2],[11458,1,"ⳃ"],[11459,2],[11460,1,"ⳅ"],[11461,2],[11462,1,"ⳇ"],[11463,2],[11464,1,"ⳉ"],[11465,2],[11466,1,"ⳋ"],[11467,2],[11468,1,"ⳍ"],[11469,2],[11470,1,"ⳏ"],[11471,2],[11472,1,"ⳑ"],[11473,2],[11474,1,"ⳓ"],[11475,2],[11476,1,"ⳕ"],[11477,2],[11478,1,"ⳗ"],[11479,2],[11480,1,"ⳙ"],[11481,2],[11482,1,"ⳛ"],[11483,2],[11484,1,"ⳝ"],[11485,2],[11486,1,"ⳟ"],[11487,2],[11488,1,"ⳡ"],[11489,2],[11490,1,"ⳣ"],[[11491,11492],2],[[11493,11498],2],[11499,1,"ⳬ"],[11500,2],[11501,1,"ⳮ"],[[11502,11505],2],[11506,1,"ⳳ"],[11507,2],[[11508,11512],3],[[11513,11519],2],[[11520,11557],2],[11558,3],[11559,2],[[11560,11564],3],[11565,2],[[11566,11567],3],[[11568,11621],2],[[11622,11623],2],[[11624,11630],3],[11631,1,"ⵡ"],[11632,2],[[11633,11646],3],[11647,2],[[11648,11670],2],[[11671,11679],3],[[11680,11686],2],[11687,3],[[11688,11694],2],[11695,3],[[11696,11702],2],[11703,3],[[11704,11710],2],[11711,3],[[11712,11718],2],[11719,3],[[11720,11726],2],[11727,3],[[11728,11734],2],[11735,3],[[11736,11742],2],[11743,3],[[11744,11775],2],[[11776,11799],2],[[11800,11803],2],[[11804,11805],2],[[11806,11822],2],[11823,2],[11824,2],[11825,2],[[11826,11835],2],[[11836,11842],2],[[11843,11844],2],[[11845,11849],2],[[11850,11854],2],[11855,2],[[11856,11858],2],[[11859,11869],2],[[11870,11903],3],[[11904,11929],2],[11930,3],[[11931,11934],2],[11935,1,"母"],[[11936,12018],2],[12019,1,"龟"],[[12020,12031],3],[12032,1,"一"],[12033,1,"丨"],[12034,1,"丶"],[12035,1,"丿"],[12036,1,"乙"],[12037,1,"亅"],[12038,1,"二"],[12039,1,"亠"],[12040,1,"人"],[12041,1,"儿"],[12042,1,"入"],[12043,1,"八"],[12044,1,"冂"],[12045,1,"冖"],[12046,1,"冫"],[12047,1,"几"],[12048,1,"凵"],[12049,1,"刀"],[12050,1,"力"],[12051,1,"勹"],[12052,1,"匕"],[12053,1,"匚"],[12054,1,"匸"],[12055,1,"十"],[12056,1,"卜"],[12057,1,"卩"],[12058,1,"厂"],[12059,1,"厶"],[12060,1,"又"],[12061,1,"口"],[12062,1,"囗"],[12063,1,"土"],[12064,1,"士"],[12065,1,"夂"],[12066,1,"夊"],[12067,1,"夕"],[12068,1,"大"],[12069,1,"女"],[12070,1,"子"],[12071,1,"宀"],[12072,1,"寸"],[12073,1,"小"],[12074,1,"尢"],[12075,1,"尸"],[12076,1,"屮"],[12077,1,"山"],[12078,1,"巛"],[12079,1,"工"],[12080,1,"己"],[12081,1,"巾"],[12082,1,"干"],[12083,1,"幺"],[12084,1,"广"],[12085,1,"廴"],[12086,1,"廾"],[12087,1,"弋"],[12088,1,"弓"],[12089,1,"彐"],[12090,1,"彡"],[12091,1,"彳"],[12092,1,"心"],[12093,1,"戈"],[12094,1,"戶"],[12095,1,"手"],[12096,1,"支"],[12097,1,"攴"],[12098,1,"文"],[12099,1,"斗"],[12100,1,"斤"],[12101,1,"方"],[12102,1,"无"],[12103,1,"日"],[12104,1,"曰"],[12105,1,"月"],[12106,1,"木"],[12107,1,"欠"],[12108,1,"止"],[12109,1,"歹"],[12110,1,"殳"],[12111,1,"毋"],[12112,1,"比"],[12113,1,"毛"],[12114,1,"氏"],[12115,1,"气"],[12116,1,"水"],[12117,1,"火"],[12118,1,"爪"],[12119,1,"父"],[12120,1,"爻"],[12121,1,"爿"],[12122,1,"片"],[12123,1,"牙"],[12124,1,"牛"],[12125,1,"犬"],[12126,1,"玄"],[12127,1,"玉"],[12128,1,"瓜"],[12129,1,"瓦"],[12130,1,"甘"],[12131,1,"生"],[12132,1,"用"],[12133,1,"田"],[12134,1,"疋"],[12135,1,"疒"],[12136,1,"癶"],[12137,1,"白"],[12138,1,"皮"],[12139,1,"皿"],[12140,1,"目"],[12141,1,"矛"],[12142,1,"矢"],[12143,1,"石"],[12144,1,"示"],[12145,1,"禸"],[12146,1,"禾"],[12147,1,"穴"],[12148,1,"立"],[12149,1,"竹"],[12150,1,"米"],[12151,1,"糸"],[12152,1,"缶"],[12153,1,"网"],[12154,1,"羊"],[12155,1,"羽"],[12156,1,"老"],[12157,1,"而"],[12158,1,"耒"],[12159,1,"耳"],[12160,1,"聿"],[12161,1,"肉"],[12162,1,"臣"],[12163,1,"自"],[12164,1,"至"],[12165,1,"臼"],[12166,1,"舌"],[12167,1,"舛"],[12168,1,"舟"],[12169,1,"艮"],[12170,1,"色"],[12171,1,"艸"],[12172,1,"虍"],[12173,1,"虫"],[12174,1,"血"],[12175,1,"行"],[12176,1,"衣"],[12177,1,"襾"],[12178,1,"見"],[12179,1,"角"],[12180,1,"言"],[12181,1,"谷"],[12182,1,"豆"],[12183,1,"豕"],[12184,1,"豸"],[12185,1,"貝"],[12186,1,"赤"],[12187,1,"走"],[12188,1,"足"],[12189,1,"身"],[12190,1,"車"],[12191,1,"辛"],[12192,1,"辰"],[12193,1,"辵"],[12194,1,"邑"],[12195,1,"酉"],[12196,1,"釆"],[12197,1,"里"],[12198,1,"金"],[12199,1,"長"],[12200,1,"門"],[12201,1,"阜"],[12202,1,"隶"],[12203,1,"隹"],[12204,1,"雨"],[12205,1,"靑"],[12206,1,"非"],[12207,1,"面"],[12208,1,"革"],[12209,1,"韋"],[12210,1,"韭"],[12211,1,"音"],[12212,1,"頁"],[12213,1,"風"],[12214,1,"飛"],[12215,1,"食"],[12216,1,"首"],[12217,1,"香"],[12218,1,"馬"],[12219,1,"骨"],[12220,1,"高"],[12221,1,"髟"],[12222,1,"鬥"],[12223,1,"鬯"],[12224,1,"鬲"],[12225,1,"鬼"],[12226,1,"魚"],[12227,1,"鳥"],[12228,1,"鹵"],[12229,1,"鹿"],[12230,1,"麥"],[12231,1,"麻"],[12232,1,"黃"],[12233,1,"黍"],[12234,1,"黑"],[12235,1,"黹"],[12236,1,"黽"],[12237,1,"鼎"],[12238,1,"鼓"],[12239,1,"鼠"],[12240,1,"鼻"],[12241,1,"齊"],[12242,1,"齒"],[12243,1,"龍"],[12244,1,"龜"],[12245,1,"龠"],[[12246,12271],3],[[12272,12283],3],[[12284,12287],3],[12288,5," "],[12289,2],[12290,1,"."],[[12291,12292],2],[[12293,12295],2],[[12296,12329],2],[[12330,12333],2],[[12334,12341],2],[12342,1,"〒"],[12343,2],[12344,1,"十"],[12345,1,"卄"],[12346,1,"卅"],[12347,2],[12348,2],[12349,2],[12350,2],[12351,2],[12352,3],[[12353,12436],2],[[12437,12438],2],[[12439,12440],3],[[12441,12442],2],[12443,5," ゙"],[12444,5," ゚"],[[12445,12446],2],[12447,1,"より"],[12448,2],[[12449,12542],2],[12543,1,"コト"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"ᄀ"],[12594,1,"ᄁ"],[12595,1,"ᆪ"],[12596,1,"ᄂ"],[12597,1,"ᆬ"],[12598,1,"ᆭ"],[12599,1,"ᄃ"],[12600,1,"ᄄ"],[12601,1,"ᄅ"],[12602,1,"ᆰ"],[12603,1,"ᆱ"],[12604,1,"ᆲ"],[12605,1,"ᆳ"],[12606,1,"ᆴ"],[12607,1,"ᆵ"],[12608,1,"ᄚ"],[12609,1,"ᄆ"],[12610,1,"ᄇ"],[12611,1,"ᄈ"],[12612,1,"ᄡ"],[12613,1,"ᄉ"],[12614,1,"ᄊ"],[12615,1,"ᄋ"],[12616,1,"ᄌ"],[12617,1,"ᄍ"],[12618,1,"ᄎ"],[12619,1,"ᄏ"],[12620,1,"ᄐ"],[12621,1,"ᄑ"],[12622,1,"ᄒ"],[12623,1,"ᅡ"],[12624,1,"ᅢ"],[12625,1,"ᅣ"],[12626,1,"ᅤ"],[12627,1,"ᅥ"],[12628,1,"ᅦ"],[12629,1,"ᅧ"],[12630,1,"ᅨ"],[12631,1,"ᅩ"],[12632,1,"ᅪ"],[12633,1,"ᅫ"],[12634,1,"ᅬ"],[12635,1,"ᅭ"],[12636,1,"ᅮ"],[12637,1,"ᅯ"],[12638,1,"ᅰ"],[12639,1,"ᅱ"],[12640,1,"ᅲ"],[12641,1,"ᅳ"],[12642,1,"ᅴ"],[12643,1,"ᅵ"],[12644,3],[12645,1,"ᄔ"],[12646,1,"ᄕ"],[12647,1,"ᇇ"],[12648,1,"ᇈ"],[12649,1,"ᇌ"],[12650,1,"ᇎ"],[12651,1,"ᇓ"],[12652,1,"ᇗ"],[12653,1,"ᇙ"],[12654,1,"ᄜ"],[12655,1,"ᇝ"],[12656,1,"ᇟ"],[12657,1,"ᄝ"],[12658,1,"ᄞ"],[12659,1,"ᄠ"],[12660,1,"ᄢ"],[12661,1,"ᄣ"],[12662,1,"ᄧ"],[12663,1,"ᄩ"],[12664,1,"ᄫ"],[12665,1,"ᄬ"],[12666,1,"ᄭ"],[12667,1,"ᄮ"],[12668,1,"ᄯ"],[12669,1,"ᄲ"],[12670,1,"ᄶ"],[12671,1,"ᅀ"],[12672,1,"ᅇ"],[12673,1,"ᅌ"],[12674,1,"ᇱ"],[12675,1,"ᇲ"],[12676,1,"ᅗ"],[12677,1,"ᅘ"],[12678,1,"ᅙ"],[12679,1,"ᆄ"],[12680,1,"ᆅ"],[12681,1,"ᆈ"],[12682,1,"ᆑ"],[12683,1,"ᆒ"],[12684,1,"ᆔ"],[12685,1,"ᆞ"],[12686,1,"ᆡ"],[12687,3],[[12688,12689],2],[12690,1,"一"],[12691,1,"二"],[12692,1,"三"],[12693,1,"四"],[12694,1,"上"],[12695,1,"中"],[12696,1,"下"],[12697,1,"甲"],[12698,1,"乙"],[12699,1,"丙"],[12700,1,"丁"],[12701,1,"天"],[12702,1,"地"],[12703,1,"人"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12783],3],[[12784,12799],2],[12800,5,"(ᄀ)"],[12801,5,"(ᄂ)"],[12802,5,"(ᄃ)"],[12803,5,"(ᄅ)"],[12804,5,"(ᄆ)"],[12805,5,"(ᄇ)"],[12806,5,"(ᄉ)"],[12807,5,"(ᄋ)"],[12808,5,"(ᄌ)"],[12809,5,"(ᄎ)"],[12810,5,"(ᄏ)"],[12811,5,"(ᄐ)"],[12812,5,"(ᄑ)"],[12813,5,"(ᄒ)"],[12814,5,"(가)"],[12815,5,"(나)"],[12816,5,"(다)"],[12817,5,"(라)"],[12818,5,"(마)"],[12819,5,"(바)"],[12820,5,"(사)"],[12821,5,"(아)"],[12822,5,"(자)"],[12823,5,"(차)"],[12824,5,"(카)"],[12825,5,"(타)"],[12826,5,"(파)"],[12827,5,"(하)"],[12828,5,"(주)"],[12829,5,"(오전)"],[12830,5,"(오후)"],[12831,3],[12832,5,"(一)"],[12833,5,"(二)"],[12834,5,"(三)"],[12835,5,"(四)"],[12836,5,"(五)"],[12837,5,"(六)"],[12838,5,"(七)"],[12839,5,"(八)"],[12840,5,"(九)"],[12841,5,"(十)"],[12842,5,"(月)"],[12843,5,"(火)"],[12844,5,"(水)"],[12845,5,"(木)"],[12846,5,"(金)"],[12847,5,"(土)"],[12848,5,"(日)"],[12849,5,"(株)"],[12850,5,"(有)"],[12851,5,"(社)"],[12852,5,"(名)"],[12853,5,"(特)"],[12854,5,"(財)"],[12855,5,"(祝)"],[12856,5,"(労)"],[12857,5,"(代)"],[12858,5,"(呼)"],[12859,5,"(学)"],[12860,5,"(監)"],[12861,5,"(企)"],[12862,5,"(資)"],[12863,5,"(協)"],[12864,5,"(祭)"],[12865,5,"(休)"],[12866,5,"(自)"],[12867,5,"(至)"],[12868,1,"問"],[12869,1,"幼"],[12870,1,"文"],[12871,1,"箏"],[[12872,12879],2],[12880,1,"pte"],[12881,1,"21"],[12882,1,"22"],[12883,1,"23"],[12884,1,"24"],[12885,1,"25"],[12886,1,"26"],[12887,1,"27"],[12888,1,"28"],[12889,1,"29"],[12890,1,"30"],[12891,1,"31"],[12892,1,"32"],[12893,1,"33"],[12894,1,"34"],[12895,1,"35"],[12896,1,"ᄀ"],[12897,1,"ᄂ"],[12898,1,"ᄃ"],[12899,1,"ᄅ"],[12900,1,"ᄆ"],[12901,1,"ᄇ"],[12902,1,"ᄉ"],[12903,1,"ᄋ"],[12904,1,"ᄌ"],[12905,1,"ᄎ"],[12906,1,"ᄏ"],[12907,1,"ᄐ"],[12908,1,"ᄑ"],[12909,1,"ᄒ"],[12910,1,"가"],[12911,1,"나"],[12912,1,"다"],[12913,1,"라"],[12914,1,"마"],[12915,1,"바"],[12916,1,"사"],[12917,1,"아"],[12918,1,"자"],[12919,1,"차"],[12920,1,"카"],[12921,1,"타"],[12922,1,"파"],[12923,1,"하"],[12924,1,"참고"],[12925,1,"주의"],[12926,1,"우"],[12927,2],[12928,1,"一"],[12929,1,"二"],[12930,1,"三"],[12931,1,"四"],[12932,1,"五"],[12933,1,"六"],[12934,1,"七"],[12935,1,"八"],[12936,1,"九"],[12937,1,"十"],[12938,1,"月"],[12939,1,"火"],[12940,1,"水"],[12941,1,"木"],[12942,1,"金"],[12943,1,"土"],[12944,1,"日"],[12945,1,"株"],[12946,1,"有"],[12947,1,"社"],[12948,1,"名"],[12949,1,"特"],[12950,1,"財"],[12951,1,"祝"],[12952,1,"労"],[12953,1,"秘"],[12954,1,"男"],[12955,1,"女"],[12956,1,"適"],[12957,1,"優"],[12958,1,"印"],[12959,1,"注"],[12960,1,"項"],[12961,1,"休"],[12962,1,"写"],[12963,1,"正"],[12964,1,"上"],[12965,1,"中"],[12966,1,"下"],[12967,1,"左"],[12968,1,"右"],[12969,1,"医"],[12970,1,"宗"],[12971,1,"学"],[12972,1,"監"],[12973,1,"企"],[12974,1,"資"],[12975,1,"協"],[12976,1,"夜"],[12977,1,"36"],[12978,1,"37"],[12979,1,"38"],[12980,1,"39"],[12981,1,"40"],[12982,1,"41"],[12983,1,"42"],[12984,1,"43"],[12985,1,"44"],[12986,1,"45"],[12987,1,"46"],[12988,1,"47"],[12989,1,"48"],[12990,1,"49"],[12991,1,"50"],[12992,1,"1月"],[12993,1,"2月"],[12994,1,"3月"],[12995,1,"4月"],[12996,1,"5月"],[12997,1,"6月"],[12998,1,"7月"],[12999,1,"8月"],[13000,1,"9月"],[13001,1,"10月"],[13002,1,"11月"],[13003,1,"12月"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"ア"],[13009,1,"イ"],[13010,1,"ウ"],[13011,1,"エ"],[13012,1,"オ"],[13013,1,"カ"],[13014,1,"キ"],[13015,1,"ク"],[13016,1,"ケ"],[13017,1,"コ"],[13018,1,"サ"],[13019,1,"シ"],[13020,1,"ス"],[13021,1,"セ"],[13022,1,"ソ"],[13023,1,"タ"],[13024,1,"チ"],[13025,1,"ツ"],[13026,1,"テ"],[13027,1,"ト"],[13028,1,"ナ"],[13029,1,"ニ"],[13030,1,"ヌ"],[13031,1,"ネ"],[13032,1,"ノ"],[13033,1,"ハ"],[13034,1,"ヒ"],[13035,1,"フ"],[13036,1,"ヘ"],[13037,1,"ホ"],[13038,1,"マ"],[13039,1,"ミ"],[13040,1,"ム"],[13041,1,"メ"],[13042,1,"モ"],[13043,1,"ヤ"],[13044,1,"ユ"],[13045,1,"ヨ"],[13046,1,"ラ"],[13047,1,"リ"],[13048,1,"ル"],[13049,1,"レ"],[13050,1,"ロ"],[13051,1,"ワ"],[13052,1,"ヰ"],[13053,1,"ヱ"],[13054,1,"ヲ"],[13055,1,"令和"],[13056,1,"アパート"],[13057,1,"アルファ"],[13058,1,"アンペア"],[13059,1,"アール"],[13060,1,"イニング"],[13061,1,"インチ"],[13062,1,"ウォン"],[13063,1,"エスクード"],[13064,1,"エーカー"],[13065,1,"オンス"],[13066,1,"オーム"],[13067,1,"カイリ"],[13068,1,"カラット"],[13069,1,"カロリー"],[13070,1,"ガロン"],[13071,1,"ガンマ"],[13072,1,"ギガ"],[13073,1,"ギニー"],[13074,1,"キュリー"],[13075,1,"ギルダー"],[13076,1,"キロ"],[13077,1,"キログラム"],[13078,1,"キロメートル"],[13079,1,"キロワット"],[13080,1,"グラム"],[13081,1,"グラムトン"],[13082,1,"クルゼイロ"],[13083,1,"クローネ"],[13084,1,"ケース"],[13085,1,"コルナ"],[13086,1,"コーポ"],[13087,1,"サイクル"],[13088,1,"サンチーム"],[13089,1,"シリング"],[13090,1,"センチ"],[13091,1,"セント"],[13092,1,"ダース"],[13093,1,"デシ"],[13094,1,"ドル"],[13095,1,"トン"],[13096,1,"ナノ"],[13097,1,"ノット"],[13098,1,"ハイツ"],[13099,1,"パーセント"],[13100,1,"パーツ"],[13101,1,"バーレル"],[13102,1,"ピアストル"],[13103,1,"ピクル"],[13104,1,"ピコ"],[13105,1,"ビル"],[13106,1,"ファラッド"],[13107,1,"フィート"],[13108,1,"ブッシェル"],[13109,1,"フラン"],[13110,1,"ヘクタール"],[13111,1,"ペソ"],[13112,1,"ペニヒ"],[13113,1,"ヘルツ"],[13114,1,"ペンス"],[13115,1,"ページ"],[13116,1,"ベータ"],[13117,1,"ポイント"],[13118,1,"ボルト"],[13119,1,"ホン"],[13120,1,"ポンド"],[13121,1,"ホール"],[13122,1,"ホーン"],[13123,1,"マイクロ"],[13124,1,"マイル"],[13125,1,"マッハ"],[13126,1,"マルク"],[13127,1,"マンション"],[13128,1,"ミクロン"],[13129,1,"ミリ"],[13130,1,"ミリバール"],[13131,1,"メガ"],[13132,1,"メガトン"],[13133,1,"メートル"],[13134,1,"ヤード"],[13135,1,"ヤール"],[13136,1,"ユアン"],[13137,1,"リットル"],[13138,1,"リラ"],[13139,1,"ルピー"],[13140,1,"ルーブル"],[13141,1,"レム"],[13142,1,"レントゲン"],[13143,1,"ワット"],[13144,1,"0点"],[13145,1,"1点"],[13146,1,"2点"],[13147,1,"3点"],[13148,1,"4点"],[13149,1,"5点"],[13150,1,"6点"],[13151,1,"7点"],[13152,1,"8点"],[13153,1,"9点"],[13154,1,"10点"],[13155,1,"11点"],[13156,1,"12点"],[13157,1,"13点"],[13158,1,"14点"],[13159,1,"15点"],[13160,1,"16点"],[13161,1,"17点"],[13162,1,"18点"],[13163,1,"19点"],[13164,1,"20点"],[13165,1,"21点"],[13166,1,"22点"],[13167,1,"23点"],[13168,1,"24点"],[13169,1,"hpa"],[13170,1,"da"],[13171,1,"au"],[13172,1,"bar"],[13173,1,"ov"],[13174,1,"pc"],[13175,1,"dm"],[13176,1,"dm2"],[13177,1,"dm3"],[13178,1,"iu"],[13179,1,"平成"],[13180,1,"昭和"],[13181,1,"大正"],[13182,1,"明治"],[13183,1,"株式会社"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"μa"],[13187,1,"ma"],[13188,1,"ka"],[13189,1,"kb"],[13190,1,"mb"],[13191,1,"gb"],[13192,1,"cal"],[13193,1,"kcal"],[13194,1,"pf"],[13195,1,"nf"],[13196,1,"μf"],[13197,1,"μg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"μl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"μm"],[13212,1,"mm"],[13213,1,"cm"],[13214,1,"km"],[13215,1,"mm2"],[13216,1,"cm2"],[13217,1,"m2"],[13218,1,"km2"],[13219,1,"mm3"],[13220,1,"cm3"],[13221,1,"m3"],[13222,1,"km3"],[13223,1,"m∕s"],[13224,1,"m∕s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad∕s"],[13231,1,"rad∕s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"μs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"μv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"μw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"kω"],[13249,1,"mω"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c∕kg"],[13255,3],[13256,1,"db"],[13257,1,"gy"],[13258,1,"ha"],[13259,1,"hp"],[13260,1,"in"],[13261,1,"kk"],[13262,1,"km"],[13263,1,"kt"],[13264,1,"lm"],[13265,1,"ln"],[13266,1,"log"],[13267,1,"lx"],[13268,1,"mb"],[13269,1,"mil"],[13270,1,"mol"],[13271,1,"ph"],[13272,3],[13273,1,"ppm"],[13274,1,"pr"],[13275,1,"sr"],[13276,1,"sv"],[13277,1,"wb"],[13278,1,"v∕m"],[13279,1,"a∕m"],[13280,1,"1日"],[13281,1,"2日"],[13282,1,"3日"],[13283,1,"4日"],[13284,1,"5日"],[13285,1,"6日"],[13286,1,"7日"],[13287,1,"8日"],[13288,1,"9日"],[13289,1,"10日"],[13290,1,"11日"],[13291,1,"12日"],[13292,1,"13日"],[13293,1,"14日"],[13294,1,"15日"],[13295,1,"16日"],[13296,1,"17日"],[13297,1,"18日"],[13298,1,"19日"],[13299,1,"20日"],[13300,1,"21日"],[13301,1,"22日"],[13302,1,"23日"],[13303,1,"24日"],[13304,1,"25日"],[13305,1,"26日"],[13306,1,"27日"],[13307,1,"28日"],[13308,1,"29日"],[13309,1,"30日"],[13310,1,"31日"],[13311,1,"gal"],[[13312,19893],2],[[19894,19903],2],[[19904,19967],2],[[19968,40869],2],[[40870,40891],2],[[40892,40899],2],[[40900,40907],2],[40908,2],[[40909,40917],2],[[40918,40938],2],[[40939,40943],2],[[40944,40956],2],[[40957,40959],2],[[40960,42124],2],[[42125,42127],3],[[42128,42145],2],[[42146,42147],2],[[42148,42163],2],[42164,2],[[42165,42176],2],[42177,2],[[42178,42180],2],[42181,2],[42182,2],[[42183,42191],3],[[42192,42237],2],[[42238,42239],2],[[42240,42508],2],[[42509,42511],2],[[42512,42539],2],[[42540,42559],3],[42560,1,"ꙁ"],[42561,2],[42562,1,"ꙃ"],[42563,2],[42564,1,"ꙅ"],[42565,2],[42566,1,"ꙇ"],[42567,2],[42568,1,"ꙉ"],[42569,2],[42570,1,"ꙋ"],[42571,2],[42572,1,"ꙍ"],[42573,2],[42574,1,"ꙏ"],[42575,2],[42576,1,"ꙑ"],[42577,2],[42578,1,"ꙓ"],[42579,2],[42580,1,"ꙕ"],[42581,2],[42582,1,"ꙗ"],[42583,2],[42584,1,"ꙙ"],[42585,2],[42586,1,"ꙛ"],[42587,2],[42588,1,"ꙝ"],[42589,2],[42590,1,"ꙟ"],[42591,2],[42592,1,"ꙡ"],[42593,2],[42594,1,"ꙣ"],[42595,2],[42596,1,"ꙥ"],[42597,2],[42598,1,"ꙧ"],[42599,2],[42600,1,"ꙩ"],[42601,2],[42602,1,"ꙫ"],[42603,2],[42604,1,"ꙭ"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"ꚁ"],[42625,2],[42626,1,"ꚃ"],[42627,2],[42628,1,"ꚅ"],[42629,2],[42630,1,"ꚇ"],[42631,2],[42632,1,"ꚉ"],[42633,2],[42634,1,"ꚋ"],[42635,2],[42636,1,"ꚍ"],[42637,2],[42638,1,"ꚏ"],[42639,2],[42640,1,"ꚑ"],[42641,2],[42642,1,"ꚓ"],[42643,2],[42644,1,"ꚕ"],[42645,2],[42646,1,"ꚗ"],[42647,2],[42648,1,"ꚙ"],[42649,2],[42650,1,"ꚛ"],[42651,2],[42652,1,"ъ"],[42653,1,"ь"],[42654,2],[42655,2],[[42656,42725],2],[[42726,42735],2],[[42736,42737],2],[[42738,42743],2],[[42744,42751],3],[[42752,42774],2],[[42775,42778],2],[[42779,42783],2],[[42784,42785],2],[42786,1,"ꜣ"],[42787,2],[42788,1,"ꜥ"],[42789,2],[42790,1,"ꜧ"],[42791,2],[42792,1,"ꜩ"],[42793,2],[42794,1,"ꜫ"],[42795,2],[42796,1,"ꜭ"],[42797,2],[42798,1,"ꜯ"],[[42799,42801],2],[42802,1,"ꜳ"],[42803,2],[42804,1,"ꜵ"],[42805,2],[42806,1,"ꜷ"],[42807,2],[42808,1,"ꜹ"],[42809,2],[42810,1,"ꜻ"],[42811,2],[42812,1,"ꜽ"],[42813,2],[42814,1,"ꜿ"],[42815,2],[42816,1,"ꝁ"],[42817,2],[42818,1,"ꝃ"],[42819,2],[42820,1,"ꝅ"],[42821,2],[42822,1,"ꝇ"],[42823,2],[42824,1,"ꝉ"],[42825,2],[42826,1,"ꝋ"],[42827,2],[42828,1,"ꝍ"],[42829,2],[42830,1,"ꝏ"],[42831,2],[42832,1,"ꝑ"],[42833,2],[42834,1,"ꝓ"],[42835,2],[42836,1,"ꝕ"],[42837,2],[42838,1,"ꝗ"],[42839,2],[42840,1,"ꝙ"],[42841,2],[42842,1,"ꝛ"],[42843,2],[42844,1,"ꝝ"],[42845,2],[42846,1,"ꝟ"],[42847,2],[42848,1,"ꝡ"],[42849,2],[42850,1,"ꝣ"],[42851,2],[42852,1,"ꝥ"],[42853,2],[42854,1,"ꝧ"],[42855,2],[42856,1,"ꝩ"],[42857,2],[42858,1,"ꝫ"],[42859,2],[42860,1,"ꝭ"],[42861,2],[42862,1,"ꝯ"],[42863,2],[42864,1,"ꝯ"],[[42865,42872],2],[42873,1,"ꝺ"],[42874,2],[42875,1,"ꝼ"],[42876,2],[42877,1,"ᵹ"],[42878,1,"ꝿ"],[42879,2],[42880,1,"ꞁ"],[42881,2],[42882,1,"ꞃ"],[42883,2],[42884,1,"ꞅ"],[42885,2],[42886,1,"ꞇ"],[[42887,42888],2],[[42889,42890],2],[42891,1,"ꞌ"],[42892,2],[42893,1,"ɥ"],[42894,2],[42895,2],[42896,1,"ꞑ"],[42897,2],[42898,1,"ꞓ"],[42899,2],[[42900,42901],2],[42902,1,"ꞗ"],[42903,2],[42904,1,"ꞙ"],[42905,2],[42906,1,"ꞛ"],[42907,2],[42908,1,"ꞝ"],[42909,2],[42910,1,"ꞟ"],[42911,2],[42912,1,"ꞡ"],[42913,2],[42914,1,"ꞣ"],[42915,2],[42916,1,"ꞥ"],[42917,2],[42918,1,"ꞧ"],[42919,2],[42920,1,"ꞩ"],[42921,2],[42922,1,"ɦ"],[42923,1,"ɜ"],[42924,1,"ɡ"],[42925,1,"ɬ"],[42926,1,"ɪ"],[42927,2],[42928,1,"ʞ"],[42929,1,"ʇ"],[42930,1,"ʝ"],[42931,1,"ꭓ"],[42932,1,"ꞵ"],[42933,2],[42934,1,"ꞷ"],[42935,2],[42936,1,"ꞹ"],[42937,2],[42938,1,"ꞻ"],[42939,2],[42940,1,"ꞽ"],[42941,2],[42942,1,"ꞿ"],[42943,2],[42944,1,"ꟁ"],[42945,2],[42946,1,"ꟃ"],[42947,2],[42948,1,"ꞔ"],[42949,1,"ʂ"],[42950,1,"ᶎ"],[42951,1,"ꟈ"],[42952,2],[42953,1,"ꟊ"],[42954,2],[[42955,42959],3],[42960,1,"ꟑ"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"ꟗ"],[42967,2],[42968,1,"ꟙ"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"ꟶ"],[42998,2],[42999,2],[43000,1,"ħ"],[43001,1,"œ"],[43002,2],[[43003,43007],2],[[43008,43047],2],[[43048,43051],2],[43052,2],[[43053,43055],3],[[43056,43065],2],[[43066,43071],3],[[43072,43123],2],[[43124,43127],2],[[43128,43135],3],[[43136,43204],2],[43205,2],[[43206,43213],3],[[43214,43215],2],[[43216,43225],2],[[43226,43231],3],[[43232,43255],2],[[43256,43258],2],[43259,2],[43260,2],[43261,2],[[43262,43263],2],[[43264,43309],2],[[43310,43311],2],[[43312,43347],2],[[43348,43358],3],[43359,2],[[43360,43388],2],[[43389,43391],3],[[43392,43456],2],[[43457,43469],2],[43470,3],[[43471,43481],2],[[43482,43485],3],[[43486,43487],2],[[43488,43518],2],[43519,3],[[43520,43574],2],[[43575,43583],3],[[43584,43597],2],[[43598,43599],3],[[43600,43609],2],[[43610,43611],3],[[43612,43615],2],[[43616,43638],2],[[43639,43641],2],[[43642,43643],2],[[43644,43647],2],[[43648,43714],2],[[43715,43738],3],[[43739,43741],2],[[43742,43743],2],[[43744,43759],2],[[43760,43761],2],[[43762,43766],2],[[43767,43776],3],[[43777,43782],2],[[43783,43784],3],[[43785,43790],2],[[43791,43792],3],[[43793,43798],2],[[43799,43807],3],[[43808,43814],2],[43815,3],[[43816,43822],2],[43823,3],[[43824,43866],2],[43867,2],[43868,1,"ꜧ"],[43869,1,"ꬷ"],[43870,1,"ɫ"],[43871,1,"ꭒ"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"ʍ"],[[43882,43883],2],[[43884,43887],3],[43888,1,"Ꭰ"],[43889,1,"Ꭱ"],[43890,1,"Ꭲ"],[43891,1,"Ꭳ"],[43892,1,"Ꭴ"],[43893,1,"Ꭵ"],[43894,1,"Ꭶ"],[43895,1,"Ꭷ"],[43896,1,"Ꭸ"],[43897,1,"Ꭹ"],[43898,1,"Ꭺ"],[43899,1,"Ꭻ"],[43900,1,"Ꭼ"],[43901,1,"Ꭽ"],[43902,1,"Ꭾ"],[43903,1,"Ꭿ"],[43904,1,"Ꮀ"],[43905,1,"Ꮁ"],[43906,1,"Ꮂ"],[43907,1,"Ꮃ"],[43908,1,"Ꮄ"],[43909,1,"Ꮅ"],[43910,1,"Ꮆ"],[43911,1,"Ꮇ"],[43912,1,"Ꮈ"],[43913,1,"Ꮉ"],[43914,1,"Ꮊ"],[43915,1,"Ꮋ"],[43916,1,"Ꮌ"],[43917,1,"Ꮍ"],[43918,1,"Ꮎ"],[43919,1,"Ꮏ"],[43920,1,"Ꮐ"],[43921,1,"Ꮑ"],[43922,1,"Ꮒ"],[43923,1,"Ꮓ"],[43924,1,"Ꮔ"],[43925,1,"Ꮕ"],[43926,1,"Ꮖ"],[43927,1,"Ꮗ"],[43928,1,"Ꮘ"],[43929,1,"Ꮙ"],[43930,1,"Ꮚ"],[43931,1,"Ꮛ"],[43932,1,"Ꮜ"],[43933,1,"Ꮝ"],[43934,1,"Ꮞ"],[43935,1,"Ꮟ"],[43936,1,"Ꮠ"],[43937,1,"Ꮡ"],[43938,1,"Ꮢ"],[43939,1,"Ꮣ"],[43940,1,"Ꮤ"],[43941,1,"Ꮥ"],[43942,1,"Ꮦ"],[43943,1,"Ꮧ"],[43944,1,"Ꮨ"],[43945,1,"Ꮩ"],[43946,1,"Ꮪ"],[43947,1,"Ꮫ"],[43948,1,"Ꮬ"],[43949,1,"Ꮭ"],[43950,1,"Ꮮ"],[43951,1,"Ꮯ"],[43952,1,"Ꮰ"],[43953,1,"Ꮱ"],[43954,1,"Ꮲ"],[43955,1,"Ꮳ"],[43956,1,"Ꮴ"],[43957,1,"Ꮵ"],[43958,1,"Ꮶ"],[43959,1,"Ꮷ"],[43960,1,"Ꮸ"],[43961,1,"Ꮹ"],[43962,1,"Ꮺ"],[43963,1,"Ꮻ"],[43964,1,"Ꮼ"],[43965,1,"Ꮽ"],[43966,1,"Ꮾ"],[43967,1,"Ꮿ"],[[43968,44010],2],[44011,2],[[44012,44013],2],[[44014,44015],3],[[44016,44025],2],[[44026,44031],3],[[44032,55203],2],[[55204,55215],3],[[55216,55238],2],[[55239,55242],3],[[55243,55291],2],[[55292,55295],3],[[55296,57343],3],[[57344,63743],3],[63744,1,"豈"],[63745,1,"更"],[63746,1,"車"],[63747,1,"賈"],[63748,1,"滑"],[63749,1,"串"],[63750,1,"句"],[[63751,63752],1,"龜"],[63753,1,"契"],[63754,1,"金"],[63755,1,"喇"],[63756,1,"奈"],[63757,1,"懶"],[63758,1,"癩"],[63759,1,"羅"],[63760,1,"蘿"],[63761,1,"螺"],[63762,1,"裸"],[63763,1,"邏"],[63764,1,"樂"],[63765,1,"洛"],[63766,1,"烙"],[63767,1,"珞"],[63768,1,"落"],[63769,1,"酪"],[63770,1,"駱"],[63771,1,"亂"],[63772,1,"卵"],[63773,1,"欄"],[63774,1,"爛"],[63775,1,"蘭"],[63776,1,"鸞"],[63777,1,"嵐"],[63778,1,"濫"],[63779,1,"藍"],[63780,1,"襤"],[63781,1,"拉"],[63782,1,"臘"],[63783,1,"蠟"],[63784,1,"廊"],[63785,1,"朗"],[63786,1,"浪"],[63787,1,"狼"],[63788,1,"郎"],[63789,1,"來"],[63790,1,"冷"],[63791,1,"勞"],[63792,1,"擄"],[63793,1,"櫓"],[63794,1,"爐"],[63795,1,"盧"],[63796,1,"老"],[63797,1,"蘆"],[63798,1,"虜"],[63799,1,"路"],[63800,1,"露"],[63801,1,"魯"],[63802,1,"鷺"],[63803,1,"碌"],[63804,1,"祿"],[63805,1,"綠"],[63806,1,"菉"],[63807,1,"錄"],[63808,1,"鹿"],[63809,1,"論"],[63810,1,"壟"],[63811,1,"弄"],[63812,1,"籠"],[63813,1,"聾"],[63814,1,"牢"],[63815,1,"磊"],[63816,1,"賂"],[63817,1,"雷"],[63818,1,"壘"],[63819,1,"屢"],[63820,1,"樓"],[63821,1,"淚"],[63822,1,"漏"],[63823,1,"累"],[63824,1,"縷"],[63825,1,"陋"],[63826,1,"勒"],[63827,1,"肋"],[63828,1,"凜"],[63829,1,"凌"],[63830,1,"稜"],[63831,1,"綾"],[63832,1,"菱"],[63833,1,"陵"],[63834,1,"讀"],[63835,1,"拏"],[63836,1,"樂"],[63837,1,"諾"],[63838,1,"丹"],[63839,1,"寧"],[63840,1,"怒"],[63841,1,"率"],[63842,1,"異"],[63843,1,"北"],[63844,1,"磻"],[63845,1,"便"],[63846,1,"復"],[63847,1,"不"],[63848,1,"泌"],[63849,1,"數"],[63850,1,"索"],[63851,1,"參"],[63852,1,"塞"],[63853,1,"省"],[63854,1,"葉"],[63855,1,"說"],[63856,1,"殺"],[63857,1,"辰"],[63858,1,"沈"],[63859,1,"拾"],[63860,1,"若"],[63861,1,"掠"],[63862,1,"略"],[63863,1,"亮"],[63864,1,"兩"],[63865,1,"凉"],[63866,1,"梁"],[63867,1,"糧"],[63868,1,"良"],[63869,1,"諒"],[63870,1,"量"],[63871,1,"勵"],[63872,1,"呂"],[63873,1,"女"],[63874,1,"廬"],[63875,1,"旅"],[63876,1,"濾"],[63877,1,"礪"],[63878,1,"閭"],[63879,1,"驪"],[63880,1,"麗"],[63881,1,"黎"],[63882,1,"力"],[63883,1,"曆"],[63884,1,"歷"],[63885,1,"轢"],[63886,1,"年"],[63887,1,"憐"],[63888,1,"戀"],[63889,1,"撚"],[63890,1,"漣"],[63891,1,"煉"],[63892,1,"璉"],[63893,1,"秊"],[63894,1,"練"],[63895,1,"聯"],[63896,1,"輦"],[63897,1,"蓮"],[63898,1,"連"],[63899,1,"鍊"],[63900,1,"列"],[63901,1,"劣"],[63902,1,"咽"],[63903,1,"烈"],[63904,1,"裂"],[63905,1,"說"],[63906,1,"廉"],[63907,1,"念"],[63908,1,"捻"],[63909,1,"殮"],[63910,1,"簾"],[63911,1,"獵"],[63912,1,"令"],[63913,1,"囹"],[63914,1,"寧"],[63915,1,"嶺"],[63916,1,"怜"],[63917,1,"玲"],[63918,1,"瑩"],[63919,1,"羚"],[63920,1,"聆"],[63921,1,"鈴"],[63922,1,"零"],[63923,1,"靈"],[63924,1,"領"],[63925,1,"例"],[63926,1,"禮"],[63927,1,"醴"],[63928,1,"隸"],[63929,1,"惡"],[63930,1,"了"],[63931,1,"僚"],[63932,1,"寮"],[63933,1,"尿"],[63934,1,"料"],[63935,1,"樂"],[63936,1,"燎"],[63937,1,"療"],[63938,1,"蓼"],[63939,1,"遼"],[63940,1,"龍"],[63941,1,"暈"],[63942,1,"阮"],[63943,1,"劉"],[63944,1,"杻"],[63945,1,"柳"],[63946,1,"流"],[63947,1,"溜"],[63948,1,"琉"],[63949,1,"留"],[63950,1,"硫"],[63951,1,"紐"],[63952,1,"類"],[63953,1,"六"],[63954,1,"戮"],[63955,1,"陸"],[63956,1,"倫"],[63957,1,"崙"],[63958,1,"淪"],[63959,1,"輪"],[63960,1,"律"],[63961,1,"慄"],[63962,1,"栗"],[63963,1,"率"],[63964,1,"隆"],[63965,1,"利"],[63966,1,"吏"],[63967,1,"履"],[63968,1,"易"],[63969,1,"李"],[63970,1,"梨"],[63971,1,"泥"],[63972,1,"理"],[63973,1,"痢"],[63974,1,"罹"],[63975,1,"裏"],[63976,1,"裡"],[63977,1,"里"],[63978,1,"離"],[63979,1,"匿"],[63980,1,"溺"],[63981,1,"吝"],[63982,1,"燐"],[63983,1,"璘"],[63984,1,"藺"],[63985,1,"隣"],[63986,1,"鱗"],[63987,1,"麟"],[63988,1,"林"],[63989,1,"淋"],[63990,1,"臨"],[63991,1,"立"],[63992,1,"笠"],[63993,1,"粒"],[63994,1,"狀"],[63995,1,"炙"],[63996,1,"識"],[63997,1,"什"],[63998,1,"茶"],[63999,1,"刺"],[64000,1,"切"],[64001,1,"度"],[64002,1,"拓"],[64003,1,"糖"],[64004,1,"宅"],[64005,1,"洞"],[64006,1,"暴"],[64007,1,"輻"],[64008,1,"行"],[64009,1,"降"],[64010,1,"見"],[64011,1,"廓"],[64012,1,"兀"],[64013,1,"嗀"],[[64014,64015],2],[64016,1,"塚"],[64017,2],[64018,1,"晴"],[[64019,64020],2],[64021,1,"凞"],[64022,1,"猪"],[64023,1,"益"],[64024,1,"礼"],[64025,1,"神"],[64026,1,"祥"],[64027,1,"福"],[64028,1,"靖"],[64029,1,"精"],[64030,1,"羽"],[64031,2],[64032,1,"蘒"],[64033,2],[64034,1,"諸"],[[64035,64036],2],[64037,1,"逸"],[64038,1,"都"],[[64039,64041],2],[64042,1,"飯"],[64043,1,"飼"],[64044,1,"館"],[64045,1,"鶴"],[64046,1,"郞"],[64047,1,"隷"],[64048,1,"侮"],[64049,1,"僧"],[64050,1,"免"],[64051,1,"勉"],[64052,1,"勤"],[64053,1,"卑"],[64054,1,"喝"],[64055,1,"嘆"],[64056,1,"器"],[64057,1,"塀"],[64058,1,"墨"],[64059,1,"層"],[64060,1,"屮"],[64061,1,"悔"],[64062,1,"慨"],[64063,1,"憎"],[64064,1,"懲"],[64065,1,"敏"],[64066,1,"既"],[64067,1,"暑"],[64068,1,"梅"],[64069,1,"海"],[64070,1,"渚"],[64071,1,"漢"],[64072,1,"煮"],[64073,1,"爫"],[64074,1,"琢"],[64075,1,"碑"],[64076,1,"社"],[64077,1,"祉"],[64078,1,"祈"],[64079,1,"祐"],[64080,1,"祖"],[64081,1,"祝"],[64082,1,"禍"],[64083,1,"禎"],[64084,1,"穀"],[64085,1,"突"],[64086,1,"節"],[64087,1,"練"],[64088,1,"縉"],[64089,1,"繁"],[64090,1,"署"],[64091,1,"者"],[64092,1,"臭"],[[64093,64094],1,"艹"],[64095,1,"著"],[64096,1,"褐"],[64097,1,"視"],[64098,1,"謁"],[64099,1,"謹"],[64100,1,"賓"],[64101,1,"贈"],[64102,1,"辶"],[64103,1,"逸"],[64104,1,"難"],[64105,1,"響"],[64106,1,"頻"],[64107,1,"恵"],[64108,1,"𤋮"],[64109,1,"舘"],[[64110,64111],3],[64112,1,"並"],[64113,1,"况"],[64114,1,"全"],[64115,1,"侀"],[64116,1,"充"],[64117,1,"冀"],[64118,1,"勇"],[64119,1,"勺"],[64120,1,"喝"],[64121,1,"啕"],[64122,1,"喙"],[64123,1,"嗢"],[64124,1,"塚"],[64125,1,"墳"],[64126,1,"奄"],[64127,1,"奔"],[64128,1,"婢"],[64129,1,"嬨"],[64130,1,"廒"],[64131,1,"廙"],[64132,1,"彩"],[64133,1,"徭"],[64134,1,"惘"],[64135,1,"慎"],[64136,1,"愈"],[64137,1,"憎"],[64138,1,"慠"],[64139,1,"懲"],[64140,1,"戴"],[64141,1,"揄"],[64142,1,"搜"],[64143,1,"摒"],[64144,1,"敖"],[64145,1,"晴"],[64146,1,"朗"],[64147,1,"望"],[64148,1,"杖"],[64149,1,"歹"],[64150,1,"殺"],[64151,1,"流"],[64152,1,"滛"],[64153,1,"滋"],[64154,1,"漢"],[64155,1,"瀞"],[64156,1,"煮"],[64157,1,"瞧"],[64158,1,"爵"],[64159,1,"犯"],[64160,1,"猪"],[64161,1,"瑱"],[64162,1,"甆"],[64163,1,"画"],[64164,1,"瘝"],[64165,1,"瘟"],[64166,1,"益"],[64167,1,"盛"],[64168,1,"直"],[64169,1,"睊"],[64170,1,"着"],[64171,1,"磌"],[64172,1,"窱"],[64173,1,"節"],[64174,1,"类"],[64175,1,"絛"],[64176,1,"練"],[64177,1,"缾"],[64178,1,"者"],[64179,1,"荒"],[64180,1,"華"],[64181,1,"蝹"],[64182,1,"襁"],[64183,1,"覆"],[64184,1,"視"],[64185,1,"調"],[64186,1,"諸"],[64187,1,"請"],[64188,1,"謁"],[64189,1,"諾"],[64190,1,"諭"],[64191,1,"謹"],[64192,1,"變"],[64193,1,"贈"],[64194,1,"輸"],[64195,1,"遲"],[64196,1,"醙"],[64197,1,"鉶"],[64198,1,"陼"],[64199,1,"難"],[64200,1,"靖"],[64201,1,"韛"],[64202,1,"響"],[64203,1,"頋"],[64204,1,"頻"],[64205,1,"鬒"],[64206,1,"龜"],[64207,1,"𢡊"],[64208,1,"𢡄"],[64209,1,"𣏕"],[64210,1,"㮝"],[64211,1,"䀘"],[64212,1,"䀹"],[64213,1,"𥉉"],[64214,1,"𥳐"],[64215,1,"𧻓"],[64216,1,"齃"],[64217,1,"龎"],[[64218,64255],3],[64256,1,"ff"],[64257,1,"fi"],[64258,1,"fl"],[64259,1,"ffi"],[64260,1,"ffl"],[[64261,64262],1,"st"],[[64263,64274],3],[64275,1,"մն"],[64276,1,"մե"],[64277,1,"մի"],[64278,1,"վն"],[64279,1,"մխ"],[[64280,64284],3],[64285,1,"יִ"],[64286,2],[64287,1,"ײַ"],[64288,1,"ע"],[64289,1,"א"],[64290,1,"ד"],[64291,1,"ה"],[64292,1,"כ"],[64293,1,"ל"],[64294,1,"ם"],[64295,1,"ר"],[64296,1,"ת"],[64297,5,"+"],[64298,1,"שׁ"],[64299,1,"שׂ"],[64300,1,"שּׁ"],[64301,1,"שּׂ"],[64302,1,"אַ"],[64303,1,"אָ"],[64304,1,"אּ"],[64305,1,"בּ"],[64306,1,"גּ"],[64307,1,"דּ"],[64308,1,"הּ"],[64309,1,"וּ"],[64310,1,"זּ"],[64311,3],[64312,1,"טּ"],[64313,1,"יּ"],[64314,1,"ךּ"],[64315,1,"כּ"],[64316,1,"לּ"],[64317,3],[64318,1,"מּ"],[64319,3],[64320,1,"נּ"],[64321,1,"סּ"],[64322,3],[64323,1,"ףּ"],[64324,1,"פּ"],[64325,3],[64326,1,"צּ"],[64327,1,"קּ"],[64328,1,"רּ"],[64329,1,"שּ"],[64330,1,"תּ"],[64331,1,"וֹ"],[64332,1,"בֿ"],[64333,1,"כֿ"],[64334,1,"פֿ"],[64335,1,"אל"],[[64336,64337],1,"ٱ"],[[64338,64341],1,"ٻ"],[[64342,64345],1,"پ"],[[64346,64349],1,"ڀ"],[[64350,64353],1,"ٺ"],[[64354,64357],1,"ٿ"],[[64358,64361],1,"ٹ"],[[64362,64365],1,"ڤ"],[[64366,64369],1,"ڦ"],[[64370,64373],1,"ڄ"],[[64374,64377],1,"ڃ"],[[64378,64381],1,"چ"],[[64382,64385],1,"ڇ"],[[64386,64387],1,"ڍ"],[[64388,64389],1,"ڌ"],[[64390,64391],1,"ڎ"],[[64392,64393],1,"ڈ"],[[64394,64395],1,"ژ"],[[64396,64397],1,"ڑ"],[[64398,64401],1,"ک"],[[64402,64405],1,"گ"],[[64406,64409],1,"ڳ"],[[64410,64413],1,"ڱ"],[[64414,64415],1,"ں"],[[64416,64419],1,"ڻ"],[[64420,64421],1,"ۀ"],[[64422,64425],1,"ہ"],[[64426,64429],1,"ھ"],[[64430,64431],1,"ے"],[[64432,64433],1,"ۓ"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"ڭ"],[[64471,64472],1,"ۇ"],[[64473,64474],1,"ۆ"],[[64475,64476],1,"ۈ"],[64477,1,"ۇٴ"],[[64478,64479],1,"ۋ"],[[64480,64481],1,"ۅ"],[[64482,64483],1,"ۉ"],[[64484,64487],1,"ې"],[[64488,64489],1,"ى"],[[64490,64491],1,"ئا"],[[64492,64493],1,"ئە"],[[64494,64495],1,"ئو"],[[64496,64497],1,"ئۇ"],[[64498,64499],1,"ئۆ"],[[64500,64501],1,"ئۈ"],[[64502,64504],1,"ئې"],[[64505,64507],1,"ئى"],[[64508,64511],1,"ی"],[64512,1,"ئج"],[64513,1,"ئح"],[64514,1,"ئم"],[64515,1,"ئى"],[64516,1,"ئي"],[64517,1,"بج"],[64518,1,"بح"],[64519,1,"بخ"],[64520,1,"بم"],[64521,1,"بى"],[64522,1,"بي"],[64523,1,"تج"],[64524,1,"تح"],[64525,1,"تخ"],[64526,1,"تم"],[64527,1,"تى"],[64528,1,"تي"],[64529,1,"ثج"],[64530,1,"ثم"],[64531,1,"ثى"],[64532,1,"ثي"],[64533,1,"جح"],[64534,1,"جم"],[64535,1,"حج"],[64536,1,"حم"],[64537,1,"خج"],[64538,1,"خح"],[64539,1,"خم"],[64540,1,"سج"],[64541,1,"سح"],[64542,1,"سخ"],[64543,1,"سم"],[64544,1,"صح"],[64545,1,"صم"],[64546,1,"ضج"],[64547,1,"ضح"],[64548,1,"ضخ"],[64549,1,"ضم"],[64550,1,"طح"],[64551,1,"طم"],[64552,1,"ظم"],[64553,1,"عج"],[64554,1,"عم"],[64555,1,"غج"],[64556,1,"غم"],[64557,1,"فج"],[64558,1,"فح"],[64559,1,"فخ"],[64560,1,"فم"],[64561,1,"فى"],[64562,1,"في"],[64563,1,"قح"],[64564,1,"قم"],[64565,1,"قى"],[64566,1,"قي"],[64567,1,"كا"],[64568,1,"كج"],[64569,1,"كح"],[64570,1,"كخ"],[64571,1,"كل"],[64572,1,"كم"],[64573,1,"كى"],[64574,1,"كي"],[64575,1,"لج"],[64576,1,"لح"],[64577,1,"لخ"],[64578,1,"لم"],[64579,1,"لى"],[64580,1,"لي"],[64581,1,"مج"],[64582,1,"مح"],[64583,1,"مخ"],[64584,1,"مم"],[64585,1,"مى"],[64586,1,"مي"],[64587,1,"نج"],[64588,1,"نح"],[64589,1,"نخ"],[64590,1,"نم"],[64591,1,"نى"],[64592,1,"ني"],[64593,1,"هج"],[64594,1,"هم"],[64595,1,"هى"],[64596,1,"هي"],[64597,1,"يج"],[64598,1,"يح"],[64599,1,"يخ"],[64600,1,"يم"],[64601,1,"يى"],[64602,1,"يي"],[64603,1,"ذٰ"],[64604,1,"رٰ"],[64605,1,"ىٰ"],[64606,5," ٌّ"],[64607,5," ٍّ"],[64608,5," َّ"],[64609,5," ُّ"],[64610,5," ِّ"],[64611,5," ّٰ"],[64612,1,"ئر"],[64613,1,"ئز"],[64614,1,"ئم"],[64615,1,"ئن"],[64616,1,"ئى"],[64617,1,"ئي"],[64618,1,"بر"],[64619,1,"بز"],[64620,1,"بم"],[64621,1,"بن"],[64622,1,"بى"],[64623,1,"بي"],[64624,1,"تر"],[64625,1,"تز"],[64626,1,"تم"],[64627,1,"تن"],[64628,1,"تى"],[64629,1,"تي"],[64630,1,"ثر"],[64631,1,"ثز"],[64632,1,"ثم"],[64633,1,"ثن"],[64634,1,"ثى"],[64635,1,"ثي"],[64636,1,"فى"],[64637,1,"في"],[64638,1,"قى"],[64639,1,"قي"],[64640,1,"كا"],[64641,1,"كل"],[64642,1,"كم"],[64643,1,"كى"],[64644,1,"كي"],[64645,1,"لم"],[64646,1,"لى"],[64647,1,"لي"],[64648,1,"ما"],[64649,1,"مم"],[64650,1,"نر"],[64651,1,"نز"],[64652,1,"نم"],[64653,1,"نن"],[64654,1,"نى"],[64655,1,"ني"],[64656,1,"ىٰ"],[64657,1,"ير"],[64658,1,"يز"],[64659,1,"يم"],[64660,1,"ين"],[64661,1,"يى"],[64662,1,"يي"],[64663,1,"ئج"],[64664,1,"ئح"],[64665,1,"ئخ"],[64666,1,"ئم"],[64667,1,"ئه"],[64668,1,"بج"],[64669,1,"بح"],[64670,1,"بخ"],[64671,1,"بم"],[64672,1,"به"],[64673,1,"تج"],[64674,1,"تح"],[64675,1,"تخ"],[64676,1,"تم"],[64677,1,"ته"],[64678,1,"ثم"],[64679,1,"جح"],[64680,1,"جم"],[64681,1,"حج"],[64682,1,"حم"],[64683,1,"خج"],[64684,1,"خم"],[64685,1,"سج"],[64686,1,"سح"],[64687,1,"سخ"],[64688,1,"سم"],[64689,1,"صح"],[64690,1,"صخ"],[64691,1,"صم"],[64692,1,"ضج"],[64693,1,"ضح"],[64694,1,"ضخ"],[64695,1,"ضم"],[64696,1,"طح"],[64697,1,"ظم"],[64698,1,"عج"],[64699,1,"عم"],[64700,1,"غج"],[64701,1,"غم"],[64702,1,"فج"],[64703,1,"فح"],[64704,1,"فخ"],[64705,1,"فم"],[64706,1,"قح"],[64707,1,"قم"],[64708,1,"كج"],[64709,1,"كح"],[64710,1,"كخ"],[64711,1,"كل"],[64712,1,"كم"],[64713,1,"لج"],[64714,1,"لح"],[64715,1,"لخ"],[64716,1,"لم"],[64717,1,"له"],[64718,1,"مج"],[64719,1,"مح"],[64720,1,"مخ"],[64721,1,"مم"],[64722,1,"نج"],[64723,1,"نح"],[64724,1,"نخ"],[64725,1,"نم"],[64726,1,"نه"],[64727,1,"هج"],[64728,1,"هم"],[64729,1,"هٰ"],[64730,1,"يج"],[64731,1,"يح"],[64732,1,"يخ"],[64733,1,"يم"],[64734,1,"يه"],[64735,1,"ئم"],[64736,1,"ئه"],[64737,1,"بم"],[64738,1,"به"],[64739,1,"تم"],[64740,1,"ته"],[64741,1,"ثم"],[64742,1,"ثه"],[64743,1,"سم"],[64744,1,"سه"],[64745,1,"شم"],[64746,1,"شه"],[64747,1,"كل"],[64748,1,"كم"],[64749,1,"لم"],[64750,1,"نم"],[64751,1,"نه"],[64752,1,"يم"],[64753,1,"يه"],[64754,1,"ـَّ"],[64755,1,"ـُّ"],[64756,1,"ـِّ"],[64757,1,"طى"],[64758,1,"طي"],[64759,1,"عى"],[64760,1,"عي"],[64761,1,"غى"],[64762,1,"غي"],[64763,1,"سى"],[64764,1,"سي"],[64765,1,"شى"],[64766,1,"شي"],[64767,1,"حى"],[64768,1,"حي"],[64769,1,"جى"],[64770,1,"جي"],[64771,1,"خى"],[64772,1,"خي"],[64773,1,"صى"],[64774,1,"صي"],[64775,1,"ضى"],[64776,1,"ضي"],[64777,1,"شج"],[64778,1,"شح"],[64779,1,"شخ"],[64780,1,"شم"],[64781,1,"شر"],[64782,1,"سر"],[64783,1,"صر"],[64784,1,"ضر"],[64785,1,"طى"],[64786,1,"طي"],[64787,1,"عى"],[64788,1,"عي"],[64789,1,"غى"],[64790,1,"غي"],[64791,1,"سى"],[64792,1,"سي"],[64793,1,"شى"],[64794,1,"شي"],[64795,1,"حى"],[64796,1,"حي"],[64797,1,"جى"],[64798,1,"جي"],[64799,1,"خى"],[64800,1,"خي"],[64801,1,"صى"],[64802,1,"صي"],[64803,1,"ضى"],[64804,1,"ضي"],[64805,1,"شج"],[64806,1,"شح"],[64807,1,"شخ"],[64808,1,"شم"],[64809,1,"شر"],[64810,1,"سر"],[64811,1,"صر"],[64812,1,"ضر"],[64813,1,"شج"],[64814,1,"شح"],[64815,1,"شخ"],[64816,1,"شم"],[64817,1,"سه"],[64818,1,"شه"],[64819,1,"طم"],[64820,1,"سج"],[64821,1,"سح"],[64822,1,"سخ"],[64823,1,"شج"],[64824,1,"شح"],[64825,1,"شخ"],[64826,1,"طم"],[64827,1,"ظم"],[[64828,64829],1,"اً"],[[64830,64831],2],[[64832,64847],2],[64848,1,"تجم"],[[64849,64850],1,"تحج"],[64851,1,"تحم"],[64852,1,"تخم"],[64853,1,"تمج"],[64854,1,"تمح"],[64855,1,"تمخ"],[[64856,64857],1,"جمح"],[64858,1,"حمي"],[64859,1,"حمى"],[64860,1,"سحج"],[64861,1,"سجح"],[64862,1,"سجى"],[[64863,64864],1,"سمح"],[64865,1,"سمج"],[[64866,64867],1,"سمم"],[[64868,64869],1,"صحح"],[64870,1,"صمم"],[[64871,64872],1,"شحم"],[64873,1,"شجي"],[[64874,64875],1,"شمخ"],[[64876,64877],1,"شمم"],[64878,1,"ضحى"],[[64879,64880],1,"ضخم"],[[64881,64882],1,"طمح"],[64883,1,"طمم"],[64884,1,"طمي"],[64885,1,"عجم"],[[64886,64887],1,"عمم"],[64888,1,"عمى"],[64889,1,"غمم"],[64890,1,"غمي"],[64891,1,"غمى"],[[64892,64893],1,"فخم"],[64894,1,"قمح"],[64895,1,"قمم"],[64896,1,"لحم"],[64897,1,"لحي"],[64898,1,"لحى"],[[64899,64900],1,"لجج"],[[64901,64902],1,"لخم"],[[64903,64904],1,"لمح"],[64905,1,"محج"],[64906,1,"محم"],[64907,1,"محي"],[64908,1,"مجح"],[64909,1,"مجم"],[64910,1,"مخج"],[64911,1,"مخم"],[[64912,64913],3],[64914,1,"مجخ"],[64915,1,"همج"],[64916,1,"همم"],[64917,1,"نحم"],[64918,1,"نحى"],[[64919,64920],1,"نجم"],[64921,1,"نجى"],[64922,1,"نمي"],[64923,1,"نمى"],[[64924,64925],1,"يمم"],[64926,1,"بخي"],[64927,1,"تجي"],[64928,1,"تجى"],[64929,1,"تخي"],[64930,1,"تخى"],[64931,1,"تمي"],[64932,1,"تمى"],[64933,1,"جمي"],[64934,1,"جحى"],[64935,1,"جمى"],[64936,1,"سخى"],[64937,1,"صحي"],[64938,1,"شحي"],[64939,1,"ضحي"],[64940,1,"لجي"],[64941,1,"لمي"],[64942,1,"يحي"],[64943,1,"يجي"],[64944,1,"يمي"],[64945,1,"ممي"],[64946,1,"قمي"],[64947,1,"نحي"],[64948,1,"قمح"],[64949,1,"لحم"],[64950,1,"عمي"],[64951,1,"كمي"],[64952,1,"نجح"],[64953,1,"مخي"],[64954,1,"لجم"],[64955,1,"كمم"],[64956,1,"لجم"],[64957,1,"نجح"],[64958,1,"جحي"],[64959,1,"حجي"],[64960,1,"مجي"],[64961,1,"فمي"],[64962,1,"بحي"],[64963,1,"كمم"],[64964,1,"عجم"],[64965,1,"صمم"],[64966,1,"سخي"],[64967,1,"نجي"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"صلے"],[65009,1,"قلے"],[65010,1,"الله"],[65011,1,"اكبر"],[65012,1,"محمد"],[65013,1,"صلعم"],[65014,1,"رسول"],[65015,1,"عليه"],[65016,1,"وسلم"],[65017,1,"صلى"],[65018,5,"صلى الله عليه وسلم"],[65019,5,"جل جلاله"],[65020,1,"ریال"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"、"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"〖"],[65048,1,"〗"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"—"],[65074,1,"–"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"〔"],[65082,1,"〕"],[65083,1,"【"],[65084,1,"】"],[65085,1,"《"],[65086,1,"》"],[65087,1,"〈"],[65088,1,"〉"],[65089,1,"「"],[65090,1,"」"],[65091,1,"『"],[65092,1,"』"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," ̅"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"、"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"—"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"〔"],[65118,1,"〕"],[65119,5,"#"],[65120,5,"&"],[65121,5,"*"],[65122,5,"+"],[65123,1,"-"],[65124,5,"<"],[65125,5,">"],[65126,5,"="],[65127,3],[65128,5,"\\\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," ً"],[65137,1,"ـً"],[65138,5," ٌ"],[65139,2],[65140,5," ٍ"],[65141,3],[65142,5," َ"],[65143,1,"ـَ"],[65144,5," ُ"],[65145,1,"ـُ"],[65146,5," ِ"],[65147,1,"ـِ"],[65148,5," ّ"],[65149,1,"ـّ"],[65150,5," ْ"],[65151,1,"ـْ"],[65152,1,"ء"],[[65153,65154],1,"آ"],[[65155,65156],1,"أ"],[[65157,65158],1,"ؤ"],[[65159,65160],1,"إ"],[[65161,65164],1,"ئ"],[[65165,65166],1,"ا"],[[65167,65170],1,"ب"],[[65171,65172],1,"ة"],[[65173,65176],1,"ت"],[[65177,65180],1,"ث"],[[65181,65184],1,"ج"],[[65185,65188],1,"ح"],[[65189,65192],1,"خ"],[[65193,65194],1,"د"],[[65195,65196],1,"ذ"],[[65197,65198],1,"ر"],[[65199,65200],1,"ز"],[[65201,65204],1,"س"],[[65205,65208],1,"ش"],[[65209,65212],1,"ص"],[[65213,65216],1,"ض"],[[65217,65220],1,"ط"],[[65221,65224],1,"ظ"],[[65225,65228],1,"ع"],[[65229,65232],1,"غ"],[[65233,65236],1,"ف"],[[65237,65240],1,"ق"],[[65241,65244],1,"ك"],[[65245,65248],1,"ل"],[[65249,65252],1,"م"],[[65253,65256],1,"ن"],[[65257,65260],1,"ه"],[[65261,65262],1,"و"],[[65263,65264],1,"ى"],[[65265,65268],1,"ي"],[[65269,65270],1,"لآ"],[[65271,65272],1,"لأ"],[[65273,65274],1,"لإ"],[[65275,65276],1,"لا"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,"\\""],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"\'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"⦅"],[65376,1,"⦆"],[65377,1,"."],[65378,1,"「"],[65379,1,"」"],[65380,1,"、"],[65381,1,"・"],[65382,1,"ヲ"],[65383,1,"ァ"],[65384,1,"ィ"],[65385,1,"ゥ"],[65386,1,"ェ"],[65387,1,"ォ"],[65388,1,"ャ"],[65389,1,"ュ"],[65390,1,"ョ"],[65391,1,"ッ"],[65392,1,"ー"],[65393,1,"ア"],[65394,1,"イ"],[65395,1,"ウ"],[65396,1,"エ"],[65397,1,"オ"],[65398,1,"カ"],[65399,1,"キ"],[65400,1,"ク"],[65401,1,"ケ"],[65402,1,"コ"],[65403,1,"サ"],[65404,1,"シ"],[65405,1,"ス"],[65406,1,"セ"],[65407,1,"ソ"],[65408,1,"タ"],[65409,1,"チ"],[65410,1,"ツ"],[65411,1,"テ"],[65412,1,"ト"],[65413,1,"ナ"],[65414,1,"ニ"],[65415,1,"ヌ"],[65416,1,"ネ"],[65417,1,"ノ"],[65418,1,"ハ"],[65419,1,"ヒ"],[65420,1,"フ"],[65421,1,"ヘ"],[65422,1,"ホ"],[65423,1,"マ"],[65424,1,"ミ"],[65425,1,"ム"],[65426,1,"メ"],[65427,1,"モ"],[65428,1,"ヤ"],[65429,1,"ユ"],[65430,1,"ヨ"],[65431,1,"ラ"],[65432,1,"リ"],[65433,1,"ル"],[65434,1,"レ"],[65435,1,"ロ"],[65436,1,"ワ"],[65437,1,"ン"],[65438,1,"゙"],[65439,1,"゚"],[65440,3],[65441,1,"ᄀ"],[65442,1,"ᄁ"],[65443,1,"ᆪ"],[65444,1,"ᄂ"],[65445,1,"ᆬ"],[65446,1,"ᆭ"],[65447,1,"ᄃ"],[65448,1,"ᄄ"],[65449,1,"ᄅ"],[65450,1,"ᆰ"],[65451,1,"ᆱ"],[65452,1,"ᆲ"],[65453,1,"ᆳ"],[65454,1,"ᆴ"],[65455,1,"ᆵ"],[65456,1,"ᄚ"],[65457,1,"ᄆ"],[65458,1,"ᄇ"],[65459,1,"ᄈ"],[65460,1,"ᄡ"],[65461,1,"ᄉ"],[65462,1,"ᄊ"],[65463,1,"ᄋ"],[65464,1,"ᄌ"],[65465,1,"ᄍ"],[65466,1,"ᄎ"],[65467,1,"ᄏ"],[65468,1,"ᄐ"],[65469,1,"ᄑ"],[65470,1,"ᄒ"],[[65471,65473],3],[65474,1,"ᅡ"],[65475,1,"ᅢ"],[65476,1,"ᅣ"],[65477,1,"ᅤ"],[65478,1,"ᅥ"],[65479,1,"ᅦ"],[[65480,65481],3],[65482,1,"ᅧ"],[65483,1,"ᅨ"],[65484,1,"ᅩ"],[65485,1,"ᅪ"],[65486,1,"ᅫ"],[65487,1,"ᅬ"],[[65488,65489],3],[65490,1,"ᅭ"],[65491,1,"ᅮ"],[65492,1,"ᅯ"],[65493,1,"ᅰ"],[65494,1,"ᅱ"],[65495,1,"ᅲ"],[[65496,65497],3],[65498,1,"ᅳ"],[65499,1,"ᅴ"],[65500,1,"ᅵ"],[[65501,65503],3],[65504,1,"¢"],[65505,1,"£"],[65506,1,"¬"],[65507,5," ̄"],[65508,1,"¦"],[65509,1,"¥"],[65510,1,"₩"],[65511,3],[65512,1,"│"],[65513,1,"←"],[65514,1,"↑"],[65515,1,"→"],[65516,1,"↓"],[65517,1,"■"],[65518,1,"○"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66000,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"𐐨"],[66561,1,"𐐩"],[66562,1,"𐐪"],[66563,1,"𐐫"],[66564,1,"𐐬"],[66565,1,"𐐭"],[66566,1,"𐐮"],[66567,1,"𐐯"],[66568,1,"𐐰"],[66569,1,"𐐱"],[66570,1,"𐐲"],[66571,1,"𐐳"],[66572,1,"𐐴"],[66573,1,"𐐵"],[66574,1,"𐐶"],[66575,1,"𐐷"],[66576,1,"𐐸"],[66577,1,"𐐹"],[66578,1,"𐐺"],[66579,1,"𐐻"],[66580,1,"𐐼"],[66581,1,"𐐽"],[66582,1,"𐐾"],[66583,1,"𐐿"],[66584,1,"𐑀"],[66585,1,"𐑁"],[66586,1,"𐑂"],[66587,1,"𐑃"],[66588,1,"𐑄"],[66589,1,"𐑅"],[66590,1,"𐑆"],[66591,1,"𐑇"],[66592,1,"𐑈"],[66593,1,"𐑉"],[66594,1,"𐑊"],[66595,1,"𐑋"],[66596,1,"𐑌"],[66597,1,"𐑍"],[66598,1,"𐑎"],[66599,1,"𐑏"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"𐓘"],[66737,1,"𐓙"],[66738,1,"𐓚"],[66739,1,"𐓛"],[66740,1,"𐓜"],[66741,1,"𐓝"],[66742,1,"𐓞"],[66743,1,"𐓟"],[66744,1,"𐓠"],[66745,1,"𐓡"],[66746,1,"𐓢"],[66747,1,"𐓣"],[66748,1,"𐓤"],[66749,1,"𐓥"],[66750,1,"𐓦"],[66751,1,"𐓧"],[66752,1,"𐓨"],[66753,1,"𐓩"],[66754,1,"𐓪"],[66755,1,"𐓫"],[66756,1,"𐓬"],[66757,1,"𐓭"],[66758,1,"𐓮"],[66759,1,"𐓯"],[66760,1,"𐓰"],[66761,1,"𐓱"],[66762,1,"𐓲"],[66763,1,"𐓳"],[66764,1,"𐓴"],[66765,1,"𐓵"],[66766,1,"𐓶"],[66767,1,"𐓷"],[66768,1,"𐓸"],[66769,1,"𐓹"],[66770,1,"𐓺"],[66771,1,"𐓻"],[[66772,66775],3],[[66776,66811],2],[[66812,66815],3],[[66816,66855],2],[[66856,66863],3],[[66864,66915],2],[[66916,66926],3],[66927,2],[66928,1,"𐖗"],[66929,1,"𐖘"],[66930,1,"𐖙"],[66931,1,"𐖚"],[66932,1,"𐖛"],[66933,1,"𐖜"],[66934,1,"𐖝"],[66935,1,"𐖞"],[66936,1,"𐖟"],[66937,1,"𐖠"],[66938,1,"𐖡"],[66939,3],[66940,1,"𐖣"],[66941,1,"𐖤"],[66942,1,"𐖥"],[66943,1,"𐖦"],[66944,1,"𐖧"],[66945,1,"𐖨"],[66946,1,"𐖩"],[66947,1,"𐖪"],[66948,1,"𐖫"],[66949,1,"𐖬"],[66950,1,"𐖭"],[66951,1,"𐖮"],[66952,1,"𐖯"],[66953,1,"𐖰"],[66954,1,"𐖱"],[66955,3],[66956,1,"𐖳"],[66957,1,"𐖴"],[66958,1,"𐖵"],[66959,1,"𐖶"],[66960,1,"𐖷"],[66961,1,"𐖸"],[66962,1,"𐖹"],[66963,3],[66964,1,"𐖻"],[66965,1,"𐖼"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"ː"],[67458,1,"ˑ"],[67459,1,"æ"],[67460,1,"ʙ"],[67461,1,"ɓ"],[67462,3],[67463,1,"ʣ"],[67464,1,"ꭦ"],[67465,1,"ʥ"],[67466,1,"ʤ"],[67467,1,"ɖ"],[67468,1,"ɗ"],[67469,1,"ᶑ"],[67470,1,"ɘ"],[67471,1,"ɞ"],[67472,1,"ʩ"],[67473,1,"ɤ"],[67474,1,"ɢ"],[67475,1,"ɠ"],[67476,1,"ʛ"],[67477,1,"ħ"],[67478,1,"ʜ"],[67479,1,"ɧ"],[67480,1,"ʄ"],[67481,1,"ʪ"],[67482,1,"ʫ"],[67483,1,"ɬ"],[67484,1,"𝼄"],[67485,1,"ꞎ"],[67486,1,"ɮ"],[67487,1,"𝼅"],[67488,1,"ʎ"],[67489,1,"𝼆"],[67490,1,"ø"],[67491,1,"ɶ"],[67492,1,"ɷ"],[67493,1,"q"],[67494,1,"ɺ"],[67495,1,"𝼈"],[67496,1,"ɽ"],[67497,1,"ɾ"],[67498,1,"ʀ"],[67499,1,"ʨ"],[67500,1,"ʦ"],[67501,1,"ꭧ"],[67502,1,"ʧ"],[67503,1,"ʈ"],[67504,1,"ⱱ"],[67505,3],[67506,1,"ʏ"],[67507,1,"ʡ"],[67508,1,"ʢ"],[67509,1,"ʘ"],[67510,1,"ǀ"],[67511,1,"ǁ"],[67512,1,"ǂ"],[67513,1,"𝼊"],[67514,1,"𝼞"],[[67515,67583],3],[[67584,67589],2],[[67590,67591],3],[67592,2],[67593,3],[[67594,67637],2],[67638,3],[[67639,67640],2],[[67641,67643],3],[67644,2],[[67645,67646],3],[67647,2],[[67648,67669],2],[67670,3],[[67671,67679],2],[[67680,67702],2],[[67703,67711],2],[[67712,67742],2],[[67743,67750],3],[[67751,67759],2],[[67760,67807],3],[[67808,67826],2],[67827,3],[[67828,67829],2],[[67830,67834],3],[[67835,67839],2],[[67840,67861],2],[[67862,67865],2],[[67866,67867],2],[[67868,67870],3],[67871,2],[[67872,67897],2],[[67898,67902],3],[67903,2],[[67904,67967],3],[[67968,68023],2],[[68024,68027],3],[[68028,68029],2],[[68030,68031],2],[[68032,68047],2],[[68048,68049],3],[[68050,68095],2],[[68096,68099],2],[68100,3],[[68101,68102],2],[[68103,68107],3],[[68108,68115],2],[68116,3],[[68117,68119],2],[68120,3],[[68121,68147],2],[[68148,68149],2],[[68150,68151],3],[[68152,68154],2],[[68155,68158],3],[68159,2],[[68160,68167],2],[68168,2],[[68169,68175],3],[[68176,68184],2],[[68185,68191],3],[[68192,68220],2],[[68221,68223],2],[[68224,68252],2],[[68253,68255],2],[[68256,68287],3],[[68288,68295],2],[68296,2],[[68297,68326],2],[[68327,68330],3],[[68331,68342],2],[[68343,68351],3],[[68352,68405],2],[[68406,68408],3],[[68409,68415],2],[[68416,68437],2],[[68438,68439],3],[[68440,68447],2],[[68448,68466],2],[[68467,68471],3],[[68472,68479],2],[[68480,68497],2],[[68498,68504],3],[[68505,68508],2],[[68509,68520],3],[[68521,68527],2],[[68528,68607],3],[[68608,68680],2],[[68681,68735],3],[68736,1,"𐳀"],[68737,1,"𐳁"],[68738,1,"𐳂"],[68739,1,"𐳃"],[68740,1,"𐳄"],[68741,1,"𐳅"],[68742,1,"𐳆"],[68743,1,"𐳇"],[68744,1,"𐳈"],[68745,1,"𐳉"],[68746,1,"𐳊"],[68747,1,"𐳋"],[68748,1,"𐳌"],[68749,1,"𐳍"],[68750,1,"𐳎"],[68751,1,"𐳏"],[68752,1,"𐳐"],[68753,1,"𐳑"],[68754,1,"𐳒"],[68755,1,"𐳓"],[68756,1,"𐳔"],[68757,1,"𐳕"],[68758,1,"𐳖"],[68759,1,"𐳗"],[68760,1,"𐳘"],[68761,1,"𐳙"],[68762,1,"𐳚"],[68763,1,"𐳛"],[68764,1,"𐳜"],[68765,1,"𐳝"],[68766,1,"𐳞"],[68767,1,"𐳟"],[68768,1,"𐳠"],[68769,1,"𐳡"],[68770,1,"𐳢"],[68771,1,"𐳣"],[68772,1,"𐳤"],[68773,1,"𐳥"],[68774,1,"𐳦"],[68775,1,"𐳧"],[68776,1,"𐳨"],[68777,1,"𐳩"],[68778,1,"𐳪"],[68779,1,"𐳫"],[68780,1,"𐳬"],[68781,1,"𐳭"],[68782,1,"𐳮"],[68783,1,"𐳯"],[68784,1,"𐳰"],[68785,1,"𐳱"],[68786,1,"𐳲"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69375],3],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"𑣀"],[71841,1,"𑣁"],[71842,1,"𑣂"],[71843,1,"𑣃"],[71844,1,"𑣄"],[71845,1,"𑣅"],[71846,1,"𑣆"],[71847,1,"𑣇"],[71848,1,"𑣈"],[71849,1,"𑣉"],[71850,1,"𑣊"],[71851,1,"𑣋"],[71852,1,"𑣌"],[71853,1,"𑣍"],[71854,1,"𑣎"],[71855,1,"𑣏"],[71856,1,"𑣐"],[71857,1,"𑣑"],[71858,1,"𑣒"],[71859,1,"𑣓"],[71860,1,"𑣔"],[71861,1,"𑣕"],[71862,1,"𑣖"],[71863,1,"𑣗"],[71864,1,"𑣘"],[71865,1,"𑣙"],[71866,1,"𑣚"],[71867,1,"𑣛"],[71868,1,"𑣜"],[71869,1,"𑣝"],[71870,1,"𑣞"],[71871,1,"𑣟"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,3],[[78896,78904],3],[[78905,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"𖹠"],[93761,1,"𖹡"],[93762,1,"𖹢"],[93763,1,"𖹣"],[93764,1,"𖹤"],[93765,1,"𖹥"],[93766,1,"𖹦"],[93767,1,"𖹧"],[93768,1,"𖹨"],[93769,1,"𖹩"],[93770,1,"𖹪"],[93771,1,"𖹫"],[93772,1,"𖹬"],[93773,1,"𖹭"],[93774,1,"𖹮"],[93775,1,"𖹯"],[93776,1,"𖹰"],[93777,1,"𖹱"],[93778,1,"𖹲"],[93779,1,"𖹳"],[93780,1,"𖹴"],[93781,1,"𖹵"],[93782,1,"𖹶"],[93783,1,"𖹷"],[93784,1,"𖹸"],[93785,1,"𖹹"],[93786,1,"𖹺"],[93787,1,"𖹻"],[93788,1,"𖹼"],[93789,1,"𖹽"],[93790,1,"𖹾"],[93791,1,"𖹿"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110927],3],[[110928,110930],2],[[110931,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"𝅗𝅥"],[119135,1,"𝅘𝅥"],[119136,1,"𝅘𝅥𝅮"],[119137,1,"𝅘𝅥𝅯"],[119138,1,"𝅘𝅥𝅰"],[119139,1,"𝅘𝅥𝅱"],[119140,1,"𝅘𝅥𝅲"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"𝆹𝅥"],[119228,1,"𝆺𝅥"],[119229,1,"𝆹𝅥𝅮"],[119230,1,"𝆺𝅥𝅮"],[119231,1,"𝆹𝅥𝅯"],[119232,1,"𝆺𝅥𝅯"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[120000,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"ı"],[120485,1,"ȷ"],[[120486,120487],3],[120488,1,"α"],[120489,1,"β"],[120490,1,"γ"],[120491,1,"δ"],[120492,1,"ε"],[120493,1,"ζ"],[120494,1,"η"],[120495,1,"θ"],[120496,1,"ι"],[120497,1,"κ"],[120498,1,"λ"],[120499,1,"μ"],[120500,1,"ν"],[120501,1,"ξ"],[120502,1,"ο"],[120503,1,"π"],[120504,1,"ρ"],[120505,1,"θ"],[120506,1,"σ"],[120507,1,"τ"],[120508,1,"υ"],[120509,1,"φ"],[120510,1,"χ"],[120511,1,"ψ"],[120512,1,"ω"],[120513,1,"∇"],[120514,1,"α"],[120515,1,"β"],[120516,1,"γ"],[120517,1,"δ"],[120518,1,"ε"],[120519,1,"ζ"],[120520,1,"η"],[120521,1,"θ"],[120522,1,"ι"],[120523,1,"κ"],[120524,1,"λ"],[120525,1,"μ"],[120526,1,"ν"],[120527,1,"ξ"],[120528,1,"ο"],[120529,1,"π"],[120530,1,"ρ"],[[120531,120532],1,"σ"],[120533,1,"τ"],[120534,1,"υ"],[120535,1,"φ"],[120536,1,"χ"],[120537,1,"ψ"],[120538,1,"ω"],[120539,1,"∂"],[120540,1,"ε"],[120541,1,"θ"],[120542,1,"κ"],[120543,1,"φ"],[120544,1,"ρ"],[120545,1,"π"],[120546,1,"α"],[120547,1,"β"],[120548,1,"γ"],[120549,1,"δ"],[120550,1,"ε"],[120551,1,"ζ"],[120552,1,"η"],[120553,1,"θ"],[120554,1,"ι"],[120555,1,"κ"],[120556,1,"λ"],[120557,1,"μ"],[120558,1,"ν"],[120559,1,"ξ"],[120560,1,"ο"],[120561,1,"π"],[120562,1,"ρ"],[120563,1,"θ"],[120564,1,"σ"],[120565,1,"τ"],[120566,1,"υ"],[120567,1,"φ"],[120568,1,"χ"],[120569,1,"ψ"],[120570,1,"ω"],[120571,1,"∇"],[120572,1,"α"],[120573,1,"β"],[120574,1,"γ"],[120575,1,"δ"],[120576,1,"ε"],[120577,1,"ζ"],[120578,1,"η"],[120579,1,"θ"],[120580,1,"ι"],[120581,1,"κ"],[120582,1,"λ"],[120583,1,"μ"],[120584,1,"ν"],[120585,1,"ξ"],[120586,1,"ο"],[120587,1,"π"],[120588,1,"ρ"],[[120589,120590],1,"σ"],[120591,1,"τ"],[120592,1,"υ"],[120593,1,"φ"],[120594,1,"χ"],[120595,1,"ψ"],[120596,1,"ω"],[120597,1,"∂"],[120598,1,"ε"],[120599,1,"θ"],[120600,1,"κ"],[120601,1,"φ"],[120602,1,"ρ"],[120603,1,"π"],[120604,1,"α"],[120605,1,"β"],[120606,1,"γ"],[120607,1,"δ"],[120608,1,"ε"],[120609,1,"ζ"],[120610,1,"η"],[120611,1,"θ"],[120612,1,"ι"],[120613,1,"κ"],[120614,1,"λ"],[120615,1,"μ"],[120616,1,"ν"],[120617,1,"ξ"],[120618,1,"ο"],[120619,1,"π"],[120620,1,"ρ"],[120621,1,"θ"],[120622,1,"σ"],[120623,1,"τ"],[120624,1,"υ"],[120625,1,"φ"],[120626,1,"χ"],[120627,1,"ψ"],[120628,1,"ω"],[120629,1,"∇"],[120630,1,"α"],[120631,1,"β"],[120632,1,"γ"],[120633,1,"δ"],[120634,1,"ε"],[120635,1,"ζ"],[120636,1,"η"],[120637,1,"θ"],[120638,1,"ι"],[120639,1,"κ"],[120640,1,"λ"],[120641,1,"μ"],[120642,1,"ν"],[120643,1,"ξ"],[120644,1,"ο"],[120645,1,"π"],[120646,1,"ρ"],[[120647,120648],1,"σ"],[120649,1,"τ"],[120650,1,"υ"],[120651,1,"φ"],[120652,1,"χ"],[120653,1,"ψ"],[120654,1,"ω"],[120655,1,"∂"],[120656,1,"ε"],[120657,1,"θ"],[120658,1,"κ"],[120659,1,"φ"],[120660,1,"ρ"],[120661,1,"π"],[120662,1,"α"],[120663,1,"β"],[120664,1,"γ"],[120665,1,"δ"],[120666,1,"ε"],[120667,1,"ζ"],[120668,1,"η"],[120669,1,"θ"],[120670,1,"ι"],[120671,1,"κ"],[120672,1,"λ"],[120673,1,"μ"],[120674,1,"ν"],[120675,1,"ξ"],[120676,1,"ο"],[120677,1,"π"],[120678,1,"ρ"],[120679,1,"θ"],[120680,1,"σ"],[120681,1,"τ"],[120682,1,"υ"],[120683,1,"φ"],[120684,1,"χ"],[120685,1,"ψ"],[120686,1,"ω"],[120687,1,"∇"],[120688,1,"α"],[120689,1,"β"],[120690,1,"γ"],[120691,1,"δ"],[120692,1,"ε"],[120693,1,"ζ"],[120694,1,"η"],[120695,1,"θ"],[120696,1,"ι"],[120697,1,"κ"],[120698,1,"λ"],[120699,1,"μ"],[120700,1,"ν"],[120701,1,"ξ"],[120702,1,"ο"],[120703,1,"π"],[120704,1,"ρ"],[[120705,120706],1,"σ"],[120707,1,"τ"],[120708,1,"υ"],[120709,1,"φ"],[120710,1,"χ"],[120711,1,"ψ"],[120712,1,"ω"],[120713,1,"∂"],[120714,1,"ε"],[120715,1,"θ"],[120716,1,"κ"],[120717,1,"φ"],[120718,1,"ρ"],[120719,1,"π"],[120720,1,"α"],[120721,1,"β"],[120722,1,"γ"],[120723,1,"δ"],[120724,1,"ε"],[120725,1,"ζ"],[120726,1,"η"],[120727,1,"θ"],[120728,1,"ι"],[120729,1,"κ"],[120730,1,"λ"],[120731,1,"μ"],[120732,1,"ν"],[120733,1,"ξ"],[120734,1,"ο"],[120735,1,"π"],[120736,1,"ρ"],[120737,1,"θ"],[120738,1,"σ"],[120739,1,"τ"],[120740,1,"υ"],[120741,1,"φ"],[120742,1,"χ"],[120743,1,"ψ"],[120744,1,"ω"],[120745,1,"∇"],[120746,1,"α"],[120747,1,"β"],[120748,1,"γ"],[120749,1,"δ"],[120750,1,"ε"],[120751,1,"ζ"],[120752,1,"η"],[120753,1,"θ"],[120754,1,"ι"],[120755,1,"κ"],[120756,1,"λ"],[120757,1,"μ"],[120758,1,"ν"],[120759,1,"ξ"],[120760,1,"ο"],[120761,1,"π"],[120762,1,"ρ"],[[120763,120764],1,"σ"],[120765,1,"τ"],[120766,1,"υ"],[120767,1,"φ"],[120768,1,"χ"],[120769,1,"ψ"],[120770,1,"ω"],[120771,1,"∂"],[120772,1,"ε"],[120773,1,"θ"],[120774,1,"κ"],[120775,1,"φ"],[120776,1,"ρ"],[120777,1,"π"],[[120778,120779],1,"ϝ"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"𞤢"],[125185,1,"𞤣"],[125186,1,"𞤤"],[125187,1,"𞤥"],[125188,1,"𞤦"],[125189,1,"𞤧"],[125190,1,"𞤨"],[125191,1,"𞤩"],[125192,1,"𞤪"],[125193,1,"𞤫"],[125194,1,"𞤬"],[125195,1,"𞤭"],[125196,1,"𞤮"],[125197,1,"𞤯"],[125198,1,"𞤰"],[125199,1,"𞤱"],[125200,1,"𞤲"],[125201,1,"𞤳"],[125202,1,"𞤴"],[125203,1,"𞤵"],[125204,1,"𞤶"],[125205,1,"𞤷"],[125206,1,"𞤸"],[125207,1,"𞤹"],[125208,1,"𞤺"],[125209,1,"𞤻"],[125210,1,"𞤼"],[125211,1,"𞤽"],[125212,1,"𞤾"],[125213,1,"𞤿"],[125214,1,"𞥀"],[125215,1,"𞥁"],[125216,1,"𞥂"],[125217,1,"𞥃"],[[125218,125258],2],[125259,2],[[125260,125263],3],[[125264,125273],2],[[125274,125277],3],[[125278,125279],2],[[125280,126064],3],[[126065,126132],2],[[126133,126208],3],[[126209,126269],2],[[126270,126463],3],[126464,1,"ا"],[126465,1,"ب"],[126466,1,"ج"],[126467,1,"د"],[126468,3],[126469,1,"و"],[126470,1,"ز"],[126471,1,"ح"],[126472,1,"ط"],[126473,1,"ي"],[126474,1,"ك"],[126475,1,"ل"],[126476,1,"م"],[126477,1,"ن"],[126478,1,"س"],[126479,1,"ع"],[126480,1,"ف"],[126481,1,"ص"],[126482,1,"ق"],[126483,1,"ر"],[126484,1,"ش"],[126485,1,"ت"],[126486,1,"ث"],[126487,1,"خ"],[126488,1,"ذ"],[126489,1,"ض"],[126490,1,"ظ"],[126491,1,"غ"],[126492,1,"ٮ"],[126493,1,"ں"],[126494,1,"ڡ"],[126495,1,"ٯ"],[126496,3],[126497,1,"ب"],[126498,1,"ج"],[126499,3],[126500,1,"ه"],[[126501,126502],3],[126503,1,"ح"],[126504,3],[126505,1,"ي"],[126506,1,"ك"],[126507,1,"ل"],[126508,1,"م"],[126509,1,"ن"],[126510,1,"س"],[126511,1,"ع"],[126512,1,"ف"],[126513,1,"ص"],[126514,1,"ق"],[126515,3],[126516,1,"ش"],[126517,1,"ت"],[126518,1,"ث"],[126519,1,"خ"],[126520,3],[126521,1,"ض"],[126522,3],[126523,1,"غ"],[[126524,126529],3],[126530,1,"ج"],[[126531,126534],3],[126535,1,"ح"],[126536,3],[126537,1,"ي"],[126538,3],[126539,1,"ل"],[126540,3],[126541,1,"ن"],[126542,1,"س"],[126543,1,"ع"],[126544,3],[126545,1,"ص"],[126546,1,"ق"],[126547,3],[126548,1,"ش"],[[126549,126550],3],[126551,1,"خ"],[126552,3],[126553,1,"ض"],[126554,3],[126555,1,"غ"],[126556,3],[126557,1,"ں"],[126558,3],[126559,1,"ٯ"],[126560,3],[126561,1,"ب"],[126562,1,"ج"],[126563,3],[126564,1,"ه"],[[126565,126566],3],[126567,1,"ح"],[126568,1,"ط"],[126569,1,"ي"],[126570,1,"ك"],[126571,3],[126572,1,"م"],[126573,1,"ن"],[126574,1,"س"],[126575,1,"ع"],[126576,1,"ف"],[126577,1,"ص"],[126578,1,"ق"],[126579,3],[126580,1,"ش"],[126581,1,"ت"],[126582,1,"ث"],[126583,1,"خ"],[126584,3],[126585,1,"ض"],[126586,1,"ظ"],[126587,1,"غ"],[126588,1,"ٮ"],[126589,3],[126590,1,"ڡ"],[126591,3],[126592,1,"ا"],[126593,1,"ب"],[126594,1,"ج"],[126595,1,"د"],[126596,1,"ه"],[126597,1,"و"],[126598,1,"ز"],[126599,1,"ح"],[126600,1,"ط"],[126601,1,"ي"],[126602,3],[126603,1,"ل"],[126604,1,"م"],[126605,1,"ن"],[126606,1,"س"],[126607,1,"ع"],[126608,1,"ف"],[126609,1,"ص"],[126610,1,"ق"],[126611,1,"ر"],[126612,1,"ش"],[126613,1,"ت"],[126614,1,"ث"],[126615,1,"خ"],[126616,1,"ذ"],[126617,1,"ض"],[126618,1,"ظ"],[126619,1,"غ"],[[126620,126624],3],[126625,1,"ب"],[126626,1,"ج"],[126627,1,"د"],[126628,3],[126629,1,"و"],[126630,1,"ز"],[126631,1,"ح"],[126632,1,"ط"],[126633,1,"ي"],[126634,3],[126635,1,"ل"],[126636,1,"م"],[126637,1,"ن"],[126638,1,"س"],[126639,1,"ع"],[126640,1,"ف"],[126641,1,"ص"],[126642,1,"ق"],[126643,1,"ر"],[126644,1,"ش"],[126645,1,"ت"],[126646,1,"ث"],[126647,1,"خ"],[126648,1,"ذ"],[126649,1,"ض"],[126650,1,"ظ"],[126651,1,"غ"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"〔s〕"],[127275,1,"c"],[127276,1,"r"],[127277,1,"cd"],[127278,1,"wz"],[127279,2],[127280,1,"a"],[127281,1,"b"],[127282,1,"c"],[127283,1,"d"],[127284,1,"e"],[127285,1,"f"],[127286,1,"g"],[127287,1,"h"],[127288,1,"i"],[127289,1,"j"],[127290,1,"k"],[127291,1,"l"],[127292,1,"m"],[127293,1,"n"],[127294,1,"o"],[127295,1,"p"],[127296,1,"q"],[127297,1,"r"],[127298,1,"s"],[127299,1,"t"],[127300,1,"u"],[127301,1,"v"],[127302,1,"w"],[127303,1,"x"],[127304,1,"y"],[127305,1,"z"],[127306,1,"hv"],[127307,1,"mv"],[127308,1,"sd"],[127309,1,"ss"],[127310,1,"ppv"],[127311,1,"wc"],[[127312,127318],2],[127319,2],[[127320,127326],2],[127327,2],[[127328,127337],2],[127338,1,"mc"],[127339,1,"md"],[127340,1,"mr"],[[127341,127343],2],[[127344,127352],2],[127353,2],[127354,2],[[127355,127356],2],[[127357,127358],2],[127359,2],[[127360,127369],2],[[127370,127373],2],[[127374,127375],2],[127376,1,"dj"],[[127377,127386],2],[[127387,127404],2],[127405,2],[[127406,127461],3],[[127462,127487],2],[127488,1,"ほか"],[127489,1,"ココ"],[127490,1,"サ"],[[127491,127503],3],[127504,1,"手"],[127505,1,"字"],[127506,1,"双"],[127507,1,"デ"],[127508,1,"二"],[127509,1,"多"],[127510,1,"解"],[127511,1,"天"],[127512,1,"交"],[127513,1,"映"],[127514,1,"無"],[127515,1,"料"],[127516,1,"前"],[127517,1,"後"],[127518,1,"再"],[127519,1,"新"],[127520,1,"初"],[127521,1,"終"],[127522,1,"生"],[127523,1,"販"],[127524,1,"声"],[127525,1,"吹"],[127526,1,"演"],[127527,1,"投"],[127528,1,"捕"],[127529,1,"一"],[127530,1,"三"],[127531,1,"遊"],[127532,1,"左"],[127533,1,"中"],[127534,1,"右"],[127535,1,"指"],[127536,1,"走"],[127537,1,"打"],[127538,1,"禁"],[127539,1,"空"],[127540,1,"合"],[127541,1,"満"],[127542,1,"有"],[127543,1,"月"],[127544,1,"申"],[127545,1,"割"],[127546,1,"営"],[127547,1,"配"],[[127548,127551],3],[127552,1,"〔本〕"],[127553,1,"〔三〕"],[127554,1,"〔二〕"],[127555,1,"〔安〕"],[127556,1,"〔点〕"],[127557,1,"〔打〕"],[127558,1,"〔盗〕"],[127559,1,"〔勝〕"],[127560,1,"〔敗〕"],[[127561,127567],3],[127568,1,"得"],[127569,1,"可"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128000,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128732],3],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128895],3],[[128896,128980],2],[[128981,128984],2],[[128985,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],3],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],3],[[129712,129718],2],[[129719,129722],2],[[129723,129727],3],[[129728,129730],2],[[129731,129733],2],[[129734,129743],3],[[129744,129750],2],[[129751,129753],2],[[129754,129759],3],[[129760,129767],2],[[129768,129775],3],[[129776,129782],2],[[129783,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[[177977,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,194559],3],[194560,1,"丽"],[194561,1,"丸"],[194562,1,"乁"],[194563,1,"𠄢"],[194564,1,"你"],[194565,1,"侮"],[194566,1,"侻"],[194567,1,"倂"],[194568,1,"偺"],[194569,1,"備"],[194570,1,"僧"],[194571,1,"像"],[194572,1,"㒞"],[194573,1,"𠘺"],[194574,1,"免"],[194575,1,"兔"],[194576,1,"兤"],[194577,1,"具"],[194578,1,"𠔜"],[194579,1,"㒹"],[194580,1,"內"],[194581,1,"再"],[194582,1,"𠕋"],[194583,1,"冗"],[194584,1,"冤"],[194585,1,"仌"],[194586,1,"冬"],[194587,1,"况"],[194588,1,"𩇟"],[194589,1,"凵"],[194590,1,"刃"],[194591,1,"㓟"],[194592,1,"刻"],[194593,1,"剆"],[194594,1,"割"],[194595,1,"剷"],[194596,1,"㔕"],[194597,1,"勇"],[194598,1,"勉"],[194599,1,"勤"],[194600,1,"勺"],[194601,1,"包"],[194602,1,"匆"],[194603,1,"北"],[194604,1,"卉"],[194605,1,"卑"],[194606,1,"博"],[194607,1,"即"],[194608,1,"卽"],[[194609,194611],1,"卿"],[194612,1,"𠨬"],[194613,1,"灰"],[194614,1,"及"],[194615,1,"叟"],[194616,1,"𠭣"],[194617,1,"叫"],[194618,1,"叱"],[194619,1,"吆"],[194620,1,"咞"],[194621,1,"吸"],[194622,1,"呈"],[194623,1,"周"],[194624,1,"咢"],[194625,1,"哶"],[194626,1,"唐"],[194627,1,"啓"],[194628,1,"啣"],[[194629,194630],1,"善"],[194631,1,"喙"],[194632,1,"喫"],[194633,1,"喳"],[194634,1,"嗂"],[194635,1,"圖"],[194636,1,"嘆"],[194637,1,"圗"],[194638,1,"噑"],[194639,1,"噴"],[194640,1,"切"],[194641,1,"壮"],[194642,1,"城"],[194643,1,"埴"],[194644,1,"堍"],[194645,1,"型"],[194646,1,"堲"],[194647,1,"報"],[194648,1,"墬"],[194649,1,"𡓤"],[194650,1,"売"],[194651,1,"壷"],[194652,1,"夆"],[194653,1,"多"],[194654,1,"夢"],[194655,1,"奢"],[194656,1,"𡚨"],[194657,1,"𡛪"],[194658,1,"姬"],[194659,1,"娛"],[194660,1,"娧"],[194661,1,"姘"],[194662,1,"婦"],[194663,1,"㛮"],[194664,3],[194665,1,"嬈"],[[194666,194667],1,"嬾"],[194668,1,"𡧈"],[194669,1,"寃"],[194670,1,"寘"],[194671,1,"寧"],[194672,1,"寳"],[194673,1,"𡬘"],[194674,1,"寿"],[194675,1,"将"],[194676,3],[194677,1,"尢"],[194678,1,"㞁"],[194679,1,"屠"],[194680,1,"屮"],[194681,1,"峀"],[194682,1,"岍"],[194683,1,"𡷤"],[194684,1,"嵃"],[194685,1,"𡷦"],[194686,1,"嵮"],[194687,1,"嵫"],[194688,1,"嵼"],[194689,1,"巡"],[194690,1,"巢"],[194691,1,"㠯"],[194692,1,"巽"],[194693,1,"帨"],[194694,1,"帽"],[194695,1,"幩"],[194696,1,"㡢"],[194697,1,"𢆃"],[194698,1,"㡼"],[194699,1,"庰"],[194700,1,"庳"],[194701,1,"庶"],[194702,1,"廊"],[194703,1,"𪎒"],[194704,1,"廾"],[[194705,194706],1,"𢌱"],[194707,1,"舁"],[[194708,194709],1,"弢"],[194710,1,"㣇"],[194711,1,"𣊸"],[194712,1,"𦇚"],[194713,1,"形"],[194714,1,"彫"],[194715,1,"㣣"],[194716,1,"徚"],[194717,1,"忍"],[194718,1,"志"],[194719,1,"忹"],[194720,1,"悁"],[194721,1,"㤺"],[194722,1,"㤜"],[194723,1,"悔"],[194724,1,"𢛔"],[194725,1,"惇"],[194726,1,"慈"],[194727,1,"慌"],[194728,1,"慎"],[194729,1,"慌"],[194730,1,"慺"],[194731,1,"憎"],[194732,1,"憲"],[194733,1,"憤"],[194734,1,"憯"],[194735,1,"懞"],[194736,1,"懲"],[194737,1,"懶"],[194738,1,"成"],[194739,1,"戛"],[194740,1,"扝"],[194741,1,"抱"],[194742,1,"拔"],[194743,1,"捐"],[194744,1,"𢬌"],[194745,1,"挽"],[194746,1,"拼"],[194747,1,"捨"],[194748,1,"掃"],[194749,1,"揤"],[194750,1,"𢯱"],[194751,1,"搢"],[194752,1,"揅"],[194753,1,"掩"],[194754,1,"㨮"],[194755,1,"摩"],[194756,1,"摾"],[194757,1,"撝"],[194758,1,"摷"],[194759,1,"㩬"],[194760,1,"敏"],[194761,1,"敬"],[194762,1,"𣀊"],[194763,1,"旣"],[194764,1,"書"],[194765,1,"晉"],[194766,1,"㬙"],[194767,1,"暑"],[194768,1,"㬈"],[194769,1,"㫤"],[194770,1,"冒"],[194771,1,"冕"],[194772,1,"最"],[194773,1,"暜"],[194774,1,"肭"],[194775,1,"䏙"],[194776,1,"朗"],[194777,1,"望"],[194778,1,"朡"],[194779,1,"杞"],[194780,1,"杓"],[194781,1,"𣏃"],[194782,1,"㭉"],[194783,1,"柺"],[194784,1,"枅"],[194785,1,"桒"],[194786,1,"梅"],[194787,1,"𣑭"],[194788,1,"梎"],[194789,1,"栟"],[194790,1,"椔"],[194791,1,"㮝"],[194792,1,"楂"],[194793,1,"榣"],[194794,1,"槪"],[194795,1,"檨"],[194796,1,"𣚣"],[194797,1,"櫛"],[194798,1,"㰘"],[194799,1,"次"],[194800,1,"𣢧"],[194801,1,"歔"],[194802,1,"㱎"],[194803,1,"歲"],[194804,1,"殟"],[194805,1,"殺"],[194806,1,"殻"],[194807,1,"𣪍"],[194808,1,"𡴋"],[194809,1,"𣫺"],[194810,1,"汎"],[194811,1,"𣲼"],[194812,1,"沿"],[194813,1,"泍"],[194814,1,"汧"],[194815,1,"洖"],[194816,1,"派"],[194817,1,"海"],[194818,1,"流"],[194819,1,"浩"],[194820,1,"浸"],[194821,1,"涅"],[194822,1,"𣴞"],[194823,1,"洴"],[194824,1,"港"],[194825,1,"湮"],[194826,1,"㴳"],[194827,1,"滋"],[194828,1,"滇"],[194829,1,"𣻑"],[194830,1,"淹"],[194831,1,"潮"],[194832,1,"𣽞"],[194833,1,"𣾎"],[194834,1,"濆"],[194835,1,"瀹"],[194836,1,"瀞"],[194837,1,"瀛"],[194838,1,"㶖"],[194839,1,"灊"],[194840,1,"災"],[194841,1,"灷"],[194842,1,"炭"],[194843,1,"𠔥"],[194844,1,"煅"],[194845,1,"𤉣"],[194846,1,"熜"],[194847,3],[194848,1,"爨"],[194849,1,"爵"],[194850,1,"牐"],[194851,1,"𤘈"],[194852,1,"犀"],[194853,1,"犕"],[194854,1,"𤜵"],[194855,1,"𤠔"],[194856,1,"獺"],[194857,1,"王"],[194858,1,"㺬"],[194859,1,"玥"],[[194860,194861],1,"㺸"],[194862,1,"瑇"],[194863,1,"瑜"],[194864,1,"瑱"],[194865,1,"璅"],[194866,1,"瓊"],[194867,1,"㼛"],[194868,1,"甤"],[194869,1,"𤰶"],[194870,1,"甾"],[194871,1,"𤲒"],[194872,1,"異"],[194873,1,"𢆟"],[194874,1,"瘐"],[194875,1,"𤾡"],[194876,1,"𤾸"],[194877,1,"𥁄"],[194878,1,"㿼"],[194879,1,"䀈"],[194880,1,"直"],[194881,1,"𥃳"],[194882,1,"𥃲"],[194883,1,"𥄙"],[194884,1,"𥄳"],[194885,1,"眞"],[[194886,194887],1,"真"],[194888,1,"睊"],[194889,1,"䀹"],[194890,1,"瞋"],[194891,1,"䁆"],[194892,1,"䂖"],[194893,1,"𥐝"],[194894,1,"硎"],[194895,1,"碌"],[194896,1,"磌"],[194897,1,"䃣"],[194898,1,"𥘦"],[194899,1,"祖"],[194900,1,"𥚚"],[194901,1,"𥛅"],[194902,1,"福"],[194903,1,"秫"],[194904,1,"䄯"],[194905,1,"穀"],[194906,1,"穊"],[194907,1,"穏"],[194908,1,"𥥼"],[[194909,194910],1,"𥪧"],[194911,3],[194912,1,"䈂"],[194913,1,"𥮫"],[194914,1,"篆"],[194915,1,"築"],[194916,1,"䈧"],[194917,1,"𥲀"],[194918,1,"糒"],[194919,1,"䊠"],[194920,1,"糨"],[194921,1,"糣"],[194922,1,"紀"],[194923,1,"𥾆"],[194924,1,"絣"],[194925,1,"䌁"],[194926,1,"緇"],[194927,1,"縂"],[194928,1,"繅"],[194929,1,"䌴"],[194930,1,"𦈨"],[194931,1,"𦉇"],[194932,1,"䍙"],[194933,1,"𦋙"],[194934,1,"罺"],[194935,1,"𦌾"],[194936,1,"羕"],[194937,1,"翺"],[194938,1,"者"],[194939,1,"𦓚"],[194940,1,"𦔣"],[194941,1,"聠"],[194942,1,"𦖨"],[194943,1,"聰"],[194944,1,"𣍟"],[194945,1,"䏕"],[194946,1,"育"],[194947,1,"脃"],[194948,1,"䐋"],[194949,1,"脾"],[194950,1,"媵"],[194951,1,"𦞧"],[194952,1,"𦞵"],[194953,1,"𣎓"],[194954,1,"𣎜"],[194955,1,"舁"],[194956,1,"舄"],[194957,1,"辞"],[194958,1,"䑫"],[194959,1,"芑"],[194960,1,"芋"],[194961,1,"芝"],[194962,1,"劳"],[194963,1,"花"],[194964,1,"芳"],[194965,1,"芽"],[194966,1,"苦"],[194967,1,"𦬼"],[194968,1,"若"],[194969,1,"茝"],[194970,1,"荣"],[194971,1,"莭"],[194972,1,"茣"],[194973,1,"莽"],[194974,1,"菧"],[194975,1,"著"],[194976,1,"荓"],[194977,1,"菊"],[194978,1,"菌"],[194979,1,"菜"],[194980,1,"𦰶"],[194981,1,"𦵫"],[194982,1,"𦳕"],[194983,1,"䔫"],[194984,1,"蓱"],[194985,1,"蓳"],[194986,1,"蔖"],[194987,1,"𧏊"],[194988,1,"蕤"],[194989,1,"𦼬"],[194990,1,"䕝"],[194991,1,"䕡"],[194992,1,"𦾱"],[194993,1,"𧃒"],[194994,1,"䕫"],[194995,1,"虐"],[194996,1,"虜"],[194997,1,"虧"],[194998,1,"虩"],[194999,1,"蚩"],[195000,1,"蚈"],[195001,1,"蜎"],[195002,1,"蛢"],[195003,1,"蝹"],[195004,1,"蜨"],[195005,1,"蝫"],[195006,1,"螆"],[195007,3],[195008,1,"蟡"],[195009,1,"蠁"],[195010,1,"䗹"],[195011,1,"衠"],[195012,1,"衣"],[195013,1,"𧙧"],[195014,1,"裗"],[195015,1,"裞"],[195016,1,"䘵"],[195017,1,"裺"],[195018,1,"㒻"],[195019,1,"𧢮"],[195020,1,"𧥦"],[195021,1,"䚾"],[195022,1,"䛇"],[195023,1,"誠"],[195024,1,"諭"],[195025,1,"變"],[195026,1,"豕"],[195027,1,"𧲨"],[195028,1,"貫"],[195029,1,"賁"],[195030,1,"贛"],[195031,1,"起"],[195032,1,"𧼯"],[195033,1,"𠠄"],[195034,1,"跋"],[195035,1,"趼"],[195036,1,"跰"],[195037,1,"𠣞"],[195038,1,"軔"],[195039,1,"輸"],[195040,1,"𨗒"],[195041,1,"𨗭"],[195042,1,"邔"],[195043,1,"郱"],[195044,1,"鄑"],[195045,1,"𨜮"],[195046,1,"鄛"],[195047,1,"鈸"],[195048,1,"鋗"],[195049,1,"鋘"],[195050,1,"鉼"],[195051,1,"鏹"],[195052,1,"鐕"],[195053,1,"𨯺"],[195054,1,"開"],[195055,1,"䦕"],[195056,1,"閷"],[195057,1,"𨵷"],[195058,1,"䧦"],[195059,1,"雃"],[195060,1,"嶲"],[195061,1,"霣"],[195062,1,"𩅅"],[195063,1,"𩈚"],[195064,1,"䩮"],[195065,1,"䩶"],[195066,1,"韠"],[195067,1,"𩐊"],[195068,1,"䪲"],[195069,1,"𩒖"],[[195070,195071],1,"頋"],[195072,1,"頩"],[195073,1,"𩖶"],[195074,1,"飢"],[195075,1,"䬳"],[195076,1,"餩"],[195077,1,"馧"],[195078,1,"駂"],[195079,1,"駾"],[195080,1,"䯎"],[195081,1,"𩬰"],[195082,1,"鬒"],[195083,1,"鱀"],[195084,1,"鳽"],[195085,1,"䳎"],[195086,1,"䳭"],[195087,1,"鵧"],[195088,1,"𪃎"],[195089,1,"䳸"],[195090,1,"𪄅"],[195091,1,"𪈎"],[195092,1,"𪊑"],[195093,1,"麻"],[195094,1,"䵖"],[195095,1,"黹"],[195096,1,"黾"],[195097,1,"鼅"],[195098,1,"鼏"],[195099,1,"鼖"],[195100,1,"鼻"],[195101,1,"𪘀"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918000,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]]')},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"telegram-forward-bot","version":"1.1.0","description":"","main":"index.js","scripts":{"test":"react-scripts test --env=jsdom","lint":"eslint src","lint:create":"eslint --init","build":"rm -rf dist && ncc build src/index.ts -m && cp -r src/env dist/","start":"cd dist && node index.js"},"author":"desnlee","license":"MIT","devDependencies":{"@types/js-yaml":"^4.0.5","@types/node":"^17.0.8","@types/node-telegram-bot-api":"^0.53.6","@typescript-eslint/eslint-plugin":"^5.11.0","@typescript-eslint/parser":"^5.11.0","eslint":"^8.9.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-airbnb-typescript":"^16.1.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.4","eslint-plugin-prettier":"^4.0.0","prettier":"^2.5.1","typescript":"^4.5.4"},"dependencies":{"axios":"^0.24.0","js-yaml":"^4.1.0","mongoose":"^6.1.6","node-telegram-bot-api":"^0.56.0"}}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var n=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}r.loaded=true;return r.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{"use strict";__nccwpck_require__.r(__webpack_exports__);var e=__nccwpck_require__(70759);var t=__nccwpck_require__.n(e);var r=__nccwpck_require__(57147); /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,n,i,o;if(t){o=Object.keys(t);for(r=0,n=o.length;ra){o=" ... ";t=n-a+o.length}if(r-n>a){s=" ...";r=n+a-s.length}return{str:o+e.slice(t,r).replace(/\t/g,"→")+s,pos:n-t+o.length}}function padStart(e,t){return c.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var n=[0];var i=[];var o;var s=-1;while(o=r.exec(e.buffer)){i.push(o.index);n.push(o.index+o[0].length);if(e.position<=o.index&&s<0){s=n.length-2}}if(s<0)s=n.length-1;var a="",u,l;var d=Math.min(e.line+t.linesAfter,i.length).toString().length;var h=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore;u++){if(s-u<0)break;l=getLine(e.buffer,n[s-u],i[s-u],e.position-(n[s]-n[s-u]),h);a=c.repeat(" ",t.indent)+padStart((e.line-u+1).toString(),d)+" | "+l.str+"\n"+a}l=getLine(e.buffer,n[s],i[s],e.position,h);a+=c.repeat(" ",t.indent)+padStart((e.line+1).toString(),d)+" | "+l.str+"\n";a+=c.repeat("-",t.indent+d+3+l.pos)+"^"+"\n";for(u=1;u<=t.linesAfter;u++){if(s+u>=i.length)break;l=getLine(e.buffer,n[s+u],i[s+u],e.position-(n[s]-n[s+u]),h);a+=c.repeat(" ",t.indent)+padStart((e.line+u+1).toString(),d)+" | "+l.str+"\n"}return a.replace(/\n$/,"")}var d=makeSnippet;var h=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var m=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type$1(e,t){t=t||{};Object.keys(t).forEach((function(t){if(h.indexOf(t)===-1){throw new l('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(m.indexOf(this.kind)===-1){throw new l('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var g=Type$1;function compileList(e,t){var r=[];e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});var O=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!O.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}var D=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(c.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return D.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||c.isNegativeZero(e))}var B=new g("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"});var P=E.extend({implicit:[k,x,C,B]});var I=P;var R=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var N=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(R.exec(e)!==null)return true;if(N.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,i,o,s,a,u=0,c=null,l,d,h;t=R.exec(e);if(t===null)t=N.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;i=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,i))}o=+t[4];s=+t[5];a=+t[6];if(t[7]){u=t[7].slice(0,3);while(u.length<3){u+="0"}u=+u}if(t[9]){l=+t[10];d=+(t[11]||0);c=(l*60+d)*6e4;if(t[9]==="-")c=-c}h=new Date(Date.UTC(r,n,i,o,s,a,u));if(c)h.setTime(h.getTime()-c);return h}function representYamlTimestamp(e){return e.toISOString()}var $=new g("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(e){return e==="<<"||e===null}var L=new g("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge});var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,i=e.length,o=q;for(r=0;r64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=q,s=0,a=[];for(t=0;t>16&255);a.push(s>>8&255);a.push(s&255)}s=s<<6|o.indexOf(n.charAt(t))}r=i%4*6;if(r===0){a.push(s>>16&255);a.push(s>>8&255);a.push(s&255)}else if(r===18){a.push(s>>10&255);a.push(s>>2&255)}else if(r===12){a.push(s>>4&255)}return new Uint8Array(a)}function representYamlBinary(e){var t="",r=0,n,i,o=e.length,s=q;for(n=0;n>18&63];t+=s[r>>12&63];t+=s[r>>6&63];t+=s[r&63]}r=(r<<8)+e[n]}i=o%3;if(i===0){t+=s[r>>18&63];t+=s[r>>12&63];t+=s[r>>6&63];t+=s[r&63]}else if(i===2){t+=s[r>>10&63];t+=s[r>>4&63];t+=s[r<<2&63];t+=s[64]}else if(i===1){t+=s[r>>2&63];t+=s[r<<4&63];t+=s[64];t+=s[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var z=new g("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary});var U=Object.prototype.hasOwnProperty;var V=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r>10)+55296,(e-65536&1023)+56320)}var de=new Array(256);var he=new Array(256);for(var me=0;me<256;me++){de[me]=simpleEscapeSequence(me)?1:0;he[me]=simpleEscapeSequence(me)}function State$1(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||X;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=d(r);return new l(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var ge={YAML:function handleYamlDirective(e,t,r){var n,i,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(n[1],10);o=parseInt(n[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,i;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];i=r[1];if(!pe.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(ee.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!fe.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function captureSegment(e,t,r,n){var i,o,s,a;if(t1){e.result+=c.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,i,o,s,a,u,c,l,d=e.kind,h=e.result,m;m=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(m)||is_FLOW_INDICATOR(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96){return false}if(m===63||m===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";o=s=e.position;a=false;while(m!==0){if(m===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){break}}else if(m===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(m)){break}else if(is_EOL(m)){u=e.line;c=e.lineStart;l=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;m=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=u;e.lineStart=c;e.lineIndent=l;break}}if(a){captureSegment(e,o,s,false);writeFoldedLines(e,e.line-u);o=s=e.position;a=false}if(!is_WHITE_SPACE(m)){s=e.position+1}m=e.input.charCodeAt(++e.position)}captureSegment(e,o,s,false);if(e.result){return true}e.kind=d;e.result=h;return false}function readSingleQuotedScalar(e,t){var r,n,i;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=i=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,i,o,s,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,r,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&de[a]){e.result+=he[a];e.position++}else if((s=escapedHexLen(a))>0){i=s;o=0;for(;i>0;i--){a=e.input.charCodeAt(++e.position);if((s=fromHexCode(a))>=0){o=(o<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(a)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,i,o,s=e.tag,a,u=e.anchor,c,l,d,h,m,g=Object.create(null),y,v,b,_;_=e.input.charCodeAt(e.position);if(_===91){l=93;m=false;a=[]}else if(_===123){l=125;m=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}_=e.input.charCodeAt(++e.position);while(_!==0){skipSeparationSpace(e,true,t);_=e.input.charCodeAt(e.position);if(_===l){e.position++;e.tag=s;e.anchor=u;e.kind=m?"mapping":"sequence";e.result=a;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(_===44){throwError(e,"expected the node content, but found ','")}v=y=b=null;d=h=false;if(_===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){d=h=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;i=e.lineStart;o=e.position;composeNode(e,t,te,false,true);v=e.tag;y=e.result;skipSeparationSpace(e,true,t);_=e.input.charCodeAt(e.position);if((h||e.line===n)&&_===58){d=true;_=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,te,false,true);b=e.result}if(m){storeMappingPair(e,a,g,v,y,b,n,i,o)}else if(d){a.push(storeMappingPair(e,null,g,v,y,b,n,i,o))}else{a.push(y)}skipSeparationSpace(e,true,t);_=e.input.charCodeAt(e.position);if(_===44){r=true;_=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,n,i=oe,o=false,s=false,a=t,u=0,l=false,d,h;h=e.input.charCodeAt(e.position);if(h===124){n=false}else if(h===62){n=true}else{return false}e.kind="scalar";e.result="";while(h!==0){h=e.input.charCodeAt(++e.position);if(h===43||h===45){if(oe===i){i=h===43?ae:se}else{throwError(e,"repeat of a chomping mode identifier")}}else if((d=fromDecimalCode(h))>=0){if(d===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!s){a=t+d-1;s=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(h)){do{h=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(h));if(h===35){do{h=e.input.charCodeAt(++e.position)}while(!is_EOL(h)&&h!==0)}}while(h!==0){readLineBreak(e);e.lineIndent=0;h=e.input.charCodeAt(e.position);while((!s||e.lineIndenta){a=e.lineIndent}if(is_EOL(h)){u++;continue}if(e.lineIndentt)&&u!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(v){s=e.line;a=e.lineStart;u=e.position}if(composeNode(e,t,ie,true,i)){if(v){g=e.result}else{y=e.result}}if(!v){storeMappingPair(e,d,h,m,g,y,s,a,u);m=g=y=null}skipSeparationSpace(e,true,-1);_=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>t)&&_!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){u=1}else if(e.lineIndent===t){u=0}else if(e.lineIndentt){u=1}else if(e.lineIndent===t){u=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(d=0,h=e.implicitTypes.length;d")}if(e.result!==null&&g.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"')}if(!g.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=g.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||l}function readDocument(e){var t=e.position,r,n,i,o=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}o=true;s=e.input.charCodeAt(++e.position);r=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);i=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;r=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}i.push(e.input.slice(r,e.position))}if(s!==0)readLineBreak(e);if(ee.call(ge,n)){ge[n](e,n,i)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,ie,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&ce.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position=55296&&r<=56319&&t+1=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var Xe=1,Ze=2,et=3,tt=4,rt=5;function chooseScalarStyle(e,t,r,n,i,o,s,a){var u;var c=0;var l=null;var d=false;var h=false;var m=n!==-1;var g=-1;var y=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||s){for(u=0;u=65536?u+=2:u++){c=codePointAt(e,u);if(!isPrintable(c)){return rt}y=y&&isPlainSafe(c,l,a);l=c}}else{for(u=0;u=65536?u+=2:u++){c=codePointAt(e,u);if(c===ke){d=true;if(m){h=h||u-g-1>n&&e[g+1]!==" ";g=u}}else if(!isPrintable(c)){return rt}y=y&&isPlainSafe(c,l,a);l=c}h=h||m&&(u-g-1>n&&e[g+1]!==" ")}if(!d&&!h){if(y&&!s&&!i(e)){return Xe}return o===Je?rt:Ze}if(r>9&&needIndentIndicator(e)){return rt}if(!s){return h?tt:et}return o===Je?rt:Ze}function writeScalar(e,t,r,n,i){e.dump=function(){if(t.length===0){return e.quotingType===Je?'""':"''"}if(!e.noCompatMode){if(Ge.indexOf(t)!==-1||Qe.test(t)){return e.quotingType===Je?'"'+t+'"':"'"+t+"'"}}var o=e.indent*Math.max(1,r);var s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o);var a=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,a,e.indent,s,testAmbiguity,e.quotingType,e.forceQuotes&&!n,i)){case Xe:return t;case Ze:return"'"+t.replace(/'/g,"''")+"'";case et:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,o));case tt:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,s),o));case rt:return'"'+escapeString(t)+'"';default:throw new l("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var i=n&&(e[e.length-2]==="\n"||e==="\n");var o=i?"+":n?"":"-";return r+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var i=e[0]==="\n"||e[0]===" ";var o;var s;while(s=r.exec(e)){var a=s[1],u=s[2];o=u[0]===" ";n+=a+(!i&&!o&&u!==""?"\n":"")+foldLine(u,t);i=o}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var i=0,o,s=0,a=0;var u="";while(n=r.exec(e)){a=n.index;if(a-i>t){o=s>i?s:a;u+="\n"+e.slice(i,o);i=o+1}s=a}u+="\n";if(e.length-i>t&&s>i){u+=e.slice(i,s)+"\n"+e.slice(s+1)}else{u+=e.slice(i)}return u.slice(1)}function escapeString(e){var t="";var r=0;var n;for(var i=0;i=65536?i+=2:i++){r=codePointAt(e,i);n=Ke[r];if(!n&&isPrintable(r)){t+=e[i];if(r>=65536)t+=e[i+1]}else{t+=n||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var n="",i=e.tag,o,s,a;for(o=0,s=r.length;o1024)l+="? ";l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,c,false,false)){continue}l+=e.dump;n+=l}e.tag=i;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var i="",o=e.tag,s=Object.keys(r),a,u,c,d,h,m;if(e.sortKeys===true){s.sort()}else if(typeof e.sortKeys==="function"){s.sort(e.sortKeys)}else if(e.sortKeys){throw new l("sortKeys must be a boolean or a function")}for(a=0,u=s.length;a1024;if(h){if(e.dump&&ke===e.dump.charCodeAt(0)){m+="?"}else{m+="? "}}m+=e.dump;if(h){m+=generateNextLine(e,t)}if(!writeNode(e,t+1,d,true,h)){continue}if(e.dump&&ke===e.dump.charCodeAt(0)){m+=":"}else{m+=": "}m+=e.dump;i+=m}e.tag=o;e.dump=i||"{}"}function detectType(e,t,r){var n,i,o,s,a,u;i=r?e.explicitTypes:e.implicitTypes;for(o=0,s=i.length;o tag resolver accepts not "'+u+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,i,o,s){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var a=_e.call(e.dump);var u=n;var c;if(n){n=e.flowLevel<0||e.flowLevel>t}var d=a==="[object Object]"||a==="[object Array]",h,m;if(d){h=e.duplicates.indexOf(r);m=h!==-1}if(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0){i=false}if(m&&e.usedDuplicates[h]){e.dump="*ref_"+h}else{if(d&&m&&!e.usedDuplicates[h]){e.usedDuplicates[h]=true}if(a==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,i);if(m){e.dump="&ref_"+h+e.dump}}else{writeFlowMapping(e,t,e.dump);if(m){e.dump="&ref_"+h+" "+e.dump}}}else if(a==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!s&&t>0){writeBlockSequence(e,t-1,e.dump,i)}else{writeBlockSequence(e,t,e.dump,i)}if(m){e.dump="&ref_"+h+e.dump}}else{writeFlowSequence(e,t,e.dump);if(m){e.dump="&ref_"+h+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,o,u)}}else if(a==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new l("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){c="!"+c}else if(c.slice(0,18)==="tag:yaml.org,2002:"){c="!!"+c.slice(18)}else{c="!<"+c+">"}e.dump=c+" "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],i,o;inspectNode(e,r,n);for(i=0,o=n.length;i{new Rt({tg_id:e.from?.id,first_name:e.from?.first_name}).save()};const auth=async e=>{const t=await Rt.findOne({tg_id:e.from?.id});if(!t)return 1e3;if(t.is_banned)return 1001;return 1};const deleteMsg=async(e,t,r="single")=>{if(r==="single"){try{await Bt.deleteMessage(Ct,e.from_message_id.toString());await Bt.deleteMessage(e.to_id,e.to_message_id.toString());await e.updateOne({is_del:true})}catch{return"操作失败!"}}else if(r==="all"){const e=await Nt.find({to_id:t.tg_id,is_del:false});for(const t of e){await Bt.deleteMessage(Ct,t.from_message_id.toString());await Bt.deleteMessage(t.to_id,t.to_message_id.toString());await t.updateOne({is_del:true})}}else{return"参数错误!\n`all` - 全部删除\n不带参数单条删除"}return"操作成功!"};const commandToMe=async e=>{const t=await Nt.findOne({from_message_id:e.reply_to_message?.message_id});if(!t){await Bt.sendMessage(Ct,`未找到操作对象,请检查回复对象是否正确`);return}const r=await Rt.findOne({tg_id:t.to_id});if(!r){await Bt.sendMessage(Ct,`未找到操作用户`);return}let n;switch(e.text?.split(" ")[0]){case"!del":n=await deleteMsg(t,r,e.text?.split(" ")[1]);break;default:n="未找到命令"}await Bt.sendMessage(Ct,n,Dt.mark)};const commandToOther=async e=>{const t=await Mt.findOne({forwarded_message_id:e.reply_to_message?.message_id});if(!t){await Bt.sendMessage(Ct,`未找到操作对象,请检查回复对象是否正确`);return}const r=await Rt.findOne({tg_id:t.from_id});if(!r){await Bt.sendMessage(Ct,`未找到操作用户`);return}const n=`${t.content.from?.first_name}\n`;let i;switch(e.text?.split(" ")[0]){case"!ban":{await r.updateOne({is_banned:true}).catch((async e=>{await Bt.sendMessage(Ct,`banning user Error:\n + ${e}`)}));i=`不再转发 ${n} 的消息`;break}case"!unban":{await r.updateOne({is_banned:false}).catch((async e=>{await Bt.sendMessage(Ct,`unbanning user Error:\n + ${e}`)}));i=`${n} 已从黑名单移出`;break}case"!info":{if(!t.content.from){i="未找到对应消息";break}const{id:e,username:r,first_name:n,last_name:o,language_code:s}=t.content.from;i=`用户 ${n} 的信息如下:\n\n`;i+=`ID: ${e}\n`;i+=`UserName: ${r?"@"+r:"无"}\n`;i+=`NickName: ${n+(o||"")}\n`;i+=`Language: ${s}`;break}default:i="未找到命令"}await Bt.sendMessage(Ct,i,Dt.html)};const processCustomerCmd=async e=>{if(e.from?.id!==Ct){await Bt.sendMessage(e.chat.id,"你不是 Bot 的主人哦~").catch((e=>console.log('send command("/") warn ERROR:\n',e)));return}if(!e.reply_to_message){Bt.sendMessage(e.chat.id,"请回复一条消息以指定操作对象").catch((e=>console.log("send command warn ERROR:\n",e)));return}if(e.reply_to_message.from?.id===Ct){await commandToMe(e)}else{if(e.text?.startsWith("!del")){await Bt.sendMessage(Ct,"此命令仅支持自己发送的消息");return}await commandToOther(e)}};const processSystemCmd=async e=>{const t=e.text?.slice(1);const r=t?jt[t]:"未找到命令";await Bt.sendMessage(e.chat.id,r,Dt.mark2).catch((e=>console.log("Reply system command ERROR:\n",e)))};const command=async e=>{const t=e.text?.[0];switch(t){case"/":await processSystemCmd(e);break;case"!":await processCustomerCmd(e);break;default:break}};const forward=async e=>{const t=await Bt.forwardMessage(Ct,e.chat.id,e.message_id).catch((async e=>{await Bt.sendMessage(Ct,`转发消息出错\n${e}`)}));new Mt({received_message_id:e.message_id,forwarded_message_id:t?.message_id,from_id:e.from?.id,first_name:e.from?.first_name,content:e}).save()};const reply=async e=>{const t=await Mt.findOne({forwarded_message_id:e.reply_to_message?.message_id}).catch((e=>{console.log("find original message_id ERROR:\n",e);Bt.sendMessage(Ct,`未找到回复对象,请检查回复对象是否正确`)}));const r=t.from_id;let n={};try{if(e.text){n=await Bt.sendMessage(r,e.text)}if(e.sticker){n=await Bt.sendSticker(r,e.sticker.file_id)}if(e.photo){const t=e.caption||undefined;n=await Bt.sendPhoto(r,e.photo[0].file_id,{caption:t})}if(Ot)await Bt.sendMessage(Ct,"消息回复成功");new Nt({from_message_id:e.message_id,to_message_id:n.message_id,to_id:n.chat.id}).save()}catch{await Bt.sendMessage(Ct,"消息回复失败,稍后再试")}};const onMessage=async e=>{if(e.chat.type!=="private")return;if(["/","!"].indexOf(e.text?.[0])!==-1){await command(e);return}if(e.from?.id===Ct&&e.reply_to_message){await reply(e);return}const t=await auth(e);switch(t){case 1e3:newUser(e);break;case 1001:await Bt.sendMessage(e.chat.id,"你已被封禁");break;case 1:if(e.from?.id!==Ct){await forward(e)}break;default:await Bt.sendMessage(Ct,"用户权限验证错误")}};const connectDB=()=>new Promise(((e,t)=>{const r=(0,Pt.connect)(At);e(r);Pt.connection.on("error",(e=>{t(`MongoDB 连接错误\n${e}`);throw new Pt.Error(e)}))}));connectDB().then((async()=>{await Bt.sendMessage(Ct,"MongoDB 连接成功!")}));Bt.on("polling_error",console.log);Bt.on("message",onMessage)})();module.exports=__webpack_exports__})();