@paroicms/site-generator-plugin 0.13.0 → 0.14.0
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
|
|
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={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,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 Fh;function Iy(){if(Fh)return Fl;Fh=1;var r=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:r,type:s,key:d,ref:c!==void 0?c:null,props:f}}return Fl.Fragment=l,Fl.jsx=i,Fl.jsxs=i,Fl}var Wh;function ev(){return Wh||(Wh=1,po.exports=Iy()),po.exports}var E=ev();const ie=r=>typeof r=="string",Wl=()=>{let r,l;const i=new Promise((s,c)=>{r=s,l=c});return i.resolve=r,i.reject=l,i},Ph=r=>r==null?"":""+r,tv=(r,l,i)=>{r.forEach(s=>{l[s]&&(i[s]=l[s])})},nv=/###/g,Ih=r=>r&&r.indexOf("###")>-1?r.replace(nv,"."):r,ep=r=>!r||ie(r),ai=(r,l,i)=>{const s=ie(l)?l.split("."):l;let c=0;for(;c<s.length-1;){if(ep(r))return{};const f=Ih(s[c]);!r[f]&&i&&(r[f]=new i),Object.prototype.hasOwnProperty.call(r,f)?r=r[f]:r={},++c}return ep(r)?{}:{obj:r,k:Ih(s[c])}},tp=(r,l,i)=>{const{obj:s,k:c}=ai(r,l,Object);if(s!==void 0||l.length===1){s[c]=i;return}let f=l[l.length-1],d=l.slice(0,l.length-1),g=ai(r,d,Object);for(;g.obj===void 0&&d.length;)f=`${d[d.length-1]}.${f}`,d=d.slice(0,d.length-1),g=ai(r,d,Object),g!=null&&g.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=i},av=(r,l,i,s)=>{const{obj:c,k:f}=ai(r,l,Object);c[f]=c[f]||[],c[f].push(i)},Uu=(r,l)=>{const{obj:i,k:s}=ai(r,l);if(i&&Object.prototype.hasOwnProperty.call(i,s))return i[s]},lv=(r,l,i)=>{const s=Uu(r,i);return s!==void 0?s:Uu(l,i)},Vp=(r,l,i)=>{for(const s in l)s!=="__proto__"&&s!=="constructor"&&(s in r?ie(r[s])||r[s]instanceof String||ie(l[s])||l[s]instanceof String?i&&(r[s]=l[s]):Vp(r[s],l[s],i):r[s]=l[s]);return r},Za=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var iv={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const uv=r=>ie(r)?r.replace(/[&<>"'\/]/g,l=>iv[l]):r;class sv{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const i=this.regExpMap.get(l);if(i!==void 0)return i;const s=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,s),this.regExpQueue.push(l),s}}const rv=[" ",",","?","!",";"],ov=new sv(20),cv=(r,l,i)=>{l=l||"",i=i||"";const s=rv.filter(d=>l.indexOf(d)<0&&i.indexOf(d)<0);if(s.length===0)return!0;const c=ov.getRegExp(`(${s.map(d=>d==="?"?"\\?":d).join("|")})`);let f=!c.test(r);if(!f){const d=r.indexOf(i);d>0&&!c.test(r.substring(0,d))&&(f=!0)}return f},zo=function(r,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[l])return Object.prototype.hasOwnProperty.call(r,l)?r[l]:void 0;const s=l.split(i);let c=r;for(let f=0;f<s.length;){if(!c||typeof c!="object")return;let d,g="";for(let p=f;p<s.length;++p)if(p!==f&&(g+=i),g+=s[p],d=c[g],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&p<s.length-1)continue;f+=p-f+1;break}c=d}return c},Hu=r=>r==null?void 0:r.replace("_","-"),fv={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,l){var i,s;(s=(i=console==null?void 0:console[r])==null?void 0:i.apply)==null||s.call(i,console,l)}};class Bu{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(l,i)}init(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=l||fv,this.options=i,this.debug=i.debug}log(){for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return this.forward(i,"log","",!0)}warn(){for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return this.forward(i,"warn","",!0)}error(){for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return this.forward(i,"error","")}deprecate(){for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(l,i,s,c){return c&&!this.debug?null:(ie(l[0])&&(l[0]=`${s}${this.prefix} ${l[0]}`),this.logger[i](l))}create(l){return new Bu(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new Bu(this.logger,l)}}var Zt=new Bu;class Xu{constructor(){this.observers={}}on(l,i){return l.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const c=this.observers[s].get(i)||0;this.observers[s].set(i,c+1)}),this}off(l,i){if(this.observers[l]){if(!i){delete this.observers[l];return}this.observers[l].delete(i)}}emit(l){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];this.observers[l]&&Array.from(this.observers[l].entries()).forEach(d=>{let[g,p]=d;for(let h=0;h<p;h++)g(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(d=>{let[g,p]=d;for(let h=0;h<p;h++)g.apply(g,[l,...s])})}}class np extends Xu{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=l||{},this.options=i,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 i=this.options.ns.indexOf(l);i>-1&&this.options.ns.splice(i,1)}getResource(l,i,s){var h,y;let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,d=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;l.indexOf(".")>-1?g=l.split("."):(g=[l,i],s&&(Array.isArray(s)?g.push(...s):ie(s)&&f?g.push(...s.split(f)):g.push(s)));const p=Uu(this.data,g);return!p&&!i&&!s&&l.indexOf(".")>-1&&(l=g[0],i=g[1],s=g.slice(2).join(".")),p||!d||!ie(s)?p:zo((y=(h=this.data)==null?void 0:h[l])==null?void 0:y[i],s,f)}addResource(l,i,s,c){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[l,i];s&&(g=g.concat(d?s.split(d):s)),l.indexOf(".")>-1&&(g=l.split("."),c=i,i=g[1]),this.addNamespaces(i),tp(this.data,g,c),f.silent||this.emit("added",l,i,s,c)}addResources(l,i,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const f in s)(ie(s[f])||Array.isArray(s[f]))&&this.addResource(l,i,f,s[f],{silent:!0});c.silent||this.emit("added",l,i,s)}addResourceBundle(l,i,s,c,f){let d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},g=[l,i];l.indexOf(".")>-1&&(g=l.split("."),c=s,s=i,i=g[1]),this.addNamespaces(i);let p=Uu(this.data,g)||{};d.skipCopy||(s=JSON.parse(JSON.stringify(s))),c?Vp(p,s,f):p={...p,...s},tp(this.data,g,p),d.silent||this.emit("added",l,i,s)}removeResourceBundle(l,i){this.hasResourceBundle(l,i)&&delete this.data[l][i],this.removeNamespaces(i),this.emit("removed",l,i)}hasResourceBundle(l,i){return this.getResource(l,i)!==void 0}getResourceBundle(l,i){return i||(i=this.options.defaultNS),this.getResource(l,i)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const i=this.getDataByLanguage(l);return!!(i&&Object.keys(i)||[]).find(c=>i[c]&&Object.keys(i[c]).length>0)}toJSON(){return this.data}}var Yp={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,l,i,s,c){return r.forEach(f=>{var d;l=((d=this.processors[f])==null?void 0:d.process(l,i,s,c))??l}),l}};const ap={},lp=r=>!ie(r)&&typeof r!="boolean"&&typeof r!="number";class qu extends Xu{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),tv(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Zt.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(l==null)return!1;const s=this.resolve(l,i);return(s==null?void 0:s.res)!==void 0}extractFromKey(l,i){let s=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const c=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let f=i.ns||this.options.defaultNS||[];const d=s&&l.indexOf(s)>-1,g=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!cv(l,s,c);if(d&&!g){const p=l.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:l,namespaces:ie(f)?[f]:f};const h=l.split(s);(s!==c||s===c&&this.options.ns.indexOf(h[0])>-1)&&(f=h.shift()),l=h.join(c)}return{key:l,namespaces:ie(f)?[f]:f}}translate(l,i,s){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),l==null)return"";Array.isArray(l)||(l=[String(l)]);const c=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:d,namespaces:g}=this.extractFromKey(l[l.length-1],i),p=g[g.length-1],h=i.lng||this.language,y=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((h==null?void 0:h.toLowerCase())==="cimode"){if(y){const le=i.nsSeparator||this.options.nsSeparator;return c?{res:`${p}${le}${d}`,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(i)}:`${p}${le}${d}`}return c?{res:d,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(i)}:d}const S=this.resolve(l,i);let b=S==null?void 0:S.res;const A=(S==null?void 0:S.usedKey)||d,R=(S==null?void 0:S.exactUsedKey)||d,k=["[object Number]","[object Function]","[object RegExp]"],M=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,H=!this.i18nFormat||this.i18nFormat.handleAsObject,G=i.count!==void 0&&!ie(i.count),$=qu.hasDefaultValue(i),F=G?this.pluralResolver.getSuffix(h,i.count,i):"",X=i.ordinal&&G?this.pluralResolver.getSuffix(h,i.count,{ordinal:!1}):"",se=G&&!i.ordinal&&i.count===0,W=se&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${F}`]||i[`defaultValue${X}`]||i.defaultValue;let K=b;H&&!b&&$&&(K=W);const J=lp(K),re=Object.prototype.toString.apply(K);if(H&&K&&J&&k.indexOf(re)<0&&!(ie(M)&&Array.isArray(K))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const le=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,K,{...i,ns:g}):`key '${d} (${this.language})' returned an object instead of string.`;return c?(S.res=le,S.usedParams=this.getUsedParamsDetails(i),S):le}if(f){const le=Array.isArray(K),me=le?[]:{},ft=le?R:A;for(const Me in K)if(Object.prototype.hasOwnProperty.call(K,Me)){const Ce=`${ft}${f}${Me}`;$&&!b?me[Me]=this.translate(Ce,{...i,defaultValue:lp(W)?W[Me]:void 0,joinArrays:!1,ns:g}):me[Me]=this.translate(Ce,{...i,joinArrays:!1,ns:g}),me[Me]===Ce&&(me[Me]=K[Me])}b=me}}else if(H&&ie(M)&&Array.isArray(b))b=b.join(M),b&&(b=this.extendTranslation(b,l,i,s));else{let le=!1,me=!1;!this.isValidLookup(b)&&$&&(le=!0,b=W),this.isValidLookup(b)||(me=!0,b=d);const Me=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&me?void 0:b,Ce=$&&W!==b&&this.options.updateMissing;if(me||le||Ce){if(this.logger.log(Ce?"updateKey":"missingKey",h,p,d,Ce?W:b),f){const oe=this.resolve(d,{...i,keySeparator:!1});oe&&oe.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 _=[];const V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&V&&V[0])for(let oe=0;oe<V.length;oe++)_.push(V[oe]);else this.options.saveMissingTo==="all"?_=this.languageUtils.toResolveHierarchy(i.lng||this.language):_.push(i.lng||this.language);const I=(oe,T,q)=>{var Y;const Q=$&&q!==b?q:Me;this.options.missingKeyHandler?this.options.missingKeyHandler(oe,p,T,Q,Ce,i):(Y=this.backendConnector)!=null&&Y.saveMissing&&this.backendConnector.saveMissing(oe,p,T,Q,Ce,i),this.emit("missingKey",oe,p,T,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&G?_.forEach(oe=>{const T=this.pluralResolver.getSuffixes(oe,i);se&&i[`defaultValue${this.options.pluralSeparator}zero`]&&T.indexOf(`${this.options.pluralSeparator}zero`)<0&&T.push(`${this.options.pluralSeparator}zero`),T.forEach(q=>{I([oe],d+q,i[`defaultValue${q}`]||W)})}):I(_,d,W))}b=this.extendTranslation(b,l,i,S,s),me&&b===d&&this.options.appendNamespaceToMissingKey&&(b=`${p}:${d}`),(me||le)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}:${d}`:d,le?b:void 0))}return c?(S.res=b,S.usedParams=this.getUsedParamsDetails(i),S):b}extendTranslation(l,i,s,c,f){var h,y;var d=this;if((h=this.i18nFormat)!=null&&h.parse)l=this.i18nFormat.parse(l,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const S=ie(l)&&(((y=s==null?void 0:s.interpolation)==null?void 0:y.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let b;if(S){const R=l.match(this.interpolator.nestingRegexp);b=R&&R.length}let A=s.replace&&!ie(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(A={...this.options.interpolation.defaultVariables,...A}),l=this.interpolator.interpolate(l,A,s.lng||this.language||c.usedLng,s),S){const R=l.match(this.interpolator.nestingRegexp),k=R&&R.length;b<k&&(s.nest=!1)}!s.lng&&c&&c.res&&(s.lng=this.language||c.usedLng),s.nest!==!1&&(l=this.interpolator.nest(l,function(){for(var R=arguments.length,k=new Array(R),M=0;M<R;M++)k[M]=arguments[M];return(f==null?void 0:f[0])===k[0]&&!s.context?(d.logger.warn(`It seems you are nesting recursively key: ${k[0]} in key: ${i[0]}`),null):d.translate(...k,i)},s)),s.interpolation&&this.interpolator.reset()}const g=s.postProcess||this.options.postProcess,p=ie(g)?[g]:g;return l!=null&&(p!=null&&p.length)&&s.applyPostProcessor!==!1&&(l=Yp.handle(p,l,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),l}resolve(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,c,f,d,g;return ie(l)&&(l=[l]),l.forEach(p=>{if(this.isValidLookup(s))return;const h=this.extractFromKey(p,i),y=h.key;c=y;let S=h.namespaces;this.options.fallbackNS&&(S=S.concat(this.options.fallbackNS));const b=i.count!==void 0&&!ie(i.count),A=b&&!i.ordinal&&i.count===0,R=i.context!==void 0&&(ie(i.context)||typeof i.context=="number")&&i.context!=="",k=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);S.forEach(M=>{var H,G;this.isValidLookup(s)||(g=M,!ap[`${k[0]}-${M}`]&&((H=this.utils)!=null&&H.hasLoadedNamespace)&&!((G=this.utils)!=null&&G.hasLoadedNamespace(g))&&(ap[`${k[0]}-${M}`]=!0,this.logger.warn(`key "${c}" for languages "${k.join(", ")}" won't get resolved as namespace "${g}" 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!!!")),k.forEach($=>{var se;if(this.isValidLookup(s))return;d=$;const F=[y];if((se=this.i18nFormat)!=null&&se.addLookupKeys)this.i18nFormat.addLookupKeys(F,y,$,M,i);else{let W;b&&(W=this.pluralResolver.getSuffix($,i.count,i));const K=`${this.options.pluralSeparator}zero`,J=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(F.push(y+W),i.ordinal&&W.indexOf(J)===0&&F.push(y+W.replace(J,this.options.pluralSeparator)),A&&F.push(y+K)),R){const re=`${y}${this.options.contextSeparator}${i.context}`;F.push(re),b&&(F.push(re+W),i.ordinal&&W.indexOf(J)===0&&F.push(re+W.replace(J,this.options.pluralSeparator)),A&&F.push(re+K))}}let X;for(;X=F.pop();)this.isValidLookup(s)||(f=X,s=this.getResource($,M,X,i))}))})}),{res:s,usedKey:c,exactUsedKey:f,usedLng:d,usedNS:g}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,i,s){var f;let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(l,i,s,c):this.resourceStore.getResource(l,i,s,c)}getUsedParamsDetails(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=l.replace&&!ie(l.replace);let c=s?l.replace:l;if(s&&typeof l.count<"u"&&(c.count=l.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!s){c={...c};for(const f of i)delete c[f]}return c}static hasDefaultValue(l){const i="defaultValue";for(const s in l)if(Object.prototype.hasOwnProperty.call(l,s)&&i===s.substring(0,i.length)&&l[s]!==void 0)return!0;return!1}}class ip{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zt.create("languageUtils")}getScriptPartFromCode(l){if(l=Hu(l),!l||l.indexOf("-")<0)return null;const i=l.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(l){if(l=Hu(l),!l||l.indexOf("-")<0)return l;const i=l.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(l){if(ie(l)&&l.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(l)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(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 i;return l.forEach(s=>{if(i)return;const c=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(c))&&(i=c)}),!i&&this.options.supportedLngs&&l.forEach(s=>{if(i)return;const c=this.getLanguagePartFromCode(s);if(this.isSupportedCode(c))return i=c;i=this.options.supportedLngs.find(f=>{if(f===c)return f;if(!(f.indexOf("-")<0&&c.indexOf("-")<0)&&(f.indexOf("-")>0&&c.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===c||f.indexOf(c)===0&&c.length>1))return f})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(l,i){if(!l)return[];if(typeof l=="function"&&(l=l(i)),ie(l)&&(l=[l]),Array.isArray(l))return l;if(!i)return l.default||[];let s=l[i];return s||(s=l[this.getScriptPartFromCode(i)]),s||(s=l[this.formatLanguageCode(i)]),s||(s=l[this.getLanguagePartFromCode(i)]),s||(s=l.default),s||[]}toResolveHierarchy(l,i){const s=this.getFallbackCodes(i||this.options.fallbackLng||[],l),c=[],f=d=>{d&&(this.isSupportedCode(d)?c.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return ie(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))):ie(l)&&f(this.formatLanguageCode(l)),s.forEach(d=>{c.indexOf(d)<0&&f(this.formatLanguageCode(d))}),c}}const up={zero:0,one:1,two:2,few:3,many:4,other:5},sp={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class dv{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=l,this.options=i,this.logger=Zt.create("pluralResolver"),this.pluralRulesCache={}}addRule(l,i){this.rules[l]=i}clearCache(){this.pluralRulesCache={}}getRule(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=Hu(l==="dev"?"en":l),c=i.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:s,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let d;try{d=new Intl.PluralRules(s,{type:c})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),sp;if(!l.match(/-|_/))return sp;const p=this.languageUtils.getLanguagePartFromCode(l);d=this.getRule(p,i)}return this.pluralRulesCache[f]=d,d}needsPlural(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(l,i);return s||(s=this.getRule("dev",i)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(l,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(l,s).map(c=>`${i}${c}`)}getSuffixes(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(l,i);return s||(s=this.getRule("dev",i)),s?s.resolvedOptions().pluralCategories.sort((c,f)=>up[c]-up[f]).map(c=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(l,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const c=this.getRule(l,s);return c?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${c.select(i)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",i,s))}}const rp=function(r,l,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=lv(r,l,i);return!f&&c&&ie(i)&&(f=zo(r,i,s),f===void 0&&(f=zo(l,i,s))),f},go=r=>r.replace(/\$/g,"$$$$");class hv{constructor(){var i;let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Zt.create("interpolator"),this.options=l,this.format=((i=l==null?void 0:l.interpolation)==null?void 0:i.format)||(s=>s),this.init(l)}init(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};l.interpolation||(l.interpolation={escapeValue:!0});const{escape:i,escapeValue:s,useRawValueToEscape:c,prefix:f,prefixEscaped:d,suffix:g,suffixEscaped:p,formatSeparator:h,unescapeSuffix:y,unescapePrefix:S,nestingPrefix:b,nestingPrefixEscaped:A,nestingSuffix:R,nestingSuffixEscaped:k,nestingOptionsSeparator:M,maxReplaces:H,alwaysFormat:G}=l.interpolation;this.escape=i!==void 0?i:uv,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?Za(f):d||"{{",this.suffix=g?Za(g):p||"}}",this.formatSeparator=h||",",this.unescapePrefix=y?"":S||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=b?Za(b):A||Za("$t("),this.nestingSuffix=R?Za(R):k||Za(")"),this.nestingOptionsSeparator=M||",",this.maxReplaces=H||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(i,s)=>(i==null?void 0:i.source)===s?(i.lastIndex=0,i):new RegExp(s,"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,i,s,c){var A;let f,d,g;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=R=>{if(R.indexOf(this.formatSeparator)<0){const G=rp(i,p,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,s,{...c,...i,interpolationkey:R}):G}const k=R.split(this.formatSeparator),M=k.shift().trim(),H=k.join(this.formatSeparator).trim();return this.format(rp(i,p,M,this.options.keySeparator,this.options.ignoreJSONStructure),H,s,{...c,...i,interpolationkey:M})};this.resetRegExp();const y=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,S=((A=c==null?void 0:c.interpolation)==null?void 0:A.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>go(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?go(this.escape(R)):go(R)}].forEach(R=>{for(g=0;f=R.regex.exec(l);){const k=f[1].trim();if(d=h(k),d===void 0)if(typeof y=="function"){const H=y(l,f,c);d=ie(H)?H:""}else if(c&&Object.prototype.hasOwnProperty.call(c,k))d="";else if(S){d=f[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${l}`),d="";else!ie(d)&&!this.useRawValueToEscape&&(d=Ph(d));const M=R.safeValue(d);if(l=l.replace(f[0],M),S?(R.regex.lastIndex+=d.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),l}nest(l,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,f,d;const g=(p,h)=>{const y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;const S=p.split(new RegExp(`${y}[ ]*{`));let b=`{${S[1]}`;p=S[0],b=this.interpolate(b,d);const A=b.match(/'/g),R=b.match(/"/g);(((A==null?void 0:A.length)??0)%2===0&&!R||R.length%2!==0)&&(b=b.replace(/'/g,'"'));try{d=JSON.parse(b),h&&(d={...h,...d})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,k),`${p}${y}${b}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,p};for(;c=this.nestingRegexp.exec(l);){let p=[];d={...s},d=d.replace&&!ie(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;let h=!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(),p=y,h=!0}if(f=i(g.call(this,c[1].trim(),d),d),f&&c[0]===l&&!ie(f))return f;ie(f)||(f=Ph(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${l}`),f=""),h&&(f=p.reduce((y,S)=>this.format(y,S,s.lng,{...s,interpolationkey:c[1].trim()}),f.trim())),l=l.replace(c[0],f),this.regexp.lastIndex=0}return l}}const pv=r=>{let l=r.toLowerCase().trim();const i={};if(r.indexOf("(")>-1){const s=r.split("(");l=s[0].toLowerCase().trim();const c=s[1].substring(0,s[1].length-1);l==="currency"&&c.indexOf(":")<0?i.currency||(i.currency=c.trim()):l==="relativetime"&&c.indexOf(":")<0?i.range||(i.range=c.trim()):c.split(";").forEach(d=>{if(d){const[g,...p]=d.split(":"),h=p.join(":").trim().replace(/^'+|'+$/g,""),y=g.trim();i[y]||(i[y]=h),h==="false"&&(i[y]=!1),h==="true"&&(i[y]=!0),isNaN(h)||(i[y]=parseInt(h,10))}})}return{formatName:l,formatOptions:i}},Ka=r=>{const l={};return(i,s,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const d=s+JSON.stringify(f);let g=l[d];return g||(g=r(Hu(s),c),l[d]=g),g(i)}};class gv{constructor(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Zt.create("formatter"),this.options=l,this.formats={number:Ka((i,s)=>{const c=new Intl.NumberFormat(i,{...s});return f=>c.format(f)}),currency:Ka((i,s)=>{const c=new Intl.NumberFormat(i,{...s,style:"currency"});return f=>c.format(f)}),datetime:Ka((i,s)=>{const c=new Intl.DateTimeFormat(i,{...s});return f=>c.format(f)}),relativetime:Ka((i,s)=>{const c=new Intl.RelativeTimeFormat(i,{...s});return f=>c.format(f,s.range||"day")}),list:Ka((i,s)=>{const c=new Intl.ListFormat(i,{...s});return f=>c.format(f)})},this.init(l)}init(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=i.interpolation.formatSeparator||","}add(l,i){this.formats[l.toLowerCase().trim()]=i}addCached(l,i){this.formats[l.toLowerCase().trim()]=Ka(i)}format(l,i,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=i.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(g=>g.indexOf(")")>-1)){const g=f.findIndex(p=>p.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,p)=>{var S;const{formatName:h,formatOptions:y}=pv(p);if(this.formats[h]){let b=g;try{const A=((S=c==null?void 0:c.formatParams)==null?void 0:S[c.interpolationkey])||{},R=A.locale||A.lng||c.locale||c.lng||s;b=this.formats[h](g,R,{...y,...c,...A})}catch(A){this.logger.warn(A)}return b}else this.logger.warn(`there was no format function for ${h}`);return g},l)}}const mv=(r,l)=>{r.pending[l]!==void 0&&(delete r.pending[l],r.pendingCount--)};class yv extends Xu{constructor(l,i,s){var f,d;let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=l,this.store=i,this.services=s,this.languageUtils=s.languageUtils,this.options=c,this.logger=Zt.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=[],(d=(f=this.backend)==null?void 0:f.init)==null||d.call(f,s,c.backend,c)}queueLoad(l,i,s,c){const f={},d={},g={},p={};return l.forEach(h=>{let y=!0;i.forEach(S=>{const b=`${h}|${S}`;!s.reload&&this.store.hasResourceBundle(h,S)?this.state[b]=2:this.state[b]<0||(this.state[b]===1?d[b]===void 0&&(d[b]=!0):(this.state[b]=1,y=!1,d[b]===void 0&&(d[b]=!0),f[b]===void 0&&(f[b]=!0),p[S]===void 0&&(p[S]=!0)))}),y||(g[h]=!0)}),(Object.keys(f).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(d),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(p)}}loaded(l,i,s){const c=l.split("|"),f=c[0],d=c[1];i&&this.emit("failedLoading",f,d,i),!i&&s&&this.store.addResourceBundle(f,d,s,void 0,void 0,{skipCopy:!0}),this.state[l]=i?-1:2,i&&s&&(this.state[l]=0);const g={};this.queue.forEach(p=>{av(p.loaded,[f],d),mv(p,l),i&&p.errors.push(i),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(h=>{g[h]||(g[h]={});const y=p.loaded[h];y.length&&y.forEach(S=>{g[h][S]===void 0&&(g[h][S]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(p=>!p.done)}read(l,i,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,d=arguments.length>5?arguments[5]:void 0;if(!l.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:i,fcName:s,tried:c,wait:f,callback:d});return}this.readingCalls++;const g=(h,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(h&&y&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,l,i,s,c+1,f*2,d)},f);return}d(h,y)},p=this.backend[s].bind(this.backend);if(p.length===2){try{const h=p(l,i);h&&typeof h.then=="function"?h.then(y=>g(null,y)).catch(g):g(null,h)}catch(h){g(h)}return}return p(l,i,g)}prepareLoading(l,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();ie(l)&&(l=this.languageUtils.toResolveHierarchy(l)),ie(i)&&(i=[i]);const f=this.queueLoad(l,i,s,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(d=>{this.loadOne(d)})}load(l,i,s){this.prepareLoading(l,i,{},s)}reload(l,i,s){this.prepareLoading(l,i,{reload:!0},s)}loadOne(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=l.split("|"),c=s[0],f=s[1];this.read(c,f,"read",void 0,void 0,(d,g)=>{d&&this.logger.warn(`${i}loading namespace ${f} for language ${c} failed`,d),!d&&g&&this.logger.log(`${i}loaded namespace ${f} for language ${c}`,g),this.loaded(l,d,g)})}saveMissing(l,i,s,c,f){var p,h,y,S,b;let d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},g=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((h=(p=this.services)==null?void 0:p.utils)!=null&&h.hasLoadedNamespace&&!((S=(y=this.services)==null?void 0:y.utils)!=null&&S.hasLoadedNamespace(i))){this.logger.warn(`did not save key "${s}" as the namespace "${i}" 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(!(s==null||s==="")){if((b=this.backend)!=null&&b.create){const A={...d,isUpdate:f},R=this.backend.create.bind(this.backend);if(R.length<6)try{let k;R.length===5?k=R(l,i,s,c,A):k=R(l,i,s,c),k&&typeof k.then=="function"?k.then(M=>g(null,M)).catch(g):g(null,k)}catch(k){g(k)}else R(l,i,s,c,g,A)}!l||!l[0]||this.store.addResource(l[0],i,s,c)}}}const op=()=>({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:r=>{let l={};if(typeof r[1]=="object"&&(l=r[1]),ie(r[1])&&(l.defaultValue=r[1]),ie(r[2])&&(l.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const i=r[3]||r[2];Object.keys(i).forEach(s=>{l[s]=i[s]})}return l},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),cp=r=>{var l,i;return ie(r.ns)&&(r.ns=[r.ns]),ie(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),ie(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),((i=(l=r.supportedLngs)==null?void 0:l.indexOf)==null?void 0:i.call(l,"cimode"))<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r},Cu=()=>{},vv=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(i=>{typeof r[i]=="function"&&(r[i]=r[i].bind(r))})};class ui extends Xu{constructor(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=cp(l),this.services={},this.logger=Zt,this.modules={external:[]},vv(this),i&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,i),this;setTimeout(()=>{this.init(l,i)},0)}}init(){var l=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(s=i,i={}),i.defaultNS==null&&i.ns&&(ie(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const c=op();this.options={...c,...this.options,...cp(i)},this.options.interpolation={...c.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);const f=y=>y?typeof y=="function"?new y:y:null;if(!this.options.isClone){this.modules.logger?Zt.init(f(this.modules.logger),this.options):Zt.init(null,this.options);let y;this.modules.formatter?y=this.modules.formatter:y=gv;const S=new ip(this.options);this.store=new np(this.options.resources,this.options);const b=this.services;b.logger=Zt,b.resourceStore=this.store,b.languageUtils=S,b.pluralResolver=new dv(S,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),y&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(b.formatter=f(y),b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new hv(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new yv(f(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",function(A){for(var R=arguments.length,k=new Array(R>1?R-1:0),M=1;M<R;M++)k[M-1]=arguments[M];l.emit(A,...k)}),this.modules.languageDetector&&(b.languageDetector=f(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=f(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new qu(this.services,this.options),this.translator.on("*",function(A){for(var R=arguments.length,k=new Array(R>1?R-1:0),M=1;M<R;M++)k[M-1]=arguments[M];l.emit(A,...k)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Cu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const y=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);y.length>0&&y[0]!=="dev"&&(this.options.lng=y[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(y=>{this[y]=function(){return l.store[y](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(y=>{this[y]=function(){return l.store[y](...arguments),l}});const p=Wl(),h=()=>{const y=(S,b)=>{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),p.resolve(b),s(S,b)};if(this.languages&&!this.isInitialized)return y(null,this.t.bind(this));this.changeLanguage(this.options.lng,y)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),p}loadResources(l){var f,d;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu;const c=ie(l)?l:this.language;if(typeof l=="function"&&(s=l),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const g=[],p=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(S=>{S!=="cimode"&&g.indexOf(S)<0&&g.push(S)})};c?p(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>p(y)),(d=(f=this.options.preload)==null?void 0:f.forEach)==null||d.call(f,h=>p(h)),this.services.backendConnector.load(g,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(h)})}else s(null)}reloadResources(l,i,s){const c=Wl();return typeof l=="function"&&(s=l,l=void 0),typeof i=="function"&&(s=i,i=void 0),l||(l=this.languages),i||(i=this.options.ns),s||(s=Cu),this.services.backendConnector.reload(l,i,f=>{c.resolve(),s(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"&&Yp.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 i=0;i<this.languages.length;i++){const s=this.languages[i];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(l,i){var s=this;this.isLanguageChangingTo=l;const c=Wl();this.emit("languageChanging",l);const f=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},d=(p,h)=>{h?(f(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,c.resolve(function(){return s.t(...arguments)}),i&&i(p,function(){return s.t(...arguments)})},g=p=>{var y,S;!l&&!p&&this.services.languageDetector&&(p=[]);const h=ie(p)?p:this.services.languageUtils.getBestMatchFromCodes(p);h&&(this.language||f(h),this.translator.language||this.translator.changeLanguage(h),(S=(y=this.services.languageDetector)==null?void 0:y.cacheUserLanguage)==null||S.call(y,h)),this.loadResources(h,b=>{d(b,h)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?g(this.services.languageDetector.detect()):!l&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(g):this.services.languageDetector.detect(g):g(l),c}getFixedT(l,i,s){var c=this;const f=function(d,g){let p;if(typeof g!="object"){for(var h=arguments.length,y=new Array(h>2?h-2:0),S=2;S<h;S++)y[S-2]=arguments[S];p=c.options.overloadTranslationOptionHandler([d,g].concat(y))}else p={...g};p.lng=p.lng||f.lng,p.lngs=p.lngs||f.lngs,p.ns=p.ns||f.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||s||f.keyPrefix);const b=c.options.keySeparator||".";let A;return p.keyPrefix&&Array.isArray(d)?A=d.map(R=>`${p.keyPrefix}${b}${R}`):A=p.keyPrefix?`${p.keyPrefix}${b}${d}`:d,c.t(A,p)};return ie(l)?f.lng=l:f.lngs=l,f.ns=i,f.keyPrefix=s,f}t(){var c;for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return(c=this.translator)==null?void 0:c.translate(...i)}exists(){var c;for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return(c=this.translator)==null?void 0:c.exists(...i)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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 s=i.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const d=(g,p)=>{const h=this.services.backendConnector.state[`${g}|${p}`];return h===-1||h===0||h===2};if(i.precheck){const g=i.precheck(this,d);if(g!==void 0)return g}return!!(this.hasResourceBundle(s,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(s,l)&&(!c||d(f,l)))}loadNamespaces(l,i){const s=Wl();return this.options.ns?(ie(l)&&(l=[l]),l.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{s.resolve(),i&&i(c)}),s):(i&&i(),Promise.resolve())}loadLanguages(l,i){const s=Wl();ie(l)&&(l=[l]);const c=this.options.preload||[],f=l.filter(d=>c.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return f.length?(this.options.preload=c.concat(f),this.loadResources(d=>{s.resolve(),i&&i(d)}),s):(i&&i(),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 i=["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"],s=((f=this.services)==null?void 0:f.languageUtils)||new ip(op());return i.indexOf(s.getLanguagePartFromCode(l))>-1||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new ui(l,i)}cloneInstance(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu;const s=l.forkResourceStore;s&&delete l.forkResourceStore;const c={...this.options,...l,isClone:!0},f=new ui(c);if((l.debug!==void 0||l.prefix!==void 0)&&(f.logger=f.logger.clone(l)),["store","services","language"].forEach(g=>{f[g]=this[g]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s){const g=Object.keys(this.store.data).reduce((p,h)=>(p[h]={...this.store.data[h]},Object.keys(p[h]).reduce((y,S)=>(y[S]={...p[h][S]},y),{})),{});f.store=new np(g,c),f.services.resourceStore=f.store}return f.translator=new qu(f.services,c),f.translator.on("*",function(g){for(var p=arguments.length,h=new Array(p>1?p-1:0),y=1;y<p;y++)h[y-1]=arguments[y];f.emit(g,...h)}),f.init(c,i),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 tt=ui.createInstance();tt.createInstance=ui.createInstance;tt.createInstance;tt.dir;tt.init;tt.loadResources;tt.reloadResources;tt.use;tt.changeLanguage;tt.getFixedT;tt.t;tt.exists;tt.setDefaultNamespace;tt.hasLoadedNamespace;tt.loadNamespaces;tt.loadLanguages;var mo={exports:{}},ce={};/**
|
|
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={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};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={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,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 fp;function bv(){if(fp)return ce;fp=1;var r=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.iterator;function b(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,k={};function M(T,q,Q){this.props=T,this.context=q,this.refs=k,this.updater=Q||A}M.prototype.isReactComponent={},M.prototype.setState=function(T,q){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,q,"setState")},M.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function H(){}H.prototype=M.prototype;function G(T,q,Q){this.props=T,this.context=q,this.refs=k,this.updater=Q||A}var $=G.prototype=new H;$.constructor=G,R($,M.prototype),$.isPureReactComponent=!0;var F=Array.isArray,X={H:null,A:null,T:null,S:null,V:null},se=Object.prototype.hasOwnProperty;function W(T,q,Q,Y,ee,ye){return Q=ye.ref,{$$typeof:r,type:T,key:q,ref:Q!==void 0?Q:null,props:ye}}function K(T,q){return W(T.type,q,void 0,void 0,void 0,T.props)}function J(T){return typeof T=="object"&&T!==null&&T.$$typeof===r}function re(T){var q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Q){return q[Q]})}var le=/\/+/g;function me(T,q){return typeof T=="object"&&T!==null&&T.key!=null?re(""+T.key):q.toString(36)}function ft(){}function Me(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ft,ft):(T.status="pending",T.then(function(q){T.status==="pending"&&(T.status="fulfilled",T.value=q)},function(q){T.status==="pending"&&(T.status="rejected",T.reason=q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function Ce(T,q,Q,Y,ee){var ye=typeof T;(ye==="undefined"||ye==="boolean")&&(T=null);var ue=!1;if(T===null)ue=!0;else switch(ye){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(T.$$typeof){case r:case l:ue=!0;break;case y:return ue=T._init,Ce(ue(T._payload),q,Q,Y,ee)}}if(ue)return ee=ee(T),ue=Y===""?"."+me(T,0):Y,F(ee)?(Q="",ue!=null&&(Q=ue.replace(le,"$&/")+"/"),Ce(ee,q,Q,"",function(dn){return dn})):ee!=null&&(J(ee)&&(ee=K(ee,Q+(ee.key==null||T&&T.key===ee.key?"":(""+ee.key).replace(le,"$&/")+"/")+ue)),q.push(ee)),1;ue=0;var dt=Y===""?".":Y+":";if(F(T))for(var ke=0;ke<T.length;ke++)Y=T[ke],ye=dt+me(Y,ke),ue+=Ce(Y,q,Q,ye,ee);else if(ke=b(T),typeof ke=="function")for(T=ke.call(T),ke=0;!(Y=T.next()).done;)Y=Y.value,ye=dt+me(Y,ke++),ue+=Ce(Y,q,Q,ye,ee);else if(ye==="object"){if(typeof T.then=="function")return Ce(Me(T),q,Q,Y,ee);throw q=String(T),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ue}function _(T,q,Q){if(T==null)return T;var Y=[],ee=0;return Ce(T,Y,"","",function(ye){return q.call(Q,ye,ee++)}),Y}function V(T){if(T._status===-1){var q=T._result;q=q(),q.then(function(Q){(T._status===0||T._status===-1)&&(T._status=1,T._result=Q)},function(Q){(T._status===0||T._status===-1)&&(T._status=2,T._result=Q)}),T._status===-1&&(T._status=0,T._result=q)}if(T._status===1)return T._result.default;throw T._result}var I=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function oe(){}return ce.Children={map:_,forEach:function(T,q,Q){_(T,function(){q.apply(this,arguments)},Q)},count:function(T){var q=0;return _(T,function(){q++}),q},toArray:function(T){return _(T,function(q){return q})||[]},only:function(T){if(!J(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},ce.Component=M,ce.Fragment=i,ce.Profiler=c,ce.PureComponent=G,ce.StrictMode=s,ce.Suspense=p,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ce.__COMPILER_RUNTIME={__proto__:null,c:function(T){return X.H.useMemoCache(T)}},ce.cache=function(T){return function(){return T.apply(null,arguments)}},ce.cloneElement=function(T,q,Q){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var Y=R({},T.props),ee=T.key,ye=void 0;if(q!=null)for(ue in q.ref!==void 0&&(ye=void 0),q.key!==void 0&&(ee=""+q.key),q)!se.call(q,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&q.ref===void 0||(Y[ue]=q[ue]);var ue=arguments.length-2;if(ue===1)Y.children=Q;else if(1<ue){for(var dt=Array(ue),ke=0;ke<ue;ke++)dt[ke]=arguments[ke+2];Y.children=dt}return W(T.type,ee,void 0,void 0,ye,Y)},ce.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},ce.createElement=function(T,q,Q){var Y,ee={},ye=null;if(q!=null)for(Y in q.key!==void 0&&(ye=""+q.key),q)se.call(q,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(ee[Y]=q[Y]);var ue=arguments.length-2;if(ue===1)ee.children=Q;else if(1<ue){for(var dt=Array(ue),ke=0;ke<ue;ke++)dt[ke]=arguments[ke+2];ee.children=dt}if(T&&T.defaultProps)for(Y in ue=T.defaultProps,ue)ee[Y]===void 0&&(ee[Y]=ue[Y]);return W(T,ye,void 0,void 0,null,ee)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(T){return{$$typeof:g,render:T}},ce.isValidElement=J,ce.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:V}},ce.memo=function(T,q){return{$$typeof:h,type:T,compare:q===void 0?null:q}},ce.startTransition=function(T){var q=X.T,Q={};X.T=Q;try{var Y=T(),ee=X.S;ee!==null&&ee(Q,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(oe,I)}catch(ye){I(ye)}finally{X.T=q}},ce.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ce.use=function(T){return X.H.use(T)},ce.useActionState=function(T,q,Q){return X.H.useActionState(T,q,Q)},ce.useCallback=function(T,q){return X.H.useCallback(T,q)},ce.useContext=function(T){return X.H.useContext(T)},ce.useDebugValue=function(){},ce.useDeferredValue=function(T,q){return X.H.useDeferredValue(T,q)},ce.useEffect=function(T,q,Q){var Y=X.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(T,q)},ce.useId=function(){return X.H.useId()},ce.useImperativeHandle=function(T,q,Q){return X.H.useImperativeHandle(T,q,Q)},ce.useInsertionEffect=function(T,q){return X.H.useInsertionEffect(T,q)},ce.useLayoutEffect=function(T,q){return X.H.useLayoutEffect(T,q)},ce.useMemo=function(T,q){return X.H.useMemo(T,q)},ce.useOptimistic=function(T,q){return X.H.useOptimistic(T,q)},ce.useReducer=function(T,q,Q){return X.H.useReducer(T,q,Q)},ce.useRef=function(T){return X.H.useRef(T)},ce.useState=function(T){return X.H.useState(T)},ce.useSyncExternalStore=function(T,q,Q){return X.H.useSyncExternalStore(T,q,Q)},ce.useTransition=function(){return X.H.useTransition()},ce.version="19.1.0",ce}var dp;function oi(){return dp||(dp=1,mo.exports=bv()),mo.exports}var O=oi();const Qp=Ho(O),Sv=(r,l,i,s)=>{var f,d,g,p;const c=[i,{code:l,...s||{}}];if((d=(f=r==null?void 0:r.services)==null?void 0:f.logger)!=null&&d.forward)return r.services.logger.forward(c,"warn","react-i18next::",!0);aa(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(p=(g=r==null?void 0:r.services)==null?void 0:g.logger)!=null&&p.warn?r.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},hp={},ko=(r,l,i,s)=>{aa(i)&&hp[i]||(aa(i)&&(hp[i]=new Date),Sv(r,l,i,s))},Xp=(r,l)=>()=>{if(r.isInitialized)l();else{const i=()=>{setTimeout(()=>{r.off("initialized",i)},0),l()};r.on("initialized",i)}},Do=(r,l,i)=>{r.loadNamespaces(l,Xp(r,i))},pp=(r,l,i,s)=>{if(aa(i)&&(i=[i]),r.options.preload&&r.options.preload.indexOf(l)>-1)return Do(r,i,s);i.forEach(c=>{r.options.ns.indexOf(c)<0&&r.options.ns.push(c)}),r.loadLanguages(l,Xp(r,s))},xv=(r,l,i={})=>!l.languages||!l.languages.length?(ko(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(r,{lng:i.lng,precheck:(s,c)=>{var f;if(((f=i.bindI18n)==null?void 0:f.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!c(s.isLanguageChangingTo,r))return!1}}),aa=r=>typeof r=="string",Ev=r=>typeof r=="object"&&r!==null,Tv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Rv={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},wv=r=>Rv[r],Nv=r=>r.replace(Tv,wv);let jo={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Nv};const Av=(r={})=>{jo={...jo,...r}},Ov=()=>jo;let Zp;const Cv=r=>{Zp=r},zv=()=>Zp,kv={type:"3rdParty",init(r){Av(r.options.react),Cv(r)}},Dv=O.createContext();class jv{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Mv=(r,l)=>{const i=O.useRef();return O.useEffect(()=>{i.current=r},[r,l]),i.current},Kp=(r,l,i,s)=>r.getFixedT(l,i,s),_v=(r,l,i,s)=>O.useCallback(Kp(r,l,i,s),[r,l,i,s]),nt=(r,l={})=>{var F,X,se,W;const{i18n:i}=l,{i18n:s,defaultNS:c}=O.useContext(Dv)||{},f=i||s||zv();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new jv),!f){ko(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const K=(re,le)=>aa(le)?le:Ev(le)&&aa(le.defaultValue)?le.defaultValue:Array.isArray(re)?re[re.length-1]:re,J=[K,{},!1];return J.t=K,J.i18n={},J.ready=!1,J}(F=f.options.react)!=null&&F.wait&&ko(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const d={...Ov(),...f.options.react,...l},{useSuspense:g,keyPrefix:p}=d;let h=c||((X=f.options)==null?void 0:X.defaultNS);h=aa(h)?[h]:h||["translation"],(W=(se=f.reportNamespaces).addUsedNamespaces)==null||W.call(se,h);const y=(f.isInitialized||f.initializedStoreOnce)&&h.every(K=>xv(K,f,d)),S=_v(f,l.lng||null,d.nsMode==="fallback"?h:h[0],p),b=()=>S,A=()=>Kp(f,l.lng||null,d.nsMode==="fallback"?h:h[0],p),[R,k]=O.useState(b);let M=h.join();l.lng&&(M=`${l.lng}${M}`);const H=Mv(M),G=O.useRef(!0);O.useEffect(()=>{const{bindI18n:K,bindI18nStore:J}=d;G.current=!0,!y&&!g&&(l.lng?pp(f,l.lng,h,()=>{G.current&&k(A)}):Do(f,h,()=>{G.current&&k(A)})),y&&H&&H!==M&&G.current&&k(A);const re=()=>{G.current&&k(A)};return K&&(f==null||f.on(K,re)),J&&(f==null||f.store.on(J,re)),()=>{G.current=!1,f&&(K==null||K.split(" ").forEach(le=>f.off(le,re))),J&&f&&J.split(" ").forEach(le=>f.store.off(le,re))}},[f,M]),O.useEffect(()=>{G.current&&y&&k(b)},[f,p,y]);const $=[R,f,y];if($.t=R,$.i18n=f,$.ready=y,y||!y&&!g)return $;throw new Promise(K=>{l.lng?pp(f,l.lng,h,()=>K()):Do(f,h,()=>K())})},Lv="ParoiCMS Site Generator",Uv="<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>",Hv="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.",Bv="Add a new text field to the page…",qv="Modify the Site Schema",Gv="Create a Site Schema",$v="Generate the website",Vv="Generate site with sample data (recommended)",Yv="Generate an empty site",Qv="Open the back-office",Xv="Open the site",Zv="Generated Schema",Kv="Tree View",Jv="Site Schema",Fv="Node Types",Wv="Labels",Pv="Select language",Iv="Explanations",e0="Current Activity",t0="An error occurred: {{ message }}",n0="An error occurred",a0="Start Again",l0="Step",i0="Step {{stepNumber}}: {{kind}}",u0="This step is in progress…",s0="This step failed.",r0="This step had no effect.",o0="No session data available",c0="Step not found",f0="Welcome to ParoiCMS Site Generator",d0="Close and start again",h0="Reset Schema",p0="unknown error",g0="Create New Site",m0="Generating your site…",y0="The site is generated",v0="Email:",b0="Password:",S0="I agree",x0="You are about to generate your website.",E0="Cancel",T0="Confirm",R0="Site URL:",w0="Admin URL:",N0="Copy all information to clipboard",A0="<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>",O0="Initial Schema Creation",C0="Schema Update",z0="Site Generation",k0={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…"},D0="Login Email",j0="Login Password",M0="Generated Site",_0="Your session has expired. Please refresh the page to start a new session.",L0="Failed to submit your prompt. Please try again.",U0="Failed to generate the site. Please try again.",H0='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>.',B0="Extend your session",q0="Failed to refresh your session. Please try again.",G0="Error connecting to server. Please check your connection and try again.",$0="Tip: If you want to start over, open the generator in a new tab and close this one.",V0={title:Lv,startInstruction:Uv,createPromptPlaceholder:Hv,updatePromptPlaceholder:Bv,modifySchema:qv,createSchema:Gv,generateTheWebsite:$v,generateSiteWithData:Vv,generateEmptySite:Yv,administration:Qv,viewSite:Xv,generatedSchema:Zv,treeView:Kv,siteSchema:Jv,nodeTypes:Fv,labels:Wv,languageSelector:Pv,explanation:Iv,currentActivity:e0,errorOccurred:t0,unknownErrorOccurred:n0,startAgain:a0,step:l0,stepTitle:i0,stepPending:u0,stepFailed:s0,stepNoEffect:r0,noSessionData:o0,stepNotFound:c0,welcomeTitle:f0,reset:d0,resetSchema:h0,unknownError:p0,createNewSite:g0,generatingSite:m0,siteGenerated:y0,email:v0,password:b0,agree:S0,aboutToGenerateWebsite:x0,cancel:E0,confirm:T0,siteUrl:R0,adminUrl:w0,copyToClipboard:N0,introduction:A0,initialSchema:O0,updateSchema:C0,generateSite:z0,activity:k0,loginEmail:D0,loginPassword:j0,generatedSite:M0,sessionExpired:_0,promptSubmissionFailed:L0,generationFailed:U0,footerText:H0,extendYourSession:B0,sessionRenewalFailed:q0,errorConnectingToServer:G0,newTabRestartMessage:$0},Y0="ParoiCMS - Générateur de Site",Q0="<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>",X0="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.",Z0="Ajoute un nouveau champ texte à la page…",K0="Modifier le schéma du site",J0="Créer un schéma de site",F0="Générer le site web",W0="Générer le site avec des données d'exemple (recommandé)",P0="Générer un site vide",I0="Ouvrir l'espace d'administration du site",eb="Ouvrir le site",tb="Schéma généré",nb="Arborescence",ab="Schéma du site",lb="Types de nœuds",ib="Libellés",ub="Sélectionner la langue",sb="Explications",rb="Activité en cours",ob="Une erreur est survenue : {{ message }}",cb="Une erreur est survenue",fb="Recommencer",db="Étape",hb="Étape {{stepNumber}} : {{kind}}",pb="Cette étape est en cours…",gb="Cette étape a échoué.",mb="Cette étape n'a eu aucun effet.",yb="Données de session non disponibles",vb="Étape introuvable",bb="Bienvenue sur le générateur de site ParoiCMS",Sb="Fermer et réinitialiser",xb="Réinitialiser le schéma",Eb="erreur inconnue",Tb="Créer un nouveau site",Rb="Génération de votre site…",wb="Le site est généré",Nb="Email :",Ab="Mot de passe :",Ob="J'accepte",Cb="Vous êtes sur le point de générer votre site web.",zb="Annuler",kb="Confirmer",Db="URL du site :",jb="URL d'admin :",Mb="Copier toutes les informations dans le presse-papier",_b="<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>",Lb="Création du schéma initial",Ub="Mise à jour du schéma",Hb="Génération du site",Bb={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…"},qb="Email de connexion",Gb="Mot de passe",$b="Site généré",Vb="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",Yb="Échec de l'envoi de votre demande. Veuillez réessayer.",Qb="Échec de la génération du site. Veuillez réessayer.",Xb='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>.',Zb="Prolonger votre session",Kb="Échec du renouvellement de votre session. Veuillez réessayer.",Jb="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",Fb="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",Wb={title:Y0,startInstruction:Q0,createPromptPlaceholder:X0,updatePromptPlaceholder:Z0,modifySchema:K0,createSchema:J0,generateTheWebsite:F0,generateSiteWithData:W0,generateEmptySite:P0,administration:I0,viewSite:eb,generatedSchema:tb,treeView:nb,siteSchema:ab,nodeTypes:lb,labels:ib,languageSelector:ub,explanation:sb,currentActivity:rb,errorOccurred:ob,unknownErrorOccurred:cb,startAgain:fb,step:db,stepTitle:hb,stepPending:pb,stepFailed:gb,stepNoEffect:mb,noSessionData:yb,stepNotFound:vb,welcomeTitle:bb,reset:Sb,resetSchema:xb,unknownError:Eb,createNewSite:Tb,generatingSite:Rb,siteGenerated:wb,email:Nb,password:Ab,agree:Ob,aboutToGenerateWebsite:Cb,cancel:zb,confirm:kb,siteUrl:Db,adminUrl:jb,copyToClipboard:Mb,introduction:_b,initialSchema:Lb,updateSchema:Ub,generateSite:Hb,activity:Bb,loginEmail:qb,loginPassword:Gb,generatedSite:$b,sessionExpired:Vb,promptSubmissionFailed:Yb,generationFailed:Qb,footerText:Xb,extendYourSession:Zb,sessionRenewalFailed:Kb,errorConnectingToServer:Jb,newTabRestartMessage:Fb},Pb=`<p>
|
|
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={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},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
18
|
Welcome to the Site Generator of ParoiCMS. ParoiCMS is:
|
|
19
19
|
</p>
|
|
20
20
|
<ul>
|
|
@@ -46,7 +46,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
46
46
|
<p>
|
|
47
47
|
Your data will be kept for debug purposes. A session identifier will follow you on the
|
|
48
48
|
tab of your browser, it will be deleted when you close the tab.
|
|
49
|
-
</p>`,
|
|
49
|
+
</p>`,Zb=`<p>
|
|
50
50
|
Bienvenue dans le générateur de sites de ParoiCMS. ParoiCMS est :
|
|
51
51
|
</p>
|
|
52
52
|
<ul>
|
|
@@ -80,7 +80,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
80
80
|
<p>
|
|
81
81
|
Vos données seront conservées à des fins de débogage. Un identifiant de session vous suivra sur
|
|
82
82
|
l'onglet de votre navigateur, il sera supprimé lorsque vous fermerez l'onglet.
|
|
83
|
-
</p>`,
|
|
83
|
+
</p>`,Kb=`<p>
|
|
84
84
|
Congratulations! Your website has been generated.
|
|
85
85
|
</p>
|
|
86
86
|
<p>
|
|
@@ -108,7 +108,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
108
108
|
<p>
|
|
109
109
|
Make sure to copy the following information, as it will be lost once you close this panel. You can
|
|
110
110
|
authenticate using the following <strong>local account</strong>:
|
|
111
|
-
</p>`,
|
|
111
|
+
</p>`,Jb=`<p>
|
|
112
112
|
Félicitations ! Votre site web a été généré.
|
|
113
113
|
</p>
|
|
114
114
|
<p>
|
|
@@ -137,7 +137,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
137
137
|
N'oubliez pas de copier les informations ci-dessous, car elles seront perdues dès que vous
|
|
138
138
|
fermerez ce panneau. Vous pouvez vous authentifier en utilisant le <strong>compte local</strong>
|
|
139
139
|
suivant :
|
|
140
|
-
</p>`,
|
|
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={};/**
|
|
141
141
|
* @license React
|
|
142
142
|
* scheduler.production.js
|
|
143
143
|
*
|
|
@@ -145,7 +145,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
145
145
|
*
|
|
146
146
|
* This source code is licensed under the MIT license found in the
|
|
147
147
|
* LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/var
|
|
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={};/**
|
|
149
149
|
* @license React
|
|
150
150
|
* react-dom.production.js
|
|
151
151
|
*
|
|
@@ -153,7 +153,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
153
153
|
*
|
|
154
154
|
* This source code is licensed under the MIT license found in the
|
|
155
155
|
* LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/var
|
|
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}/**
|
|
157
157
|
* @license React
|
|
158
158
|
* react-dom-client.production.js
|
|
159
159
|
*
|
|
@@ -161,91 +161,75 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
161
161
|
*
|
|
162
162
|
* This source code is licensed under the MIT license found in the
|
|
163
163
|
* LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/var bp;function sS(){if(bp)return Pl;bp=1;var r=lS(),l=oi(),i=uS();function s(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 d(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 g(e){if(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(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 g(u),e;if(o===a)return g(u),t;o=o.sibling}throw Error(s(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(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(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"),A=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),$=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var ft=Symbol.for("react.client.reference");function Me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ft?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case M:return"Profiler";case k:return"StrictMode";case X:return"Suspense";case se:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case $:return(e.displayName||"Context")+".Provider";case G: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 W:return t=e.displayName||null,t!==null?t:Me(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return Me(e(t))}catch{}}return null}var Ce=Array.isArray,_=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},oe=[],T=-1;function q(e){return{current:e}}function Q(e){0>T||(e.current=oe[T],oe[T]=null,T--)}function Y(e,t){T++,oe[T]=e.current,e.current=t}var ee=q(null),ye=q(null),ue=q(null),dt=q(null);function ke(e,t){switch(Y(ue,t),Y(ye,e),Y(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Rh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Rh(t),e=wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(ee),Y(ee,e)}function dn(){Q(ee),Q(ye),Q(ue)}function Pu(e){e.memoizedState!==null&&Y(dt,e);var t=ee.current,n=wh(t,e.type);t!==n&&(Y(ye,e),Y(ee,n))}function pi(e){ye.current===e&&(Q(ee),Q(ye)),dt.current===e&&(Q(dt),Ql._currentValue=I)}var Iu=Object.prototype.hasOwnProperty,es=r.unstable_scheduleCallback,ts=r.unstable_cancelCallback,Cg=r.unstable_shouldYield,zg=r.unstable_requestPaint,qt=r.unstable_now,kg=r.unstable_getCurrentPriorityLevel,ac=r.unstable_ImmediatePriority,lc=r.unstable_UserBlockingPriority,gi=r.unstable_NormalPriority,Dg=r.unstable_LowPriority,ic=r.unstable_IdlePriority,jg=r.log,Mg=r.unstable_setDisableYieldValue,Ia=null,ht=null;function hn(e){if(typeof jg=="function"&&Mg(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Ia,e)}catch{}}var pt=Math.clz32?Math.clz32:Ug,_g=Math.log,Lg=Math.LN2;function Ug(e){return e>>>=0,e===0?32:31-(_g(e)/Lg|0)|0}var mi=256,yi=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 vi(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 el(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Hg(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 uc(){var e=mi;return mi<<=1,(mi&4194048)===0&&(mi=256),e}function sc(){var e=yi;return yi<<=1,(yi&62914560)===0&&(yi=4194304),e}function ns(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bg(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,z=e.hiddenUpdates;for(n=m&~n;0<n;){var L=31-pt(n),B=1<<L;v[L]=0,x[L]=-1;var D=z[L];if(D!==null)for(z[L]=null,L=0;L<D.length;L++){var j=D[L];j!==null&&(j.lane&=-536870913)}n&=~B}a!==0&&rc(e,a,0),o!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function rc(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 oc(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 as(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 ls(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cc(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Yh(e.type))}function qg(e,t){var n=V.p;try{return V.p=e,t()}finally{V.p=n}}var pn=Math.random().toString(36).slice(2),We="__reactFiber$"+pn,ut="__reactProps$"+pn,ra="__reactContainer$"+pn,is="__reactEvents$"+pn,Gg="__reactListeners$"+pn,$g="__reactHandles$"+pn,fc="__reactResources$"+pn,nl="__reactMarker$"+pn;function us(e){delete e[We],delete e[ut],delete e[is],delete e[Gg],delete e[$g]}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=Ch(e);e!==null;){if(n=e[We])return n;e=Ch(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 al(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function fa(e){var t=e[fc];return t||(t=e[fc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[nl]=!0}var dc=new Set,hc={};function qn(e,t){da(e,t),da(e+"Capture",t)}function da(e,t){for(hc[e]=t,e=0;e<t.length;e++)dc.add(t[e])}var Vg=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]*$"),pc={},gc={};function Yg(e){return Iu.call(gc,e)?!0:Iu.call(pc,e)?!1:Vg.test(e)?gc[e]=!0:(pc[e]=!0,!1)}function bi(e,t,n){if(Yg(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 Si(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 Kt(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 ss,mc;function ha(e){if(ss===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ss=t&&t[1]||"",mc=-1<n.stack.indexOf(`
|
|
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(`
|
|
165
165
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
166
|
-
`+
|
|
167
|
-
`),
|
|
168
|
-
`);for(
|
|
169
|
-
`+x[a].replace(" at new "," at ");return e.displayName&&
|
|
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`
|
|
170
170
|
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 vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xg(e){var t=vc(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 xi(e){e._valueTracker||(e._valueTracker=Xg(e))}function bc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=vc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ei(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 Zg=/[\n"\\]/g;function Rt(e){return e.replace(Zg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cs(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?fs(e,m,Tt(t)):n!=null?fs(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 Sc(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 fs(e,t,n){t==="number"&&Ei(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 xc(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 Ec(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Ce(a)){if(1<a.length)throw Error(s(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 Kg=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 Tc(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||Kg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Rc(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(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&&Tc(e,u,a)}else for(var o in t)t.hasOwnProperty(o)&&Tc(e,o,t[o])}function ds(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 Jg=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"]]),Fg=/^[\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 Ti(e){return Fg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var hs=null;function ps(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 wc(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(cs(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[ut]||null;if(!u)throw Error(s(90));cs(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&&bc(a)}break e;case"textarea":xc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pa(e,!!n.multiple,t,!1)}}}var gs=!1;function Nc(e,t,n){if(gs)return e(t,n);gs=!0;try{var a=e(t);return a}finally{if(gs=!1,(ma!==null||ya!==null)&&(ru(),ma&&(t=ma,e=ya,ya=ma=null,wc(t),e)))for(t=0;t<e.length;t++)wc(e[t])}}function ll(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(s(231,t,typeof n));return n}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ms=!1;if(Jt)try{var il={};Object.defineProperty(il,"passive",{get:function(){ms=!0}}),window.addEventListener("test",il,il),window.removeEventListener("test",il,il)}catch{ms=!1}var gn=null,ys=null,Ri=null;function Ac(){if(Ri)return Ri;var e,t=ys,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 Ri=u.slice(e,1<a?1-a:void 0)}function wi(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 Ni(){return!0}function Oc(){return!1}function st(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)?Ni:Oc,this.isPropagationStopped=Oc,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=Ni)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ai=st(Gn),ul=y({},Gn,{view:0,detail:0}),Wg=st(ul),vs,bs,sl,Oi=y({},ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xs,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"?(vs=e.screenX-sl.screenX,bs=e.screenY-sl.screenY):bs=vs=0,sl=e),vs)},movementY:function(e){return"movementY"in e?e.movementY:bs}}),Cc=st(Oi),Pg=y({},Oi,{dataTransfer:0}),Ig=st(Pg),em=y({},ul,{relatedTarget:0}),Ss=st(em),tm=y({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),nm=st(tm),am=y({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lm=st(am),im=y({},Gn,{data:0}),zc=st(im),um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sm={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"},rm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function om(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rm[e])?!!t[e]:!1}function xs(){return om}var cm=y({},ul,{key:function(e){if(e.key){var t=um[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xs,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fm=st(cm),dm=y({},Oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kc=st(dm),hm=y({},ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xs}),pm=st(hm),gm=y({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),mm=st(gm),ym=y({},Oi,{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}),vm=st(ym),bm=y({},Gn,{newState:0,oldState:0}),Sm=st(bm),xm=[9,13,27,32],Es=Jt&&"CompositionEvent"in window,rl=null;Jt&&"documentMode"in document&&(rl=document.documentMode);var Em=Jt&&"TextEvent"in window&&!rl,Dc=Jt&&(!Es||rl&&8<rl&&11>=rl),jc=" ",Mc=!1;function _c(e,t){switch(e){case"keyup":return xm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function Tm(e,t){switch(e){case"compositionend":return Lc(t);case"keypress":return t.which!==32?null:(Mc=!0,jc);case"textInput":return e=t.data,e===jc&&Mc?null:e;default:return null}}function Rm(e,t){if(va)return e==="compositionend"||!Es&&_c(e,t)?(e=Ac(),Ri=ys=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 Dc&&t.locale!=="ko"?null:t.data;default:return null}}var wm={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 Uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wm[e.type]:t==="textarea"}function Hc(e,t,n,a){ma?ya?ya.push(a):ya=[a]:ma=a,t=pu(t,"onChange"),0<t.length&&(n=new Ai("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ol=null,cl=null;function Nm(e){bh(e,0)}function Ci(e){var t=al(e);if(bc(t))return e}function Bc(e,t){if(e==="change")return t}var qc=!1;if(Jt){var Ts;if(Jt){var Rs="oninput"in document;if(!Rs){var Gc=document.createElement("div");Gc.setAttribute("oninput","return;"),Rs=typeof Gc.oninput=="function"}Ts=Rs}else Ts=!1;qc=Ts&&(!document.documentMode||9<document.documentMode)}function $c(){ol&&(ol.detachEvent("onpropertychange",Vc),cl=ol=null)}function Vc(e){if(e.propertyName==="value"&&Ci(cl)){var t=[];Hc(t,cl,e,ps(e)),Nc(Nm,t)}}function Am(e,t,n){e==="focusin"?($c(),ol=t,cl=n,ol.attachEvent("onpropertychange",Vc)):e==="focusout"&&$c()}function Om(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ci(cl)}function Cm(e,t){if(e==="click")return Ci(t)}function zm(e,t){if(e==="input"||e==="change")return Ci(t)}function km(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:km;function fl(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(!Iu.call(t,u)||!gt(e[u],t[u]))return!1}return!0}function Yc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qc(e,t){var n=Yc(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=Yc(n)}}function Xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ei(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=Ei(e.document)}return t}function ws(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 Dm=Jt&&"documentMode"in document&&11>=document.documentMode,ba=null,Ns=null,dl=null,As=!1;function Kc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;As||ba==null||ba!==Ei(a)||(a=ba,"selectionStart"in a&&ws(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}),dl&&fl(dl,a)||(dl=a,a=pu(Ns,"onSelect"),0<a.length&&(t=new Ai("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")},Os={},Jc={};Jt&&(Jc=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 Vn(e){if(Os[e])return Os[e];if(!Sa[e])return e;var t=Sa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jc)return Os[e]=t[n];return e}var Fc=Vn("animationend"),Wc=Vn("animationiteration"),Pc=Vn("animationstart"),jm=Vn("transitionrun"),Mm=Vn("transitionstart"),_m=Vn("transitioncancel"),Ic=Vn("transitionend"),ef=new Map,Cs="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(" ");Cs.push("scrollEnd");function _t(e,t){ef.set(e,t),qn(t,[e])}var tf=new WeakMap;function wt(e,t){if(typeof e=="object"&&e!==null){var n=tf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:yc(t)},tf.set(e,t),t)}return{value:e,source:t,stack:yc(t)}}var Nt=[],xa=0,zs=0;function zi(){for(var e=xa,t=zs=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&&nf(n,u,o)}}function ki(e,t,n,a){Nt[xa++]=e,Nt[xa++]=t,Nt[xa++]=n,Nt[xa++]=a,zs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ks(e,t,n,a){return ki(e,t,n,a),Di(e)}function Ea(e,t){return ki(e,null,null,t),Di(e)}function nf(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 Di(e){if(50<Ul)throw Ul=0,Ur=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ta={};function Lm(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 Lm(e,t,n,a)}function Ds(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(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 af(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 ji(e,t,n,a,u,o){var m=0;if(a=e,typeof e=="function")Ds(e)&&(m=1);else if(typeof e=="string")m=Hy(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=mt(31,n,t,u),e.elementType=J,e.lanes=o,e;case R:return Yn(n.children,u,o,t);case k:m=8,u|=24;break;case M:return e=mt(12,n,t,u|2),e.elementType=M,e.lanes=o,e;case X:return e=mt(13,n,t,u),e.elementType=X,e.lanes=o,e;case se:return e=mt(19,n,t,u),e.elementType=se,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:case $:m=10;break e;case G:m=9;break e;case F:m=11;break e;case W:m=14;break e;case K:m=16,a=null;break e}m=29,n=Error(s(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 Yn(e,t,n,a){return e=mt(7,e,a,t),e.lanes=n,e}function js(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Ms(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,Mi=null,_i=0,At=[],Ot=0,Qn=null,Wt=1,Pt="";function Xn(e,t){Ra[wa++]=_i,Ra[wa++]=Mi,Mi=e,_i=t}function lf(e,t,n){At[Ot++]=Wt,At[Ot++]=Pt,At[Ot++]=Qn,Qn=e;var a=Wt;e=Pt;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,Wt=1<<32-pt(t)+u|n<<u|a,Pt=o+e}else Wt=1<<o|n<<u|a,Pt=e}function _s(e){e.return!==null&&(Xn(e,1),lf(e,1,0))}function Ls(e){for(;e===Mi;)Mi=Ra[--wa],Ra[wa]=null,_i=Ra[--wa],Ra[wa]=null;for(;e===Qn;)Qn=At[--Ot],At[Ot]=null,Pt=At[--Ot],At[Ot]=null,Wt=At[--Ot],At[Ot]=null}var at=null,Le=null,be=!1,Zn=null,Gt=!1,Us=Error(s(519));function Kn(e){var t=Error(s(418,""));throw gl(wt(t,e)),Us}function uf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[We]=e,t[ut]=a,n){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(n=0;n<Bl.length;n++)pe(Bl[n],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),Sc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),xi(t);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),Ec(t,a.value,a.defaultValue,a.children),xi(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Th(t.textContent,n)?(a.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),a.onScroll!=null&&pe("scroll",t),a.onScrollEnd!=null&&pe("scrollend",t),a.onClick!=null&&(t.onclick=gu),t=!0):t=!1,t||Kn(e)}function sf(e){for(at=e.return;at;)switch(at.tag){case 5:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:at=at.return}}function hl(e){if(e!==at)return!1;if(!be)return sf(e),be=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ir(e.type,e.memoizedProps)),n=!n),n&&Le&&Kn(e),sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Le=Ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Le=null}}else t===27?(t=Le,kn(e.type)?(e=ao,ao=null,Le=e):Le=t):Le=at?Ut(e.stateNode.nextSibling):null;return!0}function pl(){Le=at=null,be=!1}function rf(){var e=Zn;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),Zn=null),e}function gl(e){Zn===null?Zn=[e]:Zn.push(e)}var Hs=q(null),Jn=null,It=null;function mn(e,t,n){Y(Hs,t._currentValue),t._currentValue=n}function en(e){e._currentValue=Hs.current,Q(Hs)}function Bs(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 qs(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),Bs(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(s(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Bs(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 ml(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(s(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(s(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ql):e=[Ql])}u=u.return}e!==null&&qs(t,e,n,a),t.flags|=262144}function Li(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,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pe(e){return of(Jn,e)}function Ui(e,t){return Jn===null&&Fn(e),of(e,t)}function of(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},It===null){if(e===null)throw Error(s(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return n}var Um=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()})}},Hm=r.unstable_scheduleCallback,Bm=r.unstable_NormalPriority,$e={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gs(){return{controller:new Um,data:new Map,refCount:0}}function yl(e){e.refCount--,e.refCount===0&&Hm(Bm,function(){e.controller.abort()})}var vl=null,$s=0,Na=0,Aa=null;function qm(e,t){if(vl===null){var n=vl=[];$s=0,Na=Yr(),Aa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return $s++,t.then(cf,cf),t}function cf(){if(--$s===0&&vl!==null){Aa!==null&&(Aa.status="fulfilled");var e=vl;vl=null,Na=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Gm(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 ff=_.S;_.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&qm(e,t),ff!==null&&ff(e,t)};var Wn=q(null);function Vs(){var e=Wn.current;return e!==null?e:ze.pooledCache}function Hi(e,t){t===null?Y(Wn,Wn.current):Y(Wn,t.pool)}function df(){var e=Vs();return e===null?null:{parent:$e._currentValue,pool:e}}var bl=Error(s(460)),hf=Error(s(474)),Bi=Error(s(542)),Ys={then:function(){}};function pf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qi(){}function gf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(qi,qi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yf(e),e;default:if(typeof t.status=="string")t.then(qi,qi);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(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,yf(e),e}throw Sl=t,bl}}var Sl=null;function mf(){if(Sl===null)throw Error(s(459));var e=Sl;return Sl=null,e}function yf(e){if(e===bl||e===Bi)throw Error(s(483))}var yn=!1;function Qs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xs(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,(xe&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=Di(e),nf(e,null,n),t}return ki(e,a,t,n),Di(e)}function xl(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,oc(e,n)}}function Zs(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 Ks=!1;function El(){if(Ks){var e=Aa;if(e!==null)throw e}}function Tl(e,t,n,a){Ks=!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,z=x.next;x.next=null,m===null?o=z:m.next=z,m=x;var L=e.alternate;L!==null&&(L=L.updateQueue,v=L.lastBaseUpdate,v!==m&&(v===null?L.firstBaseUpdate=z:v.next=z,L.lastBaseUpdate=x))}if(o!==null){var B=u.baseState;m=0,L=z=x=null,v=o;do{var D=v.lane&-536870913,j=D!==v.lane;if(j?(ge&D)===D:(a&D)===D){D!==0&&D===Na&&(Ks=!0),L!==null&&(L=L.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,te=v;D=t;var Ne=n;switch(te.tag){case 1:if(ae=te.payload,typeof ae=="function"){B=ae.call(Ne,B,D);break e}B=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=te.payload,D=typeof ae=="function"?ae.call(Ne,B,D):ae,D==null)break e;B=y({},B,D);break e;case 2:yn=!0}}D=v.callback,D!==null&&(e.flags|=64,j&&(e.flags|=8192),j=u.callbacks,j===null?u.callbacks=[D]:j.push(D))}else j={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},L===null?(z=L=j,x=B):L=L.next=j,m|=D;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;j=v,v=j.next,j.next=null,u.lastBaseUpdate=j,u.shared.pending=null}}while(!0);L===null&&(x=B),u.baseState=x,u.firstBaseUpdate=z,u.lastBaseUpdate=L,o===null&&(u.shared.lanes=0),An|=m,e.lanes=m,e.memoizedState=B}}function vf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function bf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vf(n[e],t)}var Oa=q(null),Gi=q(0);function Sf(e,t){e=rn,Y(Gi,e),Y(Oa,t),rn=e|t.baseLanes}function Js(){Y(Gi,rn),Y(Oa,Oa.current)}function Fs(){rn=Gi.current,Q(Oa),Q(Gi)}var Sn=0,fe=null,Re=null,qe=null,$i=!1,Ca=!1,Pn=!1,Vi=0,Rl=0,za=null,$m=0;function He(){throw Error(s(321))}function Ws(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 Ps(e,t,n,a,u,o){return Sn=o,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?ad:ld,Pn=!1,o=n(a,u),Pn=!1,Ca&&(o=Ef(t,n,a,u)),xf(e),o}function xf(e){_.H=Ji;var t=Re!==null&&Re.next!==null;if(Sn=0,qe=Re=fe=null,$i=!1,Rl=0,za=null,t)throw Error(s(300));e===null||Qe||(e=e.dependencies,e!==null&&Li(e)&&(Qe=!0))}function Ef(e,t,n,a){fe=e;var u=0;do{if(Ca&&(za=null),Rl=0,Ca=!1,25<=u)throw Error(s(301));if(u+=1,qe=Re=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}_.H=Jm,o=t(n,a)}while(Ca);return o}function Vm(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?wl(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(fe.flags|=1024),t}function Is(){var e=Vi!==0;return Vi=0,e}function er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function tr(e){if($i){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$i=!1}Sn=0,qe=Re=fe=null,Ca=!1,Rl=Vi=0,za=null}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?fe.memoizedState=qe=e:qe=qe.next=e,qe}function Ge(){if(Re===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=qe===null?fe.memoizedState:qe.next;if(t!==null)qe=t,Re=e;else{if(e===null)throw fe.alternate===null?Error(s(467)):Error(s(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},qe===null?fe.memoizedState=qe=e:qe=qe.next=e}return qe}function nr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wl(e){var t=Rl;return Rl+=1,za===null&&(za=[]),e=gf(za,e,t),t=fe,(qe===null?t.memoizedState:qe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?ad:ld),e}function Yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wl(e);if(e.$$typeof===$)return Pe(e)}throw Error(s(438,String(e)))}function ar(e){var t=null,n=fe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=fe.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=nr(),fe.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]=re;return t.index++,n}function tn(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=Ge();return lr(t,Re,e)}function lr(e,t,n){var a=e.queue;if(a===null)throw Error(s(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,z=t,L=!1;do{var B=z.lane&-536870913;if(B!==z.lane?(ge&B)===B:(Sn&B)===B){var D=z.revertLane;if(D===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),B===Na&&(L=!0);else if((Sn&D)===D){z=z.next,D===Na&&(L=!0);continue}else B={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(v=x=B,m=o):x=x.next=B,fe.lanes|=D,An|=D;B=z.action,Pn&&n(o,B),o=z.hasEagerState?z.eagerState:n(o,B)}else D={lane:B,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(v=x=D,m=o):x=x.next=D,fe.lanes|=B,An|=B;z=z.next}while(z!==null&&z!==t);if(x===null?m=o:x.next=v,!gt(o,e.memoizedState)&&(Qe=!0,L&&(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 ir(e){var t=Ge(),n=t.queue;if(n===null)throw Error(s(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)||(Qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function Tf(e,t,n){var a=fe,u=Ge(),o=be;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!gt((Re||u).memoizedState,n);m&&(u.memoizedState=n,Qe=!0),u=u.queue;var v=Nf.bind(null,a,u,e);if(Nl(2048,8,v,[e]),u.getSnapshot!==t||m||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,ka(9,Xi(),wf.bind(null,a,u,n,t),null),ze===null)throw Error(s(349));o||(Sn&124)!==0||Rf(a,t,n)}return n}function Rf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t=nr(),fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function wf(e,t,n,a){t.value=n,t.getSnapshot=a,Af(t)&&Of(e)}function Nf(e,t,n){return n(function(){Af(t)&&Of(e)})}function Af(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function Of(e){var t=Ea(e,2);t!==null&&xt(t,e,2)}function ur(e){var t=rt();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:tn,lastRenderedState:e},t}function Cf(e,t,n,a){return e.baseState=n,lr(e,Re,typeof a=="function"?a:tn)}function Ym(e,t,n,a,u){if(Ki(e))throw Error(s(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)}};_.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,zf(t,o)):(o.next=n.next,t.pending=n.next=o)}}function zf(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var o=_.T,m={};_.T=m;try{var v=n(u,a),x=_.S;x!==null&&x(m,v),kf(e,t,v)}catch(z){sr(e,t,z)}finally{_.T=o}}else try{o=n(u,a),kf(e,t,o)}catch(z){sr(e,t,z)}}function kf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Df(e,t,a)},function(a){return sr(e,t,a)}):Df(e,t,n)}function Df(e,t,n){t.status="fulfilled",t.value=n,jf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,zf(e,n)))}function sr(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,jf(t),t=t.next;while(t!==a)}e.action=null}function jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Mf(e,t){return t}function _f(e,t){if(be){var n=ze.formState;if(n!==null){e:{var a=fe;if(be){if(Le){t:{for(var u=Le,o=Gt;u.nodeType!==8;){if(!o){u=null;break t}if(u=Ut(u.nextSibling),u===null){u=null;break t}}o=u.data,u=o==="F!"||o==="F"?u:null}if(u){Le=Ut(u.nextSibling),a=u.data==="F!";break e}}Kn(a)}a=!1}a&&(t=n[0])}}return n=rt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mf,lastRenderedState:t},n.queue=a,n=ed.bind(null,fe,a),a.dispatch=n,a=ur(!1),o=dr.bind(null,fe,!1,a.queue),a=rt(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=Ym.bind(null,fe,u,o,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function Lf(e){var t=Ge();return Uf(t,Re,e)}function Uf(e,t,n){if(t=lr(e,t,Mf)[0],e=Qi(tn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=wl(t)}catch(m){throw m===bl?Bi:m}else a=t;t=Ge();var u=t.queue,o=u.dispatch;return n!==t.memoizedState&&(fe.flags|=2048,ka(9,Xi(),Qm.bind(null,u,n),null)),[a,o,e]}function Qm(e,t){e.action=t}function Hf(e){var t=Ge(),n=Re;if(n!==null)return Uf(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=fe.updateQueue,t===null&&(t=nr(),fe.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 Xi(){return{destroy:void 0,resource:void 0}}function Bf(){return Ge().memoizedState}function Zi(e,t,n,a){var u=rt();a=a===void 0?null:a,fe.flags|=e,u.memoizedState=ka(1|t,Xi(),n,a)}function Nl(e,t,n,a){var u=Ge();a=a===void 0?null:a;var o=u.memoizedState.inst;Re!==null&&a!==null&&Ws(a,Re.memoizedState.deps)?u.memoizedState=ka(t,o,n,a):(fe.flags|=e,u.memoizedState=ka(1|t,o,n,a))}function qf(e,t){Zi(8390656,8,e,t)}function Gf(e,t){Nl(2048,8,e,t)}function $f(e,t){return Nl(4,2,e,t)}function Vf(e,t){return Nl(4,4,e,t)}function Yf(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 Qf(e,t,n){n=n!=null?n.concat([e]):null,Nl(4,4,Yf.bind(null,t,e),n)}function rr(){}function Xf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ws(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Zf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ws(t,a[1]))return a[0];if(a=e(),Pn){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[a,t],a}function or(e,t,n){return n===void 0||(Sn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Fd(),fe.lanes|=e,An|=e,n)}function Kf(e,t,n,a){return gt(n,t)?n:Oa.current!==null?(e=or(e,n,a),gt(e,t)||(Qe=!0),e):(Sn&42)===0?(Qe=!0,e.memoizedState=n):(e=Fd(),fe.lanes|=e,An|=e,t)}function Jf(e,t,n,a,u){var o=V.p;V.p=o!==0&&8>o?o:8;var m=_.T,v={};_.T=v,dr(e,!1,t,n);try{var x=u(),z=_.S;if(z!==null&&z(v,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var L=Gm(x,a);Al(e,t,L,St(e))}else Al(e,t,a,St(e))}catch(B){Al(e,t,{then:function(){},status:"rejected",reason:B},St())}finally{V.p=o,_.T=m}}function Xm(){}function cr(e,t,n,a){if(e.tag!==5)throw Error(s(476));var u=Ff(e).queue;Jf(e,u,t,I,n===null?Xm:function(){return Wf(e),n(a)})}function Ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wf(e){var t=Ff(e).next.queue;Al(e,t,{},St())}function fr(){return Pe(Ql)}function Pf(){return Ge().memoizedState}function If(){return Ge().memoizedState}function Zm(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),xl(a,t,n)),t={cache:Gs()},e.payload=t;return}t=t.return}}function Km(e,t,n){var a=St();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ki(e)?td(t,n):(n=ks(e,t,n,a),n!==null&&(xt(n,e,a),nd(n,t,a)))}function ed(e,t,n){var a=St();Al(e,t,n,a)}function Al(e,t,n,a){var u={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))td(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 ki(e,t,u,0),ze===null&&zi(),!1}catch{}finally{}if(n=ks(e,t,u,a),n!==null)return xt(n,e,a),nd(n,t,a),!0}return!1}function dr(e,t,n,a){if(a={lane:2,revertLane:Yr(),action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(s(479))}else t=ks(e,n,a,2),t!==null&&xt(t,e,2)}function Ki(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function td(e,t){Ca=$i=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nd(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,oc(e,n)}}var Ji={readContext:Pe,use:Yi,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},ad={readContext:Pe,use:Yi,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:qf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Zi(4194308,4,Yf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){Zi(4,2,e,t)},useMemo:function(e,t){var n=rt();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=rt();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=Km.bind(null,fe,e),[a.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:function(e){e=ur(e);var t=e.queue,n=ed.bind(null,fe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:rr,useDeferredValue:function(e,t){var n=rt();return or(n,e,t)},useTransition:function(){var e=ur(!1);return e=Jf.bind(null,fe,e.queue,!0,!1),rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=fe,u=rt();if(be){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),ze===null)throw Error(s(349));(ge&124)!==0||Rf(a,t,n)}u.memoizedState=n;var o={value:n,getSnapshot:t};return u.queue=o,qf(Nf.bind(null,a,o,e),[e]),a.flags|=2048,ka(9,Xi(),wf.bind(null,a,o,n,t),null),n},useId:function(){var e=rt(),t=ze.identifierPrefix;if(be){var n=Pt,a=Wt;n=(a&~(1<<32-pt(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=Vi++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=$m++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:fr,useFormState:_f,useActionState:_f,useOptimistic:function(e){var t=rt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dr.bind(null,fe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ar,useCacheRefresh:function(){return rt().memoizedState=Zm.bind(null,fe)}},ld={readContext:Pe,use:Yi,useCallback:Xf,useContext:Pe,useEffect:Gf,useImperativeHandle:Qf,useInsertionEffect:$f,useLayoutEffect:Vf,useMemo:Zf,useReducer:Qi,useRef:Bf,useState:function(){return Qi(tn)},useDebugValue:rr,useDeferredValue:function(e,t){var n=Ge();return Kf(n,Re.memoizedState,e,t)},useTransition:function(){var e=Qi(tn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:wl(e),t]},useSyncExternalStore:Tf,useId:Pf,useHostTransitionStatus:fr,useFormState:Lf,useActionState:Lf,useOptimistic:function(e,t){var n=Ge();return Cf(n,Re,e,t)},useMemoCache:ar,useCacheRefresh:If},Jm={readContext:Pe,use:Yi,useCallback:Xf,useContext:Pe,useEffect:Gf,useImperativeHandle:Qf,useInsertionEffect:$f,useLayoutEffect:Vf,useMemo:Zf,useReducer:ir,useRef:Bf,useState:function(){return ir(tn)},useDebugValue:rr,useDeferredValue:function(e,t){var n=Ge();return Re===null?or(n,e,t):Kf(n,Re.memoizedState,e,t)},useTransition:function(){var e=ir(tn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:wl(e),t]},useSyncExternalStore:Tf,useId:Pf,useHostTransitionStatus:fr,useFormState:Hf,useActionState:Hf,useOptimistic:function(e,t){var n=Ge();return Re!==null?Cf(n,Re,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ar,useCacheRefresh:If},Da=null,Ol=0;function Fi(e){var t=Ol;return Ol+=1,Da===null&&(Da=[]),gf(Da,e,t)}function Cl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Wi(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function id(e){var t=e._init;return t(e._payload)}function ud(e){function t(N,w){if(e){var C=N.deletions;C===null?(N.deletions=[w],N.flags|=16):C.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=Ft(N,w),N.index=0,N.sibling=null,N}function o(N,w,C){return N.index=C,e?(C=N.alternate,C!==null?(C=C.index,C<w?(N.flags|=67108866,w):C):(N.flags|=67108866,w)):(N.flags|=1048576,w)}function m(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function v(N,w,C,U){return w===null||w.tag!==6?(w=js(C,N.mode,U),w.return=N,w):(w=u(w,C),w.return=N,w)}function x(N,w,C,U){var Z=C.type;return Z===R?L(N,w,C.props.children,U,C.key):w!==null&&(w.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===K&&id(Z)===w.type)?(w=u(w,C.props),Cl(w,C),w.return=N,w):(w=ji(C.type,C.key,C.props,null,N.mode,U),Cl(w,C),w.return=N,w)}function z(N,w,C,U){return w===null||w.tag!==4||w.stateNode.containerInfo!==C.containerInfo||w.stateNode.implementation!==C.implementation?(w=Ms(C,N.mode,U),w.return=N,w):(w=u(w,C.children||[]),w.return=N,w)}function L(N,w,C,U,Z){return w===null||w.tag!==7?(w=Yn(C,N.mode,U,Z),w.return=N,w):(w=u(w,C),w.return=N,w)}function B(N,w,C){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=js(""+w,N.mode,C),w.return=N,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case b:return C=ji(w.type,w.key,w.props,null,N.mode,C),Cl(C,w),C.return=N,C;case A:return w=Ms(w,N.mode,C),w.return=N,w;case K:var U=w._init;return w=U(w._payload),B(N,w,C)}if(Ce(w)||me(w))return w=Yn(w,N.mode,C,null),w.return=N,w;if(typeof w.then=="function")return B(N,Fi(w),C);if(w.$$typeof===$)return B(N,Ui(N,w),C);Wi(N,w)}return null}function D(N,w,C,U){var Z=w!==null?w.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return Z!==null?null:v(N,w,""+C,U);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case b:return C.key===Z?x(N,w,C,U):null;case A:return C.key===Z?z(N,w,C,U):null;case K:return Z=C._init,C=Z(C._payload),D(N,w,C,U)}if(Ce(C)||me(C))return Z!==null?null:L(N,w,C,U,null);if(typeof C.then=="function")return D(N,w,Fi(C),U);if(C.$$typeof===$)return D(N,w,Ui(N,C),U);Wi(N,C)}return null}function j(N,w,C,U,Z){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return N=N.get(C)||null,v(w,N,""+U,Z);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case b:return N=N.get(U.key===null?C:U.key)||null,x(w,N,U,Z);case A:return N=N.get(U.key===null?C:U.key)||null,z(w,N,U,Z);case K:var de=U._init;return U=de(U._payload),j(N,w,C,U,Z)}if(Ce(U)||me(U))return N=N.get(C)||null,L(w,N,U,Z,null);if(typeof U.then=="function")return j(N,w,C,Fi(U),Z);if(U.$$typeof===$)return j(N,w,C,Ui(w,U),Z);Wi(w,U)}return null}function ae(N,w,C,U){for(var Z=null,de=null,P=w,ne=w=0,Ze=null;P!==null&&ne<C.length;ne++){P.index>ne?(Ze=P,P=null):Ze=P.sibling;var ve=D(N,P,C[ne],U);if(ve===null){P===null&&(P=Ze);break}e&&P&&ve.alternate===null&&t(N,P),w=o(ve,w,ne),de===null?Z=ve:de.sibling=ve,de=ve,P=Ze}if(ne===C.length)return n(N,P),be&&Xn(N,ne),Z;if(P===null){for(;ne<C.length;ne++)P=B(N,C[ne],U),P!==null&&(w=o(P,w,ne),de===null?Z=P:de.sibling=P,de=P);return be&&Xn(N,ne),Z}for(P=a(P);ne<C.length;ne++)Ze=j(P,N,ne,C[ne],U),Ze!==null&&(e&&Ze.alternate!==null&&P.delete(Ze.key===null?ne:Ze.key),w=o(Ze,w,ne),de===null?Z=Ze:de.sibling=Ze,de=Ze);return e&&P.forEach(function(Ln){return t(N,Ln)}),be&&Xn(N,ne),Z}function te(N,w,C,U){if(C==null)throw Error(s(151));for(var Z=null,de=null,P=w,ne=w=0,Ze=null,ve=C.next();P!==null&&!ve.done;ne++,ve=C.next()){P.index>ne?(Ze=P,P=null):Ze=P.sibling;var Ln=D(N,P,ve.value,U);if(Ln===null){P===null&&(P=Ze);break}e&&P&&Ln.alternate===null&&t(N,P),w=o(Ln,w,ne),de===null?Z=Ln:de.sibling=Ln,de=Ln,P=Ze}if(ve.done)return n(N,P),be&&Xn(N,ne),Z;if(P===null){for(;!ve.done;ne++,ve=C.next())ve=B(N,ve.value,U),ve!==null&&(w=o(ve,w,ne),de===null?Z=ve:de.sibling=ve,de=ve);return be&&Xn(N,ne),Z}for(P=a(P);!ve.done;ne++,ve=C.next())ve=j(P,N,ne,ve.value,U),ve!==null&&(e&&ve.alternate!==null&&P.delete(ve.key===null?ne:ve.key),w=o(ve,w,ne),de===null?Z=ve:de.sibling=ve,de=ve);return e&&P.forEach(function(Fy){return t(N,Fy)}),be&&Xn(N,ne),Z}function Ne(N,w,C,U){if(typeof C=="object"&&C!==null&&C.type===R&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case b:e:{for(var Z=C.key;w!==null;){if(w.key===Z){if(Z=C.type,Z===R){if(w.tag===7){n(N,w.sibling),U=u(w,C.props.children),U.return=N,N=U;break e}}else if(w.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===K&&id(Z)===w.type){n(N,w.sibling),U=u(w,C.props),Cl(U,C),U.return=N,N=U;break e}n(N,w);break}else t(N,w);w=w.sibling}C.type===R?(U=Yn(C.props.children,N.mode,U,C.key),U.return=N,N=U):(U=ji(C.type,C.key,C.props,null,N.mode,U),Cl(U,C),U.return=N,N=U)}return m(N);case A:e:{for(Z=C.key;w!==null;){if(w.key===Z)if(w.tag===4&&w.stateNode.containerInfo===C.containerInfo&&w.stateNode.implementation===C.implementation){n(N,w.sibling),U=u(w,C.children||[]),U.return=N,N=U;break e}else{n(N,w);break}else t(N,w);w=w.sibling}U=Ms(C,N.mode,U),U.return=N,N=U}return m(N);case K:return Z=C._init,C=Z(C._payload),Ne(N,w,C,U)}if(Ce(C))return ae(N,w,C,U);if(me(C)){if(Z=me(C),typeof Z!="function")throw Error(s(150));return C=Z.call(C),te(N,w,C,U)}if(typeof C.then=="function")return Ne(N,w,Fi(C),U);if(C.$$typeof===$)return Ne(N,w,Ui(N,C),U);Wi(N,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,w!==null&&w.tag===6?(n(N,w.sibling),U=u(w,C),U.return=N,N=U):(n(N,w),U=js(C,N.mode,U),U.return=N,N=U),m(N)):n(N,w)}return function(N,w,C,U){try{Ol=0;var Z=Ne(N,w,C,U);return Da=null,Z}catch(P){if(P===bl||P===Bi)throw P;var de=mt(29,P,null,N.mode);return de.lanes=U,de.return=N,de}finally{}}}var ja=ud(!0),sd=ud(!1),Ct=q(null),$t=null;function xn(e){var t=e.alternate;Y(Ve,Ve.current&1),Y(Ct,e),$t===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&($t=e)}function rd(e){if(e.tag===22){if(Y(Ve,Ve.current),Y(Ct,e),$t===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&($t=e)}}else En()}function En(){Y(Ve,Ve.current),Y(Ct,Ct.current)}function nn(e){Q(Ct),$t===e&&($t=null),Q(Ve)}var Ve=q(0);function Pi(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==="$?"||no(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 hr(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 pr={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),xl(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),xl(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),xl(t,e,n))}};function od(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?!fl(n,a)||!fl(u,o):!0}function cd(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&&pr.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 Ii=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 fd(e){Ii(e)}function dd(e){console.error(e)}function hd(e){Ii(e)}function eu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function pd(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 gr(e,t,n){return n=vn(n),n.tag=3,n.payload={element:null},n.callback=function(){eu(e,t)},n}function gd(e){return e=vn(e),e.tag=3,e}function md(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(){pd(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){pd(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 Fm(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&ml(t,n,u,!0),n=Ct.current,n!==null){switch(n.tag){case 13:return $t===null?Br():n.alternate===null&&Ue===0&&(Ue=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===Ys?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Gr(e,a,u)),!1;case 22:return n.flags|=65536,a===Ys?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)),Gr(e,a,u)),!1}throw Error(s(435,n.tag))}return Gr(e,a,u),Br(),!1}if(be)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==Us&&(e=Error(s(422),{cause:a}),gl(wt(e,n)))):(a!==Us&&(t=Error(s(423),{cause:a}),gl(wt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=wt(a,n),u=gr(e.stateNode,a,u),Zs(e,u),Ue!==4&&(Ue=2)),!1;var o=Error(s(520),{cause:a});if(o=wt(o,n),Ll===null?Ll=[o]:Ll.push(o),Ue!==4&&(Ue=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=gr(n.stateNode,a,e),Zs(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=gd(u),md(u,e,n,a),Zs(n,u),!1}n=n.return}while(n!==null);return!1}var yd=Error(s(461)),Qe=!1;function Ke(e,t,n,a){t.child=e===null?sd(t,null,n,a):ja(t,e.child,n,a)}function vd(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=Ps(e,t,n,m,o,u),v=Is(),e!==null&&!Qe?(er(e,t,u),an(e,t,u)):(be&&v&&_s(t),t.flags|=1,Ke(e,t,a,u),t.child)}function bd(e,t,n,a,u){if(e===null){var o=n.type;return typeof o=="function"&&!Ds(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Sd(e,t,o,a,u)):(e=ji(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Tr(e,u)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:fl,n(m,a)&&e.ref===t.ref)return an(e,t,u)}return t.flags|=1,e=Ft(o,a),e.ref=t.ref,e.return=t,t.child=e}function Sd(e,t,n,a,u){if(e!==null){var o=e.memoizedProps;if(fl(o,a)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=a=o,Tr(e,u))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,an(e,t,u)}return mr(e,t,n,a,u)}function xd(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 Ed(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Hi(t,o!==null?o.cachePool:null),o!==null?Sf(t,o):Js(),rd(t);else return t.lanes=t.childLanes=536870912,Ed(e,t,o!==null?o.baseLanes|n:n,n)}else o!==null?(Hi(t,o.cachePool),Sf(t,o),En(),t.memoizedState=null):(e!==null&&Hi(t,null),Js(),En());return Ke(e,t,u,n),t.child}function Ed(e,t,n,a){var u=Vs();return u=u===null?null:{parent:$e._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Hi(t,null),Js(),rd(t),e!==null&&ml(e,t,a,!0),null}function tu(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(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mr(e,t,n,a,u){return Fn(t),n=Ps(e,t,n,a,void 0,u),a=Is(),e!==null&&!Qe?(er(e,t,u),an(e,t,u)):(be&&a&&_s(t),t.flags|=1,Ke(e,t,n,u),t.child)}function Td(e,t,n,a,u,o){return Fn(t),t.updateQueue=null,n=Ef(t,a,n,u),xf(e),a=Is(),e!==null&&!Qe?(er(e,t,o),an(e,t,o)):(be&&a&&_s(t),t.flags|=1,Ke(e,t,n,o),t.child)}function Rd(e,t,n,a,u){if(Fn(t),t.stateNode===null){var o=Ta,m=n.contextType;typeof m=="object"&&m!==null&&(o=Pe(m)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=pr,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Qs(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?Pe(m):Ta,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(hr(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&&pr.enqueueReplaceState(o,o.state,null),Tl(t,a,o,u),El(),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 z=o.context,L=n.contextType;m=Ta,typeof L=="object"&&L!==null&&(m=Pe(L));var B=n.getDerivedStateFromProps;L=typeof B=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,L||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||z!==m)&&cd(t,o,a,m),yn=!1;var D=t.memoizedState;o.state=D,Tl(t,a,o,u),El(),z=t.memoizedState,v||D!==z||yn?(typeof B=="function"&&(hr(t,n,B,a),z=t.memoizedState),(x=yn||od(t,n,x,a,D,z,m))?(L||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=z),o.props=a,o.state=z,o.context=m,a=x):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Xs(e,t),m=t.memoizedProps,L=In(n,m),o.props=L,B=t.pendingProps,D=o.context,z=n.contextType,x=Ta,typeof z=="object"&&z!==null&&(x=Pe(z)),v=n.getDerivedStateFromProps,(z=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==B||D!==x)&&cd(t,o,a,x),yn=!1,D=t.memoizedState,o.state=D,Tl(t,a,o,u),El();var j=t.memoizedState;m!==B||D!==j||yn||e!==null&&e.dependencies!==null&&Li(e.dependencies)?(typeof v=="function"&&(hr(t,n,v,a),j=t.memoizedState),(L=yn||od(t,n,L,a,D,j,x)||e!==null&&e.dependencies!==null&&Li(e.dependencies))?(z||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,j,x),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,j,x)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=j),o.props=a,o.state=j,o.context=x,a=L):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,tu(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=ja(t,e.child,null,u),t.child=ja(t,null,n,u)):Ke(e,t,n,u),t.memoizedState=o.state,e=t.child):e=an(e,t,u),e}function wd(e,t,n,a){return pl(),t.flags|=256,Ke(e,t,n,a),t.child}var yr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vr(e){return{baseLanes:e,cachePool:df()}}function br(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function Nd(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(be){if(u?xn(t):En(),be){var v=Le,x;if(x=v){e:{for(x=v,v=Gt;x.nodeType!==8;){if(!v){v=null;break e}if(x=Ut(x.nextSibling),x===null){v=null;break e}}v=x}v!==null?(t.memoizedState={dehydrated:v,treeContext:Qn!==null?{id:Wt,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},x=mt(18,null,null,0),x.stateNode=v,x.return=t,t.child=x,at=t,Le=null,x=!0):x=!1}x||Kn(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return no(v)?t.lanes=32:t.lanes=536870912,null;nn(t)}return v=a.children,a=a.fallback,u?(En(),u=t.mode,v=nu({mode:"hidden",children:v},u),a=Yn(a,u,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,u=t.child,u.memoizedState=vr(n),u.childLanes=br(e,m,n),t.memoizedState=yr,a):(xn(t),Sr(t,v))}if(x=e.memoizedState,x!==null&&(v=x.dehydrated,v!==null)){if(o)t.flags&256?(xn(t),t.flags&=-257,t=xr(e,t,n)):t.memoizedState!==null?(En(),t.child=e.child,t.flags|=128,t=null):(En(),u=a.fallback,v=t.mode,a=nu({mode:"visible",children:a.children},v),u=Yn(u,v,n,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,ja(t,e.child,null,n),a=t.child,a.memoizedState=vr(n),a.childLanes=br(e,m,n),t.memoizedState=yr,t=u);else if(xn(t),no(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var z=m.dgst;m=z,a=Error(s(419)),a.stack="",a.digest=m,gl({value:a,source:null,stack:null}),t=xr(e,t,n)}else if(Qe||ml(e,t,n,!1),m=(n&e.childLanes)!==0,Qe||m){if(m=ze,m!==null&&(a=n&-n,a=(a&42)!==0?1:as(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),yd;v.data==="$?"||Br(),t=xr(e,t,n)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,Le=Ut(v.nextSibling),at=t,be=!0,Zn=null,Gt=!1,e!==null&&(At[Ot++]=Wt,At[Ot++]=Pt,At[Ot++]=Qn,Wt=e.id,Pt=e.overflow,Qn=t),t=Sr(t,a.children),t.flags|=4096);return t}return u?(En(),u=a.fallback,v=t.mode,x=e.child,z=x.sibling,a=Ft(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,z!==null?u=Ft(z,u):(u=Yn(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=vr(n):(x=v.cachePool,x!==null?(z=$e._currentValue,x=x.parent!==z?{parent:z,pool:z}:x):x=df(),v={baseLanes:v.baseLanes|n,cachePool:x}),u.memoizedState=v,u.childLanes=br(e,m,n),t.memoizedState=yr,a):(xn(t),n=e.child,e=n.sibling,n=Ft(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 Sr(e,t){return t=nu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function nu(e,t){return e=mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function xr(e,t,n){return ja(t,e.child,null,n),e=Sr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ad(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Bs(e.return,t,n)}function Er(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 Od(e,t,n){var a=t.pendingProps,u=a.revealOrder,o=a.tail;if(Ke(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&&Ad(e,n,t);else if(e.tag===19)Ad(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&&Pi(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Er(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&&Pi(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Er(t,!0,n,null,o);break;case"together":Er(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function an(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),An|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ml(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Ft(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ft(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Li(e)))}function Wm(e,t,n){switch(t.tag){case 3:ke(t,t.stateNode.containerInfo),mn(t,$e,e.memoizedState.cache),pl();break;case 27:case 5:Pu(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?Nd(e,t,n):(xn(t),e=an(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||(ml(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return Od(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,xd(e,t,n);case 24:mn(t,$e,e.memoizedState.cache)}return an(e,t,n)}function Cd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Tr(e,n)&&(t.flags&128)===0)return Qe=!1,Wm(e,t,n);Qe=(e.flags&131072)!==0}else Qe=!1,be&&(t.flags&1048576)!==0&&lf(t,_i,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")Ds(a)?(e=In(a,e),t.tag=1,t=Rd(null,t,a,e,n)):(t.tag=0,t=mr(null,t,a,e,n));else{if(a!=null){if(u=a.$$typeof,u===F){t.tag=11,t=vd(null,t,a,e,n);break e}else if(u===W){t.tag=14,t=bd(null,t,a,e,n);break e}}throw t=Me(a)||a,Error(s(306,t,""))}}return t;case 0:return mr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=In(a,t.pendingProps),Rd(e,t,a,u,n);case 3:e:{if(ke(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var o=t.memoizedState;u=o.element,Xs(e,t),Tl(t,a,null,n);var m=t.memoizedState;if(a=m.cache,mn(t,$e,a),a!==o.cache&&qs(t,[$e],n,!0),El(),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=wd(e,t,a,n);break e}else if(a!==u){u=wt(Error(s(424)),t),gl(u),t=wd(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(Le=Ut(e.firstChild),at=t,be=!0,Zn=null,Gt=!0,n=sd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(pl(),a===u){t=an(e,t,n);break e}Ke(e,t,a,n)}t=t.child}return t;case 26:return tu(e,t),e===null?(n=jh(t.type,null,t.pendingProps,null))?t.memoizedState=n:be||(n=t.type,e=t.pendingProps,a=mu(ue.current).createElement(n),a[We]=t,a[ut]=e,Fe(a,n,e),Ye(a),t.stateNode=a):t.memoizedState=jh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pu(t),e===null&&be&&(a=t.stateNode=zh(t.type,t.pendingProps,ue.current),at=t,Gt=!0,u=Le,kn(t.type)?(ao=u,Le=Ut(a.firstChild)):Le=u),Ke(e,t,t.pendingProps.children,n),tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((u=a=Le)&&(a=wy(a,t.type,t.pendingProps,Gt),a!==null?(t.stateNode=a,at=t,Le=Ut(a.firstChild),Gt=!1,u=!0):u=!1),u||Kn(t)),Pu(t),u=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,a=o.children,Ir(u,o)?a=null:m!==null&&Ir(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=Ps(e,t,Vm,null,null,n),Ql._currentValue=u),tu(e,t),Ke(e,t,a,n),t.child;case 6:return e===null&&be&&((e=n=Le)&&(n=Ny(n,t.pendingProps,Gt),n!==null?(t.stateNode=n,at=t,Le=null,e=!0):e=!1),e||Kn(t)),null;case 13:return Nd(e,t,n);case 4:return ke(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ja(t,null,a,n):Ke(e,t,a,n),t.child;case 11:return vd(e,t,t.type,t.pendingProps,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,mn(t,t.type,a.value),Ke(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Fn(t),u=Pe(u),a=a(u),t.flags|=1,Ke(e,t,a,n),t.child;case 14:return bd(e,t,t.type,t.pendingProps,n);case 15:return Sd(e,t,t.type,t.pendingProps,n);case 19:return Od(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=nu(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Ft(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return xd(e,t,n);case 24:return Fn(t),a=Pe($e),e===null?(u=Vs(),u===null&&(u=ze,o=Gs(),u.pooledCache=o,o.refCount++,o!==null&&(u.pooledCacheLanes|=n),u=o),t.memoizedState={parent:a,cache:u},Qs(t),mn(t,$e,u)):((e.lanes&n)!==0&&(Xs(e,t),Tl(t,null,null,n),El()),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,$e,a)):(a=o.cache,mn(t,$e,a),a!==u.cache&&qs(t,[$e],n,!0))),Ke(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ln(e){e.flags|=4}function zd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hh(t)){if(t=Ct.current,t!==null&&((ge&4194048)===ge?$t!==null:(ge&62914560)!==ge&&(ge&536870912)===0||t!==$t))throw Sl=Ys,hf;e.flags|=8192}}function au(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sc():536870912,e.lanes|=t,Ua|=t)}function zl(e,t){if(!be)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 _e(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 Pm(e,t,n){var a=t.pendingProps;switch(Ls(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),en($e),dn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(hl(t)?ln(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rf())),_e(t),null;case 26:return n=t.memoizedState,e===null?(ln(t),n!==null?(_e(t),zd(t,n)):(_e(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ln(t),_e(t),zd(t,n)):(_e(t),t.flags&=-16777217):(e.memoizedProps!==a&&ln(t),_e(t),t.flags&=-16777217),null;case 27:pi(t),n=ue.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return _e(t),null}e=ee.current,hl(t)?uf(t):(e=zh(u,a,n),t.stateNode=e,ln(t))}return _e(t),null;case 5:if(pi(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return _e(t),null}if(e=ee.current,hl(t))uf(t);else{switch(u=mu(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[We]=t,e[ut]=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(Fe(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&&ln(t)}}return _e(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,hl(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[We]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Th(e.nodeValue,n)),e||Kn(t)}else e=mu(e).createTextNode(a),e[We]=t,t.stateNode=e}return _e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=hl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[We]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),u=!1}else u=rf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(nn(t),t):(nn(t),null)}if(nn(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),au(t,t.updateQueue),_e(t),null;case 4:return dn(),e===null&&Kr(t.stateNode.containerInfo),_e(t),null;case 10:return en(t.type),_e(t),null;case 19:if(Q(Ve),u=t.memoizedState,u===null)return _e(t),null;if(a=(t.flags&128)!==0,o=u.rendering,o===null)if(a)zl(u,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Pi(e),o!==null){for(t.flags|=128,zl(u,!1),e=o.updateQueue,t.updateQueue=e,au(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)af(n,e),n=n.sibling;return Y(Ve,Ve.current&1|2),t.child}e=e.sibling}u.tail!==null&&qt()>uu&&(t.flags|=128,a=!0,zl(u,!1),t.lanes=4194304)}else{if(!a)if(e=Pi(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,au(t,e),zl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!be)return _e(t),null}else 2*qt()-u.renderingStartTime>uu&&n!==536870912&&(t.flags|=128,a=!0,zl(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=qt(),t.sibling=null,e=Ve.current,Y(Ve,a?e&1|2:e&1),t):(_e(t),null);case 22:case 23:return nn(t),Fs(),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&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),n=t.updateQueue,n!==null&&au(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&&Q(Wn),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),en($e),_e(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Im(e,t){switch(Ls(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return en($e),dn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pi(t),null;case 13:if(nn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Ve),null;case 4:return dn(),null;case 10:return en(t.type),null;case 22:case 23:return nn(t),Fs(),e!==null&&Q(Wn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return en($e),null;case 25:return null;default:return null}}function kd(e,t){switch(Ls(t),t.tag){case 3:en($e),dn();break;case 26:case 27:case 5:pi(t);break;case 4:dn();break;case 13:nn(t);break;case 19:Q(Ve);break;case 10:en(t.type);break;case 22:case 23:nn(t),Fs(),e!==null&&Q(Wn);break;case 24:en($e)}}function kl(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){Ae(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,z=v;try{z()}catch(L){Ae(u,x,L)}}}a=a.next}while(a!==o)}}catch(L){Ae(t,t.return,L)}}function Dd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bf(t,n)}catch(a){Ae(e,e.return,a)}}}function jd(e,t,n){n.props=In(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ae(e,t,a)}}function Dl(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){Ae(e,t,u)}}function Vt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Ae(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){Ae(e,t,u)}else n.current=null}function Md(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){Ae(e,e.return,u)}}function Rr(e,t,n){try{var a=e.stateNode;Sy(a,e.type,n,t),a[ut]=t}catch(u){Ae(e,e.return,u)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kn(e.type)||e.tag===4}function wr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(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 Nr(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=gu));else if(a!==4&&(a===27&&kn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Nr(e,t,n),e=e.sibling;e!==null;)Nr(e,t,n),e=e.sibling}function lu(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(lu(e,t,n),e=e.sibling;e!==null;)lu(e,t,n),e=e.sibling}function Ld(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Fe(t,a,n),t[We]=e,t[ut]=n}catch(o){Ae(e,e.return,o)}}var un=!1,Be=!1,Ar=!1,Ud=typeof WeakSet=="function"?WeakSet:Set,Xe=null;function ey(e,t){if(e=e.containerInfo,Wr=Eu,e=Zc(e),ws(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,z=0,L=0,B=e,D=null;t:for(;;){for(var j;B!==n||u!==0&&B.nodeType!==3||(v=m+u),B!==o||a!==0&&B.nodeType!==3||(x=m+a),B.nodeType===3&&(m+=B.nodeValue.length),(j=B.firstChild)!==null;)D=B,B=j;for(;;){if(B===e)break t;if(D===n&&++z===u&&(v=m),D===o&&++L===a&&(x=m),(j=B.nextSibling)!==null)break;B=D,D=B.parentNode}B=j}n=v===-1||x===-1?null:{start:v,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pr={focusedElem:e,selectionRange:n},Eu=!1,Xe=t;Xe!==null;)if(t=Xe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Xe=e;else for(;Xe!==null;){switch(t=Xe,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 ae=In(n.type,u,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(ae,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(te){Ae(n,n.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)to(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":to(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Xe=e;break}Xe=t.return}}function Hd(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){Ae(n,n.return,m)}else{var u=In(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ae(n,n.return,m)}}a&64&&Dd(n),a&512&&Dl(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{bf(e,t)}catch(m){Ae(n,n.return,m)}}break;case 27:t===null&&a&4&&Ld(n);case 26:case 5:Rn(e,n),t===null&&a&4&&Md(n),a&512&&Dl(n,n.return);break;case 12:Rn(e,n);break;case 13:Rn(e,n),a&4&&Gd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=oy.bind(null,n),Ay(e,n))));break;case 22:if(a=n.memoizedState!==null||un,!a){t=t!==null&&t.memoizedState!==null||Be,u=un;var o=Be;un=a,(Be=t)&&!o?wn(e,n,(n.subtreeFlags&8772)!==0):Rn(e,n),un=u,Be=o}break;case 30:break;default:Rn(e,n)}}function Bd(e){var t=e.alternate;t!==null&&(e.alternate=null,Bd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&us(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 De=null,ot=!1;function sn(e,t,n){for(n=n.child;n!==null;)qd(e,t,n),n=n.sibling}function qd(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Ia,n)}catch{}switch(n.tag){case 26:Be||Vt(n,t),sn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Be||Vt(n,t);var a=De,u=ot;kn(n.type)&&(De=n.stateNode,ot=!1),sn(e,t,n),Gl(n.stateNode),De=a,ot=u;break;case 5:Be||Vt(n,t);case 6:if(a=De,u=ot,De=null,sn(e,t,n),De=a,ot=u,De!==null)if(ot)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(n.stateNode)}catch(o){Ae(n,t,o)}else try{De.removeChild(n.stateNode)}catch(o){Ae(n,t,o)}break;case 18:De!==null&&(ot?(e=De,Oh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Jl(e)):Oh(De,n.stateNode));break;case 4:a=De,u=ot,De=n.stateNode.containerInfo,ot=!0,sn(e,t,n),De=a,ot=u;break;case 0:case 11:case 14:case 15:Be||Tn(2,n,t),Be||Tn(4,n,t),sn(e,t,n);break;case 1:Be||(Vt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&jd(n,t,a)),sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:Be=(a=Be)||n.memoizedState!==null,sn(e,t,n),Be=a;break;default:sn(e,t,n)}}function Gd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jl(e)}catch(n){Ae(t,t.return,n)}}function ty(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ud),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ud),t;default:throw Error(s(435,e.tag))}}function Or(e,t){var n=ty(e);t.forEach(function(a){var u=cy.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)){De=v.stateNode,ot=!1;break e}break;case 5:De=v.stateNode,ot=!1;break e;case 3:case 4:De=v.stateNode.containerInfo,ot=!0;break e}v=v.return}if(De===null)throw Error(s(160));qd(o,m,u),De=null,ot=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)$d(t,e),t=t.sibling}var Lt=null;function $d(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||Vt(n,n.return)),a&64&&un&&(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=Lt;if(yt(t,e),vt(e),a&512&&(Be||n===null||Vt(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[nl]||o[We]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=u.createElement(a),u.head.insertBefore(o,u.querySelector("head > title"))),Fe(o,a,n),o[We]=e,Ye(o),a=o;break e;case"link":var m=Lh("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),Fe(o,a,n),u.head.appendChild(o);break;case"meta":if(m=Lh("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),Fe(o,a,n),u.head.appendChild(o);break;default:throw Error(s(468,a))}o[We]=e,Ye(o),a=o}e.stateNode=a}else Uh(u,e.type,e.stateNode);else e.stateNode=_h(u,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?Uh(u,e.type,e.stateNode):_h(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Rr(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),vt(e),a&512&&(Be||n===null||Vt(n,n.return)),n!==null&&a&4&&Rr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),vt(e),a&512&&(Be||n===null||Vt(n,n.return)),e.flags&32){u=e.stateNode;try{ga(u,"")}catch(j){Ae(e,e.return,j)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,Rr(e,u,n!==null?n.memoizedProps:u)),a&1024&&(Ar=!0);break;case 6:if(yt(t,e),vt(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(j){Ae(e,e.return,j)}}break;case 3:if(bu=null,u=Lt,Lt=yu(t.containerInfo),yt(t,e),Lt=u,vt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Jl(t.containerInfo)}catch(j){Ae(e,e.return,j)}Ar&&(Ar=!1,Vd(e));break;case 4:a=Lt,Lt=yu(e.stateNode.containerInfo),yt(t,e),vt(e),Lt=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)&&(Mr=qt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Or(e,a)));break;case 22:u=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,z=un,L=Be;if(un=z||u,Be=L||x,yt(t,e),Be=L,un=z,vt(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||x||un||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 B=x.memoizedProps.style,D=B!=null&&B.hasOwnProperty("display")?B.display:null;v.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(j){Ae(x,x.return,j)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=u?"":x.memoizedProps}catch(j){Ae(x,x.return,j)}}}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,Or(e,n))));break;case 19:yt(t,e),vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Or(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(_d(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,o=wr(e);lu(e,o,u);break;case 5:var m=n.stateNode;n.flags&32&&(ga(m,""),n.flags&=-33);var v=wr(e);lu(e,v,m);break;case 3:case 4:var x=n.stateNode.containerInfo,z=wr(e);Nr(e,z,x);break;default:throw Error(s(161))}}catch(L){Ae(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vd(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;)Hd(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:Vt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&jd(t,t.return,n),ea(t);break;case 27:Gl(t.stateNode);case 26:case 5:Vt(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),kl(4,o);break;case 1:if(wn(u,o,n),a=o,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){Ae(a,a.return,z)}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++)vf(x[u],v)}catch(z){Ae(a,a.return,z)}}n&&m&64&&Dd(o),Dl(o,o.return);break;case 27:Ld(o);case 26:case 5:wn(u,o,n),n&&a===null&&m&4&&Md(o),Dl(o,o.return);break;case 12:wn(u,o,n);break;case 13:wn(u,o,n),n&&m&4&&Gd(u,o);break;case 22:o.memoizedState===null&&wn(u,o,n),Dl(o,o.return);break;case 30:break;default:wn(u,o,n)}t=t.sibling}}function Cr(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&&yl(n))}function zr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yl(e))}function Yt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yd(e,t,n,a),t=t.sibling}function Yd(e,t,n,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(e,t,n,a),u&2048&&kl(9,t);break;case 1:Yt(e,t,n,a);break;case 3:Yt(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&&yl(e)));break;case 12:if(u&2048){Yt(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){Ae(t,t.return,x)}}else Yt(e,t,n,a);break;case 13:Yt(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?Yt(e,t,n,a):jl(e,t):o._visibility&2?Yt(e,t,n,a):(o._visibility|=2,Ma(e,t,n,a,(t.subtreeFlags&10256)!==0)),u&2048&&Cr(m,t);break;case 24:Yt(e,t,n,a),u&2048&&zr(t.alternate,t);break;default:Yt(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,z=m.flags;switch(m.tag){case 0:case 11:case 15:Ma(o,m,v,x,u),kl(8,m);break;case 23:break;case 22:var L=m.stateNode;m.memoizedState!==null?L._visibility&2?Ma(o,m,v,x,u):jl(o,m):(L._visibility|=2,Ma(o,m,v,x,u)),u&&z&2048&&Cr(m.alternate,m);break;case 24:Ma(o,m,v,x,u),u&&z&2048&&zr(m.alternate,m);break;default:Ma(o,m,v,x,u)}t=t.sibling}}function jl(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:jl(n,a),u&2048&&Cr(a.alternate,a);break;case 24:jl(n,a),u&2048&&zr(a.alternate,a);break;default:jl(n,a)}t=t.sibling}}var Ml=8192;function _a(e){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Qd(e),e=e.sibling}function Qd(e){switch(e.tag){case 26:_a(e),e.flags&Ml&&e.memoizedState!==null&&qy(Lt,e.memoizedState,e.memoizedProps);break;case 5:_a(e);break;case 3:case 4:var t=Lt;Lt=yu(e.stateNode.containerInfo),_a(e),Lt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ml,Ml=16777216,_a(e),Ml=t):_a(e));break;default:_a(e)}}function Xd(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 _l(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];Xe=a,Kd(a,e)}Xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zd(e),e=e.sibling}function Zd(e){switch(e.tag){case 0:case 11:case 15:_l(e),e.flags&2048&&Tn(9,e,e.return);break;case 3:_l(e);break;case 12:_l(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,iu(e)):_l(e);break;default:_l(e)}}function iu(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];Xe=a,Kd(a,e)}Xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tn(8,t,t.return),iu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,iu(t));break;default:iu(t)}e=e.sibling}}function Kd(e,t){for(;Xe!==null;){var n=Xe;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:yl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Xe=a;else e:for(n=e;Xe!==null;){a=Xe;var u=a.sibling,o=a.return;if(Bd(a),a===n){Xe=null;break e}if(u!==null){u.return=o,Xe=u;break e}Xe=o}}}var ny={getCacheForType:function(e){var t=Pe($e),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},ay=typeof WeakMap=="function"?WeakMap:Map,xe=0,ze=null,he=null,ge=0,Ee=0,bt=null,Nn=!1,La=!1,kr=!1,rn=0,Ue=0,An=0,ta=0,Dr=0,zt=0,Ua=0,Ll=null,ct=null,jr=!1,Mr=0,uu=1/0,su=null,On=null,Je=0,Cn=null,Ha=null,Ba=0,_r=0,Lr=null,Jd=null,Ul=0,Ur=null;function St(){if((xe&2)!==0&&ge!==0)return ge&-ge;if(_.T!==null){var e=Na;return e!==0?e:Yr()}return cc()}function Fd(){zt===0&&(zt=(ge&536870912)===0||be?uc():536870912);var e=Ct.current;return e!==null&&(e.flags|=32),zt}function xt(e,t,n){(e===ze&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(qa(e,0),zn(e,ge,zt,!1)),tl(e,n),((xe&2)===0||e!==ze)&&(e===ze&&((xe&2)===0&&(ta|=n),Ue===4&&zn(e,ge,zt,!1)),Qt(e))}function Wd(e,t,n){if((xe&6)!==0)throw Error(s(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||el(e,t),u=a?uy(e,t):qr(e,t,!0),o=a;do{if(u===0){La&&!a&&zn(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ly(n)){u=qr(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=Ll;var x=v.current.memoizedState.isDehydrated;if(x&&(qa(v,m).flags|=256),m=qr(v,m,!1),m!==2){if(kr&&!x){v.errorRecoveryDisabledLanes|=o,ta|=o,u=4;break e}o=ct,ct=u,o!==null&&(ct===null?ct=o:ct.push.apply(ct,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(s(345));case 4:if((t&4194048)!==t)break;case 6:zn(a,t,zt,!Nn);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Mr+300-qt(),10<u)){if(zn(a,t,zt,!Nn),vi(a,0,!0)!==0)break e;a.timeoutHandle=Nh(Pd.bind(null,a,n,ct,su,jr,t,zt,ta,Ua,Nn,o,2,-0,0),u);break e}Pd(a,n,ct,su,jr,t,zt,ta,Ua,Nn,o,0,-0,0)}}break}while(!0);Qt(e)}function Pd(e,t,n,a,u,o,m,v,x,z,L,B,D,j){if(e.timeoutHandle=-1,B=t.subtreeFlags,(B&8192||(B&16785408)===16785408)&&(Yl={stylesheets:null,count:0,unsuspend:By},Qd(t),B=Gy(),B!==null)){e.cancelPendingCommit=B(ih.bind(null,e,t,o,n,a,u,m,v,x,L,1,D,j)),zn(e,o,m,!z);return}ih(e,t,o,n,a,u,m,v,x)}function ly(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&=~Dr,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&&rc(e,n,t)}function ru(){return(xe&6)===0?(Hl(0),!1):!0}function Hr(){if(he!==null){if(Ee===0)var e=he.return;else e=he,It=Jn=null,tr(e),Da=null,Ol=0,e=he;for(;e!==null;)kd(e.alternate,e),e=e.return;he=null}}function qa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Ey(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Hr(),ze=e,he=n=Ft(e.current,null),ge=t,Ee=0,bt=null,Nn=!1,La=el(e,t),kr=!1,Ua=zt=Dr=ta=An=Ue=0,ct=Ll=null,jr=!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 rn=t,zi(),n}function Id(e,t){fe=null,_.H=Ji,t===bl||t===Bi?(t=mf(),Ee=3):t===hf?(t=mf(),Ee=4):Ee=t===yd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,he===null&&(Ue=1,eu(e,wt(t,e.current)))}function eh(){var e=_.H;return _.H=Ji,e===null?Ji:e}function th(){var e=_.A;return _.A=ny,e}function Br(){Ue=4,Nn||(ge&4194048)!==ge&&Ct.current!==null||(La=!0),(An&134217727)===0&&(ta&134217727)===0||ze===null||zn(ze,ge,zt,!1)}function qr(e,t,n){var a=xe;xe|=2;var u=eh(),o=th();(ze!==e||ge!==t)&&(su=null,qa(e,t)),t=!1;var m=Ue;e:do try{if(Ee!==0&&he!==null){var v=he,x=bt;switch(Ee){case 8:Hr(),m=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var z=Ee;if(Ee=0,bt=null,Ga(e,v,x,z),n&&La){m=0;break e}break;default:z=Ee,Ee=0,bt=null,Ga(e,v,x,z)}}iy(),m=Ue;break}catch(L){Id(e,L)}while(!0);return t&&e.shellSuspendCounter++,It=Jn=null,xe=a,_.H=u,_.A=o,he===null&&(ze=null,ge=0,zi()),m}function iy(){for(;he!==null;)nh(he)}function uy(e,t){var n=xe;xe|=2;var a=eh(),u=th();ze!==e||ge!==t?(su=null,uu=qt()+500,qa(e,t)):La=el(e,t);e:do try{if(Ee!==0&&he!==null){t=he;var o=bt;t:switch(Ee){case 1:Ee=0,bt=null,Ga(e,t,o,1);break;case 2:case 9:if(pf(o)){Ee=0,bt=null,ah(t);break}t=function(){Ee!==2&&Ee!==9||ze!==e||(Ee=7),Qt(e)},o.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:pf(o)?(Ee=0,bt=null,ah(t)):(Ee=0,bt=null,Ga(e,t,o,7));break;case 5:var m=null;switch(he.tag){case 26:m=he.memoizedState;case 5:case 27:var v=he;if(!m||Hh(m)){Ee=0,bt=null;var x=v.sibling;if(x!==null)he=x;else{var z=v.return;z!==null?(he=z,ou(z)):he=null}break t}}Ee=0,bt=null,Ga(e,t,o,5);break;case 6:Ee=0,bt=null,Ga(e,t,o,6);break;case 8:Hr(),Ue=6;break e;default:throw Error(s(462))}}sy();break}catch(L){Id(e,L)}while(!0);return It=Jn=null,_.H=a,_.A=u,xe=n,he!==null?0:(ze=null,ge=0,zi(),Ue)}function sy(){for(;he!==null&&!Cg();)nh(he)}function nh(e){var t=Cd(e.alternate,e,rn);e.memoizedProps=e.pendingProps,t===null?ou(e):he=t}function ah(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Td(n,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=Td(n,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:tr(t);default:kd(n,t),t=he=af(t,rn),t=Cd(n,t,rn)}e.memoizedProps=e.pendingProps,t===null?ou(e):he=t}function Ga(e,t,n,a){It=Jn=null,tr(t),Da=null,Ol=0;var u=t.return;try{if(Fm(e,u,t,n,ge)){Ue=1,eu(e,wt(n,e.current)),he=null;return}}catch(o){if(u!==null)throw he=u,o;Ue=1,eu(e,wt(n,e.current)),he=null;return}t.flags&32768?(be||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))),lh(t,e)):ou(t)}function ou(e){var t=e;do{if((t.flags&32768)!==0){lh(t,Nn);return}e=t.return;var n=Pm(t.alternate,t,rn);if(n!==null){he=n;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);Ue===0&&(Ue=5)}function lh(e,t){do{var n=Im(e.alternate,e);if(n!==null){n.flags&=32767,he=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=n}while(e!==null);Ue=6,he=null}function ih(e,t,n,a,u,o,m,v,x){e.cancelPendingCommit=null;do cu();while(Je!==0);if((xe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=zs,Bg(e,n,o,m,v,x),e===ze&&(he=ze=null,ge=0),Ha=t,Cn=e,Ba=n,_r=o,Lr=u,Jd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fy(gi,function(){return ch(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,u=V.p,V.p=2,m=xe,xe|=4;try{ey(e,t,n)}finally{xe=m,V.p=u,_.T=a}}Je=1,uh(),sh(),rh()}}function uh(){if(Je===1){Je=0;var e=Cn,t=Ha,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var a=V.p;V.p=2;var u=xe;xe|=4;try{$d(t,e);var o=Pr,m=Zc(e.containerInfo),v=o.focusedElem,x=o.selectionRange;if(m!==v&&v&&v.ownerDocument&&Xc(v.ownerDocument.documentElement,v)){if(x!==null&&ws(v)){var z=x.start,L=x.end;if(L===void 0&&(L=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(L,v.value.length);else{var B=v.ownerDocument||document,D=B&&B.defaultView||window;if(D.getSelection){var j=D.getSelection(),ae=v.textContent.length,te=Math.min(x.start,ae),Ne=x.end===void 0?te:Math.min(x.end,ae);!j.extend&&te>Ne&&(m=Ne,Ne=te,te=m);var N=Qc(v,te),w=Qc(v,Ne);if(N&&w&&(j.rangeCount!==1||j.anchorNode!==N.node||j.anchorOffset!==N.offset||j.focusNode!==w.node||j.focusOffset!==w.offset)){var C=B.createRange();C.setStart(N.node,N.offset),j.removeAllRanges(),te>Ne?(j.addRange(C),j.extend(w.node,w.offset)):(C.setEnd(w.node,w.offset),j.addRange(C))}}}}for(B=[],j=v;j=j.parentNode;)j.nodeType===1&&B.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<B.length;v++){var U=B[v];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Eu=!!Wr,Pr=Wr=null}finally{xe=u,V.p=a,_.T=n}}e.current=t,Je=2}}function sh(){if(Je===2){Je=0;var e=Cn,t=Ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var a=V.p;V.p=2;var u=xe;xe|=4;try{Hd(e,t.alternate,t)}finally{xe=u,V.p=a,_.T=n}}Je=3}}function rh(){if(Je===4||Je===3){Je=0,zg();var e=Cn,t=Ha,n=Ba,a=Jd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Je=5:(Je=0,Ha=Cn=null,oh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(On=null),ls(n),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Ia,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,u=V.p,V.p=2,_.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{_.T=t,V.p=u}}(Ba&3)!==0&&cu(),Qt(e),u=e.pendingLanes,(n&4194090)!==0&&(u&42)!==0?e===Ur?Ul++:(Ul=0,Ur=e):Ul=0,Hl(0)}}function oh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yl(t)))}function cu(e){return uh(),sh(),rh(),ch()}function ch(){if(Je!==5)return!1;var e=Cn,t=_r;_r=0;var n=ls(Ba),a=_.T,u=V.p;try{V.p=32>n?32:n,_.T=null,n=Lr,Lr=null;var o=Cn,m=Ba;if(Je=0,Ha=Cn=null,Ba=0,(xe&6)!==0)throw Error(s(331));var v=xe;if(xe|=4,Zd(o.current),Yd(o,o.current,m,n),xe=v,Hl(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Ia,o)}catch{}return!0}finally{V.p=u,_.T=a,oh(e,t)}}function fh(e,t,n){t=wt(n,t),t=gr(e.stateNode,t,2),e=bn(e,t,2),e!==null&&(tl(e,2),Qt(e))}function Ae(e,t,n){if(e.tag===3)fh(e,e,n);else for(;t!==null;){if(t.tag===3){fh(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=gd(2),a=bn(t,n,2),a!==null&&(md(n,a,t,e),tl(a,2),Qt(a));break}}t=t.return}}function Gr(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new ay;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)||(kr=!0,u.add(n),e=ry.bind(null,e,t,n),t.then(e,e))}function ry(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ze===e&&(ge&n)===n&&(Ue===4||Ue===3&&(ge&62914560)===ge&&300>qt()-Mr?(xe&2)===0&&qa(e,0):Dr|=n,Ua===ge&&(Ua=0)),Qt(e)}function dh(e,t){t===0&&(t=sc()),e=Ea(e,t),e!==null&&(tl(e,t),Qt(e))}function oy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dh(e,n)}function cy(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(s(314))}a!==null&&a.delete(t),dh(e,n)}function fy(e,t){return es(e,t)}var fu=null,$a=null,$r=!1,du=!1,Vr=!1,na=0;function Qt(e){e!==$a&&e.next===null&&($a===null?fu=$a=e:$a=$a.next=e),du=!0,$r||($r=!0,hy())}function Hl(e,t){if(!Vr&&du){Vr=!0;do for(var n=!1,a=fu;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,mh(a,o))}else o=ge,o=vi(a,a===ze?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||el(a,o)||(n=!0,mh(a,o));a=a.next}while(n);Vr=!1}}function dy(){hh()}function hh(){du=$r=!1;var e=0;na!==0&&(xy()&&(e=na),na=0);for(var t=qt(),n=null,a=fu;a!==null;){var u=a.next,o=ph(a,t);o===0?(a.next=null,n===null?fu=u:n.next=u,u===null&&($a=n)):(n=a,(e!==0||(o&3)!==0)&&(du=!0)),a=u}Hl(e)}function ph(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]=Hg(v,t)):x<=t&&(e.expiredLanes|=v),o&=~v}if(t=ze,n=ge,n=vi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ts(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||el(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&ts(a),ls(n)){case 2:case 8:n=lc;break;case 32:n=gi;break;case 268435456:n=ic;break;default:n=gi}return a=gh.bind(null,e),n=es(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&ts(a),e.callbackPriority=2,e.callbackNode=null,2}function gh(e,t){if(Je!==0&&Je!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cu()&&e.callbackNode!==n)return null;var a=ge;return a=vi(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Wd(e,a,t),ph(e,qt()),e.callbackNode!=null&&e.callbackNode===n?gh.bind(null,e):null)}function mh(e,t){if(cu())return null;Wd(e,t,!0)}function hy(){Ty(function(){(xe&6)!==0?es(ac,dy):hh()})}function Yr(){return na===0&&(na=uc()),na}function yh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ti(""+e)}function vh(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 py(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var o=yh((u[ut]||null).action),m=a.submitter;m&&(t=(t=m[ut]||null)?yh(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var v=new Ai("action","action",null,a,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(na!==0){var x=m?vh(u,m):new FormData(u);cr(n,{pending:!0,data:x,method:u.method,action:o},null,x)}}else typeof o=="function"&&(v.preventDefault(),x=m?vh(u,m):new FormData(u),cr(n,{pending:!0,data:x,method:u.method,action:o},o,x))},currentTarget:u}]})}}for(var Qr=0;Qr<Cs.length;Qr++){var Xr=Cs[Qr],gy=Xr.toLowerCase(),my=Xr[0].toUpperCase()+Xr.slice(1);_t(gy,"on"+my)}_t(Fc,"onAnimationEnd"),_t(Wc,"onAnimationIteration"),_t(Pc,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(jm,"onTransitionRun"),_t(Mm,"onTransitionStart"),_t(_m,"onTransitionCancel"),_t(Ic,"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 Bl="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(" "),yy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bl));function bh(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,z=v.currentTarget;if(v=v.listener,x!==o&&u.isPropagationStopped())break e;o=v,u.currentTarget=z;try{o(u)}catch(L){Ii(L)}u.currentTarget=null,o=x}else for(m=0;m<a.length;m++){if(v=a[m],x=v.instance,z=v.currentTarget,v=v.listener,x!==o&&u.isPropagationStopped())break e;o=v,u.currentTarget=z;try{o(u)}catch(L){Ii(L)}u.currentTarget=null,o=x}}}}function pe(e,t){var n=t[is];n===void 0&&(n=t[is]=new Set);var a=e+"__bubble";n.has(a)||(Sh(t,e,2,!1),n.add(a))}function Zr(e,t,n){var a=0;t&&(a|=4),Sh(n,e,a,t)}var hu="_reactListening"+Math.random().toString(36).slice(2);function Kr(e){if(!e[hu]){e[hu]=!0,dc.forEach(function(n){n!=="selectionchange"&&(yy.has(n)||Zr(n,!1,e),Zr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hu]||(t[hu]=!0,Zr("selectionchange",!1,t))}}function Sh(e,t,n,a){switch(Yh(t)){case 2:var u=Yy;break;case 8:u=Qy;break;default:u=ro}n=u.bind(null,t,n,e),u=void 0,!ms||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 Jr(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}Nc(function(){var z=o,L=ps(n),B=[];e:{var D=ef.get(e);if(D!==void 0){var j=Ai,ae=e;switch(e){case"keypress":if(wi(n)===0)break e;case"keydown":case"keyup":j=fm;break;case"focusin":ae="focus",j=Ss;break;case"focusout":ae="blur",j=Ss;break;case"beforeblur":case"afterblur":j=Ss;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":j=Cc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Ig;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=pm;break;case Fc:case Wc:case Pc:j=nm;break;case Ic:j=mm;break;case"scroll":case"scrollend":j=Wg;break;case"wheel":j=vm;break;case"copy":case"cut":case"paste":j=lm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=kc;break;case"toggle":case"beforetoggle":j=Sm}var te=(t&4)!==0,Ne=!te&&(e==="scroll"||e==="scrollend"),N=te?D!==null?D+"Capture":null:D;te=[];for(var w=z,C;w!==null;){var U=w;if(C=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||C===null||N===null||(U=ll(w,N),U!=null&&te.push(ql(w,U,C))),Ne)break;w=w.return}0<te.length&&(D=new j(D,ae,null,n,L),B.push({event:D,listeners:te}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",D&&n!==hs&&(ae=n.relatedTarget||n.fromElement)&&(oa(ae)||ae[ra]))break e;if((j||D)&&(D=L.window===L?L:(D=L.ownerDocument)?D.defaultView||D.parentWindow:window,j?(ae=n.relatedTarget||n.toElement,j=z,ae=ae?oa(ae):null,ae!==null&&(Ne=f(ae),te=ae.tag,ae!==Ne||te!==5&&te!==27&&te!==6)&&(ae=null)):(j=null,ae=z),j!==ae)){if(te=Cc,U="onMouseLeave",N="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(te=kc,U="onPointerLeave",N="onPointerEnter",w="pointer"),Ne=j==null?D:al(j),C=ae==null?D:al(ae),D=new te(U,w+"leave",j,n,L),D.target=Ne,D.relatedTarget=C,U=null,oa(L)===z&&(te=new te(N,w+"enter",ae,n,L),te.target=C,te.relatedTarget=Ne,U=te),Ne=U,j&&ae)t:{for(te=j,N=ae,w=0,C=te;C;C=Va(C))w++;for(C=0,U=N;U;U=Va(U))C++;for(;0<w-C;)te=Va(te),w--;for(;0<C-w;)N=Va(N),C--;for(;w--;){if(te===N||N!==null&&te===N.alternate)break t;te=Va(te),N=Va(N)}te=null}else te=null;j!==null&&xh(B,D,j,te,!1),ae!==null&&Ne!==null&&xh(B,Ne,ae,te,!0)}}e:{if(D=z?al(z):window,j=D.nodeName&&D.nodeName.toLowerCase(),j==="select"||j==="input"&&D.type==="file")var Z=Bc;else if(Uc(D))if(qc)Z=zm;else{Z=Om;var de=Am}else j=D.nodeName,!j||j.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?z&&ds(z.elementType)&&(Z=Bc):Z=Cm;if(Z&&(Z=Z(e,z))){Hc(B,Z,n,L);break e}de&&de(e,D,z),e==="focusout"&&z&&D.type==="number"&&z.memoizedProps.value!=null&&fs(D,"number",D.value)}switch(de=z?al(z):window,e){case"focusin":(Uc(de)||de.contentEditable==="true")&&(ba=de,Ns=z,dl=null);break;case"focusout":dl=Ns=ba=null;break;case"mousedown":As=!0;break;case"contextmenu":case"mouseup":case"dragend":As=!1,Kc(B,n,L);break;case"selectionchange":if(Dm)break;case"keydown":case"keyup":Kc(B,n,L)}var P;if(Es)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else va?_c(e,n)&&(ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ne="onCompositionStart");ne&&(Dc&&n.locale!=="ko"&&(va||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&va&&(P=Ac()):(gn=L,ys="value"in gn?gn.value:gn.textContent,va=!0)),de=pu(z,ne),0<de.length&&(ne=new zc(ne,e,null,n,L),B.push({event:ne,listeners:de}),P?ne.data=P:(P=Lc(n),P!==null&&(ne.data=P)))),(P=Em?Tm(e,n):Rm(e,n))&&(ne=pu(z,"onBeforeInput"),0<ne.length&&(de=new zc("onBeforeInput","beforeinput",null,n,L),B.push({event:de,listeners:ne}),de.data=P)),py(B,e,z,n,L)}bh(B,t)})}function ql(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pu(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=ll(e,n),u!=null&&a.unshift(ql(e,u,o)),u=ll(e,t),u!=null&&a.push(ql(e,u,o))),e.tag===3)return a;e=e.return}return[]}function Va(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xh(e,t,n,a,u){for(var o=t._reactName,m=[];n!==null&&n!==a;){var v=n,x=v.alternate,z=v.stateNode;if(v=v.tag,x!==null&&x===a)break;v!==5&&v!==26&&v!==27||z===null||(x=z,u?(z=ll(n,o),z!=null&&m.unshift(ql(n,z,x))):u||(z=ll(n,o),z!=null&&m.push(ql(n,z,x)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var vy=/\r\n?/g,by=/\u0000|\uFFFD/g;function Eh(e){return(typeof e=="string"?e:""+e).replace(vy,`
|
|
172
|
-
`).replace(by,"")}function Th(e,t){return t=Eh(t),Eh(e)===t}function gu(){}function we(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":Si(e,"class",a);break;case"tabIndex":Si(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Si(e,n,a);break;case"style":Rc(e,a,o);break;case"data":if(t!=="object"){Si(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=Ti(""+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"&&we(e,t,"name",u.name,u,null),we(e,t,"formEncType",u.formEncType,u,null),we(e,t,"formMethod",u.formMethod,u,null),we(e,t,"formTarget",u.formTarget,u,null)):(we(e,t,"encType",u.encType,u,null),we(e,t,"method",u.method,u,null),we(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ti(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=gu);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(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=Ti(""+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":pe("beforetoggle",e),pe("toggle",e),bi(e,"popover",a);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":bi(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=Jg.get(n)||n,bi(e,n,a))}}function Fr(e,t,n,a,u,o){switch(n){case"style":Rc(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(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&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=gu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hc.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[ut]||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,""):bi(e,n,a)}}}function Fe(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("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(s(137,t));default:we(e,t,o,m,n,null)}}u&&we(e,t,"srcSet",n.srcSet,n,null),a&&we(e,t,"src",n.src,n,null);return;case"input":pe("invalid",e);var v=o=m=u=null,x=null,z=null;for(a in n)if(n.hasOwnProperty(a)){var L=n[a];if(L!=null)switch(a){case"name":u=L;break;case"type":m=L;break;case"checked":x=L;break;case"defaultChecked":z=L;break;case"value":o=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:we(e,t,a,L,n,null)}}Sc(e,o,v,x,z,m,u,!1),xi(e);return;case"select":pe("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:we(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":pe("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(s(91));break;default:we(e,t,m,v,n,null)}Ec(e,a,u,o),xi(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:we(e,t,x,a,n,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(a=0;a<Bl.length;a++)pe(Bl[a],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("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(z in n)if(n.hasOwnProperty(z)&&(a=n[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:we(e,t,z,a,n,null)}return;default:if(ds(t)){for(L in n)n.hasOwnProperty(L)&&(a=n[L],a!==void 0&&Fr(e,t,L,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&we(e,t,v,a,n,null))}function Sy(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,z=null,L=null;for(j in n){var B=n[j];if(n.hasOwnProperty(j)&&B!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":x=B;default:a.hasOwnProperty(j)||we(e,t,j,null,a,B)}}for(var D in a){var j=a[D];if(B=n[D],a.hasOwnProperty(D)&&(j!=null||B!=null))switch(D){case"type":o=j;break;case"name":u=j;break;case"checked":z=j;break;case"defaultChecked":L=j;break;case"value":m=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:j!==B&&we(e,t,D,j,a,B)}}cs(e,m,v,x,z,L,o,u);return;case"select":j=m=v=D=null;for(o in n)if(x=n[o],n.hasOwnProperty(o)&&x!=null)switch(o){case"value":break;case"multiple":j=x;default:a.hasOwnProperty(o)||we(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":D=o;break;case"defaultValue":v=o;break;case"multiple":m=o;default:o!==x&&we(e,t,u,o,a,x)}t=v,n=m,a=j,D!=null?pa(e,!!n,D,!1):!!a!=!!n&&(t!=null?pa(e,!!n,t,!0):pa(e,!!n,n?[]:"",!1));return;case"textarea":j=D=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:we(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":D=u;break;case"defaultValue":j=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==o&&we(e,t,m,u,a,o)}xc(e,D,j);return;case"option":for(var ae in n)if(D=n[ae],n.hasOwnProperty(ae)&&D!=null&&!a.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:we(e,t,ae,null,a,D)}for(x in a)if(D=a[x],j=n[x],a.hasOwnProperty(x)&&D!==j&&(D!=null||j!=null))switch(x){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:we(e,t,x,D,a,j)}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 te in n)D=n[te],n.hasOwnProperty(te)&&D!=null&&!a.hasOwnProperty(te)&&we(e,t,te,null,a,D);for(z in a)if(D=a[z],j=n[z],a.hasOwnProperty(z)&&D!==j&&(D!=null||j!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:we(e,t,z,D,a,j)}return;default:if(ds(t)){for(var Ne in n)D=n[Ne],n.hasOwnProperty(Ne)&&D!==void 0&&!a.hasOwnProperty(Ne)&&Fr(e,t,Ne,void 0,a,D);for(L in a)D=a[L],j=n[L],!a.hasOwnProperty(L)||D===j||D===void 0&&j===void 0||Fr(e,t,L,D,a,j);return}}for(var N in n)D=n[N],n.hasOwnProperty(N)&&D!=null&&!a.hasOwnProperty(N)&&we(e,t,N,null,a,D);for(B in a)D=a[B],j=n[B],!a.hasOwnProperty(B)||D===j||D==null&&j==null||we(e,t,B,D,a,j)}var Wr=null,Pr=null;function mu(e){return e.nodeType===9?e:e.ownerDocument}function Rh(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 wh(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 Ir(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 eo=null;function xy(){var e=window.event;return e&&e.type==="popstate"?e===eo?!1:(eo=e,!0):(eo=null,!1)}var Nh=typeof setTimeout=="function"?setTimeout:void 0,Ey=typeof clearTimeout=="function"?clearTimeout:void 0,Ah=typeof Promise=="function"?Promise:void 0,Ty=typeof queueMicrotask=="function"?queueMicrotask:typeof Ah<"u"?function(e){return Ah.resolve(null).then(e).catch(Ry)}:Nh;function Ry(e){setTimeout(function(){throw e})}function kn(e){return e==="head"}function Oh(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&&Gl(m.documentElement),n&2&&Gl(m.body),n&4)for(n=m.head,Gl(n),m=n.firstChild;m;){var v=m.nextSibling,x=m.nodeName;m[nl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&m.rel.toLowerCase()==="stylesheet"||n.removeChild(m),m=v}}if(u===0){e.removeChild(o),Jl(t);return}u--}else n==="$"||n==="$?"||n==="$!"?u++:a=n.charCodeAt(0)-48;else a=0;n=o}while(n);Jl(t)}function to(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":to(n),us(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function wy(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[nl])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=Ut(e.nextSibling),e===null)break}return null}function Ny(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ut(e.nextSibling),e===null))return null;return e}function no(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Ay(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 Ut(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 ao=null;function Ch(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 zh(e,t,n){switch(t=mu(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Gl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);us(e)}var kt=new Map,kh=new Set;function yu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var on=V.d;V.d={f:Oy,r:Cy,D:zy,C:ky,L:Dy,m:jy,X:_y,S:My,M:Ly};function Oy(){var e=on.f(),t=ru();return e||t}function Cy(e){var t=ca(e);t!==null&&t.tag===5&&t.type==="form"?Wf(t):on.r(e)}var Ya=typeof document>"u"?null:document;function Dh(e,t,n){var a=Ya;if(a&&typeof t=="string"&&t){var u=Rt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),kh.has(u)||(kh.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),Fe(t,"link",e),Ye(t),a.head.appendChild(t)))}}function zy(e){on.D(e),Dh("dns-prefetch",e,null)}function ky(e,t){on.C(e,t),Dh("preconnect",e,t)}function Dy(e,t,n){on.L(e,t,n);var a=Ya;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($l(o))||t==="script"&&a.querySelector(Vl(o))||(t=a.createElement("link"),Fe(t,"link",e),Ye(t),a.head.appendChild(t)))}}function jy(e,t){on.m(e,t);var n=Ya;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(Vl(o)))return}a=n.createElement("link"),Fe(a,"link",e),Ye(a),n.head.appendChild(a)}}}function My(e,t,n){on.S(e,t,n);var a=Ya;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($l(o)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kt.get(o))&&lo(e,n);var x=m=a.createElement("link");Ye(x),Fe(x,"link",e),x._p=new Promise(function(z,L){x.onload=z,x.onerror=L}),x.addEventListener("load",function(){v.loading|=1}),x.addEventListener("error",function(){v.loading|=2}),v.loading|=4,vu(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:v},u.set(o,m)}}}function _y(e,t){on.X(e,t);var n=Ya;if(n&&e){var a=fa(n).hoistableScripts,u=Xa(e),o=a.get(u);o||(o=n.querySelector(Vl(u)),o||(e=y({src:e,async:!0},t),(t=kt.get(u))&&io(e,t),o=n.createElement("script"),Ye(o),Fe(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function Ly(e,t){on.M(e,t);var n=Ya;if(n&&e){var a=fa(n).hoistableScripts,u=Xa(e),o=a.get(u);o||(o=n.querySelector(Vl(u)),o||(e=y({src:e,async:!0,type:"module"},t),(t=kt.get(u))&&io(e,t),o=n.createElement("script"),Ye(o),Fe(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function jh(e,t,n,a){var u=(u=ue.current)?yu(u):null;if(!u)throw Error(s(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($l(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||Uy(u,e,n,m.state))),t&&a===null)throw Error(s(528,""));return m}if(t&&a!==null)throw Error(s(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(s(444,e))}}function Qa(e){return'href="'+Rt(e)+'"'}function $l(e){return'link[rel="stylesheet"]['+e+"]"}function Mh(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Uy(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}),Fe(t,"link",n),Ye(t),e.head.appendChild(t))}function Xa(e){return'[src="'+Rt(e)+'"]'}function Vl(e){return"script[async]"+e}function _h(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,Ye(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"),Ye(a),Fe(a,"style",u),vu(a,n.precedence,e),t.instance=a;case"stylesheet":u=Qa(n.href);var o=e.querySelector($l(u));if(o)return t.state.loading|=4,t.instance=o,Ye(o),o;a=Mh(n),(u=kt.get(u))&&lo(a,u),o=(e.ownerDocument||e).createElement("link"),Ye(o);var m=o;return m._p=new Promise(function(v,x){m.onload=v,m.onerror=x}),Fe(o,"link",a),t.state.loading|=4,vu(o,n.precedence,e),t.instance=o;case"script":return o=Xa(n.src),(u=e.querySelector(Vl(o)))?(t.instance=u,Ye(u),u):(a=n,(u=kt.get(o))&&(a=y({},n),io(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ye(u),Fe(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,vu(a,n.precedence,e));return t.instance}function vu(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 lo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function io(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bu=null;function Lh(e,t,n){if(bu===null){var a=new Map,u=bu=new Map;u.set(n,a)}else u=bu,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[nl]||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 v=a.get(m);v?v.push(o):a.set(m,[o])}}return a}function Uh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Hy(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 Hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Yl=null;function By(){}function qy(e,t,n){if(Yl===null)throw Error(s(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($l(u));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Su.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=o,Ye(o);return}o=e.ownerDocument||e,n=Mh(n),(u=kt.get(u))&&lo(n,u),o=o.createElement("link"),Ye(o);var m=o;m._p=new Promise(function(v,x){m.onload=v,m.onerror=x}),Fe(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=Su.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Gy(){if(Yl===null)throw Error(s(475));var e=Yl;return e.stylesheets&&e.count===0&&uo(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&uo(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 Su(){if(this.count--,this.count===0){if(this.stylesheets)uo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xu=null;function uo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xu=new Map,t.forEach($y,e),xu=null,Su.call(e))}function $y(e,t){if(!(t.state.loading&4)){var n=xu.get(e);if(n)var a=n.get(null);else{n=new Map,xu.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=Su.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 Ql={$$typeof:$,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Vy(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=ns(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ns(0),this.hiddenUpdates=ns(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 Bh(e,t,n,a,u,o,m,v,x,z,L,B){return e=new Vy(e,t,n,m,v,x,z,B),t=1,o===!0&&(t|=24),o=mt(3,null,null,t),e.current=o,o.stateNode=e,t=Gs(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Qs(o),e}function qh(e){return e?(e=Ta,e):Ta}function Gh(e,t,n,a,u,o){u=qh(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),xl(n,e,t))}function $h(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function so(e,t){$h(e,t),(e=e.alternate)&&$h(e,t)}function Vh(e){if(e.tag===13){var t=Ea(e,67108864);t!==null&&xt(t,e,67108864),so(e,67108864)}}var Eu=!0;function Yy(e,t,n,a){var u=_.T;_.T=null;var o=V.p;try{V.p=2,ro(e,t,n,a)}finally{V.p=o,_.T=u}}function Qy(e,t,n,a){var u=_.T;_.T=null;var o=V.p;try{V.p=8,ro(e,t,n,a)}finally{V.p=o,_.T=u}}function ro(e,t,n,a){if(Eu){var u=oo(a);if(u===null)Jr(e,t,a,Tu,n),Qh(e,a);else if(Zy(u,e,t,n,a))a.stopPropagation();else if(Qh(e,a),t&4&&-1<Xy.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}Qt(o),(xe&6)===0&&(uu=qt()+500,Hl(0))}}break;case 13:v=Ea(o,2),v!==null&&xt(v,o,2),ru(),so(o,2)}if(o=oo(a),o===null&&Jr(e,t,a,Tu,n),o===u)break;u=o}u!==null&&a.stopPropagation()}else Jr(e,t,a,null,n)}}function oo(e){return e=ps(e),co(e)}var Tu=null;function co(e){if(Tu=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=d(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 Tu=e,null}function Yh(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(kg()){case ac:return 2;case lc:return 8;case gi:case Dg:return 32;case ic:return 268435456;default:return 32}default:return 32}}var fo=!1,Dn=null,jn=null,Mn=null,Xl=new Map,Zl=new Map,_n=[],Xy="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 Qh(e,t){switch(e){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":Xl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(t.pointerId)}}function Kl(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&&Vh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Zy(e,t,n,a,u){switch(t){case"focusin":return Dn=Kl(Dn,e,t,n,a,u),!0;case"dragenter":return jn=Kl(jn,e,t,n,a,u),!0;case"mouseover":return Mn=Kl(Mn,e,t,n,a,u),!0;case"pointerover":var o=u.pointerId;return Xl.set(o,Kl(Xl.get(o)||null,e,t,n,a,u)),!0;case"gotpointercapture":return o=u.pointerId,Zl.set(o,Kl(Zl.get(o)||null,e,t,n,a,u)),!0}return!1}function Xh(e){var t=oa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,qg(e.priority,function(){if(n.tag===13){var a=St();a=as(a);var u=Ea(n,a);u!==null&&xt(u,n,a),so(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 Ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=oo(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);hs=a,n.target.dispatchEvent(a),hs=null}else return t=ca(n),t!==null&&Vh(t),e.blockedOn=n,!1;t.shift()}return!0}function Zh(e,t,n){Ru(e)&&n.delete(t)}function Ky(){fo=!1,Dn!==null&&Ru(Dn)&&(Dn=null),jn!==null&&Ru(jn)&&(jn=null),Mn!==null&&Ru(Mn)&&(Mn=null),Xl.forEach(Zh),Zl.forEach(Zh)}function wu(e,t){e.blockedOn===t&&(e.blockedOn=null,fo||(fo=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ky)))}var Nu=null;function Kh(e){Nu!==e&&(Nu=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Nu===e&&(Nu=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(co(a||n)===null)continue;break}var o=ca(n);o!==null&&(e.splice(t,3),t-=3,cr(o,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function Jl(e){function t(x){return wu(x,e)}Dn!==null&&wu(Dn,e),jn!==null&&wu(jn,e),Mn!==null&&wu(Mn,e),Xl.forEach(t),Zl.forEach(t);for(var n=0;n<_n.length;n++){var a=_n[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<_n.length&&(n=_n[0],n.blockedOn===null);)Xh(n),n.blockedOn===null&&_n.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[ut]||null;if(typeof o=="function")m||Kh(n);else if(m){var v=null;if(o&&o.hasAttribute("formAction")){if(u=o,m=o[ut]||null)v=m.formAction;else if(co(u)!==null)continue}else v=m.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),Kh(n)}}}function ho(e){this._internalRoot=e}Au.prototype.render=ho.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=St();Gh(n,a,e,t,null,null)},Au.prototype.unmount=ho.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gh(e.current,2,null,e,null,null),ru(),t[ra]=null}};function Au(e){this._internalRoot=e}Au.prototype.unstable_scheduleHydration=function(e){if(e){var t=cc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_n.length&&t!==0&&t<_n[n].priority;n++);_n.splice(n,0,e),n===0&&Xh(e)}};var Jh=l.version;if(Jh!=="19.1.0")throw Error(s(527,Jh,"19.1.0"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var Jy={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ou.isDisabled&&Ou.supportsFiber)try{Ia=Ou.inject(Jy),ht=Ou}catch{}}return Pl.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,a="",u=fd,o=dd,m=hd,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=Bh(e,1,!1,null,null,n,a,u,o,m,v,null),e[ra]=t.current,Kr(e),new ho(t)},Pl.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var a=!1,u="",o=fd,m=dd,v=hd,x=null,z=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&&(z=n.formState)),t=Bh(e,1,!0,t,n??null,a,u,o,m,v,x,z),t.context=qh(null),n=t.current,a=St(),a=as(a),u=vn(a),u.callback=null,bn(n,u,a),n=a,t.current.lanes=n,tl(t,n),Qt(t),e[ra]=t.current,Kr(e),new Au(t)},Pl.version="19.1.0",Pl}var Sp;function rS(){if(Sp)return yo.exports;Sp=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(l){console.error(l)}}return r(),yo.exports=sS(),yo.exports}var oS=rS();const cS=Ho(oS);var Il={},xp;function fS(){if(xp)return Il;xp=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.parse=d,Il.serialize=h;const r=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,c=Object.prototype.toString,f=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function d(b,A){const R=new f,k=b.length;if(k<2)return R;const M=(A==null?void 0:A.decode)||y;let H=0;do{const G=b.indexOf("=",H);if(G===-1)break;const $=b.indexOf(";",H),F=$===-1?k:$;if(G>F){H=b.lastIndexOf(";",G-1)+1;continue}const X=g(b,H,G),se=p(b,G,X),W=b.slice(X,se);if(R[W]===void 0){let K=g(b,G+1,F),J=p(b,F,K);const re=M(b.slice(K,J));R[W]=re}H=F+1}while(H<k);return R}function g(b,A,R){do{const k=b.charCodeAt(A);if(k!==32&&k!==9)return A}while(++A<R);return R}function p(b,A,R){for(;A>R;){const k=b.charCodeAt(--A);if(k!==32&&k!==9)return A+1}return R}function h(b,A,R){const k=(R==null?void 0:R.encode)||encodeURIComponent;if(!r.test(b))throw new TypeError(`argument name is invalid: ${b}`);const M=k(A);if(!l.test(M))throw new TypeError(`argument val is invalid: ${A}`);let H=b+"="+M;if(!R)return H;if(R.maxAge!==void 0){if(!Number.isInteger(R.maxAge))throw new TypeError(`option maxAge is invalid: ${R.maxAge}`);H+="; Max-Age="+R.maxAge}if(R.domain){if(!i.test(R.domain))throw new TypeError(`option domain is invalid: ${R.domain}`);H+="; Domain="+R.domain}if(R.path){if(!s.test(R.path))throw new TypeError(`option path is invalid: ${R.path}`);H+="; Path="+R.path}if(R.expires){if(!S(R.expires)||!Number.isFinite(R.expires.valueOf()))throw new TypeError(`option expires is invalid: ${R.expires}`);H+="; Expires="+R.expires.toUTCString()}if(R.httpOnly&&(H+="; HttpOnly"),R.secure&&(H+="; Secure"),R.partitioned&&(H+="; Partitioned"),R.priority)switch(typeof R.priority=="string"?R.priority.toLowerCase():void 0){case"low":H+="; Priority=Low";break;case"medium":H+="; Priority=Medium";break;case"high":H+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${R.priority}`)}if(R.sameSite)switch(typeof R.sameSite=="string"?R.sameSite.toLowerCase():R.sameSite){case!0:case"strict":H+="; SameSite=Strict";break;case"lax":H+="; SameSite=Lax";break;case"none":H+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${R.sameSite}`)}return H}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 Il}fS();var Ep="popstate";function dS(r={}){function l(c,f){let{pathname:d="/",search:g="",hash:p=""}=ia(c.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Mo("",{pathname:d,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function i(c,f){let d=c.document.querySelector("base"),g="";if(d&&d.getAttribute("href")){let p=c.location.href,h=p.indexOf("#");g=h===-1?p:p.slice(0,h)}return g+"#"+(typeof f=="string"?f:si(f))}function s(c,f){Mt(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return pS(l,i,s,r)}function je(r,l){if(r===!1||r===null||typeof r>"u")throw new Error(l)}function Mt(r,l){if(!r){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function hS(){return Math.random().toString(36).substring(2,10)}function Tp(r,l){return{usr:r.state,key:r.key,idx:l}}function Mo(r,l,i=null,s){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof l=="string"?ia(l):l,state:i,key:l&&l.key||s||hS()}}function si({pathname:r="/",search:l="",hash:i=""}){return l&&l!=="?"&&(r+=l.charAt(0)==="?"?l:"?"+l),i&&i!=="#"&&(r+=i.charAt(0)==="#"?i:"#"+i),r}function ia(r){let l={};if(r){let i=r.indexOf("#");i>=0&&(l.hash=r.substring(i),r=r.substring(0,i));let s=r.indexOf("?");s>=0&&(l.search=r.substring(s),r=r.substring(0,s)),r&&(l.pathname=r)}return l}function pS(r,l,i,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,d=c.history,g="POP",p=null,h=y();h==null&&(h=0,d.replaceState({...d.state,idx:h},""));function y(){return(d.state||{idx:null}).idx}function S(){g="POP";let M=y(),H=M==null?null:M-h;h=M,p&&p({action:g,location:k.location,delta:H})}function b(M,H){g="PUSH";let G=Mo(k.location,M,H);i&&i(G,M),h=y()+1;let $=Tp(G,h),F=k.createHref(G);try{d.pushState($,"",F)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;c.location.assign(F)}f&&p&&p({action:g,location:k.location,delta:1})}function A(M,H){g="REPLACE";let G=Mo(k.location,M,H);i&&i(G,M),h=y();let $=Tp(G,h),F=k.createHref(G);d.replaceState($,"",F),f&&p&&p({action:g,location:k.location,delta:0})}function R(M){let H=c.location.origin!=="null"?c.location.origin:c.location.href,G=typeof M=="string"?M:si(M);return G=G.replace(/ $/,"%20"),je(H,`No window.location.(origin|href) available to create URL for href: ${G}`),new URL(G,H)}let k={get action(){return g},get location(){return r(c,d)},listen(M){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(Ep,S),p=M,()=>{c.removeEventListener(Ep,S),p=null}},createHref(M){return l(c,M)},createURL:R,encodeLocation(M){let H=R(M);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:b,replace:A,go(M){return d.go(M)}};return k}function Jp(r,l,i="/"){return gS(r,l,i,!1)}function gS(r,l,i,s){let c=typeof l=="string"?ia(l):l,f=fn(c.pathname||"/",i);if(f==null)return null;let d=Fp(r);mS(d);let g=null;for(let p=0;g==null&&p<d.length;++p){let h=AS(f);g=wS(d[p],h,s)}return g}function Fp(r,l=[],i=[],s=""){let c=(f,d,g)=>{let p={relativePath:g===void 0?f.path||"":g,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};p.relativePath.startsWith("/")&&(je(p.relativePath.startsWith(s),`Absolute route path "${p.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(s.length));let h=cn([s,p.relativePath]),y=i.concat(p);f.children&&f.children.length>0&&(je(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Fp(f.children,l,y,h)),!(f.path==null&&!f.index)&&l.push({path:h,score:TS(h,f.index),routesMeta:y})};return r.forEach((f,d)=>{var g;if(f.path===""||!((g=f.path)!=null&&g.includes("?")))c(f,d);else for(let p of Wp(f.path))c(f,d,p)}),l}function Wp(r){let l=r.split("/");if(l.length===0)return[];let[i,...s]=l,c=i.endsWith("?"),f=i.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let d=Wp(s.join("/")),g=[];return g.push(...d.map(p=>p===""?f:[f,p].join("/"))),c&&g.push(...d),g.map(p=>r.startsWith("/")&&p===""?"/":p)}function mS(r){r.sort((l,i)=>l.score!==i.score?i.score-l.score:RS(l.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var yS=/^:[\w-]+$/,vS=3,bS=2,SS=1,xS=10,ES=-2,Rp=r=>r==="*";function TS(r,l){let i=r.split("/"),s=i.length;return i.some(Rp)&&(s+=ES),l&&(s+=bS),i.filter(c=>!Rp(c)).reduce((c,f)=>c+(yS.test(f)?vS:f===""?SS:xS),s)}function RS(r,l){return r.length===l.length&&r.slice(0,-1).every((s,c)=>s===l[c])?r[r.length-1]-l[l.length-1]:0}function wS(r,l,i=!1){let{routesMeta:s}=r,c={},f="/",d=[];for(let g=0;g<s.length;++g){let p=s[g],h=g===s.length-1,y=f==="/"?l:l.slice(f.length)||"/",S=Gu({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},y),b=p.route;if(!S&&h&&i&&!s[s.length-1].route.index&&(S=Gu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!S)return null;Object.assign(c,S.params),d.push({params:c,pathname:cn([f,S.pathname]),pathnameBase:kS(cn([f,S.pathnameBase])),route:b}),S.pathnameBase!=="/"&&(f=cn([f,S.pathnameBase]))}return d}function Gu(r,l){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[i,s]=NS(r.path,r.caseSensitive,r.end),c=l.match(i);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),g=c.slice(1);return{params:s.reduce((h,{paramName:y,isOptional:S},b)=>{if(y==="*"){let R=g[b]||"";d=f.slice(0,f.length-R.length).replace(/(.)\/+$/,"$1")}const A=g[b];return S&&!A?h[y]=void 0:h[y]=(A||"").replace(/%2F/g,"/"),h},{}),pathname:f,pathnameBase:d,pattern:r}}function NS(r,l=!1,i=!0){Mt(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let s=[],c="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,g,p)=>(s.push({paramName:g,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return r.endsWith("*")?(s.push({paramName:"*"}),c+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":r!==""&&r!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),s]}function AS(r){try{return r.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Mt(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),r}}function fn(r,l){if(l==="/")return r;if(!r.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,s=r.charAt(i);return s&&s!=="/"?null:r.slice(i)||"/"}function OS(r,l="/"){let{pathname:i,search:s="",hash:c=""}=typeof r=="string"?ia(r):r;return{pathname:i?i.startsWith("/")?i:CS(i,l):l,search:DS(s),hash:jS(c)}}function CS(r,l){let i=l.replace(/\/+$/,"").split("/");return r.split("/").forEach(c=>{c===".."?i.length>1&&i.pop():c!=="."&&i.push(c)}),i.length>1?i.join("/"):"/"}function xo(r,l,i,s){return`Cannot include a '${r}' character in a manually specified \`to.${l}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zS(r){return r.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function Bo(r){let l=zS(r);return l.map((i,s)=>s===l.length-1?i.pathname:i.pathnameBase)}function qo(r,l,i,s=!1){let c;typeof r=="string"?c=ia(r):(c={...r},je(!c.pathname||!c.pathname.includes("?"),xo("?","pathname","search",c)),je(!c.pathname||!c.pathname.includes("#"),xo("#","pathname","hash",c)),je(!c.search||!c.search.includes("#"),xo("#","search","hash",c)));let f=r===""||c.pathname==="",d=f?"/":c.pathname,g;if(d==null)g=i;else{let S=l.length-1;if(!s&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),S-=1;c.pathname=b.join("/")}g=S>=0?l[S]:"/"}let p=OS(c,g),h=d&&d!=="/"&&d.endsWith("/"),y=(f||d===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(h||y)&&(p.pathname+="/"),p}var cn=r=>r.join("/").replace(/\/\/+/g,"/"),kS=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),DS=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,jS=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;function MS(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}var Pp=["POST","PUT","PATCH","DELETE"];new Set(Pp);var _S=["GET",...Pp];new Set(_S);var Fa=O.createContext(null);Fa.displayName="DataRouter";var Zu=O.createContext(null);Zu.displayName="DataRouterState";var Ip=O.createContext({isTransitioning:!1});Ip.displayName="ViewTransition";var LS=O.createContext(new Map);LS.displayName="Fetchers";var US=O.createContext(null);US.displayName="Await";var Ht=O.createContext(null);Ht.displayName="Navigation";var ci=O.createContext(null);ci.displayName="Location";var Bt=O.createContext({outlet:null,matches:[],isDataRoute:!1});Bt.displayName="Route";var Go=O.createContext(null);Go.displayName="RouteError";function HS(r,{relative:l}={}){je(Wa(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=O.useContext(Ht),{hash:c,pathname:f,search:d}=fi(r,{relative:l}),g=f;return i!=="/"&&(g=f==="/"?i:cn([i,f])),s.createHref({pathname:g,search:d,hash:c})}function Wa(){return O.useContext(ci)!=null}function Hn(){return je(Wa(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(ci).location}var eg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tg(r){O.useContext(Ht).static||O.useLayoutEffect(r)}function Pa(){let{isDataRoute:r}=O.useContext(Bt);return r?PS():BS()}function BS(){je(Wa(),"useNavigate() may be used only in the context of a <Router> component.");let r=O.useContext(Fa),{basename:l,navigator:i}=O.useContext(Ht),{matches:s}=O.useContext(Bt),{pathname:c}=Hn(),f=JSON.stringify(Bo(s)),d=O.useRef(!1);return tg(()=>{d.current=!0}),O.useCallback((p,h={})=>{if(Mt(d.current,eg),!d.current)return;if(typeof p=="number"){i.go(p);return}let y=qo(p,JSON.parse(f),c,h.relative==="path");r==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:cn([l,y.pathname])),(h.replace?i.replace:i.push)(y,h.state,h)},[l,i,f,c,r])}O.createContext(null);function qS(){let{matches:r}=O.useContext(Bt),l=r[r.length-1];return l?l.params:{}}function fi(r,{relative:l}={}){let{matches:i}=O.useContext(Bt),{pathname:s}=Hn(),c=JSON.stringify(Bo(i));return O.useMemo(()=>qo(r,JSON.parse(c),s,l==="path"),[r,c,s,l])}function GS(r,l){return ng(r,l)}function ng(r,l,i,s){var G;je(Wa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c,static:f}=O.useContext(Ht),{matches:d}=O.useContext(Bt),g=d[d.length-1],p=g?g.params:{},h=g?g.pathname:"/",y=g?g.pathnameBase:"/",S=g&&g.route;{let $=S&&S.path||"";ag(h,!S||$.endsWith("*")||$.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${$}">) 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.
|
|
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.
|
|
173
173
|
|
|
174
|
-
Please change the parent <Route path="${$}"> to <Route path="${$==="/"?"*":`${$}/*`}">.`)}let b=Hn(),A;if(l){let $=typeof l=="string"?ia(l):l;je(y==="/"||((G=$.pathname)==null?void 0:G.startsWith(y)),`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 "${y}" but pathname "${$.pathname}" was given in the \`location\` prop.`),A=$}else A=b;let R=A.pathname||"/",k=R;if(y!=="/"){let $=y.replace(/^\//,"").split("/");k="/"+R.replace(/^\//,"").split("/").slice($.length).join("/")}let M=!f&&i&&i.matches&&i.matches.length>0?i.matches:Jp(r,{pathname:k});Mt(S||M!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),Mt(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 "${A.pathname}${A.search}${A.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 H=XS(M&&M.map($=>Object.assign({},$,{params:Object.assign({},p,$.params),pathname:cn([y,c.encodeLocation?c.encodeLocation($.pathname).pathname:$.pathname]),pathnameBase:$.pathnameBase==="/"?y:cn([y,c.encodeLocation?c.encodeLocation($.pathnameBase).pathname:$.pathnameBase])})),d,i,s);return l&&H?O.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...A},navigationType:"POP"}},H):H}function $S(){let r=WS(),l=MS(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),i=r instanceof Error?r.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",r),d=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),i?O.createElement("pre",{style:c},i):null,d)}var VS=O.createElement($S,null),YS=class extends O.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,l){return l.location!==r.location||l.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:l.error,location:l.location,revalidation:r.revalidation||l.revalidation}}componentDidCatch(r,l){console.error("React Router caught the following error during render",r,l)}render(){return this.state.error!==void 0?O.createElement(Bt.Provider,{value:this.props.routeContext},O.createElement(Go.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function QS({routeContext:r,match:l,children:i}){let s=O.useContext(Fa);return s&&s.static&&s.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=l.route.id),O.createElement(Bt.Provider,{value:r},i)}function XS(r,l=[],i=null,s=null){if(r==null){if(!i)return null;if(i.errors)r=i.matches;else if(l.length===0&&!i.initialized&&i.matches.length>0)r=i.matches;else return null}let c=r,f=i==null?void 0:i.errors;if(f!=null){let p=c.findIndex(h=>h.route.id&&(f==null?void 0:f[h.route.id])!==void 0);je(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,p+1))}let d=!1,g=-1;if(i)for(let p=0;p<c.length;p++){let h=c[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(g=p),h.route.id){let{loaderData:y,errors:S}=i,b=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!S||S[h.route.id]===void 0);if(h.route.lazy||b){d=!0,g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}return c.reduceRight((p,h,y)=>{let S,b=!1,A=null,R=null;i&&(S=f&&h.route.id?f[h.route.id]:void 0,A=h.route.errorElement||VS,d&&(g<0&&y===0?(ag("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,R=null):g===y&&(b=!0,R=h.route.hydrateFallbackElement||null)));let k=l.concat(c.slice(0,y+1)),M=()=>{let H;return S?H=A:b?H=R:h.route.Component?H=O.createElement(h.route.Component,null):h.route.element?H=h.route.element:H=p,O.createElement(QS,{match:h,routeContext:{outlet:p,matches:k,isDataRoute:i!=null},children:H})};return i&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?O.createElement(YS,{location:i.location,revalidation:i.revalidation,component:A,error:S,children:M(),routeContext:{outlet:null,matches:k,isDataRoute:!0}}):M()},null)}function $o(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ZS(r){let l=O.useContext(Fa);return je(l,$o(r)),l}function KS(r){let l=O.useContext(Zu);return je(l,$o(r)),l}function JS(r){let l=O.useContext(Bt);return je(l,$o(r)),l}function Vo(r){let l=JS(r),i=l.matches[l.matches.length-1];return je(i.route.id,`${r} can only be used on routes that contain a unique "id"`),i.route.id}function FS(){return Vo("useRouteId")}function WS(){var s;let r=O.useContext(Go),l=KS("useRouteError"),i=Vo("useRouteError");return r!==void 0?r:(s=l.errors)==null?void 0:s[i]}function PS(){let{router:r}=ZS("useNavigate"),l=Vo("useNavigate"),i=O.useRef(!1);return tg(()=>{i.current=!0}),O.useCallback(async(c,f={})=>{Mt(i.current,eg),i.current&&(typeof c=="number"?r.navigate(c):await r.navigate(c,{fromRouteId:l,...f}))},[r,l])}var wp={};function ag(r,l,i){!l&&!wp[r]&&(wp[r]=!0,Mt(!1,i))}O.memo(IS);function IS({routes:r,future:l,state:i}){return ng(r,void 0,i,l)}function e1({to:r,replace:l,state:i,relative:s}){je(Wa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=O.useContext(Ht);Mt(!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(Bt),{pathname:d}=Hn(),g=Pa(),p=qo(r,Bo(f),d,s==="path"),h=JSON.stringify(p);return O.useEffect(()=>{g(JSON.parse(h),{replace:l,state:i,relative:s})},[g,h,s,l,i]),null}function ju(r){je(!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 t1({basename:r="/",children:l=null,location:i,navigationType:s="POP",navigator:c,static:f=!1}){je(!Wa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=r.replace(/^\/*/,"/"),g=O.useMemo(()=>({basename:d,navigator:c,static:f,future:{}}),[d,c,f]);typeof i=="string"&&(i=ia(i));let{pathname:p="/",search:h="",hash:y="",state:S=null,key:b="default"}=i,A=O.useMemo(()=>{let R=fn(p,d);return R==null?null:{location:{pathname:R,search:h,hash:y,state:S,key:b},navigationType:s}},[d,p,h,y,S,b,s]);return Mt(A!=null,`<Router basename="${d}"> is not able to match the URL "${p}${h}${y}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:O.createElement(Ht.Provider,{value:g},O.createElement(ci.Provider,{children:l,value:A}))}function n1({children:r,location:l}){return GS(_o(r),l)}function _o(r,l=[]){let i=[];return O.Children.forEach(r,(s,c)=>{if(!O.isValidElement(s))return;let f=[...l,c];if(s.type===O.Fragment){i.push.apply(i,_o(s.props.children,f));return}je(s.type===ju,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),je(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=_o(s.props.children,f)),i.push(d)}),i}var Mu="get",_u="application/x-www-form-urlencoded";function Ku(r){return r!=null&&typeof r.tagName=="string"}function a1(r){return Ku(r)&&r.tagName.toLowerCase()==="button"}function l1(r){return Ku(r)&&r.tagName.toLowerCase()==="form"}function i1(r){return Ku(r)&&r.tagName.toLowerCase()==="input"}function u1(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function s1(r,l){return r.button===0&&(!l||l==="_self")&&!u1(r)}var zu=null;function r1(){if(zu===null)try{new FormData(document.createElement("form"),0),zu=!1}catch{zu=!0}return zu}var o1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Eo(r){return r!=null&&!o1.has(r)?(Mt(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_u}"`),null):r}function c1(r,l){let i,s,c,f,d;if(l1(r)){let g=r.getAttribute("action");s=g?fn(g,l):null,i=r.getAttribute("method")||Mu,c=Eo(r.getAttribute("enctype"))||_u,f=new FormData(r)}else if(a1(r)||i1(r)&&(r.type==="submit"||r.type==="image")){let g=r.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=r.getAttribute("formaction")||g.getAttribute("action");if(s=p?fn(p,l):null,i=r.getAttribute("formmethod")||g.getAttribute("method")||Mu,c=Eo(r.getAttribute("formenctype"))||Eo(g.getAttribute("enctype"))||_u,f=new FormData(g,r),!r1()){let{name:h,type:y,value:S}=r;if(y==="image"){let b=h?`${h}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else h&&f.append(h,S)}}else{if(Ku(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Mu,s=null,c=_u,d=r}return f&&c==="text/plain"&&(d=f,f=void 0),{action:s,method:i.toLowerCase(),encType:c,formData:f,body:d}}function Yo(r,l){if(r===!1||r===null||typeof r>"u")throw new Error(l)}async function f1(r,l){if(r.id in l)return l[r.id];try{let i=await import(r.module);return l[r.id]=i,i}catch(i){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function d1(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function h1(r,l,i){let s=await Promise.all(r.map(async c=>{let f=l.routes[c.route.id];if(f){let d=await f1(f,i);return d.links?d.links():[]}return[]}));return y1(s.flat(1).filter(d1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Np(r,l,i,s,c,f){let d=(p,h)=>i[h]?p.route.id!==i[h].route.id:!0,g=(p,h)=>{var y;return i[h].pathname!==p.pathname||((y=i[h].route.path)==null?void 0:y.endsWith("*"))&&i[h].params["*"]!==p.params["*"]};return f==="assets"?l.filter((p,h)=>d(p,h)||g(p,h)):f==="data"?l.filter((p,h)=>{var S;let y=s.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(d(p,h)||g(p,h))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=i[0])==null?void 0:S.params)||{},nextUrl:new URL(r,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function p1(r,l,{includeHydrateFallback:i}={}){return g1(r.map(s=>{let c=l.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),i&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function g1(r){return[...new Set(r)]}function m1(r){let l={},i=Object.keys(r).sort();for(let s of i)l[s]=r[s];return l}function y1(r,l){let i=new Set;return new Set(l),r.reduce((s,c)=>{let f=JSON.stringify(m1(c));return i.has(f)||(i.add(f),s.push({key:f,link:c})),s},[])}var v1=new Set([100,101,204,205]);function b1(r,l){let i=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return i.pathname==="/"?i.pathname="_root.data":l&&fn(i.pathname,l)==="/"?i.pathname=`${l.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function lg(){let r=O.useContext(Fa);return Yo(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function S1(){let r=O.useContext(Zu);return Yo(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var Qo=O.createContext(void 0);Qo.displayName="FrameworkContext";function ig(){let r=O.useContext(Qo);return Yo(r,"You must render this element inside a <HydratedRouter> element"),r}function x1(r,l){let i=O.useContext(Qo),[s,c]=O.useState(!1),[f,d]=O.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:h,onMouseLeave:y,onTouchStart:S}=l,b=O.useRef(null);O.useEffect(()=>{if(r==="render"&&d(!0),r==="viewport"){let k=H=>{H.forEach(G=>{d(G.isIntersecting)})},M=new IntersectionObserver(k,{threshold:.5});return b.current&&M.observe(b.current),()=>{M.disconnect()}}},[r]),O.useEffect(()=>{if(s){let k=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(k)}}},[s]);let A=()=>{c(!0)},R=()=>{c(!1),d(!1)};return i?r!=="intent"?[f,b,{}]:[f,b,{onFocus:ei(g,A),onBlur:ei(p,R),onMouseEnter:ei(h,A),onMouseLeave:ei(y,R),onTouchStart:ei(S,A)}]:[!1,b,{}]}function ei(r,l){return i=>{r&&r(i),i.defaultPrevented||l(i)}}function E1({page:r,...l}){let{router:i}=lg(),s=O.useMemo(()=>Jp(i.routes,r,i.basename),[i.routes,r,i.basename]);return s?O.createElement(R1,{page:r,matches:s,...l}):null}function T1(r){let{manifest:l,routeModules:i}=ig(),[s,c]=O.useState([]);return O.useEffect(()=>{let f=!1;return h1(r,l,i).then(d=>{f||c(d)}),()=>{f=!0}},[r,l,i]),s}function R1({page:r,matches:l,...i}){let s=Hn(),{manifest:c,routeModules:f}=ig(),{basename:d}=lg(),{loaderData:g,matches:p}=S1(),h=O.useMemo(()=>Np(r,l,p,c,s,"data"),[r,l,p,c,s]),y=O.useMemo(()=>Np(r,l,p,c,s,"assets"),[r,l,p,c,s]),S=O.useMemo(()=>{if(r===s.pathname+s.search+s.hash)return[];let R=new Set,k=!1;if(l.forEach(H=>{var $;let G=c.routes[H.route.id];!G||!G.hasLoader||(!h.some(F=>F.route.id===H.route.id)&&H.route.id in g&&(($=f[H.route.id])!=null&&$.shouldRevalidate)||G.hasClientLoader?k=!0:R.add(H.route.id))}),R.size===0)return[];let M=b1(r,d);return k&&R.size>0&&M.searchParams.set("_routes",l.filter(H=>R.has(H.route.id)).map(H=>H.route.id).join(",")),[M.pathname+M.search]},[d,g,s,c,h,l,r,f]),b=O.useMemo(()=>p1(y,c),[y,c]),A=T1(y);return O.createElement(O.Fragment,null,S.map(R=>O.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...i})),b.map(R=>O.createElement("link",{key:R,rel:"modulepreload",href:R,...i})),A.map(({key:R,link:k})=>O.createElement("link",{key:R,...k})))}function w1(...r){return l=>{r.forEach(i=>{typeof i=="function"?i(l):i!=null&&(i.current=l)})}}var ug=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ug&&(window.__reactRouterVersion="7.5.3")}catch{}function N1({basename:r,children:l,window:i}){let s=O.useRef();s.current==null&&(s.current=dS({window:i,v5Compat:!0}));let c=s.current,[f,d]=O.useState({action:c.action,location:c.location}),g=O.useCallback(p=>{O.startTransition(()=>d(p))},[d]);return O.useLayoutEffect(()=>c.listen(g),[c,g]),O.createElement(t1,{basename:r,children:l,location:f.location,navigationType:f.action,navigator:c})}var sg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rg=O.forwardRef(function({onClick:l,discover:i="render",prefetch:s="none",relative:c,reloadDocument:f,replace:d,state:g,target:p,to:h,preventScrollReset:y,viewTransition:S,...b},A){let{basename:R}=O.useContext(Ht),k=typeof h=="string"&&sg.test(h),M,H=!1;if(typeof h=="string"&&k&&(M=h,ug))try{let J=new URL(window.location.href),re=h.startsWith("//")?new URL(J.protocol+h):new URL(h),le=fn(re.pathname,R);re.origin===J.origin&&le!=null?h=le+re.search+re.hash:H=!0}catch{Mt(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let G=HS(h,{relative:c}),[$,F,X]=x1(s,b),se=z1(h,{replace:d,state:g,target:p,preventScrollReset:y,relative:c,viewTransition:S});function W(J){l&&l(J),J.defaultPrevented||se(J)}let K=O.createElement("a",{...b,...X,href:M||G,onClick:H||f?l:W,ref:w1(A,F),target:p,"data-discover":!k&&i==="render"?"true":void 0});return $&&!k?O.createElement(O.Fragment,null,K,O.createElement(E1,{page:G})):K});rg.displayName="Link";var A1=O.forwardRef(function({"aria-current":l="page",caseSensitive:i=!1,className:s="",end:c=!1,style:f,to:d,viewTransition:g,children:p,...h},y){let S=fi(d,{relative:h.relative}),b=Hn(),A=O.useContext(Zu),{navigator:R,basename:k}=O.useContext(Ht),M=A!=null&&_1(S)&&g===!0,H=R.encodeLocation?R.encodeLocation(S).pathname:S.pathname,G=b.pathname,$=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;i||(G=G.toLowerCase(),$=$?$.toLowerCase():null,H=H.toLowerCase()),$&&k&&($=fn($,k)||$);const F=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let X=G===H||!c&&G.startsWith(H)&&G.charAt(F)==="/",se=$!=null&&($===H||!c&&$.startsWith(H)&&$.charAt(H.length)==="/"),W={isActive:X,isPending:se,isTransitioning:M},K=X?l:void 0,J;typeof s=="function"?J=s(W):J=[s,X?"active":null,se?"pending":null,M?"transitioning":null].filter(Boolean).join(" ");let re=typeof f=="function"?f(W):f;return O.createElement(rg,{...h,"aria-current":K,className:J,ref:y,style:re,to:d,viewTransition:g},typeof p=="function"?p(W):p)});A1.displayName="NavLink";var O1=O.forwardRef(({discover:r="render",fetcherKey:l,navigate:i,reloadDocument:s,replace:c,state:f,method:d=Mu,action:g,onSubmit:p,relative:h,preventScrollReset:y,viewTransition:S,...b},A)=>{let R=j1(),k=M1(g,{relative:h}),M=d.toLowerCase()==="get"?"get":"post",H=typeof g=="string"&&sg.test(g),G=$=>{if(p&&p($),$.defaultPrevented)return;$.preventDefault();let F=$.nativeEvent.submitter,X=(F==null?void 0:F.getAttribute("formmethod"))||d;R(F||$.currentTarget,{fetcherKey:l,method:X,navigate:i,replace:c,state:f,relative:h,preventScrollReset:y,viewTransition:S})};return O.createElement("form",{ref:A,method:M,action:k,onSubmit:s?p:G,...b,"data-discover":!H&&r==="render"?"true":void 0})});O1.displayName="Form";function C1(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function og(r){let l=O.useContext(Fa);return je(l,C1(r)),l}function z1(r,{target:l,replace:i,state:s,preventScrollReset:c,relative:f,viewTransition:d}={}){let g=Pa(),p=Hn(),h=fi(r,{relative:f});return O.useCallback(y=>{if(s1(y,l)){y.preventDefault();let S=i!==void 0?i:si(p)===si(h);g(r,{replace:S,state:s,preventScrollReset:c,relative:f,viewTransition:d})}},[p,g,h,i,s,l,r,c,f,d])}var k1=0,D1=()=>`__${String(++k1)}__`;function j1(){let{router:r}=og("useSubmit"),{basename:l}=O.useContext(Ht),i=FS();return O.useCallback(async(s,c={})=>{let{action:f,method:d,encType:g,formData:p,body:h}=c1(s,l);if(c.navigate===!1){let y=c.fetcherKey||D1();await r.fetch(y,i,c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:h,formMethod:c.method||d,formEncType:c.encType||g,flushSync:c.flushSync})}else await r.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:h,formMethod:c.method||d,formEncType:c.encType||g,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,l,i])}function M1(r,{relative:l}={}){let{basename:i}=O.useContext(Ht),s=O.useContext(Bt);je(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...fi(r||".",{relative:l})},d=Hn();if(r==null){f.search=d.search;let g=new URLSearchParams(f.search),p=g.getAll("index");if(p.some(y=>y==="")){g.delete("index"),p.filter(S=>S).forEach(S=>g.append("index",S));let y=g.toString();f.search=y?`?${y}`:""}}return(!r||r===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:cn([i,f.pathname])),si(f)}function _1(r,l={}){let i=O.useContext(Ip);je(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=og("useViewTransitionState"),c=fi(r,{relative:l.relative});if(!i.isTransitioning)return!1;let f=fn(i.currentLocation.pathname,s)||i.currentLocation.pathname,d=fn(i.nextLocation.pathname,s)||i.nextLocation.pathname;return Gu(c.pathname,d)!=null||Gu(c.pathname,f)!=null}new TextEncoder;[...v1];function L1(r){return r.varName?` for '${r.varName}'`:""}function U1(r,l={}){if(r==null||r===""&&!l.allowEmpty)throw new Error(`Missing string value${L1(l)}`);return typeof r=="string"?r:r.toString()}const H1=`${`//${document.location.host}`}/api/plugin/site-generator`;let cg;const[To]=document.getElementsByClassName("js-script-site-generator");To&&To instanceof HTMLScriptElement&&(cg=U1(To.dataset.googleRecaptchaKey,{varName:"data-google-recaptcha-key"}));const Ro=cg;async function Un(r){try{const l=await fetch(H1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});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 B1={},Ap=r=>{let l;const i=new Set,s=(y,S)=>{const b=typeof y=="function"?y(l):y;if(!Object.is(b,l)){const A=l;l=S??(typeof b!="object"||b===null)?b:Object.assign({},l,b),i.forEach(R=>R(l,A))}},c=()=>l,p={setState:s,getState:c,getInitialState:()=>h,subscribe:y=>(i.add(y),()=>i.delete(y)),destroy:()=>{(B1?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},h=l=r(s,c,p);return p},q1=r=>r?Ap(r):Ap;var wo={exports:{}},No={},Ao={exports:{}},Oo={};/**
|
|
175
|
-
* @
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
* This source code is licensed under the MIT license found in the
|
|
181
|
-
* LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/var Op;function G1(){if(Op)return Oo;Op=1;var r=oi();function l(S,b){return S===b&&(S!==0||1/S===1/b)||S!==S&&b!==b}var i=typeof Object.is=="function"?Object.is:l,s=r.useState,c=r.useEffect,f=r.useLayoutEffect,d=r.useDebugValue;function g(S,b){var A=b(),R=s({inst:{value:A,getSnapshot:b}}),k=R[0].inst,M=R[1];return f(function(){k.value=A,k.getSnapshot=b,p(k)&&M({inst:k})},[S,A,b]),c(function(){return p(k)&&M({inst:k}),S(function(){p(k)&&M({inst:k})})},[S]),d(A),A}function p(S){var b=S.getSnapshot;S=S.value;try{var A=b();return!i(S,A)}catch{return!0}}function h(S,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:g;return Oo.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:y,Oo}var Cp;function $1(){return Cp||(Cp=1,Ao.exports=G1()),Ao.exports}/**
|
|
183
|
-
* @license React
|
|
184
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
185
|
-
*
|
|
186
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the MIT license found in the
|
|
189
|
-
* LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/var zp;function V1(){if(zp)return No;zp=1;var r=oi(),l=$1();function i(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var s=typeof Object.is=="function"?Object.is:i,c=l.useSyncExternalStore,f=r.useRef,d=r.useEffect,g=r.useMemo,p=r.useDebugValue;return No.useSyncExternalStoreWithSelector=function(h,y,S,b,A){var R=f(null);if(R.current===null){var k={hasValue:!1,value:null};R.current=k}else k=R.current;R=g(function(){function H(se){if(!G){if(G=!0,$=se,se=b(se),A!==void 0&&k.hasValue){var W=k.value;if(A(W,se))return F=W}return F=se}if(W=F,s($,se))return W;var K=b(se);return A!==void 0&&A(W,K)?W:($=se,F=K)}var G=!1,$,F,X=S===void 0?null:S;return[function(){return H(y())},X===null?void 0:function(){return H(X())}]},[y,S,b,A]);var M=c(h,R[0],R[1]);return d(function(){k.hasValue=!0,k.value=M},[M]),p(M),M},No}var kp;function Y1(){return kp||(kp=1,wo.exports=V1()),wo.exports}var Q1=Y1();const X1=Ho(Q1),fg={},{useDebugValue:Z1}=Qp,{useSyncExternalStoreWithSelector:K1}=X1;let Dp=!1;const J1=r=>r;function F1(r,l=J1,i){(fg?"production":void 0)!=="production"&&i&&!Dp&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Dp=!0);const s=K1(r.subscribe,r.getState,r.getServerState||r.getInitialState,l,i);return Z1(s),s}const jp=r=>{(fg?"production":void 0)!=="production"&&typeof r!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const l=typeof r=="function"?q1(r):r,i=(s,c)=>F1(l,s,c);return Object.assign(i,l),i},W1=r=>r?jp(r):jp,Xo="site-generator-session-token";function Mp(r){try{sessionStorage.setItem(Xo,r)}catch(l){console.error("Failed to save session token",l)}}function ri(){try{return sessionStorage.getItem(Xo)??void 0}catch(r){console.error("Failed to get session token",r)}}function P1(){try{sessionStorage.removeItem(Xo)}catch(r){console.error("Failed to remove session token",r)}}const I1=2e3,Ja=new Map;function ex(r){if(Ja.has(r))return;const l=window.setInterval(()=>{tx(r)},I1);Ja.set(r,l)}function ku(r){const l=Ja.get(r);l&&(window.clearInterval(l),Ja.delete(r))}function Zo(){Ja.forEach(r=>{window.clearInterval(r)}),Ja.clear()}async function tx(r){const l=ri();if(!l){ku(r);return}try{const i=await Un({command:"loadStep",sessionToken:l,stepNumber:r});if(i.success&&i.result){const s=i.result;nx(s),s.status!=="pending"&&ku(r)}else console.error("Error polling step:",i),ku(r)}catch(i){console.error("Error polling step:",i),ku(r)}}function nx(r){const{updateStep:l}=ua.getState();l(r)}function Co(r){Zo(),r.steps.forEach(l=>{l.status==="pending"&&ex(l.stepNumber)})}const ua=W1((r,l)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:i=>{r({workSession:i}),i&&Co(i)},updateStep:i=>{const{workSession:s}=l();if(!s)return;const c=s.steps.map(d=>d.stepNumber===i.stepNumber?i:d),f={...s,steps:c};r({workSession:f}),i.status==="pending"&&Co(f)},appendNewStep:i=>{const{workSession:s}=l();if(!s)return;const c={...s,steps:[...s.steps,i]};r({workSession:c}),i.status==="pending"&&Co(c)},setIsLoading:i=>r({isLoading:i}),setError:i=>r({error:i}),setActiveStepNumber:i=>r({activeStepNumber:i}),resetSession:()=>{Zo(),r({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}})),et=O.forwardRef((r,l)=>{const{label:i,severity:s="primary",loading:c,children:f,onClick:d,className:g="",disabled:p,...h}=r,[y,S]=O.useState(!1),b=y||c,A=["Button",s==="secondary"?"secondary":"",b?"loading":"",g].filter(Boolean).join(" "),R=async k=>{if(d)try{k.preventDefault(),S(!0),await d(k)}finally{S(!1)}};return E.jsxs("button",{ref:l,type:"button",className:A,onClick:R,disabled:p||b,...h,children:[!b&&f,!b&&i]})});et.displayName="Button";function Ju({size:r="medium"}){return E.jsx("div",{className:`Spinner Spinner-${r}`,"aria-label":"Loading"})}function Lu({activeStep:r}){const{t:l}=nt(),i=Pa(),{workSession:s}=ua(),c=()=>{i("/")},f=d=>{i(`/step/${d}`)};return!s||!s.steps||s.steps.length===0?E.jsx("div",{className:"Sidebar",children:E.jsx(et,{className:`Sidebar-button ${r===void 0?"active":""}`,onClick:c,children:l("startAgain")})}):E.jsxs("div",{className:"Sidebar",children:[E.jsx(et,{className:`Sidebar-button ${r===void 0?"active":""}`,onClick:c,children:l("startAgain")}),E.jsx("div",{className:"Sidebar-steps",children:s.steps.map(d=>E.jsxs("div",{className:"Sidebar-step",children:[E.jsx(et,{className:`Sidebar-button ${r===d.stepNumber?"active":""} ${d.status==="pending"?"has-spinner":""}`,onClick:()=>f(d.stepNumber),children:`${l("step")} ${d.stepNumber}: ${l(d.kind)}`}),d.status==="pending"&&E.jsx("div",{className:"Sidebar-spinner",children:E.jsx(Ju,{size:"small"})})]},d.stepNumber))})]})}function dg({initialValue:r="",placeholder:l,submitLabel:i,onSubmit:s,isLoading:c=!1,error:f}){const{t:d}=nt(),[g,p]=O.useState(r),h=S=>{p(S.target.value)},y=async()=>{g.trim()&&await s(g.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||d("createPromptPlaceholder"),value:g,onChange:h,rows:6,disabled:c}),E.jsx(et,{onClick:y,loading:c,disabled:!g.trim()||c,className:"PromptForm-button mt-3",children:i})]})}function Et({header:r,footer:l,children:i,className:s=""}){const c=["Card",s].filter(Boolean).join(" ");return E.jsxs("div",{className:c,children:[r&&E.jsx("div",{className:"Card-header",children:r}),E.jsx("div",{className:"Card-body",children:i}),l&&E.jsx("div",{className:"Card-footer",children:l})]})}function ax(){const{t:r}=nt(),l=Pa(),[i,s]=O.useState(!1),[c,f]=O.useState(void 0),{workSession:d,appendNewStep:g}=ua(),p=async h=>{if(!d)return;s(!0),f(void 0);const y=ri();if(!y){f(r("sessionExpired")),s(!1);return}try{const S=await Un({command:"createSiteSchema",sessionToken:y,prompt:h});if(S.success&&S.result){const b=S.result;g(b),l(`/step/${b.stepNumber}`)}else f(r("promptSubmissionFailed"))}catch(S){console.error("Error submitting prompt:",S),f(r("errorOccurred"))}finally{s(!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:r("welcomeTitle")}),E.jsx("div",{className:"Text mb-4",dangerouslySetInnerHTML:{__html:r("startInstruction")}}),d&&d.steps.length>0&&E.jsx("p",{className:"InfoText",children:r("newTabRestartMessage")}),E.jsx(dg,{submitLabel:r("createSchema"),onSubmit:p,isLoading:i,error:c})]})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Lu,{activeStep:void 0})})]})}function lx(r){return"siteId"in r}function Ko(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let sa=Ko();function hg(r){sa=r}const li={exec:()=>null};function Se(r,l=""){let i=typeof r=="string"?r:r.source;const s={replace:(c,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(it.caret,"$1"),i=i.replace(c,d),s},getRegex:()=>new RegExp(i,l)};return s}const 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:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},ix=/^(?:[ \t]*(?:\n|$))+/,ux=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,sx=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,di=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rx=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Jo=/(?:[*+-]|\d{1,9}[.)])/,pg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,gg=Se(pg).replace(/bull/g,Jo).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(),ox=Se(pg).replace(/bull/g,Jo).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(),Fo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,cx=/^[^\n]+/,Wo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,fx=Se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Wo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dx=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Jo).getRegex(),Fu="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",Po=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,hx=Se("^ {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",Po).replace("tag",Fu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mg=Se(Fo).replace("hr",di).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",Fu).getRegex(),px=Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mg).getRegex(),Io={blockquote:px,code:ux,def:fx,fences:sx,heading:rx,hr:di,html:hx,lheading:gg,list:dx,newline:ix,paragraph:mg,table:li,text:cx},_p=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",di).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",Fu).getRegex(),gx={...Io,lheading:ox,table:_p,paragraph:Se(Fo).replace("hr",di).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_p).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",Fu).getRegex()},mx={...Io,html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Po).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:li,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(Fo).replace("hr",di).replace("heading",` *#{1,6} *[^
|
|
191
|
-
]`).replace("lheading",gg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},yx=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,vx=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,yg=/^( {2,}|\\)\n(?!\s*$)/,bx=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Wu=/[\p{P}\p{S}]/u,ec=/[\s\p{P}\p{S}]/u,vg=/[^\s\p{P}\p{S}]/u,Sx=Se(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ec).getRegex(),bg=/(?!~)[\p{P}\p{S}]/u,xx=/(?!~)[\s\p{P}\p{S}]/u,Ex=/(?:[^\s\p{P}\p{S}]|~)/u,Tx=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Sg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Rx=Se(Sg,"u").replace(/punct/g,Wu).getRegex(),wx=Se(Sg,"u").replace(/punct/g,bg).getRegex(),xg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Nx=Se(xg,"gu").replace(/notPunctSpace/g,vg).replace(/punctSpace/g,ec).replace(/punct/g,Wu).getRegex(),Ax=Se(xg,"gu").replace(/notPunctSpace/g,Ex).replace(/punctSpace/g,xx).replace(/punct/g,bg).getRegex(),Ox=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,vg).replace(/punctSpace/g,ec).replace(/punct/g,Wu).getRegex(),Cx=Se(/\\(punct)/,"gu").replace(/punct/g,Wu).getRegex(),zx=Se(/^<(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(),kx=Se(Po).replace("(?:-->|$)","-->").getRegex(),Dx=Se("^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",kx).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),$u=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,jx=Se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",$u).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Eg=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",$u).replace("ref",Wo).getRegex(),Tg=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",Wo).getRegex(),Mx=Se("reflink|nolink(?!\\()","g").replace("reflink",Eg).replace("nolink",Tg).getRegex(),tc={_backpedal:li,anyPunctuation:Cx,autolink:zx,blockSkip:Tx,br:yg,code:vx,del:li,emStrongLDelim:Rx,emStrongRDelimAst:Nx,emStrongRDelimUnd:Ox,escape:yx,link:jx,nolink:Tg,punctuation:Sx,reflink:Eg,reflinkSearch:Mx,tag:Dx,text:bx,url:li},_x={...tc,link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",$u).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$u).getRegex()},Lo={...tc,emStrongRDelimAst:Ax,emStrongLDelim:wx,url:Se(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Lx={...Lo,br:Se(yg).replace("{2,}","*").getRegex(),text:Se(Lo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Du={normal:Io,gfm:gx,pedantic:mx},ti={normal:tc,gfm:Lo,breaks:Lx,pedantic:_x},Ux={"&":"&","<":"<",">":">",'"':""","'":"'"},Lp=r=>Ux[r];function Xt(r,l){if(l){if(it.escapeTest.test(r))return r.replace(it.escapeReplace,Lp)}else if(it.escapeTestNoEncode.test(r))return r.replace(it.escapeReplaceNoEncode,Lp);return r}function Up(r){try{r=encodeURI(r).replace(it.percentDecode,"%")}catch{return null}return r}function Hp(r,l){var f;const i=r.replace(it.findPipe,(d,g,p)=>{let h=!1,y=g;for(;--y>=0&&p[y]==="\\";)h=!h;return h?"|":" |"}),s=i.split(it.splitPipe);let c=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),l)if(s.length>l)s.splice(l);else for(;s.length<l;)s.push("");for(;c<s.length;c++)s[c]=s[c].trim().replace(it.slashPipe,"|");return s}function ni(r,l,i){const s=r.length;if(s===0)return"";let c=0;for(;c<s&&r.charAt(s-c-1)===l;)c++;return r.slice(0,s-c)}function Hx(r,l){if(r.indexOf(l[1])===-1)return-1;let i=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===l[0])i++;else if(r[s]===l[1]&&(i--,i<0))return s;return-1}function Bp(r,l,i,s,c){const f=l.href,d=l.title||null,g=r[1].replace(c.other.outputLinkReplace,"$1");if(r[0].charAt(0)!=="!"){s.state.inLink=!0;const p={type:"link",raw:i,href:f,title:d,text:g,tokens:s.inlineTokens(g)};return s.state.inLink=!1,p}return{type:"image",raw:i,href:f,title:d,text:g}}function Bx(r,l,i){const s=r.match(i.other.indentCodeCompensation);if(s===null)return l;const c=s[1];return l.split(`
|
|
192
|
-
`).map(f=>{const d=f.match(i.other.beginningSpace);if(d===null)return f;const[g]=d;return g.length>=c.length?f.slice(c.length):f}).join(`
|
|
193
|
-
`)}class Vu{constructor(l){Oe(this,"options");Oe(this,"rules");Oe(this,"lexer");this.options=l||sa}space(l){const i=this.rules.block.newline.exec(l);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(l){const i=this.rules.block.code.exec(l);if(i){const s=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?s:ni(s,`
|
|
194
|
-
`)}}}fences(l){const i=this.rules.block.fences.exec(l);if(i){const s=i[0],c=Bx(s,i[3]||"",this.rules);return{type:"code",raw:s,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:c}}}heading(l){const i=this.rules.block.heading.exec(l);if(i){let s=i[2].trim();if(this.rules.other.endingHash.test(s)){const c=ni(s,"#");(this.options.pedantic||!c||this.rules.other.endingSpaceChar.test(c))&&(s=c.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(l){const i=this.rules.block.hr.exec(l);if(i)return{type:"hr",raw:ni(i[0],`
|
|
195
|
-
`)}}blockquote(l){const i=this.rules.block.blockquote.exec(l);if(i){let s=ni(i[0],`
|
|
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={"&":"&","<":"<",">":">",'"':""","'":"'"},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],`
|
|
196
180
|
`).split(`
|
|
197
|
-
`),
|
|
198
|
-
`),
|
|
199
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
200
|
-
${
|
|
201
|
-
${
|
|
202
|
-
`+
|
|
203
|
-
`),
|
|
204
|
-
`+
|
|
205
|
-
`),
|
|
206
|
-
`);continue}}return{type:"blockquote",raw:
|
|
207
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,
|
|
208
|
-
`,1)[0],
|
|
209
|
-
`,
|
|
210
|
-
`,1)[0];let
|
|
211
|
-
`+
|
|
212
|
-
`+
|
|
213
|
-
`,
|
|
214
|
-
`):[],
|
|
215
|
-
`?
|
|
216
|
-
`),this.blockTokens(l,this.tokens);for(let
|
|
217
|
-
`:
|
|
218
|
-
`+
|
|
219
|
-
`+
|
|
220
|
-
`+
|
|
221
|
-
`+
|
|
222
|
-
`+
|
|
223
|
-
`+
|
|
224
|
-
`+
|
|
225
|
-
`+
|
|
226
|
-
`;return
|
|
227
|
-
`:"<pre><code>"+(
|
|
228
|
-
`}blockquote({tokens:
|
|
229
|
-
${this.parser.parse(
|
|
230
|
-
`}html({text:
|
|
231
|
-
`}hr(
|
|
232
|
-
`}list(
|
|
233
|
-
`+
|
|
234
|
-
`}listitem(
|
|
235
|
-
`}checkbox({checked:
|
|
236
|
-
`}table(
|
|
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,`
|
|
183
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
184
|
+
${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(`
|
|
191
|
+
`,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+`
|
|
193
|
+
`,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+=`
|
|
196
|
+
`+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+=`
|
|
202
|
+
`+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+=`
|
|
204
|
+
`+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+=`
|
|
206
|
+
`+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+=`
|
|
208
|
+
`+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>
|
|
212
|
+
`}blockquote({tokens:i}){return`<blockquote>
|
|
213
|
+
${this.parser.parse(i)}</blockquote>
|
|
214
|
+
`}html({text:i}){return i}heading({tokens:i,depth:l}){return`<h${l}>${this.parser.parseInline(i)}</h${l}>
|
|
215
|
+
`}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+`>
|
|
217
|
+
`+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>
|
|
219
|
+
`}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>
|
|
237
221
|
<thead>
|
|
238
|
-
`+
|
|
239
|
-
`+
|
|
240
|
-
`}tablerow({text:
|
|
241
|
-
${
|
|
242
|
-
`}tablecell(
|
|
243
|
-
`}strong({tokens:
|
|
244
|
-
`+this.renderer.text(
|
|
245
|
-
Please report this to https://github.com/markedjs/marked.`,l){const c="<p>An error occurred:</p><pre>"+Xt(s.message+"",!0)+"</pre>";return i?Promise.resolve(c):c}if(i)return Promise.reject(s);throw s}}}const la=new qx;function Te(r,l){return la.parse(r,l)}Te.options=Te.setOptions=function(r){return la.setOptions(r),Te.defaults=la.defaults,hg(Te.defaults),Te};Te.getDefaults=Ko;Te.defaults=sa;Te.use=function(...r){return la.use(...r),Te.defaults=la.defaults,hg(Te.defaults),Te};Te.walkTokens=function(r,l){return la.walkTokens(r,l)};Te.parseInline=la.parseInline;Te.Parser=jt;Te.parser=jt.parse;Te.Renderer=Yu;Te.TextRenderer=nc;Te.Lexer=Dt;Te.lexer=Dt.lex;Te.Tokenizer=Vu;Te.Hooks=ii;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;jt.parse;Dt.lex;function Gx(r){if(!r)return"";try{return Te.parse(r,{async:!1,gfm:!0,breaks:!0})}catch(l){return console.error("Error rendering markdown:",l),r}}function hi({content:r,title:l,variant:i="default",className:s="",children:c}){const f=["Explanation",`Explanation-${i}`,s].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:Gx(r)}}),c]})}function $x({isOpen:r,title:l,message:i,confirmLabel:s,cancelLabel:c,onConfirm:f,onCancel:d}){const{t:g}=nt(),[p,h]=O.useState(!0);if(!r)return null;const y=async()=>{await f({withSampleData:p})},S=b=>{b.key==="Escape"&&d()};return E.jsxs("div",{className:"ConfirmDialog",children:[E.jsx("div",{className:"ConfirmDialog-backdrop",onClick:d,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:i}),E.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:p,onChange:b=>h(b.target.checked)}),E.jsx("span",{className:"ml-2",children:g("generateSiteWithData")})]})})]}),E.jsxs("div",{className:"ConfirmDialog-footer",children:[E.jsx(et,{onClick:d,severity:"secondary",className:"ConfirmDialog-button",children:c||g("cancel")}),E.jsx(et,{onClick:y,className:"ConfirmDialog-button",children:s||g("confirm")})]})]})]})}const Vx=r=>typeof r=="boolean"||r instanceof Boolean,Yx=r=>typeof r=="number"||r instanceof Number,Qx=r=>typeof r=="bigint"||r instanceof BigInt,Rg=r=>!!r&&r instanceof Date,Xx=r=>typeof r=="string"||r instanceof String,Zx=r=>Array.isArray(r),Kx=r=>typeof r=="object"&&r!==null,wg=r=>!!r&&r instanceof Object&&typeof r=="function";function Qu(r,l){return l===void 0&&(l=!1),!r||l?`"${r}"`:r}function Jx(r,l,i){return i?JSON.stringify(r):l?`"${r}"`:r}function Ng(r){let{field:l,value:i,data:s,lastElement:c,openBracket:f,closeBracket:d,level:g,style:p,shouldExpandNode:h,clickToExpandNode:y,outerRef:S,beforeExpandChange:b}=r;const A=O.useRef(!1),[R,k]=O.useState(()=>h(g,i,l)),M=O.useRef(null);O.useEffect(()=>{A.current?k(h(g,i,l)):A.current=!0},[h]);const H=O.useId();if(s.length===0)return Fx({field:l,openBracket:f,closeBracket:d,lastElement:c,style:p});const G=R?p.collapseIcon:p.expandIcon,$=R?p.ariaLables.collapseJson:p.ariaLables.expandJson,F=g+1,X=s.length-1,se=J=>{R!==J&&(!b||b({level:g,value:i,field:l,newExpandValue:J}))&&k(J)},W=J=>{if(J.key==="ArrowRight"||J.key==="ArrowLeft")J.preventDefault(),se(J.key==="ArrowRight");else if(J.key==="ArrowUp"||J.key==="ArrowDown"){J.preventDefault();const re=J.key==="ArrowUp"?-1:1;if(!S.current)return;const le=S.current.querySelectorAll("[role=button]");let me=-1;for(let Me=0;Me<le.length;Me++)if(le[Me].tabIndex===0){me=Me;break}if(me<0)return;const ft=(me+re+le.length)%le.length;le[me].tabIndex=-1,le[ft].tabIndex=0,le[ft].focus()}},K=()=>{var J;se(!R);const re=M.current;if(!re)return;const le=(J=S.current)===null||J===void 0?void 0:J.querySelector('[role=button][tabindex="0"]');le&&(le.tabIndex=-1),re.tabIndex=0,re.focus()};return O.createElement("div",{className:p.basicChildStyle,role:"treeitem","aria-expanded":R,"aria-selected":void 0},O.createElement("span",{className:G,onClick:K,onKeyDown:W,role:"button","aria-label":$,"aria-expanded":R,"aria-controls":R?H:void 0,ref:M,tabIndex:g===0?0:-1}),(l||l==="")&&(y?O.createElement("span",{className:p.clickableLabel,onClick:K,onKeyDown:W},Qu(l,p.quotesForFieldNames),":"):O.createElement("span",{className:p.label},Qu(l,p.quotesForFieldNames),":")),O.createElement("span",{className:p.punctuation},f),R?O.createElement("ul",{id:H,role:"group",className:p.childFieldsContainer},s.map((J,re)=>O.createElement(Ag,{key:J[0]||re,field:J[0],value:J[1],style:p,lastElement:re===X,level:F,shouldExpandNode:h,clickToExpandNode:y,outerRef:S}))):O.createElement("span",{className:p.collapsedContent,onClick:K,onKeyDown:W}),O.createElement("span",{className:p.punctuation},d),!c&&O.createElement("span",{className:p.punctuation},","))}function Fx(r){let{field:l,openBracket:i,closeBracket:s,lastElement:c,style:f}=r;return O.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&O.createElement("span",{className:f.label},Qu(l,f.quotesForFieldNames),":"),O.createElement("span",{className:f.punctuation},i),O.createElement("span",{className:f.punctuation},s),!c&&O.createElement("span",{className:f.punctuation},","))}function Wx(r){let{field:l,value:i,style:s,lastElement:c,shouldExpandNode:f,clickToExpandNode:d,level:g,outerRef:p,beforeExpandChange:h}=r;return Ng({field:l,value:i,lastElement:c||!1,level:g,openBracket:"{",closeBracket:"}",style:s,shouldExpandNode:f,clickToExpandNode:d,data:Object.keys(i).map(y=>[y,i[y]]),outerRef:p,beforeExpandChange:h})}function Px(r){let{field:l,value:i,style:s,lastElement:c,level:f,shouldExpandNode:d,clickToExpandNode:g,outerRef:p,beforeExpandChange:h}=r;return Ng({field:l,value:i,lastElement:c||!1,level:f,openBracket:"[",closeBracket:"]",style:s,shouldExpandNode:d,clickToExpandNode:g,data:i.map(y=>[void 0,y]),outerRef:p,beforeExpandChange:h})}function Ix(r){let{field:l,value:i,style:s,lastElement:c}=r,f,d=s.otherValue;return i===null?(f="null",d=s.nullValue):i===void 0?(f="undefined",d=s.undefinedValue):Xx(i)?(f=Jx(i,!s.noQuotesForStringValues,s.stringifyStringValues),d=s.stringValue):Vx(i)?(f=i?"true":"false",d=s.booleanValue):Yx(i)?(f=i.toString(),d=s.numberValue):Qx(i)?(f=`${i.toString()}n`,d=s.numberValue):Rg(i)?f=i.toISOString():wg(i)?f="function() { }":f=i.toString(),O.createElement("div",{className:s.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&O.createElement("span",{className:s.label},Qu(l,s.quotesForFieldNames),":"),O.createElement("span",{className:d},f),!c&&O.createElement("span",{className:s.punctuation},","))}function Ag(r){const l=r.value;return Zx(l)?O.createElement(Px,Object.assign({},r)):Kx(l)&&!Rg(l)&&!wg(l)?O.createElement(Wx,Object.assign({},r)):O.createElement(Ix,Object.assign({},r))}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 eE={collapseJson:"collapse JSON",expandJson:"expand JSON"},qp={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:eE,stringifyStringValues:!1},tE=()=>!0,Gp=r=>{let{data:l,style:i=qp,shouldExpandNode:s=tE,clickToExpandNode:c=!1,beforeExpandChange:f,...d}=r;const g=O.useRef(null);return O.createElement("div",Object.assign({"aria-label":"JSON view"},d,{className:i.container,ref:g,role:"tree"}),O.createElement(Ag,{value:l,style:{...qp,...i},lastElement:!0,level:0,shouldExpandNode:s,clickToExpandNode:c,outerRef:g,beforeExpandChange:f}))};function nE(r){const l=Object.keys(r),i=l.length>0?l[0]:void 0;return(s,c,f={})=>{if(!i)return f.default??s;const d=r[c]??r[i],g=s.split(".");let p=d;for(const h of g){if(typeof p=="string"||!p||!(h in p))return f.default??s;p=p[h]}return typeof p=="string"?p:f.default??s}}function aE({siteSchema:r,schemaTranslate:l}){const i=new Set;return E.jsx("ul",{children:E.jsx(Uo,{schema:r,schemaT:l,typeName:"home",displayedNodeTypeNames:i})})}function Uo({schema:r,schemaT:l,typeName:i,depth:s=0,displayedNodeTypeNames:c}){const{i18n:f}=nt(),d=lE(r,i);if(!d)return null;const g=d.routingChildren||[],p=d.regularChildren||[],h=d.lists||[],y=d.documentKind==="routing",S=l(`nodeTypes.${i}.label`,f.language,{default:i});return c.has(i)?E.jsx("li",{children:E.jsxs("div",{children:[y?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:i}),")"]})}):(c.add(i),E.jsxs("li",{children:[E.jsxs("div",{children:[y?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:i}),")"]}),h.map(b=>E.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[l(`nodeTypes.${i}.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)),g.length>0&&E.jsx("ul",{children:g.map(b=>E.jsx(Uo,{schema:r,schemaT:l,typeName:b,depth:s+1,displayedNodeTypeNames:c},b))}),p.length>0&&E.jsx("ul",{children:p.map(b=>E.jsx(Uo,{schema:r,schemaT:l,typeName:b,depth:s+1,displayedNodeTypeNames:c},b))})]}))}function lE(r,l){var i;return(i=r.nodeTypes)==null?void 0:i.find(s=>s.kind==="document"&&s.typeName===l)}function iE({step:r}){const{t:l}=nt(),[i,s]=O.useState("tree"),{siteSchema:c,l10n:f}=r,d=nE(f),g=p=>p===0;return E.jsxs("div",{className:"SchemaViewer",children:[E.jsxs("div",{className:"SchemaViewer-tabs",children:[E.jsx(et,{className:`SchemaViewer-tab ${i==="tree"?"active":""}`,onClick:()=>s("tree"),children:l("treeView")}),E.jsx(et,{className:`SchemaViewer-tab ${i==="schema"?"active":""}`,onClick:()=>s("schema"),children:l("siteSchema")}),E.jsx(et,{className:`SchemaViewer-tab ${i==="locales"?"active":""}`,onClick:()=>s("locales"),children:l("labels")})]}),E.jsxs("div",{className:"SchemaViewer-main",children:[E.jsx("div",{className:"SchemaViewer-content",style:{display:i==="tree"?"block":"none"},children:E.jsx(aE,{siteSchema:c,schemaTranslate:d})}),E.jsx("div",{className:"SchemaViewer-content",style:{display:i==="locales"?"block":"none"},children:E.jsx(Gp,{data:f,shouldExpandNode:g})}),E.jsx("div",{className:"SchemaViewer-content",style:{display:i==="schema"?"block":"none"},children:E.jsx(Gp,{data:c,shouldExpandNode:g})})]})]})}function uE({step:r}){const{t:l}=nt(),{workSession:i,appendNewStep:s}=ua(),[c,f]=O.useState(!1),[d,g]=O.useState(!1),[p,h]=O.useState(!1),[y,S]=O.useState(void 0),b=Pa(),A=()=>{f(!c)},R=async M=>{if(!i)return;h(!0),S(void 0);const H=ri();if(!H){S(l("sessionExpired")),h(!1);return}try{const G=await Un({command:"updateSiteSchema",sessionToken:H,prompt:M,fromStepNumber:r.stepNumber});G.success&&G.result?(f(!1),s(G.result),b(`/step/${G.result.stepNumber}`)):S(l("promptSubmissionFailed"))}catch(G){console.error("Error updating schema:",G),S(l("errorOccurred"))}finally{h(!1)}},k=async({withSampleData:M})=>{if(!i)return;h(!0),S(void 0),g(!1);const H=ri();if(!H){S(l("sessionExpired")),h(!1);return}try{const G=await Un({command:"generateSite",sessionToken:H,fromStepNumber:r.stepNumber,withSampleData:M});G.success&&G.result?(s(G.result),b(`/step/${G.result.stepNumber}`)):S(l("generationFailed"))}catch(G){console.error("Error generating site:",G),S(l("errorOccurred"))}finally{h(!1)}};return E.jsx(Et,{children:E.jsxs("div",{className:"CompletedStep",children:[E.jsx(iE,{step:r}),r.explanation&&E.jsx(hi,{content:r.explanation,title:l("explanation")}),E.jsxs("div",{className:"CompletedStep-actions",children:[E.jsx(et,{onClick:A,className:"CompletedStep-button",children:l("modifySchema")}),E.jsx(et,{onClick:()=>g(!0),className:"CompletedStep-button",children:l("generateTheWebsite")})]}),c&&E.jsxs("div",{className:"CompletedStep-updateForm",children:[E.jsx("h3",{children:l("updateSchema")}),E.jsx(dg,{placeholder:l("updatePromptPlaceholder"),submitLabel:l("modifySchema"),onSubmit:R,isLoading:p,error:y})]}),E.jsx($x,{isOpen:d,title:l("generateTheWebsite"),message:l("aboutToGenerateWebsite"),confirmLabel:l("confirm"),onConfirm:k,onCancel:()=>g(!1)}),y&&!c&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:y})})]})})}function sE({step:r}){const{t:l}=nt();return E.jsx(Et,{children:E.jsxs("div",{className:"ErrorStep",children:[E.jsx("p",{className:"ErrorStep-message",children:l("stepFailed")}),r.explanation&&E.jsx(hi,{content:r.explanation,variant:"error"})]})})}function rE({step:r}){const{t:l}=nt(),i=()=>{const s=`
|
|
222
|
+
`+l+`</thead>
|
|
223
|
+
`+r+`</table>
|
|
224
|
+
`}tablerow({text:i}){return`<tr>
|
|
225
|
+
${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=`
|
|
246
230
|
${l("siteGenerated")}
|
|
247
|
-
${l("loginEmail")}: ${
|
|
248
|
-
${l("loginPassword")}: ${
|
|
249
|
-
${l("siteUrl")}: ${
|
|
250
|
-
${l("adminUrl")}: ${
|
|
251
|
-
`.trim();navigator.clipboard.writeText(
|
|
231
|
+
${l("loginEmail")}: ${i.loginEmail}
|
|
232
|
+
${l("loginPassword")}: ${i.loginPassword}
|
|
233
|
+
${l("siteUrl")}: ${i.siteUrl}
|
|
234
|
+
${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));
|