@trycourier/courier-react 8.0.1-beta → 8.0.3-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,1162 @@
1
+ (function(Zu,pt){typeof exports=="object"&&typeof module<"u"?pt(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],pt):(Zu=typeof globalThis<"u"?globalThis:Zu||self,pt(Zu.CourierReact={},Zu.React,Zu.ReactDOM))})(this,function(Zu,pt,Xg){"use strict";var KS=Object.defineProperty,IS=(b,f,p)=>f in b?KS(b,f,{enumerable:!0,configurable:!0,writable:!0,value:p}):b[f]=p,K=(b,f,p)=>IS(b,typeof f!="symbol"?f+"":f,p),WS=Object.defineProperty,FS=(b,f,p)=>f in b?WS(b,f,{enumerable:!0,configurable:!0,writable:!0,value:p}):b[f]=p,Ht=(b,f,p)=>FS(b,typeof f!="symbol"?f+"":f,p);const mb=class $S{constructor(f,p){Ht(this,"webSocket",null),Ht(this,"pingInterval",null),Ht(this,"onOpen"),Ht(this,"onMessageReceived"),Ht(this,"onClose"),Ht(this,"onError"),Ht(this,"url"),Ht(this,"options"),this.url=f,this.options=p}get isConnected(){return this.webSocket!==null}async connect(){return this.disconnect(),new Promise((f,p)=>{try{this.webSocket=new WebSocket(this.url),this.webSocket.onopen=()=>{var m;(m=this.onOpen)==null||m.call(this),f()},this.webSocket.onmessage=m=>{var T;(T=this.onMessageReceived)==null||T.call(this,m.data)},this.webSocket.onclose=m=>{var T;this.webSocket=null,(T=this.onClose)==null||T.call(this,m.code,m.reason)},this.webSocket.onerror=m=>{var T;this.webSocket=null;const C=new Error("Courier Socket connection failed");C.originalEvent=m,(T=this.onError)==null||T.call(this,C),p(C)}}catch(m){this.webSocket=null,p(m)}})}disconnect(){this.stopPing(),this.webSocket&&(this.webSocket.close($S.NORMAL_CLOSURE_STATUS),this.webSocket=null)}async send(f){if(!this.webSocket)return!1;const p=JSON.stringify(f);return this.webSocket.send(p)!==void 0}keepAlive(f){this.stopPing(),this.pingInterval=setInterval(async()=>{var p;try{await this.send({action:"keepAlive"})}catch(m){(p=this.options.logger)==null||p.error("Error occurred on Keep Alive:",m)}},(f==null?void 0:f.intervalInMillis)??3e5)}stopPing(){this.pingInterval&&(clearInterval(this.pingInterval),this.pingInterval=null)}};Ht(mb,"NORMAL_CLOSURE_STATUS",1e3);let PS=mb;const pb=b=>({courier:{rest:(b==null?void 0:b.courier.rest)||"https://api.courier.com",graphql:(b==null?void 0:b.courier.graphql)||"https://api.courier.com/client/q"},inbox:{graphql:(b==null?void 0:b.inbox.graphql)||"https://inbox.courier.com/q",webSocket:(b==null?void 0:b.inbox.webSocket)||"wss://realtime.courier.com"}});class e2{constructor(f){Ht(this,"PREFIX","[COURIER]"),this.showLogs=f}warn(f,...p){this.showLogs&&console.warn(`${this.PREFIX} ${f}`,...p)}log(f,...p){this.showLogs&&console.log(`${this.PREFIX} ${f}`,...p)}error(f,...p){this.showLogs&&console.error(`${this.PREFIX} ${f}`,...p)}debug(f,...p){this.showLogs&&console.debug(`${this.PREFIX} ${f}`,...p)}info(f,...p){this.showLogs&&console.info(`${this.PREFIX} ${f}`,...p)}}class rv{static generate(f){const p=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);return f?f+p:p}}class fv extends Error{constructor(f,p,m){super(p),this.code=f,this.type=m,this.name="CourierRequestError"}}function vb(b,f,p,m){b.log(`
2
+ 📡 New Courier ${p} Request: ${f}
3
+ URL: ${m.url}
4
+ ${m.method?`Method: ${m.method}`:""}
5
+ ${m.query?`Query: ${m.query}`:""}
6
+ ${m.variables?`Variables: ${JSON.stringify(m.variables,null,2)}`:""}
7
+ Headers: ${JSON.stringify(m.headers,null,2)}
8
+ Body: ${m.body?JSON.stringify(m.body,null,2):"Empty"}
9
+ `)}function gb(b,f,p,m){b.log(`
10
+ 📡 New Courier ${p} Response: ${f}
11
+ Status Code: ${m.status}
12
+ Response JSON: ${JSON.stringify(m.response,null,2)}
13
+ `)}async function Qo(b){const f=b.validCodes??[200],p=b.options.showLogs?rv.generate():void 0,m=new Request(b.url,{method:b.method,headers:{"Content-Type":"application/json",...b.headers},body:b.body?JSON.stringify(b.body):void 0});p&&vb(b.options.logger,p,"HTTP",{url:m.url,method:m.method,headers:Object.fromEntries(m.headers.entries()),body:b.body});const T=await fetch(m);if(T.status===204)return;let C;try{C=await T.json()}catch{if(T.status===200)return;throw new fv(T.status,"Failed to parse response as JSON","PARSE_ERROR")}if(p&&gb(b.options.logger,p,"HTTP",{status:T.status,response:C}),!f.includes(T.status))throw new fv(T.status,(C==null?void 0:C.message)||"Unknown Error",C==null?void 0:C.type);return C}async function au(b){const f=b.options.showLogs?rv.generate():void 0;f&&vb(b.options.logger,f,"GraphQL",{url:b.url,headers:b.headers,query:b.query,variables:b.variables});const p=await fetch(b.url,{method:"POST",headers:{"Content-Type":"application/json",...b.headers},body:JSON.stringify({query:b.query,variables:b.variables})});let m;try{m=await p.json()}catch{throw new fv(p.status,"Failed to parse response as JSON","PARSE_ERROR")}if(f&&gb(b.options.logger,f,"GraphQL",{status:p.status,response:m}),!p.ok)throw new fv(p.status,(m==null?void 0:m.message)||"Unknown Error",m==null?void 0:m.type);return m}class Yr{constructor(f){this.options=f}}class t2 extends Yr{async getBrand(f){const p=`
14
+ query GetBrand {
15
+ brand(brandId: "${f.brandId}") {
16
+ settings {
17
+ colors {
18
+ primary
19
+ secondary
20
+ tertiary
21
+ }
22
+ inapp {
23
+ borderRadius
24
+ disableCourierFooter
25
+ }
26
+ }
27
+ }
28
+ }
29
+ `;return(await au({options:this.options,url:this.options.apiUrls.courier.graphql,headers:{"x-courier-user-id":this.options.userId,"x-courier-client-key":"empty",Authorization:`Bearer ${this.options.accessToken}`},query:p,variables:{brandId:f.brandId}})).data.brand}}class Qg extends PS{constructor(f){const p=Qg.buildUrl(f);super(p,f),Ht(this,"receivedMessage"),Ht(this,"receivedMessageEvent"),this.onMessageReceived=m=>this.convertToType(m)}convertToType(f){var p,m,T,C;try{switch(JSON.parse(f).type){case"event":const w=JSON.parse(f);(p=this.receivedMessageEvent)==null||p.call(this,w);break;case"message":const j=JSON.parse(f);(m=this.receivedMessage)==null||m.call(this,j);break}}catch(w){(T=this.options.logger)==null||T.error("Error parsing socket message",w),w instanceof Error&&((C=this.onError)==null||C.call(this,w))}}async sendSubscribe(f){var p;const m={action:"subscribe",data:{userAgent:"courier-js",channel:this.options.userId,event:"*",version:(f==null?void 0:f.version)??5}};this.options.connectionId&&(m.data.clientSourceId=this.options.connectionId),this.options.tenantId&&(m.data.accountId=this.options.tenantId),(p=this.options.logger)==null||p.debug("Sending subscribe request",m),await this.send(m)}static buildUrl(f){var p;let m=((p=f.apiUrls)==null?void 0:p.inbox.webSocket)??"";return f.accessToken&&(m+=`/?auth=${f.accessToken}`),m}}class n2 extends Yr{constructor(f){super(f),Ht(this,"socket"),this.socket=new Qg(f)}async getMessages(f){const p=`
30
+ query GetInboxMessages(
31
+ $params: FilterParamsInput = { ${this.options.tenantId?`accountId: "${this.options.tenantId}"`:""} }
32
+ $limit: Int = ${(f==null?void 0:f.paginationLimit)??24}
33
+ $after: String ${f!=null&&f.startCursor?`= "${f.startCursor}"`:""}
34
+ ) {
35
+ count(params: $params)
36
+ messages(params: $params, limit: $limit, after: $after) {
37
+ totalCount
38
+ pageInfo {
39
+ startCursor
40
+ hasNextPage
41
+ }
42
+ nodes {
43
+ messageId
44
+ read
45
+ archived
46
+ created
47
+ opened
48
+ title
49
+ preview
50
+ data
51
+ tags
52
+ trackingIds {
53
+ clickTrackingId
54
+ }
55
+ actions {
56
+ content
57
+ data
58
+ href
59
+ }
60
+ }
61
+ }
62
+ }
63
+ `;return await au({options:this.options,query:p,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})}async getArchivedMessages(f){const p=`
64
+ query GetInboxMessages(
65
+ $params: FilterParamsInput = { ${this.options.tenantId?`accountId: "${this.options.tenantId}"`:""}, archived: true }
66
+ $limit: Int = ${(f==null?void 0:f.paginationLimit)??24}
67
+ $after: String ${f!=null&&f.startCursor?`= "${f.startCursor}"`:""}
68
+ ) {
69
+ count(params: $params)
70
+ messages(params: $params, limit: $limit, after: $after) {
71
+ totalCount
72
+ pageInfo {
73
+ startCursor
74
+ hasNextPage
75
+ }
76
+ nodes {
77
+ messageId
78
+ read
79
+ archived
80
+ created
81
+ opened
82
+ title
83
+ preview
84
+ data
85
+ tags
86
+ trackingIds {
87
+ clickTrackingId
88
+ }
89
+ actions {
90
+ content
91
+ data
92
+ href
93
+ }
94
+ }
95
+ }
96
+ }
97
+ `;return au({options:this.options,query:p,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})}async getUnreadMessageCount(){var f;const p=`
98
+ query GetMessages {
99
+ count(params: { status: "unread" ${this.options.tenantId?`, accountId: "${this.options.tenantId}"`:""} })
100
+ }
101
+ `;return((f=(await au({options:this.options,query:p,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})).data)==null?void 0:f.count)??0}async click(f){const p=`
102
+ mutation TrackEvent {
103
+ clicked(messageId: "${f.messageId}", trackingId: "${f.trackingId}")
104
+ }
105
+ `,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await au({options:this.options,query:p,headers:m,url:this.options.apiUrls.inbox.graphql})}async read(f){const p=`
106
+ mutation TrackEvent {
107
+ read(messageId: "${f.messageId}")
108
+ }
109
+ `,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await au({options:this.options,query:p,headers:m,url:this.options.apiUrls.inbox.graphql})}async unread(f){const p=`
110
+ mutation TrackEvent {
111
+ unread(messageId: "${f.messageId}")
112
+ }
113
+ `,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await au({options:this.options,query:p,headers:m,url:this.options.apiUrls.inbox.graphql})}async readAll(){const f=`
114
+ mutation TrackEvent {
115
+ markAllRead
116
+ }
117
+ `,p={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(p["x-courier-client-source-id"]=this.options.connectionId),await au({options:this.options,query:f,headers:p,url:this.options.apiUrls.inbox.graphql})}async open(f){const p=`
118
+ mutation TrackEvent {
119
+ opened(messageId: "${f.messageId}")
120
+ }
121
+ `,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await au({options:this.options,query:p,headers:m,url:this.options.apiUrls.inbox.graphql})}async archive(f){const p=`
122
+ mutation TrackEvent {
123
+ archive(messageId: "${f.messageId}")
124
+ }
125
+ `,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await au({options:this.options,query:p,headers:m,url:this.options.apiUrls.inbox.graphql})}async archiveRead(){const f=`
126
+ mutation TrackEvent {
127
+ archiveRead
128
+ }
129
+ `,p={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(p["x-courier-client-source-id"]=this.options.connectionId),await au({options:this.options,query:f,headers:p,url:this.options.apiUrls.inbox.graphql})}}class l2{transformItem(f){return{topicId:f.topic_id,topicName:f.topic_name,sectionId:f.section_id,sectionName:f.section_name,status:f.status,defaultStatus:f.default_status,hasCustomRouting:f.has_custom_routing,customRouting:f.custom_routing||[]}}*transform(f){for(const p of f)yield this.transformItem(p)}}function a2(b){const f=atob(b),p=new Uint8Array(f.length);for(let m=0;m<f.length;m++)p[m]=f.charCodeAt(m);return String.fromCharCode(...p)}function i2(b){const f=new Uint8Array(b.length);for(let p=0;p<b.length;p++)f[p]=b.charCodeAt(p);return btoa(String.fromCharCode(...f))}class u2 extends Yr{constructor(){super(...arguments),Ht(this,"transformer",new l2)}async getUserPreferences(f){let p=`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences`;f!=null&&f.paginationCursor&&(p+=`?cursor=${f.paginationCursor}`);const m=await Qo({options:this.options,url:p,method:"GET",headers:{Authorization:`Bearer ${this.options.accessToken}`}});return{items:[...this.transformer.transform(m.items)],paging:m.paging}}async getUserPreferenceTopic(f){const p=await Qo({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences/${f.topicId}`,method:"GET",headers:{Authorization:`Bearer ${this.options.accessToken}`}});return this.transformer.transformItem(p.topic)}async putUserPreferenceTopic(f){const p={topic:{status:f.status,has_custom_routing:f.hasCustomRouting,custom_routing:f.customRouting}};await Qo({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences/${f.topicId}`,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:p})}getNotificationCenterUrl(f){const p=a2(f.clientKey);return`https://view.notificationcenter.app/p/${i2(`${p}#${this.options.userId}${this.options.tenantId?`#${this.options.tenantId}`:""}#false`)}`}}class o2 extends Yr{async putUserToken(f){const p={provider_key:f.provider,...f.device&&{device:{app_id:f.device.appId,ad_id:f.device.adId,device_id:f.device.deviceId,platform:f.device.platform,manufacturer:f.device.manufacturer,model:f.device.model}}};await Qo({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/tokens/${f.token}`,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:p,validCodes:[200,204]})}async deleteUserToken(f){await Qo({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/tokens/${f.token}`,method:"DELETE",headers:{Authorization:`Bearer ${this.options.accessToken}`},validCodes:[200,204]})}}class s2 extends Yr{async putSubscription(f){return await Qo({url:`${this.options.apiUrls.courier.rest}/lists/${f.listId}/subscriptions/${this.options.userId}`,options:this.options,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`}})}async deleteSubscription(f){return await Qo({url:`${this.options.apiUrls.courier.rest}/lists/${f.listId}/subscriptions/${this.options.userId}`,options:this.options,method:"DELETE",headers:{Authorization:`Bearer ${this.options.accessToken}`}})}}class c2 extends Yr{async postInboundCourier(f){return await Qo({url:`${this.options.apiUrls.courier.rest}/inbound/courier`,options:this.options,method:"POST",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:{...f,userId:this.options.userId},validCodes:[200,202]})}async postTrackingUrl(f){return await Qo({url:f.url,options:this.options,method:"POST",body:{event:f.event}})}}class r2 extends Yr{constructor(f){var p,m;const T=f.showLogs!==void 0?f.showLogs:process.env.NODE_ENV==="development",C={...f,showLogs:T,apiUrls:f.apiUrls||pb(),accessToken:f.jwt??f.publicApiKey};super({...C,logger:new e2(C.showLogs),apiUrls:pb(C.apiUrls)}),Ht(this,"tokens"),Ht(this,"brands"),Ht(this,"preferences"),Ht(this,"inbox"),Ht(this,"lists"),Ht(this,"tracking"),this.tokens=new o2(this.options),this.brands=new t2(this.options),this.preferences=new u2(this.options),this.inbox=new n2(this.options),this.lists=new s2(this.options),this.tracking=new c2(this.options),!this.options.jwt&&!this.options.publicApiKey&&this.options.logger.warn("Courier Client initialized with no authentication method. Please provide a JWT or public API key."),this.options.publicApiKey&&((p=this.options.logger)==null||p.warn(`Courier Warning: Public API Keys are for testing only. Please use JWTs for production.
130
+ You can generate a JWT with this endpoint: https://www.courier.com/docs/reference/auth/issue-token
131
+ This endpoint should be called from your backend server, not the SDK.`)),this.options.jwt&&this.options.publicApiKey&&((m=this.options.logger)==null||m.warn("Courier Warning: Both a JWT and a Public API Key were provided. The Public API Key will be ignored."))}}class f2{constructor(f){Ht(this,"callback"),this.callback=f}remove(){Le.shared.removeAuthenticationListener(this)}}const yb=class ov{constructor(){Ht(this,"id",rv.generate()),Ht(this,"instanceClient"),Ht(this,"_paginationLimit",24),Ht(this,"authenticationListeners",[])}get paginationLimit(){return this._paginationLimit}set paginationLimit(f){this._paginationLimit=Math.min(Math.max(f,1),100)}get client(){return this.instanceClient}static get shared(){return ov.instance||(ov.instance=new ov),ov.instance}signIn(f){const p=f.connectionId??rv.generate();this.instanceClient=new r2({...f,connectionId:p}),this.notifyAuthenticationListeners({userId:f.userId})}signOut(){this.instanceClient=void 0,this.notifyAuthenticationListeners({userId:void 0})}addAuthenticationListener(f){var p;(p=this.instanceClient)==null||p.options.logger.info("Adding authentication listener");const m=new f2(f);return this.authenticationListeners.push(m),m}removeAuthenticationListener(f){var p;(p=this.instanceClient)==null||p.options.logger.info("Removing authentication listener"),this.authenticationListeners=this.authenticationListeners.filter(m=>m!==f)}notifyAuthenticationListeners(f){this.authenticationListeners.forEach(p=>p.callback(f))}};Ht(yb,"instance");let Le=yb;var d2=Object.defineProperty,h2=(b,f,p)=>f in b?d2(b,f,{enumerable:!0,configurable:!0,writable:!0,value:p}):b[f]=p,Vt=(b,f,p)=>h2(b,typeof f!="symbol"?f+"":f,p);const Z={black:{500:"#171717",50010:"#1717171A",50020:"#17171733"},gray:{200:"#F5F5F5",400:"#3A3A3A",500:"#E5E5E5",600:"#737373"},white:{500:"#FFFFFF",50010:"#FFFFFF1A",50020:"#FFFFFF33"},blue:{400:"#60A5FA",500:"#2563EB"}},Zo={light:{colors:{primary:Z.black[500],secondary:Z.white[500],border:Z.gray[500],link:Z.blue[500],icon:Z.black[500]},button:{cornerRadius:"4px"}},dark:{colors:{primary:Z.white[500],secondary:Z.black[500],border:Z.gray[400],link:Z.blue[400],icon:Z.white[500]},button:{cornerRadius:"4px"}}},bb=()=>typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Sb=b=>{if(typeof window>"u")return()=>{};const f=window.matchMedia("(prefers-color-scheme: dark)"),p=m=>{b(m.matches?"dark":"light")};return f.addEventListener("change",p),()=>{f.removeEventListener("change",p)}};class Tb extends HTMLElement{constructor(){super(),Vt(this,"_currentSystemTheme"),Vt(this,"_systemThemeCleanup"),this._currentSystemTheme=bb(),this._systemThemeCleanup=Sb(f=>{this._currentSystemTheme=f,this.onSystemThemeChange(f)})}get currentSystemTheme(){return this._currentSystemTheme}disconnectedCallback(){this._systemThemeCleanup&&this._systemThemeCleanup()}onSystemThemeChange(f){}}const Zg={borderRadius:"4px",fontSize:"14px"},lc={primary:b=>({...Zg,backgroundColor:Zo[b].colors.primary,textColor:Zo[b].colors.secondary,fontWeight:"500",shadow:"none"}),secondary:b=>({...Zg,backgroundColor:Zo[b].colors.secondary,textColor:Zo[b].colors.primary,fontWeight:"500",border:`1px solid ${Zo[b].colors.border}`,shadow:b==="light"?"0px 1px 2px 0px rgba(0, 0, 0, 0.06)":"0px 1px 2px 0px rgba(255, 255, 255, 0.1)"}),tertiary:b=>({...Zg,backgroundColor:Zo[b].colors.border,textColor:Zo[b].colors.primary,fontWeight:"500",border:"none",shadow:"none"})};class dv extends Tb{constructor(f){super(),Vt(this,"_button"),Vt(this,"_style");const p=this.attachShadow({mode:"open"});this._button=document.createElement("button"),this._button.setAttribute("part","button"),this._style=document.createElement("style"),this._style.textContent=this.getStyles(f),p.appendChild(this._style),p.appendChild(this._button),this.updateButton(f),this._button.addEventListener("click",m=>{m.preventDefault(),m.stopPropagation(),f.onClick&&f.onClick()})}getStyles(f){const p=()=>lc.secondary(this.currentSystemTheme).textColor,m=()=>lc.secondary(this.currentSystemTheme).backgroundColor,T=()=>lc.secondary(this.currentSystemTheme).border,C=()=>lc.secondary(this.currentSystemTheme).shadow,w=()=>lc.secondary(this.currentSystemTheme).borderRadius,j=()=>lc.secondary(this.currentSystemTheme).fontSize,M=()=>lc.secondary(this.currentSystemTheme).fontWeight;return`
132
+ :host {
133
+ display: inline-block;
134
+ }
135
+
136
+ button {
137
+ border: none;
138
+ border-radius: ${f.borderRadius??w()};
139
+ font-weight: ${f.fontWeight??M()};
140
+ font-family: ${f.fontFamily??"inherit"};
141
+ font-size: ${f.fontSize??j()};
142
+ padding: 6px 10px;
143
+ cursor: pointer;
144
+ width: 100%;
145
+ height: 100%;
146
+ background-color: ${f.backgroundColor??m()};
147
+ color: ${f.textColor??p()};
148
+ border: ${f.border??T()};
149
+ box-shadow: ${f.shadow??C()};
150
+ touch-action: manipulation;
151
+ }
152
+
153
+ button:hover {
154
+ ${f.hoverBackgroundColor?`background-color: ${f.hoverBackgroundColor};`:"filter: brightness(0.9);"}
155
+ }
156
+
157
+ button:active {
158
+ ${f.activeBackgroundColor?`background-color: ${f.activeBackgroundColor};`:"filter: brightness(0.8);"}
159
+ }
160
+
161
+ button:disabled {
162
+ opacity: 0.5;
163
+ cursor: not-allowed;
164
+ }
165
+ `}updateButton(f){f.text&&(this._button.textContent=f.text),this._style.textContent=this.getStyles(f)}}customElements.get("courier-button")||customElements.define("courier-button",dv);const we={inbox:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
166
+ <path d="M5.5 14.5V17C5.5 17.2812 5.71875 17.5 6 17.5H18C18.25 17.5 18.5 17.2812 18.5 17V14.5H15.9375L15.2812 15.8125C15.0938 16.25 14.6562 16.5 14.1875 16.5H9.78125C9.3125 16.5 8.875 16.25 8.6875 15.8125L8.03125 14.5H5.5ZM18.1875 13L16.6562 6.90625C16.5938 6.65625 16.4062 6.5 16.1875 6.5H7.8125C7.5625 6.5 7.375 6.65625 7.3125 6.90625L5.78125 13H8.1875C8.65625 13 9.09375 13.2812 9.3125 13.7188L9.9375 15H14.0312L14.6875 13.7188C14.875 13.2812 15.3125 13 15.7812 13H18.1875ZM4 14.25C4 14.0938 4 13.9375 4.03125 13.7812L5.84375 6.53125C6.09375 5.625 6.875 5 7.8125 5H16.1875C17.0938 5 17.9062 5.625 18.125 6.53125L19.9375 13.7812C19.9688 13.9375 20 14.0938 20 14.25V17C20 18.125 19.0938 19 18 19H6C4.875 19 4 18.125 4 17V14.25Z" fill="currentColor"/>
167
+ </svg>`,archive:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
168
+ <path d="M5.5 6.5V8H18.5V6.5H5.5ZM5 5H19C19.5312 5 20 5.46875 20 6V8.5C20 9.0625 19.5312 9.5 19 9.5H5C4.4375 9.5 4 9.0625 4 8.5V6C4 5.46875 4.4375 5 5 5ZM9 11.75C9 11.3438 9.3125 11 9.75 11H14.25C14.6562 11 15 11.3438 15 11.75C15 12.1875 14.6562 12.5 14.25 12.5H9.75C9.3125 12.5 9 12.1875 9 11.75ZM5 17V10.5H6.5V17C6.5 17.2812 6.71875 17.5 7 17.5H17C17.25 17.5 17.5 17.2812 17.5 17V10.5H19V17C19 18.125 18.0938 19 17 19H7C5.875 19 5 18.125 5 17Z" fill="currentColor"/>
169
+ </svg>`,check:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
170
+ <path d="M18.793 7.33203C19.0742 7.64453 19.0742 8.11328 18.793 8.39453L10.543 16.6445C10.2305 16.957 9.76172 16.957 9.48047 16.6445L5.23047 12.3945C4.91797 12.1133 4.91797 11.6445 5.23047 11.3633C5.51172 11.0508 5.98047 11.0508 6.26172 11.3633L9.98047 15.082L17.7305 7.33203C18.0117 7.05078 18.4805 7.05078 18.7617 7.33203H18.793Z" fill="currentColor"/>
171
+ </svg>`,filter:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
172
+ <path d="M5 7C5 6.59375 5.3125 6.25 5.75 6.25H18.25C18.6562 6.25 19 6.59375 19 7C19 7.4375 18.6562 7.75 18.25 7.75H5.75C5.3125 7.75 5 7.4375 5 7ZM7 12C7 11.5938 7.3125 11.25 7.75 11.25H16.25C16.6562 11.25 17 11.5938 17 12C17 12.4375 16.6562 12.75 16.25 12.75H7.75C7.3125 12.75 7 12.4375 7 12ZM14 17C14 17.4375 13.6562 17.75 13.25 17.75H10.75C10.3125 17.75 10 17.4375 10 17C10 16.5938 10.3125 16.25 10.75 16.25H13.25C13.6562 16.25 14 16.5938 14 17Z" fill="currentColor"/>
173
+ </svg>`,overflow:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
174
+ <path d="M18.5117 11.9883C18.5117 12.5508 18.1992 13.0195 17.7617 13.3008C17.293 13.582 16.6992 13.582 16.2617 13.3008C15.793 13.0195 15.5117 12.5508 15.5117 11.9883C15.5117 11.457 15.793 10.9883 16.2617 10.707C16.6992 10.4258 17.293 10.4258 17.7617 10.707C18.1992 10.9883 18.5117 11.457 18.5117 11.9883ZM13.5117 11.9883C13.5117 12.5508 13.1992 13.0195 12.7617 13.3008C12.293 13.582 11.6992 13.582 11.2617 13.3008C10.793 13.0195 10.5117 12.5508 10.5117 11.9883C10.5117 11.457 10.793 10.9883 11.2617 10.707C11.6992 10.4258 12.293 10.4258 12.7617 10.707C13.1992 10.9883 13.5117 11.457 13.5117 11.9883ZM7.01172 13.4883C6.44922 13.4883 5.98047 13.207 5.69922 12.7383C5.41797 12.3008 5.41797 11.707 5.69922 11.2383C5.98047 10.8008 6.44922 10.4883 7.01172 10.4883C7.54297 10.4883 8.01172 10.8008 8.29297 11.2383C8.57422 11.707 8.57422 12.3008 8.29297 12.7383C8.01172 13.207 7.54297 13.4883 7.01172 13.4883Z" fill="currentColor"/>
175
+ </svg>`,read:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
176
+ <path d="M7 6.5C6.71875 6.5 6.5 6.75 6.5 7V17C6.5 17.2812 6.71875 17.5 7 17.5H17C17.25 17.5 17.5 17.2812 17.5 17V7C17.5 6.75 17.25 6.5 17 6.5H7ZM5 7C5 5.90625 5.875 5 7 5H17C18.0938 5 19 5.90625 19 7V17C19 18.125 18.0938 19 17 19H7C5.875 19 5 18.125 5 17V7ZM15.5312 10.5312L11.5312 14.5312C11.2188 14.8438 10.75 14.8438 10.4688 14.5312L8.46875 12.5312C8.15625 12.25 8.15625 11.7812 8.46875 11.5C8.75 11.1875 9.21875 11.1875 9.53125 11.5L11 12.9688L14.4688 9.46875C14.75 9.1875 15.2188 9.1875 15.5 9.46875C15.8125 9.78125 15.8125 10.25 15.5 10.5312H15.5312Z" fill="currentColor"/>
177
+ </svg>`,archiveRead:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
178
+ <path d="M7.5 6.5V15.25H16.5V6.5H7.5ZM6 15.25V6.5C6 5.6875 6.65625 5 7.5 5H16.5C17.3125 5 18 5.6875 18 6.5V15.25C18.4062 15.25 18.75 15.5938 18.75 16C18.75 16.4375 18.4062 16.75 18 16.75H6C5.5625 16.75 5.25 16.4375 5.25 16C5.25 15.5938 5.5625 15.25 6 15.25ZM5 13V14.5H4.5V17.5H19.5V14.5H19V13H19.5C20.3125 13 21 13.6875 21 14.5V17.5C21 18.3438 20.3125 19 19.5 19H4.5C3.65625 19 3 18.3438 3 17.5V14.5C3 13.6875 3.65625 13 4.5 13H5ZM15.0312 9.625L11.6875 12.9688C11.5312 13.0938 11.3438 13.1875 11.1562 13.1875C10.9375 13.1875 10.75 13.0938 10.625 12.9688L8.96875 11.2812C8.65625 11 8.65625 10.5312 8.96875 10.25C9.25 9.9375 9.71875 9.9375 10 10.25L11.1562 11.375L13.9688 8.5625C14.25 8.28125 14.7188 8.28125 15 8.5625C15.3125 8.875 15.3125 9.34375 15 9.625H15.0312Z" fill="currentColor"/>
179
+ </svg>`,unread:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
180
+ <path d="M17 6.5H7C6.71875 6.5 6.5 6.75 6.5 7V17C6.5 17.2812 6.71875 17.5 7 17.5H17C17.25 17.5 17.5 17.2812 17.5 17V7C17.5 6.75 17.25 6.5 17 6.5ZM7 5H17C18.0938 5 19 5.90625 19 7V17C19 18.125 18.0938 19 17 19H7C5.875 19 5 18.125 5 17V7C5 5.90625 5.875 5 7 5Z" fill="currentColor"/>
181
+ </svg>`,unarchive:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
182
+ <path d="M5.5 11C5.0625 11 4.75 10.6875 4.75 10.25V5.75C4.75 5.34375 5.0625 5 5.5 5C5.90625 5 6.25 5.34375 6.25 5.75V8.28125L6.875 7.53125C8.15625 6 10.0625 5 12.25 5C16.0938 5 19.25 8.15625 19.25 12C19.25 15.875 16.0938 19 12.25 19C10.6562 19 9.21875 18.5 8.03125 17.625C7.71875 17.375 7.625 16.9062 7.875 16.5625C8.125 16.2188 8.59375 16.1562 8.9375 16.4062C9.84375 17.0938 11 17.5 12.25 17.5C15.2812 17.5 17.75 15.0625 17.75 12C17.75 8.96875 15.2812 6.5 12.25 6.5C10.5312 6.5 9.03125 7.28125 8 8.5L7.15625 9.5H10C10.4062 9.5 10.75 9.84375 10.75 10.25C10.75 10.6875 10.4062 11 10 11H5.5Z" fill="currentColor"/>
183
+ </svg>`};class Vr extends HTMLElement{constructor(f,p){super(),Vt(this,"_color"),Vt(this,"_svg"),Vt(this,"_iconContainer"),Vt(this,"_style"),this._color=f??Z.black[500],this._svg=p;const m=this.attachShadow({mode:"open"});this._iconContainer=document.createElement("div"),m.appendChild(this._iconContainer),this._style=document.createElement("style"),this._style.textContent=this.getStyles(this._color),m.appendChild(this._style),this.refresh()}getStyles(f){return`
184
+ :host {
185
+ display: inline-block;
186
+ line-height: 0;
187
+ display: flex;
188
+ align-items: center;
189
+ justify-content: center;
190
+ }
191
+
192
+ svg {
193
+ width: 24px;
194
+ height: 24px;
195
+ color: ${f};
196
+ }
197
+ `}refresh(){this._svg&&(this._iconContainer.innerHTML=this._svg),this._color&&(this._style.textContent=this.getStyles(this._color))}updateColor(f){this._color=f,this.refresh()}updateSVG(f){this._svg=f,this.refresh()}}customElements.get("courier-icon")||customElements.define("courier-icon",Vr);class $g extends HTMLElement{constructor(){super(),Vt(this,"link");const f=this.attachShadow({mode:"open"});this.link=document.createElement("a"),this.link.setAttribute("part","link");const p=document.createElement("style");p.textContent=`
198
+ :host {
199
+ display: inline-block;
200
+ }
201
+
202
+ a {
203
+ text-decoration: none;
204
+ border-radius: 4px;
205
+ cursor: pointer;
206
+ font-weight: 500;
207
+ transition: all 0.2s ease;
208
+ font-family: var(--courier-link-font-family, inherit);
209
+ font-size: var(--courier-link-font-size, inherit);
210
+ }
211
+
212
+ /* Variants */
213
+ a[data-variant="primary"][data-mode="light"] {
214
+ color: var(--courier-link-color, ${Zo.light.colors.link});
215
+ }
216
+
217
+ a[data-variant="primary"][data-mode="light"]:hover {
218
+ opacity: 0.8;
219
+ }
220
+
221
+ a[data-variant="primary"][data-mode="light"]:active {
222
+ opacity: 0.6;
223
+ }
224
+
225
+ a[data-variant="primary"][data-mode="dark"] {
226
+ color: var(--courier-link-color, ${Zo.dark.colors.link});
227
+ }
228
+
229
+ a[data-variant="primary"][data-mode="dark"]:hover {
230
+ opacity: 0.8;
231
+ }
232
+
233
+ a[data-variant="primary"][data-mode="dark"]:active {
234
+ opacity: 0.6;
235
+ }
236
+
237
+ a[data-underline="true"] {
238
+ text-decoration: underline;
239
+ }
240
+
241
+ a:disabled {
242
+ opacity: 0.6;
243
+ cursor: not-allowed;
244
+ pointer-events: none;
245
+ }
246
+ `,f.appendChild(p),f.appendChild(this.link),this.updateVariant(),this.updateUnderline(),this.updateMode()}connectedCallback(){const f=document.createElement("slot");this.link.appendChild(f),this.updateHref()}attributeChangedCallback(f,p,m){if(p!==m)switch(f){case"href":this.updateHref();break;case"variant":case"mode":this.updateVariant();break;case"disabled":this.link.style.pointerEvents=this.hasAttribute("disabled")?"none":"auto",this.link.style.opacity=this.hasAttribute("disabled")?"0.6":"1";break;case"color":this.updateColor();break;case"underline":this.updateUnderline();break;case"target":this.updateTarget();break;case"font-family":this.updateFontFamily();break;case"font-size":this.updateFontSize();break}}updateHref(){const f=this.getAttribute("href");f&&(this.link.href=f)}updateVariant(){const f=this.getAttribute("variant")||"primary",p=this.getAttribute("mode")||"light";this.link.setAttribute("data-variant",f),this.link.setAttribute("data-mode",p)}updateColor(){const f=this.getAttribute("color");f?this.link.style.setProperty("--courier-link-color",f):this.link.style.removeProperty("--courier-link-color")}updateUnderline(){const f=this.getAttribute("underline")==="true";this.link.setAttribute("data-underline",f.toString())}updateMode(){const f=this.getAttribute("mode")||"light";this.link.setAttribute("data-mode",f)}updateTarget(){const f=this.getAttribute("target");f&&(this.link.target=f)}updateFontFamily(){const f=this.getAttribute("font-family");f?this.link.style.setProperty("--courier-link-font-family",f):this.link.style.removeProperty("--courier-link-font-family")}updateFontSize(){const f=this.getAttribute("font-size");f?this.link.style.setProperty("--courier-link-font-size",f):this.link.style.removeProperty("--courier-link-font-size")}}Vt($g,"observedAttributes",["href","variant","disabled","color","underline","mode","target","font-family","font-size"]),customElements.get("courier-link")||customElements.define("courier-link",$g);class hv extends Tb{constructor(){super(),Vt(this,"shadow"),this.shadow=this.attachShadow({mode:"open"})}build(f){if(f===null){this.shadow.replaceChildren();return}const p=f??this.defaultElement();this.shadow.replaceChildren(p)}defaultElement(){const f=document.createElement("div");return f.textContent="Default Element Factory",f.style.cssText=`
247
+ background-color: red;
248
+ text-align: center;
249
+ padding: 12px;
250
+ `,f}}class mv extends hv{constructor(f){super(),Vt(this,"_props"),Vt(this,"_title"),Vt(this,"_button"),Vt(this,"_style"),Vt(this,"_buttonClickCallback",null),this._props=f}defaultElement(){var f,p;const m=document.createElement("div");return this._title=document.createElement("h2"),(f=this._props.title)!=null&&f.text&&(this._title.textContent=this._props.title.text),this._button=new dv(this._props.button??lc.secondary(this.currentSystemTheme)),this._style=document.createElement("style"),this._style.textContent=this.getStyles(this._props),m.className="container",m.appendChild(this._style),m.appendChild(this._title),m.appendChild(this._button),this.shadow.appendChild(m),(p=this._button)==null||p.addEventListener("click",()=>{this._buttonClickCallback&&this._buttonClickCallback()}),m}onSystemThemeChange(f){this.updateStyles(this._props)}getStyles(f){var p,m,T,C;return`
251
+ :host {
252
+ display: flex;
253
+ align-items: center;
254
+ justify-content: center;
255
+ height: 100%;
256
+ width: 100%;
257
+ }
258
+
259
+ .container {
260
+ display: flex;
261
+ flex-direction: column;
262
+ align-items: center;
263
+ justify-content: center;
264
+ gap: 16px;
265
+ text-align: center;
266
+ padding: 24px;
267
+ }
268
+
269
+ .container h2 {
270
+ margin: 0;
271
+ color: ${((p=f.title)==null?void 0:p.textColor)??"red"};
272
+ font-size: ${((m=f.title)==null?void 0:m.fontSize)??"16px"};
273
+ font-weight: ${((T=f.title)==null?void 0:T.fontWeight)??"500"};
274
+ font-family: ${((C=f.title)==null?void 0:C.fontFamily)??"inherit"};
275
+ }
276
+ `}updateStyles(f){this._props=f,this._style&&(this._style.textContent=this.getStyles(f)),this._button&&this._button.updateButton(f.button)}setButtonClickCallback(f){this._buttonClickCallback=f}}customElements.get("courier-info-state")||customElements.define("courier-info-state",mv);class Xm extends HTMLElement{constructor(f,p,m,T,C,w,j,M){super(),Vt(this,"_backgroundColor"),Vt(this,"_hoverBackgroundColor"),Vt(this,"_activeBackgroundColor"),Vt(this,"_borderRadius"),Vt(this,"_height"),Vt(this,"_width"),Vt(this,"_style"),Vt(this,"_button"),Vt(this,"_icon"),this._borderRadius=w,this._backgroundColor=m,this._hoverBackgroundColor=T,this._activeBackgroundColor=C,this._height=j,this._width=M;const Y=this.attachShadow({mode:"open"});this._button=document.createElement("button"),this._button.setAttribute("part","button"),this._icon=new Vr(p,f),this._style=document.createElement("style"),this.refresh(),Y.appendChild(this._style),this._button.appendChild(this._icon),Y.appendChild(this._button)}refresh(){this._style.textContent=this.getStyles()}getStyles(){return`
277
+ :host {
278
+ display: inline-block;
279
+ border-radius: ${this._borderRadius??"50%"};
280
+ }
281
+
282
+ button {
283
+ border: none;
284
+ border-radius: ${this._borderRadius??"50%"};
285
+ cursor: pointer;
286
+ width: ${this._width??"36px"};
287
+ height: ${this._height??"36px"};
288
+ display: flex;
289
+ align-items: center;
290
+ justify-content: center;
291
+ background: ${this._backgroundColor??"transparent"};
292
+ transition: background-color 0.2s ease;
293
+ touch-action: manipulation;
294
+ }
295
+
296
+ button:hover {
297
+ background-color: ${this._hoverBackgroundColor??"red"};
298
+ }
299
+
300
+ button:active {
301
+ background-color: ${this._activeBackgroundColor??"red"};
302
+ }
303
+
304
+ button:disabled {
305
+ opacity: 0.6;
306
+ cursor: not-allowed;
307
+ }
308
+
309
+ [part="icon"] {
310
+ display: flex;
311
+ align-items: center;
312
+ justify-content: center;
313
+ width: 24px;
314
+ height: 24px;
315
+ }
316
+ `}updateIconColor(f){this._icon.updateColor(f)}updateIconSVG(f){this._icon.updateSVG(f)}updateBackgroundColor(f){this._backgroundColor=f,this.refresh()}updateHoverBackgroundColor(f){this._hoverBackgroundColor=f,this.refresh()}updateActiveBackgroundColor(f){this._activeBackgroundColor=f,this.refresh()}}customElements.get("courier-icon-button")||customElements.define("courier-icon-button",Xm),[{name:"courier-button",class:dv},{name:"courier-icon",class:Vr},{name:"courier-link",class:$g},{name:"courier-info-state",class:mv},{name:"courier-icon-button",class:Xm}].forEach(({name:b,class:f})=>{customElements.get(b)||customElements.define(b,f)});const xb=class sv{constructor(){K(this,"_inboxDataSet"),K(this,"_archiveDataSet"),K(this,"_dataStoreListeners",[]),K(this,"_unreadCount"),K(this,"isPaginatingInbox",!1),K(this,"isPaginatingArchive",!1)}static get shared(){return sv.instance||(sv.instance=new sv),sv.instance}get unreadCount(){return this._unreadCount??0}get inboxDataSet(){return this._inboxDataSet??{messages:[],canPaginate:!1,paginationCursor:null}}get archiveDataSet(){return this._archiveDataSet??{messages:[],canPaginate:!1,paginationCursor:null}}addDataStoreListener(f){this._dataStoreListeners.push(f)}removeDataStoreListener(f){this._dataStoreListeners=this._dataStoreListeners.filter(p=>p!==f)}async fetchDataSet(f){var p,m,T,C,w,j,M,Y,ee,le;if(f.canUseCache)switch(f.feedType){case"inbox":if(this._inboxDataSet)return this._inboxDataSet;break;case"archive":if(this._archiveDataSet)return this._archiveDataSet;break}const V=f.feedType==="inbox"?await((p=Le.shared.client)==null?void 0:p.inbox.getMessages()):await((m=Le.shared.client)==null?void 0:m.inbox.getArchivedMessages());return{messages:((C=(T=V==null?void 0:V.data)==null?void 0:T.messages)==null?void 0:C.nodes)??[],canPaginate:((M=(j=(w=V==null?void 0:V.data)==null?void 0:w.messages)==null?void 0:j.pageInfo)==null?void 0:M.hasNextPage)??!1,paginationCursor:((le=(ee=(Y=V==null?void 0:V.data)==null?void 0:Y.messages)==null?void 0:ee.pageInfo)==null?void 0:le.startCursor)??null}}async fetchUnreadCount(f){var p;return f.canUseCache&&this._unreadCount!==void 0?this._unreadCount:await((p=Le.shared.client)==null?void 0:p.inbox.getUnreadMessageCount())??0}async load(f){var p,m,T;try{if(!((p=Le.shared.client)!=null&&p.options.userId))throw new Error("User is not signed in");const C=f??{feedType:"inbox",canUseCache:!0},[w,j]=await Promise.all([this.fetchDataSet(C),this.fetchUnreadCount(C)]);switch(C.feedType){case"inbox":this._inboxDataSet=w;break;case"archive":this._archiveDataSet=w;break}this._unreadCount=j,this._dataStoreListeners.forEach(M=>{var Y,ee,le,V;(ee=(Y=M.events).onDataSetChange)==null||ee.call(Y,w,C.feedType),(V=(le=M.events).onUnreadCountChange)==null||V.call(le,this._unreadCount??0)}),await this.connectSocket()}catch(C){(T=(m=Le.shared.client)==null?void 0:m.options.logger)==null||T.error("Error loading inbox:",C),this._dataStoreListeners.forEach(w=>{var j,M;(M=(j=w.events).onError)==null||M.call(j,C)})}}async connectSocket(){var f,p,m,T,C,w,j,M,Y,ee,le,V;const oe=(f=Le.shared.client)==null?void 0:f.inbox.socket;try{if(!oe){(m=(p=Le.shared.client)==null?void 0:p.options.logger)==null||m.info("CourierInbox socket not available");return}if((w=(T=Le.shared.client)==null?void 0:T.options.logger)==null||w.info("CourierInbox socket connectionId:",(C=Le.shared.client)==null?void 0:C.options.connectionId),oe.isConnected){(M=(j=Le.shared.client)==null?void 0:j.options.logger)==null||M.info("CourierInbox socket already connected. Socket will not attempt reconnection.");return}oe.receivedMessage=se=>{this.addMessage(se,0,"inbox")},oe.receivedMessageEvent=se=>{let ue;switch(se.messageId&&(ue=this.getMessage({messageId:se.messageId})),se.event){case"mark-all-read":this.readAllMessages({canCallApi:!1});break;case"read":ue&&this.readMessage({message:ue,canCallApi:!1});break;case"unread":ue&&this.unreadMessage({message:ue,canCallApi:!1});break;case"opened":ue&&this.openMessage({message:ue,canCallApi:!1});break;case"archive":ue&&this.archiveMessage({message:ue,canCallApi:!1});break;case"archive-read":this.archiveReadMessages({canCallApi:!1});break;case"click":ue&&this.clickMessage({message:ue,canCallApi:!1});break;case"unopened":case"unarchive":break}},await oe.connect(),await oe.sendSubscribe(),oe.keepAlive(),(ee=(Y=Le.shared.client)==null?void 0:Y.options.logger)==null||ee.info("CourierInbox socket connected")}catch(se){(V=(le=Le.shared.client)==null?void 0:le.options.logger)==null||V.error("Failed to connect socket:",se)}}getMessage(f){var p,m;return((p=this._inboxDataSet)==null?void 0:p.messages.find(T=>T.messageId===f.messageId))??((m=this._archiveDataSet)==null?void 0:m.messages.find(T=>T.messageId===f.messageId))}async fetchNextPageOfMessages(f){var p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae,de,ke,fe,xe,Ye,qe,ze,at,me;switch(f.feedType){case"inbox":if(this.isPaginatingInbox)return null;if((p=this._inboxDataSet)!=null&&p.canPaginate&&this._inboxDataSet.paginationCursor)try{this.isPaginatingInbox=!0;const _e=await((m=Le.shared.client)==null?void 0:m.inbox.getMessages({paginationLimit:Le.shared.paginationLimit,startCursor:this._inboxDataSet.paginationCursor})),Re={messages:((C=(T=_e==null?void 0:_e.data)==null?void 0:T.messages)==null?void 0:C.nodes)??[],canPaginate:((M=(j=(w=_e==null?void 0:_e.data)==null?void 0:w.messages)==null?void 0:j.pageInfo)==null?void 0:M.hasNextPage)??!1,paginationCursor:((le=(ee=(Y=_e==null?void 0:_e.data)==null?void 0:Y.messages)==null?void 0:ee.pageInfo)==null?void 0:le.startCursor)??null};return this.addPage(Re,"inbox"),Re}catch(_e){return(oe=(V=Le.shared.client)==null?void 0:V.options.logger)==null||oe.error("Error fetching next page of inbox messages:",_e),null}finally{this.isPaginatingInbox=!1}break;case"archive":if(this.isPaginatingArchive)return null;if((se=this._archiveDataSet)!=null&&se.canPaginate&&this._archiveDataSet.paginationCursor)try{this.isPaginatingArchive=!0;const _e=await((ue=Le.shared.client)==null?void 0:ue.inbox.getArchivedMessages({paginationLimit:Le.shared.paginationLimit,startCursor:this._archiveDataSet.paginationCursor})),Re={messages:((de=(ae=_e==null?void 0:_e.data)==null?void 0:ae.messages)==null?void 0:de.nodes)??[],canPaginate:((xe=(fe=(ke=_e==null?void 0:_e.data)==null?void 0:ke.messages)==null?void 0:fe.pageInfo)==null?void 0:xe.hasNextPage)??!1,paginationCursor:((ze=(qe=(Ye=_e==null?void 0:_e.data)==null?void 0:Ye.messages)==null?void 0:qe.pageInfo)==null?void 0:ze.startCursor)??null};return this.addPage(Re,"archive"),Re}catch(_e){return(me=(at=Le.shared.client)==null?void 0:at.options.logger)==null||me.error("Error fetching next page of archived messages:",_e),null}finally{this.isPaginatingArchive=!1}break}return null}applyLocalMessageChange(f,p){for(const[m,T]of Object.entries(p))T!==void 0&&this.updateMessage(f,T,m)}async readMessage({message:f,canCallApi:p=!0}){var m,T,C,w;if(!Le.shared.client)return;const j=f;if(j.read)return;const M={inbox:(m=this._inboxDataSet)==null?void 0:m.messages.findIndex(Y=>Y.messageId===f.messageId),archive:(T=this._archiveDataSet)==null?void 0:T.messages.findIndex(Y=>Y.messageId===f.messageId)};try{f.read=new Date().toISOString(),this.applyLocalMessageChange(f,M),p&&await Le.shared.client.inbox.read({messageId:f.messageId})}catch(Y){this.applyLocalMessageChange(j,M),(w=(C=Le.shared.client)==null?void 0:C.options.logger)==null||w.error("Error reading message:",Y)}}async unreadMessage({message:f,canCallApi:p=!0}){var m,T,C,w;if(!Le.shared.client)return;const j=f;if(!j.read)return;const M={inbox:(m=this._inboxDataSet)==null?void 0:m.messages.findIndex(Y=>Y.messageId===f.messageId),archive:(T=this._archiveDataSet)==null?void 0:T.messages.findIndex(Y=>Y.messageId===f.messageId)};try{f.read=void 0,this.applyLocalMessageChange(f,M),p&&await Le.shared.client.inbox.unread({messageId:f.messageId})}catch(Y){this.applyLocalMessageChange(j,M),(w=(C=Le.shared.client)==null?void 0:C.options.logger)==null||w.error("Error unreading message:",Y)}}async openMessage({message:f,canCallApi:p=!0}){var m,T,C,w;if(!Le.shared.client)return;const j=f,M={inbox:(m=this._inboxDataSet)==null?void 0:m.messages.findIndex(Y=>Y.messageId===f.messageId),archive:(T=this._archiveDataSet)==null?void 0:T.messages.findIndex(Y=>Y.messageId===f.messageId)};if(!(!M.inbox&&!M.archive)&&!j.opened)try{f.opened=new Date().toISOString(),this.applyLocalMessageChange(f,M),p&&await Le.shared.client.inbox.open({messageId:f.messageId})}catch(Y){this.applyLocalMessageChange(j,M),(w=(C=Le.shared.client)==null?void 0:C.options.logger)==null||w.error("Error opening message:",Y)}}async clickMessage({message:f,canCallApi:p=!0}){var m,T,C,w;if(Le.shared.client)try{(m=f.trackingIds)!=null&&m.clickTrackingId&&p&&await Le.shared.client.inbox.click({messageId:f.messageId,trackingId:(T=f.trackingIds)==null?void 0:T.clickTrackingId})}catch(j){(w=(C=Le.shared.client)==null?void 0:C.options.logger)==null||w.error("Error clicking message:",j)}}async archiveMessage({message:f,canCallApi:p=!0}){var m,T;if(!Le.shared.client)return;const C=f,w=(m=this._inboxDataSet)==null?void 0:m.messages.findIndex(j=>j.messageId===f.messageId);if(w!==void 0)try{if(this.removeMessage(f,w,"inbox"),(T=this._archiveDataSet)!=null&&T.messages){const j=this.findInsertIndex(f,this._archiveDataSet.messages);f.archived=new Date().toISOString(),this.addMessage(f,j,"archive")}p&&await Le.shared.client.inbox.archive({messageId:f.messageId})}catch{this.addMessage(C,w,"inbox"),f.archived=void 0,this.removeMessage(f,w,"archive")}}async archiveReadMessages({canCallApi:f=!0}={}){var p;if(!Le.shared.client)return;const m=this._inboxDataSet,T=this._archiveDataSet;try{(p=this._inboxDataSet)==null||p.messages.forEach(C=>{var w,j;if(!C.read)return;const M=(w=this._inboxDataSet)==null?void 0:w.messages.findIndex(Y=>Y.messageId===C.messageId);if(M!==void 0&&(this.removeMessage(C,M,"inbox"),(j=this._archiveDataSet)!=null&&j.messages)){const Y=this.findInsertIndex(C,this._archiveDataSet.messages);C.archived=new Date().toISOString(),this.addMessage(C,Y,"archive")}}),this._dataStoreListeners.forEach(C=>{var w,j,M,Y;this._inboxDataSet&&((j=(w=C.events).onDataSetChange)==null||j.call(w,this._inboxDataSet,"inbox")),this._archiveDataSet&&((Y=(M=C.events).onDataSetChange)==null||Y.call(M,this._archiveDataSet,"archive"))}),f&&await Le.shared.client.inbox.archiveRead()}catch(C){console.error("Error archiving read messages:",C),this._inboxDataSet&&m&&(this._inboxDataSet.messages=m.messages),this._archiveDataSet&&T&&(this._archiveDataSet.messages=T.messages),this._dataStoreListeners.forEach(w=>{var j,M,Y,ee;this._inboxDataSet&&((M=(j=w.events).onDataSetChange)==null||M.call(j,this._inboxDataSet,"inbox")),this._archiveDataSet&&((ee=(Y=w.events).onDataSetChange)==null||ee.call(Y,this._archiveDataSet,"archive"))})}}async readAllMessages({canCallApi:f=!0}={}){var p,m,T,C;if(!Le.shared.client)return;const w=this._inboxDataSet,j=this._archiveDataSet,M=this._unreadCount;try{(p=this._inboxDataSet)==null||p.messages.forEach(Y=>{Y.read||(Y.read=new Date().toISOString())}),(m=this._archiveDataSet)==null||m.messages.forEach(Y=>{Y.read||(Y.read=new Date().toISOString())}),this._unreadCount=0,this._dataStoreListeners.forEach(Y=>{var ee,le,V,oe,se,ue;this._inboxDataSet&&((le=(ee=Y.events).onDataSetChange)==null||le.call(ee,this._inboxDataSet,"inbox")),this._archiveDataSet&&((oe=(V=Y.events).onDataSetChange)==null||oe.call(V,this._archiveDataSet,"archive")),(ue=(se=Y.events).onUnreadCountChange)==null||ue.call(se,this._unreadCount)}),f&&await Le.shared.client.inbox.readAll()}catch(Y){(C=(T=Le.shared.client)==null?void 0:T.options.logger)==null||C.error("Error reading all messages:",Y),this._inboxDataSet&&w&&(this._inboxDataSet.messages=w.messages),this._archiveDataSet&&j&&(this._archiveDataSet.messages=j.messages),this._unreadCount=M,this._dataStoreListeners.forEach(ee=>{var le,V,oe,se,ue,ae;this._inboxDataSet&&((V=(le=ee.events).onDataSetChange)==null||V.call(le,this._inboxDataSet,"inbox")),this._archiveDataSet&&((se=(oe=ee.events).onDataSetChange)==null||se.call(oe,this._archiveDataSet,"archive")),(ae=(ue=ee.events).onUnreadCountChange)==null||ae.call(ue,this._unreadCount)})}}findInsertIndex(f,p){const m=[...p];m.push(f),m.sort((C,w)=>{const j=new Date(C.created??Date.now()).getTime();return new Date(w.created??Date.now()).getTime()-j});const T=m.findIndex(C=>C.messageId===f.messageId);return Math.max(T-1,0)}addPage(f,p){switch(p){case"inbox":this._inboxDataSet&&(this._inboxDataSet.canPaginate=f.canPaginate,this._inboxDataSet.paginationCursor=f.paginationCursor,this._inboxDataSet.messages=[...this._inboxDataSet.messages,...f.messages]);break;case"archive":this._archiveDataSet&&(this._archiveDataSet.canPaginate=f.canPaginate,this._archiveDataSet.paginationCursor=f.paginationCursor,this._archiveDataSet.messages=[...this._archiveDataSet.messages,...f.messages]);break}this._dataStoreListeners.forEach(m=>{var T,C;return(C=(T=m.events).onPageAdded)==null?void 0:C.call(T,f,p)})}addMessage(f,p,m){var T,C;switch(m){case"inbox":!f.read&&this._unreadCount!==void 0&&(this._unreadCount=this._unreadCount+1),(T=this._inboxDataSet)==null||T.messages.splice(p,0,f);break;case"archive":(C=this._archiveDataSet)==null||C.messages.splice(p,0,f);break}this._dataStoreListeners.forEach(w=>{var j,M,Y,ee;(M=(j=w.events).onMessageAdd)==null||M.call(j,f,p,m),(ee=(Y=w.events).onUnreadCountChange)==null||ee.call(Y,this._unreadCount??0)})}removeMessage(f,p,m){var T,C;switch(m){case"inbox":!f.read&&this._unreadCount!==void 0&&(this._unreadCount=this._unreadCount-1),(T=this._inboxDataSet)==null||T.messages.splice(p,1);break;case"archive":(C=this._archiveDataSet)==null||C.messages.splice(p,1);break}this._dataStoreListeners.forEach(w=>{var j,M,Y,ee;(M=(j=w.events).onMessageRemove)==null||M.call(j,f,p,m),(ee=(Y=w.events).onUnreadCountChange)==null||ee.call(Y,this._unreadCount??0)})}updateMessage(f,p,m){switch(m){case"inbox":this._unreadCount!==void 0&&!f.archived&&(f.read&&(this._unreadCount=Math.max(0,this._unreadCount-1)),f.read||(this._unreadCount=this._unreadCount+1)),this._inboxDataSet&&(this._inboxDataSet.messages[p]=f);break;case"archive":this._archiveDataSet&&(this._archiveDataSet.messages[p]=f);break}this._dataStoreListeners.forEach(T=>{var C,w,j,M;(w=(C=T.events).onMessageUpdate)==null||w.call(C,f,p,m),(M=(j=T.events).onUnreadCountChange)==null||M.call(j,this._unreadCount??0)})}};K(xb,"instance");let un=xb;function m2(b){if(!b.created)return"Now";const f=new Date,p=new Date(b.created),m=Math.floor((f.getTime()-p.getTime())/1e3);return m<60?`${m}s`:m<3600?`${Math.floor(m/60)}m`:m<86400?`${Math.floor(m/3600)}h`:m<604800?`${Math.floor(m/86400)}d`:m<31536e3?`${Math.floor(m/604800)}w`:`${Math.floor(m/31536e3)}y`}class Eb extends HTMLElement{constructor(f){super(),K(this,"_theme"),K(this,"_options",[]),K(this,"_style"),this._theme=f;const p=this.attachShadow({mode:"open"});this._style=document.createElement("style"),this._style.textContent=this.getStyles(),p.appendChild(this._style);const m=document.createElement("ul");m.className="menu",p.appendChild(m)}getStyles(){var f,p,m;const T=(m=(p=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:p.item)==null?void 0:m.menu;return`
317
+ :host {
318
+ display: block;
319
+ position: absolute;
320
+ background: ${(T==null?void 0:T.backgroundColor)??"red"};
321
+ border: ${(T==null?void 0:T.border)??"1px solid red"};
322
+ border-radius: ${(T==null?void 0:T.borderRadius)??"0px"};
323
+ box-shadow: ${(T==null?void 0:T.shadow)??"0 2px 8px red"};
324
+ user-select: none;
325
+ opacity: 0;
326
+ pointer-events: none;
327
+ transition: opacity 0.15s;
328
+ overflow: hidden;
329
+ }
330
+
331
+ :host(.visible) {
332
+ opacity: 1;
333
+ pointer-events: auto;
334
+ }
335
+
336
+ ul.menu {
337
+ list-style: none;
338
+ margin: 0;
339
+ padding: 0;
340
+ display: flex;
341
+ flex-direction: row;
342
+ }
343
+
344
+ li.menu-item {
345
+ display: flex;
346
+ align-items: center;
347
+ justify-content: center;
348
+ cursor: pointer;
349
+ border-bottom: none;
350
+ background: transparent;
351
+ }
352
+ `}setOptions(f){this._options=f,this.renderMenu()}renderMenu(){var f,p,m,T;const C=(f=this.shadowRoot)==null?void 0:f.querySelector("ul.menu");if(!C)return;C.innerHTML="";const w=(T=(m=(p=this._theme.inbox)==null?void 0:p.list)==null?void 0:m.item)==null?void 0:T.menu,j=M=>{M.stopPropagation(),M.preventDefault()};this._options.forEach(M=>{var Y,ee,le;const V=new Xm(M.icon.svg,M.icon.color,w==null?void 0:w.backgroundColor,(Y=w==null?void 0:w.item)==null?void 0:Y.hoverBackgroundColor,(ee=w==null?void 0:w.item)==null?void 0:ee.activeBackgroundColor,(le=w==null?void 0:w.item)==null?void 0:le.borderRadius),oe=se=>{j(se),M.onClick()};V.addEventListener("click",oe),V.addEventListener("touchstart",j),V.addEventListener("touchend",oe),V.addEventListener("touchmove",j),V.addEventListener("mousedown",j),V.addEventListener("mouseup",j),C.appendChild(V)})}show(){this.classList.add("visible")}hide(){this.classList.remove("visible")}}customElements.get("courier-list-item-menu")||customElements.define("courier-list-item-menu",Eb);class Cb extends HTMLElement{constructor(f){super(),K(this,"_theme"),K(this,"_message",null),K(this,"_feedType","inbox"),K(this,"_isMobile",!1),K(this,"_titleElement"),K(this,"_subtitleElement"),K(this,"_timeElement"),K(this,"_style"),K(this,"_menu"),K(this,"_unreadIndicator"),K(this,"_actionsContainer"),K(this,"_longPressTimeout",null),K(this,"_isLongPress",!1),K(this,"onItemClick",null),K(this,"onItemLongPress",null),K(this,"onItemActionClick",null),this._theme=f,this._isMobile="ontouchstart"in window;const p=this.attachShadow({mode:"open"}),m=document.createElement("div");m.className="content-container",this._titleElement=document.createElement("p"),this._titleElement.setAttribute("part","title"),this._subtitleElement=document.createElement("p"),this._subtitleElement.setAttribute("part","subtitle"),this._actionsContainer=document.createElement("div"),this._actionsContainer.className="actions-container",m.appendChild(this._titleElement),m.appendChild(this._subtitleElement),m.appendChild(this._actionsContainer),this._timeElement=document.createElement("p"),this._timeElement.setAttribute("part","time"),this._unreadIndicator=document.createElement("div"),this._unreadIndicator.className="unread-indicator",this._style=document.createElement("style"),this._refreshStyles(),this._menu=new Eb(this._theme),this._menu.setOptions(this._getMenuOptions()),p.append(this._style,this._unreadIndicator,m,this._timeElement,this._menu);const T=C=>{C.stopPropagation(),C.preventDefault()};this._menu.addEventListener("mousedown",T),this._menu.addEventListener("pointerdown",T),this._menu.addEventListener("click",T),this.addEventListener("click",C=>{this._menu.contains(C.target)||C.composedPath().includes(this._menu)||this._message&&this.onItemClick&&!(C.target instanceof Vr)&&!this._isLongPress&&this.onItemClick(this._message)}),this._setupHoverBehavior(),this._setupLongPressBehavior()}_setupHoverBehavior(){this._isMobile||(this.addEventListener("mouseenter",()=>{this._isLongPress=!1,this._showMenu()}),this.addEventListener("mouseleave",()=>this._hideMenu()))}_setupLongPressBehavior(){var f,p,m;const T=(m=(p=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:p.item)==null?void 0:m.menu;if(!(T!=null&&T.enabled))return;const C=T.longPress;this.addEventListener("touchstart",()=>{this._longPressTimeout=window.setTimeout(()=>{this._isLongPress=!0,this._showMenu(),this._message&&this.onItemLongPress&&(this.onItemLongPress(this._message),navigator.vibrate&&navigator.vibrate((C==null?void 0:C.vibrationDuration)??50)),setTimeout(()=>{this._hideMenu(),this._isLongPress=!1},(C==null?void 0:C.displayDuration)??2e3)},650)},{passive:!0}),this.addEventListener("touchend",()=>{this._longPressTimeout&&(window.clearTimeout(this._longPressTimeout),this._longPressTimeout=null)})}setOnLongPress(f){this.onItemLongPress=f}_getMenuOptions(){var f,p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae,de,ke,fe;const xe=(T=(m=(p=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:p.item)==null?void 0:m.menu)==null?void 0:T.item;let Ye=[];return(C=this._message)!=null&&C.archived||Ye.push({id:(w=this._message)!=null&&w.read?"unread":"read",icon:{svg:(j=this._message)!=null&&j.read?(M=xe==null?void 0:xe.unread)==null?void 0:M.svg:(Y=xe==null?void 0:xe.read)==null?void 0:Y.svg,color:(ee=this._message)!=null&&ee.read?(le=xe==null?void 0:xe.unread)==null?void 0:le.color:((V=xe==null?void 0:xe.read)==null?void 0:V.color)??"red"},onClick:()=>{this._message&&(this._message.read?un.shared.unreadMessage({message:this._message}):un.shared.readMessage({message:this._message}))}}),Ye.push({id:(oe=this._message)!=null&&oe.archived?"unarchive":"archive",icon:{svg:(se=this._message)!=null&&se.archived?(ue=xe==null?void 0:xe.unarchive)==null?void 0:ue.svg:(ae=xe==null?void 0:xe.archive)==null?void 0:ae.svg,color:(de=this._message)!=null&&de.archived?(ke=xe==null?void 0:xe.unarchive)==null?void 0:ke.color:((fe=xe==null?void 0:xe.archive)==null?void 0:fe.color)??"red"},onClick:()=>{this._message&&(this._message.archived?alert("unarchive"):un.shared.archiveMessage({message:this._message}))}}),Ye}_showMenu(){var f,p,m;const T=(m=(p=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:p.item)==null?void 0:m.menu;T&&T.enabled&&(this._menu.setOptions(this._getMenuOptions()),this._menu.style.display="block",this._menu.show(),this._timeElement.style.opacity="0")}_hideMenu(){var f,p,m;const T=(m=(p=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:p.item)==null?void 0:m.menu;T&&T.enabled&&(this._menu.hide(),this._menu.style.display="none",this._timeElement.style.opacity="1")}_getStyles(){var f,p,m,T,C,w,j,M,Y,ee,le;const V=(p=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:p.item;return`
353
+ :host {
354
+ display: flex;
355
+ flex-direction: row;
356
+ align-items: flex-start;
357
+ justify-content: space-between;
358
+ border-bottom: ${(V==null?void 0:V.divider)??"1px solid red"};
359
+ font-family: inherit;
360
+ cursor: pointer;
361
+ transition: background-color 0.2s ease;
362
+ margin: 0;
363
+ width: 100%;
364
+ box-sizing: border-box;
365
+ padding: 12px 20px;
366
+ position: relative;
367
+ background-color: ${(V==null?void 0:V.backgroundColor)??"transparent"};
368
+ user-select: none;
369
+ -webkit-user-select: none;
370
+ -moz-user-select: none;
371
+ -ms-user-select: none;
372
+ touch-action: manipulation;
373
+ }
374
+
375
+ /* ───────────────────────── Base hover / active ────────────────── */
376
+ @media (hover: hover) {
377
+ :host(:hover) {
378
+ background-color: ${(V==null?void 0:V.hoverBackgroundColor)??"red"};
379
+ }
380
+ }
381
+ :host(:active) {
382
+ background-color: ${(V==null?void 0:V.activeBackgroundColor)??"red"};
383
+ }
384
+
385
+ /* ───────────────────────── Menu hover / active ────────────────── */
386
+ @media (hover: hover) {
387
+ :host(:hover):has(courier-list-item-menu:hover, courier-list-item-menu *:hover, courier-button:hover, courier-button *:hover) {
388
+ background-color: ${(V==null?void 0:V.backgroundColor)??"transparent"};
389
+ }
390
+ }
391
+ :host(:active):has(courier-list-item-menu:active, courier-list-item-menu *:active, courier-button:active, courier-button *:active) {
392
+ background-color: ${(V==null?void 0:V.backgroundColor)??"transparent"};
393
+ }
394
+
395
+ :host(:last-child) {
396
+ border-bottom: none;
397
+ }
398
+
399
+ .unread-indicator {
400
+ position: absolute;
401
+ top: 28px;
402
+ left: 6px;
403
+ width: 8px;
404
+ height: 8px;
405
+ border-radius: 50%;
406
+ background-color: ${(V==null?void 0:V.unreadIndicatorColor)??"red"};
407
+ display: none;
408
+ }
409
+
410
+ :host(.unread) .unread-indicator {
411
+ display: block;
412
+ }
413
+
414
+ .content-container {
415
+ flex: 1;
416
+ display: flex;
417
+ flex-direction: column;
418
+ margin-right: 12px;
419
+ }
420
+
421
+ p {
422
+ margin: 0;
423
+ overflow-wrap: break-word;
424
+ word-break: break-word;
425
+ hyphens: auto;
426
+ line-height: 1.4;
427
+ user-select: none;
428
+ -webkit-user-select: none;
429
+ -moz-user-select: none;
430
+ -ms-user-select: none;
431
+ text-align: left;
432
+ }
433
+
434
+ p[part='title'] {
435
+ font-family: ${((m=V==null?void 0:V.title)==null?void 0:m.family)??"inherit"};
436
+ font-size: ${((T=V==null?void 0:V.title)==null?void 0:T.size)??"14px"};
437
+ color: ${((C=V==null?void 0:V.title)==null?void 0:C.color)??"red"};
438
+ margin-bottom: 4px;
439
+ }
440
+
441
+ p[part='subtitle'] {
442
+ font-family: ${((w=V==null?void 0:V.subtitle)==null?void 0:w.family)??"inherit"};
443
+ font-size: ${((j=V==null?void 0:V.subtitle)==null?void 0:j.size)??"14px"};
444
+ color: ${((M=V==null?void 0:V.subtitle)==null?void 0:M.color)??"red"};
445
+ }
446
+
447
+ p[part='time'] {
448
+ font-family: ${((Y=V==null?void 0:V.time)==null?void 0:Y.family)??"inherit"};
449
+ font-size: ${((ee=V==null?void 0:V.time)==null?void 0:ee.size)??"14px"};
450
+ color: ${((le=V==null?void 0:V.time)==null?void 0:le.color)??"red"};
451
+ text-align: right;
452
+ white-space: nowrap;
453
+ }
454
+
455
+ courier-list-item-menu {
456
+ z-index: 1;
457
+ position: absolute;
458
+ top: 8px;
459
+ right: 8px;
460
+ display: none; /* becomes block while visible */
461
+ }
462
+
463
+ .actions-container {
464
+ display: flex;
465
+ margin-top: 10px;
466
+ flex-wrap: wrap;
467
+ flex-direction: row;
468
+ align-items: center;
469
+ gap: 8px;
470
+ display: none;
471
+ }
472
+
473
+ `}_refreshStyles(){this._style.textContent=this._getStyles()}connectedCallback(){var f,p;const m=this.getAttribute("message"),T=this.getAttribute("feed-type");if(T&&(this._feedType=T),m)try{this._message=JSON.parse(m),this._updateContent()}catch(C){(p=(f=Le.shared.client)==null?void 0:f.options.logger)==null||p.error("CourierListItem – failed to parse message:",C)}}setMessage(f,p){this._message=f,this._feedType=p,this._updateContent()}setOnItemClick(f){this.onItemClick=f}setOnItemActionClick(f){this.onItemActionClick=f}setOnItemLongPress(f){this.onItemLongPress=f}_updateContent(){var f,p,m,T,C,w;if(!this._message){this._titleElement.textContent="",this._subtitleElement.textContent="";return}this.classList.toggle("unread",!this._message.read&&this._feedType!=="archive"),this._titleElement.textContent=this._message.title||"Untitled Message",this._subtitleElement.textContent=this._message.preview||this._message.body||"",this._timeElement.textContent=m2(this._message),this._menu.setOptions(this._getMenuOptions());const j=((f=this._message)==null?void 0:f.actions)&&this._message.actions.length>0;this._actionsContainer.style.display=j?"flex":"none";const M=(T=(m=(p=this._theme.inbox)==null?void 0:p.list)==null?void 0:m.item)==null?void 0:T.actions;(w=(C=this._message)==null?void 0:C.actions)==null||w.forEach(Y=>{var ee,le,V,oe;const se=new dv({text:Y.content,variant:"secondary",backgroundColor:M==null?void 0:M.backgroundColor,hoverBackgroundColor:M==null?void 0:M.hoverBackgroundColor,activeBackgroundColor:M==null?void 0:M.activeBackgroundColor,border:M==null?void 0:M.border,borderRadius:M==null?void 0:M.borderRadius,shadow:M==null?void 0:M.shadow,fontFamily:(ee=M==null?void 0:M.font)==null?void 0:ee.family,fontSize:(le=M==null?void 0:M.font)==null?void 0:le.size,fontWeight:(V=M==null?void 0:M.font)==null?void 0:V.weight,textColor:(oe=M==null?void 0:M.font)==null?void 0:oe.color,onClick:()=>{this._message&&this.onItemActionClick&&this.onItemActionClick(this._message,Y)}});this._actionsContainer.appendChild(se)})}}customElements.get("courier-list-item")||customElements.define("courier-list-item",Cb);class _b extends HTMLElement{constructor(f,p){super(),K(this,"_shadow"),this._shadow=this.attachShadow({mode:"open"});const m=document.createElement("style");m.textContent=this.getStyles(p),this._shadow.appendChild(m);const T=new pv(f,35),C=new pv(f,100),w=new pv(f,82);this._shadow.appendChild(T),this._shadow.appendChild(C),this._shadow.appendChild(w)}getStyles(f){return`
474
+ :host {
475
+ display: flex;
476
+ flex-direction: column;
477
+ gap: 12px;
478
+ padding: 12px;
479
+ width: 100%;
480
+ box-sizing: border-box;
481
+ opacity: ${f};
482
+ }
483
+ `}}customElements.get("courier-inbox-skeleton-list-item")||customElements.define("courier-inbox-skeleton-list-item",_b);class pv extends HTMLElement{constructor(f,p){super(),K(this,"_shadow"),this._shadow=this.attachShadow({mode:"open"});const m=document.createElement("style");m.textContent=this.getStyles(f,p),this._shadow.appendChild(m);const T=document.createElement("div");T.className="skeleton-item",this._shadow.appendChild(T)}getStyles(f,p){var m,T,C,w,j,M,Y,ee,le,V,oe,se;const ue=((C=(T=(m=f.inbox)==null?void 0:m.loading)==null?void 0:T.animation)==null?void 0:C.barColor)??"#000",ae=ue.length===4?`#${ue[1]}${ue[1]}${ue[2]}${ue[2]}${ue[3]}${ue[3]}`:ue,de=parseInt(ae.slice(1,3),16),ke=parseInt(ae.slice(3,5),16),fe=parseInt(ae.slice(5,7),16),xe=`rgba(${de}, ${ke}, ${fe}, 0.8)`,Ye=`rgba(${de}, ${ke}, ${fe}, 0.4)`;return`
484
+ :host {
485
+ display: flex;
486
+ height: 100%;
487
+ width: ${p}%;
488
+ align-items: flex-start;
489
+ justify-content: flex-start;
490
+ }
491
+
492
+ .skeleton-item {
493
+ height: ${((M=(j=(w=f.inbox)==null?void 0:w.loading)==null?void 0:j.animation)==null?void 0:M.barHeight)??"14px"};
494
+ width: 100%;
495
+ background: linear-gradient(
496
+ 90deg,
497
+ ${xe} 25%,
498
+ ${Ye} 50%,
499
+ ${xe} 75%
500
+ );
501
+ background-size: 200% 100%;
502
+ animation: shimmer ${((le=(ee=(Y=f.inbox)==null?void 0:Y.loading)==null?void 0:ee.animation)==null?void 0:le.duration)??"2s"} ease-in-out infinite;
503
+ border-radius: ${((se=(oe=(V=f.inbox)==null?void 0:V.loading)==null?void 0:oe.animation)==null?void 0:se.barBorderRadius)??"14px"};
504
+ }
505
+
506
+ @keyframes shimmer {
507
+ 0% {
508
+ background-position: 200% 0;
509
+ }
510
+ 100% {
511
+ background-position: -200% 0;
512
+ }
513
+ }
514
+ `}}customElements.get("courier-skeleton-animated-row")||customElements.define("courier-skeleton-animated-row",pv);class Jg extends hv{constructor(f){super(),K(this,"_theme"),this._theme=f}defaultElement(){const f=document.createElement("div");f.className="list";const p=document.createElement("style");p.textContent=this.getStyles(),f.appendChild(p);for(let m=0;m<3;m++){const T=new _b(this._theme,1/(m+1));f.appendChild(T)}return this.shadow.appendChild(f),f}getStyles(){var f,p;return`
515
+ :host {
516
+ display: flex;
517
+ height: 100%;
518
+ width: 100%;
519
+ align-items: flex-start;
520
+ justify-content: flex-start;
521
+ overflow: hidden;
522
+ }
523
+
524
+ .list {
525
+ display: flex;
526
+ flex-direction: column;
527
+ gap: 8px;
528
+ width: 100%;
529
+ overflow: hidden;
530
+ }
531
+
532
+ .list > * {
533
+ border-bottom: ${((p=(f=this._theme.inbox)==null?void 0:f.loading)==null?void 0:p.divider)??"1px solid red"};
534
+ }
535
+
536
+ .list > *:last-child {
537
+ border-bottom: none;
538
+ }
539
+ `}}customElements.get("courier-inbox-skeleton-list")||customElements.define("courier-inbox-skeleton-list",Jg);class Ab extends HTMLElement{constructor(f){super(),K(this,"skeletonLoadingList"),K(this,"observer"),K(this,"customItem"),K(this,"onPaginationTrigger"),this.onPaginationTrigger=f.onPaginationTrigger,this.customItem=f.customItem;const p=this.attachShadow({mode:"open"}),m=document.createElement("style");if(m.textContent=this.getStyles(),p.appendChild(m),this.customItem)p.appendChild(this.customItem);else{const T=document.createElement("div");T.className="skeleton-container",this.skeletonLoadingList=new Jg(f.theme),this.skeletonLoadingList.build(void 0),T.appendChild(this.skeletonLoadingList),p.appendChild(T)}this.observer=new IntersectionObserver(T=>{T.forEach(C=>{C.isIntersecting&&this.onPaginationTrigger()})}),this.observer.observe(this)}getStyles(){return`
540
+ :host {
541
+ padding: 0;
542
+ margin: 0;
543
+ box-sizing: border-box;
544
+ }
545
+
546
+ .skeleton-container {
547
+ height: 150%;
548
+ }
549
+ `}disconnectedCallback(){this.observer.disconnect()}}customElements.get("courier-inbox-pagination-list-item")||customElements.define("courier-inbox-pagination-list-item",Ab);class Mb extends HTMLElement{constructor(f){super(),K(this,"_themeSubscription"),K(this,"_messages",[]),K(this,"_feedType","inbox"),K(this,"_isLoading",!0),K(this,"_error",null),K(this,"_canPaginate",!1),K(this,"_onMessageClick",null),K(this,"_onMessageActionClick",null),K(this,"_onMessageLongPress",null),K(this,"_onRefresh"),K(this,"_onPaginationTrigger"),K(this,"_listItemFactory"),K(this,"_paginationItemFactory"),K(this,"_loadingStateFactory"),K(this,"_emptyStateFactory"),K(this,"_errorStateFactory"),this._themeSubscription=f.themeManager.subscribe(T=>{this.refreshTheme()}),this._onRefresh=f.onRefresh,this._onPaginationTrigger=f.onPaginationTrigger,this._onMessageClick=f.onMessageClick,this._onMessageActionClick=f.onMessageActionClick,this._onMessageLongPress=f.onMessageLongPress;const p=this.attachShadow({mode:"open"}),m=document.createElement("style");m.textContent=this.getStyles(),p.appendChild(m)}get messages(){return this._messages}getStyles(){var f;const p=(f=this._themeSubscription.manager.getTheme().inbox)==null?void 0:f.list;return`
550
+ :host {
551
+ flex: 1;
552
+ width: 100%;
553
+ background-color: ${(p==null?void 0:p.backgroundColor)??Z.white[500]};
554
+ }
555
+
556
+ ul {
557
+ list-style: none;
558
+ padding: 0;
559
+ margin: 0;
560
+ height: 100%;
561
+ }
562
+ `}reset(){for(var f,p;(f=this.shadowRoot)!=null&&f.firstChild;)this.shadowRoot.removeChild(this.shadowRoot.firstChild);const m=document.createElement("style");m.textContent=this.getStyles(),(p=this.shadowRoot)==null||p.appendChild(m)}setDataSet(f){this._messages=[...f.messages],this._canPaginate=!!f.canPaginate,this._error=null,this._isLoading=!1,this.render()}addPage(f){this._messages=[...this._messages,...f.messages],this._canPaginate=!!f.canPaginate,this._error=null,this._isLoading=!1,this.render()}addMessage(f,p=0){this._messages.splice(p,0,f),this.render()}removeMessage(f=0){this._messages.splice(f,1),this.render()}updateMessage(f,p=0){this._messages[p]=f,this.render()}setFeedType(f){this._feedType=f,this._error=null,this._isLoading=!0,this.render()}setLoading(f){this._error=null,this._isLoading=f,this.render()}setError(f){this._error=f,this._isLoading=!1,this._messages=[],this.render()}setErrorNoClient(){this.setError(new Error("No user signed in"))}handleRetry(){this._onRefresh()}handleRefresh(){this._onRefresh()}render(){var f,p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae,de,ke,fe,xe,Ye,qe,ze,at,me,_e,Re,Ee,et,Mt,vt,D,W,te,ge,q,pe,ie,ve,He,rt,$e,dl,xt,Gt,Tn,Ul,ti,wl,uu,Jo,Hl,hn,Aa,$u,ou,Ma,su;this.reset();const tl=this._themeSubscription.manager.getTheme();if(this._error){const re=(f=tl.inbox)==null?void 0:f.error,zt=new mv({title:{text:((p=re==null?void 0:re.title)==null?void 0:p.text)??this._error.message,textColor:(T=(m=re==null?void 0:re.title)==null?void 0:m.font)==null?void 0:T.color,fontFamily:(w=(C=re==null?void 0:re.title)==null?void 0:C.font)==null?void 0:w.family,fontSize:(M=(j=re==null?void 0:re.title)==null?void 0:j.font)==null?void 0:M.size,fontWeight:(ee=(Y=re==null?void 0:re.title)==null?void 0:Y.font)==null?void 0:ee.weight},button:{text:(le=re==null?void 0:re.button)==null?void 0:le.text,backgroundColor:(V=re==null?void 0:re.button)==null?void 0:V.backgroundColor,hoverBackgroundColor:(oe=re==null?void 0:re.button)==null?void 0:oe.hoverBackgroundColor,activeBackgroundColor:(se=re==null?void 0:re.button)==null?void 0:se.activeBackgroundColor,textColor:(ae=(ue=re==null?void 0:re.button)==null?void 0:ue.font)==null?void 0:ae.color,fontFamily:(ke=(de=re==null?void 0:re.button)==null?void 0:de.font)==null?void 0:ke.family,fontSize:(xe=(fe=re==null?void 0:re.button)==null?void 0:fe.font)==null?void 0:xe.size,fontWeight:(qe=(Ye=re==null?void 0:re.button)==null?void 0:Ye.font)==null?void 0:qe.weight,shadow:(ze=re==null?void 0:re.button)==null?void 0:ze.shadow,border:(at=re==null?void 0:re.button)==null?void 0:at.border,borderRadius:(me=re==null?void 0:re.button)==null?void 0:me.borderRadius}});zt.build((_e=this._errorStateFactory)==null?void 0:_e.call(this,{feedType:this._feedType,error:this._error})),zt.setButtonClickCallback(()=>this.handleRetry()),(Re=this.shadowRoot)==null||Re.appendChild(zt);return}if(this._isLoading){const re=new Jg(tl);re.build((Ee=this._loadingStateFactory)==null?void 0:Ee.call(this,{feedType:this._feedType})),(et=this.shadowRoot)==null||et.appendChild(re);return}if(this._messages.length===0){const re=(Mt=tl.inbox)==null?void 0:Mt.empty,zt=new mv({title:{text:((vt=re==null?void 0:re.title)==null?void 0:vt.text)??`No ${this._feedType} messages yet`,textColor:(W=(D=re==null?void 0:re.title)==null?void 0:D.font)==null?void 0:W.color,fontFamily:(ge=(te=re==null?void 0:re.title)==null?void 0:te.font)==null?void 0:ge.family,fontSize:(pe=(q=re==null?void 0:re.title)==null?void 0:q.font)==null?void 0:pe.size,fontWeight:(ve=(ie=re==null?void 0:re.title)==null?void 0:ie.font)==null?void 0:ve.weight},button:{text:(He=re==null?void 0:re.button)==null?void 0:He.text,backgroundColor:(rt=re==null?void 0:re.button)==null?void 0:rt.backgroundColor,hoverBackgroundColor:($e=re==null?void 0:re.button)==null?void 0:$e.hoverBackgroundColor,activeBackgroundColor:(dl=re==null?void 0:re.button)==null?void 0:dl.activeBackgroundColor,textColor:(Gt=(xt=re==null?void 0:re.button)==null?void 0:xt.font)==null?void 0:Gt.color,fontFamily:(Ul=(Tn=re==null?void 0:re.button)==null?void 0:Tn.font)==null?void 0:Ul.family,fontSize:(wl=(ti=re==null?void 0:re.button)==null?void 0:ti.font)==null?void 0:wl.size,fontWeight:(Jo=(uu=re==null?void 0:re.button)==null?void 0:uu.font)==null?void 0:Jo.weight,shadow:(Hl=re==null?void 0:re.button)==null?void 0:Hl.shadow,border:(hn=re==null?void 0:re.button)==null?void 0:hn.border,borderRadius:(Aa=re==null?void 0:re.button)==null?void 0:Aa.borderRadius}});zt.build(($u=this._emptyStateFactory)==null?void 0:$u.call(this,{feedType:this._feedType})),zt.setButtonClickCallback(()=>this.handleRefresh()),(ou=this.shadowRoot)==null||ou.appendChild(zt);return}const cu=document.createElement("ul");if((Ma=this.shadowRoot)==null||Ma.appendChild(cu),this._messages.forEach((re,zt)=>{if(this._listItemFactory){cu.appendChild(this._listItemFactory({message:re,index:zt}));return}const Bt=new Cb(tl);Bt.setMessage(re,this._feedType),Bt.setOnItemClick(xn=>{var Ot;return(Ot=this._onMessageClick)==null?void 0:Ot.call(this,xn,zt)}),Bt.setOnItemActionClick((xn,Ot)=>{var ru;return(ru=this._onMessageActionClick)==null?void 0:ru.call(this,xn,Ot,zt)}),Bt.setOnItemLongPress(xn=>{var Ot;return(Ot=this._onMessageLongPress)==null?void 0:Ot.call(this,xn,zt)}),cu.appendChild(Bt)}),this._canPaginate){const re=new Ab({theme:tl,customItem:(su=this._paginationItemFactory)==null?void 0:su.call(this,{feedType:this._feedType}),onPaginationTrigger:()=>{var zt;return(zt=this._onPaginationTrigger)==null?void 0:zt.call(this,this._feedType)}});cu.appendChild(re)}}setLoadingStateFactory(f){this._loadingStateFactory=f,this.render()}setEmptyStateFactory(f){this._emptyStateFactory=f,this.render()}setErrorStateFactory(f){this._errorStateFactory=f,this.render()}setListItemFactory(f){this._listItemFactory=f,this.render()}setPaginationItemFactory(f){this._paginationItemFactory=f,this.render()}refreshTheme(){this.render()}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-list")||customElements.define("courier-inbox-list",Mb);class Rb extends HTMLElement{constructor(f){super(),K(this,"_option"),K(this,"_isSelected"),K(this,"_content"),K(this,"_itemIcon"),K(this,"_title"),K(this,"_selectionIcon"),K(this,"_style"),K(this,"_themeManager"),this._option=f.option,this._isSelected=f.isSelected,this._themeManager=f.themeManager;const p=this.attachShadow({mode:"open"});this._style=document.createElement("style"),this._content=document.createElement("div"),this._content.className="menu-item",this._itemIcon=new Vr(this._option.icon.svg??we.inbox),this._itemIcon.setAttribute("size","16"),this._title=document.createElement("p"),this._title.textContent=this._option.text;const m=document.createElement("div");m.className="spacer",this._selectionIcon=new Vr(we.check),this._content.appendChild(this._itemIcon),this._content.appendChild(this._title),this._content.appendChild(m),f.selectable&&this._content.appendChild(this._selectionIcon),p.appendChild(this._style),p.appendChild(this._content),this._selectionIcon.style.display=this._isSelected?"block":"none",this.refreshTheme()}getStyles(){var f,p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae,de,ke,fe,xe,Ye,qe,ze,at,me,_e,Re,Ee,et,Mt,vt,D,W,te;const ge=this._themeManager.getTheme();return`
563
+ :host {
564
+ display: flex;
565
+ flex-direction: row;
566
+ padding: 6px 12px;
567
+ cursor: pointer;
568
+ }
569
+
570
+ :host(:hover) {
571
+ background-color: ${((C=(T=(m=(p=(f=ge.inbox)==null?void 0:f.header)==null?void 0:p.menus)==null?void 0:m.popup)==null?void 0:T.list)==null?void 0:C.hoverBackgroundColor)??"red"};
572
+ }
573
+
574
+ :host(:active) {
575
+ background-color: ${((ee=(Y=(M=(j=(w=ge.inbox)==null?void 0:w.header)==null?void 0:j.menus)==null?void 0:M.popup)==null?void 0:Y.list)==null?void 0:ee.activeBackgroundColor)??"red"};
576
+ }
577
+
578
+ .menu-item {
579
+ display: flex;
580
+ align-items: center;
581
+ width: 100%;
582
+ gap: 12px;
583
+ }
584
+
585
+ .spacer {
586
+ flex: 1;
587
+ }
588
+
589
+ p {
590
+ margin: 0;
591
+ font-family: ${((ae=(ue=(se=(oe=(V=(le=ge.inbox)==null?void 0:le.header)==null?void 0:V.menus)==null?void 0:oe.popup)==null?void 0:se.list)==null?void 0:ue.font)==null?void 0:ae.family)??"inherit"};
592
+ font-weight: ${((qe=(Ye=(xe=(fe=(ke=(de=ge.inbox)==null?void 0:de.header)==null?void 0:ke.menus)==null?void 0:fe.popup)==null?void 0:xe.list)==null?void 0:Ye.font)==null?void 0:qe.weight)??"inherit"};
593
+ font-size: ${((Ee=(Re=(_e=(me=(at=(ze=ge.inbox)==null?void 0:ze.header)==null?void 0:at.menus)==null?void 0:me.popup)==null?void 0:_e.list)==null?void 0:Re.font)==null?void 0:Ee.size)??"14px"};
594
+ color: ${((te=(W=(D=(vt=(Mt=(et=ge.inbox)==null?void 0:et.header)==null?void 0:Mt.menus)==null?void 0:vt.popup)==null?void 0:D.list)==null?void 0:W.font)==null?void 0:te.color)??"red"};
595
+ white-space: nowrap;
596
+ }
597
+
598
+ .check-icon {
599
+ display: none;
600
+ }
601
+ `}refreshTheme(){var f,p,m,T;this._style.textContent=this.getStyles(),this._selectionIcon.updateColor(((f=this._option.selectionIcon)==null?void 0:f.color)??"red"),this._selectionIcon.updateSVG(((p=this._option.selectionIcon)==null?void 0:p.svg)??we.check),this._title.textContent=this._option.text??"Missing Text",this._itemIcon.updateColor(((m=this._option.icon)==null?void 0:m.color)??"red"),this._itemIcon.updateSVG(((T=this._option.icon)==null?void 0:T.svg)??we.inbox)}}customElements.get("courier-inbox-filter-menu-item")||customElements.define("courier-inbox-filter-menu-item",Rb);class Kg extends HTMLElement{constructor(f,p,m,T,C){super(),K(this,"_themeSubscription"),K(this,"_type"),K(this,"_selectedIndex",0),K(this,"_options"),K(this,"_selectable"),K(this,"_onMenuOpen"),K(this,"_menuButton"),K(this,"_menu"),K(this,"_style"),this._type=p,this._selectable=m,this._options=T,this._selectedIndex=0,this._onMenuOpen=C;const w=this.attachShadow({mode:"open"});this._menuButton=new Xm(p==="filters"?we.filter:we.overflow),this._menu=document.createElement("div"),this._menu.className=`menu ${p}`,this._style=document.createElement("style"),w.appendChild(this._style),w.appendChild(this._menuButton),w.appendChild(this._menu),this._menuButton.addEventListener("click",this.toggleMenu.bind(this)),document.addEventListener("click",this.handleOutsideClick.bind(this)),this._themeSubscription=f.subscribe(j=>{this.refreshTheme()}),this.refreshTheme()}getStyles(){var f,p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae,de,ke,fe,xe,Ye;const qe=this._themeSubscription.manager.getTheme();return`
602
+ :host {
603
+ position: relative;
604
+ display: inline-block;
605
+ }
606
+
607
+ .menu {
608
+ display: none;
609
+ position: absolute;
610
+ top: 42px;
611
+ right: -6px;
612
+ border-radius: ${((T=(m=(p=(f=qe.inbox)==null?void 0:f.header)==null?void 0:p.menus)==null?void 0:m.popup)==null?void 0:T.borderRadius)??"6px"};
613
+ border: ${((M=(j=(w=(C=qe.inbox)==null?void 0:C.header)==null?void 0:w.menus)==null?void 0:j.popup)==null?void 0:M.border)??"1px solid red"};
614
+ background: ${((V=(le=(ee=(Y=qe.inbox)==null?void 0:Y.header)==null?void 0:ee.menus)==null?void 0:le.popup)==null?void 0:V.backgroundColor)??"red"};
615
+ box-shadow: ${((ae=(ue=(se=(oe=qe.inbox)==null?void 0:oe.header)==null?void 0:se.menus)==null?void 0:ue.popup)==null?void 0:ae.shadow)??"0 4px 12px 0 red"};
616
+ z-index: 1000;
617
+ min-width: 200px;
618
+ overflow: hidden;
619
+ padding: 4px 0;
620
+ }
621
+
622
+ courier-inbox-filter-menu-item {
623
+ border-bottom: ${((Ye=(xe=(fe=(ke=(de=qe.inbox)==null?void 0:de.header)==null?void 0:ke.menus)==null?void 0:fe.popup)==null?void 0:xe.list)==null?void 0:Ye.divider)??"none"};
624
+ }
625
+
626
+ courier-inbox-filter-menu-item:last-child {
627
+ border-bottom: none;
628
+ }
629
+ `}refreshTheme(){var f,p,m,T,C,w;this._style.textContent=this.getStyles();const j=(p=(f=this._themeSubscription.manager.getTheme().inbox)==null?void 0:f.header)==null?void 0:p.menus,M=this._type==="filters",Y=M?(m=j==null?void 0:j.filters)==null?void 0:m.button:(T=j==null?void 0:j.actions)==null?void 0:T.button,ee=M?we.filter:we.overflow;this._menuButton.updateIconSVG(((C=Y==null?void 0:Y.icon)==null?void 0:C.svg)??ee),this._menuButton.updateIconColor(((w=Y==null?void 0:Y.icon)==null?void 0:w.color)??"red"),this._menuButton.updateBackgroundColor((Y==null?void 0:Y.backgroundColor)??"transparent"),this._menuButton.updateHoverBackgroundColor((Y==null?void 0:Y.hoverBackgroundColor)??"red"),this._menuButton.updateActiveBackgroundColor((Y==null?void 0:Y.activeBackgroundColor)??"red"),this.refreshMenuItems()}setOptions(f){this._options=f,this.refreshMenuItems()}refreshMenuItems(){this._menu.innerHTML="",this._options.forEach((f,p)=>{const m=new Rb({option:f,selectable:this._selectable,isSelected:this._selectedIndex===p,themeManager:this._themeSubscription.manager});m.addEventListener("click",()=>{this._selectedIndex=p,f.onClick(f),this.refreshMenuItems(),this.closeMenu()}),this._menu.appendChild(m)})}toggleMenu(f){f.stopPropagation();const p=this._menu.style.display!=="block";this._menu.style.display=p?"block":"none",p&&this._onMenuOpen()}handleOutsideClick(f){this.contains(f.target)||this.closeMenu()}closeMenu(){this._menu.style.display="none"}selectOption(f){this._selectedIndex=this._options.findIndex(p=>p.id===f.id),this.refreshMenuItems()}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-option-menu")||customElements.define("courier-inbox-option-menu",Kg);class Ig extends HTMLElement{constructor(f){super(),K(this,"_themeSubscription"),K(this,"_location"),K(this,"_count",0),K(this,"_badge"),K(this,"_style"),this._location=f.location,this._themeSubscription=f.themeBus.subscribe(m=>{this.refreshTheme(this._location)});const p=this.attachShadow({mode:"open"});this._badge=document.createElement("span"),this._badge.className="unread-badge",this._style=document.createElement("style"),this._style.textContent=this.getStyles(this._location),p.appendChild(this._style),p.appendChild(this._badge)}getStyles(f){var p,m,T,C,w,j,M;const Y=this._themeSubscription.manager.getTheme(),ee=f==="button"?(m=(p=Y.popup)==null?void 0:p.button)==null?void 0:m.unreadIndicator:(w=(C=(T=Y.inbox)==null?void 0:T.header)==null?void 0:C.filters)==null?void 0:w.unreadIndicator,le=ee==null?void 0:ee.backgroundColor,V=ee==null?void 0:ee.borderRadius,oe=(j=ee==null?void 0:ee.font)==null?void 0:j.color,se=(M=ee==null?void 0:ee.font)==null?void 0:M.size;return`
630
+ :host {
631
+ display: inline-block;
632
+ }
633
+
634
+ .unread-badge {
635
+ background-color: ${le};
636
+ color: ${oe};
637
+ border-radius: ${V};
638
+ padding: 4px 8px;
639
+ font-size: ${se};
640
+ text-align: center;
641
+ display: none;
642
+ pointer-events: none;
643
+ }
644
+ `}setCount(f){this._count=f,this.updateBadge()}refreshTheme(f){this._location=f,this.updateBadge()}updateBadge(){this._style.textContent=this.getStyles(this._location),this._count>0?(this._badge.textContent=this._count.toString(),this._badge.style.display="block"):this._badge.style.display="none"}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-unread-count-badge")||customElements.define("courier-unread-count-badge",Ig);class Db extends HTMLElement{constructor(f,p){super(),K(this,"_themeSubscription"),K(this,"_option"),K(this,"_feedType"),K(this,"_titleElement"),K(this,"_iconElement"),K(this,"_unreadBadge"),K(this,"_container"),K(this,"_style"),this._option=p;const m=this.attachShadow({mode:"open"});this._style=document.createElement("style"),this._container=document.createElement("div"),this._container.className="title-section",this._iconElement=new Vr(void 0,this._option.icon.svg),this._titleElement=document.createElement("h2"),this._unreadBadge=new Ig({themeBus:f,location:"header"}),this._container.appendChild(this._iconElement),this._container.appendChild(this._titleElement),this._container.appendChild(this._unreadBadge),m.appendChild(this._style),m.appendChild(this._container),this._themeSubscription=f.subscribe(T=>{this.refreshTheme(this._feedType??"inbox")}),this.refreshTheme(this._feedType??"inbox")}getStyles(){var f,p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae;const de=this._themeSubscription.manager.getTheme();return`
645
+ .title-section {
646
+ display: flex;
647
+ align-items: center;
648
+ gap: 8px;
649
+ position: relative;
650
+ }
651
+
652
+ courier-icon {
653
+ display: flex;
654
+ align-items: center;
655
+ }
656
+
657
+ h2 {
658
+ margin: 0;
659
+ font-family: ${((T=(m=(p=(f=de.inbox)==null?void 0:f.header)==null?void 0:p.filters)==null?void 0:m.font)==null?void 0:T.family)??"inherit"};
660
+ font-size: ${((M=(j=(w=(C=de.inbox)==null?void 0:C.header)==null?void 0:w.filters)==null?void 0:j.font)==null?void 0:M.size)??"18px"};
661
+ font-weight: ${((V=(le=(ee=(Y=de.inbox)==null?void 0:Y.header)==null?void 0:ee.filters)==null?void 0:le.font)==null?void 0:V.weight)??"500"};
662
+ color: ${((ae=(ue=(se=(oe=de.inbox)==null?void 0:oe.header)==null?void 0:se.filters)==null?void 0:ue.font)==null?void 0:ae.color)??"red"};
663
+ }
664
+
665
+ courier-unread-count-badge {
666
+ margin-left: 4px;
667
+ }
668
+ `}refreshTheme(f){this._feedType=f,this._style.textContent=this.getStyles(),this._unreadBadge.refreshTheme("header"),this.updateFilter()}updateSelectedOption(f,p,m){this._option=f,this._feedType=p,this._unreadBadge.setCount(m),this.updateFilter()}updateFilter(){var f,p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae,de,ke,fe,xe,Ye,qe,ze,at,me,_e,Re,Ee;const et=this._themeSubscription.manager.getTheme();switch(this._feedType){case"inbox":this._titleElement.textContent=((T=(m=(p=(f=et.inbox)==null?void 0:f.header)==null?void 0:p.filters)==null?void 0:m.inbox)==null?void 0:T.text)??"Inbox",this._iconElement.updateSVG(((Y=(M=(j=(w=(C=et.inbox)==null?void 0:C.header)==null?void 0:w.filters)==null?void 0:j.inbox)==null?void 0:M.icon)==null?void 0:Y.svg)??we.inbox),this._iconElement.updateColor(((se=(oe=(V=(le=(ee=et.inbox)==null?void 0:ee.header)==null?void 0:le.filters)==null?void 0:V.inbox)==null?void 0:oe.icon)==null?void 0:se.color)??"red");break;case"archive":this._titleElement.textContent=((ke=(de=(ae=(ue=et.inbox)==null?void 0:ue.header)==null?void 0:ae.filters)==null?void 0:de.archive)==null?void 0:ke.text)??"Archive",this._iconElement.updateSVG(((ze=(qe=(Ye=(xe=(fe=et.inbox)==null?void 0:fe.header)==null?void 0:xe.filters)==null?void 0:Ye.archive)==null?void 0:qe.icon)==null?void 0:ze.svg)??we.archive),this._iconElement.updateColor(((Ee=(Re=(_e=(me=(at=et.inbox)==null?void 0:at.header)==null?void 0:me.filters)==null?void 0:_e.archive)==null?void 0:Re.icon)==null?void 0:Ee.color)??"red");break}}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-header-title")||customElements.define("courier-inbox-header-title",Db);class zb extends hv{constructor(f){super(),K(this,"_themeSubscription"),K(this,"_feedType","inbox"),K(this,"_unreadCount",0),K(this,"_titleSection"),K(this,"_filterMenu"),K(this,"_actionMenu"),K(this,"_style"),K(this,"_onFeedTypeChange"),this._themeSubscription=f.themeManager.subscribe(p=>{this.refreshTheme()}),this._onFeedTypeChange=f.onFeedTypeChange}getFilterOptions(){var f,p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae,de,ke,fe,xe,Ye,qe,ze,at,me,_e,Re,Ee,et,Mt,vt,D,W,te,ge,q,pe;const ie=this._themeSubscription.manager.getTheme(),ve=(m=(p=(f=ie.inbox)==null?void 0:f.header)==null?void 0:p.menus)==null?void 0:m.filters;return[{id:"inbox",text:((T=ve==null?void 0:ve.inbox)==null?void 0:T.text)??"Inbox",icon:{color:((w=(C=ve==null?void 0:ve.inbox)==null?void 0:C.icon)==null?void 0:w.color)??"red",svg:((M=(j=ve==null?void 0:ve.inbox)==null?void 0:j.icon)==null?void 0:M.svg)??we.inbox},selectionIcon:{color:((se=(oe=(V=(le=(ee=(Y=ie.inbox)==null?void 0:Y.header)==null?void 0:ee.menus)==null?void 0:le.popup)==null?void 0:V.list)==null?void 0:oe.selectionIcon)==null?void 0:se.color)??"red",svg:((xe=(fe=(ke=(de=(ae=(ue=ie.inbox)==null?void 0:ue.header)==null?void 0:ae.menus)==null?void 0:de.popup)==null?void 0:ke.list)==null?void 0:fe.selectionIcon)==null?void 0:xe.svg)??we.check},onClick:He=>{this.handleOptionMenuItemClick("inbox",He)}},{id:"archive",text:((Ye=ve==null?void 0:ve.archive)==null?void 0:Ye.text)??"Archive",icon:{color:((ze=(qe=ve==null?void 0:ve.archive)==null?void 0:qe.icon)==null?void 0:ze.color)??"red",svg:((me=(at=ve==null?void 0:ve.archive)==null?void 0:at.icon)==null?void 0:me.svg)??we.archive},selectionIcon:{color:((vt=(Mt=(et=(Ee=(Re=(_e=ie.inbox)==null?void 0:_e.header)==null?void 0:Re.menus)==null?void 0:Ee.popup)==null?void 0:et.list)==null?void 0:Mt.selectionIcon)==null?void 0:vt.color)??"red",svg:((pe=(q=(ge=(te=(W=(D=ie.inbox)==null?void 0:D.header)==null?void 0:W.menus)==null?void 0:te.popup)==null?void 0:ge.list)==null?void 0:q.selectionIcon)==null?void 0:pe.svg)??we.check},onClick:He=>{this.handleOptionMenuItemClick("archive",He)}}]}getActionOptions(){var f,p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae,de,ke;const fe=(m=(p=(f=this._themeSubscription.manager.getTheme().inbox)==null?void 0:f.header)==null?void 0:p.menus)==null?void 0:m.actions;return[{id:"markAllRead",text:((T=fe==null?void 0:fe.markAllRead)==null?void 0:T.text)??"Mark All as Read",icon:{color:((w=(C=fe==null?void 0:fe.markAllRead)==null?void 0:C.icon)==null?void 0:w.color)??"red",svg:((M=(j=fe==null?void 0:fe.markAllRead)==null?void 0:j.icon)==null?void 0:M.svg)??we.inbox},selectionIcon:null,onClick:xe=>{un.shared.readAllMessages({canCallApi:!0})}},{id:"archiveAll",text:((Y=fe==null?void 0:fe.archiveAll)==null?void 0:Y.text)??"Archive All",icon:{color:((le=(ee=fe==null?void 0:fe.archiveAll)==null?void 0:ee.icon)==null?void 0:le.color)??"red",svg:((oe=(V=fe==null?void 0:fe.archiveAll)==null?void 0:V.icon)==null?void 0:oe.svg)??we.archive},selectionIcon:null,onClick:xe=>{var Ye;alert(JSON.stringify((Ye=Le.shared.client)==null?void 0:Ye.options))}},{id:"archiveRead",text:((se=fe==null?void 0:fe.archiveRead)==null?void 0:se.text)??"Archive Read",icon:{color:((ae=(ue=fe==null?void 0:fe.archiveRead)==null?void 0:ue.icon)==null?void 0:ae.color)??"red",svg:((ke=(de=fe==null?void 0:fe.archiveRead)==null?void 0:de.icon)==null?void 0:ke.svg)??we.archive},selectionIcon:null,onClick:xe=>{un.shared.archiveReadMessages({canCallApi:!0})}}]}static get observedAttributes(){return["icon","title","feed-type"]}refreshTheme(){var f,p,m,T,C,w,j;const M=this._themeSubscription.manager.getTheme(),Y=(f=this.shadow)==null?void 0:f.querySelector(".courier-inbox-header");Y&&(Y.style.backgroundColor=((m=(p=M.inbox)==null?void 0:p.header)==null?void 0:m.backgroundColor)??Z.white[500],Y.style.boxShadow=((C=(T=M.inbox)==null?void 0:T.header)==null?void 0:C.shadow)??`0px 1px 0px 0px ${Z.gray[500]}`),(w=this._filterMenu)==null||w.setOptions(this.getFilterOptions()),(j=this._actionMenu)==null||j.setOptions(this.getActionOptions())}handleOptionMenuItemClick(f,p){this._feedType=f,this._titleSection&&this._titleSection.updateSelectedOption(p,this._feedType,this._feedType==="inbox"?this._unreadCount:0),this._onFeedTypeChange(f)}render(f){this._feedType=f.feedType,this._unreadCount=f.unreadCount,this.refreshTitleSection()}refreshTitleSection(){var f,p;const m=this.getFilterOptions().find(T=>["inbox","archive"].includes(T.id)&&T.id===this._feedType);m&&((f=this._titleSection)==null||f.updateSelectedOption(m,this._feedType,this._feedType==="inbox"?this._unreadCount:0),(p=this._filterMenu)==null||p.selectOption(m))}build(f){var p;super.build(f),this._style=document.createElement("style"),this._style.textContent=this.getStyles(),(p=this.shadow)==null||p.appendChild(this._style),this.refreshTheme()}defaultElement(){const f=this.getFilterOptions();this._titleSection=new Db(this._themeSubscription.manager,f[0]),this._filterMenu=new Kg(this._themeSubscription.manager,"filters",!0,f,()=>{var C;(C=this._actionMenu)==null||C.closeMenu()}),this._actionMenu=new Kg(this._themeSubscription.manager,"actions",!1,this.getActionOptions(),()=>{var C;(C=this._filterMenu)==null||C.closeMenu()}),this._filterMenu.selectOption(f[0]);const p=document.createElement("div");p.className="spacer";const m=document.createElement("div");m.className="actions",m.appendChild(this._filterMenu),m.appendChild(this._actionMenu);const T=document.createElement("div");return T.className="courier-inbox-header",T.appendChild(this._titleSection),T.appendChild(p),T.appendChild(m),T}getStyles(){return`
669
+ :host {
670
+ z-index: 100;
671
+ }
672
+
673
+ .courier-inbox-header {
674
+ display: flex;
675
+ align-items: center;
676
+ justify-content: space-between;
677
+ padding: 10px 10px 10px 16px;
678
+ background-color: ${Z.white[500]};
679
+ box-shadow: 0px 1px 0px 0px ${Z.gray[500]};
680
+ }
681
+
682
+ .header-content {
683
+ display: flex;
684
+ align-items: center;
685
+ flex: 1;
686
+ }
687
+
688
+ .spacer {
689
+ flex: 1;
690
+ }
691
+
692
+ .actions {
693
+ display: flex;
694
+ align-items: center;
695
+ gap: 4px;
696
+ }
697
+ `}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-header")||customElements.define("courier-inbox-header",zb);class Wg{constructor(f){K(this,"events"),this.events=f}remove(){un.shared.removeDataStoreListener(this)}}const Qm={popup:{button:{icon:{color:Z.black[500],svg:we.inbox},backgroundColor:"transparent",hoverBackgroundColor:Z.black[50010],activeBackgroundColor:Z.black[50020],unreadIndicator:{font:{color:Z.white[500],size:"14px",family:void 0,weight:void 0},backgroundColor:Z.blue[500],borderRadius:"12px"}},window:{backgroundColor:Z.white[500],borderRadius:"8px",border:`1px solid ${Z.gray[500]}`,shadow:`0px 8px 16px -4px ${Z.gray[500]}`}},inbox:{header:{backgroundColor:Z.white[500],shadow:`0px 1px 0px 0px ${Z.gray[500]}`,filters:{font:{color:Z.black[500],family:void 0,size:"18px"},inbox:{icon:{color:Z.black[500],svg:we.inbox},text:"Inbox"},archive:{icon:{color:Z.black[500],svg:we.archive},text:"Archive"},unreadIndicator:{font:{color:Z.white[500],family:void 0,size:"14px"},backgroundColor:Z.blue[500],borderRadius:"12px"}},menus:{popup:{backgroundColor:Z.white[500],border:`1px solid ${Z.gray[500]}`,borderRadius:"4px",shadow:`0px 4px 8px -2px ${Z.gray[500]}`,list:{hoverBackgroundColor:Z.gray[200],activeBackgroundColor:Z.gray[500],divider:"none",font:{color:Z.black[500],family:void 0,size:"14px"},selectionIcon:{color:Z.black[500],svg:we.check}}},filters:{button:{icon:{color:Z.black[500],svg:we.filter},backgroundColor:"transparent",hoverBackgroundColor:Z.black[50010],activeBackgroundColor:Z.black[50020]},inbox:{icon:{color:Z.black[500],svg:we.inbox},text:"Inbox"},archive:{icon:{color:Z.black[500],svg:we.archive},text:"Archive"}},actions:{button:{icon:{color:Z.black[500],svg:we.overflow},backgroundColor:"transparent",hoverBackgroundColor:Z.black[50010],activeBackgroundColor:Z.black[50020]},markAllRead:{icon:{color:Z.black[500],svg:we.read},text:"Mark All as Read"},archiveAll:{icon:{color:Z.black[500],svg:we.archive},text:"Archive All"},archiveRead:{icon:{color:Z.black[500],svg:we.archiveRead},text:"Archive Read"}}}},list:{backgroundColor:Z.white[500],item:{backgroundColor:"transparent",unreadIndicatorColor:Z.blue[500],hoverBackgroundColor:Z.gray[200],activeBackgroundColor:Z.gray[500],actions:{backgroundColor:"transparent",hoverBackgroundColor:Z.gray[200],activeBackgroundColor:Z.gray[500],border:`1px solid ${Z.gray[500]}`,borderRadius:"4px",shadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.06)",font:{color:Z.black[500],family:void 0,size:"14px"}},title:{color:Z.black[500],family:void 0,size:"14px"},subtitle:{color:Z.gray[600],family:void 0,size:"14px"},time:{color:Z.gray[600],family:void 0,size:"14px"},divider:`1px solid ${Z.gray[200]}`,menu:{enabled:!0,backgroundColor:Z.white[500],border:`1px solid ${Z.gray[500]}`,borderRadius:"4px",shadow:`0px 2px 4px -2px ${Z.gray[500]}`,longPress:{displayDuration:4e3,vibrationDuration:50},item:{hoverBackgroundColor:Z.gray[200],activeBackgroundColor:Z.gray[500],borderRadius:"0px",read:{color:Z.black[500],svg:we.read},unread:{color:Z.black[500],svg:we.unread},archive:{color:Z.black[500],svg:we.archive},unarchive:{color:Z.black[500],svg:we.unarchive}}}}},loading:{animation:{barColor:Z.gray[500],barHeight:"14px",barBorderRadius:"14px",duration:"2s"},divider:`1px solid ${Z.gray[200]}`},empty:{title:{font:{size:"16px",weight:"500",color:Z.black[500]}},button:{text:"Refresh"}},error:{title:{font:{size:"16px",weight:"500",color:Z.black[500]}},button:{text:"Retry"}}}},Fg={popup:{button:{icon:{color:Z.white[500],svg:we.inbox},backgroundColor:"transparent",hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020],unreadIndicator:{font:{color:Z.white[500],size:"14px",family:void 0,weight:void 0},backgroundColor:Z.blue[500],borderRadius:"12px"}},window:{backgroundColor:Z.black[500],borderRadius:"8px",border:`1px solid ${Z.gray[400]}`,shadow:`0px 4px 8px -2px ${Z.white[50020]}`}},inbox:{header:{backgroundColor:Z.black[500],shadow:`0px 1px 0px 0px ${Z.gray[400]}`,filters:{font:{color:Z.white[500],family:void 0,size:"18px"},inbox:{icon:{color:Z.white[500],svg:we.inbox},text:"Inbox"},archive:{icon:{color:Z.white[500],svg:we.archive},text:"Archive"},unreadIndicator:{font:{color:Z.white[500],family:void 0,size:"14px"},backgroundColor:Z.blue[500],borderRadius:"12px"}},menus:{popup:{backgroundColor:Z.black[500],border:`1px solid ${Z.gray[400]}`,borderRadius:"4px",shadow:`0px 4px 8px -2px ${Z.white[50020]}`,list:{hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020],divider:"none",font:{color:Z.white[500],family:void 0,size:"14px"},selectionIcon:{color:Z.white[500],svg:we.check}}},filters:{button:{icon:{color:Z.white[500],svg:we.filter},backgroundColor:"transparent",hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020]},inbox:{icon:{color:Z.white[500],svg:we.inbox},text:"Inbox"},archive:{icon:{color:Z.white[500],svg:we.archive},text:"Archive"}},actions:{button:{icon:{color:Z.white[500],svg:we.overflow},backgroundColor:"transparent",hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020]},markAllRead:{icon:{color:Z.white[500],svg:we.read},text:"Mark All as Read"},archiveAll:{icon:{color:Z.white[500],svg:we.archive},text:"Archive All"},archiveRead:{icon:{color:Z.white[500],svg:we.archiveRead},text:"Archive Read"}}}},list:{backgroundColor:Z.black[500],item:{backgroundColor:"transparent",unreadIndicatorColor:Z.blue[500],hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020],actions:{backgroundColor:"transparent",hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020],border:`1px solid ${Z.gray[400]}`,borderRadius:"4px",shadow:`0px 1px 2px 0px ${Z.white[50010]}`,font:{color:Z.white[500],family:void 0,size:"14px"}},title:{color:Z.white[500],family:void 0,size:"14px"},subtitle:{color:Z.gray[500],family:void 0,size:"14px"},time:{color:Z.gray[500],family:void 0,size:"12px"},divider:`1px solid ${Z.gray[400]}`,menu:{enabled:!0,backgroundColor:Z.black[500],border:`1px solid ${Z.gray[400]}`,borderRadius:"4px",shadow:`0px 2px 4px -2px ${Z.white[50020]}`,longPress:{displayDuration:4e3,vibrationDuration:50},item:{hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020],borderRadius:"0px",read:{color:Z.white[500],svg:we.read},unread:{color:Z.white[500],svg:we.unread},archive:{color:Z.white[500],svg:we.archive},unarchive:{color:Z.white[500],svg:we.unarchive}}}}},loading:{animation:{barColor:Z.white[500],barHeight:"14px",barBorderRadius:"14px",duration:"2s"},divider:`1px solid ${Z.gray[400]}`},empty:{title:{font:{size:"16px",weight:"500",color:Z.white[500]}},button:{text:"Refresh"}},error:{title:{font:{size:"16px",weight:"500",color:Z.white[500]}},button:{text:"Retry"}}}},p2=(b,f)=>{var p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae,de,ke,fe,xe,Ye,qe,ze,at,me,_e,Re,Ee,et,Mt,vt,D,W,te,ge,q,pe,ie,ve,He,rt,$e,dl,xt,Gt,Tn,Ul,ti,wl,uu,Jo,Hl,hn,Aa,$u,ou,Ma,su,tl,cu,re,zt,Bt,xn,Ot,ru,Xr,Bd,fu,ta,Xn,Ra,kl,nn,Da,ni,za,li,Qr,Ju,Ku,hl,Ko,Zr,Nd,Zt,ln,En,du,Io,$r,Wo,Jr,ye,Iu,on,ai,Wu,na,$t,Fu,Qn,Oa,Ua,Kr,Fo,ac,Ir,la,Pu,Bl,Po,ic,ii,Cn,wa,ui,uc,mn,eo,oc,Ha,oi,hu,Ld,nl,es,ts,to,si,sc,cc,mu,Wr,ns,no,ci,qd,Fr,lo,ri,ls,pu,vu,Pr,rc,gu,fi,Nl,as,aa,ia,yu,di,fc,sn,is,us,_n,ka,os,ao,ef,dc,ss,io,hi,hc,tf,nf,Yd,mc,Vd,Gd,jd,uo,lf,pc,af,uf,vc,of,ua,mi,ml,Zn,oo,cs,gc,wn,sf,rs,pi,yc,cf,rf,so,co,bc,Ll,Sc,fs,ro,Ba,Na,Tc,vi,ff,ds,hs,pl,vl,xc,ql,Ec,Cc,gi,yi,_c,bu,Ac,ms,La,oa,Mc,Rc,cn,qa,Ya,Et,fo,Dc,ho,bi,Yl,gl,Va,Si,ps,sa,Ti,ll,yl,Vl,df,zc,hf,Oc,vs,mf,Uc,wc,Su,al,Hc,$n,Hn,Ga,Gl;const De=b==="light"?Qm:Fg;return{popup:{button:{...(p=De.popup)==null?void 0:p.button,...(m=f.popup)==null?void 0:m.button,icon:{...(C=(T=De.popup)==null?void 0:T.button)==null?void 0:C.icon,...(j=(w=f.popup)==null?void 0:w.button)==null?void 0:j.icon},unreadIndicator:{...(Y=(M=De.popup)==null?void 0:M.button)==null?void 0:Y.unreadIndicator,...(le=(ee=f.popup)==null?void 0:ee.button)==null?void 0:le.unreadIndicator}},window:{...(V=De.popup)==null?void 0:V.window,...(oe=f.popup)==null?void 0:oe.window}},inbox:{header:{...(se=De.inbox)==null?void 0:se.header,...(ue=f.inbox)==null?void 0:ue.header,filters:{...(de=(ae=De.inbox)==null?void 0:ae.header)==null?void 0:de.filters,...(fe=(ke=f.inbox)==null?void 0:ke.header)==null?void 0:fe.filters,inbox:{...(qe=(Ye=(xe=De.inbox)==null?void 0:xe.header)==null?void 0:Ye.filters)==null?void 0:qe.inbox,...(me=(at=(ze=f.inbox)==null?void 0:ze.header)==null?void 0:at.filters)==null?void 0:me.inbox,icon:{...(et=(Ee=(Re=(_e=De.inbox)==null?void 0:_e.header)==null?void 0:Re.filters)==null?void 0:Ee.inbox)==null?void 0:et.icon,...(W=(D=(vt=(Mt=f.inbox)==null?void 0:Mt.header)==null?void 0:vt.filters)==null?void 0:D.inbox)==null?void 0:W.icon}},archive:{...(q=(ge=(te=De.inbox)==null?void 0:te.header)==null?void 0:ge.filters)==null?void 0:q.archive,...(ve=(ie=(pe=f.inbox)==null?void 0:pe.header)==null?void 0:ie.filters)==null?void 0:ve.archive,icon:{...(dl=($e=(rt=(He=De.inbox)==null?void 0:He.header)==null?void 0:rt.filters)==null?void 0:$e.archive)==null?void 0:dl.icon,...(Ul=(Tn=(Gt=(xt=f.inbox)==null?void 0:xt.header)==null?void 0:Gt.filters)==null?void 0:Tn.archive)==null?void 0:Ul.icon}},unreadIndicator:{...(uu=(wl=(ti=De.inbox)==null?void 0:ti.header)==null?void 0:wl.filters)==null?void 0:uu.unreadIndicator,...(hn=(Hl=(Jo=f.inbox)==null?void 0:Jo.header)==null?void 0:Hl.filters)==null?void 0:hn.unreadIndicator}},menus:{...($u=(Aa=De.inbox)==null?void 0:Aa.header)==null?void 0:$u.menus,...(Ma=(ou=f.inbox)==null?void 0:ou.header)==null?void 0:Ma.menus,popup:{...(cu=(tl=(su=De.inbox)==null?void 0:su.header)==null?void 0:tl.menus)==null?void 0:cu.popup,...(Bt=(zt=(re=f.inbox)==null?void 0:re.header)==null?void 0:zt.menus)==null?void 0:Bt.popup,list:{...(Xr=(ru=(Ot=(xn=De.inbox)==null?void 0:xn.header)==null?void 0:Ot.menus)==null?void 0:ru.popup)==null?void 0:Xr.list,...(Xn=(ta=(fu=(Bd=f.inbox)==null?void 0:Bd.header)==null?void 0:fu.menus)==null?void 0:ta.popup)==null?void 0:Xn.list,font:{...(ni=(Da=(nn=(kl=(Ra=De.inbox)==null?void 0:Ra.header)==null?void 0:kl.menus)==null?void 0:nn.popup)==null?void 0:Da.list)==null?void 0:ni.font,...(Ku=(Ju=(Qr=(li=(za=f.inbox)==null?void 0:za.header)==null?void 0:li.menus)==null?void 0:Qr.popup)==null?void 0:Ju.list)==null?void 0:Ku.font},selectionIcon:{...(Zt=(Nd=(Zr=(Ko=(hl=De.inbox)==null?void 0:hl.header)==null?void 0:Ko.menus)==null?void 0:Zr.popup)==null?void 0:Nd.list)==null?void 0:Zt.selectionIcon,...($r=(Io=(du=(En=(ln=f.inbox)==null?void 0:ln.header)==null?void 0:En.menus)==null?void 0:du.popup)==null?void 0:Io.list)==null?void 0:$r.selectionIcon}}},filters:{...(ye=(Jr=(Wo=De.inbox)==null?void 0:Wo.header)==null?void 0:Jr.menus)==null?void 0:ye.filters,...(ai=(on=(Iu=f.inbox)==null?void 0:Iu.header)==null?void 0:on.menus)==null?void 0:ai.filters,inbox:{...(Fu=($t=(na=(Wu=De.inbox)==null?void 0:Wu.header)==null?void 0:na.menus)==null?void 0:$t.filters)==null?void 0:Fu.inbox,...(Kr=(Ua=(Oa=(Qn=f.inbox)==null?void 0:Qn.header)==null?void 0:Oa.menus)==null?void 0:Ua.filters)==null?void 0:Kr.inbox,icon:{...(Pu=(la=(Ir=(ac=(Fo=De.inbox)==null?void 0:Fo.header)==null?void 0:ac.menus)==null?void 0:Ir.filters)==null?void 0:la.inbox)==null?void 0:Pu.icon,...(Cn=(ii=(ic=(Po=(Bl=f.inbox)==null?void 0:Bl.header)==null?void 0:Po.menus)==null?void 0:ic.filters)==null?void 0:ii.inbox)==null?void 0:Cn.icon}},archive:{...(mn=(uc=(ui=(wa=De.inbox)==null?void 0:wa.header)==null?void 0:ui.menus)==null?void 0:uc.filters)==null?void 0:mn.archive,...(oi=(Ha=(oc=(eo=f.inbox)==null?void 0:eo.header)==null?void 0:oc.menus)==null?void 0:Ha.filters)==null?void 0:oi.archive,icon:{...(ts=(es=(nl=(Ld=(hu=De.inbox)==null?void 0:hu.header)==null?void 0:Ld.menus)==null?void 0:nl.filters)==null?void 0:es.archive)==null?void 0:ts.icon,...(mu=(cc=(sc=(si=(to=f.inbox)==null?void 0:to.header)==null?void 0:si.menus)==null?void 0:sc.filters)==null?void 0:cc.archive)==null?void 0:mu.icon}}},actions:{...(no=(ns=(Wr=De.inbox)==null?void 0:Wr.header)==null?void 0:ns.menus)==null?void 0:no.actions,...(Fr=(qd=(ci=f.inbox)==null?void 0:ci.header)==null?void 0:qd.menus)==null?void 0:Fr.actions,markAllRead:{...(pu=(ls=(ri=(lo=De.inbox)==null?void 0:lo.header)==null?void 0:ri.menus)==null?void 0:ls.actions)==null?void 0:pu.markAllRead,...(gu=(rc=(Pr=(vu=f.inbox)==null?void 0:vu.header)==null?void 0:Pr.menus)==null?void 0:rc.actions)==null?void 0:gu.markAllRead,icon:{...(ia=(aa=(as=(Nl=(fi=De.inbox)==null?void 0:fi.header)==null?void 0:Nl.menus)==null?void 0:as.actions)==null?void 0:aa.markAllRead)==null?void 0:ia.icon,...(is=(sn=(fc=(di=(yu=f.inbox)==null?void 0:yu.header)==null?void 0:di.menus)==null?void 0:fc.actions)==null?void 0:sn.markAllRead)==null?void 0:is.icon}},archiveAll:{...(os=(ka=(_n=(us=De.inbox)==null?void 0:us.header)==null?void 0:_n.menus)==null?void 0:ka.actions)==null?void 0:os.archiveAll,...(ss=(dc=(ef=(ao=f.inbox)==null?void 0:ao.header)==null?void 0:ef.menus)==null?void 0:dc.actions)==null?void 0:ss.archiveAll,icon:{...(nf=(tf=(hc=(hi=(io=De.inbox)==null?void 0:io.header)==null?void 0:hi.menus)==null?void 0:hc.actions)==null?void 0:tf.archiveAll)==null?void 0:nf.icon,...(jd=(Gd=(Vd=(mc=(Yd=f.inbox)==null?void 0:Yd.header)==null?void 0:mc.menus)==null?void 0:Vd.actions)==null?void 0:Gd.archiveAll)==null?void 0:jd.icon}},archiveRead:{...(af=(pc=(lf=(uo=De.inbox)==null?void 0:uo.header)==null?void 0:lf.menus)==null?void 0:pc.actions)==null?void 0:af.archiveRead,...(ua=(of=(vc=(uf=f.inbox)==null?void 0:uf.header)==null?void 0:vc.menus)==null?void 0:of.actions)==null?void 0:ua.archiveRead,icon:{...(cs=(oo=(Zn=(ml=(mi=De.inbox)==null?void 0:mi.header)==null?void 0:ml.menus)==null?void 0:Zn.actions)==null?void 0:oo.archiveRead)==null?void 0:cs.icon,...(pi=(rs=(sf=(wn=(gc=f.inbox)==null?void 0:gc.header)==null?void 0:wn.menus)==null?void 0:sf.actions)==null?void 0:rs.archiveRead)==null?void 0:pi.icon}}}}},list:{...(yc=De.inbox)==null?void 0:yc.list,...(cf=f.inbox)==null?void 0:cf.list,item:{...(so=(rf=De.inbox)==null?void 0:rf.list)==null?void 0:so.item,...(bc=(co=f.inbox)==null?void 0:co.list)==null?void 0:bc.item,menu:{...(fs=(Sc=(Ll=De.inbox)==null?void 0:Ll.list)==null?void 0:Sc.item)==null?void 0:fs.menu,...(Na=(Ba=(ro=f.inbox)==null?void 0:ro.list)==null?void 0:Ba.item)==null?void 0:Na.menu,item:{...(ds=(ff=(vi=(Tc=De.inbox)==null?void 0:Tc.list)==null?void 0:vi.item)==null?void 0:ff.menu)==null?void 0:ds.item,...(xc=(vl=(pl=(hs=f.inbox)==null?void 0:hs.list)==null?void 0:pl.item)==null?void 0:vl.menu)==null?void 0:xc.item,read:{...(yi=(gi=(Cc=(Ec=(ql=De.inbox)==null?void 0:ql.list)==null?void 0:Ec.item)==null?void 0:Cc.menu)==null?void 0:gi.item)==null?void 0:yi.read,...(La=(ms=(Ac=(bu=(_c=f.inbox)==null?void 0:_c.list)==null?void 0:bu.item)==null?void 0:Ac.menu)==null?void 0:ms.item)==null?void 0:La.read},unread:{...(qa=(cn=(Rc=(Mc=(oa=De.inbox)==null?void 0:oa.list)==null?void 0:Mc.item)==null?void 0:Rc.menu)==null?void 0:cn.item)==null?void 0:qa.unread,...(ho=(Dc=(fo=(Et=(Ya=f.inbox)==null?void 0:Ya.list)==null?void 0:Et.item)==null?void 0:fo.menu)==null?void 0:Dc.item)==null?void 0:ho.unread},archive:{...(Si=(Va=(gl=(Yl=(bi=De.inbox)==null?void 0:bi.list)==null?void 0:Yl.item)==null?void 0:gl.menu)==null?void 0:Va.item)==null?void 0:Si.archive,...(yl=(ll=(Ti=(sa=(ps=f.inbox)==null?void 0:ps.list)==null?void 0:sa.item)==null?void 0:Ti.menu)==null?void 0:ll.item)==null?void 0:yl.archive},unarchive:{...(Oc=(hf=(zc=(df=(Vl=De.inbox)==null?void 0:Vl.list)==null?void 0:df.item)==null?void 0:zc.menu)==null?void 0:hf.item)==null?void 0:Oc.unarchive,...(Su=(wc=(Uc=(mf=(vs=f.inbox)==null?void 0:vs.list)==null?void 0:mf.item)==null?void 0:Uc.menu)==null?void 0:wc.item)==null?void 0:Su.unarchive}}}}},loading:{...(al=De.inbox)==null?void 0:al.loading,...(Hc=f.inbox)==null?void 0:Hc.loading},empty:{...($n=De.inbox)==null?void 0:$n.empty,...(Hn=f.inbox)==null?void 0:Hn.empty},error:{...(Ga=De.inbox)==null?void 0:Ga.error,...(Gl=f.inbox)==null?void 0:Gl.error}}}};class Ob{constructor(f){K(this,"THEME_CHANGE_EVENT","courier_inbox_theme_change"),K(this,"_theme"),K(this,"_lightTheme",Qm),K(this,"_darkTheme",Fg),K(this,"_target"),K(this,"_subscriptions",[]),K(this,"_userMode"),K(this,"_systemMode"),K(this,"_systemThemeCleanup"),this._theme=f,this._target=new EventTarget,this._userMode="system",this._systemMode=bb(),this.setLightTheme(Qm),this.setDarkTheme(Fg),this._systemThemeCleanup=Sb(p=>{this._systemMode=p,this.updateTheme()})}setLightTheme(f){this._lightTheme=f,this._systemMode==="light"&&this.updateTheme()}setDarkTheme(f){this._darkTheme=f,this._systemMode==="dark"&&this.updateTheme()}get currentSystemTheme(){return this._systemMode}getTheme(){return this._theme}updateTheme(){const f=this._userMode==="system"?this._systemMode:this._userMode,p=f==="light"?this._lightTheme:this._darkTheme,m=p2(f,p);this.setTheme(m)}setTheme(f){f!==this._theme&&(this._theme=f,this._target.dispatchEvent(new CustomEvent(this.THEME_CHANGE_EVENT,{detail:{theme:f}})))}setMode(f){this._userMode=f,this.updateTheme()}subscribe(f){const p=new AbortController;this._target.addEventListener(this.THEME_CHANGE_EVENT,T=>{f(T.detail.theme)},{signal:p.signal});const m={manager:this,unsubscribe:()=>{p.abort();const T=this._subscriptions.indexOf(m);T>-1&&this._subscriptions.splice(T,1)}};return this._subscriptions.push(m),m}cleanup(){this._systemThemeCleanup&&this._systemThemeCleanup(),this._subscriptions.forEach(f=>f.unsubscribe()),this._subscriptions=[]}}class Ub extends HTMLElement{constructor(f){var p;super(),K(this,"_currentFeed","inbox"),K(this,"_themeManager"),K(this,"_shadow"),K(this,"_list"),K(this,"_datastoreListener"),K(this,"_authListener"),K(this,"_style"),K(this,"_header"),K(this,"_headerFactory"),K(this,"_onMessageClick"),K(this,"_onMessageActionClick"),K(this,"_onMessageLongPress"),K(this,"_defaultProps",{title:"Inbox",icon:we.inbox,feedType:this._currentFeed,height:"768px"}),this._shadow=this.attachShadow({mode:"open"}),this._themeManager=f??new Ob(Qm),this._header=new zb({themeManager:this._themeManager,onFeedTypeChange:m=>{this.setFeedType(m)}}),this._header.build(void 0),this._shadow.appendChild(this._header),this._list=new Mb({themeManager:this._themeManager,onRefresh:()=>{this.refresh()},onPaginationTrigger:async m=>{var T,C;try{await un.shared.fetchNextPageOfMessages({feedType:m})}catch(w){(C=(T=Le.shared.client)==null?void 0:T.options.logger)==null||C.error("Failed to fetch next page of messages:",w)}},onMessageClick:(m,T)=>{var C;un.shared.clickMessage({message:m}),this.dispatchEvent(new CustomEvent("message-click",{detail:{message:m,index:T},bubbles:!0,composed:!0})),(C=this._onMessageClick)==null||C.call(this,{message:m,index:T})},onMessageActionClick:(m,T,C)=>{var w;this.dispatchEvent(new CustomEvent("message-action-click",{detail:{message:m,action:T,index:C},bubbles:!0,composed:!0})),(w=this._onMessageActionClick)==null||w.call(this,{message:m,action:T,index:C})},onMessageLongPress:(m,T)=>{var C;this.dispatchEvent(new CustomEvent("message-long-press",{detail:{message:m,index:T},bubbles:!0,composed:!0})),(C=this._onMessageLongPress)==null||C.call(this,{message:m,index:T})}}),this._style=document.createElement("style"),this.refreshTheme(),this._shadow.appendChild(this._style),this._shadow.appendChild(this._list),this._datastoreListener=new Wg({onError:m=>{this._list.setError(m)},onDataSetChange:(m,T)=>{this._currentFeed===T&&(this._list.setDataSet(m),this.updateHeader())},onPageAdded:(m,T)=>{this._currentFeed===T&&(this._list.addPage(m),this.updateHeader())},onMessageAdd:(m,T,C)=>{this._currentFeed===C&&(this._list.addMessage(m,T),this.updateHeader())},onMessageRemove:(m,T,C)=>{this._currentFeed===C&&(this._list.removeMessage(T),this.updateHeader())},onMessageUpdate:(m,T,C)=>{this._currentFeed===C&&(this._list.updateMessage(m,T),this.updateHeader())},onUnreadCountChange:m=>{this.updateHeader()}}),un.shared.addDataStoreListener(this._datastoreListener),this._themeManager.subscribe(m=>{this.refreshTheme()}),this._authListener=Le.shared.addAuthenticationListener(m=>{this.refresh()}),(p=Le.shared.client)!=null&&p.options.userId&&this.refresh()}get theme(){return this._themeManager.getTheme()}setLightTheme(f){this._themeManager.setLightTheme(f)}setDarkTheme(f){this._themeManager.setDarkTheme(f)}static get observedAttributes(){return["height","light-theme","dark-theme","mode","message-click","message-action-click","message-long-press"]}refreshTheme(){this._style.textContent=this.getStyles()}getStyles(){return`
698
+ :host {
699
+ display: flex;
700
+ flex-direction: column;
701
+ width: 100%;
702
+ height: ${this._defaultProps.height};
703
+ }
704
+
705
+ courier-inbox-header {
706
+ flex-shrink: 0;
707
+ }
708
+
709
+ courier-inbox-list {
710
+ flex: 1;
711
+ overflow-y: auto;
712
+ overflow-x: hidden;
713
+ }
714
+ `}setHeader(f){this._headerFactory=f,this.updateHeader()}removeHeader(){this._headerFactory=null,this.updateHeader()}setLoadingState(f){this._list.setLoadingStateFactory(f)}setEmptyState(f){this._list.setEmptyStateFactory(f)}setErrorState(f){this._list.setErrorStateFactory(f)}setListItem(f){this._list.setListItemFactory(f)}setPaginationItem(f){this._list.setPaginationItemFactory(f)}onMessageClick(f){this._onMessageClick=f}onMessageActionClick(f){this._onMessageActionClick=f}onMessageLongPress(f){this._onMessageLongPress=f}setFeedType(f){this._currentFeed=f,this._list.setFeedType(f),this.updateHeader(),this.load({feedType:this._currentFeed,canUseCache:!0})}updateHeader(){const f={feedType:this._currentFeed,unreadCount:un.shared.unreadCount,messageCount:this._list.messages.length};switch(this._headerFactory){case void 0:this._header.render(f);break;case null:this._header.build(null);break;default:const p=this._headerFactory(f);this._header.build(p);break}}async load(f){await un.shared.load(f)}refresh(){this.load({feedType:this._currentFeed,canUseCache:!1})}connectedCallback(){this.refresh()}disconnectedCallback(){var f,p;this._themeManager.cleanup(),(f=this._datastoreListener)==null||f.remove(),(p=this._authListener)==null||p.remove()}attributeChangedCallback(f,p,m){var T,C,w,j,M,Y;if(p!==m)switch(f){case"height":const ee=m||this._defaultProps.height;this.style.height=ee;break;case"message-click":if(m)try{this._onMessageClick=new Function("props",m)}catch(le){(C=(T=Le.shared.client)==null?void 0:T.options.logger)==null||C.error("Failed to parse message-click handler:",le)}else this._onMessageClick=void 0;break;case"message-action-click":if(m)try{this._onMessageActionClick=new Function("props",m)}catch(le){(j=(w=Le.shared.client)==null?void 0:w.options.logger)==null||j.error("Failed to parse message-action-click handler:",le)}else this._onMessageActionClick=void 0;break;case"message-long-press":if(m)try{this._onMessageLongPress=new Function("props",m)}catch(le){(Y=(M=Le.shared.client)==null?void 0:M.options.logger)==null||Y.error("Failed to parse message-long-press handler:",le)}else this._onMessageLongPress=void 0;break;case"light-theme":m&&this.setLightTheme(JSON.parse(m));break;case"dark-theme":m&&this.setDarkTheme(JSON.parse(m));break;case"mode":this._themeManager.setMode(m);break}}}customElements.get("courier-inbox")||customElements.define("courier-inbox",Ub);class wb extends hv{constructor(f){super(),K(this,"_themeSubscription"),K(this,"_container"),K(this,"_triggerButton"),K(this,"_unreadCountBadge"),this._themeSubscription=f.subscribe(p=>{this.updateTheme()})}defaultElement(){this._container=document.createElement("div"),this._container.className="menu-button-container",this._triggerButton=new Xm(we.inbox),this._unreadCountBadge=new Ig({themeBus:this._themeSubscription.manager,location:"button"}),this._unreadCountBadge.id="unread-badge";const f=document.createElement("style");return f.textContent=this.getStyles(),this._container.appendChild(f),this._container.appendChild(this._triggerButton),this._container.appendChild(this._unreadCountBadge),this.shadow.appendChild(this._container),this.updateTheme(),this._container}getStyles(){return`
715
+ .menu-button-container {
716
+ position: relative;
717
+ display: inline-block;
718
+ }
719
+
720
+ #unread-badge {
721
+ position: absolute;
722
+ top: -8px;
723
+ left: 50%;
724
+ pointer-events: none;
725
+ }
726
+ `}onUnreadCountChange(f){var p;(p=this._unreadCountBadge)==null||p.setCount(f),this.updateTheme()}updateTheme(){var f,p,m,T,C,w,j,M,Y,ee,le,V,oe,se,ue,ae,de,ke;const fe=this._themeSubscription.manager.getTheme();(T=this._triggerButton)==null||T.updateIconColor(((m=(p=(f=fe==null?void 0:fe.popup)==null?void 0:f.button)==null?void 0:p.icon)==null?void 0:m.color)??Z.black[500]),(M=this._triggerButton)==null||M.updateIconSVG(((j=(w=(C=fe==null?void 0:fe.popup)==null?void 0:C.button)==null?void 0:w.icon)==null?void 0:j.svg)??we.inbox),(le=this._triggerButton)==null||le.updateBackgroundColor(((ee=(Y=fe==null?void 0:fe.popup)==null?void 0:Y.button)==null?void 0:ee.backgroundColor)??"transparent"),(se=this._triggerButton)==null||se.updateHoverBackgroundColor(((oe=(V=fe==null?void 0:fe.popup)==null?void 0:V.button)==null?void 0:oe.hoverBackgroundColor)??Z.black[50010]),(de=this._triggerButton)==null||de.updateActiveBackgroundColor(((ae=(ue=fe==null?void 0:fe.popup)==null?void 0:ue.button)==null?void 0:ae.activeBackgroundColor)??Z.black[50020]),(ke=this._unreadCountBadge)==null||ke.refreshTheme("button")}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-menu-button")||customElements.define("courier-inbox-menu-button",wb);class v2 extends HTMLElement{constructor(){super(),K(this,"_width","440px"),K(this,"_height","440px"),K(this,"_popupAlignment","top-right"),K(this,"_top","40px"),K(this,"_right","0"),K(this,"_bottom","40px"),K(this,"_left","0"),K(this,"_themeManager",new Ob(Qm)),K(this,"_triggerButton"),K(this,"_popup"),K(this,"_inbox"),K(this,"_style"),K(this,"_datastoreListener"),K(this,"_popupMenuButtonFactory");const f=this.attachShadow({mode:"open"});this._triggerButton=new wb(this._themeManager),this._triggerButton.build(void 0),this._popup=document.createElement("div"),this._popup.className="popup",this._inbox=new Ub(this._themeManager),this._inbox.setAttribute("height","100%"),this._style=document.createElement("style"),this.refreshTheme(),f.appendChild(this._style),f.appendChild(this._triggerButton),f.appendChild(this._popup),this._popup.appendChild(this._inbox),this._triggerButton.addEventListener("click",this.togglePopup.bind(this)),document.addEventListener("click",this.handleOutsideClick.bind(this)),this.updatePopupPosition(),this._datastoreListener=new Wg(this),un.shared.addDataStoreListener(this._datastoreListener),this._themeManager.subscribe(p=>{this.refreshTheme()})}get theme(){return this._themeManager.getTheme()}setLightTheme(f){this._themeManager.setLightTheme(f)}setDarkTheme(f){this._themeManager.setDarkTheme(f)}static get observedAttributes(){return["popup-alignment","message-click","message-action-click","message-long-press","popup-width","popup-height","top","right","bottom","left","light-theme","dark-theme","mode"]}refreshTheme(){this._style.textContent=this.getStyles()}getStyles(){var f,p,m,T,C,w,j,M;return`
727
+ :host {
728
+ display: inline-block;
729
+ position: relative;
730
+ }
731
+
732
+ .menu-button-container {
733
+ position: relative;
734
+ display: inline-block;
735
+ }
736
+
737
+ .popup {
738
+ display: none;
739
+ position: absolute;
740
+ background: ${((p=(f=this.theme.popup)==null?void 0:f.window)==null?void 0:p.backgroundColor)??"red"};
741
+ border-radius: ${((T=(m=this.theme.popup)==null?void 0:m.window)==null?void 0:T.borderRadius)??"8px"};
742
+ border: ${((w=(C=this.theme.popup)==null?void 0:C.window)==null?void 0:w.border)??"1px solid red"};
743
+ box-shadow: ${((M=(j=this.theme.popup)==null?void 0:j.window)==null?void 0:M.shadow)??"0px 8px 16px -4px red"};
744
+ z-index: 1000;
745
+ width: ${this._width};
746
+ height: ${this._height};
747
+ overflow: hidden;
748
+ transform: translateZ(0);
749
+ will-change: transform;
750
+ }
751
+
752
+ #unread-badge {
753
+ position: absolute;
754
+ top: -8px;
755
+ left: 50%;
756
+ pointer-events: none;
757
+ }
758
+
759
+ courier-inbox {
760
+ height: 100%;
761
+ }
762
+ `}attributeChangedCallback(f,p,m){switch(f){case"popup-alignment":this.isValidPosition(m)&&(this._popupAlignment=m,this.updatePopupPosition());break;case"popup-width":this._width=m,this.setSize(m,this._height);break;case"popup-height":this._height=m,this.setSize(this._width,m);break;case"top":this._top=m,this.updatePopupPosition();break;case"right":this._right=m,this.updatePopupPosition();break;case"bottom":this._bottom=m,this.updatePopupPosition();break;case"left":this._left=m,this.updatePopupPosition();break;case"light-theme":m&&this.setLightTheme(JSON.parse(m));break;case"dark-theme":m&&this.setDarkTheme(JSON.parse(m));break;case"mode":this._themeManager.setMode(m);break}}onUnreadCountChange(f){this.render()}onMessageClick(f){this._inbox.onMessageClick(f)}onMessageActionClick(f){this._inbox.onMessageActionClick(f)}onMessageLongPress(f){this._inbox.onMessageLongPress(f)}isValidPosition(f){return["top-right","top-left","top-center","bottom-right","bottom-left","bottom-center","center-right","center-left","center-center"].includes(f)}updatePopupPosition(){switch(this._popup.style.top="",this._popup.style.bottom="",this._popup.style.left="",this._popup.style.right="",this._popup.style.margin="",this._popup.style.transform="",this._popupAlignment){case"top-right":this._popup.style.top=this._top,this._popup.style.right=this._right;break;case"top-left":this._popup.style.top=this._top,this._popup.style.left=this._left;break;case"top-center":this._popup.style.top=this._top,this._popup.style.left="50%",this._popup.style.transform="translateX(-50%)";break;case"bottom-right":this._popup.style.bottom=this._bottom,this._popup.style.right=this._right;break;case"bottom-left":this._popup.style.bottom=this._bottom,this._popup.style.left=this._left;break;case"bottom-center":this._popup.style.bottom=this._bottom,this._popup.style.left="50%",this._popup.style.transform="translateX(-50%)";break;case"center-right":this._popup.style.top="50%",this._popup.style.right=this._right,this._popup.style.transform="translateY(-50%)";break;case"center-left":this._popup.style.top="50%",this._popup.style.left=this._left,this._popup.style.transform="translateY(-50%)";break;case"center-center":this._popup.style.top="50%",this._popup.style.left="50%",this._popup.style.transform="translate(-50%, -50%)";break}}togglePopup(f){f.stopPropagation(),this._popup.style.display==="block"?this._popup.style.display="none":this._popup.style.display="block"}handleOutsideClick(f){this.contains(f.target)||(this._popup.style.display="none")}setContent(f){this._inbox.innerHTML="",this._inbox.appendChild(f)}setSize(f,p){this._width=f,this._height=p,this._popup.style.width=f,this._popup.style.height=p}setPosition(f){var p,m;this.isValidPosition(f)?(this._popupAlignment=f,this.updatePopupPosition()):(m=(p=Le.shared.client)==null?void 0:p.options.logger)==null||m.error(`Invalid position: ${f}`)}setFeedType(f){this._inbox.setFeedType(f)}setPopupHeader(f){this._inbox.setHeader(f)}removePopupHeader(){this._inbox.removeHeader()}setPopupLoadingState(f){this._inbox.setLoadingState(f)}setPopupEmptyState(f){this._inbox.setEmptyState(f)}setPopupErrorState(f){this._inbox.setErrorState(f)}setPopupListItem(f){this._inbox.setListItem(f)}setPopupPaginationItem(f){this._inbox.setPaginationItem(f)}setPopupMenuButton(f){this._popupMenuButtonFactory=f,this.render()}render(){const f=un.shared.unreadCount;switch(this._popupMenuButtonFactory){case void 0:case null:this._triggerButton.build(void 0),this._triggerButton.onUnreadCountChange(f);break;default:const p=this._popupMenuButtonFactory({unreadCount:f});this._triggerButton.build(p);break}}disconnectedCallback(){var f;(f=this._datastoreListener)==null||f.remove(),this._themeManager.cleanup()}}customElements.get("courier-inbox-menu")||customElements.define("courier-inbox-menu",v2);var g2=Object.defineProperty,y2=(b,f,p)=>f in b?g2(b,f,{enumerable:!0,configurable:!0,writable:!0,value:p}):b[f]=p,kt=(b,f,p)=>y2(b,typeof f!="symbol"?f+"":f,p);const Hb=class JS{constructor(f,p){kt(this,"webSocket",null),kt(this,"pingInterval",null),kt(this,"onOpen"),kt(this,"onMessageReceived"),kt(this,"onClose"),kt(this,"onError"),kt(this,"url"),kt(this,"options"),this.url=f,this.options=p}get isConnected(){return this.webSocket!==null}async connect(){return this.disconnect(),new Promise((f,p)=>{try{this.webSocket=new WebSocket(this.url),this.webSocket.onopen=()=>{var m;(m=this.onOpen)==null||m.call(this),f()},this.webSocket.onmessage=m=>{var T;(T=this.onMessageReceived)==null||T.call(this,m.data)},this.webSocket.onclose=m=>{var T;this.webSocket=null,(T=this.onClose)==null||T.call(this,m.code,m.reason)},this.webSocket.onerror=m=>{var T;this.webSocket=null;const C=new Error("Courier Socket connection failed");C.originalEvent=m,(T=this.onError)==null||T.call(this,C),p(C)}}catch(m){this.webSocket=null,p(m)}})}disconnect(){this.stopPing(),this.webSocket&&(this.webSocket.close(JS.NORMAL_CLOSURE_STATUS),this.webSocket=null)}async send(f){if(!this.webSocket)return!1;const p=JSON.stringify(f);return this.webSocket.send(p)!==void 0}keepAlive(f){this.stopPing(),this.pingInterval=setInterval(async()=>{var p;try{await this.send({action:"keepAlive"})}catch(m){(p=this.options.logger)==null||p.error("Error occurred on Keep Alive:",m)}},(f==null?void 0:f.intervalInMillis)??3e5)}stopPing(){this.pingInterval&&(clearInterval(this.pingInterval),this.pingInterval=null)}};kt(Hb,"NORMAL_CLOSURE_STATUS",1e3);let b2=Hb;const kb=b=>({courier:{rest:(b==null?void 0:b.courier.rest)||"https://api.courier.com",graphql:(b==null?void 0:b.courier.graphql)||"https://api.courier.com/client/q"},inbox:{graphql:(b==null?void 0:b.inbox.graphql)||"https://inbox.courier.com/q",webSocket:(b==null?void 0:b.inbox.webSocket)||"wss://realtime.courier.com"}});class S2{constructor(f){kt(this,"PREFIX","[COURIER]"),this.showLogs=f}warn(f,...p){this.showLogs&&console.warn(`${this.PREFIX} ${f}`,...p)}log(f,...p){this.showLogs&&console.log(`${this.PREFIX} ${f}`,...p)}error(f,...p){this.showLogs&&console.error(`${this.PREFIX} ${f}`,...p)}debug(f,...p){this.showLogs&&console.debug(`${this.PREFIX} ${f}`,...p)}info(f,...p){this.showLogs&&console.info(`${this.PREFIX} ${f}`,...p)}}class vv{static generate(f){const p=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);return f?f+p:p}}class gv extends Error{constructor(f,p,m){super(p),this.code=f,this.type=m,this.name="CourierRequestError"}}function Bb(b,f,p,m){b.log(`
763
+ 📡 New Courier ${p} Request: ${f}
764
+ URL: ${m.url}
765
+ ${m.method?`Method: ${m.method}`:""}
766
+ ${m.query?`Query: ${m.query}`:""}
767
+ ${m.variables?`Variables: ${JSON.stringify(m.variables,null,2)}`:""}
768
+ Headers: ${JSON.stringify(m.headers,null,2)}
769
+ Body: ${m.body?JSON.stringify(m.body,null,2):"Empty"}
770
+ `)}function Nb(b,f,p,m){b.log(`
771
+ 📡 New Courier ${p} Response: ${f}
772
+ Status Code: ${m.status}
773
+ Response JSON: ${JSON.stringify(m.response,null,2)}
774
+ `)}async function $o(b){const f=b.validCodes??[200],p=b.options.showLogs?vv.generate():void 0,m=new Request(b.url,{method:b.method,headers:{"Content-Type":"application/json",...b.headers},body:b.body?JSON.stringify(b.body):void 0});p&&Bb(b.options.logger,p,"HTTP",{url:m.url,method:m.method,headers:Object.fromEntries(m.headers.entries()),body:b.body});const T=await fetch(m);if(T.status===204)return;let C;try{C=await T.json()}catch{if(T.status===200)return;throw new gv(T.status,"Failed to parse response as JSON","PARSE_ERROR")}if(p&&Nb(b.options.logger,p,"HTTP",{status:T.status,response:C}),!f.includes(T.status))throw new gv(T.status,(C==null?void 0:C.message)||"Unknown Error",C==null?void 0:C.type);return C}async function iu(b){const f=b.options.showLogs?vv.generate():void 0;f&&Bb(b.options.logger,f,"GraphQL",{url:b.url,headers:b.headers,query:b.query,variables:b.variables});const p=await fetch(b.url,{method:"POST",headers:{"Content-Type":"application/json",...b.headers},body:JSON.stringify({query:b.query,variables:b.variables})});let m;try{m=await p.json()}catch{throw new gv(p.status,"Failed to parse response as JSON","PARSE_ERROR")}if(f&&Nb(b.options.logger,f,"GraphQL",{status:p.status,response:m}),!p.ok)throw new gv(p.status,(m==null?void 0:m.message)||"Unknown Error",m==null?void 0:m.type);return m}class Gr{constructor(f){this.options=f}}class T2 extends Gr{async getBrand(f){const p=`
775
+ query GetBrand {
776
+ brand(brandId: "${f.brandId}") {
777
+ settings {
778
+ colors {
779
+ primary
780
+ secondary
781
+ tertiary
782
+ }
783
+ inapp {
784
+ borderRadius
785
+ disableCourierFooter
786
+ }
787
+ }
788
+ }
789
+ }
790
+ `;return(await iu({options:this.options,url:this.options.apiUrls.courier.graphql,headers:{"x-courier-user-id":this.options.userId,"x-courier-client-key":"empty",Authorization:`Bearer ${this.options.accessToken}`},query:p,variables:{brandId:f.brandId}})).data.brand}}class Pg extends b2{constructor(f){const p=Pg.buildUrl(f);super(p,f),kt(this,"receivedMessage"),kt(this,"receivedMessageEvent"),this.onMessageReceived=m=>this.convertToType(m)}convertToType(f){var p,m,T,C;try{switch(JSON.parse(f).type){case"event":const j=JSON.parse(f);(p=this.receivedMessageEvent)==null||p.call(this,j);break;case"message":const M=JSON.parse(f);(m=this.receivedMessage)==null||m.call(this,M);break}}catch(w){(T=this.options.logger)==null||T.error("Error parsing socket message",w),w instanceof Error&&((C=this.onError)==null||C.call(this,w))}}async sendSubscribe(f){var p;const m={action:"subscribe",data:{userAgent:"courier-js",channel:this.options.userId,event:"*",version:(f==null?void 0:f.version)??5}};this.options.connectionId&&(m.data.clientSourceId=this.options.connectionId),this.options.tenantId&&(m.data.accountId=this.options.tenantId),(p=this.options.logger)==null||p.debug("Sending subscribe request",m),await this.send(m)}static buildUrl(f){var p;let m=((p=f.apiUrls)==null?void 0:p.inbox.webSocket)??"";return f.accessToken&&(m+=`/?auth=${f.accessToken}`),m}}class x2 extends Gr{constructor(f){super(f),kt(this,"socket"),this.socket=new Pg(f)}async getMessages(f){const p=`
791
+ query GetInboxMessages(
792
+ $params: FilterParamsInput = { ${this.options.tenantId?`accountId: "${this.options.tenantId}"`:""} }
793
+ $limit: Int = ${(f==null?void 0:f.paginationLimit)??24}
794
+ $after: String ${f!=null&&f.startCursor?`= "${f.startCursor}"`:""}
795
+ ) {
796
+ count(params: $params)
797
+ messages(params: $params, limit: $limit, after: $after) {
798
+ totalCount
799
+ pageInfo {
800
+ startCursor
801
+ hasNextPage
802
+ }
803
+ nodes {
804
+ messageId
805
+ read
806
+ archived
807
+ created
808
+ opened
809
+ title
810
+ preview
811
+ data
812
+ tags
813
+ trackingIds {
814
+ clickTrackingId
815
+ }
816
+ actions {
817
+ content
818
+ data
819
+ href
820
+ }
821
+ }
822
+ }
823
+ }
824
+ `;return await iu({options:this.options,query:p,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})}async getArchivedMessages(f){const p=`
825
+ query GetInboxMessages(
826
+ $params: FilterParamsInput = { ${this.options.tenantId?`accountId: "${this.options.tenantId}"`:""}, archived: true }
827
+ $limit: Int = ${(f==null?void 0:f.paginationLimit)??24}
828
+ $after: String ${f!=null&&f.startCursor?`= "${f.startCursor}"`:""}
829
+ ) {
830
+ count(params: $params)
831
+ messages(params: $params, limit: $limit, after: $after) {
832
+ totalCount
833
+ pageInfo {
834
+ startCursor
835
+ hasNextPage
836
+ }
837
+ nodes {
838
+ messageId
839
+ read
840
+ archived
841
+ created
842
+ opened
843
+ title
844
+ preview
845
+ data
846
+ tags
847
+ trackingIds {
848
+ clickTrackingId
849
+ }
850
+ actions {
851
+ content
852
+ data
853
+ href
854
+ }
855
+ }
856
+ }
857
+ }
858
+ `;return iu({options:this.options,query:p,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})}async getUnreadMessageCount(){var f;const p=`
859
+ query GetMessages {
860
+ count(params: { status: "unread" ${this.options.tenantId?`, accountId: "${this.options.tenantId}"`:""} })
861
+ }
862
+ `;return((f=(await iu({options:this.options,query:p,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})).data)==null?void 0:f.count)??0}async click(f){const p=`
863
+ mutation TrackEvent {
864
+ clicked(messageId: "${f.messageId}", trackingId: "${f.trackingId}")
865
+ }
866
+ `,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await iu({options:this.options,query:p,headers:m,url:this.options.apiUrls.inbox.graphql})}async read(f){const p=`
867
+ mutation TrackEvent {
868
+ read(messageId: "${f.messageId}")
869
+ }
870
+ `,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await iu({options:this.options,query:p,headers:m,url:this.options.apiUrls.inbox.graphql})}async unread(f){const p=`
871
+ mutation TrackEvent {
872
+ unread(messageId: "${f.messageId}")
873
+ }
874
+ `,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await iu({options:this.options,query:p,headers:m,url:this.options.apiUrls.inbox.graphql})}async readAll(){const f=`
875
+ mutation TrackEvent {
876
+ markAllRead
877
+ }
878
+ `,p={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(p["x-courier-client-source-id"]=this.options.connectionId),await iu({options:this.options,query:f,headers:p,url:this.options.apiUrls.inbox.graphql})}async open(f){const p=`
879
+ mutation TrackEvent {
880
+ opened(messageId: "${f.messageId}")
881
+ }
882
+ `,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await iu({options:this.options,query:p,headers:m,url:this.options.apiUrls.inbox.graphql})}async archive(f){const p=`
883
+ mutation TrackEvent {
884
+ archive(messageId: "${f.messageId}")
885
+ }
886
+ `,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await iu({options:this.options,query:p,headers:m,url:this.options.apiUrls.inbox.graphql})}async archiveRead(){const f=`
887
+ mutation TrackEvent {
888
+ archiveRead
889
+ }
890
+ `,p={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(p["x-courier-client-source-id"]=this.options.connectionId),await iu({options:this.options,query:f,headers:p,url:this.options.apiUrls.inbox.graphql})}}class E2{transformItem(f){return{topicId:f.topic_id,topicName:f.topic_name,sectionId:f.section_id,sectionName:f.section_name,status:f.status,defaultStatus:f.default_status,hasCustomRouting:f.has_custom_routing,customRouting:f.custom_routing||[]}}*transform(f){for(const p of f)yield this.transformItem(p)}}function C2(b){const f=atob(b),p=new Uint8Array(f.length);for(let m=0;m<f.length;m++)p[m]=f.charCodeAt(m);return String.fromCharCode(...p)}function _2(b){const f=new Uint8Array(b.length);for(let p=0;p<b.length;p++)f[p]=b.charCodeAt(p);return btoa(String.fromCharCode(...f))}class A2 extends Gr{constructor(){super(...arguments),kt(this,"transformer",new E2)}async getUserPreferences(f){let p=`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences`;f!=null&&f.paginationCursor&&(p+=`?cursor=${f.paginationCursor}`);const T=await $o({options:this.options,url:p,method:"GET",headers:{Authorization:`Bearer ${this.options.accessToken}`}});return{items:[...this.transformer.transform(T.items)],paging:T.paging}}async getUserPreferenceTopic(f){const m=await $o({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences/${f.topicId}`,method:"GET",headers:{Authorization:`Bearer ${this.options.accessToken}`}});return this.transformer.transformItem(m.topic)}async putUserPreferenceTopic(f){const p={topic:{status:f.status,has_custom_routing:f.hasCustomRouting,custom_routing:f.customRouting}};await $o({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences/${f.topicId}`,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:p})}getNotificationCenterUrl(f){const p=C2(f.clientKey);return`https://view.notificationcenter.app/p/${_2(`${p}#${this.options.userId}${this.options.tenantId?`#${this.options.tenantId}`:""}#false`)}`}}class M2 extends Gr{async putUserToken(f){const p={provider_key:f.provider,...f.device&&{device:{app_id:f.device.appId,ad_id:f.device.adId,device_id:f.device.deviceId,platform:f.device.platform,manufacturer:f.device.manufacturer,model:f.device.model}}};await $o({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/tokens/${f.token}`,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:p,validCodes:[200,204]})}async deleteUserToken(f){await $o({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/tokens/${f.token}`,method:"DELETE",headers:{Authorization:`Bearer ${this.options.accessToken}`},validCodes:[200,204]})}}class R2 extends Gr{async putSubscription(f){return await $o({url:`${this.options.apiUrls.courier.rest}/lists/${f.listId}/subscriptions/${this.options.userId}`,options:this.options,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`}})}async deleteSubscription(f){return await $o({url:`${this.options.apiUrls.courier.rest}/lists/${f.listId}/subscriptions/${this.options.userId}`,options:this.options,method:"DELETE",headers:{Authorization:`Bearer ${this.options.accessToken}`}})}}class D2 extends Gr{async postInboundCourier(f){return await $o({url:`${this.options.apiUrls.courier.rest}/inbound/courier`,options:this.options,method:"POST",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:{...f,userId:this.options.userId},validCodes:[200,202]})}async postTrackingUrl(f){return await $o({url:f.url,options:this.options,method:"POST",body:{event:f.event}})}}class z2 extends Gr{constructor(f){var p,m;const T=f.showLogs!==void 0?f.showLogs:process.env.NODE_ENV==="development",C={...f,showLogs:T,apiUrls:f.apiUrls||kb(),accessToken:f.jwt??f.publicApiKey};super({...C,logger:new S2(C.showLogs),apiUrls:kb(C.apiUrls)}),kt(this,"tokens"),kt(this,"brands"),kt(this,"preferences"),kt(this,"inbox"),kt(this,"lists"),kt(this,"tracking"),this.tokens=new M2(this.options),this.brands=new T2(this.options),this.preferences=new A2(this.options),this.inbox=new x2(this.options),this.lists=new R2(this.options),this.tracking=new D2(this.options),!this.options.jwt&&!this.options.publicApiKey&&this.options.logger.warn("Courier Client initialized with no authentication method. Please provide a JWT or public API key."),this.options.publicApiKey&&((p=this.options.logger)==null||p.warn(`Courier Warning: Public API Keys are for testing only. Please use JWTs for production.
891
+ You can generate a JWT with this endpoint: https://www.courier.com/docs/reference/auth/issue-token
892
+ This endpoint should be called from your backend server, not the SDK.`)),this.options.jwt&&this.options.publicApiKey&&((m=this.options.logger)==null||m.warn("Courier Warning: Both a JWT and a Public API Key were provided. The Public API Key will be ignored."))}}class O2{constructor(f){kt(this,"callback"),this.callback=f}remove(){jr.shared.removeAuthenticationListener(this)}}const Lb=class cv{constructor(){kt(this,"id",vv.generate()),kt(this,"instanceClient"),kt(this,"_paginationLimit",24),kt(this,"authenticationListeners",[])}get paginationLimit(){return this._paginationLimit}set paginationLimit(f){this._paginationLimit=Math.min(Math.max(f,1),100)}get client(){return this.instanceClient}static get shared(){return cv.instance||(cv.instance=new cv),cv.instance}signIn(f){const p=f.connectionId??vv.generate();this.instanceClient=new z2({...f,connectionId:p}),this.notifyAuthenticationListeners({userId:f.userId})}signOut(){this.instanceClient=void 0,this.notifyAuthenticationListeners({userId:void 0})}addAuthenticationListener(f){var p;(p=this.instanceClient)==null||p.options.logger.info("Adding authentication listener");const m=new O2(f);return this.authenticationListeners.push(m),m}removeAuthenticationListener(f){var p;(p=this.instanceClient)==null||p.options.logger.info("Removing authentication listener"),this.authenticationListeners=this.authenticationListeners.filter(m=>m!==f)}notifyAuthenticationListeners(f){this.authenticationListeners.forEach(p=>p.callback(f))}};kt(Lb,"instance");let jr=Lb;const U2=()=>{const b=ae=>jr.shared.signIn(ae),f=()=>jr.shared.signOut(),p=ae=>un.shared.load(ae),m=ae=>un.shared.fetchNextPageOfMessages(ae),T=ae=>jr.shared.paginationLimit=ae,C=ae=>un.shared.readMessage({message:ae}),w=ae=>un.shared.unreadMessage({message:ae}),j=ae=>un.shared.clickMessage({message:ae}),M=ae=>un.shared.archiveMessage({message:ae}),Y=ae=>un.shared.openMessage({message:ae}),[ee,le]=pt.useState({userId:void 0,signIn:b,signOut:f}),[V,oe]=pt.useState({load:p,fetchNextPageOfMessages:m,setPaginationLimit:T,readMessage:C,unreadMessage:w,clickMessage:j,archiveMessage:M,openMessage:Y});pt.useEffect(()=>{const ae=jr.shared.addAuthenticationListener(()=>se()),de=new Wg({onError:ke=>ue(ke),onDataSetChange:()=>ue(),onPageAdded:()=>ue(),onMessageAdd:()=>ue(),onMessageRemove:()=>ue(),onMessageUpdate:()=>ue(),onUnreadCountChange:()=>ue()});return un.shared.addDataStoreListener(de),se(),ue(),()=>{ae.remove(),de.remove()}},[]);const se=()=>{var de;const ae=(de=jr.shared.client)==null?void 0:de.options;le({userId:ae==null?void 0:ae.userId,signIn:b,signOut:f})},ue=ae=>{const de=un.shared;oe({load:p,fetchNextPageOfMessages:m,setPaginationLimit:T,readMessage:C,unreadMessage:w,clickMessage:j,archiveMessage:M,openMessage:Y,inbox:de.inboxDataSet,archive:de.archiveDataSet,unreadCount:de.unreadCount,error:ae})};return{shared:jr.shared,auth:ee,inbox:V}};var yv={exports:{}},Zm={};/**
893
+ * @license React
894
+ * react-jsx-runtime.production.js
895
+ *
896
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
897
+ *
898
+ * This source code is licensed under the MIT license found in the
899
+ * LICENSE file in the root directory of this source tree.
900
+ */var qb;function w2(){if(qb)return Zm;qb=1;var b=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function p(m,T,C){var w=null;if(C!==void 0&&(w=""+C),T.key!==void 0&&(w=""+T.key),"key"in T){C={};for(var j in T)j!=="key"&&(C[j]=T[j])}else C=T;return T=C.ref,{$$typeof:b,type:m,key:w,ref:T!==void 0?T:null,props:C}}return Zm.Fragment=f,Zm.jsx=p,Zm.jsxs=p,Zm}var $m={};/**
901
+ * @license React
902
+ * react-jsx-runtime.development.js
903
+ *
904
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
905
+ *
906
+ * This source code is licensed under the MIT license found in the
907
+ * LICENSE file in the root directory of this source tree.
908
+ */var Yb;function H2(){return Yb||(Yb=1,process.env.NODE_ENV!=="production"&&function(){function b(q){if(q==null)return null;if(typeof q=="function")return q.$$typeof===_e?null:q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case ue:return"Fragment";case de:return"Profiler";case ae:return"StrictMode";case Ye:return"Suspense";case qe:return"SuspenseList";case me:return"Activity"}if(typeof q=="object")switch(typeof q.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),q.$$typeof){case se:return"Portal";case fe:return(q.displayName||"Context")+".Provider";case ke:return(q._context.displayName||"Context")+".Consumer";case xe:var pe=q.render;return q=q.displayName,q||(q=pe.displayName||pe.name||"",q=q!==""?"ForwardRef("+q+")":"ForwardRef"),q;case ze:return pe=q.displayName||null,pe!==null?pe:b(q.type)||"Memo";case at:pe=q._payload,q=q._init;try{return b(q(pe))}catch{}}return null}function f(q){return""+q}function p(q){try{f(q);var pe=!1}catch{pe=!0}if(pe){pe=console;var ie=pe.error,ve=typeof Symbol=="function"&&Symbol.toStringTag&&q[Symbol.toStringTag]||q.constructor.name||"Object";return ie.call(pe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ve),f(q)}}function m(q){if(q===ue)return"<>";if(typeof q=="object"&&q!==null&&q.$$typeof===at)return"<...>";try{var pe=b(q);return pe?"<"+pe+">":"<...>"}catch{return"<...>"}}function T(){var q=Re.A;return q===null?null:q.getOwner()}function C(){return Error("react-stack-top-frame")}function w(q){if(Ee.call(q,"key")){var pe=Object.getOwnPropertyDescriptor(q,"key").get;if(pe&&pe.isReactWarning)return!1}return q.key!==void 0}function j(q,pe){function ie(){vt||(vt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",pe))}ie.isReactWarning=!0,Object.defineProperty(q,"key",{get:ie,configurable:!0})}function M(){var q=b(this.type);return D[q]||(D[q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),q=this.props.ref,q!==void 0?q:null}function Y(q,pe,ie,ve,He,rt,$e,dl){return ie=rt.ref,q={$$typeof:oe,type:q,key:pe,props:rt,_owner:He},(ie!==void 0?ie:null)!==null?Object.defineProperty(q,"ref",{enumerable:!1,get:M}):Object.defineProperty(q,"ref",{enumerable:!1,value:null}),q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.defineProperty(q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:dl}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q}function ee(q,pe,ie,ve,He,rt,$e,dl){var xt=pe.children;if(xt!==void 0)if(ve)if(et(xt)){for(ve=0;ve<xt.length;ve++)le(xt[ve]);Object.freeze&&Object.freeze(xt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(xt);if(Ee.call(pe,"key")){xt=b(q);var Gt=Object.keys(pe).filter(function(Ul){return Ul!=="key"});ve=0<Gt.length?"{key: someKey, "+Gt.join(": ..., ")+": ...}":"{key: someKey}",ge[xt+ve]||(Gt=0<Gt.length?"{"+Gt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
909
+ let props = %s;
910
+ <%s {...props} />
911
+ React keys must be passed directly to JSX without using spread:
912
+ let props = %s;
913
+ <%s key={someKey} {...props} />`,ve,xt,Gt,xt),ge[xt+ve]=!0)}if(xt=null,ie!==void 0&&(p(ie),xt=""+ie),w(pe)&&(p(pe.key),xt=""+pe.key),"key"in pe){ie={};for(var Tn in pe)Tn!=="key"&&(ie[Tn]=pe[Tn])}else ie=pe;return xt&&j(ie,typeof q=="function"?q.displayName||q.name||"Unknown":q),Y(q,xt,rt,He,T(),ie,$e,dl)}function le(q){typeof q=="object"&&q!==null&&q.$$typeof===oe&&q._store&&(q._store.validated=1)}var V=pt,oe=Symbol.for("react.transitional.element"),se=Symbol.for("react.portal"),ue=Symbol.for("react.fragment"),ae=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),fe=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),ze=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),_e=Symbol.for("react.client.reference"),Re=V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ee=Object.prototype.hasOwnProperty,et=Array.isArray,Mt=console.createTask?console.createTask:function(){return null};V={"react-stack-bottom-frame":function(q){return q()}};var vt,D={},W=V["react-stack-bottom-frame"].bind(V,C)(),te=Mt(m(C)),ge={};$m.Fragment=ue,$m.jsx=function(q,pe,ie,ve,He){var rt=1e4>Re.recentlyCreatedOwnerStacks++;return ee(q,pe,ie,!1,ve,He,rt?Error("react-stack-top-frame"):W,rt?Mt(m(q)):te)},$m.jsxs=function(q,pe,ie,ve,He){var rt=1e4>Re.recentlyCreatedOwnerStacks++;return ee(q,pe,ie,!0,ve,He,rt?Error("react-stack-top-frame"):W,rt?Mt(m(q)):te)}}()),$m}var Vb;function k2(){return Vb||(Vb=1,process.env.NODE_ENV==="production"?yv.exports=w2():yv.exports=H2()),yv.exports}var bv=k2(),Sv={exports:{}},Jm={},Tv={exports:{}},ey={};/**
914
+ * @license React
915
+ * scheduler.production.js
916
+ *
917
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
918
+ *
919
+ * This source code is licensed under the MIT license found in the
920
+ * LICENSE file in the root directory of this source tree.
921
+ */var Gb;function B2(){return Gb||(Gb=1,function(b){function f(D,W){var te=D.length;D.push(W);e:for(;0<te;){var ge=te-1>>>1,q=D[ge];if(0<T(q,W))D[ge]=W,D[te]=q,te=ge;else break e}}function p(D){return D.length===0?null:D[0]}function m(D){if(D.length===0)return null;var W=D[0],te=D.pop();if(te!==W){D[0]=te;e:for(var ge=0,q=D.length,pe=q>>>1;ge<pe;){var ie=2*(ge+1)-1,ve=D[ie],He=ie+1,rt=D[He];if(0>T(ve,te))He<q&&0>T(rt,ve)?(D[ge]=rt,D[He]=te,ge=He):(D[ge]=ve,D[ie]=te,ge=ie);else if(He<q&&0>T(rt,te))D[ge]=rt,D[He]=te,ge=He;else break e}}return W}function T(D,W){var te=D.sortIndex-W.sortIndex;return te!==0?te:D.id-W.id}if(b.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var C=performance;b.unstable_now=function(){return C.now()}}else{var w=Date,j=w.now();b.unstable_now=function(){return w.now()-j}}var M=[],Y=[],ee=1,le=null,V=3,oe=!1,se=!1,ue=!1,ae=!1,de=typeof setTimeout=="function"?setTimeout:null,ke=typeof clearTimeout=="function"?clearTimeout:null,fe=typeof setImmediate<"u"?setImmediate:null;function xe(D){for(var W=p(Y);W!==null;){if(W.callback===null)m(Y);else if(W.startTime<=D)m(Y),W.sortIndex=W.expirationTime,f(M,W);else break;W=p(Y)}}function Ye(D){if(ue=!1,xe(D),!se)if(p(M)!==null)se=!0,qe||(qe=!0,Ee());else{var W=p(Y);W!==null&&vt(Ye,W.startTime-D)}}var qe=!1,ze=-1,at=5,me=-1;function _e(){return ae?!0:!(b.unstable_now()-me<at)}function Re(){if(ae=!1,qe){var D=b.unstable_now();me=D;var W=!0;try{e:{se=!1,ue&&(ue=!1,ke(ze),ze=-1),oe=!0;var te=V;try{t:{for(xe(D),le=p(M);le!==null&&!(le.expirationTime>D&&_e());){var ge=le.callback;if(typeof ge=="function"){le.callback=null,V=le.priorityLevel;var q=ge(le.expirationTime<=D);if(D=b.unstable_now(),typeof q=="function"){le.callback=q,xe(D),W=!0;break t}le===p(M)&&m(M),xe(D)}else m(M);le=p(M)}if(le!==null)W=!0;else{var pe=p(Y);pe!==null&&vt(Ye,pe.startTime-D),W=!1}}break e}finally{le=null,V=te,oe=!1}W=void 0}}finally{W?Ee():qe=!1}}}var Ee;if(typeof fe=="function")Ee=function(){fe(Re)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,Mt=et.port2;et.port1.onmessage=Re,Ee=function(){Mt.postMessage(null)}}else Ee=function(){de(Re,0)};function vt(D,W){ze=de(function(){D(b.unstable_now())},W)}b.unstable_IdlePriority=5,b.unstable_ImmediatePriority=1,b.unstable_LowPriority=4,b.unstable_NormalPriority=3,b.unstable_Profiling=null,b.unstable_UserBlockingPriority=2,b.unstable_cancelCallback=function(D){D.callback=null},b.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"):at=0<D?Math.floor(1e3/D):5},b.unstable_getCurrentPriorityLevel=function(){return V},b.unstable_next=function(D){switch(V){case 1:case 2:case 3:var W=3;break;default:W=V}var te=V;V=W;try{return D()}finally{V=te}},b.unstable_requestPaint=function(){ae=!0},b.unstable_runWithPriority=function(D,W){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var te=V;V=D;try{return W()}finally{V=te}},b.unstable_scheduleCallback=function(D,W,te){var ge=b.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ge+te:ge):te=ge,D){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=te+q,D={id:ee++,callback:W,priorityLevel:D,startTime:te,expirationTime:q,sortIndex:-1},te>ge?(D.sortIndex=te,f(Y,D),p(M)===null&&D===p(Y)&&(ue?(ke(ze),ze=-1):ue=!0,vt(Ye,te-ge))):(D.sortIndex=q,f(M,D),se||oe||(se=!0,qe||(qe=!0,Ee()))),D},b.unstable_shouldYield=_e,b.unstable_wrapCallback=function(D){var W=V;return function(){var te=V;V=W;try{return D.apply(this,arguments)}finally{V=te}}}}(ey)),ey}var ty={};/**
922
+ * @license React
923
+ * scheduler.development.js
924
+ *
925
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
926
+ *
927
+ * This source code is licensed under the MIT license found in the
928
+ * LICENSE file in the root directory of this source tree.
929
+ */var jb;function N2(){return jb||(jb=1,function(b){process.env.NODE_ENV!=="production"&&function(){function f(){if(Ye=!1,me){var D=b.unstable_now();Ee=D;var W=!0;try{e:{fe=!1,xe&&(xe=!1,ze(_e),_e=-1),ke=!0;var te=de;try{t:{for(w(D),ae=m(oe);ae!==null&&!(ae.expirationTime>D&&M());){var ge=ae.callback;if(typeof ge=="function"){ae.callback=null,de=ae.priorityLevel;var q=ge(ae.expirationTime<=D);if(D=b.unstable_now(),typeof q=="function"){ae.callback=q,w(D),W=!0;break t}ae===m(oe)&&T(oe),w(D)}else T(oe);ae=m(oe)}if(ae!==null)W=!0;else{var pe=m(se);pe!==null&&Y(j,pe.startTime-D),W=!1}}break e}finally{ae=null,de=te,ke=!1}W=void 0}}finally{W?et():me=!1}}}function p(D,W){var te=D.length;D.push(W);e:for(;0<te;){var ge=te-1>>>1,q=D[ge];if(0<C(q,W))D[ge]=W,D[te]=q,te=ge;else break e}}function m(D){return D.length===0?null:D[0]}function T(D){if(D.length===0)return null;var W=D[0],te=D.pop();if(te!==W){D[0]=te;e:for(var ge=0,q=D.length,pe=q>>>1;ge<pe;){var ie=2*(ge+1)-1,ve=D[ie],He=ie+1,rt=D[He];if(0>C(ve,te))He<q&&0>C(rt,ve)?(D[ge]=rt,D[He]=te,ge=He):(D[ge]=ve,D[ie]=te,ge=ie);else if(He<q&&0>C(rt,te))D[ge]=rt,D[He]=te,ge=He;else break e}}return W}function C(D,W){var te=D.sortIndex-W.sortIndex;return te!==0?te:D.id-W.id}function w(D){for(var W=m(se);W!==null;){if(W.callback===null)T(se);else if(W.startTime<=D)T(se),W.sortIndex=W.expirationTime,p(oe,W);else break;W=m(se)}}function j(D){if(xe=!1,w(D),!fe)if(m(oe)!==null)fe=!0,me||(me=!0,et());else{var W=m(se);W!==null&&Y(j,W.startTime-D)}}function M(){return Ye?!0:!(b.unstable_now()-Ee<Re)}function Y(D,W){_e=qe(function(){D(b.unstable_now())},W)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),b.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var ee=performance;b.unstable_now=function(){return ee.now()}}else{var le=Date,V=le.now();b.unstable_now=function(){return le.now()-V}}var oe=[],se=[],ue=1,ae=null,de=3,ke=!1,fe=!1,xe=!1,Ye=!1,qe=typeof setTimeout=="function"?setTimeout:null,ze=typeof clearTimeout=="function"?clearTimeout:null,at=typeof setImmediate<"u"?setImmediate:null,me=!1,_e=-1,Re=5,Ee=-1;if(typeof at=="function")var et=function(){at(f)};else if(typeof MessageChannel<"u"){var Mt=new MessageChannel,vt=Mt.port2;Mt.port1.onmessage=f,et=function(){vt.postMessage(null)}}else et=function(){qe(f,0)};b.unstable_IdlePriority=5,b.unstable_ImmediatePriority=1,b.unstable_LowPriority=4,b.unstable_NormalPriority=3,b.unstable_Profiling=null,b.unstable_UserBlockingPriority=2,b.unstable_cancelCallback=function(D){D.callback=null},b.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"):Re=0<D?Math.floor(1e3/D):5},b.unstable_getCurrentPriorityLevel=function(){return de},b.unstable_next=function(D){switch(de){case 1:case 2:case 3:var W=3;break;default:W=de}var te=de;de=W;try{return D()}finally{de=te}},b.unstable_requestPaint=function(){Ye=!0},b.unstable_runWithPriority=function(D,W){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var te=de;de=D;try{return W()}finally{de=te}},b.unstable_scheduleCallback=function(D,W,te){var ge=b.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ge+te:ge):te=ge,D){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=te+q,D={id:ue++,callback:W,priorityLevel:D,startTime:te,expirationTime:q,sortIndex:-1},te>ge?(D.sortIndex=te,p(se,D),m(oe)===null&&D===m(se)&&(xe?(ze(_e),_e=-1):xe=!0,Y(j,te-ge))):(D.sortIndex=q,p(oe,D),fe||ke||(fe=!0,me||(me=!0,et()))),D},b.unstable_shouldYield=M,b.unstable_wrapCallback=function(D){var W=de;return function(){var te=de;de=W;try{return D.apply(this,arguments)}finally{de=te}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(ty)),ty}var Xb;function Qb(){return Xb||(Xb=1,process.env.NODE_ENV==="production"?Tv.exports=B2():Tv.exports=N2()),Tv.exports}/**
930
+ * @license React
931
+ * react-dom-client.production.js
932
+ *
933
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
934
+ *
935
+ * This source code is licensed under the MIT license found in the
936
+ * LICENSE file in the root directory of this source tree.
937
+ */var Zb;function L2(){if(Zb)return Jm;Zb=1;var b=Qb(),f=pt,p=Xg;function m(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function T(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function C(n){var a=n,i=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(i=a.return),n=a.return;while(n)}return a.tag===3?i:null}function w(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function j(n){if(C(n)!==n)throw Error(m(188))}function M(n){var a=n.alternate;if(!a){if(a=C(n),a===null)throw Error(m(188));return a!==n?null:n}for(var i=n,o=a;;){var r=i.return;if(r===null)break;var d=r.alternate;if(d===null){if(o=r.return,o!==null){i=o;continue}break}if(r.child===d.child){for(d=r.child;d;){if(d===i)return j(r),n;if(d===o)return j(r),a;d=d.sibling}throw Error(m(188))}if(i.return!==o.return)i=r,o=d;else{for(var g=!1,y=r.child;y;){if(y===i){g=!0,i=r,o=d;break}if(y===o){g=!0,o=r,i=d;break}y=y.sibling}if(!g){for(y=d.child;y;){if(y===i){g=!0,i=d,o=r;break}if(y===o){g=!0,o=d,i=r;break}y=y.sibling}if(!g)throw Error(m(189))}}if(i.alternate!==o)throw Error(m(190))}if(i.tag!==3)throw Error(m(188));return i.stateNode.current===i?n:a}function Y(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=Y(n),a!==null)return a;n=n.sibling}return null}var ee=Object.assign,le=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),oe=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),de=Symbol.for("react.provider"),ke=Symbol.for("react.consumer"),fe=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),ze=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),_e=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function Ee(n){return n===null||typeof n!="object"?null:(n=Re&&n[Re]||n["@@iterator"],typeof n=="function"?n:null)}var et=Symbol.for("react.client.reference");function Mt(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===et?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case se:return"Fragment";case ae:return"Profiler";case ue:return"StrictMode";case Ye:return"Suspense";case qe:return"SuspenseList";case me:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case oe:return"Portal";case fe:return(n.displayName||"Context")+".Provider";case ke:return(n._context.displayName||"Context")+".Consumer";case xe:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case ze:return a=n.displayName||null,a!==null?a:Mt(n.type)||"Memo";case at:a=n._payload,n=n._init;try{return Mt(n(a))}catch{}}return null}var vt=Array.isArray,D=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=p.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ge=[],q=-1;function pe(n){return{current:n}}function ie(n){0>q||(n.current=ge[q],ge[q]=null,q--)}function ve(n,a){q++,ge[q]=n.current,n.current=a}var He=pe(null),rt=pe(null),$e=pe(null),dl=pe(null);function xt(n,a){switch(ve($e,a),ve(rt,n),ve(He,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?ku(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=ku(a),n=vr(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ie(He),ve(He,n)}function Gt(){ie(He),ie(rt),ie($e)}function Tn(n){n.memoizedState!==null&&ve(dl,n);var a=He.current,i=vr(a,n.type);a!==i&&(ve(rt,n),ve(He,i))}function Ul(n){rt.current===n&&(ie(He),ie(rt)),dl.current===n&&(ie(dl),zl._currentValue=te)}var ti=Object.prototype.hasOwnProperty,wl=b.unstable_scheduleCallback,uu=b.unstable_cancelCallback,Jo=b.unstable_shouldYield,Hl=b.unstable_requestPaint,hn=b.unstable_now,Aa=b.unstable_getCurrentPriorityLevel,$u=b.unstable_ImmediatePriority,ou=b.unstable_UserBlockingPriority,Ma=b.unstable_NormalPriority,su=b.unstable_LowPriority,tl=b.unstable_IdlePriority,cu=b.log,re=b.unstable_setDisableYieldValue,zt=null,Bt=null;function xn(n){if(typeof cu=="function"&&re(n),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(zt,n)}catch{}}var Ot=Math.clz32?Math.clz32:Bd,ru=Math.log,Xr=Math.LN2;function Bd(n){return n>>>=0,n===0?32:31-(ru(n)/Xr|0)|0}var fu=256,ta=4194304;function Xn(n){var a=n&42;if(a!==0)return a;switch(n&-n){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 n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Ra(n,a,i){var o=n.pendingLanes;if(o===0)return 0;var r=0,d=n.suspendedLanes,g=n.pingedLanes;n=n.warmLanes;var y=o&134217727;return y!==0?(o=y&~d,o!==0?r=Xn(o):(g&=y,g!==0?r=Xn(g):i||(i=y&~n,i!==0&&(r=Xn(i))))):(y=o&~d,y!==0?r=Xn(y):g!==0?r=Xn(g):i||(i=o&~n,i!==0&&(r=Xn(i)))),r===0?0:a!==0&&a!==r&&(a&d)===0&&(d=r&-r,i=a&-a,d>=i||d===32&&(i&4194048)!==0)?a:r}function kl(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function nn(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Da(){var n=fu;return fu<<=1,(fu&4194048)===0&&(fu=256),n}function ni(){var n=ta;return ta<<=1,(ta&62914560)===0&&(ta=4194304),n}function za(n){for(var a=[],i=0;31>i;i++)a.push(n);return a}function li(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Qr(n,a,i,o,r,d){var g=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var y=n.entanglements,E=n.expirationTimes,H=n.hiddenUpdates;for(i=g&~i;0<i;){var I=31-Ot(i),P=1<<I;y[I]=0,E[I]=-1;var B=H[I];if(B!==null)for(H[I]=null,I=0;I<B.length;I++){var L=B[I];L!==null&&(L.lane&=-536870913)}i&=~P}o!==0&&Ju(n,o,0),d!==0&&r===0&&n.tag!==0&&(n.suspendedLanes|=d&~(g&~a))}function Ju(n,a,i){n.pendingLanes|=a,n.suspendedLanes&=~a;var o=31-Ot(a);n.entangledLanes|=a,n.entanglements[o]=n.entanglements[o]|1073741824|i&4194090}function Ku(n,a){var i=n.entangledLanes|=a;for(n=n.entanglements;i;){var o=31-Ot(i),r=1<<o;r&a|n[o]&a&&(n[o]|=a),i&=~r}}function hl(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Ko(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Zr(){var n=W.p;return n!==0?n:(n=window.event,n===void 0?32:x0(n.type))}function Nd(n,a){var i=W.p;try{return W.p=n,a()}finally{W.p=i}}var Zt=Math.random().toString(36).slice(2),ln="__reactFiber$"+Zt,En="__reactProps$"+Zt,du="__reactContainer$"+Zt,Io="__reactEvents$"+Zt,$r="__reactListeners$"+Zt,Wo="__reactHandles$"+Zt,Jr="__reactResources$"+Zt,ye="__reactMarker$"+Zt;function Iu(n){delete n[ln],delete n[En],delete n[Io],delete n[$r],delete n[Wo]}function on(n){var a=n[ln];if(a)return a;for(var i=n.parentNode;i;){if(a=i[du]||i[ln]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(n=qn(n);n!==null;){if(i=n[ln])return i;n=qn(n)}return a}n=i,i=n.parentNode}return null}function ai(n){if(n=n[ln]||n[du]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function Wu(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(m(33))}function na(n){var a=n[Jr];return a||(a=n[Jr]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function $t(n){n[ye]=!0}var Fu=new Set,Qn={};function Oa(n,a){Ua(n,a),Ua(n+"Capture",a)}function Ua(n,a){for(Qn[n]=a,n=0;n<a.length;n++)Fu.add(a[n])}var Kr=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]*$"),Fo={},ac={};function Ir(n){return ti.call(ac,n)?!0:ti.call(Fo,n)?!1:Kr.test(n)?ac[n]=!0:(Fo[n]=!0,!1)}function la(n,a,i){if(Ir(a))if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+i)}}function Pu(n,a,i){if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+i)}}function Bl(n,a,i,o){if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(a,i,""+o)}}var Po,ic;function ii(n){if(Po===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);Po=a&&a[1]||"",ic=-1<i.stack.indexOf(`
938
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
939
+ `+Po+n+ic}var Cn=!1;function wa(n,a){if(!n||Cn)return"";Cn=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(L){var B=L}Reflect.construct(n,[],P)}else{try{P.call()}catch(L){B=L}n.call(P.prototype)}}else{try{throw Error()}catch(L){B=L}(P=n())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(L){if(L&&B&&typeof L.stack=="string")return[L.stack,B.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),g=d[0],y=d[1];if(g&&y){var E=g.split(`
940
+ `),H=y.split(`
941
+ `);for(r=o=0;o<E.length&&!E[o].includes("DetermineComponentFrameRoot");)o++;for(;r<H.length&&!H[r].includes("DetermineComponentFrameRoot");)r++;if(o===E.length||r===H.length)for(o=E.length-1,r=H.length-1;1<=o&&0<=r&&E[o]!==H[r];)r--;for(;1<=o&&0<=r;o--,r--)if(E[o]!==H[r]){if(o!==1||r!==1)do if(o--,r--,0>r||E[o]!==H[r]){var I=`
942
+ `+E[o].replace(" at new "," at ");return n.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",n.displayName)),I}while(1<=o&&0<=r);break}}}finally{Cn=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?ii(i):""}function ui(n){switch(n.tag){case 26:case 27:case 5:return ii(n.type);case 16:return ii("Lazy");case 13:return ii("Suspense");case 19:return ii("SuspenseList");case 0:case 15:return wa(n.type,!1);case 11:return wa(n.type.render,!1);case 1:return wa(n.type,!0);case 31:return ii("Activity");default:return""}}function uc(n){try{var a="";do a+=ui(n),n=n.return;while(n);return a}catch(i){return`
943
+ Error generating stack: `+i.message+`
944
+ `+i.stack}}function mn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function eo(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function oc(n){var a=eo(n)?"checked":"value",i=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),o=""+n[a];if(!n.hasOwnProperty(a)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,d=i.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return r.call(this)},set:function(g){o=""+g,d.call(this,g)}}),Object.defineProperty(n,a,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(g){o=""+g},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Ha(n){n._valueTracker||(n._valueTracker=oc(n))}function oi(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var i=a.getValue(),o="";return n&&(o=eo(n)?n.checked?"true":"false":n.value),n=o,n!==i?(a.setValue(n),!0):!1}function hu(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Ld=/[\n"\\]/g;function nl(n){return n.replace(Ld,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function es(n,a,i,o,r,d,g,y){n.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?n.type=g:n.removeAttribute("type"),a!=null?g==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+mn(a)):n.value!==""+mn(a)&&(n.value=""+mn(a)):g!=="submit"&&g!=="reset"||n.removeAttribute("value"),a!=null?to(n,g,mn(a)):i!=null?to(n,g,mn(i)):o!=null&&n.removeAttribute("value"),r==null&&d!=null&&(n.defaultChecked=!!d),r!=null&&(n.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?n.name=""+mn(y):n.removeAttribute("name")}function ts(n,a,i,o,r,d,g,y){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(n.type=d),a!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||a!=null))return;i=i!=null?""+mn(i):"",a=a!=null?""+mn(a):i,y||a===n.value||(n.value=a),n.defaultValue=a}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=y?n.checked:!!o,n.defaultChecked=!!o,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.name=g)}function to(n,a,i){a==="number"&&hu(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}function si(n,a,i,o){if(n=n.options,a){a={};for(var r=0;r<i.length;r++)a["$"+i[r]]=!0;for(i=0;i<n.length;i++)r=a.hasOwnProperty("$"+n[i].value),n[i].selected!==r&&(n[i].selected=r),r&&o&&(n[i].defaultSelected=!0)}else{for(i=""+mn(i),a=null,r=0;r<n.length;r++){if(n[r].value===i){n[r].selected=!0,o&&(n[r].defaultSelected=!0);return}a!==null||n[r].disabled||(a=n[r])}a!==null&&(a.selected=!0)}}function sc(n,a,i){if(a!=null&&(a=""+mn(a),a!==n.value&&(n.value=a),i==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=i!=null?""+mn(i):""}function cc(n,a,i,o){if(a==null){if(o!=null){if(i!=null)throw Error(m(92));if(vt(o)){if(1<o.length)throw Error(m(93));o=o[0]}i=o}i==null&&(i=""),a=i}i=mn(a),n.defaultValue=i,o=n.textContent,o===i&&o!==""&&o!==null&&(n.value=o)}function mu(n,a){if(a){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=a;return}}n.textContent=a}var Wr=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 ns(n,a,i){var o=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":o?n.setProperty(a,i):typeof i!="number"||i===0||Wr.has(a)?a==="float"?n.cssFloat=i:n[a]=(""+i).trim():n[a]=i+"px"}function no(n,a,i){if(a!=null&&typeof a!="object")throw Error(m(62));if(n=n.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var r in a)o=a[r],a.hasOwnProperty(r)&&i[r]!==o&&ns(n,r,o)}else for(var d in a)a.hasOwnProperty(d)&&ns(n,d,a[d])}function ci(n){if(n.indexOf("-")===-1)return!1;switch(n){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 qd=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"]]),Fr=/^[\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 lo(n){return Fr.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var ri=null;function ls(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var pu=null,vu=null;function Pr(n){var a=ai(n);if(a&&(n=a.stateNode)){var i=n[En]||null;e:switch(n=a.stateNode,a.type){case"input":if(es(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+nl(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var o=i[a];if(o!==n&&o.form===n.form){var r=o[En]||null;if(!r)throw Error(m(90));es(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(a=0;a<i.length;a++)o=i[a],o.form===n.form&&oi(o)}break e;case"textarea":sc(n,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&si(n,!!i.multiple,a,!1)}}}var rc=!1;function gu(n,a,i){if(rc)return n(a,i);rc=!0;try{var o=n(a);return o}finally{if(rc=!1,(pu!==null||vu!==null)&&(Ns(),pu&&(a=pu,n=vu,vu=pu=null,Pr(a),n)))for(a=0;a<n.length;a++)Pr(n[a])}}function fi(n,a){var i=n.stateNode;if(i===null)return null;var o=i[En]||null;if(o===null)return null;i=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(m(231,a,typeof i));return i}var Nl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),as=!1;if(Nl)try{var aa={};Object.defineProperty(aa,"passive",{get:function(){as=!0}}),window.addEventListener("test",aa,aa),window.removeEventListener("test",aa,aa)}catch{as=!1}var ia=null,yu=null,di=null;function fc(){if(di)return di;var n,a=yu,i=a.length,o,r="value"in ia?ia.value:ia.textContent,d=r.length;for(n=0;n<i&&a[n]===r[n];n++);var g=i-n;for(o=1;o<=g&&a[i-o]===r[d-o];o++);return di=r.slice(n,1<o?1-o:void 0)}function sn(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function is(){return!0}function us(){return!1}function _n(n){function a(i,o,r,d,g){this._reactName=i,this._targetInst=r,this.type=o,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var y in n)n.hasOwnProperty(y)&&(i=n[y],this[y]=i?i(d):d[y]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?is:us,this.isPropagationStopped=us,this}return ee(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=is)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=is)},persist:function(){},isPersistent:is}),a}var ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},os=_n(ka),ao=ee({},ka,{view:0,detail:0}),ef=_n(ao),dc,ss,io,hi=ee({},ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ua,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==io&&(io&&n.type==="mousemove"?(dc=n.screenX-io.screenX,ss=n.screenY-io.screenY):ss=dc=0,io=n),dc)},movementY:function(n){return"movementY"in n?n.movementY:ss}}),hc=_n(hi),tf=ee({},hi,{dataTransfer:0}),nf=_n(tf),Yd=ee({},ao,{relatedTarget:0}),mc=_n(Yd),Vd=ee({},ka,{animationName:0,elapsedTime:0,pseudoElement:0}),Gd=_n(Vd),jd=ee({},ka,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),uo=_n(jd),lf=ee({},ka,{data:0}),pc=_n(lf),af={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uf={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"},vc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function of(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=vc[n])?!!a[n]:!1}function ua(){return of}var mi=ee({},ao,{key:function(n){if(n.key){var a=af[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=sn(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?uf[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ua,charCode:function(n){return n.type==="keypress"?sn(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?sn(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),ml=_n(mi),Zn=ee({},hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oo=_n(Zn),cs=ee({},ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ua}),gc=_n(cs),wn=ee({},ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),sf=_n(wn),rs=ee({},hi,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),pi=_n(rs),yc=ee({},ka,{newState:0,oldState:0}),cf=_n(yc),rf=[9,13,27,32],so=Nl&&"CompositionEvent"in window,co=null;Nl&&"documentMode"in document&&(co=document.documentMode);var bc=Nl&&"TextEvent"in window&&!co,Ll=Nl&&(!so||co&&8<co&&11>=co),Sc=" ",fs=!1;function ro(n,a){switch(n){case"keyup":return rf.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ba(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Na=!1;function Tc(n,a){switch(n){case"compositionend":return Ba(a);case"keypress":return a.which!==32?null:(fs=!0,Sc);case"textInput":return n=a.data,n===Sc&&fs?null:n;default:return null}}function vi(n,a){if(Na)return n==="compositionend"||!so&&ro(n,a)?(n=fc(),di=yu=ia=null,Na=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Ll&&a.locale!=="ko"?null:a.data;default:return null}}var ff={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 ds(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!ff[n.type]:a==="textarea"}function hs(n,a,i,o){pu?vu?vu.push(o):vu=[o]:pu=o,a=pr(a,"onChange"),0<a.length&&(i=new os("onChange","change",null,i,o),n.push({event:i,listeners:a}))}var pl=null,vl=null;function xc(n){Vs(n,0)}function ql(n){var a=Wu(n);if(oi(a))return n}function Ec(n,a){if(n==="change")return a}var Cc=!1;if(Nl){var gi;if(Nl){var yi="oninput"in document;if(!yi){var _c=document.createElement("div");_c.setAttribute("oninput","return;"),yi=typeof _c.oninput=="function"}gi=yi}else gi=!1;Cc=gi&&(!document.documentMode||9<document.documentMode)}function bu(){pl&&(pl.detachEvent("onpropertychange",Ac),vl=pl=null)}function Ac(n){if(n.propertyName==="value"&&ql(vl)){var a=[];hs(a,vl,n,ls(n)),gu(xc,a)}}function ms(n,a,i){n==="focusin"?(bu(),pl=a,vl=i,pl.attachEvent("onpropertychange",Ac)):n==="focusout"&&bu()}function La(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ql(vl)}function oa(n,a){if(n==="click")return ql(a)}function Mc(n,a){if(n==="input"||n==="change")return ql(a)}function Rc(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var cn=typeof Object.is=="function"?Object.is:Rc;function qa(n,a){if(cn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var i=Object.keys(n),o=Object.keys(a);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var r=i[o];if(!ti.call(a,r)||!cn(n[r],a[r]))return!1}return!0}function Ya(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Et(n,a){var i=Ya(n);n=0;for(var o;i;){if(i.nodeType===3){if(o=n+i.textContent.length,n<=a&&o>=a)return{node:i,offset:a-n};n=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Ya(i)}}function fo(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?fo(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Dc(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=hu(n.document);a instanceof n.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)n=a.contentWindow;else break;a=hu(n.document)}return a}function ho(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var bi=Nl&&"documentMode"in document&&11>=document.documentMode,Yl=null,gl=null,Va=null,Si=!1;function ps(n,a,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Si||Yl==null||Yl!==hu(o)||(o=Yl,"selectionStart"in o&&ho(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Va&&qa(Va,o)||(Va=o,o=pr(gl,"onSelect"),0<o.length&&(a=new os("onSelect","select",null,a,i),n.push({event:a,listeners:o}),a.target=Yl)))}function sa(n,a){var i={};return i[n.toLowerCase()]=a.toLowerCase(),i["Webkit"+n]="webkit"+a,i["Moz"+n]="moz"+a,i}var Ti={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionrun:sa("Transition","TransitionRun"),transitionstart:sa("Transition","TransitionStart"),transitioncancel:sa("Transition","TransitionCancel"),transitionend:sa("Transition","TransitionEnd")},ll={},yl={};Nl&&(yl=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);function Vl(n){if(ll[n])return ll[n];if(!Ti[n])return n;var a=Ti[n],i;for(i in a)if(a.hasOwnProperty(i)&&i in yl)return ll[n]=a[i];return n}var df=Vl("animationend"),zc=Vl("animationiteration"),hf=Vl("animationstart"),Oc=Vl("transitionrun"),vs=Vl("transitionstart"),mf=Vl("transitioncancel"),Uc=Vl("transitionend"),wc=new Map,Su="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(" ");Su.push("scrollEnd");function al(n,a){wc.set(n,a),Oa(a,[n])}var Hc=new WeakMap;function $n(n,a){if(typeof n=="object"&&n!==null){var i=Hc.get(n);return i!==void 0?i:(a={value:n,source:a,stack:uc(a)},Hc.set(n,a),a)}return{value:n,source:a,stack:uc(a)}}var Hn=[],Ga=0,Gl=0;function De(){for(var n=Ga,a=Gl=Ga=0;a<n;){var i=Hn[a];Hn[a++]=null;var o=Hn[a];Hn[a++]=null;var r=Hn[a];Hn[a++]=null;var d=Hn[a];if(Hn[a++]=null,o!==null&&r!==null){var g=o.pending;g===null?r.next=r:(r.next=g.next,g.next=r),o.pending=r}d!==0&&Bc(i,r,d)}}function mo(n,a,i,o){Hn[Ga++]=n,Hn[Ga++]=a,Hn[Ga++]=i,Hn[Ga++]=o,Gl|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function kc(n,a,i,o){return mo(n,a,i,o),pf(n)}function xi(n,a){return mo(n,null,null,a),pf(n)}function Bc(n,a,i){n.lanes|=i;var o=n.alternate;o!==null&&(o.lanes|=i);for(var r=!1,d=n.return;d!==null;)d.childLanes|=i,o=d.alternate,o!==null&&(o.childLanes|=i),d.tag===22&&(n=d.stateNode,n===null||n._visibility&1||(r=!0)),n=d,d=d.return;return n.tag===3?(d=n.stateNode,r&&a!==null&&(r=31-Ot(i),n=d.hiddenUpdates,o=n[r],o===null?n[r]=[a]:o.push(a),a.lane=i|536870912),d):null}function pf(n){if(50<cr)throw cr=0,Kp=null,Error(m(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Nc={};function xv(n,a,i,o){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bl(n,a,i,o){return new xv(n,a,i,o)}function vf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ja(n,a){var i=n.alternate;return i===null?(i=bl(n.tag,a,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=a,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&65011712,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,a=n.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function Ie(n,a){n.flags&=65011714;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,a=i.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function ne(n,a,i,o,r,d){var g=0;if(o=n,typeof n=="function")vf(n)&&(g=1);else if(typeof n=="string")g=ng(n,i,He.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case me:return n=bl(31,i,a,r),n.elementType=me,n.lanes=d,n;case se:return ca(i.children,r,d,a);case ue:g=8,r|=24;break;case ae:return n=bl(12,i,a,r|2),n.elementType=ae,n.lanes=d,n;case Ye:return n=bl(13,i,a,r),n.elementType=Ye,n.lanes=d,n;case qe:return n=bl(19,i,a,r),n.elementType=qe,n.lanes=d,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case de:case fe:g=10;break e;case ke:g=9;break e;case xe:g=11;break e;case ze:g=14;break e;case at:g=16,o=null;break e}g=29,i=Error(m(130,n===null?"null":typeof n,"")),o=null}return a=bl(g,i,a,r),a.elementType=n,a.type=o,a.lanes=d,a}function ca(n,a,i,o){return n=bl(7,n,o,a),n.lanes=i,n}function Lc(n,a,i){return n=bl(6,n,null,a),n.lanes=i,n}function jt(n,a,i){return a=bl(4,n.children!==null?n.children:[],n.key,a),a.lanes=i,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var po=[],vo=0,gf=null,qc=0,ra=[],Sl=0,Tu=null,Xa=1,Jt="";function ut(n,a){po[vo++]=qc,po[vo++]=gf,gf=n,qc=a}function Xd(n,a,i){ra[Sl++]=Xa,ra[Sl++]=Jt,ra[Sl++]=Tu,Tu=n;var o=Xa;n=Jt;var r=32-Ot(o)-1;o&=~(1<<r),i+=1;var d=32-Ot(a)+r;if(30<d){var g=r-r%5;d=(o&(1<<g)-1).toString(32),o>>=g,r-=g,Xa=1<<32-Ot(a)+r|i<<r|o,Jt=d+n}else Xa=1<<d|i<<r|o,Jt=n}function gs(n){n.return!==null&&(ut(n,1),Xd(n,1,0))}function Ei(n){for(;n===gf;)gf=po[--vo],po[vo]=null,qc=po[--vo],po[vo]=null;for(;n===Tu;)Tu=ra[--Sl],ra[Sl]=null,Jt=ra[--Sl],ra[Sl]=null,Xa=ra[--Sl],ra[Sl]=null}var an=null,ft=null,ct=!1,fa=null,da=!1,ys=Error(m(519));function xu(n){var a=Error(m(418,""));throw Gc($n(a,n)),ys}function yf(n){var a=n.stateNode,i=n.type,o=n.memoizedProps;switch(a[ln]=n,a[En]=o,i){case"dialog":Xe("cancel",a),Xe("close",a);break;case"iframe":case"object":case"embed":Xe("load",a);break;case"video":case"audio":for(i=0;i<ld.length;i++)Xe(ld[i],a);break;case"source":Xe("error",a);break;case"img":case"image":case"link":Xe("error",a),Xe("load",a);break;case"details":Xe("toggle",a);break;case"input":Xe("invalid",a),ts(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),Ha(a);break;case"select":Xe("invalid",a);break;case"textarea":Xe("invalid",a),cc(a,o.value,o.defaultValue,o.children),Ha(a)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||o.suppressHydrationWarning===!0||c0(a.textContent,i)?(o.popover!=null&&(Xe("beforetoggle",a),Xe("toggle",a)),o.onScroll!=null&&Xe("scroll",a),o.onScrollEnd!=null&&Xe("scrollend",a),o.onClick!=null&&(a.onclick=em),a=!0):a=!1,a||xu(n)}function Im(n){for(an=n.return;an;)switch(an.tag){case 5:case 13:da=!1;return;case 27:case 3:da=!0;return;default:an=an.return}}function Yc(n){if(n!==an)return!1;if(!ct)return Im(n),ct=!0,!1;var a=n.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||ji(n.type,n.memoizedProps)),i=!i),i&&ft&&xu(n),Im(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(m(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(i=n.data,i==="/$"){if(a===0){ft=Ia(n.nextSibling);break e}a--}else i!=="$"&&i!=="$!"&&i!=="$?"||a++;n=n.nextSibling}ft=null}}else a===27?(a=ft,Ho(n.type)?(n=ko,ko=null,ft=n):ft=a):ft=an?Ia(n.stateNode.nextSibling):null;return!0}function Vc(){ft=an=null,ct=!1}function Wm(){var n=fa;return n!==null&&(Al===null?Al=n:Al.push.apply(Al,n),fa=null),n}function Gc(n){fa===null?fa=[n]:fa.push(n)}var bf=pe(null),Eu=null,Qa=null;function Cu(n,a,i){ve(bf,a._currentValue),a._currentValue=i}function Ci(n){n._currentValue=bf.current,ie(bf)}function Qd(n,a,i){for(;n!==null;){var o=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),n===i)break;n=n.return}}function Fm(n,a,i,o){var r=n.child;for(r!==null&&(r.return=n);r!==null;){var d=r.dependencies;if(d!==null){var g=r.child;d=d.firstContext;e:for(;d!==null;){var y=d;d=r;for(var E=0;E<a.length;E++)if(y.context===a[E]){d.lanes|=i,y=d.alternate,y!==null&&(y.lanes|=i),Qd(d.return,i,n),o||(g=null);break e}d=y.next}}else if(r.tag===18){if(g=r.return,g===null)throw Error(m(341));g.lanes|=i,d=g.alternate,d!==null&&(d.lanes|=i),Qd(g,i,n),g=null}else g=r.child;if(g!==null)g.return=r;else for(g=r;g!==null;){if(g===n){g=null;break}if(r=g.sibling,r!==null){r.return=g.return,g=r;break}g=g.return}r=g}}function jc(n,a,i,o){n=null;for(var r=a,d=!1;r!==null;){if(!d){if((r.flags&524288)!==0)d=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var g=r.alternate;if(g===null)throw Error(m(387));if(g=g.memoizedProps,g!==null){var y=r.type;cn(r.pendingProps.value,g.value)||(n!==null?n.push(y):n=[y])}}else if(r===dl.current){if(g=r.alternate,g===null)throw Error(m(387));g.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(n!==null?n.push(zl):n=[zl])}r=r.return}n!==null&&Fm(a,n,i,o),a.flags|=262144}function Sf(n){for(n=n.firstContext;n!==null;){if(!cn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function go(n){Eu=n,Qa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function An(n){return Pm(Eu,n)}function Tf(n,a){return Eu===null&&go(n),Pm(n,a)}function Pm(n,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Qa===null){if(n===null)throw Error(m(308));Qa=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Qa=Qa.next=a;return i}var Xc=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(i,o){n.push(o)}};this.abort=function(){a.aborted=!0,n.forEach(function(i){return i()})}},Zd=b.unstable_scheduleCallback,Ev=b.unstable_NormalPriority,pn={$$typeof:fe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qc(){return{controller:new Xc,data:new Map,refCount:0}}function _i(n){n.refCount--,n.refCount===0&&Zd(Ev,function(){n.controller.abort()})}var yo=null,xf=0,ha=0,vn=null;function $d(n,a){if(yo===null){var i=yo=[];xf=0,ha=Ys(),vn={status:"pending",value:void 0,then:function(o){i.push(o)}}}return xf++,a.then(Jd,Jd),a}function Jd(){if(--xf===0&&yo!==null){vn!==null&&(vn.status="fulfilled");var n=yo;yo=null,ha=0,vn=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Cv(n,a){var i=[],o={status:"pending",value:null,reason:null,then:function(r){i.push(r)}};return n.then(function(){o.status="fulfilled",o.value=a;for(var r=0;r<i.length;r++)(0,i[r])(a)},function(r){for(o.status="rejected",o.reason=r,r=0;r<i.length;r++)(0,i[r])(void 0)}),o}var Kd=D.S;D.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&$d(n,a),Kd!==null&&Kd(n,a)};var Ai=pe(null);function Ef(){var n=Ai.current;return n!==null?n:Rt.pooledCache}function bs(n,a){a===null?ve(Ai,Ai.current):ve(Ai,a.pool)}function Id(){var n=Ef();return n===null?null:{parent:pn._currentValue,pool:n}}var bo=Error(m(460)),Wd=Error(m(474)),Cf=Error(m(542)),Fd={then:function(){}};function Pd(n){return n=n.status,n==="fulfilled"||n==="rejected"}function _f(){}function ep(n,a,i){switch(i=n[i],i===void 0?n.push(a):i!==a&&(a.then(_f,_f),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,np(n),n;default:if(typeof a.status=="string")a.then(_f,_f);else{if(n=Rt,n!==null&&100<n.shellSuspendCounter)throw Error(m(482));n=a,n.status="pending",n.then(function(o){if(a.status==="pending"){var r=a;r.status="fulfilled",r.value=o}},function(o){if(a.status==="pending"){var r=a;r.status="rejected",r.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,np(n),n}throw Ss=a,bo}}var Ss=null;function tp(){if(Ss===null)throw Error(m(459));var n=Ss;return Ss=null,n}function np(n){if(n===bo||n===Cf)throw Error(m(483))}var Mi=!1;function eh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function th(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Tl(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ri(n,a,i){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(yt&2)!==0){var r=o.pending;return r===null?a.next=a:(a.next=r.next,r.next=a),o.pending=a,a=pf(n),Bc(n,null,i),a}return mo(n,o,a,i),pf(n)}function Ts(n,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var o=a.lanes;o&=n.pendingLanes,i|=o,a.lanes=i,Ku(n,i)}}function lp(n,a){var i=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var r=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?r=d=g:d=d.next=g,i=i.next}while(i!==null);d===null?r=d=a:d=d.next=a}else r=d=a;i={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=a:n.next=a,i.lastBaseUpdate=a}var ap=!1;function Zc(){if(ap){var n=vn;if(n!==null)throw n}}function _u(n,a,i,o){ap=!1;var r=n.updateQueue;Mi=!1;var d=r.firstBaseUpdate,g=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var E=y,H=E.next;E.next=null,g===null?d=H:g.next=H,g=E;var I=n.alternate;I!==null&&(I=I.updateQueue,y=I.lastBaseUpdate,y!==g&&(y===null?I.firstBaseUpdate=H:y.next=H,I.lastBaseUpdate=E))}if(d!==null){var P=r.baseState;g=0,I=H=E=null,y=d;do{var B=y.lane&-536870913,L=B!==y.lane;if(L?(nt&B)===B:(o&B)===B){B!==0&&B===ha&&(ap=!0),I!==null&&(I=I.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var Ae=n,Me=y;B=a;var ht=i;switch(Me.tag){case 1:if(Ae=Me.payload,typeof Ae=="function"){P=Ae.call(ht,P,B);break e}P=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Me.payload,B=typeof Ae=="function"?Ae.call(ht,P,B):Ae,B==null)break e;P=ee({},P,B);break e;case 2:Mi=!0}}B=y.callback,B!==null&&(n.flags|=64,L&&(n.flags|=8192),L=r.callbacks,L===null?r.callbacks=[B]:L.push(B))}else L={lane:B,tag:y.tag,payload:y.payload,callback:y.callback,next:null},I===null?(H=I=L,E=P):I=I.next=L,g|=B;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;L=y,y=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);I===null&&(E=P),r.baseState=E,r.firstBaseUpdate=H,r.lastBaseUpdate=I,d===null&&(r.shared.lanes=0),Uu|=g,n.lanes=g,n.memoizedState=P}}function nh(n,a){if(typeof n!="function")throw Error(m(191,n));n.call(a)}function Af(n,a){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)nh(i[n],a)}var xs=pe(null),Mf=pe(0);function Mn(n,a){n=Ou,ve(Mf,n),ve(xs,a),Ou=n|a.baseLanes}function $c(){ve(Mf,Ou),ve(xs,xs.current)}function Jc(){Ou=Mf.current,ie(xs),ie(Mf)}var ma=0,je=null,gt=null,Xt=null,Rf=!1,jl=!1,So=!1,Za=0,Xl=0,Au=null,ip=0;function Qt(){throw Error(m(321))}function lh(n,a){if(a===null)return!1;for(var i=0;i<a.length&&i<n.length;i++)if(!cn(n[i],a[i]))return!1;return!0}function ah(n,a,i,o,r,d){return ma=d,je=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,D.H=n===null||n.memoizedState===null?Sp:Tp,So=!1,d=i(o,r),So=!1,jl&&(d=up(a,i,o,r)),To(n),d}function To(n){D.H=Th;var a=gt!==null&&gt.next!==null;if(ma=0,Xt=gt=je=null,Rf=!1,Xl=0,Au=null,a)throw Error(m(300));n===null||gn||(n=n.dependencies,n!==null&&Sf(n)&&(gn=!0))}function up(n,a,i,o){je=n;var r=0;do{if(jl&&(Au=null),Xl=0,jl=!1,25<=r)throw Error(m(301));if(r+=1,Xt=gt=null,n.updateQueue!=null){var d=n.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}D.H=Mu,d=a(i,o)}while(jl);return d}function _v(){var n=D.H,a=n.useState()[0];return a=typeof a.then=="function"?zf(a):a,n=n.useState()[0],(gt!==null?gt.memoizedState:null)!==n&&(je.flags|=1024),a}function ih(){var n=Za!==0;return Za=0,n}function Kc(n,a,i){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~i}function uh(n){if(Rf){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Rf=!1}ma=0,Xt=gt=je=null,jl=!1,Xl=Za=0,Au=null}function Jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?je.memoizedState=Xt=n:Xt=Xt.next=n,Xt}function Kt(){if(gt===null){var n=je.alternate;n=n!==null?n.memoizedState:null}else n=gt.next;var a=Xt===null?je.memoizedState:Xt.next;if(a!==null)Xt=a,gt=n;else{if(n===null)throw je.alternate===null?Error(m(467)):Error(m(310));gt=n,n={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},Xt===null?je.memoizedState=Xt=n:Xt=Xt.next=n}return Xt}function Df(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zf(n){var a=Xl;return Xl+=1,Au===null&&(Au=[]),n=ep(Au,n,a),a=je,(Xt===null?a.memoizedState:Xt.next)===null&&(a=a.alternate,D.H=a===null||a.memoizedState===null?Sp:Tp),n}function rn(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return zf(n);if(n.$$typeof===fe)return An(n)}throw Error(m(438,String(n)))}function oh(n){var a=null,i=je.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var o=je.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(r){return r.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=Df(),je.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(n),o=0;o<n;o++)i[o]=_e;return a.index++,i}function Di(n,a){return typeof a=="function"?a(n):a}function Of(n){var a=Kt();return sh(a,gt,n)}function sh(n,a,i){var o=n.queue;if(o===null)throw Error(m(311));o.lastRenderedReducer=i;var r=n.baseQueue,d=o.pending;if(d!==null){if(r!==null){var g=r.next;r.next=d.next,d.next=g}a.baseQueue=r=d,o.pending=null}if(d=n.baseState,r===null)n.memoizedState=d;else{a=r.next;var y=g=null,E=null,H=a,I=!1;do{var P=H.lane&-536870913;if(P!==H.lane?(nt&P)===P:(ma&P)===P){var B=H.revertLane;if(B===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),P===ha&&(I=!0);else if((ma&B)===B){H=H.next,B===ha&&(I=!0);continue}else P={lane:0,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(y=E=P,g=d):E=E.next=P,je.lanes|=B,Uu|=B;P=H.action,So&&i(d,P),d=H.hasEagerState?H.eagerState:i(d,P)}else B={lane:P,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(y=E=B,g=d):E=E.next=B,je.lanes|=P,Uu|=P;H=H.next}while(H!==null&&H!==a);if(E===null?g=d:E.next=y,!cn(d,n.memoizedState)&&(gn=!0,I&&(i=vn,i!==null)))throw i;n.memoizedState=d,n.baseState=g,n.baseQueue=E,o.lastRenderedState=d}return r===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function ch(n){var a=Kt(),i=a.queue;if(i===null)throw Error(m(311));i.lastRenderedReducer=n;var o=i.dispatch,r=i.pending,d=a.memoizedState;if(r!==null){i.pending=null;var g=r=r.next;do d=n(d,g.action),g=g.next;while(g!==r);cn(d,a.memoizedState)||(gn=!0),a.memoizedState=d,a.baseQueue===null&&(a.baseState=d),i.lastRenderedState=d}return[d,o]}function Uf(n,a,i){var o=je,r=Kt(),d=ct;if(d){if(i===void 0)throw Error(m(407));i=i()}else i=a();var g=!cn((gt||r).memoizedState,i);g&&(r.memoizedState=i,gn=!0),r=r.queue;var y=sp.bind(null,o,r,n);if(Ct(2048,8,y,[n]),r.getSnapshot!==a||g||Xt!==null&&Xt.memoizedState.tag&1){if(o.flags|=2048,xl(9,kf(),op.bind(null,o,r,i,a),null),Rt===null)throw Error(m(349));d||(ma&124)!==0||rh(o,a,i)}return i}function rh(n,a,i){n.flags|=16384,n={getSnapshot:a,value:i},a=je.updateQueue,a===null?(a=Df(),je.updateQueue=a,a.stores=[n]):(i=a.stores,i===null?a.stores=[n]:i.push(n))}function op(n,a,i,o){a.value=i,a.getSnapshot=o,cp(a)&&fh(n)}function sp(n,a,i){return i(function(){cp(a)&&fh(n)})}function cp(n){var a=n.getSnapshot;n=n.value;try{var i=a();return!cn(n,i)}catch{return!0}}function fh(n){var a=xi(n,2);a!==null&&$l(a,n,2)}function wf(n){var a=Jn();if(typeof n=="function"){var i=n;if(n=i(),So){xn(!0);try{i()}finally{xn(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:n},a}function dh(n,a,i,o){return n.baseState=i,sh(n,gt,typeof o=="function"?o:Di)}function Av(n,a,i,o,r){if(As(n))throw Error(m(485));if(n=a.action,n!==null){var d={payload:r,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){d.listeners.push(g)}};D.T!==null?i(!0):d.isTransition=!1,o(d),i=a.pending,i===null?(d.next=a.pending=d,hh(a,d)):(d.next=i.next,a.pending=i.next=d)}}function hh(n,a){var i=a.action,o=a.payload,r=n.state;if(a.isTransition){var d=D.T,g={};D.T=g;try{var y=i(r,o),E=D.S;E!==null&&E(g,y),Hf(n,a,y)}catch(H){ph(n,a,H)}finally{D.T=d}}else try{d=i(r,o),Hf(n,a,d)}catch(H){ph(n,a,H)}}function Hf(n,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){mh(n,a,o)},function(o){return ph(n,a,o)}):mh(n,a,i)}function mh(n,a,i){a.status="fulfilled",a.value=i,rp(a),n.state=i,a=n.pending,a!==null&&(i=a.next,i===a?n.pending=null:(i=i.next,a.next=i,hh(n,i)))}function ph(n,a,i){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=i,rp(a),a=a.next;while(a!==o)}n.action=null}function rp(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function vh(n,a){return a}function fp(n,a){if(ct){var i=Rt.formState;if(i!==null){e:{var o=je;if(ct){if(ft){t:{for(var r=ft,d=da;r.nodeType!==8;){if(!d){r=null;break t}if(r=Ia(r.nextSibling),r===null){r=null;break t}}d=r.data,r=d==="F!"||d==="F"?r:null}if(r){ft=Ia(r.nextSibling),o=r.data==="F!";break e}}xu(o)}o=!1}o&&(a=i[0])}}return i=Jn(),i.memoizedState=i.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vh,lastRenderedState:a},i.queue=o,i=yp.bind(null,je,o),o.dispatch=i,o=wf(!1),d=Lf.bind(null,je,!1,o.queue),o=Jn(),r={state:a,dispatch:null,action:n,pending:null},o.queue=r,i=Av.bind(null,je,r,d,i),r.dispatch=i,o.memoizedState=n,[a,i,!1]}function zi(n){var a=Kt();return gh(a,gt,n)}function gh(n,a,i){if(a=sh(n,a,vh)[0],n=Of(Di)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=zf(a)}catch(g){throw g===bo?Cf:g}else o=a;a=Kt();var r=a.queue,d=r.dispatch;return i!==a.memoizedState&&(je.flags|=2048,xl(9,kf(),ny.bind(null,r,i),null)),[o,d,n]}function ny(n,a){n.action=a}function yh(n){var a=Kt(),i=gt;if(i!==null)return gh(a,i,n);Kt(),a=a.memoizedState,i=Kt();var o=i.queue.dispatch;return i.memoizedState=n,[a,o,!1]}function xl(n,a,i,o){return n={tag:n,create:i,deps:o,inst:a,next:null},a=je.updateQueue,a===null&&(a=Df(),je.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=n.next=n:(o=i.next,i.next=n,n.next=o,a.lastEffect=n),n}function kf(){return{destroy:void 0,resource:void 0}}function Bf(){return Kt().memoizedState}function xo(n,a,i,o){var r=Jn();o=o===void 0?null:o,je.flags|=n,r.memoizedState=xl(1|a,kf(),i,o)}function Ct(n,a,i,o){var r=Kt();o=o===void 0?null:o;var d=r.memoizedState.inst;gt!==null&&o!==null&&lh(o,gt.memoizedState.deps)?r.memoizedState=xl(a,d,i,o):(je.flags|=n,r.memoizedState=xl(1|a,d,i,o))}function Mv(n,a){xo(8390656,8,n,a)}function Rv(n,a){Ct(2048,8,n,a)}function dp(n,a){return Ct(4,2,n,a)}function $a(n,a){return Ct(4,4,n,a)}function hp(n,a){if(typeof a=="function"){n=n();var i=a(n);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function bh(n,a,i){i=i!=null?i.concat([n]):null,Ct(4,4,hp.bind(null,a,n),i)}function Es(){}function Cs(n,a){var i=Kt();a=a===void 0?null:a;var o=i.memoizedState;return a!==null&&lh(a,o[1])?o[0]:(i.memoizedState=[n,a],n)}function mp(n,a){var i=Kt();a=a===void 0?null:a;var o=i.memoizedState;if(a!==null&&lh(a,o[1]))return o[0];if(o=n(),So){xn(!0);try{n()}finally{xn(!1)}}return i.memoizedState=[o,a],o}function Nf(n,a,i){return i===void 0||(ma&1073741824)!==0?n.memoizedState=a:(n.memoizedState=i,n=Ip(),je.lanes|=n,Uu|=n,i)}function pp(n,a,i,o){return cn(i,a)?i:xs.current!==null?(n=Nf(n,i,o),cn(n,a)||(gn=!0),n):(ma&42)===0?(gn=!0,n.memoizedState=i):(n=Ip(),je.lanes|=n,Uu|=n,a)}function Dv(n,a,i,o,r){var d=W.p;W.p=d!==0&&8>d?d:8;var g=D.T,y={};D.T=y,Lf(n,!1,a,i);try{var E=r(),H=D.S;if(H!==null&&H(y,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var I=Cv(E,o);_s(n,a,I,Zl(n))}else _s(n,a,o,Zl(n))}catch(P){_s(n,a,{then:function(){},status:"rejected",reason:P},Zl())}finally{W.p=d,D.T=g}}function ly(){}function Sh(n,a,i,o){if(n.tag!==5)throw Error(m(476));var r=zv(n).queue;Dv(n,r,a,te,i===null?ly:function(){return Ic(n),i(o)})}function zv(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:te},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:i},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Ic(n){var a=zv(n).next.queue;_s(n,a,{},Zl())}function pa(){return An(zl)}function vp(){return Kt().memoizedState}function Ov(){return Kt().memoizedState}function Uv(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var i=Zl();n=Tl(i);var o=Ri(a,n,i);o!==null&&($l(o,a,i),Ts(o,a,i)),a={cache:Qc()},n.payload=a;return}a=a.return}}function gp(n,a,i){var o=Zl();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},As(n)?wv(a,i):(i=kc(n,a,i,o),i!==null&&($l(i,n,o),bp(i,a,o)))}function yp(n,a,i){var o=Zl();_s(n,a,i,o)}function _s(n,a,i,o){var r={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(As(n))wv(a,r);else{var d=n.alternate;if(n.lanes===0&&(d===null||d.lanes===0)&&(d=a.lastRenderedReducer,d!==null))try{var g=a.lastRenderedState,y=d(g,i);if(r.hasEagerState=!0,r.eagerState=y,cn(y,g))return mo(n,a,r,0),Rt===null&&De(),!1}catch{}finally{}if(i=kc(n,a,r,o),i!==null)return $l(i,n,o),bp(i,a,o),!0}return!1}function Lf(n,a,i,o){if(o={lane:2,revertLane:Ys(),action:o,hasEagerState:!1,eagerState:null,next:null},As(n)){if(a)throw Error(m(479))}else a=kc(n,i,o,2),a!==null&&$l(a,n,2)}function As(n){var a=n.alternate;return n===je||a!==null&&a===je}function wv(n,a){jl=Rf=!0;var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}function bp(n,a,i){if((i&4194048)!==0){var o=a.lanes;o&=n.pendingLanes,i|=o,a.lanes=i,Ku(n,i)}}var Th={readContext:An,use:rn,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt},Sp={readContext:An,use:rn,useCallback:function(n,a){return Jn().memoizedState=[n,a===void 0?null:a],n},useContext:An,useEffect:Mv,useImperativeHandle:function(n,a,i){i=i!=null?i.concat([n]):null,xo(4194308,4,hp.bind(null,a,n),i)},useLayoutEffect:function(n,a){return xo(4194308,4,n,a)},useInsertionEffect:function(n,a){xo(4,2,n,a)},useMemo:function(n,a){var i=Jn();a=a===void 0?null:a;var o=n();if(So){xn(!0);try{n()}finally{xn(!1)}}return i.memoizedState=[o,a],o},useReducer:function(n,a,i){var o=Jn();if(i!==void 0){var r=i(a);if(So){xn(!0);try{i(a)}finally{xn(!1)}}}else r=a;return o.memoizedState=o.baseState=r,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:r},o.queue=n,n=n.dispatch=gp.bind(null,je,n),[o.memoizedState,n]},useRef:function(n){var a=Jn();return n={current:n},a.memoizedState=n},useState:function(n){n=wf(n);var a=n.queue,i=yp.bind(null,je,a);return a.dispatch=i,[n.memoizedState,i]},useDebugValue:Es,useDeferredValue:function(n,a){var i=Jn();return Nf(i,n,a)},useTransition:function(){var n=wf(!1);return n=Dv.bind(null,je,n.queue,!0,!1),Jn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,i){var o=je,r=Jn();if(ct){if(i===void 0)throw Error(m(407));i=i()}else{if(i=a(),Rt===null)throw Error(m(349));(nt&124)!==0||rh(o,a,i)}r.memoizedState=i;var d={value:i,getSnapshot:a};return r.queue=d,Mv(sp.bind(null,o,d,n),[n]),o.flags|=2048,xl(9,kf(),op.bind(null,o,d,i,a),null),i},useId:function(){var n=Jn(),a=Rt.identifierPrefix;if(ct){var i=Jt,o=Xa;i=(o&~(1<<32-Ot(o)-1)).toString(32)+i,a="«"+a+"R"+i,i=Za++,0<i&&(a+="H"+i.toString(32)),a+="»"}else i=ip++,a="«"+a+"r"+i.toString(32)+"»";return n.memoizedState=a},useHostTransitionStatus:pa,useFormState:fp,useActionState:fp,useOptimistic:function(n){var a=Jn();a.memoizedState=a.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=Lf.bind(null,je,!0,i),i.dispatch=a,[n,a]},useMemoCache:oh,useCacheRefresh:function(){return Jn().memoizedState=Uv.bind(null,je)}},Tp={readContext:An,use:rn,useCallback:Cs,useContext:An,useEffect:Rv,useImperativeHandle:bh,useInsertionEffect:dp,useLayoutEffect:$a,useMemo:mp,useReducer:Of,useRef:Bf,useState:function(){return Of(Di)},useDebugValue:Es,useDeferredValue:function(n,a){var i=Kt();return pp(i,gt.memoizedState,n,a)},useTransition:function(){var n=Of(Di)[0],a=Kt().memoizedState;return[typeof n=="boolean"?n:zf(n),a]},useSyncExternalStore:Uf,useId:vp,useHostTransitionStatus:pa,useFormState:zi,useActionState:zi,useOptimistic:function(n,a){var i=Kt();return dh(i,gt,n,a)},useMemoCache:oh,useCacheRefresh:Ov},Mu={readContext:An,use:rn,useCallback:Cs,useContext:An,useEffect:Rv,useImperativeHandle:bh,useInsertionEffect:dp,useLayoutEffect:$a,useMemo:mp,useReducer:ch,useRef:Bf,useState:function(){return ch(Di)},useDebugValue:Es,useDeferredValue:function(n,a){var i=Kt();return gt===null?Nf(i,n,a):pp(i,gt.memoizedState,n,a)},useTransition:function(){var n=ch(Di)[0],a=Kt().memoizedState;return[typeof n=="boolean"?n:zf(n),a]},useSyncExternalStore:Uf,useId:vp,useHostTransitionStatus:pa,useFormState:yh,useActionState:yh,useOptimistic:function(n,a){var i=Kt();return gt!==null?dh(i,gt,n,a):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:oh,useCacheRefresh:Ov},Ms=null,Wc=0;function xh(n){var a=Wc;return Wc+=1,Ms===null&&(Ms=[]),ep(Ms,n,a)}function Rs(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Kn(n,a){throw a.$$typeof===le?Error(m(525)):(n=Object.prototype.toString.call(a),Error(m(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function xp(n){var a=n._init;return a(n._payload)}function El(n){function a(O,z){if(n){var U=O.deletions;U===null?(O.deletions=[z],O.flags|=16):U.push(z)}}function i(O,z){if(!n)return null;for(;z!==null;)a(O,z),z=z.sibling;return null}function o(O){for(var z=new Map;O!==null;)O.key!==null?z.set(O.key,O):z.set(O.index,O),O=O.sibling;return z}function r(O,z){return O=ja(O,z),O.index=0,O.sibling=null,O}function d(O,z,U){return O.index=U,n?(U=O.alternate,U!==null?(U=U.index,U<z?(O.flags|=67108866,z):U):(O.flags|=67108866,z)):(O.flags|=1048576,z)}function g(O){return n&&O.alternate===null&&(O.flags|=67108866),O}function y(O,z,U,F){return z===null||z.tag!==6?(z=Lc(U,O.mode,F),z.return=O,z):(z=r(z,U),z.return=O,z)}function E(O,z,U,F){var be=U.type;return be===se?I(O,z,U.props.children,F,U.key):z!==null&&(z.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===at&&xp(be)===z.type)?(z=r(z,U.props),Rs(z,U),z.return=O,z):(z=ne(U.type,U.key,U.props,null,O.mode,F),Rs(z,U),z.return=O,z)}function H(O,z,U,F){return z===null||z.tag!==4||z.stateNode.containerInfo!==U.containerInfo||z.stateNode.implementation!==U.implementation?(z=jt(U,O.mode,F),z.return=O,z):(z=r(z,U.children||[]),z.return=O,z)}function I(O,z,U,F,be){return z===null||z.tag!==7?(z=ca(U,O.mode,F,be),z.return=O,z):(z=r(z,U),z.return=O,z)}function P(O,z,U){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Lc(""+z,O.mode,U),z.return=O,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case V:return U=ne(z.type,z.key,z.props,null,O.mode,U),Rs(U,z),U.return=O,U;case oe:return z=jt(z,O.mode,U),z.return=O,z;case at:var F=z._init;return z=F(z._payload),P(O,z,U)}if(vt(z)||Ee(z))return z=ca(z,O.mode,U,null),z.return=O,z;if(typeof z.then=="function")return P(O,xh(z),U);if(z.$$typeof===fe)return P(O,Tf(O,z),U);Kn(O,z)}return null}function B(O,z,U,F){var be=z!==null?z.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return be!==null?null:y(O,z,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case V:return U.key===be?E(O,z,U,F):null;case oe:return U.key===be?H(O,z,U,F):null;case at:return be=U._init,U=be(U._payload),B(O,z,U,F)}if(vt(U)||Ee(U))return be!==null?null:I(O,z,U,F,null);if(typeof U.then=="function")return B(O,z,xh(U),F);if(U.$$typeof===fe)return B(O,z,Tf(O,U),F);Kn(O,U)}return null}function L(O,z,U,F,be){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return O=O.get(U)||null,y(z,O,""+F,be);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case V:return O=O.get(F.key===null?U:F.key)||null,E(z,O,F,be);case oe:return O=O.get(F.key===null?U:F.key)||null,H(z,O,F,be);case at:var We=F._init;return F=We(F._payload),L(O,z,U,F,be)}if(vt(F)||Ee(F))return O=O.get(U)||null,I(z,O,F,be,null);if(typeof F.then=="function")return L(O,z,U,xh(F),be);if(F.$$typeof===fe)return L(O,z,U,Tf(z,F),be);Kn(z,F)}return null}function Ae(O,z,U,F){for(var be=null,We=null,Ce=z,Ue=z=0,zn=null;Ce!==null&&Ue<U.length;Ue++){Ce.index>Ue?(zn=Ce,Ce=null):zn=Ce.sibling;var st=B(O,Ce,U[Ue],F);if(st===null){Ce===null&&(Ce=zn);break}n&&Ce&&st.alternate===null&&a(O,Ce),z=d(st,z,Ue),We===null?be=st:We.sibling=st,We=st,Ce=zn}if(Ue===U.length)return i(O,Ce),ct&&ut(O,Ue),be;if(Ce===null){for(;Ue<U.length;Ue++)Ce=P(O,U[Ue],F),Ce!==null&&(z=d(Ce,z,Ue),We===null?be=Ce:We.sibling=Ce,We=Ce);return ct&&ut(O,Ue),be}for(Ce=o(Ce);Ue<U.length;Ue++)zn=L(Ce,O,Ue,U[Ue],F),zn!==null&&(n&&zn.alternate!==null&&Ce.delete(zn.key===null?Ue:zn.key),z=d(zn,z,Ue),We===null?be=zn:We.sibling=zn,We=zn);return n&&Ce.forEach(function(Yo){return a(O,Yo)}),ct&&ut(O,Ue),be}function Me(O,z,U,F){if(U==null)throw Error(m(151));for(var be=null,We=null,Ce=z,Ue=z=0,zn=null,st=U.next();Ce!==null&&!st.done;Ue++,st=U.next()){Ce.index>Ue?(zn=Ce,Ce=null):zn=Ce.sibling;var Yo=B(O,Ce,st.value,F);if(Yo===null){Ce===null&&(Ce=zn);break}n&&Ce&&Yo.alternate===null&&a(O,Ce),z=d(Yo,z,Ue),We===null?be=Yo:We.sibling=Yo,We=Yo,Ce=zn}if(st.done)return i(O,Ce),ct&&ut(O,Ue),be;if(Ce===null){for(;!st.done;Ue++,st=U.next())st=P(O,st.value,F),st!==null&&(z=d(st,z,Ue),We===null?be=st:We.sibling=st,We=st);return ct&&ut(O,Ue),be}for(Ce=o(Ce);!st.done;Ue++,st=U.next())st=L(Ce,O,Ue,st.value,F),st!==null&&(n&&st.alternate!==null&&Ce.delete(st.key===null?Ue:st.key),z=d(st,z,Ue),We===null?be=st:We.sibling=st,We=st);return n&&Ce.forEach(function(py){return a(O,py)}),ct&&ut(O,Ue),be}function ht(O,z,U,F){if(typeof U=="object"&&U!==null&&U.type===se&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case V:e:{for(var be=U.key;z!==null;){if(z.key===be){if(be=U.type,be===se){if(z.tag===7){i(O,z.sibling),F=r(z,U.props.children),F.return=O,O=F;break e}}else if(z.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===at&&xp(be)===z.type){i(O,z.sibling),F=r(z,U.props),Rs(F,U),F.return=O,O=F;break e}i(O,z);break}else a(O,z);z=z.sibling}U.type===se?(F=ca(U.props.children,O.mode,F,U.key),F.return=O,O=F):(F=ne(U.type,U.key,U.props,null,O.mode,F),Rs(F,U),F.return=O,O=F)}return g(O);case oe:e:{for(be=U.key;z!==null;){if(z.key===be)if(z.tag===4&&z.stateNode.containerInfo===U.containerInfo&&z.stateNode.implementation===U.implementation){i(O,z.sibling),F=r(z,U.children||[]),F.return=O,O=F;break e}else{i(O,z);break}else a(O,z);z=z.sibling}F=jt(U,O.mode,F),F.return=O,O=F}return g(O);case at:return be=U._init,U=be(U._payload),ht(O,z,U,F)}if(vt(U))return Ae(O,z,U,F);if(Ee(U)){if(be=Ee(U),typeof be!="function")throw Error(m(150));return U=be.call(U),Me(O,z,U,F)}if(typeof U.then=="function")return ht(O,z,xh(U),F);if(U.$$typeof===fe)return ht(O,z,Tf(O,U),F);Kn(O,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,z!==null&&z.tag===6?(i(O,z.sibling),F=r(z,U),F.return=O,O=F):(i(O,z),F=Lc(U,O.mode,F),F.return=O,O=F),g(O)):i(O,z)}return function(O,z,U,F){try{Wc=0;var be=ht(O,z,U,F);return Ms=null,be}catch(Ce){if(Ce===bo||Ce===Cf)throw Ce;var We=bl(29,Ce,null,O.mode);return We.lanes=F,We.return=O,We}finally{}}}var Ds=El(!0),Oi=El(!1),Ql=pe(null),In=null;function Ru(n){var a=n.alternate;ve(_t,_t.current&1),ve(Ql,n),In===null&&(a===null||xs.current!==null||a.memoizedState!==null)&&(In=n)}function Ui(n){if(n.tag===22){if(ve(_t,_t.current),ve(Ql,n),In===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(In=n)}}else wi()}function wi(){ve(_t,_t.current),ve(Ql,Ql.current)}function Ja(n){ie(Ql),In===n&&(In=null),ie(_t)}var _t=pe(0);function qf(n){for(var a=n;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||sd(i)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Eo(n,a,i,o){a=n.memoizedState,i=i(o,a),i=i==null?a:ee({},a,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var Eh={enqueueSetState:function(n,a,i){n=n._reactInternals;var o=Zl(),r=Tl(o);r.payload=a,i!=null&&(r.callback=i),a=Ri(n,r,o),a!==null&&($l(a,n,o),Ts(a,n,o))},enqueueReplaceState:function(n,a,i){n=n._reactInternals;var o=Zl(),r=Tl(o);r.tag=1,r.payload=a,i!=null&&(r.callback=i),a=Ri(n,r,o),a!==null&&($l(a,n,o),Ts(a,n,o))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var i=Zl(),o=Tl(i);o.tag=2,a!=null&&(o.callback=a),a=Ri(n,o,i),a!==null&&($l(a,n,i),Ts(a,n,i))}};function Fc(n,a,i,o,r,d,g){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,d,g):a.prototype&&a.prototype.isPureReactComponent?!qa(i,o)||!qa(r,d):!0}function zs(n,a,i,o){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,o),a.state!==n&&Eh.enqueueReplaceState(a,a.state,null)}function Co(n,a){var i=a;if("ref"in a){i={};for(var o in a)o!=="ref"&&(i[o]=a[o])}if(n=n.defaultProps){i===a&&(i=ee({},i));for(var r in n)i[r]===void 0&&(i[r]=n[r])}return i}var Yf=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Pc(n){Yf(n)}function Ep(n){console.error(n)}function Vf(n){Yf(n)}function Gf(n,a){try{var i=n.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function Cp(n,a,i){try{var o=n.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function _p(n,a,i){return i=Tl(i),i.tag=3,i.payload={element:null},i.callback=function(){Gf(n,a)},i}function Ap(n){return n=Tl(n),n.tag=3,n}function Cl(n,a,i,o){var r=i.type.getDerivedStateFromError;if(typeof r=="function"){var d=o.value;n.payload=function(){return r(d)},n.callback=function(){Cp(a,i,o)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(n.callback=function(){Cp(a,i,o),typeof r!="function"&&(Ro===null?Ro=new Set([this]):Ro.add(this));var y=o.stack;this.componentDidCatch(o.value,{componentStack:y!==null?y:""})})}function Hv(n,a,i,o,r){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=i.alternate,a!==null&&jc(a,i,r,!0),i=Ql.current,i!==null){switch(i.tag){case 13:return In===null?qs():i.alternate===null&&Pt===0&&(Pt=3),i.flags&=-257,i.flags|=65536,i.lanes=r,o===Fd?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([o]):a.add(o),Kh(n,o,r)),!1;case 22:return i.flags|=65536,o===Fd?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([o]):i.add(o)),Kh(n,o,r)),!1}throw Error(m(435,i.tag))}return Kh(n,o,r),qs(),!1}if(ct)return a=Ql.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=r,o!==ys&&(n=Error(m(422),{cause:o}),Gc($n(n,i)))):(o!==ys&&(a=Error(m(423),{cause:o}),Gc($n(a,i))),n=n.current.alternate,n.flags|=65536,r&=-r,n.lanes|=r,o=$n(o,i),r=_p(n.stateNode,o,r),lp(n,r),Pt!==4&&(Pt=2)),!1;var d=Error(m(520),{cause:o});if(d=$n(d,i),ur===null?ur=[d]:ur.push(d),Pt!==4&&(Pt=2),a===null)return!0;o=$n(o,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,n=r&-r,i.lanes|=n,n=_p(i.stateNode,o,n),lp(i,n),!1;case 1:if(a=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ro===null||!Ro.has(d))))return i.flags|=65536,r&=-r,i.lanes|=r,r=Ap(r),Cl(r,n,i,o),lp(i,r),!1}i=i.return}while(i!==null);return!1}var It=Error(m(461)),gn=!1;function Rn(n,a,i,o){a.child=n===null?Oi(a,null,i,o):Ds(a,n.child,i,o)}function kv(n,a,i,o,r){i=i.render;var d=a.ref;if("ref"in o){var g={};for(var y in o)y!=="ref"&&(g[y]=o[y])}else g=o;return go(a),o=ah(n,a,i,g,d,r),y=ih(),n!==null&&!gn?(Kc(n,a,r),Hi(n,a,r)):(ct&&y&&gs(a),a.flags|=1,Rn(n,a,o,r),a.child)}function Du(n,a,i,o,r){if(n===null){var d=i.type;return typeof d=="function"&&!vf(d)&&d.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=d,Os(n,a,d,o,r)):(n=ne(i.type,null,o,a,a.mode,r),n.ref=a.ref,n.return=a,a.child=n)}if(d=n.child,!wh(n,r)){var g=d.memoizedProps;if(i=i.compare,i=i!==null?i:qa,i(g,o)&&n.ref===a.ref)return Hi(n,a,r)}return a.flags|=1,n=ja(d,o),n.ref=a.ref,n.return=a,a.child=n}function Os(n,a,i,o,r){if(n!==null){var d=n.memoizedProps;if(qa(d,o)&&n.ref===a.ref)if(gn=!1,a.pendingProps=o=d,wh(n,r))(n.flags&131072)!==0&&(gn=!0);else return a.lanes=n.lanes,Hi(n,a,r)}return _h(n,a,i,o,r)}function Ch(n,a,i){var o=a.pendingProps,r=o.children,d=n!==null?n.memoizedState:null;if(o.mode==="hidden"){if((a.flags&128)!==0){if(o=d!==null?d.baseLanes|i:i,n!==null){for(r=a.child=n.child,d=0;r!==null;)d=d|r.lanes|r.childLanes,r=r.sibling;a.childLanes=d&~o}else a.childLanes=0,a.child=null;return Us(n,a,o,i)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&bs(a,d!==null?d.cachePool:null),d!==null?Mn(a,d):$c(),Ui(a);else return a.lanes=a.childLanes=536870912,Us(n,a,d!==null?d.baseLanes|i:i,i)}else d!==null?(bs(a,d.cachePool),Mn(a,d),wi(),a.memoizedState=null):(n!==null&&bs(a,null),$c(),wi());return Rn(n,a,r,i),a.child}function Us(n,a,i,o){var r=Ef();return r=r===null?null:{parent:pn._currentValue,pool:r},a.memoizedState={baseLanes:i,cachePool:r},n!==null&&bs(a,null),$c(),Ui(a),n!==null&&jc(n,a,o,!0),null}function jf(n,a){var i=a.ref;if(i===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(m(284));(n===null||n.ref!==i)&&(a.flags|=4194816)}}function _h(n,a,i,o,r){return go(a),i=ah(n,a,i,o,void 0,r),o=ih(),n!==null&&!gn?(Kc(n,a,r),Hi(n,a,r)):(ct&&o&&gs(a),a.flags|=1,Rn(n,a,i,r),a.child)}function Mp(n,a,i,o,r,d){return go(a),a.updateQueue=null,i=up(a,o,i,r),To(n),o=ih(),n!==null&&!gn?(Kc(n,a,d),Hi(n,a,d)):(ct&&o&&gs(a),a.flags|=1,Rn(n,a,i,d),a.child)}function Ah(n,a,i,o,r){if(go(a),a.stateNode===null){var d=Nc,g=i.contextType;typeof g=="object"&&g!==null&&(d=An(g)),d=new i(o,d),a.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Eh,a.stateNode=d,d._reactInternals=a,d=a.stateNode,d.props=o,d.state=a.memoizedState,d.refs={},eh(a),g=i.contextType,d.context=typeof g=="object"&&g!==null?An(g):Nc,d.state=a.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Eo(a,i,g,o),d.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(g=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),g!==d.state&&Eh.enqueueReplaceState(d,d.state,null),_u(a,o,d,r),Zc(),d.state=a.memoizedState),typeof d.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(n===null){d=a.stateNode;var y=a.memoizedProps,E=Co(i,y);d.props=E;var H=d.context,I=i.contextType;g=Nc,typeof I=="object"&&I!==null&&(g=An(I));var P=i.getDerivedStateFromProps;I=typeof P=="function"||typeof d.getSnapshotBeforeUpdate=="function",y=a.pendingProps!==y,I||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y||H!==g)&&zs(a,d,o,g),Mi=!1;var B=a.memoizedState;d.state=B,_u(a,o,d,r),Zc(),H=a.memoizedState,y||B!==H||Mi?(typeof P=="function"&&(Eo(a,i,P,o),H=a.memoizedState),(E=Mi||Fc(a,i,E,o,B,H,g))?(I||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(a.flags|=4194308)):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=H),d.props=o,d.state=H,d.context=g,o=E):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{d=a.stateNode,th(n,a),g=a.memoizedProps,I=Co(i,g),d.props=I,P=a.pendingProps,B=d.context,H=i.contextType,E=Nc,typeof H=="object"&&H!==null&&(E=An(H)),y=i.getDerivedStateFromProps,(H=typeof y=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==P||B!==E)&&zs(a,d,o,E),Mi=!1,B=a.memoizedState,d.state=B,_u(a,o,d,r),Zc();var L=a.memoizedState;g!==P||B!==L||Mi||n!==null&&n.dependencies!==null&&Sf(n.dependencies)?(typeof y=="function"&&(Eo(a,i,y,o),L=a.memoizedState),(I=Mi||Fc(a,i,I,o,B,L,E)||n!==null&&n.dependencies!==null&&Sf(n.dependencies))?(H||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,L,E),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,L,E)),typeof d.componentDidUpdate=="function"&&(a.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=L),d.props=o,d.state=L,d.context=E,o=I):(typeof d.componentDidUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(a.flags|=1024),o=!1)}return d=o,jf(n,a),o=(a.flags&128)!==0,d||o?(d=a.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:d.render(),a.flags|=1,n!==null&&o?(a.child=Ds(a,n.child,null,r),a.child=Ds(a,null,i,r)):Rn(n,a,i,r),a.memoizedState=d.state,n=a.child):n=Hi(n,a,r),n}function Mh(n,a,i,o){return Vc(),a.flags|=256,Rn(n,a,i,o),a.child}var Rh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rp(n){return{baseLanes:n,cachePool:Id()}}function Dp(n,a,i){return n=n!==null?n.childLanes&~i:0,a&&(n|=ya),n}function zp(n,a,i){var o=a.pendingProps,r=!1,d=(a.flags&128)!==0,g;if((g=d)||(g=n!==null&&n.memoizedState===null?!1:(_t.current&2)!==0),g&&(r=!0,a.flags&=-129),g=(a.flags&32)!==0,a.flags&=-33,n===null){if(ct){if(r?Ru(a):wi(),ct){var y=ft,E;if(E=y){e:{for(E=y,y=da;E.nodeType!==8;){if(!y){y=null;break e}if(E=Ia(E.nextSibling),E===null){y=null;break e}}y=E}y!==null?(a.memoizedState={dehydrated:y,treeContext:Tu!==null?{id:Xa,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},E=bl(18,null,null,0),E.stateNode=y,E.return=a,a.child=E,an=a,ft=null,E=!0):E=!1}E||xu(a)}if(y=a.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return sd(y)?a.lanes=32:a.lanes=536870912,null;Ja(a)}return y=o.children,o=o.fallback,r?(wi(),r=a.mode,y=zh({mode:"hidden",children:y},r),o=ca(o,r,i,null),y.return=a,o.return=a,y.sibling=o,a.child=y,r=a.child,r.memoizedState=Rp(i),r.childLanes=Dp(n,g,i),a.memoizedState=Rh,o):(Ru(a),Dh(a,y))}if(E=n.memoizedState,E!==null&&(y=E.dehydrated,y!==null)){if(d)a.flags&256?(Ru(a),a.flags&=-257,a=_o(n,a,i)):a.memoizedState!==null?(wi(),a.child=n.child,a.flags|=128,a=null):(wi(),r=o.fallback,y=a.mode,o=zh({mode:"visible",children:o.children},y),r=ca(r,y,i,null),r.flags|=2,o.return=a,r.return=a,o.sibling=r,a.child=o,Ds(a,n.child,null,i),o=a.child,o.memoizedState=Rp(i),o.childLanes=Dp(n,g,i),a.memoizedState=Rh,a=r);else if(Ru(a),sd(y)){if(g=y.nextSibling&&y.nextSibling.dataset,g)var H=g.dgst;g=H,o=Error(m(419)),o.stack="",o.digest=g,Gc({value:o,source:null,stack:null}),a=_o(n,a,i)}else if(gn||jc(n,a,i,!1),g=(i&n.childLanes)!==0,gn||g){if(g=Rt,g!==null&&(o=i&-i,o=(o&42)!==0?1:hl(o),o=(o&(g.suspendedLanes|i))!==0?0:o,o!==0&&o!==E.retryLane))throw E.retryLane=o,xi(n,o),$l(g,n,o),It;y.data==="$?"||qs(),a=_o(n,a,i)}else y.data==="$?"?(a.flags|=192,a.child=n.child,a=null):(n=E.treeContext,ft=Ia(y.nextSibling),an=a,ct=!0,fa=null,da=!1,n!==null&&(ra[Sl++]=Xa,ra[Sl++]=Jt,ra[Sl++]=Tu,Xa=n.id,Jt=n.overflow,Tu=a),a=Dh(a,o.children),a.flags|=4096);return a}return r?(wi(),r=o.fallback,y=a.mode,E=n.child,H=E.sibling,o=ja(E,{mode:"hidden",children:o.children}),o.subtreeFlags=E.subtreeFlags&65011712,H!==null?r=ja(H,r):(r=ca(r,y,i,null),r.flags|=2),r.return=a,o.return=a,o.sibling=r,a.child=o,o=r,r=a.child,y=n.child.memoizedState,y===null?y=Rp(i):(E=y.cachePool,E!==null?(H=pn._currentValue,E=E.parent!==H?{parent:H,pool:H}:E):E=Id(),y={baseLanes:y.baseLanes|i,cachePool:E}),r.memoizedState=y,r.childLanes=Dp(n,g,i),a.memoizedState=Rh,o):(Ru(a),i=n.child,n=i.sibling,i=ja(i,{mode:"visible",children:o.children}),i.return=a,i.sibling=null,n!==null&&(g=a.deletions,g===null?(a.deletions=[n],a.flags|=16):g.push(n)),a.child=i,a.memoizedState=null,i)}function Dh(n,a){return a=zh({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function zh(n,a){return n=bl(22,n,null,a),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function _o(n,a,i){return Ds(a,n.child,null,i),n=Dh(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function Xf(n,a,i){n.lanes|=a;var o=n.alternate;o!==null&&(o.lanes|=a),Qd(n.return,a,i)}function Oh(n,a,i,o,r){var d=n.memoizedState;d===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:r}:(d.isBackwards=a,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=i,d.tailMode=r)}function Uh(n,a,i){var o=a.pendingProps,r=o.revealOrder,d=o.tail;if(Rn(n,a,o.children,i),o=_t.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Xf(n,i,a);else if(n.tag===19)Xf(n,i,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}o&=1}switch(ve(_t,o),r){case"forwards":for(i=a.child,r=null;i!==null;)n=i.alternate,n!==null&&qf(n)===null&&(r=i),i=i.sibling;i=r,i===null?(r=a.child,a.child=null):(r=i.sibling,i.sibling=null),Oh(a,!1,r,i,d);break;case"backwards":for(i=null,r=a.child,a.child=null;r!==null;){if(n=r.alternate,n!==null&&qf(n)===null){a.child=r;break}n=r.sibling,r.sibling=i,i=r,r=n}Oh(a,!0,i,null,d);break;case"together":Oh(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Hi(n,a,i){if(n!==null&&(a.dependencies=n.dependencies),Uu|=a.lanes,(i&a.childLanes)===0)if(n!==null){if(jc(n,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(m(153));if(a.child!==null){for(n=a.child,i=ja(n,n.pendingProps),a.child=i,i.return=a;n.sibling!==null;)n=n.sibling,i=i.sibling=ja(n,n.pendingProps),i.return=a;i.sibling=null}return a.child}function wh(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Sf(n)))}function Bv(n,a,i){switch(a.tag){case 3:xt(a,a.stateNode.containerInfo),Cu(a,pn,n.memoizedState.cache),Vc();break;case 27:case 5:Tn(a);break;case 4:xt(a,a.stateNode.containerInfo);break;case 10:Cu(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Ru(a),a.flags|=128,null):(i&a.child.childLanes)!==0?zp(n,a,i):(Ru(a),n=Hi(n,a,i),n!==null?n.sibling:null);Ru(a);break;case 19:var r=(n.flags&128)!==0;if(o=(i&a.childLanes)!==0,o||(jc(n,a,i,!1),o=(i&a.childLanes)!==0),r){if(o)return Uh(n,a,i);a.flags|=128}if(r=a.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ve(_t,_t.current),o)break;return null;case 22:case 23:return a.lanes=0,Ch(n,a,i);case 24:Cu(a,pn,n.memoizedState.cache)}return Hi(n,a,i)}function Nv(n,a,i){if(n!==null)if(n.memoizedProps!==a.pendingProps)gn=!0;else{if(!wh(n,i)&&(a.flags&128)===0)return gn=!1,Bv(n,a,i);gn=(n.flags&131072)!==0}else gn=!1,ct&&(a.flags&1048576)!==0&&Xd(a,qc,a.index);switch(a.lanes=0,a.tag){case 16:e:{n=a.pendingProps;var o=a.elementType,r=o._init;if(o=r(o._payload),a.type=o,typeof o=="function")vf(o)?(n=Co(o,n),a.tag=1,a=Ah(null,a,o,n,i)):(a.tag=0,a=_h(null,a,o,n,i));else{if(o!=null){if(r=o.$$typeof,r===xe){a.tag=11,a=kv(null,a,o,n,i);break e}else if(r===ze){a.tag=14,a=Du(null,a,o,n,i);break e}}throw a=Mt(o)||o,Error(m(306,a,""))}}return a;case 0:return _h(n,a,a.type,a.pendingProps,i);case 1:return o=a.type,r=Co(o,a.pendingProps),Ah(n,a,o,r,i);case 3:e:{if(xt(a,a.stateNode.containerInfo),n===null)throw Error(m(387));o=a.pendingProps;var d=a.memoizedState;r=d.element,th(n,a),_u(a,o,null,i);var g=a.memoizedState;if(o=g.cache,Cu(a,pn,o),o!==d.cache&&Fm(a,[pn],i,!0),Zc(),o=g.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:g.cache},a.updateQueue.baseState=d,a.memoizedState=d,a.flags&256){a=Mh(n,a,o,i);break e}else if(o!==r){r=$n(Error(m(424)),a),Gc(r),a=Mh(n,a,o,i);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(ft=Ia(n.firstChild),an=a,ct=!0,fa=null,da=!0,i=Oi(a,null,o,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Vc(),o===r){a=Hi(n,a,i);break e}Rn(n,a,o,i)}a=a.child}return a;case 26:return jf(n,a),n===null?(i=Pv(a.type,null,a.pendingProps,null))?a.memoizedState=i:ct||(i=a.type,n=a.pendingProps,o=Sa($e.current).createElement(i),o[ln]=a,o[En]=n,Be(o,i,n),$t(o),a.stateNode=o):a.memoizedState=Pv(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Tn(a),n===null&&ct&&(o=a.stateNode=he(a.type,a.pendingProps,$e.current),an=a,da=!0,r=ft,Ho(a.type)?(ko=r,ft=Ia(o.firstChild)):ft=r),Rn(n,a,a.pendingProps.children,i),jf(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&ct&&((r=o=ft)&&(o=yr(o,a.type,a.pendingProps,da),o!==null?(a.stateNode=o,an=a,ft=Ia(o.firstChild),da=!1,r=!0):r=!1),r||xu(a)),Tn(a),r=a.type,d=a.pendingProps,g=n!==null?n.memoizedProps:null,o=d.children,ji(r,d)?o=null:g!==null&&ji(r,g)&&(a.flags|=32),a.memoizedState!==null&&(r=ah(n,a,_v,null,null,i),zl._currentValue=r),jf(n,a),Rn(n,a,o,i),a.child;case 6:return n===null&&ct&&((n=i=ft)&&(i=dy(i,a.pendingProps,da),i!==null?(a.stateNode=i,an=a,ft=null,n=!0):n=!1),n||xu(a)),null;case 13:return zp(n,a,i);case 4:return xt(a,a.stateNode.containerInfo),o=a.pendingProps,n===null?a.child=Ds(a,null,o,i):Rn(n,a,o,i),a.child;case 11:return kv(n,a,a.type,a.pendingProps,i);case 7:return Rn(n,a,a.pendingProps,i),a.child;case 8:return Rn(n,a,a.pendingProps.children,i),a.child;case 12:return Rn(n,a,a.pendingProps.children,i),a.child;case 10:return o=a.pendingProps,Cu(a,a.type,o.value),Rn(n,a,o.children,i),a.child;case 9:return r=a.type._context,o=a.pendingProps.children,go(a),r=An(r),o=o(r),a.flags|=1,Rn(n,a,o,i),a.child;case 14:return Du(n,a,a.type,a.pendingProps,i);case 15:return Os(n,a,a.type,a.pendingProps,i);case 19:return Uh(n,a,i);case 31:return o=a.pendingProps,i=a.mode,o={mode:o.mode,children:o.children},n===null?(i=zh(o,i),i.ref=a.ref,a.child=i,i.return=a,a=i):(i=ja(n.child,o),i.ref=a.ref,a.child=i,i.return=a,a=i),a;case 22:return Ch(n,a,i);case 24:return go(a),o=An(pn),n===null?(r=Ef(),r===null&&(r=Rt,d=Qc(),r.pooledCache=d,d.refCount++,d!==null&&(r.pooledCacheLanes|=i),r=d),a.memoizedState={parent:o,cache:r},eh(a),Cu(a,pn,r)):((n.lanes&i)!==0&&(th(n,a),_u(a,null,null,i),Zc()),r=n.memoizedState,d=a.memoizedState,r.parent!==o?(r={parent:o,cache:o},a.memoizedState=r,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=r),Cu(a,pn,o)):(o=d.cache,Cu(a,pn,o),o!==r.cache&&Fm(a,[pn],i,!0))),Rn(n,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(m(156,a.tag))}function ki(n){n.flags|=4}function er(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!h0(a)){if(a=Ql.current,a!==null&&((nt&4194048)===nt?In!==null:(nt&62914560)!==nt&&(nt&536870912)===0||a!==In))throw Ss=Fd,Wd;n.flags|=8192}}function Qf(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?ni():536870912,n.lanes|=a,ir|=a)}function tr(n,a){if(!ct)switch(n.tailMode){case"hidden":a=n.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function Oe(n){var a=n.alternate!==null&&n.alternate.child===n.child,i=0,o=0;if(a)for(var r=n.child;r!==null;)i|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,r.return=n,r=r.sibling;else for(r=n.child;r!==null;)i|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=n,r=r.sibling;return n.subtreeFlags|=o,n.childLanes=i,a}function Op(n,a,i){var o=a.pendingProps;switch(Ei(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(a),null;case 1:return Oe(a),null;case 3:return i=a.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Ci(pn),Gt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(Yc(a)?ki(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Wm())),Oe(a),null;case 26:return i=a.memoizedState,n===null?(ki(a),i!==null?(Oe(a),er(a,i)):(Oe(a),a.flags&=-16777217)):i?i!==n.memoizedState?(ki(a),Oe(a),er(a,i)):(Oe(a),a.flags&=-16777217):(n.memoizedProps!==o&&ki(a),Oe(a),a.flags&=-16777217),null;case 27:Ul(a),i=$e.current;var r=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ki(a);else{if(!o){if(a.stateNode===null)throw Error(m(166));return Oe(a),null}n=He.current,Yc(a)?yf(a):(n=he(r,o,i),a.stateNode=n,ki(a))}return Oe(a),null;case 5:if(Ul(a),i=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ki(a);else{if(!o){if(a.stateNode===null)throw Error(m(166));return Oe(a),null}if(n=He.current,Yc(a))yf(a);else{switch(r=Sa($e.current),n){case 1:n=r.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:n=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":n=r.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":n=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":n=r.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?r.createElement("select",{is:o.is}):r.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?r.createElement(i,{is:o.is}):r.createElement(i)}}n[ln]=a,n[En]=o;e:for(r=a.child;r!==null;){if(r.tag===5||r.tag===6)n.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}a.stateNode=n;e:switch(Be(n,i,o),i){case"button":case"input":case"select":case"textarea":n=!!o.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ki(a)}}return Oe(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==o&&ki(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(m(166));if(n=$e.current,Yc(a)){if(n=a.stateNode,i=a.memoizedProps,o=null,r=an,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}n[ln]=a,n=!!(n.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||c0(n.nodeValue,i)),n||xu(a)}else n=Sa(n).createTextNode(o),n[ln]=a,a.stateNode=n}return Oe(a),null;case 13:if(o=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(r=Yc(a),o!==null&&o.dehydrated!==null){if(n===null){if(!r)throw Error(m(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(m(317));r[ln]=a}else Vc(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Oe(a),r=!1}else r=Wm(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=r),r=!0;if(!r)return a.flags&256?(Ja(a),a):(Ja(a),null)}if(Ja(a),(a.flags&128)!==0)return a.lanes=i,a;if(i=o!==null,n=n!==null&&n.memoizedState!==null,i){o=a.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool);var d=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==r&&(o.flags|=2048)}return i!==n&&i&&(a.child.flags|=8192),Qf(a,a.updateQueue),Oe(a),null;case 4:return Gt(),n===null&&o0(a.stateNode.containerInfo),Oe(a),null;case 10:return Ci(a.type),Oe(a),null;case 19:if(ie(_t),r=a.memoizedState,r===null)return Oe(a),null;if(o=(a.flags&128)!==0,d=r.rendering,d===null)if(o)tr(r,!1);else{if(Pt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(d=qf(n),d!==null){for(a.flags|=128,tr(r,!1),n=d.updateQueue,a.updateQueue=n,Qf(a,n),a.subtreeFlags=0,n=i,i=a.child;i!==null;)Ie(i,n),i=i.sibling;return ve(_t,_t.current&1|2),a.child}n=n.sibling}r.tail!==null&&hn()>Gh&&(a.flags|=128,o=!0,tr(r,!1),a.lanes=4194304)}else{if(!o)if(n=qf(d),n!==null){if(a.flags|=128,o=!0,n=n.updateQueue,a.updateQueue=n,Qf(a,n),tr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!ct)return Oe(a),null}else 2*hn()-r.renderingStartTime>Gh&&i!==536870912&&(a.flags|=128,o=!0,tr(r,!1),a.lanes=4194304);r.isBackwards?(d.sibling=a.child,a.child=d):(n=r.last,n!==null?n.sibling=d:a.child=d,r.last=d)}return r.tail!==null?(a=r.tail,r.rendering=a,r.tail=a.sibling,r.renderingStartTime=hn(),a.sibling=null,n=_t.current,ve(_t,o?n&1|2:n&1),a):(Oe(a),null);case 22:case 23:return Ja(a),Jc(),o=a.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(i&536870912)!==0&&(a.flags&128)===0&&(Oe(a),a.subtreeFlags&6&&(a.flags|=8192)):Oe(a),i=a.updateQueue,i!==null&&Qf(a,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048),n!==null&&ie(Ai),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Ci(pn),Oe(a),null;case 25:return null;case 30:return null}throw Error(m(156,a.tag))}function ay(n,a){switch(Ei(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Ci(pn),Gt(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Ul(a),null;case 13:if(Ja(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(m(340));Vc()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return ie(_t),null;case 4:return Gt(),null;case 10:return Ci(a.type),null;case 22:case 23:return Ja(a),Jc(),n!==null&&ie(Ai),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Ci(pn),null;case 25:return null;default:return null}}function Up(n,a){switch(Ei(a),a.tag){case 3:Ci(pn),Gt();break;case 26:case 27:case 5:Ul(a);break;case 4:Gt();break;case 13:Ja(a);break;case 19:ie(_t);break;case 10:Ci(a.type);break;case 22:case 23:Ja(a),Jc(),n!==null&&ie(Ai);break;case 24:Ci(pn)}}function Zf(n,a){try{var i=a.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var r=o.next;i=r;do{if((i.tag&n)===n){o=void 0;var d=i.create,g=i.inst;o=d(),g.destroy=o}i=i.next}while(i!==r)}}catch(y){St(a,a.return,y)}}function Ao(n,a,i){try{var o=a.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var d=r.next;o=d;do{if((o.tag&n)===n){var g=o.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,r=a;var E=i,H=y;try{H()}catch(I){St(r,E,I)}}}o=o.next}while(o!==d)}}catch(I){St(a,a.return,I)}}function Hh(n){var a=n.updateQueue;if(a!==null){var i=n.stateNode;try{Af(a,i)}catch(o){St(n,n.return,o)}}}function wp(n,a,i){i.props=Co(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(o){St(n,a,o)}}function nr(n,a){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var o=n.stateNode;break;case 30:o=n.stateNode;break;default:o=n.stateNode}typeof i=="function"?n.refCleanup=i(o):i.current=o}}catch(r){St(n,a,r)}}function Ka(n,a){var i=n.ref,o=n.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(r){St(n,a,r)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(r){St(n,a,r)}else i.current=null}function lr(n){var a=n.type,i=n.memoizedProps,o=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(r){St(n,n.return,r)}}function Hp(n,a,i){try{var o=n.stateNode;cy(o,n.type,i,a),o[En]=a}catch(r){St(n,n.return,r)}}function Lv(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ho(n.type)||n.tag===4}function va(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Lv(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ho(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function ws(n,a,i){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(n,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(n),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=em));else if(o!==4&&(o===27&&Ho(n.type)&&(i=n.stateNode,a=null),n=n.child,n!==null))for(ws(n,a,i),n=n.sibling;n!==null;)ws(n,a,i),n=n.sibling}function kh(n,a,i){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?i.insertBefore(n,a):i.appendChild(n);else if(o!==4&&(o===27&&Ho(n.type)&&(i=n.stateNode),n=n.child,n!==null))for(kh(n,a,i),n=n.sibling;n!==null;)kh(n,a,i),n=n.sibling}function Bh(n){var a=n.stateNode,i=n.memoizedProps;try{for(var o=n.type,r=a.attributes;r.length;)a.removeAttributeNode(r[0]);Be(a,o,i),a[ln]=n,a[En]=i}catch(d){St(n,n.return,d)}}var Bi=!1,Wt=!1,Nh=!1,Lh=typeof WeakSet=="function"?WeakSet:Set,yn=null;function kp(n,a){if(n=n.containerInfo,id=fd,n=Dc(n),ho(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var r=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var g=0,y=-1,E=-1,H=0,I=0,P=n,B=null;t:for(;;){for(var L;P!==i||r!==0&&P.nodeType!==3||(y=g+r),P!==d||o!==0&&P.nodeType!==3||(E=g+o),P.nodeType===3&&(g+=P.nodeValue.length),(L=P.firstChild)!==null;)B=P,P=L;for(;;){if(P===n)break t;if(B===i&&++H===r&&(y=g),B===d&&++I===o&&(E=g),(L=P.nextSibling)!==null)break;P=B,B=P.parentNode}P=L}i=y===-1||E===-1?null:{start:y,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(ud={focusedElem:n,selectionRange:i},fd=!1,yn=a;yn!==null;)if(a=yn,n=a.child,(a.subtreeFlags&1024)!==0&&n!==null)n.return=a,yn=n;else for(;yn!==null;){switch(a=yn,d=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&d!==null){n=void 0,i=a,r=d.memoizedProps,d=d.memoizedState,o=i.stateNode;try{var Ae=Co(i.type,r,i.elementType===i.type);n=o.getSnapshotBeforeUpdate(Ae,d),o.__reactInternalSnapshotBeforeUpdate=n}catch(Me){St(i,i.return,Me)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,i=n.nodeType,i===9)od(n);else if(i===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":od(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(m(163))}if(n=a.sibling,n!==null){n.return=a.return,yn=n;break}yn=a.return}}function Bp(n,a,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Li(n,i),o&4&&Zf(5,i);break;case 1:if(Li(n,i),o&4)if(n=i.stateNode,a===null)try{n.componentDidMount()}catch(g){St(i,i.return,g)}else{var r=Co(i.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(r,a,n.__reactInternalSnapshotBeforeUpdate)}catch(g){St(i,i.return,g)}}o&64&&Hh(i),o&512&&nr(i,i.return);break;case 3:if(Li(n,i),o&64&&(n=i.updateQueue,n!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{Af(n,a)}catch(g){St(i,i.return,g)}}break;case 27:a===null&&o&4&&Bh(i);case 26:case 5:Li(n,i),a===null&&o&4&&lr(i),o&512&&nr(i,i.return);break;case 12:Li(n,i);break;case 13:Li(n,i),o&4&&qh(n,i),o&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=iy.bind(null,i),hy(n,i))));break;case 22:if(o=i.memoizedState!==null||Bi,!o){a=a!==null&&a.memoizedState!==null||Wt,r=Bi;var d=Wt;Bi=o,(Wt=a)&&!d?Mo(n,i,(i.subtreeFlags&8772)!==0):Li(n,i),Bi=r,Wt=d}break;case 30:break;default:Li(n,i)}}function Np(n){var a=n.alternate;a!==null&&(n.alternate=null,Np(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&Iu(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Nt=null,kn=!1;function Ni(n,a,i){for(i=i.child;i!==null;)Pe(n,a,i),i=i.sibling}function Pe(n,a,i){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(zt,i)}catch{}switch(i.tag){case 26:Wt||Ka(i,a),Ni(n,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Wt||Ka(i,a);var o=Nt,r=kn;Ho(i.type)&&(Nt=i.stateNode,kn=!1),Ni(n,a,i),Rl(i.stateNode),Nt=o,kn=r;break;case 5:Wt||Ka(i,a);case 6:if(o=Nt,r=kn,Nt=null,Ni(n,a,i),Nt=o,kn=r,Nt!==null)if(kn)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(i.stateNode)}catch(d){St(i,a,d)}else try{Nt.removeChild(i.stateNode)}catch(d){St(i,a,d)}break;case 18:Nt!==null&&(kn?(n=Nt,nm(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),Zi(n)):nm(Nt,i.stateNode));break;case 4:o=Nt,r=kn,Nt=i.stateNode.containerInfo,kn=!0,Ni(n,a,i),Nt=o,kn=r;break;case 0:case 11:case 14:case 15:Wt||Ao(2,i,a),Wt||Ao(4,i,a),Ni(n,a,i);break;case 1:Wt||(Ka(i,a),o=i.stateNode,typeof o.componentWillUnmount=="function"&&wp(i,a,o)),Ni(n,a,i);break;case 21:Ni(n,a,i);break;case 22:Wt=(o=Wt)||i.memoizedState!==null,Ni(n,a,i),Wt=o;break;default:Ni(n,a,i)}}function qh(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Zi(n)}catch(i){St(a,a.return,i)}}function Lp(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new Lh),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new Lh),a;default:throw Error(m(435,n.tag))}}function Yh(n,a){var i=Lp(n);a.forEach(function(o){var r=uy.bind(null,n,o);i.has(o)||(i.add(o),o.then(r,r))})}function il(n,a){var i=a.deletions;if(i!==null)for(var o=0;o<i.length;o++){var r=i[o],d=n,g=a,y=g;e:for(;y!==null;){switch(y.tag){case 27:if(Ho(y.type)){Nt=y.stateNode,kn=!1;break e}break;case 5:Nt=y.stateNode,kn=!1;break e;case 3:case 4:Nt=y.stateNode.containerInfo,kn=!0;break e}y=y.return}if(Nt===null)throw Error(m(160));Pe(d,g,r),Nt=null,kn=!1,d=r.alternate,d!==null&&(d.return=null),r.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)$f(a,n),a=a.sibling}var ul=null;function $f(n,a){var i=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:il(a,n),Dn(n),o&4&&(Ao(3,n,n.return),Zf(3,n),Ao(5,n,n.return));break;case 1:il(a,n),Dn(n),o&512&&(Wt||i===null||Ka(i,i.return)),o&64&&Bi&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var r=ul;if(il(a,n),Dn(n),o&512&&(Wt||i===null||Ka(i,i.return)),o&4){var d=i!==null?i.memoizedState:null;if(o=n.memoizedState,i===null)if(o===null)if(n.stateNode===null){e:{o=n.type,i=n.memoizedProps,r=r.ownerDocument||r;t:switch(o){case"title":d=r.getElementsByTagName("title")[0],(!d||d[ye]||d[ln]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=r.createElement(o),r.head.insertBefore(d,r.querySelector("head > title"))),Be(d,o,i),d[ln]=n,$t(d),o=d;break e;case"link":var g=f0("link","href",r).get(o+(i.href||""));if(g){for(var y=0;y<g.length;y++)if(d=g[y],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){g.splice(y,1);break t}}d=r.createElement(o),Be(d,o,i),r.head.appendChild(d);break;case"meta":if(g=f0("meta","content",r).get(o+(i.content||""))){for(y=0;y<g.length;y++)if(d=g[y],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){g.splice(y,1);break t}}d=r.createElement(o),Be(d,o,i),r.head.appendChild(d);break;default:throw Error(m(468,o))}d[ln]=n,$t(d),o=d}n.stateNode=o}else d0(r,n.type,n.stateNode);else n.stateNode=tg(r,o,n.memoizedProps);else d!==o?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,o===null?d0(r,n.type,n.stateNode):tg(r,o,n.memoizedProps)):o===null&&n.stateNode!==null&&Hp(n,n.memoizedProps,i.memoizedProps)}break;case 27:il(a,n),Dn(n),o&512&&(Wt||i===null||Ka(i,i.return)),i!==null&&o&4&&Hp(n,n.memoizedProps,i.memoizedProps);break;case 5:if(il(a,n),Dn(n),o&512&&(Wt||i===null||Ka(i,i.return)),n.flags&32){r=n.stateNode;try{mu(r,"")}catch(L){St(n,n.return,L)}}o&4&&n.stateNode!=null&&(r=n.memoizedProps,Hp(n,r,i!==null?i.memoizedProps:r)),o&1024&&(Nh=!0);break;case 6:if(il(a,n),Dn(n),o&4){if(n.stateNode===null)throw Error(m(162));o=n.memoizedProps,i=n.stateNode;try{i.nodeValue=o}catch(L){St(n,n.return,L)}}break;case 3:if(Lo=null,r=ul,ul=lm(a.containerInfo),il(a,n),ul=r,Dn(n),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Zi(a.containerInfo)}catch(L){St(n,n.return,L)}Nh&&(Nh=!1,qp(n));break;case 4:o=ul,ul=lm(n.stateNode.containerInfo),il(a,n),Dn(n),ul=o;break;case 12:il(a,n),Dn(n);break;case 13:il(a,n),Dn(n),n.child.flags&8192&&n.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&($p=hn()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Yh(n,o)));break;case 22:r=n.memoizedState!==null;var E=i!==null&&i.memoizedState!==null,H=Bi,I=Wt;if(Bi=H||r,Wt=I||E,il(a,n),Wt=I,Bi=H,Dn(n),o&8192)e:for(a=n.stateNode,a._visibility=r?a._visibility&-2:a._visibility|1,r&&(i===null||E||Bi||Wt||Lt(n)),i=null,a=n;;){if(a.tag===5||a.tag===26){if(i===null){E=i=a;try{if(d=E.stateNode,r)g=d.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{y=E.stateNode;var P=E.memoizedProps.style,B=P!=null&&P.hasOwnProperty("display")?P.display:null;y.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(L){St(E,E.return,L)}}}else if(a.tag===6){if(i===null){E=a;try{E.stateNode.nodeValue=r?"":E.memoizedProps}catch(L){St(E,E.return,L)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=n.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Yh(n,i))));break;case 19:il(a,n),Dn(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Yh(n,o)));break;case 30:break;case 21:break;default:il(a,n),Dn(n)}}function Dn(n){var a=n.flags;if(a&2){try{for(var i,o=n.return;o!==null;){if(Lv(o)){i=o;break}o=o.return}if(i==null)throw Error(m(160));switch(i.tag){case 27:var r=i.stateNode,d=va(n);kh(n,d,r);break;case 5:var g=i.stateNode;i.flags&32&&(mu(g,""),i.flags&=-33);var y=va(n);kh(n,y,g);break;case 3:case 4:var E=i.stateNode.containerInfo,H=va(n);ws(n,H,E);break;default:throw Error(m(161))}}catch(I){St(n,n.return,I)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function qp(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;qp(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Li(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Bp(n,a.alternate,a),a=a.sibling}function Lt(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Ao(4,a,a.return),Lt(a);break;case 1:Ka(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&wp(a,a.return,i),Lt(a);break;case 27:Rl(a.stateNode);case 26:case 5:Ka(a,a.return),Lt(a);break;case 22:a.memoizedState===null&&Lt(a);break;case 30:Lt(a);break;default:Lt(a)}n=n.sibling}}function Mo(n,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,r=n,d=a,g=d.flags;switch(d.tag){case 0:case 11:case 15:Mo(r,d,i),Zf(4,d);break;case 1:if(Mo(r,d,i),o=d,r=o.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(H){St(o,o.return,H)}if(o=d,r=o.updateQueue,r!==null){var y=o.stateNode;try{var E=r.shared.hiddenCallbacks;if(E!==null)for(r.shared.hiddenCallbacks=null,r=0;r<E.length;r++)nh(E[r],y)}catch(H){St(o,o.return,H)}}i&&g&64&&Hh(d),nr(d,d.return);break;case 27:Bh(d);case 26:case 5:Mo(r,d,i),i&&o===null&&g&4&&lr(d),nr(d,d.return);break;case 12:Mo(r,d,i);break;case 13:Mo(r,d,i),i&&g&4&&qh(r,d);break;case 22:d.memoizedState===null&&Mo(r,d,i),nr(d,d.return);break;case 30:break;default:Mo(r,d,i)}a=a.sibling}}function ga(n,a){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&_i(i))}function Vh(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&_i(n))}function Bn(n,a,i,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Yp(n,a,i,o),a=a.sibling}function Yp(n,a,i,o){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Bn(n,a,i,o),r&2048&&Zf(9,a);break;case 1:Bn(n,a,i,o);break;case 3:Bn(n,a,i,o),r&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&_i(n)));break;case 12:if(r&2048){Bn(n,a,i,o),n=a.stateNode;try{var d=a.memoizedProps,g=d.id,y=d.onPostCommit;typeof y=="function"&&y(g,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(E){St(a,a.return,E)}}else Bn(n,a,i,o);break;case 13:Bn(n,a,i,o);break;case 23:break;case 22:d=a.stateNode,g=a.alternate,a.memoizedState!==null?d._visibility&2?Bn(n,a,i,o):dt(n,a):d._visibility&2?Bn(n,a,i,o):(d._visibility|=2,zu(n,a,i,o,(a.subtreeFlags&10256)!==0)),r&2048&&ga(g,a);break;case 24:Bn(n,a,i,o),r&2048&&Vh(a.alternate,a);break;default:Bn(n,a,i,o)}}function zu(n,a,i,o,r){for(r=r&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var d=n,g=a,y=i,E=o,H=g.flags;switch(g.tag){case 0:case 11:case 15:zu(d,g,y,E,r),Zf(8,g);break;case 23:break;case 22:var I=g.stateNode;g.memoizedState!==null?I._visibility&2?zu(d,g,y,E,r):dt(d,g):(I._visibility|=2,zu(d,g,y,E,r)),r&&H&2048&&ga(g.alternate,g);break;case 24:zu(d,g,y,E,r),r&&H&2048&&Vh(g.alternate,g);break;default:zu(d,g,y,E,r)}a=a.sibling}}function dt(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=n,o=a,r=o.flags;switch(o.tag){case 22:dt(i,o),r&2048&&ga(o.alternate,o);break;case 24:dt(i,o),r&2048&&Vh(o.alternate,o);break;default:dt(i,o)}a=a.sibling}}var Hs=8192;function Ft(n){if(n.subtreeFlags&Hs)for(n=n.child;n!==null;)qv(n),n=n.sibling}function qv(n){switch(n.tag){case 26:Ft(n),n.flags&Hs&&n.memoizedState!==null&&ag(ul,n.memoizedState,n.memoizedProps);break;case 5:Ft(n);break;case 3:case 4:var a=ul;ul=lm(n.stateNode.containerInfo),Ft(n),ul=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Hs,Hs=16777216,Ft(n),Hs=a):Ft(n));break;default:Ft(n)}}function Vp(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function ks(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];yn=o,jp(o,n)}Vp(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Gp(n),n=n.sibling}function Gp(n){switch(n.tag){case 0:case 11:case 15:ks(n),n.flags&2048&&Ao(9,n,n.return);break;case 3:ks(n);break;case 12:ks(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,ol(n)):ks(n);break;default:ks(n)}}function ol(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];yn=o,jp(o,n)}Vp(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Ao(8,a,a.return),ol(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,ol(a));break;default:ol(a)}n=n.sibling}}function jp(n,a){for(;yn!==null;){var i=yn;switch(i.tag){case 0:case 11:case 15:Ao(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:_i(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,yn=o;else e:for(i=n;yn!==null;){o=yn;var r=o.sibling,d=o.return;if(Np(o),o===i){yn=null;break e}if(r!==null){r.return=d,yn=r;break e}yn=d}}}var Xp={getCacheForType:function(n){var a=An(pn),i=a.data.get(n);return i===void 0&&(i=n(),a.data.set(n,i)),i}},Yv=typeof WeakMap=="function"?WeakMap:Map,yt=0,Rt=null,tt=null,nt=0,bt=0,_l=null,qi=!1,ar=!1,Qp=!1,Ou=0,Pt=0,Uu=0,Bs=0,Yi=0,ya=0,ir=0,ur=null,Al=null,Zp=!1,$p=0,Gh=1/0,or=null,Ro=null,Nn=0,Vi=null,sr=null,Ln=0,jh=0,Xh=null,Jp=null,cr=0,Kp=null;function Zl(){if((yt&2)!==0&&nt!==0)return nt&-nt;if(D.T!==null){var n=ha;return n!==0?n:Ys()}return Zr()}function Ip(){ya===0&&(ya=(nt&536870912)===0||ct?Da():536870912);var n=Ql.current;return n!==null&&(n.flags|=32),ya}function $l(n,a,i){(n===Rt&&(bt===2||bt===9)||n.cancelPendingCommit!==null)&&(Gi(n,0),wu(n,nt,ya,!1)),li(n,i),((yt&2)===0||n!==Rt)&&(n===Rt&&((yt&2)===0&&(Bs|=i),Pt===4&&wu(n,nt,ya,!1)),Ml(n))}function rr(n,a,i){if((yt&6)!==0)throw Error(m(327));var o=!i&&(a&124)===0&&(a&n.expiredLanes)===0||kl(n,a),r=o?Fp(n,a):Qh(n,a,!0),d=o;do{if(r===0){ar&&!o&&wu(n,a,0,!1);break}else{if(i=n.current.alternate,d&&!Vv(i)){r=Qh(n,a,!1),d=!1;continue}if(r===2){if(d=a,n.errorRecoveryDisabledLanes&d)var g=0;else g=n.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){a=g;e:{var y=n;r=ur;var E=y.current.memoizedState.isDehydrated;if(E&&(Gi(y,g).flags|=256),g=Qh(y,g,!1),g!==2){if(Qp&&!E){y.errorRecoveryDisabledLanes|=d,Bs|=d,r=4;break e}d=Al,Al=r,d!==null&&(Al===null?Al=d:Al.push.apply(Al,d))}r=g}if(d=!1,r!==2)continue}}if(r===1){Gi(n,0),wu(n,a,0,!0);break}e:{switch(o=n,d=r,d){case 0:case 1:throw Error(m(345));case 4:if((a&4194048)!==a)break;case 6:wu(o,a,ya,!qi);break e;case 2:Al=null;break;case 3:case 5:break;default:throw Error(m(329))}if((a&62914560)===a&&(r=$p+300-hn(),10<r)){if(wu(o,a,ya,!qi),Ra(o,0,!0)!==0)break e;o.timeoutHandle=tm(Jf.bind(null,o,i,Al,or,Zp,a,ya,Bs,ir,qi,d,2,-0,0),r);break e}Jf(o,i,Al,or,Zp,a,ya,Bs,ir,qi,d,0,-0,0)}}break}while(!0);Ml(n)}function Jf(n,a,i,o,r,d,g,y,E,H,I,P,B,L){if(n.timeoutHandle=-1,P=a.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(xr={stylesheets:null,count:0,unsuspend:lg},qv(a),P=m0(),P!==null)){n.cancelPendingCommit=P(Xv.bind(null,n,a,d,i,o,r,g,y,E,I,1,B,L)),wu(n,d,g,!H);return}Xv(n,a,d,i,o,r,g,y,E)}function Vv(n){for(var a=n;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var r=i[o],d=r.getSnapshot;r=r.value;try{if(!cn(d(),r))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function wu(n,a,i,o){a&=~Yi,a&=~Bs,n.suspendedLanes|=a,n.pingedLanes&=~a,o&&(n.warmLanes|=a),o=n.expirationTimes;for(var r=a;0<r;){var d=31-Ot(r),g=1<<d;o[d]=-1,r&=~g}i!==0&&Ju(n,i,a)}function Ns(){return(yt&6)===0?(Ff(0),!1):!0}function Do(){if(tt!==null){if(bt===0)var n=tt.return;else n=tt,Qa=Eu=null,uh(n),Ms=null,Wc=0,n=tt;for(;n!==null;)Up(n.alternate,n),n=n.return;tt=null}}function Gi(n,a){var i=n.timeoutHandle;i!==-1&&(n.timeoutHandle=-1,ry(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),Do(),Rt=n,tt=i=ja(n.current,null),nt=a,bt=0,_l=null,qi=!1,ar=kl(n,a),Qp=!1,ir=ya=Yi=Bs=Uu=Pt=0,Al=ur=null,Zp=!1,(a&8)!==0&&(a|=a&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=a;0<o;){var r=31-Ot(o),d=1<<r;a|=n[r],o&=~d}return Ou=a,De(),i}function Wp(n,a){je=null,D.H=Th,a===bo||a===Cf?(a=tp(),bt=3):a===Wd?(a=tp(),bt=4):bt=a===It?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,_l=a,tt===null&&(Pt=1,Gf(n,$n(a,n.current)))}function Gv(){var n=D.H;return D.H=Th,n===null?Th:n}function Ls(){var n=D.A;return D.A=Xp,n}function qs(){Pt=4,qi||(nt&4194048)!==nt&&Ql.current!==null||(ar=!0),(Uu&134217727)===0&&(Bs&134217727)===0||Rt===null||wu(Rt,nt,ya,!1)}function Qh(n,a,i){var o=yt;yt|=2;var r=Gv(),d=Ls();(Rt!==n||nt!==a)&&(or=null,Gi(n,a)),a=!1;var g=Pt;e:do try{if(bt!==0&&tt!==null){var y=tt,E=_l;switch(bt){case 8:Do(),g=6;break e;case 3:case 2:case 9:case 6:Ql.current===null&&(a=!0);var H=bt;if(bt=0,_l=null,fr(n,y,E,H),i&&ar){g=0;break e}break;default:H=bt,bt=0,_l=null,fr(n,y,E,H)}}Zh(),g=Pt;break}catch(I){Wp(n,I)}while(!0);return a&&n.shellSuspendCounter++,Qa=Eu=null,yt=o,D.H=r,D.A=d,tt===null&&(Rt=null,nt=0,De()),g}function Zh(){for(;tt!==null;)e0(tt)}function Fp(n,a){var i=yt;yt|=2;var o=Gv(),r=Ls();Rt!==n||nt!==a?(or=null,Gh=hn()+500,Gi(n,a)):ar=kl(n,a);e:do try{if(bt!==0&&tt!==null){a=tt;var d=_l;t:switch(bt){case 1:bt=0,_l=null,fr(n,a,d,1);break;case 2:case 9:if(Pd(d)){bt=0,_l=null,t0(a);break}a=function(){bt!==2&&bt!==9||Rt!==n||(bt=7),Ml(n)},d.then(a,a);break e;case 3:bt=7;break e;case 4:bt=5;break e;case 7:Pd(d)?(bt=0,_l=null,t0(a)):(bt=0,_l=null,fr(n,a,d,7));break;case 5:var g=null;switch(tt.tag){case 26:g=tt.memoizedState;case 5:case 27:var y=tt;if(!g||h0(g)){bt=0,_l=null;var E=y.sibling;if(E!==null)tt=E;else{var H=y.return;H!==null?(tt=H,Kf(H)):tt=null}break t}}bt=0,_l=null,fr(n,a,d,5);break;case 6:bt=0,_l=null,fr(n,a,d,6);break;case 8:Do(),Pt=6;break e;default:throw Error(m(462))}}Pp();break}catch(I){Wp(n,I)}while(!0);return Qa=Eu=null,D.H=o,D.A=r,yt=i,tt!==null?0:(Rt=null,nt=0,De(),Pt)}function Pp(){for(;tt!==null&&!Jo();)e0(tt)}function e0(n){var a=Nv(n.alternate,n,Ou);n.memoizedProps=n.pendingProps,a===null?Kf(n):tt=a}function t0(n){var a=n,i=a.alternate;switch(a.tag){case 15:case 0:a=Mp(i,a,a.pendingProps,a.type,void 0,nt);break;case 11:a=Mp(i,a,a.pendingProps,a.type.render,a.ref,nt);break;case 5:uh(a);default:Up(i,a),a=tt=Ie(a,Ou),a=Nv(i,a,Ou)}n.memoizedProps=n.pendingProps,a===null?Kf(n):tt=a}function fr(n,a,i,o){Qa=Eu=null,uh(a),Ms=null,Wc=0;var r=a.return;try{if(Hv(n,r,a,i,nt)){Pt=1,Gf(n,$n(i,n.current)),tt=null;return}}catch(d){if(r!==null)throw tt=r,d;Pt=1,Gf(n,$n(i,n.current)),tt=null;return}a.flags&32768?(ct||o===1?n=!0:ar||(nt&536870912)!==0?n=!1:(qi=n=!0,(o===2||o===9||o===3||o===6)&&(o=Ql.current,o!==null&&o.tag===13&&(o.flags|=16384))),jv(a,n)):Kf(a)}function Kf(n){var a=n;do{if((a.flags&32768)!==0){jv(a,qi);return}n=a.return;var i=Op(a.alternate,a,Ou);if(i!==null){tt=i;return}if(a=a.sibling,a!==null){tt=a;return}tt=a=n}while(a!==null);Pt===0&&(Pt=5)}function jv(n,a){do{var i=ay(n.alternate,n);if(i!==null){i.flags&=32767,tt=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(n=n.sibling,n!==null)){tt=n;return}tt=n=i}while(n!==null);Pt=6,tt=null}function Xv(n,a,i,o,r,d,g,y,E){n.cancelPendingCommit=null;do Jh();while(Nn!==0);if((yt&6)!==0)throw Error(m(327));if(a!==null){if(a===n.current)throw Error(m(177));if(d=a.lanes|a.childLanes,d|=Gl,Qr(n,i,d,g,y,E),n===Rt&&(tt=Rt=null,nt=0),sr=a,Vi=n,Ln=i,jh=d,Xh=r,Jp=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,oy(Ma,function(){return n0(),null})):(n.callbackNode=null,n.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=D.T,D.T=null,r=W.p,W.p=2,g=yt,yt|=4;try{kp(n,a,i)}finally{yt=g,W.p=r,D.T=o}}Nn=1,Qv(),If(),$h()}}function Qv(){if(Nn===1){Nn=0;var n=Vi,a=sr,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=D.T,D.T=null;var o=W.p;W.p=2;var r=yt;yt|=4;try{$f(a,n);var d=ud,g=Dc(n.containerInfo),y=d.focusedElem,E=d.selectionRange;if(g!==y&&y&&y.ownerDocument&&fo(y.ownerDocument.documentElement,y)){if(E!==null&&ho(y)){var H=E.start,I=E.end;if(I===void 0&&(I=H),"selectionStart"in y)y.selectionStart=H,y.selectionEnd=Math.min(I,y.value.length);else{var P=y.ownerDocument||document,B=P&&P.defaultView||window;if(B.getSelection){var L=B.getSelection(),Ae=y.textContent.length,Me=Math.min(E.start,Ae),ht=E.end===void 0?Me:Math.min(E.end,Ae);!L.extend&&Me>ht&&(g=ht,ht=Me,Me=g);var O=Et(y,Me),z=Et(y,ht);if(O&&z&&(L.rangeCount!==1||L.anchorNode!==O.node||L.anchorOffset!==O.offset||L.focusNode!==z.node||L.focusOffset!==z.offset)){var U=P.createRange();U.setStart(O.node,O.offset),L.removeAllRanges(),Me>ht?(L.addRange(U),L.extend(z.node,z.offset)):(U.setEnd(z.node,z.offset),L.addRange(U))}}}}for(P=[],L=y;L=L.parentNode;)L.nodeType===1&&P.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<P.length;y++){var F=P[y];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}fd=!!id,ud=id=null}finally{yt=r,W.p=o,D.T=i}}n.current=a,Nn=2}}function If(){if(Nn===2){Nn=0;var n=Vi,a=sr,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=D.T,D.T=null;var o=W.p;W.p=2;var r=yt;yt|=4;try{Bp(n,a.alternate,a)}finally{yt=r,W.p=o,D.T=i}}Nn=3}}function $h(){if(Nn===4||Nn===3){Nn=0,Hl();var n=Vi,a=sr,i=Ln,o=Jp;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Nn=5:(Nn=0,sr=Vi=null,Zv(n,n.pendingLanes));var r=n.pendingLanes;if(r===0&&(Ro=null),Ko(i),a=a.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(zt,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=D.T,r=W.p,W.p=2,D.T=null;try{for(var d=n.onRecoverableError,g=0;g<o.length;g++){var y=o[g];d(y.value,{componentStack:y.stack})}}finally{D.T=a,W.p=r}}(Ln&3)!==0&&Jh(),Ml(n),r=n.pendingLanes,(i&4194090)!==0&&(r&42)!==0?n===Kp?cr++:(cr=0,Kp=n):cr=0,Ff(0)}}function Zv(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,_i(a)))}function Jh(n){return Qv(),If(),$h(),n0()}function n0(){if(Nn!==5)return!1;var n=Vi,a=jh;jh=0;var i=Ko(Ln),o=D.T,r=W.p;try{W.p=32>i?32:i,D.T=null,i=Xh,Xh=null;var d=Vi,g=Ln;if(Nn=0,sr=Vi=null,Ln=0,(yt&6)!==0)throw Error(m(331));var y=yt;if(yt|=4,Gp(d.current),Yp(d,d.current,g,i),yt=y,Ff(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(zt,d)}catch{}return!0}finally{W.p=r,D.T=o,Zv(n,a)}}function l0(n,a,i){a=$n(i,a),a=_p(n.stateNode,a,2),n=Ri(n,a,2),n!==null&&(li(n,2),Ml(n))}function St(n,a,i){if(n.tag===3)l0(n,n,i);else for(;a!==null;){if(a.tag===3){l0(a,n,i);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ro===null||!Ro.has(o))){n=$n(i,n),i=Ap(2),o=Ri(a,i,2),o!==null&&(Cl(i,o,a,n),li(o,2),Ml(o));break}}a=a.return}}function Kh(n,a,i){var o=n.pingCache;if(o===null){o=n.pingCache=new Yv;var r=new Set;o.set(a,r)}else r=o.get(a),r===void 0&&(r=new Set,o.set(a,r));r.has(i)||(Qp=!0,r.add(i),n=a0.bind(null,n,a,i),a.then(n,n))}function a0(n,a,i){var o=n.pingCache;o!==null&&o.delete(a),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,Rt===n&&(nt&i)===i&&(Pt===4||Pt===3&&(nt&62914560)===nt&&300>hn()-$p?(yt&2)===0&&Gi(n,0):Yi|=i,ir===nt&&(ir=0)),Ml(n)}function i0(n,a){a===0&&(a=ni()),n=xi(n,a),n!==null&&(li(n,a),Ml(n))}function iy(n){var a=n.memoizedState,i=0;a!==null&&(i=a.retryLane),i0(n,i)}function uy(n,a){var i=0;switch(n.tag){case 13:var o=n.stateNode,r=n.memoizedState;r!==null&&(i=r.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(m(314))}o!==null&&o.delete(a),i0(n,i)}function oy(n,a){return wl(n,a)}var Ih=null,zo=null,Wf=!1,dr=!1,Wh=!1,Oo=0;function Ml(n){n!==zo&&n.next===null&&(zo===null?Ih=zo=n:zo=zo.next=n),dr=!0,Wf||(Wf=!0,Kv())}function Ff(n,a){if(!Wh&&dr){Wh=!0;do for(var i=!1,o=Ih;o!==null;){if(n!==0){var r=o.pendingLanes;if(r===0)var d=0;else{var g=o.suspendedLanes,y=o.pingedLanes;d=(1<<31-Ot(42|n)+1)-1,d&=r&~(g&~y),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,ed(o,d))}else d=nt,d=Ra(o,o===Rt?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||kl(o,d)||(i=!0,ed(o,d));o=o.next}while(i);Wh=!1}}function $v(){Pf()}function Pf(){dr=Wf=!1;var n=0;Oo!==0&&(Bu()&&(n=Oo),Oo=0);for(var a=hn(),i=null,o=Ih;o!==null;){var r=o.next,d=u0(o,a);d===0?(o.next=null,i===null?Ih=r:i.next=r,r===null&&(zo=i)):(i=o,(n!==0||(d&3)!==0)&&(dr=!0)),o=r}Ff(n)}function u0(n,a){for(var i=n.suspendedLanes,o=n.pingedLanes,r=n.expirationTimes,d=n.pendingLanes&-62914561;0<d;){var g=31-Ot(d),y=1<<g,E=r[g];E===-1?((y&i)===0||(y&o)!==0)&&(r[g]=nn(y,a)):E<=a&&(n.expiredLanes|=y),d&=~y}if(a=Rt,i=nt,i=Ra(n,n===a?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o=n.callbackNode,i===0||n===a&&(bt===2||bt===9)||n.cancelPendingCommit!==null)return o!==null&&o!==null&&uu(o),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||kl(n,i)){if(a=i&-i,a===n.callbackPriority)return a;switch(o!==null&&uu(o),Ko(i)){case 2:case 8:i=ou;break;case 32:i=Ma;break;case 268435456:i=tl;break;default:i=Ma}return o=Jv.bind(null,n),i=wl(i,o),n.callbackPriority=a,n.callbackNode=i,a}return o!==null&&o!==null&&uu(o),n.callbackPriority=2,n.callbackNode=null,2}function Jv(n,a){if(Nn!==0&&Nn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(Jh()&&n.callbackNode!==i)return null;var o=nt;return o=Ra(n,n===Rt?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o===0?null:(rr(n,o,a),u0(n,hn()),n.callbackNode!=null&&n.callbackNode===i?Jv.bind(null,n):null)}function ed(n,a){if(Jh())return null;rr(n,a,!0)}function Kv(){fy(function(){(yt&6)!==0?wl($u,$v):Pf()})}function Ys(){return Oo===0&&(Oo=Da()),Oo}function Fh(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:lo(""+n)}function td(n,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,n.id&&i.setAttribute("form",n.id),a.parentNode.insertBefore(i,a),n=new FormData(n),i.parentNode.removeChild(i),n}function Iv(n,a,i,o,r){if(a==="submit"&&i&&i.stateNode===r){var d=Fh((r[En]||null).action),g=o.submitter;g&&(a=(a=g[En]||null)?Fh(a.formAction):g.getAttribute("formAction"),a!==null&&(d=a,g=null));var y=new os("action","action",null,o,r);n.push({event:y,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Oo!==0){var E=g?td(r,g):new FormData(r);Sh(i,{pending:!0,data:E,method:r.method,action:d},null,E)}}else typeof d=="function"&&(y.preventDefault(),E=g?td(r,g):new FormData(r),Sh(i,{pending:!0,data:E,method:r.method,action:d},d,E))},currentTarget:r}]})}}for(var en=0;en<Su.length;en++){var nd=Su[en],sy=nd.toLowerCase(),Ke=nd[0].toUpperCase()+nd.slice(1);al(sy,"on"+Ke)}al(df,"onAnimationEnd"),al(zc,"onAnimationIteration"),al(hf,"onAnimationStart"),al("dblclick","onDoubleClick"),al("focusin","onFocus"),al("focusout","onBlur"),al(Oc,"onTransitionRun"),al(vs,"onTransitionStart"),al(mf,"onTransitionCancel"),al(Uc,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),Oa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Oa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Oa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Oa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Oa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Oa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ld="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(" "),Uo=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ld));function Vs(n,a){a=(a&4)!==0;for(var i=0;i<n.length;i++){var o=n[i],r=o.event;o=o.listeners;e:{var d=void 0;if(a)for(var g=o.length-1;0<=g;g--){var y=o[g],E=y.instance,H=y.currentTarget;if(y=y.listener,E!==d&&r.isPropagationStopped())break e;d=y,r.currentTarget=H;try{d(r)}catch(I){Yf(I)}r.currentTarget=null,d=E}else for(g=0;g<o.length;g++){if(y=o[g],E=y.instance,H=y.currentTarget,y=y.listener,E!==d&&r.isPropagationStopped())break e;d=y,r.currentTarget=H;try{d(r)}catch(I){Yf(I)}r.currentTarget=null,d=E}}}}function Xe(n,a){var i=a[Io];i===void 0&&(i=a[Io]=new Set);var o=n+"__bubble";i.has(o)||(Ph(a,n,2,!1),i.add(o))}function hr(n,a,i){var o=0;a&&(o|=4),Ph(i,n,o,a)}var mr="_reactListening"+Math.random().toString(36).slice(2);function o0(n){if(!n[mr]){n[mr]=!0,Fu.forEach(function(i){i!=="selectionchange"&&(Uo.has(i)||hr(i,!1,n),hr(i,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[mr]||(a[mr]=!0,hr("selectionchange",!1,a))}}function Ph(n,a,i,o){switch(x0(a)){case 2:var r=ig;break;case 8:r=ug;break;default:r=S0}i=r.bind(null,a,i,n),r=void 0,!as||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(r=!0),o?r!==void 0?n.addEventListener(a,i,{capture:!0,passive:r}):n.addEventListener(a,i,!0):r!==void 0?n.addEventListener(a,i,{passive:r}):n.addEventListener(a,i,!1)}function ba(n,a,i,o,r){var d=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var g=o.tag;if(g===3||g===4){var y=o.stateNode.containerInfo;if(y===r)break;if(g===4)for(g=o.return;g!==null;){var E=g.tag;if((E===3||E===4)&&g.stateNode.containerInfo===r)return;g=g.return}for(;y!==null;){if(g=on(y),g===null)return;if(E=g.tag,E===5||E===6||E===26||E===27){o=d=g;continue e}y=y.parentNode}}o=o.return}gu(function(){var H=d,I=ls(i),P=[];e:{var B=wc.get(n);if(B!==void 0){var L=os,Ae=n;switch(n){case"keypress":if(sn(i)===0)break e;case"keydown":case"keyup":L=ml;break;case"focusin":Ae="focus",L=mc;break;case"focusout":Ae="blur",L=mc;break;case"beforeblur":case"afterblur":L=mc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=hc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=nf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=gc;break;case df:case zc:case hf:L=Gd;break;case Uc:L=sf;break;case"scroll":case"scrollend":L=ef;break;case"wheel":L=pi;break;case"copy":case"cut":case"paste":L=uo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=oo;break;case"toggle":case"beforetoggle":L=cf}var Me=(a&4)!==0,ht=!Me&&(n==="scroll"||n==="scrollend"),O=Me?B!==null?B+"Capture":null:B;Me=[];for(var z=H,U;z!==null;){var F=z;if(U=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||U===null||O===null||(F=fi(z,O),F!=null&&Me.push(Hu(z,F,U))),ht)break;z=z.return}0<Me.length&&(B=new L(B,Ae,null,i,I),P.push({event:B,listeners:Me}))}}if((a&7)===0){e:{if(B=n==="mouseover"||n==="pointerover",L=n==="mouseout"||n==="pointerout",B&&i!==ri&&(Ae=i.relatedTarget||i.fromElement)&&(on(Ae)||Ae[du]))break e;if((L||B)&&(B=I.window===I?I:(B=I.ownerDocument)?B.defaultView||B.parentWindow:window,L?(Ae=i.relatedTarget||i.toElement,L=H,Ae=Ae?on(Ae):null,Ae!==null&&(ht=C(Ae),Me=Ae.tag,Ae!==ht||Me!==5&&Me!==27&&Me!==6)&&(Ae=null)):(L=null,Ae=H),L!==Ae)){if(Me=hc,F="onMouseLeave",O="onMouseEnter",z="mouse",(n==="pointerout"||n==="pointerover")&&(Me=oo,F="onPointerLeave",O="onPointerEnter",z="pointer"),ht=L==null?B:Wu(L),U=Ae==null?B:Wu(Ae),B=new Me(F,z+"leave",L,i,I),B.target=ht,B.relatedTarget=U,F=null,on(I)===H&&(Me=new Me(O,z+"enter",Ae,i,I),Me.target=U,Me.relatedTarget=ht,F=Me),ht=F,L&&Ae)t:{for(Me=L,O=Ae,z=0,U=Me;U;U=wo(U))z++;for(U=0,F=O;F;F=wo(F))U++;for(;0<z-U;)Me=wo(Me),z--;for(;0<U-z;)O=wo(O),U--;for(;z--;){if(Me===O||O!==null&&Me===O.alternate)break t;Me=wo(Me),O=wo(O)}Me=null}else Me=null;L!==null&&ad(P,B,L,Me,!1),Ae!==null&&ht!==null&&ad(P,ht,Ae,Me,!0)}}e:{if(B=H?Wu(H):window,L=B.nodeName&&B.nodeName.toLowerCase(),L==="select"||L==="input"&&B.type==="file")var be=Ec;else if(ds(B))if(Cc)be=Mc;else{be=La;var We=ms}else L=B.nodeName,!L||L.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?H&&ci(H.elementType)&&(be=Ec):be=oa;if(be&&(be=be(n,H))){hs(P,be,i,I);break e}We&&We(n,B,H),n==="focusout"&&H&&B.type==="number"&&H.memoizedProps.value!=null&&to(B,"number",B.value)}switch(We=H?Wu(H):window,n){case"focusin":(ds(We)||We.contentEditable==="true")&&(Yl=We,gl=H,Va=null);break;case"focusout":Va=gl=Yl=null;break;case"mousedown":Si=!0;break;case"contextmenu":case"mouseup":case"dragend":Si=!1,ps(P,i,I);break;case"selectionchange":if(bi)break;case"keydown":case"keyup":ps(P,i,I)}var Ce;if(so)e:{switch(n){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Na?ro(n,i)&&(Ue="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(Ue="onCompositionStart");Ue&&(Ll&&i.locale!=="ko"&&(Na||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Na&&(Ce=fc()):(ia=I,yu="value"in ia?ia.value:ia.textContent,Na=!0)),We=pr(H,Ue),0<We.length&&(Ue=new pc(Ue,n,null,i,I),P.push({event:Ue,listeners:We}),Ce?Ue.data=Ce:(Ce=Ba(i),Ce!==null&&(Ue.data=Ce)))),(Ce=bc?Tc(n,i):vi(n,i))&&(Ue=pr(H,"onBeforeInput"),0<Ue.length&&(We=new pc("onBeforeInput","beforeinput",null,i,I),P.push({event:We,listeners:Ue}),We.data=Ce)),Iv(P,n,H,i,I)}Vs(P,a)})}function Hu(n,a,i){return{instance:n,listener:a,currentTarget:i}}function pr(n,a){for(var i=a+"Capture",o=[];n!==null;){var r=n,d=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||d===null||(r=fi(n,i),r!=null&&o.unshift(Hu(n,r,d)),r=fi(n,a),r!=null&&o.push(Hu(n,r,d))),n.tag===3)return o;n=n.return}return[]}function wo(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function ad(n,a,i,o,r){for(var d=a._reactName,g=[];i!==null&&i!==o;){var y=i,E=y.alternate,H=y.stateNode;if(y=y.tag,E!==null&&E===o)break;y!==5&&y!==26&&y!==27||H===null||(E=H,r?(H=fi(i,d),H!=null&&g.unshift(Hu(i,H,E))):r||(H=fi(i,d),H!=null&&g.push(Hu(i,H,E)))),i=i.return}g.length!==0&&n.push({event:a,listeners:g})}var Jl=/\r\n?/g,s0=/\u0000|\uFFFD/g;function Wv(n){return(typeof n=="string"?n:""+n).replace(Jl,`
945
+ `).replace(s0,"")}function c0(n,a){return a=Wv(a),Wv(n)===a}function em(){}function Ve(n,a,i,o,r,d){switch(i){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||mu(n,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&mu(n,""+o);break;case"className":Pu(n,"class",o);break;case"tabIndex":Pu(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Pu(n,i,o);break;case"style":no(n,o,d);break;case"data":if(a!=="object"){Pu(n,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||i!=="href")){n.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(i);break}o=lo(""+o),n.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(i,"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 d=="function"&&(i==="formAction"?(a!=="input"&&Ve(n,a,"name",r.name,r,null),Ve(n,a,"formEncType",r.formEncType,r,null),Ve(n,a,"formMethod",r.formMethod,r,null),Ve(n,a,"formTarget",r.formTarget,r,null)):(Ve(n,a,"encType",r.encType,r,null),Ve(n,a,"method",r.method,r,null),Ve(n,a,"target",r.target,r,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(i);break}o=lo(""+o),n.setAttribute(i,o);break;case"onClick":o!=null&&(n.onclick=em);break;case"onScroll":o!=null&&Xe("scroll",n);break;case"onScrollEnd":o!=null&&Xe("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(m(61));if(i=o.__html,i!=null){if(r.children!=null)throw Error(m(60));n.innerHTML=i}}break;case"multiple":n.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":n.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){n.removeAttribute("xlink:href");break}i=lo(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(i,""+o):n.removeAttribute(i);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":o&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":o===!0?n.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(i,o):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(i,o):n.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(i):n.setAttribute(i,o);break;case"popover":Xe("beforetoggle",n),Xe("toggle",n),la(n,"popover",o);break;case"xlinkActuate":Bl(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Bl(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Bl(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Bl(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Bl(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Bl(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Bl(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Bl(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Bl(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":la(n,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=qd.get(i)||i,la(n,i,o))}}function G(n,a,i,o,r,d){switch(i){case"style":no(n,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(m(61));if(i=o.__html,i!=null){if(r.children!=null)throw Error(m(60));n.innerHTML=i}}break;case"children":typeof o=="string"?mu(n,o):(typeof o=="number"||typeof o=="bigint")&&mu(n,""+o);break;case"onScroll":o!=null&&Xe("scroll",n);break;case"onScrollEnd":o!=null&&Xe("scrollend",n);break;case"onClick":o!=null&&(n.onclick=em);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qn.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(r=i.endsWith("Capture"),a=i.slice(2,r?i.length-7:void 0),d=n[En]||null,d=d!=null?d[i]:null,typeof d=="function"&&n.removeEventListener(a,d,r),typeof o=="function")){typeof d!="function"&&d!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(a,o,r);break e}i in n?n[i]=o:o===!0?n.setAttribute(i,""):la(n,i,o)}}}function Be(n,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",n),Xe("load",n);var o=!1,r=!1,d;for(d in i)if(i.hasOwnProperty(d)){var g=i[d];if(g!=null)switch(d){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(m(137,a));default:Ve(n,a,d,g,i,null)}}r&&Ve(n,a,"srcSet",i.srcSet,i,null),o&&Ve(n,a,"src",i.src,i,null);return;case"input":Xe("invalid",n);var y=d=g=r=null,E=null,H=null;for(o in i)if(i.hasOwnProperty(o)){var I=i[o];if(I!=null)switch(o){case"name":r=I;break;case"type":g=I;break;case"checked":E=I;break;case"defaultChecked":H=I;break;case"value":d=I;break;case"defaultValue":y=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(m(137,a));break;default:Ve(n,a,o,I,i,null)}}ts(n,d,y,E,H,g,r,!1),Ha(n);return;case"select":Xe("invalid",n),o=g=d=null;for(r in i)if(i.hasOwnProperty(r)&&(y=i[r],y!=null))switch(r){case"value":d=y;break;case"defaultValue":g=y;break;case"multiple":o=y;default:Ve(n,a,r,y,i,null)}a=d,i=g,n.multiple=!!o,a!=null?si(n,!!o,a,!1):i!=null&&si(n,!!o,i,!0);return;case"textarea":Xe("invalid",n),d=r=o=null;for(g in i)if(i.hasOwnProperty(g)&&(y=i[g],y!=null))switch(g){case"value":o=y;break;case"defaultValue":r=y;break;case"children":d=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(m(91));break;default:Ve(n,a,g,y,i,null)}cc(n,o,r,d),Ha(n);return;case"option":for(E in i)if(i.hasOwnProperty(E)&&(o=i[E],o!=null))switch(E){case"selected":n.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ve(n,a,E,o,i,null)}return;case"dialog":Xe("beforetoggle",n),Xe("toggle",n),Xe("cancel",n),Xe("close",n);break;case"iframe":case"object":Xe("load",n);break;case"video":case"audio":for(o=0;o<ld.length;o++)Xe(ld[o],n);break;case"image":Xe("error",n),Xe("load",n);break;case"details":Xe("toggle",n);break;case"embed":case"source":case"link":Xe("error",n),Xe("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in i)if(i.hasOwnProperty(H)&&(o=i[H],o!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(m(137,a));default:Ve(n,a,H,o,i,null)}return;default:if(ci(a)){for(I in i)i.hasOwnProperty(I)&&(o=i[I],o!==void 0&&G(n,a,I,o,i,void 0));return}}for(y in i)i.hasOwnProperty(y)&&(o=i[y],o!=null&&Ve(n,a,y,o,i,null))}function cy(n,a,i,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,d=null,g=null,y=null,E=null,H=null,I=null;for(L in i){var P=i[L];if(i.hasOwnProperty(L)&&P!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":E=P;default:o.hasOwnProperty(L)||Ve(n,a,L,null,o,P)}}for(var B in o){var L=o[B];if(P=i[B],o.hasOwnProperty(B)&&(L!=null||P!=null))switch(B){case"type":d=L;break;case"name":r=L;break;case"checked":H=L;break;case"defaultChecked":I=L;break;case"value":g=L;break;case"defaultValue":y=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(m(137,a));break;default:L!==P&&Ve(n,a,B,L,o,P)}}es(n,g,y,E,H,I,d,r);return;case"select":L=g=y=B=null;for(d in i)if(E=i[d],i.hasOwnProperty(d)&&E!=null)switch(d){case"value":break;case"multiple":L=E;default:o.hasOwnProperty(d)||Ve(n,a,d,null,o,E)}for(r in o)if(d=o[r],E=i[r],o.hasOwnProperty(r)&&(d!=null||E!=null))switch(r){case"value":B=d;break;case"defaultValue":y=d;break;case"multiple":g=d;default:d!==E&&Ve(n,a,r,d,o,E)}a=y,i=g,o=L,B!=null?si(n,!!i,B,!1):!!o!=!!i&&(a!=null?si(n,!!i,a,!0):si(n,!!i,i?[]:"",!1));return;case"textarea":L=B=null;for(y in i)if(r=i[y],i.hasOwnProperty(y)&&r!=null&&!o.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ve(n,a,y,null,o,r)}for(g in o)if(r=o[g],d=i[g],o.hasOwnProperty(g)&&(r!=null||d!=null))switch(g){case"value":B=r;break;case"defaultValue":L=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(m(91));break;default:r!==d&&Ve(n,a,g,r,o,d)}sc(n,B,L);return;case"option":for(var Ae in i)if(B=i[Ae],i.hasOwnProperty(Ae)&&B!=null&&!o.hasOwnProperty(Ae))switch(Ae){case"selected":n.selected=!1;break;default:Ve(n,a,Ae,null,o,B)}for(E in o)if(B=o[E],L=i[E],o.hasOwnProperty(E)&&B!==L&&(B!=null||L!=null))switch(E){case"selected":n.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ve(n,a,E,B,o,L)}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 Me in i)B=i[Me],i.hasOwnProperty(Me)&&B!=null&&!o.hasOwnProperty(Me)&&Ve(n,a,Me,null,o,B);for(H in o)if(B=o[H],L=i[H],o.hasOwnProperty(H)&&B!==L&&(B!=null||L!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(m(137,a));break;default:Ve(n,a,H,B,o,L)}return;default:if(ci(a)){for(var ht in i)B=i[ht],i.hasOwnProperty(ht)&&B!==void 0&&!o.hasOwnProperty(ht)&&G(n,a,ht,void 0,o,B);for(I in o)B=o[I],L=i[I],!o.hasOwnProperty(I)||B===L||B===void 0&&L===void 0||G(n,a,I,B,o,L);return}}for(var O in i)B=i[O],i.hasOwnProperty(O)&&B!=null&&!o.hasOwnProperty(O)&&Ve(n,a,O,null,o,B);for(P in o)B=o[P],L=i[P],!o.hasOwnProperty(P)||B===L||B==null&&L==null||Ve(n,a,P,B,o,L)}var id=null,ud=null;function Sa(n){return n.nodeType===9?n:n.ownerDocument}function ku(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vr(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function ji(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var gr=null;function Bu(){var n=window.event;return n&&n.type==="popstate"?n===gr?!1:(gr=n,!0):(gr=null,!1)}var tm=typeof setTimeout=="function"?setTimeout:void 0,ry=typeof clearTimeout=="function"?clearTimeout:void 0,Fv=typeof Promise=="function"?Promise:void 0,fy=typeof queueMicrotask=="function"?queueMicrotask:typeof Fv<"u"?function(n){return Fv.resolve(null).then(n).catch(Xi)}:tm;function Xi(n){setTimeout(function(){throw n})}function Ho(n){return n==="head"}function nm(n,a){var i=a,o=0,r=0;do{var d=i.nextSibling;if(n.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"){if(0<o&&8>o){i=o;var g=n.ownerDocument;if(i&1&&Rl(g.documentElement),i&2&&Rl(g.body),i&4)for(i=g.head,Rl(i),g=i.firstChild;g;){var y=g.nextSibling,E=g.nodeName;g[ye]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&g.rel.toLowerCase()==="stylesheet"||i.removeChild(g),g=y}}if(r===0){n.removeChild(d),Zi(a);return}r--}else i==="$"||i==="$?"||i==="$!"?r++:o=i.charCodeAt(0)-48;else o=0;i=d}while(i);Zi(a)}function od(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":od(i),Iu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function yr(n,a,i,o){for(;n.nodeType===1;){var r=i;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[ye])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(d=n.getAttribute("rel"),d==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(d!==r.rel||n.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||n.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||n.getAttribute("title")!==(r.title==null?null:r.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(d=n.getAttribute("src"),(d!==(r.src==null?null:r.src)||n.getAttribute("type")!==(r.type==null?null:r.type)||n.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&d&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var d=r.name==null?null:""+r.name;if(r.type==="hidden"&&n.getAttribute("name")===d)return n}else return n;if(n=Ia(n.nextSibling),n===null)break}return null}function dy(n,a,i){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=Ia(n.nextSibling),n===null))return null;return n}function sd(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function hy(n,a){var i=n.ownerDocument;if(n.data!=="$?"||i.readyState==="complete")a();else{var o=function(){a(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),n._reactRetry=o}}function Ia(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}var ko=null;function qn(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"){if(a===0)return n;a--}else i==="/$"&&a++}n=n.previousSibling}return null}function he(n,a,i){switch(a=Sa(i),n){case"html":if(n=a.documentElement,!n)throw Error(m(452));return n;case"head":if(n=a.head,!n)throw Error(m(453));return n;case"body":if(n=a.body,!n)throw Error(m(454));return n;default:throw Error(m(451))}}function Rl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Iu(n)}var tn=new Map,Wn=new Set;function lm(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Nu=W.d;W.d={f:am,r:im,D:Lu,C:um,L:Bo,m:Fn,X:No,S:Dl,M:r0};function am(){var n=Nu.f(),a=Ns();return n||a}function im(n){var a=ai(n);a!==null&&a.tag===5&&a.type==="form"?Ic(a):Nu.r(n)}var Yn=typeof document>"u"?null:document;function Wa(n,a,i){var o=Yn;if(o&&typeof a=="string"&&a){var r=nl(a);r='link[rel="'+n+'"][href="'+r+'"]',typeof i=="string"&&(r+='[crossorigin="'+i+'"]'),Wn.has(r)||(Wn.add(r),n={rel:n,crossOrigin:i,href:a},o.querySelector(r)===null&&(a=o.createElement("link"),Be(a,"link",n),$t(a),o.head.appendChild(a)))}}function Lu(n){Nu.D(n),Wa("dns-prefetch",n,null)}function um(n,a){Nu.C(n,a),Wa("preconnect",n,a)}function Bo(n,a,i){Nu.L(n,a,i);var o=Yn;if(o&&n&&a){var r='link[rel="preload"][as="'+nl(a)+'"]';a==="image"&&i&&i.imageSrcSet?(r+='[imagesrcset="'+nl(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(r+='[imagesizes="'+nl(i.imageSizes)+'"]')):r+='[href="'+nl(n)+'"]';var d=r;switch(a){case"style":d=br(n);break;case"script":d=Ta(n)}tn.has(d)||(n=ee({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:n,as:a},i),tn.set(d,n),o.querySelector(r)!==null||a==="style"&&o.querySelector(Sr(d))||a==="script"&&o.querySelector(Gs(d))||(a=o.createElement("link"),Be(a,"link",n),$t(a),o.head.appendChild(a)))}}function Fn(n,a){Nu.m(n,a);var i=Yn;if(i&&n){var o=a&&typeof a.as=="string"?a.as:"script",r='link[rel="modulepreload"][as="'+nl(o)+'"][href="'+nl(n)+'"]',d=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ta(n)}if(!tn.has(d)&&(n=ee({rel:"modulepreload",href:n},a),tn.set(d,n),i.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Gs(d)))return}o=i.createElement("link"),Be(o,"link",n),$t(o),i.head.appendChild(o)}}}function Dl(n,a,i){Nu.S(n,a,i);var o=Yn;if(o&&n){var r=na(o).hoistableStyles,d=br(n);a=a||"default";var g=r.get(d);if(!g){var y={loading:0,preload:null};if(g=o.querySelector(Sr(d)))y.loading=5;else{n=ee({rel:"stylesheet",href:n,"data-precedence":a},i),(i=tn.get(d))&&sm(n,i);var E=g=o.createElement("link");$t(E),Be(E,"link",n),E._p=new Promise(function(H,I){E.onload=H,E.onerror=I}),E.addEventListener("load",function(){y.loading|=1}),E.addEventListener("error",function(){y.loading|=2}),y.loading|=4,om(g,a,o)}g={type:"stylesheet",instance:g,count:1,state:y},r.set(d,g)}}}function No(n,a){Nu.X(n,a);var i=Yn;if(i&&n){var o=na(i).hoistableScripts,r=Ta(n),d=o.get(r);d||(d=i.querySelector(Gs(r)),d||(n=ee({src:n,async:!0},a),(a=tn.get(r))&&cm(n,a),d=i.createElement("script"),$t(d),Be(d,"link",n),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(r,d))}}function r0(n,a){Nu.M(n,a);var i=Yn;if(i&&n){var o=na(i).hoistableScripts,r=Ta(n),d=o.get(r);d||(d=i.querySelector(Gs(r)),d||(n=ee({src:n,async:!0,type:"module"},a),(a=tn.get(r))&&cm(n,a),d=i.createElement("script"),$t(d),Be(d,"link",n),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(r,d))}}function Pv(n,a,i,o){var r=(r=$e.current)?lm(r):null;if(!r)throw Error(m(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=br(i.href),i=na(r).hoistableStyles,o=i.get(a),o||(o={type:"style",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=br(i.href);var d=na(r).hoistableStyles,g=d.get(n);if(g||(r=r.ownerDocument||r,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(n,g),(d=r.querySelector(Sr(n)))&&!d._p&&(g.instance=d,g.state.loading=5),tn.has(n)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},tn.set(n,i),d||eg(r,n,i,g.state))),a&&o===null)throw Error(m(528,""));return g}if(a&&o!==null)throw Error(m(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ta(i),i=na(r).hoistableScripts,o=i.get(a),o||(o={type:"script",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(m(444,n))}}function br(n){return'href="'+nl(n)+'"'}function Sr(n){return'link[rel="stylesheet"]['+n+"]"}function Tr(n){return ee({},n,{"data-precedence":n.precedence,precedence:null})}function eg(n,a,i,o){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=n.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Be(a,"link",i),$t(a),n.head.appendChild(a))}function Ta(n){return'[src="'+nl(n)+'"]'}function Gs(n){return"script[async]"+n}function tg(n,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var o=n.querySelector('style[data-href~="'+nl(i.href)+'"]');if(o)return a.instance=o,$t(o),o;var r=ee({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),$t(o),Be(o,"style",r),om(o,i.precedence,n),a.instance=o;case"stylesheet":r=br(i.href);var d=n.querySelector(Sr(r));if(d)return a.state.loading|=4,a.instance=d,$t(d),d;o=Tr(i),(r=tn.get(r))&&sm(o,r),d=(n.ownerDocument||n).createElement("link"),$t(d);var g=d;return g._p=new Promise(function(y,E){g.onload=y,g.onerror=E}),Be(d,"link",o),a.state.loading|=4,om(d,i.precedence,n),a.instance=d;case"script":return d=Ta(i.src),(r=n.querySelector(Gs(d)))?(a.instance=r,$t(r),r):(o=i,(r=tn.get(d))&&(o=ee({},i),cm(o,r)),n=n.ownerDocument||n,r=n.createElement("script"),$t(r),Be(r,"link",o),n.head.appendChild(r),a.instance=r);case"void":return null;default:throw Error(m(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,om(o,i.precedence,n));return a.instance}function om(n,a,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,d=r,g=0;g<o.length;g++){var y=o[g];if(y.dataset.precedence===a)d=y;else if(d!==r)break}d?d.parentNode.insertBefore(n,d.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(n,a.firstChild))}function sm(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function cm(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var Lo=null;function f0(n,a,i){if(Lo===null){var o=new Map,r=Lo=new Map;r.set(i,o)}else r=Lo,o=r.get(i),o||(o=new Map,r.set(i,o));if(o.has(n))return o;for(o.set(n,null),i=i.getElementsByTagName(n),r=0;r<i.length;r++){var d=i[r];if(!(d[ye]||d[ln]||n==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var g=d.getAttribute(a)||"";g=n+g;var y=o.get(g);y?y.push(d):o.set(g,[d])}}return o}function d0(n,a,i){n=n.ownerDocument||n,n.head.insertBefore(i,a==="title"?n.querySelector("head > title"):null)}function ng(n,a,i){if(i===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function h0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var xr=null;function lg(){}function ag(n,a,i){if(xr===null)throw Error(m(475));var o=xr;if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=br(i.href),d=n.querySelector(Sr(r));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(o.count++,o=cd.bind(o),n.then(o,o)),a.state.loading|=4,a.instance=d,$t(d);return}d=n.ownerDocument||n,i=Tr(i),(r=tn.get(r))&&sm(i,r),d=d.createElement("link"),$t(d);var g=d;g._p=new Promise(function(y,E){g.onload=y,g.onerror=E}),Be(d,"link",i),a.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=cd.bind(o),n.addEventListener("load",a),n.addEventListener("error",a))}}function m0(){if(xr===null)throw Error(m(475));var n=xr;return n.stylesheets&&n.count===0&&rd(n,n.stylesheets),0<n.count?function(a){var i=setTimeout(function(){if(n.stylesheets&&rd(n,n.stylesheets),n.unsuspend){var o=n.unsuspend;n.unsuspend=null,o()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(i)}}:null}function cd(){if(this.count--,this.count===0){if(this.stylesheets)rd(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Er=null;function rd(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Er=new Map,a.forEach(Kl,n),Er=null,cd.call(n))}function Kl(n,a){if(!(a.state.loading&4)){var i=Er.get(n);if(i)var o=i.get(null);else{i=new Map,Er.set(n,i);for(var r=n.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<r.length;d++){var g=r[d];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),o=g)}o&&i.set(null,o)}r=a.instance,g=r.getAttribute("data-precedence"),d=i.get(g)||o,d===o&&i.set(null,r),i.set(g,r),this.count++,o=cd.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),d?d.parentNode.insertBefore(r,d.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(r,n.firstChild)),a.state.loading|=4}}var zl={$$typeof:fe,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function my(n,a,i,o,r,d,g,y){this.tag=1,this.containerInfo=n,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=za(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=za(0),this.hiddenUpdates=za(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=d,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function p0(n,a,i,o,r,d,g,y,E,H,I,P){return n=new my(n,a,i,g,y,E,H,P),a=1,d===!0&&(a|=24),d=bl(3,null,null,a),n.current=d,d.stateNode=n,a=Qc(),a.refCount++,n.pooledCache=a,a.refCount++,d.memoizedState={element:o,isDehydrated:i,cache:a},eh(d),n}function v0(n){return n?(n=Nc,n):Nc}function g0(n,a,i,o,r,d){r=v0(r),o.context===null?o.context=r:o.pendingContext=r,o=Tl(a),o.payload={element:i},d=d===void 0?null:d,d!==null&&(o.callback=d),i=Ri(n,o,a),i!==null&&($l(i,n,a),Ts(i,n,a))}function y0(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<a?i:a}}function rm(n,a){y0(n,a),(n=n.alternate)&&y0(n,a)}function b0(n){if(n.tag===13){var a=xi(n,67108864);a!==null&&$l(a,n,67108864),rm(n,67108864)}}var fd=!0;function ig(n,a,i,o){var r=D.T;D.T=null;var d=W.p;try{W.p=2,S0(n,a,i,o)}finally{W.p=d,D.T=r}}function ug(n,a,i,o){var r=D.T;D.T=null;var d=W.p;try{W.p=8,S0(n,a,i,o)}finally{W.p=d,D.T=r}}function S0(n,a,i,o){if(fd){var r=fm(o);if(r===null)ba(n,a,o,dm,i),js(n,o);else if(sg(r,n,a,i,o))o.stopPropagation();else if(js(n,o),a&4&&-1<og.indexOf(n)){for(;r!==null;){var d=ai(r);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var g=Xn(d.pendingLanes);if(g!==0){var y=d;for(y.pendingLanes|=2,y.entangledLanes|=2;g;){var E=1<<31-Ot(g);y.entanglements[1]|=E,g&=~E}Ml(d),(yt&6)===0&&(Gh=hn()+500,Ff(0))}}break;case 13:y=xi(d,2),y!==null&&$l(y,d,2),Ns(),rm(d,2)}if(d=fm(o),d===null&&ba(n,a,o,dm,i),d===r)break;r=d}r!==null&&o.stopPropagation()}else ba(n,a,o,null,i)}}function fm(n){return n=ls(n),T0(n)}var dm=null;function T0(n){if(dm=null,n=on(n),n!==null){var a=C(n);if(a===null)n=null;else{var i=a.tag;if(i===13){if(n=w(a),n!==null)return n;n=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return dm=n,null}function x0(n){switch(n){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(Aa()){case $u:return 2;case ou:return 8;case Ma:case su:return 32;case tl:return 268435456;default:return 32}default:return 32}}var Cr=!1,Qi=null,qu=null,Yu=null,dd=new Map,hd=new Map,qo=[],og="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 js(n,a){switch(n){case"focusin":case"focusout":Qi=null;break;case"dragenter":case"dragleave":qu=null;break;case"mouseover":case"mouseout":Yu=null;break;case"pointerover":case"pointerout":dd.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":hd.delete(a.pointerId)}}function Xs(n,a,i,o,r,d){return n===null||n.nativeEvent!==d?(n={blockedOn:a,domEventName:i,eventSystemFlags:o,nativeEvent:d,targetContainers:[r]},a!==null&&(a=ai(a),a!==null&&b0(a)),n):(n.eventSystemFlags|=o,a=n.targetContainers,r!==null&&a.indexOf(r)===-1&&a.push(r),n)}function sg(n,a,i,o,r){switch(a){case"focusin":return Qi=Xs(Qi,n,a,i,o,r),!0;case"dragenter":return qu=Xs(qu,n,a,i,o,r),!0;case"mouseover":return Yu=Xs(Yu,n,a,i,o,r),!0;case"pointerover":var d=r.pointerId;return dd.set(d,Xs(dd.get(d)||null,n,a,i,o,r)),!0;case"gotpointercapture":return d=r.pointerId,hd.set(d,Xs(hd.get(d)||null,n,a,i,o,r)),!0}return!1}function E0(n){var a=on(n.target);if(a!==null){var i=C(a);if(i!==null){if(a=i.tag,a===13){if(a=w(i),a!==null){n.blockedOn=a,Nd(n.priority,function(){if(i.tag===13){var o=Zl();o=hl(o);var r=xi(i,o);r!==null&&$l(r,i,o),rm(i,o)}});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function md(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var i=fm(n.nativeEvent);if(i===null){i=n.nativeEvent;var o=new i.constructor(i.type,i);ri=o,i.target.dispatchEvent(o),ri=null}else return a=ai(i),a!==null&&b0(a),n.blockedOn=i,!1;a.shift()}return!0}function pd(n,a,i){md(n)&&i.delete(a)}function _r(){Cr=!1,Qi!==null&&md(Qi)&&(Qi=null),qu!==null&&md(qu)&&(qu=null),Yu!==null&&md(Yu)&&(Yu=null),dd.forEach(pd),hd.forEach(pd)}function hm(n,a){n.blockedOn===a&&(n.blockedOn=null,Cr||(Cr=!0,b.unstable_scheduleCallback(b.unstable_NormalPriority,_r)))}var Qs=null;function C0(n){Qs!==n&&(Qs=n,b.unstable_scheduleCallback(b.unstable_NormalPriority,function(){Qs===n&&(Qs=null);for(var a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],r=n[a+2];if(typeof o!="function"){if(T0(o||i)===null)continue;break}var d=ai(i);d!==null&&(n.splice(a,3),a-=3,Sh(d,{pending:!0,data:r,method:i.method,action:o},o,r))}}))}function Zi(n){function a(E){return hm(E,n)}Qi!==null&&hm(Qi,n),qu!==null&&hm(qu,n),Yu!==null&&hm(Yu,n),dd.forEach(a),hd.forEach(a);for(var i=0;i<qo.length;i++){var o=qo[i];o.blockedOn===n&&(o.blockedOn=null)}for(;0<qo.length&&(i=qo[0],i.blockedOn===null);)E0(i),i.blockedOn===null&&qo.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var r=i[o],d=i[o+1],g=r[En]||null;if(typeof d=="function")g||C0(i);else if(g){var y=null;if(d&&d.hasAttribute("formAction")){if(r=d,g=d[En]||null)y=g.formAction;else if(T0(r)!==null)continue}else y=g.action;typeof y=="function"?i[o+1]=y:(i.splice(o,3),o-=3),C0(i)}}}function _0(n){this._internalRoot=n}mm.prototype.render=_0.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(m(409));var i=a.current,o=Zl();g0(i,o,n,a,null,null)},mm.prototype.unmount=_0.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;g0(n.current,2,null,n,null,null),Ns(),a[du]=null}};function mm(n){this._internalRoot=n}mm.prototype.unstable_scheduleHydration=function(n){if(n){var a=Zr();n={blockedOn:null,target:n,priority:a};for(var i=0;i<qo.length&&a!==0&&a<qo[i].priority;i++);qo.splice(i,0,n),i===0&&E0(n)}};var A0=f.version;if(A0!=="19.1.0")throw Error(m(527,A0,"19.1.0"));W.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(m(188)):(n=Object.keys(n).join(","),Error(m(268,n)));return n=M(a),n=n!==null?Y(n):null,n=n===null?null:n.stateNode,n};var sl={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vd.isDisabled&&vd.supportsFiber)try{zt=vd.inject(sl),Bt=vd}catch{}}return Jm.createRoot=function(n,a){if(!T(n))throw Error(m(299));var i=!1,o="",r=Pc,d=Ep,g=Vf,y=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(y=a.unstable_transitionCallbacks)),a=p0(n,1,!1,null,null,i,o,r,d,g,y,null),n[du]=a.current,o0(n),new _0(a)},Jm.hydrateRoot=function(n,a,i){if(!T(n))throw Error(m(299));var o=!1,r="",d=Pc,g=Ep,y=Vf,E=null,H=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(r=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(y=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(E=i.unstable_transitionCallbacks),i.formState!==void 0&&(H=i.formState)),a=p0(n,1,!0,a,i??null,o,r,d,g,y,E,H),a.context=v0(null),i=a.current,o=Zl(),o=hl(o),r=Tl(o),r.callback=null,Ri(i,r,o),i=o,a.current.lanes=i,li(a,i),Ml(a),n[du]=a.current,o0(n),new mm(a)},Jm.version="19.1.0",Jm}var Km={};/**
946
+ * @license React
947
+ * react-dom-client.development.js
948
+ *
949
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
950
+ *
951
+ * This source code is licensed under the MIT license found in the
952
+ * LICENSE file in the root directory of this source tree.
953
+ */var $b;function q2(){return $b||($b=1,process.env.NODE_ENV!=="production"&&function(){function b(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function f(e,t,l,u){if(l>=t.length)return u;var s=t[l],c=Ve(e)?e.slice():Ke({},e);return c[s]=f(e[s],t,l+1,u),c}function p(e,t,l){if(t.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;u<l.length-1;u++)if(t[u]!==l[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return m(e,t,l,0)}}function m(e,t,l,u){var s=t[u],c=Ve(e)?e.slice():Ke({},e);return u+1===t.length?(c[l[u]]=c[s],Ve(c)?c.splice(s,1):delete c[s]):c[s]=m(e[s],t,l,u+1),c}function T(e,t,l){var u=t[l],s=Ve(e)?e.slice():Ke({},e);return l+1===t.length?(Ve(s)?s.splice(u,1):delete s[u],s):(s[u]=T(e[u],t,l+1),s)}function C(){return!1}function w(){return null}function j(){}function M(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function Y(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function ee(){}function le(e){var t=[];return e.forEach(function(l){t.push(l)}),t.sort().join(", ")}function V(e,t,l,u){return new co(e,t,l,u)}function oe(e,t){e.context===Ar&&(St(e.current,2,t,e,null,null),Os())}function se(e,t){if(Ji!==null){var l=t.staleFamilies;t=t.updatedFamilies,er(),so(e.current,t,l),Os()}}function ue(e){Ji=e}function ae(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function de(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function ke(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 fe(e){if(de(e)!==e)throw Error("Unable to find node on an unmounted component.")}function xe(e){var t=e.alternate;if(!t){if(t=de(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var l=e,u=t;;){var s=l.return;if(s===null)break;var c=s.alternate;if(c===null){if(u=s.return,u!==null){l=u;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===l)return fe(s),e;if(c===u)return fe(s),t;c=c.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==u.return)l=s,u=c;else{for(var h=!1,v=s.child;v;){if(v===l){h=!0,l=s,u=c;break}if(v===u){h=!0,u=s,l=c;break}v=v.sibling}if(!h){for(v=c.child;v;){if(v===l){h=!0,l=c,u=s;break}if(v===u){h=!0,u=c,l=s;break}v=v.sibling}if(!h)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(l.alternate!==u)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?e:t}function Ye(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Ye(e),t!==null)return t;e=e.sibling}return null}function qe(e){return e===null||typeof e!="object"?null:(e=c0&&e[c0]||e["@@iterator"],typeof e=="function"?e:null)}function ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===em?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xe:return"Fragment";case mr:return"Profiler";case hr:return"StrictMode";case pr:return"Suspense";case wo:return"SuspenseList";case s0:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Vs:return"Portal";case ba:return(e.displayName||"Context")+".Provider";case Ph:return(e._context.displayName||"Context")+".Consumer";case Hu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ad:return t=e.displayName||null,t!==null?t:ze(e.type)||"Memo";case Jl:t=e._payload,e=e._init;try{return ze(e(t))}catch{}}return null}function at(e){return typeof e.tag=="number"?me(e):typeof e.name=="string"?e.name:null}function me(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ze(t);case 8:return t===hr?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var l=t.length-1;0<=l;l--)if(typeof t[l].name=="string")return t[l].name}if(e.return!==null)return me(e.return)}return null}function _e(e){return{current:e}}function Re(e,t){0>Sa?console.error("Unexpected pop."):(t!==ud[Sa]&&console.error("Unexpected Fiber popped."),e.current=id[Sa],id[Sa]=null,ud[Sa]=null,Sa--)}function Ee(e,t,l){Sa++,id[Sa]=e.current,ud[Sa]=l,e.current=t}function et(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Mt(e,t){Ee(ji,t,e),Ee(vr,e,e),Ee(ku,null,e);var l=t.nodeType;switch(l){case 9:case 11:l=l===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?bt(t):ec;break;default:if(l=t.tagName,t=t.namespaceURI)t=bt(t),t=_l(t,l);else switch(l){case"svg":t=Gm;break;case"math":t=Ng;break;default:t=ec}}l=l.toLowerCase(),l=sc(null,l),l={context:t,ancestorInfo:l},Re(ku,e),Ee(ku,l,e)}function vt(e){Re(ku,e),Re(vr,e),Re(ji,e)}function D(){return et(ku.current)}function W(e){e.memoizedState!==null&&Ee(gr,e,e);var t=et(ku.current),l=e.type,u=_l(t.context,l);l=sc(t.ancestorInfo,l),u={context:u,ancestorInfo:l},t!==u&&(Ee(vr,e,e),Ee(ku,u,e))}function te(e){vr.current===e&&(Re(ku,e),Re(vr,e)),gr.current===e&&(Re(gr,e),av._currentValue=kd)}function ge(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function q(e){try{return pe(e),!1}catch{return!0}}function pe(e){return""+e}function ie(e,t){if(q(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,ge(e)),pe(e)}function ve(e,t){if(q(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,ge(e)),pe(e)}function He(e){if(q(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",ge(e)),pe(e)}function rt(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{ko=t.inject(e),qn=t}catch(l){console.error("React instrumentation encountered an error: %s.",l)}return!!t.checkDCE}function $e(e){if(typeof hy=="function"&&Ia(e),qn&&typeof qn.setStrictMode=="function")try{qn.setStrictMode(ko,e)}catch(t){Rl||(Rl=!0,console.error("React instrumentation encountered an error: %s",t))}}function dl(e){he=e}function xt(){he!==null&&typeof he.markCommitStopped=="function"&&he.markCommitStopped()}function Gt(e){he!==null&&typeof he.markComponentRenderStarted=="function"&&he.markComponentRenderStarted(e)}function Tn(){he!==null&&typeof he.markComponentRenderStopped=="function"&&he.markComponentRenderStopped()}function Ul(e){he!==null&&typeof he.markRenderStarted=="function"&&he.markRenderStarted(e)}function ti(){he!==null&&typeof he.markRenderStopped=="function"&&he.markRenderStopped()}function wl(e,t){he!==null&&typeof he.markStateUpdateScheduled=="function"&&he.markStateUpdateScheduled(e,t)}function uu(e){return e>>>=0,e===0?32:31-(lm(e)/Nu|0)|0}function Jo(e){if(e&1)return"SyncHydrationLane";if(e&2)return"Sync";if(e&4)return"InputContinuousHydration";if(e&8)return"InputContinuous";if(e&16)return"DefaultHydration";if(e&32)return"Default";if(e&128)return"TransitionHydration";if(e&4194048)return"Transition";if(e&62914560)return"Retry";if(e&67108864)return"SelectiveHydration";if(e&134217728)return"IdleHydration";if(e&268435456)return"Idle";if(e&536870912)return"Offscreen";if(e&1073741824)return"Deferred"}function Hl(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 console.error("Should have found matching lanes. This is a bug in React."),e}}function hn(e,t,l){var u=e.pendingLanes;if(u===0)return 0;var s=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=u&134217727;return v!==0?(u=v&~c,u!==0?s=Hl(u):(h&=v,h!==0?s=Hl(h):l||(l=v&~e,l!==0&&(s=Hl(l))))):(v=u&~c,v!==0?s=Hl(v):h!==0?s=Hl(h):l||(l=u&~e,l!==0&&(s=Hl(l)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:s}function Aa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $u(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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function ou(){var e=am;return am<<=1,(am&4194048)===0&&(am=256),e}function Ma(){var e=im;return im<<=1,(im&62914560)===0&&(im=4194304),e}function su(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cu(e,t,l,u,s,c){var h=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var v=e.entanglements,S=e.expirationTimes,x=e.hiddenUpdates;for(l=h&~l;0<l;){var N=31-Wn(l),Q=1<<N;v[N]=0,S[N]=-1;var k=x[N];if(k!==null)for(x[N]=null,N=0;N<k.length;N++){var $=k[N];$!==null&&($.lane&=-536870913)}l&=~Q}u!==0&&re(e,u,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function re(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-Wn(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|l&4194090}function zt(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var u=31-Wn(l),s=1<<u;s&t|e[u]&t&&(e[u]|=t),l&=~s}}function Bt(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 xn(e,t,l){if(tn)for(e=e.pendingUpdatersLaneMap;0<l;){var u=31-Wn(l),s=1<<u;e[u].add(t),l&=~s}}function Ot(e,t){if(tn)for(var l=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;0<t;){var s=31-Wn(t);e=1<<s,s=l[s],0<s.size&&(s.forEach(function(c){var h=c.alternate;h!==null&&u.has(h)||u.add(c)}),s.clear()),t&=~e}}function ru(e){return e&=-e,Yn<e?Wa<e?(e&134217727)!==0?Lu:um:Wa:Yn}function Xr(){var e=Be.p;return e!==0?e:(e=window.event,e===void 0?Lu:Wh(e.type))}function Bd(e,t){var l=Be.p;try{return Be.p=e,t()}finally{Be.p=l}}function fu(e){delete e[Fn],delete e[Dl],delete e[r0],delete e[Pv],delete e[br]}function ta(e){var t=e[Fn];if(t)return t;for(var l=e.parentNode;l;){if(t=l[No]||l[Fn]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=cr(e);e!==null;){if(l=e[Fn])return l;e=cr(e)}return t}e=l,l=e.parentNode}return null}function Xn(e){if(e=e[Fn]||e[No]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ra(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function kl(e){var t=e[Sr];return t||(t=e[Sr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nn(e){e[Tr]=!0}function Da(e,t){ni(e,t),ni(e+"Capture",t)}function ni(e,t){Ta[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ta[e]=t;var l=e.toLowerCase();for(Gs[l]=e,e==="onDoubleClick"&&(Gs.ondblclick=e),e=0;e<t.length;e++)eg.add(t[e])}function za(e,t){tg[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function li(e){return Bu.call(cm,e)?!0:Bu.call(sm,e)?!1:om.test(e)?cm[e]=!0:(sm[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Qr(e,t,l){if(li(t)){if(!e.hasAttribute(t)){switch(typeof l){case"symbol":case"object":return l;case"function":return l;case"boolean":if(l===!1)return l}return l===void 0?void 0:null}return e=e.getAttribute(t),e===""&&l===!0?!0:(ie(l,t),e===""+l?l:e)}}function Ju(e,t,l){if(li(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}ie(l,t),e.setAttribute(t,""+l)}}function Ku(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}ie(l,t),e.setAttribute(t,""+l)}}function hl(e,t,l,u){if(u===null)e.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}ie(u,l),e.setAttributeNS(t,l,""+u)}}function Ko(){}function Zr(){if(Lo===0){f0=console.log,d0=console.info,ng=console.warn,h0=console.error,xr=console.group,lg=console.groupCollapsed,ag=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ko,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Lo++}function Nd(){if(Lo--,Lo===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},e,{value:f0}),info:Ke({},e,{value:d0}),warn:Ke({},e,{value:ng}),error:Ke({},e,{value:h0}),group:Ke({},e,{value:xr}),groupCollapsed:Ke({},e,{value:lg}),groupEnd:Ke({},e,{value:ag})})}0>Lo&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Zt(e){if(m0===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);m0=t&&t[1]||"",cd=-1<l.stack.indexOf(`
954
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
955
+ `+m0+e+cd}function ln(e,t){if(!e||Er)return"";var l=rd.get(e);if(l!==void 0)return l;Er=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=G.H,G.H=null,Zr();try{var s={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(Se){var $=Se}Reflect.construct(e,[],k)}else{try{k.call()}catch(Se){$=Se}e.call(k.prototype)}}else{try{throw Error()}catch(Se){$=Se}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(Se){if(Se&&$&&typeof Se.stack=="string")return[Se.stack,$.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=s.DetermineComponentFrameRoot(),v=h[0],S=h[1];if(v&&S){var x=v.split(`
956
+ `),N=S.split(`
957
+ `);for(h=c=0;c<x.length&&!x[c].includes("DetermineComponentFrameRoot");)c++;for(;h<N.length&&!N[h].includes("DetermineComponentFrameRoot");)h++;if(c===x.length||h===N.length)for(c=x.length-1,h=N.length-1;1<=c&&0<=h&&x[c]!==N[h];)h--;for(;1<=c&&0<=h;c--,h--)if(x[c]!==N[h]){if(c!==1||h!==1)do if(c--,h--,0>h||x[c]!==N[h]){var Q=`
958
+ `+x[c].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),typeof e=="function"&&rd.set(e,Q),Q}while(1<=c&&0<=h);break}}}finally{Er=!1,G.H=u,Nd(),Error.prepareStackTrace=l}return x=(x=e?e.displayName||e.name:"")?Zt(x):"",typeof e=="function"&&rd.set(e,x),x}function En(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
959
+ `)&&(e=e.slice(29)),t=e.indexOf(`
960
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react-stack-bottom-frame"),t!==-1&&(t=e.lastIndexOf(`
961
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function du(e){switch(e.tag){case 26:case 27:case 5:return Zt(e.type);case 16:return Zt("Lazy");case 13:return Zt("Suspense");case 19:return Zt("SuspenseList");case 0:case 15:return ln(e.type,!1);case 11:return ln(e.type.render,!1);case 1:return ln(e.type,!0);case 31:return Zt("Activity");default:return""}}function Io(e){try{var t="";do{t+=du(e);var l=e._debugInfo;if(l)for(var u=l.length-1;0<=u;u--){var s=l[u];if(typeof s.name=="string"){var c=t,h=s.env,v=Zt(s.name+(h?" ["+h+"]":""));t=c+v}}e=e.return}while(e);return t}catch(S){return`
962
+ Error generating stack: `+S.message+`
963
+ `+S.stack}}function $r(e){return(e=e?e.displayName||e.name:"")?Zt(e):""}function Wo(){if(Kl===null)return null;var e=Kl._debugOwner;return e!=null?at(e):null}function Jr(){if(Kl===null)return"";var e=Kl;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Zt(e.type);break;case 13:t+=Zt("Suspense");break;case 19:t+=Zt("SuspenseList");break;case 31:t+=Zt("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=$r(e.type));break;case 11:e._debugOwner||t!==""||(t+=$r(e.type.render))}for(;e;)if(typeof e.tag=="number"){var l=e;e=l._debugOwner;var u=l._debugStack;e&&u&&(typeof u!="string"&&(l._debugStack=u=En(u)),u!==""&&(t+=`
964
+ `+u))}else if(e.debugStack!=null){var s=e.debugStack;(e=e.owner)&&s&&(t+=`
965
+ `+En(s))}else break;var c=t}catch(h){c=`
966
+ Error generating stack: `+h.message+`
967
+ `+h.stack}return c}function ye(e,t,l,u,s,c,h){var v=Kl;Iu(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,l,u,s,c,h)):t(l,u,s,c,h)}finally{Iu(v)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Iu(e){G.getCurrentStack=e===null?null:Jr,zl=!1,Kl=e}function on(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return He(e),e;default:return""}}function ai(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wu(e){var t=ai(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);He(e[t]);var u=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(h){He(h),u=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(h){He(h),u=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function na(e){e._valueTracker||(e._valueTracker=Wu(e))}function $t(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),u="";return e&&(u=ai(e)?e.checked?"true":"false":e.value),e=u,e!==l?(t.setValue(e),!0):!1}function Fu(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}}function Qn(e){return e.replace(my,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oa(e,t){t.checked===void 0||t.defaultChecked===void 0||v0||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Wo()||"A component",t.type),v0=!0),t.value===void 0||t.defaultValue===void 0||p0||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Wo()||"A component",t.type),p0=!0)}function Ua(e,t,l,u,s,c,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?(ie(h,"type"),e.type=h):e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+on(t)):e.value!==""+on(t)&&(e.value=""+on(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Fo(e,h,on(t)):l!=null?Fo(e,h,on(l)):u!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?(ie(v,"name"),e.name=""+on(v)):e.removeAttribute("name")}function Kr(e,t,l,u,s,c,h,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(ie(c,"type"),e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;l=l!=null?""+on(l):"",t=t!=null?""+on(t):l,v||t===e.value||(e.value=t),e.defaultValue=t}u=u??s,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=v?e.checked:!!u,e.defaultChecked=!!u,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(ie(h,"name"),e.name=h)}function Fo(e,t,l){t==="number"&&Fu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ac(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?nd.Children.forEach(t.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||y0||(y0=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||rm||(rm=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||g0||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),g0=!0)}function Ir(){var e=Wo();return e?`
968
+
969
+ Check the render method of \``+e+"`.":""}function la(e,t,l,u){if(e=e.options,t){t={};for(var s=0;s<l.length;s++)t["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=t.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&u&&(e[l].defaultSelected=!0)}else{for(l=""+on(l),t=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,u&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Pu(e,t){for(e=0;e<fd.length;e++){var l=fd[e];if(t[l]!=null){var u=Ve(t[l]);t.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,Ir()):!t.multiple&&u&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,Ir())}}t.value===void 0||t.defaultValue===void 0||b0||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),b0=!0)}function Bl(e,t){t.value===void 0||t.defaultValue===void 0||ig||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Wo()||"A component"),ig=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Po(e,t,l){if(t!=null&&(t=""+on(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+on(l):""}function ic(e,t,l,u){if(t==null){if(u!=null){if(l!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ve(u)){if(1<u.length)throw Error("<textarea> can only have at most one child.");u=u[0]}l=u}l==null&&(l=""),t=l}l=on(t),e.defaultValue=l,u=e.textContent,u===l&&u!==""&&u!==null&&(e.value=u)}function ii(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?ii(e.children[0],t):e}function Cn(e){return" "+" ".repeat(e)}function wa(e){return"+ "+" ".repeat(e)}function ui(e){return"- "+" ".repeat(e)}function uc(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function mn(e,t){return ug.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function eo(e,t,l){var u=120-2*l;if(t===null)return wa(l)+mn(e,u)+`
970
+ `;if(typeof t=="string"){for(var s=0;s<t.length&&s<e.length&&t.charCodeAt(s)===e.charCodeAt(s);s++);return s>u-8&&10<s&&(e="..."+e.slice(s-8),t="..."+t.slice(s-8)),wa(l)+mn(e,u)+`
971
+ `+ui(l)+mn(t,u)+`
972
+ `}return Cn(l)+mn(e,u)+`
973
+ `}function oc(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,l){return l})}function Ha(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Ve(e))return"[...]";if(e.$$typeof===Uo)return(t=ze(e.type))?"<"+t+">":"<...>";var l=oc(e);if(l==="Object"){l="",t-=2;for(var u in e)if(e.hasOwnProperty(u)){var s=JSON.stringify(u);if(s!=='"'+u+'"'&&(u=s),t-=u.length-2,s=Ha(e[u],15>t?t:15),t-=s.length,0>t){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+u+":"+s}return"{"+l+"}"}return l;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function oi(e,t){return typeof e!="string"||ug.test(e)?"{"+Ha(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function hu(e,t,l){var u=120-l.length-e.length,s=[],c;for(c in t)if(t.hasOwnProperty(c)&&c!=="children"){var h=oi(t[c],120-l.length-c.length-1);u-=c.length+h.length+2,s.push(c+"="+h)}return s.length===0?l+"<"+e+`>
974
+ `:0<u?l+"<"+e+" "+s.join(" ")+`>
975
+ `:l+"<"+e+`
976
+ `+l+" "+s.join(`
977
+ `+l+" ")+`
978
+ `+l+`>
979
+ `}function Ld(e,t,l){var u="",s=Ke({},t),c;for(c in e)if(e.hasOwnProperty(c)){delete s[c];var h=120-2*l-c.length-2,v=Ha(e[c],h);t.hasOwnProperty(c)?(h=Ha(t[c],h),u+=wa(l)+c+": "+v+`
980
+ `,u+=ui(l)+c+": "+h+`
981
+ `):u+=wa(l)+c+": "+v+`
982
+ `}for(var S in s)s.hasOwnProperty(S)&&(e=Ha(s[S],120-2*l-S.length-2),u+=ui(l)+S+": "+e+`
983
+ `);return u}function nl(e,t,l,u){var s="",c=new Map;for(x in l)l.hasOwnProperty(x)&&c.set(x.toLowerCase(),x);if(c.size===1&&c.has("children"))s+=hu(e,t,Cn(u));else{for(var h in t)if(t.hasOwnProperty(h)&&h!=="children"){var v=120-2*(u+1)-h.length-1,S=c.get(h.toLowerCase());if(S!==void 0){c.delete(h.toLowerCase());var x=t[h];S=l[S];var N=oi(x,v);v=oi(S,v),typeof x=="object"&&x!==null&&typeof S=="object"&&S!==null&&oc(x)==="Object"&&oc(S)==="Object"&&(2<Object.keys(x).length||2<Object.keys(S).length||-1<N.indexOf("...")||-1<v.indexOf("..."))?s+=Cn(u+1)+h+`={{
984
+ `+Ld(x,S,u+2)+Cn(u+1)+`}}
985
+ `:(s+=wa(u+1)+h+"="+N+`
986
+ `,s+=ui(u+1)+h+"="+v+`
987
+ `)}else s+=Cn(u+1)+h+"="+oi(t[h],v)+`
988
+ `}c.forEach(function(Q){if(Q!=="children"){var k=120-2*(u+1)-Q.length-1;s+=ui(u+1)+Q+"="+oi(l[Q],k)+`
989
+ `}}),s=s===""?Cn(u)+"<"+e+`>
990
+ `:Cn(u)+"<"+e+`
991
+ `+s+Cn(u)+`>
992
+ `}return e=l.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(c="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(c=""+t),s+=eo(c,""+e,u+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(s=e==null?s+eo(""+t,null,u+1):s+eo(""+t,void 0,u+1)),s}function es(e,t){var l=uc(e);if(l===null){for(l="",e=e.child;e;)l+=es(e,t),e=e.sibling;return l}return Cn(t)+"<"+l+`>
993
+ `}function ts(e,t){var l=ii(e,t);if(l!==e&&(e.children.length!==1||e.children[0]!==l))return Cn(t)+`...
994
+ `+ts(l,t+1);l="";var u=e.fiber._debugInfo;if(u)for(var s=0;s<u.length;s++){var c=u[s].name;typeof c=="string"&&(l+=Cn(t)+"<"+c+`>
995
+ `,t++)}if(u="",s=e.fiber.pendingProps,e.fiber.tag===6)u=eo(s,e.serverProps,t),t++;else if(c=uc(e.fiber),c!==null)if(e.serverProps===void 0){u=t;var h=120-2*u-c.length-2,v="";for(x in s)if(s.hasOwnProperty(x)&&x!=="children"){var S=oi(s[x],15);if(h-=x.length+S.length+2,0>h){v+=" ...";break}v+=" "+x+"="+S}u=Cn(u)+"<"+c+v+`>
996
+ `,t++}else e.serverProps===null?(u=hu(c,s,wa(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(u=nl(c,s,e.serverProps,t),t++);var x="";for(s=e.fiber.child,c=0;s&&c<e.children.length;)h=e.children[c],h.fiber===s?(x+=ts(h,t),c++):x+=es(s,t),s=s.sibling;for(s&&0<e.children.length&&(x+=Cn(t)+`...
997
+ `),s=e.serverTail,e.serverProps===null&&t--,e=0;e<s.length;e++)c=s[e],x=typeof c=="string"?x+(ui(t)+mn(c,120-2*t)+`
998
+ `):x+hu(c.type,c.props,ui(t));return l+u+x}function to(e){try{return`
999
+
1000
+ `+ts(e,0)}catch{return""}}function si(e,t,l){for(var u=t,s=null,c=0;u;)u===e&&(c=0),s={fiber:u,children:s!==null?[s]:[],serverProps:u===t?l:u===e?null:void 0,serverTail:[],distanceFromLeaf:c},c++,u=u.return;return s!==null?to(s).replaceAll(/^[+-]/gm,">"):""}function sc(e,t){var l=Ke({},e||x0),u={tag:t};return fm.indexOf(t)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),dm.indexOf(t)!==-1&&(l.pTagInButtonScope=null),S0.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=u,t==="form"&&(l.formTag=u),t==="a"&&(l.aTagInScope=u),t==="button"&&(l.buttonTagInScope=u),t==="nobr"&&(l.nobrTagInScope=u),t==="p"&&(l.pTagInButtonScope=u),t==="li"&&(l.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(l.dlItemTagAutoclosing=u),t==="#document"||t==="html"?l.containerTagInScope=null:l.containerTagInScope||(l.containerTagInScope=u),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?l.implicitRootScope===!0&&(l.implicitRootScope=!1):l.implicitRootScope=!0,l}function cc(e,t,l){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(l)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!l)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return T0.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return l||t===null;case"html":return l&&t==="#document"||t===null;case"body":return l&&(t==="#document"||t==="html")||t===null}return!0}function mu(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Wr(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function ns(e,t){t=t||x0;var l=t.current;if(t=(l=cc(e,l&&l.tag,t.implicitRootScope)?null:l)?null:mu(e,t),t=l||t,!t)return!0;var u=t.tag;if(t=String(!!l)+"|"+e+"|"+u,Cr[t])return!1;Cr[t]=!0;var s=(t=Kl)?Wr(t.return,u):null,c=t!==null&&s!==null?si(s,t,null):"",h="<"+e+">";return l?(l="",u==="table"&&e==="tr"&&(l+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
1001
+ This will cause a hydration error.%s`,h,u,l,c)):console.error(`In HTML, %s cannot be a descendant of <%s>.
1002
+ This will cause a hydration error.%s`,h,u,c),t&&(e=t.return,s===null||e===null||s===e&&e._debugOwner===t._debugOwner||ye(s,function(){console.error(`<%s> cannot contain a nested %s.
1003
+ See this log for the ancestor stack trace.`,u,h)})),!1}function no(e,t,l){if(l||cc("#text",t,!1))return!0;if(l="#text|"+t,Cr[l])return!1;Cr[l]=!0;var u=(l=Kl)?Wr(l,t):null;return l=l!==null&&u!==null?si(u,l,l.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
1004
+ This will cause a hydration error.%s`,t,l):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
1005
+ This will cause a hydration error.%s`,t,l),!1}function ci(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}function qd(e){return e.replace(qo,function(t,l){return l.toUpperCase()})}function Fr(e,t,l){var u=t.indexOf("--")===0;u||(-1<t.indexOf("-")?js.hasOwnProperty(t)&&js[t]||(js[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,qd(t.replace(hd,"ms-")))):dd.test(t)?js.hasOwnProperty(t)&&js[t]||(js[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!og.test(l)||Xs.hasOwnProperty(l)&&Xs[l]||(Xs[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,l.replace(og,""))),typeof l=="number"&&(isNaN(l)?sg||(sg=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(l)||E0||(E0=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),l==null||typeof l=="boolean"||l===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,l):typeof l!="number"||l===0||md.has(t)?t==="float"?e.cssFloat=l:(ve(l,t),e[t]=(""+l).trim()):e[t]=l+"px"}function lo(e,t,l){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,l!=null){if(t){var u={};if(l){for(var s in l)if(l.hasOwnProperty(s)&&!t.hasOwnProperty(s))for(var c=Qi[s]||[s],h=0;h<c.length;h++)u[c[h]]=s}for(var v in t)if(t.hasOwnProperty(v)&&(!l||l[v]!==t[v]))for(s=Qi[v]||[v],c=0;c<s.length;c++)u[s[c]]=v;v={};for(var S in t)for(s=Qi[S]||[S],c=0;c<s.length;c++)v[s[c]]=S;S={};for(var x in u)if(s=u[x],(c=v[x])&&s!==c&&(h=s+","+c,!S[h])){S[h]=!0,h=console;var N=t[s];h.error.call(h,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",N==null||typeof N=="boolean"||N===""?"Removing":"Updating",s,c)}}for(var Q in l)!l.hasOwnProperty(Q)||t!=null&&t.hasOwnProperty(Q)||(Q.indexOf("--")===0?e.setProperty(Q,""):Q==="float"?e.cssFloat="":e[Q]="");for(var k in t)x=t[k],t.hasOwnProperty(k)&&l[k]!==x&&Fr(e,k,x)}else for(u in t)t.hasOwnProperty(u)&&Fr(e,u,t[u])}function ri(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}}function ls(e){return hm.get(e)||e}function pu(e,t){if(Bu.call(Zi,t)&&Zi[t])return!0;if(mm.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=C0.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Zi[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Zi[t]=!0}if(_0.test(t)){if(e=t.toLowerCase(),e=C0.hasOwnProperty(e)?e:null,e==null)return Zi[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Zi[t]=!0)}return!0}function vu(e,t){var l=[],u;for(u in t)pu(e,u)||l.push(u);t=l.map(function(s){return"`"+s+"`"}).join(", "),l.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<l.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function Pr(e,t,l,u){if(Bu.call(sl,t)&&sl[t])return!0;var s=t.toLowerCase();if(s==="onfocusin"||s==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),sl[t]=!0;if(typeof l=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(u!=null){if(e=u.possibleRegistrationNames,u.registrationNameDependencies.hasOwnProperty(t))return!0;if(u=e.hasOwnProperty(s)?e[s]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,u),sl[t]=!0;if(vd.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),sl[t]=!0}else if(vd.test(t))return n.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),sl[t]=!0;if(a.test(t)||i.test(t))return!0;if(s==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),sl[t]=!0;if(s==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),sl[t]=!0;if(s==="is"&&l!==null&&l!==void 0&&typeof l!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),sl[t]=!0;if(typeof l=="number"&&isNaN(l))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),sl[t]=!0;if(Qs.hasOwnProperty(s)){if(s=Qs[s],s!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,s),sl[t]=!0}else if(t!==s)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,s),sl[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof l){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return s=t.toLowerCase().slice(0,5),s==="data-"||s==="aria-"?!0:(l?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',l,t,t,l,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',l,t,t,l,t,t,t),sl[t]=!0)}case"function":case"symbol":return sl[t]=!0,!1;case"string":if(l==="false"||l==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,t,l==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,l),sl[t]=!0}}return!0}function rc(e,t,l){var u=[],s;for(s in t)Pr(e,s,t[s],l)||u.push(s);t=u.map(function(c){return"`"+c+"`"}).join(", "),u.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<u.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function gu(e){return o.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Nl(e){var t=Xn(e);if(t&&(e=t.stateNode)){var l=e[Dl]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ua(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(ie(t,"name"),l=l.querySelectorAll('input[name="'+Qn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var u=l[t];if(u!==e&&u.form===e.form){var s=u[Dl]||null;if(!s)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ua(u,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<l.length;t++)u=l[t],u.form===e.form&&$t(u)}break e;case"textarea":Po(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&la(e,!!l.multiple,t,!1)}}}function as(e,t,l){if(y)return e(t,l);y=!0;try{var u=e(t);return u}finally{if(y=!1,(d!==null||g!==null)&&(Os(),d&&(t=d,e=g,g=d=null,Nl(t),e)))for(t=0;t<e.length;t++)Nl(e[t])}}function aa(e,t){var l=e.stateNode;if(l===null)return null;var u=l[Dl]||null;if(u===null)return null;l=u[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":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof l+"` type.");return l}function ia(){if(L)return L;var e,t=B,l=t.length,u,s="value"in P?P.value:P.textContent,c=s.length;for(e=0;e<l&&t[e]===s[e];e++);var h=l-e;for(u=1;u<=h&&t[l-u]===s[c-u];u++);return L=s.slice(e,1<u?1-u:void 0)}function yu(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 di(){return!0}function fc(){return!1}function sn(e){function t(l,u,s,c,h){this._reactName=l,this._targetInst=s,this.type=u,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(l=e[v],this[v]=l?l(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?di:fc,this.isPropagationStopped=fc,this}return Ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=di)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=di)},persist:function(){},isPersistent:di}),t}function is(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=I2[e])?!!t[e]:!1}function us(){return is}function _n(e,t){switch(e){case"keyup":return sT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Wb;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ka(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function os(e,t){switch(e){case"compositionend":return ka(t);case"keypress":return t.which!==Pb?null:(t1=!0,e1);case"textInput":return e=t.data,e===e1&&t1?null:e;default:return null}}function ao(e,t){if(pm)return e==="compositionend"||!vy&&_n(e,t)?(e=ia(),L=B=P=null,pm=!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 Fb&&t.locale!=="ko"?null:t.data;default:return null}}function ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rT[e.type]:t==="textarea"}function dc(e){if(!E)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function ss(e,t,l,u){d?g?g.push(u):g=[u]:d=u,t=$f(t,"onChange"),0<t.length&&(l=new Me("onChange","change",null,l,u),e.push({event:l,listeners:t}))}function io(e){Ni(e,0)}function hi(e){var t=Ra(e);if($t(t))return e}function hc(e,t){if(e==="change")return t}function tf(){R0&&(R0.detachEvent("onpropertychange",nf),D0=R0=null)}function nf(e){if(e.propertyName==="value"&&hi(D0)){var t=[];ss(t,D0,e,fi(e)),as(io,t)}}function Yd(e,t,l){e==="focusin"?(tf(),R0=t,D0=l,R0.attachEvent("onpropertychange",nf)):e==="focusout"&&tf()}function mc(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hi(D0)}function Vd(e,t){if(e==="click")return hi(t)}function Gd(e,t){if(e==="input"||e==="change")return hi(t)}function jd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function uo(e,t){if(Il(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),u=Object.keys(t);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var s=l[u];if(!Bu.call(t,s)||!Il(e[s],t[s]))return!1}return!0}function lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pc(e,t){var l=lf(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=t&&u>=t)return{node:l,offset:t-e};e=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=lf(l)}}function af(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?af(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Fu(e.document)}return t}function vc(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")}function of(e,t,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;yy||vm==null||vm!==Fu(u)||(u=vm,"selectionStart"in u&&vc(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),z0&&uo(z0,u)||(z0=u,u=$f(gy,"onSelect"),0<u.length&&(t=new Me("onSelect","select",null,t,l),e.push({event:t,listeners:u}),t.target=vm)))}function ua(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}function mi(e){if(by[e])return by[e];if(!gm[e])return e;var t=gm[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in l1)return by[e]=t[l];return e}function ml(e,t){s1.set(e,t),Da(t,[e])}function Zn(e,t){if(typeof e=="object"&&e!==null){var l=Ty.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Io(t)},Ty.set(e,t),t)}return{value:e,source:t,stack:Io(t)}}function oo(){for(var e=ym,t=Ey=ym=0;t<e;){var l=$i[t];$i[t++]=null;var u=$i[t];$i[t++]=null;var s=$i[t];$i[t++]=null;var c=$i[t];if($i[t++]=null,u!==null&&s!==null){var h=u.pending;h===null?s.next=s:(s.next=h.next,h.next=s),u.pending=s}c!==0&&sf(l,s,c)}}function cs(e,t,l,u){$i[ym++]=e,$i[ym++]=t,$i[ym++]=l,$i[ym++]=u,Ey|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function gc(e,t,l,u){return cs(e,t,l,u),rs(e)}function wn(e,t){return cs(e,null,null,t),rs(e)}function sf(e,t,l){e.lanes|=l;var u=e.alternate;u!==null&&(u.lanes|=l);for(var s=!1,c=e.return;c!==null;)c.childLanes|=l,u=c.alternate,u!==null&&(u.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&xy||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-Wn(l),e=c.hiddenUpdates,u=e[s],u===null?e[s]=[t]:u.push(t),t.lane=l|536870912),c):null}function rs(e){if(F0>wT)throw zd=F0=0,P0=Py=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");zd>HT&&(zd=0,P0=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Ka(e);for(var t=e,l=t.return;l!==null;)t.alternate===null&&(t.flags&4098)!==0&&Ka(e),t=l,l=t.return;return t.tag===3?t.stateNode:null}function pi(e){if(Ji===null)return e;var t=Ji(e);return t===void 0?e:t.current}function yc(e){if(Ji===null)return e;var t=Ji(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=pi(e.render),e.render!==t)?(t={$$typeof:Hu,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function cf(e,t){if(Ji===null)return!1;var l=e.elementType;t=t.type;var u=!1,s=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(u=!0);break;case 0:(typeof t=="function"||s===Jl)&&(u=!0);break;case 11:(s===Hu||s===Jl)&&(u=!0);break;case 14:case 15:(s===ad||s===Jl)&&(u=!0);break;default:return!1}return!!(u&&(e=Ji(l),e!==void 0&&e===Ji(t)))}function rf(e){Ji!==null&&typeof WeakSet=="function"&&(bm===null&&(bm=new WeakSet),bm.add(e))}function so(e,t,l){var u=e.alternate,s=e.child,c=e.sibling,h=e.tag,v=e.type,S=null;switch(h){case 0:case 15:case 1:S=v;break;case 11:S=v.render}if(Ji===null)throw Error("Expected resolveFamily to be set during hot reload.");var x=!1;v=!1,S!==null&&(S=Ji(S),S!==void 0&&(l.has(S)?v=!0:t.has(S)&&(h===1?v=!0:x=!0))),bm!==null&&(bm.has(e)||u!==null&&bm.has(u))&&(v=!0),v&&(e._debugNeedsRemount=!0),(v||x)&&(u=wn(e,2),u!==null&&It(u,e,2)),s===null||v||so(s,t,l),c!==null&&so(c,t,l)}function co(e,t,l,u){this.tag=e,this.key=l,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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,r1||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ll(e,t){var l=e.alternate;switch(l===null?(l=V(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l._debugOwner=e._debugOwner,l._debugStack=e._debugStack,l._debugTask=e._debugTask,l._debugHookTypes=e._debugHookTypes,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l.selfBaseDuration=e.selfBaseDuration,l.treeBaseDuration=e.treeBaseDuration,l._debugInfo=e._debugInfo,l._debugNeedsRemount=e._debugNeedsRemount,l.tag){case 0:case 15:l.type=pi(e.type);break;case 1:l.type=pi(e.type);break;case 11:l.type=yc(e.type)}return l}function Sc(e,t){e.flags&=65011714;var l=e.alternate;return l===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.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=l.selfBaseDuration,e.treeBaseDuration=l.treeBaseDuration),e}function fs(e,t,l,u,s,c){var h=0,v=e;if(typeof e=="function")bc(e)&&(h=1),v=pi(v);else if(typeof e=="string")h=D(),h=fr(e,l,h)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case s0:return t=V(31,l,t,s),t.elementType=s0,t.lanes=c,t;case Xe:return Ba(l.children,s,c,t);case hr:h=8,s|=Ol,s|=Vu;break;case mr:return e=l,u=s,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=V(12,e,t,u|cl),t.elementType=mr,t.lanes=c,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case pr:return t=V(13,l,t,s),t.elementType=pr,t.lanes=c,t;case wo:return t=V(19,l,t,s),t.elementType=wo,t.lanes=c,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case o0:case ba:h=10;break e;case Ph:h=9;break e;case Hu:h=11,v=yc(v);break e;case ad:h=14;break e;case Jl:h=16,v=null;break e}v="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(v+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?l="null":Ve(e)?l="array":e!==void 0&&e.$$typeof===Uo?(l="<"+(ze(e.type)||"Unknown")+" />",v=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,(h=u?at(u):null)&&(v+=`
1006
+
1007
+ Check the render method of \``+h+"`."),h=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+v)),v=null}return t=V(h,l,t,s),t.elementType=e,t.type=v,t.lanes=c,t._debugOwner=u,t}function ro(e,t,l){return t=fs(e.type,e.key,e.props,e._owner,t,l),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Ba(e,t,l,u){return e=V(7,e,u,t),e.lanes=l,e}function Na(e,t,l){return e=V(6,e,null,t),e.lanes=l,e}function Tc(e,t,l){return t=V(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vi(e,t){pl(),Sm[Tm++]=rg,Sm[Tm++]=cg,cg=e,rg=t}function ff(e,t,l){pl(),Ki[Ii++]=Zs,Ki[Ii++]=$s,Ki[Ii++]=yd,yd=e;var u=Zs;e=$s;var s=32-Wn(u)-1;u&=~(1<<s),l+=1;var c=32-Wn(t)+s;if(30<c){var h=s-s%5;c=(u&(1<<h)-1).toString(32),u>>=h,s-=h,Zs=1<<32-Wn(t)+s|l<<s|u,$s=c+e}else Zs=1<<c|l<<s|u,$s=e}function ds(e){pl(),e.return!==null&&(vi(e,1),ff(e,1,0))}function hs(e){for(;e===cg;)cg=Sm[--Tm],Sm[Tm]=null,rg=Sm[--Tm],Sm[Tm]=null;for(;e===yd;)yd=Ki[--Ii],Ki[Ii]=null,$s=Ki[--Ii],Ki[Ii]=null,Zs=Ki[--Ii],Ki[Ii]=null}function pl(){mt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function vl(e,t){if(e.return===null){if(Wi===null)Wi={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Wi.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Wi.distanceFromLeaf>t&&(Wi.distanceFromLeaf=t)}return Wi}var l=vl(e.return,t+1).children;return 0<l.length&&l[l.length-1].fiber===e?(l=l[l.length-1],l.distanceFromLeaf>t&&(l.distanceFromLeaf=t),l):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},l.push(t),t)}function xc(e,t){Js||(e=vl(e,0),e.serverProps=null,t!==null&&(t=jh(t),e.serverTail.push(t)))}function ql(e){var t="",l=Wi;throw l!==null&&(Wi=null,t=to(l)),bu(Zn(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
1008
+
1009
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
1010
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
1011
+ - Date formatting in a user's locale which doesn't match the server.
1012
+ - External changing data without sending a snapshot of it along with the HTML.
1013
+ - Invalid HTML tag nesting.
1014
+
1015
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
1016
+
1017
+ https://react.dev/link/hydration-mismatch`+t),e)),Cy}function Ec(e){var t=e.stateNode,l=e.type,u=e.memoizedProps;switch(t[Fn]=e,t[Dl]=u,Li(l,u),l){case"dialog":Pe("cancel",t),Pe("close",t);break;case"iframe":case"object":case"embed":Pe("load",t);break;case"video":case"audio":for(l=0;l<ev.length;l++)Pe(ev[l],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":za("input",u),Pe("invalid",t),Oa(t,u),Kr(t,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),na(t);break;case"option":ac(t,u);break;case"select":za("select",u),Pe("invalid",t),Pu(t,u);break;case"textarea":za("textarea",u),Pe("invalid",t),Bl(t,u),ic(t,u.value,u.defaultValue,u.children),na(t)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||u.suppressHydrationWarning===!0||Yp(t.textContent,l)?(u.popover!=null&&(Pe("beforetoggle",t),Pe("toggle",t)),u.onScroll!=null&&Pe("scroll",t),u.onScrollEnd!=null&&Pe("scrollend",t),u.onClick!=null&&(t.onclick=zu),t=!0):t=!1,t||ql(e)}function Cc(e){for(Wl=e.return;Wl;)switch(Wl.tag){case 5:case 13:Vo=!1;return;case 27:case 3:Vo=!0;return;default:Wl=Wl.return}}function gi(e){if(e!==Wl)return!1;if(!mt)return Cc(e),mt=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||qi(e.type,e.memoizedProps)),l=!l),l&&fn){for(l=fn;l;){var u=vl(e,0),s=jh(l);u.serverTail.push(s),l=s.type==="Suspense"?Jp(l):Ln(l.nextSibling)}ql(e)}if(Cc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");fn=Jp(e)}else t===27?(t=fn,Yi(e.type)?(e=fb,fb=null,fn=e):fn=t):fn=Wl?Ln(e.stateNode.nextSibling):null;return!0}function yi(){fn=Wl=null,Js=mt=!1}function _c(){var e=bd;return e!==null&&(ea===null?ea=e:ea.push.apply(ea,e),bd=null),e}function bu(e){bd===null?bd=[e]:bd.push(e)}function Ac(){var e=Wi;if(e!==null){Wi=null;for(var t=to(e);0<e.children.length;)e=e.children[0];ye(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
1018
+
1019
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
1020
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
1021
+ - Date formatting in a user's locale which doesn't match the server.
1022
+ - External changing data without sending a snapshot of it along with the HTML.
1023
+ - Invalid HTML tag nesting.
1024
+
1025
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
1026
+
1027
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function ms(){xm=fg=null,Em=!1}function La(e,t,l){Ee(_y,t._currentValue,e),t._currentValue=l,Ee(Ay,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==m1&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=m1}function oa(e,t){e._currentValue=_y.current;var l=Ay.current;Re(Ay,t),e._currentRenderer=l,Re(_y,t)}function Mc(e,t,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===l)break;e=e.return}e!==l&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Rc(e,t,l,u){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var h=s.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=s;for(var S=0;S<t.length;S++)if(v.context===t[S]){c.lanes|=l,v=c.alternate,v!==null&&(v.lanes|=l),Mc(c.return,l,e),u||(h=null);break e}c=v.next}}else if(s.tag===18){if(h=s.return,h===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");h.lanes|=l,c=h.alternate,c!==null&&(c.lanes|=l),Mc(h,l,e),h=null}else h=s.child;if(h!==null)h.return=s;else for(h=s;h!==null;){if(h===e){h=null;break}if(s=h.sibling,s!==null){s.return=h.return,h=s;break}h=h.return}s=h}}function cn(e,t,l,u){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var h=s.alternate;if(h===null)throw Error("Should have a current fiber. This is a bug in React.");if(h=h.memoizedProps,h!==null){var v=s.type;Il(s.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(s===gr.current){if(h=s.alternate,h===null)throw Error("Should have a current fiber. This is a bug in React.");h.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(av):e=[av])}s=s.return}e!==null&&Rc(t,e,l,u),t.flags|=262144}function qa(e){for(e=e.firstContext;e!==null;){if(!Il(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ya(e){fg=e,xm=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Et(e){return Em&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Dc(fg,e)}function fo(e,t){return fg===null&&Ya(e),Dc(e,t)}function Dc(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},xm===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");xm=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else xm=xm.next=t;return l}function ho(){return{controller:new yT,data:new Map,refCount:0}}function bi(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function Yl(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&bT(ST,function(){e.controller.abort()})}function gl(){var e=Sd;return Sd=0,e}function Va(e){var t=Sd;return Sd=e,t}function Si(e){var t=Sd;return Sd+=e,t}function ps(e){xa=Cm(),0>e.actualStartTime&&(e.actualStartTime=xa)}function sa(e){if(0<=xa){var t=Cm()-xa;e.actualDuration+=t,e.selfBaseDuration=t,xa=-1}}function Ti(e){if(0<=xa){var t=Cm()-xa;e.actualDuration+=t,xa=-1}}function ll(){if(0<=xa){var e=Cm()-xa;xa=-1,Sd+=e}}function yl(){xa=Cm()}function Vl(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function df(e,t){if(O0===null){var l=O0=[];My=0,Td=kp(),_m={status:"pending",value:void 0,then:function(u){l.push(u)}}}return My++,t.then(zc,zc),t}function zc(){if(--My===0&&O0!==null){_m!==null&&(_m.status="fulfilled");var e=O0;O0=null,Td=0,_m=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hf(e,t){var l=[],u={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){u.status="fulfilled",u.value=t;for(var s=0;s<l.length;s++)(0,l[s])(t)},function(s){for(u.status="rejected",u.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),u}function Oc(){var e=xd.current;return e!==null?e:Ut.pooledCache}function vs(e,t){t===null?Ee(xd,xd.current,e):Ee(xd,t.pool,e)}function mf(){var e=Oc();return e===null?null:{parent:Vn._currentValue,pool:e}}function Uc(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function wc(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Su(){}function al(e,t,l){G.actQueue!==null&&(G.didUsePromise=!0);var u=e.thenables;switch(l=u[l],l===void 0?u.push(t):l!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Su,Su),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$n(e),e;default:if(typeof t.status=="string")t.then(Su,Su);else{if(e=Ut,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=s}},function(s){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$n(e),e}throw q0=t,gg=!0,L0}}function Hc(){if(q0===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=q0;return q0=null,gg=!1,e}function $n(e){if(e===L0||e===vg)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Hn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ga(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 Gl(e){return{lane:e,tag:b1,payload:null,callback:null,next:null}}function De(e,t,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,zy===u&&!x1){var s=me(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
1028
+
1029
+ Please update the following component: %s`,s),x1=!0}return(Tt&Pl)!==Fa?(s=u.pending,s===null?t.next=t:(t.next=s.next,s.next=t),u.pending=t,t=rs(e),sf(e,null,l),t):(cs(e,u,t,l),rs(e))}function mo(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var u=t.lanes;u&=e.pendingLanes,l|=u,t.lanes=l,zt(e,l)}}function kc(e,t){var l=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var s=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?s=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?s=c=t:c=c.next=t}else s=c=t;l={baseState:u.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:u.shared,callbacks:u.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}function xi(){if(Oy){var e=_m;if(e!==null)throw e}}function Bc(e,t,l,u){Oy=!1;var s=e.updateQueue;Mr=!1,zy=s.shared;var c=s.firstBaseUpdate,h=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var S=v,x=S.next;S.next=null,h===null?c=x:h.next=x,h=S;var N=e.alternate;N!==null&&(N=N.updateQueue,v=N.lastBaseUpdate,v!==h&&(v===null?N.firstBaseUpdate=x:v.next=x,N.lastBaseUpdate=S))}if(c!==null){var Q=s.baseState;h=0,N=x=S=null,v=c;do{var k=v.lane&-536870913,$=k!==v.lane;if($?(it&k)===k:(u&k)===k){k!==0&&k===Td&&(Oy=!0),N!==null&&(N=N.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{k=e;var Se=v,Ne=t,wt=l;switch(Se.tag){case S1:if(Se=Se.payload,typeof Se=="function"){Em=!0;var ot=Se.call(wt,Q,Ne);if(k.mode&Ol){$e(!0);try{Se.call(wt,Q,Ne)}finally{$e(!1)}}Em=!1,Q=ot;break e}Q=Se;break e;case Dy:k.flags=k.flags&-65537|128;case b1:if(ot=Se.payload,typeof ot=="function"){if(Em=!0,Se=ot.call(wt,Q,Ne),k.mode&Ol){$e(!0);try{ot.call(wt,Q,Ne)}finally{$e(!1)}}Em=!1}else Se=ot;if(Se==null)break e;Q=Ke({},Q,Se);break e;case T1:Mr=!0}}k=v.callback,k!==null&&(e.flags|=64,$&&(e.flags|=8192),$=s.callbacks,$===null?s.callbacks=[k]:$.push(k))}else $={lane:k,tag:v.tag,payload:v.payload,callback:v.callback,next:null},N===null?(x=N=$,S=Q):N=N.next=$,h|=k;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;$=v,v=$.next,$.next=null,s.lastBaseUpdate=$,s.shared.pending=null}}while(!0);N===null&&(S=Q),s.baseState=S,s.firstBaseUpdate=x,s.lastBaseUpdate=N,c===null&&(s.shared.lanes=0),Or|=h,e.lanes=h,e.memoizedState=Q}zy=null}function pf(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Nc(e,t){var l=e.shared.hiddenCallbacks;if(l!==null)for(e.shared.hiddenCallbacks=null,e=0;e<l.length;e++)pf(l[e],t)}function xv(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)pf(l[e],t)}function bl(e,t){var l=Xo;Ee(yg,l,e),Ee(Am,t,e),Xo=l|t.baseLanes}function vf(e){Ee(yg,Xo,e),Ee(Am,Am.current,e)}function ja(e){Xo=yg.current,Re(Am,e),Re(yg,e)}function Ie(){var e=X;eu===null?eu=[e]:eu.push(e)}function ne(){var e=X;if(eu!==null&&(Is++,eu[Is]!==e)){var t=me(Ge);if(!E1.has(t)&&(E1.add(t),eu!==null)){for(var l="",u=0;u<=Is;u++){var s=eu[u],c=u===Is?e:s;for(s=u+1+". "+s;30>s.length;)s+=" ";s+=c+`
1030
+ `,l+=s}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
1031
+
1032
+ Previous render Next render
1033
+ ------------------------------------------------------
1034
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1035
+ `,t,l)}}}function ca(e){e==null||Ve(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",X,typeof e)}function Lc(){var e=me(Ge);_1.has(e)||(_1.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function jt(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1036
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
1037
+ 2. You might be breaking the Rules of Hooks
1038
+ 3. You might have more than one copy of React in the same app
1039
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function po(e,t){if(V0)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",X),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
1040
+
1041
+ Previous: %s
1042
+ Incoming: %s`,X,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var l=0;l<t.length&&l<e.length;l++)if(!Il(e[l],t[l]))return!1;return!0}function vo(e,t,l,u,s,c){Rr=c,Ge=t,eu=e!==null?e._debugHookTypes:null,Is=-1,V0=e!==null&&e.type!==t.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(c=me(Ge),Uy.has(c)||(Uy.add(c),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",c===null?"An unknown Component":"<"+c+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?Hy:eu!==null?A1:wy,Cd=c=(t.mode&Ol)!==qt;var h=ky(l,u,s);if(Cd=!1,Rm&&(h=qc(t,l,u,s)),c){$e(!0);try{h=qc(t,l,u,s)}finally{$e(!1)}}return gf(e,t),h}function gf(e,t){t._debugHookTypes=eu,t.dependencies===null?Ks!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Ks}):t.dependencies._debugThenableState=Ks,G.H=Tg;var l=Dt!==null&&Dt.next!==null;if(Rr=0,eu=X=On=Dt=Ge=null,Is=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),bg=!1,Y0=0,Ks=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Pn||(e=e.dependencies,e!==null&&qa(e)&&(Pn=!0)),gg?(gg=!1,e=!0):e=!1,e&&(t=me(t)||"Unknown",C1.has(t)||Uy.has(t)||(C1.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function qc(e,t,l,u){Ge=e;var s=0;do{if(Rm&&(Ks=null),Y0=0,Rm=!1,s>=xT)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(s+=1,V0=!1,On=Dt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}Is=-1,G.H=M1,c=ky(t,l,u)}while(Rm);return c}function ra(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?gs(t):t,e=e.useState()[0],(Dt!==null?Dt.memoizedState:null)!==e&&(Ge.flags|=1024),t}function Sl(){var e=Sg!==0;return Sg=0,e}function Tu(e,t,l){t.updateQueue=e.updateQueue,t.flags=(t.mode&Vu)!==qt?t.flags&-402655237:t.flags&-2053,e.lanes&=~l}function Xa(e){if(bg){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bg=!1}Rr=0,eu=On=Dt=Ge=null,Is=-1,X=null,Rm=!1,Y0=Sg=0,Ks=null}function Jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return On===null?Ge.memoizedState=On=e:On=On.next=e,On}function ut(){if(Dt===null){var e=Ge.alternate;e=e!==null?e.memoizedState:null}else e=Dt.next;var t=On===null?Ge.memoizedState:On.next;if(t!==null)On=t,Dt=e;else{if(e===null)throw Ge.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Dt=e,e={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},On===null?Ge.memoizedState=On=e:On=On.next=e}return On}function Xd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gs(e){var t=Y0;return Y0+=1,Ks===null&&(Ks=Uc()),e=al(Ks,e,t),t=Ge,(On===null?t.memoizedState:On.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?Hy:wy),e}function Ei(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gs(e);if(e.$$typeof===ba)return Et(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function an(e){var t=null,l=Ge.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var u=Ge.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Xd(),Ge.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0||V0)for(l=t.data[t.index]=Array(e),u=0;u<e;u++)l[u]=Wv;else l.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",l.length,e);return t.index++,l}function ft(e,t){return typeof t=="function"?t(e):t}function ct(e,t,l){var u=Jt();if(l!==void 0){var s=l(t);if(Cd){$e(!0);try{l(t)}finally{$e(!1)}}}else s=t;return u.memoizedState=u.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},u.queue=e,e=e.dispatch=ap.bind(null,Ge,e),[u.memoizedState,e]}function fa(e){var t=ut();return da(t,Dt,e)}function da(e,t,l){var u=e.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=l;var s=e.baseQueue,c=u.pending;if(c!==null){if(s!==null){var h=s.next;s.next=c.next,c.next=h}t.baseQueue!==s&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=s=c,u.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var v=h=null,S=null,x=t,N=!1;do{var Q=x.lane&-536870913;if(Q!==x.lane?(it&Q)===Q:(Rr&Q)===Q){var k=x.revertLane;if(k===0)S!==null&&(S=S.next={lane:0,revertLane:0,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),Q===Td&&(N=!0);else if((Rr&k)===k){x=x.next,k===Td&&(N=!0);continue}else Q={lane:0,revertLane:x.revertLane,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},S===null?(v=S=Q,h=c):S=S.next=Q,Ge.lanes|=k,Or|=k;Q=x.action,Cd&&l(c,Q),c=x.hasEagerState?x.eagerState:l(c,Q)}else k={lane:Q,revertLane:x.revertLane,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},S===null?(v=S=k,h=c):S=S.next=k,Ge.lanes|=Q,Or|=Q;x=x.next}while(x!==null&&x!==t);if(S===null?h=c:S.next=v,!Il(c,e.memoizedState)&&(Pn=!0,N&&(l=_m,l!==null)))throw l;e.memoizedState=c,e.baseState=h,e.baseQueue=S,u.lastRenderedState=c}return s===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function ys(e){var t=ut(),l=t.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=e;var u=l.dispatch,s=l.pending,c=t.memoizedState;if(s!==null){l.pending=null;var h=s=s.next;do c=e(c,h.action),h=h.next;while(h!==s);Il(c,t.memoizedState)||(Pn=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,u]}function xu(e,t,l){var u=Ge,s=Jt();if(mt){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var c=l();Mm||c===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Mm=!0)}else{if(c=t(),Mm||(l=t(),Il(c,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Mm=!0)),Ut===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(it&124)!==0||Im(u,t,c)}return s.memoizedState=c,l={value:c,getSnapshot:t},s.queue=l,$d(Vc.bind(null,u,l,e),[e]),u.flags|=2048,_i(Pi|Gn,yo(),Yc.bind(null,u,l,c,t),null),c}function yf(e,t,l){var u=Ge,s=ut(),c=mt;if(c){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");l=l()}else if(l=t(),!Mm){var h=t();Il(l,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Mm=!0)}(h=!Il((Dt||s).memoizedState,l))&&(s.memoizedState=l,Pn=!0),s=s.queue;var v=Vc.bind(null,u,s,e);if(vn(2048,Gn,v,[e]),s.getSnapshot!==t||h||On!==null&&On.memoizedState.tag&Pi){if(u.flags|=2048,_i(Pi|Gn,yo(),Yc.bind(null,u,s,l,t),null),Ut===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");c||(Rr&124)!==0||Im(u,t,l)}return l}function Im(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Ge.updateQueue,t===null?(t=Xd(),Ge.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Yc(e,t,l,u){t.value=l,t.getSnapshot=u,Wm(t)&&Gc(e)}function Vc(e,t,l){return l(function(){Wm(t)&&Gc(e)})}function Wm(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Il(e,l)}catch{return!0}}function Gc(e){var t=wn(e,2);t!==null&&It(t,e,2)}function bf(e){var t=Jt();if(typeof e=="function"){var l=e;if(e=l(),Cd){$e(!0);try{l()}finally{$e(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ft,lastRenderedState:e},t}function Eu(e){e=bf(e);var t=e.queue,l=Zc.bind(null,Ge,t);return t.dispatch=l,[e.memoizedState,l]}function Qa(e){var t=Jt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=nh.bind(null,Ge,!0,l),l.dispatch=t,[e,t]}function Cu(e,t){var l=ut();return Ci(l,Dt,e,t)}function Ci(e,t,l,u){return e.baseState=l,da(e,Dt,typeof u=="function"?u:ft)}function Qd(e,t){var l=ut();return Dt!==null?Ci(l,Dt,e,t):(l.baseState=e,[e,l.queue.dispatch])}function Fm(e,t,l,u,s){if(Af(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};G.T!==null?l(!0):c.isTransition=!1,u(c),l=t.pending,l===null?(c.next=t.pending=c,jc(t,c)):(c.next=l.next,t.pending=l.next=c)}}function jc(e,t){var l=t.action,u=t.payload,s=e.state;if(t.isTransition){var c=G.T,h={};G.T=h,G.T._updatedFibers=new Set;try{var v=l(s,u),S=G.S;S!==null&&S(h,v),Sf(e,t,v)}catch(x){An(e,t,x)}finally{G.T=c,c===null&&h._updatedFibers&&(e=h._updatedFibers.size,h._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{h=l(s,u),Sf(e,t,h)}catch(x){An(e,t,x)}}function Sf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(l.then(function(u){go(e,t,u)},function(u){return An(e,t,u)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):go(e,t,l)}function go(e,t,l){t.status="fulfilled",t.value=l,Tf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,jc(e,l)))}function An(e,t,l){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=l,Tf(t),t=t.next;while(t!==u)}e.action=null}function Tf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Pm(e,t){return t}function Xc(e,t){if(mt){var l=Ut.formState;if(l!==null){e:{var u=Ge;if(mt){if(fn){t:{for(var s=fn,c=Vo;s.nodeType!==8;){if(!c){s=null;break t}if(s=Ln(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c===ob||c===_S?s:null}if(s){fn=Ln(s.nextSibling),u=s.data===ob;break e}}ql(u)}u=!1}u&&(t=l[0])}}return l=Jt(),l.memoizedState=l.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pm,lastRenderedState:t},l.queue=u,l=Zc.bind(null,Ge,u),u.dispatch=l,u=bf(!1),c=nh.bind(null,Ge,!1,u.queue),u=Jt(),s={state:t,dispatch:null,action:e,pending:null},u.queue=s,l=Fm.bind(null,Ge,s,c,l),s.dispatch=l,u.memoizedState=e,[t,l,!1]}function Zd(e){var t=ut();return Ev(t,Dt,e)}function Ev(e,t,l){if(t=da(e,t,Pm)[0],e=fa(ft)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=gs(t)}catch(h){throw h===L0?vg:h}else u=t;t=ut();var s=t.queue,c=s.dispatch;return l!==t.memoizedState&&(Ge.flags|=2048,_i(Pi|Gn,yo(),pn.bind(null,s,l),null)),[u,c,e]}function pn(e,t){e.action=t}function Qc(e){var t=ut(),l=Dt;if(l!==null)return Ev(t,l,e);ut(),t=t.memoizedState,l=ut();var u=l.queue.dispatch;return l.memoizedState=e,[t,u,!1]}function _i(e,t,l,u){return e={tag:e,create:l,deps:u,inst:t,next:null},t=Ge.updateQueue,t===null&&(t=Xd(),Ge.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,t.lastEffect=e),e}function yo(){return{destroy:void 0,resource:void 0}}function xf(e){var t=Jt();return e={current:e},t.memoizedState=e}function ha(e,t,l,u){var s=Jt();u=u===void 0?null:u,Ge.flags|=e,s.memoizedState=_i(Pi|t,yo(),l,u)}function vn(e,t,l,u){var s=ut();u=u===void 0?null:u;var c=s.memoizedState.inst;Dt!==null&&u!==null&&po(u,Dt.memoizedState.deps)?s.memoizedState=_i(t,c,l,u):(Ge.flags|=e,s.memoizedState=_i(Pi|t,c,l,u))}function $d(e,t){(Ge.mode&Vu)!==qt&&(Ge.mode&c1)===qt?ha(276826112,Gn,e,t):ha(8390656,Gn,e,t)}function Jd(e,t){var l=4194308;return(Ge.mode&Vu)!==qt&&(l|=134217728),ha(l,rl,e,t)}function Cv(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Kd(e,t,l){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),l=l!=null?l.concat([e]):null;var u=4194308;(Ge.mode&Vu)!==qt&&(u|=134217728),ha(u,rl,Cv.bind(null,t,e),l)}function Ai(e,t,l){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),l=l!=null?l.concat([e]):null,vn(4,rl,Cv.bind(null,t,e),l)}function Ef(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e}function bs(e,t){var l=ut();t=t===void 0?null:t;var u=l.memoizedState;return t!==null&&po(t,u[1])?u[0]:(l.memoizedState=[e,t],e)}function Id(e,t){var l=Jt();t=t===void 0?null:t;var u=e();if(Cd){$e(!0);try{e()}finally{$e(!1)}}return l.memoizedState=[u,t],u}function bo(e,t){var l=ut();t=t===void 0?null:t;var u=l.memoizedState;if(t!==null&&po(t,u[1]))return u[0];if(u=e(),Cd){$e(!0);try{e()}finally{$e(!1)}}return l.memoizedState=[u,t],u}function Wd(e,t){var l=Jt();return Pd(l,e,t)}function Cf(e,t){var l=ut();return _f(l,Dt.memoizedState,e,t)}function Fd(e,t){var l=ut();return Dt===null?Pd(l,e,t):_f(l,Dt.memoizedState,e,t)}function Pd(e,t,l){return l===void 0||(Rr&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=Hv(),Ge.lanes|=e,Or|=e,l)}function _f(e,t,l,u){return Il(l,t)?l:Am.current!==null?(e=Pd(e,l,u),Il(e,t)||(Pn=!0),e):(Rr&42)===0?(Pn=!0,e.memoizedState=l):(e=Hv(),Ge.lanes|=e,Or|=e,t)}function ep(e,t,l,u,s){var c=Be.p;Be.p=c!==0&&c<Wa?c:Wa;var h=G.T,v={};G.T=v,nh(e,!1,t,l),v._updatedFibers=new Set;try{var S=s(),x=G.S;if(x!==null&&x(v,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var N=hf(S,u);_u(e,t,N,Cl(e))}else _u(e,t,u,Cl(e))}catch(Q){_u(e,t,{then:function(){},status:"rejected",reason:Q},Cl(e))}finally{Be.p=c,G.T=h,h===null&&v._updatedFibers&&(e=v._updatedFibers.size,v._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Ss(e,t,l,u){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var s=tp(e).queue;ep(e,s,t,kd,l===null?ee:function(){return np(e),l(u)})}function tp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:kd,baseState:kd,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ft,lastRenderedState:kd},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ft,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function np(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=tp(e).next.queue;_u(e,t,{},Cl(e))}function Mi(){var e=bf(!1);return e=ep.bind(null,Ge,e.queue,!0,!1),Jt().memoizedState=e,[!1,e]}function eh(){var e=fa(ft)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:gs(e),t]}function th(){var e=ys(ft)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:gs(e),t]}function Tl(){return Et(av)}function Ri(){var e=Jt(),t=Ut.identifierPrefix;if(mt){var l=$s,u=Zs;l=(u&~(1<<32-Wn(u)-1)).toString(32)+l,t="«"+t+"R"+l,l=Sg++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=TT++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t}function Ts(){return Jt().memoizedState=lp.bind(null,Ge)}function lp(e,t){for(var l=e.return;l!==null;){switch(l.tag){case 24:case 3:var u=Cl(l);e=Gl(u);var s=De(l,e,u);s!==null&&(It(s,l,u),mo(s,l,u)),l=ho(),t!=null&&s!==null&&console.error("The seed argument is not enabled outside experimental channels."),e.payload={cache:l};return}l=l.return}}function ap(e,t,l){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Cl(e);var s={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};Af(e)?xs(t,s):(s=gc(e,t,s,u),s!==null&&(It(s,e,u),Mf(s,t,u))),wl(e,u)}function Zc(e,t,l){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Cl(e),_u(e,t,l,u),wl(e,u)}function _u(e,t,l,u){var s={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Af(e))xs(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null)){var h=G.H;G.H=ju;try{var v=t.lastRenderedState,S=c(v,l);if(s.hasEagerState=!0,s.eagerState=S,Il(S,v))return cs(e,t,s,0),Ut===null&&oo(),!1}catch{}finally{G.H=h}}if(l=gc(e,t,s,u),l!==null)return It(l,e,u),Mf(l,t,u),!0}return!1}function nh(e,t,l,u){if(G.T===null&&Td===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),u={lane:2,revertLane:kp(),action:u,hasEagerState:!1,eagerState:null,next:null},Af(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=gc(e,l,u,2),t!==null&&It(t,e,2);wl(e,2)}function Af(e){var t=e.alternate;return e===Ge||t!==null&&t===Ge}function xs(e,t){Rm=bg=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Mf(e,t,l){if((l&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,l|=u,t.lanes=l,zt(e,l)}}function Mn(e){var t=Fe;return e!=null&&(Fe=t===null?e:t.concat(e)),t}function $c(e,t,l){for(var u=Object.keys(e.props),s=0;s<u.length;s++){var c=u[s];if(c!=="children"&&c!=="key"){t===null&&(t=ro(e,l.mode,0),t._debugInfo=Fe,t.return=l),ye(t,function(h){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",h)},c);break}}}function Jc(e){var t=G0;return G0+=1,Dm===null&&(Dm=Uc()),al(Dm,e,t)}function ma(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function je(e,t){throw t.$$typeof===ld?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
1043
+ - Multiple copies of the "react" package is used.
1044
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
1045
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function gt(e,t){var l=me(e)||"Component";G1[l]||(G1[l]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
1046
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
1047
+ <%s>{%s}</%s>`,t,t,l,t,l))}function Xt(e,t){var l=me(e)||"Component";j1[l]||(j1[l]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
1048
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
1049
+ <%s>%s</%s>`,l,t,l))}function Rf(e){function t(_,A){if(e){var R=_.deletions;R===null?(_.deletions=[A],_.flags|=16):R.push(A)}}function l(_,A){if(!e)return null;for(;A!==null;)t(_,A),A=A.sibling;return null}function u(_){for(var A=new Map;_!==null;)_.key!==null?A.set(_.key,_):A.set(_.index,_),_=_.sibling;return A}function s(_,A){return _=Ll(_,A),_.index=0,_.sibling=null,_}function c(_,A,R){return _.index=R,e?(R=_.alternate,R!==null?(R=R.index,R<A?(_.flags|=67108866,A):R):(_.flags|=67108866,A)):(_.flags|=1048576,A)}function h(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function v(_,A,R,J){return A===null||A.tag!==6?(A=Na(R,_.mode,J),A.return=_,A._debugOwner=_,A._debugTask=_._debugTask,A._debugInfo=Fe,A):(A=s(A,R),A.return=_,A._debugInfo=Fe,A)}function S(_,A,R,J){var ce=R.type;return ce===Xe?(A=N(_,A,R.props.children,J,R.key),$c(R,A,_),A):A!==null&&(A.elementType===ce||cf(A,R)||typeof ce=="object"&&ce!==null&&ce.$$typeof===Jl&&Dr(ce)===A.type)?(A=s(A,R.props),ma(A,R),A.return=_,A._debugOwner=R._owner,A._debugInfo=Fe,A):(A=ro(R,_.mode,J),ma(A,R),A.return=_,A._debugInfo=Fe,A)}function x(_,A,R,J){return A===null||A.tag!==4||A.stateNode.containerInfo!==R.containerInfo||A.stateNode.implementation!==R.implementation?(A=Tc(R,_.mode,J),A.return=_,A._debugInfo=Fe,A):(A=s(A,R.children||[]),A.return=_,A._debugInfo=Fe,A)}function N(_,A,R,J,ce){return A===null||A.tag!==7?(A=Ba(R,_.mode,J,ce),A.return=_,A._debugOwner=_,A._debugTask=_._debugTask,A._debugInfo=Fe,A):(A=s(A,R),A.return=_,A._debugInfo=Fe,A)}function Q(_,A,R){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Na(""+A,_.mode,R),A.return=_,A._debugOwner=_,A._debugTask=_._debugTask,A._debugInfo=Fe,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Uo:return R=ro(A,_.mode,R),ma(R,A),R.return=_,_=Mn(A._debugInfo),R._debugInfo=Fe,Fe=_,R;case Vs:return A=Tc(A,_.mode,R),A.return=_,A._debugInfo=Fe,A;case Jl:var J=Mn(A._debugInfo);return A=Dr(A),_=Q(_,A,R),Fe=J,_}if(Ve(A)||qe(A))return R=Ba(A,_.mode,R,null),R.return=_,R._debugOwner=_,R._debugTask=_._debugTask,_=Mn(A._debugInfo),R._debugInfo=Fe,Fe=_,R;if(typeof A.then=="function")return J=Mn(A._debugInfo),_=Q(_,Jc(A),R),Fe=J,_;if(A.$$typeof===ba)return Q(_,fo(_,A),R);je(_,A)}return typeof A=="function"&&gt(_,A),typeof A=="symbol"&&Xt(_,A),null}function k(_,A,R,J){var ce=A!==null?A.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ce!==null?null:v(_,A,""+R,J);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Uo:return R.key===ce?(ce=Mn(R._debugInfo),_=S(_,A,R,J),Fe=ce,_):null;case Vs:return R.key===ce?x(_,A,R,J):null;case Jl:return ce=Mn(R._debugInfo),R=Dr(R),_=k(_,A,R,J),Fe=ce,_}if(Ve(R)||qe(R))return ce!==null?null:(ce=Mn(R._debugInfo),_=N(_,A,R,J,null),Fe=ce,_);if(typeof R.then=="function")return ce=Mn(R._debugInfo),_=k(_,A,Jc(R),J),Fe=ce,_;if(R.$$typeof===ba)return k(_,A,fo(_,R),J);je(_,R)}return typeof R=="function"&&gt(_,R),typeof R=="symbol"&&Xt(_,R),null}function $(_,A,R,J,ce){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return _=_.get(R)||null,v(A,_,""+J,ce);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case Uo:return R=_.get(J.key===null?R:J.key)||null,_=Mn(J._debugInfo),A=S(A,R,J,ce),Fe=_,A;case Vs:return _=_.get(J.key===null?R:J.key)||null,x(A,_,J,ce);case Jl:var Qe=Mn(J._debugInfo);return J=Dr(J),A=$(_,A,R,J,ce),Fe=Qe,A}if(Ve(J)||qe(J))return R=_.get(R)||null,_=Mn(J._debugInfo),A=N(A,R,J,ce,null),Fe=_,A;if(typeof J.then=="function")return Qe=Mn(J._debugInfo),A=$(_,A,R,Jc(J),ce),Fe=Qe,A;if(J.$$typeof===ba)return $(_,A,R,fo(A,J),ce);je(A,J)}return typeof J=="function"&&gt(A,J),typeof J=="symbol"&&Xt(A,J),null}function Se(_,A,R,J){if(typeof R!="object"||R===null)return J;switch(R.$$typeof){case Uo:case Vs:j(_,A,R);var ce=R.key;if(typeof ce!="string")break;if(J===null){J=new Set,J.add(ce);break}if(!J.has(ce)){J.add(ce);break}ye(A,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ce)});break;case Jl:R=Dr(R),Se(_,A,R,J)}return J}function Ne(_,A,R,J){for(var ce=null,Qe=null,Te=null,Ze=A,Je=A=0,Yt=null;Ze!==null&&Je<R.length;Je++){Ze.index>Je?(Yt=Ze,Ze=null):Yt=Ze.sibling;var Sn=k(_,Ze,R[Je],J);if(Sn===null){Ze===null&&(Ze=Yt);break}ce=Se(_,Sn,R[Je],ce),e&&Ze&&Sn.alternate===null&&t(_,Ze),A=c(Sn,A,Je),Te===null?Qe=Sn:Te.sibling=Sn,Te=Sn,Ze=Yt}if(Je===R.length)return l(_,Ze),mt&&vi(_,Je),Qe;if(Ze===null){for(;Je<R.length;Je++)Ze=Q(_,R[Je],J),Ze!==null&&(ce=Se(_,Ze,R[Je],ce),A=c(Ze,A,Je),Te===null?Qe=Ze:Te.sibling=Ze,Te=Ze);return mt&&vi(_,Je),Qe}for(Ze=u(Ze);Je<R.length;Je++)Yt=$(Ze,_,Je,R[Je],J),Yt!==null&&(ce=Se(_,Yt,R[Je],ce),e&&Yt.alternate!==null&&Ze.delete(Yt.key===null?Je:Yt.key),A=c(Yt,A,Je),Te===null?Qe=Yt:Te.sibling=Yt,Te=Yt);return e&&Ze.forEach(function(nc){return t(_,nc)}),mt&&vi(_,Je),Qe}function wt(_,A,R,J){if(R==null)throw Error("An iterable object provided no iterator.");for(var ce=null,Qe=null,Te=A,Ze=A=0,Je=null,Yt=null,Sn=R.next();Te!==null&&!Sn.done;Ze++,Sn=R.next()){Te.index>Ze?(Je=Te,Te=null):Je=Te.sibling;var nc=k(_,Te,Sn.value,J);if(nc===null){Te===null&&(Te=Je);break}Yt=Se(_,nc,Sn.value,Yt),e&&Te&&nc.alternate===null&&t(_,Te),A=c(nc,A,Ze),Qe===null?ce=nc:Qe.sibling=nc,Qe=nc,Te=Je}if(Sn.done)return l(_,Te),mt&&vi(_,Ze),ce;if(Te===null){for(;!Sn.done;Ze++,Sn=R.next())Te=Q(_,Sn.value,J),Te!==null&&(Yt=Se(_,Te,Sn.value,Yt),A=c(Te,A,Ze),Qe===null?ce=Te:Qe.sibling=Te,Qe=Te);return mt&&vi(_,Ze),ce}for(Te=u(Te);!Sn.done;Ze++,Sn=R.next())Je=$(Te,_,Ze,Sn.value,J),Je!==null&&(Yt=Se(_,Je,Sn.value,Yt),e&&Je.alternate!==null&&Te.delete(Je.key===null?Ze:Je.key),A=c(Je,A,Ze),Qe===null?ce=Je:Qe.sibling=Je,Qe=Je);return e&&Te.forEach(function(JT){return t(_,JT)}),mt&&vi(_,Ze),ce}function ot(_,A,R,J){if(typeof R=="object"&&R!==null&&R.type===Xe&&R.key===null&&($c(R,null,_),R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case Uo:var ce=Mn(R._debugInfo);e:{for(var Qe=R.key;A!==null;){if(A.key===Qe){if(Qe=R.type,Qe===Xe){if(A.tag===7){l(_,A.sibling),J=s(A,R.props.children),J.return=_,J._debugOwner=R._owner,J._debugInfo=Fe,$c(R,J,_),_=J;break e}}else if(A.elementType===Qe||cf(A,R)||typeof Qe=="object"&&Qe!==null&&Qe.$$typeof===Jl&&Dr(Qe)===A.type){l(_,A.sibling),J=s(A,R.props),ma(J,R),J.return=_,J._debugOwner=R._owner,J._debugInfo=Fe,_=J;break e}l(_,A);break}else t(_,A);A=A.sibling}R.type===Xe?(J=Ba(R.props.children,_.mode,J,R.key),J.return=_,J._debugOwner=_,J._debugTask=_._debugTask,J._debugInfo=Fe,$c(R,J,_),_=J):(J=ro(R,_.mode,J),ma(J,R),J.return=_,J._debugInfo=Fe,_=J)}return _=h(_),Fe=ce,_;case Vs:e:{for(ce=R,R=ce.key;A!==null;){if(A.key===R)if(A.tag===4&&A.stateNode.containerInfo===ce.containerInfo&&A.stateNode.implementation===ce.implementation){l(_,A.sibling),J=s(A,ce.children||[]),J.return=_,_=J;break e}else{l(_,A);break}else t(_,A);A=A.sibling}J=Tc(ce,_.mode,J),J.return=_,_=J}return h(_);case Jl:return ce=Mn(R._debugInfo),R=Dr(R),_=ot(_,A,R,J),Fe=ce,_}if(Ve(R))return ce=Mn(R._debugInfo),_=Ne(_,A,R,J),Fe=ce,_;if(qe(R)){if(ce=Mn(R._debugInfo),Qe=qe(R),typeof Qe!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Te=Qe.call(R);return Te===R?(_.tag!==0||Object.prototype.toString.call(_.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Te)!=="[object Generator]")&&(Y1||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Y1=!0):R.entries!==Qe||Ny||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ny=!0),_=wt(_,A,Te,J),Fe=ce,_}if(typeof R.then=="function")return ce=Mn(R._debugInfo),_=ot(_,A,Jc(R),J),Fe=ce,_;if(R.$$typeof===ba)return ot(_,A,fo(_,R),J);je(_,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(ce=""+R,A!==null&&A.tag===6?(l(_,A.sibling),J=s(A,ce),J.return=_,_=J):(l(_,A),J=Na(ce,_.mode,J),J.return=_,J._debugOwner=_,J._debugTask=_._debugTask,J._debugInfo=Fe,_=J),h(_)):(typeof R=="function"&&gt(_,R),typeof R=="symbol"&&Xt(_,R),l(_,A))}return function(_,A,R,J){var ce=Fe;Fe=null;try{G0=0;var Qe=ot(_,A,R,J);return Dm=null,Qe}catch(Yt){if(Yt===L0||Yt===vg)throw Yt;var Te=V(29,Yt,null,_.mode);Te.lanes=J,Te.return=_;var Ze=Te._debugInfo=Fe;if(Te._debugOwner=_._debugOwner,Te._debugTask=_._debugTask,Ze!=null){for(var Je=Ze.length-1;0<=Je;Je--)if(typeof Ze[Je].stack=="string"){Te._debugOwner=Ze[Je],Te._debugTask=Ze[Je].debugTask;break}}return Te}finally{Fe=ce}}}function jl(e){var t=e.alternate;Ee(jn,jn.current&Om,e),Ee(tu,e,e),jo===null&&(t===null||Am.current!==null||t.memoizedState!==null)&&(jo=e)}function So(e){if(e.tag===22){if(Ee(jn,jn.current,e),Ee(tu,e,e),jo===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(jo=e)}}else Za(e)}function Za(e){Ee(jn,jn.current,e),Ee(tu,tu.current,e)}function Xl(e){Re(tu,e),jo===e&&(jo=null),Re(jn,e)}function Au(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data===Ps||Vi(l)))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 ip(e){if(e!==null&&typeof e!="function"){var t=String(e);tS.has(t)||(tS.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Qt(e,t,l,u){var s=e.memoizedState,c=l(u,s);if(e.mode&Ol){$e(!0);try{c=l(u,s)}finally{$e(!1)}}c===void 0&&(t=ze(t)||"Component",W1.has(t)||(W1.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),s=c==null?s:Ke({},s,c),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}function lh(e,t,l,u,s,c,h){var v=e.stateNode;if(typeof v.shouldComponentUpdate=="function"){if(l=v.shouldComponentUpdate(u,c,h),e.mode&Ol){$e(!0);try{l=v.shouldComponentUpdate(u,c,h)}finally{$e(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ze(t)||"Component"),l}return t.prototype&&t.prototype.isPureReactComponent?!uo(l,u)||!uo(s,c):!0}function ah(e,t,l,u){var s=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,u),t.state!==s&&(e=me(e)||"Component",Z1.has(e)||(Z1.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Ly.enqueueReplaceState(t,t.state,null))}function To(e,t){var l=t;if("ref"in t){l={};for(var u in t)u!=="ref"&&(l[u]=t[u])}if(e=e.defaultProps){l===t&&(l=Ke({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function up(e){qy(e),console.warn(`%s
1050
+
1051
+ %s
1052
+ `,Um?"An error occurred in the <"+Um+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
1053
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function _v(e){var t=Um?"The above error occurred in the <"+Um+"> component.":"The above error occurred in one of your React components.",l="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Yy||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var u=e.environmentName;e=[`%o
1054
+
1055
+ %s
1056
+
1057
+ %s
1058
+ `,e,t,l].slice(0),typeof e[0]=="string"?e.splice(0,1,wS+e[0],HS,Yg+u+Yg,kS):e.splice(0,0,wS,HS,Yg+u+Yg,kS),e.unshift(console),u=ZT.apply(console.error,e),u()}else console.error(`%o
1059
+
1060
+ %s
1061
+
1062
+ %s
1063
+ `,e,t,l)}function ih(e){qy(e)}function Kc(e,t){try{Um=t.source?me(t.source):null,Yy=null;var l=t.value;if(G.actQueue!==null)G.thrownErrors.push(l);else{var u=e.onUncaughtError;u(l,{componentStack:t.stack})}}catch(s){setTimeout(function(){throw s})}}function uh(e,t,l){try{Um=l.source?me(l.source):null,Yy=me(t);var u=e.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Jn(e,t,l){return l=Gl(l),l.tag=Dy,l.payload={element:null},l.callback=function(){ye(t.source,Kc,e,t)},l}function Kt(e){return e=Gl(e),e.tag=Dy,e}function Df(e,t,l,u){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var c=u.value;e.payload=function(){return s(c)},e.callback=function(){rf(l),ye(u.source,uh,t,l,u)}}var h=l.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){rf(l),ye(u.source,uh,t,l,u),typeof s!="function"&&(wr===null?wr=new Set([this]):wr.add(this)),ET(this,u),typeof s=="function"||(l.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",me(l)||"Unknown")})}function zf(e,t,l,u,s){if(l.flags|=32768,tn&&lr(e,s),u!==null&&typeof u=="object"&&typeof u.then=="function"){if(t=l.alternate,t!==null&&cn(t,l,s,!0),mt&&(Js=!0),l=tu.current,l!==null){switch(l.tag){case 13:return jo===null?Ah():l.alternate===null&&dn===Fs&&(dn=Xy),l.flags&=-257,l.flags|=65536,l.lanes=s,u===Ry?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([u]):t.add(u),Op(e,u,s)),!1;case 22:return l.flags|=65536,u===Ry?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([u]):l.add(u)),Op(e,u,s)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return Op(e,u,s),Ah(),!1}if(mt)return Js=!0,t=tu.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,u!==Cy&&bu(Zn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:u}),l))):(u!==Cy&&bu(Zn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:u}),l)),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,u=Zn(u,l),s=Jn(e.stateNode,u,s),kc(e,s),dn!==_d&&(dn=Bm)),!1;var c=Zn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:u}),l);if(I0===null?I0=[c]:I0.push(c),dn!==_d&&(dn=Bm),t===null)return!0;u=Zn(u,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=Jn(l.stateNode,u,e),kc(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(wr===null||!wr.has(c))))return l.flags|=65536,s&=-s,l.lanes|=s,s=Kt(s),Df(s,e,l,u),kc(l,s),!1}l=l.return}while(l!==null);return!1}function rn(e,t,l,u){t.child=e===null?X1(t,null,l,u):zm(t,e.child,l,u)}function oh(e,t,l,u,s){l=l.render;var c=t.ref;if("ref"in u){var h={};for(var v in u)v!=="ref"&&(h[v]=u[v])}else h=u;return Ya(t),Gt(t),u=vo(e,t,l,h,c,s),v=Sl(),Tn(),e!==null&&!Pn?(Tu(e,t,s),zi(e,t,s)):(mt&&v&&ds(t),t.flags|=1,rn(e,t,u,s),t.child)}function Di(e,t,l,u,s){if(e===null){var c=l.type;return typeof c=="function"&&!bc(c)&&c.defaultProps===void 0&&l.compare===null?(l=pi(c),t.tag=15,t.type=l,fh(t,c),Of(e,t,l,u,s)):(e=fs(l.type,null,u,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!gh(e,s)){var h=c.memoizedProps;if(l=l.compare,l=l!==null?l:uo,l(h,u)&&e.ref===t.ref)return zi(e,t,s)}return t.flags|=1,e=Ll(c,u),e.ref=t.ref,e.return=t,t.child=e}function Of(e,t,l,u,s){if(e!==null){var c=e.memoizedProps;if(uo(c,u)&&e.ref===t.ref&&t.type===e.type)if(Pn=!1,t.pendingProps=u=c,gh(e,s))(e.flags&131072)!==0&&(Pn=!0);else return t.lanes=e.lanes,zi(e,t,s)}return rh(e,t,l,u,s)}function sh(e,t,l){var u=t.pendingProps,s=u.children,c=e!==null?e.memoizedState:null;if(u.mode==="hidden"){if((t.flags&128)!==0){if(u=c!==null?c.baseLanes|l:l,e!==null){for(s=t.child=e.child,c=0;s!==null;)c=c|s.lanes|s.childLanes,s=s.sibling;t.childLanes=c&~u}else t.childLanes=0,t.child=null;return ch(e,t,u,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vs(t,c!==null?c.cachePool:null),c!==null?bl(t,c):vf(t),So(t);else return t.lanes=t.childLanes=536870912,ch(e,t,c!==null?c.baseLanes|l:l,l)}else c!==null?(vs(t,c.cachePool),bl(t,c),Za(t),t.memoizedState=null):(e!==null&&vs(t,null),vf(t),Za(t));return rn(e,t,s,l),t.child}function ch(e,t,l,u){var s=Oc();return s=s===null?null:{parent:Vn._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&vs(t,null),vf(t),So(t),e!==null&&cn(e,t,u,!0),null}function Uf(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==l)&&(t.flags|=4194816)}}function rh(e,t,l,u,s){if(l.prototype&&typeof l.prototype.render=="function"){var c=ze(l)||"Unknown";lS[c]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",c,c),lS[c]=!0)}return t.mode&Ol&&Gu.recordLegacyContextWarning(t,null),e===null&&(fh(t,t.type),l.contextTypes&&(c=ze(l)||"Unknown",iS[c]||(iS[c]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",c)))),Ya(t),Gt(t),l=vo(e,t,l,u,void 0,s),u=Sl(),Tn(),e!==null&&!Pn?(Tu(e,t,s),zi(e,t,s)):(mt&&u&&ds(t),t.flags|=1,rn(e,t,l,s),t.child)}function op(e,t,l,u,s,c){return Ya(t),Gt(t),Is=-1,V0=e!==null&&e.type!==t.type,t.updateQueue=null,l=qc(t,u,l,s),gf(e,t),u=Sl(),Tn(),e!==null&&!Pn?(Tu(e,t,c),zi(e,t,c)):(mt&&u&&ds(t),t.flags|=1,rn(e,t,l,c),t.child)}function sp(e,t,l,u,s){switch(w(t)){case!1:var c=t.stateNode,h=new t.type(t.memoizedProps,c.context).state;c.updater.enqueueSetState(c,h,null);break;case!0:t.flags|=128,t.flags|=65536,c=Error("Simulated error coming from DevTools");var v=s&-s;if(t.lanes|=v,h=Ut,h===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");v=Kt(v),Df(v,h,t,Zn(c,t)),kc(t,v)}if(Ya(t),t.stateNode===null){if(h=Ar,c=l.contextType,"contextType"in l&&c!==null&&(c===void 0||c.$$typeof!==ba)&&!eS.has(l)&&(eS.add(l),v=c===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof c!="object"?" However, it is set to a "+typeof c+".":c.$$typeof===Ph?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(c).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ze(l)||"Component",v)),typeof c=="object"&&c!==null&&(h=Et(c)),c=new l(u,h),t.mode&Ol){$e(!0);try{c=new l(u,h)}finally{$e(!1)}}if(h=t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ly,t.stateNode=c,c._reactInternals=t,c._reactInternalInstance=Q1,typeof l.getDerivedStateFromProps=="function"&&h===null&&(h=ze(l)||"Component",$1.has(h)||($1.add(h),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",h,c.state===null?"null":"undefined",h))),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"){var S=v=h=null;if(typeof c.componentWillMount=="function"&&c.componentWillMount.__suppressDeprecationWarning!==!0?h="componentWillMount":typeof c.UNSAFE_componentWillMount=="function"&&(h="UNSAFE_componentWillMount"),typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps.__suppressDeprecationWarning!==!0?v="componentWillReceiveProps":typeof c.UNSAFE_componentWillReceiveProps=="function"&&(v="UNSAFE_componentWillReceiveProps"),typeof c.componentWillUpdate=="function"&&c.componentWillUpdate.__suppressDeprecationWarning!==!0?S="componentWillUpdate":typeof c.UNSAFE_componentWillUpdate=="function"&&(S="UNSAFE_componentWillUpdate"),h!==null||v!==null||S!==null){c=ze(l)||"Component";var x=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";K1.has(c)||(K1.add(c),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
1064
+
1065
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
1066
+
1067
+ The above lifecycles should be removed. Learn more about this warning here:
1068
+ https://react.dev/link/unsafe-component-lifecycles`,c,x,h!==null?`
1069
+ `+h:"",v!==null?`
1070
+ `+v:"",S!==null?`
1071
+ `+S:""))}}c=t.stateNode,h=ze(l)||"Component",c.render||(l.prototype&&typeof l.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",h):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",h)),!c.getInitialState||c.getInitialState.isReactClassApproved||c.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",h),c.getDefaultProps&&!c.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",h),c.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",h),l.childContextTypes&&!P1.has(l)&&(P1.add(l),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",h)),l.contextTypes&&!F1.has(l)&&(F1.add(l),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",h)),typeof c.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",h),l.prototype&&l.prototype.isPureReactComponent&&typeof c.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ze(l)||"A pure component"),typeof c.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",h),typeof c.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",h),typeof c.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",h),typeof c.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",h),v=c.props!==u,c.props!==void 0&&v&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",h),c.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",h,h),typeof c.getSnapshotBeforeUpdate!="function"||typeof c.componentDidUpdate=="function"||J1.has(l)||(J1.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ze(l))),typeof c.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",h),typeof c.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",h),typeof l.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",h),(v=c.state)&&(typeof v!="object"||Ve(v))&&console.error("%s.state: must be set to an object or null",h),typeof c.getChildContext=="function"&&typeof l.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",h),c=t.stateNode,c.props=u,c.state=t.memoizedState,c.refs={},Hn(t),h=l.contextType,c.context=typeof h=="object"&&h!==null?Et(h):Ar,c.state===u&&(h=ze(l)||"Component",I1.has(h)||(I1.add(h),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",h))),t.mode&Ol&&Gu.recordLegacyContextWarning(t,c),Gu.recordUnsafeLifecycleWarnings(t,c),c.state=t.memoizedState,h=l.getDerivedStateFromProps,typeof h=="function"&&(Qt(t,l,h,u),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",me(t)||"Component"),Ly.enqueueReplaceState(c,c.state,null)),Bc(t,u,c,s),xi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Vu)!==qt&&(t.flags|=134217728),c=!0}else if(e===null){c=t.stateNode;var N=t.memoizedProps;v=To(l,N),c.props=v;var Q=c.context;S=l.contextType,h=Ar,typeof S=="object"&&S!==null&&(h=Et(S)),x=l.getDerivedStateFromProps,S=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,S||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(N||Q!==h)&&ah(t,c,u,h),Mr=!1;var k=t.memoizedState;c.state=k,Bc(t,u,c,s),xi(),Q=t.memoizedState,N||k!==Q||Mr?(typeof x=="function"&&(Qt(t,l,x,u),Q=t.memoizedState),(v=Mr||lh(t,l,v,u,k,Q,h))?(S||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Vu)!==qt&&(t.flags|=134217728)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Vu)!==qt&&(t.flags|=134217728),t.memoizedProps=u,t.memoizedState=Q),c.props=u,c.state=Q,c.context=h,c=v):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Vu)!==qt&&(t.flags|=134217728),c=!1)}else{c=t.stateNode,Ga(e,t),h=t.memoizedProps,S=To(l,h),c.props=S,x=t.pendingProps,k=c.context,Q=l.contextType,v=Ar,typeof Q=="object"&&Q!==null&&(v=Et(Q)),N=l.getDerivedStateFromProps,(Q=typeof N=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==x||k!==v)&&ah(t,c,u,v),Mr=!1,k=t.memoizedState,c.state=k,Bc(t,u,c,s),xi();var $=t.memoizedState;h!==x||k!==$||Mr||e!==null&&e.dependencies!==null&&qa(e.dependencies)?(typeof N=="function"&&(Qt(t,l,N,u),$=t.memoizedState),(S=Mr||lh(t,l,S,u,k,$,v)||e!==null&&e.dependencies!==null&&qa(e.dependencies))?(Q||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(u,$,v),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(u,$,v)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=$),c.props=u,c.state=$,c.context=v,c=S):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),c=!1)}if(v=c,Uf(e,t),h=(t.flags&128)!==0,v||h){if(v=t.stateNode,Iu(t),h&&typeof l.getDerivedStateFromError!="function")l=null,xa=-1;else{if(Gt(t),l=z1(v),t.mode&Ol){$e(!0);try{z1(v)}finally{$e(!1)}}Tn()}t.flags|=1,e!==null&&h?(t.child=zm(t,e.child,null,s),t.child=zm(t,null,l,s)):rn(e,t,l,s),t.memoizedState=v.state,e=t.child}else e=zi(e,t,s);return s=t.stateNode,c&&s.props!==u&&(wm||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",me(t)||"a component"),wm=!0),e}function cp(e,t,l,u){return yi(),t.flags|=256,rn(e,t,l,u),t.child}function fh(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
1072
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=ze(t)||"Unknown",uS[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),uS[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=ze(t)||"Unknown",aS[t]||(console.error("%s: Function components do not support contextType.",t),aS[t]=!0))}function wf(e){return{baseLanes:e,cachePool:mf()}}function dh(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=ei),e}function Av(e,t,l){var u,s=t.pendingProps;C(t)&&(t.flags|=128);var c=!1,h=(t.flags&128)!==0;if((u=h)||(u=e!==null&&e.memoizedState===null?!1:(jn.current&j0)!==0),u&&(c=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(mt){if(c?jl(t):Za(t),mt){var v=fn,S;if(!(S=!v)){e:{var x=v;for(S=Vo;x.nodeType!==8;){if(!S){S=null;break e}if(x=Ln(x.nextSibling),x===null){S=null;break e}}S=x}S!==null?(pl(),t.memoizedState={dehydrated:S,treeContext:yd!==null?{id:Zs,overflow:$s}:null,retryLane:536870912,hydrationErrors:null},x=V(18,null,null,qt),x.stateNode=S,x.return=t,t.child=x,Wl=t,fn=null,S=!0):S=!1,S=!S}S&&(xc(t,v),ql(t))}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Vi(v)?t.lanes=32:t.lanes=536870912,null;Xl(t)}return v=s.children,s=s.fallback,c?(Za(t),c=t.mode,v=Hf({mode:"hidden",children:v},c),s=Ba(s,c,l,null),v.return=t,s.return=t,v.sibling=s,t.child=v,c=t.child,c.memoizedState=wf(l),c.childLanes=dh(e,u,l),t.memoizedState=Gy,s):(jl(t),hh(t,v))}var N=e.memoizedState;if(N!==null&&(v=N.dehydrated,v!==null)){if(h)t.flags&256?(jl(t),t.flags&=-257,t=mh(e,t,l)):t.memoizedState!==null?(Za(t),t.child=e.child,t.flags|=128,t=null):(Za(t),c=s.fallback,v=t.mode,s=Hf({mode:"visible",children:s.children},v),c=Ba(c,v,l,null),c.flags|=2,s.return=t,c.return=t,s.sibling=c,t.child=s,zm(t,e.child,null,l),s=t.child,s.memoizedState=wf(l),s.childLanes=dh(e,u,l),t.memoizedState=Gy,t=c);else if(jl(t),mt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Vi(v)){if(u=v.nextSibling&&v.nextSibling.dataset,u){S=u.dgst;var Q=u.msg;x=u.stck;var k=u.cstck}v=Q,u=S,s=x,S=c=k,c=Error(v||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),c.stack=s||"",c.digest=u,u=S===void 0?null:S,s={value:c,source:null,stack:u},typeof u=="string"&&Ty.set(c,s),bu(s),t=mh(e,t,l)}else if(Pn||cn(e,t,l,!1),u=(l&e.childLanes)!==0,Pn||u){if(u=Ut,u!==null&&(s=l&-l,s=(s&42)!==0?1:Bt(s),s=(s&(u.suspendedLanes|l))!==0?0:s,s!==0&&s!==N.retryLane))throw N.retryLane=s,wn(e,s),It(u,e,s),nS;v.data===Ps||Ah(),t=mh(e,t,l)}else v.data===Ps?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,fn=Ln(v.nextSibling),Wl=t,mt=!0,bd=null,Js=!1,Wi=null,Vo=!1,e!==null&&(pl(),Ki[Ii++]=Zs,Ki[Ii++]=$s,Ki[Ii++]=yd,Zs=e.id,$s=e.overflow,yd=t),t=hh(t,s.children),t.flags|=4096);return t}return c?(Za(t),c=s.fallback,v=t.mode,S=e.child,x=S.sibling,s=Ll(S,{mode:"hidden",children:s.children}),s.subtreeFlags=S.subtreeFlags&65011712,x!==null?c=Ll(x,c):(c=Ba(c,v,l,null),c.flags|=2),c.return=t,s.return=t,s.sibling=c,t.child=s,s=c,c=t.child,v=e.child.memoizedState,v===null?v=wf(l):(S=v.cachePool,S!==null?(x=Vn._currentValue,S=S.parent!==x?{parent:x,pool:x}:S):S=mf(),v={baseLanes:v.baseLanes|l,cachePool:S}),c.memoizedState=v,c.childLanes=dh(e,u,l),t.memoizedState=Gy,s):(jl(t),l=e.child,e=l.sibling,l=Ll(l,{mode:"visible",children:s.children}),l.return=t,l.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=l,t.memoizedState=null,l)}function hh(e,t){return t=Hf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hf(e,t){return e=V(22,e,null,t),e.lanes=0,e.stateNode={_visibility:xy,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function mh(e,t,l){return zm(t,e.child,null,l),e=hh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ph(e,t,l){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),Mc(e.return,t,l)}function rp(e,t){var l=Ve(e);return e=!l&&typeof qe(e)=="function",l||e?(l=l?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",l,t,l),!1):!0}function vh(e,t,l,u,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=u,c.tail=l,c.tailMode=s)}function fp(e,t,l){var u=t.pendingProps,s=u.revealOrder,c=u.tail;if(u=u.children,s!==void 0&&s!=="forwards"&&s!=="backwards"&&s!=="together"&&!oS[s])if(oS[s]=!0,typeof s=="string")switch(s.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',s,s.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',s,s.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',s)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',s);c===void 0||Vy[c]||(c!=="collapsed"&&c!=="hidden"?(Vy[c]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',c)):s!=="forwards"&&s!=="backwards"&&(Vy[c]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',c)));e:if((s==="forwards"||s==="backwards")&&u!==void 0&&u!==null&&u!==!1)if(Ve(u)){for(var h=0;h<u.length;h++)if(!rp(u[h],h))break e}else if(h=qe(u),typeof h=="function"){if(h=h.call(u))for(var v=h.next(),S=0;!v.done;v=h.next()){if(!rp(v.value,S))break e;S++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',s);if(rn(e,t,u,l),u=jn.current,(u&j0)!==0)u=u&Om|j0,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&&ph(e,l,t);else if(e.tag===19)ph(e,l,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}u&=Om}switch(Ee(jn,u,t),s){case"forwards":for(l=t.child,s=null;l!==null;)e=l.alternate,e!==null&&Au(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),vh(t,!1,s,l,c);break;case"backwards":for(l=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Au(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}vh(t,!0,l,null,c);break;case"together":vh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zi(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),xa=-1,Or|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(cn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,l=Ll(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ll(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function gh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qa(e)))}function ny(e,t,l){switch(t.tag){case 3:Mt(t,t.stateNode.containerInfo),La(t,Vn,e.memoizedState.cache),yi();break;case 27:case 5:W(t);break;case 4:Mt(t,t.stateNode.containerInfo);break;case 10:La(t,t.type,t.memoizedProps.value);break;case 12:(l&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var u=t.stateNode;u.effectDuration=-0,u.passiveEffectDuration=-0;break;case 13:if(u=t.memoizedState,u!==null)return u.dehydrated!==null?(jl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Av(e,t,l):(jl(t),e=zi(e,t,l),e!==null?e.sibling:null);jl(t);break;case 19:var s=(e.flags&128)!==0;if(u=(l&t.childLanes)!==0,u||(cn(e,t,l,!1),u=(l&t.childLanes)!==0),s){if(u)return fp(e,t,l);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ee(jn,jn.current,t),u)break;return null;case 22:case 23:return t.lanes=0,sh(e,t,l);case 24:La(t,Vn,e.memoizedState.cache)}return zi(e,t,l)}function yh(e,t,l){if(t._debugNeedsRemount&&e!==null){l=fs(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),l._debugStack=t._debugStack,l._debugTask=t._debugTask;var u=t.return;if(u===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,l.index=t.index,l.sibling=t.sibling,l.return=t.return,l.ref=t.ref,l._debugInfo=t._debugInfo,t===u.child)u.child=l;else{var s=u.child;if(s===null)throw Error("Expected parent to have a child.");for(;s.sibling!==t;)if(s=s.sibling,s===null)throw Error("Expected to find the previous sibling.");s.sibling=l}return t=u.deletions,t===null?(u.deletions=[e],u.flags|=16):t.push(e),l.flags|=2,l}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Pn=!0;else{if(!gh(e,l)&&(t.flags&128)===0)return Pn=!1,ny(e,t,l);Pn=(e.flags&131072)!==0}else Pn=!1,(u=mt)&&(pl(),u=(t.flags&1048576)!==0),u&&(u=t.index,pl(),ff(t,rg,u));switch(t.lanes=0,t.tag){case 16:e:if(u=t.pendingProps,e=Dr(t.elementType),t.type=e,typeof e=="function")bc(e)?(u=To(e,u),t.tag=1,t.type=e=pi(e),t=sp(null,t,e,u,l)):(t.tag=0,fh(t,e),t.type=e=pi(e),t=rh(null,t,e,u,l));else{if(e!=null){if(s=e.$$typeof,s===Hu){t.tag=11,t.type=e=yc(e),t=oh(null,t,e,u,l);break e}else if(s===ad){t.tag=14,t=Di(null,t,e,u,l);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Jl&&(t=" Did you wrap a component in React.lazy() more than once?"),e=ze(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return rh(e,t,t.type,t.pendingProps,l);case 1:return u=t.type,s=To(u,t.pendingProps),sp(e,t,u,s,l);case 3:e:{if(Mt(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");u=t.pendingProps;var c=t.memoizedState;s=c.element,Ga(e,t),Bc(t,u,null,l);var h=t.memoizedState;if(u=h.cache,La(t,Vn,u),u!==c.cache&&Rc(t,[Vn],l,!0),xi(),u=h.element,c.isDehydrated)if(c={element:u,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=cp(e,t,u,l);break e}else if(u!==s){s=Zn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),bu(s),t=cp(e,t,u,l);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(fn=Ln(e.firstChild),Wl=t,mt=!0,bd=null,Js=!1,Wi=null,Vo=!0,e=X1(t,null,u,l),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(yi(),u===s){t=zi(e,t,l);break e}rn(e,t,u,l)}t=t.child}return t;case 26:return Uf(e,t),e===null?(e=wu(t.type,null,t.pendingProps,null))?t.memoizedState=e:mt||(e=t.type,l=t.pendingProps,u=et(ji.current),u=nt(u).createElement(e),u[Fn]=t,u[Dl]=l,Ft(u,e,l),nn(u),t.stateNode=u):t.memoizedState=wu(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return W(t),e===null&&mt&&(u=et(ji.current),s=D(),u=t.stateNode=Ip(t.type,t.pendingProps,u,s,!1),Js||(s=Rt(u,t.type,t.pendingProps,s),s!==null&&(vl(t,0).serverProps=s)),Wl=t,Vo=!0,s=fn,Yi(t.type)?(fb=s,fn=Ln(u.firstChild)):fn=s),rn(e,t,t.pendingProps.children,l),Uf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&mt&&(c=D(),u=ns(t.type,c.ancestorInfo),s=fn,(h=!s)||(h=Ro(s,t.type,t.pendingProps,Vo),h!==null?(t.stateNode=h,Js||(c=Rt(h,t.type,t.pendingProps,c),c!==null&&(vl(t,0).serverProps=c)),Wl=t,fn=Ln(h.firstChild),Vo=!1,c=!0):c=!1,h=!c),h&&(u&&xc(t,s),ql(t))),W(t),s=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,u=c.children,qi(s,c)?u=null:h!==null&&qi(s,h)&&(t.flags|=32),t.memoizedState!==null&&(s=vo(e,t,ra,null,null,l),av._currentValue=s),Uf(e,t),rn(e,t,u,l),t.child;case 6:return e===null&&mt&&(e=t.pendingProps,l=D(),u=l.ancestorInfo.current,e=u!=null?no(e,u.tag,l.ancestorInfo.implicitRootScope):!0,l=fn,(u=!l)||(u=Nn(l,t.pendingProps,Vo),u!==null?(t.stateNode=u,Wl=t,fn=null,u=!0):u=!1,u=!u),u&&(e&&xc(t,l),ql(t))),null;case 13:return Av(e,t,l);case 4:return Mt(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=zm(t,null,u,l):rn(e,t,u,l),t.child;case 11:return oh(e,t,t.type,t.pendingProps,l);case 7:return rn(e,t,t.pendingProps,l),t.child;case 8:return rn(e,t,t.pendingProps.children,l),t.child;case 12:return t.flags|=4,t.flags|=2048,u=t.stateNode,u.effectDuration=-0,u.passiveEffectDuration=-0,rn(e,t,t.pendingProps.children,l),t.child;case 10:return u=t.type,s=t.pendingProps,c=s.value,"value"in s||sS||(sS=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),La(t,u,c),rn(e,t,s.children,l),t.child;case 9:return s=t.type._context,u=t.pendingProps.children,typeof u!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Ya(t),s=Et(s),Gt(t),u=ky(u,s,void 0),Tn(),t.flags|=1,rn(e,t,u,l),t.child;case 14:return Di(e,t,t.type,t.pendingProps,l);case 15:return Of(e,t,t.type,t.pendingProps,l);case 19:return fp(e,t,l);case 31:return u=t.pendingProps,l=t.mode,u={mode:u.mode,children:u.children},e===null?(e=Hf(u,l),e.ref=t.ref,t.child=e,e.return=t,t=e):(e=Ll(e.child,u),e.ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return sh(e,t,l);case 24:return Ya(t),u=Et(Vn),e===null?(s=Oc(),s===null&&(s=Ut,c=ho(),s.pooledCache=c,bi(c),c!==null&&(s.pooledCacheLanes|=l),s=c),t.memoizedState={parent:u,cache:s},Hn(t),La(t,Vn,s)):((e.lanes&l)!==0&&(Ga(e,t),Bc(t,null,null,l),xi()),s=e.memoizedState,c=t.memoizedState,s.parent!==u?(s={parent:u,cache:u},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),La(t,Vn,u)):(u=c.cache,La(t,Vn,u),u!==s.cache&&Rc(t,[Vn],l,!0))),rn(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function xl(e){e.flags|=4}function kf(e,t){if(t.type!=="stylesheet"||(t.state.loading&nu)!==Hd)e.flags&=-16777217;else if(e.flags|=16777216,!Kf(t)){if(t=tu.current,t!==null&&((it&4194048)===it?jo!==null:(it&62914560)!==it&&(it&536870912)===0||t!==jo))throw q0=Ry,y1;e.flags|=8192}}function Bf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ma():536870912,e.lanes|=t,Rd|=t)}function xo(e,t){if(!mt)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(t)if((e.mode&cl)!==qt){for(var s=e.selfBaseDuration,c=e.child;c!==null;)l|=c.lanes|c.childLanes,u|=c.subtreeFlags&65011712,u|=c.flags&65011712,s+=c.treeBaseDuration,c=c.sibling;e.treeBaseDuration=s}else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,u|=s.subtreeFlags&65011712,u|=s.flags&65011712,s.return=e,s=s.sibling;else if((e.mode&cl)!==qt){s=e.actualDuration,c=e.selfBaseDuration;for(var h=e.child;h!==null;)l|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,s+=h.actualDuration,c+=h.treeBaseDuration,h=h.sibling;e.actualDuration=s,e.treeBaseDuration=c}else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,u|=s.subtreeFlags,u|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=u,e.childLanes=l,t}function Mv(e,t,l){var u=t.pendingProps;switch(hs(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(t),null;case 1:return Ct(t),null;case 3:return l=t.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),oa(Vn,t),vt(t),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(gi(t)?(Ac(),xl(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_c())),Ct(t),null;case 26:return l=t.memoizedState,e===null?(xl(t),l!==null?(Ct(t),kf(t,l)):(Ct(t),t.flags&=-16777217)):l?l!==e.memoizedState?(xl(t),Ct(t),kf(t,l)):(Ct(t),t.flags&=-16777217):(e.memoizedProps!==u&&xl(t),Ct(t),t.flags&=-16777217),null;case 27:te(t),l=et(ji.current);var s=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==u&&xl(t);else{if(!u){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ct(t),null}e=D(),gi(t)?Ec(t):(e=Ip(s,u,l,e,!0),t.stateNode=e,xl(t))}return Ct(t),null;case 5:if(te(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&xl(t);else{if(!u){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ct(t),null}if(s=D(),gi(t))Ec(t);else{switch(e=et(ji.current),ns(l,s.ancestorInfo),s=s.context,e=nt(e),s){case Gm:e=e.createElementNS(_r,l);break;case Ng:e=e.createElementNS(pd,l);break;default:switch(l){case"svg":e=e.createElementNS(_r,l);break;case"math":e=e.createElementNS(pd,l);break;case"script":e=e.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof u.is=="string"?e.createElement("select",{is:u.is}):e.createElement("select"),u.multiple?e.multiple=!0:u.size&&(e.size=u.size);break;default:e=typeof u.is=="string"?e.createElement(l,{is:u.is}):e.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(e)!=="[object HTMLUnknownElement]"||Bu.call(MS,l)||(MS[l]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",l)))}}e[Fn]=t,e[Dl]=u;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(Ft(e,l,u),l){case"button":case"input":case"select":case"textarea":e=!!u.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&xl(t)}}return Ct(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==u&&xl(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=et(ji.current),l=D(),gi(t)){e=t.stateNode,l=t.memoizedProps,s=!Js,u=null;var c=Wl;if(c!==null)switch(c.tag){case 3:s&&(s=Xh(e,l,u),s!==null&&(vl(t,0).serverProps=s));break;case 27:case 5:u=c.memoizedProps,s&&(s=Xh(e,l,u),s!==null&&(vl(t,0).serverProps=s))}e[Fn]=t,e=!!(e.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||Yp(e.nodeValue,l)),e||ql(t)}else s=l.ancestorInfo.current,s!=null&&no(u,s.tag,l.ancestorInfo.implicitRootScope),e=nt(e).createTextNode(u),e[Fn]=t,t.stateNode=e}return Ct(t),null;case 13:if(u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=gi(t),u!==null&&u.dehydrated!==null){if(e===null){if(!s)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");s[Fn]=t,Ct(t),(t.mode&cl)!==qt&&u!==null&&(s=t.child,s!==null&&(t.treeBaseDuration-=s.treeBaseDuration))}else Ac(),yi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4,Ct(t),(t.mode&cl)!==qt&&u!==null&&(s=t.child,s!==null&&(t.treeBaseDuration-=s.treeBaseDuration));s=!1}else s=_c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Xl(t),t):(Xl(t),null)}return Xl(t),(t.flags&128)!==0?(t.lanes=l,(t.mode&cl)!==qt&&Vl(t),t):(l=u!==null,e=e!==null&&e.memoizedState!==null,l&&(u=t.child,s=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(s=u.alternate.memoizedState.cachePool.pool),c=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(c=u.memoizedState.cachePool.pool),c!==s&&(u.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Bf(t,t.updateQueue),Ct(t),(t.mode&cl)!==qt&&l&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return vt(t),e===null&&Lp(t.stateNode.containerInfo),Ct(t),null;case 10:return oa(t.type,t),Ct(t),null;case 19:if(Re(jn,t),s=t.memoizedState,s===null)return Ct(t),null;if(u=(t.flags&128)!==0,c=s.rendering,c===null)if(u)xo(s,!1);else{if(dn!==Fs||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Au(e),c!==null){for(t.flags|=128,xo(s,!1),e=c.updateQueue,t.updateQueue=e,Bf(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Sc(l,e),l=l.sibling;return Ee(jn,jn.current&Om|j0,t),t.child}e=e.sibling}s.tail!==null&&Xi()>_g&&(t.flags|=128,u=!0,xo(s,!1),t.lanes=4194304)}else{if(!u)if(e=Au(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Bf(t,e),xo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!mt)return Ct(t),null}else 2*Xi()-s.renderingStartTime>_g&&l!==536870912&&(t.flags|=128,u=!0,xo(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(e=s.last,e!==null?e.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Xi(),e.sibling=null,l=jn.current,l=u?l&Om|j0:l&Om,Ee(jn,l,t),e):(Ct(t),null);case 22:case 23:return Xl(t),ja(t),u=t.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(l&536870912)!==0&&(t.flags&128)===0&&(Ct(t),t.subtreeFlags&6&&(t.flags|=8192)):Ct(t),l=t.updateQueue,l!==null&&Bf(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==l&&(t.flags|=2048),e!==null&&Re(xd,t),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),oa(Vn,t),Ct(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Rv(e,t){switch(hs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&cl)!==qt&&Vl(t),t):null;case 3:return oa(Vn,t),vt(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return te(t),null;case 13:if(Xl(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&cl)!==qt&&Vl(t),t):null;case 19:return Re(jn,t),null;case 4:return vt(t),null;case 10:return oa(t.type,t),null;case 22:case 23:return Xl(t),ja(t),e!==null&&Re(xd,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&cl)!==qt&&Vl(t),t):null;case 24:return oa(Vn,t),null;case 25:return null;default:return null}}function dp(e,t){switch(hs(t),t.tag){case 3:oa(Vn,t),vt(t);break;case 26:case 27:case 5:te(t);break;case 4:vt(t);break;case 13:Xl(t);break;case 19:Re(jn,t);break;case 10:oa(t.type,t);break;case 22:case 23:Xl(t),ja(t),e!==null&&Re(xd,t);break;case 24:oa(Vn,t)}}function $a(e){return(e.mode&cl)!==qt}function hp(e,t){$a(e)?(yl(),Es(t,e),ll()):Es(t,e)}function bh(e,t,l){$a(e)?(yl(),Cs(l,e,t),ll()):Cs(l,e,t)}function Es(e,t){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var s=u.next;l=s;do{if((l.tag&e)===e&&((e&Gn)!==Fi?he!==null&&typeof he.markComponentPassiveEffectMountStarted=="function"&&he.markComponentPassiveEffectMountStarted(t):(e&rl)!==Fi&&he!==null&&typeof he.markComponentLayoutEffectMountStarted=="function"&&he.markComponentLayoutEffectMountStarted(t),u=void 0,(e&Fl)!==Fi&&(Ym=!0),u=ye(t,CT,l),(e&Fl)!==Fi&&(Ym=!1),(e&Gn)!==Fi?he!==null&&typeof he.markComponentPassiveEffectMountStopped=="function"&&he.markComponentPassiveEffectMountStopped():(e&rl)!==Fi&&he!==null&&typeof he.markComponentLayoutEffectMountStopped=="function"&&he.markComponentLayoutEffectMountStopped(),u!==void 0&&typeof u!="function")){var c=void 0;c=(l.tag&rl)!==0?"useLayoutEffect":(l.tag&Fl)!==0?"useInsertionEffect":"useEffect";var h=void 0;h=u===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof u.then=="function"?`
1073
+
1074
+ It looks like you wrote `+c+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
1075
+
1076
+ `+c+`(() => {
1077
+ async function fetchData() {
1078
+ // You can await here
1079
+ const response = await MyAPI.getData(someId);
1080
+ // ...
1081
+ }
1082
+ fetchData();
1083
+ }, [someId]); // Or [] if effect doesn't need props or state
1084
+
1085
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+u,ye(t,function(v,S){console.error("%s must not return anything besides a function, which is used for clean-up.%s",v,S)},c,h)}l=l.next}while(l!==s)}}catch(v){Oe(t,t.return,v)}}function Cs(e,t,l){try{var u=t.updateQueue,s=u!==null?u.lastEffect:null;if(s!==null){var c=s.next;u=c;do{if((u.tag&e)===e){var h=u.inst,v=h.destroy;v!==void 0&&(h.destroy=void 0,(e&Gn)!==Fi?he!==null&&typeof he.markComponentPassiveEffectUnmountStarted=="function"&&he.markComponentPassiveEffectUnmountStarted(t):(e&rl)!==Fi&&he!==null&&typeof he.markComponentLayoutEffectUnmountStarted=="function"&&he.markComponentLayoutEffectUnmountStarted(t),(e&Fl)!==Fi&&(Ym=!0),s=t,ye(s,_T,s,l,v),(e&Fl)!==Fi&&(Ym=!1),(e&Gn)!==Fi?he!==null&&typeof he.markComponentPassiveEffectUnmountStopped=="function"&&he.markComponentPassiveEffectUnmountStopped():(e&rl)!==Fi&&he!==null&&typeof he.markComponentLayoutEffectUnmountStopped=="function"&&he.markComponentLayoutEffectUnmountStopped())}u=u.next}while(u!==c)}}catch(S){Oe(t,t.return,S)}}function mp(e,t){$a(e)?(yl(),Es(t,e),ll()):Es(t,e)}function Nf(e,t,l){$a(e)?(yl(),Cs(l,e,t),ll()):Cs(l,e,t)}function pp(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||wm||(l.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(e)||"instance"),l.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(e)||"instance"));try{ye(e,xv,t,l)}catch(u){Oe(e,e.return,u)}}}function Dv(e,t,l){return e.getSnapshotBeforeUpdate(t,l)}function ly(e,t){var l=t.memoizedProps,u=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||wm||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(e)||"instance"));try{var s=To(e.type,l,e.elementType===e.type),c=ye(e,Dv,t,s,u);l=cS,c!==void 0||l.has(e.type)||(l.add(e.type),ye(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",me(e))})),t.__reactInternalSnapshotBeforeUpdate=c}catch(h){Oe(e,e.return,h)}}function Sh(e,t,l){l.props=To(e.type,e.memoizedProps),l.state=e.memoizedState,$a(e)?(yl(),ye(e,B1,e,t,l),ll()):ye(e,B1,e,t,l)}function zv(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}if(typeof t=="function")if($a(e))try{yl(),e.refCleanup=t(l)}finally{ll()}else e.refCleanup=t(l);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",me(e)),t.current=l}}function Ic(e,t){try{ye(e,zv,e)}catch(l){Oe(e,t,l)}}function pa(e,t){var l=e.ref,u=e.refCleanup;if(l!==null)if(typeof u=="function")try{if($a(e))try{yl(),ye(e,u)}finally{ll(e)}else ye(e,u)}catch(s){Oe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{if($a(e))try{yl(),ye(e,l,null)}finally{ll(e)}else ye(e,l,null)}catch(s){Oe(e,t,s)}else l.current=null}function vp(e,t,l,u){var s=e.memoizedProps,c=s.id,h=s.onCommit;s=s.onRender,t=t===null?"mount":"update",hg&&(t="nested-update"),typeof s=="function"&&s(c,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,l),typeof h=="function"&&h(e.memoizedProps.id,t,u,l)}function Ov(e,t,l,u){var s=e.memoizedProps;e=s.id,s=s.onPostCommit,t=t===null?"mount":"update",hg&&(t="nested-update"),typeof s=="function"&&s(e,t,u,l)}function Uv(e){var t=e.type,l=e.memoizedProps,u=e.stateNode;try{ye(e,Ou,u,t,l,e)}catch(s){Oe(e,e.return,s)}}function gp(e,t,l){try{ye(e,Pt,e.stateNode,e.type,l,t,e)}catch(u){Oe(e,e.return,u)}}function yp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Yi(e.type)||e.tag===4}function _s(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yp(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&&Yi(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 Lf(e,t,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=zu));else if(u!==4&&(u===27&&Yi(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Lf(e,t,l),e=e.sibling;e!==null;)Lf(e,t,l),e=e.sibling}function As(e,t,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(u!==4&&(u===27&&Yi(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(As(e,t,l),e=e.sibling;e!==null;)As(e,t,l),e=e.sibling}function wv(e){for(var t,l=e.return;l!==null;){if(yp(l)){t=l;break}l=l.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,l=_s(e),As(e,l,t);break;case 5:l=t.stateNode,t.flags&32&&(Uu(l),t.flags&=-33),t=_s(e),As(e,t,l);break;case 3:case 4:t=t.stateNode.containerInfo,l=_s(e),Lf(e,l,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function bp(e){var t=e.stateNode,l=e.memoizedProps;try{ye(e,$l,e.type,l,t,e)}catch(u){Oe(e,e.return,u)}}function Th(e,t){if(e=e.containerInfo,sb=Vg,e=uf(e),vc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var s=u.anchorOffset,c=u.focusNode;u=u.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,v=-1,S=-1,x=0,N=0,Q=e,k=null;t:for(;;){for(var $;Q!==l||s!==0&&Q.nodeType!==3||(v=h+s),Q!==c||u!==0&&Q.nodeType!==3||(S=h+u),Q.nodeType===3&&(h+=Q.nodeValue.length),($=Q.firstChild)!==null;)k=Q,Q=$;for(;;){if(Q===e)break t;if(k===l&&++x===s&&(v=h),k===c&&++N===u&&(S=h),($=Q.nextSibling)!==null)break;Q=k,k=Q.parentNode}Q=$}l=v===-1||S===-1?null:{start:v,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(cb={focusedElem:e,selectionRange:l},Vg=!1,el=t;el!==null;)if(t=el,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,el=e;else for(;el!==null;){switch(e=t=el,l=e.alternate,s=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:(s&1024)!==0&&l!==null&&ly(e,l);break;case 3:if((s&1024)!==0){if(e=e.stateNode.containerInfo,l=e.nodeType,l===9)or(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":or(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,el=e;break}el=t.return}}function Sp(e,t,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Oi(e,l),u&4&&hp(l,rl|Pi);break;case 1:if(Oi(e,l),u&4)if(e=l.stateNode,t===null)l.type.defaultProps||"ref"in l.memoizedProps||wm||(e.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(l)||"instance"),e.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(l)||"instance")),$a(l)?(yl(),ye(l,By,l,e),ll()):ye(l,By,l,e);else{var s=To(l.type,t.memoizedProps);t=t.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||wm||(e.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(l)||"instance"),e.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(l)||"instance")),$a(l)?(yl(),ye(l,w1,l,e,s,t,e.__reactInternalSnapshotBeforeUpdate),ll()):ye(l,w1,l,e,s,t,e.__reactInternalSnapshotBeforeUpdate)}u&64&&pp(l),u&512&&Ic(l,l.return);break;case 3:if(t=gl(),Oi(e,l),u&64&&(u=l.updateQueue,u!==null)){if(s=null,l.child!==null)switch(l.child.tag){case 27:case 5:s=l.child.stateNode;break;case 1:s=l.child.stateNode}try{ye(l,xv,u,s)}catch(h){Oe(l,l.return,h)}}e.effectDuration+=Va(t);break;case 27:t===null&&u&4&&bp(l);case 26:case 5:Oi(e,l),t===null&&u&4&&Uv(l),u&512&&Ic(l,l.return);break;case 12:if(u&4){u=gl(),Oi(e,l),e=l.stateNode,e.effectDuration+=Si(u);try{ye(l,vp,l,t,dg,e.effectDuration)}catch(h){Oe(l,l.return,h)}}else Oi(e,l);break;case 13:Oi(e,l),u&4&&Wc(e,l),u&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Zf.bind(null,l),sr(e,l))));break;case 22:if(u=l.memoizedState!==null||Ws,!u){t=t!==null&&t.memoizedState!==null||bn,s=Ws;var c=bn;Ws=u,(bn=t)&&!c?Ui(e,l,(l.subtreeFlags&8772)!==0):Oi(e,l),Ws=s,bn=c}break;case 30:break;default:Oi(e,l)}}function Tp(e){var t=e.alternate;t!==null&&(e.alternate=null,Tp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fu(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mu(e,t,l){for(l=l.child;l!==null;)Ms(e,t,l),l=l.sibling}function Ms(e,t,l){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(ko,l)}catch(c){Rl||(Rl=!0,console.error("React instrumentation encountered an error: %s",c))}switch(l.tag){case 26:bn||pa(l,t),Mu(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:bn||pa(l,t);var u=Un,s=Ea;Yi(l.type)&&(Un=l.stateNode,Ea=!1),Mu(e,t,l),ye(l,rr,l.stateNode),Un=u,Ea=s;break;case 5:bn||pa(l,t);case 6:if(u=Un,s=Ea,Un=null,Mu(e,t,l),Un=u,Ea=s,Un!==null)if(Ea)try{ye(l,ir,Un,l.stateNode)}catch(c){Oe(l,t,c)}else try{ye(l,ya,Un,l.stateNode)}catch(c){Oe(l,t,c)}break;case 18:Un!==null&&(Ea?(e=Un,ur(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ys(e)):ur(Un,l.stateNode));break;case 4:u=Un,s=Ea,Un=l.stateNode.containerInfo,Ea=!0,Mu(e,t,l),Un=u,Ea=s;break;case 0:case 11:case 14:case 15:bn||Cs(Fl,l,t),bn||bh(l,t,rl),Mu(e,t,l);break;case 1:bn||(pa(l,t),u=l.stateNode,typeof u.componentWillUnmount=="function"&&Sh(l,t,u)),Mu(e,t,l);break;case 21:Mu(e,t,l);break;case 22:bn=(u=bn)||l.memoizedState!==null,Mu(e,t,l),bn=u;break;default:Mu(e,t,l)}}function Wc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ye(t,Zl,e)}catch(l){Oe(t,t.return,l)}}function xh(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rS),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Rs(e,t){var l=xh(e);t.forEach(function(u){var s=Ao.bind(null,e,u);if(!l.has(u)){if(l.add(u),tn)if(Hm!==null&&km!==null)lr(km,Hm);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");u.then(s,s)}})}function Kn(e,t){var l=t.deletions;if(l!==null)for(var u=0;u<l.length;u++){var s=e,c=t,h=l[u],v=c;e:for(;v!==null;){switch(v.tag){case 27:if(Yi(v.type)){Un=v.stateNode,Ea=!1;break e}break;case 5:Un=v.stateNode,Ea=!1;break e;case 3:case 4:Un=v.stateNode.containerInfo,Ea=!0;break e}v=v.return}if(Un===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Ms(s,c,h),Un=null,Ea=!1,s=h,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)xp(t,e),t=t.sibling}function xp(e,t){var l=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kn(t,e),El(e),u&4&&(Cs(Fl|Pi,e,e.return),Es(Fl|Pi,e),bh(e,e.return,rl|Pi));break;case 1:Kn(t,e),El(e),u&512&&(bn||l===null||pa(l,l.return)),u&64&&Ws&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var s=Xu;if(Kn(t,e),El(e),u&512&&(bn||l===null||pa(l,l.return)),u&4)if(t=l!==null?l.memoizedState:null,u=e.memoizedState,l===null)if(u===null)if(e.stateNode===null){e:{u=e.type,l=e.memoizedProps,t=s.ownerDocument||s;t:switch(u){case"title":s=t.getElementsByTagName("title")[0],(!s||s[Tr]||s[Fn]||s.namespaceURI===_r||s.hasAttribute("itemprop"))&&(s=t.createElement(u),t.head.insertBefore(s,t.querySelector("head > title"))),Ft(s,u,l),s[Fn]=e,nn(s),u=s;break e;case"link":var c=e0("link","href",t).get(u+(l.href||""));if(c){for(var h=0;h<c.length;h++)if(s=c[h],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(h,1);break t}}s=t.createElement(u),Ft(s,u,l),t.head.appendChild(s);break;case"meta":if(c=e0("meta","content",t).get(u+(l.content||""))){for(h=0;h<c.length;h++)if(s=c[h],ie(l.content,"content"),s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(h,1);break t}}s=t.createElement(u),Ft(s,u,l),t.head.appendChild(s);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+u+'". This is a bug in React.')}s[Fn]=e,nn(s),u=s}e.stateNode=u}else t0(s,e.type,e.stateNode);else e.stateNode=Qh(s,u,e.memoizedProps);else t!==u?(t===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):t.count--,u===null?t0(s,e.type,e.stateNode):Qh(s,u,e.memoizedProps)):u===null&&e.stateNode!==null&&gp(e,e.memoizedProps,l.memoizedProps);break;case 27:Kn(t,e),El(e),u&512&&(bn||l===null||pa(l,l.return)),l!==null&&u&4&&gp(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Kn(t,e),El(e),u&512&&(bn||l===null||pa(l,l.return)),e.flags&32){t=e.stateNode;try{ye(e,Uu,t)}catch(N){Oe(e,e.return,N)}}u&4&&e.stateNode!=null&&(t=e.memoizedProps,gp(e,t,l!==null?l.memoizedProps:t)),u&1024&&(jy=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Kn(t,e),El(e),u&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");u=e.memoizedProps,l=l!==null?l.memoizedProps:u,t=e.stateNode;try{ye(e,Bs,t,l,u)}catch(N){Oe(e,e.return,N)}}break;case 3:if(s=gl(),Lg=null,c=Xu,Xu=Jf(t.containerInfo),Kn(t,e),Xu=c,El(e),u&4&&l!==null&&l.memoizedState.isDehydrated)try{ye(e,Kp,t.containerInfo)}catch(N){Oe(e,e.return,N)}jy&&(jy=!1,Ds(e)),t.effectDuration+=Va(s);break;case 4:u=Xu,Xu=Jf(e.stateNode.containerInfo),Kn(t,e),El(e),Xu=u;break;case 12:u=gl(),Kn(t,e),El(e),e.stateNode.effectDuration+=Si(u);break;case 13:Kn(t,e),El(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ky=Xi()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Rs(e,u)));break;case 22:s=e.memoizedState!==null;var v=l!==null&&l.memoizedState!==null,S=Ws,x=bn;if(Ws=S||s,bn=x||v,Kn(t,e),bn=x,Ws=S,El(e),u&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|xy,s&&(l===null||v||Ws||bn||In(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){v=l=t;try{c=v.stateNode,s?ye(v,Al,c):ye(v,$p,v.stateNode,v.memoizedProps)}catch(N){Oe(v,v.return,N)}}}else if(t.tag===6){if(l===null){v=t;try{h=v.stateNode,s?ye(v,Zp,h):ye(v,Gh,h,v.memoizedProps)}catch(N){Oe(v,v.return,N)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}u&4&&(u=e.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Rs(e,l))));break;case 19:Kn(t,e),El(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Rs(e,u)));break;case 30:break;case 21:break;default:Kn(t,e),El(e)}}function El(e){var t=e.flags;if(t&2){try{ye(e,wv,e)}catch(l){Oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ds(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ds(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Oi(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Sp(e,t.alternate,t),t=t.sibling}function Ql(e){switch(e.tag){case 0:case 11:case 14:case 15:bh(e,e.return,rl),In(e);break;case 1:pa(e,e.return);var t=e.stateNode;typeof t.componentWillUnmount=="function"&&Sh(e,e.return,t),In(e);break;case 27:ye(e,rr,e.stateNode);case 26:case 5:pa(e,e.return),In(e);break;case 22:e.memoizedState===null&&In(e);break;case 30:In(e);break;default:In(e)}}function In(e){for(e=e.child;e!==null;)Ql(e),e=e.sibling}function Ru(e,t,l,u){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Ui(e,l,u),hp(l,rl);break;case 1:if(Ui(e,l,u),t=l.stateNode,typeof t.componentDidMount=="function"&&ye(l,By,l,t),t=l.updateQueue,t!==null){e=l.stateNode;try{ye(l,Nc,t,e)}catch(c){Oe(l,l.return,c)}}u&&s&64&&pp(l),Ic(l,l.return);break;case 27:bp(l);case 26:case 5:Ui(e,l,u),u&&t===null&&s&4&&Uv(l),Ic(l,l.return);break;case 12:if(u&&s&4){s=gl(),Ui(e,l,u),u=l.stateNode,u.effectDuration+=Si(s);try{ye(l,vp,l,t,dg,u.effectDuration)}catch(c){Oe(l,l.return,c)}}else Ui(e,l,u);break;case 13:Ui(e,l,u),u&&s&4&&Wc(e,l);break;case 22:l.memoizedState===null&&Ui(e,l,u),Ic(l,l.return);break;case 30:break;default:Ui(e,l,u)}}function Ui(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Ru(e,t.alternate,t,l),t=t.sibling}function wi(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&bi(e),l!=null&&Yl(l))}function Ja(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(bi(t),e!=null&&Yl(e))}function _t(e,t,l,u){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qf(e,t,l,u),t=t.sibling}function qf(e,t,l,u){var s=t.flags;switch(t.tag){case 0:case 11:case 15:_t(e,t,l,u),s&2048&&mp(t,Gn|Pi);break;case 1:_t(e,t,l,u);break;case 3:var c=gl();_t(e,t,l,u),s&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(bi(t),l!=null&&Yl(l))),e.passiveEffectDuration+=Va(c);break;case 12:if(s&2048){s=gl(),_t(e,t,l,u),e=t.stateNode,e.passiveEffectDuration+=Si(s);try{ye(t,Ov,t,t.alternate,dg,e.passiveEffectDuration)}catch(v){Oe(t,t.return,v)}}else _t(e,t,l,u);break;case 13:_t(e,t,l,u);break;case 23:break;case 22:c=t.stateNode;var h=t.alternate;t.memoizedState!==null?c._visibility&gd?_t(e,t,l,u):Fc(e,t):c._visibility&gd?_t(e,t,l,u):(c._visibility|=gd,Eo(e,t,l,u,(t.subtreeFlags&10256)!==0)),s&2048&&wi(h,t);break;case 24:_t(e,t,l,u),s&2048&&Ja(t.alternate,t);break;default:_t(e,t,l,u)}}function Eo(e,t,l,u,s){for(s=s&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;)Eh(e,t,l,u,s),t=t.sibling}function Eh(e,t,l,u,s){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Eo(e,t,l,u,s),mp(t,Gn);break;case 23:break;case 22:var h=t.stateNode;t.memoizedState!==null?h._visibility&gd?Eo(e,t,l,u,s):Fc(e,t):(h._visibility|=gd,Eo(e,t,l,u,s)),s&&c&2048&&wi(t.alternate,t);break;case 24:Eo(e,t,l,u,s),s&&c&2048&&Ja(t.alternate,t);break;default:Eo(e,t,l,u,s)}}function Fc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,u=t,s=u.flags;switch(u.tag){case 22:Fc(l,u),s&2048&&wi(u.alternate,u);break;case 24:Fc(l,u),s&2048&&Ja(u.alternate,u);break;default:Fc(l,u)}t=t.sibling}}function zs(e){if(e.subtreeFlags&X0)for(e=e.child;e!==null;)Co(e),e=e.sibling}function Co(e){switch(e.tag){case 26:zs(e),e.flags&X0&&e.memoizedState!==null&&Xv(Xu,e.memoizedState,e.memoizedProps);break;case 5:zs(e);break;case 3:case 4:var t=Xu;Xu=Jf(e.stateNode.containerInfo),zs(e),Xu=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=X0,X0=16777216,zs(e),X0=t):zs(e));break;default:zs(e)}}function Yf(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 Pc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var u=t[l];el=u,Cp(u,e)}Yf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ep(e),e=e.sibling}function Ep(e){switch(e.tag){case 0:case 11:case 15:Pc(e),e.flags&2048&&Nf(e,e.return,Gn|Pi);break;case 3:var t=gl();Pc(e),e.stateNode.passiveEffectDuration+=Va(t);break;case 12:t=gl(),Pc(e),e.stateNode.passiveEffectDuration+=Si(t);break;case 22:t=e.stateNode,e.memoizedState!==null&&t._visibility&gd&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vf(e)):Pc(e);break;default:Pc(e)}}function Vf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var u=t[l];el=u,Cp(u,e)}Yf(e)}for(e=e.child;e!==null;)Gf(e),e=e.sibling}function Gf(e){switch(e.tag){case 0:case 11:case 15:Nf(e,e.return,Gn),Vf(e);break;case 22:var t=e.stateNode;t._visibility&gd&&(t._visibility&=-3,Vf(e));break;default:Vf(e)}}function Cp(e,t){for(;el!==null;){var l=el,u=l;switch(u.tag){case 0:case 11:case 15:Nf(u,t,Gn);break;case 23:case 22:u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(u=u.memoizedState.cachePool.pool,u!=null&&bi(u));break;case 24:Yl(u.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,el=u;else e:for(l=e;el!==null;){u=el;var s=u.sibling,c=u.return;if(Tp(u),u===l){el=null;break e}if(s!==null){s.return=c,el=s;break e}el=c}}}function _p(){MT.forEach(function(e){return e()})}function Ap(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Cl(e){if((Tt&Pl)!==Fa&&it!==0)return it&-it;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),e=Td,e!==0?e:kp()):Xr()}function Hv(){ei===0&&(ei=(it&536870912)===0||mt?ou():536870912);var e=tu.current;return e!==null&&(e.flags|=32),ei}function It(e,t,l){if(Ym&&console.error("useInsertionEffect must not schedule updates."),eb&&(Ag=!0),(e===Ut&&(At===Ad||At===Md)||e.cancelPendingCommit!==null)&&(Us(e,0),Du(e,it,ei,!1)),tl(e,l),(Tt&Pl)!==0&&e===Ut){if(zl)switch(t.tag){case 0:case 11:case 15:e=lt&&me(lt)||"Unknown",SS.has(e)||(SS.add(e),t=me(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:bS||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),bS=!0)}}else tn&&xn(e,t,l),Lv(t),e===Ut&&((Tt&Pl)===Fa&&(Ur|=l),dn===_d&&Du(e,it,ei,!1)),va(e)}function gn(e,t,l){if((Tt&(Pl|Qu))!==Fa)throw Error("Should not already be working.");var u=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Aa(e,t),s=u?Rp(e,t):Mh(e,t,!0),c=u;do{if(s===Fs){Lm&&!u&&Du(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!kv(l)){s=Mh(e,t,!1),c=!1;continue}if(s===Bm){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{s=e;var v=h;h=I0;var S=s.current.memoizedState.isDehydrated;if(S&&(Us(s,v).flags|=256),v=Mh(s,v,!1),v!==Bm){if($y&&!S){s.errorRecoveryDisabledLanes|=c,Ur|=c,s=_d;break e}s=ea,ea=h,s!==null&&(ea===null?ea=s:ea.push.apply(ea,s))}s=v}if(c=!1,s!==Bm)continue}}if(s===Z0){Us(e,0),Du(e,t,0,!0);break}e:{switch(u=e,s){case Fs:case Z0:throw Error("Root did not complete. This is a bug in React.");case _d:if((t&4194048)!==t)break;case Eg:Du(u,t,ei,!zr);break e;case Bm:ea=null;break;case Xy:case fS:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)Uh(u,l,t,ea,W0,Cg,ei,Ur,Rd);else{if((t&62914560)===t&&(c=Ky+hS-Xi(),10<c)){if(Du(u,t,ei,!zr),hn(u,0,!0)!==0)break e;u.timeoutHandle=RS(Rn.bind(null,u,l,ea,W0,Cg,t,ei,Ur,Rd,zr,s,OT,p1,0),c);break e}Rn(u,l,ea,W0,Cg,t,ei,Ur,Rd,zr,s,DT,p1,0)}}}break}while(!0);va(e)}function Rn(e,t,l,u,s,c,h,v,S,x,N,Q,k,$){if(e.timeoutHandle=wd,Q=t.subtreeFlags,(Q&8192||(Q&16785408)===16785408)&&(lv={stylesheets:null,count:0,unsuspend:jv},Co(t),Q=Qv(),Q!==null)){e.cancelPendingCommit=Q(Uh.bind(null,e,t,c,l,u,s,h,v,S,N,zT,k,$)),Du(e,c,h,!x);return}Uh(e,t,c,l,u,s,h,v,S)}function kv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var s=l[u],c=s.getSnapshot;s=s.value;try{if(!Il(c(),s))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Du(e,t,l,u){t&=~Jy,t&=~Ur,e.suspendedLanes|=t,e.pingedLanes&=~t,u&&(e.warmLanes|=t),u=e.expirationTimes;for(var s=t;0<s;){var c=31-Wn(s),h=1<<c;u[c]=-1,s&=~h}l!==0&&re(e,l,t)}function Os(){return(Tt&(Pl|Qu))===Fa?(ws(0),!1):!0}function Ch(){if(lt!==null){if(At===Ca)var e=lt.return;else e=lt,ms(),Xa(e),Dm=null,G0=0,e=lt;for(;e!==null;)dp(e.alternate,e),e=e.return;lt=null}}function Us(e,t){var l=e.timeoutHandle;l!==wd&&(e.timeoutHandle=wd,XT(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ch(),Ut=e,lt=l=Ll(e.current,null),it=t,At=Ca,Pa=null,zr=!1,Lm=Aa(e,t),$y=!1,dn=Fs,Rd=ei=Jy=Ur=Or=0,ea=I0=null,Cg=!1,(t&8)!==0&&(t|=t&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=t;0<u;){var s=31-Wn(u),c=1<<s;t|=e[s],u&=~c}return Xo=t,oo(),t=h1(),1e3<t-d1&&(G.recentlyCreatedOwnerStacks=0,d1=t),Gu.discardPendingWarnings(),l}function jf(e,t){Ge=null,G.H=Tg,G.getCurrentStack=null,zl=!1,Kl=null,t===L0||t===vg?(t=Hc(),At=J0):t===y1?(t=Hc(),At=dS):At=t===nS?Zy:t!==null&&typeof t=="object"&&typeof t.then=="function"?Nm:$0,Pa=t;var l=lt;if(l===null)dn=Z0,Kc(e,Zn(t,e.current));else switch(l.mode&cl&&sa(l),Tn(),At){case $0:he!==null&&typeof he.markComponentErrored=="function"&&he.markComponentErrored(l,t,it);break;case Ad:case Md:case J0:case Nm:case K0:he!==null&&typeof he.markComponentSuspended=="function"&&he.markComponentSuspended(l,t,it)}}function _h(){var e=G.H;return G.H=Tg,e===null?Tg:e}function Mp(){var e=G.A;return G.A=AT,e}function Ah(){dn=_d,zr||(it&4194048)!==it&&tu.current!==null||(Lm=!0),(Or&134217727)===0&&(Ur&134217727)===0||Ut===null||Du(Ut,it,ei,!1)}function Mh(e,t,l){var u=Tt;Tt|=Pl;var s=_h(),c=Mp();if(Ut!==e||it!==t){if(tn){var h=e.memoizedUpdaters;0<h.size&&(lr(e,it),h.clear()),Ot(e,t)}W0=null,Us(e,t)}Ul(t),t=!1,h=dn;e:do try{if(At!==Ca&&lt!==null){var v=lt,S=Pa;switch(At){case Zy:Ch(),h=Eg;break e;case J0:case Ad:case Md:case Nm:tu.current===null&&(t=!0);var x=At;if(At=Ca,Pa=null,_o(e,v,S,x),l&&Lm){h=Fs;break e}break;default:x=At,At=Ca,Pa=null,_o(e,v,S,x)}}Rh(),h=dn;break}catch(N){jf(e,N)}while(!0);return t&&e.shellSuspendCounter++,ms(),Tt=u,G.H=s,G.A=c,ti(),lt===null&&(Ut=null,it=0,oo()),h}function Rh(){for(;lt!==null;)zp(lt)}function Rp(e,t){var l=Tt;Tt|=Pl;var u=_h(),s=Mp();if(Ut!==e||it!==t){if(tn){var c=e.memoizedUpdaters;0<c.size&&(lr(e,it),c.clear()),Ot(e,t)}W0=null,_g=Xi()+mS,Us(e,t)}else Lm=Aa(e,t);Ul(t);e:do try{if(At!==Ca&&lt!==null)t:switch(t=lt,c=Pa,At){case $0:At=Ca,Pa=null,_o(e,t,c,$0);break;case Ad:case Md:if(wc(c)){At=Ca,Pa=null,Dh(t);break}t=function(){At!==Ad&&At!==Md||Ut!==e||(At=K0),va(e)},c.then(t,t);break e;case J0:At=K0;break e;case dS:At=Qy;break e;case K0:wc(c)?(At=Ca,Pa=null,Dh(t)):(At=Ca,Pa=null,_o(e,t,c,K0));break;case Qy:var h=null;switch(lt.tag){case 26:h=lt.memoizedState;case 5:case 27:var v=lt;if(!h||Kf(h)){At=Ca,Pa=null;var S=v.sibling;if(S!==null)lt=S;else{var x=v.return;x!==null?(lt=x,Xf(x)):lt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}At=Ca,Pa=null,_o(e,t,c,Qy);break;case Nm:At=Ca,Pa=null,_o(e,t,c,Nm);break;case Zy:Ch(),dn=Eg;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?Rh():Dp();break}catch(N){jf(e,N)}while(!0);return ms(),G.H=u,G.A=s,Tt=l,lt!==null?(he!==null&&typeof he.markRenderYielded=="function"&&he.markRenderYielded(),Fs):(ti(),Ut=null,it=0,oo(),dn)}function Dp(){for(;lt!==null&&!Fv();)zp(lt)}function zp(e){var t=e.alternate;(e.mode&cl)!==qt?(ps(e),t=ye(e,yh,t,e,Xo),sa(e)):t=ye(e,yh,t,e,Xo),e.memoizedProps=e.pendingProps,t===null?Xf(e):lt=t}function Dh(e){var t=ye(e,zh,e);e.memoizedProps=e.pendingProps,t===null?Xf(e):lt=t}function zh(e){var t=e.alternate,l=(e.mode&cl)!==qt;switch(l&&ps(e),e.tag){case 15:case 0:t=op(t,e,e.pendingProps,e.type,void 0,it);break;case 11:t=op(t,e,e.pendingProps,e.type.render,e.ref,it);break;case 5:Xa(e);default:dp(t,e),e=lt=Sc(e,Xo),t=yh(t,e,Xo)}return l&&sa(e),t}function _o(e,t,l,u){ms(),Xa(t),Dm=null,G0=0;var s=t.return;try{if(zf(e,s,t,l,it)){dn=Z0,Kc(e,Zn(l,e.current)),lt=null;return}}catch(c){if(s!==null)throw lt=s,c;dn=Z0,Kc(e,Zn(l,e.current)),lt=null;return}t.flags&32768?(mt||u===$0?e=!0:Lm||(it&536870912)!==0?e=!1:(zr=e=!0,(u===Ad||u===Md||u===J0||u===Nm)&&(u=tu.current,u!==null&&u.tag===13&&(u.flags|=16384))),Oh(t,e)):Xf(t)}function Xf(e){var t=e;do{if((t.flags&32768)!==0){Oh(t,zr);return}var l=t.alternate;if(e=t.return,ps(t),l=ye(t,Mv,l,t,Xo),(t.mode&cl)!==qt&&Ti(t),l!==null){lt=l;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);dn===Fs&&(dn=fS)}function Oh(e,t){do{var l=Rv(e.alternate,e);if(l!==null){l.flags&=32767,lt=l;return}if((e.mode&cl)!==qt){Ti(e),l=e.actualDuration;for(var u=e.child;u!==null;)l+=u.actualDuration,u=u.sibling;e.actualDuration=l}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){lt=e;return}lt=e=l}while(e!==null);dn=Eg,lt=null}function Uh(e,t,l,u,s,c,h,v,S){e.cancelPendingCommit=null;do er();while(fl!==Dd);if(Gu.flushLegacyContextWarning(),Gu.flushPendingUnsafeLifecycleWarnings(),(Tt&(Pl|Qu))!==Fa)throw Error("Should not already be working.");if(he!==null&&typeof he.markCommitStarted=="function"&&he.markCommitStarted(l),t===null)xt();else{if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(c=t.lanes|t.childLanes,c|=Ey,cu(e,l,c,h,v,S),e===Ut&&(lt=Ut=null,it=0),qm=t,Hr=e,kr=l,Wy=c,Fy=s,yS=u,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Hp(yr,function(){return Qf(),null})):(e.callbackNode=null,e.callbackPriority=0),dg=Cm(),u=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||u){u=G.T,G.T=null,s=Be.p,Be.p=Yn,h=Tt,Tt|=Qu;try{Th(e,t,l)}finally{Tt=h,Be.p=s,G.T=u}}fl=pS,Hi(),wh(),Bv()}}function Hi(){if(fl===pS){fl=Dd;var e=Hr,t=qm,l=kr,u=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||u){u=G.T,G.T=null;var s=Be.p;Be.p=Yn;var c=Tt;Tt|=Qu;try{Hm=l,km=e,xp(t,e),km=Hm=null,l=cb;var h=uf(e.containerInfo),v=l.focusedElem,S=l.selectionRange;if(h!==v&&v&&v.ownerDocument&&af(v.ownerDocument.documentElement,v)){if(S!==null&&vc(v)){var x=S.start,N=S.end;if(N===void 0&&(N=x),"selectionStart"in v)v.selectionStart=x,v.selectionEnd=Math.min(N,v.value.length);else{var Q=v.ownerDocument||document,k=Q&&Q.defaultView||window;if(k.getSelection){var $=k.getSelection(),Se=v.textContent.length,Ne=Math.min(S.start,Se),wt=S.end===void 0?Ne:Math.min(S.end,Se);!$.extend&&Ne>wt&&(h=wt,wt=Ne,Ne=h);var ot=pc(v,Ne),_=pc(v,wt);if(ot&&_&&($.rangeCount!==1||$.anchorNode!==ot.node||$.anchorOffset!==ot.offset||$.focusNode!==_.node||$.focusOffset!==_.offset)){var A=Q.createRange();A.setStart(ot.node,ot.offset),$.removeAllRanges(),Ne>wt?($.addRange(A),$.extend(_.node,_.offset)):(A.setEnd(_.node,_.offset),$.addRange(A))}}}}for(Q=[],$=v;$=$.parentNode;)$.nodeType===1&&Q.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var R=Q[v];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}Vg=!!sb,cb=sb=null}finally{Tt=c,Be.p=s,G.T=u}}e.current=t,fl=vS}}function wh(){if(fl===vS){fl=Dd;var e=Hr,t=qm,l=kr,u=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||u){u=G.T,G.T=null;var s=Be.p;Be.p=Yn;var c=Tt;Tt|=Qu;try{he!==null&&typeof he.markLayoutEffectsStarted=="function"&&he.markLayoutEffectsStarted(l),Hm=l,km=e,Sp(e,t.alternate,t),km=Hm=null,he!==null&&typeof he.markLayoutEffectsStopped=="function"&&he.markLayoutEffectsStopped()}finally{Tt=c,Be.p=s,G.T=u}}fl=gS}}function Bv(){if(fl===UT||fl===gS){fl=Dd,fy();var e=Hr,t=qm,l=kr,u=yS,s=(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0;s?fl=Iy:(fl=Dd,qm=Hr=null,ki(e,e.pendingLanes),zd=0,P0=null);var c=e.pendingLanes;if(c===0&&(wr=null),s||nr(e),s=ru(l),t=t.stateNode,qn&&typeof qn.onCommitFiberRoot=="function")try{var h=(t.current.flags&128)===128;switch(s){case Yn:var v=nm;break;case Wa:v=od;break;case Lu:v=yr;break;case um:v=sd;break;default:v=yr}qn.onCommitFiberRoot(ko,t,v,h)}catch(Q){Rl||(Rl=!0,console.error("React instrumentation encountered an error: %s",Q))}if(tn&&e.memoizedUpdaters.clear(),_p(),u!==null){h=G.T,v=Be.p,Be.p=Yn,G.T=null;try{var S=e.onRecoverableError;for(t=0;t<u.length;t++){var x=u[t],N=Nv(x.stack);ye(x.source,S,x.value,N)}}finally{G.T=h,Be.p=v}}(kr&3)!==0&&er(),va(e),c=e.pendingLanes,(l&4194090)!==0&&(c&42)!==0?(mg=!0,e===Py?F0++:(F0=0,Py=e)):F0=0,ws(0),xt()}}function Nv(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function ki(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yl(t)))}function er(e){return Hi(),wh(),Bv(),Qf()}function Qf(){if(fl!==Iy)return!1;var e=Hr,t=Wy;Wy=0;var l=ru(kr),u=Lu>l?Lu:l;l=G.T;var s=Be.p;try{Be.p=u,G.T=null,u=Fy,Fy=null;var c=Hr,h=kr;if(fl=Dd,qm=Hr=null,kr=0,(Tt&(Pl|Qu))!==Fa)throw Error("Cannot flush passive effects while already rendering.");eb=!0,Ag=!1,he!==null&&typeof he.markPassiveEffectsStarted=="function"&&he.markPassiveEffectsStarted(h);var v=Tt;if(Tt|=Qu,Ep(c.current),qf(c,c.current,h,u),he!==null&&typeof he.markPassiveEffectsStopped=="function"&&he.markPassiveEffectsStopped(),nr(c),Tt=v,ws(0,!1),Ag?c===P0?zd++:(zd=0,P0=c):zd=0,Ag=eb=!1,qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(ko,c)}catch(x){Rl||(Rl=!0,console.error("React instrumentation encountered an error: %s",x))}var S=c.current.stateNode;return S.effectDuration=0,S.passiveEffectDuration=0,!0}finally{Be.p=s,G.T=l,ki(e,t)}}function tr(e,t,l){t=Zn(l,t),t=Jn(e.stateNode,t,2),e=De(e,t,2),e!==null&&(tl(e,2),va(e))}function Oe(e,t,l){if(Ym=!1,e.tag===3)tr(e,e,l);else{for(;t!==null;){if(t.tag===3){tr(t,e,l);return}if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(wr===null||!wr.has(u))){e=Zn(l,e),l=Kt(2),u=De(t,l,2),u!==null&&(Df(l,u,t,e),tl(u,2),va(u));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
1086
+
1087
+ Error message:
1088
+
1089
+ %s`,l)}}function Op(e,t,l){var u=e.pingCache;if(u===null){u=e.pingCache=new RT;var s=new Set;u.set(t,s)}else s=u.get(t),s===void 0&&(s=new Set,u.set(t,s));s.has(l)||($y=!0,s.add(l),u=ay.bind(null,e,t,l),tn&&lr(e,l),t.then(u,u))}function ay(e,t,l){var u=e.pingCache;u!==null&&u.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ap()&&G.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
1090
+
1091
+ When testing, code that resolves suspended data should be wrapped into act(...):
1092
+
1093
+ act(() => {
1094
+ /* finish loading suspended data */
1095
+ });
1096
+ /* assert on the output */
1097
+
1098
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ut===e&&(it&l)===l&&(dn===_d||dn===Xy&&(it&62914560)===it&&Xi()-Ky<hS?(Tt&Pl)===Fa&&Us(e,0):Jy|=l,Rd===it&&(Rd=0)),va(e)}function Up(e,t){t===0&&(t=Ma()),e=wn(e,t),e!==null&&(tl(e,t),va(e))}function Zf(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Up(e,l)}function Ao(e,t){var l=0;switch(e.tag){case 13:var u=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),Up(e,l)}function Hh(e,t,l){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var u=e,s=t,c=s.type===hr;c=l||c,s.tag!==22?s.flags&67108864?c&&ye(s,wp,u,s,(s.mode&c1)===qt):Hh(u,s,c):s.memoizedState===null&&(c&&s.flags&8192?ye(s,wp,u,s):s.subtreeFlags&67108864&&ye(s,Hh,u,s,c)),t=t.sibling}}function wp(e,t){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;$e(!0);try{Ql(t),l&&Gf(t),Ru(e,t.alternate,t,!1),l&&Eh(e,t,0,null,!1,0)}finally{$e(!1)}}function nr(e){var t=!0;e.current.mode&(Ol|Vu)||(t=!1),Hh(e,e.current,t)}function Ka(e){if((Tt&Pl)===Fa){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=me(e)||"ReactComponent",Mg!==null){if(Mg.has(t))return;Mg.add(t)}else Mg=new Set([t]);ye(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function lr(e,t){tn&&e.memoizedUpdaters.forEach(function(l){xn(e,l,t)})}function Hp(e,t){var l=G.actQueue;return l!==null?(l.push(t),kT):tm(e,t)}function Lv(e){Ap()&&G.actQueue===null&&ye(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
1099
+
1100
+ When testing, code that causes React state updates should be wrapped into act(...):
1101
+
1102
+ act(() => {
1103
+ /* fire events that update state */
1104
+ });
1105
+ /* assert on the output */
1106
+
1107
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,me(e))})}function va(e){e!==Vm&&e.next===null&&(Vm===null?Rg=Vm=e:Vm=Vm.next=e),Dg=!0,G.actQueue!==null?nb||(nb=!0,yn()):tb||(tb=!0,yn())}function ws(e,t){if(!lb&&Dg){lb=!0;do for(var l=!1,u=Rg;u!==null;){if(e!==0){var s=u.pendingLanes;if(s===0)var c=0;else{var h=u.suspendedLanes,v=u.pingedLanes;c=(1<<31-Wn(42|e)+1)-1,c&=s&~(h&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Nh(u,c))}else c=it,c=hn(u,u===Ut?c:0,u.cancelPendingCommit!==null||u.timeoutHandle!==wd),(c&3)===0||Aa(u,c)||(l=!0,Nh(u,c));u=u.next}while(l);lb=!1}}function kh(){Bh()}function Bh(){Dg=nb=tb=!1;var e=0;Od!==0&&(ar()&&(e=Od),Od=0);for(var t=Xi(),l=null,u=Rg;u!==null;){var s=u.next,c=Bi(u,t);c===0?(u.next=null,l===null?Rg=s:l.next=s,s===null&&(Vm=l)):(l=u,(e!==0||(c&3)!==0)&&(Dg=!0)),u=s}ws(e)}function Bi(e,t){for(var l=e.suspendedLanes,u=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Wn(c),v=1<<h,S=s[h];S===-1?((v&l)===0||(v&u)!==0)&&(s[h]=$u(v,t)):S<=t&&(e.expiredLanes|=v),c&=~v}if(t=Ut,l=it,l=hn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==wd),u=e.callbackNode,l===0||e===t&&(At===Ad||At===Md)||e.cancelPendingCommit!==null)return u!==null&&Lh(u),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Aa(e,l)){if(t=l&-l,t!==e.callbackPriority||G.actQueue!==null&&u!==ab)Lh(u);else return t;switch(ru(l)){case Yn:case Wa:l=od;break;case Lu:l=yr;break;case um:l=sd;break;default:l=yr}return u=Wt.bind(null,e),G.actQueue!==null?(G.actQueue.push(u),l=ab):l=tm(l,u),e.callbackPriority=t,e.callbackNode=l,t}return u!==null&&Lh(u),e.callbackPriority=2,e.callbackNode=null,2}function Wt(e,t){if(mg=hg=!1,fl!==Dd&&fl!==Iy)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(er()&&e.callbackNode!==l)return null;var u=it;return u=hn(e,e===Ut?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==wd),u===0?null:(gn(e,u,t),Bi(e,Xi()),e.callbackNode!=null&&e.callbackNode===l?Wt.bind(null,e):null)}function Nh(e,t){if(er())return null;hg=mg,mg=!1,gn(e,t,!0)}function Lh(e){e!==ab&&e!==null&&ry(e)}function yn(){G.actQueue!==null&&G.actQueue.push(function(){return Bh(),null}),QT(function(){(Tt&(Pl|Qu))!==Fa?tm(nm,kh):Bh()})}function kp(){return Od===0&&(Od=ou()),Od}function Bp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(ie(e,"action"),gu(""+e))}function Np(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Nt(e,t,l,u,s){if(t==="submit"&&l&&l.stateNode===s){var c=Bp((s[Dl]||null).action),h=u.submitter;h&&(t=(t=h[Dl]||null)?Bp(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var v=new Me("action","action",null,u,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Od!==0){var S=h?Np(s,h):new FormData(s),x={pending:!0,data:S,method:s.method,action:c};Object.freeze(x),Ss(l,x,null,S)}}else typeof c=="function"&&(v.preventDefault(),S=h?Np(s,h):new FormData(s),x={pending:!0,data:S,method:s.method,action:c},Object.freeze(x),Ss(l,x,c,S))},currentTarget:s}]})}}function kn(e,t,l){e.currentTarget=l;try{t(e)}catch(u){qy(u)}e.currentTarget=null}function Ni(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var u=e[l];e:{var s=void 0,c=u.event;if(u=u.listeners,t)for(var h=u.length-1;0<=h;h--){var v=u[h],S=v.instance,x=v.currentTarget;if(v=v.listener,S!==s&&c.isPropagationStopped())break e;S!==null?ye(S,kn,c,v,x):kn(c,v,x),s=S}else for(h=0;h<u.length;h++){if(v=u[h],S=v.instance,x=v.currentTarget,v=v.listener,S!==s&&c.isPropagationStopped())break e;S!==null?ye(S,kn,c,v,x):kn(c,v,x),s=S}}}}function Pe(e,t){ib.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var l=t[r0];l===void 0&&(l=t[r0]=new Set);var u=e+"__bubble";l.has(u)||(Yh(t,e,2,!1),l.add(u))}function qh(e,t,l){ib.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=4),Yh(l,e,u,t)}function Lp(e){if(!e[zg]){e[zg]=!0,eg.forEach(function(l){l!=="selectionchange"&&(ib.has(l)||qh(l,!1,e),qh(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zg]||(t[zg]=!0,qh("selectionchange",!1,t))}}function Yh(e,t,l,u){switch(Wh(t)){case Yn:var s=oy;break;case Wa:s=Ih;break;default:s=zo}l=s.bind(null,t,l,e),s=void 0,!H||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),u?s!==void 0?e.addEventListener(t,l,{capture:!0,passive:s}):e.addEventListener(t,l,!0):s!==void 0?e.addEventListener(t,l,{passive:s}):e.addEventListener(t,l,!1)}function il(e,t,l,u,s){var c=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var h=u.tag;if(h===3||h===4){var v=u.stateNode.containerInfo;if(v===s)break;if(h===4)for(h=u.return;h!==null;){var S=h.tag;if((S===3||S===4)&&h.stateNode.containerInfo===s)return;h=h.return}for(;v!==null;){if(h=ta(v),h===null)return;if(S=h.tag,S===5||S===6||S===26||S===27){u=c=h;continue e}v=v.parentNode}}u=u.return}as(function(){var x=c,N=fi(l),Q=[];e:{var k=s1.get(e);if(k!==void 0){var $=Me,Se=e;switch(e){case"keypress":if(yu(l)===0)break e;case"keydown":case"keyup":$=F2;break;case"focusin":Se="focus",$=st;break;case"focusout":Se="blur",$=st;break;case"beforeblur":case"afterblur":$=st;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=We;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=Ue;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=tT;break;case a1:case i1:case u1:$=py;break;case o1:$=lT;break;case"scroll":case"scrollend":$=O;break;case"wheel":$=iT;break;case"copy":case"cut":case"paste":$=Q2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Ib;break;case"toggle":case"beforetoggle":$=oT}var Ne=(t&4)!==0,wt=!Ne&&(e==="scroll"||e==="scrollend"),ot=Ne?k!==null?k+"Capture":null:k;Ne=[];for(var _=x,A;_!==null;){var R=_;if(A=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||A===null||ot===null||(R=aa(_,ot),R!=null&&Ne.push(ul(_,R,A))),wt)break;_=_.return}0<Ne.length&&(k=new $(k,Se,null,l,N),Q.push({event:k,listeners:Ne}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",k&&l!==r&&(Se=l.relatedTarget||l.fromElement)&&(ta(Se)||Se[No]))break e;if(($||k)&&(k=N.window===N?N:(k=N.ownerDocument)?k.defaultView||k.parentWindow:window,$?(Se=l.relatedTarget||l.toElement,$=x,Se=Se?ta(Se):null,Se!==null&&(wt=de(Se),Ne=Se.tag,Se!==wt||Ne!==5&&Ne!==27&&Ne!==6)&&(Se=null)):($=null,Se=x),$!==Se)){if(Ne=We,R="onMouseLeave",ot="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=Ib,R="onPointerLeave",ot="onPointerEnter",_="pointer"),wt=$==null?k:Ra($),A=Se==null?k:Ra(Se),k=new Ne(R,_+"leave",$,l,N),k.target=wt,k.relatedTarget=A,R=null,ta(N)===x&&(Ne=new Ne(ot,_+"enter",Se,l,N),Ne.target=A,Ne.relatedTarget=wt,R=Ne),wt=R,$&&Se)t:{for(Ne=$,ot=Se,_=0,A=Ne;A;A=Dn(A))_++;for(A=0,R=ot;R;R=Dn(R))A++;for(;0<_-A;)Ne=Dn(Ne),_--;for(;0<A-_;)ot=Dn(ot),A--;for(;_--;){if(Ne===ot||ot!==null&&Ne===ot.alternate)break t;Ne=Dn(Ne),ot=Dn(ot)}Ne=null}else Ne=null;$!==null&&qp(Q,k,$,Ne,!1),Se!==null&&wt!==null&&qp(Q,wt,Se,Ne,!0)}}e:{if(k=x?Ra(x):window,$=k.nodeName&&k.nodeName.toLowerCase(),$==="select"||$==="input"&&k.type==="file")var J=hc;else if(ef(k))if(n1)J=Gd;else{J=mc;var ce=Yd}else $=k.nodeName,!$||$.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?x&&ri(x.elementType)&&(J=hc):J=Vd;if(J&&(J=J(e,x))){ss(Q,J,l,N);break e}ce&&ce(e,k,x),e==="focusout"&&x&&k.type==="number"&&x.memoizedProps.value!=null&&Fo(k,"number",k.value)}switch(ce=x?Ra(x):window,e){case"focusin":(ef(ce)||ce.contentEditable==="true")&&(vm=ce,gy=x,z0=null);break;case"focusout":z0=gy=vm=null;break;case"mousedown":yy=!0;break;case"contextmenu":case"mouseup":case"dragend":yy=!1,of(Q,l,N);break;case"selectionchange":if(fT)break;case"keydown":case"keyup":of(Q,l,N)}var Qe;if(vy)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 pm?_n(e,l)&&(Te="onCompositionEnd"):e==="keydown"&&l.keyCode===Wb&&(Te="onCompositionStart");Te&&(Fb&&l.locale!=="ko"&&(pm||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&pm&&(Qe=ia()):(P=N,B="value"in P?P.value:P.textContent,pm=!0)),ce=$f(x,Te),0<ce.length&&(Te=new Kb(Te,e,null,l,N),Q.push({event:Te,listeners:ce}),Qe?Te.data=Qe:(Qe=ka(l),Qe!==null&&(Te.data=Qe)))),(Qe=cT?os(e,l):ao(e,l))&&(Te=$f(x,"onBeforeInput"),0<Te.length&&(ce=new $2("onBeforeInput","beforeinput",null,l,N),Q.push({event:ce,listeners:Te}),ce.data=Qe)),Nt(Q,e,x,l,N)}Ni(Q,t)})}function ul(e,t,l){return{instance:e,listener:t,currentTarget:l}}function $f(e,t){for(var l=t+"Capture",u=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=aa(e,l),s!=null&&u.unshift(ul(e,s,c)),s=aa(e,t),s!=null&&u.push(ul(e,s,c))),e.tag===3)return u;e=e.return}return[]}function Dn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qp(e,t,l,u,s){for(var c=t._reactName,h=[];l!==null&&l!==u;){var v=l,S=v.alternate,x=v.stateNode;if(v=v.tag,S!==null&&S===u)break;v!==5&&v!==26&&v!==27||x===null||(S=x,s?(x=aa(l,c),x!=null&&h.unshift(ul(l,x,S))):s||(x=aa(l,c),x!=null&&h.push(ul(l,x,S)))),l=l.return}h.length!==0&&e.push({event:t,listeners:h})}function Li(e,t){vu(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||A0||(A0=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var l={registrationNameDependencies:Ta,possibleRegistrationNames:Gs};ri(e)||typeof t.is=="string"||rc(e,t,l),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Lt(e,t,l,u){t!==l&&(l=Bn(l),Bn(t)!==l&&(u[e]=t))}function Mo(e,t,l){t.forEach(function(u){l[Vp(u)]=u==="style"?ks(e):e.getAttribute(u)})}function ga(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Vh(e,t){return e=e.namespaceURI===pd||e.namespaceURI===_r?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Bn(e){return q(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",ge(e)),pe(e)),(typeof e=="string"?e:""+e).replace(BT,`
1108
+ `).replace(NT,"")}function Yp(e,t){return t=Bn(t),Bn(e)===t}function zu(){}function dt(e,t,l,u,s,c){switch(l){case"children":typeof u=="string"?(no(u,t,!1),t==="body"||t==="textarea"&&u===""||ci(e,u)):(typeof u=="number"||typeof u=="bigint")&&(no(""+u,t,!1),t!=="body"&&ci(e,""+u));break;case"className":Ku(e,"class",u);break;case"tabIndex":Ku(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ku(e,l,u);break;case"style":lo(e,u,c);break;case"data":if(t!=="object"){Ku(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||l!=="href")){console.error(l==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',l,l),e.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(l);break}ie(u,l),u=gu(""+u),e.setAttribute(l,u);break;case"action":case"formAction":if(u!=null&&(t==="form"?l==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof u=="function"&&(s.encType==null&&s.method==null||wg||(wg=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),s.target==null||Ug||(Ug=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?l==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||s.type==="submit"||s.type==="image"||Og?t!=="button"||s.type==null||s.type==="submit"||Og?typeof u=="function"&&(s.name==null||ES||(ES=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),s.formEncType==null&&s.formMethod==null||wg||(wg=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),s.formTarget==null||Ug||(Ug=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Og=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Og=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(l==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof u=="function"){e.setAttribute(l,"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 c=="function"&&(l==="formAction"?(t!=="input"&&dt(e,t,"name",s.name,s,null),dt(e,t,"formEncType",s.formEncType,s,null),dt(e,t,"formMethod",s.formMethod,s,null),dt(e,t,"formTarget",s.formTarget,s,null)):(dt(e,t,"encType",s.encType,s,null),dt(e,t,"method",s.method,s,null),dt(e,t,"target",s.target,s,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(l);break}ie(u,l),u=gu(""+u),e.setAttribute(l,u);break;case"onClick":u!=null&&(typeof u!="function"&&ga(l,u),e.onclick=zu);break;case"onScroll":u!=null&&(typeof u!="function"&&ga(l,u),Pe("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&ga(l,u),Pe("scrollend",e));break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=u.__html,l!=null){if(s.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=l}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}ie(u,l),l=gu(""+u),e.setAttributeNS(Ud,"xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?(ie(u,l),e.setAttribute(l,""+u)):e.removeAttribute(l);break;case"inert":u!==""||Hg[l]||(Hg[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l));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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":u===!0?e.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?(ie(u,l),e.setAttribute(l,u)):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?(ie(u,l),e.setAttribute(l,u)):e.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(l):(ie(u,l),e.setAttribute(l,u));break;case"popover":Pe("beforetoggle",e),Pe("toggle",e),Ju(e,"popover",u);break;case"xlinkActuate":hl(e,Ud,"xlink:actuate",u);break;case"xlinkArcrole":hl(e,Ud,"xlink:arcrole",u);break;case"xlinkRole":hl(e,Ud,"xlink:role",u);break;case"xlinkShow":hl(e,Ud,"xlink:show",u);break;case"xlinkTitle":hl(e,Ud,"xlink:title",u);break;case"xlinkType":hl(e,Ud,"xlink:type",u);break;case"xmlBase":hl(e,ub,"xml:base",u);break;case"xmlLang":hl(e,ub,"xml:lang",u);break;case"xmlSpace":hl(e,ub,"xml:space",u);break;case"is":c!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ju(e,"is",u);break;case"innerText":case"textContent":break;case"popoverTarget":CS||u==null||typeof u!="object"||(CS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",u));default:!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N"?(l=ls(l),Ju(e,l,u)):Ta.hasOwnProperty(l)&&u!=null&&typeof u!="function"&&ga(l,u)}}function Hs(e,t,l,u,s,c){switch(l){case"style":lo(e,u,c);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=u.__html,l!=null){if(s.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=l}}break;case"children":typeof u=="string"?ci(e,u):(typeof u=="number"||typeof u=="bigint")&&ci(e,""+u);break;case"onScroll":u!=null&&(typeof u!="function"&&ga(l,u),Pe("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&ga(l,u),Pe("scrollend",e));break;case"onClick":u!=null&&(typeof u!="function"&&ga(l,u),e.onclick=zu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ta.hasOwnProperty(l))u!=null&&typeof u!="function"&&ga(l,u);else e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),t=l.slice(2,s?l.length-7:void 0),c=e[Dl]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof u=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,u,s);break e}l in e?e[l]=u:u===!0?e.setAttribute(l,""):Ju(e,l,u)}}}function Ft(e,t,l){switch(Li(t,l),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 u=!1,s=!1,c;for(c in l)if(l.hasOwnProperty(c)){var h=l[c];if(h!=null)switch(c){case"src":u=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(e,t,c,h,l,null)}}s&&dt(e,t,"srcSet",l.srcSet,l,null),u&&dt(e,t,"src",l.src,l,null);return;case"input":za("input",l),Pe("invalid",e);var v=c=h=s=null,S=null,x=null;for(u in l)if(l.hasOwnProperty(u)){var N=l[u];if(N!=null)switch(u){case"name":s=N;break;case"type":h=N;break;case"checked":S=N;break;case"defaultChecked":x=N;break;case"value":c=N;break;case"defaultValue":v=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:dt(e,t,u,N,l,null)}}Oa(e,l),Kr(e,c,v,S,x,h,s,!1),na(e);return;case"select":za("select",l),Pe("invalid",e),u=h=c=null;for(s in l)if(l.hasOwnProperty(s)&&(v=l[s],v!=null))switch(s){case"value":c=v;break;case"defaultValue":h=v;break;case"multiple":u=v;default:dt(e,t,s,v,l,null)}Pu(e,l),t=c,l=h,e.multiple=!!u,t!=null?la(e,!!u,t,!1):l!=null&&la(e,!!u,l,!0);return;case"textarea":za("textarea",l),Pe("invalid",e),c=s=u=null;for(h in l)if(l.hasOwnProperty(h)&&(v=l[h],v!=null))switch(h){case"value":u=v;break;case"defaultValue":s=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:dt(e,t,h,v,l,null)}Bl(e,l),ic(e,u,s,c),na(e);return;case"option":ac(e,l);for(S in l)if(l.hasOwnProperty(S)&&(u=l[S],u!=null))switch(S){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:dt(e,t,S,u,l,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(u=0;u<ev.length;u++)Pe(ev[u],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(x in l)if(l.hasOwnProperty(x)&&(u=l[x],u!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(e,t,x,u,l,null)}return;default:if(ri(t)){for(N in l)l.hasOwnProperty(N)&&(u=l[N],u!==void 0&&Hs(e,t,N,u,l,void 0));return}}for(v in l)l.hasOwnProperty(v)&&(u=l[v],u!=null&&dt(e,t,v,u,l,null))}function qv(e,t,l,u){switch(Li(t,u),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,h=null,v=null,S=null,x=null,N=null;for($ in l){var Q=l[$];if(l.hasOwnProperty($)&&Q!=null)switch($){case"checked":break;case"value":break;case"defaultValue":S=Q;default:u.hasOwnProperty($)||dt(e,t,$,null,u,Q)}}for(var k in u){var $=u[k];if(Q=l[k],u.hasOwnProperty(k)&&($!=null||Q!=null))switch(k){case"type":c=$;break;case"name":s=$;break;case"checked":x=$;break;case"defaultChecked":N=$;break;case"value":h=$;break;case"defaultValue":v=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:$!==Q&&dt(e,t,k,$,u,Q)}}t=l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null,u=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,t||!u||xS||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),xS=!0),!t||u||TS||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),TS=!0),Ua(e,h,v,S,x,N,c,s);return;case"select":$=h=v=k=null;for(c in l)if(S=l[c],l.hasOwnProperty(c)&&S!=null)switch(c){case"value":break;case"multiple":$=S;default:u.hasOwnProperty(c)||dt(e,t,c,null,u,S)}for(s in u)if(c=u[s],S=l[s],u.hasOwnProperty(s)&&(c!=null||S!=null))switch(s){case"value":k=c;break;case"defaultValue":v=c;break;case"multiple":h=c;default:c!==S&&dt(e,t,s,c,u,S)}u=v,t=h,l=$,k!=null?la(e,!!t,k,!1):!!l!=!!t&&(u!=null?la(e,!!t,u,!0):la(e,!!t,t?[]:"",!1));return;case"textarea":$=k=null;for(v in l)if(s=l[v],l.hasOwnProperty(v)&&s!=null&&!u.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:dt(e,t,v,null,u,s)}for(h in u)if(s=u[h],c=l[h],u.hasOwnProperty(h)&&(s!=null||c!=null))switch(h){case"value":k=s;break;case"defaultValue":$=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:s!==c&&dt(e,t,h,s,u,c)}Po(e,k,$);return;case"option":for(var Se in l)if(k=l[Se],l.hasOwnProperty(Se)&&k!=null&&!u.hasOwnProperty(Se))switch(Se){case"selected":e.selected=!1;break;default:dt(e,t,Se,null,u,k)}for(S in u)if(k=u[S],$=l[S],u.hasOwnProperty(S)&&k!==$&&(k!=null||$!=null))switch(S){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:dt(e,t,S,k,u,$)}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 Ne in l)k=l[Ne],l.hasOwnProperty(Ne)&&k!=null&&!u.hasOwnProperty(Ne)&&dt(e,t,Ne,null,u,k);for(x in u)if(k=u[x],$=l[x],u.hasOwnProperty(x)&&k!==$&&(k!=null||$!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:dt(e,t,x,k,u,$)}return;default:if(ri(t)){for(var wt in l)k=l[wt],l.hasOwnProperty(wt)&&k!==void 0&&!u.hasOwnProperty(wt)&&Hs(e,t,wt,void 0,u,k);for(N in u)k=u[N],$=l[N],!u.hasOwnProperty(N)||k===$||k===void 0&&$===void 0||Hs(e,t,N,k,u,$);return}}for(var ot in l)k=l[ot],l.hasOwnProperty(ot)&&k!=null&&!u.hasOwnProperty(ot)&&dt(e,t,ot,null,u,k);for(Q in u)k=u[Q],$=l[Q],!u.hasOwnProperty(Q)||k===$||k==null&&$==null||dt(e,t,Q,k,u,$)}function Vp(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function ks(e){var t={};e=e.style;for(var l=0;l<e.length;l++){var u=e[l];t[u]=e.getPropertyValue(u)}return t}function Gp(e,t,l){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var u,s=u="",c;for(c in t)if(t.hasOwnProperty(c)){var h=t[c];h!=null&&typeof h!="boolean"&&h!==""&&(c.indexOf("--")===0?(ve(h,c),u+=s+c+":"+(""+h).trim()):typeof h!="number"||h===0||md.has(c)?(ve(h,c),u+=s+c.replace(qu,"-$1").toLowerCase().replace(Yu,"-ms-")+":"+(""+h).trim()):u+=s+c.replace(qu,"-$1").toLowerCase().replace(Yu,"-ms-")+":"+h+"px",s=";")}u=u||null,t=e.getAttribute("style"),t!==u&&(u=Bn(u),Bn(t)!==u&&(l.style=ks(e)))}}function ol(e,t,l,u,s,c){if(s.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(ie(u,t),e===""+u)return}Lt(t,e,u,c)}function jp(e,t,l,u,s,c){if(s.delete(l),e=e.getAttribute(l),e===null){switch(typeof u){case"function":case"symbol":return}if(!u)return}else switch(typeof u){case"function":case"symbol":break;default:if(u)return}Lt(t,e,u,c)}function Xp(e,t,l,u,s,c){if(s.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":return}else if(u!=null)switch(typeof u){case"function":case"symbol":break;default:if(ie(u,l),e===""+u)return}Lt(t,e,u,c)}function Yv(e,t,l,u,s,c){if(s.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(u))return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(!isNaN(u)&&(ie(u,t),e===""+u))return}Lt(t,e,u,c)}function yt(e,t,l,u,s,c){if(s.delete(l),e=e.getAttribute(l),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(ie(u,t),l=gu(""+u),e===l)return}Lt(t,e,u,c)}function Rt(e,t,l,u){for(var s={},c=new Set,h=e.attributes,v=0;v<h.length;v++)switch(h[v].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:c.add(h[v].name)}if(ri(t)){for(var S in l)if(l.hasOwnProperty(S)){var x=l[S];if(x!=null){if(Ta.hasOwnProperty(S))typeof x!="function"&&ga(S,x);else if(l.suppressHydrationWarning!==!0)switch(S){case"children":typeof x!="string"&&typeof x!="number"||Lt("children",e.textContent,x,s);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":h=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=Vh(e,x),Lt(S,h,x,s));continue;case"style":c.delete(S),Gp(e,x,s);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":c.delete(S.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",S);continue;case"className":c.delete("class"),h=Qr(e,"class",x),Lt("className",h,x,s);continue;default:u.context===ec&&t!=="svg"&&t!=="math"?c.delete(S.toLowerCase()):c.delete(S),h=Qr(e,S,x),Lt(S,h,x,s)}}}}else for(x in l)if(l.hasOwnProperty(x)&&(S=l[x],S!=null)){if(Ta.hasOwnProperty(x))typeof S!="function"&&ga(x,S);else if(l.suppressHydrationWarning!==!0)switch(x){case"children":typeof S!="string"&&typeof S!="number"||Lt("children",e.textContent,S,s);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":h=e.innerHTML,S=S?S.__html:void 0,S!=null&&(S=Vh(e,S),h!==S&&(s[x]={__html:h}));continue;case"className":ol(e,x,"class",S,c,s);continue;case"tabIndex":ol(e,x,"tabindex",S,c,s);continue;case"style":c.delete(x),Gp(e,S,s);continue;case"multiple":c.delete(x),Lt(x,e.multiple,S,s);continue;case"muted":c.delete(x),Lt(x,e.muted,S,s);continue;case"autoFocus":c.delete("autofocus"),Lt(x,e.autofocus,S,s);continue;case"data":if(t!=="object"){c.delete(x),h=e.getAttribute("data"),Lt(x,h,S,s);continue}case"src":case"href":if(!(S!==""||t==="a"&&x==="href"||t==="object"&&x==="data")){console.error(x==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',x,x);continue}yt(e,x,x,S,c,s);continue;case"action":case"formAction":if(h=e.getAttribute(x),typeof S=="function"){c.delete(x.toLowerCase()),x==="formAction"?(c.delete("name"),c.delete("formenctype"),c.delete("formmethod"),c.delete("formtarget")):(c.delete("enctype"),c.delete("method"),c.delete("target"));continue}else if(h===LT){c.delete(x.toLowerCase()),Lt(x,"function",S,s);continue}yt(e,x,x.toLowerCase(),S,c,s);continue;case"xlinkHref":yt(e,x,"xlink:href",S,c,s);continue;case"contentEditable":Xp(e,x,"contenteditable",S,c,s);continue;case"spellCheck":Xp(e,x,"spellcheck",S,c,s);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Xp(e,x,x,S,c,s);continue;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":jp(e,x,x.toLowerCase(),S,c,s);continue;case"capture":case"download":e:{v=e;var N=h=x,Q=s;if(c.delete(N),v=v.getAttribute(N),v===null)switch(typeof S){case"undefined":case"function":case"symbol":break e;default:if(S===!1)break e}else if(S!=null)switch(typeof S){case"function":case"symbol":break;case"boolean":if(S===!0&&v==="")break e;break;default:if(ie(S,h),v===""+S)break e}Lt(h,v,S,Q)}continue;case"cols":case"rows":case"size":case"span":e:{if(v=e,N=h=x,Q=s,c.delete(N),v=v.getAttribute(N),v===null)switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(S)||1>S)break e}else if(S!=null)switch(typeof S){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(S)||1>S)&&(ie(S,h),v===""+S))break e}Lt(h,v,S,Q)}continue;case"rowSpan":Yv(e,x,"rowspan",S,c,s);continue;case"start":Yv(e,x,x,S,c,s);continue;case"xHeight":ol(e,x,"x-height",S,c,s);continue;case"xlinkActuate":ol(e,x,"xlink:actuate",S,c,s);continue;case"xlinkArcrole":ol(e,x,"xlink:arcrole",S,c,s);continue;case"xlinkRole":ol(e,x,"xlink:role",S,c,s);continue;case"xlinkShow":ol(e,x,"xlink:show",S,c,s);continue;case"xlinkTitle":ol(e,x,"xlink:title",S,c,s);continue;case"xlinkType":ol(e,x,"xlink:type",S,c,s);continue;case"xmlBase":ol(e,x,"xml:base",S,c,s);continue;case"xmlLang":ol(e,x,"xml:lang",S,c,s);continue;case"xmlSpace":ol(e,x,"xml:space",S,c,s);continue;case"inert":S!==""||Hg[x]||(Hg[x]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",x)),jp(e,x,x,S,c,s);continue;default:if(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N"){v=ls(x),h=!1,u.context===ec&&t!=="svg"&&t!=="math"?c.delete(v.toLowerCase()):(N=x.toLowerCase(),N=Qs.hasOwnProperty(N)&&Qs[N]||null,N!==null&&N!==x&&(h=!0,c.delete(N)),c.delete(v));e:if(N=e,Q=v,v=S,li(Q))if(N.hasAttribute(Q))N=N.getAttribute(Q),ie(v,Q),v=N===""+v?v:N;else{switch(typeof v){case"function":case"symbol":break e;case"boolean":if(N=Q.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")break e}v=v===void 0?void 0:null}else v=void 0;h||Lt(x,v,S,s)}}}return 0<c.size&&l.suppressHydrationWarning!==!0&&Mo(e,c,s),Object.keys(s).length===0?null:s}function tt(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function nt(e){return e.nodeType===9?e:e.ownerDocument}function bt(e){switch(e){case _r:return Gm;case pd:return Ng;default:return ec}}function _l(e,t){if(e===ec)switch(t){case"svg":return Gm;case"math":return Ng;default:return ec}return e===Gm&&t==="foreignObject"?ec:e}function qi(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}function ar(){var e=window.event;return e&&e.type==="popstate"?e===rb?!1:(rb=e,!0):(rb=null,!1)}function Qp(e){setTimeout(function(){throw e})}function Ou(e,t,l){switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&e.focus();break;case"img":l.src?e.src=l.src:l.srcSet&&(e.srcset=l.srcSet)}}function Pt(e,t,l,u){qv(e,t,l,u),e[Dl]=u}function Uu(e){ci(e,"")}function Bs(e,t,l){e.nodeValue=l}function Yi(e){return e==="head"}function ya(e,t){e.removeChild(t)}function ir(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function ur(e,t){var l=t,u=0,s=0;do{var c=l.nextSibling;if(e.removeChild(l),c&&c.nodeType===8)if(l=c.data,l===Bg){if(0<u&&8>u){l=u;var h=e.ownerDocument;if(l&YT&&rr(h.documentElement),l&VT&&rr(h.body),l&GT)for(l=h.head,rr(l),h=l.firstChild;h;){var v=h.nextSibling,S=h.nodeName;h[Tr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=v}}if(s===0){e.removeChild(c),Ys(t);return}s--}else l===kg||l===Ps||l===tv?s++:u=l.charCodeAt(0)-48;else u=0;l=c}while(l);Ys(t)}function Al(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function Zp(e){e.nodeValue=""}function $p(e,t){t=t[jT],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function Gh(e,t){e.nodeValue=t}function or(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":or(l),fu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ro(e,t,l,u){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[Tr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==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(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){ie(s.name,"name");var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Ln(e.nextSibling),e===null)break}return null}function Nn(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ln(e.nextSibling),e===null))return null;return e}function Vi(e){return e.data===tv||e.data===Ps&&e.ownerDocument.readyState===AS}function sr(e,t){var l=e.ownerDocument;if(e.data!==Ps||l.readyState===AS)t();else{var u=function(){t(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function Ln(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===kg||t===tv||t===Ps||t===ob||t===_S)break;if(t===Bg)return null}}return e}function jh(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),l={},u=e.attributes,s=0;s<u.length;s++){var c=u[s];l[Vp(c.name)]=c.name.toLowerCase()==="style"?ks(e):c.value}return{type:t,props:l}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function Xh(e,t,l){return l===null||l[qT]!==!0?(e.nodeValue===t?e=null:(t=Bn(t),e=Bn(e.nodeValue)===t?null:e.nodeValue),e):null}function Jp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l===Bg){if(t===0)return Ln(e.nextSibling);t--}else l!==kg&&l!==tv&&l!==Ps||t++}e=e.nextSibling}return null}function cr(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l===kg||l===tv||l===Ps){if(t===0)return e;t--}else l===Bg&&t++}e=e.previousSibling}return null}function Kp(e){Ys(e)}function Zl(e){Ys(e)}function Ip(e,t,l,u,s){switch(s&&ns(e,u.ancestorInfo),t=nt(l),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function $l(e,t,l,u){if(!l[No]&&Xn(l)){var s=l.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",s,s,s)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(s=l.attributes;s.length;)l.removeAttributeNode(s[0]);Ft(l,e,t),l[Fn]=u,l[Dl]=t}function rr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fu(e)}function Jf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Vv(e,t,l){var u=jm;if(u&&typeof t=="string"&&t){var s=Qn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),US.has(s)||(US.add(s),e={rel:e,crossOrigin:l,href:t},u.querySelector(s)===null&&(t=u.createElement("link"),Ft(t,"link",e),nn(t),u.head.appendChild(t)))}}function wu(e,t,l,u){var s=(s=ji.current)?Jf(s):null;if(!s)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Do(l.href),t=kl(s).hoistableStyles,u=t.get(l),u||(u={type:"style",instance:null,count:0,state:null},t.set(l,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Do(l.href);var c=kl(s).hoistableStyles,h=c.get(e);if(!h&&(s=s.ownerDocument||s,h={type:"stylesheet",instance:null,count:0,state:{loading:Hd,preload:null}},c.set(e,h),(c=s.querySelector(Gi(e)))&&!c._p&&(h.instance=c,h.state.loading=nv|nu),!lu.has(e))){var v={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy};lu.set(e,v),c||Gv(s,e,v,h.state)}if(t&&u===null)throw l=`
1109
+
1110
+ - `+Ns(t)+`
1111
+ + `+Ns(l),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return h}if(t&&u!==null)throw l=`
1112
+
1113
+ - `+Ns(t)+`
1114
+ + `+Ns(l),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=Ls(l),t=kl(s).hoistableScripts,u=t.get(l),u||(u={type:"script",instance:null,count:0,state:null},t.set(l,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Ns(e){var t=0,l="<link";return typeof e.rel=="string"?(t++,l+=' rel="'+e.rel+'"'):Bu.call(e,"rel")&&(t++,l+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,l+=' href="'+e.href+'"'):Bu.call(e,"href")&&(t++,l+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,l+=' precedence="'+e.precedence+'"'):Bu.call(e,"precedence")&&(t++,l+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(l+=" ..."),l+" />"}function Do(e){return'href="'+Qn(e)+'"'}function Gi(e){return'link[rel="stylesheet"]['+e+"]"}function Wp(e){return Ke({},e,{"data-precedence":e.precedence,precedence:null})}function Gv(e,t,l,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=nv:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=nv}),t.addEventListener("error",function(){return u.loading|=zS}),Ft(t,"link",l),nn(t),e.head.appendChild(t))}function Ls(e){return'[src="'+Qn(e)+'"]'}function qs(e){return"script[async]"+e}function Qh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+Qn(l.href)+'"]');if(u)return t.instance=u,nn(u),u;var s=Ke({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),nn(u),Ft(u,"style",s),Zh(u,l.precedence,e),t.instance=u;case"stylesheet":s=Do(l.href);var c=e.querySelector(Gi(s));if(c)return t.state.loading|=nu,t.instance=c,nn(c),c;u=Wp(l),(s=lu.get(s))&&Fp(u,s),c=(e.ownerDocument||e).createElement("link"),nn(c);var h=c;return h._p=new Promise(function(v,S){h.onload=v,h.onerror=S}),Ft(c,"link",u),t.state.loading|=nu,Zh(c,l.precedence,e),t.instance=c;case"script":return c=Ls(l.src),(s=e.querySelector(qs(c)))?(t.instance=s,nn(s),s):(u=l,(s=lu.get(c))&&(u=Ke({},l),Pp(u,s)),e=e.ownerDocument||e,s=e.createElement("script"),nn(s),Ft(s,"link",u),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&nu)===Hd&&(u=t.instance,t.state.loading|=nu,Zh(u,l.precedence,e));return t.instance}function Zh(e,t,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=u.length?u[u.length-1]:null,c=s,h=0;h<u.length;h++){var v=u[h];if(v.dataset.precedence===t)c=v;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Fp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Pp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function e0(e,t,l){if(Lg===null){var u=new Map,s=Lg=new Map;s.set(l,u)}else s=Lg,u=s.get(l),u||(u=new Map,s.set(l,u));if(u.has(e))return u;for(u.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var c=l[s];if(!(c[Tr]||c[Fn]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!==_r){var h=c.getAttribute(t)||"";h=e+h;var v=u.get(h);v?v.push(c):u.set(h,[c])}}return u}function t0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function fr(e,t,l){var u=!l.ancestorInfo.containerTagInScope;if(l.context===Gm||t.itemProp!=null)return!u||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){u&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var s=t.onError,c=t.disabled;l=[],t.onLoad&&l.push("`onLoad`"),s&&l.push("`onError`"),c!=null&&l.push("`disabled`"),s=tt(l,"and"),s+=l.length===1?" prop":" props",c=l.length===1?"an "+s:"the "+s,l.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,c,s)}u&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&u&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){u&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":u&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Kf(e){return!(e.type==="stylesheet"&&(e.state.loading&OS)===Hd)}function jv(){}function Xv(e,t,l){if(lv===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var u=lv;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&nu)===Hd){if(t.instance===null){var s=Do(l.href),c=e.querySelector(Gi(s));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(u.count++,u=If.bind(u),e.then(u,u)),t.state.loading|=nu,t.instance=c,nn(c);return}c=e.ownerDocument||e,l=Wp(l),(s=lu.get(s))&&Fp(l,s),c=c.createElement("link"),nn(c);var h=c;h._p=new Promise(function(v,S){h.onload=v,h.onerror=S}),Ft(c,"link",l),t.instance=c}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&OS)===Hd&&(u.count++,t=If.bind(u),e.addEventListener("load",t),e.addEventListener("error",t))}}function Qv(){if(lv===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=lv;return e.stylesheets&&e.count===0&&$h(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&$h(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function If(){if(this.count--,this.count===0){if(this.stylesheets)$h(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function $h(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qg=new Map,t.forEach(Zv,e),qg=null,If.call(e))}function Zv(e,t){if(!(t.state.loading&nu)){var l=qg.get(e);if(l)var u=l.get(db);else{l=new Map,qg.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var h=s[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(l.set(h.dataset.precedence,h),u=h)}u&&l.set(db,u)}s=t.instance,h=s.getAttribute("data-precedence"),c=l.get(h)||u,c===u&&l.set(db,s),l.set(h,s),this.count++,u=If.bind(this),s.addEventListener("load",u),s.addEventListener("error",u),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=nu}}function Jh(e,t,l,u,s,c,h,v){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=wd,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=su(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=su(0),this.hiddenUpdates=su(null),this.identifierPrefix=u,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=l?"hydrateRoot()":"createRoot()"}function n0(e,t,l,u,s,c,h,v,S,x,N,Q){return e=new Jh(e,t,l,h,v,S,x,Q),t=pT,c===!0&&(t|=Ol|Vu),tn&&(t|=cl),c=V(3,null,null,t),e.current=c,c.stateNode=e,t=ho(),bi(t),e.pooledCache=t,bi(t),c.memoizedState={element:u,isDehydrated:l,cache:t},Hn(c),e}function l0(e){return e?(e=Ar,e):Ar}function St(e,t,l,u,s,c){if(qn&&typeof qn.onScheduleFiberRoot=="function")try{qn.onScheduleFiberRoot(ko,u,l)}catch(h){Rl||(Rl=!0,console.error("React instrumentation encountered an error: %s",h))}he!==null&&typeof he.markRenderScheduled=="function"&&he.markRenderScheduled(t),s=l0(s),u.context===null?u.context=s:u.pendingContext=s,zl&&Kl!==null&&!BS&&(BS=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
1115
+
1116
+ Check the render method of %s.`,me(Kl)||"Unknown")),u=Gl(t),u.payload={element:l},c=c===void 0?null:c,c!==null&&(typeof c!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",c),u.callback=c),l=De(e,u,t),l!==null&&(It(l,e,t),mo(l,e,t))}function Kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function a0(e,t){Kh(e,t),(e=e.alternate)&&Kh(e,t)}function i0(e){if(e.tag===13){var t=wn(e,67108864);t!==null&&It(t,e,67108864),a0(e,67108864)}}function iy(){return Kl}function uy(){for(var e=new Map,t=1,l=0;31>l;l++){var u=Jo(t);e.set(t,u),t*=2}return e}function oy(e,t,l,u){var s=G.T;G.T=null;var c=Be.p;try{Be.p=Yn,zo(e,t,l,u)}finally{Be.p=c,G.T=s}}function Ih(e,t,l,u){var s=G.T;G.T=null;var c=Be.p;try{Be.p=Wa,zo(e,t,l,u)}finally{Be.p=c,G.T=s}}function zo(e,t,l,u){if(Vg){var s=Wf(u);if(s===null)il(e,t,u,Gg,l),Oo(e,u);else if(Ff(s,e,t,l,u))u.stopPropagation();else if(Oo(e,u),t&4&&-1<$T.indexOf(e)){for(;s!==null;){var c=Xn(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Hl(c.pendingLanes);if(h!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var S=1<<31-Wn(h);v.entanglements[1]|=S,h&=~S}va(c),(Tt&(Pl|Qu))===Fa&&(_g=Xi()+mS,ws(0))}}break;case 13:v=wn(c,2),v!==null&&It(v,c,2),Os(),a0(c,2)}if(c=Wf(u),c===null&&il(e,t,u,Gg,l),c===s)break;s=c}s!==null&&u.stopPropagation()}else il(e,t,u,null,l)}}function Wf(e){return e=fi(e),dr(e)}function dr(e){if(Gg=null,e=ta(e),e!==null){var t=de(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=ke(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Gg=e,null}function Wh(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 Yn;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 Wa;case"message":switch(Ho()){case nm:return Yn;case od:return Wa;case yr:case dy:return Lu;case sd:return um;default:return Lu}default:return Lu}}function Oo(e,t){switch(e){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":Nr=null;break;case"mouseover":case"mouseout":Lr=null;break;case"pointerover":case"pointerout":iv.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":uv.delete(t.pointerId)}}function Ml(e,t,l,u,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:u,nativeEvent:c,targetContainers:[s]},t!==null&&(t=Xn(t),t!==null&&i0(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Ff(e,t,l,u,s){switch(t){case"focusin":return Br=Ml(Br,e,t,l,u,s),!0;case"dragenter":return Nr=Ml(Nr,e,t,l,u,s),!0;case"mouseover":return Lr=Ml(Lr,e,t,l,u,s),!0;case"pointerover":var c=s.pointerId;return iv.set(c,Ml(iv.get(c)||null,e,t,l,u,s)),!0;case"gotpointercapture":return c=s.pointerId,uv.set(c,Ml(uv.get(c)||null,e,t,l,u,s)),!0}return!1}function $v(e){var t=ta(e.target);if(t!==null){var l=de(t);if(l!==null){if(t=l.tag,t===13){if(t=ke(l),t!==null){e.blockedOn=t,Bd(e.priority,function(){if(l.tag===13){var u=Cl(l);u=Bt(u);var s=wn(l,u);s!==null&&It(s,l,u),a0(l,u)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Wf(e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l),s=u;r!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),r=s,l.target.dispatchEvent(u),r===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),r=null}else return t=Xn(l),t!==null&&i0(t),e.blockedOn=l,!1;t.shift()}return!0}function u0(e,t,l){Pf(e)&&l.delete(t)}function Jv(){hb=!1,Br!==null&&Pf(Br)&&(Br=null),Nr!==null&&Pf(Nr)&&(Nr=null),Lr!==null&&Pf(Lr)&&(Lr=null),iv.forEach(u0),uv.forEach(u0)}function ed(e,t){e.blockedOn===t&&(e.blockedOn=null,hb||(hb=!0,en.unstable_scheduleCallback(en.unstable_NormalPriority,Jv)))}function Kv(e){jg!==e&&(jg=e,en.unstable_scheduleCallback(en.unstable_NormalPriority,function(){jg===e&&(jg=null);for(var t=0;t<e.length;t+=3){var l=e[t],u=e[t+1],s=e[t+2];if(typeof u!="function"){if(dr(u||l)===null)continue;break}var c=Xn(l);c!==null&&(e.splice(t,3),t-=3,l={pending:!0,data:s,method:l.method,action:u},Object.freeze(l),Ss(c,l,u,s))}}))}function Ys(e){function t(S){return ed(S,e)}Br!==null&&ed(Br,e),Nr!==null&&ed(Nr,e),Lr!==null&&ed(Lr,e),iv.forEach(t),uv.forEach(t);for(var l=0;l<qr.length;l++){var u=qr[l];u.blockedOn===e&&(u.blockedOn=null)}for(;0<qr.length&&(l=qr[0],l.blockedOn===null);)$v(l),l.blockedOn===null&&qr.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var s=l[u],c=l[u+1],h=s[Dl]||null;if(typeof c=="function")h||Kv(l);else if(h){var v=null;if(c&&c.hasAttribute("formAction")){if(s=c,h=c[Dl]||null)v=h.formAction;else if(dr(s)!==null)continue}else v=h.action;typeof v=="function"?l[u+1]=v:(l.splice(u,3),u-=3),Kv(l)}}}function Fh(e){this._internalRoot=e}function td(e){this._internalRoot=e}function Iv(e){e[No]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var en=Qb(),nd=pt,sy=Xg,Ke=Object.assign,ld=Symbol.for("react.element"),Uo=Symbol.for("react.transitional.element"),Vs=Symbol.for("react.portal"),Xe=Symbol.for("react.fragment"),hr=Symbol.for("react.strict_mode"),mr=Symbol.for("react.profiler"),o0=Symbol.for("react.provider"),Ph=Symbol.for("react.consumer"),ba=Symbol.for("react.context"),Hu=Symbol.for("react.forward_ref"),pr=Symbol.for("react.suspense"),wo=Symbol.for("react.suspense_list"),ad=Symbol.for("react.memo"),Jl=Symbol.for("react.lazy"),s0=Symbol.for("react.activity"),Wv=Symbol.for("react.memo_cache_sentinel"),c0=Symbol.iterator,em=Symbol.for("react.client.reference"),Ve=Array.isArray,G=nd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Be=sy.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,cy=Object.freeze({pending:!1,data:null,method:null,action:null}),id=[],ud=[],Sa=-1,ku=_e(null),vr=_e(null),ji=_e(null),gr=_e(null),Bu=Object.prototype.hasOwnProperty,tm=en.unstable_scheduleCallback,ry=en.unstable_cancelCallback,Fv=en.unstable_shouldYield,fy=en.unstable_requestPaint,Xi=en.unstable_now,Ho=en.unstable_getCurrentPriorityLevel,nm=en.unstable_ImmediatePriority,od=en.unstable_UserBlockingPriority,yr=en.unstable_NormalPriority,dy=en.unstable_LowPriority,sd=en.unstable_IdlePriority,hy=en.log,Ia=en.unstable_setDisableYieldValue,ko=null,qn=null,he=null,Rl=!1,tn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Wn=Math.clz32?Math.clz32:uu,lm=Math.log,Nu=Math.LN2,am=256,im=4194304,Yn=2,Wa=8,Lu=32,um=268435456,Bo=Math.random().toString(36).slice(2),Fn="__reactFiber$"+Bo,Dl="__reactProps$"+Bo,No="__reactContainer$"+Bo,r0="__reactEvents$"+Bo,Pv="__reactListeners$"+Bo,br="__reactHandles$"+Bo,Sr="__reactResources$"+Bo,Tr="__reactMarker$"+Bo,eg=new Set,Ta={},Gs={},tg={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},om=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]*$"),sm={},cm={},Lo=0,f0,d0,ng,h0,xr,lg,ag;Ko.__reactDisabledLog=!0;var m0,cd,Er=!1,rd=new(typeof WeakMap=="function"?WeakMap:Map),Kl=null,zl=!1,my=/[\n"\\]/g,p0=!1,v0=!1,g0=!1,y0=!1,rm=!1,b0=!1,fd=["value","defaultValue"],ig=!1,ug=/["'&<>\n\t]|^\s|\s$/,S0="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),fm="applet caption html table td th marquee object template foreignObject desc title".split(" "),dm=fm.concat(["button"]),T0="dd dt li option optgroup p rp rt".split(" "),x0={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Cr={},Qi={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},qu=/([A-Z])/g,Yu=/^ms-/,dd=/^(?:webkit|moz|o)[A-Z]/,hd=/^-ms-/,qo=/-(.)/g,og=/;\s*$/,js={},Xs={},sg=!1,E0=!1,md=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(" ")),pd="http://www.w3.org/1998/Math/MathML",_r="http://www.w3.org/2000/svg",hm=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"]]),Qs={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},C0={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Zi={},_0=RegExp("^(aria)-[: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]*$"),mm=RegExp("^(aria)[A-Z][: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]*$"),A0=!1,sl={},vd=/^on./,n=/^on[^A-Z]/,a=RegExp("^(aria)-[: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]*$"),i=RegExp("^(aria)[A-Z][: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]*$"),o=/^[\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,r=null,d=null,g=null,y=!1,E=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),H=!1;if(E)try{var I={};Object.defineProperty(I,"passive",{get:function(){H=!0}}),window.addEventListener("test",I,I),window.removeEventListener("test",I,I)}catch{H=!1}var P=null,B=null,L=null,Ae={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Me=sn(Ae),ht=Ke({},Ae,{view:0,detail:0}),O=sn(ht),z,U,F,be=Ke({},ht,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:us,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!==F&&(F&&e.type==="mousemove"?(z=e.screenX-F.screenX,U=e.screenY-F.screenY):U=z=0,F=e),z)},movementY:function(e){return"movementY"in e?e.movementY:U}}),We=sn(be),Ce=Ke({},be,{dataTransfer:0}),Ue=sn(Ce),zn=Ke({},ht,{relatedTarget:0}),st=sn(zn),Yo=Ke({},Ae,{animationName:0,elapsedTime:0,pseudoElement:0}),py=sn(Yo),X2=Ke({},Ae,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Q2=sn(X2),Z2=Ke({},Ae,{data:0}),Kb=sn(Z2),$2=Kb,J2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K2={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"},I2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},W2=Ke({},ht,{key:function(e){if(e.key){var t=J2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?K2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:us,charCode:function(e){return e.type==="keypress"?yu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),F2=sn(W2),P2=Ke({},be,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ib=sn(P2),eT=Ke({},ht,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:us}),tT=sn(eT),nT=Ke({},Ae,{propertyName:0,elapsedTime:0,pseudoElement:0}),lT=sn(nT),aT=Ke({},be,{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}),iT=sn(aT),uT=Ke({},Ae,{newState:0,oldState:0}),oT=sn(uT),sT=[9,13,27,32],Wb=229,vy=E&&"CompositionEvent"in window,M0=null;E&&"documentMode"in document&&(M0=document.documentMode);var cT=E&&"TextEvent"in window&&!M0,Fb=E&&(!vy||M0&&8<M0&&11>=M0),Pb=32,e1=String.fromCharCode(Pb),t1=!1,pm=!1,rT={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},R0=null,D0=null,n1=!1;E&&(n1=dc("input")&&(!document.documentMode||9<document.documentMode));var Il=typeof Object.is=="function"?Object.is:jd,fT=E&&"documentMode"in document&&11>=document.documentMode,vm=null,gy=null,z0=null,yy=!1,gm={animationend:ua("Animation","AnimationEnd"),animationiteration:ua("Animation","AnimationIteration"),animationstart:ua("Animation","AnimationStart"),transitionrun:ua("Transition","TransitionRun"),transitionstart:ua("Transition","TransitionStart"),transitioncancel:ua("Transition","TransitionCancel"),transitionend:ua("Transition","TransitionEnd")},by={},l1={};E&&(l1=document.createElement("div").style,"AnimationEvent"in window||(delete gm.animationend.animation,delete gm.animationiteration.animation,delete gm.animationstart.animation),"TransitionEvent"in window||delete gm.transitionend.transition);var a1=mi("animationend"),i1=mi("animationiteration"),u1=mi("animationstart"),dT=mi("transitionrun"),hT=mi("transitionstart"),mT=mi("transitioncancel"),o1=mi("transitionend"),s1=new Map,Sy="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(" ");Sy.push("scrollEnd");var Ty=new WeakMap,xy=1,gd=2,$i=[],ym=0,Ey=0,Ar={};Object.freeze(Ar);var Ji=null,bm=null,qt=0,pT=1,cl=2,Ol=8,Vu=16,c1=64,r1=!1;try{var f1=Object.preventExtensions({})}catch{r1=!0}var Sm=[],Tm=0,cg=null,rg=0,Ki=[],Ii=0,yd=null,Zs=1,$s="",Wl=null,fn=null,mt=!1,Js=!1,Wi=null,bd=null,Vo=!1,Cy=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),d1=0;if(typeof performance=="object"&&typeof performance.now=="function")var vT=performance,h1=function(){return vT.now()};else{var gT=Date;h1=function(){return gT.now()}}var _y=_e(null),Ay=_e(null),m1={},fg=null,xm=null,Em=!1,yT=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},bT=en.unstable_scheduleCallback,ST=en.unstable_NormalPriority,Vn={$$typeof:ba,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Cm=en.unstable_now,p1=-0,dg=-0,xa=-1.1,Sd=-0,hg=!1,mg=!1,O0=null,My=0,Td=0,_m=null,v1=G.S;G.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&df(e,t),v1!==null&&v1(e,t)};var xd=_e(null),Gu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},U0=[],w0=[],H0=[],k0=[],B0=[],N0=[],Ed=new Set;Gu.recordUnsafeLifecycleWarnings=function(e,t){Ed.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&U0.push(e),e.mode&Ol&&typeof t.UNSAFE_componentWillMount=="function"&&w0.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&H0.push(e),e.mode&Ol&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&k0.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&B0.push(e),e.mode&Ol&&typeof t.UNSAFE_componentWillUpdate=="function"&&N0.push(e))},Gu.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<U0.length&&(U0.forEach(function(v){e.add(me(v)||"Component"),Ed.add(v.type)}),U0=[]);var t=new Set;0<w0.length&&(w0.forEach(function(v){t.add(me(v)||"Component"),Ed.add(v.type)}),w0=[]);var l=new Set;0<H0.length&&(H0.forEach(function(v){l.add(me(v)||"Component"),Ed.add(v.type)}),H0=[]);var u=new Set;0<k0.length&&(k0.forEach(function(v){u.add(me(v)||"Component"),Ed.add(v.type)}),k0=[]);var s=new Set;0<B0.length&&(B0.forEach(function(v){s.add(me(v)||"Component"),Ed.add(v.type)}),B0=[]);var c=new Set;if(0<N0.length&&(N0.forEach(function(v){c.add(me(v)||"Component"),Ed.add(v.type)}),N0=[]),0<t.size){var h=le(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
1117
+
1118
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
1119
+
1120
+ Please update the following components: %s`,h)}0<u.size&&(h=le(u),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
1121
+
1122
+ * Move data fetching code or side effects to componentDidUpdate.
1123
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
1124
+
1125
+ Please update the following components: %s`,h)),0<c.size&&(h=le(c),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
1126
+
1127
+ * Move data fetching code or side effects to componentDidUpdate.
1128
+
1129
+ Please update the following components: %s`,h)),0<e.size&&(h=le(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
1130
+
1131
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
1132
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
1133
+
1134
+ Please update the following components: %s`,h)),0<l.size&&(h=le(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
1135
+
1136
+ * Move data fetching code or side effects to componentDidUpdate.
1137
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
1138
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
1139
+
1140
+ Please update the following components: %s`,h)),0<s.size&&(h=le(s),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
1141
+
1142
+ * Move data fetching code or side effects to componentDidUpdate.
1143
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
1144
+
1145
+ Please update the following components: %s`,h))};var pg=new Map,g1=new Set;Gu.recordLegacyContextWarning=function(e,t){for(var l=null,u=e;u!==null;)u.mode&Ol&&(l=u),u=u.return;l===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!g1.has(e.type)&&(u=pg.get(l),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(u===void 0&&(u=[],pg.set(l,u)),u.push(e))},Gu.flushLegacyContextWarning=function(){pg.forEach(function(e){if(e.length!==0){var t=e[0],l=new Set;e.forEach(function(s){l.add(me(s)||"Component"),g1.add(s.type)});var u=le(l);ye(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
1146
+
1147
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
1148
+
1149
+ Please update the following components: %s
1150
+
1151
+ Learn more about this warning here: https://react.dev/link/legacy-context`,u)})}})},Gu.discardPendingWarnings=function(){U0=[],w0=[],H0=[],k0=[],B0=[],N0=[],pg=new Map};var L0=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),y1=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),vg=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Ry={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},q0=null,gg=!1,Fi=0,Pi=1,Fl=2,rl=4,Gn=8,b1=0,S1=1,T1=2,Dy=3,Mr=!1,x1=!1,zy=null,Oy=!1,Am=_e(null),yg=_e(0),Mm,E1=new Set,C1=new Set,Uy=new Set,_1=new Set,Rr=0,Ge=null,Dt=null,On=null,bg=!1,Rm=!1,Cd=!1,Sg=0,Y0=0,Ks=null,TT=0,xT=25,X=null,eu=null,Is=-1,V0=!1,Tg={readContext:Et,use:Ei,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useLayoutEffect:jt,useInsertionEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useSyncExternalStore:jt,useId:jt,useHostTransitionStatus:jt,useFormState:jt,useActionState:jt,useOptimistic:jt,useMemoCache:jt,useCacheRefresh:jt},wy=null,A1=null,Hy=null,M1=null,Go=null,ju=null,xg=null;wy={readContext:function(e){return Et(e)},use:Ei,useCallback:function(e,t){return X="useCallback",Ie(),ca(t),Ef(e,t)},useContext:function(e){return X="useContext",Ie(),Et(e)},useEffect:function(e,t){return X="useEffect",Ie(),ca(t),$d(e,t)},useImperativeHandle:function(e,t,l){return X="useImperativeHandle",Ie(),ca(l),Kd(e,t,l)},useInsertionEffect:function(e,t){X="useInsertionEffect",Ie(),ca(t),ha(4,Fl,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",Ie(),ca(t),Jd(e,t)},useMemo:function(e,t){X="useMemo",Ie(),ca(t);var l=G.H;G.H=Go;try{return Id(e,t)}finally{G.H=l}},useReducer:function(e,t,l){X="useReducer",Ie();var u=G.H;G.H=Go;try{return ct(e,t,l)}finally{G.H=u}},useRef:function(e){return X="useRef",Ie(),xf(e)},useState:function(e){X="useState",Ie();var t=G.H;G.H=Go;try{return Eu(e)}finally{G.H=t}},useDebugValue:function(){X="useDebugValue",Ie()},useDeferredValue:function(e,t){return X="useDeferredValue",Ie(),Wd(e,t)},useTransition:function(){return X="useTransition",Ie(),Mi()},useSyncExternalStore:function(e,t,l){return X="useSyncExternalStore",Ie(),xu(e,t,l)},useId:function(){return X="useId",Ie(),Ri()},useFormState:function(e,t){return X="useFormState",Ie(),Lc(),Xc(e,t)},useActionState:function(e,t){return X="useActionState",Ie(),Xc(e,t)},useOptimistic:function(e){return X="useOptimistic",Ie(),Qa(e)},useHostTransitionStatus:Tl,useMemoCache:an,useCacheRefresh:function(){return X="useCacheRefresh",Ie(),Ts()}},A1={readContext:function(e){return Et(e)},use:Ei,useCallback:function(e,t){return X="useCallback",ne(),Ef(e,t)},useContext:function(e){return X="useContext",ne(),Et(e)},useEffect:function(e,t){return X="useEffect",ne(),$d(e,t)},useImperativeHandle:function(e,t,l){return X="useImperativeHandle",ne(),Kd(e,t,l)},useInsertionEffect:function(e,t){X="useInsertionEffect",ne(),ha(4,Fl,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",ne(),Jd(e,t)},useMemo:function(e,t){X="useMemo",ne();var l=G.H;G.H=Go;try{return Id(e,t)}finally{G.H=l}},useReducer:function(e,t,l){X="useReducer",ne();var u=G.H;G.H=Go;try{return ct(e,t,l)}finally{G.H=u}},useRef:function(e){return X="useRef",ne(),xf(e)},useState:function(e){X="useState",ne();var t=G.H;G.H=Go;try{return Eu(e)}finally{G.H=t}},useDebugValue:function(){X="useDebugValue",ne()},useDeferredValue:function(e,t){return X="useDeferredValue",ne(),Wd(e,t)},useTransition:function(){return X="useTransition",ne(),Mi()},useSyncExternalStore:function(e,t,l){return X="useSyncExternalStore",ne(),xu(e,t,l)},useId:function(){return X="useId",ne(),Ri()},useActionState:function(e,t){return X="useActionState",ne(),Xc(e,t)},useFormState:function(e,t){return X="useFormState",ne(),Lc(),Xc(e,t)},useOptimistic:function(e){return X="useOptimistic",ne(),Qa(e)},useHostTransitionStatus:Tl,useMemoCache:an,useCacheRefresh:function(){return X="useCacheRefresh",ne(),Ts()}},Hy={readContext:function(e){return Et(e)},use:Ei,useCallback:function(e,t){return X="useCallback",ne(),bs(e,t)},useContext:function(e){return X="useContext",ne(),Et(e)},useEffect:function(e,t){X="useEffect",ne(),vn(2048,Gn,e,t)},useImperativeHandle:function(e,t,l){return X="useImperativeHandle",ne(),Ai(e,t,l)},useInsertionEffect:function(e,t){return X="useInsertionEffect",ne(),vn(4,Fl,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",ne(),vn(4,rl,e,t)},useMemo:function(e,t){X="useMemo",ne();var l=G.H;G.H=ju;try{return bo(e,t)}finally{G.H=l}},useReducer:function(e,t,l){X="useReducer",ne();var u=G.H;G.H=ju;try{return fa(e,t,l)}finally{G.H=u}},useRef:function(){return X="useRef",ne(),ut().memoizedState},useState:function(){X="useState",ne();var e=G.H;G.H=ju;try{return fa(ft)}finally{G.H=e}},useDebugValue:function(){X="useDebugValue",ne()},useDeferredValue:function(e,t){return X="useDeferredValue",ne(),Cf(e,t)},useTransition:function(){return X="useTransition",ne(),eh()},useSyncExternalStore:function(e,t,l){return X="useSyncExternalStore",ne(),yf(e,t,l)},useId:function(){return X="useId",ne(),ut().memoizedState},useFormState:function(e){return X="useFormState",ne(),Lc(),Zd(e)},useActionState:function(e){return X="useActionState",ne(),Zd(e)},useOptimistic:function(e,t){return X="useOptimistic",ne(),Cu(e,t)},useHostTransitionStatus:Tl,useMemoCache:an,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ut().memoizedState}},M1={readContext:function(e){return Et(e)},use:Ei,useCallback:function(e,t){return X="useCallback",ne(),bs(e,t)},useContext:function(e){return X="useContext",ne(),Et(e)},useEffect:function(e,t){X="useEffect",ne(),vn(2048,Gn,e,t)},useImperativeHandle:function(e,t,l){return X="useImperativeHandle",ne(),Ai(e,t,l)},useInsertionEffect:function(e,t){return X="useInsertionEffect",ne(),vn(4,Fl,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",ne(),vn(4,rl,e,t)},useMemo:function(e,t){X="useMemo",ne();var l=G.H;G.H=xg;try{return bo(e,t)}finally{G.H=l}},useReducer:function(e,t,l){X="useReducer",ne();var u=G.H;G.H=xg;try{return ys(e,t,l)}finally{G.H=u}},useRef:function(){return X="useRef",ne(),ut().memoizedState},useState:function(){X="useState",ne();var e=G.H;G.H=xg;try{return ys(ft)}finally{G.H=e}},useDebugValue:function(){X="useDebugValue",ne()},useDeferredValue:function(e,t){return X="useDeferredValue",ne(),Fd(e,t)},useTransition:function(){return X="useTransition",ne(),th()},useSyncExternalStore:function(e,t,l){return X="useSyncExternalStore",ne(),yf(e,t,l)},useId:function(){return X="useId",ne(),ut().memoizedState},useFormState:function(e){return X="useFormState",ne(),Lc(),Qc(e)},useActionState:function(e){return X="useActionState",ne(),Qc(e)},useOptimistic:function(e,t){return X="useOptimistic",ne(),Qd(e,t)},useHostTransitionStatus:Tl,useMemoCache:an,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ut().memoizedState}},Go={readContext:function(e){return Y(),Et(e)},use:function(e){return M(),Ei(e)},useCallback:function(e,t){return X="useCallback",M(),Ie(),Ef(e,t)},useContext:function(e){return X="useContext",M(),Ie(),Et(e)},useEffect:function(e,t){return X="useEffect",M(),Ie(),$d(e,t)},useImperativeHandle:function(e,t,l){return X="useImperativeHandle",M(),Ie(),Kd(e,t,l)},useInsertionEffect:function(e,t){X="useInsertionEffect",M(),Ie(),ha(4,Fl,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",M(),Ie(),Jd(e,t)},useMemo:function(e,t){X="useMemo",M(),Ie();var l=G.H;G.H=Go;try{return Id(e,t)}finally{G.H=l}},useReducer:function(e,t,l){X="useReducer",M(),Ie();var u=G.H;G.H=Go;try{return ct(e,t,l)}finally{G.H=u}},useRef:function(e){return X="useRef",M(),Ie(),xf(e)},useState:function(e){X="useState",M(),Ie();var t=G.H;G.H=Go;try{return Eu(e)}finally{G.H=t}},useDebugValue:function(){X="useDebugValue",M(),Ie()},useDeferredValue:function(e,t){return X="useDeferredValue",M(),Ie(),Wd(e,t)},useTransition:function(){return X="useTransition",M(),Ie(),Mi()},useSyncExternalStore:function(e,t,l){return X="useSyncExternalStore",M(),Ie(),xu(e,t,l)},useId:function(){return X="useId",M(),Ie(),Ri()},useFormState:function(e,t){return X="useFormState",M(),Ie(),Xc(e,t)},useActionState:function(e,t){return X="useActionState",M(),Ie(),Xc(e,t)},useOptimistic:function(e){return X="useOptimistic",M(),Ie(),Qa(e)},useMemoCache:function(e){return M(),an(e)},useHostTransitionStatus:Tl,useCacheRefresh:function(){return X="useCacheRefresh",Ie(),Ts()}},ju={readContext:function(e){return Y(),Et(e)},use:function(e){return M(),Ei(e)},useCallback:function(e,t){return X="useCallback",M(),ne(),bs(e,t)},useContext:function(e){return X="useContext",M(),ne(),Et(e)},useEffect:function(e,t){X="useEffect",M(),ne(),vn(2048,Gn,e,t)},useImperativeHandle:function(e,t,l){return X="useImperativeHandle",M(),ne(),Ai(e,t,l)},useInsertionEffect:function(e,t){return X="useInsertionEffect",M(),ne(),vn(4,Fl,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",M(),ne(),vn(4,rl,e,t)},useMemo:function(e,t){X="useMemo",M(),ne();var l=G.H;G.H=ju;try{return bo(e,t)}finally{G.H=l}},useReducer:function(e,t,l){X="useReducer",M(),ne();var u=G.H;G.H=ju;try{return fa(e,t,l)}finally{G.H=u}},useRef:function(){return X="useRef",M(),ne(),ut().memoizedState},useState:function(){X="useState",M(),ne();var e=G.H;G.H=ju;try{return fa(ft)}finally{G.H=e}},useDebugValue:function(){X="useDebugValue",M(),ne()},useDeferredValue:function(e,t){return X="useDeferredValue",M(),ne(),Cf(e,t)},useTransition:function(){return X="useTransition",M(),ne(),eh()},useSyncExternalStore:function(e,t,l){return X="useSyncExternalStore",M(),ne(),yf(e,t,l)},useId:function(){return X="useId",M(),ne(),ut().memoizedState},useFormState:function(e){return X="useFormState",M(),ne(),Zd(e)},useActionState:function(e){return X="useActionState",M(),ne(),Zd(e)},useOptimistic:function(e,t){return X="useOptimistic",M(),ne(),Cu(e,t)},useMemoCache:function(e){return M(),an(e)},useHostTransitionStatus:Tl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ut().memoizedState}},xg={readContext:function(e){return Y(),Et(e)},use:function(e){return M(),Ei(e)},useCallback:function(e,t){return X="useCallback",M(),ne(),bs(e,t)},useContext:function(e){return X="useContext",M(),ne(),Et(e)},useEffect:function(e,t){X="useEffect",M(),ne(),vn(2048,Gn,e,t)},useImperativeHandle:function(e,t,l){return X="useImperativeHandle",M(),ne(),Ai(e,t,l)},useInsertionEffect:function(e,t){return X="useInsertionEffect",M(),ne(),vn(4,Fl,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",M(),ne(),vn(4,rl,e,t)},useMemo:function(e,t){X="useMemo",M(),ne();var l=G.H;G.H=ju;try{return bo(e,t)}finally{G.H=l}},useReducer:function(e,t,l){X="useReducer",M(),ne();var u=G.H;G.H=ju;try{return ys(e,t,l)}finally{G.H=u}},useRef:function(){return X="useRef",M(),ne(),ut().memoizedState},useState:function(){X="useState",M(),ne();var e=G.H;G.H=ju;try{return ys(ft)}finally{G.H=e}},useDebugValue:function(){X="useDebugValue",M(),ne()},useDeferredValue:function(e,t){return X="useDeferredValue",M(),ne(),Fd(e,t)},useTransition:function(){return X="useTransition",M(),ne(),th()},useSyncExternalStore:function(e,t,l){return X="useSyncExternalStore",M(),ne(),yf(e,t,l)},useId:function(){return X="useId",M(),ne(),ut().memoizedState},useFormState:function(e){return X="useFormState",M(),ne(),Qc(e)},useActionState:function(e){return X="useActionState",M(),ne(),Qc(e)},useOptimistic:function(e,t){return X="useOptimistic",M(),ne(),Qd(e,t)},useMemoCache:function(e){return M(),an(e)},useHostTransitionStatus:Tl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ut().memoizedState}};var R1={"react-stack-bottom-frame":function(e,t,l){var u=zl;zl=!0;try{return e(t,l)}finally{zl=u}}},ky=R1["react-stack-bottom-frame"].bind(R1),D1={"react-stack-bottom-frame":function(e){var t=zl;zl=!0;try{return e.render()}finally{zl=t}}},z1=D1["react-stack-bottom-frame"].bind(D1),O1={"react-stack-bottom-frame":function(e,t){try{t.componentDidMount()}catch(l){Oe(e,e.return,l)}}},By=O1["react-stack-bottom-frame"].bind(O1),U1={"react-stack-bottom-frame":function(e,t,l,u,s){try{t.componentDidUpdate(l,u,s)}catch(c){Oe(e,e.return,c)}}},w1=U1["react-stack-bottom-frame"].bind(U1),H1={"react-stack-bottom-frame":function(e,t){var l=t.stack;e.componentDidCatch(t.value,{componentStack:l!==null?l:""})}},ET=H1["react-stack-bottom-frame"].bind(H1),k1={"react-stack-bottom-frame":function(e,t,l){try{l.componentWillUnmount()}catch(u){Oe(e,t,u)}}},B1=k1["react-stack-bottom-frame"].bind(k1),N1={"react-stack-bottom-frame":function(e){e.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var t=e.create;return e=e.inst,t=t(),e.destroy=t}},CT=N1["react-stack-bottom-frame"].bind(N1),L1={"react-stack-bottom-frame":function(e,t,l){try{l()}catch(u){Oe(e,t,u)}}},_T=L1["react-stack-bottom-frame"].bind(L1),q1={"react-stack-bottom-frame":function(e){var t=e._init;return t(e._payload)}},Dr=q1["react-stack-bottom-frame"].bind(q1),Dm=null,G0=0,Fe=null,Ny,Y1=Ny=!1,V1={},G1={},j1={};j=function(e,t,l){if(l!==null&&typeof l=="object"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");l._store.validated=1;var u=me(e),s=u||"null";if(!V1[s]){V1[s]=!0,l=l._owner,e=e._debugOwner;var c="";e&&typeof e.tag=="number"&&(s=me(e))&&(c=`
1152
+
1153
+ Check the render method of \``+s+"`."),c||u&&(c=`
1154
+
1155
+ Check the top-level render call using <`+u+">.");var h="";l!=null&&e!==l&&(u=null,typeof l.tag=="number"?u=me(l):typeof l.name=="string"&&(u=l.name),u&&(h=" It was passed a child from "+u+".")),ye(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',c,h)})}}};var zm=Rf(!0),X1=Rf(!1),tu=_e(null),jo=null,Om=1,j0=2,jn=_e(0),Q1={},Z1=new Set,$1=new Set,J1=new Set,K1=new Set,I1=new Set,W1=new Set,F1=new Set,P1=new Set,eS=new Set,tS=new Set;Object.freeze(Q1);var Ly={enqueueSetState:function(e,t,l){e=e._reactInternals;var u=Cl(e),s=Gl(u);s.payload=t,l!=null&&(ip(l),s.callback=l),t=De(e,s,u),t!==null&&(It(t,e,u),mo(t,e,u)),wl(e,u)},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var u=Cl(e),s=Gl(u);s.tag=S1,s.payload=t,l!=null&&(ip(l),s.callback=l),t=De(e,s,u),t!==null&&(It(t,e,u),mo(t,e,u)),wl(e,u)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Cl(e),u=Gl(l);u.tag=T1,t!=null&&(ip(t),u.callback=t),t=De(e,u,l),t!==null&&(It(t,e,l),mo(t,e,l)),he!==null&&typeof he.markForceUpdateScheduled=="function"&&he.markForceUpdateScheduled(e,l)}},qy=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)},Um=null,Yy=null,nS=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Pn=!1,lS={},aS={},iS={},uS={},wm=!1,oS={},Vy={},Gy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},sS=!1,cS=null;cS=new Set;var Ws=!1,bn=!1,jy=!1,rS=typeof WeakSet=="function"?WeakSet:Set,el=null,Hm=null,km=null,Un=null,Ea=!1,Xu=null,X0=8192,AT={getCacheForType:function(e){var t=Et(Vn),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},getOwner:function(){return Kl}};if(typeof Symbol=="function"&&Symbol.for){var Q0=Symbol.for;Q0("selector.component"),Q0("selector.has_pseudo_class"),Q0("selector.role"),Q0("selector.test_id"),Q0("selector.text")}var MT=[],RT=typeof WeakMap=="function"?WeakMap:Map,Fa=0,Pl=2,Qu=4,Fs=0,Z0=1,Bm=2,Xy=3,_d=4,Eg=6,fS=5,Tt=Fa,Ut=null,lt=null,it=0,Ca=0,$0=1,Ad=2,J0=3,dS=4,Qy=5,Nm=6,K0=7,Zy=8,Md=9,At=Ca,Pa=null,zr=!1,Lm=!1,$y=!1,Xo=0,dn=Fs,Or=0,Ur=0,Jy=0,ei=0,Rd=0,I0=null,ea=null,Cg=!1,Ky=0,hS=300,_g=1/0,mS=500,W0=null,wr=null,DT=0,zT=1,OT=2,Dd=0,pS=1,vS=2,gS=3,UT=4,Iy=5,fl=0,Hr=null,qm=null,kr=0,Wy=0,Fy=null,yS=null,wT=50,F0=0,Py=null,eb=!1,Ag=!1,HT=50,zd=0,P0=null,Ym=!1,Mg=null,bS=!1,SS=new Set,kT={},Rg=null,Vm=null,tb=!1,nb=!1,Dg=!1,lb=!1,Od=0,ab={};(function(){for(var e=0;e<Sy.length;e++){var t=Sy[e],l=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),ml(l,"on"+t)}ml(a1,"onAnimationEnd"),ml(i1,"onAnimationIteration"),ml(u1,"onAnimationStart"),ml("dblclick","onDoubleClick"),ml("focusin","onFocus"),ml("focusout","onBlur"),ml(dT,"onTransitionRun"),ml(hT,"onTransitionStart"),ml(mT,"onTransitionCancel"),ml(o1,"onTransitionEnd")})(),ni("onMouseEnter",["mouseout","mouseover"]),ni("onMouseLeave",["mouseout","mouseover"]),ni("onPointerEnter",["pointerout","pointerover"]),ni("onPointerLeave",["pointerout","pointerover"]),Da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Da("onBeforeInput",["compositionend","keypress","textInput","paste"]),Da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ev="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(" "),ib=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ev)),zg="_reactListening"+Math.random().toString(36).slice(2),TS=!1,xS=!1,Og=!1,ES=!1,Ug=!1,wg=!1,CS=!1,Hg={},BT=/\r\n?/g,NT=/\u0000|\uFFFD/g,Ud="http://www.w3.org/1999/xlink",ub="http://www.w3.org/XML/1998/namespace",LT="javascript:throw new Error('React form unexpectedly submitted.')",qT="suppressHydrationWarning",kg="$",Bg="/$",Ps="$?",tv="$!",YT=1,VT=2,GT=4,ob="F!",_S="F",AS="complete",jT="style",ec=0,Gm=1,Ng=2,sb=null,cb=null,MS={dialog:!0,webview:!0},rb=null,RS=typeof setTimeout=="function"?setTimeout:void 0,XT=typeof clearTimeout=="function"?clearTimeout:void 0,wd=-1,DS=typeof Promise=="function"?Promise:void 0,QT=typeof queueMicrotask=="function"?queueMicrotask:typeof DS<"u"?function(e){return DS.resolve(null).then(e).catch(Qp)}:RS,fb=null,Hd=0,nv=1,zS=2,OS=3,nu=4,lu=new Map,US=new Set,tc=Be.d;Be.d={f:function(){var e=tc.f(),t=Os();return e||t},r:function(e){var t=Xn(e);t!==null&&t.tag===5&&t.type==="form"?np(t):tc.r(e)},D:function(e){tc.D(e),Vv("dns-prefetch",e,null)},C:function(e,t){tc.C(e,t),Vv("preconnect",e,t)},L:function(e,t,l){tc.L(e,t,l);var u=jm;if(u&&e&&t){var s='link[rel="preload"][as="'+Qn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+Qn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+Qn(l.imageSizes)+'"]')):s+='[href="'+Qn(e)+'"]';var c=s;switch(t){case"style":c=Do(e);break;case"script":c=Ls(e)}lu.has(c)||(e=Ke({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),lu.set(c,e),u.querySelector(s)!==null||t==="style"&&u.querySelector(Gi(c))||t==="script"&&u.querySelector(qs(c))||(t=u.createElement("link"),Ft(t,"link",e),nn(t),u.head.appendChild(t)))}},m:function(e,t){tc.m(e,t);var l=jm;if(l&&e){var u=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Qn(u)+'"][href="'+Qn(e)+'"]',c=s;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ls(e)}if(!lu.has(c)&&(e=Ke({rel:"modulepreload",href:e},t),lu.set(c,e),l.querySelector(s)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(qs(c)))return}u=l.createElement("link"),Ft(u,"link",e),nn(u),l.head.appendChild(u)}}},X:function(e,t){tc.X(e,t);var l=jm;if(l&&e){var u=kl(l).hoistableScripts,s=Ls(e),c=u.get(s);c||(c=l.querySelector(qs(s)),c||(e=Ke({src:e,async:!0},t),(t=lu.get(s))&&Pp(e,t),c=l.createElement("script"),nn(c),Ft(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},u.set(s,c))}},S:function(e,t,l){tc.S(e,t,l);var u=jm;if(u&&e){var s=kl(u).hoistableStyles,c=Do(e);t=t||"default";var h=s.get(c);if(!h){var v={loading:Hd,preload:null};if(h=u.querySelector(Gi(c)))v.loading=nv|nu;else{e=Ke({rel:"stylesheet",href:e,"data-precedence":t},l),(l=lu.get(c))&&Fp(e,l);var S=h=u.createElement("link");nn(S),Ft(S,"link",e),S._p=new Promise(function(x,N){S.onload=x,S.onerror=N}),S.addEventListener("load",function(){v.loading|=nv}),S.addEventListener("error",function(){v.loading|=zS}),v.loading|=nu,Zh(h,t,u)}h={type:"stylesheet",instance:h,count:1,state:v},s.set(c,h)}}},M:function(e,t){tc.M(e,t);var l=jm;if(l&&e){var u=kl(l).hoistableScripts,s=Ls(e),c=u.get(s);c||(c=l.querySelector(qs(s)),c||(e=Ke({src:e,async:!0,type:"module"},t),(t=lu.get(s))&&Pp(e,t),c=l.createElement("script"),nn(c),Ft(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},u.set(s,c))}}};var jm=typeof document>"u"?null:document,Lg=null,lv=null,db=null,qg=null,kd=cy,av={$$typeof:ba,Provider:null,Consumer:null,_currentValue:kd,_currentValue2:kd,_threadCount:0},wS="%c%s%c ",HS="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",kS="",Yg=" ",ZT=Function.prototype.bind,BS=!1,NS=null,LS=null,qS=null,YS=null,VS=null,GS=null,jS=null,XS=null,QS=null;NS=function(e,t,l,u){t=b(e,t),t!==null&&(l=f(t.memoizedState,l,0,u),t.memoizedState=l,t.baseState=l,e.memoizedProps=Ke({},e.memoizedProps),l=wn(e,2),l!==null&&It(l,e,2))},LS=function(e,t,l){t=b(e,t),t!==null&&(l=T(t.memoizedState,l,0),t.memoizedState=l,t.baseState=l,e.memoizedProps=Ke({},e.memoizedProps),l=wn(e,2),l!==null&&It(l,e,2))},qS=function(e,t,l,u){t=b(e,t),t!==null&&(l=p(t.memoizedState,l,u),t.memoizedState=l,t.baseState=l,e.memoizedProps=Ke({},e.memoizedProps),l=wn(e,2),l!==null&&It(l,e,2))},YS=function(e,t,l){e.pendingProps=f(e.memoizedProps,t,0,l),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wn(e,2),t!==null&&It(t,e,2)},VS=function(e,t){e.pendingProps=T(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wn(e,2),t!==null&&It(t,e,2)},GS=function(e,t,l){e.pendingProps=p(e.memoizedProps,t,l),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wn(e,2),t!==null&&It(t,e,2)},jS=function(e){var t=wn(e,2);t!==null&&It(t,e,2)},XS=function(e){w=e},QS=function(e){C=e};var Vg=!0,Gg=null,hb=!1,Br=null,Nr=null,Lr=null,iv=new Map,uv=new Map,qr=[],$T="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(" "),jg=null;if(td.prototype.render=Fh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var l=arguments;typeof l[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):ae(l[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof l[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),l=e;var u=t.current,s=Cl(u);St(u,s,l,t,null,null)},td.prototype.unmount=Fh.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Tt&(Pl|Qu))!==Fa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),St(e.current,2,null,e,null,null),Os(),t[No]=null}},td.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<qr.length&&t!==0&&t<qr[l].priority;l++);qr.splice(l,0,e),l===0&&$v(e)}},function(){var e=nd.version;if(e!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
1156
+ - react: `+(e+`
1157
+ - react-dom: 19.1.0
1158
+ Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Be.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=xe(t),e=e!==null?Ye(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.0"};return e.overrideHookState=NS,e.overrideHookStateDeletePath=LS,e.overrideHookStateRenamePath=qS,e.overrideProps=YS,e.overridePropsDeletePath=VS,e.overridePropsRenamePath=GS,e.scheduleUpdate=jS,e.setErrorHandler=XS,e.setSuspenseHandler=QS,e.scheduleRefresh=se,e.scheduleRoot=oe,e.setRefreshHandler=ue,e.getCurrentFiber=iy,e.getLaneLabelMap=uy,e.injectProfilingHooks=dl,rt(e)}()&&E&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var ZS=window.location.protocol;/^(https?|file):$/.test(ZS)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(ZS==="file:"?`
1159
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Km.createRoot=function(e,t){if(!ae(e))throw Error("Target container is not a DOM element.");Iv(e);var l=!1,u="",s=up,c=_v,h=ih,v=null;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Uo&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
1160
+
1161
+ let root = createRoot(domContainer);
1162
+ root.render(<App />);`),t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(v=t.unstable_transitionCallbacks)),t=n0(e,1,!1,null,null,l,u,s,c,h,v,null),e[No]=t.current,Lp(e),new Fh(t)},Km.hydrateRoot=function(e,t,l){if(!ae(e))throw Error("Target container is not a DOM element.");Iv(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=!1,s="",c=up,h=_v,v=ih,S=null,x=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(h=l.onCaughtError),l.onRecoverableError!==void 0&&(v=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(S=l.unstable_transitionCallbacks),l.formState!==void 0&&(x=l.formState)),t=n0(e,1,!0,t,l??null,u,s,c,h,v,S,x),t.context=l0(null),l=t.current,u=Cl(l),u=Bt(u),s=Gl(u),s.callback=null,De(l,s,u),l=u,t.current.lanes=l,tl(t,l),va(t),e[No]=t.current,Lp(e),new td(t)},Km.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Km}var Jb;function Y2(){if(Jb)return Sv.exports;Jb=1;function b(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b)}catch(f){console.error(f)}}}return process.env.NODE_ENV==="production"?(b(),Sv.exports=L2()):Sv.exports=q2(),Sv.exports}var V2=Y2();function _a(b){const f=document.createElement("div");return Xg.flushSync(()=>{V2.createRoot(f).render(bv.jsx(bv.Fragment,{children:b}))}),f}const G2=b=>{const f=pt.useRef(null);return pt.useEffect(()=>{const p=f.current;p&&p.onMessageClick(b.onMessageClick)},[b.onMessageClick,f]),pt.useEffect(()=>{const p=f.current;p&&p.onMessageActionClick(b.onMessageActionClick)},[b.onMessageActionClick,f]),pt.useEffect(()=>{const p=f.current;p&&p.onMessageLongPress(b.onMessageLongPress)},[b.onMessageLongPress,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderHeader||queueMicrotask(()=>{p.setHeader(m=>{const T=b.renderHeader(m);return _a(T)})})},[b.renderHeader,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderListItem||queueMicrotask(()=>{p.setListItem(m=>{const T=b.renderListItem(m);return _a(T)})})},[b.renderListItem,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderEmptyState||queueMicrotask(()=>{p.setEmptyState(m=>{const T=b.renderEmptyState(m);return _a(T)})})},[b.renderEmptyState,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderLoadingState||queueMicrotask(()=>{p.setLoadingState(m=>{const T=b.renderLoadingState(m);return _a(T)})})},[b.renderLoadingState,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderErrorState||queueMicrotask(()=>{p.setErrorState(m=>{const T=b.renderErrorState(m);return _a(T)})})},[b.renderErrorState,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderPaginationItem||queueMicrotask(()=>{p.setPaginationItem(m=>{const T=b.renderPaginationItem(m);return _a(T)})})},[b.renderPaginationItem,f]),pt.useEffect(()=>{const p=f.current;p&&queueMicrotask(()=>{p.setFeedType(b.feedType||"inbox")})},[b.feedType,f]),bv.jsx("courier-inbox",{ref:f,height:b.height,"light-theme":b.lightTheme?JSON.stringify(b.lightTheme):void 0,"dark-theme":b.darkTheme?JSON.stringify(b.darkTheme):void 0,mode:b.mode})},j2=b=>{const f=pt.useRef(null);return pt.useEffect(()=>{const p=f.current;p&&p.onMessageClick(b.onMessageClick)},[b.onMessageClick,f]),pt.useEffect(()=>{const p=f.current;p&&p.onMessageActionClick(b.onMessageActionClick)},[b.onMessageActionClick,f]),pt.useEffect(()=>{const p=f.current;p&&p.onMessageLongPress(b.onMessageLongPress)},[b.onMessageLongPress,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderPopupHeader||queueMicrotask(()=>{p.setPopupHeader(m=>{const T=b.renderPopupHeader(m);return _a(T)})})},[b.renderPopupHeader,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderPopupListItem||queueMicrotask(()=>{p.setPopupListItem(m=>{const T=b.renderPopupListItem(m);return _a(T)})})},[b.renderPopupListItem,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderPopupEmptyState||queueMicrotask(()=>{p.setPopupEmptyState(m=>{const T=b.renderPopupEmptyState(m);return _a(T)})})},[b.renderPopupEmptyState,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderPopupLoadingState||queueMicrotask(()=>{p.setPopupLoadingState(m=>{const T=b.renderPopupLoadingState(m);return _a(T)})})},[b.renderPopupLoadingState,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderPopupErrorState||queueMicrotask(()=>{p.setPopupErrorState(m=>{const T=b.renderPopupErrorState(m);return _a(T)})})},[b.renderPopupErrorState,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderPopupPaginationItem||queueMicrotask(()=>{p.setPopupPaginationItem(m=>{const T=b.renderPopupPaginationItem(m);return _a(T)})})},[b.renderPopupPaginationItem,f]),pt.useEffect(()=>{const p=f.current;!p||!b.renderPopupMenuButton||queueMicrotask(()=>{p.setPopupMenuButton(m=>{const T=b.renderPopupMenuButton(m);return _a(T)})})},[b.renderPopupMenuButton,f]),pt.useEffect(()=>{const p=f.current;p&&queueMicrotask(()=>{p.setFeedType(b.feedType||"inbox")})},[b.feedType,f]),bv.jsx("courier-inbox-menu",{ref:f,"popup-alignment":b.popupAlignment,"popup-width":b.popupWidth,"popup-height":b.popupHeight,left:b.left,top:b.top,right:b.right,bottom:b.bottom,"light-theme":b.lightTheme?JSON.stringify(b.lightTheme):void 0,"dark-theme":b.darkTheme?JSON.stringify(b.darkTheme):void 0,mode:b.mode})};Zu.CourierInbox=G2,Zu.CourierInboxMenu=j2,Zu.useCourier=U2,Object.defineProperty(Zu,Symbol.toStringTag,{value:"Module"})});