vardoip=function(e,t,r){"use strict";functionA(e){vart=Object.create(null);returne&&Object.keys(e).forEach((function(r){if("default"!==r){varA=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,A.get?A:{enumerable:!0,get:function(){returne[r]}})}})),t.default=e,Object.freeze(t)}vari=A(doipFetchers);consto={ADAPTIVE:"adaptive",ALWAYS:"always",NEVER:"never"},n={ACTIVITYPUB:"activitypub",DNS:"dns",GRAPHQL:"graphql",HTTP:"http",IRC:"irc",MATRIX:"matrix",TELEGRAM:"telegram",XMPP:"xmpp"},a={PLAIN:"plain",HTML:"html",XML:"xml"},s={NONE:"none",NOCORS:"nocors",GRANTED:"granted",SERVER:"server"},c={JSON:"json",TEXT:"text"},I={URI:"uri",FINGERPRINT:"fingerprint"},g={CONTAINS:"contains",EQUALS:"equals",ONEOF:"oneof"},h={INIT:100,MATCHED:101,VERIFIED:200,VERIFIED_VIA_PROXY:201,MATCHING_ERROR:300,NO_MATCHES:301,VERIFICATION_ERROR:400,NO_PROOF_FOUND:401},l={ASP:"asp",OPENPGP:"openpgp"},u={EDDSA:"eddsa",ES256:"es256",OPENPGP:"openpgp",UNKNOWN:"unknown",NONE:"none"},f={PEM:"pem",JWK:"jwk",ARMORED_PGP:"armored_pgp",NONE:"none"},B={ASPE:"aspe",HKP:"hkp",WKD:"wkd",HTTP:"http",NONE:"none"};varp=Object.freeze({__proto__:null,ClaimFormat:I,ClaimRelation:g,ClaimStatus:h,EntityEncodingFormat:a,Fetcher:n,ProfileType:l,ProofAccessRestriction:s,ProofFormat:c,ProxyPolicy:o,PublicKeyEncoding:f,PublicKeyFetchMethod:B,PublicKeyType:u});classC{constructor(e,t,r){this.profileVersion=2,this.profileType=e,this.identifier=t,this.personas=r||[],this.primaryPersonaIndex=r.length>0?0:-1,this.publicKey={keyType:u.NONE,fingerprint:null,encoding:f.NONE,encodedKey:null,key:null,fetch:{method:B.NONE,query:null,resolvedUrl:null}},this.verifiers=[]}addVerifier(e,t){this.verifiers.push({name:e,url:t})}toJSON(){return{profileVersion:this.profileVersion,profileType:this.profileType,identifier:this.identifier,personas:this.personas.map((e=>e.toJSON())),primaryPersonaIndex:this.primaryPersonaIndex,publicKey:{keyType:this.publicKey.keyType,fingerprint:this.publicKey.fingerprint,encoding:this.publicKey.encoding,encodedKey:this.publicKey.encodedKey,fetch:{method:this.publicKey.fetch.method,query:this.publicKey.fetch.query,resolvedUrl:this.publicKey.fetch.resolvedUrl}},verifiers:this.verifiers}}}classd{constructor(e,t){this.identifier=null,this.name=e,this.email=null,this.description=null,this.avatarUrl=null,this.claims=t,this.isRevoked=!1}setIdentifier(e){this.identifier=e}setDescription(e){this.description=e}setEmailAddress(e){this.email=e}setAvatarUrl(e){this.avatarUrl=e}addClaim(e){this.claims.push(e)}revoke(){this.isRevoked=!0}toJSON(){return{identifier:this.identifier,name:this.name,email:this.email,description:this.description,avatarUrl:this.avatarUrl,isRevoked:this.isRevoked,claims:this.claims.map((e=>e.toJSON()))}}}varE="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:{};functionQ(e){returne&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}functionw(e){if(e.__esModule)returne;vart=e.default;if("function"==typeoft){varr=functione(){if(thisinstanceofe){varr=[null];returnr.push.apply(r,arguments),new(Function.bind.apply(t,r))}returnt.apply(this,arguments)};r.prototype=t.prototype}elser={};returnObject.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){varA=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,A.get?A:{enumerable:!0,get:function(){returne[t]}})})),r}varm={},y={exports:{}};!function(e,t){functionr(e){returnr="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){vart="string"==typeofe||einstanceofString;if(!t){varA=r(e);thrownull===e?A="null":"object"===A&&(A=e.constructor.name),newTypeError("Expected a string but received a ".concat(A))}},e.exports=t.default,e.exports.default=t.default}(y,y.exports);vark=y.exports,F={};Object.defin