@dcl/auth-site 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{fortmatic-7379efff.js → fortmatic-26a47a11.js} +2 -2
- package/assets/{fortmatic-7379efff.js.map → fortmatic-26a47a11.js.map} +1 -1
- package/assets/{index-508f5b2c.js → index-14dfc4a0.js} +2 -2
- package/assets/{index-508f5b2c.js.map → index-14dfc4a0.js.map} +1 -1
- package/assets/{index-80adc4ef.js → index-7911507e.js} +2 -2
- package/assets/{index-80adc4ef.js.map → index-7911507e.js.map} +1 -1
- package/assets/{index-c5bbafed.js → index-7fbad618.js} +2 -2
- package/assets/{index-c5bbafed.js.map → index-7fbad618.js.map} +1 -1
- package/assets/{index-26b3bea2.css → index-8006ed4b.css} +3 -3
- package/assets/{index-c1d19e23.js → index-8a109c4c.js} +4 -4
- package/assets/{index-c1d19e23.js.map → index-8a109c4c.js.map} +1 -1
- package/assets/{index-9b300f37.js → index-9dc2a34d.js} +2 -2
- package/assets/{index-9b300f37.js.map → index-9dc2a34d.js.map} +1 -1
- package/assets/{index-8a46796e.js → index-f0f060e7.js} +2 -2
- package/assets/{index-8a46796e.js.map → index-f0f060e7.js.map} +1 -1
- package/assets/{index-c906fe37.js → index-fcfdb43d.js} +2 -2
- package/assets/{index-c906fe37.js.map → index-fcfdb43d.js.map} +1 -1
- package/assets/{index.es-17ca196b.js → index.es-7af53fc6.js} +3 -3
- package/assets/{index.es-17ca196b.js.map → index.es-7af53fc6.js.map} +1 -1
- package/index.html +2 -2
- package/package.json +2 -2
|
@@ -107,7 +107,7 @@ Instead of \``+ht+"`, did you mean:",Tt.map(function(It){return`
|
|
|
107
107
|
|| ${Nt} === "boolean" || ${kt} === null`).assign(zt,(0,_e._)`[${kt}]`)}}}function wt({gen:Rt,parentData:Pt,parentDataProperty:Ct},Ot){Rt.if((0,_e._)`${Pt} !== undefined`,()=>Rt.assign((0,_e._)`${Pt}[${Ct}]`,Ot))}function xt(Rt,Pt,Ct,Ot=tt.Correct){const kt=Ot===tt.Correct?_e.operators.EQ:_e.operators.NEQ;let Dt;switch(Rt){case"null":return(0,_e._)`${Pt} ${kt} null`;case"array":Dt=(0,_e._)`Array.isArray(${Pt})`;break;case"object":Dt=(0,_e._)`${Pt} && typeof ${Pt} == "object" && !Array.isArray(${Pt})`;break;case"integer":Dt=Nt((0,_e._)`!(${Pt} % 1) && !isNaN(${Pt})`);break;case"number":Dt=Nt();break;default:return(0,_e._)`typeof ${Pt} ${kt} ${Rt}`}return Ot===tt.Correct?Dt:(0,_e.not)(Dt);function Nt(zt=_e.nil){return(0,_e.and)((0,_e._)`typeof ${Pt} == "number"`,zt,Ct?(0,_e._)`isFinite(${Pt})`:_e.nil)}}a.checkDataType=xt;function bt(Rt,Pt,Ct,Ot){if(Rt.length===1)return xt(Rt[0],Pt,Ct,Ot);let kt;const Dt=(0,et.toHash)(Rt);if(Dt.array&&Dt.object){const Nt=(0,_e._)`typeof ${Pt} != "object"`;kt=Dt.null?Nt:(0,_e._)`!${Pt} || ${Nt}`,delete Dt.null,delete Dt.array,delete Dt.object}else kt=_e.nil;Dt.number&&delete Dt.integer;for(const Nt in Dt)kt=(0,_e.and)(kt,xt(Nt,Pt,Ct,Ot));return kt}a.checkDataTypes=bt;const Et={message:({schema:Rt})=>`must be ${Rt}`,params:({schema:Rt,schemaValue:Pt})=>typeof Rt=="string"?(0,_e._)`{type: ${Rt}}`:(0,_e._)`{type: ${Pt}}`};function $t(Rt){const Pt=At(Rt);(0,j.reportError)(Pt,Et)}a.reportTypeError=$t;function At(Rt){const{gen:Pt,data:Ct,schema:Ot}=Rt,kt=(0,et.schemaRefOrVal)(Rt,Ot,"type");return{gen:Pt,keyword:"type",data:Ct,schema:Ot.type,schemaCode:kt,schemaValue:kt,parentSchema:Ot,params:{},it:Rt}}})(dataType);var defaults={};Object.defineProperty(defaults,"__esModule",{value:!0});defaults.assignDefaults=void 0;const codegen_1$s=codegen,util_1$p=util$1;function assignDefaults(a,_){const{properties:$,items:j}=a.schema;if(_==="object"&&$)for(const _e in $)assignDefault(a,_e,$[_e].default);else _==="array"&&Array.isArray(j)&&j.forEach((_e,et)=>assignDefault(a,et,_e.default))}defaults.assignDefaults=assignDefaults;function assignDefault(a,_,$){const{gen:j,compositeRule:_e,data:et,opts:tt}=a;if($===void 0)return;const rt=(0,codegen_1$s._)`${et}${(0,codegen_1$s.getProperty)(_)}`;if(_e){(0,util_1$p.checkStrictMode)(a,`default is ignored for: ${rt}`);return}let it=(0,codegen_1$s._)`${rt} === undefined`;tt.useDefaults==="empty"&&(it=(0,codegen_1$s._)`${it} || ${rt} === null || ${rt} === ""`),j.if(it,(0,codegen_1$s._)`${rt} = ${(0,codegen_1$s.stringify)($)}`)}var keyword={},code$1={};Object.defineProperty(code$1,"__esModule",{value:!0});code$1.validateUnion=code$1.validateArray=code$1.usePattern=code$1.callValidateCode=code$1.schemaProperties=code$1.allSchemaProperties=code$1.noPropertyInData=code$1.propertyInData=code$1.isOwnProperty=code$1.hasPropFunc=code$1.reportMissingProp=code$1.checkMissingProp=code$1.checkReportMissingProp=void 0;const codegen_1$r=codegen,util_1$o=util$1,names_1$5=names$1,util_2$1=util$1;function checkReportMissingProp(a,_){const{gen:$,data:j,it:_e}=a;$.if(noPropertyInData($,j,_,_e.opts.ownProperties),()=>{a.setParams({missingProperty:(0,codegen_1$r._)`${_}`},!0),a.error()})}code$1.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen:a,data:_,it:{opts:$}},j,_e){return(0,codegen_1$r.or)(...j.map(et=>(0,codegen_1$r.and)(noPropertyInData(a,_,et,$.ownProperties),(0,codegen_1$r._)`${_e} = ${et}`)))}code$1.checkMissingProp=checkMissingProp;function reportMissingProp(a,_){a.setParams({missingProperty:_},!0),a.error()}code$1.reportMissingProp=reportMissingProp;function hasPropFunc(a){return a.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,codegen_1$r._)`Object.prototype.hasOwnProperty`})}code$1.hasPropFunc=hasPropFunc;function isOwnProperty(a,_,$){return(0,codegen_1$r._)`${hasPropFunc(a)}.call(${_}, ${$})`}code$1.isOwnProperty=isOwnProperty;function propertyInData(a,_,$,j){const _e=(0,codegen_1$r._)`${_}${(0,codegen_1$r.getProperty)($)} !== undefined`;return j?(0,codegen_1$r._)`${_e} && ${isOwnProperty(a,_,$)}`:_e}code$1.propertyInData=propertyInData;function noPropertyInData(a,_,$,j){const _e=(0,codegen_1$r._)`${_}${(0,codegen_1$r.getProperty)($)} === undefined`;return j?(0,codegen_1$r.or)(_e,(0,codegen_1$r.not)(isOwnProperty(a,_,$))):_e}code$1.noPropertyInData=noPropertyInData;function allSchemaProperties(a){return a?Object.keys(a).filter(_=>_!=="__proto__"):[]}code$1.allSchemaProperties=allSchemaProperties;function schemaProperties(a,_){return allSchemaProperties(_).filter($=>!(0,util_1$o.alwaysValidSchema)(a,_[$]))}code$1.schemaProperties=schemaProperties;function callValidateCode({schemaCode:a,data:_,it:{gen:$,topSchemaRef:j,schemaPath:_e,errorPath:et},it:tt},rt,it,ct){const dt=ct?(0,codegen_1$r._)`${a}, ${_}, ${j}${_e}`:_,mt=[[names_1$5.default.instancePath,(0,codegen_1$r.strConcat)(names_1$5.default.instancePath,et)],[names_1$5.default.parentData,tt.parentData],[names_1$5.default.parentDataProperty,tt.parentDataProperty],[names_1$5.default.rootData,names_1$5.default.rootData]];tt.opts.dynamicRef&&mt.push([names_1$5.default.dynamicAnchors,names_1$5.default.dynamicAnchors]);const vt=(0,codegen_1$r._)`${dt}, ${$.object(...mt)}`;return it!==codegen_1$r.nil?(0,codegen_1$r._)`${rt}.call(${it}, ${vt})`:(0,codegen_1$r._)`${rt}(${vt})`}code$1.callValidateCode=callValidateCode;const newRegExp=(0,codegen_1$r._)`new RegExp`;function usePattern$1({gen:a,it:{opts:_}},$){const j=_.unicodeRegExp?"u":"",{regExp:_e}=_.code,et=_e($,j);return a.scopeValue("pattern",{key:et.toString(),ref:et,code:(0,codegen_1$r._)`${_e.code==="new RegExp"?newRegExp:(0,util_2$1.useFunc)(a,_e)}(${$}, ${j})`})}code$1.usePattern=usePattern$1;function validateArray(a){const{gen:_,data:$,keyword:j,it:_e}=a,et=_.name("valid");if(_e.allErrors){const rt=_.let("valid",!0);return tt(()=>_.assign(rt,!1)),rt}return _.var(et,!0),tt(()=>_.break()),et;function tt(rt){const it=_.const("len",(0,codegen_1$r._)`${$}.length`);_.forRange("i",0,it,ct=>{a.subschema({keyword:j,dataProp:ct,dataPropType:util_1$o.Type.Num},et),_.if((0,codegen_1$r.not)(et),rt)})}}code$1.validateArray=validateArray;function validateUnion(a){const{gen:_,schema:$,keyword:j,it:_e}=a;if(!Array.isArray($))throw new Error("ajv implementation error");if($.some(it=>(0,util_1$o.alwaysValidSchema)(_e,it))&&!_e.opts.unevaluated)return;const tt=_.let("valid",!1),rt=_.name("_valid");_.block(()=>$.forEach((it,ct)=>{const dt=a.subschema({keyword:j,schemaProp:ct,compositeRule:!0},rt);_.assign(tt,(0,codegen_1$r._)`${tt} || ${rt}`),a.mergeValidEvaluated(dt,rt)||_.if((0,codegen_1$r.not)(tt))})),a.result(tt,()=>a.reset(),()=>a.error(!0))}code$1.validateUnion=validateUnion;Object.defineProperty(keyword,"__esModule",{value:!0});keyword.validateKeywordUsage=keyword.validSchemaType=keyword.funcKeywordCode=keyword.macroKeywordCode=void 0;const codegen_1$q=codegen,names_1$4=names$1,code_1$9=code$1,errors_1$1=errors;function macroKeywordCode(a,_){const{gen:$,keyword:j,schema:_e,parentSchema:et,it:tt}=a,rt=_.macro.call(tt.self,_e,et,tt),it=useKeyword($,j,rt);tt.opts.validateSchema!==!1&&tt.self.validateSchema(rt,!0);const ct=$.name("valid");a.subschema({schema:rt,schemaPath:codegen_1$q.nil,errSchemaPath:`${tt.errSchemaPath}/${j}`,topSchemaRef:it,compositeRule:!0},ct),a.pass(ct,()=>a.error(!0))}keyword.macroKeywordCode=macroKeywordCode;function funcKeywordCode(a,_){var $;const{gen:j,keyword:_e,schema:et,parentSchema:tt,$data:rt,it}=a;checkAsyncKeyword(it,_);const ct=!rt&&_.compile?_.compile.call(it.self,et,tt,it):_.validate,dt=useKeyword(j,_e,ct),mt=j.let("valid");a.block$data(mt,vt),a.ok(($=_.valid)!==null&&$!==void 0?$:mt);function vt(){if(_.errors===!1)bt(),_.modifying&&modifyData(a),Et(()=>a.error());else{const $t=_.async?wt():xt();_.modifying&&modifyData(a),Et(()=>addErrs(a,$t))}}function wt(){const $t=j.let("ruleErrs",null);return j.try(()=>bt((0,codegen_1$q._)`await `),At=>j.assign(mt,!1).if((0,codegen_1$q._)`${At} instanceof ${it.ValidationError}`,()=>j.assign($t,(0,codegen_1$q._)`${At}.errors`),()=>j.throw(At))),$t}function xt(){const $t=(0,codegen_1$q._)`${dt}.errors`;return j.assign($t,null),bt(codegen_1$q.nil),$t}function bt($t=_.async?(0,codegen_1$q._)`await `:codegen_1$q.nil){const At=it.opts.passContext?names_1$4.default.this:names_1$4.default.self,Rt=!("compile"in _&&!rt||_.schema===!1);j.assign(mt,(0,codegen_1$q._)`${$t}${(0,code_1$9.callValidateCode)(a,dt,At,Rt)}`,_.modifying)}function Et($t){var At;j.if((0,codegen_1$q.not)((At=_.valid)!==null&&At!==void 0?At:mt),$t)}}keyword.funcKeywordCode=funcKeywordCode;function modifyData(a){const{gen:_,data:$,it:j}=a;_.if(j.parentData,()=>_.assign($,(0,codegen_1$q._)`${j.parentData}[${j.parentDataProperty}]`))}function addErrs(a,_){const{gen:$}=a;$.if((0,codegen_1$q._)`Array.isArray(${_})`,()=>{$.assign(names_1$4.default.vErrors,(0,codegen_1$q._)`${names_1$4.default.vErrors} === null ? ${_} : ${names_1$4.default.vErrors}.concat(${_})`).assign(names_1$4.default.errors,(0,codegen_1$q._)`${names_1$4.default.vErrors}.length`),(0,errors_1$1.extendErrors)(a)},()=>a.error())}function checkAsyncKeyword({schemaEnv:a},_){if(_.async&&!a.$async)throw new Error("async keyword in sync schema")}function useKeyword(a,_,$){if($===void 0)throw new Error(`keyword "${_}" failed to compile`);return a.scopeValue("keyword",typeof $=="function"?{ref:$}:{ref:$,code:(0,codegen_1$q.stringify)($)})}function validSchemaType(a,_,$=!1){return!_.length||_.some(j=>j==="array"?Array.isArray(a):j==="object"?a&&typeof a=="object"&&!Array.isArray(a):typeof a==j||$&&typeof a>"u")}keyword.validSchemaType=validSchemaType;function validateKeywordUsage({schema:a,opts:_,self:$,errSchemaPath:j},_e,et){if(Array.isArray(_e.keyword)?!_e.keyword.includes(et):_e.keyword!==et)throw new Error("ajv implementation error");const tt=_e.dependencies;if(tt!=null&&tt.some(rt=>!Object.prototype.hasOwnProperty.call(a,rt)))throw new Error(`parent schema must have dependencies of ${et}: ${tt.join(",")}`);if(_e.validateSchema&&!_e.validateSchema(a[et])){const it=`keyword "${et}" value is invalid at path "${j}": `+$.errorsText(_e.validateSchema.errors);if(_.validateSchema==="log")$.logger.error(it);else throw new Error(it)}}keyword.validateKeywordUsage=validateKeywordUsage;var subschema={};Object.defineProperty(subschema,"__esModule",{value:!0});subschema.extendSubschemaMode=subschema.extendSubschemaData=subschema.getSubschema=void 0;const codegen_1$p=codegen,util_1$n=util$1;function getSubschema(a,{keyword:_,schemaProp:$,schema:j,schemaPath:_e,errSchemaPath:et,topSchemaRef:tt}){if(_!==void 0&&j!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(_!==void 0){const rt=a.schema[_];return $===void 0?{schema:rt,schemaPath:(0,codegen_1$p._)`${a.schemaPath}${(0,codegen_1$p.getProperty)(_)}`,errSchemaPath:`${a.errSchemaPath}/${_}`}:{schema:rt[$],schemaPath:(0,codegen_1$p._)`${a.schemaPath}${(0,codegen_1$p.getProperty)(_)}${(0,codegen_1$p.getProperty)($)}`,errSchemaPath:`${a.errSchemaPath}/${_}/${(0,util_1$n.escapeFragment)($)}`}}if(j!==void 0){if(_e===void 0||et===void 0||tt===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:j,schemaPath:_e,topSchemaRef:tt,errSchemaPath:et}}throw new Error('either "keyword" or "schema" must be passed')}subschema.getSubschema=getSubschema;function extendSubschemaData(a,_,{dataProp:$,dataPropType:j,data:_e,dataTypes:et,propertyName:tt}){if(_e!==void 0&&$!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:rt}=_;if($!==void 0){const{errorPath:ct,dataPathArr:dt,opts:mt}=_,vt=rt.let("data",(0,codegen_1$p._)`${_.data}${(0,codegen_1$p.getProperty)($)}`,!0);it(vt),a.errorPath=(0,codegen_1$p.str)`${ct}${(0,util_1$n.getErrorPath)($,j,mt.jsPropertySyntax)}`,a.parentDataProperty=(0,codegen_1$p._)`${$}`,a.dataPathArr=[...dt,a.parentDataProperty]}if(_e!==void 0){const ct=_e instanceof codegen_1$p.Name?_e:rt.let("data",_e,!0);it(ct),tt!==void 0&&(a.propertyName=tt)}et&&(a.dataTypes=et);function it(ct){a.data=ct,a.dataLevel=_.dataLevel+1,a.dataTypes=[],_.definedProperties=new Set,a.parentData=_.data,a.dataNames=[..._.dataNames,ct]}}subschema.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(a,{jtdDiscriminator:_,jtdMetadata:$,compositeRule:j,createErrors:_e,allErrors:et}){j!==void 0&&(a.compositeRule=j),_e!==void 0&&(a.createErrors=_e),et!==void 0&&(a.allErrors=et),a.jtdDiscriminator=_,a.jtdMetadata=$}subschema.extendSubschemaMode=extendSubschemaMode;var resolve$1={},fastDeepEqual=function a(_,$){if(_===$)return!0;if(_&&$&&typeof _=="object"&&typeof $=="object"){if(_.constructor!==$.constructor)return!1;var j,_e,et;if(Array.isArray(_)){if(j=_.length,j!=$.length)return!1;for(_e=j;_e--!==0;)if(!a(_[_e],$[_e]))return!1;return!0}if(_.constructor===RegExp)return _.source===$.source&&_.flags===$.flags;if(_.valueOf!==Object.prototype.valueOf)return _.valueOf()===$.valueOf();if(_.toString!==Object.prototype.toString)return _.toString()===$.toString();if(et=Object.keys(_),j=et.length,j!==Object.keys($).length)return!1;for(_e=j;_e--!==0;)if(!Object.prototype.hasOwnProperty.call($,et[_e]))return!1;for(_e=j;_e--!==0;){var tt=et[_e];if(!a(_[tt],$[tt]))return!1}return!0}return _!==_&&$!==$},jsonSchemaTraverse={exports:{}},traverse$1=jsonSchemaTraverse.exports=function(a,_,$){typeof _=="function"&&($=_,_={}),$=_.cb||$;var j=typeof $=="function"?$:$.pre||function(){},_e=$.post||function(){};_traverse(_,j,_e,a,"",a)};traverse$1.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};traverse$1.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};traverse$1.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};traverse$1.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function _traverse(a,_,$,j,_e,et,tt,rt,it,ct){if(j&&typeof j=="object"&&!Array.isArray(j)){_(j,_e,et,tt,rt,it,ct);for(var dt in j){var mt=j[dt];if(Array.isArray(mt)){if(dt in traverse$1.arrayKeywords)for(var vt=0;vt<mt.length;vt++)_traverse(a,_,$,mt[vt],_e+"/"+dt+"/"+vt,et,_e,dt,j,vt)}else if(dt in traverse$1.propsKeywords){if(mt&&typeof mt=="object")for(var wt in mt)_traverse(a,_,$,mt[wt],_e+"/"+dt+"/"+escapeJsonPtr(wt),et,_e,dt,j,wt)}else(dt in traverse$1.keywords||a.allKeys&&!(dt in traverse$1.skipKeywords))&&_traverse(a,_,$,mt,_e+"/"+dt,et,_e,dt,j)}$(j,_e,et,tt,rt,it,ct)}}function escapeJsonPtr(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}var jsonSchemaTraverseExports=jsonSchemaTraverse.exports;Object.defineProperty(resolve$1,"__esModule",{value:!0});resolve$1.getSchemaRefs=resolve$1.resolveUrl=resolve$1.normalizeId=resolve$1._getFullPath=resolve$1.getFullPath=resolve$1.inlineRef=void 0;const util_1$m=util$1,equal$3=fastDeepEqual,traverse=jsonSchemaTraverseExports,SIMPLE_INLINED=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(a,_=!0){return typeof a=="boolean"?!0:_===!0?!hasRef(a):_?countKeys(a)<=_:!1}resolve$1.inlineRef=inlineRef;const REF_KEYWORDS=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(a){for(const _ in a){if(REF_KEYWORDS.has(_))return!0;const $=a[_];if(Array.isArray($)&&$.some(hasRef)||typeof $=="object"&&hasRef($))return!0}return!1}function countKeys(a){let _=0;for(const $ in a){if($==="$ref")return 1/0;if(_++,!SIMPLE_INLINED.has($)&&(typeof a[$]=="object"&&(0,util_1$m.eachItem)(a[$],j=>_+=countKeys(j)),_===1/0))return 1/0}return _}function getFullPath(a,_="",$){$!==!1&&(_=normalizeId(_));const j=a.parse(_);return _getFullPath(a,j)}resolve$1.getFullPath=getFullPath;function _getFullPath(a,_){return a.serialize(_).split("#")[0]+"#"}resolve$1._getFullPath=_getFullPath;const TRAILING_SLASH_HASH=/#\/?$/;function normalizeId(a){return a?a.replace(TRAILING_SLASH_HASH,""):""}resolve$1.normalizeId=normalizeId;function resolveUrl(a,_,$){return $=normalizeId($),a.resolve(_,$)}resolve$1.resolveUrl=resolveUrl;const ANCHOR=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(a,_){if(typeof a=="boolean")return{};const{schemaId:$,uriResolver:j}=this.opts,_e=normalizeId(a[$]||_),et={"":_e},tt=getFullPath(j,_e,!1),rt={},it=new Set;return traverse(a,{allKeys:!0},(mt,vt,wt,xt)=>{if(xt===void 0)return;const bt=tt+vt;let Et=et[xt];typeof mt[$]=="string"&&(Et=$t.call(this,mt[$])),At.call(this,mt.$anchor),At.call(this,mt.$dynamicAnchor),et[vt]=Et;function $t(Rt){const Pt=this.opts.uriResolver.resolve;if(Rt=normalizeId(Et?Pt(Et,Rt):Rt),it.has(Rt))throw dt(Rt);it.add(Rt);let Ct=this.refs[Rt];return typeof Ct=="string"&&(Ct=this.refs[Ct]),typeof Ct=="object"?ct(mt,Ct.schema,Rt):Rt!==normalizeId(bt)&&(Rt[0]==="#"?(ct(mt,rt[Rt],Rt),rt[Rt]=mt):this.refs[Rt]=bt),Rt}function At(Rt){if(typeof Rt=="string"){if(!ANCHOR.test(Rt))throw new Error(`invalid anchor "${Rt}"`);$t.call(this,`#${Rt}`)}}}),rt;function ct(mt,vt,wt){if(vt!==void 0&&!equal$3(mt,vt))throw dt(wt)}function dt(mt){return new Error(`reference "${mt}" resolves to more than one schema`)}}resolve$1.getSchemaRefs=getSchemaRefs;Object.defineProperty(validate,"__esModule",{value:!0});validate.getData=validate.KeywordCxt=validate.validateFunctionCode=void 0;const boolSchema_1=boolSchema,dataType_1$1=dataType,applicability_1=applicability,dataType_2=dataType,defaults_1=defaults,keyword_1=keyword,subschema_1=subschema,codegen_1$o=codegen,names_1$3=names$1,resolve_1$2=resolve$1,util_1$l=util$1,errors_1=errors;function validateFunctionCode(a){if(isSchemaObj(a)&&(checkKeywords(a),schemaCxtHasRules(a))){topSchemaObjCode(a);return}validateFunction(a,()=>(0,boolSchema_1.topBoolOrEmptySchema)(a))}validate.validateFunctionCode=validateFunctionCode;function validateFunction({gen:a,validateName:_,schema:$,schemaEnv:j,opts:_e},et){_e.code.es5?a.func(_,(0,codegen_1$o._)`${names_1$3.default.data}, ${names_1$3.default.valCxt}`,j.$async,()=>{a.code((0,codegen_1$o._)`"use strict"; ${funcSourceUrl($,_e)}`),destructureValCxtES5(a,_e),a.code(et)}):a.func(_,(0,codegen_1$o._)`${names_1$3.default.data}, ${destructureValCxt(_e)}`,j.$async,()=>a.code(funcSourceUrl($,_e)).code(et))}function destructureValCxt(a){return(0,codegen_1$o._)`{${names_1$3.default.instancePath}="", ${names_1$3.default.parentData}, ${names_1$3.default.parentDataProperty}, ${names_1$3.default.rootData}=${names_1$3.default.data}${a.dynamicRef?(0,codegen_1$o._)`, ${names_1$3.default.dynamicAnchors}={}`:codegen_1$o.nil}}={}`}function destructureValCxtES5(a,_){a.if(names_1$3.default.valCxt,()=>{a.var(names_1$3.default.instancePath,(0,codegen_1$o._)`${names_1$3.default.valCxt}.${names_1$3.default.instancePath}`),a.var(names_1$3.default.parentData,(0,codegen_1$o._)`${names_1$3.default.valCxt}.${names_1$3.default.parentData}`),a.var(names_1$3.default.parentDataProperty,(0,codegen_1$o._)`${names_1$3.default.valCxt}.${names_1$3.default.parentDataProperty}`),a.var(names_1$3.default.rootData,(0,codegen_1$o._)`${names_1$3.default.valCxt}.${names_1$3.default.rootData}`),_.dynamicRef&&a.var(names_1$3.default.dynamicAnchors,(0,codegen_1$o._)`${names_1$3.default.valCxt}.${names_1$3.default.dynamicAnchors}`)},()=>{a.var(names_1$3.default.instancePath,(0,codegen_1$o._)`""`),a.var(names_1$3.default.parentData,(0,codegen_1$o._)`undefined`),a.var(names_1$3.default.parentDataProperty,(0,codegen_1$o._)`undefined`),a.var(names_1$3.default.rootData,names_1$3.default.data),_.dynamicRef&&a.var(names_1$3.default.dynamicAnchors,(0,codegen_1$o._)`{}`)})}function topSchemaObjCode(a){const{schema:_,opts:$,gen:j}=a;validateFunction(a,()=>{$.$comment&&_.$comment&&commentKeyword(a),checkNoDefault(a),j.let(names_1$3.default.vErrors,null),j.let(names_1$3.default.errors,0),$.unevaluated&&resetEvaluated(a),typeAndKeywords(a),returnResults(a)})}function resetEvaluated(a){const{gen:_,validateName:$}=a;a.evaluated=_.const("evaluated",(0,codegen_1$o._)`${$}.evaluated`),_.if((0,codegen_1$o._)`${a.evaluated}.dynamicProps`,()=>_.assign((0,codegen_1$o._)`${a.evaluated}.props`,(0,codegen_1$o._)`undefined`)),_.if((0,codegen_1$o._)`${a.evaluated}.dynamicItems`,()=>_.assign((0,codegen_1$o._)`${a.evaluated}.items`,(0,codegen_1$o._)`undefined`))}function funcSourceUrl(a,_){const $=typeof a=="object"&&a[_.schemaId];return $&&(_.code.source||_.code.process)?(0,codegen_1$o._)`/*# sourceURL=${$} */`:codegen_1$o.nil}function subschemaCode(a,_){if(isSchemaObj(a)&&(checkKeywords(a),schemaCxtHasRules(a))){subSchemaObjCode(a,_);return}(0,boolSchema_1.boolOrEmptySchema)(a,_)}function schemaCxtHasRules({schema:a,self:_}){if(typeof a=="boolean")return!a;for(const $ in a)if(_.RULES.all[$])return!0;return!1}function isSchemaObj(a){return typeof a.schema!="boolean"}function subSchemaObjCode(a,_){const{schema:$,gen:j,opts:_e}=a;_e.$comment&&$.$comment&&commentKeyword(a),updateContext(a),checkAsyncSchema(a);const et=j.const("_errs",names_1$3.default.errors);typeAndKeywords(a,et),j.var(_,(0,codegen_1$o._)`${et} === ${names_1$3.default.errors}`)}function checkKeywords(a){(0,util_1$l.checkUnknownRules)(a),checkRefsAndKeywords(a)}function typeAndKeywords(a,_){if(a.opts.jtd)return schemaKeywords(a,[],!1,_);const $=(0,dataType_1$1.getSchemaTypes)(a.schema),j=(0,dataType_1$1.coerceAndCheckDataType)(a,$);schemaKeywords(a,$,!j,_)}function checkRefsAndKeywords(a){const{schema:_,errSchemaPath:$,opts:j,self:_e}=a;_.$ref&&j.ignoreKeywordsWithRef&&(0,util_1$l.schemaHasRulesButRef)(_,_e.RULES)&&_e.logger.warn(`$ref: keywords ignored in schema at path "${$}"`)}function checkNoDefault(a){const{schema:_,opts:$}=a;_.default!==void 0&&$.useDefaults&&$.strictSchema&&(0,util_1$l.checkStrictMode)(a,"default is ignored in the schema root")}function updateContext(a){const _=a.schema[a.opts.schemaId];_&&(a.baseId=(0,resolve_1$2.resolveUrl)(a.opts.uriResolver,a.baseId,_))}function checkAsyncSchema(a){if(a.schema.$async&&!a.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:a,schemaEnv:_,schema:$,errSchemaPath:j,opts:_e}){const et=$.$comment;if(_e.$comment===!0)a.code((0,codegen_1$o._)`${names_1$3.default.self}.logger.log(${et})`);else if(typeof _e.$comment=="function"){const tt=(0,codegen_1$o.str)`${j}/$comment`,rt=a.scopeValue("root",{ref:_.root});a.code((0,codegen_1$o._)`${names_1$3.default.self}.opts.$comment(${et}, ${tt}, ${rt}.schema)`)}}function returnResults(a){const{gen:_,schemaEnv:$,validateName:j,ValidationError:_e,opts:et}=a;$.$async?_.if((0,codegen_1$o._)`${names_1$3.default.errors} === 0`,()=>_.return(names_1$3.default.data),()=>_.throw((0,codegen_1$o._)`new ${_e}(${names_1$3.default.vErrors})`)):(_.assign((0,codegen_1$o._)`${j}.errors`,names_1$3.default.vErrors),et.unevaluated&&assignEvaluated(a),_.return((0,codegen_1$o._)`${names_1$3.default.errors} === 0`))}function assignEvaluated({gen:a,evaluated:_,props:$,items:j}){$ instanceof codegen_1$o.Name&&a.assign((0,codegen_1$o._)`${_}.props`,$),j instanceof codegen_1$o.Name&&a.assign((0,codegen_1$o._)`${_}.items`,j)}function schemaKeywords(a,_,$,j){const{gen:_e,schema:et,data:tt,allErrors:rt,opts:it,self:ct}=a,{RULES:dt}=ct;if(et.$ref&&(it.ignoreKeywordsWithRef||!(0,util_1$l.schemaHasRulesButRef)(et,dt))){_e.block(()=>keywordCode(a,"$ref",dt.all.$ref.definition));return}it.jtd||checkStrictTypes(a,_),_e.block(()=>{for(const vt of dt.rules)mt(vt);mt(dt.post)});function mt(vt){(0,applicability_1.shouldUseGroup)(et,vt)&&(vt.type?(_e.if((0,dataType_2.checkDataType)(vt.type,tt,it.strictNumbers)),iterateKeywords(a,vt),_.length===1&&_[0]===vt.type&&$&&(_e.else(),(0,dataType_2.reportTypeError)(a)),_e.endIf()):iterateKeywords(a,vt),rt||_e.if((0,codegen_1$o._)`${names_1$3.default.errors} === ${j||0}`))}}function iterateKeywords(a,_){const{gen:$,schema:j,opts:{useDefaults:_e}}=a;_e&&(0,defaults_1.assignDefaults)(a,_.type),$.block(()=>{for(const et of _.rules)(0,applicability_1.shouldUseRule)(j,et)&&keywordCode(a,et.keyword,et.definition,_.type)})}function checkStrictTypes(a,_){a.schemaEnv.meta||!a.opts.strictTypes||(checkContextTypes(a,_),a.opts.allowUnionTypes||checkMultipleTypes(a,_),checkKeywordTypes(a,a.dataTypes))}function checkContextTypes(a,_){if(_.length){if(!a.dataTypes.length){a.dataTypes=_;return}_.forEach($=>{includesType(a.dataTypes,$)||strictTypesError(a,`type "${$}" not allowed by context "${a.dataTypes.join(",")}"`)}),narrowSchemaTypes(a,_)}}function checkMultipleTypes(a,_){_.length>1&&!(_.length===2&&_.includes("null"))&&strictTypesError(a,"use allowUnionTypes to allow union type keyword")}function checkKeywordTypes(a,_){const $=a.self.RULES.all;for(const j in $){const _e=$[j];if(typeof _e=="object"&&(0,applicability_1.shouldUseRule)(a.schema,_e)){const{type:et}=_e.definition;et.length&&!et.some(tt=>hasApplicableType(_,tt))&&strictTypesError(a,`missing type "${et.join(",")}" for keyword "${j}"`)}}}function hasApplicableType(a,_){return a.includes(_)||_==="number"&&a.includes("integer")}function includesType(a,_){return a.includes(_)||_==="integer"&&a.includes("number")}function narrowSchemaTypes(a,_){const $=[];for(const j of a.dataTypes)includesType(_,j)?$.push(j):_.includes("integer")&&j==="number"&&$.push("integer");a.dataTypes=$}function strictTypesError(a,_){const $=a.schemaEnv.baseId+a.errSchemaPath;_+=` at "${$}" (strictTypes)`,(0,util_1$l.checkStrictMode)(a,_,a.opts.strictTypes)}class KeywordCxt{constructor(_,$,j){if((0,keyword_1.validateKeywordUsage)(_,$,j),this.gen=_.gen,this.allErrors=_.allErrors,this.keyword=j,this.data=_.data,this.schema=_.schema[j],this.$data=$.$data&&_.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,util_1$l.schemaRefOrVal)(_,this.schema,j,this.$data),this.schemaType=$.schemaType,this.parentSchema=_.schema,this.params={},this.it=_,this.def=$,this.$data)this.schemaCode=_.gen.const("vSchema",getData(this.$data,_));else if(this.schemaCode=this.schemaValue,!(0,keyword_1.validSchemaType)(this.schema,$.schemaType,$.allowUndefined))throw new Error(`${j} value must be ${JSON.stringify($.schemaType)}`);("code"in $?$.trackErrors:$.errors!==!1)&&(this.errsCount=_.gen.const("_errs",names_1$3.default.errors))}result(_,$,j){this.failResult((0,codegen_1$o.not)(_),$,j)}failResult(_,$,j){this.gen.if(_),j?j():this.error(),$?(this.gen.else(),$(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(_,$){this.failResult((0,codegen_1$o.not)(_),void 0,$)}fail(_){if(_===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(_),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(_){if(!this.$data)return this.fail(_);const{schemaCode:$}=this;this.fail((0,codegen_1$o._)`${$} !== undefined && (${(0,codegen_1$o.or)(this.invalid$data(),_)})`)}error(_,$,j){if($){this.setParams($),this._error(_,j),this.setParams({});return}this._error(_,j)}_error(_,$){(_?errors_1.reportExtraError:errors_1.reportError)(this,this.def.error,$)}$dataError(){(0,errors_1.reportError)(this,this.def.$dataError||errors_1.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,errors_1.resetErrorsCount)(this.gen,this.errsCount)}ok(_){this.allErrors||this.gen.if(_)}setParams(_,$){$?Object.assign(this.params,_):this.params=_}block$data(_,$,j=codegen_1$o.nil){this.gen.block(()=>{this.check$data(_,j),$()})}check$data(_=codegen_1$o.nil,$=codegen_1$o.nil){if(!this.$data)return;const{gen:j,schemaCode:_e,schemaType:et,def:tt}=this;j.if((0,codegen_1$o.or)((0,codegen_1$o._)`${_e} === undefined`,$)),_!==codegen_1$o.nil&&j.assign(_,!0),(et.length||tt.validateSchema)&&(j.elseIf(this.invalid$data()),this.$dataError(),_!==codegen_1$o.nil&&j.assign(_,!1)),j.else()}invalid$data(){const{gen:_,schemaCode:$,schemaType:j,def:_e,it:et}=this;return(0,codegen_1$o.or)(tt(),rt());function tt(){if(j.length){if(!($ instanceof codegen_1$o.Name))throw new Error("ajv implementation error");const it=Array.isArray(j)?j:[j];return(0,codegen_1$o._)`${(0,dataType_2.checkDataTypes)(it,$,et.opts.strictNumbers,dataType_2.DataType.Wrong)}`}return codegen_1$o.nil}function rt(){if(_e.validateSchema){const it=_.scopeValue("validate$data",{ref:_e.validateSchema});return(0,codegen_1$o._)`!${it}(${$})`}return codegen_1$o.nil}}subschema(_,$){const j=(0,subschema_1.getSubschema)(this.it,_);(0,subschema_1.extendSubschemaData)(j,this.it,_),(0,subschema_1.extendSubschemaMode)(j,_);const _e={...this.it,...j,items:void 0,props:void 0};return subschemaCode(_e,$),_e}mergeEvaluated(_,$){const{it:j,gen:_e}=this;j.opts.unevaluated&&(j.props!==!0&&_.props!==void 0&&(j.props=util_1$l.mergeEvaluated.props(_e,_.props,j.props,$)),j.items!==!0&&_.items!==void 0&&(j.items=util_1$l.mergeEvaluated.items(_e,_.items,j.items,$)))}mergeValidEvaluated(_,$){const{it:j,gen:_e}=this;if(j.opts.unevaluated&&(j.props!==!0||j.items!==!0))return _e.if($,()=>this.mergeEvaluated(_,codegen_1$o.Name)),!0}}validate.KeywordCxt=KeywordCxt;function keywordCode(a,_,$,j){const _e=new KeywordCxt(a,$,_);"code"in $?$.code(_e,j):_e.$data&&$.validate?(0,keyword_1.funcKeywordCode)(_e,$):"macro"in $?(0,keyword_1.macroKeywordCode)(_e,$):($.compile||$.validate)&&(0,keyword_1.funcKeywordCode)(_e,$)}const JSON_POINTER=/^\/(?:[^~]|~0|~1)*$/,RELATIVE_JSON_POINTER=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(a,{dataLevel:_,dataNames:$,dataPathArr:j}){let _e,et;if(a==="")return names_1$3.default.rootData;if(a[0]==="/"){if(!JSON_POINTER.test(a))throw new Error(`Invalid JSON-pointer: ${a}`);_e=a,et=names_1$3.default.rootData}else{const ct=RELATIVE_JSON_POINTER.exec(a);if(!ct)throw new Error(`Invalid JSON-pointer: ${a}`);const dt=+ct[1];if(_e=ct[2],_e==="#"){if(dt>=_)throw new Error(it("property/index",dt));return j[_-dt]}if(dt>_)throw new Error(it("data",dt));if(et=$[_-dt],!_e)return et}let tt=et;const rt=_e.split("/");for(const ct of rt)ct&&(et=(0,codegen_1$o._)`${et}${(0,codegen_1$o.getProperty)((0,util_1$l.unescapeJsonPointer)(ct))}`,tt=(0,codegen_1$o._)`${tt} && ${et}`);return tt;function it(ct,dt){return`Cannot access ${ct} ${dt} levels up, current level is ${_}`}}validate.getData=getData;var validation_error={};Object.defineProperty(validation_error,"__esModule",{value:!0});class ValidationError extends Error{constructor(_){super("validation failed"),this.errors=_,this.ajv=this.validation=!0}}validation_error.default=ValidationError;var ref_error={};Object.defineProperty(ref_error,"__esModule",{value:!0});const resolve_1$1=resolve$1;class MissingRefError extends Error{constructor(_,$,j,_e){super(_e||`can't resolve reference ${j} from id ${$}`),this.missingRef=(0,resolve_1$1.resolveUrl)(_,$,j),this.missingSchema=(0,resolve_1$1.normalizeId)((0,resolve_1$1.getFullPath)(_,this.missingRef))}}ref_error.default=MissingRefError;var compile={};Object.defineProperty(compile,"__esModule",{value:!0});compile.resolveSchema=compile.getCompilingSchema=compile.resolveRef=compile.compileSchema=compile.SchemaEnv=void 0;const codegen_1$n=codegen,validation_error_1=validation_error,names_1$2=names$1,resolve_1=resolve$1,util_1$k=util$1,validate_1$1=validate;class SchemaEnv{constructor(_){var $;this.refs={},this.dynamicAnchors={};let j;typeof _.schema=="object"&&(j=_.schema),this.schema=_.schema,this.schemaId=_.schemaId,this.root=_.root||this,this.baseId=($=_.baseId)!==null&&$!==void 0?$:(0,resolve_1.normalizeId)(j==null?void 0:j[_.schemaId||"$id"]),this.schemaPath=_.schemaPath,this.localRefs=_.localRefs,this.meta=_.meta,this.$async=j==null?void 0:j.$async,this.refs={}}}compile.SchemaEnv=SchemaEnv;function compileSchema(a){const _=getCompilingSchema.call(this,a);if(_)return _;const $=(0,resolve_1.getFullPath)(this.opts.uriResolver,a.root.baseId),{es5:j,lines:_e}=this.opts.code,{ownProperties:et}=this.opts,tt=new codegen_1$n.CodeGen(this.scope,{es5:j,lines:_e,ownProperties:et});let rt;a.$async&&(rt=tt.scopeValue("Error",{ref:validation_error_1.default,code:(0,codegen_1$n._)`require("ajv/dist/runtime/validation_error").default`}));const it=tt.scopeName("validate");a.validateName=it;const ct={gen:tt,allErrors:this.opts.allErrors,data:names_1$2.default.data,parentData:names_1$2.default.parentData,parentDataProperty:names_1$2.default.parentDataProperty,dataNames:[names_1$2.default.data],dataPathArr:[codegen_1$n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:tt.scopeValue("schema",this.opts.code.source===!0?{ref:a.schema,code:(0,codegen_1$n.stringify)(a.schema)}:{ref:a.schema}),validateName:it,ValidationError:rt,schema:a.schema,schemaEnv:a,rootId:$,baseId:a.baseId||$,schemaPath:codegen_1$n.nil,errSchemaPath:a.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,codegen_1$n._)`""`,opts:this.opts,self:this};let dt;try{this._compilations.add(a),(0,validate_1$1.validateFunctionCode)(ct),tt.optimize(this.opts.code.optimize);const mt=tt.toString();dt=`${tt.scopeRefs(names_1$2.default.scope)}return ${mt}`,this.opts.code.process&&(dt=this.opts.code.process(dt,a));const wt=new Function(`${names_1$2.default.self}`,`${names_1$2.default.scope}`,dt)(this,this.scope.get());if(this.scope.value(it,{ref:wt}),wt.errors=null,wt.schema=a.schema,wt.schemaEnv=a,a.$async&&(wt.$async=!0),this.opts.code.source===!0&&(wt.source={validateName:it,validateCode:mt,scopeValues:tt._values}),this.opts.unevaluated){const{props:xt,items:bt}=ct;wt.evaluated={props:xt instanceof codegen_1$n.Name?void 0:xt,items:bt instanceof codegen_1$n.Name?void 0:bt,dynamicProps:xt instanceof codegen_1$n.Name,dynamicItems:bt instanceof codegen_1$n.Name},wt.source&&(wt.source.evaluated=(0,codegen_1$n.stringify)(wt.evaluated))}return a.validate=wt,a}catch(mt){throw delete a.validate,delete a.validateName,dt&&this.logger.error("Error compiling schema, function code:",dt),mt}finally{this._compilations.delete(a)}}compile.compileSchema=compileSchema;function resolveRef(a,_,$){var j;$=(0,resolve_1.resolveUrl)(this.opts.uriResolver,_,$);const _e=a.refs[$];if(_e)return _e;let et=resolve.call(this,a,$);if(et===void 0){const tt=(j=a.localRefs)===null||j===void 0?void 0:j[$],{schemaId:rt}=this.opts;tt&&(et=new SchemaEnv({schema:tt,schemaId:rt,root:a,baseId:_}))}if(et!==void 0)return a.refs[$]=inlineOrCompile.call(this,et)}compile.resolveRef=resolveRef;function inlineOrCompile(a){return(0,resolve_1.inlineRef)(a.schema,this.opts.inlineRefs)?a.schema:a.validate?a:compileSchema.call(this,a)}function getCompilingSchema(a){for(const _ of this._compilations)if(sameSchemaEnv(_,a))return _}compile.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(a,_){return a.schema===_.schema&&a.root===_.root&&a.baseId===_.baseId}function resolve(a,_){let $;for(;typeof($=this.refs[_])=="string";)_=$;return $||this.schemas[_]||resolveSchema.call(this,a,_)}function resolveSchema(a,_){const $=this.opts.uriResolver.parse(_),j=(0,resolve_1._getFullPath)(this.opts.uriResolver,$);let _e=(0,resolve_1.getFullPath)(this.opts.uriResolver,a.baseId,void 0);if(Object.keys(a.schema).length>0&&j===_e)return getJsonPointer.call(this,$,a);const et=(0,resolve_1.normalizeId)(j),tt=this.refs[et]||this.schemas[et];if(typeof tt=="string"){const rt=resolveSchema.call(this,a,tt);return typeof(rt==null?void 0:rt.schema)!="object"?void 0:getJsonPointer.call(this,$,rt)}if(typeof(tt==null?void 0:tt.schema)=="object"){if(tt.validate||compileSchema.call(this,tt),et===(0,resolve_1.normalizeId)(_)){const{schema:rt}=tt,{schemaId:it}=this.opts,ct=rt[it];return ct&&(_e=(0,resolve_1.resolveUrl)(this.opts.uriResolver,_e,ct)),new SchemaEnv({schema:rt,schemaId:it,root:a,baseId:_e})}return getJsonPointer.call(this,$,tt)}}compile.resolveSchema=resolveSchema;const PREVENT_SCOPE_CHANGE=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(a,{baseId:_,schema:$,root:j}){var _e;if(((_e=a.fragment)===null||_e===void 0?void 0:_e[0])!=="/")return;for(const rt of a.fragment.slice(1).split("/")){if(typeof $=="boolean")return;const it=$[(0,util_1$k.unescapeFragment)(rt)];if(it===void 0)return;$=it;const ct=typeof $=="object"&&$[this.opts.schemaId];!PREVENT_SCOPE_CHANGE.has(rt)&&ct&&(_=(0,resolve_1.resolveUrl)(this.opts.uriResolver,_,ct))}let et;if(typeof $!="boolean"&&$.$ref&&!(0,util_1$k.schemaHasRulesButRef)($,this.RULES)){const rt=(0,resolve_1.resolveUrl)(this.opts.uriResolver,_,$.$ref);et=resolveSchema.call(this,j,rt)}const{schemaId:tt}=this.opts;if(et=et||new SchemaEnv({schema:$,schemaId:tt,root:j,baseId:_}),et.schema!==et.root.schema)return et}const $id$1="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description$3="Meta-schema for $data reference (JSON AnySchema extension proposal)",type$3="object",required$1=["$data"],properties$2={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties$1=!1,require$$9={$id:$id$1,description:description$3,type:type$3,required:required$1,properties:properties$2,additionalProperties:additionalProperties$1};var uri$1={},uri_all={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(a,_){(function($,j){j(_)})(commonjsGlobal,function($){function j(){for(var Xt=arguments.length,Yt=Array(Xt),_r=0;_r<Xt;_r++)Yt[_r]=arguments[_r];if(Yt.length>1){Yt[0]=Yt[0].slice(0,-1);for(var cr=Yt.length-1,pr=1;pr<cr;++pr)Yt[pr]=Yt[pr].slice(1,-1);return Yt[cr]=Yt[cr].slice(1),Yt.join("")}else return Yt[0]}function _e(Xt){return"(?:"+Xt+")"}function et(Xt){return Xt===void 0?"undefined":Xt===null?"null":Object.prototype.toString.call(Xt).split(" ").pop().split("]").shift().toLowerCase()}function tt(Xt){return Xt.toUpperCase()}function rt(Xt){return Xt!=null?Xt instanceof Array?Xt:typeof Xt.length!="number"||Xt.split||Xt.setInterval||Xt.call?[Xt]:Array.prototype.slice.call(Xt):[]}function it(Xt,Yt){var _r=Xt;if(Yt)for(var cr in Yt)_r[cr]=Yt[cr];return _r}function ct(Xt){var Yt="[A-Za-z]",_r="[0-9]",cr=j(_r,"[A-Fa-f]"),pr=_e(_e("%[EFef]"+cr+"%"+cr+cr+"%"+cr+cr)+"|"+_e("%[89A-Fa-f]"+cr+"%"+cr+cr)+"|"+_e("%"+cr+cr)),un="[\\:\\/\\?\\#\\[\\]\\@]",Ir="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Wr=j(un,Ir),mn=Xt?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",vn=Xt?"[\\uE000-\\uF8FF]":"[]",En=j(Yt,_r,"[\\-\\.\\_\\~]",mn);_e(Yt+j(Yt,_r,"[\\+\\-\\.]")+"*"),_e(_e(pr+"|"+j(En,Ir,"[\\:]"))+"*");var $n=_e(_e("25[0-5]")+"|"+_e("2[0-4]"+_r)+"|"+_e("1"+_r+_r)+"|"+_e("0?[1-9]"+_r)+"|0?0?"+_r),Nn=_e($n+"\\."+$n+"\\."+$n+"\\."+$n),_n=_e(cr+"{1,4}"),kn=_e(_e(_n+"\\:"+_n)+"|"+Nn),jn=_e(_e(_n+"\\:")+"{6}"+kn),On=_e("\\:\\:"+_e(_n+"\\:")+"{5}"+kn),Vn=_e(_e(_n)+"?\\:\\:"+_e(_n+"\\:")+"{4}"+kn),Hn=_e(_e(_e(_n+"\\:")+"{0,1}"+_n)+"?\\:\\:"+_e(_n+"\\:")+"{3}"+kn),zn=_e(_e(_e(_n+"\\:")+"{0,2}"+_n)+"?\\:\\:"+_e(_n+"\\:")+"{2}"+kn),Kn=_e(_e(_e(_n+"\\:")+"{0,3}"+_n)+"?\\:\\:"+_n+"\\:"+kn),Qn=_e(_e(_e(_n+"\\:")+"{0,4}"+_n)+"?\\:\\:"+kn),Fn=_e(_e(_e(_n+"\\:")+"{0,5}"+_n)+"?\\:\\:"+_n),Gn=_e(_e(_e(_n+"\\:")+"{0,6}"+_n)+"?\\:\\:"),Wn=_e([jn,On,Vn,Hn,zn,Kn,Qn,Fn,Gn].join("|")),Yn=_e(_e(En+"|"+pr)+"+");_e("[vV]"+cr+"+\\."+j(En,Ir,"[\\:]")+"+"),_e(_e(pr+"|"+j(En,Ir))+"*");var Jn=_e(pr+"|"+j(En,Ir,"[\\:\\@]"));return _e(_e(pr+"|"+j(En,Ir,"[\\@]"))+"+"),_e(_e(Jn+"|"+j("[\\/\\?]",vn))+"*"),{NOT_SCHEME:new RegExp(j("[^]",Yt,_r,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(j("[^\\%\\:]",En,Ir),"g"),NOT_HOST:new RegExp(j("[^\\%\\[\\]\\:]",En,Ir),"g"),NOT_PATH:new RegExp(j("[^\\%\\/\\:\\@]",En,Ir),"g"),NOT_PATH_NOSCHEME:new RegExp(j("[^\\%\\/\\@]",En,Ir),"g"),NOT_QUERY:new RegExp(j("[^\\%]",En,Ir,"[\\:\\@\\/\\?]",vn),"g"),NOT_FRAGMENT:new RegExp(j("[^\\%]",En,Ir,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(j("[^]",En,Ir),"g"),UNRESERVED:new RegExp(En,"g"),OTHER_CHARS:new RegExp(j("[^\\%]",En,Wr),"g"),PCT_ENCODED:new RegExp(pr,"g"),IPV4ADDRESS:new RegExp("^("+Nn+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Wn+")"+_e(_e("\\%25|\\%(?!"+cr+"{2})")+"("+Yn+")")+"?\\]?$")}}var dt=ct(!1),mt=ct(!0),vt=function(){function Xt(Yt,_r){var cr=[],pr=!0,un=!1,Ir=void 0;try{for(var Wr=Yt[Symbol.iterator](),mn;!(pr=(mn=Wr.next()).done)&&(cr.push(mn.value),!(_r&&cr.length===_r));pr=!0);}catch(vn){un=!0,Ir=vn}finally{try{!pr&&Wr.return&&Wr.return()}finally{if(un)throw Ir}}return cr}return function(Yt,_r){if(Array.isArray(Yt))return Yt;if(Symbol.iterator in Object(Yt))return Xt(Yt,_r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),wt=function(Xt){if(Array.isArray(Xt)){for(var Yt=0,_r=Array(Xt.length);Yt<Xt.length;Yt++)_r[Yt]=Xt[Yt];return _r}else return Array.from(Xt)},xt=2147483647,bt=36,Et=1,$t=26,At=38,Rt=700,Pt=72,Ct=128,Ot="-",kt=/^xn--/,Dt=/[^\0-\x7E]/,Nt=/[\x2E\u3002\uFF0E\uFF61]/g,zt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},gt=bt-Et,nt=Math.floor,ot=String.fromCharCode;function st(Xt){throw new RangeError(zt[Xt])}function lt(Xt,Yt){for(var _r=[],cr=Xt.length;cr--;)_r[cr]=Yt(Xt[cr]);return _r}function pt(Xt,Yt){var _r=Xt.split("@"),cr="";_r.length>1&&(cr=_r[0]+"@",Xt=_r[1]),Xt=Xt.replace(Nt,".");var pr=Xt.split("."),un=lt(pr,Yt).join(".");return cr+un}function _t(Xt){for(var Yt=[],_r=0,cr=Xt.length;_r<cr;){var pr=Xt.charCodeAt(_r++);if(pr>=55296&&pr<=56319&&_r<cr){var un=Xt.charCodeAt(_r++);(un&64512)==56320?Yt.push(((pr&1023)<<10)+(un&1023)+65536):(Yt.push(pr),_r--)}else Yt.push(pr)}return Yt}var St=function(Yt){return String.fromCodePoint.apply(String,wt(Yt))},yt=function(Yt){return Yt-48<10?Yt-22:Yt-65<26?Yt-65:Yt-97<26?Yt-97:bt},at=function(Yt,_r){return Yt+22+75*(Yt<26)-((_r!=0)<<5)},ht=function(Yt,_r,cr){var pr=0;for(Yt=cr?nt(Yt/Rt):Yt>>1,Yt+=nt(Yt/_r);Yt>gt*$t>>1;pr+=bt)Yt=nt(Yt/gt);return nt(pr+(gt+1)*Yt/(Yt+At))},Mt=function(Yt){var _r=[],cr=Yt.length,pr=0,un=Ct,Ir=Pt,Wr=Yt.lastIndexOf(Ot);Wr<0&&(Wr=0);for(var mn=0;mn<Wr;++mn)Yt.charCodeAt(mn)>=128&&st("not-basic"),_r.push(Yt.charCodeAt(mn));for(var vn=Wr>0?Wr+1:0;vn<cr;){for(var En=pr,$n=1,Nn=bt;;Nn+=bt){vn>=cr&&st("invalid-input");var _n=yt(Yt.charCodeAt(vn++));(_n>=bt||_n>nt((xt-pr)/$n))&&st("overflow"),pr+=_n*$n;var kn=Nn<=Ir?Et:Nn>=Ir+$t?$t:Nn-Ir;if(_n<kn)break;var jn=bt-kn;$n>nt(xt/jn)&&st("overflow"),$n*=jn}var On=_r.length+1;Ir=ht(pr-En,On,En==0),nt(pr/On)>xt-un&&st("overflow"),un+=nt(pr/On),pr%=On,_r.splice(pr++,0,un)}return String.fromCodePoint.apply(String,_r)},Tt=function(Yt){var _r=[];Yt=_t(Yt);var cr=Yt.length,pr=Ct,un=0,Ir=Pt,Wr=!0,mn=!1,vn=void 0;try{for(var En=Yt[Symbol.iterator](),$n;!(Wr=($n=En.next()).done);Wr=!0){var Nn=$n.value;Nn<128&&_r.push(ot(Nn))}}catch(oo){mn=!0,vn=oo}finally{try{!Wr&&En.return&&En.return()}finally{if(mn)throw vn}}var _n=_r.length,kn=_n;for(_n&&_r.push(Ot);kn<cr;){var jn=xt,On=!0,Vn=!1,Hn=void 0;try{for(var zn=Yt[Symbol.iterator](),Kn;!(On=(Kn=zn.next()).done);On=!0){var Qn=Kn.value;Qn>=pr&&Qn<jn&&(jn=Qn)}}catch(oo){Vn=!0,Hn=oo}finally{try{!On&&zn.return&&zn.return()}finally{if(Vn)throw Hn}}var Fn=kn+1;jn-pr>nt((xt-un)/Fn)&&st("overflow"),un+=(jn-pr)*Fn,pr=jn;var Gn=!0,Wn=!1,Yn=void 0;try{for(var Jn=Yt[Symbol.iterator](),Vo;!(Gn=(Vo=Jn.next()).done);Gn=!0){var ss=Vo.value;if(ss<pr&&++un>xt&&st("overflow"),ss==pr){for(var Ks=un,Sn=bt;;Sn+=bt){var Mn=Sn<=Ir?Et:Sn>=Ir+$t?$t:Sn-Ir;if(Ks<Mn)break;var Pn=Ks-Mn,Dn=bt-Mn;_r.push(ot(at(Mn+Pn%Dn,0))),Ks=nt(Pn/Dn)}_r.push(ot(at(Ks,0))),Ir=ht(un,Fn,kn==_n),un=0,++kn}}}catch(oo){Wn=!0,Yn=oo}finally{try{!Gn&&Jn.return&&Jn.return()}finally{if(Wn)throw Yn}}++un,++pr}return _r.join("")},It=function(Yt){return pt(Yt,function(_r){return kt.test(_r)?Mt(_r.slice(4).toLowerCase()):_r})},Lt=function(Yt){return pt(Yt,function(_r){return Dt.test(_r)?"xn--"+Tt(_r):_r})},jt={version:"2.1.0",ucs2:{decode:_t,encode:St},decode:Mt,encode:Tt,toASCII:Lt,toUnicode:It},Gt={};function tr(Xt){var Yt=Xt.charCodeAt(0),_r=void 0;return Yt<16?_r="%0"+Yt.toString(16).toUpperCase():Yt<128?_r="%"+Yt.toString(16).toUpperCase():Yt<2048?_r="%"+(Yt>>6|192).toString(16).toUpperCase()+"%"+(Yt&63|128).toString(16).toUpperCase():_r="%"+(Yt>>12|224).toString(16).toUpperCase()+"%"+(Yt>>6&63|128).toString(16).toUpperCase()+"%"+(Yt&63|128).toString(16).toUpperCase(),_r}function er(Xt){for(var Yt="",_r=0,cr=Xt.length;_r<cr;){var pr=parseInt(Xt.substr(_r+1,2),16);if(pr<128)Yt+=String.fromCharCode(pr),_r+=3;else if(pr>=194&&pr<224){if(cr-_r>=6){var un=parseInt(Xt.substr(_r+4,2),16);Yt+=String.fromCharCode((pr&31)<<6|un&63)}else Yt+=Xt.substr(_r,6);_r+=6}else if(pr>=224){if(cr-_r>=9){var Ir=parseInt(Xt.substr(_r+4,2),16),Wr=parseInt(Xt.substr(_r+7,2),16);Yt+=String.fromCharCode((pr&15)<<12|(Ir&63)<<6|Wr&63)}else Yt+=Xt.substr(_r,9);_r+=9}else Yt+=Xt.substr(_r,3),_r+=3}return Yt}function Jt(Xt,Yt){function _r(cr){var pr=er(cr);return pr.match(Yt.UNRESERVED)?pr:cr}return Xt.scheme&&(Xt.scheme=String(Xt.scheme).replace(Yt.PCT_ENCODED,_r).toLowerCase().replace(Yt.NOT_SCHEME,"")),Xt.userinfo!==void 0&&(Xt.userinfo=String(Xt.userinfo).replace(Yt.PCT_ENCODED,_r).replace(Yt.NOT_USERINFO,tr).replace(Yt.PCT_ENCODED,tt)),Xt.host!==void 0&&(Xt.host=String(Xt.host).replace(Yt.PCT_ENCODED,_r).toLowerCase().replace(Yt.NOT_HOST,tr).replace(Yt.PCT_ENCODED,tt)),Xt.path!==void 0&&(Xt.path=String(Xt.path).replace(Yt.PCT_ENCODED,_r).replace(Xt.scheme?Yt.NOT_PATH:Yt.NOT_PATH_NOSCHEME,tr).replace(Yt.PCT_ENCODED,tt)),Xt.query!==void 0&&(Xt.query=String(Xt.query).replace(Yt.PCT_ENCODED,_r).replace(Yt.NOT_QUERY,tr).replace(Yt.PCT_ENCODED,tt)),Xt.fragment!==void 0&&(Xt.fragment=String(Xt.fragment).replace(Yt.PCT_ENCODED,_r).replace(Yt.NOT_FRAGMENT,tr).replace(Yt.PCT_ENCODED,tt)),Xt}function Wt(Xt){return Xt.replace(/^0*(.*)/,"$1")||"0"}function Kt(Xt,Yt){var _r=Xt.match(Yt.IPV4ADDRESS)||[],cr=vt(_r,2),pr=cr[1];return pr?pr.split(".").map(Wt).join("."):Xt}function lr(Xt,Yt){var _r=Xt.match(Yt.IPV6ADDRESS)||[],cr=vt(_r,3),pr=cr[1],un=cr[2];if(pr){for(var Ir=pr.toLowerCase().split("::").reverse(),Wr=vt(Ir,2),mn=Wr[0],vn=Wr[1],En=vn?vn.split(":").map(Wt):[],$n=mn.split(":").map(Wt),Nn=Yt.IPV4ADDRESS.test($n[$n.length-1]),_n=Nn?7:8,kn=$n.length-_n,jn=Array(_n),On=0;On<_n;++On)jn[On]=En[On]||$n[kn+On]||"";Nn&&(jn[_n-1]=Kt(jn[_n-1],Yt));var Vn=jn.reduce(function(Fn,Gn,Wn){if(!Gn||Gn==="0"){var Yn=Fn[Fn.length-1];Yn&&Yn.index+Yn.length===Wn?Yn.length++:Fn.push({index:Wn,length:1})}return Fn},[]),Hn=Vn.sort(function(Fn,Gn){return Gn.length-Fn.length})[0],zn=void 0;if(Hn&&Hn.length>1){var Kn=jn.slice(0,Hn.index),Qn=jn.slice(Hn.index+Hn.length);zn=Kn.join(":")+"::"+Qn.join(":")}else zn=jn.join(":");return un&&(zn+="%"+un),zn}else return Xt}var Lr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,$r="".match(/(){0}/)[1]===void 0;function wr(Xt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_r={},cr=Yt.iri!==!1?mt:dt;Yt.reference==="suffix"&&(Xt=(Yt.scheme?Yt.scheme+":":"")+"//"+Xt);var pr=Xt.match(Lr);if(pr){$r?(_r.scheme=pr[1],_r.userinfo=pr[3],_r.host=pr[4],_r.port=parseInt(pr[5],10),_r.path=pr[6]||"",_r.query=pr[7],_r.fragment=pr[8],isNaN(_r.port)&&(_r.port=pr[5])):(_r.scheme=pr[1]||void 0,_r.userinfo=Xt.indexOf("@")!==-1?pr[3]:void 0,_r.host=Xt.indexOf("//")!==-1?pr[4]:void 0,_r.port=parseInt(pr[5],10),_r.path=pr[6]||"",_r.query=Xt.indexOf("?")!==-1?pr[7]:void 0,_r.fragment=Xt.indexOf("#")!==-1?pr[8]:void 0,isNaN(_r.port)&&(_r.port=Xt.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?pr[4]:void 0)),_r.host&&(_r.host=lr(Kt(_r.host,cr),cr)),_r.scheme===void 0&&_r.userinfo===void 0&&_r.host===void 0&&_r.port===void 0&&!_r.path&&_r.query===void 0?_r.reference="same-document":_r.scheme===void 0?_r.reference="relative":_r.fragment===void 0?_r.reference="absolute":_r.reference="uri",Yt.reference&&Yt.reference!=="suffix"&&Yt.reference!==_r.reference&&(_r.error=_r.error||"URI is not a "+Yt.reference+" reference.");var un=Gt[(Yt.scheme||_r.scheme||"").toLowerCase()];if(!Yt.unicodeSupport&&(!un||!un.unicodeSupport)){if(_r.host&&(Yt.domainHost||un&&un.domainHost))try{_r.host=jt.toASCII(_r.host.replace(cr.PCT_ENCODED,er).toLowerCase())}catch(Ir){_r.error=_r.error||"Host's domain name can not be converted to ASCII via punycode: "+Ir}Jt(_r,dt)}else Jt(_r,cr);un&&un.parse&&un.parse(_r,Yt)}else _r.error=_r.error||"URI can not be parsed.";return _r}function an(Xt,Yt){var _r=Yt.iri!==!1?mt:dt,cr=[];return Xt.userinfo!==void 0&&(cr.push(Xt.userinfo),cr.push("@")),Xt.host!==void 0&&cr.push(lr(Kt(String(Xt.host),_r),_r).replace(_r.IPV6ADDRESS,function(pr,un,Ir){return"["+un+(Ir?"%25"+Ir:"")+"]"})),(typeof Xt.port=="number"||typeof Xt.port=="string")&&(cr.push(":"),cr.push(String(Xt.port))),cr.length?cr.join(""):void 0}var Or=/^\.\.?\//,yr=/^\/\.(\/|$)/,cn=/^\/\.\.(\/|$)/,Ar=/^\/?(?:.|\n)*?(?=\/|$)/;function Gr(Xt){for(var Yt=[];Xt.length;)if(Xt.match(Or))Xt=Xt.replace(Or,"");else if(Xt.match(yr))Xt=Xt.replace(yr,"/");else if(Xt.match(cn))Xt=Xt.replace(cn,"/"),Yt.pop();else if(Xt==="."||Xt==="..")Xt="";else{var _r=Xt.match(Ar);if(_r){var cr=_r[0];Xt=Xt.slice(cr.length),Yt.push(cr)}else throw new Error("Unexpected dot segment condition")}return Yt.join("")}function hn(Xt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_r=Yt.iri?mt:dt,cr=[],pr=Gt[(Yt.scheme||Xt.scheme||"").toLowerCase()];if(pr&&pr.serialize&&pr.serialize(Xt,Yt),Xt.host&&!_r.IPV6ADDRESS.test(Xt.host)){if(Yt.domainHost||pr&&pr.domainHost)try{Xt.host=Yt.iri?jt.toUnicode(Xt.host):jt.toASCII(Xt.host.replace(_r.PCT_ENCODED,er).toLowerCase())}catch(Wr){Xt.error=Xt.error||"Host's domain name can not be converted to "+(Yt.iri?"Unicode":"ASCII")+" via punycode: "+Wr}}Jt(Xt,_r),Yt.reference!=="suffix"&&Xt.scheme&&(cr.push(Xt.scheme),cr.push(":"));var un=an(Xt,Yt);if(un!==void 0&&(Yt.reference!=="suffix"&&cr.push("//"),cr.push(un),Xt.path&&Xt.path.charAt(0)!=="/"&&cr.push("/")),Xt.path!==void 0){var Ir=Xt.path;!Yt.absolutePath&&(!pr||!pr.absolutePath)&&(Ir=Gr(Ir)),un===void 0&&(Ir=Ir.replace(/^\/\//,"/%2F")),cr.push(Ir)}return Xt.query!==void 0&&(cr.push("?"),cr.push(Xt.query)),Xt.fragment!==void 0&&(cr.push("#"),cr.push(Xt.fragment)),cr.join("")}function Hr(Xt,Yt){var _r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},cr=arguments[3],pr={};return cr||(Xt=wr(hn(Xt,_r),_r),Yt=wr(hn(Yt,_r),_r)),_r=_r||{},!_r.tolerant&&Yt.scheme?(pr.scheme=Yt.scheme,pr.userinfo=Yt.userinfo,pr.host=Yt.host,pr.port=Yt.port,pr.path=Gr(Yt.path||""),pr.query=Yt.query):(Yt.userinfo!==void 0||Yt.host!==void 0||Yt.port!==void 0?(pr.userinfo=Yt.userinfo,pr.host=Yt.host,pr.port=Yt.port,pr.path=Gr(Yt.path||""),pr.query=Yt.query):(Yt.path?(Yt.path.charAt(0)==="/"?pr.path=Gr(Yt.path):((Xt.userinfo!==void 0||Xt.host!==void 0||Xt.port!==void 0)&&!Xt.path?pr.path="/"+Yt.path:Xt.path?pr.path=Xt.path.slice(0,Xt.path.lastIndexOf("/")+1)+Yt.path:pr.path=Yt.path,pr.path=Gr(pr.path)),pr.query=Yt.query):(pr.path=Xt.path,Yt.query!==void 0?pr.query=Yt.query:pr.query=Xt.query),pr.userinfo=Xt.userinfo,pr.host=Xt.host,pr.port=Xt.port),pr.scheme=Xt.scheme),pr.fragment=Yt.fragment,pr}function Jr(Xt,Yt,_r){var cr=it({scheme:"null"},_r);return hn(Hr(wr(Xt,cr),wr(Yt,cr),cr,!0),cr)}function An(Xt,Yt){return typeof Xt=="string"?Xt=hn(wr(Xt,Yt),Yt):et(Xt)==="object"&&(Xt=wr(hn(Xt,Yt),Yt)),Xt}function Vr(Xt,Yt,_r){return typeof Xt=="string"?Xt=hn(wr(Xt,_r),_r):et(Xt)==="object"&&(Xt=hn(Xt,_r)),typeof Yt=="string"?Yt=hn(wr(Yt,_r),_r):et(Yt)==="object"&&(Yt=hn(Yt,_r)),Xt===Yt}function Yr(Xt,Yt){return Xt&&Xt.toString().replace(!Yt||!Yt.iri?dt.ESCAPE:mt.ESCAPE,tr)}function Tn(Xt,Yt){return Xt&&Xt.toString().replace(!Yt||!Yt.iri?dt.PCT_ENCODED:mt.PCT_ENCODED,er)}var Vt={scheme:"http",domainHost:!0,parse:function(Yt,_r){return Yt.host||(Yt.error=Yt.error||"HTTP URIs must have a host."),Yt},serialize:function(Yt,_r){var cr=String(Yt.scheme).toLowerCase()==="https";return(Yt.port===(cr?443:80)||Yt.port==="")&&(Yt.port=void 0),Yt.path||(Yt.path="/"),Yt}},Bt={scheme:"https",domainHost:Vt.domainHost,parse:Vt.parse,serialize:Vt.serialize};function Ft(Xt){return typeof Xt.secure=="boolean"?Xt.secure:String(Xt.scheme).toLowerCase()==="wss"}var Zt={scheme:"ws",domainHost:!0,parse:function(Yt,_r){var cr=Yt;return cr.secure=Ft(cr),cr.resourceName=(cr.path||"/")+(cr.query?"?"+cr.query:""),cr.path=void 0,cr.query=void 0,cr},serialize:function(Yt,_r){if((Yt.port===(Ft(Yt)?443:80)||Yt.port==="")&&(Yt.port=void 0),typeof Yt.secure=="boolean"&&(Yt.scheme=Yt.secure?"wss":"ws",Yt.secure=void 0),Yt.resourceName){var cr=Yt.resourceName.split("?"),pr=vt(cr,2),un=pr[0],Ir=pr[1];Yt.path=un&&un!=="/"?un:void 0,Yt.query=Ir,Yt.resourceName=void 0}return Yt.fragment=void 0,Yt}},ur={scheme:"wss",domainHost:Zt.domainHost,parse:Zt.parse,serialize:Zt.serialize},qr={},vr="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",jr="[0-9A-Fa-f]",xn=_e(_e("%[EFef]"+jr+"%"+jr+jr+"%"+jr+jr)+"|"+_e("%[89A-Fa-f]"+jr+"%"+jr+jr)+"|"+_e("%"+jr+jr)),Fr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Zr="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",pn=j(Zr,'[\\"\\\\]'),Ur="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",nn=new RegExp(vr,"g"),Cn=new RegExp(xn,"g"),ir=new RegExp(j("[^]",Fr,"[\\.]",'[\\"]',pn),"g"),Qt=new RegExp(j("[^]",vr,Ur),"g"),br=Qt;function ar(Xt){var Yt=er(Xt);return Yt.match(nn)?Yt:Xt}var xr={scheme:"mailto",parse:function(Yt,_r){var cr=Yt,pr=cr.to=cr.path?cr.path.split(","):[];if(cr.path=void 0,cr.query){for(var un=!1,Ir={},Wr=cr.query.split("&"),mn=0,vn=Wr.length;mn<vn;++mn){var En=Wr[mn].split("=");switch(En[0]){case"to":for(var $n=En[1].split(","),Nn=0,_n=$n.length;Nn<_n;++Nn)pr.push($n[Nn]);break;case"subject":cr.subject=Tn(En[1],_r);break;case"body":cr.body=Tn(En[1],_r);break;default:un=!0,Ir[Tn(En[0],_r)]=Tn(En[1],_r);break}}un&&(cr.headers=Ir)}cr.query=void 0;for(var kn=0,jn=pr.length;kn<jn;++kn){var On=pr[kn].split("@");if(On[0]=Tn(On[0]),_r.unicodeSupport)On[1]=Tn(On[1],_r).toLowerCase();else try{On[1]=jt.toASCII(Tn(On[1],_r).toLowerCase())}catch(Vn){cr.error=cr.error||"Email address's domain name can not be converted to ASCII via punycode: "+Vn}pr[kn]=On.join("@")}return cr},serialize:function(Yt,_r){var cr=Yt,pr=rt(Yt.to);if(pr){for(var un=0,Ir=pr.length;un<Ir;++un){var Wr=String(pr[un]),mn=Wr.lastIndexOf("@"),vn=Wr.slice(0,mn).replace(Cn,ar).replace(Cn,tt).replace(ir,tr),En=Wr.slice(mn+1);try{En=_r.iri?jt.toUnicode(En):jt.toASCII(Tn(En,_r).toLowerCase())}catch(kn){cr.error=cr.error||"Email address's domain name can not be converted to "+(_r.iri?"Unicode":"ASCII")+" via punycode: "+kn}pr[un]=vn+"@"+En}cr.path=pr.join(",")}var $n=Yt.headers=Yt.headers||{};Yt.subject&&($n.subject=Yt.subject),Yt.body&&($n.body=Yt.body);var Nn=[];for(var _n in $n)$n[_n]!==qr[_n]&&Nn.push(_n.replace(Cn,ar).replace(Cn,tt).replace(Qt,tr)+"="+$n[_n].replace(Cn,ar).replace(Cn,tt).replace(br,tr));return Nn.length&&(cr.query=Nn.join("&")),cr}},Xr=/^([^\:]+)\:(.*)/,Pr={scheme:"urn",parse:function(Yt,_r){var cr=Yt.path&&Yt.path.match(Xr),pr=Yt;if(cr){var un=_r.scheme||pr.scheme||"urn",Ir=cr[1].toLowerCase(),Wr=cr[2],mn=un+":"+(_r.nid||Ir),vn=Gt[mn];pr.nid=Ir,pr.nss=Wr,pr.path=void 0,vn&&(pr=vn.parse(pr,_r))}else pr.error=pr.error||"URN can not be parsed.";return pr},serialize:function(Yt,_r){var cr=_r.scheme||Yt.scheme||"urn",pr=Yt.nid,un=cr+":"+(_r.nid||pr),Ir=Gt[un];Ir&&(Yt=Ir.serialize(Yt,_r));var Wr=Yt,mn=Yt.nss;return Wr.path=(pr||_r.nid)+":"+mn,Wr}},kr=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ln={scheme:"urn:uuid",parse:function(Yt,_r){var cr=Yt;return cr.uuid=cr.nss,cr.nss=void 0,!_r.tolerant&&(!cr.uuid||!cr.uuid.match(kr))&&(cr.error=cr.error||"UUID is not valid."),cr},serialize:function(Yt,_r){var cr=Yt;return cr.nss=(Yt.uuid||"").toLowerCase(),cr}};Gt[Vt.scheme]=Vt,Gt[Bt.scheme]=Bt,Gt[Zt.scheme]=Zt,Gt[ur.scheme]=ur,Gt[xr.scheme]=xr,Gt[Pr.scheme]=Pr,Gt[ln.scheme]=ln,$.SCHEMES=Gt,$.pctEncChar=tr,$.pctDecChars=er,$.parse=wr,$.removeDotSegments=Gr,$.serialize=hn,$.resolveComponents=Hr,$.resolve=Jr,$.normalize=An,$.equal=Vr,$.escapeComponent=Yr,$.unescapeComponent=Tn,Object.defineProperty($,"__esModule",{value:!0})})})(uri_all,uri_all.exports);var uri_allExports=uri_all.exports;Object.defineProperty(uri$1,"__esModule",{value:!0});const uri=uri_allExports;uri.code='require("ajv/dist/runtime/uri").default';uri$1.default=uri;(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.CodeGen=a.Name=a.nil=a.stringify=a.str=a._=a.KeywordCxt=void 0;var _=validate;Object.defineProperty(a,"KeywordCxt",{enumerable:!0,get:function(){return _.KeywordCxt}});var $=codegen;Object.defineProperty(a,"_",{enumerable:!0,get:function(){return $._}}),Object.defineProperty(a,"str",{enumerable:!0,get:function(){return $.str}}),Object.defineProperty(a,"stringify",{enumerable:!0,get:function(){return $.stringify}}),Object.defineProperty(a,"nil",{enumerable:!0,get:function(){return $.nil}}),Object.defineProperty(a,"Name",{enumerable:!0,get:function(){return $.Name}}),Object.defineProperty(a,"CodeGen",{enumerable:!0,get:function(){return $.CodeGen}});const j=validation_error,_e=ref_error,et=rules,tt=compile,rt=codegen,it=resolve$1,ct=dataType,dt=util$1,mt=require$$9,vt=uri$1,wt=(at,ht)=>new RegExp(at,ht);wt.code="new RegExp";const xt=["removeAdditional","useDefaults","coerceTypes"],bt=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Et={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},$t={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},At=200;function Rt(at){var ht,Mt,Tt,It,Lt,jt,Gt,tr,er,Jt,Wt,Kt,lr,Lr,$r,wr,an,Or,yr,cn,Ar,Gr,hn,Hr,Jr;const An=at.strict,Vr=(ht=at.code)===null||ht===void 0?void 0:ht.optimize,Yr=Vr===!0||Vr===void 0?1:Vr||0,Tn=(Tt=(Mt=at.code)===null||Mt===void 0?void 0:Mt.regExp)!==null&&Tt!==void 0?Tt:wt,Vt=(It=at.uriResolver)!==null&&It!==void 0?It:vt.default;return{strictSchema:(jt=(Lt=at.strictSchema)!==null&&Lt!==void 0?Lt:An)!==null&&jt!==void 0?jt:!0,strictNumbers:(tr=(Gt=at.strictNumbers)!==null&&Gt!==void 0?Gt:An)!==null&&tr!==void 0?tr:!0,strictTypes:(Jt=(er=at.strictTypes)!==null&&er!==void 0?er:An)!==null&&Jt!==void 0?Jt:"log",strictTuples:(Kt=(Wt=at.strictTuples)!==null&&Wt!==void 0?Wt:An)!==null&&Kt!==void 0?Kt:"log",strictRequired:(Lr=(lr=at.strictRequired)!==null&&lr!==void 0?lr:An)!==null&&Lr!==void 0?Lr:!1,code:at.code?{...at.code,optimize:Yr,regExp:Tn}:{optimize:Yr,regExp:Tn},loopRequired:($r=at.loopRequired)!==null&&$r!==void 0?$r:At,loopEnum:(wr=at.loopEnum)!==null&&wr!==void 0?wr:At,meta:(an=at.meta)!==null&&an!==void 0?an:!0,messages:(Or=at.messages)!==null&&Or!==void 0?Or:!0,inlineRefs:(yr=at.inlineRefs)!==null&&yr!==void 0?yr:!0,schemaId:(cn=at.schemaId)!==null&&cn!==void 0?cn:"$id",addUsedSchema:(Ar=at.addUsedSchema)!==null&&Ar!==void 0?Ar:!0,validateSchema:(Gr=at.validateSchema)!==null&&Gr!==void 0?Gr:!0,validateFormats:(hn=at.validateFormats)!==null&&hn!==void 0?hn:!0,unicodeRegExp:(Hr=at.unicodeRegExp)!==null&&Hr!==void 0?Hr:!0,int32range:(Jr=at.int32range)!==null&&Jr!==void 0?Jr:!0,uriResolver:Vt}}class Pt{constructor(ht={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,ht=this.opts={...ht,...Rt(ht)};const{es5:Mt,lines:Tt}=this.opts.code;this.scope=new rt.ValueScope({scope:{},prefixes:bt,es5:Mt,lines:Tt}),this.logger=nt(ht.logger);const It=ht.validateFormats;ht.validateFormats=!1,this.RULES=(0,et.getRules)(),Ct.call(this,Et,ht,"NOT SUPPORTED"),Ct.call(this,$t,ht,"DEPRECATED","warn"),this._metaOpts=zt.call(this),ht.formats&&Dt.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),ht.keywords&&Nt.call(this,ht.keywords),typeof ht.meta=="object"&&this.addMetaSchema(ht.meta),kt.call(this),ht.validateFormats=It}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:ht,meta:Mt,schemaId:Tt}=this.opts;let It=mt;Tt==="id"&&(It={...mt},It.id=It.$id,delete It.$id),Mt&&ht&&this.addMetaSchema(It,It[Tt],!1)}defaultMeta(){const{meta:ht,schemaId:Mt}=this.opts;return this.opts.defaultMeta=typeof ht=="object"?ht[Mt]||ht:void 0}validate(ht,Mt){let Tt;if(typeof ht=="string"){if(Tt=this.getSchema(ht),!Tt)throw new Error(`no schema with key or ref "${ht}"`)}else Tt=this.compile(ht);const It=Tt(Mt);return"$async"in Tt||(this.errors=Tt.errors),It}compile(ht,Mt){const Tt=this._addSchema(ht,Mt);return Tt.validate||this._compileSchemaEnv(Tt)}compileAsync(ht,Mt){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:Tt}=this.opts;return It.call(this,ht,Mt);async function It(Jt,Wt){await Lt.call(this,Jt.$schema);const Kt=this._addSchema(Jt,Wt);return Kt.validate||jt.call(this,Kt)}async function Lt(Jt){Jt&&!this.getSchema(Jt)&&await It.call(this,{$ref:Jt},!0)}async function jt(Jt){try{return this._compileSchemaEnv(Jt)}catch(Wt){if(!(Wt instanceof _e.default))throw Wt;return Gt.call(this,Wt),await tr.call(this,Wt.missingSchema),jt.call(this,Jt)}}function Gt({missingSchema:Jt,missingRef:Wt}){if(this.refs[Jt])throw new Error(`AnySchema ${Jt} is loaded but ${Wt} cannot be resolved`)}async function tr(Jt){const Wt=await er.call(this,Jt);this.refs[Jt]||await Lt.call(this,Wt.$schema),this.refs[Jt]||this.addSchema(Wt,Jt,Mt)}async function er(Jt){const Wt=this._loading[Jt];if(Wt)return Wt;try{return await(this._loading[Jt]=Tt(Jt))}finally{delete this._loading[Jt]}}}addSchema(ht,Mt,Tt,It=this.opts.validateSchema){if(Array.isArray(ht)){for(const jt of ht)this.addSchema(jt,void 0,Tt,It);return this}let Lt;if(typeof ht=="object"){const{schemaId:jt}=this.opts;if(Lt=ht[jt],Lt!==void 0&&typeof Lt!="string")throw new Error(`schema ${jt} must be string`)}return Mt=(0,it.normalizeId)(Mt||Lt),this._checkUnique(Mt),this.schemas[Mt]=this._addSchema(ht,Tt,Mt,It,!0),this}addMetaSchema(ht,Mt,Tt=this.opts.validateSchema){return this.addSchema(ht,Mt,!0,Tt),this}validateSchema(ht,Mt){if(typeof ht=="boolean")return!0;let Tt;if(Tt=ht.$schema,Tt!==void 0&&typeof Tt!="string")throw new Error("$schema must be a string");if(Tt=Tt||this.opts.defaultMeta||this.defaultMeta(),!Tt)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const It=this.validate(Tt,ht);if(!It&&Mt){const Lt="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Lt);else throw new Error(Lt)}return It}getSchema(ht){let Mt;for(;typeof(Mt=Ot.call(this,ht))=="string";)ht=Mt;if(Mt===void 0){const{schemaId:Tt}=this.opts,It=new tt.SchemaEnv({schema:{},schemaId:Tt});if(Mt=tt.resolveSchema.call(this,It,ht),!Mt)return;this.refs[ht]=Mt}return Mt.validate||this._compileSchemaEnv(Mt)}removeSchema(ht){if(ht instanceof RegExp)return this._removeAllSchemas(this.schemas,ht),this._removeAllSchemas(this.refs,ht),this;switch(typeof ht){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const Mt=Ot.call(this,ht);return typeof Mt=="object"&&this._cache.delete(Mt.schema),delete this.schemas[ht],delete this.refs[ht],this}case"object":{const Mt=ht;this._cache.delete(Mt);let Tt=ht[this.opts.schemaId];return Tt&&(Tt=(0,it.normalizeId)(Tt),delete this.schemas[Tt],delete this.refs[Tt]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(ht){for(const Mt of ht)this.addKeyword(Mt);return this}addKeyword(ht,Mt){let Tt;if(typeof ht=="string")Tt=ht,typeof Mt=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Mt.keyword=Tt);else if(typeof ht=="object"&&Mt===void 0){if(Mt=ht,Tt=Mt.keyword,Array.isArray(Tt)&&!Tt.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(st.call(this,Tt,Mt),!Mt)return(0,dt.eachItem)(Tt,Lt=>lt.call(this,Lt)),this;_t.call(this,Mt);const It={...Mt,type:(0,ct.getJSONTypes)(Mt.type),schemaType:(0,ct.getJSONTypes)(Mt.schemaType)};return(0,dt.eachItem)(Tt,It.type.length===0?Lt=>lt.call(this,Lt,It):Lt=>It.type.forEach(jt=>lt.call(this,Lt,It,jt))),this}getKeyword(ht){const Mt=this.RULES.all[ht];return typeof Mt=="object"?Mt.definition:!!Mt}removeKeyword(ht){const{RULES:Mt}=this;delete Mt.keywords[ht],delete Mt.all[ht];for(const Tt of Mt.rules){const It=Tt.rules.findIndex(Lt=>Lt.keyword===ht);It>=0&&Tt.rules.splice(It,1)}return this}addFormat(ht,Mt){return typeof Mt=="string"&&(Mt=new RegExp(Mt)),this.formats[ht]=Mt,this}errorsText(ht=this.errors,{separator:Mt=", ",dataVar:Tt="data"}={}){return!ht||ht.length===0?"No errors":ht.map(It=>`${Tt}${It.instancePath} ${It.message}`).reduce((It,Lt)=>It+Mt+Lt)}$dataMetaSchema(ht,Mt){const Tt=this.RULES.all;ht=JSON.parse(JSON.stringify(ht));for(const It of Mt){const Lt=It.split("/").slice(1);let jt=ht;for(const Gt of Lt)jt=jt[Gt];for(const Gt in Tt){const tr=Tt[Gt];if(typeof tr!="object")continue;const{$data:er}=tr.definition,Jt=jt[Gt];er&&Jt&&(jt[Gt]=yt(Jt))}}return ht}_removeAllSchemas(ht,Mt){for(const Tt in ht){const It=ht[Tt];(!Mt||Mt.test(Tt))&&(typeof It=="string"?delete ht[Tt]:It&&!It.meta&&(this._cache.delete(It.schema),delete ht[Tt]))}}_addSchema(ht,Mt,Tt,It=this.opts.validateSchema,Lt=this.opts.addUsedSchema){let jt;const{schemaId:Gt}=this.opts;if(typeof ht=="object")jt=ht[Gt];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof ht!="boolean")throw new Error("schema must be object or boolean")}let tr=this._cache.get(ht);if(tr!==void 0)return tr;Tt=(0,it.normalizeId)(jt||Tt);const er=it.getSchemaRefs.call(this,ht,Tt);return tr=new tt.SchemaEnv({schema:ht,schemaId:Gt,meta:Mt,baseId:Tt,localRefs:er}),this._cache.set(tr.schema,tr),Lt&&!Tt.startsWith("#")&&(Tt&&this._checkUnique(Tt),this.refs[Tt]=tr),It&&this.validateSchema(ht,!0),tr}_checkUnique(ht){if(this.schemas[ht]||this.refs[ht])throw new Error(`schema with key or id "${ht}" already exists`)}_compileSchemaEnv(ht){if(ht.meta?this._compileMetaSchema(ht):tt.compileSchema.call(this,ht),!ht.validate)throw new Error("ajv implementation error");return ht.validate}_compileMetaSchema(ht){const Mt=this.opts;this.opts=this._metaOpts;try{tt.compileSchema.call(this,ht)}finally{this.opts=Mt}}}a.default=Pt,Pt.ValidationError=j.default,Pt.MissingRefError=_e.default;function Ct(at,ht,Mt,Tt="error"){for(const It in at){const Lt=It;Lt in ht&&this.logger[Tt](`${Mt}: option ${It}. ${at[Lt]}`)}}function Ot(at){return at=(0,it.normalizeId)(at),this.schemas[at]||this.refs[at]}function kt(){const at=this.opts.schemas;if(at)if(Array.isArray(at))this.addSchema(at);else for(const ht in at)this.addSchema(at[ht],ht)}function Dt(){for(const at in this.opts.formats){const ht=this.opts.formats[at];ht&&this.addFormat(at,ht)}}function Nt(at){if(Array.isArray(at)){this.addVocabulary(at);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const ht in at){const Mt=at[ht];Mt.keyword||(Mt.keyword=ht),this.addKeyword(Mt)}}function zt(){const at={...this.opts};for(const ht of xt)delete at[ht];return at}const gt={log(){},warn(){},error(){}};function nt(at){if(at===!1)return gt;if(at===void 0)return console;if(at.log&&at.warn&&at.error)return at;throw new Error("logger must implement log, warn and error methods")}const ot=/^[a-z_$][a-z0-9_$:-]*$/i;function st(at,ht){const{RULES:Mt}=this;if((0,dt.eachItem)(at,Tt=>{if(Mt.keywords[Tt])throw new Error(`Keyword ${Tt} is already defined`);if(!ot.test(Tt))throw new Error(`Keyword ${Tt} has invalid name`)}),!!ht&&ht.$data&&!("code"in ht||"validate"in ht))throw new Error('$data keyword must have "code" or "validate" function')}function lt(at,ht,Mt){var Tt;const It=ht==null?void 0:ht.post;if(Mt&&It)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:Lt}=this;let jt=It?Lt.post:Lt.rules.find(({type:tr})=>tr===Mt);if(jt||(jt={type:Mt,rules:[]},Lt.rules.push(jt)),Lt.keywords[at]=!0,!ht)return;const Gt={keyword:at,definition:{...ht,type:(0,ct.getJSONTypes)(ht.type),schemaType:(0,ct.getJSONTypes)(ht.schemaType)}};ht.before?pt.call(this,jt,Gt,ht.before):jt.rules.push(Gt),Lt.all[at]=Gt,(Tt=ht.implements)===null||Tt===void 0||Tt.forEach(tr=>this.addKeyword(tr))}function pt(at,ht,Mt){const Tt=at.rules.findIndex(It=>It.keyword===Mt);Tt>=0?at.rules.splice(Tt,0,ht):(at.rules.push(ht),this.logger.warn(`rule ${Mt} is not defined`))}function _t(at){let{metaSchema:ht}=at;ht!==void 0&&(at.$data&&this.opts.$data&&(ht=yt(ht)),at.validateSchema=this.compile(ht,!0))}const St={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function yt(at){return{anyOf:[at,St]}}})(core$2);var draft7={},core$1={},id={};Object.defineProperty(id,"__esModule",{value:!0});const def$s={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};id.default=def$s;var ref={};Object.defineProperty(ref,"__esModule",{value:!0});ref.callRef=ref.getValidate=void 0;const ref_error_1=ref_error,code_1$8=code$1,codegen_1$m=codegen,names_1$1=names$1,compile_1$1=compile,util_1$j=util$1,def$r={keyword:"$ref",schemaType:"string",code(a){const{gen:_,schema:$,it:j}=a,{baseId:_e,schemaEnv:et,validateName:tt,opts:rt,self:it}=j,{root:ct}=et;if(($==="#"||$==="#/")&&_e===ct.baseId)return mt();const dt=compile_1$1.resolveRef.call(it,ct,_e,$);if(dt===void 0)throw new ref_error_1.default(j.opts.uriResolver,_e,$);if(dt instanceof compile_1$1.SchemaEnv)return vt(dt);return wt(dt);function mt(){if(et===ct)return callRef(a,tt,et,et.$async);const xt=_.scopeValue("root",{ref:ct});return callRef(a,(0,codegen_1$m._)`${xt}.validate`,ct,ct.$async)}function vt(xt){const bt=getValidate(a,xt);callRef(a,bt,xt,xt.$async)}function wt(xt){const bt=_.scopeValue("schema",rt.code.source===!0?{ref:xt,code:(0,codegen_1$m.stringify)(xt)}:{ref:xt}),Et=_.name("valid"),$t=a.subschema({schema:xt,dataTypes:[],schemaPath:codegen_1$m.nil,topSchemaRef:bt,errSchemaPath:$},Et);a.mergeEvaluated($t),a.ok(Et)}}};function getValidate(a,_){const{gen:$}=a;return _.validate?$.scopeValue("validate",{ref:_.validate}):(0,codegen_1$m._)`${$.scopeValue("wrapper",{ref:_})}.validate`}ref.getValidate=getValidate;function callRef(a,_,$,j){const{gen:_e,it:et}=a,{allErrors:tt,schemaEnv:rt,opts:it}=et,ct=it.passContext?names_1$1.default.this:codegen_1$m.nil;j?dt():mt();function dt(){if(!rt.$async)throw new Error("async schema referenced by sync schema");const xt=_e.let("valid");_e.try(()=>{_e.code((0,codegen_1$m._)`await ${(0,code_1$8.callValidateCode)(a,_,ct)}`),wt(_),tt||_e.assign(xt,!0)},bt=>{_e.if((0,codegen_1$m._)`!(${bt} instanceof ${et.ValidationError})`,()=>_e.throw(bt)),vt(bt),tt||_e.assign(xt,!1)}),a.ok(xt)}function mt(){a.result((0,code_1$8.callValidateCode)(a,_,ct),()=>wt(_),()=>vt(_))}function vt(xt){const bt=(0,codegen_1$m._)`${xt}.errors`;_e.assign(names_1$1.default.vErrors,(0,codegen_1$m._)`${names_1$1.default.vErrors} === null ? ${bt} : ${names_1$1.default.vErrors}.concat(${bt})`),_e.assign(names_1$1.default.errors,(0,codegen_1$m._)`${names_1$1.default.vErrors}.length`)}function wt(xt){var bt;if(!et.opts.unevaluated)return;const Et=(bt=$==null?void 0:$.validate)===null||bt===void 0?void 0:bt.evaluated;if(et.props!==!0)if(Et&&!Et.dynamicProps)Et.props!==void 0&&(et.props=util_1$j.mergeEvaluated.props(_e,Et.props,et.props));else{const $t=_e.var("props",(0,codegen_1$m._)`${xt}.evaluated.props`);et.props=util_1$j.mergeEvaluated.props(_e,$t,et.props,codegen_1$m.Name)}if(et.items!==!0)if(Et&&!Et.dynamicItems)Et.items!==void 0&&(et.items=util_1$j.mergeEvaluated.items(_e,Et.items,et.items));else{const $t=_e.var("items",(0,codegen_1$m._)`${xt}.evaluated.items`);et.items=util_1$j.mergeEvaluated.items(_e,$t,et.items,codegen_1$m.Name)}}}ref.callRef=callRef;ref.default=def$r;Object.defineProperty(core$1,"__esModule",{value:!0});const id_1=id,ref_1=ref,core=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",id_1.default,ref_1.default];core$1.default=core;var validation$2={},limitNumber={};Object.defineProperty(limitNumber,"__esModule",{value:!0});const codegen_1$l=codegen,ops=codegen_1$l.operators,KWDs={maximum:{okStr:"<=",ok:ops.LTE,fail:ops.GT},minimum:{okStr:">=",ok:ops.GTE,fail:ops.LT},exclusiveMaximum:{okStr:"<",ok:ops.LT,fail:ops.GTE},exclusiveMinimum:{okStr:">",ok:ops.GT,fail:ops.LTE}},error$j={message:({keyword:a,schemaCode:_})=>(0,codegen_1$l.str)`must be ${KWDs[a].okStr} ${_}`,params:({keyword:a,schemaCode:_})=>(0,codegen_1$l._)`{comparison: ${KWDs[a].okStr}, limit: ${_}}`},def$q={keyword:Object.keys(KWDs),type:"number",schemaType:"number",$data:!0,error:error$j,code(a){const{keyword:_,data:$,schemaCode:j}=a;a.fail$data((0,codegen_1$l._)`${$} ${KWDs[_].fail} ${j} || isNaN(${$})`)}};limitNumber.default=def$q;var multipleOf={};Object.defineProperty(multipleOf,"__esModule",{value:!0});const codegen_1$k=codegen,error$i={message:({schemaCode:a})=>(0,codegen_1$k.str)`must be multiple of ${a}`,params:({schemaCode:a})=>(0,codegen_1$k._)`{multipleOf: ${a}}`},def$p={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:error$i,code(a){const{gen:_,data:$,schemaCode:j,it:_e}=a,et=_e.opts.multipleOfPrecision,tt=_.let("res"),rt=et?(0,codegen_1$k._)`Math.abs(Math.round(${tt}) - ${tt}) > 1e-${et}`:(0,codegen_1$k._)`${tt} !== parseInt(${tt})`;a.fail$data((0,codegen_1$k._)`(${j} === 0 || (${tt} = ${$}/${j}, ${rt}))`)}};multipleOf.default=def$p;var limitLength={},ucs2length$1={};Object.defineProperty(ucs2length$1,"__esModule",{value:!0});function ucs2length(a){const _=a.length;let $=0,j=0,_e;for(;j<_;)$++,_e=a.charCodeAt(j++),_e>=55296&&_e<=56319&&j<_&&(_e=a.charCodeAt(j),(_e&64512)===56320&&j++);return $}ucs2length$1.default=ucs2length;ucs2length.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(limitLength,"__esModule",{value:!0});const codegen_1$j=codegen,util_1$i=util$1,ucs2length_1=ucs2length$1,error$h={message({keyword:a,schemaCode:_}){const $=a==="maxLength"?"more":"fewer";return(0,codegen_1$j.str)`must NOT have ${$} than ${_} characters`},params:({schemaCode:a})=>(0,codegen_1$j._)`{limit: ${a}}`},def$o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:error$h,code(a){const{keyword:_,data:$,schemaCode:j,it:_e}=a,et=_==="maxLength"?codegen_1$j.operators.GT:codegen_1$j.operators.LT,tt=_e.opts.unicode===!1?(0,codegen_1$j._)`${$}.length`:(0,codegen_1$j._)`${(0,util_1$i.useFunc)(a.gen,ucs2length_1.default)}(${$})`;a.fail$data((0,codegen_1$j._)`${tt} ${et} ${j}`)}};limitLength.default=def$o;var pattern={};Object.defineProperty(pattern,"__esModule",{value:!0});const code_1$7=code$1,codegen_1$i=codegen,error$g={message:({schemaCode:a})=>(0,codegen_1$i.str)`must match pattern "${a}"`,params:({schemaCode:a})=>(0,codegen_1$i._)`{pattern: ${a}}`},def$n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:error$g,code(a){const{data:_,$data:$,schema:j,schemaCode:_e,it:et}=a,tt=et.opts.unicodeRegExp?"u":"",rt=$?(0,codegen_1$i._)`(new RegExp(${_e}, ${tt}))`:(0,code_1$7.usePattern)(a,j);a.fail$data((0,codegen_1$i._)`!${rt}.test(${_})`)}};pattern.default=def$n;var limitProperties={};Object.defineProperty(limitProperties,"__esModule",{value:!0});const codegen_1$h=codegen,error$f={message({keyword:a,schemaCode:_}){const $=a==="maxProperties"?"more":"fewer";return(0,codegen_1$h.str)`must NOT have ${$} than ${_} properties`},params:({schemaCode:a})=>(0,codegen_1$h._)`{limit: ${a}}`},def$m={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:error$f,code(a){const{keyword:_,data:$,schemaCode:j}=a,_e=_==="maxProperties"?codegen_1$h.operators.GT:codegen_1$h.operators.LT;a.fail$data((0,codegen_1$h._)`Object.keys(${$}).length ${_e} ${j}`)}};limitProperties.default=def$m;var required={};Object.defineProperty(required,"__esModule",{value:!0});const code_1$6=code$1,codegen_1$g=codegen,util_1$h=util$1,error$e={message:({params:{missingProperty:a}})=>(0,codegen_1$g.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,codegen_1$g._)`{missingProperty: ${a}}`},def$l={keyword:"required",type:"object",schemaType:"array",$data:!0,error:error$e,code(a){const{gen:_,schema:$,schemaCode:j,data:_e,$data:et,it:tt}=a,{opts:rt}=tt;if(!et&&$.length===0)return;const it=$.length>=rt.loopRequired;if(tt.allErrors?ct():dt(),rt.strictRequired){const wt=a.parentSchema.properties,{definedProperties:xt}=a.it;for(const bt of $)if((wt==null?void 0:wt[bt])===void 0&&!xt.has(bt)){const Et=tt.schemaEnv.baseId+tt.errSchemaPath,$t=`required property "${bt}" is not defined at "${Et}" (strictRequired)`;(0,util_1$h.checkStrictMode)(tt,$t,tt.opts.strictRequired)}}function ct(){if(it||et)a.block$data(codegen_1$g.nil,mt);else for(const wt of $)(0,code_1$6.checkReportMissingProp)(a,wt)}function dt(){const wt=_.let("missing");if(it||et){const xt=_.let("valid",!0);a.block$data(xt,()=>vt(wt,xt)),a.ok(xt)}else _.if((0,code_1$6.checkMissingProp)(a,$,wt)),(0,code_1$6.reportMissingProp)(a,wt),_.else()}function mt(){_.forOf("prop",j,wt=>{a.setParams({missingProperty:wt}),_.if((0,code_1$6.noPropertyInData)(_,_e,wt,rt.ownProperties),()=>a.error())})}function vt(wt,xt){a.setParams({missingProperty:wt}),_.forOf(wt,j,()=>{_.assign(xt,(0,code_1$6.propertyInData)(_,_e,wt,rt.ownProperties)),_.if((0,codegen_1$g.not)(xt),()=>{a.error(),_.break()})},codegen_1$g.nil)}}};required.default=def$l;var limitItems={};Object.defineProperty(limitItems,"__esModule",{value:!0});const codegen_1$f=codegen,error$d={message({keyword:a,schemaCode:_}){const $=a==="maxItems"?"more":"fewer";return(0,codegen_1$f.str)`must NOT have ${$} than ${_} items`},params:({schemaCode:a})=>(0,codegen_1$f._)`{limit: ${a}}`},def$k={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:error$d,code(a){const{keyword:_,data:$,schemaCode:j}=a,_e=_==="maxItems"?codegen_1$f.operators.GT:codegen_1$f.operators.LT;a.fail$data((0,codegen_1$f._)`${$}.length ${_e} ${j}`)}};limitItems.default=def$k;var uniqueItems={},equal$2={};Object.defineProperty(equal$2,"__esModule",{value:!0});const equal$1=fastDeepEqual;equal$1.code='require("ajv/dist/runtime/equal").default';equal$2.default=equal$1;Object.defineProperty(uniqueItems,"__esModule",{value:!0});const dataType_1=dataType,codegen_1$e=codegen,util_1$g=util$1,equal_1$2=equal$2,error$c={message:({params:{i:a,j:_}})=>(0,codegen_1$e.str)`must NOT have duplicate items (items ## ${_} and ${a} are identical)`,params:({params:{i:a,j:_}})=>(0,codegen_1$e._)`{i: ${a}, j: ${_}}`},def$j={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:error$c,code(a){const{gen:_,data:$,$data:j,schema:_e,parentSchema:et,schemaCode:tt,it:rt}=a;if(!j&&!_e)return;const it=_.let("valid"),ct=et.items?(0,dataType_1.getSchemaTypes)(et.items):[];a.block$data(it,dt,(0,codegen_1$e._)`${tt} === false`),a.ok(it);function dt(){const xt=_.let("i",(0,codegen_1$e._)`${$}.length`),bt=_.let("j");a.setParams({i:xt,j:bt}),_.assign(it,!0),_.if((0,codegen_1$e._)`${xt} > 1`,()=>(mt()?vt:wt)(xt,bt))}function mt(){return ct.length>0&&!ct.some(xt=>xt==="object"||xt==="array")}function vt(xt,bt){const Et=_.name("item"),$t=(0,dataType_1.checkDataTypes)(ct,Et,rt.opts.strictNumbers,dataType_1.DataType.Wrong),At=_.const("indices",(0,codegen_1$e._)`{}`);_.for((0,codegen_1$e._)`;${xt}--;`,()=>{_.let(Et,(0,codegen_1$e._)`${$}[${xt}]`),_.if($t,(0,codegen_1$e._)`continue`),ct.length>1&&_.if((0,codegen_1$e._)`typeof ${Et} == "string"`,(0,codegen_1$e._)`${Et} += "_"`),_.if((0,codegen_1$e._)`typeof ${At}[${Et}] == "number"`,()=>{_.assign(bt,(0,codegen_1$e._)`${At}[${Et}]`),a.error(),_.assign(it,!1).break()}).code((0,codegen_1$e._)`${At}[${Et}] = ${xt}`)})}function wt(xt,bt){const Et=(0,util_1$g.useFunc)(_,equal_1$2.default),$t=_.name("outer");_.label($t).for((0,codegen_1$e._)`;${xt}--;`,()=>_.for((0,codegen_1$e._)`${bt} = ${xt}; ${bt}--;`,()=>_.if((0,codegen_1$e._)`${Et}(${$}[${xt}], ${$}[${bt}])`,()=>{a.error(),_.assign(it,!1).break($t)})))}}};uniqueItems.default=def$j;var _const={};Object.defineProperty(_const,"__esModule",{value:!0});const codegen_1$d=codegen,util_1$f=util$1,equal_1$1=equal$2,error$b={message:"must be equal to constant",params:({schemaCode:a})=>(0,codegen_1$d._)`{allowedValue: ${a}}`},def$i={keyword:"const",$data:!0,error:error$b,code(a){const{gen:_,data:$,$data:j,schemaCode:_e,schema:et}=a;j||et&&typeof et=="object"?a.fail$data((0,codegen_1$d._)`!${(0,util_1$f.useFunc)(_,equal_1$1.default)}(${$}, ${_e})`):a.fail((0,codegen_1$d._)`${et} !== ${$}`)}};_const.default=def$i;var _enum={};Object.defineProperty(_enum,"__esModule",{value:!0});const codegen_1$c=codegen,util_1$e=util$1,equal_1=equal$2,error$a={message:"must be equal to one of the allowed values",params:({schemaCode:a})=>(0,codegen_1$c._)`{allowedValues: ${a}}`},def$h={keyword:"enum",schemaType:"array",$data:!0,error:error$a,code(a){const{gen:_,data:$,$data:j,schema:_e,schemaCode:et,it:tt}=a;if(!j&&_e.length===0)throw new Error("enum must have non-empty array");const rt=_e.length>=tt.opts.loopEnum;let it;const ct=()=>it??(it=(0,util_1$e.useFunc)(_,equal_1.default));let dt;if(rt||j)dt=_.let("valid"),a.block$data(dt,mt);else{if(!Array.isArray(_e))throw new Error("ajv implementation error");const wt=_.const("vSchema",et);dt=(0,codegen_1$c.or)(..._e.map((xt,bt)=>vt(wt,bt)))}a.pass(dt);function mt(){_.assign(dt,!1),_.forOf("v",et,wt=>_.if((0,codegen_1$c._)`${ct()}(${$}, ${wt})`,()=>_.assign(dt,!0).break()))}function vt(wt,xt){const bt=_e[xt];return typeof bt=="object"&&bt!==null?(0,codegen_1$c._)`${ct()}(${$}, ${wt}[${xt}])`:(0,codegen_1$c._)`${$} === ${bt}`}}};_enum.default=def$h;Object.defineProperty(validation$2,"__esModule",{value:!0});const limitNumber_1=limitNumber,multipleOf_1=multipleOf,limitLength_1=limitLength,pattern_1=pattern,limitProperties_1=limitProperties,required_1=required,limitItems_1=limitItems,uniqueItems_1=uniqueItems,const_1=_const,enum_1=_enum,validation$1=[limitNumber_1.default,multipleOf_1.default,limitLength_1.default,pattern_1.default,limitProperties_1.default,required_1.default,limitItems_1.default,uniqueItems_1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},const_1.default,enum_1.default];validation$2.default=validation$1;var applicator={},additionalItems={};Object.defineProperty(additionalItems,"__esModule",{value:!0});additionalItems.validateAdditionalItems=void 0;const codegen_1$b=codegen,util_1$d=util$1,error$9={message:({params:{len:a}})=>(0,codegen_1$b.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,codegen_1$b._)`{limit: ${a}}`},def$g={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:error$9,code(a){const{parentSchema:_,it:$}=a,{items:j}=_;if(!Array.isArray(j)){(0,util_1$d.checkStrictMode)($,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(a,j)}};function validateAdditionalItems(a,_){const{gen:$,schema:j,data:_e,keyword:et,it:tt}=a;tt.items=!0;const rt=$.const("len",(0,codegen_1$b._)`${_e}.length`);if(j===!1)a.setParams({len:_.length}),a.pass((0,codegen_1$b._)`${rt} <= ${_.length}`);else if(typeof j=="object"&&!(0,util_1$d.alwaysValidSchema)(tt,j)){const ct=$.var("valid",(0,codegen_1$b._)`${rt} <= ${_.length}`);$.if((0,codegen_1$b.not)(ct),()=>it(ct)),a.ok(ct)}function it(ct){$.forRange("i",_.length,rt,dt=>{a.subschema({keyword:et,dataProp:dt,dataPropType:util_1$d.Type.Num},ct),tt.allErrors||$.if((0,codegen_1$b.not)(ct),()=>$.break())})}}additionalItems.validateAdditionalItems=validateAdditionalItems;additionalItems.default=def$g;var prefixItems={},items={};Object.defineProperty(items,"__esModule",{value:!0});items.validateTuple=void 0;const codegen_1$a=codegen,util_1$c=util$1,code_1$5=code$1,def$f={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(a){const{schema:_,it:$}=a;if(Array.isArray(_))return validateTuple(a,"additionalItems",_);$.items=!0,!(0,util_1$c.alwaysValidSchema)($,_)&&a.ok((0,code_1$5.validateArray)(a))}};function validateTuple(a,_,$=a.schema){const{gen:j,parentSchema:_e,data:et,keyword:tt,it:rt}=a;dt(_e),rt.opts.unevaluated&&$.length&&rt.items!==!0&&(rt.items=util_1$c.mergeEvaluated.items(j,$.length,rt.items));const it=j.name("valid"),ct=j.const("len",(0,codegen_1$a._)`${et}.length`);$.forEach((mt,vt)=>{(0,util_1$c.alwaysValidSchema)(rt,mt)||(j.if((0,codegen_1$a._)`${ct} > ${vt}`,()=>a.subschema({keyword:tt,schemaProp:vt,dataProp:vt},it)),a.ok(it))});function dt(mt){const{opts:vt,errSchemaPath:wt}=rt,xt=$.length,bt=xt===mt.minItems&&(xt===mt.maxItems||mt[_]===!1);if(vt.strictTuples&&!bt){const Et=`"${tt}" is ${xt}-tuple, but minItems or maxItems/${_} are not specified or different at path "${wt}"`;(0,util_1$c.checkStrictMode)(rt,Et,vt.strictTuples)}}}items.validateTuple=validateTuple;items.default=def$f;Object.defineProperty(prefixItems,"__esModule",{value:!0});const items_1$1=items,def$e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:a=>(0,items_1$1.validateTuple)(a,"items")};prefixItems.default=def$e;var items2020={};Object.defineProperty(items2020,"__esModule",{value:!0});const codegen_1$9=codegen,util_1$b=util$1,code_1$4=code$1,additionalItems_1$1=additionalItems,error$8={message:({params:{len:a}})=>(0,codegen_1$9.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,codegen_1$9._)`{limit: ${a}}`},def$d={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:error$8,code(a){const{schema:_,parentSchema:$,it:j}=a,{prefixItems:_e}=$;j.items=!0,!(0,util_1$b.alwaysValidSchema)(j,_)&&(_e?(0,additionalItems_1$1.validateAdditionalItems)(a,_e):a.ok((0,code_1$4.validateArray)(a)))}};items2020.default=def$d;var contains$1={};Object.defineProperty(contains$1,"__esModule",{value:!0});const codegen_1$8=codegen,util_1$a=util$1,error$7={message:({params:{min:a,max:_}})=>_===void 0?(0,codegen_1$8.str)`must contain at least ${a} valid item(s)`:(0,codegen_1$8.str)`must contain at least ${a} and no more than ${_} valid item(s)`,params:({params:{min:a,max:_}})=>_===void 0?(0,codegen_1$8._)`{minContains: ${a}}`:(0,codegen_1$8._)`{minContains: ${a}, maxContains: ${_}}`},def$c={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:error$7,code(a){const{gen:_,schema:$,parentSchema:j,data:_e,it:et}=a;let tt,rt;const{minContains:it,maxContains:ct}=j;et.opts.next?(tt=it===void 0?1:it,rt=ct):tt=1;const dt=_.const("len",(0,codegen_1$8._)`${_e}.length`);if(a.setParams({min:tt,max:rt}),rt===void 0&&tt===0){(0,util_1$a.checkStrictMode)(et,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(rt!==void 0&&tt>rt){(0,util_1$a.checkStrictMode)(et,'"minContains" > "maxContains" is always invalid'),a.fail();return}if((0,util_1$a.alwaysValidSchema)(et,$)){let bt=(0,codegen_1$8._)`${dt} >= ${tt}`;rt!==void 0&&(bt=(0,codegen_1$8._)`${bt} && ${dt} <= ${rt}`),a.pass(bt);return}et.items=!0;const mt=_.name("valid");rt===void 0&&tt===1?wt(mt,()=>_.if(mt,()=>_.break())):tt===0?(_.let(mt,!0),rt!==void 0&&_.if((0,codegen_1$8._)`${_e}.length > 0`,vt)):(_.let(mt,!1),vt()),a.result(mt,()=>a.reset());function vt(){const bt=_.name("_valid"),Et=_.let("count",0);wt(bt,()=>_.if(bt,()=>xt(Et)))}function wt(bt,Et){_.forRange("i",0,dt,$t=>{a.subschema({keyword:"contains",dataProp:$t,dataPropType:util_1$a.Type.Num,compositeRule:!0},bt),Et()})}function xt(bt){_.code((0,codegen_1$8._)`${bt}++`),rt===void 0?_.if((0,codegen_1$8._)`${bt} >= ${tt}`,()=>_.assign(mt,!0).break()):(_.if((0,codegen_1$8._)`${bt} > ${rt}`,()=>_.assign(mt,!1).break()),tt===1?_.assign(mt,!0):_.if((0,codegen_1$8._)`${bt} >= ${tt}`,()=>_.assign(mt,!0)))}}};contains$1.default=def$c;var dependencies$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.validateSchemaDeps=a.validatePropertyDeps=a.error=void 0;const _=codegen,$=util$1,j=code$1;a.error={message:({params:{property:it,depsCount:ct,deps:dt}})=>{const mt=ct===1?"property":"properties";return(0,_.str)`must have ${mt} ${dt} when property ${it} is present`},params:({params:{property:it,depsCount:ct,deps:dt,missingProperty:mt}})=>(0,_._)`{property: ${it},
|
|
108
108
|
missingProperty: ${mt},
|
|
109
109
|
depsCount: ${ct},
|
|
110
|
-
deps: ${dt}}`};const _e={keyword:"dependencies",type:"object",schemaType:"object",error:a.error,code(it){const[ct,dt]=et(it);tt(it,ct),rt(it,dt)}};function et({schema:it}){const ct={},dt={};for(const mt in it){if(mt==="__proto__")continue;const vt=Array.isArray(it[mt])?ct:dt;vt[mt]=it[mt]}return[ct,dt]}function tt(it,ct=it.schema){const{gen:dt,data:mt,it:vt}=it;if(Object.keys(ct).length===0)return;const wt=dt.let("missing");for(const xt in ct){const bt=ct[xt];if(bt.length===0)continue;const Et=(0,j.propertyInData)(dt,mt,xt,vt.opts.ownProperties);it.setParams({property:xt,depsCount:bt.length,deps:bt.join(", ")}),vt.allErrors?dt.if(Et,()=>{for(const $t of bt)(0,j.checkReportMissingProp)(it,$t)}):(dt.if((0,_._)`${Et} && (${(0,j.checkMissingProp)(it,bt,wt)})`),(0,j.reportMissingProp)(it,wt),dt.else())}}a.validatePropertyDeps=tt;function rt(it,ct=it.schema){const{gen:dt,data:mt,keyword:vt,it:wt}=it,xt=dt.name("valid");for(const bt in ct)(0,$.alwaysValidSchema)(wt,ct[bt])||(dt.if((0,j.propertyInData)(dt,mt,bt,wt.opts.ownProperties),()=>{const Et=it.subschema({keyword:vt,schemaProp:bt},xt);it.mergeValidEvaluated(Et,xt)},()=>dt.var(xt,!0)),it.ok(xt))}a.validateSchemaDeps=rt,a.default=_e})(dependencies$2);var propertyNames={};Object.defineProperty(propertyNames,"__esModule",{value:!0});const codegen_1$7=codegen,util_1$9=util$1,error$6={message:"property name must be valid",params:({params:a})=>(0,codegen_1$7._)`{propertyName: ${a.propertyName}}`},def$b={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:error$6,code(a){const{gen:_,schema:$,data:j,it:_e}=a;if((0,util_1$9.alwaysValidSchema)(_e,$))return;const et=_.name("valid");_.forIn("key",j,tt=>{a.setParams({propertyName:tt}),a.subschema({keyword:"propertyNames",data:tt,dataTypes:["string"],propertyName:tt,compositeRule:!0},et),_.if((0,codegen_1$7.not)(et),()=>{a.error(!0),_e.allErrors||_.break()})}),a.ok(et)}};propertyNames.default=def$b;var additionalProperties={};Object.defineProperty(additionalProperties,"__esModule",{value:!0});const code_1$3=code$1,codegen_1$6=codegen,names_1=names$1,util_1$8=util$1,error$5={message:"must NOT have additional properties",params:({params:a})=>(0,codegen_1$6._)`{additionalProperty: ${a.additionalProperty}}`},def$a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:error$5,code(a){const{gen:_,schema:$,parentSchema:j,data:_e,errsCount:et,it:tt}=a;if(!et)throw new Error("ajv implementation error");const{allErrors:rt,opts:it}=tt;if(tt.props=!0,it.removeAdditional!=="all"&&(0,util_1$8.alwaysValidSchema)(tt,$))return;const ct=(0,code_1$3.allSchemaProperties)(j.properties),dt=(0,code_1$3.allSchemaProperties)(j.patternProperties);mt(),a.ok((0,codegen_1$6._)`${et} === ${names_1.default.errors}`);function mt(){_.forIn("key",_e,Et=>{!ct.length&&!dt.length?xt(Et):_.if(vt(Et),()=>xt(Et))})}function vt(Et){let $t;if(ct.length>8){const At=(0,util_1$8.schemaRefOrVal)(tt,j.properties,"properties");$t=(0,code_1$3.isOwnProperty)(_,At,Et)}else ct.length?$t=(0,codegen_1$6.or)(...ct.map(At=>(0,codegen_1$6._)`${Et} === ${At}`)):$t=codegen_1$6.nil;return dt.length&&($t=(0,codegen_1$6.or)($t,...dt.map(At=>(0,codegen_1$6._)`${(0,code_1$3.usePattern)(a,At)}.test(${Et})`))),(0,codegen_1$6.not)($t)}function wt(Et){_.code((0,codegen_1$6._)`delete ${_e}[${Et}]`)}function xt(Et){if(it.removeAdditional==="all"||it.removeAdditional&&$===!1){wt(Et);return}if($===!1){a.setParams({additionalProperty:Et}),a.error(),rt||_.break();return}if(typeof $=="object"&&!(0,util_1$8.alwaysValidSchema)(tt,$)){const $t=_.name("valid");it.removeAdditional==="failing"?(bt(Et,$t,!1),_.if((0,codegen_1$6.not)($t),()=>{a.reset(),wt(Et)})):(bt(Et,$t),rt||_.if((0,codegen_1$6.not)($t),()=>_.break()))}}function bt(Et,$t,At){const Rt={keyword:"additionalProperties",dataProp:Et,dataPropType:util_1$8.Type.Str};At===!1&&Object.assign(Rt,{compositeRule:!0,createErrors:!1,allErrors:!1}),a.subschema(Rt,$t)}}};additionalProperties.default=def$a;var properties$1={};Object.defineProperty(properties$1,"__esModule",{value:!0});const validate_1=validate,code_1$2=code$1,util_1$7=util$1,additionalProperties_1$1=additionalProperties,def$9={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:_,schema:$,parentSchema:j,data:_e,it:et}=a;et.opts.removeAdditional==="all"&&j.additionalProperties===void 0&&additionalProperties_1$1.default.code(new validate_1.KeywordCxt(et,additionalProperties_1$1.default,"additionalProperties"));const tt=(0,code_1$2.allSchemaProperties)($);for(const mt of tt)et.definedProperties.add(mt);et.opts.unevaluated&&tt.length&&et.props!==!0&&(et.props=util_1$7.mergeEvaluated.props(_,(0,util_1$7.toHash)(tt),et.props));const rt=tt.filter(mt=>!(0,util_1$7.alwaysValidSchema)(et,$[mt]));if(rt.length===0)return;const it=_.name("valid");for(const mt of rt)ct(mt)?dt(mt):(_.if((0,code_1$2.propertyInData)(_,_e,mt,et.opts.ownProperties)),dt(mt),et.allErrors||_.else().var(it,!0),_.endIf()),a.it.definedProperties.add(mt),a.ok(it);function ct(mt){return et.opts.useDefaults&&!et.compositeRule&&$[mt].default!==void 0}function dt(mt){a.subschema({keyword:"properties",schemaProp:mt,dataProp:mt},it)}}};properties$1.default=def$9;var patternProperties={};Object.defineProperty(patternProperties,"__esModule",{value:!0});const code_1$1=code$1,codegen_1$5=codegen,util_1$6=util$1,util_2=util$1,def$8={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:_,schema:$,data:j,parentSchema:_e,it:et}=a,{opts:tt}=et,rt=(0,code_1$1.allSchemaProperties)($),it=rt.filter(bt=>(0,util_1$6.alwaysValidSchema)(et,$[bt]));if(rt.length===0||it.length===rt.length&&(!et.opts.unevaluated||et.props===!0))return;const ct=tt.strictSchema&&!tt.allowMatchingProperties&&_e.properties,dt=_.name("valid");et.props!==!0&&!(et.props instanceof codegen_1$5.Name)&&(et.props=(0,util_2.evaluatedPropsToName)(_,et.props));const{props:mt}=et;vt();function vt(){for(const bt of rt)ct&&wt(bt),et.allErrors?xt(bt):(_.var(dt,!0),xt(bt),_.if(dt))}function wt(bt){for(const Et in ct)new RegExp(bt).test(Et)&&(0,util_1$6.checkStrictMode)(et,`property ${Et} matches pattern ${bt} (use allowMatchingProperties)`)}function xt(bt){_.forIn("key",j,Et=>{_.if((0,codegen_1$5._)`${(0,code_1$1.usePattern)(a,bt)}.test(${Et})`,()=>{const $t=it.includes(bt);$t||a.subschema({keyword:"patternProperties",schemaProp:bt,dataProp:Et,dataPropType:util_2.Type.Str},dt),et.opts.unevaluated&&mt!==!0?_.assign((0,codegen_1$5._)`${mt}[${Et}]`,!0):!$t&&!et.allErrors&&_.if((0,codegen_1$5.not)(dt),()=>_.break())})})}}};patternProperties.default=def$8;var not={};Object.defineProperty(not,"__esModule",{value:!0});const util_1$5=util$1,def$7={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(a){const{gen:_,schema:$,it:j}=a;if((0,util_1$5.alwaysValidSchema)(j,$)){a.fail();return}const _e=_.name("valid");a.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},_e),a.failResult(_e,()=>a.reset(),()=>a.error())},error:{message:"must NOT be valid"}};not.default=def$7;var anyOf={};Object.defineProperty(anyOf,"__esModule",{value:!0});const code_1=code$1,def$6={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:code_1.validateUnion,error:{message:"must match a schema in anyOf"}};anyOf.default=def$6;var oneOf$1={};Object.defineProperty(oneOf$1,"__esModule",{value:!0});const codegen_1$4=codegen,util_1$4=util$1,error$4={message:"must match exactly one schema in oneOf",params:({params:a})=>(0,codegen_1$4._)`{passingSchemas: ${a.passing}}`},def$5={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:error$4,code(a){const{gen:_,schema:$,parentSchema:j,it:_e}=a;if(!Array.isArray($))throw new Error("ajv implementation error");if(_e.opts.discriminator&&j.discriminator)return;const et=$,tt=_.let("valid",!1),rt=_.let("passing",null),it=_.name("_valid");a.setParams({passing:rt}),_.block(ct),a.result(tt,()=>a.reset(),()=>a.error(!0));function ct(){et.forEach((dt,mt)=>{let vt;(0,util_1$4.alwaysValidSchema)(_e,dt)?_.var(it,!0):vt=a.subschema({keyword:"oneOf",schemaProp:mt,compositeRule:!0},it),mt>0&&_.if((0,codegen_1$4._)`${it} && ${tt}`).assign(tt,!1).assign(rt,(0,codegen_1$4._)`[${rt}, ${mt}]`).else(),_.if(it,()=>{_.assign(tt,!0),_.assign(rt,mt),vt&&a.mergeEvaluated(vt,codegen_1$4.Name)})})}}};oneOf$1.default=def$5;var allOf={};Object.defineProperty(allOf,"__esModule",{value:!0});const util_1$3=util$1,def$4={keyword:"allOf",schemaType:"array",code(a){const{gen:_,schema:$,it:j}=a;if(!Array.isArray($))throw new Error("ajv implementation error");const _e=_.name("valid");$.forEach((et,tt)=>{if((0,util_1$3.alwaysValidSchema)(j,et))return;const rt=a.subschema({keyword:"allOf",schemaProp:tt},_e);a.ok(_e),a.mergeEvaluated(rt)})}};allOf.default=def$4;var _if={};Object.defineProperty(_if,"__esModule",{value:!0});const codegen_1$3=codegen,util_1$2=util$1,error$3={message:({params:a})=>(0,codegen_1$3.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,codegen_1$3._)`{failingKeyword: ${a.ifClause}}`},def$3={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:error$3,code(a){const{gen:_,parentSchema:$,it:j}=a;$.then===void 0&&$.else===void 0&&(0,util_1$2.checkStrictMode)(j,'"if" without "then" and "else" is ignored');const _e=hasSchema(j,"then"),et=hasSchema(j,"else");if(!_e&&!et)return;const tt=_.let("valid",!0),rt=_.name("_valid");if(it(),a.reset(),_e&&et){const dt=_.let("ifClause");a.setParams({ifClause:dt}),_.if(rt,ct("then",dt),ct("else",dt))}else _e?_.if(rt,ct("then")):_.if((0,codegen_1$3.not)(rt),ct("else"));a.pass(tt,()=>a.error(!0));function it(){const dt=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},rt);a.mergeEvaluated(dt)}function ct(dt,mt){return()=>{const vt=a.subschema({keyword:dt},rt);_.assign(tt,rt),a.mergeValidEvaluated(vt,tt),mt?_.assign(mt,(0,codegen_1$3._)`${dt}`):a.setParams({ifClause:dt})}}}};function hasSchema(a,_){const $=a.schema[_];return $!==void 0&&!(0,util_1$2.alwaysValidSchema)(a,$)}_if.default=def$3;var thenElse={};Object.defineProperty(thenElse,"__esModule",{value:!0});const util_1$1=util$1,def$2={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:a,parentSchema:_,it:$}){_.if===void 0&&(0,util_1$1.checkStrictMode)($,`"${a}" without "if" is ignored`)}};thenElse.default=def$2;Object.defineProperty(applicator,"__esModule",{value:!0});const additionalItems_1=additionalItems,prefixItems_1=prefixItems,items_1=items,items2020_1=items2020,contains_1=contains$1,dependencies_1=dependencies$2,propertyNames_1=propertyNames,additionalProperties_1=additionalProperties,properties_1=properties$1,patternProperties_1=patternProperties,not_1=not,anyOf_1=anyOf,oneOf_1=oneOf$1,allOf_1=allOf,if_1=_if,thenElse_1=thenElse;function getApplicator(a=!1){const _=[not_1.default,anyOf_1.default,oneOf_1.default,allOf_1.default,if_1.default,thenElse_1.default,propertyNames_1.default,additionalProperties_1.default,dependencies_1.default,properties_1.default,patternProperties_1.default];return a?_.push(prefixItems_1.default,items2020_1.default):_.push(additionalItems_1.default,items_1.default),_.push(contains_1.default),_}applicator.default=getApplicator;var format$3={},format$2={};Object.defineProperty(format$2,"__esModule",{value:!0});const codegen_1$2=codegen,error$2={message:({schemaCode:a})=>(0,codegen_1$2.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,codegen_1$2._)`{format: ${a}}`},def$1={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:error$2,code(a,_){const{gen:$,data:j,$data:_e,schema:et,schemaCode:tt,it:rt}=a,{opts:it,errSchemaPath:ct,schemaEnv:dt,self:mt}=rt;if(!it.validateFormats)return;_e?vt():wt();function vt(){const xt=$.scopeValue("formats",{ref:mt.formats,code:it.code.formats}),bt=$.const("fDef",(0,codegen_1$2._)`${xt}[${tt}]`),Et=$.let("fType"),$t=$.let("format");$.if((0,codegen_1$2._)`typeof ${bt} == "object" && !(${bt} instanceof RegExp)`,()=>$.assign(Et,(0,codegen_1$2._)`${bt}.type || "string"`).assign($t,(0,codegen_1$2._)`${bt}.validate`),()=>$.assign(Et,(0,codegen_1$2._)`"string"`).assign($t,bt)),a.fail$data((0,codegen_1$2.or)(At(),Rt()));function At(){return it.strictSchema===!1?codegen_1$2.nil:(0,codegen_1$2._)`${tt} && !${$t}`}function Rt(){const Pt=dt.$async?(0,codegen_1$2._)`(${bt}.async ? await ${$t}(${j}) : ${$t}(${j}))`:(0,codegen_1$2._)`${$t}(${j})`,Ct=(0,codegen_1$2._)`(typeof ${$t} == "function" ? ${Pt} : ${$t}.test(${j}))`;return(0,codegen_1$2._)`${$t} && ${$t} !== true && ${Et} === ${_} && !${Ct}`}}function wt(){const xt=mt.formats[et];if(!xt){At();return}if(xt===!0)return;const[bt,Et,$t]=Rt(xt);bt===_&&a.pass(Pt());function At(){if(it.strictSchema===!1){mt.logger.warn(Ct());return}throw new Error(Ct());function Ct(){return`unknown format "${et}" ignored in schema at path "${ct}"`}}function Rt(Ct){const Ot=Ct instanceof RegExp?(0,codegen_1$2.regexpCode)(Ct):it.code.formats?(0,codegen_1$2._)`${it.code.formats}${(0,codegen_1$2.getProperty)(et)}`:void 0,kt=$.scopeValue("formats",{key:et,ref:Ct,code:Ot});return typeof Ct=="object"&&!(Ct instanceof RegExp)?[Ct.type||"string",Ct.validate,(0,codegen_1$2._)`${kt}.validate`]:["string",Ct,kt]}function Pt(){if(typeof xt=="object"&&!(xt instanceof RegExp)&&xt.async){if(!dt.$async)throw new Error("async format in sync schema");return(0,codegen_1$2._)`await ${$t}(${j})`}return typeof Et=="function"?(0,codegen_1$2._)`${$t}(${j})`:(0,codegen_1$2._)`${$t}.test(${j})`}}}};format$2.default=def$1;Object.defineProperty(format$3,"__esModule",{value:!0});const format_1$1=format$2,format$1=[format_1$1.default];format$3.default=format$1;var metadata={};Object.defineProperty(metadata,"__esModule",{value:!0});metadata.contentVocabulary=metadata.metadataVocabulary=void 0;metadata.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];metadata.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(draft7,"__esModule",{value:!0});const core_1=core$1,validation_1=validation$2,applicator_1=applicator,format_1=format$3,metadata_1=metadata,draft7Vocabularies=[core_1.default,validation_1.default,(0,applicator_1.default)(),format_1.default,metadata_1.metadataVocabulary,metadata_1.contentVocabulary];draft7.default=draft7Vocabularies;var discriminator={},types$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.DiscrError=void 0,function(_){_.Tag="tag",_.Mapping="mapping"}(a.DiscrError||(a.DiscrError={}))})(types$2);Object.defineProperty(discriminator,"__esModule",{value:!0});const codegen_1$1=codegen,types_1=types$2,compile_1=compile,util_1=util$1,error$1={message:({params:{discrError:a,tagName:_}})=>a===types_1.DiscrError.Tag?`tag "${_}" must be string`:`value of tag "${_}" must be in oneOf`,params:({params:{discrError:a,tag:_,tagName:$}})=>(0,codegen_1$1._)`{error: ${a}, tag: ${$}, tagValue: ${_}}`},def={keyword:"discriminator",type:"object",schemaType:"object",error:error$1,code(a){const{gen:_,data:$,schema:j,parentSchema:_e,it:et}=a,{oneOf:tt}=_e;if(!et.opts.discriminator)throw new Error("discriminator: requires discriminator option");const rt=j.propertyName;if(typeof rt!="string")throw new Error("discriminator: requires propertyName");if(j.mapping)throw new Error("discriminator: mapping is not supported");if(!tt)throw new Error("discriminator: requires oneOf keyword");const it=_.let("valid",!1),ct=_.const("tag",(0,codegen_1$1._)`${$}${(0,codegen_1$1.getProperty)(rt)}`);_.if((0,codegen_1$1._)`typeof ${ct} == "string"`,()=>dt(),()=>a.error(!1,{discrError:types_1.DiscrError.Tag,tag:ct,tagName:rt})),a.ok(it);function dt(){const wt=vt();_.if(!1);for(const xt in wt)_.elseIf((0,codegen_1$1._)`${ct} === ${xt}`),_.assign(it,mt(wt[xt]));_.else(),a.error(!1,{discrError:types_1.DiscrError.Mapping,tag:ct,tagName:rt}),_.endIf()}function mt(wt){const xt=_.name("valid"),bt=a.subschema({keyword:"oneOf",schemaProp:wt},xt);return a.mergeEvaluated(bt,codegen_1$1.Name),xt}function vt(){var wt;const xt={},bt=$t(_e);let Et=!0;for(let Pt=0;Pt<tt.length;Pt++){let Ct=tt[Pt];Ct!=null&&Ct.$ref&&!(0,util_1.schemaHasRulesButRef)(Ct,et.self.RULES)&&(Ct=compile_1.resolveRef.call(et.self,et.schemaEnv.root,et.baseId,Ct==null?void 0:Ct.$ref),Ct instanceof compile_1.SchemaEnv&&(Ct=Ct.schema));const Ot=(wt=Ct==null?void 0:Ct.properties)===null||wt===void 0?void 0:wt[rt];if(typeof Ot!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${rt}"`);Et=Et&&(bt||$t(Ct)),At(Ot,Pt)}if(!Et)throw new Error(`discriminator: "${rt}" must be required`);return xt;function $t({required:Pt}){return Array.isArray(Pt)&&Pt.includes(rt)}function At(Pt,Ct){if(Pt.const)Rt(Pt.const,Ct);else if(Pt.enum)for(const Ot of Pt.enum)Rt(Ot,Ct);else throw new Error(`discriminator: "properties/${rt}" must have "const" or "enum"`)}function Rt(Pt,Ct){if(typeof Pt!="string"||Pt in xt)throw new Error(`discriminator: "${rt}" values must be unique strings`);xt[Pt]=Ct}}}};discriminator.default=def;const $schema="http://json-schema.org/draft-07/schema#",$id="http://json-schema.org/draft-07/schema#",title$5="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:!0,default:[]}},type$2=["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:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},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:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},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:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},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:"#"}},require$$3$1={$schema,$id,title:title$5,definitions,type:type$2,properties,default:!0};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0}),_.MissingRefError=_.ValidationError=_.CodeGen=_.Name=_.nil=_.stringify=_.str=_._=_.KeywordCxt=void 0;const $=core$2,j=draft7,_e=discriminator,et=require$$3$1,tt=["/properties"],rt="http://json-schema.org/draft-07/schema";class it extends $.default{_addVocabularies(){super._addVocabularies(),j.default.forEach(xt=>this.addVocabulary(xt)),this.opts.discriminator&&this.addKeyword(_e.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const xt=this.opts.$data?this.$dataMetaSchema(et,tt):et;this.addMetaSchema(xt,rt,!1),this.refs["http://json-schema.org/schema"]=rt}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(rt)?rt:void 0)}}a.exports=_=it,Object.defineProperty(_,"__esModule",{value:!0}),_.default=it;var ct=validate;Object.defineProperty(_,"KeywordCxt",{enumerable:!0,get:function(){return ct.KeywordCxt}});var dt=codegen;Object.defineProperty(_,"_",{enumerable:!0,get:function(){return dt._}}),Object.defineProperty(_,"str",{enumerable:!0,get:function(){return dt.str}}),Object.defineProperty(_,"stringify",{enumerable:!0,get:function(){return dt.stringify}}),Object.defineProperty(_,"nil",{enumerable:!0,get:function(){return dt.nil}}),Object.defineProperty(_,"Name",{enumerable:!0,get:function(){return dt.Name}}),Object.defineProperty(_,"CodeGen",{enumerable:!0,get:function(){return dt.CodeGen}});var mt=validation_error;Object.defineProperty(_,"ValidationError",{enumerable:!0,get:function(){return mt.default}});var vt=ref_error;Object.defineProperty(_,"MissingRefError",{enumerable:!0,get:function(){return vt.default}})})(ajv,ajv.exports);var ajvExports=ajv.exports,dist$9={exports:{}},keywords$2={exports:{}},_typeof$A={exports:{}},_typeof$z={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen,j=["undefined","string","number","object","function","boolean","symbol"];function _e(){return{keyword:"typeof",schemaType:["string","array"],code(et){const{data:tt,schema:rt,schemaValue:it}=et;et.fail(typeof rt=="string"?(0,$._)`typeof ${tt} != ${rt}`:(0,$._)`${it}.indexOf(typeof ${tt}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:j},{type:"array",items:{type:"string",enum:j}}]}}}_.default=_e,a.exports=_e})(_typeof$z,_typeof$z.exports);var _typeofExports$1=_typeof$z.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(_typeofExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(_typeof$A,_typeof$A.exports);var _typeofExports=_typeof$A.exports,_instanceof$1={exports:{}},_instanceof={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $={Object,Array,Function,Number,String,Date,RegExp};typeof Buffer$G<"u"&&($.Buffer=Buffer$G),typeof Promise<"u"&&($.Promise=Promise);const j=Object.assign(_e,{CONSTRUCTORS:$});function _e(){return{keyword:"instanceof",schemaType:["string","array"],compile(tt){if(typeof tt=="string"){const rt=et(tt);return it=>it instanceof rt}if(Array.isArray(tt)){const rt=tt.map(et);return it=>{for(const ct of rt)if(it instanceof ct)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function et(tt){const rt=$[tt];if(rt)return rt;throw new Error(`invalid "instanceof" keyword value ${tt}`)}_.default=j,a.exports=j})(_instanceof,_instanceof.exports);var _instanceofExports$1=_instanceof.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(_instanceofExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(_instanceof$1,_instanceof$1.exports);var _instanceofExports=_instanceof$1.exports,range$1={exports:{}},range={exports:{}},_range={};Object.defineProperty(_range,"__esModule",{value:!0});function getRangeDef(a){return()=>({keyword:a,type:"number",schemaType:"array",macro:function([$,j]){return _($,j),a==="range"?{minimum:$,maximum:j}:{exclusiveMinimum:$,exclusiveMaximum:j}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function _($,j){if($>j||a==="exclusiveRange"&&$===j)throw new Error("There are no numbers in range")}}_range.default=getRangeDef;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const _e=(0,$(_range).default)("range");_.default=_e,a.exports=_e})(range,range.exports);var rangeExports$1=range.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(rangeExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(range$1,range$1.exports);var rangeExports=range$1.exports,exclusiveRange$1={exports:{}},exclusiveRange={exports:{}};(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const _e=(0,$(_range).default)("exclusiveRange");_.default=_e,a.exports=_e})(exclusiveRange,exclusiveRange.exports);var exclusiveRangeExports$1=exclusiveRange.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(exclusiveRangeExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(exclusiveRange$1,exclusiveRange$1.exports);var exclusiveRangeExports=exclusiveRange$1.exports,regexp$1={exports:{}},regexp={exports:{}},_util={};Object.defineProperty(_util,"__esModule",{value:!0});_util.usePattern=_util.metaSchemaRef=void 0;const codegen_1=codegen,META_SCHEMA_ID="http://json-schema.org/schema";function metaSchemaRef({defaultMeta:a}={}){return a===!1?{}:{$ref:a||META_SCHEMA_ID}}_util.metaSchemaRef=metaSchemaRef;function usePattern({gen:a,it:{opts:_}},$,j=_.unicodeRegExp?"u":""){const _e=new RegExp($,j);return a.scopeValue("pattern",{key:_e.toString(),ref:_e,code:(0,codegen_1._)`new RegExp(${$}, ${j})`})}_util.usePattern=usePattern;(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen,j=_util,_e={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},et=/^\/(.*)\/([gimuy]*)$/;function tt(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(rt){const{data:it,schema:ct}=rt,dt=mt(ct);rt.pass((0,$._)`${dt}.test(${it})`);function mt(vt){if(typeof vt=="object")return(0,j.usePattern)(rt,vt.pattern,vt.flags);const wt=et.exec(vt);if(wt)return(0,j.usePattern)(rt,wt[1],wt[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},_e]}}}_.default=tt,a.exports=tt})(regexp,regexp.exports);var regexpExports$1=regexp.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(regexpExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(regexp$1,regexp$1.exports);var regexpExports=regexp$1.exports,transform$1={exports:{}},transform={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen,j={trimStart:it=>it.trimStart(),trimEnd:it=>it.trimEnd(),trimLeft:it=>it.trimStart(),trimRight:it=>it.trimEnd(),trim:it=>it.trim(),toLowerCase:it=>it.toLowerCase(),toUpperCase:it=>it.toUpperCase(),toEnumCase:(it,ct)=>(ct==null?void 0:ct.hash[rt(it)])||it},_e=Object.assign(et,{transform:j});function et(){return{keyword:"transform",schemaType:"array",before:"enum",code(it){const{gen:ct,data:dt,schema:mt,parentSchema:vt,it:wt}=it,{parentData:xt,parentDataProperty:bt}=wt,Et=mt;if(!Et.length)return;let $t;if(Et.includes("toEnumCase")){const Rt=tt(vt);$t=ct.scopeValue("obj",{ref:Rt,code:(0,$.stringify)(Rt)})}ct.if((0,$._)`typeof ${dt} == "string" && ${xt} !== undefined`,()=>{ct.assign(dt,At(Et.slice())),ct.assign((0,$._)`${xt}[${bt}]`,dt)});function At(Rt){if(!Rt.length)return dt;const Pt=Rt.pop();if(!(Pt in j))throw new Error(`transform: unknown transformation ${Pt}`);const Ct=ct.scopeValue("func",{ref:j[Pt],code:(0,$._)`require("ajv-keywords/dist/definitions/transform").transform${(0,$.getProperty)(Pt)}`}),Ot=At(Rt);return $t&&Pt==="toEnumCase"?(0,$._)`${Ct}(${Ot}, ${$t})`:(0,$._)`${Ct}(${Ot})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(j)}}}}function tt(it){const ct={hash:{}};if(!it.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const dt of it.enum){if(typeof dt!="string")continue;const mt=rt(dt);if(ct.hash[mt])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');ct.hash[mt]=dt}return ct}function rt(it){return it.toLowerCase()}_.default=_e,a.exports=_e})(transform,transform.exports);var transformExports$1=transform.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(transformExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(transform$1,transform$1.exports);var transformExports=transform$1.exports,uniqueItemProperties$1={exports:{}},uniqueItemProperties={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=fastDeepEqual,j=["number","integer","string","boolean","null"];function _e(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(tt,rt){const it=et(tt,rt);return ct=>{if(ct.length<=1)return!0;for(let dt=0;dt<tt.length;dt++){const mt=tt[dt];if(it[dt]){const vt={};for(const wt of ct){if(!wt||typeof wt!="object")continue;let xt=wt[mt];if(!(xt&&typeof xt=="object")){if(typeof xt=="string"&&(xt='"'+xt),vt[xt])return!1;vt[xt]=!0}}}else for(let vt=ct.length;vt--;){const wt=ct[vt];if(!(!wt||typeof wt!="object"))for(let xt=vt;xt--;){const bt=ct[xt];if(bt&&typeof bt=="object"&&$(wt[mt],bt[mt]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}_.default=_e;function et(tt,rt){return tt.map(it=>{var ct,dt,mt;const vt=(mt=(dt=(ct=rt.items)===null||ct===void 0?void 0:ct.properties)===null||dt===void 0?void 0:dt[it])===null||mt===void 0?void 0:mt.type;return Array.isArray(vt)?!vt.includes("object")&&!vt.includes("array"):j.includes(vt)})}a.exports=_e})(uniqueItemProperties,uniqueItemProperties.exports);var uniqueItemPropertiesExports$1=uniqueItemProperties.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(uniqueItemPropertiesExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(uniqueItemProperties$1,uniqueItemProperties$1.exports);var uniqueItemPropertiesExports=uniqueItemProperties$1.exports,allRequired$1={exports:{}},allRequired={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});function $(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(j,_e){if(!j)return!0;const et=Object.keys(_e.properties);return et.length===0?!0:{required:et}},dependencies:["properties"]}}_.default=$,a.exports=$})(allRequired,allRequired.exports);var allRequiredExports$1=allRequired.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(allRequiredExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(allRequired$1,allRequired$1.exports);var allRequiredExports=allRequired$1.exports,anyRequired$1={exports:{}},anyRequired={exports:{}},_required={};Object.defineProperty(_required,"__esModule",{value:!0});function getRequiredDef(a){return()=>({keyword:a,type:"object",schemaType:"array",macro(_){return _.length===0?!0:_.length===1?{required:_}:{[a==="anyRequired"?"anyOf":"oneOf"]:_.map(j=>({required:[j]}))}},metaSchema:{type:"array",items:{type:"string"}}})}_required.default=getRequiredDef;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const _e=(0,$(_required).default)("anyRequired");_.default=_e,a.exports=_e})(anyRequired,anyRequired.exports);var anyRequiredExports$1=anyRequired.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(anyRequiredExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(anyRequired$1,anyRequired$1.exports);var anyRequiredExports=anyRequired$1.exports,oneRequired$1={exports:{}},oneRequired={exports:{}};(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const _e=(0,$(_required).default)("oneRequired");_.default=_e,a.exports=_e})(oneRequired,oneRequired.exports);var oneRequiredExports$1=oneRequired.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(oneRequiredExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(oneRequired$1,oneRequired$1.exports);var oneRequiredExports=oneRequired$1.exports,patternRequired$1={exports:{}},patternRequired={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen,j=_util,_e={message:({params:{missingPattern:tt}})=>(0,$.str)`should have property matching pattern '${tt}'`,params:({params:{missingPattern:tt}})=>(0,$._)`{missingPattern: ${tt}}`};function et(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:_e,code(tt){const{gen:rt,schema:it,data:ct}=tt;if(it.length===0)return;const dt=rt.let("valid",!0);for(const vt of it)mt(vt);function mt(vt){const wt=rt.let("matched",!1);rt.forIn("key",ct,xt=>{rt.assign(wt,(0,$._)`${(0,j.usePattern)(tt,vt)}.test(${xt})`),rt.if(wt,()=>rt.break())}),tt.setParams({missingPattern:vt}),rt.assign(dt,(0,$.and)(dt,wt)),tt.pass(dt)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}_.default=et,a.exports=et})(patternRequired,patternRequired.exports);var patternRequiredExports$1=patternRequired.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(patternRequiredExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(patternRequired$1,patternRequired$1.exports);var patternRequiredExports=patternRequired$1.exports,prohibited$1={exports:{}},prohibited={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});function $(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(j){return j.length===0?!0:j.length===1?{not:{required:j}}:{not:{anyOf:j.map(_e=>({required:[_e]}))}}},metaSchema:{type:"array",items:{type:"string"}}}}_.default=$,a.exports=$})(prohibited,prohibited.exports);var prohibitedExports$1=prohibited.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(prohibitedExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(prohibited$1,prohibited$1.exports);var prohibitedExports=prohibited$1.exports,deepProperties$1={exports:{}},deepProperties={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=_util;function j(tt){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(rt){const it=[];for(const ct in rt)it.push(_e(ct,rt[ct]));return{allOf:it}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,$.metaSchemaRef)(tt)}}}_.default=j;function _e(tt,rt){const it=tt.split("/"),ct={};let dt=ct;for(let mt=1;mt<it.length;mt++){let vt=it[mt];const wt=mt===it.length-1;vt=et(vt);const xt=dt.properties={};let bt;if(/[0-9]+/.test(vt)){let Et=+vt;for(bt=dt.items=[],dt.type=["object","array"];Et--;)bt.push({})}else dt.type="object";dt=wt?rt:{},xt[vt]=dt,bt&&bt.push(dt)}return ct}function et(tt){return tt.replace(/~1/g,"/").replace(/~0/g,"~")}a.exports=j})(deepProperties,deepProperties.exports);var deepPropertiesExports$1=deepProperties.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(deepPropertiesExports$1),_e=(et,tt)=>et.addKeyword((0,j.default)(tt));_.default=_e,a.exports=_e})(deepProperties$1,deepProperties$1.exports);var deepPropertiesExports=deepProperties$1.exports,deepRequired$1={exports:{}},deepRequired={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen;function j(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(et){const{schema:tt,data:rt}=et,it=tt.map(dt=>(0,$._)`(${ct(dt)}) === undefined`);et.fail((0,$.or)(...it));function ct(dt){if(dt==="")throw new Error("empty JSON pointer not allowed");const mt=dt.split("/");let vt=rt;const wt=mt.map((xt,bt)=>bt?vt=(0,$._)`${vt}${(0,$.getProperty)(_e(xt))}`:vt);return(0,$.and)(...wt)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}_.default=j;function _e(et){return et.replace(/~1/g,"/").replace(/~0/g,"~")}a.exports=j})(deepRequired,deepRequired.exports);var deepRequiredExports$1=deepRequired.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(deepRequiredExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(deepRequired$1,deepRequired$1.exports);var deepRequiredExports=deepRequired$1.exports,dynamicDefaults$1={exports:{}},dynamicDefaults={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $={},j={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:dt=>{var mt;const vt=(mt=dt==null?void 0:dt.max)!==null&&mt!==void 0?mt:2;return()=>Math.floor(Math.random()*vt)},seq:dt=>{var mt;const vt=(mt=dt==null?void 0:dt.name)!==null&&mt!==void 0?mt:"";return $[vt]||($[vt]=0),()=>$[vt]++}},_e=Object.assign(et,{DEFAULTS:j});function et(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(dt,mt,vt){if(!vt.opts.useDefaults||vt.compositeRule)return()=>!0;const wt={};for(const bt in dt)wt[bt]=tt(dt[bt]);const xt=vt.opts.useDefaults==="empty";return bt=>{for(const Et in dt)(bt[Et]===void 0||xt&&(bt[Et]===null||bt[Et]===""))&&(bt[Et]=wt[Et]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function tt(dt){return typeof dt=="object"?rt(dt):it(dt)}function rt({func:dt,args:mt}){const vt=j[dt];return ct(dt,vt),vt(mt)}function it(dt=""){const mt=j[dt];return ct(dt,mt),mt()}function ct(dt,mt){if(!mt)throw new Error(`invalid "dynamicDefaults" keyword property value: ${dt}`)}_.default=_e,a.exports=_e})(dynamicDefaults,dynamicDefaults.exports);var dynamicDefaultsExports$1=dynamicDefaults.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(dynamicDefaultsExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(dynamicDefaults$1,dynamicDefaults$1.exports);var dynamicDefaultsExports=dynamicDefaults$1.exports,select$1={exports:{}},select={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen,j=_util,_e={message:({params:{schemaProp:tt}})=>tt?(0,$.str)`should match case "${tt}" schema`:(0,$.str)`should match default case schema`,params:({params:{schemaProp:tt}})=>tt?(0,$._)`{failingCase: ${tt}}`:(0,$._)`{failingDefault: true}`};function et(tt){const rt=(0,j.metaSchemaRef)(tt);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:_e,dependencies:["selectCases"],code(it){const{gen:ct,schemaCode:dt,parentSchema:mt}=it;it.block$data($.nil,()=>{const vt=ct.let("valid",!0),wt=ct.name("_valid"),xt=ct.const("value",(0,$._)`${dt} === null ? "null" : ${dt}`);ct.if(!1);for(const bt in mt.selectCases){it.setParams({schemaProp:bt}),ct.elseIf((0,$._)`"" + ${xt} == ${bt}`);const Et=it.subschema({keyword:"selectCases",schemaProp:bt},wt);it.mergeEvaluated(Et,$.Name),ct.assign(vt,wt)}if(ct.else(),mt.selectDefault!==void 0){it.setParams({schemaProp:void 0});const bt=it.subschema({keyword:"selectDefault"},wt);it.mergeEvaluated(bt,$.Name),ct.assign(vt,wt)}ct.endIf(),it.pass(vt)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:rt}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:rt}]}_.default=et,a.exports=et})(select,select.exports);var selectExports$1=select.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(selectExports$1),_e=(et,tt)=>((0,j.default)(tt).forEach(rt=>et.addKeyword(rt)),et);_.default=_e,a.exports=_e})(select$1,select$1.exports);var selectExports=select$1.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(_typeofExports),_e=$(_instanceofExports),et=$(rangeExports),tt=$(exclusiveRangeExports),rt=$(regexpExports),it=$(transformExports),ct=$(uniqueItemPropertiesExports),dt=$(allRequiredExports),mt=$(anyRequiredExports),vt=$(oneRequiredExports),wt=$(patternRequiredExports),xt=$(prohibitedExports),bt=$(deepPropertiesExports),Et=$(deepRequiredExports),$t=$(dynamicDefaultsExports),At=$(selectExports),Rt={typeof:j.default,instanceof:_e.default,range:et.default,exclusiveRange:tt.default,regexp:rt.default,transform:it.default,uniqueItemProperties:ct.default,allRequired:dt.default,anyRequired:mt.default,oneRequired:vt.default,patternRequired:wt.default,prohibited:xt.default,deepProperties:bt.default,deepRequired:Et.default,dynamicDefaults:$t.default,select:At.default};_.default=Rt,a.exports=Rt})(keywords$2,keywords$2.exports);var keywordsExports=keywords$2.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(keywordsExports),_e=(tt,rt)=>{if(Array.isArray(rt)){for(const it of rt)et(it)(tt);return tt}if(rt)return et(rt)(tt),tt;for(rt in j.default)et(rt)(tt);return tt};_e.get=et;function et(tt){const rt=j.default[tt];if(!rt)throw new Error("Unknown keyword "+tt);return rt}_.default=_e,a.exports=_e,a.exports.default=_e})(dist$9,dist$9.exports);var distExports$2=dist$9.exports,dist$8={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=ajvExports,j=codegen,_e=code$2,et=validate,tt=errors,rt=names$1,it="errorMessage",ct=new $.Name("emUsed"),dt={required:"missingProperty",dependencies:"property",dependentRequired:"property"},mt=/\$\{[^}]+\}/,vt=/\$\{([^}]+)\}/g,wt=/^""\s*\+\s*|\s*\+\s*""$/g;function xt(Et){return{keyword:it,schemaType:["string","object"],post:!0,code($t){const{gen:At,data:Rt,schema:Pt,schemaValue:Ct,it:Ot}=$t;if(Ot.createErrors===!1)return;const kt=Pt,Dt=j.strConcat(rt.default.instancePath,Ot.errorPath);At.if($._`${rt.default.errors} > 0`,()=>{if(typeof kt=="object"){const[Tt,It]=zt(kt);It&>(It),Tt&&nt(Tt),ot(Nt(kt))}const Mt=typeof kt=="string"?kt:kt._;Mt&&st(Mt),Et.keepErrors||lt()});function Nt({properties:Mt,items:Tt}){const It={};if(Mt){It.props={};for(const Lt in Mt)It.props[Lt]=[]}if(Tt){It.items={};for(let Lt=0;Lt<Tt.length;Lt++)It.items[Lt]=[]}return It}function zt(Mt){let Tt,It;for(const Lt in Mt){if(Lt==="properties"||Lt==="items")continue;const jt=Mt[Lt];if(typeof jt=="object"){Tt||(Tt={});const Gt=Tt[Lt]={};for(const tr in jt)Gt[tr]=[]}else It||(It={}),It[Lt]=[]}return[Tt,It]}function gt(Mt){const Tt=At.const("emErrors",$.stringify(Mt)),It=At.const("templates",yt(Mt,Pt));At.forOf("err",rt.default.vErrors,tr=>At.if(pt(tr,Tt),()=>At.code($._`${Tt}[${tr}.keyword].push(${tr})`).assign($._`${tr}.${ct}`,!0)));const{singleError:Lt}=Et;if(Lt){const tr=At.let("message",$._`""`),er=At.let("paramsErrors",$._`[]`);jt(Jt=>{At.if(tr,()=>At.code($._`${tr} += ${typeof Lt=="string"?Lt:";"}`)),At.code($._`${tr} += ${Gt(Jt)}`),At.assign(er,$._`${er}.concat(${Tt}[${Jt}])`)}),tt.reportError($t,{message:tr,params:$._`{errors: ${er}}`})}else jt(tr=>tt.reportError($t,{message:Gt(tr),params:$._`{errors: ${Tt}[${tr}]}`}));function jt(tr){At.forIn("key",Tt,er=>At.if($._`${Tt}[${er}].length`,()=>tr(er)))}function Gt(tr){return $._`${tr} in ${It} ? ${It}[${tr}]() : ${Ct}[${tr}]`}}function nt(Mt){const Tt=At.const("emErrors",$.stringify(Mt)),It=[];for(const er in Mt)It.push([er,yt(Mt[er],Pt[er])]);const Lt=At.const("templates",At.object(...It)),jt=At.scopeValue("obj",{ref:dt,code:$.stringify(dt)}),Gt=At.let("emPropParams"),tr=At.let("emParamsErrors");At.forOf("err",rt.default.vErrors,er=>At.if(pt(er,Tt),()=>{At.assign(Gt,$._`${jt}[${er}.keyword]`),At.assign(tr,$._`${Tt}[${er}.keyword][${er}.params[${Gt}]]`),At.if(tr,()=>At.code($._`${tr}.push(${er})`).assign($._`${er}.${ct}`,!0))})),At.forIn("key",Tt,er=>At.forIn("keyProp",$._`${Tt}[${er}]`,Jt=>{At.assign(tr,$._`${Tt}[${er}][${Jt}]`),At.if($._`${tr}.length`,()=>{const Wt=At.const("tmpl",$._`${Lt}[${er}] && ${Lt}[${er}][${Jt}]`);tt.reportError($t,{message:$._`${Wt} ? ${Wt}() : ${Ct}[${er}][${Jt}]`,params:$._`{errors: ${tr}}`})})}))}function ot(Mt){const{props:Tt,items:It}=Mt;if(!Tt&&!It)return;const Lt=$._`typeof ${Rt} == "object"`,jt=$._`Array.isArray(${Rt})`,Gt=At.let("emErrors");let tr,er;const Jt=At.let("templates");Tt&&It?(tr=At.let("emChildKwd"),At.if(Lt),At.if(jt,()=>{Wt(It,Pt.items),At.assign(tr,$.str`items`)},()=>{Wt(Tt,Pt.properties),At.assign(tr,$.str`properties`)}),er=$._`[${tr}]`):It?(At.if(jt),Wt(It,Pt.items),er=$._`.items`):Tt&&(At.if(j.and(Lt,j.not(jt))),Wt(Tt,Pt.properties),er=$._`.properties`),At.forOf("err",rt.default.vErrors,Kt=>_t(Kt,Gt,lr=>At.code($._`${Gt}[${lr}].push(${Kt})`).assign($._`${Kt}.${ct}`,!0))),At.forIn("key",Gt,Kt=>At.if($._`${Gt}[${Kt}].length`,()=>{tt.reportError($t,{message:$._`${Kt} in ${Jt} ? ${Jt}[${Kt}]() : ${Ct}${er}[${Kt}]`,params:$._`{errors: ${Gt}[${Kt}]}`}),At.assign($._`${rt.default.vErrors}[${rt.default.errors}-1].instancePath`,$._`${Dt} + "/" + ${Kt}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),At.endIf();function Wt(Kt,lr){At.assign(Gt,$.stringify(Kt)),At.assign(Jt,yt(Kt,lr))}}function st(Mt){const Tt=At.const("emErrs",$._`[]`);At.forOf("err",rt.default.vErrors,It=>At.if(St(It),()=>At.code($._`${Tt}.push(${It})`).assign($._`${It}.${ct}`,!0))),At.if($._`${Tt}.length`,()=>tt.reportError($t,{message:at(Mt),params:$._`{errors: ${Tt}}`}))}function lt(){const Mt=At.const("emErrs",$._`[]`);At.forOf("err",rt.default.vErrors,Tt=>At.if($._`!${Tt}.${ct}`,()=>At.code($._`${Mt}.push(${Tt})`))),At.assign(rt.default.vErrors,Mt).assign(rt.default.errors,$._`${Mt}.length`)}function pt(Mt,Tt){return j.and($._`${Mt}.keyword !== ${it}`,$._`!${Mt}.${ct}`,$._`${Mt}.instancePath === ${Dt}`,$._`${Mt}.keyword in ${Tt}`,$._`${Mt}.schemaPath.indexOf(${Ot.errSchemaPath}) === 0`,$._`/^\\/[^\\/]*$/.test(${Mt}.schemaPath.slice(${Ot.errSchemaPath.length}))`)}function _t(Mt,Tt,It){At.if(j.and($._`${Mt}.keyword !== ${it}`,$._`!${Mt}.${ct}`,$._`${Mt}.instancePath.indexOf(${Dt}) === 0`),()=>{const Lt=At.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:$._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),jt=At.const("emMatches",$._`${Lt}.exec(${Mt}.instancePath.slice(${Dt}.length))`),Gt=At.const("emChild",$._`${jt} && ${jt}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);At.if($._`${Gt} !== undefined && ${Gt} in ${Tt}`,()=>It(Gt))})}function St(Mt){return j.and($._`${Mt}.keyword !== ${it}`,$._`!${Mt}.${ct}`,j.or($._`${Mt}.instancePath === ${Dt}`,j.and($._`${Mt}.instancePath.indexOf(${Dt}) === 0`,$._`${Mt}.instancePath[${Dt}.length] === "/"`)),$._`${Mt}.schemaPath.indexOf(${Ot.errSchemaPath}) === 0`,$._`${Mt}.schemaPath[${Ot.errSchemaPath}.length] === "/"`)}function yt(Mt,Tt){const It=[];for(const Lt in Mt){const jt=Tt[Lt];mt.test(jt)&&It.push([Lt,ht(jt)])}return At.object(...It)}function at(Mt){return mt.test(Mt)?new _e._Code(_e.safeStringify(Mt).replace(vt,(Tt,It)=>`" + JSON.stringify(${et.getData(It,Ot)}) + "`).replace(wt,"")):$.stringify(Mt)}function ht(Mt){return $._`function(){return ${at(Mt)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const bt=(Et,$t={})=>{if(!Et.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(Et.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return Et.addKeyword(xt($t))};_.default=bt,a.exports=bt,a.exports.default=bt})(dist$8,dist$8.exports);var distExports$1=dist$8.exports,__importDefault$6=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(validation$3,"__esModule",{value:!0});validation$3.validateType=validation$3.generateLazyValidator=validation$3.Ajv=void 0;const ajv_1$1=__importDefault$6(ajvExports);validation$3.Ajv=ajv_1$1.default;const ajv_keywords_1$1=__importDefault$6(distExports$2),ajv_errors_1$1=__importDefault$6(distExports$1);function generateLazyValidator$1(a,_){let $=null;const j=(_e,et)=>{if(!$){const tt=new ajv_1$1.default({$data:!0,allErrors:!0});(0,ajv_keywords_1$1.default)(tt),(0,ajv_errors_1$1.default)(tt,{singleError:!0}),_==null||_.forEach(rt=>tt.addKeyword(rt)),$=tt.compile(a),Object.defineProperty(j,"errors",{get(){return $==null?void 0:$.errors}})}return $(_e,et)};return j}validation$3.generateLazyValidator=generateLazyValidator$1;function validateType$1(a,_){return a.validate(_)}validation$3.validateType=validateType$1;var chainName$1={},hasRequiredChainName$1;function requireChainName$1(){return hasRequiredChainName$1||(hasRequiredChainName$1=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.getChainId=a.ChainName=void 0;const _=validation$3,$=requireChainId$1();var j;(function(et){et.ETHEREUM_MAINNET="Ethereum Mainnet",et.ETHEREUM_ROPSTEN="Ropsten",et.ETHEREUM_RINKEBY="Rinkeby",et.ETHEREUM_GOERLI="Goerli",et.ETHEREUM_KOVAN="Kovan",et.ETHEREUM_SEPOLIA="Sepolia",et.MATIC_MAINNET="Polygon",et.MATIC_MUMBAI="Mumbai",et.MATIC_AMOY="Amoy",et.AVALANCHE_MAINNET="Avalanche",et.BINANCE_MAINNET="Binance Smart Chain",et.ARBITRUM_MAINNET="Arbitrum",et.OPTIMISM_MAINNET="Optimism",et.FANTOM_MAINNET="Fantom"})(j=a.ChainName||(a.ChainName={}));function _e(et){switch(et){case j.ETHEREUM_MAINNET:return $.ChainId.ETHEREUM_MAINNET;case j.ETHEREUM_ROPSTEN:return $.ChainId.ETHEREUM_ROPSTEN;case j.ETHEREUM_RINKEBY:return $.ChainId.ETHEREUM_RINKEBY;case j.ETHEREUM_GOERLI:return $.ChainId.ETHEREUM_GOERLI;case j.ETHEREUM_KOVAN:return $.ChainId.ETHEREUM_KOVAN;case j.ETHEREUM_SEPOLIA:return $.ChainId.ETHEREUM_SEPOLIA;case j.MATIC_MAINNET:return $.ChainId.MATIC_MAINNET;case j.MATIC_MUMBAI:return $.ChainId.MATIC_MUMBAI;case j.MATIC_AMOY:return $.ChainId.MATIC_AMOY;case j.AVALANCHE_MAINNET:return $.ChainId.AVALANCHE_MAINNET;case j.BINANCE_MAINNET:return $.ChainId.BSC_MAINNET;case j.ARBITRUM_MAINNET:return $.ChainId.ARBITRUM_MAINNET;case j.OPTIMISM_MAINNET:return $.ChainId.OPTIMISM_MAINNET;case j.FANTOM_MAINNET:return $.ChainId.FANTOM_MAINNET;default:return null}}a.getChainId=_e,function(et){et.schema={type:"string",enum:Object.values(et)},et.validate=(0,_.generateLazyValidator)(et.schema)}(j=a.ChainName||(a.ChainName={}))}(chainName$1)),chainName$1}var network$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Network=void 0;const _=validation$3;(function($){$.ETHEREUM="ETHEREUM",$.MATIC="MATIC",$.AVALANCHE="AVALANCHE",$.BSC="BINANCE SMART CHAIN",$.OPTIMISM="OPTIMISM",$.ARBITRUM="ARBITRUM",$.FANTOM="FANTOM"})(a.Network||(a.Network={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.Network||(a.Network={}))})(network$1);var hasRequiredChainId$1;function requireChainId$1(){return hasRequiredChainId$1||(hasRequiredChainId$1=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.getNetwork=a.getNetworkMapping=a.getURNProtocol=a.getChainName=a.ChainId=void 0;const _=validation$3,$=requireChainName$1(),j=network$1;var _e;(function(ct){ct[ct.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",ct[ct.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",ct[ct.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",ct[ct.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",ct[ct.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",ct[ct.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",ct[ct.MATIC_MAINNET=137]="MATIC_MAINNET",ct[ct.MATIC_MUMBAI=80001]="MATIC_MUMBAI",ct[ct.MATIC_AMOY=80002]="MATIC_AMOY",ct[ct.BSC_MAINNET=56]="BSC_MAINNET",ct[ct.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",ct[ct.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",ct[ct.FANTOM_MAINNET=250]="FANTOM_MAINNET",ct[ct.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(_e=a.ChainId||(a.ChainId={}));function et(ct){switch(ct){case _e.ETHEREUM_MAINNET:return $.ChainName.ETHEREUM_MAINNET;case _e.ETHEREUM_ROPSTEN:return $.ChainName.ETHEREUM_ROPSTEN;case _e.ETHEREUM_RINKEBY:return $.ChainName.ETHEREUM_RINKEBY;case _e.ETHEREUM_GOERLI:return $.ChainName.ETHEREUM_GOERLI;case _e.ETHEREUM_KOVAN:return $.ChainName.ETHEREUM_KOVAN;case _e.ETHEREUM_SEPOLIA:return $.ChainName.ETHEREUM_SEPOLIA;case _e.MATIC_MAINNET:return $.ChainName.MATIC_MAINNET;case _e.MATIC_MUMBAI:return $.ChainName.MATIC_MUMBAI;case _e.MATIC_AMOY:return $.ChainName.MATIC_AMOY;case _e.BSC_MAINNET:return $.ChainName.BINANCE_MAINNET;case _e.ARBITRUM_MAINNET:return $.ChainName.ARBITRUM_MAINNET;case _e.OPTIMISM_MAINNET:return $.ChainName.OPTIMISM_MAINNET;case _e.FANTOM_MAINNET:return $.ChainName.FANTOM_MAINNET;case _e.AVALANCHE_MAINNET:return $.ChainName.AVALANCHE_MAINNET;default:return null}}a.getChainName=et;function tt(ct){switch(ct){case _e.ETHEREUM_MAINNET:return"ethereum";case _e.ETHEREUM_ROPSTEN:return"ropsten";case _e.ETHEREUM_RINKEBY:return"rinkeby";case _e.ETHEREUM_GOERLI:return"goerli";case _e.ETHEREUM_KOVAN:return"kovan";case _e.ETHEREUM_SEPOLIA:return"sepolia";case _e.MATIC_MAINNET:return"matic";case _e.MATIC_MUMBAI:return"mumbai";case _e.MATIC_AMOY:return"amoy";default:return""}}a.getURNProtocol=tt;function rt(ct){const dt={[j.Network.BSC]:_e.BSC_MAINNET,[j.Network.OPTIMISM]:_e.OPTIMISM_MAINNET,[j.Network.ARBITRUM]:_e.ARBITRUM_MAINNET,[j.Network.FANTOM]:_e.FANTOM_MAINNET,[j.Network.AVALANCHE]:_e.AVALANCHE_MAINNET};switch(ct){case _e.ETHEREUM_MAINNET:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_MAINNET,[j.Network.MATIC]:_e.MATIC_MAINNET},dt);case _e.ETHEREUM_ROPSTEN:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_ROPSTEN,[j.Network.MATIC]:_e.MATIC_MUMBAI},dt);case _e.ETHEREUM_RINKEBY:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_RINKEBY,[j.Network.MATIC]:_e.MATIC_MUMBAI},dt);case _e.ETHEREUM_GOERLI:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_GOERLI,[j.Network.MATIC]:_e.MATIC_MUMBAI},dt);case _e.ETHEREUM_KOVAN:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_KOVAN,[j.Network.MATIC]:_e.MATIC_MUMBAI},dt);case _e.ETHEREUM_SEPOLIA:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_SEPOLIA,[j.Network.MATIC]:_e.MATIC_AMOY},dt);case _e.MATIC_MAINNET:return Object.assign({[j.Network.ETHEREUM]:_e.MATIC_MAINNET,[j.Network.MATIC]:_e.MATIC_MAINNET},dt);case _e.MATIC_MUMBAI:return Object.assign({[j.Network.ETHEREUM]:_e.MATIC_MUMBAI,[j.Network.MATIC]:_e.MATIC_MUMBAI},dt);case _e.MATIC_AMOY:return Object.assign({[j.Network.ETHEREUM]:_e.MATIC_AMOY,[j.Network.MATIC]:_e.MATIC_AMOY},dt);default:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_MAINNET,[j.Network.MATIC]:_e.MATIC_MAINNET},dt)}}a.getNetworkMapping=rt;function it(ct){switch(ct){case _e.ETHEREUM_MAINNET:case _e.ETHEREUM_ROPSTEN:case _e.ETHEREUM_GOERLI:case _e.ETHEREUM_KOVAN:case _e.ETHEREUM_RINKEBY:case _e.ETHEREUM_SEPOLIA:return j.Network.ETHEREUM;case _e.MATIC_MAINNET:case _e.MATIC_MUMBAI:case _e.MATIC_AMOY:return j.Network.MATIC;case _e.BSC_MAINNET:return j.Network.BSC;case _e.OPTIMISM_MAINNET:return j.Network.OPTIMISM;case _e.ARBITRUM_MAINNET:return j.Network.ARBITRUM;case _e.FANTOM_MAINNET:return j.Network.FANTOM;case _e.AVALANCHE_MAINNET:return j.Network.AVALANCHE}}a.getNetwork=it,function(ct){ct.schema={type:"number",enum:Object.values(ct)},ct.validate=(0,_.generateLazyValidator)(ct.schema)}(_e=a.ChainId||(a.ChainId={}))}(chainId$1)),chainId$1}var chainIdExports=requireChainId$1(),providerType$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.ProviderType=void 0;const _=validation$3;(function($){$.INJECTED="injected",$.MAGIC="magic",$.FORTMATIC="formatic",$.NETWORK="network",$.WALLET_CONNECT="wallet_connect",$.WALLET_CONNECT_V2="wallet_connect_v2",$.WALLET_LINK="wallet_link",$.METAMASK_MOBILE="metamask_mobile",$.AUTH_SERVER="auth_server"})(a.ProviderType||(a.ProviderType={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.ProviderType||(a.ProviderType={}))})(providerType$1);var ConnectorEvent;(function(a){a.Update="Web3ReactUpdate",a.Error="Web3ReactError",a.Deactivate="Web3ReactDeactivate"})(ConnectorEvent||(ConnectorEvent={}));var events={exports:{}},R=typeof Reflect=="object"?Reflect:null,ReflectApply=R&&typeof R.apply=="function"?R.apply:function(_,$,j){return Function.prototype.apply.call(_,$,j)},ReflectOwnKeys;R&&typeof R.ownKeys=="function"?ReflectOwnKeys=R.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:ReflectOwnKeys=function(_){return Object.getOwnPropertyNames(_)};function ProcessEmitWarning(a){console&&console.warn&&console.warn(a)}var NumberIsNaN=Number.isNaN||function(_){return _!==_};function EventEmitter(){EventEmitter.init.call(this)}events.exports=EventEmitter;events.exports.once=once$2;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=void 0;EventEmitter.prototype._eventsCount=0;EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(a){if(typeof a!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof a)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(a){if(typeof a!="number"||a<0||NumberIsNaN(a))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");defaultMaxListeners=a}});EventEmitter.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter.prototype.setMaxListeners=function(_){if(typeof _!="number"||_<0||NumberIsNaN(_))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+_+".");return this._maxListeners=_,this};function _getMaxListeners(a){return a._maxListeners===void 0?EventEmitter.defaultMaxListeners:a._maxListeners}EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter.prototype.emit=function(_){for(var $=[],j=1;j<arguments.length;j++)$.push(arguments[j]);var _e=_==="error",et=this._events;if(et!==void 0)_e=_e&&et.error===void 0;else if(!_e)return!1;if(_e){var tt;if($.length>0&&(tt=$[0]),tt instanceof Error)throw tt;var rt=new Error("Unhandled error."+(tt?" ("+tt.message+")":""));throw rt.context=tt,rt}var it=et[_];if(it===void 0)return!1;if(typeof it=="function")ReflectApply(it,this,$);else for(var ct=it.length,dt=arrayClone(it,ct),j=0;j<ct;++j)ReflectApply(dt[j],this,$);return!0};function _addListener(a,_,$,j){var _e,et,tt;if(checkListener($),et=a._events,et===void 0?(et=a._events=Object.create(null),a._eventsCount=0):(et.newListener!==void 0&&(a.emit("newListener",_,$.listener?$.listener:$),et=a._events),tt=et[_]),tt===void 0)tt=et[_]=$,++a._eventsCount;else if(typeof tt=="function"?tt=et[_]=j?[$,tt]:[tt,$]:j?tt.unshift($):tt.push($),_e=_getMaxListeners(a),_e>0&&tt.length>_e&&!tt.warned){tt.warned=!0;var rt=new Error("Possible EventEmitter memory leak detected. "+tt.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");rt.name="MaxListenersExceededWarning",rt.emitter=a,rt.type=_,rt.count=tt.length,ProcessEmitWarning(rt)}return a}EventEmitter.prototype.addListener=function(_,$){return _addListener(this,_,$,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(_,$){return _addListener(this,_,$,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(a,_,$){var j={fired:!1,wrapFn:void 0,target:a,type:_,listener:$},_e=onceWrapper.bind(j);return _e.listener=$,j.wrapFn=_e,_e}EventEmitter.prototype.once=function(_,$){return checkListener($),this.on(_,_onceWrap(this,_,$)),this};EventEmitter.prototype.prependOnceListener=function(_,$){return checkListener($),this.prependListener(_,_onceWrap(this,_,$)),this};EventEmitter.prototype.removeListener=function(_,$){var j,_e,et,tt,rt;if(checkListener($),_e=this._events,_e===void 0)return this;if(j=_e[_],j===void 0)return this;if(j===$||j.listener===$)--this._eventsCount===0?this._events=Object.create(null):(delete _e[_],_e.removeListener&&this.emit("removeListener",_,j.listener||$));else if(typeof j!="function"){for(et=-1,tt=j.length-1;tt>=0;tt--)if(j[tt]===$||j[tt].listener===$){rt=j[tt].listener,et=tt;break}if(et<0)return this;et===0?j.shift():spliceOne(j,et),j.length===1&&(_e[_]=j[0]),_e.removeListener!==void 0&&this.emit("removeListener",_,rt||$)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(_){var $,j,_e;if(j=this._events,j===void 0)return this;if(j.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):j[_]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete j[_]),this;if(arguments.length===0){var et=Object.keys(j),tt;for(_e=0;_e<et.length;++_e)tt=et[_e],tt!=="removeListener"&&this.removeAllListeners(tt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if($=j[_],typeof $=="function")this.removeListener(_,$);else if($!==void 0)for(_e=$.length-1;_e>=0;_e--)this.removeListener(_,$[_e]);return this};function _listeners(a,_,$){var j=a._events;if(j===void 0)return[];var _e=j[_];return _e===void 0?[]:typeof _e=="function"?$?[_e.listener||_e]:[_e]:$?unwrapListeners(_e):arrayClone(_e,_e.length)}EventEmitter.prototype.listeners=function(_){return _listeners(this,_,!0)};EventEmitter.prototype.rawListeners=function(_){return _listeners(this,_,!1)};EventEmitter.listenerCount=function(a,_){return typeof a.listenerCount=="function"?a.listenerCount(_):listenerCount.call(a,_)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(a){var _=this._events;if(_!==void 0){var $=_[a];if(typeof $=="function")return 1;if($!==void 0)return $.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(a,_){for(var $=new Array(_),j=0;j<_;++j)$[j]=a[j];return $}function spliceOne(a,_){for(;_+1<a.length;_++)a[_]=a[_+1];a.pop()}function unwrapListeners(a){for(var _=new Array(a.length),$=0;$<_.length;++$)_[$]=a[$].listener||a[$];return _}function once$2(a,_){return new Promise(function($,j){function _e(tt){a.removeListener(_,et),j(tt)}function et(){typeof a.removeListener=="function"&&a.removeListener("error",_e),$([].slice.call(arguments))}eventTargetAgnosticAddListener(a,_,et,{once:!0}),_!=="error"&&addErrorHandlerIfEventEmitter(a,_e,{once:!0})})}function addErrorHandlerIfEventEmitter(a,_,$){typeof a.on=="function"&&eventTargetAgnosticAddListener(a,"error",_,$)}function eventTargetAgnosticAddListener(a,_,$,j){if(typeof a.on=="function")j.once?a.once(_,$):a.on(_,$);else if(typeof a.addEventListener=="function")a.addEventListener(_,function _e(et){j.once&&a.removeEventListener(_,_e),$(et)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof a)}var eventsExports=events.exports;const Bg=getDefaultExportFromCjs$1(eventsExports);function _inheritsLoose$5(a,_){a.prototype=Object.create(_.prototype),a.prototype.constructor=a,a.__proto__=_}var AbstractConnector=function(a){_inheritsLoose$5(_,a);function _(j){var _e,et=j===void 0?{}:j,tt=et.supportedChainIds;return _e=a.call(this)||this,_e.supportedChainIds=tt,_e}var $=_.prototype;return $.emitUpdate=function(_e){this.emit(ConnectorEvent.Update,_e)},$.emitError=function(_e){this.emit(ConnectorEvent.Error,_e)},$.emitDeactivate=function(){this.emit(ConnectorEvent.Deactivate)},_}(eventsExports.EventEmitter);const scriptRel="modulepreload",assetsURL=function(a){return"https://cdn.decentraland.org/@dcl/auth-site/1.7.1/"+a},seen={},__vitePreload=function(_,$,j){if(!$||$.length===0)return _();const _e=document.getElementsByTagName("link");return Promise.all($.map(et=>{if(et=assetsURL(et),et in seen)return;seen[et]=!0;const tt=et.endsWith(".css"),rt=tt?'[rel="stylesheet"]':"";if(!!j)for(let dt=_e.length-1;dt>=0;dt--){const mt=_e[dt];if(mt.href===et&&(!tt||mt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${et}"]${rt}`))return;const ct=document.createElement("link");if(ct.rel=tt?"stylesheet":scriptRel,tt||(ct.as="script",ct.crossOrigin=""),ct.href=et,document.head.appendChild(ct),tt)return new Promise((dt,mt)=>{ct.addEventListener("load",dt),ct.addEventListener("error",()=>mt(new Error(`Unable to preload CSS for ${et}`)))})})).then(()=>_()).catch(et=>{const tt=new Event("vite:preloadError",{cancelable:!0});if(tt.payload=et,window.dispatchEvent(tt),!tt.defaultPrevented)throw et})};var dist$7={},sdk$1={},ws$1={},sceneUpdate$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SceneUpdate=a.SCENE_UPDATE=void 0;const _=validation$3;a.SCENE_UPDATE="SCENE_UPDATE",function($){$.schema={type:"object",properties:{type:{type:"string",enum:[a.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},$.validate=(0,_.generateLazyValidator)($.schema)}(a.SceneUpdate||(a.SceneUpdate={}))})(sceneUpdate$1);var update$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Update=a.UPDATE=void 0;const _=validation$3;a.UPDATE="update",function($){$.schema={type:"object",properties:{type:{type:"string",enum:[a.UPDATE]}},required:["type"]},$.validate=(0,_.generateLazyValidator)($.schema)}(a.Update||(a.Update={}))})(update$1);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(sceneUpdate$1,a),$(update$1,a)})(ws$1);var project$1={},type$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.ProjectType=void 0;const _=validation$3;(function($){$.SCENE="scene",$.SMART_ITEM="smart-item",$.PORTABLE_EXPERIENCE="portable-experience",$.LIBRARY="library"})(a.ProjectType||(a.ProjectType={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.ProjectType||(a.ProjectType={}))})(type$1);var wearableJson$1={},rarity$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Rarity=void 0;const _=validation$3;(function($){$.UNIQUE="unique",$.MYTHIC="mythic",$.EXOTIC="exotic",$.LEGENDARY="legendary",$.EPIC="epic",$.RARE="rare",$.UNCOMMON="uncommon",$.COMMON="common"})(a.Rarity||(a.Rarity={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema);const j={[$.UNIQUE]:1,[$.MYTHIC]:10,[$.EXOTIC]:50,[$.LEGENDARY]:100,[$.EPIC]:1e3,[$.RARE]:5e3,[$.UNCOMMON]:1e4,[$.COMMON]:1e5},_e={[$.UNIQUE]:"#FFE617",[$.MYTHIC]:"#FB7DE3",[$.EXOTIC]:"#E4FFB8",[$.LEGENDARY]:"#A657ED",[$.EPIC]:"#6397F2",[$.RARE]:"#3AD682",[$.UNCOMMON]:"#FF8563",[$.COMMON]:"#D4E0E0"},et={[$.UNIQUE]:"#FFB626",[$.MYTHIC]:"#FF63E1",[$.EXOTIC]:"#CAFF73",[$.LEGENDARY]:"#842DDA",[$.EPIC]:"#3D85E6",[$.RARE]:"#36CF75",[$.UNCOMMON]:"#ED6D4F",[$.COMMON]:"#ABC1C1"};function tt(dt){return j[dt]}$.getMaxSupply=tt;function rt(dt){return et[dt]}$.getColor=rt;function it(){return[$.UNIQUE,$.MYTHIC,$.EXOTIC,$.LEGENDARY,$.EPIC,$.RARE,$.UNCOMMON,$.COMMON]}$.getRarities=it;function ct(dt){return[_e[dt],et[dt]]}$.getGradient=ct}(a.Rarity||(a.Rarity={}))})(rarity$1);var wearableCategory$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.WearableCategory=void 0;const _=validation$3;(function($){$.EYEBROWS="eyebrows",$.EYES="eyes",$.FACIAL_HAIR="facial_hair",$.HAIR="hair",$.BODY_SHAPE="body_shape",$.MOUTH="mouth",$.UPPER_BODY="upper_body",$.LOWER_BODY="lower_body",$.FEET="feet",$.EARRING="earring",$.EYEWEAR="eyewear",$.HAT="hat",$.HELMET="helmet",$.MASK="mask",$.TIARA="tiara",$.TOP_HEAD="top_head",$.SKIN="skin",$.HANDS_WEAR="hands_wear"})(a.WearableCategory||(a.WearableCategory={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.WearableCategory||(a.WearableCategory={}))})(wearableCategory$1);var representation$1={},bodyShape$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.BodyShape=void 0;const _=validation$3;(function($){$.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",$.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(a.BodyShape||(a.BodyShape={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.BodyShape||(a.BodyShape={}))})(bodyShape$1);var hideableCategory$1={},bodyPartCategory$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.BodyPartCategory=void 0;const _=validation$3;(function($){$.HEAD="head",$.HANDS="hands"})(a.BodyPartCategory||(a.BodyPartCategory={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.BodyPartCategory||(a.BodyPartCategory={}))})(bodyPartCategory$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.HideableWearableCategory=void 0;const _=wearableCategory$1,$=validation$3,j=bodyPartCategory$1;(function(_e){_e.schema={oneOf:[Object.assign({},_.WearableCategory.schema),Object.assign({},j.BodyPartCategory.schema)]},_e.validate=(0,$.generateLazyValidator)(_e.schema)})(a.HideableWearableCategory||(a.HideableWearableCategory={}))})(hideableCategory$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.WearableRepresentation=void 0;const _=validation$3,$=bodyShape$1,j=hideableCategory$1;(function(_e){_e.schema={type:"object",properties:{bodyShapes:{type:"array",items:$.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:j.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:j.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},_e.validate=(0,_.generateLazyValidator)(_e.schema)})(a.WearableRepresentation||(a.WearableRepresentation={}))})(representation$1);var platform$1={},profile$3={},avatar$1={},misc$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.IPFSv1=a.IPFSv2=a.EthAddress=a.Color3=void 0;const _=validation$3;(function($){$.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const j=(0,_.generateLazyValidator)($.schema);$.validate=_e=>j(_e)})(a.Color3||(a.Color3={})),function($){$.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const j=new RegExp($.schema.pattern);$.validate=_e=>j.test(_e)}(a.EthAddress||(a.EthAddress={})),function($){$.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const j=new RegExp($.schema.pattern);$.validate=_e=>j.test(_e)}(a.IPFSv2||(a.IPFSv2={})),function($){$.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const j=new RegExp($.schema.pattern);$.validate=_e=>j.test(_e)}(a.IPFSv1||(a.IPFSv1={}))})(misc$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Avatar=a.Link=a.LinkUrl=a.AvatarInfo=a.Snapshots=void 0;const _=wearableCategory$1,$=misc$1,j=validation$3;var _e;(function(it){it.schema={type:"object",required:["face256","body"],properties:{face256:$.IPFSv2.schema,body:$.IPFSv2.schema}},it.validate=(0,j.generateLazyValidator)(it.schema)})(_e=a.Snapshots||(a.Snapshots={}));var et;(function(it){it.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:$.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:$.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:$.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:_.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:_e.schema},additionalProperties:!0},it.validate=(0,j.generateLazyValidator)(it.schema)})(et=a.AvatarInfo||(a.AvatarInfo={}));var tt;(function(it){it.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const ct=new RegExp(it.schema.pattern,"i");it.validate=dt=>ct.test(dt)})(tt=a.LinkUrl||(a.LinkUrl={}));var rt;(function(it){it.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:tt.schema}}})(rt=a.Link||(a.Link={})),function(it){it.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:rt.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:$.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:et.schema},additionalProperties:!0},it.validate=(0,j.generateLazyValidator)(it.schema)}(a.Avatar||(a.Avatar={}))})(avatar$1);var profile$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Profile=void 0;const _=validation$3,$=avatar$1;(function(j){j.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:$.Avatar.schema}},additionalProperties:!0},j.validate=(0,_.generateLazyValidator)(j.schema)})(a.Profile||(a.Profile={}))})(profile$2);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(avatar$1,a),$(profile$2,a)})(profile$3);var scene$3={},featureToggles$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.FeatureToggles=a.portableExperiencesToggles=a.toggles=void 0;const _=validation$3;a.toggles=["enabled","disabled"],a.portableExperiencesToggles=[...a.toggles,"hideUi"],function($){$.schema={type:"object",properties:{voiceChat:{type:"string",enum:a.toggles,nullable:!0},portableExperiences:{type:"string",enum:a.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${a.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${a.toggles.join(", ")}`,required:[]},$.validate=(0,_.generateLazyValidator)($.schema)}(a.FeatureToggles||(a.FeatureToggles={}))})(featureToggles$1);var worldConfiguration$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.WorldConfiguration=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.WorldConfiguration||(a.WorldConfiguration={}))})(worldConfiguration$1);var sceneParcels$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SceneParcels=void 0;const _=validation$3;(function($){$.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},$.schemaValidator=(0,_.generateLazyValidator)($.schema),$.validate=j=>$.schemaValidator(j)&&j.parcels.includes(j.base)})(a.SceneParcels||(a.SceneParcels={}))})(sceneParcels$1);var scene$2={},displayable$1={};Object.defineProperty(displayable$1,"__esModule",{value:!0});displayable$1.displayableProperties=void 0;displayable$1.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}};var source$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Source=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.Source||(a.Source={}))})(source$1);var spawnPoint$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SpawnPoint=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},$.validate=(0,_.generateLazyValidator)($.schema)})(a.SpawnPoint||(a.SpawnPoint={}))})(spawnPoint$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Scene=a.RequiredPermission=void 0;const _=validation$3,$=displayable$1,j=featureToggles$1,_e=sceneParcels$1,et=source$1,tt=spawnPoint$1,rt=worldConfiguration$1;var it;(function(ct){ct.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",ct.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",ct.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",ct.USE_WEB3_API="USE_WEB3_API",ct.USE_FETCH="USE_FETCH",ct.USE_WEBSOCKET="USE_WEBSOCKET",ct.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(it=a.RequiredPermission||(a.RequiredPermission={})),function(ct){ct.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:_e.SceneParcels.schema},$.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},et.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:tt.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(it)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},j.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},rt.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:it.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},ct.validate=(0,_.generateLazyValidator)(ct.schema)}(a.Scene||(a.Scene={}))})(scene$2);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SpawnPoint=a.Source=a.RequiredPermission=a.Scene=a.SceneParcels=a.WorldConfiguration=a.FeatureToggles=void 0;var _=featureToggles$1;Object.defineProperty(a,"FeatureToggles",{enumerable:!0,get:function(){return _.FeatureToggles}});var $=worldConfiguration$1;Object.defineProperty(a,"WorldConfiguration",{enumerable:!0,get:function(){return $.WorldConfiguration}});var j=sceneParcels$1;Object.defineProperty(a,"SceneParcels",{enumerable:!0,get:function(){return j.SceneParcels}});var _e=scene$2;Object.defineProperty(a,"Scene",{enumerable:!0,get:function(){return _e.Scene}}),Object.defineProperty(a,"RequiredPermission",{enumerable:!0,get:function(){return _e.RequiredPermission}});var et=source$1;Object.defineProperty(a,"Source",{enumerable:!0,get:function(){return et.Source}});var tt=spawnPoint$1;Object.defineProperty(a,"SpawnPoint",{enumerable:!0,get:function(){return tt.SpawnPoint}})})(scene$3);var item$3={},i18n$1={},locale$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Locale=void 0;const _=validation$3;(function($){$.EN="en",$.ES="es"})(a.Locale||(a.Locale={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.Locale||(a.Locale={}))})(locale$2);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.I18N=void 0;const _=validation$3,$=locale$2;(function(j){j.schema={type:"object",properties:{code:$.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},j.validate=(0,_.generateLazyValidator)(j.schema)})(a.I18N||(a.I18N={}))})(i18n$1);var metrics$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Metrics=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.Metrics||(a.Metrics={}))})(metrics$1);var standardProps$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.isStandard=a.standardProperties=void 0;const _=rarity$1,$=validation$3;a.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:_.Rarity.schema};const j={type:"object",properties:Object.assign({},a.standardProperties),required:["collectionAddress","rarity"]},_e=(0,$.generateLazyValidator)(j);function et(tt){return _e(tt)}a.isStandard=et})(standardProps$1);var thirdPartyProps$1={},merkleProof$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.MerkleProof=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},$.validate=(0,_.generateLazyValidator)($.schema)})(a.MerkleProof||(a.MerkleProof={}))})(merkleProof$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.isThirdParty=a.thirdPartyProps=void 0;const _=validation$3,$=merkleProof$1;a.thirdPartyProps={merkleProof:$.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]}};const j={type:"object",properties:Object.assign({},a.thirdPartyProps),required:["merkleProof","content"],_containsHashingKeys:!0},_e={keyword:"_containsHashingKeys",validate:(rt,it)=>{var ct;const dt=it;return!((ct=dt==null?void 0:dt.merkleProof)===null||ct===void 0)&&ct.hashingKeys?dt.merkleProof.hashingKeys.every(mt=>dt.hasOwnProperty(mt)):!1},errors:!1},et=(0,_.generateLazyValidator)(j,[_e]);function tt(rt){return et(rt)}a.isThirdParty=tt})(thirdPartyProps$1);var wearable$3={},wearable$2={},baseItem$1={};Object.defineProperty(baseItem$1,"__esModule",{value:!0});baseItem$1.isBaseEmote=baseItem$1.isBaseAvatar=baseItem$1.requiredBaseItemProps=baseItem$1.baseItemProperties=void 0;const i18n_1$1=i18n$1,metrics_1$1=metrics$1,displayable_1$1=displayable$1;baseItem$1.baseItemProperties=Object.assign(Object.assign({},displayable_1$1.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:i18n_1$1.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},metrics_1$1.Metrics.schema),{nullable:!0})});baseItem$1.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function isBaseAvatar$1(a){if(!a||!a.id)return!1;const _=a.id.split(":"),$=_[1]==="decentraland",j=_[3]==="base-avatars";return _.length===5&&$&&j}baseItem$1.isBaseAvatar=isBaseAvatar$1;function isBaseEmote(a){if(!a||!a.id)return!1;const _=a.id.split(":");return _.length===5&&_[1]==="decentraland"&&_[3]==="base-emotes"}baseItem$1.isBaseEmote=isBaseEmote;(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Wearable=void 0;const _=validation$3,$=wearableCategory$1,j=representation$1,_e=baseItem$1,et=standardProps$1,tt=thirdPartyProps$1,rt=hideableCategory$1;(function(it){it.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},_e.baseItemProperties),et.standardProperties),tt.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:rt.HideableWearableCategory.schema},hides:{type:"array",items:rt.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:j.WearableRepresentation.schema,minItems:1},category:$.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:rt.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseAvatar:!0},{required:[..._e.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content"]},{required:[..._e.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const ct={keyword:"_isThirdParty",validate:(mt,vt)=>!mt||(0,tt.isThirdParty)(vt),errors:!1},dt={keyword:"_isBaseAvatar",validate:(mt,vt)=>!mt||(0,_e.isBaseAvatar)(vt),errors:!1};it.validate=(0,_.generateLazyValidator)(it.schema,[ct,dt])})(a.Wearable||(a.Wearable={}))})(wearable$2);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.HideableWearableCategory=a.BodyPartCategory=a.WearableCategory=a.Wearable=a.WearableRepresentation=void 0;var _=representation$1;Object.defineProperty(a,"WearableRepresentation",{enumerable:!0,get:function(){return _.WearableRepresentation}});var $=wearable$2;Object.defineProperty(a,"Wearable",{enumerable:!0,get:function(){return $.Wearable}});var j=wearableCategory$1;Object.defineProperty(a,"WearableCategory",{enumerable:!0,get:function(){return j.WearableCategory}});var _e=bodyPartCategory$1;Object.defineProperty(a,"BodyPartCategory",{enumerable:!0,get:function(){return _e.BodyPartCategory}});var et=hideableCategory$1;Object.defineProperty(a,"HideableWearableCategory",{enumerable:!0,get:function(){return et.HideableWearableCategory}})})(wearable$3);var emote$3={},emote$2={},emoteDataAdr74$1={},emoteCategory$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.EmoteCategory=void 0;const _=validation$3;(function($){$.DANCE="dance",$.STUNT="stunt",$.GREETINGS="greetings",$.FUN="fun",$.POSES="poses",$.REACTIONS="reactions",$.HORROR="horror",$.MISCELLANEOUS="miscellaneous"})(a.EmoteCategory||(a.EmoteCategory={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.EmoteCategory||(a.EmoteCategory={}))})(emoteCategory$1);var representationAdr74$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.EmoteRepresentationADR74=void 0;const _=validation$3,$=bodyShape$1;(function(j){j.schema={type:"object",properties:{bodyShapes:{type:"array",items:$.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},j.validate=(0,_.generateLazyValidator)(j.schema)})(a.EmoteRepresentationADR74||(a.EmoteRepresentationADR74={}))})(representationAdr74$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.EmoteDataADR74=void 0;const _=emoteCategory$1,$=validation$3,j=representationAdr74$1;(function(_e){_e.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:j.EmoteRepresentationADR74.schema,minItems:1},category:_.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},_e.validate=(0,$.generateLazyValidator)(_e.schema)})(a.EmoteDataADR74||(a.EmoteDataADR74={}))})(emoteDataAdr74$1);var hasRequiredEmote$3;function requireEmote$3(){return hasRequiredEmote$3||(hasRequiredEmote$3=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Emote=void 0;const _=requireItem$1(),$=validation$3,j=baseItem$1,_e=standardProps$1,et=thirdPartyProps$1,tt=emoteDataAdr74$1;(function(rt){rt.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},j.baseItemProperties),_e.standardProperties),et.thirdPartyProps),{emoteDataADR74:tt.EmoteDataADR74.schema}),additionalProperties:!0,required:[...j.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const it={keyword:"_isThirdParty",validate:(dt,mt)=>!dt||(0,_.isThirdParty)(mt),errors:!1},ct={keyword:"_isBaseEmote",validate:(dt,mt)=>!dt||(0,j.isBaseEmote)(mt),errors:!1};rt.validate=(0,$.generateLazyValidator)(rt.schema,[it,ct])})(a.Emote||(a.Emote={}))}(emote$2)),emote$2}var emotePlayMode$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.EmotePlayMode=void 0;const _=validation$3;(function($){$.SIMPLE="simple",$.LOOP="loop"})(a.EmotePlayMode||(a.EmotePlayMode={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.EmotePlayMode||(a.EmotePlayMode={}))})(emotePlayMode$1);var hasRequiredEmote$2;function requireEmote$2(){return hasRequiredEmote$2||(hasRequiredEmote$2=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.EmotePlayMode=a.EmoteCategory=a.EmoteDataADR74=a.EmoteRepresentationADR74=a.Emote=void 0;var _=requireEmote$3();Object.defineProperty(a,"Emote",{enumerable:!0,get:function(){return _.Emote}});var $=representationAdr74$1;Object.defineProperty(a,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return $.EmoteRepresentationADR74}});var j=emoteDataAdr74$1;Object.defineProperty(a,"EmoteDataADR74",{enumerable:!0,get:function(){return j.EmoteDataADR74}});var _e=emoteCategory$1;Object.defineProperty(a,"EmoteCategory",{enumerable:!0,get:function(){return _e.EmoteCategory}});var et=emotePlayMode$1;Object.defineProperty(a,"EmotePlayMode",{enumerable:!0,get:function(){return et.EmotePlayMode}})}(emote$3)),emote$3}var hasRequiredItem$1;function requireItem$1(){return hasRequiredItem$1||(hasRequiredItem$1=1,function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ct,dt,mt,vt){vt===void 0&&(vt=mt);var wt=Object.getOwnPropertyDescriptor(dt,mt);(!wt||("get"in wt?!dt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return dt[mt]}}),Object.defineProperty(ct,vt,wt)}:function(ct,dt,mt,vt){vt===void 0&&(vt=mt),ct[vt]=dt[mt]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(ct,dt){for(var mt in ct)mt!=="default"&&!Object.prototype.hasOwnProperty.call(dt,mt)&&_(dt,ct,mt)};Object.defineProperty(a,"__esModule",{value:!0}),a.isThirdParty=a.isStandard=a.BodyShape=a.Metrics=a.Locale=a.I18N=void 0;var j=i18n$1;Object.defineProperty(a,"I18N",{enumerable:!0,get:function(){return j.I18N}});var _e=locale$2;Object.defineProperty(a,"Locale",{enumerable:!0,get:function(){return _e.Locale}});var et=metrics$1;Object.defineProperty(a,"Metrics",{enumerable:!0,get:function(){return et.Metrics}});var tt=bodyShape$1;Object.defineProperty(a,"BodyShape",{enumerable:!0,get:function(){return tt.BodyShape}});var rt=standardProps$1;Object.defineProperty(a,"isStandard",{enumerable:!0,get:function(){return rt.isStandard}});var it=thirdPartyProps$1;Object.defineProperty(a,"isThirdParty",{enumerable:!0,get:function(){return it.isThirdParty}}),$(wearable$3,a),$(requireEmote$2(),a)}(item$3)),item$3}var merkleTree$1={};(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(merkleProof$1,a)})(merkleTree$1);var syncDeployments$1={},authChain$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.AuthChain=a.AuthLink=a.AuthLinkType=void 0;const _=validation$3;var $;(function(_e){_e.SIGNER="SIGNER",_e.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",_e.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",_e.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",_e.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})($=a.AuthLinkType||(a.AuthLinkType={}));var j;(function(_e){_e.schema={type:"object",properties:{type:{type:"string",enum:Object.values($)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:$.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},_e.validate=(0,_.generateLazyValidator)(_e.schema)})(j=a.AuthLink||(a.AuthLink={})),function(_e){_e.schema={type:"array",items:j.schema,minItems:1},_e.validate=(0,_.generateLazyValidator)(_e.schema)}(a.AuthChain||(a.AuthChain={}))})(authChain$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PointerChangesSyncDeployment=a.SnapshotSyncDeployment=void 0;const _=misc$1,$=authChain$1,j=validation$3;(function(_e){_e.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:$.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:_.IPFSv1.schema}},{properties:{entityId:_.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},_e.validate=(0,j.generateLazyValidator)(_e.schema)})(a.SnapshotSyncDeployment||(a.SnapshotSyncDeployment={})),function(_e){_e.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:$.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:_.IPFSv1.schema}},{properties:{entityId:_.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},_e.validate=(0,j.generateLazyValidator)(_e.schema)}(a.PointerChangesSyncDeployment||(a.PointerChangesSyncDeployment={}))})(syncDeployments$1);var entity$1={},contentMapping$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.ContentMapping=void 0;const _=misc$1,$=validation$3;(function(j){j.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[_.IPFSv1.schema,_.IPFSv2.schema]}},required:["file","hash"]},j.validate=(0,$.generateLazyValidator)(j.schema)})(a.ContentMapping||(a.ContentMapping={}))})(contentMapping$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Entity=a.EntityType=void 0;const _=misc$1,$=contentMapping$1,j=validation$3;(function(_e){_e.SCENE="scene",_e.PROFILE="profile",_e.WEARABLE="wearable",_e.STORE="store",_e.EMOTE="emote",_e.OUTFITS="outfits"})(a.EntityType||(a.EntityType={})),function(_e){_e.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[_.IPFSv1.schema,_.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:$.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},_e.validate=(0,j.generateLazyValidator)(_e.schema)}(a.Entity||(a.Entity={}))})(entity$1);var deploymentWithAuthChain$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.DeploymentWithAuthChain=void 0;const _=authChain$1,$=validation$3;(function(j){j.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:_.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},j.validate=(0,$.generateLazyValidator)(j.schema)})(a.DeploymentWithAuthChain||(a.DeploymentWithAuthChain={}))})(deploymentWithAuthChain$1);var outfits$3={},outfits$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Outfits=a.Outfit=void 0;const _=wearableCategory$1,$=misc$1,j=validation$3;var _e;(function(et){et.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:$.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:$.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:$.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:_.WearableCategory.schema}},additionalProperties:!0},et.validate=(0,j.generateLazyValidator)(et.schema)})(_e=a.Outfit||(a.Outfit={})),function(et){et.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:_e.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},et.validate=(0,j.generateLazyValidator)(et.schema)}(a.Outfits||(a.Outfits={}))})(outfits$2);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(outfits$2,a)})(outfits$3);var notifications$1={},notifications={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.NotificationType=void 0,function(_){_.BID_ACCEPTED="bid_accepted",_.BID_RECEIVED="bid_received",_.EVENTS_STARTED="events_started",_.EVENTS_STARTS_SOON="events_starts_soon",_.GOVERNANCE_ANNOUNCEMENT="governance_announcement",_.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",_.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",_.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",_.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",_.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",_.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",_.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",_.GOVERNANCE_TENDER_PASSED="governance_tender_passed",_.ITEM_SOLD="item_sold",_.LAND_RENTAL_ENDED="rental_ended",_.LAND_RENTED="rental_started",_.REWARD_ASSIGNED="reward_assignment",_.ROYALTIES_EARNED="royalties_earned",_.WORLDS_ACCESS_RESTORED="worlds_access_restored",_.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",_.WORLDS_MISSING_RESOURCES="worlds_missing_resources",_.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",_.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked"}(a.NotificationType||(a.NotificationType={}))})(notifications);var subscription={},subscriptionDetails={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SubscriptionDetails=void 0;const _=validation$3,$=notifications,j={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},_e=Object.values($.NotificationType).reduce((et,tt)=>(et[tt]=j,et),{});(function(et){et.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values($.NotificationType),additionalProperties:!1,properties:_e}}},et.validate=(0,_.generateLazyValidator)(et.schema)})(a.SubscriptionDetails||(a.SubscriptionDetails={}))})(subscriptionDetails);var email={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Email=void 0,function(_){_.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const $=new RegExp(_.schema.pattern);_.validate=j=>$.test(j)}(a.Email||(a.Email={}))})(email);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Subscription=void 0;const _=validation$3,$=subscriptionDetails,j=misc$1,_e=email;(function(et){et.schema={type:"object",required:["address","details"],properties:{address:j.EthAddress.schema,email:Object.assign(Object.assign({},_e.Email.schema),{nullable:!0}),details:$.SubscriptionDetails.schema}},et.validate=(0,_.generateLazyValidator)(et.schema)})(a.Subscription||(a.Subscription={}))})(subscription);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(notifications,a),$(subscription,a),$(subscriptionDetails,a)})(notifications$1);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(profile$3,a),$(scene$3,a),$(requireItem$1(),a),$(displayable$1,a),$(merkleTree$1,a),$(syncDeployments$1,a),$(entity$1,a),$(deploymentWithAuthChain$1,a),$(outfits$3,a),$(notifications$1,a)})(platform$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.WearableJson=void 0;const _=rarity$1,$=wearableCategory$1,j=representation$1,_e=validation$3,et=platform$1;(function(tt){tt.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},_.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:$.WearableCategory.schema},hides:{type:"array",items:$.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:j.WearableRepresentation.schema,minItems:1},category:$.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:et.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},tt.validate=(0,_e.generateLazyValidator)(tt.schema)})(a.WearableJson||(a.WearableJson={}))})(wearableJson$1);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(type$1,a),$(wearableJson$1,a)})(project$1);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(ws$1,a),$(project$1,a)})(sdk$1);var bid$1={},listingStatus$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.ListingStatus=void 0;const _=validation$3;(function($){$.OPEN="open",$.SOLD="sold",$.CANCELLED="cancelled"})(a.ListingStatus||(a.ListingStatus={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.ListingStatus||(a.ListingStatus={}))})(listingStatus$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Bid=a.BidSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=listingStatus$1,_e=network$1;(function(et){et.RECENTLY_OFFERED="recently_offered",et.RECENTLY_UPDATED="recently_updated",et.MOST_EXPENSIVE="most_expensive"})(a.BidSortBy||(a.BidSortBy={})),function(et){et.schema={type:"object",properties:{id:{type:"string"},bidAddress:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:j.ListingStatus.schema,blockchainId:{type:"string"},blockNumber:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},network:_e.Network.schema,chainId:$.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidAddress","bidder","seller","price","fingerprint","status","blockchainId","blockNumber","contractAddress","tokenId","network","chainId","expiresAt","createdAt","updatedAt"]},et.validate=(0,_.generateLazyValidator)(et.schema)}(a.Bid||(a.Bid={}))})(bid$1);var account$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Account=a.AccountSortBy=void 0;const _=validation$3;(function($){$.MOST_SALES="most_sales",$.MOST_PURCHASES="most_purchases",$.MOST_SPENT="most_spent",$.MOST_EARNED="most_earned",$.MOST_ROYALTIES="most_royalties",$.MOST_COLLECTIONS="most_collections"})(a.AccountSortBy||(a.AccountSortBy={})),function($){$.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},$.validate=(0,_.generateLazyValidator)($.schema)}(a.Account||(a.Account={}))})(account$1);var collection$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Collection=a.CollectionSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=network$1;(function(_e){_e.NEWEST="newest",_e.NAME="name",_e.RECENTLY_REVIEWED="recently_reviewed",_e.RECENTLY_LISTED="recently_listed",_e.SIZE="size"})(a.CollectionSortBy||(a.CollectionSortBy={})),function(_e){_e.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:j.Network.schema,chainId:$.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},_e.validate=(0,_.generateLazyValidator)(_e.schema)}(a.Collection||(a.Collection={}))})(collection$1);var contract$1={},nftCategory$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.NFTCategory=void 0;const _=validation$3;(function($){$.PARCEL="parcel",$.ESTATE="estate",$.WEARABLE="wearable",$.ENS="ens",$.EMOTE="emote"})(a.NFTCategory||(a.NFTCategory={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.NFTCategory||(a.NFTCategory={}))})(nftCategory$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Contract=a.ContractSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=network$1,_e=nftCategory$1;(function(et){et.NAME="name"})(a.ContractSortBy||(a.ContractSortBy={})),function(et){et.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:_e.NFTCategory.schema,network:j.Network.schema,chainId:$.ChainId.schema},required:["name","address","category","network","chainId"]},et.validate=(0,_.generateLazyValidator)(et.schema)}(a.Contract||(a.Contract={}))})(contract$1);var item$2={},nft$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.NFT=a.NFTSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=platform$1,_e=network$1,et=nftCategory$1,tt=rarity$1,rt=wearableCategory$1;(function(it){it.NAME="name",it.NEWEST="newest",it.RECENTLY_LISTED="recently_listed",it.RECENTLY_SOLD="recently_sold",it.CHEAPEST="cheapest",it.RENTAL_LISTING_DATE="rental_listing_date",it.RENTAL_DATE="rented_date",it.MAX_RENTAL_PRICE="max_rental_price",it.MIN_RENTAL_PRICE="min_rental_price"})(a.NFTSortBy||(a.NFTSortBy={})),function(it){it.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:j.BodyShape.schema},category:rt.WearableCategory.schema,description:{type:"string"},rarity:tt.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:j.BodyShape.schema},category:j.EmoteCategory.schema,description:{type:"string"},rarity:tt.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:et.NFTCategory.schema,network:_e.Network.schema,chainId:$.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},it.validate=(0,_.generateLazyValidator)(it.schema)}(a.NFT||(a.NFT={}))})(nft$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Item=a.ItemSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=network$1,_e=nft$1,et=nftCategory$1;(function(tt){tt.NAME="name",tt.NEWEST="newest",tt.RECENTLY_REVIEWED="recently_reviewed",tt.RECENTLY_SOLD="recently_sold",tt.RECENTLY_LISTED="recently_listed",tt.CHEAPEST="cheapest"})(a.ItemSortBy||(a.ItemSortBy={})),function(tt){tt.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:et.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},data:_e.NFT.schema.properties.data,network:j.Network.schema,chainId:$.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},tt.validate=(0,_.generateLazyValidator)(tt.schema)}(a.Item||(a.Item={}))})(item$2);var metaTransactions$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.MetaTransaction=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.MetaTransaction||(a.MetaTransaction={}))})(metaTransactions$1);var mint$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Mint=a.MintSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=network$1;(function(_e){_e.RECENTLY_MINTED="recently_minted",_e.MOST_EXPENSIVE="most_expensive"})(a.MintSortBy||(a.MintSortBy={})),function(_e){_e.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:j.Network.schema,chainId:$.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},_e.validate=(0,_.generateLazyValidator)(_e.schema)}(a.Mint||(a.Mint={}))})(mint$1);var catalog$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.CatalogSortDirection=a.CatalogSortBy=void 0,function(_){_.NEWEST="newest",_.RECENTLY_SOLD="recently_sold",_.CHEAPEST="cheapest",_.MOST_EXPENSIVE="most_expensive",_.RECENTLY_LISTED="recently_listed"}(a.CatalogSortBy||(a.CatalogSortBy={})),function(_){_.ASC="asc",_.DESC="desc"}(a.CatalogSortDirection||(a.CatalogSortDirection={}))})(catalog$1);var order$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Order=a.OrderSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=listingStatus$1,_e=network$1;(function(et){et.RECENTLY_LISTED="recently_listed",et.RECENTLY_UPDATED="recently_updated",et.CHEAPEST="cheapest",et.ISSUED_ID_ASC="issued_id_asc",et.ISSUED_ID_DESC="issued_id_desc",et.OLDEST="oldest"})(a.OrderSortBy||(a.OrderSortBy={})),function(et){et.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:j.ListingStatus.schema,network:_e.Network.schema,chainId:$.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},et.validate=(0,_.generateLazyValidator)(et.schema)}(a.Order||(a.Order={}))})(order$2);var saleType$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SaleType=void 0;const _=validation$3;(function($){$.ORDER="order",$.BID="bid",$.MINT="mint"})(a.SaleType||(a.SaleType={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.SaleType||(a.SaleType={}))})(saleType$1);var sale$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Sale=a.SaleSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=saleType$1,_e=network$1;(function(et){et.RECENTLY_SOLD="recently_sold",et.MOST_EXPENSIVE="most_expensive"})(a.SaleSortBy||(a.SaleSortBy={})),function(et){et.schema={type:"object",properties:{id:{type:"string"},type:j.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:_e.Network.schema,chainId:$.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},et.validate=(0,_.generateLazyValidator)(et.schema)}(a.Sale||(a.Sale={}))})(sale$1);var rentalsListings$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.RentalListingCreation=a.PeriodCreation=a.RentalsListingsSortBy=a.RentalsListingsFilterByCategory=a.RentalsListingSortDirection=a.RentalStatus=void 0;const _=validation$3,$=requireChainId$1(),j=network$1;(function(et){et.OPEN="open",et.CANCELLED="cancelled",et.EXECUTED="executed",et.CLAIMED="claimed"})(a.RentalStatus||(a.RentalStatus={})),function(et){et.ASC="asc",et.DESC="desc"}(a.RentalsListingSortDirection||(a.RentalsListingSortDirection={})),function(et){et.PARCEL="parcel",et.ESTATE="estate"}(a.RentalsListingsFilterByCategory||(a.RentalsListingsFilterByCategory={})),function(et){et.LAND_CREATION_DATE="land_creation_date",et.RENTAL_LISTING_DATE="rental_listing_date",et.RENTAL_DATE="rented_date",et.NAME="name",et.MAX_RENTAL_PRICE="max_rental_price",et.MIN_RENTAL_PRICE="min_rental_price"}(a.RentalsListingsSortBy||(a.RentalsListingsSortBy={}));var _e;(function(et){et.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},et.validate=(0,_.generateLazyValidator)(et.schema)})(_e=a.PeriodCreation||(a.PeriodCreation={})),function(et){et.schema={type:"object",properties:{network:j.Network.schema,chainId:$.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:_e.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},et.validate=(0,_.generateLazyValidator)(et.schema)}(a.RentalListingCreation||(a.RentalListingCreation={}))})(rentalsListings$1);var analyticsDayData$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.AnalyticsDayDataSortBy=void 0,function(_){_.DATE="date",_.MOST_SALES="most_sales"}(a.AnalyticsDayDataSortBy||(a.AnalyticsDayDataSortBy={}))})(analyticsDayData$1);var store$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Store=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.Store||(a.Store={}))})(store$1);var wearableGender$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.GenderFilterOption=a.WearableGender=void 0;const _=validation$3;(function($){$.MALE="male",$.FEMALE="female"})(a.WearableGender||(a.WearableGender={})),function($){$.MALE="male",$.FEMALE="female",$.UNISEX="unisex"}(a.GenderFilterOption||(a.GenderFilterOption={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.WearableGender||(a.WearableGender={}))})(wearableGender$1);var world$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.World=a.isInsideWorldLimits=a.getWorld=void 0;const _=validation$3;function $(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}a.getWorld=$;function j(_e,et){const tt=$().validWorldRanges;for(const rt of tt)if(_e>=rt.xMin&&_e<=rt.xMax&&et>=rt.yMin&&et<=rt.yMax)return!0;return!1}a.isInsideWorldLimits=j,function(_e){_e.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},_e.validate=(0,_.generateLazyValidator)(_e.schema)}(a.World||(a.World={}))})(world$1);var preview$1={},previewCamera$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PreviewCamera=void 0;const _=validation$3;(function($){$.STATIC="static",$.INTERACTIVE="interactive"})(a.PreviewCamera||(a.PreviewCamera={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.PreviewCamera||(a.PreviewCamera={}))})(previewCamera$1);var previewConfig$1={};Object.defineProperty(previewConfig$1,"__esModule",{value:!0});var previewController$1={};Object.defineProperty(previewController$1,"__esModule",{value:!0});var previewEmoteEventType$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PreviewEmoteEventType=void 0;const _=validation$3;(function($){$.ANIMATION_PLAY="animation_play",$.ANIMATION_PAUSE="animation_pause",$.ANIMATION_LOOP="animation_loop",$.ANIMATION_END="animation_end",$.ANIMATION_PLAYING="animation_playing"})(a.PreviewEmoteEventType||(a.PreviewEmoteEventType={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.PreviewEmoteEventType||(a.PreviewEmoteEventType={}))})(previewEmoteEventType$1);var previewEmote$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PreviewEmote=void 0;const _=validation$3;(function($){$.IDLE="idle",$.WALK="walk",$.RUN="run",$.JUMP="jump",$.CLAP="clap",$.DAB="dab",$.DANCE="dance",$.FASHION="fashion",$.FASHION_2="fashion-2",$.FASHION_3="fashion-3",$.FASHION_4="fashion-4",$.LOVE="love",$.MONEY="money",$.FIST_PUMP="fist-pump",$.HEAD_EXPLODE="head-explode",$.WAVE="wave"})(a.PreviewEmote||(a.PreviewEmote={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.PreviewEmote||(a.PreviewEmote={}))})(previewEmote$1);var previewMessage$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.sendMessage=a.PreviewMessageType=void 0;const _=validation$3;(function(j){j.READY="ready",j.LOAD="load",j.ERROR="error",j.UPDATE="update",j.CONTROLLER_REQUEST="controller_request",j.CONTROLLER_RESPONSE="controller_response",j.EMOTE_EVENT="emote_event"})(a.PreviewMessageType||(a.PreviewMessageType={})),function(j){j.schema={type:"string",enum:Object.values(j)},j.validate=(0,_.generateLazyValidator)(j.schema)}(a.PreviewMessageType||(a.PreviewMessageType={}));const $=(j,_e,et,tt="*")=>{const rt={type:_e,payload:et};j.postMessage(rt,tt)};a.sendMessage=$})(previewMessage$1);var previewOptions$1={};Object.defineProperty(previewOptions$1,"__esModule",{value:!0});var previewProjection$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PreviewProjection=void 0;const _=validation$3;(function($){$.ORTHOGRAPHIC="orthographic",$.PERSPECTIVE="perspective"})(a.PreviewProjection||(a.PreviewProjection={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.PreviewProjection||(a.PreviewProjection={}))})(previewProjection$1);var previewType$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PreviewType=void 0;const _=validation$3;(function($){$.TEXTURE="texture",$.WEARABLE="wearable",$.AVATAR="avatar"})(a.PreviewType||(a.PreviewType={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.PreviewType||(a.PreviewType={}))})(previewType$1);var wearableRepresentationDefinition$1={};Object.defineProperty(wearableRepresentationDefinition$1,"__esModule",{value:!0});var wearableRepresentationWithBlobs$1={};Object.defineProperty(wearableRepresentationWithBlobs$1,"__esModule",{value:!0});var wearableDefinition$1={};Object.defineProperty(wearableDefinition$1,"__esModule",{value:!0});var wearableWithBlobs$1={};Object.defineProperty(wearableWithBlobs$1,"__esModule",{value:!0});var emoteRepresentationDefinition$1={};Object.defineProperty(emoteRepresentationDefinition$1,"__esModule",{value:!0});var emoteRepresentationWithBlobs$1={};Object.defineProperty(emoteRepresentationWithBlobs$1,"__esModule",{value:!0});var emoteDefinition$1={};Object.defineProperty(emoteDefinition$1,"__esModule",{value:!0});var emoteWithBlobs$1={};Object.defineProperty(emoteWithBlobs$1,"__esModule",{value:!0});(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(previewCamera$1,a),$(previewConfig$1,a),$(previewController$1,a),$(previewEmoteEventType$1,a),$(previewEmote$1,a),$(previewMessage$1,a),$(previewOptions$1,a),$(previewProjection$1,a),$(previewType$1,a),$(wearableRepresentationDefinition$1,a),$(wearableRepresentationWithBlobs$1,a),$(wearableDefinition$1,a),$(wearableWithBlobs$1,a),$(emoteRepresentationDefinition$1,a),$(emoteRepresentationWithBlobs$1,a),$(emoteDefinition$1,a),$(emoteWithBlobs$1,a)})(preview$1);var linkerAuthorization$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.LinkerAuthorization=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.LinkerAuthorization||(a.LinkerAuthorization={}))})(linkerAuthorization$1);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(st,lt,pt,_t){_t===void 0&&(_t=pt);var St=Object.getOwnPropertyDescriptor(lt,pt);(!St||("get"in St?!lt.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return lt[pt]}}),Object.defineProperty(st,_t,St)}:function(st,lt,pt,_t){_t===void 0&&(_t=pt),st[_t]=lt[pt]}),$=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(st,lt){Object.defineProperty(st,"default",{enumerable:!0,value:lt})}:function(st,lt){st.default=lt}),j=commonjsGlobal&&commonjsGlobal.__importStar||function(st){if(st&&st.__esModule)return st;var lt={};if(st!=null)for(var pt in st)pt!=="default"&&Object.prototype.hasOwnProperty.call(st,pt)&&_(lt,st,pt);return $(lt,st),lt},_e=commonjsGlobal&&commonjsGlobal.__exportStar||function(st,lt){for(var pt in st)pt!=="default"&&!Object.prototype.hasOwnProperty.call(lt,pt)&&_(lt,st,pt)};Object.defineProperty(a,"__esModule",{value:!0}),a.sdk=a.isInsideWorldLimits=a.getWorld=a.World=a.GenderFilterOption=a.WearableGender=a.Store=a.AnalyticsDayDataSortBy=a.PeriodCreation=a.RentalListingCreation=a.RentalsListingsSortBy=a.RentalsListingsFilterByCategory=a.RentalsListingSortDirection=a.RentalStatus=a.SaleSortBy=a.Sale=a.SaleType=a.Rarity=a.ProviderType=a.OrderSortBy=a.Order=a.CatalogSortDirection=a.CatalogSortBy=a.NFTSortBy=a.NFT=a.NFTCategory=a.Network=a.MintSortBy=a.Mint=a.MetaTransaction=a.ListingStatus=a.ItemSortBy=a.Item=a.ContractSortBy=a.Contract=a.CollectionSortBy=a.Collection=a.getChainId=a.ChainName=a.getURNProtocol=a.getChainName=a.ChainId=a.AccountSortBy=a.Account=a.BidSortBy=a.Bid=void 0;const et=j(sdk$1);a.sdk=et,_e(validation$3,a);var tt=bid$1;Object.defineProperty(a,"Bid",{enumerable:!0,get:function(){return tt.Bid}}),Object.defineProperty(a,"BidSortBy",{enumerable:!0,get:function(){return tt.BidSortBy}});var rt=account$1;Object.defineProperty(a,"Account",{enumerable:!0,get:function(){return rt.Account}}),Object.defineProperty(a,"AccountSortBy",{enumerable:!0,get:function(){return rt.AccountSortBy}});var it=requireChainId$1();Object.defineProperty(a,"ChainId",{enumerable:!0,get:function(){return it.ChainId}}),Object.defineProperty(a,"getChainName",{enumerable:!0,get:function(){return it.getChainName}}),Object.defineProperty(a,"getURNProtocol",{enumerable:!0,get:function(){return it.getURNProtocol}});var ct=requireChainName$1();Object.defineProperty(a,"ChainName",{enumerable:!0,get:function(){return ct.ChainName}}),Object.defineProperty(a,"getChainId",{enumerable:!0,get:function(){return ct.getChainId}});var dt=collection$1;Object.defineProperty(a,"Collection",{enumerable:!0,get:function(){return dt.Collection}}),Object.defineProperty(a,"CollectionSortBy",{enumerable:!0,get:function(){return dt.CollectionSortBy}});var mt=contract$1;Object.defineProperty(a,"Contract",{enumerable:!0,get:function(){return mt.Contract}}),Object.defineProperty(a,"ContractSortBy",{enumerable:!0,get:function(){return mt.ContractSortBy}});var vt=item$2;Object.defineProperty(a,"Item",{enumerable:!0,get:function(){return vt.Item}}),Object.defineProperty(a,"ItemSortBy",{enumerable:!0,get:function(){return vt.ItemSortBy}});var wt=listingStatus$1;Object.defineProperty(a,"ListingStatus",{enumerable:!0,get:function(){return wt.ListingStatus}});var xt=metaTransactions$1;Object.defineProperty(a,"MetaTransaction",{enumerable:!0,get:function(){return xt.MetaTransaction}});var bt=mint$1;Object.defineProperty(a,"Mint",{enumerable:!0,get:function(){return bt.Mint}}),Object.defineProperty(a,"MintSortBy",{enumerable:!0,get:function(){return bt.MintSortBy}});var Et=network$1;Object.defineProperty(a,"Network",{enumerable:!0,get:function(){return Et.Network}});var $t=nftCategory$1;Object.defineProperty(a,"NFTCategory",{enumerable:!0,get:function(){return $t.NFTCategory}});var At=nft$1;Object.defineProperty(a,"NFT",{enumerable:!0,get:function(){return At.NFT}}),Object.defineProperty(a,"NFTSortBy",{enumerable:!0,get:function(){return At.NFTSortBy}});var Rt=catalog$1;Object.defineProperty(a,"CatalogSortBy",{enumerable:!0,get:function(){return Rt.CatalogSortBy}}),Object.defineProperty(a,"CatalogSortDirection",{enumerable:!0,get:function(){return Rt.CatalogSortDirection}});var Pt=order$2;Object.defineProperty(a,"Order",{enumerable:!0,get:function(){return Pt.Order}}),Object.defineProperty(a,"OrderSortBy",{enumerable:!0,get:function(){return Pt.OrderSortBy}});var Ct=providerType$1;Object.defineProperty(a,"ProviderType",{enumerable:!0,get:function(){return Ct.ProviderType}});var Ot=rarity$1;Object.defineProperty(a,"Rarity",{enumerable:!0,get:function(){return Ot.Rarity}});var kt=saleType$1;Object.defineProperty(a,"SaleType",{enumerable:!0,get:function(){return kt.SaleType}});var Dt=sale$1;Object.defineProperty(a,"Sale",{enumerable:!0,get:function(){return Dt.Sale}}),Object.defineProperty(a,"SaleSortBy",{enumerable:!0,get:function(){return Dt.SaleSortBy}});var Nt=rentalsListings$1;Object.defineProperty(a,"RentalStatus",{enumerable:!0,get:function(){return Nt.RentalStatus}}),Object.defineProperty(a,"RentalsListingSortDirection",{enumerable:!0,get:function(){return Nt.RentalsListingSortDirection}}),Object.defineProperty(a,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return Nt.RentalsListingsFilterByCategory}}),Object.defineProperty(a,"RentalsListingsSortBy",{enumerable:!0,get:function(){return Nt.RentalsListingsSortBy}}),Object.defineProperty(a,"RentalListingCreation",{enumerable:!0,get:function(){return Nt.RentalListingCreation}}),Object.defineProperty(a,"PeriodCreation",{enumerable:!0,get:function(){return Nt.PeriodCreation}});var zt=analyticsDayData$1;Object.defineProperty(a,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return zt.AnalyticsDayDataSortBy}});var gt=store$1;Object.defineProperty(a,"Store",{enumerable:!0,get:function(){return gt.Store}});var nt=wearableGender$1;Object.defineProperty(a,"WearableGender",{enumerable:!0,get:function(){return nt.WearableGender}}),Object.defineProperty(a,"GenderFilterOption",{enumerable:!0,get:function(){return nt.GenderFilterOption}});var ot=world$1;Object.defineProperty(a,"World",{enumerable:!0,get:function(){return ot.World}}),Object.defineProperty(a,"getWorld",{enumerable:!0,get:function(){return ot.getWorld}}),Object.defineProperty(a,"isInsideWorldLimits",{enumerable:!0,get:function(){return ot.isInsideWorldLimits}}),_e(preview$1,a),_e(platform$1,a),_e(misc$1,a),_e(linkerAuthorization$1,a),_e(authChain$1,a),_e(contentMapping$1,a),_e(email,a)})(dist$7);const configuration=Object.freeze({storageKey:"decentraland-connect-storage-key",[providerType$1.ProviderType.INJECTED]:{},[providerType$1.ProviderType.FORTMATIC]:{apiKeys:{[chainIdExports.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:getRpcUrls(providerType$1.ProviderType.FORTMATIC)},[providerType$1.ProviderType.NETWORK]:{urls:getRpcUrls(providerType$1.ProviderType.NETWORK)},[providerType$1.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:getRpcUrls(providerType$1.ProviderType.WALLET_LINK)},[providerType$1.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:getRpcUrls(providerType$1.ProviderType.WALLET_CONNECT_V2),chains:{[chainIdExports.ChainId.ETHEREUM_MAINNET]:{chains:[chainIdExports.ChainId.ETHEREUM_MAINNET],optionalChains:[chainIdExports.ChainId.MATIC_MAINNET,chainIdExports.ChainId.ARBITRUM_MAINNET,chainIdExports.ChainId.OPTIMISM_MAINNET,chainIdExports.ChainId.AVALANCHE_MAINNET,chainIdExports.ChainId.BSC_MAINNET,chainIdExports.ChainId.FANTOM_MAINNET]},[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:{chains:[chainIdExports.ChainId.ETHEREUM_SEPOLIA],optionalChains:[chainIdExports.ChainId.MATIC_AMOY]}}},[providerType$1.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:getRpcUrls(providerType$1.ProviderType.MAGIC),chains:[chainIdExports.ChainId.ETHEREUM_MAINNET,chainIdExports.ChainId.ETHEREUM_SEPOLIA,chainIdExports.ChainId.MATIC_MAINNET,chainIdExports.ChainId.MATIC_AMOY,chainIdExports.ChainId.OPTIMISM_MAINNET,chainIdExports.ChainId.ARBITRUM_MAINNET,chainIdExports.ChainId.AVALANCHE_MAINNET,chainIdExports.ChainId.BSC_MAINNET,chainIdExports.ChainId.FANTOM_MAINNET]}});function getConfiguration(){return configuration}function getRpcUrls(a){const _={[chainIdExports.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[chainIdExports.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[chainIdExports.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[chainIdExports.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[chainIdExports.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[chainIdExports.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[chainIdExports.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[chainIdExports.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let $="";switch(a){case providerType$1.ProviderType.WALLET_LINK:$="walletlink";break;case providerType$1.ProviderType.FORTMATIC:$="fortmatic";break;case providerType$1.ProviderType.MAGIC:$="magic";break;case providerType$1.ProviderType.WALLET_CONNECT_V2:$="walletconnect-v2";break;case providerType$1.ProviderType.AUTH_SERVER:$="auth-server";break}if($)for(const j in _)_[j]+=`?project=${$}`;return _}class FortmaticConnector extends AbstractConnector{constructor(_){const $=getConfiguration()[dist$7.ProviderType.FORTMATIC],j=Object.keys($.apiKeys).map(_e=>Number(_e));if(!j.includes(_))throw new Error(`Invariant error: Unsupported chainId ${_}`);super({supportedChainIds:j}),this.apiKey=$.apiKeys[_],this.chainId=_,this.rpcUrl=$.urls[_]}async activate(){if(!this.fortmatic){const{default:$}=await __vitePreload(()=>import("./fortmatic-7379efff.js").then(j=>j.f),[]);this.fortmatic=new $(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const _=await this.fortmatic.getProvider().enable().then($=>$[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:_}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(_=>_[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function warning$2(a,_){}function _extends$4(){return _extends$4=Object.assign||function(a){for(var _=1;_<arguments.length;_++){var $=arguments[_];for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&(a[j]=$[j])}return a},_extends$4.apply(this,arguments)}function _inheritsLoose$4(a,_){a.prototype=Object.create(_.prototype),a.prototype.constructor=a,a.__proto__=_}function _getPrototypeOf$x(a){return _getPrototypeOf$x=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$x(a)}function _setPrototypeOf$z(a,_){return _setPrototypeOf$z=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$z(a,_)}function isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct$1(a,_,$){return isNativeReflectConstruct()?_construct$1=Reflect.construct:_construct$1=function(_e,et,tt){var rt=[null];rt.push.apply(rt,et);var it=Function.bind.apply(_e,rt),ct=new it;return tt&&_setPrototypeOf$z(ct,tt.prototype),ct},_construct$1.apply(null,arguments)}function _isNativeFunction$1(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function _wrapNativeSuper$1(a){var _=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$1=function(j){if(j===null||!_isNativeFunction$1(j))return j;if(typeof j!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _<"u"){if(_.has(j))return _.get(j);_.set(j,_e)}function _e(){return _construct$1(j,arguments,_getPrototypeOf$x(this).constructor)}return _e.prototype=Object.create(j.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$z(_e,j)},_wrapNativeSuper$1(a)}function _assertThisInitialized$y(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function _catch(a,_){try{var $=a()}catch(j){return _(j)}return $&&$.then?$.then(void 0,_):$}function parseSendReturn(a){return a.hasOwnProperty("result")?a.result:a}var NoEthereumProviderError=function(a){_inheritsLoose$4(_,a);function _(){var $;return $=a.call(this)||this,$.name=$.constructor.name,$.message="No Ethereum provider was found on window.ethereum.",$}return _}(_wrapNativeSuper$1(Error)),UserRejectedRequestError=function(a){_inheritsLoose$4(_,a);function _(){var $;return $=a.call(this)||this,$.name=$.constructor.name,$.message="The user rejected the request.",$}return _}(_wrapNativeSuper$1(Error)),InjectedConnector$1=function(a){_inheritsLoose$4(_,a);function _(j){var _e;return _e=a.call(this,j)||this,_e.handleNetworkChanged=_e.handleNetworkChanged.bind(_assertThisInitialized$y(_e)),_e.handleChainChanged=_e.handleChainChanged.bind(_assertThisInitialized$y(_e)),_e.handleAccountsChanged=_e.handleAccountsChanged.bind(_assertThisInitialized$y(_e)),_e.handleClose=_e.handleClose.bind(_assertThisInitialized$y(_e)),_e}var $=_.prototype;return $.handleChainChanged=function(_e){this.emitUpdate({chainId:_e,provider:window.ethereum})},$.handleAccountsChanged=function(_e){_e.length===0?this.emitDeactivate():this.emitUpdate({account:_e[0]})},$.handleClose=function(_e,et){this.emitDeactivate()},$.handleNetworkChanged=function(_e){this.emitUpdate({chainId:_e,provider:window.ethereum})},$.activate=function(){try{var _e=function(dt){if(et)return dt;function mt(){return _extends$4({provider:window.ethereum},rt?{account:rt}:{})}var vt=function(){if(!rt)return Promise.resolve(window.ethereum.enable().then(function(wt){return wt&&parseSendReturn(wt)[0]})).then(function(wt){rt=wt})}();return vt&&vt.then?vt.then(mt):mt(vt)},et=!1,tt=this;if(!window.ethereum)throw new NoEthereumProviderError;window.ethereum.on&&(window.ethereum.on("chainChanged",tt.handleChainChanged),window.ethereum.on("accountsChanged",tt.handleAccountsChanged),window.ethereum.on("close",tt.handleClose),window.ethereum.on("networkChanged",tt.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var rt,it=_catch(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(ct){return parseSendReturn(ct)[0]})).then(function(ct){rt=ct})},function(ct){if(ct.code===4001)throw new UserRejectedRequestError});return Promise.resolve(it&&it.then?it.then(_e):_e(it))}catch(ct){return Promise.reject(ct)}},$.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(_e){return Promise.reject(_e)}},$.getChainId=function(){try{var _e=function(){function it(){if(!et)try{et=parseSendReturn(window.ethereum.send({method:"net_version"}))}catch{}return et||(window.ethereum.isDapper?et=parseSendReturn(window.ethereum.cachedResults.net_version):et=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),et}var ct=function(){if(!et){var dt=_catch(function(){return Promise.resolve(window.ethereum.send("net_version").then(parseSendReturn)).then(function(mt){et=mt})},function(){});if(dt&&dt.then)return dt.then(function(){})}}();return ct&&ct.then?ct.then(it):it(ct)};if(!window.ethereum)throw new NoEthereumProviderError;var et,tt=_catch(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(parseSendReturn)).then(function(rt){et=rt})},function(){});return Promise.resolve(tt&&tt.then?tt.then(_e):_e(tt))}catch(rt){return Promise.reject(rt)}},$.getAccount=function(){try{var _e=function(){function it(){return et||(et=parseSendReturn(window.ethereum.send({method:"eth_accounts"}))[0]),et}var ct=function(){if(!et){var dt=_catch(function(){return Promise.resolve(window.ethereum.enable().then(function(mt){return parseSendReturn(mt)[0]})).then(function(mt){et=mt})},function(){});if(dt&&dt.then)return dt.then(function(){})}}();return ct&&ct.then?ct.then(it):it(ct)};if(!window.ethereum)throw new NoEthereumProviderError;var et,tt=_catch(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(rt){return parseSendReturn(rt)[0]})).then(function(rt){et=rt})},function(){});return Promise.resolve(tt&&tt.then?tt.then(_e):_e(tt))}catch(rt){return Promise.reject(rt)}},$.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},$.isAuthorized=function(){try{return window.ethereum?Promise.resolve(_catch(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(_e){return parseSendReturn(_e).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(_e){return Promise.reject(_e)}},_}(AbstractConnector);class ErrorUnlockingWallet extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const UNLOCK_WALLET_TIMEOUT=60*1e3;class InjectedConnector extends InjectedConnector$1{constructor(_){super({supportedChainIds:[_]})}async activate(){const _=new Promise((j,_e)=>{setTimeout(()=>{_e(new ErrorUnlockingWallet)},UNLOCK_WALLET_TIMEOUT)}),$=super.activate();return Promise.race([$,_])}}var prefix="Invariant failed";function invariant(a,_){if(!a)throw new Error(prefix)}function _inheritsLoose$3(a,_){a.prototype=Object.create(_.prototype),a.prototype.constructor=a,_setPrototypeOf$y(a,_)}function _getPrototypeOf$w(a){return _getPrototypeOf$w=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$w(a)}function _setPrototypeOf$y(a,_){return _setPrototypeOf$y=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$y(a,_)}function _isNativeReflectConstruct$w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct(a,_,$){return _isNativeReflectConstruct$w()?_construct=Reflect.construct:_construct=function(_e,et,tt){var rt=[null];rt.push.apply(rt,et);var it=Function.bind.apply(_e,rt),ct=new it;return tt&&_setPrototypeOf$y(ct,tt.prototype),ct},_construct.apply(null,arguments)}function _isNativeFunction(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function _wrapNativeSuper(a){var _=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(j){if(j===null||!_isNativeFunction(j))return j;if(typeof j!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _<"u"){if(_.has(j))return _.get(j);_.set(j,_e)}function _e(){return _construct(j,arguments,_getPrototypeOf$w(this).constructor)}return _e.prototype=Object.create(j.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$y(_e,j)},_wrapNativeSuper(a)}var RequestError=function(a){_inheritsLoose$3(_,a);function _($,j,_e){var et;return et=a.call(this)||this,et.code=j,et.data=_e,et.name=et.constructor.name,et.message=$,et}return _}(_wrapNativeSuper(Error)),MiniRpcProvider=function(_,$){var j=this,_e=this;this.isMetaMask=!1,this.sendAsync=function(tt,rt){console.log("sendAsync",tt.method,tt.params),_e.request(tt.method,tt.params).then(function(it){return rt(null,{jsonrpc:"2.0",id:tt.id,result:it})}).catch(function(it){return rt(it,null)})},this.request=function(tt,rt){try{return typeof tt!="string"&&(rt=tt.params,tt=tt.method),Promise.resolve(fetch(j.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:tt,params:rt}),headers:{"Content-Type":"application/json"}})).then(function(it){if(!it.ok)throw new RequestError(it.status+": "+it.statusText,-32e3);return Promise.resolve(it.json()).then(function(ct){if("error"in ct){var dt,mt,vt;throw new RequestError(ct==null||(dt=ct.error)==null?void 0:dt.message,ct==null||(mt=ct.error)==null?void 0:mt.code,ct==null||(vt=ct.error)==null?void 0:vt.data)}else{if("result"in ct)return ct.result;throw new RequestError("Received unexpected JSON-RPC response to "+tt+" request.",-32e3,ct)}})})}catch(it){return Promise.reject(it)}},this.chainId=_,this.url=$;var et=new URL($);this.host=et.host,this.path=et.pathname},NetworkConnector$1=function(a){_inheritsLoose$3(_,a);function _(j){var _e,et=j.urls,tt=j.defaultChainId;return tt||Object.keys(et).length===1||invariant(!1),_e=a.call(this,{supportedChainIds:Object.keys(et).map(function(rt){return Number(rt)})})||this,_e.currentChainId=tt||Number(Object.keys(et)[0]),_e.providers=Object.keys(et).reduce(function(rt,it){return rt[Number(it)]=new MiniRpcProvider(Number(it),et[Number(it)]),rt},{}),_e}var $=_.prototype;return $.activate=function(){try{var _e=this;return Promise.resolve({provider:_e.providers[_e.currentChainId],chainId:_e.currentChainId,account:null})}catch(et){return Promise.reject(et)}},$.getProvider=function(){try{var _e=this;return Promise.resolve(_e.providers[_e.currentChainId])}catch(et){return Promise.reject(et)}},$.getChainId=function(){try{var _e=this;return Promise.resolve(_e.currentChainId)}catch(et){return Promise.reject(et)}},$.getAccount=function(){return Promise.resolve(null)},$.deactivate=function(){},$.changeChainId=function(_e){Object.keys(this.providers).includes(_e.toString())||invariant(!1),this.currentChainId=_e,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:_e})},_}(AbstractConnector);class NetworkConnector extends NetworkConnector$1{constructor(_){super({urls:getConfiguration()[providerType$1.ProviderType.NETWORK].urls,defaultChainId:_})}}function _extends$3(){return _extends$3=Object.assign||function(a){for(var _=1;_<arguments.length;_++){var $=arguments[_];for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&(a[j]=$[j])}return a},_extends$3.apply(this,arguments)}function _inheritsLoose$2(a,_){a.prototype=Object.create(_.prototype),a.prototype.constructor=a,_setPrototypeOf$x(a,_)}function _setPrototypeOf$x(a,_){return _setPrototypeOf$x=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$x(a,_)}function _assertThisInitialized$x(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}var CHAIN_ID=1,WalletLinkConnector$1=function(a){_inheritsLoose$2(_,a);function _(j){var _e,et=j.url,tt=j.appName,rt=j.appLogoUrl,it=j.darkMode,ct=j.supportedChainIds;return _e=a.call(this,{supportedChainIds:ct})||this,_e.url=et,_e.appName=tt,_e.appLogoUrl=rt,_e.darkMode=it||!1,_e.handleChainChanged=_e.handleChainChanged.bind(_assertThisInitialized$x(_e)),_e.handleAccountsChanged=_e.handleAccountsChanged.bind(_assertThisInitialized$x(_e)),_e}var $=_.prototype;return $.activate=function(){try{var _e=this,et=function(){return Promise.resolve(_e.provider.request({method:"eth_requestAccounts"})).then(function(it){var ct=it[0];return _e.provider.on("chainChanged",_e.handleChainChanged),_e.provider.on("accountsChanged",_e.handleAccountsChanged),{provider:_e.provider,account:ct}})},tt=function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)_e.provider=window.ethereum;else{var rt=function(){if(!_e.walletLink)return Promise.resolve(__vitePreload(()=>import("./index-9b300f37.js").then(it=>it.i),["assets/index-9b300f37.js","assets/tslib.es6-c2094241.js"]).then(function(it){var ct;return(ct=it==null?void 0:it.default)!=null?ct:it})).then(function(it){_e.walletLink=new it(_extends$3({appName:_e.appName,darkMode:_e.darkMode},_e.appLogoUrl?{appLogoUrl:_e.appLogoUrl}:{})),_e.provider=_e.walletLink.makeWeb3Provider(_e.url,CHAIN_ID)})}();if(rt&&rt.then)return rt.then(function(){})}}();return Promise.resolve(tt&&tt.then?tt.then(et):et(tt))}catch(rt){return Promise.reject(rt)}},$.getProvider=function(){try{var _e=this;return Promise.resolve(_e.provider)}catch(et){return Promise.reject(et)}},$.getChainId=function(){try{var _e=this;return Promise.resolve(_e.provider.chainId)}catch(et){return Promise.reject(et)}},$.getAccount=function(){try{var _e=this;return Promise.resolve(_e.provider.request({method:"eth_requestAccounts"})).then(function(et){return et[0]})}catch(et){return Promise.reject(et)}},$.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},$.close=function(){try{var _e=this;return _e.provider.close(),_e.emitDeactivate(),Promise.resolve()}catch(et){return Promise.reject(et)}},$.handleChainChanged=function(_e){this.emitUpdate({chainId:_e})},$.handleAccountsChanged=function(_e){this.emitUpdate({account:_e[0]})},_}(AbstractConnector);class WalletLinkConnector extends WalletLinkConnector$1{constructor(_){const $=getConfiguration()[dist$7.ProviderType.WALLET_LINK];super({url:$.urls[_],appName:$.appName,supportedChainIds:[_]})}}class WalletConnectV2Connector extends AbstractConnector{constructor(_){super({supportedChainIds:(()=>{const{chains:$,optionalChains:j}=WalletConnectV2Connector.configuration.chains[_];return[...$,...j]})()}),this.desiredChainId=_,this.activate=async()=>{const $=await __vitePreload(()=>import("./index.es-17ca196b.js"),["assets/index.es-17ca196b.js","assets/tslib.es6-c2094241.js"]).then(_e=>{const{chains:et,optionalChains:tt}=WalletConnectV2Connector.configuration.chains[this.desiredChainId];return _e.default.init({projectId:WalletConnectV2Connector.configuration.projectId,rpcMap:WalletConnectV2Connector.configuration.urls,chains:et,optionalChains:tt,showQrModal:!0,disableProviderPing:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"3000"}},methods:["eth_sendTransaction","personal_sign"],optionalMethods:["eth_accounts","eth_requestAccounts","eth_sign","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain"],events:["chainChanged","accountsChanged"],optionalEvents:["disconnect"]})}),j=await $.enable();return $.on("accountsChanged",this.handleAccountsChanged),$.on("chainChanged",this.handleChainChanged),$.on("disconnect",this.handleDisconnect),this.provider=$,{chainId:$.chainId,account:j[0],provider:$}},this.getProvider=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider},this.getChainId=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.chainId},this.getAccount=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.accounts[0]},this.getWalletName=()=>{var $,j;return(j=($=this.provider)==null?void 0:$.session)==null?void 0:j.peer.metadata.name},this.deactivate=()=>{},this.close=async()=>{if(this.provider)return this.provider.removeListener("accountsChanged",this.handleAccountsChanged).removeListener("chainChanged",this.handleChainChanged).removeListener("disconnect",this.handleDisconnect).disconnect()},this.handleAccountsChanged=$=>{this.emitUpdate({account:$[0]})},this.handleChainChanged=$=>{this.emitUpdate({chainId:$})},this.handleDisconnect=()=>{if(!this.provider)throw new Error("Provider is undefined");return this.emitDeactivate()}}}WalletConnectV2Connector.configuration=getConfiguration()[dist$7.ProviderType.WALLET_CONNECT_V2];WalletConnectV2Connector.clearStorage=a=>{a.removeRegExp(new RegExp("^wc@2:"))};class MagicConnector extends AbstractConnector{constructor(_){super({supportedChainIds:getConfiguration()[dist$7.ProviderType.MAGIC].chains}),this.activate=async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const j=await this.getProvider(),_e=await j.request({method:"eth_accounts"});return this.account=_e[0]??null,{provider:j,chainId:this.chainId,account:this.account}},this.getProvider=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const $=await this.magic.wallet.getProvider();return{...$,request:new Proxy($.request,{apply:async(j,_e,et)=>{var tt,rt,it;if(((tt=et[0])==null?void 0:tt.method)==="wallet_switchEthereumChain")try{const ct=parseInt((it=(rt=et[0])==null?void 0:rt.params[0])==null?void 0:it.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(ct)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(ct),this.emitUpdate({chainId:ct}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return j.bind($)(...et)}})}},this.getChainId=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId},this.getAccount=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account},this.deactivate=()=>{},this.buildMagicInstance=async $=>{const{Magic:j}=await __vitePreload(()=>import("./index-8a46796e.js"),["assets/index-8a46796e.js","assets/index-c5bbafed.js"]),{OAuthExtension:_e}=await __vitePreload(()=>import("./index-80adc4ef.js"),["assets/index-80adc4ef.js","assets/index-c5bbafed.js"]),et=getConfiguration()[dist$7.ProviderType.MAGIC];return new j(et.apiKey,{extensions:[new _e],network:{rpcUrl:et.urls[$],chainId:$}})},this.chainId=_,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}var dist$6={},Authenticator={};function getDefaultExportFromCjs(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var browser$d={exports:{}},process=browser$d.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(a){if(cachedSetTimeout===setTimeout)return setTimeout(a,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(a,0);try{return cachedSetTimeout(a,0)}catch{try{return cachedSetTimeout.call(null,a,0)}catch{return cachedSetTimeout.call(this,a,0)}}}function runClearTimeout(a){if(cachedClearTimeout===clearTimeout)return clearTimeout(a);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(a);try{return cachedClearTimeout(a)}catch{try{return cachedClearTimeout.call(null,a)}catch{return cachedClearTimeout.call(this,a)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var a=runTimeout(cleanUpNextTick);draining=!0;for(var _=queue.length;_;){for(currentQueue=queue,queue=[];++queueIndex<_;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,_=queue.length}currentQueue=null,draining=!1,runClearTimeout(a)}}process.nextTick=function(a){var _=new Array(arguments.length-1);if(arguments.length>1)for(var $=1;$<arguments.length;$++)_[$-1]=arguments[$];queue.push(new Item(a,_)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(a,_){this.fun=a,this.array=_}Item.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=!0;process.env={};process.argv=[];process.version="";process.versions={};function noop$4(){}process.on=noop$4;process.addListener=noop$4;process.once=noop$4;process.off=noop$4;process.removeListener=noop$4;process.removeAllListeners=noop$4;process.emit=noop$4;process.prependListener=noop$4;process.prependOnceListener=noop$4;process.listeners=function(a){return[]};process.binding=function(a){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(a){throw new Error("process.chdir is not supported")};process.umask=function(){return 0};var browserExports$1=browser$d.exports;const process$1=getDefaultExportFromCjs(browserExports$1);var ethConnect={exports:{}};(function(a,_){(function($,j){j(_)})(commonjsGlobal,function($){function j(qt){if(qt.jsonrpc="2.0",!qt.id||typeof qt.id!="number"||Math.floor(qt.id)!==qt.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(qt)}`);if(!qt.method||typeof qt.method!="string"||qt.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(qt)}`);if(!qt.params||typeof qt.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(qt)}`);return qt}var _e={};function et(){let qt,Ht;const rr=new Promise((Er,Rr)=>{qt=Br=>{Er(Br),rr.isPending=!1},Ht=Br=>{Rr(Br),rr.isPending=!1}}).catch(Er=>Promise.reject(Er));return rr.resolve=qt,rr.reject=Ht,"finally"in rr||(rr.finally=Er=>{rr.then(Er),rr.catch(Er)}),rr.isPending=!0,rr}Object.defineProperty(_e,"__esModule",{value:!0});var tt=_e.future=et;_e.default=et;var rt={exports:{}};/**
|
|
110
|
+
deps: ${dt}}`};const _e={keyword:"dependencies",type:"object",schemaType:"object",error:a.error,code(it){const[ct,dt]=et(it);tt(it,ct),rt(it,dt)}};function et({schema:it}){const ct={},dt={};for(const mt in it){if(mt==="__proto__")continue;const vt=Array.isArray(it[mt])?ct:dt;vt[mt]=it[mt]}return[ct,dt]}function tt(it,ct=it.schema){const{gen:dt,data:mt,it:vt}=it;if(Object.keys(ct).length===0)return;const wt=dt.let("missing");for(const xt in ct){const bt=ct[xt];if(bt.length===0)continue;const Et=(0,j.propertyInData)(dt,mt,xt,vt.opts.ownProperties);it.setParams({property:xt,depsCount:bt.length,deps:bt.join(", ")}),vt.allErrors?dt.if(Et,()=>{for(const $t of bt)(0,j.checkReportMissingProp)(it,$t)}):(dt.if((0,_._)`${Et} && (${(0,j.checkMissingProp)(it,bt,wt)})`),(0,j.reportMissingProp)(it,wt),dt.else())}}a.validatePropertyDeps=tt;function rt(it,ct=it.schema){const{gen:dt,data:mt,keyword:vt,it:wt}=it,xt=dt.name("valid");for(const bt in ct)(0,$.alwaysValidSchema)(wt,ct[bt])||(dt.if((0,j.propertyInData)(dt,mt,bt,wt.opts.ownProperties),()=>{const Et=it.subschema({keyword:vt,schemaProp:bt},xt);it.mergeValidEvaluated(Et,xt)},()=>dt.var(xt,!0)),it.ok(xt))}a.validateSchemaDeps=rt,a.default=_e})(dependencies$2);var propertyNames={};Object.defineProperty(propertyNames,"__esModule",{value:!0});const codegen_1$7=codegen,util_1$9=util$1,error$6={message:"property name must be valid",params:({params:a})=>(0,codegen_1$7._)`{propertyName: ${a.propertyName}}`},def$b={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:error$6,code(a){const{gen:_,schema:$,data:j,it:_e}=a;if((0,util_1$9.alwaysValidSchema)(_e,$))return;const et=_.name("valid");_.forIn("key",j,tt=>{a.setParams({propertyName:tt}),a.subschema({keyword:"propertyNames",data:tt,dataTypes:["string"],propertyName:tt,compositeRule:!0},et),_.if((0,codegen_1$7.not)(et),()=>{a.error(!0),_e.allErrors||_.break()})}),a.ok(et)}};propertyNames.default=def$b;var additionalProperties={};Object.defineProperty(additionalProperties,"__esModule",{value:!0});const code_1$3=code$1,codegen_1$6=codegen,names_1=names$1,util_1$8=util$1,error$5={message:"must NOT have additional properties",params:({params:a})=>(0,codegen_1$6._)`{additionalProperty: ${a.additionalProperty}}`},def$a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:error$5,code(a){const{gen:_,schema:$,parentSchema:j,data:_e,errsCount:et,it:tt}=a;if(!et)throw new Error("ajv implementation error");const{allErrors:rt,opts:it}=tt;if(tt.props=!0,it.removeAdditional!=="all"&&(0,util_1$8.alwaysValidSchema)(tt,$))return;const ct=(0,code_1$3.allSchemaProperties)(j.properties),dt=(0,code_1$3.allSchemaProperties)(j.patternProperties);mt(),a.ok((0,codegen_1$6._)`${et} === ${names_1.default.errors}`);function mt(){_.forIn("key",_e,Et=>{!ct.length&&!dt.length?xt(Et):_.if(vt(Et),()=>xt(Et))})}function vt(Et){let $t;if(ct.length>8){const At=(0,util_1$8.schemaRefOrVal)(tt,j.properties,"properties");$t=(0,code_1$3.isOwnProperty)(_,At,Et)}else ct.length?$t=(0,codegen_1$6.or)(...ct.map(At=>(0,codegen_1$6._)`${Et} === ${At}`)):$t=codegen_1$6.nil;return dt.length&&($t=(0,codegen_1$6.or)($t,...dt.map(At=>(0,codegen_1$6._)`${(0,code_1$3.usePattern)(a,At)}.test(${Et})`))),(0,codegen_1$6.not)($t)}function wt(Et){_.code((0,codegen_1$6._)`delete ${_e}[${Et}]`)}function xt(Et){if(it.removeAdditional==="all"||it.removeAdditional&&$===!1){wt(Et);return}if($===!1){a.setParams({additionalProperty:Et}),a.error(),rt||_.break();return}if(typeof $=="object"&&!(0,util_1$8.alwaysValidSchema)(tt,$)){const $t=_.name("valid");it.removeAdditional==="failing"?(bt(Et,$t,!1),_.if((0,codegen_1$6.not)($t),()=>{a.reset(),wt(Et)})):(bt(Et,$t),rt||_.if((0,codegen_1$6.not)($t),()=>_.break()))}}function bt(Et,$t,At){const Rt={keyword:"additionalProperties",dataProp:Et,dataPropType:util_1$8.Type.Str};At===!1&&Object.assign(Rt,{compositeRule:!0,createErrors:!1,allErrors:!1}),a.subschema(Rt,$t)}}};additionalProperties.default=def$a;var properties$1={};Object.defineProperty(properties$1,"__esModule",{value:!0});const validate_1=validate,code_1$2=code$1,util_1$7=util$1,additionalProperties_1$1=additionalProperties,def$9={keyword:"properties",type:"object",schemaType:"object",code(a){const{gen:_,schema:$,parentSchema:j,data:_e,it:et}=a;et.opts.removeAdditional==="all"&&j.additionalProperties===void 0&&additionalProperties_1$1.default.code(new validate_1.KeywordCxt(et,additionalProperties_1$1.default,"additionalProperties"));const tt=(0,code_1$2.allSchemaProperties)($);for(const mt of tt)et.definedProperties.add(mt);et.opts.unevaluated&&tt.length&&et.props!==!0&&(et.props=util_1$7.mergeEvaluated.props(_,(0,util_1$7.toHash)(tt),et.props));const rt=tt.filter(mt=>!(0,util_1$7.alwaysValidSchema)(et,$[mt]));if(rt.length===0)return;const it=_.name("valid");for(const mt of rt)ct(mt)?dt(mt):(_.if((0,code_1$2.propertyInData)(_,_e,mt,et.opts.ownProperties)),dt(mt),et.allErrors||_.else().var(it,!0),_.endIf()),a.it.definedProperties.add(mt),a.ok(it);function ct(mt){return et.opts.useDefaults&&!et.compositeRule&&$[mt].default!==void 0}function dt(mt){a.subschema({keyword:"properties",schemaProp:mt,dataProp:mt},it)}}};properties$1.default=def$9;var patternProperties={};Object.defineProperty(patternProperties,"__esModule",{value:!0});const code_1$1=code$1,codegen_1$5=codegen,util_1$6=util$1,util_2=util$1,def$8={keyword:"patternProperties",type:"object",schemaType:"object",code(a){const{gen:_,schema:$,data:j,parentSchema:_e,it:et}=a,{opts:tt}=et,rt=(0,code_1$1.allSchemaProperties)($),it=rt.filter(bt=>(0,util_1$6.alwaysValidSchema)(et,$[bt]));if(rt.length===0||it.length===rt.length&&(!et.opts.unevaluated||et.props===!0))return;const ct=tt.strictSchema&&!tt.allowMatchingProperties&&_e.properties,dt=_.name("valid");et.props!==!0&&!(et.props instanceof codegen_1$5.Name)&&(et.props=(0,util_2.evaluatedPropsToName)(_,et.props));const{props:mt}=et;vt();function vt(){for(const bt of rt)ct&&wt(bt),et.allErrors?xt(bt):(_.var(dt,!0),xt(bt),_.if(dt))}function wt(bt){for(const Et in ct)new RegExp(bt).test(Et)&&(0,util_1$6.checkStrictMode)(et,`property ${Et} matches pattern ${bt} (use allowMatchingProperties)`)}function xt(bt){_.forIn("key",j,Et=>{_.if((0,codegen_1$5._)`${(0,code_1$1.usePattern)(a,bt)}.test(${Et})`,()=>{const $t=it.includes(bt);$t||a.subschema({keyword:"patternProperties",schemaProp:bt,dataProp:Et,dataPropType:util_2.Type.Str},dt),et.opts.unevaluated&&mt!==!0?_.assign((0,codegen_1$5._)`${mt}[${Et}]`,!0):!$t&&!et.allErrors&&_.if((0,codegen_1$5.not)(dt),()=>_.break())})})}}};patternProperties.default=def$8;var not={};Object.defineProperty(not,"__esModule",{value:!0});const util_1$5=util$1,def$7={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(a){const{gen:_,schema:$,it:j}=a;if((0,util_1$5.alwaysValidSchema)(j,$)){a.fail();return}const _e=_.name("valid");a.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},_e),a.failResult(_e,()=>a.reset(),()=>a.error())},error:{message:"must NOT be valid"}};not.default=def$7;var anyOf={};Object.defineProperty(anyOf,"__esModule",{value:!0});const code_1=code$1,def$6={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:code_1.validateUnion,error:{message:"must match a schema in anyOf"}};anyOf.default=def$6;var oneOf$1={};Object.defineProperty(oneOf$1,"__esModule",{value:!0});const codegen_1$4=codegen,util_1$4=util$1,error$4={message:"must match exactly one schema in oneOf",params:({params:a})=>(0,codegen_1$4._)`{passingSchemas: ${a.passing}}`},def$5={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:error$4,code(a){const{gen:_,schema:$,parentSchema:j,it:_e}=a;if(!Array.isArray($))throw new Error("ajv implementation error");if(_e.opts.discriminator&&j.discriminator)return;const et=$,tt=_.let("valid",!1),rt=_.let("passing",null),it=_.name("_valid");a.setParams({passing:rt}),_.block(ct),a.result(tt,()=>a.reset(),()=>a.error(!0));function ct(){et.forEach((dt,mt)=>{let vt;(0,util_1$4.alwaysValidSchema)(_e,dt)?_.var(it,!0):vt=a.subschema({keyword:"oneOf",schemaProp:mt,compositeRule:!0},it),mt>0&&_.if((0,codegen_1$4._)`${it} && ${tt}`).assign(tt,!1).assign(rt,(0,codegen_1$4._)`[${rt}, ${mt}]`).else(),_.if(it,()=>{_.assign(tt,!0),_.assign(rt,mt),vt&&a.mergeEvaluated(vt,codegen_1$4.Name)})})}}};oneOf$1.default=def$5;var allOf={};Object.defineProperty(allOf,"__esModule",{value:!0});const util_1$3=util$1,def$4={keyword:"allOf",schemaType:"array",code(a){const{gen:_,schema:$,it:j}=a;if(!Array.isArray($))throw new Error("ajv implementation error");const _e=_.name("valid");$.forEach((et,tt)=>{if((0,util_1$3.alwaysValidSchema)(j,et))return;const rt=a.subschema({keyword:"allOf",schemaProp:tt},_e);a.ok(_e),a.mergeEvaluated(rt)})}};allOf.default=def$4;var _if={};Object.defineProperty(_if,"__esModule",{value:!0});const codegen_1$3=codegen,util_1$2=util$1,error$3={message:({params:a})=>(0,codegen_1$3.str)`must match "${a.ifClause}" schema`,params:({params:a})=>(0,codegen_1$3._)`{failingKeyword: ${a.ifClause}}`},def$3={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:error$3,code(a){const{gen:_,parentSchema:$,it:j}=a;$.then===void 0&&$.else===void 0&&(0,util_1$2.checkStrictMode)(j,'"if" without "then" and "else" is ignored');const _e=hasSchema(j,"then"),et=hasSchema(j,"else");if(!_e&&!et)return;const tt=_.let("valid",!0),rt=_.name("_valid");if(it(),a.reset(),_e&&et){const dt=_.let("ifClause");a.setParams({ifClause:dt}),_.if(rt,ct("then",dt),ct("else",dt))}else _e?_.if(rt,ct("then")):_.if((0,codegen_1$3.not)(rt),ct("else"));a.pass(tt,()=>a.error(!0));function it(){const dt=a.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},rt);a.mergeEvaluated(dt)}function ct(dt,mt){return()=>{const vt=a.subschema({keyword:dt},rt);_.assign(tt,rt),a.mergeValidEvaluated(vt,tt),mt?_.assign(mt,(0,codegen_1$3._)`${dt}`):a.setParams({ifClause:dt})}}}};function hasSchema(a,_){const $=a.schema[_];return $!==void 0&&!(0,util_1$2.alwaysValidSchema)(a,$)}_if.default=def$3;var thenElse={};Object.defineProperty(thenElse,"__esModule",{value:!0});const util_1$1=util$1,def$2={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:a,parentSchema:_,it:$}){_.if===void 0&&(0,util_1$1.checkStrictMode)($,`"${a}" without "if" is ignored`)}};thenElse.default=def$2;Object.defineProperty(applicator,"__esModule",{value:!0});const additionalItems_1=additionalItems,prefixItems_1=prefixItems,items_1=items,items2020_1=items2020,contains_1=contains$1,dependencies_1=dependencies$2,propertyNames_1=propertyNames,additionalProperties_1=additionalProperties,properties_1=properties$1,patternProperties_1=patternProperties,not_1=not,anyOf_1=anyOf,oneOf_1=oneOf$1,allOf_1=allOf,if_1=_if,thenElse_1=thenElse;function getApplicator(a=!1){const _=[not_1.default,anyOf_1.default,oneOf_1.default,allOf_1.default,if_1.default,thenElse_1.default,propertyNames_1.default,additionalProperties_1.default,dependencies_1.default,properties_1.default,patternProperties_1.default];return a?_.push(prefixItems_1.default,items2020_1.default):_.push(additionalItems_1.default,items_1.default),_.push(contains_1.default),_}applicator.default=getApplicator;var format$3={},format$2={};Object.defineProperty(format$2,"__esModule",{value:!0});const codegen_1$2=codegen,error$2={message:({schemaCode:a})=>(0,codegen_1$2.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,codegen_1$2._)`{format: ${a}}`},def$1={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:error$2,code(a,_){const{gen:$,data:j,$data:_e,schema:et,schemaCode:tt,it:rt}=a,{opts:it,errSchemaPath:ct,schemaEnv:dt,self:mt}=rt;if(!it.validateFormats)return;_e?vt():wt();function vt(){const xt=$.scopeValue("formats",{ref:mt.formats,code:it.code.formats}),bt=$.const("fDef",(0,codegen_1$2._)`${xt}[${tt}]`),Et=$.let("fType"),$t=$.let("format");$.if((0,codegen_1$2._)`typeof ${bt} == "object" && !(${bt} instanceof RegExp)`,()=>$.assign(Et,(0,codegen_1$2._)`${bt}.type || "string"`).assign($t,(0,codegen_1$2._)`${bt}.validate`),()=>$.assign(Et,(0,codegen_1$2._)`"string"`).assign($t,bt)),a.fail$data((0,codegen_1$2.or)(At(),Rt()));function At(){return it.strictSchema===!1?codegen_1$2.nil:(0,codegen_1$2._)`${tt} && !${$t}`}function Rt(){const Pt=dt.$async?(0,codegen_1$2._)`(${bt}.async ? await ${$t}(${j}) : ${$t}(${j}))`:(0,codegen_1$2._)`${$t}(${j})`,Ct=(0,codegen_1$2._)`(typeof ${$t} == "function" ? ${Pt} : ${$t}.test(${j}))`;return(0,codegen_1$2._)`${$t} && ${$t} !== true && ${Et} === ${_} && !${Ct}`}}function wt(){const xt=mt.formats[et];if(!xt){At();return}if(xt===!0)return;const[bt,Et,$t]=Rt(xt);bt===_&&a.pass(Pt());function At(){if(it.strictSchema===!1){mt.logger.warn(Ct());return}throw new Error(Ct());function Ct(){return`unknown format "${et}" ignored in schema at path "${ct}"`}}function Rt(Ct){const Ot=Ct instanceof RegExp?(0,codegen_1$2.regexpCode)(Ct):it.code.formats?(0,codegen_1$2._)`${it.code.formats}${(0,codegen_1$2.getProperty)(et)}`:void 0,kt=$.scopeValue("formats",{key:et,ref:Ct,code:Ot});return typeof Ct=="object"&&!(Ct instanceof RegExp)?[Ct.type||"string",Ct.validate,(0,codegen_1$2._)`${kt}.validate`]:["string",Ct,kt]}function Pt(){if(typeof xt=="object"&&!(xt instanceof RegExp)&&xt.async){if(!dt.$async)throw new Error("async format in sync schema");return(0,codegen_1$2._)`await ${$t}(${j})`}return typeof Et=="function"?(0,codegen_1$2._)`${$t}(${j})`:(0,codegen_1$2._)`${$t}.test(${j})`}}}};format$2.default=def$1;Object.defineProperty(format$3,"__esModule",{value:!0});const format_1$1=format$2,format$1=[format_1$1.default];format$3.default=format$1;var metadata={};Object.defineProperty(metadata,"__esModule",{value:!0});metadata.contentVocabulary=metadata.metadataVocabulary=void 0;metadata.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];metadata.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(draft7,"__esModule",{value:!0});const core_1=core$1,validation_1=validation$2,applicator_1=applicator,format_1=format$3,metadata_1=metadata,draft7Vocabularies=[core_1.default,validation_1.default,(0,applicator_1.default)(),format_1.default,metadata_1.metadataVocabulary,metadata_1.contentVocabulary];draft7.default=draft7Vocabularies;var discriminator={},types$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.DiscrError=void 0,function(_){_.Tag="tag",_.Mapping="mapping"}(a.DiscrError||(a.DiscrError={}))})(types$2);Object.defineProperty(discriminator,"__esModule",{value:!0});const codegen_1$1=codegen,types_1=types$2,compile_1=compile,util_1=util$1,error$1={message:({params:{discrError:a,tagName:_}})=>a===types_1.DiscrError.Tag?`tag "${_}" must be string`:`value of tag "${_}" must be in oneOf`,params:({params:{discrError:a,tag:_,tagName:$}})=>(0,codegen_1$1._)`{error: ${a}, tag: ${$}, tagValue: ${_}}`},def={keyword:"discriminator",type:"object",schemaType:"object",error:error$1,code(a){const{gen:_,data:$,schema:j,parentSchema:_e,it:et}=a,{oneOf:tt}=_e;if(!et.opts.discriminator)throw new Error("discriminator: requires discriminator option");const rt=j.propertyName;if(typeof rt!="string")throw new Error("discriminator: requires propertyName");if(j.mapping)throw new Error("discriminator: mapping is not supported");if(!tt)throw new Error("discriminator: requires oneOf keyword");const it=_.let("valid",!1),ct=_.const("tag",(0,codegen_1$1._)`${$}${(0,codegen_1$1.getProperty)(rt)}`);_.if((0,codegen_1$1._)`typeof ${ct} == "string"`,()=>dt(),()=>a.error(!1,{discrError:types_1.DiscrError.Tag,tag:ct,tagName:rt})),a.ok(it);function dt(){const wt=vt();_.if(!1);for(const xt in wt)_.elseIf((0,codegen_1$1._)`${ct} === ${xt}`),_.assign(it,mt(wt[xt]));_.else(),a.error(!1,{discrError:types_1.DiscrError.Mapping,tag:ct,tagName:rt}),_.endIf()}function mt(wt){const xt=_.name("valid"),bt=a.subschema({keyword:"oneOf",schemaProp:wt},xt);return a.mergeEvaluated(bt,codegen_1$1.Name),xt}function vt(){var wt;const xt={},bt=$t(_e);let Et=!0;for(let Pt=0;Pt<tt.length;Pt++){let Ct=tt[Pt];Ct!=null&&Ct.$ref&&!(0,util_1.schemaHasRulesButRef)(Ct,et.self.RULES)&&(Ct=compile_1.resolveRef.call(et.self,et.schemaEnv.root,et.baseId,Ct==null?void 0:Ct.$ref),Ct instanceof compile_1.SchemaEnv&&(Ct=Ct.schema));const Ot=(wt=Ct==null?void 0:Ct.properties)===null||wt===void 0?void 0:wt[rt];if(typeof Ot!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${rt}"`);Et=Et&&(bt||$t(Ct)),At(Ot,Pt)}if(!Et)throw new Error(`discriminator: "${rt}" must be required`);return xt;function $t({required:Pt}){return Array.isArray(Pt)&&Pt.includes(rt)}function At(Pt,Ct){if(Pt.const)Rt(Pt.const,Ct);else if(Pt.enum)for(const Ot of Pt.enum)Rt(Ot,Ct);else throw new Error(`discriminator: "properties/${rt}" must have "const" or "enum"`)}function Rt(Pt,Ct){if(typeof Pt!="string"||Pt in xt)throw new Error(`discriminator: "${rt}" values must be unique strings`);xt[Pt]=Ct}}}};discriminator.default=def;const $schema="http://json-schema.org/draft-07/schema#",$id="http://json-schema.org/draft-07/schema#",title$5="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:!0,default:[]}},type$2=["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:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},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:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},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:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},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:"#"}},require$$3$1={$schema,$id,title:title$5,definitions,type:type$2,properties,default:!0};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0}),_.MissingRefError=_.ValidationError=_.CodeGen=_.Name=_.nil=_.stringify=_.str=_._=_.KeywordCxt=void 0;const $=core$2,j=draft7,_e=discriminator,et=require$$3$1,tt=["/properties"],rt="http://json-schema.org/draft-07/schema";class it extends $.default{_addVocabularies(){super._addVocabularies(),j.default.forEach(xt=>this.addVocabulary(xt)),this.opts.discriminator&&this.addKeyword(_e.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const xt=this.opts.$data?this.$dataMetaSchema(et,tt):et;this.addMetaSchema(xt,rt,!1),this.refs["http://json-schema.org/schema"]=rt}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(rt)?rt:void 0)}}a.exports=_=it,Object.defineProperty(_,"__esModule",{value:!0}),_.default=it;var ct=validate;Object.defineProperty(_,"KeywordCxt",{enumerable:!0,get:function(){return ct.KeywordCxt}});var dt=codegen;Object.defineProperty(_,"_",{enumerable:!0,get:function(){return dt._}}),Object.defineProperty(_,"str",{enumerable:!0,get:function(){return dt.str}}),Object.defineProperty(_,"stringify",{enumerable:!0,get:function(){return dt.stringify}}),Object.defineProperty(_,"nil",{enumerable:!0,get:function(){return dt.nil}}),Object.defineProperty(_,"Name",{enumerable:!0,get:function(){return dt.Name}}),Object.defineProperty(_,"CodeGen",{enumerable:!0,get:function(){return dt.CodeGen}});var mt=validation_error;Object.defineProperty(_,"ValidationError",{enumerable:!0,get:function(){return mt.default}});var vt=ref_error;Object.defineProperty(_,"MissingRefError",{enumerable:!0,get:function(){return vt.default}})})(ajv,ajv.exports);var ajvExports=ajv.exports,dist$9={exports:{}},keywords$2={exports:{}},_typeof$A={exports:{}},_typeof$z={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen,j=["undefined","string","number","object","function","boolean","symbol"];function _e(){return{keyword:"typeof",schemaType:["string","array"],code(et){const{data:tt,schema:rt,schemaValue:it}=et;et.fail(typeof rt=="string"?(0,$._)`typeof ${tt} != ${rt}`:(0,$._)`${it}.indexOf(typeof ${tt}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:j},{type:"array",items:{type:"string",enum:j}}]}}}_.default=_e,a.exports=_e})(_typeof$z,_typeof$z.exports);var _typeofExports$1=_typeof$z.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(_typeofExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(_typeof$A,_typeof$A.exports);var _typeofExports=_typeof$A.exports,_instanceof$1={exports:{}},_instanceof={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $={Object,Array,Function,Number,String,Date,RegExp};typeof Buffer$G<"u"&&($.Buffer=Buffer$G),typeof Promise<"u"&&($.Promise=Promise);const j=Object.assign(_e,{CONSTRUCTORS:$});function _e(){return{keyword:"instanceof",schemaType:["string","array"],compile(tt){if(typeof tt=="string"){const rt=et(tt);return it=>it instanceof rt}if(Array.isArray(tt)){const rt=tt.map(et);return it=>{for(const ct of rt)if(it instanceof ct)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function et(tt){const rt=$[tt];if(rt)return rt;throw new Error(`invalid "instanceof" keyword value ${tt}`)}_.default=j,a.exports=j})(_instanceof,_instanceof.exports);var _instanceofExports$1=_instanceof.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(_instanceofExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(_instanceof$1,_instanceof$1.exports);var _instanceofExports=_instanceof$1.exports,range$1={exports:{}},range={exports:{}},_range={};Object.defineProperty(_range,"__esModule",{value:!0});function getRangeDef(a){return()=>({keyword:a,type:"number",schemaType:"array",macro:function([$,j]){return _($,j),a==="range"?{minimum:$,maximum:j}:{exclusiveMinimum:$,exclusiveMaximum:j}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function _($,j){if($>j||a==="exclusiveRange"&&$===j)throw new Error("There are no numbers in range")}}_range.default=getRangeDef;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const _e=(0,$(_range).default)("range");_.default=_e,a.exports=_e})(range,range.exports);var rangeExports$1=range.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(rangeExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(range$1,range$1.exports);var rangeExports=range$1.exports,exclusiveRange$1={exports:{}},exclusiveRange={exports:{}};(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const _e=(0,$(_range).default)("exclusiveRange");_.default=_e,a.exports=_e})(exclusiveRange,exclusiveRange.exports);var exclusiveRangeExports$1=exclusiveRange.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(exclusiveRangeExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(exclusiveRange$1,exclusiveRange$1.exports);var exclusiveRangeExports=exclusiveRange$1.exports,regexp$1={exports:{}},regexp={exports:{}},_util={};Object.defineProperty(_util,"__esModule",{value:!0});_util.usePattern=_util.metaSchemaRef=void 0;const codegen_1=codegen,META_SCHEMA_ID="http://json-schema.org/schema";function metaSchemaRef({defaultMeta:a}={}){return a===!1?{}:{$ref:a||META_SCHEMA_ID}}_util.metaSchemaRef=metaSchemaRef;function usePattern({gen:a,it:{opts:_}},$,j=_.unicodeRegExp?"u":""){const _e=new RegExp($,j);return a.scopeValue("pattern",{key:_e.toString(),ref:_e,code:(0,codegen_1._)`new RegExp(${$}, ${j})`})}_util.usePattern=usePattern;(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen,j=_util,_e={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},et=/^\/(.*)\/([gimuy]*)$/;function tt(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(rt){const{data:it,schema:ct}=rt,dt=mt(ct);rt.pass((0,$._)`${dt}.test(${it})`);function mt(vt){if(typeof vt=="object")return(0,j.usePattern)(rt,vt.pattern,vt.flags);const wt=et.exec(vt);if(wt)return(0,j.usePattern)(rt,wt[1],wt[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},_e]}}}_.default=tt,a.exports=tt})(regexp,regexp.exports);var regexpExports$1=regexp.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(regexpExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(regexp$1,regexp$1.exports);var regexpExports=regexp$1.exports,transform$1={exports:{}},transform={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen,j={trimStart:it=>it.trimStart(),trimEnd:it=>it.trimEnd(),trimLeft:it=>it.trimStart(),trimRight:it=>it.trimEnd(),trim:it=>it.trim(),toLowerCase:it=>it.toLowerCase(),toUpperCase:it=>it.toUpperCase(),toEnumCase:(it,ct)=>(ct==null?void 0:ct.hash[rt(it)])||it},_e=Object.assign(et,{transform:j});function et(){return{keyword:"transform",schemaType:"array",before:"enum",code(it){const{gen:ct,data:dt,schema:mt,parentSchema:vt,it:wt}=it,{parentData:xt,parentDataProperty:bt}=wt,Et=mt;if(!Et.length)return;let $t;if(Et.includes("toEnumCase")){const Rt=tt(vt);$t=ct.scopeValue("obj",{ref:Rt,code:(0,$.stringify)(Rt)})}ct.if((0,$._)`typeof ${dt} == "string" && ${xt} !== undefined`,()=>{ct.assign(dt,At(Et.slice())),ct.assign((0,$._)`${xt}[${bt}]`,dt)});function At(Rt){if(!Rt.length)return dt;const Pt=Rt.pop();if(!(Pt in j))throw new Error(`transform: unknown transformation ${Pt}`);const Ct=ct.scopeValue("func",{ref:j[Pt],code:(0,$._)`require("ajv-keywords/dist/definitions/transform").transform${(0,$.getProperty)(Pt)}`}),Ot=At(Rt);return $t&&Pt==="toEnumCase"?(0,$._)`${Ct}(${Ot}, ${$t})`:(0,$._)`${Ct}(${Ot})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(j)}}}}function tt(it){const ct={hash:{}};if(!it.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const dt of it.enum){if(typeof dt!="string")continue;const mt=rt(dt);if(ct.hash[mt])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');ct.hash[mt]=dt}return ct}function rt(it){return it.toLowerCase()}_.default=_e,a.exports=_e})(transform,transform.exports);var transformExports$1=transform.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(transformExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(transform$1,transform$1.exports);var transformExports=transform$1.exports,uniqueItemProperties$1={exports:{}},uniqueItemProperties={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=fastDeepEqual,j=["number","integer","string","boolean","null"];function _e(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(tt,rt){const it=et(tt,rt);return ct=>{if(ct.length<=1)return!0;for(let dt=0;dt<tt.length;dt++){const mt=tt[dt];if(it[dt]){const vt={};for(const wt of ct){if(!wt||typeof wt!="object")continue;let xt=wt[mt];if(!(xt&&typeof xt=="object")){if(typeof xt=="string"&&(xt='"'+xt),vt[xt])return!1;vt[xt]=!0}}}else for(let vt=ct.length;vt--;){const wt=ct[vt];if(!(!wt||typeof wt!="object"))for(let xt=vt;xt--;){const bt=ct[xt];if(bt&&typeof bt=="object"&&$(wt[mt],bt[mt]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}_.default=_e;function et(tt,rt){return tt.map(it=>{var ct,dt,mt;const vt=(mt=(dt=(ct=rt.items)===null||ct===void 0?void 0:ct.properties)===null||dt===void 0?void 0:dt[it])===null||mt===void 0?void 0:mt.type;return Array.isArray(vt)?!vt.includes("object")&&!vt.includes("array"):j.includes(vt)})}a.exports=_e})(uniqueItemProperties,uniqueItemProperties.exports);var uniqueItemPropertiesExports$1=uniqueItemProperties.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(uniqueItemPropertiesExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(uniqueItemProperties$1,uniqueItemProperties$1.exports);var uniqueItemPropertiesExports=uniqueItemProperties$1.exports,allRequired$1={exports:{}},allRequired={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});function $(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(j,_e){if(!j)return!0;const et=Object.keys(_e.properties);return et.length===0?!0:{required:et}},dependencies:["properties"]}}_.default=$,a.exports=$})(allRequired,allRequired.exports);var allRequiredExports$1=allRequired.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(allRequiredExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(allRequired$1,allRequired$1.exports);var allRequiredExports=allRequired$1.exports,anyRequired$1={exports:{}},anyRequired={exports:{}},_required={};Object.defineProperty(_required,"__esModule",{value:!0});function getRequiredDef(a){return()=>({keyword:a,type:"object",schemaType:"array",macro(_){return _.length===0?!0:_.length===1?{required:_}:{[a==="anyRequired"?"anyOf":"oneOf"]:_.map(j=>({required:[j]}))}},metaSchema:{type:"array",items:{type:"string"}}})}_required.default=getRequiredDef;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const _e=(0,$(_required).default)("anyRequired");_.default=_e,a.exports=_e})(anyRequired,anyRequired.exports);var anyRequiredExports$1=anyRequired.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(anyRequiredExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(anyRequired$1,anyRequired$1.exports);var anyRequiredExports=anyRequired$1.exports,oneRequired$1={exports:{}},oneRequired={exports:{}};(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const _e=(0,$(_required).default)("oneRequired");_.default=_e,a.exports=_e})(oneRequired,oneRequired.exports);var oneRequiredExports$1=oneRequired.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(oneRequiredExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(oneRequired$1,oneRequired$1.exports);var oneRequiredExports=oneRequired$1.exports,patternRequired$1={exports:{}},patternRequired={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen,j=_util,_e={message:({params:{missingPattern:tt}})=>(0,$.str)`should have property matching pattern '${tt}'`,params:({params:{missingPattern:tt}})=>(0,$._)`{missingPattern: ${tt}}`};function et(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:_e,code(tt){const{gen:rt,schema:it,data:ct}=tt;if(it.length===0)return;const dt=rt.let("valid",!0);for(const vt of it)mt(vt);function mt(vt){const wt=rt.let("matched",!1);rt.forIn("key",ct,xt=>{rt.assign(wt,(0,$._)`${(0,j.usePattern)(tt,vt)}.test(${xt})`),rt.if(wt,()=>rt.break())}),tt.setParams({missingPattern:vt}),rt.assign(dt,(0,$.and)(dt,wt)),tt.pass(dt)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}_.default=et,a.exports=et})(patternRequired,patternRequired.exports);var patternRequiredExports$1=patternRequired.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(patternRequiredExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(patternRequired$1,patternRequired$1.exports);var patternRequiredExports=patternRequired$1.exports,prohibited$1={exports:{}},prohibited={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});function $(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(j){return j.length===0?!0:j.length===1?{not:{required:j}}:{not:{anyOf:j.map(_e=>({required:[_e]}))}}},metaSchema:{type:"array",items:{type:"string"}}}}_.default=$,a.exports=$})(prohibited,prohibited.exports);var prohibitedExports$1=prohibited.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(prohibitedExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(prohibited$1,prohibited$1.exports);var prohibitedExports=prohibited$1.exports,deepProperties$1={exports:{}},deepProperties={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=_util;function j(tt){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(rt){const it=[];for(const ct in rt)it.push(_e(ct,rt[ct]));return{allOf:it}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,$.metaSchemaRef)(tt)}}}_.default=j;function _e(tt,rt){const it=tt.split("/"),ct={};let dt=ct;for(let mt=1;mt<it.length;mt++){let vt=it[mt];const wt=mt===it.length-1;vt=et(vt);const xt=dt.properties={};let bt;if(/[0-9]+/.test(vt)){let Et=+vt;for(bt=dt.items=[],dt.type=["object","array"];Et--;)bt.push({})}else dt.type="object";dt=wt?rt:{},xt[vt]=dt,bt&&bt.push(dt)}return ct}function et(tt){return tt.replace(/~1/g,"/").replace(/~0/g,"~")}a.exports=j})(deepProperties,deepProperties.exports);var deepPropertiesExports$1=deepProperties.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(deepPropertiesExports$1),_e=(et,tt)=>et.addKeyword((0,j.default)(tt));_.default=_e,a.exports=_e})(deepProperties$1,deepProperties$1.exports);var deepPropertiesExports=deepProperties$1.exports,deepRequired$1={exports:{}},deepRequired={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen;function j(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(et){const{schema:tt,data:rt}=et,it=tt.map(dt=>(0,$._)`(${ct(dt)}) === undefined`);et.fail((0,$.or)(...it));function ct(dt){if(dt==="")throw new Error("empty JSON pointer not allowed");const mt=dt.split("/");let vt=rt;const wt=mt.map((xt,bt)=>bt?vt=(0,$._)`${vt}${(0,$.getProperty)(_e(xt))}`:vt);return(0,$.and)(...wt)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}_.default=j;function _e(et){return et.replace(/~1/g,"/").replace(/~0/g,"~")}a.exports=j})(deepRequired,deepRequired.exports);var deepRequiredExports$1=deepRequired.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(deepRequiredExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(deepRequired$1,deepRequired$1.exports);var deepRequiredExports=deepRequired$1.exports,dynamicDefaults$1={exports:{}},dynamicDefaults={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $={},j={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:dt=>{var mt;const vt=(mt=dt==null?void 0:dt.max)!==null&&mt!==void 0?mt:2;return()=>Math.floor(Math.random()*vt)},seq:dt=>{var mt;const vt=(mt=dt==null?void 0:dt.name)!==null&&mt!==void 0?mt:"";return $[vt]||($[vt]=0),()=>$[vt]++}},_e=Object.assign(et,{DEFAULTS:j});function et(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(dt,mt,vt){if(!vt.opts.useDefaults||vt.compositeRule)return()=>!0;const wt={};for(const bt in dt)wt[bt]=tt(dt[bt]);const xt=vt.opts.useDefaults==="empty";return bt=>{for(const Et in dt)(bt[Et]===void 0||xt&&(bt[Et]===null||bt[Et]===""))&&(bt[Et]=wt[Et]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function tt(dt){return typeof dt=="object"?rt(dt):it(dt)}function rt({func:dt,args:mt}){const vt=j[dt];return ct(dt,vt),vt(mt)}function it(dt=""){const mt=j[dt];return ct(dt,mt),mt()}function ct(dt,mt){if(!mt)throw new Error(`invalid "dynamicDefaults" keyword property value: ${dt}`)}_.default=_e,a.exports=_e})(dynamicDefaults,dynamicDefaults.exports);var dynamicDefaultsExports$1=dynamicDefaults.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(dynamicDefaultsExports$1),_e=et=>et.addKeyword((0,j.default)());_.default=_e,a.exports=_e})(dynamicDefaults$1,dynamicDefaults$1.exports);var dynamicDefaultsExports=dynamicDefaults$1.exports,select$1={exports:{}},select={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=codegen,j=_util,_e={message:({params:{schemaProp:tt}})=>tt?(0,$.str)`should match case "${tt}" schema`:(0,$.str)`should match default case schema`,params:({params:{schemaProp:tt}})=>tt?(0,$._)`{failingCase: ${tt}}`:(0,$._)`{failingDefault: true}`};function et(tt){const rt=(0,j.metaSchemaRef)(tt);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:_e,dependencies:["selectCases"],code(it){const{gen:ct,schemaCode:dt,parentSchema:mt}=it;it.block$data($.nil,()=>{const vt=ct.let("valid",!0),wt=ct.name("_valid"),xt=ct.const("value",(0,$._)`${dt} === null ? "null" : ${dt}`);ct.if(!1);for(const bt in mt.selectCases){it.setParams({schemaProp:bt}),ct.elseIf((0,$._)`"" + ${xt} == ${bt}`);const Et=it.subschema({keyword:"selectCases",schemaProp:bt},wt);it.mergeEvaluated(Et,$.Name),ct.assign(vt,wt)}if(ct.else(),mt.selectDefault!==void 0){it.setParams({schemaProp:void 0});const bt=it.subschema({keyword:"selectDefault"},wt);it.mergeEvaluated(bt,$.Name),ct.assign(vt,wt)}ct.endIf(),it.pass(vt)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:rt}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:rt}]}_.default=et,a.exports=et})(select,select.exports);var selectExports$1=select.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(selectExports$1),_e=(et,tt)=>((0,j.default)(tt).forEach(rt=>et.addKeyword(rt)),et);_.default=_e,a.exports=_e})(select$1,select$1.exports);var selectExports=select$1.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(_typeofExports),_e=$(_instanceofExports),et=$(rangeExports),tt=$(exclusiveRangeExports),rt=$(regexpExports),it=$(transformExports),ct=$(uniqueItemPropertiesExports),dt=$(allRequiredExports),mt=$(anyRequiredExports),vt=$(oneRequiredExports),wt=$(patternRequiredExports),xt=$(prohibitedExports),bt=$(deepPropertiesExports),Et=$(deepRequiredExports),$t=$(dynamicDefaultsExports),At=$(selectExports),Rt={typeof:j.default,instanceof:_e.default,range:et.default,exclusiveRange:tt.default,regexp:rt.default,transform:it.default,uniqueItemProperties:ct.default,allRequired:dt.default,anyRequired:mt.default,oneRequired:vt.default,patternRequired:wt.default,prohibited:xt.default,deepProperties:bt.default,deepRequired:Et.default,dynamicDefaults:$t.default,select:At.default};_.default=Rt,a.exports=Rt})(keywords$2,keywords$2.exports);var keywordsExports=keywords$2.exports;(function(a,_){var $=commonjsGlobal&&commonjsGlobal.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(_,"__esModule",{value:!0});const j=$(keywordsExports),_e=(tt,rt)=>{if(Array.isArray(rt)){for(const it of rt)et(it)(tt);return tt}if(rt)return et(rt)(tt),tt;for(rt in j.default)et(rt)(tt);return tt};_e.get=et;function et(tt){const rt=j.default[tt];if(!rt)throw new Error("Unknown keyword "+tt);return rt}_.default=_e,a.exports=_e,a.exports.default=_e})(dist$9,dist$9.exports);var distExports$2=dist$9.exports,dist$8={exports:{}};(function(a,_){Object.defineProperty(_,"__esModule",{value:!0});const $=ajvExports,j=codegen,_e=code$2,et=validate,tt=errors,rt=names$1,it="errorMessage",ct=new $.Name("emUsed"),dt={required:"missingProperty",dependencies:"property",dependentRequired:"property"},mt=/\$\{[^}]+\}/,vt=/\$\{([^}]+)\}/g,wt=/^""\s*\+\s*|\s*\+\s*""$/g;function xt(Et){return{keyword:it,schemaType:["string","object"],post:!0,code($t){const{gen:At,data:Rt,schema:Pt,schemaValue:Ct,it:Ot}=$t;if(Ot.createErrors===!1)return;const kt=Pt,Dt=j.strConcat(rt.default.instancePath,Ot.errorPath);At.if($._`${rt.default.errors} > 0`,()=>{if(typeof kt=="object"){const[Tt,It]=zt(kt);It&>(It),Tt&&nt(Tt),ot(Nt(kt))}const Mt=typeof kt=="string"?kt:kt._;Mt&&st(Mt),Et.keepErrors||lt()});function Nt({properties:Mt,items:Tt}){const It={};if(Mt){It.props={};for(const Lt in Mt)It.props[Lt]=[]}if(Tt){It.items={};for(let Lt=0;Lt<Tt.length;Lt++)It.items[Lt]=[]}return It}function zt(Mt){let Tt,It;for(const Lt in Mt){if(Lt==="properties"||Lt==="items")continue;const jt=Mt[Lt];if(typeof jt=="object"){Tt||(Tt={});const Gt=Tt[Lt]={};for(const tr in jt)Gt[tr]=[]}else It||(It={}),It[Lt]=[]}return[Tt,It]}function gt(Mt){const Tt=At.const("emErrors",$.stringify(Mt)),It=At.const("templates",yt(Mt,Pt));At.forOf("err",rt.default.vErrors,tr=>At.if(pt(tr,Tt),()=>At.code($._`${Tt}[${tr}.keyword].push(${tr})`).assign($._`${tr}.${ct}`,!0)));const{singleError:Lt}=Et;if(Lt){const tr=At.let("message",$._`""`),er=At.let("paramsErrors",$._`[]`);jt(Jt=>{At.if(tr,()=>At.code($._`${tr} += ${typeof Lt=="string"?Lt:";"}`)),At.code($._`${tr} += ${Gt(Jt)}`),At.assign(er,$._`${er}.concat(${Tt}[${Jt}])`)}),tt.reportError($t,{message:tr,params:$._`{errors: ${er}}`})}else jt(tr=>tt.reportError($t,{message:Gt(tr),params:$._`{errors: ${Tt}[${tr}]}`}));function jt(tr){At.forIn("key",Tt,er=>At.if($._`${Tt}[${er}].length`,()=>tr(er)))}function Gt(tr){return $._`${tr} in ${It} ? ${It}[${tr}]() : ${Ct}[${tr}]`}}function nt(Mt){const Tt=At.const("emErrors",$.stringify(Mt)),It=[];for(const er in Mt)It.push([er,yt(Mt[er],Pt[er])]);const Lt=At.const("templates",At.object(...It)),jt=At.scopeValue("obj",{ref:dt,code:$.stringify(dt)}),Gt=At.let("emPropParams"),tr=At.let("emParamsErrors");At.forOf("err",rt.default.vErrors,er=>At.if(pt(er,Tt),()=>{At.assign(Gt,$._`${jt}[${er}.keyword]`),At.assign(tr,$._`${Tt}[${er}.keyword][${er}.params[${Gt}]]`),At.if(tr,()=>At.code($._`${tr}.push(${er})`).assign($._`${er}.${ct}`,!0))})),At.forIn("key",Tt,er=>At.forIn("keyProp",$._`${Tt}[${er}]`,Jt=>{At.assign(tr,$._`${Tt}[${er}][${Jt}]`),At.if($._`${tr}.length`,()=>{const Wt=At.const("tmpl",$._`${Lt}[${er}] && ${Lt}[${er}][${Jt}]`);tt.reportError($t,{message:$._`${Wt} ? ${Wt}() : ${Ct}[${er}][${Jt}]`,params:$._`{errors: ${tr}}`})})}))}function ot(Mt){const{props:Tt,items:It}=Mt;if(!Tt&&!It)return;const Lt=$._`typeof ${Rt} == "object"`,jt=$._`Array.isArray(${Rt})`,Gt=At.let("emErrors");let tr,er;const Jt=At.let("templates");Tt&&It?(tr=At.let("emChildKwd"),At.if(Lt),At.if(jt,()=>{Wt(It,Pt.items),At.assign(tr,$.str`items`)},()=>{Wt(Tt,Pt.properties),At.assign(tr,$.str`properties`)}),er=$._`[${tr}]`):It?(At.if(jt),Wt(It,Pt.items),er=$._`.items`):Tt&&(At.if(j.and(Lt,j.not(jt))),Wt(Tt,Pt.properties),er=$._`.properties`),At.forOf("err",rt.default.vErrors,Kt=>_t(Kt,Gt,lr=>At.code($._`${Gt}[${lr}].push(${Kt})`).assign($._`${Kt}.${ct}`,!0))),At.forIn("key",Gt,Kt=>At.if($._`${Gt}[${Kt}].length`,()=>{tt.reportError($t,{message:$._`${Kt} in ${Jt} ? ${Jt}[${Kt}]() : ${Ct}${er}[${Kt}]`,params:$._`{errors: ${Gt}[${Kt}]}`}),At.assign($._`${rt.default.vErrors}[${rt.default.errors}-1].instancePath`,$._`${Dt} + "/" + ${Kt}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),At.endIf();function Wt(Kt,lr){At.assign(Gt,$.stringify(Kt)),At.assign(Jt,yt(Kt,lr))}}function st(Mt){const Tt=At.const("emErrs",$._`[]`);At.forOf("err",rt.default.vErrors,It=>At.if(St(It),()=>At.code($._`${Tt}.push(${It})`).assign($._`${It}.${ct}`,!0))),At.if($._`${Tt}.length`,()=>tt.reportError($t,{message:at(Mt),params:$._`{errors: ${Tt}}`}))}function lt(){const Mt=At.const("emErrs",$._`[]`);At.forOf("err",rt.default.vErrors,Tt=>At.if($._`!${Tt}.${ct}`,()=>At.code($._`${Mt}.push(${Tt})`))),At.assign(rt.default.vErrors,Mt).assign(rt.default.errors,$._`${Mt}.length`)}function pt(Mt,Tt){return j.and($._`${Mt}.keyword !== ${it}`,$._`!${Mt}.${ct}`,$._`${Mt}.instancePath === ${Dt}`,$._`${Mt}.keyword in ${Tt}`,$._`${Mt}.schemaPath.indexOf(${Ot.errSchemaPath}) === 0`,$._`/^\\/[^\\/]*$/.test(${Mt}.schemaPath.slice(${Ot.errSchemaPath.length}))`)}function _t(Mt,Tt,It){At.if(j.and($._`${Mt}.keyword !== ${it}`,$._`!${Mt}.${ct}`,$._`${Mt}.instancePath.indexOf(${Dt}) === 0`),()=>{const Lt=At.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:$._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),jt=At.const("emMatches",$._`${Lt}.exec(${Mt}.instancePath.slice(${Dt}.length))`),Gt=At.const("emChild",$._`${jt} && ${jt}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);At.if($._`${Gt} !== undefined && ${Gt} in ${Tt}`,()=>It(Gt))})}function St(Mt){return j.and($._`${Mt}.keyword !== ${it}`,$._`!${Mt}.${ct}`,j.or($._`${Mt}.instancePath === ${Dt}`,j.and($._`${Mt}.instancePath.indexOf(${Dt}) === 0`,$._`${Mt}.instancePath[${Dt}.length] === "/"`)),$._`${Mt}.schemaPath.indexOf(${Ot.errSchemaPath}) === 0`,$._`${Mt}.schemaPath[${Ot.errSchemaPath}.length] === "/"`)}function yt(Mt,Tt){const It=[];for(const Lt in Mt){const jt=Tt[Lt];mt.test(jt)&&It.push([Lt,ht(jt)])}return At.object(...It)}function at(Mt){return mt.test(Mt)?new _e._Code(_e.safeStringify(Mt).replace(vt,(Tt,It)=>`" + JSON.stringify(${et.getData(It,Ot)}) + "`).replace(wt,"")):$.stringify(Mt)}function ht(Mt){return $._`function(){return ${at(Mt)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const bt=(Et,$t={})=>{if(!Et.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(Et.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return Et.addKeyword(xt($t))};_.default=bt,a.exports=bt,a.exports.default=bt})(dist$8,dist$8.exports);var distExports$1=dist$8.exports,__importDefault$6=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(validation$3,"__esModule",{value:!0});validation$3.validateType=validation$3.generateLazyValidator=validation$3.Ajv=void 0;const ajv_1$1=__importDefault$6(ajvExports);validation$3.Ajv=ajv_1$1.default;const ajv_keywords_1$1=__importDefault$6(distExports$2),ajv_errors_1$1=__importDefault$6(distExports$1);function generateLazyValidator$1(a,_){let $=null;const j=(_e,et)=>{if(!$){const tt=new ajv_1$1.default({$data:!0,allErrors:!0});(0,ajv_keywords_1$1.default)(tt),(0,ajv_errors_1$1.default)(tt,{singleError:!0}),_==null||_.forEach(rt=>tt.addKeyword(rt)),$=tt.compile(a),Object.defineProperty(j,"errors",{get(){return $==null?void 0:$.errors}})}return $(_e,et)};return j}validation$3.generateLazyValidator=generateLazyValidator$1;function validateType$1(a,_){return a.validate(_)}validation$3.validateType=validateType$1;var chainName$1={},hasRequiredChainName$1;function requireChainName$1(){return hasRequiredChainName$1||(hasRequiredChainName$1=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.getChainId=a.ChainName=void 0;const _=validation$3,$=requireChainId$1();var j;(function(et){et.ETHEREUM_MAINNET="Ethereum Mainnet",et.ETHEREUM_ROPSTEN="Ropsten",et.ETHEREUM_RINKEBY="Rinkeby",et.ETHEREUM_GOERLI="Goerli",et.ETHEREUM_KOVAN="Kovan",et.ETHEREUM_SEPOLIA="Sepolia",et.MATIC_MAINNET="Polygon",et.MATIC_MUMBAI="Mumbai",et.MATIC_AMOY="Amoy",et.AVALANCHE_MAINNET="Avalanche",et.BINANCE_MAINNET="Binance Smart Chain",et.ARBITRUM_MAINNET="Arbitrum",et.OPTIMISM_MAINNET="Optimism",et.FANTOM_MAINNET="Fantom"})(j=a.ChainName||(a.ChainName={}));function _e(et){switch(et){case j.ETHEREUM_MAINNET:return $.ChainId.ETHEREUM_MAINNET;case j.ETHEREUM_ROPSTEN:return $.ChainId.ETHEREUM_ROPSTEN;case j.ETHEREUM_RINKEBY:return $.ChainId.ETHEREUM_RINKEBY;case j.ETHEREUM_GOERLI:return $.ChainId.ETHEREUM_GOERLI;case j.ETHEREUM_KOVAN:return $.ChainId.ETHEREUM_KOVAN;case j.ETHEREUM_SEPOLIA:return $.ChainId.ETHEREUM_SEPOLIA;case j.MATIC_MAINNET:return $.ChainId.MATIC_MAINNET;case j.MATIC_MUMBAI:return $.ChainId.MATIC_MUMBAI;case j.MATIC_AMOY:return $.ChainId.MATIC_AMOY;case j.AVALANCHE_MAINNET:return $.ChainId.AVALANCHE_MAINNET;case j.BINANCE_MAINNET:return $.ChainId.BSC_MAINNET;case j.ARBITRUM_MAINNET:return $.ChainId.ARBITRUM_MAINNET;case j.OPTIMISM_MAINNET:return $.ChainId.OPTIMISM_MAINNET;case j.FANTOM_MAINNET:return $.ChainId.FANTOM_MAINNET;default:return null}}a.getChainId=_e,function(et){et.schema={type:"string",enum:Object.values(et)},et.validate=(0,_.generateLazyValidator)(et.schema)}(j=a.ChainName||(a.ChainName={}))}(chainName$1)),chainName$1}var network$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Network=void 0;const _=validation$3;(function($){$.ETHEREUM="ETHEREUM",$.MATIC="MATIC",$.AVALANCHE="AVALANCHE",$.BSC="BINANCE SMART CHAIN",$.OPTIMISM="OPTIMISM",$.ARBITRUM="ARBITRUM",$.FANTOM="FANTOM"})(a.Network||(a.Network={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.Network||(a.Network={}))})(network$1);var hasRequiredChainId$1;function requireChainId$1(){return hasRequiredChainId$1||(hasRequiredChainId$1=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.getNetwork=a.getNetworkMapping=a.getURNProtocol=a.getChainName=a.ChainId=void 0;const _=validation$3,$=requireChainName$1(),j=network$1;var _e;(function(ct){ct[ct.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",ct[ct.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",ct[ct.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",ct[ct.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",ct[ct.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",ct[ct.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",ct[ct.MATIC_MAINNET=137]="MATIC_MAINNET",ct[ct.MATIC_MUMBAI=80001]="MATIC_MUMBAI",ct[ct.MATIC_AMOY=80002]="MATIC_AMOY",ct[ct.BSC_MAINNET=56]="BSC_MAINNET",ct[ct.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",ct[ct.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",ct[ct.FANTOM_MAINNET=250]="FANTOM_MAINNET",ct[ct.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(_e=a.ChainId||(a.ChainId={}));function et(ct){switch(ct){case _e.ETHEREUM_MAINNET:return $.ChainName.ETHEREUM_MAINNET;case _e.ETHEREUM_ROPSTEN:return $.ChainName.ETHEREUM_ROPSTEN;case _e.ETHEREUM_RINKEBY:return $.ChainName.ETHEREUM_RINKEBY;case _e.ETHEREUM_GOERLI:return $.ChainName.ETHEREUM_GOERLI;case _e.ETHEREUM_KOVAN:return $.ChainName.ETHEREUM_KOVAN;case _e.ETHEREUM_SEPOLIA:return $.ChainName.ETHEREUM_SEPOLIA;case _e.MATIC_MAINNET:return $.ChainName.MATIC_MAINNET;case _e.MATIC_MUMBAI:return $.ChainName.MATIC_MUMBAI;case _e.MATIC_AMOY:return $.ChainName.MATIC_AMOY;case _e.BSC_MAINNET:return $.ChainName.BINANCE_MAINNET;case _e.ARBITRUM_MAINNET:return $.ChainName.ARBITRUM_MAINNET;case _e.OPTIMISM_MAINNET:return $.ChainName.OPTIMISM_MAINNET;case _e.FANTOM_MAINNET:return $.ChainName.FANTOM_MAINNET;case _e.AVALANCHE_MAINNET:return $.ChainName.AVALANCHE_MAINNET;default:return null}}a.getChainName=et;function tt(ct){switch(ct){case _e.ETHEREUM_MAINNET:return"ethereum";case _e.ETHEREUM_ROPSTEN:return"ropsten";case _e.ETHEREUM_RINKEBY:return"rinkeby";case _e.ETHEREUM_GOERLI:return"goerli";case _e.ETHEREUM_KOVAN:return"kovan";case _e.ETHEREUM_SEPOLIA:return"sepolia";case _e.MATIC_MAINNET:return"matic";case _e.MATIC_MUMBAI:return"mumbai";case _e.MATIC_AMOY:return"amoy";default:return""}}a.getURNProtocol=tt;function rt(ct){const dt={[j.Network.BSC]:_e.BSC_MAINNET,[j.Network.OPTIMISM]:_e.OPTIMISM_MAINNET,[j.Network.ARBITRUM]:_e.ARBITRUM_MAINNET,[j.Network.FANTOM]:_e.FANTOM_MAINNET,[j.Network.AVALANCHE]:_e.AVALANCHE_MAINNET};switch(ct){case _e.ETHEREUM_MAINNET:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_MAINNET,[j.Network.MATIC]:_e.MATIC_MAINNET},dt);case _e.ETHEREUM_ROPSTEN:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_ROPSTEN,[j.Network.MATIC]:_e.MATIC_MUMBAI},dt);case _e.ETHEREUM_RINKEBY:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_RINKEBY,[j.Network.MATIC]:_e.MATIC_MUMBAI},dt);case _e.ETHEREUM_GOERLI:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_GOERLI,[j.Network.MATIC]:_e.MATIC_MUMBAI},dt);case _e.ETHEREUM_KOVAN:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_KOVAN,[j.Network.MATIC]:_e.MATIC_MUMBAI},dt);case _e.ETHEREUM_SEPOLIA:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_SEPOLIA,[j.Network.MATIC]:_e.MATIC_AMOY},dt);case _e.MATIC_MAINNET:return Object.assign({[j.Network.ETHEREUM]:_e.MATIC_MAINNET,[j.Network.MATIC]:_e.MATIC_MAINNET},dt);case _e.MATIC_MUMBAI:return Object.assign({[j.Network.ETHEREUM]:_e.MATIC_MUMBAI,[j.Network.MATIC]:_e.MATIC_MUMBAI},dt);case _e.MATIC_AMOY:return Object.assign({[j.Network.ETHEREUM]:_e.MATIC_AMOY,[j.Network.MATIC]:_e.MATIC_AMOY},dt);default:return Object.assign({[j.Network.ETHEREUM]:_e.ETHEREUM_MAINNET,[j.Network.MATIC]:_e.MATIC_MAINNET},dt)}}a.getNetworkMapping=rt;function it(ct){switch(ct){case _e.ETHEREUM_MAINNET:case _e.ETHEREUM_ROPSTEN:case _e.ETHEREUM_GOERLI:case _e.ETHEREUM_KOVAN:case _e.ETHEREUM_RINKEBY:case _e.ETHEREUM_SEPOLIA:return j.Network.ETHEREUM;case _e.MATIC_MAINNET:case _e.MATIC_MUMBAI:case _e.MATIC_AMOY:return j.Network.MATIC;case _e.BSC_MAINNET:return j.Network.BSC;case _e.OPTIMISM_MAINNET:return j.Network.OPTIMISM;case _e.ARBITRUM_MAINNET:return j.Network.ARBITRUM;case _e.FANTOM_MAINNET:return j.Network.FANTOM;case _e.AVALANCHE_MAINNET:return j.Network.AVALANCHE}}a.getNetwork=it,function(ct){ct.schema={type:"number",enum:Object.values(ct)},ct.validate=(0,_.generateLazyValidator)(ct.schema)}(_e=a.ChainId||(a.ChainId={}))}(chainId$1)),chainId$1}var chainIdExports=requireChainId$1(),providerType$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.ProviderType=void 0;const _=validation$3;(function($){$.INJECTED="injected",$.MAGIC="magic",$.FORTMATIC="formatic",$.NETWORK="network",$.WALLET_CONNECT="wallet_connect",$.WALLET_CONNECT_V2="wallet_connect_v2",$.WALLET_LINK="wallet_link",$.METAMASK_MOBILE="metamask_mobile",$.AUTH_SERVER="auth_server"})(a.ProviderType||(a.ProviderType={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.ProviderType||(a.ProviderType={}))})(providerType$1);var ConnectorEvent;(function(a){a.Update="Web3ReactUpdate",a.Error="Web3ReactError",a.Deactivate="Web3ReactDeactivate"})(ConnectorEvent||(ConnectorEvent={}));var events={exports:{}},R=typeof Reflect=="object"?Reflect:null,ReflectApply=R&&typeof R.apply=="function"?R.apply:function(_,$,j){return Function.prototype.apply.call(_,$,j)},ReflectOwnKeys;R&&typeof R.ownKeys=="function"?ReflectOwnKeys=R.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:ReflectOwnKeys=function(_){return Object.getOwnPropertyNames(_)};function ProcessEmitWarning(a){console&&console.warn&&console.warn(a)}var NumberIsNaN=Number.isNaN||function(_){return _!==_};function EventEmitter(){EventEmitter.init.call(this)}events.exports=EventEmitter;events.exports.once=once$2;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=void 0;EventEmitter.prototype._eventsCount=0;EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(a){if(typeof a!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof a)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(a){if(typeof a!="number"||a<0||NumberIsNaN(a))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");defaultMaxListeners=a}});EventEmitter.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter.prototype.setMaxListeners=function(_){if(typeof _!="number"||_<0||NumberIsNaN(_))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+_+".");return this._maxListeners=_,this};function _getMaxListeners(a){return a._maxListeners===void 0?EventEmitter.defaultMaxListeners:a._maxListeners}EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter.prototype.emit=function(_){for(var $=[],j=1;j<arguments.length;j++)$.push(arguments[j]);var _e=_==="error",et=this._events;if(et!==void 0)_e=_e&&et.error===void 0;else if(!_e)return!1;if(_e){var tt;if($.length>0&&(tt=$[0]),tt instanceof Error)throw tt;var rt=new Error("Unhandled error."+(tt?" ("+tt.message+")":""));throw rt.context=tt,rt}var it=et[_];if(it===void 0)return!1;if(typeof it=="function")ReflectApply(it,this,$);else for(var ct=it.length,dt=arrayClone(it,ct),j=0;j<ct;++j)ReflectApply(dt[j],this,$);return!0};function _addListener(a,_,$,j){var _e,et,tt;if(checkListener($),et=a._events,et===void 0?(et=a._events=Object.create(null),a._eventsCount=0):(et.newListener!==void 0&&(a.emit("newListener",_,$.listener?$.listener:$),et=a._events),tt=et[_]),tt===void 0)tt=et[_]=$,++a._eventsCount;else if(typeof tt=="function"?tt=et[_]=j?[$,tt]:[tt,$]:j?tt.unshift($):tt.push($),_e=_getMaxListeners(a),_e>0&&tt.length>_e&&!tt.warned){tt.warned=!0;var rt=new Error("Possible EventEmitter memory leak detected. "+tt.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");rt.name="MaxListenersExceededWarning",rt.emitter=a,rt.type=_,rt.count=tt.length,ProcessEmitWarning(rt)}return a}EventEmitter.prototype.addListener=function(_,$){return _addListener(this,_,$,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(_,$){return _addListener(this,_,$,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(a,_,$){var j={fired:!1,wrapFn:void 0,target:a,type:_,listener:$},_e=onceWrapper.bind(j);return _e.listener=$,j.wrapFn=_e,_e}EventEmitter.prototype.once=function(_,$){return checkListener($),this.on(_,_onceWrap(this,_,$)),this};EventEmitter.prototype.prependOnceListener=function(_,$){return checkListener($),this.prependListener(_,_onceWrap(this,_,$)),this};EventEmitter.prototype.removeListener=function(_,$){var j,_e,et,tt,rt;if(checkListener($),_e=this._events,_e===void 0)return this;if(j=_e[_],j===void 0)return this;if(j===$||j.listener===$)--this._eventsCount===0?this._events=Object.create(null):(delete _e[_],_e.removeListener&&this.emit("removeListener",_,j.listener||$));else if(typeof j!="function"){for(et=-1,tt=j.length-1;tt>=0;tt--)if(j[tt]===$||j[tt].listener===$){rt=j[tt].listener,et=tt;break}if(et<0)return this;et===0?j.shift():spliceOne(j,et),j.length===1&&(_e[_]=j[0]),_e.removeListener!==void 0&&this.emit("removeListener",_,rt||$)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(_){var $,j,_e;if(j=this._events,j===void 0)return this;if(j.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):j[_]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete j[_]),this;if(arguments.length===0){var et=Object.keys(j),tt;for(_e=0;_e<et.length;++_e)tt=et[_e],tt!=="removeListener"&&this.removeAllListeners(tt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if($=j[_],typeof $=="function")this.removeListener(_,$);else if($!==void 0)for(_e=$.length-1;_e>=0;_e--)this.removeListener(_,$[_e]);return this};function _listeners(a,_,$){var j=a._events;if(j===void 0)return[];var _e=j[_];return _e===void 0?[]:typeof _e=="function"?$?[_e.listener||_e]:[_e]:$?unwrapListeners(_e):arrayClone(_e,_e.length)}EventEmitter.prototype.listeners=function(_){return _listeners(this,_,!0)};EventEmitter.prototype.rawListeners=function(_){return _listeners(this,_,!1)};EventEmitter.listenerCount=function(a,_){return typeof a.listenerCount=="function"?a.listenerCount(_):listenerCount.call(a,_)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(a){var _=this._events;if(_!==void 0){var $=_[a];if(typeof $=="function")return 1;if($!==void 0)return $.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(a,_){for(var $=new Array(_),j=0;j<_;++j)$[j]=a[j];return $}function spliceOne(a,_){for(;_+1<a.length;_++)a[_]=a[_+1];a.pop()}function unwrapListeners(a){for(var _=new Array(a.length),$=0;$<_.length;++$)_[$]=a[$].listener||a[$];return _}function once$2(a,_){return new Promise(function($,j){function _e(tt){a.removeListener(_,et),j(tt)}function et(){typeof a.removeListener=="function"&&a.removeListener("error",_e),$([].slice.call(arguments))}eventTargetAgnosticAddListener(a,_,et,{once:!0}),_!=="error"&&addErrorHandlerIfEventEmitter(a,_e,{once:!0})})}function addErrorHandlerIfEventEmitter(a,_,$){typeof a.on=="function"&&eventTargetAgnosticAddListener(a,"error",_,$)}function eventTargetAgnosticAddListener(a,_,$,j){if(typeof a.on=="function")j.once?a.once(_,$):a.on(_,$);else if(typeof a.addEventListener=="function")a.addEventListener(_,function _e(et){j.once&&a.removeEventListener(_,_e),$(et)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof a)}var eventsExports=events.exports;const Bg=getDefaultExportFromCjs$1(eventsExports);function _inheritsLoose$5(a,_){a.prototype=Object.create(_.prototype),a.prototype.constructor=a,a.__proto__=_}var AbstractConnector=function(a){_inheritsLoose$5(_,a);function _(j){var _e,et=j===void 0?{}:j,tt=et.supportedChainIds;return _e=a.call(this)||this,_e.supportedChainIds=tt,_e}var $=_.prototype;return $.emitUpdate=function(_e){this.emit(ConnectorEvent.Update,_e)},$.emitError=function(_e){this.emit(ConnectorEvent.Error,_e)},$.emitDeactivate=function(){this.emit(ConnectorEvent.Deactivate)},_}(eventsExports.EventEmitter);const scriptRel="modulepreload",assetsURL=function(a){return"https://cdn.decentraland.org/@dcl/auth-site/1.7.2/"+a},seen={},__vitePreload=function(_,$,j){if(!$||$.length===0)return _();const _e=document.getElementsByTagName("link");return Promise.all($.map(et=>{if(et=assetsURL(et),et in seen)return;seen[et]=!0;const tt=et.endsWith(".css"),rt=tt?'[rel="stylesheet"]':"";if(!!j)for(let dt=_e.length-1;dt>=0;dt--){const mt=_e[dt];if(mt.href===et&&(!tt||mt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${et}"]${rt}`))return;const ct=document.createElement("link");if(ct.rel=tt?"stylesheet":scriptRel,tt||(ct.as="script",ct.crossOrigin=""),ct.href=et,document.head.appendChild(ct),tt)return new Promise((dt,mt)=>{ct.addEventListener("load",dt),ct.addEventListener("error",()=>mt(new Error(`Unable to preload CSS for ${et}`)))})})).then(()=>_()).catch(et=>{const tt=new Event("vite:preloadError",{cancelable:!0});if(tt.payload=et,window.dispatchEvent(tt),!tt.defaultPrevented)throw et})};var dist$7={},sdk$1={},ws$1={},sceneUpdate$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SceneUpdate=a.SCENE_UPDATE=void 0;const _=validation$3;a.SCENE_UPDATE="SCENE_UPDATE",function($){$.schema={type:"object",properties:{type:{type:"string",enum:[a.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},$.validate=(0,_.generateLazyValidator)($.schema)}(a.SceneUpdate||(a.SceneUpdate={}))})(sceneUpdate$1);var update$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Update=a.UPDATE=void 0;const _=validation$3;a.UPDATE="update",function($){$.schema={type:"object",properties:{type:{type:"string",enum:[a.UPDATE]}},required:["type"]},$.validate=(0,_.generateLazyValidator)($.schema)}(a.Update||(a.Update={}))})(update$1);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(sceneUpdate$1,a),$(update$1,a)})(ws$1);var project$1={},type$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.ProjectType=void 0;const _=validation$3;(function($){$.SCENE="scene",$.SMART_ITEM="smart-item",$.PORTABLE_EXPERIENCE="portable-experience",$.LIBRARY="library"})(a.ProjectType||(a.ProjectType={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.ProjectType||(a.ProjectType={}))})(type$1);var wearableJson$1={},rarity$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Rarity=void 0;const _=validation$3;(function($){$.UNIQUE="unique",$.MYTHIC="mythic",$.EXOTIC="exotic",$.LEGENDARY="legendary",$.EPIC="epic",$.RARE="rare",$.UNCOMMON="uncommon",$.COMMON="common"})(a.Rarity||(a.Rarity={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema);const j={[$.UNIQUE]:1,[$.MYTHIC]:10,[$.EXOTIC]:50,[$.LEGENDARY]:100,[$.EPIC]:1e3,[$.RARE]:5e3,[$.UNCOMMON]:1e4,[$.COMMON]:1e5},_e={[$.UNIQUE]:"#FFE617",[$.MYTHIC]:"#FB7DE3",[$.EXOTIC]:"#E4FFB8",[$.LEGENDARY]:"#A657ED",[$.EPIC]:"#6397F2",[$.RARE]:"#3AD682",[$.UNCOMMON]:"#FF8563",[$.COMMON]:"#D4E0E0"},et={[$.UNIQUE]:"#FFB626",[$.MYTHIC]:"#FF63E1",[$.EXOTIC]:"#CAFF73",[$.LEGENDARY]:"#842DDA",[$.EPIC]:"#3D85E6",[$.RARE]:"#36CF75",[$.UNCOMMON]:"#ED6D4F",[$.COMMON]:"#ABC1C1"};function tt(dt){return j[dt]}$.getMaxSupply=tt;function rt(dt){return et[dt]}$.getColor=rt;function it(){return[$.UNIQUE,$.MYTHIC,$.EXOTIC,$.LEGENDARY,$.EPIC,$.RARE,$.UNCOMMON,$.COMMON]}$.getRarities=it;function ct(dt){return[_e[dt],et[dt]]}$.getGradient=ct}(a.Rarity||(a.Rarity={}))})(rarity$1);var wearableCategory$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.WearableCategory=void 0;const _=validation$3;(function($){$.EYEBROWS="eyebrows",$.EYES="eyes",$.FACIAL_HAIR="facial_hair",$.HAIR="hair",$.BODY_SHAPE="body_shape",$.MOUTH="mouth",$.UPPER_BODY="upper_body",$.LOWER_BODY="lower_body",$.FEET="feet",$.EARRING="earring",$.EYEWEAR="eyewear",$.HAT="hat",$.HELMET="helmet",$.MASK="mask",$.TIARA="tiara",$.TOP_HEAD="top_head",$.SKIN="skin",$.HANDS_WEAR="hands_wear"})(a.WearableCategory||(a.WearableCategory={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.WearableCategory||(a.WearableCategory={}))})(wearableCategory$1);var representation$1={},bodyShape$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.BodyShape=void 0;const _=validation$3;(function($){$.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",$.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(a.BodyShape||(a.BodyShape={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.BodyShape||(a.BodyShape={}))})(bodyShape$1);var hideableCategory$1={},bodyPartCategory$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.BodyPartCategory=void 0;const _=validation$3;(function($){$.HEAD="head",$.HANDS="hands"})(a.BodyPartCategory||(a.BodyPartCategory={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.BodyPartCategory||(a.BodyPartCategory={}))})(bodyPartCategory$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.HideableWearableCategory=void 0;const _=wearableCategory$1,$=validation$3,j=bodyPartCategory$1;(function(_e){_e.schema={oneOf:[Object.assign({},_.WearableCategory.schema),Object.assign({},j.BodyPartCategory.schema)]},_e.validate=(0,$.generateLazyValidator)(_e.schema)})(a.HideableWearableCategory||(a.HideableWearableCategory={}))})(hideableCategory$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.WearableRepresentation=void 0;const _=validation$3,$=bodyShape$1,j=hideableCategory$1;(function(_e){_e.schema={type:"object",properties:{bodyShapes:{type:"array",items:$.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:j.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:j.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},_e.validate=(0,_.generateLazyValidator)(_e.schema)})(a.WearableRepresentation||(a.WearableRepresentation={}))})(representation$1);var platform$1={},profile$3={},avatar$1={},misc$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.IPFSv1=a.IPFSv2=a.EthAddress=a.Color3=void 0;const _=validation$3;(function($){$.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const j=(0,_.generateLazyValidator)($.schema);$.validate=_e=>j(_e)})(a.Color3||(a.Color3={})),function($){$.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const j=new RegExp($.schema.pattern);$.validate=_e=>j.test(_e)}(a.EthAddress||(a.EthAddress={})),function($){$.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const j=new RegExp($.schema.pattern);$.validate=_e=>j.test(_e)}(a.IPFSv2||(a.IPFSv2={})),function($){$.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const j=new RegExp($.schema.pattern);$.validate=_e=>j.test(_e)}(a.IPFSv1||(a.IPFSv1={}))})(misc$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Avatar=a.Link=a.LinkUrl=a.AvatarInfo=a.Snapshots=void 0;const _=wearableCategory$1,$=misc$1,j=validation$3;var _e;(function(it){it.schema={type:"object",required:["face256","body"],properties:{face256:$.IPFSv2.schema,body:$.IPFSv2.schema}},it.validate=(0,j.generateLazyValidator)(it.schema)})(_e=a.Snapshots||(a.Snapshots={}));var et;(function(it){it.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:$.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:$.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:$.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:_.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:_e.schema},additionalProperties:!0},it.validate=(0,j.generateLazyValidator)(it.schema)})(et=a.AvatarInfo||(a.AvatarInfo={}));var tt;(function(it){it.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const ct=new RegExp(it.schema.pattern,"i");it.validate=dt=>ct.test(dt)})(tt=a.LinkUrl||(a.LinkUrl={}));var rt;(function(it){it.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:tt.schema}}})(rt=a.Link||(a.Link={})),function(it){it.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:rt.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:$.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:et.schema},additionalProperties:!0},it.validate=(0,j.generateLazyValidator)(it.schema)}(a.Avatar||(a.Avatar={}))})(avatar$1);var profile$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Profile=void 0;const _=validation$3,$=avatar$1;(function(j){j.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:$.Avatar.schema}},additionalProperties:!0},j.validate=(0,_.generateLazyValidator)(j.schema)})(a.Profile||(a.Profile={}))})(profile$2);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(avatar$1,a),$(profile$2,a)})(profile$3);var scene$3={},featureToggles$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.FeatureToggles=a.portableExperiencesToggles=a.toggles=void 0;const _=validation$3;a.toggles=["enabled","disabled"],a.portableExperiencesToggles=[...a.toggles,"hideUi"],function($){$.schema={type:"object",properties:{voiceChat:{type:"string",enum:a.toggles,nullable:!0},portableExperiences:{type:"string",enum:a.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${a.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${a.toggles.join(", ")}`,required:[]},$.validate=(0,_.generateLazyValidator)($.schema)}(a.FeatureToggles||(a.FeatureToggles={}))})(featureToggles$1);var worldConfiguration$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.WorldConfiguration=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.WorldConfiguration||(a.WorldConfiguration={}))})(worldConfiguration$1);var sceneParcels$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SceneParcels=void 0;const _=validation$3;(function($){$.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},$.schemaValidator=(0,_.generateLazyValidator)($.schema),$.validate=j=>$.schemaValidator(j)&&j.parcels.includes(j.base)})(a.SceneParcels||(a.SceneParcels={}))})(sceneParcels$1);var scene$2={},displayable$1={};Object.defineProperty(displayable$1,"__esModule",{value:!0});displayable$1.displayableProperties=void 0;displayable$1.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}};var source$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Source=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.Source||(a.Source={}))})(source$1);var spawnPoint$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SpawnPoint=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},$.validate=(0,_.generateLazyValidator)($.schema)})(a.SpawnPoint||(a.SpawnPoint={}))})(spawnPoint$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Scene=a.RequiredPermission=void 0;const _=validation$3,$=displayable$1,j=featureToggles$1,_e=sceneParcels$1,et=source$1,tt=spawnPoint$1,rt=worldConfiguration$1;var it;(function(ct){ct.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",ct.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",ct.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",ct.USE_WEB3_API="USE_WEB3_API",ct.USE_FETCH="USE_FETCH",ct.USE_WEBSOCKET="USE_WEBSOCKET",ct.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(it=a.RequiredPermission||(a.RequiredPermission={})),function(ct){ct.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:_e.SceneParcels.schema},$.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},et.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:tt.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(it)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},j.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},rt.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:it.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},ct.validate=(0,_.generateLazyValidator)(ct.schema)}(a.Scene||(a.Scene={}))})(scene$2);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SpawnPoint=a.Source=a.RequiredPermission=a.Scene=a.SceneParcels=a.WorldConfiguration=a.FeatureToggles=void 0;var _=featureToggles$1;Object.defineProperty(a,"FeatureToggles",{enumerable:!0,get:function(){return _.FeatureToggles}});var $=worldConfiguration$1;Object.defineProperty(a,"WorldConfiguration",{enumerable:!0,get:function(){return $.WorldConfiguration}});var j=sceneParcels$1;Object.defineProperty(a,"SceneParcels",{enumerable:!0,get:function(){return j.SceneParcels}});var _e=scene$2;Object.defineProperty(a,"Scene",{enumerable:!0,get:function(){return _e.Scene}}),Object.defineProperty(a,"RequiredPermission",{enumerable:!0,get:function(){return _e.RequiredPermission}});var et=source$1;Object.defineProperty(a,"Source",{enumerable:!0,get:function(){return et.Source}});var tt=spawnPoint$1;Object.defineProperty(a,"SpawnPoint",{enumerable:!0,get:function(){return tt.SpawnPoint}})})(scene$3);var item$3={},i18n$1={},locale$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Locale=void 0;const _=validation$3;(function($){$.EN="en",$.ES="es"})(a.Locale||(a.Locale={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.Locale||(a.Locale={}))})(locale$2);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.I18N=void 0;const _=validation$3,$=locale$2;(function(j){j.schema={type:"object",properties:{code:$.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},j.validate=(0,_.generateLazyValidator)(j.schema)})(a.I18N||(a.I18N={}))})(i18n$1);var metrics$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Metrics=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.Metrics||(a.Metrics={}))})(metrics$1);var standardProps$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.isStandard=a.standardProperties=void 0;const _=rarity$1,$=validation$3;a.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:_.Rarity.schema};const j={type:"object",properties:Object.assign({},a.standardProperties),required:["collectionAddress","rarity"]},_e=(0,$.generateLazyValidator)(j);function et(tt){return _e(tt)}a.isStandard=et})(standardProps$1);var thirdPartyProps$1={},merkleProof$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.MerkleProof=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},$.validate=(0,_.generateLazyValidator)($.schema)})(a.MerkleProof||(a.MerkleProof={}))})(merkleProof$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.isThirdParty=a.thirdPartyProps=void 0;const _=validation$3,$=merkleProof$1;a.thirdPartyProps={merkleProof:$.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]}};const j={type:"object",properties:Object.assign({},a.thirdPartyProps),required:["merkleProof","content"],_containsHashingKeys:!0},_e={keyword:"_containsHashingKeys",validate:(rt,it)=>{var ct;const dt=it;return!((ct=dt==null?void 0:dt.merkleProof)===null||ct===void 0)&&ct.hashingKeys?dt.merkleProof.hashingKeys.every(mt=>dt.hasOwnProperty(mt)):!1},errors:!1},et=(0,_.generateLazyValidator)(j,[_e]);function tt(rt){return et(rt)}a.isThirdParty=tt})(thirdPartyProps$1);var wearable$3={},wearable$2={},baseItem$1={};Object.defineProperty(baseItem$1,"__esModule",{value:!0});baseItem$1.isBaseEmote=baseItem$1.isBaseAvatar=baseItem$1.requiredBaseItemProps=baseItem$1.baseItemProperties=void 0;const i18n_1$1=i18n$1,metrics_1$1=metrics$1,displayable_1$1=displayable$1;baseItem$1.baseItemProperties=Object.assign(Object.assign({},displayable_1$1.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:i18n_1$1.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},metrics_1$1.Metrics.schema),{nullable:!0})});baseItem$1.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function isBaseAvatar$1(a){if(!a||!a.id)return!1;const _=a.id.split(":"),$=_[1]==="decentraland",j=_[3]==="base-avatars";return _.length===5&&$&&j}baseItem$1.isBaseAvatar=isBaseAvatar$1;function isBaseEmote(a){if(!a||!a.id)return!1;const _=a.id.split(":");return _.length===5&&_[1]==="decentraland"&&_[3]==="base-emotes"}baseItem$1.isBaseEmote=isBaseEmote;(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Wearable=void 0;const _=validation$3,$=wearableCategory$1,j=representation$1,_e=baseItem$1,et=standardProps$1,tt=thirdPartyProps$1,rt=hideableCategory$1;(function(it){it.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},_e.baseItemProperties),et.standardProperties),tt.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:rt.HideableWearableCategory.schema},hides:{type:"array",items:rt.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:j.WearableRepresentation.schema,minItems:1},category:$.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:rt.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseAvatar:!0},{required:[..._e.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content"]},{required:[..._e.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const ct={keyword:"_isThirdParty",validate:(mt,vt)=>!mt||(0,tt.isThirdParty)(vt),errors:!1},dt={keyword:"_isBaseAvatar",validate:(mt,vt)=>!mt||(0,_e.isBaseAvatar)(vt),errors:!1};it.validate=(0,_.generateLazyValidator)(it.schema,[ct,dt])})(a.Wearable||(a.Wearable={}))})(wearable$2);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.HideableWearableCategory=a.BodyPartCategory=a.WearableCategory=a.Wearable=a.WearableRepresentation=void 0;var _=representation$1;Object.defineProperty(a,"WearableRepresentation",{enumerable:!0,get:function(){return _.WearableRepresentation}});var $=wearable$2;Object.defineProperty(a,"Wearable",{enumerable:!0,get:function(){return $.Wearable}});var j=wearableCategory$1;Object.defineProperty(a,"WearableCategory",{enumerable:!0,get:function(){return j.WearableCategory}});var _e=bodyPartCategory$1;Object.defineProperty(a,"BodyPartCategory",{enumerable:!0,get:function(){return _e.BodyPartCategory}});var et=hideableCategory$1;Object.defineProperty(a,"HideableWearableCategory",{enumerable:!0,get:function(){return et.HideableWearableCategory}})})(wearable$3);var emote$3={},emote$2={},emoteDataAdr74$1={},emoteCategory$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.EmoteCategory=void 0;const _=validation$3;(function($){$.DANCE="dance",$.STUNT="stunt",$.GREETINGS="greetings",$.FUN="fun",$.POSES="poses",$.REACTIONS="reactions",$.HORROR="horror",$.MISCELLANEOUS="miscellaneous"})(a.EmoteCategory||(a.EmoteCategory={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.EmoteCategory||(a.EmoteCategory={}))})(emoteCategory$1);var representationAdr74$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.EmoteRepresentationADR74=void 0;const _=validation$3,$=bodyShape$1;(function(j){j.schema={type:"object",properties:{bodyShapes:{type:"array",items:$.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},j.validate=(0,_.generateLazyValidator)(j.schema)})(a.EmoteRepresentationADR74||(a.EmoteRepresentationADR74={}))})(representationAdr74$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.EmoteDataADR74=void 0;const _=emoteCategory$1,$=validation$3,j=representationAdr74$1;(function(_e){_e.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:j.EmoteRepresentationADR74.schema,minItems:1},category:_.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},_e.validate=(0,$.generateLazyValidator)(_e.schema)})(a.EmoteDataADR74||(a.EmoteDataADR74={}))})(emoteDataAdr74$1);var hasRequiredEmote$3;function requireEmote$3(){return hasRequiredEmote$3||(hasRequiredEmote$3=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Emote=void 0;const _=requireItem$1(),$=validation$3,j=baseItem$1,_e=standardProps$1,et=thirdPartyProps$1,tt=emoteDataAdr74$1;(function(rt){rt.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},j.baseItemProperties),_e.standardProperties),et.thirdPartyProps),{emoteDataADR74:tt.EmoteDataADR74.schema}),additionalProperties:!0,required:[...j.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const it={keyword:"_isThirdParty",validate:(dt,mt)=>!dt||(0,_.isThirdParty)(mt),errors:!1},ct={keyword:"_isBaseEmote",validate:(dt,mt)=>!dt||(0,j.isBaseEmote)(mt),errors:!1};rt.validate=(0,$.generateLazyValidator)(rt.schema,[it,ct])})(a.Emote||(a.Emote={}))}(emote$2)),emote$2}var emotePlayMode$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.EmotePlayMode=void 0;const _=validation$3;(function($){$.SIMPLE="simple",$.LOOP="loop"})(a.EmotePlayMode||(a.EmotePlayMode={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.EmotePlayMode||(a.EmotePlayMode={}))})(emotePlayMode$1);var hasRequiredEmote$2;function requireEmote$2(){return hasRequiredEmote$2||(hasRequiredEmote$2=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.EmotePlayMode=a.EmoteCategory=a.EmoteDataADR74=a.EmoteRepresentationADR74=a.Emote=void 0;var _=requireEmote$3();Object.defineProperty(a,"Emote",{enumerable:!0,get:function(){return _.Emote}});var $=representationAdr74$1;Object.defineProperty(a,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return $.EmoteRepresentationADR74}});var j=emoteDataAdr74$1;Object.defineProperty(a,"EmoteDataADR74",{enumerable:!0,get:function(){return j.EmoteDataADR74}});var _e=emoteCategory$1;Object.defineProperty(a,"EmoteCategory",{enumerable:!0,get:function(){return _e.EmoteCategory}});var et=emotePlayMode$1;Object.defineProperty(a,"EmotePlayMode",{enumerable:!0,get:function(){return et.EmotePlayMode}})}(emote$3)),emote$3}var hasRequiredItem$1;function requireItem$1(){return hasRequiredItem$1||(hasRequiredItem$1=1,function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ct,dt,mt,vt){vt===void 0&&(vt=mt);var wt=Object.getOwnPropertyDescriptor(dt,mt);(!wt||("get"in wt?!dt.__esModule:wt.writable||wt.configurable))&&(wt={enumerable:!0,get:function(){return dt[mt]}}),Object.defineProperty(ct,vt,wt)}:function(ct,dt,mt,vt){vt===void 0&&(vt=mt),ct[vt]=dt[mt]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(ct,dt){for(var mt in ct)mt!=="default"&&!Object.prototype.hasOwnProperty.call(dt,mt)&&_(dt,ct,mt)};Object.defineProperty(a,"__esModule",{value:!0}),a.isThirdParty=a.isStandard=a.BodyShape=a.Metrics=a.Locale=a.I18N=void 0;var j=i18n$1;Object.defineProperty(a,"I18N",{enumerable:!0,get:function(){return j.I18N}});var _e=locale$2;Object.defineProperty(a,"Locale",{enumerable:!0,get:function(){return _e.Locale}});var et=metrics$1;Object.defineProperty(a,"Metrics",{enumerable:!0,get:function(){return et.Metrics}});var tt=bodyShape$1;Object.defineProperty(a,"BodyShape",{enumerable:!0,get:function(){return tt.BodyShape}});var rt=standardProps$1;Object.defineProperty(a,"isStandard",{enumerable:!0,get:function(){return rt.isStandard}});var it=thirdPartyProps$1;Object.defineProperty(a,"isThirdParty",{enumerable:!0,get:function(){return it.isThirdParty}}),$(wearable$3,a),$(requireEmote$2(),a)}(item$3)),item$3}var merkleTree$1={};(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(merkleProof$1,a)})(merkleTree$1);var syncDeployments$1={},authChain$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.AuthChain=a.AuthLink=a.AuthLinkType=void 0;const _=validation$3;var $;(function(_e){_e.SIGNER="SIGNER",_e.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",_e.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",_e.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",_e.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})($=a.AuthLinkType||(a.AuthLinkType={}));var j;(function(_e){_e.schema={type:"object",properties:{type:{type:"string",enum:Object.values($)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:$.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},_e.validate=(0,_.generateLazyValidator)(_e.schema)})(j=a.AuthLink||(a.AuthLink={})),function(_e){_e.schema={type:"array",items:j.schema,minItems:1},_e.validate=(0,_.generateLazyValidator)(_e.schema)}(a.AuthChain||(a.AuthChain={}))})(authChain$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PointerChangesSyncDeployment=a.SnapshotSyncDeployment=void 0;const _=misc$1,$=authChain$1,j=validation$3;(function(_e){_e.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:$.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:_.IPFSv1.schema}},{properties:{entityId:_.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},_e.validate=(0,j.generateLazyValidator)(_e.schema)})(a.SnapshotSyncDeployment||(a.SnapshotSyncDeployment={})),function(_e){_e.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:$.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:_.IPFSv1.schema}},{properties:{entityId:_.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},_e.validate=(0,j.generateLazyValidator)(_e.schema)}(a.PointerChangesSyncDeployment||(a.PointerChangesSyncDeployment={}))})(syncDeployments$1);var entity$1={},contentMapping$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.ContentMapping=void 0;const _=misc$1,$=validation$3;(function(j){j.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[_.IPFSv1.schema,_.IPFSv2.schema]}},required:["file","hash"]},j.validate=(0,$.generateLazyValidator)(j.schema)})(a.ContentMapping||(a.ContentMapping={}))})(contentMapping$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Entity=a.EntityType=void 0;const _=misc$1,$=contentMapping$1,j=validation$3;(function(_e){_e.SCENE="scene",_e.PROFILE="profile",_e.WEARABLE="wearable",_e.STORE="store",_e.EMOTE="emote",_e.OUTFITS="outfits"})(a.EntityType||(a.EntityType={})),function(_e){_e.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[_.IPFSv1.schema,_.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:$.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},_e.validate=(0,j.generateLazyValidator)(_e.schema)}(a.Entity||(a.Entity={}))})(entity$1);var deploymentWithAuthChain$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.DeploymentWithAuthChain=void 0;const _=authChain$1,$=validation$3;(function(j){j.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:_.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},j.validate=(0,$.generateLazyValidator)(j.schema)})(a.DeploymentWithAuthChain||(a.DeploymentWithAuthChain={}))})(deploymentWithAuthChain$1);var outfits$3={},outfits$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Outfits=a.Outfit=void 0;const _=wearableCategory$1,$=misc$1,j=validation$3;var _e;(function(et){et.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:$.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:$.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:$.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:_.WearableCategory.schema}},additionalProperties:!0},et.validate=(0,j.generateLazyValidator)(et.schema)})(_e=a.Outfit||(a.Outfit={})),function(et){et.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:_e.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},et.validate=(0,j.generateLazyValidator)(et.schema)}(a.Outfits||(a.Outfits={}))})(outfits$2);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(outfits$2,a)})(outfits$3);var notifications$1={},notifications={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.NotificationType=void 0,function(_){_.BID_ACCEPTED="bid_accepted",_.BID_RECEIVED="bid_received",_.EVENTS_STARTED="events_started",_.EVENTS_STARTS_SOON="events_starts_soon",_.GOVERNANCE_ANNOUNCEMENT="governance_announcement",_.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",_.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",_.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",_.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",_.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",_.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",_.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",_.GOVERNANCE_TENDER_PASSED="governance_tender_passed",_.ITEM_SOLD="item_sold",_.LAND_RENTAL_ENDED="rental_ended",_.LAND_RENTED="rental_started",_.REWARD_ASSIGNED="reward_assignment",_.ROYALTIES_EARNED="royalties_earned",_.WORLDS_ACCESS_RESTORED="worlds_access_restored",_.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",_.WORLDS_MISSING_RESOURCES="worlds_missing_resources",_.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",_.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked"}(a.NotificationType||(a.NotificationType={}))})(notifications);var subscription={},subscriptionDetails={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SubscriptionDetails=void 0;const _=validation$3,$=notifications,j={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},_e=Object.values($.NotificationType).reduce((et,tt)=>(et[tt]=j,et),{});(function(et){et.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values($.NotificationType),additionalProperties:!1,properties:_e}}},et.validate=(0,_.generateLazyValidator)(et.schema)})(a.SubscriptionDetails||(a.SubscriptionDetails={}))})(subscriptionDetails);var email={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Email=void 0,function(_){_.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const $=new RegExp(_.schema.pattern);_.validate=j=>$.test(j)}(a.Email||(a.Email={}))})(email);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Subscription=void 0;const _=validation$3,$=subscriptionDetails,j=misc$1,_e=email;(function(et){et.schema={type:"object",required:["address","details"],properties:{address:j.EthAddress.schema,email:Object.assign(Object.assign({},_e.Email.schema),{nullable:!0}),details:$.SubscriptionDetails.schema}},et.validate=(0,_.generateLazyValidator)(et.schema)})(a.Subscription||(a.Subscription={}))})(subscription);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(notifications,a),$(subscription,a),$(subscriptionDetails,a)})(notifications$1);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(profile$3,a),$(scene$3,a),$(requireItem$1(),a),$(displayable$1,a),$(merkleTree$1,a),$(syncDeployments$1,a),$(entity$1,a),$(deploymentWithAuthChain$1,a),$(outfits$3,a),$(notifications$1,a)})(platform$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.WearableJson=void 0;const _=rarity$1,$=wearableCategory$1,j=representation$1,_e=validation$3,et=platform$1;(function(tt){tt.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},_.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:$.WearableCategory.schema},hides:{type:"array",items:$.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:j.WearableRepresentation.schema,minItems:1},category:$.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:et.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},tt.validate=(0,_e.generateLazyValidator)(tt.schema)})(a.WearableJson||(a.WearableJson={}))})(wearableJson$1);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(type$1,a),$(wearableJson$1,a)})(project$1);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(ws$1,a),$(project$1,a)})(sdk$1);var bid$1={},listingStatus$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.ListingStatus=void 0;const _=validation$3;(function($){$.OPEN="open",$.SOLD="sold",$.CANCELLED="cancelled"})(a.ListingStatus||(a.ListingStatus={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.ListingStatus||(a.ListingStatus={}))})(listingStatus$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Bid=a.BidSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=listingStatus$1,_e=network$1;(function(et){et.RECENTLY_OFFERED="recently_offered",et.RECENTLY_UPDATED="recently_updated",et.MOST_EXPENSIVE="most_expensive"})(a.BidSortBy||(a.BidSortBy={})),function(et){et.schema={type:"object",properties:{id:{type:"string"},bidAddress:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:j.ListingStatus.schema,blockchainId:{type:"string"},blockNumber:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},network:_e.Network.schema,chainId:$.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidAddress","bidder","seller","price","fingerprint","status","blockchainId","blockNumber","contractAddress","tokenId","network","chainId","expiresAt","createdAt","updatedAt"]},et.validate=(0,_.generateLazyValidator)(et.schema)}(a.Bid||(a.Bid={}))})(bid$1);var account$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Account=a.AccountSortBy=void 0;const _=validation$3;(function($){$.MOST_SALES="most_sales",$.MOST_PURCHASES="most_purchases",$.MOST_SPENT="most_spent",$.MOST_EARNED="most_earned",$.MOST_ROYALTIES="most_royalties",$.MOST_COLLECTIONS="most_collections"})(a.AccountSortBy||(a.AccountSortBy={})),function($){$.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},$.validate=(0,_.generateLazyValidator)($.schema)}(a.Account||(a.Account={}))})(account$1);var collection$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Collection=a.CollectionSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=network$1;(function(_e){_e.NEWEST="newest",_e.NAME="name",_e.RECENTLY_REVIEWED="recently_reviewed",_e.RECENTLY_LISTED="recently_listed",_e.SIZE="size"})(a.CollectionSortBy||(a.CollectionSortBy={})),function(_e){_e.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:j.Network.schema,chainId:$.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},_e.validate=(0,_.generateLazyValidator)(_e.schema)}(a.Collection||(a.Collection={}))})(collection$1);var contract$1={},nftCategory$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.NFTCategory=void 0;const _=validation$3;(function($){$.PARCEL="parcel",$.ESTATE="estate",$.WEARABLE="wearable",$.ENS="ens",$.EMOTE="emote"})(a.NFTCategory||(a.NFTCategory={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.NFTCategory||(a.NFTCategory={}))})(nftCategory$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Contract=a.ContractSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=network$1,_e=nftCategory$1;(function(et){et.NAME="name"})(a.ContractSortBy||(a.ContractSortBy={})),function(et){et.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:_e.NFTCategory.schema,network:j.Network.schema,chainId:$.ChainId.schema},required:["name","address","category","network","chainId"]},et.validate=(0,_.generateLazyValidator)(et.schema)}(a.Contract||(a.Contract={}))})(contract$1);var item$2={},nft$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.NFT=a.NFTSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=platform$1,_e=network$1,et=nftCategory$1,tt=rarity$1,rt=wearableCategory$1;(function(it){it.NAME="name",it.NEWEST="newest",it.RECENTLY_LISTED="recently_listed",it.RECENTLY_SOLD="recently_sold",it.CHEAPEST="cheapest",it.RENTAL_LISTING_DATE="rental_listing_date",it.RENTAL_DATE="rented_date",it.MAX_RENTAL_PRICE="max_rental_price",it.MIN_RENTAL_PRICE="min_rental_price"})(a.NFTSortBy||(a.NFTSortBy={})),function(it){it.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:j.BodyShape.schema},category:rt.WearableCategory.schema,description:{type:"string"},rarity:tt.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:j.BodyShape.schema},category:j.EmoteCategory.schema,description:{type:"string"},rarity:tt.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:et.NFTCategory.schema,network:_e.Network.schema,chainId:$.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},it.validate=(0,_.generateLazyValidator)(it.schema)}(a.NFT||(a.NFT={}))})(nft$1);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Item=a.ItemSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=network$1,_e=nft$1,et=nftCategory$1;(function(tt){tt.NAME="name",tt.NEWEST="newest",tt.RECENTLY_REVIEWED="recently_reviewed",tt.RECENTLY_SOLD="recently_sold",tt.RECENTLY_LISTED="recently_listed",tt.CHEAPEST="cheapest"})(a.ItemSortBy||(a.ItemSortBy={})),function(tt){tt.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:et.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},data:_e.NFT.schema.properties.data,network:j.Network.schema,chainId:$.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},tt.validate=(0,_.generateLazyValidator)(tt.schema)}(a.Item||(a.Item={}))})(item$2);var metaTransactions$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.MetaTransaction=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.MetaTransaction||(a.MetaTransaction={}))})(metaTransactions$1);var mint$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Mint=a.MintSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=network$1;(function(_e){_e.RECENTLY_MINTED="recently_minted",_e.MOST_EXPENSIVE="most_expensive"})(a.MintSortBy||(a.MintSortBy={})),function(_e){_e.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:j.Network.schema,chainId:$.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},_e.validate=(0,_.generateLazyValidator)(_e.schema)}(a.Mint||(a.Mint={}))})(mint$1);var catalog$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.CatalogSortDirection=a.CatalogSortBy=void 0,function(_){_.NEWEST="newest",_.RECENTLY_SOLD="recently_sold",_.CHEAPEST="cheapest",_.MOST_EXPENSIVE="most_expensive",_.RECENTLY_LISTED="recently_listed"}(a.CatalogSortBy||(a.CatalogSortBy={})),function(_){_.ASC="asc",_.DESC="desc"}(a.CatalogSortDirection||(a.CatalogSortDirection={}))})(catalog$1);var order$2={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Order=a.OrderSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=listingStatus$1,_e=network$1;(function(et){et.RECENTLY_LISTED="recently_listed",et.RECENTLY_UPDATED="recently_updated",et.CHEAPEST="cheapest",et.ISSUED_ID_ASC="issued_id_asc",et.ISSUED_ID_DESC="issued_id_desc",et.OLDEST="oldest"})(a.OrderSortBy||(a.OrderSortBy={})),function(et){et.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:j.ListingStatus.schema,network:_e.Network.schema,chainId:$.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},et.validate=(0,_.generateLazyValidator)(et.schema)}(a.Order||(a.Order={}))})(order$2);var saleType$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.SaleType=void 0;const _=validation$3;(function($){$.ORDER="order",$.BID="bid",$.MINT="mint"})(a.SaleType||(a.SaleType={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.SaleType||(a.SaleType={}))})(saleType$1);var sale$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Sale=a.SaleSortBy=void 0;const _=validation$3,$=requireChainId$1(),j=saleType$1,_e=network$1;(function(et){et.RECENTLY_SOLD="recently_sold",et.MOST_EXPENSIVE="most_expensive"})(a.SaleSortBy||(a.SaleSortBy={})),function(et){et.schema={type:"object",properties:{id:{type:"string"},type:j.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:_e.Network.schema,chainId:$.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},et.validate=(0,_.generateLazyValidator)(et.schema)}(a.Sale||(a.Sale={}))})(sale$1);var rentalsListings$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.RentalListingCreation=a.PeriodCreation=a.RentalsListingsSortBy=a.RentalsListingsFilterByCategory=a.RentalsListingSortDirection=a.RentalStatus=void 0;const _=validation$3,$=requireChainId$1(),j=network$1;(function(et){et.OPEN="open",et.CANCELLED="cancelled",et.EXECUTED="executed",et.CLAIMED="claimed"})(a.RentalStatus||(a.RentalStatus={})),function(et){et.ASC="asc",et.DESC="desc"}(a.RentalsListingSortDirection||(a.RentalsListingSortDirection={})),function(et){et.PARCEL="parcel",et.ESTATE="estate"}(a.RentalsListingsFilterByCategory||(a.RentalsListingsFilterByCategory={})),function(et){et.LAND_CREATION_DATE="land_creation_date",et.RENTAL_LISTING_DATE="rental_listing_date",et.RENTAL_DATE="rented_date",et.NAME="name",et.MAX_RENTAL_PRICE="max_rental_price",et.MIN_RENTAL_PRICE="min_rental_price"}(a.RentalsListingsSortBy||(a.RentalsListingsSortBy={}));var _e;(function(et){et.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},et.validate=(0,_.generateLazyValidator)(et.schema)})(_e=a.PeriodCreation||(a.PeriodCreation={})),function(et){et.schema={type:"object",properties:{network:j.Network.schema,chainId:$.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:_e.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},et.validate=(0,_.generateLazyValidator)(et.schema)}(a.RentalListingCreation||(a.RentalListingCreation={}))})(rentalsListings$1);var analyticsDayData$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.AnalyticsDayDataSortBy=void 0,function(_){_.DATE="date",_.MOST_SALES="most_sales"}(a.AnalyticsDayDataSortBy||(a.AnalyticsDayDataSortBy={}))})(analyticsDayData$1);var store$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.Store=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.Store||(a.Store={}))})(store$1);var wearableGender$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.GenderFilterOption=a.WearableGender=void 0;const _=validation$3;(function($){$.MALE="male",$.FEMALE="female"})(a.WearableGender||(a.WearableGender={})),function($){$.MALE="male",$.FEMALE="female",$.UNISEX="unisex"}(a.GenderFilterOption||(a.GenderFilterOption={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.WearableGender||(a.WearableGender={}))})(wearableGender$1);var world$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.World=a.isInsideWorldLimits=a.getWorld=void 0;const _=validation$3;function $(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}a.getWorld=$;function j(_e,et){const tt=$().validWorldRanges;for(const rt of tt)if(_e>=rt.xMin&&_e<=rt.xMax&&et>=rt.yMin&&et<=rt.yMax)return!0;return!1}a.isInsideWorldLimits=j,function(_e){_e.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},_e.validate=(0,_.generateLazyValidator)(_e.schema)}(a.World||(a.World={}))})(world$1);var preview$1={},previewCamera$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PreviewCamera=void 0;const _=validation$3;(function($){$.STATIC="static",$.INTERACTIVE="interactive"})(a.PreviewCamera||(a.PreviewCamera={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.PreviewCamera||(a.PreviewCamera={}))})(previewCamera$1);var previewConfig$1={};Object.defineProperty(previewConfig$1,"__esModule",{value:!0});var previewController$1={};Object.defineProperty(previewController$1,"__esModule",{value:!0});var previewEmoteEventType$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PreviewEmoteEventType=void 0;const _=validation$3;(function($){$.ANIMATION_PLAY="animation_play",$.ANIMATION_PAUSE="animation_pause",$.ANIMATION_LOOP="animation_loop",$.ANIMATION_END="animation_end",$.ANIMATION_PLAYING="animation_playing"})(a.PreviewEmoteEventType||(a.PreviewEmoteEventType={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.PreviewEmoteEventType||(a.PreviewEmoteEventType={}))})(previewEmoteEventType$1);var previewEmote$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PreviewEmote=void 0;const _=validation$3;(function($){$.IDLE="idle",$.WALK="walk",$.RUN="run",$.JUMP="jump",$.CLAP="clap",$.DAB="dab",$.DANCE="dance",$.FASHION="fashion",$.FASHION_2="fashion-2",$.FASHION_3="fashion-3",$.FASHION_4="fashion-4",$.LOVE="love",$.MONEY="money",$.FIST_PUMP="fist-pump",$.HEAD_EXPLODE="head-explode",$.WAVE="wave"})(a.PreviewEmote||(a.PreviewEmote={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.PreviewEmote||(a.PreviewEmote={}))})(previewEmote$1);var previewMessage$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.sendMessage=a.PreviewMessageType=void 0;const _=validation$3;(function(j){j.READY="ready",j.LOAD="load",j.ERROR="error",j.UPDATE="update",j.CONTROLLER_REQUEST="controller_request",j.CONTROLLER_RESPONSE="controller_response",j.EMOTE_EVENT="emote_event"})(a.PreviewMessageType||(a.PreviewMessageType={})),function(j){j.schema={type:"string",enum:Object.values(j)},j.validate=(0,_.generateLazyValidator)(j.schema)}(a.PreviewMessageType||(a.PreviewMessageType={}));const $=(j,_e,et,tt="*")=>{const rt={type:_e,payload:et};j.postMessage(rt,tt)};a.sendMessage=$})(previewMessage$1);var previewOptions$1={};Object.defineProperty(previewOptions$1,"__esModule",{value:!0});var previewProjection$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PreviewProjection=void 0;const _=validation$3;(function($){$.ORTHOGRAPHIC="orthographic",$.PERSPECTIVE="perspective"})(a.PreviewProjection||(a.PreviewProjection={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.PreviewProjection||(a.PreviewProjection={}))})(previewProjection$1);var previewType$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.PreviewType=void 0;const _=validation$3;(function($){$.TEXTURE="texture",$.WEARABLE="wearable",$.AVATAR="avatar"})(a.PreviewType||(a.PreviewType={})),function($){$.schema={type:"string",enum:Object.values($)},$.validate=(0,_.generateLazyValidator)($.schema)}(a.PreviewType||(a.PreviewType={}))})(previewType$1);var wearableRepresentationDefinition$1={};Object.defineProperty(wearableRepresentationDefinition$1,"__esModule",{value:!0});var wearableRepresentationWithBlobs$1={};Object.defineProperty(wearableRepresentationWithBlobs$1,"__esModule",{value:!0});var wearableDefinition$1={};Object.defineProperty(wearableDefinition$1,"__esModule",{value:!0});var wearableWithBlobs$1={};Object.defineProperty(wearableWithBlobs$1,"__esModule",{value:!0});var emoteRepresentationDefinition$1={};Object.defineProperty(emoteRepresentationDefinition$1,"__esModule",{value:!0});var emoteRepresentationWithBlobs$1={};Object.defineProperty(emoteRepresentationWithBlobs$1,"__esModule",{value:!0});var emoteDefinition$1={};Object.defineProperty(emoteDefinition$1,"__esModule",{value:!0});var emoteWithBlobs$1={};Object.defineProperty(emoteWithBlobs$1,"__esModule",{value:!0});(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(previewCamera$1,a),$(previewConfig$1,a),$(previewController$1,a),$(previewEmoteEventType$1,a),$(previewEmote$1,a),$(previewMessage$1,a),$(previewOptions$1,a),$(previewProjection$1,a),$(previewType$1,a),$(wearableRepresentationDefinition$1,a),$(wearableRepresentationWithBlobs$1,a),$(wearableDefinition$1,a),$(wearableWithBlobs$1,a),$(emoteRepresentationDefinition$1,a),$(emoteRepresentationWithBlobs$1,a),$(emoteDefinition$1,a),$(emoteWithBlobs$1,a)})(preview$1);var linkerAuthorization$1={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.LinkerAuthorization=void 0;const _=validation$3;(function($){$.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},$.validate=(0,_.generateLazyValidator)($.schema)})(a.LinkerAuthorization||(a.LinkerAuthorization={}))})(linkerAuthorization$1);(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(st,lt,pt,_t){_t===void 0&&(_t=pt);var St=Object.getOwnPropertyDescriptor(lt,pt);(!St||("get"in St?!lt.__esModule:St.writable||St.configurable))&&(St={enumerable:!0,get:function(){return lt[pt]}}),Object.defineProperty(st,_t,St)}:function(st,lt,pt,_t){_t===void 0&&(_t=pt),st[_t]=lt[pt]}),$=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(st,lt){Object.defineProperty(st,"default",{enumerable:!0,value:lt})}:function(st,lt){st.default=lt}),j=commonjsGlobal&&commonjsGlobal.__importStar||function(st){if(st&&st.__esModule)return st;var lt={};if(st!=null)for(var pt in st)pt!=="default"&&Object.prototype.hasOwnProperty.call(st,pt)&&_(lt,st,pt);return $(lt,st),lt},_e=commonjsGlobal&&commonjsGlobal.__exportStar||function(st,lt){for(var pt in st)pt!=="default"&&!Object.prototype.hasOwnProperty.call(lt,pt)&&_(lt,st,pt)};Object.defineProperty(a,"__esModule",{value:!0}),a.sdk=a.isInsideWorldLimits=a.getWorld=a.World=a.GenderFilterOption=a.WearableGender=a.Store=a.AnalyticsDayDataSortBy=a.PeriodCreation=a.RentalListingCreation=a.RentalsListingsSortBy=a.RentalsListingsFilterByCategory=a.RentalsListingSortDirection=a.RentalStatus=a.SaleSortBy=a.Sale=a.SaleType=a.Rarity=a.ProviderType=a.OrderSortBy=a.Order=a.CatalogSortDirection=a.CatalogSortBy=a.NFTSortBy=a.NFT=a.NFTCategory=a.Network=a.MintSortBy=a.Mint=a.MetaTransaction=a.ListingStatus=a.ItemSortBy=a.Item=a.ContractSortBy=a.Contract=a.CollectionSortBy=a.Collection=a.getChainId=a.ChainName=a.getURNProtocol=a.getChainName=a.ChainId=a.AccountSortBy=a.Account=a.BidSortBy=a.Bid=void 0;const et=j(sdk$1);a.sdk=et,_e(validation$3,a);var tt=bid$1;Object.defineProperty(a,"Bid",{enumerable:!0,get:function(){return tt.Bid}}),Object.defineProperty(a,"BidSortBy",{enumerable:!0,get:function(){return tt.BidSortBy}});var rt=account$1;Object.defineProperty(a,"Account",{enumerable:!0,get:function(){return rt.Account}}),Object.defineProperty(a,"AccountSortBy",{enumerable:!0,get:function(){return rt.AccountSortBy}});var it=requireChainId$1();Object.defineProperty(a,"ChainId",{enumerable:!0,get:function(){return it.ChainId}}),Object.defineProperty(a,"getChainName",{enumerable:!0,get:function(){return it.getChainName}}),Object.defineProperty(a,"getURNProtocol",{enumerable:!0,get:function(){return it.getURNProtocol}});var ct=requireChainName$1();Object.defineProperty(a,"ChainName",{enumerable:!0,get:function(){return ct.ChainName}}),Object.defineProperty(a,"getChainId",{enumerable:!0,get:function(){return ct.getChainId}});var dt=collection$1;Object.defineProperty(a,"Collection",{enumerable:!0,get:function(){return dt.Collection}}),Object.defineProperty(a,"CollectionSortBy",{enumerable:!0,get:function(){return dt.CollectionSortBy}});var mt=contract$1;Object.defineProperty(a,"Contract",{enumerable:!0,get:function(){return mt.Contract}}),Object.defineProperty(a,"ContractSortBy",{enumerable:!0,get:function(){return mt.ContractSortBy}});var vt=item$2;Object.defineProperty(a,"Item",{enumerable:!0,get:function(){return vt.Item}}),Object.defineProperty(a,"ItemSortBy",{enumerable:!0,get:function(){return vt.ItemSortBy}});var wt=listingStatus$1;Object.defineProperty(a,"ListingStatus",{enumerable:!0,get:function(){return wt.ListingStatus}});var xt=metaTransactions$1;Object.defineProperty(a,"MetaTransaction",{enumerable:!0,get:function(){return xt.MetaTransaction}});var bt=mint$1;Object.defineProperty(a,"Mint",{enumerable:!0,get:function(){return bt.Mint}}),Object.defineProperty(a,"MintSortBy",{enumerable:!0,get:function(){return bt.MintSortBy}});var Et=network$1;Object.defineProperty(a,"Network",{enumerable:!0,get:function(){return Et.Network}});var $t=nftCategory$1;Object.defineProperty(a,"NFTCategory",{enumerable:!0,get:function(){return $t.NFTCategory}});var At=nft$1;Object.defineProperty(a,"NFT",{enumerable:!0,get:function(){return At.NFT}}),Object.defineProperty(a,"NFTSortBy",{enumerable:!0,get:function(){return At.NFTSortBy}});var Rt=catalog$1;Object.defineProperty(a,"CatalogSortBy",{enumerable:!0,get:function(){return Rt.CatalogSortBy}}),Object.defineProperty(a,"CatalogSortDirection",{enumerable:!0,get:function(){return Rt.CatalogSortDirection}});var Pt=order$2;Object.defineProperty(a,"Order",{enumerable:!0,get:function(){return Pt.Order}}),Object.defineProperty(a,"OrderSortBy",{enumerable:!0,get:function(){return Pt.OrderSortBy}});var Ct=providerType$1;Object.defineProperty(a,"ProviderType",{enumerable:!0,get:function(){return Ct.ProviderType}});var Ot=rarity$1;Object.defineProperty(a,"Rarity",{enumerable:!0,get:function(){return Ot.Rarity}});var kt=saleType$1;Object.defineProperty(a,"SaleType",{enumerable:!0,get:function(){return kt.SaleType}});var Dt=sale$1;Object.defineProperty(a,"Sale",{enumerable:!0,get:function(){return Dt.Sale}}),Object.defineProperty(a,"SaleSortBy",{enumerable:!0,get:function(){return Dt.SaleSortBy}});var Nt=rentalsListings$1;Object.defineProperty(a,"RentalStatus",{enumerable:!0,get:function(){return Nt.RentalStatus}}),Object.defineProperty(a,"RentalsListingSortDirection",{enumerable:!0,get:function(){return Nt.RentalsListingSortDirection}}),Object.defineProperty(a,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return Nt.RentalsListingsFilterByCategory}}),Object.defineProperty(a,"RentalsListingsSortBy",{enumerable:!0,get:function(){return Nt.RentalsListingsSortBy}}),Object.defineProperty(a,"RentalListingCreation",{enumerable:!0,get:function(){return Nt.RentalListingCreation}}),Object.defineProperty(a,"PeriodCreation",{enumerable:!0,get:function(){return Nt.PeriodCreation}});var zt=analyticsDayData$1;Object.defineProperty(a,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return zt.AnalyticsDayDataSortBy}});var gt=store$1;Object.defineProperty(a,"Store",{enumerable:!0,get:function(){return gt.Store}});var nt=wearableGender$1;Object.defineProperty(a,"WearableGender",{enumerable:!0,get:function(){return nt.WearableGender}}),Object.defineProperty(a,"GenderFilterOption",{enumerable:!0,get:function(){return nt.GenderFilterOption}});var ot=world$1;Object.defineProperty(a,"World",{enumerable:!0,get:function(){return ot.World}}),Object.defineProperty(a,"getWorld",{enumerable:!0,get:function(){return ot.getWorld}}),Object.defineProperty(a,"isInsideWorldLimits",{enumerable:!0,get:function(){return ot.isInsideWorldLimits}}),_e(preview$1,a),_e(platform$1,a),_e(misc$1,a),_e(linkerAuthorization$1,a),_e(authChain$1,a),_e(contentMapping$1,a),_e(email,a)})(dist$7);const configuration=Object.freeze({storageKey:"decentraland-connect-storage-key",[providerType$1.ProviderType.INJECTED]:{},[providerType$1.ProviderType.FORTMATIC]:{apiKeys:{[chainIdExports.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:getRpcUrls(providerType$1.ProviderType.FORTMATIC)},[providerType$1.ProviderType.NETWORK]:{urls:getRpcUrls(providerType$1.ProviderType.NETWORK)},[providerType$1.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:getRpcUrls(providerType$1.ProviderType.WALLET_LINK)},[providerType$1.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:getRpcUrls(providerType$1.ProviderType.WALLET_CONNECT_V2),chains:{[chainIdExports.ChainId.ETHEREUM_MAINNET]:{chains:[chainIdExports.ChainId.ETHEREUM_MAINNET],optionalChains:[chainIdExports.ChainId.MATIC_MAINNET,chainIdExports.ChainId.ARBITRUM_MAINNET,chainIdExports.ChainId.OPTIMISM_MAINNET,chainIdExports.ChainId.AVALANCHE_MAINNET,chainIdExports.ChainId.BSC_MAINNET,chainIdExports.ChainId.FANTOM_MAINNET]},[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:{chains:[chainIdExports.ChainId.ETHEREUM_SEPOLIA],optionalChains:[chainIdExports.ChainId.MATIC_AMOY]}}},[providerType$1.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:getRpcUrls(providerType$1.ProviderType.MAGIC),chains:[chainIdExports.ChainId.ETHEREUM_MAINNET,chainIdExports.ChainId.ETHEREUM_SEPOLIA,chainIdExports.ChainId.MATIC_MAINNET,chainIdExports.ChainId.MATIC_AMOY,chainIdExports.ChainId.OPTIMISM_MAINNET,chainIdExports.ChainId.ARBITRUM_MAINNET,chainIdExports.ChainId.AVALANCHE_MAINNET,chainIdExports.ChainId.BSC_MAINNET,chainIdExports.ChainId.FANTOM_MAINNET]}});function getConfiguration(){return configuration}function getRpcUrls(a){const _={[chainIdExports.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[chainIdExports.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[chainIdExports.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[chainIdExports.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[chainIdExports.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[chainIdExports.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[chainIdExports.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[chainIdExports.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let $="";switch(a){case providerType$1.ProviderType.WALLET_LINK:$="walletlink";break;case providerType$1.ProviderType.FORTMATIC:$="fortmatic";break;case providerType$1.ProviderType.MAGIC:$="magic";break;case providerType$1.ProviderType.WALLET_CONNECT_V2:$="walletconnect-v2";break;case providerType$1.ProviderType.AUTH_SERVER:$="auth-server";break}if($)for(const j in _)_[j]+=`?project=${$}`;return _}class FortmaticConnector extends AbstractConnector{constructor(_){const $=getConfiguration()[dist$7.ProviderType.FORTMATIC],j=Object.keys($.apiKeys).map(_e=>Number(_e));if(!j.includes(_))throw new Error(`Invariant error: Unsupported chainId ${_}`);super({supportedChainIds:j}),this.apiKey=$.apiKeys[_],this.chainId=_,this.rpcUrl=$.urls[_]}async activate(){if(!this.fortmatic){const{default:$}=await __vitePreload(()=>import("./fortmatic-26a47a11.js").then(j=>j.f),[]);this.fortmatic=new $(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const _=await this.fortmatic.getProvider().enable().then($=>$[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:_}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(_=>_[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function warning$2(a,_){}function _extends$4(){return _extends$4=Object.assign||function(a){for(var _=1;_<arguments.length;_++){var $=arguments[_];for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&(a[j]=$[j])}return a},_extends$4.apply(this,arguments)}function _inheritsLoose$4(a,_){a.prototype=Object.create(_.prototype),a.prototype.constructor=a,a.__proto__=_}function _getPrototypeOf$x(a){return _getPrototypeOf$x=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$x(a)}function _setPrototypeOf$z(a,_){return _setPrototypeOf$z=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$z(a,_)}function isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct$1(a,_,$){return isNativeReflectConstruct()?_construct$1=Reflect.construct:_construct$1=function(_e,et,tt){var rt=[null];rt.push.apply(rt,et);var it=Function.bind.apply(_e,rt),ct=new it;return tt&&_setPrototypeOf$z(ct,tt.prototype),ct},_construct$1.apply(null,arguments)}function _isNativeFunction$1(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function _wrapNativeSuper$1(a){var _=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$1=function(j){if(j===null||!_isNativeFunction$1(j))return j;if(typeof j!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _<"u"){if(_.has(j))return _.get(j);_.set(j,_e)}function _e(){return _construct$1(j,arguments,_getPrototypeOf$x(this).constructor)}return _e.prototype=Object.create(j.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$z(_e,j)},_wrapNativeSuper$1(a)}function _assertThisInitialized$y(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function _catch(a,_){try{var $=a()}catch(j){return _(j)}return $&&$.then?$.then(void 0,_):$}function parseSendReturn(a){return a.hasOwnProperty("result")?a.result:a}var NoEthereumProviderError=function(a){_inheritsLoose$4(_,a);function _(){var $;return $=a.call(this)||this,$.name=$.constructor.name,$.message="No Ethereum provider was found on window.ethereum.",$}return _}(_wrapNativeSuper$1(Error)),UserRejectedRequestError=function(a){_inheritsLoose$4(_,a);function _(){var $;return $=a.call(this)||this,$.name=$.constructor.name,$.message="The user rejected the request.",$}return _}(_wrapNativeSuper$1(Error)),InjectedConnector$1=function(a){_inheritsLoose$4(_,a);function _(j){var _e;return _e=a.call(this,j)||this,_e.handleNetworkChanged=_e.handleNetworkChanged.bind(_assertThisInitialized$y(_e)),_e.handleChainChanged=_e.handleChainChanged.bind(_assertThisInitialized$y(_e)),_e.handleAccountsChanged=_e.handleAccountsChanged.bind(_assertThisInitialized$y(_e)),_e.handleClose=_e.handleClose.bind(_assertThisInitialized$y(_e)),_e}var $=_.prototype;return $.handleChainChanged=function(_e){this.emitUpdate({chainId:_e,provider:window.ethereum})},$.handleAccountsChanged=function(_e){_e.length===0?this.emitDeactivate():this.emitUpdate({account:_e[0]})},$.handleClose=function(_e,et){this.emitDeactivate()},$.handleNetworkChanged=function(_e){this.emitUpdate({chainId:_e,provider:window.ethereum})},$.activate=function(){try{var _e=function(dt){if(et)return dt;function mt(){return _extends$4({provider:window.ethereum},rt?{account:rt}:{})}var vt=function(){if(!rt)return Promise.resolve(window.ethereum.enable().then(function(wt){return wt&&parseSendReturn(wt)[0]})).then(function(wt){rt=wt})}();return vt&&vt.then?vt.then(mt):mt(vt)},et=!1,tt=this;if(!window.ethereum)throw new NoEthereumProviderError;window.ethereum.on&&(window.ethereum.on("chainChanged",tt.handleChainChanged),window.ethereum.on("accountsChanged",tt.handleAccountsChanged),window.ethereum.on("close",tt.handleClose),window.ethereum.on("networkChanged",tt.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var rt,it=_catch(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(ct){return parseSendReturn(ct)[0]})).then(function(ct){rt=ct})},function(ct){if(ct.code===4001)throw new UserRejectedRequestError});return Promise.resolve(it&&it.then?it.then(_e):_e(it))}catch(ct){return Promise.reject(ct)}},$.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(_e){return Promise.reject(_e)}},$.getChainId=function(){try{var _e=function(){function it(){if(!et)try{et=parseSendReturn(window.ethereum.send({method:"net_version"}))}catch{}return et||(window.ethereum.isDapper?et=parseSendReturn(window.ethereum.cachedResults.net_version):et=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),et}var ct=function(){if(!et){var dt=_catch(function(){return Promise.resolve(window.ethereum.send("net_version").then(parseSendReturn)).then(function(mt){et=mt})},function(){});if(dt&&dt.then)return dt.then(function(){})}}();return ct&&ct.then?ct.then(it):it(ct)};if(!window.ethereum)throw new NoEthereumProviderError;var et,tt=_catch(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(parseSendReturn)).then(function(rt){et=rt})},function(){});return Promise.resolve(tt&&tt.then?tt.then(_e):_e(tt))}catch(rt){return Promise.reject(rt)}},$.getAccount=function(){try{var _e=function(){function it(){return et||(et=parseSendReturn(window.ethereum.send({method:"eth_accounts"}))[0]),et}var ct=function(){if(!et){var dt=_catch(function(){return Promise.resolve(window.ethereum.enable().then(function(mt){return parseSendReturn(mt)[0]})).then(function(mt){et=mt})},function(){});if(dt&&dt.then)return dt.then(function(){})}}();return ct&&ct.then?ct.then(it):it(ct)};if(!window.ethereum)throw new NoEthereumProviderError;var et,tt=_catch(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(rt){return parseSendReturn(rt)[0]})).then(function(rt){et=rt})},function(){});return Promise.resolve(tt&&tt.then?tt.then(_e):_e(tt))}catch(rt){return Promise.reject(rt)}},$.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},$.isAuthorized=function(){try{return window.ethereum?Promise.resolve(_catch(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(_e){return parseSendReturn(_e).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(_e){return Promise.reject(_e)}},_}(AbstractConnector);class ErrorUnlockingWallet extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const UNLOCK_WALLET_TIMEOUT=60*1e3;class InjectedConnector extends InjectedConnector$1{constructor(_){super({supportedChainIds:[_]})}async activate(){const _=new Promise((j,_e)=>{setTimeout(()=>{_e(new ErrorUnlockingWallet)},UNLOCK_WALLET_TIMEOUT)}),$=super.activate();return Promise.race([$,_])}}var prefix="Invariant failed";function invariant(a,_){if(!a)throw new Error(prefix)}function _inheritsLoose$3(a,_){a.prototype=Object.create(_.prototype),a.prototype.constructor=a,_setPrototypeOf$y(a,_)}function _getPrototypeOf$w(a){return _getPrototypeOf$w=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$w(a)}function _setPrototypeOf$y(a,_){return _setPrototypeOf$y=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$y(a,_)}function _isNativeReflectConstruct$w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct(a,_,$){return _isNativeReflectConstruct$w()?_construct=Reflect.construct:_construct=function(_e,et,tt){var rt=[null];rt.push.apply(rt,et);var it=Function.bind.apply(_e,rt),ct=new it;return tt&&_setPrototypeOf$y(ct,tt.prototype),ct},_construct.apply(null,arguments)}function _isNativeFunction(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function _wrapNativeSuper(a){var _=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(j){if(j===null||!_isNativeFunction(j))return j;if(typeof j!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _<"u"){if(_.has(j))return _.get(j);_.set(j,_e)}function _e(){return _construct(j,arguments,_getPrototypeOf$w(this).constructor)}return _e.prototype=Object.create(j.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$y(_e,j)},_wrapNativeSuper(a)}var RequestError=function(a){_inheritsLoose$3(_,a);function _($,j,_e){var et;return et=a.call(this)||this,et.code=j,et.data=_e,et.name=et.constructor.name,et.message=$,et}return _}(_wrapNativeSuper(Error)),MiniRpcProvider=function(_,$){var j=this,_e=this;this.isMetaMask=!1,this.sendAsync=function(tt,rt){console.log("sendAsync",tt.method,tt.params),_e.request(tt.method,tt.params).then(function(it){return rt(null,{jsonrpc:"2.0",id:tt.id,result:it})}).catch(function(it){return rt(it,null)})},this.request=function(tt,rt){try{return typeof tt!="string"&&(rt=tt.params,tt=tt.method),Promise.resolve(fetch(j.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:tt,params:rt}),headers:{"Content-Type":"application/json"}})).then(function(it){if(!it.ok)throw new RequestError(it.status+": "+it.statusText,-32e3);return Promise.resolve(it.json()).then(function(ct){if("error"in ct){var dt,mt,vt;throw new RequestError(ct==null||(dt=ct.error)==null?void 0:dt.message,ct==null||(mt=ct.error)==null?void 0:mt.code,ct==null||(vt=ct.error)==null?void 0:vt.data)}else{if("result"in ct)return ct.result;throw new RequestError("Received unexpected JSON-RPC response to "+tt+" request.",-32e3,ct)}})})}catch(it){return Promise.reject(it)}},this.chainId=_,this.url=$;var et=new URL($);this.host=et.host,this.path=et.pathname},NetworkConnector$1=function(a){_inheritsLoose$3(_,a);function _(j){var _e,et=j.urls,tt=j.defaultChainId;return tt||Object.keys(et).length===1||invariant(!1),_e=a.call(this,{supportedChainIds:Object.keys(et).map(function(rt){return Number(rt)})})||this,_e.currentChainId=tt||Number(Object.keys(et)[0]),_e.providers=Object.keys(et).reduce(function(rt,it){return rt[Number(it)]=new MiniRpcProvider(Number(it),et[Number(it)]),rt},{}),_e}var $=_.prototype;return $.activate=function(){try{var _e=this;return Promise.resolve({provider:_e.providers[_e.currentChainId],chainId:_e.currentChainId,account:null})}catch(et){return Promise.reject(et)}},$.getProvider=function(){try{var _e=this;return Promise.resolve(_e.providers[_e.currentChainId])}catch(et){return Promise.reject(et)}},$.getChainId=function(){try{var _e=this;return Promise.resolve(_e.currentChainId)}catch(et){return Promise.reject(et)}},$.getAccount=function(){return Promise.resolve(null)},$.deactivate=function(){},$.changeChainId=function(_e){Object.keys(this.providers).includes(_e.toString())||invariant(!1),this.currentChainId=_e,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:_e})},_}(AbstractConnector);class NetworkConnector extends NetworkConnector$1{constructor(_){super({urls:getConfiguration()[providerType$1.ProviderType.NETWORK].urls,defaultChainId:_})}}function _extends$3(){return _extends$3=Object.assign||function(a){for(var _=1;_<arguments.length;_++){var $=arguments[_];for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&(a[j]=$[j])}return a},_extends$3.apply(this,arguments)}function _inheritsLoose$2(a,_){a.prototype=Object.create(_.prototype),a.prototype.constructor=a,_setPrototypeOf$x(a,_)}function _setPrototypeOf$x(a,_){return _setPrototypeOf$x=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$x(a,_)}function _assertThisInitialized$x(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}var CHAIN_ID=1,WalletLinkConnector$1=function(a){_inheritsLoose$2(_,a);function _(j){var _e,et=j.url,tt=j.appName,rt=j.appLogoUrl,it=j.darkMode,ct=j.supportedChainIds;return _e=a.call(this,{supportedChainIds:ct})||this,_e.url=et,_e.appName=tt,_e.appLogoUrl=rt,_e.darkMode=it||!1,_e.handleChainChanged=_e.handleChainChanged.bind(_assertThisInitialized$x(_e)),_e.handleAccountsChanged=_e.handleAccountsChanged.bind(_assertThisInitialized$x(_e)),_e}var $=_.prototype;return $.activate=function(){try{var _e=this,et=function(){return Promise.resolve(_e.provider.request({method:"eth_requestAccounts"})).then(function(it){var ct=it[0];return _e.provider.on("chainChanged",_e.handleChainChanged),_e.provider.on("accountsChanged",_e.handleAccountsChanged),{provider:_e.provider,account:ct}})},tt=function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)_e.provider=window.ethereum;else{var rt=function(){if(!_e.walletLink)return Promise.resolve(__vitePreload(()=>import("./index-9dc2a34d.js").then(it=>it.i),["assets/index-9dc2a34d.js","assets/tslib.es6-c2094241.js"]).then(function(it){var ct;return(ct=it==null?void 0:it.default)!=null?ct:it})).then(function(it){_e.walletLink=new it(_extends$3({appName:_e.appName,darkMode:_e.darkMode},_e.appLogoUrl?{appLogoUrl:_e.appLogoUrl}:{})),_e.provider=_e.walletLink.makeWeb3Provider(_e.url,CHAIN_ID)})}();if(rt&&rt.then)return rt.then(function(){})}}();return Promise.resolve(tt&&tt.then?tt.then(et):et(tt))}catch(rt){return Promise.reject(rt)}},$.getProvider=function(){try{var _e=this;return Promise.resolve(_e.provider)}catch(et){return Promise.reject(et)}},$.getChainId=function(){try{var _e=this;return Promise.resolve(_e.provider.chainId)}catch(et){return Promise.reject(et)}},$.getAccount=function(){try{var _e=this;return Promise.resolve(_e.provider.request({method:"eth_requestAccounts"})).then(function(et){return et[0]})}catch(et){return Promise.reject(et)}},$.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},$.close=function(){try{var _e=this;return _e.provider.close(),_e.emitDeactivate(),Promise.resolve()}catch(et){return Promise.reject(et)}},$.handleChainChanged=function(_e){this.emitUpdate({chainId:_e})},$.handleAccountsChanged=function(_e){this.emitUpdate({account:_e[0]})},_}(AbstractConnector);class WalletLinkConnector extends WalletLinkConnector$1{constructor(_){const $=getConfiguration()[dist$7.ProviderType.WALLET_LINK];super({url:$.urls[_],appName:$.appName,supportedChainIds:[_]})}}class WalletConnectV2Connector extends AbstractConnector{constructor(_){super({supportedChainIds:(()=>{const{chains:$,optionalChains:j}=WalletConnectV2Connector.configuration.chains[_];return[...$,...j]})()}),this.desiredChainId=_,this.activate=async()=>{const $=await __vitePreload(()=>import("./index.es-7af53fc6.js"),["assets/index.es-7af53fc6.js","assets/tslib.es6-c2094241.js"]).then(_e=>{const{chains:et,optionalChains:tt}=WalletConnectV2Connector.configuration.chains[this.desiredChainId];return _e.default.init({projectId:WalletConnectV2Connector.configuration.projectId,rpcMap:WalletConnectV2Connector.configuration.urls,chains:et,optionalChains:tt,showQrModal:!0,disableProviderPing:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"3000"}},methods:["eth_sendTransaction","personal_sign"],optionalMethods:["eth_accounts","eth_requestAccounts","eth_sign","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain"],events:["chainChanged","accountsChanged"],optionalEvents:["disconnect"]})}),j=await $.enable();return $.on("accountsChanged",this.handleAccountsChanged),$.on("chainChanged",this.handleChainChanged),$.on("disconnect",this.handleDisconnect),this.provider=$,{chainId:$.chainId,account:j[0],provider:$}},this.getProvider=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider},this.getChainId=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.chainId},this.getAccount=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.accounts[0]},this.getWalletName=()=>{var $,j;return(j=($=this.provider)==null?void 0:$.session)==null?void 0:j.peer.metadata.name},this.deactivate=()=>{},this.close=async()=>{if(this.provider)return this.provider.removeListener("accountsChanged",this.handleAccountsChanged).removeListener("chainChanged",this.handleChainChanged).removeListener("disconnect",this.handleDisconnect).disconnect()},this.handleAccountsChanged=$=>{this.emitUpdate({account:$[0]})},this.handleChainChanged=$=>{this.emitUpdate({chainId:$})},this.handleDisconnect=()=>{if(!this.provider)throw new Error("Provider is undefined");return this.emitDeactivate()}}}WalletConnectV2Connector.configuration=getConfiguration()[dist$7.ProviderType.WALLET_CONNECT_V2];WalletConnectV2Connector.clearStorage=a=>{a.removeRegExp(new RegExp("^wc@2:"))};class MagicConnector extends AbstractConnector{constructor(_){super({supportedChainIds:getConfiguration()[dist$7.ProviderType.MAGIC].chains}),this.activate=async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const j=await this.getProvider(),_e=await j.request({method:"eth_accounts"});return this.account=_e[0]??null,{provider:j,chainId:this.chainId,account:this.account}},this.getProvider=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const $=await this.magic.wallet.getProvider();return{...$,request:new Proxy($.request,{apply:async(j,_e,et)=>{var tt,rt,it;if(((tt=et[0])==null?void 0:tt.method)==="wallet_switchEthereumChain")try{const ct=parseInt((it=(rt=et[0])==null?void 0:rt.params[0])==null?void 0:it.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(ct)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(ct),this.emitUpdate({chainId:ct}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return j.bind($)(...et)}})}},this.getChainId=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId},this.getAccount=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account},this.deactivate=()=>{},this.buildMagicInstance=async $=>{const{Magic:j}=await __vitePreload(()=>import("./index-f0f060e7.js"),["assets/index-f0f060e7.js","assets/index-7fbad618.js"]),{OAuthExtension:_e}=await __vitePreload(()=>import("./index-7911507e.js"),["assets/index-7911507e.js","assets/index-7fbad618.js"]),et=getConfiguration()[dist$7.ProviderType.MAGIC];return new j(et.apiKey,{extensions:[new _e],network:{rpcUrl:et.urls[$],chainId:$}})},this.chainId=_,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}var dist$6={},Authenticator={};function getDefaultExportFromCjs(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var browser$d={exports:{}},process=browser$d.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(a){if(cachedSetTimeout===setTimeout)return setTimeout(a,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(a,0);try{return cachedSetTimeout(a,0)}catch{try{return cachedSetTimeout.call(null,a,0)}catch{return cachedSetTimeout.call(this,a,0)}}}function runClearTimeout(a){if(cachedClearTimeout===clearTimeout)return clearTimeout(a);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(a);try{return cachedClearTimeout(a)}catch{try{return cachedClearTimeout.call(null,a)}catch{return cachedClearTimeout.call(this,a)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var a=runTimeout(cleanUpNextTick);draining=!0;for(var _=queue.length;_;){for(currentQueue=queue,queue=[];++queueIndex<_;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,_=queue.length}currentQueue=null,draining=!1,runClearTimeout(a)}}process.nextTick=function(a){var _=new Array(arguments.length-1);if(arguments.length>1)for(var $=1;$<arguments.length;$++)_[$-1]=arguments[$];queue.push(new Item(a,_)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(a,_){this.fun=a,this.array=_}Item.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=!0;process.env={};process.argv=[];process.version="";process.versions={};function noop$4(){}process.on=noop$4;process.addListener=noop$4;process.once=noop$4;process.off=noop$4;process.removeListener=noop$4;process.removeAllListeners=noop$4;process.emit=noop$4;process.prependListener=noop$4;process.prependOnceListener=noop$4;process.listeners=function(a){return[]};process.binding=function(a){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(a){throw new Error("process.chdir is not supported")};process.umask=function(){return 0};var browserExports$1=browser$d.exports;const process$1=getDefaultExportFromCjs(browserExports$1);var ethConnect={exports:{}};(function(a,_){(function($,j){j(_)})(commonjsGlobal,function($){function j(qt){if(qt.jsonrpc="2.0",!qt.id||typeof qt.id!="number"||Math.floor(qt.id)!==qt.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(qt)}`);if(!qt.method||typeof qt.method!="string"||qt.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(qt)}`);if(!qt.params||typeof qt.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(qt)}`);return qt}var _e={};function et(){let qt,Ht;const rr=new Promise((Er,Rr)=>{qt=Br=>{Er(Br),rr.isPending=!1},Ht=Br=>{Rr(Br),rr.isPending=!1}}).catch(Er=>Promise.reject(Er));return rr.resolve=qt,rr.reject=Ht,"finally"in rr||(rr.finally=Er=>{rr.then(Er),rr.catch(Er)}),rr.isPending=!0,rr}Object.defineProperty(_e,"__esModule",{value:!0});var tt=_e.future=et;_e.default=et;var rt={exports:{}};/**
|
|
111
111
|
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
112
112
|
*
|
|
113
113
|
* @version 0.8.0
|
|
@@ -141,7 +141,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
141
141
|
`)));return{entity:ct,entityFile:rt}}DeploymentBuilder.buildEntityAndFile=buildEntityAndFile;async function buildEntity({type:a,pointers:_,files:$,metadata:j,timestamp:_e}){const et=Array.from($||[]).map(([ct,dt])=>({key:ct,content:dt})),tt=await Promise.all(et.map(async({key:ct,content:dt})=>({key:ct,content:dt,hash:await(0,hashing_1.hashV1)(dt)}))),rt=new Map(tt.map(({hash:ct,key:dt})=>[dt,ct])),it=new Map(tt.map(({hash:ct,content:dt})=>[ct,dt]));return buildEntityInternal(a,_,{hashesByKey:rt,filesByHash:it,metadata:j,timestamp:_e})}DeploymentBuilder.buildEntity=buildEntity;async function buildEntityWithoutNewFiles(a,{contentUrl:_,type:$,pointers:j,hashesByKey:_e,metadata:et,timestamp:tt}){const rt=_e??et?getHashesByKey(et):void 0;if(rt&&isObsoleteProfile($,rt)){const it=await downloadAllFiles(a,_,rt),ct=await updateMetadata(it,et);return buildEntity({type:$,pointers:j,files:it,metadata:ct,timestamp:tt})}return buildEntityInternal($,j,{hashesByKey:_e,metadata:et,timestamp:tt})}DeploymentBuilder.buildEntityWithoutNewFiles=buildEntityWithoutNewFiles;async function buildEntityInternal(a,_,$){if(_.length===0)throw new Error("All entities must have at least one pointer.");const j=$!=null&&$.hashesByKey?$==null?void 0:$.hashesByKey:new Map,_e=Array.from(j.entries()).map(([ct,dt])=>({file:ct,hash:dt})),et=$!=null&&$.timestamp?$==null?void 0:$.timestamp:Date.now(),{entity:tt,entityFile:rt}=await buildEntityAndFile({type:a,pointers:_,timestamp:et,content:_e,metadata:$==null?void 0:$.metadata}),it=$!=null&&$.filesByHash?$.filesByHash:new Map;return it.set(tt.id,rt),{files:it,entityId:tt.id}}function isObsoleteProfile(a,_){return a===schemas_1.EntityType.PROFILE&&Array.from(_).some(([,$])=>$.toLowerCase().startsWith("qm"))}async function fetchArrayBuffer(a,_){const j=await(await a.fetch(_)).arrayBuffer();return new Uint8Array(j)}async function downloadAllFiles(a,_,$){const j=$.get("body.png"),_e=$.get("face256.png"),et=new URL(`${_}/contents/${j}`).toString(),tt=new URL(`${_}/contents/${_e}`).toString(),[rt,it]=await Promise.all([fetchArrayBuffer(a,et),fetchArrayBuffer(a,tt)]);return new Map([["body.png",rt],["face256.png",it]])}async function updateMetadata(a,_){return _&&(_.avatars=await Promise.all(_.avatars.map(async $=>{const j={face256:"",body:""},_e=a.get("face256.png");_e&&(j.face256=await(0,hashing_1.hashV1)(_e));const et=a.get("body.png");return et&&(j.body=await(0,hashing_1.hashV1)(et)),$.avatar.snapshots=j,$})),_)}function getHashesByKey(a){const _=a.avatars[0];return new Map([["body.png",_.avatar.snapshots.body],["face256.png",_.avatar.snapshots.face256]])}Object.defineProperty(utils$1,"__esModule",{value:!0});utils$1.DeploymentBuilder=void 0;const DeploymentBuilder_1=DeploymentBuilder;utils$1.DeploymentBuilder={buildEntity:DeploymentBuilder_1.buildEntity,buildEntityAndFile:DeploymentBuilder_1.buildEntityAndFile};(function(a){var _=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(j,_e,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(_e,et);(!rt||("get"in rt?!_e.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return _e[et]}}),Object.defineProperty(j,tt,rt)}:function(j,_e,et,tt){tt===void 0&&(tt=et),j[tt]=_e[et]}),$=commonjsGlobal&&commonjsGlobal.__exportStar||function(j,_e){for(var et in j)et!=="default"&&!Object.prototype.hasOwnProperty.call(_e,et)&&_(_e,j,et)};Object.defineProperty(a,"__esModule",{value:!0}),$(CatalystClient,a),$(ContentClient,a),$(LambdasClient,a),$(utils$1,a)})(dist$1);async function fetchProfile(a){const _=config$1.get("PEER_URL"),$=dist$1.createLambdasClient({url:_+"/lambdas",fetcher:dist$2.createFetchComponent()});try{return await $.getAvatarDetails(a)}catch{return null}}const getCurrentConnectionData=async()=>{try{const a=await connection$1.tryPreviousConnection();if(a.account&&a.provider){const _=dist$4.localStorageGetIdentity(a.account);if(_)return{...a,identity:_}}return null}catch{return null}};function isErrorWithMessage(a){return a!=null&&typeof a=="object"&&"message"in a}function isErrorWithName(a){return a!=null&&typeof a=="object"&&"name"in a}function isRpcError(a){return a!=null&&typeof a=="object"&&"error"in a&&a.error!==void 0&&a.error!==null&&typeof a.error=="object"&&"message"in a.error&&"code"in a.error}var WearablePreview$2={},toStr$6=Object.prototype.toString,isArguments$4=function a(_){var $=toStr$6.call(_),j=$==="[object Arguments]";return j||(j=$!=="[object Array]"&&_!==null&&typeof _=="object"&&typeof _.length=="number"&&_.length>=0&&toStr$6.call(_.callee)==="[object Function]"),j},implementation$9,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation$9;hasRequiredImplementation=1;var a;if(!Object.keys){var _=Object.prototype.hasOwnProperty,$=Object.prototype.toString,j=isArguments$4,_e=Object.prototype.propertyIsEnumerable,et=!_e.call({toString:null},"toString"),tt=_e.call(function(){},"prototype"),rt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],it=function(vt){var wt=vt.constructor;return wt&&wt.prototype===vt},ct={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},dt=function(){if(typeof window>"u")return!1;for(var vt in window)try{if(!ct["$"+vt]&&_.call(window,vt)&&window[vt]!==null&&typeof window[vt]=="object")try{it(window[vt])}catch{return!0}}catch{return!0}return!1}(),mt=function(vt){if(typeof window>"u"||!dt)return it(vt);try{return it(vt)}catch{return!1}};a=function(wt){var xt=wt!==null&&typeof wt=="object",bt=$.call(wt)==="[object Function]",Et=j(wt),$t=xt&&$.call(wt)==="[object String]",At=[];if(!xt&&!bt&&!Et)throw new TypeError("Object.keys called on a non-object");var Rt=tt&&bt;if($t&&wt.length>0&&!_.call(wt,0))for(var Pt=0;Pt<wt.length;++Pt)At.push(String(Pt));if(Et&&wt.length>0)for(var Ct=0;Ct<wt.length;++Ct)At.push(String(Ct));else for(var Ot in wt)!(Rt&&Ot==="prototype")&&_.call(wt,Ot)&&At.push(String(Ot));if(et)for(var kt=mt(wt),Dt=0;Dt<rt.length;++Dt)!(kt&&rt[Dt]==="constructor")&&_.call(wt,rt[Dt])&&At.push(rt[Dt]);return At}}return implementation$9=a,implementation$9}var slice=Array.prototype.slice,isArgs=isArguments$4,origKeys=Object.keys,keysShim=origKeys?function a(_){return origKeys(_)}:requireImplementation(),originalKeys=Object.keys;keysShim.shim=function a(){if(Object.keys){var _=function(){var $=Object.keys(arguments);return $&&$.length===arguments.length}(1,2);_||(Object.keys=function(j){return isArgs(j)?originalKeys(slice.call(j)):originalKeys(j)})}else Object.keys=keysShim;return Object.keys||keysShim};var objectKeys$2=keysShim,keys$2=objectKeys$2,hasSymbols$2=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",toStr$5=Object.prototype.toString,concat=Array.prototype.concat,defineDataProperty=defineDataProperty$1,isFunction$1=function(a){return typeof a=="function"&&toStr$5.call(a)==="[object Function]"},supportsDescriptors$2=hasPropertyDescriptors_1(),defineProperty$3=function(a,_,$,j){if(_ in a){if(j===!0){if(a[_]===$)return}else if(!isFunction$1(j)||!j())return}supportsDescriptors$2?defineDataProperty(a,_,$,!0):defineDataProperty(a,_,$)},defineProperties$1=function(a,_){var $=arguments.length>2?arguments[2]:{},j=keys$2(_);hasSymbols$2&&(j=concat.call(j,Object.getOwnPropertySymbols(_)));for(var _e=0;_e<j.length;_e+=1)defineProperty$3(a,j[_e],_[j[_e]],$[j[_e]])};defineProperties$1.supportsDescriptors=!!supportsDescriptors$2;var defineProperties_1=defineProperties$1,objectKeys$1=objectKeys$2,hasSymbols$1=shams$1(),callBound$9=callBound$c,toObject=Object,$push=callBound$9("Array.prototype.push"),$propIsEnumerable=callBound$9("Object.prototype.propertyIsEnumerable"),originalGetSymbols=hasSymbols$1?Object.getOwnPropertySymbols:null,implementation$8=function a(_,$){if(_==null)throw new TypeError("target must be an object");var j=toObject(_);if(arguments.length===1)return j;for(var _e=1;_e<arguments.length;++_e){var et=toObject(arguments[_e]),tt=objectKeys$1(et),rt=hasSymbols$1&&(Object.getOwnPropertySymbols||originalGetSymbols);if(rt)for(var it=rt(et),ct=0;ct<it.length;++ct){var dt=it[ct];$propIsEnumerable(et,dt)&&$push(tt,dt)}for(var mt=0;mt<tt.length;++mt){var vt=tt[mt];if($propIsEnumerable(et,vt)){var wt=et[vt];j[vt]=wt}}}return j},implementation$7=implementation$8,lacksProperEnumerationOrder=function(){if(!Object.assign)return!1;for(var a="abcdefghijklmnopqrst",_=a.split(""),$={},j=0;j<_.length;++j)$[_[j]]=_[j];var _e=Object.assign({},$),et="";for(var tt in _e)et+=tt;return a!==et},assignHasPendingExceptions=function(){if(!Object.assign||!Object.preventExtensions)return!1;var a=Object.preventExtensions({1:2});try{Object.assign(a,"xy")}catch{return a[1]==="y"}return!1},polyfill$4=function a(){return!Object.assign||lacksProperEnumerationOrder()||assignHasPendingExceptions()?implementation$7:Object.assign},define$4=defineProperties_1,getPolyfill$5=polyfill$4,shim$5=function a(){var _=getPolyfill$5();return define$4(Object,{assign:_},{assign:function(){return Object.assign!==_}}),_},defineProperties=defineProperties_1,callBind$3=callBindExports,implementation$6=implementation$8,getPolyfill$4=polyfill$4,shim$4=shim$5,polyfill$3=callBind$3.apply(getPolyfill$4()),bound=function a(_,$){return polyfill$3(Object,arguments)};defineProperties(bound,{getPolyfill:getPolyfill$4,implementation:implementation$6,shim:shim$4});var object_assign=bound,functionsHaveNames=function a(){return typeof(function(){}).name=="string"},gOPD$2=Object.getOwnPropertyDescriptor;if(gOPD$2)try{gOPD$2([],"length")}catch{gOPD$2=null}functionsHaveNames.functionsHaveConfigurableNames=function a(){if(!functionsHaveNames()||!gOPD$2)return!1;var _=gOPD$2(function(){},"name");return!!_&&!!_.configurable};var $bind=Function.prototype.bind;functionsHaveNames.boundFunctionsHaveNames=function a(){return functionsHaveNames()&&typeof $bind=="function"&&(function(){}).bind().name!==""};var functionsHaveNames_1=functionsHaveNames,define$3=defineDataProperty$1,hasDescriptors=hasPropertyDescriptors_1(),functionsHaveConfigurableNames=functionsHaveNames_1.functionsHaveConfigurableNames(),$TypeError$3=TypeError,setFunctionName$1=function a(_,$){if(typeof _!="function")throw new $TypeError$3("`fn` is not a function");var j=arguments.length>2&&!!arguments[2];return(!j||functionsHaveConfigurableNames)&&(hasDescriptors?define$3(_,"name",$,!0,!0):define$3(_,"name",$)),_},setFunctionName=setFunctionName$1,$Object=Object,$TypeError$2=TypeError,implementation$5=setFunctionName(function a(){if(this!=null&&this!==$Object(this))throw new $TypeError$2("RegExp.prototype.flags getter called on non-object");var _="";return this.hasIndices&&(_+="d"),this.global&&(_+="g"),this.ignoreCase&&(_+="i"),this.multiline&&(_+="m"),this.dotAll&&(_+="s"),this.unicode&&(_+="u"),this.unicodeSets&&(_+="v"),this.sticky&&(_+="y"),_},"get flags",!0),implementation$4=implementation$5,supportsDescriptors$1=defineProperties_1.supportsDescriptors,$gOPD=Object.getOwnPropertyDescriptor,polyfill$2=function a(){if(supportsDescriptors$1&&/a/mig.flags==="gim"){var _=$gOPD(RegExp.prototype,"flags");if(_&&typeof _.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var $="",j={};if(Object.defineProperty(j,"hasIndices",{get:function(){$+="d"}}),Object.defineProperty(j,"sticky",{get:function(){$+="y"}}),$==="dy")return _.get}}return implementation$4},supportsDescriptors=defineProperties_1.supportsDescriptors,getPolyfill$3=polyfill$2,gOPD$1=Object.getOwnPropertyDescriptor,defineProperty$2=Object.defineProperty,TypeErr=TypeError,getProto=Object.getPrototypeOf,regex=/a/,shim$3=function a(){if(!supportsDescriptors||!getProto)throw new TypeErr("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var _=getPolyfill$3(),$=getProto(regex),j=gOPD$1($,"flags");return(!j||j.get!==_)&&defineProperty$2($,"flags",{configurable:!0,enumerable:!1,get:_}),_},define$2=defineProperties_1,callBind$2=callBindExports,implementation$3=implementation$5,getPolyfill$2=polyfill$2,shim$2=shim$3,flagsBound=callBind$2(getPolyfill$2());define$2(flagsBound,{getPolyfill:getPolyfill$2,implementation:implementation$3,shim:shim$2});var regexp_prototype_flags=flagsBound,esGetIterator={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap$1=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap$1?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap$1&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap$1&&Map.prototype.forEach,hasSet$1=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet$1?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet$1&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet$1&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString$1=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf$1=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO$1=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(a){return a.__proto__}:null);function addNumericSeparator(a,_){if(a===1/0||a===-1/0||a!==a||a&&a>-1e3&&a<1e3||$test.call(/e/,_))return _;var $=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof a=="number"){var j=a<0?-$floor(-a):$floor(a);if(j!==a){var _e=String(j),et=$slice.call(_,_e.length+1);return $replace.call(_e,$,"$&_")+"."+$replace.call($replace.call(et,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(_,$,"$&_")}var utilInspect=require$$0$1,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$3(inspectCustom)?inspectCustom:null,objectInspect=function a(_,$,j,_e){var et=$||{};if(has$1(et,"quoteStyle")&&et.quoteStyle!=="single"&&et.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$1(et,"maxStringLength")&&(typeof et.maxStringLength=="number"?et.maxStringLength<0&&et.maxStringLength!==1/0:et.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var tt=has$1(et,"customInspect")?et.customInspect:!0;if(typeof tt!="boolean"&&tt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$1(et,"indent")&&et.indent!==null&&et.indent!==" "&&!(parseInt(et.indent,10)===et.indent&&et.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$1(et,"numericSeparator")&&typeof et.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var rt=et.numericSeparator;if(typeof _>"u")return"undefined";if(_===null)return"null";if(typeof _=="boolean")return _?"true":"false";if(typeof _=="string")return inspectString(_,et);if(typeof _=="number"){if(_===0)return 1/0/_>0?"0":"-0";var it=String(_);return rt?addNumericSeparator(_,it):it}if(typeof _=="bigint"){var ct=String(_)+"n";return rt?addNumericSeparator(_,ct):ct}var dt=typeof et.depth>"u"?5:et.depth;if(typeof j>"u"&&(j=0),j>=dt&&dt>0&&typeof _=="object")return isArray$4(_)?"[Array]":"[Object]";var mt=getIndent(et,j);if(typeof _e>"u")_e=[];else if(indexOf(_e,_)>=0)return"[Circular]";function vt(ot,st,lt){if(st&&(_e=$arrSlice.call(_e),_e.push(st)),lt){var pt={depth:et.depth};return has$1(et,"quoteStyle")&&(pt.quoteStyle=et.quoteStyle),a(ot,pt,j+1,_e)}return a(ot,et,j+1,_e)}if(typeof _=="function"&&!isRegExp(_)){var wt=nameOf(_),xt=arrObjKeys(_,vt);return"[Function"+(wt?": "+wt:" (anonymous)")+"]"+(xt.length>0?" { "+$join.call(xt,", ")+" }":"")}if(isSymbol$3(_)){var bt=hasShammedSymbols?$replace.call(String(_),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(_);return typeof _=="object"&&!hasShammedSymbols?markBoxed(bt):bt}if(isElement$1(_)){for(var Et="<"+$toLowerCase.call(String(_.nodeName)),$t=_.attributes||[],At=0;At<$t.length;At++)Et+=" "+$t[At].name+"="+wrapQuotes(quote($t[At].value),"double",et);return Et+=">",_.childNodes&&_.childNodes.length&&(Et+="..."),Et+="</"+$toLowerCase.call(String(_.nodeName))+">",Et}if(isArray$4(_)){if(_.length===0)return"[]";var Rt=arrObjKeys(_,vt);return mt&&!singleLineValues(Rt)?"["+indentedJoin(Rt,mt)+"]":"[ "+$join.call(Rt,", ")+" ]"}if(isError(_)){var Pt=arrObjKeys(_,vt);return!("cause"in Error.prototype)&&"cause"in _&&!isEnumerable.call(_,"cause")?"{ ["+String(_)+"] "+$join.call($concat.call("[cause]: "+vt(_.cause),Pt),", ")+" }":Pt.length===0?"["+String(_)+"]":"{ ["+String(_)+"] "+$join.call(Pt,", ")+" }"}if(typeof _=="object"&&tt){if(inspectSymbol&&typeof _[inspectSymbol]=="function"&&utilInspect)return utilInspect(_,{depth:dt-j});if(tt!=="symbol"&&typeof _.inspect=="function")return _.inspect()}if(isMap$3(_)){var Ct=[];return mapForEach&&mapForEach.call(_,function(ot,st){Ct.push(vt(st,_,!0)+" => "+vt(ot,_))}),collectionOf("Map",mapSize.call(_),Ct,mt)}if(isSet$3(_)){var Ot=[];return setForEach&&setForEach.call(_,function(ot){Ot.push(vt(ot,_))}),collectionOf("Set",setSize.call(_),Ot,mt)}if(isWeakMap$1(_))return weakCollectionOf("WeakMap");if(isWeakSet$1(_))return weakCollectionOf("WeakSet");if(isWeakRef(_))return weakCollectionOf("WeakRef");if(isNumber$2(_))return markBoxed(vt(Number(_)));if(isBigInt$1(_))return markBoxed(vt(bigIntValueOf$1.call(_)));if(isBoolean$2(_))return markBoxed(booleanValueOf.call(_));if(isString$4(_))return markBoxed(vt(String(_)));if(typeof window<"u"&&_===window)return"{ [object Window] }";if(_===commonjsGlobal)return"{ [object globalThis] }";if(!isDate$2(_)&&!isRegExp(_)){var kt=arrObjKeys(_,vt),Dt=gPO$1?gPO$1(_)===Object.prototype:_ instanceof Object||_.constructor===Object,Nt=_ instanceof Object?"":"null prototype",zt=!Dt&&toStringTag&&Object(_)===_&&toStringTag in _?$slice.call(toStr$4(_),8,-1):Nt?"Object":"",gt=Dt||typeof _.constructor!="function"?"":_.constructor.name?_.constructor.name+" ":"",nt=gt+(zt||Nt?"["+$join.call($concat.call([],zt||[],Nt||[]),": ")+"] ":"");return kt.length===0?nt+"{}":mt?nt+"{"+indentedJoin(kt,mt)+"}":nt+"{ "+$join.call(kt,", ")+" }"}return String(_)};function wrapQuotes(a,_,$){var j=($.quoteStyle||_)==="double"?'"':"'";return j+a+j}function quote(a){return $replace.call(String(a),/"/g,""")}function isArray$4(a){return toStr$4(a)==="[object Array]"&&(!toStringTag||!(typeof a=="object"&&toStringTag in a))}function isDate$2(a){return toStr$4(a)==="[object Date]"&&(!toStringTag||!(typeof a=="object"&&toStringTag in a))}function isRegExp(a){return toStr$4(a)==="[object RegExp]"&&(!toStringTag||!(typeof a=="object"&&toStringTag in a))}function isError(a){return toStr$4(a)==="[object Error]"&&(!toStringTag||!(typeof a=="object"&&toStringTag in a))}function isString$4(a){return toStr$4(a)==="[object String]"&&(!toStringTag||!(typeof a=="object"&&toStringTag in a))}function isNumber$2(a){return toStr$4(a)==="[object Number]"&&(!toStringTag||!(typeof a=="object"&&toStringTag in a))}function isBoolean$2(a){return toStr$4(a)==="[object Boolean]"&&(!toStringTag||!(typeof a=="object"&&toStringTag in a))}function isSymbol$3(a){if(hasShammedSymbols)return a&&typeof a=="object"&&a instanceof Symbol;if(typeof a=="symbol")return!0;if(!a||typeof a!="object"||!symToString)return!1;try{return symToString.call(a),!0}catch{}return!1}function isBigInt$1(a){if(!a||typeof a!="object"||!bigIntValueOf$1)return!1;try{return bigIntValueOf$1.call(a),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(a){return a in this};function has$1(a,_){return hasOwn$1.call(a,_)}function toStr$4(a){return objectToString$1.call(a)}function nameOf(a){if(a.name)return a.name;var _=$match.call(functionToString.call(a),/^function\s*([\w$]+)/);return _?_[1]:null}function indexOf(a,_){if(a.indexOf)return a.indexOf(_);for(var $=0,j=a.length;$<j;$++)if(a[$]===_)return $;return-1}function isMap$3(a){if(!mapSize||!a||typeof a!="object")return!1;try{mapSize.call(a);try{setSize.call(a)}catch{return!0}return a instanceof Map}catch{}return!1}function isWeakMap$1(a){if(!weakMapHas||!a||typeof a!="object")return!1;try{weakMapHas.call(a,weakMapHas);try{weakSetHas.call(a,weakSetHas)}catch{return!0}return a instanceof WeakMap}catch{}return!1}function isWeakRef(a){if(!weakRefDeref||!a||typeof a!="object")return!1;try{return weakRefDeref.call(a),!0}catch{}return!1}function isSet$3(a){if(!setSize||!a||typeof a!="object")return!1;try{setSize.call(a);try{mapSize.call(a)}catch{return!0}return a instanceof Set}catch{}return!1}function isWeakSet$1(a){if(!weakSetHas||!a||typeof a!="object")return!1;try{weakSetHas.call(a,weakSetHas);try{weakMapHas.call(a,weakMapHas)}catch{return!0}return a instanceof WeakSet}catch{}return!1}function isElement$1(a){return!a||typeof a!="object"?!1:typeof HTMLElement<"u"&&a instanceof HTMLElement?!0:typeof a.nodeName=="string"&&typeof a.getAttribute=="function"}function inspectString(a,_){if(a.length>_.maxStringLength){var $=a.length-_.maxStringLength,j="... "+$+" more character"+($>1?"s":"");return inspectString($slice.call(a,0,_.maxStringLength),_)+j}var _e=$replace.call($replace.call(a,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(_e,"single",_)}function lowbyte(a){var _=a.charCodeAt(0),$={8:"b",9:"t",10:"n",12:"f",13:"r"}[_];return $?"\\"+$:"\\x"+(_<16?"0":"")+$toUpperCase.call(_.toString(16))}function markBoxed(a){return"Object("+a+")"}function weakCollectionOf(a){return a+" { ? }"}function collectionOf(a,_,$,j){var _e=j?indentedJoin($,j):$join.call($,", ");return a+" ("+_+") {"+_e+"}"}function singleLineValues(a){for(var _=0;_<a.length;_++)if(indexOf(a[_],`
|
|
142
142
|
`)>=0)return!1;return!0}function getIndent(a,_){var $;if(a.indent===" ")$=" ";else if(typeof a.indent=="number"&&a.indent>0)$=$join.call(Array(a.indent+1)," ");else return null;return{base:$,prev:$join.call(Array(_+1),$)}}function indentedJoin(a,_){if(a.length===0)return"";var $=`
|
|
143
143
|
`+_.prev+_.base;return $+$join.call(a,","+$)+`
|
|
144
|
-
`+_.prev}function arrObjKeys(a,_){var $=isArray$4(a),j=[];if($){j.length=a.length;for(var _e=0;_e<a.length;_e++)j[_e]=has$1(a,_e)?_(a[_e],a):""}var et=typeof gOPS=="function"?gOPS(a):[],tt;if(hasShammedSymbols){tt={};for(var rt=0;rt<et.length;rt++)tt["$"+et[rt]]=et[rt]}for(var it in a)has$1(a,it)&&($&&String(Number(it))===it&&it<a.length||hasShammedSymbols&&tt["$"+it]instanceof Symbol||($test.call(/[^\w$]/,it)?j.push(_(it,a)+": "+_(a[it],a)):j.push(it+": "+_(a[it],a))));if(typeof gOPS=="function")for(var ct=0;ct<et.length;ct++)isEnumerable.call(a,et[ct])&&j.push("["+_(et[ct])+"]: "+_(a[et[ct]],a));return j}var GetIntrinsic$5=getIntrinsic,callBound$8=callBound$c,inspect=objectInspect,$TypeError$1=GetIntrinsic$5("%TypeError%"),$WeakMap$1=GetIntrinsic$5("%WeakMap%",!0),$Map$3=GetIntrinsic$5("%Map%",!0),$weakMapGet=callBound$8("WeakMap.prototype.get",!0),$weakMapSet=callBound$8("WeakMap.prototype.set",!0),$weakMapHas=callBound$8("WeakMap.prototype.has",!0),$mapGet$1=callBound$8("Map.prototype.get",!0),$mapSet=callBound$8("Map.prototype.set",!0),$mapHas$5=callBound$8("Map.prototype.has",!0),listGetNode=function(a,_){for(var $=a,j;(j=$.next)!==null;$=j)if(j.key===_)return $.next=j.next,j.next=a.next,a.next=j,j},listGet=function(a,_){var $=listGetNode(a,_);return $&&$.value},listSet=function(a,_,$){var j=listGetNode(a,_);j?j.value=$:a.next={key:_,next:a.next,value:$}},listHas=function(a,_){return!!listGetNode(a,_)},sideChannel=function a(){var _,$,j,_e={assert:function(et){if(!_e.has(et))throw new $TypeError$1("Side channel does not contain "+inspect(et))},get:function(et){if($WeakMap$1&&et&&(typeof et=="object"||typeof et=="function")){if(_)return $weakMapGet(_,et)}else if($Map$3){if($)return $mapGet$1($,et)}else if(j)return listGet(j,et)},has:function(et){if($WeakMap$1&&et&&(typeof et=="object"||typeof et=="function")){if(_)return $weakMapHas(_,et)}else if($Map$3){if($)return $mapHas$5($,et)}else if(j)return listHas(j,et);return!1},set:function(et,tt){$WeakMap$1&&et&&(typeof et=="object"||typeof et=="function")?(_||(_=new $WeakMap$1),$weakMapSet(_,et,tt)):$Map$3?($||($=new $Map$3),$mapSet($,et,tt)):(j||(j={key:{},next:null}),listSet(j,et,tt))}};return _e},GetIntrinsic$4=getIntrinsic,hasOwn=hasown,channel=sideChannel(),$TypeError=GetIntrinsic$4("%TypeError%"),SLOT$1={assert:function(a,_){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError("`O` is not an object");if(typeof _!="string")throw new $TypeError("`slot` must be a string");if(channel.assert(a),!SLOT$1.has(a,_))throw new $TypeError("`"+_+"` is not present on `O`")},get:function(a,_){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError("`O` is not an object");if(typeof _!="string")throw new $TypeError("`slot` must be a string");var $=channel.get(a);return $&&$["$"+_]},has:function(a,_){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError("`O` is not an object");if(typeof _!="string")throw new $TypeError("`slot` must be a string");var $=channel.get(a);return!!$&&hasOwn($,"$"+_)},set:function(a,_,$){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError("`O` is not an object");if(typeof _!="string")throw new $TypeError("`slot` must be a string");var j=channel.get(a);j||(j={},channel.set(a,j)),j["$"+_]=$}};Object.freeze&&Object.freeze(SLOT$1);var internalSlot=SLOT$1,SLOT=internalSlot,$SyntaxError=SyntaxError,$StopIteration=typeof StopIteration=="object"?StopIteration:null,stopIterationIterator=function a(_){if(!$StopIteration)throw new $SyntaxError("this environment lacks StopIteration");SLOT.set(_,"[[Done]]",!1);var $={next:function(){var _e=SLOT.get(this,"[[Iterator]]"),et=SLOT.get(_e,"[[Done]]");try{return{done:et,value:et?void 0:_e.next()}}catch(tt){if(SLOT.set(_e,"[[Done]]",!0),tt!==$StopIteration)throw tt;return{done:!0,value:void 0}}}};return SLOT.set($,"[[Iterator]]",_),$},toString$1={}.toString,isarray=Array.isArray||function(a){return toString$1.call(a)=="[object Array]"},strValue=String.prototype.valueOf,tryStringObject=function a(_){try{return strValue.call(_),!0}catch{return!1}},toStr$3=Object.prototype.toString,strClass="[object String]",hasToStringTag$4=shams(),isString$3=function a(_){return typeof _=="string"?!0:typeof _!="object"?!1:hasToStringTag$4?tryStringObject(_):toStr$3.call(_)===strClass},$Map$2=typeof Map=="function"&&Map.prototype?Map:null,$Set$3=typeof Set=="function"&&Set.prototype?Set:null,exported$2;$Map$2||(exported$2=function(_){return!1});var $mapHas$4=$Map$2?Map.prototype.has:null,$setHas$4=$Set$3?Set.prototype.has:null;!exported$2&&!$mapHas$4&&(exported$2=function(_){return!1});var isMap$2=exported$2||function a(_){if(!_||typeof _!="object")return!1;try{if($mapHas$4.call(_),$setHas$4)try{$setHas$4.call(_)}catch{return!0}return _ instanceof $Map$2}catch{}return!1},$Map$1=typeof Map=="function"&&Map.prototype?Map:null,$Set$2=typeof Set=="function"&&Set.prototype?Set:null,exported$1;$Set$2||(exported$1=function(_){return!1});var $mapHas$3=$Map$1?Map.prototype.has:null,$setHas$3=$Set$2?Set.prototype.has:null;!exported$1&&!$setHas$3&&(exported$1=function(_){return!1});var isSet$2=exported$1||function a(_){if(!_||typeof _!="object")return!1;try{if($setHas$3.call(_),$mapHas$3)try{$mapHas$3.call(_)}catch{return!0}return _ instanceof $Set$2}catch{}return!1},isArguments$3=isArguments$5,getStopIterationIterator=stopIterationIterator;if(hasSymbols$4()||shams$1()){var $iterator=Symbol.iterator;esGetIterator.exports=function(_){if(_!=null&&typeof _[$iterator]<"u")return _[$iterator]();if(isArguments$3(_))return Array.prototype[$iterator].call(_)}}else{var isArray$3=isarray,isString$2=isString$3,GetIntrinsic$3=getIntrinsic,$Map=GetIntrinsic$3("%Map%",!0),$Set$1=GetIntrinsic$3("%Set%",!0),callBound$7=callBound$c,$arrayPush=callBound$7("Array.prototype.push"),$charCodeAt=callBound$7("String.prototype.charCodeAt"),$stringSlice=callBound$7("String.prototype.slice"),advanceStringIndex=function(_,$){var j=_.length;if($+1>=j)return $+1;var _e=$charCodeAt(_,$);if(_e<55296||_e>56319)return $+1;var et=$charCodeAt(_,$+1);return et<56320||et>57343?$+1:$+2},getArrayIterator=function(_){var $=0;return{next:function(){var _e=$>=_.length,et;return _e||(et=_[$],$+=1),{done:_e,value:et}}}},getNonCollectionIterator=function(_,$){if(isArray$3(_)||isArguments$3(_))return getArrayIterator(_);if(isString$2(_)){var j=0;return{next:function(){var et=advanceStringIndex(_,j),tt=$stringSlice(_,j,et);return j=et,{done:et>_.length,value:tt}}}}if($&&typeof _["_es6-shim iterator_"]<"u")return _["_es6-shim iterator_"]()};if(!$Map&&!$Set$1)esGetIterator.exports=function(_){if(_!=null)return getNonCollectionIterator(_,!0)};else{var isMap$1=isMap$2,isSet$1=isSet$2,$mapForEach=callBound$7("Map.prototype.forEach",!0),$setForEach=callBound$7("Set.prototype.forEach",!0);if(typeof process$1>"u"||!process$1.versions||!process$1.versions.node)var $mapIterator=callBound$7("Map.prototype.iterator",!0),$setIterator=callBound$7("Set.prototype.iterator",!0);var $mapAtAtIterator=callBound$7("Map.prototype.@@iterator",!0)||callBound$7("Map.prototype._es6-shim iterator_",!0),$setAtAtIterator=callBound$7("Set.prototype.@@iterator",!0)||callBound$7("Set.prototype._es6-shim iterator_",!0),getCollectionIterator=function(_){if(isMap$1(_)){if($mapIterator)return getStopIterationIterator($mapIterator(_));if($mapAtAtIterator)return $mapAtAtIterator(_);if($mapForEach){var $=[];return $mapForEach(_,function(_e,et){$arrayPush($,[et,_e])}),getArrayIterator($)}}if(isSet$1(_)){if($setIterator)return getStopIterationIterator($setIterator(_));if($setAtAtIterator)return $setAtAtIterator(_);if($setForEach){var j=[];return $setForEach(_,function(_e){$arrayPush(j,_e)}),getArrayIterator(j)}}};esGetIterator.exports=function(_){return getCollectionIterator(_)||getNonCollectionIterator(_)}}}var esGetIteratorExports=esGetIterator.exports,numberIsNaN=function(a){return a!==a},implementation$2=function a(_,$){return _===0&&$===0?1/_===1/$:!!(_===$||numberIsNaN(_)&&numberIsNaN($))},implementation$1=implementation$2,polyfill$1=function a(){return typeof Object.is=="function"?Object.is:implementation$1},getPolyfill$1=polyfill$1,define$1=defineProperties_1,shim$1=function a(){var _=getPolyfill$1();return define$1(Object,{is:_},{is:function(){return Object.is!==_}}),_},define=defineProperties_1,callBind$1=callBindExports,implementation=implementation$2,getPolyfill=polyfill$1,shim=shim$1,polyfill=callBind$1(getPolyfill(),Object);define(polyfill,{getPolyfill,implementation,shim});var objectIs=polyfill,callBind=callBindExports,callBound$6=callBound$c,GetIntrinsic$2=getIntrinsic,isTypedArray$2=isTypedArray$3,$ArrayBuffer=GetIntrinsic$2("ArrayBuffer",!0),$Float32Array=GetIntrinsic$2("Float32Array",!0),$byteLength$2=callBound$6("ArrayBuffer.prototype.byteLength",!0),abSlice=$ArrayBuffer&&!$byteLength$2&&new $ArrayBuffer().slice,$abSlice=abSlice&&callBind(abSlice),isArrayBuffer$2=$byteLength$2||$abSlice?function a(_){if(!_||typeof _!="object")return!1;try{return $byteLength$2?$byteLength$2(_):$abSlice(_,0),!0}catch{return!1}}:$Float32Array?function a(_){try{return new $Float32Array(_).buffer===_&&!isTypedArray$2(_)}catch($){return typeof _=="object"&&$.name==="RangeError"}}:function a(_){return!1},getDay=Date.prototype.getDay,tryDateObject=function a(_){try{return getDay.call(_),!0}catch{return!1}},toStr$2=Object.prototype.toString,dateClass="[object Date]",hasToStringTag$3=shams(),isDateObject=function a(_){return typeof _!="object"||_===null?!1:hasToStringTag$3?tryDateObject(_):toStr$2.call(_)===dateClass},callBound$5=callBound$c,hasToStringTag$2=shams(),has,$exec,isRegexMarker,badStringifier;if(hasToStringTag$2){has=callBound$5("Object.prototype.hasOwnProperty"),$exec=callBound$5("RegExp.prototype.exec"),isRegexMarker={};var throwRegexMarker=function(){throw isRegexMarker};badStringifier={toString:throwRegexMarker,valueOf:throwRegexMarker},typeof Symbol.toPrimitive=="symbol"&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker)}var $toString$1=callBound$5("Object.prototype.toString"),gOPD=Object.getOwnPropertyDescriptor,regexClass="[object RegExp]",isRegex$1=hasToStringTag$2?function a(_){if(!_||typeof _!="object")return!1;var $=gOPD(_,"lastIndex"),j=$&&has($,"value");if(!j)return!1;try{$exec(_,badStringifier)}catch(_e){return _e===isRegexMarker}}:function a(_){return!_||typeof _!="object"&&typeof _!="function"?!1:$toString$1(_)===regexClass},callBound$4=callBound$c,$byteLength$1=callBound$4("SharedArrayBuffer.prototype.byteLength",!0),isSharedArrayBuffer$1=$byteLength$1?function a(_){if(!_||typeof _!="object")return!1;try{return $byteLength$1(_),!0}catch{return!1}}:function a(_){return!1},numToStr=Number.prototype.toString,tryNumberObject=function a(_){try{return numToStr.call(_),!0}catch{return!1}},toStr$1=Object.prototype.toString,numClass="[object Number]",hasToStringTag$1=shams(),isNumberObject=function a(_){return typeof _=="number"?!0:typeof _!="object"?!1:hasToStringTag$1?tryNumberObject(_):toStr$1.call(_)===numClass},callBound$3=callBound$c,$boolToStr=callBound$3("Boolean.prototype.toString"),$toString=callBound$3("Object.prototype.toString"),tryBooleanObject=function a(_){try{return $boolToStr(_),!0}catch{return!1}},boolClass="[object Boolean]",hasToStringTag=shams(),isBooleanObject=function a(_){return typeof _=="boolean"?!0:_===null||typeof _!="object"?!1:hasToStringTag&&Symbol.toStringTag in _?tryBooleanObject(_):$toString(_)===boolClass},isSymbol$2={exports:{}},toStr=Object.prototype.toString,hasSymbols=hasSymbols$4();if(hasSymbols){var symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function(_){return typeof _.valueOf()!="symbol"?!1:symStringRegex.test(symToStr.call(_))};isSymbol$2.exports=function(_){if(typeof _=="symbol")return!0;if(toStr.call(_)!=="[object Symbol]")return!1;try{return isSymbolObject(_)}catch{return!1}}}else isSymbol$2.exports=function(_){return!1};var isSymbolExports=isSymbol$2.exports,isBigint={exports:{}},$BigInt=typeof BigInt<"u"&&BigInt,hasBigints=function a(){return typeof $BigInt=="function"&&typeof BigInt=="function"&&typeof $BigInt(42)=="bigint"&&typeof BigInt(42)=="bigint"},hasBigInts=hasBigints();if(hasBigInts){var bigIntValueOf=BigInt.prototype.valueOf,tryBigInt=function(_){try{return bigIntValueOf.call(_),!0}catch{}return!1};isBigint.exports=function(_){return _===null||typeof _>"u"||typeof _=="boolean"||typeof _=="string"||typeof _=="number"||typeof _=="symbol"||typeof _=="function"?!1:typeof _=="bigint"?!0:tryBigInt(_)}}else isBigint.exports=function(_){return!1};var isBigintExports=isBigint.exports,isString$1=isString$3,isNumber$1=isNumberObject,isBoolean$1=isBooleanObject,isSymbol$1=isSymbolExports,isBigInt=isBigintExports,whichBoxedPrimitive$1=function a(_){if(_==null||typeof _!="object"&&typeof _!="function")return null;if(isString$1(_))return"String";if(isNumber$1(_))return"Number";if(isBoolean$1(_))return"Boolean";if(isSymbol$1(_))return"Symbol";if(isBigInt(_))return"BigInt"},$WeakMap=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,$WeakSet$1=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,exported;$WeakMap||(exported=function(_){return!1});var $mapHas$2=$WeakMap?$WeakMap.prototype.has:null,$setHas$2=$WeakSet$1?$WeakSet$1.prototype.has:null;!exported&&!$mapHas$2&&(exported=function(_){return!1});var isWeakmap=exported||function a(_){if(!_||typeof _!="object")return!1;try{if($mapHas$2.call(_,$mapHas$2),$setHas$2)try{$setHas$2.call(_,$setHas$2)}catch{return!0}return _ instanceof $WeakMap}catch{}return!1},isWeakset={exports:{}},GetIntrinsic$1=getIntrinsic,callBound$2=callBound$c,$WeakSet=GetIntrinsic$1("%WeakSet%",!0),$setHas$1=callBound$2("WeakSet.prototype.has",!0);if($setHas$1){var $mapHas$1=callBound$2("WeakMap.prototype.has",!0);isWeakset.exports=function(_){if(!_||typeof _!="object")return!1;try{if($setHas$1(_,$setHas$1),$mapHas$1)try{$mapHas$1(_,$mapHas$1)}catch{return!0}return _ instanceof $WeakSet}catch{}return!1}}else isWeakset.exports=function(_){return!1};var isWeaksetExports=isWeakset.exports,isMap=isMap$2,isSet=isSet$2,isWeakMap=isWeakmap,isWeakSet=isWeaksetExports,whichCollection$1=function a(_){if(_&&typeof _=="object"){if(isMap(_))return"Map";if(isSet(_))return"Set";if(isWeakMap(_))return"WeakMap";if(isWeakSet(_))return"WeakSet"}return!1},callBound$1=callBound$c,$byteLength=callBound$1("ArrayBuffer.prototype.byteLength",!0),isArrayBuffer$1=isArrayBuffer$2,arrayBufferByteLength=function a(_){return isArrayBuffer$1(_)?$byteLength?$byteLength(_):_.byteLength:NaN},assign$1=object_assign,callBound=callBound$c,flags=regexp_prototype_flags,GetIntrinsic=getIntrinsic,getIterator=esGetIteratorExports,getSideChannel=sideChannel,is=objectIs,isArguments$2=isArguments$5,isArray$2=isarray,isArrayBuffer=isArrayBuffer$2,isDate$1=isDateObject,isRegex=isRegex$1,isSharedArrayBuffer=isSharedArrayBuffer$1,objectKeys=objectKeys$2,whichBoxedPrimitive=whichBoxedPrimitive$1,whichCollection=whichCollection$1,whichTypedArray=whichTypedArray$2,byteLength=arrayBufferByteLength,sabByteLength=callBound("SharedArrayBuffer.prototype.byteLength",!0),$getTime=callBound("Date.prototype.getTime"),gPO=Object.getPrototypeOf,$objToString=callBound("Object.prototype.toString"),$Set=GetIntrinsic("%Set%",!0),$mapHas=callBound("Map.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSize=callBound("Map.prototype.size",!0),$setAdd=callBound("Set.prototype.add",!0),$setDelete=callBound("Set.prototype.delete",!0),$setHas=callBound("Set.prototype.has",!0),$setSize=callBound("Set.prototype.size",!0);function setHasEqualElement(a,_,$,j){for(var _e=getIterator(a),et;(et=_e.next())&&!et.done;)if(internalDeepEqual(_,et.value,$,j))return $setDelete(a,et.value),!0;return!1}function findLooseMatchingPrimitives(a){if(typeof a>"u")return null;if(typeof a!="object")return typeof a=="symbol"?!1:typeof a=="string"||typeof a=="number"?+a==+a:!0}function mapMightHaveLoosePrim(a,_,$,j,_e,et){var tt=findLooseMatchingPrimitives($);if(tt!=null)return tt;var rt=$mapGet(_,tt),it=assign$1({},_e,{strict:!1});return typeof rt>"u"&&!$mapHas(_,tt)||!internalDeepEqual(j,rt,it,et)?!1:!$mapHas(a,tt)&&internalDeepEqual(j,rt,it,et)}function setMightHaveLoosePrim(a,_,$){var j=findLooseMatchingPrimitives($);return j??($setHas(_,j)&&!$setHas(a,j))}function mapHasEqualEntry(a,_,$,j,_e,et){for(var tt=getIterator(a),rt,it;(rt=tt.next())&&!rt.done;)if(it=rt.value,internalDeepEqual($,it,_e,et)&&internalDeepEqual(j,$mapGet(_,it),_e,et))return $setDelete(a,it),!0;return!1}function internalDeepEqual(a,_,$,j){var _e=$||{};if(_e.strict?is(a,_):a===_)return!0;var et=whichBoxedPrimitive(a),tt=whichBoxedPrimitive(_);if(et!==tt)return!1;if(!a||!_||typeof a!="object"&&typeof _!="object")return _e.strict?is(a,_):a==_;var rt=j.has(a),it=j.has(_),ct;if(rt&&it){if(j.get(a)===j.get(_))return!0}else ct={};return rt||j.set(a,ct),it||j.set(_,ct),objEquiv(a,_,_e,j)}function isBuffer$2(a){return!a||typeof a!="object"||typeof a.length!="number"||typeof a.copy!="function"||typeof a.slice!="function"||a.length>0&&typeof a[0]!="number"?!1:!!(a.constructor&&a.constructor.isBuffer&&a.constructor.isBuffer(a))}function setEquiv(a,_,$,j){if($setSize(a)!==$setSize(_))return!1;for(var _e=getIterator(a),et=getIterator(_),tt,rt,it;(tt=_e.next())&&!tt.done;)if(tt.value&&typeof tt.value=="object")it||(it=new $Set),$setAdd(it,tt.value);else if(!$setHas(_,tt.value)){if($.strict||!setMightHaveLoosePrim(a,_,tt.value))return!1;it||(it=new $Set),$setAdd(it,tt.value)}if(it){for(;(rt=et.next())&&!rt.done;)if(rt.value&&typeof rt.value=="object"){if(!setHasEqualElement(it,rt.value,$.strict,j))return!1}else if(!$.strict&&!$setHas(a,rt.value)&&!setHasEqualElement(it,rt.value,$.strict,j))return!1;return $setSize(it)===0}return!0}function mapEquiv(a,_,$,j){if($mapSize(a)!==$mapSize(_))return!1;for(var _e=getIterator(a),et=getIterator(_),tt,rt,it,ct,dt,mt;(tt=_e.next())&&!tt.done;)if(ct=tt.value[0],dt=tt.value[1],ct&&typeof ct=="object")it||(it=new $Set),$setAdd(it,ct);else if(mt=$mapGet(_,ct),typeof mt>"u"&&!$mapHas(_,ct)||!internalDeepEqual(dt,mt,$,j)){if($.strict||!mapMightHaveLoosePrim(a,_,ct,dt,$,j))return!1;it||(it=new $Set),$setAdd(it,ct)}if(it){for(;(rt=et.next())&&!rt.done;)if(ct=rt.value[0],mt=rt.value[1],ct&&typeof ct=="object"){if(!mapHasEqualEntry(it,a,ct,mt,$,j))return!1}else if(!$.strict&&(!a.has(ct)||!internalDeepEqual($mapGet(a,ct),mt,$,j))&&!mapHasEqualEntry(it,a,ct,mt,assign$1({},$,{strict:!1}),j))return!1;return $setSize(it)===0}return!0}function objEquiv(a,_,$,j){var _e,et;if(typeof a!=typeof _||a==null||_==null||$objToString(a)!==$objToString(_)||isArguments$2(a)!==isArguments$2(_))return!1;var tt=isArray$2(a),rt=isArray$2(_);if(tt!==rt)return!1;var it=a instanceof Error,ct=_ instanceof Error;if(it!==ct||(it||ct)&&(a.name!==_.name||a.message!==_.message))return!1;var dt=isRegex(a),mt=isRegex(_);if(dt!==mt||(dt||mt)&&(a.source!==_.source||flags(a)!==flags(_)))return!1;var vt=isDate$1(a),wt=isDate$1(_);if(vt!==wt||(vt||wt)&&$getTime(a)!==$getTime(_)||$.strict&&gPO&&gPO(a)!==gPO(_))return!1;var xt=whichTypedArray(a),bt=whichTypedArray(_);if(xt!==bt)return!1;if(xt||bt){if(a.length!==_.length)return!1;for(_e=0;_e<a.length;_e++)if(a[_e]!==_[_e])return!1;return!0}var Et=isBuffer$2(a),$t=isBuffer$2(_);if(Et!==$t)return!1;if(Et||$t){if(a.length!==_.length)return!1;for(_e=0;_e<a.length;_e++)if(a[_e]!==_[_e])return!1;return!0}var At=isArrayBuffer(a),Rt=isArrayBuffer(_);if(At!==Rt)return!1;if(At||Rt)return byteLength(a)!==byteLength(_)?!1:typeof Uint8Array=="function"&&internalDeepEqual(new Uint8Array(a),new Uint8Array(_),$,j);var Pt=isSharedArrayBuffer(a),Ct=isSharedArrayBuffer(_);if(Pt!==Ct)return!1;if(Pt||Ct)return sabByteLength(a)!==sabByteLength(_)?!1:typeof Uint8Array=="function"&&internalDeepEqual(new Uint8Array(a),new Uint8Array(_),$,j);if(typeof a!=typeof _)return!1;var Ot=objectKeys(a),kt=objectKeys(_);if(Ot.length!==kt.length)return!1;for(Ot.sort(),kt.sort(),_e=Ot.length-1;_e>=0;_e--)if(Ot[_e]!=kt[_e])return!1;for(_e=Ot.length-1;_e>=0;_e--)if(et=Ot[_e],!internalDeepEqual(a[et],_[et],$,j))return!1;var Dt=whichCollection(a),Nt=whichCollection(_);return Dt!==Nt?!1:Dt==="Set"||Nt==="Set"?setEquiv(a,_,$,j):Dt==="Map"?mapEquiv(a,_,$,j):!0}var deepEqual=function a(_,$,j){return internalDeepEqual(_,$,j,getSideChannel())},debounce$2={},__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(a,_,$){if($||arguments.length===2)for(var j=0,_e=_.length,et;j<_e;j++)(et||!(j in _))&&(et||(et=Array.prototype.slice.call(_,0,j)),et[j]=_[j]);return a.concat(et||Array.prototype.slice.call(_))};Object.defineProperty(debounce$2,"__esModule",{value:!0});debounce$2.createDebounce=void 0;function createDebounce(){var a=null;return function(_,$){for(var j=[],_e=2;_e<arguments.length;_e++)j[_e-2]=arguments[_e];a&&clearTimeout(a),a=setTimeout.apply(void 0,__spreadArray([_,$],j,!1))}}debounce$2.createDebounce=createDebounce;var WearablePreview_controller={},fpFuture={};Object.defineProperty(fpFuture,"__esModule",{value:!0});function future(){let a,_;const $=new Promise((j,_e)=>{a=et=>{j(et),$.isPending=!1},_=et=>{_e(et),$.isPending=!1}}).catch(j=>Promise.reject(j));return $.resolve=a,$.reject=_,"finally"in $||($.finally=j=>{$.then(j),$.catch(j)}),$.isPending=!0,$}fpFuture.future=future;fpFuture.default=future;var __importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(WearablePreview_controller,"__esModule",{value:!0});WearablePreview_controller.createController=void 0;var events_1=eventsExports,fp_future_1=__importDefault$3(fpFuture),preview_1$1=preview,promises=new Map,emoteEvents=new Map;window.onmessage=function a(_){if(_.data&&_.data.type)switch(_.data.type){case preview_1$1.PreviewMessageType.CONTROLLER_RESPONSE:{var $=_.data.payload,j=$.id,_e=promises.get(j);_e&&($.ok?_e.resolve($.result):$.ok===!1&&_e.reject(new Error($.error)));break}case preview_1$1.PreviewMessageType.EMOTE_EVENT:{var $=_.data.payload,et=$.type,tt=$.payload,rt=emoteEvents.get(_.source);rt&&et&&rt.emit(et,tt);break}}};var nonce=0;function createSendRequest(a){return function($,j,_e){var et=document.getElementById(a),tt=a+"-"+nonce,rt=(0,fp_future_1.default)();promises.set(tt,rt);var it=preview_1$1.PreviewMessageType.CONTROLLER_REQUEST,ct={id:tt,namespace:$,method:j,params:_e};return(0,preview_1$1.sendMessage)(et.contentWindow,it,ct),nonce++,rt}}function createController(a){var _,$=document.getElementById(a);if(!$)throw new Error('Could not find an iframe with id="'.concat(a,'"'));var j=(_=emoteEvents.get($.contentWindow))!==null&&_!==void 0?_:new events_1.EventEmitter;emoteEvents.set($.contentWindow,j);var _e=createSendRequest(a);return{scene:{getScreenshot:function(et,tt){return _e("scene","getScreenshot",[et,tt])},getMetrics:function(){return _e("scene","getMetrics",[])},changeZoom:function(et){return _e("scene","changeZoom",[et])},panCamera:function(et){return _e("scene","panCamera",[et])},changeCameraPosition:function(et){return _e("scene","changeCameraPosition",[et])}},emote:{getLength:function(){return _e("emote","getLength",[])},isPlaying:function(){return _e("emote","isPlaying",[])},goTo:function(et){return _e("emote","goTo",[et])},play:function(){return _e("emote","play",[])},pause:function(){return _e("emote","pause",[])},stop:function(){return _e("emote","stop",[])},enableSound:function(){return _e("emote","enableSound",[])},disableSound:function(){return _e("emote","disableSound",[])},hasSound:function(){return _e("emote","hasSound",[])},events:j}}}WearablePreview_controller.createController=createController;const WearablePreview$1="";var config={};const WEARABLE_PREVIEW_URL$2="https://wearable-preview.decentraland.zone",ACCOUNT_URL$2="https://decentraland.zone/account",PROFILE_URL$2="https://decentraland.zone/profile",MARKETPLACE_URL$2="https://decentraland.zone/marketplace",MARKETPLACE_NAMES_URL$2="https://decentraland.zone/marketplace/names/claim",MARKETPLACE_WEARABLES_URL$2="https://decentraland.zone/marketplace/browse?section=wearables&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_LANDS_URL$2="https://decentraland.zone/marketplace/lands",MARKETPLACE_EMOTES_URL$2="https://decentraland.zone/marketplace/browse?assetType=item§ion=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_MY_ASSETS_URL$2="https://decentraland.zone/marketplace/account?assetType=nft§ion=wearables&vendor=decentraland&page=1&sortBy=newest&onlyOnSale=false",MARKETPLACE_SETTINGS_URL$2="https://decentraland.zone/marketplace/settings",BUILDER_URL$2="https://decentraland.zone/builder",BUILDER_WEARABLE_EMOTES_URL$2="https://decentraland.zone/builder/collections",BUILDER_SCENES_URL$2="https://decentraland.zone/builder/scenes",BUILDER_NAMES_URL$2="https://decentraland.zone/builder/names",BUILDER_WORLDS_URL$2="https://decentraland.zone/builder/worlds?tab=dcl",BUILDER_LAND_URL$2="https://decentraland.zone/builder/land",DAO_URL$2="https://decentraland.zone/dao",DAO_GRANTS_URL$2="https://decentraland.zone/dao/grants/",GOVERNANCE_URL$2="https://decentraland.zone/governance",GOVERNANCE_TRANSPARENCY_URL$2="https://decentraland.zone/governance/transparency/",GOVERNANCE_PROPOSALS_URL$2="https://decentraland.zone/governance/proposals/",GOVERNANCE_PROJECTS_URL$2="https://decentraland.zone/governance/projects/",EVENTS_URL$2="https://decentraland.zone/events",EVENTS_MY_EVENTS$2="https://decentraland.zone/events/me/",PLACES_URL$2="https://decentraland.zone/places",PLACES_MY_FAVORITE_URL$2="https://decentraland.zone/places/favorites/",EXPLORER_URL$2="https://play.decentraland.zone",STUDIOS_URL$2="https://studios.decentraland.org/",DOCS_ABOUT_URL$2="https://docs.decentraland.org/player/",DOCS_CREATORS_URL$2="https://docs.decentraland.org/creator/",DOCS_CONTRIBUTOR_URL$2="https://docs.decentraland.org/contributor/",DOCS_DAO_URL$2="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",BLOG_URL$2="https://decentraland.zone/blog/",require$$1={WEARABLE_PREVIEW_URL:WEARABLE_PREVIEW_URL$2,ACCOUNT_URL:ACCOUNT_URL$2,PROFILE_URL:PROFILE_URL$2,MARKETPLACE_URL:MARKETPLACE_URL$2,MARKETPLACE_NAMES_URL:MARKETPLACE_NAMES_URL$2,MARKETPLACE_WEARABLES_URL:MARKETPLACE_WEARABLES_URL$2,MARKETPLACE_LANDS_URL:MARKETPLACE_LANDS_URL$2,MARKETPLACE_EMOTES_URL:MARKETPLACE_EMOTES_URL$2,MARKETPLACE_MY_ASSETS_URL:MARKETPLACE_MY_ASSETS_URL$2,MARKETPLACE_SETTINGS_URL:MARKETPLACE_SETTINGS_URL$2,BUILDER_URL:BUILDER_URL$2,BUILDER_WEARABLE_EMOTES_URL:BUILDER_WEARABLE_EMOTES_URL$2,BUILDER_SCENES_URL:BUILDER_SCENES_URL$2,BUILDER_NAMES_URL:BUILDER_NAMES_URL$2,BUILDER_WORLDS_URL:BUILDER_WORLDS_URL$2,BUILDER_LAND_URL:BUILDER_LAND_URL$2,DAO_URL:DAO_URL$2,DAO_GRANTS_URL:DAO_GRANTS_URL$2,GOVERNANCE_URL:GOVERNANCE_URL$2,GOVERNANCE_TRANSPARENCY_URL:GOVERNANCE_TRANSPARENCY_URL$2,GOVERNANCE_PROPOSALS_URL:GOVERNANCE_PROPOSALS_URL$2,GOVERNANCE_PROJECTS_URL:GOVERNANCE_PROJECTS_URL$2,EVENTS_URL:EVENTS_URL$2,EVENTS_MY_EVENTS:EVENTS_MY_EVENTS$2,PLACES_URL:PLACES_URL$2,PLACES_MY_FAVORITE_URL:PLACES_MY_FAVORITE_URL$2,EXPLORER_URL:EXPLORER_URL$2,STUDIOS_URL:STUDIOS_URL$2,DOCS_ABOUT_URL:DOCS_ABOUT_URL$2,DOCS_CREATORS_URL:DOCS_CREATORS_URL$2,DOCS_CONTRIBUTOR_URL:DOCS_CONTRIBUTOR_URL$2,DOCS_DAO_URL:DOCS_DAO_URL$2,BLOG_URL:BLOG_URL$2},WEARABLE_PREVIEW_URL$1="https://wearable-preview.decentraland.today",ACCOUNT_URL$1="https://decentraland.today/account",PROFILE_URL$1="https://decentraland.today/profile",MARKETPLACE_URL$1="https://decentraland.today/marketplace",MARKETPLACE_NAMES_URL$1="https://decentraland.today/marketplace/names/claim",MARKETPLACE_WEARABLES_URL$1="https://decentraland.today/marketplace/browse?section=wearables&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_LANDS_URL$1="https://decentraland.today/marketplace/lands",MARKETPLACE_EMOTES_URL$1="https://decentraland.today/marketplace/browse?assetType=item§ion=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_MY_ASSETS_URL$1="https://decentraland.today/marketplace/account?assetType=nft§ion=wearables&vendor=decentraland&page=1&sortBy=newest&onlyOnSale=false",MARKETPLACE_SETTINGS_URL$1="https://decentraland.zone/marketplace/settings",BUILDER_URL$1="https://decentraland.today/builder",BUILDER_WEARABLE_EMOTES_URL$1="https://decentraland.today/builder/collections",BUILDER_SCENES_URL$1="https://decentraland.today/builder/scenes",BUILDER_NAMES_URL$1="https://decentraland.today/builder/names",BUILDER_WORLDS_URL$1="https://decentraland.today/builder/worlds?tab=dcl",BUILDER_LAND_URL$1="https://decentraland.today/builder/land",DAO_URL$1="https://decentraland.today/dao",DAO_GRANTS_URL$1="https://decentraland.today/dao/grants/",GOVERNANCE_URL$1="https://decentraland.zone/governance",GOVERNANCE_TRANSPARENCY_URL$1="https://decentraland.zone/governance/transparency/",GOVERNANCE_PROPOSALS_URL$1="https://decentraland.zone/governance/proposals/",GOVERNANCE_PROJECTS_URL$1="https://decentraland.zone/governance/projects/",EVENTS_URL$1="https://decentraland.zone/events",EVENTS_MY_EVENTS$1="https://decentraland.zone/events/me/",PLACES_URL$1="https://decentraland.zone/places",PLACES_MY_FAVORITE_URL$1="https://decentraland.zone/places/favorites/",EXPLORER_URL$1="https://play.decentraland.today",STUDIOS_URL$1="https://studios.decentraland.org/",DOCS_ABOUT_URL$1="https://docs.decentraland.org/player/",DOCS_CREATORS_URL$1="https://docs.decentraland.org/creator/",DOCS_CONTRIBUTOR_URL$1="https://docs.decentraland.org/contributor/",DOCS_DAO_URL$1="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",BLOG_URL$1="https://decentraland.today/blog/",require$$2$1={WEARABLE_PREVIEW_URL:WEARABLE_PREVIEW_URL$1,ACCOUNT_URL:ACCOUNT_URL$1,PROFILE_URL:PROFILE_URL$1,MARKETPLACE_URL:MARKETPLACE_URL$1,MARKETPLACE_NAMES_URL:MARKETPLACE_NAMES_URL$1,MARKETPLACE_WEARABLES_URL:MARKETPLACE_WEARABLES_URL$1,MARKETPLACE_LANDS_URL:MARKETPLACE_LANDS_URL$1,MARKETPLACE_EMOTES_URL:MARKETPLACE_EMOTES_URL$1,MARKETPLACE_MY_ASSETS_URL:MARKETPLACE_MY_ASSETS_URL$1,MARKETPLACE_SETTINGS_URL:MARKETPLACE_SETTINGS_URL$1,BUILDER_URL:BUILDER_URL$1,BUILDER_WEARABLE_EMOTES_URL:BUILDER_WEARABLE_EMOTES_URL$1,BUILDER_SCENES_URL:BUILDER_SCENES_URL$1,BUILDER_NAMES_URL:BUILDER_NAMES_URL$1,BUILDER_WORLDS_URL:BUILDER_WORLDS_URL$1,BUILDER_LAND_URL:BUILDER_LAND_URL$1,DAO_URL:DAO_URL$1,DAO_GRANTS_URL:DAO_GRANTS_URL$1,GOVERNANCE_URL:GOVERNANCE_URL$1,GOVERNANCE_TRANSPARENCY_URL:GOVERNANCE_TRANSPARENCY_URL$1,GOVERNANCE_PROPOSALS_URL:GOVERNANCE_PROPOSALS_URL$1,GOVERNANCE_PROJECTS_URL:GOVERNANCE_PROJECTS_URL$1,EVENTS_URL:EVENTS_URL$1,EVENTS_MY_EVENTS:EVENTS_MY_EVENTS$1,PLACES_URL:PLACES_URL$1,PLACES_MY_FAVORITE_URL:PLACES_MY_FAVORITE_URL$1,EXPLORER_URL:EXPLORER_URL$1,STUDIOS_URL:STUDIOS_URL$1,DOCS_ABOUT_URL:DOCS_ABOUT_URL$1,DOCS_CREATORS_URL:DOCS_CREATORS_URL$1,DOCS_CONTRIBUTOR_URL:DOCS_CONTRIBUTOR_URL$1,DOCS_DAO_URL:DOCS_DAO_URL$1,BLOG_URL:BLOG_URL$1},WEARABLE_PREVIEW_URL="https://wearable-preview.decentraland.org",ACCOUNT_URL="https://decentraland.org/account",PROFILE_URL="https://decentraland.org/profile",MARKETPLACE_URL="https://decentraland.org/marketplace",MARKETPLACE_NAMES_URL="https://decentraland.org/marketplace/names/claim",MARKETPLACE_WEARABLES_URL="https://decentraland.org/marketplace/browse?section=wearables&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_LANDS_URL="https://decentraland.org/marketplace/lands",MARKETPLACE_EMOTES_URL="https://decentraland.org/marketplace/browse?assetType=item§ion=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_MY_ASSETS_URL="https://decentraland.org/marketplace/account?assetType=nft§ion=wearables&vendor=decentraland&page=1&sortBy=newest&onlyOnSale=false",MARKETPLACE_SETTINGS_URL="https://decentraland.org/marketplace/settings",BUILDER_URL="https://decentraland.org/builder",BUILDER_WEARABLE_EMOTES_URL="https://decentraland.org/builder/collections",BUILDER_SCENES_URL="https://decentraland.org/builder/scenes",BUILDER_NAMES_URL="https://decentraland.org/builder/names",BUILDER_WORLDS_URL="https://decentraland.org/builder/worlds?tab=dcl",BUILDER_LAND_URL="https://decentraland.org/builder/land",DAO_URL="https://decentraland.org/dao",DAO_GRANTS_URL="https://decentraland.org/dao/grants/",GOVERNANCE_URL="https://decentraland.org/governance",GOVERNANCE_TRANSPARENCY_URL="https://decentraland.org/governance/transparency/",GOVERNANCE_PROPOSALS_URL="https://decentraland.org/governance/proposals/",GOVERNANCE_PROJECTS_URL="https://decentraland.org/governance/projects/",EVENTS_URL="https://decentraland.org/events",EVENTS_MY_EVENTS="https://decentraland.org/events/me/",PLACES_URL="https://decentraland.org/places",PLACES_MY_FAVORITE_URL="https://decentraland.org/places/favorites/",EXPLORER_URL="https://play.decentraland.org",STUDIOS_URL="https://studios.decentraland.org/",DOCS_ABOUT_URL="https://docs.decentraland.org/player/",DOCS_CREATORS_URL="https://docs.decentraland.org/creator/",DOCS_CONTRIBUTOR_URL="https://docs.decentraland.org/contributor/",DOCS_DAO_URL="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",BLOG_URL="https://decentraland.org/blog/",require$$3={WEARABLE_PREVIEW_URL,ACCOUNT_URL,PROFILE_URL,MARKETPLACE_URL,MARKETPLACE_NAMES_URL,MARKETPLACE_WEARABLES_URL,MARKETPLACE_LANDS_URL,MARKETPLACE_EMOTES_URL,MARKETPLACE_MY_ASSETS_URL,MARKETPLACE_SETTINGS_URL,BUILDER_URL,BUILDER_WEARABLE_EMOTES_URL,BUILDER_SCENES_URL,BUILDER_NAMES_URL,BUILDER_WORLDS_URL,BUILDER_LAND_URL,DAO_URL,DAO_GRANTS_URL,GOVERNANCE_URL,GOVERNANCE_TRANSPARENCY_URL,GOVERNANCE_PROPOSALS_URL,GOVERNANCE_PROJECTS_URL,EVENTS_URL,EVENTS_MY_EVENTS,PLACES_URL,PLACES_MY_FAVORITE_URL,EXPLORER_URL,STUDIOS_URL,DOCS_ABOUT_URL,DOCS_CREATORS_URL,DOCS_CONTRIBUTOR_URL,DOCS_DAO_URL,BLOG_URL};var __importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},_a;Object.defineProperty(config,"__esModule",{value:!0});config.config=void 0;var ui_env_1=dist$3,dev_json_1=__importDefault$2(require$$1),stg_json_1=__importDefault$2(require$$2$1),prod_json_1=__importDefault$2(require$$3);config.config=(0,ui_env_1.createConfig)((_a={},_a[ui_env_1.Env.DEVELOPMENT]=dev_json_1.default,_a[ui_env_1.Env.STAGING]=stg_json_1.default,_a[ui_env_1.Env.PRODUCTION]=prod_json_1.default,_a));var __extends$3=commonjsGlobal&&commonjsGlobal.__extends||function(){var a=function(_,$){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,_e){j.__proto__=_e}||function(j,_e){for(var et in _e)Object.prototype.hasOwnProperty.call(_e,et)&&(j[et]=_e[et])},a(_,$)};return function(_,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");a(_,$);function j(){this.constructor=_}_.prototype=$===null?Object.create($):(j.prototype=$.prototype,new j)}}(),__createBinding$3=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(a,_,$,j){j===void 0&&(j=$);var _e=Object.getOwnPropertyDescriptor(_,$);(!_e||("get"in _e?!_.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return _[$]}}),Object.defineProperty(a,j,_e)}:function(a,_,$,j){j===void 0&&(j=$),a[j]=_[$]}),__setModuleDefault$3=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(a,_){Object.defineProperty(a,"default",{enumerable:!0,value:_})}:function(a,_){a.default=_}),__importStar$3=commonjsGlobal&&commonjsGlobal.__importStar||function(a){if(a&&a.__esModule)return a;var _={};if(a!=null)for(var $ in a)$!=="default"&&Object.prototype.hasOwnProperty.call(a,$)&&__createBinding$3(_,a,$);return __setModuleDefault$3(_,a),_},__rest$1=commonjsGlobal&&commonjsGlobal.__rest||function(a,_){var $={};for(var j in a)Object.prototype.hasOwnProperty.call(a,j)&&_.indexOf(j)<0&&($[j]=a[j]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,j=Object.getOwnPropertySymbols(a);_e<j.length;_e++)_.indexOf(j[_e])<0&&Object.prototype.propertyIsEnumerable.call(a,j[_e])&&($[j[_e]]=a[j[_e]]);return $},__importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(WearablePreview$2,"__esModule",{value:!0});var WearablePreview_2=WearablePreview$2.WearablePreview=void 0,React$3=__importStar$3(reactExports),deep_equal_1=__importDefault$1(deepEqual),preview_1=preview,debounce_1=debounce$2,WearablePreview_controller_1=WearablePreview_controller,config_1=config,debounce$1=(0,debounce_1.createDebounce)(),WearablePreview=function(a){__extends$3(_,a);function _(){var $=a!==null&&a.apply(this,arguments)||this;return $.state={isReady:!1,pendingOptions:null,lastOptions:null},$.iframe=null,$.getUrl=function(){var j=$.props,_e=j.contractAddress,et=j.tokenId,tt=j.itemId,rt=j.profile,it=j.urns,ct=j.urls,dt=j.base64s,mt=j.skin,vt=j.hair,wt=j.eyes,xt=j.bodyShape,bt=j.emote,Et=j.camera,$t=j.projection,At=j.zoom,Rt=j.background,Pt=j.offsetX,Ct=j.offsetY,Ot=j.offsetZ,kt=j.cameraX,Dt=j.cameraY,Nt=j.cameraZ,zt=j.wheelZoom,gt=j.wheelPrecision,nt=j.wheelStart,ot=j.disableBackground,st=j.disableAutoRotate,lt=j.disableAutoCenter,pt=j.disableFace,_t=j.disableDefaultWearables,St=j.disableDefaultEmotes,yt=j.disableFadeEffect,at=j.showSceneBoundaries,ht=j.showThumbnailBoundaries,Mt=j.panning,Tt=j.lockAlpha,It=j.lockBeta,Lt=j.lockRadius,jt=j.dev,Gt=j.baseUrl,tr=j.peerUrl,er=j.nftServerUrl,Jt=j.type,Wt=_e?"contract=".concat(_e):"",Kt=et?"token=".concat(et):"",lr=tt?"item=".concat(tt):"",Lr=rt?"profile=".concat(rt):"",$r=it&&it.length>0?it.map(function(Xt){return"urn=".concat(Xt)}).join("&"):"",wr=ct&&ct.length>0?ct.map(function(Xt){return"url=".concat(Xt)}).join("&"):"",an=dt&&dt.length>0?dt.map(function(Xt){return"base64=".concat(Xt)}).join("&"):"",Or=mt?"skin=".concat(mt):"",yr=vt?"hair=".concat(vt):"",cn=wt?"eyes=".concat(wt):"",Ar=xt?"bodyShape=".concat(xt):"",Gr=bt?"emote=".concat(bt):"",hn=Et?"camera=".concat(Et):"",Hr=$t?"projection=".concat($t):"",Jr=isNaN(At)?"":"zoom=".concat(At),An=Rt?"background=".concat(Rt):"",Vr=isNaN(Pt)?"":"offsetX=".concat(Pt),Yr=isNaN(Ct)?"":"offsetY=".concat(Ct),Tn=isNaN(Ot)?"":"offsetZ=".concat(Ot),Vt=isNaN(kt)?"":"cameraX=".concat(kt),Bt=isNaN(Dt)?"":"cameraY=".concat(Dt),Ft=isNaN(Nt)?"":"cameraZ=".concat(Nt),Zt=isNaN(zt)?"":"wheelZoom=".concat(zt),ur=isNaN(gt)?"":"wheelPrecision=".concat(gt),qr=isNaN(nt)?"":"wheelStart=".concat(nt),vr=ot?"disableBackground":"",jr=st?"disableAutoRotate":"",xn=lt?"disableAutoCenter":"",Fr=pt?"disableFace":"",Zr=_t?"disableDefaultWearables":"",pn=St?"disableDefaultEmotes":"",Ur=yt?"disableFadeEffect":"",nn=at?"showSceneBoundaries":"",Cn=ht?"showThumbnailBoundaries":"",ir=tr?"peerUrl=".concat(tr):"",Qt=er?"nftServerUrl=".concat(er):"",br=Jt?"type=".concat(Jt):"",ar=Mt===!1?"panning=false":"",xr=Tt?"lockAlpha=true":"",Xr=It?"lockBeta=true":"",Pr=Lt?"lockRadius=true":"",kr=jt?"env=dev":"",ln=Gt+"?"+[Wt,Kt,lr,Lr,$r,wr,an,Or,yr,cn,Ar,Gr,hn,Hr,Jr,An,Vr,Yr,Tn,Vt,Bt,Ft,Zt,ur,qr,vr,jr,xn,Fr,Zr,pn,Ur,nn,Cn,ir,Qt,br,ar,xr,Xr,Pr,kr].filter(function(Xt){return!!Xt}).join("&");return ln},$.getOptions=function(){var j=$.props;j.dev;var _e=__rest$1(j,["dev"]),et={};for(var tt in _e)typeof _e[tt]!="function"&&(et[tt]=_e[tt]);return et},$.handleMessage=function(j){var _e=$.props,et=_e.baseUrl,tt=_e.onLoad,rt=_e.onError,it=j.origin;if(it===et&&j.data&&j.data.type){var ct=j.data.type;switch(ct){case preview_1.PreviewMessageType.LOAD:{tt();break}case preview_1.PreviewMessageType.ERROR:{var dt=j.data.payload;rt(new Error(dt.message));break}case preview_1.PreviewMessageType.READY:{var mt=$.state,vt=mt.isReady,wt=mt.pendingOptions;if(vt)return;wt!==null?($.sendUpdate(wt),$.setState({isReady:!0,pendingOptions:null})):$.setState({isReady:!0});break}}}},$.handleUpdate=function(){if($.iframe){if(window){var j=$.getOptions();$.state.isReady?$.sendUpdate(j):$.setState({pendingPreviewOptions:j})}}else console.warn("Could not send update, iframe is not referenced")},$.sendUpdate=function(j){var _e=$.state.lastOptions;if(!_e||!(0,deep_equal_1.default)(j,_e)){(0,preview_1.sendMessage)($.iframe.contentWindow,preview_1.PreviewMessageType.UPDATE,{options:j});var et=$.props.onUpdate;et(j),$.setState({lastOptions:j})}},$.refIframe=function(j){$.iframe=j},$}return _.createController=function($){return(0,WearablePreview_controller_1.createController)($)},_.prototype.componentDidMount=function(){window.addEventListener("message",this.handleMessage,!1),this.setState({url:this.getUrl()}),this.props.blob&&this.handleUpdate()},_.prototype.componentWillUnmount=function(){window.removeEventListener("message",this.handleMessage,!1)},_.prototype.componentDidUpdate=function(){debounce$1(this.handleUpdate,500)},_.prototype.render=function(){return this.props.tokenId&&this.props.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),React$3.createElement("iframe",{id:this.props.id,className:"WearablePreview",src:this.state.url,width:"100%",height:"100%",frameBorder:"0",ref:this.refIframe,allow:"autoplay"})},_.defaultProps={dev:!1,baseUrl:config_1.config.get("WEARABLE_PREVIEW_URL"),onLoad:function(){},onError:function(){},onUpdate:function(){}},_}(React$3.PureComponent);WearablePreview_2=WearablePreview$2.WearablePreview=WearablePreview;const CustomWearablePreview$1="",CustomWearablePreview=a=>{const[_,$]=reactExports.useState(!0);reactExports.useEffect(()=>$(!0),[a.profile]);const j=reactExports.useMemo(()=>{const et=tt=>{const rt="platform.glb",it="https://cdn.decentraland.org/@dcl/auth-site/1.7.1";return{bodyShapes:[`urn:decentraland:off-chain:base-avatars:${tt}`],mainFile:rt,contents:[{key:rt,url:`${it}/misc/platform/${rt}`}]}};return btoa(JSON.stringify({data:{representations:[et("BaseMale"),et("BaseFemale")]}}))},[]),_e=reactExports.useCallback(()=>$(!1),[]);return jsxRuntimeExports.jsxs("div",{className:"CustomWearablePreview",children:[jsxRuntimeExports.jsx(WearablePreview_2,{lockBeta:!0,panning:!1,disableBackground:!0,profile:a.profile,dev:!1,emote:dist$5.PreviewEmote.WAVE,disableAutoRotate:!0,cameraY:.2,base64s:[j],onLoad:_e}),_?jsxRuntimeExports.jsx(Loader_3,{active:!0,size:"huge"}):null]})},background$2="_background_441c2_1",emptyProfile="_emptyProfile_441c2_11",main$6="_main_441c2_27",left$3="_left_441c2_38",right$3="_right_441c2_49",changeAccount="_changeAccount_441c2_57",errorLogo="_errorLogo_441c2_70",logo$1="_logo_441c2_79",title$4="_title_441c2_85",description="_description_441c2_92",code="_code_441c2_99",buttons="_buttons_441c2_106",closeWindow="_closeWindow_441c2_116",errorMessage="_errorMessage_441c2_122",noButton="_noButton_441c2_131",yesButton="_yesButton_441c2_133",communityBubble="_communityBubble_441c2_150",styles$a={background:background$2,emptyProfile,main:main$6,left:left$3,right:right$3,changeAccount,errorLogo,logo:logo$1,title:title$4,description,code,buttons,closeWindow,errorMessage,noButton,yesButton,communityBubble},RequestPage=()=>{usePageTracking();const a=useParams(),_=useNavigate(),$=reactExports.useRef(),[j,_e]=reactExports.useState(2),[et,tt]=reactExports.useState(!1),[rt,it]=reactExports.useState(),ct=reactExports.useRef(),[dt,mt]=reactExports.useState(),vt=reactExports.useRef(),wt=reactExports.useRef(),xt=a.requestId??"",[bt,Et]=useTargetConfig(),$t=reactExports.useCallback(()=>{_(`/login?redirectTo=${encodeURIComponent(`/auth/requests/${xt}?targetConfigId=${Et}`)}`)},[xt,Et]),At=reactExports.useCallback(()=>{_(`/setup?redirectTo=${encodeURIComponent(`/auth/requests/${xt}?targetConfigId=${Et}`)}`)},[xt,Et]);reactExports.useEffect(()=>((async()=>{try{const Nt=await getCurrentConnectionData();if(!Nt)throw new Error("No account connected");const zt=await connection$1.getProvider();$.current=new BrowserProvider(zt);const gt=await fetchProfile(Nt.account);if(!bt.skipSetup&&!gt){console.log("There's no profile but the user is logged in, going to setup page"),At();return}}catch{console.log("The user isn't logged in, redirecting to the log in page"),$t();return}try{const zt=await(await $.current.getSigner()).getAddress();getAnalytics().identify({ethAddress:zt});const gt=await authServerFetch("recover",{requestId:xt});ct.current=gt;const nt=await fetchProfile(zt);if(it(nt),wt.current=zt,gt.sender&>.sender!==zt.toLowerCase()){_e(1);return}vt.current=setTimeout(()=>{_e(0)},new Date(gt.expiration).getTime()-Date.now()),gt.method==="dcl_personal_sign"?_e(4):_e(8)}catch(Nt){mt(isErrorWithMessage(Nt)?Nt.message:"Unknown error"),_e(3)}})(),()=>{clearTimeout(vt.current)}),[$t,At]),reactExports.useEffect(()=>{j!==4&&j!==8&&clearTimeout(vt.current)},[j]);const Rt=reactExports.useCallback(async()=>{var Nt;tt(!0),getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.DENY_SIGN_IN});try{const zt=await((Nt=$.current)==null?void 0:Nt.getSigner());zt&&await authServerFetch("outcome",{requestId:xt,sender:await zt.getAddress(),error:{code:-32003,message:"Transaction rejected"}})}finally{tt(!1),_e(5)}},[]),Pt=reactExports.useCallback(async()=>{getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.APPROVE_SING_IN}),tt(!0);const Nt=$.current;try{if(!Nt)throw new Error("Provider not created");const zt=await Nt.getSigner(),gt=await zt.signMessage(ct.current.params[0]),nt=await authServerFetch("outcome",{requestId:xt,sender:await zt.getAddress(),result:gt});if(nt.error)throw new Error(nt.error);_e(7)}catch(zt){mt(isErrorWithMessage(zt)?zt.message:"Unknown error"),_e(6)}finally{tt(!1)}},[tt]),Ct=reactExports.useCallback(()=>{getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.DENY_WALLET_INTERACTION}),_e(9)},[]),Ot=reactExports.useCallback(async()=>{var zt;tt(!0);const Nt=$.current;try{if(!Nt)throw new Error("Provider not created");const gt=await Nt.getSigner(),nt=await Nt.send(ct.current.method,ct.current.params);getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.APPROVE_WALLET_INTERACTION,method:ct.current.method});const ot=await authServerFetch("outcome",{requestId:xt,sender:await gt.getAddress(),result:nt});if(ot.error)throw new Error(ot.error);_e(11)}catch(gt){console.error("Wallet error",JSON.stringify(gt));const nt=await((zt=$.current)==null?void 0:zt.getSigner());nt&&(isRpcError(gt)?await authServerFetch("outcome",{requestId:xt,sender:await nt.getAddress(),error:gt.error}):await authServerFetch("outcome",{requestId:xt,sender:await nt.getAddress(),error:{code:999,message:isErrorWithMessage(gt)?gt.message:"Unknown error"}})),mt(isErrorWithMessage(gt)?gt.message:"Unknown error"),_e(10)}},[]),kt=reactExports.useCallback(async Nt=>{Nt.preventDefault(),await connection$1.disconnect(),$t()},[$t]),Dt=reactExports.useCallback(Nt=>bt.showWearablePreview?jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:`${styles$a.background} ${(!wt||rt===null)&&j!==2?styles$a.emptyProfile:""}`}),jsxRuntimeExports.jsxs("div",{className:styles$a.main,children:[jsxRuntimeExports.jsxs("div",{className:styles$a.left,children:[Nt.children,Nt.canChangeAccount?jsxRuntimeExports.jsxs("div",{className:styles$a.changeAccount,children:["Use another profile?"," ",jsxRuntimeExports.jsx("a",{href:"/auth/login",onClick:kt,children:"Return to log in"})]}):null]}),jsxRuntimeExports.jsx("div",{className:styles$a.right,children:wt.current&&rt!==null?jsxRuntimeExports.jsx(CustomWearablePreview,{profile:wt.current}):null}),jsxRuntimeExports.jsx(CommunityBubble$3.CommunityBubble,{className:styles$a.communityBubble})]})]}):jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:`${styles$a.background} ${(!wt||rt===null)&&j!==2?styles$a.emptyProfile:""}`}),jsxRuntimeExports.jsxs("div",{className:styles$a.main,children:[jsxRuntimeExports.jsxs("div",{className:styles$a.left,children:[Nt.children,Nt.canChangeAccount?jsxRuntimeExports.jsxs("div",{className:styles$a.changeAccount,children:["Use another profile?"," ",jsxRuntimeExports.jsx("a",{href:"/auth/login",onClick:kt,children:"Return to log in"})]}):null]}),jsxRuntimeExports.jsx(CommunityBubble$3.CommunityBubble,{className:styles$a.communityBubble})]})]}),[j]);return j===0?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Looks like you took too long and the request has expired"}),jsxRuntimeExports.jsxs("div",{className:styles$a.description,children:["Please return to Decentraland's ",bt.explorerText," to try again."]}),jsxRuntimeExports.jsx(CloseWindow,{})]}):j===1?jsxRuntimeExports.jsxs(Dt,{canChangeAccount:!0,children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Looks like you are connected with a different account."}),jsxRuntimeExports.jsxs("div",{className:styles$a.description,children:["Please change your wallet account to the one connected to the ",bt.explorerText,"."]})]}):j===2?jsxRuntimeExports.jsx(Dt,{children:jsxRuntimeExports.jsx("div",{className:styles$a.left,children:jsxRuntimeExports.jsx(Loader_3,{active:!0,size:"huge"})})}):j===3?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"There was an error recovering the request..."}),jsxRuntimeExports.jsx("div",{className:styles$a.description,children:"The request is not available anymore. Feel free to create a new one and try again."}),jsxRuntimeExports.jsx(CloseWindow,{}),jsxRuntimeExports.jsx("div",{className:styles$a.errorMessage,children:dt})]}):j===4&&ct.current?jsxRuntimeExports.jsxs(Dt,{canChangeAccount:!0,isLoading:et,children:[jsxRuntimeExports.jsx("div",{className:styles$a.logo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Verify Sign In"}),jsxRuntimeExports.jsxs("div",{className:styles$a.description,children:["Do you see the same verification number on your ",bt.explorerText,"?"]}),jsxRuntimeExports.jsx("div",{className:styles$a.code,children:ct.current.code}),jsxRuntimeExports.jsxs("div",{className:styles$a.buttons,children:[jsxRuntimeExports.jsxs(Button$5.Button,{inverted:!0,disabled:et,onClick:Rt,className:styles$a.noButton,children:[jsxRuntimeExports.jsx(default_1,{name:"times circle"}),"No, it doesn't"]}),jsxRuntimeExports.jsxs(Button$5.Button,{inverted:!0,loading:et,disabled:et,onClick:Pt,className:styles$a.yesButton,children:[jsxRuntimeExports.jsx(default_1,{name:"check circle"}),"Yes, they are the same"]})]})]}):j===5?jsxRuntimeExports.jsxs(Dt,{canChangeAccount:!0,children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Did the number not match, or was this action not taken by you?"}),jsxRuntimeExports.jsx("div",{className:styles$a.description,children:"If you're trying to sign in, retry the action. If this action was not initiated by you, dismiss this message."}),jsxRuntimeExports.jsx(CloseWindow,{})]}):j===7?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.logo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Your account is ready!"}),jsxRuntimeExports.jsxs("div",{className:styles$a.description,children:["Return to the ",bt.explorerText," and enjoy Decentraland."]}),jsxRuntimeExports.jsx(CloseWindow,{})]}):j===8&&ct.current?jsxRuntimeExports.jsxs(Dt,{canChangeAccount:!0,isLoading:et,children:[jsxRuntimeExports.jsx("div",{className:styles$a.logo}),jsxRuntimeExports.jsxs("div",{className:styles$a.title,children:["The ",bt.explorerText," wants to interact with your wallet."]}),jsxRuntimeExports.jsx("div",{className:styles$a.description,children:"Review the following data carefully on your wallet before approving it."}),jsxRuntimeExports.jsxs("div",{className:styles$a.buttons,children:[jsxRuntimeExports.jsx(Button$5.Button,{inverted:!0,disabled:et,onClick:Ct,children:"Deny"}),jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,disabled:et,loading:et,onClick:Ot,children:"Allow"})]})]}):j===9?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Was this action not initiated by you?"}),jsxRuntimeExports.jsx("div",{className:styles$a.description,children:"If this action was not initiated by you, dismiss this message."}),jsxRuntimeExports.jsx(CloseWindow,{})]}):j===11?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.logo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Wallet interaction complete"}),jsxRuntimeExports.jsx("div",{className:styles$a.description,children:"The action has been executed successfully."}),jsxRuntimeExports.jsx(CloseWindow,{})]}):j===6||j===10?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"There was an error while trying to submit the request."}),jsxRuntimeExports.jsxs("div",{className:styles$a.description,children:["Return to the ",bt.explorerText," to try again, or contact support if the error persists."]}),jsxRuntimeExports.jsx(CloseWindow,{}),jsxRuntimeExports.jsx("div",{className:styles$a.errorMessage,children:dt})]}):null},CloseWindow=()=>jsxRuntimeExports.jsx("div",{className:styles$a.closeWindow,children:"You can close this window."}),authServerFetch=async(a,_)=>{const $=config$1.get("AUTH_SERVER_URL"),j=lookup($);await new Promise(et=>{j.on("connect",et)});const _e=await j.emitWithAck(a,_);if(j.close(),_e.error)throw new Error(_e.error);return _e};var Checkbox$4={},Checkbox$3={},Checkbox$2={},set_1,hasRequiredSet;function requireSet(){if(hasRequiredSet)return set_1;hasRequiredSet=1;var a=require_baseSet();function _($,j,_e){return $==null?$:a($,j,_e)}return set_1=_,set_1}var hasRequiredCheckbox;function requireCheckbox(){if(hasRequiredCheckbox)return Checkbox$2;hasRequiredCheckbox=1;var a=interopRequireWildcardExports,_=interopRequireDefaultExports;Checkbox$2.__esModule=!0,Checkbox$2.default=void 0;var $=_(require_extends()),j=_(requireInheritsLoose()),_e=_(requireSet()),et=_(requireInvoke());_(requireGet());var tt=_(requireIsNil()),rt=require$$4$1,it=_(require$$0$4);_(requirePropTypes());var ct=a(reactExports),dt=requireLib(),mt=function(vt){(0,j.default)(wt,vt);function wt(){for(var bt,Et=arguments.length,$t=new Array(Et),At=0;At<Et;At++)$t[At]=arguments[At];return bt=vt.call.apply(vt,[this].concat($t))||this,bt.inputRef=(0,ct.createRef)(),bt.labelRef=(0,ct.createRef)(),bt.canToggle=function(){var Rt=bt.props,Pt=Rt.disabled,Ct=Rt.radio,Ot=Rt.readOnly,kt=bt.state.checked;return!Pt&&!Ot&&!(Ct&&kt)},bt.computeTabIndex=function(){var Rt=bt.props,Pt=Rt.disabled,Ct=Rt.tabIndex;return(0,tt.default)(Ct)?Pt?-1:0:Ct},bt.handleClick=function(Rt){var Pt=bt.props.id,Ct=bt.state,Ot=Ct.checked,kt=Ct.indeterminate,Dt=(0,et.default)(bt.inputRef.current,"contains",Rt.target),Nt=(0,et.default)(bt.labelRef.current,"contains",Rt.target),zt=!Nt&&!Dt,gt=!(0,tt.default)(Pt),nt=Nt&>nt||(0,et.default)(bt.props,"onClick",Rt,(0,$.default)({},bt.props,{checked:!Ot,indeterminate:!!kt})),bt.isClickFromMouse&&(bt.isClickFromMouse=!1,Nt&&!gt&&bt.handleChange(Rt),zt&&bt.handleChange(Rt),Nt&>&&Rt.stopPropagation())},bt.handleChange=function(Rt){var Pt=bt.state.checked;bt.canToggle()&&((0,et.default)(bt.props,"onChange",Rt,(0,$.default)({},bt.props,{checked:!Pt,indeterminate:!1})),bt.setState({checked:!Pt,indeterminate:!1}))},bt.handleMouseDown=function(Rt){var Pt=bt.state,Ct=Pt.checked,Ot=Pt.indeterminate;(0,et.default)(bt.props,"onMouseDown",Rt,(0,$.default)({},bt.props,{checked:!!Ct,indeterminate:!!Ot})),Rt.defaultPrevented||(0,et.default)(bt.inputRef.current,"focus"),Rt.preventDefault()},bt.handleMouseUp=function(Rt){var Pt=bt.state,Ct=Pt.checked,Ot=Pt.indeterminate;bt.isClickFromMouse=!0,(0,et.default)(bt.props,"onMouseUp",Rt,(0,$.default)({},bt.props,{checked:!!Ct,indeterminate:!!Ot}))},bt.setIndeterminate=function(){var Rt=bt.state.indeterminate;(0,_e.default)(bt.inputRef,"current.indeterminate",!!Rt)},bt}var xt=wt.prototype;return xt.componentDidMount=function(){this.setIndeterminate()},xt.componentDidUpdate=function(){this.setIndeterminate()},xt.render=function(){var Et=this.props,$t=Et.className,At=Et.disabled,Rt=Et.label,Pt=Et.id,Ct=Et.name,Ot=Et.radio,kt=Et.readOnly,Dt=Et.slider,Nt=Et.toggle,zt=Et.type,gt=Et.value,nt=this.state,ot=nt.checked,st=nt.indeterminate,lt=(0,it.default)("ui",(0,dt.useKeyOnly)(ot,"checked"),(0,dt.useKeyOnly)(At,"disabled"),(0,dt.useKeyOnly)(st,"indeterminate"),(0,dt.useKeyOnly)((0,tt.default)(Rt),"fitted"),(0,dt.useKeyOnly)(Ot,"radio"),(0,dt.useKeyOnly)(kt,"read-only"),(0,dt.useKeyOnly)(Dt,"slider"),(0,dt.useKeyOnly)(Nt,"toggle"),"checkbox",$t),pt=(0,dt.getUnhandledProps)(wt,this.props),_t=(0,dt.getElementType)(wt,this.props),St=(0,dt.partitionHTMLProps)(pt,{htmlProps:dt.htmlInputAttrs}),yt=St[0],at=St[1],ht=(0,dt.createHTMLLabel)(Rt,{defaultProps:{htmlFor:Pt},autoGenerateKey:!1})||ct.default.createElement("label",{htmlFor:Pt});return ct.default.createElement(_t,(0,$.default)({},at,{className:lt,onClick:this.handleClick,onChange:this.handleChange,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp}),ct.default.createElement(rt.Ref,{innerRef:this.inputRef},ct.default.createElement("input",(0,$.default)({},yt,{checked:ot,className:"hidden",disabled:At,id:Pt,name:Ct,readOnly:!0,tabIndex:this.computeTabIndex(),type:zt,value:gt}))),ct.default.createElement(rt.Ref,{innerRef:this.labelRef},ht))},wt}(dt.ModernAutoControlledComponent);return Checkbox$2.default=mt,mt.handledProps=["as","checked","className","defaultChecked","defaultIndeterminate","disabled","fitted","id","indeterminate","label","name","onChange","onClick","onMouseDown","onMouseUp","radio","readOnly","slider","tabIndex","toggle","type","value"],mt.propTypes={},mt.defaultProps={type:"checkbox"},mt.autoControlledProps=["checked","indeterminate"],Checkbox$2}var _interopRequireDefault$4=interopRequireDefaultExports;Checkbox$3.__esModule=!0;var _Checkbox=_interopRequireDefault$4(requireCheckbox());Checkbox$3.default=_Checkbox.default;const Checkbox$1="";(function(a){var _=commonjsGlobal&&commonjsGlobal.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(a,"__esModule",{value:!0}),a.Checkbox=void 0;var $=Checkbox$3;Object.defineProperty(a,"Checkbox",{enumerable:!0,get:function(){return _($).default}})})(Checkbox$4);var Field$2={};const todayButton="Today",nextMonth="Next month",previousMonth="Previous month",nextYear="Next year",previousYear="Previous year",weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months=["January","February","March","April","May","June","July","August","September","October","November","December"],require$$0={todayButton,nextMonth,previousMonth,nextYear,previousYear,weekdays,months};function requiredArgs(a,_){if(_.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+_.length+" present")}function _typeof$y(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$y=function($){return typeof $}:_typeof$y=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$y(a)}function isDate(a){return requiredArgs(1,arguments),a instanceof Date||_typeof$y(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function _typeof$x(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$x=function($){return typeof $}:_typeof$x=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$x(a)}function toDate$1(a){requiredArgs(1,arguments);var _=Object.prototype.toString.call(a);return a instanceof Date||_typeof$x(a)==="object"&&_==="[object Date]"?new Date(a.getTime()):typeof a=="number"||_==="[object Number]"?new Date(a):((typeof a=="string"||_==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function isValid(a){if(requiredArgs(1,arguments),!isDate(a)&&typeof a!="number")return!1;var _=toDate$1(a);return!isNaN(Number(_))}function e(a,_,$){return a.length+1===_.length&&_.endsWith($)}function r(a,_){if(!_)return _;var $=String(_).replace(/[^\da-zA-Z\n|]/g,""),j=a.split(/[^\da-zA-Z\n|]/g).filter(Boolean).map(function(ct){return ct.length}),_e=a.split(/[\da-zA-Z\n|]/g).filter(Boolean),et=_e[0],tt=_e[_e.length-1];if(a.startsWith(et)){var rt=_e.reduce(function(ct,dt,mt){var vt=j[mt],wt=ct.value.slice(0,vt),xt=ct.value.slice(vt);return{result:wt?ct.result.concat(dt,wt):ct.result,value:xt}},{result:"",value:$}).result.slice(0,a.length);return e(rt,a,tt)?rt.concat(tt):rt}var it=j.reduce(function(ct,dt,mt){var vt=_e[mt]||"",wt="$1"+vt+"$2",xt=dt+ct.prevSlice+ct.prevSeparator.length,bt=new RegExp("(.{"+xt+"})(.)");return{prevSeparator:vt,prevSlice:xt,value:ct.value.replace(bt,wt)}},{prevSeparator:"",prevSlice:0,value:$}).value.slice(0,a.length);return e(it,a,tt)?it.concat(tt):it}function formatStringByPattern(a,_){return _===void 0?function($){return r(a,$)}:r(a,_)}var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal(a,_){if(a===_)return!0;if(a&&_&&typeof a=="object"&&typeof _=="object"){if(a.constructor!==_.constructor)return!1;var $,j,_e;if(Array.isArray(a)){if($=a.length,$!=_.length)return!1;for(j=$;j--!==0;)if(!equal(a[j],_[j]))return!1;return!0}var et;if(hasMap&&a instanceof Map&&_ instanceof Map){if(a.size!==_.size)return!1;for(et=a.entries();!(j=et.next()).done;)if(!_.has(j.value[0]))return!1;for(et=a.entries();!(j=et.next()).done;)if(!equal(j.value[1],_.get(j.value[0])))return!1;return!0}if(hasSet&&a instanceof Set&&_ instanceof Set){if(a.size!==_.size)return!1;for(et=a.entries();!(j=et.next()).done;)if(!_.has(j.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(_)){if($=a.length,$!=_.length)return!1;for(j=$;j--!==0;)if(a[j]!==_[j])return!1;return!0}if(a.constructor===RegExp)return a.source===_.source&&a.flags===_.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===_.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===_.toString();if(_e=Object.keys(a),$=_e.length,$!==Object.keys(_).length)return!1;for(j=$;j--!==0;)if(!Object.prototype.hasOwnProperty.call(_,_e[j]))return!1;if(hasElementType&&a instanceof Element)return!1;for(j=$;j--!==0;)if(!((_e[j]==="_owner"||_e[j]==="__v"||_e[j]==="__o")&&a.$$typeof)&&!equal(a[_e[j]],_[_e[j]]))return!1;return!0}return a!==a&&_!==_}var reactFastCompare=function a(_,$){try{return equal(_,$)}catch(j){if((j.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw j}};const isEqual$1=getDefaultExportFromCjs$1(reactFastCompare);var convertTokens$1={};Object.defineProperty(convertTokens$1,"__esModule",{value:!0});var tokensMap={M:"L",Mo:"Mo",MM:"LL",MMM:"LLL",MMMM:"LLLL",Q:"q",Qo:"qo",D:"d",Do:"do",DD:"dd",DDD:"D",DDDo:"Do",DDDD:"DDD",d:"i",do:"io",dd:"iiiiii",ddd:"iii",dddd:"iiii",A:"a",a:"a",aa:"aaaa",E:"i",W:"I",Wo:"Io",WW:"II",YY:"yy",YYYY:"yyyy",GG:"RR",GGGG:"RRRR",H:"H",HH:"HH",h:"h",hh:"hh",m:"m",mm:"mm",s:"s",ss:"ss",S:"S",SS:"SS",SSS:"SSS",Z:"xxx",ZZ:"xx",X:"t",x:"T"},v1tokens=Object.keys(tokensMap).sort().reverse(),tokensRegExp=new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+v1tokens.join("|")+"|.)","g");function convertTokens(a){var _=a.match(tokensRegExp);return _?_.reduce(function($,j,_e){var et=tokensMap[j];if(!et){var tt=j.match(/^\[(.+)\]$/);tt?$.textBuffer.push(tt[1]):$.textBuffer.push(j)}var rt=_e===_.length-1;return $.textBuffer.length&&(et||rt)&&($.formatBuffer.push("'"+$.textBuffer.join("")+"'"),$.textBuffer=[]),et&&$.formatBuffer.push(et),$},{formatBuffer:[],textBuffer:[]}).formatBuffer.join(""):a}var convertTokens_2=convertTokens$1.convertTokens=convertTokens;function toInteger$2(a){if(a===null||a===!0||a===!1)return NaN;var _=Number(a);return isNaN(_)?_:_<0?Math.ceil(_):Math.floor(_)}function addMilliseconds(a,_){requiredArgs(2,arguments);var $=toDate$1(a).getTime(),j=toInteger$2(_);return new Date($+j)}function subMilliseconds(a,_){requiredArgs(2,arguments);var $=toInteger$2(_);return addMilliseconds(a,-$)}var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(a){requiredArgs(1,arguments);var _=toDate$1(a),$=_.getTime();_.setUTCMonth(0,1),_.setUTCHours(0,0,0,0);var j=_.getTime(),_e=$-j;return Math.floor(_e/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(a){requiredArgs(1,arguments);var _=1,$=toDate$1(a),j=$.getUTCDay(),_e=(j<_?7:0)+j-_;return $.setUTCDate($.getUTCDate()-_e),$.setUTCHours(0,0,0,0),$}function getUTCISOWeekYear(a){requiredArgs(1,arguments);var _=toDate$1(a),$=_.getUTCFullYear(),j=new Date(0);j.setUTCFullYear($+1,0,4),j.setUTCHours(0,0,0,0);var _e=startOfUTCISOWeek(j),et=new Date(0);et.setUTCFullYear($,0,4),et.setUTCHours(0,0,0,0);var tt=startOfUTCISOWeek(et);return _.getTime()>=_e.getTime()?$+1:_.getTime()>=tt.getTime()?$:$-1}function startOfUTCISOWeekYear(a){requiredArgs(1,arguments);var _=getUTCISOWeekYear(a),$=new Date(0);$.setUTCFullYear(_,0,4),$.setUTCHours(0,0,0,0);var j=startOfUTCISOWeek($);return j}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek(a){requiredArgs(1,arguments);var _=toDate$1(a),$=startOfUTCISOWeek(_).getTime()-startOfUTCISOWeekYear(_).getTime();return Math.round($/MILLISECONDS_IN_WEEK$1)+1}var defaultOptions={};function getDefaultOptions(){return defaultOptions}function startOfUTCWeek(a,_){var $,j,_e,et,tt,rt,it,ct;requiredArgs(1,arguments);var dt=getDefaultOptions(),mt=toInteger$2(($=(j=(_e=(et=_==null?void 0:_.weekStartsOn)!==null&&et!==void 0?et:_==null||(tt=_.locale)===null||tt===void 0||(rt=tt.options)===null||rt===void 0?void 0:rt.weekStartsOn)!==null&&_e!==void 0?_e:dt.weekStartsOn)!==null&&j!==void 0?j:(it=dt.locale)===null||it===void 0||(ct=it.options)===null||ct===void 0?void 0:ct.weekStartsOn)!==null&&$!==void 0?$:0);if(!(mt>=0&&mt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var vt=toDate$1(a),wt=vt.getUTCDay(),xt=(wt<mt?7:0)+wt-mt;return vt.setUTCDate(vt.getUTCDate()-xt),vt.setUTCHours(0,0,0,0),vt}function getUTCWeekYear(a,_){var $,j,_e,et,tt,rt,it,ct;requiredArgs(1,arguments);var dt=toDate$1(a),mt=dt.getUTCFullYear(),vt=getDefaultOptions(),wt=toInteger$2(($=(j=(_e=(et=_==null?void 0:_.firstWeekContainsDate)!==null&&et!==void 0?et:_==null||(tt=_.locale)===null||tt===void 0||(rt=tt.options)===null||rt===void 0?void 0:rt.firstWeekContainsDate)!==null&&_e!==void 0?_e:vt.firstWeekContainsDate)!==null&&j!==void 0?j:(it=vt.locale)===null||it===void 0||(ct=it.options)===null||ct===void 0?void 0:ct.firstWeekContainsDate)!==null&&$!==void 0?$:1);if(!(wt>=1&&wt<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var xt=new Date(0);xt.setUTCFullYear(mt+1,0,wt),xt.setUTCHours(0,0,0,0);var bt=startOfUTCWeek(xt,_),Et=new Date(0);Et.setUTCFullYear(mt,0,wt),Et.setUTCHours(0,0,0,0);var $t=startOfUTCWeek(Et,_);return dt.getTime()>=bt.getTime()?mt+1:dt.getTime()>=$t.getTime()?mt:mt-1}function startOfUTCWeekYear(a,_){var $,j,_e,et,tt,rt,it,ct;requiredArgs(1,arguments);var dt=getDefaultOptions(),mt=toInteger$2(($=(j=(_e=(et=_==null?void 0:_.firstWeekContainsDate)!==null&&et!==void 0?et:_==null||(tt=_.locale)===null||tt===void 0||(rt=tt.options)===null||rt===void 0?void 0:rt.firstWeekContainsDate)!==null&&_e!==void 0?_e:dt.firstWeekContainsDate)!==null&&j!==void 0?j:(it=dt.locale)===null||it===void 0||(ct=it.options)===null||ct===void 0?void 0:ct.firstWeekContainsDate)!==null&&$!==void 0?$:1),vt=getUTCWeekYear(a,_),wt=new Date(0);wt.setUTCFullYear(vt,0,mt),wt.setUTCHours(0,0,0,0);var xt=startOfUTCWeek(wt,_);return xt}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(a,_){requiredArgs(1,arguments);var $=toDate$1(a),j=startOfUTCWeek($,_).getTime()-startOfUTCWeekYear($,_).getTime();return Math.round(j/MILLISECONDS_IN_WEEK)+1}function addLeadingZeros(a,_){for(var $=a<0?"-":"",j=Math.abs(a).toString();j.length<_;)j="0"+j;return $+j}var formatters$2={y:function a(_,$){var j=_.getUTCFullYear(),_e=j>0?j:1-j;return addLeadingZeros($==="yy"?_e%100:_e,$.length)},M:function a(_,$){var j=_.getUTCMonth();return $==="M"?String(j+1):addLeadingZeros(j+1,2)},d:function a(_,$){return addLeadingZeros(_.getUTCDate(),$.length)},a:function a(_,$){var j=_.getUTCHours()/12>=1?"pm":"am";switch($){case"a":case"aa":return j.toUpperCase();case"aaa":return j;case"aaaaa":return j[0];case"aaaa":default:return j==="am"?"a.m.":"p.m."}},h:function a(_,$){return addLeadingZeros(_.getUTCHours()%12||12,$.length)},H:function a(_,$){return addLeadingZeros(_.getUTCHours(),$.length)},m:function a(_,$){return addLeadingZeros(_.getUTCMinutes(),$.length)},s:function a(_,$){return addLeadingZeros(_.getUTCSeconds(),$.length)},S:function a(_,$){var j=$.length,_e=_.getUTCMilliseconds(),et=Math.floor(_e*Math.pow(10,j-3));return addLeadingZeros(et,$.length)}};const lightFormatters=formatters$2;var dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function a(_,$,j){var _e=_.getUTCFullYear()>0?1:0;switch($){case"G":case"GG":case"GGG":return j.era(_e,{width:"abbreviated"});case"GGGGG":return j.era(_e,{width:"narrow"});case"GGGG":default:return j.era(_e,{width:"wide"})}},y:function a(_,$,j){if($==="yo"){var _e=_.getUTCFullYear(),et=_e>0?_e:1-_e;return j.ordinalNumber(et,{unit:"year"})}return lightFormatters.y(_,$)},Y:function a(_,$,j,_e){var et=getUTCWeekYear(_,_e),tt=et>0?et:1-et;if($==="YY"){var rt=tt%100;return addLeadingZeros(rt,2)}return $==="Yo"?j.ordinalNumber(tt,{unit:"year"}):addLeadingZeros(tt,$.length)},R:function a(_,$){var j=getUTCISOWeekYear(_);return addLeadingZeros(j,$.length)},u:function a(_,$){var j=_.getUTCFullYear();return addLeadingZeros(j,$.length)},Q:function a(_,$,j){var _e=Math.ceil((_.getUTCMonth()+1)/3);switch($){case"Q":return String(_e);case"QQ":return addLeadingZeros(_e,2);case"Qo":return j.ordinalNumber(_e,{unit:"quarter"});case"QQQ":return j.quarter(_e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return j.quarter(_e,{width:"narrow",context:"formatting"});case"QQQQ":default:return j.quarter(_e,{width:"wide",context:"formatting"})}},q:function a(_,$,j){var _e=Math.ceil((_.getUTCMonth()+1)/3);switch($){case"q":return String(_e);case"qq":return addLeadingZeros(_e,2);case"qo":return j.ordinalNumber(_e,{unit:"quarter"});case"qqq":return j.quarter(_e,{width:"abbreviated",context:"standalone"});case"qqqqq":return j.quarter(_e,{width:"narrow",context:"standalone"});case"qqqq":default:return j.quarter(_e,{width:"wide",context:"standalone"})}},M:function a(_,$,j){var _e=_.getUTCMonth();switch($){case"M":case"MM":return lightFormatters.M(_,$);case"Mo":return j.ordinalNumber(_e+1,{unit:"month"});case"MMM":return j.month(_e,{width:"abbreviated",context:"formatting"});case"MMMMM":return j.month(_e,{width:"narrow",context:"formatting"});case"MMMM":default:return j.month(_e,{width:"wide",context:"formatting"})}},L:function a(_,$,j){var _e=_.getUTCMonth();switch($){case"L":return String(_e+1);case"LL":return addLeadingZeros(_e+1,2);case"Lo":return j.ordinalNumber(_e+1,{unit:"month"});case"LLL":return j.month(_e,{width:"abbreviated",context:"standalone"});case"LLLLL":return j.month(_e,{width:"narrow",context:"standalone"});case"LLLL":default:return j.month(_e,{width:"wide",context:"standalone"})}},w:function a(_,$,j,_e){var et=getUTCWeek(_,_e);return $==="wo"?j.ordinalNumber(et,{unit:"week"}):addLeadingZeros(et,$.length)},I:function a(_,$,j){var _e=getUTCISOWeek(_);return $==="Io"?j.ordinalNumber(_e,{unit:"week"}):addLeadingZeros(_e,$.length)},d:function a(_,$,j){return $==="do"?j.ordinalNumber(_.getUTCDate(),{unit:"date"}):lightFormatters.d(_,$)},D:function a(_,$,j){var _e=getUTCDayOfYear(_);return $==="Do"?j.ordinalNumber(_e,{unit:"dayOfYear"}):addLeadingZeros(_e,$.length)},E:function a(_,$,j){var _e=_.getUTCDay();switch($){case"E":case"EE":case"EEE":return j.day(_e,{width:"abbreviated",context:"formatting"});case"EEEEE":return j.day(_e,{width:"narrow",context:"formatting"});case"EEEEEE":return j.day(_e,{width:"short",context:"formatting"});case"EEEE":default:return j.day(_e,{width:"wide",context:"formatting"})}},e:function a(_,$,j,_e){var et=_.getUTCDay(),tt=(et-_e.weekStartsOn+8)%7||7;switch($){case"e":return String(tt);case"ee":return addLeadingZeros(tt,2);case"eo":return j.ordinalNumber(tt,{unit:"day"});case"eee":return j.day(et,{width:"abbreviated",context:"formatting"});case"eeeee":return j.day(et,{width:"narrow",context:"formatting"});case"eeeeee":return j.day(et,{width:"short",context:"formatting"});case"eeee":default:return j.day(et,{width:"wide",context:"formatting"})}},c:function a(_,$,j,_e){var et=_.getUTCDay(),tt=(et-_e.weekStartsOn+8)%7||7;switch($){case"c":return String(tt);case"cc":return addLeadingZeros(tt,$.length);case"co":return j.ordinalNumber(tt,{unit:"day"});case"ccc":return j.day(et,{width:"abbreviated",context:"standalone"});case"ccccc":return j.day(et,{width:"narrow",context:"standalone"});case"cccccc":return j.day(et,{width:"short",context:"standalone"});case"cccc":default:return j.day(et,{width:"wide",context:"standalone"})}},i:function a(_,$,j){var _e=_.getUTCDay(),et=_e===0?7:_e;switch($){case"i":return String(et);case"ii":return addLeadingZeros(et,$.length);case"io":return j.ordinalNumber(et,{unit:"day"});case"iii":return j.day(_e,{width:"abbreviated",context:"formatting"});case"iiiii":return j.day(_e,{width:"narrow",context:"formatting"});case"iiiiii":return j.day(_e,{width:"short",context:"formatting"});case"iiii":default:return j.day(_e,{width:"wide",context:"formatting"})}},a:function a(_,$,j){var _e=_.getUTCHours(),et=_e/12>=1?"pm":"am";switch($){case"a":case"aa":return j.dayPeriod(et,{width:"abbreviated",context:"formatting"});case"aaa":return j.dayPeriod(et,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return j.dayPeriod(et,{width:"narrow",context:"formatting"});case"aaaa":default:return j.dayPeriod(et,{width:"wide",context:"formatting"})}},b:function a(_,$,j){var _e=_.getUTCHours(),et;switch(_e===12?et=dayPeriodEnum.noon:_e===0?et=dayPeriodEnum.midnight:et=_e/12>=1?"pm":"am",$){case"b":case"bb":return j.dayPeriod(et,{width:"abbreviated",context:"formatting"});case"bbb":return j.dayPeriod(et,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return j.dayPeriod(et,{width:"narrow",context:"formatting"});case"bbbb":default:return j.dayPeriod(et,{width:"wide",context:"formatting"})}},B:function a(_,$,j){var _e=_.getUTCHours(),et;switch(_e>=17?et=dayPeriodEnum.evening:_e>=12?et=dayPeriodEnum.afternoon:_e>=4?et=dayPeriodEnum.morning:et=dayPeriodEnum.night,$){case"B":case"BB":case"BBB":return j.dayPeriod(et,{width:"abbreviated",context:"formatting"});case"BBBBB":return j.dayPeriod(et,{width:"narrow",context:"formatting"});case"BBBB":default:return j.dayPeriod(et,{width:"wide",context:"formatting"})}},h:function a(_,$,j){if($==="ho"){var _e=_.getUTCHours()%12;return _e===0&&(_e=12),j.ordinalNumber(_e,{unit:"hour"})}return lightFormatters.h(_,$)},H:function a(_,$,j){return $==="Ho"?j.ordinalNumber(_.getUTCHours(),{unit:"hour"}):lightFormatters.H(_,$)},K:function a(_,$,j){var _e=_.getUTCHours()%12;return $==="Ko"?j.ordinalNumber(_e,{unit:"hour"}):addLeadingZeros(_e,$.length)},k:function a(_,$,j){var _e=_.getUTCHours();return _e===0&&(_e=24),$==="ko"?j.ordinalNumber(_e,{unit:"hour"}):addLeadingZeros(_e,$.length)},m:function a(_,$,j){return $==="mo"?j.ordinalNumber(_.getUTCMinutes(),{unit:"minute"}):lightFormatters.m(_,$)},s:function a(_,$,j){return $==="so"?j.ordinalNumber(_.getUTCSeconds(),{unit:"second"}):lightFormatters.s(_,$)},S:function a(_,$){return lightFormatters.S(_,$)},X:function a(_,$,j,_e){var et=_e._originalDate||_,tt=et.getTimezoneOffset();if(tt===0)return"Z";switch($){case"X":return formatTimezoneWithOptionalMinutes(tt);case"XXXX":case"XX":return formatTimezone(tt);case"XXXXX":case"XXX":default:return formatTimezone(tt,":")}},x:function a(_,$,j,_e){var et=_e._originalDate||_,tt=et.getTimezoneOffset();switch($){case"x":return formatTimezoneWithOptionalMinutes(tt);case"xxxx":case"xx":return formatTimezone(tt);case"xxxxx":case"xxx":default:return formatTimezone(tt,":")}},O:function a(_,$,j,_e){var et=_e._originalDate||_,tt=et.getTimezoneOffset();switch($){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(tt,":");case"OOOO":default:return"GMT"+formatTimezone(tt,":")}},z:function a(_,$,j,_e){var et=_e._originalDate||_,tt=et.getTimezoneOffset();switch($){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(tt,":");case"zzzz":default:return"GMT"+formatTimezone(tt,":")}},t:function a(_,$,j,_e){var et=_e._originalDate||_,tt=Math.floor(et.getTime()/1e3);return addLeadingZeros(tt,$.length)},T:function a(_,$,j,_e){var et=_e._originalDate||_,tt=et.getTime();return addLeadingZeros(tt,$.length)}};function formatTimezoneShort(a,_){var $=a>0?"-":"+",j=Math.abs(a),_e=Math.floor(j/60),et=j%60;if(et===0)return $+String(_e);var tt=_||"";return $+String(_e)+tt+addLeadingZeros(et,2)}function formatTimezoneWithOptionalMinutes(a,_){if(a%60===0){var $=a>0?"-":"+";return $+addLeadingZeros(Math.abs(a)/60,2)}return formatTimezone(a,_)}function formatTimezone(a,_){var $=_||"",j=a>0?"-":"+",_e=Math.abs(a),et=addLeadingZeros(Math.floor(_e/60),2),tt=addLeadingZeros(_e%60,2);return j+et+$+tt}const formatters$1=formatters;var dateLongFormatter=function a(_,$){switch(_){case"P":return $.date({width:"short"});case"PP":return $.date({width:"medium"});case"PPP":return $.date({width:"long"});case"PPPP":default:return $.date({width:"full"})}},timeLongFormatter=function a(_,$){switch(_){case"p":return $.time({width:"short"});case"pp":return $.time({width:"medium"});case"ppp":return $.time({width:"long"});case"pppp":default:return $.time({width:"full"})}},dateTimeLongFormatter=function a(_,$){var j=_.match(/(P+)(p+)?/)||[],_e=j[1],et=j[2];if(!et)return dateLongFormatter(_,$);var tt;switch(_e){case"P":tt=$.dateTime({width:"short"});break;case"PP":tt=$.dateTime({width:"medium"});break;case"PPP":tt=$.dateTime({width:"long"});break;case"PPPP":default:tt=$.dateTime({width:"full"});break}return tt.replace("{{date}}",dateLongFormatter(_e,$)).replace("{{time}}",timeLongFormatter(et,$))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter};const longFormatters$1=longFormatters;function getTimezoneOffsetInMilliseconds(a){var _=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return _.setUTCFullYear(a.getFullYear()),a.getTime()-_.getTime()}var protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(a){return protectedDayOfYearTokens.indexOf(a)!==-1}function isProtectedWeekYearToken(a){return protectedWeekYearTokens.indexOf(a)!==-1}function throwProtectedError(a,_,$){if(a==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(_,"`) for formatting years to the input `").concat($,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(_,"`) for formatting years to the input `").concat($,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(_,"`) for formatting days of the month to the input `").concat($,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(_,"`) for formatting days of the month to the input `").concat($,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=function a(_,$,j){var _e,et=formatDistanceLocale[_];return typeof et=="string"?_e=et:$===1?_e=et.one:_e=et.other.replace("{{count}}",$.toString()),j!=null&&j.addSuffix?j.comparison&&j.comparison>0?"in "+_e:_e+" ago":_e};const formatDistance$1=formatDistance;function buildFormatLongFn(a){return function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=_.width?String(_.width):a.defaultWidth,j=a.formats[$]||a.formats[a.defaultWidth];return j}}var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})};const formatLong$1=formatLong;var formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=function a(_,$,j,_e){return formatRelativeLocale[_]};const formatRelative$1=formatRelative;function buildLocalizeFn(a){return function(_,$){var j=$!=null&&$.context?String($.context):"standalone",_e;if(j==="formatting"&&a.formattingValues){var et=a.defaultFormattingWidth||a.defaultWidth,tt=$!=null&&$.width?String($.width):et;_e=a.formattingValues[tt]||a.formattingValues[et]}else{var rt=a.defaultWidth,it=$!=null&&$.width?String($.width):a.defaultWidth;_e=a.values[it]||a.values[rt]}var ct=a.argumentCallback?a.argumentCallback(_):_;return _e[ct]}}var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=function a(_,$){var j=Number(_),_e=j%100;if(_e>20||_e<10)switch(_e%10){case 1:return j+"st";case 2:return j+"nd";case 3:return j+"rd"}return j+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function a(_){return _-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};const localize$1=localize;function buildMatchFn(a){return function(_){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=$.width,_e=j&&a.matchPatterns[j]||a.matchPatterns[a.defaultMatchWidth],et=_.match(_e);if(!et)return null;var tt=et[0],rt=j&&a.parsePatterns[j]||a.parsePatterns[a.defaultParseWidth],it=Array.isArray(rt)?findIndex$1(rt,function(mt){return mt.test(tt)}):findKey(rt,function(mt){return mt.test(tt)}),ct;ct=a.valueCallback?a.valueCallback(it):it,ct=$.valueCallback?$.valueCallback(ct):ct;var dt=_.slice(tt.length);return{value:ct,rest:dt}}}function findKey(a,_){for(var $ in a)if(a.hasOwnProperty($)&&_(a[$]))return $}function findIndex$1(a,_){for(var $=0;$<a.length;$++)if(_(a[$]))return $}function buildMatchPatternFn(a){return function(_){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=_.match(a.matchPattern);if(!j)return null;var _e=j[0],et=_.match(a.parsePattern);if(!et)return null;var tt=a.valueCallback?a.valueCallback(et[0]):et[0];tt=$.valueCallback?$.valueCallback(tt):tt;var rt=_.slice(_e.length);return{value:tt,rest:rt}}}var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function a(_){return parseInt(_,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function a(_){return _+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};const match$1=match;var locale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$1,options:{weekStartsOn:0,firstWeekContainsDate:1}};const defaultLocale=locale;var formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(a,_,$){var j,_e,et,tt,rt,it,ct,dt,mt,vt,wt,xt,bt,Et,$t,At,Rt,Pt;requiredArgs(2,arguments);var Ct=String(_),Ot=getDefaultOptions(),kt=(j=(_e=$==null?void 0:$.locale)!==null&&_e!==void 0?_e:Ot.locale)!==null&&j!==void 0?j:defaultLocale,Dt=toInteger$2((et=(tt=(rt=(it=$==null?void 0:$.firstWeekContainsDate)!==null&&it!==void 0?it:$==null||(ct=$.locale)===null||ct===void 0||(dt=ct.options)===null||dt===void 0?void 0:dt.firstWeekContainsDate)!==null&&rt!==void 0?rt:Ot.firstWeekContainsDate)!==null&&tt!==void 0?tt:(mt=Ot.locale)===null||mt===void 0||(vt=mt.options)===null||vt===void 0?void 0:vt.firstWeekContainsDate)!==null&&et!==void 0?et:1);if(!(Dt>=1&&Dt<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Nt=toInteger$2((wt=(xt=(bt=(Et=$==null?void 0:$.weekStartsOn)!==null&&Et!==void 0?Et:$==null||($t=$.locale)===null||$t===void 0||(At=$t.options)===null||At===void 0?void 0:At.weekStartsOn)!==null&&bt!==void 0?bt:Ot.weekStartsOn)!==null&&xt!==void 0?xt:(Rt=Ot.locale)===null||Rt===void 0||(Pt=Rt.options)===null||Pt===void 0?void 0:Pt.weekStartsOn)!==null&&wt!==void 0?wt:0);if(!(Nt>=0&&Nt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!kt.localize)throw new RangeError("locale must contain localize property");if(!kt.formatLong)throw new RangeError("locale must contain formatLong property");var zt=toDate$1(a);if(!isValid(zt))throw new RangeError("Invalid time value");var gt=getTimezoneOffsetInMilliseconds(zt),nt=subMilliseconds(zt,gt),ot={firstWeekContainsDate:Dt,weekStartsOn:Nt,locale:kt,_originalDate:zt},st=Ct.match(longFormattingTokensRegExp$1).map(function(lt){var pt=lt[0];if(pt==="p"||pt==="P"){var _t=longFormatters$1[pt];return _t(lt,kt.formatLong)}return lt}).join("").match(formattingTokensRegExp$1).map(function(lt){if(lt==="''")return"'";var pt=lt[0];if(pt==="'")return cleanEscapedString$1(lt);var _t=formatters$1[pt];if(_t)return!($!=null&&$.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(lt)&&throwProtectedError(lt,_,String(a)),!($!=null&&$.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(lt)&&throwProtectedError(lt,_,String(a)),_t(nt,lt,kt.localize,ot);if(pt.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pt+"`");return lt}).join("");return st}function cleanEscapedString$1(a){var _=a.match(escapedStringRegExp$1);return _?_[1].replace(doubleQuoteRegExp$1,"'"):a}function isBefore$1(a,_){requiredArgs(2,arguments);var $=toDate$1(a),j=toDate$1(_);return $.getTime()<j.getTime()}function assign(a,_){if(a==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var $ in _)Object.prototype.hasOwnProperty.call(_,$)&&(a[$]=_[$]);return a}function _typeof$w(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$w=function($){return typeof $}:_typeof$w=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$w(a)}function _inherits$v(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$w(a,_)}function _setPrototypeOf$w(a,_){return _setPrototypeOf$w=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$w(a,_)}function _createSuper$v(a){var _=_isNativeReflectConstruct$v();return function(){var j=_getPrototypeOf$v(a),_e;if(_){var et=_getPrototypeOf$v(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$v(this,_e)}}function _possibleConstructorReturn$v(a,_){return _&&(_typeof$w(_)==="object"||typeof _=="function")?_:_assertThisInitialized$w(a)}function _assertThisInitialized$w(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$v(a){return _getPrototypeOf$v=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$v(a)}function _classCallCheck$w(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$x(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$x(a,_,$){return _&&_defineProperties$x(a.prototype,_),$&&_defineProperties$x(a,$),a}function _defineProperty$v(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var TIMEZONE_UNIT_PRIORITY=10,Setter=function(){function a(){_classCallCheck$w(this,a),_defineProperty$v(this,"subPriority",0)}return _createClass$x(a,[{key:"validate",value:function($,j){return!0}}]),a}(),ValueSetter=function(a){_inherits$v($,a);var _=_createSuper$v($);function $(j,_e,et,tt,rt){var it;return _classCallCheck$w(this,$),it=_.call(this),it.value=j,it.validateValue=_e,it.setValue=et,it.priority=tt,rt&&(it.subPriority=rt),it}return _createClass$x($,[{key:"validate",value:function(_e,et){return this.validateValue(_e,this.value,et)}},{key:"set",value:function(_e,et,tt){return this.setValue(_e,et,this.value,tt)}}]),$}(Setter),DateToSystemTimezoneSetter=function(a){_inherits$v($,a);var _=_createSuper$v($);function $(){var j;_classCallCheck$w(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$v(_assertThisInitialized$w(j),"priority",TIMEZONE_UNIT_PRIORITY),_defineProperty$v(_assertThisInitialized$w(j),"subPriority",-1),j}return _createClass$x($,[{key:"set",value:function(_e,et){if(et.timestampIsSet)return _e;var tt=new Date(0);return tt.setFullYear(_e.getUTCFullYear(),_e.getUTCMonth(),_e.getUTCDate()),tt.setHours(_e.getUTCHours(),_e.getUTCMinutes(),_e.getUTCSeconds(),_e.getUTCMilliseconds()),tt}}]),$}(Setter);function _classCallCheck$v(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$w(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$w(a,_,$){return _&&_defineProperties$w(a.prototype,_),$&&_defineProperties$w(a,$),a}var Parser=function(){function a(){_classCallCheck$v(this,a)}return _createClass$w(a,[{key:"run",value:function($,j,_e,et){var tt=this.parse($,j,_e,et);return tt?{setter:new ValueSetter(tt.value,this.validate,this.set,this.priority,this.subPriority),rest:tt.rest}:null}},{key:"validate",value:function($,j,_e){return!0}}]),a}();function _typeof$v(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$v=function($){return typeof $}:_typeof$v=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$v(a)}function _classCallCheck$u(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$v(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$v(a,_,$){return _&&_defineProperties$v(a.prototype,_),$&&_defineProperties$v(a,$),a}function _inherits$u(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$v(a,_)}function _setPrototypeOf$v(a,_){return _setPrototypeOf$v=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$v(a,_)}function _createSuper$u(a){var _=_isNativeReflectConstruct$u();return function(){var j=_getPrototypeOf$u(a),_e;if(_){var et=_getPrototypeOf$u(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$u(this,_e)}}function _possibleConstructorReturn$u(a,_){return _&&(_typeof$v(_)==="object"||typeof _=="function")?_:_assertThisInitialized$v(a)}function _assertThisInitialized$v(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$u(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$u(a){return _getPrototypeOf$u=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$u(a)}function _defineProperty$u(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var EraParser=function(a){_inherits$u($,a);var _=_createSuper$u($);function $(){var j;_classCallCheck$u(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$u(_assertThisInitialized$v(j),"priority",140),_defineProperty$u(_assertThisInitialized$v(j),"incompatibleTokens",["R","u","t","T"]),j}return _createClass$v($,[{key:"parse",value:function(_e,et,tt){switch(et){case"G":case"GG":case"GGG":return tt.era(_e,{width:"abbreviated"})||tt.era(_e,{width:"narrow"});case"GGGGG":return tt.era(_e,{width:"narrow"});case"GGGG":default:return tt.era(_e,{width:"wide"})||tt.era(_e,{width:"abbreviated"})||tt.era(_e,{width:"narrow"})}}},{key:"set",value:function(_e,et,tt){return et.era=tt,_e.setUTCFullYear(tt,0,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser),millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3,numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(a,_){return a&&{value:_(a.value),rest:a.rest}}function parseNumericPattern(a,_){var $=_.match(a);return $?{value:parseInt($[0],10),rest:_.slice($[0].length)}:null}function parseTimezonePattern(a,_){var $=_.match(a);if(!$)return null;if($[0]==="Z")return{value:0,rest:_.slice(1)};var j=$[1]==="+"?1:-1,_e=$[2]?parseInt($[2],10):0,et=$[3]?parseInt($[3],10):0,tt=$[5]?parseInt($[5],10):0;return{value:j*(_e*millisecondsInHour+et*millisecondsInMinute+tt*millisecondsInSecond),rest:_.slice($[0].length)}}function parseAnyDigitsSigned(a){return parseNumericPattern(numericPatterns.anyDigitsSigned,a)}function parseNDigits(a,_){switch(a){case 1:return parseNumericPattern(numericPatterns.singleDigit,_);case 2:return parseNumericPattern(numericPatterns.twoDigits,_);case 3:return parseNumericPattern(numericPatterns.threeDigits,_);case 4:return parseNumericPattern(numericPatterns.fourDigits,_);default:return parseNumericPattern(new RegExp("^\\d{1,"+a+"}"),_)}}function parseNDigitsSigned(a,_){switch(a){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,_);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,_);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,_);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,_);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+a+"}"),_)}}function dayPeriodEnumToHours(a){switch(a){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function normalizeTwoDigitYear(a,_){var $=_>0,j=$?_:1-_,_e;if(j<=50)_e=a||100;else{var et=j+50,tt=Math.floor(et/100)*100,rt=a>=et%100;_e=a+tt-(rt?100:0)}return $?_e:1-_e}function isLeapYearIndex(a){return a%400===0||a%4===0&&a%100!==0}function _typeof$u(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$u=function($){return typeof $}:_typeof$u=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$u(a)}function _classCallCheck$t(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$u(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$u(a,_,$){return _&&_defineProperties$u(a.prototype,_),$&&_defineProperties$u(a,$),a}function _inherits$t(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$u(a,_)}function _setPrototypeOf$u(a,_){return _setPrototypeOf$u=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$u(a,_)}function _createSuper$t(a){var _=_isNativeReflectConstruct$t();return function(){var j=_getPrototypeOf$t(a),_e;if(_){var et=_getPrototypeOf$t(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$t(this,_e)}}function _possibleConstructorReturn$t(a,_){return _&&(_typeof$u(_)==="object"||typeof _=="function")?_:_assertThisInitialized$u(a)}function _assertThisInitialized$u(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$t(a){return _getPrototypeOf$t=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$t(a)}function _defineProperty$t(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var YearParser=function(a){_inherits$t($,a);var _=_createSuper$t($);function $(){var j;_classCallCheck$t(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$t(_assertThisInitialized$u(j),"priority",130),_defineProperty$t(_assertThisInitialized$u(j),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),j}return _createClass$u($,[{key:"parse",value:function(_e,et,tt){var rt=function(ct){return{year:ct,isTwoDigitYear:et==="yy"}};switch(et){case"y":return mapValue(parseNDigits(4,_e),rt);case"yo":return mapValue(tt.ordinalNumber(_e,{unit:"year"}),rt);default:return mapValue(parseNDigits(et.length,_e),rt)}}},{key:"validate",value:function(_e,et){return et.isTwoDigitYear||et.year>0}},{key:"set",value:function(_e,et,tt){var rt=_e.getUTCFullYear();if(tt.isTwoDigitYear){var it=normalizeTwoDigitYear(tt.year,rt);return _e.setUTCFullYear(it,0,1),_e.setUTCHours(0,0,0,0),_e}var ct=!("era"in et)||et.era===1?tt.year:1-tt.year;return _e.setUTCFullYear(ct,0,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$t(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$t=function($){return typeof $}:_typeof$t=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$t(a)}function _classCallCheck$s(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$t(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$t(a,_,$){return _&&_defineProperties$t(a.prototype,_),$&&_defineProperties$t(a,$),a}function _inherits$s(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$t(a,_)}function _setPrototypeOf$t(a,_){return _setPrototypeOf$t=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$t(a,_)}function _createSuper$s(a){var _=_isNativeReflectConstruct$s();return function(){var j=_getPrototypeOf$s(a),_e;if(_){var et=_getPrototypeOf$s(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$s(this,_e)}}function _possibleConstructorReturn$s(a,_){return _&&(_typeof$t(_)==="object"||typeof _=="function")?_:_assertThisInitialized$t(a)}function _assertThisInitialized$t(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$s(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$s(a){return _getPrototypeOf$s=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$s(a)}function _defineProperty$s(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var LocalWeekYearParser=function(a){_inherits$s($,a);var _=_createSuper$s($);function $(){var j;_classCallCheck$s(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$s(_assertThisInitialized$t(j),"priority",130),_defineProperty$s(_assertThisInitialized$t(j),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),j}return _createClass$t($,[{key:"parse",value:function(_e,et,tt){var rt=function(ct){return{year:ct,isTwoDigitYear:et==="YY"}};switch(et){case"Y":return mapValue(parseNDigits(4,_e),rt);case"Yo":return mapValue(tt.ordinalNumber(_e,{unit:"year"}),rt);default:return mapValue(parseNDigits(et.length,_e),rt)}}},{key:"validate",value:function(_e,et){return et.isTwoDigitYear||et.year>0}},{key:"set",value:function(_e,et,tt,rt){var it=getUTCWeekYear(_e,rt);if(tt.isTwoDigitYear){var ct=normalizeTwoDigitYear(tt.year,it);return _e.setUTCFullYear(ct,0,rt.firstWeekContainsDate),_e.setUTCHours(0,0,0,0),startOfUTCWeek(_e,rt)}var dt=!("era"in et)||et.era===1?tt.year:1-tt.year;return _e.setUTCFullYear(dt,0,rt.firstWeekContainsDate),_e.setUTCHours(0,0,0,0),startOfUTCWeek(_e,rt)}}]),$}(Parser);function _typeof$s(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$s=function($){return typeof $}:_typeof$s=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$s(a)}function _classCallCheck$r(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$s(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$s(a,_,$){return _&&_defineProperties$s(a.prototype,_),$&&_defineProperties$s(a,$),a}function _inherits$r(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$s(a,_)}function _setPrototypeOf$s(a,_){return _setPrototypeOf$s=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$s(a,_)}function _createSuper$r(a){var _=_isNativeReflectConstruct$r();return function(){var j=_getPrototypeOf$r(a),_e;if(_){var et=_getPrototypeOf$r(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$r(this,_e)}}function _possibleConstructorReturn$r(a,_){return _&&(_typeof$s(_)==="object"||typeof _=="function")?_:_assertThisInitialized$s(a)}function _assertThisInitialized$s(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$r(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$r(a){return _getPrototypeOf$r=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$r(a)}function _defineProperty$r(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ISOWeekYearParser=function(a){_inherits$r($,a);var _=_createSuper$r($);function $(){var j;_classCallCheck$r(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$r(_assertThisInitialized$s(j),"priority",130),_defineProperty$r(_assertThisInitialized$s(j),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),j}return _createClass$s($,[{key:"parse",value:function(_e,et){return parseNDigitsSigned(et==="R"?4:et.length,_e)}},{key:"set",value:function(_e,et,tt){var rt=new Date(0);return rt.setUTCFullYear(tt,0,4),rt.setUTCHours(0,0,0,0),startOfUTCISOWeek(rt)}}]),$}(Parser);function _typeof$r(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$r=function($){return typeof $}:_typeof$r=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$r(a)}function _classCallCheck$q(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$r(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$r(a,_,$){return _&&_defineProperties$r(a.prototype,_),$&&_defineProperties$r(a,$),a}function _inherits$q(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$r(a,_)}function _setPrototypeOf$r(a,_){return _setPrototypeOf$r=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$r(a,_)}function _createSuper$q(a){var _=_isNativeReflectConstruct$q();return function(){var j=_getPrototypeOf$q(a),_e;if(_){var et=_getPrototypeOf$q(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$q(this,_e)}}function _possibleConstructorReturn$q(a,_){return _&&(_typeof$r(_)==="object"||typeof _=="function")?_:_assertThisInitialized$r(a)}function _assertThisInitialized$r(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$q(a){return _getPrototypeOf$q=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$q(a)}function _defineProperty$q(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ExtendedYearParser=function(a){_inherits$q($,a);var _=_createSuper$q($);function $(){var j;_classCallCheck$q(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$q(_assertThisInitialized$r(j),"priority",130),_defineProperty$q(_assertThisInitialized$r(j),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),j}return _createClass$r($,[{key:"parse",value:function(_e,et){return parseNDigitsSigned(et==="u"?4:et.length,_e)}},{key:"set",value:function(_e,et,tt){return _e.setUTCFullYear(tt,0,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$q(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$q=function($){return typeof $}:_typeof$q=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$q(a)}function _classCallCheck$p(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$q(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$q(a,_,$){return _&&_defineProperties$q(a.prototype,_),$&&_defineProperties$q(a,$),a}function _inherits$p(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$q(a,_)}function _setPrototypeOf$q(a,_){return _setPrototypeOf$q=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$q(a,_)}function _createSuper$p(a){var _=_isNativeReflectConstruct$p();return function(){var j=_getPrototypeOf$p(a),_e;if(_){var et=_getPrototypeOf$p(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$p(this,_e)}}function _possibleConstructorReturn$p(a,_){return _&&(_typeof$q(_)==="object"||typeof _=="function")?_:_assertThisInitialized$q(a)}function _assertThisInitialized$q(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$p(a){return _getPrototypeOf$p=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$p(a)}function _defineProperty$p(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var QuarterParser=function(a){_inherits$p($,a);var _=_createSuper$p($);function $(){var j;_classCallCheck$p(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$p(_assertThisInitialized$q(j),"priority",120),_defineProperty$p(_assertThisInitialized$q(j),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),j}return _createClass$q($,[{key:"parse",value:function(_e,et,tt){switch(et){case"Q":case"QQ":return parseNDigits(et.length,_e);case"Qo":return tt.ordinalNumber(_e,{unit:"quarter"});case"QQQ":return tt.quarter(_e,{width:"abbreviated",context:"formatting"})||tt.quarter(_e,{width:"narrow",context:"formatting"});case"QQQQQ":return tt.quarter(_e,{width:"narrow",context:"formatting"});case"QQQQ":default:return tt.quarter(_e,{width:"wide",context:"formatting"})||tt.quarter(_e,{width:"abbreviated",context:"formatting"})||tt.quarter(_e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(_e,et){return et>=1&&et<=4}},{key:"set",value:function(_e,et,tt){return _e.setUTCMonth((tt-1)*3,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$p(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$p=function($){return typeof $}:_typeof$p=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$p(a)}function _classCallCheck$o(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$p(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$p(a,_,$){return _&&_defineProperties$p(a.prototype,_),$&&_defineProperties$p(a,$),a}function _inherits$o(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$p(a,_)}function _setPrototypeOf$p(a,_){return _setPrototypeOf$p=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$p(a,_)}function _createSuper$o(a){var _=_isNativeReflectConstruct$o();return function(){var j=_getPrototypeOf$o(a),_e;if(_){var et=_getPrototypeOf$o(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$o(this,_e)}}function _possibleConstructorReturn$o(a,_){return _&&(_typeof$p(_)==="object"||typeof _=="function")?_:_assertThisInitialized$p(a)}function _assertThisInitialized$p(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$o(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$o(a){return _getPrototypeOf$o=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$o(a)}function _defineProperty$o(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var StandAloneQuarterParser=function(a){_inherits$o($,a);var _=_createSuper$o($);function $(){var j;_classCallCheck$o(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$o(_assertThisInitialized$p(j),"priority",120),_defineProperty$o(_assertThisInitialized$p(j),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),j}return _createClass$p($,[{key:"parse",value:function(_e,et,tt){switch(et){case"q":case"qq":return parseNDigits(et.length,_e);case"qo":return tt.ordinalNumber(_e,{unit:"quarter"});case"qqq":return tt.quarter(_e,{width:"abbreviated",context:"standalone"})||tt.quarter(_e,{width:"narrow",context:"standalone"});case"qqqqq":return tt.quarter(_e,{width:"narrow",context:"standalone"});case"qqqq":default:return tt.quarter(_e,{width:"wide",context:"standalone"})||tt.quarter(_e,{width:"abbreviated",context:"standalone"})||tt.quarter(_e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(_e,et){return et>=1&&et<=4}},{key:"set",value:function(_e,et,tt){return _e.setUTCMonth((tt-1)*3,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$o(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$o=function($){return typeof $}:_typeof$o=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$o(a)}function _classCallCheck$n(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$o(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$o(a,_,$){return _&&_defineProperties$o(a.prototype,_),$&&_defineProperties$o(a,$),a}function _inherits$n(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$o(a,_)}function _setPrototypeOf$o(a,_){return _setPrototypeOf$o=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$o(a,_)}function _createSuper$n(a){var _=_isNativeReflectConstruct$n();return function(){var j=_getPrototypeOf$n(a),_e;if(_){var et=_getPrototypeOf$n(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$n(this,_e)}}function _possibleConstructorReturn$n(a,_){return _&&(_typeof$o(_)==="object"||typeof _=="function")?_:_assertThisInitialized$o(a)}function _assertThisInitialized$o(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$n(a){return _getPrototypeOf$n=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$n(a)}function _defineProperty$n(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var MonthParser=function(a){_inherits$n($,a);var _=_createSuper$n($);function $(){var j;_classCallCheck$n(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$n(_assertThisInitialized$o(j),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_defineProperty$n(_assertThisInitialized$o(j),"priority",110),j}return _createClass$o($,[{key:"parse",value:function(_e,et,tt){var rt=function(ct){return ct-1};switch(et){case"M":return mapValue(parseNumericPattern(numericPatterns.month,_e),rt);case"MM":return mapValue(parseNDigits(2,_e),rt);case"Mo":return mapValue(tt.ordinalNumber(_e,{unit:"month"}),rt);case"MMM":return tt.month(_e,{width:"abbreviated",context:"formatting"})||tt.month(_e,{width:"narrow",context:"formatting"});case"MMMMM":return tt.month(_e,{width:"narrow",context:"formatting"});case"MMMM":default:return tt.month(_e,{width:"wide",context:"formatting"})||tt.month(_e,{width:"abbreviated",context:"formatting"})||tt.month(_e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(_e,et){return et>=0&&et<=11}},{key:"set",value:function(_e,et,tt){return _e.setUTCMonth(tt,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$n(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$n=function($){return typeof $}:_typeof$n=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$n(a)}function _classCallCheck$m(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$n(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$n(a,_,$){return _&&_defineProperties$n(a.prototype,_),$&&_defineProperties$n(a,$),a}function _inherits$m(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$n(a,_)}function _setPrototypeOf$n(a,_){return _setPrototypeOf$n=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$n(a,_)}function _createSuper$m(a){var _=_isNativeReflectConstruct$m();return function(){var j=_getPrototypeOf$m(a),_e;if(_){var et=_getPrototypeOf$m(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$m(this,_e)}}function _possibleConstructorReturn$m(a,_){return _&&(_typeof$n(_)==="object"||typeof _=="function")?_:_assertThisInitialized$n(a)}function _assertThisInitialized$n(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$m(a){return _getPrototypeOf$m=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$m(a)}function _defineProperty$m(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var StandAloneMonthParser=function(a){_inherits$m($,a);var _=_createSuper$m($);function $(){var j;_classCallCheck$m(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$m(_assertThisInitialized$n(j),"priority",110),_defineProperty$m(_assertThisInitialized$n(j),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),j}return _createClass$n($,[{key:"parse",value:function(_e,et,tt){var rt=function(ct){return ct-1};switch(et){case"L":return mapValue(parseNumericPattern(numericPatterns.month,_e),rt);case"LL":return mapValue(parseNDigits(2,_e),rt);case"Lo":return mapValue(tt.ordinalNumber(_e,{unit:"month"}),rt);case"LLL":return tt.month(_e,{width:"abbreviated",context:"standalone"})||tt.month(_e,{width:"narrow",context:"standalone"});case"LLLLL":return tt.month(_e,{width:"narrow",context:"standalone"});case"LLLL":default:return tt.month(_e,{width:"wide",context:"standalone"})||tt.month(_e,{width:"abbreviated",context:"standalone"})||tt.month(_e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(_e,et){return et>=0&&et<=11}},{key:"set",value:function(_e,et,tt){return _e.setUTCMonth(tt,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function setUTCWeek(a,_,$){requiredArgs(2,arguments);var j=toDate$1(a),_e=toInteger$2(_),et=getUTCWeek(j,$)-_e;return j.setUTCDate(j.getUTCDate()-et*7),j}function _typeof$m(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$m=function($){return typeof $}:_typeof$m=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$m(a)}function _classCallCheck$l(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$m(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$m(a,_,$){return _&&_defineProperties$m(a.prototype,_),$&&_defineProperties$m(a,$),a}function _inherits$l(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$m(a,_)}function _setPrototypeOf$m(a,_){return _setPrototypeOf$m=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$m(a,_)}function _createSuper$l(a){var _=_isNativeReflectConstruct$l();return function(){var j=_getPrototypeOf$l(a),_e;if(_){var et=_getPrototypeOf$l(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$l(this,_e)}}function _possibleConstructorReturn$l(a,_){return _&&(_typeof$m(_)==="object"||typeof _=="function")?_:_assertThisInitialized$m(a)}function _assertThisInitialized$m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$l(a){return _getPrototypeOf$l=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$l(a)}function _defineProperty$l(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var LocalWeekParser=function(a){_inherits$l($,a);var _=_createSuper$l($);function $(){var j;_classCallCheck$l(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$l(_assertThisInitialized$m(j),"priority",100),_defineProperty$l(_assertThisInitialized$m(j),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),j}return _createClass$m($,[{key:"parse",value:function(_e,et,tt){switch(et){case"w":return parseNumericPattern(numericPatterns.week,_e);case"wo":return tt.ordinalNumber(_e,{unit:"week"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=1&&et<=53}},{key:"set",value:function(_e,et,tt,rt){return startOfUTCWeek(setUTCWeek(_e,tt,rt),rt)}}]),$}(Parser);function setUTCISOWeek(a,_){requiredArgs(2,arguments);var $=toDate$1(a),j=toInteger$2(_),_e=getUTCISOWeek($)-j;return $.setUTCDate($.getUTCDate()-_e*7),$}function _typeof$l(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$l=function($){return typeof $}:_typeof$l=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$l(a)}function _classCallCheck$k(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$l(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$l(a,_,$){return _&&_defineProperties$l(a.prototype,_),$&&_defineProperties$l(a,$),a}function _inherits$k(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$l(a,_)}function _setPrototypeOf$l(a,_){return _setPrototypeOf$l=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$l(a,_)}function _createSuper$k(a){var _=_isNativeReflectConstruct$k();return function(){var j=_getPrototypeOf$k(a),_e;if(_){var et=_getPrototypeOf$k(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$k(this,_e)}}function _possibleConstructorReturn$k(a,_){return _&&(_typeof$l(_)==="object"||typeof _=="function")?_:_assertThisInitialized$l(a)}function _assertThisInitialized$l(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$k(a){return _getPrototypeOf$k=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$k(a)}function _defineProperty$k(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ISOWeekParser=function(a){_inherits$k($,a);var _=_createSuper$k($);function $(){var j;_classCallCheck$k(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$k(_assertThisInitialized$l(j),"priority",100),_defineProperty$k(_assertThisInitialized$l(j),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),j}return _createClass$l($,[{key:"parse",value:function(_e,et,tt){switch(et){case"I":return parseNumericPattern(numericPatterns.week,_e);case"Io":return tt.ordinalNumber(_e,{unit:"week"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=1&&et<=53}},{key:"set",value:function(_e,et,tt){return startOfUTCISOWeek(setUTCISOWeek(_e,tt))}}]),$}(Parser);function _typeof$k(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$k=function($){return typeof $}:_typeof$k=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$k(a)}function _classCallCheck$j(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$k(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$k(a,_,$){return _&&_defineProperties$k(a.prototype,_),$&&_defineProperties$k(a,$),a}function _inherits$j(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$k(a,_)}function _setPrototypeOf$k(a,_){return _setPrototypeOf$k=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$k(a,_)}function _createSuper$j(a){var _=_isNativeReflectConstruct$j();return function(){var j=_getPrototypeOf$j(a),_e;if(_){var et=_getPrototypeOf$j(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$j(this,_e)}}function _possibleConstructorReturn$j(a,_){return _&&(_typeof$k(_)==="object"||typeof _=="function")?_:_assertThisInitialized$k(a)}function _assertThisInitialized$k(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$j(a){return _getPrototypeOf$j=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$j(a)}function _defineProperty$j(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31],DateParser=function(a){_inherits$j($,a);var _=_createSuper$j($);function $(){var j;_classCallCheck$j(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$j(_assertThisInitialized$k(j),"priority",90),_defineProperty$j(_assertThisInitialized$k(j),"subPriority",1),_defineProperty$j(_assertThisInitialized$k(j),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),j}return _createClass$k($,[{key:"parse",value:function(_e,et,tt){switch(et){case"d":return parseNumericPattern(numericPatterns.date,_e);case"do":return tt.ordinalNumber(_e,{unit:"date"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){var tt=_e.getUTCFullYear(),rt=isLeapYearIndex(tt),it=_e.getUTCMonth();return rt?et>=1&&et<=DAYS_IN_MONTH_LEAP_YEAR[it]:et>=1&&et<=DAYS_IN_MONTH[it]}},{key:"set",value:function(_e,et,tt){return _e.setUTCDate(tt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$j(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$j=function($){return typeof $}:_typeof$j=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$j(a)}function _classCallCheck$i(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$j(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$j(a,_,$){return _&&_defineProperties$j(a.prototype,_),$&&_defineProperties$j(a,$),a}function _inherits$i(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$j(a,_)}function _setPrototypeOf$j(a,_){return _setPrototypeOf$j=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$j(a,_)}function _createSuper$i(a){var _=_isNativeReflectConstruct$i();return function(){var j=_getPrototypeOf$i(a),_e;if(_){var et=_getPrototypeOf$i(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$i(this,_e)}}function _possibleConstructorReturn$i(a,_){return _&&(_typeof$j(_)==="object"||typeof _=="function")?_:_assertThisInitialized$j(a)}function _assertThisInitialized$j(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$i(a){return _getPrototypeOf$i=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$i(a)}function _defineProperty$i(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var DayOfYearParser=function(a){_inherits$i($,a);var _=_createSuper$i($);function $(){var j;_classCallCheck$i(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$i(_assertThisInitialized$j(j),"priority",90),_defineProperty$i(_assertThisInitialized$j(j),"subpriority",1),_defineProperty$i(_assertThisInitialized$j(j),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),j}return _createClass$j($,[{key:"parse",value:function(_e,et,tt){switch(et){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,_e);case"Do":return tt.ordinalNumber(_e,{unit:"date"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){var tt=_e.getUTCFullYear(),rt=isLeapYearIndex(tt);return rt?et>=1&&et<=366:et>=1&&et<=365}},{key:"set",value:function(_e,et,tt){return _e.setUTCMonth(0,tt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function setUTCDay(a,_,$){var j,_e,et,tt,rt,it,ct,dt;requiredArgs(2,arguments);var mt=getDefaultOptions(),vt=toInteger$2((j=(_e=(et=(tt=$==null?void 0:$.weekStartsOn)!==null&&tt!==void 0?tt:$==null||(rt=$.locale)===null||rt===void 0||(it=rt.options)===null||it===void 0?void 0:it.weekStartsOn)!==null&&et!==void 0?et:mt.weekStartsOn)!==null&&_e!==void 0?_e:(ct=mt.locale)===null||ct===void 0||(dt=ct.options)===null||dt===void 0?void 0:dt.weekStartsOn)!==null&&j!==void 0?j:0);if(!(vt>=0&&vt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var wt=toDate$1(a),xt=toInteger$2(_),bt=wt.getUTCDay(),Et=xt%7,$t=(Et+7)%7,At=($t<vt?7:0)+xt-bt;return wt.setUTCDate(wt.getUTCDate()+At),wt}function _typeof$i(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$i=function($){return typeof $}:_typeof$i=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$i(a)}function _classCallCheck$h(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$i(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$i(a,_,$){return _&&_defineProperties$i(a.prototype,_),$&&_defineProperties$i(a,$),a}function _inherits$h(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$i(a,_)}function _setPrototypeOf$i(a,_){return _setPrototypeOf$i=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$i(a,_)}function _createSuper$h(a){var _=_isNativeReflectConstruct$h();return function(){var j=_getPrototypeOf$h(a),_e;if(_){var et=_getPrototypeOf$h(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$h(this,_e)}}function _possibleConstructorReturn$h(a,_){return _&&(_typeof$i(_)==="object"||typeof _=="function")?_:_assertThisInitialized$i(a)}function _assertThisInitialized$i(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$h(a){return _getPrototypeOf$h=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$h(a)}function _defineProperty$h(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var DayParser=function(a){_inherits$h($,a);var _=_createSuper$h($);function $(){var j;_classCallCheck$h(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$h(_assertThisInitialized$i(j),"priority",90),_defineProperty$h(_assertThisInitialized$i(j),"incompatibleTokens",["D","i","e","c","t","T"]),j}return _createClass$i($,[{key:"parse",value:function(_e,et,tt){switch(et){case"E":case"EE":case"EEE":return tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"});case"EEEEE":return tt.day(_e,{width:"narrow",context:"formatting"});case"EEEEEE":return tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"});case"EEEE":default:return tt.day(_e,{width:"wide",context:"formatting"})||tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(_e,et){return et>=0&&et<=6}},{key:"set",value:function(_e,et,tt,rt){return _e=setUTCDay(_e,tt,rt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$h(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$h=function($){return typeof $}:_typeof$h=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$h(a)}function _classCallCheck$g(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$h(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$h(a,_,$){return _&&_defineProperties$h(a.prototype,_),$&&_defineProperties$h(a,$),a}function _inherits$g(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$h(a,_)}function _setPrototypeOf$h(a,_){return _setPrototypeOf$h=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$h(a,_)}function _createSuper$g(a){var _=_isNativeReflectConstruct$g();return function(){var j=_getPrototypeOf$g(a),_e;if(_){var et=_getPrototypeOf$g(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$g(this,_e)}}function _possibleConstructorReturn$g(a,_){return _&&(_typeof$h(_)==="object"||typeof _=="function")?_:_assertThisInitialized$h(a)}function _assertThisInitialized$h(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$g(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$g(a){return _getPrototypeOf$g=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$g(a)}function _defineProperty$g(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var LocalDayParser=function(a){_inherits$g($,a);var _=_createSuper$g($);function $(){var j;_classCallCheck$g(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$g(_assertThisInitialized$h(j),"priority",90),_defineProperty$g(_assertThisInitialized$h(j),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),j}return _createClass$h($,[{key:"parse",value:function(_e,et,tt,rt){var it=function(dt){var mt=Math.floor((dt-1)/7)*7;return(dt+rt.weekStartsOn+6)%7+mt};switch(et){case"e":case"ee":return mapValue(parseNDigits(et.length,_e),it);case"eo":return mapValue(tt.ordinalNumber(_e,{unit:"day"}),it);case"eee":return tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"});case"eeeee":return tt.day(_e,{width:"narrow",context:"formatting"});case"eeeeee":return tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"});case"eeee":default:return tt.day(_e,{width:"wide",context:"formatting"})||tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(_e,et){return et>=0&&et<=6}},{key:"set",value:function(_e,et,tt,rt){return _e=setUTCDay(_e,tt,rt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$g(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$g=function($){return typeof $}:_typeof$g=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$g(a)}function _classCallCheck$f(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$g(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$g(a,_,$){return _&&_defineProperties$g(a.prototype,_),$&&_defineProperties$g(a,$),a}function _inherits$f(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$g(a,_)}function _setPrototypeOf$g(a,_){return _setPrototypeOf$g=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$g(a,_)}function _createSuper$f(a){var _=_isNativeReflectConstruct$f();return function(){var j=_getPrototypeOf$f(a),_e;if(_){var et=_getPrototypeOf$f(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$f(this,_e)}}function _possibleConstructorReturn$f(a,_){return _&&(_typeof$g(_)==="object"||typeof _=="function")?_:_assertThisInitialized$g(a)}function _assertThisInitialized$g(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$f(a){return _getPrototypeOf$f=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$f(a)}function _defineProperty$f(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var StandAloneLocalDayParser=function(a){_inherits$f($,a);var _=_createSuper$f($);function $(){var j;_classCallCheck$f(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$f(_assertThisInitialized$g(j),"priority",90),_defineProperty$f(_assertThisInitialized$g(j),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),j}return _createClass$g($,[{key:"parse",value:function(_e,et,tt,rt){var it=function(dt){var mt=Math.floor((dt-1)/7)*7;return(dt+rt.weekStartsOn+6)%7+mt};switch(et){case"c":case"cc":return mapValue(parseNDigits(et.length,_e),it);case"co":return mapValue(tt.ordinalNumber(_e,{unit:"day"}),it);case"ccc":return tt.day(_e,{width:"abbreviated",context:"standalone"})||tt.day(_e,{width:"short",context:"standalone"})||tt.day(_e,{width:"narrow",context:"standalone"});case"ccccc":return tt.day(_e,{width:"narrow",context:"standalone"});case"cccccc":return tt.day(_e,{width:"short",context:"standalone"})||tt.day(_e,{width:"narrow",context:"standalone"});case"cccc":default:return tt.day(_e,{width:"wide",context:"standalone"})||tt.day(_e,{width:"abbreviated",context:"standalone"})||tt.day(_e,{width:"short",context:"standalone"})||tt.day(_e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(_e,et){return et>=0&&et<=6}},{key:"set",value:function(_e,et,tt,rt){return _e=setUTCDay(_e,tt,rt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function setUTCISODay(a,_){requiredArgs(2,arguments);var $=toInteger$2(_);$%7===0&&($=$-7);var j=1,_e=toDate$1(a),et=_e.getUTCDay(),tt=$%7,rt=(tt+7)%7,it=(rt<j?7:0)+$-et;return _e.setUTCDate(_e.getUTCDate()+it),_e}function _typeof$f(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$f=function($){return typeof $}:_typeof$f=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$f(a)}function _classCallCheck$e(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$f(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$f(a,_,$){return _&&_defineProperties$f(a.prototype,_),$&&_defineProperties$f(a,$),a}function _inherits$e(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$f(a,_)}function _setPrototypeOf$f(a,_){return _setPrototypeOf$f=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$f(a,_)}function _createSuper$e(a){var _=_isNativeReflectConstruct$e();return function(){var j=_getPrototypeOf$e(a),_e;if(_){var et=_getPrototypeOf$e(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$e(this,_e)}}function _possibleConstructorReturn$e(a,_){return _&&(_typeof$f(_)==="object"||typeof _=="function")?_:_assertThisInitialized$f(a)}function _assertThisInitialized$f(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$e(a){return _getPrototypeOf$e=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$e(a)}function _defineProperty$e(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ISODayParser=function(a){_inherits$e($,a);var _=_createSuper$e($);function $(){var j;_classCallCheck$e(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$e(_assertThisInitialized$f(j),"priority",90),_defineProperty$e(_assertThisInitialized$f(j),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),j}return _createClass$f($,[{key:"parse",value:function(_e,et,tt){var rt=function(ct){return ct===0?7:ct};switch(et){case"i":case"ii":return parseNDigits(et.length,_e);case"io":return tt.ordinalNumber(_e,{unit:"day"});case"iii":return mapValue(tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"}),rt);case"iiiii":return mapValue(tt.day(_e,{width:"narrow",context:"formatting"}),rt);case"iiiiii":return mapValue(tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"}),rt);case"iiii":default:return mapValue(tt.day(_e,{width:"wide",context:"formatting"})||tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"}),rt)}}},{key:"validate",value:function(_e,et){return et>=1&&et<=7}},{key:"set",value:function(_e,et,tt){return _e=setUTCISODay(_e,tt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$e(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$e=function($){return typeof $}:_typeof$e=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$e(a)}function _classCallCheck$d(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$e(a,_,$){return _&&_defineProperties$e(a.prototype,_),$&&_defineProperties$e(a,$),a}function _inherits$d(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$e(a,_)}function _setPrototypeOf$e(a,_){return _setPrototypeOf$e=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$e(a,_)}function _createSuper$d(a){var _=_isNativeReflectConstruct$d();return function(){var j=_getPrototypeOf$d(a),_e;if(_){var et=_getPrototypeOf$d(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$d(this,_e)}}function _possibleConstructorReturn$d(a,_){return _&&(_typeof$e(_)==="object"||typeof _=="function")?_:_assertThisInitialized$e(a)}function _assertThisInitialized$e(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$d(a){return _getPrototypeOf$d=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$d(a)}function _defineProperty$d(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var AMPMParser=function(a){_inherits$d($,a);var _=_createSuper$d($);function $(){var j;_classCallCheck$d(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$d(_assertThisInitialized$e(j),"priority",80),_defineProperty$d(_assertThisInitialized$e(j),"incompatibleTokens",["b","B","H","k","t","T"]),j}return _createClass$e($,[{key:"parse",value:function(_e,et,tt){switch(et){case"a":case"aa":case"aaa":return tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"aaaaa":return tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"aaaa":default:return tt.dayPeriod(_e,{width:"wide",context:"formatting"})||tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(_e,et,tt){return _e.setUTCHours(dayPeriodEnumToHours(tt),0,0,0),_e}}]),$}(Parser);function _typeof$d(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$d=function($){return typeof $}:_typeof$d=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$d(a)}function _classCallCheck$c(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$d(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$d(a,_,$){return _&&_defineProperties$d(a.prototype,_),$&&_defineProperties$d(a,$),a}function _inherits$c(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$d(a,_)}function _setPrototypeOf$d(a,_){return _setPrototypeOf$d=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$d(a,_)}function _createSuper$c(a){var _=_isNativeReflectConstruct$c();return function(){var j=_getPrototypeOf$c(a),_e;if(_){var et=_getPrototypeOf$c(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$c(this,_e)}}function _possibleConstructorReturn$c(a,_){return _&&(_typeof$d(_)==="object"||typeof _=="function")?_:_assertThisInitialized$d(a)}function _assertThisInitialized$d(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$c(a){return _getPrototypeOf$c=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$c(a)}function _defineProperty$c(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var AMPMMidnightParser=function(a){_inherits$c($,a);var _=_createSuper$c($);function $(){var j;_classCallCheck$c(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$c(_assertThisInitialized$d(j),"priority",80),_defineProperty$c(_assertThisInitialized$d(j),"incompatibleTokens",["a","B","H","k","t","T"]),j}return _createClass$d($,[{key:"parse",value:function(_e,et,tt){switch(et){case"b":case"bb":case"bbb":return tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"bbbbb":return tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"bbbb":default:return tt.dayPeriod(_e,{width:"wide",context:"formatting"})||tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(_e,et,tt){return _e.setUTCHours(dayPeriodEnumToHours(tt),0,0,0),_e}}]),$}(Parser);function _typeof$c(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$c=function($){return typeof $}:_typeof$c=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$c(a)}function _classCallCheck$b(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$c(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$c(a,_,$){return _&&_defineProperties$c(a.prototype,_),$&&_defineProperties$c(a,$),a}function _inherits$b(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$c(a,_)}function _setPrototypeOf$c(a,_){return _setPrototypeOf$c=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$c(a,_)}function _createSuper$b(a){var _=_isNativeReflectConstruct$b();return function(){var j=_getPrototypeOf$b(a),_e;if(_){var et=_getPrototypeOf$b(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$b(this,_e)}}function _possibleConstructorReturn$b(a,_){return _&&(_typeof$c(_)==="object"||typeof _=="function")?_:_assertThisInitialized$c(a)}function _assertThisInitialized$c(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$b(a){return _getPrototypeOf$b=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$b(a)}function _defineProperty$b(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var DayPeriodParser=function(a){_inherits$b($,a);var _=_createSuper$b($);function $(){var j;_classCallCheck$b(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$b(_assertThisInitialized$c(j),"priority",80),_defineProperty$b(_assertThisInitialized$c(j),"incompatibleTokens",["a","b","t","T"]),j}return _createClass$c($,[{key:"parse",value:function(_e,et,tt){switch(et){case"B":case"BB":case"BBB":return tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"BBBBB":return tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"BBBB":default:return tt.dayPeriod(_e,{width:"wide",context:"formatting"})||tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(_e,et,tt){return _e.setUTCHours(dayPeriodEnumToHours(tt),0,0,0),_e}}]),$}(Parser);function _typeof$b(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$b=function($){return typeof $}:_typeof$b=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$b(a)}function _classCallCheck$a(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$b(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$b(a,_,$){return _&&_defineProperties$b(a.prototype,_),$&&_defineProperties$b(a,$),a}function _inherits$a(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$b(a,_)}function _setPrototypeOf$b(a,_){return _setPrototypeOf$b=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$b(a,_)}function _createSuper$a(a){var _=_isNativeReflectConstruct$a();return function(){var j=_getPrototypeOf$a(a),_e;if(_){var et=_getPrototypeOf$a(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$a(this,_e)}}function _possibleConstructorReturn$a(a,_){return _&&(_typeof$b(_)==="object"||typeof _=="function")?_:_assertThisInitialized$b(a)}function _assertThisInitialized$b(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$a(a){return _getPrototypeOf$a=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$a(a)}function _defineProperty$a(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var Hour1to12Parser=function(a){_inherits$a($,a);var _=_createSuper$a($);function $(){var j;_classCallCheck$a(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$a(_assertThisInitialized$b(j),"priority",70),_defineProperty$a(_assertThisInitialized$b(j),"incompatibleTokens",["H","K","k","t","T"]),j}return _createClass$b($,[{key:"parse",value:function(_e,et,tt){switch(et){case"h":return parseNumericPattern(numericPatterns.hour12h,_e);case"ho":return tt.ordinalNumber(_e,{unit:"hour"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=1&&et<=12}},{key:"set",value:function(_e,et,tt){var rt=_e.getUTCHours()>=12;return rt&&tt<12?_e.setUTCHours(tt+12,0,0,0):!rt&&tt===12?_e.setUTCHours(0,0,0,0):_e.setUTCHours(tt,0,0,0),_e}}]),$}(Parser);function _typeof$a(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$a=function($){return typeof $}:_typeof$a=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$a(a)}function _classCallCheck$9(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$a(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$a(a,_,$){return _&&_defineProperties$a(a.prototype,_),$&&_defineProperties$a(a,$),a}function _inherits$9(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$a(a,_)}function _setPrototypeOf$a(a,_){return _setPrototypeOf$a=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$a(a,_)}function _createSuper$9(a){var _=_isNativeReflectConstruct$9();return function(){var j=_getPrototypeOf$9(a),_e;if(_){var et=_getPrototypeOf$9(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$9(this,_e)}}function _possibleConstructorReturn$9(a,_){return _&&(_typeof$a(_)==="object"||typeof _=="function")?_:_assertThisInitialized$a(a)}function _assertThisInitialized$a(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$9(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$9(a){return _getPrototypeOf$9=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$9(a)}function _defineProperty$9(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var Hour0to23Parser=function(a){_inherits$9($,a);var _=_createSuper$9($);function $(){var j;_classCallCheck$9(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$9(_assertThisInitialized$a(j),"priority",70),_defineProperty$9(_assertThisInitialized$a(j),"incompatibleTokens",["a","b","h","K","k","t","T"]),j}return _createClass$a($,[{key:"parse",value:function(_e,et,tt){switch(et){case"H":return parseNumericPattern(numericPatterns.hour23h,_e);case"Ho":return tt.ordinalNumber(_e,{unit:"hour"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=0&&et<=23}},{key:"set",value:function(_e,et,tt){return _e.setUTCHours(tt,0,0,0),_e}}]),$}(Parser);function _typeof$9(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$9=function($){return typeof $}:_typeof$9=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$9(a)}function _classCallCheck$8(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$9(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$9(a,_,$){return _&&_defineProperties$9(a.prototype,_),$&&_defineProperties$9(a,$),a}function _inherits$8(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$9(a,_)}function _setPrototypeOf$9(a,_){return _setPrototypeOf$9=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$9(a,_)}function _createSuper$8(a){var _=_isNativeReflectConstruct$8();return function(){var j=_getPrototypeOf$8(a),_e;if(_){var et=_getPrototypeOf$8(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$8(this,_e)}}function _possibleConstructorReturn$8(a,_){return _&&(_typeof$9(_)==="object"||typeof _=="function")?_:_assertThisInitialized$9(a)}function _assertThisInitialized$9(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$8(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$8(a){return _getPrototypeOf$8=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$8(a)}function _defineProperty$8(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var Hour0To11Parser=function(a){_inherits$8($,a);var _=_createSuper$8($);function $(){var j;_classCallCheck$8(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$8(_assertThisInitialized$9(j),"priority",70),_defineProperty$8(_assertThisInitialized$9(j),"incompatibleTokens",["h","H","k","t","T"]),j}return _createClass$9($,[{key:"parse",value:function(_e,et,tt){switch(et){case"K":return parseNumericPattern(numericPatterns.hour11h,_e);case"Ko":return tt.ordinalNumber(_e,{unit:"hour"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=0&&et<=11}},{key:"set",value:function(_e,et,tt){var rt=_e.getUTCHours()>=12;return rt&&tt<12?_e.setUTCHours(tt+12,0,0,0):_e.setUTCHours(tt,0,0,0),_e}}]),$}(Parser);function _typeof$8(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$8=function($){return typeof $}:_typeof$8=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$8(a)}function _classCallCheck$7(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$8(a,_,$){return _&&_defineProperties$8(a.prototype,_),$&&_defineProperties$8(a,$),a}function _inherits$7(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$8(a,_)}function _setPrototypeOf$8(a,_){return _setPrototypeOf$8=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$8(a,_)}function _createSuper$7(a){var _=_isNativeReflectConstruct$7();return function(){var j=_getPrototypeOf$7(a),_e;if(_){var et=_getPrototypeOf$7(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$7(this,_e)}}function _possibleConstructorReturn$7(a,_){return _&&(_typeof$8(_)==="object"||typeof _=="function")?_:_assertThisInitialized$8(a)}function _assertThisInitialized$8(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$7(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$7(a){return _getPrototypeOf$7=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$7(a)}function _defineProperty$7(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var Hour1To24Parser=function(a){_inherits$7($,a);var _=_createSuper$7($);function $(){var j;_classCallCheck$7(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$7(_assertThisInitialized$8(j),"priority",70),_defineProperty$7(_assertThisInitialized$8(j),"incompatibleTokens",["a","b","h","H","K","t","T"]),j}return _createClass$8($,[{key:"parse",value:function(_e,et,tt){switch(et){case"k":return parseNumericPattern(numericPatterns.hour24h,_e);case"ko":return tt.ordinalNumber(_e,{unit:"hour"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=1&&et<=24}},{key:"set",value:function(_e,et,tt){var rt=tt<=24?tt%24:tt;return _e.setUTCHours(rt,0,0,0),_e}}]),$}(Parser);function _typeof$7(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$7=function($){return typeof $}:_typeof$7=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$7(a)}function _classCallCheck$6(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$7(a,_,$){return _&&_defineProperties$7(a.prototype,_),$&&_defineProperties$7(a,$),a}function _inherits$6(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$7(a,_)}function _setPrototypeOf$7(a,_){return _setPrototypeOf$7=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$7(a,_)}function _createSuper$6(a){var _=_isNativeReflectConstruct$6();return function(){var j=_getPrototypeOf$6(a),_e;if(_){var et=_getPrototypeOf$6(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$6(this,_e)}}function _possibleConstructorReturn$6(a,_){return _&&(_typeof$7(_)==="object"||typeof _=="function")?_:_assertThisInitialized$7(a)}function _assertThisInitialized$7(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$6(a){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$6(a)}function _defineProperty$6(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var MinuteParser=function(a){_inherits$6($,a);var _=_createSuper$6($);function $(){var j;_classCallCheck$6(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$6(_assertThisInitialized$7(j),"priority",60),_defineProperty$6(_assertThisInitialized$7(j),"incompatibleTokens",["t","T"]),j}return _createClass$7($,[{key:"parse",value:function(_e,et,tt){switch(et){case"m":return parseNumericPattern(numericPatterns.minute,_e);case"mo":return tt.ordinalNumber(_e,{unit:"minute"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=0&&et<=59}},{key:"set",value:function(_e,et,tt){return _e.setUTCMinutes(tt,0,0),_e}}]),$}(Parser);function _typeof$6(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function($){return typeof $}:_typeof$6=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$6(a)}function _classCallCheck$5(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$6(a,_,$){return _&&_defineProperties$6(a.prototype,_),$&&_defineProperties$6(a,$),a}function _inherits$5(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$6(a,_)}function _setPrototypeOf$6(a,_){return _setPrototypeOf$6=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$6(a,_)}function _createSuper$5(a){var _=_isNativeReflectConstruct$5();return function(){var j=_getPrototypeOf$5(a),_e;if(_){var et=_getPrototypeOf$5(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$5(this,_e)}}function _possibleConstructorReturn$5(a,_){return _&&(_typeof$6(_)==="object"||typeof _=="function")?_:_assertThisInitialized$6(a)}function _assertThisInitialized$6(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$5(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$5(a){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$5(a)}function _defineProperty$5(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var SecondParser=function(a){_inherits$5($,a);var _=_createSuper$5($);function $(){var j;_classCallCheck$5(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$5(_assertThisInitialized$6(j),"priority",50),_defineProperty$5(_assertThisInitialized$6(j),"incompatibleTokens",["t","T"]),j}return _createClass$6($,[{key:"parse",value:function(_e,et,tt){switch(et){case"s":return parseNumericPattern(numericPatterns.second,_e);case"so":return tt.ordinalNumber(_e,{unit:"second"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=0&&et<=59}},{key:"set",value:function(_e,et,tt){return _e.setUTCSeconds(tt,0),_e}}]),$}(Parser);function _typeof$5(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function($){return typeof $}:_typeof$5=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$5(a)}function _classCallCheck$4(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$5(a,_,$){return _&&_defineProperties$5(a.prototype,_),$&&_defineProperties$5(a,$),a}function _inherits$4(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$5(a,_)}function _setPrototypeOf$5(a,_){return _setPrototypeOf$5=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$5(a,_)}function _createSuper$4(a){var _=_isNativeReflectConstruct$4();return function(){var j=_getPrototypeOf$4(a),_e;if(_){var et=_getPrototypeOf$4(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$4(this,_e)}}function _possibleConstructorReturn$4(a,_){return _&&(_typeof$5(_)==="object"||typeof _=="function")?_:_assertThisInitialized$5(a)}function _assertThisInitialized$5(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$4(a){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$4(a)}function _defineProperty$4(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var FractionOfSecondParser=function(a){_inherits$4($,a);var _=_createSuper$4($);function $(){var j;_classCallCheck$4(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$4(_assertThisInitialized$5(j),"priority",30),_defineProperty$4(_assertThisInitialized$5(j),"incompatibleTokens",["t","T"]),j}return _createClass$5($,[{key:"parse",value:function(_e,et){var tt=function(it){return Math.floor(it*Math.pow(10,-et.length+3))};return mapValue(parseNDigits(et.length,_e),tt)}},{key:"set",value:function(_e,et,tt){return _e.setUTCMilliseconds(tt),_e}}]),$}(Parser);function _typeof$4(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function($){return typeof $}:_typeof$4=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$4(a)}function _classCallCheck$3(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$4(a,_,$){return _&&_defineProperties$4(a.prototype,_),$&&_defineProperties$4(a,$),a}function _inherits$3(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$4(a,_)}function _setPrototypeOf$4(a,_){return _setPrototypeOf$4=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$4(a,_)}function _createSuper$3(a){var _=_isNativeReflectConstruct$3();return function(){var j=_getPrototypeOf$3(a),_e;if(_){var et=_getPrototypeOf$3(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$3(this,_e)}}function _possibleConstructorReturn$3(a,_){return _&&(_typeof$4(_)==="object"||typeof _=="function")?_:_assertThisInitialized$4(a)}function _assertThisInitialized$4(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$3(a){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$3(a)}function _defineProperty$3(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ISOTimezoneWithZParser=function(a){_inherits$3($,a);var _=_createSuper$3($);function $(){var j;_classCallCheck$3(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$3(_assertThisInitialized$4(j),"priority",10),_defineProperty$3(_assertThisInitialized$4(j),"incompatibleTokens",["t","T","x"]),j}return _createClass$4($,[{key:"parse",value:function(_e,et){switch(et){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,_e);case"XX":return parseTimezonePattern(timezonePatterns.basic,_e);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,_e);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,_e);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,_e)}}},{key:"set",value:function(_e,et,tt){return et.timestampIsSet?_e:new Date(_e.getTime()-tt)}}]),$}(Parser);function _typeof$3(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function($){return typeof $}:_typeof$3=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$3(a)}function _classCallCheck$2(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$3(a,_,$){return _&&_defineProperties$3(a.prototype,_),$&&_defineProperties$3(a,$),a}function _inherits$2(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$3(a,_)}function _setPrototypeOf$3(a,_){return _setPrototypeOf$3=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$3(a,_)}function _createSuper$2(a){var _=_isNativeReflectConstruct$2();return function(){var j=_getPrototypeOf$2(a),_e;if(_){var et=_getPrototypeOf$2(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$2(this,_e)}}function _possibleConstructorReturn$2(a,_){return _&&(_typeof$3(_)==="object"||typeof _=="function")?_:_assertThisInitialized$3(a)}function _assertThisInitialized$3(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$2(a){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$2(a)}function _defineProperty$2(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ISOTimezoneParser=function(a){_inherits$2($,a);var _=_createSuper$2($);function $(){var j;_classCallCheck$2(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$2(_assertThisInitialized$3(j),"priority",10),_defineProperty$2(_assertThisInitialized$3(j),"incompatibleTokens",["t","T","X"]),j}return _createClass$3($,[{key:"parse",value:function(_e,et){switch(et){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,_e);case"xx":return parseTimezonePattern(timezonePatterns.basic,_e);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,_e);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,_e);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,_e)}}},{key:"set",value:function(_e,et,tt){return et.timestampIsSet?_e:new Date(_e.getTime()-tt)}}]),$}(Parser);function _typeof$2(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function($){return typeof $}:_typeof$2=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$2(a)}function _classCallCheck$1(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$2(a,_,$){return _&&_defineProperties$2(a.prototype,_),$&&_defineProperties$2(a,$),a}function _inherits$1(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$2(a,_)}function _setPrototypeOf$2(a,_){return _setPrototypeOf$2=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$2(a,_)}function _createSuper$1(a){var _=_isNativeReflectConstruct$1();return function(){var j=_getPrototypeOf$1(a),_e;if(_){var et=_getPrototypeOf$1(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$1(this,_e)}}function _possibleConstructorReturn$1(a,_){return _&&(_typeof$2(_)==="object"||typeof _=="function")?_:_assertThisInitialized$2(a)}function _assertThisInitialized$2(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$1(a){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$1(a)}function _defineProperty$1(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var TimestampSecondsParser=function(a){_inherits$1($,a);var _=_createSuper$1($);function $(){var j;_classCallCheck$1(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$1(_assertThisInitialized$2(j),"priority",40),_defineProperty$1(_assertThisInitialized$2(j),"incompatibleTokens","*"),j}return _createClass$2($,[{key:"parse",value:function(_e){return parseAnyDigitsSigned(_e)}},{key:"set",value:function(_e,et,tt){return[new Date(tt*1e3),{timestampIsSet:!0}]}}]),$}(Parser);function _typeof$1(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function($){return typeof $}:_typeof$1=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$1(a)}function _classCallCheck(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$1(a,_,$){return _&&_defineProperties$1(a.prototype,_),$&&_defineProperties$1(a,$),a}function _inherits(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$1(a,_)}function _setPrototypeOf$1(a,_){return _setPrototypeOf$1=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$1(a,_)}function _createSuper(a){var _=_isNativeReflectConstruct();return function(){var j=_getPrototypeOf(a),_e;if(_){var et=_getPrototypeOf(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn(this,_e)}}function _possibleConstructorReturn(a,_){return _&&(_typeof$1(_)==="object"||typeof _=="function")?_:_assertThisInitialized$1(a)}function _assertThisInitialized$1(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf(a)}function _defineProperty(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var TimestampMillisecondsParser=function(a){_inherits($,a);var _=_createSuper($);function $(){var j;_classCallCheck(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty(_assertThisInitialized$1(j),"priority",20),_defineProperty(_assertThisInitialized$1(j),"incompatibleTokens","*"),j}return _createClass$1($,[{key:"parse",value:function(_e){return parseAnyDigitsSigned(_e)}},{key:"set",value:function(_e,et,tt){return[new Date(tt),{timestampIsSet:!0}]}}]),$}(Parser),parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser};function _typeof(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function($){return typeof $}:_typeof=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof(a)}function _createForOfIteratorHelper(a,_){var $;if(typeof Symbol>"u"||a[Symbol.iterator]==null){if(Array.isArray(a)||($=_unsupportedIterableToArray(a))||_&&a&&typeof a.length=="number"){$&&(a=$);var j=0,_e=function(){};return{s:_e,n:function(){return j>=a.length?{done:!0}:{done:!1,value:a[j++]}},e:function(ct){throw ct},f:_e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
144
|
+
`+_.prev}function arrObjKeys(a,_){var $=isArray$4(a),j=[];if($){j.length=a.length;for(var _e=0;_e<a.length;_e++)j[_e]=has$1(a,_e)?_(a[_e],a):""}var et=typeof gOPS=="function"?gOPS(a):[],tt;if(hasShammedSymbols){tt={};for(var rt=0;rt<et.length;rt++)tt["$"+et[rt]]=et[rt]}for(var it in a)has$1(a,it)&&($&&String(Number(it))===it&&it<a.length||hasShammedSymbols&&tt["$"+it]instanceof Symbol||($test.call(/[^\w$]/,it)?j.push(_(it,a)+": "+_(a[it],a)):j.push(it+": "+_(a[it],a))));if(typeof gOPS=="function")for(var ct=0;ct<et.length;ct++)isEnumerable.call(a,et[ct])&&j.push("["+_(et[ct])+"]: "+_(a[et[ct]],a));return j}var GetIntrinsic$5=getIntrinsic,callBound$8=callBound$c,inspect=objectInspect,$TypeError$1=GetIntrinsic$5("%TypeError%"),$WeakMap$1=GetIntrinsic$5("%WeakMap%",!0),$Map$3=GetIntrinsic$5("%Map%",!0),$weakMapGet=callBound$8("WeakMap.prototype.get",!0),$weakMapSet=callBound$8("WeakMap.prototype.set",!0),$weakMapHas=callBound$8("WeakMap.prototype.has",!0),$mapGet$1=callBound$8("Map.prototype.get",!0),$mapSet=callBound$8("Map.prototype.set",!0),$mapHas$5=callBound$8("Map.prototype.has",!0),listGetNode=function(a,_){for(var $=a,j;(j=$.next)!==null;$=j)if(j.key===_)return $.next=j.next,j.next=a.next,a.next=j,j},listGet=function(a,_){var $=listGetNode(a,_);return $&&$.value},listSet=function(a,_,$){var j=listGetNode(a,_);j?j.value=$:a.next={key:_,next:a.next,value:$}},listHas=function(a,_){return!!listGetNode(a,_)},sideChannel=function a(){var _,$,j,_e={assert:function(et){if(!_e.has(et))throw new $TypeError$1("Side channel does not contain "+inspect(et))},get:function(et){if($WeakMap$1&&et&&(typeof et=="object"||typeof et=="function")){if(_)return $weakMapGet(_,et)}else if($Map$3){if($)return $mapGet$1($,et)}else if(j)return listGet(j,et)},has:function(et){if($WeakMap$1&&et&&(typeof et=="object"||typeof et=="function")){if(_)return $weakMapHas(_,et)}else if($Map$3){if($)return $mapHas$5($,et)}else if(j)return listHas(j,et);return!1},set:function(et,tt){$WeakMap$1&&et&&(typeof et=="object"||typeof et=="function")?(_||(_=new $WeakMap$1),$weakMapSet(_,et,tt)):$Map$3?($||($=new $Map$3),$mapSet($,et,tt)):(j||(j={key:{},next:null}),listSet(j,et,tt))}};return _e},GetIntrinsic$4=getIntrinsic,hasOwn=hasown,channel=sideChannel(),$TypeError=GetIntrinsic$4("%TypeError%"),SLOT$1={assert:function(a,_){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError("`O` is not an object");if(typeof _!="string")throw new $TypeError("`slot` must be a string");if(channel.assert(a),!SLOT$1.has(a,_))throw new $TypeError("`"+_+"` is not present on `O`")},get:function(a,_){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError("`O` is not an object");if(typeof _!="string")throw new $TypeError("`slot` must be a string");var $=channel.get(a);return $&&$["$"+_]},has:function(a,_){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError("`O` is not an object");if(typeof _!="string")throw new $TypeError("`slot` must be a string");var $=channel.get(a);return!!$&&hasOwn($,"$"+_)},set:function(a,_,$){if(!a||typeof a!="object"&&typeof a!="function")throw new $TypeError("`O` is not an object");if(typeof _!="string")throw new $TypeError("`slot` must be a string");var j=channel.get(a);j||(j={},channel.set(a,j)),j["$"+_]=$}};Object.freeze&&Object.freeze(SLOT$1);var internalSlot=SLOT$1,SLOT=internalSlot,$SyntaxError=SyntaxError,$StopIteration=typeof StopIteration=="object"?StopIteration:null,stopIterationIterator=function a(_){if(!$StopIteration)throw new $SyntaxError("this environment lacks StopIteration");SLOT.set(_,"[[Done]]",!1);var $={next:function(){var _e=SLOT.get(this,"[[Iterator]]"),et=SLOT.get(_e,"[[Done]]");try{return{done:et,value:et?void 0:_e.next()}}catch(tt){if(SLOT.set(_e,"[[Done]]",!0),tt!==$StopIteration)throw tt;return{done:!0,value:void 0}}}};return SLOT.set($,"[[Iterator]]",_),$},toString$1={}.toString,isarray=Array.isArray||function(a){return toString$1.call(a)=="[object Array]"},strValue=String.prototype.valueOf,tryStringObject=function a(_){try{return strValue.call(_),!0}catch{return!1}},toStr$3=Object.prototype.toString,strClass="[object String]",hasToStringTag$4=shams(),isString$3=function a(_){return typeof _=="string"?!0:typeof _!="object"?!1:hasToStringTag$4?tryStringObject(_):toStr$3.call(_)===strClass},$Map$2=typeof Map=="function"&&Map.prototype?Map:null,$Set$3=typeof Set=="function"&&Set.prototype?Set:null,exported$2;$Map$2||(exported$2=function(_){return!1});var $mapHas$4=$Map$2?Map.prototype.has:null,$setHas$4=$Set$3?Set.prototype.has:null;!exported$2&&!$mapHas$4&&(exported$2=function(_){return!1});var isMap$2=exported$2||function a(_){if(!_||typeof _!="object")return!1;try{if($mapHas$4.call(_),$setHas$4)try{$setHas$4.call(_)}catch{return!0}return _ instanceof $Map$2}catch{}return!1},$Map$1=typeof Map=="function"&&Map.prototype?Map:null,$Set$2=typeof Set=="function"&&Set.prototype?Set:null,exported$1;$Set$2||(exported$1=function(_){return!1});var $mapHas$3=$Map$1?Map.prototype.has:null,$setHas$3=$Set$2?Set.prototype.has:null;!exported$1&&!$setHas$3&&(exported$1=function(_){return!1});var isSet$2=exported$1||function a(_){if(!_||typeof _!="object")return!1;try{if($setHas$3.call(_),$mapHas$3)try{$mapHas$3.call(_)}catch{return!0}return _ instanceof $Set$2}catch{}return!1},isArguments$3=isArguments$5,getStopIterationIterator=stopIterationIterator;if(hasSymbols$4()||shams$1()){var $iterator=Symbol.iterator;esGetIterator.exports=function(_){if(_!=null&&typeof _[$iterator]<"u")return _[$iterator]();if(isArguments$3(_))return Array.prototype[$iterator].call(_)}}else{var isArray$3=isarray,isString$2=isString$3,GetIntrinsic$3=getIntrinsic,$Map=GetIntrinsic$3("%Map%",!0),$Set$1=GetIntrinsic$3("%Set%",!0),callBound$7=callBound$c,$arrayPush=callBound$7("Array.prototype.push"),$charCodeAt=callBound$7("String.prototype.charCodeAt"),$stringSlice=callBound$7("String.prototype.slice"),advanceStringIndex=function(_,$){var j=_.length;if($+1>=j)return $+1;var _e=$charCodeAt(_,$);if(_e<55296||_e>56319)return $+1;var et=$charCodeAt(_,$+1);return et<56320||et>57343?$+1:$+2},getArrayIterator=function(_){var $=0;return{next:function(){var _e=$>=_.length,et;return _e||(et=_[$],$+=1),{done:_e,value:et}}}},getNonCollectionIterator=function(_,$){if(isArray$3(_)||isArguments$3(_))return getArrayIterator(_);if(isString$2(_)){var j=0;return{next:function(){var et=advanceStringIndex(_,j),tt=$stringSlice(_,j,et);return j=et,{done:et>_.length,value:tt}}}}if($&&typeof _["_es6-shim iterator_"]<"u")return _["_es6-shim iterator_"]()};if(!$Map&&!$Set$1)esGetIterator.exports=function(_){if(_!=null)return getNonCollectionIterator(_,!0)};else{var isMap$1=isMap$2,isSet$1=isSet$2,$mapForEach=callBound$7("Map.prototype.forEach",!0),$setForEach=callBound$7("Set.prototype.forEach",!0);if(typeof process$1>"u"||!process$1.versions||!process$1.versions.node)var $mapIterator=callBound$7("Map.prototype.iterator",!0),$setIterator=callBound$7("Set.prototype.iterator",!0);var $mapAtAtIterator=callBound$7("Map.prototype.@@iterator",!0)||callBound$7("Map.prototype._es6-shim iterator_",!0),$setAtAtIterator=callBound$7("Set.prototype.@@iterator",!0)||callBound$7("Set.prototype._es6-shim iterator_",!0),getCollectionIterator=function(_){if(isMap$1(_)){if($mapIterator)return getStopIterationIterator($mapIterator(_));if($mapAtAtIterator)return $mapAtAtIterator(_);if($mapForEach){var $=[];return $mapForEach(_,function(_e,et){$arrayPush($,[et,_e])}),getArrayIterator($)}}if(isSet$1(_)){if($setIterator)return getStopIterationIterator($setIterator(_));if($setAtAtIterator)return $setAtAtIterator(_);if($setForEach){var j=[];return $setForEach(_,function(_e){$arrayPush(j,_e)}),getArrayIterator(j)}}};esGetIterator.exports=function(_){return getCollectionIterator(_)||getNonCollectionIterator(_)}}}var esGetIteratorExports=esGetIterator.exports,numberIsNaN=function(a){return a!==a},implementation$2=function a(_,$){return _===0&&$===0?1/_===1/$:!!(_===$||numberIsNaN(_)&&numberIsNaN($))},implementation$1=implementation$2,polyfill$1=function a(){return typeof Object.is=="function"?Object.is:implementation$1},getPolyfill$1=polyfill$1,define$1=defineProperties_1,shim$1=function a(){var _=getPolyfill$1();return define$1(Object,{is:_},{is:function(){return Object.is!==_}}),_},define=defineProperties_1,callBind$1=callBindExports,implementation=implementation$2,getPolyfill=polyfill$1,shim=shim$1,polyfill=callBind$1(getPolyfill(),Object);define(polyfill,{getPolyfill,implementation,shim});var objectIs=polyfill,callBind=callBindExports,callBound$6=callBound$c,GetIntrinsic$2=getIntrinsic,isTypedArray$2=isTypedArray$3,$ArrayBuffer=GetIntrinsic$2("ArrayBuffer",!0),$Float32Array=GetIntrinsic$2("Float32Array",!0),$byteLength$2=callBound$6("ArrayBuffer.prototype.byteLength",!0),abSlice=$ArrayBuffer&&!$byteLength$2&&new $ArrayBuffer().slice,$abSlice=abSlice&&callBind(abSlice),isArrayBuffer$2=$byteLength$2||$abSlice?function a(_){if(!_||typeof _!="object")return!1;try{return $byteLength$2?$byteLength$2(_):$abSlice(_,0),!0}catch{return!1}}:$Float32Array?function a(_){try{return new $Float32Array(_).buffer===_&&!isTypedArray$2(_)}catch($){return typeof _=="object"&&$.name==="RangeError"}}:function a(_){return!1},getDay=Date.prototype.getDay,tryDateObject=function a(_){try{return getDay.call(_),!0}catch{return!1}},toStr$2=Object.prototype.toString,dateClass="[object Date]",hasToStringTag$3=shams(),isDateObject=function a(_){return typeof _!="object"||_===null?!1:hasToStringTag$3?tryDateObject(_):toStr$2.call(_)===dateClass},callBound$5=callBound$c,hasToStringTag$2=shams(),has,$exec,isRegexMarker,badStringifier;if(hasToStringTag$2){has=callBound$5("Object.prototype.hasOwnProperty"),$exec=callBound$5("RegExp.prototype.exec"),isRegexMarker={};var throwRegexMarker=function(){throw isRegexMarker};badStringifier={toString:throwRegexMarker,valueOf:throwRegexMarker},typeof Symbol.toPrimitive=="symbol"&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker)}var $toString$1=callBound$5("Object.prototype.toString"),gOPD=Object.getOwnPropertyDescriptor,regexClass="[object RegExp]",isRegex$1=hasToStringTag$2?function a(_){if(!_||typeof _!="object")return!1;var $=gOPD(_,"lastIndex"),j=$&&has($,"value");if(!j)return!1;try{$exec(_,badStringifier)}catch(_e){return _e===isRegexMarker}}:function a(_){return!_||typeof _!="object"&&typeof _!="function"?!1:$toString$1(_)===regexClass},callBound$4=callBound$c,$byteLength$1=callBound$4("SharedArrayBuffer.prototype.byteLength",!0),isSharedArrayBuffer$1=$byteLength$1?function a(_){if(!_||typeof _!="object")return!1;try{return $byteLength$1(_),!0}catch{return!1}}:function a(_){return!1},numToStr=Number.prototype.toString,tryNumberObject=function a(_){try{return numToStr.call(_),!0}catch{return!1}},toStr$1=Object.prototype.toString,numClass="[object Number]",hasToStringTag$1=shams(),isNumberObject=function a(_){return typeof _=="number"?!0:typeof _!="object"?!1:hasToStringTag$1?tryNumberObject(_):toStr$1.call(_)===numClass},callBound$3=callBound$c,$boolToStr=callBound$3("Boolean.prototype.toString"),$toString=callBound$3("Object.prototype.toString"),tryBooleanObject=function a(_){try{return $boolToStr(_),!0}catch{return!1}},boolClass="[object Boolean]",hasToStringTag=shams(),isBooleanObject=function a(_){return typeof _=="boolean"?!0:_===null||typeof _!="object"?!1:hasToStringTag&&Symbol.toStringTag in _?tryBooleanObject(_):$toString(_)===boolClass},isSymbol$2={exports:{}},toStr=Object.prototype.toString,hasSymbols=hasSymbols$4();if(hasSymbols){var symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function(_){return typeof _.valueOf()!="symbol"?!1:symStringRegex.test(symToStr.call(_))};isSymbol$2.exports=function(_){if(typeof _=="symbol")return!0;if(toStr.call(_)!=="[object Symbol]")return!1;try{return isSymbolObject(_)}catch{return!1}}}else isSymbol$2.exports=function(_){return!1};var isSymbolExports=isSymbol$2.exports,isBigint={exports:{}},$BigInt=typeof BigInt<"u"&&BigInt,hasBigints=function a(){return typeof $BigInt=="function"&&typeof BigInt=="function"&&typeof $BigInt(42)=="bigint"&&typeof BigInt(42)=="bigint"},hasBigInts=hasBigints();if(hasBigInts){var bigIntValueOf=BigInt.prototype.valueOf,tryBigInt=function(_){try{return bigIntValueOf.call(_),!0}catch{}return!1};isBigint.exports=function(_){return _===null||typeof _>"u"||typeof _=="boolean"||typeof _=="string"||typeof _=="number"||typeof _=="symbol"||typeof _=="function"?!1:typeof _=="bigint"?!0:tryBigInt(_)}}else isBigint.exports=function(_){return!1};var isBigintExports=isBigint.exports,isString$1=isString$3,isNumber$1=isNumberObject,isBoolean$1=isBooleanObject,isSymbol$1=isSymbolExports,isBigInt=isBigintExports,whichBoxedPrimitive$1=function a(_){if(_==null||typeof _!="object"&&typeof _!="function")return null;if(isString$1(_))return"String";if(isNumber$1(_))return"Number";if(isBoolean$1(_))return"Boolean";if(isSymbol$1(_))return"Symbol";if(isBigInt(_))return"BigInt"},$WeakMap=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,$WeakSet$1=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,exported;$WeakMap||(exported=function(_){return!1});var $mapHas$2=$WeakMap?$WeakMap.prototype.has:null,$setHas$2=$WeakSet$1?$WeakSet$1.prototype.has:null;!exported&&!$mapHas$2&&(exported=function(_){return!1});var isWeakmap=exported||function a(_){if(!_||typeof _!="object")return!1;try{if($mapHas$2.call(_,$mapHas$2),$setHas$2)try{$setHas$2.call(_,$setHas$2)}catch{return!0}return _ instanceof $WeakMap}catch{}return!1},isWeakset={exports:{}},GetIntrinsic$1=getIntrinsic,callBound$2=callBound$c,$WeakSet=GetIntrinsic$1("%WeakSet%",!0),$setHas$1=callBound$2("WeakSet.prototype.has",!0);if($setHas$1){var $mapHas$1=callBound$2("WeakMap.prototype.has",!0);isWeakset.exports=function(_){if(!_||typeof _!="object")return!1;try{if($setHas$1(_,$setHas$1),$mapHas$1)try{$mapHas$1(_,$mapHas$1)}catch{return!0}return _ instanceof $WeakSet}catch{}return!1}}else isWeakset.exports=function(_){return!1};var isWeaksetExports=isWeakset.exports,isMap=isMap$2,isSet=isSet$2,isWeakMap=isWeakmap,isWeakSet=isWeaksetExports,whichCollection$1=function a(_){if(_&&typeof _=="object"){if(isMap(_))return"Map";if(isSet(_))return"Set";if(isWeakMap(_))return"WeakMap";if(isWeakSet(_))return"WeakSet"}return!1},callBound$1=callBound$c,$byteLength=callBound$1("ArrayBuffer.prototype.byteLength",!0),isArrayBuffer$1=isArrayBuffer$2,arrayBufferByteLength=function a(_){return isArrayBuffer$1(_)?$byteLength?$byteLength(_):_.byteLength:NaN},assign$1=object_assign,callBound=callBound$c,flags=regexp_prototype_flags,GetIntrinsic=getIntrinsic,getIterator=esGetIteratorExports,getSideChannel=sideChannel,is=objectIs,isArguments$2=isArguments$5,isArray$2=isarray,isArrayBuffer=isArrayBuffer$2,isDate$1=isDateObject,isRegex=isRegex$1,isSharedArrayBuffer=isSharedArrayBuffer$1,objectKeys=objectKeys$2,whichBoxedPrimitive=whichBoxedPrimitive$1,whichCollection=whichCollection$1,whichTypedArray=whichTypedArray$2,byteLength=arrayBufferByteLength,sabByteLength=callBound("SharedArrayBuffer.prototype.byteLength",!0),$getTime=callBound("Date.prototype.getTime"),gPO=Object.getPrototypeOf,$objToString=callBound("Object.prototype.toString"),$Set=GetIntrinsic("%Set%",!0),$mapHas=callBound("Map.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSize=callBound("Map.prototype.size",!0),$setAdd=callBound("Set.prototype.add",!0),$setDelete=callBound("Set.prototype.delete",!0),$setHas=callBound("Set.prototype.has",!0),$setSize=callBound("Set.prototype.size",!0);function setHasEqualElement(a,_,$,j){for(var _e=getIterator(a),et;(et=_e.next())&&!et.done;)if(internalDeepEqual(_,et.value,$,j))return $setDelete(a,et.value),!0;return!1}function findLooseMatchingPrimitives(a){if(typeof a>"u")return null;if(typeof a!="object")return typeof a=="symbol"?!1:typeof a=="string"||typeof a=="number"?+a==+a:!0}function mapMightHaveLoosePrim(a,_,$,j,_e,et){var tt=findLooseMatchingPrimitives($);if(tt!=null)return tt;var rt=$mapGet(_,tt),it=assign$1({},_e,{strict:!1});return typeof rt>"u"&&!$mapHas(_,tt)||!internalDeepEqual(j,rt,it,et)?!1:!$mapHas(a,tt)&&internalDeepEqual(j,rt,it,et)}function setMightHaveLoosePrim(a,_,$){var j=findLooseMatchingPrimitives($);return j??($setHas(_,j)&&!$setHas(a,j))}function mapHasEqualEntry(a,_,$,j,_e,et){for(var tt=getIterator(a),rt,it;(rt=tt.next())&&!rt.done;)if(it=rt.value,internalDeepEqual($,it,_e,et)&&internalDeepEqual(j,$mapGet(_,it),_e,et))return $setDelete(a,it),!0;return!1}function internalDeepEqual(a,_,$,j){var _e=$||{};if(_e.strict?is(a,_):a===_)return!0;var et=whichBoxedPrimitive(a),tt=whichBoxedPrimitive(_);if(et!==tt)return!1;if(!a||!_||typeof a!="object"&&typeof _!="object")return _e.strict?is(a,_):a==_;var rt=j.has(a),it=j.has(_),ct;if(rt&&it){if(j.get(a)===j.get(_))return!0}else ct={};return rt||j.set(a,ct),it||j.set(_,ct),objEquiv(a,_,_e,j)}function isBuffer$2(a){return!a||typeof a!="object"||typeof a.length!="number"||typeof a.copy!="function"||typeof a.slice!="function"||a.length>0&&typeof a[0]!="number"?!1:!!(a.constructor&&a.constructor.isBuffer&&a.constructor.isBuffer(a))}function setEquiv(a,_,$,j){if($setSize(a)!==$setSize(_))return!1;for(var _e=getIterator(a),et=getIterator(_),tt,rt,it;(tt=_e.next())&&!tt.done;)if(tt.value&&typeof tt.value=="object")it||(it=new $Set),$setAdd(it,tt.value);else if(!$setHas(_,tt.value)){if($.strict||!setMightHaveLoosePrim(a,_,tt.value))return!1;it||(it=new $Set),$setAdd(it,tt.value)}if(it){for(;(rt=et.next())&&!rt.done;)if(rt.value&&typeof rt.value=="object"){if(!setHasEqualElement(it,rt.value,$.strict,j))return!1}else if(!$.strict&&!$setHas(a,rt.value)&&!setHasEqualElement(it,rt.value,$.strict,j))return!1;return $setSize(it)===0}return!0}function mapEquiv(a,_,$,j){if($mapSize(a)!==$mapSize(_))return!1;for(var _e=getIterator(a),et=getIterator(_),tt,rt,it,ct,dt,mt;(tt=_e.next())&&!tt.done;)if(ct=tt.value[0],dt=tt.value[1],ct&&typeof ct=="object")it||(it=new $Set),$setAdd(it,ct);else if(mt=$mapGet(_,ct),typeof mt>"u"&&!$mapHas(_,ct)||!internalDeepEqual(dt,mt,$,j)){if($.strict||!mapMightHaveLoosePrim(a,_,ct,dt,$,j))return!1;it||(it=new $Set),$setAdd(it,ct)}if(it){for(;(rt=et.next())&&!rt.done;)if(ct=rt.value[0],mt=rt.value[1],ct&&typeof ct=="object"){if(!mapHasEqualEntry(it,a,ct,mt,$,j))return!1}else if(!$.strict&&(!a.has(ct)||!internalDeepEqual($mapGet(a,ct),mt,$,j))&&!mapHasEqualEntry(it,a,ct,mt,assign$1({},$,{strict:!1}),j))return!1;return $setSize(it)===0}return!0}function objEquiv(a,_,$,j){var _e,et;if(typeof a!=typeof _||a==null||_==null||$objToString(a)!==$objToString(_)||isArguments$2(a)!==isArguments$2(_))return!1;var tt=isArray$2(a),rt=isArray$2(_);if(tt!==rt)return!1;var it=a instanceof Error,ct=_ instanceof Error;if(it!==ct||(it||ct)&&(a.name!==_.name||a.message!==_.message))return!1;var dt=isRegex(a),mt=isRegex(_);if(dt!==mt||(dt||mt)&&(a.source!==_.source||flags(a)!==flags(_)))return!1;var vt=isDate$1(a),wt=isDate$1(_);if(vt!==wt||(vt||wt)&&$getTime(a)!==$getTime(_)||$.strict&&gPO&&gPO(a)!==gPO(_))return!1;var xt=whichTypedArray(a),bt=whichTypedArray(_);if(xt!==bt)return!1;if(xt||bt){if(a.length!==_.length)return!1;for(_e=0;_e<a.length;_e++)if(a[_e]!==_[_e])return!1;return!0}var Et=isBuffer$2(a),$t=isBuffer$2(_);if(Et!==$t)return!1;if(Et||$t){if(a.length!==_.length)return!1;for(_e=0;_e<a.length;_e++)if(a[_e]!==_[_e])return!1;return!0}var At=isArrayBuffer(a),Rt=isArrayBuffer(_);if(At!==Rt)return!1;if(At||Rt)return byteLength(a)!==byteLength(_)?!1:typeof Uint8Array=="function"&&internalDeepEqual(new Uint8Array(a),new Uint8Array(_),$,j);var Pt=isSharedArrayBuffer(a),Ct=isSharedArrayBuffer(_);if(Pt!==Ct)return!1;if(Pt||Ct)return sabByteLength(a)!==sabByteLength(_)?!1:typeof Uint8Array=="function"&&internalDeepEqual(new Uint8Array(a),new Uint8Array(_),$,j);if(typeof a!=typeof _)return!1;var Ot=objectKeys(a),kt=objectKeys(_);if(Ot.length!==kt.length)return!1;for(Ot.sort(),kt.sort(),_e=Ot.length-1;_e>=0;_e--)if(Ot[_e]!=kt[_e])return!1;for(_e=Ot.length-1;_e>=0;_e--)if(et=Ot[_e],!internalDeepEqual(a[et],_[et],$,j))return!1;var Dt=whichCollection(a),Nt=whichCollection(_);return Dt!==Nt?!1:Dt==="Set"||Nt==="Set"?setEquiv(a,_,$,j):Dt==="Map"?mapEquiv(a,_,$,j):!0}var deepEqual=function a(_,$,j){return internalDeepEqual(_,$,j,getSideChannel())},debounce$2={},__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(a,_,$){if($||arguments.length===2)for(var j=0,_e=_.length,et;j<_e;j++)(et||!(j in _))&&(et||(et=Array.prototype.slice.call(_,0,j)),et[j]=_[j]);return a.concat(et||Array.prototype.slice.call(_))};Object.defineProperty(debounce$2,"__esModule",{value:!0});debounce$2.createDebounce=void 0;function createDebounce(){var a=null;return function(_,$){for(var j=[],_e=2;_e<arguments.length;_e++)j[_e-2]=arguments[_e];a&&clearTimeout(a),a=setTimeout.apply(void 0,__spreadArray([_,$],j,!1))}}debounce$2.createDebounce=createDebounce;var WearablePreview_controller={},fpFuture={};Object.defineProperty(fpFuture,"__esModule",{value:!0});function future(){let a,_;const $=new Promise((j,_e)=>{a=et=>{j(et),$.isPending=!1},_=et=>{_e(et),$.isPending=!1}}).catch(j=>Promise.reject(j));return $.resolve=a,$.reject=_,"finally"in $||($.finally=j=>{$.then(j),$.catch(j)}),$.isPending=!0,$}fpFuture.future=future;fpFuture.default=future;var __importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(WearablePreview_controller,"__esModule",{value:!0});WearablePreview_controller.createController=void 0;var events_1=eventsExports,fp_future_1=__importDefault$3(fpFuture),preview_1$1=preview,promises=new Map,emoteEvents=new Map;window.onmessage=function a(_){if(_.data&&_.data.type)switch(_.data.type){case preview_1$1.PreviewMessageType.CONTROLLER_RESPONSE:{var $=_.data.payload,j=$.id,_e=promises.get(j);_e&&($.ok?_e.resolve($.result):$.ok===!1&&_e.reject(new Error($.error)));break}case preview_1$1.PreviewMessageType.EMOTE_EVENT:{var $=_.data.payload,et=$.type,tt=$.payload,rt=emoteEvents.get(_.source);rt&&et&&rt.emit(et,tt);break}}};var nonce=0;function createSendRequest(a){return function($,j,_e){var et=document.getElementById(a),tt=a+"-"+nonce,rt=(0,fp_future_1.default)();promises.set(tt,rt);var it=preview_1$1.PreviewMessageType.CONTROLLER_REQUEST,ct={id:tt,namespace:$,method:j,params:_e};return(0,preview_1$1.sendMessage)(et.contentWindow,it,ct),nonce++,rt}}function createController(a){var _,$=document.getElementById(a);if(!$)throw new Error('Could not find an iframe with id="'.concat(a,'"'));var j=(_=emoteEvents.get($.contentWindow))!==null&&_!==void 0?_:new events_1.EventEmitter;emoteEvents.set($.contentWindow,j);var _e=createSendRequest(a);return{scene:{getScreenshot:function(et,tt){return _e("scene","getScreenshot",[et,tt])},getMetrics:function(){return _e("scene","getMetrics",[])},changeZoom:function(et){return _e("scene","changeZoom",[et])},panCamera:function(et){return _e("scene","panCamera",[et])},changeCameraPosition:function(et){return _e("scene","changeCameraPosition",[et])}},emote:{getLength:function(){return _e("emote","getLength",[])},isPlaying:function(){return _e("emote","isPlaying",[])},goTo:function(et){return _e("emote","goTo",[et])},play:function(){return _e("emote","play",[])},pause:function(){return _e("emote","pause",[])},stop:function(){return _e("emote","stop",[])},enableSound:function(){return _e("emote","enableSound",[])},disableSound:function(){return _e("emote","disableSound",[])},hasSound:function(){return _e("emote","hasSound",[])},events:j}}}WearablePreview_controller.createController=createController;const WearablePreview$1="";var config={};const WEARABLE_PREVIEW_URL$2="https://wearable-preview.decentraland.zone",ACCOUNT_URL$2="https://decentraland.zone/account",PROFILE_URL$2="https://decentraland.zone/profile",MARKETPLACE_URL$2="https://decentraland.zone/marketplace",MARKETPLACE_NAMES_URL$2="https://decentraland.zone/marketplace/names/claim",MARKETPLACE_WEARABLES_URL$2="https://decentraland.zone/marketplace/browse?section=wearables&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_LANDS_URL$2="https://decentraland.zone/marketplace/lands",MARKETPLACE_EMOTES_URL$2="https://decentraland.zone/marketplace/browse?assetType=item§ion=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_MY_ASSETS_URL$2="https://decentraland.zone/marketplace/account?assetType=nft§ion=wearables&vendor=decentraland&page=1&sortBy=newest&onlyOnSale=false",MARKETPLACE_SETTINGS_URL$2="https://decentraland.zone/marketplace/settings",BUILDER_URL$2="https://decentraland.zone/builder",BUILDER_WEARABLE_EMOTES_URL$2="https://decentraland.zone/builder/collections",BUILDER_SCENES_URL$2="https://decentraland.zone/builder/scenes",BUILDER_NAMES_URL$2="https://decentraland.zone/builder/names",BUILDER_WORLDS_URL$2="https://decentraland.zone/builder/worlds?tab=dcl",BUILDER_LAND_URL$2="https://decentraland.zone/builder/land",DAO_URL$2="https://decentraland.zone/dao",DAO_GRANTS_URL$2="https://decentraland.zone/dao/grants/",GOVERNANCE_URL$2="https://decentraland.zone/governance",GOVERNANCE_TRANSPARENCY_URL$2="https://decentraland.zone/governance/transparency/",GOVERNANCE_PROPOSALS_URL$2="https://decentraland.zone/governance/proposals/",GOVERNANCE_PROJECTS_URL$2="https://decentraland.zone/governance/projects/",EVENTS_URL$2="https://decentraland.zone/events",EVENTS_MY_EVENTS$2="https://decentraland.zone/events/me/",PLACES_URL$2="https://decentraland.zone/places",PLACES_MY_FAVORITE_URL$2="https://decentraland.zone/places/favorites/",EXPLORER_URL$2="https://play.decentraland.zone",STUDIOS_URL$2="https://studios.decentraland.org/",DOCS_ABOUT_URL$2="https://docs.decentraland.org/player/",DOCS_CREATORS_URL$2="https://docs.decentraland.org/creator/",DOCS_CONTRIBUTOR_URL$2="https://docs.decentraland.org/contributor/",DOCS_DAO_URL$2="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",BLOG_URL$2="https://decentraland.zone/blog/",require$$1={WEARABLE_PREVIEW_URL:WEARABLE_PREVIEW_URL$2,ACCOUNT_URL:ACCOUNT_URL$2,PROFILE_URL:PROFILE_URL$2,MARKETPLACE_URL:MARKETPLACE_URL$2,MARKETPLACE_NAMES_URL:MARKETPLACE_NAMES_URL$2,MARKETPLACE_WEARABLES_URL:MARKETPLACE_WEARABLES_URL$2,MARKETPLACE_LANDS_URL:MARKETPLACE_LANDS_URL$2,MARKETPLACE_EMOTES_URL:MARKETPLACE_EMOTES_URL$2,MARKETPLACE_MY_ASSETS_URL:MARKETPLACE_MY_ASSETS_URL$2,MARKETPLACE_SETTINGS_URL:MARKETPLACE_SETTINGS_URL$2,BUILDER_URL:BUILDER_URL$2,BUILDER_WEARABLE_EMOTES_URL:BUILDER_WEARABLE_EMOTES_URL$2,BUILDER_SCENES_URL:BUILDER_SCENES_URL$2,BUILDER_NAMES_URL:BUILDER_NAMES_URL$2,BUILDER_WORLDS_URL:BUILDER_WORLDS_URL$2,BUILDER_LAND_URL:BUILDER_LAND_URL$2,DAO_URL:DAO_URL$2,DAO_GRANTS_URL:DAO_GRANTS_URL$2,GOVERNANCE_URL:GOVERNANCE_URL$2,GOVERNANCE_TRANSPARENCY_URL:GOVERNANCE_TRANSPARENCY_URL$2,GOVERNANCE_PROPOSALS_URL:GOVERNANCE_PROPOSALS_URL$2,GOVERNANCE_PROJECTS_URL:GOVERNANCE_PROJECTS_URL$2,EVENTS_URL:EVENTS_URL$2,EVENTS_MY_EVENTS:EVENTS_MY_EVENTS$2,PLACES_URL:PLACES_URL$2,PLACES_MY_FAVORITE_URL:PLACES_MY_FAVORITE_URL$2,EXPLORER_URL:EXPLORER_URL$2,STUDIOS_URL:STUDIOS_URL$2,DOCS_ABOUT_URL:DOCS_ABOUT_URL$2,DOCS_CREATORS_URL:DOCS_CREATORS_URL$2,DOCS_CONTRIBUTOR_URL:DOCS_CONTRIBUTOR_URL$2,DOCS_DAO_URL:DOCS_DAO_URL$2,BLOG_URL:BLOG_URL$2},WEARABLE_PREVIEW_URL$1="https://wearable-preview.decentraland.today",ACCOUNT_URL$1="https://decentraland.today/account",PROFILE_URL$1="https://decentraland.today/profile",MARKETPLACE_URL$1="https://decentraland.today/marketplace",MARKETPLACE_NAMES_URL$1="https://decentraland.today/marketplace/names/claim",MARKETPLACE_WEARABLES_URL$1="https://decentraland.today/marketplace/browse?section=wearables&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_LANDS_URL$1="https://decentraland.today/marketplace/lands",MARKETPLACE_EMOTES_URL$1="https://decentraland.today/marketplace/browse?assetType=item§ion=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_MY_ASSETS_URL$1="https://decentraland.today/marketplace/account?assetType=nft§ion=wearables&vendor=decentraland&page=1&sortBy=newest&onlyOnSale=false",MARKETPLACE_SETTINGS_URL$1="https://decentraland.zone/marketplace/settings",BUILDER_URL$1="https://decentraland.today/builder",BUILDER_WEARABLE_EMOTES_URL$1="https://decentraland.today/builder/collections",BUILDER_SCENES_URL$1="https://decentraland.today/builder/scenes",BUILDER_NAMES_URL$1="https://decentraland.today/builder/names",BUILDER_WORLDS_URL$1="https://decentraland.today/builder/worlds?tab=dcl",BUILDER_LAND_URL$1="https://decentraland.today/builder/land",DAO_URL$1="https://decentraland.today/dao",DAO_GRANTS_URL$1="https://decentraland.today/dao/grants/",GOVERNANCE_URL$1="https://decentraland.zone/governance",GOVERNANCE_TRANSPARENCY_URL$1="https://decentraland.zone/governance/transparency/",GOVERNANCE_PROPOSALS_URL$1="https://decentraland.zone/governance/proposals/",GOVERNANCE_PROJECTS_URL$1="https://decentraland.zone/governance/projects/",EVENTS_URL$1="https://decentraland.zone/events",EVENTS_MY_EVENTS$1="https://decentraland.zone/events/me/",PLACES_URL$1="https://decentraland.zone/places",PLACES_MY_FAVORITE_URL$1="https://decentraland.zone/places/favorites/",EXPLORER_URL$1="https://play.decentraland.today",STUDIOS_URL$1="https://studios.decentraland.org/",DOCS_ABOUT_URL$1="https://docs.decentraland.org/player/",DOCS_CREATORS_URL$1="https://docs.decentraland.org/creator/",DOCS_CONTRIBUTOR_URL$1="https://docs.decentraland.org/contributor/",DOCS_DAO_URL$1="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",BLOG_URL$1="https://decentraland.today/blog/",require$$2$1={WEARABLE_PREVIEW_URL:WEARABLE_PREVIEW_URL$1,ACCOUNT_URL:ACCOUNT_URL$1,PROFILE_URL:PROFILE_URL$1,MARKETPLACE_URL:MARKETPLACE_URL$1,MARKETPLACE_NAMES_URL:MARKETPLACE_NAMES_URL$1,MARKETPLACE_WEARABLES_URL:MARKETPLACE_WEARABLES_URL$1,MARKETPLACE_LANDS_URL:MARKETPLACE_LANDS_URL$1,MARKETPLACE_EMOTES_URL:MARKETPLACE_EMOTES_URL$1,MARKETPLACE_MY_ASSETS_URL:MARKETPLACE_MY_ASSETS_URL$1,MARKETPLACE_SETTINGS_URL:MARKETPLACE_SETTINGS_URL$1,BUILDER_URL:BUILDER_URL$1,BUILDER_WEARABLE_EMOTES_URL:BUILDER_WEARABLE_EMOTES_URL$1,BUILDER_SCENES_URL:BUILDER_SCENES_URL$1,BUILDER_NAMES_URL:BUILDER_NAMES_URL$1,BUILDER_WORLDS_URL:BUILDER_WORLDS_URL$1,BUILDER_LAND_URL:BUILDER_LAND_URL$1,DAO_URL:DAO_URL$1,DAO_GRANTS_URL:DAO_GRANTS_URL$1,GOVERNANCE_URL:GOVERNANCE_URL$1,GOVERNANCE_TRANSPARENCY_URL:GOVERNANCE_TRANSPARENCY_URL$1,GOVERNANCE_PROPOSALS_URL:GOVERNANCE_PROPOSALS_URL$1,GOVERNANCE_PROJECTS_URL:GOVERNANCE_PROJECTS_URL$1,EVENTS_URL:EVENTS_URL$1,EVENTS_MY_EVENTS:EVENTS_MY_EVENTS$1,PLACES_URL:PLACES_URL$1,PLACES_MY_FAVORITE_URL:PLACES_MY_FAVORITE_URL$1,EXPLORER_URL:EXPLORER_URL$1,STUDIOS_URL:STUDIOS_URL$1,DOCS_ABOUT_URL:DOCS_ABOUT_URL$1,DOCS_CREATORS_URL:DOCS_CREATORS_URL$1,DOCS_CONTRIBUTOR_URL:DOCS_CONTRIBUTOR_URL$1,DOCS_DAO_URL:DOCS_DAO_URL$1,BLOG_URL:BLOG_URL$1},WEARABLE_PREVIEW_URL="https://wearable-preview.decentraland.org",ACCOUNT_URL="https://decentraland.org/account",PROFILE_URL="https://decentraland.org/profile",MARKETPLACE_URL="https://decentraland.org/marketplace",MARKETPLACE_NAMES_URL="https://decentraland.org/marketplace/names/claim",MARKETPLACE_WEARABLES_URL="https://decentraland.org/marketplace/browse?section=wearables&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_LANDS_URL="https://decentraland.org/marketplace/lands",MARKETPLACE_EMOTES_URL="https://decentraland.org/marketplace/browse?assetType=item§ion=emotes&vendor=decentraland&page=1&sortBy=newest&status=on_sale",MARKETPLACE_MY_ASSETS_URL="https://decentraland.org/marketplace/account?assetType=nft§ion=wearables&vendor=decentraland&page=1&sortBy=newest&onlyOnSale=false",MARKETPLACE_SETTINGS_URL="https://decentraland.org/marketplace/settings",BUILDER_URL="https://decentraland.org/builder",BUILDER_WEARABLE_EMOTES_URL="https://decentraland.org/builder/collections",BUILDER_SCENES_URL="https://decentraland.org/builder/scenes",BUILDER_NAMES_URL="https://decentraland.org/builder/names",BUILDER_WORLDS_URL="https://decentraland.org/builder/worlds?tab=dcl",BUILDER_LAND_URL="https://decentraland.org/builder/land",DAO_URL="https://decentraland.org/dao",DAO_GRANTS_URL="https://decentraland.org/dao/grants/",GOVERNANCE_URL="https://decentraland.org/governance",GOVERNANCE_TRANSPARENCY_URL="https://decentraland.org/governance/transparency/",GOVERNANCE_PROPOSALS_URL="https://decentraland.org/governance/proposals/",GOVERNANCE_PROJECTS_URL="https://decentraland.org/governance/projects/",EVENTS_URL="https://decentraland.org/events",EVENTS_MY_EVENTS="https://decentraland.org/events/me/",PLACES_URL="https://decentraland.org/places",PLACES_MY_FAVORITE_URL="https://decentraland.org/places/favorites/",EXPLORER_URL="https://play.decentraland.org",STUDIOS_URL="https://studios.decentraland.org/",DOCS_ABOUT_URL="https://docs.decentraland.org/player/",DOCS_CREATORS_URL="https://docs.decentraland.org/creator/",DOCS_CONTRIBUTOR_URL="https://docs.decentraland.org/contributor/",DOCS_DAO_URL="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",BLOG_URL="https://decentraland.org/blog/",require$$3={WEARABLE_PREVIEW_URL,ACCOUNT_URL,PROFILE_URL,MARKETPLACE_URL,MARKETPLACE_NAMES_URL,MARKETPLACE_WEARABLES_URL,MARKETPLACE_LANDS_URL,MARKETPLACE_EMOTES_URL,MARKETPLACE_MY_ASSETS_URL,MARKETPLACE_SETTINGS_URL,BUILDER_URL,BUILDER_WEARABLE_EMOTES_URL,BUILDER_SCENES_URL,BUILDER_NAMES_URL,BUILDER_WORLDS_URL,BUILDER_LAND_URL,DAO_URL,DAO_GRANTS_URL,GOVERNANCE_URL,GOVERNANCE_TRANSPARENCY_URL,GOVERNANCE_PROPOSALS_URL,GOVERNANCE_PROJECTS_URL,EVENTS_URL,EVENTS_MY_EVENTS,PLACES_URL,PLACES_MY_FAVORITE_URL,EXPLORER_URL,STUDIOS_URL,DOCS_ABOUT_URL,DOCS_CREATORS_URL,DOCS_CONTRIBUTOR_URL,DOCS_DAO_URL,BLOG_URL};var __importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},_a;Object.defineProperty(config,"__esModule",{value:!0});config.config=void 0;var ui_env_1=dist$3,dev_json_1=__importDefault$2(require$$1),stg_json_1=__importDefault$2(require$$2$1),prod_json_1=__importDefault$2(require$$3);config.config=(0,ui_env_1.createConfig)((_a={},_a[ui_env_1.Env.DEVELOPMENT]=dev_json_1.default,_a[ui_env_1.Env.STAGING]=stg_json_1.default,_a[ui_env_1.Env.PRODUCTION]=prod_json_1.default,_a));var __extends$3=commonjsGlobal&&commonjsGlobal.__extends||function(){var a=function(_,$){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,_e){j.__proto__=_e}||function(j,_e){for(var et in _e)Object.prototype.hasOwnProperty.call(_e,et)&&(j[et]=_e[et])},a(_,$)};return function(_,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");a(_,$);function j(){this.constructor=_}_.prototype=$===null?Object.create($):(j.prototype=$.prototype,new j)}}(),__createBinding$3=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(a,_,$,j){j===void 0&&(j=$);var _e=Object.getOwnPropertyDescriptor(_,$);(!_e||("get"in _e?!_.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return _[$]}}),Object.defineProperty(a,j,_e)}:function(a,_,$,j){j===void 0&&(j=$),a[j]=_[$]}),__setModuleDefault$3=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(a,_){Object.defineProperty(a,"default",{enumerable:!0,value:_})}:function(a,_){a.default=_}),__importStar$3=commonjsGlobal&&commonjsGlobal.__importStar||function(a){if(a&&a.__esModule)return a;var _={};if(a!=null)for(var $ in a)$!=="default"&&Object.prototype.hasOwnProperty.call(a,$)&&__createBinding$3(_,a,$);return __setModuleDefault$3(_,a),_},__rest$1=commonjsGlobal&&commonjsGlobal.__rest||function(a,_){var $={};for(var j in a)Object.prototype.hasOwnProperty.call(a,j)&&_.indexOf(j)<0&&($[j]=a[j]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,j=Object.getOwnPropertySymbols(a);_e<j.length;_e++)_.indexOf(j[_e])<0&&Object.prototype.propertyIsEnumerable.call(a,j[_e])&&($[j[_e]]=a[j[_e]]);return $},__importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(WearablePreview$2,"__esModule",{value:!0});var WearablePreview_2=WearablePreview$2.WearablePreview=void 0,React$3=__importStar$3(reactExports),deep_equal_1=__importDefault$1(deepEqual),preview_1=preview,debounce_1=debounce$2,WearablePreview_controller_1=WearablePreview_controller,config_1=config,debounce$1=(0,debounce_1.createDebounce)(),WearablePreview=function(a){__extends$3(_,a);function _(){var $=a!==null&&a.apply(this,arguments)||this;return $.state={isReady:!1,pendingOptions:null,lastOptions:null},$.iframe=null,$.getUrl=function(){var j=$.props,_e=j.contractAddress,et=j.tokenId,tt=j.itemId,rt=j.profile,it=j.urns,ct=j.urls,dt=j.base64s,mt=j.skin,vt=j.hair,wt=j.eyes,xt=j.bodyShape,bt=j.emote,Et=j.camera,$t=j.projection,At=j.zoom,Rt=j.background,Pt=j.offsetX,Ct=j.offsetY,Ot=j.offsetZ,kt=j.cameraX,Dt=j.cameraY,Nt=j.cameraZ,zt=j.wheelZoom,gt=j.wheelPrecision,nt=j.wheelStart,ot=j.disableBackground,st=j.disableAutoRotate,lt=j.disableAutoCenter,pt=j.disableFace,_t=j.disableDefaultWearables,St=j.disableDefaultEmotes,yt=j.disableFadeEffect,at=j.showSceneBoundaries,ht=j.showThumbnailBoundaries,Mt=j.panning,Tt=j.lockAlpha,It=j.lockBeta,Lt=j.lockRadius,jt=j.dev,Gt=j.baseUrl,tr=j.peerUrl,er=j.nftServerUrl,Jt=j.type,Wt=_e?"contract=".concat(_e):"",Kt=et?"token=".concat(et):"",lr=tt?"item=".concat(tt):"",Lr=rt?"profile=".concat(rt):"",$r=it&&it.length>0?it.map(function(Xt){return"urn=".concat(Xt)}).join("&"):"",wr=ct&&ct.length>0?ct.map(function(Xt){return"url=".concat(Xt)}).join("&"):"",an=dt&&dt.length>0?dt.map(function(Xt){return"base64=".concat(Xt)}).join("&"):"",Or=mt?"skin=".concat(mt):"",yr=vt?"hair=".concat(vt):"",cn=wt?"eyes=".concat(wt):"",Ar=xt?"bodyShape=".concat(xt):"",Gr=bt?"emote=".concat(bt):"",hn=Et?"camera=".concat(Et):"",Hr=$t?"projection=".concat($t):"",Jr=isNaN(At)?"":"zoom=".concat(At),An=Rt?"background=".concat(Rt):"",Vr=isNaN(Pt)?"":"offsetX=".concat(Pt),Yr=isNaN(Ct)?"":"offsetY=".concat(Ct),Tn=isNaN(Ot)?"":"offsetZ=".concat(Ot),Vt=isNaN(kt)?"":"cameraX=".concat(kt),Bt=isNaN(Dt)?"":"cameraY=".concat(Dt),Ft=isNaN(Nt)?"":"cameraZ=".concat(Nt),Zt=isNaN(zt)?"":"wheelZoom=".concat(zt),ur=isNaN(gt)?"":"wheelPrecision=".concat(gt),qr=isNaN(nt)?"":"wheelStart=".concat(nt),vr=ot?"disableBackground":"",jr=st?"disableAutoRotate":"",xn=lt?"disableAutoCenter":"",Fr=pt?"disableFace":"",Zr=_t?"disableDefaultWearables":"",pn=St?"disableDefaultEmotes":"",Ur=yt?"disableFadeEffect":"",nn=at?"showSceneBoundaries":"",Cn=ht?"showThumbnailBoundaries":"",ir=tr?"peerUrl=".concat(tr):"",Qt=er?"nftServerUrl=".concat(er):"",br=Jt?"type=".concat(Jt):"",ar=Mt===!1?"panning=false":"",xr=Tt?"lockAlpha=true":"",Xr=It?"lockBeta=true":"",Pr=Lt?"lockRadius=true":"",kr=jt?"env=dev":"",ln=Gt+"?"+[Wt,Kt,lr,Lr,$r,wr,an,Or,yr,cn,Ar,Gr,hn,Hr,Jr,An,Vr,Yr,Tn,Vt,Bt,Ft,Zt,ur,qr,vr,jr,xn,Fr,Zr,pn,Ur,nn,Cn,ir,Qt,br,ar,xr,Xr,Pr,kr].filter(function(Xt){return!!Xt}).join("&");return ln},$.getOptions=function(){var j=$.props;j.dev;var _e=__rest$1(j,["dev"]),et={};for(var tt in _e)typeof _e[tt]!="function"&&(et[tt]=_e[tt]);return et},$.handleMessage=function(j){var _e=$.props,et=_e.baseUrl,tt=_e.onLoad,rt=_e.onError,it=j.origin;if(it===et&&j.data&&j.data.type){var ct=j.data.type;switch(ct){case preview_1.PreviewMessageType.LOAD:{tt();break}case preview_1.PreviewMessageType.ERROR:{var dt=j.data.payload;rt(new Error(dt.message));break}case preview_1.PreviewMessageType.READY:{var mt=$.state,vt=mt.isReady,wt=mt.pendingOptions;if(vt)return;wt!==null?($.sendUpdate(wt),$.setState({isReady:!0,pendingOptions:null})):$.setState({isReady:!0});break}}}},$.handleUpdate=function(){if($.iframe){if(window){var j=$.getOptions();$.state.isReady?$.sendUpdate(j):$.setState({pendingPreviewOptions:j})}}else console.warn("Could not send update, iframe is not referenced")},$.sendUpdate=function(j){var _e=$.state.lastOptions;if(!_e||!(0,deep_equal_1.default)(j,_e)){(0,preview_1.sendMessage)($.iframe.contentWindow,preview_1.PreviewMessageType.UPDATE,{options:j});var et=$.props.onUpdate;et(j),$.setState({lastOptions:j})}},$.refIframe=function(j){$.iframe=j},$}return _.createController=function($){return(0,WearablePreview_controller_1.createController)($)},_.prototype.componentDidMount=function(){window.addEventListener("message",this.handleMessage,!1),this.setState({url:this.getUrl()}),this.props.blob&&this.handleUpdate()},_.prototype.componentWillUnmount=function(){window.removeEventListener("message",this.handleMessage,!1)},_.prototype.componentDidUpdate=function(){debounce$1(this.handleUpdate,500)},_.prototype.render=function(){return this.props.tokenId&&this.props.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),React$3.createElement("iframe",{id:this.props.id,className:"WearablePreview",src:this.state.url,width:"100%",height:"100%",frameBorder:"0",ref:this.refIframe,allow:"autoplay"})},_.defaultProps={dev:!1,baseUrl:config_1.config.get("WEARABLE_PREVIEW_URL"),onLoad:function(){},onError:function(){},onUpdate:function(){}},_}(React$3.PureComponent);WearablePreview_2=WearablePreview$2.WearablePreview=WearablePreview;const CustomWearablePreview$1="",CustomWearablePreview=a=>{const[_,$]=reactExports.useState(!0);reactExports.useEffect(()=>$(!0),[a.profile]);const j=reactExports.useMemo(()=>{const et=tt=>{const rt="platform.glb",it="https://cdn.decentraland.org/@dcl/auth-site/1.7.2";return{bodyShapes:[`urn:decentraland:off-chain:base-avatars:${tt}`],mainFile:rt,contents:[{key:rt,url:`${it}/misc/platform/${rt}`}]}};return btoa(JSON.stringify({data:{representations:[et("BaseMale"),et("BaseFemale")]}}))},[]),_e=reactExports.useCallback(()=>$(!1),[]);return jsxRuntimeExports.jsxs("div",{className:"CustomWearablePreview",children:[jsxRuntimeExports.jsx(WearablePreview_2,{lockBeta:!0,panning:!1,disableBackground:!0,profile:a.profile,dev:!1,emote:dist$5.PreviewEmote.WAVE,disableAutoRotate:!0,cameraY:.2,base64s:[j],onLoad:_e}),_?jsxRuntimeExports.jsx(Loader_3,{active:!0,size:"huge"}):null]})},background$2="_background_441c2_1",emptyProfile="_emptyProfile_441c2_11",main$6="_main_441c2_27",left$3="_left_441c2_38",right$3="_right_441c2_49",changeAccount="_changeAccount_441c2_57",errorLogo="_errorLogo_441c2_70",logo$1="_logo_441c2_79",title$4="_title_441c2_85",description="_description_441c2_92",code="_code_441c2_99",buttons="_buttons_441c2_106",closeWindow="_closeWindow_441c2_116",errorMessage="_errorMessage_441c2_122",noButton="_noButton_441c2_131",yesButton="_yesButton_441c2_133",communityBubble="_communityBubble_441c2_150",styles$a={background:background$2,emptyProfile,main:main$6,left:left$3,right:right$3,changeAccount,errorLogo,logo:logo$1,title:title$4,description,code,buttons,closeWindow,errorMessage,noButton,yesButton,communityBubble},RequestPage=()=>{usePageTracking();const a=useParams(),_=useNavigate(),$=reactExports.useRef(),[j,_e]=reactExports.useState(2),[et,tt]=reactExports.useState(!1),[rt,it]=reactExports.useState(),ct=reactExports.useRef(),[dt,mt]=reactExports.useState(),vt=reactExports.useRef(),wt=reactExports.useRef(),xt=a.requestId??"",[bt,Et]=useTargetConfig(),$t=reactExports.useCallback(()=>{_(`/login?redirectTo=${encodeURIComponent(`/auth/requests/${xt}?targetConfigId=${Et}`)}`)},[xt,Et]),At=reactExports.useCallback(()=>{_(`/setup?redirectTo=${encodeURIComponent(`/auth/requests/${xt}?targetConfigId=${Et}`)}`)},[xt,Et]);reactExports.useEffect(()=>((async()=>{try{const Nt=await getCurrentConnectionData();if(!Nt)throw new Error("No account connected");const zt=await connection$1.getProvider();$.current=new BrowserProvider(zt);const gt=await fetchProfile(Nt.account);if(!bt.skipSetup&&!gt){console.log("There's no profile but the user is logged in, going to setup page"),At();return}}catch{console.log("The user isn't logged in, redirecting to the log in page"),$t();return}try{const zt=await(await $.current.getSigner()).getAddress();getAnalytics().identify({ethAddress:zt});const gt=await authServerFetch("recover",{requestId:xt});ct.current=gt;const nt=await fetchProfile(zt);if(it(nt),wt.current=zt,gt.sender&>.sender!==zt.toLowerCase()){_e(1);return}vt.current=setTimeout(()=>{_e(0)},new Date(gt.expiration).getTime()-Date.now()),gt.method==="dcl_personal_sign"?_e(4):_e(8)}catch(Nt){mt(isErrorWithMessage(Nt)?Nt.message:"Unknown error"),_e(3)}})(),()=>{clearTimeout(vt.current)}),[$t,At]),reactExports.useEffect(()=>{j!==4&&j!==8&&clearTimeout(vt.current)},[j]);const Rt=reactExports.useCallback(async()=>{var Nt;tt(!0),getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.DENY_SIGN_IN});try{const zt=await((Nt=$.current)==null?void 0:Nt.getSigner());zt&&await authServerFetch("outcome",{requestId:xt,sender:await zt.getAddress(),error:{code:-32003,message:"Transaction rejected"}})}finally{tt(!1),_e(5)}},[]),Pt=reactExports.useCallback(async()=>{getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.APPROVE_SING_IN}),tt(!0);const Nt=$.current;try{if(!Nt)throw new Error("Provider not created");const zt=await Nt.getSigner(),gt=await zt.signMessage(ct.current.params[0]),nt=await authServerFetch("outcome",{requestId:xt,sender:await zt.getAddress(),result:gt});if(nt.error)throw new Error(nt.error);_e(7)}catch(zt){mt(isErrorWithMessage(zt)?zt.message:"Unknown error"),_e(6)}finally{tt(!1)}},[tt]),Ct=reactExports.useCallback(()=>{getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.DENY_WALLET_INTERACTION}),_e(9)},[]),Ot=reactExports.useCallback(async()=>{var zt;tt(!0);const Nt=$.current;try{if(!Nt)throw new Error("Provider not created");const gt=await Nt.getSigner(),nt=await Nt.send(ct.current.method,ct.current.params);getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.APPROVE_WALLET_INTERACTION,method:ct.current.method});const ot=await authServerFetch("outcome",{requestId:xt,sender:await gt.getAddress(),result:nt});if(ot.error)throw new Error(ot.error);_e(11)}catch(gt){console.error("Wallet error",JSON.stringify(gt));const nt=await((zt=$.current)==null?void 0:zt.getSigner());nt&&(isRpcError(gt)?await authServerFetch("outcome",{requestId:xt,sender:await nt.getAddress(),error:gt.error}):await authServerFetch("outcome",{requestId:xt,sender:await nt.getAddress(),error:{code:999,message:isErrorWithMessage(gt)?gt.message:"Unknown error"}})),mt(isErrorWithMessage(gt)?gt.message:"Unknown error"),_e(10)}},[]),kt=reactExports.useCallback(async Nt=>{Nt.preventDefault(),await connection$1.disconnect(),$t()},[$t]),Dt=reactExports.useCallback(Nt=>bt.showWearablePreview?jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:`${styles$a.background} ${(!wt||rt===null)&&j!==2?styles$a.emptyProfile:""}`}),jsxRuntimeExports.jsxs("div",{className:styles$a.main,children:[jsxRuntimeExports.jsxs("div",{className:styles$a.left,children:[Nt.children,Nt.canChangeAccount?jsxRuntimeExports.jsxs("div",{className:styles$a.changeAccount,children:["Use another profile?"," ",jsxRuntimeExports.jsx("a",{href:"/auth/login",onClick:kt,children:"Return to log in"})]}):null]}),jsxRuntimeExports.jsx("div",{className:styles$a.right,children:wt.current&&rt!==null?jsxRuntimeExports.jsx(CustomWearablePreview,{profile:wt.current}):null}),jsxRuntimeExports.jsx(CommunityBubble$3.CommunityBubble,{className:styles$a.communityBubble})]})]}):jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:`${styles$a.background} ${(!wt||rt===null)&&j!==2?styles$a.emptyProfile:""}`}),jsxRuntimeExports.jsxs("div",{className:styles$a.main,children:[jsxRuntimeExports.jsxs("div",{className:styles$a.left,children:[Nt.children,Nt.canChangeAccount?jsxRuntimeExports.jsxs("div",{className:styles$a.changeAccount,children:["Use another profile?"," ",jsxRuntimeExports.jsx("a",{href:"/auth/login",onClick:kt,children:"Return to log in"})]}):null]}),jsxRuntimeExports.jsx(CommunityBubble$3.CommunityBubble,{className:styles$a.communityBubble})]})]}),[j]);return j===0?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Looks like you took too long and the request has expired"}),jsxRuntimeExports.jsxs("div",{className:styles$a.description,children:["Please return to Decentraland's ",bt.explorerText," to try again."]}),jsxRuntimeExports.jsx(CloseWindow,{})]}):j===1?jsxRuntimeExports.jsxs(Dt,{canChangeAccount:!0,children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Looks like you are connected with a different account."}),jsxRuntimeExports.jsxs("div",{className:styles$a.description,children:["Please change your wallet account to the one connected to the ",bt.explorerText,"."]})]}):j===2?jsxRuntimeExports.jsx(Dt,{children:jsxRuntimeExports.jsx("div",{className:styles$a.left,children:jsxRuntimeExports.jsx(Loader_3,{active:!0,size:"huge"})})}):j===3?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"There was an error recovering the request..."}),jsxRuntimeExports.jsx("div",{className:styles$a.description,children:"The request is not available anymore. Feel free to create a new one and try again."}),jsxRuntimeExports.jsx(CloseWindow,{}),jsxRuntimeExports.jsx("div",{className:styles$a.errorMessage,children:dt})]}):j===4&&ct.current?jsxRuntimeExports.jsxs(Dt,{canChangeAccount:!0,isLoading:et,children:[jsxRuntimeExports.jsx("div",{className:styles$a.logo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Verify Sign In"}),jsxRuntimeExports.jsxs("div",{className:styles$a.description,children:["Do you see the same verification number on your ",bt.explorerText,"?"]}),jsxRuntimeExports.jsx("div",{className:styles$a.code,children:ct.current.code}),jsxRuntimeExports.jsxs("div",{className:styles$a.buttons,children:[jsxRuntimeExports.jsxs(Button$5.Button,{inverted:!0,disabled:et,onClick:Rt,className:styles$a.noButton,children:[jsxRuntimeExports.jsx(default_1,{name:"times circle"}),"No, it doesn't"]}),jsxRuntimeExports.jsxs(Button$5.Button,{inverted:!0,loading:et,disabled:et,onClick:Pt,className:styles$a.yesButton,children:[jsxRuntimeExports.jsx(default_1,{name:"check circle"}),"Yes, they are the same"]})]})]}):j===5?jsxRuntimeExports.jsxs(Dt,{canChangeAccount:!0,children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Did the number not match, or was this action not taken by you?"}),jsxRuntimeExports.jsx("div",{className:styles$a.description,children:"If you're trying to sign in, retry the action. If this action was not initiated by you, dismiss this message."}),jsxRuntimeExports.jsx(CloseWindow,{})]}):j===7?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.logo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Your account is ready!"}),jsxRuntimeExports.jsxs("div",{className:styles$a.description,children:["Return to the ",bt.explorerText," and enjoy Decentraland."]}),jsxRuntimeExports.jsx(CloseWindow,{})]}):j===8&&ct.current?jsxRuntimeExports.jsxs(Dt,{canChangeAccount:!0,isLoading:et,children:[jsxRuntimeExports.jsx("div",{className:styles$a.logo}),jsxRuntimeExports.jsxs("div",{className:styles$a.title,children:["The ",bt.explorerText," wants to interact with your wallet."]}),jsxRuntimeExports.jsx("div",{className:styles$a.description,children:"Review the following data carefully on your wallet before approving it."}),jsxRuntimeExports.jsxs("div",{className:styles$a.buttons,children:[jsxRuntimeExports.jsx(Button$5.Button,{inverted:!0,disabled:et,onClick:Ct,children:"Deny"}),jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,disabled:et,loading:et,onClick:Ot,children:"Allow"})]})]}):j===9?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Was this action not initiated by you?"}),jsxRuntimeExports.jsx("div",{className:styles$a.description,children:"If this action was not initiated by you, dismiss this message."}),jsxRuntimeExports.jsx(CloseWindow,{})]}):j===11?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.logo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"Wallet interaction complete"}),jsxRuntimeExports.jsx("div",{className:styles$a.description,children:"The action has been executed successfully."}),jsxRuntimeExports.jsx(CloseWindow,{})]}):j===6||j===10?jsxRuntimeExports.jsxs(Dt,{children:[jsxRuntimeExports.jsx("div",{className:styles$a.errorLogo}),jsxRuntimeExports.jsx("div",{className:styles$a.title,children:"There was an error while trying to submit the request."}),jsxRuntimeExports.jsxs("div",{className:styles$a.description,children:["Return to the ",bt.explorerText," to try again, or contact support if the error persists."]}),jsxRuntimeExports.jsx(CloseWindow,{}),jsxRuntimeExports.jsx("div",{className:styles$a.errorMessage,children:dt})]}):null},CloseWindow=()=>jsxRuntimeExports.jsx("div",{className:styles$a.closeWindow,children:"You can close this window."}),authServerFetch=async(a,_)=>{const $=config$1.get("AUTH_SERVER_URL"),j=lookup($);await new Promise(et=>{j.on("connect",et)});const _e=await j.emitWithAck(a,_);if(j.close(),_e.error)throw new Error(_e.error);return _e};var Checkbox$4={},Checkbox$3={},Checkbox$2={},set_1,hasRequiredSet;function requireSet(){if(hasRequiredSet)return set_1;hasRequiredSet=1;var a=require_baseSet();function _($,j,_e){return $==null?$:a($,j,_e)}return set_1=_,set_1}var hasRequiredCheckbox;function requireCheckbox(){if(hasRequiredCheckbox)return Checkbox$2;hasRequiredCheckbox=1;var a=interopRequireWildcardExports,_=interopRequireDefaultExports;Checkbox$2.__esModule=!0,Checkbox$2.default=void 0;var $=_(require_extends()),j=_(requireInheritsLoose()),_e=_(requireSet()),et=_(requireInvoke());_(requireGet());var tt=_(requireIsNil()),rt=require$$4$1,it=_(require$$0$4);_(requirePropTypes());var ct=a(reactExports),dt=requireLib(),mt=function(vt){(0,j.default)(wt,vt);function wt(){for(var bt,Et=arguments.length,$t=new Array(Et),At=0;At<Et;At++)$t[At]=arguments[At];return bt=vt.call.apply(vt,[this].concat($t))||this,bt.inputRef=(0,ct.createRef)(),bt.labelRef=(0,ct.createRef)(),bt.canToggle=function(){var Rt=bt.props,Pt=Rt.disabled,Ct=Rt.radio,Ot=Rt.readOnly,kt=bt.state.checked;return!Pt&&!Ot&&!(Ct&&kt)},bt.computeTabIndex=function(){var Rt=bt.props,Pt=Rt.disabled,Ct=Rt.tabIndex;return(0,tt.default)(Ct)?Pt?-1:0:Ct},bt.handleClick=function(Rt){var Pt=bt.props.id,Ct=bt.state,Ot=Ct.checked,kt=Ct.indeterminate,Dt=(0,et.default)(bt.inputRef.current,"contains",Rt.target),Nt=(0,et.default)(bt.labelRef.current,"contains",Rt.target),zt=!Nt&&!Dt,gt=!(0,tt.default)(Pt),nt=Nt&>nt||(0,et.default)(bt.props,"onClick",Rt,(0,$.default)({},bt.props,{checked:!Ot,indeterminate:!!kt})),bt.isClickFromMouse&&(bt.isClickFromMouse=!1,Nt&&!gt&&bt.handleChange(Rt),zt&&bt.handleChange(Rt),Nt&>&&Rt.stopPropagation())},bt.handleChange=function(Rt){var Pt=bt.state.checked;bt.canToggle()&&((0,et.default)(bt.props,"onChange",Rt,(0,$.default)({},bt.props,{checked:!Pt,indeterminate:!1})),bt.setState({checked:!Pt,indeterminate:!1}))},bt.handleMouseDown=function(Rt){var Pt=bt.state,Ct=Pt.checked,Ot=Pt.indeterminate;(0,et.default)(bt.props,"onMouseDown",Rt,(0,$.default)({},bt.props,{checked:!!Ct,indeterminate:!!Ot})),Rt.defaultPrevented||(0,et.default)(bt.inputRef.current,"focus"),Rt.preventDefault()},bt.handleMouseUp=function(Rt){var Pt=bt.state,Ct=Pt.checked,Ot=Pt.indeterminate;bt.isClickFromMouse=!0,(0,et.default)(bt.props,"onMouseUp",Rt,(0,$.default)({},bt.props,{checked:!!Ct,indeterminate:!!Ot}))},bt.setIndeterminate=function(){var Rt=bt.state.indeterminate;(0,_e.default)(bt.inputRef,"current.indeterminate",!!Rt)},bt}var xt=wt.prototype;return xt.componentDidMount=function(){this.setIndeterminate()},xt.componentDidUpdate=function(){this.setIndeterminate()},xt.render=function(){var Et=this.props,$t=Et.className,At=Et.disabled,Rt=Et.label,Pt=Et.id,Ct=Et.name,Ot=Et.radio,kt=Et.readOnly,Dt=Et.slider,Nt=Et.toggle,zt=Et.type,gt=Et.value,nt=this.state,ot=nt.checked,st=nt.indeterminate,lt=(0,it.default)("ui",(0,dt.useKeyOnly)(ot,"checked"),(0,dt.useKeyOnly)(At,"disabled"),(0,dt.useKeyOnly)(st,"indeterminate"),(0,dt.useKeyOnly)((0,tt.default)(Rt),"fitted"),(0,dt.useKeyOnly)(Ot,"radio"),(0,dt.useKeyOnly)(kt,"read-only"),(0,dt.useKeyOnly)(Dt,"slider"),(0,dt.useKeyOnly)(Nt,"toggle"),"checkbox",$t),pt=(0,dt.getUnhandledProps)(wt,this.props),_t=(0,dt.getElementType)(wt,this.props),St=(0,dt.partitionHTMLProps)(pt,{htmlProps:dt.htmlInputAttrs}),yt=St[0],at=St[1],ht=(0,dt.createHTMLLabel)(Rt,{defaultProps:{htmlFor:Pt},autoGenerateKey:!1})||ct.default.createElement("label",{htmlFor:Pt});return ct.default.createElement(_t,(0,$.default)({},at,{className:lt,onClick:this.handleClick,onChange:this.handleChange,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp}),ct.default.createElement(rt.Ref,{innerRef:this.inputRef},ct.default.createElement("input",(0,$.default)({},yt,{checked:ot,className:"hidden",disabled:At,id:Pt,name:Ct,readOnly:!0,tabIndex:this.computeTabIndex(),type:zt,value:gt}))),ct.default.createElement(rt.Ref,{innerRef:this.labelRef},ht))},wt}(dt.ModernAutoControlledComponent);return Checkbox$2.default=mt,mt.handledProps=["as","checked","className","defaultChecked","defaultIndeterminate","disabled","fitted","id","indeterminate","label","name","onChange","onClick","onMouseDown","onMouseUp","radio","readOnly","slider","tabIndex","toggle","type","value"],mt.propTypes={},mt.defaultProps={type:"checkbox"},mt.autoControlledProps=["checked","indeterminate"],Checkbox$2}var _interopRequireDefault$4=interopRequireDefaultExports;Checkbox$3.__esModule=!0;var _Checkbox=_interopRequireDefault$4(requireCheckbox());Checkbox$3.default=_Checkbox.default;const Checkbox$1="";(function(a){var _=commonjsGlobal&&commonjsGlobal.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(a,"__esModule",{value:!0}),a.Checkbox=void 0;var $=Checkbox$3;Object.defineProperty(a,"Checkbox",{enumerable:!0,get:function(){return _($).default}})})(Checkbox$4);var Field$2={};const todayButton="Today",nextMonth="Next month",previousMonth="Previous month",nextYear="Next year",previousYear="Previous year",weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months=["January","February","March","April","May","June","July","August","September","October","November","December"],require$$0={todayButton,nextMonth,previousMonth,nextYear,previousYear,weekdays,months};function requiredArgs(a,_){if(_.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+_.length+" present")}function _typeof$y(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$y=function($){return typeof $}:_typeof$y=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$y(a)}function isDate(a){return requiredArgs(1,arguments),a instanceof Date||_typeof$y(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function _typeof$x(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$x=function($){return typeof $}:_typeof$x=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$x(a)}function toDate$1(a){requiredArgs(1,arguments);var _=Object.prototype.toString.call(a);return a instanceof Date||_typeof$x(a)==="object"&&_==="[object Date]"?new Date(a.getTime()):typeof a=="number"||_==="[object Number]"?new Date(a):((typeof a=="string"||_==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function isValid(a){if(requiredArgs(1,arguments),!isDate(a)&&typeof a!="number")return!1;var _=toDate$1(a);return!isNaN(Number(_))}function e(a,_,$){return a.length+1===_.length&&_.endsWith($)}function r(a,_){if(!_)return _;var $=String(_).replace(/[^\da-zA-Z\n|]/g,""),j=a.split(/[^\da-zA-Z\n|]/g).filter(Boolean).map(function(ct){return ct.length}),_e=a.split(/[\da-zA-Z\n|]/g).filter(Boolean),et=_e[0],tt=_e[_e.length-1];if(a.startsWith(et)){var rt=_e.reduce(function(ct,dt,mt){var vt=j[mt],wt=ct.value.slice(0,vt),xt=ct.value.slice(vt);return{result:wt?ct.result.concat(dt,wt):ct.result,value:xt}},{result:"",value:$}).result.slice(0,a.length);return e(rt,a,tt)?rt.concat(tt):rt}var it=j.reduce(function(ct,dt,mt){var vt=_e[mt]||"",wt="$1"+vt+"$2",xt=dt+ct.prevSlice+ct.prevSeparator.length,bt=new RegExp("(.{"+xt+"})(.)");return{prevSeparator:vt,prevSlice:xt,value:ct.value.replace(bt,wt)}},{prevSeparator:"",prevSlice:0,value:$}).value.slice(0,a.length);return e(it,a,tt)?it.concat(tt):it}function formatStringByPattern(a,_){return _===void 0?function($){return r(a,$)}:r(a,_)}var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal(a,_){if(a===_)return!0;if(a&&_&&typeof a=="object"&&typeof _=="object"){if(a.constructor!==_.constructor)return!1;var $,j,_e;if(Array.isArray(a)){if($=a.length,$!=_.length)return!1;for(j=$;j--!==0;)if(!equal(a[j],_[j]))return!1;return!0}var et;if(hasMap&&a instanceof Map&&_ instanceof Map){if(a.size!==_.size)return!1;for(et=a.entries();!(j=et.next()).done;)if(!_.has(j.value[0]))return!1;for(et=a.entries();!(j=et.next()).done;)if(!equal(j.value[1],_.get(j.value[0])))return!1;return!0}if(hasSet&&a instanceof Set&&_ instanceof Set){if(a.size!==_.size)return!1;for(et=a.entries();!(j=et.next()).done;)if(!_.has(j.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(_)){if($=a.length,$!=_.length)return!1;for(j=$;j--!==0;)if(a[j]!==_[j])return!1;return!0}if(a.constructor===RegExp)return a.source===_.source&&a.flags===_.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===_.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===_.toString();if(_e=Object.keys(a),$=_e.length,$!==Object.keys(_).length)return!1;for(j=$;j--!==0;)if(!Object.prototype.hasOwnProperty.call(_,_e[j]))return!1;if(hasElementType&&a instanceof Element)return!1;for(j=$;j--!==0;)if(!((_e[j]==="_owner"||_e[j]==="__v"||_e[j]==="__o")&&a.$$typeof)&&!equal(a[_e[j]],_[_e[j]]))return!1;return!0}return a!==a&&_!==_}var reactFastCompare=function a(_,$){try{return equal(_,$)}catch(j){if((j.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw j}};const isEqual$1=getDefaultExportFromCjs$1(reactFastCompare);var convertTokens$1={};Object.defineProperty(convertTokens$1,"__esModule",{value:!0});var tokensMap={M:"L",Mo:"Mo",MM:"LL",MMM:"LLL",MMMM:"LLLL",Q:"q",Qo:"qo",D:"d",Do:"do",DD:"dd",DDD:"D",DDDo:"Do",DDDD:"DDD",d:"i",do:"io",dd:"iiiiii",ddd:"iii",dddd:"iiii",A:"a",a:"a",aa:"aaaa",E:"i",W:"I",Wo:"Io",WW:"II",YY:"yy",YYYY:"yyyy",GG:"RR",GGGG:"RRRR",H:"H",HH:"HH",h:"h",hh:"hh",m:"m",mm:"mm",s:"s",ss:"ss",S:"S",SS:"SS",SSS:"SSS",Z:"xxx",ZZ:"xx",X:"t",x:"T"},v1tokens=Object.keys(tokensMap).sort().reverse(),tokensRegExp=new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+v1tokens.join("|")+"|.)","g");function convertTokens(a){var _=a.match(tokensRegExp);return _?_.reduce(function($,j,_e){var et=tokensMap[j];if(!et){var tt=j.match(/^\[(.+)\]$/);tt?$.textBuffer.push(tt[1]):$.textBuffer.push(j)}var rt=_e===_.length-1;return $.textBuffer.length&&(et||rt)&&($.formatBuffer.push("'"+$.textBuffer.join("")+"'"),$.textBuffer=[]),et&&$.formatBuffer.push(et),$},{formatBuffer:[],textBuffer:[]}).formatBuffer.join(""):a}var convertTokens_2=convertTokens$1.convertTokens=convertTokens;function toInteger$2(a){if(a===null||a===!0||a===!1)return NaN;var _=Number(a);return isNaN(_)?_:_<0?Math.ceil(_):Math.floor(_)}function addMilliseconds(a,_){requiredArgs(2,arguments);var $=toDate$1(a).getTime(),j=toInteger$2(_);return new Date($+j)}function subMilliseconds(a,_){requiredArgs(2,arguments);var $=toInteger$2(_);return addMilliseconds(a,-$)}var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(a){requiredArgs(1,arguments);var _=toDate$1(a),$=_.getTime();_.setUTCMonth(0,1),_.setUTCHours(0,0,0,0);var j=_.getTime(),_e=$-j;return Math.floor(_e/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(a){requiredArgs(1,arguments);var _=1,$=toDate$1(a),j=$.getUTCDay(),_e=(j<_?7:0)+j-_;return $.setUTCDate($.getUTCDate()-_e),$.setUTCHours(0,0,0,0),$}function getUTCISOWeekYear(a){requiredArgs(1,arguments);var _=toDate$1(a),$=_.getUTCFullYear(),j=new Date(0);j.setUTCFullYear($+1,0,4),j.setUTCHours(0,0,0,0);var _e=startOfUTCISOWeek(j),et=new Date(0);et.setUTCFullYear($,0,4),et.setUTCHours(0,0,0,0);var tt=startOfUTCISOWeek(et);return _.getTime()>=_e.getTime()?$+1:_.getTime()>=tt.getTime()?$:$-1}function startOfUTCISOWeekYear(a){requiredArgs(1,arguments);var _=getUTCISOWeekYear(a),$=new Date(0);$.setUTCFullYear(_,0,4),$.setUTCHours(0,0,0,0);var j=startOfUTCISOWeek($);return j}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek(a){requiredArgs(1,arguments);var _=toDate$1(a),$=startOfUTCISOWeek(_).getTime()-startOfUTCISOWeekYear(_).getTime();return Math.round($/MILLISECONDS_IN_WEEK$1)+1}var defaultOptions={};function getDefaultOptions(){return defaultOptions}function startOfUTCWeek(a,_){var $,j,_e,et,tt,rt,it,ct;requiredArgs(1,arguments);var dt=getDefaultOptions(),mt=toInteger$2(($=(j=(_e=(et=_==null?void 0:_.weekStartsOn)!==null&&et!==void 0?et:_==null||(tt=_.locale)===null||tt===void 0||(rt=tt.options)===null||rt===void 0?void 0:rt.weekStartsOn)!==null&&_e!==void 0?_e:dt.weekStartsOn)!==null&&j!==void 0?j:(it=dt.locale)===null||it===void 0||(ct=it.options)===null||ct===void 0?void 0:ct.weekStartsOn)!==null&&$!==void 0?$:0);if(!(mt>=0&&mt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var vt=toDate$1(a),wt=vt.getUTCDay(),xt=(wt<mt?7:0)+wt-mt;return vt.setUTCDate(vt.getUTCDate()-xt),vt.setUTCHours(0,0,0,0),vt}function getUTCWeekYear(a,_){var $,j,_e,et,tt,rt,it,ct;requiredArgs(1,arguments);var dt=toDate$1(a),mt=dt.getUTCFullYear(),vt=getDefaultOptions(),wt=toInteger$2(($=(j=(_e=(et=_==null?void 0:_.firstWeekContainsDate)!==null&&et!==void 0?et:_==null||(tt=_.locale)===null||tt===void 0||(rt=tt.options)===null||rt===void 0?void 0:rt.firstWeekContainsDate)!==null&&_e!==void 0?_e:vt.firstWeekContainsDate)!==null&&j!==void 0?j:(it=vt.locale)===null||it===void 0||(ct=it.options)===null||ct===void 0?void 0:ct.firstWeekContainsDate)!==null&&$!==void 0?$:1);if(!(wt>=1&&wt<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var xt=new Date(0);xt.setUTCFullYear(mt+1,0,wt),xt.setUTCHours(0,0,0,0);var bt=startOfUTCWeek(xt,_),Et=new Date(0);Et.setUTCFullYear(mt,0,wt),Et.setUTCHours(0,0,0,0);var $t=startOfUTCWeek(Et,_);return dt.getTime()>=bt.getTime()?mt+1:dt.getTime()>=$t.getTime()?mt:mt-1}function startOfUTCWeekYear(a,_){var $,j,_e,et,tt,rt,it,ct;requiredArgs(1,arguments);var dt=getDefaultOptions(),mt=toInteger$2(($=(j=(_e=(et=_==null?void 0:_.firstWeekContainsDate)!==null&&et!==void 0?et:_==null||(tt=_.locale)===null||tt===void 0||(rt=tt.options)===null||rt===void 0?void 0:rt.firstWeekContainsDate)!==null&&_e!==void 0?_e:dt.firstWeekContainsDate)!==null&&j!==void 0?j:(it=dt.locale)===null||it===void 0||(ct=it.options)===null||ct===void 0?void 0:ct.firstWeekContainsDate)!==null&&$!==void 0?$:1),vt=getUTCWeekYear(a,_),wt=new Date(0);wt.setUTCFullYear(vt,0,mt),wt.setUTCHours(0,0,0,0);var xt=startOfUTCWeek(wt,_);return xt}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(a,_){requiredArgs(1,arguments);var $=toDate$1(a),j=startOfUTCWeek($,_).getTime()-startOfUTCWeekYear($,_).getTime();return Math.round(j/MILLISECONDS_IN_WEEK)+1}function addLeadingZeros(a,_){for(var $=a<0?"-":"",j=Math.abs(a).toString();j.length<_;)j="0"+j;return $+j}var formatters$2={y:function a(_,$){var j=_.getUTCFullYear(),_e=j>0?j:1-j;return addLeadingZeros($==="yy"?_e%100:_e,$.length)},M:function a(_,$){var j=_.getUTCMonth();return $==="M"?String(j+1):addLeadingZeros(j+1,2)},d:function a(_,$){return addLeadingZeros(_.getUTCDate(),$.length)},a:function a(_,$){var j=_.getUTCHours()/12>=1?"pm":"am";switch($){case"a":case"aa":return j.toUpperCase();case"aaa":return j;case"aaaaa":return j[0];case"aaaa":default:return j==="am"?"a.m.":"p.m."}},h:function a(_,$){return addLeadingZeros(_.getUTCHours()%12||12,$.length)},H:function a(_,$){return addLeadingZeros(_.getUTCHours(),$.length)},m:function a(_,$){return addLeadingZeros(_.getUTCMinutes(),$.length)},s:function a(_,$){return addLeadingZeros(_.getUTCSeconds(),$.length)},S:function a(_,$){var j=$.length,_e=_.getUTCMilliseconds(),et=Math.floor(_e*Math.pow(10,j-3));return addLeadingZeros(et,$.length)}};const lightFormatters=formatters$2;var dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function a(_,$,j){var _e=_.getUTCFullYear()>0?1:0;switch($){case"G":case"GG":case"GGG":return j.era(_e,{width:"abbreviated"});case"GGGGG":return j.era(_e,{width:"narrow"});case"GGGG":default:return j.era(_e,{width:"wide"})}},y:function a(_,$,j){if($==="yo"){var _e=_.getUTCFullYear(),et=_e>0?_e:1-_e;return j.ordinalNumber(et,{unit:"year"})}return lightFormatters.y(_,$)},Y:function a(_,$,j,_e){var et=getUTCWeekYear(_,_e),tt=et>0?et:1-et;if($==="YY"){var rt=tt%100;return addLeadingZeros(rt,2)}return $==="Yo"?j.ordinalNumber(tt,{unit:"year"}):addLeadingZeros(tt,$.length)},R:function a(_,$){var j=getUTCISOWeekYear(_);return addLeadingZeros(j,$.length)},u:function a(_,$){var j=_.getUTCFullYear();return addLeadingZeros(j,$.length)},Q:function a(_,$,j){var _e=Math.ceil((_.getUTCMonth()+1)/3);switch($){case"Q":return String(_e);case"QQ":return addLeadingZeros(_e,2);case"Qo":return j.ordinalNumber(_e,{unit:"quarter"});case"QQQ":return j.quarter(_e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return j.quarter(_e,{width:"narrow",context:"formatting"});case"QQQQ":default:return j.quarter(_e,{width:"wide",context:"formatting"})}},q:function a(_,$,j){var _e=Math.ceil((_.getUTCMonth()+1)/3);switch($){case"q":return String(_e);case"qq":return addLeadingZeros(_e,2);case"qo":return j.ordinalNumber(_e,{unit:"quarter"});case"qqq":return j.quarter(_e,{width:"abbreviated",context:"standalone"});case"qqqqq":return j.quarter(_e,{width:"narrow",context:"standalone"});case"qqqq":default:return j.quarter(_e,{width:"wide",context:"standalone"})}},M:function a(_,$,j){var _e=_.getUTCMonth();switch($){case"M":case"MM":return lightFormatters.M(_,$);case"Mo":return j.ordinalNumber(_e+1,{unit:"month"});case"MMM":return j.month(_e,{width:"abbreviated",context:"formatting"});case"MMMMM":return j.month(_e,{width:"narrow",context:"formatting"});case"MMMM":default:return j.month(_e,{width:"wide",context:"formatting"})}},L:function a(_,$,j){var _e=_.getUTCMonth();switch($){case"L":return String(_e+1);case"LL":return addLeadingZeros(_e+1,2);case"Lo":return j.ordinalNumber(_e+1,{unit:"month"});case"LLL":return j.month(_e,{width:"abbreviated",context:"standalone"});case"LLLLL":return j.month(_e,{width:"narrow",context:"standalone"});case"LLLL":default:return j.month(_e,{width:"wide",context:"standalone"})}},w:function a(_,$,j,_e){var et=getUTCWeek(_,_e);return $==="wo"?j.ordinalNumber(et,{unit:"week"}):addLeadingZeros(et,$.length)},I:function a(_,$,j){var _e=getUTCISOWeek(_);return $==="Io"?j.ordinalNumber(_e,{unit:"week"}):addLeadingZeros(_e,$.length)},d:function a(_,$,j){return $==="do"?j.ordinalNumber(_.getUTCDate(),{unit:"date"}):lightFormatters.d(_,$)},D:function a(_,$,j){var _e=getUTCDayOfYear(_);return $==="Do"?j.ordinalNumber(_e,{unit:"dayOfYear"}):addLeadingZeros(_e,$.length)},E:function a(_,$,j){var _e=_.getUTCDay();switch($){case"E":case"EE":case"EEE":return j.day(_e,{width:"abbreviated",context:"formatting"});case"EEEEE":return j.day(_e,{width:"narrow",context:"formatting"});case"EEEEEE":return j.day(_e,{width:"short",context:"formatting"});case"EEEE":default:return j.day(_e,{width:"wide",context:"formatting"})}},e:function a(_,$,j,_e){var et=_.getUTCDay(),tt=(et-_e.weekStartsOn+8)%7||7;switch($){case"e":return String(tt);case"ee":return addLeadingZeros(tt,2);case"eo":return j.ordinalNumber(tt,{unit:"day"});case"eee":return j.day(et,{width:"abbreviated",context:"formatting"});case"eeeee":return j.day(et,{width:"narrow",context:"formatting"});case"eeeeee":return j.day(et,{width:"short",context:"formatting"});case"eeee":default:return j.day(et,{width:"wide",context:"formatting"})}},c:function a(_,$,j,_e){var et=_.getUTCDay(),tt=(et-_e.weekStartsOn+8)%7||7;switch($){case"c":return String(tt);case"cc":return addLeadingZeros(tt,$.length);case"co":return j.ordinalNumber(tt,{unit:"day"});case"ccc":return j.day(et,{width:"abbreviated",context:"standalone"});case"ccccc":return j.day(et,{width:"narrow",context:"standalone"});case"cccccc":return j.day(et,{width:"short",context:"standalone"});case"cccc":default:return j.day(et,{width:"wide",context:"standalone"})}},i:function a(_,$,j){var _e=_.getUTCDay(),et=_e===0?7:_e;switch($){case"i":return String(et);case"ii":return addLeadingZeros(et,$.length);case"io":return j.ordinalNumber(et,{unit:"day"});case"iii":return j.day(_e,{width:"abbreviated",context:"formatting"});case"iiiii":return j.day(_e,{width:"narrow",context:"formatting"});case"iiiiii":return j.day(_e,{width:"short",context:"formatting"});case"iiii":default:return j.day(_e,{width:"wide",context:"formatting"})}},a:function a(_,$,j){var _e=_.getUTCHours(),et=_e/12>=1?"pm":"am";switch($){case"a":case"aa":return j.dayPeriod(et,{width:"abbreviated",context:"formatting"});case"aaa":return j.dayPeriod(et,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return j.dayPeriod(et,{width:"narrow",context:"formatting"});case"aaaa":default:return j.dayPeriod(et,{width:"wide",context:"formatting"})}},b:function a(_,$,j){var _e=_.getUTCHours(),et;switch(_e===12?et=dayPeriodEnum.noon:_e===0?et=dayPeriodEnum.midnight:et=_e/12>=1?"pm":"am",$){case"b":case"bb":return j.dayPeriod(et,{width:"abbreviated",context:"formatting"});case"bbb":return j.dayPeriod(et,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return j.dayPeriod(et,{width:"narrow",context:"formatting"});case"bbbb":default:return j.dayPeriod(et,{width:"wide",context:"formatting"})}},B:function a(_,$,j){var _e=_.getUTCHours(),et;switch(_e>=17?et=dayPeriodEnum.evening:_e>=12?et=dayPeriodEnum.afternoon:_e>=4?et=dayPeriodEnum.morning:et=dayPeriodEnum.night,$){case"B":case"BB":case"BBB":return j.dayPeriod(et,{width:"abbreviated",context:"formatting"});case"BBBBB":return j.dayPeriod(et,{width:"narrow",context:"formatting"});case"BBBB":default:return j.dayPeriod(et,{width:"wide",context:"formatting"})}},h:function a(_,$,j){if($==="ho"){var _e=_.getUTCHours()%12;return _e===0&&(_e=12),j.ordinalNumber(_e,{unit:"hour"})}return lightFormatters.h(_,$)},H:function a(_,$,j){return $==="Ho"?j.ordinalNumber(_.getUTCHours(),{unit:"hour"}):lightFormatters.H(_,$)},K:function a(_,$,j){var _e=_.getUTCHours()%12;return $==="Ko"?j.ordinalNumber(_e,{unit:"hour"}):addLeadingZeros(_e,$.length)},k:function a(_,$,j){var _e=_.getUTCHours();return _e===0&&(_e=24),$==="ko"?j.ordinalNumber(_e,{unit:"hour"}):addLeadingZeros(_e,$.length)},m:function a(_,$,j){return $==="mo"?j.ordinalNumber(_.getUTCMinutes(),{unit:"minute"}):lightFormatters.m(_,$)},s:function a(_,$,j){return $==="so"?j.ordinalNumber(_.getUTCSeconds(),{unit:"second"}):lightFormatters.s(_,$)},S:function a(_,$){return lightFormatters.S(_,$)},X:function a(_,$,j,_e){var et=_e._originalDate||_,tt=et.getTimezoneOffset();if(tt===0)return"Z";switch($){case"X":return formatTimezoneWithOptionalMinutes(tt);case"XXXX":case"XX":return formatTimezone(tt);case"XXXXX":case"XXX":default:return formatTimezone(tt,":")}},x:function a(_,$,j,_e){var et=_e._originalDate||_,tt=et.getTimezoneOffset();switch($){case"x":return formatTimezoneWithOptionalMinutes(tt);case"xxxx":case"xx":return formatTimezone(tt);case"xxxxx":case"xxx":default:return formatTimezone(tt,":")}},O:function a(_,$,j,_e){var et=_e._originalDate||_,tt=et.getTimezoneOffset();switch($){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(tt,":");case"OOOO":default:return"GMT"+formatTimezone(tt,":")}},z:function a(_,$,j,_e){var et=_e._originalDate||_,tt=et.getTimezoneOffset();switch($){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(tt,":");case"zzzz":default:return"GMT"+formatTimezone(tt,":")}},t:function a(_,$,j,_e){var et=_e._originalDate||_,tt=Math.floor(et.getTime()/1e3);return addLeadingZeros(tt,$.length)},T:function a(_,$,j,_e){var et=_e._originalDate||_,tt=et.getTime();return addLeadingZeros(tt,$.length)}};function formatTimezoneShort(a,_){var $=a>0?"-":"+",j=Math.abs(a),_e=Math.floor(j/60),et=j%60;if(et===0)return $+String(_e);var tt=_||"";return $+String(_e)+tt+addLeadingZeros(et,2)}function formatTimezoneWithOptionalMinutes(a,_){if(a%60===0){var $=a>0?"-":"+";return $+addLeadingZeros(Math.abs(a)/60,2)}return formatTimezone(a,_)}function formatTimezone(a,_){var $=_||"",j=a>0?"-":"+",_e=Math.abs(a),et=addLeadingZeros(Math.floor(_e/60),2),tt=addLeadingZeros(_e%60,2);return j+et+$+tt}const formatters$1=formatters;var dateLongFormatter=function a(_,$){switch(_){case"P":return $.date({width:"short"});case"PP":return $.date({width:"medium"});case"PPP":return $.date({width:"long"});case"PPPP":default:return $.date({width:"full"})}},timeLongFormatter=function a(_,$){switch(_){case"p":return $.time({width:"short"});case"pp":return $.time({width:"medium"});case"ppp":return $.time({width:"long"});case"pppp":default:return $.time({width:"full"})}},dateTimeLongFormatter=function a(_,$){var j=_.match(/(P+)(p+)?/)||[],_e=j[1],et=j[2];if(!et)return dateLongFormatter(_,$);var tt;switch(_e){case"P":tt=$.dateTime({width:"short"});break;case"PP":tt=$.dateTime({width:"medium"});break;case"PPP":tt=$.dateTime({width:"long"});break;case"PPPP":default:tt=$.dateTime({width:"full"});break}return tt.replace("{{date}}",dateLongFormatter(_e,$)).replace("{{time}}",timeLongFormatter(et,$))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter};const longFormatters$1=longFormatters;function getTimezoneOffsetInMilliseconds(a){var _=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return _.setUTCFullYear(a.getFullYear()),a.getTime()-_.getTime()}var protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(a){return protectedDayOfYearTokens.indexOf(a)!==-1}function isProtectedWeekYearToken(a){return protectedWeekYearTokens.indexOf(a)!==-1}function throwProtectedError(a,_,$){if(a==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(_,"`) for formatting years to the input `").concat($,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(_,"`) for formatting years to the input `").concat($,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(_,"`) for formatting days of the month to the input `").concat($,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(_,"`) for formatting days of the month to the input `").concat($,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=function a(_,$,j){var _e,et=formatDistanceLocale[_];return typeof et=="string"?_e=et:$===1?_e=et.one:_e=et.other.replace("{{count}}",$.toString()),j!=null&&j.addSuffix?j.comparison&&j.comparison>0?"in "+_e:_e+" ago":_e};const formatDistance$1=formatDistance;function buildFormatLongFn(a){return function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=_.width?String(_.width):a.defaultWidth,j=a.formats[$]||a.formats[a.defaultWidth];return j}}var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})};const formatLong$1=formatLong;var formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=function a(_,$,j,_e){return formatRelativeLocale[_]};const formatRelative$1=formatRelative;function buildLocalizeFn(a){return function(_,$){var j=$!=null&&$.context?String($.context):"standalone",_e;if(j==="formatting"&&a.formattingValues){var et=a.defaultFormattingWidth||a.defaultWidth,tt=$!=null&&$.width?String($.width):et;_e=a.formattingValues[tt]||a.formattingValues[et]}else{var rt=a.defaultWidth,it=$!=null&&$.width?String($.width):a.defaultWidth;_e=a.values[it]||a.values[rt]}var ct=a.argumentCallback?a.argumentCallback(_):_;return _e[ct]}}var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=function a(_,$){var j=Number(_),_e=j%100;if(_e>20||_e<10)switch(_e%10){case 1:return j+"st";case 2:return j+"nd";case 3:return j+"rd"}return j+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function a(_){return _-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};const localize$1=localize;function buildMatchFn(a){return function(_){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=$.width,_e=j&&a.matchPatterns[j]||a.matchPatterns[a.defaultMatchWidth],et=_.match(_e);if(!et)return null;var tt=et[0],rt=j&&a.parsePatterns[j]||a.parsePatterns[a.defaultParseWidth],it=Array.isArray(rt)?findIndex$1(rt,function(mt){return mt.test(tt)}):findKey(rt,function(mt){return mt.test(tt)}),ct;ct=a.valueCallback?a.valueCallback(it):it,ct=$.valueCallback?$.valueCallback(ct):ct;var dt=_.slice(tt.length);return{value:ct,rest:dt}}}function findKey(a,_){for(var $ in a)if(a.hasOwnProperty($)&&_(a[$]))return $}function findIndex$1(a,_){for(var $=0;$<a.length;$++)if(_(a[$]))return $}function buildMatchPatternFn(a){return function(_){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=_.match(a.matchPattern);if(!j)return null;var _e=j[0],et=_.match(a.parsePattern);if(!et)return null;var tt=a.valueCallback?a.valueCallback(et[0]):et[0];tt=$.valueCallback?$.valueCallback(tt):tt;var rt=_.slice(_e.length);return{value:tt,rest:rt}}}var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function a(_){return parseInt(_,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function a(_){return _+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};const match$1=match;var locale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match$1,options:{weekStartsOn:0,firstWeekContainsDate:1}};const defaultLocale=locale;var formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format(a,_,$){var j,_e,et,tt,rt,it,ct,dt,mt,vt,wt,xt,bt,Et,$t,At,Rt,Pt;requiredArgs(2,arguments);var Ct=String(_),Ot=getDefaultOptions(),kt=(j=(_e=$==null?void 0:$.locale)!==null&&_e!==void 0?_e:Ot.locale)!==null&&j!==void 0?j:defaultLocale,Dt=toInteger$2((et=(tt=(rt=(it=$==null?void 0:$.firstWeekContainsDate)!==null&&it!==void 0?it:$==null||(ct=$.locale)===null||ct===void 0||(dt=ct.options)===null||dt===void 0?void 0:dt.firstWeekContainsDate)!==null&&rt!==void 0?rt:Ot.firstWeekContainsDate)!==null&&tt!==void 0?tt:(mt=Ot.locale)===null||mt===void 0||(vt=mt.options)===null||vt===void 0?void 0:vt.firstWeekContainsDate)!==null&&et!==void 0?et:1);if(!(Dt>=1&&Dt<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Nt=toInteger$2((wt=(xt=(bt=(Et=$==null?void 0:$.weekStartsOn)!==null&&Et!==void 0?Et:$==null||($t=$.locale)===null||$t===void 0||(At=$t.options)===null||At===void 0?void 0:At.weekStartsOn)!==null&&bt!==void 0?bt:Ot.weekStartsOn)!==null&&xt!==void 0?xt:(Rt=Ot.locale)===null||Rt===void 0||(Pt=Rt.options)===null||Pt===void 0?void 0:Pt.weekStartsOn)!==null&&wt!==void 0?wt:0);if(!(Nt>=0&&Nt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!kt.localize)throw new RangeError("locale must contain localize property");if(!kt.formatLong)throw new RangeError("locale must contain formatLong property");var zt=toDate$1(a);if(!isValid(zt))throw new RangeError("Invalid time value");var gt=getTimezoneOffsetInMilliseconds(zt),nt=subMilliseconds(zt,gt),ot={firstWeekContainsDate:Dt,weekStartsOn:Nt,locale:kt,_originalDate:zt},st=Ct.match(longFormattingTokensRegExp$1).map(function(lt){var pt=lt[0];if(pt==="p"||pt==="P"){var _t=longFormatters$1[pt];return _t(lt,kt.formatLong)}return lt}).join("").match(formattingTokensRegExp$1).map(function(lt){if(lt==="''")return"'";var pt=lt[0];if(pt==="'")return cleanEscapedString$1(lt);var _t=formatters$1[pt];if(_t)return!($!=null&&$.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(lt)&&throwProtectedError(lt,_,String(a)),!($!=null&&$.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(lt)&&throwProtectedError(lt,_,String(a)),_t(nt,lt,kt.localize,ot);if(pt.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pt+"`");return lt}).join("");return st}function cleanEscapedString$1(a){var _=a.match(escapedStringRegExp$1);return _?_[1].replace(doubleQuoteRegExp$1,"'"):a}function isBefore$1(a,_){requiredArgs(2,arguments);var $=toDate$1(a),j=toDate$1(_);return $.getTime()<j.getTime()}function assign(a,_){if(a==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var $ in _)Object.prototype.hasOwnProperty.call(_,$)&&(a[$]=_[$]);return a}function _typeof$w(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$w=function($){return typeof $}:_typeof$w=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$w(a)}function _inherits$v(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$w(a,_)}function _setPrototypeOf$w(a,_){return _setPrototypeOf$w=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$w(a,_)}function _createSuper$v(a){var _=_isNativeReflectConstruct$v();return function(){var j=_getPrototypeOf$v(a),_e;if(_){var et=_getPrototypeOf$v(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$v(this,_e)}}function _possibleConstructorReturn$v(a,_){return _&&(_typeof$w(_)==="object"||typeof _=="function")?_:_assertThisInitialized$w(a)}function _assertThisInitialized$w(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$v(a){return _getPrototypeOf$v=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$v(a)}function _classCallCheck$w(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$x(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$x(a,_,$){return _&&_defineProperties$x(a.prototype,_),$&&_defineProperties$x(a,$),a}function _defineProperty$v(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var TIMEZONE_UNIT_PRIORITY=10,Setter=function(){function a(){_classCallCheck$w(this,a),_defineProperty$v(this,"subPriority",0)}return _createClass$x(a,[{key:"validate",value:function($,j){return!0}}]),a}(),ValueSetter=function(a){_inherits$v($,a);var _=_createSuper$v($);function $(j,_e,et,tt,rt){var it;return _classCallCheck$w(this,$),it=_.call(this),it.value=j,it.validateValue=_e,it.setValue=et,it.priority=tt,rt&&(it.subPriority=rt),it}return _createClass$x($,[{key:"validate",value:function(_e,et){return this.validateValue(_e,this.value,et)}},{key:"set",value:function(_e,et,tt){return this.setValue(_e,et,this.value,tt)}}]),$}(Setter),DateToSystemTimezoneSetter=function(a){_inherits$v($,a);var _=_createSuper$v($);function $(){var j;_classCallCheck$w(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$v(_assertThisInitialized$w(j),"priority",TIMEZONE_UNIT_PRIORITY),_defineProperty$v(_assertThisInitialized$w(j),"subPriority",-1),j}return _createClass$x($,[{key:"set",value:function(_e,et){if(et.timestampIsSet)return _e;var tt=new Date(0);return tt.setFullYear(_e.getUTCFullYear(),_e.getUTCMonth(),_e.getUTCDate()),tt.setHours(_e.getUTCHours(),_e.getUTCMinutes(),_e.getUTCSeconds(),_e.getUTCMilliseconds()),tt}}]),$}(Setter);function _classCallCheck$v(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$w(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$w(a,_,$){return _&&_defineProperties$w(a.prototype,_),$&&_defineProperties$w(a,$),a}var Parser=function(){function a(){_classCallCheck$v(this,a)}return _createClass$w(a,[{key:"run",value:function($,j,_e,et){var tt=this.parse($,j,_e,et);return tt?{setter:new ValueSetter(tt.value,this.validate,this.set,this.priority,this.subPriority),rest:tt.rest}:null}},{key:"validate",value:function($,j,_e){return!0}}]),a}();function _typeof$v(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$v=function($){return typeof $}:_typeof$v=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$v(a)}function _classCallCheck$u(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$v(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$v(a,_,$){return _&&_defineProperties$v(a.prototype,_),$&&_defineProperties$v(a,$),a}function _inherits$u(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$v(a,_)}function _setPrototypeOf$v(a,_){return _setPrototypeOf$v=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$v(a,_)}function _createSuper$u(a){var _=_isNativeReflectConstruct$u();return function(){var j=_getPrototypeOf$u(a),_e;if(_){var et=_getPrototypeOf$u(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$u(this,_e)}}function _possibleConstructorReturn$u(a,_){return _&&(_typeof$v(_)==="object"||typeof _=="function")?_:_assertThisInitialized$v(a)}function _assertThisInitialized$v(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$u(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$u(a){return _getPrototypeOf$u=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$u(a)}function _defineProperty$u(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var EraParser=function(a){_inherits$u($,a);var _=_createSuper$u($);function $(){var j;_classCallCheck$u(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$u(_assertThisInitialized$v(j),"priority",140),_defineProperty$u(_assertThisInitialized$v(j),"incompatibleTokens",["R","u","t","T"]),j}return _createClass$v($,[{key:"parse",value:function(_e,et,tt){switch(et){case"G":case"GG":case"GGG":return tt.era(_e,{width:"abbreviated"})||tt.era(_e,{width:"narrow"});case"GGGGG":return tt.era(_e,{width:"narrow"});case"GGGG":default:return tt.era(_e,{width:"wide"})||tt.era(_e,{width:"abbreviated"})||tt.era(_e,{width:"narrow"})}}},{key:"set",value:function(_e,et,tt){return et.era=tt,_e.setUTCFullYear(tt,0,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser),millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3,numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mapValue(a,_){return a&&{value:_(a.value),rest:a.rest}}function parseNumericPattern(a,_){var $=_.match(a);return $?{value:parseInt($[0],10),rest:_.slice($[0].length)}:null}function parseTimezonePattern(a,_){var $=_.match(a);if(!$)return null;if($[0]==="Z")return{value:0,rest:_.slice(1)};var j=$[1]==="+"?1:-1,_e=$[2]?parseInt($[2],10):0,et=$[3]?parseInt($[3],10):0,tt=$[5]?parseInt($[5],10):0;return{value:j*(_e*millisecondsInHour+et*millisecondsInMinute+tt*millisecondsInSecond),rest:_.slice($[0].length)}}function parseAnyDigitsSigned(a){return parseNumericPattern(numericPatterns.anyDigitsSigned,a)}function parseNDigits(a,_){switch(a){case 1:return parseNumericPattern(numericPatterns.singleDigit,_);case 2:return parseNumericPattern(numericPatterns.twoDigits,_);case 3:return parseNumericPattern(numericPatterns.threeDigits,_);case 4:return parseNumericPattern(numericPatterns.fourDigits,_);default:return parseNumericPattern(new RegExp("^\\d{1,"+a+"}"),_)}}function parseNDigitsSigned(a,_){switch(a){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,_);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,_);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,_);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,_);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+a+"}"),_)}}function dayPeriodEnumToHours(a){switch(a){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function normalizeTwoDigitYear(a,_){var $=_>0,j=$?_:1-_,_e;if(j<=50)_e=a||100;else{var et=j+50,tt=Math.floor(et/100)*100,rt=a>=et%100;_e=a+tt-(rt?100:0)}return $?_e:1-_e}function isLeapYearIndex(a){return a%400===0||a%4===0&&a%100!==0}function _typeof$u(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$u=function($){return typeof $}:_typeof$u=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$u(a)}function _classCallCheck$t(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$u(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$u(a,_,$){return _&&_defineProperties$u(a.prototype,_),$&&_defineProperties$u(a,$),a}function _inherits$t(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$u(a,_)}function _setPrototypeOf$u(a,_){return _setPrototypeOf$u=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$u(a,_)}function _createSuper$t(a){var _=_isNativeReflectConstruct$t();return function(){var j=_getPrototypeOf$t(a),_e;if(_){var et=_getPrototypeOf$t(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$t(this,_e)}}function _possibleConstructorReturn$t(a,_){return _&&(_typeof$u(_)==="object"||typeof _=="function")?_:_assertThisInitialized$u(a)}function _assertThisInitialized$u(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$t(a){return _getPrototypeOf$t=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$t(a)}function _defineProperty$t(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var YearParser=function(a){_inherits$t($,a);var _=_createSuper$t($);function $(){var j;_classCallCheck$t(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$t(_assertThisInitialized$u(j),"priority",130),_defineProperty$t(_assertThisInitialized$u(j),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),j}return _createClass$u($,[{key:"parse",value:function(_e,et,tt){var rt=function(ct){return{year:ct,isTwoDigitYear:et==="yy"}};switch(et){case"y":return mapValue(parseNDigits(4,_e),rt);case"yo":return mapValue(tt.ordinalNumber(_e,{unit:"year"}),rt);default:return mapValue(parseNDigits(et.length,_e),rt)}}},{key:"validate",value:function(_e,et){return et.isTwoDigitYear||et.year>0}},{key:"set",value:function(_e,et,tt){var rt=_e.getUTCFullYear();if(tt.isTwoDigitYear){var it=normalizeTwoDigitYear(tt.year,rt);return _e.setUTCFullYear(it,0,1),_e.setUTCHours(0,0,0,0),_e}var ct=!("era"in et)||et.era===1?tt.year:1-tt.year;return _e.setUTCFullYear(ct,0,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$t(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$t=function($){return typeof $}:_typeof$t=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$t(a)}function _classCallCheck$s(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$t(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$t(a,_,$){return _&&_defineProperties$t(a.prototype,_),$&&_defineProperties$t(a,$),a}function _inherits$s(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$t(a,_)}function _setPrototypeOf$t(a,_){return _setPrototypeOf$t=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$t(a,_)}function _createSuper$s(a){var _=_isNativeReflectConstruct$s();return function(){var j=_getPrototypeOf$s(a),_e;if(_){var et=_getPrototypeOf$s(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$s(this,_e)}}function _possibleConstructorReturn$s(a,_){return _&&(_typeof$t(_)==="object"||typeof _=="function")?_:_assertThisInitialized$t(a)}function _assertThisInitialized$t(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$s(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$s(a){return _getPrototypeOf$s=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$s(a)}function _defineProperty$s(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var LocalWeekYearParser=function(a){_inherits$s($,a);var _=_createSuper$s($);function $(){var j;_classCallCheck$s(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$s(_assertThisInitialized$t(j),"priority",130),_defineProperty$s(_assertThisInitialized$t(j),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),j}return _createClass$t($,[{key:"parse",value:function(_e,et,tt){var rt=function(ct){return{year:ct,isTwoDigitYear:et==="YY"}};switch(et){case"Y":return mapValue(parseNDigits(4,_e),rt);case"Yo":return mapValue(tt.ordinalNumber(_e,{unit:"year"}),rt);default:return mapValue(parseNDigits(et.length,_e),rt)}}},{key:"validate",value:function(_e,et){return et.isTwoDigitYear||et.year>0}},{key:"set",value:function(_e,et,tt,rt){var it=getUTCWeekYear(_e,rt);if(tt.isTwoDigitYear){var ct=normalizeTwoDigitYear(tt.year,it);return _e.setUTCFullYear(ct,0,rt.firstWeekContainsDate),_e.setUTCHours(0,0,0,0),startOfUTCWeek(_e,rt)}var dt=!("era"in et)||et.era===1?tt.year:1-tt.year;return _e.setUTCFullYear(dt,0,rt.firstWeekContainsDate),_e.setUTCHours(0,0,0,0),startOfUTCWeek(_e,rt)}}]),$}(Parser);function _typeof$s(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$s=function($){return typeof $}:_typeof$s=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$s(a)}function _classCallCheck$r(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$s(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$s(a,_,$){return _&&_defineProperties$s(a.prototype,_),$&&_defineProperties$s(a,$),a}function _inherits$r(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$s(a,_)}function _setPrototypeOf$s(a,_){return _setPrototypeOf$s=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$s(a,_)}function _createSuper$r(a){var _=_isNativeReflectConstruct$r();return function(){var j=_getPrototypeOf$r(a),_e;if(_){var et=_getPrototypeOf$r(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$r(this,_e)}}function _possibleConstructorReturn$r(a,_){return _&&(_typeof$s(_)==="object"||typeof _=="function")?_:_assertThisInitialized$s(a)}function _assertThisInitialized$s(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$r(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$r(a){return _getPrototypeOf$r=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$r(a)}function _defineProperty$r(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ISOWeekYearParser=function(a){_inherits$r($,a);var _=_createSuper$r($);function $(){var j;_classCallCheck$r(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$r(_assertThisInitialized$s(j),"priority",130),_defineProperty$r(_assertThisInitialized$s(j),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),j}return _createClass$s($,[{key:"parse",value:function(_e,et){return parseNDigitsSigned(et==="R"?4:et.length,_e)}},{key:"set",value:function(_e,et,tt){var rt=new Date(0);return rt.setUTCFullYear(tt,0,4),rt.setUTCHours(0,0,0,0),startOfUTCISOWeek(rt)}}]),$}(Parser);function _typeof$r(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$r=function($){return typeof $}:_typeof$r=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$r(a)}function _classCallCheck$q(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$r(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$r(a,_,$){return _&&_defineProperties$r(a.prototype,_),$&&_defineProperties$r(a,$),a}function _inherits$q(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$r(a,_)}function _setPrototypeOf$r(a,_){return _setPrototypeOf$r=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$r(a,_)}function _createSuper$q(a){var _=_isNativeReflectConstruct$q();return function(){var j=_getPrototypeOf$q(a),_e;if(_){var et=_getPrototypeOf$q(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$q(this,_e)}}function _possibleConstructorReturn$q(a,_){return _&&(_typeof$r(_)==="object"||typeof _=="function")?_:_assertThisInitialized$r(a)}function _assertThisInitialized$r(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$q(a){return _getPrototypeOf$q=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$q(a)}function _defineProperty$q(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ExtendedYearParser=function(a){_inherits$q($,a);var _=_createSuper$q($);function $(){var j;_classCallCheck$q(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$q(_assertThisInitialized$r(j),"priority",130),_defineProperty$q(_assertThisInitialized$r(j),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),j}return _createClass$r($,[{key:"parse",value:function(_e,et){return parseNDigitsSigned(et==="u"?4:et.length,_e)}},{key:"set",value:function(_e,et,tt){return _e.setUTCFullYear(tt,0,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$q(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$q=function($){return typeof $}:_typeof$q=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$q(a)}function _classCallCheck$p(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$q(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$q(a,_,$){return _&&_defineProperties$q(a.prototype,_),$&&_defineProperties$q(a,$),a}function _inherits$p(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$q(a,_)}function _setPrototypeOf$q(a,_){return _setPrototypeOf$q=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$q(a,_)}function _createSuper$p(a){var _=_isNativeReflectConstruct$p();return function(){var j=_getPrototypeOf$p(a),_e;if(_){var et=_getPrototypeOf$p(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$p(this,_e)}}function _possibleConstructorReturn$p(a,_){return _&&(_typeof$q(_)==="object"||typeof _=="function")?_:_assertThisInitialized$q(a)}function _assertThisInitialized$q(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$p(a){return _getPrototypeOf$p=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$p(a)}function _defineProperty$p(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var QuarterParser=function(a){_inherits$p($,a);var _=_createSuper$p($);function $(){var j;_classCallCheck$p(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$p(_assertThisInitialized$q(j),"priority",120),_defineProperty$p(_assertThisInitialized$q(j),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),j}return _createClass$q($,[{key:"parse",value:function(_e,et,tt){switch(et){case"Q":case"QQ":return parseNDigits(et.length,_e);case"Qo":return tt.ordinalNumber(_e,{unit:"quarter"});case"QQQ":return tt.quarter(_e,{width:"abbreviated",context:"formatting"})||tt.quarter(_e,{width:"narrow",context:"formatting"});case"QQQQQ":return tt.quarter(_e,{width:"narrow",context:"formatting"});case"QQQQ":default:return tt.quarter(_e,{width:"wide",context:"formatting"})||tt.quarter(_e,{width:"abbreviated",context:"formatting"})||tt.quarter(_e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(_e,et){return et>=1&&et<=4}},{key:"set",value:function(_e,et,tt){return _e.setUTCMonth((tt-1)*3,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$p(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$p=function($){return typeof $}:_typeof$p=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$p(a)}function _classCallCheck$o(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$p(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$p(a,_,$){return _&&_defineProperties$p(a.prototype,_),$&&_defineProperties$p(a,$),a}function _inherits$o(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$p(a,_)}function _setPrototypeOf$p(a,_){return _setPrototypeOf$p=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$p(a,_)}function _createSuper$o(a){var _=_isNativeReflectConstruct$o();return function(){var j=_getPrototypeOf$o(a),_e;if(_){var et=_getPrototypeOf$o(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$o(this,_e)}}function _possibleConstructorReturn$o(a,_){return _&&(_typeof$p(_)==="object"||typeof _=="function")?_:_assertThisInitialized$p(a)}function _assertThisInitialized$p(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$o(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$o(a){return _getPrototypeOf$o=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$o(a)}function _defineProperty$o(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var StandAloneQuarterParser=function(a){_inherits$o($,a);var _=_createSuper$o($);function $(){var j;_classCallCheck$o(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$o(_assertThisInitialized$p(j),"priority",120),_defineProperty$o(_assertThisInitialized$p(j),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),j}return _createClass$p($,[{key:"parse",value:function(_e,et,tt){switch(et){case"q":case"qq":return parseNDigits(et.length,_e);case"qo":return tt.ordinalNumber(_e,{unit:"quarter"});case"qqq":return tt.quarter(_e,{width:"abbreviated",context:"standalone"})||tt.quarter(_e,{width:"narrow",context:"standalone"});case"qqqqq":return tt.quarter(_e,{width:"narrow",context:"standalone"});case"qqqq":default:return tt.quarter(_e,{width:"wide",context:"standalone"})||tt.quarter(_e,{width:"abbreviated",context:"standalone"})||tt.quarter(_e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(_e,et){return et>=1&&et<=4}},{key:"set",value:function(_e,et,tt){return _e.setUTCMonth((tt-1)*3,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$o(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$o=function($){return typeof $}:_typeof$o=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$o(a)}function _classCallCheck$n(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$o(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$o(a,_,$){return _&&_defineProperties$o(a.prototype,_),$&&_defineProperties$o(a,$),a}function _inherits$n(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$o(a,_)}function _setPrototypeOf$o(a,_){return _setPrototypeOf$o=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$o(a,_)}function _createSuper$n(a){var _=_isNativeReflectConstruct$n();return function(){var j=_getPrototypeOf$n(a),_e;if(_){var et=_getPrototypeOf$n(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$n(this,_e)}}function _possibleConstructorReturn$n(a,_){return _&&(_typeof$o(_)==="object"||typeof _=="function")?_:_assertThisInitialized$o(a)}function _assertThisInitialized$o(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$n(a){return _getPrototypeOf$n=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$n(a)}function _defineProperty$n(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var MonthParser=function(a){_inherits$n($,a);var _=_createSuper$n($);function $(){var j;_classCallCheck$n(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$n(_assertThisInitialized$o(j),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_defineProperty$n(_assertThisInitialized$o(j),"priority",110),j}return _createClass$o($,[{key:"parse",value:function(_e,et,tt){var rt=function(ct){return ct-1};switch(et){case"M":return mapValue(parseNumericPattern(numericPatterns.month,_e),rt);case"MM":return mapValue(parseNDigits(2,_e),rt);case"Mo":return mapValue(tt.ordinalNumber(_e,{unit:"month"}),rt);case"MMM":return tt.month(_e,{width:"abbreviated",context:"formatting"})||tt.month(_e,{width:"narrow",context:"formatting"});case"MMMMM":return tt.month(_e,{width:"narrow",context:"formatting"});case"MMMM":default:return tt.month(_e,{width:"wide",context:"formatting"})||tt.month(_e,{width:"abbreviated",context:"formatting"})||tt.month(_e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(_e,et){return et>=0&&et<=11}},{key:"set",value:function(_e,et,tt){return _e.setUTCMonth(tt,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$n(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$n=function($){return typeof $}:_typeof$n=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$n(a)}function _classCallCheck$m(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$n(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$n(a,_,$){return _&&_defineProperties$n(a.prototype,_),$&&_defineProperties$n(a,$),a}function _inherits$m(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$n(a,_)}function _setPrototypeOf$n(a,_){return _setPrototypeOf$n=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$n(a,_)}function _createSuper$m(a){var _=_isNativeReflectConstruct$m();return function(){var j=_getPrototypeOf$m(a),_e;if(_){var et=_getPrototypeOf$m(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$m(this,_e)}}function _possibleConstructorReturn$m(a,_){return _&&(_typeof$n(_)==="object"||typeof _=="function")?_:_assertThisInitialized$n(a)}function _assertThisInitialized$n(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$m(a){return _getPrototypeOf$m=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$m(a)}function _defineProperty$m(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var StandAloneMonthParser=function(a){_inherits$m($,a);var _=_createSuper$m($);function $(){var j;_classCallCheck$m(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$m(_assertThisInitialized$n(j),"priority",110),_defineProperty$m(_assertThisInitialized$n(j),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),j}return _createClass$n($,[{key:"parse",value:function(_e,et,tt){var rt=function(ct){return ct-1};switch(et){case"L":return mapValue(parseNumericPattern(numericPatterns.month,_e),rt);case"LL":return mapValue(parseNDigits(2,_e),rt);case"Lo":return mapValue(tt.ordinalNumber(_e,{unit:"month"}),rt);case"LLL":return tt.month(_e,{width:"abbreviated",context:"standalone"})||tt.month(_e,{width:"narrow",context:"standalone"});case"LLLLL":return tt.month(_e,{width:"narrow",context:"standalone"});case"LLLL":default:return tt.month(_e,{width:"wide",context:"standalone"})||tt.month(_e,{width:"abbreviated",context:"standalone"})||tt.month(_e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(_e,et){return et>=0&&et<=11}},{key:"set",value:function(_e,et,tt){return _e.setUTCMonth(tt,1),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function setUTCWeek(a,_,$){requiredArgs(2,arguments);var j=toDate$1(a),_e=toInteger$2(_),et=getUTCWeek(j,$)-_e;return j.setUTCDate(j.getUTCDate()-et*7),j}function _typeof$m(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$m=function($){return typeof $}:_typeof$m=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$m(a)}function _classCallCheck$l(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$m(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$m(a,_,$){return _&&_defineProperties$m(a.prototype,_),$&&_defineProperties$m(a,$),a}function _inherits$l(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$m(a,_)}function _setPrototypeOf$m(a,_){return _setPrototypeOf$m=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$m(a,_)}function _createSuper$l(a){var _=_isNativeReflectConstruct$l();return function(){var j=_getPrototypeOf$l(a),_e;if(_){var et=_getPrototypeOf$l(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$l(this,_e)}}function _possibleConstructorReturn$l(a,_){return _&&(_typeof$m(_)==="object"||typeof _=="function")?_:_assertThisInitialized$m(a)}function _assertThisInitialized$m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$l(a){return _getPrototypeOf$l=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$l(a)}function _defineProperty$l(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var LocalWeekParser=function(a){_inherits$l($,a);var _=_createSuper$l($);function $(){var j;_classCallCheck$l(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$l(_assertThisInitialized$m(j),"priority",100),_defineProperty$l(_assertThisInitialized$m(j),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),j}return _createClass$m($,[{key:"parse",value:function(_e,et,tt){switch(et){case"w":return parseNumericPattern(numericPatterns.week,_e);case"wo":return tt.ordinalNumber(_e,{unit:"week"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=1&&et<=53}},{key:"set",value:function(_e,et,tt,rt){return startOfUTCWeek(setUTCWeek(_e,tt,rt),rt)}}]),$}(Parser);function setUTCISOWeek(a,_){requiredArgs(2,arguments);var $=toDate$1(a),j=toInteger$2(_),_e=getUTCISOWeek($)-j;return $.setUTCDate($.getUTCDate()-_e*7),$}function _typeof$l(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$l=function($){return typeof $}:_typeof$l=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$l(a)}function _classCallCheck$k(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$l(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$l(a,_,$){return _&&_defineProperties$l(a.prototype,_),$&&_defineProperties$l(a,$),a}function _inherits$k(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$l(a,_)}function _setPrototypeOf$l(a,_){return _setPrototypeOf$l=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$l(a,_)}function _createSuper$k(a){var _=_isNativeReflectConstruct$k();return function(){var j=_getPrototypeOf$k(a),_e;if(_){var et=_getPrototypeOf$k(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$k(this,_e)}}function _possibleConstructorReturn$k(a,_){return _&&(_typeof$l(_)==="object"||typeof _=="function")?_:_assertThisInitialized$l(a)}function _assertThisInitialized$l(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$k(a){return _getPrototypeOf$k=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$k(a)}function _defineProperty$k(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ISOWeekParser=function(a){_inherits$k($,a);var _=_createSuper$k($);function $(){var j;_classCallCheck$k(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$k(_assertThisInitialized$l(j),"priority",100),_defineProperty$k(_assertThisInitialized$l(j),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),j}return _createClass$l($,[{key:"parse",value:function(_e,et,tt){switch(et){case"I":return parseNumericPattern(numericPatterns.week,_e);case"Io":return tt.ordinalNumber(_e,{unit:"week"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=1&&et<=53}},{key:"set",value:function(_e,et,tt){return startOfUTCISOWeek(setUTCISOWeek(_e,tt))}}]),$}(Parser);function _typeof$k(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$k=function($){return typeof $}:_typeof$k=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$k(a)}function _classCallCheck$j(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$k(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$k(a,_,$){return _&&_defineProperties$k(a.prototype,_),$&&_defineProperties$k(a,$),a}function _inherits$j(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$k(a,_)}function _setPrototypeOf$k(a,_){return _setPrototypeOf$k=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$k(a,_)}function _createSuper$j(a){var _=_isNativeReflectConstruct$j();return function(){var j=_getPrototypeOf$j(a),_e;if(_){var et=_getPrototypeOf$j(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$j(this,_e)}}function _possibleConstructorReturn$j(a,_){return _&&(_typeof$k(_)==="object"||typeof _=="function")?_:_assertThisInitialized$k(a)}function _assertThisInitialized$k(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$j(a){return _getPrototypeOf$j=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$j(a)}function _defineProperty$j(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31],DateParser=function(a){_inherits$j($,a);var _=_createSuper$j($);function $(){var j;_classCallCheck$j(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$j(_assertThisInitialized$k(j),"priority",90),_defineProperty$j(_assertThisInitialized$k(j),"subPriority",1),_defineProperty$j(_assertThisInitialized$k(j),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),j}return _createClass$k($,[{key:"parse",value:function(_e,et,tt){switch(et){case"d":return parseNumericPattern(numericPatterns.date,_e);case"do":return tt.ordinalNumber(_e,{unit:"date"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){var tt=_e.getUTCFullYear(),rt=isLeapYearIndex(tt),it=_e.getUTCMonth();return rt?et>=1&&et<=DAYS_IN_MONTH_LEAP_YEAR[it]:et>=1&&et<=DAYS_IN_MONTH[it]}},{key:"set",value:function(_e,et,tt){return _e.setUTCDate(tt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$j(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$j=function($){return typeof $}:_typeof$j=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$j(a)}function _classCallCheck$i(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$j(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$j(a,_,$){return _&&_defineProperties$j(a.prototype,_),$&&_defineProperties$j(a,$),a}function _inherits$i(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$j(a,_)}function _setPrototypeOf$j(a,_){return _setPrototypeOf$j=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$j(a,_)}function _createSuper$i(a){var _=_isNativeReflectConstruct$i();return function(){var j=_getPrototypeOf$i(a),_e;if(_){var et=_getPrototypeOf$i(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$i(this,_e)}}function _possibleConstructorReturn$i(a,_){return _&&(_typeof$j(_)==="object"||typeof _=="function")?_:_assertThisInitialized$j(a)}function _assertThisInitialized$j(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$i(a){return _getPrototypeOf$i=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$i(a)}function _defineProperty$i(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var DayOfYearParser=function(a){_inherits$i($,a);var _=_createSuper$i($);function $(){var j;_classCallCheck$i(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$i(_assertThisInitialized$j(j),"priority",90),_defineProperty$i(_assertThisInitialized$j(j),"subpriority",1),_defineProperty$i(_assertThisInitialized$j(j),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),j}return _createClass$j($,[{key:"parse",value:function(_e,et,tt){switch(et){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,_e);case"Do":return tt.ordinalNumber(_e,{unit:"date"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){var tt=_e.getUTCFullYear(),rt=isLeapYearIndex(tt);return rt?et>=1&&et<=366:et>=1&&et<=365}},{key:"set",value:function(_e,et,tt){return _e.setUTCMonth(0,tt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function setUTCDay(a,_,$){var j,_e,et,tt,rt,it,ct,dt;requiredArgs(2,arguments);var mt=getDefaultOptions(),vt=toInteger$2((j=(_e=(et=(tt=$==null?void 0:$.weekStartsOn)!==null&&tt!==void 0?tt:$==null||(rt=$.locale)===null||rt===void 0||(it=rt.options)===null||it===void 0?void 0:it.weekStartsOn)!==null&&et!==void 0?et:mt.weekStartsOn)!==null&&_e!==void 0?_e:(ct=mt.locale)===null||ct===void 0||(dt=ct.options)===null||dt===void 0?void 0:dt.weekStartsOn)!==null&&j!==void 0?j:0);if(!(vt>=0&&vt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var wt=toDate$1(a),xt=toInteger$2(_),bt=wt.getUTCDay(),Et=xt%7,$t=(Et+7)%7,At=($t<vt?7:0)+xt-bt;return wt.setUTCDate(wt.getUTCDate()+At),wt}function _typeof$i(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$i=function($){return typeof $}:_typeof$i=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$i(a)}function _classCallCheck$h(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$i(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$i(a,_,$){return _&&_defineProperties$i(a.prototype,_),$&&_defineProperties$i(a,$),a}function _inherits$h(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$i(a,_)}function _setPrototypeOf$i(a,_){return _setPrototypeOf$i=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$i(a,_)}function _createSuper$h(a){var _=_isNativeReflectConstruct$h();return function(){var j=_getPrototypeOf$h(a),_e;if(_){var et=_getPrototypeOf$h(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$h(this,_e)}}function _possibleConstructorReturn$h(a,_){return _&&(_typeof$i(_)==="object"||typeof _=="function")?_:_assertThisInitialized$i(a)}function _assertThisInitialized$i(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$h(a){return _getPrototypeOf$h=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$h(a)}function _defineProperty$h(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var DayParser=function(a){_inherits$h($,a);var _=_createSuper$h($);function $(){var j;_classCallCheck$h(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$h(_assertThisInitialized$i(j),"priority",90),_defineProperty$h(_assertThisInitialized$i(j),"incompatibleTokens",["D","i","e","c","t","T"]),j}return _createClass$i($,[{key:"parse",value:function(_e,et,tt){switch(et){case"E":case"EE":case"EEE":return tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"});case"EEEEE":return tt.day(_e,{width:"narrow",context:"formatting"});case"EEEEEE":return tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"});case"EEEE":default:return tt.day(_e,{width:"wide",context:"formatting"})||tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(_e,et){return et>=0&&et<=6}},{key:"set",value:function(_e,et,tt,rt){return _e=setUTCDay(_e,tt,rt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$h(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$h=function($){return typeof $}:_typeof$h=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$h(a)}function _classCallCheck$g(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$h(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$h(a,_,$){return _&&_defineProperties$h(a.prototype,_),$&&_defineProperties$h(a,$),a}function _inherits$g(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$h(a,_)}function _setPrototypeOf$h(a,_){return _setPrototypeOf$h=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$h(a,_)}function _createSuper$g(a){var _=_isNativeReflectConstruct$g();return function(){var j=_getPrototypeOf$g(a),_e;if(_){var et=_getPrototypeOf$g(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$g(this,_e)}}function _possibleConstructorReturn$g(a,_){return _&&(_typeof$h(_)==="object"||typeof _=="function")?_:_assertThisInitialized$h(a)}function _assertThisInitialized$h(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$g(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$g(a){return _getPrototypeOf$g=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$g(a)}function _defineProperty$g(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var LocalDayParser=function(a){_inherits$g($,a);var _=_createSuper$g($);function $(){var j;_classCallCheck$g(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$g(_assertThisInitialized$h(j),"priority",90),_defineProperty$g(_assertThisInitialized$h(j),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),j}return _createClass$h($,[{key:"parse",value:function(_e,et,tt,rt){var it=function(dt){var mt=Math.floor((dt-1)/7)*7;return(dt+rt.weekStartsOn+6)%7+mt};switch(et){case"e":case"ee":return mapValue(parseNDigits(et.length,_e),it);case"eo":return mapValue(tt.ordinalNumber(_e,{unit:"day"}),it);case"eee":return tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"});case"eeeee":return tt.day(_e,{width:"narrow",context:"formatting"});case"eeeeee":return tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"});case"eeee":default:return tt.day(_e,{width:"wide",context:"formatting"})||tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(_e,et){return et>=0&&et<=6}},{key:"set",value:function(_e,et,tt,rt){return _e=setUTCDay(_e,tt,rt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$g(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$g=function($){return typeof $}:_typeof$g=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$g(a)}function _classCallCheck$f(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$g(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$g(a,_,$){return _&&_defineProperties$g(a.prototype,_),$&&_defineProperties$g(a,$),a}function _inherits$f(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$g(a,_)}function _setPrototypeOf$g(a,_){return _setPrototypeOf$g=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$g(a,_)}function _createSuper$f(a){var _=_isNativeReflectConstruct$f();return function(){var j=_getPrototypeOf$f(a),_e;if(_){var et=_getPrototypeOf$f(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$f(this,_e)}}function _possibleConstructorReturn$f(a,_){return _&&(_typeof$g(_)==="object"||typeof _=="function")?_:_assertThisInitialized$g(a)}function _assertThisInitialized$g(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$f(a){return _getPrototypeOf$f=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$f(a)}function _defineProperty$f(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var StandAloneLocalDayParser=function(a){_inherits$f($,a);var _=_createSuper$f($);function $(){var j;_classCallCheck$f(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$f(_assertThisInitialized$g(j),"priority",90),_defineProperty$f(_assertThisInitialized$g(j),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),j}return _createClass$g($,[{key:"parse",value:function(_e,et,tt,rt){var it=function(dt){var mt=Math.floor((dt-1)/7)*7;return(dt+rt.weekStartsOn+6)%7+mt};switch(et){case"c":case"cc":return mapValue(parseNDigits(et.length,_e),it);case"co":return mapValue(tt.ordinalNumber(_e,{unit:"day"}),it);case"ccc":return tt.day(_e,{width:"abbreviated",context:"standalone"})||tt.day(_e,{width:"short",context:"standalone"})||tt.day(_e,{width:"narrow",context:"standalone"});case"ccccc":return tt.day(_e,{width:"narrow",context:"standalone"});case"cccccc":return tt.day(_e,{width:"short",context:"standalone"})||tt.day(_e,{width:"narrow",context:"standalone"});case"cccc":default:return tt.day(_e,{width:"wide",context:"standalone"})||tt.day(_e,{width:"abbreviated",context:"standalone"})||tt.day(_e,{width:"short",context:"standalone"})||tt.day(_e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(_e,et){return et>=0&&et<=6}},{key:"set",value:function(_e,et,tt,rt){return _e=setUTCDay(_e,tt,rt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function setUTCISODay(a,_){requiredArgs(2,arguments);var $=toInteger$2(_);$%7===0&&($=$-7);var j=1,_e=toDate$1(a),et=_e.getUTCDay(),tt=$%7,rt=(tt+7)%7,it=(rt<j?7:0)+$-et;return _e.setUTCDate(_e.getUTCDate()+it),_e}function _typeof$f(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$f=function($){return typeof $}:_typeof$f=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$f(a)}function _classCallCheck$e(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$f(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$f(a,_,$){return _&&_defineProperties$f(a.prototype,_),$&&_defineProperties$f(a,$),a}function _inherits$e(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$f(a,_)}function _setPrototypeOf$f(a,_){return _setPrototypeOf$f=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$f(a,_)}function _createSuper$e(a){var _=_isNativeReflectConstruct$e();return function(){var j=_getPrototypeOf$e(a),_e;if(_){var et=_getPrototypeOf$e(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$e(this,_e)}}function _possibleConstructorReturn$e(a,_){return _&&(_typeof$f(_)==="object"||typeof _=="function")?_:_assertThisInitialized$f(a)}function _assertThisInitialized$f(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$e(a){return _getPrototypeOf$e=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$e(a)}function _defineProperty$e(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ISODayParser=function(a){_inherits$e($,a);var _=_createSuper$e($);function $(){var j;_classCallCheck$e(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$e(_assertThisInitialized$f(j),"priority",90),_defineProperty$e(_assertThisInitialized$f(j),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),j}return _createClass$f($,[{key:"parse",value:function(_e,et,tt){var rt=function(ct){return ct===0?7:ct};switch(et){case"i":case"ii":return parseNDigits(et.length,_e);case"io":return tt.ordinalNumber(_e,{unit:"day"});case"iii":return mapValue(tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"}),rt);case"iiiii":return mapValue(tt.day(_e,{width:"narrow",context:"formatting"}),rt);case"iiiiii":return mapValue(tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"}),rt);case"iiii":default:return mapValue(tt.day(_e,{width:"wide",context:"formatting"})||tt.day(_e,{width:"abbreviated",context:"formatting"})||tt.day(_e,{width:"short",context:"formatting"})||tt.day(_e,{width:"narrow",context:"formatting"}),rt)}}},{key:"validate",value:function(_e,et){return et>=1&&et<=7}},{key:"set",value:function(_e,et,tt){return _e=setUTCISODay(_e,tt),_e.setUTCHours(0,0,0,0),_e}}]),$}(Parser);function _typeof$e(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$e=function($){return typeof $}:_typeof$e=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$e(a)}function _classCallCheck$d(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$e(a,_,$){return _&&_defineProperties$e(a.prototype,_),$&&_defineProperties$e(a,$),a}function _inherits$d(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$e(a,_)}function _setPrototypeOf$e(a,_){return _setPrototypeOf$e=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$e(a,_)}function _createSuper$d(a){var _=_isNativeReflectConstruct$d();return function(){var j=_getPrototypeOf$d(a),_e;if(_){var et=_getPrototypeOf$d(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$d(this,_e)}}function _possibleConstructorReturn$d(a,_){return _&&(_typeof$e(_)==="object"||typeof _=="function")?_:_assertThisInitialized$e(a)}function _assertThisInitialized$e(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$d(a){return _getPrototypeOf$d=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$d(a)}function _defineProperty$d(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var AMPMParser=function(a){_inherits$d($,a);var _=_createSuper$d($);function $(){var j;_classCallCheck$d(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$d(_assertThisInitialized$e(j),"priority",80),_defineProperty$d(_assertThisInitialized$e(j),"incompatibleTokens",["b","B","H","k","t","T"]),j}return _createClass$e($,[{key:"parse",value:function(_e,et,tt){switch(et){case"a":case"aa":case"aaa":return tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"aaaaa":return tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"aaaa":default:return tt.dayPeriod(_e,{width:"wide",context:"formatting"})||tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(_e,et,tt){return _e.setUTCHours(dayPeriodEnumToHours(tt),0,0,0),_e}}]),$}(Parser);function _typeof$d(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$d=function($){return typeof $}:_typeof$d=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$d(a)}function _classCallCheck$c(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$d(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$d(a,_,$){return _&&_defineProperties$d(a.prototype,_),$&&_defineProperties$d(a,$),a}function _inherits$c(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$d(a,_)}function _setPrototypeOf$d(a,_){return _setPrototypeOf$d=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$d(a,_)}function _createSuper$c(a){var _=_isNativeReflectConstruct$c();return function(){var j=_getPrototypeOf$c(a),_e;if(_){var et=_getPrototypeOf$c(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$c(this,_e)}}function _possibleConstructorReturn$c(a,_){return _&&(_typeof$d(_)==="object"||typeof _=="function")?_:_assertThisInitialized$d(a)}function _assertThisInitialized$d(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$c(a){return _getPrototypeOf$c=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$c(a)}function _defineProperty$c(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var AMPMMidnightParser=function(a){_inherits$c($,a);var _=_createSuper$c($);function $(){var j;_classCallCheck$c(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$c(_assertThisInitialized$d(j),"priority",80),_defineProperty$c(_assertThisInitialized$d(j),"incompatibleTokens",["a","B","H","k","t","T"]),j}return _createClass$d($,[{key:"parse",value:function(_e,et,tt){switch(et){case"b":case"bb":case"bbb":return tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"bbbbb":return tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"bbbb":default:return tt.dayPeriod(_e,{width:"wide",context:"formatting"})||tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(_e,et,tt){return _e.setUTCHours(dayPeriodEnumToHours(tt),0,0,0),_e}}]),$}(Parser);function _typeof$c(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$c=function($){return typeof $}:_typeof$c=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$c(a)}function _classCallCheck$b(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$c(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$c(a,_,$){return _&&_defineProperties$c(a.prototype,_),$&&_defineProperties$c(a,$),a}function _inherits$b(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$c(a,_)}function _setPrototypeOf$c(a,_){return _setPrototypeOf$c=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$c(a,_)}function _createSuper$b(a){var _=_isNativeReflectConstruct$b();return function(){var j=_getPrototypeOf$b(a),_e;if(_){var et=_getPrototypeOf$b(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$b(this,_e)}}function _possibleConstructorReturn$b(a,_){return _&&(_typeof$c(_)==="object"||typeof _=="function")?_:_assertThisInitialized$c(a)}function _assertThisInitialized$c(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$b(a){return _getPrototypeOf$b=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$b(a)}function _defineProperty$b(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var DayPeriodParser=function(a){_inherits$b($,a);var _=_createSuper$b($);function $(){var j;_classCallCheck$b(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$b(_assertThisInitialized$c(j),"priority",80),_defineProperty$b(_assertThisInitialized$c(j),"incompatibleTokens",["a","b","t","T"]),j}return _createClass$c($,[{key:"parse",value:function(_e,et,tt){switch(et){case"B":case"BB":case"BBB":return tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"BBBBB":return tt.dayPeriod(_e,{width:"narrow",context:"formatting"});case"BBBB":default:return tt.dayPeriod(_e,{width:"wide",context:"formatting"})||tt.dayPeriod(_e,{width:"abbreviated",context:"formatting"})||tt.dayPeriod(_e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(_e,et,tt){return _e.setUTCHours(dayPeriodEnumToHours(tt),0,0,0),_e}}]),$}(Parser);function _typeof$b(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$b=function($){return typeof $}:_typeof$b=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$b(a)}function _classCallCheck$a(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$b(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$b(a,_,$){return _&&_defineProperties$b(a.prototype,_),$&&_defineProperties$b(a,$),a}function _inherits$a(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$b(a,_)}function _setPrototypeOf$b(a,_){return _setPrototypeOf$b=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$b(a,_)}function _createSuper$a(a){var _=_isNativeReflectConstruct$a();return function(){var j=_getPrototypeOf$a(a),_e;if(_){var et=_getPrototypeOf$a(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$a(this,_e)}}function _possibleConstructorReturn$a(a,_){return _&&(_typeof$b(_)==="object"||typeof _=="function")?_:_assertThisInitialized$b(a)}function _assertThisInitialized$b(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$a(a){return _getPrototypeOf$a=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$a(a)}function _defineProperty$a(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var Hour1to12Parser=function(a){_inherits$a($,a);var _=_createSuper$a($);function $(){var j;_classCallCheck$a(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$a(_assertThisInitialized$b(j),"priority",70),_defineProperty$a(_assertThisInitialized$b(j),"incompatibleTokens",["H","K","k","t","T"]),j}return _createClass$b($,[{key:"parse",value:function(_e,et,tt){switch(et){case"h":return parseNumericPattern(numericPatterns.hour12h,_e);case"ho":return tt.ordinalNumber(_e,{unit:"hour"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=1&&et<=12}},{key:"set",value:function(_e,et,tt){var rt=_e.getUTCHours()>=12;return rt&&tt<12?_e.setUTCHours(tt+12,0,0,0):!rt&&tt===12?_e.setUTCHours(0,0,0,0):_e.setUTCHours(tt,0,0,0),_e}}]),$}(Parser);function _typeof$a(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$a=function($){return typeof $}:_typeof$a=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$a(a)}function _classCallCheck$9(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$a(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$a(a,_,$){return _&&_defineProperties$a(a.prototype,_),$&&_defineProperties$a(a,$),a}function _inherits$9(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$a(a,_)}function _setPrototypeOf$a(a,_){return _setPrototypeOf$a=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$a(a,_)}function _createSuper$9(a){var _=_isNativeReflectConstruct$9();return function(){var j=_getPrototypeOf$9(a),_e;if(_){var et=_getPrototypeOf$9(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$9(this,_e)}}function _possibleConstructorReturn$9(a,_){return _&&(_typeof$a(_)==="object"||typeof _=="function")?_:_assertThisInitialized$a(a)}function _assertThisInitialized$a(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$9(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$9(a){return _getPrototypeOf$9=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$9(a)}function _defineProperty$9(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var Hour0to23Parser=function(a){_inherits$9($,a);var _=_createSuper$9($);function $(){var j;_classCallCheck$9(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$9(_assertThisInitialized$a(j),"priority",70),_defineProperty$9(_assertThisInitialized$a(j),"incompatibleTokens",["a","b","h","K","k","t","T"]),j}return _createClass$a($,[{key:"parse",value:function(_e,et,tt){switch(et){case"H":return parseNumericPattern(numericPatterns.hour23h,_e);case"Ho":return tt.ordinalNumber(_e,{unit:"hour"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=0&&et<=23}},{key:"set",value:function(_e,et,tt){return _e.setUTCHours(tt,0,0,0),_e}}]),$}(Parser);function _typeof$9(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$9=function($){return typeof $}:_typeof$9=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$9(a)}function _classCallCheck$8(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$9(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$9(a,_,$){return _&&_defineProperties$9(a.prototype,_),$&&_defineProperties$9(a,$),a}function _inherits$8(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$9(a,_)}function _setPrototypeOf$9(a,_){return _setPrototypeOf$9=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$9(a,_)}function _createSuper$8(a){var _=_isNativeReflectConstruct$8();return function(){var j=_getPrototypeOf$8(a),_e;if(_){var et=_getPrototypeOf$8(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$8(this,_e)}}function _possibleConstructorReturn$8(a,_){return _&&(_typeof$9(_)==="object"||typeof _=="function")?_:_assertThisInitialized$9(a)}function _assertThisInitialized$9(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$8(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$8(a){return _getPrototypeOf$8=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$8(a)}function _defineProperty$8(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var Hour0To11Parser=function(a){_inherits$8($,a);var _=_createSuper$8($);function $(){var j;_classCallCheck$8(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$8(_assertThisInitialized$9(j),"priority",70),_defineProperty$8(_assertThisInitialized$9(j),"incompatibleTokens",["h","H","k","t","T"]),j}return _createClass$9($,[{key:"parse",value:function(_e,et,tt){switch(et){case"K":return parseNumericPattern(numericPatterns.hour11h,_e);case"Ko":return tt.ordinalNumber(_e,{unit:"hour"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=0&&et<=11}},{key:"set",value:function(_e,et,tt){var rt=_e.getUTCHours()>=12;return rt&&tt<12?_e.setUTCHours(tt+12,0,0,0):_e.setUTCHours(tt,0,0,0),_e}}]),$}(Parser);function _typeof$8(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$8=function($){return typeof $}:_typeof$8=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$8(a)}function _classCallCheck$7(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$8(a,_,$){return _&&_defineProperties$8(a.prototype,_),$&&_defineProperties$8(a,$),a}function _inherits$7(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$8(a,_)}function _setPrototypeOf$8(a,_){return _setPrototypeOf$8=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$8(a,_)}function _createSuper$7(a){var _=_isNativeReflectConstruct$7();return function(){var j=_getPrototypeOf$7(a),_e;if(_){var et=_getPrototypeOf$7(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$7(this,_e)}}function _possibleConstructorReturn$7(a,_){return _&&(_typeof$8(_)==="object"||typeof _=="function")?_:_assertThisInitialized$8(a)}function _assertThisInitialized$8(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$7(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$7(a){return _getPrototypeOf$7=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$7(a)}function _defineProperty$7(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var Hour1To24Parser=function(a){_inherits$7($,a);var _=_createSuper$7($);function $(){var j;_classCallCheck$7(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$7(_assertThisInitialized$8(j),"priority",70),_defineProperty$7(_assertThisInitialized$8(j),"incompatibleTokens",["a","b","h","H","K","t","T"]),j}return _createClass$8($,[{key:"parse",value:function(_e,et,tt){switch(et){case"k":return parseNumericPattern(numericPatterns.hour24h,_e);case"ko":return tt.ordinalNumber(_e,{unit:"hour"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=1&&et<=24}},{key:"set",value:function(_e,et,tt){var rt=tt<=24?tt%24:tt;return _e.setUTCHours(rt,0,0,0),_e}}]),$}(Parser);function _typeof$7(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$7=function($){return typeof $}:_typeof$7=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$7(a)}function _classCallCheck$6(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$7(a,_,$){return _&&_defineProperties$7(a.prototype,_),$&&_defineProperties$7(a,$),a}function _inherits$6(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$7(a,_)}function _setPrototypeOf$7(a,_){return _setPrototypeOf$7=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$7(a,_)}function _createSuper$6(a){var _=_isNativeReflectConstruct$6();return function(){var j=_getPrototypeOf$6(a),_e;if(_){var et=_getPrototypeOf$6(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$6(this,_e)}}function _possibleConstructorReturn$6(a,_){return _&&(_typeof$7(_)==="object"||typeof _=="function")?_:_assertThisInitialized$7(a)}function _assertThisInitialized$7(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$6(a){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$6(a)}function _defineProperty$6(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var MinuteParser=function(a){_inherits$6($,a);var _=_createSuper$6($);function $(){var j;_classCallCheck$6(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$6(_assertThisInitialized$7(j),"priority",60),_defineProperty$6(_assertThisInitialized$7(j),"incompatibleTokens",["t","T"]),j}return _createClass$7($,[{key:"parse",value:function(_e,et,tt){switch(et){case"m":return parseNumericPattern(numericPatterns.minute,_e);case"mo":return tt.ordinalNumber(_e,{unit:"minute"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=0&&et<=59}},{key:"set",value:function(_e,et,tt){return _e.setUTCMinutes(tt,0,0),_e}}]),$}(Parser);function _typeof$6(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function($){return typeof $}:_typeof$6=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$6(a)}function _classCallCheck$5(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$6(a,_,$){return _&&_defineProperties$6(a.prototype,_),$&&_defineProperties$6(a,$),a}function _inherits$5(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$6(a,_)}function _setPrototypeOf$6(a,_){return _setPrototypeOf$6=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$6(a,_)}function _createSuper$5(a){var _=_isNativeReflectConstruct$5();return function(){var j=_getPrototypeOf$5(a),_e;if(_){var et=_getPrototypeOf$5(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$5(this,_e)}}function _possibleConstructorReturn$5(a,_){return _&&(_typeof$6(_)==="object"||typeof _=="function")?_:_assertThisInitialized$6(a)}function _assertThisInitialized$6(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$5(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$5(a){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$5(a)}function _defineProperty$5(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var SecondParser=function(a){_inherits$5($,a);var _=_createSuper$5($);function $(){var j;_classCallCheck$5(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$5(_assertThisInitialized$6(j),"priority",50),_defineProperty$5(_assertThisInitialized$6(j),"incompatibleTokens",["t","T"]),j}return _createClass$6($,[{key:"parse",value:function(_e,et,tt){switch(et){case"s":return parseNumericPattern(numericPatterns.second,_e);case"so":return tt.ordinalNumber(_e,{unit:"second"});default:return parseNDigits(et.length,_e)}}},{key:"validate",value:function(_e,et){return et>=0&&et<=59}},{key:"set",value:function(_e,et,tt){return _e.setUTCSeconds(tt,0),_e}}]),$}(Parser);function _typeof$5(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function($){return typeof $}:_typeof$5=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$5(a)}function _classCallCheck$4(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$5(a,_,$){return _&&_defineProperties$5(a.prototype,_),$&&_defineProperties$5(a,$),a}function _inherits$4(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$5(a,_)}function _setPrototypeOf$5(a,_){return _setPrototypeOf$5=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$5(a,_)}function _createSuper$4(a){var _=_isNativeReflectConstruct$4();return function(){var j=_getPrototypeOf$4(a),_e;if(_){var et=_getPrototypeOf$4(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$4(this,_e)}}function _possibleConstructorReturn$4(a,_){return _&&(_typeof$5(_)==="object"||typeof _=="function")?_:_assertThisInitialized$5(a)}function _assertThisInitialized$5(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$4(a){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$4(a)}function _defineProperty$4(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var FractionOfSecondParser=function(a){_inherits$4($,a);var _=_createSuper$4($);function $(){var j;_classCallCheck$4(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$4(_assertThisInitialized$5(j),"priority",30),_defineProperty$4(_assertThisInitialized$5(j),"incompatibleTokens",["t","T"]),j}return _createClass$5($,[{key:"parse",value:function(_e,et){var tt=function(it){return Math.floor(it*Math.pow(10,-et.length+3))};return mapValue(parseNDigits(et.length,_e),tt)}},{key:"set",value:function(_e,et,tt){return _e.setUTCMilliseconds(tt),_e}}]),$}(Parser);function _typeof$4(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function($){return typeof $}:_typeof$4=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$4(a)}function _classCallCheck$3(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$4(a,_,$){return _&&_defineProperties$4(a.prototype,_),$&&_defineProperties$4(a,$),a}function _inherits$3(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$4(a,_)}function _setPrototypeOf$4(a,_){return _setPrototypeOf$4=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$4(a,_)}function _createSuper$3(a){var _=_isNativeReflectConstruct$3();return function(){var j=_getPrototypeOf$3(a),_e;if(_){var et=_getPrototypeOf$3(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$3(this,_e)}}function _possibleConstructorReturn$3(a,_){return _&&(_typeof$4(_)==="object"||typeof _=="function")?_:_assertThisInitialized$4(a)}function _assertThisInitialized$4(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$3(a){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$3(a)}function _defineProperty$3(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ISOTimezoneWithZParser=function(a){_inherits$3($,a);var _=_createSuper$3($);function $(){var j;_classCallCheck$3(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$3(_assertThisInitialized$4(j),"priority",10),_defineProperty$3(_assertThisInitialized$4(j),"incompatibleTokens",["t","T","x"]),j}return _createClass$4($,[{key:"parse",value:function(_e,et){switch(et){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,_e);case"XX":return parseTimezonePattern(timezonePatterns.basic,_e);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,_e);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,_e);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,_e)}}},{key:"set",value:function(_e,et,tt){return et.timestampIsSet?_e:new Date(_e.getTime()-tt)}}]),$}(Parser);function _typeof$3(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function($){return typeof $}:_typeof$3=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$3(a)}function _classCallCheck$2(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$3(a,_,$){return _&&_defineProperties$3(a.prototype,_),$&&_defineProperties$3(a,$),a}function _inherits$2(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$3(a,_)}function _setPrototypeOf$3(a,_){return _setPrototypeOf$3=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$3(a,_)}function _createSuper$2(a){var _=_isNativeReflectConstruct$2();return function(){var j=_getPrototypeOf$2(a),_e;if(_){var et=_getPrototypeOf$2(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$2(this,_e)}}function _possibleConstructorReturn$2(a,_){return _&&(_typeof$3(_)==="object"||typeof _=="function")?_:_assertThisInitialized$3(a)}function _assertThisInitialized$3(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$2(a){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$2(a)}function _defineProperty$2(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var ISOTimezoneParser=function(a){_inherits$2($,a);var _=_createSuper$2($);function $(){var j;_classCallCheck$2(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$2(_assertThisInitialized$3(j),"priority",10),_defineProperty$2(_assertThisInitialized$3(j),"incompatibleTokens",["t","T","X"]),j}return _createClass$3($,[{key:"parse",value:function(_e,et){switch(et){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,_e);case"xx":return parseTimezonePattern(timezonePatterns.basic,_e);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,_e);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,_e);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,_e)}}},{key:"set",value:function(_e,et,tt){return et.timestampIsSet?_e:new Date(_e.getTime()-tt)}}]),$}(Parser);function _typeof$2(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function($){return typeof $}:_typeof$2=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$2(a)}function _classCallCheck$1(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$2(a,_,$){return _&&_defineProperties$2(a.prototype,_),$&&_defineProperties$2(a,$),a}function _inherits$1(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$2(a,_)}function _setPrototypeOf$2(a,_){return _setPrototypeOf$2=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$2(a,_)}function _createSuper$1(a){var _=_isNativeReflectConstruct$1();return function(){var j=_getPrototypeOf$1(a),_e;if(_){var et=_getPrototypeOf$1(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn$1(this,_e)}}function _possibleConstructorReturn$1(a,_){return _&&(_typeof$2(_)==="object"||typeof _=="function")?_:_assertThisInitialized$2(a)}function _assertThisInitialized$2(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$1(a){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf$1(a)}function _defineProperty$1(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var TimestampSecondsParser=function(a){_inherits$1($,a);var _=_createSuper$1($);function $(){var j;_classCallCheck$1(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty$1(_assertThisInitialized$2(j),"priority",40),_defineProperty$1(_assertThisInitialized$2(j),"incompatibleTokens","*"),j}return _createClass$2($,[{key:"parse",value:function(_e){return parseAnyDigitsSigned(_e)}},{key:"set",value:function(_e,et,tt){return[new Date(tt*1e3),{timestampIsSet:!0}]}}]),$}(Parser);function _typeof$1(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function($){return typeof $}:_typeof$1=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof$1(a)}function _classCallCheck(a,_){if(!(a instanceof _))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass$1(a,_,$){return _&&_defineProperties$1(a.prototype,_),$&&_defineProperties$1(a,$),a}function _inherits(a,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(_&&_.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),_&&_setPrototypeOf$1(a,_)}function _setPrototypeOf$1(a,_){return _setPrototypeOf$1=Object.setPrototypeOf||function(j,_e){return j.__proto__=_e,j},_setPrototypeOf$1(a,_)}function _createSuper(a){var _=_isNativeReflectConstruct();return function(){var j=_getPrototypeOf(a),_e;if(_){var et=_getPrototypeOf(this).constructor;_e=Reflect.construct(j,arguments,et)}else _e=j.apply(this,arguments);return _possibleConstructorReturn(this,_e)}}function _possibleConstructorReturn(a,_){return _&&(_typeof$1(_)==="object"||typeof _=="function")?_:_assertThisInitialized$1(a)}function _assertThisInitialized$1(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf(a)}function _defineProperty(a,_,$){return _ in a?Object.defineProperty(a,_,{value:$,enumerable:!0,configurable:!0,writable:!0}):a[_]=$,a}var TimestampMillisecondsParser=function(a){_inherits($,a);var _=_createSuper($);function $(){var j;_classCallCheck(this,$);for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=_.call.apply(_,[this].concat(et)),_defineProperty(_assertThisInitialized$1(j),"priority",20),_defineProperty(_assertThisInitialized$1(j),"incompatibleTokens","*"),j}return _createClass$1($,[{key:"parse",value:function(_e){return parseAnyDigitsSigned(_e)}},{key:"set",value:function(_e,et,tt){return[new Date(tt),{timestampIsSet:!0}]}}]),$}(Parser),parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser};function _typeof(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function($){return typeof $}:_typeof=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_typeof(a)}function _createForOfIteratorHelper(a,_){var $;if(typeof Symbol>"u"||a[Symbol.iterator]==null){if(Array.isArray(a)||($=_unsupportedIterableToArray(a))||_&&a&&typeof a.length=="number"){$&&(a=$);var j=0,_e=function(){};return{s:_e,n:function(){return j>=a.length?{done:!0}:{done:!1,value:a[j++]}},e:function(ct){throw ct},f:_e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
145
145
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var et=!0,tt=!1,rt;return{s:function(){$=a[Symbol.iterator]()},n:function(){var ct=$.next();return et=ct.done,ct},e:function(ct){tt=!0,rt=ct},f:function(){try{!et&&$.return!=null&&$.return()}finally{if(tt)throw rt}}}}function _unsupportedIterableToArray(a,_){if(a){if(typeof a=="string")return _arrayLikeToArray(a,_);var $=Object.prototype.toString.call(a).slice(8,-1);if($==="Object"&&a.constructor&&($=a.constructor.name),$==="Map"||$==="Set")return Array.from(a);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return _arrayLikeToArray(a,_)}}function _arrayLikeToArray(a,_){(_==null||_>a.length)&&(_=a.length);for(var $=0,j=new Array(_);$<_;$++)j[$]=a[$];return j}var formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse(a,_,$,j){var _e,et,tt,rt,it,ct,dt,mt,vt,wt,xt,bt,Et,$t,At,Rt,Pt,Ct;requiredArgs(3,arguments);var Ot=String(a),kt=String(_),Dt=getDefaultOptions(),Nt=(_e=(et=j==null?void 0:j.locale)!==null&&et!==void 0?et:Dt.locale)!==null&&_e!==void 0?_e:defaultLocale;if(!Nt.match)throw new RangeError("locale must contain match property");var zt=toInteger$2((tt=(rt=(it=(ct=j==null?void 0:j.firstWeekContainsDate)!==null&&ct!==void 0?ct:j==null||(dt=j.locale)===null||dt===void 0||(mt=dt.options)===null||mt===void 0?void 0:mt.firstWeekContainsDate)!==null&&it!==void 0?it:Dt.firstWeekContainsDate)!==null&&rt!==void 0?rt:(vt=Dt.locale)===null||vt===void 0||(wt=vt.options)===null||wt===void 0?void 0:wt.firstWeekContainsDate)!==null&&tt!==void 0?tt:1);if(!(zt>=1&&zt<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var gt=toInteger$2((xt=(bt=(Et=($t=j==null?void 0:j.weekStartsOn)!==null&&$t!==void 0?$t:j==null||(At=j.locale)===null||At===void 0||(Rt=At.options)===null||Rt===void 0?void 0:Rt.weekStartsOn)!==null&&Et!==void 0?Et:Dt.weekStartsOn)!==null&&bt!==void 0?bt:(Pt=Dt.locale)===null||Pt===void 0||(Ct=Pt.options)===null||Ct===void 0?void 0:Ct.weekStartsOn)!==null&&xt!==void 0?xt:0);if(!(gt>=0&><=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(kt==="")return Ot===""?toDate$1($):new Date(NaN);var nt={firstWeekContainsDate:zt,weekStartsOn:gt,locale:Nt},ot=[new DateToSystemTimezoneSetter],st=kt.match(longFormattingTokensRegExp).map(function(tr){var er=tr[0];if(er in longFormatters$1){var Jt=longFormatters$1[er];return Jt(tr,Nt.formatLong)}return tr}).join("").match(formattingTokensRegExp),lt=[],pt=_createForOfIteratorHelper(st),_t;try{var St=function(){var er=_t.value;!(j!=null&&j.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken(er)&&throwProtectedError(er,kt,a),!(j!=null&&j.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken(er)&&throwProtectedError(er,kt,a);var Jt=er[0],Wt=parsers[Jt];if(Wt){var Kt=Wt.incompatibleTokens;if(Array.isArray(Kt)){var lr=lt.find(function($r){return Kt.includes($r.token)||$r.token===Jt});if(lr)throw new RangeError("The format string mustn't contain `".concat(lr.fullToken,"` and `").concat(er,"` at the same time"))}else if(Wt.incompatibleTokens==="*"&<.length>0)throw new RangeError("The format string mustn't contain `".concat(er,"` and any other token at the same time"));lt.push({token:Jt,fullToken:er});var Lr=Wt.run(Ot,er,Nt.match,nt);if(!Lr)return{v:new Date(NaN)};ot.push(Lr.setter),Ot=Lr.rest}else{if(Jt.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Jt+"`");if(er==="''"?er="'":Jt==="'"&&(er=cleanEscapedString(er)),Ot.indexOf(er)===0)Ot=Ot.slice(er.length);else return{v:new Date(NaN)}}};for(pt.s();!(_t=pt.n()).done;){var yt=St();if(_typeof(yt)==="object")return yt.v}}catch(tr){pt.e(tr)}finally{pt.f()}if(Ot.length>0&¬WhitespaceRegExp.test(Ot))return new Date(NaN);var at=ot.map(function(tr){return tr.priority}).sort(function(tr,er){return er-tr}).filter(function(tr,er,Jt){return Jt.indexOf(tr)===er}).map(function(tr){return ot.filter(function(er){return er.priority===tr}).sort(function(er,Jt){return Jt.subPriority-er.subPriority})}).map(function(tr){return tr[0]}),ht=toDate$1($);if(isNaN(ht.getTime()))return new Date(NaN);var Mt=subMilliseconds(ht,getTimezoneOffsetInMilliseconds(ht)),Tt={},It=_createForOfIteratorHelper(at),Lt;try{for(It.s();!(Lt=It.n()).done;){var jt=Lt.value;if(!jt.validate(Mt,nt))return new Date(NaN);var Gt=jt.set(Mt,Tt,nt);Array.isArray(Gt)?(Mt=Gt[0],assign(Tt,Gt[1])):Mt=Gt}}catch(tr){It.e(tr)}finally{It.f()}return Mt}function cleanEscapedString(a){return a.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function startOfDay$1(a){requiredArgs(1,arguments);var _=toDate$1(a);return _.setHours(0,0,0,0),_}var propTypesExports=requirePropTypes();const PropTypes=getDefaultExportFromCjs$1(propTypesExports);function _extends$2(){return _extends$2=Object.assign||function(a){for(var _=1;_<arguments.length;_++){var $=arguments[_];for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&(a[j]=$[j])}return a},_extends$2.apply(this,arguments)}function _objectWithoutPropertiesLoose$1(a,_){if(a==null)return{};var $={},j=Object.keys(a),_e,et;for(et=0;et<j.length;et++)_e=j[et],!(_.indexOf(_e)>=0)&&($[_e]=a[_e]);return $}function toInteger$1(a){if(a===null||a===!0||a===!1)return NaN;var _=Number(a);return isNaN(_)?_:_<0?Math.ceil(_):Math.floor(_)}function toDate(a){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var _=Object.prototype.toString.call(a);return a instanceof Date||typeof a=="object"&&_==="[object Date]"?new Date(a.getTime()):typeof a=="number"||_==="[object Number]"?new Date(a):((typeof a=="string"||_==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function addDays(a,_){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var $=toDate(a),j=toInteger$1(_);return $.setDate($.getDate()+j),$}function isBefore(a,_){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var $=toDate(a),j=toDate(_);return $.getTime()<j.getTime()}function startOfDay(a){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var _=toDate(a);return _.setHours(0,0,0,0),_}function isSameDay$1(a,_){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var $=startOfDay(a),j=startOfDay(_);return $.getTime()===j.getTime()}function isToday(a){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return isSameDay$1(a,Date.now())}function differenceInCalendarMonths(a,_){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var $=toDate(a),j=toDate(_),_e=$.getFullYear()-j.getFullYear(),et=$.getMonth()-j.getMonth();return _e*12+et}function composeEventHandlers$1(){for(var a=arguments.length,_=new Array(a),$=0;$<a;$++)_[$]=arguments[$];return function(j){for(var _e=arguments.length,et=new Array(_e>1?_e-1:0),tt=1;tt<_e;tt++)et[tt-1]=arguments[tt];return _.some(function(rt){return rt&&rt.apply(void 0,[j].concat(et)),j.defaultPrevented})}}function requiredProp(a,_){throw new Error('The property "'+_+'" is required in "'+a+'"')}function unwrapChildrenForPreact(a){return a=Array.isArray(a)?a[0]:a,a||noop$1}function noop$1(){}function subtractMonth(a){var _=a.calendars,$=a.offset,j=a.minDate;if($>1&&j){var _e=_[0].firstDayOfMonth,et=differenceInCalendarMonths(_e,j);et<$&&($=et)}return $}function addMonth(a){var _=a.calendars,$=a.offset,j=a.maxDate;if($>1&&j){var _e=_[_.length-1].lastDayOfMonth,et=differenceInCalendarMonths(j,_e);et<$&&($=et)}return $}function isBackDisabled(a){var _=a.calendars,$=a.minDate;if(!$)return!1;var j=_[0].firstDayOfMonth,_e=addDays(j,-1);return!!isBefore(_e,$)}function isForwardDisabled(a){var _=a.calendars,$=a.maxDate;if(!$)return!1;var j=_[_.length-1].lastDayOfMonth,_e=addDays(j,1);return!!isBefore($,_e)}function getCalendars(a){for(var _=a.date,$=a.selected,j=a.monthsToDisplay,_e=a.offset,et=a.minDate,tt=a.maxDate,rt=a.firstDayOfWeek,it=a.showOutsideDays,ct=[],dt=getStartDate(_,et,tt),mt=0;mt<j;mt++){var vt=getMonths({month:dt.getMonth()+mt+_e,year:dt.getFullYear(),selectedDates:$,minDate:et,maxDate:tt,firstDayOfWeek:rt,showOutsideDays:it});ct.push(vt)}return ct}function getStartDate(a,_,$){var j=startOfDay(a);if(_){var _e=startOfDay(_);isBefore(j,_e)&&(j=_e)}if($){var et=startOfDay($);isBefore(et,j)&&(j=et)}return j}function getMonths(a){var _=a.month,$=a.year,j=a.selectedDates,_e=a.minDate,et=a.maxDate,tt=a.firstDayOfWeek,rt=a.showOutsideDays,it=getNumDaysMonthYear(_,$),ct=it.daysInMonth;_=it.month,$=it.year;for(var dt=[],mt=1;mt<=ct;mt++){var vt=new Date($,_,mt),wt={date:vt,selected:isSelected(j,vt),selectable:isSelectable$1(_e,et,vt),today:isToday(vt),prevMonth:!1,nextMonth:!1};dt.push(wt)}var xt=new Date($,_,1),bt=new Date($,_,ct),Et=fillFrontWeek({firstDayOfMonth:xt,minDate:_e,maxDate:et,selectedDates:j,firstDayOfWeek:tt,showOutsideDays:rt}),$t=fillBackWeek({lastDayOfMonth:bt,minDate:_e,maxDate:et,selectedDates:j,firstDayOfWeek:tt,showOutsideDays:rt});dt.unshift.apply(dt,Et),dt.push.apply(dt,$t);var At=getWeeks(dt);return{firstDayOfMonth:xt,lastDayOfMonth:bt,month:_,year:$,weeks:At}}function fillFrontWeek(a){var _=a.firstDayOfMonth,$=a.minDate,j=a.maxDate,_e=a.selectedDates,et=a.firstDayOfWeek,tt=a.showOutsideDays,rt=[],it=(_.getDay()+7-et)%7;if(tt)for(var ct=addDays(_,-1),dt=ct.getDate(),mt=ct.getMonth(),vt=ct.getFullYear(),wt=0;wt<it;){var xt=new Date(vt,mt,dt-wt),bt={date:xt,selected:isSelected(_e,xt),selectable:isSelectable$1($,j,xt),today:!1,prevMonth:!0,nextMonth:!1};rt.unshift(bt),wt++}else for(;it>0;)rt.unshift(""),it--;return rt}function fillBackWeek(a){var _=a.lastDayOfMonth,$=a.minDate,j=a.maxDate,_e=a.selectedDates,et=a.firstDayOfWeek,tt=a.showOutsideDays,rt=[],it=(_.getDay()+7-et)%7;if(tt)for(var ct=addDays(_,1),dt=ct.getMonth(),mt=ct.getFullYear(),vt=0;vt<6-it;){var wt=new Date(mt,dt,1+vt),xt={date:wt,selected:isSelected(_e,wt),selectable:isSelectable$1($,j,wt),today:!1,prevMonth:!1,nextMonth:!0};rt.push(xt),vt++}else for(;it<6;)rt.push(""),it++;return rt}function getNumDaysMonthYear(a,_){var $=new Date(_,a,1);a=$.getMonth(),_=$.getFullYear();var j=32-new Date(_,a,32).getDate();return{daysInMonth:j,month:a,year:_}}function getWeeks(a){for(var _=Math.ceil(a.length/7),$=[],j=0;j<_;j++){$[j]=[];for(var _e=0;_e<7;_e++)$[j].push(a[j*7+_e])}return $}function isSelected(a,_){return a=Array.isArray(a)?a:[a],a.some(function($){return $ instanceof Date&&startOfDay($).getTime()===startOfDay(_).getTime()})}function isSelectable$1(a,_,$){return!(a&&isBefore($,a)||_&&isBefore(_,$))}function isOffsetControlled(a){return a!==void 0}function getOffset(a,_){return isOffsetControlled(a)?a:_}function getDateProps(a,_){var $=_===void 0?{}:_,j=$.onClick,_e=$.dateObj,et=_e===void 0?requiredProp("getDateProps","dateObj"):_e,tt=_objectWithoutPropertiesLoose$1($,["onClick","dateObj"]);return _extends$2({onClick:composeEventHandlers$1(j,function(rt){a(et,rt)}),disabled:!et.selectable,"aria-label":et.date.toDateString(),"aria-pressed":et.selected,role:"button"},tt)}function getBackProps(a,_){var $=a.minDate,j=a.offsetMonth,_e=a.handleOffsetChanged,et=_===void 0?{}:_,tt=et.onClick,rt=et.offset,it=rt===void 0?1:rt,ct=et.calendars,dt=ct===void 0?requiredProp("getBackProps","calendars"):ct,mt=_objectWithoutPropertiesLoose$1(et,["onClick","offset","calendars"]);return _extends$2({onClick:composeEventHandlers$1(tt,function(){_e(j-subtractMonth({calendars:dt,offset:it,minDate:$}))}),disabled:isBackDisabled({calendars:dt,offset:it,minDate:$}),"aria-label":"Go back "+it+" month"+(it===1?"":"s")},mt)}function getForwardProps(a,_){var $=a.maxDate,j=a.offsetMonth,_e=a.handleOffsetChanged,et=_===void 0?{}:_,tt=et.onClick,rt=et.offset,it=rt===void 0?1:rt,ct=et.calendars,dt=ct===void 0?requiredProp("getForwardProps","calendars"):ct,mt=_objectWithoutPropertiesLoose$1(et,["onClick","offset","calendars"]);return _extends$2({onClick:composeEventHandlers$1(tt,function(){_e(j+addMonth({calendars:dt,offset:it,maxDate:$}))}),disabled:isForwardDisabled({calendars:dt,offset:it,maxDate:$}),"aria-label":"Go forward "+it+" month"+(it===1?"":"s")},mt)}function useDayzed(a){var _=a.date,$=_===void 0?new Date:_,j=a.maxDate,_e=a.minDate,et=a.monthsToDisplay,tt=et===void 0?1:et,rt=a.firstDayOfWeek,it=rt===void 0?0:rt,ct=a.showOutsideDays,dt=ct===void 0?!1:ct,mt=a.offset,vt=a.onDateSelected,wt=a.onOffsetChanged,xt=wt===void 0?function(){}:wt,bt=a.selected,Et=reactExports.useState(0),$t=Et[0],At=Et[1],Rt=getOffset(mt,$t);function Pt(Ot){isOffsetControlled(mt)||At(Ot),xt(Ot)}var Ct=getCalendars({date:$,selected:bt,monthsToDisplay:tt,minDate:_e,maxDate:j,offset:Rt,firstDayOfWeek:it,showOutsideDays:dt});return{calendars:Ct,getDateProps:getDateProps.bind(null,vt),getBackProps:getBackProps.bind(null,{minDate:_e,offsetMonth:Rt,handleOffsetChanged:Pt}),getForwardProps:getForwardProps.bind(null,{maxDate:j,offsetMonth:Rt,handleOffsetChanged:Pt})}}function Dayzed(a){var _=useDayzed(a),$=unwrapChildrenForPreact(a.render||a.children);return $(_)}Dayzed.defaultProps={date:new Date,monthsToDisplay:1,onOffsetChanged:function a(){},firstDayOfWeek:0,showOutsideDays:!1};Dayzed.propTypes={render:PropTypes.func,children:PropTypes.func,date:PropTypes.instanceOf(Date),maxDate:PropTypes.instanceOf(Date),minDate:PropTypes.instanceOf(Date),monthsToDisplay:PropTypes.number,firstDayOfWeek:PropTypes.number,showOutsideDays:PropTypes.bool,offset:PropTypes.number,onDateSelected:PropTypes.func.isRequired,onOffsetChanged:PropTypes.func,selected:PropTypes.oneOfType([PropTypes.arrayOf(Date),PropTypes.instanceOf(Date)])};function compareAsc(a,_){requiredArgs(2,arguments);var $=toDate$1(a),j=toDate$1(_),_e=$.getTime()-j.getTime();return _e<0?-1:_e>0?1:_e}function isSameDay(a,_){requiredArgs(2,arguments);var $=startOfDay$1(a),j=startOfDay$1(_);return $.getTime()===j.getTime()}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(a){for(var _=1;_<arguments.length;_++){var $=arguments[_];for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&(a[j]=$[j])}return a},_extends$1.apply(this,arguments)}var isArray=Array.isArray;const isArray$1=isArray;var freeGlobal=typeof global$1=="object"&&global$1&&global$1.Object===Object&&global$1;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$e=Object.prototype,hasOwnProperty$b=objectProto$e.hasOwnProperty,nativeObjectToString$1=objectProto$e.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(a){var _=hasOwnProperty$b.call(a,symToStringTag$1),$=a[symToStringTag$1];try{a[symToStringTag$1]=void 0;var j=!0}catch{}var _e=nativeObjectToString$1.call(a);return j&&(_?a[symToStringTag$1]=$:delete a[symToStringTag$1]),_e}var objectProto$d=Object.prototype,nativeObjectToString=objectProto$d.toString;function objectToString(a){return nativeObjectToString.call(a)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(a){return a==null?a===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(a)?getRawTag(a):objectToString(a)}function isObjectLike(a){return a!=null&&typeof a=="object"}var symbolTag$1="[object Symbol]";function isSymbol(a){return typeof a=="symbol"||isObjectLike(a)&&baseGetTag(a)==symbolTag$1}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(a,_){if(isArray$1(a))return!1;var $=typeof a;return $=="number"||$=="symbol"||$=="boolean"||a==null||isSymbol(a)?!0:reIsPlainProp.test(a)||!reIsDeepProp.test(a)||_!=null&&a in Object(_)}function isObject(a){var _=typeof a;return a!=null&&(_=="object"||_=="function")}var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(a){if(!isObject(a))return!1;var _=baseGetTag(a);return _==funcTag$1||_==genTag||_==asyncTag||_==proxyTag}var coreJsData=root$1["__core-js_shared__"];const coreJsData$1=coreJsData;var maskSrcKey=function(){var a=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function isMasked(a){return!!maskSrcKey&&maskSrcKey in a}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(a){if(a!=null){try{return funcToString$2.call(a)}catch{}try{return a+""}catch{}}return""}var reRegExpChar$1=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$c=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$a=objectProto$c.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar$1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(a){if(!isObject(a)||isMasked(a))return!1;var _=isFunction(a)?reIsNative:reIsHostCtor;return _.test(toSource(a))}function getValue(a,_){return a==null?void 0:a[_]}function getNative(a,_){var $=getValue(a,_);return baseIsNative($)?$:void 0}var nativeCreate=getNative(Object,"create");const nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(a){var _=this.has(a)&&delete this.__data__[a];return this.size-=_?1:0,_}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function hashGet(a){var _=this.__data__;if(nativeCreate$1){var $=_[a];return $===HASH_UNDEFINED$2?void 0:$}return hasOwnProperty$9.call(_,a)?_[a]:void 0}var objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashHas(a){var _=this.__data__;return nativeCreate$1?_[a]!==void 0:hasOwnProperty$8.call(_,a)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(a,_){var $=this.__data__;return this.size+=this.has(a)?0:1,$[a]=nativeCreate$1&&_===void 0?HASH_UNDEFINED$1:_,this}function Hash(a){var _=-1,$=a==null?0:a.length;for(this.clear();++_<$;){var j=a[_];this.set(j[0],j[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function eq(a,_){return a===_||a!==a&&_!==_}function assocIndexOf(a,_){for(var $=a.length;$--;)if(eq(a[$][0],_))return $;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(a){var _=this.__data__,$=assocIndexOf(_,a);if($<0)return!1;var j=_.length-1;return $==j?_.pop():splice.call(_,$,1),--this.size,!0}function listCacheGet(a){var _=this.__data__,$=assocIndexOf(_,a);return $<0?void 0:_[$][1]}function listCacheHas(a){return assocIndexOf(this.__data__,a)>-1}function listCacheSet(a,_){var $=this.__data__,j=assocIndexOf($,a);return j<0?(++this.size,$.push([a,_])):$[j][1]=_,this}function ListCache(a){var _=-1,$=a==null?0:a.length;for(this.clear();++_<$;){var j=a[_];this.set(j[0],j[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map");const Map$2=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(a){var _=typeof a;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?a!=="__proto__":a===null}function getMapData(a,_){var $=a.__data__;return isKeyable(_)?$[typeof _=="string"?"string":"hash"]:$.map}function mapCacheDelete(a){var _=getMapData(this,a).delete(a);return this.size-=_?1:0,_}function mapCacheGet(a){return getMapData(this,a).get(a)}function mapCacheHas(a){return getMapData(this,a).has(a)}function mapCacheSet(a,_){var $=getMapData(this,a),j=$.size;return $.set(a,_),this.size+=$.size==j?0:1,this}function MapCache(a){var _=-1,$=a==null?0:a.length;for(this.clear();++_<$;){var j=a[_];this.set(j[0],j[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT="Expected a function";function memoize(a,_){if(typeof a!="function"||_!=null&&typeof _!="function")throw new TypeError(FUNC_ERROR_TEXT);var $=function(){var j=arguments,_e=_?_.apply(this,j):j[0],et=$.cache;if(et.has(_e))return et.get(_e);var tt=a.apply(this,j);return $.cache=et.set(_e,tt)||et,tt};return $.cache=new(memoize.Cache||MapCache),$}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(a){var _=memoize(a,function(j){return $.size===MAX_MEMOIZE_SIZE&&$.clear(),j}),$=_.cache;return _}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(a){var _=[];return a.charCodeAt(0)===46&&_.push(""),a.replace(rePropName,function($,j,_e,et){_.push(_e?et.replace(reEscapeChar,"$1"):j||$)}),_});const stringToPath$1=stringToPath;function arrayMap(a,_){for(var $=-1,j=a==null?0:a.length,_e=Array(j);++$<j;)_e[$]=_(a[$],$,a);return _e}var INFINITY$3=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString(a){if(typeof a=="string")return a;if(isArray$1(a))return arrayMap(a,baseToString)+"";if(isSymbol(a))return symbolToString?symbolToString.call(a):"";var _=a+"";return _=="0"&&1/a==-INFINITY$3?"-0":_}function toString(a){return a==null?"":baseToString(a)}function castPath(a,_){return isArray$1(a)?a:isKey(a,_)?[a]:stringToPath$1(toString(a))}var argsTag$2="[object Arguments]";function baseIsArguments(a){return isObjectLike(a)&&baseGetTag(a)==argsTag$2}var objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty,propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(a){return isObjectLike(a)&&hasOwnProperty$7.call(a,"callee")&&!propertyIsEnumerable$1.call(a,"callee")};const isArguments$1=isArguments;var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(a,_){var $=typeof a;return _=_??MAX_SAFE_INTEGER$1,!!_&&($=="number"||$!="symbol"&&reIsUint.test(a))&&a>-1&&a%1==0&&a<_}var MAX_SAFE_INTEGER=9007199254740991;function isLength(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=MAX_SAFE_INTEGER}var INFINITY$2=1/0;function toKey(a){if(typeof a=="string"||isSymbol(a))return a;var _=a+"";return _=="0"&&1/a==-INFINITY$2?"-0":_}function hasPath(a,_,$){_=castPath(_,a);for(var j=-1,_e=_.length,et=!1;++j<_e;){var tt=toKey(_[j]);if(!(et=a!=null&&$(a,tt)))break;a=a[tt]}return et||++j!=_e?et:(_e=a==null?0:a.length,!!_e&&isLength(_e)&&isIndex(tt,_e)&&(isArray$1(a)||isArguments$1(a)))}function apply(a,_,$){switch($.length){case 0:return a.call(_);case 1:return a.call(_,$[0]);case 2:return a.call(_,$[0],$[1]);case 3:return a.call(_,$[0],$[1],$[2])}return a.apply(_,$)}function last(a){var _=a==null?0:a.length;return _?a[_-1]:void 0}function baseGet(a,_){_=castPath(_,a);for(var $=0,j=_.length;a!=null&&$<j;)a=a[toKey(_[$++])];return $&&$==j?a:void 0}function baseSlice(a,_,$){var j=-1,_e=a.length;_<0&&(_=-_>_e?0:_e+_),$=$>_e?_e:$,$<0&&($+=_e),_e=_>$?0:$-_>>>0,_>>>=0;for(var et=Array(_e);++j<_e;)et[j]=a[j+_];return et}function parent(a,_){return _.length<2?a:baseGet(a,baseSlice(_,0,-1))}function baseInvoke(a,_,$){_=castPath(_,a),a=parent(a,_);var j=a==null?a:a[toKey(last(_))];return j==null?void 0:apply(j,a,$)}function identity(a){return a}var nativeMax$3=Math.max;function overRest(a,_,$){return _=nativeMax$3(_===void 0?a.length-1:_,0),function(){for(var j=arguments,_e=-1,et=nativeMax$3(j.length-_,0),tt=Array(et);++_e<et;)tt[_e]=j[_+_e];_e=-1;for(var rt=Array(_+1);++_e<_;)rt[_e]=j[_e];return rt[_]=$(tt),apply(a,this,rt)}}function constant(a){return function(){return a}}var defineProperty=function(){try{var a=getNative(Object,"defineProperty");return a({},"",{}),a}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(a,_){return defineProperty$1(a,"toString",{configurable:!0,enumerable:!1,value:constant(_),writable:!0})}:identity;const baseSetToString$1=baseSetToString;var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(a){var _=0,$=0;return function(){var j=nativeNow(),_e=HOT_SPAN-(j-$);if($=j,_e>0){if(++_>=HOT_COUNT)return arguments[0]}else _=0;return a.apply(void 0,arguments)}}var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function baseRest(a,_){return setToString$1(overRest(a,_,identity),a+"")}var invoke=baseRest(baseInvoke);const _invoke=invoke;function _assertThisInitialized(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function isUndefined(a){return a===void 0}var reWhitespace=/\s/;function trimmedEndIndex(a){for(var _=a.length;_--&&reWhitespace.test(a.charAt(_)););return _}var reTrimStart=/^\s+/;function baseTrim(a){return a&&a.slice(0,trimmedEndIndex(a)+1).replace(reTrimStart,"")}var NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(a){if(typeof a=="number")return a;if(isSymbol(a))return NAN;if(isObject(a)){var _=typeof a.valueOf=="function"?a.valueOf():a;a=isObject(_)?_+"":_}if(typeof a!="string")return a===0?a:+a;a=baseTrim(a);var $=reIsBinary.test(a);return $||reIsOctal.test(a)?freeParseInt(a.slice(2),$?2:8):reIsBadHex.test(a)?NAN:+a}var INFINITY$1=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(a){if(!a)return a===0?a:0;if(a=toNumber(a),a===INFINITY$1||a===-INFINITY$1){var _=a<0?-1:1;return _*MAX_INTEGER}return a===a?a:0}function toInteger(a){var _=toFinite(a),$=_%1;return _===_?$?_-$:_:0}function arrayFilter(a,_){for(var $=-1,j=a==null?0:a.length,_e=0,et=[];++$<j;){var tt=a[$];_(tt,$,a)&&(et[_e++]=tt)}return et}function createBaseFor(a){return function(_,$,j){for(var _e=-1,et=Object(_),tt=j(_),rt=tt.length;rt--;){var it=tt[a?rt:++_e];if($(et[it],it,et)===!1)break}return _}}var baseFor=createBaseFor();const baseFor$1=baseFor;function baseTimes(a,_){for(var $=-1,j=Array(a);++$<a;)j[$]=_($);return j}function stubFalse(){return!1}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,Buffer=moduleExports$1?root$1.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse;const isBuffer$1=isBuffer;var argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$1="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray(a){return isObjectLike(a)&&isLength(a.length)&&!!typedArrayTags[baseGetTag(a)]}function baseUnary(a){return function(_){return a(_)}}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal$1.process,nodeUtil=function(){try{var a=freeModule&&freeModule.require&&freeModule.require("util").types;return a||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$1=isTypedArray;var objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function arrayLikeKeys(a,_){var $=isArray$1(a),j=!$&&isArguments$1(a),_e=!$&&!j&&isBuffer$1(a),et=!$&&!j&&!_e&&isTypedArray$1(a),tt=$||j||_e||et,rt=tt?baseTimes(a.length,String):[],it=rt.length;for(var ct in a)(_||hasOwnProperty$6.call(a,ct))&&!(tt&&(ct=="length"||_e&&(ct=="offset"||ct=="parent")||et&&(ct=="buffer"||ct=="byteLength"||ct=="byteOffset")||isIndex(ct,it)))&&rt.push(ct);return rt}var objectProto$7=Object.prototype;function isPrototype(a){var _=a&&a.constructor,$=typeof _=="function"&&_.prototype||objectProto$7;return a===$}function overArg(a,_){return function($){return a(_($))}}var nativeKeys=overArg(Object.keys,Object);const nativeKeys$1=nativeKeys;var objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function baseKeys(a){if(!isPrototype(a))return nativeKeys$1(a);var _=[];for(var $ in Object(a))hasOwnProperty$5.call(a,$)&&$!="constructor"&&_.push($);return _}function isArrayLike(a){return a!=null&&isLength(a.length)&&!isFunction(a)}function keys$1(a){return isArrayLike(a)?arrayLikeKeys(a):baseKeys(a)}function baseForOwn(a,_){return a&&baseFor$1(a,_,keys$1)}function createBaseEach(a,_){return function($,j){if($==null)return $;if(!isArrayLike($))return a($,j);for(var _e=$.length,et=_?_e:-1,tt=Object($);(_?et--:++et<_e)&&j(tt[et],et,tt)!==!1;);return $}}var baseEach=createBaseEach(baseForOwn);const baseEach$1=baseEach;function baseFilter(a,_){var $=[];return baseEach$1(a,function(j,_e,et){_(j,_e,et)&&$.push(j)}),$}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(a){var _=this.__data__,$=_.delete(a);return this.size=_.size,$}function stackGet(a){return this.__data__.get(a)}function stackHas(a){return this.__data__.has(a)}var LARGE_ARRAY_SIZE$2=200;function stackSet(a,_){var $=this.__data__;if($ instanceof ListCache){var j=$.__data__;if(!Map$2||j.length<LARGE_ARRAY_SIZE$2-1)return j.push([a,_]),this.size=++$.size,this;$=this.__data__=new MapCache(j)}return $.set(a,_),this.size=$.size,this}function Stack(a){var _=this.__data__=new ListCache(a);this.size=_.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(a){return this.__data__.set(a,HASH_UNDEFINED),this}function setCacheHas(a){return this.__data__.has(a)}function SetCache(a){var _=-1,$=a==null?0:a.length;for(this.__data__=new MapCache;++_<$;)this.add(a[_])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(a,_){for(var $=-1,j=a==null?0:a.length;++$<j;)if(_(a[$],$,a))return!0;return!1}function cacheHas(a,_){return a.has(_)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(a,_,$,j,_e,et){var tt=$&COMPARE_PARTIAL_FLAG$5,rt=a.length,it=_.length;if(rt!=it&&!(tt&&it>rt))return!1;var ct=et.get(a),dt=et.get(_);if(ct&&dt)return ct==_&&dt==a;var mt=-1,vt=!0,wt=$&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(et.set(a,_),et.set(_,a);++mt<rt;){var xt=a[mt],bt=_[mt];if(j)var Et=tt?j(bt,xt,mt,_,a,et):j(xt,bt,mt,a,_,et);if(Et!==void 0){if(Et)continue;vt=!1;break}if(wt){if(!arraySome(_,function($t,At){if(!cacheHas(wt,At)&&(xt===$t||_e(xt,$t,$,j,et)))return wt.push(At)})){vt=!1;break}}else if(!(xt===bt||_e(xt,bt,$,j,et))){vt=!1;break}}return et.delete(a),et.delete(_),vt}var Uint8Array$1=root$1.Uint8Array;const Uint8Array$2=Uint8Array$1;function mapToArray(a){var _=-1,$=Array(a.size);return a.forEach(function(j,_e){$[++_]=[_e,j]}),$}function setToArray(a){var _=-1,$=Array(a.size);return a.forEach(function(j){$[++_]=j}),$}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$1="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag$3="[object Map]",numberTag$1="[object Number]",regexpTag="[object RegExp]",setTag$3="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(a,_,$,j,_e,et,tt){switch($){case dataViewTag$1:if(a.byteLength!=_.byteLength||a.byteOffset!=_.byteOffset)return!1;a=a.buffer,_=_.buffer;case arrayBufferTag:return!(a.byteLength!=_.byteLength||!et(new Uint8Array$2(a),new Uint8Array$2(_)));case boolTag$1:case dateTag:case numberTag$1:return eq(+a,+_);case errorTag:return a.name==_.name&&a.message==_.message;case regexpTag:case stringTag$1:return a==_+"";case mapTag$3:var rt=mapToArray;case setTag$3:var it=j&COMPARE_PARTIAL_FLAG$4;if(rt||(rt=setToArray),a.size!=_.size&&!it)return!1;var ct=tt.get(a);if(ct)return ct==_;j|=COMPARE_UNORDERED_FLAG$2,tt.set(a,_);var dt=equalArrays(rt(a),rt(_),j,_e,et,tt);return tt.delete(a),dt;case symbolTag:if(symbolValueOf)return symbolValueOf.call(a)==symbolValueOf.call(_)}return!1}function arrayPush(a,_){for(var $=-1,j=_.length,_e=a.length;++$<j;)a[_e+$]=_[$];return a}function baseGetAllKeys(a,_,$){var j=_(a);return isArray$1(a)?j:arrayPush(j,$(a))}function stubArray(){return[]}var objectProto$5=Object.prototype,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(a){return a==null?[]:(a=Object(a),arrayFilter(nativeGetSymbols(a),function(_){return propertyIsEnumerable.call(a,_)}))}:stubArray;const getSymbols$1=getSymbols;function getAllKeys(a){return baseGetAllKeys(a,keys$1,getSymbols$1)}var COMPARE_PARTIAL_FLAG$3=1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function equalObjects(a,_,$,j,_e,et){var tt=$&COMPARE_PARTIAL_FLAG$3,rt=getAllKeys(a),it=rt.length,ct=getAllKeys(_),dt=ct.length;if(it!=dt&&!tt)return!1;for(var mt=it;mt--;){var vt=rt[mt];if(!(tt?vt in _:hasOwnProperty$4.call(_,vt)))return!1}var wt=et.get(a),xt=et.get(_);if(wt&&xt)return wt==_&&xt==a;var bt=!0;et.set(a,_),et.set(_,a);for(var Et=tt;++mt<it;){vt=rt[mt];var $t=a[vt],At=_[vt];if(j)var Rt=tt?j(At,$t,vt,_,a,et):j($t,At,vt,a,_,et);if(!(Rt===void 0?$t===At||_e($t,At,$,j,et):Rt)){bt=!1;break}Et||(Et=vt=="constructor")}if(bt&&!Et){var Pt=a.constructor,Ct=_.constructor;Pt!=Ct&&"constructor"in a&&"constructor"in _&&!(typeof Pt=="function"&&Pt instanceof Pt&&typeof Ct=="function"&&Ct instanceof Ct)&&(bt=!1)}return et.delete(a),et.delete(_),bt}var DataView$1=getNative(root$1,"DataView");const DataView$2=DataView$1;var Promise$1=getNative(root$1,"Promise");const Promise$2=Promise$1;var Set$1=getNative(root$1,"Set");const Set$2=Set$1;var WeakMap$1=getNative(root$1,"WeakMap");const WeakMap$2=WeakMap$1;var mapTag$2="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$2="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView$2),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$2),weakMapCtorString=toSource(WeakMap$2),getTag=baseGetTag;(DataView$2&&getTag(new DataView$2(new ArrayBuffer(1)))!=dataViewTag||Map$2&&getTag(new Map$2)!=mapTag$2||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$2&&getTag(new Set$2)!=setTag$2||WeakMap$2&&getTag(new WeakMap$2)!=weakMapTag)&&(getTag=function(a){var _=baseGetTag(a),$=_==objectTag$2?a.constructor:void 0,j=$?toSource($):"";if(j)switch(j){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag$2;case promiseCtorString:return promiseTag;case setCtorString:return setTag$2;case weakMapCtorString:return weakMapTag}return _});const getTag$1=getTag;var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag$1="[object Object]",objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty;function baseIsEqualDeep(a,_,$,j,_e,et){var tt=isArray$1(a),rt=isArray$1(_),it=tt?arrayTag:getTag$1(a),ct=rt?arrayTag:getTag$1(_);it=it==argsTag?objectTag$1:it,ct=ct==argsTag?objectTag$1:ct;var dt=it==objectTag$1,mt=ct==objectTag$1,vt=it==ct;if(vt&&isBuffer$1(a)){if(!isBuffer$1(_))return!1;tt=!0,dt=!1}if(vt&&!dt)return et||(et=new Stack),tt||isTypedArray$1(a)?equalArrays(a,_,$,j,_e,et):equalByTag(a,_,it,$,j,_e,et);if(!($&COMPARE_PARTIAL_FLAG$2)){var wt=dt&&hasOwnProperty$3.call(a,"__wrapped__"),xt=mt&&hasOwnProperty$3.call(_,"__wrapped__");if(wt||xt){var bt=wt?a.value():a,Et=xt?_.value():_;return et||(et=new Stack),_e(bt,Et,$,j,et)}}return vt?(et||(et=new Stack),equalObjects(a,_,$,j,_e,et)):!1}function baseIsEqual(a,_,$,j,_e){return a===_?!0:a==null||_==null||!isObjectLike(a)&&!isObjectLike(_)?a!==a&&_!==_:baseIsEqualDeep(a,_,$,j,baseIsEqual,_e)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(a,_,$,j){var _e=$.length,et=_e,tt=!j;if(a==null)return!et;for(a=Object(a);_e--;){var rt=$[_e];if(tt&&rt[2]?rt[1]!==a[rt[0]]:!(rt[0]in a))return!1}for(;++_e<et;){rt=$[_e];var it=rt[0],ct=a[it],dt=rt[1];if(tt&&rt[2]){if(ct===void 0&&!(it in a))return!1}else{var mt=new Stack;if(j)var vt=j(ct,dt,it,a,_,mt);if(!(vt===void 0?baseIsEqual(dt,ct,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,j,mt):vt))return!1}}return!0}function isStrictComparable(a){return a===a&&!isObject(a)}function getMatchData(a){for(var _=keys$1(a),$=_.length;$--;){var j=_[$],_e=a[j];_[$]=[j,_e,isStrictComparable(_e)]}return _}function matchesStrictComparable(a,_){return function($){return $==null?!1:$[a]===_&&(_!==void 0||a in Object($))}}function baseMatches(a){var _=getMatchData(a);return _.length==1&&_[0][2]?matchesStrictComparable(_[0][0],_[0][1]):function($){return $===a||baseIsMatch($,a,_)}}function get(a,_,$){var j=a==null?void 0:baseGet(a,_);return j===void 0?$:j}function baseHasIn(a,_){return a!=null&&_ in Object(a)}function hasIn(a,_){return a!=null&&hasPath(a,_,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(a,_){return isKey(a)&&isStrictComparable(_)?matchesStrictComparable(toKey(a),_):function($){var j=get($,a);return j===void 0&&j===_?hasIn($,a):baseIsEqual(_,j,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(a){return function(_){return _==null?void 0:_[a]}}function basePropertyDeep(a){return function(_){return baseGet(_,a)}}function property(a){return isKey(a)?baseProperty(toKey(a)):basePropertyDeep(a)}function baseIteratee(a){return typeof a=="function"?a:a==null?identity:typeof a=="object"?isArray$1(a)?baseMatchesProperty(a[0],a[1]):baseMatches(a):property(a)}function filter(a,_){var $=isArray$1(a)?arrayFilter:baseFilter;return $(a,baseIteratee(_))}var mapTag$1="[object Map]",setTag$1="[object Set]",objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function isEmpty(a){if(a==null)return!0;if(isArrayLike(a)&&(isArray$1(a)||typeof a=="string"||typeof a.splice=="function"||isBuffer$1(a)||isTypedArray$1(a)||isArguments$1(a)))return!a.length;var _=getTag$1(a);if(_==mapTag$1||_==setTag$1)return!a.size;if(isPrototype(a))return!baseKeys(a).length;for(var $ in a)if(hasOwnProperty$2.call(a,$))return!1;return!0}function baseFindIndex(a,_,$,j){for(var _e=a.length,et=$+(j?1:-1);j?et--:++et<_e;)if(_(a[et],et,a))return et;return-1}function baseIsNaN(a){return a!==a}function strictIndexOf(a,_,$){for(var j=$-1,_e=a.length;++j<_e;)if(a[j]===_)return j;return-1}function baseIndexOf(a,_,$){return _===_?strictIndexOf(a,_,$):baseFindIndex(a,baseIsNaN,$)}function arrayIncludes(a,_){var $=a==null?0:a.length;return!!$&&baseIndexOf(a,_,0)>-1}function arrayIncludesWith(a,_,$){for(var j=-1,_e=a==null?0:a.length;++j<_e;)if($(_,a[j]))return!0;return!1}function isArrayLikeObject(a){return isObjectLike(a)&&isArrayLike(a)}function arrayEach(a,_){for(var $=-1,j=a==null?0:a.length;++$<j&&_(a[$],$,a)!==!1;);return a}function castFunction(a){return typeof a=="function"?a:identity}function forEach(a,_){var $=isArray$1(a)?arrayEach:baseEach$1;return $(a,castFunction(_))}var getDefaultPropName=function a(_){return"default"+(_[0].toUpperCase()+_.slice(1))},getAutoControlledStateValue=function a(_,$,j,_e){_e===void 0&&(_e=!1);var et=$[_];if(et!==void 0)return et;if(_e){var tt=$[getDefaultPropName(_)];if(tt!==void 0)return tt;if(j){var rt=j[_];if(rt!==void 0)return rt}}if(_==="checked")return!1;if(_==="value")return $.multiple?[]:""},ModernAutoControlledComponent=function(a){_inheritsLoose$6(_,a);function _(){for(var $,j=arguments.length,_e=new Array(j),et=0;et<j;et++)_e[et]=arguments[et];$=a.call.apply(a,[this].concat(_e))||this;var tt=$.constructor,rt=tt.autoControlledProps,it=tt.getAutoControlledStateFromProps,ct=_invoke(_assertThisInitialized($),"getInitialAutoControlledState",$.props)||{},dt=rt.reduce(function(mt,vt){return mt[vt]=getAutoControlledStateValue(vt,$.props,ct,!0),mt},{});return $.state=_extends$1({},ct,dt,{autoControlledProps:rt,getAutoControlledStateFromProps:it}),$}return _.getDerivedStateFromProps=function(j,_e){var et=_e.autoControlledProps,tt=_e.getAutoControlledStateFromProps,rt=et.reduce(function(ct,dt){var mt=!isUndefined(j[dt]);return mt&&(ct[dt]=j[dt]),ct},{});if(tt){var it=tt(j,_extends$1({},_e,rt),_e);return _extends$1({},rt,it)}return rt},_.getAutoControlledStateFromProps=function(){return null},_}(React$5.Component);function createFind(a){return function(_,$,j){var _e=Object(_);if(!isArrayLike(_)){var et=baseIteratee($);_=keys$1(_),$=function(rt){return et(_e[rt],rt,_e)}}var tt=a(_,$,j);return tt>-1?_e[et?_[tt]:tt]:void 0}}var nativeMax$2=Math.max;function findIndex(a,_,$){var j=a==null?0:a.length;if(!j)return-1;var _e=$==null?0:toInteger($);return _e<0&&(_e=nativeMax$2(j+_e,0)),baseFindIndex(a,baseIteratee(_),_e)}var find=createFind(findIndex);const _find=find;function baseSome(a,_){var $;return baseEach$1(a,function(j,_e,et){return $=_(j,_e,et),!$}),!!$}function isIterateeCall(a,_,$){if(!isObject($))return!1;var j=typeof _;return(j=="number"?isArrayLike($)&&isIndex(_,$.length):j=="string"&&_ in $)?eq($[_],a):!1}function some(a,_,$){var j=isArray$1(a)?arraySome:baseSome;return $&&isIterateeCall(a,_,$)&&(_=void 0),j(a,baseIteratee(_))}var someByType=function a(_,$){return some(reactExports.Children.toArray(_),{type:$})},isNil$1=function a(_){return _==null||Array.isArray(_)&&_.length===0},numberToWordMap={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};function numberToWord(a){var _=typeof a;return _==="string"||_==="number"?numberToWordMap[a]||a:""}var useKeyOnly=function a(_,$){return _&&$},useValueAndKey=function a(_,$){return _&&_!==!0&&_+" "+$},useKeyOrValueAndKey=function a(_,$){return _&&(_===!0?$:_+" "+$)},useTextAlignProp=function a(_){return _==="justified"?"justified":useValueAndKey(_,"aligned")},useVerticalAlignProp=function a(_){return useValueAndKey(_,"aligned")},useWidthProp=function a(_,$,j){if($===void 0&&($=""),j===void 0&&(j=!1),j&&_==="equal")return"equal width";var _e=typeof _;return(_e==="string"||_e==="number")&&$?numberToWord(_)+" "+$:numberToWord(_)},LARGE_ARRAY_SIZE$1=200;function baseDifference(a,_,$,j){var _e=-1,et=arrayIncludes,tt=!0,rt=a.length,it=[],ct=_.length;if(!rt)return it;$&&(_=arrayMap(_,baseUnary($))),j?(et=arrayIncludesWith,tt=!1):_.length>=LARGE_ARRAY_SIZE$1&&(et=cacheHas,tt=!1,_=new SetCache(_));e:for(;++_e<rt;){var dt=a[_e],mt=$==null?dt:$(dt);if(dt=j||dt!==0?dt:0,tt&&mt===mt){for(var vt=ct;vt--;)if(_[vt]===mt)continue e;it.push(dt)}else et(_,mt,j)||it.push(dt)}return it}var spreadableSymbol=Symbol$2?Symbol$2.isConcatSpreadable:void 0;function isFlattenable(a){return isArray$1(a)||isArguments$1(a)||!!(spreadableSymbol&&a&&a[spreadableSymbol])}function baseFlatten(a,_,$,j,_e){var et=-1,tt=a.length;for($||($=isFlattenable),_e||(_e=[]);++et<tt;){var rt=a[et];_>0&&$(rt)?_>1?baseFlatten(rt,_-1,$,j,_e):arrayPush(_e,rt):j||(_e[_e.length]=rt)}return _e}var difference=baseRest(function(a,_){return isArrayLikeObject(a)?baseDifference(a,baseFlatten(_,1,isArrayLikeObject,!0)):[]});const _difference=difference;var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsZWJ$1="\\u200d",reHasUnicode=RegExp("["+rsZWJ$1+rsAstralRange$1+rsComboRange$2+rsVarRange$1+"]");function hasUnicode(a){return reHasUnicode.test(a)}function baseAssignValue(a,_,$){_=="__proto__"&&defineProperty$1?defineProperty$1(a,_,{configurable:!0,enumerable:!0,value:$,writable:!0}):a[_]=$}var objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function assignValue(a,_,$){var j=a[_];(!(hasOwnProperty$1.call(a,_)&&eq(j,$))||$===void 0&&!(_ in a))&&baseAssignValue(a,_,$)}function baseSet(a,_,$,j){if(!isObject(a))return a;_=castPath(_,a);for(var _e=-1,et=_.length,tt=et-1,rt=a;rt!=null&&++_e<et;){var it=toKey(_[_e]),ct=$;if(it==="__proto__"||it==="constructor"||it==="prototype")return a;if(_e!=tt){var dt=rt[it];ct=j?j(dt,it,rt):void 0,ct===void 0&&(ct=isObject(dt)?dt:isIndex(_[_e+1])?[]:{})}assignValue(rt,it,ct),rt=rt[it]}return a}function basePickBy(a,_,$){for(var j=-1,_e=_.length,et={};++j<_e;){var tt=_[j],rt=baseGet(a,tt);$(rt,tt)&&baseSet(et,castPath(tt,a),rt)}return et}function basePick(a,_){return basePickBy(a,_,function($,j){return hasIn(a,j)})}function flatten(a){var _=a==null?0:a.length;return _?baseFlatten(a,1):[]}function flatRest(a){return setToString$1(overRest(a,void 0,flatten),a+"")}var pick$1=flatRest(function(a,_){return a==null?{}:basePick(a,_)});const _pick=pick$1;var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject(a){if(!isObjectLike(a)||baseGetTag(a)!=objectTag)return!1;var _=getPrototype$1(a);if(_===null)return!0;var $=hasOwnProperty.call(_,"constructor")&&_.constructor;return typeof $=="function"&&$ instanceof $&&funcToString.call($)==objectCtorString}function isNil(a){return a==null}function baseMap(a,_){var $=-1,j=isArrayLike(a)?Array(a.length):[];return baseEach$1(a,function(_e,et,tt){j[++$]=_(_e,et,tt)}),j}function map(a,_){var $=isArray$1(a)?arrayMap:baseMap;return $(a,baseIteratee(_))}var libExports=requireLib$1();const EventStack=getDefaultExportFromCjs$1(libExports);function noop(){}var INFINITY=1/0,createSet=Set$2&&1/setToArray(new Set$2([,-0]))[1]==INFINITY?function(a){return new Set$2(a)}:noop;const createSet$1=createSet;var LARGE_ARRAY_SIZE=200;function baseUniq(a,_,$){var j=-1,_e=arrayIncludes,et=a.length,tt=!0,rt=[],it=rt;if($)tt=!1,_e=arrayIncludesWith;else if(et>=LARGE_ARRAY_SIZE){var ct=_?null:createSet$1(a);if(ct)return setToArray(ct);tt=!1,_e=cacheHas,it=new SetCache}else it=_?[]:rt;e:for(;++j<et;){var dt=a[j],mt=_?_(dt):dt;if(dt=$||dt!==0?dt:0,tt&&mt===mt){for(var vt=it.length;vt--;)if(it[vt]===mt)continue e;_&&it.push(mt),rt.push(dt)}else _e(it,mt,$)||(it!==rt&&it.push(mt),rt.push(dt))}return rt}function uniq(a){return a&&a.length?baseUniq(a):[]}var numberTag="[object Number]";function isNumber(a){return typeof a=="number"||isObjectLike(a)&&baseGetTag(a)==numberTag}var stringTag="[object String]";function isString(a){return typeof a=="string"||!isArray$1(a)&&isObjectLike(a)&&baseGetTag(a)==stringTag}var boolTag="[object Boolean]";function isBoolean(a){return a===!0||a===!1||isObjectLike(a)&&baseGetTag(a)==boolTag}function createShorthand(a,_,$,j){if(j===void 0&&(j={}),typeof a!="function"&&typeof a!="string")throw new Error("createShorthand() Component must be a string or function.");if(isNil($)||isBoolean($))return null;var _e=isString($),et=isNumber($),tt=isFunction($),rt=reactExports.isValidElement($),it=isPlainObject($),ct=_e||et||isArray$1($);if(!tt&&!rt&&!it&&!ct)return null;var dt=j,mt=dt.defaultProps,vt=mt===void 0?{}:mt,wt=rt&&$.props||it&&$||ct&&_($),xt=j,bt=xt.overrideProps,Et=bt===void 0?{}:bt;Et=isFunction(Et)?Et(_extends$1({},vt,wt)):Et;var $t=_extends$1({},vt,wt,Et);if(vt.className||Et.className||wt.className){var At=clsx(vt.className,Et.className,wt.className);$t.className=uniq(At.split(" ")).join(" ")}if((vt.style||Et.style||wt.style)&&($t.style=_extends$1({},vt.style,wt.style,Et.style)),isNil($t.key)){var Rt=$t.childKey,Pt=j,Ct=Pt.autoGenerateKey,Ot=Ct===void 0?!0:Ct;isNil(Rt)?Ot&&(_e||et)&&($t.key=$):($t.key=typeof Rt=="function"?Rt($t):Rt,delete $t.childKey)}if(rt)return reactExports.cloneElement($,$t);if(typeof $t.children=="function")return $t.children(a,_extends$1({},$t,{children:void 0}));if(ct||it)return reactExports.createElement(a,$t);if(tt)return $(a,$t,$t.children)}function createShorthandFactory(a,_){if(typeof a!="function"&&typeof a!="string")throw new Error("createShorthandFactory() Component must be a string or function.");return function($,j){return createShorthand(a,_,$,j)}}var createHTMLInput=createShorthandFactory("input",function(a){return{type:a}}),createHTMLLabel=createShorthandFactory("label",function(a){return{children:a}}),getUnhandledProps=function a(_,$){var j=_.handledProps,_e=j===void 0?[]:j;return Object.keys($).reduce(function(et,tt){return tt==="childKey"||_e.indexOf(tt)===-1&&(et[tt]=$[tt]),et},{})};const getUnhandledProps$1=getUnhandledProps;function getElementType(a,_,$){var j=a.defaultProps,_e=j===void 0?{}:j;if(_.as&&_.as!==_e.as)return _.as;if($){var et=$();if(et)return et}return _.href?"a":_e.as||"div"}function baseValues(a,_){return arrayMap(_,function($){return a[$]})}function values(a){return a==null?[]:baseValues(a,keys$1(a))}var nativeMax$1=Math.max;function includes(a,_,$,j){a=isArrayLike(a)?a:values(a),$=$&&!j?toInteger($):0;var _e=a.length;return $<0&&($=nativeMax$1(_e+$,0)),isString(a)?$<=_e&&a.indexOf(_,$)>-1:!!_e&&baseIndexOf(a,_,$)>-1}var htmlInputAttrs=["selected","defaultValue","defaultChecked","accept","autoCapitalize","autoComplete","autoCorrect","autoFocus","checked","disabled","enterKeyHint","form","id","inputMode","lang","list","max","maxLength","min","minLength","multiple","name","pattern","placeholder","readOnly","required","step","title","type","value"],htmlInputEvents=["onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onClick","onContextMenu","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],htmlInputProps=[].concat(htmlInputAttrs,htmlInputEvents),htmlImageProps=["alt","height","src","srcSet","width","loading"],partitionHTMLProps=function a(_,$){$===void 0&&($={});var j=$,_e=j.htmlProps,et=_e===void 0?htmlInputProps:_e,tt=j.includeAria,rt=tt===void 0?!0:tt,it={},ct={};return forEach(_,function(dt,mt){var vt=rt&&(/^aria-.*$/.test(mt)||mt==="role"),wt=includes(et,mt)||vt?it:ct;wt[mt]=dt}),[it,ct]},hasDocument=typeof document=="object"&&document!==null,hasWindow=typeof window=="object"&&window!==null&&window.self===window,isBrowser=function a(){return isNil(a.override)?hasDocument&&hasWindow:a.override};const isBrowser$1=isBrowser;var nativeMax=Math.max,nativeMin=Math.min;function baseInRange(a,_,$){return a>=nativeMin(_,$)&&a<nativeMax(_,$)}function inRange(a,_,$){return _=toFinite(_),$===void 0?($=_,_=0):$=toFinite($),a=toNumber(a),baseInRange(a,_,$)}function head(a){return a&&a.length?a[0]:void 0}var doesNodeContainClick=function a(_,$){if(some([$,_],isNil))return!1;if($.target&&(_invoke($.target,"setAttribute","data-suir-click-target",!0),document.querySelector("[data-suir-click-target=true]")))return _invoke($.target,"removeAttribute","data-suir-click-target"),_.contains($.target);var j=$.clientX,_e=$.clientY;if(some([j,_e],isNil))return!1;var et=_.getClientRects();if(!_.offsetWidth||!_.offsetHeight||!et||!et.length)return!1;var tt=head(et),rt=tt.top,it=tt.bottom,ct=tt.left,dt=tt.right;return some([rt,it,ct,dt],isNil)?!1:inRange(_e,rt,it+.001)&&inRange(j,ct,dt+.001)};const doesNodeContainClick$1=doesNodeContainClick;function isEqual(a,_){return baseIsEqual(a,_)}var without=baseRest(function(a,_){return isArrayLikeObject(a)?baseDifference(a,_):[]});const _without=without;function IconGroup(a){var _=a.children,$=a.className,j=a.content,_e=a.size,et=clsx(_e,"icons",$),tt=getUnhandledProps$1(IconGroup,a),rt=getElementType(IconGroup,a);return React$5.createElement(rt,_extends$1({},tt,{className:et}),isNil$1(_)?j:_)}IconGroup.handledProps=["as","children","className","content","size"];IconGroup.propTypes={};IconGroup.defaultProps={as:"i"};var Icon$1=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.handleClick=function(rt){var it=j.props.disabled;if(it){rt.preventDefault();return}_invoke(j.props,"onClick",rt,j.props)},j}var $=_.prototype;return $.getIconAriaOptions=function(){var _e={},et=this.props,tt=et["aria-label"],rt=et["aria-hidden"];return isNil(tt)?_e["aria-hidden"]="true":_e["aria-label"]=tt,isNil(rt)||(_e["aria-hidden"]=rt),_e},$.render=function(){var _e=this.props,et=_e.bordered,tt=_e.circular,rt=_e.className,it=_e.color,ct=_e.corner,dt=_e.disabled,mt=_e.fitted,vt=_e.flipped,wt=_e.inverted,xt=_e.link,bt=_e.loading,Et=_e.name,$t=_e.rotated,At=_e.size,Rt=clsx(it,Et,At,useKeyOnly(et,"bordered"),useKeyOnly(tt,"circular"),useKeyOnly(dt,"disabled"),useKeyOnly(mt,"fitted"),useKeyOnly(wt,"inverted"),useKeyOnly(xt,"link"),useKeyOnly(bt,"loading"),useKeyOrValueAndKey(ct,"corner"),useValueAndKey(vt,"flipped"),useValueAndKey($t,"rotated"),"icon",rt),Pt=getUnhandledProps$1(_,this.props),Ct=getElementType(_,this.props),Ot=this.getIconAriaOptions();return React$5.createElement(Ct,_extends$1({},Pt,Ot,{className:Rt,onClick:this.handleClick}))},_}(reactExports.PureComponent);Icon$1.handledProps=["aria-hidden","aria-label","as","bordered","circular","className","color","corner","disabled","fitted","flipped","inverted","link","loading","name","rotated","size"];Icon$1.propTypes={};Icon$1.defaultProps={as:"i"};Icon$1.Group=IconGroup;Icon$1.create=createShorthandFactory(Icon$1,function(a){return{name:a}});const Icon$2=Icon$1;var keyboardKeyExports=requireKeyboardKey();const keyboardKey=getDefaultExportFromCjs$1(keyboardKeyExports);var PortalInner=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.handleRef=function(rt){handleRef(j.props.innerRef,rt)},j}var $=_.prototype;return $.componentDidMount=function(){_invoke(this.props,"onMount",null,this.props)},$.componentWillUnmount=function(){_invoke(this.props,"onUnmount",null,this.props)},$.render=function(){if(!isBrowser$1())return null;var _e=this.props,et=_e.children,tt=_e.mountNode,rt=tt===void 0?document.body:tt;return reactDomExports.createPortal(React$5.createElement(Ref,{innerRef:this.handleRef},et),rt)},_}(reactExports.Component);PortalInner.handledProps=["children","innerRef","mountNode","onMount","onUnmount"];PortalInner.propTypes={};const PortalInner$1=PortalInner;var Portal=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.contentRef=React$5.createRef(),j.triggerRef=React$5.createRef(),j.latestDocumentMouseDownEvent=null,j.handleDocumentMouseDown=function(rt){j.latestDocumentMouseDownEvent=rt},j.handleDocumentClick=function(rt){var it=j.props.closeOnDocumentClick,ct=j.latestDocumentMouseDownEvent;j.latestDocumentMouseDownEvent=null,!(!j.contentRef.current||doesNodeContainClick$1(j.triggerRef.current,rt)||ct&&doesNodeContainClick$1(j.contentRef.current,ct)||doesNodeContainClick$1(j.contentRef.current,rt))&&it&&j.close(rt)},j.handleEscape=function(rt){j.props.closeOnEscape&&keyboardKey.getCode(rt)===keyboardKey.Escape&&j.close(rt)},j.handlePortalMouseLeave=function(rt){var it=j.props,ct=it.closeOnPortalMouseLeave,dt=it.mouseLeaveDelay;ct&&rt.target===j.contentRef.current&&(j.mouseLeaveTimer=j.closeWithTimeout(rt,dt))},j.handlePortalMouseEnter=function(){var rt=j.props.closeOnPortalMouseLeave;rt&&clearTimeout(j.mouseLeaveTimer)},j.handleTriggerBlur=function(rt){for(var it=j.props,ct=it.trigger,dt=it.closeOnTriggerBlur,mt=arguments.length,vt=new Array(mt>1?mt-1:0),wt=1;wt<mt;wt++)vt[wt-1]=arguments[wt];_invoke.apply(void 0,[ct,"props.onBlur",rt].concat(vt));var xt=rt.relatedTarget||document.activeElement,bt=_invoke(j.contentRef.current,"contains",xt);!dt||bt||j.close(rt)},j.handleTriggerClick=function(rt){for(var it=j.props,ct=it.trigger,dt=it.closeOnTriggerClick,mt=it.openOnTriggerClick,vt=j.state.open,wt=arguments.length,xt=new Array(wt>1?wt-1:0),bt=1;bt<wt;bt++)xt[bt-1]=arguments[bt];_invoke.apply(void 0,[ct,"props.onClick",rt].concat(xt)),vt&&dt?j.close(rt):!vt&&mt&&j.open(rt)},j.handleTriggerFocus=function(rt){for(var it=j.props,ct=it.trigger,dt=it.openOnTriggerFocus,mt=arguments.length,vt=new Array(mt>1?mt-1:0),wt=1;wt<mt;wt++)vt[wt-1]=arguments[wt];_invoke.apply(void 0,[ct,"props.onFocus",rt].concat(vt)),dt&&j.open(rt)},j.handleTriggerMouseLeave=function(rt){clearTimeout(j.mouseEnterTimer);for(var it=j.props,ct=it.trigger,dt=it.closeOnTriggerMouseLeave,mt=it.mouseLeaveDelay,vt=arguments.length,wt=new Array(vt>1?vt-1:0),xt=1;xt<vt;xt++)wt[xt-1]=arguments[xt];_invoke.apply(void 0,[ct,"props.onMouseLeave",rt].concat(wt)),dt&&(j.mouseLeaveTimer=j.closeWithTimeout(rt,mt))},j.handleTriggerMouseEnter=function(rt){clearTimeout(j.mouseLeaveTimer);for(var it=j.props,ct=it.trigger,dt=it.mouseEnterDelay,mt=it.openOnTriggerMouseEnter,vt=arguments.length,wt=new Array(vt>1?vt-1:0),xt=1;xt<vt;xt++)wt[xt-1]=arguments[xt];_invoke.apply(void 0,[ct,"props.onMouseEnter",rt].concat(wt)),mt&&(j.mouseEnterTimer=j.openWithTimeout(rt,dt))},j.open=function(rt){_invoke(j.props,"onOpen",rt,_extends$1({},j.props,{open:!0})),j.setState({open:!0})},j.openWithTimeout=function(rt,it){var ct=_extends$1({},rt);return setTimeout(function(){return j.open(ct)},it||0)},j.close=function(rt){j.setState({open:!1}),_invoke(j.props,"onClose",rt,_extends$1({},j.props,{open:!1}))},j.closeWithTimeout=function(rt,it){var ct=_extends$1({},rt);return setTimeout(function(){return j.close(ct)},it||0)},j.handleMount=function(){_invoke(j.props,"onMount",null,j.props)},j.handleUnmount=function(){_invoke(j.props,"onUnmount",null,j.props)},j.handleTriggerRef=function(rt){j.triggerRef.current=rt,handleRef(j.props.triggerRef,rt)},j}var $=_.prototype;return $.componentWillUnmount=function(){clearTimeout(this.mouseEnterTimer),clearTimeout(this.mouseLeaveTimer)},$.render=function(){var _e=this.props,et=_e.children,tt=_e.eventPool,rt=_e.mountNode,it=_e.trigger,ct=this.state.open;return React$5.createElement(React$5.Fragment,null,ct&&React$5.createElement(React$5.Fragment,null,React$5.createElement(PortalInner$1,{innerRef:this.contentRef,mountNode:rt,onMount:this.handleMount,onUnmount:this.handleUnmount},et),React$5.createElement(EventStack,{name:"mouseleave",on:this.handlePortalMouseLeave,pool:tt,target:this.contentRef}),React$5.createElement(EventStack,{name:"mouseenter",on:this.handlePortalMouseEnter,pool:tt,target:this.contentRef}),React$5.createElement(EventStack,{name:"mousedown",on:this.handleDocumentMouseDown,pool:tt}),React$5.createElement(EventStack,{name:"click",on:this.handleDocumentClick,pool:tt}),React$5.createElement(EventStack,{name:"keydown",on:this.handleEscape,pool:tt})),it&&React$5.createElement(Ref,{innerRef:this.handleTriggerRef},React$5.cloneElement(it,{onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onMouseLeave:this.handleTriggerMouseLeave,onMouseEnter:this.handleTriggerMouseEnter})))},_}(ModernAutoControlledComponent);Portal.handledProps=["children","closeOnDocumentClick","closeOnEscape","closeOnPortalMouseLeave","closeOnTriggerBlur","closeOnTriggerClick","closeOnTriggerMouseLeave","defaultOpen","eventPool","mountNode","mouseEnterDelay","mouseLeaveDelay","onClose","onMount","onOpen","onUnmount","open","openOnTriggerClick","openOnTriggerFocus","openOnTriggerMouseEnter","trigger","triggerRef"];Portal.propTypes={};Portal.defaultProps={closeOnDocumentClick:!0,closeOnEscape:!0,eventPool:"default",openOnTriggerClick:!0};Portal.autoControlledProps=["open"];Portal.Inner=PortalInner$1;const Portal$1=Portal;function DimmerDimmable(a){var _=a.blurring,$=a.className,j=a.children,_e=a.content,et=a.dimmed,tt=clsx(useKeyOnly(_,"blurring"),useKeyOnly(et,"dimmed"),"dimmable",$),rt=getUnhandledProps$1(DimmerDimmable,a),it=getElementType(DimmerDimmable,a);return React$5.createElement(it,_extends$1({},rt,{className:tt}),isNil$1(j)?_e:j)}DimmerDimmable.handledProps=["as","blurring","children","className","content","dimmed"];DimmerDimmable.propTypes={};var DimmerInner=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.containerRef=reactExports.createRef(),j.contentRef=reactExports.createRef(),j.handleClick=function(rt){var it=j.contentRef.current;_invoke(j.props,"onClick",rt,j.props),!(it&&it!==rt.target&&doesNodeContainClick$1(it,rt))&&_invoke(j.props,"onClickOutside",rt,j.props)},j}var $=_.prototype;return $.componentDidMount=function(){var _e=this.props.active;this.toggleStyles(_e)},$.componentDidUpdate=function(_e){var et=this.props.active,tt=_e.active;tt!==et&&this.toggleStyles(et)},$.toggleStyles=function(_e){var et=this.containerRef.current;!et||!et.style||(_e?et.style.setProperty("display","flex","important"):et.style.removeProperty("display"))},$.render=function(){var _e=this.props,et=_e.active,tt=_e.children,rt=_e.className,it=_e.content,ct=_e.disabled,dt=_e.inverted,mt=_e.page,vt=_e.simple,wt=_e.verticalAlign,xt=clsx("ui",useKeyOnly(et,"active transition visible"),useKeyOnly(ct,"disabled"),useKeyOnly(dt,"inverted"),useKeyOnly(mt,"page"),useKeyOnly(vt,"simple"),useVerticalAlignProp(wt),"dimmer",rt),bt=getUnhandledProps$1(_,this.props),Et=getElementType(_,this.props),$t=isNil$1(tt)?it:tt;return React$5.createElement(Ref,{innerRef:this.containerRef},React$5.createElement(Et,_extends$1({},bt,{className:xt,onClick:this.handleClick}),$t&&React$5.createElement("div",{className:"content",ref:this.contentRef},$t)))},_}(reactExports.Component);DimmerInner.handledProps=["active","as","children","className","content","disabled","inverted","onClick","onClickOutside","page","simple","verticalAlign"];DimmerInner.propTypes={};var Dimmer=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.handlePortalMount=function(){isBrowser$1()&&(document.body.classList.add("dimmed"),document.body.classList.add("dimmable"))},j.handlePortalUnmount=function(){isBrowser$1()&&(document.body.classList.remove("dimmed"),document.body.classList.remove("dimmable"))},j}var $=_.prototype;return $.render=function(){var _e=this.props,et=_e.active,tt=_e.page,rt=getUnhandledProps$1(_,this.props);return tt?React$5.createElement(Portal$1,{closeOnEscape:!1,closeOnDocumentClick:!1,onMount:this.handlePortalMount,onUnmount:this.handlePortalUnmount,open:et,openOnTriggerClick:!1},React$5.createElement(DimmerInner,_extends$1({},rt,{active:et,page:tt}))):React$5.createElement(DimmerInner,_extends$1({},rt,{active:et,page:tt}))},_}(reactExports.Component);Dimmer.handledProps=["active","page"];Dimmer.propTypes={};Dimmer.Dimmable=DimmerDimmable;Dimmer.Inner=DimmerInner;Dimmer.create=createShorthandFactory(Dimmer,function(a){return{content:a}});function ImageGroup(a){var _=a.children,$=a.className,j=a.content,_e=a.size,et=clsx("ui",_e,$,"images"),tt=getUnhandledProps$1(ImageGroup,a),rt=getElementType(ImageGroup,a);return React$5.createElement(rt,_extends$1({},tt,{className:et}),isNil$1(_)?j:_)}ImageGroup.handledProps=["as","children","className","content","size"];ImageGroup.propTypes={};function Image$1(a){var _=a.avatar,$=a.bordered,j=a.centered,_e=a.children,et=a.circular,tt=a.className,rt=a.content,it=a.dimmer,ct=a.disabled,dt=a.floated,mt=a.fluid,vt=a.hidden,wt=a.href,xt=a.inline,bt=a.label,Et=a.rounded,$t=a.size,At=a.spaced,Rt=a.verticalAlign,Pt=a.wrapped,Ct=a.ui,Ot=clsx(useKeyOnly(Ct,"ui"),$t,useKeyOnly(_,"avatar"),useKeyOnly($,"bordered"),useKeyOnly(et,"circular"),useKeyOnly(j,"centered"),useKeyOnly(ct,"disabled"),useKeyOnly(mt,"fluid"),useKeyOnly(vt,"hidden"),useKeyOnly(xt,"inline"),useKeyOnly(Et,"rounded"),useKeyOrValueAndKey(At,"spaced"),useValueAndKey(dt,"floated"),useVerticalAlignProp(Rt),"image",tt),kt=getUnhandledProps$1(Image$1,a),Dt=partitionHTMLProps(kt,{htmlProps:htmlImageProps}),Nt=Dt[0],zt=Dt[1],gt=getElementType(Image$1,a,function(){if(!isNil(it)||!isNil(bt)||!isNil(Pt)||!isNil$1(_e))return"div"});return isNil$1(_e)?isNil$1(rt)?gt==="img"?React$5.createElement(gt,_extends$1({},zt,Nt,{className:Ot})):React$5.createElement(gt,_extends$1({},zt,{className:Ot,href:wt}),Dimmer.create(it,{autoGenerateKey:!1}),Label$1.create(bt,{autoGenerateKey:!1}),React$5.createElement("img",Nt)):React$5.createElement(gt,_extends$1({},kt,{className:Ot}),rt):React$5.createElement(gt,_extends$1({},kt,{className:Ot}),_e)}Image$1.handledProps=["as","avatar","bordered","centered","children","circular","className","content","dimmer","disabled","floated","fluid","hidden","href","inline","label","rounded","size","spaced","ui","verticalAlign","wrapped"];Image$1.Group=ImageGroup;Image$1.propTypes={};Image$1.defaultProps={as:"img",ui:!0};Image$1.create=createShorthandFactory(Image$1,function(a){return{src:a}});function LabelDetail(a){var _=a.children,$=a.className,j=a.content,_e=clsx("detail",$),et=getUnhandledProps$1(LabelDetail,a),tt=getElementType(LabelDetail,a);return React$5.createElement(tt,_extends$1({},et,{className:_e}),isNil$1(_)?j:_)}LabelDetail.handledProps=["as","children","className","content"];LabelDetail.propTypes={};LabelDetail.create=createShorthandFactory(LabelDetail,function(a){return{content:a}});function LabelGroup(a){var _=a.children,$=a.circular,j=a.className,_e=a.color,et=a.content,tt=a.size,rt=a.tag,it=clsx("ui",_e,tt,useKeyOnly($,"circular"),useKeyOnly(rt,"tag"),"labels",j),ct=getUnhandledProps$1(LabelGroup,a),dt=getElementType(LabelGroup,a);return React$5.createElement(dt,_extends$1({},ct,{className:it}),isNil$1(_)?et:_)}LabelGroup.handledProps=["as","children","circular","className","color","content","size","tag"];LabelGroup.propTypes={};var Label$1=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.handleClick=function(rt){var it=j.props.onClick;it&&it(rt,j.props)},j.handleIconOverrides=function(rt){return{onClick:function(ct){_invoke(rt,"onClick",ct),_invoke(j.props,"onRemove",ct,j.props)}}},j}var $=_.prototype;return $.render=function(){var _e=this.props,et=_e.active,tt=_e.attached,rt=_e.basic,it=_e.children,ct=_e.circular,dt=_e.className,mt=_e.color,vt=_e.content,wt=_e.corner,xt=_e.detail,bt=_e.empty,Et=_e.floating,$t=_e.horizontal,At=_e.icon,Rt=_e.image,Pt=_e.onRemove,Ct=_e.pointing,Ot=_e.prompt,kt=_e.removeIcon,Dt=_e.ribbon,Nt=_e.size,zt=_e.tag,gt=Ct===!0&&"pointing"||(Ct==="left"||Ct==="right")&&Ct+" pointing"||(Ct==="above"||Ct==="below")&&"pointing "+Ct,nt=clsx("ui",mt,gt,Nt,useKeyOnly(et,"active"),useKeyOnly(rt,"basic"),useKeyOnly(ct,"circular"),useKeyOnly(bt,"empty"),useKeyOnly(Et,"floating"),useKeyOnly($t,"horizontal"),useKeyOnly(Rt===!0,"image"),useKeyOnly(Ot,"prompt"),useKeyOnly(zt,"tag"),useKeyOrValueAndKey(wt,"corner"),useKeyOrValueAndKey(Dt,"ribbon"),useValueAndKey(tt,"attached"),"label",dt),ot=getUnhandledProps$1(_,this.props),st=getElementType(_,this.props);if(!isNil$1(it))return React$5.createElement(st,_extends$1({},ot,{className:nt,onClick:this.handleClick}),it);var lt=isUndefined(kt)?"delete":kt;return React$5.createElement(st,_extends$1({className:nt,onClick:this.handleClick},ot),Icon$2.create(At,{autoGenerateKey:!1}),typeof Rt!="boolean"&&Image$1.create(Rt,{autoGenerateKey:!1}),vt,LabelDetail.create(xt,{autoGenerateKey:!1}),Pt&&Icon$2.create(lt,{autoGenerateKey:!1,overrideProps:this.handleIconOverrides}))},_}(reactExports.Component);Label$1.handledProps=["active","as","attached","basic","children","circular","className","color","content","corner","detail","empty","floating","horizontal","icon","image","onClick","onRemove","pointing","prompt","removeIcon","ribbon","size","tag"];Label$1.propTypes={};Label$1.Detail=LabelDetail;Label$1.Group=LabelGroup;Label$1.create=createShorthandFactory(Label$1,function(a){return{content:a}});function ButtonContent(a){var _=a.children,$=a.className,j=a.content,_e=a.hidden,et=a.visible,tt=clsx(useKeyOnly(et,"visible"),useKeyOnly(_e,"hidden"),"content",$),rt=getUnhandledProps$1(ButtonContent,a),it=getElementType(ButtonContent,a);return React$5.createElement(it,_extends$1({},rt,{className:tt}),isNil$1(_)?j:_)}ButtonContent.handledProps=["as","children","className","content","hidden","visible"];ButtonContent.propTypes={};function ButtonGroup(a){var _=a.attached,$=a.basic,j=a.buttons,_e=a.children,et=a.className,tt=a.color,rt=a.compact,it=a.content,ct=a.floated,dt=a.fluid,mt=a.icon,vt=a.inverted,wt=a.labeled,xt=a.negative,bt=a.positive,Et=a.primary,$t=a.secondary,At=a.size,Rt=a.toggle,Pt=a.vertical,Ct=a.widths,Ot=clsx("ui",tt,At,useKeyOnly($,"basic"),useKeyOnly(rt,"compact"),useKeyOnly(dt,"fluid"),useKeyOnly(mt,"icon"),useKeyOnly(vt,"inverted"),useKeyOnly(wt,"labeled"),useKeyOnly(xt,"negative"),useKeyOnly(bt,"positive"),useKeyOnly(Et,"primary"),useKeyOnly($t,"secondary"),useKeyOnly(Rt,"toggle"),useKeyOnly(Pt,"vertical"),useKeyOrValueAndKey(_,"attached"),useValueAndKey(ct,"floated"),useWidthProp(Ct),"buttons",et),kt=getUnhandledProps$1(ButtonGroup,a),Dt=getElementType(ButtonGroup,a);return isNil(j)?React$5.createElement(Dt,_extends$1({},kt,{className:Ot}),isNil$1(_e)?it:_e):React$5.createElement(Dt,_extends$1({},kt,{className:Ot}),map(j,function(Nt){return Button$2.create(Nt)}))}ButtonGroup.handledProps=["as","attached","basic","buttons","children","className","color","compact","content","floated","fluid","icon","inverted","labeled","negative","positive","primary","secondary","size","toggle","vertical","widths"];ButtonGroup.propTypes={};function ButtonOr(a){var _=a.className,$=a.text,j=clsx("or",_),_e=getUnhandledProps$1(ButtonOr,a),et=getElementType(ButtonOr,a);return React$5.createElement(et,_extends$1({},_e,{className:j,"data-text":$}))}ButtonOr.handledProps=["as","className","text"];ButtonOr.propTypes={};var Button$1=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.ref=reactExports.createRef(),j.computeElementType=function(){var rt=j.props,it=rt.attached,ct=rt.label;if(!isNil(it)||!isNil(ct))return"div"},j.computeTabIndex=function(rt){var it=j.props,ct=it.disabled,dt=it.tabIndex;if(!isNil(dt))return dt;if(ct)return-1;if(rt==="div")return 0},j.focus=function(rt){return _invoke(j.ref.current,"focus",rt)},j.handleClick=function(rt){var it=j.props.disabled;if(it){rt.preventDefault();return}_invoke(j.props,"onClick",rt,j.props)},j.hasIconClass=function(){var rt=j.props,it=rt.labelPosition,ct=rt.children,dt=rt.content,mt=rt.icon;return mt===!0?!0:mt&&(it||isNil$1(ct)&&isNil(dt))},j}var $=_.prototype;return $.computeButtonAriaRole=function(_e){var et=this.props.role;if(!isNil(et))return et;if(_e!=="button")return"button"},$.render=function(){var _e=this.props,et=_e.active,tt=_e.animated,rt=_e.attached,it=_e.basic,ct=_e.children,dt=_e.circular,mt=_e.className,vt=_e.color,wt=_e.compact,xt=_e.content,bt=_e.disabled,Et=_e.floated,$t=_e.fluid,At=_e.icon,Rt=_e.inverted,Pt=_e.label,Ct=_e.labelPosition,Ot=_e.loading,kt=_e.negative,Dt=_e.positive,Nt=_e.primary,zt=_e.secondary,gt=_e.size,nt=_e.toggle,ot=_e.type,st=clsx(vt,gt,useKeyOnly(et,"active"),useKeyOnly(it,"basic"),useKeyOnly(dt,"circular"),useKeyOnly(wt,"compact"),useKeyOnly($t,"fluid"),useKeyOnly(this.hasIconClass(),"icon"),useKeyOnly(Rt,"inverted"),useKeyOnly(Ot,"loading"),useKeyOnly(kt,"negative"),useKeyOnly(Dt,"positive"),useKeyOnly(Nt,"primary"),useKeyOnly(zt,"secondary"),useKeyOnly(nt,"toggle"),useKeyOrValueAndKey(tt,"animated"),useKeyOrValueAndKey(rt,"attached")),lt=clsx(useKeyOrValueAndKey(Ct||!!Pt,"labeled")),pt=clsx(useKeyOnly(bt,"disabled"),useValueAndKey(Et,"floated")),_t=getUnhandledProps$1(_,this.props),St=getElementType(_,this.props,this.computeElementType),yt=this.computeTabIndex(St);if(!isNil(Pt)){var at=clsx("ui",st,"button",mt),ht=clsx("ui",lt,"button",mt,pt),Mt=Label$1.create(Pt,{defaultProps:{basic:!0,pointing:Ct==="left"?"right":"left"},autoGenerateKey:!1});return React$5.createElement(St,_extends$1({},_t,{className:ht,onClick:this.handleClick}),Ct==="left"&&Mt,React$5.createElement(Ref,{innerRef:this.ref},React$5.createElement("button",{className:at,"aria-pressed":nt?!!et:void 0,disabled:bt,type:ot,tabIndex:yt},Icon$2.create(At,{autoGenerateKey:!1})," ",xt)),(Ct==="right"||!Ct)&&Mt)}var Tt=clsx("ui",st,pt,lt,"button",mt),It=!isNil$1(ct),Lt=this.computeButtonAriaRole(St);return React$5.createElement(Ref,{innerRef:this.ref},React$5.createElement(St,_extends$1({},_t,{className:Tt,"aria-pressed":nt?!!et:void 0,disabled:bt&&St==="button"||void 0,onClick:this.handleClick,role:Lt,type:ot,tabIndex:yt}),It&&ct,!It&&Icon$2.create(At,{autoGenerateKey:!1}),!It&&xt))},_}(reactExports.Component);Button$1.handledProps=["active","animated","as","attached","basic","children","circular","className","color","compact","content","disabled","floated","fluid","icon","inverted","label","labelPosition","loading","negative","onClick","positive","primary","role","secondary","size","tabIndex","toggle","type"];Button$1.propTypes={};Button$1.defaultProps={as:"button"};Button$1.Content=ButtonContent;Button$1.Group=ButtonGroup;Button$1.Or=ButtonOr;Button$1.create=createShorthandFactory(Button$1,function(a){return{content:a}});const Button$2=Button$1;function arrayReduce(a,_,$,j){var _e=-1,et=a==null?0:a.length;for(j&&et&&($=a[++_e]);++_e<et;)$=_($,a[_e],_e,a);return $}function baseReduce(a,_,$,j,_e){return _e(a,function(et,tt,rt){$=j?(j=!1,et):_($,et,tt,rt)}),$}function reduce(a,_,$){var j=isArray$1(a)?arrayReduce:baseReduce,_e=arguments.length<3;return j(a,baseIteratee(_),$,_e,baseEach$1)}var shallowequal,hasRequiredShallowequal;function requireShallowequal(){return hasRequiredShallowequal||(hasRequiredShallowequal=1,shallowequal=function(_,$,j,_e){var et=j?j.call(_e,_,$):void 0;if(et!==void 0)return!!et;if(_===$)return!0;if(typeof _!="object"||!_||typeof $!="object"||!$)return!1;var tt=Object.keys(_),rt=Object.keys($);if(tt.length!==rt.length)return!1;for(var it=Object.prototype.hasOwnProperty.bind($),ct=0;ct<tt.length;ct++){var dt=tt[ct];if(!it(dt))return!1;var mt=_[dt],vt=$[dt];if(et=j?j.call(_e,mt,vt,dt):void 0,et===!1||et===void 0&&mt!==vt)return!1}return!0}),shallowequal}var shallowequalExports=requireShallowequal();const shallowEqual=getDefaultExportFromCjs$1(shallowequalExports);function basePropertyOf(a){return function(_){return a==null?void 0:a[_]}}var deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter=basePropertyOf(deburredLetters);const deburrLetter$1=deburrLetter;var reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr(a){return a=toString(a),a&&a.replace(reLatin,deburrLetter$1).replace(reComboMark,"")}function set(a,_,$){return a==null?a:baseSet(a,_,$)}var Checkbox=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.inputRef=reactExports.createRef(),j.labelRef=reactExports.createRef(),j.canToggle=function(){var rt=j.props,it=rt.disabled,ct=rt.radio,dt=rt.readOnly,mt=j.state.checked;return!it&&!dt&&!(ct&&mt)},j.computeTabIndex=function(){var rt=j.props,it=rt.disabled,ct=rt.tabIndex;return isNil(ct)?it?-1:0:ct},j.handleClick=function(rt){var it=j.props.id,ct=j.state,dt=ct.checked,mt=ct.indeterminate,vt=_invoke(j.inputRef.current,"contains",rt.target),wt=_invoke(j.labelRef.current,"contains",rt.target),xt=!wt&&!vt,bt=!isNil(it),Et=wt&&bt;Et||_invoke(j.props,"onClick",rt,_extends$1({},j.props,{checked:!dt,indeterminate:!!mt})),j.isClickFromMouse&&(j.isClickFromMouse=!1,wt&&!bt&&j.handleChange(rt),xt&&j.handleChange(rt),wt&&bt&&rt.stopPropagation())},j.handleChange=function(rt){var it=j.state.checked;j.canToggle()&&(_invoke(j.props,"onChange",rt,_extends$1({},j.props,{checked:!it,indeterminate:!1})),j.setState({checked:!it,indeterminate:!1}))},j.handleMouseDown=function(rt){var it=j.state,ct=it.checked,dt=it.indeterminate;_invoke(j.props,"onMouseDown",rt,_extends$1({},j.props,{checked:!!ct,indeterminate:!!dt})),rt.defaultPrevented||_invoke(j.inputRef.current,"focus"),rt.preventDefault()},j.handleMouseUp=function(rt){var it=j.state,ct=it.checked,dt=it.indeterminate;j.isClickFromMouse=!0,_invoke(j.props,"onMouseUp",rt,_extends$1({},j.props,{checked:!!ct,indeterminate:!!dt}))},j.setIndeterminate=function(){var rt=j.state.indeterminate;set(j.inputRef,"current.indeterminate",!!rt)},j}var $=_.prototype;return $.componentDidMount=function(){this.setIndeterminate()},$.componentDidUpdate=function(){this.setIndeterminate()},$.render=function(){var _e=this.props,et=_e.className,tt=_e.disabled,rt=_e.label,it=_e.id,ct=_e.name,dt=_e.radio,mt=_e.readOnly,vt=_e.slider,wt=_e.toggle,xt=_e.type,bt=_e.value,Et=this.state,$t=Et.checked,At=Et.indeterminate,Rt=clsx("ui",useKeyOnly($t,"checked"),useKeyOnly(tt,"disabled"),useKeyOnly(At,"indeterminate"),useKeyOnly(isNil(rt),"fitted"),useKeyOnly(dt,"radio"),useKeyOnly(mt,"read-only"),useKeyOnly(vt,"slider"),useKeyOnly(wt,"toggle"),"checkbox",et),Pt=getUnhandledProps$1(_,this.props),Ct=getElementType(_,this.props),Ot=partitionHTMLProps(Pt,{htmlProps:htmlInputAttrs}),kt=Ot[0],Dt=Ot[1],Nt=createHTMLLabel(rt,{defaultProps:{htmlFor:it},autoGenerateKey:!1})||React$5.createElement("label",{htmlFor:it});return React$5.createElement(Ct,_extends$1({},Dt,{className:Rt,onClick:this.handleClick,onChange:this.handleChange,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp}),React$5.createElement(Ref,{innerRef:this.inputRef},React$5.createElement("input",_extends$1({},kt,{checked:$t,className:"hidden",disabled:tt,id:it,name:ct,readOnly:!0,tabIndex:this.computeTabIndex(),type:xt,value:bt}))),React$5.createElement(Ref,{innerRef:this.labelRef},Nt))},_}(ModernAutoControlledComponent);Checkbox.handledProps=["as","checked","className","defaultChecked","defaultIndeterminate","disabled","fitted","id","indeterminate","label","name","onChange","onClick","onMouseDown","onMouseUp","radio","readOnly","slider","tabIndex","toggle","type","value"];Checkbox.propTypes={};Checkbox.defaultProps={type:"checkbox"};Checkbox.autoControlledProps=["checked","indeterminate"];function Radio(a){var _=a.slider,$=a.toggle,j=a.type,_e=getUnhandledProps$1(Radio,a),et=!(_||$)||void 0;return React$5.createElement(Checkbox,_extends$1({},_e,{type:j,radio:et,slider:_,toggle:$}))}Radio.handledProps=["slider","toggle","type"];Radio.propTypes={};Radio.defaultProps={type:"radio"};function compact(a){for(var _=-1,$=a==null?0:a.length,j=0,_e=[];++_<$;){var et=a[_];et&&(_e[j++]=et)}return _e}function arrayEvery(a,_){for(var $=-1,j=a==null?0:a.length;++$<j;)if(!_(a[$],$,a))return!1;return!0}function baseEvery(a,_){var $=!0;return baseEach$1(a,function(j,_e,et){return $=!!_(j,_e,et),$}),$}function every(a,_,$){var j=isArray$1(a)?arrayEvery:baseEvery;return $&&isIterateeCall(a,_,$)&&(_=void 0),j(a,baseIteratee(_))}function dropRight(a,_,$){var j=a==null?0:a.length;return j?(_=$||_===void 0?1:toInteger(_),_=j-_,baseSlice(a,0,_<0?0:_)):[]}var asciiSize=baseProperty("length");const asciiSize$1=asciiSize;var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeSize(a){for(var _=reUnicode.lastIndex=0;reUnicode.test(a);)++_;return _}function stringSize(a){return hasUnicode(a)?unicodeSize(a):asciiSize$1(a)}var mapTag="[object Map]",setTag="[object Set]";function size(a){if(a==null)return 0;if(isArrayLike(a))return isString(a)?stringSize(a):a.length;var _=getTag$1(a);return _==mapTag||_==setTag?a.size:baseKeys(a).length}var union=baseRest(function(a){return baseUniq(baseFlatten(a,1,isArrayLikeObject,!0))});const _union=union;var Flag=function(a){_inheritsLoose$6(_,a);function _(){return a.apply(this,arguments)||this}var $=_.prototype;return $.render=function(){var _e=this.props,et=_e.className,tt=_e.name,rt=clsx(tt,"flag",et),it=getUnhandledProps$1(_,this.props),ct=getElementType(_,this.props);return React$5.createElement(ct,_extends$1({},it,{className:rt}))},_}(reactExports.PureComponent);Flag.handledProps=["as","className","name"];Flag.propTypes={};Flag.defaultProps={as:"i"};Flag.create=createShorthandFactory(Flag,function(a){return{name:a}});const Flag$1=Flag;function DropdownDivider(a){var _=a.className,$=clsx("divider",_),j=getUnhandledProps$1(DropdownDivider,a),_e=getElementType(DropdownDivider,a);return React$5.createElement(_e,_extends$1({},j,{className:$}))}DropdownDivider.handledProps=["as","className"];DropdownDivider.propTypes={};var DropdownItem=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.handleClick=function(rt){_invoke(j.props,"onClick",rt,j.props)},j}var $=_.prototype;return $.render=function(){var _e=this.props,et=_e.active,tt=_e.children,rt=_e.className,it=_e.content,ct=_e.disabled,dt=_e.description,mt=_e.flag,vt=_e.icon,wt=_e.image,xt=_e.label,bt=_e.selected,Et=_e.text,$t=clsx(useKeyOnly(et,"active"),useKeyOnly(ct,"disabled"),useKeyOnly(bt,"selected"),"item",rt),At=isNil(vt)?someByType(tt,"DropdownMenu")&&"dropdown":vt,Rt=getUnhandledProps$1(_,this.props),Pt=getElementType(_,this.props),Ct={role:"option","aria-disabled":ct,"aria-checked":et,"aria-selected":bt};if(!isNil$1(tt))return React$5.createElement(Pt,_extends$1({},Rt,Ct,{className:$t,onClick:this.handleClick}),tt);var Ot=Flag$1.create(mt,{autoGenerateKey:!1}),kt=Icon$2.create(At,{autoGenerateKey:!1}),Dt=Image$1.create(wt,{autoGenerateKey:!1}),Nt=Label$1.create(xt,{autoGenerateKey:!1}),zt=createShorthand("span",function(nt){return{children:nt}},dt,{defaultProps:{className:"description"},autoGenerateKey:!1}),gt=createShorthand("span",function(nt){return{children:nt}},isNil$1(it)?Et:it,{defaultProps:{className:"text"},autoGenerateKey:!1});return React$5.createElement(Pt,_extends$1({},Rt,Ct,{className:$t,onClick:this.handleClick}),Dt,kt,Ot,Nt,zt,gt)},_}(reactExports.Component);DropdownItem.handledProps=["active","as","children","className","content","description","disabled","flag","icon","image","label","onClick","selected","text","value"];DropdownItem.propTypes={};DropdownItem.create=createShorthandFactory(DropdownItem,function(a){return a});const DropdownItem$1=DropdownItem;function DropdownHeader(a){var _=a.children,$=a.className,j=a.content,_e=a.icon,et=clsx("header",$),tt=getUnhandledProps$1(DropdownHeader,a),rt=getElementType(DropdownHeader,a);return isNil$1(_)?React$5.createElement(rt,_extends$1({},tt,{className:et}),Icon$2.create(_e,{autoGenerateKey:!1}),j):React$5.createElement(rt,_extends$1({},tt,{className:et}),_)}DropdownHeader.handledProps=["as","children","className","content","icon"];DropdownHeader.propTypes={};DropdownHeader.create=createShorthandFactory(DropdownHeader,function(a){return{content:a}});function DropdownMenu(a){var _=a.children,$=a.className,j=a.content,_e=a.direction,et=a.open,tt=a.scrolling,rt=clsx(_e,useKeyOnly(et,"visible"),useKeyOnly(tt,"scrolling"),"menu transition",$),it=getUnhandledProps$1(DropdownMenu,a),ct=getElementType(DropdownMenu,a);return React$5.createElement(ct,_extends$1({},it,{className:rt}),isNil$1(_)?j:_)}DropdownMenu.handledProps=["as","children","className","content","direction","open","scrolling"];DropdownMenu.propTypes={};var DropdownSearchInput=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.handleChange=function(rt){var it=get(rt,"target.value");_invoke(j.props,"onChange",rt,_extends$1({},j.props,{value:it}))},j}var $=_.prototype;return $.render=function(){var _e=this.props,et=_e.autoComplete,tt=_e.className,rt=_e.tabIndex,it=_e.type,ct=_e.value,dt=clsx("search",tt),mt=getUnhandledProps$1(_,this.props);return React$5.createElement("input",_extends$1({},mt,{"aria-autocomplete":"list",autoComplete:et,className:dt,onChange:this.handleChange,tabIndex:rt,type:it,value:ct}))},_}(reactExports.Component);DropdownSearchInput.handledProps=["as","autoComplete","className","tabIndex","type","value"];DropdownSearchInput.propTypes={};DropdownSearchInput.defaultProps={autoComplete:"off",type:"text"};DropdownSearchInput.create=createShorthandFactory(DropdownSearchInput,function(a){return{type:a}});const DropdownSearchInput$1=DropdownSearchInput;function DropdownText(a){var _=a.children,$=a.className,j=a.content,_e=clsx("divider",$),et=getUnhandledProps$1(DropdownText,a),tt=getElementType(DropdownText,a);return React$5.createElement(tt,_extends$1({"aria-atomic":!0,"aria-live":"polite",role:"alert"},et,{className:_e}),isNil$1(_)?j:_)}DropdownText.handledProps=["as","children","className","content"];DropdownText.propTypes={};DropdownText.create=createShorthandFactory(DropdownText,function(a){return{content:a}});var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source);function escapeRegExp(a){return a=toString(a),a&&reHasRegExpChar.test(a)?a.replace(reRegExpChar,"\\$&"):a}function getMenuOptions(a){var _=a.additionLabel,$=a.additionPosition,j=a.allowAdditions,_e=a.deburr,et=a.multiple,tt=a.options,rt=a.search,it=a.searchQuery,ct=a.value,dt=tt;if(et&&(dt=filter(dt,function(bt){return!includes(ct,bt.value)})),rt&&it)if(isFunction(rt))dt=rt(dt,it);else{var mt=_e?deburr(it):it,vt=new RegExp(escapeRegExp(mt),"i");dt=filter(dt,function(bt){return vt.test(_e?deburr(bt.text):bt.text)})}if(j&&rt&&it&&!some(dt,{text:it})){var wt=React$5.isValidElement(_)?React$5.cloneElement(_,{key:"addition-label"}):_||"",xt={key:"addition",text:[wt,React$5.createElement("b",{key:"addition-query"},it)],value:it,className:"addition","data-additional":!0};$==="top"?dt.unshift(xt):dt.push(xt)}return dt}getMenuOptions.handledProps=[];function getSelectedIndex(a){var _=a.additionLabel,$=a.additionPosition,j=a.allowAdditions,_e=a.deburr,et=a.multiple,tt=a.options,rt=a.search,it=a.searchQuery,ct=a.selectedIndex,dt=a.value,mt=getMenuOptions({value:dt,options:tt,searchQuery:it,additionLabel:_,additionPosition:$,allowAdditions:j,deburr:_e,multiple:et,search:rt}),vt=reduce(mt,function(Et,$t,At){return $t.disabled||Et.push(At),Et},[]),wt;if(!ct||ct<0){var xt=vt[0];wt=et?xt:findIndex(mt,["value",dt])||vt[0]}else if(et)wt=_find(vt,function(Et){return Et>=ct}),ct>=mt.length-1&&(wt=vt[vt.length-1]);else{var bt=findIndex(mt,["value",dt]);wt=includes(vt,bt)?bt:void 0}return(!wt||wt<0)&&(wt=vt[0]),wt}var getKeyOrValue=function a(_,$){return isNil(_)?$:_},getKeyAndValues=function a(_){return _&&_.map(function($){return _pick($,["key","value"])})};function renderItemContent(a){var _=a.flag,$=a.image,j=a.text;return isFunction(j)?j:{content:React$5.createElement(React$5.Fragment,null,Flag$1.create(_),Image$1.create($),j)}}var Dropdown=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.searchRef=reactExports.createRef(),j.sizerRef=reactExports.createRef(),j.ref=reactExports.createRef(),j.handleChange=function(rt,it){_invoke(j.props,"onChange",rt,_extends$1({},j.props,{value:it}))},j.closeOnChange=function(rt){var it=j.props,ct=it.closeOnChange,dt=it.multiple,mt=isUndefined(ct)?!dt:ct;mt&&j.close(rt,noop)},j.closeOnEscape=function(rt){j.props.closeOnEscape&&keyboardKey.getCode(rt)===keyboardKey.Escape&&(rt.preventDefault(),j.close(rt))},j.moveSelectionOnKeyDown=function(rt){var it,ct=j.props,dt=ct.multiple,mt=ct.selectOnNavigation,vt=j.state.open;if(vt){var wt=(it={},it[keyboardKey.ArrowDown]=1,it[keyboardKey.ArrowUp]=-1,it),xt=wt[keyboardKey.getCode(rt)];if(xt!==void 0){rt.preventDefault();var bt=j.getSelectedIndexAfterMove(xt);!dt&&mt&&j.makeSelectedItemActive(rt,bt),j.setState({selectedIndex:bt})}}},j.openOnSpace=function(rt){var it,ct,dt,mt=j.state.focus&&!j.state.open&&keyboardKey.getCode(rt)===keyboardKey.Spacebar,vt=((it=rt.target)==null?void 0:it.tagName)!=="INPUT"&&((ct=rt.target)==null?void 0:ct.tagName)!=="TEXTAREA"&&((dt=rt.target)==null?void 0:dt.isContentEditable)!==!0;mt&&(vt&&rt.preventDefault(),j.open(rt))},j.openOnArrow=function(rt){var it=j.state,ct=it.focus,dt=it.open;if(ct&&!dt){var mt=keyboardKey.getCode(rt);(mt===keyboardKey.ArrowDown||mt===keyboardKey.ArrowUp)&&(rt.preventDefault(),j.open(rt))}},j.makeSelectedItemActive=function(rt,it){var ct=j.state,dt=ct.open,mt=ct.value,vt=j.props.multiple,wt=j.getSelectedItem(it),xt=get(wt,"value"),bt=get(wt,"disabled");if(isNil(xt)||!dt||bt)return mt;var Et=vt?_union(mt,[xt]):xt,$t=vt?!!_difference(Et,mt).length:Et!==mt;return $t&&(j.setState({value:Et}),j.handleChange(rt,Et),wt["data-additional"]&&_invoke(j.props,"onAddItem",rt,_extends$1({},j.props,{value:xt}))),mt},j.selectItemOnEnter=function(rt){var it=j.props.search,ct=j.state,dt=ct.open,mt=ct.selectedIndex;if(dt){var vt=keyboardKey.getCode(rt)===keyboardKey.Enter||!it&&keyboardKey.getCode(rt)===keyboardKey.Spacebar;if(vt){rt.preventDefault();var wt=size(getMenuOptions({value:j.state.value,options:j.props.options,searchQuery:j.state.searchQuery,additionLabel:j.props.additionLabel,additionPosition:j.props.additionPosition,allowAdditions:j.props.allowAdditions,deburr:j.props.deburr,multiple:j.props.multiple,search:j.props.search}));if(!(it&&wt===0)){var xt=j.makeSelectedItemActive(rt,mt);j.setState({selectedIndex:getSelectedIndex({additionLabel:j.props.additionLabel,additionPosition:j.props.additionPosition,allowAdditions:j.props.allowAdditions,deburr:j.props.deburr,multiple:j.props.multiple,search:j.props.search,selectedIndex:mt,value:xt,options:j.props.options,searchQuery:""})}),j.closeOnChange(rt),j.clearSearchQuery(),it&&_invoke(j.searchRef.current,"focus")}}}},j.removeItemOnBackspace=function(rt){var it=j.props,ct=it.multiple,dt=it.search,mt=j.state,vt=mt.searchQuery,wt=mt.value;if(keyboardKey.getCode(rt)===keyboardKey.Backspace&&!(vt||!dt||!ct||isEmpty(wt))){rt.preventDefault();var xt=dropRight(wt);j.setState({value:xt}),j.handleChange(rt,xt)}},j.closeOnDocumentClick=function(rt){j.props.closeOnBlur&&(j.ref.current&&doesNodeContainClick$1(j.ref.current,rt)||j.close())},j.handleMouseDown=function(rt){j.isMouseDown=!0,_invoke(j.props,"onMouseDown",rt,j.props),document.addEventListener("mouseup",j.handleDocumentMouseUp)},j.handleDocumentMouseUp=function(){j.isMouseDown=!1,document.removeEventListener("mouseup",j.handleDocumentMouseUp)},j.handleClick=function(rt){var it=j.props,ct=it.minCharacters,dt=it.search,mt=j.state,vt=mt.open,wt=mt.searchQuery;if(_invoke(j.props,"onClick",rt,j.props),rt.stopPropagation(),!dt)return j.toggle(rt);if(vt){_invoke(j.searchRef.current,"focus");return}if(wt.length>=ct||ct===1){j.open(rt);return}_invoke(j.searchRef.current,"focus")},j.handleIconClick=function(rt){var it=j.props.clearable,ct=j.hasValue();_invoke(j.props,"onClick",rt,j.props),rt.stopPropagation(),it&&ct?j.clearValue(rt):j.toggle(rt)},j.handleItemClick=function(rt,it){var ct=j.props,dt=ct.multiple,mt=ct.search,vt=j.state.value,wt=it.value;if(rt.stopPropagation(),(dt||it.disabled)&&rt.nativeEvent.stopImmediatePropagation(),!it.disabled){var xt=it["data-additional"],bt=dt?_union(j.state.value,[wt]):wt,Et=dt?!!_difference(bt,vt).length:bt!==vt;Et&&(j.setState({value:bt}),j.handleChange(rt,bt)),j.clearSearchQuery(),_invoke(mt?j.searchRef.current:j.ref.current,"focus"),j.closeOnChange(rt),xt&&_invoke(j.props,"onAddItem",rt,_extends$1({},j.props,{value:wt}))}},j.handleFocus=function(rt){var it=j.state.focus;it||(_invoke(j.props,"onFocus",rt,j.props),j.setState({focus:!0}))},j.handleBlur=function(rt){var it=get(rt,"currentTarget");if(!(it&&it.contains(document.activeElement))){var ct=j.props,dt=ct.closeOnBlur,mt=ct.multiple,vt=ct.selectOnBlur;j.isMouseDown||(_invoke(j.props,"onBlur",rt,j.props),vt&&!mt&&(j.makeSelectedItemActive(rt,j.state.selectedIndex),dt&&j.close()),j.setState({focus:!1}),j.clearSearchQuery())}},j.handleSearchChange=function(rt,it){var ct=it.value;rt.stopPropagation();var dt=j.props.minCharacters,mt=j.state.open,vt=ct;if(_invoke(j.props,"onSearchChange",rt,_extends$1({},j.props,{searchQuery:vt})),j.setState({searchQuery:vt,selectedIndex:0}),!mt&&vt.length>=dt){j.open();return}mt&&dt!==1&&vt.length<dt&&j.close()},j.handleKeyDown=function(rt){j.moveSelectionOnKeyDown(rt),j.openOnArrow(rt),j.openOnSpace(rt),j.selectItemOnEnter(rt),_invoke(j.props,"onKeyDown",rt)},j.getSelectedItem=function(rt){var it=getMenuOptions({value:j.state.value,options:j.props.options,searchQuery:j.state.searchQuery,additionLabel:j.props.additionLabel,additionPosition:j.props.additionPosition,allowAdditions:j.props.allowAdditions,deburr:j.props.deburr,multiple:j.props.multiple,search:j.props.search});return get(it,"["+rt+"]")},j.getItemByValue=function(rt){var it=j.props.options;return _find(it,{value:rt})},j.getDropdownAriaOptions=function(){var rt=j.props,it=rt.loading,ct=rt.disabled,dt=rt.search,mt=rt.multiple,vt=j.state.open,wt={role:dt?"combobox":"listbox","aria-busy":it,"aria-disabled":ct,"aria-expanded":!!vt};return wt.role==="listbox"&&(wt["aria-multiselectable"]=mt),wt},j.clearSearchQuery=function(){var rt=j.state.searchQuery;rt===void 0||rt===""||j.setState({searchQuery:""})},j.handleLabelClick=function(rt,it){rt.stopPropagation(),j.setState({selectedLabel:it.value}),_invoke(j.props,"onLabelClick",rt,it)},j.handleLabelRemove=function(rt,it){rt.stopPropagation();var ct=j.state.value,dt=_without(ct,it.value);j.setState({value:dt}),j.handleChange(rt,dt)},j.getSelectedIndexAfterMove=function(rt,it){it===void 0&&(it=j.state.selectedIndex);var ct=getMenuOptions({value:j.state.value,options:j.props.options,searchQuery:j.state.searchQuery,additionLabel:j.props.additionLabel,additionPosition:j.props.additionPosition,allowAdditions:j.props.allowAdditions,deburr:j.props.deburr,multiple:j.props.multiple,search:j.props.search});if(!(ct===void 0||every(ct,"disabled"))){var dt=ct.length-1,mt=j.props.wrapSelection,vt=it+rt;return!mt&&(vt>dt||vt<0)?vt=it:vt>dt?vt=0:vt<0&&(vt=dt),ct[vt].disabled?j.getSelectedIndexAfterMove(rt,vt):vt}},j.handleIconOverrides=function(rt){var it=j.props.clearable,ct=clsx(it&&j.hasValue()&&"clear",rt.className);return{className:ct,onClick:function(mt){_invoke(rt,"onClick",mt,rt),j.handleIconClick(mt)}}},j.clearValue=function(rt){var it=j.props.multiple,ct=it?[]:"";j.setState({value:ct}),j.handleChange(rt,ct)},j.computeSearchInputTabIndex=function(){var rt=j.props,it=rt.disabled,ct=rt.tabIndex;return isNil(ct)?it?-1:0:ct},j.computeSearchInputWidth=function(){var rt=j.state.searchQuery;if(j.sizerRef.current&&rt){j.sizerRef.current.style.display="inline",j.sizerRef.current.textContent=rt;var it=Math.ceil(j.sizerRef.current.getBoundingClientRect().width);return j.sizerRef.current.style.removeProperty("display"),it}},j.computeTabIndex=function(){var rt=j.props,it=rt.disabled,ct=rt.search,dt=rt.tabIndex;if(!ct)return it?-1:isNil(dt)?0:dt},j.handleSearchInputOverrides=function(rt){return{onChange:function(ct,dt){_invoke(rt,"onChange",ct,dt),j.handleSearchChange(ct,dt)}}},j.hasValue=function(){var rt=j.props.multiple,it=j.state.value;return rt?!isEmpty(it):!isNil(it)&&it!==""},j.scrollSelectedItemIntoView=function(){if(j.ref.current){var rt=j.ref.current.querySelector(".menu.visible");if(rt){var it=rt.querySelector(".item.selected");if(it){var ct=it.offsetTop<rt.scrollTop,dt=it.offsetTop+it.clientHeight>rt.scrollTop+rt.clientHeight;ct?rt.scrollTop=it.offsetTop:dt&&(rt.scrollTop=it.offsetTop+it.clientHeight-rt.clientHeight)}}}},j.setOpenDirection=function(){if(j.ref.current){var rt=j.ref.current.querySelector(".menu.visible");if(rt){var it=j.ref.current.getBoundingClientRect(),ct=rt.clientHeight,dt=document.documentElement.clientHeight-it.top-it.height-ct,mt=it.top-ct,vt=dt<0&&mt>dt;!vt!=!j.state.upward&&j.setState({upward:vt})}}},j.open=function(rt,it){rt===void 0&&(rt=null),it===void 0&&(it=!0);var ct=j.props,dt=ct.disabled,mt=ct.search;dt||(mt&&_invoke(j.searchRef.current,"focus"),_invoke(j.props,"onOpen",rt,j.props),it&&j.setState({open:!0}),j.scrollSelectedItemIntoView())},j.close=function(rt,it){it===void 0&&(it=j.handleClose),j.state.open&&(_invoke(j.props,"onClose",rt,j.props),j.setState({open:!1},it))},j.handleClose=function(){var rt=document.activeElement===j.searchRef.current;!rt&&j.ref.current&&j.ref.current.blur();var it=document.activeElement===j.ref.current,ct=rt||it;j.setState({focus:ct})},j.toggle=function(rt){return j.state.open?j.close(rt):j.open(rt)},j.renderText=function(){var rt=j.props,it=rt.multiple,ct=rt.placeholder,dt=rt.search,mt=rt.text,vt=j.state,wt=vt.searchQuery,xt=vt.selectedIndex,bt=vt.value,Et=vt.open,$t=j.hasValue(),At=clsx(ct&&!$t&&"default","text",dt&&wt&&"filtered"),Rt=ct,Pt;return mt?Rt=mt:Et&&!it?Pt=j.getSelectedItem(xt):$t&&(Pt=j.getItemByValue(bt)),DropdownText.create(Pt?renderItemContent(Pt):Rt,{defaultProps:{className:At}})},j.renderSearchInput=function(){var rt=j.props,it=rt.search,ct=rt.searchInput,dt=j.state.searchQuery;return it&&React$5.createElement(Ref,{innerRef:j.searchRef},DropdownSearchInput$1.create(ct,{defaultProps:{style:{width:j.computeSearchInputWidth()},tabIndex:j.computeSearchInputTabIndex(),value:dt},overrideProps:j.handleSearchInputOverrides}))},j.renderSearchSizer=function(){var rt=j.props,it=rt.search,ct=rt.multiple;return it&&ct&&React$5.createElement("span",{className:"sizer",ref:j.sizerRef})},j.renderLabels=function(){var rt=j.props,it=rt.multiple,ct=rt.renderLabel,dt=j.state,mt=dt.selectedLabel,vt=dt.value;if(!(!it||isEmpty(vt))){var wt=map(vt,j.getItemByValue);return map(compact(wt),function(xt,bt){var Et={active:xt.value===mt,as:"a",key:getKeyOrValue(xt.key,xt.value),onClick:j.handleLabelClick,onRemove:j.handleLabelRemove,value:xt.value};return Label$1.create(ct(xt,bt,Et),{defaultProps:Et})})}},j.renderOptions=function(){var rt=j.props,it=rt.lazyLoad,ct=rt.multiple,dt=rt.search,mt=rt.noResultsMessage,vt=j.state,wt=vt.open,xt=vt.selectedIndex,bt=vt.value;if(it&&!wt)return null;var Et=getMenuOptions({value:j.state.value,options:j.props.options,searchQuery:j.state.searchQuery,additionLabel:j.props.additionLabel,additionPosition:j.props.additionPosition,allowAdditions:j.props.allowAdditions,deburr:j.props.deburr,multiple:j.props.multiple,search:j.props.search});if(mt!==null&&dt&&isEmpty(Et))return React$5.createElement("div",{className:"message"},mt);var $t=ct?function(At){return includes(bt,At)}:function(At){return At===bt};return map(Et,function(At,Rt){return DropdownItem$1.create(_extends$1({active:$t(At.value),selected:xt===Rt},At,{key:getKeyOrValue(At.key,At.value),style:_extends$1({},At.style,{pointerEvents:"all"})}),{generateKey:!1,overrideProps:function(Ct){return{onClick:function(kt,Dt){Ct.onClick==null||Ct.onClick(kt,Dt),j.handleItemClick(kt,Dt)}}}})})},j.renderMenu=function(){var rt=j.props,it=rt.children,ct=rt.direction,dt=rt.header,mt=j.state.open,vt=j.getDropdownMenuAriaOptions();if(!isNil$1(it)){var wt=reactExports.Children.only(it),xt=clsx(ct,useKeyOnly(mt,"visible"),wt.props.className);return reactExports.cloneElement(wt,_extends$1({className:xt},vt))}return React$5.createElement(DropdownMenu,_extends$1({},vt,{direction:ct,open:mt}),DropdownHeader.create(dt,{autoGenerateKey:!1}),j.renderOptions())},j}var $=_.prototype;return $.getInitialAutoControlledState=function(){return{focus:!1,searchQuery:""}},_.getAutoControlledStateFromProps=function(_e,et,tt){var rt={__options:_e.options,__value:et.value},it=!shallowEqual(tt.__value,et.value)||!isEqual(getKeyAndValues(_e.options),getKeyAndValues(tt.__options));return it&&(rt.selectedIndex=getSelectedIndex({additionLabel:_e.additionLabel,additionPosition:_e.additionPosition,allowAdditions:_e.allowAdditions,deburr:_e.deburr,multiple:_e.multiple,search:_e.search,selectedIndex:et.selectedIndex,value:et.value,options:_e.options,searchQuery:et.searchQuery})),rt},$.componentDidMount=function(){var _e=this.state.open;_e&&this.open(null,!1)},$.shouldComponentUpdate=function(_e,et){return!shallowEqual(_e,this.props)||!shallowEqual(et,this.state)},$.componentDidUpdate=function(_e,et){var tt=this.props,rt=tt.closeOnBlur,it=tt.minCharacters,ct=tt.openOnFocus,dt=tt.search;if(!et.focus&&this.state.focus){if(!this.isMouseDown){var mt=!dt||dt&&it===1&&!this.state.open;ct&&mt&&this.open()}}else et.focus&&!this.state.focus&&!this.isMouseDown&&rt&&this.close();!et.open&&this.state.open?(this.setOpenDirection(),this.scrollSelectedItemIntoView()):et.open&&this.state.open,et.selectedIndex!==this.state.selectedIndex&&this.scrollSelectedItemIntoView()},$.getDropdownMenuAriaOptions=function(){var _e=this.props,et=_e.search,tt=_e.multiple,rt={};return et&&(rt["aria-multiselectable"]=tt,rt.role="listbox"),rt},$.render=function(){var _e=this.props,et=_e.basic,tt=_e.button,rt=_e.className,it=_e.compact,ct=_e.disabled,dt=_e.error,mt=_e.fluid,vt=_e.floating,wt=_e.icon,xt=_e.inline,bt=_e.item,Et=_e.labeled,$t=_e.loading,At=_e.multiple,Rt=_e.pointing,Pt=_e.search,Ct=_e.selection,Ot=_e.scrolling,kt=_e.simple,Dt=_e.trigger,Nt=this.state,zt=Nt.focus,gt=Nt.open,nt=Nt.upward,ot=clsx("ui",useKeyOnly(gt,"active visible"),useKeyOnly(ct,"disabled"),useKeyOnly(dt,"error"),useKeyOnly($t,"loading"),useKeyOnly(et,"basic"),useKeyOnly(tt,"button"),useKeyOnly(it,"compact"),useKeyOnly(mt,"fluid"),useKeyOnly(vt,"floating"),useKeyOnly(xt,"inline"),useKeyOnly(Et,"labeled"),useKeyOnly(bt,"item"),useKeyOnly(At,"multiple"),useKeyOnly(Pt,"search"),useKeyOnly(Ct,"selection"),useKeyOnly(kt,"simple"),useKeyOnly(Ot,"scrolling"),useKeyOnly(nt,"upward"),useKeyOrValueAndKey(Rt,"pointing"),"dropdown",rt),st=getUnhandledProps$1(_,this.props),lt=getElementType(_,this.props),pt=this.getDropdownAriaOptions(lt,this.props);return React$5.createElement(Ref,{innerRef:this.ref},React$5.createElement(lt,_extends$1({},st,pt,{className:ot,onBlur:this.handleBlur,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onFocus:this.handleFocus,onChange:this.handleChange,tabIndex:this.computeTabIndex()}),this.renderLabels(),this.renderSearchInput(),this.renderSearchSizer(),Dt||this.renderText(),Icon$2.create(wt,{overrideProps:this.handleIconOverrides,autoGenerateKey:!1}),this.renderMenu(),gt&&React$5.createElement(EventStack,{name:"keydown",on:this.closeOnEscape}),gt&&React$5.createElement(EventStack,{name:"click",on:this.closeOnDocumentClick}),zt&&React$5.createElement(EventStack,{name:"keydown",on:this.removeItemOnBackspace})))},_}(ModernAutoControlledComponent);Dropdown.handledProps=["additionLabel","additionPosition","allowAdditions","as","basic","button","children","className","clearable","closeOnBlur","closeOnChange","closeOnEscape","compact","deburr","defaultOpen","defaultSearchQuery","defaultSelectedLabel","defaultUpward","defaultValue","direction","disabled","error","floating","fluid","header","icon","inline","item","labeled","lazyLoad","loading","minCharacters","multiple","noResultsMessage","onAddItem","onBlur","onChange","onClick","onClose","onFocus","onLabelClick","onMouseDown","onOpen","onSearchChange","open","openOnFocus","options","placeholder","pointing","renderLabel","scrolling","search","searchInput","searchQuery","selectOnBlur","selectOnNavigation","selectedLabel","selection","simple","tabIndex","text","trigger","upward","value","wrapSelection"];Dropdown.propTypes={};Dropdown.defaultProps={additionLabel:"Add ",additionPosition:"top",closeOnBlur:!0,closeOnEscape:!0,deburr:!1,icon:"dropdown",minCharacters:1,noResultsMessage:"No results found.",openOnFocus:!0,renderLabel:renderItemContent,searchInput:"text",selectOnBlur:!0,selectOnNavigation:!0,wrapSelection:!0};Dropdown.autoControlledProps=["open","searchQuery","selectedLabel","value","upward"];Dropdown.Divider=DropdownDivider;Dropdown.Header=DropdownHeader;Dropdown.Item=DropdownItem$1;Dropdown.Menu=DropdownMenu;Dropdown.SearchInput=DropdownSearchInput$1;Dropdown.Text=DropdownText;function Select(a){return React$5.createElement(Dropdown,_extends$1({},a,{selection:!0}))}Select.handledProps=["options"];Select.propTypes={};Select.Divider=Dropdown.Divider;Select.Header=Dropdown.Header;Select.Item=Dropdown.Item;Select.Menu=Dropdown.Menu;var TextArea=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.ref=reactExports.createRef(),j.focus=function(){return j.ref.current.focus()},j.handleChange=function(rt){var it=get(rt,"target.value");_invoke(j.props,"onChange",rt,_extends$1({},j.props,{value:it}))},j.handleInput=function(rt){var it=get(rt,"target.value");_invoke(j.props,"onInput",rt,_extends$1({},j.props,{value:it}))},j}var $=_.prototype;return $.render=function(){var _e=this.props,et=_e.rows,tt=_e.value,rt=getUnhandledProps$1(_,this.props),it=getElementType(_,this.props);return React$5.createElement(Ref,{innerRef:this.ref},React$5.createElement(it,_extends$1({},rt,{onChange:this.handleChange,onInput:this.handleInput,rows:et,value:tt})))},_}(reactExports.Component);TextArea.handledProps=["as","onChange","onInput","rows","value"];TextArea.propTypes={};TextArea.defaultProps={as:"textarea",rows:3};const TextArea$1=TextArea;function FormField(a){var _=a.children,$=a.className,j=a.content,_e=a.control,et=a.disabled,tt=a.error,rt=a.inline,it=a.label,ct=a.required,dt=a.type,mt=a.width,vt=a.id,wt=clsx(useKeyOnly(et,"disabled"),useKeyOnly(tt,"error"),useKeyOnly(rt,"inline"),useKeyOnly(ct,"required"),useWidthProp(mt,"wide"),"field",$),xt=getUnhandledProps$1(FormField,a),bt=getElementType(FormField,a),Et=get(tt,"pointing","above"),$t=Label$1.create(tt,{autoGenerateKey:!1,defaultProps:{prompt:!0,pointing:Et,id:vt?vt+"-error-message":void 0,role:"alert","aria-atomic":!0}}),At=(Et==="below"||Et==="right")&&$t,Rt=(Et==="above"||Et==="left")&&$t;if(isNil(_e))return isNil(it)?React$5.createElement(bt,_extends$1({},xt,{className:wt,id:vt}),isNil$1(_)?j:_):React$5.createElement(bt,_extends$1({},xt,{className:wt,id:vt}),At,createHTMLLabel(it,{autoGenerateKey:!1}),Rt);var Pt=vt&&tt?vt+"-error-message":null,Ct={"aria-describedby":Pt,"aria-invalid":tt?!0:void 0},Ot=_extends$1({},xt,{content:j,children:_,disabled:et,required:ct,type:dt,id:vt});return _e==="input"&&(dt==="checkbox"||dt==="radio")?React$5.createElement(bt,{className:wt},React$5.createElement("label",null,At,reactExports.createElement(_e,_extends$1({},Ct,Ot))," ",it,Rt)):_e===Checkbox||_e===Radio?React$5.createElement(bt,{className:wt},At,reactExports.createElement(_e,_extends$1({},Ct,Ot,{label:it})),Rt):React$5.createElement(bt,{className:wt},createHTMLLabel(it,{defaultProps:{htmlFor:vt},autoGenerateKey:!1}),At,reactExports.createElement(_e,_extends$1({},Ct,Ot)),Rt)}FormField.handledProps=["as","children","className","content","control","disabled","error","id","inline","label","required","type","width"];FormField.propTypes={};function FormButton(a){var _=a.control,$=getUnhandledProps$1(FormButton,a),j=getElementType(FormButton,a);return React$5.createElement(j,_extends$1({},$,{control:_}))}FormButton.handledProps=["as","control"];FormButton.propTypes={};FormButton.defaultProps={as:FormField,control:Button$2};function FormCheckbox(a){var _=a.control,$=getUnhandledProps$1(FormCheckbox,a),j=getElementType(FormCheckbox,a);return React$5.createElement(j,_extends$1({},$,{control:_}))}FormCheckbox.handledProps=["as","control"];FormCheckbox.propTypes={};FormCheckbox.defaultProps={as:FormField,control:Checkbox};function FormDropdown(a){var _=a.control,$=getUnhandledProps$1(FormDropdown,a),j=getElementType(FormDropdown,a);return React$5.createElement(j,_extends$1({},$,{control:_}))}FormDropdown.handledProps=["as","control"];FormDropdown.propTypes={};FormDropdown.defaultProps={as:FormField,control:Dropdown};function FormGroup(a){var _=a.children,$=a.className,j=a.grouped,_e=a.inline,et=a.unstackable,tt=a.widths,rt=clsx(useKeyOnly(j,"grouped"),useKeyOnly(_e,"inline"),useKeyOnly(et,"unstackable"),useWidthProp(tt,null,!0),"fields",$),it=getUnhandledProps$1(FormGroup,a),ct=getElementType(FormGroup,a);return React$5.createElement(ct,_extends$1({},it,{className:rt}),_)}FormGroup.handledProps=["as","children","className","grouped","inline","unstackable","widths"];FormGroup.propTypes={};var Input$2=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.inputRef=reactExports.createRef(),j.computeIcon=function(){var rt=j.props,it=rt.loading,ct=rt.icon;if(!isNil(ct))return ct;if(it)return"spinner"},j.computeTabIndex=function(){var rt=j.props,it=rt.disabled,ct=rt.tabIndex;if(!isNil(ct))return ct;if(it)return-1},j.focus=function(rt){return j.inputRef.current.focus(rt)},j.select=function(){return j.inputRef.current.select()},j.handleChange=function(rt){var it=get(rt,"target.value");_invoke(j.props,"onChange",rt,_extends$1({},j.props,{value:it}))},j.handleChildOverrides=function(rt,it){return _extends$1({},it,rt.props,{ref:function(dt){handleRef(rt.ref,dt),j.inputRef.current=dt}})},j.partitionProps=function(){var rt=j.props,it=rt.disabled,ct=rt.type,dt=j.computeTabIndex(),mt=getUnhandledProps$1(_,j.props),vt=partitionHTMLProps(mt),wt=vt[0],xt=vt[1];return[_extends$1({},wt,{disabled:it,type:ct,tabIndex:dt,onChange:j.handleChange,ref:j.inputRef}),xt]},j}var $=_.prototype;return $.render=function(){var _e=this,et=this.props,tt=et.action,rt=et.actionPosition,it=et.children,ct=et.className,dt=et.disabled,mt=et.error,vt=et.fluid,wt=et.focus,xt=et.icon,bt=et.iconPosition,Et=et.input,$t=et.inverted,At=et.label,Rt=et.labelPosition,Pt=et.loading,Ct=et.size,Ot=et.transparent,kt=et.type,Dt=clsx("ui",Ct,useKeyOnly(dt,"disabled"),useKeyOnly(mt,"error"),useKeyOnly(vt,"fluid"),useKeyOnly(wt,"focus"),useKeyOnly($t,"inverted"),useKeyOnly(Pt,"loading"),useKeyOnly(Ot,"transparent"),useValueAndKey(rt,"action")||useKeyOnly(tt,"action"),useValueAndKey(bt,"icon")||useKeyOnly(xt||Pt,"icon"),useValueAndKey(Rt,"labeled")||useKeyOnly(At,"labeled"),"input",ct),Nt=getElementType(_,this.props),zt=this.partitionProps(),gt=zt[0],nt=zt[1];if(!isNil$1(it)){var ot=map(reactExports.Children.toArray(it),function(pt){return pt.type!=="input"?pt:reactExports.cloneElement(pt,_e.handleChildOverrides(pt,gt))});return React$5.createElement(Nt,_extends$1({},nt,{className:Dt}),ot)}var st=Button$2.create(tt,{autoGenerateKey:!1}),lt=Label$1.create(At,{defaultProps:{className:clsx("label",includes(Rt,"corner")&&Rt)},autoGenerateKey:!1});return React$5.createElement(Nt,_extends$1({},nt,{className:Dt}),rt==="left"&&st,Rt!=="right"&<,createHTMLInput(Et||kt,{defaultProps:gt,autoGenerateKey:!1}),Icon$2.create(this.computeIcon(),{autoGenerateKey:!1}),rt!=="left"&&st,Rt==="right"&<)},_}(reactExports.Component);Input$2.handledProps=["action","actionPosition","as","children","className","disabled","error","fluid","focus","icon","iconPosition","input","inverted","label","labelPosition","loading","onChange","size","tabIndex","transparent","type"];Input$2.propTypes={};Input$2.defaultProps={type:"text"};Input$2.create=createShorthandFactory(Input$2,function(a){return{type:a}});const Input$3=Input$2;function FormInput(a){var _=a.control,$=getUnhandledProps$1(FormInput,a),j=getElementType(FormInput,a);return React$5.createElement(j,_extends$1({},$,{control:_}))}FormInput.handledProps=["as","control"];FormInput.propTypes={};FormInput.defaultProps={as:FormField,control:Input$3};function FormRadio(a){var _=a.control,$=getUnhandledProps$1(FormRadio,a),j=getElementType(FormRadio,a);return React$5.createElement(j,_extends$1({},$,{control:_}))}FormRadio.handledProps=["as","control"];FormRadio.propTypes={};FormRadio.defaultProps={as:FormField,control:Radio};function FormSelect(a){var _=a.control,$=a.options,j=getUnhandledProps$1(FormSelect,a),_e=getElementType(FormSelect,a);return React$5.createElement(_e,_extends$1({},j,{control:_,options:$}))}FormSelect.handledProps=["as","control","options"];FormSelect.propTypes={};FormSelect.defaultProps={as:FormField,control:Select};function FormTextArea(a){var _=a.control,$=getUnhandledProps$1(FormTextArea,a),j=getElementType(FormTextArea,a);return React$5.createElement(j,_extends$1({},$,{control:_}))}FormTextArea.handledProps=["as","control"];FormTextArea.propTypes={};FormTextArea.defaultProps={as:FormField,control:TextArea$1};var Form=function(a){_inheritsLoose$6(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.handleSubmit=function(rt){var it=j.props.action;typeof it!="string"&&_invoke(rt,"preventDefault");for(var ct=arguments.length,dt=new Array(ct>1?ct-1:0),mt=1;mt<ct;mt++)dt[mt-1]=arguments[mt];_invoke.apply(void 0,[j.props,"onSubmit",rt,j.props].concat(dt))},j}var $=_.prototype;return $.render=function(){var _e=this.props,et=_e.action,tt=_e.children,rt=_e.className,it=_e.error,ct=_e.inverted,dt=_e.loading,mt=_e.reply,vt=_e.size,wt=_e.success,xt=_e.unstackable,bt=_e.warning,Et=_e.widths,$t=clsx("ui",vt,useKeyOnly(it,"error"),useKeyOnly(ct,"inverted"),useKeyOnly(dt,"loading"),useKeyOnly(mt,"reply"),useKeyOnly(wt,"success"),useKeyOnly(xt,"unstackable"),useKeyOnly(bt,"warning"),useWidthProp(Et,null,!0),"form",rt),At=getUnhandledProps$1(_,this.props),Rt=getElementType(_,this.props);return React$5.createElement(Rt,_extends$1({},At,{action:et,className:$t,onSubmit:this.handleSubmit}),tt)},_}(reactExports.Component);Form.handledProps=["action","as","children","className","error","inverted","loading","onSubmit","reply","size","success","unstackable","warning","widths"];Form.propTypes={};Form.defaultProps={as:"form"};Form.Field=FormField;Form.Button=FormButton;Form.Checkbox=FormCheckbox;Form.Dropdown=FormDropdown;Form.Group=FormGroup;Form.Input=FormInput;Form.Radio=FormRadio;Form.Select=FormSelect;Form.TextArea=FormTextArea;const Form$1=Form;function SegmentGroup(a){var _=a.children,$=a.className,j=a.compact,_e=a.content,et=a.horizontal,tt=a.piled,rt=a.raised,it=a.size,ct=a.stacked,dt=clsx("ui",it,useKeyOnly(j,"compact"),useKeyOnly(et,"horizontal"),useKeyOnly(tt,"piled"),useKeyOnly(rt,"raised"),useKeyOnly(ct,"stacked"),"segments",$),mt=getUnhandledProps$1(SegmentGroup,a),vt=getElementType(SegmentGroup,a);return React$5.createElement(vt,_extends$1({},mt,{className:dt}),isNil$1(_)?_e:_)}SegmentGroup.handledProps=["as","children","className","compact","content","horizontal","piled","raised","size","stacked"];SegmentGroup.propTypes={};function SegmentInline(a){var _=a.children,$=a.className,j=a.content,_e=clsx("inline",$),et=getUnhandledProps$1(SegmentInline,a),tt=getElementType(SegmentInline,a);return React$5.createElement(tt,_extends$1({},et,{className:_e}),isNil$1(_)?j:_)}SegmentInline.handledProps=["as","children","className","content"];SegmentInline.propTypes={};function Segment(a){var _=a.attached,$=a.basic,j=a.children,_e=a.circular,et=a.className,tt=a.clearing,rt=a.color,it=a.compact,ct=a.content,dt=a.disabled,mt=a.floated,vt=a.inverted,wt=a.loading,xt=a.placeholder,bt=a.padded,Et=a.piled,$t=a.raised,At=a.secondary,Rt=a.size,Pt=a.stacked,Ct=a.tertiary,Ot=a.textAlign,kt=a.vertical,Dt=clsx("ui",rt,Rt,useKeyOnly($,"basic"),useKeyOnly(_e,"circular"),useKeyOnly(tt,"clearing"),useKeyOnly(it,"compact"),useKeyOnly(dt,"disabled"),useKeyOnly(vt,"inverted"),useKeyOnly(wt,"loading"),useKeyOnly(xt,"placeholder"),useKeyOnly(Et,"piled"),useKeyOnly($t,"raised"),useKeyOnly(At,"secondary"),useKeyOnly(Pt,"stacked"),useKeyOnly(Ct,"tertiary"),useKeyOnly(kt,"vertical"),useKeyOrValueAndKey(_,"attached"),useKeyOrValueAndKey(bt,"padded"),useTextAlignProp(Ot),useValueAndKey(mt,"floated"),"segment",et),Nt=getUnhandledProps$1(Segment,a),zt=getElementType(Segment,a);return React$5.createElement(zt,_extends$1({},Nt,{className:Dt}),isNil$1(j)?ct:j)}Segment.handledProps=["as","attached","basic","children","circular","className","clearing","color","compact","content","disabled","floated","inverted","loading","padded","piled","placeholder","raised","secondary","size","stacked","tertiary","textAlign","vertical"];Segment.Group=SegmentGroup;Segment.Inline=SegmentInline;Segment.propTypes={};var ManagerReferenceNodeContext=reactExports.createContext(),ManagerReferenceNodeSetterContext=reactExports.createContext();function Manager(a){var _=a.children,$=reactExports.useState(null),j=$[0],_e=$[1],et=reactExports.useRef(!1);reactExports.useEffect(function(){return function(){et.current=!0}},[]);var tt=reactExports.useCallback(function(rt){et.current||_e(rt)},[]);return reactExports.createElement(ManagerReferenceNodeContext.Provider,{value:j},reactExports.createElement(ManagerReferenceNodeSetterContext.Provider,{value:tt},_))}var unwrapArray=function a(_){return Array.isArray(_)?_[0]:_},safeInvoke=function a(_){if(typeof _=="function"){for(var $=arguments.length,j=new Array($>1?$-1:0),_e=1;_e<$;_e++)j[_e-1]=arguments[_e];return _.apply(void 0,j)}},setRef=function a(_,$){if(typeof _=="function")return safeInvoke(_,$);_!=null&&(_.current=$)},fromEntries=function a(_){return _.reduce(function($,j){var _e=j[0],et=j[1];return $[_e]=et,$},{})},useIsomorphicLayoutEffect=typeof window<"u"&&window.document&&window.document.createElement?reactExports.useLayoutEffect:reactExports.useEffect,top="top",bottom="bottom",right$2="right",left$2="left",auto="auto",basePlacements=[top,bottom,right$2,left$2],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(a,_){return a.concat([_+"-"+start,_+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(a,_){return a.concat([_,_+"-"+start,_+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main$5="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main$5,afterMain,beforeWrite,write,afterWrite];function getNodeName(a){return a?(a.nodeName||"").toLowerCase():null}function getWindow(a){if(a==null)return window;if(a.toString()!=="[object Window]"){var _=a.ownerDocument;return _&&_.defaultView||window}return a}function isElement(a){var _=getWindow(a).Element;return a instanceof _||a instanceof Element}function isHTMLElement(a){var _=getWindow(a).HTMLElement;return a instanceof _||a instanceof HTMLElement}function isShadowRoot(a){if(typeof ShadowRoot>"u")return!1;var _=getWindow(a).ShadowRoot;return a instanceof _||a instanceof ShadowRoot}function applyStyles(a){var _=a.state;Object.keys(_.elements).forEach(function($){var j=_.styles[$]||{},_e=_.attributes[$]||{},et=_.elements[$];!isHTMLElement(et)||!getNodeName(et)||(Object.assign(et.style,j),Object.keys(_e).forEach(function(tt){var rt=_e[tt];rt===!1?et.removeAttribute(tt):et.setAttribute(tt,rt===!0?"":rt)}))})}function effect$2(a){var _=a.state,$={popper:{position:_.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(_.elements.popper.style,$.popper),_.styles=$,_.elements.arrow&&Object.assign(_.elements.arrow.style,$.arrow),function(){Object.keys(_.elements).forEach(function(j){var _e=_.elements[j],et=_.attributes[j]||{},tt=Object.keys(_.styles.hasOwnProperty(j)?_.styles[j]:$[j]),rt=tt.reduce(function(it,ct){return it[ct]="",it},{});!isHTMLElement(_e)||!getNodeName(_e)||(Object.assign(_e.style,rt),Object.keys(et).forEach(function(it){_e.removeAttribute(it)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(a){return a.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var a=navigator.userAgentData;return a!=null&&a.brands&&Array.isArray(a.brands)?a.brands.map(function(_){return _.brand+"/"+_.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(a,_,$){_===void 0&&(_=!1),$===void 0&&($=!1);var j=a.getBoundingClientRect(),_e=1,et=1;_&&isHTMLElement(a)&&(_e=a.offsetWidth>0&&round(j.width)/a.offsetWidth||1,et=a.offsetHeight>0&&round(j.height)/a.offsetHeight||1);var tt=isElement(a)?getWindow(a):window,rt=tt.visualViewport,it=!isLayoutViewport()&&$,ct=(j.left+(it&&rt?rt.offsetLeft:0))/_e,dt=(j.top+(it&&rt?rt.offsetTop:0))/et,mt=j.width/_e,vt=j.height/et;return{width:mt,height:vt,top:dt,right:ct+mt,bottom:dt+vt,left:ct,x:ct,y:dt}}function getLayoutRect(a){var _=getBoundingClientRect(a),$=a.offsetWidth,j=a.offsetHeight;return Math.abs(_.width-$)<=1&&($=_.width),Math.abs(_.height-j)<=1&&(j=_.height),{x:a.offsetLeft,y:a.offsetTop,width:$,height:j}}function contains(a,_){var $=_.getRootNode&&_.getRootNode();if(a.contains(_))return!0;if($&&isShadowRoot($)){var j=_;do{if(j&&a.isSameNode(j))return!0;j=j.parentNode||j.host}while(j)}return!1}function getComputedStyle(a){return getWindow(a).getComputedStyle(a)}function isTableElement(a){return["table","td","th"].indexOf(getNodeName(a))>=0}function getDocumentElement(a){return((isElement(a)?a.ownerDocument:a.document)||window.document).documentElement}function getParentNode(a){return getNodeName(a)==="html"?a:a.assignedSlot||a.parentNode||(isShadowRoot(a)?a.host:null)||getDocumentElement(a)}function getTrueOffsetParent(a){return!isHTMLElement(a)||getComputedStyle(a).position==="fixed"?null:a.offsetParent}function getContainingBlock(a){var _=/firefox/i.test(getUAString()),$=/Trident/i.test(getUAString());if($&&isHTMLElement(a)){var j=getComputedStyle(a);if(j.position==="fixed")return null}var _e=getParentNode(a);for(isShadowRoot(_e)&&(_e=_e.host);isHTMLElement(_e)&&["html","body"].indexOf(getNodeName(_e))<0;){var et=getComputedStyle(_e);if(et.transform!=="none"||et.perspective!=="none"||et.contain==="paint"||["transform","perspective"].indexOf(et.willChange)!==-1||_&&et.willChange==="filter"||_&&et.filter&&et.filter!=="none")return _e;_e=_e.parentNode}return null}function getOffsetParent(a){for(var _=getWindow(a),$=getTrueOffsetParent(a);$&&isTableElement($)&&getComputedStyle($).position==="static";)$=getTrueOffsetParent($);return $&&(getNodeName($)==="html"||getNodeName($)==="body"&&getComputedStyle($).position==="static")?_:$||getContainingBlock(a)||_}function getMainAxisFromPlacement(a){return["top","bottom"].indexOf(a)>=0?"x":"y"}function within(a,_,$){return max(a,min(_,$))}function withinMaxClamp(a,_,$){var j=within(a,_,$);return j>$?$:j}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(a){return Object.assign({},getFreshSideObject(),a)}function expandToHashMap(a,_){return _.reduce(function($,j){return $[j]=a,$},{})}var toPaddingObject=function a(_,$){return _=typeof _=="function"?_(Object.assign({},$.rects,{placement:$.placement})):_,mergePaddingObject(typeof _!="number"?_:expandToHashMap(_,basePlacements))};function arrow(a){var _,$=a.state,j=a.name,_e=a.options,et=$.elements.arrow,tt=$.modifiersData.popperOffsets,rt=getBasePlacement($.placement),it=getMainAxisFromPlacement(rt),ct=[left$2,right$2].indexOf(rt)>=0,dt=ct?"height":"width";if(!(!et||!tt)){var mt=toPaddingObject(_e.padding,$),vt=getLayoutRect(et),wt=it==="y"?top:left$2,xt=it==="y"?bottom:right$2,bt=$.rects.reference[dt]+$.rects.reference[it]-tt[it]-$.rects.popper[dt],Et=tt[it]-$.rects.reference[it],$t=getOffsetParent(et),At=$t?it==="y"?$t.clientHeight||0:$t.clientWidth||0:0,Rt=bt/2-Et/2,Pt=mt[wt],Ct=At-vt[dt]-mt[xt],Ot=At/2-vt[dt]/2+Rt,kt=within(Pt,Ot,Ct),Dt=it;$.modifiersData[j]=(_={},_[Dt]=kt,_.centerOffset=kt-Ot,_)}}function effect$1(a){var _=a.state,$=a.options,j=$.element,_e=j===void 0?"[data-popper-arrow]":j;_e!=null&&(typeof _e=="string"&&(_e=_.elements.popper.querySelector(_e),!_e)||contains(_.elements.popper,_e)&&(_.elements.arrow=_e))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(a){return a.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(a,_){var $=a.x,j=a.y,_e=_.devicePixelRatio||1;return{x:round($*_e)/_e||0,y:round(j*_e)/_e||0}}function mapToStyles(a){var _,$=a.popper,j=a.popperRect,_e=a.placement,et=a.variation,tt=a.offsets,rt=a.position,it=a.gpuAcceleration,ct=a.adaptive,dt=a.roundOffsets,mt=a.isFixed,vt=tt.x,wt=vt===void 0?0:vt,xt=tt.y,bt=xt===void 0?0:xt,Et=typeof dt=="function"?dt({x:wt,y:bt}):{x:wt,y:bt};wt=Et.x,bt=Et.y;var $t=tt.hasOwnProperty("x"),At=tt.hasOwnProperty("y"),Rt=left$2,Pt=top,Ct=window;if(ct){var Ot=getOffsetParent($),kt="clientHeight",Dt="clientWidth";if(Ot===getWindow($)&&(Ot=getDocumentElement($),getComputedStyle(Ot).position!=="static"&&rt==="absolute"&&(kt="scrollHeight",Dt="scrollWidth")),Ot=Ot,_e===top||(_e===left$2||_e===right$2)&&et===end){Pt=bottom;var Nt=mt&&Ot===Ct&&Ct.visualViewport?Ct.visualViewport.height:Ot[kt];bt-=Nt-j.height,bt*=it?1:-1}if(_e===left$2||(_e===top||_e===bottom)&&et===end){Rt=right$2;var zt=mt&&Ot===Ct&&Ct.visualViewport?Ct.visualViewport.width:Ot[Dt];wt-=zt-j.width,wt*=it?1:-1}}var gt=Object.assign({position:rt},ct&&unsetSides),nt=dt===!0?roundOffsetsByDPR({x:wt,y:bt},getWindow($)):{x:wt,y:bt};if(wt=nt.x,bt=nt.y,it){var ot;return Object.assign({},gt,(ot={},ot[Pt]=At?"0":"",ot[Rt]=$t?"0":"",ot.transform=(Ct.devicePixelRatio||1)<=1?"translate("+wt+"px, "+bt+"px)":"translate3d("+wt+"px, "+bt+"px, 0)",ot))}return Object.assign({},gt,(_={},_[Pt]=At?bt+"px":"",_[Rt]=$t?wt+"px":"",_.transform="",_))}function computeStyles(a){var _=a.state,$=a.options,j=$.gpuAcceleration,_e=j===void 0?!0:j,et=$.adaptive,tt=et===void 0?!0:et,rt=$.roundOffsets,it=rt===void 0?!0:rt,ct={placement:getBasePlacement(_.placement),variation:getVariation(_.placement),popper:_.elements.popper,popperRect:_.rects.popper,gpuAcceleration:_e,isFixed:_.options.strategy==="fixed"};_.modifiersData.popperOffsets!=null&&(_.styles.popper=Object.assign({},_.styles.popper,mapToStyles(Object.assign({},ct,{offsets:_.modifiersData.popperOffsets,position:_.options.strategy,adaptive:tt,roundOffsets:it})))),_.modifiersData.arrow!=null&&(_.styles.arrow=Object.assign({},_.styles.arrow,mapToStyles(Object.assign({},ct,{offsets:_.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:it})))),_.attributes.popper=Object.assign({},_.attributes.popper,{"data-popper-placement":_.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(a){var _=a.state,$=a.instance,j=a.options,_e=j.scroll,et=_e===void 0?!0:_e,tt=j.resize,rt=tt===void 0?!0:tt,it=getWindow(_.elements.popper),ct=[].concat(_.scrollParents.reference,_.scrollParents.popper);return et&&ct.forEach(function(dt){dt.addEventListener("scroll",$.update,passive)}),rt&&it.addEventListener("resize",$.update,passive),function(){et&&ct.forEach(function(dt){dt.removeEventListener("scroll",$.update,passive)}),rt&&it.removeEventListener("resize",$.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function a(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(a){return a.replace(/left|right|bottom|top/g,function(_){return hash$1[_]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(a){return a.replace(/start|end/g,function(_){return hash[_]})}function getWindowScroll(a){var _=getWindow(a),$=_.pageXOffset,j=_.pageYOffset;return{scrollLeft:$,scrollTop:j}}function getWindowScrollBarX(a){return getBoundingClientRect(getDocumentElement(a)).left+getWindowScroll(a).scrollLeft}function getViewportRect(a,_){var $=getWindow(a),j=getDocumentElement(a),_e=$.visualViewport,et=j.clientWidth,tt=j.clientHeight,rt=0,it=0;if(_e){et=_e.width,tt=_e.height;var ct=isLayoutViewport();(ct||!ct&&_==="fixed")&&(rt=_e.offsetLeft,it=_e.offsetTop)}return{width:et,height:tt,x:rt+getWindowScrollBarX(a),y:it}}function getDocumentRect(a){var _,$=getDocumentElement(a),j=getWindowScroll(a),_e=(_=a.ownerDocument)==null?void 0:_.body,et=max($.scrollWidth,$.clientWidth,_e?_e.scrollWidth:0,_e?_e.clientWidth:0),tt=max($.scrollHeight,$.clientHeight,_e?_e.scrollHeight:0,_e?_e.clientHeight:0),rt=-j.scrollLeft+getWindowScrollBarX(a),it=-j.scrollTop;return getComputedStyle(_e||$).direction==="rtl"&&(rt+=max($.clientWidth,_e?_e.clientWidth:0)-et),{width:et,height:tt,x:rt,y:it}}function isScrollParent(a){var _=getComputedStyle(a),$=_.overflow,j=_.overflowX,_e=_.overflowY;return/auto|scroll|overlay|hidden/.test($+_e+j)}function getScrollParent(a){return["html","body","#document"].indexOf(getNodeName(a))>=0?a.ownerDocument.body:isHTMLElement(a)&&isScrollParent(a)?a:getScrollParent(getParentNode(a))}function listScrollParents(a,_){var $;_===void 0&&(_=[]);var j=getScrollParent(a),_e=j===(($=a.ownerDocument)==null?void 0:$.body),et=getWindow(j),tt=_e?[et].concat(et.visualViewport||[],isScrollParent(j)?j:[]):j,rt=_.concat(tt);return _e?rt:rt.concat(listScrollParents(getParentNode(tt)))}function rectToClientRect(a){return Object.assign({},a,{left:a.x,top:a.y,right:a.x+a.width,bottom:a.y+a.height})}function getInnerBoundingClientRect(a,_){var $=getBoundingClientRect(a,!1,_==="fixed");return $.top=$.top+a.clientTop,$.left=$.left+a.clientLeft,$.bottom=$.top+a.clientHeight,$.right=$.left+a.clientWidth,$.width=a.clientWidth,$.height=a.clientHeight,$.x=$.left,$.y=$.top,$}function getClientRectFromMixedType(a,_,$){return _===viewport?rectToClientRect(getViewportRect(a,$)):isElement(_)?getInnerBoundingClientRect(_,$):rectToClientRect(getDocumentRect(getDocumentElement(a)))}function getClippingParents(a){var _=listScrollParents(getParentNode(a)),$=["absolute","fixed"].indexOf(getComputedStyle(a).position)>=0,j=$&&isHTMLElement(a)?getOffsetParent(a):a;return isElement(j)?_.filter(function(_e){return isElement(_e)&&contains(_e,j)&&getNodeName(_e)!=="body"}):[]}function getClippingRect(a,_,$,j){var _e=_==="clippingParents"?getClippingParents(a):[].concat(_),et=[].concat(_e,[$]),tt=et[0],rt=et.reduce(function(it,ct){var dt=getClientRectFromMixedType(a,ct,j);return it.top=max(dt.top,it.top),it.right=min(dt.right,it.right),it.bottom=min(dt.bottom,it.bottom),it.left=max(dt.left,it.left),it},getClientRectFromMixedType(a,tt,j));return rt.width=rt.right-rt.left,rt.height=rt.bottom-rt.top,rt.x=rt.left,rt.y=rt.top,rt}function computeOffsets(a){var _=a.reference,$=a.element,j=a.placement,_e=j?getBasePlacement(j):null,et=j?getVariation(j):null,tt=_.x+_.width/2-$.width/2,rt=_.y+_.height/2-$.height/2,it;switch(_e){case top:it={x:tt,y:_.y-$.height};break;case bottom:it={x:tt,y:_.y+_.height};break;case right$2:it={x:_.x+_.width,y:rt};break;case left$2:it={x:_.x-$.width,y:rt};break;default:it={x:_.x,y:_.y}}var ct=_e?getMainAxisFromPlacement(_e):null;if(ct!=null){var dt=ct==="y"?"height":"width";switch(et){case start:it[ct]=it[ct]-(_[dt]/2-$[dt]/2);break;case end:it[ct]=it[ct]+(_[dt]/2-$[dt]/2);break}}return it}function detectOverflow(a,_){_===void 0&&(_={});var $=_,j=$.placement,_e=j===void 0?a.placement:j,et=$.strategy,tt=et===void 0?a.strategy:et,rt=$.boundary,it=rt===void 0?clippingParents:rt,ct=$.rootBoundary,dt=ct===void 0?viewport:ct,mt=$.elementContext,vt=mt===void 0?popper:mt,wt=$.altBoundary,xt=wt===void 0?!1:wt,bt=$.padding,Et=bt===void 0?0:bt,$t=mergePaddingObject(typeof Et!="number"?Et:expandToHashMap(Et,basePlacements)),At=vt===popper?reference:popper,Rt=a.rects.popper,Pt=a.elements[xt?At:vt],Ct=getClippingRect(isElement(Pt)?Pt:Pt.contextElement||getDocumentElement(a.elements.popper),it,dt,tt),Ot=getBoundingClientRect(a.elements.reference),kt=computeOffsets({reference:Ot,element:Rt,strategy:"absolute",placement:_e}),Dt=rectToClientRect(Object.assign({},Rt,kt)),Nt=vt===popper?Dt:Ot,zt={top:Ct.top-Nt.top+$t.top,bottom:Nt.bottom-Ct.bottom+$t.bottom,left:Ct.left-Nt.left+$t.left,right:Nt.right-Ct.right+$t.right},gt=a.modifiersData.offset;if(vt===popper&>){var nt=gt[_e];Object.keys(zt).forEach(function(ot){var st=[right$2,bottom].indexOf(ot)>=0?1:-1,lt=[top,bottom].indexOf(ot)>=0?"y":"x";zt[ot]+=nt[lt]*st})}return zt}function computeAutoPlacement(a,_){_===void 0&&(_={});var $=_,j=$.placement,_e=$.boundary,et=$.rootBoundary,tt=$.padding,rt=$.flipVariations,it=$.allowedAutoPlacements,ct=it===void 0?placements:it,dt=getVariation(j),mt=dt?rt?variationPlacements:variationPlacements.filter(function(xt){return getVariation(xt)===dt}):basePlacements,vt=mt.filter(function(xt){return ct.indexOf(xt)>=0});vt.length===0&&(vt=mt);var wt=vt.reduce(function(xt,bt){return xt[bt]=detectOverflow(a,{placement:bt,boundary:_e,rootBoundary:et,padding:tt})[getBasePlacement(bt)],xt},{});return Object.keys(wt).sort(function(xt,bt){return wt[xt]-wt[bt]})}function getExpandedFallbackPlacements(a){if(getBasePlacement(a)===auto)return[];var _=getOppositePlacement(a);return[getOppositeVariationPlacement(a),_,getOppositeVariationPlacement(_)]}function flip(a){var _=a.state,$=a.options,j=a.name;if(!_.modifiersData[j]._skip){for(var _e=$.mainAxis,et=_e===void 0?!0:_e,tt=$.altAxis,rt=tt===void 0?!0:tt,it=$.fallbackPlacements,ct=$.padding,dt=$.boundary,mt=$.rootBoundary,vt=$.altBoundary,wt=$.flipVariations,xt=wt===void 0?!0:wt,bt=$.allowedAutoPlacements,Et=_.options.placement,$t=getBasePlacement(Et),At=$t===Et,Rt=it||(At||!xt?[getOppositePlacement(Et)]:getExpandedFallbackPlacements(Et)),Pt=[Et].concat(Rt).reduce(function(It,Lt){return It.concat(getBasePlacement(Lt)===auto?computeAutoPlacement(_,{placement:Lt,boundary:dt,rootBoundary:mt,padding:ct,flipVariations:xt,allowedAutoPlacements:bt}):Lt)},[]),Ct=_.rects.reference,Ot=_.rects.popper,kt=new Map,Dt=!0,Nt=Pt[0],zt=0;zt<Pt.length;zt++){var gt=Pt[zt],nt=getBasePlacement(gt),ot=getVariation(gt)===start,st=[top,bottom].indexOf(nt)>=0,lt=st?"width":"height",pt=detectOverflow(_,{placement:gt,boundary:dt,rootBoundary:mt,altBoundary:vt,padding:ct}),_t=st?ot?right$2:left$2:ot?bottom:top;Ct[lt]>Ot[lt]&&(_t=getOppositePlacement(_t));var St=getOppositePlacement(_t),yt=[];if(et&&yt.push(pt[nt]<=0),rt&&yt.push(pt[_t]<=0,pt[St]<=0),yt.every(function(It){return It})){Nt=gt,Dt=!1;break}kt.set(gt,yt)}if(Dt)for(var at=xt?3:1,ht=function(Lt){var jt=Pt.find(function(Gt){var tr=kt.get(Gt);if(tr)return tr.slice(0,Lt).every(function(er){return er})});if(jt)return Nt=jt,"break"},Mt=at;Mt>0;Mt--){var Tt=ht(Mt);if(Tt==="break")break}_.placement!==Nt&&(_.modifiersData[j]._skip=!0,_.placement=Nt,_.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(a,_,$){return $===void 0&&($={x:0,y:0}),{top:a.top-_.height-$.y,right:a.right-_.width+$.x,bottom:a.bottom-_.height+$.y,left:a.left-_.width-$.x}}function isAnySideFullyClipped(a){return[top,right$2,bottom,left$2].some(function(_){return a[_]>=0})}function hide(a){var _=a.state,$=a.name,j=_.rects.reference,_e=_.rects.popper,et=_.modifiersData.preventOverflow,tt=detectOverflow(_,{elementContext:"reference"}),rt=detectOverflow(_,{altBoundary:!0}),it=getSideOffsets(tt,j),ct=getSideOffsets(rt,_e,et),dt=isAnySideFullyClipped(it),mt=isAnySideFullyClipped(ct);_.modifiersData[$]={referenceClippingOffsets:it,popperEscapeOffsets:ct,isReferenceHidden:dt,hasPopperEscaped:mt},_.attributes.popper=Object.assign({},_.attributes.popper,{"data-popper-reference-hidden":dt,"data-popper-escaped":mt})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(a,_,$){var j=getBasePlacement(a),_e=[left$2,top].indexOf(j)>=0?-1:1,et=typeof $=="function"?$(Object.assign({},_,{placement:a})):$,tt=et[0],rt=et[1];return tt=tt||0,rt=(rt||0)*_e,[left$2,right$2].indexOf(j)>=0?{x:rt,y:tt}:{x:tt,y:rt}}function offset(a){var _=a.state,$=a.options,j=a.name,_e=$.offset,et=_e===void 0?[0,0]:_e,tt=placements.reduce(function(dt,mt){return dt[mt]=distanceAndSkiddingToXY(mt,_.rects,et),dt},{}),rt=tt[_.placement],it=rt.x,ct=rt.y;_.modifiersData.popperOffsets!=null&&(_.modifiersData.popperOffsets.x+=it,_.modifiersData.popperOffsets.y+=ct),_.modifiersData[j]=tt}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(a){var _=a.state,$=a.name;_.modifiersData[$]=computeOffsets({reference:_.rects.reference,element:_.rects.popper,strategy:"absolute",placement:_.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(a){return a==="x"?"y":"x"}function preventOverflow(a){var _=a.state,$=a.options,j=a.name,_e=$.mainAxis,et=_e===void 0?!0:_e,tt=$.altAxis,rt=tt===void 0?!1:tt,it=$.boundary,ct=$.rootBoundary,dt=$.altBoundary,mt=$.padding,vt=$.tether,wt=vt===void 0?!0:vt,xt=$.tetherOffset,bt=xt===void 0?0:xt,Et=detectOverflow(_,{boundary:it,rootBoundary:ct,padding:mt,altBoundary:dt}),$t=getBasePlacement(_.placement),At=getVariation(_.placement),Rt=!At,Pt=getMainAxisFromPlacement($t),Ct=getAltAxis(Pt),Ot=_.modifiersData.popperOffsets,kt=_.rects.reference,Dt=_.rects.popper,Nt=typeof bt=="function"?bt(Object.assign({},_.rects,{placement:_.placement})):bt,zt=typeof Nt=="number"?{mainAxis:Nt,altAxis:Nt}:Object.assign({mainAxis:0,altAxis:0},Nt),gt=_.modifiersData.offset?_.modifiersData.offset[_.placement]:null,nt={x:0,y:0};if(Ot){if(et){var ot,st=Pt==="y"?top:left$2,lt=Pt==="y"?bottom:right$2,pt=Pt==="y"?"height":"width",_t=Ot[Pt],St=_t+Et[st],yt=_t-Et[lt],at=wt?-Dt[pt]/2:0,ht=At===start?kt[pt]:Dt[pt],Mt=At===start?-Dt[pt]:-kt[pt],Tt=_.elements.arrow,It=wt&&Tt?getLayoutRect(Tt):{width:0,height:0},Lt=_.modifiersData["arrow#persistent"]?_.modifiersData["arrow#persistent"].padding:getFreshSideObject(),jt=Lt[st],Gt=Lt[lt],tr=within(0,kt[pt],It[pt]),er=Rt?kt[pt]/2-at-tr-jt-zt.mainAxis:ht-tr-jt-zt.mainAxis,Jt=Rt?-kt[pt]/2+at+tr+Gt+zt.mainAxis:Mt+tr+Gt+zt.mainAxis,Wt=_.elements.arrow&&getOffsetParent(_.elements.arrow),Kt=Wt?Pt==="y"?Wt.clientTop||0:Wt.clientLeft||0:0,lr=(ot=gt==null?void 0:gt[Pt])!=null?ot:0,Lr=_t+er-lr-Kt,$r=_t+Jt-lr,wr=within(wt?min(St,Lr):St,_t,wt?max(yt,$r):yt);Ot[Pt]=wr,nt[Pt]=wr-_t}if(rt){var an,Or=Pt==="x"?top:left$2,yr=Pt==="x"?bottom:right$2,cn=Ot[Ct],Ar=Ct==="y"?"height":"width",Gr=cn+Et[Or],hn=cn-Et[yr],Hr=[top,left$2].indexOf($t)!==-1,Jr=(an=gt==null?void 0:gt[Ct])!=null?an:0,An=Hr?Gr:cn-kt[Ar]-Dt[Ar]-Jr+zt.altAxis,Vr=Hr?cn+kt[Ar]+Dt[Ar]-Jr-zt.altAxis:hn,Yr=wt&&Hr?withinMaxClamp(An,cn,Vr):within(wt?An:Gr,cn,wt?Vr:hn);Ot[Ct]=Yr,nt[Ct]=Yr-cn}_.modifiersData[j]=nt}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(a){return{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}}function getNodeScroll(a){return a===getWindow(a)||!isHTMLElement(a)?getWindowScroll(a):getHTMLElementScroll(a)}function isElementScaled(a){var _=a.getBoundingClientRect(),$=round(_.width)/a.offsetWidth||1,j=round(_.height)/a.offsetHeight||1;return $!==1||j!==1}function getCompositeRect(a,_,$){$===void 0&&($=!1);var j=isHTMLElement(_),_e=isHTMLElement(_)&&isElementScaled(_),et=getDocumentElement(_),tt=getBoundingClientRect(a,_e,$),rt={scrollLeft:0,scrollTop:0},it={x:0,y:0};return(j||!j&&!$)&&((getNodeName(_)!=="body"||isScrollParent(et))&&(rt=getNodeScroll(_)),isHTMLElement(_)?(it=getBoundingClientRect(_,!0),it.x+=_.clientLeft,it.y+=_.clientTop):et&&(it.x=getWindowScrollBarX(et))),{x:tt.left+rt.scrollLeft-it.x,y:tt.top+rt.scrollTop-it.y,width:tt.width,height:tt.height}}function order(a){var _=new Map,$=new Set,j=[];a.forEach(function(et){_.set(et.name,et)});function _e(et){$.add(et.name);var tt=[].concat(et.requires||[],et.requiresIfExists||[]);tt.forEach(function(rt){if(!$.has(rt)){var it=_.get(rt);it&&_e(it)}}),j.push(et)}return a.forEach(function(et){$.has(et.name)||_e(et)}),j}function orderModifiers(a){var _=order(a);return modifierPhases.reduce(function($,j){return $.concat(_.filter(function(_e){return _e.phase===j}))},[])}function debounce(a){var _;return function(){return _||(_=new Promise(function($){Promise.resolve().then(function(){_=void 0,$(a())})})),_}}function mergeByName(a){var _=a.reduce(function($,j){var _e=$[j.name];return $[j.name]=_e?Object.assign({},_e,j,{options:Object.assign({},_e.options,j.options),data:Object.assign({},_e.data,j.data)}):j,$},{});return Object.keys(_).map(function($){return _[$]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var a=arguments.length,_=new Array(a),$=0;$<a;$++)_[$]=arguments[$];return!_.some(function(j){return!(j&&typeof j.getBoundingClientRect=="function")})}function popperGenerator(a){a===void 0&&(a={});var _=a,$=_.defaultModifiers,j=$===void 0?[]:$,_e=_.defaultOptions,et=_e===void 0?DEFAULT_OPTIONS:_e;return function(rt,it,ct){ct===void 0&&(ct=et);var dt={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,et),modifiersData:{},elements:{reference:rt,popper:it},attributes:{},styles:{}},mt=[],vt=!1,wt={state:dt,setOptions:function($t){var At=typeof $t=="function"?$t(dt.options):$t;bt(),dt.options=Object.assign({},et,dt.options,At),dt.scrollParents={reference:isElement(rt)?listScrollParents(rt):rt.contextElement?listScrollParents(rt.contextElement):[],popper:listScrollParents(it)};var Rt=orderModifiers(mergeByName([].concat(j,dt.options.modifiers)));return dt.orderedModifiers=Rt.filter(function(Pt){return Pt.enabled}),xt(),wt.update()},forceUpdate:function(){if(!vt){var $t=dt.elements,At=$t.reference,Rt=$t.popper;if(areValidElements(At,Rt)){dt.rects={reference:getCompositeRect(At,getOffsetParent(Rt),dt.options.strategy==="fixed"),popper:getLayoutRect(Rt)},dt.reset=!1,dt.placement=dt.options.placement,dt.orderedModifiers.forEach(function(zt){return dt.modifiersData[zt.name]=Object.assign({},zt.data)});for(var Pt=0;Pt<dt.orderedModifiers.length;Pt++){if(dt.reset===!0){dt.reset=!1,Pt=-1;continue}var Ct=dt.orderedModifiers[Pt],Ot=Ct.fn,kt=Ct.options,Dt=kt===void 0?{}:kt,Nt=Ct.name;typeof Ot=="function"&&(dt=Ot({state:dt,options:Dt,name:Nt,instance:wt})||dt)}}}},update:debounce(function(){return new Promise(function(Et){wt.forceUpdate(),Et(dt)})}),destroy:function(){bt(),vt=!0}};if(!areValidElements(rt,it))return wt;wt.setOptions(ct).then(function(Et){!vt&&ct.onFirstUpdate&&ct.onFirstUpdate(Et)});function xt(){dt.orderedModifiers.forEach(function(Et){var $t=Et.name,At=Et.options,Rt=At===void 0?{}:At,Pt=Et.effect;if(typeof Pt=="function"){var Ct=Pt({state:dt,name:$t,instance:wt,options:Rt}),Ot=function(){};mt.push(Ct||Ot)}})}function bt(){mt.forEach(function(Et){return Et()}),mt=[]}return wt}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers}),EMPTY_MODIFIERS$1=[],usePopper=function a(_,$,j){j===void 0&&(j={});var _e=reactExports.useRef(null),et={onFirstUpdate:j.onFirstUpdate,placement:j.placement||"bottom",strategy:j.strategy||"absolute",modifiers:j.modifiers||EMPTY_MODIFIERS$1},tt=reactExports.useState({styles:{popper:{position:et.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),rt=tt[0],it=tt[1],ct=reactExports.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(wt){var xt=wt.state,bt=Object.keys(xt.elements);reactDomExports.flushSync(function(){it({styles:fromEntries(bt.map(function(Et){return[Et,xt.styles[Et]||{}]})),attributes:fromEntries(bt.map(function(Et){return[Et,xt.attributes[Et]]}))})})},requires:["computeStyles"]}},[]),dt=reactExports.useMemo(function(){var vt={onFirstUpdate:et.onFirstUpdate,placement:et.placement,strategy:et.strategy,modifiers:[].concat(et.modifiers,[ct,{name:"applyStyles",enabled:!1}])};return isEqual$1(_e.current,vt)?_e.current||vt:(_e.current=vt,vt)},[et.onFirstUpdate,et.placement,et.strategy,et.modifiers,ct]),mt=reactExports.useRef();return useIsomorphicLayoutEffect(function(){mt.current&&mt.current.setOptions(dt)},[dt]),useIsomorphicLayoutEffect(function(){if(!(_==null||$==null)){var vt=j.createPopper||createPopper,wt=vt(_,$,dt);return mt.current=wt,function(){wt.destroy(),mt.current=null}}},[_,$,j.createPopper]),{state:mt.current?mt.current.state:null,styles:rt.styles,attributes:rt.attributes,update:mt.current?mt.current.update:null,forceUpdate:mt.current?mt.current.forceUpdate:null}},NOOP=function a(){},NOOP_PROMISE=function a(){return Promise.resolve(null)},EMPTY_MODIFIERS=[];function Popper(a){var _=a.placement,$=_===void 0?"bottom":_,j=a.strategy,_e=j===void 0?"absolute":j,et=a.modifiers,tt=et===void 0?EMPTY_MODIFIERS:et,rt=a.referenceElement,it=a.onFirstUpdate,ct=a.innerRef,dt=a.children,mt=reactExports.useContext(ManagerReferenceNodeContext),vt=reactExports.useState(null),wt=vt[0],xt=vt[1],bt=reactExports.useState(null),Et=bt[0],$t=bt[1];reactExports.useEffect(function(){setRef(ct,wt)},[ct,wt]);var At=reactExports.useMemo(function(){return{placement:$,strategy:_e,onFirstUpdate:it,modifiers:[].concat(tt,[{name:"arrow",enabled:Et!=null,options:{element:Et}}])}},[$,_e,it,tt,Et]),Rt=usePopper(rt||mt,wt,At),Pt=Rt.state,Ct=Rt.styles,Ot=Rt.forceUpdate,kt=Rt.update,Dt=reactExports.useMemo(function(){return{ref:xt,style:Ct.popper,placement:Pt?Pt.placement:$,hasPopperEscaped:Pt&&Pt.modifiersData.hide?Pt.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:Pt&&Pt.modifiersData.hide?Pt.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:Ct.arrow,ref:$t},forceUpdate:Ot||NOOP,update:kt||NOOP_PROMISE}},[xt,$t,$,Pt,Ct,kt,Ot]);return unwrapArray(dt)(Dt)}var warning=function(){},warning_1=warning;const warning$1=getDefaultExportFromCjs$1(warning_1);function Reference(a){var _=a.children,$=a.innerRef,j=reactExports.useContext(ManagerReferenceNodeSetterContext),_e=reactExports.useCallback(function(et){setRef($,et),safeInvoke(j,et)},[$,j]);return reactExports.useEffect(function(){return function(){return setRef($,null)}},[]),reactExports.useEffect(function(){warning$1(!!j,"`Reference` should not be used outside of a `Manager` component.")},[j]),unwrapArray(_)({ref:_e})}const esm=Object.freeze(Object.defineProperty({__proto__:null,Manager,Popper,Reference,usePopper},Symbol.toStringTag,{value:"Module"}));function _defineProperties(a,_){for(var $=0;$<_.length;$++){var j=_[$];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(a,j.key,j)}}function _createClass(a,_,$){return _&&_defineProperties(a.prototype,_),$&&_defineProperties(a,$),Object.defineProperty(a,"prototype",{writable:!1}),a}function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var _=1;_<arguments.length;_++){var $=arguments[_];for(var j in $)Object.prototype.hasOwnProperty.call($,j)&&(a[j]=$[j])}return a},_extends.apply(this,arguments)}function _inheritsLoose(a,_){a.prototype=Object.create(_.prototype),a.prototype.constructor=a,_setPrototypeOf(a,_)}function _setPrototypeOf(a,_){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,_e){return j.__proto__=_e,j},_setPrototypeOf(a,_)}function _objectWithoutPropertiesLoose(a,_){if(a==null)return{};var $={},j=Object.keys(a),_e,et;for(et=0;et<j.length;et++)_e=j[et],!(_.indexOf(_e)>=0)&&($[_e]=a[_e]);return $}var keys={enter:13,escape:27,space:32},isSelectable=function a(_,$,j){return!($&&isBefore$1(_,$)||j&&isBefore$1(j,_))},getToday=function a(_,$){var j=new Date;return{date:startOfDay$1(j),nextMonth:!1,prevMonth:!1,selectable:isSelectable(j,_,$),selected:!1,today:!0}},formatDate=function a(_,$,j){return _?format(startOfDay$1(_),convertTokens_2($),j):void 0},omit=function a(_,$){var j=_extends({},$);return _.forEach(function(_e){return delete j[_e]}),j},pick=function a(_,$){var j={};return _.forEach(function(_e){j[_e]=$[_e]}),j},moveElementsByN=function a(_,$){return $.slice(_).concat($.slice(0,_))},formatSelectedDate=function a(_,$,j){return _?Array.isArray(_)?_.map(function(_e){return formatDate(_e,$,j)}).join(" - "):formatDate(_,$,j):""},parseFormatString=function a(_){return _.replace(/[D, Y]/gi,function($){return $.toLowerCase()})},parseOnBlur=function a(_,$){return parse(_,parseFormatString($),new Date)},parseRangeOnBlur=function a(_,$){var j=parseFormatString($),_e=_.split(" - ");return _e.map(function(et){return parse(et,j,new Date)}).sort(function(et,tt){return et>tt?1:-1})},onlyNumbers=function a(_){return _===void 0&&(_=""),_.replace(/[^\d]/g,"")};function getShortDate(a){if(a)return format(a,"yyyy-MM-dd")}function composeEventHandlers(){for(var a=arguments.length,_=new Array(a),$=0;$<a;$++)_[$]=arguments[$];return function(j){for(var _e=arguments.length,et=new Array(_e>1?_e-1:0),tt=1;tt<_e;tt++)et[tt-1]=arguments[tt];return _.some(function(rt){return rt&&rt.apply(void 0,[j].concat(et)),j.defaultPrevented})}}function getArrowKeyHandlers(a){return function(_){var $=_.keyCode,j={37:a.left,39:a.right,38:a.up,40:a.down}[$];j&&j(_)}}function isInRange(a,_){return a.length===2&&a[0]<=_&&a[1]>=_}var _excluded$6=["refKey"],_excluded2$1=["children"],BaseDatePicker=function(a){_inheritsLoose(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.state={offset:0},j.rootNode=React$5.createRef(),j.handleArrowKeys=getArrowKeyHandlers({left:function(){return j.getKeyOffset(-1)},right:function(){return j.getKeyOffset(1)},up:function(){return j.getKeyOffset(-7)},down:function(){return j.getKeyOffset(7)}}),j.getRootProps=function(rt){var it,ct=rt===void 0?{}:rt,dt=ct.refKey,mt=dt===void 0?"ref":dt,vt=_objectWithoutPropertiesLoose(ct,_excluded$6);return _extends((it={},it[mt]=j.rootNode,it.onKeyDown=j.handleArrowKeys,it),vt)},j._handleOffsetChanged=function(rt){j.setState({offset:rt})},j}var $=_.prototype;return $.getKeyOffset=function(_e){if(this.rootNode.current){var et=document.activeElement,tt=Array.from(this.rootNode.current.querySelectorAll("button:not(:disabled)"));tt.some(function(rt,it){var ct=it+_e;return rt!==et?!1:ct<=tt.length-1&&ct>=0?(tt[ct].focus(),!0):(tt[0].focus(),!0)})}},$.componentDidUpdate=function(_e){this.props.date!==_e.date&&this._handleOffsetChanged(0)},$.render=function(){var _e=this,et=this.props,tt=et.children,rt=_objectWithoutPropertiesLoose(et,_excluded2$1);return jsxRuntimeExports.jsx(Dayzed,_extends({},rt,{offset:this.state.offset,onOffsetChanged:this._handleOffsetChanged,render:function(ct){return tt(_extends({},ct,{getRootProps:_e.getRootProps}))}}))},_}(React$5.Component),DatePicker=function(a){_inheritsLoose(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j._handleOnDateSelected=function(rt,it){var ct=rt.selectable,dt=rt.date,mt=j.props,vt=mt.clearOnSameDateClick,wt=mt.selected,xt=mt.onChange;if(ct){var bt=dt;wt&&wt.getTime()===dt.getTime()&&vt&&(bt=null),xt&&xt(it,bt)}},j}var $=_.prototype;return $.render=function(){return jsxRuntimeExports.jsx(BaseDatePicker,_extends({},this.props,{onDateSelected:this._handleOnDateSelected}))},_}(React$5.Component),_excluded$5=["onMouseEnter","onFocus"],_excluded2=["children"],_excluded3=["getRootProps","getDateProps"],RangeDatePicker=function(a){_inheritsLoose(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.state={hoveredDate:null},j.setHoveredDate=function(rt){j.setState(function(it){return it.hoveredDate===rt?null:{hoveredDate:rt}})},j.onMouseLeave=function(){j.setHoveredDate(null)},j._handleOnDateSelected=function(rt,it){var ct=rt.selectable,dt=rt.date,mt=j.props,vt=mt.selected,wt=mt.onChange;if(ct){var xt=dt.getTime(),bt=[].concat(vt);if(vt.length)if(vt.length===1){var Et=vt[0].getTime();Et<xt?bt.push(dt):bt.unshift(dt)}else bt.length===2&&(bt=[dt]);else bt.push(dt);wt&&wt(it,bt),bt.length===2&&j.setHoveredDate(null)}},j.getEnhancedDateProps=function(rt,it,ct){var dt=ct.onMouseEnter,mt=ct.onFocus,vt=_objectWithoutPropertiesLoose(ct,_excluded$5),wt=j.state.hoveredDate,xt=vt.dateObj.date;return rt(_extends({},vt,{inRange:isInRange(it,xt),start:it[0]&&isSameDay(it[0],xt),end:it[1]&&isSameDay(it[1],xt),hovered:wt&&isSameDay(wt,xt),onMouseEnter:composeEventHandlers(dt,function(){j.onHoverFocusDate(xt)}),onFocus:composeEventHandlers(mt,function(){j.onHoverFocusDate(xt)})}))},j.getEnhancedRootProps=function(rt,it){return rt(_extends({},it,{onMouseLeave:j.onMouseLeave}))},j}var $=_.prototype;return $.onHoverFocusDate=function(_e){this.props.selected.length===1&&this.setHoveredDate(_e)},$.render=function(){var _e=this,et=this.props,tt=et.children,rt=_objectWithoutPropertiesLoose(et,_excluded2),it=this.state.hoveredDate,ct=this.props.selected,dt=ct.length===2||!ct.length||!it?ct:[ct[0],it].sort(compareAsc);return jsxRuntimeExports.jsx(BaseDatePicker,_extends({},rt,{onDateSelected:this._handleOnDateSelected,children:function(vt){var wt=vt.getRootProps,xt=vt.getDateProps,bt=_objectWithoutPropertiesLoose(vt,_excluded3);return tt(_extends({},bt,{getRootProps:_e.getEnhancedRootProps.bind(_e,wt),getDateProps:_e.getEnhancedDateProps.bind(_e,xt,dt)}))}}))},_}(React$5.Component);RangeDatePicker.defaultProps={selected:[]};var _excluded$4=["icon"],CustomButton=function a(_){var $=_.icon,j=_objectWithoutPropertiesLoose(_,_excluded$4);return jsxRuntimeExports.jsx(Button$2,_extends({basic:!0,compact:!0,icon:$,type:"button"},j))};function styleInject(a,_){_===void 0&&(_={});var $=_.insertAt;if(!(!a||typeof document>"u")){var j=document.head||document.getElementsByTagName("head")[0],_e=document.createElement("style");_e.type="text/css",$==="top"&&j.firstChild?j.insertBefore(_e,j.firstChild):j.appendChild(_e),_e.styleSheet?_e.styleSheet.cssText=a:_e.appendChild(document.createTextNode(a))}}var css_248z$1=".clndr-cell{background-color:#fff;border:none;color:inherit;cursor:pointer;font-family:inherit;height:30px;padding:5px 0;transition:all .2s}.clndr-cell.inverted{background-color:#4f4f4f}.clndr-cell.inverted:hover{background-color:#757575;color:inherit}.clndr-cell:hover{background-color:#cacbcd;color:inherit}.clndr-cell-today{background-color:#e0e1e2}.clndr-cell-inrange{background-color:#cacbcd;color:inherit}.clndr-cell-inrange.inverted{background-color:#757575;color:inherit}.clndr-cell-disabled{cursor:default;opacity:.45}.clndr-cell-disabled:hover{background-color:#fff}.clndr-cell-disabled.inverted:hover{background-color:#4f4f4f;color:inherit}.clndr-cell-selected{background-color:#4f4f4f;color:#f2f2f2}.clndr-cell-selected.inverted{background-color:#fff;color:#000}.clndr-cell-other-month{color:#d9d9d9}.clndr-cell-other-month.inverted{color:#a6a6a6}";styleInject(css_248z$1);var _excluded$3=["children","end","hovered","inRange","inverted","nextMonth","prevMonth","selectable","selected","start","today"],CalendarCell=function a(_){var $=_.children,j=_.inRange,_e=_.inverted,et=_.nextMonth,tt=_.prevMonth,rt=_.selectable,it=_.selected,ct=_.today,dt=_objectWithoutPropertiesLoose(_,_excluded$3),mt=classNames("clndr-cell",{inverted:_e,"clndr-cell-today":ct,"clndr-cell-disabled":!rt,"clndr-cell-other-month":et||tt,"clndr-cell-inrange":j,"clndr-cell-selected":it});return $?jsxRuntimeExports.jsx("button",_extends({className:mt,disabled:!rt,type:"button"},dt,{children:$})):jsxRuntimeExports.jsx("span",_extends({className:mt,tabIndex:$?0:-1},dt,{children:$}))};CalendarCell.defaultProps={end:!1,hovered:!1,inRange:!1,nextMonth:!1,prevMonth:!1,start:!1};var _excluded$2=["aria-label","children","end","hovered","inRange","nextMonth","prevMonth","selectable","selected","start","today"],style$1={marginTop:10},TodayButton=function a(_){var $=_["aria-label"],j=_.children,_e=_objectWithoutPropertiesLoose(_,_excluded$2);return jsxRuntimeExports.jsx(Button$2,_extends({"aria-label":$+", "+j,className:"clndr-button-today",compact:!0,"data-testid":"datepicker-today-button",fluid:!0,style:style$1,type:"button"},_e,{children:j}))},css_248z=".clndr-calendars-segment{margin-bottom:.25rem!important;margin-top:.25rem!important;text-align:center}.clndr-calendars-segment.clndr-floating{position:absolute!important;z-index:2000}.clndr-calendars-wrapper{grid-gap:1em;display:grid;grid-template-columns:repeat(var(--n,1),1fr)}.clndr-control{align-items:center;display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:10px}.clndr-days{grid-gap:1px;background-color:rgba(0,0,0,.1);border:1px solid rgba(0,0,0,.1);border-radius:.28571429rem;display:grid;grid-template-columns:repeat(7,minmax(2.2rem,1fr));overflow:hidden;text-align:center}.clndr-left{left:0}.clndr-right{right:0}.clndr-top{bottom:100%}.clndr-bottom{top:100%}.clndr-calendars-segment.clndr-top{box-shadow:0 -1px 2px 0 rgba(34,36,38,.15)!important;margin-bottom:.25rem!important}";styleInject(css_248z);var _excluded$1=["ref"],styles$9={leftBtn:{textAlign:"start"},rightBtn:{textAlign:"end"}},pointings={"top left":"clndr-top clndr-left","top right":"clndr-top clndr-right",left:"clndr-left",right:"clndr-right"},Calendar=function a(_){var $,j=_.calendars,_e=_.filterDate,et=_.getBackProps,tt=_.getDateProps,rt=_.getForwardProps,it=_.getRootProps,ct=_.inline,dt=_.inverted,mt=_.maxDate,vt=_.minDate,wt=_.months,xt=_.nextMonth,bt=_.nextYear,Et=_.previousMonth,$t=_.previousYear,At=_.showToday,Rt=_.todayButton,Pt=_.weekdays,Ct=_.pointing,Ot=it(),kt=Ot.ref,Dt=_objectWithoutPropertiesLoose(Ot,_excluded$1),Nt=reactExports.useRef(),zt=function(nt){Nt.current=nt.target.getAttribute("aria-label")};return reactExports.useEffect(function(){if(Nt.current){var gt='[aria-label="'+Nt.current+'"]',nt=document.querySelector(gt);nt&&document.activeElement!==nt&&nt.focus()}}),jsxRuntimeExports.jsx(Ref,{innerRef:kt,children:jsxRuntimeExports.jsxs(Segment,_extends({},Dt,{inverted:dt,className:classNames("clndr-calendars-segment",($={"clndr-floating":!ct},$[pointings[Ct]]=!ct,$)),children:[jsxRuntimeExports.jsx("div",{className:"clndr-calendars-wrapper",style:{"--n":j.length},children:j.map(function(gt,nt){return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"clndr-control",children:[jsxRuntimeExports.jsx("div",{style:styles$9.leftBtn,children:nt===0&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(CustomButton,_extends({icon:"angle double left",inverted:dt,title:$t,type:"button"},et({calendars:j,"aria-label":$t,offset:12,onClick:zt}))),jsxRuntimeExports.jsx(CustomButton,_extends({icon:"angle left",inverted:dt,style:{marginRight:0},title:Et,type:"button"},et({calendars:j,"aria-label":Et,onClick:zt})))]})}),jsxRuntimeExports.jsxs("span",{title:wt[gt.month]+" "+gt.year,children:[wt[gt.month].slice(0,3)," ",gt.year]}),jsxRuntimeExports.jsx("div",{style:styles$9.rightBtn,children:nt===j.length-1&&jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx(CustomButton,_extends({icon:"angle right",inverted:dt,title:xt,type:"button"},rt({calendars:j,"aria-label":xt,onClick:zt}))),jsxRuntimeExports.jsx(CustomButton,_extends({icon:"angle double right",inverted:dt,style:{marginRight:0},title:bt,type:"button"},rt({calendars:j,"aria-label":bt,offset:12,onClick:zt})))]})})]}),jsxRuntimeExports.jsxs("div",{className:"clndr-days",children:[Pt.map(function(ot){return jsxRuntimeExports.jsx(CalendarCell,{inverted:dt,"aria-label":ot,title:ot,children:ot.slice(0,2)},gt.year+"-"+gt.month+"-"+ot)}),gt.weeks.map(function(ot){return ot.map(function(st,lt){var pt=gt.year+"-"+gt.month+"-"+lt;if(!st)return jsxRuntimeExports.jsx(CalendarCell,{inverted:dt},pt);var _t=st.selectable&&_e(st.date),St=getShortDate(st.date);return jsxRuntimeExports.jsx(CalendarCell,_extends({},st,tt({dateObj:_extends({},st,{selectable:_t}),onClick:zt}),{"data-testid":"datepicker-cell-"+St,inverted:dt,selectable:_t,children:st.date.getDate()}),pt)})})]})]},gt.year+"-"+gt.month)})}),At?jsxRuntimeExports.jsx(TodayButton,_extends({inverted:dt},getToday(vt,mt),tt({dateObj:getToday(vt,mt),onClick:zt}),{children:Rt})):null]}))})},CustomIcon=function a(_){var $=_.clearIcon,j=_.icon,_e=_.isClearIconVisible,et=_.onClear,tt=_.onClick;return _e&&$&&React$5.isValidElement($)?React$5.cloneElement($,{"data-testid":"datepicker-clear-icon",onClick:et}):_e&&$&&!React$5.isValidElement($)?jsxRuntimeExports.jsx(Icon$2,{"aria-pressed":"false","data-testid":"datepicker-clear-icon",link:!0,name:$,onClick:et}):j&&React$5.isValidElement(j)?React$5.cloneElement(j,{"data-testid":"datepicker-icon",onClick:tt}):jsxRuntimeExports.jsx(Icon$2,{"data-testid":"datepicker-icon",name:j})},_excluded=["clearIcon","error","icon","isClearIconVisible","label","onClear","onFocus","required","value"],inputData={"data-testid":"datepicker-input"},CustomInput=React$5.forwardRef(function(a,_){var $=a.clearIcon,j=a.error,_e=a.icon,et=a.isClearIconVisible,tt=a.label,rt=a.onClear,it=a.onFocus,ct=a.required,dt=a.value,mt=_objectWithoutPropertiesLoose(a,_excluded);return jsxRuntimeExports.jsxs(Form$1.Field,{error:j,required:ct,children:[tt?jsxRuntimeExports.jsx("label",{htmlFor:mt.id,children:tt}):null,jsxRuntimeExports.jsx(Input$3,_extends({},mt,{ref:_,error:j,required:ct,icon:jsxRuntimeExports.jsx(CustomIcon,{clearIcon:$,icon:_e,isClearIconVisible:et,onClear:rt,onClick:it}),input:inputData,onFocus:it,value:dt}))]})}),style={display:"inline-block",position:"relative"},semanticInputProps=["autoComplete","autoFocus","className","clearIcon","disabled","error","icon","iconPosition","id","label","loading","name","onBlur","onChange","onClick","onContextMenu","onDoubleClick","onFocus","onInput","onKeyDown","onKeyPress","onKeyUp","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","placeholder","required","size","tabIndex","transparent","readOnly"],SemanticDatepicker=function(a){_inheritsLoose(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.el=React$5.createRef(),j.inputRef=React$5.createRef(),j.state=j.initialState,j.Component=j.isRangeInput?RangeDatePicker:DatePicker,j.resetState=function(rt){var it=j.props,ct=it.keepOpenOnClear,dt=it.onChange,mt={isVisible:ct,selectedDate:j.isRangeInput?[]:null,selectedDateFormatted:""};ct&&j.focusOnInput(),j.setState(mt,function(){dt(rt,_extends({},j.props,{value:null}))})},j.clearInput=function(rt){j.resetState(rt)},j.mousedownCb=function(rt){var it=j.state.isVisible;it&&j.el&&j.el.current&&!j.el.current.contains(rt.target)&&j.close()},j.keydownCb=function(rt){var it=j.state.isVisible;rt.keyCode===keys.escape&&it&&j.close()},j.close=function(){window.removeEventListener("keydown",j.keydownCb),window.removeEventListener("mousedown",j.mousedownCb),j.setState({isVisible:!1})},j.focusOnInput=function(){var rt;if((rt=j.inputRef)!=null&&rt.current){var it=j.inputRef.current,ct=it.focus,dt=it.inputRef;document.activeElement!==dt.current&&ct()}},j.showCalendar=function(rt){var it=j.props.onFocus;it(rt),window.addEventListener("mousedown",j.mousedownCb),window.addEventListener("keydown",j.keydownCb),j.focusOnInput(),j.setState({isVisible:!0})},j.handleRangeInput=function(rt,it){var ct=j.props,dt=ct.format,mt=ct.keepOpenOnSelect,vt=ct.onChange,wt=ct.formatOptions;if(!rt||!rt.length){j.resetState(it);return}var xt={selectedDate:rt,selectedDateFormatted:formatSelectedDate(rt,dt,wt),typedValue:null};j.setState(xt,function(){vt(it,_extends({},j.props,{value:rt})),rt.length===2&&j.setState({isVisible:mt})})},j.handleBasicInput=function(rt,it){var ct=j.props,dt=ct.format,mt=ct.keepOpenOnSelect,vt=ct.onChange,wt=ct.formatOptions;if(!rt){j.resetState(it);return}var xt={isVisible:mt,selectedDate:rt,selectedDateFormatted:formatSelectedDate(rt,dt,wt),typedValue:null};j.setState(xt,function(){vt(it,_extends({},j.props,{value:rt}))})},j.handleBlur=function(rt){var it=j.props,ct=it.format,dt=it.onBlur,mt=it.onChange,vt=j.state.typedValue;if(rt&&dt(rt),!!vt){if(j.isRangeInput){var wt=parseRangeOnBlur(String(vt),ct),xt=wt.every(isValid);if(xt){j.handleRangeInput(wt,rt);return}}else{var bt=parseOnBlur(String(vt),ct),Et=isValid(bt);if(Et){j.handleBasicInput(bt,rt);return}}j.setState({typedValue:null},function(){mt(rt,_extends({},j.props,{value:null}))})}},j.handleChange=function(rt,it){var ct=it.value,dt=j.props,mt=dt.allowOnlyNumbers,vt=dt.format,wt=dt.onChange,xt=j.isRangeInput?vt+" - "+vt:vt,bt=mt?onlyNumbers(ct):ct;if(!bt){var Et={selectedDate:j.isRangeInput?[]:null,selectedDateFormatted:"",typedValue:null};j.setState(Et,function(){wt(rt,_extends({},j.props,{value:null}))});return}j.setState({selectedDate:j.isRangeInput?[]:null,selectedDateFormatted:"",typedValue:formatStringByPattern(xt,bt)})},j.handleKeyDown=function(rt){rt.keyCode===keys.enter&&j.handleBlur()},j.onDateSelected=function(rt,it){j.isRangeInput?j.handleRangeInput(it,rt):j.handleBasicInput(it,rt)},j}var $=_.prototype;return $.componentDidUpdate=function(_e){var et=this.props,tt=et.locale,rt=et.value;isEqual$1(rt,_e.value)||this.onDateSelected(void 0,rt),tt!==_e.locale&&this.setState({locale:this.locale})},$.render=function(){var _e=this,et=this.state,tt=et.isVisible,rt=et.locale,it=et.selectedDate,ct=et.selectedDateFormatted,dt=et.typedValue,mt=this.props,vt=mt.clearable,wt=mt.pointing,xt=mt.filterDate,bt=mt.inline,Et=mt.inverted,$t=mt.readOnly,At=mt.datePickerOnly,Rt=jsxRuntimeExports.jsx(this.Component,_extends({},this.dayzedProps,{monthsToDisplay:this.isRangeInput?2:1,onChange:this.onDateSelected,selected:it,date:this.date,children:function(Ct){return jsxRuntimeExports.jsx(Calendar,_extends({},_e.dayzedProps,Ct,rt,{filterDate:xt,inverted:Et,pointing:wt,weekdays:_e.weekdays}))}}));return bt?Rt:jsxRuntimeExports.jsxs("div",{className:"field",style,ref:this.el,children:[jsxRuntimeExports.jsx(CustomInput,_extends({},this.inputProps,{isClearIconVisible:!!(vt&&ct),onBlur:this.handleBlur,onChange:this.handleChange,onClear:this.clearInput,onFocus:$t?null:this.showCalendar,onKeyDown:this.handleKeyDown,readOnly:$t||At,ref:this.inputRef,value:dt||ct})),tt&&Rt]})},_createClass(_,[{key:"isRangeInput",get:function(){return this.props.type==="range"}},{key:"initialState",get:function(){var _e=this.props,et=_e.format,tt=_e.value,rt=_e.formatOptions,it=this.isRangeInput?[]:null;return{isVisible:!1,locale:this.locale,selectedDate:tt||it,selectedDateFormatted:formatSelectedDate(tt,et,rt),typedValue:null}}},{key:"dayzedProps",get:function(){return omit(semanticInputProps,this.props)}},{key:"inputProps",get:function(){var _e=pick(semanticInputProps,this.props),et=_e.placeholder!==void 0?_e.placeholder:this.props.format;return _extends({},_e,{placeholder:et})}},{key:"date",get:function(){var _e=this.state.selectedDate,et=this.props.date;return et||!_e?et:this.isRangeInput?_e[0]:_e}},{key:"locale",get:function(){var _e=this.props.locale,et;try{et=commonjsRequire("./locales/"+_e+".json")}catch{console.warn('"'+_e+'" is not a valid locale'),et=require$$0}return et}},{key:"weekdays",get:function(){var _e=this.dayzedProps.firstDayOfWeek,et=this.state.locale.weekdays;return moveElementsByN(_e,et)}}]),_}(React$5.Component);SemanticDatepicker.defaultProps={allowOnlyNumbers:!1,autoFocus:!1,clearIcon:"close",clearOnSameDateClick:!0,clearable:!0,date:void 0,filterDate:function a(){return!0},firstDayOfWeek:0,format:"YYYY-MM-DD",icon:"calendar",id:void 0,inline:!1,keepOpenOnClear:!1,keepOpenOnSelect:!1,label:void 0,locale:"en-US",name:void 0,onBlur:function a(){},onChange:function a(){},onFocus:function a(){},placeholder:void 0,pointing:"left",readOnly:!1,datePickerOnly:!1,required:!1,showToday:!0,showOutsideDays:!1,type:"basic",value:null,inverted:!1};const reactSemanticUiDatepickers_esm=Object.freeze(Object.defineProperty({__proto__:null,default:SemanticDatepicker},Symbol.toStringTag,{value:"Module"})),require$$2=getAugmentedNamespace(reactSemanticUiDatepickers_esm),reactSemanticUiDatepickers="";var Input$1={},Button={},hasRequiredButton;function requireButton(){if(hasRequiredButton)return Button;hasRequiredButton=1;var a=interopRequireDefaultExports;Button.__esModule=!0;var _=a(requireButton$1());return Button.default=_.default,Button}var Icon={},hasRequiredIcon;function requireIcon(){if(hasRequiredIcon)return Icon;hasRequiredIcon=1;var a=interopRequireDefaultExports;Icon.__esModule=!0;var _=a(Icon$4);return Icon.default=_.default,Icon}var Label={},hasRequiredLabel;function requireLabel(){if(hasRequiredLabel)return Label;hasRequiredLabel=1;var a=interopRequireDefaultExports;Label.__esModule=!0;var _=a(requireLabel$1());return Label.default=_.default,Label}var _interopRequireWildcard$1=interopRequireWildcardExports,_interopRequireDefault$3=interopRequireDefaultExports;Input$1.__esModule=!0;Input$1.default=void 0;var _extends2$2=_interopRequireDefault$3(require_extends()),_inheritsLoose2$1=_interopRequireDefault$3(requireInheritsLoose()),_includes2$1=_interopRequireDefault$3(requireIncludes()),_map2=_interopRequireDefault$3(requireMap()),_invoke2$1=_interopRequireDefault$3(requireInvoke()),_get2=_interopRequireDefault$3(requireGet()),_isNil2=_interopRequireDefault$3(requireIsNil()),_reactComponentRef$1=require$$4$1,_clsx$2=_interopRequireDefault$3(require$$0$4);_interopRequireDefault$3(requirePropTypes());var _react$2=_interopRequireWildcard$1(reactExports),_lib$2=requireLib(),_Button=_interopRequireDefault$3(requireButton()),_Icon$2=_interopRequireDefault$3(requireIcon()),_Label=_interopRequireDefault$3(requireLabel()),Input=function(a){(0,_inheritsLoose2$1.default)(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.inputRef=(0,_react$2.createRef)(),j.computeIcon=function(){var rt=j.props,it=rt.loading,ct=rt.icon;if(!(0,_isNil2.default)(ct))return ct;if(it)return"spinner"},j.computeTabIndex=function(){var rt=j.props,it=rt.disabled,ct=rt.tabIndex;if(!(0,_isNil2.default)(ct))return ct;if(it)return-1},j.focus=function(rt){return j.inputRef.current.focus(rt)},j.select=function(){return j.inputRef.current.select()},j.handleChange=function(rt){var it=(0,_get2.default)(rt,"target.value");(0,_invoke2$1.default)(j.props,"onChange",rt,(0,_extends2$2.default)({},j.props,{value:it}))},j.handleChildOverrides=function(rt,it){return(0,_extends2$2.default)({},it,rt.props,{ref:function(dt){(0,_reactComponentRef$1.handleRef)(rt.ref,dt),j.inputRef.current=dt}})},j.partitionProps=function(){var rt=j.props,it=rt.disabled,ct=rt.type,dt=j.computeTabIndex(),mt=(0,_lib$2.getUnhandledProps)(_,j.props),vt=(0,_lib$2.partitionHTMLProps)(mt),wt=vt[0],xt=vt[1];return[(0,_extends2$2.default)({},wt,{disabled:it,type:ct,tabIndex:dt,onChange:j.handleChange,ref:j.inputRef}),xt]},j}var $=_.prototype;return $.render=function(){var _e=this,et=this.props,tt=et.action,rt=et.actionPosition,it=et.children,ct=et.className,dt=et.disabled,mt=et.error,vt=et.fluid,wt=et.focus,xt=et.icon,bt=et.iconPosition,Et=et.input,$t=et.inverted,At=et.label,Rt=et.labelPosition,Pt=et.loading,Ct=et.size,Ot=et.transparent,kt=et.type,Dt=(0,_clsx$2.default)("ui",Ct,(0,_lib$2.useKeyOnly)(dt,"disabled"),(0,_lib$2.useKeyOnly)(mt,"error"),(0,_lib$2.useKeyOnly)(vt,"fluid"),(0,_lib$2.useKeyOnly)(wt,"focus"),(0,_lib$2.useKeyOnly)($t,"inverted"),(0,_lib$2.useKeyOnly)(Pt,"loading"),(0,_lib$2.useKeyOnly)(Ot,"transparent"),(0,_lib$2.useValueAndKey)(rt,"action")||(0,_lib$2.useKeyOnly)(tt,"action"),(0,_lib$2.useValueAndKey)(bt,"icon")||(0,_lib$2.useKeyOnly)(xt||Pt,"icon"),(0,_lib$2.useValueAndKey)(Rt,"labeled")||(0,_lib$2.useKeyOnly)(At,"labeled"),"input",ct),Nt=(0,_lib$2.getElementType)(_,this.props),zt=this.partitionProps(),gt=zt[0],nt=zt[1];if(!_lib$2.childrenUtils.isNil(it)){var ot=(0,_map2.default)(_react$2.Children.toArray(it),function(pt){return pt.type!=="input"?pt:(0,_react$2.cloneElement)(pt,_e.handleChildOverrides(pt,gt))});return _react$2.default.createElement(Nt,(0,_extends2$2.default)({},nt,{className:Dt}),ot)}var st=_Button.default.create(tt,{autoGenerateKey:!1}),lt=_Label.default.create(At,{defaultProps:{className:(0,_clsx$2.default)("label",(0,_includes2$1.default)(Rt,"corner")&&Rt)},autoGenerateKey:!1});return _react$2.default.createElement(Nt,(0,_extends2$2.default)({},nt,{className:Dt}),rt==="left"&&st,Rt!=="right"&<,(0,_lib$2.createHTMLInput)(Et||kt,{defaultProps:gt,autoGenerateKey:!1}),_Icon$2.default.create(this.computeIcon(),{autoGenerateKey:!1}),rt!=="left"&&st,Rt==="right"&<)},_}(_react$2.Component);Input.handledProps=["action","actionPosition","as","children","className","disabled","error","fluid","focus","icon","iconPosition","input","inverted","label","labelPosition","loading","onChange","size","tabIndex","transparent","type"];Input.propTypes={};Input.defaultProps={type:"text"};Input.create=(0,_lib$2.createShorthandFactory)(Input,function(a){return{type:a}});var _default$3=Input;Input$1.default=_default$3;var input={};Object.defineProperty(input,"__esModule",{value:!0});input.getInputValueLength=void 0;function getInputValueLength(a){return a==null?0:typeof a=="string"?a.length:a.toString().length}input.getInputValueLength=getInputValueLength;var Blockie$2={},blockies$1={exports:{}};(function(a){(function(){var _=new Array(4);function $(dt){for(var mt=0;mt<_.length;mt++)_[mt]=0;for(var mt=0;mt<dt.length;mt++)_[mt%4]=(_[mt%4]<<5)-_[mt%4]+dt.charCodeAt(mt)}function j(){var dt=_[0]^_[0]<<11;return _[0]=_[1],_[1]=_[2],_[2]=_[3],_[3]=_[3]^_[3]>>19^dt^dt>>8,(_[3]>>>0)/(1<<31>>>0)}function _e(){var dt=Math.floor(j()*360),mt=j()*60+40+"%",vt=(j()+j()+j()+j())*25+"%",wt="hsl("+dt+","+mt+","+vt+")";return wt}function et(dt){for(var mt=dt,vt=dt,wt=Math.ceil(mt/2),xt=mt-wt,bt=[],Et=0;Et<vt;Et++){for(var $t=[],At=0;At<wt;At++)$t[At]=Math.floor(j()*2.3);var Rt=$t.slice(0,xt);Rt.reverse(),$t=$t.concat(Rt);for(var Pt=0;Pt<$t.length;Pt++)bt.push($t[Pt])}return bt}function tt(dt){var mt={};return mt.size=dt.size||8,mt.scale=dt.scale||4,mt.seed=dt.seed||Math.floor(Math.random()*Math.pow(10,16)).toString(16),mt.color=dt.color||_e(),mt.bgcolor=dt.bgcolor||_e(),mt.spotcolor=dt.spotcolor||_e(),$(mt.seed),mt}function rt(vt,mt){var vt=tt(vt||{}),wt=et(vt.size),xt=Math.sqrt(wt.length);mt.width=mt.height=vt.size*vt.scale;var bt=mt.getContext("2d");bt.fillStyle=vt.bgcolor,bt.fillRect(0,0,mt.width,mt.height),bt.fillStyle=vt.color;for(var Et=0;Et<wt.length;Et++)if(wt[Et]){var $t=Math.floor(Et/xt),At=Et%xt;bt.fillStyle=wt[Et]==1?vt.color:vt.spotcolor,bt.fillRect(At*vt.scale,$t*vt.scale,vt.scale,vt.scale)}return mt}function it(mt){var mt=tt(mt||{}),vt=document.createElement("canvas");return rt(mt,vt),vt}var ct={create:it,render:rt};a.exports=ct,typeof window<"u"&&(window.blockies=ct)})()})(blockies$1);var blockiesExports=blockies$1.exports;const Blockie$1="";var __extends$2=commonjsGlobal&&commonjsGlobal.__extends||function(){var a=function(_,$){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,_e){j.__proto__=_e}||function(j,_e){for(var et in _e)Object.prototype.hasOwnProperty.call(_e,et)&&(j[et]=_e[et])},a(_,$)};return function(_,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");a(_,$);function j(){this.constructor=_}_.prototype=$===null?Object.create($):(j.prototype=$.prototype,new j)}}(),__createBinding$2=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(a,_,$,j){j===void 0&&(j=$);var _e=Object.getOwnPropertyDescriptor(_,$);(!_e||("get"in _e?!_.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return _[$]}}),Object.defineProperty(a,j,_e)}:function(a,_,$,j){j===void 0&&(j=$),a[j]=_[$]}),__setModuleDefault$2=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(a,_){Object.defineProperty(a,"default",{enumerable:!0,value:_})}:function(a,_){a.default=_}),__importStar$2=commonjsGlobal&&commonjsGlobal.__importStar||function(a){if(a&&a.__esModule)return a;var _={};if(a!=null)for(var $ in a)$!=="default"&&Object.prototype.hasOwnProperty.call(a,$)&&__createBinding$2(_,a,$);return __setModuleDefault$2(_,a),_};Object.defineProperty(Blockie$2,"__esModule",{value:!0});Blockie$2.Blockie=void 0;var React$2=__importStar$2(reactExports),blockies=__importStar$2(blockiesExports),Blockie=function(a){__extends$2(_,a);function _(){var $=a!==null&&a.apply(this,arguments)||this;return $.canvas=React$2.createRef(),$}return _.prototype.componentDidMount=function(){this.draw()},_.prototype.componentDidUpdate=function(){this.draw()},_.prototype.getOpts=function(){var $=this.props,j=$.seed,_e=$.color,et=$.spotcolor,tt=$.bgcolor,rt=$.size,it=$.scale;return{seed:j?j.toLowerCase():"",color:_e,spotcolor:et,bgcolor:tt,size:rt,scale:it}},_.prototype.draw=function(){if(!this.canvas||!this.canvas.current)return"🦄";var $=this.props,j=$.size,_e=$.scale,et=this.canvas.current.getContext("2d");et.clearRect(0,0,j*_e,j*_e),blockies.render(this.getOpts(),this.canvas.current)},_.prototype.render=function(){var $=this.props,j=$.size,_e=$.scale,et=$.children,tt=$.className,rt="dcl blockie ".concat(tt).trim();_e*j<=16?rt+=" mini":_e*j<=24?rt+=" tiny":_e*j<=36&&(rt+=" small");var it=React$2.createElement("canvas",{className:rt,ref:this.canvas});return et?React$2.createElement("span",{className:"dcl blockie-wrapper"},it,React$2.createElement("span",{className:"dcl blockie-children"},et)):it},_.defaultProps={color:"#e449c2",bgcolor:"#3149de",spotcolor:"#e449c2",size:6,scale:6,className:""},_}(React$2.PureComponent);Blockie$2.Blockie=Blockie;var Header$3={},Header$2={},Image={},hasRequiredImage;function requireImage(){if(hasRequiredImage)return Image;hasRequiredImage=1;var a=interopRequireDefaultExports;Image.__esModule=!0;var _=a(requireImage$1());return Image.default=_.default,Image}var HeaderSubheader={},hasRequiredHeaderSubheader;function requireHeaderSubheader(){if(hasRequiredHeaderSubheader)return HeaderSubheader;hasRequiredHeaderSubheader=1;var a=interopRequireDefaultExports;HeaderSubheader.__esModule=!0,HeaderSubheader.default=void 0;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(rt){var it=rt.children,ct=rt.className,dt=rt.content,mt=(0,$.default)("sub header",ct),vt=(0,_e.getUnhandledProps)(et,rt),wt=(0,_e.getElementType)(et,rt);return j.default.createElement(wt,(0,_.default)({},vt,{className:mt}),_e.childrenUtils.isNil(it)?dt:it)}et.handledProps=["as","children","className","content"],et.propTypes={},et.create=(0,_e.createShorthandFactory)(et,function(rt){return{content:rt}});var tt=et;return HeaderSubheader.default=tt,HeaderSubheader}var HeaderContent={},hasRequiredHeaderContent;function requireHeaderContent(){if(hasRequiredHeaderContent)return HeaderContent;hasRequiredHeaderContent=1;var a=interopRequireDefaultExports;HeaderContent.__esModule=!0,HeaderContent.default=void 0;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(rt){var it=rt.children,ct=rt.className,dt=rt.content,mt=(0,$.default)("content",ct),vt=(0,_e.getUnhandledProps)(et,rt),wt=(0,_e.getElementType)(et,rt);return j.default.createElement(wt,(0,_.default)({},vt,{className:mt}),_e.childrenUtils.isNil(it)?dt:it)}et.handledProps=["as","children","className","content"],et.propTypes={};var tt=et;return HeaderContent.default=tt,HeaderContent}var _interopRequireDefault$2=interopRequireDefaultExports;Header$2.__esModule=!0;Header$2.default=void 0;var _extends2$1=_interopRequireDefault$2(require_extends());_interopRequireDefault$2(requireWithout());var _clsx$1=_interopRequireDefault$2(require$$0$4);_interopRequireDefault$2(requirePropTypes());var _react$1=_interopRequireDefault$2(reactExports),_lib$1=requireLib(),_Icon$1=_interopRequireDefault$2(requireIcon()),_Image=_interopRequireDefault$2(requireImage()),_HeaderSubheader=_interopRequireDefault$2(requireHeaderSubheader()),_HeaderContent=_interopRequireDefault$2(requireHeaderContent());function Header$1(a){var _=a.attached,$=a.block,j=a.children,_e=a.className,et=a.color,tt=a.content,rt=a.disabled,it=a.dividing,ct=a.floated,dt=a.icon,mt=a.image,vt=a.inverted,wt=a.size,xt=a.sub,bt=a.subheader,Et=a.textAlign,$t=(0,_clsx$1.default)("ui",et,wt,(0,_lib$1.useKeyOnly)($,"block"),(0,_lib$1.useKeyOnly)(rt,"disabled"),(0,_lib$1.useKeyOnly)(it,"dividing"),(0,_lib$1.useValueAndKey)(ct,"floated"),(0,_lib$1.useKeyOnly)(dt===!0,"icon"),(0,_lib$1.useKeyOnly)(mt===!0,"image"),(0,_lib$1.useKeyOnly)(vt,"inverted"),(0,_lib$1.useKeyOnly)(xt,"sub"),(0,_lib$1.useKeyOrValueAndKey)(_,"attached"),(0,_lib$1.useTextAlignProp)(Et),"header",_e),At=(0,_lib$1.getUnhandledProps)(Header$1,a),Rt=(0,_lib$1.getElementType)(Header$1,a);if(!_lib$1.childrenUtils.isNil(j))return _react$1.default.createElement(Rt,(0,_extends2$1.default)({},At,{className:$t}),j);var Pt=_Icon$1.default.create(dt,{autoGenerateKey:!1}),Ct=_Image.default.create(mt,{autoGenerateKey:!1}),Ot=_HeaderSubheader.default.create(bt,{autoGenerateKey:!1});return Pt||Ct?_react$1.default.createElement(Rt,(0,_extends2$1.default)({},At,{className:$t}),Pt||Ct,(tt||Ot)&&_react$1.default.createElement(_HeaderContent.default,null,tt,Ot)):_react$1.default.createElement(Rt,(0,_extends2$1.default)({},At,{className:$t}),tt,Ot)}Header$1.handledProps=["as","attached","block","children","className","color","content","disabled","dividing","floated","icon","image","inverted","size","sub","subheader","textAlign"];Header$1.propTypes={};Header$1.Content=_HeaderContent.default;Header$1.Subheader=_HeaderSubheader.default;var _default$2=Header$1;Header$2.default=_default$2;const Header="";(function(a){var _=commonjsGlobal&&commonjsGlobal.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(a,"__esModule",{value:!0}),a.Header=void 0;var $=Header$2;Object.defineProperty(a,"Header",{enumerable:!0,get:function(){return _($).default}})})(Header$3);const Field$1="";var __extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var a=function(_,$){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,_e){j.__proto__=_e}||function(j,_e){for(var et in _e)Object.prototype.hasOwnProperty.call(_e,et)&&(j[et]=_e[et])},a(_,$)};return function(_,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");a(_,$);function j(){this.constructor=_}_.prototype=$===null?Object.create($):(j.prototype=$.prototype,new j)}}(),__assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(a){for(var _,$=1,j=arguments.length;$<j;$++){_=arguments[$];for(var _e in _)Object.prototype.hasOwnProperty.call(_,_e)&&(a[_e]=_[_e])}return a},__assign.apply(this,arguments)},__createBinding$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(a,_,$,j){j===void 0&&(j=$);var _e=Object.getOwnPropertyDescriptor(_,$);(!_e||("get"in _e?!_.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return _[$]}}),Object.defineProperty(a,j,_e)}:function(a,_,$,j){j===void 0&&(j=$),a[j]=_[$]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(a,_){Object.defineProperty(a,"default",{enumerable:!0,value:_})}:function(a,_){a.default=_}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(a){if(a&&a.__esModule)return a;var _={};if(a!=null)for(var $ in a)$!=="default"&&Object.prototype.hasOwnProperty.call(a,$)&&__createBinding$1(_,a,$);return __setModuleDefault$1(_,a),_},__rest=commonjsGlobal&&commonjsGlobal.__rest||function(a,_){var $={};for(var j in a)Object.prototype.hasOwnProperty.call(a,j)&&_.indexOf(j)<0&&($[j]=a[j]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,j=Object.getOwnPropertySymbols(a);_e<j.length;_e++)_.indexOf(j[_e])<0&&Object.prototype.propertyIsEnumerable.call(a,j[_e])&&($[j[_e]]=a[j[_e]]);return $},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Field$2,"__esModule",{value:!0});var Field_2=Field$2.Field=void 0,React$1=__importStar$1(reactExports),Icon_1=__importDefault(Icon$4),react_semantic_ui_datepickers_1=__importDefault(require$$2),Input_1=__importDefault(Input$1),classnames_1=__importDefault(classnamesExports),input_1=input,Blockie_1=Blockie$2,Button_1=Button$5,Header_1=Header$3,DATE_TYPE="date";function renderMessage(a){var _=a.error,$=a.warning,j=a.info,_e=a.message;if(_||_e)return React$1.createElement(React$1.Fragment,null,_&&_e?React$1.createElement(Icon_1.default,{name:"remove circle"}):null," ",_e);if($)return React$1.createElement(React$1.Fragment,null,React$1.createElement(Icon_1.default,{name:"warning sign"})," ",$);if(j)return React$1.createElement(React$1.Fragment,null,React$1.createElement(Icon_1.default,{name:"info circle"})," ",j)}var Field=function(a){__extends$1(_,a);function _(){var $=a!==null&&a.apply(this,arguments)||this;return $.onChangeDatePicker=function(j,_e){var et="";if(_e.value){var tt=_e.value&&_e.value.getFullYear(),rt=_e.value&&"".concat(_e.value.getDate()<10?"0":"").concat(_e.value.getDate()),it=_e.value&&"".concat(_e.value.getMonth()+1<10?"0":"").concat(_e.value.getMonth()+1);et="".concat(tt,"-").concat(it,"-").concat(rt)}var ct=__assign(__assign({},$.props),{value:et});$.props.onChange&&$.props.onChange(j,ct)},$}return _.prototype.hasAction=function(){var $=this.props,j=$.loading,_e=$.error,et=$.action,tt=this.props.onAction!==null&&this.props.onAction!==void 0;return!this.isAddress()&&!j&&!_e&&et&&tt},_.prototype.isAddress=function(){var $=this.props.type;return $==="address"},_.prototype.render=function(){var $,j=this.props,_e=j.value,et=j.label,tt=j.error,rt=j.warning,it=j.info,ct=j.type,dt=j.loading,mt=j.action,vt=j.onAction,wt=j.disabled,xt=j.kind,bt=j.fitContent,Et=j.isClearable,$t=Et===void 0?!0:Et,At=j.id,Rt=j.maxLength,Pt=__rest(j,["value","label","error","warning","info","type","loading","action","onAction","disabled","kind","fitContent","isClearable","id","maxLength"]),Ct=this.isAddress(),Ot=tt&&!Ct?"warning circle":void 0,kt=(0,classnames_1.default)("dcl field",xt,($={error:tt,warning:!tt&&rt,info:!tt&&!rt&&it,disabled:wt,address:Ct,resizable:bt},$["has-label"]=et,$));return Ct&&mt&&console.warn(`The address fields don't support actions, "`.concat(mt,'" will be ignored')),React$1.createElement("div",{className:kt},et||Rt!==void 0?React$1.createElement(Header_1.Header,{sub:!0},et?React$1.createElement("label",{htmlFor:At},et):null,Rt!==void 0?React$1.createElement("span",{className:"maxLength"},(0,input_1.getInputValueLength)(_e),"/",Rt):null):null,ct===DATE_TYPE?React$1.createElement(react_semantic_ui_datepickers_1.default,__assign({value:_e?new Date("".concat(_e," 00:00:00")):void 0,icon:Ot||void 0,loading:dt&&!Ct,disabled:wt,showOutsideDays:!0,className:"datePickerWidth",clearable:$t},Pt,{onChange:this.onChangeDatePicker,id:At})):React$1.createElement(Input_1.default,__assign({id:At,value:_e,type:Ct?"text":ct,icon:Ot,loading:dt&&!Ct,disabled:wt,maxLength:Rt},Pt)),this.hasAction()&&React$1.createElement("div",{className:"overlay"},React$1.createElement(Button_1.Button,{onClick:vt,disabled:wt,basic:!0},mt)),this.isAddress()&&_e?React$1.createElement(Blockie_1.Blockie,{seed:_e,scale:4}):null,React$1.createElement("p",{className:"message"},renderMessage(this.props)," "))},_.defaultProps={kind:"simple",fitContent:!1},_}(React$1.PureComponent);Field_2=Field$2.Field=Field;var Media={},reactResponsive={exports:{}};(function(a,_){(function(j,_e){a.exports=_e(reactExports)})(commonjsGlobal,$=>(()=>{var j={"./node_modules/css-mediaquery/index.js":(rt,it)=>{it.match=xt,it.parse=bt;var ct=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,dt=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,mt=/^(?:(min|max)-)?(.+)/,vt=/(em|rem|px|cm|mm|in|pt|pc)?$/,wt=/(dpi|dpcm|dppx)?$/;function xt(Rt,Pt){return bt(Rt).some(function(Ct){var Ot=Ct.inverse,kt=Ct.type==="all"||Pt.type===Ct.type;if(kt&&Ot||!(kt||Ot))return!1;var Dt=Ct.expressions.every(function(Nt){var zt=Nt.feature,gt=Nt.modifier,nt=Nt.value,ot=Pt[zt];if(!ot)return!1;switch(zt){case"orientation":case"scan":return ot.toLowerCase()===nt.toLowerCase();case"width":case"height":case"device-width":case"device-height":nt=At(nt),ot=At(ot);break;case"resolution":nt=$t(nt),ot=$t(ot);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":nt=Et(nt),ot=Et(ot);break;case"grid":case"color":case"color-index":case"monochrome":nt=parseInt(nt,10)||1,ot=parseInt(ot,10)||0;break}switch(gt){case"min":return ot>=nt;case"max":return ot<=nt;default:return ot===nt}});return Dt&&!Ot||!Dt&&Ot})}function bt(Rt){return Rt.split(",").map(function(Pt){Pt=Pt.trim();var Ct=Pt.match(ct),Ot=Ct[1],kt=Ct[2],Dt=Ct[3]||"",Nt={};return Nt.inverse=!!Ot&&Ot.toLowerCase()==="not",Nt.type=kt?kt.toLowerCase():"all",Dt=Dt.match(/\([^\)]+\)/g)||[],Nt.expressions=Dt.map(function(zt){var gt=zt.match(dt),nt=gt[1].toLowerCase().match(mt);return{modifier:nt[1],feature:nt[2],value:gt[2]}}),Nt})}function Et(Rt){var Pt=Number(Rt),Ct;return Pt||(Ct=Rt.match(/^(\d+)\s*\/\s*(\d+)$/),Pt=Ct[1]/Ct[2]),Pt}function $t(Rt){var Pt=parseFloat(Rt),Ct=String(Rt).match(wt)[1];switch(Ct){case"dpcm":return Pt/2.54;case"dppx":return Pt*96;default:return Pt}}function At(Rt){var Pt=parseFloat(Rt),Ct=String(Rt).match(vt)[1];switch(Ct){case"em":return Pt*16;case"rem":return Pt*16;case"cm":return Pt*96/2.54;case"mm":return Pt*96/2.54/10;case"in":return Pt*96;case"pt":return Pt*72;case"pc":return Pt*72/12;default:return Pt}}},"./node_modules/hyphenate-style-name/index.js":(rt,it,ct)=>{ct.r(it),ct.d(it,{default:()=>bt});var dt=/[A-Z]/g,mt=/^ms-/,vt={};function wt(Et){return"-"+Et.toLowerCase()}function xt(Et){if(vt.hasOwnProperty(Et))return vt[Et];var $t=Et.replace(dt,wt);return vt[Et]=mt.test($t)?"-"+$t:$t}const bt=xt},"./node_modules/matchmediaquery/index.js":(rt,it,ct)=>{var dt=ct("./node_modules/css-mediaquery/index.js").match,mt=typeof window<"u"?window.matchMedia:null;function vt(xt,bt,Et){var $t=this;if(mt&&!Et){var At=mt.call(window,xt);this.matches=At.matches,this.media=At.media,At.addListener(Ct)}else this.matches=dt(xt,bt),this.media=xt;this.addListener=Rt,this.removeListener=Pt,this.dispose=Ot;function Rt(kt){At&&At.addListener(kt)}function Pt(kt){At&&At.removeListener(kt)}function Ct(kt){$t.matches=kt.matches,$t.media=kt.media}function Ot(){At&&At.removeListener(Ct)}}function wt(xt,bt,Et){return new vt(xt,bt,Et)}rt.exports=wt},"./node_modules/object-assign/index.js":rt=>{/*
|
|
146
146
|
object-assign
|
|
147
147
|
(c) Sindre Sorhus
|
|
@@ -154,5 +154,5 @@ Valid keys: `+JSON.stringify(Object.keys(Jt),null," "));var Gr=Ar(an,cn,Lr,$r,w
|
|
|
154
154
|
*
|
|
155
155
|
* This source code is licensed under the MIT license found in the
|
|
156
156
|
* LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/(function(){var ct=typeof Symbol=="function"&&Symbol.for,dt=ct?Symbol.for("react.element"):60103,mt=ct?Symbol.for("react.portal"):60106,vt=ct?Symbol.for("react.fragment"):60107,wt=ct?Symbol.for("react.strict_mode"):60108,xt=ct?Symbol.for("react.profiler"):60114,bt=ct?Symbol.for("react.provider"):60109,Et=ct?Symbol.for("react.context"):60110,$t=ct?Symbol.for("react.async_mode"):60111,At=ct?Symbol.for("react.concurrent_mode"):60111,Rt=ct?Symbol.for("react.forward_ref"):60112,Pt=ct?Symbol.for("react.suspense"):60113,Ct=ct?Symbol.for("react.suspense_list"):60120,Ot=ct?Symbol.for("react.memo"):60115,kt=ct?Symbol.for("react.lazy"):60116,Dt=ct?Symbol.for("react.block"):60121,Nt=ct?Symbol.for("react.fundamental"):60117,zt=ct?Symbol.for("react.responder"):60118,gt=ct?Symbol.for("react.scope"):60119;function nt(Ar){return typeof Ar=="string"||typeof Ar=="function"||Ar===vt||Ar===At||Ar===xt||Ar===wt||Ar===Pt||Ar===Ct||typeof Ar=="object"&&Ar!==null&&(Ar.$$typeof===kt||Ar.$$typeof===Ot||Ar.$$typeof===bt||Ar.$$typeof===Et||Ar.$$typeof===Rt||Ar.$$typeof===Nt||Ar.$$typeof===zt||Ar.$$typeof===gt||Ar.$$typeof===Dt)}function ot(Ar){if(typeof Ar=="object"&&Ar!==null){var Gr=Ar.$$typeof;switch(Gr){case dt:var hn=Ar.type;switch(hn){case $t:case At:case vt:case xt:case wt:case Pt:return hn;default:var Hr=hn&&hn.$$typeof;switch(Hr){case Et:case Rt:case kt:case Ot:case bt:return Hr;default:return Gr}}case mt:return Gr}}}var st=$t,lt=At,pt=Et,_t=bt,St=dt,yt=Rt,at=vt,ht=kt,Mt=Ot,Tt=mt,It=xt,Lt=wt,jt=Pt,Gt=!1;function tr(Ar){return Gt||(Gt=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),er(Ar)||ot(Ar)===$t}function er(Ar){return ot(Ar)===At}function Jt(Ar){return ot(Ar)===Et}function Wt(Ar){return ot(Ar)===bt}function Kt(Ar){return typeof Ar=="object"&&Ar!==null&&Ar.$$typeof===dt}function lr(Ar){return ot(Ar)===Rt}function Lr(Ar){return ot(Ar)===vt}function $r(Ar){return ot(Ar)===kt}function wr(Ar){return ot(Ar)===Ot}function an(Ar){return ot(Ar)===mt}function Or(Ar){return ot(Ar)===xt}function yr(Ar){return ot(Ar)===wt}function cn(Ar){return ot(Ar)===Pt}it.AsyncMode=st,it.ConcurrentMode=lt,it.ContextConsumer=pt,it.ContextProvider=_t,it.Element=St,it.ForwardRef=yt,it.Fragment=at,it.Lazy=ht,it.Memo=Mt,it.Portal=Tt,it.Profiler=It,it.StrictMode=Lt,it.Suspense=jt,it.isAsyncMode=tr,it.isConcurrentMode=er,it.isContextConsumer=Jt,it.isContextProvider=Wt,it.isElement=Kt,it.isForwardRef=lr,it.isFragment=Lr,it.isLazy=$r,it.isMemo=wr,it.isPortal=an,it.isProfiler=Or,it.isStrictMode=yr,it.isSuspense=cn,it.isValidElementType=nt,it.typeOf=ot})()},"./node_modules/react-is/index.js":(rt,it,ct)=>{rt.exports=ct("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(rt,it,ct)=>{ct.r(it),ct.d(it,{shallowEqualArrays:()=>mt,shallowEqualObjects:()=>dt});function dt(vt,wt){if(vt===wt)return!0;if(!vt||!wt)return!1;var xt=Object.keys(vt),bt=Object.keys(wt),Et=xt.length;if(bt.length!==Et)return!1;for(var $t=0;$t<Et;$t++){var At=xt[$t];if(vt[At]!==wt[At]||!Object.prototype.hasOwnProperty.call(wt,At))return!1}return!0}function mt(vt,wt){if(vt===wt)return!0;if(!vt||!wt)return!1;var xt=vt.length;if(wt.length!==xt)return!1;for(var bt=0;bt<xt;bt++)if(vt[bt]!==wt[bt])return!1;return!0}},"./src/Component.ts":function(rt,it,ct){var dt=this&&this.__rest||function(xt,bt){var Et={};for(var $t in xt)Object.prototype.hasOwnProperty.call(xt,$t)&&bt.indexOf($t)<0&&(Et[$t]=xt[$t]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,$t=Object.getOwnPropertySymbols(xt);At<$t.length;At++)bt.indexOf($t[At])<0&&Object.prototype.propertyIsEnumerable.call(xt,$t[At])&&(Et[$t[At]]=xt[$t[At]]);return Et},mt=this&&this.__importDefault||function(xt){return xt&&xt.__esModule?xt:{default:xt}};Object.defineProperty(it,"__esModule",{value:!0});var vt=mt(ct("./src/useMediaQuery.ts")),wt=function(xt){var bt=xt.children,Et=xt.device,$t=xt.onChange,At=dt(xt,["children","device","onChange"]),Rt=(0,vt.default)(At,Et,$t);return typeof bt=="function"?bt(Rt):Rt?bt:null};it.default=wt},"./src/Context.ts":(rt,it,ct)=>{Object.defineProperty(it,"__esModule",{value:!0});var dt=ct("react"),mt=(0,dt.createContext)(void 0);it.default=mt},"./src/index.ts":function(rt,it,ct){var dt=this&&this.__importDefault||function(bt){return bt&&bt.__esModule?bt:{default:bt}};Object.defineProperty(it,"__esModule",{value:!0}),it.Context=it.toQuery=it.useMediaQuery=it.default=void 0;var mt=dt(ct("./src/useMediaQuery.ts"));it.useMediaQuery=mt.default;var vt=dt(ct("./src/Component.ts"));it.default=vt.default;var wt=dt(ct("./src/toQuery.ts"));it.toQuery=wt.default;var xt=dt(ct("./src/Context.ts"));it.Context=xt.default},"./src/mediaQuery.ts":function(rt,it,ct){var dt=this&&this.__assign||function(){return dt=Object.assign||function(Pt){for(var Ct,Ot=1,kt=arguments.length;Ot<kt;Ot++){Ct=arguments[Ot];for(var Dt in Ct)Object.prototype.hasOwnProperty.call(Ct,Dt)&&(Pt[Dt]=Ct[Dt])}return Pt},dt.apply(this,arguments)},mt=this&&this.__rest||function(Pt,Ct){var Ot={};for(var kt in Pt)Object.prototype.hasOwnProperty.call(Pt,kt)&&Ct.indexOf(kt)<0&&(Ot[kt]=Pt[kt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,kt=Object.getOwnPropertySymbols(Pt);Dt<kt.length;Dt++)Ct.indexOf(kt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,kt[Dt])&&(Ot[kt[Dt]]=Pt[kt[Dt]]);return Ot},vt=this&&this.__importDefault||function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}};Object.defineProperty(it,"__esModule",{value:!0});var wt=vt(ct("./node_modules/prop-types/index.js")),xt=wt.default.oneOfType([wt.default.string,wt.default.number]),bt={all:wt.default.bool,grid:wt.default.bool,aural:wt.default.bool,braille:wt.default.bool,handheld:wt.default.bool,print:wt.default.bool,projection:wt.default.bool,screen:wt.default.bool,tty:wt.default.bool,tv:wt.default.bool,embossed:wt.default.bool},Et={orientation:wt.default.oneOf(["portrait","landscape"]),scan:wt.default.oneOf(["progressive","interlace"]),aspectRatio:wt.default.string,deviceAspectRatio:wt.default.string,height:xt,deviceHeight:xt,width:xt,deviceWidth:xt,color:wt.default.bool,colorIndex:wt.default.bool,monochrome:wt.default.bool,resolution:xt,type:Object.keys(bt)};Et.type;var $t=mt(Et,["type"]),At=dt({minAspectRatio:wt.default.string,maxAspectRatio:wt.default.string,minDeviceAspectRatio:wt.default.string,maxDeviceAspectRatio:wt.default.string,minHeight:xt,maxHeight:xt,minDeviceHeight:xt,maxDeviceHeight:xt,minWidth:xt,maxWidth:xt,minDeviceWidth:xt,maxDeviceWidth:xt,minColor:wt.default.number,maxColor:wt.default.number,minColorIndex:wt.default.number,maxColorIndex:wt.default.number,minMonochrome:wt.default.number,maxMonochrome:wt.default.number,minResolution:xt,maxResolution:xt},$t),Rt=dt(dt({},bt),At);it.default={all:Rt,types:bt,matchers:Et,features:At}},"./src/toQuery.ts":function(rt,it,ct){var dt=this&&this.__importDefault||function($t){return $t&&$t.__esModule?$t:{default:$t}};Object.defineProperty(it,"__esModule",{value:!0});var mt=dt(ct("./node_modules/hyphenate-style-name/index.js")),vt=dt(ct("./src/mediaQuery.ts")),wt=function($t){return"not ".concat($t)},xt=function($t,At){var Rt=(0,mt.default)($t);return typeof At=="number"&&(At="".concat(At,"px")),At===!0?Rt:At===!1?wt(Rt):"(".concat(Rt,": ").concat(At,")")},bt=function($t){return $t.join(" and ")},Et=function($t){var At=[];return Object.keys(vt.default.all).forEach(function(Rt){var Pt=$t[Rt];Pt!=null&&At.push(xt(Rt,Pt))}),bt(At)};it.default=Et},"./src/useMediaQuery.ts":function(rt,it,ct){var dt=this&&this.__importDefault||function(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}};Object.defineProperty(it,"__esModule",{value:!0});var mt=ct("react"),vt=dt(ct("./node_modules/matchmediaquery/index.js")),wt=dt(ct("./node_modules/hyphenate-style-name/index.js")),xt=ct("./node_modules/shallow-equal/dist/index.esm.js"),bt=dt(ct("./src/toQuery.ts")),Et=dt(ct("./src/Context.ts")),$t=function(Nt){return Nt.query||(0,bt.default)(Nt)},At=function(Nt){if(Nt){var zt=Object.keys(Nt);return zt.reduce(function(gt,nt){return gt[(0,wt.default)(nt)]=Nt[nt],gt},{})}},Rt=function(){var Nt=(0,mt.useRef)(!1);return(0,mt.useEffect)(function(){Nt.current=!0},[]),Nt.current},Pt=function(Nt){var zt=(0,mt.useContext)(Et.default),gt=function(){return At(Nt)||At(zt)},nt=(0,mt.useState)(gt),ot=nt[0],st=nt[1];return(0,mt.useEffect)(function(){var lt=gt();(0,xt.shallowEqualObjects)(ot,lt)||st(lt)},[Nt,zt]),ot},Ct=function(Nt){var zt=function(){return $t(Nt)},gt=(0,mt.useState)(zt),nt=gt[0],ot=gt[1];return(0,mt.useEffect)(function(){var st=zt();nt!==st&&ot(st)},[Nt]),nt},Ot=function(Nt,zt){var gt=function(){return(0,vt.default)(Nt,zt||{},!!zt)},nt=(0,mt.useState)(gt),ot=nt[0],st=nt[1],lt=Rt();return(0,mt.useEffect)(function(){if(lt){var pt=gt();return st(pt),function(){pt&&pt.dispose()}}},[Nt,zt]),ot},kt=function(Nt){var zt=(0,mt.useState)(Nt.matches),gt=zt[0],nt=zt[1];return(0,mt.useEffect)(function(){var ot=function(st){nt(st.matches)};return Nt.addListener(ot),nt(Nt.matches),function(){Nt.removeListener(ot)}},[Nt]),gt},Dt=function(Nt,zt,gt){var nt=Pt(zt),ot=Ct(Nt);if(!ot)throw new Error("Invalid or missing MediaQuery!");var st=Ot(ot,nt),lt=kt(st),pt=Rt();return(0,mt.useEffect)(function(){pt&>&>(lt)},[lt]),(0,mt.useEffect)(function(){return function(){st&&st.dispose()}},[]),lt};it.default=Dt},react:rt=>{rt.exports=$}},_e={};function et(rt){var it=_e[rt];if(it!==void 0)return it.exports;var ct=_e[rt]={exports:{}};return j[rt].call(ct.exports,ct,ct.exports,et),ct.exports}et.d=(rt,it)=>{for(var ct in it)et.o(it,ct)&&!et.o(rt,ct)&&Object.defineProperty(rt,ct,{enumerable:!0,get:it[ct]})},et.o=(rt,it)=>Object.prototype.hasOwnProperty.call(rt,it),et.r=rt=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(rt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(rt,"__esModule",{value:!0})};var tt=et("./src/index.ts");return tt})())})(reactResponsive);var reactResponsiveExports=reactResponsive.exports;Object.defineProperty(Media,"__esModule",{value:!0});Media.useNotMobileMediaQuery=Media.useMobileMediaQuery=Media.useTabletAndBelowMediaQuery=Media.useTabletMediaQuery=Media.useDesktopMediaQuery=Media.useBigDesktopMediaQuery=NotMobile_1=Media.NotMobile=Mobile_1=Media.Mobile=Media.TabletAndBelow=Media.Tablet=Media.Desktop=void 0;var react_responsive_1=reactResponsiveExports,useBigDesktopMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({minWidth:1920})};Media.useBigDesktopMediaQuery=useBigDesktopMediaQuery;var useDesktopMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({minWidth:992})};Media.useDesktopMediaQuery=useDesktopMediaQuery;var useTabletMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({minWidth:768,maxWidth:991})};Media.useTabletMediaQuery=useTabletMediaQuery;var useTabletAndBelowMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({maxWidth:991})};Media.useTabletAndBelowMediaQuery=useTabletAndBelowMediaQuery;var useMobileMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({maxWidth:767})};Media.useMobileMediaQuery=useMobileMediaQuery;var useNotMobileMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({minWidth:768})};Media.useNotMobileMediaQuery=useNotMobileMediaQuery;var Desktop=function(a){var _=a.children,$=useDesktopMediaQuery();return $?_:null};Media.Desktop=Desktop;var Tablet=function(a){var _=a.children,$=useTabletMediaQuery();return $?_:null};Media.Tablet=Tablet;var TabletAndBelow=function(a){var _=a.children,$=useTabletAndBelowMediaQuery();return $?_:null};Media.TabletAndBelow=TabletAndBelow;var Mobile=function(a){var _=a.children,$=useMobileMediaQuery();return $?_:null},Mobile_1=Media.Mobile=Mobile,NotMobile=function(a){var _=a.children,$=useNotMobileMediaQuery();return $?_:null},NotMobile_1=Media.NotMobile=NotMobile;const backImg="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/back-26d3dbd9.svg",diceImg="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/dice-b919368b.svg",logoSrc="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/logo-9a364aec.svg",wrongImg="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/wrong-1ccde1e7.svg",useAfterLoginRedirection=()=>{const a=useLocation(),$=new URLSearchParams(a.search).get("redirectTo"),j=$?decodeURIComponent($):null;if(j!==null)try{let _e;return j.startsWith("/")?_e=new URL(j,window.location.origin):_e=new URL(j),_e.hostname!==window.location.hostname?void 0:_e.href}catch{console.error("Can't parse redirectTo URL");return}},defaultFeatureFlagsContextValue={flags:{},initialized:!1},FeatureFlagsContext=reactExports.createContext(defaultFeatureFlagsContextValue),FeatureFlagsProvider=a=>{const[_,$]=reactExports.useState(defaultFeatureFlagsContextValue),[j,_e]=reactExports.useState(!0),et=reactExports.useRef();return reactExports.useEffect(()=>{(async()=>{if(j){_e(!1);const tt=config$1.get("FEATURE_FLAGS_URL"),it=await(await fetch(`${tt}/dapps.json`)).json();$({..._,flags:it.flags,initialized:!0})}})()},[j]),reactExports.useEffect(()=>{const tt=config$1.get("FEATURE_FLAGS_INTERVAL");return et.current=setInterval(()=>{_e(!0)},Number(tt)),()=>{clearInterval(et.current)}},[]),jsxRuntimeExports.jsx(FeatureFlagsContext.Provider,{value:_,children:a.children})};async function subscribeToNewsletter(a){const _=config$1.get("BUILDER_SERVER_URL");if(!_)throw new Error("Missing BUILDER_SERVER_URL.");const $=await fetch(_+"/v1/newsletter",{method:"post",body:JSON.stringify({email:a,source:"auth"}),headers:{"content-type":"application/json"}});if(!$.ok)throw new Error(`Could not subscribe to newsletter. Status: ${$.status}`)}async function deployProfileFromDefault({defaultProfile:a,connectedAccount:_,deploymentProfileName:$,connectedAccountIdentity:j}){var $t;const _e=config$1.get("PEER_URL",""),et=dist$1.createContentClient({url:_e+"/content",fetcher:dist$2.createFetchComponent()}),rt=(await et.fetchEntitiesByPointers([a]))[0],it="body.png",ct="face256.png",dt=rt.content.reduce((At,Rt)=>({...At,[Rt.file]:Rt.hash}),{}),[mt,vt]=await Promise.all([et.downloadContent(dt[it]),et.downloadContent(dt[ct])]),wt=new Map;wt.set(it,mt),wt.set(ct,vt);const xt=At=>At.replace("dcl://base-avatars/","urn:decentraland:off-chain:base-avatars:"),bt=($t=rt.metadata.avatars)==null?void 0:$t[0];bt.name=$,bt.ethAddress=_,bt.userId=_,bt.version=1,bt.tutorialStep=0,bt.hasClaimedName=!1,bt.hasConnectedWeb3=!0,bt.avatar.bodyShape=xt(rt.metadata.avatars[0].avatar.bodyShape),bt.avatar.wearables=rt.metadata.avatars[0].avatar.wearables.map(xt),bt.avatar.emotes=[];const Et=await dist$1.DeploymentBuilder.buildEntity({type:dist$5.EntityType.PROFILE,pointers:[_],metadata:{avatars:[bt]},timestamp:Date.now(),files:wt});await et.deploy({entityId:Et.entityId,files:Et.files,authChain:dist$6.Authenticator.signPayload(j,Et.entityId)})}const container$1="_container_wdiad_1",background$1="_background_wdiad_9",left$1="_left_wdiad_20",leftInner="_leftInner_wdiad_48",logo="_logo_wdiad_54",title$3="_title_wdiad_59",subtitle$1="_subtitle_wdiad_66",meetYourAvatar="_meetYourAvatar_wdiad_72",meetYourAvatarDescription="_meetYourAvatarDescription_wdiad_79",randomize="_randomize_wdiad_86",logoSmall="_logoSmall_wdiad_102",back="_back_wdiad_9",name="_name_wdiad_121",agree="_agree_wdiad_125",error="_error_wdiad_145",emailError="_emailError_wdiad_156",agreeError="_agreeError_wdiad_160",jumpIn="_jumpIn_wdiad_166",right$1="_right_wdiad_170",mobileContainer="_mobileContainer_wdiad_183",mobilePreviewContainer="_mobilePreviewContainer_wdiad_196",mobileButtons="_mobileButtons_wdiad_206",mobileCompleteYourProfile="_mobileCompleteYourProfile_wdiad_231",styles$8={container:container$1,background:background$1,left:left$1,leftInner,logo,title:title$3,subtitle:subtitle$1,meetYourAvatar,meetYourAvatarDescription,randomize,continue:"_continue_wdiad_97",logoSmall,back,name,agree,error,emailError,agreeError,jumpIn,right:right$1,mobileContainer,mobilePreviewContainer,mobileButtons,mobileCompleteYourProfile};function getRandomDefaultProfile(){return"default"+(Math.floor(Math.random()*(160-1+1))+1)}const ErrorMessage=a=>jsxRuntimeExports.jsxs("div",{className:classNames(styles$8.error,a.className),children:[jsxRuntimeExports.jsx("img",{src:wrongImg}),jsxRuntimeExports.jsx("div",{children:a.message})]}),SetupPage=()=>{const[a,_]=reactExports.useState(!1),[$,j]=reactExports.useState(0),[_e,et]=reactExports.useState(getRandomDefaultProfile()),[tt,rt]=reactExports.useState(""),[it,ct]=reactExports.useState(""),[dt,mt]=reactExports.useState(!1),[vt,wt]=reactExports.useState(!1),[xt,bt]=reactExports.useState(!1),Et=reactExports.useRef(),$t=reactExports.useRef(),{initialized:At}=reactExports.useContext(FeatureFlagsContext),Rt=useAfterLoginRedirection(),Pt=reactExports.useMemo(()=>tt.length?tt.length>=15?"Sorry, usernames can have a maximum of 15 characters.":tt.includes(" ")?"Sorry, spaces are not permitted.":/^[a-zA-Z0-9]+$/.test(tt)?"":"Sorry, special characters (!@#$%) are not permitted.":"Please enter your username.",[tt]),Ct=reactExports.useMemo(()=>it&&!it.includes("@")?"Invalid email, please try again.":"",[it]),Ot=reactExports.useMemo(()=>dt?"":"Please accept the terms of use and privacy policy.",[dt]),kt=reactExports.useMemo(()=>{if(Rt){if(Rt.includes("play"))return"jump into decentraland";const lt=["marketplace","builder","account","profile","events","places","governance","dao","rewards"];for(const pt of lt)if(Rt.includes(pt))return`continue to ${pt}`}return"continue"},[Rt]),Dt=reactExports.useCallback(()=>{getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.RANDOMIZE}),et(getRandomDefaultProfile())},[]),Nt=reactExports.useCallback(()=>{getAnalytics().track(TrackingEvents.AVATAR_EDIT_SUCCESS,{eth_address:Et.current,is_guest:!1,profile:_e}),j(1)},[_e]),zt=reactExports.useCallback(()=>{getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.BACK_TO_AVATAR_RANDOMIZATION_VIEW}),j(0)},[]),gt=reactExports.useCallback((lt,pt)=>rt(pt.value),[]),nt=reactExports.useCallback((lt,pt)=>ct(pt.value),[]),ot=reactExports.useCallback(()=>mt(!dt),[dt]),st=reactExports.useCallback(async lt=>{if(lt.preventDefault(),getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.SUBMIT_PROFILE}),wt(!0),!(Pt||Ct||Ot)){if(!Et.current||!$t.current){console.warn("No account or identity found.");return}try{if(bt(!0),await deployProfileFromDefault({connectedAccount:Et.current,connectedAccountIdentity:$t.current,defaultProfile:_e,deploymentProfileName:tt}),it)try{await subscribeToNewsletter(it)}catch(pt){console.warn("There was an error subscribing to the newsletter",pt.message)}getAnalytics().track(TrackingEvents.TERMS_OF_SERVICE_SUCCESS,{eth_address:Et.current,is_guest:!1,email:it||void 0,name:tt}),Rt?window.location.href=Rt:window.location.href="/"}catch(pt){bt(!1),console.error("There was an error deploying the profile",pt.message)}}},[Pt,Ct,Ot,tt,it,dt,_e,Rt]);return reactExports.useEffect(()=>{(async()=>{const lt=()=>{window.location.href=`/auth/login${Rt?`?redirectTo=${Rt}`:""}`};try{const _t=await getCurrentConnectionData();if(!_t)throw new Error("No connection data found");Et.current=_t.account,$t.current=_t.identity}catch{console.warn("No previous connection found"),lt();return}if(await fetchProfile(Et.current)){console.warn("Profile already exists"),Rt?(console.log("Redirecting to",Rt),window.location.href=Rt):window.location.href="/";return}_(!0)})()},[Rt]),!a||!At?jsxRuntimeExports.jsxs("div",{className:styles$8.container,children:[jsxRuntimeExports.jsx("div",{className:styles$8.background}),jsxRuntimeExports.jsx(Loader_3,{active:!0,size:"huge"})]}):$===0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Mobile_1,{children:jsxRuntimeExports.jsxs("div",{className:styles$8.container,children:[jsxRuntimeExports.jsx("div",{className:styles$8.background}),jsxRuntimeExports.jsxs("div",{className:styles$8.mobileContainer,children:[jsxRuntimeExports.jsx("img",{className:styles$8.logo,src:logoSrc,alt:"logo"}),jsxRuntimeExports.jsx("div",{className:styles$8.title,children:"Welcome to Decentraland!"}),jsxRuntimeExports.jsx("div",{className:styles$8.meetYourAvatar,children:"First, Meet Your Avatar"}),jsxRuntimeExports.jsxs("div",{className:styles$8.meetYourAvatarDescription,children:["Choose an avatar to start your journey.",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("b",{children:"You can customize it later on desktop"}),", where all the magic happens!"]}),jsxRuntimeExports.jsx("div",{className:styles$8.mobilePreviewContainer,children:jsxRuntimeExports.jsx(CustomWearablePreview,{profile:_e})}),jsxRuntimeExports.jsxs("div",{className:styles$8.mobileButtons,children:[jsxRuntimeExports.jsx("div",{className:styles$8.randomize,children:jsxRuntimeExports.jsxs(Button$5.Button,{compact:!0,inverted:!0,onClick:Dt,children:[jsxRuntimeExports.jsx("img",{src:diceImg,alt:"diceImg"}),jsxRuntimeExports.jsx("span",{children:"randomize"})]})}),jsxRuntimeExports.jsx("div",{className:styles$8.continue,children:jsxRuntimeExports.jsx(Button$5.Button,{compact:!0,primary:!0,onClick:Nt,children:"Continue"})})]})]})]})}),jsxRuntimeExports.jsx(NotMobile_1,{children:jsxRuntimeExports.jsxs("div",{className:styles$8.container,children:[jsxRuntimeExports.jsx("div",{className:styles$8.background}),jsxRuntimeExports.jsx("div",{className:styles$8.left,children:jsxRuntimeExports.jsxs("div",{className:styles$8.leftInner,children:[jsxRuntimeExports.jsx("img",{className:styles$8.logo,src:logoSrc,alt:"logo"}),jsxRuntimeExports.jsx("div",{className:styles$8.title,children:"Welcome to Decentraland!"}),jsxRuntimeExports.jsx("div",{className:styles$8.subtitle,children:"Your journey begins here"}),jsxRuntimeExports.jsx("div",{className:styles$8.meetYourAvatar,children:"First, Meet Your Avatar"}),jsxRuntimeExports.jsxs("div",{className:styles$8.meetYourAvatarDescription,children:["Say hi to your new digital self!",jsxRuntimeExports.jsx("br",{}),"Don't worry, of course they're not quite 'you' yet—soon you'll be able to customize them to your heart's content."]}),jsxRuntimeExports.jsx("div",{className:styles$8.randomize,children:jsxRuntimeExports.jsxs(Button$5.Button,{compact:!0,inverted:!0,onClick:Dt,children:[jsxRuntimeExports.jsx("img",{src:diceImg,alt:"diceImg"}),jsxRuntimeExports.jsx("span",{children:"randomize"})]})}),jsxRuntimeExports.jsx("div",{className:styles$8.continue,children:jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,fluid:!0,onClick:Nt,children:"Continue"})})]})}),jsxRuntimeExports.jsx("div",{className:styles$8.right,children:jsxRuntimeExports.jsx(CustomWearablePreview,{profile:_e})})]})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Mobile_1,{children:jsxRuntimeExports.jsxs("div",{className:styles$8.container,children:[jsxRuntimeExports.jsx("div",{className:styles$8.background}),jsxRuntimeExports.jsxs("div",{className:styles$8.mobileContainer,children:[jsxRuntimeExports.jsxs("div",{className:styles$8.back,onClick:zt,children:[jsxRuntimeExports.jsx("img",{src:backImg,alt:"backImg"}),jsxRuntimeExports.jsx("span",{children:"BACK"})]}),jsxRuntimeExports.jsx("div",{className:classNames(styles$8.title,styles$8.mobileCompleteYourProfile),children:"Complete your Profile"}),jsxRuntimeExports.jsxs("form",{onSubmit:st,children:[jsxRuntimeExports.jsx("div",{className:styles$8.name,children:jsxRuntimeExports.jsx(Field_2,{label:"Username",placeholder:"Enter your Username",onChange:gt,message:vt&&Pt?jsxRuntimeExports.jsx(ErrorMessage,{message:Pt}):void 0})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Field_2,{label:"Email (optional)",placeholder:"Enter your email",message:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[vt&&Ct?jsxRuntimeExports.jsx(ErrorMessage,{className:styles$8.emailError,message:Ct}):null,jsxRuntimeExports.jsx("span",{children:"Subscribe to Decentraland's newsletter to receive the latest news about events, updates, contests and more."})]}),onChange:nt})}),jsxRuntimeExports.jsxs("div",{className:styles$8.agree,children:[jsxRuntimeExports.jsx(Checkbox$4.Checkbox,{onChange:ot}),jsxRuntimeExports.jsxs("div",{children:["I agree with Decentraland's ",jsxRuntimeExports.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://decentraland.org/terms/",children:"Terms of use"})," and ",jsxRuntimeExports.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://decentraland.org/privacy",children:"Privacy policy"}),"."]})]}),vt&&Ot?jsxRuntimeExports.jsx(ErrorMessage,{className:styles$8.agreeError,message:Ot}):null,jsxRuntimeExports.jsx("div",{className:styles$8.jumpIn,children:jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,fluid:!0,type:"submit",disabled:!dt||xt,loading:xt,children:kt})})]})]})]})}),jsxRuntimeExports.jsx(NotMobile_1,{children:jsxRuntimeExports.jsxs("div",{className:styles$8.container,children:[jsxRuntimeExports.jsx("div",{className:styles$8.background}),jsxRuntimeExports.jsx("div",{className:styles$8.left,children:jsxRuntimeExports.jsxs("div",{className:styles$8.leftInner,children:[jsxRuntimeExports.jsx("img",{className:styles$8.logoSmall,src:logoSrc,alt:"logo"}),jsxRuntimeExports.jsxs("div",{className:styles$8.back,onClick:zt,children:[jsxRuntimeExports.jsx("img",{src:backImg,alt:"backImg"}),jsxRuntimeExports.jsx("span",{children:"BACK"})]}),jsxRuntimeExports.jsx("div",{className:styles$8.title,children:"Complete your Profile"}),jsxRuntimeExports.jsxs("form",{onSubmit:st,children:[jsxRuntimeExports.jsx("div",{className:styles$8.name,children:jsxRuntimeExports.jsx(Field_2,{label:"Username",placeholder:"Enter your username",onChange:gt,message:vt&&Pt?jsxRuntimeExports.jsx(ErrorMessage,{message:Pt}):void 0})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Field_2,{label:"Email (optional)",placeholder:"Enter your email",message:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[vt&&Ct?jsxRuntimeExports.jsx(ErrorMessage,{className:styles$8.emailError,message:Ct}):null,jsxRuntimeExports.jsx("span",{children:"Subscribe to Decentraland's newsletter to receive the latest news about events, updates, contests and more."})]}),onChange:nt})}),jsxRuntimeExports.jsxs("div",{className:styles$8.agree,children:[jsxRuntimeExports.jsx(Checkbox$4.Checkbox,{onChange:ot}),"I agree with Decentraland's ",jsxRuntimeExports.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://decentraland.org/terms/",children:"Terms of use"})," and ",jsxRuntimeExports.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://decentraland.org/privacy",children:"Privacy policy"}),"."]}),vt&&Ot?jsxRuntimeExports.jsx(ErrorMessage,{className:styles$8.agreeError,message:Ot}):null,jsxRuntimeExports.jsx("div",{className:styles$8.jumpIn,children:jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,fluid:!0,type:"submit",disabled:!dt||xt,loading:xt,children:kt})})]})]})}),jsxRuntimeExports.jsx("div",{className:styles$8.right,children:jsxRuntimeExports.jsx(CustomWearablePreview,{profile:_e})})]})})]})},main$4="_main_qbssu_1",styles$7={main:main$4},DefaultPage=()=>{const a=useNavigate(),_=useLocation();return reactExports.useEffect(()=>{getCurrentConnectionData().then($=>{$?window.location.href="/":a({pathname:"/login",search:_.search})})},[getCurrentConnectionData,a]),jsxRuntimeExports.jsx("div",{className:styles$7.main,children:jsxRuntimeExports.jsx(Loader_3,{active:!0,size:"huge"})})};var Modal$3={},Modal$2={},_arrayReduce,hasRequired_arrayReduce;function require_arrayReduce(){if(hasRequired_arrayReduce)return _arrayReduce;hasRequired_arrayReduce=1;function a(_,$,j,_e){var et=-1,tt=_==null?0:_.length;for(_e&&tt&&(j=_[++et]);++et<tt;)j=$(j,_[et],et,_);return j}return _arrayReduce=a,_arrayReduce}var _baseReduce,hasRequired_baseReduce;function require_baseReduce(){if(hasRequired_baseReduce)return _baseReduce;hasRequired_baseReduce=1;function a(_,$,j,_e,et){return et(_,function(tt,rt,it){j=_e?(_e=!1,tt):$(j,tt,rt,it)}),j}return _baseReduce=a,_baseReduce}var reduce_1,hasRequiredReduce;function requireReduce(){if(hasRequiredReduce)return reduce_1;hasRequiredReduce=1;var a=require_arrayReduce(),_=require_baseEach(),$=require_baseIteratee(),j=require_baseReduce(),_e=requireIsArray();function et(tt,rt,it){var ct=_e(tt)?a:j,dt=arguments.length<3;return ct(tt,$(rt,4),it,dt,_)}return reduce_1=et,reduce_1}var ModalActions={},hasRequiredModalActions;function requireModalActions(){if(hasRequiredModalActions)return ModalActions;hasRequiredModalActions=1;var a=interopRequireWildcardExports,_=interopRequireDefaultExports;ModalActions.__esModule=!0,ModalActions.default=void 0;var $=_(require_extends()),j=_(requireInheritsLoose()),_e=_(requireMap()),et=_(requireInvoke()),tt=_(require$$0$4);_(requirePropTypes());var rt=a(reactExports),it=requireLib(),ct=_(requireButton()),dt=function(mt){(0,j.default)(vt,mt);function vt(){for(var xt,bt=arguments.length,Et=new Array(bt),$t=0;$t<bt;$t++)Et[$t]=arguments[$t];return xt=mt.call.apply(mt,[this].concat(Et))||this,xt.handleButtonOverrides=function(At){return{onClick:function(Pt,Ct){(0,et.default)(At,"onClick",Pt,Ct),(0,et.default)(xt.props,"onActionClick",Pt,Ct)}}},xt}var wt=vt.prototype;return wt.render=function(){var bt=this,Et=this.props,$t=Et.actions,At=Et.children,Rt=Et.className,Pt=Et.content,Ct=(0,tt.default)("actions",Rt),Ot=(0,it.getUnhandledProps)(vt,this.props),kt=(0,it.getElementType)(vt,this.props);return it.childrenUtils.isNil(At)?it.childrenUtils.isNil(Pt)?rt.default.createElement(kt,(0,$.default)({},Ot,{className:Ct}),(0,_e.default)($t,function(Dt){return ct.default.create(Dt,{overrideProps:bt.handleButtonOverrides})})):rt.default.createElement(kt,(0,$.default)({},Ot,{className:Ct}),Pt):rt.default.createElement(kt,(0,$.default)({},Ot,{className:Ct}),At)},vt}(rt.Component);return ModalActions.default=dt,dt.handledProps=["actions","as","children","className","content","onActionClick"],dt.propTypes={},dt.create=(0,it.createShorthandFactory)(dt,function(mt){return{actions:mt}}),ModalActions}var ModalContent$1={},hasRequiredModalContent;function requireModalContent(){if(hasRequiredModalContent)return ModalContent$1;hasRequiredModalContent=1;var a=interopRequireDefaultExports;ModalContent$1.__esModule=!0,ModalContent$1.default=void 0;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(rt){var it=rt.children,ct=rt.className,dt=rt.content,mt=rt.image,vt=rt.scrolling,wt=(0,$.default)(ct,(0,_e.useKeyOnly)(mt,"image"),(0,_e.useKeyOnly)(vt,"scrolling"),"content"),xt=(0,_e.getUnhandledProps)(et,rt),bt=(0,_e.getElementType)(et,rt);return j.default.createElement(bt,(0,_.default)({},xt,{className:wt}),_e.childrenUtils.isNil(it)?dt:it)}et.handledProps=["as","children","className","content","image","scrolling"],et.propTypes={},et.create=(0,_e.createShorthandFactory)(et,function(rt){return{content:rt}});var tt=et;return ModalContent$1.default=tt,ModalContent$1}var ModalDescription={},hasRequiredModalDescription;function requireModalDescription(){if(hasRequiredModalDescription)return ModalDescription;hasRequiredModalDescription=1;var a=interopRequireDefaultExports;ModalDescription.__esModule=!0,ModalDescription.default=void 0;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(rt){var it=rt.children,ct=rt.className,dt=rt.content,mt=(0,$.default)("description",ct),vt=(0,_e.getUnhandledProps)(et,rt),wt=(0,_e.getElementType)(et,rt);return j.default.createElement(wt,(0,_.default)({},vt,{className:mt}),_e.childrenUtils.isNil(it)?dt:it)}et.handledProps=["as","children","className","content"],et.propTypes={};var tt=et;return ModalDescription.default=tt,ModalDescription}var ModalDimmer={},hasRequiredModalDimmer;function requireModalDimmer(){if(hasRequiredModalDimmer)return ModalDimmer;hasRequiredModalDimmer=1;var a=interopRequireDefaultExports;ModalDimmer.__esModule=!0,ModalDimmer.default=void 0;var _=a(require_extends()),$=require$$4$1,j=a(require$$0$4);a(requirePropTypes());var _e=a(reactExports),et=requireLib();function tt(it){var ct=it.blurring,dt=it.children,mt=it.className,vt=it.centered,wt=it.content,xt=it.inverted,bt=it.mountNode,Et=it.scrolling,$t=_e.default.useRef(),At=(0,j.default)("ui",(0,et.useKeyOnly)(xt,"inverted"),(0,et.useKeyOnly)(!vt,"top aligned"),"page modals dimmer transition visible active",mt),Rt=(0,j.default)("dimmable dimmed",(0,et.useKeyOnly)(ct,"blurring"),(0,et.useKeyOnly)(Et,"scrolling")),Pt=(0,et.getUnhandledProps)(tt,it),Ct=(0,et.getElementType)(tt,it);return(0,et.useClassNamesOnNode)(bt,Rt),_e.default.useEffect(function(){$t.current&&$t.current.style&&$t.current.style.setProperty("display","flex","important")},[]),_e.default.createElement($.Ref,{innerRef:$t},_e.default.createElement(Ct,(0,_.default)({},Pt,{className:At}),et.childrenUtils.isNil(dt)?wt:dt))}tt.handledProps=["as","blurring","centered","children","className","content","inverted","mountNode","scrolling"],tt.propTypes={},tt.create=(0,et.createShorthandFactory)(tt,function(it){return{content:it}});var rt=tt;return ModalDimmer.default=rt,ModalDimmer}var ModalHeader={},hasRequiredModalHeader;function requireModalHeader(){if(hasRequiredModalHeader)return ModalHeader;hasRequiredModalHeader=1;var a=interopRequireDefaultExports;ModalHeader.__esModule=!0,ModalHeader.default=void 0;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(rt){var it=rt.children,ct=rt.className,dt=rt.content,mt=(0,$.default)("header",ct),vt=(0,_e.getUnhandledProps)(et,rt),wt=(0,_e.getElementType)(et,rt);return j.default.createElement(wt,(0,_.default)({},vt,{className:mt}),_e.childrenUtils.isNil(it)?dt:it)}et.handledProps=["as","children","className","content"],et.propTypes={},et.create=(0,_e.createShorthandFactory)(et,function(rt){return{content:rt}});var tt=et;return ModalHeader.default=tt,ModalHeader}var utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1,utils.__esModule=!0,utils.isLegacy=utils.getLegacyStyles=utils.canFit=void 0;var a=0,_=50,$=function(tt){var rt=tt.height+a,it=tt.height+a,ct=window.innerHeight,dt=ct/2,mt=-(it/2),vt=_,wt=dt+mt;return wt+rt+vt<ct};utils.canFit=$;var j=function(tt,rt,it){var ct=rt&&tt?-(it.height/2):0,dt=-(it.width/2);return{marginLeft:dt,marginTop:ct}};utils.getLegacyStyles=j;var _e=function(){return!window.ActiveXObject&&"ActiveXObject"in window};return utils.isLegacy=_e,utils}var _interopRequireWildcard=interopRequireWildcardExports,_interopRequireDefault$1=interopRequireDefaultExports;Modal$2.__esModule=!0;Modal$2.default=void 0;var _extends2=_interopRequireDefault$1(require_extends()),_inheritsLoose2=_interopRequireDefault$1(requireInheritsLoose()),_isPlainObject2=_interopRequireDefault$1(requireIsPlainObject()),_pick2=_interopRequireDefault$1(requirePick()),_includes2=_interopRequireDefault$1(requireIncludes()),_reduce2=_interopRequireDefault$1(requireReduce()),_isEmpty2=_interopRequireDefault$1(requireIsEmpty()),_invoke2=_interopRequireDefault$1(requireInvoke()),_reactComponentRef=require$$4$1,_clsx=_interopRequireDefault$1(require$$0$4);_interopRequireDefault$1(requirePropTypes());var _react=_interopRequireWildcard(reactExports),_shallowequal=_interopRequireDefault$1(requireShallowequal()),_lib=requireLib(),_Icon=_interopRequireDefault$1(requireIcon()),_Portal=_interopRequireDefault$1(requirePortal()),_ModalActions=_interopRequireDefault$1(requireModalActions()),_ModalContent=_interopRequireDefault$1(requireModalContent()),_ModalDescription=_interopRequireDefault$1(requireModalDescription()),_ModalDimmer=_interopRequireDefault$1(requireModalDimmer()),_ModalHeader=_interopRequireDefault$1(requireModalHeader()),_utils=requireUtils(),Modal$1=function(a){(0,_inheritsLoose2.default)(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.legacy=(0,_lib.isBrowser)()&&(0,_utils.isLegacy)(),j.ref=(0,_react.createRef)(),j.dimmerRef=(0,_react.createRef)(),j.latestDocumentMouseDownEvent=null,j.getMountNode=function(){return(0,_lib.isBrowser)()?j.props.mountNode||document.body:null},j.handleActionsOverrides=function(rt){return{onActionClick:function(ct,dt){(0,_invoke2.default)(rt,"onActionClick",ct,dt),(0,_invoke2.default)(j.props,"onActionClick",ct,j.props),j.handleClose(ct)}}},j.handleClose=function(rt){j.setState({open:!1}),(0,_invoke2.default)(j.props,"onClose",rt,(0,_extends2.default)({},j.props,{open:!1}))},j.handleDocumentMouseDown=function(rt){j.latestDocumentMouseDownEvent=rt},j.handleDocumentClick=function(rt){var it=j.props.closeOnDimmerClick,ct=j.latestDocumentMouseDownEvent;j.latestDocumentMouseDownEvent=null,!(!it||(0,_lib.doesNodeContainClick)(j.ref.current,ct)||(0,_lib.doesNodeContainClick)(j.ref.current,rt))&&(j.setState({open:!1}),(0,_invoke2.default)(j.props,"onClose",rt,(0,_extends2.default)({},j.props,{open:!1})))},j.handleIconOverrides=function(rt){return{onClick:function(ct){(0,_invoke2.default)(rt,"onClick",ct),j.handleClose(ct)}}},j.handleOpen=function(rt){(0,_invoke2.default)(j.props,"onOpen",rt,(0,_extends2.default)({},j.props,{open:!0})),j.setState({open:!0})},j.handlePortalMount=function(rt){var it=j.props.eventPool;j.setState({scrolling:!1}),j.setPositionAndClassNames(),_lib.eventStack.sub("mousedown",j.handleDocumentMouseDown,{pool:it,target:j.dimmerRef.current}),_lib.eventStack.sub("click",j.handleDocumentClick,{pool:it,target:j.dimmerRef.current}),(0,_invoke2.default)(j.props,"onMount",rt,j.props)},j.handlePortalUnmount=function(rt){var it=j.props.eventPool;cancelAnimationFrame(j.animationRequestId),_lib.eventStack.unsub("mousedown",j.handleDocumentMouseDown,{pool:it,target:j.dimmerRef.current}),_lib.eventStack.unsub("click",j.handleDocumentClick,{pool:it,target:j.dimmerRef.current}),(0,_invoke2.default)(j.props,"onUnmount",rt,j.props)},j.setPositionAndClassNames=function(){var rt=j.props.centered,it,ct={};if(j.ref.current){var dt=j.ref.current.getBoundingClientRect(),mt=(0,_utils.canFit)(dt);it=!mt;var vt=j.legacy?(0,_utils.getLegacyStyles)(mt,rt,dt):{};(0,_shallowequal.default)(j.state.legacyStyles,vt)||(ct.legacyStyles=vt),j.state.scrolling!==it&&(ct.scrolling=it)}(0,_isEmpty2.default)(ct)||j.setState(ct),j.animationRequestId=requestAnimationFrame(j.setPositionAndClassNames)},j.renderContent=function(rt){var it=j.props,ct=it.actions,dt=it.basic,mt=it.children,vt=it.className,wt=it.closeIcon,xt=it.content,bt=it.header,Et=it.size,$t=it.style,At=j.state,Rt=At.legacyStyles,Pt=At.scrolling,Ct=(0,_clsx.default)("ui",Et,(0,_lib.useKeyOnly)(dt,"basic"),(0,_lib.useKeyOnly)(j.legacy,"legacy"),(0,_lib.useKeyOnly)(Pt,"scrolling"),"modal transition visible active",vt),Ot=(0,_lib.getElementType)(_,j.props),kt=wt===!0?"close":wt,Dt=_Icon.default.create(kt,{overrideProps:j.handleIconOverrides});return _react.default.createElement(_reactComponentRef.Ref,{innerRef:j.ref},_react.default.createElement(Ot,(0,_extends2.default)({},rt,{className:Ct,style:(0,_extends2.default)({},Rt,$t)}),Dt,_lib.childrenUtils.isNil(mt)?_react.default.createElement(_react.default.Fragment,null,_ModalHeader.default.create(bt,{autoGenerateKey:!1}),_ModalContent.default.create(xt,{autoGenerateKey:!1}),_ModalActions.default.create(ct,{overrideProps:j.handleActionsOverrides})):mt))},j}var $=_.prototype;return $.componentWillUnmount=function(){this.handlePortalUnmount()},$.render=function(){var _e=this.props,et=_e.centered,tt=_e.closeOnDocumentClick,rt=_e.dimmer,it=_e.eventPool,ct=_e.trigger,dt=this.state,mt=dt.open,vt=dt.scrolling,wt=this.getMountNode();if(!(0,_lib.isBrowser)())return(0,_react.isValidElement)(ct)?ct:null;var xt=(0,_lib.getUnhandledProps)(_,this.props),bt=_Portal.default.handledProps,Et=(0,_reduce2.default)(xt,function(At,Rt,Pt){return(0,_includes2.default)(bt,Pt)||(At[Pt]=Rt),At},{}),$t=(0,_pick2.default)(xt,bt);return _react.default.createElement(_Portal.default,(0,_extends2.default)({closeOnDocumentClick:tt},$t,{trigger:ct,eventPool:it,mountNode:wt,open:mt,onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount}),_react.default.createElement(_reactComponentRef.Ref,{innerRef:this.dimmerRef},_ModalDimmer.default.create((0,_isPlainObject2.default)(rt)?rt:{},{autoGenerateKey:!1,defaultProps:{blurring:rt==="blurring",inverted:rt==="inverted"},overrideProps:{children:this.renderContent(Et),centered:et,mountNode:wt,scrolling:vt}})))},_}(_lib.ModernAutoControlledComponent);Modal$1.handledProps=["actions","as","basic","centered","children","className","closeIcon","closeOnDimmerClick","closeOnDocumentClick","content","defaultOpen","dimmer","eventPool","header","mountNode","onActionClick","onClose","onMount","onOpen","onUnmount","open","size","style","trigger"];Modal$1.propTypes={};Modal$1.defaultProps={centered:!0,dimmer:!0,closeOnDimmerClick:!0,closeOnDocumentClick:!1,eventPool:"Modal"};Modal$1.autoControlledProps=["open"];Modal$1.Actions=_ModalActions.default;Modal$1.Content=_ModalContent.default;Modal$1.Description=_ModalDescription.default;Modal$1.Dimmer=_ModalDimmer.default;Modal$1.Header=_ModalHeader.default;var _default$1=Modal$1;Modal$2.default=_default$1;const Modal="";(function(a){var _=commonjsGlobal&&commonjsGlobal.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(a,"__esModule",{value:!0}),a.Modal=void 0;var $=Modal$2;Object.defineProperty(a,"Modal",{enumerable:!0,get:function(){return _($).default}})})(Modal$3);const wait=a=>new Promise(_=>setTimeout(_,a));var ModalContentExports=requireModalContent();const ModalContent=getDefaultExportFromCjs$1(ModalContentExports);var ModalNavigation$2={};const ModalNavigation$1="";var __extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var a=function(_,$){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,_e){j.__proto__=_e}||function(j,_e){for(var et in _e)Object.prototype.hasOwnProperty.call(_e,et)&&(j[et]=_e[et])},a(_,$)};return function(_,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");a(_,$);function j(){this.constructor=_}_.prototype=$===null?Object.create($):(j.prototype=$.prototype,new j)}}(),__createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(a,_,$,j){j===void 0&&(j=$);var _e=Object.getOwnPropertyDescriptor(_,$);(!_e||("get"in _e?!_.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return _[$]}}),Object.defineProperty(a,j,_e)}:function(a,_,$,j){j===void 0&&(j=$),a[j]=_[$]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(a,_){Object.defineProperty(a,"default",{enumerable:!0,value:_})}:function(a,_){a.default=_}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(a){if(a&&a.__esModule)return a;var _={};if(a!=null)for(var $ in a)$!=="default"&&Object.prototype.hasOwnProperty.call(a,$)&&__createBinding(_,a,$);return __setModuleDefault(_,a),_};Object.defineProperty(ModalNavigation$2,"__esModule",{value:!0});var ModalNavigation_2=ModalNavigation$2.ModalNavigation=void 0,React=__importStar(reactExports),ModalNavigation=function(a){__extends(_,a);function _(){return a!==null&&a.apply(this,arguments)||this}return _.prototype.render=function(){var $=this.props,j=$.title,_e=$.subtitle,et=$.onBack,tt=$.onClose,rt=$.onInfo;return React.createElement("div",{className:"dcl modal-navigation"},React.createElement("div",{className:"dcl modal-navigation-title"},j),_e&&React.createElement("div",{className:"dcl modal-navigation-subtitle"},_e),et&&React.createElement("div",{className:"dcl modal-navigation-button modal-navigation-back",onClick:et}),rt&&React.createElement("div",{className:"dcl modal-navigation-button modal-navigation-info",onClick:rt}),tt&&React.createElement("div",{className:"dcl modal-navigation-button modal-navigation-close",onClick:tt}))},_}(React.PureComponent);ModalNavigation_2=ModalNavigation$2.ModalNavigation=ModalNavigation;const warningSrc="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/warning-057948e8.svg";var ConnectionModalState=(a=>(a.CONNECTING_WALLET="CONNECTING_WALLET",a.WAITING_FOR_SIGNATURE="WAITING_FOR_SIGNATURE",a.ERROR="ERROR",a.LOADING_MAGIC="LOADING_MAGIC",a.VALIDATING_SIGN_IN="VALIDATING_SIGN_IN",a.WAITING_FOR_CONFIRMATION="WAITING_FOR_CONFIRMATION",a.ERROR_LOCKED_WALLET="ERROR_LOCKED_WALLET",a))(ConnectionModalState||{});function getConnectionMessage(a,_){switch(a){case ConnectionModalState.ERROR:return"You did not confirm this action in your digital wallet extension. To continue, please try again.";case ConnectionModalState.ERROR_LOCKED_WALLET:return"Your wallet is currently locked. To continue, please unlock your wallet and try again.";case ConnectionModalState.CONNECTING_WALLET:case ConnectionModalState.WAITING_FOR_SIGNATURE:return _===dist$5.ProviderType.MAGIC?"Almost done! Confirm your request to login Decentraland":"Confirm in your digital wallet extension to continue.";case ConnectionModalState.VALIDATING_SIGN_IN:return"Just a moment, we're verifying your login credentials...";case ConnectionModalState.LOADING_MAGIC:return"Redirecting..."}}const main$3="_main_1qx1l_1",content="_content_1qx1l_8",errorImage="_errorImage_1qx1l_16",message="_message_1qx1l_22",loader="_loader_1qx1l_29",styles$6={main:main$3,content,errorImage,message,loader},ConnectionModal=a=>{const{open:_,state:$,providerType:j,onClose:_e,onTryAgain:et}=a,tt=$===ConnectionModalState.CONNECTING_WALLET||$===ConnectionModalState.WAITING_FOR_SIGNATURE||$===ConnectionModalState.LOADING_MAGIC||$===ConnectionModalState.VALIDATING_SIGN_IN,rt=$===ConnectionModalState.ERROR||$===ConnectionModalState.ERROR_LOCKED_WALLET;return jsxRuntimeExports.jsxs(Modal$3.Modal,{size:"tiny",open:_,children:[jsxRuntimeExports.jsx(ModalNavigation_2,{title:"",onClose:tt?void 0:_e}),jsxRuntimeExports.jsx("div",{className:styles$6.main,children:jsxRuntimeExports.jsxs("div",{className:styles$6.content,children:[rt&&jsxRuntimeExports.jsx("img",{className:styles$6.errorImage,src:warningSrc}),tt&&jsxRuntimeExports.jsx(Loader_3,{className:styles$6.loader,size:"huge",inline:!0}),jsxRuntimeExports.jsx("p",{className:styles$6.message,children:getConnectionMessage($,j)}),rt&&jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,onClick:et,children:"Try again"})]})}),jsxRuntimeExports.jsx(ModalContent,{})]})};var Popup={},isElement_1,hasRequiredIsElement;function requireIsElement(){if(hasRequiredIsElement)return isElement_1;hasRequiredIsElement=1;var a=requireIsObjectLike(),_=requireIsPlainObject();function $(j){return a(j)&&j.nodeType===1&&!_(j)}return isElement_1=$,isElement_1}const require$$17=getAugmentedNamespace(esm);var positions={},_baseInverter,hasRequired_baseInverter;function require_baseInverter(){if(hasRequired_baseInverter)return _baseInverter;hasRequired_baseInverter=1;var a=require_baseForOwn();function _($,j,_e,et){return a($,function(tt,rt,it){j(et,_e(tt),rt,it)}),et}return _baseInverter=_,_baseInverter}var _createInverter,hasRequired_createInverter;function require_createInverter(){if(hasRequired_createInverter)return _createInverter;hasRequired_createInverter=1;var a=require_baseInverter();function _($,j){return function(_e,et){return a(_e,$,j(et),{})}}return _createInverter=_,_createInverter}var invert_1,hasRequiredInvert;function requireInvert(){if(hasRequiredInvert)return invert_1;hasRequiredInvert=1;var a=requireConstant(),_=require_createInverter(),$=requireIdentity(),j=Object.prototype,_e=j.toString,et=_(function(tt,rt,it){rt!=null&&typeof rt.toString!="function"&&(rt=_e.call(rt)),tt[rt]=it},a($));return invert_1=et,invert_1}var hasRequiredPositions;function requirePositions(){if(hasRequiredPositions)return positions;hasRequiredPositions=1;var a=interopRequireDefaultExports;positions.__esModule=!0,positions.placementMapping=positions.positions=positions.positionsMapping=void 0;var _=a(requireInvert()),$=a(requireKeys()),j={"top center":"top","top left":"top-start","top right":"top-end","bottom center":"bottom","bottom left":"bottom-start","bottom right":"bottom-end","right center":"right","left center":"left"};positions.positionsMapping=j;var _e=(0,$.default)(j);positions.positions=_e;var et=(0,_.default)(j);return positions.placementMapping=et,positions}var createReferenceProxy={},createClass={exports:{}},toPropertyKey={exports:{}},toPrimitive={exports:{}},hasRequiredToPrimitive;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,function(a){var _=_typeofExports$2.default;function $(j,_e){if(_(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}a.exports=$,a.exports.__esModule=!0,a.exports.default=a.exports}(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(a){var _=_typeofExports$2.default,$=requireToPrimitive();function j(_e){var et=$(_e,"string");return _(et)==="symbol"?et:String(et)}a.exports=j,a.exports.__esModule=!0,a.exports.default=a.exports}(toPropertyKey)),toPropertyKey.exports}var hasRequiredCreateClass;function requireCreateClass(){return hasRequiredCreateClass||(hasRequiredCreateClass=1,function(a){var _=requireToPropertyKey();function $(_e,et){for(var tt=0;tt<et.length;tt++){var rt=et[tt];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(_e,_(rt.key),rt)}}function j(_e,et,tt){return et&&$(_e.prototype,et),tt&&$(_e,tt),Object.defineProperty(_e,"prototype",{writable:!1}),_e}a.exports=j,a.exports.__esModule=!0,a.exports.default=a.exports}(createClass)),createClass.exports}var hasRequiredCreateReferenceProxy;function requireCreateReferenceProxy(){if(hasRequiredCreateReferenceProxy)return createReferenceProxy;hasRequiredCreateReferenceProxy=1;var a=interopRequireDefaultExports;createReferenceProxy.__esModule=!0,createReferenceProxy.default=void 0;var _=a(requireCreateClass()),$=a(requireMemoize()),j=a(requireInvoke()),_e=require$$4$1,et=function(){function it(dt){this.ref=dt}var ct=it.prototype;return ct.getBoundingClientRect=function(){return(0,j.default)(this.ref.current,"getBoundingClientRect")||{}},(0,_.default)(it,[{key:"clientWidth",get:function(){return this.getBoundingClientRect().width}},{key:"clientHeight",get:function(){return this.getBoundingClientRect().height}},{key:"parentNode",get:function(){return this.ref.current?this.ref.current.parentNode:void 0}}]),it}(),tt=(0,$.default)(function(it){return new et((0,_e.isRefObject)(it)?it:{current:it})}),rt=tt;return createReferenceProxy.default=rt,createReferenceProxy}var PopupContent={},hasRequiredPopupContent;function requirePopupContent(){if(hasRequiredPopupContent)return PopupContent;hasRequiredPopupContent=1;var a=interopRequireDefaultExports;PopupContent.__esModule=!0,PopupContent.default=et;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(tt){var rt=tt.children,it=tt.className,ct=tt.content,dt=(0,$.default)("content",it),mt=(0,_e.getUnhandledProps)(et,tt),vt=(0,_e.getElementType)(et,tt);return j.default.createElement(vt,(0,_.default)({},mt,{className:dt}),_e.childrenUtils.isNil(rt)?ct:rt)}return et.handledProps=["as","children","className","content"],et.propTypes={},et.create=(0,_e.createShorthandFactory)(et,function(tt){return{children:tt}}),PopupContent}var PopupHeader={},hasRequiredPopupHeader;function requirePopupHeader(){if(hasRequiredPopupHeader)return PopupHeader;hasRequiredPopupHeader=1;var a=interopRequireDefaultExports;PopupHeader.__esModule=!0,PopupHeader.default=et;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(tt){var rt=tt.children,it=tt.className,ct=tt.content,dt=(0,$.default)("header",it),mt=(0,_e.getUnhandledProps)(et,tt),vt=(0,_e.getElementType)(et,tt);return j.default.createElement(vt,(0,_.default)({},mt,{className:dt}),_e.childrenUtils.isNil(rt)?ct:rt)}return et.handledProps=["as","children","className","content"],et.propTypes={},et.create=(0,_e.createShorthandFactory)(et,function(tt){return{children:tt}}),PopupHeader}var hasRequiredPopup;function requirePopup(){if(hasRequiredPopup)return Popup;hasRequiredPopup=1;var a=interopRequireWildcardExports,_=interopRequireDefaultExports;Popup.__esModule=!0,Popup.default=void 0;var $=_(require_extends()),j=_(requireInheritsLoose());_(requireWithout());var _e=_(requireIsNil()),et=_(requireIsUndefined()),tt=_(requireInvoke()),rt=_(requireIsElement()),it=_(requireIsArray()),ct=_(requirePick()),dt=_(requireIncludes()),mt=_(requireReduce()),vt=_(requireLib$1()),wt=_(require$$0$4);_(requirePropTypes());var xt=a(reactExports),bt=require$$17,Et=_(requireShallowequal()),$t=requireLib(),At=_(requirePortal()),Rt=requirePositions(),Pt=_(requireCreateReferenceProxy()),Ct=_(requirePopupContent()),Ot=_(requirePopupHeader()),kt=function(Dt){(0,j.default)(Nt,Dt);function Nt(){for(var gt,nt=arguments.length,ot=new Array(nt),st=0;st<nt;st++)ot[st]=arguments[st];return gt=Dt.call.apply(Dt,[this].concat(ot))||this,gt.state={},gt.open=!1,gt.zIndexWasSynced=!1,gt.triggerRef=xt.default.createRef(),gt.elementRef=xt.default.createRef(),gt.getPortalProps=function(){var lt={},pt=gt.props,_t=pt.on,St=pt.hoverable,yt=(0,it.default)(_t)?_t:[_t];return St&&(lt.closeOnPortalMouseLeave=!0,lt.mouseLeaveDelay=300),(0,dt.default)(yt,"hover")&&(lt.openOnTriggerClick=!1,lt.closeOnTriggerClick=!1,lt.openOnTriggerMouseEnter=!0,lt.closeOnTriggerMouseLeave=!0,lt.mouseLeaveDelay=70,lt.mouseEnterDelay=50),(0,dt.default)(yt,"click")&&(lt.openOnTriggerClick=!0,lt.closeOnTriggerClick=!0,lt.closeOnDocumentClick=!0),(0,dt.default)(yt,"focus")&&(lt.openOnTriggerFocus=!0,lt.closeOnTriggerBlur=!0),lt},gt.hideOnScroll=function(lt){(0,rt.default)(lt.target)&>.elementRef.current.contains(lt.target)||(gt.setState({closed:!0}),$t.eventStack.unsub("scroll",gt.hideOnScroll,{target:window}),gt.timeoutId=setTimeout(function(){gt.setState({closed:!1})},50),gt.handleClose(lt))},gt.handleClose=function(lt){(0,tt.default)(gt.props,"onClose",lt,(0,$.default)({},gt.props,{open:!1}))},gt.handleOpen=function(lt){(0,tt.default)(gt.props,"onOpen",lt,(0,$.default)({},gt.props,{open:!0}))},gt.handlePortalMount=function(lt){(0,tt.default)(gt.props,"onMount",lt,gt.props)},gt.handlePortalUnmount=function(lt){gt.positionUpdate=null,(0,tt.default)(gt.props,"onUnmount",lt,gt.props)},gt.renderContent=function(lt){var pt=lt.placement,_t=lt.ref,St=lt.update,yt=lt.style,at=gt.props,ht=at.basic,Mt=at.children,Tt=at.className,It=at.content,Lt=at.hideOnScroll,jt=at.flowing,Gt=at.header,tr=at.inverted,er=at.popper,Jt=at.size,Wt=at.style,Kt=at.wide,lr=gt.state.contentRestProps;gt.positionUpdate=St;var Lr=(0,wt.default)("ui",Rt.placementMapping[pt],Jt,(0,$t.useKeyOrValueAndKey)(Kt,"wide"),(0,$t.useKeyOnly)(ht,"basic"),(0,$t.useKeyOnly)(jt,"flowing"),(0,$t.useKeyOnly)(tr,"inverted"),"popup transition visible",Tt),$r=(0,$t.getElementType)(Nt,gt.props),wr=(0,$.default)({left:"auto",right:"auto",position:"initial"},Wt),an=xt.default.createElement($r,(0,$.default)({},lr,{className:Lr,style:wr,ref:gt.elementRef}),$t.childrenUtils.isNil(Mt)?xt.default.createElement(xt.default.Fragment,null,Ot.default.create(Gt,{autoGenerateKey:!1}),Ct.default.create(It,{autoGenerateKey:!1})):Mt,Lt&&xt.default.createElement(vt.default,{on:gt.hideOnScroll,name:"scroll",target:"window"}));return(0,$t.createHTMLDivision)(er||{},{overrideProps:{children:an,ref:_t,style:(0,$.default)({display:"flex"},yt)}})},gt}Nt.getDerivedStateFromProps=function(nt,ot){if(ot.closed||ot.disabled)return{};var st=(0,$t.getUnhandledProps)(Nt,nt),lt=(0,mt.default)(st,function(_t,St,yt){return(0,dt.default)(At.default.handledProps,yt)||(_t[yt]=St),_t},{}),pt=(0,ct.default)(st,At.default.handledProps);return{contentRestProps:lt,portalRestProps:pt}};var zt=Nt.prototype;return zt.componentDidUpdate=function(nt){var ot=(0,Et.default)(this.props.popperDependencies,nt.popperDependencies);ot||this.handleUpdate()},zt.componentWillUnmount=function(){clearTimeout(this.timeoutId)},zt.handleUpdate=function(){this.positionUpdate&&this.positionUpdate()},zt.render=function(){var nt=this,ot=this.props,st=ot.context,lt=ot.disabled,pt=ot.eventsEnabled,_t=ot.offset,St=ot.pinned,yt=ot.popper,at=ot.popperModifiers,ht=ot.position,Mt=ot.positionFixed,Tt=ot.trigger,It=this.state,Lt=It.closed,jt=It.portalRestProps;if(Lt||lt)return Tt;var Gt=[{name:"arrow",enabled:!1},{name:"eventListeners",options:{scroll:!!pt,resize:!!pt}},{name:"flip",enabled:!St},{name:"preventOverflow",enabled:!!_t},{name:"offset",enabled:!!_t,options:{offset:_t}}].concat(at,[{name:"syncZIndex",enabled:!0,phase:"beforeRead",fn:function(Wt){var Kt,lr=Wt.state;if(!nt.zIndexWasSynced){var Lr=yt==null||(Kt=yt.style)==null?void 0:Kt.zIndex;(0,et.default)(Lr)&&(lr.elements.popper.style.zIndex=window.getComputedStyle(lr.elements.popper.firstChild).zIndex),nt.zIndexWasSynced=!0}},effect:function(){return function(){nt.zIndexWasSynced=!1}}}]),tr=(0,Pt.default)((0,_e.default)(st)?this.triggerRef:st),er=(0,$.default)({},this.getPortalProps(),jt);return xt.default.createElement(At.default,(0,$.default)({},er,{onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount,trigger:Tt,triggerRef:this.triggerRef}),xt.default.createElement(bt.Popper,{modifiers:Gt,placement:Rt.positionsMapping[ht],strategy:Mt?"fixed":null,referenceElement:tr},this.renderContent))},Nt}(xt.Component);return Popup.default=kt,kt.handledProps=["as","basic","children","className","content","context","disabled","eventsEnabled","flowing","header","hideOnScroll","hoverable","inverted","offset","on","onClose","onMount","onOpen","onUnmount","pinned","popper","popperDependencies","popperModifiers","position","positionFixed","size","style","trigger","wide"],kt.propTypes={},kt.defaultProps={disabled:!1,eventsEnabled:!0,on:["click","hover"],pinned:!1,popperModifiers:[],position:"top left"},kt.Content=Ct.default,kt.Header=Ot.default,Popup}var _interopRequireDefault=interopRequireDefaultExports,_Popup=_interopRequireDefault(requirePopup()),_default=_Popup.default;const capitalize=a=>a.charAt(0).toUpperCase()+a.slice(1),button="_button_1uvkr_1",icon="_icon_1uvkr_5",styles$5={button,icon,"icon-metamask-mobile":"_icon-metamask-mobile_1uvkr_13","icon-metamask":"_icon-metamask_1uvkr_13","icon-dapper":"_icon-dapper_1uvkr_18","icon-fortmatic":"_icon-fortmatic_1uvkr_22","icon-wallet-connect":"_icon-wallet-connect_1uvkr_26","icon-samsung-blockchain-wallet":"_icon-samsung-blockchain-wallet_1uvkr_30","icon-coinbase":"_icon-coinbase_1uvkr_34","icon-wallet-link":"_icon-wallet-link_1uvkr_35","icon-google":"_icon-google_1uvkr_39","icon-discord":"_icon-discord_1uvkr_43","icon-apple":"_icon-apple_1uvkr_47","icon-x":"_icon-x_1uvkr_51"},ConnectionOption=a=>{const{className:_,children:$,type:j,testId:_e,showTooltip:et,tooltipPosition:tt,disabled:rt,info:it,loading:ct,onClick:dt}=a;return jsxRuntimeExports.jsx(_default,{position:et&&tt?tt:"top center",disabled:!et,trigger:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsxs(Button$5.Button,{primary:!0,size:"small","data-testid":`${_e}-${j}-button`,className:classNames(_,styles$5.button),onClick:()=>dt(j),disabled:rt,loading:ct,children:[ct?null:jsxRuntimeExports.jsx("div",{role:"img","aria-label":j,className:classNames(styles$5.icon,styles$5[`icon-${j}`],styles$5.primaryImage)}),$]},j)}),content:it??capitalize(j),on:"hover"})},SOCIAL_PRIMARY_TEST_ID="social-primary-test-id",SOCIAL_SECONDARY_TEST_ID="social-secondary-test-id",WEB3_PRIMARY_TEST_ID="web3-primary-test-id",WEB3_SECONDARY_TEST_ID="web3-secondary-test-id",SHOW_MORE_BUTTON_TEST_ID="show-more-button-test-id";var ConnectionOptionType=(a=>(a.METAMASK="metamask",a.DAPPER="dapper",a.FORTMATIC="fortmatic",a.COINBASE="coinbase",a.SAMSUNG="samsung-blockchain-wallet",a.WALLET_CONNECT="wallet-connect",a.WALLET_LINK="wallet-link",a.METAMASK_MOBILE="metamask-mobile",a.GOOGLE="google",a.APPLE="apple",a.DISCORD="discord",a.X="x",a))(ConnectionOptionType||{});const connectionOptionTitles={metamask:"MetaMask",dapper:"Dapper",fortmatic:"Fortmatic",coinbase:"Coinbase","samsung-blockchain-wallet":"Samsung Blockchain Wallet","wallet-connect":"WalletConnect","wallet-link":"WalletLink","metamask-mobile":"MetaMask Mobile",google:"Google",apple:"Apple",discord:"Discord",x:"X"},connection="_connection_bt4wr_3",dclLogo="_dclLogo_bt4wr_9",title$2="_title_bt4wr_15",subtitle="_subtitle_bt4wr_20",primaryButton="_primaryButton_bt4wr_29",primaryImage="_primaryImage_bt4wr_39",primaryMessage="_primaryMessage_bt4wr_43",primaryMagic="_primaryMagic_bt4wr_52",primaryLearnMore="_primaryLearnMore_bt4wr_61",primary="_primary_bt4wr_29",showMore="_showMore_bt4wr_74",showMoreButton="_showMoreButton_bt4wr_78",showMoreSecondaryOptions="_showMoreSecondaryOptions_bt4wr_87",primaryOption="_primaryOption_bt4wr_100",secondaryOptionButton="_secondaryOptionButton_bt4wr_104",styles$4={connection,dclLogo,title:title$2,subtitle,primaryButton,primaryImage,primaryMessage,primaryMagic,primaryLearnMore,primary,showMore,showMoreButton,showMoreSecondaryOptions,primaryOption,secondaryOptionButton},Primary=({message:a,children:_,option:$,testId:j,loadingOption:_e,error:et,onConnect:tt})=>jsxRuntimeExports.jsxs("div",{className:styles$4.primary,"data-testid":j,children:[jsxRuntimeExports.jsx("div",{className:styles$4.primaryMessage,children:a}),jsxRuntimeExports.jsx(ConnectionOption,{disabled:!!_e||!!et,loading:_e===$,showTooltip:!!et,type:$,info:et,onClick:tt,className:classNames(styles$4.primaryButton,styles$4.primaryOption),testId:j,children:_})]}),Secondary=({options:a,tooltipDirection:_,testId:$,loadingOption:j,onConnect:_e})=>jsxRuntimeExports.jsx("div",{className:styles$4.showMoreSecondaryOptions,"data-testid":$,children:a.map(et=>jsxRuntimeExports.jsx(ConnectionOption,{className:classNames(styles$4.primaryButton,styles$4.secondaryOptionButton),showTooltip:!0,tooltipPosition:_,type:et,onClick:_e,testId:$,loading:j===et,disabled:!!j},et))}),defaultProps$2={i18n:{title:"Discover a virtual social world",subtitle:"shaped by its community of creators & explorers.",accessWith:a=>`Continue with ${connectionOptionTitles[a]}`,connectWith:a=>`Continue with ${connectionOptionTitles[a]}`,moreOptions:"More Options",socialMessage:a=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Access secured by ",a]}),web3Message:a=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Have a digital wallet? ",a("Learn More")]})}},Connection=a=>{var xt;const{i18n:_=defaultProps$2.i18n,onConnect:$,onLearnMore:j,socialOptions:_e,web3Options:et,className:tt,loadingOption:rt}=a,[it,ct]=reactExports.useState(!1),dt=reactExports.useCallback(()=>{ct(!it)},[it]),mt=(xt=window.ethereum)==null?void 0:xt.isMetaMask,vt=_e&&_e.secondary&&_e.secondary.length>0,wt=et&&et.secondary&&et.secondary.length>0;return jsxRuntimeExports.jsxs("div",{className:classNames(tt,styles$4.connection),children:[jsxRuntimeExports.jsx("img",{className:styles$4.dclLogo,src:logoSrc,alt:"Decentraland logo"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h1",{className:styles$4.title,children:_.title}),jsxRuntimeExports.jsx("h2",{className:styles$4.subtitle,children:_.subtitle}),_e?jsxRuntimeExports.jsx(Primary,{onConnect:$,testId:SOCIAL_PRIMARY_TEST_ID,option:_e==null?void 0:_e.primary,loadingOption:rt,message:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[_.socialMessage(jsxRuntimeExports.jsx("div",{className:styles$4.primaryMagic,role:"img","aria-label":"Magic"})),jsxRuntimeExports.jsx("span",{className:styles$4.primaryLearnMore,role:"button",onClick:()=>j(_e==null?void 0:_e.primary),children:"Learn More"})]}),children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_.accessWith(_e==null?void 0:_e.primary)})}):null,et?jsxRuntimeExports.jsx(Primary,{onConnect:$,testId:WEB3_PRIMARY_TEST_ID,option:et==null?void 0:et.primary,loadingOption:rt,error:!mt&&(et==null?void 0:et.primary)===ConnectionOptionType.METAMASK?"You need to install the MetaMask Browser Extension to proceed. Please install it and try again.":void 0,message:_.web3Message(bt=>jsxRuntimeExports.jsx("span",{className:styles$4.primaryLearnMore,role:"button",onClick:()=>j(et.primary),children:bt})),children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_.connectWith(et==null?void 0:et.primary)})}):null]}),jsxRuntimeExports.jsxs("div",{className:styles$4.showMore,children:[(wt||vt)&&jsxRuntimeExports.jsxs(Button$5.Button,{"data-testid":SHOW_MORE_BUTTON_TEST_ID,basic:!0,size:"medium",fluid:!0,className:styles$4.showMoreButton,onClick:dt,children:[_.moreOptions,jsxRuntimeExports.jsx(default_1,{name:it?"chevron up":"chevron down"})]}),it&&vt&&jsxRuntimeExports.jsx(Secondary,{testId:SOCIAL_SECONDARY_TEST_ID,options:_e.secondary,onConnect:$,tooltipDirection:"top center",loadingOption:rt}),it&&wt&&jsxRuntimeExports.jsx(Secondary,{testId:WEB3_SECONDARY_TEST_ID,options:et.secondary,onConnect:$,tooltipDirection:"bottom center",loadingOption:rt})]})]})},ONE_MONTH_IN_MINUTES=60*24*30,MAGIC_KEY$1=getConfiguration().magic.apiKey;function fromConnectionOptionToProviderType(a){switch(a){case ConnectionOptionType.DISCORD:case ConnectionOptionType.X:case ConnectionOptionType.GOOGLE:case ConnectionOptionType.APPLE:return providerType.ProviderType.MAGIC;case ConnectionOptionType.WALLET_CONNECT:case ConnectionOptionType.METAMASK_MOBILE:return providerType.ProviderType.WALLET_CONNECT_V2;case ConnectionOptionType.COINBASE:case ConnectionOptionType.WALLET_LINK:return providerType.ProviderType.WALLET_LINK;case ConnectionOptionType.FORTMATIC:return providerType.ProviderType.FORTMATIC;case ConnectionOptionType.METAMASK:case ConnectionOptionType.DAPPER:case ConnectionOptionType.SAMSUNG:return providerType.ProviderType.INJECTED;default:throw new Error("Invalid provider")}}async function generateIdentity(a,_){const $=new BrowserProvider(_),j=Wallet.createRandom(),_e={address:j.address.toString(),publicKey:hexlify(j.publicKey),privateKey:hexlify(j.privateKey)},et=await $.getSigner();return dist$6.Authenticator.initializeAuthChain(a,_e,ONE_MONTH_IN_MINUTES,tt=>et.signMessage(tt))}async function connectToProvider(a){const _=fromConnectionOptionToProviderType(a);if(providerType.ProviderType.MAGIC===_){const{Magic:j}=await __vitePreload(()=>import("./index-8a46796e.js"),["assets/index-8a46796e.js","assets/index-c5bbafed.js"]),{OAuthExtension:_e}=await __vitePreload(()=>import("./index-80adc4ef.js"),["assets/index-80adc4ef.js","assets/index-c5bbafed.js"]),et=new j(MAGIC_KEY$1,{extensions:[new _e]}),tt=new URL(window.location.href);tt.pathname="/auth/callback",await et.oauth.loginWithRedirect({provider:a===ConnectionOptionType.X?"twitter":a,redirectURI:tt.href})}let $;try{$=await connection$1.connect(_)}catch(j){throw console.error("Error connecting to provider",j),j}if(!$.account||!$.provider)throw new Error("Could not get provider");return $}function isSocialLogin(a){return[ConnectionOptionType.APPLE,ConnectionOptionType.GOOGLE,ConnectionOptionType.X,ConnectionOptionType.DISCORD].includes(a)}async function getIdentitySignature(a,_){let $;const j=dist$4.localStorageGetIdentity(a);return j?$=j:($=await generateIdentity(a,_),dist$4.localStorageStoreIdentity(a,$)),$}function getIsMobile(){const a=navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)}const container="_container_1jfc2_1",info$2="_info_1jfc2_19",title$1="_title_1jfc2_28",styles$3={container,info:info$2,title:title$1},MAGIC_KEY=getConfiguration().magic.apiKey,CallbackPage=()=>{usePageTracking();const a=useAfterLoginRedirection(),_=useNavigate(),[$,j]=reactExports.useState(ConnectionModalState.WAITING_FOR_CONFIRMATION),{flags:_e}=reactExports.useContext(FeatureFlagsContext),[et]=useTargetConfig(),tt=reactExports.useCallback(async()=>{var dt;const ct=await connection$1.connect(dist$5.ProviderType.MAGIC);return await getIdentitySignature(((dt=ct.account)==null?void 0:dt.toLowerCase())??"",ct.provider),ct},[]),rt=reactExports.useCallback(async()=>{const{Magic:ct}=await __vitePreload(()=>import("./index-8a46796e.js"),["assets/index-8a46796e.js","assets/index-c5bbafed.js"]),{OAuthExtension:dt}=await __vitePreload(()=>import("./index-80adc4ef.js"),["assets/index-80adc4ef.js","assets/index-c5bbafed.js"]),mt=new ct(MAGIC_KEY,{extensions:[new dt]});try{j(ConnectionModalState.VALIDATING_SIGN_IN),await(mt==null?void 0:mt.oauth.getRedirectResult()),j(ConnectionModalState.WAITING_FOR_CONFIRMATION)}catch(vt){console.log(vt),_("/login")}},[_]);reactExports.useEffect(()=>{rt()},[]);const it=reactExports.useCallback(async()=>{var ct;try{j(ConnectionModalState.WAITING_FOR_SIGNATURE);const dt=await tt(),mt=((ct=dt.account)==null?void 0:ct.toLowerCase())??"";if(getAnalytics().identify({ethAddress:mt}),getAnalytics().track(TrackingEvents.LOGIN_SUCCESS,{eth_address:mt}),await wait(800),!et.skipSetup&&dt.account&&!await fetchProfile(dt.account)){window.location.href="/auth/setup"+(a?`?redirectTo=${a}`:"");return}a?window.location.href=a:window.location.href="/"}catch(dt){console.log(dt),_("/login")}},[_,a,_e]);return $===ConnectionModalState.WAITING_FOR_CONFIRMATION?jsxRuntimeExports.jsx(Modal$3.Modal,{size:"tiny",open:!0,children:jsxRuntimeExports.jsxs("div",{className:styles$3.container,children:[jsxRuntimeExports.jsx("h3",{className:styles$3.title,children:"Confirm your login"}),jsxRuntimeExports.jsxs("div",{className:styles$3.info,children:[jsxRuntimeExports.jsx("span",{children:"The next step only verifies your identity."}),jsxRuntimeExports.jsx("span",{children:"No payments or transactions will occur without your explicit approval."})]}),jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,onClick:it,children:"Continue"})]})}):jsxRuntimeExports.jsx(ConnectionModal,{open:!0,state:$,onTryAgain:tt,providerType:dist$5.ProviderType.MAGIC})},Image1="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/image1-a4aa795b.webp",Image10="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/image10-c7fbcc61.webp",Image2="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/image2-0af6ed59.webp",Image3="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/image3-c864ad86.webp",Image4="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/image4-7964be5f.webp",Image5="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/image5-fcca517e.webp",Image6="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/image6-c770bdf5.webp",Image7="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/image7-341595c4.webp",Image8="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/image8-fea9fe85.webp",Image9="https://cdn.decentraland.org/@dcl/auth-site/1.7.1/assets/image9-714885ef.webp",main$2="_main_rwmls_1",title="_title_rwmls_11",infoModal$1="_infoModal_rwmls_15",infoContent$1="_infoContent_rwmls_19",info$1="_info_rwmls_15",goBackButton$1="_goBackButton_rwmls_33",styles$2={main:main$2,title,infoModal:infoModal$1,infoContent:infoContent$1,info:info$1,goBackButton:goBackButton$1},defaultProps$1={i18n:{title:"How does Magic work?",subtitle:"Magic handles digital wallet creation & management behind the scenes so you don't have to. Just log into Decentraland with your favorite social account and let Magic handle the rest.<br /> <br />If you'd rather take a more hands-on approach to your digital asset storage (e.g. Wearables, NAMEs, etc.), you can get a digital wallet from a provider such as <a href='https://metamask.io/'>MetaMask</a> and use it to create your Decentraland account.",goBack:"Return to log in page"}},MagicInformationModal=a=>{const{i18n:_=defaultProps$1.i18n,onClose:$,open:j}=a;return jsxRuntimeExports.jsxs(Modal$3.Modal,{size:"tiny",open:j,className:styles$2.infoModal,onClose:$,children:[jsxRuntimeExports.jsx(ModalNavigation_2,{title:"",onClose:$}),jsxRuntimeExports.jsx(ModalContent,{className:styles$2.infoContent,children:jsxRuntimeExports.jsxs("div",{className:styles$2.main,children:[jsxRuntimeExports.jsx("h1",{className:styles$2.title,children:_==null?void 0:_.title}),jsxRuntimeExports.jsx("span",{className:styles$2.info,dangerouslySetInnerHTML:{__html:_==null?void 0:_.subtitle}}),jsxRuntimeExports.jsx(Button$5.Button,{className:styles$2.goBackButton,secondary:!0,inverted:!0,onClick:$,children:_==null?void 0:_.goBack})]})})]})},main$1="_main_1yy07_1",infoModal="_infoModal_1yy07_11",infoContent="_infoContent_1yy07_15",info="_info_1yy07_11",infoImage="_infoImage_1yy07_26",assets="_assets_1yy07_34",login="_login_1yy07_38",goBackButton="_goBackButton_1yy07_42",styles$1={main:main$1,infoModal,infoContent,info,infoImage,assets,login,goBackButton},defaultProps={i18n:{title:"What is a digital wallet?",assets:{title:"A Home For Your Digital Assets",text:"Wallets are used to send, receive, store, and display digital assets, such as your Decentraland Wearables, NAMEs, LANDs, etc."},logIn:{title:"A New Way To Log In",text:"Instead of creating new accounts and passwords on every website, in the world of Web3 all you need to do is just connect your digital wallet."},goBack:"Return to log in page"}},WalletInformationModal=a=>{const{i18n:_=defaultProps.i18n,onClose:$,open:j}=a;return jsxRuntimeExports.jsxs(Modal$3.Modal,{size:"tiny",open:j,className:styles$1.infoModal,onClose:$,children:[jsxRuntimeExports.jsx(ModalNavigation_2,{title:"",onClose:$}),jsxRuntimeExports.jsx(ModalContent,{className:styles$1.infoContent,children:jsxRuntimeExports.jsxs("div",{className:styles$1.main,children:[jsxRuntimeExports.jsx("h1",{className:styles$1.title,children:_==null?void 0:_.title}),jsxRuntimeExports.jsxs("article",{className:styles$1.info,children:[jsxRuntimeExports.jsx("div",{className:classNames(styles$1.infoImage,styles$1.assets)}),jsxRuntimeExports.jsx("h3",{children:_==null?void 0:_.assets.title}),jsxRuntimeExports.jsx("p",{children:_==null?void 0:_.assets.text})]}),jsxRuntimeExports.jsxs("article",{className:styles$1.info,children:[jsxRuntimeExports.jsx("div",{className:classNames(styles$1.infoImage,styles$1.login)}),jsxRuntimeExports.jsx("h3",{children:_==null?void 0:_.logIn.title}),jsxRuntimeExports.jsx("p",{children:_==null?void 0:_.logIn.text})]}),jsxRuntimeExports.jsx(Button$5.Button,{className:styles$1.goBackButton,secondary:!0,inverted:!0,onClick:$,children:_==null?void 0:_.goBack})]})})]})},main="_main_15y2x_1",background="_background_15y2x_8",left="_left_15y2x_32",leftInfo="_leftInfo_15y2x_42",right="_right_15y2x_51",footer="_footer_15y2x_60",guestInfo="_guestInfo_15y2x_79",styles={main,background,"move-background":"_move-background_15y2x_1",left,leftInfo,right,footer,guestInfo},BACKGROUND_IMAGES=[Image1,Image2,Image3,Image4,Image5,Image6,Image7,Image8,Image9,Image10],LoginPage=()=>{usePageTracking();const[a]=useSearchParams(),[_,$]=reactExports.useState(ConnectionModalState.CONNECTING_WALLET),[j,_e]=reactExports.useState(!1),[et,tt]=reactExports.useState(!1),[rt,it]=reactExports.useState(!1),[ct,dt]=reactExports.useState(),[mt]=reactExports.useState(getIsMobile()),vt=useAfterLoginRedirection(),wt=vt&&new URL(vt).pathname.includes("/play"),[xt,bt]=reactExports.useState(0),{flags:Et}=reactExports.useContext(FeatureFlagsContext),[$t]=useTargetConfig(),At=reactExports.useCallback(zt=>{const gt=zt&&isSocialLogin(zt);getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.LEARN_MORE,type:gt?"Learn more about Magic":"Learn more about wallets"}),gt?tt(!0):_e(!0)},[_e,tt,j]),Rt=reactExports.useCallback(()=>{_e(!1),tt(!1)},[_e,tt]),Pt=reactExports.useCallback(()=>{tt(!et)},[tt,et]),Ct=reactExports.useCallback(async()=>{getAnalytics().track(TrackingEvents.LOGIN_CLICK,{type:"guest"}),await wait(800)},[]),Ot=reactExports.useMemo(()=>{if(vt){const zt=new URL(vt);return zt.searchParams.append("guest","true"),zt.toString()}return""},[vt]),kt=reactExports.useCallback(async zt=>{var nt;const gt=isSocialLogin(zt);if(dt(zt),getAnalytics().track(TrackingEvents.LOGIN_CLICK,{method:zt,type:gt?ConnectionType.WEB2:ConnectionType.WEB3}),gt)$(ConnectionModalState.LOADING_MAGIC),await wait(800),await connectToProvider(zt);else try{it(!0),$(ConnectionModalState.CONNECTING_WALLET);const ot=await connectToProvider(zt);if(await wait(800),$(ConnectionModalState.WAITING_FOR_SIGNATURE),await getIdentitySignature(((nt=ot.account)==null?void 0:nt.toLowerCase())??"",ot.provider),getAnalytics().track(TrackingEvents.LOGIN_SUCCESS,{eth_address:ot.account}),getAnalytics().identify({ethAddress:ot.account}),await wait(800),!$t.skipSetup&&ot.account&&!await fetchProfile(ot.account)){window.location.href="/auth/setup"+(vt?`?redirectTo=${vt}`:""),it(!1);return}vt?window.location.href=vt:window.location.href="/",it(!1)}catch(ot){console.log("Error",isErrorWithMessage(ot)?ot.message:JSON.stringify(ot)),getAnalytics().track(TrackingEvents.LOGIN_ERROR,{error:isErrorWithMessage(ot)?ot.message:ot}),isErrorWithName(ot)&&ot.name==="ErrorUnlockingWallet"?$(ConnectionModalState.ERROR_LOCKED_WALLET):$(ConnectionModalState.ERROR)}},[$,it,dt,vt,a,Et]),Dt=reactExports.useCallback(()=>{it(!1),dt(void 0),$(ConnectionModalState.CONNECTING_WALLET)},[it]),Nt=reactExports.useCallback(()=>{ct&&kt(ct)},[ct]);return reactExports.useEffect(()=>{const zt=setInterval(()=>{bt(gt=>gt===BACKGROUND_IMAGES.length-1?0:gt+1)},5e3);return()=>{clearInterval(zt)}},[]),jsxRuntimeExports.jsxs("main",{className:styles.main,children:[jsxRuntimeExports.jsx("div",{className:styles.background,style:{backgroundImage:`url(${BACKGROUND_IMAGES[xt]})`}}),jsxRuntimeExports.jsx(WalletInformationModal,{open:j,onClose:Rt}),jsxRuntimeExports.jsx(MagicInformationModal,{open:et,onClose:Pt}),jsxRuntimeExports.jsx(ConnectionModal,{open:rt,state:_,onClose:Dt,onTryAgain:Nt,providerType:ct?fromConnectionOptionToProviderType(ct):null}),jsxRuntimeExports.jsx("div",{className:styles.left,children:jsxRuntimeExports.jsxs("div",{className:styles.leftInfo,children:[jsxRuntimeExports.jsx(Connection,{onLearnMore:At,onConnect:kt,loadingOption:ct,socialOptions:{primary:ConnectionOptionType.GOOGLE,secondary:[ConnectionOptionType.DISCORD,ConnectionOptionType.APPLE,ConnectionOptionType.X]},web3Options:mt?{primary:ConnectionOptionType.WALLET_CONNECT,secondary:[ConnectionOptionType.FORTMATIC,ConnectionOptionType.COINBASE]}:{primary:ConnectionOptionType.METAMASK,secondary:[ConnectionOptionType.FORTMATIC,ConnectionOptionType.COINBASE,ConnectionOptionType.WALLET_CONNECT]}}),wt&&jsxRuntimeExports.jsxs("div",{className:styles.guestInfo,children:["Quick dive?"," ",jsxRuntimeExports.jsx("a",{href:Ot,onClick:Ct,children:"Explore as a guest"})]})]})})]})};(function(){const a=window.analytics=window.analytics||[];if(!a.initialize){if(a.invoked){window.console&&console.error&&console.error("Segment snippet included twice.");return}a.invoked=!0,a.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","user","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],a.factory=function(_){return function(){const $=Array.prototype.slice.call(arguments);return $.unshift(_),a.push($),a}};for(let _=0;_<a.methods.length;_++){const $=a.methods[_];a[$]=a.factory($)}a.load=function(_,$){const j=document.createElement("script");j.type="text/javascript",j.async=!0,j.src="https://cdn.segment.com/analytics.js/v1/"+_+"/analytics.min.js";const _e=document.getElementsByTagName("script")[0];_e.parentNode.insertBefore(j,_e),a._loadOptions=$},a.SNIPPET_VERSION="4.15.2"}})();const darkTheme="",index="";getAnalytics().load(config$1.get("SEGMENT_API_KEY"));ReactDOM.render(jsxRuntimeExports.jsx(React$5.StrictMode,{children:jsxRuntimeExports.jsx(FeatureFlagsProvider,{children:jsxRuntimeExports.jsx(BrowserRouter,{basename:"/auth",children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/login",element:jsxRuntimeExports.jsx(LoginPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/callback",element:jsxRuntimeExports.jsx(CallbackPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/requests/:requestId",element:jsxRuntimeExports.jsx(RequestPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/setup",element:jsxRuntimeExports.jsx(SetupPage,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(DefaultPage,{})})]})})})}),document.getElementById("root"));export{Buffer$G as B,__vitePreload as _,getDefaultExportFromCjs$1 as a,getAugmentedNamespace as b,commonjsGlobal as c,commonjsRequire as d,eventsExports as e,Bg as f,global$1 as g,bnExports$4 as h,sha_jsExports as i,readableBrowserExports as j,require$$0$4 as k,o,process$1 as p,requireCryptoBrowserify as r,sideChannel as s};
|
|
158
|
-
//# sourceMappingURL=index-
|
|
157
|
+
*/(function(){var ct=typeof Symbol=="function"&&Symbol.for,dt=ct?Symbol.for("react.element"):60103,mt=ct?Symbol.for("react.portal"):60106,vt=ct?Symbol.for("react.fragment"):60107,wt=ct?Symbol.for("react.strict_mode"):60108,xt=ct?Symbol.for("react.profiler"):60114,bt=ct?Symbol.for("react.provider"):60109,Et=ct?Symbol.for("react.context"):60110,$t=ct?Symbol.for("react.async_mode"):60111,At=ct?Symbol.for("react.concurrent_mode"):60111,Rt=ct?Symbol.for("react.forward_ref"):60112,Pt=ct?Symbol.for("react.suspense"):60113,Ct=ct?Symbol.for("react.suspense_list"):60120,Ot=ct?Symbol.for("react.memo"):60115,kt=ct?Symbol.for("react.lazy"):60116,Dt=ct?Symbol.for("react.block"):60121,Nt=ct?Symbol.for("react.fundamental"):60117,zt=ct?Symbol.for("react.responder"):60118,gt=ct?Symbol.for("react.scope"):60119;function nt(Ar){return typeof Ar=="string"||typeof Ar=="function"||Ar===vt||Ar===At||Ar===xt||Ar===wt||Ar===Pt||Ar===Ct||typeof Ar=="object"&&Ar!==null&&(Ar.$$typeof===kt||Ar.$$typeof===Ot||Ar.$$typeof===bt||Ar.$$typeof===Et||Ar.$$typeof===Rt||Ar.$$typeof===Nt||Ar.$$typeof===zt||Ar.$$typeof===gt||Ar.$$typeof===Dt)}function ot(Ar){if(typeof Ar=="object"&&Ar!==null){var Gr=Ar.$$typeof;switch(Gr){case dt:var hn=Ar.type;switch(hn){case $t:case At:case vt:case xt:case wt:case Pt:return hn;default:var Hr=hn&&hn.$$typeof;switch(Hr){case Et:case Rt:case kt:case Ot:case bt:return Hr;default:return Gr}}case mt:return Gr}}}var st=$t,lt=At,pt=Et,_t=bt,St=dt,yt=Rt,at=vt,ht=kt,Mt=Ot,Tt=mt,It=xt,Lt=wt,jt=Pt,Gt=!1;function tr(Ar){return Gt||(Gt=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),er(Ar)||ot(Ar)===$t}function er(Ar){return ot(Ar)===At}function Jt(Ar){return ot(Ar)===Et}function Wt(Ar){return ot(Ar)===bt}function Kt(Ar){return typeof Ar=="object"&&Ar!==null&&Ar.$$typeof===dt}function lr(Ar){return ot(Ar)===Rt}function Lr(Ar){return ot(Ar)===vt}function $r(Ar){return ot(Ar)===kt}function wr(Ar){return ot(Ar)===Ot}function an(Ar){return ot(Ar)===mt}function Or(Ar){return ot(Ar)===xt}function yr(Ar){return ot(Ar)===wt}function cn(Ar){return ot(Ar)===Pt}it.AsyncMode=st,it.ConcurrentMode=lt,it.ContextConsumer=pt,it.ContextProvider=_t,it.Element=St,it.ForwardRef=yt,it.Fragment=at,it.Lazy=ht,it.Memo=Mt,it.Portal=Tt,it.Profiler=It,it.StrictMode=Lt,it.Suspense=jt,it.isAsyncMode=tr,it.isConcurrentMode=er,it.isContextConsumer=Jt,it.isContextProvider=Wt,it.isElement=Kt,it.isForwardRef=lr,it.isFragment=Lr,it.isLazy=$r,it.isMemo=wr,it.isPortal=an,it.isProfiler=Or,it.isStrictMode=yr,it.isSuspense=cn,it.isValidElementType=nt,it.typeOf=ot})()},"./node_modules/react-is/index.js":(rt,it,ct)=>{rt.exports=ct("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(rt,it,ct)=>{ct.r(it),ct.d(it,{shallowEqualArrays:()=>mt,shallowEqualObjects:()=>dt});function dt(vt,wt){if(vt===wt)return!0;if(!vt||!wt)return!1;var xt=Object.keys(vt),bt=Object.keys(wt),Et=xt.length;if(bt.length!==Et)return!1;for(var $t=0;$t<Et;$t++){var At=xt[$t];if(vt[At]!==wt[At]||!Object.prototype.hasOwnProperty.call(wt,At))return!1}return!0}function mt(vt,wt){if(vt===wt)return!0;if(!vt||!wt)return!1;var xt=vt.length;if(wt.length!==xt)return!1;for(var bt=0;bt<xt;bt++)if(vt[bt]!==wt[bt])return!1;return!0}},"./src/Component.ts":function(rt,it,ct){var dt=this&&this.__rest||function(xt,bt){var Et={};for(var $t in xt)Object.prototype.hasOwnProperty.call(xt,$t)&&bt.indexOf($t)<0&&(Et[$t]=xt[$t]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,$t=Object.getOwnPropertySymbols(xt);At<$t.length;At++)bt.indexOf($t[At])<0&&Object.prototype.propertyIsEnumerable.call(xt,$t[At])&&(Et[$t[At]]=xt[$t[At]]);return Et},mt=this&&this.__importDefault||function(xt){return xt&&xt.__esModule?xt:{default:xt}};Object.defineProperty(it,"__esModule",{value:!0});var vt=mt(ct("./src/useMediaQuery.ts")),wt=function(xt){var bt=xt.children,Et=xt.device,$t=xt.onChange,At=dt(xt,["children","device","onChange"]),Rt=(0,vt.default)(At,Et,$t);return typeof bt=="function"?bt(Rt):Rt?bt:null};it.default=wt},"./src/Context.ts":(rt,it,ct)=>{Object.defineProperty(it,"__esModule",{value:!0});var dt=ct("react"),mt=(0,dt.createContext)(void 0);it.default=mt},"./src/index.ts":function(rt,it,ct){var dt=this&&this.__importDefault||function(bt){return bt&&bt.__esModule?bt:{default:bt}};Object.defineProperty(it,"__esModule",{value:!0}),it.Context=it.toQuery=it.useMediaQuery=it.default=void 0;var mt=dt(ct("./src/useMediaQuery.ts"));it.useMediaQuery=mt.default;var vt=dt(ct("./src/Component.ts"));it.default=vt.default;var wt=dt(ct("./src/toQuery.ts"));it.toQuery=wt.default;var xt=dt(ct("./src/Context.ts"));it.Context=xt.default},"./src/mediaQuery.ts":function(rt,it,ct){var dt=this&&this.__assign||function(){return dt=Object.assign||function(Pt){for(var Ct,Ot=1,kt=arguments.length;Ot<kt;Ot++){Ct=arguments[Ot];for(var Dt in Ct)Object.prototype.hasOwnProperty.call(Ct,Dt)&&(Pt[Dt]=Ct[Dt])}return Pt},dt.apply(this,arguments)},mt=this&&this.__rest||function(Pt,Ct){var Ot={};for(var kt in Pt)Object.prototype.hasOwnProperty.call(Pt,kt)&&Ct.indexOf(kt)<0&&(Ot[kt]=Pt[kt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,kt=Object.getOwnPropertySymbols(Pt);Dt<kt.length;Dt++)Ct.indexOf(kt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,kt[Dt])&&(Ot[kt[Dt]]=Pt[kt[Dt]]);return Ot},vt=this&&this.__importDefault||function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}};Object.defineProperty(it,"__esModule",{value:!0});var wt=vt(ct("./node_modules/prop-types/index.js")),xt=wt.default.oneOfType([wt.default.string,wt.default.number]),bt={all:wt.default.bool,grid:wt.default.bool,aural:wt.default.bool,braille:wt.default.bool,handheld:wt.default.bool,print:wt.default.bool,projection:wt.default.bool,screen:wt.default.bool,tty:wt.default.bool,tv:wt.default.bool,embossed:wt.default.bool},Et={orientation:wt.default.oneOf(["portrait","landscape"]),scan:wt.default.oneOf(["progressive","interlace"]),aspectRatio:wt.default.string,deviceAspectRatio:wt.default.string,height:xt,deviceHeight:xt,width:xt,deviceWidth:xt,color:wt.default.bool,colorIndex:wt.default.bool,monochrome:wt.default.bool,resolution:xt,type:Object.keys(bt)};Et.type;var $t=mt(Et,["type"]),At=dt({minAspectRatio:wt.default.string,maxAspectRatio:wt.default.string,minDeviceAspectRatio:wt.default.string,maxDeviceAspectRatio:wt.default.string,minHeight:xt,maxHeight:xt,minDeviceHeight:xt,maxDeviceHeight:xt,minWidth:xt,maxWidth:xt,minDeviceWidth:xt,maxDeviceWidth:xt,minColor:wt.default.number,maxColor:wt.default.number,minColorIndex:wt.default.number,maxColorIndex:wt.default.number,minMonochrome:wt.default.number,maxMonochrome:wt.default.number,minResolution:xt,maxResolution:xt},$t),Rt=dt(dt({},bt),At);it.default={all:Rt,types:bt,matchers:Et,features:At}},"./src/toQuery.ts":function(rt,it,ct){var dt=this&&this.__importDefault||function($t){return $t&&$t.__esModule?$t:{default:$t}};Object.defineProperty(it,"__esModule",{value:!0});var mt=dt(ct("./node_modules/hyphenate-style-name/index.js")),vt=dt(ct("./src/mediaQuery.ts")),wt=function($t){return"not ".concat($t)},xt=function($t,At){var Rt=(0,mt.default)($t);return typeof At=="number"&&(At="".concat(At,"px")),At===!0?Rt:At===!1?wt(Rt):"(".concat(Rt,": ").concat(At,")")},bt=function($t){return $t.join(" and ")},Et=function($t){var At=[];return Object.keys(vt.default.all).forEach(function(Rt){var Pt=$t[Rt];Pt!=null&&At.push(xt(Rt,Pt))}),bt(At)};it.default=Et},"./src/useMediaQuery.ts":function(rt,it,ct){var dt=this&&this.__importDefault||function(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}};Object.defineProperty(it,"__esModule",{value:!0});var mt=ct("react"),vt=dt(ct("./node_modules/matchmediaquery/index.js")),wt=dt(ct("./node_modules/hyphenate-style-name/index.js")),xt=ct("./node_modules/shallow-equal/dist/index.esm.js"),bt=dt(ct("./src/toQuery.ts")),Et=dt(ct("./src/Context.ts")),$t=function(Nt){return Nt.query||(0,bt.default)(Nt)},At=function(Nt){if(Nt){var zt=Object.keys(Nt);return zt.reduce(function(gt,nt){return gt[(0,wt.default)(nt)]=Nt[nt],gt},{})}},Rt=function(){var Nt=(0,mt.useRef)(!1);return(0,mt.useEffect)(function(){Nt.current=!0},[]),Nt.current},Pt=function(Nt){var zt=(0,mt.useContext)(Et.default),gt=function(){return At(Nt)||At(zt)},nt=(0,mt.useState)(gt),ot=nt[0],st=nt[1];return(0,mt.useEffect)(function(){var lt=gt();(0,xt.shallowEqualObjects)(ot,lt)||st(lt)},[Nt,zt]),ot},Ct=function(Nt){var zt=function(){return $t(Nt)},gt=(0,mt.useState)(zt),nt=gt[0],ot=gt[1];return(0,mt.useEffect)(function(){var st=zt();nt!==st&&ot(st)},[Nt]),nt},Ot=function(Nt,zt){var gt=function(){return(0,vt.default)(Nt,zt||{},!!zt)},nt=(0,mt.useState)(gt),ot=nt[0],st=nt[1],lt=Rt();return(0,mt.useEffect)(function(){if(lt){var pt=gt();return st(pt),function(){pt&&pt.dispose()}}},[Nt,zt]),ot},kt=function(Nt){var zt=(0,mt.useState)(Nt.matches),gt=zt[0],nt=zt[1];return(0,mt.useEffect)(function(){var ot=function(st){nt(st.matches)};return Nt.addListener(ot),nt(Nt.matches),function(){Nt.removeListener(ot)}},[Nt]),gt},Dt=function(Nt,zt,gt){var nt=Pt(zt),ot=Ct(Nt);if(!ot)throw new Error("Invalid or missing MediaQuery!");var st=Ot(ot,nt),lt=kt(st),pt=Rt();return(0,mt.useEffect)(function(){pt&>&>(lt)},[lt]),(0,mt.useEffect)(function(){return function(){st&&st.dispose()}},[]),lt};it.default=Dt},react:rt=>{rt.exports=$}},_e={};function et(rt){var it=_e[rt];if(it!==void 0)return it.exports;var ct=_e[rt]={exports:{}};return j[rt].call(ct.exports,ct,ct.exports,et),ct.exports}et.d=(rt,it)=>{for(var ct in it)et.o(it,ct)&&!et.o(rt,ct)&&Object.defineProperty(rt,ct,{enumerable:!0,get:it[ct]})},et.o=(rt,it)=>Object.prototype.hasOwnProperty.call(rt,it),et.r=rt=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(rt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(rt,"__esModule",{value:!0})};var tt=et("./src/index.ts");return tt})())})(reactResponsive);var reactResponsiveExports=reactResponsive.exports;Object.defineProperty(Media,"__esModule",{value:!0});Media.useNotMobileMediaQuery=Media.useMobileMediaQuery=Media.useTabletAndBelowMediaQuery=Media.useTabletMediaQuery=Media.useDesktopMediaQuery=Media.useBigDesktopMediaQuery=NotMobile_1=Media.NotMobile=Mobile_1=Media.Mobile=Media.TabletAndBelow=Media.Tablet=Media.Desktop=void 0;var react_responsive_1=reactResponsiveExports,useBigDesktopMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({minWidth:1920})};Media.useBigDesktopMediaQuery=useBigDesktopMediaQuery;var useDesktopMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({minWidth:992})};Media.useDesktopMediaQuery=useDesktopMediaQuery;var useTabletMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({minWidth:768,maxWidth:991})};Media.useTabletMediaQuery=useTabletMediaQuery;var useTabletAndBelowMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({maxWidth:991})};Media.useTabletAndBelowMediaQuery=useTabletAndBelowMediaQuery;var useMobileMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({maxWidth:767})};Media.useMobileMediaQuery=useMobileMediaQuery;var useNotMobileMediaQuery=function(){return(0,react_responsive_1.useMediaQuery)({minWidth:768})};Media.useNotMobileMediaQuery=useNotMobileMediaQuery;var Desktop=function(a){var _=a.children,$=useDesktopMediaQuery();return $?_:null};Media.Desktop=Desktop;var Tablet=function(a){var _=a.children,$=useTabletMediaQuery();return $?_:null};Media.Tablet=Tablet;var TabletAndBelow=function(a){var _=a.children,$=useTabletAndBelowMediaQuery();return $?_:null};Media.TabletAndBelow=TabletAndBelow;var Mobile=function(a){var _=a.children,$=useMobileMediaQuery();return $?_:null},Mobile_1=Media.Mobile=Mobile,NotMobile=function(a){var _=a.children,$=useNotMobileMediaQuery();return $?_:null},NotMobile_1=Media.NotMobile=NotMobile;const backImg="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/back-26d3dbd9.svg",diceImg="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/dice-b919368b.svg",logoSrc="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/logo-9a364aec.svg",wrongImg="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/wrong-1ccde1e7.svg",useAfterLoginRedirection=()=>{const a=useLocation(),$=new URLSearchParams(a.search).get("redirectTo"),j=$?decodeURIComponent($):null;if(j!==null)try{let _e;return j.startsWith("/")?_e=new URL(j,window.location.origin):_e=new URL(j),_e.hostname!==window.location.hostname?void 0:_e.href}catch{console.error("Can't parse redirectTo URL");return}},defaultFeatureFlagsContextValue={flags:{},initialized:!1},FeatureFlagsContext=reactExports.createContext(defaultFeatureFlagsContextValue),FeatureFlagsProvider=a=>{const[_,$]=reactExports.useState(defaultFeatureFlagsContextValue),[j,_e]=reactExports.useState(!0),et=reactExports.useRef();return reactExports.useEffect(()=>{(async()=>{if(j){_e(!1);const tt=config$1.get("FEATURE_FLAGS_URL"),it=await(await fetch(`${tt}/dapps.json`)).json();$({..._,flags:it.flags,initialized:!0})}})()},[j]),reactExports.useEffect(()=>{const tt=config$1.get("FEATURE_FLAGS_INTERVAL");return et.current=setInterval(()=>{_e(!0)},Number(tt)),()=>{clearInterval(et.current)}},[]),jsxRuntimeExports.jsx(FeatureFlagsContext.Provider,{value:_,children:a.children})};async function subscribeToNewsletter(a){const _=config$1.get("BUILDER_SERVER_URL");if(!_)throw new Error("Missing BUILDER_SERVER_URL.");const $=await fetch(_+"/v1/newsletter",{method:"post",body:JSON.stringify({email:a,source:"auth"}),headers:{"content-type":"application/json"}});if(!$.ok)throw new Error(`Could not subscribe to newsletter. Status: ${$.status}`)}async function deployProfileFromDefault({defaultProfile:a,connectedAccount:_,deploymentProfileName:$,connectedAccountIdentity:j}){var $t;const _e=config$1.get("PEER_URL",""),et=dist$1.createContentClient({url:_e+"/content",fetcher:dist$2.createFetchComponent()}),rt=(await et.fetchEntitiesByPointers([a]))[0],it="body.png",ct="face256.png",dt=rt.content.reduce((At,Rt)=>({...At,[Rt.file]:Rt.hash}),{}),[mt,vt]=await Promise.all([et.downloadContent(dt[it]),et.downloadContent(dt[ct])]),wt=new Map;wt.set(it,mt),wt.set(ct,vt);const xt=At=>At.replace("dcl://base-avatars/","urn:decentraland:off-chain:base-avatars:"),bt=($t=rt.metadata.avatars)==null?void 0:$t[0];bt.name=$,bt.ethAddress=_,bt.userId=_,bt.version=1,bt.tutorialStep=0,bt.hasClaimedName=!1,bt.hasConnectedWeb3=!0,bt.avatar.bodyShape=xt(rt.metadata.avatars[0].avatar.bodyShape),bt.avatar.wearables=rt.metadata.avatars[0].avatar.wearables.map(xt),bt.avatar.emotes=[];const Et=await dist$1.DeploymentBuilder.buildEntity({type:dist$5.EntityType.PROFILE,pointers:[_],metadata:{avatars:[bt]},timestamp:Date.now(),files:wt});await et.deploy({entityId:Et.entityId,files:Et.files,authChain:dist$6.Authenticator.signPayload(j,Et.entityId)})}const container$1="_container_wdiad_1",background$1="_background_wdiad_9",left$1="_left_wdiad_20",leftInner="_leftInner_wdiad_48",logo="_logo_wdiad_54",title$3="_title_wdiad_59",subtitle$1="_subtitle_wdiad_66",meetYourAvatar="_meetYourAvatar_wdiad_72",meetYourAvatarDescription="_meetYourAvatarDescription_wdiad_79",randomize="_randomize_wdiad_86",logoSmall="_logoSmall_wdiad_102",back="_back_wdiad_9",name="_name_wdiad_121",agree="_agree_wdiad_125",error="_error_wdiad_145",emailError="_emailError_wdiad_156",agreeError="_agreeError_wdiad_160",jumpIn="_jumpIn_wdiad_166",right$1="_right_wdiad_170",mobileContainer="_mobileContainer_wdiad_183",mobilePreviewContainer="_mobilePreviewContainer_wdiad_196",mobileButtons="_mobileButtons_wdiad_206",mobileCompleteYourProfile="_mobileCompleteYourProfile_wdiad_231",styles$8={container:container$1,background:background$1,left:left$1,leftInner,logo,title:title$3,subtitle:subtitle$1,meetYourAvatar,meetYourAvatarDescription,randomize,continue:"_continue_wdiad_97",logoSmall,back,name,agree,error,emailError,agreeError,jumpIn,right:right$1,mobileContainer,mobilePreviewContainer,mobileButtons,mobileCompleteYourProfile};function getRandomDefaultProfile(){return"default"+(Math.floor(Math.random()*(160-1+1))+1)}const ErrorMessage=a=>jsxRuntimeExports.jsxs("div",{className:classNames(styles$8.error,a.className),children:[jsxRuntimeExports.jsx("img",{src:wrongImg}),jsxRuntimeExports.jsx("div",{children:a.message})]}),SetupPage=()=>{const[a,_]=reactExports.useState(!1),[$,j]=reactExports.useState(0),[_e,et]=reactExports.useState(getRandomDefaultProfile()),[tt,rt]=reactExports.useState(""),[it,ct]=reactExports.useState(""),[dt,mt]=reactExports.useState(!1),[vt,wt]=reactExports.useState(!1),[xt,bt]=reactExports.useState(!1),Et=reactExports.useRef(),$t=reactExports.useRef(),{initialized:At}=reactExports.useContext(FeatureFlagsContext),Rt=useAfterLoginRedirection(),Pt=reactExports.useMemo(()=>tt.length?tt.length>=15?"Sorry, usernames can have a maximum of 15 characters.":tt.includes(" ")?"Sorry, spaces are not permitted.":/^[a-zA-Z0-9]+$/.test(tt)?"":"Sorry, special characters (!@#$%) are not permitted.":"Please enter your username.",[tt]),Ct=reactExports.useMemo(()=>it&&!it.includes("@")?"Invalid email, please try again.":"",[it]),Ot=reactExports.useMemo(()=>dt?"":"Please accept the terms of use and privacy policy.",[dt]),kt=reactExports.useMemo(()=>{if(Rt){if(Rt.includes("play"))return"jump into decentraland";const lt=["marketplace","builder","account","profile","events","places","governance","dao","rewards"];for(const pt of lt)if(Rt.includes(pt))return`continue to ${pt}`}return"continue"},[Rt]),Dt=reactExports.useCallback(()=>{getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.RANDOMIZE}),et(getRandomDefaultProfile())},[]),Nt=reactExports.useCallback(()=>{getAnalytics().track(TrackingEvents.AVATAR_EDIT_SUCCESS,{eth_address:Et.current,is_guest:!1,profile:_e}),j(1)},[_e]),zt=reactExports.useCallback(()=>{getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.BACK_TO_AVATAR_RANDOMIZATION_VIEW}),j(0)},[]),gt=reactExports.useCallback((lt,pt)=>rt(pt.value),[]),nt=reactExports.useCallback((lt,pt)=>ct(pt.value),[]),ot=reactExports.useCallback(()=>mt(!dt),[dt]),st=reactExports.useCallback(async lt=>{if(lt.preventDefault(),getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.SUBMIT_PROFILE}),wt(!0),!(Pt||Ct||Ot)){if(!Et.current||!$t.current){console.warn("No account or identity found.");return}try{if(bt(!0),await deployProfileFromDefault({connectedAccount:Et.current,connectedAccountIdentity:$t.current,defaultProfile:_e,deploymentProfileName:tt}),it)try{await subscribeToNewsletter(it)}catch(pt){console.warn("There was an error subscribing to the newsletter",pt.message)}getAnalytics().track(TrackingEvents.TERMS_OF_SERVICE_SUCCESS,{eth_address:Et.current,is_guest:!1,email:it||void 0,name:tt}),Rt?window.location.href=Rt:window.location.href="/"}catch(pt){bt(!1),console.error("There was an error deploying the profile",pt.message)}}},[Pt,Ct,Ot,tt,it,dt,_e,Rt]);return reactExports.useEffect(()=>{(async()=>{const lt=()=>{window.location.href=`/auth/login${Rt?`?redirectTo=${Rt}`:""}`};try{const _t=await getCurrentConnectionData();if(!_t)throw new Error("No connection data found");Et.current=_t.account,$t.current=_t.identity}catch{console.warn("No previous connection found"),lt();return}if(await fetchProfile(Et.current)){console.warn("Profile already exists"),Rt?(console.log("Redirecting to",Rt),window.location.href=Rt):window.location.href="/";return}_(!0)})()},[Rt]),!a||!At?jsxRuntimeExports.jsxs("div",{className:styles$8.container,children:[jsxRuntimeExports.jsx("div",{className:styles$8.background}),jsxRuntimeExports.jsx(Loader_3,{active:!0,size:"huge"})]}):$===0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Mobile_1,{children:jsxRuntimeExports.jsxs("div",{className:styles$8.container,children:[jsxRuntimeExports.jsx("div",{className:styles$8.background}),jsxRuntimeExports.jsxs("div",{className:styles$8.mobileContainer,children:[jsxRuntimeExports.jsx("img",{className:styles$8.logo,src:logoSrc,alt:"logo"}),jsxRuntimeExports.jsx("div",{className:styles$8.title,children:"Welcome to Decentraland!"}),jsxRuntimeExports.jsx("div",{className:styles$8.meetYourAvatar,children:"First, Meet Your Avatar"}),jsxRuntimeExports.jsxs("div",{className:styles$8.meetYourAvatarDescription,children:["Choose an avatar to start your journey.",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("b",{children:"You can customize it later on desktop"}),", where all the magic happens!"]}),jsxRuntimeExports.jsx("div",{className:styles$8.mobilePreviewContainer,children:jsxRuntimeExports.jsx(CustomWearablePreview,{profile:_e})}),jsxRuntimeExports.jsxs("div",{className:styles$8.mobileButtons,children:[jsxRuntimeExports.jsx("div",{className:styles$8.randomize,children:jsxRuntimeExports.jsxs(Button$5.Button,{compact:!0,inverted:!0,onClick:Dt,children:[jsxRuntimeExports.jsx("img",{src:diceImg,alt:"diceImg"}),jsxRuntimeExports.jsx("span",{children:"randomize"})]})}),jsxRuntimeExports.jsx("div",{className:styles$8.continue,children:jsxRuntimeExports.jsx(Button$5.Button,{compact:!0,primary:!0,onClick:Nt,children:"Continue"})})]})]})]})}),jsxRuntimeExports.jsx(NotMobile_1,{children:jsxRuntimeExports.jsxs("div",{className:styles$8.container,children:[jsxRuntimeExports.jsx("div",{className:styles$8.background}),jsxRuntimeExports.jsx("div",{className:styles$8.left,children:jsxRuntimeExports.jsxs("div",{className:styles$8.leftInner,children:[jsxRuntimeExports.jsx("img",{className:styles$8.logo,src:logoSrc,alt:"logo"}),jsxRuntimeExports.jsx("div",{className:styles$8.title,children:"Welcome to Decentraland!"}),jsxRuntimeExports.jsx("div",{className:styles$8.subtitle,children:"Your journey begins here"}),jsxRuntimeExports.jsx("div",{className:styles$8.meetYourAvatar,children:"First, Meet Your Avatar"}),jsxRuntimeExports.jsxs("div",{className:styles$8.meetYourAvatarDescription,children:["Say hi to your new digital self!",jsxRuntimeExports.jsx("br",{}),"Don't worry, of course they're not quite 'you' yet—soon you'll be able to customize them to your heart's content."]}),jsxRuntimeExports.jsx("div",{className:styles$8.randomize,children:jsxRuntimeExports.jsxs(Button$5.Button,{compact:!0,inverted:!0,onClick:Dt,children:[jsxRuntimeExports.jsx("img",{src:diceImg,alt:"diceImg"}),jsxRuntimeExports.jsx("span",{children:"randomize"})]})}),jsxRuntimeExports.jsx("div",{className:styles$8.continue,children:jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,fluid:!0,onClick:Nt,children:"Continue"})})]})}),jsxRuntimeExports.jsx("div",{className:styles$8.right,children:jsxRuntimeExports.jsx(CustomWearablePreview,{profile:_e})})]})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Mobile_1,{children:jsxRuntimeExports.jsxs("div",{className:styles$8.container,children:[jsxRuntimeExports.jsx("div",{className:styles$8.background}),jsxRuntimeExports.jsxs("div",{className:styles$8.mobileContainer,children:[jsxRuntimeExports.jsxs("div",{className:styles$8.back,onClick:zt,children:[jsxRuntimeExports.jsx("img",{src:backImg,alt:"backImg"}),jsxRuntimeExports.jsx("span",{children:"BACK"})]}),jsxRuntimeExports.jsx("div",{className:classNames(styles$8.title,styles$8.mobileCompleteYourProfile),children:"Complete your Profile"}),jsxRuntimeExports.jsxs("form",{onSubmit:st,children:[jsxRuntimeExports.jsx("div",{className:styles$8.name,children:jsxRuntimeExports.jsx(Field_2,{label:"Username",placeholder:"Enter your Username",onChange:gt,message:vt&&Pt?jsxRuntimeExports.jsx(ErrorMessage,{message:Pt}):void 0})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Field_2,{label:"Email (optional)",placeholder:"Enter your email",message:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[vt&&Ct?jsxRuntimeExports.jsx(ErrorMessage,{className:styles$8.emailError,message:Ct}):null,jsxRuntimeExports.jsx("span",{children:"Subscribe to Decentraland's newsletter to receive the latest news about events, updates, contests and more."})]}),onChange:nt})}),jsxRuntimeExports.jsxs("div",{className:styles$8.agree,children:[jsxRuntimeExports.jsx(Checkbox$4.Checkbox,{onChange:ot}),jsxRuntimeExports.jsxs("div",{children:["I agree with Decentraland's ",jsxRuntimeExports.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://decentraland.org/terms/",children:"Terms of use"})," and ",jsxRuntimeExports.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://decentraland.org/privacy",children:"Privacy policy"}),"."]})]}),vt&&Ot?jsxRuntimeExports.jsx(ErrorMessage,{className:styles$8.agreeError,message:Ot}):null,jsxRuntimeExports.jsx("div",{className:styles$8.jumpIn,children:jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,fluid:!0,type:"submit",disabled:!dt||xt,loading:xt,children:kt})})]})]})]})}),jsxRuntimeExports.jsx(NotMobile_1,{children:jsxRuntimeExports.jsxs("div",{className:styles$8.container,children:[jsxRuntimeExports.jsx("div",{className:styles$8.background}),jsxRuntimeExports.jsx("div",{className:styles$8.left,children:jsxRuntimeExports.jsxs("div",{className:styles$8.leftInner,children:[jsxRuntimeExports.jsx("img",{className:styles$8.logoSmall,src:logoSrc,alt:"logo"}),jsxRuntimeExports.jsxs("div",{className:styles$8.back,onClick:zt,children:[jsxRuntimeExports.jsx("img",{src:backImg,alt:"backImg"}),jsxRuntimeExports.jsx("span",{children:"BACK"})]}),jsxRuntimeExports.jsx("div",{className:styles$8.title,children:"Complete your Profile"}),jsxRuntimeExports.jsxs("form",{onSubmit:st,children:[jsxRuntimeExports.jsx("div",{className:styles$8.name,children:jsxRuntimeExports.jsx(Field_2,{label:"Username",placeholder:"Enter your username",onChange:gt,message:vt&&Pt?jsxRuntimeExports.jsx(ErrorMessage,{message:Pt}):void 0})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(Field_2,{label:"Email (optional)",placeholder:"Enter your email",message:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[vt&&Ct?jsxRuntimeExports.jsx(ErrorMessage,{className:styles$8.emailError,message:Ct}):null,jsxRuntimeExports.jsx("span",{children:"Subscribe to Decentraland's newsletter to receive the latest news about events, updates, contests and more."})]}),onChange:nt})}),jsxRuntimeExports.jsxs("div",{className:styles$8.agree,children:[jsxRuntimeExports.jsx(Checkbox$4.Checkbox,{onChange:ot}),"I agree with Decentraland's ",jsxRuntimeExports.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://decentraland.org/terms/",children:"Terms of use"})," and ",jsxRuntimeExports.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://decentraland.org/privacy",children:"Privacy policy"}),"."]}),vt&&Ot?jsxRuntimeExports.jsx(ErrorMessage,{className:styles$8.agreeError,message:Ot}):null,jsxRuntimeExports.jsx("div",{className:styles$8.jumpIn,children:jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,fluid:!0,type:"submit",disabled:!dt||xt,loading:xt,children:kt})})]})]})}),jsxRuntimeExports.jsx("div",{className:styles$8.right,children:jsxRuntimeExports.jsx(CustomWearablePreview,{profile:_e})})]})})]})},main$4="_main_qbssu_1",styles$7={main:main$4},DefaultPage=()=>{const a=useNavigate(),_=useLocation();return reactExports.useEffect(()=>{getCurrentConnectionData().then($=>{$?window.location.href="/":a({pathname:"/login",search:_.search})})},[getCurrentConnectionData,a]),jsxRuntimeExports.jsx("div",{className:styles$7.main,children:jsxRuntimeExports.jsx(Loader_3,{active:!0,size:"huge"})})};var Modal$3={},Modal$2={},_arrayReduce,hasRequired_arrayReduce;function require_arrayReduce(){if(hasRequired_arrayReduce)return _arrayReduce;hasRequired_arrayReduce=1;function a(_,$,j,_e){var et=-1,tt=_==null?0:_.length;for(_e&&tt&&(j=_[++et]);++et<tt;)j=$(j,_[et],et,_);return j}return _arrayReduce=a,_arrayReduce}var _baseReduce,hasRequired_baseReduce;function require_baseReduce(){if(hasRequired_baseReduce)return _baseReduce;hasRequired_baseReduce=1;function a(_,$,j,_e,et){return et(_,function(tt,rt,it){j=_e?(_e=!1,tt):$(j,tt,rt,it)}),j}return _baseReduce=a,_baseReduce}var reduce_1,hasRequiredReduce;function requireReduce(){if(hasRequiredReduce)return reduce_1;hasRequiredReduce=1;var a=require_arrayReduce(),_=require_baseEach(),$=require_baseIteratee(),j=require_baseReduce(),_e=requireIsArray();function et(tt,rt,it){var ct=_e(tt)?a:j,dt=arguments.length<3;return ct(tt,$(rt,4),it,dt,_)}return reduce_1=et,reduce_1}var ModalActions={},hasRequiredModalActions;function requireModalActions(){if(hasRequiredModalActions)return ModalActions;hasRequiredModalActions=1;var a=interopRequireWildcardExports,_=interopRequireDefaultExports;ModalActions.__esModule=!0,ModalActions.default=void 0;var $=_(require_extends()),j=_(requireInheritsLoose()),_e=_(requireMap()),et=_(requireInvoke()),tt=_(require$$0$4);_(requirePropTypes());var rt=a(reactExports),it=requireLib(),ct=_(requireButton()),dt=function(mt){(0,j.default)(vt,mt);function vt(){for(var xt,bt=arguments.length,Et=new Array(bt),$t=0;$t<bt;$t++)Et[$t]=arguments[$t];return xt=mt.call.apply(mt,[this].concat(Et))||this,xt.handleButtonOverrides=function(At){return{onClick:function(Pt,Ct){(0,et.default)(At,"onClick",Pt,Ct),(0,et.default)(xt.props,"onActionClick",Pt,Ct)}}},xt}var wt=vt.prototype;return wt.render=function(){var bt=this,Et=this.props,$t=Et.actions,At=Et.children,Rt=Et.className,Pt=Et.content,Ct=(0,tt.default)("actions",Rt),Ot=(0,it.getUnhandledProps)(vt,this.props),kt=(0,it.getElementType)(vt,this.props);return it.childrenUtils.isNil(At)?it.childrenUtils.isNil(Pt)?rt.default.createElement(kt,(0,$.default)({},Ot,{className:Ct}),(0,_e.default)($t,function(Dt){return ct.default.create(Dt,{overrideProps:bt.handleButtonOverrides})})):rt.default.createElement(kt,(0,$.default)({},Ot,{className:Ct}),Pt):rt.default.createElement(kt,(0,$.default)({},Ot,{className:Ct}),At)},vt}(rt.Component);return ModalActions.default=dt,dt.handledProps=["actions","as","children","className","content","onActionClick"],dt.propTypes={},dt.create=(0,it.createShorthandFactory)(dt,function(mt){return{actions:mt}}),ModalActions}var ModalContent$1={},hasRequiredModalContent;function requireModalContent(){if(hasRequiredModalContent)return ModalContent$1;hasRequiredModalContent=1;var a=interopRequireDefaultExports;ModalContent$1.__esModule=!0,ModalContent$1.default=void 0;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(rt){var it=rt.children,ct=rt.className,dt=rt.content,mt=rt.image,vt=rt.scrolling,wt=(0,$.default)(ct,(0,_e.useKeyOnly)(mt,"image"),(0,_e.useKeyOnly)(vt,"scrolling"),"content"),xt=(0,_e.getUnhandledProps)(et,rt),bt=(0,_e.getElementType)(et,rt);return j.default.createElement(bt,(0,_.default)({},xt,{className:wt}),_e.childrenUtils.isNil(it)?dt:it)}et.handledProps=["as","children","className","content","image","scrolling"],et.propTypes={},et.create=(0,_e.createShorthandFactory)(et,function(rt){return{content:rt}});var tt=et;return ModalContent$1.default=tt,ModalContent$1}var ModalDescription={},hasRequiredModalDescription;function requireModalDescription(){if(hasRequiredModalDescription)return ModalDescription;hasRequiredModalDescription=1;var a=interopRequireDefaultExports;ModalDescription.__esModule=!0,ModalDescription.default=void 0;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(rt){var it=rt.children,ct=rt.className,dt=rt.content,mt=(0,$.default)("description",ct),vt=(0,_e.getUnhandledProps)(et,rt),wt=(0,_e.getElementType)(et,rt);return j.default.createElement(wt,(0,_.default)({},vt,{className:mt}),_e.childrenUtils.isNil(it)?dt:it)}et.handledProps=["as","children","className","content"],et.propTypes={};var tt=et;return ModalDescription.default=tt,ModalDescription}var ModalDimmer={},hasRequiredModalDimmer;function requireModalDimmer(){if(hasRequiredModalDimmer)return ModalDimmer;hasRequiredModalDimmer=1;var a=interopRequireDefaultExports;ModalDimmer.__esModule=!0,ModalDimmer.default=void 0;var _=a(require_extends()),$=require$$4$1,j=a(require$$0$4);a(requirePropTypes());var _e=a(reactExports),et=requireLib();function tt(it){var ct=it.blurring,dt=it.children,mt=it.className,vt=it.centered,wt=it.content,xt=it.inverted,bt=it.mountNode,Et=it.scrolling,$t=_e.default.useRef(),At=(0,j.default)("ui",(0,et.useKeyOnly)(xt,"inverted"),(0,et.useKeyOnly)(!vt,"top aligned"),"page modals dimmer transition visible active",mt),Rt=(0,j.default)("dimmable dimmed",(0,et.useKeyOnly)(ct,"blurring"),(0,et.useKeyOnly)(Et,"scrolling")),Pt=(0,et.getUnhandledProps)(tt,it),Ct=(0,et.getElementType)(tt,it);return(0,et.useClassNamesOnNode)(bt,Rt),_e.default.useEffect(function(){$t.current&&$t.current.style&&$t.current.style.setProperty("display","flex","important")},[]),_e.default.createElement($.Ref,{innerRef:$t},_e.default.createElement(Ct,(0,_.default)({},Pt,{className:At}),et.childrenUtils.isNil(dt)?wt:dt))}tt.handledProps=["as","blurring","centered","children","className","content","inverted","mountNode","scrolling"],tt.propTypes={},tt.create=(0,et.createShorthandFactory)(tt,function(it){return{content:it}});var rt=tt;return ModalDimmer.default=rt,ModalDimmer}var ModalHeader={},hasRequiredModalHeader;function requireModalHeader(){if(hasRequiredModalHeader)return ModalHeader;hasRequiredModalHeader=1;var a=interopRequireDefaultExports;ModalHeader.__esModule=!0,ModalHeader.default=void 0;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(rt){var it=rt.children,ct=rt.className,dt=rt.content,mt=(0,$.default)("header",ct),vt=(0,_e.getUnhandledProps)(et,rt),wt=(0,_e.getElementType)(et,rt);return j.default.createElement(wt,(0,_.default)({},vt,{className:mt}),_e.childrenUtils.isNil(it)?dt:it)}et.handledProps=["as","children","className","content"],et.propTypes={},et.create=(0,_e.createShorthandFactory)(et,function(rt){return{content:rt}});var tt=et;return ModalHeader.default=tt,ModalHeader}var utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1,utils.__esModule=!0,utils.isLegacy=utils.getLegacyStyles=utils.canFit=void 0;var a=0,_=50,$=function(tt){var rt=tt.height+a,it=tt.height+a,ct=window.innerHeight,dt=ct/2,mt=-(it/2),vt=_,wt=dt+mt;return wt+rt+vt<ct};utils.canFit=$;var j=function(tt,rt,it){var ct=rt&&tt?-(it.height/2):0,dt=-(it.width/2);return{marginLeft:dt,marginTop:ct}};utils.getLegacyStyles=j;var _e=function(){return!window.ActiveXObject&&"ActiveXObject"in window};return utils.isLegacy=_e,utils}var _interopRequireWildcard=interopRequireWildcardExports,_interopRequireDefault$1=interopRequireDefaultExports;Modal$2.__esModule=!0;Modal$2.default=void 0;var _extends2=_interopRequireDefault$1(require_extends()),_inheritsLoose2=_interopRequireDefault$1(requireInheritsLoose()),_isPlainObject2=_interopRequireDefault$1(requireIsPlainObject()),_pick2=_interopRequireDefault$1(requirePick()),_includes2=_interopRequireDefault$1(requireIncludes()),_reduce2=_interopRequireDefault$1(requireReduce()),_isEmpty2=_interopRequireDefault$1(requireIsEmpty()),_invoke2=_interopRequireDefault$1(requireInvoke()),_reactComponentRef=require$$4$1,_clsx=_interopRequireDefault$1(require$$0$4);_interopRequireDefault$1(requirePropTypes());var _react=_interopRequireWildcard(reactExports),_shallowequal=_interopRequireDefault$1(requireShallowequal()),_lib=requireLib(),_Icon=_interopRequireDefault$1(requireIcon()),_Portal=_interopRequireDefault$1(requirePortal()),_ModalActions=_interopRequireDefault$1(requireModalActions()),_ModalContent=_interopRequireDefault$1(requireModalContent()),_ModalDescription=_interopRequireDefault$1(requireModalDescription()),_ModalDimmer=_interopRequireDefault$1(requireModalDimmer()),_ModalHeader=_interopRequireDefault$1(requireModalHeader()),_utils=requireUtils(),Modal$1=function(a){(0,_inheritsLoose2.default)(_,a);function _(){for(var j,_e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];return j=a.call.apply(a,[this].concat(et))||this,j.legacy=(0,_lib.isBrowser)()&&(0,_utils.isLegacy)(),j.ref=(0,_react.createRef)(),j.dimmerRef=(0,_react.createRef)(),j.latestDocumentMouseDownEvent=null,j.getMountNode=function(){return(0,_lib.isBrowser)()?j.props.mountNode||document.body:null},j.handleActionsOverrides=function(rt){return{onActionClick:function(ct,dt){(0,_invoke2.default)(rt,"onActionClick",ct,dt),(0,_invoke2.default)(j.props,"onActionClick",ct,j.props),j.handleClose(ct)}}},j.handleClose=function(rt){j.setState({open:!1}),(0,_invoke2.default)(j.props,"onClose",rt,(0,_extends2.default)({},j.props,{open:!1}))},j.handleDocumentMouseDown=function(rt){j.latestDocumentMouseDownEvent=rt},j.handleDocumentClick=function(rt){var it=j.props.closeOnDimmerClick,ct=j.latestDocumentMouseDownEvent;j.latestDocumentMouseDownEvent=null,!(!it||(0,_lib.doesNodeContainClick)(j.ref.current,ct)||(0,_lib.doesNodeContainClick)(j.ref.current,rt))&&(j.setState({open:!1}),(0,_invoke2.default)(j.props,"onClose",rt,(0,_extends2.default)({},j.props,{open:!1})))},j.handleIconOverrides=function(rt){return{onClick:function(ct){(0,_invoke2.default)(rt,"onClick",ct),j.handleClose(ct)}}},j.handleOpen=function(rt){(0,_invoke2.default)(j.props,"onOpen",rt,(0,_extends2.default)({},j.props,{open:!0})),j.setState({open:!0})},j.handlePortalMount=function(rt){var it=j.props.eventPool;j.setState({scrolling:!1}),j.setPositionAndClassNames(),_lib.eventStack.sub("mousedown",j.handleDocumentMouseDown,{pool:it,target:j.dimmerRef.current}),_lib.eventStack.sub("click",j.handleDocumentClick,{pool:it,target:j.dimmerRef.current}),(0,_invoke2.default)(j.props,"onMount",rt,j.props)},j.handlePortalUnmount=function(rt){var it=j.props.eventPool;cancelAnimationFrame(j.animationRequestId),_lib.eventStack.unsub("mousedown",j.handleDocumentMouseDown,{pool:it,target:j.dimmerRef.current}),_lib.eventStack.unsub("click",j.handleDocumentClick,{pool:it,target:j.dimmerRef.current}),(0,_invoke2.default)(j.props,"onUnmount",rt,j.props)},j.setPositionAndClassNames=function(){var rt=j.props.centered,it,ct={};if(j.ref.current){var dt=j.ref.current.getBoundingClientRect(),mt=(0,_utils.canFit)(dt);it=!mt;var vt=j.legacy?(0,_utils.getLegacyStyles)(mt,rt,dt):{};(0,_shallowequal.default)(j.state.legacyStyles,vt)||(ct.legacyStyles=vt),j.state.scrolling!==it&&(ct.scrolling=it)}(0,_isEmpty2.default)(ct)||j.setState(ct),j.animationRequestId=requestAnimationFrame(j.setPositionAndClassNames)},j.renderContent=function(rt){var it=j.props,ct=it.actions,dt=it.basic,mt=it.children,vt=it.className,wt=it.closeIcon,xt=it.content,bt=it.header,Et=it.size,$t=it.style,At=j.state,Rt=At.legacyStyles,Pt=At.scrolling,Ct=(0,_clsx.default)("ui",Et,(0,_lib.useKeyOnly)(dt,"basic"),(0,_lib.useKeyOnly)(j.legacy,"legacy"),(0,_lib.useKeyOnly)(Pt,"scrolling"),"modal transition visible active",vt),Ot=(0,_lib.getElementType)(_,j.props),kt=wt===!0?"close":wt,Dt=_Icon.default.create(kt,{overrideProps:j.handleIconOverrides});return _react.default.createElement(_reactComponentRef.Ref,{innerRef:j.ref},_react.default.createElement(Ot,(0,_extends2.default)({},rt,{className:Ct,style:(0,_extends2.default)({},Rt,$t)}),Dt,_lib.childrenUtils.isNil(mt)?_react.default.createElement(_react.default.Fragment,null,_ModalHeader.default.create(bt,{autoGenerateKey:!1}),_ModalContent.default.create(xt,{autoGenerateKey:!1}),_ModalActions.default.create(ct,{overrideProps:j.handleActionsOverrides})):mt))},j}var $=_.prototype;return $.componentWillUnmount=function(){this.handlePortalUnmount()},$.render=function(){var _e=this.props,et=_e.centered,tt=_e.closeOnDocumentClick,rt=_e.dimmer,it=_e.eventPool,ct=_e.trigger,dt=this.state,mt=dt.open,vt=dt.scrolling,wt=this.getMountNode();if(!(0,_lib.isBrowser)())return(0,_react.isValidElement)(ct)?ct:null;var xt=(0,_lib.getUnhandledProps)(_,this.props),bt=_Portal.default.handledProps,Et=(0,_reduce2.default)(xt,function(At,Rt,Pt){return(0,_includes2.default)(bt,Pt)||(At[Pt]=Rt),At},{}),$t=(0,_pick2.default)(xt,bt);return _react.default.createElement(_Portal.default,(0,_extends2.default)({closeOnDocumentClick:tt},$t,{trigger:ct,eventPool:it,mountNode:wt,open:mt,onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount}),_react.default.createElement(_reactComponentRef.Ref,{innerRef:this.dimmerRef},_ModalDimmer.default.create((0,_isPlainObject2.default)(rt)?rt:{},{autoGenerateKey:!1,defaultProps:{blurring:rt==="blurring",inverted:rt==="inverted"},overrideProps:{children:this.renderContent(Et),centered:et,mountNode:wt,scrolling:vt}})))},_}(_lib.ModernAutoControlledComponent);Modal$1.handledProps=["actions","as","basic","centered","children","className","closeIcon","closeOnDimmerClick","closeOnDocumentClick","content","defaultOpen","dimmer","eventPool","header","mountNode","onActionClick","onClose","onMount","onOpen","onUnmount","open","size","style","trigger"];Modal$1.propTypes={};Modal$1.defaultProps={centered:!0,dimmer:!0,closeOnDimmerClick:!0,closeOnDocumentClick:!1,eventPool:"Modal"};Modal$1.autoControlledProps=["open"];Modal$1.Actions=_ModalActions.default;Modal$1.Content=_ModalContent.default;Modal$1.Description=_ModalDescription.default;Modal$1.Dimmer=_ModalDimmer.default;Modal$1.Header=_ModalHeader.default;var _default$1=Modal$1;Modal$2.default=_default$1;const Modal="";(function(a){var _=commonjsGlobal&&commonjsGlobal.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(a,"__esModule",{value:!0}),a.Modal=void 0;var $=Modal$2;Object.defineProperty(a,"Modal",{enumerable:!0,get:function(){return _($).default}})})(Modal$3);const wait=a=>new Promise(_=>setTimeout(_,a));var ModalContentExports=requireModalContent();const ModalContent=getDefaultExportFromCjs$1(ModalContentExports);var ModalNavigation$2={};const ModalNavigation$1="";var __extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var a=function(_,$){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,_e){j.__proto__=_e}||function(j,_e){for(var et in _e)Object.prototype.hasOwnProperty.call(_e,et)&&(j[et]=_e[et])},a(_,$)};return function(_,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");a(_,$);function j(){this.constructor=_}_.prototype=$===null?Object.create($):(j.prototype=$.prototype,new j)}}(),__createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(a,_,$,j){j===void 0&&(j=$);var _e=Object.getOwnPropertyDescriptor(_,$);(!_e||("get"in _e?!_.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return _[$]}}),Object.defineProperty(a,j,_e)}:function(a,_,$,j){j===void 0&&(j=$),a[j]=_[$]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(a,_){Object.defineProperty(a,"default",{enumerable:!0,value:_})}:function(a,_){a.default=_}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(a){if(a&&a.__esModule)return a;var _={};if(a!=null)for(var $ in a)$!=="default"&&Object.prototype.hasOwnProperty.call(a,$)&&__createBinding(_,a,$);return __setModuleDefault(_,a),_};Object.defineProperty(ModalNavigation$2,"__esModule",{value:!0});var ModalNavigation_2=ModalNavigation$2.ModalNavigation=void 0,React=__importStar(reactExports),ModalNavigation=function(a){__extends(_,a);function _(){return a!==null&&a.apply(this,arguments)||this}return _.prototype.render=function(){var $=this.props,j=$.title,_e=$.subtitle,et=$.onBack,tt=$.onClose,rt=$.onInfo;return React.createElement("div",{className:"dcl modal-navigation"},React.createElement("div",{className:"dcl modal-navigation-title"},j),_e&&React.createElement("div",{className:"dcl modal-navigation-subtitle"},_e),et&&React.createElement("div",{className:"dcl modal-navigation-button modal-navigation-back",onClick:et}),rt&&React.createElement("div",{className:"dcl modal-navigation-button modal-navigation-info",onClick:rt}),tt&&React.createElement("div",{className:"dcl modal-navigation-button modal-navigation-close",onClick:tt}))},_}(React.PureComponent);ModalNavigation_2=ModalNavigation$2.ModalNavigation=ModalNavigation;const warningSrc="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/warning-057948e8.svg";var ConnectionModalState=(a=>(a.CONNECTING_WALLET="CONNECTING_WALLET",a.WAITING_FOR_SIGNATURE="WAITING_FOR_SIGNATURE",a.ERROR="ERROR",a.LOADING_MAGIC="LOADING_MAGIC",a.VALIDATING_SIGN_IN="VALIDATING_SIGN_IN",a.WAITING_FOR_CONFIRMATION="WAITING_FOR_CONFIRMATION",a.ERROR_LOCKED_WALLET="ERROR_LOCKED_WALLET",a))(ConnectionModalState||{});function getConnectionMessage(a,_){switch(a){case ConnectionModalState.ERROR:return"You did not confirm this action in your digital wallet extension. To continue, please try again.";case ConnectionModalState.ERROR_LOCKED_WALLET:return"Your wallet is currently locked. To continue, please unlock your wallet and try again.";case ConnectionModalState.CONNECTING_WALLET:case ConnectionModalState.WAITING_FOR_SIGNATURE:return _===dist$5.ProviderType.MAGIC?"Almost done! Confirm your request to login Decentraland":"Confirm in your digital wallet extension to continue.";case ConnectionModalState.VALIDATING_SIGN_IN:return"Just a moment, we're verifying your login credentials...";case ConnectionModalState.LOADING_MAGIC:return"Redirecting..."}}const main$3="_main_1qx1l_1",content="_content_1qx1l_8",errorImage="_errorImage_1qx1l_16",message="_message_1qx1l_22",loader="_loader_1qx1l_29",styles$6={main:main$3,content,errorImage,message,loader},ConnectionModal=a=>{const{open:_,state:$,providerType:j,onClose:_e,onTryAgain:et}=a,tt=$===ConnectionModalState.CONNECTING_WALLET||$===ConnectionModalState.WAITING_FOR_SIGNATURE||$===ConnectionModalState.LOADING_MAGIC||$===ConnectionModalState.VALIDATING_SIGN_IN,rt=$===ConnectionModalState.ERROR||$===ConnectionModalState.ERROR_LOCKED_WALLET;return jsxRuntimeExports.jsxs(Modal$3.Modal,{size:"tiny",open:_,children:[jsxRuntimeExports.jsx(ModalNavigation_2,{title:"",onClose:tt?void 0:_e}),jsxRuntimeExports.jsx("div",{className:styles$6.main,children:jsxRuntimeExports.jsxs("div",{className:styles$6.content,children:[rt&&jsxRuntimeExports.jsx("img",{className:styles$6.errorImage,src:warningSrc}),tt&&jsxRuntimeExports.jsx(Loader_3,{className:styles$6.loader,size:"huge",inline:!0}),jsxRuntimeExports.jsx("p",{className:styles$6.message,children:getConnectionMessage($,j)}),rt&&jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,onClick:et,children:"Try again"})]})}),jsxRuntimeExports.jsx(ModalContent,{})]})};var Popup={},isElement_1,hasRequiredIsElement;function requireIsElement(){if(hasRequiredIsElement)return isElement_1;hasRequiredIsElement=1;var a=requireIsObjectLike(),_=requireIsPlainObject();function $(j){return a(j)&&j.nodeType===1&&!_(j)}return isElement_1=$,isElement_1}const require$$17=getAugmentedNamespace(esm);var positions={},_baseInverter,hasRequired_baseInverter;function require_baseInverter(){if(hasRequired_baseInverter)return _baseInverter;hasRequired_baseInverter=1;var a=require_baseForOwn();function _($,j,_e,et){return a($,function(tt,rt,it){j(et,_e(tt),rt,it)}),et}return _baseInverter=_,_baseInverter}var _createInverter,hasRequired_createInverter;function require_createInverter(){if(hasRequired_createInverter)return _createInverter;hasRequired_createInverter=1;var a=require_baseInverter();function _($,j){return function(_e,et){return a(_e,$,j(et),{})}}return _createInverter=_,_createInverter}var invert_1,hasRequiredInvert;function requireInvert(){if(hasRequiredInvert)return invert_1;hasRequiredInvert=1;var a=requireConstant(),_=require_createInverter(),$=requireIdentity(),j=Object.prototype,_e=j.toString,et=_(function(tt,rt,it){rt!=null&&typeof rt.toString!="function"&&(rt=_e.call(rt)),tt[rt]=it},a($));return invert_1=et,invert_1}var hasRequiredPositions;function requirePositions(){if(hasRequiredPositions)return positions;hasRequiredPositions=1;var a=interopRequireDefaultExports;positions.__esModule=!0,positions.placementMapping=positions.positions=positions.positionsMapping=void 0;var _=a(requireInvert()),$=a(requireKeys()),j={"top center":"top","top left":"top-start","top right":"top-end","bottom center":"bottom","bottom left":"bottom-start","bottom right":"bottom-end","right center":"right","left center":"left"};positions.positionsMapping=j;var _e=(0,$.default)(j);positions.positions=_e;var et=(0,_.default)(j);return positions.placementMapping=et,positions}var createReferenceProxy={},createClass={exports:{}},toPropertyKey={exports:{}},toPrimitive={exports:{}},hasRequiredToPrimitive;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,function(a){var _=_typeofExports$2.default;function $(j,_e){if(_(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}a.exports=$,a.exports.__esModule=!0,a.exports.default=a.exports}(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(a){var _=_typeofExports$2.default,$=requireToPrimitive();function j(_e){var et=$(_e,"string");return _(et)==="symbol"?et:String(et)}a.exports=j,a.exports.__esModule=!0,a.exports.default=a.exports}(toPropertyKey)),toPropertyKey.exports}var hasRequiredCreateClass;function requireCreateClass(){return hasRequiredCreateClass||(hasRequiredCreateClass=1,function(a){var _=requireToPropertyKey();function $(_e,et){for(var tt=0;tt<et.length;tt++){var rt=et[tt];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(_e,_(rt.key),rt)}}function j(_e,et,tt){return et&&$(_e.prototype,et),tt&&$(_e,tt),Object.defineProperty(_e,"prototype",{writable:!1}),_e}a.exports=j,a.exports.__esModule=!0,a.exports.default=a.exports}(createClass)),createClass.exports}var hasRequiredCreateReferenceProxy;function requireCreateReferenceProxy(){if(hasRequiredCreateReferenceProxy)return createReferenceProxy;hasRequiredCreateReferenceProxy=1;var a=interopRequireDefaultExports;createReferenceProxy.__esModule=!0,createReferenceProxy.default=void 0;var _=a(requireCreateClass()),$=a(requireMemoize()),j=a(requireInvoke()),_e=require$$4$1,et=function(){function it(dt){this.ref=dt}var ct=it.prototype;return ct.getBoundingClientRect=function(){return(0,j.default)(this.ref.current,"getBoundingClientRect")||{}},(0,_.default)(it,[{key:"clientWidth",get:function(){return this.getBoundingClientRect().width}},{key:"clientHeight",get:function(){return this.getBoundingClientRect().height}},{key:"parentNode",get:function(){return this.ref.current?this.ref.current.parentNode:void 0}}]),it}(),tt=(0,$.default)(function(it){return new et((0,_e.isRefObject)(it)?it:{current:it})}),rt=tt;return createReferenceProxy.default=rt,createReferenceProxy}var PopupContent={},hasRequiredPopupContent;function requirePopupContent(){if(hasRequiredPopupContent)return PopupContent;hasRequiredPopupContent=1;var a=interopRequireDefaultExports;PopupContent.__esModule=!0,PopupContent.default=et;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(tt){var rt=tt.children,it=tt.className,ct=tt.content,dt=(0,$.default)("content",it),mt=(0,_e.getUnhandledProps)(et,tt),vt=(0,_e.getElementType)(et,tt);return j.default.createElement(vt,(0,_.default)({},mt,{className:dt}),_e.childrenUtils.isNil(rt)?ct:rt)}return et.handledProps=["as","children","className","content"],et.propTypes={},et.create=(0,_e.createShorthandFactory)(et,function(tt){return{children:tt}}),PopupContent}var PopupHeader={},hasRequiredPopupHeader;function requirePopupHeader(){if(hasRequiredPopupHeader)return PopupHeader;hasRequiredPopupHeader=1;var a=interopRequireDefaultExports;PopupHeader.__esModule=!0,PopupHeader.default=et;var _=a(require_extends()),$=a(require$$0$4);a(requirePropTypes());var j=a(reactExports),_e=requireLib();function et(tt){var rt=tt.children,it=tt.className,ct=tt.content,dt=(0,$.default)("header",it),mt=(0,_e.getUnhandledProps)(et,tt),vt=(0,_e.getElementType)(et,tt);return j.default.createElement(vt,(0,_.default)({},mt,{className:dt}),_e.childrenUtils.isNil(rt)?ct:rt)}return et.handledProps=["as","children","className","content"],et.propTypes={},et.create=(0,_e.createShorthandFactory)(et,function(tt){return{children:tt}}),PopupHeader}var hasRequiredPopup;function requirePopup(){if(hasRequiredPopup)return Popup;hasRequiredPopup=1;var a=interopRequireWildcardExports,_=interopRequireDefaultExports;Popup.__esModule=!0,Popup.default=void 0;var $=_(require_extends()),j=_(requireInheritsLoose());_(requireWithout());var _e=_(requireIsNil()),et=_(requireIsUndefined()),tt=_(requireInvoke()),rt=_(requireIsElement()),it=_(requireIsArray()),ct=_(requirePick()),dt=_(requireIncludes()),mt=_(requireReduce()),vt=_(requireLib$1()),wt=_(require$$0$4);_(requirePropTypes());var xt=a(reactExports),bt=require$$17,Et=_(requireShallowequal()),$t=requireLib(),At=_(requirePortal()),Rt=requirePositions(),Pt=_(requireCreateReferenceProxy()),Ct=_(requirePopupContent()),Ot=_(requirePopupHeader()),kt=function(Dt){(0,j.default)(Nt,Dt);function Nt(){for(var gt,nt=arguments.length,ot=new Array(nt),st=0;st<nt;st++)ot[st]=arguments[st];return gt=Dt.call.apply(Dt,[this].concat(ot))||this,gt.state={},gt.open=!1,gt.zIndexWasSynced=!1,gt.triggerRef=xt.default.createRef(),gt.elementRef=xt.default.createRef(),gt.getPortalProps=function(){var lt={},pt=gt.props,_t=pt.on,St=pt.hoverable,yt=(0,it.default)(_t)?_t:[_t];return St&&(lt.closeOnPortalMouseLeave=!0,lt.mouseLeaveDelay=300),(0,dt.default)(yt,"hover")&&(lt.openOnTriggerClick=!1,lt.closeOnTriggerClick=!1,lt.openOnTriggerMouseEnter=!0,lt.closeOnTriggerMouseLeave=!0,lt.mouseLeaveDelay=70,lt.mouseEnterDelay=50),(0,dt.default)(yt,"click")&&(lt.openOnTriggerClick=!0,lt.closeOnTriggerClick=!0,lt.closeOnDocumentClick=!0),(0,dt.default)(yt,"focus")&&(lt.openOnTriggerFocus=!0,lt.closeOnTriggerBlur=!0),lt},gt.hideOnScroll=function(lt){(0,rt.default)(lt.target)&>.elementRef.current.contains(lt.target)||(gt.setState({closed:!0}),$t.eventStack.unsub("scroll",gt.hideOnScroll,{target:window}),gt.timeoutId=setTimeout(function(){gt.setState({closed:!1})},50),gt.handleClose(lt))},gt.handleClose=function(lt){(0,tt.default)(gt.props,"onClose",lt,(0,$.default)({},gt.props,{open:!1}))},gt.handleOpen=function(lt){(0,tt.default)(gt.props,"onOpen",lt,(0,$.default)({},gt.props,{open:!0}))},gt.handlePortalMount=function(lt){(0,tt.default)(gt.props,"onMount",lt,gt.props)},gt.handlePortalUnmount=function(lt){gt.positionUpdate=null,(0,tt.default)(gt.props,"onUnmount",lt,gt.props)},gt.renderContent=function(lt){var pt=lt.placement,_t=lt.ref,St=lt.update,yt=lt.style,at=gt.props,ht=at.basic,Mt=at.children,Tt=at.className,It=at.content,Lt=at.hideOnScroll,jt=at.flowing,Gt=at.header,tr=at.inverted,er=at.popper,Jt=at.size,Wt=at.style,Kt=at.wide,lr=gt.state.contentRestProps;gt.positionUpdate=St;var Lr=(0,wt.default)("ui",Rt.placementMapping[pt],Jt,(0,$t.useKeyOrValueAndKey)(Kt,"wide"),(0,$t.useKeyOnly)(ht,"basic"),(0,$t.useKeyOnly)(jt,"flowing"),(0,$t.useKeyOnly)(tr,"inverted"),"popup transition visible",Tt),$r=(0,$t.getElementType)(Nt,gt.props),wr=(0,$.default)({left:"auto",right:"auto",position:"initial"},Wt),an=xt.default.createElement($r,(0,$.default)({},lr,{className:Lr,style:wr,ref:gt.elementRef}),$t.childrenUtils.isNil(Mt)?xt.default.createElement(xt.default.Fragment,null,Ot.default.create(Gt,{autoGenerateKey:!1}),Ct.default.create(It,{autoGenerateKey:!1})):Mt,Lt&&xt.default.createElement(vt.default,{on:gt.hideOnScroll,name:"scroll",target:"window"}));return(0,$t.createHTMLDivision)(er||{},{overrideProps:{children:an,ref:_t,style:(0,$.default)({display:"flex"},yt)}})},gt}Nt.getDerivedStateFromProps=function(nt,ot){if(ot.closed||ot.disabled)return{};var st=(0,$t.getUnhandledProps)(Nt,nt),lt=(0,mt.default)(st,function(_t,St,yt){return(0,dt.default)(At.default.handledProps,yt)||(_t[yt]=St),_t},{}),pt=(0,ct.default)(st,At.default.handledProps);return{contentRestProps:lt,portalRestProps:pt}};var zt=Nt.prototype;return zt.componentDidUpdate=function(nt){var ot=(0,Et.default)(this.props.popperDependencies,nt.popperDependencies);ot||this.handleUpdate()},zt.componentWillUnmount=function(){clearTimeout(this.timeoutId)},zt.handleUpdate=function(){this.positionUpdate&&this.positionUpdate()},zt.render=function(){var nt=this,ot=this.props,st=ot.context,lt=ot.disabled,pt=ot.eventsEnabled,_t=ot.offset,St=ot.pinned,yt=ot.popper,at=ot.popperModifiers,ht=ot.position,Mt=ot.positionFixed,Tt=ot.trigger,It=this.state,Lt=It.closed,jt=It.portalRestProps;if(Lt||lt)return Tt;var Gt=[{name:"arrow",enabled:!1},{name:"eventListeners",options:{scroll:!!pt,resize:!!pt}},{name:"flip",enabled:!St},{name:"preventOverflow",enabled:!!_t},{name:"offset",enabled:!!_t,options:{offset:_t}}].concat(at,[{name:"syncZIndex",enabled:!0,phase:"beforeRead",fn:function(Wt){var Kt,lr=Wt.state;if(!nt.zIndexWasSynced){var Lr=yt==null||(Kt=yt.style)==null?void 0:Kt.zIndex;(0,et.default)(Lr)&&(lr.elements.popper.style.zIndex=window.getComputedStyle(lr.elements.popper.firstChild).zIndex),nt.zIndexWasSynced=!0}},effect:function(){return function(){nt.zIndexWasSynced=!1}}}]),tr=(0,Pt.default)((0,_e.default)(st)?this.triggerRef:st),er=(0,$.default)({},this.getPortalProps(),jt);return xt.default.createElement(At.default,(0,$.default)({},er,{onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount,trigger:Tt,triggerRef:this.triggerRef}),xt.default.createElement(bt.Popper,{modifiers:Gt,placement:Rt.positionsMapping[ht],strategy:Mt?"fixed":null,referenceElement:tr},this.renderContent))},Nt}(xt.Component);return Popup.default=kt,kt.handledProps=["as","basic","children","className","content","context","disabled","eventsEnabled","flowing","header","hideOnScroll","hoverable","inverted","offset","on","onClose","onMount","onOpen","onUnmount","pinned","popper","popperDependencies","popperModifiers","position","positionFixed","size","style","trigger","wide"],kt.propTypes={},kt.defaultProps={disabled:!1,eventsEnabled:!0,on:["click","hover"],pinned:!1,popperModifiers:[],position:"top left"},kt.Content=Ct.default,kt.Header=Ot.default,Popup}var _interopRequireDefault=interopRequireDefaultExports,_Popup=_interopRequireDefault(requirePopup()),_default=_Popup.default;const capitalize=a=>a.charAt(0).toUpperCase()+a.slice(1),button="_button_1uvkr_1",icon="_icon_1uvkr_5",styles$5={button,icon,"icon-metamask-mobile":"_icon-metamask-mobile_1uvkr_13","icon-metamask":"_icon-metamask_1uvkr_13","icon-dapper":"_icon-dapper_1uvkr_18","icon-fortmatic":"_icon-fortmatic_1uvkr_22","icon-wallet-connect":"_icon-wallet-connect_1uvkr_26","icon-samsung-blockchain-wallet":"_icon-samsung-blockchain-wallet_1uvkr_30","icon-coinbase":"_icon-coinbase_1uvkr_34","icon-wallet-link":"_icon-wallet-link_1uvkr_35","icon-google":"_icon-google_1uvkr_39","icon-discord":"_icon-discord_1uvkr_43","icon-apple":"_icon-apple_1uvkr_47","icon-x":"_icon-x_1uvkr_51"},ConnectionOption=a=>{const{className:_,children:$,type:j,testId:_e,showTooltip:et,tooltipPosition:tt,disabled:rt,info:it,loading:ct,onClick:dt}=a;return jsxRuntimeExports.jsx(_default,{position:et&&tt?tt:"top center",disabled:!et,trigger:jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsxs(Button$5.Button,{primary:!0,size:"small","data-testid":`${_e}-${j}-button`,className:classNames(_,styles$5.button),onClick:()=>dt(j),disabled:rt,loading:ct,children:[ct?null:jsxRuntimeExports.jsx("div",{role:"img","aria-label":j,className:classNames(styles$5.icon,styles$5[`icon-${j}`],styles$5.primaryImage)}),$]},j)}),content:it??capitalize(j),on:"hover"})},SOCIAL_PRIMARY_TEST_ID="social-primary-test-id",SOCIAL_SECONDARY_TEST_ID="social-secondary-test-id",WEB3_PRIMARY_TEST_ID="web3-primary-test-id",WEB3_SECONDARY_TEST_ID="web3-secondary-test-id",SHOW_MORE_BUTTON_TEST_ID="show-more-button-test-id";var ConnectionOptionType=(a=>(a.METAMASK="metamask",a.DAPPER="dapper",a.FORTMATIC="fortmatic",a.COINBASE="coinbase",a.SAMSUNG="samsung-blockchain-wallet",a.WALLET_CONNECT="wallet-connect",a.WALLET_LINK="wallet-link",a.METAMASK_MOBILE="metamask-mobile",a.GOOGLE="google",a.APPLE="apple",a.DISCORD="discord",a.X="x",a))(ConnectionOptionType||{});const connectionOptionTitles={metamask:"MetaMask",dapper:"Dapper",fortmatic:"Fortmatic",coinbase:"Coinbase","samsung-blockchain-wallet":"Samsung Blockchain Wallet","wallet-connect":"WalletConnect","wallet-link":"WalletLink","metamask-mobile":"MetaMask Mobile",google:"Google",apple:"Apple",discord:"Discord",x:"X"},connection="_connection_bt4wr_3",dclLogo="_dclLogo_bt4wr_9",title$2="_title_bt4wr_15",subtitle="_subtitle_bt4wr_20",primaryButton="_primaryButton_bt4wr_29",primaryImage="_primaryImage_bt4wr_39",primaryMessage="_primaryMessage_bt4wr_43",primaryMagic="_primaryMagic_bt4wr_52",primaryLearnMore="_primaryLearnMore_bt4wr_61",primary="_primary_bt4wr_29",showMore="_showMore_bt4wr_74",showMoreButton="_showMoreButton_bt4wr_78",showMoreSecondaryOptions="_showMoreSecondaryOptions_bt4wr_87",primaryOption="_primaryOption_bt4wr_100",secondaryOptionButton="_secondaryOptionButton_bt4wr_104",styles$4={connection,dclLogo,title:title$2,subtitle,primaryButton,primaryImage,primaryMessage,primaryMagic,primaryLearnMore,primary,showMore,showMoreButton,showMoreSecondaryOptions,primaryOption,secondaryOptionButton},Primary=({message:a,children:_,option:$,testId:j,loadingOption:_e,error:et,onConnect:tt})=>jsxRuntimeExports.jsxs("div",{className:styles$4.primary,"data-testid":j,children:[jsxRuntimeExports.jsx("div",{className:styles$4.primaryMessage,children:a}),jsxRuntimeExports.jsx(ConnectionOption,{disabled:!!_e||!!et,loading:_e===$,showTooltip:!!et,type:$,info:et,onClick:tt,className:classNames(styles$4.primaryButton,styles$4.primaryOption),testId:j,children:_})]}),Secondary=({options:a,tooltipDirection:_,testId:$,loadingOption:j,onConnect:_e})=>jsxRuntimeExports.jsx("div",{className:styles$4.showMoreSecondaryOptions,"data-testid":$,children:a.map(et=>jsxRuntimeExports.jsx(ConnectionOption,{className:classNames(styles$4.primaryButton,styles$4.secondaryOptionButton),showTooltip:!0,tooltipPosition:_,type:et,onClick:_e,testId:$,loading:j===et,disabled:!!j},et))}),defaultProps$2={i18n:{title:"Discover a virtual social world",subtitle:"shaped by its community of creators & explorers.",accessWith:a=>`Continue with ${connectionOptionTitles[a]}`,connectWith:a=>`Continue with ${connectionOptionTitles[a]}`,moreOptions:"More Options",socialMessage:a=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Access secured by ",a]}),web3Message:a=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["Have a digital wallet? ",a("Learn More")]})}},Connection=a=>{var xt;const{i18n:_=defaultProps$2.i18n,onConnect:$,onLearnMore:j,socialOptions:_e,web3Options:et,className:tt,loadingOption:rt}=a,[it,ct]=reactExports.useState(!1),dt=reactExports.useCallback(()=>{ct(!it)},[it]),mt=(xt=window.ethereum)==null?void 0:xt.isMetaMask,vt=_e&&_e.secondary&&_e.secondary.length>0,wt=et&&et.secondary&&et.secondary.length>0;return jsxRuntimeExports.jsxs("div",{className:classNames(tt,styles$4.connection),children:[jsxRuntimeExports.jsx("img",{className:styles$4.dclLogo,src:logoSrc,alt:"Decentraland logo"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h1",{className:styles$4.title,children:_.title}),jsxRuntimeExports.jsx("h2",{className:styles$4.subtitle,children:_.subtitle}),_e?jsxRuntimeExports.jsx(Primary,{onConnect:$,testId:SOCIAL_PRIMARY_TEST_ID,option:_e==null?void 0:_e.primary,loadingOption:rt,message:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[_.socialMessage(jsxRuntimeExports.jsx("div",{className:styles$4.primaryMagic,role:"img","aria-label":"Magic"})),jsxRuntimeExports.jsx("span",{className:styles$4.primaryLearnMore,role:"button",onClick:()=>j(_e==null?void 0:_e.primary),children:"Learn More"})]}),children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_.accessWith(_e==null?void 0:_e.primary)})}):null,et?jsxRuntimeExports.jsx(Primary,{onConnect:$,testId:WEB3_PRIMARY_TEST_ID,option:et==null?void 0:et.primary,loadingOption:rt,error:!mt&&(et==null?void 0:et.primary)===ConnectionOptionType.METAMASK?"You need to install the MetaMask Browser Extension to proceed. Please install it and try again.":void 0,message:_.web3Message(bt=>jsxRuntimeExports.jsx("span",{className:styles$4.primaryLearnMore,role:"button",onClick:()=>j(et.primary),children:bt})),children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_.connectWith(et==null?void 0:et.primary)})}):null]}),jsxRuntimeExports.jsxs("div",{className:styles$4.showMore,children:[(wt||vt)&&jsxRuntimeExports.jsxs(Button$5.Button,{"data-testid":SHOW_MORE_BUTTON_TEST_ID,basic:!0,size:"medium",fluid:!0,className:styles$4.showMoreButton,onClick:dt,children:[_.moreOptions,jsxRuntimeExports.jsx(default_1,{name:it?"chevron up":"chevron down"})]}),it&&vt&&jsxRuntimeExports.jsx(Secondary,{testId:SOCIAL_SECONDARY_TEST_ID,options:_e.secondary,onConnect:$,tooltipDirection:"top center",loadingOption:rt}),it&&wt&&jsxRuntimeExports.jsx(Secondary,{testId:WEB3_SECONDARY_TEST_ID,options:et.secondary,onConnect:$,tooltipDirection:"bottom center",loadingOption:rt})]})]})},ONE_MONTH_IN_MINUTES=60*24*30,MAGIC_KEY$1=getConfiguration().magic.apiKey;function fromConnectionOptionToProviderType(a){switch(a){case ConnectionOptionType.DISCORD:case ConnectionOptionType.X:case ConnectionOptionType.GOOGLE:case ConnectionOptionType.APPLE:return providerType.ProviderType.MAGIC;case ConnectionOptionType.WALLET_CONNECT:case ConnectionOptionType.METAMASK_MOBILE:return providerType.ProviderType.WALLET_CONNECT_V2;case ConnectionOptionType.COINBASE:case ConnectionOptionType.WALLET_LINK:return providerType.ProviderType.WALLET_LINK;case ConnectionOptionType.FORTMATIC:return providerType.ProviderType.FORTMATIC;case ConnectionOptionType.METAMASK:case ConnectionOptionType.DAPPER:case ConnectionOptionType.SAMSUNG:return providerType.ProviderType.INJECTED;default:throw new Error("Invalid provider")}}async function generateIdentity(a,_){const $=new BrowserProvider(_),j=Wallet.createRandom(),_e={address:j.address.toString(),publicKey:hexlify(j.publicKey),privateKey:hexlify(j.privateKey)},et=await $.getSigner();return dist$6.Authenticator.initializeAuthChain(a,_e,ONE_MONTH_IN_MINUTES,tt=>et.signMessage(tt))}async function connectToProvider(a){const _=fromConnectionOptionToProviderType(a);if(providerType.ProviderType.MAGIC===_){const{Magic:j}=await __vitePreload(()=>import("./index-f0f060e7.js"),["assets/index-f0f060e7.js","assets/index-7fbad618.js"]),{OAuthExtension:_e}=await __vitePreload(()=>import("./index-7911507e.js"),["assets/index-7911507e.js","assets/index-7fbad618.js"]),et=new j(MAGIC_KEY$1,{extensions:[new _e]}),tt=new URL(window.location.href);tt.pathname="/auth/callback",await et.oauth.loginWithRedirect({provider:a===ConnectionOptionType.X?"twitter":a,redirectURI:tt.href})}let $;try{$=await connection$1.connect(_)}catch(j){throw console.error("Error connecting to provider",j),j}if(!$.account||!$.provider)throw new Error("Could not get provider");return $}function isSocialLogin(a){return[ConnectionOptionType.APPLE,ConnectionOptionType.GOOGLE,ConnectionOptionType.X,ConnectionOptionType.DISCORD].includes(a)}async function getIdentitySignature(a,_){let $;const j=dist$4.localStorageGetIdentity(a);return j?$=j:($=await generateIdentity(a,_),dist$4.localStorageStoreIdentity(a,$)),$}function getIsMobile(){const a=navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)}const container="_container_1jfc2_1",info$2="_info_1jfc2_19",title$1="_title_1jfc2_28",styles$3={container,info:info$2,title:title$1},MAGIC_KEY=getConfiguration().magic.apiKey,CallbackPage=()=>{usePageTracking();const a=useAfterLoginRedirection(),_=useNavigate(),[$,j]=reactExports.useState(ConnectionModalState.WAITING_FOR_CONFIRMATION),{flags:_e}=reactExports.useContext(FeatureFlagsContext),[et]=useTargetConfig(),tt=reactExports.useCallback(async()=>{var dt;const ct=await connection$1.connect(dist$5.ProviderType.MAGIC);return await getIdentitySignature(((dt=ct.account)==null?void 0:dt.toLowerCase())??"",ct.provider),ct},[]),rt=reactExports.useCallback(async()=>{const{Magic:ct}=await __vitePreload(()=>import("./index-f0f060e7.js"),["assets/index-f0f060e7.js","assets/index-7fbad618.js"]),{OAuthExtension:dt}=await __vitePreload(()=>import("./index-7911507e.js"),["assets/index-7911507e.js","assets/index-7fbad618.js"]),mt=new ct(MAGIC_KEY,{extensions:[new dt]});try{j(ConnectionModalState.VALIDATING_SIGN_IN),await(mt==null?void 0:mt.oauth.getRedirectResult()),j(ConnectionModalState.WAITING_FOR_CONFIRMATION)}catch(vt){console.log(vt),_("/login")}},[_]);reactExports.useEffect(()=>{rt()},[]);const it=reactExports.useCallback(async()=>{var ct;try{j(ConnectionModalState.WAITING_FOR_SIGNATURE);const dt=await tt(),mt=((ct=dt.account)==null?void 0:ct.toLowerCase())??"";if(getAnalytics().identify({ethAddress:mt}),getAnalytics().track(TrackingEvents.LOGIN_SUCCESS,{eth_address:mt}),await wait(800),!et.skipSetup&&dt.account&&!await fetchProfile(dt.account)){window.location.href="/auth/setup"+(a?`?redirectTo=${a}`:"");return}a?window.location.href=a:window.location.href="/"}catch(dt){console.log(dt),_("/login")}},[_,a,_e]);return $===ConnectionModalState.WAITING_FOR_CONFIRMATION?jsxRuntimeExports.jsx(Modal$3.Modal,{size:"tiny",open:!0,children:jsxRuntimeExports.jsxs("div",{className:styles$3.container,children:[jsxRuntimeExports.jsx("h3",{className:styles$3.title,children:"Confirm your login"}),jsxRuntimeExports.jsxs("div",{className:styles$3.info,children:[jsxRuntimeExports.jsx("span",{children:"The next step only verifies your identity."}),jsxRuntimeExports.jsx("span",{children:"No payments or transactions will occur without your explicit approval."})]}),jsxRuntimeExports.jsx(Button$5.Button,{primary:!0,onClick:it,children:"Continue"})]})}):jsxRuntimeExports.jsx(ConnectionModal,{open:!0,state:$,onTryAgain:tt,providerType:dist$5.ProviderType.MAGIC})},Image1="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/image1-a4aa795b.webp",Image10="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/image10-c7fbcc61.webp",Image2="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/image2-0af6ed59.webp",Image3="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/image3-c864ad86.webp",Image4="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/image4-7964be5f.webp",Image5="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/image5-fcca517e.webp",Image6="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/image6-c770bdf5.webp",Image7="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/image7-341595c4.webp",Image8="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/image8-fea9fe85.webp",Image9="https://cdn.decentraland.org/@dcl/auth-site/1.7.2/assets/image9-714885ef.webp",main$2="_main_rwmls_1",title="_title_rwmls_11",infoModal$1="_infoModal_rwmls_15",infoContent$1="_infoContent_rwmls_19",info$1="_info_rwmls_15",goBackButton$1="_goBackButton_rwmls_33",styles$2={main:main$2,title,infoModal:infoModal$1,infoContent:infoContent$1,info:info$1,goBackButton:goBackButton$1},defaultProps$1={i18n:{title:"How does Magic work?",subtitle:"Magic handles digital wallet creation & management behind the scenes so you don't have to. Just log into Decentraland with your favorite social account and let Magic handle the rest.<br /> <br />If you'd rather take a more hands-on approach to your digital asset storage (e.g. Wearables, NAMEs, etc.), you can get a digital wallet from a provider such as <a href='https://metamask.io/'>MetaMask</a> and use it to create your Decentraland account.",goBack:"Return to log in page"}},MagicInformationModal=a=>{const{i18n:_=defaultProps$1.i18n,onClose:$,open:j}=a;return jsxRuntimeExports.jsxs(Modal$3.Modal,{size:"tiny",open:j,className:styles$2.infoModal,onClose:$,children:[jsxRuntimeExports.jsx(ModalNavigation_2,{title:"",onClose:$}),jsxRuntimeExports.jsx(ModalContent,{className:styles$2.infoContent,children:jsxRuntimeExports.jsxs("div",{className:styles$2.main,children:[jsxRuntimeExports.jsx("h1",{className:styles$2.title,children:_==null?void 0:_.title}),jsxRuntimeExports.jsx("span",{className:styles$2.info,dangerouslySetInnerHTML:{__html:_==null?void 0:_.subtitle}}),jsxRuntimeExports.jsx(Button$5.Button,{className:styles$2.goBackButton,secondary:!0,inverted:!0,onClick:$,children:_==null?void 0:_.goBack})]})})]})},main$1="_main_1yy07_1",infoModal="_infoModal_1yy07_11",infoContent="_infoContent_1yy07_15",info="_info_1yy07_11",infoImage="_infoImage_1yy07_26",assets="_assets_1yy07_34",login="_login_1yy07_38",goBackButton="_goBackButton_1yy07_42",styles$1={main:main$1,infoModal,infoContent,info,infoImage,assets,login,goBackButton},defaultProps={i18n:{title:"What is a digital wallet?",assets:{title:"A Home For Your Digital Assets",text:"Wallets are used to send, receive, store, and display digital assets, such as your Decentraland Wearables, NAMEs, LANDs, etc."},logIn:{title:"A New Way To Log In",text:"Instead of creating new accounts and passwords on every website, in the world of Web3 all you need to do is just connect your digital wallet."},goBack:"Return to log in page"}},WalletInformationModal=a=>{const{i18n:_=defaultProps.i18n,onClose:$,open:j}=a;return jsxRuntimeExports.jsxs(Modal$3.Modal,{size:"tiny",open:j,className:styles$1.infoModal,onClose:$,children:[jsxRuntimeExports.jsx(ModalNavigation_2,{title:"",onClose:$}),jsxRuntimeExports.jsx(ModalContent,{className:styles$1.infoContent,children:jsxRuntimeExports.jsxs("div",{className:styles$1.main,children:[jsxRuntimeExports.jsx("h1",{className:styles$1.title,children:_==null?void 0:_.title}),jsxRuntimeExports.jsxs("article",{className:styles$1.info,children:[jsxRuntimeExports.jsx("div",{className:classNames(styles$1.infoImage,styles$1.assets)}),jsxRuntimeExports.jsx("h3",{children:_==null?void 0:_.assets.title}),jsxRuntimeExports.jsx("p",{children:_==null?void 0:_.assets.text})]}),jsxRuntimeExports.jsxs("article",{className:styles$1.info,children:[jsxRuntimeExports.jsx("div",{className:classNames(styles$1.infoImage,styles$1.login)}),jsxRuntimeExports.jsx("h3",{children:_==null?void 0:_.logIn.title}),jsxRuntimeExports.jsx("p",{children:_==null?void 0:_.logIn.text})]}),jsxRuntimeExports.jsx(Button$5.Button,{className:styles$1.goBackButton,secondary:!0,inverted:!0,onClick:$,children:_==null?void 0:_.goBack})]})})]})},main="_main_15y2x_1",background="_background_15y2x_8",left="_left_15y2x_32",leftInfo="_leftInfo_15y2x_42",right="_right_15y2x_51",footer="_footer_15y2x_60",guestInfo="_guestInfo_15y2x_79",styles={main,background,"move-background":"_move-background_15y2x_1",left,leftInfo,right,footer,guestInfo},BACKGROUND_IMAGES=[Image1,Image2,Image3,Image4,Image5,Image6,Image7,Image8,Image9,Image10],LoginPage=()=>{usePageTracking();const[a]=useSearchParams(),[_,$]=reactExports.useState(ConnectionModalState.CONNECTING_WALLET),[j,_e]=reactExports.useState(!1),[et,tt]=reactExports.useState(!1),[rt,it]=reactExports.useState(!1),[ct,dt]=reactExports.useState(),[mt]=reactExports.useState(getIsMobile()),vt=useAfterLoginRedirection(),wt=vt&&new URL(vt).pathname.includes("/play"),[xt,bt]=reactExports.useState(0),{flags:Et}=reactExports.useContext(FeatureFlagsContext),[$t]=useTargetConfig(),At=reactExports.useCallback(zt=>{const gt=zt&&isSocialLogin(zt);getAnalytics().track(TrackingEvents.CLICK,{action:ClickEvents.LEARN_MORE,type:gt?"Learn more about Magic":"Learn more about wallets"}),gt?tt(!0):_e(!0)},[_e,tt,j]),Rt=reactExports.useCallback(()=>{_e(!1),tt(!1)},[_e,tt]),Pt=reactExports.useCallback(()=>{tt(!et)},[tt,et]),Ct=reactExports.useCallback(async()=>{getAnalytics().track(TrackingEvents.LOGIN_CLICK,{type:"guest"}),await wait(800)},[]),Ot=reactExports.useMemo(()=>{if(vt){const zt=new URL(vt);return zt.searchParams.append("guest","true"),zt.toString()}return""},[vt]),kt=reactExports.useCallback(async zt=>{var nt;const gt=isSocialLogin(zt);if(dt(zt),getAnalytics().track(TrackingEvents.LOGIN_CLICK,{method:zt,type:gt?ConnectionType.WEB2:ConnectionType.WEB3}),gt)$(ConnectionModalState.LOADING_MAGIC),await wait(800),await connectToProvider(zt);else try{it(!0),$(ConnectionModalState.CONNECTING_WALLET);const ot=await connectToProvider(zt);if(await wait(800),$(ConnectionModalState.WAITING_FOR_SIGNATURE),await getIdentitySignature(((nt=ot.account)==null?void 0:nt.toLowerCase())??"",ot.provider),getAnalytics().track(TrackingEvents.LOGIN_SUCCESS,{eth_address:ot.account}),getAnalytics().identify({ethAddress:ot.account}),await wait(800),!$t.skipSetup&&ot.account&&!await fetchProfile(ot.account)){window.location.href="/auth/setup"+(vt?`?redirectTo=${vt}`:""),it(!1);return}vt?window.location.href=vt:window.location.href="/",it(!1)}catch(ot){console.log("Error",isErrorWithMessage(ot)?ot.message:JSON.stringify(ot)),getAnalytics().track(TrackingEvents.LOGIN_ERROR,{error:isErrorWithMessage(ot)?ot.message:ot}),isErrorWithName(ot)&&ot.name==="ErrorUnlockingWallet"?$(ConnectionModalState.ERROR_LOCKED_WALLET):$(ConnectionModalState.ERROR)}},[$,it,dt,vt,a,Et]),Dt=reactExports.useCallback(()=>{it(!1),dt(void 0),$(ConnectionModalState.CONNECTING_WALLET)},[it]),Nt=reactExports.useCallback(()=>{ct&&kt(ct)},[ct]);return reactExports.useEffect(()=>{const zt=setInterval(()=>{bt(gt=>gt===BACKGROUND_IMAGES.length-1?0:gt+1)},5e3);return()=>{clearInterval(zt)}},[]),jsxRuntimeExports.jsxs("main",{className:styles.main,children:[jsxRuntimeExports.jsx("div",{className:styles.background,style:{backgroundImage:`url(${BACKGROUND_IMAGES[xt]})`}}),jsxRuntimeExports.jsx(WalletInformationModal,{open:j,onClose:Rt}),jsxRuntimeExports.jsx(MagicInformationModal,{open:et,onClose:Pt}),jsxRuntimeExports.jsx(ConnectionModal,{open:rt,state:_,onClose:Dt,onTryAgain:Nt,providerType:ct?fromConnectionOptionToProviderType(ct):null}),jsxRuntimeExports.jsx("div",{className:styles.left,children:jsxRuntimeExports.jsxs("div",{className:styles.leftInfo,children:[jsxRuntimeExports.jsx(Connection,{onLearnMore:At,onConnect:kt,loadingOption:ct,socialOptions:{primary:ConnectionOptionType.GOOGLE,secondary:[ConnectionOptionType.DISCORD,ConnectionOptionType.APPLE,ConnectionOptionType.X]},web3Options:mt?{primary:ConnectionOptionType.WALLET_CONNECT,secondary:[ConnectionOptionType.FORTMATIC,ConnectionOptionType.COINBASE]}:{primary:ConnectionOptionType.METAMASK,secondary:[ConnectionOptionType.FORTMATIC,ConnectionOptionType.COINBASE,ConnectionOptionType.WALLET_CONNECT]}}),wt&&jsxRuntimeExports.jsxs("div",{className:styles.guestInfo,children:["Quick dive?"," ",jsxRuntimeExports.jsx("a",{href:Ot,onClick:Ct,children:"Explore as a guest"})]})]})})]})};(function(){const a=window.analytics=window.analytics||[];if(!a.initialize){if(a.invoked){window.console&&console.error&&console.error("Segment snippet included twice.");return}a.invoked=!0,a.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","user","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],a.factory=function(_){return function(){const $=Array.prototype.slice.call(arguments);return $.unshift(_),a.push($),a}};for(let _=0;_<a.methods.length;_++){const $=a.methods[_];a[$]=a.factory($)}a.load=function(_,$){const j=document.createElement("script");j.type="text/javascript",j.async=!0,j.src="https://cdn.segment.com/analytics.js/v1/"+_+"/analytics.min.js";const _e=document.getElementsByTagName("script")[0];_e.parentNode.insertBefore(j,_e),a._loadOptions=$},a.SNIPPET_VERSION="4.15.2"}})();const darkTheme="",index="";getAnalytics().load(config$1.get("SEGMENT_API_KEY"));ReactDOM.render(jsxRuntimeExports.jsx(React$5.StrictMode,{children:jsxRuntimeExports.jsx(FeatureFlagsProvider,{children:jsxRuntimeExports.jsx(BrowserRouter,{basename:"/auth",children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/login",element:jsxRuntimeExports.jsx(LoginPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/callback",element:jsxRuntimeExports.jsx(CallbackPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/requests/:requestId",element:jsxRuntimeExports.jsx(RequestPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/setup",element:jsxRuntimeExports.jsx(SetupPage,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(DefaultPage,{})})]})})})}),document.getElementById("root"));export{Buffer$G as B,__vitePreload as _,getDefaultExportFromCjs$1 as a,getAugmentedNamespace as b,commonjsGlobal as c,commonjsRequire as d,eventsExports as e,Bg as f,global$1 as g,bnExports$4 as h,sha_jsExports as i,readableBrowserExports as j,require$$0$4 as k,o,process$1 as p,requireCryptoBrowserify as r,sideChannel as s};
|
|
158
|
+
//# sourceMappingURL=index-8a109c4c.js.map
|