index-Dztone_T.js 227 KB

12345678910111213141516171819202122232425262728293031
  1. const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-BENr2dgX.js","assets/react-dom-stZKkA6x.js","assets/theme-B5baUfEh.js","assets/jsx-runtime-dm82oUI8.js","assets/theme-QBN1gbX1.css","assets/grid-DaQoG6GE.js","assets/SectionCard--RQCBj1c.js","assets/row-Cd6f9U9h.js","assets/segmented-DUpU-ING.js","assets/list-Cfo2HgHN.js","assets/EmptyState-rI31ioMm.js","assets/StatusPill-BM21x0ED.js","assets/domain-model-BLOrIAIx.js","assets/analytics-model-BpU8MjWz.js","assets/Domains-BJSbG9ca.js","assets/table-7bnHOUOM.js","assets/useForm-sdDvuRHy.js","assets/descriptions-vs1os_w7.js","assets/form-GQckeBSC.js","assets/input-0_Xo22Fl.js","assets/modal-Ba-m1ypG.js","assets/EditOutlined-C5punjK1.js","assets/EllipsisOutlined-twSxuZli.js","assets/ReloadOutlined-Cmwy5NFg.js","assets/SearchOutlined-B6SLAKJm.js","assets/ThunderboltOutlined-CAOlQtzj.js","assets/DomainDetail-DXZVCUbT.js","assets/switch-CsMGEdLR.js","assets/CopyOutlined-C9O1hBIm.js","assets/CodeBlock-BB4pQul-.js","assets/StatusTag-BOdwUJ1y.js","assets/badge-CT2dDAGA.js","assets/SendingLogs-DSu5v-Zl.js","assets/navigation-state-ixI_efPF.js","assets/Inbox-7UH19KPt.js","assets/input-number-5vwSxUlw.js","assets/PlusOutlined-aj3TL3Tz.js","assets/MailboxPermissionTags-dGhSGuw4.js","assets/SmtpCredentials-a0UgeAH-.js","assets/popconfirm-BvP3t7-7.js","assets/ApiTokens-yNoe0ogC.js","assets/Webhooks-pSWRIh7Y.js","assets/DnsApi-Bros5Dbx.js","assets/Admin-xFOA6-bp.js","assets/Settings-v55Om0XG.js","assets/Account-nhuoQQlz.js"])))=>i.map(i=>d[i]);
  2. import{a as e,n as t,r as n,t as r}from"./react-dom-stZKkA6x.js";import"./modulepreload-polyfill-Dezn_h7o.js";import{A as i,E as a,M as o,N as s,P as c,a as l,c as u,d,i as f,k as p,l as m,n as h,o as g,r as _,s as v,u as y}from"./theme-B5baUfEh.js";import{$n as b,A as x,An as S,B as C,Cn as w,Cr as T,D as E,Dn as D,Dr as O,E as k,En as A,Er as j,Et as M,F as N,Ft as P,G as F,Gt as I,H as ee,Ht as L,I as R,It as z,Kt as te,L as B,Lt as V,M as ne,Mn as H,Mr as U,Mt as re,N as ie,O as W,On as ae,Or as oe,P as se,Pn as ce,Pt as le,R as ue,Rn as G,Rt as de,Sn as fe,T as pe,Tt as me,U as he,Vn as ge,Vt as _e,W as ve,Wt as ye,Xt as be,Yt as xe,Zn as Se,Zt as Ce,_n as we,bn as K,br as Te,cn as Ee,dn as De,hn as Oe,i as ke,ir as Ae,j as je,jn as Me,jr as Ne,k as Pe,kn as Fe,kr as Ie,kt as Le,ln as Re,lr as ze,mn as Be,n as Ve,nn as He,nt as Ue,or as We,pn as Ge,qn as Ke,rn as qe,sn as Je,st as Ye,t as Xe,tr as Ze,un as Qe,ut as $e,vr as et,w as tt,wn as nt,xn as rt,xr as it,yn as at,z as ot,zn as st,zt as ct}from"./jsx-runtime-dm82oUI8.js";var q=e(t()),lt=q.createContext({}),ut=e=>{let{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:c,textFontSize:l,textFontSizeLG:u,textFontSizeSM:d,iconFontSize:f,iconFontSizeLG:p,iconFontSizeSM:m,borderRadius:h,borderRadiusLG:g,borderRadiusSM:_,lineWidth:v,lineType:y}=e,x=(e,t,i,a)=>({width:e,height:e,borderRadius:`50%`,fontSize:t,[`&${n}-square`]:{borderRadius:a},[`&${n}-icon`]:{fontSize:i,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},A(e)),{position:`relative`,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,overflow:`hidden`,color:a,whiteSpace:`nowrap`,textAlign:`center`,verticalAlign:`middle`,background:i,border:`${b(v)} ${y} transparent`,"&-image":{background:`transparent`},[`${t}-image-img`]:{display:`block`}}),x(o,l,f,h)),{"&-lg":Object.assign({},x(s,u,p,g)),"&-sm":Object.assign({},x(c,d,m,_)),"> img":{display:`block`,width:`100%`,height:`100%`,objectFit:`cover`}})}},dt=e=>{let{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:`inline-flex`,[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},ft=K(`Avatar`,e=>{let{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Me(e,{avatarBg:n,avatarColor:t});return[ut(r),dt(r)]},e=>{let{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:c,marginXXS:l,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:i,textFontSizeLG:i,textFontSizeSM:i,iconFontSize:Math.round((a+o)/2),iconFontSizeLG:s,iconFontSizeSM:i,groupSpace:l,groupOverlapping:-c,groupBorderColor:u}}),J=e(U()),pt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},mt=q.forwardRef((e,t)=>{let{prefixCls:n,shape:r,size:i,src:a,srcSet:o,icon:s,className:c,rootClassName:l,style:u,alt:d,draggable:f,children:p,crossOrigin:m,gap:h=4,onError:g}=e,_=pt(e,[`prefixCls`,`shape`,`size`,`src`,`srcSet`,`icon`,`className`,`rootClassName`,`style`,`alt`,`draggable`,`children`,`crossOrigin`,`gap`,`onError`]),[v,y]=q.useState(1),[b,x]=q.useState(!1),[S,w]=q.useState(!0),T=q.useRef(null),E=q.useRef(null),D=et(t,T),{getPrefixCls:O,avatar:k}=q.useContext(G),A=q.useContext(lt),j=()=>{if(!E.current||!T.current)return;let e=E.current.offsetWidth,t=T.current.offsetWidth;e!==0&&t!==0&&h*2<t&&y(t-h*2<e?(t-h*2)/e:1)};q.useEffect(()=>{x(!0)},[]),q.useEffect(()=>{w(!0),y(1)},[a]),q.useEffect(j,[h]);let M=()=>{g?.()!==!1&&w(!1)},N=I(e=>i??A?.size??e??`default`),P=C(Object.keys(typeof N==`object`&&N||{}).some(e=>[`xs`,`sm`,`md`,`lg`,`xl`,`xxl`].includes(e))),F=q.useMemo(()=>{if(typeof N!=`object`)return{};let e=ee.find(e=>P[e]),t=N[e];return t?{width:t,height:t,fontSize:t&&(s||p)?t/2:18}:{}},[P,N,s,p]),L=O(`avatar`,n),R=Ee(L),[z,te,B]=ft(L,R),V=(0,J.default)({[`${L}-lg`]:N===`large`,[`${L}-sm`]:N===`small`}),ne=q.isValidElement(a),H=r||A?.shape||`circle`,U=(0,J.default)(L,V,k?.className,`${L}-${H}`,{[`${L}-image`]:ne||a&&S,[`${L}-icon`]:!!s},B,R,c,l,te),re=typeof N==`number`?{width:N,height:N,fontSize:s?N/2:18}:{},ie;if(typeof a==`string`&&S)ie=q.createElement(`img`,{src:a,draggable:f,srcSet:o,onError:M,alt:d,crossOrigin:m});else if(ne)ie=a;else if(s)ie=s;else if(b||v!==1){let e=`scale(${v})`,t={msTransform:e,WebkitTransform:e,transform:e};ie=q.createElement(ze,{onResize:j},q.createElement(`span`,{className:`${L}-string`,ref:E,style:t},p))}else ie=q.createElement(`span`,{className:`${L}-string`,style:{opacity:0},ref:E},p);return z(q.createElement(`span`,Object.assign({},_,{style:Object.assign(Object.assign(Object.assign(Object.assign({},re),F),k?.style),u),className:U,ref:D}),ie))}),ht=e=>e?typeof e==`function`?e():e:null,gt=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},A(e)),{position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,"--valid-offset-x":`var(--arrow-offset-horizontal, var(--arrow-x))`,transformOrigin:[`var(--valid-offset-x, 50%)`,`var(--arrow-y, 50%)`].join(` `),"--antd-arrow-background-color":d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-inner`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-inner-content`]:{color:n,padding:m}})},B(e,`var(--antd-arrow-background-color)`),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`,[`${t}-content`]:{display:`inline-block`}}}]},_t=e=>{let{componentCls:t}=e;return{[t]:S.map(n=>{let r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:`transparent`}}}})}},vt=K(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=Me(e,{popoverBg:t,popoverColor:n});return[gt(r),_t(r),re(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},ue(e)),R({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0})},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),yt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},bt=({title:e,content:t,prefixCls:n})=>!e&&!t?null:q.createElement(q.Fragment,null,e&&q.createElement(`div`,{className:`${n}-title`},e),t&&q.createElement(`div`,{className:`${n}-inner-content`},t)),xt=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c}=e,l=ht(o),u=ht(s),d=(0,J.default)(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return q.createElement(`div`,{className:d,style:i},q.createElement(`div`,{className:`${n}-arrow`}),q.createElement(ot,Object.assign({},e,{className:t,prefixCls:n}),c||q.createElement(bt,{prefixCls:n,title:l,content:u})))},St=e=>{let{prefixCls:t,className:n}=e,r=yt(e,[`prefixCls`,`className`]),{getPrefixCls:i}=q.useContext(G),a=i(`popover`,t),[o,s,c]=vt(a);return o(q.createElement(xt,Object.assign({},r,{prefixCls:a,hashId:s,className:(0,J.default)(n,c)})))},Ct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},wt=q.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s=`hover`,children:c,mouseEnterDelay:l=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:f={},styles:p,classNames:m}=e,h=Ct(e,[`prefixCls`,`title`,`content`,`overlayClassName`,`placement`,`trigger`,`children`,`mouseEnterDelay`,`mouseLeaveDelay`,`onOpenChange`,`overlayStyle`,`styles`,`classNames`]),{getPrefixCls:g,className:_,style:v,classNames:y,styles:b}=st(`popover`),x=g(`popover`,n),[S,C,w]=vt(x),T=g(),E=(0,J.default)(a,C,w,_,y.root,m?.root),D=(0,J.default)(y.body,m?.body),[O,k]=H(!1,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),A=(e,t)=>{k(e,!0),d?.(e,t)},j=e=>{e.keyCode===Je.ESC&&A(!1,e)},M=e=>{A(e)},N=ht(r),P=ht(i);return S(q.createElement(ne,Object.assign({placement:o,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:u},h,{prefixCls:x,classNames:{root:E,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},b.root),v),f),p?.root),body:Object.assign(Object.assign({},b.body),p?.body)},ref:t,open:O,onOpenChange:M,overlay:N||P?q.createElement(bt,{prefixCls:x,title:N,content:P}):null,transitionName:be(T,`zoom-big`,h.transitionName),"data-popover-inject":!0}),Re(c,{onKeyDown:e=>{var t,n;(0,q.isValidElement)(c)&&((n=c==null?void 0:(t=c.props).onKeyDown)==null||n.call(t,e)),j(e)}})))});wt._InternalPanelDoNotUseOrYouWillBeFired=St;var Tt=e=>{let{size:t,shape:n}=q.useContext(lt),r=q.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return q.createElement(lt.Provider,{value:r},e.children)},Et=e=>{let{getPrefixCls:t,direction:n}=q.useContext(G),{prefixCls:r,className:i,rootClassName:a,style:o,maxCount:s,maxStyle:c,size:l,shape:u,maxPopoverPlacement:d,maxPopoverTrigger:f,children:p,max:m}=e,h=t(`avatar`,r),g=`${h}-group`,_=Ee(h),[v,y,b]=ft(h,_),x=(0,J.default)(g,{[`${g}-rtl`]:n===`rtl`},b,_,i,a,y),S=Ie(p).map((e,t)=>Re(e,{key:`avatar-key-${t}`})),C=m?.count||s,w=S.length;if(C&&C<w){let e=S.slice(0,C),t=S.slice(C,w),n=m?.style||c,r=m?.popover?.trigger||f||`hover`,i=m?.popover?.placement||d||`top`,a=Object.assign(Object.assign({content:t},m?.popover),{classNames:{root:(0,J.default)(`${g}-popover`,m?.popover?.classNames?.root)},placement:i,trigger:r});return e.push(q.createElement(wt,Object.assign({key:`avatar-popover-key`,destroyOnHidden:!0},a),q.createElement(mt,{style:n},`+${w-C}`))),v(q.createElement(Tt,{shape:u,size:l},q.createElement(`div`,{className:x,style:o},e)))}return v(q.createElement(Tt,{shape:u,size:l},q.createElement(`div`,{className:x,style:o},S)))},Dt=mt;Dt.Group=Et;var Ot={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z`}}]},name:`left`,theme:`outlined`},kt=q.forwardRef(function(e,t){return q.createElement(Be,Ne({},e,{ref:t,icon:Ot}))}),At=e=>typeof e!=`object`&&typeof e!=`function`||e===null,jt={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`bars`,theme:`outlined`},Mt=q.forwardRef(function(e,t){return q.createElement(Be,Ne({},e,{ref:t,icon:jt}))}),Nt=q.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Pt=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{boxSizing:`border-box`},[`&${n}-has-sider`]:{flexDirection:`row`,[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:`0 0 auto`},"&-rtl":{direction:`rtl`}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:b(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},Ft=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},It=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],Lt=K(`Layout`,Pt,Ft,{deprecatedTokens:It}),Rt=K([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:b(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${b(f)} ${b(f)} 0`,cursor:`pointer`,transition:`background ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${b(f)} 0 0 ${b(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},Ft,{deprecatedTokens:It}),zt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Bt={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`},Vt=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Ht=q.createContext({}),Ut=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),Wt=q.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s=`dark`,style:c={},collapsible:l=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g}=e,_=zt(e,[`prefixCls`,`className`,`trigger`,`children`,`defaultCollapsed`,`theme`,`style`,`collapsible`,`reverseArrow`,`width`,`collapsedWidth`,`zeroWidthTriggerStyle`,`breakpoint`,`onCollapse`,`onBreakpoint`]),{siderHook:v}=(0,q.useContext)(Nt),[y,b]=(0,q.useState)(`collapsed`in e?e.collapsed:o),[x,S]=(0,q.useState)(!1);(0,q.useEffect)(()=>{`collapsed`in e&&b(e.collapsed)},[e.collapsed]);let C=(t,n)=>{`collapsed`in e||b(t),h?.(t,n)},{getPrefixCls:w,direction:T}=(0,q.useContext)(G),E=w(`layout-sider`,n),[D,O,k]=Rt(E),A=(0,q.useRef)(null);A.current=e=>{S(e.matches),g?.(e.matches),y!==e.matches&&C(e.matches,`responsive`)},(0,q.useEffect)(()=>{function e(e){return A.current?.call(A,e)}let t;return(window==null?void 0:window.matchMedia)!==void 0&&m&&m in Bt&&(t=window.matchMedia(`screen and (max-width: ${Bt[m]})`),he(t,e),e(t)),()=>{ve(t,e)}},[m]),(0,q.useEffect)(()=>{let e=Ut(`ant-sider-`);return v.addSider(e),()=>v.removeSider(e)},[]);let j=()=>{C(!y,`clickTrigger`)},M=xe(_,[`collapsed`]),N=y?f:d,P=Vt(N)?`${N}px`:String(N),F=Number.parseFloat(String(f||0))===0?q.createElement(`span`,{onClick:j,className:(0,J.default)(`${E}-zero-width-trigger`,`${E}-zero-width-trigger-${u?`right`:`left`}`),style:p},i||q.createElement(Mt,null)):null,I=T===`rtl`==!u,ee={expanded:I?q.createElement(L,null):q.createElement(kt,null),collapsed:I?q.createElement(kt,null):q.createElement(L,null)}[y?`collapsed`:`expanded`],R=i===null?null:F||q.createElement(`div`,{className:`${E}-trigger`,onClick:j,style:{width:P}},i||ee),z=Object.assign(Object.assign({},c),{flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P}),te=(0,J.default)(E,`${E}-${s}`,{[`${E}-collapsed`]:!!y,[`${E}-has-trigger`]:l&&i!==null&&!F,[`${E}-below`]:!!x,[`${E}-zero-width`]:Number.parseFloat(P)===0},r,O,k),B=q.useMemo(()=>({siderCollapsed:y}),[y]);return D(q.createElement(Ht.Provider,{value:B},q.createElement(`aside`,Object.assign({className:te},M,{style:z,ref:t}),q.createElement(`div`,{className:`${E}-children`},a),l||x&&F?R:null)))}),Gt=(0,q.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1}),Kt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},qt=e=>{let{prefixCls:t,className:n,dashed:r}=e,i=Kt(e,[`prefixCls`,`className`,`dashed`]),{getPrefixCls:a}=q.useContext(G),o=(0,J.default)({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return q.createElement(E,Object.assign({className:o},i))},Jt=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=q.useContext(Gt),f=e=>{let t=n?.[0],i=q.createElement(`span`,{className:(0,J.default)(`${s}-title-content`,{[`${s}-title-content-with-extra`]:!!o||o===0})},n);return(!r||q.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?q.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:p}=q.useContext(Ht),m=i;i===void 0?m=c?n:``:i===!1&&(m=``);let h={title:m};!p&&!d&&(h.title=null,h.open=!1);let g=Ie(n).length,_=q.createElement(Pe,Object.assign({},xe(e,[`title`,`icon`,`danger`]),{className:(0,J.default)({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?g+1:g)===1},t),title:typeof i==`string`?i:void 0}),Re(r,{className:(0,J.default)(q.isValidElement(r)?r.props?.className:void 0,`${s}-item-icon`)}),f(d));return u||(_=q.createElement(ne,Object.assign({},h,{placement:l===`rtl`?`left`:`right`,classNames:{root:`${s}-inline-collapsed-tooltip`}}),_)),_},Yt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Xt=q.createContext(null),Zt=q.forwardRef((e,t)=>{let{children:n}=e,r=Yt(e,[`children`]),i=q.useContext(Xt),a=q.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=it(n),s=T(t,o?Te(n):null);return q.createElement(Xt.Provider,{value:a},q.createElement($e,{space:!0},o?q.cloneElement(n,{ref:s}):n))}),Qt=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${b(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
  3. > ${t}-item-active,
  4. > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},$t=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical,
  5. ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${b(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${b(t)})`}}}}),en=e=>w(e),tn=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:x,itemDisabledColor:S,dangerItemColor:C,dangerItemHoverColor:w,dangerItemSelectedColor:T,dangerItemActiveBg:E,dangerItemSelectedBg:D,popupBg:O,itemHoverBg:k,itemActiveBg:A,menuSubMenuBg:j,horizontalItemSelectedColor:M,horizontalItemSelectedBg:N,horizontalItemBorderRadius:P,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},en(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},en(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:D}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},t===`dark`?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${b(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:u,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${b(f)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${b(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform ${_} ${h}`,`opacity ${_} ${h}`].join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform ${_} ${m}`,`opacity ${_} ${m}`].join(`,`)}}}}}},nn=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:b(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
  6. > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:b(n)},[`${t}-item-group-list ${t}-submenu-title,
  7. ${t}-submenu-title`]:{paddingInlineEnd:u}}},rn=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:h,collapsedIconSize:g}=e,_={height:r,lineHeight:b(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:`none`}},nn(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},nn(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${b(e.calc(o).mul(2.5).equal())})`,padding:`0`,overflow:`hidden`,borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:`hidden`,overflowY:`auto`}}},{[`${t}-inline`]:{width:`100%`,[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${s}`].join(`,`),[`> ${t}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${t}-submenu > ${t}-submenu-title`]:_,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:_}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:`center`}}},[`> ${t}-item,
  8. > ${t}-item-group > ${t}-item-group-list > ${t}-item,
  9. > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
  10. > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${b(e.calc(g).div(2).equal())} - ${b(l)})`,textOverflow:`clip`,[`
  11. ${t}-submenu-arrow,
  12. ${t}-submenu-expand-icon
  13. `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:b(r),"+ span":{display:`inline-block`,opacity:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ae),{paddingInline:p})}}]},an=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:Object.assign({},D()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},on=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${b(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${b(o)})`}}}}},sn=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v}=e;return[{"":{[n]:Object.assign(Object.assign({},fe()),{"&-hidden":{display:`none`}})},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A(e)),fe()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:`none`},"&-overflow":{display:`flex`,[`${n}-item`]:{flex:`none`}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${b(s)} ${b(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> ${t}-typography-ellipsis-single-line`]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}}}),an(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${b(e.calc(r).mul(2).equal())} ${b(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},an(e)),on(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:`100% 0`},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:`100% 100%`},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:`0 100%`},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:`0 0`},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),on(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
  14. &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${b(h)})`},"&::after":{transform:`rotate(45deg) translateX(${b(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${b(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${b(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${b(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},cn=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new ge(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new ge(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},ln=(e,t=e,n=!0)=>K(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=Me(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=Me(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[sn(x),Qt(x),rn(x),tn(x,`light`),tn(S,`dark`),$t(x),_e(x),le(x,`slide-up`),le(x,`slide-down`),re(x,`zoom-big`)]},cn,{deprecatedTokens:[[`colorGroupTitle`,`groupTitleColor`],[`radiusItem`,`itemBorderRadius`],[`radiusSubMenuItem`,`subMenuItemBorderRadius`],[`colorItemText`,`itemColor`],[`colorItemTextHover`,`itemHoverColor`],[`colorItemTextHoverHorizontal`,`horizontalItemHoverColor`],[`colorItemTextSelected`,`itemSelectedColor`],[`colorItemTextSelectedHorizontal`,`horizontalItemSelectedColor`],[`colorItemTextDisabled`,`itemDisabledColor`],[`colorDangerItemText`,`dangerItemColor`],[`colorDangerItemTextHover`,`dangerItemHoverColor`],[`colorDangerItemTextSelected`,`dangerItemSelectedColor`],[`colorDangerItemBgActive`,`dangerItemActiveBg`],[`colorDangerItemBgSelected`,`dangerItemSelectedBg`],[`colorItemBg`,`itemBg`],[`colorItemBgHover`,`itemHoverBg`],[`colorSubItemBg`,`subMenuItemBg`],[`colorItemBgActive`,`itemActiveBg`],[`colorItemBgSelectedHorizontal`,`horizontalItemSelectedBg`],[`colorActiveBarWidth`,`activeBarWidth`],[`colorActiveBarHeight`,`activeBarHeight`],[`colorActiveBarBorderSize`,`activeBarBorderWidth`],[`colorItemBgSelected`,`itemSelectedBg`]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),un=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=q.useContext(Gt),{prefixCls:o,inlineCollapsed:s,theme:c}=a,l=x(),u;if(!n)u=s&&!l.length&&r&&typeof r==`string`?q.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):q.createElement(`span`,{className:`${o}-title-content`},r);else{let e=q.isValidElement(r)&&r.type===`span`;u=q.createElement(q.Fragment,null,Re(n,{className:(0,J.default)(q.isValidElement(n)?n.props?.className:void 0,`${o}-item-icon`)}),e?r:q.createElement(`span`,{className:`${o}-title-content`},r))}let d=q.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[f]=He(`Menu`);return q.createElement(Gt.Provider,{value:d},q.createElement(W,Object.assign({},xe(e,[`icon`]),{title:u,popupClassName:(0,J.default)(o,t,`${o}-${i||c}`),popupStyle:Object.assign({zIndex:f},e.popupStyle)})))},dn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function fn(e){return e===null||e===!1}var pn={item:Jt,submenu:un,divider:qt},mn=(0,q.forwardRef)((e,t)=>{var n;let r=q.useContext(Xt),i=r||{},{getPrefixCls:a,getPopupContainer:o,direction:s,menu:c}=q.useContext(G),l=a(),{prefixCls:u,className:d,style:f,theme:p=`light`,expandIcon:m,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:g,siderCollapsed:_,rootClassName:v,mode:y,selectable:b,onClick:x,overflowedIndicatorPopupClassName:S}=e,C=xe(dn(e,[`prefixCls`,`className`,`style`,`theme`,`expandIcon`,`_internalDisableMenuItemTitleTooltip`,`inlineCollapsed`,`siderCollapsed`,`rootClassName`,`mode`,`selectable`,`onClick`,`overflowedIndicatorPopupClassName`]),[`collapsedWidth`]);(n=i.validator)==null||n.call(i,{mode:y});let w=ce((...e)=>{var t;x?.apply(void 0,e),(t=i.onClick)==null||t.call(i)}),T=i.mode||y,E=b??i.selectable,D=g??_,O={horizontal:{motionName:`${l}-slide-up`},inline:Ce(l),other:{motionName:`${l}-zoom-big`}},k=a(`menu`,u||i.prefixCls),A=Ee(k),[j,M,N]=ln(k,A,!r),P=(0,J.default)(`${k}-${p}`,c?.className,d),F=q.useMemo(()=>{if(typeof m==`function`||fn(m))return m||null;if(typeof i.expandIcon==`function`||fn(i.expandIcon))return i.expandIcon||null;if(typeof c?.expandIcon==`function`||fn(c?.expandIcon))return c?.expandIcon||null;let e=m??i?.expandIcon??c?.expandIcon;return Re(e,{className:(0,J.default)(`${k}-submenu-expand-icon`,q.isValidElement(e)?e.props?.className:void 0)})},[m,i?.expandIcon,c?.expandIcon,k]),I=q.useMemo(()=>({prefixCls:k,inlineCollapsed:D||!1,direction:s,firstLevel:!0,theme:p,mode:T,disableMenuItemTitleTooltip:h}),[k,D,s,h,p]);return j(q.createElement(Xt.Provider,{value:null},q.createElement(Gt.Provider,{value:I},q.createElement(pe,Object.assign({getPopupContainer:o,overflowedIndicator:q.createElement(tt,null),overflowedIndicatorPopupClassName:(0,J.default)(k,`${k}-${p}`,S),mode:T,selectable:E,onClick:w},C,{inlineCollapsed:D,style:Object.assign(Object.assign({},c?.style),f),className:P,prefixCls:k,direction:s,defaultMotions:O,expandIcon:F,ref:t,rootClassName:(0,J.default)(v,M,i.rootClassName,N,A),_internalComponents:pn})))))}),hn=(0,q.forwardRef)((e,t)=>{let n=(0,q.useRef)(null),r=q.useContext(Ht);return(0,q.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;(t=n.current)==null||t.focus(e)}})),q.createElement(mn,Object.assign({ref:n},e,r))});hn.Item=Jt,hn.SubMenu=un,hn.Divider=qt,hn.ItemGroup=k;var gn=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},_n=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`100vh`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
  15. &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft,
  16. &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom,
  17. &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom,
  18. &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight,
  19. &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:V},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft,
  20. &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft,
  21. &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top,
  22. &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top,
  23. &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight,
  24. &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:P},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft,
  25. &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom,
  26. &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:de},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
  27. &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top,
  28. &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:z}}},B(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},A(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary},nt(e)),{"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${b(l)} ${b(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},"> a":{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:`flex`,margin:0,padding:`${b(l)} ${b(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},nt(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${b(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}}),[`${n}-item-group-list`]:{margin:`0 ${b(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[le(e,`slide-up`),le(e,`slide-down`),ct(e,`move-up`),ct(e,`move-down`),re(e,`zoom-big`)]]},vn=K(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Me(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[_n(a),gn(a)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},R({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),ue(e)),{resetStyle:!1}),yn=e=>{let{menu:t,arrow:n,prefixCls:r,children:i,trigger:a,disabled:o,dropdownRender:s,popupRender:c,getPopupContainer:l,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:m,visible:h,onVisibleChange:g,mouseEnterDelay:_=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:y=!0,placement:b=``,overlay:x,transitionName:S,destroyOnHidden:C,destroyPopupOnHide:w}=e,{getPopupContainer:T,getPrefixCls:E,direction:D,dropdown:O}=q.useContext(G),k=c||s;Ke(`Dropdown`);let A=q.useMemo(()=>{let e=E();return S===void 0?b.includes(`top`)?`${e}-slide-down`:`${e}-slide-up`:S},[E,b,S]),j=q.useMemo(()=>b?b.includes(`Center`)?b.slice(0,b.indexOf(`Center`)):b:D===`rtl`?`bottomRight`:`bottomLeft`,[b,D]),M=E(`dropdown`,r),P=Ee(M),[F,I,ee]=vn(M,P),[,R]=Fe(),z=q.Children.only(At(i)?q.createElement(`span`,null,i):i),te=Re(z,{className:(0,J.default)(`${M}-trigger`,{[`${M}-rtl`]:D===`rtl`},z.props.className),disabled:z.props.disabled??o}),B=o?[]:a,V=!!B?.includes(`contextMenu`),[ne,U]=H(!1,{value:p??h}),re=ce(e=>{m?.(e,{source:`trigger`}),g?.(e),U(e)}),ie=(0,J.default)(u,d,I,ee,P,O?.className,{[`${M}-rtl`]:D===`rtl`}),W=N({arrowPointAtCenter:typeof n==`object`&&n.pointAtCenter,autoAdjustOverflow:y,offset:R.marginXXS,arrowWidth:n?R.sizePopupArrow:0,borderRadius:R.borderRadius}),ae=ce(()=>{t?.selectable&&t?.multiple||(m?.(!1,{source:`menu`}),U(!1))}),oe=()=>{let e;return e=t?.items?q.createElement(hn,Object.assign({},t)):typeof x==`function`?x():x,k&&(e=k(e)),e=q.Children.only(typeof e==`string`?q.createElement(`span`,null,e):e),q.createElement(Zt,{prefixCls:`${M}-menu`,rootClassName:(0,J.default)(ee,P),expandIcon:q.createElement(`span`,{className:`${M}-menu-submenu-arrow`},D===`rtl`?q.createElement(kt,{className:`${M}-menu-submenu-arrow-icon`}):q.createElement(L,{className:`${M}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:ae,validator:({mode:e})=>{}},e)},[se,le]=He(`Dropdown`,f?.zIndex),ue=q.createElement(je,Object.assign({alignPoint:V},xe(e,[`rootClassName`]),{mouseEnterDelay:_,mouseLeaveDelay:v,visible:ne,builtinPlacements:W,arrow:!!n,overlayClassName:ie,prefixCls:M,getPopupContainer:l||T,transitionName:A,trigger:B,overlay:oe,placement:j,onVisibleChange:re,overlayStyle:Object.assign(Object.assign(Object.assign({},O?.style),f),{zIndex:se}),autoDestroy:C??w}),te);return se&&(ue=q.createElement(qe.Provider,{value:le},ue)),F(ue)},bn=Ue(yn,`align`,void 0,`dropdown`,e=>e);yn._InternalPanelDoNotUseOrYouWillBeFired=e=>q.createElement(bn,Object.assign({},e),q.createElement(`span`,null));var xn=q.createContext(null),Sn=q.createContext({}),Cn=[`prefixCls`,`className`,`containerRef`],wn=function(e){var t=e.prefixCls,n=e.className,r=e.containerRef,i=Ze(e,Cn),a=q.useContext(Sn).panel,o=T(a,r);return q.createElement(`div`,Ne({className:(0,J.default)(`${t}-content`,n),role:`dialog`,ref:o},De(e,{aria:!0}),{"aria-modal":`true`},i))};function Tn(e){return typeof e==`string`&&String(Number(e))===e?(oe(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var En={width:0,height:0,overflow:`hidden`,outline:`none`,position:`absolute`};function Dn(e,t){var n=e.prefixCls,r=e.open,i=e.placement,a=e.inline,o=e.push,s=e.forceRender,c=e.autoFocus,l=e.keyboard,u=e.classNames,d=e.rootClassName,f=e.rootStyle,p=e.zIndex,m=e.className,h=e.id,g=e.style,_=e.motion,v=e.width,y=e.height,b=e.children,x=e.mask,S=e.maskClosable,C=e.maskMotion,w=e.maskClassName,T=e.maskStyle,E=e.afterOpenChange,D=e.onClose,k=e.onMouseEnter,A=e.onMouseOver,M=e.onMouseLeave,N=e.onClick,P=e.onKeyDown,F=e.onKeyUp,I=e.styles,ee=e.drawerRender,L=q.useRef(),R=q.useRef(),z=q.useRef();q.useImperativeHandle(t,function(){return L.current});var te=function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case Je.TAB:if(t===Je.TAB){if(!n&&document.activeElement===z.current){var r;(r=R.current)==null||r.focus({preventScroll:!0})}else if(n&&document.activeElement===R.current){var i;(i=z.current)==null||i.focus({preventScroll:!0})}}break;case Je.ESC:D&&l&&(e.stopPropagation(),D(e));break}};q.useEffect(function(){if(r&&c){var e;(e=L.current)==null||e.focus({preventScroll:!0})}},[r]);var B=Ae(q.useState(!1),2),V=B[0],ne=B[1],H=q.useContext(xn),U=(typeof o==`boolean`?o?{}:{distance:0}:o||{})?.distance??H?.pushDistance??180,re=q.useMemo(function(){return{pushDistance:U,push:function(){ne(!0)},pull:function(){ne(!1)}}},[U]);q.useEffect(function(){if(r){var e;H==null||(e=H.push)==null||e.call(H)}else{var t;H==null||(t=H.pull)==null||t.call(H)}},[r]),q.useEffect(function(){return function(){var e;H==null||(e=H.pull)==null||e.call(H)}},[]);var ie=q.createElement(we,Ne({key:`mask`},C,{visible:x&&r}),function(e,t){var i=e.className,a=e.style;return q.createElement(`div`,{className:(0,J.default)(`${n}-mask`,i,u?.mask,w),style:j(j(j({},a),T),I?.mask),onClick:S&&r?D:void 0,ref:t})}),W=typeof _==`function`?_(i):_,ae={};if(V&&U)switch(i){case`top`:ae.transform=`translateY(${U}px)`;break;case`bottom`:ae.transform=`translateY(${-U}px)`;break;case`left`:ae.transform=`translateX(${U}px)`;break;default:ae.transform=`translateX(${-U}px)`;break}i===`left`||i===`right`?ae.width=Tn(v):ae.height=Tn(y);var oe={onMouseEnter:k,onMouseOver:A,onMouseLeave:M,onClick:N,onKeyDown:P,onKeyUp:F},se=q.createElement(we,Ne({key:`panel`},W,{visible:r,forceRender:s,onVisibleChanged:function(e){E?.(e)},removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),function(t,r){var i=t.className,a=t.style,o=q.createElement(wn,Ne({id:h,containerRef:r,prefixCls:n,className:(0,J.default)(m,u?.content),style:j(j({},g),I?.content)},De(e,{aria:!0}),oe),b);return q.createElement(`div`,Ne({className:(0,J.default)(`${n}-content-wrapper`,u?.wrapper,i),style:j(j(j({},ae),a),I?.wrapper)},De(e,{data:!0})),ee?ee(o):o)}),ce=j({},f);return p&&(ce.zIndex=p),q.createElement(xn.Provider,{value:re},q.createElement(`div`,{className:(0,J.default)(n,`${n}-${i}`,d,O(O({},`${n}-open`,r),`${n}-inline`,a)),style:ce,tabIndex:-1,ref:L,onKeyDown:te},ie,q.createElement(`div`,{tabIndex:0,ref:R,style:En,"aria-hidden":`true`,"data-sentinel":`start`}),se,q.createElement(`div`,{tabIndex:0,ref:z,style:En,"aria-hidden":`true`,"data-sentinel":`end`})))}var On=q.forwardRef(Dn),kn=function(e){var t=e.open,n=t===void 0?!1:t,r=e.prefixCls,i=r===void 0?`rc-drawer`:r,a=e.placement,o=a===void 0?`right`:a,s=e.autoFocus,c=s===void 0?!0:s,l=e.keyboard,u=l===void 0?!0:l,d=e.width,f=d===void 0?378:d,p=e.mask,m=p===void 0?!0:p,h=e.maskClosable,g=h===void 0?!0:h,_=e.getContainer,v=e.forceRender,y=e.afterOpenChange,b=e.destroyOnClose,x=e.onMouseEnter,S=e.onMouseOver,C=e.onMouseLeave,w=e.onClick,T=e.onKeyDown,E=e.onKeyUp,D=e.panelRef,O=Ae(q.useState(!1),2),k=O[0],A=O[1],N=Ae(q.useState(!1),2),P=N[0],F=N[1];Se(function(){F(!0)},[]);var I=P?n:!1,ee=q.useRef(),L=q.useRef();Se(function(){I&&(L.current=document.activeElement)},[I]);var R=function(e){var t;if(A(e),y?.(e),!e&&L.current&&!((t=ee.current)!=null&&t.contains(L.current))){var n;(n=L.current)==null||n.focus({preventScroll:!0})}},z=q.useMemo(function(){return{panel:D}},[D]);if(!v&&!k&&!I&&b)return null;var te={onMouseEnter:x,onMouseOver:S,onMouseLeave:C,onClick:w,onKeyDown:T,onKeyUp:E},B=j(j({},e),{},{open:I,prefixCls:i,placement:o,autoFocus:c,keyboard:u,width:f,mask:m,maskClosable:g,inline:_===!1,afterOpenChange:R,ref:ee},te);return q.createElement(Sn.Provider,{value:z},q.createElement(M,{open:I||v||k,autoDestroy:!1,getContainer:_,autoLock:m&&(I||k)},q.createElement(On,B)))},An=e=>{let{prefixCls:t,ariaId:n,title:r,footer:a,extra:o,closable:s,loading:c,onClose:l,headerStyle:u,bodyStyle:d,footerStyle:f,children:m,classNames:h,styles:g}=e,_=st(`drawer`),v;v=s===!1?void 0:s===void 0||s===!0?`start`:s?.placement===`end`?`end`:`start`;let y=q.useCallback(e=>q.createElement(`button`,{type:`button`,onClick:l,className:(0,J.default)(`${t}-close`,{[`${t}-close-${v}`]:v===`end`})},e),[l,t,v]),[b,x]=i(p(e),p(_),{closable:!0,closeIconRender:y});return q.createElement(q.Fragment,null,!r&&!b?null:q.createElement(`div`,{style:Object.assign(Object.assign(Object.assign({},_.styles?.header),u),g?.header),className:(0,J.default)(`${t}-header`,{[`${t}-header-close-only`]:b&&!r&&!o},_.classNames?.header,h?.header)},q.createElement(`div`,{className:`${t}-header-title`},v===`start`&&x,r&&q.createElement(`div`,{className:`${t}-title`,id:n},r)),o&&q.createElement(`div`,{className:`${t}-extra`},o),v===`end`&&x),q.createElement(`div`,{className:(0,J.default)(`${t}-body`,h?.body,_.classNames?.body),style:Object.assign(Object.assign(Object.assign({},_.styles?.body),d),g?.body)},c?q.createElement(Ye,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):m),(()=>{if(!a)return null;let e=`${t}-footer`;return q.createElement(`div`,{className:(0,J.default)(e,_.classNames?.footer,h?.footer),style:Object.assign(Object.assign(Object.assign({},_.styles?.footer),f),g?.footer)},a)})())},jn=e=>{let t=`100%`;return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Mn=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Nn=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:`none`},"&-active":{transition:`all ${t}`}}},Mn({opacity:e},{opacity:1})),Pn=(e,t)=>[Nn(.7,t),Mn({transform:jn(e)},{transform:`none`})],Fn=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Nn(0,n),[`${t}-panel-motion`]:[`left`,`right`,`top`,`bottom`].reduce((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:Pn(t,n)}),{})}}},In=e=>{let{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,paddingXS:c,padding:l,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:m,colorSplit:h,marginXS:g,colorIcon:_,colorIconHover:v,colorBgTextHover:y,colorBgTextActive:x,colorText:S,fontWeightStrong:C,footerPaddingBlock:w,footerPaddingInline:T,calc:E}=e,D=`${n}-content-wrapper`;return{[n]:{position:`fixed`,inset:0,zIndex:r,pointerEvents:`none`,color:S,"&-pure":{position:`relative`,background:a,display:`flex`,flexDirection:`column`,[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:`absolute`},[`${n}-mask`]:{position:`absolute`,inset:0,zIndex:r,background:i,pointerEvents:`auto`},[D]:{position:`absolute`,zIndex:r,maxWidth:`100vw`,transition:`all ${o}`,"&-hidden":{display:`none`}},[`&-left > ${D}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${D}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${D}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${D}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`,overflow:`auto`,background:a,pointerEvents:`auto`},[`${n}-header`]:{display:`flex`,flex:0,alignItems:`center`,padding:`${b(l)} ${b(u)}`,fontSize:d,lineHeight:f,borderBottom:`${b(p)} ${m} ${h}`,"&-title":{display:`flex`,flex:1,alignItems:`center`,minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:`none`},[`${n}-close`]:Object.assign({display:`inline-flex`,width:E(d).add(c).equal(),height:E(d).add(c).equal(),borderRadius:t,justifyContent:`center`,alignItems:`center`,color:_,fontWeight:C,fontSize:d,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,textDecoration:`none`,background:`transparent`,border:0,cursor:`pointer`,transition:`all ${s}`,textRendering:`auto`,[`&${n}-close-end`]:{marginInlineStart:g},[`&:not(${n}-close-end)`]:{marginInlineEnd:g},"&:hover":{color:v,backgroundColor:y,textDecoration:`none`},"&:active":{backgroundColor:x}},nt(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:`auto`,[`${n}-body-skeleton`]:{width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`}},[`${n}-footer`]:{flexShrink:0,padding:`${b(w)} ${b(T)}`,borderTop:`${b(p)} ${m} ${h}`},"&-rtl":{direction:`rtl`}}}},Ln=K(`Drawer`,e=>{let t=Me(e,{});return[In(t),Fn(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})),Rn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},zn={distance:180},Bn=e=>{let{rootClassName:t,width:n,height:r,size:i=`default`,mask:o=!0,push:s=zn,open:c,afterOpenChange:l,onClose:u,prefixCls:d,getContainer:f,panelRef:p=null,style:m,className:h,"aria-labelledby":g,visible:_,afterVisibleChange:v,maskStyle:y,drawerStyle:b,contentWrapperStyle:x,destroyOnClose:S,destroyOnHidden:C}=e,w=Rn(e,[`rootClassName`,`width`,`height`,`size`,`mask`,`push`,`open`,`afterOpenChange`,`onClose`,`prefixCls`,`getContainer`,`panelRef`,`style`,`className`,`aria-labelledby`,`visible`,`afterVisibleChange`,`maskStyle`,`drawerStyle`,`contentWrapperStyle`,`destroyOnClose`,`destroyOnHidden`]),T=me(),E=w.title?T:void 0,{getPopupContainer:D,getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=st(`drawer`),P=O(`drawer`,d),[F,I,ee]=Ln(P),L=f===void 0&&D?()=>D(document.body):f,R=(0,J.default)({"no-mask":!o,[`${P}-rtl`]:k===`rtl`},t,I,ee),z=q.useMemo(()=>n??(i===`large`?736:378),[n,i]),te=q.useMemo(()=>r??(i===`large`?736:378),[r,i]),B={motionName:be(P,`mask-motion`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},V=e=>({motionName:be(P,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),ne=et(p,a()),[H,U]=He(`Drawer`,w.zIndex),{classNames:re={},styles:ie={}}=w;return F(q.createElement($e,{form:!0,space:!0},q.createElement(qe.Provider,{value:U},q.createElement(kn,Object.assign({prefixCls:P,onClose:u,maskMotion:B,motion:V},w,{classNames:{mask:(0,J.default)(re.mask,M.mask),content:(0,J.default)(re.content,M.content),wrapper:(0,J.default)(re.wrapper,M.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ie.mask),y),N.mask),content:Object.assign(Object.assign(Object.assign({},ie.content),b),N.content),wrapper:Object.assign(Object.assign(Object.assign({},ie.wrapper),x),N.wrapper)},open:c??_,mask:o,push:s,width:z,height:te,style:Object.assign(Object.assign({},j),m),className:(0,J.default)(A,h),rootClassName:R,getContainer:L,afterOpenChange:l??v,panelRef:ne,zIndex:H,"aria-labelledby":g??E,destroyOnClose:C??S}),q.createElement(An,Object.assign({prefixCls:P},w,{ariaId:E,onClose:u}))))))};Bn._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,style:n,className:r,placement:i=`right`}=e,a=Rn(e,[`prefixCls`,`style`,`className`,`placement`]),{getPrefixCls:o}=q.useContext(G),s=o(`drawer`,t),[c,l,u]=Ln(s),d=(0,J.default)(s,`${s}-pure`,`${s}-${i}`,l,u,r);return c(q.createElement(`div`,{className:d,style:n},q.createElement(An,Object.assign({prefixCls:s},a))))};var Vn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Hn=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=q.useContext(G),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,overlay:g,trigger:_,align:v,open:y,onOpenChange:b,placement:x,getPopupContainer:S,href:C,icon:w=q.createElement(tt,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P}=e,F=Vn(e,`prefixCls.type.danger.disabled.loading.onClick.htmlType.children.className.menu.arrow.autoFocus.overlay.trigger.align.open.onOpenChange.placement.getPopupContainer.href.icon.title.buttonsRender.mouseEnterDelay.mouseLeaveDelay.overlayClassName.overlayStyle.destroyOnHidden.destroyPopupOnHide.dropdownRender.popupRender`.split(`.`)),I=n(`dropdown`,i),ee=`${I}-button`,L={menu:p,arrow:m,autoFocus:h,align:v,disabled:s,trigger:s?[]:_,onOpenChange:b,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,popupRender:P||N},{compactSize:R,compactItemClassnames:z}=ye(I,r),te=(0,J.default)(ee,z,f);`destroyPopupOnHide`in e&&(L.destroyPopupOnHide=M),`overlay`in e&&(L.overlay=g),`open`in e&&(L.open=y),`placement`in e?L.placement=x:L.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[B,V]=E([q.createElement(Le,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),q.createElement(Le,{type:a,danger:o,icon:w})]);return q.createElement(ke.Compact,Object.assign({className:te,size:R,block:!0},F),B,q.createElement(yn,Object.assign({},L),V))};Hn.__ANT_BUTTON=!0;var Un=yn;Un.Button=Hn;function Wn(e,t,n){return typeof n==`boolean`?n:e.length?!0:Ie(t).some(e=>e.type===Wt)}var Gn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Kn({suffixCls:e,tagName:t,displayName:n}){return n=>q.forwardRef((r,i)=>q.createElement(n,Object.assign({ref:i,suffixCls:e,tagName:t},r)))}var qn=q.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,o=Gn(e,[`prefixCls`,`suffixCls`,`className`,`tagName`]),{getPrefixCls:s}=q.useContext(G),c=s(`layout`,n),[l,u,d]=Lt(c),f=r?`${c}-${r}`:c;return l(q.createElement(a,Object.assign({className:(0,J.default)(n||f,i,u,d),ref:t},o)))}),Jn=q.forwardRef((e,t)=>{let{direction:n}=q.useContext(G),[r,i]=q.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d}=e,f=xe(Gn(e,[`prefixCls`,`className`,`rootClassName`,`children`,`hasSider`,`tagName`,`style`]),[`suffixCls`]),{getPrefixCls:p,className:m,style:h}=st(`layout`),g=p(`layout`,a),_=Wn(r,c,l),[v,y,b]=Lt(g),x=(0,J.default)(g,{[`${g}-has-sider`]:_,[`${g}-rtl`]:n===`rtl`},m,o,s,y,b),S=q.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(We(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return v(q.createElement(Nt.Provider,{value:S},q.createElement(u,Object.assign({ref:t,className:x,style:Object.assign(Object.assign({},h),d)},f),c)))}),Yn=Kn({tagName:`div`,displayName:`Layout`})(Jn),Xn=Kn({suffixCls:`header`,tagName:`header`,displayName:`Header`})(qn),Zn=Kn({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(qn),Qn=Kn({suffixCls:`content`,tagName:`main`,displayName:`Content`})(qn),$n=Yn;$n.Header=Xn,$n.Footer=Zn,$n.Content=Qn,$n.Sider=Wt,$n._InternalSiderContext=Ht;var er={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`},tr=q.forwardRef(function(e,t){return q.createElement(Be,Ne({},e,{ref:t,icon:er}))}),nr=()=>q.createElement(`svg`,{width:`252`,height:`294`},q.createElement(`title`,null,`No Found`),q.createElement(`g`,{fill:`none`,fillRule:`evenodd`},q.createElement(`circle`,{cx:`126.75`,cy:`128.1`,r:`126`,fill:`#E4EBF7`}),q.createElement(`circle`,{cx:`31.55`,cy:`130.8`,r:`8.3`,fill:`#FFF`}),q.createElement(`path`,{stroke:`#FFF`,d:`m37 134.3 10.5 6m.9 6.2-12.7 10.8`,strokeWidth:`2`}),q.createElement(`path`,{fill:`#FFF`,d:`M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2`}),q.createElement(`path`,{fill:`#FFF`,d:`M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2`}),q.createElement(`path`,{stroke:`#FFF`,d:`m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13`,strokeWidth:`2`}),q.createElement(`path`,{fill:`#FFF`,d:`M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4`}),q.createElement(`path`,{stroke:`#FFF`,d:`M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z`,strokeWidth:`2`}),q.createElement(`path`,{stroke:`#FFF`,d:`m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4`,strokeWidth:`2`}),q.createElement(`path`,{fill:`#FFF`,d:`M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7`}),q.createElement(`circle`,{cx:`204.3`,cy:`30`,r:`29.5`,fill:`#1677ff`}),q.createElement(`path`,{fill:`#FFF`,d:`M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2`}),q.createElement(`path`,{fill:`#FFB594`,d:`M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6`}),q.createElement(`path`,{fill:`#FFF`,d:`M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6`}),q.createElement(`path`,{fill:`#CBD1D1`,d:`M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6`}),q.createElement(`path`,{fill:`#2B0849`,d:`M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z`}),q.createElement(`path`,{fill:`#A4AABA`,d:`M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6`}),q.createElement(`path`,{fill:`#CBD1D1`,d:`M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z`}),q.createElement(`path`,{fill:`#2B0849`,d:`M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1`}),q.createElement(`path`,{fill:`#A4AABA`,d:`M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1`}),q.createElement(`path`,{fill:`#7BB2F9`,d:`m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M107.3 222.1s2.7-1.1 6-3.9`,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#192064`,d:`M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4`}),q.createElement(`path`,{fill:`#FFF`,d:`M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8`}),q.createElement(`path`,{fill:`#192064`,d:`M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5`}),q.createElement(`path`,{fill:`#520038`,d:`M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z`}),q.createElement(`path`,{fill:`#552950`,d:`M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3`}),q.createElement(`path`,{stroke:`#DB836E`,d:`m110.1 74.8-.9 1.7-.3 4.3h-2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#5C2552`,d:`M110.8 74.5s1.8-.7 2.6.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#5C2552`,d:`M103.3 73s1.8 1 4.1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#E4EBF7`,d:`M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#F2D7AD`,d:`M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1`}),q.createElement(`path`,{fill:`#F4D19D`,d:`M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1`}),q.createElement(`path`,{fill:`#F2D7AD`,d:`M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z`}),q.createElement(`path`,{fill:`#CC9B6E`,d:`M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z`}),q.createElement(`path`,{fill:`#F4D19D`,d:`M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8`}),q.createElement(`path`,{fill:`#CC9B6E`,d:`M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#5BA02E`,d:`M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6`}),q.createElement(`path`,{fill:`#92C110`,d:`M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7`}),q.createElement(`path`,{fill:`#F2D7AD`,d:`M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2`}),q.createElement(`path`,{stroke:`#E4EBF7`,d:`M89 89.5s7.8 5.4 16.6 2.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}))),rr=()=>q.createElement(`svg`,{width:`254`,height:`294`},q.createElement(`title`,null,`Server Error`),q.createElement(`g`,{fill:`none`,fillRule:`evenodd`},q.createElement(`path`,{fill:`#E4EBF7`,d:`M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1`}),q.createElement(`path`,{fill:`#FFF`,d:`M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7`}),q.createElement(`path`,{stroke:`#FFF`,d:`m37.2 135.6 10.5 6m1 6.3-12.8 10.8`,strokeWidth:`2`}),q.createElement(`path`,{fill:`#FFF`,d:`M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8`}),q.createElement(`circle`,{cx:`201.35`,cy:`30.2`,r:`29.7`,fill:`#FF603B`}),q.createElement(`path`,{fill:`#FFF`,d:`m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7`}),q.createElement(`path`,{fill:`#FFB594`,d:`M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5`}),q.createElement(`path`,{fill:`#FFF`,d:`M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2`}),q.createElement(`path`,{fill:`#FFB594`,d:`m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6`}),q.createElement(`path`,{fill:`#520038`,d:`M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z`}),q.createElement(`path`,{fill:`#552950`,d:`M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3`}),q.createElement(`path`,{stroke:`#DB836E`,d:`m99.2 73.6-.9 1.7-.3 4.3h-2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#5C2552`,d:`M100 73.3s1.7-.7 2.4.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#5C2552`,d:`M92.3 71.7s1.9 1.1 4.2 1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#E4EBF7`,d:`M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#FFF`,d:`M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7`}),q.createElement(`path`,{stroke:`#E4EBF7`,d:`M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1`}),q.createElement(`path`,{fill:`#FFF`,d:`M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5`}),q.createElement(`path`,{fill:`#CBD1D1`,d:`M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5`}),q.createElement(`path`,{fill:`#2B0849`,d:`M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z`}),q.createElement(`path`,{fill:`#A4AABA`,d:`M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6`}),q.createElement(`path`,{fill:`#CBD1D1`,d:`M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z`}),q.createElement(`path`,{fill:`#2B0849`,d:`M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1`}),q.createElement(`path`,{fill:`#A4AABA`,d:`M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1`}),q.createElement(`path`,{fill:`#7BB2F9`,d:`M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M97 219.4s2.9-1.2 6.3-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#192064`,d:`M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7`}),q.createElement(`path`,{fill:`#FFF`,d:`M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8`}),q.createElement(`path`,{fill:`#192064`,d:`M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#E4EBF7`,d:`M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),q.createElement(`path`,{stroke:`#E59788`,d:`M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6`}),q.createElement(`path`,{stroke:`#E59788`,d:`M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),q.createElement(`path`,{stroke:`#E4EBF7`,d:`M109.3 112.5s3.4-3.6 7.6-4.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#E59788`,d:`M107.4 123s9.7-2.7 11.4-.9`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),q.createElement(`path`,{stroke:`#BFCDDD`,d:`m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`}),q.createElement(`path`,{fill:`#A3B4C6`,d:`M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4`}),q.createElement(`path`,{fill:`#A3B4C6`,d:`M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8`}),q.createElement(`path`,{fill:`#A3B4C6`,d:`M154.1 190.1h70.5v-84.6h-70.5z`}),q.createElement(`path`,{fill:`#BFCDDD`,d:`M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1`}),q.createElement(`path`,{fill:`#FFF`,d:`M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8`}),q.createElement(`path`,{fill:`#BFCDDD`,d:`M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2`}),q.createElement(`path`,{stroke:`#7C90A5`,d:`M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#FFF`,d:`M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8`}),q.createElement(`path`,{fill:`#BFCDDD`,d:`M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4`}),q.createElement(`path`,{stroke:`#A3B4C6`,d:`M177.3 207.2v11.5m23.8-11.5v11.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#5BA02E`,d:`M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4`}),q.createElement(`path`,{fill:`#92C110`,d:`M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4`}),q.createElement(`path`,{fill:`#F2D7AD`,d:`M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2`}))),ir=e=>{let{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:c,lineHeight:l}=e;return{[t]:{padding:`${b(e.calc(s).mul(2).equal())} ${b(a)}`,"&-rtl":{direction:`rtl`}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:`auto`},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:`center`,[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:`center`},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:l,textAlign:`center`},[`${t} ${t}-content`]:{marginTop:s,padding:`${b(s)} ${b(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:`center`,"& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},ar=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},or=e=>[ir(e),ar(e)],sr=e=>or(e),cr=K(`Result`,e=>{let t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning;return[sr(Me(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295}))]},e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`})),lr=()=>q.createElement(`svg`,{width:`251`,height:`294`},q.createElement(`title`,null,`Unauthorized`),q.createElement(`g`,{fill:`none`,fillRule:`evenodd`},q.createElement(`path`,{fill:`#E4EBF7`,d:`M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129`}),q.createElement(`path`,{fill:`#FFF`,d:`M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6`}),q.createElement(`path`,{stroke:`#FFF`,d:`m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7`,strokeWidth:`2`}),q.createElement(`path`,{fill:`#FFF`,d:`M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2`}),q.createElement(`path`,{fill:`#FFF`,d:`M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2`}),q.createElement(`path`,{stroke:`#FFF`,d:`m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13`,strokeWidth:`2`}),q.createElement(`path`,{fill:`#FFF`,d:`M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4`}),q.createElement(`path`,{stroke:`#FFF`,d:`M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z`,strokeWidth:`2`}),q.createElement(`path`,{stroke:`#FFF`,d:`m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7`,strokeWidth:`2`}),q.createElement(`path`,{fill:`#A26EF4`,d:`M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0`}),q.createElement(`path`,{fill:`#FFF`,d:`m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7`}),q.createElement(`path`,{fill:`#FFF`,d:`M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7`}),q.createElement(`path`,{fill:`#5BA02E`,d:`M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6`}),q.createElement(`path`,{fill:`#92C110`,d:`M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6`}),q.createElement(`path`,{fill:`#F2D7AD`,d:`M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3`}),q.createElement(`path`,{fill:`#FFF`,d:`M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2`}),q.createElement(`path`,{fill:`#FFB594`,d:`M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26`}),q.createElement(`path`,{fill:`#FFF`,d:`M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3`}),q.createElement(`path`,{stroke:`#E4EBF7`,d:`M78.2 94.7s.9 7.4-5 13`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#E4EBF7`,d:`M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.9`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z`}),q.createElement(`path`,{fill:`#FFB594`,d:`m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9`}),q.createElement(`path`,{fill:`#5C2552`,d:`M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1`}),q.createElement(`path`,{stroke:`#DB836E`,d:`m100.8 77.1 1.7-1-1-4.3.7-1.4`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#552950`,d:`M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M91.1 86.8s5.3 5 12.7 2.3`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#DB836E`,d:`M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2`}),q.createElement(`path`,{stroke:`#5C2552`,d:`M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#E4EBF7`,d:`m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M64 84.8s-6 10-13.5 10`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),q.createElement(`path`,{fill:`#FFC6A0`,d:`m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7`}),q.createElement(`path`,{stroke:`#DB836E`,d:`M130.5 85.5s4.6 5.7 11.7 6.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`.8`}),q.createElement(`path`,{stroke:`#E4EBF7`,d:`M121.7 105.7s-.4 8.6-1.3 13.6`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M115.8 161.5s-3.6-1.5-2.7-7.1`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#CBD1D1`,d:`M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6`}),q.createElement(`path`,{fill:`#2B0849`,d:`M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z`}),q.createElement(`path`,{fill:`#A4AABA`,d:`M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6`}),q.createElement(`path`,{fill:`#CBD1D1`,d:`M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z`}),q.createElement(`path`,{fill:`#2B0849`,d:`M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2`}),q.createElement(`path`,{fill:`#A4AABA`,d:`M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1`}),q.createElement(`path`,{fill:`#7BB2F9`,d:`m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M108.5 221s2.7-1.2 6-4`,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}),q.createElement(`path`,{fill:`#192064`,d:`M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4`}),q.createElement(`path`,{fill:`#FFF`,d:`M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7`}),q.createElement(`path`,{fill:`#192064`,d:`M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7`}),q.createElement(`path`,{stroke:`#648BD8`,d:`M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.1`}))),ur={success:s,error:Ge,info:o,warning:tr},dr={404:nr,500:rr,403:lr},fr=Object.keys(dr),pr=({prefixCls:e,icon:t,status:n})=>{let r=(0,J.default)(`${e}-icon`);if(fr.includes(`${n}`)){let t=dr[n];return q.createElement(`div`,{className:`${r} ${e}-image`},q.createElement(t,null))}let i=q.createElement(ur[n]);return t===null||t===!1?null:q.createElement(`div`,{className:r},t||i)},mr=({prefixCls:e,extra:t})=>t?q.createElement(`div`,{className:`${e}-extra`},t):null,hr=({prefixCls:e,className:t,rootClassName:n,subTitle:r,title:i,style:a,children:o,status:s=`info`,icon:c,extra:l})=>{let{getPrefixCls:u,direction:d,result:f}=q.useContext(G),p=u(`result`,e),[m,h,g]=cr(p),_=(0,J.default)(p,`${p}-${s}`,t,f?.className,n,{[`${p}-rtl`]:d===`rtl`},h,g),v=Object.assign(Object.assign({},f?.style),a);return m(q.createElement(`div`,{className:_,style:v},q.createElement(pr,{prefixCls:p,status:s,icon:c}),q.createElement(`div`,{className:`${p}-title`},i),r&&q.createElement(`div`,{className:`${p}-subtitle`},r),q.createElement(mr,{prefixCls:p,extra:l}),o&&q.createElement(`div`,{className:`${p}-content`},o)))};hr.PRESENTED_IMAGE_403=dr[403],hr.PRESENTED_IMAGE_404=dr[404],hr.PRESENTED_IMAGE_500=dr[500];var gr=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},A(e)),{display:`inline-block`,height:`auto`,marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,background:e.defaultBg,border:`${b(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:`transparent`,[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${i}-borderless`]:{borderColor:`transparent`,background:e.tagBorderlessBg}}},_r=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Me(e,{tagFontSize:i,tagLineHeight:b(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},vr=e=>({defaultBg:new ge(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),yr=K(`Tag`,e=>gr(_r(e)),vr),br=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},xr=q.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l}=e,u=br(e,[`prefixCls`,`style`,`className`,`checked`,`children`,`icon`,`onChange`,`onClick`]),{getPrefixCls:d,tag:f}=q.useContext(G),p=e=>{c?.(!a),l?.(e)},m=d(`tag`,n),[h,g,_]=yr(m),v=(0,J.default)(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},f?.className,i,g,_);return h(q.createElement(`span`,Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),f?.style),className:v,onClick:p}),s,q.createElement(`span`,null,o)))}),Sr=e=>at(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:`transparent`}}})),Cr=rt([`Tag`,`preset`],e=>Sr(_r(e)),vr);function wr(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var Tr=(e,t,n)=>{let r=wr(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:`transparent`}}}},Er=rt([`Tag`,`status`],e=>{let t=_r(e);return[Tr(t,`success`,`Success`),Tr(t,`processing`,`Info`),Tr(t,`error`,`Error`),Tr(t,`warning`,`Warning`)]},vr),Dr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Or=q.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:a,style:o,children:s,icon:c,color:l,onClose:u,bordered:d=!0,visible:f}=e,m=Dr(e,[`prefixCls`,`className`,`rootClassName`,`style`,`children`,`icon`,`color`,`onClose`,`bordered`,`visible`]),{getPrefixCls:h,direction:g,tag:_}=q.useContext(G),[v,y]=q.useState(!0),b=xe(m,[`closeIcon`,`closable`]);q.useEffect(()=>{f!==void 0&&y(f)},[f]);let x=ie(l),S=se(l),C=x||S,w=Object.assign(Object.assign({backgroundColor:l&&!C?l:void 0},_?.style),o),T=h(`tag`,n),[E,D,O]=yr(T),k=(0,J.default)(T,_?.className,{[`${T}-${l}`]:C,[`${T}-has-color`]:l&&!C,[`${T}-hidden`]:!v,[`${T}-rtl`]:g===`rtl`,[`${T}-borderless`]:!d},r,a,D,O),A=e=>{e.stopPropagation(),u?.(e),!e.defaultPrevented&&y(!1)},[,j]=i(p(e),p(_),{closable:!1,closeIconRender:e=>Qe(e,q.createElement(`span`,{className:`${T}-close-icon`,onClick:A},e),e=>({onClick:t=>{var n;(n=e?.onClick)==null||n.call(e,t),A(t)},className:(0,J.default)(e?.className,`${T}-close-icon`)}))}),M=typeof m.onClick==`function`||s&&s.type===`a`,N=c||null,P=N?q.createElement(q.Fragment,null,N,s&&q.createElement(`span`,null,s)):s,F=q.createElement(`span`,Object.assign({},b,{ref:t,className:k,style:w}),P,j,x&&q.createElement(Cr,{key:`preset`,prefixCls:T}),S&&q.createElement(Er,{key:`status`,prefixCls:T}));return E(M?q.createElement(te,{component:`Tag`},F):F)});Or.CheckableTag=xr;var kr=c(),Ar=`modulepreload`,jr=function(e){return`/`+e},Mr={},Nr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=jr(t,n),t=s(t),t in Mr)return;Mr[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Ar,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Pr=e=>{throw TypeError(e)},Fr=(e,t,n)=>t.has(e)||Pr(`Cannot `+n),Ir=(e,t,n)=>(Fr(e,t,`read from private field`),n?n.call(e):t.get(e)),Lr=(e,t,n)=>t.has(e)?Pr(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Rr=(e,t,n,r)=>(Fr(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),zr=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Br=/^[\\/]{2}/;function Vr(e,t){return t+e.replace(/\\/g,`/`)}var Hr=`popstate`;function Ur(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Wr(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return qr(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:Jr(t)}return Xr(t,n,null,e)}function Y(e,t){if(e===!1||e==null)throw Error(t)}function X(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Gr(){return Math.random().toString(36).substring(2,10)}function Kr(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function qr(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Yr(t):t,state:n,key:t&&t.key||r||Gr(),mask:i}}function Jr({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function Yr(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Xr(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Ur(e)?e:qr(h.location,e,t);n&&n(r,e),l=u()+1;let d=Kr(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Ur(e)?e:qr(h.location,e,t);n&&n(r,e),l=u();let i=Kr(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Zr(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Hr,d),c=e,()=>{i.removeEventListener(Hr,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Zr(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),Y(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:Jr(t);return i=i.replace(/ $/,`%20`),!n&&Br.test(i)&&(i=r+i),new URL(i,r)}var Qr,$r=class{constructor(e){if(Lr(this,Qr,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(Ir(this,Qr).has(e))return Ir(this,Qr).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){Ir(this,Qr).set(e,t)}};Qr=new WeakMap;var ei=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function ti(e){return ei.has(e)}var ni=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function ri(e){return ni.has(e)}function ii(e){return e.index===!0}function ai(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(Y(e.index!==!0||!e.children,`Cannot specify children on an index route`),Y(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),ii(e)){let n={...e,id:s};return r[s]=oi(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=oi(n,t(n)),e.children&&(n.children=ai(e.children,t,o,r,i)),n}})}function oi(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function si(e,t,n=`/`){return ci(e,t,n,!1)}function ci(e,t,n,r,i){let a=Oi((typeof t==`string`?Yr(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ui(e),s=null,c=Di(a);for(let e=0;s==null&&e<o.length;++e)s=Ci(o[e],c,r);return s}function li(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function ui(e){let t=di(e);return pi(t),t}function di(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;Y(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ri([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Y(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),di(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:xi(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Ei(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of fi(e.path))a(e,t,!0,n)}),t}function fi(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=fi(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function pi(e){e.sort((e,t)=>e.score===t.score?Si(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var mi=/^:[\w-]+$/,hi=3,gi=2,_i=1,vi=10,yi=-2,bi=e=>e===`*`;function xi(e,t){let n=e.split(`/`),r=n.length;return n.some(bi)&&(r+=yi),t&&(r+=gi),n.filter(e=>!bi(e)).reduce((e,t)=>e+(mi.test(t)?hi:t===``?_i:vi),r)}function Si(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Ci(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Ti(u,l,s.matcher,s.compiledParams):wi(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=wi({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ri([a,d.pathname]),pathnameBase:Bi(Ri([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ri([a,d.pathnameBase]))}return o}function wi(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ei(e.path,e.caseSensitive,e.end);return Ti(e,t,n,r)}function Ti(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ei(e,t=!1,n=!0){X(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Di(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return X(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Oi(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function ki({basename:e,pathname:t}){return t===`/`?e:Ri([e,t])}var Ai=e=>zr.test(e);function ji(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Yr(e):e,a;return n?(n=Li(n),a=n.startsWith(`/`)?Mi(n.substring(1),`/`):Mi(n,t)):a=t,{pathname:a,search:Vi(r),hash:Hi(i)}}function Mi(e,t){let n=zi(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Ni(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Pi(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Fi(e){let t=Pi(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ii(e,t,n,r=!1){let i;typeof e==`string`?i=Yr(e):(i={...e},Y(!i.pathname||!i.pathname.includes(`?`),Ni(`?`,`pathname`,`search`,i)),Y(!i.pathname||!i.pathname.includes(`#`),Ni(`#`,`pathname`,`hash`,i)),Y(!i.search||!i.search.includes(`#`),Ni(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ji(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Li=e=>e.replace(/[\\/]{2,}/g,`/`),Ri=e=>Li(e.join(`/`)),zi=e=>e.replace(/\/+$/,``),Bi=e=>zi(e).replace(/^\/*/,`/`),Vi=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Hi=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Ui=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Wi=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Gi(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ki(e){return Ri(e.map(e=>e.route.path).filter(Boolean))||`/`}var qi=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ji(e,t){let n=e;if(typeof n!=`string`||!zr.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(qi)try{let e=new URL(window.location.href),r=Br.test(n)?new URL(Vr(n,e.protocol)):new URL(n),a=Oi(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{X(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Yi=Symbol(`Uninstrumented`);function Xi(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=Qi(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=Qi(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Yi]??i,a=Qi(n[e],t,(...e)=>ea(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Yi]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Yi]??e,r=Qi(n.middleware,t,(...e)=>ea(e[0]));return r?(r[Yi]=t,r):e})),r}function Zi(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Yi]??e.navigate,r=Qi(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?Jr(n):`.`,...ta(e,r??{})}});r&&(r[Yi]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Yi]??e.fetch,r=Qi(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...ta(e,i??{})}});r&&(r[Yi]=t,e.fetch=r)}return e}function Qi(e,t,n){return e.length===0?null:async(...r)=>{let i=await $i(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function $i(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=$i(e,t,n,r-1),a=await o,Y(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function ea(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:na(t),params:{...r},pattern:i,context:ra(n)}}function ta(e,t){return{currentUrl:Jr(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function na(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ra(e){if(aa(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var ia=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function aa(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===ia}var oa=[`POST`,`PUT`,`PATCH`,`DELETE`],sa=new Set(oa),ca=[`GET`,...oa],la=new Set(ca),ua=new Set([301,302,303,307,308]),da=new Set([307,308]),fa={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pa={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ma={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},ha=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ga=`remix-router-transitions`,_a=Symbol(`ResetLoaderData`),va,ya,ba,xa,Sa=class{constructor(e){Lr(this,va),Lr(this,ya),Lr(this,ba),Lr(this,xa),Rr(this,va,e),Rr(this,ya,ui(e))}get stableRoutes(){return Ir(this,va)}get activeRoutes(){return Ir(this,ba)??Ir(this,va)}get branches(){return Ir(this,xa)??Ir(this,ya)}get hasHMRRoutes(){return Ir(this,ba)!=null}setRoutes(e){Rr(this,va,e),Rr(this,ya,ui(e))}setHmrRoutes(e){Rr(this,ba,e),Rr(this,xa,ui(e))}commitHmrRoutes(){Ir(this,ba)&&(Rr(this,va,Ir(this,ba)),Rr(this,ya,Ir(this,xa)),Rr(this,ba,void 0),Rr(this,xa,void 0))}};va=new WeakMap,ya=new WeakMap,ba=new WeakMap,xa=new WeakMap;function Ca(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;Y(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||ha,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Xi(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new Sa(ai(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Ba,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=ci(s.activeRoutes,e.history.location,c,!1,s.branches),y=!1,b=null,x,S;if(v==null&&!e.patchRoutesOnNavigation){let t=fo(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=uo(s.activeRoutes);x=!0,S=!x,v=n,b={[r.id]:t}}else if(v&&!e.hydrationData&&Le(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),!v){x=!1,S=!x,v=[];let t=Le(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))x=!1,S=!x;else if(!v.some(e=>Oa(e.route)))x=!0,S=!x;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}S=!1,x=!0,r.forEach(e=>{let r=ka(e.route,t,n);S||=r.renderFallback,x&&=!r.shouldLoad})}let C,w={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,renderFallback:S,navigation:fa,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},T=`POP`,E=null,D=!1,O,k=!1,A=new Map,j=null,M=!1,N=!1,P=new Set,F=new Map,I=0,ee=-1,L=new Map,R=new Set,z=new Map,te=new Map,B=new Set,V=new Map,ne,H=null;function U(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(ne){ne(),ne=void 0;return}X(V.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=je({currentLocation:w.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ne=e});e.history.go(r*-1),Ae(i,{state:`blocked`,location:n,proceed(){Ae(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(w.blockers);e.set(i,ma),W({blockers:e})}}),E?.resolve(),E=null;return}return ce(t,n)}),n){Fo(t,A);let e=()=>Io(t,A);t.addEventListener(`pagehide`,e),j=()=>t.removeEventListener(`pagehide`,e)}return w.initialized||ce(`POP`,w.location,{initialHydration:!0}),C}function re(){d&&d(),j&&j(),f.clear(),O&&O.abort(),w.fetchers.forEach((e,t)=>Ce(w.fetchers,t)),w.blockers.forEach((e,t)=>ke(t))}function ie(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(w,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function W(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),w={...w,...e};let n=[],r=[];w.fetchers.forEach((e,t)=>{e.state===`idle`&&(B.has(t)?n.push(t):r.push(t))}),B.forEach(e=>{!w.fetchers.has(e)&&!F.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(w,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Ce(w.fetchers,e)),r.forEach(e=>w.fetchers.delete(e))}function ae(t,n,{flushSync:r}={}){let i=w.actionData!=null&&w.navigation.formMethod!=null&&Z(w.navigation.formMethod)&&w.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?w.actionData:null;let o=n.loaderData?so(w.loaderData,n.loaderData,n.matches||[],n.errors):w.loaderData,c=w.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,ma)));let l=M?!1:Ie(t,n.matches||w.matches),u=D===!0||w.navigation.formMethod!=null&&Z(w.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),M||T===`POP`||(T===`PUSH`?e.history.push(t,t.state):T===`REPLACE`&&e.history.replace(t,t.state));let d;if(T===`POP`){let e=A.get(w.location.pathname);e&&e.has(t.pathname)?d={currentLocation:w.location,nextLocation:t}:A.has(t.pathname)&&(d={currentLocation:t,nextLocation:w.location})}else if(k){let e=A.get(w.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),A.set(w.location.pathname,e)),d={currentLocation:w.location,nextLocation:t}}W({...n,actionData:a,loaderData:o,historyAction:T,location:t,initialized:!0,renderFallback:!1,navigation:fa,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),T=`POP`,D=!1,k=!1,M=!1,N=!1,E?.resolve(),E=null,H?.resolve(),H=null}async function oe(t,n){if(E?.resolve(),E=null,typeof t==`number`){E||=Lo();let n=E.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Ea(!1,Ta(w.location,w.matches,c,t,n?.fromRouteId,n?.relative),n),o;n?.mask&&(o={pathname:``,search:``,hash:``,...typeof n.mask==`string`?Yr(n.mask):{...w.location.mask,...n.mask}});let s=w.location,l=qr(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)};let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&Z(i.formMethod)&&i.formAction===w.location.pathname+w.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=je({currentLocation:s,nextLocation:l,historyAction:d});if(m){Ae(m,{state:`blocked`,location:l,proceed(){Ae(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),oe(t,n)},reset(){let e=new Map(w.blockers);e.set(m,ma),W({blockers:e})}});return}await ce(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function se(){H||=Lo(),ve(),W({revalidation:`loading`});let e=H.promise;return w.navigation.state===`submitting`?e:w.navigation.state===`idle`?(ce(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),e):(ce(T||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:k===!0}),e)}async function ce(t,n,r){O&&O.abort(),O=null,T=t,M=(r&&r.startUninterruptedRevalidation)===!0,Fe(w.location,w.matches),D=(r&&r.preventScrollReset)===!0,k=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&w.matches&&w.matches.length>0&&!y?w.matches:ci(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&w.initialized&&!N&&ho(w.location,n)&&!(r&&r.submission&&Z(r.submission.formMethod))){ae(n,{matches:a},{flushSync:o});return}let l=Le(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=Me(n.pathname);ae(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;O=new AbortController;let d=to(e.history,n,O.signal,r&&r.submission),f=e.getContext?await e.getContext():new $r,p;if(r&&r.pendingError)p=[lo(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Z(r.submission.formMethod)){let i=await le(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(bo(t)&&Gi(t.error)&&t.error.status===404){O=null,ae(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=Ao(n,a,t,r.submission),o=!1,l.active=!1,d=to(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await ue(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(O=null,ae(n,{matches:h||a,...co(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function le(t,n,i,l,u,d,f,p,m={}){if(ve(),W({navigation:jo(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await Re(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=uo(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=lo(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Me(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=Oo(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:fo(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await ge(t,n,Ka(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(xo(h)){let n;return n=m&&m.replace!=null?m.replace:eo(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===w.location.pathname+w.location.search,await he(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(bo(h)){let e=lo(l,g.route.id);return(m&&m.replace)!==!0&&(T=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function ue(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||Ao(n,i,l,p),x=p||m||ko(b),S=!M&&!g;if(d){if(S){let e=G(v);W({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await Re(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=uo(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=lo(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Me(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:T,revalidatingFetchers:E}=Da(t,u,a,o,e.history,w,i,x,n,g?[]:r,g===!0,N,P,B,z,R,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(ee=++I,!e.dataStrategy&&!T.some(e=>e.shouldLoad)&&!T.some(e=>e.route.middleware&&e.route.middleware.length>0)&&E.length===0){let e=new Map(w.fetchers),t=Ee(e);return ae(n,{matches:i,loaderData:{},errors:v&&bo(v[1])?{[v[0]]:v[1].error}:null,...co(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=G(v);t!==void 0&&(e.actionData=t)}E.length>0&&(e.fetchers=de(E)),W(e,{flushSync:_})}E.forEach(e=>{K(e.key),e.controller&&F.set(e.key,e.controller)});let D=()=>E.forEach(e=>K(e.key));O&&O.signal.addEventListener(`abort`,D);let{loaderResults:k,fetcherResults:A}=await _e(T,E,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener(`abort`,D),E.forEach(e=>F.delete(e.key));let j=po(k);if(j)return await he(t,j.result,!0,{replace:h}),{shortCircuited:!0};if(j=po(A),j)return R.add(j.key),await he(t,j.result,!0,{replace:h}),{shortCircuited:!0};let L=new Map(w.fetchers),{loaderData:te,errors:V}=oo(w,i,k,v,E,A,L);g&&w.errors&&(V={...w.errors,...V});let ne=Ee(L),H=De(ee,L),U=ne||H||E.length>0;return{matches:i,loaderData:te,errors:V,...U?{workingFetchers:L}:{}}}function G(e){if(e&&!bo(e[1]))return{[e[0]]:e[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function de(e){let t=new Map(w.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=Mo(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function fe(t,n,r,i){K(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=Ta(w.location,w.matches,c,r,n,i?.relative),u=ci(o,l,c,!1,s.branches),d=Le(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){be(t,n,fo(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Ea(!0,l,i);if(m){be(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new $r,g=(i&&i.preventScrollReset)===!0;if(p&&Z(p.formMethod)){await pe(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}z.set(t,{routeId:n,path:f}),await me(t,n,f,u,h,d.active,a,g,p)}async function pe(t,n,i,l,u,d,f,p,m,h){ve(),z.delete(t),ye(t,No(m,w.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=to(e.history,i,g.signal,m);if(d){let e=await Re(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){be(t,n,e.error,{flushSync:f});return}else if(e.matches)l=e.matches;else{be(t,n,fo(404,{pathname:i}),{flushSync:f});return}}let v=Oo(l,i);if(!v.route.action&&!v.route.lazy){be(t,n,fo(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}F.set(t,g);let y=I,b=Ka(a,o,_,i,l,v,r,u),x=await ge(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){F.get(t)===g&&F.delete(t);return}if(B.has(t)){if(xo(S)||bo(S)){ye(t,Po(void 0));return}}else{if(xo(S))if(F.delete(t),ee>y){ye(t,Po(void 0));return}else return R.add(t),ye(t,Mo(m)),he(_,S,!1,{fetcherSubmission:m,preventScrollReset:p});if(bo(S)){be(t,n,S.error);return}}let C=w.navigation.location||w.location,E=to(e.history,C,g.signal),D=s.activeRoutes,k=w.navigation.state===`idle`?w.matches:ci(D,w.navigation.location,c,!1,s.branches);Y(k,`Didn't find any matches after fetcher action`);let A=++I;L.set(t,A);let{dsMatches:j,revalidatingFetchers:M}=Da(E,u,a,o,e.history,w,k,m,C,r,!1,N,P,B,z,R,D,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),te=Mo(m,S.data),V=new Map(w.fetchers);V.set(t,te),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=V.get(t),r=Mo(void 0,n?n.data:void 0);V.set(t,r),K(t),e.controller&&F.set(t,e.controller)}),W({fetchers:V});let ne=()=>M.forEach(e=>K(e.key));g.signal.addEventListener(`abort`,ne);let{loaderResults:H,fetcherResults:U}=await _e(j,M,E,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,ne),L.delete(t),F.delete(t),M.forEach(e=>F.delete(e.key));let re=w.fetchers.has(t),ie=e=>{if(!re)return e;let n=new Map(e.fetchers);return n.set(t,Po(S.data)),{...e,fetchers:n}},oe=po(H);if(oe)return w=ie(w),he(E,oe.result,!1,{preventScrollReset:p});if(oe=po(U),oe)return R.add(oe.key),w=ie(w),he(E,oe.result,!1,{preventScrollReset:p});let se=new Map(w.fetchers);re&&se.set(t,Po(S.data));let{loaderData:ce,errors:le}=oo(w,k,H,void 0,M,U,se);De(A,se),w.navigation.state===`loading`&&A>ee?(Y(T,`Expected pending action`),O&&O.abort(),ae(w.navigation.location,{matches:k,loaderData:ce,errors:le,fetchers:se})):(W({errors:le,loaderData:so(w.loaderData,ce,k,le),fetchers:se}),N=!1)}async function me(t,n,i,s,c,l,u,d,f){let p=w.fetchers.get(t);ye(t,Mo(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=to(e.history,i,m.signal);if(l){let e=await Re(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){be(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{be(t,n,fo(404,{pathname:i}),{flushSync:u});return}}let g=Oo(s,i);F.set(t,m);let _=I,v=await ge(h,i,Ka(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(F.get(t)===m&&F.delete(t),!h.signal.aborted){if(B.has(t)){ye(t,Po(void 0));return}if(xo(y))if(ee>_){ye(t,Po(void 0));return}else{R.add(t),await he(h,y,!1,{preventScrollReset:d});return}if(bo(y)){be(t,n,y.error);return}ye(t,Po(y.data))}}async function he(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(E?.resolve(),E=null),i.response.headers.has(`X-Remix-Revalidate`)&&(N=!0);let d=i.response.headers.get(`Location`);Y(d,`Expected a Location header on the redirect Response`),d=eo(d,new URL(r.url),c,e.history);let f=qr(w.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(Ai(d)){let n=Zr(t,d,!0);e=n.origin!==t.location.origin||Oi(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}O=null;let p=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:m,formAction:h,formEncType:g}=w.navigation;!o&&!s&&m&&h&&g&&(o=ko(w.navigation));let _=o||s;da.has(i.response.status)&&_&&Z(_.formMethod)?await ce(p,f,{submission:{..._,formAction:d},preventScrollReset:l||D,enableViewTransition:a?k:void 0}):await ce(p,f,{overrideNavigation:Ao(f,[],p,o),fetcherSubmission:s,preventScrollReset:l||D,enableViewTransition:a?k:void 0})}async function ge(e,t,n,r,i){let a,o={};try{a=await qa(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Z(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!w.loaderData.hasOwnProperty(e.route.id)&&(!w.errors||!w.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(yo(r)){let i=r.result;o[t]={type:`redirect`,response:Za(i,e,t,n,c)}}else o[t]=await Xa(r);return o}async function _e(e,t,n,r,i){let a=ge(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await ge(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:fo(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function ve(){N=!0,z.forEach((e,t)=>{F.has(t)&&P.add(t),K(t)})}function ye(e,t,n={}){let r=new Map(w.fetchers);r.set(e,t),W({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function be(e,t,n,r={}){let i=lo(w.matches,t),a=new Map(w.fetchers);Ce(a,e),W({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function xe(e){return te.set(e,(te.get(e)||0)+1),B.has(e)&&B.delete(e),w.fetchers.get(e)||pa}function Se(e,t){K(e,t?.reason),ye(e,Po(null))}function Ce(e,t){let n=w.fetchers.get(t);F.has(t)&&!(n&&n.state===`loading`&&L.has(t))&&K(t),z.delete(t),L.delete(t),R.delete(t),B.delete(t),P.delete(t),e.delete(t)}function we(e){let t=(te.get(e)||0)-1;t<=0?(te.delete(e),B.add(e)):te.set(e,t),W({fetchers:new Map(w.fetchers)})}function K(e,t){let n=F.get(e);n&&(n.abort(t),F.delete(e))}function Te(e,t){for(let n of e){let e=t.get(n);Y(e,`Expected fetcher: ${n}`);let r=Po(e.data);t.set(n,r)}}function Ee(e){let t=[],n=!1;for(let r of R){let i=e.get(r);Y(i,`Expected fetcher: ${r}`),i.state===`loading`&&(R.delete(r),t.push(r),n=!0)}return Te(t,e),n}function De(e,t){let n=[];for(let[r,i]of L)if(i<e){let e=t.get(r);Y(e,`Expected fetcher: ${r}`),e.state===`loading`&&(K(r),L.delete(r),n.push(r))}return Te(n,t),n.length>0}function Oe(e,t){let n=w.blockers.get(e)||ma;return V.get(e)!==t&&V.set(e,t),n}function ke(e){w.blockers.delete(e),V.delete(e)}function Ae(e,t){let n=w.blockers.get(e)||ma;Y(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(w.blockers);r.set(e,t),W({blockers:r})}function je({currentLocation:e,nextLocation:t,historyAction:n}){if(V.size===0)return;V.size>1&&X(!1,`A router only supports one blocker at a time`);let r=Array.from(V.entries()),[i,a]=r[r.length-1],o=w.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function Me(e){let t=fo(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=uo(n);return{notFoundMatches:r,route:i,error:t}}function Ne(e,t,n){if(m=e,g=t,h=n||null,!_&&w.navigation===fa){_=!0;let e=Ie(w.location,w.matches);e!=null&&W({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function Pe(e,t){return h&&h(e,t.map(e=>li(e,w.loaderData)))||e.key}function Fe(e,t){if(m&&g){let n=Pe(e,t);m[n]=g()}}function Ie(e,t){if(m){let n=Pe(e,t),r=m[n];if(typeof r==`number`)return r}return null}function Le(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:ci(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:ci(n,r,c,!0,e)}}return{active:!1,matches:null}}async function Re(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||Na(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=ci(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=ci(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&ze(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=ci(s.activeRoutes,n,c,!0,u),!f||ze(l,f))return{type:`success`,matches:null};l=f}}function ze(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Be(e){o={},s.setHmrRoutes(ai(e,a,void 0,o))}function Ve(e,t,n=!1){Na(e,t,s,o,a,n),s.hasHMRRoutes||W({})}return C={get basename(){return c},get future(){return u},get state(){return w},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:U,subscribe:ie,enableScrollRestoration:Ne,navigate:oe,fetch:fe,revalidate:se,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:xe,resetFetcher:Se,deleteFetcher:we,dispose:re,getBlocker:Oe,deleteBlocker:ke,patchRoutes:Ve,_internalFetchControllers:F,_internalSetRoutes:Be,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){W(e)}},e.instrumentations&&(C=Zi(C,e.instrumentations.map(e=>e.router).filter(Boolean))),C}function wa(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Ta(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Ii(r||`.`,Fi(o),Oi(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Do(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=ki({basename:n,pathname:c.pathname})),Jr(c)}function Ea(e,t,n){if(!n||!wa(n))return{path:t};if(n.formMethod&&!Eo(n.formMethod))return{path:t,error:fo(405,{method:n.formMethod})};let r=()=>({path:t,error:fo(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=mo(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Z(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
  29. `,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!Z(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}Y(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=ro(n.formData),s=n.formData;else if(n.body instanceof FormData)o=ro(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=io(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=io(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Z(c.formMethod))return{path:t,submission:c};let l=Yr(t);return e&&l.search&&Do(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:Jr(l),submission:c}}function Da(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?bo(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&bo(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,D=E&&E>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},k=Ki(o),A=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!Oa(s))f=!1;else if(u){let{shouldLoad:e}=ka(s,a.loaderData,a.errors);f=e}else Aa(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Ga(n,r,e,c,k,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:D?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?ja(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p},h=Ma(i,m);return Ga(n,r,e,c,k,i,l,t,h,m,x)}),j=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=ci(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;j.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=Oo(b,e.path),C=new AbortController,w=to(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=Ka(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=Ka(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:D?!1:d;let a={...O,defaultShouldRevalidate:i};Ma(S,a)&&(T=Ka(n,r,w,e.path,b,S,l,t,a))}T&&j.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:j}}function Oa(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function ka(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Oa(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function Aa(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function ja(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Ma(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Na(e,t,n,r,i,a){let o;if(e){let t=r[e];Y(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>Pa(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=ai(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=ai([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function Pa(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>Pa(e,t)))??!1:!1}var Fa=new WeakMap,Ia=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(Y(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Fa.get(i);o||(o={},Fa.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=ti(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)X(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)X(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},La=new WeakMap;function Ra(e,t,n,r,i){let a=n[e.id];if(Y(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=La.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{Y(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=ri(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?X(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?X(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return La.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Ia({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function za(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Ba(e){return e.matches.some(e=>e.route.middleware)?Va(e,()=>za(e)):za(e)}function Va(e,t){return Ha(e,t,e=>{if(To(e))throw e;return e},_o,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=lo(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function Ha(e,t,n,r,i){let{matches:a,...o}=e;return await Ua(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Ua(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await Ua(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function Wa(e,t,n,r,i){let a=Ia({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=Ra(r.route,Z(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Ga(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Wa(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?Ma(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?Ma(a,{...l,defaultShouldRevalidate:e}):Ma(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Z(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Z(n.method)||!p)?Ja({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Ka(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Ga(e,t,n,r,Ki(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Wa(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function qa(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:no(t,n),pattern:Ki(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return Va(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function Ja({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Z(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:no(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw fo(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}else if(t)c=await f(t);else{let t=new URL(e.url);throw fo(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Ya(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Xa(e){let{result:t,type:n}=e;if(Co(t)){let e;try{e=await Ya(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Wi(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?So(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:go(t),statusCode:Gi(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Gi(t)?t.status:void 0}:So(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Za(e,t,n,r,i){let a=e.headers.get(`Location`);if(Y(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!Ai(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=Ta(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Qa=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function $a(e){try{return Qa.includes(new URL(e).protocol)}catch{return!1}}function eo(e,t,n,r){if(Ai(e)){let r=e,i=Br.test(r)?new URL(Vr(r,t.protocol)):new URL(r);if($a(i.toString()))throw Error(`Invalid redirect location`);let a=Oi(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Li(i.pathname)+i.search+i.hash}try{if($a(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function to(e,t,n,r){let i=e.createURL(mo(t)).toString(),a={signal:n};if(r&&Z(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=ro(r.formData):a.body=r.formData}return new Request(i,a)}function no(e,t){let n=new URL(e.url),r=typeof t==`string`?Yr(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function ro(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function io(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ao(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&bo(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(Y(!xo(f),`Cannot handle redirect results in processLoaderData`),bo(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=lo(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=_a),c||(c=!0,s=Gi(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function oo(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=ao(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(Y(s,`Did not find corresponding fetcher result`),bo(s)){let t=lo(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(xo(s))Y(!1,`Unhandled fetcher revalidation redirect`);else{let e=Po(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function so(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==_a).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function co(e){return e?bo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function lo(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function uo(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function fo(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Wi(e||500,o,Error(s),!0)}function po(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(xo(r))return{key:n,result:r}}}function mo(e){return Jr({...typeof e==`string`?Yr(e):e,hash:``})}function ho(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function go(e){return new Wi(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function _o(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&vo(t))}function vo(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function yo(e){return Co(e.result)&&ua.has(e.result.status)}function bo(e){return e.type===`error`}function xo(e){return(e&&e.type)===`redirect`}function So(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Co(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function wo(e){return ua.has(e)}function To(e){return Co(e)&&wo(e.status)&&e.headers.has(`Location`)}function Eo(e){return la.has(e.toUpperCase())}function Z(e){return sa.has(e.toUpperCase())}function Do(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Oo(e,t){let n=typeof t==`string`?Yr(t).search:t.search;if(e[e.length-1].route.index&&Do(n||``))return e[e.length-1];let r=Pi(e);return r[r.length-1]}function ko(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Ao(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function jo(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function Mo(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function No(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Po(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Fo(e,t){try{let n=e.sessionStorage.getItem(ga);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function Io(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ga,JSON.stringify(n))}catch(e){X(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function Lo(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Ro=q.createContext(null);Ro.displayName=`DataRouter`;var zo=q.createContext(null);zo.displayName=`DataRouterState`;var Bo=q.createContext(!1);function Vo(){return q.useContext(Bo)}var Ho=q.createContext({isTransitioning:!1});Ho.displayName=`ViewTransition`;var Uo=q.createContext(new Map);Uo.displayName=`Fetchers`;var Wo=q.createContext(null);Wo.displayName=`Await`;var Go=q.createContext(null);Go.displayName=`Navigation`;var Ko=q.createContext(null);Ko.displayName=`Location`;var qo=q.createContext({outlet:null,matches:[],isDataRoute:!1});qo.displayName=`Route`;var Jo=q.createContext(null);Jo.displayName=`RouteError`;var Yo=`REACT_ROUTER_ERROR`,Xo=`REDIRECT`,Zo=`ROUTE_ERROR_RESPONSE`;function Qo(e){if(e.startsWith(`${Yo}:${Xo}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function $o(e){if(e.startsWith(`${Yo}:${Zo}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Wi(t.status,t.statusText,t.data)}catch{}}function es(e,{relative:t}={}){Y(ts(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=q.useContext(Go),{hash:i,pathname:a,search:o}=ds(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ri([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ts(){return q.useContext(Ko)!=null}function ns(){return Y(ts(),`useLocation() may be used only in the context of a <Router> component.`),q.useContext(Ko).location}function rs(){return q.useContext(Ko).navigationType}var is=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function as(e){q.useContext(Go).static||q.useLayoutEffect(e)}function os(){let{isDataRoute:e}=q.useContext(qo);return e?js():ss()}function ss(){Y(ts(),`useNavigate() may be used only in the context of a <Router> component.`);let e=q.useContext(Ro),{basename:t,navigator:n}=q.useContext(Go),{matches:r}=q.useContext(qo),{pathname:i}=ns(),a=JSON.stringify(Fi(r)),o=q.useRef(!1);return as(()=>{o.current=!0}),q.useCallback((r,s={})=>{if(X(o.current,is),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Ii(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ri([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var cs=q.createContext(null);function ls(e){let t=q.useContext(qo).outlet;return q.useMemo(()=>t&&q.createElement(cs.Provider,{value:e},t),[t,e])}function us(){let{matches:e}=q.useContext(qo);return e[e.length-1]?.params??{}}function ds(e,{relative:t}={}){let{matches:n}=q.useContext(qo),{pathname:r}=ns(),i=JSON.stringify(Fi(n));return q.useMemo(()=>Ii(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function fs(e,t,n){Y(ts(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=q.useContext(Go),{matches:i}=q.useContext(qo),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Ns(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
  30. Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=ns(),d;if(t){let e=typeof t==`string`?Yr(t):t;Y(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):si(e,{pathname:p});X(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),X(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=ys(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ri([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ri([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?q.createElement(Ko.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function ps(){let e=Os(),t=Gi(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=q.createElement(q.Fragment,null,q.createElement(`p`,null,`💿 Hey developer 👋`),q.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,q.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,q.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),q.createElement(q.Fragment,null,q.createElement(`h2`,null,`Unexpected Application Error!`),q.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?q.createElement(`pre`,{style:i},n):null,o)}var ms=q.createElement(ps,null),hs=class extends q.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=$o(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:q.createElement(qo.Provider,{value:this.props.routeContext},q.createElement(Jo.Provider,{value:e,children:this.props.component}));return this.context?q.createElement(_s,{error:e},t):t}};hs.contextType=Bo;var gs=new WeakMap;function _s({children:e,error:t}){let{basename:n}=q.useContext(Go);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Qo(t.digest);if(e){let r=gs.get(t);if(r)throw r;let i=Ji(e.location,n),a=i.absoluteURL||i.to;if($a(a))throw Error(`Invalid redirect location`);if(qi&&!gs.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw gs.set(t,n),n}return q.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function vs({routeContext:e,match:t,children:n}){let r=q.useContext(Ro);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),q.createElement(qo.Provider,{value:e},n)}function ys(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);Y(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ki(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||ms,o&&(s<0&&c===0?(Ns(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?q.createElement(n.route.Component,null):n.route.element?n.route.element:e,q.createElement(vs,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?q.createElement(hs,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function bs(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xs(e){let t=q.useContext(Ro);return Y(t,bs(e)),t}function Ss(e){let t=q.useContext(zo);return Y(t,bs(e)),t}function Cs(e){let t=q.useContext(qo);return Y(t,bs(e)),t}function ws(e){let t=Cs(e),n=t.matches[t.matches.length-1];return Y(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ts(){return ws(`useRouteId`)}function Es(){let e=Ss(`useNavigation`);return q.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Ds(){let{matches:e,loaderData:t}=Ss(`useMatches`);return q.useMemo(()=>e.map(e=>li(e,t)),[e,t])}function Os(){let e=q.useContext(Jo),t=Ss(`useRouteError`),n=ws(`useRouteError`);return e===void 0?t.errors?.[n]:e}var ks=0;function As(e){let{router:t,basename:n}=xs(`useBlocker`),r=Ss(`useBlocker`),[i,a]=q.useState(``),o=q.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:Oi(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:Oi(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return q.useEffect(()=>{let e=String(++ks);return a(e),()=>t.deleteBlocker(e)},[t]),q.useEffect(()=>{i!==``&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):ma}function js(){let{router:e}=xs(`useNavigate`),t=ws(`useNavigate`),n=q.useRef(!1);return as(()=>{n.current=!0}),q.useCallback(async(r,i={})=>{X(n.current,is),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Ms={};function Ns(e,t,n){!t&&!Ms[e]&&(Ms[e]=!0,X(!1,n))}var Ps={};function Fs(e,t){!e&&!Ps[t]&&(Ps[t]=!0,console.warn(t))}var Is=q.useOptimistic,Ls=()=>void 0;function Rs(e){return Is?Is(e):[e,Ls]}function zs(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&X(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:q.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&X(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:q.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&X(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:q.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Bs=[`HydrateFallback`,`hydrateFallbackElement`],Vs=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Hs({router:e,flushSync:t,onError:n,useTransitions:r}){r=Vo()||r;let[i,a]=q.useState(e.state),[o,s]=Rs(i),[c,l]=q.useState(),[u,d]=q.useState({isTransitioning:!1}),[f,p]=q.useState(),[m,h]=q.useState(),[g,_]=q.useState(),v=q.useRef(new Map),y=q.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:Ki(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),Fs(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Fs(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y){t&&u?t(()=>a(i)):r===!1?a(i):q.startTransition(()=>{r===!0&&s(e=>Us(e,i)),a(i)});return}if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n));return}m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);q.useLayoutEffect(()=>e.subscribe(y),[e,y]),q.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new Vs)},[u]),q.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):q.startTransition(()=>{r===!0&&s(e=>Us(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),q.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),q.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let b=q.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),x=e.basename||`/`,S=q.useMemo(()=>({router:e,navigator:b,static:!1,basename:x,onError:n}),[e,b,x,n]);return q.createElement(q.Fragment,null,q.createElement(Ro.Provider,{value:S},q.createElement(zo.Provider,{value:o},q.createElement(Uo.Provider,{value:v.current},q.createElement(Ho.Provider,{value:u},q.createElement(Js,{basename:x,location:o.location,navigationType:o.historyAction,navigator:b,useTransitions:r},q.createElement(Ws,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function Us(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var Ws=q.memo(Gs);function Gs({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return fs(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Ks({to:e,replace:t,state:n,relative:r}){Y(ts(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=q.useContext(Go);X(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=q.useContext(qo),{pathname:o}=ns(),s=os(),c=Ii(e,Fi(a),o,r===`path`),l=JSON.stringify(c);return q.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function qs(e){return ls(e.context)}function Q(e){Y(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Js({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Y(!ts(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=q.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Yr(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=q.useMemo(()=>{let e=Oi(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return X(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:q.createElement(Go.Provider,{value:c},q.createElement(Ko.Provider,{children:t,value:h}))}q.Component;function Ys(e,t=[]){let n=[];return q.Children.forEach(e,(e,r)=>{if(!q.isValidElement(e))return;let i=[...t,r];if(e.type===q.Fragment){n.push.apply(n,Ys(e.props.children,i));return}Y(e.type===Q,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Y(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Ys(e.props.children,i)),n.push(a)}),n}var Xs=Ys,Zs=`get`,Qs=`application/x-www-form-urlencoded`;function $s(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function ec(e){return $s(e)&&e.tagName.toLowerCase()===`button`}function tc(e){return $s(e)&&e.tagName.toLowerCase()===`form`}function nc(e){return $s(e)&&e.tagName.toLowerCase()===`input`}function rc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ic(e,t){return e.button===0&&(!t||t===`_self`)&&!rc(e)}function ac(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function oc(e,t){let n=ac(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var sc=null;function cc(){if(sc===null)try{new FormData(document.createElement(`form`),0),sc=!1}catch{sc=!0}return sc}var lc=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function uc(e){return e!=null&&!lc.has(e)?(X(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qs}"`),null):e}function dc(e,t){let n,r,i,a,o;if(tc(e)){let o=e.getAttribute(`action`);r=o?Oi(o,t):null,n=e.getAttribute(`method`)||Zs,i=uc(e.getAttribute(`enctype`))||Qs,a=new FormData(e)}else if(ec(e)||nc(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Oi(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Zs,i=uc(e.getAttribute(`formenctype`))||uc(o.getAttribute(`enctype`))||Qs,a=new FormData(o,e),!cc()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if($s(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Zs,r=null,i=Qs,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var fc={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},pc=/[&><\u2028\u2029]/g;function mc(e){return e.replace(pc,e=>fc[e])}function hc(e,t){if(e===!1||e==null)throw Error(t)}function gc(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Oi(i.pathname,t)===`/`?i.pathname=`${zi(t)}/_root.${r}`:i.pathname=`${zi(i.pathname)}.${r}`,i}async function _c(e,t){if(e.id in t)return t[e.id];try{let n=await Nr(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function vc(e){return e!=null&&typeof e.page==`string`}function yc(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function bc(e,t,n){return Tc((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await _c(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(yc).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function xc(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Sc(e,t,{includeHydrateFallback:n}={}){return Cc(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Cc(e){return[...new Set(e)]}function wc(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Tc(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!vc(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(wc(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Ec(){let e=q.useContext(Ro);return hc(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Dc(){let e=q.useContext(zo);return hc(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Oc=q.createContext(void 0);Oc.displayName=`FrameworkContext`;function kc(){let e=q.useContext(Oc);return hc(e,`You must render this element inside a <HydratedRouter> element`),e}function Ac(e,t){let n=q.useContext(Oc),[r,i]=q.useState(!1),[a,o]=q.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=q.useRef(null);q.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),q.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:jc(s,p),onBlur:jc(c,m),onMouseEnter:jc(l,p),onMouseLeave:jc(u,m),onTouchStart:jc(d,p)}]:[a,f,{}]:[!1,f,{}]}function jc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Mc({page:e,...t}){let n=Vo(),{nonce:r}=kc(),{router:i}=Ec(),a=q.useMemo(()=>si(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?q.createElement(Pc,{page:e,matches:a,...t}):q.createElement(Fc,{page:e,matches:a,...t})):null}function Nc(e){let{manifest:t,routeModules:n}=kc(),[r,i]=q.useState([]);return q.useEffect(()=>{let r=!1;return bc(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Pc({page:e,matches:t,...n}){let r=ns(),{future:i}=kc(),{basename:a}=Ec(),o=q.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=gc(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return q.createElement(q.Fragment,null,o.map(e=>q.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Fc({page:e,matches:t,...n}){let r=ns(),{future:i,manifest:a,routeModules:o}=kc(),{basename:s}=Ec(),{loaderData:c,matches:l}=Dc(),u=q.useMemo(()=>xc(e,t,l,a,r,`data`),[e,t,l,a,r]),d=q.useMemo(()=>xc(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=q.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=gc(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=q.useMemo(()=>Sc(d,a),[d,a]),m=Nc(d);return q.createElement(q.Fragment,null,f.map(e=>q.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>q.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>q.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ic(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}q.Component;var Lc=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Lc&&(window.__reactRouterVersion=`7.18.1`)}catch{}function Rc(e,t){return Ca({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:Wr({window:t?.window}),hydrationData:t?.hydrationData||zc(),routes:e,mapRouteProperties:zs,hydrationRouteProperties:Bs,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function zc(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Bc(e.errors)}),e}function Bc(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Wi(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&Ui.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function Vc({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=q.useState({action:n.action,location:n.location}),o=q.useCallback(e=>{r===!1?a(e):q.startTransition(()=>a(e))},[r]);return q.useLayoutEffect(()=>n.listen(o),[n,o]),q.createElement(Js,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}Vc.displayName=`unstable_HistoryRouter`;var Hc=q.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=q.useContext(Go),v=typeof l==`string`&&zr.test(l),y=Ji(l,h);l=y.to;let b=es(l,{relative:r}),x=ns(),S=null;if(o){let e=Ii(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ri([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Ac(n,p),E=Yc(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=q.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:Ic(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?q.createElement(q.Fragment,null,k,q.createElement(Mc,{page:b})):k});Hc.displayName=`Link`;var Uc=q.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=ds(a,{relative:c.relative}),d=ns(),f=q.useContext(zo),{navigator:p,basename:m}=q.useContext(Go),h=f!=null&&sl(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Oi(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return q.createElement(Hc,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Uc.displayName=`NavLink`;var Wc=q.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Zs,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=q.useContext(Go),g=$c(),_=el(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&zr.test(s);return q.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?q.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Wc.displayName=`Form`;function Gc({getKey:e,storageKey:t,...n}){let r=q.useContext(Oc),{basename:i}=q.useContext(Go),a=ns(),o=Ds();il({getKey:e,storageKey:t});let s=q.useMemo(()=>{if(!r||!e)return null;let t=rl(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),q.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${mc(JSON.stringify(t||tl))}, ${mc(JSON.stringify(s))})`}})}Gc.displayName=`ScrollRestoration`;function Kc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qc(e){let t=q.useContext(Ro);return Y(t,Kc(e)),t}function Jc(e){let t=q.useContext(zo);return Y(t,Kc(e)),t}function Yc(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=os(),d=ns(),f=ds(e,{relative:o});return q.useCallback(p=>{if(ic(p,t)){p.preventDefault();let t=n===void 0?Jr(d)===Jr(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?q.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Xc(e){X(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=q.useRef(ac(e)),n=q.useRef(!1),r=ns(),i=q.useMemo(()=>oc(r.search,n.current?null:t.current),[r.search]),a=os();return[i,q.useCallback((e,t)=>{let r=ac(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Zc=0,Qc=()=>`__${String(++Zc)}__`;function $c(){let{router:e}=qc(`useSubmit`),{basename:t}=q.useContext(Go),n=Ts(),r=e.fetch,i=e.navigate;return q.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=dc(e,t);if(a.navigate===!1){let e=a.fetcherKey||Qc();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function el(e,{relative:t}={}){let{basename:n}=q.useContext(Go),r=q.useContext(qo);Y(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...ds(e||`.`,{relative:t})},o=ns();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ri([n,a.pathname])),Jr(a)}var tl=`react-router-scroll-positions`,nl={};function rl(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Oi(e.pathname,n)||e.pathname},t)),i??=e.key,i}function il({getKey:e,storageKey:t}={}){let{router:n}=qc(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Jc(`useScrollRestoration`),{basename:a}=q.useContext(Go),o=ns(),s=Ds(),c=Es();q.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),ol(q.useCallback(()=>{if(c.state===`idle`){let t=rl(o,s,a,e);nl[t]=window.scrollY}try{sessionStorage.setItem(t||tl,JSON.stringify(nl))}catch(e){X(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(q.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||tl);e&&(nl=JSON.parse(e))}catch{}},[t]),q.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(nl,()=>window.scrollY,e?(t,n)=>rl(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),q.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{X(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function al(e,t){let{capture:n}=t||{};q.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`beforeunload`,e,t),()=>{window.removeEventListener(`beforeunload`,e,t)}},[e,n])}function ol(e,t){let{capture:n}=t||{};q.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function sl(e,{relative:t}={}){let n=q.useContext(Ho);Y(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=qc(`useViewTransitionState`),i=ds(e,{relative:t});if(!n.isTransitioning)return!1;let a=Oi(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Oi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return wi(i.pathname,o)!=null||wi(i.pathname,a)!=null}var cl=e(r(),1);function ll(e){return q.createElement(Hs,{flushSync:cl.flushSync,...e})}var ul=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`check-circle`,theme:`outlined`}}))());function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dl.apply(this,arguments)}var fl=q.forwardRef((e,t)=>q.createElement(y,dl({},e,{ref:t,icon:ul.default}))),pl=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z`}}]},name:`close`,theme:`outlined`}}))());function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ml.apply(this,arguments)}var hl=q.forwardRef((e,t)=>q.createElement(y,ml({},e,{ref:t,icon:pl.default}))),gl=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z`}},{tag:`path`,attrs:{d:`M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z`}},{tag:`path`,attrs:{d:`M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z`}}]},name:`cloud-server`,theme:`outlined`}}))());function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_l.apply(this,arguments)}var vl=q.forwardRef((e,t)=>q.createElement(y,_l({},e,{ref:t,icon:gl.default}))),yl=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z`}}]},name:`dashboard`,theme:`outlined`}}))());function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bl.apply(this,arguments)}var xl=q.forwardRef((e,t)=>q.createElement(y,bl({},e,{ref:t,icon:yl.default}))),Sl=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z`}}]},name:`global`,theme:`outlined`}}))());function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cl.apply(this,arguments)}var wl=q.forwardRef((e,t)=>q.createElement(y,Cl({},e,{ref:t,icon:Sl.default}))),Tl=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z`}}]},name:`inbox`,theme:`outlined`}}))());function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},El.apply(this,arguments)}var Dl=q.forwardRef((e,t)=>q.createElement(y,El({},e,{ref:t,icon:Tl.default}))),Ol=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L255.8 713.6l-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l110.3 111.2c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.1 304.1 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112m161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2`}}]},name:`key`,theme:`outlined`}}))());function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kl.apply(this,arguments)}var Al=q.forwardRef((e,t)=>q.createElement(y,kl({},e,{ref:t,icon:Ol.default}))),jl=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z`}}]},name:`menu`,theme:`outlined`}}))());function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(this,arguments)}var Nl=q.forwardRef((e,t)=>q.createElement(y,Ml({},e,{ref:t,icon:jl.default}))),Pl=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z`}}]},name:`send`,theme:`outlined`}}))());function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fl.apply(this,arguments)}var Il=q.forwardRef((e,t)=>q.createElement(y,Fl({},e,{ref:t,icon:Pl.default}))),Ll=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z`}}]},name:`setting`,theme:`outlined`}}))());function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rl.apply(this,arguments)}var zl=q.forwardRef((e,t)=>q.createElement(y,Rl({},e,{ref:t,icon:Ll.default}))),Bl=e(n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z`}}]},name:`warning`,theme:`outlined`}}))());function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(this,arguments)}var Hl=q.forwardRef((e,t)=>q.createElement(y,Vl({},e,{ref:t,icon:Bl.default}))),Ul=(0,q.createContext)(null);function Wl(){let e=(0,q.useContext)(Ul);if(!e)throw Error(`useAppContext must be used inside AppContext.Provider`);return e}function Gl(e){let[t,n]=(0,q.useState)(()=>window.matchMedia(e).matches);return(0,q.useEffect)(()=>{let t=window.matchMedia(e),r=()=>n(t.matches);return r(),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),t}var $=Xe(),{Header:Kl,Sider:ql,Content:Jl}=$n,Yl=[{key:`operations`,labelKey:`nav.group.operations`,items:[{path:`/overview`,labelKey:`nav.overview`,icon:(0,$.jsx)(xl,{})},{path:`/activity`,labelKey:`nav.activity`,icon:(0,$.jsx)(Il,{})},{path:`/domains`,labelKey:`nav.domains`,icon:(0,$.jsx)(wl,{})},{path:`/inbox`,labelKey:`nav.inbox`,icon:(0,$.jsx)(Dl,{})}]},{key:`integrations`,labelKey:`nav.group.integrations`,items:[{path:`/integrations/smtp`,labelKey:`nav.smtpIntegration`,icon:(0,$.jsx)(u,{})},{path:`/integrations/api-keys`,labelKey:`nav.apiKeys`,icon:(0,$.jsx)(Al,{})},{path:`/integrations/webhooks`,labelKey:`nav.webhooks`,icon:(0,$.jsx)(m,{})},{path:`/integrations/dns`,labelKey:`nav.dnsIntegration`,icon:(0,$.jsx)(vl,{})}]},{key:`system`,labelKey:`nav.group.system`,items:[{path:`/admin/users`,labelKey:`nav.adminCenter`,icon:(0,$.jsx)(v,{}),adminOnly:!0},{path:`/settings`,labelKey:`nav.settings`,icon:(0,$.jsx)(zl,{}),adminOnly:!0}]}];function Xl(e){return Yl.map(t=>({...t,items:t.items.filter(t=>!t.adminOnly||e)})).filter(e=>e.items.length>0)}function Zl(e){return e.startsWith(`/activity`)?`/activity`:e.startsWith(`/domains`)?`/domains`:e.startsWith(`/inbox`)?`/inbox`:e.startsWith(`/account`)?`/account`:e.startsWith(`/integrations/smtp`)?`/integrations/smtp`:e.startsWith(`/integrations/api-keys`)?`/integrations/api-keys`:e.startsWith(`/integrations/webhooks`)?`/integrations/webhooks`:e.startsWith(`/integrations/dns`)?`/integrations/dns`:e.startsWith(`/admin`)?`/admin/users`:e.startsWith(`/settings`)?`/settings`:`/overview`}function Ql(){let{locale:e,locales:t,setLocale:n,t:r}=l(),{user:i,config:a,logout:o}=Wl(),s=ns(),c=os(),u=Gl(`(min-width: 1024px)`),[d,f]=(0,q.useState)(!1),p=(0,q.useRef)(null),m=i?.role===`admin`;(0,q.useEffect)(()=>{f(!1);let e=window.requestAnimationFrame(()=>p.current?.focus({preventScroll:!0}));return()=>window.cancelAnimationFrame(e)},[s.pathname]),(0,q.useEffect)(()=>{u&&f(!1)},[u]);let h=(0,q.useMemo)(()=>Xl(m).map(e=>({type:`group`,key:e.key,label:r(e.labelKey),children:e.items.map(e=>({key:e.path,icon:e.icon,label:r(e.labelKey)}))})),[m,r]),_=(0,$.jsx)(hn,{theme:`dark`,mode:`inline`,selectedKeys:[Zl(s.pathname)],items:h,onClick:({key:e})=>c(e),className:`admin-menu`}),v=!!(a?.mailHostname&&a?.sendingIp),y=a?`${a.mailHostname} · ${a.sendingIp||r(`common.unsetSendingIp`)}`:r(`common.loadingConfig`);return(0,$.jsxs)($n,{className:`admin-layout`,children:[(0,$.jsx)(`a`,{className:`skip-link`,href:`#main-content`,children:r(`shell.skipToMain`)}),(0,$.jsx)(ql,{width:252,className:`admin-sider desktop-sider`,trigger:null,children:(0,$.jsx)($l,{menu:_,userName:i?.username,role:i?.role})}),(0,$.jsx)(Bn,{className:`mobile-navigation-drawer`,placement:`left`,width:288,open:d&&!u,onClose:()=>f(!1),closable:!1,styles:{body:{padding:0,background:`#0F172A`}},"aria-label":r(`shell.mainNavigation`),children:(0,$.jsx)($l,{menu:_,userName:i?.username,role:i?.role,onClose:()=>f(!1),closeLabel:r(`shell.closeNavigation`)})}),(0,$.jsxs)($n,{className:`admin-main-layout`,children:[(0,$.jsxs)(Kl,{className:`admin-header`,children:[(0,$.jsxs)(ke,{size:12,className:`header-status`,children:[(0,$.jsx)(Le,{className:`mobile-nav-trigger`,type:`text`,icon:(0,$.jsx)(Nl,{}),"aria-label":r(`shell.openNavigation`),onClick:()=>f(!0)}),(0,$.jsx)(ne,{title:y,children:(0,$.jsx)(Or,{className:`environment-status`,"aria-label":r(v?`shell.envReady`:`shell.envNeedsSetup`),icon:v?(0,$.jsx)(fl,{}):(0,$.jsx)(Hl,{}),color:v?`success`:`warning`,children:(0,$.jsx)(`span`,{className:`environment-status__label`,children:r(v?`shell.envReady`:`shell.envNeedsSetup`)})})})]}),(0,$.jsxs)(ke,{size:8,className:`header-actions`,children:[(0,$.jsx)(F,{"aria-label":`Language`,value:e,options:t,onChange:n,className:`language-select`}),(0,$.jsx)(Un,{trigger:[`click`],menu:{items:[{key:`account-summary`,label:(0,$.jsxs)(`div`,{className:`account-menu-summary`,children:[(0,$.jsx)(Ve.Text,{strong:!0,children:i?.username||r(`common.user`)}),(0,$.jsx)(Ve.Text,{type:`secondary`,children:i?.email||`—`})]}),disabled:!0},{key:`account`,label:r(`account.title`),onClick:()=>c(`/account`)},...m?[{key:`settings`,label:r(`nav.settings`),onClick:()=>c(`/settings`)}]:[],{type:`divider`},{key:`logout`,label:r(`common.logout`),onClick:()=>void o()}]},children:(0,$.jsx)(Le,{className:`user-button`,"aria-label":r(`shell.accountMenu`),children:(0,$.jsxs)(ke,{size:8,children:[(0,$.jsx)(Dt,{size:24,icon:(0,$.jsx)(g,{})}),(0,$.jsx)(`span`,{className:`user-button__name`,title:i?.username||r(`common.user`),children:i?.username||r(`common.user`)})]})})})]})]}),(0,$.jsx)(Jl,{id:`main-content`,ref:p,tabIndex:-1,className:`admin-content`,children:(0,$.jsx)(qs,{})})]})]})}function $l({menu:e,userName:t,role:n,onClose:r,closeLabel:i}){return(0,$.jsxs)(`div`,{className:`admin-sider-inner`,children:[(0,$.jsxs)(`div`,{className:`brand`,children:[(0,$.jsx)(`div`,{className:`brand-logo`,"aria-hidden":`true`,children:`MH`}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{className:`brand-title`,children:`MailHub`}),(0,$.jsx)(`div`,{className:`brand-subtitle`,children:`Delivery Operations`})]}),r?(0,$.jsx)(Le,{type:`text`,className:`mobile-nav-close`,icon:(0,$.jsx)(hl,{}),"aria-label":i,style:{minHeight:44,minWidth:44},onClick:r}):null]}),e,t?(0,$.jsxs)(`div`,{className:`admin-sider-footer`,children:[(0,$.jsx)(Dt,{size:28,icon:(0,$.jsx)(g,{}),className:`sider-user-avatar`}),(0,$.jsxs)(`div`,{className:`sider-user-meta`,children:[(0,$.jsx)(`div`,{className:`sider-user-name`,children:t}),(0,$.jsx)(`div`,{className:`sider-user-role`,children:n||`—`})]})]}):null]})}var eu=(0,q.lazy)(()=>Nr(()=>import(`./Dashboard-BENr2dgX.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),tu=(0,q.lazy)(()=>Nr(()=>import(`./Domains-BJSbG9ca.js`),__vite__mapDeps([14,1,2,3,4,5,15,16,6,17,18,19,9,20,21,22,23,24,25,10,11,12]))),nu=(0,q.lazy)(()=>Nr(()=>import(`./DomainDetail-DXZVCUbT.js`),__vite__mapDeps([26,1,2,3,4,5,15,16,6,7,17,18,19,9,20,27,28,21,22,23,25,10,11,29,12,30,31]))),ru=(0,q.lazy)(()=>Nr(()=>import(`./SendingLogs-DSu5v-Zl.js`),__vite__mapDeps([32,1,2,3,4,5,15,16,6,17,19,9,28,23,24,10,11,29,33,13]))),iu=(0,q.lazy)(()=>Nr(()=>import(`./Inbox-7UH19KPt.js`),__vite__mapDeps([34,1,2,3,4,5,15,16,6,31,35,17,18,19,9,20,28,21,36,23,24,10,37,11,29,33]))),au=(0,q.lazy)(()=>Nr(()=>import(`./SmtpCredentials-a0UgeAH-.js`),__vite__mapDeps([38,1,2,3,4,5,15,16,6,35,17,18,19,39,27,28,21,36,23,10,11,33]))),ou=(0,q.lazy)(()=>Nr(()=>import(`./ApiTokens-yNoe0ogC.js`),__vite__mapDeps([40,1,2,3,4,5,15,16,6,17,18,19,20,39,28,21,36,23,10,11,29,33]))),su=(0,q.lazy)(()=>Nr(()=>import(`./Webhooks-pSWRIh7Y.js`),__vite__mapDeps([41,1,2,3,4,5,15,16,6,17,18,19,20,39,27,28,21,36,23,25,10,11,29,33]))),cu=(0,q.lazy)(()=>Nr(()=>import(`./DnsApi-Bros5Dbx.js`),__vite__mapDeps([42,1,2,3,4,5,15,16,6,35,17,18,19,39,21,36,23,25,10,11,33]))),lu=(0,q.lazy)(()=>Nr(()=>import(`./Admin-xFOA6-bp.js`),__vite__mapDeps([43,1,2,3,4,5,15,16,6,35,17,18,19,9,20,27,21,22,36,23,10,37,11]))),uu=(0,q.lazy)(()=>Nr(()=>import(`./Settings-v55Om0XG.js`),__vite__mapDeps([44,1,2,3,4,5,15,16,6,18,19,27,23,12,30,31,11]))),du=(0,q.lazy)(()=>Nr(()=>import(`./Account-nhuoQQlz.js`),__vite__mapDeps([45,1,2,3,4,5,15,16,6,17,9,23,10,37]))),fu=Rc(Xs((0,$.jsx)(Q,{element:(0,$.jsx)(mu,{}),children:(0,$.jsxs)(Q,{element:(0,$.jsx)(Ql,{}),children:[(0,$.jsx)(Q,{index:!0,element:(0,$.jsx)(Ks,{to:`/overview`,replace:!0})}),(0,$.jsx)(Q,{path:`overview`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(eu,{})})}),(0,$.jsx)(Q,{path:`activity`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(ru,{})})}),(0,$.jsx)(Q,{path:`activity/:eventId`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(ru,{})})}),(0,$.jsx)(Q,{path:`domains`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(tu,{})})}),(0,$.jsx)(Q,{path:`domains/:id/:section`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(nu,{})})}),(0,$.jsx)(Q,{path:`inbox`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(iu,{})})}),(0,$.jsx)(Q,{path:`inbox/messages/:messageId`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(iu,{})})}),(0,$.jsx)(Q,{path:`account`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(du,{})})}),(0,$.jsx)(Q,{path:`integrations/smtp`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(au,{})})}),(0,$.jsx)(Q,{path:`integrations/api-keys`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(ou,{})})}),(0,$.jsx)(Q,{path:`integrations/webhooks`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(su,{})})}),(0,$.jsx)(Q,{path:`integrations/dns`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(cu,{})})}),(0,$.jsxs)(Q,{element:(0,$.jsx)(hu,{}),children:[(0,$.jsx)(Q,{path:`admin`,element:(0,$.jsx)(Ks,{to:`/admin/users`,replace:!0})}),(0,$.jsx)(Q,{path:`admin/:section`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(lu,{})})}),(0,$.jsx)(Q,{path:`settings`,element:(0,$.jsx)(gu,{children:(0,$.jsx)(uu,{})})})]}),(0,$.jsx)(Q,{path:`*`,element:(0,$.jsx)(_u,{})})]})})));function pu(){return(0,$.jsx)(Oe,{theme:h,children:(0,$.jsx)(d,{children:(0,$.jsx)(f,{children:(0,$.jsx)(ll,{router:fu})})})})}function mu(){let{t:e}=l(),[t,n]=(0,q.useState)(null),[r,i]=(0,q.useState)(null),[a,o]=(0,q.useState)(!0),[s,c]=(0,q.useState)(``),u=(0,q.useCallback)(async()=>{o(!0),c(``);try{let[e,t]=await Promise.all([_.me(),_.config()]);n(e.user),i(t)}catch(e){let t=e instanceof Error?e.message:`操作失败`;if(/Authentication required/i.test(t)){window.location.assign(Su());return}c(t)}finally{o(!1)}},[]);(0,q.useEffect)(()=>{u()},[u]);let d=(0,q.useCallback)(async()=>{await _.logout().catch(()=>null),window.location.assign(`/login`)},[]),f=(0,q.useMemo)(()=>({user:t,config:r,refreshBootstrap:u,logout:d}),[r,u,d,t]);return a?(0,$.jsx)(vu,{}):s||!t||!r?(0,$.jsx)(hr,{status:`error`,title:e(`shell.loadingFailed`),subTitle:s||e(`common.error`),extra:[(0,$.jsx)(Le,{type:`primary`,onClick:()=>void u(),children:e(`shell.retry`)},`retry`),(0,$.jsx)(Le,{href:Su(),children:e(`shell.backToLogin`)},`login`)]}):(0,$.jsxs)(Ul.Provider,{value:f,children:[(0,$.jsx)(bu,{}),(0,$.jsx)(qs,{})]})}function hu(){let{user:e}=Wl(),{t}=l();return e?.role===`admin`?(0,$.jsx)(qs,{}):(0,$.jsx)(hr,{status:`403`,title:t(`shell.forbiddenTitle`),subTitle:t(`shell.forbiddenDescription`),extra:(0,$.jsx)(Le,{type:`primary`,href:`/overview`,children:t(`shell.backOverview`)})})}function gu({children:e}){return(0,$.jsx)(q.Suspense,{fallback:(0,$.jsx)(yu,{}),children:e})}function _u(){let{t:e}=l();return(0,$.jsx)(hr,{status:`404`,title:e(`shell.notFoundTitle`),subTitle:e(`shell.notFoundDescription`),extra:(0,$.jsx)(Le,{type:`primary`,href:`/overview`,children:e(`shell.backOverview`)})})}function vu(){let{t:e}=l();return(0,$.jsxs)(`div`,{className:`bootstrap-skeleton`,"aria-label":e(`shell.loadingConsole`),children:[(0,$.jsx)(`div`,{className:`bootstrap-skeleton__sidebar`}),(0,$.jsx)(`div`,{className:`bootstrap-skeleton__content`,children:(0,$.jsx)(Ye,{active:!0,paragraph:{rows:8}})})]})}function yu(){let{t:e}=l();return(0,$.jsx)(`div`,{className:`route-skeleton`,"aria-label":e(`shell.loadingPage`),children:(0,$.jsx)(Ye,{active:!0,title:{width:`32%`},paragraph:{rows:7}})})}function bu(){let e=ns(),t=rs(),n=(0,q.useRef)(null);return(0,q.useEffect)(()=>{let r=`mailhub.scroll.${e.key}`,i=xu(e.pathname),a=n.current===i,o=a?window.scrollY:t===`POP`?Number(window.sessionStorage.getItem(r)||0):0;n.current=i;let s=window.requestAnimationFrame(()=>{a||window.scrollTo({top:o,behavior:`auto`})});return()=>{window.cancelAnimationFrame(s),window.sessionStorage.setItem(r,String(window.scrollY))}},[e.key,t]),null}function xu(e){return/^\/activity(?:\/|$)/.test(e)?`/activity`:/^\/inbox(?:\/|$)/.test(e)?`/inbox`:e}function Su(){let e=`${window.location.pathname}${window.location.search}${window.location.hash}`,t=e.startsWith(`/`)&&!e.startsWith(`//`)?e:`/overview`;return`/login?next=${encodeURIComponent(t)}`}(0,kr.createRoot)(document.getElementById(`root`)).render((0,$.jsx)(pu,{}));export{kt as C,ht as E,Zt as S,St as T,Or as _,Il as a,Bn as b,wl as c,As as d,ns as f,Nr as g,Xc as h,zl as i,fl as l,us as m,Wl as n,Al as o,os as p,Hl as r,Dl as s,Gl as t,al as u,hr as v,wt as w,hn as x,Un as y};