@paroicms/site-generator-plugin 0.14.0 → 0.14.1

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.
@@ -1,4 +1,4 @@
1
- var Vy=Object.defineProperty;var Qy=(i,l,u)=>l in i?Vy(i,l,{enumerable:!0,configurable:!0,writable:!0,value:u}):i[l]=u;var Oe=(i,l,u)=>Qy(i,typeof l!="symbol"?l+"":l,u);function Up(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var fo={exports:{}},Jl={};/**
1
+ var Vy=Object.defineProperty;var Qy=(i,l,s)=>l in i?Vy(i,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[l]=s;var Ae=(i,l,s)=>Qy(i,typeof l!="symbol"?l+"":l,s);function Up(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var fo={exports:{}},Jl={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ var Vy=Object.defineProperty;var Qy=(i,l,u)=>l in i?Vy(i,l,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Kh;function Xy(){if(Kh)return Jl;Kh=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(r,c,f){var p=null;if(f!==void 0&&(p=""+f),c.key!==void 0&&(p=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:i,type:r,key:p,ref:c!==void 0?c:null,props:f}}return Jl.Fragment=l,Jl.jsx=u,Jl.jsxs=u,Jl}var Jh;function Zy(){return Jh||(Jh=1,fo.exports=Xy()),fo.exports}var E=Zy();const ae=i=>typeof i=="string",Fl=()=>{let i,l;const u=new Promise((r,c)=>{i=r,l=c});return u.resolve=i,u.reject=l,u},Fh=i=>i==null?"":""+i,Ky=(i,l,u)=>{i.forEach(r=>{l[r]&&(u[r]=l[r])})},Jy=/###/g,Ph=i=>i&&i.indexOf("###")>-1?i.replace(Jy,"."):i,Wh=i=>!i||ae(i),ni=(i,l,u)=>{const r=ae(l)?l.split("."):l;let c=0;for(;c<r.length-1;){if(Wh(i))return{};const f=Ph(r[c]);!i[f]&&u&&(i[f]=new u),Object.prototype.hasOwnProperty.call(i,f)?i=i[f]:i={},++c}return Wh(i)?{}:{obj:i,k:Ph(r[c])}},Ih=(i,l,u)=>{const{obj:r,k:c}=ni(i,l,Object);if(r!==void 0||l.length===1){r[c]=u;return}let f=l[l.length-1],p=l.slice(0,l.length-1),h=ni(i,p,Object);for(;h.obj===void 0&&p.length;)f=`${p[p.length-1]}.${f}`,p=p.slice(0,p.length-1),h=ni(i,p,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${f}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=u},Fy=(i,l,u,r)=>{const{obj:c,k:f}=ni(i,l,Object);c[f]=c[f]||[],c[f].push(u)},Ls=(i,l)=>{const{obj:u,k:r}=ni(i,l);if(u&&Object.prototype.hasOwnProperty.call(u,r))return u[r]},Py=(i,l,u)=>{const r=Ls(i,u);return r!==void 0?r:Ls(l,u)},Hp=(i,l,u)=>{for(const r in l)r!=="__proto__"&&r!=="constructor"&&(r in i?ae(i[r])||i[r]instanceof String||ae(l[r])||l[r]instanceof String?u&&(i[r]=l[r]):Hp(i[r],l[r],u):i[r]=l[r]);return i},Za=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Wy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Iy=i=>ae(i)?i.replace(/[&<>"'\/]/g,l=>Wy[l]):i;class ev{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const u=this.regExpMap.get(l);if(u!==void 0)return u;const r=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,r),this.regExpQueue.push(l),r}}const tv=[" ",",","?","!",";"],nv=new ev(20),av=(i,l,u)=>{l=l||"",u=u||"";const r=tv.filter(p=>l.indexOf(p)<0&&u.indexOf(p)<0);if(r.length===0)return!0;const c=nv.getRegExp(`(${r.map(p=>p==="?"?"\\?":p).join("|")})`);let f=!c.test(i);if(!f){const p=i.indexOf(u);p>0&&!c.test(i.substring(0,p))&&(f=!0)}return f},wo=(i,l,u=".")=>{if(!i)return;if(i[l])return Object.prototype.hasOwnProperty.call(i,l)?i[l]:void 0;const r=l.split(u);let c=i;for(let f=0;f<r.length;){if(!c||typeof c!="object")return;let p,h="";for(let g=f;g<r.length;++g)if(g!==f&&(h+=u),h+=r[g],p=c[h],p!==void 0){if(["string","number","boolean"].indexOf(typeof p)>-1&&g<r.length-1)continue;f+=g-f+1;break}c=p}return c},li=i=>i==null?void 0:i.replace("_","-"),lv={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,l){var u,r;(r=(u=console==null?void 0:console[i])==null?void 0:u.apply)==null||r.call(u,console,l)}};class Us{constructor(l,u={}){this.init(l,u)}init(l,u={}){this.prefix=u.prefix||"i18next:",this.logger=l||lv,this.options=u,this.debug=u.debug}log(...l){return this.forward(l,"log","",!0)}warn(...l){return this.forward(l,"warn","",!0)}error(...l){return this.forward(l,"error","")}deprecate(...l){return this.forward(l,"warn","WARNING DEPRECATED: ",!0)}forward(l,u,r,c){return c&&!this.debug?null:(ae(l[0])&&(l[0]=`${r}${this.prefix} ${l[0]}`),this.logger[u](l))}create(l){return new Us(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new Us(this.logger,l)}}var Qt=new Us;class Vs{constructor(){this.observers={}}on(l,u){return l.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const c=this.observers[r].get(u)||0;this.observers[r].set(u,c+1)}),this}off(l,u){if(this.observers[l]){if(!u){delete this.observers[l];return}this.observers[l].delete(u)}}emit(l,...u){this.observers[l]&&Array.from(this.observers[l].entries()).forEach(([c,f])=>{for(let p=0;p<f;p++)c(...u)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,f])=>{for(let p=0;p<f;p++)c.apply(c,[l,...u])})}}class ep extends Vs{constructor(l,u={ns:["translation"],defaultNS:"translation"}){super(),this.data=l||{},this.options=u,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(l){this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}removeNamespaces(l){const u=this.options.ns.indexOf(l);u>-1&&this.options.ns.splice(u,1)}getResource(l,u,r,c={}){var d,v;const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;l.indexOf(".")>-1?h=l.split("."):(h=[l,u],r&&(Array.isArray(r)?h.push(...r):ae(r)&&f?h.push(...r.split(f)):h.push(r)));const g=Ls(this.data,h);return!g&&!u&&!r&&l.indexOf(".")>-1&&(l=h[0],u=h[1],r=h.slice(2).join(".")),g||!p||!ae(r)?g:wo((v=(d=this.data)==null?void 0:d[l])==null?void 0:v[u],r,f)}addResource(l,u,r,c,f={silent:!1}){const p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let h=[l,u];r&&(h=h.concat(p?r.split(p):r)),l.indexOf(".")>-1&&(h=l.split("."),c=u,u=h[1]),this.addNamespaces(u),Ih(this.data,h,c),f.silent||this.emit("added",l,u,r,c)}addResources(l,u,r,c={silent:!1}){for(const f in r)(ae(r[f])||Array.isArray(r[f]))&&this.addResource(l,u,f,r[f],{silent:!0});c.silent||this.emit("added",l,u,r)}addResourceBundle(l,u,r,c,f,p={silent:!1,skipCopy:!1}){let h=[l,u];l.indexOf(".")>-1&&(h=l.split("."),c=r,r=u,u=h[1]),this.addNamespaces(u);let g=Ls(this.data,h)||{};p.skipCopy||(r=JSON.parse(JSON.stringify(r))),c?Hp(g,r,f):g={...g,...r},Ih(this.data,h,g),p.silent||this.emit("added",l,u,r)}removeResourceBundle(l,u){this.hasResourceBundle(l,u)&&delete this.data[l][u],this.removeNamespaces(u),this.emit("removed",l,u)}hasResourceBundle(l,u){return this.getResource(l,u)!==void 0}getResourceBundle(l,u){return u||(u=this.options.defaultNS),this.getResource(l,u)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const u=this.getDataByLanguage(l);return!!(u&&Object.keys(u)||[]).find(c=>u[c]&&Object.keys(u[c]).length>0)}toJSON(){return this.data}}var Bp={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,l,u,r,c){return i.forEach(f=>{var p;l=((p=this.processors[f])==null?void 0:p.process(l,u,r,c))??l}),l}};const tp={},np=i=>!ae(i)&&typeof i!="boolean"&&typeof i!="number";class Hs extends Vs{constructor(l,u={}){super(),Ky(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=u,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qt.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l,u={interpolation:{}}){const r={...u};if(l==null)return!1;const c=this.resolve(l,r);return(c==null?void 0:c.res)!==void 0}extractFromKey(l,u){let r=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const c=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let f=u.ns||this.options.defaultNS||[];const p=r&&l.indexOf(r)>-1,h=!this.options.userDefinedKeySeparator&&!u.keySeparator&&!this.options.userDefinedNsSeparator&&!u.nsSeparator&&!av(l,r,c);if(p&&!h){const g=l.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:l,namespaces:ae(f)?[f]:f};const d=l.split(r);(r!==c||r===c&&this.options.ns.indexOf(d[0])>-1)&&(f=d.shift()),l=d.join(c)}return{key:l,namespaces:ae(f)?[f]:f}}translate(l,u,r){let c=typeof u=="object"?{...u}:u;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(c={...c}),c||(c={}),l==null)return"";Array.isArray(l)||(l=[String(l)]);const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,p=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:h,namespaces:g}=this.extractFromKey(l[l.length-1],c),d=g[g.length-1];let v=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const S=c.lng||this.language,b=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((S==null?void 0:S.toLowerCase())==="cimode")return b?f?{res:`${d}${v}${h}`,usedKey:h,exactUsedKey:h,usedLng:S,usedNS:d,usedParams:this.getUsedParamsDetails(c)}:`${d}${v}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:S,usedNS:d,usedParams:this.getUsedParamsDetails(c)}:h;const _=this.resolve(l,c);let T=_==null?void 0:_.res;const j=(_==null?void 0:_.usedKey)||h,G=(_==null?void 0:_.exactUsedKey)||h,B=["[object Number]","[object Function]","[object RegExp]"],q=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,F=c.count!==void 0&&!ae(c.count),Z=Hs.hasDefaultValue(c),de=F?this.pluralResolver.getSuffix(S,c.count,c):"",le=c.ordinal&&F?this.pluralResolver.getSuffix(S,c.count,{ordinal:!1}):"",ie=F&&!c.ordinal&&c.count===0,Q=ie&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${de}`]||c[`defaultValue${le}`]||c.defaultValue;let ee=T;X&&!T&&Z&&(ee=Q);const he=np(ee),De=Object.prototype.toString.apply(ee);if(X&&ee&&he&&B.indexOf(De)<0&&!(ae(q)&&Array.isArray(ee))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(j,ee,{...c,ns:g}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(_.res=Ue,_.usedParams=this.getUsedParamsDetails(c),_):Ue}if(p){const Ue=Array.isArray(ee),Ce=Ue?[]:{},$e=Ue?G:j;for(const D in ee)if(Object.prototype.hasOwnProperty.call(ee,D)){const $=`${$e}${p}${D}`;Z&&!T?Ce[D]=this.translate($,{...c,defaultValue:np(Q)?Q[D]:void 0,joinArrays:!1,ns:g}):Ce[D]=this.translate($,{...c,joinArrays:!1,ns:g}),Ce[D]===$&&(Ce[D]=ee[D])}T=Ce}}else if(X&&ae(q)&&Array.isArray(T))T=T.join(q),T&&(T=this.extendTranslation(T,l,c,r));else{let Ue=!1,Ce=!1;!this.isValidLookup(T)&&Z&&(Ue=!0,T=Q),this.isValidLookup(T)||(Ce=!0,T=h);const D=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Ce?void 0:T,$=Z&&Q!==T&&this.options.updateMissing;if(Ce||Ue||$){if(this.logger.log($?"updateKey":"missingKey",S,d,h,$?Q:T),p){const U=this.resolve(h,{...c,keySeparator:!1});U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let P=[];const me=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if(this.options.saveMissingTo==="fallback"&&me&&me[0])for(let U=0;U<me.length;U++)P.push(me[U]);else this.options.saveMissingTo==="all"?P=this.languageUtils.toResolveHierarchy(c.lng||this.language):P.push(c.lng||this.language);const R=(U,V,Y)=>{var pe;const W=Z&&Y!==T?Y:D;this.options.missingKeyHandler?this.options.missingKeyHandler(U,d,V,W,$,c):(pe=this.backendConnector)!=null&&pe.saveMissing&&this.backendConnector.saveMissing(U,d,V,W,$,c),this.emit("missingKey",U,d,V,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?P.forEach(U=>{const V=this.pluralResolver.getSuffixes(U,c);ie&&c[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(Y=>{R([U],h+Y,c[`defaultValue${Y}`]||Q)})}):R(P,h,Q))}T=this.extendTranslation(T,l,c,_,r),Ce&&T===h&&this.options.appendNamespaceToMissingKey&&(T=`${d}${v}${h}`),(Ce||Ue)&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${v}${h}`:h,Ue?T:void 0,c))}return f?(_.res=T,_.usedParams=this.getUsedParamsDetails(c),_):T}extendTranslation(l,u,r,c,f){var g,d;if((g=this.i18nFormat)!=null&&g.parse)l=this.i18nFormat.parse(l,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const v=ae(l)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let S;if(v){const _=l.match(this.interpolator.nestingRegexp);S=_&&_.length}let b=r.replace&&!ae(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),l=this.interpolator.interpolate(l,b,r.lng||this.language||c.usedLng,r),v){const _=l.match(this.interpolator.nestingRegexp),T=_&&_.length;S<T&&(r.nest=!1)}!r.lng&&c&&c.res&&(r.lng=this.language||c.usedLng),r.nest!==!1&&(l=this.interpolator.nest(l,(..._)=>(f==null?void 0:f[0])===_[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${_[0]} in key: ${u[0]}`),null):this.translate(..._,u),r)),r.interpolation&&this.interpolator.reset()}const p=r.postProcess||this.options.postProcess,h=ae(p)?[p]:p;return l!=null&&(h!=null&&h.length)&&r.applyPostProcessor!==!1&&(l=Bp.handle(h,l,u,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),l}resolve(l,u={}){let r,c,f,p,h;return ae(l)&&(l=[l]),l.forEach(g=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(g,u),v=d.key;c=v;let S=d.namespaces;this.options.fallbackNS&&(S=S.concat(this.options.fallbackNS));const b=u.count!==void 0&&!ae(u.count),_=b&&!u.ordinal&&u.count===0,T=u.context!==void 0&&(ae(u.context)||typeof u.context=="number")&&u.context!=="",j=u.lngs?u.lngs:this.languageUtils.toResolveHierarchy(u.lng||this.language,u.fallbackLng);S.forEach(G=>{var B,q;this.isValidLookup(r)||(h=G,!tp[`${j[0]}-${G}`]&&((B=this.utils)!=null&&B.hasLoadedNamespace)&&!((q=this.utils)!=null&&q.hasLoadedNamespace(h))&&(tp[`${j[0]}-${G}`]=!0,this.logger.warn(`key "${c}" for languages "${j.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),j.forEach(X=>{var de;if(this.isValidLookup(r))return;p=X;const F=[v];if((de=this.i18nFormat)!=null&&de.addLookupKeys)this.i18nFormat.addLookupKeys(F,v,X,G,u);else{let le;b&&(le=this.pluralResolver.getSuffix(X,u.count,u));const ie=`${this.options.pluralSeparator}zero`,Q=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(F.push(v+le),u.ordinal&&le.indexOf(Q)===0&&F.push(v+le.replace(Q,this.options.pluralSeparator)),_&&F.push(v+ie)),T){const ee=`${v}${this.options.contextSeparator}${u.context}`;F.push(ee),b&&(F.push(ee+le),u.ordinal&&le.indexOf(Q)===0&&F.push(ee+le.replace(Q,this.options.pluralSeparator)),_&&F.push(ee+ie))}}let Z;for(;Z=F.pop();)this.isValidLookup(r)||(f=Z,r=this.getResource(X,G,Z,u))}))})}),{res:r,usedKey:c,exactUsedKey:f,usedLng:p,usedNS:h}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,u,r,c={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(l,u,r,c):this.resourceStore.getResource(l,u,r,c)}getUsedParamsDetails(l={}){const u=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=l.replace&&!ae(l.replace);let c=r?l.replace:l;if(r&&typeof l.count<"u"&&(c.count=l.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!r){c={...c};for(const f of u)delete c[f]}return c}static hasDefaultValue(l){const u="defaultValue";for(const r in l)if(Object.prototype.hasOwnProperty.call(l,r)&&u===r.substring(0,u.length)&&l[r]!==void 0)return!0;return!1}}class ap{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(l){if(l=li(l),!l||l.indexOf("-")<0)return null;const u=l.split("-");return u.length===2||(u.pop(),u[u.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(u.join("-"))}getLanguagePartFromCode(l){if(l=li(l),!l||l.indexOf("-")<0)return l;const u=l.split("-");return this.formatLanguageCode(u[0])}formatLanguageCode(l){if(ae(l)&&l.indexOf("-")>-1){let u;try{u=Intl.getCanonicalLocales(l)[0]}catch{}return u&&this.options.lowerCaseLng&&(u=u.toLowerCase()),u||(this.options.lowerCaseLng?l.toLowerCase():l)}return this.options.cleanCode||this.options.lowerCaseLng?l.toLowerCase():l}isSupportedCode(l){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(l=this.getLanguagePartFromCode(l)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(l)>-1}getBestMatchFromCodes(l){if(!l)return null;let u;return l.forEach(r=>{if(u)return;const c=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(c))&&(u=c)}),!u&&this.options.supportedLngs&&l.forEach(r=>{if(u)return;const c=this.getScriptPartFromCode(r);if(this.isSupportedCode(c))return u=c;const f=this.getLanguagePartFromCode(r);if(this.isSupportedCode(f))return u=f;u=this.options.supportedLngs.find(p=>{if(p===f)return p;if(!(p.indexOf("-")<0&&f.indexOf("-")<0)&&(p.indexOf("-")>0&&f.indexOf("-")<0&&p.substring(0,p.indexOf("-"))===f||p.indexOf(f)===0&&f.length>1))return p})}),u||(u=this.getFallbackCodes(this.options.fallbackLng)[0]),u}getFallbackCodes(l,u){if(!l)return[];if(typeof l=="function"&&(l=l(u)),ae(l)&&(l=[l]),Array.isArray(l))return l;if(!u)return l.default||[];let r=l[u];return r||(r=l[this.getScriptPartFromCode(u)]),r||(r=l[this.formatLanguageCode(u)]),r||(r=l[this.getLanguagePartFromCode(u)]),r||(r=l.default),r||[]}toResolveHierarchy(l,u){const r=this.getFallbackCodes((u===!1?[]:u)||this.options.fallbackLng||[],l),c=[],f=p=>{p&&(this.isSupportedCode(p)?c.push(p):this.logger.warn(`rejecting language code not found in supportedLngs: ${p}`))};return ae(l)&&(l.indexOf("-")>-1||l.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(l)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(l)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(l))):ae(l)&&f(this.formatLanguageCode(l)),r.forEach(p=>{c.indexOf(p)<0&&f(this.formatLanguageCode(p))}),c}}const lp={zero:0,one:1,two:2,few:3,many:4,other:5},ip={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class iv{constructor(l,u={}){this.languageUtils=l,this.options=u,this.logger=Qt.create("pluralResolver"),this.pluralRulesCache={}}addRule(l,u){this.rules[l]=u}clearCache(){this.pluralRulesCache={}}getRule(l,u={}){const r=li(l==="dev"?"en":l),c=u.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:r,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let p;try{p=new Intl.PluralRules(r,{type:c})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ip;if(!l.match(/-|_/))return ip;const g=this.languageUtils.getLanguagePartFromCode(l);p=this.getRule(g,u)}return this.pluralRulesCache[f]=p,p}needsPlural(l,u={}){let r=this.getRule(l,u);return r||(r=this.getRule("dev",u)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(l,u,r={}){return this.getSuffixes(l,r).map(c=>`${u}${c}`)}getSuffixes(l,u={}){let r=this.getRule(l,u);return r||(r=this.getRule("dev",u)),r?r.resolvedOptions().pluralCategories.sort((c,f)=>lp[c]-lp[f]).map(c=>`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(l,u,r={}){const c=this.getRule(l,r);return c?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${c.select(u)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",u,r))}}const sp=(i,l,u,r=".",c=!0)=>{let f=Py(i,l,u);return!f&&c&&ae(u)&&(f=wo(i,u,r),f===void 0&&(f=wo(l,u,r))),f},ho=i=>i.replace(/\$/g,"$$$$");class sv{constructor(l={}){var u;this.logger=Qt.create("interpolator"),this.options=l,this.format=((u=l==null?void 0:l.interpolation)==null?void 0:u.format)||(r=>r),this.init(l)}init(l={}){l.interpolation||(l.interpolation={escapeValue:!0});const{escape:u,escapeValue:r,useRawValueToEscape:c,prefix:f,prefixEscaped:p,suffix:h,suffixEscaped:g,formatSeparator:d,unescapeSuffix:v,unescapePrefix:S,nestingPrefix:b,nestingPrefixEscaped:_,nestingSuffix:T,nestingSuffixEscaped:j,nestingOptionsSeparator:G,maxReplaces:B,alwaysFormat:q}=l.interpolation;this.escape=u!==void 0?u:Iy,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?Za(f):p||"{{",this.suffix=h?Za(h):g||"}}",this.formatSeparator=d||",",this.unescapePrefix=v?"":S||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=b?Za(b):_||Za("$t("),this.nestingSuffix=T?Za(T):j||Za(")"),this.nestingOptionsSeparator=G||",",this.maxReplaces=B||1e3,this.alwaysFormat=q!==void 0?q:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(u,r)=>(u==null?void 0:u.source)===r?(u.lastIndex=0,u):new RegExp(r,"g");this.regexp=l(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=l(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=l(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(l,u,r,c){var _;let f,p,h;const g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=T=>{if(T.indexOf(this.formatSeparator)<0){const q=sp(u,g,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(q,void 0,r,{...c,...u,interpolationkey:T}):q}const j=T.split(this.formatSeparator),G=j.shift().trim(),B=j.join(this.formatSeparator).trim();return this.format(sp(u,g,G,this.options.keySeparator,this.options.ignoreJSONStructure),B,r,{...c,...u,interpolationkey:G})};this.resetRegExp();const v=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,S=((_=c==null?void 0:c.interpolation)==null?void 0:_.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>ho(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?ho(this.escape(T)):ho(T)}].forEach(T=>{for(h=0;f=T.regex.exec(l);){const j=f[1].trim();if(p=d(j),p===void 0)if(typeof v=="function"){const B=v(l,f,c);p=ae(B)?B:""}else if(c&&Object.prototype.hasOwnProperty.call(c,j))p="";else if(S){p=f[0];continue}else this.logger.warn(`missed to pass in variable ${j} for interpolating ${l}`),p="";else!ae(p)&&!this.useRawValueToEscape&&(p=Fh(p));const G=T.safeValue(p);if(l=l.replace(f[0],G),S?(T.regex.lastIndex+=p.length,T.regex.lastIndex-=f[0].length):T.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),l}nest(l,u,r={}){let c,f,p;const h=(g,d)=>{const v=this.nestingOptionsSeparator;if(g.indexOf(v)<0)return g;const S=g.split(new RegExp(`${v}[ ]*{`));let b=`{${S[1]}`;g=S[0],b=this.interpolate(b,p);const _=b.match(/'/g),T=b.match(/"/g);(((_==null?void 0:_.length)??0)%2===0&&!T||T.length%2!==0)&&(b=b.replace(/'/g,'"'));try{p=JSON.parse(b),d&&(p={...d,...p})}catch(j){return this.logger.warn(`failed parsing options string in nesting for key ${g}`,j),`${g}${v}${b}`}return p.defaultValue&&p.defaultValue.indexOf(this.prefix)>-1&&delete p.defaultValue,g};for(;c=this.nestingRegexp.exec(l);){let g=[];p={...r},p=p.replace&&!ae(p.replace)?p.replace:p,p.applyPostProcessor=!1,delete p.defaultValue;let d=!1;if(c[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(c[1])){const v=c[1].split(this.formatSeparator).map(S=>S.trim());c[1]=v.shift(),g=v,d=!0}if(f=u(h.call(this,c[1].trim(),p),p),f&&c[0]===l&&!ae(f))return f;ae(f)||(f=Fh(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${l}`),f=""),d&&(f=g.reduce((v,S)=>this.format(v,S,r.lng,{...r,interpolationkey:c[1].trim()}),f.trim())),l=l.replace(c[0],f),this.regexp.lastIndex=0}return l}}const uv=i=>{let l=i.toLowerCase().trim();const u={};if(i.indexOf("(")>-1){const r=i.split("(");l=r[0].toLowerCase().trim();const c=r[1].substring(0,r[1].length-1);l==="currency"&&c.indexOf(":")<0?u.currency||(u.currency=c.trim()):l==="relativetime"&&c.indexOf(":")<0?u.range||(u.range=c.trim()):c.split(";").forEach(p=>{if(p){const[h,...g]=p.split(":"),d=g.join(":").trim().replace(/^'+|'+$/g,""),v=h.trim();u[v]||(u[v]=d),d==="false"&&(u[v]=!1),d==="true"&&(u[v]=!0),isNaN(d)||(u[v]=parseInt(d,10))}})}return{formatName:l,formatOptions:u}},up=i=>{const l={};return(u,r,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const p=r+JSON.stringify(f);let h=l[p];return h||(h=i(li(r),c),l[p]=h),h(u)}},rv=i=>(l,u,r)=>i(li(u),r)(l);class ov{constructor(l={}){this.logger=Qt.create("formatter"),this.options=l,this.init(l)}init(l,u={interpolation:{}}){this.formatSeparator=u.interpolation.formatSeparator||",";const r=u.cacheInBuiltFormats?up:rv;this.formats={number:r((c,f)=>{const p=new Intl.NumberFormat(c,{...f});return h=>p.format(h)}),currency:r((c,f)=>{const p=new Intl.NumberFormat(c,{...f,style:"currency"});return h=>p.format(h)}),datetime:r((c,f)=>{const p=new Intl.DateTimeFormat(c,{...f});return h=>p.format(h)}),relativetime:r((c,f)=>{const p=new Intl.RelativeTimeFormat(c,{...f});return h=>p.format(h,f.range||"day")}),list:r((c,f)=>{const p=new Intl.ListFormat(c,{...f});return h=>p.format(h)})}}add(l,u){this.formats[l.toLowerCase().trim()]=u}addCached(l,u){this.formats[l.toLowerCase().trim()]=up(u)}format(l,u,r,c={}){const f=u.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(h=>h.indexOf(")")>-1)){const h=f.findIndex(g=>g.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,h)].join(this.formatSeparator)}return f.reduce((h,g)=>{var S;const{formatName:d,formatOptions:v}=uv(g);if(this.formats[d]){let b=h;try{const _=((S=c==null?void 0:c.formatParams)==null?void 0:S[c.interpolationkey])||{},T=_.locale||_.lng||c.locale||c.lng||r;b=this.formats[d](h,T,{...v,...c,..._})}catch(_){this.logger.warn(_)}return b}else this.logger.warn(`there was no format function for ${d}`);return h},l)}}const cv=(i,l)=>{i.pending[l]!==void 0&&(delete i.pending[l],i.pendingCount--)};class fv extends Vs{constructor(l,u,r,c={}){var f,p;super(),this.backend=l,this.store=u,this.services=r,this.languageUtils=r.languageUtils,this.options=c,this.logger=Qt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],(p=(f=this.backend)==null?void 0:f.init)==null||p.call(f,r,c.backend,c)}queueLoad(l,u,r,c){const f={},p={},h={},g={};return l.forEach(d=>{let v=!0;u.forEach(S=>{const b=`${d}|${S}`;!r.reload&&this.store.hasResourceBundle(d,S)?this.state[b]=2:this.state[b]<0||(this.state[b]===1?p[b]===void 0&&(p[b]=!0):(this.state[b]=1,v=!1,p[b]===void 0&&(p[b]=!0),f[b]===void 0&&(f[b]=!0),g[S]===void 0&&(g[S]=!0)))}),v||(h[d]=!0)}),(Object.keys(f).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(p),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(g)}}loaded(l,u,r){const c=l.split("|"),f=c[0],p=c[1];u&&this.emit("failedLoading",f,p,u),!u&&r&&this.store.addResourceBundle(f,p,r,void 0,void 0,{skipCopy:!0}),this.state[l]=u?-1:2,u&&r&&(this.state[l]=0);const h={};this.queue.forEach(g=>{Fy(g.loaded,[f],p),cv(g,l),u&&g.errors.push(u),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(d=>{h[d]||(h[d]={});const v=g.loaded[d];v.length&&v.forEach(S=>{h[d][S]===void 0&&(h[d][S]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(g=>!g.done)}read(l,u,r,c=0,f=this.retryTimeout,p){if(!l.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:u,fcName:r,tried:c,wait:f,callback:p});return}this.readingCalls++;const h=(d,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const S=this.waitingReads.shift();this.read(S.lng,S.ns,S.fcName,S.tried,S.wait,S.callback)}if(d&&v&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,l,u,r,c+1,f*2,p)},f);return}p(d,v)},g=this.backend[r].bind(this.backend);if(g.length===2){try{const d=g(l,u);d&&typeof d.then=="function"?d.then(v=>h(null,v)).catch(h):h(null,d)}catch(d){h(d)}return}return g(l,u,h)}prepareLoading(l,u,r={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();ae(l)&&(l=this.languageUtils.toResolveHierarchy(l)),ae(u)&&(u=[u]);const f=this.queueLoad(l,u,r,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(p=>{this.loadOne(p)})}load(l,u,r){this.prepareLoading(l,u,{},r)}reload(l,u,r){this.prepareLoading(l,u,{reload:!0},r)}loadOne(l,u=""){const r=l.split("|"),c=r[0],f=r[1];this.read(c,f,"read",void 0,void 0,(p,h)=>{p&&this.logger.warn(`${u}loading namespace ${f} for language ${c} failed`,p),!p&&h&&this.logger.log(`${u}loaded namespace ${f} for language ${c}`,h),this.loaded(l,p,h)})}saveMissing(l,u,r,c,f,p={},h=()=>{}){var g,d,v,S,b;if((d=(g=this.services)==null?void 0:g.utils)!=null&&d.hasLoadedNamespace&&!((S=(v=this.services)==null?void 0:v.utils)!=null&&S.hasLoadedNamespace(u))){this.logger.warn(`did not save key "${r}" as the namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((b=this.backend)!=null&&b.create){const _={...p,isUpdate:f},T=this.backend.create.bind(this.backend);if(T.length<6)try{let j;T.length===5?j=T(l,u,r,c,_):j=T(l,u,r,c),j&&typeof j.then=="function"?j.then(G=>h(null,G)).catch(h):h(null,j)}catch(j){h(j)}else T(l,u,r,c,h,_)}!l||!l[0]||this.store.addResource(l[0],u,r,c)}}}const rp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let l={};if(typeof i[1]=="object"&&(l=i[1]),ae(i[1])&&(l.defaultValue=i[1]),ae(i[2])&&(l.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const u=i[3]||i[2];Object.keys(u).forEach(r=>{l[r]=u[r]})}return l},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),op=i=>{var l,u;return ae(i.ns)&&(i.ns=[i.ns]),ae(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),ae(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((u=(l=i.supportedLngs)==null?void 0:l.indexOf)==null?void 0:u.call(l,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},Os=()=>{},dv=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(u=>{typeof i[u]=="function"&&(i[u]=i[u].bind(i))})};class ii extends Vs{constructor(l={},u){if(super(),this.options=op(l),this.services={},this.logger=Qt,this.modules={external:[]},dv(this),u&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,u),this;setTimeout(()=>{this.init(l,u)},0)}}init(l={},u){this.isInitializing=!0,typeof l=="function"&&(u=l,l={}),l.defaultNS==null&&l.ns&&(ae(l.ns)?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));const r=rp();this.options={...r,...this.options,...op(l)},this.options.interpolation={...r.interpolation,...this.options.interpolation},l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator);const c=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Qt.init(c(this.modules.logger),this.options):Qt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=ov;const v=new ap(this.options);this.store=new ep(this.options.resources,this.options);const S=this.services;S.logger=Qt,S.resourceStore=this.store,S.languageUtils=v,S.pluralResolver=new iv(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(S.formatter=c(d),S.formatter.init(S,this.options),this.options.interpolation.format=S.formatter.format.bind(S.formatter)),S.interpolator=new sv(this.options),S.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},S.backendConnector=new fv(c(this.modules.backend),S.resourceStore,S,this.options),S.backendConnector.on("*",(b,..._)=>{this.emit(b,..._)}),this.modules.languageDetector&&(S.languageDetector=c(this.modules.languageDetector),S.languageDetector.init&&S.languageDetector.init(S,this.options.detection,this.options)),this.modules.i18nFormat&&(S.i18nFormat=c(this.modules.i18nFormat),S.i18nFormat.init&&S.i18nFormat.init(this)),this.translator=new Hs(this.services,this.options),this.translator.on("*",(b,..._)=>{this.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,u||(u=Os),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...v)=>this.store[d](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...v)=>(this.store[d](...v),this)});const h=Fl(),g=()=>{const d=(v,S)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(S),u(v,S)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?g():setTimeout(g,0),h}loadResources(l,u=Os){var f,p;let r=u;const c=ae(l)?l:this.language;if(typeof l=="function"&&(r=l),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const h=[],g=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(S=>{S!=="cimode"&&h.indexOf(S)<0&&h.push(S)})};c?g(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>g(v)),(p=(f=this.options.preload)==null?void 0:f.forEach)==null||p.call(f,d=>g(d)),this.services.backendConnector.load(h,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(d)})}else r(null)}reloadResources(l,u,r){const c=Fl();return typeof l=="function"&&(r=l,l=void 0),typeof u=="function"&&(r=u,u=void 0),l||(l=this.languages),u||(u=this.options.ns),r||(r=Os),this.services.backendConnector.reload(l,u,f=>{c.resolve(),r(f)}),c}use(l){if(!l)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!l.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return l.type==="backend"&&(this.modules.backend=l),(l.type==="logger"||l.log&&l.warn&&l.error)&&(this.modules.logger=l),l.type==="languageDetector"&&(this.modules.languageDetector=l),l.type==="i18nFormat"&&(this.modules.i18nFormat=l),l.type==="postProcessor"&&Bp.addPostProcessor(l),l.type==="formatter"&&(this.modules.formatter=l),l.type==="3rdParty"&&this.modules.external.push(l),this}setResolvedLanguage(l){if(!(!l||!this.languages)&&!(["cimode","dev"].indexOf(l)>-1)){for(let u=0;u<this.languages.length;u++){const r=this.languages[u];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(l)<0&&this.store.hasLanguageSomeTranslations(l)&&(this.resolvedLanguage=l,this.languages.unshift(l))}}changeLanguage(l,u){this.isLanguageChangingTo=l;const r=Fl();this.emit("languageChanging",l);const c=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},f=(h,g)=>{g?this.isLanguageChangingTo===l&&(c(g),this.translator.changeLanguage(g),this.isLanguageChangingTo=void 0,this.emit("languageChanged",g),this.logger.log("languageChanged",g)):this.isLanguageChangingTo=void 0,r.resolve((...d)=>this.t(...d)),u&&u(h,(...d)=>this.t(...d))},p=h=>{var v,S;!l&&!h&&this.services.languageDetector&&(h=[]);const g=ae(h)?h:h&&h[0],d=this.store.hasLanguageSomeTranslations(g)?g:this.services.languageUtils.getBestMatchFromCodes(ae(h)?[h]:h);d&&(this.language||c(d),this.translator.language||this.translator.changeLanguage(d),(S=(v=this.services.languageDetector)==null?void 0:v.cacheUserLanguage)==null||S.call(v,d)),this.loadResources(d,b=>{f(b,d)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!l&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(l),r}getFixedT(l,u,r){const c=(f,p,...h)=>{let g;typeof p!="object"?g=this.options.overloadTranslationOptionHandler([f,p].concat(h)):g={...p},g.lng=g.lng||c.lng,g.lngs=g.lngs||c.lngs,g.ns=g.ns||c.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||r||c.keyPrefix);const d=this.options.keySeparator||".";let v;return g.keyPrefix&&Array.isArray(f)?v=f.map(S=>`${g.keyPrefix}${d}${S}`):v=g.keyPrefix?`${g.keyPrefix}${d}${f}`:f,this.t(v,g)};return ae(l)?c.lng=l:c.lngs=l,c.ns=u,c.keyPrefix=r,c}t(...l){var u;return(u=this.translator)==null?void 0:u.translate(...l)}exists(...l){var u;return(u=this.translator)==null?void 0:u.exists(...l)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l,u={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=u.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const p=(h,g)=>{const d=this.services.backendConnector.state[`${h}|${g}`];return d===-1||d===0||d===2};if(u.precheck){const h=u.precheck(this,p);if(h!==void 0)return h}return!!(this.hasResourceBundle(r,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(r,l)&&(!c||p(f,l)))}loadNamespaces(l,u){const r=Fl();return this.options.ns?(ae(l)&&(l=[l]),l.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{r.resolve(),u&&u(c)}),r):(u&&u(),Promise.resolve())}loadLanguages(l,u){const r=Fl();ae(l)&&(l=[l]);const c=this.options.preload||[],f=l.filter(p=>c.indexOf(p)<0&&this.services.languageUtils.isSupportedCode(p));return f.length?(this.options.preload=c.concat(f),this.loadResources(p=>{r.resolve(),u&&u(p)}),r):(u&&u(),Promise.resolve())}dir(l){var c,f;if(l||(l=this.resolvedLanguage||(((c=this.languages)==null?void 0:c.length)>0?this.languages[0]:this.language)),!l)return"rtl";const u=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((f=this.services)==null?void 0:f.languageUtils)||new ap(rp());return u.indexOf(r.getLanguagePartFromCode(l))>-1||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(l={},u){return new ii(l,u)}cloneInstance(l={},u=Os){const r=l.forkResourceStore;r&&delete l.forkResourceStore;const c={...this.options,...l,isClone:!0},f=new ii(c);if((l.debug!==void 0||l.prefix!==void 0)&&(f.logger=f.logger.clone(l)),["store","services","language"].forEach(h=>{f[h]=this[h]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},r){const h=Object.keys(this.store.data).reduce((g,d)=>(g[d]={...this.store.data[d]},g[d]=Object.keys(g[d]).reduce((v,S)=>(v[S]={...g[d][S]},v),g[d]),g),{});f.store=new ep(h,c),f.services.resourceStore=f.store}return f.translator=new Hs(f.services,c),f.translator.on("*",(h,...g)=>{f.emit(h,...g)}),f.init(c,u),f.translator.options=c,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const nt=ii.createInstance();nt.createInstance=ii.createInstance;nt.createInstance;nt.dir;nt.init;nt.loadResources;nt.reloadResources;nt.use;nt.changeLanguage;nt.getFixedT;nt.t;nt.exists;nt.setDefaultNamespace;nt.hasLoadedNamespace;nt.loadNamespaces;nt.loadLanguages;var po={exports:{}},ue={};/**
9
+ */var Kh;function Xy(){if(Kh)return Jl;Kh=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(r,c,f){var p=null;if(f!==void 0&&(p=""+f),c.key!==void 0&&(p=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:i,type:r,key:p,ref:c!==void 0?c:null,props:f}}return Jl.Fragment=l,Jl.jsx=s,Jl.jsxs=s,Jl}var Jh;function Zy(){return Jh||(Jh=1,fo.exports=Xy()),fo.exports}var E=Zy();const ae=i=>typeof i=="string",Fl=()=>{let i,l;const s=new Promise((r,c)=>{i=r,l=c});return s.resolve=i,s.reject=l,s},Fh=i=>i==null?"":""+i,Ky=(i,l,s)=>{i.forEach(r=>{l[r]&&(s[r]=l[r])})},Jy=/###/g,Wh=i=>i&&i.indexOf("###")>-1?i.replace(Jy,"."):i,Ph=i=>!i||ae(i),ni=(i,l,s)=>{const r=ae(l)?l.split("."):l;let c=0;for(;c<r.length-1;){if(Ph(i))return{};const f=Wh(r[c]);!i[f]&&s&&(i[f]=new s),Object.prototype.hasOwnProperty.call(i,f)?i=i[f]:i={},++c}return Ph(i)?{}:{obj:i,k:Wh(r[c])}},Ih=(i,l,s)=>{const{obj:r,k:c}=ni(i,l,Object);if(r!==void 0||l.length===1){r[c]=s;return}let f=l[l.length-1],p=l.slice(0,l.length-1),h=ni(i,p,Object);for(;h.obj===void 0&&p.length;)f=`${p[p.length-1]}.${f}`,p=p.slice(0,p.length-1),h=ni(i,p,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${f}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=s},Fy=(i,l,s,r)=>{const{obj:c,k:f}=ni(i,l,Object);c[f]=c[f]||[],c[f].push(s)},Lu=(i,l)=>{const{obj:s,k:r}=ni(i,l);if(s&&Object.prototype.hasOwnProperty.call(s,r))return s[r]},Wy=(i,l,s)=>{const r=Lu(i,s);return r!==void 0?r:Lu(l,s)},Hp=(i,l,s)=>{for(const r in l)r!=="__proto__"&&r!=="constructor"&&(r in i?ae(i[r])||i[r]instanceof String||ae(l[r])||l[r]instanceof String?s&&(i[r]=l[r]):Hp(i[r],l[r],s):i[r]=l[r]);return i},Za=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Py={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Iy=i=>ae(i)?i.replace(/[&<>"'\/]/g,l=>Py[l]):i;class ev{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const s=this.regExpMap.get(l);if(s!==void 0)return s;const r=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,r),this.regExpQueue.push(l),r}}const tv=[" ",",","?","!",";"],nv=new ev(20),av=(i,l,s)=>{l=l||"",s=s||"";const r=tv.filter(p=>l.indexOf(p)<0&&s.indexOf(p)<0);if(r.length===0)return!0;const c=nv.getRegExp(`(${r.map(p=>p==="?"?"\\?":p).join("|")})`);let f=!c.test(i);if(!f){const p=i.indexOf(s);p>0&&!c.test(i.substring(0,p))&&(f=!0)}return f},wo=(i,l,s=".")=>{if(!i)return;if(i[l])return Object.prototype.hasOwnProperty.call(i,l)?i[l]:void 0;const r=l.split(s);let c=i;for(let f=0;f<r.length;){if(!c||typeof c!="object")return;let p,h="";for(let g=f;g<r.length;++g)if(g!==f&&(h+=s),h+=r[g],p=c[h],p!==void 0){if(["string","number","boolean"].indexOf(typeof p)>-1&&g<r.length-1)continue;f+=g-f+1;break}c=p}return c},li=i=>i==null?void 0:i.replace("_","-"),lv={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,l){var s,r;(r=(s=console==null?void 0:console[i])==null?void 0:s.apply)==null||r.call(s,console,l)}};class Uu{constructor(l,s={}){this.init(l,s)}init(l,s={}){this.prefix=s.prefix||"i18next:",this.logger=l||lv,this.options=s,this.debug=s.debug}log(...l){return this.forward(l,"log","",!0)}warn(...l){return this.forward(l,"warn","",!0)}error(...l){return this.forward(l,"error","")}deprecate(...l){return this.forward(l,"warn","WARNING DEPRECATED: ",!0)}forward(l,s,r,c){return c&&!this.debug?null:(ae(l[0])&&(l[0]=`${r}${this.prefix} ${l[0]}`),this.logger[s](l))}create(l){return new Uu(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new Uu(this.logger,l)}}var Qt=new Uu;class Vu{constructor(){this.observers={}}on(l,s){return l.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const c=this.observers[r].get(s)||0;this.observers[r].set(s,c+1)}),this}off(l,s){if(this.observers[l]){if(!s){delete this.observers[l];return}this.observers[l].delete(s)}}emit(l,...s){this.observers[l]&&Array.from(this.observers[l].entries()).forEach(([c,f])=>{for(let p=0;p<f;p++)c(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,f])=>{for(let p=0;p<f;p++)c.apply(c,[l,...s])})}}class ep extends Vu{constructor(l,s={ns:["translation"],defaultNS:"translation"}){super(),this.data=l||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(l){this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}removeNamespaces(l){const s=this.options.ns.indexOf(l);s>-1&&this.options.ns.splice(s,1)}getResource(l,s,r,c={}){var d,y;const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;l.indexOf(".")>-1?h=l.split("."):(h=[l,s],r&&(Array.isArray(r)?h.push(...r):ae(r)&&f?h.push(...r.split(f)):h.push(r)));const g=Lu(this.data,h);return!g&&!s&&!r&&l.indexOf(".")>-1&&(l=h[0],s=h[1],r=h.slice(2).join(".")),g||!p||!ae(r)?g:wo((y=(d=this.data)==null?void 0:d[l])==null?void 0:y[s],r,f)}addResource(l,s,r,c,f={silent:!1}){const p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let h=[l,s];r&&(h=h.concat(p?r.split(p):r)),l.indexOf(".")>-1&&(h=l.split("."),c=s,s=h[1]),this.addNamespaces(s),Ih(this.data,h,c),f.silent||this.emit("added",l,s,r,c)}addResources(l,s,r,c={silent:!1}){for(const f in r)(ae(r[f])||Array.isArray(r[f]))&&this.addResource(l,s,f,r[f],{silent:!0});c.silent||this.emit("added",l,s,r)}addResourceBundle(l,s,r,c,f,p={silent:!1,skipCopy:!1}){let h=[l,s];l.indexOf(".")>-1&&(h=l.split("."),c=r,r=s,s=h[1]),this.addNamespaces(s);let g=Lu(this.data,h)||{};p.skipCopy||(r=JSON.parse(JSON.stringify(r))),c?Hp(g,r,f):g={...g,...r},Ih(this.data,h,g),p.silent||this.emit("added",l,s,r)}removeResourceBundle(l,s){this.hasResourceBundle(l,s)&&delete this.data[l][s],this.removeNamespaces(s),this.emit("removed",l,s)}hasResourceBundle(l,s){return this.getResource(l,s)!==void 0}getResourceBundle(l,s){return s||(s=this.options.defaultNS),this.getResource(l,s)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const s=this.getDataByLanguage(l);return!!(s&&Object.keys(s)||[]).find(c=>s[c]&&Object.keys(s[c]).length>0)}toJSON(){return this.data}}var Bp={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,l,s,r,c){return i.forEach(f=>{var p;l=((p=this.processors[f])==null?void 0:p.process(l,s,r,c))??l}),l}};const tp={},np=i=>!ae(i)&&typeof i!="boolean"&&typeof i!="number";class Hu extends Vu{constructor(l,s={}){super(),Ky(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qt.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l,s={interpolation:{}}){const r={...s};if(l==null)return!1;const c=this.resolve(l,r);return(c==null?void 0:c.res)!==void 0}extractFromKey(l,s){let r=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let f=s.ns||this.options.defaultNS||[];const p=r&&l.indexOf(r)>-1,h=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!av(l,r,c);if(p&&!h){const g=l.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:l,namespaces:ae(f)?[f]:f};const d=l.split(r);(r!==c||r===c&&this.options.ns.indexOf(d[0])>-1)&&(f=d.shift()),l=d.join(c)}return{key:l,namespaces:ae(f)?[f]:f}}translate(l,s,r){let c=typeof s=="object"?{...s}:s;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(c={...c}),c||(c={}),l==null)return"";Array.isArray(l)||(l=[String(l)]);const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,p=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:h,namespaces:g}=this.extractFromKey(l[l.length-1],c),d=g[g.length-1];let y=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const S=c.lng||this.language,b=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((S==null?void 0:S.toLowerCase())==="cimode")return b?f?{res:`${d}${y}${h}`,usedKey:h,exactUsedKey:h,usedLng:S,usedNS:d,usedParams:this.getUsedParamsDetails(c)}:`${d}${y}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:S,usedNS:d,usedParams:this.getUsedParamsDetails(c)}:h;const _=this.resolve(l,c);let T=_==null?void 0:_.res;const M=(_==null?void 0:_.usedKey)||h,G=(_==null?void 0:_.exactUsedKey)||h,B=["[object Number]","[object Function]","[object RegExp]"],q=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,F=c.count!==void 0&&!ae(c.count),Z=Hu.hasDefaultValue(c),de=F?this.pluralResolver.getSuffix(S,c.count,c):"",le=c.ordinal&&F?this.pluralResolver.getSuffix(S,c.count,{ordinal:!1}):"",ie=F&&!c.ordinal&&c.count===0,Q=ie&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${de}`]||c[`defaultValue${le}`]||c.defaultValue;let ee=T;X&&!T&&Z&&(ee=Q);const he=np(ee),De=Object.prototype.toString.apply(ee);if(X&&ee&&he&&B.indexOf(De)<0&&!(ae(q)&&Array.isArray(ee))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(M,ee,{...c,ns:g}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(_.res=Ue,_.usedParams=this.getUsedParamsDetails(c),_):Ue}if(p){const Ue=Array.isArray(ee),Ce=Ue?[]:{},$e=Ue?G:M;for(const D in ee)if(Object.prototype.hasOwnProperty.call(ee,D)){const $=`${$e}${p}${D}`;Z&&!T?Ce[D]=this.translate($,{...c,defaultValue:np(Q)?Q[D]:void 0,joinArrays:!1,ns:g}):Ce[D]=this.translate($,{...c,joinArrays:!1,ns:g}),Ce[D]===$&&(Ce[D]=ee[D])}T=Ce}}else if(X&&ae(q)&&Array.isArray(T))T=T.join(q),T&&(T=this.extendTranslation(T,l,c,r));else{let Ue=!1,Ce=!1;!this.isValidLookup(T)&&Z&&(Ue=!0,T=Q),this.isValidLookup(T)||(Ce=!0,T=h);const D=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Ce?void 0:T,$=Z&&Q!==T&&this.options.updateMissing;if(Ce||Ue||$){if(this.logger.log($?"updateKey":"missingKey",S,d,h,$?Q:T),p){const U=this.resolve(h,{...c,keySeparator:!1});U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const me=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if(this.options.saveMissingTo==="fallback"&&me&&me[0])for(let U=0;U<me.length;U++)W.push(me[U]);else this.options.saveMissingTo==="all"?W=this.languageUtils.toResolveHierarchy(c.lng||this.language):W.push(c.lng||this.language);const R=(U,V,Y)=>{var pe;const P=Z&&Y!==T?Y:D;this.options.missingKeyHandler?this.options.missingKeyHandler(U,d,V,P,$,c):(pe=this.backendConnector)!=null&&pe.saveMissing&&this.backendConnector.saveMissing(U,d,V,P,$,c),this.emit("missingKey",U,d,V,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?W.forEach(U=>{const V=this.pluralResolver.getSuffixes(U,c);ie&&c[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(Y=>{R([U],h+Y,c[`defaultValue${Y}`]||Q)})}):R(W,h,Q))}T=this.extendTranslation(T,l,c,_,r),Ce&&T===h&&this.options.appendNamespaceToMissingKey&&(T=`${d}${y}${h}`),(Ce||Ue)&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${y}${h}`:h,Ue?T:void 0,c))}return f?(_.res=T,_.usedParams=this.getUsedParamsDetails(c),_):T}extendTranslation(l,s,r,c,f){var g,d;if((g=this.i18nFormat)!=null&&g.parse)l=this.i18nFormat.parse(l,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const y=ae(l)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let S;if(y){const _=l.match(this.interpolator.nestingRegexp);S=_&&_.length}let b=r.replace&&!ae(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),l=this.interpolator.interpolate(l,b,r.lng||this.language||c.usedLng,r),y){const _=l.match(this.interpolator.nestingRegexp),T=_&&_.length;S<T&&(r.nest=!1)}!r.lng&&c&&c.res&&(r.lng=this.language||c.usedLng),r.nest!==!1&&(l=this.interpolator.nest(l,(..._)=>(f==null?void 0:f[0])===_[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${_[0]} in key: ${s[0]}`),null):this.translate(..._,s),r)),r.interpolation&&this.interpolator.reset()}const p=r.postProcess||this.options.postProcess,h=ae(p)?[p]:p;return l!=null&&(h!=null&&h.length)&&r.applyPostProcessor!==!1&&(l=Bp.handle(h,l,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),l}resolve(l,s={}){let r,c,f,p,h;return ae(l)&&(l=[l]),l.forEach(g=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(g,s),y=d.key;c=y;let S=d.namespaces;this.options.fallbackNS&&(S=S.concat(this.options.fallbackNS));const b=s.count!==void 0&&!ae(s.count),_=b&&!s.ordinal&&s.count===0,T=s.context!==void 0&&(ae(s.context)||typeof s.context=="number")&&s.context!=="",M=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);S.forEach(G=>{var B,q;this.isValidLookup(r)||(h=G,!tp[`${M[0]}-${G}`]&&((B=this.utils)!=null&&B.hasLoadedNamespace)&&!((q=this.utils)!=null&&q.hasLoadedNamespace(h))&&(tp[`${M[0]}-${G}`]=!0,this.logger.warn(`key "${c}" for languages "${M.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),M.forEach(X=>{var de;if(this.isValidLookup(r))return;p=X;const F=[y];if((de=this.i18nFormat)!=null&&de.addLookupKeys)this.i18nFormat.addLookupKeys(F,y,X,G,s);else{let le;b&&(le=this.pluralResolver.getSuffix(X,s.count,s));const ie=`${this.options.pluralSeparator}zero`,Q=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(F.push(y+le),s.ordinal&&le.indexOf(Q)===0&&F.push(y+le.replace(Q,this.options.pluralSeparator)),_&&F.push(y+ie)),T){const ee=`${y}${this.options.contextSeparator}${s.context}`;F.push(ee),b&&(F.push(ee+le),s.ordinal&&le.indexOf(Q)===0&&F.push(ee+le.replace(Q,this.options.pluralSeparator)),_&&F.push(ee+ie))}}let Z;for(;Z=F.pop();)this.isValidLookup(r)||(f=Z,r=this.getResource(X,G,Z,s))}))})}),{res:r,usedKey:c,exactUsedKey:f,usedLng:p,usedNS:h}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,s,r,c={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(l,s,r,c):this.resourceStore.getResource(l,s,r,c)}getUsedParamsDetails(l={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=l.replace&&!ae(l.replace);let c=r?l.replace:l;if(r&&typeof l.count<"u"&&(c.count=l.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!r){c={...c};for(const f of s)delete c[f]}return c}static hasDefaultValue(l){const s="defaultValue";for(const r in l)if(Object.prototype.hasOwnProperty.call(l,r)&&s===r.substring(0,s.length)&&l[r]!==void 0)return!0;return!1}}class ap{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(l){if(l=li(l),!l||l.indexOf("-")<0)return null;const s=l.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(l){if(l=li(l),!l||l.indexOf("-")<0)return l;const s=l.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(l){if(ae(l)&&l.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(l)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?l.toLowerCase():l)}return this.options.cleanCode||this.options.lowerCaseLng?l.toLowerCase():l}isSupportedCode(l){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(l=this.getLanguagePartFromCode(l)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(l)>-1}getBestMatchFromCodes(l){if(!l)return null;let s;return l.forEach(r=>{if(s)return;const c=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(c))&&(s=c)}),!s&&this.options.supportedLngs&&l.forEach(r=>{if(s)return;const c=this.getScriptPartFromCode(r);if(this.isSupportedCode(c))return s=c;const f=this.getLanguagePartFromCode(r);if(this.isSupportedCode(f))return s=f;s=this.options.supportedLngs.find(p=>{if(p===f)return p;if(!(p.indexOf("-")<0&&f.indexOf("-")<0)&&(p.indexOf("-")>0&&f.indexOf("-")<0&&p.substring(0,p.indexOf("-"))===f||p.indexOf(f)===0&&f.length>1))return p})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(l,s){if(!l)return[];if(typeof l=="function"&&(l=l(s)),ae(l)&&(l=[l]),Array.isArray(l))return l;if(!s)return l.default||[];let r=l[s];return r||(r=l[this.getScriptPartFromCode(s)]),r||(r=l[this.formatLanguageCode(s)]),r||(r=l[this.getLanguagePartFromCode(s)]),r||(r=l.default),r||[]}toResolveHierarchy(l,s){const r=this.getFallbackCodes((s===!1?[]:s)||this.options.fallbackLng||[],l),c=[],f=p=>{p&&(this.isSupportedCode(p)?c.push(p):this.logger.warn(`rejecting language code not found in supportedLngs: ${p}`))};return ae(l)&&(l.indexOf("-")>-1||l.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(l)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(l)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(l))):ae(l)&&f(this.formatLanguageCode(l)),r.forEach(p=>{c.indexOf(p)<0&&f(this.formatLanguageCode(p))}),c}}const lp={zero:0,one:1,two:2,few:3,many:4,other:5},ip={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class iv{constructor(l,s={}){this.languageUtils=l,this.options=s,this.logger=Qt.create("pluralResolver"),this.pluralRulesCache={}}addRule(l,s){this.rules[l]=s}clearCache(){this.pluralRulesCache={}}getRule(l,s={}){const r=li(l==="dev"?"en":l),c=s.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:r,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let p;try{p=new Intl.PluralRules(r,{type:c})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ip;if(!l.match(/-|_/))return ip;const g=this.languageUtils.getLanguagePartFromCode(l);p=this.getRule(g,s)}return this.pluralRulesCache[f]=p,p}needsPlural(l,s={}){let r=this.getRule(l,s);return r||(r=this.getRule("dev",s)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(l,s,r={}){return this.getSuffixes(l,r).map(c=>`${s}${c}`)}getSuffixes(l,s={}){let r=this.getRule(l,s);return r||(r=this.getRule("dev",s)),r?r.resolvedOptions().pluralCategories.sort((c,f)=>lp[c]-lp[f]).map(c=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(l,s,r={}){const c=this.getRule(l,r);return c?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${c.select(s)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",s,r))}}const up=(i,l,s,r=".",c=!0)=>{let f=Wy(i,l,s);return!f&&c&&ae(s)&&(f=wo(i,s,r),f===void 0&&(f=wo(l,s,r))),f},ho=i=>i.replace(/\$/g,"$$$$");class uv{constructor(l={}){var s;this.logger=Qt.create("interpolator"),this.options=l,this.format=((s=l==null?void 0:l.interpolation)==null?void 0:s.format)||(r=>r),this.init(l)}init(l={}){l.interpolation||(l.interpolation={escapeValue:!0});const{escape:s,escapeValue:r,useRawValueToEscape:c,prefix:f,prefixEscaped:p,suffix:h,suffixEscaped:g,formatSeparator:d,unescapeSuffix:y,unescapePrefix:S,nestingPrefix:b,nestingPrefixEscaped:_,nestingSuffix:T,nestingSuffixEscaped:M,nestingOptionsSeparator:G,maxReplaces:B,alwaysFormat:q}=l.interpolation;this.escape=s!==void 0?s:Iy,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?Za(f):p||"{{",this.suffix=h?Za(h):g||"}}",this.formatSeparator=d||",",this.unescapePrefix=y?"":S||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=b?Za(b):_||Za("$t("),this.nestingSuffix=T?Za(T):M||Za(")"),this.nestingOptionsSeparator=G||",",this.maxReplaces=B||1e3,this.alwaysFormat=q!==void 0?q:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(s,r)=>(s==null?void 0:s.source)===r?(s.lastIndex=0,s):new RegExp(r,"g");this.regexp=l(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=l(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=l(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(l,s,r,c){var _;let f,p,h;const g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=T=>{if(T.indexOf(this.formatSeparator)<0){const q=up(s,g,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(q,void 0,r,{...c,...s,interpolationkey:T}):q}const M=T.split(this.formatSeparator),G=M.shift().trim(),B=M.join(this.formatSeparator).trim();return this.format(up(s,g,G,this.options.keySeparator,this.options.ignoreJSONStructure),B,r,{...c,...s,interpolationkey:G})};this.resetRegExp();const y=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,S=((_=c==null?void 0:c.interpolation)==null?void 0:_.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>ho(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?ho(this.escape(T)):ho(T)}].forEach(T=>{for(h=0;f=T.regex.exec(l);){const M=f[1].trim();if(p=d(M),p===void 0)if(typeof y=="function"){const B=y(l,f,c);p=ae(B)?B:""}else if(c&&Object.prototype.hasOwnProperty.call(c,M))p="";else if(S){p=f[0];continue}else this.logger.warn(`missed to pass in variable ${M} for interpolating ${l}`),p="";else!ae(p)&&!this.useRawValueToEscape&&(p=Fh(p));const G=T.safeValue(p);if(l=l.replace(f[0],G),S?(T.regex.lastIndex+=p.length,T.regex.lastIndex-=f[0].length):T.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),l}nest(l,s,r={}){let c,f,p;const h=(g,d)=>{const y=this.nestingOptionsSeparator;if(g.indexOf(y)<0)return g;const S=g.split(new RegExp(`${y}[ ]*{`));let b=`{${S[1]}`;g=S[0],b=this.interpolate(b,p);const _=b.match(/'/g),T=b.match(/"/g);(((_==null?void 0:_.length)??0)%2===0&&!T||T.length%2!==0)&&(b=b.replace(/'/g,'"'));try{p=JSON.parse(b),d&&(p={...d,...p})}catch(M){return this.logger.warn(`failed parsing options string in nesting for key ${g}`,M),`${g}${y}${b}`}return p.defaultValue&&p.defaultValue.indexOf(this.prefix)>-1&&delete p.defaultValue,g};for(;c=this.nestingRegexp.exec(l);){let g=[];p={...r},p=p.replace&&!ae(p.replace)?p.replace:p,p.applyPostProcessor=!1,delete p.defaultValue;let d=!1;if(c[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(c[1])){const y=c[1].split(this.formatSeparator).map(S=>S.trim());c[1]=y.shift(),g=y,d=!0}if(f=s(h.call(this,c[1].trim(),p),p),f&&c[0]===l&&!ae(f))return f;ae(f)||(f=Fh(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${l}`),f=""),d&&(f=g.reduce((y,S)=>this.format(y,S,r.lng,{...r,interpolationkey:c[1].trim()}),f.trim())),l=l.replace(c[0],f),this.regexp.lastIndex=0}return l}}const sv=i=>{let l=i.toLowerCase().trim();const s={};if(i.indexOf("(")>-1){const r=i.split("(");l=r[0].toLowerCase().trim();const c=r[1].substring(0,r[1].length-1);l==="currency"&&c.indexOf(":")<0?s.currency||(s.currency=c.trim()):l==="relativetime"&&c.indexOf(":")<0?s.range||(s.range=c.trim()):c.split(";").forEach(p=>{if(p){const[h,...g]=p.split(":"),d=g.join(":").trim().replace(/^'+|'+$/g,""),y=h.trim();s[y]||(s[y]=d),d==="false"&&(s[y]=!1),d==="true"&&(s[y]=!0),isNaN(d)||(s[y]=parseInt(d,10))}})}return{formatName:l,formatOptions:s}},sp=i=>{const l={};return(s,r,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const p=r+JSON.stringify(f);let h=l[p];return h||(h=i(li(r),c),l[p]=h),h(s)}},rv=i=>(l,s,r)=>i(li(s),r)(l);class ov{constructor(l={}){this.logger=Qt.create("formatter"),this.options=l,this.init(l)}init(l,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const r=s.cacheInBuiltFormats?sp:rv;this.formats={number:r((c,f)=>{const p=new Intl.NumberFormat(c,{...f});return h=>p.format(h)}),currency:r((c,f)=>{const p=new Intl.NumberFormat(c,{...f,style:"currency"});return h=>p.format(h)}),datetime:r((c,f)=>{const p=new Intl.DateTimeFormat(c,{...f});return h=>p.format(h)}),relativetime:r((c,f)=>{const p=new Intl.RelativeTimeFormat(c,{...f});return h=>p.format(h,f.range||"day")}),list:r((c,f)=>{const p=new Intl.ListFormat(c,{...f});return h=>p.format(h)})}}add(l,s){this.formats[l.toLowerCase().trim()]=s}addCached(l,s){this.formats[l.toLowerCase().trim()]=sp(s)}format(l,s,r,c={}){const f=s.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(h=>h.indexOf(")")>-1)){const h=f.findIndex(g=>g.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,h)].join(this.formatSeparator)}return f.reduce((h,g)=>{var S;const{formatName:d,formatOptions:y}=sv(g);if(this.formats[d]){let b=h;try{const _=((S=c==null?void 0:c.formatParams)==null?void 0:S[c.interpolationkey])||{},T=_.locale||_.lng||c.locale||c.lng||r;b=this.formats[d](h,T,{...y,...c,..._})}catch(_){this.logger.warn(_)}return b}else this.logger.warn(`there was no format function for ${d}`);return h},l)}}const cv=(i,l)=>{i.pending[l]!==void 0&&(delete i.pending[l],i.pendingCount--)};class fv extends Vu{constructor(l,s,r,c={}){var f,p;super(),this.backend=l,this.store=s,this.services=r,this.languageUtils=r.languageUtils,this.options=c,this.logger=Qt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],(p=(f=this.backend)==null?void 0:f.init)==null||p.call(f,r,c.backend,c)}queueLoad(l,s,r,c){const f={},p={},h={},g={};return l.forEach(d=>{let y=!0;s.forEach(S=>{const b=`${d}|${S}`;!r.reload&&this.store.hasResourceBundle(d,S)?this.state[b]=2:this.state[b]<0||(this.state[b]===1?p[b]===void 0&&(p[b]=!0):(this.state[b]=1,y=!1,p[b]===void 0&&(p[b]=!0),f[b]===void 0&&(f[b]=!0),g[S]===void 0&&(g[S]=!0)))}),y||(h[d]=!0)}),(Object.keys(f).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(p),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(g)}}loaded(l,s,r){const c=l.split("|"),f=c[0],p=c[1];s&&this.emit("failedLoading",f,p,s),!s&&r&&this.store.addResourceBundle(f,p,r,void 0,void 0,{skipCopy:!0}),this.state[l]=s?-1:2,s&&r&&(this.state[l]=0);const h={};this.queue.forEach(g=>{Fy(g.loaded,[f],p),cv(g,l),s&&g.errors.push(s),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(d=>{h[d]||(h[d]={});const y=g.loaded[d];y.length&&y.forEach(S=>{h[d][S]===void 0&&(h[d][S]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(g=>!g.done)}read(l,s,r,c=0,f=this.retryTimeout,p){if(!l.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:s,fcName:r,tried:c,wait:f,callback:p});return}this.readingCalls++;const h=(d,y)=>{if(this.readingCalls--,this.waitingReads.length>0){const S=this.waitingReads.shift();this.read(S.lng,S.ns,S.fcName,S.tried,S.wait,S.callback)}if(d&&y&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,l,s,r,c+1,f*2,p)},f);return}p(d,y)},g=this.backend[r].bind(this.backend);if(g.length===2){try{const d=g(l,s);d&&typeof d.then=="function"?d.then(y=>h(null,y)).catch(h):h(null,d)}catch(d){h(d)}return}return g(l,s,h)}prepareLoading(l,s,r={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();ae(l)&&(l=this.languageUtils.toResolveHierarchy(l)),ae(s)&&(s=[s]);const f=this.queueLoad(l,s,r,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(p=>{this.loadOne(p)})}load(l,s,r){this.prepareLoading(l,s,{},r)}reload(l,s,r){this.prepareLoading(l,s,{reload:!0},r)}loadOne(l,s=""){const r=l.split("|"),c=r[0],f=r[1];this.read(c,f,"read",void 0,void 0,(p,h)=>{p&&this.logger.warn(`${s}loading namespace ${f} for language ${c} failed`,p),!p&&h&&this.logger.log(`${s}loaded namespace ${f} for language ${c}`,h),this.loaded(l,p,h)})}saveMissing(l,s,r,c,f,p={},h=()=>{}){var g,d,y,S,b;if((d=(g=this.services)==null?void 0:g.utils)!=null&&d.hasLoadedNamespace&&!((S=(y=this.services)==null?void 0:y.utils)!=null&&S.hasLoadedNamespace(s))){this.logger.warn(`did not save key "${r}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((b=this.backend)!=null&&b.create){const _={...p,isUpdate:f},T=this.backend.create.bind(this.backend);if(T.length<6)try{let M;T.length===5?M=T(l,s,r,c,_):M=T(l,s,r,c),M&&typeof M.then=="function"?M.then(G=>h(null,G)).catch(h):h(null,M)}catch(M){h(M)}else T(l,s,r,c,h,_)}!l||!l[0]||this.store.addResource(l[0],s,r,c)}}}const rp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let l={};if(typeof i[1]=="object"&&(l=i[1]),ae(i[1])&&(l.defaultValue=i[1]),ae(i[2])&&(l.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const s=i[3]||i[2];Object.keys(s).forEach(r=>{l[r]=s[r]})}return l},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),op=i=>{var l,s;return ae(i.ns)&&(i.ns=[i.ns]),ae(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),ae(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((s=(l=i.supportedLngs)==null?void 0:l.indexOf)==null?void 0:s.call(l,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},Au=()=>{},dv=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(s=>{typeof i[s]=="function"&&(i[s]=i[s].bind(i))})};class ii extends Vu{constructor(l={},s){if(super(),this.options=op(l),this.services={},this.logger=Qt,this.modules={external:[]},dv(this),s&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,s),this;setTimeout(()=>{this.init(l,s)},0)}}init(l={},s){this.isInitializing=!0,typeof l=="function"&&(s=l,l={}),l.defaultNS==null&&l.ns&&(ae(l.ns)?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));const r=rp();this.options={...r,...this.options,...op(l)},this.options.interpolation={...r.interpolation,...this.options.interpolation},l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator);const c=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Qt.init(c(this.modules.logger),this.options):Qt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=ov;const y=new ap(this.options);this.store=new ep(this.options.resources,this.options);const S=this.services;S.logger=Qt,S.resourceStore=this.store,S.languageUtils=y,S.pluralResolver=new iv(y,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(S.formatter=c(d),S.formatter.init(S,this.options),this.options.interpolation.format=S.formatter.format.bind(S.formatter)),S.interpolator=new uv(this.options),S.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},S.backendConnector=new fv(c(this.modules.backend),S.resourceStore,S,this.options),S.backendConnector.on("*",(b,..._)=>{this.emit(b,..._)}),this.modules.languageDetector&&(S.languageDetector=c(this.modules.languageDetector),S.languageDetector.init&&S.languageDetector.init(S,this.options.detection,this.options)),this.modules.i18nFormat&&(S.i18nFormat=c(this.modules.i18nFormat),S.i18nFormat.init&&S.i18nFormat.init(this)),this.translator=new Hu(this.services,this.options),this.translator.on("*",(b,..._)=>{this.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Au),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...y)=>this.store[d](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...y)=>(this.store[d](...y),this)});const h=Fl(),g=()=>{const d=(y,S)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(S),s(y,S)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?g():setTimeout(g,0),h}loadResources(l,s=Au){var f,p;let r=s;const c=ae(l)?l:this.language;if(typeof l=="function"&&(r=l),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const h=[],g=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(S=>{S!=="cimode"&&h.indexOf(S)<0&&h.push(S)})};c?g(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>g(y)),(p=(f=this.options.preload)==null?void 0:f.forEach)==null||p.call(f,d=>g(d)),this.services.backendConnector.load(h,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(d)})}else r(null)}reloadResources(l,s,r){const c=Fl();return typeof l=="function"&&(r=l,l=void 0),typeof s=="function"&&(r=s,s=void 0),l||(l=this.languages),s||(s=this.options.ns),r||(r=Au),this.services.backendConnector.reload(l,s,f=>{c.resolve(),r(f)}),c}use(l){if(!l)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!l.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return l.type==="backend"&&(this.modules.backend=l),(l.type==="logger"||l.log&&l.warn&&l.error)&&(this.modules.logger=l),l.type==="languageDetector"&&(this.modules.languageDetector=l),l.type==="i18nFormat"&&(this.modules.i18nFormat=l),l.type==="postProcessor"&&Bp.addPostProcessor(l),l.type==="formatter"&&(this.modules.formatter=l),l.type==="3rdParty"&&this.modules.external.push(l),this}setResolvedLanguage(l){if(!(!l||!this.languages)&&!(["cimode","dev"].indexOf(l)>-1)){for(let s=0;s<this.languages.length;s++){const r=this.languages[s];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(l)<0&&this.store.hasLanguageSomeTranslations(l)&&(this.resolvedLanguage=l,this.languages.unshift(l))}}changeLanguage(l,s){this.isLanguageChangingTo=l;const r=Fl();this.emit("languageChanging",l);const c=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},f=(h,g)=>{g?this.isLanguageChangingTo===l&&(c(g),this.translator.changeLanguage(g),this.isLanguageChangingTo=void 0,this.emit("languageChanged",g),this.logger.log("languageChanged",g)):this.isLanguageChangingTo=void 0,r.resolve((...d)=>this.t(...d)),s&&s(h,(...d)=>this.t(...d))},p=h=>{var y,S;!l&&!h&&this.services.languageDetector&&(h=[]);const g=ae(h)?h:h&&h[0],d=this.store.hasLanguageSomeTranslations(g)?g:this.services.languageUtils.getBestMatchFromCodes(ae(h)?[h]:h);d&&(this.language||c(d),this.translator.language||this.translator.changeLanguage(d),(S=(y=this.services.languageDetector)==null?void 0:y.cacheUserLanguage)==null||S.call(y,d)),this.loadResources(d,b=>{f(b,d)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!l&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(l),r}getFixedT(l,s,r){const c=(f,p,...h)=>{let g;typeof p!="object"?g=this.options.overloadTranslationOptionHandler([f,p].concat(h)):g={...p},g.lng=g.lng||c.lng,g.lngs=g.lngs||c.lngs,g.ns=g.ns||c.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||r||c.keyPrefix);const d=this.options.keySeparator||".";let y;return g.keyPrefix&&Array.isArray(f)?y=f.map(S=>`${g.keyPrefix}${d}${S}`):y=g.keyPrefix?`${g.keyPrefix}${d}${f}`:f,this.t(y,g)};return ae(l)?c.lng=l:c.lngs=l,c.ns=s,c.keyPrefix=r,c}t(...l){var s;return(s=this.translator)==null?void 0:s.translate(...l)}exists(...l){var s;return(s=this.translator)==null?void 0:s.exists(...l)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l,s={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const p=(h,g)=>{const d=this.services.backendConnector.state[`${h}|${g}`];return d===-1||d===0||d===2};if(s.precheck){const h=s.precheck(this,p);if(h!==void 0)return h}return!!(this.hasResourceBundle(r,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(r,l)&&(!c||p(f,l)))}loadNamespaces(l,s){const r=Fl();return this.options.ns?(ae(l)&&(l=[l]),l.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{r.resolve(),s&&s(c)}),r):(s&&s(),Promise.resolve())}loadLanguages(l,s){const r=Fl();ae(l)&&(l=[l]);const c=this.options.preload||[],f=l.filter(p=>c.indexOf(p)<0&&this.services.languageUtils.isSupportedCode(p));return f.length?(this.options.preload=c.concat(f),this.loadResources(p=>{r.resolve(),s&&s(p)}),r):(s&&s(),Promise.resolve())}dir(l){var c,f;if(l||(l=this.resolvedLanguage||(((c=this.languages)==null?void 0:c.length)>0?this.languages[0]:this.language)),!l)return"rtl";const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((f=this.services)==null?void 0:f.languageUtils)||new ap(rp());return s.indexOf(r.getLanguagePartFromCode(l))>-1||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(l={},s){return new ii(l,s)}cloneInstance(l={},s=Au){const r=l.forkResourceStore;r&&delete l.forkResourceStore;const c={...this.options,...l,isClone:!0},f=new ii(c);if((l.debug!==void 0||l.prefix!==void 0)&&(f.logger=f.logger.clone(l)),["store","services","language"].forEach(h=>{f[h]=this[h]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},r){const h=Object.keys(this.store.data).reduce((g,d)=>(g[d]={...this.store.data[d]},g[d]=Object.keys(g[d]).reduce((y,S)=>(y[S]={...g[d][S]},y),g[d]),g),{});f.store=new ep(h,c),f.services.resourceStore=f.store}return f.translator=new Hu(f.services,c),f.translator.on("*",(h,...g)=>{f.emit(h,...g)}),f.init(c,s),f.translator.options=c,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const nt=ii.createInstance();nt.createInstance=ii.createInstance;nt.createInstance;nt.dir;nt.init;nt.loadResources;nt.reloadResources;nt.use;nt.changeLanguage;nt.getFixedT;nt.t;nt.exists;nt.setDefaultNamespace;nt.hasLoadedNamespace;nt.loadNamespaces;nt.loadLanguages;var po={exports:{}},se={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,130 +14,15 @@ var Vy=Object.defineProperty;var Qy=(i,l,u)=>l in i?Vy(i,l,{enumerable:!0,config
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var cp;function hv(){if(cp)return ue;cp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.iterator;function b(R){return R===null||typeof R!="object"?null:(R=S&&R[S]||R["@@iterator"],typeof R=="function"?R:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,j={};function G(R,U,V){this.props=R,this.context=U,this.refs=j,this.updater=V||_}G.prototype.isReactComponent={},G.prototype.setState=function(R,U){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,U,"setState")},G.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function B(){}B.prototype=G.prototype;function q(R,U,V){this.props=R,this.context=U,this.refs=j,this.updater=V||_}var X=q.prototype=new B;X.constructor=q,T(X,G.prototype),X.isPureReactComponent=!0;var F=Array.isArray,Z={H:null,A:null,T:null,S:null,V:null},de=Object.prototype.hasOwnProperty;function le(R,U,V,Y,W,pe){return V=pe.ref,{$$typeof:i,type:R,key:U,ref:V!==void 0?V:null,props:pe}}function ie(R,U){return le(R.type,U,void 0,void 0,void 0,R.props)}function Q(R){return typeof R=="object"&&R!==null&&R.$$typeof===i}function ee(R){var U={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(V){return U[V]})}var he=/\/+/g;function De(R,U){return typeof R=="object"&&R!==null&&R.key!=null?ee(""+R.key):U.toString(36)}function Ue(){}function Ce(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Ue,Ue):(R.status="pending",R.then(function(U){R.status==="pending"&&(R.status="fulfilled",R.value=U)},function(U){R.status==="pending"&&(R.status="rejected",R.reason=U)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function $e(R,U,V,Y,W){var pe=typeof R;(pe==="undefined"||pe==="boolean")&&(R=null);var se=!1;if(R===null)se=!0;else switch(pe){case"bigint":case"string":case"number":se=!0;break;case"object":switch(R.$$typeof){case i:case l:se=!0;break;case v:return se=R._init,$e(se(R._payload),U,V,Y,W)}}if(se)return W=W(R),se=Y===""?"."+De(R,0):Y,F(W)?(V="",se!=null&&(V=se.replace(he,"$&/")+"/"),$e(W,U,V,"",function(dn){return dn})):W!=null&&(Q(W)&&(W=ie(W,V+(W.key==null||R&&R.key===W.key?"":(""+W.key).replace(he,"$&/")+"/")+se)),U.push(W)),1;se=0;var dt=Y===""?".":Y+":";if(F(R))for(var ke=0;ke<R.length;ke++)Y=R[ke],pe=dt+De(Y,ke),se+=$e(Y,U,V,pe,W);else if(ke=b(R),typeof ke=="function")for(R=ke.call(R),ke=0;!(Y=R.next()).done;)Y=Y.value,pe=dt+De(Y,ke++),se+=$e(Y,U,V,pe,W);else if(pe==="object"){if(typeof R.then=="function")return $e(Ce(R),U,V,Y,W);throw U=String(R),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return se}function D(R,U,V){if(R==null)return R;var Y=[],W=0;return $e(R,Y,"","",function(pe){return U.call(V,pe,W++)}),Y}function $(R){if(R._status===-1){var U=R._result;U=U(),U.then(function(V){(R._status===0||R._status===-1)&&(R._status=1,R._result=V)},function(V){(R._status===0||R._status===-1)&&(R._status=2,R._result=V)}),R._status===-1&&(R._status=0,R._result=U)}if(R._status===1)return R._result.default;throw R._result}var P=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function me(){}return ue.Children={map:D,forEach:function(R,U,V){D(R,function(){U.apply(this,arguments)},V)},count:function(R){var U=0;return D(R,function(){U++}),U},toArray:function(R){return D(R,function(U){return U})||[]},only:function(R){if(!Q(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},ue.Component=G,ue.Fragment=u,ue.Profiler=c,ue.PureComponent=q,ue.StrictMode=r,ue.Suspense=g,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ue.__COMPILER_RUNTIME={__proto__:null,c:function(R){return Z.H.useMemoCache(R)}},ue.cache=function(R){return function(){return R.apply(null,arguments)}},ue.cloneElement=function(R,U,V){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Y=T({},R.props),W=R.key,pe=void 0;if(U!=null)for(se in U.ref!==void 0&&(pe=void 0),U.key!==void 0&&(W=""+U.key),U)!de.call(U,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&U.ref===void 0||(Y[se]=U[se]);var se=arguments.length-2;if(se===1)Y.children=V;else if(1<se){for(var dt=Array(se),ke=0;ke<se;ke++)dt[ke]=arguments[ke+2];Y.children=dt}return le(R.type,W,void 0,void 0,pe,Y)},ue.createContext=function(R){return R={$$typeof:p,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},ue.createElement=function(R,U,V){var Y,W={},pe=null;if(U!=null)for(Y in U.key!==void 0&&(pe=""+U.key),U)de.call(U,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(W[Y]=U[Y]);var se=arguments.length-2;if(se===1)W.children=V;else if(1<se){for(var dt=Array(se),ke=0;ke<se;ke++)dt[ke]=arguments[ke+2];W.children=dt}if(R&&R.defaultProps)for(Y in se=R.defaultProps,se)W[Y]===void 0&&(W[Y]=se[Y]);return le(R,pe,void 0,void 0,null,W)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(R){return{$$typeof:h,render:R}},ue.isValidElement=Q,ue.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:$}},ue.memo=function(R,U){return{$$typeof:d,type:R,compare:U===void 0?null:U}},ue.startTransition=function(R){var U=Z.T,V={};Z.T=V;try{var Y=R(),W=Z.S;W!==null&&W(V,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(me,P)}catch(pe){P(pe)}finally{Z.T=U}},ue.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ue.use=function(R){return Z.H.use(R)},ue.useActionState=function(R,U,V){return Z.H.useActionState(R,U,V)},ue.useCallback=function(R,U){return Z.H.useCallback(R,U)},ue.useContext=function(R){return Z.H.useContext(R)},ue.useDebugValue=function(){},ue.useDeferredValue=function(R,U){return Z.H.useDeferredValue(R,U)},ue.useEffect=function(R,U,V){var Y=Z.H;if(typeof V=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(R,U)},ue.useId=function(){return Z.H.useId()},ue.useImperativeHandle=function(R,U,V){return Z.H.useImperativeHandle(R,U,V)},ue.useInsertionEffect=function(R,U){return Z.H.useInsertionEffect(R,U)},ue.useLayoutEffect=function(R,U){return Z.H.useLayoutEffect(R,U)},ue.useMemo=function(R,U){return Z.H.useMemo(R,U)},ue.useOptimistic=function(R,U){return Z.H.useOptimistic(R,U)},ue.useReducer=function(R,U,V){return Z.H.useReducer(R,U,V)},ue.useRef=function(R){return Z.H.useRef(R)},ue.useState=function(R){return Z.H.useState(R)},ue.useSyncExternalStore=function(R,U,V){return Z.H.useSyncExternalStore(R,U,V)},ue.useTransition=function(){return Z.H.useTransition()},ue.version="19.1.0",ue}var fp;function Lo(){return fp||(fp=1,po.exports=hv()),po.exports}var O=Lo();const No=Up(O),pv=(i,l,u,r)=>{var f,p,h,g;const c=[u,{code:l,...r||{}}];if((p=(f=i==null?void 0:i.services)==null?void 0:f.logger)!=null&&p.forward)return i.services.logger.forward(c,"warn","react-i18next::",!0);aa(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(g=(h=i==null?void 0:i.services)==null?void 0:h.logger)!=null&&g.warn?i.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},dp={},Oo=(i,l,u,r)=>{aa(u)&&dp[u]||(aa(u)&&(dp[u]=new Date),pv(i,l,u,r))},qp=(i,l)=>()=>{if(i.isInitialized)l();else{const u=()=>{setTimeout(()=>{i.off("initialized",u)},0),l()};i.on("initialized",u)}},Ao=(i,l,u)=>{i.loadNamespaces(l,qp(i,u))},hp=(i,l,u,r)=>{if(aa(u)&&(u=[u]),i.options.preload&&i.options.preload.indexOf(l)>-1)return Ao(i,u,r);u.forEach(c=>{i.options.ns.indexOf(c)<0&&i.options.ns.push(c)}),i.loadLanguages(l,qp(i,r))},gv=(i,l,u={})=>!l.languages||!l.languages.length?(Oo(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(i,{lng:u.lng,precheck:(r,c)=>{var f;if(((f=u.bindI18n)==null?void 0:f.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!c(r.isLanguageChangingTo,i))return!1}}),aa=i=>typeof i=="string",mv=i=>typeof i=="object"&&i!==null,yv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,vv={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},bv=i=>vv[i],Sv=i=>i.replace(yv,bv);let Co={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Sv};const xv=(i={})=>{Co={...Co,...i}},Ev=()=>Co;let Gp;const Tv=i=>{Gp=i},Rv=()=>Gp,wv={type:"3rdParty",init(i){xv(i.options.react),Tv(i)}},Nv=O.createContext();class Ov{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(u=>{this.usedNamespaces[u]||(this.usedNamespaces[u]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Av=(i,l)=>{const u=O.useRef();return O.useEffect(()=>{u.current=i},[i,l]),u.current},$p=(i,l,u,r)=>i.getFixedT(l,u,r),Cv=(i,l,u,r)=>O.useCallback($p(i,l,u,r),[i,l,u,r]),at=(i,l={})=>{var F,Z,de,le;const{i18n:u}=l,{i18n:r,defaultNS:c}=O.useContext(Nv)||{},f=u||r||Rv();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new Ov),!f){Oo(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ie=(ee,he)=>aa(he)?he:mv(he)&&aa(he.defaultValue)?he.defaultValue:Array.isArray(ee)?ee[ee.length-1]:ee,Q=[ie,{},!1];return Q.t=ie,Q.i18n={},Q.ready=!1,Q}(F=f.options.react)!=null&&F.wait&&Oo(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const p={...Ev(),...f.options.react,...l},{useSuspense:h,keyPrefix:g}=p;let d=c||((Z=f.options)==null?void 0:Z.defaultNS);d=aa(d)?[d]:d||["translation"],(le=(de=f.reportNamespaces).addUsedNamespaces)==null||le.call(de,d);const v=(f.isInitialized||f.initializedStoreOnce)&&d.every(ie=>gv(ie,f,p)),S=Cv(f,l.lng||null,p.nsMode==="fallback"?d:d[0],g),b=()=>S,_=()=>$p(f,l.lng||null,p.nsMode==="fallback"?d:d[0],g),[T,j]=O.useState(b);let G=d.join();l.lng&&(G=`${l.lng}${G}`);const B=Av(G),q=O.useRef(!0);O.useEffect(()=>{const{bindI18n:ie,bindI18nStore:Q}=p;q.current=!0,!v&&!h&&(l.lng?hp(f,l.lng,d,()=>{q.current&&j(_)}):Ao(f,d,()=>{q.current&&j(_)})),v&&B&&B!==G&&q.current&&j(_);const ee=()=>{q.current&&j(_)};return ie&&(f==null||f.on(ie,ee)),Q&&(f==null||f.store.on(Q,ee)),()=>{q.current=!1,f&&(ie==null||ie.split(" ").forEach(he=>f.off(he,ee))),Q&&f&&Q.split(" ").forEach(he=>f.store.off(he,ee))}},[f,G]),O.useEffect(()=>{q.current&&v&&j(b)},[f,g,v]);const X=[T,f,v];if(X.t=T,X.i18n=f,X.ready=v,v||!v&&!h)return X;throw new Promise(ie=>{l.lng?hp(f,l.lng,d,()=>ie()):Ao(f,d,()=>ie())})},kv="ParoiCMS Site Generator",zv="<p>Describe here the data structure of your website: what types of pages it has and in which sections. In a page type, it is also possible to describe lists of sub-parts.</p><p>Supported languages: English, French.</p>",_v="Create a website about… It will include a blog section, a list of pages, and a dedicated section about… that itself contains the following sub-sections: … The home page should contain an image carousel and a list of subparts, each containing an image and a text.",Dv="Add a new text field to the page…",jv="Modify the Site Schema",Mv="Create a Site Schema",Lv="Generate the website",Uv="Generate site with sample data (recommended)",Hv="Generate an empty site",Bv="Open the back-office",qv="Open the site",Gv="Generated Schema",$v="Tree View",Yv="Site Schema",Vv="Node Types",Qv="Labels",Xv="Select language",Zv="Explanations",Kv="Current Activity",Jv="An error occurred: {{ message }}",Fv="An error occurred",Pv="Start Again",Wv="Step",Iv="Step {{stepNumber}}: {{kind}}",e0="This step is in progress…",t0="This step failed.",n0="This step had no effect.",a0="No session data available",l0="Step not found",i0="Welcome to ParoiCMS Site Generator",s0="Close and start again",u0="Reset Schema",r0="unknown error",o0="Create New Site",c0="Generating your site…",f0="The site is generated",d0="Email:",h0="Password:",p0="I agree",g0="You are about to generate your website.",m0="Cancel",y0="Confirm",v0="Site URL:",b0="Admin URL:",S0="Copy all information to clipboard",x0="<p>Welcome to the ParoiCMS Site Generator tool. This tool helps you create a new website with just a few steps.</p><p>To get started, please verify you're human by completing the CAPTCHA below.</p>",E0="Initial Schema Creation",T0="Schema Update",R0="Site Generation",w0={initial1:"Analyzing your request for site structure…",initial2:"Choosing from predefined fields…",updating1:"Analyzing your update request…",updating2:"Updating schema structure with changes…",generatingSite:"Building your website…",generatingContent:"Creating sample content for your site…"},N0="Login Email",O0="Login Password",A0="Generated Site",C0="Your session has expired. Please refresh the page to start a new session.",k0="Failed to submit your prompt. Please try again.",z0="Failed to generate the site. Please try again.",_0='The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — ParoiCMS is a personal project, to contact me, come <a href="https://paroi.tech/en" target="_blank">here</a>.',D0="Extend your session",j0="Failed to refresh your session. Please try again.",M0="Error connecting to server. Please check your connection and try again.",L0="Tip: If you want to start over, open the generator in a new tab and close this one.",U0={title:kv,startInstruction:zv,createPromptPlaceholder:_v,updatePromptPlaceholder:Dv,modifySchema:jv,createSchema:Mv,generateTheWebsite:Lv,generateSiteWithData:Uv,generateEmptySite:Hv,administration:Bv,viewSite:qv,generatedSchema:Gv,treeView:$v,siteSchema:Yv,nodeTypes:Vv,labels:Qv,languageSelector:Xv,explanation:Zv,currentActivity:Kv,errorOccurred:Jv,unknownErrorOccurred:Fv,startAgain:Pv,step:Wv,stepTitle:Iv,stepPending:e0,stepFailed:t0,stepNoEffect:n0,noSessionData:a0,stepNotFound:l0,welcomeTitle:i0,reset:s0,resetSchema:u0,unknownError:r0,createNewSite:o0,generatingSite:c0,siteGenerated:f0,email:d0,password:h0,agree:p0,aboutToGenerateWebsite:g0,cancel:m0,confirm:y0,siteUrl:v0,adminUrl:b0,copyToClipboard:S0,introduction:x0,initialSchema:E0,updateSchema:T0,generateSite:R0,activity:w0,loginEmail:N0,loginPassword:O0,generatedSite:A0,sessionExpired:C0,promptSubmissionFailed:k0,generationFailed:z0,footerText:_0,extendYourSession:D0,sessionRenewalFailed:j0,errorConnectingToServer:M0,newTabRestartMessage:L0},H0="ParoiCMS - Générateur de Site",B0="<p>Décrivez ici la structure des données de votre site web : quels types de pages, dans quelles rubriques. Il est également possible de décrire des listes de sous-parties de pages.</p><p>Langages autorisés : Français, Anglais.</p>",q0="Génère un site web à propos de… Il contiendra une rubrique blog, une liste de pages, une rubrique dédiée à… contenant elle-même les sous-rubriques suivantes : … La page d'accueil doit contenir un carrousel d'images, et une liste de sous-parties contenant chacune une image et un texte.",G0="Ajoute un nouveau champ texte à la page…",$0="Modifier le schéma du site",Y0="Créer un schéma de site",V0="Générer le site web",Q0="Générer le site avec des données d'exemple (recommandé)",X0="Générer un site vide",Z0="Ouvrir l'espace d'administration du site",K0="Ouvrir le site",J0="Schéma généré",F0="Arborescence",P0="Schéma du site",W0="Types de nœuds",I0="Libellés",eb="Sélectionner la langue",tb="Explications",nb="Activité en cours",ab="Une erreur est survenue : {{ message }}",lb="Une erreur est survenue",ib="Recommencer",sb="Étape",ub="Étape {{stepNumber}} : {{kind}}",rb="Cette étape est en cours…",ob="Cette étape a échoué.",cb="Cette étape n'a eu aucun effet.",fb="Données de session non disponibles",db="Étape introuvable",hb="Bienvenue sur le générateur de site ParoiCMS",pb="Fermer et réinitialiser",gb="Réinitialiser le schéma",mb="erreur inconnue",yb="Créer un nouveau site",vb="Génération de votre site…",bb="Le site est généré",Sb="Email :",xb="Mot de passe :",Eb="J'accepte",Tb="Vous êtes sur le point de générer votre site web.",Rb="Annuler",wb="Confirmer",Nb="URL du site :",Ob="URL d'admin :",Ab="Copier toutes les informations dans le presse-papier",Cb="<p>Bienvenue sur l'outil de génération de site ParoiCMS. Cet outil vous aide à créer un nouveau site web en quelques étapes.</p><p>Pour commencer, veuillez vérifier que vous êtes humain en complétant le CAPTCHA ci-dessous.</p>",kb="Création du schéma initial",zb="Mise à jour du schéma",_b="Génération du site",Db={initial1:"Analyse de votre demande pour la structure du site…",initial2:"Choix parmi les champs prédéfinis…",updating1:"Analyse de votre demande de mise à jour…",updating2:"Mise à jour de la structure du schéma…",generatingSite:"Construction de votre site web…",generatingContent:"Création de contenu exemple pour votre site…"},jb="Email de connexion",Mb="Mot de passe",Lb="Site généré",Ub="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",Hb="Échec de l'envoi de votre demande. Veuillez réessayer.",Bb="Échec de la génération du site. Veuillez réessayer.",qb='Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — ParoiCMS est un projet personnel, pour me contacter, passez <a href="https://paroi.tech/fr" target="_blank">par ici</a>.',Gb="Prolonger votre session",$b="Échec du renouvellement de votre session. Veuillez réessayer.",Yb="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",Vb="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",Qb={title:H0,startInstruction:B0,createPromptPlaceholder:q0,updatePromptPlaceholder:G0,modifySchema:$0,createSchema:Y0,generateTheWebsite:V0,generateSiteWithData:Q0,generateEmptySite:X0,administration:Z0,viewSite:K0,generatedSchema:J0,treeView:F0,siteSchema:P0,nodeTypes:W0,labels:I0,languageSelector:eb,explanation:tb,currentActivity:nb,errorOccurred:ab,unknownErrorOccurred:lb,startAgain:ib,step:sb,stepTitle:ub,stepPending:rb,stepFailed:ob,stepNoEffect:cb,noSessionData:fb,stepNotFound:db,welcomeTitle:hb,reset:pb,resetSchema:gb,unknownError:mb,createNewSite:yb,generatingSite:vb,siteGenerated:bb,email:Sb,password:xb,agree:Eb,aboutToGenerateWebsite:Tb,cancel:Rb,confirm:wb,siteUrl:Nb,adminUrl:Ob,copyToClipboard:Ab,introduction:Cb,initialSchema:kb,updateSchema:zb,generateSite:_b,activity:Db,loginEmail:jb,loginPassword:Mb,generatedSite:Lb,sessionExpired:Ub,promptSubmissionFailed:Hb,generationFailed:Bb,footerText:qb,extendYourSession:Gb,sessionRenewalFailed:$b,errorConnectingToServer:Yb,newTabRestartMessage:Vb},Xb=`<p>
18
- Welcome to the Site Generator of ParoiCMS. ParoiCMS is:
19
- </p>
20
- <ul>
21
- <li>A <strong>no-code</strong> technology for generating a back-office from a JSON description;
22
- </li>
23
- <li>Themes (HTML, CSS) are written in <strong>Liquid</strong>, the templating language of Shopify.
24
- </li>
25
- </ul>
26
- <p>
27
- This tool is a personal project, so it's far from perfect, but it also aims to be <strong>useful
28
- for real projects</strong>.
29
- </p>
30
- <p>
31
- The purpose of this tool is to generate the no-code part of ParoiCMS with the help of
32
- artificial intelligence. It will generate the back-office of your website. The
33
- tool also generates a default theme adapted to your site structure, which will be basic but
34
- helpful for your designer or integrator.
35
- </p>
36
- <p>
37
- The site generator can also generate fake content for your website. Again, this will be
38
- helpful to provide sample data for your designer or integrator.
39
- </p>
40
- <p>
41
- Websites generated here will be <strong>deleted in 48 hours</strong>. If you want to keep your
42
- work, you are invited to use the back-up button in your generated back-office. <strong>Each backup
43
- is a zip file that contains a Node.js project ready to be executed in a local
44
- environment.</strong>
45
- </p>
46
- <p>
47
- Your data will be kept for debug purposes. A session identifier will follow you on the
48
- tab of your browser, it will be deleted when you close the tab.
49
- </p>`,Zb=`<p>
50
- Bienvenue dans le générateur de sites de ParoiCMS. ParoiCMS est :
51
- </p>
52
- <ul>
53
- <li>Une technologie <strong>no-code</strong> pour générer un back-office à partir d'une
54
- description JSON;
55
- </li>
56
- <li>Les thèmes (HTML, CSS) sont écrits en <strong>Liquid</strong>, le moteur de template de
57
- Shopify.
58
- </li>
59
- </ul>
60
- <p>
61
- Cet outil est un projet personnel, il est donc loin d'être parfait, mais il se veut également
62
- <strong>utile pour des projets réels</strong>.
63
- </p>
64
- <p>
65
- Le but de cet outil est de générer la partie <em>no-code</em> de ParoiCMS à l'aide de
66
- l'intelligence artificielle. Il génère le back-office de votre site. L'outil génère également un
67
- thème par défaut, adapté à la structure de votre site, qui sera simple mais utile pour votre
68
- designer ou intégrateur.
69
- </p>
70
- <p>
71
- Le générateur de sites peut aussi générer du contenu factice pour votre site. Cela sera aussi
72
- utile pour fournir des données d'exemple à votre designer ou intégrateur.
73
- </p>
74
- <p>
75
- Les sites générés ici seront <strong>supprimés en 48 heures</strong>. Si vous souhaitez conserver
76
- votre travail, nous vous invitons à utiliser le bouton de sauvegarde dans votre back-office
77
- généré. <strong>Chaque sauvegarde est un fichier zip contenant un projet Node.js prêt à être
78
- exécuté dans un environnement local.</strong>
79
- </p>
80
- <p>
81
- Vos données seront conservées à des fins de débogage. Un identifiant de session vous suivra sur
82
- l'onglet de votre navigateur, il sera supprimé lorsque vous fermerez l'onglet.
83
- </p>`,Kb=`<p>
84
- Congratulations! Your website has been generated.
85
- </p>
86
- <p>
87
- Your website will be deleted in <strong>48 hours</strong>. Please remember to back it up if you
88
- wish to keep it. <strong>Each backup
89
- is a zip file that contains a Node.js project ready to be executed in a local
90
- environment.</strong>
91
- </p>
92
- <p>
93
- For safety reasons, you cannot change the email address in this hosted demonstration.
94
- </p>
95
- <p>
96
- If you are an integrator, here are some tips:
97
- </p>
98
- <ul>
99
- <li>Once you run a back-up as a local server, deleting dummy data is straightforward: simply
100
- remove SQLite files and restart the server.
101
- </li>
102
- <li>In Liquid templates, inspect any payload using the <code>info</code> filter:
103
- <code>{{ doc | info }}</code>
104
- </li>
105
- <li>Some plugins are included by default, such as the contact form, search form, etc. However,
106
- they are all optional.</li>
107
- </ul>
108
- <p>
109
- Make sure to copy the following information, as it will be lost once you close this panel. You can
110
- authenticate using the following <strong>local account</strong>:
111
- </p>`,Jb=`<p>
112
- Félicitations ! Votre site web a été généré.
113
- </p>
114
- <p>
115
- Votre site web sera supprimé dans <strong>48 heures</strong>. Veuillez penser à le sauvegarder si
116
- vous souhaitez le conserver. <strong>Chaque sauvegarde est un fichier zip contenant un projet
117
- Node.js prêt à être exécuté dans un environnement local.</strong>
118
- </p>
119
- <p>
120
- Pour des raisons de sécurité, vous ne pouvez pas modifier l'adresse e-mail dans cette
121
- démonstration hébergée.
122
- </p>
123
- <p>
124
- Si vous êtes intégrateur, voici quelques conseils :
125
- </p>
126
- <ul>
127
- <li>Une fois que vous faites tourner un back-up en local, supprimer les données factices est très
128
- simple : il suffit de supprimer les fichiers SQLite et de redémarrer le serveur.
129
- </li>
130
- <li>Dans les modèles Liquid, inspectez toute charge utile en utilisant le filtre
131
- <code>info</code> : <code>{{ doc | info }}</code>
132
- </li>
133
- <li>Certaines extensions sont incluses par défaut, telles que le formulaire de contact, le
134
- formulaire de recherche, etc. Cependant, elles sont toutes optionnelles.</li>
135
- </ul>
136
- <p>
137
- N'oubliez pas de copier les informations ci-dessous, car elles seront perdues dès que vous
138
- fermerez ce panneau. Vous pouvez vous authentifier en utilisant le <strong>compte local</strong>
139
- suivant :
140
- </p>`,Fb={en:{translation:{...U0,introduction:Xb,userManual:Kb}},fr:{translation:{...Qb,introduction:Zb,userManual:Jb}}};nt.use(wv).init({resources:Fb,lng:navigator.language.split("-")[0],fallbackLng:"en",interpolation:{escapeValue:!1}});var go={exports:{}},Pl={},mo={exports:{}},yo={};/**
17
+ */var cp;function hv(){if(cp)return se;cp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.iterator;function b(R){return R===null||typeof R!="object"?null:(R=S&&R[S]||R["@@iterator"],typeof R=="function"?R:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,M={};function G(R,U,V){this.props=R,this.context=U,this.refs=M,this.updater=V||_}G.prototype.isReactComponent={},G.prototype.setState=function(R,U){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,U,"setState")},G.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function B(){}B.prototype=G.prototype;function q(R,U,V){this.props=R,this.context=U,this.refs=M,this.updater=V||_}var X=q.prototype=new B;X.constructor=q,T(X,G.prototype),X.isPureReactComponent=!0;var F=Array.isArray,Z={H:null,A:null,T:null,S:null,V:null},de=Object.prototype.hasOwnProperty;function le(R,U,V,Y,P,pe){return V=pe.ref,{$$typeof:i,type:R,key:U,ref:V!==void 0?V:null,props:pe}}function ie(R,U){return le(R.type,U,void 0,void 0,void 0,R.props)}function Q(R){return typeof R=="object"&&R!==null&&R.$$typeof===i}function ee(R){var U={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(V){return U[V]})}var he=/\/+/g;function De(R,U){return typeof R=="object"&&R!==null&&R.key!=null?ee(""+R.key):U.toString(36)}function Ue(){}function Ce(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Ue,Ue):(R.status="pending",R.then(function(U){R.status==="pending"&&(R.status="fulfilled",R.value=U)},function(U){R.status==="pending"&&(R.status="rejected",R.reason=U)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function $e(R,U,V,Y,P){var pe=typeof R;(pe==="undefined"||pe==="boolean")&&(R=null);var ue=!1;if(R===null)ue=!0;else switch(pe){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(R.$$typeof){case i:case l:ue=!0;break;case y:return ue=R._init,$e(ue(R._payload),U,V,Y,P)}}if(ue)return P=P(R),ue=Y===""?"."+De(R,0):Y,F(P)?(V="",ue!=null&&(V=ue.replace(he,"$&/")+"/"),$e(P,U,V,"",function(dn){return dn})):P!=null&&(Q(P)&&(P=ie(P,V+(P.key==null||R&&R.key===P.key?"":(""+P.key).replace(he,"$&/")+"/")+ue)),U.push(P)),1;ue=0;var dt=Y===""?".":Y+":";if(F(R))for(var ze=0;ze<R.length;ze++)Y=R[ze],pe=dt+De(Y,ze),ue+=$e(Y,U,V,pe,P);else if(ze=b(R),typeof ze=="function")for(R=ze.call(R),ze=0;!(Y=R.next()).done;)Y=Y.value,pe=dt+De(Y,ze++),ue+=$e(Y,U,V,pe,P);else if(pe==="object"){if(typeof R.then=="function")return $e(Ce(R),U,V,Y,P);throw U=String(R),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ue}function D(R,U,V){if(R==null)return R;var Y=[],P=0;return $e(R,Y,"","",function(pe){return U.call(V,pe,P++)}),Y}function $(R){if(R._status===-1){var U=R._result;U=U(),U.then(function(V){(R._status===0||R._status===-1)&&(R._status=1,R._result=V)},function(V){(R._status===0||R._status===-1)&&(R._status=2,R._result=V)}),R._status===-1&&(R._status=0,R._result=U)}if(R._status===1)return R._result.default;throw R._result}var W=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function me(){}return se.Children={map:D,forEach:function(R,U,V){D(R,function(){U.apply(this,arguments)},V)},count:function(R){var U=0;return D(R,function(){U++}),U},toArray:function(R){return D(R,function(U){return U})||[]},only:function(R){if(!Q(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},se.Component=G,se.Fragment=s,se.Profiler=c,se.PureComponent=q,se.StrictMode=r,se.Suspense=g,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,se.__COMPILER_RUNTIME={__proto__:null,c:function(R){return Z.H.useMemoCache(R)}},se.cache=function(R){return function(){return R.apply(null,arguments)}},se.cloneElement=function(R,U,V){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Y=T({},R.props),P=R.key,pe=void 0;if(U!=null)for(ue in U.ref!==void 0&&(pe=void 0),U.key!==void 0&&(P=""+U.key),U)!de.call(U,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&U.ref===void 0||(Y[ue]=U[ue]);var ue=arguments.length-2;if(ue===1)Y.children=V;else if(1<ue){for(var dt=Array(ue),ze=0;ze<ue;ze++)dt[ze]=arguments[ze+2];Y.children=dt}return le(R.type,P,void 0,void 0,pe,Y)},se.createContext=function(R){return R={$$typeof:p,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},se.createElement=function(R,U,V){var Y,P={},pe=null;if(U!=null)for(Y in U.key!==void 0&&(pe=""+U.key),U)de.call(U,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(P[Y]=U[Y]);var ue=arguments.length-2;if(ue===1)P.children=V;else if(1<ue){for(var dt=Array(ue),ze=0;ze<ue;ze++)dt[ze]=arguments[ze+2];P.children=dt}if(R&&R.defaultProps)for(Y in ue=R.defaultProps,ue)P[Y]===void 0&&(P[Y]=ue[Y]);return le(R,pe,void 0,void 0,null,P)},se.createRef=function(){return{current:null}},se.forwardRef=function(R){return{$$typeof:h,render:R}},se.isValidElement=Q,se.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:$}},se.memo=function(R,U){return{$$typeof:d,type:R,compare:U===void 0?null:U}},se.startTransition=function(R){var U=Z.T,V={};Z.T=V;try{var Y=R(),P=Z.S;P!==null&&P(V,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(me,W)}catch(pe){W(pe)}finally{Z.T=U}},se.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},se.use=function(R){return Z.H.use(R)},se.useActionState=function(R,U,V){return Z.H.useActionState(R,U,V)},se.useCallback=function(R,U){return Z.H.useCallback(R,U)},se.useContext=function(R){return Z.H.useContext(R)},se.useDebugValue=function(){},se.useDeferredValue=function(R,U){return Z.H.useDeferredValue(R,U)},se.useEffect=function(R,U,V){var Y=Z.H;if(typeof V=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(R,U)},se.useId=function(){return Z.H.useId()},se.useImperativeHandle=function(R,U,V){return Z.H.useImperativeHandle(R,U,V)},se.useInsertionEffect=function(R,U){return Z.H.useInsertionEffect(R,U)},se.useLayoutEffect=function(R,U){return Z.H.useLayoutEffect(R,U)},se.useMemo=function(R,U){return Z.H.useMemo(R,U)},se.useOptimistic=function(R,U){return Z.H.useOptimistic(R,U)},se.useReducer=function(R,U,V){return Z.H.useReducer(R,U,V)},se.useRef=function(R){return Z.H.useRef(R)},se.useState=function(R){return Z.H.useState(R)},se.useSyncExternalStore=function(R,U,V){return Z.H.useSyncExternalStore(R,U,V)},se.useTransition=function(){return Z.H.useTransition()},se.version="19.1.0",se}var fp;function Lo(){return fp||(fp=1,po.exports=hv()),po.exports}var A=Lo();const No=Up(A),pv=(i,l,s,r)=>{var f,p,h,g;const c=[s,{code:l,...r||{}}];if((p=(f=i==null?void 0:i.services)==null?void 0:f.logger)!=null&&p.forward)return i.services.logger.forward(c,"warn","react-i18next::",!0);aa(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(g=(h=i==null?void 0:i.services)==null?void 0:h.logger)!=null&&g.warn?i.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},dp={},Ao=(i,l,s,r)=>{aa(s)&&dp[s]||(aa(s)&&(dp[s]=new Date),pv(i,l,s,r))},qp=(i,l)=>()=>{if(i.isInitialized)l();else{const s=()=>{setTimeout(()=>{i.off("initialized",s)},0),l()};i.on("initialized",s)}},Oo=(i,l,s)=>{i.loadNamespaces(l,qp(i,s))},hp=(i,l,s,r)=>{if(aa(s)&&(s=[s]),i.options.preload&&i.options.preload.indexOf(l)>-1)return Oo(i,s,r);s.forEach(c=>{i.options.ns.indexOf(c)<0&&i.options.ns.push(c)}),i.loadLanguages(l,qp(i,r))},gv=(i,l,s={})=>!l.languages||!l.languages.length?(Ao(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(i,{lng:s.lng,precheck:(r,c)=>{var f;if(((f=s.bindI18n)==null?void 0:f.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!c(r.isLanguageChangingTo,i))return!1}}),aa=i=>typeof i=="string",mv=i=>typeof i=="object"&&i!==null,yv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,vv={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},bv=i=>vv[i],Sv=i=>i.replace(yv,bv);let Co={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Sv};const xv=(i={})=>{Co={...Co,...i}},Ev=()=>Co;let Gp;const Tv=i=>{Gp=i},Rv=()=>Gp,wv={type:"3rdParty",init(i){xv(i.options.react),Tv(i)}},Nv=A.createContext();class Av{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Ov=(i,l)=>{const s=A.useRef();return A.useEffect(()=>{s.current=i},[i,l]),s.current},$p=(i,l,s,r)=>i.getFixedT(l,s,r),Cv=(i,l,s,r)=>A.useCallback($p(i,l,s,r),[i,l,s,r]),ut=(i,l={})=>{var F,Z,de,le;const{i18n:s}=l,{i18n:r,defaultNS:c}=A.useContext(Nv)||{},f=s||r||Rv();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new Av),!f){Ao(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ie=(ee,he)=>aa(he)?he:mv(he)&&aa(he.defaultValue)?he.defaultValue:Array.isArray(ee)?ee[ee.length-1]:ee,Q=[ie,{},!1];return Q.t=ie,Q.i18n={},Q.ready=!1,Q}(F=f.options.react)!=null&&F.wait&&Ao(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const p={...Ev(),...f.options.react,...l},{useSuspense:h,keyPrefix:g}=p;let d=c||((Z=f.options)==null?void 0:Z.defaultNS);d=aa(d)?[d]:d||["translation"],(le=(de=f.reportNamespaces).addUsedNamespaces)==null||le.call(de,d);const y=(f.isInitialized||f.initializedStoreOnce)&&d.every(ie=>gv(ie,f,p)),S=Cv(f,l.lng||null,p.nsMode==="fallback"?d:d[0],g),b=()=>S,_=()=>$p(f,l.lng||null,p.nsMode==="fallback"?d:d[0],g),[T,M]=A.useState(b);let G=d.join();l.lng&&(G=`${l.lng}${G}`);const B=Ov(G),q=A.useRef(!0);A.useEffect(()=>{const{bindI18n:ie,bindI18nStore:Q}=p;q.current=!0,!y&&!h&&(l.lng?hp(f,l.lng,d,()=>{q.current&&M(_)}):Oo(f,d,()=>{q.current&&M(_)})),y&&B&&B!==G&&q.current&&M(_);const ee=()=>{q.current&&M(_)};return ie&&(f==null||f.on(ie,ee)),Q&&(f==null||f.store.on(Q,ee)),()=>{q.current=!1,f&&(ie==null||ie.split(" ").forEach(he=>f.off(he,ee))),Q&&f&&Q.split(" ").forEach(he=>f.store.off(he,ee))}},[f,G]),A.useEffect(()=>{q.current&&y&&M(b)},[f,g,y]);const X=[T,f,y];if(X.t=T,X.i18n=f,X.ready=y,y||!y&&!h)return X;throw new Promise(ie=>{l.lng?hp(f,l.lng,d,()=>ie()):Oo(f,d,()=>ie())})},zv="ParoiCMS Site Generator",kv="<p>Describe here the data structure of your website: what types of pages it has and in which sections. In a page type, it is also possible to describe lists of sub-parts.</p><p>Supported languages: English, French.</p>",_v="Create a website about… It will include a blog section, a list of pages, and a dedicated section about… that itself contains the following sub-sections: … The home page should contain an image carousel and a list of subparts, each containing an image and a text.",Dv="Add a new text field to the page…",Mv="Modify the Site Schema",jv="Create a Site Schema",Lv="Generate the website",Uv="Generate site with sample data (recommended)",Hv="Generate an empty site",Bv="Open the back-office",qv="Open the site",Gv="Generated Schema",$v="Tree View",Yv="Site Schema",Vv="Node Types",Qv="Labels",Xv="Select language",Zv="Explanations",Kv="Current Activity",Jv="An error occurred: {{ message }}",Fv="An error occurred",Wv="Start Again",Pv="Step",Iv="Step {{stepNumber}}: {{kind}}",e0="This step is in progress…",t0="This step failed.",n0="This step had no effect.",a0="No session data available",l0="Step not found",i0="Welcome to ParoiCMS Site Generator",u0="Close and start again",s0="Reset Schema",r0="unknown error",o0="Create New Site",c0="Generating your site…",f0="The site is generated",d0="Email:",h0="Password:",p0="I agree",g0="You are about to generate your website.",m0="Cancel",y0="Confirm",v0="Site URL:",b0="Admin URL:",S0="Copy all information to clipboard",x0="<p>Welcome to the ParoiCMS Site Generator tool. This tool helps you create a new website with just a few steps.</p><p>To get started, please verify you're human by completing the CAPTCHA below.</p>",E0="Initial Schema Creation",T0="Schema Update",R0="Site Generation",w0={initial1:"Analyzing your request for site structure…",initial2:"Choosing from predefined fields…",updating1:"Analyzing your update request…",updating2:"Updating schema structure with changes…",generatingSite:"Building your website…",generatingContent:"Creating sample content for your site…"},N0="Login Email",A0="Login Password",O0="Generated Site",C0="Your session has expired. Please refresh the page to start a new session.",z0="Failed to submit your prompt. Please try again.",k0="Failed to generate the site. Please try again.",_0='The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — Contact me <a href="https://paroi.tech/en" target="_blank">here</a>.',D0="Extend your session",M0="Failed to refresh your session. Please try again.",j0="Error connecting to server. Please check your connection and try again.",L0="Tip: If you want to start over, open the generator in a new tab and close this one.",U0={title:zv,startInstruction:kv,createPromptPlaceholder:_v,updatePromptPlaceholder:Dv,modifySchema:Mv,createSchema:jv,generateTheWebsite:Lv,generateSiteWithData:Uv,generateEmptySite:Hv,administration:Bv,viewSite:qv,generatedSchema:Gv,treeView:$v,siteSchema:Yv,nodeTypes:Vv,labels:Qv,languageSelector:Xv,explanation:Zv,currentActivity:Kv,errorOccurred:Jv,unknownErrorOccurred:Fv,startAgain:Wv,step:Pv,stepTitle:Iv,stepPending:e0,stepFailed:t0,stepNoEffect:n0,noSessionData:a0,stepNotFound:l0,welcomeTitle:i0,reset:u0,resetSchema:s0,unknownError:r0,createNewSite:o0,generatingSite:c0,siteGenerated:f0,email:d0,password:h0,agree:p0,aboutToGenerateWebsite:g0,cancel:m0,confirm:y0,siteUrl:v0,adminUrl:b0,copyToClipboard:S0,introduction:x0,initialSchema:E0,updateSchema:T0,generateSite:R0,activity:w0,loginEmail:N0,loginPassword:A0,generatedSite:O0,sessionExpired:C0,promptSubmissionFailed:z0,generationFailed:k0,footerText:_0,extendYourSession:D0,sessionRenewalFailed:M0,errorConnectingToServer:j0,newTabRestartMessage:L0},H0="ParoiCMS - Générateur de Site",B0="<p>Décrivez ici la structure des données de votre site web : quels types de pages, dans quelles rubriques. Il est également possible de décrire des listes de sous-parties de pages.</p><p>Langages autorisés : Français, Anglais.</p>",q0="Génère un site web à propos de… Il contiendra une rubrique blog, une liste de pages, une rubrique dédiée à… contenant elle-même les sous-rubriques suivantes : … La page d'accueil doit contenir un carrousel d'images, et une liste de sous-parties contenant chacune une image et un texte.",G0="Ajoute un nouveau champ texte à la page…",$0="Modifier le schéma du site",Y0="Créer un schéma de site",V0="Générer le site web",Q0="Générer le site avec des données d'exemple (recommandé)",X0="Générer un site vide",Z0="Ouvrir l'espace d'administration du site",K0="Ouvrir le site",J0="Schéma généré",F0="Arborescence",W0="Schéma du site",P0="Types de nœuds",I0="Libellés",eb="Sélectionner la langue",tb="Explications",nb="Activité en cours",ab="Une erreur est survenue : {{ message }}",lb="Une erreur est survenue",ib="Recommencer",ub="Étape",sb="Étape {{stepNumber}} : {{kind}}",rb="Cette étape est en cours…",ob="Cette étape a échoué.",cb="Cette étape n'a eu aucun effet.",fb="Données de session non disponibles",db="Étape introuvable",hb="Bienvenue sur le générateur de site ParoiCMS",pb="Fermer et réinitialiser",gb="Réinitialiser le schéma",mb="erreur inconnue",yb="Créer un nouveau site",vb="Génération de votre site…",bb="Le site est généré",Sb="Email :",xb="Mot de passe :",Eb="J'accepte",Tb="Vous êtes sur le point de générer votre site web.",Rb="Annuler",wb="Confirmer",Nb="URL du site :",Ab="URL d'admin :",Ob="Copier toutes les informations dans le presse-papier",Cb="<p>Bienvenue sur l'outil de génération de site ParoiCMS. Cet outil vous aide à créer un nouveau site web en quelques étapes.</p><p>Pour commencer, veuillez vérifier que vous êtes humain en complétant le CAPTCHA ci-dessous.</p>",zb="Création du schéma initial",kb="Mise à jour du schéma",_b="Génération du site",Db={initial1:"Analyse de votre demande pour la structure du site…",initial2:"Choix parmi les champs prédéfinis…",updating1:"Analyse de votre demande de mise à jour…",updating2:"Mise à jour de la structure du schéma…",generatingSite:"Construction de votre site web…",generatingContent:"Création de contenu exemple pour votre site…"},Mb="Email de connexion",jb="Mot de passe",Lb="Site généré",Ub="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",Hb="Échec de l'envoi de votre demande. Veuillez réessayer.",Bb="Échec de la génération du site. Veuillez réessayer.",qb='Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — Contactez-moi <a href="https://paroi.tech/fr" target="_blank">ici</a>.',Gb="Prolonger votre session",$b="Échec du renouvellement de votre session. Veuillez réessayer.",Yb="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",Vb="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",Qb={title:H0,startInstruction:B0,createPromptPlaceholder:q0,updatePromptPlaceholder:G0,modifySchema:$0,createSchema:Y0,generateTheWebsite:V0,generateSiteWithData:Q0,generateEmptySite:X0,administration:Z0,viewSite:K0,generatedSchema:J0,treeView:F0,siteSchema:W0,nodeTypes:P0,labels:I0,languageSelector:eb,explanation:tb,currentActivity:nb,errorOccurred:ab,unknownErrorOccurred:lb,startAgain:ib,step:ub,stepTitle:sb,stepPending:rb,stepFailed:ob,stepNoEffect:cb,noSessionData:fb,stepNotFound:db,welcomeTitle:hb,reset:pb,resetSchema:gb,unknownError:mb,createNewSite:yb,generatingSite:vb,siteGenerated:bb,email:Sb,password:xb,agree:Eb,aboutToGenerateWebsite:Tb,cancel:Rb,confirm:wb,siteUrl:Nb,adminUrl:Ab,copyToClipboard:Ob,introduction:Cb,initialSchema:zb,updateSchema:kb,generateSite:_b,activity:Db,loginEmail:Mb,loginPassword:jb,generatedSite:Lb,sessionExpired:Ub,promptSubmissionFailed:Hb,generationFailed:Bb,footerText:qb,extendYourSession:Gb,sessionRenewalFailed:$b,errorConnectingToServer:Yb,newTabRestartMessage:Vb},Xb=`<p>Welcome!</p>
18
+ <p>ParoiCMS is a nice CMS, its core feature is that you can define the structure of your website. This tool will help you to describe your website.</p>
19
+ <p>A session identifier will follow you on the tab of your browser, it will be deleted when you close the tab. But your session data will be kept a while for debug purposes.</p>`,Zb=`<p>Bienvenue !</p>
20
+ <p>ParoiCMS est un CMS agréable, sa fonctionnalité principale est que vous pouvez définir la structure de votre site web. Cet outil vous aidera à décrire votre site web.</p>
21
+ <p>Un identifiant de session vous suivra dans l'onglet de votre navigateur, il sera supprimé lorsque vous fermerez l'onglet. Mais vos données de session seront conservées un moment à des fins de débogage.</p>`,Kb=`<p>Congratulations! Your website has been generated. Now you can authenticate on the back-office (using the <strong>local account</strong>) and play with it.</p>
22
+ <p>Notice that it will be deleted in 48 hours. However, if you want to keep it, you can make a backup. <strong>Each backup is a zip file that contains a full Nodejs project, ready to be installed and executed in a local environment.</strong> In this platform, generated websites will be deleted in 48 hours.</p>
23
+ <p>Make sure to copy the information below, as it will be lost once you close this panel.</p>`,Jb=`<p>Félicitations ! Votre site web a été généré. Vous pouvez maintenant vous authentifier sur le back-office (en utilisant le <strong>compte local</strong>) et l'explorer.</p>
24
+ <p>Notez qu'il sera supprimé dans 48 heures. Cependant, si vous souhaitez le conserver, vous pouvez en faire une sauvegarde. <strong>Chaque sauvegarde est un fichier zip qui contient un projet Node.js complet, prêt à être installé et exécuté dans un environnement local.</strong> Sur cette plateforme, les sites web générés seront supprimés dans 48 heures.</p>
25
+ <p>Assurez-vous de copier les informations ci-dessous, car elles seront perdues une fois que vous fermerez ce panneau.</p>`,Fb={en:{translation:{...U0,introduction:Xb,userManual:Kb}},fr:{translation:{...Qb,introduction:Zb,userManual:Jb}}};nt.use(wv).init({resources:Fb,lng:navigator.language.split("-")[0],fallbackLng:"en",interpolation:{escapeValue:!1}});var go={exports:{}},Wl={},mo={exports:{}},yo={};/**
141
26
  * @license React
142
27
  * scheduler.production.js
143
28
  *
@@ -145,7 +30,7 @@ var Vy=Object.defineProperty;var Qy=(i,l,u)=>l in i?Vy(i,l,{enumerable:!0,config
145
30
  *
146
31
  * This source code is licensed under the MIT license found in the
147
32
  * LICENSE file in the root directory of this source tree.
148
- */var pp;function Pb(){return pp||(pp=1,function(i){function l(D,$){var P=D.length;D.push($);e:for(;0<P;){var me=P-1>>>1,R=D[me];if(0<c(R,$))D[me]=$,D[P]=R,P=me;else break e}}function u(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var $=D[0],P=D.pop();if(P!==$){D[0]=P;e:for(var me=0,R=D.length,U=R>>>1;me<U;){var V=2*(me+1)-1,Y=D[V],W=V+1,pe=D[W];if(0>c(Y,P))W<R&&0>c(pe,Y)?(D[me]=pe,D[W]=P,me=W):(D[me]=Y,D[V]=P,me=V);else if(W<R&&0>c(pe,P))D[me]=pe,D[W]=P,me=W;else break e}}return $}function c(D,$){var P=D.sortIndex-$.sortIndex;return P!==0?P:D.id-$.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();i.unstable_now=function(){return p.now()-h}}var g=[],d=[],v=1,S=null,b=3,_=!1,T=!1,j=!1,G=!1,B=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function F(D){for(var $=u(d);$!==null;){if($.callback===null)r(d);else if($.startTime<=D)r(d),$.sortIndex=$.expirationTime,l(g,$);else break;$=u(d)}}function Z(D){if(j=!1,F(D),!T)if(u(g)!==null)T=!0,de||(de=!0,De());else{var $=u(d);$!==null&&$e(Z,$.startTime-D)}}var de=!1,le=-1,ie=5,Q=-1;function ee(){return G?!0:!(i.unstable_now()-Q<ie)}function he(){if(G=!1,de){var D=i.unstable_now();Q=D;var $=!0;try{e:{T=!1,j&&(j=!1,q(le),le=-1),_=!0;var P=b;try{t:{for(F(D),S=u(g);S!==null&&!(S.expirationTime>D&&ee());){var me=S.callback;if(typeof me=="function"){S.callback=null,b=S.priorityLevel;var R=me(S.expirationTime<=D);if(D=i.unstable_now(),typeof R=="function"){S.callback=R,F(D),$=!0;break t}S===u(g)&&r(g),F(D)}else r(g);S=u(g)}if(S!==null)$=!0;else{var U=u(d);U!==null&&$e(Z,U.startTime-D),$=!1}}break e}finally{S=null,b=P,_=!1}$=void 0}}finally{$?De():de=!1}}}var De;if(typeof X=="function")De=function(){X(he)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ce=Ue.port2;Ue.port1.onmessage=he,De=function(){Ce.postMessage(null)}}else De=function(){B(he,0)};function $e(D,$){le=B(function(){D(i.unstable_now())},$)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_next=function(D){switch(b){case 1:case 2:case 3:var $=3;break;default:$=b}var P=b;b=$;try{return D()}finally{b=P}},i.unstable_requestPaint=function(){G=!0},i.unstable_runWithPriority=function(D,$){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var P=b;b=D;try{return $()}finally{b=P}},i.unstable_scheduleCallback=function(D,$,P){var me=i.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?me+P:me):P=me,D){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=P+R,D={id:v++,callback:$,priorityLevel:D,startTime:P,expirationTime:R,sortIndex:-1},P>me?(D.sortIndex=P,l(d,D),u(g)===null&&D===u(d)&&(j?(q(le),le=-1):j=!0,$e(Z,P-me))):(D.sortIndex=R,l(g,D),T||_||(T=!0,de||(de=!0,De()))),D},i.unstable_shouldYield=ee,i.unstable_wrapCallback=function(D){var $=b;return function(){var P=b;b=$;try{return D.apply(this,arguments)}finally{b=P}}}}(yo)),yo}var gp;function Wb(){return gp||(gp=1,mo.exports=Pb()),mo.exports}var vo={exports:{}},et={};/**
33
+ */var pp;function Wb(){return pp||(pp=1,function(i){function l(D,$){var W=D.length;D.push($);e:for(;0<W;){var me=W-1>>>1,R=D[me];if(0<c(R,$))D[me]=$,D[W]=R,W=me;else break e}}function s(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var $=D[0],W=D.pop();if(W!==$){D[0]=W;e:for(var me=0,R=D.length,U=R>>>1;me<U;){var V=2*(me+1)-1,Y=D[V],P=V+1,pe=D[P];if(0>c(Y,W))P<R&&0>c(pe,Y)?(D[me]=pe,D[P]=W,me=P):(D[me]=Y,D[V]=W,me=V);else if(P<R&&0>c(pe,W))D[me]=pe,D[P]=W,me=P;else break e}}return $}function c(D,$){var W=D.sortIndex-$.sortIndex;return W!==0?W:D.id-$.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();i.unstable_now=function(){return p.now()-h}}var g=[],d=[],y=1,S=null,b=3,_=!1,T=!1,M=!1,G=!1,B=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function F(D){for(var $=s(d);$!==null;){if($.callback===null)r(d);else if($.startTime<=D)r(d),$.sortIndex=$.expirationTime,l(g,$);else break;$=s(d)}}function Z(D){if(M=!1,F(D),!T)if(s(g)!==null)T=!0,de||(de=!0,De());else{var $=s(d);$!==null&&$e(Z,$.startTime-D)}}var de=!1,le=-1,ie=5,Q=-1;function ee(){return G?!0:!(i.unstable_now()-Q<ie)}function he(){if(G=!1,de){var D=i.unstable_now();Q=D;var $=!0;try{e:{T=!1,M&&(M=!1,q(le),le=-1),_=!0;var W=b;try{t:{for(F(D),S=s(g);S!==null&&!(S.expirationTime>D&&ee());){var me=S.callback;if(typeof me=="function"){S.callback=null,b=S.priorityLevel;var R=me(S.expirationTime<=D);if(D=i.unstable_now(),typeof R=="function"){S.callback=R,F(D),$=!0;break t}S===s(g)&&r(g),F(D)}else r(g);S=s(g)}if(S!==null)$=!0;else{var U=s(d);U!==null&&$e(Z,U.startTime-D),$=!1}}break e}finally{S=null,b=W,_=!1}$=void 0}}finally{$?De():de=!1}}}var De;if(typeof X=="function")De=function(){X(he)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ce=Ue.port2;Ue.port1.onmessage=he,De=function(){Ce.postMessage(null)}}else De=function(){B(he,0)};function $e(D,$){le=B(function(){D(i.unstable_now())},$)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_next=function(D){switch(b){case 1:case 2:case 3:var $=3;break;default:$=b}var W=b;b=$;try{return D()}finally{b=W}},i.unstable_requestPaint=function(){G=!0},i.unstable_runWithPriority=function(D,$){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=b;b=D;try{return $()}finally{b=W}},i.unstable_scheduleCallback=function(D,$,W){var me=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?me+W:me):W=me,D){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=W+R,D={id:y++,callback:$,priorityLevel:D,startTime:W,expirationTime:R,sortIndex:-1},W>me?(D.sortIndex=W,l(d,D),s(g)===null&&D===s(d)&&(M?(q(le),le=-1):M=!0,$e(Z,W-me))):(D.sortIndex=R,l(g,D),T||_||(T=!0,de||(de=!0,De()))),D},i.unstable_shouldYield=ee,i.unstable_wrapCallback=function(D){var $=b;return function(){var W=b;b=$;try{return D.apply(this,arguments)}finally{b=W}}}}(yo)),yo}var gp;function Pb(){return gp||(gp=1,mo.exports=Wb()),mo.exports}var vo={exports:{}},et={};/**
149
34
  * @license React
150
35
  * react-dom.production.js
151
36
  *
@@ -153,7 +38,7 @@ var Vy=Object.defineProperty;var Qy=(i,l,u)=>l in i?Vy(i,l,{enumerable:!0,config
153
38
  *
154
39
  * This source code is licensed under the MIT license found in the
155
40
  * LICENSE file in the root directory of this source tree.
156
- */var mp;function Ib(){if(mp)return et;mp=1;var i=Lo();function l(g){var d="https://react.dev/errors/"+g;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)d+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(l(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,d,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:g,containerInfo:d,implementation:v}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,d){if(g==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,et.createPortal=function(g,d){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(l(299));return f(g,d,null,v)},et.flushSync=function(g){var d=p.T,v=r.p;try{if(p.T=null,r.p=2,g)return g()}finally{p.T=d,r.p=v,r.d.f()}},et.preconnect=function(g,d){typeof g=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(g,d))},et.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},et.preinit=function(g,d){if(typeof g=="string"&&d&&typeof d.as=="string"){var v=d.as,S=h(v,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;v==="style"?r.d.S(g,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:_}):v==="script"&&r.d.X(g,{crossOrigin:S,integrity:b,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},et.preinitModule=function(g,d){if(typeof g=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var v=h(d.as,d.crossOrigin);r.d.M(g,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(g)},et.preload=function(g,d){if(typeof g=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var v=d.as,S=h(v,d.crossOrigin);r.d.L(g,v,{crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},et.preloadModule=function(g,d){if(typeof g=="string")if(d){var v=h(d.as,d.crossOrigin);r.d.m(g,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(g)},et.requestFormReset=function(g){r.d.r(g)},et.unstable_batchedUpdates=function(g,d){return g(d)},et.useFormState=function(g,d,v){return p.H.useFormState(g,d,v)},et.useFormStatus=function(){return p.H.useHostTransitionStatus()},et.version="19.1.0",et}var yp;function eS(){if(yp)return vo.exports;yp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),vo.exports=Ib(),vo.exports}/**
41
+ */var mp;function Ib(){if(mp)return et;mp=1;var i=Lo();function l(g){var d="https://react.dev/errors/"+g;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(l(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,d,y){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:g,containerInfo:d,implementation:y}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,d){if(g==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,et.createPortal=function(g,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(l(299));return f(g,d,null,y)},et.flushSync=function(g){var d=p.T,y=r.p;try{if(p.T=null,r.p=2,g)return g()}finally{p.T=d,r.p=y,r.d.f()}},et.preconnect=function(g,d){typeof g=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(g,d))},et.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},et.preinit=function(g,d){if(typeof g=="string"&&d&&typeof d.as=="string"){var y=d.as,S=h(y,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;y==="style"?r.d.S(g,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:_}):y==="script"&&r.d.X(g,{crossOrigin:S,integrity:b,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},et.preinitModule=function(g,d){if(typeof g=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var y=h(d.as,d.crossOrigin);r.d.M(g,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(g)},et.preload=function(g,d){if(typeof g=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var y=d.as,S=h(y,d.crossOrigin);r.d.L(g,y,{crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},et.preloadModule=function(g,d){if(typeof g=="string")if(d){var y=h(d.as,d.crossOrigin);r.d.m(g,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(g)},et.requestFormReset=function(g){r.d.r(g)},et.unstable_batchedUpdates=function(g,d){return g(d)},et.useFormState=function(g,d,y){return p.H.useFormState(g,d,y)},et.useFormStatus=function(){return p.H.useHostTransitionStatus()},et.version="19.1.0",et}var yp;function eS(){if(yp)return vo.exports;yp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),vo.exports=Ib(),vo.exports}/**
157
42
  * @license React
158
43
  * react-dom-client.production.js
159
44
  *
@@ -161,75 +46,75 @@ var Vy=Object.defineProperty;var Qy=(i,l,u)=>l in i?Vy(i,l,{enumerable:!0,config
161
46
  *
162
47
  * This source code is licensed under the MIT license found in the
163
48
  * LICENSE file in the root directory of this source tree.
164
- */var vp;function tS(){if(vp)return Pl;vp=1;var i=Wb(),l=Lo(),u=eS();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return h(s),e;if(o===a)return h(s),t;o=o.sibling}throw Error(r(188))}if(n.return!==a.return)n=s,a=o;else{for(var m=!1,y=s.child;y;){if(y===n){m=!0,n=s,a=o;break}if(y===a){m=!0,a=s,n=o;break}y=y.sibling}if(!m){for(y=o.child;y;){if(y===n){m=!0,n=o,a=s;break}if(y===a){m=!0,a=o,n=s;break}y=y.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function De(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function Ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case G:return"Profiler";case j:return"StrictMode";case Z:return"Suspense";case de:return"SuspenseList";case Q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case X:return(e.displayName||"Context")+".Provider";case q:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:Ce(e.type)||"Memo";case ie:t=e._payload,e=e._init;try{return Ce(e(t))}catch{}}return null}var $e=Array.isArray,D=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},me=[],R=-1;function U(e){return{current:e}}function V(e){0>R||(e.current=me[R],me[R]=null,R--)}function Y(e,t){R++,me[R]=e.current,e.current=t}var W=U(null),pe=U(null),se=U(null),dt=U(null);function ke(e,t){switch(Y(se,t),Y(pe,e),Y(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Eh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Eh(t),e=Th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(W),Y(W,e)}function dn(){V(W),V(pe),V(se)}function Fs(e){e.memoizedState!==null&&Y(dt,e);var t=W.current,n=Th(t,e.type);t!==n&&(Y(pe,e),Y(W,n))}function di(e){pe.current===e&&(V(W),V(pe)),dt.current===e&&(V(dt),Vl._currentValue=P)}var Ps=Object.prototype.hasOwnProperty,Ws=i.unstable_scheduleCallback,Is=i.unstable_cancelCallback,Eg=i.unstable_shouldYield,Tg=i.unstable_requestPaint,Ht=i.unstable_now,Rg=i.unstable_getCurrentPriorityLevel,tc=i.unstable_ImmediatePriority,nc=i.unstable_UserBlockingPriority,hi=i.unstable_NormalPriority,wg=i.unstable_LowPriority,ac=i.unstable_IdlePriority,Ng=i.log,Og=i.unstable_setDisableYieldValue,Wa=null,ht=null;function hn(e){if(typeof Ng=="function"&&Og(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Wa,e)}catch{}}var pt=Math.clz32?Math.clz32:kg,Ag=Math.log,Cg=Math.LN2;function kg(e){return e>>>=0,e===0?32:31-(Ag(e)/Cg|0)|0}var pi=256,gi=4194304;function Bn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~o,a!==0?s=Bn(a):(m&=y,m!==0?s=Bn(m):n||(n=y&~e,n!==0&&(s=Bn(n))))):(y=a&~o,y!==0?s=Bn(y):m!==0?s=Bn(m):n||(n=a&~e,n!==0&&(s=Bn(n)))),s===0?0:t!==0&&t!==s&&(t&o)===0&&(o=s&-s,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:s}function Ia(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lc(){var e=pi;return pi<<=1,(pi&4194048)===0&&(pi=256),e}function ic(){var e=gi;return gi<<=1,(gi&62914560)===0&&(gi=4194304),e}function eu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function el(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _g(e,t,n,a,s,o){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,x=e.expirationTimes,C=e.hiddenUpdates;for(n=m&~n;0<n;){var M=31-pt(n),H=1<<M;y[M]=0,x[M]=-1;var k=C[M];if(k!==null)for(C[M]=null,M=0;M<k.length;M++){var z=k[M];z!==null&&(z.lane&=-536870913)}n&=~H}a!==0&&sc(e,a,0),o!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function sc(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-pt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&4194090}function uc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-pt(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function tu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rc(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:$h(e.type))}function Dg(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var pn=Math.random().toString(36).slice(2),We="__reactFiber$"+pn,ut="__reactProps$"+pn,ra="__reactContainer$"+pn,au="__reactEvents$"+pn,jg="__reactListeners$"+pn,Mg="__reactHandles$"+pn,oc="__reactResources$"+pn,tl="__reactMarker$"+pn;function lu(e){delete e[We],delete e[ut],delete e[au],delete e[jg],delete e[Mg]}function oa(e){var t=e[We];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ra]||n[We]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Oh(e);e!==null;){if(n=e[We])return n;e=Oh(e)}return t}e=n,n=e.parentNode}return null}function ca(e){if(e=e[We]||e[ra]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function nl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function fa(e){var t=e[oc];return t||(t=e[oc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[tl]=!0}var cc=new Set,fc={};function qn(e,t){da(e,t),da(e+"Capture",t)}function da(e,t){for(fc[e]=t,e=0;e<t.length;e++)cc.add(t[e])}var Lg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dc={},hc={};function Ug(e){return Ps.call(hc,e)?!0:Ps.call(dc,e)?!1:Lg.test(e)?hc[e]=!0:(dc[e]=!0,!1)}function yi(e,t,n){if(Ug(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function vi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Xt(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}var iu,pc;function ha(e){if(iu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);iu=t&&t[1]||"",pc=-1<n.stack.indexOf(`
49
+ */var vp;function tS(){if(vp)return Wl;vp=1;var i=Pb(),l=Lo(),s=eS();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var u=n.return;if(u===null)break;var o=u.alternate;if(o===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===o.child){for(o=u.child;o;){if(o===n)return h(u),e;if(o===a)return h(u),t;o=o.sibling}throw Error(r(188))}if(n.return!==a.return)n=u,a=o;else{for(var m=!1,v=u.child;v;){if(v===n){m=!0,n=u,a=o;break}if(v===a){m=!0,a=u,n=o;break}v=v.sibling}if(!m){for(v=o.child;v;){if(v===n){m=!0,n=o,a=u;break}if(v===a){m=!0,a=o,n=u;break}v=v.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function De(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function Ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case G:return"Profiler";case M:return"StrictMode";case Z:return"Suspense";case de:return"SuspenseList";case Q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case X:return(e.displayName||"Context")+".Provider";case q:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:Ce(e.type)||"Memo";case ie:t=e._payload,e=e._init;try{return Ce(e(t))}catch{}}return null}var $e=Array.isArray,D=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},me=[],R=-1;function U(e){return{current:e}}function V(e){0>R||(e.current=me[R],me[R]=null,R--)}function Y(e,t){R++,me[R]=e.current,e.current=t}var P=U(null),pe=U(null),ue=U(null),dt=U(null);function ze(e,t){switch(Y(ue,t),Y(pe,e),Y(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Eh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Eh(t),e=Th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(P),Y(P,e)}function dn(){V(P),V(pe),V(ue)}function Fu(e){e.memoizedState!==null&&Y(dt,e);var t=P.current,n=Th(t,e.type);t!==n&&(Y(pe,e),Y(P,n))}function di(e){pe.current===e&&(V(P),V(pe)),dt.current===e&&(V(dt),Vl._currentValue=W)}var Wu=Object.prototype.hasOwnProperty,Pu=i.unstable_scheduleCallback,Iu=i.unstable_cancelCallback,Eg=i.unstable_shouldYield,Tg=i.unstable_requestPaint,Ht=i.unstable_now,Rg=i.unstable_getCurrentPriorityLevel,tc=i.unstable_ImmediatePriority,nc=i.unstable_UserBlockingPriority,hi=i.unstable_NormalPriority,wg=i.unstable_LowPriority,ac=i.unstable_IdlePriority,Ng=i.log,Ag=i.unstable_setDisableYieldValue,Pa=null,ht=null;function hn(e){if(typeof Ng=="function"&&Ag(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Pa,e)}catch{}}var pt=Math.clz32?Math.clz32:zg,Og=Math.log,Cg=Math.LN2;function zg(e){return e>>>=0,e===0?32:31-(Og(e)/Cg|0)|0}var pi=256,gi=4194304;function Bn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var u=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~o,a!==0?u=Bn(a):(m&=v,m!==0?u=Bn(m):n||(n=v&~e,n!==0&&(u=Bn(n))))):(v=a&~o,v!==0?u=Bn(v):m!==0?u=Bn(m):n||(n=a&~e,n!==0&&(u=Bn(n)))),u===0?0:t!==0&&t!==u&&(t&o)===0&&(o=u&-u,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:u}function Ia(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lc(){var e=pi;return pi<<=1,(pi&4194048)===0&&(pi=256),e}function ic(){var e=gi;return gi<<=1,(gi&62914560)===0&&(gi=4194304),e}function es(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function el(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _g(e,t,n,a,u,o){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,x=e.expirationTimes,C=e.hiddenUpdates;for(n=m&~n;0<n;){var j=31-pt(n),H=1<<j;v[j]=0,x[j]=-1;var z=C[j];if(z!==null)for(C[j]=null,j=0;j<z.length;j++){var k=z[j];k!==null&&(k.lane&=-536870913)}n&=~H}a!==0&&uc(e,a,0),o!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function uc(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-pt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&4194090}function sc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-pt(n),u=1<<a;u&t|e[a]&t&&(e[a]|=t),n&=~u}}function ts(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ns(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rc(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:$h(e.type))}function Dg(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var pn=Math.random().toString(36).slice(2),Pe="__reactFiber$"+pn,st="__reactProps$"+pn,ra="__reactContainer$"+pn,as="__reactEvents$"+pn,Mg="__reactListeners$"+pn,jg="__reactHandles$"+pn,oc="__reactResources$"+pn,tl="__reactMarker$"+pn;function ls(e){delete e[Pe],delete e[st],delete e[as],delete e[Mg],delete e[jg]}function oa(e){var t=e[Pe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ra]||n[Pe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ah(e);e!==null;){if(n=e[Pe])return n;e=Ah(e)}return t}e=n,n=e.parentNode}return null}function ca(e){if(e=e[Pe]||e[ra]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function nl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function fa(e){var t=e[oc];return t||(t=e[oc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[tl]=!0}var cc=new Set,fc={};function qn(e,t){da(e,t),da(e+"Capture",t)}function da(e,t){for(fc[e]=t,e=0;e<t.length;e++)cc.add(t[e])}var Lg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dc={},hc={};function Ug(e){return Wu.call(hc,e)?!0:Wu.call(dc,e)?!1:Lg.test(e)?hc[e]=!0:(dc[e]=!0,!1)}function yi(e,t,n){if(Ug(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function vi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Xt(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}var is,pc;function ha(e){if(is===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);is=t&&t[1]||"",pc=-1<n.stack.indexOf(`
165
50
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
166
- `+iu+e+pc}var su=!1;function uu(e,t){if(!e||su)return"";su=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(z){var k=z}Reflect.construct(e,[],H)}else{try{H.call()}catch(z){k=z}e.call(H.prototype)}}else{try{throw Error()}catch(z){k=z}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(z){if(z&&k&&typeof z.stack=="string")return[z.stack,k.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),m=o[0],y=o[1];if(m&&y){var x=m.split(`
167
- `),C=y.split(`
168
- `);for(s=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;s<C.length&&!C[s].includes("DetermineComponentFrameRoot");)s++;if(a===x.length||s===C.length)for(a=x.length-1,s=C.length-1;1<=a&&0<=s&&x[a]!==C[s];)s--;for(;1<=a&&0<=s;a--,s--)if(x[a]!==C[s]){if(a!==1||s!==1)do if(a--,s--,0>s||x[a]!==C[s]){var M=`
169
- `+x[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=s);break}}}finally{su=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ha(n):""}function Hg(e){switch(e.tag){case 26:case 27:case 5:return ha(e.type);case 16:return ha("Lazy");case 13:return ha("Suspense");case 19:return ha("SuspenseList");case 0:case 15:return uu(e.type,!1);case 11:return uu(e.type.render,!1);case 1:return uu(e.type,!0);case 31:return ha("Activity");default:return""}}function gc(e){try{var t="";do t+=Hg(e),e=e.return;while(e);return t}catch(n){return`
51
+ `+is+e+pc}var us=!1;function ss(e,t){if(!e||us)return"";us=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(k){var z=k}Reflect.construct(e,[],H)}else{try{H.call()}catch(k){z=k}e.call(H.prototype)}}else{try{throw Error()}catch(k){z=k}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(k){if(k&&z&&typeof k.stack=="string")return[k.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),m=o[0],v=o[1];if(m&&v){var x=m.split(`
52
+ `),C=v.split(`
53
+ `);for(u=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;u<C.length&&!C[u].includes("DetermineComponentFrameRoot");)u++;if(a===x.length||u===C.length)for(a=x.length-1,u=C.length-1;1<=a&&0<=u&&x[a]!==C[u];)u--;for(;1<=a&&0<=u;a--,u--)if(x[a]!==C[u]){if(a!==1||u!==1)do if(a--,u--,0>u||x[a]!==C[u]){var j=`
54
+ `+x[a].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=a&&0<=u);break}}}finally{us=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ha(n):""}function Hg(e){switch(e.tag){case 26:case 27:case 5:return ha(e.type);case 16:return ha("Lazy");case 13:return ha("Suspense");case 19:return ha("SuspenseList");case 0:case 15:return ss(e.type,!1);case 11:return ss(e.type.render,!1);case 1:return ss(e.type,!0);case 31:return ha("Activity");default:return""}}function gc(e){try{var t="";do t+=Hg(e),e=e.return;while(e);return t}catch(n){return`
170
55
  Error generating stack: `+n.message+`
171
- `+n.stack}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bg(e){var t=mc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(m){a=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bi(e){e._valueTracker||(e._valueTracker=Bg(e))}function yc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=mc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Si(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var qg=/[\n"\\]/g;function Rt(e){return e.replace(qg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ru(e,t,n,a,s,o,m,y){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?ou(e,m,Tt(t)):n!=null?ou(e,m,Tt(n)):a!=null&&e.removeAttribute("value"),s==null&&o!=null&&(e.defaultChecked=!!o),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Tt(y):e.removeAttribute("name")}function vc(e,t,n,a,s,o,m,y){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null))return;n=n!=null?""+Tt(n):"",t=t!=null?""+Tt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m)}function ou(e,t,n){t==="number"&&Si(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pa(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Tt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function bc(e,t,n){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Tt(n):""}function Sc(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if($e(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Tt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a)}function ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xc(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Gg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ec(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&xc(e,s,a)}else for(var o in t)t.hasOwnProperty(o)&&xc(e,o,t[o])}function cu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $g=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Yg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xi(e){return Yg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var fu=null;function du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,ya=null;function Tc(e){var t=ca(e);if(t&&(e=t.stateNode)){var n=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(ru(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Rt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[ut]||null;if(!s)throw Error(r(90));ru(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&yc(a)}break e;case"textarea":bc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pa(e,!!n.multiple,t,!1)}}}var hu=!1;function Rc(e,t,n){if(hu)return e(t,n);hu=!0;try{var a=e(t);return a}finally{if(hu=!1,(ma!==null||ya!==null)&&(ss(),ma&&(t=ma,e=ya,ya=ma=null,Tc(t),e)))for(t=0;t<e.length;t++)Tc(e[t])}}function al(e,t){var n=e.stateNode;if(n===null)return null;var a=n[ut]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pu=!1;if(Zt)try{var ll={};Object.defineProperty(ll,"passive",{get:function(){pu=!0}}),window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{pu=!1}var gn=null,gu=null,Ei=null;function wc(){if(Ei)return Ei;var e,t=gu,n=t.length,a,s="value"in gn?gn.value:gn.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===s[o-a];a++);return Ei=s.slice(e,1<a?1-a:void 0)}function Ti(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ri(){return!0}function Nc(){return!1}function rt(e){function t(n,a,s,o,m){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(o):o[y]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ri:Nc,this.isPropagationStopped=Nc,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ri)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ri)},persist:function(){},isPersistent:Ri}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=rt(Gn),il=v({},Gn,{view:0,detail:0}),Vg=rt(il),mu,yu,sl,Ni=v({},il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sl&&(sl&&e.type==="mousemove"?(mu=e.screenX-sl.screenX,yu=e.screenY-sl.screenY):yu=mu=0,sl=e),mu)},movementY:function(e){return"movementY"in e?e.movementY:yu}}),Oc=rt(Ni),Qg=v({},Ni,{dataTransfer:0}),Xg=rt(Qg),Zg=v({},il,{relatedTarget:0}),vu=rt(Zg),Kg=v({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Jg=rt(Kg),Fg=v({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Pg=rt(Fg),Wg=v({},Gn,{data:0}),Ac=rt(Wg),Ig={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},em={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tm[e])?!!t[e]:!1}function bu(){return nm}var am=v({},il,{key:function(e){if(e.key){var t=Ig[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ti(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?em[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bu,charCode:function(e){return e.type==="keypress"?Ti(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ti(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lm=rt(am),im=v({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cc=rt(im),sm=v({},il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bu}),um=rt(sm),rm=v({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),om=rt(rm),cm=v({},Ni,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fm=rt(cm),dm=v({},Gn,{newState:0,oldState:0}),hm=rt(dm),pm=[9,13,27,32],Su=Zt&&"CompositionEvent"in window,ul=null;Zt&&"documentMode"in document&&(ul=document.documentMode);var gm=Zt&&"TextEvent"in window&&!ul,kc=Zt&&(!Su||ul&&8<ul&&11>=ul),zc=" ",_c=!1;function Dc(e,t){switch(e){case"keyup":return pm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function mm(e,t){switch(e){case"compositionend":return jc(t);case"keypress":return t.which!==32?null:(_c=!0,zc);case"textInput":return e=t.data,e===zc&&_c?null:e;default:return null}}function ym(e,t){if(va)return e==="compositionend"||!Su&&Dc(e,t)?(e=wc(),Ei=gu=gn=null,va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kc&&t.locale!=="ko"?null:t.data;default:return null}}var vm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vm[e.type]:t==="textarea"}function Lc(e,t,n,a){ma?ya?ya.push(a):ya=[a]:ma=a,t=ds(t,"onChange"),0<t.length&&(n=new wi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var rl=null,ol=null;function bm(e){yh(e,0)}function Oi(e){var t=nl(e);if(yc(t))return e}function Uc(e,t){if(e==="change")return t}var Hc=!1;if(Zt){var xu;if(Zt){var Eu="oninput"in document;if(!Eu){var Bc=document.createElement("div");Bc.setAttribute("oninput","return;"),Eu=typeof Bc.oninput=="function"}xu=Eu}else xu=!1;Hc=xu&&(!document.documentMode||9<document.documentMode)}function qc(){rl&&(rl.detachEvent("onpropertychange",Gc),ol=rl=null)}function Gc(e){if(e.propertyName==="value"&&Oi(ol)){var t=[];Lc(t,ol,e,du(e)),Rc(bm,t)}}function Sm(e,t,n){e==="focusin"?(qc(),rl=t,ol=n,rl.attachEvent("onpropertychange",Gc)):e==="focusout"&&qc()}function xm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oi(ol)}function Em(e,t){if(e==="click")return Oi(t)}function Tm(e,t){if(e==="input"||e==="change")return Oi(t)}function Rm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:Rm;function cl(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!Ps.call(t,s)||!gt(e[s],t[s]))return!1}return!0}function $c(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yc(e,t){var n=$c(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$c(n)}}function Vc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Si(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Si(e.document)}return t}function Tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var wm=Zt&&"documentMode"in document&&11>=document.documentMode,ba=null,Ru=null,fl=null,wu=!1;function Xc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wu||ba==null||ba!==Si(a)||(a=ba,"selectionStart"in a&&Tu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),fl&&cl(fl,a)||(fl=a,a=ds(Ru,"onSelect"),0<a.length&&(t=new wi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ba)))}function $n(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sa={animationend:$n("Animation","AnimationEnd"),animationiteration:$n("Animation","AnimationIteration"),animationstart:$n("Animation","AnimationStart"),transitionrun:$n("Transition","TransitionRun"),transitionstart:$n("Transition","TransitionStart"),transitioncancel:$n("Transition","TransitionCancel"),transitionend:$n("Transition","TransitionEnd")},Nu={},Zc={};Zt&&(Zc=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);function Yn(e){if(Nu[e])return Nu[e];if(!Sa[e])return e;var t=Sa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zc)return Nu[e]=t[n];return e}var Kc=Yn("animationend"),Jc=Yn("animationiteration"),Fc=Yn("animationstart"),Nm=Yn("transitionrun"),Om=Yn("transitionstart"),Am=Yn("transitioncancel"),Pc=Yn("transitionend"),Wc=new Map,Ou="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ou.push("scrollEnd");function Dt(e,t){Wc.set(e,t),qn(t,[e])}var Ic=new WeakMap;function wt(e,t){if(typeof e=="object"&&e!==null){var n=Ic.get(e);return n!==void 0?n:(t={value:e,source:t,stack:gc(t)},Ic.set(e,t),t)}return{value:e,source:t,stack:gc(t)}}var Nt=[],xa=0,Au=0;function Ai(){for(var e=xa,t=Au=xa=0;t<e;){var n=Nt[t];Nt[t++]=null;var a=Nt[t];Nt[t++]=null;var s=Nt[t];Nt[t++]=null;var o=Nt[t];if(Nt[t++]=null,a!==null&&s!==null){var m=a.pending;m===null?s.next=s:(s.next=m.next,m.next=s),a.pending=s}o!==0&&ef(n,s,o)}}function Ci(e,t,n,a){Nt[xa++]=e,Nt[xa++]=t,Nt[xa++]=n,Nt[xa++]=a,Au|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Cu(e,t,n,a){return Ci(e,t,n,a),ki(e)}function Ea(e,t){return Ci(e,null,null,t),ki(e)}function ef(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(s=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,s&&t!==null&&(s=31-pt(n),e=o.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),o):null}function ki(e){if(50<Ll)throw Ll=0,Mr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ta={};function Cm(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,a){return new Cm(e,t,n,a)}function ku(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kt(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function tf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zi(e,t,n,a,s,o){var m=0;if(a=e,typeof e=="function")ku(e)&&(m=1);else if(typeof e=="string")m=zy(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Q:return e=mt(31,n,t,s),e.elementType=Q,e.lanes=o,e;case T:return Vn(n.children,s,o,t);case j:m=8,s|=24;break;case G:return e=mt(12,n,t,s|2),e.elementType=G,e.lanes=o,e;case Z:return e=mt(13,n,t,s),e.elementType=Z,e.lanes=o,e;case de:return e=mt(19,n,t,s),e.elementType=de,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:case X:m=10;break e;case q:m=9;break e;case F:m=11;break e;case le:m=14;break e;case ie:m=16,a=null;break e}m=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=mt(m,n,t,s),t.elementType=e,t.type=a,t.lanes=o,t}function Vn(e,t,n,a){return e=mt(7,e,a,t),e.lanes=n,e}function zu(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function _u(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ra=[],wa=0,_i=null,Di=0,Ot=[],At=0,Qn=null,Jt=1,Ft="";function Xn(e,t){Ra[wa++]=Di,Ra[wa++]=_i,_i=e,Di=t}function nf(e,t,n){Ot[At++]=Jt,Ot[At++]=Ft,Ot[At++]=Qn,Qn=e;var a=Jt;e=Ft;var s=32-pt(a)-1;a&=~(1<<s),n+=1;var o=32-pt(t)+s;if(30<o){var m=s-s%5;o=(a&(1<<m)-1).toString(32),a>>=m,s-=m,Jt=1<<32-pt(t)+s|n<<s|a,Ft=o+e}else Jt=1<<o|n<<s|a,Ft=e}function Du(e){e.return!==null&&(Xn(e,1),nf(e,1,0))}function ju(e){for(;e===_i;)_i=Ra[--wa],Ra[wa]=null,Di=Ra[--wa],Ra[wa]=null;for(;e===Qn;)Qn=Ot[--At],Ot[At]=null,Ft=Ot[--At],Ot[At]=null,Jt=Ot[--At],Ot[At]=null}var lt=null,Me=null,ve=!1,Zn=null,Bt=!1,Mu=Error(r(519));function Kn(e){var t=Error(r(418,""));throw pl(wt(t,e)),Mu}function af(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[We]=e,t[ut]=a,n){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(n=0;n<Hl.length;n++)fe(Hl[n],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),vc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),bi(t);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),Sc(t,a.value,a.defaultValue,a.children),bi(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||xh(t.textContent,n)?(a.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),a.onScroll!=null&&fe("scroll",t),a.onScrollEnd!=null&&fe("scrollend",t),a.onClick!=null&&(t.onclick=hs),t=!0):t=!1,t||Kn(e)}function lf(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:lt=lt.return}}function dl(e){if(e!==lt)return!1;if(!ve)return lf(e),ve=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Pr(e.type,e.memoizedProps)),n=!n),n&&Me&&Kn(e),lf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Me=Mt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Me=null}}else t===27?(t=Me,zn(e.type)?(e=to,to=null,Me=e):Me=t):Me=lt?Mt(e.stateNode.nextSibling):null;return!0}function hl(){Me=lt=null,ve=!1}function sf(){var e=Zn;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),Zn=null),e}function pl(e){Zn===null?Zn=[e]:Zn.push(e)}var Lu=U(null),Jn=null,Pt=null;function mn(e,t,n){Y(Lu,t._currentValue),t._currentValue=n}function Wt(e){e._currentValue=Lu.current,V(Lu)}function Uu(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Hu(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){var m=s.child;o=o.firstContext;e:for(;o!==null;){var y=o;o=s;for(var x=0;x<t.length;x++)if(y.context===t[x]){o.lanes|=n,y=o.alternate,y!==null&&(y.lanes|=n),Uu(o.return,n,e),a||(m=null);break e}o=y.next}}else if(s.tag===18){if(m=s.return,m===null)throw Error(r(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Uu(m,n,e),m=null}else m=s.child;if(m!==null)m.return=s;else for(m=s;m!==null;){if(m===e){m=null;break}if(s=m.sibling,s!==null){s.return=m.return,m=s;break}m=m.return}s=m}}function gl(e,t,n,a){e=null;for(var s=t,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var m=s.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var y=s.type;gt(s.pendingProps.value,m.value)||(e!==null?e.push(y):e=[y])}}else if(s===dt.current){if(m=s.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Vl):e=[Vl])}s=s.return}e!==null&&Hu(t,e,n,a),t.flags|=262144}function ji(e){for(e=e.firstContext;e!==null;){if(!gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fn(e){Jn=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return uf(Jn,e)}function Mi(e,t){return Jn===null&&Fn(e),uf(e,t)}function uf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Pt===null){if(e===null)throw Error(r(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return n}var km=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},zm=i.unstable_scheduleCallback,_m=i.unstable_NormalPriority,Ye={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bu(){return{controller:new km,data:new Map,refCount:0}}function ml(e){e.refCount--,e.refCount===0&&zm(_m,function(){e.controller.abort()})}var yl=null,qu=0,Na=0,Oa=null;function Dm(e,t){if(yl===null){var n=yl=[];qu=0,Na=$r(),Oa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return qu++,t.then(rf,rf),t}function rf(){if(--qu===0&&yl!==null){Oa!==null&&(Oa.status="fulfilled");var e=yl;yl=null,Na=0,Oa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function jm(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var of=D.S;D.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Dm(e,t),of!==null&&of(e,t)};var Pn=U(null);function Gu(){var e=Pn.current;return e!==null?e:Ae.pooledCache}function Li(e,t){t===null?Y(Pn,Pn.current):Y(Pn,t.pool)}function cf(){var e=Gu();return e===null?null:{parent:Ye._currentValue,pool:e}}var vl=Error(r(460)),ff=Error(r(474)),Ui=Error(r(542)),$u={then:function(){}};function df(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hi(){}function hf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Hi,Hi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gf(e),e;default:if(typeof t.status=="string")t.then(Hi,Hi);else{if(e=Ae,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gf(e),e}throw bl=t,vl}}var bl=null;function pf(){if(bl===null)throw Error(r(459));var e=bl;return bl=null,e}function gf(e){if(e===vl||e===Ui)throw Error(r(483))}var yn=!1;function Yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function vn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=ki(e),ef(e,null,n),t}return Ci(e,a,t,n),ki(e)}function Sl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,uc(e,n)}}function Qu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xu=!1;function xl(){if(Xu){var e=Oa;if(e!==null)throw e}}function El(e,t,n,a){Xu=!1;var s=e.updateQueue;yn=!1;var o=s.firstBaseUpdate,m=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var x=y,C=x.next;x.next=null,m===null?o=C:m.next=C,m=x;var M=e.alternate;M!==null&&(M=M.updateQueue,y=M.lastBaseUpdate,y!==m&&(y===null?M.firstBaseUpdate=C:y.next=C,M.lastBaseUpdate=x))}if(o!==null){var H=s.baseState;m=0,M=C=x=null,y=o;do{var k=y.lane&-536870913,z=k!==y.lane;if(z?(ge&k)===k:(a&k)===k){k!==0&&k===Na&&(Xu=!0),M!==null&&(M=M.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ne=e,I=y;k=t;var we=n;switch(I.tag){case 1:if(ne=I.payload,typeof ne=="function"){H=ne.call(we,H,k);break e}H=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=I.payload,k=typeof ne=="function"?ne.call(we,H,k):ne,k==null)break e;H=v({},H,k);break e;case 2:yn=!0}}k=y.callback,k!==null&&(e.flags|=64,z&&(e.flags|=8192),z=s.callbacks,z===null?s.callbacks=[k]:z.push(k))}else z={lane:k,tag:y.tag,payload:y.payload,callback:y.callback,next:null},M===null?(C=M=z,x=H):M=M.next=z,m|=k;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;z=y,y=z.next,z.next=null,s.lastBaseUpdate=z,s.shared.pending=null}}while(!0);M===null&&(x=H),s.baseState=x,s.firstBaseUpdate=C,s.lastBaseUpdate=M,o===null&&(s.shared.lanes=0),On|=m,e.lanes=m,e.memoizedState=H}}function mf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function yf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)mf(n[e],t)}var Aa=U(null),Bi=U(0);function vf(e,t){e=sn,Y(Bi,e),Y(Aa,t),sn=e|t.baseLanes}function Zu(){Y(Bi,sn),Y(Aa,Aa.current)}function Ku(){sn=Bi.current,V(Aa),V(Bi)}var Sn=0,re=null,Te=null,qe=null,qi=!1,Ca=!1,Wn=!1,Gi=0,Tl=0,ka=null,Mm=0;function He(){throw Error(r(321))}function Ju(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gt(e[n],t[n]))return!1;return!0}function Fu(e,t,n,a,s,o){return Sn=o,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?td:nd,Wn=!1,o=n(a,s),Wn=!1,Ca&&(o=Sf(t,n,a,s)),bf(e),o}function bf(e){D.H=Zi;var t=Te!==null&&Te.next!==null;if(Sn=0,qe=Te=re=null,qi=!1,Tl=0,ka=null,t)throw Error(r(300));e===null||Xe||(e=e.dependencies,e!==null&&ji(e)&&(Xe=!0))}function Sf(e,t,n,a){re=e;var s=0;do{if(Ca&&(ka=null),Tl=0,Ca=!1,25<=s)throw Error(r(301));if(s+=1,qe=Te=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=$m,o=t(n,a)}while(Ca);return o}function Lm(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Rl(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(re.flags|=1024),t}function Pu(){var e=Gi!==0;return Gi=0,e}function Wu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Iu(e){if(qi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qi=!1}Sn=0,qe=Te=re=null,Ca=!1,Tl=Gi=0,ka=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?re.memoizedState=qe=e:qe=qe.next=e,qe}function Ge(){if(Te===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=qe===null?re.memoizedState:qe.next;if(t!==null)qe=t,Te=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},qe===null?re.memoizedState=qe=e:qe=qe.next=e}return qe}function er(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(e){var t=Tl;return Tl+=1,ka===null&&(ka=[]),e=hf(ka,e,t),t=re,(qe===null?t.memoizedState:qe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?td:nd),e}function $i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rl(e);if(e.$$typeof===X)return Ie(e)}throw Error(r(438,String(e)))}function tr(e){var t=null,n=re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=re.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=er(),re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ee;return t.index++,n}function It(e,t){return typeof t=="function"?t(e):t}function Yi(e){var t=Ge();return nr(t,Te,e)}function nr(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var s=e.baseQueue,o=a.pending;if(o!==null){if(s!==null){var m=s.next;s.next=o.next,o.next=m}t.baseQueue=s=o,a.pending=null}if(o=e.baseState,s===null)e.memoizedState=o;else{t=s.next;var y=m=null,x=null,C=t,M=!1;do{var H=C.lane&-536870913;if(H!==C.lane?(ge&H)===H:(Sn&H)===H){var k=C.revertLane;if(k===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),H===Na&&(M=!0);else if((Sn&k)===k){C=C.next,k===Na&&(M=!0);continue}else H={lane:0,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(y=x=H,m=o):x=x.next=H,re.lanes|=k,On|=k;H=C.action,Wn&&n(o,H),o=C.hasEagerState?C.eagerState:n(o,H)}else k={lane:H,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(y=x=k,m=o):x=x.next=k,re.lanes|=H,On|=H;C=C.next}while(C!==null&&C!==t);if(x===null?m=o:x.next=y,!gt(o,e.memoizedState)&&(Xe=!0,M&&(n=Oa,n!==null)))throw n;e.memoizedState=o,e.baseState=m,e.baseQueue=x,a.lastRenderedState=o}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ar(e){var t=Ge(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var m=s=s.next;do o=e(o,m.action),m=m.next;while(m!==s);gt(o,t.memoizedState)||(Xe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function xf(e,t,n){var a=re,s=Ge(),o=ve;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=t();var m=!gt((Te||s).memoizedState,n);m&&(s.memoizedState=n,Xe=!0),s=s.queue;var y=Rf.bind(null,a,s,e);if(wl(2048,8,y,[e]),s.getSnapshot!==t||m||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,za(9,Vi(),Tf.bind(null,a,s,n,t),null),Ae===null)throw Error(r(349));o||(Sn&124)!==0||Ef(a,t,n)}return n}function Ef(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t=er(),re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Tf(e,t,n,a){t.value=n,t.getSnapshot=a,wf(t)&&Nf(e)}function Rf(e,t,n){return n(function(){wf(t)&&Nf(e)})}function wf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function Nf(e){var t=Ea(e,2);t!==null&&xt(t,e,2)}function lr(e){var t=ot();if(typeof e=="function"){var n=e;if(e=n(),Wn){hn(!0);try{n()}finally{hn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:e},t}function Of(e,t,n,a){return e.baseState=n,nr(e,Te,typeof a=="function"?a:It)}function Um(e,t,n,a,s){if(Xi(e))throw Error(r(485));if(e=t.action,e!==null){var o={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};D.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Af(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Af(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var o=D.T,m={};D.T=m;try{var y=n(s,a),x=D.S;x!==null&&x(m,y),Cf(e,t,y)}catch(C){ir(e,t,C)}finally{D.T=o}}else try{o=n(s,a),Cf(e,t,o)}catch(C){ir(e,t,C)}}function Cf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){kf(e,t,a)},function(a){return ir(e,t,a)}):kf(e,t,n)}function kf(e,t,n){t.status="fulfilled",t.value=n,zf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Af(e,n)))}function ir(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,zf(t),t=t.next;while(t!==a)}e.action=null}function zf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _f(e,t){return t}function Df(e,t){if(ve){var n=Ae.formState;if(n!==null){e:{var a=re;if(ve){if(Me){t:{for(var s=Me,o=Bt;s.nodeType!==8;){if(!o){s=null;break t}if(s=Mt(s.nextSibling),s===null){s=null;break t}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){Me=Mt(s.nextSibling),a=s.data==="F!";break e}}Kn(a)}a=!1}a&&(t=n[0])}}return n=ot(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_f,lastRenderedState:t},n.queue=a,n=Wf.bind(null,re,a),a.dispatch=n,a=lr(!1),o=cr.bind(null,re,!1,a.queue),a=ot(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=Um.bind(null,re,s,o,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function jf(e){var t=Ge();return Mf(t,Te,e)}function Mf(e,t,n){if(t=nr(e,t,_f)[0],e=Yi(It)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Rl(t)}catch(m){throw m===vl?Ui:m}else a=t;t=Ge();var s=t.queue,o=s.dispatch;return n!==t.memoizedState&&(re.flags|=2048,za(9,Vi(),Hm.bind(null,s,n),null)),[a,o,e]}function Hm(e,t){e.action=t}function Lf(e){var t=Ge(),n=Te;if(n!==null)return Mf(t,n,e);Ge(),t=t.memoizedState,n=Ge();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function za(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=er(),re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Vi(){return{destroy:void 0,resource:void 0}}function Uf(){return Ge().memoizedState}function Qi(e,t,n,a){var s=ot();a=a===void 0?null:a,re.flags|=e,s.memoizedState=za(1|t,Vi(),n,a)}function wl(e,t,n,a){var s=Ge();a=a===void 0?null:a;var o=s.memoizedState.inst;Te!==null&&a!==null&&Ju(a,Te.memoizedState.deps)?s.memoizedState=za(t,o,n,a):(re.flags|=e,s.memoizedState=za(1|t,o,n,a))}function Hf(e,t){Qi(8390656,8,e,t)}function Bf(e,t){wl(2048,8,e,t)}function qf(e,t){return wl(4,2,e,t)}function Gf(e,t){return wl(4,4,e,t)}function $f(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yf(e,t,n){n=n!=null?n.concat([e]):null,wl(4,4,$f.bind(null,t,e),n)}function sr(){}function Vf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ju(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Qf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ju(t,a[1]))return a[0];if(a=e(),Wn){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[a,t],a}function ur(e,t,n){return n===void 0||(Sn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Kd(),re.lanes|=e,On|=e,n)}function Xf(e,t,n,a){return gt(n,t)?n:Aa.current!==null?(e=ur(e,n,a),gt(e,t)||(Xe=!0),e):(Sn&42)===0?(Xe=!0,e.memoizedState=n):(e=Kd(),re.lanes|=e,On|=e,t)}function Zf(e,t,n,a,s){var o=$.p;$.p=o!==0&&8>o?o:8;var m=D.T,y={};D.T=y,cr(e,!1,t,n);try{var x=s(),C=D.S;if(C!==null&&C(y,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var M=jm(x,a);Nl(e,t,M,St(e))}else Nl(e,t,a,St(e))}catch(H){Nl(e,t,{then:function(){},status:"rejected",reason:H},St())}finally{$.p=o,D.T=m}}function Bm(){}function rr(e,t,n,a){if(e.tag!==5)throw Error(r(476));var s=Kf(e).queue;Zf(e,s,t,P,n===null?Bm:function(){return Jf(e),n(a)})}function Kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:P},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jf(e){var t=Kf(e).next.queue;Nl(e,t,{},St())}function or(){return Ie(Vl)}function Ff(){return Ge().memoizedState}function Pf(){return Ge().memoizedState}function qm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=St();e=vn(n);var a=bn(t,e,n);a!==null&&(xt(a,t,n),Sl(a,t,n)),t={cache:Bu()},e.payload=t;return}t=t.return}}function Gm(e,t,n){var a=St();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Xi(e)?If(t,n):(n=Cu(e,t,n,a),n!==null&&(xt(n,e,a),ed(n,t,a)))}function Wf(e,t,n){var a=St();Nl(e,t,n,a)}function Nl(e,t,n,a){var s={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xi(e))If(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,y=o(m,n);if(s.hasEagerState=!0,s.eagerState=y,gt(y,m))return Ci(e,t,s,0),Ae===null&&Ai(),!1}catch{}finally{}if(n=Cu(e,t,s,a),n!==null)return xt(n,e,a),ed(n,t,a),!0}return!1}function cr(e,t,n,a){if(a={lane:2,revertLane:$r(),action:a,hasEagerState:!1,eagerState:null,next:null},Xi(e)){if(t)throw Error(r(479))}else t=Cu(e,n,a,2),t!==null&&xt(t,e,2)}function Xi(e){var t=e.alternate;return e===re||t!==null&&t===re}function If(e,t){Ca=qi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ed(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,uc(e,n)}}var Zi={readContext:Ie,use:$i,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He},td={readContext:Ie,use:$i,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Hf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Qi(4194308,4,$f.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4194308,4,e,t)},useInsertionEffect:function(e,t){Qi(4,2,e,t)},useMemo:function(e,t){var n=ot();t=t===void 0?null:t;var a=e();if(Wn){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ot();if(n!==void 0){var s=n(t);if(Wn){hn(!0);try{n(t)}finally{hn(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=Gm.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=lr(e);var t=e.queue,n=Wf.bind(null,re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:sr,useDeferredValue:function(e,t){var n=ot();return ur(n,e,t)},useTransition:function(){var e=lr(!1);return e=Zf.bind(null,re,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=re,s=ot();if(ve){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ae===null)throw Error(r(349));(ge&124)!==0||Ef(a,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,Hf(Rf.bind(null,a,o,e),[e]),a.flags|=2048,za(9,Vi(),Tf.bind(null,a,o,n,t),null),n},useId:function(){var e=ot(),t=Ae.identifierPrefix;if(ve){var n=Ft,a=Jt;n=(a&~(1<<32-pt(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=Gi++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=Mm++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:or,useFormState:Df,useActionState:Df,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cr.bind(null,re,!0,n),n.dispatch=t,[e,t]},useMemoCache:tr,useCacheRefresh:function(){return ot().memoizedState=qm.bind(null,re)}},nd={readContext:Ie,use:$i,useCallback:Vf,useContext:Ie,useEffect:Bf,useImperativeHandle:Yf,useInsertionEffect:qf,useLayoutEffect:Gf,useMemo:Qf,useReducer:Yi,useRef:Uf,useState:function(){return Yi(It)},useDebugValue:sr,useDeferredValue:function(e,t){var n=Ge();return Xf(n,Te.memoizedState,e,t)},useTransition:function(){var e=Yi(It)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Rl(e),t]},useSyncExternalStore:xf,useId:Ff,useHostTransitionStatus:or,useFormState:jf,useActionState:jf,useOptimistic:function(e,t){var n=Ge();return Of(n,Te,e,t)},useMemoCache:tr,useCacheRefresh:Pf},$m={readContext:Ie,use:$i,useCallback:Vf,useContext:Ie,useEffect:Bf,useImperativeHandle:Yf,useInsertionEffect:qf,useLayoutEffect:Gf,useMemo:Qf,useReducer:ar,useRef:Uf,useState:function(){return ar(It)},useDebugValue:sr,useDeferredValue:function(e,t){var n=Ge();return Te===null?ur(n,e,t):Xf(n,Te.memoizedState,e,t)},useTransition:function(){var e=ar(It)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Rl(e),t]},useSyncExternalStore:xf,useId:Ff,useHostTransitionStatus:or,useFormState:Lf,useActionState:Lf,useOptimistic:function(e,t){var n=Ge();return Te!==null?Of(n,Te,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:tr,useCacheRefresh:Pf},_a=null,Ol=0;function Ki(e){var t=Ol;return Ol+=1,_a===null&&(_a=[]),hf(_a,e,t)}function Al(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ji(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ad(e){var t=e._init;return t(e._payload)}function ld(e){function t(N,w){if(e){var A=N.deletions;A===null?(N.deletions=[w],N.flags|=16):A.push(w)}}function n(N,w){if(!e)return null;for(;w!==null;)t(N,w),w=w.sibling;return null}function a(N){for(var w=new Map;N!==null;)N.key!==null?w.set(N.key,N):w.set(N.index,N),N=N.sibling;return w}function s(N,w){return N=Kt(N,w),N.index=0,N.sibling=null,N}function o(N,w,A){return N.index=A,e?(A=N.alternate,A!==null?(A=A.index,A<w?(N.flags|=67108866,w):A):(N.flags|=67108866,w)):(N.flags|=1048576,w)}function m(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function y(N,w,A,L){return w===null||w.tag!==6?(w=zu(A,N.mode,L),w.return=N,w):(w=s(w,A),w.return=N,w)}function x(N,w,A,L){var K=A.type;return K===T?M(N,w,A.props.children,L,A.key):w!==null&&(w.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ie&&ad(K)===w.type)?(w=s(w,A.props),Al(w,A),w.return=N,w):(w=zi(A.type,A.key,A.props,null,N.mode,L),Al(w,A),w.return=N,w)}function C(N,w,A,L){return w===null||w.tag!==4||w.stateNode.containerInfo!==A.containerInfo||w.stateNode.implementation!==A.implementation?(w=_u(A,N.mode,L),w.return=N,w):(w=s(w,A.children||[]),w.return=N,w)}function M(N,w,A,L,K){return w===null||w.tag!==7?(w=Vn(A,N.mode,L,K),w.return=N,w):(w=s(w,A),w.return=N,w)}function H(N,w,A){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=zu(""+w,N.mode,A),w.return=N,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case b:return A=zi(w.type,w.key,w.props,null,N.mode,A),Al(A,w),A.return=N,A;case _:return w=_u(w,N.mode,A),w.return=N,w;case ie:var L=w._init;return w=L(w._payload),H(N,w,A)}if($e(w)||De(w))return w=Vn(w,N.mode,A,null),w.return=N,w;if(typeof w.then=="function")return H(N,Ki(w),A);if(w.$$typeof===X)return H(N,Mi(N,w),A);Ji(N,w)}return null}function k(N,w,A,L){var K=w!==null?w.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return K!==null?null:y(N,w,""+A,L);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case b:return A.key===K?x(N,w,A,L):null;case _:return A.key===K?C(N,w,A,L):null;case ie:return K=A._init,A=K(A._payload),k(N,w,A,L)}if($e(A)||De(A))return K!==null?null:M(N,w,A,L,null);if(typeof A.then=="function")return k(N,w,Ki(A),L);if(A.$$typeof===X)return k(N,w,Mi(N,A),L);Ji(N,A)}return null}function z(N,w,A,L,K){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return N=N.get(A)||null,y(w,N,""+L,K);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case b:return N=N.get(L.key===null?A:L.key)||null,x(w,N,L,K);case _:return N=N.get(L.key===null?A:L.key)||null,C(w,N,L,K);case ie:var oe=L._init;return L=oe(L._payload),z(N,w,A,L,K)}if($e(L)||De(L))return N=N.get(A)||null,M(w,N,L,K,null);if(typeof L.then=="function")return z(N,w,A,Ki(L),K);if(L.$$typeof===X)return z(N,w,A,Mi(w,L),K);Ji(w,L)}return null}function ne(N,w,A,L){for(var K=null,oe=null,J=w,te=w=0,Ke=null;J!==null&&te<A.length;te++){J.index>te?(Ke=J,J=null):Ke=J.sibling;var ye=k(N,J,A[te],L);if(ye===null){J===null&&(J=Ke);break}e&&J&&ye.alternate===null&&t(N,J),w=o(ye,w,te),oe===null?K=ye:oe.sibling=ye,oe=ye,J=Ke}if(te===A.length)return n(N,J),ve&&Xn(N,te),K;if(J===null){for(;te<A.length;te++)J=H(N,A[te],L),J!==null&&(w=o(J,w,te),oe===null?K=J:oe.sibling=J,oe=J);return ve&&Xn(N,te),K}for(J=a(J);te<A.length;te++)Ke=z(J,N,te,A[te],L),Ke!==null&&(e&&Ke.alternate!==null&&J.delete(Ke.key===null?te:Ke.key),w=o(Ke,w,te),oe===null?K=Ke:oe.sibling=Ke,oe=Ke);return e&&J.forEach(function(Ln){return t(N,Ln)}),ve&&Xn(N,te),K}function I(N,w,A,L){if(A==null)throw Error(r(151));for(var K=null,oe=null,J=w,te=w=0,Ke=null,ye=A.next();J!==null&&!ye.done;te++,ye=A.next()){J.index>te?(Ke=J,J=null):Ke=J.sibling;var Ln=k(N,J,ye.value,L);if(Ln===null){J===null&&(J=Ke);break}e&&J&&Ln.alternate===null&&t(N,J),w=o(Ln,w,te),oe===null?K=Ln:oe.sibling=Ln,oe=Ln,J=Ke}if(ye.done)return n(N,J),ve&&Xn(N,te),K;if(J===null){for(;!ye.done;te++,ye=A.next())ye=H(N,ye.value,L),ye!==null&&(w=o(ye,w,te),oe===null?K=ye:oe.sibling=ye,oe=ye);return ve&&Xn(N,te),K}for(J=a(J);!ye.done;te++,ye=A.next())ye=z(J,N,te,ye.value,L),ye!==null&&(e&&ye.alternate!==null&&J.delete(ye.key===null?te:ye.key),w=o(ye,w,te),oe===null?K=ye:oe.sibling=ye,oe=ye);return e&&J.forEach(function(Yy){return t(N,Yy)}),ve&&Xn(N,te),K}function we(N,w,A,L){if(typeof A=="object"&&A!==null&&A.type===T&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case b:e:{for(var K=A.key;w!==null;){if(w.key===K){if(K=A.type,K===T){if(w.tag===7){n(N,w.sibling),L=s(w,A.props.children),L.return=N,N=L;break e}}else if(w.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ie&&ad(K)===w.type){n(N,w.sibling),L=s(w,A.props),Al(L,A),L.return=N,N=L;break e}n(N,w);break}else t(N,w);w=w.sibling}A.type===T?(L=Vn(A.props.children,N.mode,L,A.key),L.return=N,N=L):(L=zi(A.type,A.key,A.props,null,N.mode,L),Al(L,A),L.return=N,N=L)}return m(N);case _:e:{for(K=A.key;w!==null;){if(w.key===K)if(w.tag===4&&w.stateNode.containerInfo===A.containerInfo&&w.stateNode.implementation===A.implementation){n(N,w.sibling),L=s(w,A.children||[]),L.return=N,N=L;break e}else{n(N,w);break}else t(N,w);w=w.sibling}L=_u(A,N.mode,L),L.return=N,N=L}return m(N);case ie:return K=A._init,A=K(A._payload),we(N,w,A,L)}if($e(A))return ne(N,w,A,L);if(De(A)){if(K=De(A),typeof K!="function")throw Error(r(150));return A=K.call(A),I(N,w,A,L)}if(typeof A.then=="function")return we(N,w,Ki(A),L);if(A.$$typeof===X)return we(N,w,Mi(N,A),L);Ji(N,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,w!==null&&w.tag===6?(n(N,w.sibling),L=s(w,A),L.return=N,N=L):(n(N,w),L=zu(A,N.mode,L),L.return=N,N=L),m(N)):n(N,w)}return function(N,w,A,L){try{Ol=0;var K=we(N,w,A,L);return _a=null,K}catch(J){if(J===vl||J===Ui)throw J;var oe=mt(29,J,null,N.mode);return oe.lanes=L,oe.return=N,oe}finally{}}}var Da=ld(!0),id=ld(!1),Ct=U(null),qt=null;function xn(e){var t=e.alternate;Y(Ve,Ve.current&1),Y(Ct,e),qt===null&&(t===null||Aa.current!==null||t.memoizedState!==null)&&(qt=e)}function sd(e){if(e.tag===22){if(Y(Ve,Ve.current),Y(Ct,e),qt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(qt=e)}}else En()}function En(){Y(Ve,Ve.current),Y(Ct,Ct.current)}function en(e){V(Ct),qt===e&&(qt=null),V(Ve)}var Ve=U(0);function Fi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||eo(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function fr(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dr={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=St(),s=vn(a);s.payload=t,n!=null&&(s.callback=n),t=bn(e,s,a),t!==null&&(xt(t,e,a),Sl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=St(),s=vn(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=bn(e,s,a),t!==null&&(xt(t,e,a),Sl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=St(),a=vn(n);a.tag=2,t!=null&&(a.callback=t),t=bn(e,a,n),t!==null&&(xt(t,e,n),Sl(t,e,n))}};function ud(e,t,n,a,s,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,m):t.prototype&&t.prototype.isPureReactComponent?!cl(n,a)||!cl(s,o):!0}function rd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&dr.enqueueReplaceState(t,t.state,null)}function In(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}var Pi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function od(e){Pi(e)}function cd(e){console.error(e)}function fd(e){Pi(e)}function Wi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function dd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function hr(e,t,n){return n=vn(n),n.tag=3,n.payload={element:null},n.callback=function(){Wi(e,t)},n}function hd(e){return e=vn(e),e.tag=3,e}function pd(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=a.value;e.payload=function(){return s(o)},e.callback=function(){dd(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){dd(t,n,a),typeof s!="function"&&(An===null?An=new Set([this]):An.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Ym(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&gl(t,n,s,!0),n=Ct.current,n!==null){switch(n.tag){case 13:return qt===null?Ur():n.alternate===null&&Le===0&&(Le=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===$u?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Br(e,a,s)),!1;case 22:return n.flags|=65536,a===$u?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Br(e,a,s)),!1}throw Error(r(435,n.tag))}return Br(e,a,s),Ur(),!1}if(ve)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Mu&&(e=Error(r(422),{cause:a}),pl(wt(e,n)))):(a!==Mu&&(t=Error(r(423),{cause:a}),pl(wt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=wt(a,n),s=hr(e.stateNode,a,s),Qu(e,s),Le!==4&&(Le=2)),!1;var o=Error(r(520),{cause:a});if(o=wt(o,n),Ml===null?Ml=[o]:Ml.push(o),Le!==4&&(Le=2),t===null)return!0;a=wt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=hr(n.stateNode,a,e),Qu(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(An===null||!An.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=hd(s),pd(s,e,n,a),Qu(n,s),!1}n=n.return}while(n!==null);return!1}var gd=Error(r(461)),Xe=!1;function Je(e,t,n,a){t.child=e===null?id(t,null,n,a):Da(t,e.child,n,a)}function md(e,t,n,a,s){n=n.render;var o=t.ref;if("ref"in a){var m={};for(var y in a)y!=="ref"&&(m[y]=a[y])}else m=a;return Fn(t),a=Fu(e,t,n,m,o,s),y=Pu(),e!==null&&!Xe?(Wu(e,t,s),tn(e,t,s)):(ve&&y&&Du(t),t.flags|=1,Je(e,t,a,s),t.child)}function yd(e,t,n,a,s){if(e===null){var o=n.type;return typeof o=="function"&&!ku(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,vd(e,t,o,a,s)):(e=zi(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!xr(e,s)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:cl,n(m,a)&&e.ref===t.ref)return tn(e,t,s)}return t.flags|=1,e=Kt(o,a),e.ref=t.ref,e.return=t,t.child=e}function vd(e,t,n,a,s){if(e!==null){var o=e.memoizedProps;if(cl(o,a)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=a=o,xr(e,s))(e.flags&131072)!==0&&(Xe=!0);else return t.lanes=e.lanes,tn(e,t,s)}return pr(e,t,n,a,s)}function bd(e,t,n){var a=t.pendingProps,s=a.children,o=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=o!==null?o.baseLanes|n:n,e!==null){for(s=t.child=e.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;t.childLanes=o&~a}else t.childLanes=0,t.child=null;return Sd(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Li(t,o!==null?o.cachePool:null),o!==null?vf(t,o):Zu(),sd(t);else return t.lanes=t.childLanes=536870912,Sd(e,t,o!==null?o.baseLanes|n:n,n)}else o!==null?(Li(t,o.cachePool),vf(t,o),En(),t.memoizedState=null):(e!==null&&Li(t,null),Zu(),En());return Je(e,t,s,n),t.child}function Sd(e,t,n,a){var s=Gu();return s=s===null?null:{parent:Ye._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&Li(t,null),Zu(),sd(t),e!==null&&gl(e,t,a,!0),null}function Ii(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pr(e,t,n,a,s){return Fn(t),n=Fu(e,t,n,a,void 0,s),a=Pu(),e!==null&&!Xe?(Wu(e,t,s),tn(e,t,s)):(ve&&a&&Du(t),t.flags|=1,Je(e,t,n,s),t.child)}function xd(e,t,n,a,s,o){return Fn(t),t.updateQueue=null,n=Sf(t,a,n,s),bf(e),a=Pu(),e!==null&&!Xe?(Wu(e,t,o),tn(e,t,o)):(ve&&a&&Du(t),t.flags|=1,Je(e,t,n,o),t.child)}function Ed(e,t,n,a,s){if(Fn(t),t.stateNode===null){var o=Ta,m=n.contextType;typeof m=="object"&&m!==null&&(o=Ie(m)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=dr,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Yu(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?Ie(m):Ta,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(fr(t,n,m,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&dr.enqueueReplaceState(o,o.state,null),El(t,a,o,s),xl(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var y=t.memoizedProps,x=In(n,y);o.props=x;var C=o.context,M=n.contextType;m=Ta,typeof M=="object"&&M!==null&&(m=Ie(M));var H=n.getDerivedStateFromProps;M=typeof H=="function"||typeof o.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,M||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(y||C!==m)&&rd(t,o,a,m),yn=!1;var k=t.memoizedState;o.state=k,El(t,a,o,s),xl(),C=t.memoizedState,y||k!==C||yn?(typeof H=="function"&&(fr(t,n,H,a),C=t.memoizedState),(x=yn||ud(t,n,x,a,k,C,m))?(M||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),o.props=a,o.state=C,o.context=m,a=x):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Vu(e,t),m=t.memoizedProps,M=In(n,m),o.props=M,H=t.pendingProps,k=o.context,C=n.contextType,x=Ta,typeof C=="object"&&C!==null&&(x=Ie(C)),y=n.getDerivedStateFromProps,(C=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==H||k!==x)&&rd(t,o,a,x),yn=!1,k=t.memoizedState,o.state=k,El(t,a,o,s),xl();var z=t.memoizedState;m!==H||k!==z||yn||e!==null&&e.dependencies!==null&&ji(e.dependencies)?(typeof y=="function"&&(fr(t,n,y,a),z=t.memoizedState),(M=yn||ud(t,n,M,a,k,z,x)||e!==null&&e.dependencies!==null&&ji(e.dependencies))?(C||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,z,x),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,z,x)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=z),o.props=a,o.state=z,o.context=x,a=M):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Ii(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=Da(t,e.child,null,s),t.child=Da(t,null,n,s)):Je(e,t,n,s),t.memoizedState=o.state,e=t.child):e=tn(e,t,s),e}function Td(e,t,n,a){return hl(),t.flags|=256,Je(e,t,n,a),t.child}var gr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mr(e){return{baseLanes:e,cachePool:cf()}}function yr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=kt),e}function Rd(e,t,n){var a=t.pendingProps,s=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),m&&(s=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(s?xn(t):En(),ve){var y=Me,x;if(x=y){e:{for(x=y,y=Bt;x.nodeType!==8;){if(!y){y=null;break e}if(x=Mt(x.nextSibling),x===null){y=null;break e}}y=x}y!==null?(t.memoizedState={dehydrated:y,treeContext:Qn!==null?{id:Jt,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},x=mt(18,null,null,0),x.stateNode=y,x.return=t,t.child=x,lt=t,Me=null,x=!0):x=!1}x||Kn(t)}if(y=t.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return eo(y)?t.lanes=32:t.lanes=536870912,null;en(t)}return y=a.children,a=a.fallback,s?(En(),s=t.mode,y=es({mode:"hidden",children:y},s),a=Vn(a,s,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,s=t.child,s.memoizedState=mr(n),s.childLanes=yr(e,m,n),t.memoizedState=gr,a):(xn(t),vr(t,y))}if(x=e.memoizedState,x!==null&&(y=x.dehydrated,y!==null)){if(o)t.flags&256?(xn(t),t.flags&=-257,t=br(e,t,n)):t.memoizedState!==null?(En(),t.child=e.child,t.flags|=128,t=null):(En(),s=a.fallback,y=t.mode,a=es({mode:"visible",children:a.children},y),s=Vn(s,y,n,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,Da(t,e.child,null,n),a=t.child,a.memoizedState=mr(n),a.childLanes=yr(e,m,n),t.memoizedState=gr,t=s);else if(xn(t),eo(y)){if(m=y.nextSibling&&y.nextSibling.dataset,m)var C=m.dgst;m=C,a=Error(r(419)),a.stack="",a.digest=m,pl({value:a,source:null,stack:null}),t=br(e,t,n)}else if(Xe||gl(e,t,n,!1),m=(n&e.childLanes)!==0,Xe||m){if(m=Ae,m!==null&&(a=n&-n,a=(a&42)!==0?1:tu(a),a=(a&(m.suspendedLanes|n))!==0?0:a,a!==0&&a!==x.retryLane))throw x.retryLane=a,Ea(e,a),xt(m,e,a),gd;y.data==="$?"||Ur(),t=br(e,t,n)}else y.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,Me=Mt(y.nextSibling),lt=t,ve=!0,Zn=null,Bt=!1,e!==null&&(Ot[At++]=Jt,Ot[At++]=Ft,Ot[At++]=Qn,Jt=e.id,Ft=e.overflow,Qn=t),t=vr(t,a.children),t.flags|=4096);return t}return s?(En(),s=a.fallback,y=t.mode,x=e.child,C=x.sibling,a=Kt(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,C!==null?s=Kt(C,s):(s=Vn(s,y,n,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,y=e.child.memoizedState,y===null?y=mr(n):(x=y.cachePool,x!==null?(C=Ye._currentValue,x=x.parent!==C?{parent:C,pool:C}:x):x=cf(),y={baseLanes:y.baseLanes|n,cachePool:x}),s.memoizedState=y,s.childLanes=yr(e,m,n),t.memoizedState=gr,a):(xn(t),n=e.child,e=n.sibling,n=Kt(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function vr(e,t){return t=es({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function es(e,t){return e=mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function br(e,t,n){return Da(t,e.child,null,n),e=vr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Uu(e.return,t,n)}function Sr(e,t,n,a,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=n,o.tailMode=s)}function Nd(e,t,n){var a=t.pendingProps,s=a.revealOrder,o=a.tail;if(Je(e,t,a.children,n),a=Ve.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wd(e,n,t);else if(e.tag===19)wd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(Y(Ve,a),s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Fi(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Sr(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Fi(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Sr(t,!0,n,null,o);break;case"together":Sr(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(gl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ji(e)))}function Vm(e,t,n){switch(t.tag){case 3:ke(t,t.stateNode.containerInfo),mn(t,Ye,e.memoizedState.cache),hl();break;case 27:case 5:Fs(t);break;case 4:ke(t,t.stateNode.containerInfo);break;case 10:mn(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Rd(e,t,n):(xn(t),e=tn(e,t,n),e!==null?e.sibling:null);xn(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(gl(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return Nd(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Y(Ve,Ve.current),a)break;return null;case 22:case 23:return t.lanes=0,bd(e,t,n);case 24:mn(t,Ye,e.memoizedState.cache)}return tn(e,t,n)}function Od(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!xr(e,n)&&(t.flags&128)===0)return Xe=!1,Vm(e,t,n);Xe=(e.flags&131072)!==0}else Xe=!1,ve&&(t.flags&1048576)!==0&&nf(t,Di,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,s=a._init;if(a=s(a._payload),t.type=a,typeof a=="function")ku(a)?(e=In(a,e),t.tag=1,t=Ed(null,t,a,e,n)):(t.tag=0,t=pr(null,t,a,e,n));else{if(a!=null){if(s=a.$$typeof,s===F){t.tag=11,t=md(null,t,a,e,n);break e}else if(s===le){t.tag=14,t=yd(null,t,a,e,n);break e}}throw t=Ce(a)||a,Error(r(306,t,""))}}return t;case 0:return pr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=In(a,t.pendingProps),Ed(e,t,a,s,n);case 3:e:{if(ke(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var o=t.memoizedState;s=o.element,Vu(e,t),El(t,a,null,n);var m=t.memoizedState;if(a=m.cache,mn(t,Ye,a),a!==o.cache&&Hu(t,[Ye],n,!0),xl(),a=m.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Td(e,t,a,n);break e}else if(a!==s){s=wt(Error(r(424)),t),pl(s),t=Td(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Me=Mt(e.firstChild),lt=t,ve=!0,Zn=null,Bt=!0,n=id(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(hl(),a===s){t=tn(e,t,n);break e}Je(e,t,a,n)}t=t.child}return t;case 26:return Ii(e,t),e===null?(n=zh(t.type,null,t.pendingProps,null))?t.memoizedState=n:ve||(n=t.type,e=t.pendingProps,a=ps(se.current).createElement(n),a[We]=t,a[ut]=e,Pe(a,n,e),Qe(a),t.stateNode=a):t.memoizedState=zh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Fs(t),e===null&&ve&&(a=t.stateNode=Ah(t.type,t.pendingProps,se.current),lt=t,Bt=!0,s=Me,zn(t.type)?(to=s,Me=Mt(a.firstChild)):Me=s),Je(e,t,t.pendingProps.children,n),Ii(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((s=a=Me)&&(a=vy(a,t.type,t.pendingProps,Bt),a!==null?(t.stateNode=a,lt=t,Me=Mt(a.firstChild),Bt=!1,s=!0):s=!1),s||Kn(t)),Fs(t),s=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,a=o.children,Pr(s,o)?a=null:m!==null&&Pr(s,m)&&(t.flags|=32),t.memoizedState!==null&&(s=Fu(e,t,Lm,null,null,n),Vl._currentValue=s),Ii(e,t),Je(e,t,a,n),t.child;case 6:return e===null&&ve&&((e=n=Me)&&(n=by(n,t.pendingProps,Bt),n!==null?(t.stateNode=n,lt=t,Me=null,e=!0):e=!1),e||Kn(t)),null;case 13:return Rd(e,t,n);case 4:return ke(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Da(t,null,a,n):Je(e,t,a,n),t.child;case 11:return md(e,t,t.type,t.pendingProps,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,mn(t,t.type,a.value),Je(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Fn(t),s=Ie(s),a=a(s),t.flags|=1,Je(e,t,a,n),t.child;case 14:return yd(e,t,t.type,t.pendingProps,n);case 15:return vd(e,t,t.type,t.pendingProps,n);case 19:return Nd(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=es(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Kt(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return bd(e,t,n);case 24:return Fn(t),a=Ie(Ye),e===null?(s=Gu(),s===null&&(s=Ae,o=Bu(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),t.memoizedState={parent:a,cache:s},Yu(t),mn(t,Ye,s)):((e.lanes&n)!==0&&(Vu(e,t),El(t,null,null,n),xl()),s=e.memoizedState,o=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),mn(t,Ye,a)):(a=o.cache,mn(t,Ye,a),a!==s.cache&&Hu(t,[Ye],n,!0))),Je(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function nn(e){e.flags|=4}function Ad(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lh(t)){if(t=Ct.current,t!==null&&((ge&4194048)===ge?qt!==null:(ge&62914560)!==ge&&(ge&536870912)===0||t!==qt))throw bl=$u,ff;e.flags|=8192}}function ts(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ic():536870912,e.lanes|=t,Ua|=t)}function Cl(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Qm(e,t,n){var a=t.pendingProps;switch(ju(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return je(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wt(Ye),dn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dl(t)?nn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sf())),je(t),null;case 26:return n=t.memoizedState,e===null?(nn(t),n!==null?(je(t),Ad(t,n)):(je(t),t.flags&=-16777217)):n?n!==e.memoizedState?(nn(t),je(t),Ad(t,n)):(je(t),t.flags&=-16777217):(e.memoizedProps!==a&&nn(t),je(t),t.flags&=-16777217),null;case 27:di(t),n=se.current;var s=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return je(t),null}e=W.current,dl(t)?af(t):(e=Ah(s,a,n),t.stateNode=e,nn(t))}return je(t),null;case 5:if(di(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return je(t),null}if(e=W.current,dl(t))af(t);else{switch(s=ps(se.current),e){case 1:e=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}e[We]=t,e[ut]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=e;e:switch(Pe(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&nn(t)}}return je(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=se.current,dl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=lt,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[We]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||xh(e.nodeValue,n)),e||Kn(t)}else e=ps(e).createTextNode(a),e[We]=t,t.stateNode=e}return je(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=dl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[We]=t}else hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),s=!1}else s=sf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(en(t),t):(en(t),null)}if(en(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool);var o=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==s&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ts(t,t.updateQueue),je(t),null;case 4:return dn(),e===null&&Xr(t.stateNode.containerInfo),je(t),null;case 10:return Wt(t.type),je(t),null;case 19:if(V(Ve),s=t.memoizedState,s===null)return je(t),null;if(a=(t.flags&128)!==0,o=s.rendering,o===null)if(a)Cl(s,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Fi(e),o!==null){for(t.flags|=128,Cl(s,!1),e=o.updateQueue,t.updateQueue=e,ts(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)tf(n,e),n=n.sibling;return Y(Ve,Ve.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ht()>ls&&(t.flags|=128,a=!0,Cl(s,!1),t.lanes=4194304)}else{if(!a)if(e=Fi(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ts(t,e),Cl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ve)return je(t),null}else 2*Ht()-s.renderingStartTime>ls&&n!==536870912&&(t.flags|=128,a=!0,Cl(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(e=s.last,e!==null?e.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ht(),t.sibling=null,e=Ve.current,Y(Ve,a?e&1|2:e&1),t):(je(t),null);case 22:case 23:return en(t),Ku(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),n=t.updateQueue,n!==null&&ts(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&V(Pn),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wt(Ye),je(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Xm(e,t){switch(ju(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wt(Ye),dn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return di(t),null;case 13:if(en(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Ve),null;case 4:return dn(),null;case 10:return Wt(t.type),null;case 22:case 23:return en(t),Ku(),e!==null&&V(Pn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wt(Ye),null;case 25:return null;default:return null}}function Cd(e,t){switch(ju(t),t.tag){case 3:Wt(Ye),dn();break;case 26:case 27:case 5:di(t);break;case 4:dn();break;case 13:en(t);break;case 19:V(Ve);break;case 10:Wt(t.type);break;case 22:case 23:en(t),Ku(),e!==null&&V(Pn);break;case 24:Wt(Ye)}}function kl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e){a=void 0;var o=n.create,m=n.inst;a=o(),m.destroy=a}n=n.next}while(n!==s)}}catch(y){Ne(t,t.return,y)}}function Tn(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){var m=a.inst,y=m.destroy;if(y!==void 0){m.destroy=void 0,s=t;var x=n,C=y;try{C()}catch(M){Ne(s,x,M)}}}a=a.next}while(a!==o)}}catch(M){Ne(t,t.return,M)}}function kd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yf(t,n)}catch(a){Ne(e,e.return,a)}}}function zd(e,t,n){n.props=In(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ne(e,t,a)}}function zl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(s){Ne(e,t,s)}}function Gt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Ne(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Ne(e,t,s)}else n.current=null}function _d(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){Ne(e,e.return,s)}}function Er(e,t,n){try{var a=e.stateNode;hy(a,e.type,n,t),a[ut]=t}catch(s){Ne(e,e.return,s)}}function Dd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zn(e.type)||e.tag===4}function Tr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&zn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hs));else if(a!==4&&(a===27&&zn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Rr(e,t,n),e=e.sibling;e!==null;)Rr(e,t,n),e=e.sibling}function ns(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&zn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ns(e,t,n),e=e.sibling;e!==null;)ns(e,t,n),e=e.sibling}function jd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Pe(t,a,n),t[We]=e,t[ut]=n}catch(o){Ne(e,e.return,o)}}var an=!1,Be=!1,wr=!1,Md=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Zm(e,t){if(e=e.containerInfo,Jr=Ss,e=Qc(e),Tu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var m=0,y=-1,x=-1,C=0,M=0,H=e,k=null;t:for(;;){for(var z;H!==n||s!==0&&H.nodeType!==3||(y=m+s),H!==o||a!==0&&H.nodeType!==3||(x=m+a),H.nodeType===3&&(m+=H.nodeValue.length),(z=H.firstChild)!==null;)k=H,H=z;for(;;){if(H===e)break t;if(k===n&&++C===s&&(y=m),k===o&&++M===a&&(x=m),(z=H.nextSibling)!==null)break;H=k,k=H.parentNode}H=z}n=y===-1||x===-1?null:{start:y,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fr={focusedElem:e,selectionRange:n},Ss=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,o=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,s=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var ne=In(n.type,s,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(ne,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(I){Ne(n,n.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ir(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ir(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ze=e;break}Ze=t.return}}function Ld(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Rn(e,n),a&4&&kl(5,n);break;case 1:if(Rn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ne(n,n.return,m)}else{var s=In(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ne(n,n.return,m)}}a&64&&kd(n),a&512&&zl(n,n.return);break;case 3:if(Rn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{yf(e,t)}catch(m){Ne(n,n.return,m)}}break;case 27:t===null&&a&4&&jd(n);case 26:case 5:Rn(e,n),t===null&&a&4&&_d(n),a&512&&zl(n,n.return);break;case 12:Rn(e,n);break;case 13:Rn(e,n),a&4&&Bd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ny.bind(null,n),Sy(e,n))));break;case 22:if(a=n.memoizedState!==null||an,!a){t=t!==null&&t.memoizedState!==null||Be,s=an;var o=Be;an=a,(Be=t)&&!o?wn(e,n,(n.subtreeFlags&8772)!==0):Rn(e,n),an=s,Be=o}break;case 30:break;default:Rn(e,n)}}function Ud(e){var t=e.alternate;t!==null&&(e.alternate=null,Ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ze=null,ct=!1;function ln(e,t,n){for(n=n.child;n!==null;)Hd(e,t,n),n=n.sibling}function Hd(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Wa,n)}catch{}switch(n.tag){case 26:Be||Gt(n,t),ln(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Be||Gt(n,t);var a=ze,s=ct;zn(n.type)&&(ze=n.stateNode,ct=!1),ln(e,t,n),ql(n.stateNode),ze=a,ct=s;break;case 5:Be||Gt(n,t);case 6:if(a=ze,s=ct,ze=null,ln(e,t,n),ze=a,ct=s,ze!==null)if(ct)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(n.stateNode)}catch(o){Ne(n,t,o)}else try{ze.removeChild(n.stateNode)}catch(o){Ne(n,t,o)}break;case 18:ze!==null&&(ct?(e=ze,Nh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Kl(e)):Nh(ze,n.stateNode));break;case 4:a=ze,s=ct,ze=n.stateNode.containerInfo,ct=!0,ln(e,t,n),ze=a,ct=s;break;case 0:case 11:case 14:case 15:Be||Tn(2,n,t),Be||Tn(4,n,t),ln(e,t,n);break;case 1:Be||(Gt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&zd(n,t,a)),ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:Be=(a=Be)||n.memoizedState!==null,ln(e,t,n),Be=a;break;default:ln(e,t,n)}}function Bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kl(e)}catch(n){Ne(t,t.return,n)}}function Km(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Md),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Md),t;default:throw Error(r(435,e.tag))}}function Nr(e,t){var n=Km(e);t.forEach(function(a){var s=ay.bind(null,e,a);n.has(a)||(n.add(a),a.then(s,s))})}function yt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],o=e,m=t,y=m;e:for(;y!==null;){switch(y.tag){case 27:if(zn(y.type)){ze=y.stateNode,ct=!1;break e}break;case 5:ze=y.stateNode,ct=!1;break e;case 3:case 4:ze=y.stateNode.containerInfo,ct=!0;break e}y=y.return}if(ze===null)throw Error(r(160));Hd(o,m,s),ze=null,ct=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)qd(t,e),t=t.sibling}var jt=null;function qd(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),vt(e),a&4&&(Tn(3,e,e.return),kl(3,e),Tn(5,e,e.return));break;case 1:yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),a&64&&an&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=jt;if(yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":o=s.getElementsByTagName("title")[0],(!o||o[tl]||o[We]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(a),s.head.insertBefore(o,s.querySelector("head > title"))),Pe(o,a,n),o[We]=e,Qe(o),a=o;break e;case"link":var m=jh("link","href",s).get(a+(n.href||""));if(m){for(var y=0;y<m.length;y++)if(o=m[y],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(y,1);break t}}o=s.createElement(a),Pe(o,a,n),s.head.appendChild(o);break;case"meta":if(m=jh("meta","content",s).get(a+(n.content||""))){for(y=0;y<m.length;y++)if(o=m[y],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(y,1);break t}}o=s.createElement(a),Pe(o,a,n),s.head.appendChild(o);break;default:throw Error(r(468,a))}o[We]=e,Qe(o),a=o}e.stateNode=a}else Mh(s,e.type,e.stateNode);else e.stateNode=Dh(s,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?Mh(s,e.type,e.stateNode):Dh(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Er(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),n!==null&&a&4&&Er(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),e.flags&32){s=e.stateNode;try{ga(s,"")}catch(z){Ne(e,e.return,z)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,Er(e,s,n!==null?n.memoizedProps:s)),a&1024&&(wr=!0);break;case 6:if(yt(t,e),vt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(z){Ne(e,e.return,z)}}break;case 3:if(ys=null,s=jt,jt=gs(t.containerInfo),yt(t,e),jt=s,vt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Kl(t.containerInfo)}catch(z){Ne(e,e.return,z)}wr&&(wr=!1,Gd(e));break;case 4:a=jt,jt=gs(e.stateNode.containerInfo),yt(t,e),vt(e),jt=a;break;case 12:yt(t,e),vt(e);break;case 13:yt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_r=Ht()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 22:s=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,C=an,M=Be;if(an=C||s,Be=M||x,yt(t,e),Be=M,an=C,vt(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||x||an||Be||ea(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){x=n=t;try{if(o=x.stateNode,s)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{y=x.stateNode;var H=x.memoizedProps.style,k=H!=null&&H.hasOwnProperty("display")?H.display:null;y.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(z){Ne(x,x.return,z)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=s?"":x.memoizedProps}catch(z){Ne(x,x.return,z)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Nr(e,n))));break;case 19:yt(t,e),vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 30:break;case 21:break;default:yt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Dd(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,o=Tr(e);ns(e,o,s);break;case 5:var m=n.stateNode;n.flags&32&&(ga(m,""),n.flags&=-33);var y=Tr(e);ns(e,y,m);break;case 3:case 4:var x=n.stateNode.containerInfo,C=Tr(e);Rr(e,C,x);break;default:throw Error(r(161))}}catch(M){Ne(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Gd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Rn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ld(e,t.alternate,t),t=t.sibling}function ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tn(4,t,t.return),ea(t);break;case 1:Gt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&zd(t,t.return,n),ea(t);break;case 27:ql(t.stateNode);case 26:case 5:Gt(t,t.return),ea(t);break;case 22:t.memoizedState===null&&ea(t);break;case 30:ea(t);break;default:ea(t)}e=e.sibling}}function wn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:wn(s,o,n),kl(4,o);break;case 1:if(wn(s,o,n),a=o,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(C){Ne(a,a.return,C)}if(a=o,s=a.updateQueue,s!==null){var y=a.stateNode;try{var x=s.shared.hiddenCallbacks;if(x!==null)for(s.shared.hiddenCallbacks=null,s=0;s<x.length;s++)mf(x[s],y)}catch(C){Ne(a,a.return,C)}}n&&m&64&&kd(o),zl(o,o.return);break;case 27:jd(o);case 26:case 5:wn(s,o,n),n&&a===null&&m&4&&_d(o),zl(o,o.return);break;case 12:wn(s,o,n);break;case 13:wn(s,o,n),n&&m&4&&Bd(s,o);break;case 22:o.memoizedState===null&&wn(s,o,n),zl(o,o.return);break;case 30:break;default:wn(s,o,n)}t=t.sibling}}function Or(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ml(n))}function Ar(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ml(e))}function $t(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$d(e,t,n,a),t=t.sibling}function $d(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,n,a),s&2048&&kl(9,t);break;case 1:$t(e,t,n,a);break;case 3:$t(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ml(e)));break;case 12:if(s&2048){$t(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,y=o.onPostCommit;typeof y=="function"&&y(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Ne(t,t.return,x)}}else $t(e,t,n,a);break;case 13:$t(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?$t(e,t,n,a):_l(e,t):o._visibility&2?$t(e,t,n,a):(o._visibility|=2,ja(e,t,n,a,(t.subtreeFlags&10256)!==0)),s&2048&&Or(m,t);break;case 24:$t(e,t,n,a),s&2048&&Ar(t.alternate,t);break;default:$t(e,t,n,a)}}function ja(e,t,n,a,s){for(s=s&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var o=e,m=t,y=n,x=a,C=m.flags;switch(m.tag){case 0:case 11:case 15:ja(o,m,y,x,s),kl(8,m);break;case 23:break;case 22:var M=m.stateNode;m.memoizedState!==null?M._visibility&2?ja(o,m,y,x,s):_l(o,m):(M._visibility|=2,ja(o,m,y,x,s)),s&&C&2048&&Or(m.alternate,m);break;case 24:ja(o,m,y,x,s),s&&C&2048&&Ar(m.alternate,m);break;default:ja(o,m,y,x,s)}t=t.sibling}}function _l(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:_l(n,a),s&2048&&Or(a.alternate,a);break;case 24:_l(n,a),s&2048&&Ar(a.alternate,a);break;default:_l(n,a)}t=t.sibling}}var Dl=8192;function Ma(e){if(e.subtreeFlags&Dl)for(e=e.child;e!==null;)Yd(e),e=e.sibling}function Yd(e){switch(e.tag){case 26:Ma(e),e.flags&Dl&&e.memoizedState!==null&&Dy(jt,e.memoizedState,e.memoizedProps);break;case 5:Ma(e);break;case 3:case 4:var t=jt;jt=gs(e.stateNode.containerInfo),Ma(e),jt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Dl,Dl=16777216,Ma(e),Dl=t):Ma(e));break;default:Ma(e)}}function Vd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function jl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ze=a,Xd(a,e)}Vd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qd(e),e=e.sibling}function Qd(e){switch(e.tag){case 0:case 11:case 15:jl(e),e.flags&2048&&Tn(9,e,e.return);break;case 3:jl(e);break;case 12:jl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,as(e)):jl(e);break;default:jl(e)}}function as(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ze=a,Xd(a,e)}Vd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tn(8,t,t.return),as(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,as(t));break;default:as(t)}e=e.sibling}}function Xd(e,t){for(;Ze!==null;){var n=Ze;switch(n.tag){case 0:case 11:case 15:Tn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ml(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ze=a;else e:for(n=e;Ze!==null;){a=Ze;var s=a.sibling,o=a.return;if(Ud(a),a===n){Ze=null;break e}if(s!==null){s.return=o,Ze=s;break e}Ze=o}}}var Jm={getCacheForType:function(e){var t=Ie(Ye),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Fm=typeof WeakMap=="function"?WeakMap:Map,Se=0,Ae=null,ce=null,ge=0,xe=0,bt=null,Nn=!1,La=!1,Cr=!1,sn=0,Le=0,On=0,ta=0,kr=0,kt=0,Ua=0,Ml=null,ft=null,zr=!1,_r=0,ls=1/0,is=null,An=null,Fe=0,Cn=null,Ha=null,Ba=0,Dr=0,jr=null,Zd=null,Ll=0,Mr=null;function St(){if((Se&2)!==0&&ge!==0)return ge&-ge;if(D.T!==null){var e=Na;return e!==0?e:$r()}return rc()}function Kd(){kt===0&&(kt=(ge&536870912)===0||ve?lc():536870912);var e=Ct.current;return e!==null&&(e.flags|=32),kt}function xt(e,t,n){(e===Ae&&(xe===2||xe===9)||e.cancelPendingCommit!==null)&&(qa(e,0),kn(e,ge,kt,!1)),el(e,n),((Se&2)===0||e!==Ae)&&(e===Ae&&((Se&2)===0&&(ta|=n),Le===4&&kn(e,ge,kt,!1)),Yt(e))}function Jd(e,t,n){if((Se&6)!==0)throw Error(r(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Ia(e,t),s=a?Im(e,t):Hr(e,t,!0),o=a;do{if(s===0){La&&!a&&kn(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Pm(n)){s=Hr(e,t,!1),o=!1;continue}if(s===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var y=e;s=Ml;var x=y.current.memoizedState.isDehydrated;if(x&&(qa(y,m).flags|=256),m=Hr(y,m,!1),m!==2){if(Cr&&!x){y.errorRecoveryDisabledLanes|=o,ta|=o,s=4;break e}o=ft,ft=s,o!==null&&(ft===null?ft=o:ft.push.apply(ft,o))}s=m}if(o=!1,s!==2)continue}}if(s===1){qa(e,0),kn(e,t,0,!0);break}e:{switch(a=e,o=s,o){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:kn(a,t,kt,!Nn);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=_r+300-Ht(),10<s)){if(kn(a,t,kt,!Nn),mi(a,0,!0)!==0)break e;a.timeoutHandle=Rh(Fd.bind(null,a,n,ft,is,zr,t,kt,ta,Ua,Nn,o,2,-0,0),s);break e}Fd(a,n,ft,is,zr,t,kt,ta,Ua,Nn,o,0,-0,0)}}break}while(!0);Yt(e)}function Fd(e,t,n,a,s,o,m,y,x,C,M,H,k,z){if(e.timeoutHandle=-1,H=t.subtreeFlags,(H&8192||(H&16785408)===16785408)&&(Yl={stylesheets:null,count:0,unsuspend:_y},Yd(t),H=jy(),H!==null)){e.cancelPendingCommit=H(ah.bind(null,e,t,o,n,a,s,m,y,x,M,1,k,z)),kn(e,o,m,!C);return}ah(e,t,o,n,a,s,m,y,x)}function Pm(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],o=s.getSnapshot;s=s.value;try{if(!gt(o(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function kn(e,t,n,a){t&=~kr,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var o=31-pt(s),m=1<<o;a[o]=-1,s&=~m}n!==0&&sc(e,n,t)}function ss(){return(Se&6)===0?(Ul(0),!1):!0}function Lr(){if(ce!==null){if(xe===0)var e=ce.return;else e=ce,Pt=Jn=null,Iu(e),_a=null,Ol=0,e=ce;for(;e!==null;)Cd(e.alternate,e),e=e.return;ce=null}}function qa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,gy(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Lr(),Ae=e,ce=n=Kt(e.current,null),ge=t,xe=0,bt=null,Nn=!1,La=Ia(e,t),Cr=!1,Ua=kt=kr=ta=On=Le=0,ft=Ml=null,zr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-pt(a),o=1<<s;t|=e[s],a&=~o}return sn=t,Ai(),n}function Pd(e,t){re=null,D.H=Zi,t===vl||t===Ui?(t=pf(),xe=3):t===ff?(t=pf(),xe=4):xe=t===gd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,ce===null&&(Le=1,Wi(e,wt(t,e.current)))}function Wd(){var e=D.H;return D.H=Zi,e===null?Zi:e}function Id(){var e=D.A;return D.A=Jm,e}function Ur(){Le=4,Nn||(ge&4194048)!==ge&&Ct.current!==null||(La=!0),(On&134217727)===0&&(ta&134217727)===0||Ae===null||kn(Ae,ge,kt,!1)}function Hr(e,t,n){var a=Se;Se|=2;var s=Wd(),o=Id();(Ae!==e||ge!==t)&&(is=null,qa(e,t)),t=!1;var m=Le;e:do try{if(xe!==0&&ce!==null){var y=ce,x=bt;switch(xe){case 8:Lr(),m=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var C=xe;if(xe=0,bt=null,Ga(e,y,x,C),n&&La){m=0;break e}break;default:C=xe,xe=0,bt=null,Ga(e,y,x,C)}}Wm(),m=Le;break}catch(M){Pd(e,M)}while(!0);return t&&e.shellSuspendCounter++,Pt=Jn=null,Se=a,D.H=s,D.A=o,ce===null&&(Ae=null,ge=0,Ai()),m}function Wm(){for(;ce!==null;)eh(ce)}function Im(e,t){var n=Se;Se|=2;var a=Wd(),s=Id();Ae!==e||ge!==t?(is=null,ls=Ht()+500,qa(e,t)):La=Ia(e,t);e:do try{if(xe!==0&&ce!==null){t=ce;var o=bt;t:switch(xe){case 1:xe=0,bt=null,Ga(e,t,o,1);break;case 2:case 9:if(df(o)){xe=0,bt=null,th(t);break}t=function(){xe!==2&&xe!==9||Ae!==e||(xe=7),Yt(e)},o.then(t,t);break e;case 3:xe=7;break e;case 4:xe=5;break e;case 7:df(o)?(xe=0,bt=null,th(t)):(xe=0,bt=null,Ga(e,t,o,7));break;case 5:var m=null;switch(ce.tag){case 26:m=ce.memoizedState;case 5:case 27:var y=ce;if(!m||Lh(m)){xe=0,bt=null;var x=y.sibling;if(x!==null)ce=x;else{var C=y.return;C!==null?(ce=C,us(C)):ce=null}break t}}xe=0,bt=null,Ga(e,t,o,5);break;case 6:xe=0,bt=null,Ga(e,t,o,6);break;case 8:Lr(),Le=6;break e;default:throw Error(r(462))}}ey();break}catch(M){Pd(e,M)}while(!0);return Pt=Jn=null,D.H=a,D.A=s,Se=n,ce!==null?0:(Ae=null,ge=0,Ai(),Le)}function ey(){for(;ce!==null&&!Eg();)eh(ce)}function eh(e){var t=Od(e.alternate,e,sn);e.memoizedProps=e.pendingProps,t===null?us(e):ce=t}function th(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=xd(n,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=xd(n,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Iu(t);default:Cd(n,t),t=ce=tf(t,sn),t=Od(n,t,sn)}e.memoizedProps=e.pendingProps,t===null?us(e):ce=t}function Ga(e,t,n,a){Pt=Jn=null,Iu(t),_a=null,Ol=0;var s=t.return;try{if(Ym(e,s,t,n,ge)){Le=1,Wi(e,wt(n,e.current)),ce=null;return}}catch(o){if(s!==null)throw ce=s,o;Le=1,Wi(e,wt(n,e.current)),ce=null;return}t.flags&32768?(ve||a===1?e=!0:La||(ge&536870912)!==0?e=!1:(Nn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ct.current,a!==null&&a.tag===13&&(a.flags|=16384))),nh(t,e)):us(t)}function us(e){var t=e;do{if((t.flags&32768)!==0){nh(t,Nn);return}e=t.return;var n=Qm(t.alternate,t,sn);if(n!==null){ce=n;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);Le===0&&(Le=5)}function nh(e,t){do{var n=Xm(e.alternate,e);if(n!==null){n.flags&=32767,ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=n}while(e!==null);Le=6,ce=null}function ah(e,t,n,a,s,o,m,y,x){e.cancelPendingCommit=null;do rs();while(Fe!==0);if((Se&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,o|=Au,_g(e,n,o,m,y,x),e===Ae&&(ce=Ae=null,ge=0),Ha=t,Cn=e,Ba=n,Dr=o,jr=s,Zd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ly(hi,function(){return rh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,s=$.p,$.p=2,m=Se,Se|=4;try{Zm(e,t,n)}finally{Se=m,$.p=s,D.T=a}}Fe=1,lh(),ih(),sh()}}function lh(){if(Fe===1){Fe=0;var e=Cn,t=Ha,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var a=$.p;$.p=2;var s=Se;Se|=4;try{qd(t,e);var o=Fr,m=Qc(e.containerInfo),y=o.focusedElem,x=o.selectionRange;if(m!==y&&y&&y.ownerDocument&&Vc(y.ownerDocument.documentElement,y)){if(x!==null&&Tu(y)){var C=x.start,M=x.end;if(M===void 0&&(M=C),"selectionStart"in y)y.selectionStart=C,y.selectionEnd=Math.min(M,y.value.length);else{var H=y.ownerDocument||document,k=H&&H.defaultView||window;if(k.getSelection){var z=k.getSelection(),ne=y.textContent.length,I=Math.min(x.start,ne),we=x.end===void 0?I:Math.min(x.end,ne);!z.extend&&I>we&&(m=we,we=I,I=m);var N=Yc(y,I),w=Yc(y,we);if(N&&w&&(z.rangeCount!==1||z.anchorNode!==N.node||z.anchorOffset!==N.offset||z.focusNode!==w.node||z.focusOffset!==w.offset)){var A=H.createRange();A.setStart(N.node,N.offset),z.removeAllRanges(),I>we?(z.addRange(A),z.extend(w.node,w.offset)):(A.setEnd(w.node,w.offset),z.addRange(A))}}}}for(H=[],z=y;z=z.parentNode;)z.nodeType===1&&H.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<H.length;y++){var L=H[y];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Ss=!!Jr,Fr=Jr=null}finally{Se=s,$.p=a,D.T=n}}e.current=t,Fe=2}}function ih(){if(Fe===2){Fe=0;var e=Cn,t=Ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=$.p;$.p=2;var s=Se;Se|=4;try{Ld(e,t.alternate,t)}finally{Se=s,$.p=a,D.T=n}}Fe=3}}function sh(){if(Fe===4||Fe===3){Fe=0,Tg();var e=Cn,t=Ha,n=Ba,a=Zd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Ha=Cn=null,uh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(An=null),nu(n),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Wa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,s=$.p,$.p=2,D.T=null;try{for(var o=e.onRecoverableError,m=0;m<a.length;m++){var y=a[m];o(y.value,{componentStack:y.stack})}}finally{D.T=t,$.p=s}}(Ba&3)!==0&&rs(),Yt(e),s=e.pendingLanes,(n&4194090)!==0&&(s&42)!==0?e===Mr?Ll++:(Ll=0,Mr=e):Ll=0,Ul(0)}}function uh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ml(t)))}function rs(e){return lh(),ih(),sh(),rh()}function rh(){if(Fe!==5)return!1;var e=Cn,t=Dr;Dr=0;var n=nu(Ba),a=D.T,s=$.p;try{$.p=32>n?32:n,D.T=null,n=jr,jr=null;var o=Cn,m=Ba;if(Fe=0,Ha=Cn=null,Ba=0,(Se&6)!==0)throw Error(r(331));var y=Se;if(Se|=4,Qd(o.current),$d(o,o.current,m,n),Se=y,Ul(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Wa,o)}catch{}return!0}finally{$.p=s,D.T=a,uh(e,t)}}function oh(e,t,n){t=wt(n,t),t=hr(e.stateNode,t,2),e=bn(e,t,2),e!==null&&(el(e,2),Yt(e))}function Ne(e,t,n){if(e.tag===3)oh(e,e,n);else for(;t!==null;){if(t.tag===3){oh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(An===null||!An.has(a))){e=wt(n,e),n=hd(2),a=bn(t,n,2),a!==null&&(pd(n,a,t,e),el(a,2),Yt(a));break}}t=t.return}}function Br(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Fm;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(Cr=!0,s.add(n),e=ty.bind(null,e,t,n),t.then(e,e))}function ty(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ae===e&&(ge&n)===n&&(Le===4||Le===3&&(ge&62914560)===ge&&300>Ht()-_r?(Se&2)===0&&qa(e,0):kr|=n,Ua===ge&&(Ua=0)),Yt(e)}function ch(e,t){t===0&&(t=ic()),e=Ea(e,t),e!==null&&(el(e,t),Yt(e))}function ny(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ch(e,n)}function ay(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),ch(e,n)}function ly(e,t){return Ws(e,t)}var os=null,$a=null,qr=!1,cs=!1,Gr=!1,na=0;function Yt(e){e!==$a&&e.next===null&&($a===null?os=$a=e:$a=$a.next=e),cs=!0,qr||(qr=!0,sy())}function Ul(e,t){if(!Gr&&cs){Gr=!0;do for(var n=!1,a=os;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var o=0;else{var m=a.suspendedLanes,y=a.pingedLanes;o=(1<<31-pt(42|e)+1)-1,o&=s&~(m&~y),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,ph(a,o))}else o=ge,o=mi(a,a===Ae?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Ia(a,o)||(n=!0,ph(a,o));a=a.next}while(n);Gr=!1}}function iy(){fh()}function fh(){cs=qr=!1;var e=0;na!==0&&(py()&&(e=na),na=0);for(var t=Ht(),n=null,a=os;a!==null;){var s=a.next,o=dh(a,t);o===0?(a.next=null,n===null?os=s:n.next=s,s===null&&($a=n)):(n=a,(e!==0||(o&3)!==0)&&(cs=!0)),a=s}Ul(e)}function dh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-pt(o),y=1<<m,x=s[m];x===-1?((y&n)===0||(y&a)!==0)&&(s[m]=zg(y,t)):x<=t&&(e.expiredLanes|=y),o&=~y}if(t=Ae,n=ge,n=mi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(xe===2||xe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Is(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ia(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Is(a),nu(n)){case 2:case 8:n=nc;break;case 32:n=hi;break;case 268435456:n=ac;break;default:n=hi}return a=hh.bind(null,e),n=Ws(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Is(a),e.callbackPriority=2,e.callbackNode=null,2}function hh(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(rs()&&e.callbackNode!==n)return null;var a=ge;return a=mi(e,e===Ae?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Jd(e,a,t),dh(e,Ht()),e.callbackNode!=null&&e.callbackNode===n?hh.bind(null,e):null)}function ph(e,t){if(rs())return null;Jd(e,t,!0)}function sy(){my(function(){(Se&6)!==0?Ws(tc,iy):fh()})}function $r(){return na===0&&(na=lc()),na}function gh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xi(""+e)}function mh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function uy(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var o=gh((s[ut]||null).action),m=a.submitter;m&&(t=(t=m[ut]||null)?gh(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var y=new wi("action","action",null,a,s);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(na!==0){var x=m?mh(s,m):new FormData(s);rr(n,{pending:!0,data:x,method:s.method,action:o},null,x)}}else typeof o=="function"&&(y.preventDefault(),x=m?mh(s,m):new FormData(s),rr(n,{pending:!0,data:x,method:s.method,action:o},o,x))},currentTarget:s}]})}}for(var Yr=0;Yr<Ou.length;Yr++){var Vr=Ou[Yr],ry=Vr.toLowerCase(),oy=Vr[0].toUpperCase()+Vr.slice(1);Dt(ry,"on"+oy)}Dt(Kc,"onAnimationEnd"),Dt(Jc,"onAnimationIteration"),Dt(Fc,"onAnimationStart"),Dt("dblclick","onDoubleClick"),Dt("focusin","onFocus"),Dt("focusout","onBlur"),Dt(Nm,"onTransitionRun"),Dt(Om,"onTransitionStart"),Dt(Am,"onTransitionCancel"),Dt(Pc,"onTransitionEnd"),da("onMouseEnter",["mouseout","mouseover"]),da("onMouseLeave",["mouseout","mouseover"]),da("onPointerEnter",["pointerout","pointerover"]),da("onPointerLeave",["pointerout","pointerover"]),qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hl));function yh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var m=a.length-1;0<=m;m--){var y=a[m],x=y.instance,C=y.currentTarget;if(y=y.listener,x!==o&&s.isPropagationStopped())break e;o=y,s.currentTarget=C;try{o(s)}catch(M){Pi(M)}s.currentTarget=null,o=x}else for(m=0;m<a.length;m++){if(y=a[m],x=y.instance,C=y.currentTarget,y=y.listener,x!==o&&s.isPropagationStopped())break e;o=y,s.currentTarget=C;try{o(s)}catch(M){Pi(M)}s.currentTarget=null,o=x}}}}function fe(e,t){var n=t[au];n===void 0&&(n=t[au]=new Set);var a=e+"__bubble";n.has(a)||(vh(t,e,2,!1),n.add(a))}function Qr(e,t,n){var a=0;t&&(a|=4),vh(n,e,a,t)}var fs="_reactListening"+Math.random().toString(36).slice(2);function Xr(e){if(!e[fs]){e[fs]=!0,cc.forEach(function(n){n!=="selectionchange"&&(cy.has(n)||Qr(n,!1,e),Qr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fs]||(t[fs]=!0,Qr("selectionchange",!1,t))}}function vh(e,t,n,a){switch($h(t)){case 2:var s=Uy;break;case 8:s=Hy;break;default:s=so}n=s.bind(null,t,n,e),s=void 0,!pu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Zr(e,t,n,a,s){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var y=a.stateNode.containerInfo;if(y===s)break;if(m===4)for(m=a.return;m!==null;){var x=m.tag;if((x===3||x===4)&&m.stateNode.containerInfo===s)return;m=m.return}for(;y!==null;){if(m=oa(y),m===null)return;if(x=m.tag,x===5||x===6||x===26||x===27){a=o=m;continue e}y=y.parentNode}}a=a.return}Rc(function(){var C=o,M=du(n),H=[];e:{var k=Wc.get(e);if(k!==void 0){var z=wi,ne=e;switch(e){case"keypress":if(Ti(n)===0)break e;case"keydown":case"keyup":z=lm;break;case"focusin":ne="focus",z=vu;break;case"focusout":ne="blur",z=vu;break;case"beforeblur":case"afterblur":z=vu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Oc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Xg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=um;break;case Kc:case Jc:case Fc:z=Jg;break;case Pc:z=om;break;case"scroll":case"scrollend":z=Vg;break;case"wheel":z=fm;break;case"copy":case"cut":case"paste":z=Pg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Cc;break;case"toggle":case"beforetoggle":z=hm}var I=(t&4)!==0,we=!I&&(e==="scroll"||e==="scrollend"),N=I?k!==null?k+"Capture":null:k;I=[];for(var w=C,A;w!==null;){var L=w;if(A=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||A===null||N===null||(L=al(w,N),L!=null&&I.push(Bl(w,L,A))),we)break;w=w.return}0<I.length&&(k=new z(k,ne,null,n,M),H.push({event:k,listeners:I}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",k&&n!==fu&&(ne=n.relatedTarget||n.fromElement)&&(oa(ne)||ne[ra]))break e;if((z||k)&&(k=M.window===M?M:(k=M.ownerDocument)?k.defaultView||k.parentWindow:window,z?(ne=n.relatedTarget||n.toElement,z=C,ne=ne?oa(ne):null,ne!==null&&(we=f(ne),I=ne.tag,ne!==we||I!==5&&I!==27&&I!==6)&&(ne=null)):(z=null,ne=C),z!==ne)){if(I=Oc,L="onMouseLeave",N="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(I=Cc,L="onPointerLeave",N="onPointerEnter",w="pointer"),we=z==null?k:nl(z),A=ne==null?k:nl(ne),k=new I(L,w+"leave",z,n,M),k.target=we,k.relatedTarget=A,L=null,oa(M)===C&&(I=new I(N,w+"enter",ne,n,M),I.target=A,I.relatedTarget=we,L=I),we=L,z&&ne)t:{for(I=z,N=ne,w=0,A=I;A;A=Ya(A))w++;for(A=0,L=N;L;L=Ya(L))A++;for(;0<w-A;)I=Ya(I),w--;for(;0<A-w;)N=Ya(N),A--;for(;w--;){if(I===N||N!==null&&I===N.alternate)break t;I=Ya(I),N=Ya(N)}I=null}else I=null;z!==null&&bh(H,k,z,I,!1),ne!==null&&we!==null&&bh(H,we,ne,I,!0)}}e:{if(k=C?nl(C):window,z=k.nodeName&&k.nodeName.toLowerCase(),z==="select"||z==="input"&&k.type==="file")var K=Uc;else if(Mc(k))if(Hc)K=Tm;else{K=xm;var oe=Sm}else z=k.nodeName,!z||z.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?C&&cu(C.elementType)&&(K=Uc):K=Em;if(K&&(K=K(e,C))){Lc(H,K,n,M);break e}oe&&oe(e,k,C),e==="focusout"&&C&&k.type==="number"&&C.memoizedProps.value!=null&&ou(k,"number",k.value)}switch(oe=C?nl(C):window,e){case"focusin":(Mc(oe)||oe.contentEditable==="true")&&(ba=oe,Ru=C,fl=null);break;case"focusout":fl=Ru=ba=null;break;case"mousedown":wu=!0;break;case"contextmenu":case"mouseup":case"dragend":wu=!1,Xc(H,n,M);break;case"selectionchange":if(wm)break;case"keydown":case"keyup":Xc(H,n,M)}var J;if(Su)e:{switch(e){case"compositionstart":var te="onCompositionStart";break e;case"compositionend":te="onCompositionEnd";break e;case"compositionupdate":te="onCompositionUpdate";break e}te=void 0}else va?Dc(e,n)&&(te="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(te="onCompositionStart");te&&(kc&&n.locale!=="ko"&&(va||te!=="onCompositionStart"?te==="onCompositionEnd"&&va&&(J=wc()):(gn=M,gu="value"in gn?gn.value:gn.textContent,va=!0)),oe=ds(C,te),0<oe.length&&(te=new Ac(te,e,null,n,M),H.push({event:te,listeners:oe}),J?te.data=J:(J=jc(n),J!==null&&(te.data=J)))),(J=gm?mm(e,n):ym(e,n))&&(te=ds(C,"onBeforeInput"),0<te.length&&(oe=new Ac("onBeforeInput","beforeinput",null,n,M),H.push({event:oe,listeners:te}),oe.data=J)),uy(H,e,C,n,M)}yh(H,t)})}function Bl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ds(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=al(e,n),s!=null&&a.unshift(Bl(e,s,o)),s=al(e,t),s!=null&&a.push(Bl(e,s,o))),e.tag===3)return a;e=e.return}return[]}function Ya(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bh(e,t,n,a,s){for(var o=t._reactName,m=[];n!==null&&n!==a;){var y=n,x=y.alternate,C=y.stateNode;if(y=y.tag,x!==null&&x===a)break;y!==5&&y!==26&&y!==27||C===null||(x=C,s?(C=al(n,o),C!=null&&m.unshift(Bl(n,C,x))):s||(C=al(n,o),C!=null&&m.push(Bl(n,C,x)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var fy=/\r\n?/g,dy=/\u0000|\uFFFD/g;function Sh(e){return(typeof e=="string"?e:""+e).replace(fy,`
172
- `).replace(dy,"")}function xh(e,t){return t=Sh(t),Sh(e)===t}function hs(){}function Re(e,t,n,a,s,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ga(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ga(e,""+a);break;case"className":vi(e,"class",a);break;case"tabIndex":vi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(e,n,a);break;case"style":Ec(e,a,o);break;case"data":if(t!=="object"){vi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=xi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Re(e,t,"name",s.name,s,null),Re(e,t,"formEncType",s.formEncType,s,null),Re(e,t,"formMethod",s.formMethod,s,null),Re(e,t,"formTarget",s.formTarget,s,null)):(Re(e,t,"encType",s.encType,s,null),Re(e,t,"method",s.method,s,null),Re(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=xi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=hs);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=xi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":fe("beforetoggle",e),fe("toggle",e),yi(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":yi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=$g.get(n)||n,yi(e,n,a))}}function Kr(e,t,n,a,s,o){switch(n){case"style":Ec(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ga(e,a):(typeof a=="number"||typeof a=="bigint")&&ga(e,""+a);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=hs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),o=e[ut]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,s),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):yi(e,n,a)}}}function Pe(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var a=!1,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,o,m,n,null)}}s&&Re(e,t,"srcSet",n.srcSet,n,null),a&&Re(e,t,"src",n.src,n,null);return;case"input":fe("invalid",e);var y=o=m=s=null,x=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var M=n[a];if(M!=null)switch(a){case"name":s=M;break;case"type":m=M;break;case"checked":x=M;break;case"defaultChecked":C=M;break;case"value":o=M;break;case"defaultValue":y=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:Re(e,t,a,M,n,null)}}vc(e,o,y,x,C,m,s,!1),bi(e);return;case"select":fe("invalid",e),a=m=o=null;for(s in n)if(n.hasOwnProperty(s)&&(y=n[s],y!=null))switch(s){case"value":o=y;break;case"defaultValue":m=y;break;case"multiple":a=y;default:Re(e,t,s,y,n,null)}t=o,n=m,e.multiple=!!a,t!=null?pa(e,!!a,t,!1):n!=null&&pa(e,!!a,n,!0);return;case"textarea":fe("invalid",e),o=s=a=null;for(m in n)if(n.hasOwnProperty(m)&&(y=n[m],y!=null))switch(m){case"value":a=y;break;case"defaultValue":s=y;break;case"children":o=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:Re(e,t,m,y,n,null)}Sc(e,a,s,o),bi(e);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,x,a,n,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(a=0;a<Hl.length;a++)fe(Hl[a],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,C,a,n,null)}return;default:if(cu(t)){for(M in n)n.hasOwnProperty(M)&&(a=n[M],a!==void 0&&Kr(e,t,M,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Re(e,t,y,a,n,null))}function hy(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,m=null,y=null,x=null,C=null,M=null;for(z in n){var H=n[z];if(n.hasOwnProperty(z)&&H!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":x=H;default:a.hasOwnProperty(z)||Re(e,t,z,null,a,H)}}for(var k in a){var z=a[k];if(H=n[k],a.hasOwnProperty(k)&&(z!=null||H!=null))switch(k){case"type":o=z;break;case"name":s=z;break;case"checked":C=z;break;case"defaultChecked":M=z;break;case"value":m=z;break;case"defaultValue":y=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:z!==H&&Re(e,t,k,z,a,H)}}ru(e,m,y,x,C,M,o,s);return;case"select":z=m=y=k=null;for(o in n)if(x=n[o],n.hasOwnProperty(o)&&x!=null)switch(o){case"value":break;case"multiple":z=x;default:a.hasOwnProperty(o)||Re(e,t,o,null,a,x)}for(s in a)if(o=a[s],x=n[s],a.hasOwnProperty(s)&&(o!=null||x!=null))switch(s){case"value":k=o;break;case"defaultValue":y=o;break;case"multiple":m=o;default:o!==x&&Re(e,t,s,o,a,x)}t=y,n=m,a=z,k!=null?pa(e,!!n,k,!1):!!a!=!!n&&(t!=null?pa(e,!!n,t,!0):pa(e,!!n,n?[]:"",!1));return;case"textarea":z=k=null;for(y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Re(e,t,y,null,a,s)}for(m in a)if(s=a[m],o=n[m],a.hasOwnProperty(m)&&(s!=null||o!=null))switch(m){case"value":k=s;break;case"defaultValue":z=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==o&&Re(e,t,m,s,a,o)}bc(e,k,z);return;case"option":for(var ne in n)if(k=n[ne],n.hasOwnProperty(ne)&&k!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Re(e,t,ne,null,a,k)}for(x in a)if(k=a[x],z=n[x],a.hasOwnProperty(x)&&k!==z&&(k!=null||z!=null))switch(x){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Re(e,t,x,k,a,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var I in n)k=n[I],n.hasOwnProperty(I)&&k!=null&&!a.hasOwnProperty(I)&&Re(e,t,I,null,a,k);for(C in a)if(k=a[C],z=n[C],a.hasOwnProperty(C)&&k!==z&&(k!=null||z!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:Re(e,t,C,k,a,z)}return;default:if(cu(t)){for(var we in n)k=n[we],n.hasOwnProperty(we)&&k!==void 0&&!a.hasOwnProperty(we)&&Kr(e,t,we,void 0,a,k);for(M in a)k=a[M],z=n[M],!a.hasOwnProperty(M)||k===z||k===void 0&&z===void 0||Kr(e,t,M,k,a,z);return}}for(var N in n)k=n[N],n.hasOwnProperty(N)&&k!=null&&!a.hasOwnProperty(N)&&Re(e,t,N,null,a,k);for(H in a)k=a[H],z=n[H],!a.hasOwnProperty(H)||k===z||k==null&&z==null||Re(e,t,H,k,a,z)}var Jr=null,Fr=null;function ps(e){return e.nodeType===9?e:e.ownerDocument}function Eh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Th(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Pr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wr=null;function py(){var e=window.event;return e&&e.type==="popstate"?e===Wr?!1:(Wr=e,!0):(Wr=null,!1)}var Rh=typeof setTimeout=="function"?setTimeout:void 0,gy=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,my=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(yy)}:Rh;function yy(e){setTimeout(function(){throw e})}function zn(e){return e==="head"}function Nh(e,t){var n=t,a=0,s=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(0<a&&8>a){n=a;var m=e.ownerDocument;if(n&1&&ql(m.documentElement),n&2&&ql(m.body),n&4)for(n=m.head,ql(n),m=n.firstChild;m;){var y=m.nextSibling,x=m.nodeName;m[tl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&m.rel.toLowerCase()==="stylesheet"||n.removeChild(m),m=y}}if(s===0){e.removeChild(o),Kl(t);return}s--}else n==="$"||n==="$?"||n==="$!"?s++:a=n.charCodeAt(0)-48;else a=0;n=o}while(n);Kl(t)}function Ir(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ir(n),lu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function vy(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[tl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Mt(e.nextSibling),e===null)break}return null}function by(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Mt(e.nextSibling),e===null))return null;return e}function eo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Sy(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Mt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var to=null;function Oh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function Ah(e,t,n){switch(t=ps(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function ql(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lu(e)}var zt=new Map,Ch=new Set;function gs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var un=$.d;$.d={f:xy,r:Ey,D:Ty,C:Ry,L:wy,m:Ny,X:Ay,S:Oy,M:Cy};function xy(){var e=un.f(),t=ss();return e||t}function Ey(e){var t=ca(e);t!==null&&t.tag===5&&t.type==="form"?Jf(t):un.r(e)}var Va=typeof document>"u"?null:document;function kh(e,t,n){var a=Va;if(a&&typeof t=="string"&&t){var s=Rt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Ch.has(s)||(Ch.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),Pe(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Ty(e){un.D(e),kh("dns-prefetch",e,null)}function Ry(e,t){un.C(e,t),kh("preconnect",e,t)}function wy(e,t,n){un.L(e,t,n);var a=Va;if(a&&e&&t){var s='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Rt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Rt(n.imageSizes)+'"]')):s+='[href="'+Rt(e)+'"]';var o=s;switch(t){case"style":o=Qa(e);break;case"script":o=Xa(e)}zt.has(o)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),zt.set(o,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(Gl(o))||t==="script"&&a.querySelector($l(o))||(t=a.createElement("link"),Pe(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Ny(e,t){un.m(e,t);var n=Va;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Rt(a)+'"][href="'+Rt(e)+'"]',o=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Xa(e)}if(!zt.has(o)&&(e=v({rel:"modulepreload",href:e},t),zt.set(o,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($l(o)))return}a=n.createElement("link"),Pe(a,"link",e),Qe(a),n.head.appendChild(a)}}}function Oy(e,t,n){un.S(e,t,n);var a=Va;if(a&&e){var s=fa(a).hoistableStyles,o=Qa(e);t=t||"default";var m=s.get(o);if(!m){var y={loading:0,preload:null};if(m=a.querySelector(Gl(o)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=zt.get(o))&&no(e,n);var x=m=a.createElement("link");Qe(x),Pe(x,"link",e),x._p=new Promise(function(C,M){x.onload=C,x.onerror=M}),x.addEventListener("load",function(){y.loading|=1}),x.addEventListener("error",function(){y.loading|=2}),y.loading|=4,ms(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:y},s.set(o,m)}}}function Ay(e,t){un.X(e,t);var n=Va;if(n&&e){var a=fa(n).hoistableScripts,s=Xa(e),o=a.get(s);o||(o=n.querySelector($l(s)),o||(e=v({src:e,async:!0},t),(t=zt.get(s))&&ao(e,t),o=n.createElement("script"),Qe(o),Pe(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(s,o))}}function Cy(e,t){un.M(e,t);var n=Va;if(n&&e){var a=fa(n).hoistableScripts,s=Xa(e),o=a.get(s);o||(o=n.querySelector($l(s)),o||(e=v({src:e,async:!0,type:"module"},t),(t=zt.get(s))&&ao(e,t),o=n.createElement("script"),Qe(o),Pe(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(s,o))}}function zh(e,t,n,a){var s=(s=se.current)?gs(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Qa(n.href),n=fa(s).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Qa(n.href);var o=fa(s).hoistableStyles,m=o.get(e);if(m||(s=s.ownerDocument||s,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=s.querySelector(Gl(e)))&&!o._p&&(m.instance=o,m.state.loading=5),zt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},zt.set(e,n),o||ky(s,e,n,m.state))),t&&a===null)throw Error(r(528,""));return m}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Xa(n),n=fa(s).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Qa(e){return'href="'+Rt(e)+'"'}function Gl(e){return'link[rel="stylesheet"]['+e+"]"}function _h(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function ky(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Pe(t,"link",n),Qe(t),e.head.appendChild(t))}function Xa(e){return'[src="'+Rt(e)+'"]'}function $l(e){return"script[async]"+e}function Dh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Rt(n.href)+'"]');if(a)return t.instance=a,Qe(a),a;var s=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),Pe(a,"style",s),ms(a,n.precedence,e),t.instance=a;case"stylesheet":s=Qa(n.href);var o=e.querySelector(Gl(s));if(o)return t.state.loading|=4,t.instance=o,Qe(o),o;a=_h(n),(s=zt.get(s))&&no(a,s),o=(e.ownerDocument||e).createElement("link"),Qe(o);var m=o;return m._p=new Promise(function(y,x){m.onload=y,m.onerror=x}),Pe(o,"link",a),t.state.loading|=4,ms(o,n.precedence,e),t.instance=o;case"script":return o=Xa(n.src),(s=e.querySelector($l(o)))?(t.instance=s,Qe(s),s):(a=n,(s=zt.get(o))&&(a=v({},n),ao(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),Qe(s),Pe(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ms(a,n.precedence,e));return t.instance}function ms(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,o=s,m=0;m<a.length;m++){var y=a[m];if(y.dataset.precedence===t)o=y;else if(o!==s)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function no(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ao(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ys=null;function jh(e,t,n){if(ys===null){var a=new Map,s=ys=new Map;s.set(n,a)}else s=ys,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var o=n[s];if(!(o[tl]||o[We]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var y=a.get(m);y?y.push(o):a.set(m,[o])}}return a}function Mh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function zy(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Lh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Yl=null;function _y(){}function Dy(e,t,n){if(Yl===null)throw Error(r(475));var a=Yl;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var s=Qa(n.href),o=e.querySelector(Gl(s));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=vs.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=o,Qe(o);return}o=e.ownerDocument||e,n=_h(n),(s=zt.get(s))&&no(n,s),o=o.createElement("link"),Qe(o);var m=o;m._p=new Promise(function(y,x){m.onload=y,m.onerror=x}),Pe(o,"link",n),t.instance=o}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=vs.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function jy(){if(Yl===null)throw Error(r(475));var e=Yl;return e.stylesheets&&e.count===0&&lo(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&lo(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function vs(){if(this.count--,this.count===0){if(this.stylesheets)lo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bs=null;function lo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bs=new Map,t.forEach(My,e),bs=null,vs.call(e))}function My(e,t){if(!(t.state.loading&4)){var n=bs.get(e);if(n)var a=n.get(null);else{n=new Map,bs.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var m=s[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}s=t.instance,m=s.getAttribute("data-precedence"),o=n.get(m)||a,o===a&&n.set(null,s),n.set(m,s),this.count++,a=vs.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),o?o.parentNode.insertBefore(s,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Vl={$$typeof:X,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Ly(e,t,n,a,s,o,m,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=eu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eu(0),this.hiddenUpdates=eu(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function Uh(e,t,n,a,s,o,m,y,x,C,M,H){return e=new Ly(e,t,n,m,y,x,C,H),t=1,o===!0&&(t|=24),o=mt(3,null,null,t),e.current=o,o.stateNode=e,t=Bu(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Yu(o),e}function Hh(e){return e?(e=Ta,e):Ta}function Bh(e,t,n,a,s,o){s=Hh(s),a.context===null?a.context=s:a.pendingContext=s,a=vn(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=bn(e,a,t),n!==null&&(xt(n,e,t),Sl(n,e,t))}function qh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function io(e,t){qh(e,t),(e=e.alternate)&&qh(e,t)}function Gh(e){if(e.tag===13){var t=Ea(e,67108864);t!==null&&xt(t,e,67108864),io(e,67108864)}}var Ss=!0;function Uy(e,t,n,a){var s=D.T;D.T=null;var o=$.p;try{$.p=2,so(e,t,n,a)}finally{$.p=o,D.T=s}}function Hy(e,t,n,a){var s=D.T;D.T=null;var o=$.p;try{$.p=8,so(e,t,n,a)}finally{$.p=o,D.T=s}}function so(e,t,n,a){if(Ss){var s=uo(a);if(s===null)Zr(e,t,a,xs,n),Yh(e,a);else if(qy(s,e,t,n,a))a.stopPropagation();else if(Yh(e,a),t&4&&-1<By.indexOf(e)){for(;s!==null;){var o=ca(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=Bn(o.pendingLanes);if(m!==0){var y=o;for(y.pendingLanes|=2,y.entangledLanes|=2;m;){var x=1<<31-pt(m);y.entanglements[1]|=x,m&=~x}Yt(o),(Se&6)===0&&(ls=Ht()+500,Ul(0))}}break;case 13:y=Ea(o,2),y!==null&&xt(y,o,2),ss(),io(o,2)}if(o=uo(a),o===null&&Zr(e,t,a,xs,n),o===s)break;s=o}s!==null&&a.stopPropagation()}else Zr(e,t,a,null,n)}}function uo(e){return e=du(e),ro(e)}var xs=null;function ro(e){if(xs=null,e=oa(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xs=e,null}function $h(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rg()){case tc:return 2;case nc:return 8;case hi:case wg:return 32;case ac:return 268435456;default:return 32}default:return 32}}var oo=!1,_n=null,Dn=null,jn=null,Ql=new Map,Xl=new Map,Mn=[],By="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yh(e,t){switch(e){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":jn=null;break;case"pointerover":case"pointerout":Ql.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xl.delete(t.pointerId)}}function Zl(e,t,n,a,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[s]},t!==null&&(t=ca(t),t!==null&&Gh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function qy(e,t,n,a,s){switch(t){case"focusin":return _n=Zl(_n,e,t,n,a,s),!0;case"dragenter":return Dn=Zl(Dn,e,t,n,a,s),!0;case"mouseover":return jn=Zl(jn,e,t,n,a,s),!0;case"pointerover":var o=s.pointerId;return Ql.set(o,Zl(Ql.get(o)||null,e,t,n,a,s)),!0;case"gotpointercapture":return o=s.pointerId,Xl.set(o,Zl(Xl.get(o)||null,e,t,n,a,s)),!0}return!1}function Vh(e){var t=oa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Dg(e.priority,function(){if(n.tag===13){var a=St();a=tu(a);var s=Ea(n,a);s!==null&&xt(s,n,a),io(n,a)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Es(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=uo(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);fu=a,n.target.dispatchEvent(a),fu=null}else return t=ca(n),t!==null&&Gh(t),e.blockedOn=n,!1;t.shift()}return!0}function Qh(e,t,n){Es(e)&&n.delete(t)}function Gy(){oo=!1,_n!==null&&Es(_n)&&(_n=null),Dn!==null&&Es(Dn)&&(Dn=null),jn!==null&&Es(jn)&&(jn=null),Ql.forEach(Qh),Xl.forEach(Qh)}function Ts(e,t){e.blockedOn===t&&(e.blockedOn=null,oo||(oo=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Gy)))}var Rs=null;function Xh(e){Rs!==e&&(Rs=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Rs===e&&(Rs=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(ro(a||n)===null)continue;break}var o=ca(n);o!==null&&(e.splice(t,3),t-=3,rr(o,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function Kl(e){function t(x){return Ts(x,e)}_n!==null&&Ts(_n,e),Dn!==null&&Ts(Dn,e),jn!==null&&Ts(jn,e),Ql.forEach(t),Xl.forEach(t);for(var n=0;n<Mn.length;n++){var a=Mn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Mn.length&&(n=Mn[0],n.blockedOn===null);)Vh(n),n.blockedOn===null&&Mn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],o=n[a+1],m=s[ut]||null;if(typeof o=="function")m||Xh(n);else if(m){var y=null;if(o&&o.hasAttribute("formAction")){if(s=o,m=o[ut]||null)y=m.formAction;else if(ro(s)!==null)continue}else y=m.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),Xh(n)}}}function co(e){this._internalRoot=e}ws.prototype.render=co.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=St();Bh(n,a,e,t,null,null)},ws.prototype.unmount=co.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bh(e.current,2,null,e,null,null),ss(),t[ra]=null}};function ws(e){this._internalRoot=e}ws.prototype.unstable_scheduleHydration=function(e){if(e){var t=rc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mn.length&&t!==0&&t<Mn[n].priority;n++);Mn.splice(n,0,e),n===0&&Vh(e)}};var Zh=l.version;if(Zh!=="19.1.0")throw Error(r(527,Zh,"19.1.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?d(e):null,e=e===null?null:e.stateNode,e};var $y={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ns.isDisabled&&Ns.supportsFiber)try{Wa=Ns.inject($y),ht=Ns}catch{}}return Pl.createRoot=function(e,t){if(!c(e))throw Error(r(299));var n=!1,a="",s=od,o=cd,m=fd,y=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(y=t.unstable_transitionCallbacks)),t=Uh(e,1,!1,null,null,n,a,s,o,m,y,null),e[ra]=t.current,Xr(e),new co(t)},Pl.hydrateRoot=function(e,t,n){if(!c(e))throw Error(r(299));var a=!1,s="",o=od,m=cd,y=fd,x=null,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(x=n.unstable_transitionCallbacks),n.formState!==void 0&&(C=n.formState)),t=Uh(e,1,!0,t,n??null,a,s,o,m,y,x,C),t.context=Hh(null),n=t.current,a=St(),a=tu(a),s=vn(a),s.callback=null,bn(n,s,a),n=a,t.current.lanes=n,el(t,n),Yt(t),e[ra]=t.current,Xr(e),new ws(t)},Pl.version="19.1.0",Pl}var bp;function nS(){if(bp)return go.exports;bp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),go.exports=tS(),go.exports}var aS=nS();const lS=Up(aS);var Wl={},Sp;function iS(){if(Sp)return Wl;Sp=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.parse=p,Wl.serialize=d;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,u=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,c=Object.prototype.toString,f=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function p(b,_){const T=new f,j=b.length;if(j<2)return T;const G=(_==null?void 0:_.decode)||v;let B=0;do{const q=b.indexOf("=",B);if(q===-1)break;const X=b.indexOf(";",B),F=X===-1?j:X;if(q>F){B=b.lastIndexOf(";",q-1)+1;continue}const Z=h(b,B,q),de=g(b,q,Z),le=b.slice(Z,de);if(T[le]===void 0){let ie=h(b,q+1,F),Q=g(b,F,ie);const ee=G(b.slice(ie,Q));T[le]=ee}B=F+1}while(B<j);return T}function h(b,_,T){do{const j=b.charCodeAt(_);if(j!==32&&j!==9)return _}while(++_<T);return T}function g(b,_,T){for(;_>T;){const j=b.charCodeAt(--_);if(j!==32&&j!==9)return _+1}return T}function d(b,_,T){const j=(T==null?void 0:T.encode)||encodeURIComponent;if(!i.test(b))throw new TypeError(`argument name is invalid: ${b}`);const G=j(_);if(!l.test(G))throw new TypeError(`argument val is invalid: ${_}`);let B=b+"="+G;if(!T)return B;if(T.maxAge!==void 0){if(!Number.isInteger(T.maxAge))throw new TypeError(`option maxAge is invalid: ${T.maxAge}`);B+="; Max-Age="+T.maxAge}if(T.domain){if(!u.test(T.domain))throw new TypeError(`option domain is invalid: ${T.domain}`);B+="; Domain="+T.domain}if(T.path){if(!r.test(T.path))throw new TypeError(`option path is invalid: ${T.path}`);B+="; Path="+T.path}if(T.expires){if(!S(T.expires)||!Number.isFinite(T.expires.valueOf()))throw new TypeError(`option expires is invalid: ${T.expires}`);B+="; Expires="+T.expires.toUTCString()}if(T.httpOnly&&(B+="; HttpOnly"),T.secure&&(B+="; Secure"),T.partitioned&&(B+="; Partitioned"),T.priority)switch(typeof T.priority=="string"?T.priority.toLowerCase():void 0){case"low":B+="; Priority=Low";break;case"medium":B+="; Priority=Medium";break;case"high":B+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${T.priority}`)}if(T.sameSite)switch(typeof T.sameSite=="string"?T.sameSite.toLowerCase():T.sameSite){case!0:case"strict":B+="; SameSite=Strict";break;case"lax":B+="; SameSite=Lax";break;case"none":B+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${T.sameSite}`)}return B}function v(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function S(b){return c.call(b)==="[object Date]"}return Wl}iS();var xp="popstate";function sS(i={}){function l(c,f){let{pathname:p="/",search:h="",hash:g=""}=ia(c.location.hash.substring(1));return!p.startsWith("/")&&!p.startsWith(".")&&(p="/"+p),ko("",{pathname:p,search:h,hash:g},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function u(c,f){let p=c.document.querySelector("base"),h="";if(p&&p.getAttribute("href")){let g=c.location.href,d=g.indexOf("#");h=d===-1?g:g.slice(0,d)}return h+"#"+(typeof f=="string"?f:si(f))}function r(c,f){_t(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return rS(l,u,r,i)}function _e(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}function _t(i,l){if(!i){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function uS(){return Math.random().toString(36).substring(2,10)}function Ep(i,l){return{usr:i.state,key:i.key,idx:l}}function ko(i,l,u=null,r){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof l=="string"?ia(l):l,state:u,key:l&&l.key||r||uS()}}function si({pathname:i="/",search:l="",hash:u=""}){return l&&l!=="?"&&(i+=l.charAt(0)==="?"?l:"?"+l),u&&u!=="#"&&(i+=u.charAt(0)==="#"?u:"#"+u),i}function ia(i){let l={};if(i){let u=i.indexOf("#");u>=0&&(l.hash=i.substring(u),i=i.substring(0,u));let r=i.indexOf("?");r>=0&&(l.search=i.substring(r),i=i.substring(0,r)),i&&(l.pathname=i)}return l}function rS(i,l,u,r={}){let{window:c=document.defaultView,v5Compat:f=!1}=r,p=c.history,h="POP",g=null,d=v();d==null&&(d=0,p.replaceState({...p.state,idx:d},""));function v(){return(p.state||{idx:null}).idx}function S(){h="POP";let G=v(),B=G==null?null:G-d;d=G,g&&g({action:h,location:j.location,delta:B})}function b(G,B){h="PUSH";let q=ko(j.location,G,B);u&&u(q,G),d=v()+1;let X=Ep(q,d),F=j.createHref(q);try{p.pushState(X,"",F)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;c.location.assign(F)}f&&g&&g({action:h,location:j.location,delta:1})}function _(G,B){h="REPLACE";let q=ko(j.location,G,B);u&&u(q,G),d=v();let X=Ep(q,d),F=j.createHref(q);p.replaceState(X,"",F),f&&g&&g({action:h,location:j.location,delta:0})}function T(G){return oS(G)}let j={get action(){return h},get location(){return i(c,p)},listen(G){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(xp,S),g=G,()=>{c.removeEventListener(xp,S),g=null}},createHref(G){return l(c,G)},createURL:T,encodeLocation(G){let B=T(G);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:b,replace:_,go(G){return p.go(G)}};return j}function oS(i,l=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),_e(u,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:si(i);return r=r.replace(/ $/,"%20"),!l&&r.startsWith("//")&&(r=u+r),new URL(r,u)}function Yp(i,l,u="/"){return cS(i,l,u,!1)}function cS(i,l,u,r){let c=typeof l=="string"?ia(l):l,f=fn(c.pathname||"/",u);if(f==null)return null;let p=Vp(i);fS(p);let h=null;for(let g=0;h==null&&g<p.length;++g){let d=ES(f);h=SS(p[g],d,r)}return h}function Vp(i,l=[],u=[],r=""){let c=(f,p,h)=>{let g={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};g.relativePath.startsWith("/")&&(_e(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length));let d=cn([r,g.relativePath]),v=u.concat(g);f.children&&f.children.length>0&&(_e(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Vp(f.children,l,v,d)),!(f.path==null&&!f.index)&&l.push({path:d,score:vS(d,f.index),routesMeta:v})};return i.forEach((f,p)=>{var h;if(f.path===""||!((h=f.path)!=null&&h.includes("?")))c(f,p);else for(let g of Qp(f.path))c(f,p,g)}),l}function Qp(i){let l=i.split("/");if(l.length===0)return[];let[u,...r]=l,c=u.endsWith("?"),f=u.replace(/\?$/,"");if(r.length===0)return c?[f,""]:[f];let p=Qp(r.join("/")),h=[];return h.push(...p.map(g=>g===""?f:[f,g].join("/"))),c&&h.push(...p),h.map(g=>i.startsWith("/")&&g===""?"/":g)}function fS(i){i.sort((l,u)=>l.score!==u.score?u.score-l.score:bS(l.routesMeta.map(r=>r.childrenIndex),u.routesMeta.map(r=>r.childrenIndex)))}var dS=/^:[\w-]+$/,hS=3,pS=2,gS=1,mS=10,yS=-2,Tp=i=>i==="*";function vS(i,l){let u=i.split("/"),r=u.length;return u.some(Tp)&&(r+=yS),l&&(r+=pS),u.filter(c=>!Tp(c)).reduce((c,f)=>c+(dS.test(f)?hS:f===""?gS:mS),r)}function bS(i,l){return i.length===l.length&&i.slice(0,-1).every((r,c)=>r===l[c])?i[i.length-1]-l[l.length-1]:0}function SS(i,l,u=!1){let{routesMeta:r}=i,c={},f="/",p=[];for(let h=0;h<r.length;++h){let g=r[h],d=h===r.length-1,v=f==="/"?l:l.slice(f.length)||"/",S=Bs({path:g.relativePath,caseSensitive:g.caseSensitive,end:d},v),b=g.route;if(!S&&d&&u&&!r[r.length-1].route.index&&(S=Bs({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},v)),!S)return null;Object.assign(c,S.params),p.push({params:c,pathname:cn([f,S.pathname]),pathnameBase:NS(cn([f,S.pathnameBase])),route:b}),S.pathnameBase!=="/"&&(f=cn([f,S.pathnameBase]))}return p}function Bs(i,l){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[u,r]=xS(i.path,i.caseSensitive,i.end),c=l.match(u);if(!c)return null;let f=c[0],p=f.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:r.reduce((d,{paramName:v,isOptional:S},b)=>{if(v==="*"){let T=h[b]||"";p=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const _=h[b];return S&&!_?d[v]=void 0:d[v]=(_||"").replace(/%2F/g,"/"),d},{}),pathname:f,pathnameBase:p,pattern:i}}function xS(i,l=!1,u=!0){_t(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],c="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,h,g)=>(r.push({paramName:h,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(r.push({paramName:"*"}),c+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?c+="\\/*$":i!==""&&i!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),r]}function ES(i){try{return i.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return _t(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),i}}function fn(i,l){if(l==="/")return i;if(!i.toLowerCase().startsWith(l.toLowerCase()))return null;let u=l.endsWith("/")?l.length-1:l.length,r=i.charAt(u);return r&&r!=="/"?null:i.slice(u)||"/"}function TS(i,l="/"){let{pathname:u,search:r="",hash:c=""}=typeof i=="string"?ia(i):i;return{pathname:u?u.startsWith("/")?u:RS(u,l):l,search:OS(r),hash:AS(c)}}function RS(i,l){let u=l.replace(/\/+$/,"").split("/");return i.split("/").forEach(c=>{c===".."?u.length>1&&u.pop():c!=="."&&u.push(c)}),u.length>1?u.join("/"):"/"}function bo(i,l,u,r){return`Cannot include a '${i}' character in a manually specified \`to.${l}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wS(i){return i.filter((l,u)=>u===0||l.route.path&&l.route.path.length>0)}function Uo(i){let l=wS(i);return l.map((u,r)=>r===l.length-1?u.pathname:u.pathnameBase)}function Ho(i,l,u,r=!1){let c;typeof i=="string"?c=ia(i):(c={...i},_e(!c.pathname||!c.pathname.includes("?"),bo("?","pathname","search",c)),_e(!c.pathname||!c.pathname.includes("#"),bo("#","pathname","hash",c)),_e(!c.search||!c.search.includes("#"),bo("#","search","hash",c)));let f=i===""||c.pathname==="",p=f?"/":c.pathname,h;if(p==null)h=u;else{let S=l.length-1;if(!r&&p.startsWith("..")){let b=p.split("/");for(;b[0]==="..";)b.shift(),S-=1;c.pathname=b.join("/")}h=S>=0?l[S]:"/"}let g=TS(c,h),d=p&&p!=="/"&&p.endsWith("/"),v=(f||p===".")&&u.endsWith("/");return!g.pathname.endsWith("/")&&(d||v)&&(g.pathname+="/"),g}var cn=i=>i.join("/").replace(/\/\/+/g,"/"),NS=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),OS=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,AS=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function CS(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var Xp=["POST","PUT","PATCH","DELETE"];new Set(Xp);var kS=["GET",...Xp];new Set(kS);var Ja=O.createContext(null);Ja.displayName="DataRouter";var Qs=O.createContext(null);Qs.displayName="DataRouterState";var Zp=O.createContext({isTransitioning:!1});Zp.displayName="ViewTransition";var zS=O.createContext(new Map);zS.displayName="Fetchers";var _S=O.createContext(null);_S.displayName="Await";var Lt=O.createContext(null);Lt.displayName="Navigation";var ri=O.createContext(null);ri.displayName="Location";var Ut=O.createContext({outlet:null,matches:[],isDataRoute:!1});Ut.displayName="Route";var Bo=O.createContext(null);Bo.displayName="RouteError";function DS(i,{relative:l}={}){_e(Fa(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:r}=O.useContext(Lt),{hash:c,pathname:f,search:p}=oi(i,{relative:l}),h=f;return u!=="/"&&(h=f==="/"?u:cn([u,f])),r.createHref({pathname:h,search:p,hash:c})}function Fa(){return O.useContext(ri)!=null}function Hn(){return _e(Fa(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(ri).location}var Kp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jp(i){O.useContext(Lt).static||O.useLayoutEffect(i)}function Pa(){let{isDataRoute:i}=O.useContext(Ut);return i?ZS():jS()}function jS(){_e(Fa(),"useNavigate() may be used only in the context of a <Router> component.");let i=O.useContext(Ja),{basename:l,navigator:u}=O.useContext(Lt),{matches:r}=O.useContext(Ut),{pathname:c}=Hn(),f=JSON.stringify(Uo(r)),p=O.useRef(!1);return Jp(()=>{p.current=!0}),O.useCallback((g,d={})=>{if(_t(p.current,Kp),!p.current)return;if(typeof g=="number"){u.go(g);return}let v=Ho(g,JSON.parse(f),c,d.relative==="path");i==null&&l!=="/"&&(v.pathname=v.pathname==="/"?l:cn([l,v.pathname])),(d.replace?u.replace:u.push)(v,d.state,d)},[l,u,f,c,i])}O.createContext(null);function MS(){let{matches:i}=O.useContext(Ut),l=i[i.length-1];return l?l.params:{}}function oi(i,{relative:l}={}){let{matches:u}=O.useContext(Ut),{pathname:r}=Hn(),c=JSON.stringify(Uo(u));return O.useMemo(()=>Ho(i,JSON.parse(c),r,l==="path"),[i,c,r,l])}function LS(i,l){return Fp(i,l)}function Fp(i,l,u,r){var B;_e(Fa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=O.useContext(Lt),{matches:f}=O.useContext(Ut),p=f[f.length-1],h=p?p.params:{},g=p?p.pathname:"/",d=p?p.pathnameBase:"/",v=p&&p.route;{let q=v&&v.path||"";Pp(g,!v||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
56
+ `+n.stack}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bg(e){var t=mc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){a=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bi(e){e._valueTracker||(e._valueTracker=Bg(e))}function yc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=mc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Si(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var qg=/[\n"\\]/g;function Rt(e){return e.replace(qg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function rs(e,t,n,a,u,o,m,v){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?os(e,m,Tt(t)):n!=null?os(e,m,Tt(n)):a!=null&&e.removeAttribute("value"),u==null&&o!=null&&(e.defaultChecked=!!o),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Tt(v):e.removeAttribute("name")}function vc(e,t,n,a,u,o,m,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null))return;n=n!=null?""+Tt(n):"",t=t!=null?""+Tt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m)}function os(e,t,n){t==="number"&&Si(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pa(e,t,n,a){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Tt(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function bc(e,t,n){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Tt(n):""}function Sc(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if($e(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Tt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a)}function ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xc(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Gg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ec(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&n[u]!==a&&xc(e,u,a)}else for(var o in t)t.hasOwnProperty(o)&&xc(e,o,t[o])}function cs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $g=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Yg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xi(e){return Yg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var fs=null;function ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,ya=null;function Tc(e){var t=ca(e);if(t&&(e=t.stateNode)){var n=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(rs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Rt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var u=a[st]||null;if(!u)throw Error(r(90));rs(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&yc(a)}break e;case"textarea":bc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pa(e,!!n.multiple,t,!1)}}}var hs=!1;function Rc(e,t,n){if(hs)return e(t,n);hs=!0;try{var a=e(t);return a}finally{if(hs=!1,(ma!==null||ya!==null)&&(uu(),ma&&(t=ma,e=ya,ya=ma=null,Tc(t),e)))for(t=0;t<e.length;t++)Tc(e[t])}}function al(e,t){var n=e.stateNode;if(n===null)return null;var a=n[st]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ps=!1;if(Zt)try{var ll={};Object.defineProperty(ll,"passive",{get:function(){ps=!0}}),window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{ps=!1}var gn=null,gs=null,Ei=null;function wc(){if(Ei)return Ei;var e,t=gs,n=t.length,a,u="value"in gn?gn.value:gn.textContent,o=u.length;for(e=0;e<n&&t[e]===u[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===u[o-a];a++);return Ei=u.slice(e,1<a?1-a:void 0)}function Ti(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ri(){return!0}function Nc(){return!1}function rt(e){function t(n,a,u,o,m){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ri:Nc,this.isPropagationStopped=Nc,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ri)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ri)},persist:function(){},isPersistent:Ri}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=rt(Gn),il=y({},Gn,{view:0,detail:0}),Vg=rt(il),ms,ys,ul,Ni=y({},il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ul&&(ul&&e.type==="mousemove"?(ms=e.screenX-ul.screenX,ys=e.screenY-ul.screenY):ys=ms=0,ul=e),ms)},movementY:function(e){return"movementY"in e?e.movementY:ys}}),Ac=rt(Ni),Qg=y({},Ni,{dataTransfer:0}),Xg=rt(Qg),Zg=y({},il,{relatedTarget:0}),vs=rt(Zg),Kg=y({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Jg=rt(Kg),Fg=y({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wg=rt(Fg),Pg=y({},Gn,{data:0}),Oc=rt(Pg),Ig={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},em={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tm[e])?!!t[e]:!1}function bs(){return nm}var am=y({},il,{key:function(e){if(e.key){var t=Ig[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ti(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?em[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bs,charCode:function(e){return e.type==="keypress"?Ti(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ti(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lm=rt(am),im=y({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cc=rt(im),um=y({},il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bs}),sm=rt(um),rm=y({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),om=rt(rm),cm=y({},Ni,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fm=rt(cm),dm=y({},Gn,{newState:0,oldState:0}),hm=rt(dm),pm=[9,13,27,32],Ss=Zt&&"CompositionEvent"in window,sl=null;Zt&&"documentMode"in document&&(sl=document.documentMode);var gm=Zt&&"TextEvent"in window&&!sl,zc=Zt&&(!Ss||sl&&8<sl&&11>=sl),kc=" ",_c=!1;function Dc(e,t){switch(e){case"keyup":return pm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function mm(e,t){switch(e){case"compositionend":return Mc(t);case"keypress":return t.which!==32?null:(_c=!0,kc);case"textInput":return e=t.data,e===kc&&_c?null:e;default:return null}}function ym(e,t){if(va)return e==="compositionend"||!Ss&&Dc(e,t)?(e=wc(),Ei=gs=gn=null,va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zc&&t.locale!=="ko"?null:t.data;default:return null}}var vm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vm[e.type]:t==="textarea"}function Lc(e,t,n,a){ma?ya?ya.push(a):ya=[a]:ma=a,t=du(t,"onChange"),0<t.length&&(n=new wi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var rl=null,ol=null;function bm(e){yh(e,0)}function Ai(e){var t=nl(e);if(yc(t))return e}function Uc(e,t){if(e==="change")return t}var Hc=!1;if(Zt){var xs;if(Zt){var Es="oninput"in document;if(!Es){var Bc=document.createElement("div");Bc.setAttribute("oninput","return;"),Es=typeof Bc.oninput=="function"}xs=Es}else xs=!1;Hc=xs&&(!document.documentMode||9<document.documentMode)}function qc(){rl&&(rl.detachEvent("onpropertychange",Gc),ol=rl=null)}function Gc(e){if(e.propertyName==="value"&&Ai(ol)){var t=[];Lc(t,ol,e,ds(e)),Rc(bm,t)}}function Sm(e,t,n){e==="focusin"?(qc(),rl=t,ol=n,rl.attachEvent("onpropertychange",Gc)):e==="focusout"&&qc()}function xm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(ol)}function Em(e,t){if(e==="click")return Ai(t)}function Tm(e,t){if(e==="input"||e==="change")return Ai(t)}function Rm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:Rm;function cl(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var u=n[a];if(!Wu.call(t,u)||!gt(e[u],t[u]))return!1}return!0}function $c(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yc(e,t){var n=$c(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$c(n)}}function Vc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Si(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Si(e.document)}return t}function Ts(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var wm=Zt&&"documentMode"in document&&11>=document.documentMode,ba=null,Rs=null,fl=null,ws=!1;function Xc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ws||ba==null||ba!==Si(a)||(a=ba,"selectionStart"in a&&Ts(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),fl&&cl(fl,a)||(fl=a,a=du(Rs,"onSelect"),0<a.length&&(t=new wi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ba)))}function $n(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sa={animationend:$n("Animation","AnimationEnd"),animationiteration:$n("Animation","AnimationIteration"),animationstart:$n("Animation","AnimationStart"),transitionrun:$n("Transition","TransitionRun"),transitionstart:$n("Transition","TransitionStart"),transitioncancel:$n("Transition","TransitionCancel"),transitionend:$n("Transition","TransitionEnd")},Ns={},Zc={};Zt&&(Zc=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);function Yn(e){if(Ns[e])return Ns[e];if(!Sa[e])return e;var t=Sa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zc)return Ns[e]=t[n];return e}var Kc=Yn("animationend"),Jc=Yn("animationiteration"),Fc=Yn("animationstart"),Nm=Yn("transitionrun"),Am=Yn("transitionstart"),Om=Yn("transitioncancel"),Wc=Yn("transitionend"),Pc=new Map,As="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");As.push("scrollEnd");function Dt(e,t){Pc.set(e,t),qn(t,[e])}var Ic=new WeakMap;function wt(e,t){if(typeof e=="object"&&e!==null){var n=Ic.get(e);return n!==void 0?n:(t={value:e,source:t,stack:gc(t)},Ic.set(e,t),t)}return{value:e,source:t,stack:gc(t)}}var Nt=[],xa=0,Os=0;function Oi(){for(var e=xa,t=Os=xa=0;t<e;){var n=Nt[t];Nt[t++]=null;var a=Nt[t];Nt[t++]=null;var u=Nt[t];Nt[t++]=null;var o=Nt[t];if(Nt[t++]=null,a!==null&&u!==null){var m=a.pending;m===null?u.next=u:(u.next=m.next,m.next=u),a.pending=u}o!==0&&ef(n,u,o)}}function Ci(e,t,n,a){Nt[xa++]=e,Nt[xa++]=t,Nt[xa++]=n,Nt[xa++]=a,Os|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Cs(e,t,n,a){return Ci(e,t,n,a),zi(e)}function Ea(e,t){return Ci(e,null,null,t),zi(e)}function ef(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var u=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(u=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,u&&t!==null&&(u=31-pt(n),e=o.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=n|536870912),o):null}function zi(e){if(50<Ll)throw Ll=0,jr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ta={};function Cm(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,a){return new Cm(e,t,n,a)}function zs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kt(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function tf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ki(e,t,n,a,u,o){var m=0;if(a=e,typeof e=="function")zs(e)&&(m=1);else if(typeof e=="string")m=ky(e,n,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Q:return e=mt(31,n,t,u),e.elementType=Q,e.lanes=o,e;case T:return Vn(n.children,u,o,t);case M:m=8,u|=24;break;case G:return e=mt(12,n,t,u|2),e.elementType=G,e.lanes=o,e;case Z:return e=mt(13,n,t,u),e.elementType=Z,e.lanes=o,e;case de:return e=mt(19,n,t,u),e.elementType=de,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:case X:m=10;break e;case q:m=9;break e;case F:m=11;break e;case le:m=14;break e;case ie:m=16,a=null;break e}m=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=mt(m,n,t,u),t.elementType=e,t.type=a,t.lanes=o,t}function Vn(e,t,n,a){return e=mt(7,e,a,t),e.lanes=n,e}function ks(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function _s(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ra=[],wa=0,_i=null,Di=0,At=[],Ot=0,Qn=null,Jt=1,Ft="";function Xn(e,t){Ra[wa++]=Di,Ra[wa++]=_i,_i=e,Di=t}function nf(e,t,n){At[Ot++]=Jt,At[Ot++]=Ft,At[Ot++]=Qn,Qn=e;var a=Jt;e=Ft;var u=32-pt(a)-1;a&=~(1<<u),n+=1;var o=32-pt(t)+u;if(30<o){var m=u-u%5;o=(a&(1<<m)-1).toString(32),a>>=m,u-=m,Jt=1<<32-pt(t)+u|n<<u|a,Ft=o+e}else Jt=1<<o|n<<u|a,Ft=e}function Ds(e){e.return!==null&&(Xn(e,1),nf(e,1,0))}function Ms(e){for(;e===_i;)_i=Ra[--wa],Ra[wa]=null,Di=Ra[--wa],Ra[wa]=null;for(;e===Qn;)Qn=At[--Ot],At[Ot]=null,Ft=At[--Ot],At[Ot]=null,Jt=At[--Ot],At[Ot]=null}var at=null,je=null,ve=!1,Zn=null,Bt=!1,js=Error(r(519));function Kn(e){var t=Error(r(418,""));throw pl(wt(t,e)),js}function af(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Pe]=e,t[st]=a,n){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(n=0;n<Hl.length;n++)fe(Hl[n],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),vc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),bi(t);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),Sc(t,a.value,a.defaultValue,a.children),bi(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||xh(t.textContent,n)?(a.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),a.onScroll!=null&&fe("scroll",t),a.onScrollEnd!=null&&fe("scrollend",t),a.onClick!=null&&(t.onclick=hu),t=!0):t=!1,t||Kn(e)}function lf(e){for(at=e.return;at;)switch(at.tag){case 5:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:at=at.return}}function dl(e){if(e!==at)return!1;if(!ve)return lf(e),ve=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Wr(e.type,e.memoizedProps)),n=!n),n&&je&&Kn(e),lf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){je=jt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}je=null}}else t===27?(t=je,kn(e.type)?(e=to,to=null,je=e):je=t):je=at?jt(e.stateNode.nextSibling):null;return!0}function hl(){je=at=null,ve=!1}function uf(){var e=Zn;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),Zn=null),e}function pl(e){Zn===null?Zn=[e]:Zn.push(e)}var Ls=U(null),Jn=null,Wt=null;function mn(e,t,n){Y(Ls,t._currentValue),t._currentValue=n}function Pt(e){e._currentValue=Ls.current,V(Ls)}function Us(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Hs(e,t,n,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var o=u.dependencies;if(o!==null){var m=u.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=u;for(var x=0;x<t.length;x++)if(v.context===t[x]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Us(o.return,n,e),a||(m=null);break e}o=v.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(r(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Us(m,n,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function gl(e,t,n,a){e=null;for(var u=t,o=!1;u!==null;){if(!o){if((u.flags&524288)!==0)o=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var v=u.type;gt(u.pendingProps.value,m.value)||(e!==null?e.push(v):e=[v])}}else if(u===dt.current){if(m=u.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Vl):e=[Vl])}u=u.return}e!==null&&Hs(t,e,n,a),t.flags|=262144}function Mi(e){for(e=e.firstContext;e!==null;){if(!gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fn(e){Jn=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return sf(Jn,e)}function ji(e,t){return Jn===null&&Fn(e),sf(e,t)}function sf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wt===null){if(e===null)throw Error(r(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return n}var zm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},km=i.unstable_scheduleCallback,_m=i.unstable_NormalPriority,Ye={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bs(){return{controller:new zm,data:new Map,refCount:0}}function ml(e){e.refCount--,e.refCount===0&&km(_m,function(){e.controller.abort()})}var yl=null,qs=0,Na=0,Aa=null;function Dm(e,t){if(yl===null){var n=yl=[];qs=0,Na=$r(),Aa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return qs++,t.then(rf,rf),t}function rf(){if(--qs===0&&yl!==null){Aa!==null&&(Aa.status="fulfilled");var e=yl;yl=null,Na=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mm(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var of=D.S;D.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Dm(e,t),of!==null&&of(e,t)};var Wn=U(null);function Gs(){var e=Wn.current;return e!==null?e:Oe.pooledCache}function Li(e,t){t===null?Y(Wn,Wn.current):Y(Wn,t.pool)}function cf(){var e=Gs();return e===null?null:{parent:Ye._currentValue,pool:e}}var vl=Error(r(460)),ff=Error(r(474)),Ui=Error(r(542)),$s={then:function(){}};function df(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hi(){}function hf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Hi,Hi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gf(e),e;default:if(typeof t.status=="string")t.then(Hi,Hi);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gf(e),e}throw bl=t,vl}}var bl=null;function pf(){if(bl===null)throw Error(r(459));var e=bl;return bl=null,e}function gf(e){if(e===vl||e===Ui)throw Error(r(483))}var yn=!1;function Ys(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function vn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=zi(e),ef(e,null,n),t}return Ci(e,a,t,n),zi(e)}function Sl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,sc(e,n)}}function Qs(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?u=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?u=o=t:o=o.next=t}else u=o=t;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xs=!1;function xl(){if(Xs){var e=Aa;if(e!==null)throw e}}function El(e,t,n,a){Xs=!1;var u=e.updateQueue;yn=!1;var o=u.firstBaseUpdate,m=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var x=v,C=x.next;x.next=null,m===null?o=C:m.next=C,m=x;var j=e.alternate;j!==null&&(j=j.updateQueue,v=j.lastBaseUpdate,v!==m&&(v===null?j.firstBaseUpdate=C:v.next=C,j.lastBaseUpdate=x))}if(o!==null){var H=u.baseState;m=0,j=C=x=null,v=o;do{var z=v.lane&-536870913,k=z!==v.lane;if(k?(ge&z)===z:(a&z)===z){z!==0&&z===Na&&(Xs=!0),j!==null&&(j=j.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ne=e,I=v;z=t;var we=n;switch(I.tag){case 1:if(ne=I.payload,typeof ne=="function"){H=ne.call(we,H,z);break e}H=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=I.payload,z=typeof ne=="function"?ne.call(we,H,z):ne,z==null)break e;H=y({},H,z);break e;case 2:yn=!0}}z=v.callback,z!==null&&(e.flags|=64,k&&(e.flags|=8192),k=u.callbacks,k===null?u.callbacks=[z]:k.push(z))}else k={lane:z,tag:v.tag,payload:v.payload,callback:v.callback,next:null},j===null?(C=j=k,x=H):j=j.next=k,m|=z;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;k=v,v=k.next,k.next=null,u.lastBaseUpdate=k,u.shared.pending=null}}while(!0);j===null&&(x=H),u.baseState=x,u.firstBaseUpdate=C,u.lastBaseUpdate=j,o===null&&(u.shared.lanes=0),An|=m,e.lanes=m,e.memoizedState=H}}function mf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function yf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)mf(n[e],t)}var Oa=U(null),Bi=U(0);function vf(e,t){e=un,Y(Bi,e),Y(Oa,t),un=e|t.baseLanes}function Zs(){Y(Bi,un),Y(Oa,Oa.current)}function Ks(){un=Bi.current,V(Oa),V(Bi)}var Sn=0,re=null,Te=null,qe=null,qi=!1,Ca=!1,Pn=!1,Gi=0,Tl=0,za=null,jm=0;function He(){throw Error(r(321))}function Js(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gt(e[n],t[n]))return!1;return!0}function Fs(e,t,n,a,u,o){return Sn=o,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?td:nd,Pn=!1,o=n(a,u),Pn=!1,Ca&&(o=Sf(t,n,a,u)),bf(e),o}function bf(e){D.H=Zi;var t=Te!==null&&Te.next!==null;if(Sn=0,qe=Te=re=null,qi=!1,Tl=0,za=null,t)throw Error(r(300));e===null||Xe||(e=e.dependencies,e!==null&&Mi(e)&&(Xe=!0))}function Sf(e,t,n,a){re=e;var u=0;do{if(Ca&&(za=null),Tl=0,Ca=!1,25<=u)throw Error(r(301));if(u+=1,qe=Te=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=$m,o=t(n,a)}while(Ca);return o}function Lm(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Rl(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(re.flags|=1024),t}function Ws(){var e=Gi!==0;return Gi=0,e}function Ps(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Is(e){if(qi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qi=!1}Sn=0,qe=Te=re=null,Ca=!1,Tl=Gi=0,za=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?re.memoizedState=qe=e:qe=qe.next=e,qe}function Ge(){if(Te===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=qe===null?re.memoizedState:qe.next;if(t!==null)qe=t,Te=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},qe===null?re.memoizedState=qe=e:qe=qe.next=e}return qe}function er(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(e){var t=Tl;return Tl+=1,za===null&&(za=[]),e=hf(za,e,t),t=re,(qe===null?t.memoizedState:qe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?td:nd),e}function $i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rl(e);if(e.$$typeof===X)return Ie(e)}throw Error(r(438,String(e)))}function tr(e){var t=null,n=re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=re.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=er(),re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ee;return t.index++,n}function It(e,t){return typeof t=="function"?t(e):t}function Yi(e){var t=Ge();return nr(t,Te,e)}function nr(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var u=e.baseQueue,o=a.pending;if(o!==null){if(u!==null){var m=u.next;u.next=o.next,o.next=m}t.baseQueue=u=o,a.pending=null}if(o=e.baseState,u===null)e.memoizedState=o;else{t=u.next;var v=m=null,x=null,C=t,j=!1;do{var H=C.lane&-536870913;if(H!==C.lane?(ge&H)===H:(Sn&H)===H){var z=C.revertLane;if(z===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),H===Na&&(j=!0);else if((Sn&z)===z){C=C.next,z===Na&&(j=!0);continue}else H={lane:0,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(v=x=H,m=o):x=x.next=H,re.lanes|=z,An|=z;H=C.action,Pn&&n(o,H),o=C.hasEagerState?C.eagerState:n(o,H)}else z={lane:H,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(v=x=z,m=o):x=x.next=z,re.lanes|=H,An|=H;C=C.next}while(C!==null&&C!==t);if(x===null?m=o:x.next=v,!gt(o,e.memoizedState)&&(Xe=!0,j&&(n=Aa,n!==null)))throw n;e.memoizedState=o,e.baseState=m,e.baseQueue=x,a.lastRenderedState=o}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ar(e){var t=Ge(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,u=n.pending,o=t.memoizedState;if(u!==null){n.pending=null;var m=u=u.next;do o=e(o,m.action),m=m.next;while(m!==u);gt(o,t.memoizedState)||(Xe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function xf(e,t,n){var a=re,u=Ge(),o=ve;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=t();var m=!gt((Te||u).memoizedState,n);m&&(u.memoizedState=n,Xe=!0),u=u.queue;var v=Rf.bind(null,a,u,e);if(wl(2048,8,v,[e]),u.getSnapshot!==t||m||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,ka(9,Vi(),Tf.bind(null,a,u,n,t),null),Oe===null)throw Error(r(349));o||(Sn&124)!==0||Ef(a,t,n)}return n}function Ef(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t=er(),re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Tf(e,t,n,a){t.value=n,t.getSnapshot=a,wf(t)&&Nf(e)}function Rf(e,t,n){return n(function(){wf(t)&&Nf(e)})}function wf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function Nf(e){var t=Ea(e,2);t!==null&&xt(t,e,2)}function lr(e){var t=ot();if(typeof e=="function"){var n=e;if(e=n(),Pn){hn(!0);try{n()}finally{hn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:e},t}function Af(e,t,n,a){return e.baseState=n,nr(e,Te,typeof a=="function"?a:It)}function Um(e,t,n,a,u){if(Xi(e))throw Error(r(485));if(e=t.action,e!==null){var o={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};D.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Of(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Of(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var o=D.T,m={};D.T=m;try{var v=n(u,a),x=D.S;x!==null&&x(m,v),Cf(e,t,v)}catch(C){ir(e,t,C)}finally{D.T=o}}else try{o=n(u,a),Cf(e,t,o)}catch(C){ir(e,t,C)}}function Cf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){zf(e,t,a)},function(a){return ir(e,t,a)}):zf(e,t,n)}function zf(e,t,n){t.status="fulfilled",t.value=n,kf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Of(e,n)))}function ir(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,kf(t),t=t.next;while(t!==a)}e.action=null}function kf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _f(e,t){return t}function Df(e,t){if(ve){var n=Oe.formState;if(n!==null){e:{var a=re;if(ve){if(je){t:{for(var u=je,o=Bt;u.nodeType!==8;){if(!o){u=null;break t}if(u=jt(u.nextSibling),u===null){u=null;break t}}o=u.data,u=o==="F!"||o==="F"?u:null}if(u){je=jt(u.nextSibling),a=u.data==="F!";break e}}Kn(a)}a=!1}a&&(t=n[0])}}return n=ot(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_f,lastRenderedState:t},n.queue=a,n=Pf.bind(null,re,a),a.dispatch=n,a=lr(!1),o=cr.bind(null,re,!1,a.queue),a=ot(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=Um.bind(null,re,u,o,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function Mf(e){var t=Ge();return jf(t,Te,e)}function jf(e,t,n){if(t=nr(e,t,_f)[0],e=Yi(It)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Rl(t)}catch(m){throw m===vl?Ui:m}else a=t;t=Ge();var u=t.queue,o=u.dispatch;return n!==t.memoizedState&&(re.flags|=2048,ka(9,Vi(),Hm.bind(null,u,n),null)),[a,o,e]}function Hm(e,t){e.action=t}function Lf(e){var t=Ge(),n=Te;if(n!==null)return jf(t,n,e);Ge(),t=t.memoizedState,n=Ge();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function ka(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=er(),re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Vi(){return{destroy:void 0,resource:void 0}}function Uf(){return Ge().memoizedState}function Qi(e,t,n,a){var u=ot();a=a===void 0?null:a,re.flags|=e,u.memoizedState=ka(1|t,Vi(),n,a)}function wl(e,t,n,a){var u=Ge();a=a===void 0?null:a;var o=u.memoizedState.inst;Te!==null&&a!==null&&Js(a,Te.memoizedState.deps)?u.memoizedState=ka(t,o,n,a):(re.flags|=e,u.memoizedState=ka(1|t,o,n,a))}function Hf(e,t){Qi(8390656,8,e,t)}function Bf(e,t){wl(2048,8,e,t)}function qf(e,t){return wl(4,2,e,t)}function Gf(e,t){return wl(4,4,e,t)}function $f(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yf(e,t,n){n=n!=null?n.concat([e]):null,wl(4,4,$f.bind(null,t,e),n)}function ur(){}function Vf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Js(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Qf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Js(t,a[1]))return a[0];if(a=e(),Pn){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[a,t],a}function sr(e,t,n){return n===void 0||(Sn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Kd(),re.lanes|=e,An|=e,n)}function Xf(e,t,n,a){return gt(n,t)?n:Oa.current!==null?(e=sr(e,n,a),gt(e,t)||(Xe=!0),e):(Sn&42)===0?(Xe=!0,e.memoizedState=n):(e=Kd(),re.lanes|=e,An|=e,t)}function Zf(e,t,n,a,u){var o=$.p;$.p=o!==0&&8>o?o:8;var m=D.T,v={};D.T=v,cr(e,!1,t,n);try{var x=u(),C=D.S;if(C!==null&&C(v,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var j=Mm(x,a);Nl(e,t,j,St(e))}else Nl(e,t,a,St(e))}catch(H){Nl(e,t,{then:function(){},status:"rejected",reason:H},St())}finally{$.p=o,D.T=m}}function Bm(){}function rr(e,t,n,a){if(e.tag!==5)throw Error(r(476));var u=Kf(e).queue;Zf(e,u,t,W,n===null?Bm:function(){return Jf(e),n(a)})}function Kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:W},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jf(e){var t=Kf(e).next.queue;Nl(e,t,{},St())}function or(){return Ie(Vl)}function Ff(){return Ge().memoizedState}function Wf(){return Ge().memoizedState}function qm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=St();e=vn(n);var a=bn(t,e,n);a!==null&&(xt(a,t,n),Sl(a,t,n)),t={cache:Bs()},e.payload=t;return}t=t.return}}function Gm(e,t,n){var a=St();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Xi(e)?If(t,n):(n=Cs(e,t,n,a),n!==null&&(xt(n,e,a),ed(n,t,a)))}function Pf(e,t,n){var a=St();Nl(e,t,n,a)}function Nl(e,t,n,a){var u={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xi(e))If(t,u);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,v=o(m,n);if(u.hasEagerState=!0,u.eagerState=v,gt(v,m))return Ci(e,t,u,0),Oe===null&&Oi(),!1}catch{}finally{}if(n=Cs(e,t,u,a),n!==null)return xt(n,e,a),ed(n,t,a),!0}return!1}function cr(e,t,n,a){if(a={lane:2,revertLane:$r(),action:a,hasEagerState:!1,eagerState:null,next:null},Xi(e)){if(t)throw Error(r(479))}else t=Cs(e,n,a,2),t!==null&&xt(t,e,2)}function Xi(e){var t=e.alternate;return e===re||t!==null&&t===re}function If(e,t){Ca=qi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ed(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,sc(e,n)}}var Zi={readContext:Ie,use:$i,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He},td={readContext:Ie,use:$i,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Hf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Qi(4194308,4,$f.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4194308,4,e,t)},useInsertionEffect:function(e,t){Qi(4,2,e,t)},useMemo:function(e,t){var n=ot();t=t===void 0?null:t;var a=e();if(Pn){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ot();if(n!==void 0){var u=n(t);if(Pn){hn(!0);try{n(t)}finally{hn(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=Gm.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=lr(e);var t=e.queue,n=Pf.bind(null,re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ur,useDeferredValue:function(e,t){var n=ot();return sr(n,e,t)},useTransition:function(){var e=lr(!1);return e=Zf.bind(null,re,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=re,u=ot();if(ve){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Oe===null)throw Error(r(349));(ge&124)!==0||Ef(a,t,n)}u.memoizedState=n;var o={value:n,getSnapshot:t};return u.queue=o,Hf(Rf.bind(null,a,o,e),[e]),a.flags|=2048,ka(9,Vi(),Tf.bind(null,a,o,n,t),null),n},useId:function(){var e=ot(),t=Oe.identifierPrefix;if(ve){var n=Ft,a=Jt;n=(a&~(1<<32-pt(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=Gi++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=jm++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:or,useFormState:Df,useActionState:Df,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cr.bind(null,re,!0,n),n.dispatch=t,[e,t]},useMemoCache:tr,useCacheRefresh:function(){return ot().memoizedState=qm.bind(null,re)}},nd={readContext:Ie,use:$i,useCallback:Vf,useContext:Ie,useEffect:Bf,useImperativeHandle:Yf,useInsertionEffect:qf,useLayoutEffect:Gf,useMemo:Qf,useReducer:Yi,useRef:Uf,useState:function(){return Yi(It)},useDebugValue:ur,useDeferredValue:function(e,t){var n=Ge();return Xf(n,Te.memoizedState,e,t)},useTransition:function(){var e=Yi(It)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Rl(e),t]},useSyncExternalStore:xf,useId:Ff,useHostTransitionStatus:or,useFormState:Mf,useActionState:Mf,useOptimistic:function(e,t){var n=Ge();return Af(n,Te,e,t)},useMemoCache:tr,useCacheRefresh:Wf},$m={readContext:Ie,use:$i,useCallback:Vf,useContext:Ie,useEffect:Bf,useImperativeHandle:Yf,useInsertionEffect:qf,useLayoutEffect:Gf,useMemo:Qf,useReducer:ar,useRef:Uf,useState:function(){return ar(It)},useDebugValue:ur,useDeferredValue:function(e,t){var n=Ge();return Te===null?sr(n,e,t):Xf(n,Te.memoizedState,e,t)},useTransition:function(){var e=ar(It)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Rl(e),t]},useSyncExternalStore:xf,useId:Ff,useHostTransitionStatus:or,useFormState:Lf,useActionState:Lf,useOptimistic:function(e,t){var n=Ge();return Te!==null?Af(n,Te,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:tr,useCacheRefresh:Wf},_a=null,Al=0;function Ki(e){var t=Al;return Al+=1,_a===null&&(_a=[]),hf(_a,e,t)}function Ol(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ji(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ad(e){var t=e._init;return t(e._payload)}function ld(e){function t(N,w){if(e){var O=N.deletions;O===null?(N.deletions=[w],N.flags|=16):O.push(w)}}function n(N,w){if(!e)return null;for(;w!==null;)t(N,w),w=w.sibling;return null}function a(N){for(var w=new Map;N!==null;)N.key!==null?w.set(N.key,N):w.set(N.index,N),N=N.sibling;return w}function u(N,w){return N=Kt(N,w),N.index=0,N.sibling=null,N}function o(N,w,O){return N.index=O,e?(O=N.alternate,O!==null?(O=O.index,O<w?(N.flags|=67108866,w):O):(N.flags|=67108866,w)):(N.flags|=1048576,w)}function m(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function v(N,w,O,L){return w===null||w.tag!==6?(w=ks(O,N.mode,L),w.return=N,w):(w=u(w,O),w.return=N,w)}function x(N,w,O,L){var K=O.type;return K===T?j(N,w,O.props.children,L,O.key):w!==null&&(w.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ie&&ad(K)===w.type)?(w=u(w,O.props),Ol(w,O),w.return=N,w):(w=ki(O.type,O.key,O.props,null,N.mode,L),Ol(w,O),w.return=N,w)}function C(N,w,O,L){return w===null||w.tag!==4||w.stateNode.containerInfo!==O.containerInfo||w.stateNode.implementation!==O.implementation?(w=_s(O,N.mode,L),w.return=N,w):(w=u(w,O.children||[]),w.return=N,w)}function j(N,w,O,L,K){return w===null||w.tag!==7?(w=Vn(O,N.mode,L,K),w.return=N,w):(w=u(w,O),w.return=N,w)}function H(N,w,O){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=ks(""+w,N.mode,O),w.return=N,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case b:return O=ki(w.type,w.key,w.props,null,N.mode,O),Ol(O,w),O.return=N,O;case _:return w=_s(w,N.mode,O),w.return=N,w;case ie:var L=w._init;return w=L(w._payload),H(N,w,O)}if($e(w)||De(w))return w=Vn(w,N.mode,O,null),w.return=N,w;if(typeof w.then=="function")return H(N,Ki(w),O);if(w.$$typeof===X)return H(N,ji(N,w),O);Ji(N,w)}return null}function z(N,w,O,L){var K=w!==null?w.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return K!==null?null:v(N,w,""+O,L);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case b:return O.key===K?x(N,w,O,L):null;case _:return O.key===K?C(N,w,O,L):null;case ie:return K=O._init,O=K(O._payload),z(N,w,O,L)}if($e(O)||De(O))return K!==null?null:j(N,w,O,L,null);if(typeof O.then=="function")return z(N,w,Ki(O),L);if(O.$$typeof===X)return z(N,w,ji(N,O),L);Ji(N,O)}return null}function k(N,w,O,L,K){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return N=N.get(O)||null,v(w,N,""+L,K);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case b:return N=N.get(L.key===null?O:L.key)||null,x(w,N,L,K);case _:return N=N.get(L.key===null?O:L.key)||null,C(w,N,L,K);case ie:var oe=L._init;return L=oe(L._payload),k(N,w,O,L,K)}if($e(L)||De(L))return N=N.get(O)||null,j(w,N,L,K,null);if(typeof L.then=="function")return k(N,w,O,Ki(L),K);if(L.$$typeof===X)return k(N,w,O,ji(w,L),K);Ji(w,L)}return null}function ne(N,w,O,L){for(var K=null,oe=null,J=w,te=w=0,Ke=null;J!==null&&te<O.length;te++){J.index>te?(Ke=J,J=null):Ke=J.sibling;var ye=z(N,J,O[te],L);if(ye===null){J===null&&(J=Ke);break}e&&J&&ye.alternate===null&&t(N,J),w=o(ye,w,te),oe===null?K=ye:oe.sibling=ye,oe=ye,J=Ke}if(te===O.length)return n(N,J),ve&&Xn(N,te),K;if(J===null){for(;te<O.length;te++)J=H(N,O[te],L),J!==null&&(w=o(J,w,te),oe===null?K=J:oe.sibling=J,oe=J);return ve&&Xn(N,te),K}for(J=a(J);te<O.length;te++)Ke=k(J,N,te,O[te],L),Ke!==null&&(e&&Ke.alternate!==null&&J.delete(Ke.key===null?te:Ke.key),w=o(Ke,w,te),oe===null?K=Ke:oe.sibling=Ke,oe=Ke);return e&&J.forEach(function(Ln){return t(N,Ln)}),ve&&Xn(N,te),K}function I(N,w,O,L){if(O==null)throw Error(r(151));for(var K=null,oe=null,J=w,te=w=0,Ke=null,ye=O.next();J!==null&&!ye.done;te++,ye=O.next()){J.index>te?(Ke=J,J=null):Ke=J.sibling;var Ln=z(N,J,ye.value,L);if(Ln===null){J===null&&(J=Ke);break}e&&J&&Ln.alternate===null&&t(N,J),w=o(Ln,w,te),oe===null?K=Ln:oe.sibling=Ln,oe=Ln,J=Ke}if(ye.done)return n(N,J),ve&&Xn(N,te),K;if(J===null){for(;!ye.done;te++,ye=O.next())ye=H(N,ye.value,L),ye!==null&&(w=o(ye,w,te),oe===null?K=ye:oe.sibling=ye,oe=ye);return ve&&Xn(N,te),K}for(J=a(J);!ye.done;te++,ye=O.next())ye=k(J,N,te,ye.value,L),ye!==null&&(e&&ye.alternate!==null&&J.delete(ye.key===null?te:ye.key),w=o(ye,w,te),oe===null?K=ye:oe.sibling=ye,oe=ye);return e&&J.forEach(function(Yy){return t(N,Yy)}),ve&&Xn(N,te),K}function we(N,w,O,L){if(typeof O=="object"&&O!==null&&O.type===T&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case b:e:{for(var K=O.key;w!==null;){if(w.key===K){if(K=O.type,K===T){if(w.tag===7){n(N,w.sibling),L=u(w,O.props.children),L.return=N,N=L;break e}}else if(w.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ie&&ad(K)===w.type){n(N,w.sibling),L=u(w,O.props),Ol(L,O),L.return=N,N=L;break e}n(N,w);break}else t(N,w);w=w.sibling}O.type===T?(L=Vn(O.props.children,N.mode,L,O.key),L.return=N,N=L):(L=ki(O.type,O.key,O.props,null,N.mode,L),Ol(L,O),L.return=N,N=L)}return m(N);case _:e:{for(K=O.key;w!==null;){if(w.key===K)if(w.tag===4&&w.stateNode.containerInfo===O.containerInfo&&w.stateNode.implementation===O.implementation){n(N,w.sibling),L=u(w,O.children||[]),L.return=N,N=L;break e}else{n(N,w);break}else t(N,w);w=w.sibling}L=_s(O,N.mode,L),L.return=N,N=L}return m(N);case ie:return K=O._init,O=K(O._payload),we(N,w,O,L)}if($e(O))return ne(N,w,O,L);if(De(O)){if(K=De(O),typeof K!="function")throw Error(r(150));return O=K.call(O),I(N,w,O,L)}if(typeof O.then=="function")return we(N,w,Ki(O),L);if(O.$$typeof===X)return we(N,w,ji(N,O),L);Ji(N,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,w!==null&&w.tag===6?(n(N,w.sibling),L=u(w,O),L.return=N,N=L):(n(N,w),L=ks(O,N.mode,L),L.return=N,N=L),m(N)):n(N,w)}return function(N,w,O,L){try{Al=0;var K=we(N,w,O,L);return _a=null,K}catch(J){if(J===vl||J===Ui)throw J;var oe=mt(29,J,null,N.mode);return oe.lanes=L,oe.return=N,oe}finally{}}}var Da=ld(!0),id=ld(!1),Ct=U(null),qt=null;function xn(e){var t=e.alternate;Y(Ve,Ve.current&1),Y(Ct,e),qt===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&(qt=e)}function ud(e){if(e.tag===22){if(Y(Ve,Ve.current),Y(Ct,e),qt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(qt=e)}}else En()}function En(){Y(Ve,Ve.current),Y(Ct,Ct.current)}function en(e){V(Ct),qt===e&&(qt=null),V(Ve)}var Ve=U(0);function Fi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||eo(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function fr(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dr={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=St(),u=vn(a);u.payload=t,n!=null&&(u.callback=n),t=bn(e,u,a),t!==null&&(xt(t,e,a),Sl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=St(),u=vn(a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=bn(e,u,a),t!==null&&(xt(t,e,a),Sl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=St(),a=vn(n);a.tag=2,t!=null&&(a.callback=t),t=bn(e,a,n),t!==null&&(xt(t,e,n),Sl(t,e,n))}};function sd(e,t,n,a,u,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,m):t.prototype&&t.prototype.isPureReactComponent?!cl(n,a)||!cl(u,o):!0}function rd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&dr.enqueueReplaceState(t,t.state,null)}function In(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}var Wi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function od(e){Wi(e)}function cd(e){console.error(e)}function fd(e){Wi(e)}function Pi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function dd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function hr(e,t,n){return n=vn(n),n.tag=3,n.payload={element:null},n.callback=function(){Pi(e,t)},n}function hd(e){return e=vn(e),e.tag=3,e}function pd(e,t,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var o=a.value;e.payload=function(){return u(o)},e.callback=function(){dd(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){dd(t,n,a),typeof u!="function"&&(On===null?On=new Set([this]):On.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function Ym(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&gl(t,n,u,!0),n=Ct.current,n!==null){switch(n.tag){case 13:return qt===null?Ur():n.alternate===null&&Le===0&&(Le=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===$s?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Br(e,a,u)),!1;case 22:return n.flags|=65536,a===$s?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Br(e,a,u)),!1}throw Error(r(435,n.tag))}return Br(e,a,u),Ur(),!1}if(ve)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==js&&(e=Error(r(422),{cause:a}),pl(wt(e,n)))):(a!==js&&(t=Error(r(423),{cause:a}),pl(wt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=wt(a,n),u=hr(e.stateNode,a,u),Qs(e,u),Le!==4&&(Le=2)),!1;var o=Error(r(520),{cause:a});if(o=wt(o,n),jl===null?jl=[o]:jl.push(o),Le!==4&&(Le=2),t===null)return!0;a=wt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=hr(n.stateNode,a,e),Qs(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(On===null||!On.has(o))))return n.flags|=65536,u&=-u,n.lanes|=u,u=hd(u),pd(u,e,n,a),Qs(n,u),!1}n=n.return}while(n!==null);return!1}var gd=Error(r(461)),Xe=!1;function Je(e,t,n,a){t.child=e===null?id(t,null,n,a):Da(t,e.child,n,a)}function md(e,t,n,a,u){n=n.render;var o=t.ref;if("ref"in a){var m={};for(var v in a)v!=="ref"&&(m[v]=a[v])}else m=a;return Fn(t),a=Fs(e,t,n,m,o,u),v=Ws(),e!==null&&!Xe?(Ps(e,t,u),tn(e,t,u)):(ve&&v&&Ds(t),t.flags|=1,Je(e,t,a,u),t.child)}function yd(e,t,n,a,u){if(e===null){var o=n.type;return typeof o=="function"&&!zs(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,vd(e,t,o,a,u)):(e=ki(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!xr(e,u)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:cl,n(m,a)&&e.ref===t.ref)return tn(e,t,u)}return t.flags|=1,e=Kt(o,a),e.ref=t.ref,e.return=t,t.child=e}function vd(e,t,n,a,u){if(e!==null){var o=e.memoizedProps;if(cl(o,a)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=a=o,xr(e,u))(e.flags&131072)!==0&&(Xe=!0);else return t.lanes=e.lanes,tn(e,t,u)}return pr(e,t,n,a,u)}function bd(e,t,n){var a=t.pendingProps,u=a.children,o=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=o!==null?o.baseLanes|n:n,e!==null){for(u=t.child=e.child,o=0;u!==null;)o=o|u.lanes|u.childLanes,u=u.sibling;t.childLanes=o&~a}else t.childLanes=0,t.child=null;return Sd(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Li(t,o!==null?o.cachePool:null),o!==null?vf(t,o):Zs(),ud(t);else return t.lanes=t.childLanes=536870912,Sd(e,t,o!==null?o.baseLanes|n:n,n)}else o!==null?(Li(t,o.cachePool),vf(t,o),En(),t.memoizedState=null):(e!==null&&Li(t,null),Zs(),En());return Je(e,t,u,n),t.child}function Sd(e,t,n,a){var u=Gs();return u=u===null?null:{parent:Ye._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Li(t,null),Zs(),ud(t),e!==null&&gl(e,t,a,!0),null}function Ii(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pr(e,t,n,a,u){return Fn(t),n=Fs(e,t,n,a,void 0,u),a=Ws(),e!==null&&!Xe?(Ps(e,t,u),tn(e,t,u)):(ve&&a&&Ds(t),t.flags|=1,Je(e,t,n,u),t.child)}function xd(e,t,n,a,u,o){return Fn(t),t.updateQueue=null,n=Sf(t,a,n,u),bf(e),a=Ws(),e!==null&&!Xe?(Ps(e,t,o),tn(e,t,o)):(ve&&a&&Ds(t),t.flags|=1,Je(e,t,n,o),t.child)}function Ed(e,t,n,a,u){if(Fn(t),t.stateNode===null){var o=Ta,m=n.contextType;typeof m=="object"&&m!==null&&(o=Ie(m)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=dr,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Ys(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?Ie(m):Ta,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(fr(t,n,m,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&dr.enqueueReplaceState(o,o.state,null),El(t,a,o,u),xl(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var v=t.memoizedProps,x=In(n,v);o.props=x;var C=o.context,j=n.contextType;m=Ta,typeof j=="object"&&j!==null&&(m=Ie(j));var H=n.getDerivedStateFromProps;j=typeof H=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,j||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||C!==m)&&rd(t,o,a,m),yn=!1;var z=t.memoizedState;o.state=z,El(t,a,o,u),xl(),C=t.memoizedState,v||z!==C||yn?(typeof H=="function"&&(fr(t,n,H,a),C=t.memoizedState),(x=yn||sd(t,n,x,a,z,C,m))?(j||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),o.props=a,o.state=C,o.context=m,a=x):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Vs(e,t),m=t.memoizedProps,j=In(n,m),o.props=j,H=t.pendingProps,z=o.context,C=n.contextType,x=Ta,typeof C=="object"&&C!==null&&(x=Ie(C)),v=n.getDerivedStateFromProps,(C=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==H||z!==x)&&rd(t,o,a,x),yn=!1,z=t.memoizedState,o.state=z,El(t,a,o,u),xl();var k=t.memoizedState;m!==H||z!==k||yn||e!==null&&e.dependencies!==null&&Mi(e.dependencies)?(typeof v=="function"&&(fr(t,n,v,a),k=t.memoizedState),(j=yn||sd(t,n,j,a,z,k,x)||e!==null&&e.dependencies!==null&&Mi(e.dependencies))?(C||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,k,x),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,k,x)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=k),o.props=a,o.state=k,o.context=x,a=j):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Ii(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=Da(t,e.child,null,u),t.child=Da(t,null,n,u)):Je(e,t,n,u),t.memoizedState=o.state,e=t.child):e=tn(e,t,u),e}function Td(e,t,n,a){return hl(),t.flags|=256,Je(e,t,n,a),t.child}var gr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mr(e){return{baseLanes:e,cachePool:cf()}}function yr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function Rd(e,t,n){var a=t.pendingProps,u=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),m&&(u=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(u?xn(t):En(),ve){var v=je,x;if(x=v){e:{for(x=v,v=Bt;x.nodeType!==8;){if(!v){v=null;break e}if(x=jt(x.nextSibling),x===null){v=null;break e}}v=x}v!==null?(t.memoizedState={dehydrated:v,treeContext:Qn!==null?{id:Jt,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},x=mt(18,null,null,0),x.stateNode=v,x.return=t,t.child=x,at=t,je=null,x=!0):x=!1}x||Kn(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return eo(v)?t.lanes=32:t.lanes=536870912,null;en(t)}return v=a.children,a=a.fallback,u?(En(),u=t.mode,v=eu({mode:"hidden",children:v},u),a=Vn(a,u,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,u=t.child,u.memoizedState=mr(n),u.childLanes=yr(e,m,n),t.memoizedState=gr,a):(xn(t),vr(t,v))}if(x=e.memoizedState,x!==null&&(v=x.dehydrated,v!==null)){if(o)t.flags&256?(xn(t),t.flags&=-257,t=br(e,t,n)):t.memoizedState!==null?(En(),t.child=e.child,t.flags|=128,t=null):(En(),u=a.fallback,v=t.mode,a=eu({mode:"visible",children:a.children},v),u=Vn(u,v,n,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,Da(t,e.child,null,n),a=t.child,a.memoizedState=mr(n),a.childLanes=yr(e,m,n),t.memoizedState=gr,t=u);else if(xn(t),eo(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var C=m.dgst;m=C,a=Error(r(419)),a.stack="",a.digest=m,pl({value:a,source:null,stack:null}),t=br(e,t,n)}else if(Xe||gl(e,t,n,!1),m=(n&e.childLanes)!==0,Xe||m){if(m=Oe,m!==null&&(a=n&-n,a=(a&42)!==0?1:ts(a),a=(a&(m.suspendedLanes|n))!==0?0:a,a!==0&&a!==x.retryLane))throw x.retryLane=a,Ea(e,a),xt(m,e,a),gd;v.data==="$?"||Ur(),t=br(e,t,n)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,je=jt(v.nextSibling),at=t,ve=!0,Zn=null,Bt=!1,e!==null&&(At[Ot++]=Jt,At[Ot++]=Ft,At[Ot++]=Qn,Jt=e.id,Ft=e.overflow,Qn=t),t=vr(t,a.children),t.flags|=4096);return t}return u?(En(),u=a.fallback,v=t.mode,x=e.child,C=x.sibling,a=Kt(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,C!==null?u=Kt(C,u):(u=Vn(u,v,n,null),u.flags|=2),u.return=t,a.return=t,a.sibling=u,t.child=a,a=u,u=t.child,v=e.child.memoizedState,v===null?v=mr(n):(x=v.cachePool,x!==null?(C=Ye._currentValue,x=x.parent!==C?{parent:C,pool:C}:x):x=cf(),v={baseLanes:v.baseLanes|n,cachePool:x}),u.memoizedState=v,u.childLanes=yr(e,m,n),t.memoizedState=gr,a):(xn(t),n=e.child,e=n.sibling,n=Kt(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function vr(e,t){return t=eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function eu(e,t){return e=mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function br(e,t,n){return Da(t,e.child,null,n),e=vr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Us(e.return,t,n)}function Sr(e,t,n,a,u){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=n,o.tailMode=u)}function Nd(e,t,n){var a=t.pendingProps,u=a.revealOrder,o=a.tail;if(Je(e,t,a.children,n),a=Ve.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wd(e,n,t);else if(e.tag===19)wd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(Y(Ve,a),u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&Fi(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Sr(t,!1,u,n,o);break;case"backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Fi(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Sr(t,!0,n,null,o);break;case"together":Sr(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),An|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(gl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Mi(e)))}function Vm(e,t,n){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),mn(t,Ye,e.memoizedState.cache),hl();break;case 27:case 5:Fu(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:mn(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Rd(e,t,n):(xn(t),e=tn(e,t,n),e!==null?e.sibling:null);xn(t);break;case 19:var u=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(gl(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return Nd(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Y(Ve,Ve.current),a)break;return null;case 22:case 23:return t.lanes=0,bd(e,t,n);case 24:mn(t,Ye,e.memoizedState.cache)}return tn(e,t,n)}function Ad(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!xr(e,n)&&(t.flags&128)===0)return Xe=!1,Vm(e,t,n);Xe=(e.flags&131072)!==0}else Xe=!1,ve&&(t.flags&1048576)!==0&&nf(t,Di,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,u=a._init;if(a=u(a._payload),t.type=a,typeof a=="function")zs(a)?(e=In(a,e),t.tag=1,t=Ed(null,t,a,e,n)):(t.tag=0,t=pr(null,t,a,e,n));else{if(a!=null){if(u=a.$$typeof,u===F){t.tag=11,t=md(null,t,a,e,n);break e}else if(u===le){t.tag=14,t=yd(null,t,a,e,n);break e}}throw t=Ce(a)||a,Error(r(306,t,""))}}return t;case 0:return pr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=In(a,t.pendingProps),Ed(e,t,a,u,n);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var o=t.memoizedState;u=o.element,Vs(e,t),El(t,a,null,n);var m=t.memoizedState;if(a=m.cache,mn(t,Ye,a),a!==o.cache&&Hs(t,[Ye],n,!0),xl(),a=m.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Td(e,t,a,n);break e}else if(a!==u){u=wt(Error(r(424)),t),pl(u),t=Td(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(je=jt(e.firstChild),at=t,ve=!0,Zn=null,Bt=!0,n=id(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(hl(),a===u){t=tn(e,t,n);break e}Je(e,t,a,n)}t=t.child}return t;case 26:return Ii(e,t),e===null?(n=kh(t.type,null,t.pendingProps,null))?t.memoizedState=n:ve||(n=t.type,e=t.pendingProps,a=pu(ue.current).createElement(n),a[Pe]=t,a[st]=e,We(a,n,e),Qe(a),t.stateNode=a):t.memoizedState=kh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Fu(t),e===null&&ve&&(a=t.stateNode=Oh(t.type,t.pendingProps,ue.current),at=t,Bt=!0,u=je,kn(t.type)?(to=u,je=jt(a.firstChild)):je=u),Je(e,t,t.pendingProps.children,n),Ii(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((u=a=je)&&(a=vy(a,t.type,t.pendingProps,Bt),a!==null?(t.stateNode=a,at=t,je=jt(a.firstChild),Bt=!1,u=!0):u=!1),u||Kn(t)),Fu(t),u=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,a=o.children,Wr(u,o)?a=null:m!==null&&Wr(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=Fs(e,t,Lm,null,null,n),Vl._currentValue=u),Ii(e,t),Je(e,t,a,n),t.child;case 6:return e===null&&ve&&((e=n=je)&&(n=by(n,t.pendingProps,Bt),n!==null?(t.stateNode=n,at=t,je=null,e=!0):e=!1),e||Kn(t)),null;case 13:return Rd(e,t,n);case 4:return ze(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Da(t,null,a,n):Je(e,t,a,n),t.child;case 11:return md(e,t,t.type,t.pendingProps,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,mn(t,t.type,a.value),Je(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Fn(t),u=Ie(u),a=a(u),t.flags|=1,Je(e,t,a,n),t.child;case 14:return yd(e,t,t.type,t.pendingProps,n);case 15:return vd(e,t,t.type,t.pendingProps,n);case 19:return Nd(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=eu(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Kt(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return bd(e,t,n);case 24:return Fn(t),a=Ie(Ye),e===null?(u=Gs(),u===null&&(u=Oe,o=Bs(),u.pooledCache=o,o.refCount++,o!==null&&(u.pooledCacheLanes|=n),u=o),t.memoizedState={parent:a,cache:u},Ys(t),mn(t,Ye,u)):((e.lanes&n)!==0&&(Vs(e,t),El(t,null,null,n),xl()),u=e.memoizedState,o=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),mn(t,Ye,a)):(a=o.cache,mn(t,Ye,a),a!==u.cache&&Hs(t,[Ye],n,!0))),Je(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function nn(e){e.flags|=4}function Od(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lh(t)){if(t=Ct.current,t!==null&&((ge&4194048)===ge?qt!==null:(ge&62914560)!==ge&&(ge&536870912)===0||t!==qt))throw bl=$s,ff;e.flags|=8192}}function tu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ic():536870912,e.lanes|=t,Ua|=t)}function Cl(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Qm(e,t,n){var a=t.pendingProps;switch(Ms(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pt(Ye),dn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dl(t)?nn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uf())),Me(t),null;case 26:return n=t.memoizedState,e===null?(nn(t),n!==null?(Me(t),Od(t,n)):(Me(t),t.flags&=-16777217)):n?n!==e.memoizedState?(nn(t),Me(t),Od(t,n)):(Me(t),t.flags&=-16777217):(e.memoizedProps!==a&&nn(t),Me(t),t.flags&=-16777217),null;case 27:di(t),n=ue.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}e=P.current,dl(t)?af(t):(e=Oh(u,a,n),t.stateNode=e,nn(t))}return Me(t),null;case 5:if(di(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}if(e=P.current,dl(t))af(t);else{switch(u=pu(ue.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?u.createElement(n,{is:a.is}):u.createElement(n)}}e[Pe]=t,e[st]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(We(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&nn(t)}}return Me(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,dl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,u=at,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||xh(e.nodeValue,n)),e||Kn(t)}else e=pu(e).createTextNode(a),e[Pe]=t,t.stateNode=e}return Me(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=dl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[Pe]=t}else hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),u=!1}else u=uf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(en(t),t):(en(t),null)}if(en(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool);var o=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),tu(t,t.updateQueue),Me(t),null;case 4:return dn(),e===null&&Xr(t.stateNode.containerInfo),Me(t),null;case 10:return Pt(t.type),Me(t),null;case 19:if(V(Ve),u=t.memoizedState,u===null)return Me(t),null;if(a=(t.flags&128)!==0,o=u.rendering,o===null)if(a)Cl(u,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Fi(e),o!==null){for(t.flags|=128,Cl(u,!1),e=o.updateQueue,t.updateQueue=e,tu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)tf(n,e),n=n.sibling;return Y(Ve,Ve.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ht()>lu&&(t.flags|=128,a=!0,Cl(u,!1),t.lanes=4194304)}else{if(!a)if(e=Fi(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,tu(t,e),Cl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!ve)return Me(t),null}else 2*Ht()-u.renderingStartTime>lu&&n!==536870912&&(t.flags|=128,a=!0,Cl(u,!1),t.lanes=4194304);u.isBackwards?(o.sibling=t.child,t.child=o):(e=u.last,e!==null?e.sibling=o:t.child=o,u.last=o)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ht(),t.sibling=null,e=Ve.current,Y(Ve,a?e&1|2:e&1),t):(Me(t),null);case 22:case 23:return en(t),Ks(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),n=t.updateQueue,n!==null&&tu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&V(Wn),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Pt(Ye),Me(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Xm(e,t){switch(Ms(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pt(Ye),dn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return di(t),null;case 13:if(en(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Ve),null;case 4:return dn(),null;case 10:return Pt(t.type),null;case 22:case 23:return en(t),Ks(),e!==null&&V(Wn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pt(Ye),null;case 25:return null;default:return null}}function Cd(e,t){switch(Ms(t),t.tag){case 3:Pt(Ye),dn();break;case 26:case 27:case 5:di(t);break;case 4:dn();break;case 13:en(t);break;case 19:V(Ve);break;case 10:Pt(t.type);break;case 22:case 23:en(t),Ks(),e!==null&&V(Wn);break;case 24:Pt(Ye)}}function zl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){a=void 0;var o=n.create,m=n.inst;a=o(),m.destroy=a}n=n.next}while(n!==u)}}catch(v){Ne(t,t.return,v)}}function Tn(e,t,n){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var o=u.next;a=o;do{if((a.tag&e)===e){var m=a.inst,v=m.destroy;if(v!==void 0){m.destroy=void 0,u=t;var x=n,C=v;try{C()}catch(j){Ne(u,x,j)}}}a=a.next}while(a!==o)}}catch(j){Ne(t,t.return,j)}}function zd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yf(t,n)}catch(a){Ne(e,e.return,a)}}}function kd(e,t,n){n.props=In(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ne(e,t,a)}}function kl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(u){Ne(e,t,u)}}function Gt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Ne(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Ne(e,t,u)}else n.current=null}function _d(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){Ne(e,e.return,u)}}function Er(e,t,n){try{var a=e.stateNode;hy(a,e.type,n,t),a[st]=t}catch(u){Ne(e,e.return,u)}}function Dd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kn(e.type)||e.tag===4}function Tr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hu));else if(a!==4&&(a===27&&kn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Rr(e,t,n),e=e.sibling;e!==null;)Rr(e,t,n),e=e.sibling}function nu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&kn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nu(e,t,n),e=e.sibling;e!==null;)nu(e,t,n),e=e.sibling}function Md(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);We(t,a,n),t[Pe]=e,t[st]=n}catch(o){Ne(e,e.return,o)}}var an=!1,Be=!1,wr=!1,jd=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Zm(e,t){if(e=e.containerInfo,Jr=Su,e=Qc(e),Ts(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var m=0,v=-1,x=-1,C=0,j=0,H=e,z=null;t:for(;;){for(var k;H!==n||u!==0&&H.nodeType!==3||(v=m+u),H!==o||a!==0&&H.nodeType!==3||(x=m+a),H.nodeType===3&&(m+=H.nodeValue.length),(k=H.firstChild)!==null;)z=H,H=k;for(;;){if(H===e)break t;if(z===n&&++C===u&&(v=m),z===o&&++j===a&&(x=m),(k=H.nextSibling)!==null)break;H=z,z=H.parentNode}H=k}n=v===-1||x===-1?null:{start:v,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fr={focusedElem:e,selectionRange:n},Su=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,o=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,u=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var ne=In(n.type,u,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(ne,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(I){Ne(n,n.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ir(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ir(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ze=e;break}Ze=t.return}}function Ld(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Rn(e,n),a&4&&zl(5,n);break;case 1:if(Rn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ne(n,n.return,m)}else{var u=In(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ne(n,n.return,m)}}a&64&&zd(n),a&512&&kl(n,n.return);break;case 3:if(Rn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{yf(e,t)}catch(m){Ne(n,n.return,m)}}break;case 27:t===null&&a&4&&Md(n);case 26:case 5:Rn(e,n),t===null&&a&4&&_d(n),a&512&&kl(n,n.return);break;case 12:Rn(e,n);break;case 13:Rn(e,n),a&4&&Bd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ny.bind(null,n),Sy(e,n))));break;case 22:if(a=n.memoizedState!==null||an,!a){t=t!==null&&t.memoizedState!==null||Be,u=an;var o=Be;an=a,(Be=t)&&!o?wn(e,n,(n.subtreeFlags&8772)!==0):Rn(e,n),an=u,Be=o}break;case 30:break;default:Rn(e,n)}}function Ud(e){var t=e.alternate;t!==null&&(e.alternate=null,Ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ls(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ke=null,ct=!1;function ln(e,t,n){for(n=n.child;n!==null;)Hd(e,t,n),n=n.sibling}function Hd(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Pa,n)}catch{}switch(n.tag){case 26:Be||Gt(n,t),ln(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Be||Gt(n,t);var a=ke,u=ct;kn(n.type)&&(ke=n.stateNode,ct=!1),ln(e,t,n),ql(n.stateNode),ke=a,ct=u;break;case 5:Be||Gt(n,t);case 6:if(a=ke,u=ct,ke=null,ln(e,t,n),ke=a,ct=u,ke!==null)if(ct)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(n.stateNode)}catch(o){Ne(n,t,o)}else try{ke.removeChild(n.stateNode)}catch(o){Ne(n,t,o)}break;case 18:ke!==null&&(ct?(e=ke,Nh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Kl(e)):Nh(ke,n.stateNode));break;case 4:a=ke,u=ct,ke=n.stateNode.containerInfo,ct=!0,ln(e,t,n),ke=a,ct=u;break;case 0:case 11:case 14:case 15:Be||Tn(2,n,t),Be||Tn(4,n,t),ln(e,t,n);break;case 1:Be||(Gt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&kd(n,t,a)),ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:Be=(a=Be)||n.memoizedState!==null,ln(e,t,n),Be=a;break;default:ln(e,t,n)}}function Bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kl(e)}catch(n){Ne(t,t.return,n)}}function Km(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jd),t;default:throw Error(r(435,e.tag))}}function Nr(e,t){var n=Km(e);t.forEach(function(a){var u=ay.bind(null,e,a);n.has(a)||(n.add(a),a.then(u,u))})}function yt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],o=e,m=t,v=m;e:for(;v!==null;){switch(v.tag){case 27:if(kn(v.type)){ke=v.stateNode,ct=!1;break e}break;case 5:ke=v.stateNode,ct=!1;break e;case 3:case 4:ke=v.stateNode.containerInfo,ct=!0;break e}v=v.return}if(ke===null)throw Error(r(160));Hd(o,m,u),ke=null,ct=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)qd(t,e),t=t.sibling}var Mt=null;function qd(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),vt(e),a&4&&(Tn(3,e,e.return),zl(3,e),Tn(5,e,e.return));break;case 1:yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),a&64&&an&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var u=Mt;if(yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":o=u.getElementsByTagName("title")[0],(!o||o[tl]||o[Pe]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=u.createElement(a),u.head.insertBefore(o,u.querySelector("head > title"))),We(o,a,n),o[Pe]=e,Qe(o),a=o;break e;case"link":var m=Mh("link","href",u).get(a+(n.href||""));if(m){for(var v=0;v<m.length;v++)if(o=m[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(v,1);break t}}o=u.createElement(a),We(o,a,n),u.head.appendChild(o);break;case"meta":if(m=Mh("meta","content",u).get(a+(n.content||""))){for(v=0;v<m.length;v++)if(o=m[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(v,1);break t}}o=u.createElement(a),We(o,a,n),u.head.appendChild(o);break;default:throw Error(r(468,a))}o[Pe]=e,Qe(o),a=o}e.stateNode=a}else jh(u,e.type,e.stateNode);else e.stateNode=Dh(u,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?jh(u,e.type,e.stateNode):Dh(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Er(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),n!==null&&a&4&&Er(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),vt(e),a&512&&(Be||n===null||Gt(n,n.return)),e.flags&32){u=e.stateNode;try{ga(u,"")}catch(k){Ne(e,e.return,k)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,Er(e,u,n!==null?n.memoizedProps:u)),a&1024&&(wr=!0);break;case 6:if(yt(t,e),vt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(k){Ne(e,e.return,k)}}break;case 3:if(yu=null,u=Mt,Mt=gu(t.containerInfo),yt(t,e),Mt=u,vt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Kl(t.containerInfo)}catch(k){Ne(e,e.return,k)}wr&&(wr=!1,Gd(e));break;case 4:a=Mt,Mt=gu(e.stateNode.containerInfo),yt(t,e),vt(e),Mt=a;break;case 12:yt(t,e),vt(e);break;case 13:yt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_r=Ht()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 22:u=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,C=an,j=Be;if(an=C||u,Be=j||x,yt(t,e),Be=j,an=C,vt(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||x||an||Be||ea(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){x=n=t;try{if(o=x.stateNode,u)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{v=x.stateNode;var H=x.memoizedProps.style,z=H!=null&&H.hasOwnProperty("display")?H.display:null;v.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(k){Ne(x,x.return,k)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=u?"":x.memoizedProps}catch(k){Ne(x,x.return,k)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Nr(e,n))));break;case 19:yt(t,e),vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 30:break;case 21:break;default:yt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Dd(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var u=n.stateNode,o=Tr(e);nu(e,o,u);break;case 5:var m=n.stateNode;n.flags&32&&(ga(m,""),n.flags&=-33);var v=Tr(e);nu(e,v,m);break;case 3:case 4:var x=n.stateNode.containerInfo,C=Tr(e);Rr(e,C,x);break;default:throw Error(r(161))}}catch(j){Ne(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Gd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Rn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ld(e,t.alternate,t),t=t.sibling}function ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tn(4,t,t.return),ea(t);break;case 1:Gt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&kd(t,t.return,n),ea(t);break;case 27:ql(t.stateNode);case 26:case 5:Gt(t,t.return),ea(t);break;case 22:t.memoizedState===null&&ea(t);break;case 30:ea(t);break;default:ea(t)}e=e.sibling}}function wn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:wn(u,o,n),zl(4,o);break;case 1:if(wn(u,o,n),a=o,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(C){Ne(a,a.return,C)}if(a=o,u=a.updateQueue,u!==null){var v=a.stateNode;try{var x=u.shared.hiddenCallbacks;if(x!==null)for(u.shared.hiddenCallbacks=null,u=0;u<x.length;u++)mf(x[u],v)}catch(C){Ne(a,a.return,C)}}n&&m&64&&zd(o),kl(o,o.return);break;case 27:Md(o);case 26:case 5:wn(u,o,n),n&&a===null&&m&4&&_d(o),kl(o,o.return);break;case 12:wn(u,o,n);break;case 13:wn(u,o,n),n&&m&4&&Bd(u,o);break;case 22:o.memoizedState===null&&wn(u,o,n),kl(o,o.return);break;case 30:break;default:wn(u,o,n)}t=t.sibling}}function Ar(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ml(n))}function Or(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ml(e))}function $t(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$d(e,t,n,a),t=t.sibling}function $d(e,t,n,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,n,a),u&2048&&zl(9,t);break;case 1:$t(e,t,n,a);break;case 3:$t(e,t,n,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ml(e)));break;case 12:if(u&2048){$t(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,v=o.onPostCommit;typeof v=="function"&&v(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Ne(t,t.return,x)}}else $t(e,t,n,a);break;case 13:$t(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?$t(e,t,n,a):_l(e,t):o._visibility&2?$t(e,t,n,a):(o._visibility|=2,Ma(e,t,n,a,(t.subtreeFlags&10256)!==0)),u&2048&&Ar(m,t);break;case 24:$t(e,t,n,a),u&2048&&Or(t.alternate,t);break;default:$t(e,t,n,a)}}function Ma(e,t,n,a,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var o=e,m=t,v=n,x=a,C=m.flags;switch(m.tag){case 0:case 11:case 15:Ma(o,m,v,x,u),zl(8,m);break;case 23:break;case 22:var j=m.stateNode;m.memoizedState!==null?j._visibility&2?Ma(o,m,v,x,u):_l(o,m):(j._visibility|=2,Ma(o,m,v,x,u)),u&&C&2048&&Ar(m.alternate,m);break;case 24:Ma(o,m,v,x,u),u&&C&2048&&Or(m.alternate,m);break;default:Ma(o,m,v,x,u)}t=t.sibling}}function _l(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,u=a.flags;switch(a.tag){case 22:_l(n,a),u&2048&&Ar(a.alternate,a);break;case 24:_l(n,a),u&2048&&Or(a.alternate,a);break;default:_l(n,a)}t=t.sibling}}var Dl=8192;function ja(e){if(e.subtreeFlags&Dl)for(e=e.child;e!==null;)Yd(e),e=e.sibling}function Yd(e){switch(e.tag){case 26:ja(e),e.flags&Dl&&e.memoizedState!==null&&Dy(Mt,e.memoizedState,e.memoizedProps);break;case 5:ja(e);break;case 3:case 4:var t=Mt;Mt=gu(e.stateNode.containerInfo),ja(e),Mt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Dl,Dl=16777216,ja(e),Dl=t):ja(e));break;default:ja(e)}}function Vd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ml(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ze=a,Xd(a,e)}Vd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qd(e),e=e.sibling}function Qd(e){switch(e.tag){case 0:case 11:case 15:Ml(e),e.flags&2048&&Tn(9,e,e.return);break;case 3:Ml(e);break;case 12:Ml(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,au(e)):Ml(e);break;default:Ml(e)}}function au(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ze=a,Xd(a,e)}Vd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tn(8,t,t.return),au(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,au(t));break;default:au(t)}e=e.sibling}}function Xd(e,t){for(;Ze!==null;){var n=Ze;switch(n.tag){case 0:case 11:case 15:Tn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ml(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ze=a;else e:for(n=e;Ze!==null;){a=Ze;var u=a.sibling,o=a.return;if(Ud(a),a===n){Ze=null;break e}if(u!==null){u.return=o,Ze=u;break e}Ze=o}}}var Jm={getCacheForType:function(e){var t=Ie(Ye),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Fm=typeof WeakMap=="function"?WeakMap:Map,Se=0,Oe=null,ce=null,ge=0,xe=0,bt=null,Nn=!1,La=!1,Cr=!1,un=0,Le=0,An=0,ta=0,zr=0,zt=0,Ua=0,jl=null,ft=null,kr=!1,_r=0,lu=1/0,iu=null,On=null,Fe=0,Cn=null,Ha=null,Ba=0,Dr=0,Mr=null,Zd=null,Ll=0,jr=null;function St(){if((Se&2)!==0&&ge!==0)return ge&-ge;if(D.T!==null){var e=Na;return e!==0?e:$r()}return rc()}function Kd(){zt===0&&(zt=(ge&536870912)===0||ve?lc():536870912);var e=Ct.current;return e!==null&&(e.flags|=32),zt}function xt(e,t,n){(e===Oe&&(xe===2||xe===9)||e.cancelPendingCommit!==null)&&(qa(e,0),zn(e,ge,zt,!1)),el(e,n),((Se&2)===0||e!==Oe)&&(e===Oe&&((Se&2)===0&&(ta|=n),Le===4&&zn(e,ge,zt,!1)),Yt(e))}function Jd(e,t,n){if((Se&6)!==0)throw Error(r(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Ia(e,t),u=a?Im(e,t):Hr(e,t,!0),o=a;do{if(u===0){La&&!a&&zn(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Wm(n)){u=Hr(e,t,!1),o=!1;continue}if(u===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var v=e;u=jl;var x=v.current.memoizedState.isDehydrated;if(x&&(qa(v,m).flags|=256),m=Hr(v,m,!1),m!==2){if(Cr&&!x){v.errorRecoveryDisabledLanes|=o,ta|=o,u=4;break e}o=ft,ft=u,o!==null&&(ft===null?ft=o:ft.push.apply(ft,o))}u=m}if(o=!1,u!==2)continue}}if(u===1){qa(e,0),zn(e,t,0,!0);break}e:{switch(a=e,o=u,o){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:zn(a,t,zt,!Nn);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=_r+300-Ht(),10<u)){if(zn(a,t,zt,!Nn),mi(a,0,!0)!==0)break e;a.timeoutHandle=Rh(Fd.bind(null,a,n,ft,iu,kr,t,zt,ta,Ua,Nn,o,2,-0,0),u);break e}Fd(a,n,ft,iu,kr,t,zt,ta,Ua,Nn,o,0,-0,0)}}break}while(!0);Yt(e)}function Fd(e,t,n,a,u,o,m,v,x,C,j,H,z,k){if(e.timeoutHandle=-1,H=t.subtreeFlags,(H&8192||(H&16785408)===16785408)&&(Yl={stylesheets:null,count:0,unsuspend:_y},Yd(t),H=My(),H!==null)){e.cancelPendingCommit=H(ah.bind(null,e,t,o,n,a,u,m,v,x,j,1,z,k)),zn(e,o,m,!C);return}ah(e,t,o,n,a,u,m,v,x)}function Wm(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var u=n[a],o=u.getSnapshot;u=u.value;try{if(!gt(o(),u))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zn(e,t,n,a){t&=~zr,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var o=31-pt(u),m=1<<o;a[o]=-1,u&=~m}n!==0&&uc(e,n,t)}function uu(){return(Se&6)===0?(Ul(0),!1):!0}function Lr(){if(ce!==null){if(xe===0)var e=ce.return;else e=ce,Wt=Jn=null,Is(e),_a=null,Al=0,e=ce;for(;e!==null;)Cd(e.alternate,e),e=e.return;ce=null}}function qa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,gy(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Lr(),Oe=e,ce=n=Kt(e.current,null),ge=t,xe=0,bt=null,Nn=!1,La=Ia(e,t),Cr=!1,Ua=zt=zr=ta=An=Le=0,ft=jl=null,kr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-pt(a),o=1<<u;t|=e[u],a&=~o}return un=t,Oi(),n}function Wd(e,t){re=null,D.H=Zi,t===vl||t===Ui?(t=pf(),xe=3):t===ff?(t=pf(),xe=4):xe=t===gd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,ce===null&&(Le=1,Pi(e,wt(t,e.current)))}function Pd(){var e=D.H;return D.H=Zi,e===null?Zi:e}function Id(){var e=D.A;return D.A=Jm,e}function Ur(){Le=4,Nn||(ge&4194048)!==ge&&Ct.current!==null||(La=!0),(An&134217727)===0&&(ta&134217727)===0||Oe===null||zn(Oe,ge,zt,!1)}function Hr(e,t,n){var a=Se;Se|=2;var u=Pd(),o=Id();(Oe!==e||ge!==t)&&(iu=null,qa(e,t)),t=!1;var m=Le;e:do try{if(xe!==0&&ce!==null){var v=ce,x=bt;switch(xe){case 8:Lr(),m=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var C=xe;if(xe=0,bt=null,Ga(e,v,x,C),n&&La){m=0;break e}break;default:C=xe,xe=0,bt=null,Ga(e,v,x,C)}}Pm(),m=Le;break}catch(j){Wd(e,j)}while(!0);return t&&e.shellSuspendCounter++,Wt=Jn=null,Se=a,D.H=u,D.A=o,ce===null&&(Oe=null,ge=0,Oi()),m}function Pm(){for(;ce!==null;)eh(ce)}function Im(e,t){var n=Se;Se|=2;var a=Pd(),u=Id();Oe!==e||ge!==t?(iu=null,lu=Ht()+500,qa(e,t)):La=Ia(e,t);e:do try{if(xe!==0&&ce!==null){t=ce;var o=bt;t:switch(xe){case 1:xe=0,bt=null,Ga(e,t,o,1);break;case 2:case 9:if(df(o)){xe=0,bt=null,th(t);break}t=function(){xe!==2&&xe!==9||Oe!==e||(xe=7),Yt(e)},o.then(t,t);break e;case 3:xe=7;break e;case 4:xe=5;break e;case 7:df(o)?(xe=0,bt=null,th(t)):(xe=0,bt=null,Ga(e,t,o,7));break;case 5:var m=null;switch(ce.tag){case 26:m=ce.memoizedState;case 5:case 27:var v=ce;if(!m||Lh(m)){xe=0,bt=null;var x=v.sibling;if(x!==null)ce=x;else{var C=v.return;C!==null?(ce=C,su(C)):ce=null}break t}}xe=0,bt=null,Ga(e,t,o,5);break;case 6:xe=0,bt=null,Ga(e,t,o,6);break;case 8:Lr(),Le=6;break e;default:throw Error(r(462))}}ey();break}catch(j){Wd(e,j)}while(!0);return Wt=Jn=null,D.H=a,D.A=u,Se=n,ce!==null?0:(Oe=null,ge=0,Oi(),Le)}function ey(){for(;ce!==null&&!Eg();)eh(ce)}function eh(e){var t=Ad(e.alternate,e,un);e.memoizedProps=e.pendingProps,t===null?su(e):ce=t}function th(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=xd(n,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=xd(n,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Is(t);default:Cd(n,t),t=ce=tf(t,un),t=Ad(n,t,un)}e.memoizedProps=e.pendingProps,t===null?su(e):ce=t}function Ga(e,t,n,a){Wt=Jn=null,Is(t),_a=null,Al=0;var u=t.return;try{if(Ym(e,u,t,n,ge)){Le=1,Pi(e,wt(n,e.current)),ce=null;return}}catch(o){if(u!==null)throw ce=u,o;Le=1,Pi(e,wt(n,e.current)),ce=null;return}t.flags&32768?(ve||a===1?e=!0:La||(ge&536870912)!==0?e=!1:(Nn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ct.current,a!==null&&a.tag===13&&(a.flags|=16384))),nh(t,e)):su(t)}function su(e){var t=e;do{if((t.flags&32768)!==0){nh(t,Nn);return}e=t.return;var n=Qm(t.alternate,t,un);if(n!==null){ce=n;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);Le===0&&(Le=5)}function nh(e,t){do{var n=Xm(e.alternate,e);if(n!==null){n.flags&=32767,ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=n}while(e!==null);Le=6,ce=null}function ah(e,t,n,a,u,o,m,v,x){e.cancelPendingCommit=null;do ru();while(Fe!==0);if((Se&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,o|=Os,_g(e,n,o,m,v,x),e===Oe&&(ce=Oe=null,ge=0),Ha=t,Cn=e,Ba=n,Dr=o,Mr=u,Zd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ly(hi,function(){return rh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,u=$.p,$.p=2,m=Se,Se|=4;try{Zm(e,t,n)}finally{Se=m,$.p=u,D.T=a}}Fe=1,lh(),ih(),uh()}}function lh(){if(Fe===1){Fe=0;var e=Cn,t=Ha,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var a=$.p;$.p=2;var u=Se;Se|=4;try{qd(t,e);var o=Fr,m=Qc(e.containerInfo),v=o.focusedElem,x=o.selectionRange;if(m!==v&&v&&v.ownerDocument&&Vc(v.ownerDocument.documentElement,v)){if(x!==null&&Ts(v)){var C=x.start,j=x.end;if(j===void 0&&(j=C),"selectionStart"in v)v.selectionStart=C,v.selectionEnd=Math.min(j,v.value.length);else{var H=v.ownerDocument||document,z=H&&H.defaultView||window;if(z.getSelection){var k=z.getSelection(),ne=v.textContent.length,I=Math.min(x.start,ne),we=x.end===void 0?I:Math.min(x.end,ne);!k.extend&&I>we&&(m=we,we=I,I=m);var N=Yc(v,I),w=Yc(v,we);if(N&&w&&(k.rangeCount!==1||k.anchorNode!==N.node||k.anchorOffset!==N.offset||k.focusNode!==w.node||k.focusOffset!==w.offset)){var O=H.createRange();O.setStart(N.node,N.offset),k.removeAllRanges(),I>we?(k.addRange(O),k.extend(w.node,w.offset)):(O.setEnd(w.node,w.offset),k.addRange(O))}}}}for(H=[],k=v;k=k.parentNode;)k.nodeType===1&&H.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<H.length;v++){var L=H[v];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Su=!!Jr,Fr=Jr=null}finally{Se=u,$.p=a,D.T=n}}e.current=t,Fe=2}}function ih(){if(Fe===2){Fe=0;var e=Cn,t=Ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=$.p;$.p=2;var u=Se;Se|=4;try{Ld(e,t.alternate,t)}finally{Se=u,$.p=a,D.T=n}}Fe=3}}function uh(){if(Fe===4||Fe===3){Fe=0,Tg();var e=Cn,t=Ha,n=Ba,a=Zd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Ha=Cn=null,sh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(On=null),ns(n),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Pa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,u=$.p,$.p=2,D.T=null;try{for(var o=e.onRecoverableError,m=0;m<a.length;m++){var v=a[m];o(v.value,{componentStack:v.stack})}}finally{D.T=t,$.p=u}}(Ba&3)!==0&&ru(),Yt(e),u=e.pendingLanes,(n&4194090)!==0&&(u&42)!==0?e===jr?Ll++:(Ll=0,jr=e):Ll=0,Ul(0)}}function sh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ml(t)))}function ru(e){return lh(),ih(),uh(),rh()}function rh(){if(Fe!==5)return!1;var e=Cn,t=Dr;Dr=0;var n=ns(Ba),a=D.T,u=$.p;try{$.p=32>n?32:n,D.T=null,n=Mr,Mr=null;var o=Cn,m=Ba;if(Fe=0,Ha=Cn=null,Ba=0,(Se&6)!==0)throw Error(r(331));var v=Se;if(Se|=4,Qd(o.current),$d(o,o.current,m,n),Se=v,Ul(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Pa,o)}catch{}return!0}finally{$.p=u,D.T=a,sh(e,t)}}function oh(e,t,n){t=wt(n,t),t=hr(e.stateNode,t,2),e=bn(e,t,2),e!==null&&(el(e,2),Yt(e))}function Ne(e,t,n){if(e.tag===3)oh(e,e,n);else for(;t!==null;){if(t.tag===3){oh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(On===null||!On.has(a))){e=wt(n,e),n=hd(2),a=bn(t,n,2),a!==null&&(pd(n,a,t,e),el(a,2),Yt(a));break}}t=t.return}}function Br(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Fm;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(n)||(Cr=!0,u.add(n),e=ty.bind(null,e,t,n),t.then(e,e))}function ty(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Oe===e&&(ge&n)===n&&(Le===4||Le===3&&(ge&62914560)===ge&&300>Ht()-_r?(Se&2)===0&&qa(e,0):zr|=n,Ua===ge&&(Ua=0)),Yt(e)}function ch(e,t){t===0&&(t=ic()),e=Ea(e,t),e!==null&&(el(e,t),Yt(e))}function ny(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ch(e,n)}function ay(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),ch(e,n)}function ly(e,t){return Pu(e,t)}var ou=null,$a=null,qr=!1,cu=!1,Gr=!1,na=0;function Yt(e){e!==$a&&e.next===null&&($a===null?ou=$a=e:$a=$a.next=e),cu=!0,qr||(qr=!0,uy())}function Ul(e,t){if(!Gr&&cu){Gr=!0;do for(var n=!1,a=ou;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var o=0;else{var m=a.suspendedLanes,v=a.pingedLanes;o=(1<<31-pt(42|e)+1)-1,o&=u&~(m&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,ph(a,o))}else o=ge,o=mi(a,a===Oe?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Ia(a,o)||(n=!0,ph(a,o));a=a.next}while(n);Gr=!1}}function iy(){fh()}function fh(){cu=qr=!1;var e=0;na!==0&&(py()&&(e=na),na=0);for(var t=Ht(),n=null,a=ou;a!==null;){var u=a.next,o=dh(a,t);o===0?(a.next=null,n===null?ou=u:n.next=u,u===null&&($a=n)):(n=a,(e!==0||(o&3)!==0)&&(cu=!0)),a=u}Ul(e)}function dh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-pt(o),v=1<<m,x=u[m];x===-1?((v&n)===0||(v&a)!==0)&&(u[m]=kg(v,t)):x<=t&&(e.expiredLanes|=v),o&=~v}if(t=Oe,n=ge,n=mi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(xe===2||xe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Iu(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ia(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Iu(a),ns(n)){case 2:case 8:n=nc;break;case 32:n=hi;break;case 268435456:n=ac;break;default:n=hi}return a=hh.bind(null,e),n=Pu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Iu(a),e.callbackPriority=2,e.callbackNode=null,2}function hh(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ru()&&e.callbackNode!==n)return null;var a=ge;return a=mi(e,e===Oe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Jd(e,a,t),dh(e,Ht()),e.callbackNode!=null&&e.callbackNode===n?hh.bind(null,e):null)}function ph(e,t){if(ru())return null;Jd(e,t,!0)}function uy(){my(function(){(Se&6)!==0?Pu(tc,iy):fh()})}function $r(){return na===0&&(na=lc()),na}function gh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xi(""+e)}function mh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function sy(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var o=gh((u[st]||null).action),m=a.submitter;m&&(t=(t=m[st]||null)?gh(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var v=new wi("action","action",null,a,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(na!==0){var x=m?mh(u,m):new FormData(u);rr(n,{pending:!0,data:x,method:u.method,action:o},null,x)}}else typeof o=="function"&&(v.preventDefault(),x=m?mh(u,m):new FormData(u),rr(n,{pending:!0,data:x,method:u.method,action:o},o,x))},currentTarget:u}]})}}for(var Yr=0;Yr<As.length;Yr++){var Vr=As[Yr],ry=Vr.toLowerCase(),oy=Vr[0].toUpperCase()+Vr.slice(1);Dt(ry,"on"+oy)}Dt(Kc,"onAnimationEnd"),Dt(Jc,"onAnimationIteration"),Dt(Fc,"onAnimationStart"),Dt("dblclick","onDoubleClick"),Dt("focusin","onFocus"),Dt("focusout","onBlur"),Dt(Nm,"onTransitionRun"),Dt(Am,"onTransitionStart"),Dt(Om,"onTransitionCancel"),Dt(Wc,"onTransitionEnd"),da("onMouseEnter",["mouseout","mouseover"]),da("onMouseLeave",["mouseout","mouseover"]),da("onPointerEnter",["pointerout","pointerover"]),da("onPointerLeave",["pointerout","pointerover"]),qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hl));function yh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],u=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var m=a.length-1;0<=m;m--){var v=a[m],x=v.instance,C=v.currentTarget;if(v=v.listener,x!==o&&u.isPropagationStopped())break e;o=v,u.currentTarget=C;try{o(u)}catch(j){Wi(j)}u.currentTarget=null,o=x}else for(m=0;m<a.length;m++){if(v=a[m],x=v.instance,C=v.currentTarget,v=v.listener,x!==o&&u.isPropagationStopped())break e;o=v,u.currentTarget=C;try{o(u)}catch(j){Wi(j)}u.currentTarget=null,o=x}}}}function fe(e,t){var n=t[as];n===void 0&&(n=t[as]=new Set);var a=e+"__bubble";n.has(a)||(vh(t,e,2,!1),n.add(a))}function Qr(e,t,n){var a=0;t&&(a|=4),vh(n,e,a,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Xr(e){if(!e[fu]){e[fu]=!0,cc.forEach(function(n){n!=="selectionchange"&&(cy.has(n)||Qr(n,!1,e),Qr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,Qr("selectionchange",!1,t))}}function vh(e,t,n,a){switch($h(t)){case 2:var u=Uy;break;case 8:u=Hy;break;default:u=uo}n=u.bind(null,t,n,e),u=void 0,!ps||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Zr(e,t,n,a,u){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var v=a.stateNode.containerInfo;if(v===u)break;if(m===4)for(m=a.return;m!==null;){var x=m.tag;if((x===3||x===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;v!==null;){if(m=oa(v),m===null)return;if(x=m.tag,x===5||x===6||x===26||x===27){a=o=m;continue e}v=v.parentNode}}a=a.return}Rc(function(){var C=o,j=ds(n),H=[];e:{var z=Pc.get(e);if(z!==void 0){var k=wi,ne=e;switch(e){case"keypress":if(Ti(n)===0)break e;case"keydown":case"keyup":k=lm;break;case"focusin":ne="focus",k=vs;break;case"focusout":ne="blur",k=vs;break;case"beforeblur":case"afterblur":k=vs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Ac;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Xg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=sm;break;case Kc:case Jc:case Fc:k=Jg;break;case Wc:k=om;break;case"scroll":case"scrollend":k=Vg;break;case"wheel":k=fm;break;case"copy":case"cut":case"paste":k=Wg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Cc;break;case"toggle":case"beforetoggle":k=hm}var I=(t&4)!==0,we=!I&&(e==="scroll"||e==="scrollend"),N=I?z!==null?z+"Capture":null:z;I=[];for(var w=C,O;w!==null;){var L=w;if(O=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||O===null||N===null||(L=al(w,N),L!=null&&I.push(Bl(w,L,O))),we)break;w=w.return}0<I.length&&(z=new k(z,ne,null,n,j),H.push({event:z,listeners:I}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",z&&n!==fs&&(ne=n.relatedTarget||n.fromElement)&&(oa(ne)||ne[ra]))break e;if((k||z)&&(z=j.window===j?j:(z=j.ownerDocument)?z.defaultView||z.parentWindow:window,k?(ne=n.relatedTarget||n.toElement,k=C,ne=ne?oa(ne):null,ne!==null&&(we=f(ne),I=ne.tag,ne!==we||I!==5&&I!==27&&I!==6)&&(ne=null)):(k=null,ne=C),k!==ne)){if(I=Ac,L="onMouseLeave",N="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(I=Cc,L="onPointerLeave",N="onPointerEnter",w="pointer"),we=k==null?z:nl(k),O=ne==null?z:nl(ne),z=new I(L,w+"leave",k,n,j),z.target=we,z.relatedTarget=O,L=null,oa(j)===C&&(I=new I(N,w+"enter",ne,n,j),I.target=O,I.relatedTarget=we,L=I),we=L,k&&ne)t:{for(I=k,N=ne,w=0,O=I;O;O=Ya(O))w++;for(O=0,L=N;L;L=Ya(L))O++;for(;0<w-O;)I=Ya(I),w--;for(;0<O-w;)N=Ya(N),O--;for(;w--;){if(I===N||N!==null&&I===N.alternate)break t;I=Ya(I),N=Ya(N)}I=null}else I=null;k!==null&&bh(H,z,k,I,!1),ne!==null&&we!==null&&bh(H,we,ne,I,!0)}}e:{if(z=C?nl(C):window,k=z.nodeName&&z.nodeName.toLowerCase(),k==="select"||k==="input"&&z.type==="file")var K=Uc;else if(jc(z))if(Hc)K=Tm;else{K=xm;var oe=Sm}else k=z.nodeName,!k||k.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&cs(C.elementType)&&(K=Uc):K=Em;if(K&&(K=K(e,C))){Lc(H,K,n,j);break e}oe&&oe(e,z,C),e==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&os(z,"number",z.value)}switch(oe=C?nl(C):window,e){case"focusin":(jc(oe)||oe.contentEditable==="true")&&(ba=oe,Rs=C,fl=null);break;case"focusout":fl=Rs=ba=null;break;case"mousedown":ws=!0;break;case"contextmenu":case"mouseup":case"dragend":ws=!1,Xc(H,n,j);break;case"selectionchange":if(wm)break;case"keydown":case"keyup":Xc(H,n,j)}var J;if(Ss)e:{switch(e){case"compositionstart":var te="onCompositionStart";break e;case"compositionend":te="onCompositionEnd";break e;case"compositionupdate":te="onCompositionUpdate";break e}te=void 0}else va?Dc(e,n)&&(te="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(te="onCompositionStart");te&&(zc&&n.locale!=="ko"&&(va||te!=="onCompositionStart"?te==="onCompositionEnd"&&va&&(J=wc()):(gn=j,gs="value"in gn?gn.value:gn.textContent,va=!0)),oe=du(C,te),0<oe.length&&(te=new Oc(te,e,null,n,j),H.push({event:te,listeners:oe}),J?te.data=J:(J=Mc(n),J!==null&&(te.data=J)))),(J=gm?mm(e,n):ym(e,n))&&(te=du(C,"onBeforeInput"),0<te.length&&(oe=new Oc("onBeforeInput","beforeinput",null,n,j),H.push({event:oe,listeners:te}),oe.data=J)),sy(H,e,C,n,j)}yh(H,t)})}function Bl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function du(e,t){for(var n=t+"Capture",a=[];e!==null;){var u=e,o=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||o===null||(u=al(e,n),u!=null&&a.unshift(Bl(e,u,o)),u=al(e,t),u!=null&&a.push(Bl(e,u,o))),e.tag===3)return a;e=e.return}return[]}function Ya(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bh(e,t,n,a,u){for(var o=t._reactName,m=[];n!==null&&n!==a;){var v=n,x=v.alternate,C=v.stateNode;if(v=v.tag,x!==null&&x===a)break;v!==5&&v!==26&&v!==27||C===null||(x=C,u?(C=al(n,o),C!=null&&m.unshift(Bl(n,C,x))):u||(C=al(n,o),C!=null&&m.push(Bl(n,C,x)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var fy=/\r\n?/g,dy=/\u0000|\uFFFD/g;function Sh(e){return(typeof e=="string"?e:""+e).replace(fy,`
57
+ `).replace(dy,"")}function xh(e,t){return t=Sh(t),Sh(e)===t}function hu(){}function Re(e,t,n,a,u,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ga(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ga(e,""+a);break;case"className":vi(e,"class",a);break;case"tabIndex":vi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(e,n,a);break;case"style":Ec(e,a,o);break;case"data":if(t!=="object"){vi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=xi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Re(e,t,"name",u.name,u,null),Re(e,t,"formEncType",u.formEncType,u,null),Re(e,t,"formMethod",u.formMethod,u,null),Re(e,t,"formTarget",u.formTarget,u,null)):(Re(e,t,"encType",u.encType,u,null),Re(e,t,"method",u.method,u,null),Re(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=xi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=hu);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=xi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":fe("beforetoggle",e),fe("toggle",e),yi(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":yi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=$g.get(n)||n,yi(e,n,a))}}function Kr(e,t,n,a,u,o){switch(n){case"style":Ec(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ga(e,a):(typeof a=="number"||typeof a=="bigint")&&ga(e,""+a);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=hu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),o=e[st]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,u),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,u);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):yi(e,n,a)}}}function We(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var a=!1,u=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,o,m,n,null)}}u&&Re(e,t,"srcSet",n.srcSet,n,null),a&&Re(e,t,"src",n.src,n,null);return;case"input":fe("invalid",e);var v=o=m=u=null,x=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var j=n[a];if(j!=null)switch(a){case"name":u=j;break;case"type":m=j;break;case"checked":x=j;break;case"defaultChecked":C=j;break;case"value":o=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:Re(e,t,a,j,n,null)}}vc(e,o,v,x,C,m,u,!1),bi(e);return;case"select":fe("invalid",e),a=m=o=null;for(u in n)if(n.hasOwnProperty(u)&&(v=n[u],v!=null))switch(u){case"value":o=v;break;case"defaultValue":m=v;break;case"multiple":a=v;default:Re(e,t,u,v,n,null)}t=o,n=m,e.multiple=!!a,t!=null?pa(e,!!a,t,!1):n!=null&&pa(e,!!a,n,!0);return;case"textarea":fe("invalid",e),o=u=a=null;for(m in n)if(n.hasOwnProperty(m)&&(v=n[m],v!=null))switch(m){case"value":a=v;break;case"defaultValue":u=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:Re(e,t,m,v,n,null)}Sc(e,a,u,o),bi(e);return;case"option":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,x,a,n,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(a=0;a<Hl.length;a++)fe(Hl[a],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,C,a,n,null)}return;default:if(cs(t)){for(j in n)n.hasOwnProperty(j)&&(a=n[j],a!==void 0&&Kr(e,t,j,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Re(e,t,v,a,n,null))}function hy(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,o=null,m=null,v=null,x=null,C=null,j=null;for(k in n){var H=n[k];if(n.hasOwnProperty(k)&&H!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":x=H;default:a.hasOwnProperty(k)||Re(e,t,k,null,a,H)}}for(var z in a){var k=a[z];if(H=n[z],a.hasOwnProperty(z)&&(k!=null||H!=null))switch(z){case"type":o=k;break;case"name":u=k;break;case"checked":C=k;break;case"defaultChecked":j=k;break;case"value":m=k;break;case"defaultValue":v=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:k!==H&&Re(e,t,z,k,a,H)}}rs(e,m,v,x,C,j,o,u);return;case"select":k=m=v=z=null;for(o in n)if(x=n[o],n.hasOwnProperty(o)&&x!=null)switch(o){case"value":break;case"multiple":k=x;default:a.hasOwnProperty(o)||Re(e,t,o,null,a,x)}for(u in a)if(o=a[u],x=n[u],a.hasOwnProperty(u)&&(o!=null||x!=null))switch(u){case"value":z=o;break;case"defaultValue":v=o;break;case"multiple":m=o;default:o!==x&&Re(e,t,u,o,a,x)}t=v,n=m,a=k,z!=null?pa(e,!!n,z,!1):!!a!=!!n&&(t!=null?pa(e,!!n,t,!0):pa(e,!!n,n?[]:"",!1));return;case"textarea":k=z=null;for(v in n)if(u=n[v],n.hasOwnProperty(v)&&u!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Re(e,t,v,null,a,u)}for(m in a)if(u=a[m],o=n[m],a.hasOwnProperty(m)&&(u!=null||o!=null))switch(m){case"value":z=u;break;case"defaultValue":k=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==o&&Re(e,t,m,u,a,o)}bc(e,z,k);return;case"option":for(var ne in n)if(z=n[ne],n.hasOwnProperty(ne)&&z!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Re(e,t,ne,null,a,z)}for(x in a)if(z=a[x],k=n[x],a.hasOwnProperty(x)&&z!==k&&(z!=null||k!=null))switch(x){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Re(e,t,x,z,a,k)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var I in n)z=n[I],n.hasOwnProperty(I)&&z!=null&&!a.hasOwnProperty(I)&&Re(e,t,I,null,a,z);for(C in a)if(z=a[C],k=n[C],a.hasOwnProperty(C)&&z!==k&&(z!=null||k!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:Re(e,t,C,z,a,k)}return;default:if(cs(t)){for(var we in n)z=n[we],n.hasOwnProperty(we)&&z!==void 0&&!a.hasOwnProperty(we)&&Kr(e,t,we,void 0,a,z);for(j in a)z=a[j],k=n[j],!a.hasOwnProperty(j)||z===k||z===void 0&&k===void 0||Kr(e,t,j,z,a,k);return}}for(var N in n)z=n[N],n.hasOwnProperty(N)&&z!=null&&!a.hasOwnProperty(N)&&Re(e,t,N,null,a,z);for(H in a)z=a[H],k=n[H],!a.hasOwnProperty(H)||z===k||z==null&&k==null||Re(e,t,H,z,a,k)}var Jr=null,Fr=null;function pu(e){return e.nodeType===9?e:e.ownerDocument}function Eh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Th(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Wr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pr=null;function py(){var e=window.event;return e&&e.type==="popstate"?e===Pr?!1:(Pr=e,!0):(Pr=null,!1)}var Rh=typeof setTimeout=="function"?setTimeout:void 0,gy=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,my=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(yy)}:Rh;function yy(e){setTimeout(function(){throw e})}function kn(e){return e==="head"}function Nh(e,t){var n=t,a=0,u=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(0<a&&8>a){n=a;var m=e.ownerDocument;if(n&1&&ql(m.documentElement),n&2&&ql(m.body),n&4)for(n=m.head,ql(n),m=n.firstChild;m;){var v=m.nextSibling,x=m.nodeName;m[tl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&m.rel.toLowerCase()==="stylesheet"||n.removeChild(m),m=v}}if(u===0){e.removeChild(o),Kl(t);return}u--}else n==="$"||n==="$?"||n==="$!"?u++:a=n.charCodeAt(0)-48;else a=0;n=o}while(n);Kl(t)}function Ir(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ir(n),ls(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function vy(e,t,n,a){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[tl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=jt(e.nextSibling),e===null)break}return null}function by(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=jt(e.nextSibling),e===null))return null;return e}function eo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Sy(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function jt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var to=null;function Ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function Oh(e,t,n){switch(t=pu(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function ql(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ls(e)}var kt=new Map,Ch=new Set;function gu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sn=$.d;$.d={f:xy,r:Ey,D:Ty,C:Ry,L:wy,m:Ny,X:Oy,S:Ay,M:Cy};function xy(){var e=sn.f(),t=uu();return e||t}function Ey(e){var t=ca(e);t!==null&&t.tag===5&&t.type==="form"?Jf(t):sn.r(e)}var Va=typeof document>"u"?null:document;function zh(e,t,n){var a=Va;if(a&&typeof t=="string"&&t){var u=Rt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Ch.has(u)||(Ch.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),We(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Ty(e){sn.D(e),zh("dns-prefetch",e,null)}function Ry(e,t){sn.C(e,t),zh("preconnect",e,t)}function wy(e,t,n){sn.L(e,t,n);var a=Va;if(a&&e&&t){var u='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Rt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Rt(n.imageSizes)+'"]')):u+='[href="'+Rt(e)+'"]';var o=u;switch(t){case"style":o=Qa(e);break;case"script":o=Xa(e)}kt.has(o)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),kt.set(o,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(Gl(o))||t==="script"&&a.querySelector($l(o))||(t=a.createElement("link"),We(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Ny(e,t){sn.m(e,t);var n=Va;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Rt(a)+'"][href="'+Rt(e)+'"]',o=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Xa(e)}if(!kt.has(o)&&(e=y({rel:"modulepreload",href:e},t),kt.set(o,e),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($l(o)))return}a=n.createElement("link"),We(a,"link",e),Qe(a),n.head.appendChild(a)}}}function Ay(e,t,n){sn.S(e,t,n);var a=Va;if(a&&e){var u=fa(a).hoistableStyles,o=Qa(e);t=t||"default";var m=u.get(o);if(!m){var v={loading:0,preload:null};if(m=a.querySelector(Gl(o)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kt.get(o))&&no(e,n);var x=m=a.createElement("link");Qe(x),We(x,"link",e),x._p=new Promise(function(C,j){x.onload=C,x.onerror=j}),x.addEventListener("load",function(){v.loading|=1}),x.addEventListener("error",function(){v.loading|=2}),v.loading|=4,mu(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:v},u.set(o,m)}}}function Oy(e,t){sn.X(e,t);var n=Va;if(n&&e){var a=fa(n).hoistableScripts,u=Xa(e),o=a.get(u);o||(o=n.querySelector($l(u)),o||(e=y({src:e,async:!0},t),(t=kt.get(u))&&ao(e,t),o=n.createElement("script"),Qe(o),We(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function Cy(e,t){sn.M(e,t);var n=Va;if(n&&e){var a=fa(n).hoistableScripts,u=Xa(e),o=a.get(u);o||(o=n.querySelector($l(u)),o||(e=y({src:e,async:!0,type:"module"},t),(t=kt.get(u))&&ao(e,t),o=n.createElement("script"),Qe(o),We(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function kh(e,t,n,a){var u=(u=ue.current)?gu(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Qa(n.href),n=fa(u).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Qa(n.href);var o=fa(u).hoistableStyles,m=o.get(e);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=u.querySelector(Gl(e)))&&!o._p&&(m.instance=o,m.state.loading=5),kt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},kt.set(e,n),o||zy(u,e,n,m.state))),t&&a===null)throw Error(r(528,""));return m}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Xa(n),n=fa(u).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Qa(e){return'href="'+Rt(e)+'"'}function Gl(e){return'link[rel="stylesheet"]['+e+"]"}function _h(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function zy(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),We(t,"link",n),Qe(t),e.head.appendChild(t))}function Xa(e){return'[src="'+Rt(e)+'"]'}function $l(e){return"script[async]"+e}function Dh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Rt(n.href)+'"]');if(a)return t.instance=a,Qe(a),a;var u=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),We(a,"style",u),mu(a,n.precedence,e),t.instance=a;case"stylesheet":u=Qa(n.href);var o=e.querySelector(Gl(u));if(o)return t.state.loading|=4,t.instance=o,Qe(o),o;a=_h(n),(u=kt.get(u))&&no(a,u),o=(e.ownerDocument||e).createElement("link"),Qe(o);var m=o;return m._p=new Promise(function(v,x){m.onload=v,m.onerror=x}),We(o,"link",a),t.state.loading|=4,mu(o,n.precedence,e),t.instance=o;case"script":return o=Xa(n.src),(u=e.querySelector($l(o)))?(t.instance=u,Qe(u),u):(a=n,(u=kt.get(o))&&(a=y({},n),ao(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),Qe(u),We(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,mu(a,n.precedence,e));return t.instance}function mu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,o=u,m=0;m<a.length;m++){var v=a[m];if(v.dataset.precedence===t)o=v;else if(o!==u)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function no(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ao(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var yu=null;function Mh(e,t,n){if(yu===null){var a=new Map,u=yu=new Map;u.set(n,a)}else u=yu,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var o=n[u];if(!(o[tl]||o[Pe]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var v=a.get(m);v?v.push(o):a.set(m,[o])}}return a}function jh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ky(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Lh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Yl=null;function _y(){}function Dy(e,t,n){if(Yl===null)throw Error(r(475));var a=Yl;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Qa(n.href),o=e.querySelector(Gl(u));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=vu.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=o,Qe(o);return}o=e.ownerDocument||e,n=_h(n),(u=kt.get(u))&&no(n,u),o=o.createElement("link"),Qe(o);var m=o;m._p=new Promise(function(v,x){m.onload=v,m.onerror=x}),We(o,"link",n),t.instance=o}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=vu.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function My(){if(Yl===null)throw Error(r(475));var e=Yl;return e.stylesheets&&e.count===0&&lo(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&lo(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function vu(){if(this.count--,this.count===0){if(this.stylesheets)lo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bu=null;function lo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bu=new Map,t.forEach(jy,e),bu=null,vu.call(e))}function jy(e,t){if(!(t.state.loading&4)){var n=bu.get(e);if(n)var a=n.get(null);else{n=new Map,bu.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<u.length;o++){var m=u[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}u=t.instance,m=u.getAttribute("data-precedence"),o=n.get(m)||a,o===a&&n.set(null,u),n.set(m,u),this.count++,a=vu.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),o?o.parentNode.insertBefore(u,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Vl={$$typeof:X,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Ly(e,t,n,a,u,o,m,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=es(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=es(0),this.hiddenUpdates=es(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Uh(e,t,n,a,u,o,m,v,x,C,j,H){return e=new Ly(e,t,n,m,v,x,C,H),t=1,o===!0&&(t|=24),o=mt(3,null,null,t),e.current=o,o.stateNode=e,t=Bs(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Ys(o),e}function Hh(e){return e?(e=Ta,e):Ta}function Bh(e,t,n,a,u,o){u=Hh(u),a.context===null?a.context=u:a.pendingContext=u,a=vn(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=bn(e,a,t),n!==null&&(xt(n,e,t),Sl(n,e,t))}function qh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function io(e,t){qh(e,t),(e=e.alternate)&&qh(e,t)}function Gh(e){if(e.tag===13){var t=Ea(e,67108864);t!==null&&xt(t,e,67108864),io(e,67108864)}}var Su=!0;function Uy(e,t,n,a){var u=D.T;D.T=null;var o=$.p;try{$.p=2,uo(e,t,n,a)}finally{$.p=o,D.T=u}}function Hy(e,t,n,a){var u=D.T;D.T=null;var o=$.p;try{$.p=8,uo(e,t,n,a)}finally{$.p=o,D.T=u}}function uo(e,t,n,a){if(Su){var u=so(a);if(u===null)Zr(e,t,a,xu,n),Yh(e,a);else if(qy(u,e,t,n,a))a.stopPropagation();else if(Yh(e,a),t&4&&-1<By.indexOf(e)){for(;u!==null;){var o=ca(u);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=Bn(o.pendingLanes);if(m!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;m;){var x=1<<31-pt(m);v.entanglements[1]|=x,m&=~x}Yt(o),(Se&6)===0&&(lu=Ht()+500,Ul(0))}}break;case 13:v=Ea(o,2),v!==null&&xt(v,o,2),uu(),io(o,2)}if(o=so(a),o===null&&Zr(e,t,a,xu,n),o===u)break;u=o}u!==null&&a.stopPropagation()}else Zr(e,t,a,null,n)}}function so(e){return e=ds(e),ro(e)}var xu=null;function ro(e){if(xu=null,e=oa(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xu=e,null}function $h(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rg()){case tc:return 2;case nc:return 8;case hi:case wg:return 32;case ac:return 268435456;default:return 32}default:return 32}}var oo=!1,_n=null,Dn=null,Mn=null,Ql=new Map,Xl=new Map,jn=[],By="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yh(e,t){switch(e){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":Ql.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xl.delete(t.pointerId)}}function Zl(e,t,n,a,u,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[u]},t!==null&&(t=ca(t),t!==null&&Gh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function qy(e,t,n,a,u){switch(t){case"focusin":return _n=Zl(_n,e,t,n,a,u),!0;case"dragenter":return Dn=Zl(Dn,e,t,n,a,u),!0;case"mouseover":return Mn=Zl(Mn,e,t,n,a,u),!0;case"pointerover":var o=u.pointerId;return Ql.set(o,Zl(Ql.get(o)||null,e,t,n,a,u)),!0;case"gotpointercapture":return o=u.pointerId,Xl.set(o,Zl(Xl.get(o)||null,e,t,n,a,u)),!0}return!1}function Vh(e){var t=oa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Dg(e.priority,function(){if(n.tag===13){var a=St();a=ts(a);var u=Ea(n,a);u!==null&&xt(u,n,a),io(n,a)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Eu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=so(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);fs=a,n.target.dispatchEvent(a),fs=null}else return t=ca(n),t!==null&&Gh(t),e.blockedOn=n,!1;t.shift()}return!0}function Qh(e,t,n){Eu(e)&&n.delete(t)}function Gy(){oo=!1,_n!==null&&Eu(_n)&&(_n=null),Dn!==null&&Eu(Dn)&&(Dn=null),Mn!==null&&Eu(Mn)&&(Mn=null),Ql.forEach(Qh),Xl.forEach(Qh)}function Tu(e,t){e.blockedOn===t&&(e.blockedOn=null,oo||(oo=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Gy)))}var Ru=null;function Xh(e){Ru!==e&&(Ru=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ru===e&&(Ru=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(ro(a||n)===null)continue;break}var o=ca(n);o!==null&&(e.splice(t,3),t-=3,rr(o,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function Kl(e){function t(x){return Tu(x,e)}_n!==null&&Tu(_n,e),Dn!==null&&Tu(Dn,e),Mn!==null&&Tu(Mn,e),Ql.forEach(t),Xl.forEach(t);for(var n=0;n<jn.length;n++){var a=jn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<jn.length&&(n=jn[0],n.blockedOn===null);)Vh(n),n.blockedOn===null&&jn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],o=n[a+1],m=u[st]||null;if(typeof o=="function")m||Xh(n);else if(m){var v=null;if(o&&o.hasAttribute("formAction")){if(u=o,m=o[st]||null)v=m.formAction;else if(ro(u)!==null)continue}else v=m.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),Xh(n)}}}function co(e){this._internalRoot=e}wu.prototype.render=co.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=St();Bh(n,a,e,t,null,null)},wu.prototype.unmount=co.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bh(e.current,2,null,e,null,null),uu(),t[ra]=null}};function wu(e){this._internalRoot=e}wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=rc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jn.length&&t!==0&&t<jn[n].priority;n++);jn.splice(n,0,e),n===0&&Vh(e)}};var Zh=l.version;if(Zh!=="19.1.0")throw Error(r(527,Zh,"19.1.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?d(e):null,e=e===null?null:e.stateNode,e};var $y={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{Pa=Nu.inject($y),ht=Nu}catch{}}return Wl.createRoot=function(e,t){if(!c(e))throw Error(r(299));var n=!1,a="",u=od,o=cd,m=fd,v=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(v=t.unstable_transitionCallbacks)),t=Uh(e,1,!1,null,null,n,a,u,o,m,v,null),e[ra]=t.current,Xr(e),new co(t)},Wl.hydrateRoot=function(e,t,n){if(!c(e))throw Error(r(299));var a=!1,u="",o=od,m=cd,v=fd,x=null,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(x=n.unstable_transitionCallbacks),n.formState!==void 0&&(C=n.formState)),t=Uh(e,1,!0,t,n??null,a,u,o,m,v,x,C),t.context=Hh(null),n=t.current,a=St(),a=ts(a),u=vn(a),u.callback=null,bn(n,u,a),n=a,t.current.lanes=n,el(t,n),Yt(t),e[ra]=t.current,Xr(e),new wu(t)},Wl.version="19.1.0",Wl}var bp;function nS(){if(bp)return go.exports;bp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),go.exports=tS(),go.exports}var aS=nS();const lS=Up(aS);var Pl={},Sp;function iS(){if(Sp)return Pl;Sp=1,Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.parse=p,Pl.serialize=d;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,c=Object.prototype.toString,f=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function p(b,_){const T=new f,M=b.length;if(M<2)return T;const G=(_==null?void 0:_.decode)||y;let B=0;do{const q=b.indexOf("=",B);if(q===-1)break;const X=b.indexOf(";",B),F=X===-1?M:X;if(q>F){B=b.lastIndexOf(";",q-1)+1;continue}const Z=h(b,B,q),de=g(b,q,Z),le=b.slice(Z,de);if(T[le]===void 0){let ie=h(b,q+1,F),Q=g(b,F,ie);const ee=G(b.slice(ie,Q));T[le]=ee}B=F+1}while(B<M);return T}function h(b,_,T){do{const M=b.charCodeAt(_);if(M!==32&&M!==9)return _}while(++_<T);return T}function g(b,_,T){for(;_>T;){const M=b.charCodeAt(--_);if(M!==32&&M!==9)return _+1}return T}function d(b,_,T){const M=(T==null?void 0:T.encode)||encodeURIComponent;if(!i.test(b))throw new TypeError(`argument name is invalid: ${b}`);const G=M(_);if(!l.test(G))throw new TypeError(`argument val is invalid: ${_}`);let B=b+"="+G;if(!T)return B;if(T.maxAge!==void 0){if(!Number.isInteger(T.maxAge))throw new TypeError(`option maxAge is invalid: ${T.maxAge}`);B+="; Max-Age="+T.maxAge}if(T.domain){if(!s.test(T.domain))throw new TypeError(`option domain is invalid: ${T.domain}`);B+="; Domain="+T.domain}if(T.path){if(!r.test(T.path))throw new TypeError(`option path is invalid: ${T.path}`);B+="; Path="+T.path}if(T.expires){if(!S(T.expires)||!Number.isFinite(T.expires.valueOf()))throw new TypeError(`option expires is invalid: ${T.expires}`);B+="; Expires="+T.expires.toUTCString()}if(T.httpOnly&&(B+="; HttpOnly"),T.secure&&(B+="; Secure"),T.partitioned&&(B+="; Partitioned"),T.priority)switch(typeof T.priority=="string"?T.priority.toLowerCase():void 0){case"low":B+="; Priority=Low";break;case"medium":B+="; Priority=Medium";break;case"high":B+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${T.priority}`)}if(T.sameSite)switch(typeof T.sameSite=="string"?T.sameSite.toLowerCase():T.sameSite){case!0:case"strict":B+="; SameSite=Strict";break;case"lax":B+="; SameSite=Lax";break;case"none":B+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${T.sameSite}`)}return B}function y(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function S(b){return c.call(b)==="[object Date]"}return Pl}iS();var xp="popstate";function uS(i={}){function l(c,f){let{pathname:p="/",search:h="",hash:g=""}=ia(c.location.hash.substring(1));return!p.startsWith("/")&&!p.startsWith(".")&&(p="/"+p),zo("",{pathname:p,search:h,hash:g},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(c,f){let p=c.document.querySelector("base"),h="";if(p&&p.getAttribute("href")){let g=c.location.href,d=g.indexOf("#");h=d===-1?g:g.slice(0,d)}return h+"#"+(typeof f=="string"?f:ui(f))}function r(c,f){_t(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return rS(l,s,r,i)}function _e(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}function _t(i,l){if(!i){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function sS(){return Math.random().toString(36).substring(2,10)}function Ep(i,l){return{usr:i.state,key:i.key,idx:l}}function zo(i,l,s=null,r){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof l=="string"?ia(l):l,state:s,key:l&&l.key||r||sS()}}function ui({pathname:i="/",search:l="",hash:s=""}){return l&&l!=="?"&&(i+=l.charAt(0)==="?"?l:"?"+l),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function ia(i){let l={};if(i){let s=i.indexOf("#");s>=0&&(l.hash=i.substring(s),i=i.substring(0,s));let r=i.indexOf("?");r>=0&&(l.search=i.substring(r),i=i.substring(0,r)),i&&(l.pathname=i)}return l}function rS(i,l,s,r={}){let{window:c=document.defaultView,v5Compat:f=!1}=r,p=c.history,h="POP",g=null,d=y();d==null&&(d=0,p.replaceState({...p.state,idx:d},""));function y(){return(p.state||{idx:null}).idx}function S(){h="POP";let G=y(),B=G==null?null:G-d;d=G,g&&g({action:h,location:M.location,delta:B})}function b(G,B){h="PUSH";let q=zo(M.location,G,B);s&&s(q,G),d=y()+1;let X=Ep(q,d),F=M.createHref(q);try{p.pushState(X,"",F)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;c.location.assign(F)}f&&g&&g({action:h,location:M.location,delta:1})}function _(G,B){h="REPLACE";let q=zo(M.location,G,B);s&&s(q,G),d=y();let X=Ep(q,d),F=M.createHref(q);p.replaceState(X,"",F),f&&g&&g({action:h,location:M.location,delta:0})}function T(G){return oS(G)}let M={get action(){return h},get location(){return i(c,p)},listen(G){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(xp,S),g=G,()=>{c.removeEventListener(xp,S),g=null}},createHref(G){return l(c,G)},createURL:T,encodeLocation(G){let B=T(G);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:b,replace:_,go(G){return p.go(G)}};return M}function oS(i,l=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),_e(s,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:ui(i);return r=r.replace(/ $/,"%20"),!l&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function Yp(i,l,s="/"){return cS(i,l,s,!1)}function cS(i,l,s,r){let c=typeof l=="string"?ia(l):l,f=fn(c.pathname||"/",s);if(f==null)return null;let p=Vp(i);fS(p);let h=null;for(let g=0;h==null&&g<p.length;++g){let d=ES(f);h=SS(p[g],d,r)}return h}function Vp(i,l=[],s=[],r=""){let c=(f,p,h)=>{let g={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};g.relativePath.startsWith("/")&&(_e(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length));let d=cn([r,g.relativePath]),y=s.concat(g);f.children&&f.children.length>0&&(_e(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Vp(f.children,l,y,d)),!(f.path==null&&!f.index)&&l.push({path:d,score:vS(d,f.index),routesMeta:y})};return i.forEach((f,p)=>{var h;if(f.path===""||!((h=f.path)!=null&&h.includes("?")))c(f,p);else for(let g of Qp(f.path))c(f,p,g)}),l}function Qp(i){let l=i.split("/");if(l.length===0)return[];let[s,...r]=l,c=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return c?[f,""]:[f];let p=Qp(r.join("/")),h=[];return h.push(...p.map(g=>g===""?f:[f,g].join("/"))),c&&h.push(...p),h.map(g=>i.startsWith("/")&&g===""?"/":g)}function fS(i){i.sort((l,s)=>l.score!==s.score?s.score-l.score:bS(l.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var dS=/^:[\w-]+$/,hS=3,pS=2,gS=1,mS=10,yS=-2,Tp=i=>i==="*";function vS(i,l){let s=i.split("/"),r=s.length;return s.some(Tp)&&(r+=yS),l&&(r+=pS),s.filter(c=>!Tp(c)).reduce((c,f)=>c+(dS.test(f)?hS:f===""?gS:mS),r)}function bS(i,l){return i.length===l.length&&i.slice(0,-1).every((r,c)=>r===l[c])?i[i.length-1]-l[l.length-1]:0}function SS(i,l,s=!1){let{routesMeta:r}=i,c={},f="/",p=[];for(let h=0;h<r.length;++h){let g=r[h],d=h===r.length-1,y=f==="/"?l:l.slice(f.length)||"/",S=Bu({path:g.relativePath,caseSensitive:g.caseSensitive,end:d},y),b=g.route;if(!S&&d&&s&&!r[r.length-1].route.index&&(S=Bu({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},y)),!S)return null;Object.assign(c,S.params),p.push({params:c,pathname:cn([f,S.pathname]),pathnameBase:NS(cn([f,S.pathnameBase])),route:b}),S.pathnameBase!=="/"&&(f=cn([f,S.pathnameBase]))}return p}function Bu(i,l){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[s,r]=xS(i.path,i.caseSensitive,i.end),c=l.match(s);if(!c)return null;let f=c[0],p=f.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:r.reduce((d,{paramName:y,isOptional:S},b)=>{if(y==="*"){let T=h[b]||"";p=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const _=h[b];return S&&!_?d[y]=void 0:d[y]=(_||"").replace(/%2F/g,"/"),d},{}),pathname:f,pathnameBase:p,pattern:i}}function xS(i,l=!1,s=!0){_t(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],c="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,h,g)=>(r.push({paramName:h,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(r.push({paramName:"*"}),c+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":i!==""&&i!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),r]}function ES(i){try{return i.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return _t(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),i}}function fn(i,l){if(l==="/")return i;if(!i.toLowerCase().startsWith(l.toLowerCase()))return null;let s=l.endsWith("/")?l.length-1:l.length,r=i.charAt(s);return r&&r!=="/"?null:i.slice(s)||"/"}function TS(i,l="/"){let{pathname:s,search:r="",hash:c=""}=typeof i=="string"?ia(i):i;return{pathname:s?s.startsWith("/")?s:RS(s,l):l,search:AS(r),hash:OS(c)}}function RS(i,l){let s=l.replace(/\/+$/,"").split("/");return i.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function bo(i,l,s,r){return`Cannot include a '${i}' character in a manually specified \`to.${l}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wS(i){return i.filter((l,s)=>s===0||l.route.path&&l.route.path.length>0)}function Uo(i){let l=wS(i);return l.map((s,r)=>r===l.length-1?s.pathname:s.pathnameBase)}function Ho(i,l,s,r=!1){let c;typeof i=="string"?c=ia(i):(c={...i},_e(!c.pathname||!c.pathname.includes("?"),bo("?","pathname","search",c)),_e(!c.pathname||!c.pathname.includes("#"),bo("#","pathname","hash",c)),_e(!c.search||!c.search.includes("#"),bo("#","search","hash",c)));let f=i===""||c.pathname==="",p=f?"/":c.pathname,h;if(p==null)h=s;else{let S=l.length-1;if(!r&&p.startsWith("..")){let b=p.split("/");for(;b[0]==="..";)b.shift(),S-=1;c.pathname=b.join("/")}h=S>=0?l[S]:"/"}let g=TS(c,h),d=p&&p!=="/"&&p.endsWith("/"),y=(f||p===".")&&s.endsWith("/");return!g.pathname.endsWith("/")&&(d||y)&&(g.pathname+="/"),g}var cn=i=>i.join("/").replace(/\/\/+/g,"/"),NS=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),AS=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,OS=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function CS(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var Xp=["POST","PUT","PATCH","DELETE"];new Set(Xp);var zS=["GET",...Xp];new Set(zS);var Ja=A.createContext(null);Ja.displayName="DataRouter";var Qu=A.createContext(null);Qu.displayName="DataRouterState";var Zp=A.createContext({isTransitioning:!1});Zp.displayName="ViewTransition";var kS=A.createContext(new Map);kS.displayName="Fetchers";var _S=A.createContext(null);_S.displayName="Await";var Lt=A.createContext(null);Lt.displayName="Navigation";var ri=A.createContext(null);ri.displayName="Location";var Ut=A.createContext({outlet:null,matches:[],isDataRoute:!1});Ut.displayName="Route";var Bo=A.createContext(null);Bo.displayName="RouteError";function DS(i,{relative:l}={}){_e(Fa(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=A.useContext(Lt),{hash:c,pathname:f,search:p}=oi(i,{relative:l}),h=f;return s!=="/"&&(h=f==="/"?s:cn([s,f])),r.createHref({pathname:h,search:p,hash:c})}function Fa(){return A.useContext(ri)!=null}function Hn(){return _e(Fa(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(ri).location}var Kp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jp(i){A.useContext(Lt).static||A.useLayoutEffect(i)}function Wa(){let{isDataRoute:i}=A.useContext(Ut);return i?ZS():MS()}function MS(){_e(Fa(),"useNavigate() may be used only in the context of a <Router> component.");let i=A.useContext(Ja),{basename:l,navigator:s}=A.useContext(Lt),{matches:r}=A.useContext(Ut),{pathname:c}=Hn(),f=JSON.stringify(Uo(r)),p=A.useRef(!1);return Jp(()=>{p.current=!0}),A.useCallback((g,d={})=>{if(_t(p.current,Kp),!p.current)return;if(typeof g=="number"){s.go(g);return}let y=Ho(g,JSON.parse(f),c,d.relative==="path");i==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:cn([l,y.pathname])),(d.replace?s.replace:s.push)(y,d.state,d)},[l,s,f,c,i])}A.createContext(null);function jS(){let{matches:i}=A.useContext(Ut),l=i[i.length-1];return l?l.params:{}}function oi(i,{relative:l}={}){let{matches:s}=A.useContext(Ut),{pathname:r}=Hn(),c=JSON.stringify(Uo(s));return A.useMemo(()=>Ho(i,JSON.parse(c),r,l==="path"),[i,c,r,l])}function LS(i,l){return Fp(i,l)}function Fp(i,l,s,r){var B;_e(Fa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=A.useContext(Lt),{matches:f}=A.useContext(Ut),p=f[f.length-1],h=p?p.params:{},g=p?p.pathname:"/",d=p?p.pathnameBase:"/",y=p&&p.route;{let q=y&&y.path||"";Wp(g,!y||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
173
58
 
174
- Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let S=Hn(),b;if(l){let q=typeof l=="string"?ia(l):l;_e(d==="/"||((B=q.pathname)==null?void 0:B.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${q.pathname}" was given in the \`location\` prop.`),b=q}else b=S;let _=b.pathname||"/",T=_;if(d!=="/"){let q=d.replace(/^\//,"").split("/");T="/"+_.replace(/^\//,"").split("/").slice(q.length).join("/")}let j=Yp(i,{pathname:T});_t(v||j!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),_t(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let G=GS(j&&j.map(q=>Object.assign({},q,{params:Object.assign({},h,q.params),pathname:cn([d,c.encodeLocation?c.encodeLocation(q.pathname).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?d:cn([d,c.encodeLocation?c.encodeLocation(q.pathnameBase).pathname:q.pathnameBase])})),f,u,r);return l&&G?O.createElement(ri.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},G):G}function US(){let i=XS(),l=CS(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),u=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:f},"ErrorBoundary")," or"," ",O.createElement("code",{style:f},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},l),u?O.createElement("pre",{style:c},u):null,p)}var HS=O.createElement(US,null),BS=class extends O.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,l){return l.location!==i.location||l.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:l.error,location:l.location,revalidation:i.revalidation||l.revalidation}}componentDidCatch(i,l){console.error("React Router caught the following error during render",i,l)}render(){return this.state.error!==void 0?O.createElement(Ut.Provider,{value:this.props.routeContext},O.createElement(Bo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qS({routeContext:i,match:l,children:u}){let r=O.useContext(Ja);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),O.createElement(Ut.Provider,{value:i},u)}function GS(i,l=[],u=null,r=null){if(i==null){if(!u)return null;if(u.errors)i=u.matches;else if(l.length===0&&!u.initialized&&u.matches.length>0)i=u.matches;else return null}let c=i,f=u==null?void 0:u.errors;if(f!=null){let g=c.findIndex(d=>d.route.id&&(f==null?void 0:f[d.route.id])!==void 0);_e(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let p=!1,h=-1;if(u)for(let g=0;g<c.length;g++){let d=c[g];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(h=g),d.route.id){let{loaderData:v,errors:S}=u,b=d.route.loader&&!v.hasOwnProperty(d.route.id)&&(!S||S[d.route.id]===void 0);if(d.route.lazy||b){p=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}return c.reduceRight((g,d,v)=>{let S,b=!1,_=null,T=null;u&&(S=f&&d.route.id?f[d.route.id]:void 0,_=d.route.errorElement||HS,p&&(h<0&&v===0?(Pp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,T=null):h===v&&(b=!0,T=d.route.hydrateFallbackElement||null)));let j=l.concat(c.slice(0,v+1)),G=()=>{let B;return S?B=_:b?B=T:d.route.Component?B=O.createElement(d.route.Component,null):d.route.element?B=d.route.element:B=g,O.createElement(qS,{match:d,routeContext:{outlet:g,matches:j,isDataRoute:u!=null},children:B})};return u&&(d.route.ErrorBoundary||d.route.errorElement||v===0)?O.createElement(BS,{location:u.location,revalidation:u.revalidation,component:_,error:S,children:G(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):G()},null)}function qo(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $S(i){let l=O.useContext(Ja);return _e(l,qo(i)),l}function YS(i){let l=O.useContext(Qs);return _e(l,qo(i)),l}function VS(i){let l=O.useContext(Ut);return _e(l,qo(i)),l}function Go(i){let l=VS(i),u=l.matches[l.matches.length-1];return _e(u.route.id,`${i} can only be used on routes that contain a unique "id"`),u.route.id}function QS(){return Go("useRouteId")}function XS(){var r;let i=O.useContext(Bo),l=YS("useRouteError"),u=Go("useRouteError");return i!==void 0?i:(r=l.errors)==null?void 0:r[u]}function ZS(){let{router:i}=$S("useNavigate"),l=Go("useNavigate"),u=O.useRef(!1);return Jp(()=>{u.current=!0}),O.useCallback(async(c,f={})=>{_t(u.current,Kp),u.current&&(typeof c=="number"?i.navigate(c):await i.navigate(c,{fromRouteId:l,...f}))},[i,l])}var Rp={};function Pp(i,l,u){!l&&!Rp[i]&&(Rp[i]=!0,_t(!1,u))}O.memo(KS);function KS({routes:i,future:l,state:u}){return Fp(i,void 0,u,l)}function JS({to:i,replace:l,state:u,relative:r}){_e(Fa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=O.useContext(Lt);_t(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=O.useContext(Ut),{pathname:p}=Hn(),h=Pa(),g=Ho(i,Uo(f),p,r==="path"),d=JSON.stringify(g);return O.useEffect(()=>{h(JSON.parse(d),{replace:l,state:u,relative:r})},[h,d,r,l,u]),null}function zs(i){_e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function FS({basename:i="/",children:l=null,location:u,navigationType:r="POP",navigator:c,static:f=!1}){_e(!Fa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),h=O.useMemo(()=>({basename:p,navigator:c,static:f,future:{}}),[p,c,f]);typeof u=="string"&&(u=ia(u));let{pathname:g="/",search:d="",hash:v="",state:S=null,key:b="default"}=u,_=O.useMemo(()=>{let T=fn(g,p);return T==null?null:{location:{pathname:T,search:d,hash:v,state:S,key:b},navigationType:r}},[p,g,d,v,S,b,r]);return _t(_!=null,`<Router basename="${p}"> is not able to match the URL "${g}${d}${v}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:O.createElement(Lt.Provider,{value:h},O.createElement(ri.Provider,{children:l,value:_}))}function PS({children:i,location:l}){return LS(zo(i),l)}function zo(i,l=[]){let u=[];return O.Children.forEach(i,(r,c)=>{if(!O.isValidElement(r))return;let f=[...l,c];if(r.type===O.Fragment){u.push.apply(u,zo(r.props.children,f));return}_e(r.type===zs,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!r.props.index||!r.props.children,"An index route cannot have child routes.");let p={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(p.children=zo(r.props.children,f)),u.push(p)}),u}var _s="get",Ds="application/x-www-form-urlencoded";function Xs(i){return i!=null&&typeof i.tagName=="string"}function WS(i){return Xs(i)&&i.tagName.toLowerCase()==="button"}function IS(i){return Xs(i)&&i.tagName.toLowerCase()==="form"}function e1(i){return Xs(i)&&i.tagName.toLowerCase()==="input"}function t1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function n1(i,l){return i.button===0&&(!l||l==="_self")&&!t1(i)}var As=null;function a1(){if(As===null)try{new FormData(document.createElement("form"),0),As=!1}catch{As=!0}return As}var l1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function So(i){return i!=null&&!l1.has(i)?(_t(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ds}"`),null):i}function i1(i,l){let u,r,c,f,p;if(IS(i)){let h=i.getAttribute("action");r=h?fn(h,l):null,u=i.getAttribute("method")||_s,c=So(i.getAttribute("enctype"))||Ds,f=new FormData(i)}else if(WS(i)||e1(i)&&(i.type==="submit"||i.type==="image")){let h=i.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||h.getAttribute("action");if(r=g?fn(g,l):null,u=i.getAttribute("formmethod")||h.getAttribute("method")||_s,c=So(i.getAttribute("formenctype"))||So(h.getAttribute("enctype"))||Ds,f=new FormData(h,i),!a1()){let{name:d,type:v,value:S}=i;if(v==="image"){let b=d?`${d}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else d&&f.append(d,S)}}else{if(Xs(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=_s,r=null,c=Ds,p=i}return f&&c==="text/plain"&&(p=f,f=void 0),{action:r,method:u.toLowerCase(),encType:c,formData:f,body:p}}function $o(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}async function s1(i,l){if(i.id in l)return l[i.id];try{let u=await import(i.module);return l[i.id]=u,u}catch(u){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function u1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function r1(i,l,u){let r=await Promise.all(i.map(async c=>{let f=l.routes[c.route.id];if(f){let p=await s1(f,u);return p.links?p.links():[]}return[]}));return d1(r.flat(1).filter(u1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function wp(i,l,u,r,c,f){let p=(g,d)=>u[d]?g.route.id!==u[d].route.id:!0,h=(g,d)=>{var v;return u[d].pathname!==g.pathname||((v=u[d].route.path)==null?void 0:v.endsWith("*"))&&u[d].params["*"]!==g.params["*"]};return f==="assets"?l.filter((g,d)=>p(g,d)||h(g,d)):f==="data"?l.filter((g,d)=>{var S;let v=r.routes[g.route.id];if(!v||!v.hasLoader)return!1;if(p(g,d)||h(g,d))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=u[0])==null?void 0:S.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function o1(i,l,{includeHydrateFallback:u}={}){return c1(i.map(r=>{let c=l.routes[r.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),u&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function c1(i){return[...new Set(i)]}function f1(i){let l={},u=Object.keys(i).sort();for(let r of u)l[r]=i[r];return l}function d1(i,l){let u=new Set;return new Set(l),i.reduce((r,c)=>{let f=JSON.stringify(f1(c));return u.has(f)||(u.add(f),r.push({key:f,link:c})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var h1=new Set([100,101,204,205]);function p1(i,l){let u=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return u.pathname==="/"?u.pathname="_root.data":l&&fn(u.pathname,l)==="/"?u.pathname=`${l.replace(/\/$/,"")}/_root.data`:u.pathname=`${u.pathname.replace(/\/$/,"")}.data`,u}function Wp(){let i=O.useContext(Ja);return $o(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function g1(){let i=O.useContext(Qs);return $o(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Yo=O.createContext(void 0);Yo.displayName="FrameworkContext";function Ip(){let i=O.useContext(Yo);return $o(i,"You must render this element inside a <HydratedRouter> element"),i}function m1(i,l){let u=O.useContext(Yo),[r,c]=O.useState(!1),[f,p]=O.useState(!1),{onFocus:h,onBlur:g,onMouseEnter:d,onMouseLeave:v,onTouchStart:S}=l,b=O.useRef(null);O.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let j=B=>{B.forEach(q=>{p(q.isIntersecting)})},G=new IntersectionObserver(j,{threshold:.5});return b.current&&G.observe(b.current),()=>{G.disconnect()}}},[i]),O.useEffect(()=>{if(r){let j=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(j)}}},[r]);let _=()=>{c(!0)},T=()=>{c(!1),p(!1)};return u?i!=="intent"?[f,b,{}]:[f,b,{onFocus:Il(h,_),onBlur:Il(g,T),onMouseEnter:Il(d,_),onMouseLeave:Il(v,T),onTouchStart:Il(S,_)}]:[!1,b,{}]}function Il(i,l){return u=>{i&&i(u),u.defaultPrevented||l(u)}}function y1({page:i,...l}){let{router:u}=Wp(),r=O.useMemo(()=>Yp(u.routes,i,u.basename),[u.routes,i,u.basename]);return r?O.createElement(b1,{page:i,matches:r,...l}):null}function v1(i){let{manifest:l,routeModules:u}=Ip(),[r,c]=O.useState([]);return O.useEffect(()=>{let f=!1;return r1(i,l,u).then(p=>{f||c(p)}),()=>{f=!0}},[i,l,u]),r}function b1({page:i,matches:l,...u}){let r=Hn(),{manifest:c,routeModules:f}=Ip(),{basename:p}=Wp(),{loaderData:h,matches:g}=g1(),d=O.useMemo(()=>wp(i,l,g,c,r,"data"),[i,l,g,c,r]),v=O.useMemo(()=>wp(i,l,g,c,r,"assets"),[i,l,g,c,r]),S=O.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let T=new Set,j=!1;if(l.forEach(B=>{var X;let q=c.routes[B.route.id];!q||!q.hasLoader||(!d.some(F=>F.route.id===B.route.id)&&B.route.id in h&&((X=f[B.route.id])!=null&&X.shouldRevalidate)||q.hasClientLoader?j=!0:T.add(B.route.id))}),T.size===0)return[];let G=p1(i,p);return j&&T.size>0&&G.searchParams.set("_routes",l.filter(B=>T.has(B.route.id)).map(B=>B.route.id).join(",")),[G.pathname+G.search]},[p,h,r,c,d,l,i,f]),b=O.useMemo(()=>o1(v,c),[v,c]),_=v1(v);return O.createElement(O.Fragment,null,S.map(T=>O.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...u})),b.map(T=>O.createElement("link",{key:T,rel:"modulepreload",href:T,...u})),_.map(({key:T,link:j})=>O.createElement("link",{key:T,...j})))}function S1(...i){return l=>{i.forEach(u=>{typeof u=="function"?u(l):u!=null&&(u.current=l)})}}var eg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{eg&&(window.__reactRouterVersion="7.6.2")}catch{}function x1({basename:i,children:l,window:u}){let r=O.useRef();r.current==null&&(r.current=sS({window:u,v5Compat:!0}));let c=r.current,[f,p]=O.useState({action:c.action,location:c.location}),h=O.useCallback(g=>{O.startTransition(()=>p(g))},[p]);return O.useLayoutEffect(()=>c.listen(h),[c,h]),O.createElement(FS,{basename:i,children:l,location:f.location,navigationType:f.action,navigator:c})}var tg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ng=O.forwardRef(function({onClick:l,discover:u="render",prefetch:r="none",relative:c,reloadDocument:f,replace:p,state:h,target:g,to:d,preventScrollReset:v,viewTransition:S,...b},_){let{basename:T}=O.useContext(Lt),j=typeof d=="string"&&tg.test(d),G,B=!1;if(typeof d=="string"&&j&&(G=d,eg))try{let Q=new URL(window.location.href),ee=d.startsWith("//")?new URL(Q.protocol+d):new URL(d),he=fn(ee.pathname,T);ee.origin===Q.origin&&he!=null?d=he+ee.search+ee.hash:B=!0}catch{_t(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let q=DS(d,{relative:c}),[X,F,Z]=m1(r,b),de=w1(d,{replace:p,state:h,target:g,preventScrollReset:v,relative:c,viewTransition:S});function le(Q){l&&l(Q),Q.defaultPrevented||de(Q)}let ie=O.createElement("a",{...b,...Z,href:G||q,onClick:B||f?l:le,ref:S1(_,F),target:g,"data-discover":!j&&u==="render"?"true":void 0});return X&&!j?O.createElement(O.Fragment,null,ie,O.createElement(y1,{page:q})):ie});ng.displayName="Link";var E1=O.forwardRef(function({"aria-current":l="page",caseSensitive:u=!1,className:r="",end:c=!1,style:f,to:p,viewTransition:h,children:g,...d},v){let S=oi(p,{relative:d.relative}),b=Hn(),_=O.useContext(Qs),{navigator:T,basename:j}=O.useContext(Lt),G=_!=null&&k1(S)&&h===!0,B=T.encodeLocation?T.encodeLocation(S).pathname:S.pathname,q=b.pathname,X=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;u||(q=q.toLowerCase(),X=X?X.toLowerCase():null,B=B.toLowerCase()),X&&j&&(X=fn(X,j)||X);const F=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let Z=q===B||!c&&q.startsWith(B)&&q.charAt(F)==="/",de=X!=null&&(X===B||!c&&X.startsWith(B)&&X.charAt(B.length)==="/"),le={isActive:Z,isPending:de,isTransitioning:G},ie=Z?l:void 0,Q;typeof r=="function"?Q=r(le):Q=[r,Z?"active":null,de?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let ee=typeof f=="function"?f(le):f;return O.createElement(ng,{...d,"aria-current":ie,className:Q,ref:v,style:ee,to:p,viewTransition:h},typeof g=="function"?g(le):g)});E1.displayName="NavLink";var T1=O.forwardRef(({discover:i="render",fetcherKey:l,navigate:u,reloadDocument:r,replace:c,state:f,method:p=_s,action:h,onSubmit:g,relative:d,preventScrollReset:v,viewTransition:S,...b},_)=>{let T=A1(),j=C1(h,{relative:d}),G=p.toLowerCase()==="get"?"get":"post",B=typeof h=="string"&&tg.test(h),q=X=>{if(g&&g(X),X.defaultPrevented)return;X.preventDefault();let F=X.nativeEvent.submitter,Z=(F==null?void 0:F.getAttribute("formmethod"))||p;T(F||X.currentTarget,{fetcherKey:l,method:Z,navigate:u,replace:c,state:f,relative:d,preventScrollReset:v,viewTransition:S})};return O.createElement("form",{ref:_,method:G,action:j,onSubmit:r?g:q,...b,"data-discover":!B&&i==="render"?"true":void 0})});T1.displayName="Form";function R1(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ag(i){let l=O.useContext(Ja);return _e(l,R1(i)),l}function w1(i,{target:l,replace:u,state:r,preventScrollReset:c,relative:f,viewTransition:p}={}){let h=Pa(),g=Hn(),d=oi(i,{relative:f});return O.useCallback(v=>{if(n1(v,l)){v.preventDefault();let S=u!==void 0?u:si(g)===si(d);h(i,{replace:S,state:r,preventScrollReset:c,relative:f,viewTransition:p})}},[g,h,d,u,r,l,i,c,f,p])}var N1=0,O1=()=>`__${String(++N1)}__`;function A1(){let{router:i}=ag("useSubmit"),{basename:l}=O.useContext(Lt),u=QS();return O.useCallback(async(r,c={})=>{let{action:f,method:p,encType:h,formData:g,body:d}=i1(r,l);if(c.navigate===!1){let v=c.fetcherKey||O1();await i.fetch(v,u,c.action||f,{preventScrollReset:c.preventScrollReset,formData:g,body:d,formMethod:c.method||p,formEncType:c.encType||h,flushSync:c.flushSync})}else await i.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:g,body:d,formMethod:c.method||p,formEncType:c.encType||h,replace:c.replace,state:c.state,fromRouteId:u,flushSync:c.flushSync,viewTransition:c.viewTransition})},[i,l,u])}function C1(i,{relative:l}={}){let{basename:u}=O.useContext(Lt),r=O.useContext(Ut);_e(r,"useFormAction must be used inside a RouteContext");let[c]=r.matches.slice(-1),f={...oi(i||".",{relative:l})},p=Hn();if(i==null){f.search=p.search;let h=new URLSearchParams(f.search),g=h.getAll("index");if(g.some(v=>v==="")){h.delete("index"),g.filter(S=>S).forEach(S=>h.append("index",S));let v=h.toString();f.search=v?`?${v}`:""}}return(!i||i===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:cn([u,f.pathname])),si(f)}function k1(i,l={}){let u=O.useContext(Zp);_e(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ag("useViewTransitionState"),c=oi(i,{relative:l.relative});if(!u.isTransitioning)return!1;let f=fn(u.currentLocation.pathname,r)||u.currentLocation.pathname,p=fn(u.nextLocation.pathname,r)||u.nextLocation.pathname;return Bs(c.pathname,p)!=null||Bs(c.pathname,f)!=null}[...h1];function z1(i){return i.varName?` for '${i.varName}'`:""}function _1(i,l={}){if(i==null||i===""&&!l.allowEmpty)throw new Error(`Missing string value${z1(l)}`);return typeof i=="string"?i:i.toString()}const D1=`${`//${document.location.host}`}/api/plugin/site-generator`;let lg;const[xo]=document.getElementsByClassName("js-script-site-generator");xo&&xo instanceof HTMLScriptElement&&(lg=_1(xo.dataset.googleRecaptchaSiteKey,{varName:"data-google-recaptcha-site-key"}));const Eo=lg;async function Un(i){try{const l=await fetch(D1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});return l.ok?l.json():{success:!1,userMessage:`Failed to execute command: ${l.statusText}`}}catch(l){return{success:!1,userMessage:`Communication error: ${l.message}`}}}const Np=i=>{let l;const u=new Set,r=(d,v)=>{const S=typeof d=="function"?d(l):d;if(!Object.is(S,l)){const b=l;l=v??(typeof S!="object"||S===null)?S:Object.assign({},l,S),u.forEach(_=>_(l,b))}},c=()=>l,h={setState:r,getState:c,getInitialState:()=>g,subscribe:d=>(u.add(d),()=>u.delete(d))},g=l=i(r,c,h);return h},j1=i=>i?Np(i):Np,M1=i=>i;function L1(i,l=M1){const u=No.useSyncExternalStore(i.subscribe,()=>l(i.getState()),()=>l(i.getInitialState()));return No.useDebugValue(u),u}const Op=i=>{const l=j1(i),u=r=>L1(l,r);return Object.assign(u,l),u},U1=i=>i?Op(i):Op,Vo="site-generator-session-token";function Ap(i){try{sessionStorage.setItem(Vo,i)}catch(l){console.error("Failed to save session token",l)}}function ui(){try{return sessionStorage.getItem(Vo)??void 0}catch(i){console.error("Failed to get session token",i)}}function H1(){try{sessionStorage.removeItem(Vo)}catch(i){console.error("Failed to remove session token",i)}}const B1=2e3,Ka=new Map;function q1(i){if(Ka.has(i))return;const l=window.setInterval(()=>{G1(i)},B1);Ka.set(i,l)}function Cs(i){const l=Ka.get(i);l&&(window.clearInterval(l),Ka.delete(i))}function Qo(){Ka.forEach(i=>{window.clearInterval(i)}),Ka.clear()}async function G1(i){const l=ui();if(!l){Cs(i);return}try{const u=await Un({command:"loadStep",sessionToken:l,stepNumber:i});if(u.success&&u.result){const r=u.result;$1(r),r.status!=="pending"&&Cs(i)}else console.error("Error polling step:",u),Cs(i)}catch(u){console.error("Error polling step:",u),Cs(i)}}function $1(i){const{updateStep:l}=sa.getState();l(i)}function To(i){Qo(),i.steps.forEach(l=>{l.status==="pending"&&q1(l.stepNumber)})}const sa=U1((i,l)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:u=>{i({workSession:u}),u&&To(u)},updateStep:u=>{const{workSession:r}=l();if(!r)return;const c=r.steps.map(p=>p.stepNumber===u.stepNumber?u:p),f={...r,steps:c};i({workSession:f}),u.status==="pending"&&To(f)},appendNewStep:u=>{const{workSession:r}=l();if(!r)return;const c={...r,steps:[...r.steps,u]};i({workSession:c}),u.status==="pending"&&To(c)},setIsLoading:u=>i({isLoading:u}),setError:u=>i({error:u}),setActiveStepNumber:u=>i({activeStepNumber:u}),resetSession:()=>{Qo(),i({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}})),tt=O.forwardRef((i,l)=>{const{label:u,severity:r="primary",loading:c,children:f,onClick:p,className:h="",disabled:g,...d}=i,[v,S]=O.useState(!1),b=v||c,_=["Button",r==="secondary"?"secondary":"",b?"loading":"",h].filter(Boolean).join(" "),T=async j=>{if(p)try{j.preventDefault(),S(!0),await p(j)}finally{S(!1)}};return E.jsxs("button",{ref:l,type:"button",className:_,onClick:T,disabled:g||b,...d,children:[!b&&f,!b&&u]})});tt.displayName="Button";function Zs({size:i="medium"}){return E.jsx("div",{className:`Spinner Spinner-${i}`,"aria-label":"Loading"})}function js({activeStep:i}){const{t:l}=at(),u=Pa(),{workSession:r}=sa(),c=()=>{u("/")},f=p=>{u(`/step/${p}`)};return!r||!r.steps||r.steps.length===0?E.jsx("div",{className:"Sidebar",children:E.jsx(tt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:c,children:l("startAgain")})}):E.jsxs("div",{className:"Sidebar",children:[E.jsx(tt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:c,children:l("startAgain")}),E.jsx("div",{className:"Sidebar-steps",children:r.steps.map(p=>E.jsxs("div",{className:"Sidebar-step",children:[E.jsx(tt,{className:`Sidebar-button ${i===p.stepNumber?"active":""} ${p.status==="pending"?"has-spinner":""}`,onClick:()=>f(p.stepNumber),children:`${l("step")} ${p.stepNumber}: ${l(p.kind)}`}),p.status==="pending"&&E.jsx("div",{className:"Sidebar-spinner",children:E.jsx(Zs,{size:"small"})})]},p.stepNumber))})]})}function ig({initialValue:i="",placeholder:l,submitLabel:u,onSubmit:r,isLoading:c=!1,error:f}){const{t:p}=at(),[h,g]=O.useState(i),d=S=>{g(S.target.value)},v=async()=>{h.trim()&&await r(h.trim())};return E.jsxs("div",{className:"PromptForm",children:[f&&E.jsx("div",{className:"Alert error mb-3",children:E.jsx("p",{children:f})}),E.jsx("textarea",{className:"PromptForm-textarea",placeholder:l||p("createPromptPlaceholder"),value:h,onChange:d,rows:6,disabled:c}),E.jsx(tt,{onClick:v,loading:c,disabled:!h.trim()||c,className:"PromptForm-button mt-3",children:u})]})}function Et({header:i,footer:l,children:u,className:r=""}){const c=["Card",r].filter(Boolean).join(" ");return E.jsxs("div",{className:c,children:[i&&E.jsx("div",{className:"Card-header",children:i}),E.jsx("div",{className:"Card-body",children:u}),l&&E.jsx("div",{className:"Card-footer",children:l})]})}function Y1(){const{t:i}=at(),l=Pa(),[u,r]=O.useState(!1),[c,f]=O.useState(void 0),{workSession:p,appendNewStep:h}=sa(),g=async d=>{if(!p)return;r(!0),f(void 0);const v=ui();if(!v){f(i("sessionExpired")),r(!1);return}try{const S=await Un({command:"createSiteSchema",sessionToken:v,prompt:d});if(S.success&&S.result){const b=S.result;h(b),l(`/step/${b.stepNumber}`)}else f(i("promptSubmissionFailed"))}catch(S){console.error("Error submitting prompt:",S),f(i("errorOccurred"))}finally{r(!1)}};return E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsxs(Et,{className:"p-4",children:[E.jsx("h1",{className:"mb-4",children:i("welcomeTitle")}),E.jsx("div",{className:"Text mb-4",dangerouslySetInnerHTML:{__html:i("startInstruction")}}),p&&p.steps.length>0&&E.jsx("p",{className:"InfoText",children:i("newTabRestartMessage")}),E.jsx(ig,{submitLabel:i("createSchema"),onSubmit:g,isLoading:u,error:c})]})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(js,{activeStep:void 0})})]})}function V1(i){return"siteId"in i}function Xo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ua=Xo();function sg(i){ua=i}var ai={exec:()=>null};function be(i,l=""){let u=typeof i=="string"?i:i.source;const r={replace:(c,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(st.caret,"$1"),u=u.replace(c,p),r},getRegex:()=>new RegExp(u,l)};return r}var st={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},Q1=/^(?:[ \t]*(?:\n|$))+/,X1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Z1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ci=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,K1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zo=/(?:[*+-]|\d{1,9}[.)])/,ug=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,rg=be(ug).replace(/bull/g,Zo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),J1=be(ug).replace(/bull/g,Zo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ko=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,F1=/^[^\n]+/,Jo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,P1=be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Jo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),W1=be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Zo).getRegex(),Ks="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Fo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,I1=be("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Fo).replace("tag",Ks).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),og=be(Ko).replace("hr",ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ks).getRegex(),ex=be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",og).getRegex(),Po={blockquote:ex,code:X1,def:P1,fences:Z1,heading:K1,hr:ci,html:I1,lheading:rg,list:W1,newline:Q1,paragraph:og,table:ai,text:F1},Cp=be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ks).getRegex(),tx={...Po,lheading:J1,table:Cp,paragraph:be(Ko).replace("hr",ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Cp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ks).getRegex()},nx={...Po,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Fo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ai,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(Ko).replace("hr",ci).replace("heading",` *#{1,6} *[^
175
- ]`).replace("lheading",rg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ax=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,lx=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cg=/^( {2,}|\\)\n(?!\s*$)/,ix=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Js=/[\p{P}\p{S}]/u,Wo=/[\s\p{P}\p{S}]/u,fg=/[^\s\p{P}\p{S}]/u,sx=be(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Wo).getRegex(),dg=/(?!~)[\p{P}\p{S}]/u,ux=/(?!~)[\s\p{P}\p{S}]/u,rx=/(?:[^\s\p{P}\p{S}]|~)/u,ox=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,hg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,cx=be(hg,"u").replace(/punct/g,Js).getRegex(),fx=be(hg,"u").replace(/punct/g,dg).getRegex(),pg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",dx=be(pg,"gu").replace(/notPunctSpace/g,fg).replace(/punctSpace/g,Wo).replace(/punct/g,Js).getRegex(),hx=be(pg,"gu").replace(/notPunctSpace/g,rx).replace(/punctSpace/g,ux).replace(/punct/g,dg).getRegex(),px=be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,fg).replace(/punctSpace/g,Wo).replace(/punct/g,Js).getRegex(),gx=be(/\\(punct)/,"gu").replace(/punct/g,Js).getRegex(),mx=be(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),yx=be(Fo).replace("(?:-->|$)","-->").getRegex(),vx=be("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",yx).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),qs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,bx=be(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",qs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gg=be(/^!?\[(label)\]\[(ref)\]/).replace("label",qs).replace("ref",Jo).getRegex(),mg=be(/^!?\[(ref)\](?:\[\])?/).replace("ref",Jo).getRegex(),Sx=be("reflink|nolink(?!\\()","g").replace("reflink",gg).replace("nolink",mg).getRegex(),Io={_backpedal:ai,anyPunctuation:gx,autolink:mx,blockSkip:ox,br:cg,code:lx,del:ai,emStrongLDelim:cx,emStrongRDelimAst:dx,emStrongRDelimUnd:px,escape:ax,link:bx,nolink:mg,punctuation:sx,reflink:gg,reflinkSearch:Sx,tag:vx,text:ix,url:ai},xx={...Io,link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",qs).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",qs).getRegex()},_o={...Io,emStrongRDelimAst:hx,emStrongLDelim:fx,url:be(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ex={..._o,br:be(cg).replace("{2,}","*").getRegex(),text:be(_o.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ks={normal:Po,gfm:tx,pedantic:nx},ei={normal:Io,gfm:_o,breaks:Ex,pedantic:xx},Tx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kp=i=>Tx[i];function Vt(i,l){if(l){if(st.escapeTest.test(i))return i.replace(st.escapeReplace,kp)}else if(st.escapeTestNoEncode.test(i))return i.replace(st.escapeReplaceNoEncode,kp);return i}function zp(i){try{i=encodeURI(i).replace(st.percentDecode,"%")}catch{return null}return i}function _p(i,l){var f;const u=i.replace(st.findPipe,(p,h,g)=>{let d=!1,v=h;for(;--v>=0&&g[v]==="\\";)d=!d;return d?"|":" |"}),r=u.split(st.splitPipe);let c=0;if(r[0].trim()||r.shift(),r.length>0&&!((f=r.at(-1))!=null&&f.trim())&&r.pop(),l)if(r.length>l)r.splice(l);else for(;r.length<l;)r.push("");for(;c<r.length;c++)r[c]=r[c].trim().replace(st.slashPipe,"|");return r}function ti(i,l,u){const r=i.length;if(r===0)return"";let c=0;for(;c<r&&i.charAt(r-c-1)===l;)c++;return i.slice(0,r-c)}function Rx(i,l){if(i.indexOf(l[1])===-1)return-1;let u=0;for(let r=0;r<i.length;r++)if(i[r]==="\\")r++;else if(i[r]===l[0])u++;else if(i[r]===l[1]&&(u--,u<0))return r;return u>0?-2:-1}function Dp(i,l,u,r,c){const f=l.href,p=l.title||null,h=i[1].replace(c.other.outputLinkReplace,"$1");r.state.inLink=!0;const g={type:i[0].charAt(0)==="!"?"image":"link",raw:u,href:f,title:p,text:h,tokens:r.inlineTokens(h)};return r.state.inLink=!1,g}function wx(i,l,u){const r=i.match(u.other.indentCodeCompensation);if(r===null)return l;const c=r[1];return l.split(`
176
- `).map(f=>{const p=f.match(u.other.beginningSpace);if(p===null)return f;const[h]=p;return h.length>=c.length?f.slice(c.length):f}).join(`
177
- `)}var Gs=class{constructor(i){Oe(this,"options");Oe(this,"rules");Oe(this,"lexer");this.options=i||ua}space(i){const l=this.rules.block.newline.exec(i);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(i){const l=this.rules.block.code.exec(i);if(l){const u=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?u:ti(u,`
178
- `)}}}fences(i){const l=this.rules.block.fences.exec(i);if(l){const u=l[0],r=wx(u,l[3]||"",this.rules);return{type:"code",raw:u,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:r}}}heading(i){const l=this.rules.block.heading.exec(i);if(l){let u=l[2].trim();if(this.rules.other.endingHash.test(u)){const r=ti(u,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(u=r.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:u,tokens:this.lexer.inline(u)}}}hr(i){const l=this.rules.block.hr.exec(i);if(l)return{type:"hr",raw:ti(l[0],`
179
- `)}}blockquote(i){const l=this.rules.block.blockquote.exec(i);if(l){let u=ti(l[0],`
59
+ Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let S=Hn(),b;if(l){let q=typeof l=="string"?ia(l):l;_e(d==="/"||((B=q.pathname)==null?void 0:B.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${q.pathname}" was given in the \`location\` prop.`),b=q}else b=S;let _=b.pathname||"/",T=_;if(d!=="/"){let q=d.replace(/^\//,"").split("/");T="/"+_.replace(/^\//,"").split("/").slice(q.length).join("/")}let M=Yp(i,{pathname:T});_t(y||M!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),_t(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let G=GS(M&&M.map(q=>Object.assign({},q,{params:Object.assign({},h,q.params),pathname:cn([d,c.encodeLocation?c.encodeLocation(q.pathname).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?d:cn([d,c.encodeLocation?c.encodeLocation(q.pathnameBase).pathname:q.pathnameBase])})),f,s,r);return l&&G?A.createElement(ri.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},G):G}function US(){let i=XS(),l=CS(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:f},"ErrorBoundary")," or"," ",A.createElement("code",{style:f},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},l),s?A.createElement("pre",{style:c},s):null,p)}var HS=A.createElement(US,null),BS=class extends A.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,l){return l.location!==i.location||l.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:l.error,location:l.location,revalidation:i.revalidation||l.revalidation}}componentDidCatch(i,l){console.error("React Router caught the following error during render",i,l)}render(){return this.state.error!==void 0?A.createElement(Ut.Provider,{value:this.props.routeContext},A.createElement(Bo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qS({routeContext:i,match:l,children:s}){let r=A.useContext(Ja);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),A.createElement(Ut.Provider,{value:i},s)}function GS(i,l=[],s=null,r=null){if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(l.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let c=i,f=s==null?void 0:s.errors;if(f!=null){let g=c.findIndex(d=>d.route.id&&(f==null?void 0:f[d.route.id])!==void 0);_e(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let p=!1,h=-1;if(s)for(let g=0;g<c.length;g++){let d=c[g];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(h=g),d.route.id){let{loaderData:y,errors:S}=s,b=d.route.loader&&!y.hasOwnProperty(d.route.id)&&(!S||S[d.route.id]===void 0);if(d.route.lazy||b){p=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}return c.reduceRight((g,d,y)=>{let S,b=!1,_=null,T=null;s&&(S=f&&d.route.id?f[d.route.id]:void 0,_=d.route.errorElement||HS,p&&(h<0&&y===0?(Wp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,T=null):h===y&&(b=!0,T=d.route.hydrateFallbackElement||null)));let M=l.concat(c.slice(0,y+1)),G=()=>{let B;return S?B=_:b?B=T:d.route.Component?B=A.createElement(d.route.Component,null):d.route.element?B=d.route.element:B=g,A.createElement(qS,{match:d,routeContext:{outlet:g,matches:M,isDataRoute:s!=null},children:B})};return s&&(d.route.ErrorBoundary||d.route.errorElement||y===0)?A.createElement(BS,{location:s.location,revalidation:s.revalidation,component:_,error:S,children:G(),routeContext:{outlet:null,matches:M,isDataRoute:!0}}):G()},null)}function qo(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $S(i){let l=A.useContext(Ja);return _e(l,qo(i)),l}function YS(i){let l=A.useContext(Qu);return _e(l,qo(i)),l}function VS(i){let l=A.useContext(Ut);return _e(l,qo(i)),l}function Go(i){let l=VS(i),s=l.matches[l.matches.length-1];return _e(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function QS(){return Go("useRouteId")}function XS(){var r;let i=A.useContext(Bo),l=YS("useRouteError"),s=Go("useRouteError");return i!==void 0?i:(r=l.errors)==null?void 0:r[s]}function ZS(){let{router:i}=$S("useNavigate"),l=Go("useNavigate"),s=A.useRef(!1);return Jp(()=>{s.current=!0}),A.useCallback(async(c,f={})=>{_t(s.current,Kp),s.current&&(typeof c=="number"?i.navigate(c):await i.navigate(c,{fromRouteId:l,...f}))},[i,l])}var Rp={};function Wp(i,l,s){!l&&!Rp[i]&&(Rp[i]=!0,_t(!1,s))}A.memo(KS);function KS({routes:i,future:l,state:s}){return Fp(i,void 0,s,l)}function JS({to:i,replace:l,state:s,relative:r}){_e(Fa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=A.useContext(Lt);_t(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=A.useContext(Ut),{pathname:p}=Hn(),h=Wa(),g=Ho(i,Uo(f),p,r==="path"),d=JSON.stringify(g);return A.useEffect(()=>{h(JSON.parse(d),{replace:l,state:s,relative:r})},[h,d,r,l,s]),null}function ku(i){_e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function FS({basename:i="/",children:l=null,location:s,navigationType:r="POP",navigator:c,static:f=!1}){_e(!Fa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),h=A.useMemo(()=>({basename:p,navigator:c,static:f,future:{}}),[p,c,f]);typeof s=="string"&&(s=ia(s));let{pathname:g="/",search:d="",hash:y="",state:S=null,key:b="default"}=s,_=A.useMemo(()=>{let T=fn(g,p);return T==null?null:{location:{pathname:T,search:d,hash:y,state:S,key:b},navigationType:r}},[p,g,d,y,S,b,r]);return _t(_!=null,`<Router basename="${p}"> is not able to match the URL "${g}${d}${y}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:A.createElement(Lt.Provider,{value:h},A.createElement(ri.Provider,{children:l,value:_}))}function WS({children:i,location:l}){return LS(ko(i),l)}function ko(i,l=[]){let s=[];return A.Children.forEach(i,(r,c)=>{if(!A.isValidElement(r))return;let f=[...l,c];if(r.type===A.Fragment){s.push.apply(s,ko(r.props.children,f));return}_e(r.type===ku,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!r.props.index||!r.props.children,"An index route cannot have child routes.");let p={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(p.children=ko(r.props.children,f)),s.push(p)}),s}var _u="get",Du="application/x-www-form-urlencoded";function Xu(i){return i!=null&&typeof i.tagName=="string"}function PS(i){return Xu(i)&&i.tagName.toLowerCase()==="button"}function IS(i){return Xu(i)&&i.tagName.toLowerCase()==="form"}function e1(i){return Xu(i)&&i.tagName.toLowerCase()==="input"}function t1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function n1(i,l){return i.button===0&&(!l||l==="_self")&&!t1(i)}var Ou=null;function a1(){if(Ou===null)try{new FormData(document.createElement("form"),0),Ou=!1}catch{Ou=!0}return Ou}var l1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function So(i){return i!=null&&!l1.has(i)?(_t(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Du}"`),null):i}function i1(i,l){let s,r,c,f,p;if(IS(i)){let h=i.getAttribute("action");r=h?fn(h,l):null,s=i.getAttribute("method")||_u,c=So(i.getAttribute("enctype"))||Du,f=new FormData(i)}else if(PS(i)||e1(i)&&(i.type==="submit"||i.type==="image")){let h=i.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||h.getAttribute("action");if(r=g?fn(g,l):null,s=i.getAttribute("formmethod")||h.getAttribute("method")||_u,c=So(i.getAttribute("formenctype"))||So(h.getAttribute("enctype"))||Du,f=new FormData(h,i),!a1()){let{name:d,type:y,value:S}=i;if(y==="image"){let b=d?`${d}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else d&&f.append(d,S)}}else{if(Xu(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=_u,r=null,c=Du,p=i}return f&&c==="text/plain"&&(p=f,f=void 0),{action:r,method:s.toLowerCase(),encType:c,formData:f,body:p}}function $o(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}async function u1(i,l){if(i.id in l)return l[i.id];try{let s=await import(i.module);return l[i.id]=s,s}catch(s){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function s1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function r1(i,l,s){let r=await Promise.all(i.map(async c=>{let f=l.routes[c.route.id];if(f){let p=await u1(f,s);return p.links?p.links():[]}return[]}));return d1(r.flat(1).filter(s1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function wp(i,l,s,r,c,f){let p=(g,d)=>s[d]?g.route.id!==s[d].route.id:!0,h=(g,d)=>{var y;return s[d].pathname!==g.pathname||((y=s[d].route.path)==null?void 0:y.endsWith("*"))&&s[d].params["*"]!==g.params["*"]};return f==="assets"?l.filter((g,d)=>p(g,d)||h(g,d)):f==="data"?l.filter((g,d)=>{var S;let y=r.routes[g.route.id];if(!y||!y.hasLoader)return!1;if(p(g,d)||h(g,d))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=s[0])==null?void 0:S.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function o1(i,l,{includeHydrateFallback:s}={}){return c1(i.map(r=>{let c=l.routes[r.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function c1(i){return[...new Set(i)]}function f1(i){let l={},s=Object.keys(i).sort();for(let r of s)l[r]=i[r];return l}function d1(i,l){let s=new Set;return new Set(l),i.reduce((r,c)=>{let f=JSON.stringify(f1(c));return s.has(f)||(s.add(f),r.push({key:f,link:c})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var h1=new Set([100,101,204,205]);function p1(i,l){let s=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s.pathname==="/"?s.pathname="_root.data":l&&fn(s.pathname,l)==="/"?s.pathname=`${l.replace(/\/$/,"")}/_root.data`:s.pathname=`${s.pathname.replace(/\/$/,"")}.data`,s}function Pp(){let i=A.useContext(Ja);return $o(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function g1(){let i=A.useContext(Qu);return $o(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Yo=A.createContext(void 0);Yo.displayName="FrameworkContext";function Ip(){let i=A.useContext(Yo);return $o(i,"You must render this element inside a <HydratedRouter> element"),i}function m1(i,l){let s=A.useContext(Yo),[r,c]=A.useState(!1),[f,p]=A.useState(!1),{onFocus:h,onBlur:g,onMouseEnter:d,onMouseLeave:y,onTouchStart:S}=l,b=A.useRef(null);A.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let M=B=>{B.forEach(q=>{p(q.isIntersecting)})},G=new IntersectionObserver(M,{threshold:.5});return b.current&&G.observe(b.current),()=>{G.disconnect()}}},[i]),A.useEffect(()=>{if(r){let M=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(M)}}},[r]);let _=()=>{c(!0)},T=()=>{c(!1),p(!1)};return s?i!=="intent"?[f,b,{}]:[f,b,{onFocus:Il(h,_),onBlur:Il(g,T),onMouseEnter:Il(d,_),onMouseLeave:Il(y,T),onTouchStart:Il(S,_)}]:[!1,b,{}]}function Il(i,l){return s=>{i&&i(s),s.defaultPrevented||l(s)}}function y1({page:i,...l}){let{router:s}=Pp(),r=A.useMemo(()=>Yp(s.routes,i,s.basename),[s.routes,i,s.basename]);return r?A.createElement(b1,{page:i,matches:r,...l}):null}function v1(i){let{manifest:l,routeModules:s}=Ip(),[r,c]=A.useState([]);return A.useEffect(()=>{let f=!1;return r1(i,l,s).then(p=>{f||c(p)}),()=>{f=!0}},[i,l,s]),r}function b1({page:i,matches:l,...s}){let r=Hn(),{manifest:c,routeModules:f}=Ip(),{basename:p}=Pp(),{loaderData:h,matches:g}=g1(),d=A.useMemo(()=>wp(i,l,g,c,r,"data"),[i,l,g,c,r]),y=A.useMemo(()=>wp(i,l,g,c,r,"assets"),[i,l,g,c,r]),S=A.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let T=new Set,M=!1;if(l.forEach(B=>{var X;let q=c.routes[B.route.id];!q||!q.hasLoader||(!d.some(F=>F.route.id===B.route.id)&&B.route.id in h&&((X=f[B.route.id])!=null&&X.shouldRevalidate)||q.hasClientLoader?M=!0:T.add(B.route.id))}),T.size===0)return[];let G=p1(i,p);return M&&T.size>0&&G.searchParams.set("_routes",l.filter(B=>T.has(B.route.id)).map(B=>B.route.id).join(",")),[G.pathname+G.search]},[p,h,r,c,d,l,i,f]),b=A.useMemo(()=>o1(y,c),[y,c]),_=v1(y);return A.createElement(A.Fragment,null,S.map(T=>A.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...s})),b.map(T=>A.createElement("link",{key:T,rel:"modulepreload",href:T,...s})),_.map(({key:T,link:M})=>A.createElement("link",{key:T,...M})))}function S1(...i){return l=>{i.forEach(s=>{typeof s=="function"?s(l):s!=null&&(s.current=l)})}}var eg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{eg&&(window.__reactRouterVersion="7.6.2")}catch{}function x1({basename:i,children:l,window:s}){let r=A.useRef();r.current==null&&(r.current=uS({window:s,v5Compat:!0}));let c=r.current,[f,p]=A.useState({action:c.action,location:c.location}),h=A.useCallback(g=>{A.startTransition(()=>p(g))},[p]);return A.useLayoutEffect(()=>c.listen(h),[c,h]),A.createElement(FS,{basename:i,children:l,location:f.location,navigationType:f.action,navigator:c})}var tg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ng=A.forwardRef(function({onClick:l,discover:s="render",prefetch:r="none",relative:c,reloadDocument:f,replace:p,state:h,target:g,to:d,preventScrollReset:y,viewTransition:S,...b},_){let{basename:T}=A.useContext(Lt),M=typeof d=="string"&&tg.test(d),G,B=!1;if(typeof d=="string"&&M&&(G=d,eg))try{let Q=new URL(window.location.href),ee=d.startsWith("//")?new URL(Q.protocol+d):new URL(d),he=fn(ee.pathname,T);ee.origin===Q.origin&&he!=null?d=he+ee.search+ee.hash:B=!0}catch{_t(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let q=DS(d,{relative:c}),[X,F,Z]=m1(r,b),de=w1(d,{replace:p,state:h,target:g,preventScrollReset:y,relative:c,viewTransition:S});function le(Q){l&&l(Q),Q.defaultPrevented||de(Q)}let ie=A.createElement("a",{...b,...Z,href:G||q,onClick:B||f?l:le,ref:S1(_,F),target:g,"data-discover":!M&&s==="render"?"true":void 0});return X&&!M?A.createElement(A.Fragment,null,ie,A.createElement(y1,{page:q})):ie});ng.displayName="Link";var E1=A.forwardRef(function({"aria-current":l="page",caseSensitive:s=!1,className:r="",end:c=!1,style:f,to:p,viewTransition:h,children:g,...d},y){let S=oi(p,{relative:d.relative}),b=Hn(),_=A.useContext(Qu),{navigator:T,basename:M}=A.useContext(Lt),G=_!=null&&z1(S)&&h===!0,B=T.encodeLocation?T.encodeLocation(S).pathname:S.pathname,q=b.pathname,X=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;s||(q=q.toLowerCase(),X=X?X.toLowerCase():null,B=B.toLowerCase()),X&&M&&(X=fn(X,M)||X);const F=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let Z=q===B||!c&&q.startsWith(B)&&q.charAt(F)==="/",de=X!=null&&(X===B||!c&&X.startsWith(B)&&X.charAt(B.length)==="/"),le={isActive:Z,isPending:de,isTransitioning:G},ie=Z?l:void 0,Q;typeof r=="function"?Q=r(le):Q=[r,Z?"active":null,de?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let ee=typeof f=="function"?f(le):f;return A.createElement(ng,{...d,"aria-current":ie,className:Q,ref:y,style:ee,to:p,viewTransition:h},typeof g=="function"?g(le):g)});E1.displayName="NavLink";var T1=A.forwardRef(({discover:i="render",fetcherKey:l,navigate:s,reloadDocument:r,replace:c,state:f,method:p=_u,action:h,onSubmit:g,relative:d,preventScrollReset:y,viewTransition:S,...b},_)=>{let T=O1(),M=C1(h,{relative:d}),G=p.toLowerCase()==="get"?"get":"post",B=typeof h=="string"&&tg.test(h),q=X=>{if(g&&g(X),X.defaultPrevented)return;X.preventDefault();let F=X.nativeEvent.submitter,Z=(F==null?void 0:F.getAttribute("formmethod"))||p;T(F||X.currentTarget,{fetcherKey:l,method:Z,navigate:s,replace:c,state:f,relative:d,preventScrollReset:y,viewTransition:S})};return A.createElement("form",{ref:_,method:G,action:M,onSubmit:r?g:q,...b,"data-discover":!B&&i==="render"?"true":void 0})});T1.displayName="Form";function R1(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ag(i){let l=A.useContext(Ja);return _e(l,R1(i)),l}function w1(i,{target:l,replace:s,state:r,preventScrollReset:c,relative:f,viewTransition:p}={}){let h=Wa(),g=Hn(),d=oi(i,{relative:f});return A.useCallback(y=>{if(n1(y,l)){y.preventDefault();let S=s!==void 0?s:ui(g)===ui(d);h(i,{replace:S,state:r,preventScrollReset:c,relative:f,viewTransition:p})}},[g,h,d,s,r,l,i,c,f,p])}var N1=0,A1=()=>`__${String(++N1)}__`;function O1(){let{router:i}=ag("useSubmit"),{basename:l}=A.useContext(Lt),s=QS();return A.useCallback(async(r,c={})=>{let{action:f,method:p,encType:h,formData:g,body:d}=i1(r,l);if(c.navigate===!1){let y=c.fetcherKey||A1();await i.fetch(y,s,c.action||f,{preventScrollReset:c.preventScrollReset,formData:g,body:d,formMethod:c.method||p,formEncType:c.encType||h,flushSync:c.flushSync})}else await i.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:g,body:d,formMethod:c.method||p,formEncType:c.encType||h,replace:c.replace,state:c.state,fromRouteId:s,flushSync:c.flushSync,viewTransition:c.viewTransition})},[i,l,s])}function C1(i,{relative:l}={}){let{basename:s}=A.useContext(Lt),r=A.useContext(Ut);_e(r,"useFormAction must be used inside a RouteContext");let[c]=r.matches.slice(-1),f={...oi(i||".",{relative:l})},p=Hn();if(i==null){f.search=p.search;let h=new URLSearchParams(f.search),g=h.getAll("index");if(g.some(y=>y==="")){h.delete("index"),g.filter(S=>S).forEach(S=>h.append("index",S));let y=h.toString();f.search=y?`?${y}`:""}}return(!i||i===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:cn([s,f.pathname])),ui(f)}function z1(i,l={}){let s=A.useContext(Zp);_e(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ag("useViewTransitionState"),c=oi(i,{relative:l.relative});if(!s.isTransitioning)return!1;let f=fn(s.currentLocation.pathname,r)||s.currentLocation.pathname,p=fn(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Bu(c.pathname,p)!=null||Bu(c.pathname,f)!=null}[...h1];function k1(i){return i.varName?` for '${i.varName}'`:""}function _1(i,l={}){if(i==null||i===""&&!l.allowEmpty)throw new Error(`Missing string value${k1(l)}`);return typeof i=="string"?i:i.toString()}const D1=`${`//${document.location.host}`}/api/plugin/site-generator`;let lg;const[xo]=document.getElementsByClassName("js-script-site-generator");xo&&xo instanceof HTMLScriptElement&&(lg=_1(xo.dataset.googleRecaptchaSiteKey,{varName:"data-google-recaptcha-site-key"}));const Eo=lg;async function Un(i){try{const l=await fetch(D1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});return l.ok?l.json():{success:!1,userMessage:`Failed to execute command: ${l.statusText}`}}catch(l){return{success:!1,userMessage:`Communication error: ${l.message}`}}}const Np=i=>{let l;const s=new Set,r=(d,y)=>{const S=typeof d=="function"?d(l):d;if(!Object.is(S,l)){const b=l;l=y??(typeof S!="object"||S===null)?S:Object.assign({},l,S),s.forEach(_=>_(l,b))}},c=()=>l,h={setState:r,getState:c,getInitialState:()=>g,subscribe:d=>(s.add(d),()=>s.delete(d))},g=l=i(r,c,h);return h},M1=i=>i?Np(i):Np,j1=i=>i;function L1(i,l=j1){const s=No.useSyncExternalStore(i.subscribe,()=>l(i.getState()),()=>l(i.getInitialState()));return No.useDebugValue(s),s}const Ap=i=>{const l=M1(i),s=r=>L1(l,r);return Object.assign(s,l),s},U1=i=>i?Ap(i):Ap,Vo="site-generator-session-token";function Op(i){try{sessionStorage.setItem(Vo,i)}catch(l){console.error("Failed to save session token",l)}}function si(){try{return sessionStorage.getItem(Vo)??void 0}catch(i){console.error("Failed to get session token",i)}}function H1(){try{sessionStorage.removeItem(Vo)}catch(i){console.error("Failed to remove session token",i)}}const B1=2e3,Ka=new Map;function q1(i){if(Ka.has(i))return;const l=window.setInterval(()=>{G1(i)},B1);Ka.set(i,l)}function Cu(i){const l=Ka.get(i);l&&(window.clearInterval(l),Ka.delete(i))}function Qo(){Ka.forEach(i=>{window.clearInterval(i)}),Ka.clear()}async function G1(i){const l=si();if(!l){Cu(i);return}try{const s=await Un({command:"loadStep",sessionToken:l,stepNumber:i});if(s.success&&s.result){const r=s.result;$1(r),r.status!=="pending"&&Cu(i)}else console.error("Error polling step:",s),Cu(i)}catch(s){console.error("Error polling step:",s),Cu(i)}}function $1(i){const{updateStep:l}=ua.getState();l(i)}function To(i){Qo(),i.steps.forEach(l=>{l.status==="pending"&&q1(l.stepNumber)})}const ua=U1((i,l)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:s=>{i({workSession:s}),s&&To(s)},updateStep:s=>{const{workSession:r}=l();if(!r)return;const c=r.steps.map(p=>p.stepNumber===s.stepNumber?s:p),f={...r,steps:c};i({workSession:f}),s.status==="pending"&&To(f)},appendNewStep:s=>{const{workSession:r}=l();if(!r)return;const c={...r,steps:[...r.steps,s]};i({workSession:c}),s.status==="pending"&&To(c)},setIsLoading:s=>i({isLoading:s}),setError:s=>i({error:s}),setActiveStepNumber:s=>i({activeStepNumber:s}),resetSession:()=>{Qo(),i({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}})),tt=A.forwardRef((i,l)=>{const{label:s,severity:r="primary",loading:c,children:f,onClick:p,className:h="",disabled:g,...d}=i,[y,S]=A.useState(!1),b=y||c,_=["Button",r==="secondary"?"secondary":"",b?"loading":"",h].filter(Boolean).join(" "),T=async M=>{if(p)try{M.preventDefault(),S(!0),await p(M)}finally{S(!1)}};return E.jsxs("button",{ref:l,type:"button",className:_,onClick:T,disabled:g||b,...d,children:[!b&&f,!b&&s]})});tt.displayName="Button";function Zu({size:i="medium"}){return E.jsx("div",{className:`Spinner Spinner-${i}`,"aria-label":"Loading"})}function Mu({activeStep:i}){const{t:l}=ut(),s=Wa(),{workSession:r}=ua(),c=()=>{s("/")},f=p=>{s(`/step/${p}`)};return!r||!r.steps||r.steps.length===0?E.jsx("div",{className:"Sidebar",children:E.jsx(tt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:c,children:l("startAgain")})}):E.jsxs("div",{className:"Sidebar",children:[E.jsx(tt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:c,children:l("startAgain")}),E.jsx("div",{className:"Sidebar-steps",children:r.steps.map(p=>E.jsxs("div",{className:"Sidebar-step",children:[E.jsx(tt,{className:`Sidebar-button ${i===p.stepNumber?"active":""} ${p.status==="pending"?"has-spinner":""}`,onClick:()=>f(p.stepNumber),children:`${l("step")} ${p.stepNumber}: ${l(p.kind)}`}),p.status==="pending"&&E.jsx("div",{className:"Sidebar-spinner",children:E.jsx(Zu,{size:"small"})})]},p.stepNumber))})]})}function ig({initialValue:i="",placeholder:l,submitLabel:s,onSubmit:r,isLoading:c=!1,error:f}){const{t:p}=ut(),[h,g]=A.useState(i),d=S=>{g(S.target.value)},y=async()=>{h.trim()&&await r(h.trim())};return E.jsxs("div",{className:"PromptForm",children:[f&&E.jsx("div",{className:"Alert error mb-3",children:E.jsx("p",{children:f})}),E.jsx("textarea",{className:"PromptForm-textarea",placeholder:l||p("createPromptPlaceholder"),value:h,onChange:d,rows:6,disabled:c}),E.jsx(tt,{onClick:y,loading:c,disabled:!h.trim()||c,className:"PromptForm-button mt-3",children:s})]})}function Et({header:i,footer:l,children:s,className:r=""}){const c=["Card",r].filter(Boolean).join(" ");return E.jsxs("div",{className:c,children:[i&&E.jsx("div",{className:"Card-header",children:i}),E.jsx("div",{className:"Card-body",children:s}),l&&E.jsx("div",{className:"Card-footer",children:l})]})}function Y1(){const{t:i}=ut(),l=Wa(),[s,r]=A.useState(!1),[c,f]=A.useState(void 0),{workSession:p,appendNewStep:h}=ua(),g=async d=>{if(!p)return;r(!0),f(void 0);const y=si();if(!y){f(i("sessionExpired")),r(!1);return}try{const S=await Un({command:"createSiteSchema",sessionToken:y,prompt:d});if(S.success&&S.result){const b=S.result;h(b),l(`/step/${b.stepNumber}`)}else f(i("promptSubmissionFailed"))}catch(S){console.error("Error submitting prompt:",S),f(i("errorOccurred"))}finally{r(!1)}};return E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsxs(Et,{className:"p-4",children:[E.jsx("h1",{className:"mb-4",children:i("welcomeTitle")}),E.jsx("div",{className:"Text mb-4",dangerouslySetInnerHTML:{__html:i("startInstruction")}}),p&&p.steps.length>0&&E.jsx("p",{className:"InfoText",children:i("newTabRestartMessage")}),E.jsx(ig,{submitLabel:i("createSchema"),onSubmit:g,isLoading:s,error:c})]})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Mu,{activeStep:void 0})})]})}function V1(i){return"siteId"in i}function Xo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sa=Xo();function ug(i){sa=i}var ai={exec:()=>null};function be(i,l=""){let s=typeof i=="string"?i:i.source;const r={replace:(c,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(it.caret,"$1"),s=s.replace(c,p),r},getRegex:()=>new RegExp(s,l)};return r}var it={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},Q1=/^(?:[ \t]*(?:\n|$))+/,X1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Z1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ci=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,K1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zo=/(?:[*+-]|\d{1,9}[.)])/,sg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,rg=be(sg).replace(/bull/g,Zo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),J1=be(sg).replace(/bull/g,Zo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ko=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,F1=/^[^\n]+/,Jo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,W1=be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Jo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P1=be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Zo).getRegex(),Ku="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Fo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,I1=be("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Fo).replace("tag",Ku).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),og=be(Ko).replace("hr",ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ku).getRegex(),ex=be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",og).getRegex(),Wo={blockquote:ex,code:X1,def:W1,fences:Z1,heading:K1,hr:ci,html:I1,lheading:rg,list:P1,newline:Q1,paragraph:og,table:ai,text:F1},Cp=be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ku).getRegex(),tx={...Wo,lheading:J1,table:Cp,paragraph:be(Ko).replace("hr",ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Cp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ku).getRegex()},nx={...Wo,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Fo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ai,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(Ko).replace("hr",ci).replace("heading",` *#{1,6} *[^
60
+ ]`).replace("lheading",rg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ax=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,lx=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cg=/^( {2,}|\\)\n(?!\s*$)/,ix=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ju=/[\p{P}\p{S}]/u,Po=/[\s\p{P}\p{S}]/u,fg=/[^\s\p{P}\p{S}]/u,ux=be(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Po).getRegex(),dg=/(?!~)[\p{P}\p{S}]/u,sx=/(?!~)[\s\p{P}\p{S}]/u,rx=/(?:[^\s\p{P}\p{S}]|~)/u,ox=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,hg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,cx=be(hg,"u").replace(/punct/g,Ju).getRegex(),fx=be(hg,"u").replace(/punct/g,dg).getRegex(),pg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",dx=be(pg,"gu").replace(/notPunctSpace/g,fg).replace(/punctSpace/g,Po).replace(/punct/g,Ju).getRegex(),hx=be(pg,"gu").replace(/notPunctSpace/g,rx).replace(/punctSpace/g,sx).replace(/punct/g,dg).getRegex(),px=be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,fg).replace(/punctSpace/g,Po).replace(/punct/g,Ju).getRegex(),gx=be(/\\(punct)/,"gu").replace(/punct/g,Ju).getRegex(),mx=be(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),yx=be(Fo).replace("(?:-->|$)","-->").getRegex(),vx=be("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",yx).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),qu=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,bx=be(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",qu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gg=be(/^!?\[(label)\]\[(ref)\]/).replace("label",qu).replace("ref",Jo).getRegex(),mg=be(/^!?\[(ref)\](?:\[\])?/).replace("ref",Jo).getRegex(),Sx=be("reflink|nolink(?!\\()","g").replace("reflink",gg).replace("nolink",mg).getRegex(),Io={_backpedal:ai,anyPunctuation:gx,autolink:mx,blockSkip:ox,br:cg,code:lx,del:ai,emStrongLDelim:cx,emStrongRDelimAst:dx,emStrongRDelimUnd:px,escape:ax,link:bx,nolink:mg,punctuation:ux,reflink:gg,reflinkSearch:Sx,tag:vx,text:ix,url:ai},xx={...Io,link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",qu).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",qu).getRegex()},_o={...Io,emStrongRDelimAst:hx,emStrongLDelim:fx,url:be(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ex={..._o,br:be(cg).replace("{2,}","*").getRegex(),text:be(_o.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zu={normal:Wo,gfm:tx,pedantic:nx},ei={normal:Io,gfm:_o,breaks:Ex,pedantic:xx},Tx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zp=i=>Tx[i];function Vt(i,l){if(l){if(it.escapeTest.test(i))return i.replace(it.escapeReplace,zp)}else if(it.escapeTestNoEncode.test(i))return i.replace(it.escapeReplaceNoEncode,zp);return i}function kp(i){try{i=encodeURI(i).replace(it.percentDecode,"%")}catch{return null}return i}function _p(i,l){var f;const s=i.replace(it.findPipe,(p,h,g)=>{let d=!1,y=h;for(;--y>=0&&g[y]==="\\";)d=!d;return d?"|":" |"}),r=s.split(it.splitPipe);let c=0;if(r[0].trim()||r.shift(),r.length>0&&!((f=r.at(-1))!=null&&f.trim())&&r.pop(),l)if(r.length>l)r.splice(l);else for(;r.length<l;)r.push("");for(;c<r.length;c++)r[c]=r[c].trim().replace(it.slashPipe,"|");return r}function ti(i,l,s){const r=i.length;if(r===0)return"";let c=0;for(;c<r&&i.charAt(r-c-1)===l;)c++;return i.slice(0,r-c)}function Rx(i,l){if(i.indexOf(l[1])===-1)return-1;let s=0;for(let r=0;r<i.length;r++)if(i[r]==="\\")r++;else if(i[r]===l[0])s++;else if(i[r]===l[1]&&(s--,s<0))return r;return s>0?-2:-1}function Dp(i,l,s,r,c){const f=l.href,p=l.title||null,h=i[1].replace(c.other.outputLinkReplace,"$1");r.state.inLink=!0;const g={type:i[0].charAt(0)==="!"?"image":"link",raw:s,href:f,title:p,text:h,tokens:r.inlineTokens(h)};return r.state.inLink=!1,g}function wx(i,l,s){const r=i.match(s.other.indentCodeCompensation);if(r===null)return l;const c=r[1];return l.split(`
61
+ `).map(f=>{const p=f.match(s.other.beginningSpace);if(p===null)return f;const[h]=p;return h.length>=c.length?f.slice(c.length):f}).join(`
62
+ `)}var Gu=class{constructor(i){Ae(this,"options");Ae(this,"rules");Ae(this,"lexer");this.options=i||sa}space(i){const l=this.rules.block.newline.exec(i);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(i){const l=this.rules.block.code.exec(i);if(l){const s=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?s:ti(s,`
63
+ `)}}}fences(i){const l=this.rules.block.fences.exec(i);if(l){const s=l[0],r=wx(s,l[3]||"",this.rules);return{type:"code",raw:s,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:r}}}heading(i){const l=this.rules.block.heading.exec(i);if(l){let s=l[2].trim();if(this.rules.other.endingHash.test(s)){const r=ti(s,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(s=r.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(i){const l=this.rules.block.hr.exec(i);if(l)return{type:"hr",raw:ti(l[0],`
64
+ `)}}blockquote(i){const l=this.rules.block.blockquote.exec(i);if(l){let s=ti(l[0],`
180
65
  `).split(`
181
- `),r="",c="";const f=[];for(;u.length>0;){let p=!1;const h=[];let g;for(g=0;g<u.length;g++)if(this.rules.other.blockquoteStart.test(u[g]))h.push(u[g]),p=!0;else if(!p)h.push(u[g]);else break;u=u.slice(g);const d=h.join(`
182
- `),v=d.replace(this.rules.other.blockquoteSetextReplace,`
66
+ `),r="",c="";const f=[];for(;s.length>0;){let p=!1;const h=[];let g;for(g=0;g<s.length;g++)if(this.rules.other.blockquoteStart.test(s[g]))h.push(s[g]),p=!0;else if(!p)h.push(s[g]);else break;s=s.slice(g);const d=h.join(`
67
+ `),y=d.replace(this.rules.other.blockquoteSetextReplace,`
183
68
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
184
69
  ${d}`:d,c=c?`${c}
185
- ${v}`:v;const S=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,f,!0),this.lexer.state.top=S,u.length===0)break;const b=f.at(-1);if((b==null?void 0:b.type)==="code")break;if((b==null?void 0:b.type)==="blockquote"){const _=b,T=_.raw+`
186
- `+u.join(`
187
- `),j=this.blockquote(T);f[f.length-1]=j,r=r.substring(0,r.length-_.raw.length)+j.raw,c=c.substring(0,c.length-_.text.length)+j.text;break}else if((b==null?void 0:b.type)==="list"){const _=b,T=_.raw+`
188
- `+u.join(`
189
- `),j=this.list(T);f[f.length-1]=j,r=r.substring(0,r.length-b.raw.length)+j.raw,c=c.substring(0,c.length-_.raw.length)+j.raw,u=T.substring(f.at(-1).raw.length).split(`
190
- `);continue}}return{type:"blockquote",raw:r,tokens:f,text:c}}}list(i){let l=this.rules.block.list.exec(i);if(l){let u=l[1].trim();const r=u.length>1,c={type:"list",raw:"",ordered:r,start:r?+u.slice(0,-1):"",loose:!1,items:[]};u=r?`\\d{1,9}\\${u.slice(-1)}`:`\\${u}`,this.options.pedantic&&(u=r?u:"[*+-]");const f=this.rules.other.listItemRegex(u);let p=!1;for(;i;){let g=!1,d="",v="";if(!(l=f.exec(i))||this.rules.block.hr.test(i))break;d=l[0],i=i.substring(d.length);let S=l[2].split(`
70
+ ${y}`:y;const S=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,f,!0),this.lexer.state.top=S,s.length===0)break;const b=f.at(-1);if((b==null?void 0:b.type)==="code")break;if((b==null?void 0:b.type)==="blockquote"){const _=b,T=_.raw+`
71
+ `+s.join(`
72
+ `),M=this.blockquote(T);f[f.length-1]=M,r=r.substring(0,r.length-_.raw.length)+M.raw,c=c.substring(0,c.length-_.text.length)+M.text;break}else if((b==null?void 0:b.type)==="list"){const _=b,T=_.raw+`
73
+ `+s.join(`
74
+ `),M=this.list(T);f[f.length-1]=M,r=r.substring(0,r.length-b.raw.length)+M.raw,c=c.substring(0,c.length-_.raw.length)+M.raw,s=T.substring(f.at(-1).raw.length).split(`
75
+ `);continue}}return{type:"blockquote",raw:r,tokens:f,text:c}}}list(i){let l=this.rules.block.list.exec(i);if(l){let s=l[1].trim();const r=s.length>1,c={type:"list",raw:"",ordered:r,start:r?+s.slice(0,-1):"",loose:!1,items:[]};s=r?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=r?s:"[*+-]");const f=this.rules.other.listItemRegex(s);let p=!1;for(;i;){let g=!1,d="",y="";if(!(l=f.exec(i))||this.rules.block.hr.test(i))break;d=l[0],i=i.substring(d.length);let S=l[2].split(`
191
76
  `,1)[0].replace(this.rules.other.listReplaceTabs,B=>" ".repeat(3*B.length)),b=i.split(`
192
- `,1)[0],_=!S.trim(),T=0;if(this.options.pedantic?(T=2,v=S.trimStart()):_?T=l[1].length+1:(T=l[2].search(this.rules.other.nonSpaceChar),T=T>4?1:T,v=S.slice(T),T+=l[1].length),_&&this.rules.other.blankLine.test(b)&&(d+=b+`
77
+ `,1)[0],_=!S.trim(),T=0;if(this.options.pedantic?(T=2,y=S.trimStart()):_?T=l[1].length+1:(T=l[2].search(this.rules.other.nonSpaceChar),T=T>4?1:T,y=S.slice(T),T+=l[1].length),_&&this.rules.other.blankLine.test(b)&&(d+=b+`
193
78
  `,i=i.substring(b.length+1),g=!0),!g){const B=this.rules.other.nextBulletRegex(T),q=this.rules.other.hrRegex(T),X=this.rules.other.fencesBeginRegex(T),F=this.rules.other.headingBeginRegex(T),Z=this.rules.other.htmlBeginRegex(T);for(;i;){const de=i.split(`
194
- `,1)[0];let le;if(b=de,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),le=b):le=b.replace(this.rules.other.tabCharGlobal," "),X.test(b)||F.test(b)||Z.test(b)||B.test(b)||q.test(b))break;if(le.search(this.rules.other.nonSpaceChar)>=T||!b.trim())v+=`
195
- `+le.slice(T);else{if(_||S.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||X.test(S)||F.test(S)||q.test(S))break;v+=`
79
+ `,1)[0];let le;if(b=de,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),le=b):le=b.replace(this.rules.other.tabCharGlobal," "),X.test(b)||F.test(b)||Z.test(b)||B.test(b)||q.test(b))break;if(le.search(this.rules.other.nonSpaceChar)>=T||!b.trim())y+=`
80
+ `+le.slice(T);else{if(_||S.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||X.test(S)||F.test(S)||q.test(S))break;y+=`
196
81
  `+b}!_&&!b.trim()&&(_=!0),d+=de+`
197
- `,i=i.substring(de.length+1),S=le.slice(T)}}c.loose||(p?c.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(p=!0));let j=null,G;this.options.gfm&&(j=this.rules.other.listIsTask.exec(v),j&&(G=j[0]!=="[ ] ",v=v.replace(this.rules.other.listReplaceTask,""))),c.items.push({type:"list_item",raw:d,task:!!j,checked:G,loose:!1,text:v,tokens:[]}),c.raw+=d}const h=c.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;c.raw=c.raw.trimEnd();for(let g=0;g<c.items.length;g++)if(this.lexer.state.top=!1,c.items[g].tokens=this.lexer.blockTokens(c.items[g].text,[]),!c.loose){const d=c.items[g].tokens.filter(S=>S.type==="space"),v=d.length>0&&d.some(S=>this.rules.other.anyLine.test(S.raw));c.loose=v}if(c.loose)for(let g=0;g<c.items.length;g++)c.items[g].loose=!0;return c}}html(i){const l=this.rules.block.html.exec(i);if(l)return{type:"html",block:!0,raw:l[0],pre:l[1]==="pre"||l[1]==="script"||l[1]==="style",text:l[0]}}def(i){const l=this.rules.block.def.exec(i);if(l){const u=l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=l[2]?l[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",c=l[3]?l[3].substring(1,l[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):l[3];return{type:"def",tag:u,raw:l[0],href:r,title:c}}}table(i){var p;const l=this.rules.block.table.exec(i);if(!l||!this.rules.other.tableDelimiter.test(l[2]))return;const u=_p(l[1]),r=l[2].replace(this.rules.other.tableAlignChars,"").split("|"),c=(p=l[3])!=null&&p.trim()?l[3].replace(this.rules.other.tableRowBlankLine,"").split(`
198
- `):[],f={type:"table",raw:l[0],header:[],align:[],rows:[]};if(u.length===r.length){for(const h of r)this.rules.other.tableAlignRight.test(h)?f.align.push("right"):this.rules.other.tableAlignCenter.test(h)?f.align.push("center"):this.rules.other.tableAlignLeft.test(h)?f.align.push("left"):f.align.push(null);for(let h=0;h<u.length;h++)f.header.push({text:u[h],tokens:this.lexer.inline(u[h]),header:!0,align:f.align[h]});for(const h of c)f.rows.push(_p(h,f.header.length).map((g,d)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[d]})));return f}}lheading(i){const l=this.rules.block.lheading.exec(i);if(l)return{type:"heading",raw:l[0],depth:l[2].charAt(0)==="="?1:2,text:l[1],tokens:this.lexer.inline(l[1])}}paragraph(i){const l=this.rules.block.paragraph.exec(i);if(l){const u=l[1].charAt(l[1].length-1)===`
199
- `?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:u,tokens:this.lexer.inline(u)}}}text(i){const l=this.rules.block.text.exec(i);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(i){const l=this.rules.inline.escape.exec(i);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(i){const l=this.rules.inline.tag.exec(i);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(i){const l=this.rules.inline.link.exec(i);if(l){const u=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(u)){if(!this.rules.other.endAngleBracket.test(u))return;const f=ti(u.slice(0,-1),"\\");if((u.length-f.length)%2===0)return}else{const f=Rx(l[2],"()");if(f===-2)return;if(f>-1){const h=(l[0].indexOf("!")===0?5:4)+l[1].length+f;l[2]=l[2].substring(0,f),l[0]=l[0].substring(0,h).trim(),l[3]=""}}let r=l[2],c="";if(this.options.pedantic){const f=this.rules.other.pedanticHrefTitle.exec(r);f&&(r=f[1],c=f[3])}else c=l[3]?l[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(u)?r=r.slice(1):r=r.slice(1,-1)),Dp(l,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:c&&c.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(i,l){let u;if((u=this.rules.inline.reflink.exec(i))||(u=this.rules.inline.nolink.exec(i))){const r=(u[2]||u[1]).replace(this.rules.other.multipleSpaceGlobal," "),c=l[r.toLowerCase()];if(!c){const f=u[0].charAt(0);return{type:"text",raw:f,text:f}}return Dp(u,c,u[0],this.lexer,this.rules)}}emStrong(i,l,u=""){let r=this.rules.inline.emStrongLDelim.exec(i);if(!r||r[3]&&u.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!u||this.rules.inline.punctuation.exec(u)){const f=[...r[0]].length-1;let p,h,g=f,d=0;const v=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,l=l.slice(-1*i.length+f);(r=v.exec(l))!=null;){if(p=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!p)continue;if(h=[...p].length,r[3]||r[4]){g+=h;continue}else if((r[5]||r[6])&&f%3&&!((f+h)%3)){d+=h;continue}if(g-=h,g>0)continue;h=Math.min(h,h+g+d);const S=[...r[0]][0].length,b=i.slice(0,f+r.index+S+h);if(Math.min(f,h)%2){const T=b.slice(1,-1);return{type:"em",raw:b,text:T,tokens:this.lexer.inlineTokens(T)}}const _=b.slice(2,-2);return{type:"strong",raw:b,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(i){const l=this.rules.inline.code.exec(i);if(l){let u=l[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(u),c=this.rules.other.startingSpaceChar.test(u)&&this.rules.other.endingSpaceChar.test(u);return r&&c&&(u=u.substring(1,u.length-1)),{type:"codespan",raw:l[0],text:u}}}br(i){const l=this.rules.inline.br.exec(i);if(l)return{type:"br",raw:l[0]}}del(i){const l=this.rules.inline.del.exec(i);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(i){const l=this.rules.inline.autolink.exec(i);if(l){let u,r;return l[2]==="@"?(u=l[1],r="mailto:"+u):(u=l[1],r=u),{type:"link",raw:l[0],text:u,href:r,tokens:[{type:"text",raw:u,text:u}]}}}url(i){var u;let l;if(l=this.rules.inline.url.exec(i)){let r,c;if(l[2]==="@")r=l[0],c="mailto:"+r;else{let f;do f=l[0],l[0]=((u=this.rules.inline._backpedal.exec(l[0]))==null?void 0:u[0])??"";while(f!==l[0]);r=l[0],l[1]==="www."?c="http://"+l[0]:c=l[0]}return{type:"link",raw:l[0],text:r,href:c,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(i){const l=this.rules.inline.text.exec(i);if(l){const u=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:u}}}},rn=class Do{constructor(l){Oe(this,"tokens");Oe(this,"options");Oe(this,"state");Oe(this,"tokenizer");Oe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=l||ua,this.options.tokenizer=this.options.tokenizer||new Gs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const u={other:st,block:ks.normal,inline:ei.normal};this.options.pedantic?(u.block=ks.pedantic,u.inline=ei.pedantic):this.options.gfm&&(u.block=ks.gfm,this.options.breaks?u.inline=ei.breaks:u.inline=ei.gfm),this.tokenizer.rules=u}static get rules(){return{block:ks,inline:ei}}static lex(l,u){return new Do(u).lex(l)}static lexInline(l,u){return new Do(u).inlineTokens(l)}lex(l){l=l.replace(st.carriageReturn,`
200
- `),this.blockTokens(l,this.tokens);for(let u=0;u<this.inlineQueue.length;u++){const r=this.inlineQueue[u];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,u=[],r=!1){var c,f,p;for(this.options.pedantic&&(l=l.replace(st.tabCharGlobal," ").replace(st.spaceLine,""));l;){let h;if((f=(c=this.options.extensions)==null?void 0:c.block)!=null&&f.some(d=>(h=d.call({lexer:this},l,u))?(l=l.substring(h.raw.length),u.push(h),!0):!1))continue;if(h=this.tokenizer.space(l)){l=l.substring(h.raw.length);const d=u.at(-1);h.raw.length===1&&d!==void 0?d.raw+=`
201
- `:u.push(h);continue}if(h=this.tokenizer.code(l)){l=l.substring(h.raw.length);const d=u.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=`
82
+ `,i=i.substring(de.length+1),S=le.slice(T)}}c.loose||(p?c.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(p=!0));let M=null,G;this.options.gfm&&(M=this.rules.other.listIsTask.exec(y),M&&(G=M[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),c.items.push({type:"list_item",raw:d,task:!!M,checked:G,loose:!1,text:y,tokens:[]}),c.raw+=d}const h=c.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;c.raw=c.raw.trimEnd();for(let g=0;g<c.items.length;g++)if(this.lexer.state.top=!1,c.items[g].tokens=this.lexer.blockTokens(c.items[g].text,[]),!c.loose){const d=c.items[g].tokens.filter(S=>S.type==="space"),y=d.length>0&&d.some(S=>this.rules.other.anyLine.test(S.raw));c.loose=y}if(c.loose)for(let g=0;g<c.items.length;g++)c.items[g].loose=!0;return c}}html(i){const l=this.rules.block.html.exec(i);if(l)return{type:"html",block:!0,raw:l[0],pre:l[1]==="pre"||l[1]==="script"||l[1]==="style",text:l[0]}}def(i){const l=this.rules.block.def.exec(i);if(l){const s=l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=l[2]?l[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",c=l[3]?l[3].substring(1,l[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):l[3];return{type:"def",tag:s,raw:l[0],href:r,title:c}}}table(i){var p;const l=this.rules.block.table.exec(i);if(!l||!this.rules.other.tableDelimiter.test(l[2]))return;const s=_p(l[1]),r=l[2].replace(this.rules.other.tableAlignChars,"").split("|"),c=(p=l[3])!=null&&p.trim()?l[3].replace(this.rules.other.tableRowBlankLine,"").split(`
83
+ `):[],f={type:"table",raw:l[0],header:[],align:[],rows:[]};if(s.length===r.length){for(const h of r)this.rules.other.tableAlignRight.test(h)?f.align.push("right"):this.rules.other.tableAlignCenter.test(h)?f.align.push("center"):this.rules.other.tableAlignLeft.test(h)?f.align.push("left"):f.align.push(null);for(let h=0;h<s.length;h++)f.header.push({text:s[h],tokens:this.lexer.inline(s[h]),header:!0,align:f.align[h]});for(const h of c)f.rows.push(_p(h,f.header.length).map((g,d)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[d]})));return f}}lheading(i){const l=this.rules.block.lheading.exec(i);if(l)return{type:"heading",raw:l[0],depth:l[2].charAt(0)==="="?1:2,text:l[1],tokens:this.lexer.inline(l[1])}}paragraph(i){const l=this.rules.block.paragraph.exec(i);if(l){const s=l[1].charAt(l[1].length-1)===`
84
+ `?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:s,tokens:this.lexer.inline(s)}}}text(i){const l=this.rules.block.text.exec(i);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(i){const l=this.rules.inline.escape.exec(i);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(i){const l=this.rules.inline.tag.exec(i);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(i){const l=this.rules.inline.link.exec(i);if(l){const s=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;const f=ti(s.slice(0,-1),"\\");if((s.length-f.length)%2===0)return}else{const f=Rx(l[2],"()");if(f===-2)return;if(f>-1){const h=(l[0].indexOf("!")===0?5:4)+l[1].length+f;l[2]=l[2].substring(0,f),l[0]=l[0].substring(0,h).trim(),l[3]=""}}let r=l[2],c="";if(this.options.pedantic){const f=this.rules.other.pedanticHrefTitle.exec(r);f&&(r=f[1],c=f[3])}else c=l[3]?l[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?r=r.slice(1):r=r.slice(1,-1)),Dp(l,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:c&&c.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(i,l){let s;if((s=this.rules.inline.reflink.exec(i))||(s=this.rules.inline.nolink.exec(i))){const r=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),c=l[r.toLowerCase()];if(!c){const f=s[0].charAt(0);return{type:"text",raw:f,text:f}}return Dp(s,c,s[0],this.lexer,this.rules)}}emStrong(i,l,s=""){let r=this.rules.inline.emStrongLDelim.exec(i);if(!r||r[3]&&s.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const f=[...r[0]].length-1;let p,h,g=f,d=0;const y=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,l=l.slice(-1*i.length+f);(r=y.exec(l))!=null;){if(p=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!p)continue;if(h=[...p].length,r[3]||r[4]){g+=h;continue}else if((r[5]||r[6])&&f%3&&!((f+h)%3)){d+=h;continue}if(g-=h,g>0)continue;h=Math.min(h,h+g+d);const S=[...r[0]][0].length,b=i.slice(0,f+r.index+S+h);if(Math.min(f,h)%2){const T=b.slice(1,-1);return{type:"em",raw:b,text:T,tokens:this.lexer.inlineTokens(T)}}const _=b.slice(2,-2);return{type:"strong",raw:b,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(i){const l=this.rules.inline.code.exec(i);if(l){let s=l[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(s),c=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return r&&c&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:l[0],text:s}}}br(i){const l=this.rules.inline.br.exec(i);if(l)return{type:"br",raw:l[0]}}del(i){const l=this.rules.inline.del.exec(i);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(i){const l=this.rules.inline.autolink.exec(i);if(l){let s,r;return l[2]==="@"?(s=l[1],r="mailto:"+s):(s=l[1],r=s),{type:"link",raw:l[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}url(i){var s;let l;if(l=this.rules.inline.url.exec(i)){let r,c;if(l[2]==="@")r=l[0],c="mailto:"+r;else{let f;do f=l[0],l[0]=((s=this.rules.inline._backpedal.exec(l[0]))==null?void 0:s[0])??"";while(f!==l[0]);r=l[0],l[1]==="www."?c="http://"+l[0]:c=l[0]}return{type:"link",raw:l[0],text:r,href:c,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(i){const l=this.rules.inline.text.exec(i);if(l){const s=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:s}}}},rn=class Do{constructor(l){Ae(this,"tokens");Ae(this,"options");Ae(this,"state");Ae(this,"tokenizer");Ae(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=l||sa,this.options.tokenizer=this.options.tokenizer||new Gu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const s={other:it,block:zu.normal,inline:ei.normal};this.options.pedantic?(s.block=zu.pedantic,s.inline=ei.pedantic):this.options.gfm&&(s.block=zu.gfm,this.options.breaks?s.inline=ei.breaks:s.inline=ei.gfm),this.tokenizer.rules=s}static get rules(){return{block:zu,inline:ei}}static lex(l,s){return new Do(s).lex(l)}static lexInline(l,s){return new Do(s).inlineTokens(l)}lex(l){l=l.replace(it.carriageReturn,`
85
+ `),this.blockTokens(l,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){const r=this.inlineQueue[s];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,s=[],r=!1){var c,f,p;for(this.options.pedantic&&(l=l.replace(it.tabCharGlobal," ").replace(it.spaceLine,""));l;){let h;if((f=(c=this.options.extensions)==null?void 0:c.block)!=null&&f.some(d=>(h=d.call({lexer:this},l,s))?(l=l.substring(h.raw.length),s.push(h),!0):!1))continue;if(h=this.tokenizer.space(l)){l=l.substring(h.raw.length);const d=s.at(-1);h.raw.length===1&&d!==void 0?d.raw+=`
86
+ `:s.push(h);continue}if(h=this.tokenizer.code(l)){l=l.substring(h.raw.length);const d=s.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=`
202
87
  `+h.raw,d.text+=`
203
- `+h.text,this.inlineQueue.at(-1).src=d.text):u.push(h);continue}if(h=this.tokenizer.fences(l)){l=l.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.heading(l)){l=l.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.hr(l)){l=l.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.blockquote(l)){l=l.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.list(l)){l=l.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.html(l)){l=l.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.def(l)){l=l.substring(h.raw.length);const d=u.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=`
88
+ `+h.text,this.inlineQueue.at(-1).src=d.text):s.push(h);continue}if(h=this.tokenizer.fences(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.heading(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.hr(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.blockquote(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.list(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.html(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.def(l)){l=l.substring(h.raw.length);const d=s.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=`
204
89
  `+h.raw,d.text+=`
205
- `+h.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title});continue}if(h=this.tokenizer.table(l)){l=l.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.lheading(l)){l=l.substring(h.raw.length),u.push(h);continue}let g=l;if((p=this.options.extensions)!=null&&p.startBlock){let d=1/0;const v=l.slice(1);let S;this.options.extensions.startBlock.forEach(b=>{S=b.call({lexer:this},v),typeof S=="number"&&S>=0&&(d=Math.min(d,S))}),d<1/0&&d>=0&&(g=l.substring(0,d+1))}if(this.state.top&&(h=this.tokenizer.paragraph(g))){const d=u.at(-1);r&&(d==null?void 0:d.type)==="paragraph"?(d.raw+=`
90
+ `+h.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title});continue}if(h=this.tokenizer.table(l)){l=l.substring(h.raw.length),s.push(h);continue}if(h=this.tokenizer.lheading(l)){l=l.substring(h.raw.length),s.push(h);continue}let g=l;if((p=this.options.extensions)!=null&&p.startBlock){let d=1/0;const y=l.slice(1);let S;this.options.extensions.startBlock.forEach(b=>{S=b.call({lexer:this},y),typeof S=="number"&&S>=0&&(d=Math.min(d,S))}),d<1/0&&d>=0&&(g=l.substring(0,d+1))}if(this.state.top&&(h=this.tokenizer.paragraph(g))){const d=s.at(-1);r&&(d==null?void 0:d.type)==="paragraph"?(d.raw+=`
206
91
  `+h.raw,d.text+=`
207
- `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):u.push(h),r=g.length!==l.length,l=l.substring(h.raw.length);continue}if(h=this.tokenizer.text(l)){l=l.substring(h.raw.length);const d=u.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=`
92
+ `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):s.push(h),r=g.length!==l.length,l=l.substring(h.raw.length);continue}if(h=this.tokenizer.text(l)){l=l.substring(h.raw.length);const d=s.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=`
208
93
  `+h.raw,d.text+=`
209
- `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):u.push(h);continue}if(l){const d="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,u}inline(l,u=[]){return this.inlineQueue.push({src:l,tokens:u}),u}inlineTokens(l,u=[]){var h,g,d;let r=l,c=null;if(this.tokens.links){const v=Object.keys(this.tokens.links);if(v.length>0)for(;(c=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)v.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(c=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,c.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(c=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,p="";for(;l;){f||(p=""),f=!1;let v;if((g=(h=this.options.extensions)==null?void 0:h.inline)!=null&&g.some(b=>(v=b.call({lexer:this},l,u))?(l=l.substring(v.raw.length),u.push(v),!0):!1))continue;if(v=this.tokenizer.escape(l)){l=l.substring(v.raw.length),u.push(v);continue}if(v=this.tokenizer.tag(l)){l=l.substring(v.raw.length),u.push(v);continue}if(v=this.tokenizer.link(l)){l=l.substring(v.raw.length),u.push(v);continue}if(v=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(v.raw.length);const b=u.at(-1);v.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=v.raw,b.text+=v.text):u.push(v);continue}if(v=this.tokenizer.emStrong(l,r,p)){l=l.substring(v.raw.length),u.push(v);continue}if(v=this.tokenizer.codespan(l)){l=l.substring(v.raw.length),u.push(v);continue}if(v=this.tokenizer.br(l)){l=l.substring(v.raw.length),u.push(v);continue}if(v=this.tokenizer.del(l)){l=l.substring(v.raw.length),u.push(v);continue}if(v=this.tokenizer.autolink(l)){l=l.substring(v.raw.length),u.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(l))){l=l.substring(v.raw.length),u.push(v);continue}let S=l;if((d=this.options.extensions)!=null&&d.startInline){let b=1/0;const _=l.slice(1);let T;this.options.extensions.startInline.forEach(j=>{T=j.call({lexer:this},_),typeof T=="number"&&T>=0&&(b=Math.min(b,T))}),b<1/0&&b>=0&&(S=l.substring(0,b+1))}if(v=this.tokenizer.inlineText(S)){l=l.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(p=v.raw.slice(-1)),f=!0;const b=u.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=v.raw,b.text+=v.text):u.push(v);continue}if(l){const b="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw new Error(b)}}return u}},$s=class{constructor(i){Oe(this,"options");Oe(this,"parser");this.options=i||ua}space(i){return""}code({text:i,lang:l,escaped:u}){var f;const r=(f=(l||"").match(st.notSpaceStart))==null?void 0:f[0],c=i.replace(st.endingNewline,"")+`
210
- `;return r?'<pre><code class="language-'+Vt(r)+'">'+(u?c:Vt(c,!0))+`</code></pre>
211
- `:"<pre><code>"+(u?c:Vt(c,!0))+`</code></pre>
94
+ `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):s.push(h);continue}if(l){const d="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,s}inline(l,s=[]){return this.inlineQueue.push({src:l,tokens:s}),s}inlineTokens(l,s=[]){var h,g,d;let r=l,c=null;if(this.tokens.links){const y=Object.keys(this.tokens.links);if(y.length>0)for(;(c=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)y.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(c=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,c.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(c=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,p="";for(;l;){f||(p=""),f=!1;let y;if((g=(h=this.options.extensions)==null?void 0:h.inline)!=null&&g.some(b=>(y=b.call({lexer:this},l,s))?(l=l.substring(y.raw.length),s.push(y),!0):!1))continue;if(y=this.tokenizer.escape(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.tag(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.link(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(y.raw.length);const b=s.at(-1);y.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=y.raw,b.text+=y.text):s.push(y);continue}if(y=this.tokenizer.emStrong(l,r,p)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.codespan(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.br(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.del(l)){l=l.substring(y.raw.length),s.push(y);continue}if(y=this.tokenizer.autolink(l)){l=l.substring(y.raw.length),s.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(l))){l=l.substring(y.raw.length),s.push(y);continue}let S=l;if((d=this.options.extensions)!=null&&d.startInline){let b=1/0;const _=l.slice(1);let T;this.options.extensions.startInline.forEach(M=>{T=M.call({lexer:this},_),typeof T=="number"&&T>=0&&(b=Math.min(b,T))}),b<1/0&&b>=0&&(S=l.substring(0,b+1))}if(y=this.tokenizer.inlineText(S)){l=l.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(p=y.raw.slice(-1)),f=!0;const b=s.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=y.raw,b.text+=y.text):s.push(y);continue}if(l){const b="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw new Error(b)}}return s}},$u=class{constructor(i){Ae(this,"options");Ae(this,"parser");this.options=i||sa}space(i){return""}code({text:i,lang:l,escaped:s}){var f;const r=(f=(l||"").match(it.notSpaceStart))==null?void 0:f[0],c=i.replace(it.endingNewline,"")+`
95
+ `;return r?'<pre><code class="language-'+Vt(r)+'">'+(s?c:Vt(c,!0))+`</code></pre>
96
+ `:"<pre><code>"+(s?c:Vt(c,!0))+`</code></pre>
212
97
  `}blockquote({tokens:i}){return`<blockquote>
213
98
  ${this.parser.parse(i)}</blockquote>
214
99
  `}html({text:i}){return i}heading({tokens:i,depth:l}){return`<h${l}>${this.parser.parseInline(i)}</h${l}>
215
100
  `}hr(i){return`<hr>
216
- `}list(i){const l=i.ordered,u=i.start;let r="";for(let p=0;p<i.items.length;p++){const h=i.items[p];r+=this.listitem(h)}const c=l?"ol":"ul",f=l&&u!==1?' start="'+u+'"':"";return"<"+c+f+`>
101
+ `}list(i){const l=i.ordered,s=i.start;let r="";for(let p=0;p<i.items.length;p++){const h=i.items[p];r+=this.listitem(h)}const c=l?"ol":"ul",f=l&&s!==1?' start="'+s+'"':"";return"<"+c+f+`>
217
102
  `+r+"</"+c+`>
218
- `}listitem(i){var u;let l="";if(i.task){const r=this.checkbox({checked:!!i.checked});i.loose?((u=i.tokens[0])==null?void 0:u.type)==="paragraph"?(i.tokens[0].text=r+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=r+" "+Vt(i.tokens[0].tokens[0].text),i.tokens[0].tokens[0].escaped=!0)):i.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):l+=r+" "}return l+=this.parser.parse(i.tokens,!!i.loose),`<li>${l}</li>
103
+ `}listitem(i){var s;let l="";if(i.task){const r=this.checkbox({checked:!!i.checked});i.loose?((s=i.tokens[0])==null?void 0:s.type)==="paragraph"?(i.tokens[0].text=r+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=r+" "+Vt(i.tokens[0].tokens[0].text),i.tokens[0].tokens[0].escaped=!0)):i.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):l+=r+" "}return l+=this.parser.parse(i.tokens,!!i.loose),`<li>${l}</li>
219
104
  `}checkbox({checked:i}){return"<input "+(i?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:i}){return`<p>${this.parser.parseInline(i)}</p>
220
- `}table(i){let l="",u="";for(let c=0;c<i.header.length;c++)u+=this.tablecell(i.header[c]);l+=this.tablerow({text:u});let r="";for(let c=0;c<i.rows.length;c++){const f=i.rows[c];u="";for(let p=0;p<f.length;p++)u+=this.tablecell(f[p]);r+=this.tablerow({text:u})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
105
+ `}table(i){let l="",s="";for(let c=0;c<i.header.length;c++)s+=this.tablecell(i.header[c]);l+=this.tablerow({text:s});let r="";for(let c=0;c<i.rows.length;c++){const f=i.rows[c];s="";for(let p=0;p<f.length;p++)s+=this.tablecell(f[p]);r+=this.tablerow({text:s})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
221
106
  <thead>
222
107
  `+l+`</thead>
223
108
  `+r+`</table>
224
109
  `}tablerow({text:i}){return`<tr>
225
110
  ${i}</tr>
226
- `}tablecell(i){const l=this.parser.parseInline(i.tokens),u=i.header?"th":"td";return(i.align?`<${u} align="${i.align}">`:`<${u}>`)+l+`</${u}>
227
- `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Vt(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:l,tokens:u}){const r=this.parser.parseInline(u),c=zp(i);if(c===null)return r;i=c;let f='<a href="'+i+'"';return l&&(f+=' title="'+Vt(l)+'"'),f+=">"+r+"</a>",f}image({href:i,title:l,text:u,tokens:r}){r&&(u=this.parser.parseInline(r,this.parser.textRenderer));const c=zp(i);if(c===null)return Vt(u);i=c;let f=`<img src="${i}" alt="${u}"`;return l&&(f+=` title="${Vt(l)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Vt(i.text)}},ec=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},on=class jo{constructor(l){Oe(this,"options");Oe(this,"renderer");Oe(this,"textRenderer");this.options=l||ua,this.options.renderer=this.options.renderer||new $s,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ec}static parse(l,u){return new jo(u).parse(l)}static parseInline(l,u){return new jo(u).parseInline(l)}parse(l,u=!0){var c,f;let r="";for(let p=0;p<l.length;p++){const h=l[p];if((f=(c=this.options.extensions)==null?void 0:c.renderers)!=null&&f[h.type]){const d=h,v=this.options.extensions.renderers[d.type].call({parser:this},d);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)){r+=v||"";continue}}const g=h;switch(g.type){case"space":{r+=this.renderer.space(g);continue}case"hr":{r+=this.renderer.hr(g);continue}case"heading":{r+=this.renderer.heading(g);continue}case"code":{r+=this.renderer.code(g);continue}case"table":{r+=this.renderer.table(g);continue}case"blockquote":{r+=this.renderer.blockquote(g);continue}case"list":{r+=this.renderer.list(g);continue}case"html":{r+=this.renderer.html(g);continue}case"paragraph":{r+=this.renderer.paragraph(g);continue}case"text":{let d=g,v=this.renderer.text(d);for(;p+1<l.length&&l[p+1].type==="text";)d=l[++p],v+=`
228
- `+this.renderer.text(d);u?r+=this.renderer.paragraph({type:"paragraph",raw:v,text:v,tokens:[{type:"text",raw:v,text:v,escaped:!0}]}):r+=v;continue}default:{const d='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return r}parseInline(l,u=this.renderer){var c,f;let r="";for(let p=0;p<l.length;p++){const h=l[p];if((f=(c=this.options.extensions)==null?void 0:c.renderers)!=null&&f[h.type]){const d=this.options.extensions.renderers[h.type].call({parser:this},h);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){r+=d||"";continue}}const g=h;switch(g.type){case"escape":{r+=u.text(g);break}case"html":{r+=u.html(g);break}case"link":{r+=u.link(g);break}case"image":{r+=u.image(g);break}case"strong":{r+=u.strong(g);break}case"em":{r+=u.em(g);break}case"codespan":{r+=u.codespan(g);break}case"br":{r+=u.br(g);break}case"del":{r+=u.del(g);break}case"text":{r+=u.text(g);break}default:{const d='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return r}},Ro,Ms=(Ro=class{constructor(i){Oe(this,"options");Oe(this,"block");this.options=i||ua}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}provideLexer(){return this.block?rn.lex:rn.lexInline}provideParser(){return this.block?on.parse:on.parseInline}},Oe(Ro,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Ro),Nx=class{constructor(...i){Oe(this,"defaults",Xo());Oe(this,"options",this.setOptions);Oe(this,"parse",this.parseMarkdown(!0));Oe(this,"parseInline",this.parseMarkdown(!1));Oe(this,"Parser",on);Oe(this,"Renderer",$s);Oe(this,"TextRenderer",ec);Oe(this,"Lexer",rn);Oe(this,"Tokenizer",Gs);Oe(this,"Hooks",Ms);this.use(...i)}walkTokens(i,l){var r,c;let u=[];for(const f of i)switch(u=u.concat(l.call(this,f)),f.type){case"table":{const p=f;for(const h of p.header)u=u.concat(this.walkTokens(h.tokens,l));for(const h of p.rows)for(const g of h)u=u.concat(this.walkTokens(g.tokens,l));break}case"list":{const p=f;u=u.concat(this.walkTokens(p.items,l));break}default:{const p=f;(c=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&c[p.type]?this.defaults.extensions.childTokens[p.type].forEach(h=>{const g=p[h].flat(1/0);u=u.concat(this.walkTokens(g,l))}):p.tokens&&(u=u.concat(this.walkTokens(p.tokens,l)))}}return u}use(...i){const l=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(u=>{const r={...u};if(r.async=this.defaults.async||r.async||!1,u.extensions&&(u.extensions.forEach(c=>{if(!c.name)throw new Error("extension name required");if("renderer"in c){const f=l.renderers[c.name];f?l.renderers[c.name]=function(...p){let h=c.renderer.apply(this,p);return h===!1&&(h=f.apply(this,p)),h}:l.renderers[c.name]=c.renderer}if("tokenizer"in c){if(!c.level||c.level!=="block"&&c.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=l[c.level];f?f.unshift(c.tokenizer):l[c.level]=[c.tokenizer],c.start&&(c.level==="block"?l.startBlock?l.startBlock.push(c.start):l.startBlock=[c.start]:c.level==="inline"&&(l.startInline?l.startInline.push(c.start):l.startInline=[c.start]))}"childTokens"in c&&c.childTokens&&(l.childTokens[c.name]=c.childTokens)}),r.extensions=l),u.renderer){const c=this.defaults.renderer||new $s(this.defaults);for(const f in u.renderer){if(!(f in c))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;const p=f,h=u.renderer[p],g=c[p];c[p]=(...d)=>{let v=h.apply(c,d);return v===!1&&(v=g.apply(c,d)),v||""}}r.renderer=c}if(u.tokenizer){const c=this.defaults.tokenizer||new Gs(this.defaults);for(const f in u.tokenizer){if(!(f in c))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;const p=f,h=u.tokenizer[p],g=c[p];c[p]=(...d)=>{let v=h.apply(c,d);return v===!1&&(v=g.apply(c,d)),v}}r.tokenizer=c}if(u.hooks){const c=this.defaults.hooks||new Ms;for(const f in u.hooks){if(!(f in c))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;const p=f,h=u.hooks[p],g=c[p];Ms.passThroughHooks.has(f)?c[p]=d=>{if(this.defaults.async)return Promise.resolve(h.call(c,d)).then(S=>g.call(c,S));const v=h.call(c,d);return g.call(c,v)}:c[p]=(...d)=>{let v=h.apply(c,d);return v===!1&&(v=g.apply(c,d)),v}}r.hooks=c}if(u.walkTokens){const c=this.defaults.walkTokens,f=u.walkTokens;r.walkTokens=function(p){let h=[];return h.push(f.call(this,p)),c&&(h=h.concat(c.call(this,p))),h}}this.defaults={...this.defaults,...r}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,l){return rn.lex(i,l??this.defaults)}parser(i,l){return on.parse(i,l??this.defaults)}parseMarkdown(i){return(u,r)=>{const c={...r},f={...this.defaults,...c},p=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&c.async===!1)return p(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof u>"u"||u===null)return p(new Error("marked(): input parameter is undefined or null"));if(typeof u!="string")return p(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(u)+", string expected"));f.hooks&&(f.hooks.options=f,f.hooks.block=i);const h=f.hooks?f.hooks.provideLexer():i?rn.lex:rn.lexInline,g=f.hooks?f.hooks.provideParser():i?on.parse:on.parseInline;if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(u):u).then(d=>h(d,f)).then(d=>f.hooks?f.hooks.processAllTokens(d):d).then(d=>f.walkTokens?Promise.all(this.walkTokens(d,f.walkTokens)).then(()=>d):d).then(d=>g(d,f)).then(d=>f.hooks?f.hooks.postprocess(d):d).catch(p);try{f.hooks&&(u=f.hooks.preprocess(u));let d=h(u,f);f.hooks&&(d=f.hooks.processAllTokens(d)),f.walkTokens&&this.walkTokens(d,f.walkTokens);let v=g(d,f);return f.hooks&&(v=f.hooks.postprocess(v)),v}catch(d){return p(d)}}}onError(i,l){return u=>{if(u.message+=`
229
- Please report this to https://github.com/markedjs/marked.`,i){const r="<p>An error occurred:</p><pre>"+Vt(u.message+"",!0)+"</pre>";return l?Promise.resolve(r):r}if(l)return Promise.reject(u);throw u}}},la=new Nx;function Ee(i,l){return la.parse(i,l)}Ee.options=Ee.setOptions=function(i){return la.setOptions(i),Ee.defaults=la.defaults,sg(Ee.defaults),Ee};Ee.getDefaults=Xo;Ee.defaults=ua;Ee.use=function(...i){return la.use(...i),Ee.defaults=la.defaults,sg(Ee.defaults),Ee};Ee.walkTokens=function(i,l){return la.walkTokens(i,l)};Ee.parseInline=la.parseInline;Ee.Parser=on;Ee.parser=on.parse;Ee.Renderer=$s;Ee.TextRenderer=ec;Ee.Lexer=rn;Ee.lexer=rn.lex;Ee.Tokenizer=Gs;Ee.Hooks=Ms;Ee.parse=Ee;Ee.options;Ee.setOptions;Ee.use;Ee.walkTokens;Ee.parseInline;on.parse;rn.lex;function Ox(i){if(!i)return"";try{return Ee.parse(i,{async:!1,gfm:!0,breaks:!0})}catch(l){return console.error("Error rendering markdown:",l),i}}function fi({content:i,title:l,variant:u="default",className:r="",children:c}){const f=["Explanation",`Explanation-${u}`,r].filter(Boolean).join(" ");return E.jsxs("div",{className:f,children:[l&&E.jsx("h3",{className:"Explanation-title",children:l}),E.jsx("div",{className:"Explanation-content markdown-content",dangerouslySetInnerHTML:{__html:Ox(i)}}),c]})}function Ax({isOpen:i,title:l,message:u,confirmLabel:r,cancelLabel:c,onConfirm:f,onCancel:p}){const{t:h}=at(),[g,d]=O.useState(!0);if(!i)return null;const v=async()=>{await f({withSampleData:g})},S=b=>{b.key==="Escape"&&p()};return E.jsxs("div",{className:"ConfirmDialog",children:[E.jsx("div",{className:"ConfirmDialog-backdrop",onClick:p,onKeyDown:S,tabIndex:0,role:"button","aria-label":"Close dialog"}),E.jsxs("div",{className:"ConfirmDialog-container",children:[E.jsx("div",{className:"ConfirmDialog-header",children:E.jsx("h3",{className:"ConfirmDialog-title",children:l})}),E.jsxs("div",{className:"ConfirmDialog-body",children:[E.jsx("p",{children:u}),E.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:g,onChange:b=>d(b.target.checked)}),E.jsx("span",{className:"ml-2",children:h("generateSiteWithData")})]})})]}),E.jsxs("div",{className:"ConfirmDialog-footer",children:[E.jsx(tt,{onClick:p,severity:"secondary",className:"ConfirmDialog-button",children:c||h("cancel")}),E.jsx(tt,{onClick:v,className:"ConfirmDialog-button",children:r||h("confirm")})]})]})]})}const Cx=i=>typeof i=="boolean"||i instanceof Boolean,kx=i=>typeof i=="number"||i instanceof Number,zx=i=>typeof i=="bigint"||i instanceof BigInt,yg=i=>!!i&&i instanceof Date,_x=i=>typeof i=="string"||i instanceof String,Dx=i=>Array.isArray(i),jx=i=>typeof i=="object"&&i!==null,vg=i=>!!i&&i instanceof Object&&typeof i=="function";function Ys(i,l){return l===void 0&&(l=!1),!i||l?`"${i}"`:i}function Mx(i,l,u){return u?JSON.stringify(i):l?`"${i}"`:i}function bg(i){let{field:l,value:u,data:r,lastElement:c,openBracket:f,closeBracket:p,level:h,style:g,shouldExpandNode:d,clickToExpandNode:v,outerRef:S,beforeExpandChange:b}=i;const _=O.useRef(!1),[T,j]=O.useState(()=>d(h,u,l)),G=O.useRef(null);O.useEffect(()=>{_.current?j(d(h,u,l)):_.current=!0},[d]);const B=O.useId();if(r.length===0)return Lx({field:l,openBracket:f,closeBracket:p,lastElement:c,style:g});const q=T?g.collapseIcon:g.expandIcon,X=T?g.ariaLables.collapseJson:g.ariaLables.expandJson,F=h+1,Z=r.length-1,de=Q=>{T!==Q&&(!b||b({level:h,value:u,field:l,newExpandValue:Q}))&&j(Q)},le=Q=>{if(Q.key==="ArrowRight"||Q.key==="ArrowLeft")Q.preventDefault(),de(Q.key==="ArrowRight");else if(Q.key==="ArrowUp"||Q.key==="ArrowDown"){Q.preventDefault();const ee=Q.key==="ArrowUp"?-1:1;if(!S.current)return;const he=S.current.querySelectorAll("[role=button]");let De=-1;for(let Ce=0;Ce<he.length;Ce++)if(he[Ce].tabIndex===0){De=Ce;break}if(De<0)return;const Ue=(De+ee+he.length)%he.length;he[De].tabIndex=-1,he[Ue].tabIndex=0,he[Ue].focus()}},ie=()=>{var Q;de(!T);const ee=G.current;if(!ee)return;const he=(Q=S.current)===null||Q===void 0?void 0:Q.querySelector('[role=button][tabindex="0"]');he&&(he.tabIndex=-1),ee.tabIndex=0,ee.focus()};return O.createElement("div",{className:g.basicChildStyle,role:"treeitem","aria-expanded":T,"aria-selected":void 0},O.createElement("span",{className:q,onClick:ie,onKeyDown:le,role:"button","aria-label":X,"aria-expanded":T,"aria-controls":T?B:void 0,ref:G,tabIndex:h===0?0:-1}),(l||l==="")&&(v?O.createElement("span",{className:g.clickableLabel,onClick:ie,onKeyDown:le},Ys(l,g.quotesForFieldNames),":"):O.createElement("span",{className:g.label},Ys(l,g.quotesForFieldNames),":")),O.createElement("span",{className:g.punctuation},f),T?O.createElement("ul",{id:B,role:"group",className:g.childFieldsContainer},r.map((Q,ee)=>O.createElement(Sg,{key:Q[0]||ee,field:Q[0],value:Q[1],style:g,lastElement:ee===Z,level:F,shouldExpandNode:d,clickToExpandNode:v,outerRef:S}))):O.createElement("span",{className:g.collapsedContent,onClick:ie,onKeyDown:le}),O.createElement("span",{className:g.punctuation},p),!c&&O.createElement("span",{className:g.punctuation},","))}function Lx(i){let{field:l,openBracket:u,closeBracket:r,lastElement:c,style:f}=i;return O.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&O.createElement("span",{className:f.label},Ys(l,f.quotesForFieldNames),":"),O.createElement("span",{className:f.punctuation},u),O.createElement("span",{className:f.punctuation},r),!c&&O.createElement("span",{className:f.punctuation},","))}function Ux(i){let{field:l,value:u,style:r,lastElement:c,shouldExpandNode:f,clickToExpandNode:p,level:h,outerRef:g,beforeExpandChange:d}=i;return bg({field:l,value:u,lastElement:c||!1,level:h,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:f,clickToExpandNode:p,data:Object.keys(u).map(v=>[v,u[v]]),outerRef:g,beforeExpandChange:d})}function Hx(i){let{field:l,value:u,style:r,lastElement:c,level:f,shouldExpandNode:p,clickToExpandNode:h,outerRef:g,beforeExpandChange:d}=i;return bg({field:l,value:u,lastElement:c||!1,level:f,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:p,clickToExpandNode:h,data:u.map(v=>[void 0,v]),outerRef:g,beforeExpandChange:d})}function Bx(i){let{field:l,value:u,style:r,lastElement:c}=i,f,p=r.otherValue;return u===null?(f="null",p=r.nullValue):u===void 0?(f="undefined",p=r.undefinedValue):_x(u)?(f=Mx(u,!r.noQuotesForStringValues,r.stringifyStringValues),p=r.stringValue):Cx(u)?(f=u?"true":"false",p=r.booleanValue):kx(u)?(f=u.toString(),p=r.numberValue):zx(u)?(f=`${u.toString()}n`,p=r.numberValue):yg(u)?f=u.toISOString():vg(u)?f="function() { }":f=u.toString(),O.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&O.createElement("span",{className:r.label},Ys(l,r.quotesForFieldNames),":"),O.createElement("span",{className:p},f),!c&&O.createElement("span",{className:r.punctuation},","))}function Sg(i){const l=i.value;return Dx(l)?O.createElement(Hx,Object.assign({},i)):jx(l)&&!yg(l)&&!vg(l)?O.createElement(Ux,Object.assign({},i)):O.createElement(Bx,Object.assign({},i))}var it={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti"};const qx={collapseJson:"collapse JSON",expandJson:"expand JSON"},jp={container:it["container-light"],basicChildStyle:it["basic-element-style"],childFieldsContainer:it["child-fields-container"],label:it["label-light"],clickableLabel:it["clickable-label-light"],nullValue:it["value-null-light"],undefinedValue:it["value-undefined-light"],stringValue:it["value-string-light"],booleanValue:it["value-boolean-light"],numberValue:it["value-number-light"],otherValue:it["value-other-light"],punctuation:it["punctuation-light"],collapseIcon:it["collapse-icon-light"],expandIcon:it["expand-icon-light"],collapsedContent:it["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:qx,stringifyStringValues:!1},Gx=()=>!0,Mp=i=>{let{data:l,style:u=jp,shouldExpandNode:r=Gx,clickToExpandNode:c=!1,beforeExpandChange:f,...p}=i;const h=O.useRef(null);return O.createElement("div",Object.assign({"aria-label":"JSON view"},p,{className:u.container,ref:h,role:"tree"}),O.createElement(Sg,{value:l,style:{...jp,...u},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:c,outerRef:h,beforeExpandChange:f}))};function $x(i){const l=Object.keys(i),u=l.length>0?l[0]:void 0;return(r,c,f={})=>{if(!u)return f.default??r;const p=i[c]??i[u],h=r.split(".");let g=p;for(const d of h){if(typeof g=="string"||!g||!(d in g))return f.default??r;g=g[d]}return typeof g=="string"?g:f.default??r}}function Yx({siteSchema:i,schemaTranslate:l}){const u=new Set;return E.jsx("ul",{children:E.jsx(Mo,{schema:i,schemaT:l,typeName:"home",displayedNodeTypeNames:u})})}function Mo({schema:i,schemaT:l,typeName:u,depth:r=0,displayedNodeTypeNames:c}){const{i18n:f}=at(),p=Vx(i,u);if(!p)return null;const h=p.routingChildren||[],g=p.regularChildren||[],d=p.lists||[],v=p.documentKind==="routing",S=l(`nodeTypes.${u}.label`,f.language,{default:u});return c.has(u)?E.jsx("li",{children:E.jsxs("div",{children:[v?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:u}),")"]})}):(c.add(u),E.jsxs("li",{children:[E.jsxs("div",{children:[v?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:u}),")"]}),d.map(b=>E.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[l(`nodeTypes.${u}.lists.${b.listName}.label`,f.language,{default:b.listName})," ","(",E.jsx("code",{children:b.listName})," [",E.jsx("code",{children:b.parts.join("</code>, <code>")}),"])"]},b.listName)),h.length>0&&E.jsx("ul",{children:h.map(b=>E.jsx(Mo,{schema:i,schemaT:l,typeName:b,depth:r+1,displayedNodeTypeNames:c},b))}),g.length>0&&E.jsx("ul",{children:g.map(b=>E.jsx(Mo,{schema:i,schemaT:l,typeName:b,depth:r+1,displayedNodeTypeNames:c},b))})]}))}function Vx(i,l){var u;return(u=i.nodeTypes)==null?void 0:u.find(r=>r.kind==="document"&&r.typeName===l)}function Qx({step:i}){const{t:l}=at(),[u,r]=O.useState("tree"),{siteSchema:c,l10n:f}=i,p=$x(f),h=g=>g===0;return E.jsxs("div",{className:"SchemaViewer",children:[E.jsxs("div",{className:"SchemaViewer-tabs",children:[E.jsx(tt,{className:`SchemaViewer-tab ${u==="tree"?"active":""}`,onClick:()=>r("tree"),children:l("treeView")}),E.jsx(tt,{className:`SchemaViewer-tab ${u==="schema"?"active":""}`,onClick:()=>r("schema"),children:l("siteSchema")}),E.jsx(tt,{className:`SchemaViewer-tab ${u==="locales"?"active":""}`,onClick:()=>r("locales"),children:l("labels")})]}),E.jsxs("div",{className:"SchemaViewer-main",children:[E.jsx("div",{className:"SchemaViewer-content",style:{display:u==="tree"?"block":"none"},children:E.jsx(Yx,{siteSchema:c,schemaTranslate:p})}),E.jsx("div",{className:"SchemaViewer-content",style:{display:u==="locales"?"block":"none"},children:E.jsx(Mp,{data:f,shouldExpandNode:h})}),E.jsx("div",{className:"SchemaViewer-content",style:{display:u==="schema"?"block":"none"},children:E.jsx(Mp,{data:c,shouldExpandNode:h})})]})]})}function Xx({step:i}){const{t:l}=at(),{workSession:u,appendNewStep:r}=sa(),[c,f]=O.useState(!1),[p,h]=O.useState(!1),[g,d]=O.useState(!1),[v,S]=O.useState(void 0),b=Pa(),_=()=>{f(!c)},T=async G=>{if(!u)return;d(!0),S(void 0);const B=ui();if(!B){S(l("sessionExpired")),d(!1);return}try{const q=await Un({command:"updateSiteSchema",sessionToken:B,prompt:G,fromStepNumber:i.stepNumber});q.success&&q.result?(f(!1),r(q.result),b(`/step/${q.result.stepNumber}`)):S(l("promptSubmissionFailed"))}catch(q){console.error("Error updating schema:",q),S(l("errorOccurred"))}finally{d(!1)}},j=async({withSampleData:G})=>{if(!u)return;d(!0),S(void 0),h(!1);const B=ui();if(!B){S(l("sessionExpired")),d(!1);return}try{const q=await Un({command:"generateSite",sessionToken:B,fromStepNumber:i.stepNumber,withSampleData:G});q.success&&q.result?(r(q.result),b(`/step/${q.result.stepNumber}`)):S(l("generationFailed"))}catch(q){console.error("Error generating site:",q),S(l("errorOccurred"))}finally{d(!1)}};return E.jsx(Et,{children:E.jsxs("div",{className:"CompletedStep",children:[E.jsx(Qx,{step:i}),i.explanation&&E.jsx(fi,{content:i.explanation,title:l("explanation")}),E.jsxs("div",{className:"CompletedStep-actions",children:[E.jsx(tt,{onClick:_,className:"CompletedStep-button",children:l("modifySchema")}),E.jsx(tt,{onClick:()=>h(!0),className:"CompletedStep-button",children:l("generateTheWebsite")})]}),c&&E.jsxs("div",{className:"CompletedStep-updateForm",children:[E.jsx("h3",{children:l("updateSchema")}),E.jsx(ig,{placeholder:l("updatePromptPlaceholder"),submitLabel:l("modifySchema"),onSubmit:T,isLoading:g,error:v})]}),E.jsx(Ax,{isOpen:p,title:l("generateTheWebsite"),message:l("aboutToGenerateWebsite"),confirmLabel:l("confirm"),onConfirm:j,onCancel:()=>h(!1)}),v&&!c&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:v})})]})})}function Zx({step:i}){const{t:l}=at();return E.jsx(Et,{children:E.jsxs("div",{className:"ErrorStep",children:[E.jsx("p",{className:"ErrorStep-message",children:l("stepFailed")}),i.explanation&&E.jsx(fi,{content:i.explanation,variant:"error"})]})})}function Kx({step:i}){const{t:l}=at(),u=()=>{const r=`
111
+ `}tablecell(i){const l=this.parser.parseInline(i.tokens),s=i.header?"th":"td";return(i.align?`<${s} align="${i.align}">`:`<${s}>`)+l+`</${s}>
112
+ `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Vt(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:l,tokens:s}){const r=this.parser.parseInline(s),c=kp(i);if(c===null)return r;i=c;let f='<a href="'+i+'"';return l&&(f+=' title="'+Vt(l)+'"'),f+=">"+r+"</a>",f}image({href:i,title:l,text:s,tokens:r}){r&&(s=this.parser.parseInline(r,this.parser.textRenderer));const c=kp(i);if(c===null)return Vt(s);i=c;let f=`<img src="${i}" alt="${s}"`;return l&&(f+=` title="${Vt(l)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Vt(i.text)}},ec=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},on=class Mo{constructor(l){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=l||sa,this.options.renderer=this.options.renderer||new $u,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ec}static parse(l,s){return new Mo(s).parse(l)}static parseInline(l,s){return new Mo(s).parseInline(l)}parse(l,s=!0){var c,f;let r="";for(let p=0;p<l.length;p++){const h=l[p];if((f=(c=this.options.extensions)==null?void 0:c.renderers)!=null&&f[h.type]){const d=h,y=this.options.extensions.renderers[d.type].call({parser:this},d);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)){r+=y||"";continue}}const g=h;switch(g.type){case"space":{r+=this.renderer.space(g);continue}case"hr":{r+=this.renderer.hr(g);continue}case"heading":{r+=this.renderer.heading(g);continue}case"code":{r+=this.renderer.code(g);continue}case"table":{r+=this.renderer.table(g);continue}case"blockquote":{r+=this.renderer.blockquote(g);continue}case"list":{r+=this.renderer.list(g);continue}case"html":{r+=this.renderer.html(g);continue}case"paragraph":{r+=this.renderer.paragraph(g);continue}case"text":{let d=g,y=this.renderer.text(d);for(;p+1<l.length&&l[p+1].type==="text";)d=l[++p],y+=`
113
+ `+this.renderer.text(d);s?r+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):r+=y;continue}default:{const d='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return r}parseInline(l,s=this.renderer){var c,f;let r="";for(let p=0;p<l.length;p++){const h=l[p];if((f=(c=this.options.extensions)==null?void 0:c.renderers)!=null&&f[h.type]){const d=this.options.extensions.renderers[h.type].call({parser:this},h);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){r+=d||"";continue}}const g=h;switch(g.type){case"escape":{r+=s.text(g);break}case"html":{r+=s.html(g);break}case"link":{r+=s.link(g);break}case"image":{r+=s.image(g);break}case"strong":{r+=s.strong(g);break}case"em":{r+=s.em(g);break}case"codespan":{r+=s.codespan(g);break}case"br":{r+=s.br(g);break}case"del":{r+=s.del(g);break}case"text":{r+=s.text(g);break}default:{const d='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return r}},Ro,ju=(Ro=class{constructor(i){Ae(this,"options");Ae(this,"block");this.options=i||sa}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}provideLexer(){return this.block?rn.lex:rn.lexInline}provideParser(){return this.block?on.parse:on.parseInline}},Ae(Ro,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Ro),Nx=class{constructor(...i){Ae(this,"defaults",Xo());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",on);Ae(this,"Renderer",$u);Ae(this,"TextRenderer",ec);Ae(this,"Lexer",rn);Ae(this,"Tokenizer",Gu);Ae(this,"Hooks",ju);this.use(...i)}walkTokens(i,l){var r,c;let s=[];for(const f of i)switch(s=s.concat(l.call(this,f)),f.type){case"table":{const p=f;for(const h of p.header)s=s.concat(this.walkTokens(h.tokens,l));for(const h of p.rows)for(const g of h)s=s.concat(this.walkTokens(g.tokens,l));break}case"list":{const p=f;s=s.concat(this.walkTokens(p.items,l));break}default:{const p=f;(c=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&c[p.type]?this.defaults.extensions.childTokens[p.type].forEach(h=>{const g=p[h].flat(1/0);s=s.concat(this.walkTokens(g,l))}):p.tokens&&(s=s.concat(this.walkTokens(p.tokens,l)))}}return s}use(...i){const l=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(s=>{const r={...s};if(r.async=this.defaults.async||r.async||!1,s.extensions&&(s.extensions.forEach(c=>{if(!c.name)throw new Error("extension name required");if("renderer"in c){const f=l.renderers[c.name];f?l.renderers[c.name]=function(...p){let h=c.renderer.apply(this,p);return h===!1&&(h=f.apply(this,p)),h}:l.renderers[c.name]=c.renderer}if("tokenizer"in c){if(!c.level||c.level!=="block"&&c.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=l[c.level];f?f.unshift(c.tokenizer):l[c.level]=[c.tokenizer],c.start&&(c.level==="block"?l.startBlock?l.startBlock.push(c.start):l.startBlock=[c.start]:c.level==="inline"&&(l.startInline?l.startInline.push(c.start):l.startInline=[c.start]))}"childTokens"in c&&c.childTokens&&(l.childTokens[c.name]=c.childTokens)}),r.extensions=l),s.renderer){const c=this.defaults.renderer||new $u(this.defaults);for(const f in s.renderer){if(!(f in c))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;const p=f,h=s.renderer[p],g=c[p];c[p]=(...d)=>{let y=h.apply(c,d);return y===!1&&(y=g.apply(c,d)),y||""}}r.renderer=c}if(s.tokenizer){const c=this.defaults.tokenizer||new Gu(this.defaults);for(const f in s.tokenizer){if(!(f in c))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;const p=f,h=s.tokenizer[p],g=c[p];c[p]=(...d)=>{let y=h.apply(c,d);return y===!1&&(y=g.apply(c,d)),y}}r.tokenizer=c}if(s.hooks){const c=this.defaults.hooks||new ju;for(const f in s.hooks){if(!(f in c))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;const p=f,h=s.hooks[p],g=c[p];ju.passThroughHooks.has(f)?c[p]=d=>{if(this.defaults.async)return Promise.resolve(h.call(c,d)).then(S=>g.call(c,S));const y=h.call(c,d);return g.call(c,y)}:c[p]=(...d)=>{let y=h.apply(c,d);return y===!1&&(y=g.apply(c,d)),y}}r.hooks=c}if(s.walkTokens){const c=this.defaults.walkTokens,f=s.walkTokens;r.walkTokens=function(p){let h=[];return h.push(f.call(this,p)),c&&(h=h.concat(c.call(this,p))),h}}this.defaults={...this.defaults,...r}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,l){return rn.lex(i,l??this.defaults)}parser(i,l){return on.parse(i,l??this.defaults)}parseMarkdown(i){return(s,r)=>{const c={...r},f={...this.defaults,...c},p=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&c.async===!1)return p(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof s>"u"||s===null)return p(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return p(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));f.hooks&&(f.hooks.options=f,f.hooks.block=i);const h=f.hooks?f.hooks.provideLexer():i?rn.lex:rn.lexInline,g=f.hooks?f.hooks.provideParser():i?on.parse:on.parseInline;if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(s):s).then(d=>h(d,f)).then(d=>f.hooks?f.hooks.processAllTokens(d):d).then(d=>f.walkTokens?Promise.all(this.walkTokens(d,f.walkTokens)).then(()=>d):d).then(d=>g(d,f)).then(d=>f.hooks?f.hooks.postprocess(d):d).catch(p);try{f.hooks&&(s=f.hooks.preprocess(s));let d=h(s,f);f.hooks&&(d=f.hooks.processAllTokens(d)),f.walkTokens&&this.walkTokens(d,f.walkTokens);let y=g(d,f);return f.hooks&&(y=f.hooks.postprocess(y)),y}catch(d){return p(d)}}}onError(i,l){return s=>{if(s.message+=`
114
+ Please report this to https://github.com/markedjs/marked.`,i){const r="<p>An error occurred:</p><pre>"+Vt(s.message+"",!0)+"</pre>";return l?Promise.resolve(r):r}if(l)return Promise.reject(s);throw s}}},la=new Nx;function Ee(i,l){return la.parse(i,l)}Ee.options=Ee.setOptions=function(i){return la.setOptions(i),Ee.defaults=la.defaults,ug(Ee.defaults),Ee};Ee.getDefaults=Xo;Ee.defaults=sa;Ee.use=function(...i){return la.use(...i),Ee.defaults=la.defaults,ug(Ee.defaults),Ee};Ee.walkTokens=function(i,l){return la.walkTokens(i,l)};Ee.parseInline=la.parseInline;Ee.Parser=on;Ee.parser=on.parse;Ee.Renderer=$u;Ee.TextRenderer=ec;Ee.Lexer=rn;Ee.lexer=rn.lex;Ee.Tokenizer=Gu;Ee.Hooks=ju;Ee.parse=Ee;Ee.options;Ee.setOptions;Ee.use;Ee.walkTokens;Ee.parseInline;on.parse;rn.lex;function Ax(i){if(!i)return"";try{return Ee.parse(i,{async:!1,gfm:!0,breaks:!0})}catch(l){return console.error("Error rendering markdown:",l),i}}function fi({content:i,title:l,variant:s="default",className:r="",children:c}){const f=["Explanation",`Explanation-${s}`,r].filter(Boolean).join(" ");return E.jsxs("div",{className:f,children:[l&&E.jsx("h3",{className:"Explanation-title",children:l}),E.jsx("div",{className:"Explanation-content markdown-content",dangerouslySetInnerHTML:{__html:Ax(i)}}),c]})}function Ox({isOpen:i,title:l,message:s,confirmLabel:r,cancelLabel:c,onConfirm:f,onCancel:p}){const{t:h}=ut(),[g,d]=A.useState(!0);if(!i)return null;const y=async()=>{await f({withSampleData:g})},S=b=>{b.key==="Escape"&&p()};return E.jsxs("div",{className:"ConfirmDialog",children:[E.jsx("div",{className:"ConfirmDialog-backdrop",onClick:p,onKeyDown:S,tabIndex:0,role:"button","aria-label":"Close dialog"}),E.jsxs("div",{className:"ConfirmDialog-container",children:[E.jsx("div",{className:"ConfirmDialog-header",children:E.jsx("h3",{className:"ConfirmDialog-title",children:l})}),E.jsxs("div",{className:"ConfirmDialog-body",children:[E.jsx("p",{children:s}),E.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:g,onChange:b=>d(b.target.checked)}),E.jsx("span",{className:"ml-2",children:h("generateSiteWithData")})]})})]}),E.jsxs("div",{className:"ConfirmDialog-footer",children:[E.jsx(tt,{onClick:p,severity:"secondary",className:"ConfirmDialog-button",children:c||h("cancel")}),E.jsx(tt,{onClick:y,className:"ConfirmDialog-button",children:r||h("confirm")})]})]})]})}const Cx=i=>typeof i=="boolean"||i instanceof Boolean,zx=i=>typeof i=="number"||i instanceof Number,kx=i=>typeof i=="bigint"||i instanceof BigInt,yg=i=>!!i&&i instanceof Date,_x=i=>typeof i=="string"||i instanceof String,Dx=i=>Array.isArray(i),Mx=i=>typeof i=="object"&&i!==null,vg=i=>!!i&&i instanceof Object&&typeof i=="function";function Yu(i,l){return l===void 0&&(l=!1),!i||l?`"${i}"`:i}function jx(i,l,s){return s?JSON.stringify(i):l?`"${i}"`:i}function bg(i){let{field:l,value:s,data:r,lastElement:c,openBracket:f,closeBracket:p,level:h,style:g,shouldExpandNode:d,clickToExpandNode:y,outerRef:S,beforeExpandChange:b}=i;const _=A.useRef(!1),[T,M]=A.useState(()=>d(h,s,l)),G=A.useRef(null);A.useEffect(()=>{_.current?M(d(h,s,l)):_.current=!0},[d]);const B=A.useId();if(r.length===0)return Lx({field:l,openBracket:f,closeBracket:p,lastElement:c,style:g});const q=T?g.collapseIcon:g.expandIcon,X=T?g.ariaLables.collapseJson:g.ariaLables.expandJson,F=h+1,Z=r.length-1,de=Q=>{T!==Q&&(!b||b({level:h,value:s,field:l,newExpandValue:Q}))&&M(Q)},le=Q=>{if(Q.key==="ArrowRight"||Q.key==="ArrowLeft")Q.preventDefault(),de(Q.key==="ArrowRight");else if(Q.key==="ArrowUp"||Q.key==="ArrowDown"){Q.preventDefault();const ee=Q.key==="ArrowUp"?-1:1;if(!S.current)return;const he=S.current.querySelectorAll("[role=button]");let De=-1;for(let Ce=0;Ce<he.length;Ce++)if(he[Ce].tabIndex===0){De=Ce;break}if(De<0)return;const Ue=(De+ee+he.length)%he.length;he[De].tabIndex=-1,he[Ue].tabIndex=0,he[Ue].focus()}},ie=()=>{var Q;de(!T);const ee=G.current;if(!ee)return;const he=(Q=S.current)===null||Q===void 0?void 0:Q.querySelector('[role=button][tabindex="0"]');he&&(he.tabIndex=-1),ee.tabIndex=0,ee.focus()};return A.createElement("div",{className:g.basicChildStyle,role:"treeitem","aria-expanded":T,"aria-selected":void 0},A.createElement("span",{className:q,onClick:ie,onKeyDown:le,role:"button","aria-label":X,"aria-expanded":T,"aria-controls":T?B:void 0,ref:G,tabIndex:h===0?0:-1}),(l||l==="")&&(y?A.createElement("span",{className:g.clickableLabel,onClick:ie,onKeyDown:le},Yu(l,g.quotesForFieldNames),":"):A.createElement("span",{className:g.label},Yu(l,g.quotesForFieldNames),":")),A.createElement("span",{className:g.punctuation},f),T?A.createElement("ul",{id:B,role:"group",className:g.childFieldsContainer},r.map((Q,ee)=>A.createElement(Sg,{key:Q[0]||ee,field:Q[0],value:Q[1],style:g,lastElement:ee===Z,level:F,shouldExpandNode:d,clickToExpandNode:y,outerRef:S}))):A.createElement("span",{className:g.collapsedContent,onClick:ie,onKeyDown:le}),A.createElement("span",{className:g.punctuation},p),!c&&A.createElement("span",{className:g.punctuation},","))}function Lx(i){let{field:l,openBracket:s,closeBracket:r,lastElement:c,style:f}=i;return A.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&A.createElement("span",{className:f.label},Yu(l,f.quotesForFieldNames),":"),A.createElement("span",{className:f.punctuation},s),A.createElement("span",{className:f.punctuation},r),!c&&A.createElement("span",{className:f.punctuation},","))}function Ux(i){let{field:l,value:s,style:r,lastElement:c,shouldExpandNode:f,clickToExpandNode:p,level:h,outerRef:g,beforeExpandChange:d}=i;return bg({field:l,value:s,lastElement:c||!1,level:h,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:f,clickToExpandNode:p,data:Object.keys(s).map(y=>[y,s[y]]),outerRef:g,beforeExpandChange:d})}function Hx(i){let{field:l,value:s,style:r,lastElement:c,level:f,shouldExpandNode:p,clickToExpandNode:h,outerRef:g,beforeExpandChange:d}=i;return bg({field:l,value:s,lastElement:c||!1,level:f,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:p,clickToExpandNode:h,data:s.map(y=>[void 0,y]),outerRef:g,beforeExpandChange:d})}function Bx(i){let{field:l,value:s,style:r,lastElement:c}=i,f,p=r.otherValue;return s===null?(f="null",p=r.nullValue):s===void 0?(f="undefined",p=r.undefinedValue):_x(s)?(f=jx(s,!r.noQuotesForStringValues,r.stringifyStringValues),p=r.stringValue):Cx(s)?(f=s?"true":"false",p=r.booleanValue):zx(s)?(f=s.toString(),p=r.numberValue):kx(s)?(f=`${s.toString()}n`,p=r.numberValue):yg(s)?f=s.toISOString():vg(s)?f="function() { }":f=s.toString(),A.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&A.createElement("span",{className:r.label},Yu(l,r.quotesForFieldNames),":"),A.createElement("span",{className:p},f),!c&&A.createElement("span",{className:r.punctuation},","))}function Sg(i){const l=i.value;return Dx(l)?A.createElement(Hx,Object.assign({},i)):Mx(l)&&!yg(l)&&!vg(l)?A.createElement(Ux,Object.assign({},i)):A.createElement(Bx,Object.assign({},i))}var lt={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti"};const qx={collapseJson:"collapse JSON",expandJson:"expand JSON"},Mp={container:lt["container-light"],basicChildStyle:lt["basic-element-style"],childFieldsContainer:lt["child-fields-container"],label:lt["label-light"],clickableLabel:lt["clickable-label-light"],nullValue:lt["value-null-light"],undefinedValue:lt["value-undefined-light"],stringValue:lt["value-string-light"],booleanValue:lt["value-boolean-light"],numberValue:lt["value-number-light"],otherValue:lt["value-other-light"],punctuation:lt["punctuation-light"],collapseIcon:lt["collapse-icon-light"],expandIcon:lt["expand-icon-light"],collapsedContent:lt["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:qx,stringifyStringValues:!1},Gx=()=>!0,jp=i=>{let{data:l,style:s=Mp,shouldExpandNode:r=Gx,clickToExpandNode:c=!1,beforeExpandChange:f,...p}=i;const h=A.useRef(null);return A.createElement("div",Object.assign({"aria-label":"JSON view"},p,{className:s.container,ref:h,role:"tree"}),A.createElement(Sg,{value:l,style:{...Mp,...s},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:c,outerRef:h,beforeExpandChange:f}))};function $x(i){const l=Object.keys(i),s=l.length>0?l[0]:void 0;return(r,c,f={})=>{if(!s)return f.default??r;const p=i[c]??i[s],h=r.split(".");let g=p;for(const d of h){if(typeof g=="string"||!g||!(d in g))return f.default??r;g=g[d]}return typeof g=="string"?g:f.default??r}}function Yx({siteSchema:i,schemaTranslate:l}){const s=new Set;return E.jsx("ul",{children:E.jsx(jo,{schema:i,schemaT:l,typeName:"home",displayedNodeTypeNames:s})})}function jo({schema:i,schemaT:l,typeName:s,depth:r=0,displayedNodeTypeNames:c}){const{i18n:f}=ut(),p=Vx(i,s);if(!p)return null;const h=p.routingChildren||[],g=p.regularChildren||[],d=p.lists||[],y=p.documentKind==="routing",S=l(`nodeTypes.${s}.label`,f.language,{default:s});return c.has(s)?E.jsx("li",{children:E.jsxs("div",{children:[y?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:s}),")"]})}):(c.add(s),E.jsxs("li",{children:[E.jsxs("div",{children:[y?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:s}),")"]}),d.map(b=>E.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[l(`nodeTypes.${s}.lists.${b.listName}.label`,f.language,{default:b.listName})," ","(",E.jsx("code",{children:b.listName})," [",E.jsx("code",{children:b.parts.join("</code>, <code>")}),"])"]},b.listName)),h.length>0&&E.jsx("ul",{children:h.map(b=>E.jsx(jo,{schema:i,schemaT:l,typeName:b,depth:r+1,displayedNodeTypeNames:c},b))}),g.length>0&&E.jsx("ul",{children:g.map(b=>E.jsx(jo,{schema:i,schemaT:l,typeName:b,depth:r+1,displayedNodeTypeNames:c},b))})]}))}function Vx(i,l){var s;return(s=i.nodeTypes)==null?void 0:s.find(r=>r.kind==="document"&&r.typeName===l)}function Qx({step:i}){const{t:l}=ut(),[s,r]=A.useState("tree"),{siteSchema:c,l10n:f}=i,p=$x(f),h=(g,d,y)=>y!=="plugins";return E.jsxs("div",{className:"SchemaViewer",children:[E.jsxs("div",{className:"SchemaViewer-tabs",children:[E.jsx(tt,{className:`SchemaViewer-tab ${s==="tree"?"active":""}`,onClick:()=>r("tree"),children:l("treeView")}),E.jsx(tt,{className:`SchemaViewer-tab ${s==="schema"?"active":""}`,onClick:()=>r("schema"),children:l("siteSchema")}),E.jsx(tt,{className:`SchemaViewer-tab ${s==="locales"?"active":""}`,onClick:()=>r("locales"),children:l("labels")})]}),E.jsxs("div",{className:"SchemaViewer-main",children:[E.jsx("div",{className:"SchemaViewer-content",style:{display:s==="tree"?"block":"none"},children:E.jsx(Yx,{siteSchema:c,schemaTranslate:p})}),E.jsx("div",{className:"SchemaViewer-content",style:{display:s==="locales"?"block":"none"},children:E.jsx(jp,{data:f,shouldExpandNode:h})}),E.jsx("div",{className:"SchemaViewer-content",style:{display:s==="schema"?"block":"none"},children:E.jsx(jp,{data:c,shouldExpandNode:h})})]})]})}function Xx({step:i}){const{t:l}=ut(),{workSession:s,appendNewStep:r}=ua(),[c,f]=A.useState(!1),[p,h]=A.useState(!1),[g,d]=A.useState(!1),[y,S]=A.useState(void 0),b=Wa(),_=()=>{f(!c)},T=async G=>{if(!s)return;d(!0),S(void 0);const B=si();if(!B){S(l("sessionExpired")),d(!1);return}try{const q=await Un({command:"updateSiteSchema",sessionToken:B,prompt:G,fromStepNumber:i.stepNumber});q.success&&q.result?(f(!1),r(q.result),b(`/step/${q.result.stepNumber}`)):S(l("promptSubmissionFailed"))}catch(q){console.error("Error updating schema:",q),S(l("errorOccurred"))}finally{d(!1)}},M=async({withSampleData:G})=>{if(!s)return;d(!0),S(void 0),h(!1);const B=si();if(!B){S(l("sessionExpired")),d(!1);return}try{const q=await Un({command:"generateSite",sessionToken:B,fromStepNumber:i.stepNumber,withSampleData:G});q.success&&q.result?(r(q.result),b(`/step/${q.result.stepNumber}`)):S(l("generationFailed"))}catch(q){console.error("Error generating site:",q),S(l("errorOccurred"))}finally{d(!1)}};return E.jsx(Et,{children:E.jsxs("div",{className:"CompletedStep",children:[E.jsx(Qx,{step:i}),i.explanation&&E.jsx(fi,{content:i.explanation,title:l("explanation")}),E.jsxs("div",{className:"CompletedStep-actions",children:[E.jsx(tt,{onClick:_,className:"CompletedStep-button",children:l("modifySchema")}),E.jsx(tt,{onClick:()=>h(!0),className:"CompletedStep-button",children:l("generateTheWebsite")})]}),c&&E.jsxs("div",{className:"CompletedStep-updateForm",children:[E.jsx("h3",{children:l("updateSchema")}),E.jsx(ig,{placeholder:l("updatePromptPlaceholder"),submitLabel:l("modifySchema"),onSubmit:T,isLoading:g,error:y})]}),E.jsx(Ox,{isOpen:p,title:l("generateTheWebsite"),message:l("aboutToGenerateWebsite"),confirmLabel:l("confirm"),onConfirm:M,onCancel:()=>h(!1)}),y&&!c&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:y})})]})})}function Zx({step:i}){const{t:l}=ut();return E.jsx(Et,{children:E.jsxs("div",{className:"ErrorStep",children:[E.jsx("p",{className:"ErrorStep-message",children:l("stepFailed")}),i.explanation&&E.jsx(fi,{content:i.explanation,variant:"error"})]})})}function Kx({step:i}){const{t:l}=ut(),s=()=>{const r=`
230
115
  ${l("siteGenerated")}
231
116
  ${l("loginEmail")}: ${i.loginEmail}
232
117
  ${l("loginPassword")}: ${i.loginPassword}
233
118
  ${l("siteUrl")}: ${i.siteUrl}
234
119
  ${l("adminUrl")}: ${i.backOfficeUrl}
235
- `.trim();navigator.clipboard.writeText(r)};return E.jsx(Et,{children:E.jsxs("div",{className:"GeneratedSite",children:[i.status==="pending"&&E.jsxs("div",{className:"GeneratedSite-pending",children:[E.jsx(Zs,{size:"small"}),E.jsx("p",{children:l("generatingContent")})]}),i.explanation&&E.jsx(fi,{content:i.explanation,title:l("explanation"),variant:"info"}),E.jsx("div",{className:"GeneratedSite-header",children:E.jsx("h2",{className:"GeneratedSite-title",children:l("generatedSite")})}),E.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:l("userManual")}}),E.jsxs("div",{className:"GeneratedSite-information",children:[E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("loginEmail")}),E.jsx("div",{className:"GeneratedSite-value",children:E.jsx("input",{type:"text",value:i.loginEmail,readOnly:!0,className:"GeneratedSite-input"})})]}),E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("loginPassword")}),E.jsx("div",{className:"GeneratedSite-value",children:E.jsx("input",{type:"text",value:i.loginPassword,readOnly:!0,className:"GeneratedSite-input"})})]}),E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("siteUrl")}),E.jsxs("div",{className:"GeneratedSite-value",children:[E.jsx("input",{type:"text",value:i.siteUrl,readOnly:!0,className:"GeneratedSite-input"}),E.jsx(tt,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.siteUrl,"_blank")},"aria-label":l("viewSite"),children:"↗"})]})]}),E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("adminUrl")}),E.jsxs("div",{className:"GeneratedSite-value",children:[E.jsx("input",{type:"text",value:i.backOfficeUrl,readOnly:!0,className:"GeneratedSite-input"}),E.jsx(tt,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.backOfficeUrl,"_blank")},"aria-label":l("administration"),children:"↗"})]})]})]}),E.jsx("div",{className:"GeneratedSite-actions",children:E.jsx(tt,{onClick:u,className:"GeneratedSite-copy-button",children:l("copyToClipboard")})})]})})}function Jx({step:i}){const{t:l}=at();return E.jsx(Et,{children:E.jsxs("div",{className:"ErrorStep",children:[E.jsx("p",{className:"ErrorStep-message ErrorStep-message-warning",children:l("stepNoEffect")}),i.explanation&&E.jsx(fi,{content:i.explanation,variant:"warning"})]})})}function Lp({step:i}){const{t:l}=at();return E.jsx(Et,{children:E.jsxs("div",{className:"PendingStep",children:[E.jsx("div",{className:"PendingStep-header",children:E.jsx("h2",{children:l("stepTitle",{stepNumber:i.stepNumber,kind:l(i.kind)})})}),E.jsx("div",{className:"PendingStep-spinner",children:E.jsx(Zs,{size:"large"})}),i.currentActivity&&E.jsxs("div",{className:"PendingStep-activity",children:[E.jsx("h3",{children:l("currentActivity")}),E.jsx("p",{children:l(`activity.${i.currentActivity}`)})]}),i.explanation&&E.jsx(fi,{content:i.explanation,title:l("explanation"),variant:"info"})]})})}function Fx({step:i}){if(i.status==="failed")return E.jsx(Zx,{step:i});if(i.status==="noEffect")return E.jsx(Jx,{step:i});if(i.kind==="initialSchema"||i.kind==="updateSchema")return i.status==="pending"?E.jsx(Lp,{step:i}):E.jsx(Xx,{step:i});if(i.kind==="generateSite")return i.status==="pending"&&!V1(i)?E.jsx(Lp,{step:i}):E.jsx(Kx,{step:i});throw new Error(`Unknown step kind: ${i.kind}`)}function Px(){const{t:i}=at(),l=Pa(),{stepNumber:u}=MS(),{workSession:r,setActiveStepNumber:c}=sa(),f=u===void 0?void 0:Number.parseInt(u,10);if(O.useEffect(()=>(c(f),()=>c(void 0)),[f,c]),O.useEffect(()=>{if(!r||!r.steps)return;r.steps.some(g=>g.stepNumber===f)||l("/")},[f,r,l]),!r||!r.steps)return E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(Et,{className:"p-4",children:E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:i("noSessionData")})})})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(js,{activeStep:f})})]});const p=r.steps.find(h=>h.stepNumber===f);return p?E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(Fx,{step:p})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(js,{activeStep:f})})]}):E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(Et,{className:"p-4",children:E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:i("stepNotFound")})})})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(js,{activeStep:f})})]})}function Wx({sessionToken:i,onSessionExpired:l}){const{workSession:u,isLoading:r,error:c,setWorkSession:f,setIsLoading:p,setError:h,resetSession:g}=sa();return O.useEffect(()=>()=>{Qo()},[]),O.useEffect(()=>{(async()=>{p(!0),h(void 0);try{const v=await Un({command:"loadWorkSession",sessionToken:i});v.success&&v.result?f(v.result):(h(v.userMessage||"Failed to load session"),v.success||(g(),H1(),l()))}catch(v){h("Error connecting to server"),console.error(v)}finally{p(!1)}})()},[i,f,p,h,l]),r?E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-2xl",children:E.jsx("div",{className:"Text text-center",children:E.jsx("p",{children:"Loading session..."})})})}):c?E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-2xl",children:E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:c})})})}):u?E.jsx(x1,{children:E.jsxs(PS,{children:[E.jsx(zs,{path:"/",element:E.jsx(Y1,{})}),E.jsx(zs,{path:"/step/:stepNumber",element:E.jsx(Px,{})}),E.jsx(zs,{path:"*",element:E.jsx(JS,{to:"/",replace:!0})})]})}):E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-2xl",children:E.jsx("div",{className:"Text text-center",children:E.jsx("p",{children:"Session not available."})})})})}function Ix({sessionToken:i}){const{t:l,i18n:u}=at(),r=async c=>{const f=c.target.value;await u.changeLanguage(f),i&&await Un({command:"setLanguage",sessionToken:i,language:f})};return E.jsxs("footer",{className:"App-footer",children:[E.jsx("span",{className:"InlineText",dangerouslySetInnerHTML:{__html:l("footerText")}}),E.jsx("span",{className:"LanguageSelector",children:E.jsxs("select",{className:"LanguageSelector-select",value:u.language,onChange:r,"aria-label":"Select language",children:[E.jsx("option",{value:"en",children:"English"}),E.jsx("option",{value:"fr",children:"Français"})]})})]})}function xg({onTokenReceived:i}){const[l,u]=O.useState(!!window.grecaptcha),r=Eo;return O.useEffect(()=>{if(r){if(window.onRecaptchaSubmitted=c=>{i(c)},window.onRecaptchaExpired=()=>{i("")},l===!1&&!window.grecaptcha){u("loading");const c=document.createElement("script");c.src="https://www.google.com/recaptcha/api.js",c.async=!0,c.defer=!0,c.onload=()=>u(!0),document.head.appendChild(c)}else u(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[r,i]),E.jsx(E.Fragment,{children:Eo&&l===!0?E.jsx("div",{className:"g-recaptcha","data-sitekey":Eo,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):E.jsx("div",{className:"RecaptchaBox",children:E.jsx(Zs,{})})})}function eE({onVerified:i}){const{t:l,i18n:u}=at(),[r,c]=O.useState(""),[f,p]=O.useState(),h=async()=>{var g;if(r){p(void 0);try{const d=await Un({command:"newSession",recaptchaToken:r,language:u.language});d.success&&((g=d.result)!=null&&g.token)?i(d.result.token):p("Failed to create session")}catch(d){p("Error connecting to server"),console.error(d)}}};return E.jsx("div",{className:"Layout-center p-4",children:E.jsxs(Et,{className:"max-w-2xl p-4",children:[E.jsx("h2",{className:"AppTitle mb-4 text-center",children:l("title")}),E.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:l("introduction")}}),f&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{className:"m-0",children:f})}),E.jsxs("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap",children:[E.jsx(xg,{onTokenReceived:c}),E.jsx(tt,{label:l("agree"),onClick:h,disabled:!r})]})]})})}function tE({expiredToken:i,onTokenRefreshed:l}){const{t:u}=at(),[r,c]=O.useState(),f=async p=>{var h;if(p){c(void 0);try{const g=await Un({command:"renewSession",sessionToken:i,recaptchaToken:p});g.success&&((h=g.result)!=null&&h.token)?l(g.result.token):c(u("sessionRenewalFailed"))}catch(g){c(u("errorConnectingToServer")),console.error(g)}}};return E.jsx("div",{className:"Dialog-backdrop",children:E.jsx("div",{className:"Dialog-container",children:E.jsxs(Et,{className:"p-4",children:[E.jsx("h2",{className:"mb-4 text-center",children:u("extendYourSession")}),r&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{className:"m-0",children:r})}),E.jsx("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap my-4",children:E.jsx(xg,{onTokenReceived:f})}),E.jsx("p",{className:"InfoText",children:u("newTabRestartMessage")})]})})})}function nE(i){if(!i)return!1;try{const l=i.split(".");if(l.length!==3)return!1;const u=JSON.parse(atob(l[1]));if(!u.exp)return!1;const r=u.exp*1e3;return Date.now()<r?!0:"expired"}catch(l){return console.error("Error checking JWT token validity:",l),!1}}function aE(){const{i18n:i}=at(),[l,u]=O.useState(),[r,c]=O.useState(),f=sa(g=>g.resetSession);O.useEffect(()=>{const g=ui(),d=nE(g);if(!g||!d){f();return}d==="expired"?c(g):u(g)},[f]);const p=g=>{Ap(g),u(g)},h=g=>{Ap(g),u(g),c(void 0)};return E.jsxs("div",{className:"App",children:[E.jsx("div",{className:"App-content",children:l?E.jsx(Wx,{sessionToken:l,onSessionExpired:()=>u(void 0)}):r?E.jsx(tE,{expiredToken:r,onTokenRefreshed:h}):E.jsx(eE,{onVerified:p})}),E.jsx(Ix,{sessionToken:l})]})}async function lE(){const i=document.getElementById("site-generator-app");i&&lS.createRoot(i).render(E.jsx(No.StrictMode,{children:E.jsx(aE,{})}))}lE().catch(i=>console.error(i));
120
+ `.trim();navigator.clipboard.writeText(r)};return E.jsx(Et,{children:E.jsxs("div",{className:"GeneratedSite",children:[i.status==="pending"&&E.jsxs("div",{className:"GeneratedSite-pending",children:[E.jsx(Zu,{size:"small"}),E.jsx("p",{children:l("generatingContent")})]}),i.explanation&&E.jsx(fi,{content:i.explanation,title:l("explanation"),variant:"info"}),E.jsx("div",{className:"GeneratedSite-header",children:E.jsx("h2",{className:"GeneratedSite-title",children:l("generatedSite")})}),E.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:l("userManual")}}),E.jsxs("div",{className:"GeneratedSite-information",children:[E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("loginEmail")}),E.jsx("div",{className:"GeneratedSite-value",children:E.jsx("input",{type:"text",value:i.loginEmail,readOnly:!0,className:"GeneratedSite-input"})})]}),E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("loginPassword")}),E.jsx("div",{className:"GeneratedSite-value",children:E.jsx("input",{type:"text",value:i.loginPassword,readOnly:!0,className:"GeneratedSite-input"})})]}),E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("siteUrl")}),E.jsxs("div",{className:"GeneratedSite-value",children:[E.jsx("input",{type:"text",value:i.siteUrl,readOnly:!0,className:"GeneratedSite-input"}),E.jsx(tt,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.siteUrl,"_blank")},"aria-label":l("viewSite"),children:"↗"})]})]}),E.jsxs("div",{className:"GeneratedSite-field",children:[E.jsx("div",{className:"GeneratedSite-label",children:l("adminUrl")}),E.jsxs("div",{className:"GeneratedSite-value",children:[E.jsx("input",{type:"text",value:i.backOfficeUrl,readOnly:!0,className:"GeneratedSite-input"}),E.jsx(tt,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.backOfficeUrl,"_blank")},"aria-label":l("administration"),children:"↗"})]})]})]}),E.jsx("div",{className:"GeneratedSite-actions",children:E.jsx(tt,{onClick:s,className:"GeneratedSite-copy-button",children:l("copyToClipboard")})})]})})}function Jx({step:i}){const{t:l}=ut();return E.jsx(Et,{children:E.jsxs("div",{className:"ErrorStep",children:[E.jsx("p",{className:"ErrorStep-message ErrorStep-message-warning",children:l("stepNoEffect")}),i.explanation&&E.jsx(fi,{content:i.explanation,variant:"warning"})]})})}function Lp({step:i}){const{t:l}=ut();return E.jsx(Et,{children:E.jsxs("div",{className:"PendingStep",children:[E.jsx("div",{className:"PendingStep-header",children:E.jsx("h2",{children:l("stepTitle",{stepNumber:i.stepNumber,kind:l(i.kind)})})}),E.jsx("div",{className:"PendingStep-spinner",children:E.jsx(Zu,{size:"large"})}),i.currentActivity&&E.jsxs("div",{className:"PendingStep-activity",children:[E.jsx("h3",{children:l("currentActivity")}),E.jsx("p",{children:l(`activity.${i.currentActivity}`)})]}),i.explanation&&E.jsx(fi,{content:i.explanation,title:l("explanation"),variant:"info"})]})})}function Fx({step:i}){if(i.status==="failed")return E.jsx(Zx,{step:i});if(i.status==="noEffect")return E.jsx(Jx,{step:i});if(i.kind==="initialSchema"||i.kind==="updateSchema")return i.status==="pending"?E.jsx(Lp,{step:i}):E.jsx(Xx,{step:i});if(i.kind==="generateSite")return i.status==="pending"&&!V1(i)?E.jsx(Lp,{step:i}):E.jsx(Kx,{step:i});throw new Error(`Unknown step kind: ${i.kind}`)}function Wx(){const{t:i}=ut(),l=Wa(),{stepNumber:s}=jS(),{workSession:r,setActiveStepNumber:c}=ua(),f=s===void 0?void 0:Number.parseInt(s,10);if(A.useEffect(()=>(c(f),()=>c(void 0)),[f,c]),A.useEffect(()=>{if(!r||!r.steps)return;r.steps.some(g=>g.stepNumber===f)||l("/")},[f,r,l]),!r||!r.steps)return E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(Et,{className:"p-4",children:E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:i("noSessionData")})})})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Mu,{activeStep:f})})]});const p=r.steps.find(h=>h.stepNumber===f);return p?E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(Fx,{step:p})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Mu,{activeStep:f})})]}):E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(Et,{className:"p-4",children:E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:i("stepNotFound")})})})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Mu,{activeStep:f})})]})}function Px({sessionToken:i,onSessionExpired:l}){const{workSession:s,isLoading:r,error:c,setWorkSession:f,setIsLoading:p,setError:h,resetSession:g}=ua();return A.useEffect(()=>()=>{Qo()},[]),A.useEffect(()=>{(async()=>{p(!0),h(void 0);try{const y=await Un({command:"loadWorkSession",sessionToken:i});y.success&&y.result?f(y.result):(h(y.userMessage||"Failed to load session"),y.success||(g(),H1(),l()))}catch(y){h("Error connecting to server"),console.error(y)}finally{p(!1)}})()},[i,f,p,h,l]),r?E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-2xl",children:E.jsx("div",{className:"Text text-center",children:E.jsx("p",{children:"Loading session..."})})})}):c?E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-2xl",children:E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:c})})})}):s?E.jsx(x1,{children:E.jsxs(WS,{children:[E.jsx(ku,{path:"/",element:E.jsx(Y1,{})}),E.jsx(ku,{path:"/step/:stepNumber",element:E.jsx(Wx,{})}),E.jsx(ku,{path:"*",element:E.jsx(JS,{to:"/",replace:!0})})]})}):E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-2xl",children:E.jsx("div",{className:"Text text-center",children:E.jsx("p",{children:"Session not available."})})})})}function Ix({sessionToken:i}){const{t:l,i18n:s}=ut(),r=async c=>{const f=c.target.value;await s.changeLanguage(f),i&&await Un({command:"setLanguage",sessionToken:i,language:f})};return E.jsxs("footer",{className:"App-footer",children:[E.jsx("span",{className:"InlineText",dangerouslySetInnerHTML:{__html:l("footerText")}}),E.jsx("span",{className:"LanguageSelector",children:E.jsxs("select",{className:"LanguageSelector-select",value:s.language,onChange:r,"aria-label":"Select language",children:[E.jsx("option",{value:"en",children:"English"}),E.jsx("option",{value:"fr",children:"Français"})]})})]})}function xg({onTokenReceived:i}){const[l,s]=A.useState(!!window.grecaptcha),r=Eo;return A.useEffect(()=>{if(r){if(window.onRecaptchaSubmitted=c=>{i(c)},window.onRecaptchaExpired=()=>{i("")},l===!1&&!window.grecaptcha){s("loading");const c=document.createElement("script");c.src="https://www.google.com/recaptcha/api.js",c.async=!0,c.defer=!0,c.onload=()=>s(!0),document.head.appendChild(c)}else s(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[r,i]),E.jsx(E.Fragment,{children:Eo&&l===!0?E.jsx("div",{className:"g-recaptcha","data-sitekey":Eo,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):E.jsx("div",{className:"RecaptchaBox",children:E.jsx(Zu,{})})})}function eE({onVerified:i}){const{t:l,i18n:s}=ut(),[r,c]=A.useState(""),[f,p]=A.useState(),h=async()=>{var g;if(r){p(void 0);try{const d=await Un({command:"newSession",recaptchaToken:r,language:s.language});d.success&&((g=d.result)!=null&&g.token)?i(d.result.token):p("Failed to create session")}catch(d){p("Error connecting to server"),console.error(d)}}};return E.jsx("div",{className:"Layout-center p-4",children:E.jsxs(Et,{className:"max-w-2xl p-4",children:[E.jsx("h2",{className:"AppTitle mb-4 text-center",children:l("title")}),E.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:l("introduction")}}),f&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{className:"m-0",children:f})}),E.jsxs("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap",children:[E.jsx(xg,{onTokenReceived:c}),E.jsx(tt,{label:l("agree"),onClick:h,disabled:!r})]})]})})}function tE({expiredToken:i,onTokenRefreshed:l}){const{t:s}=ut(),[r,c]=A.useState(),f=async p=>{var h;if(p){c(void 0);try{const g=await Un({command:"renewSession",sessionToken:i,recaptchaToken:p});g.success&&((h=g.result)!=null&&h.token)?l(g.result.token):c(s("sessionRenewalFailed"))}catch(g){c(s("errorConnectingToServer")),console.error(g)}}};return E.jsx("div",{className:"Dialog-backdrop",children:E.jsx("div",{className:"Dialog-container",children:E.jsxs(Et,{className:"p-4",children:[E.jsx("h2",{className:"mb-4 text-center",children:s("extendYourSession")}),r&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{className:"m-0",children:r})}),E.jsx("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap my-4",children:E.jsx(xg,{onTokenReceived:f})}),E.jsx("p",{className:"InfoText",children:s("newTabRestartMessage")})]})})})}function nE(i){if(!i)return!1;try{const l=i.split(".");if(l.length!==3)return!1;const s=JSON.parse(atob(l[1]));if(!s.exp)return!1;const r=s.exp*1e3;return Date.now()<r?!0:"expired"}catch(l){return console.error("Error checking JWT token validity:",l),!1}}function aE(){const[i,l]=A.useState(),[s,r]=A.useState(),c=ua(h=>h.resetSession);A.useEffect(()=>{const h=si(),g=nE(h);if(!h||!g){c();return}g==="expired"?r(h):l(h)},[c]);const f=h=>{Op(h),l(h)},p=h=>{Op(h),l(h),r(void 0)};return E.jsxs("div",{className:"App",children:[E.jsx("div",{className:"App-content",children:i?E.jsx(Px,{sessionToken:i,onSessionExpired:()=>l(void 0)}):s?E.jsx(tE,{expiredToken:s,onTokenRefreshed:p}):E.jsx(eE,{onVerified:f})}),E.jsx(Ix,{sessionToken:i})]})}async function lE(){const i=document.getElementById("site-generator-app");i&&lS.createRoot(i).render(E.jsx(No.StrictMode,{children:E.jsx(aE,{})}))}lE().catch(i=>console.error(i));