You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			15 lines
		
	
	
		
			148 KiB
		
	
	
	
		
			JavaScript
		
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			148 KiB
		
	
	
	
		
			JavaScript
		
	
| 
											9 months ago
										 | (()=>{var e={6474:(e,r,t)=>{"use strict";var a=t(9258),s=t(2603),i=t(7731),o=t(2961),n=t(6424),l=t(2015),f=t(9233),c=t(1966),u=t(8716);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=t(2694);var h=t(6765);Ajv.prototype.addKeyword=h.add;Ajv.prototype.getKeyword=h.get;Ajv.prototype.removeKeyword=h.remove;Ajv.prototype.validateKeyword=h.validate;var d=t(6343);Ajv.ValidationError=d.Validation;Ajv.MissingRefError=d.MissingRef;Ajv.$dataMetaSchema=c;var p="http://json-schema.org/draft-07/schema";var v=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var m=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=u.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=l(e.format);this._cache=e.cache||new i;this._loadingSchemas={};this._compilations=[];this.RULES=f();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=n;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,r){var t;if(typeof e=="string"){t=this.getSchema(e);if(!t)throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);t=a.validate||this._compile(a)}var s=t(r);if(t.$async!==true)this.errors=t.errors;return s}function compile(e,r){var t=this._addSchema(e,undefined,r);return t.validate||this._compile(t)}function addSchema(e,r,t,a){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],undefined,t,a);return this}var o=this._getId(e);if(o!==undefined&&typeof o!="string")throw new Error("schema id must be string");r=s.normalizeId(r||o);checkUnique(this,r);this._schemas[r]=this._addSchema(e,t,a,true);return this}function addMetaSchema(e,r,t){this.addSchema(e,r,t,true);return this}function validateSchema(e,r){var t=e.$schema;if(t!==undefined&&typeof t!="string")throw new Error("$schema must be a string");t=t||this._opts.defaultMeta||defaultMeta(this);if(!t){this.logger.warn("meta-schema not available");this.errors=null;return true}var a=this.validate(t,e);if(!a&&r){var s="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(s);else throw new Error(s)}return a}function defaultMeta(e){var r=e._opts.meta;e._opts.defaultMeta=typeof r=="object"?e._getId(r)||r:e.getSchema(p)?p:undefined;return e._opts.defaultMeta}function getSchema(e){var r=_getSchemaObj(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return _getSchemaFragment(this,e)}}function _getSchemaFragment(e,r){var t=s.schema.call(e,{schema:{}},r);if(t){var i=t.schema,n=t.root,l=t.baseId;var f=a.call(e,i,n,undefined,l);e._fragments[r]=new o({ref:r,fragment:true,schema:i,root:n,baseId:l,validate:f});return f}}function _getSchemaObj(e,r){r=s.normalizeId(r);return e._schemas[r]||e._refs[r]||e._fragments[r]}function removeSchema(e){if(e instanceof RegExp){_removeAllSchemas(this,this._schemas,e);_removeAllSchemas(this,this._refs,e);return this}switch(typeof e){case"undefined":_removeAllSchemas(this,this._schemas);_removeAllSchemas(this,this._refs);this._cache.clear();return this;case"string":var r=_getSchemaObj(this,e);if(r)this._cache.del(r.cacheKey);delete this._schemas[e];delete this._refs[e];return this;case"object":var t=this._opts.serialize;var a=t?t(e):e;this._cache.del(a);var i=this._getId(e);if(i){i=s.normalizeId(i);delete th | ||
|  | /** | ||
|  |  * @preserve | ||
|  |  * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) | ||
|  |  * | ||
|  |  * @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a> | ||
|  |  * @see http://github.com/homebrewing/brauhaus-diff
 | ||
|  |  * @author <a href="mailto:gary.court@gmail.com">Gary Court</a> | ||
|  |  * @see http://github.com/garycourt/murmurhash-js
 | ||
|  |  * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a> | ||
|  |  * @see http://sites.google.com/site/murmurhash/
 | ||
|  |  */ | ||
|  | (function(){var r;function MurmurHash3(e,t){var a=this instanceof MurmurHash3?this:r;a.reset(t);if(typeof e==="string"&&e.length>0){a.hash(e)}if(a!==this){return a}}MurmurHash3.prototype.hash=function(e){var r,t,a,s,i;i=e.length;this.len+=i;t=this.k1;a=0;switch(this.rem){case 0:t^=i>a?e.charCodeAt(a++)&65535:0;case 1:t^=i>a?(e.charCodeAt(a++)&65535)<<8:0;case 2:t^=i>a?(e.charCodeAt(a++)&65535)<<16:0;case 3:t^=i>a?(e.charCodeAt(a)&255)<<24:0;t^=i>a?(e.charCodeAt(a++)&65280)>>8:0}this.rem=i+this.rem&3;i-=this.rem;if(i>0){r=this.h1;while(1){t=t*11601+(t&65535)*3432906752&4294967295;t=t<<15|t>>>17;t=t*13715+(t&65535)*461832192&4294967295;r^=t;r=r<<13|r>>>19;r=r*5+3864292196&4294967295;if(a>=i){break}t=e.charCodeAt(a++)&65535^(e.charCodeAt(a++)&65535)<<8^(e.charCodeAt(a++)&65535)<<16;s=e.charCodeAt(a++);t^=(s&255)<<24^(s&65280)>>8}t=0;switch(this.rem){case 3:t^=(e.charCodeAt(a+2)&65535)<<16;case 2:t^=(e.charCodeAt(a+1)&65535)<<8;case 1:t^=e.charCodeAt(a)&65535}this.h1=r}this.k1=t;return this};MurmurHash3.prototype.result=function(){var e,r;e=this.k1;r=this.h1;if(e>0){e=e*11601+(e&65535)*3432906752&4294967295;e=e<<15|e>>>17;e=e*13715+(e&65535)*461832192&4294967295;r^=e}r^=this.len;r^=r>>>16;r=r*51819+(r&65535)*2246770688&4294967295;r^=r>>>13;r=r*44597+(r&65535)*3266445312&4294967295;r^=r>>>16;return r>>>0};MurmurHash3.prototype.reset=function(e){this.h1=typeof e==="number"?e:0;this.rem=this.k1=this.len=0;return this};r=new MurmurHash3;if(true){e.exports=MurmurHash3}else{}})()},8683:e=>{"use strict";e.exports=e=>{const r=typeof e;return e!==null&&(r==="object"||r==="function")}},9232:e=>{e.exports=isTypedArray;isTypedArray.strict=isStrictTypedArray;isTypedArray.loose=isLooseTypedArray;var r=Object.prototype.toString;var t={"[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 t[r.call(e)]}},6042:e=>{"use strict";var r=e.exports=function(e,r,t){if(typeof r=="function"){t=r;r={}}t=r.cb||t;var a=typeof t=="function"?t:t.pre||function(){};var s=t.post||function(){};_traverse(r,a,s,e,"",e)};r.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};r.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};r.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};r.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,t,a,s,i,o,n,l,f,c){if(s&&typeof s=="object"&&!Array.isArray(s)){t(s,i,o,n,l,f,c);for(var u in s){var h=s[u];if(Array.isArray(h)){if(u in r.arrayKeywords){for(var d=0;d<h.length;d++)_traverse(e,t,a,h[d],i+"/"+u+"/"+d,o,i,u,s,d)}}else if(u in r.propsKeywords){if(h&&typeof h=="object"){for(var p in h)_traverse(e,t,a,h[p],i+"/"+u+"/"+escapeJsonPtr(p),o,i,u,s,p)}}else if(u in r.keywords||e.allKeys&&!(u in r.skipKeywords)){_traverse(e,t,a,h,i+"/"+u,o,i,u,s)}}a(s,i,o,n,l,f,c)}}function escapeJsonPtr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}},5940:(e,r,t)=>{"use strict";const a=t(7147);const s=t(1017);const{promisify:i}=t(3837);const o=t(7849);const n=o.satisfies(process.version,">=10.12.0");const checkPath=e=>{if(process.platform==="win32"){const r=/[<>:"|?*]/.test(e.replace(s.parse(e).root,""));if(r){const r=new Error(`Path contains invalid characters: ${e}`);r.code="EINVAL";throw r}}};const proces | ||
|  | /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ | ||
|  | (function(e,t){true?t(r):0})(this,(function(e){"use strict";function merge(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++){r[t]=arguments[t]}if(r.length>1){r[0]=r[0].slice(0,-1);var a=r.length-1;for(var s=1;s<a;++s){r[s]=r[s].slice(1,-1)}r[a]=r[a].slice(1);return r.join("")}else{return r[0]}}function subexp(e){return"(?:"+e+")"}function typeOf(e){return e===undefined?"undefined":e===null?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(e){return e.toUpperCase()}function toArray(e){return e!==undefined&&e!==null?e instanceof Array?e:typeof e.length!=="number"||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function assign(e,r){var t=e;if(r){for(var a in r){t[a]=r[a]}}return t}function buildExps(e){var r="[A-Za-z]",t="[\\x0D]",a="[0-9]",s="[\\x22]",i=merge(a,"[A-Fa-f]"),o="[\\x0A]",n="[\\x20]",l=subexp(subexp("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+subexp("%[89A-Fa-f]"+i+"%"+i+i)+"|"+subexp("%"+i+i)),f="[\\:\\/\\?\\#\\[\\]\\@]",c="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",u=merge(f,c),h=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",d=e?"[\\uE000-\\uF8FF]":"[]",p=merge(r,a,"[\\-\\.\\_\\~]",h),v=subexp(r+merge(r,a,"[\\+\\-\\.]")+"*"),m=subexp(subexp(l+"|"+merge(p,c,"[\\:]"))+"*"),y=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+a)+"|"+subexp("1"+a+a)+"|"+subexp("[1-9]"+a)+"|"+a),g=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+a)+"|"+subexp("1"+a+a)+"|"+subexp("0?[1-9]"+a)+"|0?0?"+a),P=subexp(g+"\\."+g+"\\."+g+"\\."+g),E=subexp(i+"{1,4}"),b=subexp(subexp(E+"\\:"+E)+"|"+P),w=subexp(subexp(E+"\\:")+"{6}"+b),S=subexp("\\:\\:"+subexp(E+"\\:")+"{5}"+b),x=subexp(subexp(E)+"?\\:\\:"+subexp(E+"\\:")+"{4}"+b),_=subexp(subexp(subexp(E+"\\:")+"{0,1}"+E)+"?\\:\\:"+subexp(E+"\\:")+"{3}"+b),j=subexp(subexp(subexp(E+"\\:")+"{0,2}"+E)+"?\\:\\:"+subexp(E+"\\:")+"{2}"+b),R=subexp(subexp(subexp(E+"\\:")+"{0,3}"+E)+"?\\:\\:"+E+"\\:"+b),F=subexp(subexp(subexp(E+"\\:")+"{0,4}"+E)+"?\\:\\:"+b),D=subexp(subexp(subexp(E+"\\:")+"{0,5}"+E)+"?\\:\\:"+E),$=subexp(subexp(subexp(E+"\\:")+"{0,6}"+E)+"?\\:\\:"),A=subexp([w,S,x,_,j,R,F,D,$].join("|")),I=subexp(subexp(p+"|"+l)+"+"),C=subexp(A+"\\%25"+I),O=subexp(A+subexp("\\%25|\\%(?!"+i+"{2})")+I),k=subexp("[vV]"+i+"+\\."+merge(p,c,"[\\:]")+"+"),T=subexp("\\["+subexp(O+"|"+A+"|"+k)+"\\]"),z=subexp(subexp(l+"|"+merge(p,c))+"*"),L=subexp(T+"|"+P+"(?!"+z+")"+"|"+z),N=subexp(a+"*"),U=subexp(subexp(m+"@")+"?"+L+subexp("\\:"+N)+"?"),q=subexp(l+"|"+merge(p,c,"[\\:\\@]")),V=subexp(q+"*"),Q=subexp(q+"+"),M=subexp(subexp(l+"|"+merge(p,c,"[\\@]"))+"+"),H=subexp(subexp("\\/"+V)+"*"),K=subexp("\\/"+subexp(Q+H)+"?"),B=subexp(M+H),J=subexp(Q+H),G="(?!"+q+")",Z=subexp(H+"|"+K+"|"+B+"|"+J+"|"+G),X=subexp(subexp(q+"|"+merge("[\\/\\?]",d))+"*"),Y=subexp(subexp(q+"|[\\/\\?]")+"*"),W=subexp(subexp("\\/\\/"+U+H)+"|"+K+"|"+J+"|"+G),ee=subexp(v+"\\:"+W+subexp("\\?"+X)+"?"+subexp("\\#"+Y)+"?"),re=subexp(subexp("\\/\\/"+U+H)+"|"+K+"|"+B+"|"+G),te=subexp(re+subexp("\\?"+X)+"?"+subexp("\\#"+Y)+"?"),ae=subexp(ee+"|"+te),se=subexp(v+"\\:"+W+subexp("\\?"+X)+"?"),ie="^("+v+")\\:"+subexp(subexp("\\/\\/("+subexp("("+m+")@")+"?("+L+")"+subexp("\\:("+N+")")+"?)")+"?("+H+"|"+K+"|"+J+"|"+G+")")+subexp("\\?("+X+")")+"?"+subexp("\\#("+Y+")")+"?$",oe="^(){0}"+subexp(subexp("\\/\\/("+subexp("("+m+")@")+"?("+L+")"+subexp("\\:("+N+")")+"?)")+"?("+H+"|"+K+"|"+B+"|"+G+")")+subexp("\\?("+X+")")+"?"+subexp("\\#("+Y+")")+"?$",ne="^("+v+")\\:"+subexp(subexp("\\/\\/("+subexp("("+m+")@")+"?("+L+")"+subexp("\\:("+N+")")+"?)")+"?("+H+"|"+K+"|"+J+"|"+G+")")+subexp("\\?("+X+")")+"?$",le="^"+subexp("\\#("+Y+")")+"?$",fe="^"+subexp("("+m+")@")+"?("+L+")"+subexp("\\:("+N+")")+"?$";return{NOT_SCHEME:new RegExp(merge("[^]",r,a,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",p,c),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",p,c),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",p,c),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",p,c),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",p,c,"[\\:\\@\\/\\?]",d),"g"),NOT_FRAGMENT:new RegExp(merge(" |