From 8adca7db8bc7a978a82d91d425318452c90b88c6 Mon Sep 17 00:00:00 2001 From: nianhua99 <1139168548@qq.com> Date: Mon, 16 Sep 2024 20:46:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=82=E9=85=8D=E6=96=B0=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/v1/share.go | 6 + frontend/dist/assets/AccountModal-418b3074.js | 5 + frontend/dist/assets/AccountModal-c4efbab5.js | 5 - frontend/dist/assets/Login-881441d0.js | 1 + frontend/dist/assets/Login-9f0473a0.js | 1 - frontend/dist/assets/Page403-94145e15.js | 1 + frontend/dist/assets/Page403-a6808818.js | 1 - frontend/dist/assets/Page404-1c1f083d.js | 1 + frontend/dist/assets/Page404-90495919.js | 1 - frontend/dist/assets/Page500-7abd76b3.js | 1 + frontend/dist/assets/Page500-cb5653a5.js | 1 - ...-d916cdba.js => RobotOutlined-1b0cee63.js} | 4 +- frontend/dist/assets/ShareModal-b94ef087.js | 19 ++ frontend/dist/assets/ShareModal-d881e5fb.js | 19 -- .../assets/__commonjsHelpers__-02d3be64.js | 1 - ...983f3c33.js => accountService-339f9b3a.js} | 2 +- ...{bounce-9497c072.js => bounce-a09546fe.js} | 2 +- ...hatgpt-e0a23f57.js => chatgpt-4810e4b7.js} | 4 +- frontend/dist/assets/chatgpt-914c2ed5.js | 1 - frontend/dist/assets/chatgpt-f94d99f5.js | 1 + frontend/dist/assets/claude-0de9fc78.js | 1 + frontend/dist/assets/claude-17b7063c.js | 1 - frontend/dist/assets/claude-a81cacc1.js | 1 + frontend/dist/assets/claude-b7945caa.js | 1 - frontend/dist/assets/index-01ef8a43.js | 1 + frontend/dist/assets/index-1ddae2d1.js | 1 - .../{index-32c3357d.js => index-24044c4a.js} | 30 ++-- frontend/dist/assets/index-4dcab9f7.js | 1 + frontend/dist/assets/index-57404842.js | 1 - .../{index-d818baf5.js => index-5d59fb8e.js} | 6 +- frontend/dist/assets/index-8d9b92bb.js | 1 - .../{index-8826920f.js => index-af2c6676.js} | 10 +- frontend/dist/assets/index-cb661052.js | 1 + frontend/dist/assets/logo-new-5-3ca115d5.png | Bin 0 -> 34898 bytes frontend/dist/assets/row-2dc4d0fe.js | 1 + frontend/dist/assets/row-4d2b6eab.js | 1 - ...Query-77691717.js => useQuery-db800160.js} | 2 +- frontend/dist/index.html | 3 +- frontend/src/assets/icons/linuxdologo.png | Bin 0 -> 6402 bytes frontend/src/assets/icons/logo-new-5.png | Bin 0 -> 34898 bytes frontend/src/layouts/dashboard/header.tsx | 6 +- frontend/src/locales/i18n.ts | 4 +- frontend/src/locales/lang/en_US/common.json | 2 +- frontend/src/locales/lang/en_US/sys.json | 2 +- frontend/src/locales/lang/zh_CN/common.json | 6 + frontend/src/locales/lang/zh_CN/sys.json | 2 +- .../src/pages/dashboard/analysis/banner.tsx | 4 +- frontend/src/pages/sys/login/Login.tsx | 2 +- .../account/components/ShareInfoModal.tsx | 2 +- .../token/account/components/ShareModal.tsx | 168 ++++++++++-------- frontend/src/pages/token/share/chatgpt.tsx | 28 ++- frontend/types/entity.ts | 8 + frontend/vite.config.ts | 20 +-- ....timestamp-1726472107506-bb5b8726651d9.mjs | 73 ++++++++ go.mod | 3 +- go.sum | 2 - internal/model/share.go | 4 + internal/server/http.go | 2 +- internal/service/account.go | 5 +- internal/service/share.go | 67 +++---- internal/service/user.go | 2 +- 61 files changed, 340 insertions(+), 212 deletions(-) create mode 100644 frontend/dist/assets/AccountModal-418b3074.js delete mode 100644 frontend/dist/assets/AccountModal-c4efbab5.js create mode 100644 frontend/dist/assets/Login-881441d0.js delete mode 100644 frontend/dist/assets/Login-9f0473a0.js create mode 100644 frontend/dist/assets/Page403-94145e15.js delete mode 100644 frontend/dist/assets/Page403-a6808818.js create mode 100644 frontend/dist/assets/Page404-1c1f083d.js delete mode 100644 frontend/dist/assets/Page404-90495919.js create mode 100644 frontend/dist/assets/Page500-7abd76b3.js delete mode 100644 frontend/dist/assets/Page500-cb5653a5.js rename frontend/dist/assets/{RobotOutlined-d916cdba.js => RobotOutlined-1b0cee63.js} (84%) create mode 100644 frontend/dist/assets/ShareModal-b94ef087.js delete mode 100644 frontend/dist/assets/ShareModal-d881e5fb.js delete mode 100644 frontend/dist/assets/__commonjsHelpers__-02d3be64.js rename frontend/dist/assets/{accountService-983f3c33.js => accountService-339f9b3a.js} (91%) rename frontend/dist/assets/{bounce-9497c072.js => bounce-a09546fe.js} (96%) rename frontend/dist/assets/{chatgpt-e0a23f57.js => chatgpt-4810e4b7.js} (98%) delete mode 100644 frontend/dist/assets/chatgpt-914c2ed5.js create mode 100644 frontend/dist/assets/chatgpt-f94d99f5.js create mode 100644 frontend/dist/assets/claude-0de9fc78.js delete mode 100644 frontend/dist/assets/claude-17b7063c.js create mode 100644 frontend/dist/assets/claude-a81cacc1.js delete mode 100644 frontend/dist/assets/claude-b7945caa.js create mode 100644 frontend/dist/assets/index-01ef8a43.js delete mode 100644 frontend/dist/assets/index-1ddae2d1.js rename frontend/dist/assets/{index-32c3357d.js => index-24044c4a.js} (79%) create mode 100644 frontend/dist/assets/index-4dcab9f7.js delete mode 100644 frontend/dist/assets/index-57404842.js rename frontend/dist/assets/{index-d818baf5.js => index-5d59fb8e.js} (92%) delete mode 100644 frontend/dist/assets/index-8d9b92bb.js rename frontend/dist/assets/{index-8826920f.js => index-af2c6676.js} (68%) create mode 100644 frontend/dist/assets/index-cb661052.js create mode 100644 frontend/dist/assets/logo-new-5-3ca115d5.png create mode 100644 frontend/dist/assets/row-2dc4d0fe.js delete mode 100644 frontend/dist/assets/row-4d2b6eab.js rename frontend/dist/assets/{useQuery-77691717.js => useQuery-db800160.js} (97%) create mode 100644 frontend/src/assets/icons/linuxdologo.png create mode 100644 frontend/src/assets/icons/logo-new-5.png create mode 100644 frontend/vite.config.ts.timestamp-1726472107506-bb5b8726651d9.mjs diff --git a/api/v1/share.go b/api/v1/share.go index c2a6e78..0d660ac 100644 --- a/api/v1/share.go +++ b/api/v1/share.go @@ -40,3 +40,9 @@ type SearchShareResponse struct { type ShareResponse struct { Response } + +type Usage map[string]string + +type StatisticResult struct { + Usage Usage `json:"usage"` +} diff --git a/frontend/dist/assets/AccountModal-418b3074.js b/frontend/dist/assets/AccountModal-418b3074.js new file mode 100644 index 0000000..2861dd5 --- /dev/null +++ b/frontend/dist/assets/AccountModal-418b3074.js @@ -0,0 +1,5 @@ +import{i as e,Y as t,Z as o,$ as n,a0 as a,m as r,r as s,k as i,a1 as l,h as c,a2 as d,a3 as u,A as m,n as b,a4 as g,a5 as f,a6 as p,u as h,j as v,P as $,I as x,a7 as y,W as j,a8 as S,a9 as C,B as O}from"./index-24044c4a.js";import{a as w}from"./accountService-339f9b3a.js";import{F as k}from"./index-4dcab9f7.js";import{I as N}from"./ShareModal-b94ef087.js";const E=new t("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),z=new t("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),I=new t("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),T=new t("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),R=new t("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),B=new t("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),F=e=>{const{fontHeight:t,lineWidth:o,marginXS:n,colorBorderBg:a}=e,s=t,i=o,l=e.colorBgContainer,c=e.colorError,d=e.colorErrorHover;return r(e,{badgeFontHeight:s,badgeShadowSize:i,badgeTextColor:l,badgeColor:c,badgeColorHover:d,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:n,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},A=e=>{const{fontSize:t,lineHeight:o,fontSizeSM:n,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*a,indicatorHeightSM:t,dotSize:n/2,textFontSize:n,textFontSizeSM:n,textFontWeight:"normal",statusSize:n/2}},M=e("Badge",(e=>(e=>{const{componentCls:t,iconCls:r,antCls:s,badgeShadowSize:i,motionDurationSlow:l,textFontSize:c,textFontSizeSM:d,statusSize:u,dotSize:m,textFontWeight:b,indicatorHeight:g,indicatorHeightSM:f,marginXS:p,calc:h}=e,v=`${s}-scroll-number`,$=o(e,((e,o)=>{let{darkColor:n}=o;return{[`&${t} ${t}-color-${e}`]:{background:n,[`&:not(${t}-count)`]:{color:n},"a:hover &":{background:n}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},n(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:g,height:g,color:e.badgeTextColor,fontWeight:b,fontSize:c,lineHeight:a(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(g).div(2).equal(),boxShadow:`0 0 0 ${a(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:d,lineHeight:a(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${a(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:m,minWidth:m,height:m,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${a(i)} ${e.badgeShadowColor}`},[`${t}-dot${v}`]:{transition:`background ${l}`},[`${t}-count, ${t}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${r}-spin`]:{animationName:B,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:E,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),$),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:z,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:I,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:T,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:R,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${t}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${v}`]:{overflow:"hidden",[`${v}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(F(e))),A),P=e(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:r,marginXS:s,badgeRibbonOffset:i,calc:l}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,u=o(e,((e,t)=>{let{darkColor:o}=t;return{[`&${c}-color-${e}`]:{background:o,color:o}}}));return{[`${d}`]:{position:"relative"},[`${c}`]:Object.assign(Object.assign(Object.assign(Object.assign({},n(e)),{position:"absolute",top:s,padding:`0 ${a(e.paddingXS)}`,color:e.colorPrimary,lineHeight:a(r),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-text`]:{color:e.colorTextLightSolid},[`${c}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${a(l(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),u),{[`&${c}-placement-end`]:{insetInlineEnd:l(i).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:l(i).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(F(e))),A),H=e=>{const{className:t,prefixCls:o,style:n,color:a,children:r,text:d,placement:u="end",rootClassName:m}=e,{getPrefixCls:b,direction:g}=s.useContext(i),f=b("ribbon",o),p=`${f}-wrapper`,[h,v,$]=P(f,p),x=l(a,!1),y=c(f,`${f}-placement-${u}`,{[`${f}-rtl`]:"rtl"===g,[`${f}-color-${a}`]:x},t),j={},S={};return a&&!x&&(j.background=a,S.color=a),h(s.createElement("div",{className:c(p,m,v,$)},r,s.createElement("div",{className:c(y,v),style:Object.assign(Object.assign({},j),n)},s.createElement("span",{className:`${f}-text`},d),s.createElement("div",{className:`${f}-corner`,style:S}))))};function D(e){let t,{prefixCls:o,value:n,current:a,offset:r=0}=e;return r&&(t={position:"absolute",top:`${r}00%`,left:0}),s.createElement("span",{style:t,className:c(`${o}-only-unit`,{current:a})},n)}function W(e,t,o){let n=e,a=0;for(;(n+10)%10!==t;)n+=o,a+=o;return a}function Z(e){const{prefixCls:t,count:o,value:n}=e,a=Number(n),r=Math.abs(o),[i,l]=s.useState(a),[c,d]=s.useState(r),u=()=>{l(a),d(r)};let m,b;if(s.useEffect((()=>{const e=setTimeout((()=>{u()}),1e3);return()=>{clearTimeout(e)}}),[a]),i===a||Number.isNaN(a)||Number.isNaN(i))m=[s.createElement(D,Object.assign({},e,{key:a,current:!0}))],b={transition:"none"};else{m=[];const t=a+10,o=[];for(let e=a;e<=t;e+=1)o.push(e);const n=o.findIndex((e=>e%10===i));m=o.map(((t,o)=>{const a=t%10;return s.createElement(D,Object.assign({},e,{key:t,value:a,offset:o-n,current:o===n}))}));b={transform:`translateY(${-W(i,a,c{const{prefixCls:o,count:n,className:a,motionClassName:r,style:l,title:u,show:m,component:b="sup",children:g}=e,f=V(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=s.useContext(i),h=p("scroll-number",o),v=Object.assign(Object.assign({},f),{"data-show":m,style:l,className:c(h,a,r),title:u});let $=n;if(n&&Number(n)%1==0){const e=String(n).split("");$=s.createElement("bdi",null,e.map(((t,o)=>s.createElement(Z,{prefixCls:h,count:Number(n),value:t,key:e.length-o}))))}return l&&l.borderColor&&(v.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),g?d(g,(e=>({className:c(`${h}-custom-component`,null==e?void 0:e.className,r)}))):s.createElement(b,Object.assign({},v,{ref:t}),$)}));var q=globalThis&&globalThis.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a{var o,n,a,r,m;const{prefixCls:b,scrollNumberPrefixCls:g,children:f,status:p,text:h,color:v,count:$=null,overflowCount:x=99,dot:y=!1,size:j="default",title:S,offset:C,style:O,className:w,rootClassName:k,classNames:N,styles:E,showZero:z=!1}=e,I=q(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:T,direction:R,badge:B}=s.useContext(i),F=T("badge",b),[A,P,H]=M(F),D=$>x?`${x}+`:$,W="0"===D||0===D,Z=(null!=p||null!=v)&&(null===$||W&&!z),V=y&&!W,L=V?"":D,X=s.useMemo((()=>(null==L||""===L||W&&!z)&&!V),[L,W,z,V]),K=s.useRef($);X||(K.current=$);const Q=K.current,Y=s.useRef(L);X||(Y.current=L);const U=Y.current,G=s.useRef(V);X||(G.current=V);const J=s.useMemo((()=>{if(!C)return Object.assign(Object.assign({},null==B?void 0:B.style),O);const e={marginTop:C[1]};return"rtl"===R?e.left=parseInt(C[0],10):e.right=-parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},e),null==B?void 0:B.style),O)}),[R,C,O,null==B?void 0:B.style]),ee=null!=S?S:"string"==typeof Q||"number"==typeof Q?Q:void 0,te=X||!h?null:s.createElement("span",{className:`${F}-status-text`},h),oe=Q&&"object"==typeof Q?d(Q,(e=>({style:Object.assign(Object.assign({},J),e.style)}))):void 0,ne=l(v,!1),ae=c(null==N?void 0:N.indicator,null===(o=null==B?void 0:B.classNames)||void 0===o?void 0:o.indicator,{[`${F}-status-dot`]:Z,[`${F}-status-${p}`]:!!p,[`${F}-color-${v}`]:ne}),re={};v&&!ne&&(re.color=v,re.background=v);const se=c(F,{[`${F}-status`]:Z,[`${F}-not-a-wrapper`]:!f,[`${F}-rtl`]:"rtl"===R},w,k,null==B?void 0:B.className,null===(n=null==B?void 0:B.classNames)||void 0===n?void 0:n.root,null==N?void 0:N.root,P,H);if(!f&&Z){const e=J.color;return A(s.createElement("span",Object.assign({},I,{className:se,style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.root),null===(a=null==B?void 0:B.styles)||void 0===a?void 0:a.root),J)}),s.createElement("span",{className:ae,style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.indicator),null===(r=null==B?void 0:B.styles)||void 0===r?void 0:r.indicator),re)}),h&&s.createElement("span",{style:{color:e},className:`${F}-status-text`},h)))}return A(s.createElement("span",Object.assign({ref:t},I,{className:se,style:Object.assign(Object.assign({},null===(m=null==B?void 0:B.styles)||void 0===m?void 0:m.root),null==E?void 0:E.root)}),f,s.createElement(u,{visible:!X,motionName:`${F}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t,ref:o}=e;var n,a;const r=T("scroll-number",g),i=G.current,l=c(null==N?void 0:N.indicator,null===(n=null==B?void 0:B.classNames)||void 0===n?void 0:n.indicator,{[`${F}-dot`]:i,[`${F}-count`]:!i,[`${F}-count-sm`]:"small"===j,[`${F}-multiple-words`]:!i&&U&&U.toString().length>1,[`${F}-status-${p}`]:!!p,[`${F}-color-${v}`]:ne});let d=Object.assign(Object.assign(Object.assign({},null==E?void 0:E.indicator),null===(a=null==B?void 0:B.styles)||void 0===a?void 0:a.indicator),J);return v&&!ne&&(d=d||{},d.background=v),s.createElement(_,{prefixCls:r,show:!X,motionClassName:t,className:l,count:U,title:ee,style:d,key:"scrollNumber",ref:o},oe)})),te))}));L.Ribbon=H;const X=L;const K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var Q=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:K}))}; +/**![reload](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOS4xIDIwOS4zbC01Ni40IDQ0LjFDNzc1LjggMTU1LjEgNjU2LjIgOTIgNTIxLjkgOTIgMjkwIDkyIDEwMi4zIDI3OS41IDEwMiA1MTEuNSAxMDEuNyA3NDMuNyAyODkuOCA5MzIgNTIxLjkgOTMyYzE4MS4zIDAgMzM1LjgtMTE1IDM5NC42LTI3Ni4xIDEuNS00LjItLjctOC45LTQuOS0xMC4zbC01Ni43LTE5LjVhOCA4IDAgMDAtMTAuMSA0LjhjLTEuOCA1LTMuOCAxMC01LjkgMTQuOS0xNy4zIDQxLTQyLjEgNzcuOC03My43IDEwOS40QTM0NC43NyAzNDQuNzcgMCAwMTY1NS45IDgyOWMtNDIuMyAxNy45LTg3LjQgMjctMTMzLjggMjctNDYuNSAwLTkxLjUtOS4xLTEzMy44LTI3QTM0MS41IDM0MS41IDAgMDEyNzkgNzU1LjJhMzQyLjE2IDM0Mi4xNiAwIDAxLTczLjctMTA5LjRjLTE3LjktNDIuNC0yNy04Ny40LTI3LTEzMy45czkuMS05MS41IDI3LTEzMy45YzE3LjMtNDEgNDIuMS03Ny44IDczLjctMTA5LjQgMzEuNi0zMS42IDY4LjQtNTYuNCAxMDkuMy03My44IDQyLjMtMTcuOSA4Ny40LTI3IDEzMy44LTI3IDQ2LjUgMCA5MS41IDkuMSAxMzMuOCAyN2EzNDEuNSAzNDEuNSAwIDAxMTA5LjMgNzMuOGM5LjkgOS45IDE5LjIgMjAuNCAyNy44IDMxLjRsLTYwLjIgNDdhOCA4IDAgMDAzIDE0LjFsMTc1LjYgNDNjNSAxLjIgOS45LTIuNiA5LjktNy43bC44LTE4MC45Yy0uMS02LjYtNy44LTEwLjMtMTMtNi4yeiIgLz48L3N2Zz4=) */const Y=s.forwardRef(Q);const U={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:t}},{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",fill:e}}]}},name:"check-circle",theme:"twotone"};var G=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:U}))}; +/**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIGZpbGw9IiMxNjc3ZmYiIC8+PHBhdGggZD0iTTUxMiAxNDBjLTIwNS40IDAtMzcyIDE2Ni42LTM3MiAzNzJzMTY2LjYgMzcyIDM3MiAzNzIgMzcyLTE2Ni42IDM3Mi0zNzItMTY2LjYtMzcyLTM3Mi0zNzJ6bTE5My40IDIyNS43bC0yMTAuNiAyOTJhMzEuOCAzMS44IDAgMDEtNTEuNyAwTDMxOC41IDQ4NC45Yy0zLjgtNS4zIDAtMTIuNyA2LjUtMTIuN2g0Ni45YzEwLjMgMCAxOS45IDUgMjUuOSAxMy4zbDcxLjIgOTguOCAxNTcuMi0yMThjNi04LjQgMTUuNy0xMy4zIDI1LjktMTMuM0g2OTljNi41IDAgMTAuMyA3LjQgNi40IDEyLjd6IiBmaWxsPSIjZTZmNGZmIiAvPjxwYXRoIGQ9Ik02OTkgMzUzaC00Ni45Yy0xMC4yIDAtMTkuOSA0LjktMjUuOSAxMy4zTDQ2OSA1ODQuM2wtNzEuMi05OC44Yy02LTguMy0xNS42LTEzLjMtMjUuOS0xMy4zSDMyNWMtNi41IDAtMTAuMyA3LjQtNi41IDEyLjdsMTI0LjYgMTcyLjhhMzEuOCAzMS44IDAgMDA1MS43IDBsMjEwLjYtMjkyYzMuOS01LjMuMS0xMi43LTYuNC0xMi43eiIgZmlsbD0iIzE2NzdmZiIgLz48L3N2Zz4=) */const J=s.forwardRef(G);const ee={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:t}},{tag:"path",attrs:{d:"M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}}]}},name:"exclamation-circle",theme:"twotone"};var te=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:ee}))}; +/**![exclamation-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIGZpbGw9IiMxNjc3ZmYiIC8+PHBhdGggZD0iTTUxMiAxNDBjLTIwNS40IDAtMzcyIDE2Ni42LTM3MiAzNzJzMTY2LjYgMzcyIDM3MiAzNzIgMzcyLTE2Ni42IDM3Mi0zNzItMTY2LjYtMzcyLTM3Mi0zNzJ6bS0zMiAxNTZjMC00LjQgMy42LTggOC04aDQ4YzQuNCAwIDggMy42IDggOHYyNzJjMCA0LjQtMy42IDgtOCA4aC00OGMtNC40IDAtOC0zLjYtOC04VjI5NnptMzIgNDQwYTQ4LjAxIDQ4LjAxIDAgMDEwLTk2IDQ4LjAxIDQ4LjAxIDAgMDEwIDk2eiIgZmlsbD0iI2U2ZjRmZiIgLz48cGF0aCBkPSJNNDg4IDU3Nmg0OGM0LjQgMCA4LTMuNiA4LThWMjk2YzAtNC40LTMuNi04LTgtOGgtNDhjLTQuNCAwLTggMy42LTggOHYyNzJjMCA0LjQgMy42IDggOCA4em0tMjQgMTEyYTQ4IDQ4IDAgMTA5NiAwIDQ4IDQ4IDAgMTAtOTYgMHoiIGZpbGw9IiMxNjc3ZmYiIC8+PC9zdmc+) */const oe=s.forwardRef(te);const ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"};var ae=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:ne}))}; +/**![share-alt](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc1MiA2NjRjLTI4LjUgMC01NC44IDEwLTc1LjQgMjYuN0w0NjkuNCA1NDAuOGExNjAuNjggMTYwLjY4IDAgMDAwLTU3LjZsMjA3LjItMTQ5LjlDNjk3LjIgMzUwIDcyMy41IDM2MCA3NTIgMzYwYzY2LjIgMCAxMjAtNTMuOCAxMjAtMTIwcy01My44LTEyMC0xMjAtMTIwLTEyMCA1My44LTEyMCAxMjBjMCAxMS42IDEuNiAyMi43IDQuNyAzMy4zTDQzOS45IDQxNS44QzQxMC43IDM3Ny4xIDM2NC4zIDM1MiAzMTIgMzUyYy04OC40IDAtMTYwIDcxLjYtMTYwIDE2MHM3MS42IDE2MCAxNjAgMTYwYzUyLjMgMCA5OC43LTI1LjEgMTI3LjktNjMuOGwxOTYuOCAxNDIuNWMtMy4xIDEwLjYtNC43IDIxLjgtNC43IDMzLjMgMCA2Ni4yIDUzLjggMTIwIDEyMCAxMjBzMTIwLTUzLjggMTIwLTEyMC01My44LTEyMC0xMjAtMTIwem0wLTQ3NmMyOC43IDAgNTIgMjMuMyA1MiA1MnMtMjMuMyA1Mi01MiA1Mi01Mi0yMy4zLTUyLTUyIDIzLjMtNTIgNTItNTJ6TTMxMiA2MDBjLTQ4LjUgMC04OC0zOS41LTg4LTg4czM5LjUtODggODgtODggODggMzkuNSA4OCA4OC0zOS41IDg4LTg4IDg4em00NDAgMjM2Yy0yOC43IDAtNTItMjMuMy01Mi01MnMyMy4zLTUyIDUyLTUyIDUyIDIzLjMgNTIgNTItMjMuMyA1Mi01MiA1MnoiIC8+PC9zdmc+) */const re=s.forwardRef(ae),se=()=>{const e=g();return f(w.addAccount,{onSuccess:()=>{p.success("Add Account Success"),e.invalidateQueries(["accounts"])}})},ie=()=>{const e=g();return f(w.updateAccount,{onSuccess:()=>{p.success("Update Account Success"),e.invalidateQueries(["accounts"])}})},le=()=>{const e=g();return f(w.deleteAccount,{onSuccess:()=>{p.success("Delete Account Success"),e.invalidateQueries(["accounts"])}})},ce=()=>{const e=g();return f(w.refreshAccount,{onSuccess:()=>{p.success("Refresh Account Success"),e.invalidateQueries(["accounts"])}})};function de({title:e,show:t,formValue:o,onOk:n,onCancel:a}){const[r]=k.useForm(),[i,l]=s.useState(!1),{t:c}=h();s.useEffect((()=>{t&&r.setFieldsValue(o)}),[t,o,r]);return v.jsx($,{title:e,open:t,onOk:()=>{r.validateFields().then((e=>{l(!0),n(e,l)}))},onCancel:()=>{r.resetFields(),a()},okButtonProps:{loading:i},destroyOnClose:!0,children:v.jsxs(k,{initialValues:o,form:r,layout:"vertical",preserve:!1,autoComplete:"off",children:[v.jsx(k.Item,{name:"id",hidden:!0,children:v.jsx(x,{})}),v.jsx(k.Item,{name:"accountType",hidden:!0,children:v.jsx(x,{})}),v.jsx(k.Item,{label:"Email",name:"email",required:!0,children:v.jsx(x,{placeholder:"仅作标记用, 没有实际用处"})}),v.jsx(k.Item,{label:c("token.password"),name:"password",children:v.jsx(y,{placeholder:"仅作标记用, 没有实际用处"})}),v.jsx(k.Item,{label:v.jsxs(j,{children:["共享",v.jsx(S,{title:"开启后,将分享在 /share 页面,任何人都可以使用它",children:v.jsx(N,{})})]}),name:"shared",labelAlign:"left",valuePropName:"checked",getValueFromEvent:e=>e?1:0,required:!0,children:v.jsx(C,{})}),"chatgpt"===o.accountType?v.jsxs(v.Fragment,{children:[v.jsx(k.Item,{label:v.jsx("a",{href:"https://token.oaifree.com/auth",target:"_blank",rel:"noopener noreferrer",children:"Refresh Token (点击获取)"}),name:"refreshToken",children:v.jsx(x.TextArea,{})}),v.jsx(k.Item,{label:v.jsx("a",{href:"https://token.oaifree.com/auth",target:"_blank",rel:"noopener noreferrer",children:"Access Token (点击获取)"}),name:"accessToken",children:v.jsx(x.TextArea,{})})]}):v.jsx(k.Item,{label:v.jsxs(j,{children:["Session Key",v.jsx(O,{type:"link",onClick:()=>{$.info({title:"Session Key 获取方法",content:v.jsxs("ul",{children:[v.jsxs("li",{children:["1. ",v.jsx(O,{type:"link",href:"https://demo.fuclaude.com/",target:"_blank",children:"点击登录 Fuclaude "})," "]}),v.jsxs("li",{children:["2. ",v.jsx(O,{type:"link",href:"https://demo.fuclaude.com/api/auth/session",target:"_blank",children:"点击获取SessionKey"})]})]})})},children:"获取方法"})]}),name:"sessionKey",children:v.jsx(x.TextArea,{})})]})})}export{de as A,X as B,J as C,oe as E,Y as R,re as S,ie as a,le as b,ce as c,se as u}; diff --git a/frontend/dist/assets/AccountModal-c4efbab5.js b/frontend/dist/assets/AccountModal-c4efbab5.js deleted file mode 100644 index 9f718ca..0000000 --- a/frontend/dist/assets/AccountModal-c4efbab5.js +++ /dev/null @@ -1,5 +0,0 @@ -import{i as e,W as t,X as o,Y as n,Z as a,m as r,r as s,k as i,$ as l,h as c,a0 as d,a1 as u,A as m,n as b,a2 as g,a3 as f,a4 as h,u as p,j as v,M as $,I as x,a5 as y,U as j,a6 as S,a7 as C,B as O}from"./index-32c3357d.js";import{a as w}from"./accountService-983f3c33.js";import{F as k}from"./index-8d9b92bb.js";import{I as N}from"./ShareModal-d881e5fb.js";const E=new t("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),z=new t("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),I=new t("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),T=new t("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),R=new t("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),B=new t("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),F=e=>{const{fontHeight:t,lineWidth:o,marginXS:n,colorBorderBg:a}=e,s=t,i=o,l=e.colorBgContainer,c=e.colorError,d=e.colorErrorHover;return r(e,{badgeFontHeight:s,badgeShadowSize:i,badgeTextColor:l,badgeColor:c,badgeColorHover:d,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:n,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},A=e=>{const{fontSize:t,lineHeight:o,fontSizeSM:n,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*a,indicatorHeightSM:t,dotSize:n/2,textFontSize:n,textFontSizeSM:n,textFontWeight:"normal",statusSize:n/2}},M=e("Badge",(e=>(e=>{const{componentCls:t,iconCls:r,antCls:s,badgeShadowSize:i,motionDurationSlow:l,textFontSize:c,textFontSizeSM:d,statusSize:u,dotSize:m,textFontWeight:b,indicatorHeight:g,indicatorHeightSM:f,marginXS:h,calc:p}=e,v=`${s}-scroll-number`,$=o(e,((e,o)=>{let{darkColor:n}=o;return{[`&${t} ${t}-color-${e}`]:{background:n,[`&:not(${t}-count)`]:{color:n},"a:hover &":{background:n}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},n(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:g,height:g,color:e.badgeTextColor,fontWeight:b,fontSize:c,lineHeight:a(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(g).div(2).equal(),boxShadow:`0 0 0 ${a(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:d,lineHeight:a(f),borderRadius:p(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${a(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:m,minWidth:m,height:m,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${a(i)} ${e.badgeShadowColor}`},[`${t}-dot${v}`]:{transition:`background ${l}`},[`${t}-count, ${t}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${r}-spin`]:{animationName:B,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:E,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),$),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:z,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:I,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:T,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:R,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${t}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${v}`]:{overflow:"hidden",[`${v}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(F(e))),A),P=e(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:r,marginXS:s,badgeRibbonOffset:i,calc:l}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,u=o(e,((e,t)=>{let{darkColor:o}=t;return{[`&${c}-color-${e}`]:{background:o,color:o}}}));return{[`${d}`]:{position:"relative"},[`${c}`]:Object.assign(Object.assign(Object.assign(Object.assign({},n(e)),{position:"absolute",top:s,padding:`0 ${a(e.paddingXS)}`,color:e.colorPrimary,lineHeight:a(r),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-text`]:{color:e.colorTextLightSolid},[`${c}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${a(l(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),u),{[`&${c}-placement-end`]:{insetInlineEnd:l(i).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:l(i).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(F(e))),A),H=e=>{const{className:t,prefixCls:o,style:n,color:a,children:r,text:d,placement:u="end",rootClassName:m}=e,{getPrefixCls:b,direction:g}=s.useContext(i),f=b("ribbon",o),h=`${f}-wrapper`,[p,v,$]=P(f,h),x=l(a,!1),y=c(f,`${f}-placement-${u}`,{[`${f}-rtl`]:"rtl"===g,[`${f}-color-${a}`]:x},t),j={},S={};return a&&!x&&(j.background=a,S.color=a),p(s.createElement("div",{className:c(h,m,v,$)},r,s.createElement("div",{className:c(y,v),style:Object.assign(Object.assign({},j),n)},s.createElement("span",{className:`${f}-text`},d),s.createElement("div",{className:`${f}-corner`,style:S}))))};function D(e){let t,{prefixCls:o,value:n,current:a,offset:r=0}=e;return r&&(t={position:"absolute",top:`${r}00%`,left:0}),s.createElement("span",{style:t,className:c(`${o}-only-unit`,{current:a})},n)}function W(e,t,o){let n=e,a=0;for(;(n+10)%10!==t;)n+=o,a+=o;return a}function Z(e){const{prefixCls:t,count:o,value:n}=e,a=Number(n),r=Math.abs(o),[i,l]=s.useState(a),[c,d]=s.useState(r),u=()=>{l(a),d(r)};let m,b;if(s.useEffect((()=>{const e=setTimeout((()=>{u()}),1e3);return()=>{clearTimeout(e)}}),[a]),i===a||Number.isNaN(a)||Number.isNaN(i))m=[s.createElement(D,Object.assign({},e,{key:a,current:!0}))],b={transition:"none"};else{m=[];const t=a+10,o=[];for(let e=a;e<=t;e+=1)o.push(e);const n=o.findIndex((e=>e%10===i));m=o.map(((t,o)=>{const a=t%10;return s.createElement(D,Object.assign({},e,{key:t,value:a,offset:o-n,current:o===n}))}));b={transform:`translateY(${-W(i,a,c{const{prefixCls:o,count:n,className:a,motionClassName:r,style:l,title:u,show:m,component:b="sup",children:g}=e,f=V(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=s.useContext(i),p=h("scroll-number",o),v=Object.assign(Object.assign({},f),{"data-show":m,style:l,className:c(p,a,r),title:u});let $=n;if(n&&Number(n)%1==0){const e=String(n).split("");$=s.createElement("bdi",null,e.map(((t,o)=>s.createElement(Z,{prefixCls:p,count:Number(n),value:t,key:e.length-o}))))}return l&&l.borderColor&&(v.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),g?d(g,(e=>({className:c(`${p}-custom-component`,null==e?void 0:e.className,r)}))):s.createElement(b,Object.assign({},v,{ref:t}),$)}));var q=globalThis&&globalThis.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a{var o,n,a,r,m;const{prefixCls:b,scrollNumberPrefixCls:g,children:f,status:h,text:p,color:v,count:$=null,overflowCount:x=99,dot:y=!1,size:j="default",title:S,offset:C,style:O,className:w,rootClassName:k,classNames:N,styles:E,showZero:z=!1}=e,I=q(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:T,direction:R,badge:B}=s.useContext(i),F=T("badge",b),[A,P,H]=M(F),D=$>x?`${x}+`:$,W="0"===D||0===D,Z=(null!=h||null!=v)&&(null===$||W&&!z),V=y&&!W,L=V?"":D,X=s.useMemo((()=>(null==L||""===L||W&&!z)&&!V),[L,W,z,V]),K=s.useRef($);X||(K.current=$);const Q=K.current,Y=s.useRef(L);X||(Y.current=L);const U=Y.current,G=s.useRef(V);X||(G.current=V);const J=s.useMemo((()=>{if(!C)return Object.assign(Object.assign({},null==B?void 0:B.style),O);const e={marginTop:C[1]};return"rtl"===R?e.left=parseInt(C[0],10):e.right=-parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},e),null==B?void 0:B.style),O)}),[R,C,O,null==B?void 0:B.style]),ee=null!=S?S:"string"==typeof Q||"number"==typeof Q?Q:void 0,te=X||!p?null:s.createElement("span",{className:`${F}-status-text`},p),oe=Q&&"object"==typeof Q?d(Q,(e=>({style:Object.assign(Object.assign({},J),e.style)}))):void 0,ne=l(v,!1),ae=c(null==N?void 0:N.indicator,null===(o=null==B?void 0:B.classNames)||void 0===o?void 0:o.indicator,{[`${F}-status-dot`]:Z,[`${F}-status-${h}`]:!!h,[`${F}-color-${v}`]:ne}),re={};v&&!ne&&(re.color=v,re.background=v);const se=c(F,{[`${F}-status`]:Z,[`${F}-not-a-wrapper`]:!f,[`${F}-rtl`]:"rtl"===R},w,k,null==B?void 0:B.className,null===(n=null==B?void 0:B.classNames)||void 0===n?void 0:n.root,null==N?void 0:N.root,P,H);if(!f&&Z){const e=J.color;return A(s.createElement("span",Object.assign({},I,{className:se,style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.root),null===(a=null==B?void 0:B.styles)||void 0===a?void 0:a.root),J)}),s.createElement("span",{className:ae,style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.indicator),null===(r=null==B?void 0:B.styles)||void 0===r?void 0:r.indicator),re)}),p&&s.createElement("span",{style:{color:e},className:`${F}-status-text`},p)))}return A(s.createElement("span",Object.assign({ref:t},I,{className:se,style:Object.assign(Object.assign({},null===(m=null==B?void 0:B.styles)||void 0===m?void 0:m.root),null==E?void 0:E.root)}),f,s.createElement(u,{visible:!X,motionName:`${F}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t,ref:o}=e;var n,a;const r=T("scroll-number",g),i=G.current,l=c(null==N?void 0:N.indicator,null===(n=null==B?void 0:B.classNames)||void 0===n?void 0:n.indicator,{[`${F}-dot`]:i,[`${F}-count`]:!i,[`${F}-count-sm`]:"small"===j,[`${F}-multiple-words`]:!i&&U&&U.toString().length>1,[`${F}-status-${h}`]:!!h,[`${F}-color-${v}`]:ne});let d=Object.assign(Object.assign(Object.assign({},null==E?void 0:E.indicator),null===(a=null==B?void 0:B.styles)||void 0===a?void 0:a.indicator),J);return v&&!ne&&(d=d||{},d.background=v),s.createElement(_,{prefixCls:r,show:!X,motionClassName:t,className:l,count:U,title:ee,style:d,key:"scrollNumber",ref:o},oe)})),te))}));L.Ribbon=H;const X=L;const K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var Q=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:K}))}; -/**![reload](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOS4xIDIwOS4zbC01Ni40IDQ0LjFDNzc1LjggMTU1LjEgNjU2LjIgOTIgNTIxLjkgOTIgMjkwIDkyIDEwMi4zIDI3OS41IDEwMiA1MTEuNSAxMDEuNyA3NDMuNyAyODkuOCA5MzIgNTIxLjkgOTMyYzE4MS4zIDAgMzM1LjgtMTE1IDM5NC42LTI3Ni4xIDEuNS00LjItLjctOC45LTQuOS0xMC4zbC01Ni43LTE5LjVhOCA4IDAgMDAtMTAuMSA0LjhjLTEuOCA1LTMuOCAxMC01LjkgMTQuOS0xNy4zIDQxLTQyLjEgNzcuOC03My43IDEwOS40QTM0NC43NyAzNDQuNzcgMCAwMTY1NS45IDgyOWMtNDIuMyAxNy45LTg3LjQgMjctMTMzLjggMjctNDYuNSAwLTkxLjUtOS4xLTEzMy44LTI3QTM0MS41IDM0MS41IDAgMDEyNzkgNzU1LjJhMzQyLjE2IDM0Mi4xNiAwIDAxLTczLjctMTA5LjRjLTE3LjktNDIuNC0yNy04Ny40LTI3LTEzMy45czkuMS05MS41IDI3LTEzMy45YzE3LjMtNDEgNDIuMS03Ny44IDczLjctMTA5LjQgMzEuNi0zMS42IDY4LjQtNTYuNCAxMDkuMy03My44IDQyLjMtMTcuOSA4Ny40LTI3IDEzMy44LTI3IDQ2LjUgMCA5MS41IDkuMSAxMzMuOCAyN2EzNDEuNSAzNDEuNSAwIDAxMTA5LjMgNzMuOGM5LjkgOS45IDE5LjIgMjAuNCAyNy44IDMxLjRsLTYwLjIgNDdhOCA4IDAgMDAzIDE0LjFsMTc1LjYgNDNjNSAxLjIgOS45LTIuNiA5LjktNy43bC44LTE4MC45Yy0uMS02LjYtNy44LTEwLjMtMTMtNi4yeiIgLz48L3N2Zz4=) */const Y=s.forwardRef(Q);const U={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:t}},{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",fill:e}}]}},name:"check-circle",theme:"twotone"};var G=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:U}))}; -/**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIGZpbGw9IiMxNjc3ZmYiIC8+PHBhdGggZD0iTTUxMiAxNDBjLTIwNS40IDAtMzcyIDE2Ni42LTM3MiAzNzJzMTY2LjYgMzcyIDM3MiAzNzIgMzcyLTE2Ni42IDM3Mi0zNzItMTY2LjYtMzcyLTM3Mi0zNzJ6bTE5My40IDIyNS43bC0yMTAuNiAyOTJhMzEuOCAzMS44IDAgMDEtNTEuNyAwTDMxOC41IDQ4NC45Yy0zLjgtNS4zIDAtMTIuNyA2LjUtMTIuN2g0Ni45YzEwLjMgMCAxOS45IDUgMjUuOSAxMy4zbDcxLjIgOTguOCAxNTcuMi0yMThjNi04LjQgMTUuNy0xMy4zIDI1LjktMTMuM0g2OTljNi41IDAgMTAuMyA3LjQgNi40IDEyLjd6IiBmaWxsPSIjZTZmNGZmIiAvPjxwYXRoIGQ9Ik02OTkgMzUzaC00Ni45Yy0xMC4yIDAtMTkuOSA0LjktMjUuOSAxMy4zTDQ2OSA1ODQuM2wtNzEuMi05OC44Yy02LTguMy0xNS42LTEzLjMtMjUuOS0xMy4zSDMyNWMtNi41IDAtMTAuMyA3LjQtNi41IDEyLjdsMTI0LjYgMTcyLjhhMzEuOCAzMS44IDAgMDA1MS43IDBsMjEwLjYtMjkyYzMuOS01LjMuMS0xMi43LTYuNC0xMi43eiIgZmlsbD0iIzE2NzdmZiIgLz48L3N2Zz4=) */const J=s.forwardRef(G);const ee={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:t}},{tag:"path",attrs:{d:"M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}}]}},name:"exclamation-circle",theme:"twotone"};var te=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:ee}))}; -/**![exclamation-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIGZpbGw9IiMxNjc3ZmYiIC8+PHBhdGggZD0iTTUxMiAxNDBjLTIwNS40IDAtMzcyIDE2Ni42LTM3MiAzNzJzMTY2LjYgMzcyIDM3MiAzNzIgMzcyLTE2Ni42IDM3Mi0zNzItMTY2LjYtMzcyLTM3Mi0zNzJ6bS0zMiAxNTZjMC00LjQgMy42LTggOC04aDQ4YzQuNCAwIDggMy42IDggOHYyNzJjMCA0LjQtMy42IDgtOCA4aC00OGMtNC40IDAtOC0zLjYtOC04VjI5NnptMzIgNDQwYTQ4LjAxIDQ4LjAxIDAgMDEwLTk2IDQ4LjAxIDQ4LjAxIDAgMDEwIDk2eiIgZmlsbD0iI2U2ZjRmZiIgLz48cGF0aCBkPSJNNDg4IDU3Nmg0OGM0LjQgMCA4LTMuNiA4LThWMjk2YzAtNC40LTMuNi04LTgtOGgtNDhjLTQuNCAwLTggMy42LTggOHYyNzJjMCA0LjQgMy42IDggOCA4em0tMjQgMTEyYTQ4IDQ4IDAgMTA5NiAwIDQ4IDQ4IDAgMTAtOTYgMHoiIGZpbGw9IiMxNjc3ZmYiIC8+PC9zdmc+) */const oe=s.forwardRef(te);const ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"};var ae=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:ne}))}; -/**![share-alt](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc1MiA2NjRjLTI4LjUgMC01NC44IDEwLTc1LjQgMjYuN0w0NjkuNCA1NDAuOGExNjAuNjggMTYwLjY4IDAgMDAwLTU3LjZsMjA3LjItMTQ5LjlDNjk3LjIgMzUwIDcyMy41IDM2MCA3NTIgMzYwYzY2LjIgMCAxMjAtNTMuOCAxMjAtMTIwcy01My44LTEyMC0xMjAtMTIwLTEyMCA1My44LTEyMCAxMjBjMCAxMS42IDEuNiAyMi43IDQuNyAzMy4zTDQzOS45IDQxNS44QzQxMC43IDM3Ny4xIDM2NC4zIDM1MiAzMTIgMzUyYy04OC40IDAtMTYwIDcxLjYtMTYwIDE2MHM3MS42IDE2MCAxNjAgMTYwYzUyLjMgMCA5OC43LTI1LjEgMTI3LjktNjMuOGwxOTYuOCAxNDIuNWMtMy4xIDEwLjYtNC43IDIxLjgtNC43IDMzLjMgMCA2Ni4yIDUzLjggMTIwIDEyMCAxMjBzMTIwLTUzLjggMTIwLTEyMC01My44LTEyMC0xMjAtMTIwem0wLTQ3NmMyOC43IDAgNTIgMjMuMyA1MiA1MnMtMjMuMyA1Mi01MiA1Mi01Mi0yMy4zLTUyLTUyIDIzLjMtNTIgNTItNTJ6TTMxMiA2MDBjLTQ4LjUgMC04OC0zOS41LTg4LTg4czM5LjUtODggODgtODggODggMzkuNSA4OCA4OC0zOS41IDg4LTg4IDg4em00NDAgMjM2Yy0yOC43IDAtNTItMjMuMy01Mi01MnMyMy4zLTUyIDUyLTUyIDUyIDIzLjMgNTIgNTItMjMuMyA1Mi01MiA1MnoiIC8+PC9zdmc+) */const re=s.forwardRef(ae),se=()=>{const e=g();return f(w.addAccount,{onSuccess:()=>{h.success("Add Account Success"),e.invalidateQueries(["accounts"])}})},ie=()=>{const e=g();return f(w.updateAccount,{onSuccess:()=>{h.success("Update Account Success"),e.invalidateQueries(["accounts"])}})},le=()=>{const e=g();return f(w.deleteAccount,{onSuccess:()=>{h.success("Delete Account Success"),e.invalidateQueries(["accounts"])}})},ce=()=>{const e=g();return f(w.refreshAccount,{onSuccess:()=>{h.success("Refresh Account Success"),e.invalidateQueries(["accounts"])}})};function de({title:e,show:t,formValue:o,onOk:n,onCancel:a}){const[r]=k.useForm(),[i,l]=s.useState(!1),{t:c}=p();s.useEffect((()=>{t&&r.setFieldsValue(o)}),[t,o,r]);return v.jsx($,{title:e,open:t,onOk:()=>{r.validateFields().then((e=>{l(!0),n(e,l)}))},onCancel:()=>{r.resetFields(),a()},okButtonProps:{loading:i},destroyOnClose:!0,children:v.jsxs(k,{initialValues:o,form:r,layout:"vertical",preserve:!1,autoComplete:"off",children:[v.jsx(k.Item,{name:"id",hidden:!0,children:v.jsx(x,{})}),v.jsx(k.Item,{name:"accountType",hidden:!0,children:v.jsx(x,{})}),v.jsx(k.Item,{label:"Email",name:"email",required:!0,children:v.jsx(x,{placeholder:"仅作标记用, 没有实际用处"})}),v.jsx(k.Item,{label:c("token.password"),name:"password",children:v.jsx(y,{placeholder:"仅作标记用, 没有实际用处"})}),v.jsx(k.Item,{label:v.jsxs(j,{children:["共享",v.jsx(S,{title:"开启后,将分享在 /share 页面,任何人都可以使用它",children:v.jsx(N,{})})]}),name:"shared",labelAlign:"left",valuePropName:"checked",getValueFromEvent:e=>e?1:0,required:!0,children:v.jsx(C,{})}),"chatgpt"===o.accountType?v.jsxs(v.Fragment,{children:[v.jsx(k.Item,{label:v.jsx("a",{href:"https://token.oaifree.com/auth",target:"_blank",rel:"noopener noreferrer",children:"Refresh Token (点击获取)"}),name:"refreshToken",children:v.jsx(x.TextArea,{})}),v.jsx(k.Item,{label:v.jsx("a",{href:"https://token.oaifree.com/auth",target:"_blank",rel:"noopener noreferrer",children:"Access Token (点击获取)"}),name:"accessToken",children:v.jsx(x.TextArea,{})})]}):v.jsx(k.Item,{label:v.jsxs(j,{children:["Session Key",v.jsx(O,{type:"link",onClick:()=>{$.info({title:"Session Key 获取方法",content:v.jsxs("ul",{children:[v.jsxs("li",{children:["1. ",v.jsx(O,{type:"link",href:"https://demo.fuclaude.com/",target:"_blank",children:"点击登录 Fuclaude "})," "]}),v.jsxs("li",{children:["2. ",v.jsx(O,{type:"link",href:"https://demo.fuclaude.com/api/auth/session",target:"_blank",children:"点击获取SessionKey"})]})]})})},children:"获取方法"})]}),name:"sessionKey",children:v.jsx(x.TextArea,{})})]})})}export{de as A,X as B,J as C,oe as E,Y as R,re as S,ie as a,le as b,ce as c,se as u}; diff --git a/frontend/dist/assets/Login-881441d0.js b/frontend/dist/assets/Login-881441d0.js new file mode 100644 index 0000000..e24afbd --- /dev/null +++ b/frontend/dist/assets/Login-881441d0.js @@ -0,0 +1 @@ +import{_ as e,a as t,r as n,u as r,b as i,c as s,j as a,I as o,B as c,d as u,e as d,g as l,S as p,N as h,C as _,L as f,f as m}from"./index-24044c4a.js";import{F as g}from"./index-4dcab9f7.js";import{L as y}from"./index-cb661052.js";import{T as v}from"./index-af2c6676.js";import"./row-2dc4d0fe.js";var E=Object.defineProperty,S=Object.defineProperties,T=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,w=(e,t,n)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))x.call(t,n)&&w(e,n,t[n]);if(b)for(var n of b(t))R.call(t,n)&&w(e,n,t[n]);return e},N=(e,t)=>S(e,T(t)),k=(e,t)=>{var n={};for(var r in e)x.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&R.call(e,r)&&(n[r]=e[r]);return n},C=(e,t)=>{for(var n in t)E(e,n,{get:t[n],enumerable:!0})},B=(e,t,n)=>new Promise(((r,i)=>{var s=e=>{try{o(n.next(e))}catch(t){i(t)}},a=e=>{try{o(n.throw(e))}catch(t){i(t)}},o=e=>e.done?r(e.value):Promise.resolve(e.value).then(s,a);o((n=n.apply(e,t)).next())}));function U(e){let t=e&&e.ownerDocument||document;return{document:t,window:t.defaultView||t.parentWindow||window}}function I(e){return e||document.head}var O="hCaptcha-script",Y="hCaptchaOnLoad",G="script-error",$="@hCaptcha/loader",j=Object.prototype.toString;function P(e){switch(j.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return J(e,Error)}}function L(e,t){return j.call(e)===`[object ${t}]`}function A(e){return L(e,"ErrorEvent")}function M(e){return L(e,"DOMError")}function H(e){return L(e,"String")}function q(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function F(e){return L(e,"Object")}function z(e){return"undefined"!=typeof Event&&J(e,Event)}function W(e){return!(!e||!e.then||"function"!=typeof e.then)}function V(e){return"number"==typeof e&&e!=e}function J(e,t){try{return e instanceof t}catch(n){return!1}}function X(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function K(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Q(e,t){if(!Array.isArray(e))return"";let n=[];for(let i=0;iZ(e,t,n)))}function te(e,t,n=250,r,i,s,a){if(!(s.exception&&s.exception.values&&a&&J(a.originalException,Error)))return;let o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=function(e,t){return e.map((e=>(e.value&&(e.value=K(e.value,t)),e)))}(ne(e,t,i,a.originalException,r,s.exception.values,o,0),n))}function ne(e,t,n,r,i,s,a,o){if(s.length>=n+1)return s;let c=[...s];if(J(r[i],Error)){re(a,o);let s=e(t,r[i]),u=c.length;ie(s,i,u,o),c=ne(e,t,n,r[i],i,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(J(r,Error)){re(a,o);let u=e(t,r),d=c.length;ie(u,`errors[${s}]`,d,o),c=ne(e,t,n,r,i,[u,...c],u,d)}})),c}function re(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=N(D({},e.mechanism),{is_exception_group:!0,exception_id:t})}function ie(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=N(D({},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}function se(e){return e&&e.Math==Math?e:void 0}var ae="object"==typeof globalThis&&se(globalThis)||"object"==typeof window&&se(window)||"object"==typeof self&&se(self)||"object"==typeof global&&se(global)||function(){return this}()||{};function oe(){return ae}function ce(e,t,n){let r=n||ae,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}var ue=oe(),de=80;function le(e,t={}){try{let n,r=e,i=5,s=[],a=0,o=0,c=" > ",u=c.length,d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||de;for(;r&&a++1&&o+s.length*u+n.length>=l));)s.push(n),o+=n.length,r=r.parentNode;return s.reverse().join(c)}catch(n){return""}}function pe(e,t){let n,r,i,s,a,o=e,c=[];if(!o||!o.tagName)return"";c.push(o.tagName.toLowerCase());let u=t&&t.length?t.filter((e=>o.getAttribute(e))).map((e=>[e,o.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{c.push(`[${e[0]}="${e[1]}"]`)}));else if(o.id&&c.push(`#${o.id}`),n=o.className,n&&H(n))for(r=n.split(/\s+/),a=0;a{let r=_e[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}var me=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?he.forEach((n=>{t[n]=(...t)=>{e&&fe((()=>{ae.console[n](`Sentry Logger [${n}]:`,...t)}))}})):he.forEach((e=>{t[e]=()=>{}})),t}(),ge=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ye(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function ve(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ee(e){let t="string"==typeof e?function(e){let t=ge.exec(e);if(!t)return;let[n,r,i="",s,a="",o]=t.slice(1),c="",u=o,d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return ve({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}(e):ve(e);if(t&&function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;let{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(me.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(me.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(me.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(me.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}var Se=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function Te(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&xe(i,r),e[t]=i}function be(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function xe(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,be(e,"__sentry_original__",t)}catch(n){}}function Re(e){return e.__sentry_original__}function we(e){if(P(e))return D({message:e.message,name:e.name,stack:e.stack},Ne(e));if(z(e)){let t=D({type:e.type,target:De(e.target),currentTarget:De(e.currentTarget)},Ne(e));return"undefined"!=typeof CustomEvent&&J(e,CustomEvent)&&(t.detail=e.detail),t}return e}function De(e){try{return function(e){return"undefined"!=typeof Element&&J(e,Element)}(e)?le(e):Object.prototype.toString.call(e)}catch(t){return""}}function Ne(e){if("object"==typeof e&&null!==e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function ke(e){return Ce(e,new Map)}function Ce(e,t){if(F(e)){let n=t.get(e);if(void 0!==n)return n;let r={};t.set(e,r);for(let i of Object.keys(e))void 0!==e[i]&&(r[i]=Ce(e[i],t));return r}if(Array.isArray(e)){let n=t.get(e);if(void 0!==n)return n;let r=[];return t.set(e,r),e.forEach((e=>{r.push(Ce(e,t))})),r}return e}var Be=50,Ue=/\(error: (.*)\)/,Ie=/captureMessage|captureException/;var Oe="";function Ye(e){try{return e&&"function"==typeof e&&e.name||Oe}catch(t){return Oe}}var Ge=oe();function $e(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function je(){if(!function(){if(!("fetch"in Ge))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if($e(Ge.fetch))return!0;let e=!1,t=Ge.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=$e(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}var Pe=oe();var Le,Ae=oe(),Me="__sentry_xhr_v2__",He={},qe={};function Fe(e){if(!qe[e])switch(qe[e]=!0,e){case"console":"console"in ae&&he.forEach((function(e){e in ae.console&&Te(ae.console,e,(function(t){return _e[e]=t,function(...t){We("console",{args:t,level:e});let n=_e[e];n&&n.apply(ae.console,t)}}))}));break;case"dom":!function(){if(!Ae.document)return;let e=We.bind(null,"dom"),t=Ze(e,!0);Ae.document.addEventListener("click",t,!1),Ae.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{let n=Ae[t]&&Ae[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Te(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=s[n]=s[n]||{refCount:0};if(!a.handler){let r=Ze(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(s){}return t.call(this,n,r,i)}})),Te(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this,i=n.__sentry_instrumentation_handlers__||{},s=i[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(i){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!Ae.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;Te(e,"open",(function(e){return function(...t){let n=t[1],r=this[Me]={method:H(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};H(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let e=this[Me];if(e&&4===this.readyState){try{e.status_code=this.status}catch(n){}We("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Te(this,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(this,t)}})):this.addEventListener("readystatechange",i),Te(this,"setRequestHeader",(function(e){return function(...t){let[n,r]=t,i=this[Me];return i&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),Te(e,"send",(function(e){return function(...t){let n=this[Me];return n&&void 0!==t[0]&&(n.body=t[0]),We("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":je()&&Te(ae,"fetch",(function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:Je(t),method:Ve(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:Je(t),method:Ve(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return We("fetch",D({},i)),e.apply(ae,t).then((e=>(We("fetch",N(D({},i),{endTimestamp:Date.now(),response:e})),e)),(e=>{throw We("fetch",N(D({},i),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(!function(){let e=Pe.chrome,t=e&&e.app&&e.app.runtime,n="history"in Pe&&!!Pe.history.pushState&&!!Pe.history.replaceState;return!t&&n}())return;let e=Ae.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=Le,t=String(n);Le=t,We("history",{from:e,to:t})}return e.apply(this,t)}}Ae.onpopstate=function(...t){let n=Ae.location.href,r=Le;if(Le=n,We("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(i){}},Te(Ae.history,"pushState",t),Te(Ae.history,"replaceState",t)}();break;case"error":et=Ae.onerror,Ae.onerror=function(e,t,n,r,i){return We("error",{column:r,error:i,line:n,msg:e,url:t}),!(!et||et.__SENTRY_LOADER__)&&et.apply(this,arguments)},Ae.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":nt=Ae.onunhandledrejection,Ae.onunhandledrejection=function(e){return We("unhandledrejection",e),!(nt&&!nt.__SENTRY_LOADER__)||nt.apply(this,arguments)},Ae.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("unknown instrumentation type:",e))}}function ze(e,t){He[e]=He[e]||[],He[e].push(t),Fe(e)}function We(e,t){if(e&&He[e])for(let r of He[e]||[])try{r(t)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Ye(r)}\nError:`,n)}}function Ve(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Je(e){return"string"==typeof e?e:e?Ve(e,"url")?e.url:e.toString?e.toString():"":""}var Xe,Ke,Qe=1e3;function Ze(e,t=!1){return n=>{if(!n||Ke===n||function(e){if("keypress"!==e.type)return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(t){}return!0}(n))return;let r="keypress"===n.type?"input":n.type;(void 0===Xe||function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(n){}return!1}(Ke,n))&&(e({event:n,name:r,global:t}),Ke=n),clearTimeout(Xe),Xe=Ae.setTimeout((()=>{Xe=void 0}),Qe)}}var et=null;var tt,nt=null;function rt(){let e=ae,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function it(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function st(e){let{message:t,event_id:n}=e;if(t)return t;let r=it(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function at(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function ot(e,t){let n=it(e);if(!n)return;let r=n.mechanism;if(n.mechanism=D(D(D({},{type:"generic",handled:!0}),r),t),t&&"data"in t){let e=D(D({},r&&r.data),t.data);n.mechanism.data=e}}function ct(e){if(e&&e.__sentry_captured__)return!0;try{be(e,"__sentry_captured__",!0)}catch(t){}return!1}function ut(e,t=100,n=1/0){try{return lt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function dt(e,t=3,n=102400){let r=ut(e,t);return function(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}(r)>n?dt(e,t-1,n):r}function lt(e,t,n=1/0,r=1/0,i=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=r){d[_]="[MaxProperties ~]";break}let e=p[_];d[_]=lt(_,e,c-1,r,i),l++}return a(t),d}function pt(e){return new _t((t=>{t(e)}))}function ht(e){return new _t(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(tt||(tt={}));var _t=class{constructor(e){_t.prototype.__init.call(this),_t.prototype.__init2.call(this),_t.prototype.__init3.call(this),_t.prototype.__init4.call(this),this._state=tt.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new _t(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new _t(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(tt.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(tt.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===tt.PENDING){if(W(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===tt.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===tt.RESOLVED&&e[1](this._value),this._state===tt.REJECTED&&e[2](this._value),e[0]=!0)}))}}};function ft(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new _t(((n,r)=>{let i=t.length;if(!i)return n(!0);let s=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{pt(e).then((()=>{--i||(clearTimeout(s),n(!0))}),r)}))}))}}}function mt(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var gt=["fatal","error","warning","log","info","debug"];function yt(e){return"warn"===e?"warning":gt.includes(e)?e:"log"}var vt=oe(),Et={nowSeconds:()=>Date.now()/1e3};var St="undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__||"[object process]"!==Object.prototype.toString.call("undefined"!=typeof process?process:0)?function(){let{performance:e}=vt;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}():function(){try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(e){return}var e,t}(),Tt=void 0===St?Et:{nowSeconds:()=>(St.timeOrigin+St.now())/1e3},bt=Et.nowSeconds.bind(Et),xt=Tt.nowSeconds.bind(Tt),Rt=(()=>{let{performance:e}=vt;if(!e||!e.now)return;let t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?i:`${e},${i}`;return s.length>kt?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${Dt}${t}`]=n),e)),{}))}function Bt(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}var Ut=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function It(e,t){let n=function(e){if(!e)return;let t,n=e.match(Ut);return n?("1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}):void 0}(e),r=function(e){if(!H(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{let n=Bt(t);return D(D({},e),n)}),{});else{if(!e)return;t=Bt(e)}let n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Nt)&&(e[t.slice(Dt.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:i,parentSpanId:s,parentSampled:a}=n||{},o={traceId:i||rt(),spanId:rt().substring(16),sampled:a};return s&&(o.parentSpanId=s),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}function Ot(e=rt(),t=rt().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Yt(e,t=[]){return[e,t]}function Gt(e,t){let[n,r]=e;return[n,[...r,t]]}function $t(e,t){let n=e[1];for(let r of n){if(t(r,r[0].type))return!0}return!1}function jt(e,t){return(t||new TextEncoder).encode(e)}function Pt(e,t){let[n,r]=e,i=JSON.stringify(n);function s(e){"string"==typeof i?i="string"==typeof e?i+e:[jt(i,t),e]:i.push("string"==typeof e?jt(e,t):e)}for(let o of r){let[e,t]=o;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)s(t);else{let e;try{e=JSON.stringify(t)}catch(a){e=JSON.stringify(ut(t))}s(e)}}return"string"==typeof i?i:function(e){let t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}(i)}function Lt(e,t){let n="string"==typeof e.data?jt(e.data,t):e.data;return[ke({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var At={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function Mt(e){return At[e]}function Ht(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function qt(e,{statusCode:t,headers:n},r=Date.now()){let i=D({},e),s=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(s)for(let o of s.trim().split(",")){let[e,t]=o.split(":",2),n=parseInt(e,10),s=1e3*(isNaN(n)?60:n);if(t)for(let a of t.split(";"))i[a]=r+s;else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}var Ft="production";function zt(){return ce("globalEventProcessors",(()=>[]))}function Wt(e){zt().push(e)}function Vt(e,t,n,r=0){return new _t(((i,s)=>{let a=e[r];if(null===t||"function"!=typeof a)i(t);else{let o=a(D({},t),n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===o&&me.log(`Event processor "${a.id}" dropped event`),W(o)?o.then((t=>Vt(e,t,n,r+1).then(i))).then(null,s):Vt(e,o,n,r+1).then(i).then(null,s)}}))}function Jt(e){let t=xt(),n={sid:rt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ke({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Xt(n,e),n}function Xt(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||xt(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:rt()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}var Kt=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Qt()}static clone(e){let t=new Kt;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags=D({},e._tags),t._extra=D({},e._extra),t._contexts=D({},e._contexts),t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata=D({},e._sdkProcessingMetadata),t._propagationContext=D({},e._propagationContext)),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Xt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=D(D({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=N(D({},this._tags),{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=D(D({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=N(D({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){let t=e(this);return t instanceof Kt?t:this}return e instanceof Kt?(this._tags=D(D({},this._tags),e._tags),this._extra=D(D({},this._extra),e._extra),this._contexts=D(D({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):F(e)&&(this._tags=D(D({},this._tags),e.tags),this._extra=D(D({},this._extra),e.extra),this._contexts=D(D({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Qt(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r=D({timestamp:bt()},e),i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra=D(D({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=D(D({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=D(D({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=D(D({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=D({trace:this._span.getTraceContext()},e.contexts);let t=this._span.transaction;if(t){e.sdkProcessingMetadata=D({dynamicSamplingContext:t.getDynamicSamplingContext()},e.sdkProcessingMetadata);let n=t.name;n&&(e.tags=D({transaction:n},e.tags))}}this._applyFingerprint(e);let r=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...r];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata=N(D(D({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),Vt([...n||[],...zt(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=D(D({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){var t;e.fingerprint=e.fingerprint?(t=e.fingerprint,Array.isArray(t)?t:[t]):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}};function Qt(){return{traceId:rt(),spanId:rt().substring(16)}}var Zt=4,en=100,tn=class{constructor(e,t=new Kt,n=Zt){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{i.captureException(e,N(D({originalException:e,syntheticException:r},t),{event_id:n}),s)})),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:rt(),i=new Error(e);return this._withClient(((s,a)=>{s.captureMessage(e,t,N(D({originalException:e,syntheticException:i},n),{event_id:r}),a)})),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:rt();return e.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,N(D({},t),{event_id:n}),i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=en}=r.getOptions&&r.getOptions()||{};if(s<=0)return;let a=bt(),o=D({timestamp:a},e),c=i?fe((()=>i(o,t))):o;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=rn(this);try{e(this)}finally{rn(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){this.getClient()}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Xt(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=Ft}=n&&n.getOptions()||{},{userAgent:s}=ae.navigator||{},a=Jt(D(D({release:r,environment:i,user:t.getUser()},s&&{userAgent:s}),e)),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&Xt(o,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!(!t||!t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){let n=nn().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function nn(){return ae.__SENTRY__=ae.__SENTRY__||{extensions:{},hub:void 0},ae}function rn(e){let t=nn(),n=an(t);return on(t,e),n}function sn(){let e=nn();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=nn()){return(!function(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}(e)||an(e).isOlderThan(Zt))&&on(e,new tn),an(e)}(e)}function an(e){return ce("hub",(()=>new tn),e)}function on(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function cn(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=sn().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function un(e){return(e||sn()).getScope().getTransaction()}var dn=!1;function ln(){let e=un();if(e){let t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}ln.tag="sentry_tracingErrorCallback";var pn=class{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}},hn=class{constructor(e={}){this.traceId=e.traceId||rt(),this.spanId=e.spanId||rt().substring(16),this.startTimestamp=e.startTimestamp||xt(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){let t=new hn(N(D({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){let n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},me.log(n)}return t}setTag(e,t){return this.tags=N(D({},this.tags),{[e]:t}),this}setData(e,t){return this.data=N(D({},this.data),{[e]:t}),this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);let t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&me.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:xt()}toTraceparent(){return Ot(this.traceId,this.spanId,this.sampled)}toContext(){return ke({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return ke({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return ke({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}};function _n(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},a=ke({environment:r.environment||Ft,release:r.release,user_segment:s,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}var fn=class extends hn{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||sn(),this._name=e.name||"",this.metadata=N(D({source:"custom"},e.metadata),{spanMetadata:{}}),this._trimEnd=e.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext=D({},n))}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new pn(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata=D(D({},this.metadata),e)}finish(e){let t=this._finishTransaction(e);if(t)return this._hub.captureEvent(t)}toContext(){let e=super.toContext();return ke(N(D({},e),{name:this.name,trimEnd:this._trimEnd}))}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let e=this._hub||sn(),t=e.getClient();if(!t)return{};let n=e.getScope(),r=_n(this.traceId,t,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);let s=this.metadata.source;return s&&"url"!==s&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));let n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);let r=this.metadata,i=D({contexts:N(D({},this._contexts),{trace:this.getTraceContext()}),spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:N(D({},r),{dynamicSamplingContext:this.getDynamicSamplingContext()})},r.source&&{transaction_info:{source:r.source}});return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}},mn={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},gn=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],yn=class extends pn{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:xt(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}},vn=class extends fn{constructor(e,t,n=mn.idleTimeout,r=mn.finalTimeout,i=mn.heartbeatInterval,s=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=gn[4],s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=gn[3],this.finish())}),this._finalTimeout)}finish(e=xt()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(let t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let n=t.startTimestamp{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new yn(t,n,this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=gn[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{!this._finished&&0===Object.keys(this.activities).length&&(this._finishReason=gn[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let e=xt();this._idleTimeoutCanceledPermanently?(this._finishReason=gn[5],this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=gn[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}};function En(){let e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function Sn(e,t,n){if(!cn(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})):(r=1,e.setMetadata({sampleRate:r})),function(e){return V(e)||"number"!=typeof e&&"boolean"!=typeof e?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0||e>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}(r)?r?(e.sampled=Math.random()`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}(D({sentry_key:e.publicKey,sentry_version:Rn},t&&{sentry_client:`${t.name}/${t.version}`}))}function Dn(e,t,n,r){let i=Ht(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);let a=function(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return D(D(D({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:ye(r)}),i&&{trace:ke(D({},i))})}(e,i,r,t);return delete e.sdkProcessingMetadata,Yt(a,[[{type:s},e]])}var Nn=[];function kn(e,t,n){if(n[t.name]=t,-1===Nn.indexOf(t.name)&&(t.setupOnce(Wt,sn),Nn.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Integration installed: ${t.name}`)}function Cn(e,t,n,r,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,o=N(D({},t),{event_id:t.event_id||n.event_id||rt(),timestamp:t.timestamp||bt()}),c=n.integrations||e.integrations.map((e=>e.name));(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:Ft),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=K(e.message,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=K(a.value,s));let o=e.request;o&&o.url&&(o.url=K(o.url,s))})(o,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(o,c),void 0===t.type&&function(e,t){let n=ae._sentryDebugIds;if(!n)return;let r,i=Bn.get(t);i?r=i:(r=new Map,Bn.set(t,r));let s=Object.keys(n).reduce(((e,i)=>{let s,a=r.get(i);a?s=a:(s=t(i),r.set(i,s));for(let t=s.length-1;t>=0;t--){let r=s[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=s[e.filename])}))}))}catch(a){}}(o,e.stackParser);let u=r;n.captureContext&&(u=Kt.clone(u).update(n.captureContext));let d=pt(o),l=i&&i.getEventProcessors?i.getEventProcessors():[];if(u){if(u.getAttachments){let e=[...n.attachments||[],...u.getAttachments()];e.length&&(n.attachments=e)}d=u.applyToEvent(o,n,l)}else d=Vt([...l,...zt()],o,n);return d.then((e=>(e&&function(e){let t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;let r=D(D(D(D(D({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>D(D({},e),e.data&&{data:ut(e.data,t,n)})))}),e.user&&{user:ut(e.user,t,n)}),e.contexts&&{contexts:ut(e.contexts,t,n)}),e.extra&&{extra:ut(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ut(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=ut(e.data,t,n)),e)))),r}(e,s,a):e)))}var Bn=new WeakMap;var Un="Not capturing exception because it's already been captured.",In=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Ee(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t={}){let n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${wn(e,r)}`}(this._dsn,e);this._transport=e.transport(N(D({recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}}captureException(e,t,n){if(ct(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(Un));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id,s=q(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(s.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&ct(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(Un));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Xt(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):pt(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=function(e,t){let n={};return t.forEach((t=>{t&&kn(e,t,n)})),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){kn(this,e,this._integrations)}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=Dn(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of t.attachments||[])n=Gt(n,Lt(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){let t=function(e,t,n,r){let i=Ht(n);return Yt(D(D({sent_at:(new Date).toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:ye(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let e of i){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}let s="ok"===e.status;(s&&0===e.errors||s&&n)&&(Xt(e,N(D({},n&&{status:"crashed"}),{errors:e.errors||Number(r||n)})),this.captureSession(e))}_isClientDoneProcessing(e){return new _t((t=>{let n=0,r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n){let r=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),Cn(r,e,t,n,this).then((e=>{if(null===e)return e;let{propagationContext:t}=e.sdkProcessingMetadata||{};if((!e.contexts||!e.contexts.trace)&&t){let{traceId:r,spanId:i,parentSpanId:s,dsc:a}=t;e.contexts=D({trace:{trace_id:r,span_id:i,parent_span_id:s}},e.contexts);let o=a||_n(r,this,n);e.sdkProcessingMetadata=D({dynamicSamplingContext:o},e.sdkProcessingMetadata)}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){let t=e;"log"===t.logLevel?me.log(t.message):me.warn(t)}}))}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,s=Yn(e),a=On(e),o=e.type||"error",c=`before send for type \`${o}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),ht(new Se(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let u="replay_event"===o?"replay":o;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new Se("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;let i=function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return On(t)&&r?r(t,n):Yn(t)&&i?i(t,n):t}(r,n,t);return function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(W(e))return e.then((e=>{if(!F(e)&&null!==e)throw new Se(n);return e}),(e=>{throw new Se(`${t} rejected with ${e}`)}));if(!F(e)&&null!==e)throw new Se(n);return e}(i,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new Se(`${c} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!s&&i&&this._updateSessionFromEvent(i,r);let a=r.transaction_info;if(s&&a&&r.transaction!==e.transaction){let e="custom";r.transaction_info=N(D({},a),{source:e})}return this.sendEvent(r,t),r})).then(null,(e=>{throw e instanceof Se?e:(this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Se(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}};function On(e){return void 0===e.type}function Yn(e){return"transaction"===e.type}var Gn=30;function $n(e,t,n=ft(e.bufferSize||Gn)){let r={};function i(i){let s=[];if($t(i,((t,n)=>{let i=Mt(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){let r=jn(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(t)})),0===s.length)return pt();let a=Yt(i[0],s),o=t=>{$t(a,((n,r)=>{let i=jn(n,r);e.recordDroppedEvent(t,Mt(r),i)}))};return n.add((()=>t({body:Pt(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=qt(r,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Se)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error("Skipped sending event because buffer is full."),o("queue_overflow"),pt();throw e}))}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function jn(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var Pn="7.73.0",Ln={};C(Ln,{FunctionToString:()=>Mn,InboundFilters:()=>Fn});var An,Mn=class{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=Mn.id}setupOnce(){An=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Re(this)||this;return An.apply(t,e)}}catch(e){}}};Mn.__initStatic();var Hn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],qn=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/],Fn=class{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=Fn.id,this._options=e}setupOnce(e,t){}processEvent(e,t,n){let r=n.getOptions(),i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Hn],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:qn],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(this._options,r);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${st(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){let t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(n){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&0===r.length&&me.error(`Could not extract message for event ${st(e)}`),r}(e).some((e=>ee(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${st(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&ee(n,t)}(e,t.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${st(e)}`),!0):function(e,t){if(!t||!t.length)return!1;let n=zn(e);return!!n&&ee(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${st(e)}.\nUrl: ${zn(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;let n=zn(e);return!n||ee(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${st(e)}.\nUrl: ${zn(e)}`),!0)}(e,i)?null:e}};function zn(e){try{let n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error(`Cannot extract url for event ${st(e)}`),null}}Fn.__initStatic();var Wn=ae,Vn=0;function Jn(){return Vn>0}function Xn(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(Re(e))return e}catch(i){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map((e=>Xn(e,t)));return e.apply(this,i)}catch(i){throw Vn++,setTimeout((()=>{Vn--})),function(e){sn().withScope(e)}((e=>{e.addEventProcessor((e=>(t.mechanism&&(at(e,void 0,void 0),ot(e,t.mechanism)),e.extra=N(D({},e.extra),{arguments:r}),e))),function(e,t){sn().captureException(e,{captureContext:t})}(i)})),i}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(i){}xe(r,e),be(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(i){}return r}function Kn(e,t){let n=Zn(e,t),r={type:t&&t.name,value:tr(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Qn(e,t){return{exception:{values:[Kn(e,t)]}}}function Zn(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(er.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(i){}return[]}var er=/Minified React error #\d+;/i;function tr(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function nr(e,t,n,r,i){let s;if(A(t)&&t.error)return Qn(e,t.error);if(M(t)||function(e){return L(e,"DOMException")}(t)){let i=t;if("stack"in t)s=Qn(e,t);else{let t=i.name||(M(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;s=rr(e,a,n,r),at(s,a)}return"code"in i&&(s.tags=N(D({},s.tags),{"DOMException.code":`${i.code}`})),s}return P(t)?Qn(e,t):F(t)||z(t)?(s=function(e,t,n,r){let i=sn().getClient(),s=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:z(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ir(t,{isUnhandledRejection:r})}]},extra:{__serialized__:dt(t,s)}};if(n){let t=Zn(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),ot(s,{synthetic:!0}),s):(s=rr(e,t,n,r),at(s,`${t}`,void 0),ot(s,{synthetic:!0}),s)}function rr(e,t,n,r){let i={message:t};if(r&&n){let r=Zn(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}return i}function ir(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(we(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return K(n[0],t);for(let r=n.length;r>0;r--){let e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:K(e,t)}return""}(e),r=t?"promise rejection":"exception";return A(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:z(e)?`Event \`${function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}var sr,ar=class extends In{constructor(e){let t=Wn.SENTRY_SDK_SOURCE||"npm";e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:Pn}],version:Pn},super(e),e.sendClientReports&&Wn.document&&Wn.document.addEventListener("visibilitychange",(()=>{"hidden"===Wn.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){let i=nr(e,t,n&&n.syntheticException||void 0,r);return ot(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),pt(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let s=rr(e,t,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),pt(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("SDK not enabled, will not capture user feedback."));let t=function(e,{metadata:t,tunnel:n,dsn:r}){let i=D(D({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:ye(r)}),s=function(e){return[{type:"user_report"},e]}(e);return Yt(i,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("Sending outcomes:",e);let t=function(e,t,n){return Yt(t?{dsn:t}:{},[[{type:"client_report"},{timestamp:n||bt(),discarded_events:e}]])}(e,this._options.tunnel&&ye(this._dsn));this._sendEnvelope(t)}};function or(e,t=function(){if(sr)return sr;if($e(Wn.fetch))return sr=Wn.fetch.bind(Wn);let e=Wn.document,t=Wn.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return sr=t.bind(Wn)}()){let n=0,r=0;return $n(e,(function(i){let s=i.body.length;n+=s,r++;let a=D({body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);try{return t(e.url,a).then((e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(o){return sr=void 0,n-=s,r--,ht(o)}}))}var cr=4;function ur(e){return $n(e,(function(t){return new _t(((n,r)=>{let i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===cr&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(let t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}var dr="?";function lr(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var pr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hr=/\((\S*)(?::(\d+))(?::(\d+))\)/,_r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,mr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gr=function(...e){let t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{let r=[],i=e.split("\n");for(let s=n;s1024)continue;let n=Ue.test(e)?e.replace(Ue,"$1"):e;if(!n.match(/\S*Error: /)){for(let e of t){let t=e(n);if(t){r.push(t);break}}if(r.length>=Be)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Ie.test(t[t.length-1].function||"")&&(t.pop(),Ie.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Be).map((e=>N(D({},e),{filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}(...[[30,e=>{let t=pr.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=hr.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=yr(t[1]||dr,t[2]);return lr(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{let t=_r.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=fr.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||dr;return[n,e]=yr(n,e),lr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{let t=mr.exec(e);return t?lr(t[2],t[1]||dr,+t[3],t[4]?+t[4]:void 0):void 0}]]),yr=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:dr,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},vr=class{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=vr.id,this._options=D({onerror:!0,onunhandledrejection:!0},e),this._installFunc={onerror:Er,onunhandledrejection:Sr}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let n in e){let r=this._installFunc[n];r&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Global Handler attached: ${t}`),r(),this._installFunc[n]=void 0)}var t}};function Er(){ze("error",(e=>{let[t,n,r]=xr();if(!t.getIntegration(vr))return;let{msg:i,url:s,line:a,column:o,error:c}=e;if(Jn()||c&&c.__sentry_own_request__)return;let u=void 0===c&&H(i)?function(e,t,n,r){let i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,s=A(e)?e.message:e,a="Error",o=s.match(i);return o&&(a=o[1],s=o[2]),Tr({exception:{values:[{type:a,value:s}]}},t,n,r)}(i,s,a,o):Tr(nr(n,c||i,void 0,r,!1),s,a,o);u.level="error",br(t,c,u,"onerror")}))}function Sr(){ze("unhandledrejection",(e=>{let[t,n,r]=xr();if(!t.getIntegration(vr))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(a){}if(Jn()||i&&i.__sentry_own_request__)return!0;let s=q(i)?function(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}(i):nr(n,i,void 0,r,!0);s.level="error",br(t,i,s,"onunhandledrejection")}))}function Tr(e,t,n,r){let i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},c=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,l=H(t)&&t.length>0?t:function(){try{return ue.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:u,filename:l,function:"?",in_app:!0,lineno:d}),e}function br(e,t,n,r){ot(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function xr(){let e=sn(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}vr.__initStatic();var Rr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],wr=class{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=wr.id,this._options=D({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}setupOnce(){this._options.setTimeout&&Te(Wn,"setTimeout",Dr),this._options.setInterval&&Te(Wn,"setInterval",Dr),this._options.requestAnimationFrame&&Te(Wn,"requestAnimationFrame",Nr),this._options.XMLHttpRequest&&"XMLHttpRequest"in Wn&&Te(XMLHttpRequest.prototype,"send",kr);let e=this._options.eventTarget;e&&(Array.isArray(e)?e:Rr).forEach(Cr)}};function Dr(e){return function(...t){let n=t[0];return t[0]=Xn(n,{mechanism:{data:{function:Ye(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Nr(e){return function(t){return e.apply(this,[Xn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ye(e)},handled:!1,type:"instrument"}})])}}function kr(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Te(n,e,(function(t){let n={mechanism:{data:{function:e,handler:Ye(t)},handled:!1,type:"instrument"}},r=Re(t);return r&&(n.mechanism.data.handler=Ye(r)),Xn(t,n)}))})),e.apply(this,t)}}function Cr(e){let t=Wn,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Te(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Xn(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ye(r),target:e},handled:!1,type:"instrument"}}))}catch(s){}return t.apply(this,[n,Xn(r,{mechanism:{data:{function:"addEventListener",handler:Ye(r),target:e},handled:!1,type:"instrument"}}),i])}})),Te(n,"removeEventListener",(function(e){return function(t,n,r){let i=n;try{let n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(s){}return e.call(this,t,i,r)}})))}wr.__initStatic();var Br=1024,Ur=class{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=Ur.id,this.options=D({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}setupOnce(){if(this.options.console&&ze("console",Or),this.options.dom&&ze("dom",function(e){function t(t){let n,r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>Br&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=Br),"string"==typeof r&&(r=[r]);try{let e=t.event;n=function(e){return!!e&&!!e.target}(e)?le(e.target,{keyAttrs:r,maxStringLength:i}):le(e,{keyAttrs:r,maxStringLength:i})}catch(s){n=""}0!==n.length&&sn().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&ze("xhr",Yr),this.options.fetch&&ze("fetch",Gr),this.options.history&&ze("history",$r),this.options.sentry){let e=sn().getClient();e&&e.on&&e.on("beforeSendEvent",Ir)}}};function Ir(e){sn().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:st(e)},{event:e})}function Or(e){let t={category:"console",data:{arguments:e.args,logger:"console"},level:yt(e.level),message:Q(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${Q(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}sn().addBreadcrumb(t,{input:e.args,level:e.level})}function Yr(e){let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[Me];if(!t||!n||!r)return;let{method:i,url:s,status_code:a,body:o}=r,c={method:i,url:s,status_code:a},u={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};sn().addBreadcrumb({category:"xhr",data:c,type:"http"},u)}function Gr(e){let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};sn().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r=N(D({},e.fetchData),{status_code:e.response&&e.response.status}),i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};sn().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function $r(e){let t=e.from,n=e.to,r=mt(Wn.location.href),i=mt(t),s=mt(n);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),sn().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}Ur.__initStatic();var jr=class{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=jr.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){let r=n.getOptions();te(Kn,r.stackParser,r.maxValueLength,this._key,this._limit,e,t)}};jr.__initStatic();var Pr=class{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Pr.id}setupOnce(){}preprocessEvent(e){if(!Wn.navigator&&!Wn.location&&!Wn.document)return;let t=e.request&&e.request.url||Wn.location&&Wn.location.href,{referrer:n}=Wn.document||{},{userAgent:r}=Wn.navigator||{},i=D(D(D({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),s=N(D(D({},e.request),t&&{url:t}),{headers:i});e.request=s}};Pr.__initStatic();var Lr=class{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Lr.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{if(function(e,t){return!!t&&!(!function(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Mr(e,t)||!Ar(e,t))}(e,t)&&!function(e,t){let n=Hr(t),r=Hr(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&Mr(e,t)&&Ar(e,t))}(e,t))}(e,this._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return this._previousEvent=e}};function Ar(e,t){let n=qr(e),r=qr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let i=0;iUr,Dedupe:()=>Lr,GlobalHandlers:()=>vr,HttpContext:()=>Pr,LinkedErrors:()=>jr,TryCatch:()=>wr});var zr=ae;var Wr=(e,t,n)=>{let r,i;return s=>{t.value>=0&&(s||n)&&(i=t.value-(r||0),(i||void 0===r)&&(r=t.value,t.delta=i,e(t)))}},Vr=()=>zr.__WEB_VITALS_POLYFILL__?zr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{let e=zr.performance.timing,t=zr.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let r in e)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n})()):zr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Jr=()=>{let e=Vr();return e&&e.activationStart||0},Xr=(e,t)=>{let n=Vr(),r="navigate";return n&&(r=zr.document.prerendering||Jr()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Kr=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},Qr=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===zr.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Zr=e=>{let t,n=Xr("CLS",0),r=0,i=[],s=e=>{e.forEach((e=>{if(!e.hadRecentInput){let s=i[0],a=i[i.length-1];r&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-s.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>n.value&&(n.value=r,n.entries=i,t&&t())}}))},a=Kr("layout-shift",s);if(a){t=Wr(e,n);let r=()=>{s(a.takeRecords()),t(!0)};return Qr(r),r}},ei=-1,ti=()=>(ei<0&&(ei="hidden"!==zr.document.visibilityState||zr.document.prerendering?1/0:0,Qr((({timeStamp:e})=>{ei=e}),!0)),{get firstHiddenTime(){return ei}}),ni=e=>{let t,n=ti(),r=Xr("FID"),i=e=>{e.startTime{e.forEach(i)},a=Kr("first-input",s);t=Wr(e,r),a&&Qr((()=>{s(a.takeRecords()),a.disconnect()}),!0)},ri={},ii=e=>{let t,n=ti(),r=Xr("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-Jr(),0);e{ri[r.id]||(i(s.takeRecords()),s.disconnect(),ri[r.id]=!0,t(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,n,{once:!0,capture:!0})})),Qr(n,!0),n}};function si(e){return"number"==typeof e&&isFinite(e)}function ai(e,t){var n=t,{startTimestamp:r}=n,i=k(n,["startTimestamp"]);return r&&e.startTimestamp>r&&(e.startTimestamp=r),e.startChild(D({startTimestamp:r},i))}function oi(e){return e/1e3}function ci(){return zr&&zr.addEventListener&&zr.performance}var ui,di,li=0,pi={};function hi(){let e=ci();if(e&&Rt){e.mark&&zr.performance.mark("sentry-tracing-init"),ni((e=>{let t=e.entries.pop();if(!t)return;let n=oi(Rt),r=oi(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding FID"),pi.fid={value:e.value,unit:"millisecond"},pi["mark.fid"]={value:n+r,unit:"second"}}));let t=Zr((e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding CLS"),pi.cls={value:e.value,unit:""},di=t)})),n=ii((e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding LCP"),pi.lcp={value:e.value,unit:"millisecond"},ui=t)}));return()=>{t&&t(),n&&n()}}return()=>{}}function _i(e){let t=ci();if(!t||!zr.performance.getEntries||!Rt)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] Adding & adjusting spans using Performance API");let n,r,i=oi(Rt),s=t.getEntries();if(s.slice(li).forEach((t=>{let s=oi(t.startTime),a=oi(t.duration);if(!("navigation"===e.op&&i+s{fi(e,t,r,n)})),fi(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),fi(e,t,"fetch",n,"cache","domainLookupStart"),fi(e,t,"domainLookup",n,"DNS"),function(e,t,n){ai(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+oi(t.requestStart),endTimestamp:n+oi(t.responseEnd)}),ai(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+oi(t.responseStart),endTimestamp:n+oi(t.responseEnd)})}(e,t,n)})(e,t,i),n=i+oi(t.responseStart),r=i+oi(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){let s=i+n,a=s+r;ai(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(e,t,s,a,i);let n=ti(),r=t.startTime{if(!pi[t]||i>=e.startTimestamp)return;let n=pi[t].value,r=i+oi(n),s=Math.abs(1e3*(r-e.startTimestamp)),a=s-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Measurements] Normalized ${t} from ${n} to ${s} (${a})`),pi[t].value=s}));let t=pi["mark.fid"];t&&pi.fid&&(ai(e,{description:"first input delay",endTimestamp:t.value+oi(pi.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete pi["mark.fid"]),"fcp"in pi||delete pi.cls,Object.keys(pi).forEach((t=>{e.setMeasurement(t,pi[t].value,pi[t].unit)})),function(e){ui&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding LCP Data"),ui.element&&e.setTag("lcp.element",le(ui.element)),ui.id&&e.setTag("lcp.id",ui.id),ui.url&&e.setTag("lcp.url",ui.url.trim().slice(0,200)),e.setTag("lcp.size",ui.size)),di&&di.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding CLS Data"),di.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,le(t.node)))))}(e)}ui=void 0,di=void 0,pi={}}function fi(e,t,n,r,i,s){let a=s?t[s]:t[`${n}End`],o=t[`${n}Start`];!o||!a||ai(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+oi(o),endTimestamp:r+oi(a)})}var mi=["localhost",/^\/(?!\/)/],gi={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:mi,tracePropagationTargets:mi};function yi(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a}=D({traceFetch:gi.traceFetch,traceXHR:gi.traceXHR},e),o="function"==typeof s?s:e=>!0,c=e=>function(e,t){return ee(e,t||mi)}(e,r||i),u={};t&&ze("fetch",(e=>{let t=function(e,t,n,r){if(!cn()||!e.fetchData)return;let i=t(e.fetchData.url);if(e.endTimestamp&&i){let t=e.fetchData.__span;if(!t)return;let n=r[t];if(n){if(e.response){n.setHttpStatus(e.response.status);let t=e.response&&e.response.headers&&e.response.headers.get("content-length"),r=parseInt(t);r>0&&n.setData("http.response_content_length",r)}else e.error&&n.setStatus("internal_error");n.finish(),delete r[t]}return}let s=sn(),a=s.getScope(),o=s.getClient(),c=a.getSpan(),{method:u,url:d}=e.fetchData,l=i&&c?c.startChild({data:{url:d,type:"fetch","http.method":u},description:`${u} ${d}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(l&&(e.fetchData.__span=l.spanId,r[l.spanId]=l),n(e.fetchData.url)&&o){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let s=i||n.getSpan(),a=s&&s.transaction,{traceId:o,sampled:c,dsc:u}=n.getPropagationContext(),d=s?s.toTraceparent():Ot(o,void 0,c),l=a?a.getDynamicSamplingContext():u||_n(o,t,n),p=Ct(l),h="undefined"!=typeof Request&&J(e,Request)?e.headers:r.headers;if(h){if("undefined"!=typeof Headers&&J(h,Headers)){let e=new Headers(h);return e.append("sentry-trace",d),p&&e.append(wt,p),e}if(Array.isArray(h)){let e=[...h,["sentry-trace",d]];return p&&e.push([wt,p]),e}{let e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),N(D({},h),{"sentry-trace":d,baggage:t.length>0?t.join(","):void 0})}}return{"sentry-trace":d,baggage:p}}(t,o,a,n,l)}return l}(e,o,c,u);a&&t&&vi(t)})),n&&ze("xhr",(e=>{let t=function(e,t,n,r){let i=e.xhr,s=i&&i[Me];if(!cn()||i&&i.__sentry_own_request__||!i||!s)return;let a=t(s.url);if(e.endTimestamp&&a){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];return void(t&&(t.setHttpStatus(s.status_code),t.finish(),delete r[e]))}let o=sn(),c=o.getScope(),u=c.getSpan(),d=a&&u?u.startChild({data:N(D({},s.data),{type:"xhr","http.method":s.method,url:s.url}),description:`${s.method} ${s.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(d&&(i.__sentry_xhr_span_id__=d.spanId,r[i.__sentry_xhr_span_id__]=d),i.setRequestHeader&&n(s.url))if(d){let e=d&&d.transaction,t=Ct(e&&e.getDynamicSamplingContext());Si(i,d.toTraceparent(),t)}else{let e=o.getClient(),{traceId:t,sampled:n,dsc:r}=c.getPropagationContext();Si(i,Ot(t,void 0,n),Ct(r||(e?_n(t,e,c):void 0)))}return d}(e,o,c,u);a&&t&&vi(t)}))}function vi(e){let t=e.data.url,n=new PerformanceObserver((r=>{r.getEntries().forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Rt?[...r,["http.request.redirect_start",Ei(e.redirectStart)],["http.request.fetch_start",Ei(e.fetchStart)],["http.request.domain_lookup_start",Ei(e.domainLookupStart)],["http.request.domain_lookup_end",Ei(e.domainLookupEnd)],["http.request.connect_start",Ei(e.connectStart)],["http.request.secure_connection_start",Ei(e.secureConnectionStart)],["http.request.connection_end",Ei(e.connectEnd)],["http.request.request_start",Ei(e.requestStart)],["http.request.response_start",Ei(e.responseStart)],["http.request.response_end",Ei(e.responseEnd)]]:r}(r).forEach((t=>e.setData(...t))),n.disconnect())}))}));n.observe({entryTypes:["resource"]})}function Ei(e=0){return((Rt||performance.timeOrigin)+e)/1e3}function Si(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(wt,n)}catch(r){}}var Ti=D(N(D({},mn),{markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!zr||!zr.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=zr.location.href;t&&(r=e({name:zr.location.pathname,startTimestamp:Rt?Rt/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&ze("history",(({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:zr.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}}),gi),bi=class{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,xn(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options=D(D({},Ti),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=hi(),this.options.enableLongTask&&Kr("longtask",(e=>{for(let t of e){let e=un();if(!e)return;let n=oi(Rt+t.startTime),r=oi(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})),this.options._experiments.enableInteractions&&Kr("event",(e=>{for(let t of e){let e=un();if(!e)return;if("click"===t.name){let n=oi(Rt+t.startTime),r=oi(t.duration);e.startChild({description:le(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;let n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:a,markBackgroundTransactions:o,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:l,_experiments:p}=this.options,h=r&&r.tracePropagationTargets,_=h||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&h&&me.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i((e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),a,s),o&&(zr&&zr.document?zr.document.addEventListener("visibilitychange",(()=>{let e=un();if(zr.document.hidden&&e){let t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),yi({traceFetch:c,traceXHR:u,tracePropagationTargets:_,shouldCreateSpanForRequest:d,enableHTTPTimings:l})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));let t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,a="pageload"===e.op,o=a?xi("sentry-trace"):"",c=a?xi("baggage"):"",{traceparentData:u,dynamicSamplingContext:d,propagationContext:l}=It(o,c),p=N(D(D({},e),u),{metadata:N(D({},e.metadata),{dynamicSamplingContext:u&&!d?{}:d}),trimEnd:!0}),h="function"==typeof n?n(p):p,_=void 0===h?N(D({},p),{sampled:!1}):h;_.metadata=_.name!==p.name?N(D({},_.metadata),{source:"custom"}):_.metadata,this._latestRouteName=_.name,this._latestRouteSource=_.metadata&&_.metadata.source,!1===_.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Will not send ${_.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Starting ${_.op} transaction on scope`);let{location:f}=zr,m=bn(t,_,r,i,!0,{location:f},s),g=t.getScope();return a&&u?g.setPropagationContext(l):g.setPropagationContext({traceId:m.traceId,spanId:m.spanId,parentSpanId:m.parentSpanId,sampled:m.sampled}),m.registerBeforeFinishCallback((e=>{this._collectWebVitals(),_i(e)})),m}_registerInteractionListener(){let e,t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",s=un();if(s&&s.op&&["navigation","pageload"].includes(s.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`));let a=this._getCurrentHub(),{location:o}=zr,c={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=bn(a,c,t,n,!0,{location:o},r)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}};function xi(e){let t=function(e){return ue.document&&ue.document.querySelector?ue.document.querySelector(e):null}(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}var Ri={};Wn.Sentry&&Wn.Sentry.Integrations&&(Ri=Wn.Sentry.Integrations),D(D(D({},Ri),Ln),Fr);var wi="https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6",Di=null;function Ni(e,t){if(!1===e)return ki(e);if(Di)return ki(Di,t);let n=new ar({dsn:wi,transport:window.fetch?or:ur,stackParser:gr,integrations:[new Ur,new vr,new jr,new Lr,new Pr,new bi]});return ki(Di=new tn(n),t)}function ki(e,t={key:"source",value:"@hCaptcha/loader"}){return{addBreadcrumb:t=>{e&&e.addBreadcrumb(t)},captureMessage:n=>{e&&e.withScope((function(r){r.setTag(t.key,t.value),e.captureMessage(n)}))},captureException:n=>{e&&e.withScope((function(r){r.setTag(t.key,t.value),e.captureEvent({message:G,level:"error",extra:n})}))}}}var Ci=[];function Bi(e={cleanup:!0},t){try{t.addBreadcrumb({category:$,message:"hCaptcha loader params",data:e});let n=U(I(e.scriptLocation)),r=Ci.find((({scope:e})=>e===n.window));if(r)return t.addBreadcrumb({category:$,message:"hCaptcha already loaded"}),r.promise;let i=new Promise(((i,s)=>B(this,null,(function*(){try{n.window[Y]=()=>{t.addBreadcrumb({category:$,message:"hCaptcha script called onload function"}),i(n.window.hcaptcha)};let s=function(e){return Object.entries(e).filter((([,e])=>e||!1===e)).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`)).join("&")}({custom:e.custom,render:e.render,sentry:e.sentry,assethost:e.assethost,imghost:e.imghost,reportapi:e.reportapi,endpoint:e.endpoint,host:e.host,recaptchacompat:e.recaptchacompat,hl:e.hl});yield function({scriptLocation:e,query:t,loadAsync:n=!0,crossOrigin:r,apihost:i="https://js.hcaptcha.com",cleanup:s=!0,secureApi:a=!1,scriptSource:o=""}={}){let c=I(e),u=U(c);return new Promise(((e,d)=>{let l=u.document.createElement("script");l.id=O,l.src=o?`${o}?onload=${Y}`:a?`${i}/1/secure-api.js?onload=${Y}`:`${i}/1/api.js?onload=${Y}`,l.crossOrigin=r,l.async=n;let p=(e,t)=>{try{!a&&s&&c.removeChild(l),t(e)}catch(n){d(n)}};l.onload=t=>p(t,e),l.onerror=e=>p(e,d),l.src+=""!==t?`&${t}`:"",c.appendChild(l)}))}(D({query:s},e)),t.addBreadcrumb({category:$,message:"hCaptcha loaded",data:r})}catch(a){t.addBreadcrumb({category:$,message:"hCaptcha failed to load",data:a});let e=Ci.findIndex((e=>e.scope===n.window));-1!==e&&Ci.splice(e,1),t.captureException(a),s(new Error(G))}}))));return Ci.push({promise:i,scope:n.window}),i}catch(n){return t.captureException(n),Promise.reject(new Error(G))}}function Ui(e,t=0){return B(this,null,(function*(){let n=t<2?"Retry loading hCaptcha Api":"Exceeded maximum retries",r=Ni(e.sentry);try{return yield Bi(e,r)}catch(i){return r.addBreadcrumb({SENTRY_SOURCE:$,message:n,data:{error:i}}),t>=2?(r.captureException(i),Promise.reject(i)):Ui(e,t+=1)}}))}function Ii(){return B(this,arguments,(function*(e={}){return yield Ui(e)}))}function Oi(e){var t=e&&e.ownerDocument||document;return{document:t,window:t.defaultView||t.parentWindow||window}}function Yi(e){return e||document.head}var Gi={key:"source",value:"@hCaptcha/react"},$i="hCaptcha component mounted",ji="hCaptcha expired",Pi="hCaptcha component unmounted",Li="hCaptcha reset",Ai="hCaptcha removed",Mi=function(r){function i(e){var i;return(i=r.call(this,e)||this)._hcaptcha=void 0,i.renderCaptcha=i.renderCaptcha.bind(t(i)),i.resetCaptcha=i.resetCaptcha.bind(t(i)),i.removeCaptcha=i.removeCaptcha.bind(t(i)),i.isReady=i.isReady.bind(t(i)),i.loadCaptcha=i.loadCaptcha.bind(t(i)),i.handleOnLoad=i.handleOnLoad.bind(t(i)),i.handleSubmit=i.handleSubmit.bind(t(i)),i.handleExpire=i.handleExpire.bind(t(i)),i.handleError=i.handleError.bind(t(i)),i.handleOpen=i.handleOpen.bind(t(i)),i.handleClose=i.handleClose.bind(t(i)),i.handleChallengeExpired=i.handleChallengeExpired.bind(t(i)),i.ref=n.createRef(),i.apiScriptRequested=!1,i.sentryHub=null,i.state={isApiReady:!1,isRemoved:!1,elementId:e.id,captchaId:""},i}e(i,r);var s=i.prototype;return s.componentDidMount=function(){var e=this,t=Oi(Yi(this.props.scriptLocation));this._hcaptcha=t.window.hcaptcha||void 0;var n=void 0!==this._hcaptcha;this.sentryHub=Ni(this.props.sentry,Gi),this.sentryHub.addBreadcrumb({category:Gi.value,message:$i}),n?this.setState({isApiReady:!0},(function(){e.renderCaptcha()})):this.loadCaptcha()},s.componentWillUnmount=function(){var e=this.state.captchaId,t=this._hcaptcha;this.isReady()&&(t.reset(e),t.remove(e),this.sentryHub.addBreadcrumb({category:Gi.value,message:Pi}))},s.shouldComponentUpdate=function(e,t){return this.state.isApiReady===t.isApiReady&&this.state.isRemoved===t.isRemoved},s.componentDidUpdate=function(e){var t=this;["sitekey","size","theme","tabindex","languageOverride","endpoint"].every((function(n){return e[n]===t.props[n]}))||this.removeCaptcha((function(){t.renderCaptcha()}))},s.loadCaptcha=function(){if(!this.apiScriptRequested){var e=this.props,t=e.apihost,n=e.assethost,r=e.endpoint,i=e.host,s=e.imghost,a=e.languageOverride,o=e.reCaptchaCompat,c=e.reportapi,u=e.sentry,d=e.custom,l=e.loadAsync,p=e.scriptLocation,h=e.scriptSource,_=e.secureApi,f=e.cleanup;Ii({render:"explicit",apihost:t,assethost:n,endpoint:r,hl:a,host:i,imghost:s,recaptchacompat:!1===o?"off":null,reportapi:c,sentry:u,custom:d,loadAsync:l,scriptLocation:p,scriptSource:h,secureApi:_,cleanup:void 0===f||f}).then(this.handleOnLoad,this.handleError).catch(this.handleError),this.apiScriptRequested=!0}},s.renderCaptcha=function(e){if(this.state.isApiReady){var t=Object.assign({"open-callback":this.handleOpen,"close-callback":this.handleClose,"error-callback":this.handleError,"chalexpired-callback":this.handleChallengeExpired,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),n=this._hcaptcha.render(this.ref.current,t);this.setState({isRemoved:!1,captchaId:n},(function(){e&&e()}))}},s.resetCaptcha=function(){var e=this.state.captchaId,t=this._hcaptcha;this.isReady()&&(t.reset(e),this.sentryHub.addBreadcrumb({category:Gi.value,message:Li}))},s.removeCaptcha=function(e){var t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(this.setState({isRemoved:!0},(function(){n.remove(t),e&&e()})),this.sentryHub.addBreadcrumb({category:Gi.value,message:Ai}))},s.handleOnLoad=function(){var e=this;this.setState({isApiReady:!0},(function(){try{var t=Oi(Yi(e.props.scriptLocation));e._hcaptcha=t.window.hcaptcha,e.renderCaptcha((function(){var t=e.props.onLoad;t&&t()}))}catch(n){e.sentryHub.captureException(n)}}))},s.handleSubmit=function(e){var t=this.props.onVerify,n=this.state,r=n.isRemoved,i=n.captchaId,s=this._hcaptcha;if(void 0!==s&&!r){var a=s.getResponse(i),o=s.getRespKey(i);t&&t(a,o)}},s.handleExpire=function(){var e=this.props.onExpire,t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(n.reset(t),e&&e(),this.sentryHub.addBreadcrumb({category:Gi.value,message:ji}))},s.handleError=function(e){var t=this.props.onError,n=this.state.captchaId,r=this._hcaptcha;this.isReady()&&r.reset(n),t&&t(e)},s.isReady=function(){var e=this.state,t=e.isApiReady,n=e.isRemoved;return t&&!n},s.handleOpen=function(){this.isReady()&&this.props.onOpen&&this.props.onOpen()},s.handleClose=function(){this.isReady()&&this.props.onClose&&this.props.onClose()},s.handleChallengeExpired=function(){this.isReady()&&this.props.onChalExpired&&this.props.onChalExpired()},s.execute=function(e){void 0===e&&(e=null);try{var t=this.state.captchaId,n=this._hcaptcha;if(!this.isReady())return;return e&&"object"!=typeof e&&(e=null),n.execute(t,e)}catch(r){this.sentryHub.captureException(r)}},s.setData=function(e){var t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(e&&"object"!=typeof e&&(e=null),n.setData(t,e))},s.getResponse=function(){return this._hcaptcha.getResponse(this.state.captchaId)},s.getRespKey=function(){return this._hcaptcha.getRespKey(this.state.captchaId)},s.render=function(){var e=this.state.elementId;return n.createElement("div",{ref:this.ref,id:e})},i}(n.Component);function Hi(){const{t:e}=r(),[t]=g.useForm(),[u,d]=n.useState(!1),[l,p]=n.useState(void 0),h=i(),_=s();return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"mb-4 text-2xl font-bold xl:text-3xl",children:e("sys.login.signInFormTitle")}),a.jsxs(g,{form:t,name:"login",size:"large",onFinish:async({password:e})=>{d(!0);try{await _({password:e,token:l})}finally{d(!1)}},children:[a.jsx(g.Item,{name:"password",rules:[{required:!0,message:e("sys.login.passwordPlaceholder")}],children:a.jsx(o.Password,{type:"password",placeholder:e("sys.login.password")})}),h&&a.jsx("div",{className:"flex flex-row justify-center",children:a.jsx(g.Item,{name:"token",children:a.jsx(Mi,{sitekey:h,onVerify:p})})}),a.jsx(g.Item,{children:a.jsx(c,{type:"primary",htmlType:"submit",className:"w-full",loading:u,children:e("sys.login.loginButton")})})]})]})}const{VITE_APP_HOMEPAGE:qi}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function Fi(){n.useEffect((()=>{document.title="Login"}),[]);const{t:e}=r(),t=u(),{colorBgElevated:i}=d();if(t.accessToken&&l(p.Token))return a.jsx(h,{to:qi,replace:!0});const s=_(i).alpha(.9).toString(),o=`linear-gradient(${s}, ${s}) center center / cover no-repeat,url(/admin/assets/overlay_2-613a921a.jpg)`;return a.jsxs(y,{className:"relative flex !min-h-screen !w-full !flex-row",children:[a.jsxs("div",{className:"hidden grow flex-col items-center justify-center gap-[80px] bg-center bg-no-repeat md:flex",style:{background:o},children:[a.jsx("div",{className:"text-3xl font-bold leading-normal lg:text-4xl xl:text-5xl",children:"Pandora Helper"}),a.jsx("img",{className:"max-w-[480px] xl:max-w-[560px]",src:"/admin/assets/dashboard-63c403eb.png",alt:""}),a.jsx(v.Text,{className:"flex flex-row gap-[16px] text-2xl",children:e("sys.login.signInSecondTitle")})]}),a.jsx("div",{className:"m-auto flex !h-screen w-full max-w-[480px] flex-col justify-center px-[16px] lg:px-[64px]",children:a.jsx(f,{children:a.jsx(Hi,{})})}),a.jsx("div",{className:"absolute right-2 top-0",children:a.jsx(m,{})})]})}export{Fi as default}; diff --git a/frontend/dist/assets/Login-9f0473a0.js b/frontend/dist/assets/Login-9f0473a0.js deleted file mode 100644 index abd4faf..0000000 --- a/frontend/dist/assets/Login-9f0473a0.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,a as t,r as n,u as r,b as i,c as s,j as a,I as o,B as c,d as u,e as d,g as l,S as p,N as h,C as _,L as f,f as m}from"./index-32c3357d.js";import{F as g}from"./index-8d9b92bb.js";import{L as y}from"./index-57404842.js";import{T as v}from"./index-8826920f.js";import"./__commonjsHelpers__-02d3be64.js";import"./row-4d2b6eab.js";var E=Object.defineProperty,S=Object.defineProperties,T=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,w=(e,t,n)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))x.call(t,n)&&w(e,n,t[n]);if(b)for(var n of b(t))R.call(t,n)&&w(e,n,t[n]);return e},N=(e,t)=>S(e,T(t)),k=(e,t)=>{var n={};for(var r in e)x.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&R.call(e,r)&&(n[r]=e[r]);return n},C=(e,t)=>{for(var n in t)E(e,n,{get:t[n],enumerable:!0})},B=(e,t,n)=>new Promise(((r,i)=>{var s=e=>{try{o(n.next(e))}catch(t){i(t)}},a=e=>{try{o(n.throw(e))}catch(t){i(t)}},o=e=>e.done?r(e.value):Promise.resolve(e.value).then(s,a);o((n=n.apply(e,t)).next())}));function U(e){let t=e&&e.ownerDocument||document;return{document:t,window:t.defaultView||t.parentWindow||window}}function I(e){return e||document.head}var O="hCaptcha-script",Y="hCaptchaOnLoad",G="script-error",$="@hCaptcha/loader",j=Object.prototype.toString;function P(e){switch(j.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return J(e,Error)}}function L(e,t){return j.call(e)===`[object ${t}]`}function A(e){return L(e,"ErrorEvent")}function M(e){return L(e,"DOMError")}function H(e){return L(e,"String")}function q(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function F(e){return L(e,"Object")}function z(e){return"undefined"!=typeof Event&&J(e,Event)}function W(e){return!(!e||!e.then||"function"!=typeof e.then)}function V(e){return"number"==typeof e&&e!=e}function J(e,t){try{return e instanceof t}catch(n){return!1}}function X(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function K(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Q(e,t){if(!Array.isArray(e))return"";let n=[];for(let i=0;iZ(e,t,n)))}function te(e,t,n=250,r,i,s,a){if(!(s.exception&&s.exception.values&&a&&J(a.originalException,Error)))return;let o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=function(e,t){return e.map((e=>(e.value&&(e.value=K(e.value,t)),e)))}(ne(e,t,i,a.originalException,r,s.exception.values,o,0),n))}function ne(e,t,n,r,i,s,a,o){if(s.length>=n+1)return s;let c=[...s];if(J(r[i],Error)){re(a,o);let s=e(t,r[i]),u=c.length;ie(s,i,u,o),c=ne(e,t,n,r[i],i,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(J(r,Error)){re(a,o);let u=e(t,r),d=c.length;ie(u,`errors[${s}]`,d,o),c=ne(e,t,n,r,i,[u,...c],u,d)}})),c}function re(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=N(D({},e.mechanism),{is_exception_group:!0,exception_id:t})}function ie(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=N(D({},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}function se(e){return e&&e.Math==Math?e:void 0}var ae="object"==typeof globalThis&&se(globalThis)||"object"==typeof window&&se(window)||"object"==typeof self&&se(self)||"object"==typeof global&&se(global)||function(){return this}()||{};function oe(){return ae}function ce(e,t,n){let r=n||ae,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}var ue=oe(),de=80;function le(e,t={}){try{let n,r=e,i=5,s=[],a=0,o=0,c=" > ",u=c.length,d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||de;for(;r&&a++1&&o+s.length*u+n.length>=l));)s.push(n),o+=n.length,r=r.parentNode;return s.reverse().join(c)}catch(n){return""}}function pe(e,t){let n,r,i,s,a,o=e,c=[];if(!o||!o.tagName)return"";c.push(o.tagName.toLowerCase());let u=t&&t.length?t.filter((e=>o.getAttribute(e))).map((e=>[e,o.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{c.push(`[${e[0]}="${e[1]}"]`)}));else if(o.id&&c.push(`#${o.id}`),n=o.className,n&&H(n))for(r=n.split(/\s+/),a=0;a{let r=_e[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}var me=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?he.forEach((n=>{t[n]=(...t)=>{e&&fe((()=>{ae.console[n](`Sentry Logger [${n}]:`,...t)}))}})):he.forEach((e=>{t[e]=()=>{}})),t}(),ge=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ye(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function ve(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ee(e){let t="string"==typeof e?function(e){let t=ge.exec(e);if(!t)return;let[n,r,i="",s,a="",o]=t.slice(1),c="",u=o,d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return ve({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}(e):ve(e);if(t&&function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;let{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(me.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(me.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(me.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(me.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}var Se=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function Te(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&xe(i,r),e[t]=i}function be(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function xe(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,be(e,"__sentry_original__",t)}catch(n){}}function Re(e){return e.__sentry_original__}function we(e){if(P(e))return D({message:e.message,name:e.name,stack:e.stack},Ne(e));if(z(e)){let t=D({type:e.type,target:De(e.target),currentTarget:De(e.currentTarget)},Ne(e));return"undefined"!=typeof CustomEvent&&J(e,CustomEvent)&&(t.detail=e.detail),t}return e}function De(e){try{return function(e){return"undefined"!=typeof Element&&J(e,Element)}(e)?le(e):Object.prototype.toString.call(e)}catch(t){return""}}function Ne(e){if("object"==typeof e&&null!==e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function ke(e){return Ce(e,new Map)}function Ce(e,t){if(F(e)){let n=t.get(e);if(void 0!==n)return n;let r={};t.set(e,r);for(let i of Object.keys(e))void 0!==e[i]&&(r[i]=Ce(e[i],t));return r}if(Array.isArray(e)){let n=t.get(e);if(void 0!==n)return n;let r=[];return t.set(e,r),e.forEach((e=>{r.push(Ce(e,t))})),r}return e}var Be=50,Ue=/\(error: (.*)\)/,Ie=/captureMessage|captureException/;var Oe="";function Ye(e){try{return e&&"function"==typeof e&&e.name||Oe}catch(t){return Oe}}var Ge=oe();function $e(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function je(){if(!function(){if(!("fetch"in Ge))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if($e(Ge.fetch))return!0;let e=!1,t=Ge.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=$e(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}var Pe=oe();var Le,Ae=oe(),Me="__sentry_xhr_v2__",He={},qe={};function Fe(e){if(!qe[e])switch(qe[e]=!0,e){case"console":"console"in ae&&he.forEach((function(e){e in ae.console&&Te(ae.console,e,(function(t){return _e[e]=t,function(...t){We("console",{args:t,level:e});let n=_e[e];n&&n.apply(ae.console,t)}}))}));break;case"dom":!function(){if(!Ae.document)return;let e=We.bind(null,"dom"),t=Ze(e,!0);Ae.document.addEventListener("click",t,!1),Ae.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{let n=Ae[t]&&Ae[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Te(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=s[n]=s[n]||{refCount:0};if(!a.handler){let r=Ze(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(s){}return t.call(this,n,r,i)}})),Te(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this,i=n.__sentry_instrumentation_handlers__||{},s=i[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(i){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!Ae.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;Te(e,"open",(function(e){return function(...t){let n=t[1],r=this[Me]={method:H(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};H(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let e=this[Me];if(e&&4===this.readyState){try{e.status_code=this.status}catch(n){}We("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Te(this,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(this,t)}})):this.addEventListener("readystatechange",i),Te(this,"setRequestHeader",(function(e){return function(...t){let[n,r]=t,i=this[Me];return i&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),Te(e,"send",(function(e){return function(...t){let n=this[Me];return n&&void 0!==t[0]&&(n.body=t[0]),We("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":je()&&Te(ae,"fetch",(function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:Je(t),method:Ve(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:Je(t),method:Ve(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return We("fetch",D({},i)),e.apply(ae,t).then((e=>(We("fetch",N(D({},i),{endTimestamp:Date.now(),response:e})),e)),(e=>{throw We("fetch",N(D({},i),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(!function(){let e=Pe.chrome,t=e&&e.app&&e.app.runtime,n="history"in Pe&&!!Pe.history.pushState&&!!Pe.history.replaceState;return!t&&n}())return;let e=Ae.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=Le,t=String(n);Le=t,We("history",{from:e,to:t})}return e.apply(this,t)}}Ae.onpopstate=function(...t){let n=Ae.location.href,r=Le;if(Le=n,We("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(i){}},Te(Ae.history,"pushState",t),Te(Ae.history,"replaceState",t)}();break;case"error":et=Ae.onerror,Ae.onerror=function(e,t,n,r,i){return We("error",{column:r,error:i,line:n,msg:e,url:t}),!(!et||et.__SENTRY_LOADER__)&&et.apply(this,arguments)},Ae.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":nt=Ae.onunhandledrejection,Ae.onunhandledrejection=function(e){return We("unhandledrejection",e),!(nt&&!nt.__SENTRY_LOADER__)||nt.apply(this,arguments)},Ae.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("unknown instrumentation type:",e))}}function ze(e,t){He[e]=He[e]||[],He[e].push(t),Fe(e)}function We(e,t){if(e&&He[e])for(let r of He[e]||[])try{r(t)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Ye(r)}\nError:`,n)}}function Ve(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Je(e){return"string"==typeof e?e:e?Ve(e,"url")?e.url:e.toString?e.toString():"":""}var Xe,Ke,Qe=1e3;function Ze(e,t=!1){return n=>{if(!n||Ke===n||function(e){if("keypress"!==e.type)return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(t){}return!0}(n))return;let r="keypress"===n.type?"input":n.type;(void 0===Xe||function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(n){}return!1}(Ke,n))&&(e({event:n,name:r,global:t}),Ke=n),clearTimeout(Xe),Xe=Ae.setTimeout((()=>{Xe=void 0}),Qe)}}var et=null;var tt,nt=null;function rt(){let e=ae,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function it(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function st(e){let{message:t,event_id:n}=e;if(t)return t;let r=it(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function at(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function ot(e,t){let n=it(e);if(!n)return;let r=n.mechanism;if(n.mechanism=D(D(D({},{type:"generic",handled:!0}),r),t),t&&"data"in t){let e=D(D({},r&&r.data),t.data);n.mechanism.data=e}}function ct(e){if(e&&e.__sentry_captured__)return!0;try{be(e,"__sentry_captured__",!0)}catch(t){}return!1}function ut(e,t=100,n=1/0){try{return lt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function dt(e,t=3,n=102400){let r=ut(e,t);return function(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}(r)>n?dt(e,t-1,n):r}function lt(e,t,n=1/0,r=1/0,i=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=r){d[_]="[MaxProperties ~]";break}let e=p[_];d[_]=lt(_,e,c-1,r,i),l++}return a(t),d}function pt(e){return new _t((t=>{t(e)}))}function ht(e){return new _t(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(tt||(tt={}));var _t=class{constructor(e){_t.prototype.__init.call(this),_t.prototype.__init2.call(this),_t.prototype.__init3.call(this),_t.prototype.__init4.call(this),this._state=tt.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new _t(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new _t(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(tt.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(tt.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===tt.PENDING){if(W(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===tt.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===tt.RESOLVED&&e[1](this._value),this._state===tt.REJECTED&&e[2](this._value),e[0]=!0)}))}}};function ft(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new _t(((n,r)=>{let i=t.length;if(!i)return n(!0);let s=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{pt(e).then((()=>{--i||(clearTimeout(s),n(!0))}),r)}))}))}}}function mt(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var gt=["fatal","error","warning","log","info","debug"];function yt(e){return"warn"===e?"warning":gt.includes(e)?e:"log"}var vt=oe(),Et={nowSeconds:()=>Date.now()/1e3};var St="undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__||"[object process]"!==Object.prototype.toString.call("undefined"!=typeof process?process:0)?function(){let{performance:e}=vt;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}():function(){try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(e){return}var e,t}(),Tt=void 0===St?Et:{nowSeconds:()=>(St.timeOrigin+St.now())/1e3},bt=Et.nowSeconds.bind(Et),xt=Tt.nowSeconds.bind(Tt),Rt=(()=>{let{performance:e}=vt;if(!e||!e.now)return;let t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?i:`${e},${i}`;return s.length>kt?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${Dt}${t}`]=n),e)),{}))}function Bt(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}var Ut=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function It(e,t){let n=function(e){if(!e)return;let t,n=e.match(Ut);return n?("1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}):void 0}(e),r=function(e){if(!H(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{let n=Bt(t);return D(D({},e),n)}),{});else{if(!e)return;t=Bt(e)}let n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Nt)&&(e[t.slice(Dt.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:i,parentSpanId:s,parentSampled:a}=n||{},o={traceId:i||rt(),spanId:rt().substring(16),sampled:a};return s&&(o.parentSpanId=s),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}function Ot(e=rt(),t=rt().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Yt(e,t=[]){return[e,t]}function Gt(e,t){let[n,r]=e;return[n,[...r,t]]}function $t(e,t){let n=e[1];for(let r of n){if(t(r,r[0].type))return!0}return!1}function jt(e,t){return(t||new TextEncoder).encode(e)}function Pt(e,t){let[n,r]=e,i=JSON.stringify(n);function s(e){"string"==typeof i?i="string"==typeof e?i+e:[jt(i,t),e]:i.push("string"==typeof e?jt(e,t):e)}for(let o of r){let[e,t]=o;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)s(t);else{let e;try{e=JSON.stringify(t)}catch(a){e=JSON.stringify(ut(t))}s(e)}}return"string"==typeof i?i:function(e){let t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}(i)}function Lt(e,t){let n="string"==typeof e.data?jt(e.data,t):e.data;return[ke({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var At={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function Mt(e){return At[e]}function Ht(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function qt(e,{statusCode:t,headers:n},r=Date.now()){let i=D({},e),s=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(s)for(let o of s.trim().split(",")){let[e,t]=o.split(":",2),n=parseInt(e,10),s=1e3*(isNaN(n)?60:n);if(t)for(let a of t.split(";"))i[a]=r+s;else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}var Ft="production";function zt(){return ce("globalEventProcessors",(()=>[]))}function Wt(e){zt().push(e)}function Vt(e,t,n,r=0){return new _t(((i,s)=>{let a=e[r];if(null===t||"function"!=typeof a)i(t);else{let o=a(D({},t),n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===o&&me.log(`Event processor "${a.id}" dropped event`),W(o)?o.then((t=>Vt(e,t,n,r+1).then(i))).then(null,s):Vt(e,o,n,r+1).then(i).then(null,s)}}))}function Jt(e){let t=xt(),n={sid:rt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ke({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Xt(n,e),n}function Xt(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||xt(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:rt()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}var Kt=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Qt()}static clone(e){let t=new Kt;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags=D({},e._tags),t._extra=D({},e._extra),t._contexts=D({},e._contexts),t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata=D({},e._sdkProcessingMetadata),t._propagationContext=D({},e._propagationContext)),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Xt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=D(D({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=N(D({},this._tags),{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=D(D({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=N(D({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){let t=e(this);return t instanceof Kt?t:this}return e instanceof Kt?(this._tags=D(D({},this._tags),e._tags),this._extra=D(D({},this._extra),e._extra),this._contexts=D(D({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):F(e)&&(this._tags=D(D({},this._tags),e.tags),this._extra=D(D({},this._extra),e.extra),this._contexts=D(D({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Qt(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r=D({timestamp:bt()},e),i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra=D(D({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=D(D({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=D(D({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=D(D({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=D({trace:this._span.getTraceContext()},e.contexts);let t=this._span.transaction;if(t){e.sdkProcessingMetadata=D({dynamicSamplingContext:t.getDynamicSamplingContext()},e.sdkProcessingMetadata);let n=t.name;n&&(e.tags=D({transaction:n},e.tags))}}this._applyFingerprint(e);let r=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...r];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata=N(D(D({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),Vt([...n||[],...zt(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=D(D({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){var t;e.fingerprint=e.fingerprint?(t=e.fingerprint,Array.isArray(t)?t:[t]):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}};function Qt(){return{traceId:rt(),spanId:rt().substring(16)}}var Zt=4,en=100,tn=class{constructor(e,t=new Kt,n=Zt){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{i.captureException(e,N(D({originalException:e,syntheticException:r},t),{event_id:n}),s)})),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:rt(),i=new Error(e);return this._withClient(((s,a)=>{s.captureMessage(e,t,N(D({originalException:e,syntheticException:i},n),{event_id:r}),a)})),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:rt();return e.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,N(D({},t),{event_id:n}),i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=en}=r.getOptions&&r.getOptions()||{};if(s<=0)return;let a=bt(),o=D({timestamp:a},e),c=i?fe((()=>i(o,t))):o;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=rn(this);try{e(this)}finally{rn(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){this.getClient()}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Xt(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=Ft}=n&&n.getOptions()||{},{userAgent:s}=ae.navigator||{},a=Jt(D(D({release:r,environment:i,user:t.getUser()},s&&{userAgent:s}),e)),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&Xt(o,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!(!t||!t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){let n=nn().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function nn(){return ae.__SENTRY__=ae.__SENTRY__||{extensions:{},hub:void 0},ae}function rn(e){let t=nn(),n=an(t);return on(t,e),n}function sn(){let e=nn();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=nn()){return(!function(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}(e)||an(e).isOlderThan(Zt))&&on(e,new tn),an(e)}(e)}function an(e){return ce("hub",(()=>new tn),e)}function on(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function cn(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=sn().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function un(e){return(e||sn()).getScope().getTransaction()}var dn=!1;function ln(){let e=un();if(e){let t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}ln.tag="sentry_tracingErrorCallback";var pn=class{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}},hn=class{constructor(e={}){this.traceId=e.traceId||rt(),this.spanId=e.spanId||rt().substring(16),this.startTimestamp=e.startTimestamp||xt(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){let t=new hn(N(D({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){let n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},me.log(n)}return t}setTag(e,t){return this.tags=N(D({},this.tags),{[e]:t}),this}setData(e,t){return this.data=N(D({},this.data),{[e]:t}),this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);let t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&me.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:xt()}toTraceparent(){return Ot(this.traceId,this.spanId,this.sampled)}toContext(){return ke({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return ke({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return ke({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}};function _n(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},a=ke({environment:r.environment||Ft,release:r.release,user_segment:s,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}var fn=class extends hn{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||sn(),this._name=e.name||"",this.metadata=N(D({source:"custom"},e.metadata),{spanMetadata:{}}),this._trimEnd=e.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext=D({},n))}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new pn(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata=D(D({},this.metadata),e)}finish(e){let t=this._finishTransaction(e);if(t)return this._hub.captureEvent(t)}toContext(){let e=super.toContext();return ke(N(D({},e),{name:this.name,trimEnd:this._trimEnd}))}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let e=this._hub||sn(),t=e.getClient();if(!t)return{};let n=e.getScope(),r=_n(this.traceId,t,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);let s=this.metadata.source;return s&&"url"!==s&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));let n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);let r=this.metadata,i=D({contexts:N(D({},this._contexts),{trace:this.getTraceContext()}),spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:N(D({},r),{dynamicSamplingContext:this.getDynamicSamplingContext()})},r.source&&{transaction_info:{source:r.source}});return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}},mn={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},gn=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],yn=class extends pn{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:xt(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}},vn=class extends fn{constructor(e,t,n=mn.idleTimeout,r=mn.finalTimeout,i=mn.heartbeatInterval,s=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=gn[4],s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=gn[3],this.finish())}),this._finalTimeout)}finish(e=xt()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(let t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let n=t.startTimestamp{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new yn(t,n,this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=gn[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{!this._finished&&0===Object.keys(this.activities).length&&(this._finishReason=gn[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let e=xt();this._idleTimeoutCanceledPermanently?(this._finishReason=gn[5],this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=gn[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}};function En(){let e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function Sn(e,t,n){if(!cn(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})):(r=1,e.setMetadata({sampleRate:r})),function(e){return V(e)||"number"!=typeof e&&"boolean"!=typeof e?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0||e>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}(r)?r?(e.sampled=Math.random()`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}(D({sentry_key:e.publicKey,sentry_version:Rn},t&&{sentry_client:`${t.name}/${t.version}`}))}function Dn(e,t,n,r){let i=Ht(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);let a=function(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return D(D(D({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:ye(r)}),i&&{trace:ke(D({},i))})}(e,i,r,t);return delete e.sdkProcessingMetadata,Yt(a,[[{type:s},e]])}var Nn=[];function kn(e,t,n){if(n[t.name]=t,-1===Nn.indexOf(t.name)&&(t.setupOnce(Wt,sn),Nn.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Integration installed: ${t.name}`)}function Cn(e,t,n,r,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,o=N(D({},t),{event_id:t.event_id||n.event_id||rt(),timestamp:t.timestamp||bt()}),c=n.integrations||e.integrations.map((e=>e.name));(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:Ft),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=K(e.message,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=K(a.value,s));let o=e.request;o&&o.url&&(o.url=K(o.url,s))})(o,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(o,c),void 0===t.type&&function(e,t){let n=ae._sentryDebugIds;if(!n)return;let r,i=Bn.get(t);i?r=i:(r=new Map,Bn.set(t,r));let s=Object.keys(n).reduce(((e,i)=>{let s,a=r.get(i);a?s=a:(s=t(i),r.set(i,s));for(let t=s.length-1;t>=0;t--){let r=s[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=s[e.filename])}))}))}catch(a){}}(o,e.stackParser);let u=r;n.captureContext&&(u=Kt.clone(u).update(n.captureContext));let d=pt(o),l=i&&i.getEventProcessors?i.getEventProcessors():[];if(u){if(u.getAttachments){let e=[...n.attachments||[],...u.getAttachments()];e.length&&(n.attachments=e)}d=u.applyToEvent(o,n,l)}else d=Vt([...l,...zt()],o,n);return d.then((e=>(e&&function(e){let t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;let r=D(D(D(D(D({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>D(D({},e),e.data&&{data:ut(e.data,t,n)})))}),e.user&&{user:ut(e.user,t,n)}),e.contexts&&{contexts:ut(e.contexts,t,n)}),e.extra&&{extra:ut(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ut(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=ut(e.data,t,n)),e)))),r}(e,s,a):e)))}var Bn=new WeakMap;var Un="Not capturing exception because it's already been captured.",In=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Ee(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t={}){let n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${wn(e,r)}`}(this._dsn,e);this._transport=e.transport(N(D({recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}}captureException(e,t,n){if(ct(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(Un));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id,s=q(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(s.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&ct(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(Un));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Xt(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):pt(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=function(e,t){let n={};return t.forEach((t=>{t&&kn(e,t,n)})),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){kn(this,e,this._integrations)}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=Dn(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of t.attachments||[])n=Gt(n,Lt(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){let t=function(e,t,n,r){let i=Ht(n);return Yt(D(D({sent_at:(new Date).toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:ye(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let e of i){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}let s="ok"===e.status;(s&&0===e.errors||s&&n)&&(Xt(e,N(D({},n&&{status:"crashed"}),{errors:e.errors||Number(r||n)})),this.captureSession(e))}_isClientDoneProcessing(e){return new _t((t=>{let n=0,r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n){let r=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),Cn(r,e,t,n,this).then((e=>{if(null===e)return e;let{propagationContext:t}=e.sdkProcessingMetadata||{};if((!e.contexts||!e.contexts.trace)&&t){let{traceId:r,spanId:i,parentSpanId:s,dsc:a}=t;e.contexts=D({trace:{trace_id:r,span_id:i,parent_span_id:s}},e.contexts);let o=a||_n(r,this,n);e.sdkProcessingMetadata=D({dynamicSamplingContext:o},e.sdkProcessingMetadata)}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){let t=e;"log"===t.logLevel?me.log(t.message):me.warn(t)}}))}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,s=Yn(e),a=On(e),o=e.type||"error",c=`before send for type \`${o}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),ht(new Se(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let u="replay_event"===o?"replay":o;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new Se("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;let i=function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return On(t)&&r?r(t,n):Yn(t)&&i?i(t,n):t}(r,n,t);return function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(W(e))return e.then((e=>{if(!F(e)&&null!==e)throw new Se(n);return e}),(e=>{throw new Se(`${t} rejected with ${e}`)}));if(!F(e)&&null!==e)throw new Se(n);return e}(i,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new Se(`${c} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!s&&i&&this._updateSessionFromEvent(i,r);let a=r.transaction_info;if(s&&a&&r.transaction!==e.transaction){let e="custom";r.transaction_info=N(D({},a),{source:e})}return this.sendEvent(r,t),r})).then(null,(e=>{throw e instanceof Se?e:(this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Se(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}};function On(e){return void 0===e.type}function Yn(e){return"transaction"===e.type}var Gn=30;function $n(e,t,n=ft(e.bufferSize||Gn)){let r={};function i(i){let s=[];if($t(i,((t,n)=>{let i=Mt(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){let r=jn(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(t)})),0===s.length)return pt();let a=Yt(i[0],s),o=t=>{$t(a,((n,r)=>{let i=jn(n,r);e.recordDroppedEvent(t,Mt(r),i)}))};return n.add((()=>t({body:Pt(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=qt(r,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Se)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error("Skipped sending event because buffer is full."),o("queue_overflow"),pt();throw e}))}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function jn(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var Pn="7.73.0",Ln={};C(Ln,{FunctionToString:()=>Mn,InboundFilters:()=>Fn});var An,Mn=class{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=Mn.id}setupOnce(){An=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Re(this)||this;return An.apply(t,e)}}catch(e){}}};Mn.__initStatic();var Hn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],qn=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/],Fn=class{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=Fn.id,this._options=e}setupOnce(e,t){}processEvent(e,t,n){let r=n.getOptions(),i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Hn],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:qn],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(this._options,r);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${st(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){let t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(n){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&0===r.length&&me.error(`Could not extract message for event ${st(e)}`),r}(e).some((e=>ee(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${st(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&ee(n,t)}(e,t.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${st(e)}`),!0):function(e,t){if(!t||!t.length)return!1;let n=zn(e);return!!n&&ee(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${st(e)}.\nUrl: ${zn(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;let n=zn(e);return!n||ee(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${st(e)}.\nUrl: ${zn(e)}`),!0)}(e,i)?null:e}};function zn(e){try{let n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error(`Cannot extract url for event ${st(e)}`),null}}Fn.__initStatic();var Wn=ae,Vn=0;function Jn(){return Vn>0}function Xn(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(Re(e))return e}catch(i){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map((e=>Xn(e,t)));return e.apply(this,i)}catch(i){throw Vn++,setTimeout((()=>{Vn--})),function(e){sn().withScope(e)}((e=>{e.addEventProcessor((e=>(t.mechanism&&(at(e,void 0,void 0),ot(e,t.mechanism)),e.extra=N(D({},e.extra),{arguments:r}),e))),function(e,t){sn().captureException(e,{captureContext:t})}(i)})),i}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(i){}xe(r,e),be(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(i){}return r}function Kn(e,t){let n=Zn(e,t),r={type:t&&t.name,value:tr(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Qn(e,t){return{exception:{values:[Kn(e,t)]}}}function Zn(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(er.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(i){}return[]}var er=/Minified React error #\d+;/i;function tr(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function nr(e,t,n,r,i){let s;if(A(t)&&t.error)return Qn(e,t.error);if(M(t)||function(e){return L(e,"DOMException")}(t)){let i=t;if("stack"in t)s=Qn(e,t);else{let t=i.name||(M(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;s=rr(e,a,n,r),at(s,a)}return"code"in i&&(s.tags=N(D({},s.tags),{"DOMException.code":`${i.code}`})),s}return P(t)?Qn(e,t):F(t)||z(t)?(s=function(e,t,n,r){let i=sn().getClient(),s=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:z(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ir(t,{isUnhandledRejection:r})}]},extra:{__serialized__:dt(t,s)}};if(n){let t=Zn(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),ot(s,{synthetic:!0}),s):(s=rr(e,t,n,r),at(s,`${t}`,void 0),ot(s,{synthetic:!0}),s)}function rr(e,t,n,r){let i={message:t};if(r&&n){let r=Zn(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}return i}function ir(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(we(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return K(n[0],t);for(let r=n.length;r>0;r--){let e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:K(e,t)}return""}(e),r=t?"promise rejection":"exception";return A(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:z(e)?`Event \`${function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}var sr,ar=class extends In{constructor(e){let t=Wn.SENTRY_SDK_SOURCE||"npm";e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:Pn}],version:Pn},super(e),e.sendClientReports&&Wn.document&&Wn.document.addEventListener("visibilitychange",(()=>{"hidden"===Wn.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){let i=nr(e,t,n&&n.syntheticException||void 0,r);return ot(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),pt(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let s=rr(e,t,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),pt(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("SDK not enabled, will not capture user feedback."));let t=function(e,{metadata:t,tunnel:n,dsn:r}){let i=D(D({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:ye(r)}),s=function(e){return[{type:"user_report"},e]}(e);return Yt(i,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("Sending outcomes:",e);let t=function(e,t,n){return Yt(t?{dsn:t}:{},[[{type:"client_report"},{timestamp:n||bt(),discarded_events:e}]])}(e,this._options.tunnel&&ye(this._dsn));this._sendEnvelope(t)}};function or(e,t=function(){if(sr)return sr;if($e(Wn.fetch))return sr=Wn.fetch.bind(Wn);let e=Wn.document,t=Wn.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return sr=t.bind(Wn)}()){let n=0,r=0;return $n(e,(function(i){let s=i.body.length;n+=s,r++;let a=D({body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);try{return t(e.url,a).then((e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(o){return sr=void 0,n-=s,r--,ht(o)}}))}var cr=4;function ur(e){return $n(e,(function(t){return new _t(((n,r)=>{let i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===cr&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(let t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}var dr="?";function lr(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var pr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hr=/\((\S*)(?::(\d+))(?::(\d+))\)/,_r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,mr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gr=function(...e){let t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{let r=[],i=e.split("\n");for(let s=n;s1024)continue;let n=Ue.test(e)?e.replace(Ue,"$1"):e;if(!n.match(/\S*Error: /)){for(let e of t){let t=e(n);if(t){r.push(t);break}}if(r.length>=Be)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Ie.test(t[t.length-1].function||"")&&(t.pop(),Ie.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Be).map((e=>N(D({},e),{filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}(...[[30,e=>{let t=pr.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=hr.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=yr(t[1]||dr,t[2]);return lr(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{let t=_r.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=fr.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||dr;return[n,e]=yr(n,e),lr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{let t=mr.exec(e);return t?lr(t[2],t[1]||dr,+t[3],t[4]?+t[4]:void 0):void 0}]]),yr=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:dr,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},vr=class{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=vr.id,this._options=D({onerror:!0,onunhandledrejection:!0},e),this._installFunc={onerror:Er,onunhandledrejection:Sr}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let n in e){let r=this._installFunc[n];r&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Global Handler attached: ${t}`),r(),this._installFunc[n]=void 0)}var t}};function Er(){ze("error",(e=>{let[t,n,r]=xr();if(!t.getIntegration(vr))return;let{msg:i,url:s,line:a,column:o,error:c}=e;if(Jn()||c&&c.__sentry_own_request__)return;let u=void 0===c&&H(i)?function(e,t,n,r){let i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,s=A(e)?e.message:e,a="Error",o=s.match(i);return o&&(a=o[1],s=o[2]),Tr({exception:{values:[{type:a,value:s}]}},t,n,r)}(i,s,a,o):Tr(nr(n,c||i,void 0,r,!1),s,a,o);u.level="error",br(t,c,u,"onerror")}))}function Sr(){ze("unhandledrejection",(e=>{let[t,n,r]=xr();if(!t.getIntegration(vr))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(a){}if(Jn()||i&&i.__sentry_own_request__)return!0;let s=q(i)?function(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}(i):nr(n,i,void 0,r,!0);s.level="error",br(t,i,s,"onunhandledrejection")}))}function Tr(e,t,n,r){let i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},c=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,l=H(t)&&t.length>0?t:function(){try{return ue.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:u,filename:l,function:"?",in_app:!0,lineno:d}),e}function br(e,t,n,r){ot(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function xr(){let e=sn(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}vr.__initStatic();var Rr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],wr=class{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=wr.id,this._options=D({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}setupOnce(){this._options.setTimeout&&Te(Wn,"setTimeout",Dr),this._options.setInterval&&Te(Wn,"setInterval",Dr),this._options.requestAnimationFrame&&Te(Wn,"requestAnimationFrame",Nr),this._options.XMLHttpRequest&&"XMLHttpRequest"in Wn&&Te(XMLHttpRequest.prototype,"send",kr);let e=this._options.eventTarget;e&&(Array.isArray(e)?e:Rr).forEach(Cr)}};function Dr(e){return function(...t){let n=t[0];return t[0]=Xn(n,{mechanism:{data:{function:Ye(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Nr(e){return function(t){return e.apply(this,[Xn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ye(e)},handled:!1,type:"instrument"}})])}}function kr(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Te(n,e,(function(t){let n={mechanism:{data:{function:e,handler:Ye(t)},handled:!1,type:"instrument"}},r=Re(t);return r&&(n.mechanism.data.handler=Ye(r)),Xn(t,n)}))})),e.apply(this,t)}}function Cr(e){let t=Wn,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Te(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Xn(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ye(r),target:e},handled:!1,type:"instrument"}}))}catch(s){}return t.apply(this,[n,Xn(r,{mechanism:{data:{function:"addEventListener",handler:Ye(r),target:e},handled:!1,type:"instrument"}}),i])}})),Te(n,"removeEventListener",(function(e){return function(t,n,r){let i=n;try{let n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(s){}return e.call(this,t,i,r)}})))}wr.__initStatic();var Br=1024,Ur=class{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=Ur.id,this.options=D({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}setupOnce(){if(this.options.console&&ze("console",Or),this.options.dom&&ze("dom",function(e){function t(t){let n,r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>Br&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=Br),"string"==typeof r&&(r=[r]);try{let e=t.event;n=function(e){return!!e&&!!e.target}(e)?le(e.target,{keyAttrs:r,maxStringLength:i}):le(e,{keyAttrs:r,maxStringLength:i})}catch(s){n=""}0!==n.length&&sn().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&ze("xhr",Yr),this.options.fetch&&ze("fetch",Gr),this.options.history&&ze("history",$r),this.options.sentry){let e=sn().getClient();e&&e.on&&e.on("beforeSendEvent",Ir)}}};function Ir(e){sn().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:st(e)},{event:e})}function Or(e){let t={category:"console",data:{arguments:e.args,logger:"console"},level:yt(e.level),message:Q(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${Q(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}sn().addBreadcrumb(t,{input:e.args,level:e.level})}function Yr(e){let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[Me];if(!t||!n||!r)return;let{method:i,url:s,status_code:a,body:o}=r,c={method:i,url:s,status_code:a},u={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};sn().addBreadcrumb({category:"xhr",data:c,type:"http"},u)}function Gr(e){let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};sn().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r=N(D({},e.fetchData),{status_code:e.response&&e.response.status}),i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};sn().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function $r(e){let t=e.from,n=e.to,r=mt(Wn.location.href),i=mt(t),s=mt(n);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),sn().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}Ur.__initStatic();var jr=class{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=jr.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){let r=n.getOptions();te(Kn,r.stackParser,r.maxValueLength,this._key,this._limit,e,t)}};jr.__initStatic();var Pr=class{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Pr.id}setupOnce(){}preprocessEvent(e){if(!Wn.navigator&&!Wn.location&&!Wn.document)return;let t=e.request&&e.request.url||Wn.location&&Wn.location.href,{referrer:n}=Wn.document||{},{userAgent:r}=Wn.navigator||{},i=D(D(D({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),s=N(D(D({},e.request),t&&{url:t}),{headers:i});e.request=s}};Pr.__initStatic();var Lr=class{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Lr.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{if(function(e,t){return!!t&&!(!function(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Mr(e,t)||!Ar(e,t))}(e,t)&&!function(e,t){let n=Hr(t),r=Hr(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&Mr(e,t)&&Ar(e,t))}(e,t))}(e,this._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return this._previousEvent=e}};function Ar(e,t){let n=qr(e),r=qr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let i=0;iUr,Dedupe:()=>Lr,GlobalHandlers:()=>vr,HttpContext:()=>Pr,LinkedErrors:()=>jr,TryCatch:()=>wr});var zr=ae;var Wr=(e,t,n)=>{let r,i;return s=>{t.value>=0&&(s||n)&&(i=t.value-(r||0),(i||void 0===r)&&(r=t.value,t.delta=i,e(t)))}},Vr=()=>zr.__WEB_VITALS_POLYFILL__?zr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{let e=zr.performance.timing,t=zr.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let r in e)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n})()):zr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Jr=()=>{let e=Vr();return e&&e.activationStart||0},Xr=(e,t)=>{let n=Vr(),r="navigate";return n&&(r=zr.document.prerendering||Jr()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Kr=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},Qr=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===zr.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Zr=e=>{let t,n=Xr("CLS",0),r=0,i=[],s=e=>{e.forEach((e=>{if(!e.hadRecentInput){let s=i[0],a=i[i.length-1];r&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-s.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>n.value&&(n.value=r,n.entries=i,t&&t())}}))},a=Kr("layout-shift",s);if(a){t=Wr(e,n);let r=()=>{s(a.takeRecords()),t(!0)};return Qr(r),r}},ei=-1,ti=()=>(ei<0&&(ei="hidden"!==zr.document.visibilityState||zr.document.prerendering?1/0:0,Qr((({timeStamp:e})=>{ei=e}),!0)),{get firstHiddenTime(){return ei}}),ni=e=>{let t,n=ti(),r=Xr("FID"),i=e=>{e.startTime{e.forEach(i)},a=Kr("first-input",s);t=Wr(e,r),a&&Qr((()=>{s(a.takeRecords()),a.disconnect()}),!0)},ri={},ii=e=>{let t,n=ti(),r=Xr("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-Jr(),0);e{ri[r.id]||(i(s.takeRecords()),s.disconnect(),ri[r.id]=!0,t(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,n,{once:!0,capture:!0})})),Qr(n,!0),n}};function si(e){return"number"==typeof e&&isFinite(e)}function ai(e,t){var n=t,{startTimestamp:r}=n,i=k(n,["startTimestamp"]);return r&&e.startTimestamp>r&&(e.startTimestamp=r),e.startChild(D({startTimestamp:r},i))}function oi(e){return e/1e3}function ci(){return zr&&zr.addEventListener&&zr.performance}var ui,di,li=0,pi={};function hi(){let e=ci();if(e&&Rt){e.mark&&zr.performance.mark("sentry-tracing-init"),ni((e=>{let t=e.entries.pop();if(!t)return;let n=oi(Rt),r=oi(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding FID"),pi.fid={value:e.value,unit:"millisecond"},pi["mark.fid"]={value:n+r,unit:"second"}}));let t=Zr((e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding CLS"),pi.cls={value:e.value,unit:""},di=t)})),n=ii((e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding LCP"),pi.lcp={value:e.value,unit:"millisecond"},ui=t)}));return()=>{t&&t(),n&&n()}}return()=>{}}function _i(e){let t=ci();if(!t||!zr.performance.getEntries||!Rt)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] Adding & adjusting spans using Performance API");let n,r,i=oi(Rt),s=t.getEntries();if(s.slice(li).forEach((t=>{let s=oi(t.startTime),a=oi(t.duration);if(!("navigation"===e.op&&i+s{fi(e,t,r,n)})),fi(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),fi(e,t,"fetch",n,"cache","domainLookupStart"),fi(e,t,"domainLookup",n,"DNS"),function(e,t,n){ai(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+oi(t.requestStart),endTimestamp:n+oi(t.responseEnd)}),ai(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+oi(t.responseStart),endTimestamp:n+oi(t.responseEnd)})}(e,t,n)})(e,t,i),n=i+oi(t.responseStart),r=i+oi(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){let s=i+n,a=s+r;ai(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(e,t,s,a,i);let n=ti(),r=t.startTime{if(!pi[t]||i>=e.startTimestamp)return;let n=pi[t].value,r=i+oi(n),s=Math.abs(1e3*(r-e.startTimestamp)),a=s-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Measurements] Normalized ${t} from ${n} to ${s} (${a})`),pi[t].value=s}));let t=pi["mark.fid"];t&&pi.fid&&(ai(e,{description:"first input delay",endTimestamp:t.value+oi(pi.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete pi["mark.fid"]),"fcp"in pi||delete pi.cls,Object.keys(pi).forEach((t=>{e.setMeasurement(t,pi[t].value,pi[t].unit)})),function(e){ui&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding LCP Data"),ui.element&&e.setTag("lcp.element",le(ui.element)),ui.id&&e.setTag("lcp.id",ui.id),ui.url&&e.setTag("lcp.url",ui.url.trim().slice(0,200)),e.setTag("lcp.size",ui.size)),di&&di.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding CLS Data"),di.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,le(t.node)))))}(e)}ui=void 0,di=void 0,pi={}}function fi(e,t,n,r,i,s){let a=s?t[s]:t[`${n}End`],o=t[`${n}Start`];!o||!a||ai(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+oi(o),endTimestamp:r+oi(a)})}var mi=["localhost",/^\/(?!\/)/],gi={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:mi,tracePropagationTargets:mi};function yi(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a}=D({traceFetch:gi.traceFetch,traceXHR:gi.traceXHR},e),o="function"==typeof s?s:e=>!0,c=e=>function(e,t){return ee(e,t||mi)}(e,r||i),u={};t&&ze("fetch",(e=>{let t=function(e,t,n,r){if(!cn()||!e.fetchData)return;let i=t(e.fetchData.url);if(e.endTimestamp&&i){let t=e.fetchData.__span;if(!t)return;let n=r[t];if(n){if(e.response){n.setHttpStatus(e.response.status);let t=e.response&&e.response.headers&&e.response.headers.get("content-length"),r=parseInt(t);r>0&&n.setData("http.response_content_length",r)}else e.error&&n.setStatus("internal_error");n.finish(),delete r[t]}return}let s=sn(),a=s.getScope(),o=s.getClient(),c=a.getSpan(),{method:u,url:d}=e.fetchData,l=i&&c?c.startChild({data:{url:d,type:"fetch","http.method":u},description:`${u} ${d}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(l&&(e.fetchData.__span=l.spanId,r[l.spanId]=l),n(e.fetchData.url)&&o){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let s=i||n.getSpan(),a=s&&s.transaction,{traceId:o,sampled:c,dsc:u}=n.getPropagationContext(),d=s?s.toTraceparent():Ot(o,void 0,c),l=a?a.getDynamicSamplingContext():u||_n(o,t,n),p=Ct(l),h="undefined"!=typeof Request&&J(e,Request)?e.headers:r.headers;if(h){if("undefined"!=typeof Headers&&J(h,Headers)){let e=new Headers(h);return e.append("sentry-trace",d),p&&e.append(wt,p),e}if(Array.isArray(h)){let e=[...h,["sentry-trace",d]];return p&&e.push([wt,p]),e}{let e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),N(D({},h),{"sentry-trace":d,baggage:t.length>0?t.join(","):void 0})}}return{"sentry-trace":d,baggage:p}}(t,o,a,n,l)}return l}(e,o,c,u);a&&t&&vi(t)})),n&&ze("xhr",(e=>{let t=function(e,t,n,r){let i=e.xhr,s=i&&i[Me];if(!cn()||i&&i.__sentry_own_request__||!i||!s)return;let a=t(s.url);if(e.endTimestamp&&a){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];return void(t&&(t.setHttpStatus(s.status_code),t.finish(),delete r[e]))}let o=sn(),c=o.getScope(),u=c.getSpan(),d=a&&u?u.startChild({data:N(D({},s.data),{type:"xhr","http.method":s.method,url:s.url}),description:`${s.method} ${s.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(d&&(i.__sentry_xhr_span_id__=d.spanId,r[i.__sentry_xhr_span_id__]=d),i.setRequestHeader&&n(s.url))if(d){let e=d&&d.transaction,t=Ct(e&&e.getDynamicSamplingContext());Si(i,d.toTraceparent(),t)}else{let e=o.getClient(),{traceId:t,sampled:n,dsc:r}=c.getPropagationContext();Si(i,Ot(t,void 0,n),Ct(r||(e?_n(t,e,c):void 0)))}return d}(e,o,c,u);a&&t&&vi(t)}))}function vi(e){let t=e.data.url,n=new PerformanceObserver((r=>{r.getEntries().forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Rt?[...r,["http.request.redirect_start",Ei(e.redirectStart)],["http.request.fetch_start",Ei(e.fetchStart)],["http.request.domain_lookup_start",Ei(e.domainLookupStart)],["http.request.domain_lookup_end",Ei(e.domainLookupEnd)],["http.request.connect_start",Ei(e.connectStart)],["http.request.secure_connection_start",Ei(e.secureConnectionStart)],["http.request.connection_end",Ei(e.connectEnd)],["http.request.request_start",Ei(e.requestStart)],["http.request.response_start",Ei(e.responseStart)],["http.request.response_end",Ei(e.responseEnd)]]:r}(r).forEach((t=>e.setData(...t))),n.disconnect())}))}));n.observe({entryTypes:["resource"]})}function Ei(e=0){return((Rt||performance.timeOrigin)+e)/1e3}function Si(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(wt,n)}catch(r){}}var Ti=D(N(D({},mn),{markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!zr||!zr.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=zr.location.href;t&&(r=e({name:zr.location.pathname,startTimestamp:Rt?Rt/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&ze("history",(({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:zr.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}}),gi),bi=class{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,xn(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options=D(D({},Ti),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=hi(),this.options.enableLongTask&&Kr("longtask",(e=>{for(let t of e){let e=un();if(!e)return;let n=oi(Rt+t.startTime),r=oi(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})),this.options._experiments.enableInteractions&&Kr("event",(e=>{for(let t of e){let e=un();if(!e)return;if("click"===t.name){let n=oi(Rt+t.startTime),r=oi(t.duration);e.startChild({description:le(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;let n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:a,markBackgroundTransactions:o,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:l,_experiments:p}=this.options,h=r&&r.tracePropagationTargets,_=h||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&h&&me.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i((e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),a,s),o&&(zr&&zr.document?zr.document.addEventListener("visibilitychange",(()=>{let e=un();if(zr.document.hidden&&e){let t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),yi({traceFetch:c,traceXHR:u,tracePropagationTargets:_,shouldCreateSpanForRequest:d,enableHTTPTimings:l})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));let t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,a="pageload"===e.op,o=a?xi("sentry-trace"):"",c=a?xi("baggage"):"",{traceparentData:u,dynamicSamplingContext:d,propagationContext:l}=It(o,c),p=N(D(D({},e),u),{metadata:N(D({},e.metadata),{dynamicSamplingContext:u&&!d?{}:d}),trimEnd:!0}),h="function"==typeof n?n(p):p,_=void 0===h?N(D({},p),{sampled:!1}):h;_.metadata=_.name!==p.name?N(D({},_.metadata),{source:"custom"}):_.metadata,this._latestRouteName=_.name,this._latestRouteSource=_.metadata&&_.metadata.source,!1===_.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Will not send ${_.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Starting ${_.op} transaction on scope`);let{location:f}=zr,m=bn(t,_,r,i,!0,{location:f},s),g=t.getScope();return a&&u?g.setPropagationContext(l):g.setPropagationContext({traceId:m.traceId,spanId:m.spanId,parentSpanId:m.parentSpanId,sampled:m.sampled}),m.registerBeforeFinishCallback((e=>{this._collectWebVitals(),_i(e)})),m}_registerInteractionListener(){let e,t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",s=un();if(s&&s.op&&["navigation","pageload"].includes(s.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`));let a=this._getCurrentHub(),{location:o}=zr,c={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=bn(a,c,t,n,!0,{location:o},r)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}};function xi(e){let t=function(e){return ue.document&&ue.document.querySelector?ue.document.querySelector(e):null}(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}var Ri={};Wn.Sentry&&Wn.Sentry.Integrations&&(Ri=Wn.Sentry.Integrations),D(D(D({},Ri),Ln),Fr);var wi="https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6",Di=null;function Ni(e,t){if(!1===e)return ki(e);if(Di)return ki(Di,t);let n=new ar({dsn:wi,transport:window.fetch?or:ur,stackParser:gr,integrations:[new Ur,new vr,new jr,new Lr,new Pr,new bi]});return ki(Di=new tn(n),t)}function ki(e,t={key:"source",value:"@hCaptcha/loader"}){return{addBreadcrumb:t=>{e&&e.addBreadcrumb(t)},captureMessage:n=>{e&&e.withScope((function(r){r.setTag(t.key,t.value),e.captureMessage(n)}))},captureException:n=>{e&&e.withScope((function(r){r.setTag(t.key,t.value),e.captureEvent({message:G,level:"error",extra:n})}))}}}var Ci=[];function Bi(e={cleanup:!0},t){try{t.addBreadcrumb({category:$,message:"hCaptcha loader params",data:e});let n=U(I(e.scriptLocation)),r=Ci.find((({scope:e})=>e===n.window));if(r)return t.addBreadcrumb({category:$,message:"hCaptcha already loaded"}),r.promise;let i=new Promise(((i,s)=>B(this,null,(function*(){try{n.window[Y]=()=>{t.addBreadcrumb({category:$,message:"hCaptcha script called onload function"}),i(n.window.hcaptcha)};let s=function(e){return Object.entries(e).filter((([,e])=>e||!1===e)).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`)).join("&")}({custom:e.custom,render:e.render,sentry:e.sentry,assethost:e.assethost,imghost:e.imghost,reportapi:e.reportapi,endpoint:e.endpoint,host:e.host,recaptchacompat:e.recaptchacompat,hl:e.hl});yield function({scriptLocation:e,query:t,loadAsync:n=!0,crossOrigin:r,apihost:i="https://js.hcaptcha.com",cleanup:s=!0,secureApi:a=!1,scriptSource:o=""}={}){let c=I(e),u=U(c);return new Promise(((e,d)=>{let l=u.document.createElement("script");l.id=O,l.src=o?`${o}?onload=${Y}`:a?`${i}/1/secure-api.js?onload=${Y}`:`${i}/1/api.js?onload=${Y}`,l.crossOrigin=r,l.async=n;let p=(e,t)=>{try{!a&&s&&c.removeChild(l),t(e)}catch(n){d(n)}};l.onload=t=>p(t,e),l.onerror=e=>p(e,d),l.src+=""!==t?`&${t}`:"",c.appendChild(l)}))}(D({query:s},e)),t.addBreadcrumb({category:$,message:"hCaptcha loaded",data:r})}catch(a){t.addBreadcrumb({category:$,message:"hCaptcha failed to load",data:a});let e=Ci.findIndex((e=>e.scope===n.window));-1!==e&&Ci.splice(e,1),t.captureException(a),s(new Error(G))}}))));return Ci.push({promise:i,scope:n.window}),i}catch(n){return t.captureException(n),Promise.reject(new Error(G))}}function Ui(e,t=0){return B(this,null,(function*(){let n=t<2?"Retry loading hCaptcha Api":"Exceeded maximum retries",r=Ni(e.sentry);try{return yield Bi(e,r)}catch(i){return r.addBreadcrumb({SENTRY_SOURCE:$,message:n,data:{error:i}}),t>=2?(r.captureException(i),Promise.reject(i)):Ui(e,t+=1)}}))}function Ii(){return B(this,arguments,(function*(e={}){return yield Ui(e)}))}function Oi(e){var t=e&&e.ownerDocument||document;return{document:t,window:t.defaultView||t.parentWindow||window}}function Yi(e){return e||document.head}var Gi={key:"source",value:"@hCaptcha/react"},$i="hCaptcha component mounted",ji="hCaptcha expired",Pi="hCaptcha component unmounted",Li="hCaptcha reset",Ai="hCaptcha removed",Mi=function(r){function i(e){var i;return(i=r.call(this,e)||this)._hcaptcha=void 0,i.renderCaptcha=i.renderCaptcha.bind(t(i)),i.resetCaptcha=i.resetCaptcha.bind(t(i)),i.removeCaptcha=i.removeCaptcha.bind(t(i)),i.isReady=i.isReady.bind(t(i)),i.loadCaptcha=i.loadCaptcha.bind(t(i)),i.handleOnLoad=i.handleOnLoad.bind(t(i)),i.handleSubmit=i.handleSubmit.bind(t(i)),i.handleExpire=i.handleExpire.bind(t(i)),i.handleError=i.handleError.bind(t(i)),i.handleOpen=i.handleOpen.bind(t(i)),i.handleClose=i.handleClose.bind(t(i)),i.handleChallengeExpired=i.handleChallengeExpired.bind(t(i)),i.ref=n.createRef(),i.apiScriptRequested=!1,i.sentryHub=null,i.state={isApiReady:!1,isRemoved:!1,elementId:e.id,captchaId:""},i}e(i,r);var s=i.prototype;return s.componentDidMount=function(){var e=this,t=Oi(Yi(this.props.scriptLocation));this._hcaptcha=t.window.hcaptcha||void 0;var n=void 0!==this._hcaptcha;this.sentryHub=Ni(this.props.sentry,Gi),this.sentryHub.addBreadcrumb({category:Gi.value,message:$i}),n?this.setState({isApiReady:!0},(function(){e.renderCaptcha()})):this.loadCaptcha()},s.componentWillUnmount=function(){var e=this.state.captchaId,t=this._hcaptcha;this.isReady()&&(t.reset(e),t.remove(e),this.sentryHub.addBreadcrumb({category:Gi.value,message:Pi}))},s.shouldComponentUpdate=function(e,t){return this.state.isApiReady===t.isApiReady&&this.state.isRemoved===t.isRemoved},s.componentDidUpdate=function(e){var t=this;["sitekey","size","theme","tabindex","languageOverride","endpoint"].every((function(n){return e[n]===t.props[n]}))||this.removeCaptcha((function(){t.renderCaptcha()}))},s.loadCaptcha=function(){if(!this.apiScriptRequested){var e=this.props,t=e.apihost,n=e.assethost,r=e.endpoint,i=e.host,s=e.imghost,a=e.languageOverride,o=e.reCaptchaCompat,c=e.reportapi,u=e.sentry,d=e.custom,l=e.loadAsync,p=e.scriptLocation,h=e.scriptSource,_=e.secureApi,f=e.cleanup;Ii({render:"explicit",apihost:t,assethost:n,endpoint:r,hl:a,host:i,imghost:s,recaptchacompat:!1===o?"off":null,reportapi:c,sentry:u,custom:d,loadAsync:l,scriptLocation:p,scriptSource:h,secureApi:_,cleanup:void 0===f||f}).then(this.handleOnLoad,this.handleError).catch(this.handleError),this.apiScriptRequested=!0}},s.renderCaptcha=function(e){if(this.state.isApiReady){var t=Object.assign({"open-callback":this.handleOpen,"close-callback":this.handleClose,"error-callback":this.handleError,"chalexpired-callback":this.handleChallengeExpired,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),n=this._hcaptcha.render(this.ref.current,t);this.setState({isRemoved:!1,captchaId:n},(function(){e&&e()}))}},s.resetCaptcha=function(){var e=this.state.captchaId,t=this._hcaptcha;this.isReady()&&(t.reset(e),this.sentryHub.addBreadcrumb({category:Gi.value,message:Li}))},s.removeCaptcha=function(e){var t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(this.setState({isRemoved:!0},(function(){n.remove(t),e&&e()})),this.sentryHub.addBreadcrumb({category:Gi.value,message:Ai}))},s.handleOnLoad=function(){var e=this;this.setState({isApiReady:!0},(function(){try{var t=Oi(Yi(e.props.scriptLocation));e._hcaptcha=t.window.hcaptcha,e.renderCaptcha((function(){var t=e.props.onLoad;t&&t()}))}catch(n){e.sentryHub.captureException(n)}}))},s.handleSubmit=function(e){var t=this.props.onVerify,n=this.state,r=n.isRemoved,i=n.captchaId,s=this._hcaptcha;if(void 0!==s&&!r){var a=s.getResponse(i),o=s.getRespKey(i);t&&t(a,o)}},s.handleExpire=function(){var e=this.props.onExpire,t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(n.reset(t),e&&e(),this.sentryHub.addBreadcrumb({category:Gi.value,message:ji}))},s.handleError=function(e){var t=this.props.onError,n=this.state.captchaId,r=this._hcaptcha;this.isReady()&&r.reset(n),t&&t(e)},s.isReady=function(){var e=this.state,t=e.isApiReady,n=e.isRemoved;return t&&!n},s.handleOpen=function(){this.isReady()&&this.props.onOpen&&this.props.onOpen()},s.handleClose=function(){this.isReady()&&this.props.onClose&&this.props.onClose()},s.handleChallengeExpired=function(){this.isReady()&&this.props.onChalExpired&&this.props.onChalExpired()},s.execute=function(e){void 0===e&&(e=null);try{var t=this.state.captchaId,n=this._hcaptcha;if(!this.isReady())return;return e&&"object"!=typeof e&&(e=null),n.execute(t,e)}catch(r){this.sentryHub.captureException(r)}},s.setData=function(e){var t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(e&&"object"!=typeof e&&(e=null),n.setData(t,e))},s.getResponse=function(){return this._hcaptcha.getResponse(this.state.captchaId)},s.getRespKey=function(){return this._hcaptcha.getRespKey(this.state.captchaId)},s.render=function(){var e=this.state.elementId;return n.createElement("div",{ref:this.ref,id:e})},i}(n.Component);function Hi(){const{t:e}=r(),[t]=g.useForm(),[u,d]=n.useState(!1),[l,p]=n.useState(void 0),h=i(),_=s();return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"mb-4 text-2xl font-bold xl:text-3xl",children:e("sys.login.signInFormTitle")}),a.jsxs(g,{form:t,name:"login",size:"large",onFinish:async({password:e})=>{d(!0);try{await _({password:e,token:l})}finally{d(!1)}},children:[a.jsx(g.Item,{name:"password",rules:[{required:!0,message:e("sys.login.passwordPlaceholder")}],children:a.jsx(o.Password,{type:"password",placeholder:e("sys.login.password")})}),h&&a.jsx("div",{className:"flex flex-row justify-center",children:a.jsx(g.Item,{name:"token",children:a.jsx(Mi,{sitekey:h,onVerify:p})})}),a.jsx(g.Item,{children:a.jsx(c,{type:"primary",htmlType:"submit",className:"w-full",loading:u,children:e("sys.login.loginButton")})})]})]})}const{VITE_APP_HOMEPAGE:qi}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function Fi(){n.useEffect((()=>{document.title="Login"}),[]);const{t:e}=r(),t=u(),{colorBgElevated:i}=d();if(t.accessToken&&l(p.Token))return a.jsx(h,{to:qi,replace:!0});const s=_(i).alpha(.9).toString(),o=`linear-gradient(${s}, ${s}) center center / cover no-repeat,url(/admin/assets/overlay_2-613a921a.jpg)`;return a.jsxs(y,{className:"relative flex !min-h-screen !w-full !flex-row",children:[a.jsxs("div",{className:"hidden grow flex-col items-center justify-center gap-[80px] bg-center bg-no-repeat md:flex",style:{background:o},children:[a.jsx("div",{className:"text-3xl font-bold leading-normal lg:text-4xl xl:text-5xl",children:"PandoraNext Helper"}),a.jsx("img",{className:"max-w-[480px] xl:max-w-[560px]",src:"/admin/assets/dashboard-63c403eb.png",alt:""}),a.jsx(v.Text,{className:"flex flex-row gap-[16px] text-2xl",children:e("sys.login.signInSecondTitle")})]}),a.jsx("div",{className:"m-auto flex !h-screen w-full max-w-[480px] flex-col justify-center px-[16px] lg:px-[64px]",children:a.jsx(f,{children:a.jsx(Hi,{})})}),a.jsx("div",{className:"absolute right-2 top-0",children:a.jsx(m,{})})]})}export{Fi as default}; diff --git a/frontend/dist/assets/Page403-94145e15.js b/frontend/dist/assets/Page403-94145e15.js new file mode 100644 index 0000000..c967c8c --- /dev/null +++ b/frontend/dist/assets/Page403-94145e15.js @@ -0,0 +1 @@ +import{e,j as s,cz as c,cA as i,cB as a}from"./index-24044c4a.js";import{M as l,v as r}from"./bounce-a09546fe.js";import{T as t}from"./index-af2c6676.js";const{VITE_APP_HOMEPAGE:o}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function n(){const{colorBgBase:n,colorTextBase:d,colorPrimary:h,colorPrimaryActive:x,colorPrimaryTextActive:p,colorPrimaryHover:m}=e();return s.jsxs(s.Fragment,{children:[s.jsx(c,{children:s.jsx("title",{children:" 403 No Permission!"})}),s.jsx("div",{className:"m-auto max-w-[400px]",children:s.jsxs(l,{className:"flex flex-col items-center justify-center px-2",children:[s.jsx(i.div,{variants:r().in,children:s.jsx(t.Title,{level:3,className:"text-center",children:"No permission"})}),s.jsx(i.div,{variants:r().in,children:s.jsx(t.Paragraph,{type:"secondary",className:"text-center",children:"The page you are trying access has restricted access. Please refer to your system administrator"})}),s.jsx(i.div,{variants:r().in,children:s.jsxs("svg",{viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",width:400,height:400,className:"w-full",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[s.jsx("stop",{offset:"0%",stopColor:h}),s.jsx("stop",{offset:"100%",stopColor:h,stopOpacity:"0"})]})}),s.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),s.jsx("image",{href:"/admin/assets/character_4-9f255140.png",height:"300",x:"220",y:"30"}),s.jsx("path",{fill:h,d:"M425.545 119.2c0-5-4.6-9-9.6-8.2-2-3.7-6-6-10.2-5.9 4.3-21.4-30-21.4-25.7 0-8.7-.8-15.1 9.4-10.4 16.8 2.1 3.5 5.9 5.6 10 5.5h38.7v-.1c4.1-.4 7.2-3.9 7.2-8.1zm-321.3 81.8c.1-4.2-4.1-7.8-8.2-7-1.7-3.2-5.1-5.1-8.8-5 3.8-18.4-25.8-18.4-22 0-7.4-.7-12.9 8.1-8.9 14.4 1.8 3 5.1 4.8 8.6 4.7h33.2v-.1c3.4-.4 6.1-3.4 6.1-7z",opacity:"0.08"}),s.jsx("path",{fill:"#FFAB00",d:"M111.045 142.2c58.7-1 58.6-88.3 0-89.2-58.6 1-58.6 88.3 0 89.2z",opacity:"0.12"}),s.jsx("path",{fill:"#FFD666",d:"M111.045 121c30.8-.5 30.8-46.3 0-46.8-30.8.5-30.8 46.3 0 46.8z"}),s.jsx("path",{fill:"#FBCDBE",d:"M278.045 250.1c-4.6-6.5-14 5.1-18.1 7.2-.6-2.1 1.5-41.3-1.4-41.8-2.8-3-8.1-.7-8 3.3.2-4 .5-11.3-5.6-10.2-4.8.6-3.8 6.9-3.8 10.2.1-6.1-9.5-6.1-9.4 0v5.6c.2-4.2-5.7-6.4-8.3-3-2.6-.2-.4 41.8-1.1 43.3-.2 10 8.7 19 18.8 18.7 6.1.4 12.6-1.2 16.8-5.9l19.7-21c1.7-1.6 1.8-4.5.4-6.4z"}),s.jsx("path",{fill:"#000",fillOpacity:"0.24",fillRule:"evenodd",d:"M248.745 212.3v32.8h1.9v-31.9c.1-2.9-2.8-5.2-5.6-4.6 2 0 3.7 1.7 3.7 3.7zm-9.4 5.6v27.2h1.9v-26.3c.1-2.8-2.8-5.2-5.5-4.6 1.9 0 3.6 1.8 3.6 3.7zm-9.4 27.2v-21.6c.1-2-1.7-3.7-3.7-3.8 2.8-.6 5.6 1.8 5.5 4.6V245h-1.8v.1z",clipRule:"evenodd"}),s.jsx("path",{fill:p,d:"M244.945 189.8c-67.6 1.3-77 97-11 111.4 81 11.8 92.7-107.3 11-111.4zm-48.5 56.2c-1-40.4 49.8-63.8 79.9-36.9l-68.3 68.3c-7.5-8.7-11.6-19.9-11.6-31.4zm48.5 48.5c-11.5 0-22.7-4.1-31.4-11.6l68.3-68.3c27 30.1 3.5 80.9-36.9 79.9z"}),s.jsx("path",{fill:"url(#paint0_linear_1_129)",d:"M169.245 261h-11.3v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.8-1.4-17.1 4l-55 68.3c-2.7 3.3-1.8 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7h11.4c4.4 0 5.6-1.5 5.6-5.6-.3-4.8 2-13.8-5.6-12.9zm-30.8 0h-36l36-44.4V261zm263.9 12.1c1.9 44.8-78.7 46-78 1.2h19.3c-.8 15.3 18.3 21.4 30.1 15.5 12.7-6 12.3-29.1-1-34-5.6-2.8-16.6-2-23.1-2.1v-15.1c6.3-.2 17.6.9 22.7-2.3 11.6-5.5 11.9-25.4.9-31.4-10.8-5.9-29 .1-28.2 14.5h-19.4c-.5-28.1 35.4-38.5 57-28.2 23.4 9 24.1 45.5-.2 54.6 12.3 3.9 20.1 14.6 19.9 27.3z"}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:"paint0_linear_1_129",x1:"78.245",x2:"78.245",y1:"187.309",y2:"307.306",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:m}),s.jsx("stop",{offset:"1",stopColor:x})]})})]})}),s.jsx(a,{to:o,style:{background:d,color:n},className:"rounded-md p-4",children:"Go to Home"})]})})]})}export{n as default}; diff --git a/frontend/dist/assets/Page403-a6808818.js b/frontend/dist/assets/Page403-a6808818.js deleted file mode 100644 index 86dd66c..0000000 --- a/frontend/dist/assets/Page403-a6808818.js +++ /dev/null @@ -1 +0,0 @@ -import{e,j as s,cx as c,cy as i,cz as r}from"./index-32c3357d.js";import{M as a,v as l}from"./bounce-9497c072.js";import{T as t}from"./index-8826920f.js";import"./__commonjsHelpers__-02d3be64.js";const{VITE_APP_HOMEPAGE:o}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function n(){const{colorBgBase:n,colorTextBase:d,colorPrimary:x,colorPrimaryActive:h,colorPrimaryTextActive:m,colorPrimaryHover:p}=e();return s.jsxs(s.Fragment,{children:[s.jsx(c,{children:s.jsx("title",{children:" 403 No Permission!"})}),s.jsx("div",{className:"m-auto max-w-[400px]",children:s.jsxs(a,{className:"flex flex-col items-center justify-center px-2",children:[s.jsx(i.div,{variants:l().in,children:s.jsx(t.Title,{level:3,className:"text-center",children:"No permission"})}),s.jsx(i.div,{variants:l().in,children:s.jsx(t.Paragraph,{type:"secondary",className:"text-center",children:"The page you are trying access has restricted access. Please refer to your system administrator"})}),s.jsx(i.div,{variants:l().in,children:s.jsxs("svg",{viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",width:400,height:400,className:"w-full",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[s.jsx("stop",{offset:"0%",stopColor:x}),s.jsx("stop",{offset:"100%",stopColor:x,stopOpacity:"0"})]})}),s.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),s.jsx("image",{href:"/admin/assets/character_4-9f255140.png",height:"300",x:"220",y:"30"}),s.jsx("path",{fill:x,d:"M425.545 119.2c0-5-4.6-9-9.6-8.2-2-3.7-6-6-10.2-5.9 4.3-21.4-30-21.4-25.7 0-8.7-.8-15.1 9.4-10.4 16.8 2.1 3.5 5.9 5.6 10 5.5h38.7v-.1c4.1-.4 7.2-3.9 7.2-8.1zm-321.3 81.8c.1-4.2-4.1-7.8-8.2-7-1.7-3.2-5.1-5.1-8.8-5 3.8-18.4-25.8-18.4-22 0-7.4-.7-12.9 8.1-8.9 14.4 1.8 3 5.1 4.8 8.6 4.7h33.2v-.1c3.4-.4 6.1-3.4 6.1-7z",opacity:"0.08"}),s.jsx("path",{fill:"#FFAB00",d:"M111.045 142.2c58.7-1 58.6-88.3 0-89.2-58.6 1-58.6 88.3 0 89.2z",opacity:"0.12"}),s.jsx("path",{fill:"#FFD666",d:"M111.045 121c30.8-.5 30.8-46.3 0-46.8-30.8.5-30.8 46.3 0 46.8z"}),s.jsx("path",{fill:"#FBCDBE",d:"M278.045 250.1c-4.6-6.5-14 5.1-18.1 7.2-.6-2.1 1.5-41.3-1.4-41.8-2.8-3-8.1-.7-8 3.3.2-4 .5-11.3-5.6-10.2-4.8.6-3.8 6.9-3.8 10.2.1-6.1-9.5-6.1-9.4 0v5.6c.2-4.2-5.7-6.4-8.3-3-2.6-.2-.4 41.8-1.1 43.3-.2 10 8.7 19 18.8 18.7 6.1.4 12.6-1.2 16.8-5.9l19.7-21c1.7-1.6 1.8-4.5.4-6.4z"}),s.jsx("path",{fill:"#000",fillOpacity:"0.24",fillRule:"evenodd",d:"M248.745 212.3v32.8h1.9v-31.9c.1-2.9-2.8-5.2-5.6-4.6 2 0 3.7 1.7 3.7 3.7zm-9.4 5.6v27.2h1.9v-26.3c.1-2.8-2.8-5.2-5.5-4.6 1.9 0 3.6 1.8 3.6 3.7zm-9.4 27.2v-21.6c.1-2-1.7-3.7-3.7-3.8 2.8-.6 5.6 1.8 5.5 4.6V245h-1.8v.1z",clipRule:"evenodd"}),s.jsx("path",{fill:m,d:"M244.945 189.8c-67.6 1.3-77 97-11 111.4 81 11.8 92.7-107.3 11-111.4zm-48.5 56.2c-1-40.4 49.8-63.8 79.9-36.9l-68.3 68.3c-7.5-8.7-11.6-19.9-11.6-31.4zm48.5 48.5c-11.5 0-22.7-4.1-31.4-11.6l68.3-68.3c27 30.1 3.5 80.9-36.9 79.9z"}),s.jsx("path",{fill:"url(#paint0_linear_1_129)",d:"M169.245 261h-11.3v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.8-1.4-17.1 4l-55 68.3c-2.7 3.3-1.8 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7h11.4c4.4 0 5.6-1.5 5.6-5.6-.3-4.8 2-13.8-5.6-12.9zm-30.8 0h-36l36-44.4V261zm263.9 12.1c1.9 44.8-78.7 46-78 1.2h19.3c-.8 15.3 18.3 21.4 30.1 15.5 12.7-6 12.3-29.1-1-34-5.6-2.8-16.6-2-23.1-2.1v-15.1c6.3-.2 17.6.9 22.7-2.3 11.6-5.5 11.9-25.4.9-31.4-10.8-5.9-29 .1-28.2 14.5h-19.4c-.5-28.1 35.4-38.5 57-28.2 23.4 9 24.1 45.5-.2 54.6 12.3 3.9 20.1 14.6 19.9 27.3z"}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:"paint0_linear_1_129",x1:"78.245",x2:"78.245",y1:"187.309",y2:"307.306",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:p}),s.jsx("stop",{offset:"1",stopColor:h})]})})]})}),s.jsx(r,{to:o,style:{background:d,color:n},className:"rounded-md p-4",children:"Go to Home"})]})})]})}export{n as default}; diff --git a/frontend/dist/assets/Page404-1c1f083d.js b/frontend/dist/assets/Page404-1c1f083d.js new file mode 100644 index 0000000..452ff18 --- /dev/null +++ b/frontend/dist/assets/Page404-1c1f083d.js @@ -0,0 +1 @@ +import{e,j as s,cz as r,cA as c,cB as t}from"./index-24044c4a.js";import{M as i,v as a}from"./bounce-a09546fe.js";import{T as o}from"./index-af2c6676.js";const{VITE_APP_HOMEPAGE:l}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function n(){const{colorBgBase:n,colorTextBase:d,colorPrimary:x,colorPrimaryActive:h,colorPrimaryTextActive:p,colorPrimaryHover:m}=e();return s.jsxs(s.Fragment,{children:[s.jsx(r,{children:s.jsx("title",{children:" 404 Page Not Found!"})}),s.jsx("div",{className:"m-auto max-w-[400px]",children:s.jsxs(i,{className:"flex flex-col items-center justify-center px-2",children:[s.jsx(c.div,{variants:a().in,children:s.jsx(o.Title,{level:3,className:"text-center",children:"Sorry, Page Not Found!"})}),s.jsx(c.div,{variants:a().in,children:s.jsx(o.Paragraph,{type:"secondary",className:"text-center",children:"Sorry, we couldn’t find the page you’re looking for. Perhaps you’ve mistyped the URL? Be sure to check your spelling."})}),s.jsx(c.div,{variants:a().in,children:s.jsxs("svg",{viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",width:400,height:400,className:"w-full",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[s.jsx("stop",{offset:"0%",stopColor:x}),s.jsx("stop",{offset:"100%",stopColor:x,stopOpacity:"0"})]})}),s.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),s.jsx("image",{href:"/admin/assets/character_6-2c6258b6.png",height:"300",x:"205",y:"30"}),s.jsx("path",{fill:"#FFAB00",d:"M111.1 141.2c58.7-1 58.6-88.3 0-89.2-58.6 1-58.6 88.3 0 89.2z",opacity:"0.12"}),s.jsx("path",{fill:"#FFD666",d:"M111.1 120c30.8-.5 30.8-46.3 0-46.8-30.8.5-30.8 46.3 0 46.8z"}),s.jsx("path",{fill:p,d:"M244.9 182.5c82.3 1.4 82.2 123.8 0 125.2-82.3-1.5-82.3-123.8 0-125.2zm0 23.1c-51.8.9-51.8 77.9 0 78.8 51.8-.9 51.7-77.9 0-78.8z"}),s.jsx("path",{fill:"url(#paint0_linear_1_119)",d:"M175 265.6c1-8.7-12.1-4.8-17-5.6v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.8-1.4-17.1 4l-55 68.3c-2.7 3.3-1.8 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7c13.8-1.1 18.1 4.5 17.1-12.9zm-72.5-5.6l36-44.4V260h-36zm309.1 5.6c1-8.7-12.2-4.8-17.1-5.6v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.7-1.4-17.1 4l-55 68.3c-2.7 3.3-1.9 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7c14.1-1.1 18.2 4.5 17.2-12.9zm-72.4-5.6l36-44.4V260h-36z"}),s.jsx("path",{fill:x,d:"M425.6 118.2c0-5-4.6-9-9.6-8.2-2-3.7-6-6-10.2-5.9 4.3-21.4-30-21.4-25.7 0-8.7-.8-15.1 9.4-10.4 16.8 2.1 3.5 5.9 5.6 10 5.5h38.7v-.1c4.1-.4 7.2-3.9 7.2-8.1zM104.3 200c.1-4.2-4.1-7.8-8.2-7-1.7-3.2-5.1-5.1-8.8-5 3.8-18.4-25.8-18.4-22 0-7.4-.7-12.9 8.1-8.9 14.4 1.8 3 5.1 4.8 8.6 4.7h33.2v-.1c3.4-.4 6.1-3.4 6.1-7z",opacity:"0.08"}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:"paint0_linear_1_119",x1:"78.3",x2:"78.3",y1:"187.77",y2:"305.935",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:m}),s.jsx("stop",{offset:"1",stopColor:h})]})})]})}),s.jsx(t,{to:l,style:{background:d,color:n},className:"rounded-md p-4",children:"Go to Home"})]})})]})}export{n as default}; diff --git a/frontend/dist/assets/Page404-90495919.js b/frontend/dist/assets/Page404-90495919.js deleted file mode 100644 index 5c4bec4..0000000 --- a/frontend/dist/assets/Page404-90495919.js +++ /dev/null @@ -1 +0,0 @@ -import{e,j as s,cx as r,cy as c,cz as o}from"./index-32c3357d.js";import{M as t,v as i}from"./bounce-9497c072.js";import{T as a}from"./index-8826920f.js";import"./__commonjsHelpers__-02d3be64.js";const{VITE_APP_HOMEPAGE:l}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function n(){const{colorBgBase:n,colorTextBase:d,colorPrimary:x,colorPrimaryActive:h,colorPrimaryTextActive:p,colorPrimaryHover:m}=e();return s.jsxs(s.Fragment,{children:[s.jsx(r,{children:s.jsx("title",{children:" 404 Page Not Found!"})}),s.jsx("div",{className:"m-auto max-w-[400px]",children:s.jsxs(t,{className:"flex flex-col items-center justify-center px-2",children:[s.jsx(c.div,{variants:i().in,children:s.jsx(a.Title,{level:3,className:"text-center",children:"Sorry, Page Not Found!"})}),s.jsx(c.div,{variants:i().in,children:s.jsx(a.Paragraph,{type:"secondary",className:"text-center",children:"Sorry, we couldn’t find the page you’re looking for. Perhaps you’ve mistyped the URL? Be sure to check your spelling."})}),s.jsx(c.div,{variants:i().in,children:s.jsxs("svg",{viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",width:400,height:400,className:"w-full",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[s.jsx("stop",{offset:"0%",stopColor:x}),s.jsx("stop",{offset:"100%",stopColor:x,stopOpacity:"0"})]})}),s.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),s.jsx("image",{href:"/admin/assets/character_6-2c6258b6.png",height:"300",x:"205",y:"30"}),s.jsx("path",{fill:"#FFAB00",d:"M111.1 141.2c58.7-1 58.6-88.3 0-89.2-58.6 1-58.6 88.3 0 89.2z",opacity:"0.12"}),s.jsx("path",{fill:"#FFD666",d:"M111.1 120c30.8-.5 30.8-46.3 0-46.8-30.8.5-30.8 46.3 0 46.8z"}),s.jsx("path",{fill:p,d:"M244.9 182.5c82.3 1.4 82.2 123.8 0 125.2-82.3-1.5-82.3-123.8 0-125.2zm0 23.1c-51.8.9-51.8 77.9 0 78.8 51.8-.9 51.7-77.9 0-78.8z"}),s.jsx("path",{fill:"url(#paint0_linear_1_119)",d:"M175 265.6c1-8.7-12.1-4.8-17-5.6v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.8-1.4-17.1 4l-55 68.3c-2.7 3.3-1.8 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7c13.8-1.1 18.1 4.5 17.1-12.9zm-72.5-5.6l36-44.4V260h-36zm309.1 5.6c1-8.7-12.2-4.8-17.1-5.6v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.7-1.4-17.1 4l-55 68.3c-2.7 3.3-1.9 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7c14.1-1.1 18.2 4.5 17.2-12.9zm-72.4-5.6l36-44.4V260h-36z"}),s.jsx("path",{fill:x,d:"M425.6 118.2c0-5-4.6-9-9.6-8.2-2-3.7-6-6-10.2-5.9 4.3-21.4-30-21.4-25.7 0-8.7-.8-15.1 9.4-10.4 16.8 2.1 3.5 5.9 5.6 10 5.5h38.7v-.1c4.1-.4 7.2-3.9 7.2-8.1zM104.3 200c.1-4.2-4.1-7.8-8.2-7-1.7-3.2-5.1-5.1-8.8-5 3.8-18.4-25.8-18.4-22 0-7.4-.7-12.9 8.1-8.9 14.4 1.8 3 5.1 4.8 8.6 4.7h33.2v-.1c3.4-.4 6.1-3.4 6.1-7z",opacity:"0.08"}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:"paint0_linear_1_119",x1:"78.3",x2:"78.3",y1:"187.77",y2:"305.935",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:m}),s.jsx("stop",{offset:"1",stopColor:h})]})})]})}),s.jsx(o,{to:l,style:{background:d,color:n},className:"rounded-md p-4",children:"Go to Home"})]})})]})}export{n as default}; diff --git a/frontend/dist/assets/Page500-7abd76b3.js b/frontend/dist/assets/Page500-7abd76b3.js new file mode 100644 index 0000000..e9deab3 --- /dev/null +++ b/frontend/dist/assets/Page500-7abd76b3.js @@ -0,0 +1 @@ +import{e as c,j as s,cz as e,cA as l,cB as a}from"./index-24044c4a.js";import{M as t,v as i}from"./bounce-a09546fe.js";import{T as r}from"./index-af2c6676.js";const{VITE_APP_HOMEPAGE:h}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function n(){const{colorBgBase:n,colorTextBase:o,colorPrimary:d}=c();return s.jsxs(s.Fragment,{children:[s.jsx(e,{children:s.jsx("title",{children:" 500 Internal Server Error!"})}),s.jsx("div",{className:"m-auto max-w-[400px]",children:s.jsxs(t,{className:"flex flex-col items-center justify-center px-2",children:[s.jsx(l.div,{variants:i().in,children:s.jsx(r.Title,{level:3,className:"text-center",children:"500 Internal Server Error"})}),s.jsx(l.div,{variants:i().in,children:s.jsx(r.Paragraph,{type:"secondary",className:"text-center",children:"There was an error, please try again later."})}),s.jsx(l.div,{variants:i().in,children:s.jsxs("svg",{viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",width:400,height:400,className:"w-full",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[s.jsx("stop",{offset:"0%",stopColor:d}),s.jsx("stop",{offset:"100%",stopColor:d,stopOpacity:"0"})]})}),s.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),s.jsx("image",{href:"/admin/assets/character_8-ac2a088d.png",height:"300",x:"340",y:"30"}),s.jsx("path",{fill:d,d:"M292.4 266.4h-7.3v-.6h6.7v-59.6h-25.7V118h-23.6v-.6h24.2v88.2h25.7v60.8zM146 164.5h-.6v-21.1h16.5v-19h.6v19.7H146v20.4z"}),s.jsx("path",{fill:d,d:"M242.5 112.3c0 3.2-1.3 6.3-3.5 8.5-2.3 2.3-5.3 3.5-8.5 3.5h-82.9c-4.4.1-8.5-2.2-10.7-5.9-2.2-3.8-2.2-8.5 0-12.3 2.2-3.8 6.3-6.1 10.7-5.9h2.8c-2-7.2-.6-14.9 3.9-20.8s11.6-9.4 19-9.4h7c8.9 0 17 4.9 21.1 12.8 2-1 4.2-1.6 6.5-1.6h1.8c3.8 0 7.4 1.5 10.1 4.2 2.7 2.7 4.2 6.3 4.2 10.1v.7c0 1.3-.2 2.7-.6 3.9h6.9c6.8.2 12.2 5.6 12.2 12.2z",opacity:"0.08"}),s.jsx("path",{fill:"#fff",d:"M275.4 228.3v14c0 .8-.4 1.5-1.1 1.8-.3.2-.7.3-1.1.3-1.2 0-2.2-1-2.2-2.1v-14c0-4.7-3.5-8.6-8.1-9.1-.4 0-.7-.1-1.1-.1-5.1 0-9.2 4.1-9.2 9.2v14c0 .8-.4 1.5-1.1 1.8-.3.2-.7.3-1.1.3-1.2 0-2.2-1-2.2-2.2v-14c0-7.5 6.1-13.5 13.5-13.5.4 0 .7 0 1.1.1 7.2.6 12.6 6.4 12.6 13.5z"}),s.jsx("path",{fill:"#DFE3E8",d:"M275.4 228.3v14c.3.5.2 1.2-.3 1.6-.5.4-1.1.4-1.6 0s-.6-1.1-.3-1.6v-14c0-5.1-4.1-9.2-9.2-9.2-.4 0-.7 0-1.1.1-.4 0-.7-.1-1.1-.1-5.1 0-9.2 4.1-9.2 9.2v14c.3.5.2 1.2-.3 1.6-.5.4-1.1.4-1.6 0s-.6-1-.3-1.6v-14c-.4-4.7 1.9-9.2 5.9-11.7s9.1-2.5 13.1 0c4.1 2.4 6.4 7 6 11.7z"}),s.jsx("path",{fill:d,d:"M277.8 242.2h-33.2c-4 0-7.3 3.3-7.3 7.3v33.2c0 4 3.3 7.3 7.3 7.3h33.2c4 0 7.3-3.3 7.3-7.3v-33.2c0-4-3.3-7.3-7.3-7.3z"}),s.jsx("path",{fill:d,d:"M277.8 242.2h-24.9c-4 0-7.3 3.3-7.3 7.3v33.2c0 4 3.3 7.3 7.3 7.3h24.9c4 0 7.3-3.3 7.3-7.3v-33.2c0-4-3.3-7.3-7.3-7.3z"}),s.jsx("path",{fill:"url(#paint0_linear_1_140)",d:"M278 145h-22c-4.4 0-8 3.6-8 8v22.8c0 4.4 3.6 8 8 8h22c4.4 0 8-3.6 8-8V153c0-4.4-3.6-8-8-8z"}),s.jsx("path",{fill:d,d:"M126 129.7h-22.4c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H126c1.7 0 3-1.3 3-3v-32.8c0-1.7-1.4-3-3-3z",opacity:"0.08"}),s.jsx("path",{fill:"#fff",d:"M119.1 135.9H96.6c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H119c1.7 0 3-1.3 3-3v-32.8c.1-1.6-1.3-3-2.9-3z"}),s.jsx("path",{fill:d,d:"M119.1 135.9H96.6c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H119c1.7 0 3-1.3 3-3v-32.8c.1-1.6-1.3-3-2.9-3z",opacity:"0.48"}),s.jsx("path",{fill:d,d:"M80 243.5c.2 2 .9 3.9 2 5.5 4.4 7.8 9.4 15.5 16.2 21.3 10.1 8.5 23.2 12.2 36 15.7-1.1-.6-2.5-6.4-3-7.7-1-2.5-1.9-5.1-2.8-7.6-1.5-4-4.6-7.2-7.7-10.2-6.9-6.7-15.3-11.6-24.5-14.4-5.3-1.7-10.8-2.6-16.2-2.6z"}),s.jsx("path",{fill:d,d:"M129.8 247.8c-1-7.3-2.1-14.6-5-21.4-2.9-6.7-8-12.9-14.9-15.4l-.6 31.2c-.1 6-.2 12.1 1.5 17.9 3 10.1 13.5 21.9 23.6 25.3 1.5-4.8-1-12.2-1.7-17.2l-2.9-20.4z"}),s.jsx("path",{fill:d,d:"M237.2 164H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm0 44H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm0 44.2H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4z"}),s.jsx("path",{fill:"url(#paint1_linear_1_140)",d:"M237.6 164h-91.2c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h91.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm8.4 53.6v16.8c0 2.5-1 5-2.9 6.8-1.9 1.8-4.4 2.8-7.1 2.8h-88c-2.7 0-5.2-1-7.1-2.8-1.9-1.8-2.9-4.2-2.9-6.8v-16.8c0-5.3 4.5-9.6 10-9.6h88c2.7 0 5.2 1 7.1 2.8 1.8 1.8 2.9 4.2 2.9 6.8zm-8.4 34.4h-91.2c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h91.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4z"}),s.jsx("path",{fill:d,d:"M161.6 182c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zM162 226c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm52-6h-30c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h30c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1zm-72 46c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm52-6h-30c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h30c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1z"}),s.jsx("path",{fill:d,d:"M264.4 267.7c.5-1.8-.8-3.7-1.2-5.5-.1-.3-.1-.7 0-1 .2-1.5 1.5-2.6 3-2.6s2.8 1.1 3 2.6c.1.3 0 .7 0 1-.3 1.8-1.6 3.8-1.1 5.6l.4 1.3c.5 1.5-.7 3.1-2.3 3.1-1.6 0-2.7-1.5-2.3-3l.5-1.5zM258 158.8l9.2-4.8 8.8 4.8s-1.6 11.8-8.6 15.2c0 0-8.6-3.3-9.4-15.2z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"paint0_linear_1_140",x1:"277.574",x2:"255.652",y1:"143.24",y2:"187.057",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:d}),s.jsx("stop",{offset:"1",stopColor:d})]}),s.jsxs("linearGradient",{id:"paint1_linear_1_140",x1:"138",x2:"138",y1:"164",y2:"287.9",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:d}),s.jsx("stop",{offset:"1",stopColor:d})]})]})]})}),s.jsx(a,{to:h,style:{background:o,color:n},className:"rounded-md p-4",children:"Go to Home"})]})})]})}export{n as default}; diff --git a/frontend/dist/assets/Page500-cb5653a5.js b/frontend/dist/assets/Page500-cb5653a5.js deleted file mode 100644 index ec01753..0000000 --- a/frontend/dist/assets/Page500-cb5653a5.js +++ /dev/null @@ -1 +0,0 @@ -import{e as c,j as s,cx as e,cy as l,cz as a}from"./index-32c3357d.js";import{M as t,v as i}from"./bounce-9497c072.js";import{T as r}from"./index-8826920f.js";import"./__commonjsHelpers__-02d3be64.js";const{VITE_APP_HOMEPAGE:h}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function n(){const{colorBgBase:n,colorTextBase:o,colorPrimary:d}=c();return s.jsxs(s.Fragment,{children:[s.jsx(e,{children:s.jsx("title",{children:" 500 Internal Server Error!"})}),s.jsx("div",{className:"m-auto max-w-[400px]",children:s.jsxs(t,{className:"flex flex-col items-center justify-center px-2",children:[s.jsx(l.div,{variants:i().in,children:s.jsx(r.Title,{level:3,className:"text-center",children:"500 Internal Server Error"})}),s.jsx(l.div,{variants:i().in,children:s.jsx(r.Paragraph,{type:"secondary",className:"text-center",children:"There was an error, please try again later."})}),s.jsx(l.div,{variants:i().in,children:s.jsxs("svg",{viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",width:400,height:400,className:"w-full",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[s.jsx("stop",{offset:"0%",stopColor:d}),s.jsx("stop",{offset:"100%",stopColor:d,stopOpacity:"0"})]})}),s.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),s.jsx("image",{href:"/admin/assets/character_8-ac2a088d.png",height:"300",x:"340",y:"30"}),s.jsx("path",{fill:d,d:"M292.4 266.4h-7.3v-.6h6.7v-59.6h-25.7V118h-23.6v-.6h24.2v88.2h25.7v60.8zM146 164.5h-.6v-21.1h16.5v-19h.6v19.7H146v20.4z"}),s.jsx("path",{fill:d,d:"M242.5 112.3c0 3.2-1.3 6.3-3.5 8.5-2.3 2.3-5.3 3.5-8.5 3.5h-82.9c-4.4.1-8.5-2.2-10.7-5.9-2.2-3.8-2.2-8.5 0-12.3 2.2-3.8 6.3-6.1 10.7-5.9h2.8c-2-7.2-.6-14.9 3.9-20.8s11.6-9.4 19-9.4h7c8.9 0 17 4.9 21.1 12.8 2-1 4.2-1.6 6.5-1.6h1.8c3.8 0 7.4 1.5 10.1 4.2 2.7 2.7 4.2 6.3 4.2 10.1v.7c0 1.3-.2 2.7-.6 3.9h6.9c6.8.2 12.2 5.6 12.2 12.2z",opacity:"0.08"}),s.jsx("path",{fill:"#fff",d:"M275.4 228.3v14c0 .8-.4 1.5-1.1 1.8-.3.2-.7.3-1.1.3-1.2 0-2.2-1-2.2-2.1v-14c0-4.7-3.5-8.6-8.1-9.1-.4 0-.7-.1-1.1-.1-5.1 0-9.2 4.1-9.2 9.2v14c0 .8-.4 1.5-1.1 1.8-.3.2-.7.3-1.1.3-1.2 0-2.2-1-2.2-2.2v-14c0-7.5 6.1-13.5 13.5-13.5.4 0 .7 0 1.1.1 7.2.6 12.6 6.4 12.6 13.5z"}),s.jsx("path",{fill:"#DFE3E8",d:"M275.4 228.3v14c.3.5.2 1.2-.3 1.6-.5.4-1.1.4-1.6 0s-.6-1.1-.3-1.6v-14c0-5.1-4.1-9.2-9.2-9.2-.4 0-.7 0-1.1.1-.4 0-.7-.1-1.1-.1-5.1 0-9.2 4.1-9.2 9.2v14c.3.5.2 1.2-.3 1.6-.5.4-1.1.4-1.6 0s-.6-1-.3-1.6v-14c-.4-4.7 1.9-9.2 5.9-11.7s9.1-2.5 13.1 0c4.1 2.4 6.4 7 6 11.7z"}),s.jsx("path",{fill:d,d:"M277.8 242.2h-33.2c-4 0-7.3 3.3-7.3 7.3v33.2c0 4 3.3 7.3 7.3 7.3h33.2c4 0 7.3-3.3 7.3-7.3v-33.2c0-4-3.3-7.3-7.3-7.3z"}),s.jsx("path",{fill:d,d:"M277.8 242.2h-24.9c-4 0-7.3 3.3-7.3 7.3v33.2c0 4 3.3 7.3 7.3 7.3h24.9c4 0 7.3-3.3 7.3-7.3v-33.2c0-4-3.3-7.3-7.3-7.3z"}),s.jsx("path",{fill:"url(#paint0_linear_1_140)",d:"M278 145h-22c-4.4 0-8 3.6-8 8v22.8c0 4.4 3.6 8 8 8h22c4.4 0 8-3.6 8-8V153c0-4.4-3.6-8-8-8z"}),s.jsx("path",{fill:d,d:"M126 129.7h-22.4c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H126c1.7 0 3-1.3 3-3v-32.8c0-1.7-1.4-3-3-3z",opacity:"0.08"}),s.jsx("path",{fill:"#fff",d:"M119.1 135.9H96.6c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H119c1.7 0 3-1.3 3-3v-32.8c.1-1.6-1.3-3-2.9-3z"}),s.jsx("path",{fill:d,d:"M119.1 135.9H96.6c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H119c1.7 0 3-1.3 3-3v-32.8c.1-1.6-1.3-3-2.9-3z",opacity:"0.48"}),s.jsx("path",{fill:d,d:"M80 243.5c.2 2 .9 3.9 2 5.5 4.4 7.8 9.4 15.5 16.2 21.3 10.1 8.5 23.2 12.2 36 15.7-1.1-.6-2.5-6.4-3-7.7-1-2.5-1.9-5.1-2.8-7.6-1.5-4-4.6-7.2-7.7-10.2-6.9-6.7-15.3-11.6-24.5-14.4-5.3-1.7-10.8-2.6-16.2-2.6z"}),s.jsx("path",{fill:d,d:"M129.8 247.8c-1-7.3-2.1-14.6-5-21.4-2.9-6.7-8-12.9-14.9-15.4l-.6 31.2c-.1 6-.2 12.1 1.5 17.9 3 10.1 13.5 21.9 23.6 25.3 1.5-4.8-1-12.2-1.7-17.2l-2.9-20.4z"}),s.jsx("path",{fill:d,d:"M237.2 164H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm0 44H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm0 44.2H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4z"}),s.jsx("path",{fill:"url(#paint1_linear_1_140)",d:"M237.6 164h-91.2c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h91.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm8.4 53.6v16.8c0 2.5-1 5-2.9 6.8-1.9 1.8-4.4 2.8-7.1 2.8h-88c-2.7 0-5.2-1-7.1-2.8-1.9-1.8-2.9-4.2-2.9-6.8v-16.8c0-5.3 4.5-9.6 10-9.6h88c2.7 0 5.2 1 7.1 2.8 1.8 1.8 2.9 4.2 2.9 6.8zm-8.4 34.4h-91.2c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h91.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4z"}),s.jsx("path",{fill:d,d:"M161.6 182c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zM162 226c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm52-6h-30c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h30c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1zm-72 46c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm52-6h-30c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h30c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1z"}),s.jsx("path",{fill:d,d:"M264.4 267.7c.5-1.8-.8-3.7-1.2-5.5-.1-.3-.1-.7 0-1 .2-1.5 1.5-2.6 3-2.6s2.8 1.1 3 2.6c.1.3 0 .7 0 1-.3 1.8-1.6 3.8-1.1 5.6l.4 1.3c.5 1.5-.7 3.1-2.3 3.1-1.6 0-2.7-1.5-2.3-3l.5-1.5zM258 158.8l9.2-4.8 8.8 4.8s-1.6 11.8-8.6 15.2c0 0-8.6-3.3-9.4-15.2z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"paint0_linear_1_140",x1:"277.574",x2:"255.652",y1:"143.24",y2:"187.057",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:d}),s.jsx("stop",{offset:"1",stopColor:d})]}),s.jsxs("linearGradient",{id:"paint1_linear_1_140",x1:"138",x2:"138",y1:"164",y2:"287.9",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:d}),s.jsx("stop",{offset:"1",stopColor:d})]})]})]})}),s.jsx(a,{to:h,style:{background:o,color:n},className:"rounded-md p-4",children:"Go to Home"})]})})]})}export{n as default}; diff --git a/frontend/dist/assets/RobotOutlined-d916cdba.js b/frontend/dist/assets/RobotOutlined-1b0cee63.js similarity index 84% rename from frontend/dist/assets/RobotOutlined-d916cdba.js rename to frontend/dist/assets/RobotOutlined-1b0cee63.js index e65b46d..b60fd53 100644 --- a/frontend/dist/assets/RobotOutlined-d916cdba.js +++ b/frontend/dist/assets/RobotOutlined-1b0cee63.js @@ -1,2 +1,2 @@ -import{aa as c,r as a,A as t,n as e}from"./index-32c3357d.js";function n(){const[t]=c();return a.useMemo((()=>t),[t])}const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"};var r=function(c,n){return a.createElement(t,e({},c,{ref:n,icon:o}))}; -/**![robot](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMwMCAzMjhhNjAgNjAgMCAxMDEyMCAwIDYwIDYwIDAgMTAtMTIwIDB6TTg1MiA2NEgxNzJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjY2MGMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2ODBjMTcuNyAwIDMyLTE0LjMgMzItMzJWOTZjMC0xNy43LTE0LjMtMzItMzItMzJ6bS0zMiA2NjBIMjA0VjEyOGg2MTZ2NTk2ek02MDQgMzI4YTYwIDYwIDAgMTAxMjAgMCA2MCA2MCAwIDEwLTEyMCAwem0yNTAuMiA1NTZIMTY5LjhjLTE2LjUgMC0yOS44IDE0LjMtMjkuOCAzMnYzNmMwIDQuNCAzLjMgOCA3LjQgOGg3MjkuMWM0LjEgMCA3LjQtMy42IDcuNC04di0zNmMuMS0xNy43LTEzLjItMzItMjkuNy0zMnpNNjY0IDUwOEgzNjBjLTQuNCAwLTggMy42LTggOHY2MGMwIDQuNCAzLjYgOCA4IDhoMzA0YzQuNCAwIDgtMy42IDgtOHYtNjBjMC00LjQtMy42LTgtOC04eiIgLz48L3N2Zz4=) */const s=a.forwardRef(r);export{s as R,n as u}; +import{ac as c,r as t,A as a,n as e}from"./index-24044c4a.js";function n(){const[a]=c();return t.useMemo((()=>a),[a])}const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"};var r=function(c,n){return t.createElement(a,e({},c,{ref:n,icon:o}))}; +/**![robot](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMwMCAzMjhhNjAgNjAgMCAxMDEyMCAwIDYwIDYwIDAgMTAtMTIwIDB6TTg1MiA2NEgxNzJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjY2MGMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2ODBjMTcuNyAwIDMyLTE0LjMgMzItMzJWOTZjMC0xNy43LTE0LjMtMzItMzItMzJ6bS0zMiA2NjBIMjA0VjEyOGg2MTZ2NTk2ek02MDQgMzI4YTYwIDYwIDAgMTAxMjAgMCA2MCA2MCAwIDEwLTEyMCAwem0yNTAuMiA1NTZIMTY5LjhjLTE2LjUgMC0yOS44IDE0LjMtMjkuOCAzMnYzNmMwIDQuNCAzLjMgOCA3LjQgOGg3MjkuMWM0LjEgMCA3LjQtMy42IDcuNC04di0zNmMuMS0xNy43LTEzLjItMzItMjkuNy0zMnpNNjY0IDUwOEgzNjBjLTQuNCAwLTggMy42LTggOHY2MGMwIDQuNCAzLjYgOCA4IDhoMzA0YzQuNCAwIDgtMy42IDgtOHYtNjBjMC00LjQtMy42LTgtOC04eiIgLz48L3N2Zz4=) */const s=t.forwardRef(r);export{s as R,n as u}; diff --git a/frontend/dist/assets/ShareModal-b94ef087.js b/frontend/dist/assets/ShareModal-b94ef087.js new file mode 100644 index 0000000..1973971 --- /dev/null +++ b/frontend/dist/assets/ShareModal-b94ef087.js @@ -0,0 +1,19 @@ +import{ad as e,r as t,h as n,R as r,ae as o,af as a,ag as i,ah as l,ai as c,aj as s,ak as u,al as d,am as f,n as p,an as m,ao as g,ap as h,aq as v,ar as b,as as y,at as x,au as C,av as S,aw as w,ax as k,ay as $,az as E,aA as N,aB as I,aC as M,o as O,aD as D,aE as R,k as P,aF as T,$ as H,aG as j,aH as B,aI as z,aJ as L,aK as K,aL as A,aM as W,aN as F,a0 as _,m as V,i as Y,aO as q,aP as X,ab as G,p as U,aQ as Q,aR as Z,aS as J,aT as ee,aU as te,aV as ne,aW as re,aX as oe,aY as ae,aZ as ie,a_ as le,a$ as ce,b0 as se,b1 as ue,b2 as de,b3 as fe,b4 as pe,b5 as me,b6 as ge,b7 as he,a8 as ve,a2 as be,s as ye,q as xe,b8 as Ce,b9 as Se,ba as we,bb as ke,bc as $e,bd as Ee,be as Ne,bf as Ie,bg as Me,bh as Oe,bi as De,bj as Re,bk as Pe,bl as Te,A as He,bm as je,bn as Be,bo as ze,bp as Le,bq as Ke,br as Ae,bs as We,bt as Fe,bu as _e,B as Ve,bv as Ye,bw as qe,bx as Xe,by as Ge,bz as Ue,bA as Qe,bB as Ze,bC as Je,bD as et,bE as tt,bF as nt,bG as rt,bH as ot,bI as at,bJ as it,bK as lt,bL as ct,bM as st,bN as ut,bO as dt,bP as ft,bQ as pt,bR as mt,bS as gt,a as ht,bT as vt,bU as bt,bV as yt,a3 as xt,bW as Ct,Y as St,bX as wt,I as kt,bY as $t,bZ as Et,b_ as Nt,t as It,a6 as Mt,aa as Ot,a4 as Dt,a5 as Rt,j as Pt,W as Tt,u as Ht,P as jt}from"./index-24044c4a.js";import{C as Bt,i as zt,o as Lt,T as Kt}from"./index-af2c6676.js";import{F as At}from"./index-4dcab9f7.js";import{R as Wt,C as Ft}from"./row-2dc4d0fe.js";function _t(e){return null!=e&&e===e.window}function Vt(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:r=(()=>window),callback:o,duration:a=450}=n,i=r(),l=function(e,t){var n,r;if("undefined"==typeof window)return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return _t(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!_t(e)&&"number"!=typeof a&&(a=null===(r=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===r?void 0:r[o]),a}(i,!0),c=Date.now(),s=()=>{const n=Date.now()-c,r=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(n>a?a:n,l,t,a);_t(i)?i.scrollTo(window.pageXOffset,r):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=r:i.scrollTop=r,n0&&void 0!==arguments[0]?arguments[0]:250,n=t.useRef(null),r=t.useRef(null);return t.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(t){(t||null===n.current)&&(n.current=t),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),e)}]}var Gt=function(e,r){var o,a=e.prefixCls,i=e.id,u=e.inputElement,d=e.disabled,f=e.tabIndex,p=e.autoFocus,m=e.autoComplete,g=e.editable,h=e.activeDescendantId,v=e.value,b=e.maxLength,y=e.onKeyDown,x=e.onMouseDown,C=e.onChange,S=e.onPaste,w=e.onCompositionStart,k=e.onCompositionEnd,$=e.open,E=e.attrs,N=u||t.createElement("input",null),I=N,M=I.ref,O=I.props,D=O.onKeyDown,R=O.onChange,P=O.onMouseDown,T=O.onCompositionStart,H=O.onCompositionEnd,j=O.style;return l(!("maxLength"in N.props)),N=t.cloneElement(N,c(c(c({type:"search"},O),{},{id:i,ref:s(r,M),disabled:d,tabIndex:f,autoComplete:m||"off",autoFocus:p,className:n("".concat(a,"-selection-search-input"),null===(o=N)||void 0===o||null===(o=o.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":$?h:void 0},E),{},{value:g?v:"",maxLength:b,readOnly:!g,unselectable:g?null:"on",style:c(c({},j),{},{opacity:g?null:0}),onKeyDown:function(e){y(e),D&&D(e)},onMouseDown:function(e){x(e),P&&P(e)},onChange:function(e){C(e),R&&R(e)},onCompositionStart:function(e){w(e),T&&T(e)},onCompositionEnd:function(e){k(e),H&&H(e)},onPaste:S}))},Ut=t.forwardRef(Gt);function Qt(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Zt="undefined"!=typeof window&&window.document&&window.document.documentElement;function Jt(e){return["string","number"].includes(o(e))}function en(e){var t=void 0;return e&&(Jt(e.title)?t=e.title.toString():Jt(e.label)&&(t=e.label.toString())),t}function tn(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var nn=function(e){e.preventDefault(),e.stopPropagation()},rn=function(e){var r,o,i=e.id,l=e.prefixCls,c=e.values,s=e.open,p=e.searchValue,m=e.autoClearSearchValue,g=e.inputRef,h=e.placeholder,v=e.disabled,b=e.mode,y=e.showSearch,x=e.autoFocus,C=e.autoComplete,S=e.activeDescendantId,w=e.tabIndex,k=e.removeIcon,$=e.maxTagCount,E=e.maxTagTextLength,N=e.maxTagPlaceholder,I=void 0===N?function(e){return"+ ".concat(e.length," ...")}:N,M=e.tagRender,O=e.onToggleOpen,D=e.onRemove,R=e.onInputChange,P=e.onInputPaste,T=e.onInputKeyDown,H=e.onInputMouseDown,j=e.onInputCompositionStart,B=e.onInputCompositionEnd,z=t.useRef(null),L=t.useState(0),K=a(L,2),A=K[0],W=K[1],F=t.useState(!1),_=a(F,2),V=_[0],Y=_[1],q="".concat(l,"-selection"),X=s||"multiple"===b&&!1===m||"tags"===b?p:"",G="tags"===b||"multiple"===b&&!1===m||y&&(s||V);r=function(){W(z.current.scrollWidth)},o=[X],Zt?t.useLayoutEffect(r,o):t.useEffect(r,o);var U=function(e,r,o,a,i){return t.createElement("span",{title:en(e),className:n("".concat(q,"-item"),f({},"".concat(q,"-item-disabled"),o))},t.createElement("span",{className:"".concat(q,"-item-content")},r),a&&t.createElement(Yt,{className:"".concat(q,"-item-remove"),onMouseDown:nn,onClick:i,customizeIcon:k},"×"))},Q=t.createElement("div",{className:"".concat(q,"-search"),style:{width:A},onFocus:function(){Y(!0)},onBlur:function(){Y(!1)}},t.createElement(Ut,{ref:g,open:s,prefixCls:l,id:i,inputElement:null,disabled:v,autoFocus:x,autoComplete:C,editable:G,activeDescendantId:S,value:X,onKeyDown:T,onMouseDown:H,onChange:R,onPaste:P,onCompositionStart:j,onCompositionEnd:B,tabIndex:w,attrs:u(e,!0)}),t.createElement("span",{ref:z,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},X," ")),Z=t.createElement(d,{prefixCls:"".concat(q,"-overflow"),data:c,renderItem:function(e){var n=e.disabled,r=e.label,o=e.value,a=!v&&!n,i=r;if("number"==typeof E&&("string"==typeof r||"number"==typeof r)){var l=String(i);l.length>E&&(i="".concat(l.slice(0,E),"..."))}var c=function(t){t&&t.stopPropagation(),D(e)};return"function"==typeof M?function(e,n,r,o,a){return t.createElement("span",{onMouseDown:function(e){nn(e),O(!s)}},M({label:n,value:e,disabled:r,closable:o,onClose:a}))}(o,i,n,a,c):U(e,i,n,a,c)},renderRest:function(e){var t="function"==typeof I?I(e):I;return U({title:t},t,!1)},suffix:Q,itemKey:tn,maxCount:$});return t.createElement(t.Fragment,null,Z,!c.length&&!X&&t.createElement("span",{className:"".concat(q,"-placeholder")},h))},on=function(e){var n=e.inputElement,r=e.prefixCls,o=e.id,i=e.inputRef,l=e.disabled,c=e.autoFocus,s=e.autoComplete,d=e.activeDescendantId,f=e.mode,p=e.open,m=e.values,g=e.placeholder,h=e.tabIndex,v=e.showSearch,b=e.searchValue,y=e.activeValue,x=e.maxLength,C=e.onInputKeyDown,S=e.onInputMouseDown,w=e.onInputChange,k=e.onInputPaste,$=e.onInputCompositionStart,E=e.onInputCompositionEnd,N=e.title,I=t.useState(!1),M=a(I,2),O=M[0],D=M[1],R="combobox"===f,P=R||v,T=m[0],H=b||"";R&&y&&!O&&(H=y),t.useEffect((function(){R&&D(!1)}),[R,y]);var j=!("combobox"!==f&&!p&&!v)&&!!H,B=void 0===N?en(T):N,z=t.useMemo((function(){return T?null:t.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},g)}),[T,j,g,r]);return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(r,"-selection-search")},t.createElement(Ut,{ref:i,prefixCls:r,id:o,open:p,inputElement:n,disabled:l,autoFocus:c,autoComplete:s,editable:P,activeDescendantId:d,value:H,onKeyDown:C,onMouseDown:S,onChange:function(e){D(!0),w(e)},onPaste:k,onCompositionStart:$,onCompositionEnd:E,tabIndex:h,attrs:u(e,!0),maxLength:R?x:void 0})),!R&&T?t.createElement("span",{className:"".concat(r,"-selection-item"),title:B,style:j?{visibility:"hidden"}:void 0},T.label):null,z)},an=function(e,n){var r=t.useRef(null),o=t.useRef(!1),l=e.prefixCls,c=e.open,s=e.mode,u=e.showSearch,d=e.tokenWithEnter,f=e.autoClearSearchValue,m=e.onSearch,g=e.onSearchSubmit,h=e.onToggleOpen,v=e.onInputKeyDown,b=e.domRef;t.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var y=Xt(0),x=a(y,2),C=x[0],S=x[1],w=t.useRef(null),k=function(e){!1!==m(e,!0,o.current)&&h(!0)},$={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==i.UP&&n!==i.DOWN||e.preventDefault(),v&&v(e),n!==i.ENTER||"tags"!==s||o.current||c||null==g||g(e.target.value),t=n,[i.ESC,i.SHIFT,i.BACKSPACE,i.TAB,i.WIN_KEY,i.ALT,i.META,i.WIN_KEY_RIGHT,i.CTRL,i.SEMICOLON,i.EQUALS,i.CAPS_LOCK,i.CONTEXT_MENU,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12].includes(t)||h(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var t=e.target.value;if(d&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==s&&k(e.target.value)}},E="multiple"===s||"tags"===s?t.createElement(rn,p({},e,$)):t.createElement(on,p({},e,$));return t.createElement("div",{ref:b,className:"".concat(l,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=C();e.target===r.current||t||"combobox"===s||e.preventDefault(),("combobox"===s||u&&t)&&c||(c&&!1!==f&&m("",!0,!1),h())}},E)},ln=t.forwardRef(an),cn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],sn=function(e,r){var o=e.prefixCls;e.disabled;var a=e.visible,i=e.children,l=e.popupElement,s=e.animation,u=e.transitionName,d=e.dropdownStyle,h=e.dropdownClassName,v=e.direction,b=void 0===v?"ltr":v,y=e.placement,x=e.builtinPlacements,C=e.dropdownMatchSelectWidth,S=e.dropdownRender,w=e.dropdownAlign,k=e.getPopupContainer,$=e.empty,E=e.getTriggerDOMNode,N=e.onPopupVisibleChange,I=e.onPopupMouseEnter,M=m(e,cn),O="".concat(o,"-dropdown"),D=l;S&&(D=S(l));var R=t.useMemo((function(){return x||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(C)}),[x,C]),P=s?"".concat(O,"-").concat(s):u,T="number"==typeof C,H=t.useMemo((function(){return T?null:!1===C?"minWidth":"width"}),[C,T]),j=d;T&&(j=c(c({},j),{},{width:C}));var B=t.useRef(null);return t.useImperativeHandle(r,(function(){return{getPopupElement:function(){var e;return null===(e=B.current)||void 0===e?void 0:e.popupElement}}})),t.createElement(g,p({},M,{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:y||("rtl"===b?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:O,popupTransitionName:P,popup:t.createElement("div",{onMouseEnter:I},D),ref:B,stretch:H,popupAlign:w,popupVisible:a,getPopupContainer:k,popupClassName:n(h,f({},"".concat(O,"-empty"),$)),popupStyle:j,getTriggerDOMNode:E,onPopupVisibleChange:N}),i)},un=t.forwardRef(sn);function dn(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function fn(e){return void 0!==e&&!Number.isNaN(e)}function pn(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function mn(e){var t=c({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return h(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var gn=t.createContext(null),hn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],vn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],bn=function(e){return"tags"===e||"multiple"===e},yn=t.forwardRef((function(e,l){var s,u=e.id,d=e.prefixCls,g=e.className,h=e.showSearch,w=e.tagRender,k=e.direction,$=e.omitDomProps,E=e.displayValues,N=e.onDisplayValuesChange,I=e.emptyOptions,M=e.notFoundContent,O=void 0===M?"Not Found":M,D=e.onClear,R=e.mode,P=e.disabled,T=e.loading,H=e.getInputElement,j=e.getRawInputElement,B=e.open,z=e.defaultOpen,L=e.onDropdownVisibleChange,K=e.activeValue,A=e.onActiveValueChange,W=e.activeDescendantId,F=e.searchValue,_=e.autoClearSearchValue,V=e.onSearch,Y=e.onSearchSplit,q=e.tokenSeparators,X=e.allowClear,G=e.suffixIcon,U=e.clearIcon,Q=e.OptionList,Z=e.animation,J=e.transitionName,ee=e.dropdownStyle,te=e.dropdownClassName,ne=e.dropdownMatchSelectWidth,re=e.dropdownRender,oe=e.dropdownAlign,ae=e.placement,ie=e.builtinPlacements,le=e.getPopupContainer,ce=e.showAction,se=void 0===ce?[]:ce,ue=e.onFocus,de=e.onBlur,fe=e.onKeyUp,pe=e.onKeyDown,me=e.onMouseDown,ge=m(e,hn),he=bn(R),ve=(void 0!==h?h:he)||"combobox"===R,be=c({},ge);vn.forEach((function(e){delete be[e]})),null==$||$.forEach((function(e){delete be[e]}));var ye=t.useState(!1),xe=a(ye,2),Ce=xe[0],Se=xe[1];t.useEffect((function(){Se(y())}),[]);var we=t.useRef(null),ke=t.useRef(null),$e=t.useRef(null),Ee=t.useRef(null),Ne=t.useRef(null),Ie=t.useRef(!1),Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=t.useState(!1),r=a(n,2),o=r[0],i=r[1],l=t.useRef(null),c=function(){window.clearTimeout(l.current)};return t.useEffect((function(){return c}),[]),[o,function(t,n){c(),l.current=window.setTimeout((function(){i(t),n&&n()}),e)},c]}(),Oe=a(Me,3),De=Oe[0],Re=Oe[1],Pe=Oe[2];t.useImperativeHandle(l,(function(){var e,t;return{focus:null===(e=Ee.current)||void 0===e?void 0:e.focus,blur:null===(t=Ee.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Ne.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Te=t.useMemo((function(){var e;if("combobox"!==R)return F;var t=null===(e=E[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[F,R,E]),He="combobox"===R&&"function"==typeof H&&H()||null,je="function"==typeof j&&j(),Be=x(ke,null==je||null===(s=je.props)||void 0===s?void 0:s.ref),ze=t.useState(!1),Le=a(ze,2),Ke=Le[0],Ae=Le[1];C((function(){Ae(!0)}),[]);var We=S(!1,{defaultValue:z,value:B}),Fe=a(We,2),_e=Fe[0],Ve=Fe[1],Ye=!!Ke&&_e,qe=!O&&I;(P||qe&&Ye&&"combobox"===R)&&(Ye=!1);var Xe=!qe&&Ye,Ge=t.useCallback((function(e){var t=void 0!==e?e:!Ye;P||(Ve(t),Ye!==t&&(null==L||L(t)))}),[P,Ye,Ve,L]),Ue=t.useMemo((function(){return(q||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[q]),Qe=t.useContext(gn)||{},Ze=Qe.maxCount,Je=Qe.rawValues,et=function(e,t,n){if(!(he&&fn(Ze)&&(null==Je?void 0:Je.size)>=Ze)){var r=!0,o=e;null==A||A(null);var a=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=v(n),a=o[0],i=o.slice(1);if(!a)return[t];var l=t.split(a);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(b(t),b(e(n,i)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,q,fn(Ze)?Ze-Je.size:void 0),i=n?null:a;return"combobox"!==R&&i&&(o="",null==Y||Y(i),Ge(!1),r=!1),V&&Te!==o&&V(o,{source:t?"typing":"effect"}),r}};t.useEffect((function(){Ye||he||"combobox"===R||et("",!1,!1)}),[Ye]),t.useEffect((function(){_e&&P&&Ve(!1),P&&!Ie.current&&Re(!1)}),[P]);var tt=Xt(),nt=a(tt,2),rt=nt[0],ot=nt[1],at=t.useRef(!1),it=[];t.useEffect((function(){return function(){it.forEach((function(e){return clearTimeout(e)})),it.splice(0,it.length)}}),[]);var lt,ct=t.useState({}),st=a(ct,2)[1];je&&(lt=function(e){Ge(e)}),function(e,n,r,o){var a=t.useRef(null);a.current={open:n,triggerOpen:r,customizedTrigger:o},t.useEffect((function(){function t(t){var n;if(null===(n=a.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),a.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[we.current,null===(e=$e.current)||void 0===e?void 0:e.getPopupElement()]}),Xe,Ge,!!je);var ut,dt=t.useMemo((function(){return c(c({},e),{},{notFoundContent:O,open:Ye,triggerOpen:Xe,id:u,showSearch:ve,multiple:he,toggleOpen:Ge})}),[e,O,Xe,Ye,u,ve,he,Ge]),ft=!!G||T;ft&&(ut=t.createElement(Yt,{className:n("".concat(d,"-arrow"),f({},"".concat(d,"-arrow-loading"),T)),customizeIcon:G,customizeIconProps:{loading:T,searchValue:Te,open:Ye,focused:De,showSearch:ve}}));var pt,mt=function(e,t,n,a,i){var l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=r.useMemo((function(){return"object"===o(a)?a.clearIcon:i||void 0}),[a,i]);return{allowClear:r.useMemo((function(){return!(l||!a||!n.length&&!c||"combobox"===s&&""===c)}),[a,l,n.length,c,s]),clearIcon:r.createElement(Yt,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:u},"×")}}(d,(function(){var e;null==D||D(),null===(e=Ee.current)||void 0===e||e.focus(),N([],{type:"clear",values:E}),et("",!1,!1)}),E,X,U,P,Te,R),gt=mt.allowClear,ht=mt.clearIcon,vt=t.createElement(Q,{ref:Ne}),bt=n(d,g,f(f(f(f(f(f(f(f(f(f({},"".concat(d,"-focused"),De),"".concat(d,"-multiple"),he),"".concat(d,"-single"),!he),"".concat(d,"-allow-clear"),X),"".concat(d,"-show-arrow"),ft),"".concat(d,"-disabled"),P),"".concat(d,"-loading"),T),"".concat(d,"-open"),Ye),"".concat(d,"-customize-input"),He),"".concat(d,"-show-search"),ve)),yt=t.createElement(un,{ref:$e,disabled:P,prefixCls:d,visible:Xe,popupElement:vt,animation:Z,transitionName:J,dropdownStyle:ee,dropdownClassName:te,direction:k,dropdownMatchSelectWidth:ne,dropdownRender:re,dropdownAlign:oe,placement:ae,builtinPlacements:ie,getPopupContainer:le,empty:I,getTriggerDOMNode:function(){return ke.current},onPopupVisibleChange:lt,onPopupMouseEnter:function(){st({})}},je?t.cloneElement(je,{ref:Be}):t.createElement(ln,p({},e,{domRef:ke,prefixCls:d,inputElement:He,ref:Ee,id:u,showSearch:ve,autoClearSearchValue:_,mode:R,activeDescendantId:W,tagRender:w,values:E,open:Ye,onToggleOpen:Ge,activeValue:K,searchValue:Te,onSearch:et,onSearchSubmit:function(e){e&&e.trim()&&V(e,{source:"submit"})},onRemove:function(e){var t=E.filter((function(t){return t!==e}));N(t,{type:"remove",values:[e]})},tokenWithEnter:Ue})));return pt=je?yt:t.createElement("div",p({className:bt},be,{ref:we,onMouseDown:function(e){var t,n=e.target,r=null===(t=$e.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=it.indexOf(o);-1!==t&&it.splice(t,1),Pe(),Ce||r.contains(document.activeElement)||null===(e=Ee.current)||void 0===e||e.focus()}));it.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l=0;l-=1){var c=o[l];if(!c.disabled){o.splice(l,1),a=c;break}}a&&N(o,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d1?t-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1],n=e<0&&a.current.top||e>0&&a.current.bottom;return t&&n?(clearTimeout(o.current),r.current=!1):n&&!r.current||(clearTimeout(o.current),r.current=!0,o.current=setTimeout((function(){r.current=!1}),50)),!r.current&&n}};function Dn(n,r,o,a,i){var l=t.useRef(0),c=t.useRef(null),s=t.useRef(null),u=t.useRef(!1),d=On(r,o);var f=t.useRef(null),p=t.useRef(null);return[function(t){if(n){e.cancel(p.current),p.current=e((function(){f.current=null}),2);var r=t.deltaX,o=t.deltaY,m=t.shiftKey,g=r,h=o;("sx"===f.current||!f.current&&m&&o&&!r)&&(g=o,h=0,f.current="sx");var v=Math.abs(g),b=Math.abs(h);null===f.current&&(f.current=a&&v>b?"x":"y"),"y"===f.current?function(t,n){e.cancel(c.current),l.current+=n,s.current=n,d(n)||(Mn||t.preventDefault(),c.current=e((function(){var e=u.current?10:1;i(l.current*e),l.current=0})))}(t,h):function(e,t){i(t,!0),Mn||e.preventDefault()}(t,g)}},function(e){n&&(u.current=e.detail===s.current)}]}var Rn=14/15;var Pn=20;function Tn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,Pn),Math.floor(t)}var Hn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],jn=[],Bn={overflowY:"auto",overflowAnchor:"none"};function zn(r,i){var l=r.prefixCls,s=void 0===l?"rc-virtual-list":l,u=r.className,d=r.height,g=r.itemHeight,h=r.fullHeight,v=void 0===h||h,b=r.style,y=r.data,x=r.children,S=r.itemKey,k=r.virtual,$=r.direction,M=r.scrollWidth,O=r.component,D=void 0===O?"div":O,R=r.onScroll,P=r.onVirtualScroll,T=r.onVisibleChange,H=r.innerProps,j=r.extraRender,B=r.styles,z=m(r,Hn),L=t.useCallback((function(e){return"function"==typeof S?S(e):null==e?void 0:e[S]}),[S]),K=function(n,r,o){var i=t.useState(0),l=a(i,2),c=l[0],s=l[1],u=t.useRef(new Map),d=t.useRef(new En),f=t.useRef();function p(){e.cancel(f.current)}function m(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p();var n=function(){u.current.forEach((function(e,t){if(e&&e.offsetParent){var n=E(e),r=n.offsetHeight;d.current.get(t)!==r&&d.current.set(t,n.offsetHeight)}})),s((function(e){return e+1}))};t?n():f.current=e(n)}return t.useEffect((function(){return p}),[]),[function(e,t){var a=n(e),i=u.current.get(a);t?(u.current.set(a,t),m()):u.current.delete(a),!i!=!t&&(t?null==r||r(e):null==o||o(e))},m,d.current,c]}(L,null,null),A=a(K,4),W=A[0],F=A[1],_=A[2],V=A[3],Y=!(!1===k||!d||!g),q=t.useMemo((function(){return Object.values(_.maps).reduce((function(e,t){return e+t}),0)}),[_.id,_.maps]),X=Y&&y&&(Math.max(g*y.length,q)>d||!!M),G="rtl"===$,U=n(s,f({},"".concat(s,"-rtl"),G),u),Q=y||jn,Z=t.useRef(),J=t.useRef(),ee=t.useState(0),te=a(ee,2),ne=te[0],re=te[1],oe=t.useState(0),ae=a(oe,2),ie=ae[0],le=ae[1],ce=t.useState(!1),se=a(ce,2),ue=se[0],de=se[1],fe=function(){de(!0)},pe=function(){de(!1)},me={getKey:L};function ge(e){re((function(t){var n=function(e){var t=e;Number.isNaN(Te.current)||(t=Math.min(t,Te.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return Z.current.scrollTop=n,n}))}var he=t.useRef({start:0,end:Q.length}),ve=t.useRef(),be=In(Q,L),ye=a(be,1)[0];ve.current=ye;var xe=t.useMemo((function(){if(!Y)return{scrollHeight:void 0,start:0,end:Q.length-1,offset:void 0};var e;if(!X)return{scrollHeight:(null===(e=J.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:Q.length-1,offset:void 0};for(var t,n,r,o=0,a=Q.length,i=0;i=ne&&void 0===t&&(t=i,n=o),u>ne+d&&void 0===r&&(r=i),o=u}return void 0===t&&(t=0,n=0,r=Math.ceil(d/g)),void 0===r&&(r=Q.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,Q.length-1),offset:n}}),[X,Y,ne,Q,V,d]),Ce=xe.scrollHeight,Se=xe.start,we=xe.end,ke=xe.offset;he.current.start=Se,he.current.end=we;var $e=t.useState({width:0,height:d}),Ee=a($e,2),Ne=Ee[0],Ie=Ee[1],Me=t.useRef(),Oe=t.useRef(),De=t.useMemo((function(){return Tn(Ne.width,M)}),[Ne.width,M]),Re=t.useMemo((function(){return Tn(Ne.height,Ce)}),[Ne.height,Ce]),Pe=Ce-d,Te=t.useRef(Pe);Te.current=Pe;var He=ne<=0,je=ne>=Pe,Be=On(He,je),ze=function(){return{x:G?-ie:ie,y:ne}},Le=t.useRef(ze()),Ke=N((function(){if(P){var e=ze();Le.current.x===e.x&&Le.current.y===e.y||(P(e),Le.current=e)}}));function Ae(e,t){var n=e;t?(I.flushSync((function(){le(n)})),Ke()):ge(n)}var We=function(e){var t=e,n=M?M-Ne.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Fe=N((function(e,t){t?(I.flushSync((function(){le((function(t){return We(t+(G?-e:e))}))})),Ke()):ge((function(t){return t+e}))})),_e=Dn(Y,He,je,!!M,Fe),Ve=a(_e,2),Ye=Ve[0],qe=Ve[1];!function(e,n,r){var o,a=t.useRef(!1),i=t.useRef(0),l=t.useRef(null),c=t.useRef(null),s=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageY),n=i.current-t;i.current=t,r(n)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!r(n*=Rn,!0)||Math.abs(n)<=.1)&&clearInterval(c.current)}),16)}},u=function(){a.current=!1,o()},d=function(e){o(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",s),l.current.addEventListener("touchend",u))};o=function(){l.current&&(l.current.removeEventListener("touchmove",s),l.current.removeEventListener("touchend",u))},C((function(){return e&&n.current.addEventListener("touchstart",d),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(Y,Z,(function(e,t){return!Be(e,t)&&(Ye({preventDefault:function(){},deltaY:e}),!0)})),C((function(){function e(e){Y&&e.preventDefault()}var t=Z.current;return t.addEventListener("wheel",Ye),t.addEventListener("DOMMouseScroll",qe),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Ye),t.removeEventListener("DOMMouseScroll",qe),t.removeEventListener("MozMousePixelScroll",e)}}),[Y]),C((function(){M&&le((function(e){return We(e)}))}),[Ne.width,M]);var Xe=function(){var e,t;null===(e=Me.current)||void 0===e||e.delayHidden(),null===(t=Oe.current)||void 0===t||t.delayHidden()},Ge=function(n,r,i,l,s,u,d,f){var p=t.useRef(),m=t.useState(null),g=a(m,2),h=g[0],v=g[1];return C((function(){if(h&&h.times=0;N-=1){var I=s(r[N]),M=i.get(I);if(void 0===M){p=!0;break}if((E-=M)<=0)break}switch(b){case"top":g=x-a;break;case"bottom":g=C-f+a;break;default:var O=n.current.scrollTop;xO+f&&(m="bottom")}null!==g&&d(g),g!==h.lastTop&&(p=!0)}p&&v(c(c({},h),{},{times:h.times+1,targetAlign:m,lastTop:g}))}}),[h,n.current]),function(t){if(null!=t){if(e.cancel(p.current),"number"==typeof t)d(t);else if(t&&"object"===o(t)){var n,a=t.align;n="index"in t?t.index:r.findIndex((function(e){return s(e)===t.key}));var i=t.offset;v({times:0,index:n,offset:void 0===i?0:i,originAlign:a})}}else f()}}(Z,Q,_,g,L,(function(){return F(!0)}),ge,Xe);t.useImperativeHandle(i,(function(){return{getScrollInfo:ze,scrollTo:function(e){var t;(t=e)&&"object"===o(t)&&("left"in t||"top"in t)?(void 0!==e.left&&le(We(e.left)),Ge(e.top)):Ge(e)}}})),C((function(){if(T){var e=Q.slice(Se,we+1);T(e,Q)}}),[Se,we,Q]);var Ue=function(e,n,r,o){var i=t.useMemo((function(){return[new Map,[]]}),[e,r.id,o]),l=a(i,2),c=l[0],s=l[1];return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=c.get(t),l=c.get(a);if(void 0===i||void 0===l)for(var u=e.length,d=s.length;dd&&t.createElement(kn,{ref:Me,prefixCls:s,scrollOffset:ne,scrollRange:Ce,rtl:G,onScroll:Ae,onStartMove:fe,onStopMove:pe,spinSize:Re,containerSize:Ne.height,style:null==B?void 0:B.verticalScrollBar,thumbStyle:null==B?void 0:B.verticalScrollBarThumb}),X&&M>Ne.width&&t.createElement(kn,{ref:Oe,prefixCls:s,scrollOffset:ie,scrollRange:M,rtl:G,onScroll:Ae,onStartMove:fe,onStopMove:pe,spinSize:De,containerSize:Ne.width,horizontal:!0,style:null==B?void 0:B.horizontalScrollBar,thumbStyle:null==B?void 0:B.horizontalScrollBarThumb}))}var Ln=t.forwardRef(zn);Ln.displayName="List";var Kn=["disabled","title","children","style","className"];function An(e){return"string"==typeof e||"number"==typeof e}var Wn=function(e,r){var o=t.useContext(qt),l=o.prefixCls,c=o.id,s=o.open,d=o.multiple,g=o.mode,h=o.searchValue,v=o.toggleOpen,y=o.notFoundContent,x=o.onPopupScroll,C=t.useContext(gn),S=C.maxCount,w=C.flattenOptions,k=C.onActiveValue,$=C.defaultActiveFirstOption,E=C.onSelect,N=C.menuItemSelectedIcon,I=C.rawValues,D=C.fieldNames,R=C.virtual,P=C.direction,T=C.listHeight,H=C.listItemHeight,j=C.optionRender,B="".concat(l,"-item"),z=M((function(){return w}),[s,w],(function(e,t){return t[0]&&e[1]!==t[1]})),L=t.useRef(null),K=t.useMemo((function(){return d&&fn(S)&&(null==I?void 0:I.size)>=S}),[d,S,null==I?void 0:I.size]),A=function(e){e.preventDefault()},W=function(e){var t;null===(t=L.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},F=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=z.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=z[e];r?k(r.value,e,n):k(null,-1,n)};t.useEffect((function(){X(!1!==$?F(0):-1)}),[z.length,h]);var G=t.useCallback((function(e){return I.has(e)&&"combobox"!==g}),[g,b(I).toString(),I.size]);t.useEffect((function(){var e,t=setTimeout((function(){if(!d&&s&&1===I.size){var e=Array.from(I)[0],t=z.findIndex((function(t){return t.data.value===e}));-1!==t&&(X(t),W(t))}}));s&&(null===(e=L.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[s,h]);var U=function(e){void 0!==e&&E(e,{selected:!I.has(e)}),d||v(!1)};if(t.useImperativeHandle(r,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case i.N:case i.P:case i.UP:case i.DOWN:var r=0;if(t===i.UP?r=-1:t===i.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===i.N?r=1:t===i.P&&(r=-1)),0!==r){var o=F(Y+r,r);W(o),X(o,!0)}break;case i.ENTER:var a,l=z[Y];!l||null!=l&&null!==(a=l.data)&&void 0!==a&&a.disabled||K?U(void 0):U(l.value),s&&e.preventDefault();break;case i.ESC:v(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){W(e)}}})),0===z.length)return t.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(B,"-empty"),onMouseDown:A},y);var Q=Object.keys(D).map((function(e){return D[e]})),Z=function(e){return e.label};function J(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var ee=function(e){var n=z[e];if(!n)return null;var r=n.data||{},o=r.value,a=n.group,i=u(r,!0),l=Z(n);return n?t.createElement("div",p({"aria-label":"string"!=typeof l||a?null:l},i,{key:e},J(n,e),{"aria-selected":G(o)}),o):null},te={role:"listbox",id:"".concat(c,"_list")};return t.createElement(t.Fragment,null,R&&t.createElement("div",p({},te,{style:{height:0,width:0,overflow:"hidden"}}),ee(Y-1),ee(Y),ee(Y+1)),t.createElement(Ln,{itemKey:"key",ref:L,data:z,height:T,itemHeight:H,fullHeight:!1,onMouseDown:A,onScroll:x,virtual:R,direction:P,innerProps:R?null:te},(function(e,r){var o=e.group,a=e.groupOption,i=e.data,l=e.label,c=e.value,s=i.key;if(o){var d,g=null!==(d=i.title)&&void 0!==d?d:An(l)?l.toString():void 0;return t.createElement("div",{className:n(B,"".concat(B,"-group"),i.className),title:g},void 0!==l?l:s)}var h=i.disabled,v=i.title;i.children;var b=i.style,y=i.className,x=m(i,Kn),C=O(x,Q),S=G(c),w=h||!S&&K,k="".concat(B,"-option"),$=n(B,k,y,f(f(f(f({},"".concat(k,"-grouped"),a),"".concat(k,"-active"),Y===r&&!w),"".concat(k,"-disabled"),w),"".concat(k,"-selected"),S)),E=Z(e),I=!N||"function"==typeof N||S,M="number"==typeof E?E:E||c,D=An(M)?M.toString():void 0;return void 0!==v&&(D=v),t.createElement("div",p({},u(C),R?{}:J(e,r),{"aria-selected":S,className:$,title:D,onMouseMove:function(){Y===r||w||X(r)},onClick:function(){w||U(c)},style:b}),t.createElement("div",{className:"".concat(k,"-content")},"function"==typeof j?j(e,{index:r}):M),t.isValidElement(N)||S,I&&t.createElement(Yt,{className:"".concat(B,"-option-state"),customizeIcon:N,customizeIconProps:{value:c,disabled:w,isSelected:S}},S?"✓":null))})))},Fn=t.forwardRef(Wn);function _n(e,t){return Qt(e).join("").toUpperCase().includes(t)}var Vn=0,Yn=D();function qn(e){var n=t.useState(),r=a(n,2),o=r[0],i=r[1];return t.useEffect((function(){var e;i("rc_select_".concat((Yn?(e=Vn,Vn+=1):e="TEST_OR_SSR",e)))}),[]),e||o}var Xn=["children","value"],Gn=["children"];function Un(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return R(e).map((function(e,r){if(!t.isValidElement(e)||!e.type)return null;var o=e,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,u=m(l,Gn);return n||!a?function(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=m(r,Xn);return c({key:n,value:void 0!==a?a:n,children:o},i)}(e):c(c({key:"__RC_SELECT_GRP__".concat(null===i?r:i,"__"),label:i},u),{},{options:Un(s)})})).filter((function(e){return e}))}function Qn(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){return n.current.apply(n,arguments)}),[]);return r}var Zn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Jn=["inputValue"];var er=t.forwardRef((function(e,n){var r=e.id,i=e.mode,l=e.prefixCls,s=void 0===l?"rc-select":l,u=e.backfill,d=e.fieldNames,g=e.inputValue,h=e.searchValue,v=e.onSearch,y=e.autoClearSearchValue,x=void 0===y||y,C=e.onSelect,w=e.onDeselect,k=e.dropdownMatchSelectWidth,$=void 0===k||k,E=e.filterOption,N=e.filterSort,I=e.optionFilterProp,M=e.optionLabelProp,O=e.options,D=e.optionRender,R=e.children,P=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,H=e.virtual,j=e.direction,B=e.listHeight,z=void 0===B?200:B,L=e.listItemHeight,K=void 0===L?20:L,A=e.labelRender,W=e.value,F=e.defaultValue,_=e.labelInValue,V=e.onChange,Y=e.maxCount,q=m(e,Zn),X=qn(r),G=bn(i),U=!(O||!R),Q=t.useMemo((function(){return(void 0!==E||"combobox"!==i)&&E}),[E,i]),Z=t.useMemo((function(){return pn(d,U)}),[JSON.stringify(d),U]),J=S("",{value:void 0!==h?h:g,postState:function(e){return e||""}}),ee=a(J,2),te=ee[0],ne=ee[1],re=function(e,n,r,o,a){return t.useMemo((function(){var t=e;!e&&(t=Un(n));var i=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=pn(n,!1),i=a.label,l=a.value,c=a.options,s=a.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var a=t[l];o.push({key:dn(t,o.length),groupOption:n,data:t,label:t[i],value:a})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:dn(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(Se,{fieldNames:Z,childrenAsData:U})}),[Se,Z,U]),ke=function(e){var t=le(e);if(de(t),V&&(t.length!==ge.length||t.some((function(e,t){var n;return(null===(n=ge[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=_?t:t.map((function(e){return e.value})),r=t.map((function(e){return mn(he(e.value))}));V(G?n:n[0],G?r:r[0])}},$e=t.useState(null),Ee=a($e,2),Ne=Ee[0],Ie=Ee[1],Me=t.useState(0),Oe=a(Me,2),De=Oe[0],Re=Oe[1],Pe=void 0!==P?P:"combobox"!==i,Te=t.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Re(t),u&&"combobox"===i&&null!==e&&"keyboard"===r&&Ie(String(e))}),[u,i]),He=function(e,t,n){var r=function(){var t,n=he(e);return[_?{label:null==n?void 0:n[Z.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,mn(n)]};if(t&&C){var o=r(),i=a(o,2),l=i[0],c=i[1];C(l,c)}else if(!t&&w&&"clear"!==n){var s=r(),u=a(s,2),d=u[0],f=u[1];w(d,f)}},je=Qn((function(e,t){var n,r=!G||t.selected;n=r?G?[].concat(b(ge),[e]):[e]:ge.filter((function(t){return t.value!==e})),ke(n),He(e,r),"combobox"===i?Ie(""):bn&&!x||(ne(""),Ie(""))})),Be=t.useMemo((function(){var e=!1!==H&&!1!==$;return c(c({},re),{},{flattenOptions:we,onActiveValue:Te,defaultActiveFirstOption:Pe,onSelect:je,menuItemSelectedIcon:T,rawValues:be,fieldNames:Z,virtual:e,direction:j,listHeight:z,listItemHeight:K,childrenAsData:U,maxCount:Y,optionRender:D})}),[Y,re,we,Te,Pe,je,T,be,Z,H,$,j,z,K,U,D]);return t.createElement(gn.Provider,{value:Be},t.createElement(yn,p({},q,{id:X,prefixCls:s,ref:n,omitDomProps:Jn,mode:i,displayValues:ve,onDisplayValuesChange:function(e,t){ke(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){He(e.value,!1,n)}))},direction:j,searchValue:te,onSearch:function(e,t){if(ne(e),Ie(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===i&&ke(e),null==v||v(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(b(be),[n])));ke(r),He(n,!0),ne("")}}},autoClearSearchValue:x,onSearchSplit:function(e){var t=e;"tags"!==i&&(t=e.map((function(e){var t=ae.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(b(be),b(t))));ke(n),n.forEach((function(e){He(e,!0)}))},dropdownMatchSelectWidth:$,OptionList:Fn,emptyOptions:!we.length,activeValue:Ne,activeDescendantId:"".concat(X,"_list_").concat(De)})))}));er.Option=Cn,er.OptGroup=xn;const tr=e=>{const{componentName:n}=e,{getPrefixCls:o}=t.useContext(P),a=o("empty");switch(n){case"Table":case"List":return r.createElement(T,{image:T.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(T,{image:T.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});default:return r.createElement(T,null)}};function nr(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const rr=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},or=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},H(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${a}${l}bottomLeft\n `]:{animationName:j},[`\n ${o}${l}topLeft,\n ${a}${l}topLeft,\n ${o}${l}topRight,\n ${a}${l}topRight\n `]:{animationName:B},[`${i}${l}bottomLeft`]:{animationName:z},[`\n ${i}${l}topLeft,\n ${i}${l}topRight\n `]:{animationName:L},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},rr(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},K),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},rr(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},A(e,"slide-up"),A(e,"slide-down"),W(e,"move-up"),W(e,"move-down")]},ar=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(o).equal(),0),itemHeight:_(t),itemLineHeight:_(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},ir=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},F()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},lr=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",c=ar(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},ir(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${_(r)} 0`,lineHeight:_(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:_(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:_(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function cr(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[lr(e,t),o]}const sr=e=>{const{componentCls:t}=e,n=V(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=V(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[cr(e),cr(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},cr(r,"lg")]};function ur(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},H(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:_(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${_(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:_(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${_(r)}`,"&:after":{display:"none"}}}}}}}function dr(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ur(e),ur(V(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${_(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},ur(V(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const fr=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${_(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${_(o)} ${t.activeShadowColor}`,outline:0}}}},pr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},fr(e,t))}),mr=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},fr(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),pr(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),pr(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),gr=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${_(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},hr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},gr(e,t))}),vr=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},gr(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),hr(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),hr(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),br=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),yr=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},mr(e)),vr(e)),br(e))}),xr=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Cr=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Sr=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},H(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},xr(e)),Cr(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},K),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},K),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},F()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},wr=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Sr(e),dr(e),sr(e),or(e),{[`${t}-rtl`]:{direction:"rtl"}},q(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},kr=Y("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=V(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[wr(r),yr(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v}=e,b=2*l,y=2*r,x=Math.min(o-b,o-y),C=Math.min(a-b,a-y),S=Math.min(i-b,i-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:i,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:C,multipleItemHeightLG:S,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function $r(e){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:o,removeIcon:a,loading:i,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const m=null!=r?r:t.createElement(X,null),g=e=>null!==n||c||f?t.createElement(t.Fragment,null,!1!==u&&e,c&&d):null;let h=null;if(void 0!==n)h=g(n);else if(i)h=g(t.createElement(U,{spin:!0}));else{const e=`${s}-suffix`;h=n=>{let{open:r,showSearch:o}=n;return g(r&&o?t.createElement(Q,{className:e}):t.createElement(Z,{className:e}))}}let v=null;v=void 0!==o?o:l?t.createElement(Bt,null):null;let b=null;return b=void 0!==a?a:t.createElement(G,null),{clearIcon:m,suffixIcon:h,itemIcon:v,removeIcon:b}}var Er=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o;const{prefixCls:a,bordered:i,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:f=256,placement:p,listItemHeight:m,size:g,disabled:h,notFoundContent:v,status:b,builtinPlacements:y,dropdownMatchSelectWidth:x,popupMatchSelectWidth:C,direction:S,style:w,allowClear:k,variant:$,dropdownStyle:E,transitionName:N,tagRender:I,maxCount:M}=e,D=Er(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:R,getPrefixCls:T,renderEmpty:H,direction:j,virtual:B,popupMatchSelectWidth:z,popupOverflow:L,select:K}=t.useContext(P),[,A]=ee(),W=null!=m?m:null==A?void 0:A.controlHeight,F=T("select",a),_=T(),V=null!=S?S:j,{compactSize:Y,compactItemClassnames:q}=te(F,V),[X,G]=ne($,i),U=re(F),[Q,Z,J]=kr(F,U),de=t.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===Nr?"combobox":t}),[e.mode]),fe="multiple"===de||"tags"===de,pe=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),me=null!==(o=null!=C?C:x)&&void 0!==o?o:z,{status:ge,hasFeedback:he,isFormItemInput:ve,feedbackIcon:be}=t.useContext(oe),ye=ue(ge,b);let xe;xe=void 0!==v?v:"combobox"===de?null:(null==H?void 0:H("Select"))||t.createElement(tr,{componentName:"Select"});const{suffixIcon:Ce,itemIcon:Se,removeIcon:we,clearIcon:ke}=$r(Object.assign(Object.assign({},D),{multiple:fe,hasFeedback:he,feedbackIcon:be,showSuffixIcon:pe,prefixCls:F,componentName:"Select"})),$e=!0===k?{clearIcon:ke}:k,Ee=O(D,["suffixIcon","itemIcon"]),Ne=n(u||d,{[`${F}-dropdown-${V}`]:"rtl"===V},c,J,U,Z),Ie=ae((e=>{var t;return null!==(t=null!=g?g:Y)&&void 0!==t?t:e})),Me=t.useContext(ie),Oe=null!=h?h:Me,De=n({[`${F}-lg`]:"large"===Ie,[`${F}-sm`]:"small"===Ie,[`${F}-rtl`]:"rtl"===V,[`${F}-${X}`]:G,[`${F}-in-form-item`]:ve},le(F,ye,he),q,null==K?void 0:K.className,l,c,J,U,Z),Re=t.useMemo((()=>void 0!==p?p:"rtl"===V?"bottomRight":"bottomLeft"),[p,V]),[Pe]=ce("SelectLike",null==E?void 0:E.zIndex);return Q(t.createElement(er,Object.assign({ref:r,virtual:B,showSearch:null==K?void 0:K.showSearch},Ee,{style:Object.assign(Object.assign({},null==K?void 0:K.style),w),dropdownMatchSelectWidth:me,transitionName:se(_,"slide-up",N),builtinPlacements:nr(y,L),listHeight:f,listItemHeight:W,mode:de,prefixCls:F,placement:Re,direction:V,suffixIcon:Ce,menuItemSelectedIcon:Se,removeIcon:we,allowClear:$e,notFoundContent:xe,className:De,getPopupContainer:s||R,dropdownClassName:Ne,disabled:Oe,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:Pe}),maxCount:fe?M:void 0,tagRender:fe?I:void 0})))},Mr=t.forwardRef(Ir),Or=J(Mr);Mr.SECRET_COMBOBOX_MODE_DO_NOT_USE=Nr,Mr.Option=Cn,Mr.OptGroup=xn,Mr._InternalPanelDoNotUseOrYouWillBeFired=Or;const Dr=Mr,Rr=e=>e?"function"==typeof e?e():e:null,Pr=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},H(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},fe(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Tr=e=>{const{componentCls:t}=e;return{[t]:pe.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},Hr=Y("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=V(e,{popoverBg:t,popoverColor:n});return[Pr(r),Tr(r),de(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},me(e)),ge({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${g}px ${m}px`:0,titleBorderBottom:a?`${t}px ${s} ${u}`:"none",innerContentPadding:a?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var jr=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{hashId:r,prefixCls:o,className:a,style:i,placement:l="top",title:c,content:s,children:u}=e;return t.createElement("div",{className:n(r,o,`${o}-pure`,`${o}-placement-${l}`,a),style:i},t.createElement("div",{className:`${o}-arrow`}),t.createElement(he,Object.assign({},e,{className:r,prefixCls:o}),u||((e,n,r)=>n||r?t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${e}-title`},Rr(n)),t.createElement("div",{className:`${e}-inner-content`},Rr(r))):null)(o,c,s)))},zr=e=>{const{prefixCls:r,className:o}=e,a=jr(e,["prefixCls","className"]),{getPrefixCls:i}=t.useContext(P),l=i("popover",r),[c,s,u]=Hr(l);return c(t.createElement(Br,Object.assign({},a,{prefixCls:l,hashId:s,className:n(o,u)})))};var Lr=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{title:n,content:r,prefixCls:o}=e;return t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${o}-title`},Rr(n)),t.createElement("div",{className:`${o}-inner-content`},Rr(r)))},Ar=t.forwardRef(((e,r)=>{var o,a;const{prefixCls:l,title:c,content:s,overlayClassName:u,placement:d="top",trigger:f="hover",children:p,mouseEnterDelay:m=.1,mouseLeaveDelay:g=.1,onOpenChange:h,overlayStyle:v={}}=e,b=Lr(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:y}=t.useContext(P),x=y("popover",l),[C,w,k]=Hr(x),$=y(),E=n(u,w,k),[N,I]=S(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(a=e.defaultOpen)&&void 0!==a?a:e.defaultVisible}),M=(e,t)=>{I(e,!0),null==h||h(e,t)};return C(t.createElement(ve,Object.assign({placement:d,trigger:f,mouseEnterDelay:m,mouseLeaveDelay:g,overlayStyle:v},b,{prefixCls:x,overlayClassName:E,ref:r,open:N,onOpenChange:e=>{M(e)},overlay:c||s?t.createElement(Kr,{prefixCls:x,title:c,content:s}):null,transitionName:se($,"zoom-big",b.transitionName),"data-popover-inject":!0}),be(p,{onKeyDown:e=>{var n,r;t.isValidElement(p)&&(null===(r=null==p?void 0:(n=p.props).onKeyDown)||void 0===r||r.call(n,e)),(e=>{e.keyCode===i.ESC&&M(!1,e)})(e)}})))})),Wr=Ar;Wr._InternalPanelDoNotUseOrYouWillBeFired=zr;const Fr=Wr;var _r={exports:{}};_r.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",a="minute",i="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()1)return e(i[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},$=b;$.l=w,$.i=S,$.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function h(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var v=h.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if($.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var o=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return $},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e)25){var r=n(this).startOf(Qr).add(1,Qr).date(t),o=n(this).endOf(Ur);if(r.isBefore(o))return 1}var a=n(this).startOf(Qr).date(t).startOf(Ur).subtract(1,"millisecond"),i=this.diff(a,Ur,!0);return i<0?n(this).startOf("week").week():Math.ceil(i)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}));var eo={exports:{}};eo.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}};const to=ye(eo.exports);var no={exports:{}};no.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(a)}};const ro=ye(no.exports);var oo={exports:{}};oo.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},i=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],s=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[o,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[o,function(e){var t=s("months"),n=(s("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=i(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=i.length,c=0;c-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,a=r.month,i=r.day,l=r.hours,c=r.minutes,s=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,m=i||(o||a?1:p.getDate()),g=o||p.getFullYear(),h=0;o&&!a||(h=a>0?a-1:p.getMonth());var v=l||0,b=c||0,y=s||0,x=u||0;return d?new Date(Date.UTC(g,h,m,v,b,y,x+60*d.offset*1e3)):n?new Date(Date.UTC(g,h,m,v,b,y,x)):new Date(g,h,m,v,b,y,x)}catch(e){return new Date("")}}(t,l,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var p=l.length,m=1;m<=p;m+=1){i[1]=l[m-1];var g=n.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===p&&(this.$d=new Date(""))}else o.call(this,e)}}}();const ao=ye(oo.exports);Vr.extend(ao),Vr.extend(ro),Vr.extend(qr),Vr.extend(Gr),Vr.extend(Jr),Vr.extend(to),Vr.extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var io={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},lo=function(e){return io[e]||e.split("_")[0]},co=function(){Ce(!1,"Not match any format. Please help to fire a issue about this.")},so={getNow:function(){return Vr()},getFixedDate:function(e){return Vr(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return Vr().locale(lo(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(lo(e)).weekday(0)},getWeek:function(e,t){return t.locale(lo(e)).week()},getShortWeekDays:function(e){return Vr().locale(lo(e)).localeData().weekdaysMin()},getShortMonths:function(e){return Vr().locale(lo(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(lo(e)).format(n)},parse:function(e,t,n){for(var r=lo(e),o=0;o2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length2&&void 0!==arguments[2]?arguments[2]:[],o=t.useState([!1,!1]),i=a(o,2),l=i[0],c=i[1];return[t.useMemo((function(){return l.map((function(t,o){if(t)return!0;var a=e[o];return!!a&&(!r[o]&&!a||!(!a||!n(a,{activeIndex:o})))}))}),[e,l,n,r]),function(e,t){c((function(n){return ho(n,t,e)}))}]}function So(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function wo(e,t){var n=t.showHour,o=t.showMinute,a=t.showSecond,i=t.showMillisecond,l=t.use12Hours;return r.useMemo((function(){return function(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,m=e.yearFormat,g=e.cellYearFormat,h=e.cellQuarterFormat,v=e.dayFormat,b=e.cellDateFormat,y=So(t,n,r,o,a);return c(c({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(y),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||y,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:g||"YYYY",cellQuarterFormat:h||"[Q]Q",cellDateFormat:b||v||"D"})}(e,n,o,a,i,l)}),[e,n,o,a,i,l])}function ko(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var $o=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Eo(e){return e&&"string"==typeof e}function No(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function Io(e,t,n,r,o){var a=t,i=n,l=r;if(e||a||i||l||o){if(e){var c,s,u,d=[a,i,l].some((function(e){return!1===e})),f=[a,i,l].some((function(e){return!0===e})),p=!!d||!f;a=null!==(c=a)&&void 0!==c?c:p,i=null!==(s=i)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else a=!0,i=!0,l=!0;return[a,i,l,o]}function Mo(e){var t=e.showTime,n=function(e){var t=vo(e,$o),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a="object"===o(a)?a.format:a),"time"===r&&(t.format=a),[t,a]}(e),r=a(n,2),i=r[0],l=r[1],s=t&&"object"===o(t)?t:{},u=c(c({defaultOpenValue:s.defaultOpenValue||s.defaultValue},i),s),d=u.showMillisecond,f=u.showHour,p=u.showMinute,m=u.showSecond,g=Io(No(f,p,m,d),f,p,m,d),h=a(g,3);return f=h[0],p=h[1],m=h[2],[u,c(c({},u),{},{showHour:f,showMinute:p,showSecond:m,showMillisecond:d}),u.format,l]}function Oo(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,l=bo(e,o,null),s=[t,n],u=0;u1&&void 0!==arguments[1]&&arguments[1];return t.useMemo((function(){var t=e?go(e):e;return n&&t&&(t[1]=t[1]||t[0]),t}),[e,n])}function Xo(e,n){var r=e.generateConfig,i=e.locale,l=e.picker,s=void 0===l?"date":l,u=e.prefixCls,d=void 0===u?"rc-picker":u,f=e.styles,p=void 0===f?{}:f,m=e.classNames,g=void 0===m?{}:m,h=e.order,v=void 0===h||h,b=e.components,y=void 0===b?{}:b,x=e.inputRender,C=e.allowClear,S=e.clearIcon,w=e.needConfirm,k=e.multiple,$=e.format,E=e.inputReadOnly,I=e.disabledDate,M=e.minDate,O=e.maxDate,D=e.showTime,R=e.value,P=e.defaultValue,T=e.pickerValue,H=e.defaultPickerValue,j=qo(R),B=qo(P),z=qo(T),L=qo(H),K="date"===s&&D?"datetime":s,A="time"===K||"datetime"===K,W=A||k,F=null!=w?w:A,_=Mo(e),V=a(_,4),Y=V[0],q=V[1],X=V[2],G=V[3],U=wo(i,q),Q=t.useMemo((function(){return Oo(K,X,G,Y,U)}),[K,X,G,Y,U]),Z=t.useMemo((function(){return c(c({},e),{},{prefixCls:d,locale:U,picker:s,styles:p,classNames:g,order:v,components:c({input:x},y),clearIcon:Do(d,C,S),showTime:Q,value:j,defaultValue:B,pickerValue:z,defaultPickerValue:L},null==n?void 0:n())}),[e]),J=function(e,n,r){return t.useMemo((function(){var t=go(bo(e,n,r)),a=t[0],i="object"===o(a)&&"mask"===a.type?a.format:null;return[t.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,n,r])}(K,U,$),ee=a(J,2),te=ee[0],ne=ee[1],re=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(te,E,k),oe=function(e,t,n,r,o){return N((function(a,i){return!(!n||!n(a,i))||!(!r||!e.isAfter(r,a)||Wo(e,t,r,a,i.type))||!(!o||!e.isAfter(a,o)||Wo(e,t,o,a,i.type))}))}(r,i,I,M,O),ae=function(e,t,n,r){return N((function(o,a){var i=c({type:t},a);if(delete i.activeIndex,!e.isValidate(o)||n&&n(o,i))return!0;if(("date"===t||"time"===t)&&r){var l,s=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,a&&1===a.activeIndex?"end":"start"))||{},u=s.disabledHours,d=s.disabledMinutes,f=s.disabledSeconds,p=s.disabledMilliseconds,m=r.disabledHours,g=r.disabledMinutes,h=r.disabledSeconds,v=u||m,b=d||g,y=f||h,x=e.getHour(o),C=e.getMinute(o),S=e.getSecond(o),w=e.getMillisecond(o);if(v&&v().includes(x))return!0;if(b&&b(x).includes(C))return!0;if(y&&y(x,C).includes(S))return!0;if(p&&p(x,C,S).includes(w))return!0}return!1}))}(r,s,oe,Q);return[t.useMemo((function(){return c(c({},Z),{},{needConfirm:F,inputReadOnly:re,disabledDate:oe})}),[Z,F,re,oe]),K,W,te,ne,ae]}function Go(t,n){var o,i,l,c,s,u,d,f,p,m,g,h=arguments.length>3?arguments[3]:void 0,v=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&t,b=(i=h,l=S(n||!1,{value:o=v}),c=a(l,2),s=c[0],u=c[1],d=r.useRef(o),f=r.useRef(),p=function(){e.cancel(f.current)},m=N((function(){u(d.current),i&&s!==d.current&&i(d.current)})),g=N((function(t,n){p(),d.current=t,t||n?m():f.current=e(m)})),r.useEffect((function(){return p}),[]),[s,g]),y=a(b,2),x=y[0],C=y[1];return[x,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!x||C(e,t.force)}]}function Uo(e){var n=t.useRef();return t.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=n.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var t;null===(t=n.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=n.current)||void 0===e||e.blur()}}})),n}function Qo(e,n){return t.useMemo((function(){return e||(n?(h(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map((function(e){var t=a(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,n])}function Zo(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=t.useRef(r);a.current=r,Se((function(){if(!n){var t=e((function(){a.current(n)}),o);return function(){e.cancel(t)}}a.current(n)}),[n])}function Jo(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.useState(0),o=a(r,2),i=o[0],l=o[1],c=t.useState(!1),s=a(c,2),u=s[0],d=s[1],f=t.useRef([]),p=t.useRef(null);return Zo(u,(function(){u||(f.current=[])})),t.useEffect((function(){u&&f.current.push(i)}),[u,i]),[u,function(e){d(e)},function(e){return e&&(p.current=e),p.current},i,l,function(t){var r=f.current,o=new Set(r.filter((function(e){return t[e]||n[e]}))),a=0===r[r.length-1]?1:0;return o.size>=2||e[a]?null:a},f.current]}function ea(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var ta=[];function na(e,n,r,o,i,l,c,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:ta,d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ta,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,g="time"===c,h=l||0,v=function(t){var n=e.getNow();return g&&(n=Yo(e,n)),u[t]||r[t]||n},b=a(arguments.length>9&&void 0!==arguments[9]?arguments[9]:ta,2),y=b[0],x=b[1],w=S((function(){return v(0)}),{value:y}),k=a(w,2),$=k[0],E=k[1],N=S((function(){return v(1)}),{value:x}),I=a(N,2),M=I[0],O=I[1],D=t.useMemo((function(){var t=[$,M][h];return g?t:Yo(e,t,d[h])}),[g,$,M,h,e,d]),R=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[E,O][h])(t);var a=[$,M];a[h]=t,!f||Wo(e,n,$,a[0],c)&&Wo(e,n,M,a[1],c)||f(a,{source:r,range:1===h?"end":"start",mode:o})},P=t.useRef(null);return C((function(){if(i&&!u[h]){var t=g?null:e.getNow();if(null!==P.current&&P.current!==h?t=[$,M][1^h]:r[h]?t=0===h?r[0]:function(t,r){if(s){var o={date:"month",week:"month",month:"year",quarter:"year"}[c];if(o&&!Wo(e,n,t,r,o))return ea(e,c,r,-1);if("year"===c&&Math.floor(e.getYear(t)/10)!==Math.floor(e.getYear(r)/10))return ea(e,c,r,-1)}return r}(r[0],r[1]):r[1^h]&&(t=r[1^h]),t){p&&e.isAfter(p,t)&&(t=p);var o=s?ea(e,c,t,1):t;m&&e.isAfter(o,m)&&(t=s?ea(e,c,m,-1):m),R(t,"reset")}}}),[i,h,r[h]]),t.useEffect((function(){P.current=i?h:null}),[i,h]),C((function(){i&&u&&u[h]&&R(u[h],"reset")}),[i,h]),[D,R]}function ra(e,n){var r=t.useRef(e),o=t.useState({}),i=a(o,2)[1],l=function(e){return e&&void 0!==n?n:r.current};return[l,function(e){r.current=e,i({})},l(!0)]}var oa=[];function aa(e,t,n){return[function(r){return r.map((function(r){return Vo(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,a=0;a2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,i=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||i.push({label:mo(c,a),value:c,disabled:s})}return i}function fa(e){var n=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=r.use12Hours,i=r.hourStep,l=void 0===i?1:i,s=r.minuteStep,u=void 0===s?1:s,d=r.secondStep,f=void 0===d?1:d,p=r.millisecondStep,m=void 0===p?100:p,g=r.hideDisabledOptions,h=r.disabledTime,v=r.disabledHours,y=r.disabledMinutes,x=r.disabledSeconds,C=t.useMemo((function(){return n||e.getNow()}),[n,e]),S=t.useCallback((function(e){var t=(null==h?void 0:h(e))||{};return[t.disabledHours||v||ua,t.disabledMinutes||y||ua,t.disabledSeconds||x||ua,t.disabledMilliseconds||ua]}),[h,v,y,x]),w=t.useMemo((function(){return S(C)}),[C,S]),k=a(w,4),$=k[0],E=k[1],N=k[2],I=k[3],M=t.useCallback((function(e,t,n,r){var a=da(0,23,l,g,e()),i=o?a.map((function(e){return c(c({},e),{},{label:mo(e.value%12||12,2)})})):a;return[i,function(e){return da(0,59,u,g,t(e))},function(e,t){return da(0,59,f,g,n(e,t))},function(e,t,n){return da(0,999,m,g,r(e,t,n),3)}]}),[g,l,o,m,u,f]),O=t.useMemo((function(){return M($,E,N,I)}),[M,$,E,N,I]),D=a(O,4),R=D[0],P=D[1],T=D[2],H=D[3];return[function(t,n){var r=function(){return R},o=P,i=T,l=H;if(n){var c=S(n),s=a(c,4),u=s[0],d=s[1],f=s[2],p=s[3],m=M(u,d,f,p),g=a(m,4),h=g[0];r=function(){return h},o=g[1],i=g[2],l=g[3]}var v=function(e,t,n,r,o,a){var i=e;function l(e,t,n){var r=a[e](i),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var l=n.filter((function(e){return!e.disabled})),c=b(l).reverse().find((function(e){return e.value<=r}))||l[0];c&&(r=c.value,i=a[t](i,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),i}(t,r,o,i,l,e);return v},R,P,T,H]}function pa(e){var r=e.mode,o=e.internalMode,i=e.renderExtraFooter,l=e.showNow,c=e.showTime,s=e.onSubmit,u=e.onNow,d=e.invalid,f=e.needConfirm,p=e.generateConfig,m=e.disabledDate,g=t.useContext(uo),h=g.prefixCls,v=g.locale,b=g.button,y=void 0===b?"button":b,x=p.getNow(),C=fa(p,c,x),S=a(C,1)[0],w=null==i?void 0:i(r),k=m(x,{type:r}),$="".concat(h,"-now"),E="".concat($,"-btn"),N=l&&t.createElement("li",{className:$},t.createElement("a",{className:n(E,k&&"".concat(E,"-disabled")),"aria-disabled":k,onClick:function(){if(!k){var e=S(x);u(e)}}},"date"===o?v.today:v.now)),I=f&&t.createElement("li",{className:"".concat(h,"-ok")},t.createElement(y,{disabled:d,onClick:s},v.ok)),M=(N||I)&&t.createElement("ul",{className:"".concat(h,"-ranges")},N,I);return w||M?t.createElement("div",{className:"".concat(h,"-footer")},w&&t.createElement("div",{className:"".concat(h,"-footer-extra")},w),M):null}function ma(e,t,n){return function(r,o){var a=r.findIndex((function(r){return Wo(e,t,r,o,n)}));if(-1===a)return[].concat(b(r),[o]);var i=b(r);return i.splice(a,1),i}}var ga=t.createContext(null);function ha(){return t.useContext(ga)}function va(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,h=e.nextIcon,v=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:a,minDate:i,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:h,superPrevIcon:v,superNextIcon:b},y]}var ba=t.createContext({});function ya(e){for(var r=e.rowNum,o=e.colNum,i=e.baseDate,l=e.getCellDate,s=e.prefixColumn,u=e.rowClassName,d=e.titleFormat,p=e.getCellText,m=e.getCellClassName,g=e.headerCells,h=e.cellSelection,v=void 0===h||h,b=e.disabledDate,y=ha(),x=y.prefixCls,C=y.panelType,S=y.now,w=y.disabledDate,k=y.cellRender,$=y.onHover,E=y.hoverValue,N=y.hoverRangeValue,I=y.generateConfig,M=y.values,O=y.locale,D=y.onSelect,R=b||w,P="".concat(x,"-cell"),T=t.useContext(ba).onCellDblClick,H=[],j=0;j1&&(i=t.addDate(i,-7)),i}(l.locale,c,I),O=c.getMonth(s),D=S||y?function(e){var r=null==h?void 0:h(e,{type:"week"});return t.createElement("td",{key:"week",className:n(C,"".concat(C,"-week"),f({},"".concat(C,"-disabled"),r)),onClick:function(){r||v(e)},onMouseEnter:function(){r||null==b||b(e)},onMouseLeave:function(){r||null==b||b(null)}},t.createElement("div",{className:"".concat(C,"-inner")},c.locale.getWeek(l.locale,e)))}:null,R=[],P=l.shortWeekDays||(c.locale.getShortWeekDays?c.locale.getShortWeekDays(l.locale):[]);D&&R.push(t.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var T=0;T1&&void 0!==arguments[1]&&arguments[1];pe(e),null==k||k(e),t&&me(e)},he=function(e,t){ee(e),t&&ge(t),me(t,e)},ve=t.useMemo((function(){var e,t;if(Array.isArray(R)){var n=a(R,2);e=n[0],t=n[1]}else e=R;return e||t?(e=e||t,t=t||e,l.isAfter(e,t)?[t,e]:[e,t]):null}),[R,l]),be=xo(P,T,H),ye=B[te]||Ma[te]||Sa,xe=t.useContext(ba),Ce=t.useMemo((function(){return c(c({},xe),{},{hideHeader:z})}),[xe,z]),Se="".concat(L,"-panel"),we=vo(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return t.createElement(ba.Provider,{value:Ce},t.createElement("div",{ref:K,tabIndex:m,className:n(Se,f({},"".concat(Se,"-rtl"),"rtl"===s))},t.createElement(ye,p({},we,{showTime:G,prefixCls:L,locale:q,generateConfig:l,onModeChange:he,pickerValue:fe,onPickerValueChange:function(e){ge(e,!0)},value:le[0],onSelect:function(e){if(se(e),ge(e),J!==M){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(b(n),["week"]),date:[].concat(b(n),["date"])}[M]||n,o=r.indexOf(J),a=r[o+1];a&&he(a,e)}},values:le,cellRender:be,hoverRangeValue:ve,hoverValue:D}))))}var Da=t.memo(t.forwardRef(Oa));function Ra(e){var n=e.picker,r=e.multiplePanel,o=e.pickerValue,a=e.onPickerValueChange,i=e.needConfirm,l=e.onSubmit,s=e.range,u=e.hoverValue,d=t.useContext(uo),f=d.prefixCls,m=d.generateConfig,g=t.useCallback((function(e,t){return ea(m,n,e,t)}),[m,n]),h=t.useMemo((function(){return g(o,1)}),[o,g]),v={onCellDblClick:function(){i&&l()}},b="time"===n,y=c(c({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:b});return s?y.hoverRangeValue=u:y.hoverValue=u,r?t.createElement("div",{className:"".concat(f,"-panels")},t.createElement(ba.Provider,{value:c(c({},v),{},{hideNext:!0})},t.createElement(Da,y)),t.createElement(ba.Provider,{value:c(c({},v),{},{hidePrev:!0})},t.createElement(Da,p({},y,{pickerValue:h,onPickerValueChange:function(e){a(g(e,-1))}})))):t.createElement(ba.Provider,{value:c({},v)},t.createElement(Da,y))}function Pa(e){return"function"==typeof e?e():e}function Ta(e){var n=e.prefixCls,r=e.presets,o=e.onClick,a=e.onHover;return r.length?t.createElement("div",{className:"".concat(n,"-presets")},t.createElement("ul",null,r.map((function(e,n){var r=e.label,i=e.value;return t.createElement("li",{key:n,onClick:function(){o(Pa(i))},onMouseEnter:function(){a(Pa(i))},onMouseLeave:function(){a(null)}},r)})))):null}function Ha(e){var r=e.panelRender,o=e.internalMode,i=e.picker,l=e.showNow,c=e.range,s=e.multiple,u=e.activeOffset,d=void 0===u?0:u,m=e.presets,g=e.onPresetHover,h=e.onPresetSubmit,v=e.onFocus,b=e.onBlur,y=e.direction,x=e.value,C=e.onSelect,S=e.isInvalid,k=e.defaultOpenValue,$=e.onOk,E=e.onSubmit,N=t.useContext(uo).prefixCls,I="".concat(N,"-panel"),M="rtl"===y,O=t.useRef(null),D=t.useRef(null),R=t.useState(0),P=a(R,2),T=P[0],H=P[1],j=t.useState(0),B=a(j,2),z=B[0],L=B[1];function K(e){return e.filter((function(e){return e}))}t.useEffect((function(){if(c){var e,t=(null===(e=O.current)||void 0===e?void 0:e.offsetWidth)||0;L(d<=T-t?0:d+t-T)}}),[T,d,c]);var A=t.useMemo((function(){return K(go(x))}),[x]),W="time"===i&&!A.length,F=t.useMemo((function(){return W?K([k]):A}),[W,A,k]),_=W?k:A,V=t.useMemo((function(){return!F.length||F.some((function(e){return S(e)}))}),[F,S]),Y=t.createElement("div",{className:"".concat(N,"-panel-layout")},t.createElement(Ta,{prefixCls:N,presets:m,onClick:h,onHover:g}),t.createElement("div",null,t.createElement(Ra,p({},e,{value:_})),t.createElement(pa,p({},e,{showNow:!s&&l,invalid:V,onSubmit:function(){W&&C(k),$(),E()}}))));r&&(Y=r(Y));var q="".concat(I,"-container"),X="marginLeft",G="marginRight",U=t.createElement("div",{tabIndex:-1,className:n(q,"".concat(N,"-").concat(o,"-panel-container")),style:f(f({},M?G:X,z),M?X:G,"auto"),onFocus:v,onBlur:b},Y);return c&&(U=t.createElement("div",{ref:D,className:n("".concat(N,"-range-wrapper"),"".concat(N,"-").concat(i,"-range-wrapper"))},t.createElement("div",{ref:O,className:"".concat(N,"-range-arrow"),style:f({},M?"right":"left",d)}),t.createElement(w,{onResize:function(e){e.offsetWidth&&H(e.offsetWidth)}},U))),U}function ja(e,n){var r=e.format,o=e.maskFormat,a=e.generateConfig,i=e.locale,l=e.preserveInvalidOnBlur,s=e.inputReadOnly,d=e.required,f=e["aria-required"],p=e.onSubmit,m=e.onFocus,g=e.onBlur,h=e.onInputChange,v=e.onInvalid,b=e.open,y=e.onOpenChange,x=e.onKeyDown,C=e.onChange,S=e.activeHelp,w=e.name,k=e.autoComplete,$=e.id,E=e.value,N=e.invalid,I=e.placeholder,M=e.disabled,O=e.activeIndex,D=e.allHelp,R=e.picker,P=function(e,t){var n=a.locale.parse(i.locale,e,[t]);return n&&a.isValidate(n)?n:null},T=r[0],H=t.useCallback((function(e){return Vo(e,{locale:i,format:T,generateConfig:a})}),[i,a,T]),j=t.useMemo((function(){return E.map(H)}),[E,H]),B=t.useMemo((function(){var e="time"===R?8:10,t="function"==typeof T?T(a.getNow()).length:T.length;return Math.max(e,t)+2}),[T,R,a]),z=function(e){for(var t=0;t=a&&e<=i)return r;var l=Math.min(Math.abs(e-a),Math.abs(e-i));l0?r:o));var u=o-r+1;return String(r+(u+(s+e)-r)%u)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",l(-1);break;case"ArrowRight":n="",l(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=Y+t)}if(null!==n&&(q(n),n.length>=o&&(l(1),q(""))),null!==r){var s=ne.slice(0,ce)+mo(r,o)+ne.slice(se);de(s.slice(0,u.length))}te({})},onMouseDown:function(){fe.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=ae.getMaskCellIndex(t);Q(n),te({}),null==O||O(e),fe.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");d(t)&&de(t)}}:{};return t.createElement("div",{ref:re,className:n(H,f(f({},"".concat(H,"-active"),i&&c),"".concat(H,"-placeholder"),h))},t.createElement(T,p({ref:oe,"aria-invalid":w,autoComplete:"off"},$,{onKeyDown:me,onBlur:pe},he,{value:ne,onChange:function(e){if(!u){var t=e.target.value;ue(t),F(t),g(t)}}})),t.createElement(Aa,{type:"suffix",icon:s}),k)})),qa=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],Xa=["index"];function Ga(e,r){var i=e.id,l=e.clearIcon,s=e.suffixIcon,u=e.separator,d=void 0===u?"~":u,g=e.activeIndex;e.activeHelp,e.allHelp;var h=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var v=e.placeholder,b=e.className,y=e.style,x=e.onClick,C=e.onClear,S=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var k=e.disabled,$=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var I=e.onActiveOffset,M=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,D=m(e,qa),R="rtl"===E,P=t.useContext(uo).prefixCls,T=t.useMemo((function(){if("string"==typeof i)return[i];var e=i||{};return[e.start,e.end]}),[i]),H=t.useRef(),j=t.useRef(),B=t.useRef(),z=function(e){var t;return null===(t=[j,B][e])||void 0===t?void 0:t.current};t.useImperativeHandle(r,(function(){return{nativeElement:H.current,focus:function(e){if("object"===o(e)){var t,n=e||{},r=n.index,a=void 0===r?0:r,i=m(n,Xa);null===(t=z(a))||void 0===t||t.focus(i)}else{var l;null===(l=z(null!=e?e:0))||void 0===l||l.focus()}},blur:function(){var e,t;null===(e=z(0))||void 0===e||e.blur(),null===(t=z(1))||void 0===t||t.blur()}}}));var L=za(D),K=t.useMemo((function(){return Array.isArray(v)?v:[v,v]}),[v]),A=ja(c(c({},e),{},{id:T,placeholder:K})),W=a(A,1)[0],F=R?"right":"left",_=t.useState(f({position:"absolute",width:0},F,0)),V=a(_,2),Y=V[0],q=V[1],X=N((function(){var e=z(g);if(e){var t=e.nativeElement,n=t.offsetWidth,r=t.offsetLeft,o=t.offsetParent,a=r;if(R){var i=o,l=getComputedStyle(i);a=i.offsetWidth-parseFloat(l.borderRightWidth)-parseFloat(l.borderLeftWidth)-r-n}q((function(e){return c(c({},e),{},f({width:n},F,a))})),I(0===g?0:a)}}));t.useEffect((function(){X()}),[g]);var G=l&&(S[0]&&!k[0]||S[1]&&!k[1]),U=O&&!k[0],Q=O&&!U&&!k[1];return t.createElement(w,{onResize:X},t.createElement("div",p({},L,{className:n(P,"".concat(P,"-range"),f(f(f(f({},"".concat(P,"-focused"),h),"".concat(P,"-disabled"),k.every((function(e){return e}))),"".concat(P,"-invalid"),$.some((function(e){return e}))),"".concat(P,"-rtl"),R),b),style:y,ref:H,onClick:x,onMouseDown:function(e){var t=e.target;t!==j.current.inputElement&&t!==B.current.inputElement&&e.preventDefault(),null==M||M(e)}}),t.createElement(Ya,p({ref:j},W(0),{autoFocus:U,"date-range":"start"})),t.createElement("div",{className:"".concat(P,"-range-separator")},d),t.createElement(Ya,p({ref:B},W(1),{autoFocus:Q,"date-range":"end"})),t.createElement("div",{className:"".concat(P,"-active-bar"),style:Y}),t.createElement(Aa,{type:"suffix",icon:s}),G&&t.createElement(Wa,{icon:l,onClear:C})))}var Ua=t.forwardRef(Ga);function Qa(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function Za(e){return 1===e?"end":"start"}function Ja(e,n){var r=Xo(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:Qa(t,!1),allowEmpty:Qa(n,!1)}})),o=a(r,6),i=o[0],l=o[1],s=o[2],d=o[3],f=o[4],m=o[5],g=i.prefixCls,h=i.styles,v=i.classNames,y=i.defaultValue,x=i.value,w=i.needConfirm,k=i.onKeyDown,$=i.disabled,E=i.allowEmpty,I=i.disabledDate,M=i.minDate,D=i.maxDate,R=i.defaultOpen,P=i.open,T=i.onOpenChange,H=i.locale,j=i.generateConfig,B=i.picker,z=i.showNow,L=i.showToday,K=i.showTime,A=i.mode,W=i.onPanelChange,F=i.onCalendarChange,_=i.onOk,V=i.defaultPickerValue,Y=i.pickerValue,q=i.onPickerValueChange,X=i.inputReadOnly,G=i.suffixIcon,U=i.onFocus,Q=i.onBlur,Z=i.presets,J=i.ranges,ee=i.components,te=i.cellRender,ne=i.dateRender,re=i.monthCellRender,oe=i.onClick,ae=Uo(n),ie=Go(P,R,$,T),le=a(ie,2),ce=le[0],se=le[1],ue=function(e,t){!$.some((function(e){return!e}))&&e||se(e,t)},de=la(j,H,d,!0,!1,y,x,F,_),fe=a(de,5),pe=fe[0],me=fe[1],ge=fe[2],he=fe[3],ve=fe[4],be=ge(),ye=Jo($,E),xe=a(ye,7),Ce=xe[0],Se=xe[1],we=xe[2],ke=xe[3],$e=xe[4],Ee=xe[5],Ne=xe[6],Ie=function(e,t){Se(!0),null==U||U(e,{range:Za(null!=t?t:ke)})},Me=function(e,t){Se(!1),null==Q||Q(e,{range:Za(null!=t?t:ke)})},Oe=t.useMemo((function(){if(!K)return null;var e=K.disabledTime,t=e?function(t){var n=Za(ke);return e(t,n)}:void 0;return c(c({},K),{},{disabledTime:t})}),[K,ke]),De=S([B,B],{value:A}),Re=a(De,2),Pe=Re[0],Te=Re[1],He=Pe[ke]||B,je="date"===He&&Oe?"datetime":He,Be=je===B&&"time"!==je,ze=sa(B,He,z,L,!0),Le=ca(i,pe,me,ge,he,$,d,Ce,ce,m),Ke=a(Le,2),Ae=Ke[0],We=Ke[1],Fe=function(e,t,n,r,o,i){var l=n[n.length-1],s=n.find((function(t){return e[t]}));return function(n,u){var d=a(e,2),f=d[0],p=d[1],m=c(c({},u),{},{from:l!==s?e[s]:void 0});return!(1!==l||!t[0]||!f||Wo(r,o,f,n,m.type)||!r.isAfter(f,n))||!(0!==l||!t[1]||!p||Wo(r,o,p,n,m.type)||!r.isAfter(n,p))||(null==i?void 0:i(n,m))}}(be,$,Ne,j,H,I),_e=Co(be,m,E),Ve=a(_e,2),Ye=Ve[0],qe=Ve[1],Xe=na(j,H,be,Pe,ce,ke,l,Be,V,Y,null==Oe?void 0:Oe.defaultOpenValue,q,M,D),Ge=a(Xe,2),Ue=Ge[0],Qe=Ge[1],Ze=N((function(e,t,n){var r=ho(Pe,ke,t);if(r[0]===Pe[0]&&r[1]===Pe[1]||Te(r),W&&!1!==n){var o=b(be);e&&(o[ke]=e),W(o,r)}})),Je=function(e,t){return ho(be,t,e)},et=function(e,t){var n=be;e&&(n=Je(e,ke));var r=Ee(n);he(n),Ae(ke,null===r),null===r?ue(!1,{force:!0}):t||ae.current.focus({index:r})},tt=t.useState(null),nt=a(tt,2),rt=nt[0],ot=nt[1],at=t.useState(null),it=a(at,2),lt=it[0],ct=it[1],st=t.useMemo((function(){return lt||be}),[be,lt]);t.useEffect((function(){ce||ct(null)}),[ce]);var ut=t.useState(0),dt=a(ut,2),ft=dt[0],pt=dt[1],mt=Qo(Z,J),gt=xo(te,ne,re,Za(ke)),ht=be[ke]||null,vt=N((function(e){return m(e,{activeIndex:ke})})),bt=t.useMemo((function(){var e=u(i,!1);return O(i,[].concat(b(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))}),[i]),yt=t.createElement(Ha,p({},bt,{showNow:ze,showTime:Oe,range:!0,multiplePanel:Be,activeOffset:ft,disabledDate:Fe,onFocus:function(e){ue(!0),Ie(e)},onBlur:Me,picker:B,mode:He,internalMode:je,onPanelChange:Ze,format:f,value:ht,isInvalid:vt,onChange:null,onSelect:function(e){we("panel");var t=ho(be,ke,e);he(t),w||s||l!==je||et(e)},pickerValue:Ue,defaultOpenValue:go(null==K?void 0:K.defaultOpenValue)[ke],onPickerValueChange:Qe,hoverValue:st,onHover:function(e){ct(e?Je(e,ke):null),ot("cell")},needConfirm:w,onSubmit:et,onOk:ve,presets:mt,onPresetHover:function(e){ct(e),ot("preset")},onPresetSubmit:function(e){We(e)&&ue(!1,{force:!0})},onNow:function(e){et(e)},cellRender:gt})),xt=t.useMemo((function(){return{prefixCls:g,locale:H,generateConfig:j,button:ee.button,input:ee.input}}),[g,H,j,ee.button,ee.input]);return C((function(){ce&&void 0!==ke&&Ze(null,B,!1)}),[ce,ke,B]),C((function(){var e=we();ce||"input"!==e||(ue(!1),et(null,!0)),ce||!s||w||"panel"!==e||(ue(!0),et())}),[ce]),t.createElement(uo.Provider,{value:xt},t.createElement(po,p({},yo(i),{popupElement:yt,popupStyle:h.popup,popupClassName:v.popup,visible:ce,onClose:function(){ue(!1)},range:!0}),t.createElement(Ua,p({},i,{ref:ae,suffixIcon:G,activeIndex:Ce||ce?ke:null,activeHelp:!!lt,allHelp:!!lt&&"preset"===rt,focused:Ce,onFocus:function(e,t){we("input"),ue(!0,{inherit:!0}),$e(t),Ie(e,t)},onBlur:function(e,t){ue(!1),Me(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&et(null,!0),null==k||k(e,t)},onSubmit:et,value:st,maskFormat:f,onChange:function(e,t){var n=Je(e,t);he(n)},onInputChange:function(){we("input")},format:d,inputReadOnly:X,disabled:$,open:ce,onOpenChange:ue,onClick:function(e){if(!ae.current.nativeElement.contains(document.activeElement)){var t=$.findIndex((function(e){return!e}));t>=0&&ae.current.focus({index:t})}ue(!0),null==oe||oe(e)},onClear:function(){We(null),ue(!1,{force:!0})},invalid:Ye,onInvalid:qe,onActiveOffset:pt}))))}var ei=t.forwardRef(Ja);function ti(e){var r=e.prefixCls,o=e.value,a=e.onRemove,i=e.removeIcon,l=void 0===i?"×":i,c=e.formatDate,s=e.disabled,u=e.maxTagCount,f=e.placeholder,p="".concat(r,"-selector"),m="".concat(r,"-selection"),g="".concat(m,"-overflow");function h(e,r){return t.createElement("span",{className:n("".concat(m,"-item")),title:"string"==typeof e?e:null},t.createElement("span",{className:"".concat(m,"-item-content")},e),!s&&r&&t.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:r,className:"".concat(m,"-item-remove")},l))}return t.createElement("div",{className:p},t.createElement(d,{prefixCls:g,data:o,renderItem:function(e){return h(c(e),(function(t){t&&t.stopPropagation(),a(e)}))},renderRest:function(e){return h("+ ".concat(e.length," ..."))},itemKey:function(e){return c(e)},maxCount:u}),!o.length&&t.createElement("span",{className:"".concat(r,"-selection-placeholder")},f))}var ni=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function ri(e,r){e.id;var o=e.open,i=e.clearIcon,l=e.suffixIcon;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var u=e.locale,d=e.generateConfig,g=e.placeholder,h=e.className,v=e.style,b=e.onClick,y=e.onClear,x=e.internalPicker,C=e.value,S=e.onChange,w=e.onSubmit;e.onInputChange;var k=e.multiple,$=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var E=e.disabled,N=e.invalid;e.inputReadOnly;var I=e.direction;e.onOpenChange;var M=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,D=e.removeIcon,R=m(e,ni),P="rtl"===I,T=t.useContext(uo).prefixCls,H=t.useRef(),j=t.useRef();t.useImperativeHandle(r,(function(){return{nativeElement:H.current,focus:function(e){var t;null===(t=j.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()}}}));var B=za(R),z=ja(c(c({},e),{},{onChange:function(e){S([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:s}})),L=a(z,2),K=L[0],A=L[1],W=!(!i||!C.length||E),F=k?t.createElement(t.Fragment,null,t.createElement(ti,{prefixCls:T,value:C,onRemove:function(e){var t=C.filter((function(t){return t&&!Wo(d,u,t,e,x)}));S(t),o||w()},formatDate:A,maxTagCount:$,disabled:E,removeIcon:D,placeholder:g}),t.createElement("input",{className:"".concat(T,"-multiple-input"),value:C.map(A).join(","),ref:j,readOnly:!0,autoFocus:O}),t.createElement(Aa,{type:"suffix",icon:l}),W&&t.createElement(Wa,{icon:i,onClear:y})):t.createElement(Ya,p({ref:j},K(),{autoFocus:O,suffixIcon:l,clearIcon:W&&t.createElement(Wa,{icon:i,onClear:y}),showActiveCls:!1}));return t.createElement("div",p({},B,{className:n(T,f(f(f(f(f({},"".concat(T,"-multiple"),k),"".concat(T,"-focused"),s),"".concat(T,"-disabled"),E),"".concat(T,"-invalid"),N),"".concat(T,"-rtl"),P),h),style:v,ref:H,onClick:b,onMouseDown:function(e){var t;e.target!==(null===(t=j.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==M||M(e)}}),F)}var oi=t.forwardRef(ri);function ai(e,n){var r=Xo(e),o=a(r,6),i=o[0],l=o[1],s=o[2],d=o[3],f=o[4],m=o[5],g=i,h=g.prefixCls,v=g.styles,y=g.classNames,x=g.order,w=g.defaultValue,k=g.value,$=g.needConfirm,E=g.onChange,I=g.onKeyDown,M=g.disabled,D=g.disabledDate,R=g.minDate,P=g.maxDate,T=g.defaultOpen,H=g.open,j=g.onOpenChange,B=g.locale,z=g.generateConfig,L=g.picker,K=g.showNow,A=g.showToday,W=g.showTime,F=g.mode,_=g.onPanelChange,V=g.onCalendarChange,Y=g.onOk,q=g.multiple,X=g.defaultPickerValue,G=g.pickerValue,U=g.onPickerValueChange,Q=g.inputReadOnly,Z=g.suffixIcon,J=g.removeIcon,ee=g.onFocus,te=g.onBlur,ne=g.presets,re=g.components,oe=g.cellRender,ae=g.dateRender,ie=g.monthCellRender,le=g.onClick,ce=Uo(n);function se(e){return null===e?null:q?e:e[0]}var ue=ma(z,B,l),de=Go(H,T,[M],j),fe=a(de,2),pe=fe[0],me=fe[1],ge=la(z,B,d,!1,x,w,k,(function(e,t,n){if(V){var r=c({},n);delete r.range,V(se(e),se(t),r)}}),(function(e){null==Y||Y(se(e))})),he=a(ge,5),ve=he[0],be=he[1],ye=he[2],xe=he[3],Ce=he[4],Se=ye(),we=Jo([M]),ke=a(we,4),$e=ke[0],Ee=ke[1],Ne=ke[2],Ie=ke[3],Me=function(e){Ee(!0),null==ee||ee(e,{})},Oe=function(e){Ee(!1),null==te||te(e,{})},De=S(L,{value:F}),Re=a(De,2),Pe=Re[0],Te=Re[1],He="date"===Pe&&W?"datetime":Pe,je=sa(L,Pe,K,A),Be=E&&function(e,t){E(se(e),se(t))},ze=ca(c(c({},i),{},{onChange:Be}),ve,be,ye,xe,[],d,$e,pe,m),Le=a(ze,2)[1],Ke=Co(Se,m),Ae=a(Ke,2),We=Ae[0],Fe=Ae[1],_e=t.useMemo((function(){return We.some((function(e){return e}))}),[We]),Ve=na(z,B,Se,[Pe],pe,Ie,l,!1,X,G,go(null==W?void 0:W.defaultOpenValue),(function(e,t){if(U){var n=c(c({},t),{},{mode:t.mode[0]});delete n.range,U(e[0],n)}}),R,P),Ye=a(Ve,2),qe=Ye[0],Xe=Ye[1],Ge=N((function(e,t,n){if(Te(t),_&&!1!==n){var r=e||Se[Se.length-1];_(r,t)}})),Ue=function(){Le(ye()),me(!1,{force:!0})},Qe=t.useState(null),Ze=a(Qe,2),Je=Ze[0],et=Ze[1],tt=t.useState(null),nt=a(tt,2),rt=nt[0],ot=nt[1],at=t.useMemo((function(){var e=[rt].concat(b(Se)).filter((function(e){return e}));return q?e:e.slice(0,1)}),[Se,rt,q]),it=t.useMemo((function(){return!q&&rt?[rt]:Se.filter((function(e){return e}))}),[Se,rt,q]);t.useEffect((function(){pe||ot(null)}),[pe]);var lt=Qo(ne),ct=function(e){var t=q?ue(ye(),e):[e];Le(t)&&!q&&me(!1,{force:!0})},st=xo(oe,ae,ie),ut=t.useMemo((function(){var e=u(i,!1),t=O(i,[].concat(b(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return c(c({},t),{},{multiple:i.multiple})}),[i]),dt=t.createElement(Ha,p({},ut,{showNow:je,showTime:W,disabledDate:D,onFocus:function(e){me(!0),Me(e)},onBlur:Oe,picker:L,mode:Pe,internalMode:He,onPanelChange:Ge,format:f,value:Se,isInvalid:m,onChange:null,onSelect:function(e){Ne("panel");var t=q?ue(ye(),e):[e];xe(t),$||s||l!==He||Ue()},pickerValue:qe,defaultOpenValue:null==W?void 0:W.defaultOpenValue,onPickerValueChange:Xe,hoverValue:at,onHover:function(e){ot(e),et("cell")},needConfirm:$,onSubmit:Ue,onOk:Ce,presets:lt,onPresetHover:function(e){ot(e),et("preset")},onPresetSubmit:ct,onNow:function(e){ct(e)},cellRender:st})),ft=t.useMemo((function(){return{prefixCls:h,locale:B,generateConfig:z,button:re.button,input:re.input}}),[h,B,z,re.button,re.input]);return C((function(){pe&&void 0!==Ie&&Ge(null,L,!1)}),[pe,Ie,L]),C((function(){var e=Ne();pe||"input"!==e||(me(!1),Ue()),pe||!s||$||"panel"!==e||(me(!0),Ue())}),[pe]),t.createElement(uo.Provider,{value:ft},t.createElement(po,p({},yo(i),{popupElement:dt,popupStyle:v.popup,popupClassName:y.popup,visible:pe,onClose:function(){me(!1)}}),t.createElement(oi,p({},i,{ref:ce,suffixIcon:Z,removeIcon:J,activeHelp:!!rt,allHelp:!!rt&&"preset"===Je,focused:$e,onFocus:function(e){Ne("input"),me(!0,{inherit:!0}),Me(e)},onBlur:function(e){me(!1),Oe(e)},onKeyDown:function(e,t){"Tab"===e.key&&Ue(),null==I||I(e,t)},onSubmit:Ue,value:it,maskFormat:f,onChange:function(e){xe(e)},onInputChange:function(){Ne("input")},internalPicker:l,format:d,inputReadOnly:Q,disabled:M,open:pe,onOpenChange:me,onClick:function(e){M||ce.current.nativeElement.contains(document.activeElement)||ce.current.focus(),me(!0),null==le||le(e)},onClear:function(){Le(null),me(!1,{force:!0})},invalid:_e,onInvalid:function(e){Fe(e,0)}}))))}var ii=t.forwardRef(ai);const li=t.createContext(null),ci=li.Provider,si=t.createContext(null),ui=si.Provider;var di=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],fi=t.forwardRef((function(e,r){var o=e.prefixCls,i=void 0===o?"rc-checkbox":o,l=e.className,s=e.style,u=e.checked,d=e.disabled,g=e.defaultChecked,h=void 0!==g&&g,v=e.type,b=void 0===v?"checkbox":v,y=e.title,x=e.onChange,C=m(e,di),w=t.useRef(null),k=S(h,{value:u}),$=a(k,2),E=$[0],N=$[1];t.useImperativeHandle(r,(function(){return{focus:function(e){var t;null===(t=w.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=w.current)||void 0===e||e.blur()},input:w.current}}));var I=n(i,l,f(f({},"".concat(i,"-checked"),E),"".concat(i,"-disabled"),d));return t.createElement("span",{className:I,title:y,style:s},t.createElement("input",p({},C,{className:"".concat(i,"-input"),ref:w,onChange:function(t){d||("checked"in e||N(t.target.checked),null==x||x({target:c(c({},e),{},{type:b,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:d,checked:!!E,type:b})),t.createElement("span",{className:"".concat(i,"-inner")}))}));const pi=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},H(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},mi=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(o).sub(b(4).mul(2)),C=b(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},H(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${_(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},H(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},ke(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:b(1).mul(o).div(-2).equal(),marginInlineStart:b(1).mul(o).div(-2).equal(),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},gi=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:k,colorPrimary:$,colorPrimaryHover:E,colorPrimaryActive:N,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:O,calc:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:_(D(n).sub(D(o).mul(2)).equal()),background:d,border:`${_(o)} ${a} ${i}`,borderBlockStartWidth:D(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:D(o).mul(-1).equal(),insetInlineStart:D(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${_(o)} ${a} ${i}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:_(D(p).sub(D(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:D(g).sub(o).equal(),paddingBlock:0,lineHeight:_(D(m).sub(D(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},ke(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:I,borderColor:I,"&:hover":{color:x,background:M,borderColor:M},"&:active":{color:x,background:O,borderColor:O}},"&-disabled":{color:C,backgroundColor:S,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:w,borderColor:i,boxShadow:"none"}}}},hi=Y("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${_(n)} ${t}`,o=V(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[pi(o),mi(o),gi(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:a,dotSize:t?a-8:a-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}});var vi=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o,a;const i=t.useContext(li),l=t.useContext(si),{getPrefixCls:c,direction:u,radio:d}=t.useContext(P),f=t.useRef(null),p=s(r,f),{isFormItemInput:m}=t.useContext(oe),g=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:h,className:v,rootClassName:b,children:y,style:x,title:C}=e,S=vi(e,["prefixCls","className","rootClassName","children","style","title"]),w=c("radio",h),k="button"===((null==i?void 0:i.optionType)||l),$=k?`${w}-button`:w,E=re(w),[N,I,M]=hi(w,E),O=Object.assign({},S),D=t.useContext(ie);i&&(O.name=i.name,O.onChange=g,O.checked=e.value===i.value,O.disabled=null!==(o=O.disabled)&&void 0!==o?o:i.disabled),O.disabled=null!==(a=O.disabled)&&void 0!==a?a:D;const R=n(`${$}-wrapper`,{[`${$}-wrapper-checked`]:O.checked,[`${$}-wrapper-disabled`]:O.disabled,[`${$}-wrapper-rtl`]:"rtl"===u,[`${$}-wrapper-in-form-item`]:m},null==d?void 0:d.className,v,b,I,M,E);return N(t.createElement($e,{component:"Radio",disabled:O.disabled},t.createElement("label",{className:R,style:Object.assign(Object.assign({},null==d?void 0:d.style),x),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C},t.createElement(fi,Object.assign({},O,{className:n(O.className,!k&&Ee),type:"radio",prefixCls:$,ref:p})),void 0!==y?t.createElement("span",null,y):null)))},yi=t.forwardRef(bi),xi=t.forwardRef(((e,r)=>{const{getPrefixCls:o,direction:a}=t.useContext(P),[i,l]=S(e.defaultValue,{value:e.value}),{prefixCls:c,className:s,rootClassName:d,options:f,buttonStyle:p="outline",disabled:m,children:g,size:h,style:v,id:b,onMouseEnter:y,onMouseLeave:x,onFocus:C,onBlur:w}=e,k=o("radio",c),$=`${k}-group`,E=re(k),[N,I,M]=hi(k,E);let O=g;f&&f.length>0&&(O=f.map((e=>"string"==typeof e||"number"==typeof e?t.createElement(yi,{key:e.toString(),prefixCls:k,disabled:m,value:e,checked:i===e},e):t.createElement(yi,{key:`radio-group-value-options-${e.value}`,prefixCls:k,disabled:e.disabled||m,value:e.value,checked:i===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const D=ae(h),R=n($,`${$}-${p}`,{[`${$}-${D}`]:D,[`${$}-rtl`]:"rtl"===a},s,d,I,M,E);return N(t.createElement("div",Object.assign({},u(e,{aria:!0,data:!0}),{className:R,style:v,onMouseEnter:y,onMouseLeave:x,onFocus:C,onBlur:w,id:b,ref:r}),t.createElement(ci,{value:{onChange:t=>{const n=i,r=t.target.value;"value"in e||l(r);const{onChange:o}=e;o&&r!==n&&o(t)},value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))})),Ci=t.memo(xi);var Si=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:r}=t.useContext(P),{prefixCls:o}=e,a=Si(e,["prefixCls"]),i=r("radio",o);return t.createElement(ui,{value:"button"},t.createElement(yi,Object.assign({prefixCls:i},a,{type:"radio",ref:n})))},ki=t.forwardRef(wi),$i=yi;$i.Button=ki,$i.Group=Ci,$i.__ANT_RADIO=!0;const Ei=$i,Ni=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=ar(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:_(a.itemLineHeight)}}}]},Ii=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=V(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=V(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Ni(o,"small"),Ni(e),Ni(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},ir(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Mi=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:_(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${_(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:f,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},Oi=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:g,colorSplit:h,pickerControlIconBorderWidth:v,colorIcon:b,textHeight:y,motionDurationMid:x,colorIconHover:C,fontWeightStrong:S,cellHeight:w,pickerCellPaddingVertical:k,colorTextDisabled:$,colorText:E,fontSize:N,motionDurationSlow:I,withoutTimeCellHeight:M,pickerQuarterPanelContentHeight:O,borderRadiusSM:D,colorTextLightSolid:R,cellHoverBg:P,timeColumnHeight:T,timeColumnWidth:H,timeCellHeight:j,controlItemBgActive:B,marginXXS:z,pickerDatePanelPaddingHorizontal:L,pickerControlIconMargin:K}=e,A=e.calc(i).mul(7).add(e.calc(L).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{direction:"rtl",[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:A},"&-header":{display:"flex",padding:`0 ${_(c)}`,color:g,borderBottom:`${_(d)} ${f} ${h}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:_(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:_(y),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:v,borderBlockEndWidth:0,borderInlineStartWidth:v,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:K,insetInlineStart:K,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:v,borderBlockEndWidth:0,borderInlineStartWidth:v,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(k).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${_(k)} 0`,color:$,cursor:"pointer","&-in-view":{color:E}},Mi(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(M).mul(4).equal()},[r]:{padding:`0 ${_(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:O}},"&-decade-panel":{[r]:{padding:`0 ${_(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${_(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${_(c)} ${_(L)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child:before":{borderStartEndRadius:D,borderEndEndRadius:D}},"&:hover td":{"&:before":{background:P}},"&-range-start td,\n &-range-end td,\n &-selected td,\n &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Ne(R).setAlpha(.5).toHexString()},[r]:{color:R}}},"&-range-hover td:before":{background:B}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${_(c)} ${_(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${_(d)} ${f} ${h}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${I}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:T},"&-column":{flex:"1 0 auto",width:H,margin:`${_(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(j).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${_(d)} ${f} ${h}`},"&-active":{background:new Ne(B).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(H).sub(e.calc(z).mul(2)).equal(),height:j,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(H).sub(j).div(2).equal(),color:E,lineHeight:_(j),borderRadius:D,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},Di=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${_(r)} ${s} ${u}`,"&-extra":{padding:`0 ${_(o)}`,lineHeight:_(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${_(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:_(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:_(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Ri=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},Me(e)),Oe(e)),De(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Pi=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(o).div(2).equal(),0),i=e.max(e.calc(t).sub(o).sub(a).equal(),0);return{padding:`${_(a)} ${_(r)} ${_(i)}`}},Ti=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Hi=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:g,paddingXS:h,marginXS:v,colorTextDescription:b,lineWidthBold:y,colorPrimary:x,motionDurationSlow:C,zIndexPopup:S,paddingXXS:w,sizePopupArrow:k,colorBgElevated:$,borderRadiusLG:E,boxShadowSecondary:N,borderRadiusSM:I,colorSplit:M,cellHoverBg:O,presetsWidth:D,presetsMaxWidth:R,boxShadowPopoverArrow:P,fontHeight:T,fontHeightLG:F,lineHeightLG:V}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},H(e)),Pi(e,r,T,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},Pe(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},Pi(e,f,F,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:V}}),"&-small":Object.assign({},Pi(e,m,T,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(h).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:y,background:x,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${_(h)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},H(e)),Oi(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:B},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:j},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:L},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:z},[`${t}-panel > ${t}-time-panel`]:{paddingTop:w},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${C} ease-out`},Te(e,$,P)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:E,boxShadow:N,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:D,maxWidth:R,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${_(a)} ${i} ${M}`,li:Object.assign(Object.assign({},K),{borderRadius:I,paddingInline:h,paddingBlock:e.calc(m).sub(T).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:v},"&:hover":{background:O}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content,\n table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${_(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},A(e,"slide-up"),A(e,"slide-down"),W(e,"move-up"),W(e,"move-down")]},ji=Y("DatePicker",(e=>{const t=V(Re(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Di(t),Hi(t),Ri(t),Ti(t),Ii(t),q(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ie(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,l=2*a,c=2*i,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),d=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Ne(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ne(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),me(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function Bi(e,t){return e[t]}var zi=["children"];function Li(e,t){return"".concat(e,"-").concat(t)}function Ki(e,t){return null!=e?e:t}function Ai(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function Wi(e){return function e(t){return R(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return h(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,a=m(r,zi),i=c({key:n},a),l=e(o);return l.length&&(i.children=l),i})).filter((function(e){return e}))}(e)}function Fi(e,t,n){var r=Ai(n),o=r._title,a=r.key,i=r.children,l=new Set(!0===t?[]:t),s=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(u,d){for(var f,p=Li(r?r.pos:"0",d),m=Ki(u[a],p),g=0;g1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,l=t.childrenPropName,c=t.fieldNames,s=i||(arguments.length>2?arguments[2]:void 0),u={},d={},f={posEntities:u,keyEntities:d};return n&&(f=n(f)||f),function(e,t,n){var r,a=("object"===o(n)?n:{externalGetKey:n})||{},i=a.childrenPropName,l=a.externalGetKey,c=Ai(a.fieldNames),s=c.key,u=c.children,d=i||u;l?"string"==typeof l?r=function(e){return e[l]}:"function"==typeof l&&(r=function(e){return l(e)}):r=function(e,t){return Ki(e[s],t)},function n(o,a,i,l){var c=o?o[d]:e,s=o?Li(i.pos,a):"0",u=o?[].concat(b(l),[o]):[];if(o){var f=r(o,s),p={node:o,index:a,pos:s,key:f,parentPos:i.node?i.pos:null,level:i.level+1,nodes:u};t(p)}c&&c.forEach((function(e,t){n(e,t,{node:o,pos:s,level:i?i.level+1:-1},u)}))}(null)}(e,(function(e){var t=e.node,n=e.index,o=e.pos,a=e.key,i=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:a,pos:o,level:l},s=Ki(a,o);u[o]=c,d[s]=c,c.parent=u[i],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:s,childrenPropName:l,fieldNames:c}),a&&a(f),f}function Vi(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=Bi(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function Yi(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,m=e.eventKey,g=c(c({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:m});return"props"in g||Object.defineProperty(g,"props",{get:function(){return h(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function qi(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Xi(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Gi(e,t,n,r){var o,a=[];o=r||Xi;var i,l=new Set(e.filter((function(e){var t=!!Bi(n,e);return t||a.push(e),t}))),c=new Map,s=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),s=Math.max(s,r)})),h(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),i=!0===t?function(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1)(t.get(i)||new Set).forEach((function(e){var t=e.key,n=e.node,a=e.children,i=void 0===a?[]:a;o.has(t)&&!r(n)&&i.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var i=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),c||!n&&!a.has(t)||(c=!0)})),i&&o.add(t.key),c&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(qi(a,o))}}(l,c,s,o):function(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;a.has(t)||i.has(t)||o(n)||l.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));i=new Set;for(var c=new Set,s=r;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),l||!n&&!i.has(t)||(l=!0)})),r||a.delete(t.key),l&&i.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(qi(i,a))}}(l,t.halfCheckedKeys,c,s,o),i}const Ui=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},H(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},H(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},H(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},ke(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${_(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Qi(e,t){const n=V(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Ui(n)]}const Zi=Y("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[Qi(n,e)]})),Ji=r.createContext(null);var el=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o;const{prefixCls:a,className:i,rootClassName:l,children:c,indeterminate:s=!1,style:u,onMouseEnter:d,onMouseLeave:f,skipGroup:p=!1,disabled:m}=e,g=el(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:b}=t.useContext(P),y=t.useContext(Ji),{isFormItemInput:x}=t.useContext(oe),C=t.useContext(ie),S=null!==(o=(null==y?void 0:y.disabled)||m)&&void 0!==o?o:C,w=t.useRef(g.value);t.useEffect((()=>{null==y||y.registerValue(g.value)}),[]),t.useEffect((()=>{if(!p)return g.value!==w.current&&(null==y||y.cancelValue(w.current),null==y||y.registerValue(g.value),w.current=g.value),()=>null==y?void 0:y.cancelValue(g.value)}),[g.value]);const k=h("checkbox",a),$=re(k),[E,N,I]=Zi(k,$),M=Object.assign({},g);y&&!p&&(M.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),y.toggleOption&&y.toggleOption({label:c,value:g.value})},M.name=y.name,M.checked=y.value.includes(g.value));const O=n(`${k}-wrapper`,{[`${k}-rtl`]:"rtl"===v,[`${k}-wrapper-checked`]:M.checked,[`${k}-wrapper-disabled`]:S,[`${k}-wrapper-in-form-item`]:x},null==b?void 0:b.className,i,l,I,$,N),D=n({[`${k}-indeterminate`]:s},Ee,N),R=s?"mixed":void 0;return E(t.createElement($e,{component:"Checkbox",disabled:S},t.createElement("label",{className:O,style:Object.assign(Object.assign({},null==b?void 0:b.style),u),onMouseEnter:d,onMouseLeave:f},t.createElement(fi,Object.assign({"aria-checked":R},M,{prefixCls:k,className:D,disabled:S,ref:r})),void 0!==c&&t.createElement("span",null,c))))},nl=t.forwardRef(tl);var rl=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{defaultValue:o,children:a,options:i=[],prefixCls:l,className:c,rootClassName:s,style:u,onChange:d}=e,f=rl(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:m}=t.useContext(P),[g,h]=t.useState(f.value||o||[]),[v,y]=t.useState([]);t.useEffect((()=>{"value"in f&&h(f.value||[])}),[f.value]);const x=t.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),C=p("checkbox",l),S=`${C}-group`,w=re(C),[k,$,E]=Zi(C,w),N=O(f,["value","disabled"]),I=i.length?x.map((e=>t.createElement(nl,{prefixCls:C,key:e.value.toString(),disabled:"disabled"in e?e.disabled:f.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:`${S}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):a,M={toggleOption:e=>{const t=g.indexOf(e.value),n=b(g);-1===t?n.push(e.value):n.splice(t,1),"value"in f||h(n),null==d||d(n.filter((e=>v.includes(e))).sort(((e,t)=>x.findIndex((t=>t.value===e))-x.findIndex((e=>e.value===t)))))},value:g,disabled:f.disabled,name:f.name,registerValue:e=>{y((t=>[].concat(b(t),[e])))},cancelValue:e=>{y((t=>t.filter((t=>t!==e))))}},D=n(S,{[`${S}-rtl`]:"rtl"===m},c,s,E,w,$);return k(t.createElement("div",Object.assign({className:D,style:u},N,{ref:r}),t.createElement(Ji.Provider,{value:M},I)))})),al=nl;al.Group=ol,al.__ANT_CHECKBOX=!0;const il=al;const ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var cl=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:ll}))}; +/**![up](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg5MC41IDc1NS4zTDUzNy45IDI2OS4yYy0xMi44LTE3LjYtMzktMTcuNi01MS43IDBMMTMzLjUgNzU1LjNBOCA4IDAgMDAxNDAgNzY4aDc1YzUuMSAwIDkuOS0yLjUgMTIuOS02LjZMNTEyIDM2OS44bDI4NC4xIDM5MS42YzMgNC4xIDcuOCA2LjYgMTIuOSA2LjZoNzVjNi41IDAgMTAuMy03LjQgNi41LTEyLjd6IiAvPjwvc3ZnPg==) */const sl=t.forwardRef(cl);function ul(){return"function"==typeof BigInt}function dl(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function fl(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function pl(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ml(e){var t=String(e);if(pl(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&hl(t)?t.length-t.indexOf(".")-1:0}function gl(e){var t=String(e);if(pl(e)){if(e>Number.MAX_SAFE_INTEGER)return String(ul()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":fl("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),bl=function(){function e(t){$(this,e),f(this,"origin",""),f(this,"number",void 0),f(this,"empty",void 0),dl(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return k(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":gl(this.number):this.origin}}]),e}();function yl(e){return ul()?new vl(e):new bl(e)}function xl(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=fl(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(a).concat(i);if(n>=0){var u=Number(l[n]);return u>=5&&!r?xl(yl(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}var Cl=function(){var e=t.useState(!1),n=a(e,2),r=n[0],o=n[1];return C((function(){o(y())}),[]),r};function Sl(r){var o=r.prefixCls,a=r.upNode,i=r.downNode,l=r.upDisabled,c=r.downDisabled,s=r.onStep,u=t.useRef(),d=t.useRef([]),m=t.useRef();m.current=s;var g=function(){clearTimeout(u.current)},h=function(e,t){e.preventDefault(),g(),m.current(t),u.current=setTimeout((function e(){m.current(t),u.current=setTimeout(e,200)}),600)};if(t.useEffect((function(){return function(){g(),d.current.forEach((function(t){return e.cancel(t)}))}}),[]),Cl())return null;var v="".concat(o,"-handler"),b=n(v,"".concat(v,"-up"),f({},"".concat(v,"-up-disabled"),l)),y=n(v,"".concat(v,"-down"),f({},"".concat(v,"-down-disabled"),c)),x=function(){return d.current.push(e(g))},C={unselectable:"on",role:"button",onMouseUp:x,onMouseLeave:x};return t.createElement("div",{className:"".concat(v,"-wrap")},t.createElement("span",p({},C,{onMouseDown:function(e){h(e,!0)},"aria-label":"Increase Value","aria-disabled":l,className:b}),a||t.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-up-inner")})),t.createElement("span",p({},C,{onMouseDown:function(e){h(e,!1)},"aria-label":"Decrease Value","aria-disabled":c,className:y}),i||t.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-down-inner")})))}function wl(e){var t="number"==typeof e?gl(e):fl(e).fullStr;return t.includes(".")?fl(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var kl=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],$l=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],El=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Nl=function(e){var t=yl(e);return t.isInvalidate()?null:t},Il=t.forwardRef((function(r,i){var l,c=r.prefixCls,u=void 0===c?"rc-input-number":c,d=r.className,g=r.style,v=r.min,b=r.max,y=r.step,x=void 0===y?1:y,C=r.defaultValue,S=r.value,w=r.disabled,k=r.readOnly,$=r.upHandler,E=r.downHandler,N=r.keyboard,I=r.changeOnWheel,M=void 0!==I&&I,O=r.controls,D=void 0===O||O;r.classNames;var R=r.stringMode,P=r.parser,T=r.formatter,H=r.precision,j=r.decimalSeparator,B=r.onChange,z=r.onInput,L=r.onPressEnter,K=r.onStep,A=r.changeOnBlur,W=void 0===A||A,F=m(r,kl),_="".concat(u,"-input"),V=t.useRef(null),Y=t.useState(!1),q=a(Y,2),X=q[0],G=q[1],U=t.useRef(!1),Q=t.useRef(!1),Z=t.useRef(!1),J=t.useState((function(){return yl(null!=S?S:C)})),ee=a(J,2),te=ee[0],ne=ee[1];var re=t.useCallback((function(e,t){if(!t)return H>=0?H:Math.max(ml(e),ml(x))}),[H,x]),oe=t.useCallback((function(e){var t=String(e);if(P)return P(t);var n=t;return j&&(n=n.replace(j,".")),n.replace(/[^\w.-]+/g,"")}),[P,j]),ae=t.useRef(""),ie=t.useCallback((function(e,t){if(T)return T(e,{userTyping:t,input:String(ae.current)});var n="number"==typeof e?gl(e):e;if(!t){var r=re(n,t);if(hl(n)&&(j||r>=0))n=xl(n,j||".",r)}return n}),[T,re,j]),le=t.useState((function(){var e=null!=C?C:S;return te.isInvalidate()&&["string","number"].includes(o(e))?Number.isNaN(e)?"":e:ie(te.toString(),!1)})),ce=a(le,2),se=ce[0],ue=ce[1];function de(e,t){ue(ie(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ae.current=se;var fe,pe,me,ge,he,ve=t.useMemo((function(){return Nl(b)}),[b,H]),be=t.useMemo((function(){return Nl(v)}),[v,H]),ye=t.useMemo((function(){return!(!ve||!te||te.isInvalidate())&&ve.lessEquals(te)}),[ve,te]),xe=t.useMemo((function(){return!(!be||!te||te.isInvalidate())&&te.lessEquals(be)}),[be,te]),Ce=(fe=V.current,pe=X,me=t.useRef(null),[function(){try{var e=fe.selectionStart,t=fe.selectionEnd,n=fe.value,r=n.substring(0,e),o=n.substring(t);me.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(Ur){}},function(){if(fe&&me.current&&pe)try{var e=fe.value,t=me.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,a=e.length;if(e.endsWith(r))a=e.length-me.current.afterTxt.length;else if(e.startsWith(n))a=n.length;else{var i=n[o-1],l=e.indexOf(i,o-1);-1!==l&&(a=l+1)}fe.setSelectionRange(a,a)}catch(Ur){h(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Ur.message))}}]),we=a(Ce,2),ke=we[0],$e=we[1],Ee=function(e){return ve&&!e.lessEquals(ve)?ve:be&&!be.lessEquals(e)?be:null},Ne=function(e){return!Ee(e)},Ie=function(e,t){var n,r=e,o=Ne(r)||r.isEmpty();if(r.isEmpty()||t||(r=Ee(r)||r,o=!0),!k&&!w&&o){var a=r.toString(),i=re(a,t);return i>=0&&(r=yl(xl(a,".",i)),Ne(r)||(r=yl(xl(a,".",i,!0)))),r.equals(te)||(n=r,void 0===S&&ne(n),null==B||B(r.isEmpty()?null:El(R,r)),void 0===S&&de(r,t)),r}return te},Me=(ge=t.useRef(0),he=function(){e.cancel(ge.current)},t.useEffect((function(){return he}),[]),function(t){he(),ge.current=e((function(){t()}))}),Oe=function e(t){if(ke(),ae.current=t,ue(t),!Q.current){var n=yl(oe(t));n.isNaN()||Ie(n,!0)}null==z||z(t),Me((function(){var n=t;P||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},De=function(e){var t;if(!(e&&ye||!e&&xe)){U.current=!1;var n=yl(Z.current?wl(x):x);e||(n=n.negate());var r=(te||yl(0)).add(n.toString()),o=Ie(r,!1);null==K||K(El(R,o),{offset:Z.current?wl(x):x,type:e?"up":"down"}),null===(t=V.current)||void 0===t||t.focus()}},Re=function(e){var t=yl(oe(se)),n=t;n=t.isNaN()?Ie(te,e):Ie(t,e),void 0!==S?de(te,!1):n.isNaN()||de(n,!1)};t.useEffect((function(){if(M&&X){var e=function(e){De(e.deltaY<0),e.preventDefault()},t=V.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return Se((function(){te.isInvalidate()||de(te,!1)}),[H,T]),Se((function(){var e=yl(S);ne(e);var t=yl(oe(se));e.equals(t)&&U.current&&!T||de(e,U.current)}),[S]),Se((function(){T&&$e()}),[se]),t.createElement("div",{className:n(u,d,(l={},f(l,"".concat(u,"-focused"),X),f(l,"".concat(u,"-disabled"),w),f(l,"".concat(u,"-readonly"),k),f(l,"".concat(u,"-not-a-number"),te.isNaN()),f(l,"".concat(u,"-out-of-range"),!te.isInvalidate()&&!Ne(te)),l)),style:g,onFocus:function(){G(!0)},onBlur:function(){W&&Re(!1),G(!1),U.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;U.current=!0,Z.current=n,"Enter"===t&&(Q.current||(U.current=!1),Re(!1),null==L||L(e)),!1!==N&&!Q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(De("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){U.current=!1,Z.current=!1},onCompositionStart:function(){Q.current=!0},onCompositionEnd:function(){Q.current=!1,Oe(V.current.value)},onBeforeInput:function(){U.current=!0}},D&&t.createElement(Sl,{prefixCls:u,upNode:$,downNode:E,upDisabled:ye,downDisabled:xe,onStep:De}),t.createElement("div",{className:"".concat(_,"-wrap")},t.createElement("input",p({autoComplete:"off",role:"spinbutton","aria-valuemin":v,"aria-valuemax":b,"aria-valuenow":te.isInvalidate()?null:te.toString(),step:x},F,{ref:s(V,i),className:_,value:se,onChange:function(e){Oe(e.target.value)},disabled:w,readOnly:k}))))})),Ml=t.forwardRef((function(e,n){var r=e.disabled,o=e.style,a=e.prefixCls,i=e.value,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,g=e.classNames,h=m(e,$l),v=t.useRef(null);return t.createElement(je,{className:f,triggerFocus:function(e){v.current&&Be(v.current,e)},prefixCls:a,value:i,disabled:r,style:o,prefix:l,suffix:c,addonAfter:d,addonBefore:u,classNames:g,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},t.createElement(Il,p({prefixCls:a,disabled:r,ref:s(v,n),className:null==g?void 0:g.input},h)))}));Ml.displayName="InputNumber";const Ol=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},Dl=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:l,colorError:c,paddingInlineSM:s,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:f,colorTextDescription:p,motionDurationMid:m,handleHoverColor:g,paddingInline:h,paddingBlock:v,handleBg:b,handleActiveBg:y,colorTextDisabled:x,borderRadiusSM:C,borderRadiusLG:S,controlWidth:w,handleOpacity:k,handleBorderColor:$,filledHandleBg:E,lineHeightLG:N,calc:I}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H(e)),ze(e)),{display:"inline-block",width:w,margin:0,padding:0,borderRadius:o}),Me(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${_(n)} ${r} ${$}`}}})),Oe(e,{[`${t}-handler-wrap`]:{background:E,[`${t}-handler-down`]:{borderBlockStart:`${_(n)} ${r} ${$}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),De(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:N,borderRadius:S,[`input${t}-input`]:{height:I(i).sub(I(n).mul(2)).equal(),padding:`${_(d)} ${_(f)}`}},"&-sm":{padding:0,borderRadius:C,[`input${t}-input`]:{height:I(l).sub(I(n).mul(2)).equal(),padding:`${_(u)} ${_(s)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},H(e)),Le(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},Ke(e)),Ae(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},H(e)),{width:"100%",padding:`${_(v)} ${_(h)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),Pe(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:k,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${m} linear ${m}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${_(n)} ${r} ${$}`,transition:`all ${m} linear`,"&:active":{background:y},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},F()),{color:p,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Ol(e,"lg")),Ol(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:x}})}]},Rl=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${_(n)} 0`}},ze(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${_(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${_(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},Pl=Y("InputNumber",(e=>{const t=V(e,Re(e));return[Dl(t),Rl(t),q(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},Ie(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Ne(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}});var Tl=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:o,direction:a}=t.useContext(P),i=t.useRef(null);t.useImperativeHandle(r,(()=>i.current));const{className:l,rootClassName:c,size:s,disabled:u,prefixCls:d,addonBefore:f,addonAfter:p,prefix:m,bordered:g,readOnly:h,status:v,controls:b,variant:y}=e,x=Tl(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),C=o("input-number",d),S=re(C),[w,k,$]=Pl(C,S),{compactSize:E,compactItemClassnames:N}=te(C,a);let I=t.createElement(sl,{className:`${C}-handler-up-inner`}),M=t.createElement(Z,{className:`${C}-handler-down-inner`});const O="boolean"==typeof b?b:void 0;"object"==typeof b&&(I=void 0===b.upIcon?I:t.createElement("span",{className:`${C}-handler-up-inner`},b.upIcon),M=void 0===b.downIcon?M:t.createElement("span",{className:`${C}-handler-down-inner`},b.downIcon));const{hasFeedback:D,status:R,isFormItemInput:T,feedbackIcon:H}=t.useContext(oe),j=ue(R,v),B=ae((e=>{var t;return null!==(t=null!=s?s:E)&&void 0!==t?t:e})),z=t.useContext(ie),L=null!=u?u:z,[K,A]=ne(y,g),W=D&&t.createElement(t.Fragment,null,H),F=n({[`${C}-lg`]:"large"===B,[`${C}-sm`]:"small"===B,[`${C}-rtl`]:"rtl"===a,[`${C}-in-form-item`]:T},k),_=`${C}-group`;return w(t.createElement(Ml,Object.assign({ref:i,disabled:L,className:n($,S,l,c,N),upHandler:I,downHandler:M,prefixCls:C,readOnly:h,controls:O,prefix:m,suffix:W,addonAfter:p&&t.createElement(We,null,t.createElement(Fe,{override:!0,status:!0},p)),addonBefore:f&&t.createElement(We,null,t.createElement(Fe,{override:!0,status:!0},f)),classNames:{input:F,variant:n({[`${C}-${K}`]:A},le(C,j,D)),affixWrapper:n({[`${C}-affix-wrapper-sm`]:"small"===B,[`${C}-affix-wrapper-lg`]:"large"===B,[`${C}-affix-wrapper-rtl`]:"rtl"===a},k),wrapper:n({[`${_}-rtl`]:"rtl"===a},k),groupWrapper:n({[`${C}-group-wrapper-sm`]:"small"===B,[`${C}-group-wrapper-lg`]:"large"===B,[`${C}-group-wrapper-rtl`]:"rtl"===a,[`${C}-group-wrapper-${K}`]:A},le(`${C}-group-wrapper`,j,D),k)}},x)))})),jl=Hl;jl._InternalPanelDoNotUseOrYouWillBeFired=e=>t.createElement(_e,{theme:{components:{InputNumber:{handleVisible:!0}}}},t.createElement(Hl,Object.assign({},e)));const Bl=jl;const zl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var Ll=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:zl}))}; +/**![calendar](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAxODRINzEydi02NGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2NjRIMzg0di02NGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2NjRIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY2NjRjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjIxNmMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDY1NkgxODRWNDYwaDY1NnYzODB6TTE4NCAzOTJWMjU2aDEyOHY0OGMwIDQuNCAzLjYgOCA4IDhoNTZjNC40IDAgOC0zLjYgOC04di00OGgyNTZ2NDhjMCA0LjQgMy42IDggOCA4aDU2YzQuNCAwIDgtMy42IDgtOHYtNDhoMTI4djEzNkgxODR6IiAvPjwvc3ZnPg==) */const Kl=t.forwardRef(Ll);const Al={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var Wl=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Al}))}; +/**![clock-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTY4Ni43IDYzOC42TDU0NC4xIDUzNS41VjI4OGMwLTQuNC0zLjYtOC04LThINDg4Yy00LjQgMC04IDMuNi04IDh2Mjc1LjRjMCAyLjYgMS4yIDUgMy4zIDYuNWwxNjUuNCAxMjAuNmMzLjYgMi42IDguNiAxLjggMTEuMi0xLjdsMjguNi0zOWMyLjYtMy43IDEuOC04LjctMS44LTExLjJ6IiAvPjwvc3ZnPg==) */const Fl=t.forwardRef(Wl);const _l={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var Vl=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:_l}))}; +/**![swap-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg3My4xIDU5Ni4ybC0xNjQtMjA4QTMyIDMyIDAgMDA2ODQgMzc2aC02NC44Yy02LjcgMC0xMC40IDcuNy02LjMgMTNsMTQ0LjMgMTgzSDE1MmMtNC40IDAtOCAzLjYtOCA4djYwYzAgNC40IDMuNiA4IDggOGg2OTUuOWMyNi44IDAgNDEuNy0zMC44IDI1LjItNTEuOHoiIC8+PC9zdmc+) */const Yl=t.forwardRef(Vl);function ql(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Xl(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Gl(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function Ul(e,n){const{allowClear:r=!0}=e,{clearIcon:o,removeIcon:a}=$r(Object.assign(Object.assign({},e),{prefixCls:n,componentName:"DatePicker"}));return[t.useMemo((()=>{if(!1===r)return!1;const e=!0===r?{}:r;return Object.assign({clearIcon:o},e)}),[r,o]),a]}function Ql(e){return t.createElement(Ve,Object.assign({size:"small",type:"primary"},e))}function Zl(e){return t.useMemo((()=>Object.assign({button:Ql},e)),[e])}var Jl=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var l;const{prefixCls:c,getPopupContainer:s,components:u,style:d,className:f,rootClassName:p,size:m,bordered:g,placement:h,placeholder:v,popupClassName:b,dropdownClassName:y,disabled:x,status:C,variant:S,onCalendarChange:w}=o,k=ec(o,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:$,direction:E,getPopupContainer:N,[a]:I}=t.useContext(P),M=$("picker",c),{compactSize:O,compactItemClassnames:D}=te(M,E),R=t.useRef(null),[T,H]=ne(S,g),j=re(M),[B,z,L]=ji(M,j);t.useImperativeHandle(i,(()=>R.current));const K=r||o.picker,A=$(),{onSelect:W,multiple:F}=k,_=W&&"time"===r&&!F,[V,Y]=Ul(o,M),q=Zl(u),X=ae((e=>{var t;return null!==(t=null!=m?m:O)&&void 0!==t?t:e})),G=t.useContext(ie),U=null!=x?x:G,Q=t.useContext(oe),{hasFeedback:Z,status:J,feedbackIcon:ee}=Q,se=t.createElement(t.Fragment,null,"time"===K?t.createElement(Fl,null):t.createElement(Kl,null),Z&&ee),[de]=Ye("DatePicker",qe),fe=Object.assign(Object.assign({},de),o.locale),[pe]=ce("DatePicker",null===(l=o.popupStyle)||void 0===l?void 0:l.zIndex);return B(t.createElement(We,null,t.createElement(ii,Object.assign({ref:R,placeholder:ql(fe,K,v),suffixIcon:se,dropdownAlign:Gl(E,h),prevIcon:t.createElement("span",{className:`${M}-prev-icon`}),nextIcon:t.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:r,onCalendarChange:(e,t,n)=>{null==w||w(e,t,n),_&&W(e)}},{showToday:!0},k,{locale:fe.lang,className:n({[`${M}-${X}`]:X,[`${M}-${T}`]:H},le(M,ue(J,C),Z),z,D,null==I?void 0:I.className,f,L,j,p),style:Object.assign(Object.assign({},null==I?void 0:I.style),d),prefixCls:M,getPopupContainer:s||N,generateConfig:e,components:q,direction:E,disabled:U,classNames:{popup:n(z,L,j,p,b||y)},styles:{popup:Object.assign(Object.assign({},o.popupStyle),{zIndex:pe})},allowClear:V,removeIcon:Y}))))}));return i}const o=r(),a=r("week","WeekPicker"),i=r("month","MonthPicker"),l=r("year","YearPicker"),c=r("quarter","QuarterPicker");return{DatePicker:o,WeekPicker:a,MonthPicker:i,YearPicker:l,TimePicker:r("time","TimePicker"),QuarterPicker:c}}(e),s=function(e){const r=t.forwardRef(((r,o)=>{var a;const{prefixCls:i,getPopupContainer:l,components:c,className:s,style:u,placement:d,size:f,disabled:p,bordered:m=!0,placeholder:g,popupClassName:h,dropdownClassName:v,status:b,rootClassName:y,variant:x}=r,C=Jl(r,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),S=t.useRef(null),{getPrefixCls:w,direction:k,getPopupContainer:$,rangePicker:E}=t.useContext(P),N=w("picker",i),{compactSize:I,compactItemClassnames:M}=te(N,k),{picker:O}=r,D=w(),[R,T]=ne(x,m),H=re(N),[j,B,z]=ji(N,H),[L]=Ul(r,N),K=Zl(c),A=ae((e=>{var t;return null!==(t=null!=f?f:I)&&void 0!==t?t:e})),W=t.useContext(ie),F=null!=p?p:W,_=t.useContext(oe),{hasFeedback:V,status:Y,feedbackIcon:q}=_,X=t.createElement(t.Fragment,null,"time"===O?t.createElement(Fl,null):t.createElement(Kl,null),V&&q);t.useImperativeHandle(o,(()=>S.current));const[G]=Ye("Calendar",qe),U=Object.assign(Object.assign({},G),r.locale),[Q]=ce("DatePicker",null===(a=r.popupStyle)||void 0===a?void 0:a.zIndex);return j(t.createElement(We,null,t.createElement(ei,Object.assign({separator:t.createElement("span",{"aria-label":"to",className:`${N}-separator`},t.createElement(Yl,null)),disabled:F,ref:S,popupAlign:Gl(k,d),placeholder:Xl(U,O,g),suffixIcon:X,prevIcon:t.createElement("span",{className:`${N}-prev-icon`}),nextIcon:t.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${D}-slide-up`},C,{className:n({[`${N}-${A}`]:A,[`${N}-${R}`]:T},le(N,ue(Y,b),V),B,M,s,null==E?void 0:E.className,z,H,y),style:Object.assign(Object.assign({},null==E?void 0:E.style),u),locale:U.lang,prefixCls:N,getPopupContainer:l||$,generateConfig:e,components:K,direction:k,classNames:{popup:n(B,h||v,z,H,y)},styles:{popup:Object.assign(Object.assign({},r.popupStyle),{zIndex:Q})},allowClear:L}))))}));return r}(e),u=r;return u.WeekPicker=o,u.MonthPicker=a,u.YearPicker=i,u.RangePicker=s,u.TimePicker=l,u.QuarterPicker=c,u}const nc=tc(so);function rc(e){const t=Gl(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const oc=J(nc,"picker",null,rc);nc._InternalPanelDoNotUseOrYouWillBeFired=oc;const ac=J(nc.RangePicker,"picker",null,rc);nc._InternalRangePanelDoNotUseOrYouWillBeFired=ac,nc.generatePicker=tc;const ic=nc;function lc(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function cc(e,t,n,r){var o=Xe.unstable_batchedUpdates?function(e){Xe.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const sc=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[t];void 0!==r&&(e[t]=r)}))}return e};const uc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var dc=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:uc}))}; +/**![double-left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI3Mi45IDUxMmwyNjUuNC0zMzkuMWM0LjEtNS4yLjQtMTIuOS02LjMtMTIuOWgtNzcuM2MtNC45IDAtOS42IDIuMy0xMi42IDYuMUwxODYuOCA0OTIuM2EzMS45OSAzMS45OSAwIDAwMCAzOS41bDI1NS4zIDMyNi4xYzMgMy45IDcuNyA2LjEgMTIuNiA2LjFINTMyYzYuNyAwIDEwLjQtNy43IDYuMy0xMi45TDI3Mi45IDUxMnptMzA0IDBsMjY1LjQtMzM5LjFjNC4xLTUuMi40LTEyLjktNi4zLTEyLjloLTc3LjNjLTQuOSAwLTkuNiAyLjMtMTIuNiA2LjFMNDkwLjggNDkyLjNhMzEuOTkgMzEuOTkgMCAwMDAgMzkuNWwyNTUuMyAzMjYuMWMzIDMuOSA3LjcgNi4xIDEyLjYgNi4xSDgzNmM2LjcgMCAxMC40LTcuNyA2LjMtMTIuOUw1NzYuOSA1MTJ6IiAvPjwvc3ZnPg==) */const fc=t.forwardRef(dc);const pc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var mc=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:pc}))}; +/**![double-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUzMy4yIDQ5Mi4zTDI3Ny45IDE2Ni4xYy0zLTMuOS03LjctNi4xLTEyLjYtNi4xSDE4OGMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlMNDQ3LjEgNTEyIDE4MS43IDg1MS4xQTcuOTggNy45OCAwIDAwMTg4IDg2NGg3Ny4zYzQuOSAwIDkuNi0yLjMgMTIuNi02LjFsMjU1LjMtMzI2LjFjOS4xLTExLjcgOS4xLTI3LjkgMC0zOS41em0zMDQgMEw1ODEuOSAxNjYuMWMtMy0zLjktNy43LTYuMS0xMi42LTYuMUg0OTJjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45TDc1MS4xIDUxMiA0ODUuNyA4NTEuMUE3Ljk4IDcuOTggMCAwMDQ5MiA4NjRoNzcuM2M0LjkgMCA5LjYtMi4zIDEyLjYtNi4xbDI1NS4zLTMyNi4xYzkuMS0xMS43IDkuMS0yNy45IDAtMzkuNXoiIC8+PC9zdmc+) */const gc=t.forwardRef(mc);var hc={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},vc=["10","20","50","100"],bc=function(e){var t=e.pageSizeOptions,n=void 0===t?vc:t,o=e.locale,l=e.changeSize,c=e.pageSize,s=e.goButton,u=e.quickGo,d=e.rootPrefixCls,f=e.selectComponentClass,p=e.selectPrefixCls,m=e.disabled,g=e.buildOptionText,h=r.useState(""),v=a(h,2),b=v[0],y=v[1],x=function(){return!b||Number.isNaN(b)?void 0:Number(b)},C="function"==typeof g?g:function(e){return"".concat(e," ").concat(o.items_per_page)},S=function(e){""!==b&&(e.keyCode!==i.ENTER&&"click"!==e.type||(y(""),null==u||u(x())))},w="".concat(d,"-options");if(!l&&!u)return null;var k=null,$=null,E=null;if(l&&f){var N=(n.some((function(e){return e.toString()===c.toString()}))?n:n.concat([c.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return r.createElement(f.Option,{key:t,value:e.toString()},C(e))}));k=r.createElement(f,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(c||n[0]).toString(),onChange:function(e){null==l||l(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":o.page_size,defaultOpen:!1},N)}return u&&(s&&(E="boolean"==typeof s?r.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:m,className:"".concat(w,"-quick-jumper-button")},o.jump_to_confirm):r.createElement("span",{onClick:S,onKeyUp:S},s)),$=r.createElement("div",{className:"".concat(w,"-quick-jumper")},o.jump_to,r.createElement("input",{disabled:m,type:"text",value:b,onChange:function(e){y(e.target.value)},onKeyUp:S,onBlur:function(e){s||""===b||(y(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(d,"-item"))>=0)||null==u||u(x()))},"aria-label":o.page}),o.page,E)),r.createElement("li",{className:w},k,$)},yc=function(e){var t,o=e.rootPrefixCls,a=e.page,i=e.active,l=e.className,c=e.showTitle,s=e.onClick,u=e.onKeyPress,d=e.itemRender,p="".concat(o,"-item"),m=n(p,"".concat(p,"-").concat(a),(f(t={},"".concat(p,"-active"),i),f(t,"".concat(p,"-disabled"),!a),t),l),g=d(a,"page",r.createElement("a",{rel:"nofollow"},a));return g?r.createElement("li",{title:c?String(a):null,className:m,onClick:function(){s(a)},onKeyDown:function(e){u(e,s,a)},tabIndex:0},g):null},xc=function(e,t,n){return n};function Cc(){}function Sc(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function wc(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}var kc=function(e){var o,l=e.prefixCls,s=void 0===l?"rc-pagination":l,d=e.selectPrefixCls,m=void 0===d?"rc-select":d,g=e.className,h=e.selectComponentClass,v=e.current,b=e.defaultCurrent,y=void 0===b?1:b,x=e.total,C=void 0===x?0:x,w=e.pageSize,k=e.defaultPageSize,$=void 0===k?10:k,E=e.onChange,N=void 0===E?Cc:E,I=e.hideOnSinglePage,M=e.showPrevNextJumpers,O=void 0===M||M,D=e.showQuickJumper,R=e.showLessItems,P=e.showTitle,T=void 0===P||P,H=e.onShowSizeChange,j=void 0===H?Cc:H,B=e.locale,z=void 0===B?hc:B,L=e.style,K=e.totalBoundaryShowSizeChanger,A=void 0===K?50:K,W=e.disabled,F=e.simple,_=e.showTotal,V=e.showSizeChanger,Y=e.pageSizeOptions,q=e.itemRender,X=void 0===q?xc:q,G=e.jumpPrevIcon,U=e.jumpNextIcon,Q=e.prevIcon,Z=e.nextIcon,J=r.useRef(null),ee=S(10,{value:w,defaultValue:$}),te=a(ee,2),ne=te[0],re=te[1],oe=S(1,{value:v,defaultValue:y,postState:function(e){return Math.max(1,Math.min(e,wc(void 0,ne,C)))}}),ae=a(oe,2),ie=ae[0],le=ae[1],ce=r.useState(ie),se=a(ce,2),ue=se[0],de=se[1];t.useEffect((function(){de(ie)}),[ie]);var fe=Math.max(1,ie-(R?3:5)),pe=Math.min(wc(void 0,ne,C),ie+(R?3:5));function me(t,n){var o=t||r.createElement("button",{type:"button","aria-label":n,className:"".concat(s,"-item-link")});return"function"==typeof t&&(o=r.createElement(t,c({},e))),o}function ge(e){var t=e.target.value,n=wc(void 0,ne,C);return""===t?t:Number.isNaN(Number(t))?ue:t>=n?n:Number(t)}var he=C>ne&&D;function ve(e){var t=ge(e);switch(t!==ue&&de(t),e.keyCode){case i.ENTER:be(t);break;case i.UP:be(t-1);break;case i.DOWN:be(t+1)}}function be(e){if(function(e){return Sc(e)&&e!==ie&&Sc(C)&&C>0}(e)&&!W){var t=wc(void 0,ne,C),n=e;return e>t?n=t:e<1&&(n=1),n!==ue&&de(n),le(n),null==N||N(n,ne),n}return ie}var ye=ie>1,xe=ieA;function Se(){ye&&be(ie-1)}function we(){xe&&be(ie+1)}function ke(){be(fe)}function $e(){be(pe)}function Ee(e,t){if("Enter"===e.key||e.charCode===i.ENTER||e.keyCode===i.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;oC?C:ie*ne])),De=null,Re=wc(void 0,ne,C);if(I&&C<=ne)return null;var Pe=[],Te={rootPrefixCls:s,onClick:be,onKeyPress:Ee,showTitle:T,itemRender:X,page:-1},He=ie-1>0?ie-1:0,je=ie+1=2*Ke&&3!==ie&&(Pe[0]=r.cloneElement(Pe[0],{className:n("".concat(s,"-item-after-jump-prev"),Pe[0].props.className)}),Pe.unshift(Ie)),Re-ie>=2*Ke&&ie!==Re-2){var Ge=Pe[Pe.length-1];Pe[Pe.length-1]=r.cloneElement(Ge,{className:n("".concat(s,"-item-before-jump-next"),Ge.props.className)}),Pe.push(De)}1!==Ye&&Pe.unshift(r.createElement(yc,p({},Te,{key:1,page:1}))),qe!==Re&&Pe.push(r.createElement(yc,p({},Te,{key:Re,page:Re})))}var Ue=function(e){var t=X(e,"prev",me(Q,"prev page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!ye}):t}(He);if(Ue){var Qe=!ye||!Re;Ue=r.createElement("li",{title:T?z.prev_page:null,onClick:Se,tabIndex:Qe?null:0,onKeyDown:function(e){Ee(e,Se)},className:n("".concat(s,"-prev"),f({},"".concat(s,"-disabled"),Qe)),"aria-disabled":Qe},Ue)}var Ze,Je,et=function(e){var t=X(e,"next",me(Z,"next page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!xe}):t}(je);et&&(F?(Ze=!xe,Je=ye?0:null):Je=(Ze=!xe||!Re)?null:0,et=r.createElement("li",{title:T?z.next_page:null,onClick:we,tabIndex:Je,onKeyDown:function(e){Ee(e,we)},className:n("".concat(s,"-next"),f({},"".concat(s,"-disabled"),Ze)),"aria-disabled":Ze},et));var tt=n(s,g,(f(o={},"".concat(s,"-simple"),F),f(o,"".concat(s,"-disabled"),W),o));return r.createElement("ul",p({className:tt,style:L,ref:J},Me),Oe,Ue,F?Le:Pe,et,r.createElement(bc,{locale:z,rootPrefixCls:s,disabled:W,selectComponentClass:h,selectPrefixCls:m,changeSize:Ce?function(e){var t=wc(e,ne,C),n=ie>t&&0!==t?t:ie;re(e),de(n),null==j||j(ie,e),le(n),null==N||N(n,e)}:null,pageSize:ne,pageSizeOptions:Y,quickGo:he?be:null,goButton:ze}))};const $c=e=>t.createElement(Dr,Object.assign({},e,{showSearch:!0,size:"small"})),Ec=e=>t.createElement(Dr,Object.assign({},e,{showSearch:!0,size:"middle"}));$c.Option=Dr.Option,Ec.Option=Dr.Option;const Nc=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Ic=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:_(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:_(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:_(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM),input:Object.assign(Object.assign({},Ue(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Mc=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${_(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${_(e.inputOutlineOffset)} 0 ${_(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Oc=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${_(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${_(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:_(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},ze(e)),Qe(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Ze(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Dc=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:_(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${_(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${_(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Rc=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:_(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Dc(e)),Oc(e)),Mc(e)),Ic(e)),Nc(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Pc=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ge(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ke(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},ke(e))}}}},Tc=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ie(e)),Hc=e=>V(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Re(e)),jc=Y("Pagination",(e=>{const t=Hc(e);return[Rc(t),Pc(t)]}),Tc),Bc=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},zc=Je(["Pagination","bordered"],(e=>{const t=Hc(e);return[Bc(t)]}),Tc);var Lc=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,selectPrefixCls:o,className:a,rootClassName:i,style:l,size:c,locale:s,selectComponentClass:u,responsive:d,showSizeChanger:f}=e,p=Lc(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=et(d),[,g]=ee(),{getPrefixCls:h,direction:v,pagination:b={}}=t.useContext(P),y=h("pagination",r),[x,C,S]=jc(y),w=null!=f?f:b.showSizeChanger,k=t.useMemo((()=>{const e=t.createElement("span",{className:`${y}-item-ellipsis`},"•••");return{prevIcon:t.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?t.createElement(nt,null):t.createElement(rt,null)),nextIcon:t.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?t.createElement(rt,null):t.createElement(nt,null)),jumpPrevIcon:t.createElement("a",{className:`${y}-item-link`},t.createElement("div",{className:`${y}-item-container`},"rtl"===v?t.createElement(gc,{className:`${y}-item-link-icon`}):t.createElement(fc,{className:`${y}-item-link-icon`}),e)),jumpNextIcon:t.createElement("a",{className:`${y}-item-link`},t.createElement("div",{className:`${y}-item-container`},"rtl"===v?t.createElement(fc,{className:`${y}-item-link-icon`}):t.createElement(gc,{className:`${y}-item-link-icon`}),e))}}),[v,y]),[$]=Ye("Pagination",tt),E=Object.assign(Object.assign({},$),s),N=ae(c),I="small"===N||!(!m||N||!d),M=h("select",o),O=n({[`${y}-mini`]:I,[`${y}-rtl`]:"rtl"===v,[`${y}-bordered`]:g.wireframe},null==b?void 0:b.className,a,i,C,S),D=Object.assign(Object.assign({},null==b?void 0:b.style),l);return x(t.createElement(t.Fragment,null,g.wireframe&&t.createElement(zc,{prefixCls:y}),t.createElement(kc,Object.assign({},k,p,{style:D,prefixCls:y,selectPrefixCls:M,className:O,selectComponentClass:u||(I?$c:Ec),locale:E,showSizeChanger:w}))))},Ac=Y("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:l,marginXS:c,fontSize:s,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:s},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:s,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});var Wc=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,okButtonProps:o,cancelButtonProps:a,title:i,description:l,cancelText:c,okText:s,okType:u="primary",icon:d=t.createElement(lt,null),showCancel:f=!0,close:p,onConfirm:m,onCancel:g,onPopupClick:h}=e,{getPrefixCls:v}=t.useContext(P),[b]=Ye("Popconfirm",ot.Popconfirm),y=Rr(i),x=Rr(l);return t.createElement("div",{className:`${r}-inner-content`,onClick:h},t.createElement("div",{className:`${r}-message`},d&&t.createElement("span",{className:`${r}-message-icon`},d),t.createElement("div",{className:`${r}-message-text`},y&&t.createElement("div",{className:n(`${r}-title`)},y),x&&t.createElement("div",{className:`${r}-description`},x))),t.createElement("div",{className:`${r}-buttons`},f&&t.createElement(Ve,Object.assign({onClick:g,size:"small"},a),c||(null==b?void 0:b.cancelText)),t.createElement(at,{buttonProps:Object.assign(Object.assign({size:"small"},it(u)),o),actionFn:m,close:p,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(null==b?void 0:b.okText))))},_c=e=>{const{prefixCls:r,placement:o,className:a,style:i}=e,l=Wc(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=t.useContext(P),s=c("popconfirm",r),[u]=Ac(s);return u(t.createElement(zr,{placement:o,className:n(s,a),style:i,content:t.createElement(Fc,Object.assign({prefixCls:s},l))}))};var Vc=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o,a;const{prefixCls:i,placement:l="top",trigger:c="click",okType:s="primary",icon:u=t.createElement(lt,null),children:d,overlayClassName:f,onOpenChange:p,onVisibleChange:m}=e,g=Vc(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=t.useContext(P),[v,b]=S(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(a=e.defaultOpen)&&void 0!==a?a:e.defaultVisible}),y=(e,t)=>{b(e,!0),null==m||m(e),null==p||p(e,t)},x=h("popconfirm",i),C=n(x,f),[w]=Ac(x);return w(t.createElement(Fr,Object.assign({},O(g,["title"]),{trigger:c,placement:l,onOpenChange:(t,n)=>{const{disabled:r=!1}=e;r||y(t,n)},open:v,ref:r,overlayClassName:C,content:t.createElement(Fc,Object.assign({okType:s,icon:u},e,{prefixCls:x,close:e=>{y(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(globalThis,t)},onCancel:t=>{var n;y(!1,t),null===(n=e.onCancel)||void 0===n||n.call(globalThis,t)}})),"data-popover-inject":!0}),d))})),qc=Yc;qc._InternalPanelDoNotUseOrYouWillBeFired=_c;const Xc=qc;var Gc={},Uc="rc-table-internal-hook";function Qc(e){var n=t.createContext(void 0);return{Context:n,Provider:function(e){var r=e.value,o=e.children,i=t.useRef(r);i.current=r;var l=t.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),c=a(l,1)[0];return C((function(){I.unstable_batchedUpdates((function(){c.listeners.forEach((function(e){e(r)}))}))}),[r]),t.createElement(n.Provider,{value:c},o)},defaultValue:e}}function Zc(e,n){var r=N("function"==typeof n?n:function(e){if(void 0===n)return e;if(!Array.isArray(n))return e[n];var t={};return n.forEach((function(n){t[n]=e[n]})),t}),o=t.useContext(null==e?void 0:e.Context),i=o||{},l=i.listeners,c=i.getValue,s=t.useRef();s.current=r(o?c():null==e?void 0:e.defaultValue);var u=t.useState({}),d=a(u,2)[1];return C((function(){if(o)return l.add(e),function(){l.delete(e)};function e(e){var t=r(e);ct(s.current,t,!0)||d({})}}),[o]),s.current}var Jc=function(){var e=t.createContext(null);function n(){return t.useContext(e)}return{makeImmutable:function(r,o){var a=st(r),i=function(i,l){var c=a?{ref:l}:{},s=t.useRef(0),u=t.useRef(i);return null!==n()?t.createElement(r,p({},i,c)):(o&&!o(u.current,i)||(s.current+=1),u.current=i,t.createElement(e.Provider,{value:s.current},t.createElement(r,p({},i,c))))};return a?t.forwardRef(i):i},responseImmutable:function(e,r){var o=st(e),a=function(r,a){var i=o?{ref:a}:{};return n(),t.createElement(e,p({},r,i))};return o?t.memo(t.forwardRef(a),r):t.memo(a,r)},useImmutableMark:n}}(),es=Jc.makeImmutable,ts=Jc.responseImmutable,ns=Jc.useImmutableMark,rs=Qc(),os=t.createContext({renderWithProps:!1}),as="RC_TABLE_KEY";function is(e){var t=[],n={};return e.forEach((function(e){for(var r,o=e||{},a=o.key,i=o.dataIndex,l=a||(r=i,null==r?[]:Array.isArray(r)?r:[r]).join("-")||as;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function ls(e){return null!=e}function cs(e,n,r,i,l,c){var s=t.useContext(os),u=ns();return M((function(){if(ls(i))return[i];var a,c=null==n||""===n?[]:Array.isArray(n)?n:[n],u=ut(e,c),d=u,f=void 0;if(l){var p=l(u,e,r);!(a=p)||"object"!==o(a)||Array.isArray(a)||t.isValidElement(a)?d=p:(d=p.children,f=p.props,s.renderWithProps=!0)}return[d,f]}),[u,e,i,n,l,r],(function(e,t){if(c){var n=a(e,2)[1],r=a(t,2)[1];return c(r,n)}return!!s.renderWithProps||!ct(e,t,!0)}))}function ss(e){var r,i,l,s,u,d,m,g,h=e.component,v=e.children,b=e.ellipsis,y=e.scope,x=e.prefixCls,C=e.className,S=e.align,w=e.record,k=e.render,$=e.dataIndex,E=e.renderIndex,I=e.shouldCellUpdate,M=e.index,O=e.rowType,D=e.colSpan,R=e.rowSpan,P=e.fixLeft,T=e.fixRight,H=e.firstFixLeft,j=e.lastFixLeft,B=e.firstFixRight,z=e.lastFixRight,L=e.appendNode,K=e.additionalProps,A=void 0===K?{}:K,W=e.isSticky,F="".concat(x,"-cell"),_=Zc(rs,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=_.supportSticky,Y=_.allColumnsFixedLeft,q=_.rowHoverable,X=cs(w,$,E,v,k,I),G=a(X,2),U=G[0],Q=G[1],Z={},J="number"==typeof P&&V,ee="number"==typeof T&&V;J&&(Z.position="sticky",Z.left=P),ee&&(Z.position="sticky",Z.right=T);var te=null!==(r=null!==(i=null!==(l=null==Q?void 0:Q.colSpan)&&void 0!==l?l:A.colSpan)&&void 0!==i?i:D)&&void 0!==r?r:1,ne=null!==(s=null!==(u=null!==(d=null==Q?void 0:Q.rowSpan)&&void 0!==d?d:A.rowSpan)&&void 0!==u?u:R)&&void 0!==s?s:1,re=function(e,t){return Zc(rs,(function(n){var r,o,a,i;return[(r=e,o=t||1,a=n.hoverStartRow,i=n.hoverEndRow,r<=i&&r+o-1>=a),n.onHover]}))}(M,ne),oe=a(re,2),ae=oe[0],ie=oe[1],le=N((function(e){var t;w&&ie(M,M+ne-1),null==A||null===(t=A.onMouseEnter)||void 0===t||t.call(A,e)})),ce=N((function(e){var t;w&&ie(-1,-1),null==A||null===(t=A.onMouseLeave)||void 0===t||t.call(A,e)}));if(0===te||0===ne)return null;var se=null!==(m=A.title)&&void 0!==m?m:function(e){var n,r=e.ellipsis,o=e.rowType,a=e.children,i=!0===r?{showTitle:!0}:r;return i&&(i.showTitle||"header"===o)&&("string"==typeof a||"number"==typeof a?n=a.toString():t.isValidElement(a)&&"string"==typeof a.props.children&&(n=a.props.children)),n}({rowType:O,ellipsis:b,children:U}),ue=n(F,C,(f(f(f(f(f(f(f(f(f(f(g={},"".concat(F,"-fix-left"),J&&V),"".concat(F,"-fix-left-first"),H&&V),"".concat(F,"-fix-left-last"),j&&V),"".concat(F,"-fix-left-all"),j&&Y&&V),"".concat(F,"-fix-right"),ee&&V),"".concat(F,"-fix-right-first"),B&&V),"".concat(F,"-fix-right-last"),z&&V),"".concat(F,"-ellipsis"),b),"".concat(F,"-with-append"),L),"".concat(F,"-fix-sticky"),(J||ee)&&W&&V),f(g,"".concat(F,"-row-hover"),!Q&&ae)),A.className,null==Q?void 0:Q.className),de={};S&&(de.textAlign=S);var fe=c(c(c(c({},Z),A.style),de),null==Q?void 0:Q.style),pe=U;return"object"!==o(pe)||Array.isArray(pe)||t.isValidElement(pe)||(pe=null),b&&(j||B)&&(pe=t.createElement("span",{className:"".concat(F,"-content")},pe)),t.createElement(h,p({},Q,A,{className:ue,style:fe,title:se,scope:y,onMouseEnter:q?le:void 0,onMouseLeave:q?ce:void 0,colSpan:1!==te?te:null,rowSpan:1!==ne?ne:null}),L,pe)}const us=t.memo(ss);function ds(e,t,n,r,o){var a,i,l=n[e]||{},c=n[t]||{};"left"===l.fixed?a=r.left["rtl"===o?t:e]:"right"===c.fixed&&(i=r.right["rtl"===o?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],m=n[e-1],g=p&&void 0===p.fixed||m&&void 0===m.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===o){if(void 0!==a)f=!(m&&"left"===m.fixed)&&g;else if(void 0!==i){d=!(p&&"right"===p.fixed)&&g}}else if(void 0!==a){s=!(p&&"left"===p.fixed)&&g}else if(void 0!==i){u=!(m&&"right"===m.fixed)&&g}return{fixLeft:a,fixRight:i,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var fs=t.createContext({});var ps=["children"];function ms(e){return e.children}ms.Row=function(e){var n=e.children,r=m(e,ps);return t.createElement("tr",r,n)},ms.Cell=function(e){var n=e.className,r=e.index,o=e.children,a=e.colSpan,i=void 0===a?1:a,l=e.rowSpan,c=e.align,s=Zc(rs,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,f=t.useContext(fs),m=f.scrollColumnIndex,g=f.stickyOffsets,h=r+i-1+1===m?i+1:i,v=ds(r,r+h-1,f.flattenColumns,g,d);return t.createElement(us,p({className:n,index:r,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:h,rowSpan:l,render:function(){return o}},v))};const gs=ts((function(e){var n=e.children,r=e.stickyOffsets,o=e.flattenColumns,a=Zc(rs,"prefixCls"),i=o.length-1,l=o[i],c=t.useMemo((function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:null!=l&&l.scrollbar?i:null}}),[l,o,i,r]);return t.createElement(fs.Provider,{value:c},t.createElement("tfoot",{className:"".concat(a,"-summary")},n))}));var hs=ms;function vs(e,t,n,r,o,a,i){e.push({record:t,indent:n,index:i});var l=a(t),c=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s1?n-1:0),o=1;o=1?E:""),style:c(c({},o),null==C?void 0:C.style)}),b.map((function(e,n){var r=e.render,o=e.dataIndex,c=e.className,s=Cs(h,e,n,d,i),u=s.key,f=s.fixedInfo,b=s.appendCellNode,y=s.additionalCellProps;return t.createElement(us,p({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?g:m,prefixCls:v,key:u,record:a,index:i,renderIndex:l,dataIndex:o,render:r,shouldCellUpdate:e.shouldCellUpdate},f,{appendNode:b,additionalProps:y}))})));if(w&&(k.current||S)){var I=x(a,i,d+1,S);$=t.createElement(xs,{expanded:S,className:n("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(d+1),E),prefixCls:v,component:f,cellComponent:m,colSpan:b.length,isEmpty:!1},I)}return t.createElement(t.Fragment,null,N,$)}));function ws(e){var n=e.columnKey,r=e.onColumnResize,o=t.useRef();return t.useEffect((function(){o.current&&r(n,o.current.offsetWidth)}),[]),t.createElement(w,{data:n},t.createElement("td",{ref:o,style:{padding:0,border:0,height:0}},t.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function ks(e){var n=e.prefixCls,r=e.columnsKey,o=e.onColumnResize;return t.createElement("tr",{"aria-hidden":"true",className:"".concat(n,"-measure-row"),style:{height:0,fontSize:0}},t.createElement(w.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;o(t,n.offsetWidth)}))}},r.map((function(e){return t.createElement(ws,{key:e,columnKey:e,onColumnResize:o})}))))}const $s=ts((function(e){var n,r=e.data,o=e.measureColumnWidth,a=Zc(rs,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=a.prefixCls,l=a.getComponent,c=a.onColumnResize,s=a.flattenColumns,u=a.getRowKey,d=a.expandedKeys,f=a.childrenColumnName,p=a.emptyNode,m=bs(r,f,d,u),g=t.useRef({renderWithProps:!1}),h=l(["body","wrapper"],"tbody"),v=l(["body","row"],"tr"),b=l(["body","cell"],"td"),y=l(["body","cell"],"th");n=r.length?m.map((function(e,n){var r=e.record,o=e.indent,a=e.index,i=u(r,n);return t.createElement(Ss,{key:i,rowKey:i,record:r,index:n,renderIndex:a,rowComponent:v,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:o})})):t.createElement(xs,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:v,cellComponent:b,colSpan:s.length,isEmpty:!0},p);var x=is(s);return t.createElement(os.Provider,{value:g.current},t.createElement(h,{className:"".concat(i,"-tbody")},o&&t.createElement(ks,{prefixCls:i,columnsKey:x,onColumnResize:c}),n))}));var Es=["expandable"],Ns="RC_TABLE_INTERNAL_COL_DEFINE";var Is=["columnType"];function Ms(e){for(var n=e.colWidths,r=e.columns,o=[],a=!1,i=(e.columCount||r.length)-1;i>=0;i-=1){var l=n[i],c=r&&r[i],s=c&&c[Ns];if(l||s||a){var u=s||{};u.columnType;var d=m(u,Is);o.unshift(t.createElement("col",p({key:i,style:{width:l}},d))),a=!0}}return t.createElement("colgroup",null,o)}var Os=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Ds=t.forwardRef((function(e,r){var o=e.className,a=e.noData,i=e.columns,l=e.flattenColumns,s=e.colWidths,u=e.columCount,d=e.stickyOffsets,p=e.direction,g=e.fixHeader,h=e.stickyTopOffset,v=e.stickyBottomOffset,y=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,S=e.children,w=m(e,Os),k=Zc(rs,["prefixCls","scrollbarSize","isSticky","getComponent"]),$=k.prefixCls,E=k.scrollbarSize,N=k.isSticky,I=(0,k.getComponent)(["header","table"],"table"),M=N&&!g?0:E,O=t.useRef(null),D=t.useCallback((function(e){dt(r,e),dt(O,e)}),[]);t.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(x({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var R=t.useMemo((function(){return l.every((function(e){return e.width}))}),[l]),P=l[l.length-1],T={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($,"-cell-scrollbar")}}},H=t.useMemo((function(){return M?[].concat(b(i),[T]):i}),[M,i]),j=t.useMemo((function(){return M?[].concat(b(l),[T]):l}),[M,l]),B=t.useMemo((function(){var e=d.right,t=d.left;return c(c({},d),{},{left:"rtl"===p?[].concat(b(t.map((function(e){return e+M}))),[0]):t,right:"rtl"===p?e:[].concat(b(e.map((function(e){return e+M}))),[0]),isSticky:N})}),[M,d,N]),z=function(e,n){return t.useMemo((function(){for(var t=[],r=0;r1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:l,prefixCls:d,key:m[n]},c,{additionalProps:r,rowType:"header"}))})))};const Ts=ts((function(e){var n=e.stickyOffsets,r=e.columns,o=e.flattenColumns,a=e.onHeaderRow,i=Zc(rs,["prefixCls","getComponent"]),l=i.prefixCls,c=i.getComponent,s=t.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var a=r;return n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:a},i=1,l=n.children;return l&&l.length>0&&(i=e(l,a,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(i=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,t[o].push(r),a+=i,i}))}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var js=["children"],Bs=["fixed"];function zs(e){return R(e).filter((function(e){return t.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=m(n,js),a=c({key:t},o);return r&&(a.children=zs(r)),a}))}function Ls(e){return e.filter((function(e){return e&&"object"===o(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?c(c({},e),{},{children:Ls(t)}):e}))}function Ks(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===o(e)})).reduce((function(e,n,r){var o=n.fixed,a=!0===o?"left":o,i="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat(b(e),b(Ks(l,i).map((function(e){return c({fixed:a},e)})))):[].concat(b(e),[c(c({key:i},n),{},{fixed:a})])}),[])}function As(e,n){var r=e.prefixCls,o=e.columns,i=e.children,l=e.expandable,s=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,p=e.onTriggerExpand,g=e.expandIcon,h=e.rowExpandable,v=e.expandIconColumnIndex,b=e.direction,y=e.expandRowByClick,x=e.columnWidth,C=e.fixed,S=e.scrollWidth,w=e.clientWidth,k=t.useMemo((function(){return Ls((o||zs(i)||[]).slice())}),[o,i]),$=t.useMemo((function(){if(l){var e=k.slice();if(!e.includes(Gc)){var n=v||0;n>=0&&e.splice(n,0,Gc)}var o=e.indexOf(Gc);e=e.filter((function(e,t){return e!==Gc||t===o}));var a,i=k[o];a="left"!==C&&!C||v?"right"!==C&&!C||v!==k.length?i?i.fixed:null:"right":"left";var c=f(f(f(f(f(f({},Ns,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",a),"className","".concat(r,"-row-expand-icon-cell")),"width",x),"render",(function(e,n,o){var a=d(n,o),i=s.has(a),l=!h||h(n),c=g({prefixCls:r,expanded:i,expandable:l,record:n,onExpand:p});return y?t.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c}));return e.map((function(e){return e===Gc?c:e}))}return k.filter((function(e){return e!==Gc}))}),[l,k,d,s,g,b]),E=t.useMemo((function(){var e=$;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,$,b]),N=t.useMemo((function(){return"rtl"===b?function(e){return e.map((function(e){var t=e.fixed,n=m(e,Bs),r=t;return"left"===t?r="right":"right"===t&&(r="left"),c({fixed:r},n)}))}(Ks(E)):Ks(E)}),[E,b,S]),I=t.useMemo((function(){for(var e=-1,t=N.length-1;t>=0;t-=1){var n=N[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=N[r].fixed;if("left"!==o&&!0!==o)return!0}var a=N.findIndex((function(e){return"right"===e.fixed}));if(a>=0)for(var i=a;i0){var t=0,o=0;e.forEach((function(e){var r=Hs(n,e.width);r?t+=r:o+=1}));var a=Math.max(n,r),i=Math.max(a-t,o),l=o,s=i/o,u=0,d=e.map((function(e){var t=c({},e),r=Hs(n,t.width);if(r)t.width=r;else{var o=Math.floor(s);t.width=1===l?i:o,i-=o,l-=1}return u+=t.width,t}));if(u=h&&(r=h-v),u({scrollLeft:r/h*(g+2)}),w.current.x=e.pageX}else E&&N(!1)},D=function(){I.current=e((function(){if(s.current){var e=lc(s.current).top,t=e+s.current.offsetHeight,n=p===window?document.documentElement.scrollTop+window.innerHeight:lc(p).top+p.clientHeight;t-ft()<=n||e>=n-d?S((function(e){return c(c({},e),{},{isHiddenScrollBar:!0})})):S((function(e){return c(c({},e),{},{isHiddenScrollBar:!1})}))}}))},R=function(e){S((function(t){return c(c({},t),{},{scrollLeft:e/g*h||0})}))};return t.useImperativeHandle(o,(function(){return{setScrollLeft:R,checkScrollBarVisible:D}})),t.useEffect((function(){var e=cc(document.body,"mouseup",M,!1),t=cc(document.body,"mousemove",O,!1);return D(),function(){e.remove(),t.remove()}}),[v,E]),t.useEffect((function(){var e=cc(p,"scroll",D,!1),t=cc(window,"resize",D,!1);return function(){e.remove(),t.remove()}}),[p]),t.useEffect((function(){C.isHiddenScrollBar||S((function(e){var t=s.current;return t?c(c({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[C.isHiddenScrollBar]),g<=h||!v||C.isHiddenScrollBar?null:t.createElement("div",{style:{height:ft(),width:h,bottom:d},className:"".concat(m,"-sticky-scroll")},t.createElement("div",{onMouseDown:function(e){e.persist(),w.current.delta=e.pageX-C.scrollLeft,w.current.x=0,N(!0),e.preventDefault()},ref:b,className:n("".concat(m,"-sticky-scroll-bar"),f({},"".concat(m,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))};const Xs=t.forwardRef(qs);var Gs="rc-table",Us=[],Qs={};function Zs(){return"No Data"}function Js(e,r){var i=c({rowKey:"key",prefixCls:Gs,emptyText:Zs},e),l=i.prefixCls,s=i.className,d=i.rowClassName,m=i.style,g=i.data,h=i.rowKey,v=i.scroll,b=i.tableLayout,y=i.direction,x=i.title,C=i.footer,S=i.summary,k=i.caption,$=i.id,E=i.showHeader,I=i.components,O=i.emptyText,D=i.onRow,R=i.onHeaderRow,P=i.onScroll,T=i.internalHooks,H=i.transformColumns,j=i.internalRefs,B=i.tailor,z=i.getContainerWidth,L=i.sticky,K=i.rowHoverable,A=void 0===K||K,W=g||Us,F=!!W.length,_=T===Uc,V=t.useCallback((function(e,t){return ut(I,e)||t}),[I]),Y=t.useMemo((function(){return"function"==typeof h?h:function(e){return e&&e[h]}}),[h]),q=V(["body"]),X=function(){var e=t.useState(-1),n=a(e,2),r=n[0],o=n[1],i=t.useState(-1),l=a(i,2),c=l[0],s=l[1];return[r,c,t.useCallback((function(e,t){o(e),s(t)}),[])]}(),G=a(X,3),U=G[0],Q=G[1],Z=G[2],J=Fs(i,W,Y),ee=a(J,6),te=ee[0],ne=ee[1],re=ee[2],oe=ee[3],ae=ee[4],ie=ee[5],le=null==v?void 0:v.x,ce=t.useState(0),se=a(ce,2),ue=se[0],de=se[1],fe=As(c(c(c({},i),te),{},{expandable:!!te.expandedRowRender,columnTitle:te.columnTitle,expandedKeys:re,getRowKey:Y,onTriggerExpand:ie,expandIcon:oe,expandIconColumnIndex:te.expandIconColumnIndex,direction:y,scrollWidth:_&&B&&"number"==typeof le?le:null,clientWidth:ue}),_?H:null),pe=a(fe,4),me=pe[0],ge=pe[1],he=pe[2],ve=pe[3],be=null!=he?he:le,ye=t.useMemo((function(){return{columns:me,flattenColumns:ge}}),[me,ge]),xe=t.useRef(),Ce=t.useRef(),Se=t.useRef(),ke=t.useRef();t.useImperativeHandle(r,(function(){return{nativeElement:xe.current,scrollTo:function(e){var t;if(Se.current instanceof HTMLElement){var n=e.index,r=e.top,o=e.key;if(r){var a;null===(a=Se.current)||void 0===a||a.scrollTo({top:r})}else{var i,l=null!=o?o:Y(W[n]);null===(i=Se.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===i||i.scrollIntoView()}}else null!==(t=Se.current)&&void 0!==t&&t.scrollTo&&Se.current.scrollTo(e)}}}));var $e,Ee,Ne,Ie=t.useRef(),Me=t.useState(!1),Oe=a(Me,2),De=Oe[0],Re=Oe[1],Pe=t.useState(!1),Te=a(Pe,2),He=Te[0],je=Te[1],Be=_s(new Map),ze=a(Be,2),Le=ze[0],Ke=ze[1],Ae=is(ge).map((function(e){return Le.get(e)})),We=t.useMemo((function(){return Ae}),[Ae.join("_")]),Fe=function(e,n,r){var o=t.useMemo((function(){var t=n.length,o=function(t,r,o){for(var a=[],i=0,l=t;l!==r;l+=o)a.push(i),n[l].fixed&&(i+=e[l]||0);return a},a=o(0,t,1),i=o(t-1,-1,-1).reverse();return"rtl"===r?{left:i,right:a}:{left:a,right:i}}),[e,n,r]);return o}(We,ge,y),_e=v&&ls(v.y),Ve=v&&ls(be)||Boolean(te.fixed),Ye=Ve&&ge.some((function(e){return e.fixed})),qe=t.useRef(),Xe=function(e,n){var r="object"===o(e)?e:{},a=r.offsetHeader,i=void 0===a?0:a,l=r.offsetSummary,c=void 0===l?0:l,s=r.offsetScroll,u=void 0===s?0:s,d=r.getContainer,f=(void 0===d?function(){return Vs}:d)()||Vs;return t.useMemo((function(){var t=!!e;return{isSticky:t,stickyClassName:t?"".concat(n,"-sticky-holder"):"",offsetHeader:i,offsetSummary:c,offsetScroll:u,container:f}}),[u,i,c,n,f])}(L,l),Ge=Xe.isSticky,Ue=Xe.offsetHeader,Qe=Xe.offsetSummary,Ze=Xe.offsetScroll,Je=Xe.stickyClassName,et=Xe.container,tt=t.useMemo((function(){return null==S?void 0:S(W)}),[S,W]),nt=(_e||Ge)&&t.isValidElement(tt)&&tt.type===ms&&tt.props.fixed;_e&&(Ee={overflowY:"scroll",maxHeight:v.y}),Ve&&($e={overflowX:"auto"},_e||(Ee={overflowY:"hidden"}),Ne={width:!0===be?"auto":be,minWidth:"100%"});var rt=t.useCallback((function(e,t){we(xe.current)&&Ke((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),ot=function(e){var n=t.useRef(e||null),r=t.useRef();function o(){window.clearTimeout(r.current)}return t.useEffect((function(){return o}),[]),[function(e){n.current=e,o(),r.current=window.setTimeout((function(){n.current=null,r.current=void 0}),100)},function(){return n.current}]}(null),at=a(ot,2),it=at[0],lt=at[1];function st(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var dt=N((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===y,a="number"==typeof r?r:n.scrollLeft,i=n||Qs;lt()&<()!==i||(it(i),st(a,Ce.current),st(a,Se.current),st(a,Ie.current),st(a,null===(t=qe.current)||void 0===t?void 0:t.setScrollLeft));var l=n||Ce.current;if(l){var c=l.scrollWidth,s=l.clientWidth;if(c===s)return Re(!1),void je(!1);o?(Re(-a0)):(Re(a>0),je(a1?x-R:0,T=c(c(c({},N),f),{},{flex:"0 0 ".concat(R,"px"),width:"".concat(R,"px"),marginRight:P,pointerEvents:"auto"}),H=t.useMemo((function(){return g?D<=1:0===M||0===D||D>1}),[D,M,g]);H?T.visibility="hidden":g&&(T.height=null==h?void 0:h(D));var j=H?function(){return null}:v,B={};return 0!==D&&0!==M||(B.rowSpan=1,B.colSpan=1),t.createElement(us,p({className:n(y,m),ellipsis:o.ellipsis,align:o.align,scope:o.rowScope,component:s,prefixCls:r.prefixCls,key:w,record:d,index:l,renderIndex:u,dataIndex:b,render:j,shouldCellUpdate:o.shouldCellUpdate},k,{appendNode:$,additionalProps:c(c({},E),{},{style:T},B)}))}var iu=["data","index","className","rowKey","style","extra","getHeight"],lu=ts(t.forwardRef((function(e,r){var o,a=e.data,i=e.index,l=e.className,s=e.rowKey,u=e.style,d=e.extra,g=e.getHeight,h=m(e,iu),v=a.record,b=a.indent,y=a.index,x=Zc(rs,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),C=x.scrollX,S=x.flattenColumns,w=x.prefixCls,k=x.fixColumn,$=x.componentWidth,E=Zc(ru,["getComponent"]).getComponent,N=ys(v,s,i,b),I=E(["body","row"],"div"),M=E(["body","cell"],"div"),O=N.rowSupportExpand,D=N.expanded,R=N.rowProps,P=N.expandedRowRender,T=N.expandedRowClassName;if(O&&D){var H=P(v,i,b+1,D),j=null==T?void 0:T(v,i,b),B={};k&&(B={style:f({},"--virtual-width","".concat($,"px"))});var z="".concat(w,"-expanded-row-cell");o=t.createElement(I,{className:n("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(b+1),j)},t.createElement(us,{component:M,prefixCls:w,className:n(z,f({},"".concat(z,"-fixed"),k)),additionalProps:B},H))}var L=c(c({},u),{},{width:C});d&&(L.position="absolute",L.pointerEvents="none");var K=t.createElement(I,p({},R,h,{"data-row-key":s,ref:O?null:r,className:n(l,"".concat(w,"-row"),null==R?void 0:R.className,f({},"".concat(w,"-row-extra"),d)),style:c(c({},L),null==R?void 0:R.style)}),S.map((function(e,n){return t.createElement(au,{key:n,component:M,rowInfo:N,column:e,colIndex:n,indent:b,index:i,renderIndex:y,record:v,inverse:d,getHeight:g})})));return O?t.createElement("div",{ref:r},K,o):K}))),cu=t.forwardRef((function(e,r){var i=e.data,l=e.onScroll,c=Zc(rs,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),s=c.flattenColumns,u=c.onColumnResize,d=c.getRowKey,f=c.expandedKeys,m=c.prefixCls,g=c.childrenColumnName,h=c.emptyNode,v=c.scrollX,b=Zc(ru),y=b.sticky,x=b.scrollY,C=b.listItemHeight,S=b.getComponent,w=b.onScroll,k=t.useRef(),$=bs(i,g,f,d),E=t.useMemo((function(){var e=0;return s.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[s]),N=t.useMemo((function(){return E.map((function(e){return e[2]}))}),[E]);t.useEffect((function(){E.forEach((function(e){var t=a(e,2),n=t[0],r=t[1];u(n,r)}))}),[E]),t.useImperativeHandle(r,(function(){var e={scrollTo:function(e){var t;null===(t=k.current)||void 0===t||t.scrollTo(e)}};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=k.current)||void 0===t||t.scrollTo({left:e})}}),e}));var I,M=function(e,t){var n,r=null===(n=$[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var a,i=o(r,t);return null!==(a=null==i?void 0:i.rowSpan)&&void 0!==a?a:1}return 1},O=t.useMemo((function(){return{columnsOffset:N}}),[N]),D="".concat(m,"-tbody"),R=S(["body","wrapper"]),P=S(["body","row"],"div"),T=S(["body","cell"],"div");if($.length){var H={};y&&(H.position="sticky",H.bottom=0,"object"===o(y)&&y.offsetScroll&&(H.bottom=y.offsetScroll)),I=t.createElement(Ln,{fullHeight:!1,ref:k,prefixCls:"".concat(D,"-virtual"),styles:{horizontalScrollBar:H},className:D,height:x,itemHeight:C||24,data:$,itemKey:function(e){return d(e.record)},component:R,scrollWidth:v,onVirtualScroll:function(e){var t=e.x;l({scrollLeft:t})},onScroll:w,extraRender:function(e){var n=e.start,r=e.end,o=e.getSize,a=e.offsetY;if(r<0)return null;for(var i=s.filter((function(e){return 0===M(e,n)})),l=n,c=function(e){if(!(i=i.filter((function(t){return 0===M(t,e)}))).length)return l=e,1},u=n;u>=0&&!c(u);u-=1);for(var f=s.filter((function(e){return 1!==M(e,r)})),p=r,m=function(e){if(!(f=f.filter((function(t){return 1!==M(t,e)}))).length)return p=Math.max(e-1,r),1},g=r;g<$.length&&!m(g);g+=1);for(var h=[],v=function(e){if(!$[e])return 1;s.some((function(t){return M(t,e)>1}))&&h.push(e)},b=l;b<=p;b+=1)v(b);return h.map((function(e){var n=$[e],r=d(n.record,e),i=o(r);return t.createElement(lu,{key:e,data:n,rowKey:r,index:e,style:{top:-a+i.top},extra:!0,getHeight:function(t){var n=e+t-1,a=d($[n].record,n),i=o(r,a);return i.bottom-i.top}})}))}},(function(e,n,r){var o=d(e.record,n);return t.createElement(lu,p({data:e,rowKey:o,index:n},r))}))}else I=t.createElement(P,{className:n("".concat(m,"-placeholder"))},t.createElement(us,{component:T,prefixCls:m},h));return t.createElement(ou.Provider,{value:O},I)})),su=ts(cu),uu=function(e,n){var r=n.ref,o=n.onScroll;return t.createElement(su,{ref:r,data:e,onScroll:o})};function du(e,r){var o=e.columns,a=e.scroll,i=e.sticky,l=e.prefixCls,s=void 0===l?Gs:l,u=e.className,d=e.listItemHeight,f=e.components,m=e.onScroll,g=a||{},h=g.x,v=g.y;"number"!=typeof h&&(h=1),"number"!=typeof v&&(v=500);var b=N((function(e,t){return ut(f,e)||t})),y=N(m),x=t.useMemo((function(){return{sticky:i,scrollY:v,listItemHeight:d,getComponent:b,onScroll:y}}),[i,v,d,b,y]);return t.createElement(ru.Provider,{value:x},t.createElement(nu,p({},e,{className:n(u,"".concat(s,"-virtual")),scroll:c(c({},a),{},{x:h}),components:c(c({},f),{},{body:uu}),columns:o,internalHooks:Uc,tailor:!0,ref:r})))}var fu=t.forwardRef(du);function pu(e){return es(fu,e)}pu();var mu=t.createContext(null),gu=function(e){for(var r=e.prefixCls,o=e.level,a=e.isStart,i=e.isEnd,l="".concat(r,"-indent-unit"),c=[],s=0;s=0&&n.splice(r,1),n}function wu(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function ku(e){return e.split("-")}function $u(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(Bi(t,e).children),n}function Eu(e){if(e.parent){var t=ku(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Nu(e,t,n,r,o,a,i,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,h=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,v=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=Bi(l,n.props.eventKey);if(f-1.5?a({dragNode:I,dropNode:M,dropPosition:1})?k=1:O=!1:a({dragNode:I,dropNode:M,dropPosition:0})?k=0:a({dragNode:I,dropNode:M,dropPosition:1})?k=1:O=!1:a({dragNode:I,dropNode:M,dropPosition:1})?k=1:O=!1,{dropPosition:k,dropLevelOffset:$,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:0===k?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:O}}function Iu(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function Mu(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==o(e))return h(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Ou(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=Bi(t,e);if(o){n.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),b(n)}Cu.displayName="TreeNode",Cu.isTreeNode=1;const Du={},Ru="SELECT_ALL",Pu="SELECT_INVERT",Tu="SELECT_NONE",Hu=[],ju=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat(b(n),b(ju(e,t[e]))))})),n},Bu=(e,r)=>{const{preserveSelectedRowKeys:o,selectedRowKeys:a,defaultSelectedRowKeys:i,getCheckboxProps:l,onChange:c,onSelect:s,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:p,columnWidth:m,type:g,selections:h,fixed:v,renderCell:y,hideSelectAll:x,checkStrictly:C=!0}=r||{},{prefixCls:w,data:k,pageData:$,getRecordByKey:E,getRowKey:N,expandType:I,childrenColumnName:M,locale:O,getPopupContainer:D}=e,R=vt(),[P,T]=function(e){const[n,r]=t.useState(null);return[t.useCallback(((t,o,a)=>{const i=null!=n?n:t,l=Math.min(i||0,t),c=Math.max(i||0,t),s=o.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!a.has(e))),d=[];return s.forEach((e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))})),r(u?c:null),d}),[n]),e=>{r(e)}]}((e=>e)),[H,j]=S(a||i||Hu,{value:a}),B=t.useRef(new Map),z=t.useCallback((e=>{if(o){const t=new Map;e.forEach((e=>{let n=E(e);!n&&B.current.has(e)&&(n=B.current.get(e)),t.set(e,n)})),B.current=t}}),[E,o]);t.useEffect((()=>{z(H)}),[H]);const{keyEntities:L}=t.useMemo((()=>{if(C)return{keyEntities:null};let e=k;if(o){const t=new Set(k.map(((e,t)=>N(e,t)))),n=Array.from(B.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat(b(e),b(n))}return _i(e,{externalGetKey:N,childrenPropName:M})}),[k,N,C,M,o]),K=t.useMemo((()=>ju(M,$)),[M,$]),A=t.useMemo((()=>{const e=new Map;return K.forEach(((t,n)=>{const r=N(t,n),o=(l?l(t):null)||{};e.set(r,o)})),e}),[K,N,l]),W=t.useCallback((e=>{var t;return!!(null===(t=A.get(N(e)))||void 0===t?void 0:t.disabled)}),[A,N]),[F,_]=t.useMemo((()=>{if(C)return[H||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Gi(H,!0,L,W);return[e||[],t]}),[H,C,L,W]),V=t.useMemo((()=>{const e="radio"===g?F.slice(0,1):F;return new Set(e)}),[F,g]),Y=t.useMemo((()=>"radio"===g?new Set:new Set(_)),[_,g]);t.useEffect((()=>{r||j(Hu)}),[!!r]);const q=t.useCallback(((e,t)=>{let n,r;z(e),o?(n=e,r=e.map((e=>B.current.get(e)))):(n=[],r=[],e.forEach((e=>{const t=E(e);void 0!==t&&(n.push(e),r.push(t))}))),j(n),null==c||c(n,r,{type:t})}),[j,E,c,o]),X=t.useCallback(((e,t,n,r)=>{if(s){const o=n.map((e=>E(e)));s(E(e),t,o,r)}q(n,"single")}),[s,E,q]),G=t.useMemo((()=>{if(!h||x)return null;return(!0===h?[Ru,Pu,Tu]:h).map((e=>e===Ru?{key:"all",text:O.selectionAll,onSelect(){q(k.map(((e,t)=>N(e,t))).filter((e=>{const t=A.get(e);return!(null==t?void 0:t.disabled)||V.has(e)})),"all")}}:e===Pu?{key:"invert",text:O.selectInvert,onSelect(){const e=new Set(V);$.forEach(((t,n)=>{const r=N(t,n),o=A.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);d&&(R.deprecated(!1,"onSelectInvert","onChange"),d(t)),q(t,"invert")}}:e===Tu?{key:"none",text:O.selectNone,onSelect(){null==f||f(),q(Array.from(V).filter((e=>{const t=A.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),a=0;a{var o;if(!r)return e.filter((e=>e!==Du));let a=b(e);const i=new Set(V),l=K.map(N).filter((e=>!A.get(e).disabled)),c=l.every((e=>i.has(e))),s=l.some((e=>i.has(e))),d=()=>{const e=[];c?l.forEach((t=>{i.delete(t),e.push(t)})):l.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==u||u(!c,t.map((e=>E(e))),e.map((e=>E(e)))),q(t,"all"),T(null)};let f,S,k;if("radio"!==g){let e;if(G){const n={getPopupContainer:D,items:G.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(l)},label:r}}))};e=t.createElement("div",{className:`${w}-selection-extra`},t.createElement(bt,{menu:n,getPopupContainer:D},t.createElement("span",null,t.createElement(Z,null))))}const n=K.map(((e,t)=>{const n=N(e,t),r=A.get(n)||{};return Object.assign({checked:i.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),r=!!n.length&&n.length===K.length,o=r&&n.every((e=>{let{checked:t}=e;return t})),a=r&&n.some((e=>{let{checked:t}=e;return t}));S=t.createElement(il,{checked:r?o:!!K.length&&c,indeterminate:r?!o&&a:!c&&s,onChange:d,disabled:0===K.length||r,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),f=!x&&t.createElement("div",{className:`${w}-selection`},S,e)}k="radio"===g?(e,n,r)=>{const o=N(n,r),a=i.has(o);return{node:t.createElement(Ei,Object.assign({},A.get(o),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(o)||X(o,!0,[o],e.nativeEvent)}})),checked:a}}:(e,n,r)=>{var o;const a=N(n,r),c=i.has(a),s=Y.has(a),u=A.get(a);let d;return d="nest"===I?s:null!==(o=null==u?void 0:u.indeterminate)&&void 0!==o?o:s,{node:t.createElement(il,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,r=l.findIndex((e=>e===a)),o=F.some((e=>l.includes(e)));if(n&&C&&o){const e=P(r,l,i),t=Array.from(i);null==p||p(!c,t.map((e=>E(e))),e.map((e=>E(e)))),q(t,"multiple")}else{const e=F;if(C){const n=c?Su(e,a):wu(e,a);X(a,!c,n,t)}else{const n=Gi([].concat(b(e),[a]),!0,L,W),{checkedKeys:r,halfCheckedKeys:o}=n;let i=r;if(c){const e=new Set(r);e.delete(a),i=Gi(Array.from(e),{checked:!1,halfCheckedKeys:o},L,W).checkedKeys}X(a,!c,i,t)}}T(c?null:r)}})),checked:c}};if(!a.includes(Du))if(0===a.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[Ns])||void 0===t?void 0:t.columnType)}))){const[e,...t]=a;a=[e,Du].concat(b(t))}else a=[Du].concat(b(a));const $=a.indexOf(Du);a=a.filter(((e,t)=>e!==Du||t===$));const M=a[$-1],O=a[$+1];let R=v;void 0===R&&(void 0!==(null==O?void 0:O.fixed)?R=O.fixed:void 0!==(null==M?void 0:M.fixed)&&(R=M.fixed)),R&&M&&"EXPAND_COLUMN"===(null===(o=M[Ns])||void 0===o?void 0:o.columnType)&&void 0===M.fixed&&(M.fixed=R);const H=n(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:h&&"checkbox"===g}),j={fixed:R,width:m,className:`${w}-selection-column`,title:(null==r?void 0:r.columnTitle)?"function"==typeof r.columnTitle?r.columnTitle(S):r.columnTitle:f,render:(e,t,n)=>{const{node:r,checked:o}=k(e,t,n);return y?y(o,t,n,r):r},onCell:r.onCell,[Ns]:{className:H}};return a.map((e=>e===Du?j:e))}),[N,K,r,F,V,Y,m,G,I,A,p,X,W]);return[U,V]};function zu(e,n){return t.useImperativeHandle(e,(()=>{const e=n(),{nativeElement:t}=e;return"undefined"!=typeof Proxy?new Proxy(t,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=t)._antProxy=r._antProxy||{},Object.keys(o).forEach((e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}})),r);var r,o}))}function Lu(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Ku(e,t){return t?`${t}-${e}`:`${e}`}function Au(e,t){return"function"==typeof e?e(t):e}const Wu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var Fu=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Wu}))}; +/**![filter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM0OSA4MzhjMCAxNy43IDE0LjIgMzIgMzEuOCAzMmgyNjIuNGMxNy42IDAgMzEuOC0xNC4zIDMxLjgtMzJWNjQySDM0OXYxOTZ6bTUzMS4xLTY4NEgxNDMuOWMtMjQuNSAwLTM5LjggMjYuNy0yNy41IDQ4bDIyMS4zIDM3NmgzNDguOGwyMjEuMy0zNzZjMTIuMS0yMS4zLTMuMi00OC0yNy43LTQ4eiIgLz48L3N2Zz4=) */const _u=t.forwardRef(Fu);function Vu(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var Yu=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],qu=function(e,r){var o=e.className,i=e.style,l=e.motion,c=e.motionNodes,s=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,g=e.treeNodeRequiredProps,h=m(e,Yu),v=t.useState(!0),b=a(v,2),y=b[0],x=b[1],S=t.useContext(mu).prefixCls,w=c&&"hide"!==s;C((function(){c&&w!==y&&x(w)}),[c]);var k=t.useRef(!1),$=function(){c&&!k.current&&(k.current=!0,d())};!function(e,n){var r=t.useState(!1),o=a(r,2),i=o[0],l=o[1];C((function(){if(i)return e(),function(){n()}}),[i]),C((function(){return l(!0),function(){l(!1)}}),[])}((function(){c&&u()}),$);return c?t.createElement(xt,p({ref:r,visible:y},l,{motionAppear:"show"===s,onVisibleChanged:function(e){w===e&&$()}}),(function(e,r){var o=e.className,a=e.style;return t.createElement("div",{ref:r,className:n("".concat(S,"-treenode-motion"),o),style:a},c.map((function(e){var n=Object.assign({},(Vu(e.data),e.data)),r=e.title,o=e.key,a=e.isStart,i=e.isEnd;delete n.children;var l=Vi(o,g);return t.createElement(Cu,p({},n,l,{title:r,active:f,data:e.data,key:o,isStart:a,isEnd:i}))})))})):t.createElement(Cu,p({domRef:r,className:o,style:i},h,{active:f}))};qu.displayName="MotionTreeNode";var Xu=t.forwardRef(qu);function Gu(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],a=t.findIndex((function(e){return e.key===n}));if(o){var i=t.findIndex((function(e){return e.key===o.key}));return t.slice(a+1,i)}return t.slice(a+1)}var Uu=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Qu={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Zu=function(){},Ju="RC_TREE_MOTION_".concat(Math.random()),ed={key:Ju},td={key:Ju,level:0,index:0,pos:"0",node:ed,nodes:[ed]},nd={parent:null,children:[],pos:td.pos,data:ed,title:null,key:Ju,isStart:[],isEnd:[]};function rd(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function od(e){return Ki(e.key,e.pos)}var ad=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.data;e.selectable,e.checkable;var i=e.expandedKeys,l=e.selectedKeys,c=e.checkedKeys,s=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,g=e.disabled,h=e.dragging,v=e.dragOverNodeKey,b=e.dropPosition,y=e.motion,x=e.height,S=e.itemHeight,w=e.virtual,k=e.focusable,$=e.activeItem,E=e.focused,N=e.tabIndex,I=e.onKeyDown,M=e.onFocus,O=e.onBlur,D=e.onActiveChange,R=e.onListChangeStart,P=e.onListChangeEnd,T=m(e,Uu),H=t.useRef(null),j=t.useRef(null);t.useImperativeHandle(n,(function(){return{scrollTo:function(e){H.current.scrollTo(e)},getIndentWidth:function(){return j.current.offsetWidth}}}));var B=t.useState(i),z=a(B,2),L=z[0],K=z[1],A=t.useState(o),W=a(A,2),F=W[0],_=W[1],V=t.useState(o),Y=a(V,2),q=Y[0],X=Y[1],G=t.useState([]),U=a(G,2),Q=U[0],Z=U[1],J=t.useState(null),ee=a(J,2),te=ee[0],ne=ee[1],re=t.useRef(o);function oe(){var e=re.current;_(e),X(e),Z([]),ne(null),P()}re.current=o,C((function(){K(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n ").concat(t);return t}($)),t.createElement("div",null,t.createElement("input",{style:Qu,disabled:!1===k||g,tabIndex:!1!==k?N:null,onKeyDown:I,onFocus:M,onBlur:O,value:"",onChange:Zu,"aria-label":"for screen reader"})),t.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},t.createElement("div",{className:"".concat(r,"-indent")},t.createElement("div",{ref:j,className:"".concat(r,"-indent-unit")}))),t.createElement(Ln,p({},T,{data:ae,itemKey:od,height:x,fullHeight:!1,virtual:w,itemHeight:S,prefixCls:"".concat(r,"-list"),ref:H,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return od(e)===Ju}))&&oe()}}),(function(e){var n=e.pos,r=Object.assign({},(Vu(e.data),e.data)),o=e.title,a=e.key,i=e.isStart,l=e.isEnd,c=Ki(a,n);delete r.key,delete r.children;var s=Vi(c,ie);return t.createElement(Xu,p({},r,s,{title:o,active:!!$&&a===$.key,pos:n,data:e.data,isStart:i,isEnd:l,motion:y,motionNodes:a===Ju?Q:null,motionType:te,onMotionStart:R,onMotionEnd:oe,treeNodeRequiredProps:ie,onMouseMove:function(){D(null)}}))})))}));ad.displayName="NodeList";var id=function(e){mt(a,e);var r=gt(a);function a(){var e;$(this,a);for(var n=arguments.length,o=new Array(n),l=0;l2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,l=a.dropPosition,s=a.dropTargetKey,u=a.dropTargetPos;if(a.dropAllowed){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var f=c(c({},Vi(s,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===s,data:Bi(e.state.keyEntities,s).node}),p=-1!==i.indexOf(s);h(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=ku(u),g={event:t,node:Yi(f),dragNode:e.dragNode?Yi(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(m[m.length-1])};o||null==d||d(g),e.dragNode=null}}})),f(ht(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),f(ht(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,i=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=a.filter((function(e){return e.key===l}))[0],u=Yi(c(c({},Vi(l,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(i?Su(o,l):wu(o,l)),e.onNodeExpand(t,u)}})),f(ht(e),"onNodeClick",(function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),f(ht(e),"onNodeDoubleClick",(function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),f(ht(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[i.key],f=!u,p=(r=f?s?wu(r,d):[d]:Su(r,d)).map((function(e){var t=Bi(a,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),f(ht(e),"onNodeCheck",(function(t,n,r){var o,a=e.state,i=a.keyEntities,l=a.checkedKeys,c=a.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var m=r?wu(l,f):Su(l,f);o={checked:m,halfChecked:Su(c,f)},p.checkedNodes=m.map((function(e){return Bi(i,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=Gi([].concat(b(l),[f]),!0,i),h=g.checkedKeys,v=g.halfCheckedKeys;if(!r){var y=new Set(h);y.delete(f);var x=Gi(Array.from(y),{checked:!1,halfCheckedKeys:v},i);h=x.checkedKeys,v=x.halfCheckedKeys}o=h,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,h.forEach((function(e){var t=Bi(i,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:h},!1,{halfCheckedKeys:v})}null==d||d(o,p)})),f(ht(e),"onNodeLoad",(function(t){var n=t.key,r=new Promise((function(r,o){e.setState((function(a){var i=a.loadedKeys,l=void 0===i?[]:i,c=a.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return d&&-1===l.indexOf(n)&&-1===s.indexOf(n)?(d(t).then((function(){var o=wu(e.state.loadedKeys,n);null==f||f(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:Su(e.loadingKeys,n)}})),r()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:Su(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var a=e.state.loadedKeys;h(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:wu(a,n)}),r()}o(t)})),{loadingKeys:wu(s,n)}):null}))}));return r.catch((function(){})),r})),f(ht(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),f(ht(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),f(ht(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),f(ht(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,i={};Object.keys(t).forEach((function(n){n in e.props?a=!1:(o=!0,i[n]=t[n])})),!o||n&&!a||e.setState(c(c({},i),r))}})),f(ht(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return k(a,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,r=this.state,a=r.focused,i=r.flattenNodes,l=r.keyEntities,c=r.draggingNodeKey,s=r.activeKey,d=r.dropLevelOffset,m=r.dropContainerKey,g=r.dropTargetKey,h=r.dropPosition,v=r.dragOverNodeKey,b=r.indent,y=this.props,x=y.prefixCls,C=y.className,S=y.style,w=y.showLine,k=y.focusable,$=y.tabIndex,E=void 0===$?0:$,N=y.selectable,I=y.showIcon,M=y.icon,O=y.switcherIcon,D=y.draggable,R=y.checkable,P=y.checkStrictly,T=y.disabled,H=y.motion,j=y.loadData,B=y.filterTreeNode,z=y.height,L=y.itemHeight,K=y.virtual,A=y.titleRender,W=y.dropIndicatorRender,F=y.onContextMenu,_=y.onScroll,V=y.direction,Y=y.rootClassName,q=y.rootStyle,X=u(this.props,{aria:!0,data:!0});return D&&(e="object"===o(D)?D:"function"==typeof D?{nodeDraggable:D}:{}),t.createElement(mu.Provider,{value:{prefixCls:x,selectable:N,showIcon:I,icon:M,switcherIcon:O,draggable:e,draggingNodeKey:c,checkable:R,checkStrictly:P,disabled:T,keyEntities:l,dropLevelOffset:d,dropContainerKey:m,dropTargetKey:g,dropPosition:h,dragOverNodeKey:v,indent:b,direction:V,dropIndicatorRender:W,loadData:j,filterTreeNode:B,titleRender:A,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},t.createElement("div",{role:"tree",className:n(x,C,Y,f(f(f({},"".concat(x,"-show-line"),w),"".concat(x,"-focused"),a),"".concat(x,"-active-focused"),null!==s)),style:q},t.createElement(ad,p({ref:this.listRef,prefixCls:x,style:S,data:i,disabled:T,selectable:N,checkable:!!R,motion:H,dragging:null!==c,height:z,itemHeight:L,virtual:K,focusable:k,focused:a,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:_},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function a(t){return!r&&t in e||r&&r[t]!==e[t]}var i=t.fieldNames;if(a("fieldNames")&&(i=Ai(e.fieldNames),o.fieldNames=i),a("treeData")?n=e.treeData:a("children")&&(h(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Wi(e.children)),n){o.treeData=n;var l=_i(n,{fieldNames:i});o.keyEntities=c(f({},Ju,td),l.keyEntities)}var s,u=o.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Ou(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var d=c({},u);delete d[Ju],o.expandedKeys=Object.keys(d).map((function(e){return d[e].key}))}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Ou(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var p=Fi(n||t.treeData,o.expandedKeys||t.expandedKeys,i);o.flattenNodes=p}if((e.selectable&&(a("selectedKeys")?o.selectedKeys=Iu(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=Iu(e.defaultSelectedKeys,e))),e.checkable)&&(a("checkedKeys")?s=Mu(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=Mu(e.defaultCheckedKeys)||{}:n&&(s=Mu(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var m=s,g=m.checkedKeys,v=void 0===g?[]:g,b=m.halfCheckedKeys,y=void 0===b?[]:b;if(!e.checkStrictly){var x=Gi(v,!0,u);v=x.checkedKeys,y=x.halfCheckedKeys}o.checkedKeys=v,o.halfCheckedKeys=y}return a("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),a}(t.Component);f(id,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,r=e.dropLevelOffset,o=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*o;break;case 1:a.bottom=0,a.left=-r*o;break;case 0:a.bottom=0,a.left=o}return t.createElement("div",{style:a})},allowDrop:function(){return!0},expandAction:!1}),f(id,"TreeNode",Cu);const ld={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var cd=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:ld}))}; +/**![file](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTc5MC4yIDMyNkg2MDJWMTM3LjhMNzkwLjIgMzI2em0xLjggNTYySDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHoiIC8+PC9zdmc+) */const sd=t.forwardRef(cd);const ud={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var dd=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:ud}))}; +/**![folder-open](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyOCA0NDRIODIwVjMzMC40YzAtMTcuNy0xNC4zLTMyLTMyLTMySDQ3M0wzNTUuNyAxODYuMmE4LjE1IDguMTUgMCAwMC01LjUtMi4ySDk2Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY1OTJjMCAxNy43IDE0LjMgMzIgMzIgMzJoNjk4YzEzIDAgMjQuOC03LjkgMjkuNy0yMGwxMzQtMzMyYzEuNS0zLjggMi4zLTcuOSAyLjMtMTIgMC0xNy43LTE0LjMtMzItMzItMzJ6TTEzNiAyNTZoMTg4LjVsMTE5LjYgMTE0LjRINzQ4VjQ0NEgyMzhjLTEzIDAtMjQuOCA3LjktMjkuNyAyMEwxMzYgNjQzLjJWMjU2em02MzUuMyA1MTJIMTU5bDEwMy4zLTI1Nmg2MTIuNEw3NzEuMyA3Njh6IiAvPjwvc3ZnPg==) */const fd=t.forwardRef(dd);const pd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var md=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:pd}))}; +/**![folder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAyOTguNEg1MjFMNDAzLjcgMTg2LjJhOC4xNSA4LjE1IDAgMDAtNS41LTIuMkgxNDRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjU5MmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg3MzZjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzMwLjRjMC0xNy43LTE0LjMtMzItMzItMzJ6TTg0MCA3NjhIMTg0VjI1NmgxODguNWwxMTkuNiAxMTQuNEg4NDBWNzY4eiIgLz48L3N2Zz4=) */const gd=t.forwardRef(md);const hd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var vd=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:hd}))}; +/**![holder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMwMCAyNzYuNWE1NiA1NiAwIDEwNTYtOTcgNTYgNTYgMCAwMC01NiA5N3ptMCAyODRhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCAyMjhhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6bTAgMjg0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDAwLTExMiAwek0zMDAgODQ0LjVhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCA3OTZhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6IiAvPjwvc3ZnPg==) */const bd=t.forwardRef(vd),yd=new St("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),xd=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Cd=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${_(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Sd=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,nodeSelectedBg:i,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},H(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},ke(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:yd,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${_(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${_(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},xd(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${_(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${_(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${_(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${_(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${_(a)}`,userSelect:"none"},Cd(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${_(t.calc(a).div(2).equal())} !important`}}}}})}},wd=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},kd=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=V(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[Sd(e,a),wd(a)]},$d=Y("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Qi(`${n}-checkbox`,e)},kd(n,e),Ct(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function Ed(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:a,direction:i="ltr"}=e,l="ltr"===i?"left":"right",c="ltr"===i?"right":"left",s={[l]:-n*a+4,[c]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=a+4}return r.createElement("div",{style:s,className:`${o}-drop-indicator`})}const Nd={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var Id=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Nd}))}; +/**![caret-down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0MC40IDMwMEgxODMuNmMtMTkuNyAwLTMwLjcgMjAuOC0xOC41IDM1bDMyOC40IDM4MC44YzkuNCAxMC45IDI3LjUgMTAuOSAzNyAwTDg1OC45IDMzNWMxMi4yLTE0LjIgMS4yLTM1LTE4LjUtMzV6IiAvPjwvc3ZnPg==) */const Md=t.forwardRef(Id);const Od={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var Dd=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Od}))}; +/**![minus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMzY4YzQuNCAwIDgtMy42IDgtOHYtNDhjMC00LjQtMy42LTgtOC04SDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */const Rd=t.forwardRef(Dd);const Pd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var Td=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Pd}))}; +/**![plus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMTUydjE1MmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjU0NGgxNTJjNC40IDAgOC0zLjYgOC04di00OGMwLTQuNC0zLjYtOC04LThINTQ0VjMyOGMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MTUySDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */const Hd=t.forwardRef(Td),jd=e=>{const{prefixCls:r,switcherIcon:o,treeNodeProps:a,showLine:i}=e,{isLeaf:l,expanded:c,loading:s}=a;if(s)return t.createElement(U,{className:`${r}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),l){if(!i)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(a):u,o=`${r}-switcher-line-custom-icon`;return t.isValidElement(e)?be(e,{className:n(e.props.className||"",o)}):e}return u?t.createElement(sd,{className:`${r}-switcher-line-icon`}):t.createElement("span",{className:`${r}-switcher-leaf-line`})}const d=`${r}-switcher-icon`,f="function"==typeof o?o(a):o;return t.isValidElement(f)?be(f,{className:n(f.props.className||"",d)}):void 0!==f?f:i?c?t.createElement(Rd,{className:`${r}-switcher-line-icon`}):t.createElement(Hd,{className:`${r}-switcher-line-icon`}):t.createElement(Md,{className:d})},Bd=r.forwardRef(((e,t)=>{var o;const{getPrefixCls:a,direction:i,virtual:l,tree:c}=r.useContext(P),{prefixCls:s,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,blockNode:m=!1,children:g,checkable:h=!1,selectable:v=!0,draggable:b,motion:y,style:x}=e,C=a("tree",s),S=a(),w=null!=y?y:Object.assign(Object.assign({},wt(S)),{motionAppear:!1}),k=Object.assign(Object.assign({},e),{checkable:h,selectable:v,showIcon:d,motion:w,blockNode:m,showLine:Boolean(f),dropIndicatorRender:Ed}),[$,E,N]=$d(C),[,I]=ee(),M=I.paddingXS/2+((null===(o=I.Tree)||void 0===o?void 0:o.titleHeight)||I.controlHeightSM),O=r.useMemo((()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||r.createElement(bd,null)),e}),[b]);return $(r.createElement(id,Object.assign({itemHeight:M,ref:t,virtual:l},k,{style:Object.assign(Object.assign({},null==c?void 0:c.style),x),prefixCls:C,className:n({[`${C}-icon-hide`]:!d,[`${C}-block-node`]:m,[`${C}-unselectable`]:!v,[`${C}-rtl`]:"rtl"===i},null==c?void 0:c.className,u,E,N),direction:i,checkable:h?r.createElement("span",{className:`${C}-checkbox-inner`}):h,selectable:v,switcherIcon:e=>r.createElement(jd,{prefixCls:C,switcherIcon:p,treeNodeProps:e,showLine:f}),draggable:O}),g))}));function zd(e,t,n){const{key:r,children:o}=n;e.forEach((function(e){const a=e[r],i=e[o];!1!==t(a,e)&&zd(i||[],t,n)}))}function Ld(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:a}=e;const i=[];let l=0;if(r&&r===o)return[r];if(!r||!o)return[];return zd(t,(e=>{if(2===l)return!1;if(function(e){return e===r||e===o}(e)){if(i.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&i.push(e);return n.includes(e)}),Ai(a)),i}function Kd(e,t,n){const r=b(t),o=[];return zd(e,((e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length}),Ai(n)),o}var Ad=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:o,defaultExpandParent:a,defaultExpandedKeys:i}=e,l=Ad(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=t.useRef(),s=t.useRef(),[u,d]=t.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[f,p]=t.useState((()=>(()=>{const{keyEntities:e}=_i(Fd(l));let t;return t=o?Object.keys(e):a?Ou(l.expandedKeys||i||[],e):l.expandedKeys||i||[],t})()));t.useEffect((()=>{"selectedKeys"in l&&d(l.selectedKeys)}),[l.selectedKeys]),t.useEffect((()=>{"expandedKeys"in l&&p(l.expandedKeys)}),[l.expandedKeys]);const{getPrefixCls:m,direction:g}=t.useContext(P),{prefixCls:h,className:v,showIcon:y=!0,expandAction:x="click"}=l,C=Ad(l,["prefixCls","className","showIcon","expandAction"]),S=m("tree",h),w=n(`${S}-directory`,{[`${S}-directory-rtl`]:"rtl"===g},v);return t.createElement(Bd,Object.assign({icon:Wd,ref:r,blockNode:!0},C,{showIcon:y,expandAction:x,prefixCls:S,className:w,expandedKeys:f,selectedKeys:u,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=l,{node:a,nativeEvent:i}=t,{key:u=""}=a,p=Fd(l),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==i?void 0:i.ctrlKey)||(null==i?void 0:i.metaKey),h=null==i?void 0:i.shiftKey;let v;r&&g?(v=e,c.current=u,s.current=v,m.selectedNodes=Kd(p,v,o)):r&&h?(v=Array.from(new Set([].concat(b(s.current||[]),b(Ld({treeData:p,expandedKeys:f,startKey:u,endKey:c.current,fieldNames:o}))))),m.selectedNodes=Kd(p,v,o)):(v=[u],c.current=u,s.current=v,m.selectedNodes=Kd(p,v,o)),null===(n=l.onSelect)||void 0===n||n.call(l,v,m),"selectedKeys"in l||d(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in l||p(e),null===(n=l.onExpand)||void 0===n?void 0:n.call(l,e,t)}}))},Vd=t.forwardRef(_d),Yd=Bd;Yd.DirectoryTree=Vd,Yd.TreeNode=Cu;const qd=Yd;function Xd(e){let{value:n,onChange:r,filterSearch:o,tablePrefixCls:a,locale:i}=e;return o?t.createElement("div",{className:`${a}-filter-dropdown-search`},t.createElement(kt,{prefix:t.createElement(Q,null),placeholder:i.filterSearchPlaceholder,onChange:r,value:n,htmlSize:1,className:`${a}-filter-dropdown-search-input`})):null}const Gd=e=>{const{keyCode:t}=e;t===i.ENTER&&e.stopPropagation()},Ud=t.forwardRef(((e,n)=>t.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Gd,ref:n},e.children))),Qd=Ud;function Zd(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat(b(t),b(Zd(r))))})),t}function Jd(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function ef(e){let{filters:n,prefixCls:r,filteredKeys:o,filterMultiple:a,searchValue:i,filterSearch:l}=e;return n.map(((e,n)=>{const c=String(e.value);if(e.children)return{key:c||n,label:e.text,popupClassName:`${r}-dropdown-submenu`,children:ef({filters:e.children,prefixCls:r,filteredKeys:o,filterMultiple:a,searchValue:i,filterSearch:l})};const s=a?il:Ei,u={key:void 0!==e.value?c:n,label:t.createElement(t.Fragment,null,t.createElement(s,{checked:o.includes(c)}),t.createElement("span",null,e.text))};return i.trim()?"function"==typeof l?l(i,e)?u:null:Jd(i,e.text)?u:null:u}))}function tf(e){return e||[]}function nf(e){var r,o;const{tablePrefixCls:a,prefixCls:i,column:l,dropdownPrefixCls:c,columnKey:s,filterOnClose:u,filterMultiple:d,filterMode:f="menu",filterSearch:p=!1,filterState:m,triggerFilter:g,locale:h,children:v,getPopupContainer:b,rootClassName:y}=e,{filterDropdownOpen:x,onFilterDropdownOpenChange:C,filterResetToDefaultFilteredValue:S,defaultFilteredValue:w,filterDropdownVisible:k,onFilterDropdownVisibleChange:$}=l,[E,N]=t.useState(!1),I=!(!m||!(null===(r=m.filteredKeys)||void 0===r?void 0:r.length)&&!m.forceFiltered),M=e=>{N(e),null==C||C(e),null==$||$(e)},O=null!==(o=null!=x?x:k)&&void 0!==o?o:E,D=null==m?void 0:m.filteredKeys,[R,H]=function(e){const n=t.useRef(e),r=yt();return[()=>n.current,e=>{n.current=e,r()}]}(tf(D)),j=e=>{let{selectedKeys:t}=e;H(t)},B=(e,t)=>{let{node:n,checked:r}=t;j(d?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};t.useEffect((()=>{E&&j({selectedKeys:tf(D)})}),[D]);const[z,L]=t.useState([]),K=e=>{L(e)},[A,W]=t.useState(""),F=e=>{const{value:t}=e.target;W(t)};t.useEffect((()=>{E||W("")}),[E]);const _=e=>{const t=e&&e.length?e:null;return null!==t||m&&m.filteredKeys?ct(t,null==m?void 0:m.filteredKeys,!0)?null:void g({column:l,key:s,filteredKeys:t}):null},V=()=>{M(!1),_(R())},Y=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&M(!1),W(""),H(S?(w||[]).map((e=>String(e))):[])},q=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&M(!1),_(R())},X=n({[`${c}-menu-without-submenu`]:(G=l.filters||[],!G.some((e=>{let{children:t}=e;return t})))});var G;const U=e=>{if(e.target.checked){const e=Zd(null==l?void 0:l.filters).map((e=>String(e)));H(e)}else H([])},Q=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=Q({filters:e.children})),r}))},Z=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Z(e))))||[]})};let J;if("function"==typeof l.filterDropdown)J=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:R(),confirm:q,clearFilters:Y,filters:l.filters,visible:O,close:()=>{M(!1)}});else if(l.filterDropdown)J=l.filterDropdown;else{const e=R()||[],n=()=>{const n=t.createElement(T,{image:T.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(l.filters||[]).length)return n;if("tree"===f)return t.createElement(t.Fragment,null,t.createElement(Xd,{filterSearch:p,value:A,onChange:F,tablePrefixCls:a,locale:h}),t.createElement("div",{className:`${a}-filter-dropdown-tree`},d?t.createElement(il,{checked:e.length===Zd(l.filters).length,indeterminate:e.length>0&&e.length"function"==typeof p?p(A,Z(e)):Jd(A,e.title):void 0})));const r=ef({filters:l.filters||[],filterSearch:p,prefixCls:i,filteredKeys:R(),filterMultiple:d,searchValue:A}),o=r.every((e=>null===e));return t.createElement(t.Fragment,null,t.createElement(Xd,{filterSearch:p,value:A,onChange:F,tablePrefixCls:a,locale:h}),o?n:t.createElement($t,{selectable:!0,multiple:d,prefixCls:`${c}-menu`,className:X,onSelect:j,onDeselect:j,selectedKeys:e,getPopupContainer:b,openKeys:z,onOpenChange:K,items:r}))},r=()=>S?ct((w||[]).map((e=>String(e))),e,!0):0===e.length;J=t.createElement(t.Fragment,null,n(),t.createElement("div",{className:`${i}-dropdown-btns`},t.createElement(Ve,{type:"link",size:"small",disabled:r(),onClick:()=>Y()},h.filterReset),t.createElement(Ve,{type:"primary",size:"small",onClick:V},h.filterConfirm)))}l.filterDropdown&&(J=t.createElement(Et,{selectable:void 0},J));let ee;ee="function"==typeof l.filterIcon?l.filterIcon(I):l.filterIcon?l.filterIcon:t.createElement(_u,null);const{direction:te}=t.useContext(P);return t.createElement("div",{className:`${i}-column`},t.createElement("span",{className:`${a}-column-title`},v),t.createElement(bt,{dropdownRender:()=>t.createElement(Qd,{className:`${i}-dropdown`},J),trigger:["click"],open:O,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==D&&H(tf(D)),M(e),e||l.filterDropdown||!u||V())},getPopupContainer:b,placement:"rtl"===te?"bottomLeft":"bottomRight",rootClassName:y},t.createElement("span",{role:"button",tabIndex:-1,className:n(`${i}-trigger`,{active:I}),onClick:e=>{e.stopPropagation()}},ee)))}function rf(e,t,n){let r=[];return(e||[]).forEach(((e,o)=>{var a;const i=Ku(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(a=null==t?void 0:t.map(String))&&void 0!==a?a:t),r.push({column:e,key:Lu(e,i),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:Lu(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(b(r),b(rf(e.children,t,i))))})),r}function of(e,n,r,o,a,i,l,c,s){return r.map(((r,u)=>{const d=Ku(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=r;let h=r;if(h.filters||h.filterDropdown){const c=Lu(h,d),u=o.find((e=>{let{key:t}=e;return c===t}));h=Object.assign(Object.assign({},h),{title:o=>t.createElement(nf,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:n,column:h,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:i,locale:a,getPopupContainer:l,rootClassName:s},Au(r.title,o))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:of(e,n,h.children,o,a,i,l,d,s)})),h}))}function af(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const a=n,{filters:i,filterDropdown:l}=o;if(l)t[a]=r||null;else if(Array.isArray(r)){const e=Zd(i);t[a]=e.filter((e=>r.includes(String(e))))}else t[a]=null})),t}function lf(e,t,n){return t.reduce(((e,r)=>{const{column:{onFilter:o,filters:a},filteredKeys:i}=r;return o&&i&&i.length?e.map((e=>Object.assign({},e))).filter((e=>i.some((r=>{const i=Zd(a),l=i.findIndex((e=>String(e)===String(r))),c=-1!==l?i[l]:r;return e[n]&&(e[n]=lf(e[n],t,n)),o(c,e)})))):e}),e)}const cf=e=>e.flatMap((e=>"children"in e?[e].concat(b(cf(e.children||[]))):[e]));function sf(e){let{prefixCls:n,dropdownPrefixCls:r,mergedColumns:o,onFilterChange:a,getPopupContainer:i,locale:l,rootClassName:c}=e;vt();const s=t.useMemo((()=>cf(o||[])),[o]),[u,d]=t.useState((()=>rf(s,!0))),f=t.useMemo((()=>{const e=rf(s,!1);if(0===e.length)return e;let t=!0;if(e.forEach((e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)})),t){const e=(s||[]).map(((e,t)=>Lu(e,Ku(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,u]),p=t.useMemo((()=>af(f)),[f]),m=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),a(af(t),t)};return[e=>of(n,r,e,f,l,m,i,void 0,c),f,p]}var uf=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const i=Ku(a,n);e.children?("sortOrder"in e&&o(e,i),r=[].concat(b(r),b(Sf(e.children,t,i)))):e.sorter&&("sortOrder"in e?o(e,i):t&&e.defaultSortOrder&&r.push({column:e,key:Lu(e,i),multiplePriority:xf(e),sortOrder:e.defaultSortOrder}))})),r}function wf(e,r,o,a,l,c,s,u){return(r||[]).map(((r,d)=>{const f=Ku(d,u);let p=r;if(p.sorter){const u=p.sortDirections||l,d=void 0===p.showSorterTooltip?s:p.showSorterTooltip,m=Lu(p,f),g=o.find((e=>{let{key:t}=e;return t===m})),h=g?g.sortOrder:null,v=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(u,h);let b;if(r.sortIcon)b=r.sortIcon({sortOrder:h});else{const r=u.includes(bf)&&t.createElement(vf,{className:n(`${e}-column-sorter-up`,{active:h===bf})}),o=u.includes(yf)&&t.createElement(mf,{className:n(`${e}-column-sorter-down`,{active:h===yf})});b=t.createElement("span",{className:n(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!r||!o)})},t.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},r,o))}const{cancelSort:y,triggerAsc:x,triggerDesc:C}=c||{};let S=y;v===yf?S=C:v===bf&&(S=x);const w="object"==typeof d?Object.assign({title:S},d):{title:S};p=Object.assign(Object.assign({},p),{className:n(p.className,{[`${e}-column-sort`]:h}),title:n=>{const o=`${e}-column-sorters`,a=t.createElement("span",{className:`${e}-column-title`},Au(r.title,n)),i=t.createElement("div",{className:o},a,b);return d?"boolean"!=typeof d&&"sorter-icon"===(null==d?void 0:d.target)?t.createElement("div",{className:`${o} ${e}-column-sorters-tooltip-target-sorter`},a,t.createElement(ve,Object.assign({},w),b)):t.createElement(ve,Object.assign({},w),i):i},onHeaderCell:t=>{const o=r.onHeaderCell&&r.onHeaderCell(t)||{},l=o.onClick,c=o.onKeyDown;o.onClick=e=>{a({column:r,key:m,sortOrder:v,multiplePriority:xf(r)}),null==l||l(e)},o.onKeyDown=e=>{e.keyCode===i.ENTER&&(a({column:r,key:m,sortOrder:v,multiplePriority:xf(r)}),null==c||c(e))};const s=function(e,t){const n=Au(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(r.title,{}),u=null==s?void 0:s.toString();return h?o["aria-sort"]="ascend"===h?"ascending":"descending":o["aria-label"]=u||"",o.className=n(o.className,`${e}-column-has-sorters`),o.tabIndex=0,r.ellipsis&&(o.title=(null!=s?s:"").toString()),o}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:wf(e,p.children,o,a,l,c,s,f)})),p}))}const kf=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},$f=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(kf);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},kf(e[t])),{column:void 0})}return t.length<=1?t[0]||{}:t};function Ef(e,t,n){const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),a=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return Cf(t)&&n}));return a.length?o.sort(((e,t)=>{for(let n=0;n{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:Ef(r,t,n)}):e})):o}function Nf(e,t){return e.map((e=>{const n=Object.assign({},e);return n.title=Au(e.title,t),"children"in n&&(n.children=Nf(n.children,t)),n}))}function If(e){return[t.useCallback((t=>Nf(t,e)),[e])]}const Mf=tu(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),Of=pu(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),Df=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:c}=e,s=`${_(n)} ${r} ${o}`,u=(e,r,o)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${_(c(r).mul(-1).equal())}\n ${_(c(c(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${_(c(i).mul(-1).equal())} ${_(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${_(n)} 0 ${_(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}},Rf=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},K),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Pf=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Tf=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:h,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${_(o)} ${i} ${l}`,C=y(m).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Lt(e)),{position:"relative",float:"left",boxSizing:"border-box",width:h,height:h,padding:0,color:"inherit",lineHeight:_(h),background:c,border:x,borderRadius:u,transform:`scale(${b})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${_(y(d).mul(-1).equal())} ${_(y(f).mul(-1).equal())}`,padding:`${_(d)} ${_(f)}`}}}},Hf=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:h,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:S,controlItemBgHover:w,controlItemBgActive:k,boxShadowSecondary:$,filterDropdownMenuBg:E,calc:N}=e,I=`${n}-dropdown`,M=`${t}-filter-dropdown`,O=`${n}-tree`,D=`${_(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(i).mul(-1).equal(),marginInline:`${_(i)} ${_(N(m).div(2).mul(-1).equal())}`,padding:`0 ${_(i)}`,color:f,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},H(e)),{minWidth:o,backgroundColor:C,borderRadius:g,boxShadow:$,overflow:"hidden",[`${I}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${_(l)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${_(l)} 0`,paddingInline:l,[O]:{padding:0},[`${O}-treenode ${O}-node-content-wrapper:hover`]:{backgroundColor:w},[`${O}-treenode-checkbox-checked ${O}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${M}-search`]:{padding:l,borderBottom:D,"&-input":{input:{minWidth:a},[r]:{color:x}}},[`${M}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${_(N(l).sub(s).equal())} ${_(l)}`,overflow:"hidden",borderTop:D}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},jf=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:l,calc:c}=e,s=r;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:a,background:i},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},Bf=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${_(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},zf=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${_(n)} ${_(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${_(n)} ${_(n)}`}}}}},Lf=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Kf=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:i,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(s).add(m(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(a).div(4)).add(m(i).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:_(m(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},Af=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,a,i)=>({[`${t}${t}-${e}`]:{fontSize:i,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${_(o)} ${_(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:_(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${_(r(o).mul(-1).equal())} ${_(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:_(r(o).mul(-1).equal()),marginInline:`${_(r(n).sub(a).equal())} ${_(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:_(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Wf=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},Ff=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f=`${_(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${_(a)} !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},_f=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${_(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${_(o(n).mul(-1).equal())} 0 ${r}`}}}},Vf=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,l=`${_(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${_(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},Yf=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:i,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:h,tableFooterBg:v,calc:b}=e,y=`${_(i)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Nt()),{[t]:Object.assign(Object.assign({},H(e)),{fontSize:s,background:u,borderRadius:`${_(d)} ${_(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${_(d)} ${_(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${_(r)} ${_(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${_(r)} ${_(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:_(b(r).mul(-1).equal()),marginInline:`${_(b(a).sub(o).equal())}\n ${_(b(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${_(r)} ${_(o)}`,color:h,background:v}})}},qf=Y("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:h,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:C,footerColor:S,headerBorderRadius:w,cellFontSize:k,cellFontSizeMD:$,cellFontSizeSM:E,headerSplitColor:N,fixedHeaderSortActiveBg:I,headerFilterHoverBg:M,filterDropdownBg:O,expandIconBg:D,selectionColumnWidth:R,stickyScrollBarBg:P,calc:T}=e,H=V(e,{tableFontSize:k,tableBg:r,tableRadius:w,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:C,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:O,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:$,tableFontSizeSmall:E,tableSelectionColumnWidth:R,tableExpandIconBg:D,tableExpandColumnWidth:T(o).add(T(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[Yf(H),Bf(H),_f(H),Wf(H),Hf(H),Df(H),zf(H),Tf(H),_f(H),Pf(H),Kf(H),jf(H),Ff(H),Rf(H),Af(H),Lf(H),Vf(H)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:C,controlInteractiveSize:S}=e,w=new Ne(o).onBackground(n).toHexShortString(),k=new Ne(a).onBackground(n).toHexShortString(),$=new Ne(t).onBackground(n).toHexShortString(),E=new Ne(y),N=new Ne(x),I=S/2-b,M=2*I+3*b;return{headerBg:$,headerColor:r,headerSortActiveBg:w,headerSortHoverBg:k,bodySortBg:$,rowHoverBg:$,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:$,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:w,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*h-3*b)/2),headerIconColor:E.clone().setAlpha(E.getAlpha()*C).toRgbString(),headerIconHoverColor:N.clone().setAlpha(N.getAlpha()*C).toRgbString(),expandIconHalfInner:I,expandIconSize:M,expandIconScale:S/M}}),{unitless:{expandIconScale:!0}}),Xf=[],Gf=(e,r)=>{var o,a;const{prefixCls:i,className:l,rootClassName:c,style:s,size:u,bordered:d,dropdownPrefixCls:f,dataSource:p,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:v,columns:y,children:x,childrenColumnName:C,onChange:S,getPopupContainer:w,loading:k,expandIcon:$,expandable:E,expandedRowRender:N,expandIconColumnIndex:I,indentSize:M,scroll:D,sortDirections:R,locale:T,showSorterTooltip:H={target:"full-header"},virtual:j}=e;vt();const B=t.useMemo((()=>y||zs(x)),[y,x]),z=t.useMemo((()=>B.some((e=>e.responsive))),[B]),L=et(z),K=t.useMemo((()=>{const e=new Set(Object.keys(L).filter((e=>L[e])));return B.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[B,L]),A=O(e,["className","style","columns"]),{locale:W=ot,direction:F,table:_,renderEmpty:V,getPrefixCls:Y,getPopupContainer:q}=t.useContext(P),X=ae(u),G=Object.assign(Object.assign({},W.Table),T),U=p||Xf,Q=Y("table",i),Z=Y("dropdown",f),[,J]=ee(),te=re(Q),[ne,oe,ie]=qf(Q,te),le=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:I},E),{expandIcon:null!==(o=null==E?void 0:E.expandIcon)&&void 0!==o?o:null===(a=null==_?void 0:_.expandable)||void 0===a?void 0:a.expandIcon}),{childrenColumnName:ce="children"}=le,se=t.useMemo((()=>U.some((e=>null==e?void 0:e[ce]))?"nest":N||E&&E.expandedRowRender?"row":null),[U]),ue={body:t.useRef()},de=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(Q),fe=t.useRef(null),pe=t.useRef(null);zu(r,(()=>Object.assign(Object.assign({},pe.current),{nativeElement:fe.current})));const me=t.useMemo((()=>"function"==typeof h?h:e=>null==e?void 0:e[h]),[h]),[ge]=function(e,n,r){const o=t.useRef({});return[function(t){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==n||o.current.getRowKey!==r){const a=new Map;function i(e){e.forEach(((e,t)=>{const o=r(e,t);a.set(o,e),e&&"object"==typeof e&&n in e&&i(e[n]||[])}))}i(e),o.current={data:e,childrenColumnName:n,kvMap:a,getRowKey:r}}return o.current.kvMap.get(t)}]}(U,ce,me),he={},ve=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,a;const i=Object.assign(Object.assign({},he),e);n&&(null===(r=he.resetPagination)||void 0===r||r.call(he),(null===(o=i.pagination)||void 0===o?void 0:o.current)&&(i.pagination.current=1),m&&m.onChange&&m.onChange(1,null===(a=i.pagination)||void 0===a?void 0:a.pageSize)),D&&!1!==D.scrollToFirstRowOnChange&&ue.body.current&&Vt(0,{getContainer:()=>ue.body.current}),null==S||S(i.pagination,i.filters,i.sorter,{currentDataSource:lf(Ef(U,i.sorterStates,ce),i.filterStates,ce),action:t})},[be,ye,xe,Ce]=function(e){let{prefixCls:n,mergedColumns:r,onSorterChange:o,sortDirections:a,tableLocale:i,showSorterTooltip:l}=e;const[c,s]=t.useState(Sf(r,!0)),u=t.useMemo((()=>{let e=!0;const t=Sf(r,!1);if(!t.length)return c;const n=[];function o(t){e?n.push(t):n.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let a=null;return t.forEach((t=>{null===a?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),o(t))})),n}),[r,c]),d=t.useMemo((()=>{const e=u.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[u]),f=e=>{let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat(b(u.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),o($f(t),t)};return[e=>wf(n,e,u,f,a,i,l),u,d,()=>$f(u)]}({prefixCls:Q,mergedColumns:K,onSorterChange:(e,t)=>{ve({sorter:e,sorterStates:t},"sort",!1)},sortDirections:R||["ascend","descend"],tableLocale:G,showSorterTooltip:H}),Se=t.useMemo((()=>Ef(U,ye,ce)),[U,ye]);he.sorter=Ce(),he.sorterStates=ye;const[we,ke,$e]=sf({prefixCls:Q,locale:G,dropdownPrefixCls:Z,mergedColumns:K,onFilterChange:(e,t)=>{ve({filters:e,filterStates:t},"filter",!0)},getPopupContainer:w||q,rootClassName:n(c,te)}),Ee=lf(Se,ke,ce);he.filters=$e,he.filterStates=ke;const Ne=t.useMemo((()=>{const e={};return Object.keys($e).forEach((t=>{null!==$e[t]&&(e[t]=$e[t])})),Object.assign(Object.assign({},xe),{filters:e})}),[xe,$e]),[Ie]=If(Ne),[Me,Oe]=function(e,n,r){const o=r&&"object"==typeof r?r:{},{total:a=0}=o,i=uf(o,["total"]),[l,c]=t.useState((()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:df}))),s=sc(l,i,{total:a>0?a:e}),u=Math.ceil((a||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!=e?e:1,pageSize:t||s.pageSize})};return!1===r?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,t)=>{var o;r&&(null===(o=r.onChange)||void 0===o||o.call(r,e,t)),d(e,t),n(e,t||(null==s?void 0:s.pageSize))}}),d]}(Ee.length,((e,t)=>{ve({pagination:Object.assign(Object.assign({},he.pagination),{current:e,pageSize:t})},"paginate")}),m);he.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach((t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)})),n}(Me,m),he.resetPagination=Oe;const De=t.useMemo((()=>{if(!1===m||!Me.pageSize)return Ee;const{current:e=1,total:t,pageSize:n=df}=Me;return Ee.lengthn?Ee.slice((e-1)*n,e*n):Ee:Ee.slice((e-1)*n,e*n)}),[!!m,Ee,Me&&Me.current,Me&&Me.pageSize,Me&&Me.total]),[Re,Pe]=Bu({prefixCls:Q,data:Ee,pageData:De,getRowKey:me,getRecordByKey:ge,expandType:se,childrenColumnName:ce,locale:G,getPopupContainer:w||q},g);le.__PARENT_RENDER_ICON__=le.expandIcon,le.expandIcon=le.expandIcon||$||function(e){return function(r){let{prefixCls:o,onExpand:a,record:i,expanded:l,expandable:c}=r;const s=`${o}-row-expand-icon`;return t.createElement("button",{type:"button",onClick:e=>{a(i,e),e.stopPropagation()},className:n(s,{[`${s}-spaced`]:!c,[`${s}-expanded`]:c&&l,[`${s}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}}(G),"nest"===se&&void 0===le.expandIconColumnIndex?le.expandIconColumnIndex=g?1:0:le.expandIconColumnIndex>0&&g&&(le.expandIconColumnIndex-=1),"number"!=typeof le.indentSize&&(le.indentSize="number"==typeof M?M:15);const Te=t.useCallback((e=>Ie(Re(we(be(e))))),[be,we,Re]);let He,je,Be;if(!1!==m&&(null==Me?void 0:Me.total)){let e;e=Me.size?Me.size:"small"===X||"middle"===X?"small":void 0;const r=r=>t.createElement(Kc,Object.assign({},Me,{className:n(`${Q}-pagination ${Q}-pagination-${r}`,Me.className),size:e})),o="rtl"===F?"left":"right",{position:a}=Me;if(null!==a&&Array.isArray(a)){const e=a.find((e=>e.includes("top"))),t=a.find((e=>e.includes("bottom"))),n=a.every((e=>"none"==`${e}`));e||t||n||(je=r(o)),e&&(He=r(e.toLowerCase().replace("top",""))),t&&(je=r(t.toLowerCase().replace("bottom","")))}else je=r(o)}"boolean"==typeof k?Be={spinning:k}:"object"==typeof k&&(Be=Object.assign({spinning:!0},k));const ze=n(ie,te,`${Q}-wrapper`,null==_?void 0:_.className,{[`${Q}-wrapper-rtl`]:"rtl"===F},l,c,oe),Le=Object.assign(Object.assign({},null==_?void 0:_.style),s),Ke=T&&T.emptyText||(null==V?void 0:V("Table"))||t.createElement(tr,{componentName:"Table"}),Ae=j?Of:Mf,We={},Fe=t.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=J,a=Math.floor(e*t);switch(X){case"large":return 2*n+a;case"small":return 2*r+a;default:return 2*o+a}}),[J,X]);return j&&(We.listItemHeight=Fe),ne(t.createElement("div",{ref:fe,className:ze,style:Le},t.createElement(It,Object.assign({spinning:!1},Be),He,t.createElement(Ae,Object.assign({},We,A,{ref:pe,columns:K,direction:F,expandable:le,prefixCls:Q,className:n({[`${Q}-middle`]:"middle"===X,[`${Q}-small`]:"small"===X,[`${Q}-bordered`]:d,[`${Q}-empty`]:0===U.length},ie,te,oe),data:De,rowKey:me,rowClassName:(e,t,r)=>{let o;return o=n("function"==typeof v?v(e,t,r):v),n({[`${Q}-row-selected`]:Pe.has(me(e,t))},o)},emptyText:Ke,internalHooks:Uc,internalRefs:ue,transformColumns:Te,getContainerWidth:de})),je)))},Uf=t.forwardRef(Gf),Qf=(e,n)=>{const r=t.useRef(0);return r.current+=1,t.createElement(Uf,Object.assign({},e,{ref:n,_renderTimes:r.current}))},Zf=t.forwardRef(Qf);Zf.SELECTION_COLUMN=Du,Zf.EXPAND_COLUMN=Gc,Zf.SELECTION_ALL=Ru,Zf.SELECTION_INVERT=Pu,Zf.SELECTION_NONE=Tu,Zf.Column=function(e){return null},Zf.ColumnGroup=function(e){return null},Zf.Summary=hs;const Jf=Zf;const ep={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var tp=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:ep}))}; +/**![delete](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM2MCAxODRoLThjNC40IDAgOC0zLjYgOC04djhoMzA0di04YzAgNC40IDMuNiA4IDggOGgtOHY3Mmg3MnYtODBjMC0zNS4zLTI4LjctNjQtNjQtNjRIMzUyYy0zNS4zIDAtNjQgMjguNy02NCA2NHY4MGg3MnYtNzJ6bTUwNCA3MkgxNjBjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjMyYzAgNC40IDMuNiA4IDggOGg2MC40bDI0LjcgNTIzYzEuNiAzNC4xIDI5LjggNjEgNjMuOSA2MWg0NTRjMzQuMiAwIDYyLjMtMjYuOCA2My45LTYxbDI0LjctNTIzSDg4OGM0LjQgMCA4LTMuNiA4LTh2LTMyYzAtMTcuNy0xNC4zLTMyLTMyLTMyek03MzEuMyA4NDBIMjkyLjdsLTI0LjItNTEyaDQ4N2wtMjQuMiA1MTJ6IiAvPjwvc3ZnPg==) */const np=t.forwardRef(tp);const rp={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var op=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:rp}))}; +/**![info-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTQ2NCAzMzZhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem03MiAxMTJoLTQ4Yy00LjQgMC04IDMuNi04IDh2MjcyYzAgNC40IDMuNiA4IDggOGg0OGM0LjQgMCA4LTMuNiA4LThWNDU2YzAtNC40LTMuNi04LTgtOHoiIC8+PC9zdmc+) */const ap=t.forwardRef(op),ip=(e,t,n)=>{if(e){n?.preventDefault(),n?.stopPropagation();try{navigator.clipboard.writeText(e),Mt.success(t("token.copySuccess"))}catch(r){r.target.select()}}},lp={getShareList:()=>Ot.get({url:"/share/list"}),addShare:e=>Ot.post({url:"/share/add",data:e}),updateShare:e=>Ot.post({url:"/share/update",data:e}),searchShare:(e,t,n)=>Ot.post({url:"/share/search",data:{email:t,uniqueName:n,accountType:e}}),deleteShare:e=>Ot.post({url:"/share/delete",data:e}),getShareStatistic:e=>Ot.post({url:"/share/statistic",data:{accountId:e}}),chatLoginShare:(e,t)=>Ot.post({url:"/login_share",data:{username:e,password:t}})},cp=()=>{const e=Dt();return Rt(lp.addShare,{onSuccess:()=>{e.invalidateQueries(["accounts"]),e.invalidateQueries(["shareList"]),Mt.success("Success")}})},sp=()=>{const e=Dt();return Rt(lp.updateShare,{onSuccess:()=>{e.invalidateQueries(["shareList"]),Mt.success("Success")}})},up=()=>{const e=Dt();return Rt(lp.deleteShare,{onSuccess:()=>{e.invalidateQueries(["shareList"]),Mt.success("Success")}})},dp={id:void 0,accountId:-1,email:"",uniqueName:"",password:"",shareToken:"",refreshEveryday:!1,comment:"",expiresIn:0,expiresAt:void 0,siteLimit:"",gpt35Limit:-1,gpt4Limit:-1,gpt4oLimit:-1,gpt4oMiniLimit:-1,o1Limit:-1,o1MiniLimit:-1,showUserinfo:!1,temporaryChat:!1,showConversations:!1};function fp(e){return Pt.jsxs(Tt,{children:[e.label,Pt.jsx(ve,{title:e.info,children:Pt.jsx(ap,{})})]})}function pp({title:e,show:n,formValue:r,onOk:o,onCancel:a}){const[i]=At.useForm(),[l,c]=t.useState(!1),{t:s}=Ht(),u="Edit"===e||"编辑"===e?"edit":"create";t.useEffect((()=>{i.setFieldsValue({...r,expiresAt:r.expiresAt?Vr(r.expiresAt):void 0})}),[r,i]);const d=e=>{switch(e){case-1:return"无限制";case 0:return"禁用";default:return`${e}`}},f=e=>{switch(e){case"无限制":return-1;case"禁用":return 0;default:return parseInt(e)}};return Pt.jsx(jt,{title:e,open:n,onOk:()=>{i.validateFields().then((e=>{const t=e.expiresAt;e.expiresAt=t?t.format("YYYY-MM-DD"):void 0,o(e,c)}))},getContainer:!1,onCancel:()=>{a()},okButtonProps:{loading:l},destroyOnClose:!1,children:Pt.jsxs(At,{initialValues:r,form:i,layout:"vertical",preserve:!1,children:[Pt.jsx(At.Item,{name:"id",hidden:!0,children:Pt.jsx(kt,{})}),Pt.jsx(At.Item,{name:"shareType",hidden:!0,children:Pt.jsx(kt,{})}),"chatgpt"===r.shareType&&Pt.jsx(At.Item,{name:"shareToken",hidden:!0,children:Pt.jsx(kt,{})}),Pt.jsx(At.Item,{name:"accountId",hidden:!0,children:Pt.jsx(kt,{})}),Pt.jsx(At.Item,{label:"Unique Name",name:"uniqueName",required:!0,children:Pt.jsx(kt,{readOnly:"edit"===u,disabled:"edit"===u})}),Pt.jsx(At.Item,{label:s("token.password"),name:"password",required:!0,children:Pt.jsx(kt.Password,{})}),Pt.jsxs(Wt,{gutter:16,children:[Pt.jsx(Ft,{span:12,children:Pt.jsx(At.Item,{label:s("token.expiresAt"),name:"expiresAt",children:Pt.jsx(ic,{style:{width:"100%"},format:"YYYY-MM-DD"})})}),"chatgpt"===r.shareType&&Pt.jsx(Ft,{span:12,children:Pt.jsx(At.Item,{label:s("token.siteLimit"),name:"siteLimit",children:Pt.jsx(kt,{placeholder:"eg: https://demo.oaifree.com"})})})]}),"chatgpt"===r.shareType&&Pt.jsxs(Tt,{direction:"vertical",className:"w-full",children:[Pt.jsx(Kt.Text,{children:"模型使用次数限制:"}),Pt.jsxs(Wt,{gutter:16,children:[Pt.jsx(Ft,{span:8,children:Pt.jsx(At.Item,{label:"4o-mimi",name:"gpt4oMiniLimit",children:Pt.jsx(Bl,{style:{width:"100%"},formatter:d,parser:f})})}),Pt.jsx(Ft,{span:8,children:Pt.jsx(At.Item,{label:"4o",name:"gpt4oLimit",children:Pt.jsx(Bl,{style:{width:"100%"},formatter:d,parser:f})})}),Pt.jsx(Ft,{span:8,children:Pt.jsx(At.Item,{label:"gpt4",name:"gpt4Limit",children:Pt.jsx(Bl,{style:{width:"100%"},formatter:d,parser:f})})}),Pt.jsx(Ft,{span:8,children:Pt.jsx(At.Item,{label:"o1",name:"o1Limit",children:Pt.jsx(Bl,{style:{width:"100%"},formatter:d,parser:f})})}),Pt.jsx(Ft,{span:8,children:Pt.jsx(At.Item,{label:"o1-mini",name:"o1MiniLimit",children:Pt.jsx(Bl,{style:{width:"100%"},formatter:d,parser:f})})})]})]}),"chatgpt"===r.shareType&&Pt.jsxs(Wt,{children:[Pt.jsx(Ft,{span:8,children:Pt.jsx(At.Item,{label:Pt.jsx(fp,{label:s("token.refreshEveryday"),info:"刷新次数限制的频率, 勾选后将每天刷新上面设置的限额次数"}),name:"refreshEveryday",valuePropName:"checked",children:Pt.jsx(il,{})})}),Pt.jsx(Ft,{span:5,children:Pt.jsx(At.Item,{label:s("token.showConversations"),name:"showConversations",valuePropName:"checked",children:Pt.jsx(il,{defaultChecked:!0})})}),Pt.jsx(Ft,{span:4,children:Pt.jsx(At.Item,{label:s("token.temporaryChat"),name:"temporaryChat",valuePropName:"checked",children:Pt.jsx(il,{defaultChecked:!0})})})]}),Pt.jsx(At.Item,{label:s("token.comment"),name:"comment",children:Pt.jsx(kt.TextArea,{})})]})})}export{np as D,ap as I,Xc as P,pp as S,Jf as T,up as a,sp as b,dp as d,ip as o,lp as s,cp as u}; diff --git a/frontend/dist/assets/ShareModal-d881e5fb.js b/frontend/dist/assets/ShareModal-d881e5fb.js deleted file mode 100644 index 5c3722a..0000000 --- a/frontend/dist/assets/ShareModal-d881e5fb.js +++ /dev/null @@ -1,19 +0,0 @@ -import{ab as e,r as t,h as n,R as r,ac as o,ad as a,ae as i,af as l,ag as c,ah as s,ai as u,aj as d,ak as f,n as p,al as m,am as g,an as h,ao as v,ap as b,aq as y,ar as x,as as C,at as S,au as w,av as k,aw as $,ax as E,ay as N,az as I,aA as M,o as O,aB as D,aC as R,k as P,aD as T,Y as H,aE as j,aF as B,aG as z,aH as K,aI as L,aJ as A,aK as F,aL as W,Z as _,m as V,i as Y,aM as q,aN as X,a9 as G,p as U,aO as Q,aP as Z,aQ as J,aR as ee,aS as te,aT as ne,aU as re,aV as oe,aW as ae,aX as ie,aY as le,aZ as ce,a_ as se,a$ as ue,b0 as de,b1 as fe,b2 as pe,b3 as me,b4 as ge,b5 as he,a6 as ve,a0 as be,b6 as ye,b7 as xe,b8 as Ce,b9 as Se,ba as we,bb as ke,bc as $e,bd as Ee,be as Ne,bf as Ie,bg as Me,bh as Oe,bi as De,bj as Re,A as Pe,bk as Te,bl as He,bm as je,bn as Be,bo as ze,bp as Ke,bq as Le,br as Ae,bs as Fe,B as We,bt as _e,bu as Ve,bv as Ye,bw as qe,bx as Xe,by as Ge,bz as Ue,bA as Qe,bB as Ze,bC as Je,bD as et,bE as tt,bF as nt,bG as rt,bH as ot,bI as at,bJ as it,bK as lt,bL as ct,bM as st,bN as ut,bO as dt,bP as ft,bQ as pt,a as mt,bR as gt,bS as ht,bT as vt,a1 as bt,bU as yt,W as xt,bV as Ct,I as St,bW as wt,bX as kt,bY as $t,q as Et,a4 as Nt,a8 as It,a2 as Mt,a3 as Ot,j as Dt,U as Rt,u as Pt,M as Tt}from"./index-32c3357d.js";import{C as Ht,i as jt,o as Bt}from"./index-8826920f.js";import{g as zt,c as Kt}from"./__commonjsHelpers__-02d3be64.js";import{F as Lt}from"./index-8d9b92bb.js";import{R as At,C as Ft}from"./row-4d2b6eab.js";function Wt(e){return null!=e&&e===e.window}function _t(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:r=(()=>window),callback:o,duration:a=450}=n,i=r(),l=function(e,t){var n,r;if("undefined"==typeof window)return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return Wt(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!Wt(e)&&"number"!=typeof a&&(a=null===(r=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===r?void 0:r[o]),a}(i,!0),c=Date.now(),s=()=>{const n=Date.now()-c,r=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(n>a?a:n,l,t,a);Wt(i)?i.scrollTo(window.pageXOffset,r):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=r:i.scrollTop=r,n0&&void 0!==arguments[0]?arguments[0]:250,n=t.useRef(null),r=t.useRef(null);return t.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(t){(t||null===n.current)&&(n.current=t),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),e)}]}var Xt=function(e,r){var o,a=e.prefixCls,i=e.id,u=e.inputElement,d=e.disabled,f=e.tabIndex,p=e.autoFocus,m=e.autoComplete,g=e.editable,h=e.activeDescendantId,v=e.value,b=e.maxLength,y=e.onKeyDown,x=e.onMouseDown,C=e.onChange,S=e.onPaste,w=e.onCompositionStart,k=e.onCompositionEnd,$=e.open,E=e.attrs,N=u||t.createElement("input",null),I=N,M=I.ref,O=I.props,D=O.onKeyDown,R=O.onChange,P=O.onMouseDown,T=O.onCompositionStart,H=O.onCompositionEnd,j=O.style;return l(!("maxLength"in N.props)),N=t.cloneElement(N,c(c(c({type:"search"},O),{},{id:i,ref:s(r,M),disabled:d,tabIndex:f,autoComplete:m||"off",autoFocus:p,className:n("".concat(a,"-selection-search-input"),null===(o=N)||void 0===o||null===(o=o.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":$?h:void 0},E),{},{value:g?v:"",maxLength:b,readOnly:!g,unselectable:g?null:"on",style:c(c({},j),{},{opacity:g?null:0}),onKeyDown:function(e){y(e),D&&D(e)},onMouseDown:function(e){x(e),P&&P(e)},onChange:function(e){C(e),R&&R(e)},onCompositionStart:function(e){w(e),T&&T(e)},onCompositionEnd:function(e){k(e),H&&H(e)},onPaste:S}))},Gt=t.forwardRef(Xt);function Ut(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Qt="undefined"!=typeof window&&window.document&&window.document.documentElement;function Zt(e){return["string","number"].includes(o(e))}function Jt(e){var t=void 0;return e&&(Zt(e.title)?t=e.title.toString():Zt(e.label)&&(t=e.label.toString())),t}function en(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var tn=function(e){e.preventDefault(),e.stopPropagation()},nn=function(e){var r,o,i=e.id,l=e.prefixCls,c=e.values,s=e.open,p=e.searchValue,m=e.autoClearSearchValue,g=e.inputRef,h=e.placeholder,v=e.disabled,b=e.mode,y=e.showSearch,x=e.autoFocus,C=e.autoComplete,S=e.activeDescendantId,w=e.tabIndex,k=e.removeIcon,$=e.maxTagCount,E=e.maxTagTextLength,N=e.maxTagPlaceholder,I=void 0===N?function(e){return"+ ".concat(e.length," ...")}:N,M=e.tagRender,O=e.onToggleOpen,D=e.onRemove,R=e.onInputChange,P=e.onInputPaste,T=e.onInputKeyDown,H=e.onInputMouseDown,j=e.onInputCompositionStart,B=e.onInputCompositionEnd,z=t.useRef(null),K=t.useState(0),L=a(K,2),A=L[0],F=L[1],W=t.useState(!1),_=a(W,2),V=_[0],Y=_[1],q="".concat(l,"-selection"),X=s||"multiple"===b&&!1===m||"tags"===b?p:"",G="tags"===b||"multiple"===b&&!1===m||y&&(s||V);r=function(){F(z.current.scrollWidth)},o=[X],Qt?t.useLayoutEffect(r,o):t.useEffect(r,o);var U=function(e,r,o,a,i){return t.createElement("span",{title:Jt(e),className:n("".concat(q,"-item"),f({},"".concat(q,"-item-disabled"),o))},t.createElement("span",{className:"".concat(q,"-item-content")},r),a&&t.createElement(Vt,{className:"".concat(q,"-item-remove"),onMouseDown:tn,onClick:i,customizeIcon:k},"×"))},Q=t.createElement("div",{className:"".concat(q,"-search"),style:{width:A},onFocus:function(){Y(!0)},onBlur:function(){Y(!1)}},t.createElement(Gt,{ref:g,open:s,prefixCls:l,id:i,inputElement:null,disabled:v,autoFocus:x,autoComplete:C,editable:G,activeDescendantId:S,value:X,onKeyDown:T,onMouseDown:H,onChange:R,onPaste:P,onCompositionStart:j,onCompositionEnd:B,tabIndex:w,attrs:u(e,!0)}),t.createElement("span",{ref:z,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},X," ")),Z=t.createElement(d,{prefixCls:"".concat(q,"-overflow"),data:c,renderItem:function(e){var n=e.disabled,r=e.label,o=e.value,a=!v&&!n,i=r;if("number"==typeof E&&("string"==typeof r||"number"==typeof r)){var l=String(i);l.length>E&&(i="".concat(l.slice(0,E),"..."))}var c=function(t){t&&t.stopPropagation(),D(e)};return"function"==typeof M?function(e,n,r,o,a){return t.createElement("span",{onMouseDown:function(e){tn(e),O(!s)}},M({label:n,value:e,disabled:r,closable:o,onClose:a}))}(o,i,n,a,c):U(e,i,n,a,c)},renderRest:function(e){var t="function"==typeof I?I(e):I;return U({title:t},t,!1)},suffix:Q,itemKey:en,maxCount:$});return t.createElement(t.Fragment,null,Z,!c.length&&!X&&t.createElement("span",{className:"".concat(q,"-placeholder")},h))},rn=function(e){var n=e.inputElement,r=e.prefixCls,o=e.id,i=e.inputRef,l=e.disabled,c=e.autoFocus,s=e.autoComplete,d=e.activeDescendantId,f=e.mode,p=e.open,m=e.values,g=e.placeholder,h=e.tabIndex,v=e.showSearch,b=e.searchValue,y=e.activeValue,x=e.maxLength,C=e.onInputKeyDown,S=e.onInputMouseDown,w=e.onInputChange,k=e.onInputPaste,$=e.onInputCompositionStart,E=e.onInputCompositionEnd,N=e.title,I=t.useState(!1),M=a(I,2),O=M[0],D=M[1],R="combobox"===f,P=R||v,T=m[0],H=b||"";R&&y&&!O&&(H=y),t.useEffect((function(){R&&D(!1)}),[R,y]);var j=!("combobox"!==f&&!p&&!v)&&!!H,B=void 0===N?Jt(T):N,z=t.useMemo((function(){return T?null:t.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},g)}),[T,j,g,r]);return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(r,"-selection-search")},t.createElement(Gt,{ref:i,prefixCls:r,id:o,open:p,inputElement:n,disabled:l,autoFocus:c,autoComplete:s,editable:P,activeDescendantId:d,value:H,onKeyDown:C,onMouseDown:S,onChange:function(e){D(!0),w(e)},onPaste:k,onCompositionStart:$,onCompositionEnd:E,tabIndex:h,attrs:u(e,!0),maxLength:R?x:void 0})),!R&&T?t.createElement("span",{className:"".concat(r,"-selection-item"),title:B,style:j?{visibility:"hidden"}:void 0},T.label):null,z)},on=function(e,n){var r=t.useRef(null),o=t.useRef(!1),l=e.prefixCls,c=e.open,s=e.mode,u=e.showSearch,d=e.tokenWithEnter,f=e.autoClearSearchValue,m=e.onSearch,g=e.onSearchSubmit,h=e.onToggleOpen,v=e.onInputKeyDown,b=e.domRef;t.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var y=qt(0),x=a(y,2),C=x[0],S=x[1],w=t.useRef(null),k=function(e){!1!==m(e,!0,o.current)&&h(!0)},$={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==i.UP&&n!==i.DOWN||e.preventDefault(),v&&v(e),n!==i.ENTER||"tags"!==s||o.current||c||null==g||g(e.target.value),t=n,[i.ESC,i.SHIFT,i.BACKSPACE,i.TAB,i.WIN_KEY,i.ALT,i.META,i.WIN_KEY_RIGHT,i.CTRL,i.SEMICOLON,i.EQUALS,i.CAPS_LOCK,i.CONTEXT_MENU,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12].includes(t)||h(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var t=e.target.value;if(d&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==s&&k(e.target.value)}},E="multiple"===s||"tags"===s?t.createElement(nn,p({},e,$)):t.createElement(rn,p({},e,$));return t.createElement("div",{ref:b,className:"".concat(l,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=C();e.target===r.current||t||"combobox"===s||e.preventDefault(),("combobox"===s||u&&t)&&c||(c&&!1!==f&&m("",!0,!1),h())}},E)},an=t.forwardRef(on),ln=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],cn=function(e,r){var o=e.prefixCls;e.disabled;var a=e.visible,i=e.children,l=e.popupElement,s=e.animation,u=e.transitionName,d=e.dropdownStyle,h=e.dropdownClassName,v=e.direction,b=void 0===v?"ltr":v,y=e.placement,x=e.builtinPlacements,C=e.dropdownMatchSelectWidth,S=e.dropdownRender,w=e.dropdownAlign,k=e.getPopupContainer,$=e.empty,E=e.getTriggerDOMNode,N=e.onPopupVisibleChange,I=e.onPopupMouseEnter,M=m(e,ln),O="".concat(o,"-dropdown"),D=l;S&&(D=S(l));var R=t.useMemo((function(){return x||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(C)}),[x,C]),P=s?"".concat(O,"-").concat(s):u,T="number"==typeof C,H=t.useMemo((function(){return T?null:!1===C?"minWidth":"width"}),[C,T]),j=d;T&&(j=c(c({},j),{},{width:C}));var B=t.useRef(null);return t.useImperativeHandle(r,(function(){return{getPopupElement:function(){var e;return null===(e=B.current)||void 0===e?void 0:e.popupElement}}})),t.createElement(g,p({},M,{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:y||("rtl"===b?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:O,popupTransitionName:P,popup:t.createElement("div",{onMouseEnter:I},D),ref:B,stretch:H,popupAlign:w,popupVisible:a,getPopupContainer:k,popupClassName:n(h,f({},"".concat(O,"-empty"),$)),popupStyle:j,getTriggerDOMNode:E,onPopupVisibleChange:N}),i)},sn=t.forwardRef(cn);function un(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function dn(e){return void 0!==e&&!Number.isNaN(e)}function fn(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function pn(e){var t=c({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return h(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var mn=t.createContext(null),gn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],hn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],vn=function(e){return"tags"===e||"multiple"===e},bn=t.forwardRef((function(e,l){var s,u=e.id,d=e.prefixCls,g=e.className,h=e.showSearch,w=e.tagRender,k=e.direction,$=e.omitDomProps,E=e.displayValues,N=e.onDisplayValuesChange,I=e.emptyOptions,M=e.notFoundContent,O=void 0===M?"Not Found":M,D=e.onClear,R=e.mode,P=e.disabled,T=e.loading,H=e.getInputElement,j=e.getRawInputElement,B=e.open,z=e.defaultOpen,K=e.onDropdownVisibleChange,L=e.activeValue,A=e.onActiveValueChange,F=e.activeDescendantId,W=e.searchValue,_=e.autoClearSearchValue,V=e.onSearch,Y=e.onSearchSplit,q=e.tokenSeparators,X=e.allowClear,G=e.suffixIcon,U=e.clearIcon,Q=e.OptionList,Z=e.animation,J=e.transitionName,ee=e.dropdownStyle,te=e.dropdownClassName,ne=e.dropdownMatchSelectWidth,re=e.dropdownRender,oe=e.dropdownAlign,ae=e.placement,ie=e.builtinPlacements,le=e.getPopupContainer,ce=e.showAction,se=void 0===ce?[]:ce,ue=e.onFocus,de=e.onBlur,fe=e.onKeyUp,pe=e.onKeyDown,me=e.onMouseDown,ge=m(e,gn),he=vn(R),ve=(void 0!==h?h:he)||"combobox"===R,be=c({},ge);hn.forEach((function(e){delete be[e]})),null==$||$.forEach((function(e){delete be[e]}));var ye=t.useState(!1),xe=a(ye,2),Ce=xe[0],Se=xe[1];t.useEffect((function(){Se(y())}),[]);var we=t.useRef(null),ke=t.useRef(null),$e=t.useRef(null),Ee=t.useRef(null),Ne=t.useRef(null),Ie=t.useRef(!1),Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=t.useState(!1),r=a(n,2),o=r[0],i=r[1],l=t.useRef(null),c=function(){window.clearTimeout(l.current)};return t.useEffect((function(){return c}),[]),[o,function(t,n){c(),l.current=window.setTimeout((function(){i(t),n&&n()}),e)},c]}(),Oe=a(Me,3),De=Oe[0],Re=Oe[1],Pe=Oe[2];t.useImperativeHandle(l,(function(){var e,t;return{focus:null===(e=Ee.current)||void 0===e?void 0:e.focus,blur:null===(t=Ee.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Ne.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Te=t.useMemo((function(){var e;if("combobox"!==R)return W;var t=null===(e=E[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[W,R,E]),He="combobox"===R&&"function"==typeof H&&H()||null,je="function"==typeof j&&j(),Be=x(ke,null==je||null===(s=je.props)||void 0===s?void 0:s.ref),ze=t.useState(!1),Ke=a(ze,2),Le=Ke[0],Ae=Ke[1];C((function(){Ae(!0)}),[]);var Fe=S(!1,{defaultValue:z,value:B}),We=a(Fe,2),_e=We[0],Ve=We[1],Ye=!!Le&&_e,qe=!O&&I;(P||qe&&Ye&&"combobox"===R)&&(Ye=!1);var Xe=!qe&&Ye,Ge=t.useCallback((function(e){var t=void 0!==e?e:!Ye;P||(Ve(t),Ye!==t&&(null==K||K(t)))}),[P,Ye,Ve,K]),Ue=t.useMemo((function(){return(q||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[q]),Qe=t.useContext(mn)||{},Ze=Qe.maxCount,Je=Qe.rawValues,et=function(e,t,n){if(!(he&&dn(Ze)&&(null==Je?void 0:Je.size)>=Ze)){var r=!0,o=e;null==A||A(null);var a=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=v(n),a=o[0],i=o.slice(1);if(!a)return[t];var l=t.split(a);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(b(t),b(e(n,i)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,q,dn(Ze)?Ze-Je.size:void 0),i=n?null:a;return"combobox"!==R&&i&&(o="",null==Y||Y(i),Ge(!1),r=!1),V&&Te!==o&&V(o,{source:t?"typing":"effect"}),r}};t.useEffect((function(){Ye||he||"combobox"===R||et("",!1,!1)}),[Ye]),t.useEffect((function(){_e&&P&&Ve(!1),P&&!Ie.current&&Re(!1)}),[P]);var tt=qt(),nt=a(tt,2),rt=nt[0],ot=nt[1],at=t.useRef(!1),it=[];t.useEffect((function(){return function(){it.forEach((function(e){return clearTimeout(e)})),it.splice(0,it.length)}}),[]);var lt,ct=t.useState({}),st=a(ct,2)[1];je&&(lt=function(e){Ge(e)}),function(e,n,r,o){var a=t.useRef(null);a.current={open:n,triggerOpen:r,customizedTrigger:o},t.useEffect((function(){function t(t){var n;if(null===(n=a.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),a.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[we.current,null===(e=$e.current)||void 0===e?void 0:e.getPopupElement()]}),Xe,Ge,!!je);var ut,dt=t.useMemo((function(){return c(c({},e),{},{notFoundContent:O,open:Ye,triggerOpen:Xe,id:u,showSearch:ve,multiple:he,toggleOpen:Ge})}),[e,O,Xe,Ye,u,ve,he,Ge]),ft=!!G||T;ft&&(ut=t.createElement(Vt,{className:n("".concat(d,"-arrow"),f({},"".concat(d,"-arrow-loading"),T)),customizeIcon:G,customizeIconProps:{loading:T,searchValue:Te,open:Ye,focused:De,showSearch:ve}}));var pt,mt=function(e,t,n,a,i){var l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=r.useMemo((function(){return"object"===o(a)?a.clearIcon:i||void 0}),[a,i]);return{allowClear:r.useMemo((function(){return!(l||!a||!n.length&&!c||"combobox"===s&&""===c)}),[a,l,n.length,c,s]),clearIcon:r.createElement(Vt,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:u},"×")}}(d,(function(){var e;null==D||D(),null===(e=Ee.current)||void 0===e||e.focus(),N([],{type:"clear",values:E}),et("",!1,!1)}),E,X,U,P,Te,R),gt=mt.allowClear,ht=mt.clearIcon,vt=t.createElement(Q,{ref:Ne}),bt=n(d,g,f(f(f(f(f(f(f(f(f(f({},"".concat(d,"-focused"),De),"".concat(d,"-multiple"),he),"".concat(d,"-single"),!he),"".concat(d,"-allow-clear"),X),"".concat(d,"-show-arrow"),ft),"".concat(d,"-disabled"),P),"".concat(d,"-loading"),T),"".concat(d,"-open"),Ye),"".concat(d,"-customize-input"),He),"".concat(d,"-show-search"),ve)),yt=t.createElement(sn,{ref:$e,disabled:P,prefixCls:d,visible:Xe,popupElement:vt,animation:Z,transitionName:J,dropdownStyle:ee,dropdownClassName:te,direction:k,dropdownMatchSelectWidth:ne,dropdownRender:re,dropdownAlign:oe,placement:ae,builtinPlacements:ie,getPopupContainer:le,empty:I,getTriggerDOMNode:function(){return ke.current},onPopupVisibleChange:lt,onPopupMouseEnter:function(){st({})}},je?t.cloneElement(je,{ref:Be}):t.createElement(an,p({},e,{domRef:ke,prefixCls:d,inputElement:He,ref:Ee,id:u,showSearch:ve,autoClearSearchValue:_,mode:R,activeDescendantId:F,tagRender:w,values:E,open:Ye,onToggleOpen:Ge,activeValue:L,searchValue:Te,onSearch:et,onSearchSubmit:function(e){e&&e.trim()&&V(e,{source:"submit"})},onRemove:function(e){var t=E.filter((function(t){return t!==e}));N(t,{type:"remove",values:[e]})},tokenWithEnter:Ue})));return pt=je?yt:t.createElement("div",p({className:bt},be,{ref:we,onMouseDown:function(e){var t,n=e.target,r=null===(t=$e.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=it.indexOf(o);-1!==t&&it.splice(t,1),Pe(),Ce||r.contains(document.activeElement)||null===(e=Ee.current)||void 0===e||e.focus()}));it.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l=0;l-=1){var c=o[l];if(!c.disabled){o.splice(l,1),a=c;break}}a&&N(o,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d1?t-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1],n=e<0&&a.current.top||e>0&&a.current.bottom;return t&&n?(clearTimeout(o.current),r.current=!1):n&&!r.current||(clearTimeout(o.current),r.current=!0,o.current=setTimeout((function(){r.current=!1}),50)),!r.current&&n}};function On(n,r,o,a,i){var l=t.useRef(0),c=t.useRef(null),s=t.useRef(null),u=t.useRef(!1),d=Mn(r,o);var f=t.useRef(null),p=t.useRef(null);return[function(t){if(n){e.cancel(p.current),p.current=e((function(){f.current=null}),2);var r=t.deltaX,o=t.deltaY,m=t.shiftKey,g=r,h=o;("sx"===f.current||!f.current&&m&&o&&!r)&&(g=o,h=0,f.current="sx");var v=Math.abs(g),b=Math.abs(h);null===f.current&&(f.current=a&&v>b?"x":"y"),"y"===f.current?function(t,n){e.cancel(c.current),l.current+=n,s.current=n,d(n)||(In||t.preventDefault(),c.current=e((function(){var e=u.current?10:1;i(l.current*e),l.current=0})))}(t,h):function(e,t){i(t,!0),In||e.preventDefault()}(t,g)}},function(e){n&&(u.current=e.detail===s.current)}]}var Dn=14/15;var Rn=20;function Pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,Rn),Math.floor(t)}var Tn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Hn=[],jn={overflowY:"auto",overflowAnchor:"none"};function Bn(r,i){var l=r.prefixCls,s=void 0===l?"rc-virtual-list":l,u=r.className,d=r.height,g=r.itemHeight,h=r.fullHeight,v=void 0===h||h,b=r.style,y=r.data,x=r.children,S=r.itemKey,k=r.virtual,$=r.direction,M=r.scrollWidth,O=r.component,D=void 0===O?"div":O,R=r.onScroll,P=r.onVirtualScroll,T=r.onVisibleChange,H=r.innerProps,j=r.extraRender,B=r.styles,z=m(r,Tn),K=t.useCallback((function(e){return"function"==typeof S?S(e):null==e?void 0:e[S]}),[S]),L=function(n,r,o){var i=t.useState(0),l=a(i,2),c=l[0],s=l[1],u=t.useRef(new Map),d=t.useRef(new $n),f=t.useRef();function p(){e.cancel(f.current)}function m(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p();var n=function(){u.current.forEach((function(e,t){if(e&&e.offsetParent){var n=E(e),r=n.offsetHeight;d.current.get(t)!==r&&d.current.set(t,n.offsetHeight)}})),s((function(e){return e+1}))};t?n():f.current=e(n)}return t.useEffect((function(){return p}),[]),[function(e,t){var a=n(e),i=u.current.get(a);t?(u.current.set(a,t),m()):u.current.delete(a),!i!=!t&&(t?null==r||r(e):null==o||o(e))},m,d.current,c]}(K,null,null),A=a(L,4),F=A[0],W=A[1],_=A[2],V=A[3],Y=!(!1===k||!d||!g),q=t.useMemo((function(){return Object.values(_.maps).reduce((function(e,t){return e+t}),0)}),[_.id,_.maps]),X=Y&&y&&(Math.max(g*y.length,q)>d||!!M),G="rtl"===$,U=n(s,f({},"".concat(s,"-rtl"),G),u),Q=y||Hn,Z=t.useRef(),J=t.useRef(),ee=t.useState(0),te=a(ee,2),ne=te[0],re=te[1],oe=t.useState(0),ae=a(oe,2),ie=ae[0],le=ae[1],ce=t.useState(!1),se=a(ce,2),ue=se[0],de=se[1],fe=function(){de(!0)},pe=function(){de(!1)},me={getKey:K};function ge(e){re((function(t){var n=function(e){var t=e;Number.isNaN(Te.current)||(t=Math.min(t,Te.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return Z.current.scrollTop=n,n}))}var he=t.useRef({start:0,end:Q.length}),ve=t.useRef(),be=Nn(Q,K),ye=a(be,1)[0];ve.current=ye;var xe=t.useMemo((function(){if(!Y)return{scrollHeight:void 0,start:0,end:Q.length-1,offset:void 0};var e;if(!X)return{scrollHeight:(null===(e=J.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:Q.length-1,offset:void 0};for(var t,n,r,o=0,a=Q.length,i=0;i=ne&&void 0===t&&(t=i,n=o),u>ne+d&&void 0===r&&(r=i),o=u}return void 0===t&&(t=0,n=0,r=Math.ceil(d/g)),void 0===r&&(r=Q.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,Q.length-1),offset:n}}),[X,Y,ne,Q,V,d]),Ce=xe.scrollHeight,Se=xe.start,we=xe.end,ke=xe.offset;he.current.start=Se,he.current.end=we;var $e=t.useState({width:0,height:d}),Ee=a($e,2),Ne=Ee[0],Ie=Ee[1],Me=t.useRef(),Oe=t.useRef(),De=t.useMemo((function(){return Pn(Ne.width,M)}),[Ne.width,M]),Re=t.useMemo((function(){return Pn(Ne.height,Ce)}),[Ne.height,Ce]),Pe=Ce-d,Te=t.useRef(Pe);Te.current=Pe;var He=ne<=0,je=ne>=Pe,Be=Mn(He,je),ze=function(){return{x:G?-ie:ie,y:ne}},Ke=t.useRef(ze()),Le=N((function(){if(P){var e=ze();Ke.current.x===e.x&&Ke.current.y===e.y||(P(e),Ke.current=e)}}));function Ae(e,t){var n=e;t?(I.flushSync((function(){le(n)})),Le()):ge(n)}var Fe=function(e){var t=e,n=M?M-Ne.width:0;return t=Math.max(t,0),t=Math.min(t,n)},We=N((function(e,t){t?(I.flushSync((function(){le((function(t){return Fe(t+(G?-e:e))}))})),Le()):ge((function(t){return t+e}))})),_e=On(Y,He,je,!!M,We),Ve=a(_e,2),Ye=Ve[0],qe=Ve[1];!function(e,n,r){var o,a=t.useRef(!1),i=t.useRef(0),l=t.useRef(null),c=t.useRef(null),s=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageY),n=i.current-t;i.current=t,r(n)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!r(n*=Dn,!0)||Math.abs(n)<=.1)&&clearInterval(c.current)}),16)}},u=function(){a.current=!1,o()},d=function(e){o(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",s),l.current.addEventListener("touchend",u))};o=function(){l.current&&(l.current.removeEventListener("touchmove",s),l.current.removeEventListener("touchend",u))},C((function(){return e&&n.current.addEventListener("touchstart",d),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(Y,Z,(function(e,t){return!Be(e,t)&&(Ye({preventDefault:function(){},deltaY:e}),!0)})),C((function(){function e(e){Y&&e.preventDefault()}var t=Z.current;return t.addEventListener("wheel",Ye),t.addEventListener("DOMMouseScroll",qe),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Ye),t.removeEventListener("DOMMouseScroll",qe),t.removeEventListener("MozMousePixelScroll",e)}}),[Y]),C((function(){M&&le((function(e){return Fe(e)}))}),[Ne.width,M]);var Xe=function(){var e,t;null===(e=Me.current)||void 0===e||e.delayHidden(),null===(t=Oe.current)||void 0===t||t.delayHidden()},Ge=function(n,r,i,l,s,u,d,f){var p=t.useRef(),m=t.useState(null),g=a(m,2),h=g[0],v=g[1];return C((function(){if(h&&h.times=0;N-=1){var I=s(r[N]),M=i.get(I);if(void 0===M){p=!0;break}if((E-=M)<=0)break}switch(b){case"top":g=x-a;break;case"bottom":g=C-f+a;break;default:var O=n.current.scrollTop;xO+f&&(m="bottom")}null!==g&&d(g),g!==h.lastTop&&(p=!0)}p&&v(c(c({},h),{},{times:h.times+1,targetAlign:m,lastTop:g}))}}),[h,n.current]),function(t){if(null!=t){if(e.cancel(p.current),"number"==typeof t)d(t);else if(t&&"object"===o(t)){var n,a=t.align;n="index"in t?t.index:r.findIndex((function(e){return s(e)===t.key}));var i=t.offset;v({times:0,index:n,offset:void 0===i?0:i,originAlign:a})}}else f()}}(Z,Q,_,g,K,(function(){return W(!0)}),ge,Xe);t.useImperativeHandle(i,(function(){return{getScrollInfo:ze,scrollTo:function(e){var t;(t=e)&&"object"===o(t)&&("left"in t||"top"in t)?(void 0!==e.left&&le(Fe(e.left)),Ge(e.top)):Ge(e)}}})),C((function(){if(T){var e=Q.slice(Se,we+1);T(e,Q)}}),[Se,we,Q]);var Ue=function(e,n,r,o){var i=t.useMemo((function(){return[new Map,[]]}),[e,r.id,o]),l=a(i,2),c=l[0],s=l[1];return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=c.get(t),l=c.get(a);if(void 0===i||void 0===l)for(var u=e.length,d=s.length;dd&&t.createElement(wn,{ref:Me,prefixCls:s,scrollOffset:ne,scrollRange:Ce,rtl:G,onScroll:Ae,onStartMove:fe,onStopMove:pe,spinSize:Re,containerSize:Ne.height,style:null==B?void 0:B.verticalScrollBar,thumbStyle:null==B?void 0:B.verticalScrollBarThumb}),X&&M>Ne.width&&t.createElement(wn,{ref:Oe,prefixCls:s,scrollOffset:ie,scrollRange:M,rtl:G,onScroll:Ae,onStartMove:fe,onStopMove:pe,spinSize:De,containerSize:Ne.width,horizontal:!0,style:null==B?void 0:B.horizontalScrollBar,thumbStyle:null==B?void 0:B.horizontalScrollBarThumb}))}var zn=t.forwardRef(Bn);zn.displayName="List";var Kn=["disabled","title","children","style","className"];function Ln(e){return"string"==typeof e||"number"==typeof e}var An=function(e,r){var o=t.useContext(Yt),l=o.prefixCls,c=o.id,s=o.open,d=o.multiple,g=o.mode,h=o.searchValue,v=o.toggleOpen,y=o.notFoundContent,x=o.onPopupScroll,C=t.useContext(mn),S=C.maxCount,w=C.flattenOptions,k=C.onActiveValue,$=C.defaultActiveFirstOption,E=C.onSelect,N=C.menuItemSelectedIcon,I=C.rawValues,D=C.fieldNames,R=C.virtual,P=C.direction,T=C.listHeight,H=C.listItemHeight,j=C.optionRender,B="".concat(l,"-item"),z=M((function(){return w}),[s,w],(function(e,t){return t[0]&&e[1]!==t[1]})),K=t.useRef(null),L=t.useMemo((function(){return d&&dn(S)&&(null==I?void 0:I.size)>=S}),[d,S,null==I?void 0:I.size]),A=function(e){e.preventDefault()},F=function(e){var t;null===(t=K.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},W=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=z.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=z[e];r?k(r.value,e,n):k(null,-1,n)};t.useEffect((function(){X(!1!==$?W(0):-1)}),[z.length,h]);var G=t.useCallback((function(e){return I.has(e)&&"combobox"!==g}),[g,b(I).toString(),I.size]);t.useEffect((function(){var e,t=setTimeout((function(){if(!d&&s&&1===I.size){var e=Array.from(I)[0],t=z.findIndex((function(t){return t.data.value===e}));-1!==t&&(X(t),F(t))}}));s&&(null===(e=K.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[s,h]);var U=function(e){void 0!==e&&E(e,{selected:!I.has(e)}),d||v(!1)};if(t.useImperativeHandle(r,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case i.N:case i.P:case i.UP:case i.DOWN:var r=0;if(t===i.UP?r=-1:t===i.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===i.N?r=1:t===i.P&&(r=-1)),0!==r){var o=W(Y+r,r);F(o),X(o,!0)}break;case i.ENTER:var a,l=z[Y];!l||null!=l&&null!==(a=l.data)&&void 0!==a&&a.disabled||L?U(void 0):U(l.value),s&&e.preventDefault();break;case i.ESC:v(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){F(e)}}})),0===z.length)return t.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(B,"-empty"),onMouseDown:A},y);var Q=Object.keys(D).map((function(e){return D[e]})),Z=function(e){return e.label};function J(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var ee=function(e){var n=z[e];if(!n)return null;var r=n.data||{},o=r.value,a=n.group,i=u(r,!0),l=Z(n);return n?t.createElement("div",p({"aria-label":"string"!=typeof l||a?null:l},i,{key:e},J(n,e),{"aria-selected":G(o)}),o):null},te={role:"listbox",id:"".concat(c,"_list")};return t.createElement(t.Fragment,null,R&&t.createElement("div",p({},te,{style:{height:0,width:0,overflow:"hidden"}}),ee(Y-1),ee(Y),ee(Y+1)),t.createElement(zn,{itemKey:"key",ref:K,data:z,height:T,itemHeight:H,fullHeight:!1,onMouseDown:A,onScroll:x,virtual:R,direction:P,innerProps:R?null:te},(function(e,r){var o=e.group,a=e.groupOption,i=e.data,l=e.label,c=e.value,s=i.key;if(o){var d,g=null!==(d=i.title)&&void 0!==d?d:Ln(l)?l.toString():void 0;return t.createElement("div",{className:n(B,"".concat(B,"-group"),i.className),title:g},void 0!==l?l:s)}var h=i.disabled,v=i.title;i.children;var b=i.style,y=i.className,x=m(i,Kn),C=O(x,Q),S=G(c),w=h||!S&&L,k="".concat(B,"-option"),$=n(B,k,y,f(f(f(f({},"".concat(k,"-grouped"),a),"".concat(k,"-active"),Y===r&&!w),"".concat(k,"-disabled"),w),"".concat(k,"-selected"),S)),E=Z(e),I=!N||"function"==typeof N||S,M="number"==typeof E?E:E||c,D=Ln(M)?M.toString():void 0;return void 0!==v&&(D=v),t.createElement("div",p({},u(C),R?{}:J(e,r),{"aria-selected":S,className:$,title:D,onMouseMove:function(){Y===r||w||X(r)},onClick:function(){w||U(c)},style:b}),t.createElement("div",{className:"".concat(k,"-content")},"function"==typeof j?j(e,{index:r}):M),t.isValidElement(N)||S,I&&t.createElement(Vt,{className:"".concat(B,"-option-state"),customizeIcon:N,customizeIconProps:{value:c,disabled:w,isSelected:S}},S?"✓":null))})))},Fn=t.forwardRef(An);function Wn(e,t){return Ut(e).join("").toUpperCase().includes(t)}var _n=0,Vn=D();function Yn(e){var n=t.useState(),r=a(n,2),o=r[0],i=r[1];return t.useEffect((function(){var e;i("rc_select_".concat((Vn?(e=_n,_n+=1):e="TEST_OR_SSR",e)))}),[]),e||o}var qn=["children","value"],Xn=["children"];function Gn(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return R(e).map((function(e,r){if(!t.isValidElement(e)||!e.type)return null;var o=e,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,u=m(l,Xn);return n||!a?function(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=m(r,qn);return c({key:n,value:void 0!==a?a:n,children:o},i)}(e):c(c({key:"__RC_SELECT_GRP__".concat(null===i?r:i,"__"),label:i},u),{},{options:Gn(s)})})).filter((function(e){return e}))}function Un(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){return n.current.apply(n,arguments)}),[]);return r}var Qn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Zn=["inputValue"];var Jn=t.forwardRef((function(e,n){var r=e.id,i=e.mode,l=e.prefixCls,s=void 0===l?"rc-select":l,u=e.backfill,d=e.fieldNames,g=e.inputValue,h=e.searchValue,v=e.onSearch,y=e.autoClearSearchValue,x=void 0===y||y,C=e.onSelect,w=e.onDeselect,k=e.dropdownMatchSelectWidth,$=void 0===k||k,E=e.filterOption,N=e.filterSort,I=e.optionFilterProp,M=e.optionLabelProp,O=e.options,D=e.optionRender,R=e.children,P=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,H=e.virtual,j=e.direction,B=e.listHeight,z=void 0===B?200:B,K=e.listItemHeight,L=void 0===K?20:K,A=e.labelRender,F=e.value,W=e.defaultValue,_=e.labelInValue,V=e.onChange,Y=e.maxCount,q=m(e,Qn),X=Yn(r),G=vn(i),U=!(O||!R),Q=t.useMemo((function(){return(void 0!==E||"combobox"!==i)&&E}),[E,i]),Z=t.useMemo((function(){return fn(d,U)}),[JSON.stringify(d),U]),J=S("",{value:void 0!==h?h:g,postState:function(e){return e||""}}),ee=a(J,2),te=ee[0],ne=ee[1],re=function(e,n,r,o,a){return t.useMemo((function(){var t=e;!e&&(t=Gn(n));var i=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=fn(n,!1),i=a.label,l=a.value,c=a.options,s=a.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var a=t[l];o.push({key:un(t,o.length),groupOption:n,data:t,label:t[i],value:a})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:un(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(Se,{fieldNames:Z,childrenAsData:U})}),[Se,Z,U]),ke=function(e){var t=le(e);if(de(t),V&&(t.length!==ge.length||t.some((function(e,t){var n;return(null===(n=ge[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=_?t:t.map((function(e){return e.value})),r=t.map((function(e){return pn(he(e.value))}));V(G?n:n[0],G?r:r[0])}},$e=t.useState(null),Ee=a($e,2),Ne=Ee[0],Ie=Ee[1],Me=t.useState(0),Oe=a(Me,2),De=Oe[0],Re=Oe[1],Pe=void 0!==P?P:"combobox"!==i,Te=t.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Re(t),u&&"combobox"===i&&null!==e&&"keyboard"===r&&Ie(String(e))}),[u,i]),He=function(e,t,n){var r=function(){var t,n=he(e);return[_?{label:null==n?void 0:n[Z.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,pn(n)]};if(t&&C){var o=r(),i=a(o,2),l=i[0],c=i[1];C(l,c)}else if(!t&&w&&"clear"!==n){var s=r(),u=a(s,2),d=u[0],f=u[1];w(d,f)}},je=Un((function(e,t){var n,r=!G||t.selected;n=r?G?[].concat(b(ge),[e]):[e]:ge.filter((function(t){return t.value!==e})),ke(n),He(e,r),"combobox"===i?Ie(""):vn&&!x||(ne(""),Ie(""))})),Be=t.useMemo((function(){var e=!1!==H&&!1!==$;return c(c({},re),{},{flattenOptions:we,onActiveValue:Te,defaultActiveFirstOption:Pe,onSelect:je,menuItemSelectedIcon:T,rawValues:be,fieldNames:Z,virtual:e,direction:j,listHeight:z,listItemHeight:L,childrenAsData:U,maxCount:Y,optionRender:D})}),[Y,re,we,Te,Pe,je,T,be,Z,H,$,j,z,L,U,D]);return t.createElement(mn.Provider,{value:Be},t.createElement(bn,p({},q,{id:X,prefixCls:s,ref:n,omitDomProps:Zn,mode:i,displayValues:ve,onDisplayValuesChange:function(e,t){ke(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){He(e.value,!1,n)}))},direction:j,searchValue:te,onSearch:function(e,t){if(ne(e),Ie(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===i&&ke(e),null==v||v(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(b(be),[n])));ke(r),He(n,!0),ne("")}}},autoClearSearchValue:x,onSearchSplit:function(e){var t=e;"tags"!==i&&(t=e.map((function(e){var t=ae.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(b(be),b(t))));ke(n),n.forEach((function(e){He(e,!0)}))},dropdownMatchSelectWidth:$,OptionList:Fn,emptyOptions:!we.length,activeValue:Ne,activeDescendantId:"".concat(X,"_list_").concat(De)})))}));Jn.Option=xn,Jn.OptGroup=yn;const er=e=>{const{componentName:n}=e,{getPrefixCls:o}=t.useContext(P),a=o("empty");switch(n){case"Table":case"List":return r.createElement(T,{image:T.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(T,{image:T.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});default:return r.createElement(T,null)}};function tr(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const nr=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},rr=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},H(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${a}${l}bottomLeft\n `]:{animationName:j},[`\n ${o}${l}topLeft,\n ${a}${l}topLeft,\n ${o}${l}topRight,\n ${a}${l}topRight\n `]:{animationName:B},[`${i}${l}bottomLeft`]:{animationName:z},[`\n ${i}${l}topLeft,\n ${i}${l}topRight\n `]:{animationName:K},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},nr(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},L),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},nr(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},A(e,"slide-up"),A(e,"slide-down"),F(e,"move-up"),F(e,"move-down")]},or=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(o).equal(),0),itemHeight:_(t),itemLineHeight:_(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},ar=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},W()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},ir=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",c=or(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},ar(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${_(r)} 0`,lineHeight:_(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:_(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:_(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function lr(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[ir(e,t),o]}const cr=e=>{const{componentCls:t}=e,n=V(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=V(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[lr(e),lr(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},lr(r,"lg")]};function sr(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},H(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:_(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${_(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:_(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${_(r)}`,"&:after":{display:"none"}}}}}}}function ur(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[sr(e),sr(V(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${_(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},sr(V(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const dr=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${_(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${_(o)} ${t.activeShadowColor}`,outline:0}}}},fr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},dr(e,t))}),pr=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},dr(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),fr(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),fr(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mr=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${_(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},gr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mr(e,t))}),hr=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mr(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),gr(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),gr(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),vr=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),br=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},pr(e)),hr(e)),vr(e))}),yr=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},xr=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Cr=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},H(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},yr(e)),xr(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},L),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},L),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},W()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Sr=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Cr(e),ur(e),cr(e),rr(e),{[`${t}-rtl`]:{direction:"rtl"}},q(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},wr=Y("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=V(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Sr(r),br(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v}=e,b=2*l,y=2*r,x=Math.min(o-b,o-y),C=Math.min(a-b,a-y),S=Math.min(i-b,i-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:i,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:C,multipleItemHeightLG:S,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function kr(e){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:o,removeIcon:a,loading:i,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const m=null!=r?r:t.createElement(X,null),g=e=>null!==n||c||f?t.createElement(t.Fragment,null,!1!==u&&e,c&&d):null;let h=null;if(void 0!==n)h=g(n);else if(i)h=g(t.createElement(U,{spin:!0}));else{const e=`${s}-suffix`;h=n=>{let{open:r,showSearch:o}=n;return g(r&&o?t.createElement(Q,{className:e}):t.createElement(Z,{className:e}))}}let v=null;v=void 0!==o?o:l?t.createElement(Ht,null):null;let b=null;return b=void 0!==a?a:t.createElement(G,null),{clearIcon:m,suffixIcon:h,itemIcon:v,removeIcon:b}}var $r=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o;const{prefixCls:a,bordered:i,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:f=256,placement:p,listItemHeight:m,size:g,disabled:h,notFoundContent:v,status:b,builtinPlacements:y,dropdownMatchSelectWidth:x,popupMatchSelectWidth:C,direction:S,style:w,allowClear:k,variant:$,dropdownStyle:E,transitionName:N,tagRender:I,maxCount:M}=e,D=$r(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:R,getPrefixCls:T,renderEmpty:H,direction:j,virtual:B,popupMatchSelectWidth:z,popupOverflow:K,select:L}=t.useContext(P),[,A]=ee(),F=null!=m?m:null==A?void 0:A.controlHeight,W=T("select",a),_=T(),V=null!=S?S:j,{compactSize:Y,compactItemClassnames:q}=te(W,V),[X,G]=ne($,i),U=re(W),[Q,Z,J]=wr(W,U),de=t.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===Er?"combobox":t}),[e.mode]),fe="multiple"===de||"tags"===de,pe=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),me=null!==(o=null!=C?C:x)&&void 0!==o?o:z,{status:ge,hasFeedback:he,isFormItemInput:ve,feedbackIcon:be}=t.useContext(oe),ye=ue(ge,b);let xe;xe=void 0!==v?v:"combobox"===de?null:(null==H?void 0:H("Select"))||t.createElement(er,{componentName:"Select"});const{suffixIcon:Ce,itemIcon:Se,removeIcon:we,clearIcon:ke}=kr(Object.assign(Object.assign({},D),{multiple:fe,hasFeedback:he,feedbackIcon:be,showSuffixIcon:pe,prefixCls:W,componentName:"Select"})),$e=!0===k?{clearIcon:ke}:k,Ee=O(D,["suffixIcon","itemIcon"]),Ne=n(u||d,{[`${W}-dropdown-${V}`]:"rtl"===V},c,J,U,Z),Ie=ae((e=>{var t;return null!==(t=null!=g?g:Y)&&void 0!==t?t:e})),Me=t.useContext(ie),Oe=null!=h?h:Me,De=n({[`${W}-lg`]:"large"===Ie,[`${W}-sm`]:"small"===Ie,[`${W}-rtl`]:"rtl"===V,[`${W}-${X}`]:G,[`${W}-in-form-item`]:ve},le(W,ye,he),q,null==L?void 0:L.className,l,c,J,U,Z),Re=t.useMemo((()=>void 0!==p?p:"rtl"===V?"bottomRight":"bottomLeft"),[p,V]),[Pe]=ce("SelectLike",null==E?void 0:E.zIndex);return Q(t.createElement(Jn,Object.assign({ref:r,virtual:B,showSearch:null==L?void 0:L.showSearch},Ee,{style:Object.assign(Object.assign({},null==L?void 0:L.style),w),dropdownMatchSelectWidth:me,transitionName:se(_,"slide-up",N),builtinPlacements:tr(y,K),listHeight:f,listItemHeight:F,mode:de,prefixCls:W,placement:Re,direction:V,suffixIcon:Ce,menuItemSelectedIcon:Se,removeIcon:we,allowClear:$e,notFoundContent:xe,className:De,getPopupContainer:s||R,dropdownClassName:Ne,disabled:Oe,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:Pe}),maxCount:fe?M:void 0,tagRender:fe?I:void 0})))},Ir=t.forwardRef(Nr),Mr=J(Ir);Ir.SECRET_COMBOBOX_MODE_DO_NOT_USE=Er,Ir.Option=xn,Ir.OptGroup=yn,Ir._InternalPanelDoNotUseOrYouWillBeFired=Mr;const Or=Ir,Dr=e=>e?"function"==typeof e?e():e:null,Rr=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},H(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},fe(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Pr=e=>{const{componentCls:t}=e;return{[t]:pe.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},Tr=Y("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=V(e,{popoverBg:t,popoverColor:n});return[Rr(r),Pr(r),de(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},me(e)),ge({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${g}px ${m}px`:0,titleBorderBottom:a?`${t}px ${s} ${u}`:"none",innerContentPadding:a?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Hr=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{hashId:r,prefixCls:o,className:a,style:i,placement:l="top",title:c,content:s,children:u}=e;return t.createElement("div",{className:n(r,o,`${o}-pure`,`${o}-placement-${l}`,a),style:i},t.createElement("div",{className:`${o}-arrow`}),t.createElement(he,Object.assign({},e,{className:r,prefixCls:o}),u||((e,n,r)=>n||r?t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${e}-title`},Dr(n)),t.createElement("div",{className:`${e}-inner-content`},Dr(r))):null)(o,c,s)))},Br=e=>{const{prefixCls:r,className:o}=e,a=Hr(e,["prefixCls","className"]),{getPrefixCls:i}=t.useContext(P),l=i("popover",r),[c,s,u]=Tr(l);return c(t.createElement(jr,Object.assign({},a,{prefixCls:l,hashId:s,className:n(o,u)})))};var zr=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{title:n,content:r,prefixCls:o}=e;return t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${o}-title`},Dr(n)),t.createElement("div",{className:`${o}-inner-content`},Dr(r)))},Lr=t.forwardRef(((e,r)=>{var o,a;const{prefixCls:l,title:c,content:s,overlayClassName:u,placement:d="top",trigger:f="hover",children:p,mouseEnterDelay:m=.1,mouseLeaveDelay:g=.1,onOpenChange:h,overlayStyle:v={}}=e,b=zr(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:y}=t.useContext(P),x=y("popover",l),[C,w,k]=Tr(x),$=y(),E=n(u,w,k),[N,I]=S(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(a=e.defaultOpen)&&void 0!==a?a:e.defaultVisible}),M=(e,t)=>{I(e,!0),null==h||h(e,t)};return C(t.createElement(ve,Object.assign({placement:d,trigger:f,mouseEnterDelay:m,mouseLeaveDelay:g,overlayStyle:v},b,{prefixCls:x,overlayClassName:E,ref:r,open:N,onOpenChange:e=>{M(e)},overlay:c||s?t.createElement(Kr,{prefixCls:x,title:c,content:s}):null,transitionName:se($,"zoom-big",b.transitionName),"data-popover-inject":!0}),be(p,{onKeyDown:e=>{var n,r;t.isValidElement(p)&&(null===(r=null==p?void 0:(n=p.props).onKeyDown)||void 0===r||r.call(n,e)),(e=>{e.keyCode===i.ESC&&M(!1,e)})(e)}})))})),Ar=Lr;Ar._InternalPanelDoNotUseOrYouWillBeFired=Br;const Fr=Ar;var Wr={exports:{}};Wr.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",a="minute",i="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()1)return e(i[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},$=b;$.l=w,$.i=S,$.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function h(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var v=h.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if($.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var o=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return $},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e)25){var r=n(this).startOf(Ur).add(1,Ur).date(t),o=n(this).endOf(Gr);if(r.isBefore(o))return 1}var a=n(this).startOf(Ur).date(t).startOf(Gr).subtract(1,"millisecond"),i=this.diff(a,Gr,!0);return i<0?n(this).startOf("week").week():Math.ceil(i)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}));var Jr={exports:{}};Jr.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}};const eo=zt(Jr.exports);var to={exports:{}};to.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(a)}};const no=zt(to.exports);var ro={exports:{}};ro.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},i=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],s=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[o,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[o,function(e){var t=s("months"),n=(s("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=i(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=i.length,c=0;c-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,a=r.month,i=r.day,l=r.hours,c=r.minutes,s=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,m=i||(o||a?1:p.getDate()),g=o||p.getFullYear(),h=0;o&&!a||(h=a>0?a-1:p.getMonth());var v=l||0,b=c||0,y=s||0,x=u||0;return d?new Date(Date.UTC(g,h,m,v,b,y,x+60*d.offset*1e3)):n?new Date(Date.UTC(g,h,m,v,b,y,x)):new Date(g,h,m,v,b,y,x)}catch(e){return new Date("")}}(t,l,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var p=l.length,m=1;m<=p;m+=1){i[1]=l[m-1];var g=n.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===p&&(this.$d=new Date(""))}else o.call(this,e)}}}();const oo=zt(ro.exports);_r.extend(oo),_r.extend(no),_r.extend(Yr),_r.extend(Xr),_r.extend(Zr),_r.extend(eo),_r.extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var ao={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},io=function(e){return ao[e]||e.split("_")[0]},lo=function(){ye(!1,"Not match any format. Please help to fire a issue about this.")},co={getNow:function(){return _r()},getFixedDate:function(e){return _r(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return _r().locale(io(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(io(e)).weekday(0)},getWeek:function(e,t){return t.locale(io(e)).week()},getShortWeekDays:function(e){return _r().locale(io(e)).localeData().weekdaysMin()},getShortMonths:function(e){return _r().locale(io(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(io(e)).format(n)},parse:function(e,t,n){for(var r=io(e),o=0;o2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length2&&void 0!==arguments[2]?arguments[2]:[],o=t.useState([!1,!1]),i=a(o,2),l=i[0],c=i[1];return[t.useMemo((function(){return l.map((function(t,o){if(t)return!0;var a=e[o];return!!a&&(!r[o]&&!a||!(!a||!n(a,{activeIndex:o})))}))}),[e,l,n,r]),function(e,t){c((function(n){return go(n,t,e)}))}]}function Co(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function So(e,t){var n=t.showHour,o=t.showMinute,a=t.showSecond,i=t.showMillisecond,l=t.use12Hours;return r.useMemo((function(){return function(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,m=e.yearFormat,g=e.cellYearFormat,h=e.cellQuarterFormat,v=e.dayFormat,b=e.cellDateFormat,y=Co(t,n,r,o,a);return c(c({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(y),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||y,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:g||"YYYY",cellQuarterFormat:h||"[Q]Q",cellDateFormat:b||v||"D"})}(e,n,o,a,i,l)}),[e,n,o,a,i,l])}function wo(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var ko=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function $o(e){return e&&"string"==typeof e}function Eo(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function No(e,t,n,r,o){var a=t,i=n,l=r;if(e||a||i||l||o){if(e){var c,s,u,d=[a,i,l].some((function(e){return!1===e})),f=[a,i,l].some((function(e){return!0===e})),p=!!d||!f;a=null!==(c=a)&&void 0!==c?c:p,i=null!==(s=i)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else a=!0,i=!0,l=!0;return[a,i,l,o]}function Io(e){var t=e.showTime,n=function(e){var t=ho(e,ko),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a="object"===o(a)?a.format:a),"time"===r&&(t.format=a),[t,a]}(e),r=a(n,2),i=r[0],l=r[1],s=t&&"object"===o(t)?t:{},u=c(c({defaultOpenValue:s.defaultOpenValue||s.defaultValue},i),s),d=u.showMillisecond,f=u.showHour,p=u.showMinute,m=u.showSecond,g=No(Eo(f,p,m,d),f,p,m,d),h=a(g,3);return f=h[0],p=h[1],m=h[2],[u,c(c({},u),{},{showHour:f,showMinute:p,showSecond:m,showMillisecond:d}),u.format,l]}function Mo(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,l=vo(e,o,null),s=[t,n],u=0;u1&&void 0!==arguments[1]&&arguments[1];return t.useMemo((function(){var t=e?mo(e):e;return n&&t&&(t[1]=t[1]||t[0]),t}),[e,n])}function qo(e,n){var r=e.generateConfig,i=e.locale,l=e.picker,s=void 0===l?"date":l,u=e.prefixCls,d=void 0===u?"rc-picker":u,f=e.styles,p=void 0===f?{}:f,m=e.classNames,g=void 0===m?{}:m,h=e.order,v=void 0===h||h,b=e.components,y=void 0===b?{}:b,x=e.inputRender,C=e.allowClear,S=e.clearIcon,w=e.needConfirm,k=e.multiple,$=e.format,E=e.inputReadOnly,I=e.disabledDate,M=e.minDate,O=e.maxDate,D=e.showTime,R=e.value,P=e.defaultValue,T=e.pickerValue,H=e.defaultPickerValue,j=Yo(R),B=Yo(P),z=Yo(T),K=Yo(H),L="date"===s&&D?"datetime":s,A="time"===L||"datetime"===L,F=A||k,W=null!=w?w:A,_=Io(e),V=a(_,4),Y=V[0],q=V[1],X=V[2],G=V[3],U=So(i,q),Q=t.useMemo((function(){return Mo(L,X,G,Y,U)}),[L,X,G,Y,U]),Z=t.useMemo((function(){return c(c({},e),{},{prefixCls:d,locale:U,picker:s,styles:p,classNames:g,order:v,components:c({input:x},y),clearIcon:Oo(d,C,S),showTime:Q,value:j,defaultValue:B,pickerValue:z,defaultPickerValue:K},null==n?void 0:n())}),[e]),J=function(e,n,r){return t.useMemo((function(){var t=mo(vo(e,n,r)),a=t[0],i="object"===o(a)&&"mask"===a.type?a.format:null;return[t.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,n,r])}(L,U,$),ee=a(J,2),te=ee[0],ne=ee[1],re=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(te,E,k),oe=function(e,t,n,r,o){return N((function(a,i){return!(!n||!n(a,i))||!(!r||!e.isAfter(r,a)||Ao(e,t,r,a,i.type))||!(!o||!e.isAfter(a,o)||Ao(e,t,o,a,i.type))}))}(r,i,I,M,O),ae=function(e,t,n,r){return N((function(o,a){var i=c({type:t},a);if(delete i.activeIndex,!e.isValidate(o)||n&&n(o,i))return!0;if(("date"===t||"time"===t)&&r){var l,s=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,a&&1===a.activeIndex?"end":"start"))||{},u=s.disabledHours,d=s.disabledMinutes,f=s.disabledSeconds,p=s.disabledMilliseconds,m=r.disabledHours,g=r.disabledMinutes,h=r.disabledSeconds,v=u||m,b=d||g,y=f||h,x=e.getHour(o),C=e.getMinute(o),S=e.getSecond(o),w=e.getMillisecond(o);if(v&&v().includes(x))return!0;if(b&&b(x).includes(C))return!0;if(y&&y(x,C).includes(S))return!0;if(p&&p(x,C,S).includes(w))return!0}return!1}))}(r,s,oe,Q);return[t.useMemo((function(){return c(c({},Z),{},{needConfirm:W,inputReadOnly:re,disabledDate:oe})}),[Z,W,re,oe]),L,F,te,ne,ae]}function Xo(t,n){var o,i,l,c,s,u,d,f,p,m,g,h=arguments.length>3?arguments[3]:void 0,v=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&t,b=(i=h,l=S(n||!1,{value:o=v}),c=a(l,2),s=c[0],u=c[1],d=r.useRef(o),f=r.useRef(),p=function(){e.cancel(f.current)},m=N((function(){u(d.current),i&&s!==d.current&&i(d.current)})),g=N((function(t,n){p(),d.current=t,t||n?m():f.current=e(m)})),r.useEffect((function(){return p}),[]),[s,g]),y=a(b,2),x=y[0],C=y[1];return[x,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!x||C(e,t.force)}]}function Go(e){var n=t.useRef();return t.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=n.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var t;null===(t=n.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=n.current)||void 0===e||e.blur()}}})),n}function Uo(e,n){return t.useMemo((function(){return e||(n?(h(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map((function(e){var t=a(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,n])}function Qo(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=t.useRef(r);a.current=r,xe((function(){if(!n){var t=e((function(){a.current(n)}),o);return function(){e.cancel(t)}}a.current(n)}),[n])}function Zo(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.useState(0),o=a(r,2),i=o[0],l=o[1],c=t.useState(!1),s=a(c,2),u=s[0],d=s[1],f=t.useRef([]),p=t.useRef(null);return Qo(u,(function(){u||(f.current=[])})),t.useEffect((function(){u&&f.current.push(i)}),[u,i]),[u,function(e){d(e)},function(e){return e&&(p.current=e),p.current},i,l,function(t){var r=f.current,o=new Set(r.filter((function(e){return t[e]||n[e]}))),a=0===r[r.length-1]?1:0;return o.size>=2||e[a]?null:a},f.current]}function Jo(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var ea=[];function ta(e,n,r,o,i,l,c,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:ea,d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ea,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,g="time"===c,h=l||0,v=function(t){var n=e.getNow();return g&&(n=Vo(e,n)),u[t]||r[t]||n},b=a(arguments.length>9&&void 0!==arguments[9]?arguments[9]:ea,2),y=b[0],x=b[1],w=S((function(){return v(0)}),{value:y}),k=a(w,2),$=k[0],E=k[1],N=S((function(){return v(1)}),{value:x}),I=a(N,2),M=I[0],O=I[1],D=t.useMemo((function(){var t=[$,M][h];return g?t:Vo(e,t,d[h])}),[g,$,M,h,e,d]),R=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[E,O][h])(t);var a=[$,M];a[h]=t,!f||Ao(e,n,$,a[0],c)&&Ao(e,n,M,a[1],c)||f(a,{source:r,range:1===h?"end":"start",mode:o})},P=t.useRef(null);return C((function(){if(i&&!u[h]){var t=g?null:e.getNow();if(null!==P.current&&P.current!==h?t=[$,M][1^h]:r[h]?t=0===h?r[0]:function(t,r){if(s){var o={date:"month",week:"month",month:"year",quarter:"year"}[c];if(o&&!Ao(e,n,t,r,o))return Jo(e,c,r,-1);if("year"===c&&Math.floor(e.getYear(t)/10)!==Math.floor(e.getYear(r)/10))return Jo(e,c,r,-1)}return r}(r[0],r[1]):r[1^h]&&(t=r[1^h]),t){p&&e.isAfter(p,t)&&(t=p);var o=s?Jo(e,c,t,1):t;m&&e.isAfter(o,m)&&(t=s?Jo(e,c,m,-1):m),R(t,"reset")}}}),[i,h,r[h]]),t.useEffect((function(){P.current=i?h:null}),[i,h]),C((function(){i&&u&&u[h]&&R(u[h],"reset")}),[i,h]),[D,R]}function na(e,n){var r=t.useRef(e),o=t.useState({}),i=a(o,2)[1],l=function(e){return e&&void 0!==n?n:r.current};return[l,function(e){r.current=e,i({})},l(!0)]}var ra=[];function oa(e,t,n){return[function(r){return r.map((function(r){return _o(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,a=0;a2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,i=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||i.push({label:po(c,a),value:c,disabled:s})}return i}function da(e){var n=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=r.use12Hours,i=r.hourStep,l=void 0===i?1:i,s=r.minuteStep,u=void 0===s?1:s,d=r.secondStep,f=void 0===d?1:d,p=r.millisecondStep,m=void 0===p?100:p,g=r.hideDisabledOptions,h=r.disabledTime,v=r.disabledHours,y=r.disabledMinutes,x=r.disabledSeconds,C=t.useMemo((function(){return n||e.getNow()}),[n,e]),S=t.useCallback((function(e){var t=(null==h?void 0:h(e))||{};return[t.disabledHours||v||sa,t.disabledMinutes||y||sa,t.disabledSeconds||x||sa,t.disabledMilliseconds||sa]}),[h,v,y,x]),w=t.useMemo((function(){return S(C)}),[C,S]),k=a(w,4),$=k[0],E=k[1],N=k[2],I=k[3],M=t.useCallback((function(e,t,n,r){var a=ua(0,23,l,g,e()),i=o?a.map((function(e){return c(c({},e),{},{label:po(e.value%12||12,2)})})):a;return[i,function(e){return ua(0,59,u,g,t(e))},function(e,t){return ua(0,59,f,g,n(e,t))},function(e,t,n){return ua(0,999,m,g,r(e,t,n),3)}]}),[g,l,o,m,u,f]),O=t.useMemo((function(){return M($,E,N,I)}),[M,$,E,N,I]),D=a(O,4),R=D[0],P=D[1],T=D[2],H=D[3];return[function(t,n){var r=function(){return R},o=P,i=T,l=H;if(n){var c=S(n),s=a(c,4),u=s[0],d=s[1],f=s[2],p=s[3],m=M(u,d,f,p),g=a(m,4),h=g[0];r=function(){return h},o=g[1],i=g[2],l=g[3]}var v=function(e,t,n,r,o,a){var i=e;function l(e,t,n){var r=a[e](i),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var l=n.filter((function(e){return!e.disabled})),c=b(l).reverse().find((function(e){return e.value<=r}))||l[0];c&&(r=c.value,i=a[t](i,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),i}(t,r,o,i,l,e);return v},R,P,T,H]}function fa(e){var r=e.mode,o=e.internalMode,i=e.renderExtraFooter,l=e.showNow,c=e.showTime,s=e.onSubmit,u=e.onNow,d=e.invalid,f=e.needConfirm,p=e.generateConfig,m=e.disabledDate,g=t.useContext(so),h=g.prefixCls,v=g.locale,b=g.button,y=void 0===b?"button":b,x=p.getNow(),C=da(p,c,x),S=a(C,1)[0],w=null==i?void 0:i(r),k=m(x,{type:r}),$="".concat(h,"-now"),E="".concat($,"-btn"),N=l&&t.createElement("li",{className:$},t.createElement("a",{className:n(E,k&&"".concat(E,"-disabled")),"aria-disabled":k,onClick:function(){if(!k){var e=S(x);u(e)}}},"date"===o?v.today:v.now)),I=f&&t.createElement("li",{className:"".concat(h,"-ok")},t.createElement(y,{disabled:d,onClick:s},v.ok)),M=(N||I)&&t.createElement("ul",{className:"".concat(h,"-ranges")},N,I);return w||M?t.createElement("div",{className:"".concat(h,"-footer")},w&&t.createElement("div",{className:"".concat(h,"-footer-extra")},w),M):null}function pa(e,t,n){return function(r,o){var a=r.findIndex((function(r){return Ao(e,t,r,o,n)}));if(-1===a)return[].concat(b(r),[o]);var i=b(r);return i.splice(a,1),i}}var ma=t.createContext(null);function ga(){return t.useContext(ma)}function ha(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,h=e.nextIcon,v=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:a,minDate:i,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:h,superPrevIcon:v,superNextIcon:b},y]}var va=t.createContext({});function ba(e){for(var r=e.rowNum,o=e.colNum,i=e.baseDate,l=e.getCellDate,s=e.prefixColumn,u=e.rowClassName,d=e.titleFormat,p=e.getCellText,m=e.getCellClassName,g=e.headerCells,h=e.cellSelection,v=void 0===h||h,b=e.disabledDate,y=ga(),x=y.prefixCls,C=y.panelType,S=y.now,w=y.disabledDate,k=y.cellRender,$=y.onHover,E=y.hoverValue,N=y.hoverRangeValue,I=y.generateConfig,M=y.values,O=y.locale,D=y.onSelect,R=b||w,P="".concat(x,"-cell"),T=t.useContext(va).onCellDblClick,H=[],j=0;j1&&(i=t.addDate(i,-7)),i}(l.locale,c,I),O=c.getMonth(s),D=S||y?function(e){var r=null==h?void 0:h(e,{type:"week"});return t.createElement("td",{key:"week",className:n(C,"".concat(C,"-week"),f({},"".concat(C,"-disabled"),r)),onClick:function(){r||v(e)},onMouseEnter:function(){r||null==b||b(e)},onMouseLeave:function(){r||null==b||b(null)}},t.createElement("div",{className:"".concat(C,"-inner")},c.locale.getWeek(l.locale,e)))}:null,R=[],P=l.shortWeekDays||(c.locale.getShortWeekDays?c.locale.getShortWeekDays(l.locale):[]);D&&R.push(t.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var T=0;T1&&void 0!==arguments[1]&&arguments[1];pe(e),null==k||k(e),t&&me(e)},he=function(e,t){ee(e),t&&ge(t),me(t,e)},ve=t.useMemo((function(){var e,t;if(Array.isArray(R)){var n=a(R,2);e=n[0],t=n[1]}else e=R;return e||t?(e=e||t,t=t||e,l.isAfter(e,t)?[t,e]:[e,t]):null}),[R,l]),be=yo(P,T,H),ye=B[te]||Ia[te]||Ca,xe=t.useContext(va),Ce=t.useMemo((function(){return c(c({},xe),{},{hideHeader:z})}),[xe,z]),Se="".concat(K,"-panel"),we=ho(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return t.createElement(va.Provider,{value:Ce},t.createElement("div",{ref:L,tabIndex:m,className:n(Se,f({},"".concat(Se,"-rtl"),"rtl"===s))},t.createElement(ye,p({},we,{showTime:G,prefixCls:K,locale:q,generateConfig:l,onModeChange:he,pickerValue:fe,onPickerValueChange:function(e){ge(e,!0)},value:le[0],onSelect:function(e){if(se(e),ge(e),J!==M){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(b(n),["week"]),date:[].concat(b(n),["date"])}[M]||n,o=r.indexOf(J),a=r[o+1];a&&he(a,e)}},values:le,cellRender:be,hoverRangeValue:ve,hoverValue:D}))))}var Oa=t.memo(t.forwardRef(Ma));function Da(e){var n=e.picker,r=e.multiplePanel,o=e.pickerValue,a=e.onPickerValueChange,i=e.needConfirm,l=e.onSubmit,s=e.range,u=e.hoverValue,d=t.useContext(so),f=d.prefixCls,m=d.generateConfig,g=t.useCallback((function(e,t){return Jo(m,n,e,t)}),[m,n]),h=t.useMemo((function(){return g(o,1)}),[o,g]),v={onCellDblClick:function(){i&&l()}},b="time"===n,y=c(c({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:b});return s?y.hoverRangeValue=u:y.hoverValue=u,r?t.createElement("div",{className:"".concat(f,"-panels")},t.createElement(va.Provider,{value:c(c({},v),{},{hideNext:!0})},t.createElement(Oa,y)),t.createElement(va.Provider,{value:c(c({},v),{},{hidePrev:!0})},t.createElement(Oa,p({},y,{pickerValue:h,onPickerValueChange:function(e){a(g(e,-1))}})))):t.createElement(va.Provider,{value:c({},v)},t.createElement(Oa,y))}function Ra(e){return"function"==typeof e?e():e}function Pa(e){var n=e.prefixCls,r=e.presets,o=e.onClick,a=e.onHover;return r.length?t.createElement("div",{className:"".concat(n,"-presets")},t.createElement("ul",null,r.map((function(e,n){var r=e.label,i=e.value;return t.createElement("li",{key:n,onClick:function(){o(Ra(i))},onMouseEnter:function(){a(Ra(i))},onMouseLeave:function(){a(null)}},r)})))):null}function Ta(e){var r=e.panelRender,o=e.internalMode,i=e.picker,l=e.showNow,c=e.range,s=e.multiple,u=e.activeOffset,d=void 0===u?0:u,m=e.presets,g=e.onPresetHover,h=e.onPresetSubmit,v=e.onFocus,b=e.onBlur,y=e.direction,x=e.value,C=e.onSelect,S=e.isInvalid,k=e.defaultOpenValue,$=e.onOk,E=e.onSubmit,N=t.useContext(so).prefixCls,I="".concat(N,"-panel"),M="rtl"===y,O=t.useRef(null),D=t.useRef(null),R=t.useState(0),P=a(R,2),T=P[0],H=P[1],j=t.useState(0),B=a(j,2),z=B[0],K=B[1];function L(e){return e.filter((function(e){return e}))}t.useEffect((function(){if(c){var e,t=(null===(e=O.current)||void 0===e?void 0:e.offsetWidth)||0;K(d<=T-t?0:d+t-T)}}),[T,d,c]);var A=t.useMemo((function(){return L(mo(x))}),[x]),F="time"===i&&!A.length,W=t.useMemo((function(){return F?L([k]):A}),[F,A,k]),_=F?k:A,V=t.useMemo((function(){return!W.length||W.some((function(e){return S(e)}))}),[W,S]),Y=t.createElement("div",{className:"".concat(N,"-panel-layout")},t.createElement(Pa,{prefixCls:N,presets:m,onClick:h,onHover:g}),t.createElement("div",null,t.createElement(Da,p({},e,{value:_})),t.createElement(fa,p({},e,{showNow:!s&&l,invalid:V,onSubmit:function(){F&&C(k),$(),E()}}))));r&&(Y=r(Y));var q="".concat(I,"-container"),X="marginLeft",G="marginRight",U=t.createElement("div",{tabIndex:-1,className:n(q,"".concat(N,"-").concat(o,"-panel-container")),style:f(f({},M?G:X,z),M?X:G,"auto"),onFocus:v,onBlur:b},Y);return c&&(U=t.createElement("div",{ref:D,className:n("".concat(N,"-range-wrapper"),"".concat(N,"-").concat(i,"-range-wrapper"))},t.createElement("div",{ref:O,className:"".concat(N,"-range-arrow"),style:f({},M?"right":"left",d)}),t.createElement(w,{onResize:function(e){e.offsetWidth&&H(e.offsetWidth)}},U))),U}function Ha(e,n){var r=e.format,o=e.maskFormat,a=e.generateConfig,i=e.locale,l=e.preserveInvalidOnBlur,s=e.inputReadOnly,d=e.required,f=e["aria-required"],p=e.onSubmit,m=e.onFocus,g=e.onBlur,h=e.onInputChange,v=e.onInvalid,b=e.open,y=e.onOpenChange,x=e.onKeyDown,C=e.onChange,S=e.activeHelp,w=e.name,k=e.autoComplete,$=e.id,E=e.value,N=e.invalid,I=e.placeholder,M=e.disabled,O=e.activeIndex,D=e.allHelp,R=e.picker,P=function(e,t){var n=a.locale.parse(i.locale,e,[t]);return n&&a.isValidate(n)?n:null},T=r[0],H=t.useCallback((function(e){return _o(e,{locale:i,format:T,generateConfig:a})}),[i,a,T]),j=t.useMemo((function(){return E.map(H)}),[E,H]),B=t.useMemo((function(){var e="time"===R?8:10,t="function"==typeof T?T(a.getNow()).length:T.length;return Math.max(e,t)+2}),[T,R,a]),z=function(e){for(var t=0;t=a&&e<=i)return r;var l=Math.min(Math.abs(e-a),Math.abs(e-i));l0?r:o));var u=o-r+1;return String(r+(u+(s+e)-r)%u)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",l(-1);break;case"ArrowRight":n="",l(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=Y+t)}if(null!==n&&(q(n),n.length>=o&&(l(1),q(""))),null!==r){var s=ne.slice(0,ce)+po(r,o)+ne.slice(se);de(s.slice(0,u.length))}te({})},onMouseDown:function(){fe.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=ae.getMaskCellIndex(t);Q(n),te({}),null==O||O(e),fe.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");d(t)&&de(t)}}:{};return t.createElement("div",{ref:re,className:n(H,f(f({},"".concat(H,"-active"),i&&c),"".concat(H,"-placeholder"),h))},t.createElement(T,p({ref:oe,"aria-invalid":w,autoComplete:"off"},$,{onKeyDown:me,onBlur:pe},he,{value:ne,onChange:function(e){if(!u){var t=e.target.value;ue(t),W(t),g(t)}}})),t.createElement(La,{type:"suffix",icon:s}),k)})),Ya=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],qa=["index"];function Xa(e,r){var i=e.id,l=e.clearIcon,s=e.suffixIcon,u=e.separator,d=void 0===u?"~":u,g=e.activeIndex;e.activeHelp,e.allHelp;var h=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var v=e.placeholder,b=e.className,y=e.style,x=e.onClick,C=e.onClear,S=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var k=e.disabled,$=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var I=e.onActiveOffset,M=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,D=m(e,Ya),R="rtl"===E,P=t.useContext(so).prefixCls,T=t.useMemo((function(){if("string"==typeof i)return[i];var e=i||{};return[e.start,e.end]}),[i]),H=t.useRef(),j=t.useRef(),B=t.useRef(),z=function(e){var t;return null===(t=[j,B][e])||void 0===t?void 0:t.current};t.useImperativeHandle(r,(function(){return{nativeElement:H.current,focus:function(e){if("object"===o(e)){var t,n=e||{},r=n.index,a=void 0===r?0:r,i=m(n,qa);null===(t=z(a))||void 0===t||t.focus(i)}else{var l;null===(l=z(null!=e?e:0))||void 0===l||l.focus()}},blur:function(){var e,t;null===(e=z(0))||void 0===e||e.blur(),null===(t=z(1))||void 0===t||t.blur()}}}));var K=Ba(D),L=t.useMemo((function(){return Array.isArray(v)?v:[v,v]}),[v]),A=Ha(c(c({},e),{},{id:T,placeholder:L})),F=a(A,1)[0],W=R?"right":"left",_=t.useState(f({position:"absolute",width:0},W,0)),V=a(_,2),Y=V[0],q=V[1],X=N((function(){var e=z(g);if(e){var t=e.nativeElement,n=t.offsetWidth,r=t.offsetLeft,o=t.offsetParent,a=r;if(R){var i=o,l=getComputedStyle(i);a=i.offsetWidth-parseFloat(l.borderRightWidth)-parseFloat(l.borderLeftWidth)-r-n}q((function(e){return c(c({},e),{},f({width:n},W,a))})),I(0===g?0:a)}}));t.useEffect((function(){X()}),[g]);var G=l&&(S[0]&&!k[0]||S[1]&&!k[1]),U=O&&!k[0],Q=O&&!U&&!k[1];return t.createElement(w,{onResize:X},t.createElement("div",p({},K,{className:n(P,"".concat(P,"-range"),f(f(f(f({},"".concat(P,"-focused"),h),"".concat(P,"-disabled"),k.every((function(e){return e}))),"".concat(P,"-invalid"),$.some((function(e){return e}))),"".concat(P,"-rtl"),R),b),style:y,ref:H,onClick:x,onMouseDown:function(e){var t=e.target;t!==j.current.inputElement&&t!==B.current.inputElement&&e.preventDefault(),null==M||M(e)}}),t.createElement(Va,p({ref:j},F(0),{autoFocus:U,"date-range":"start"})),t.createElement("div",{className:"".concat(P,"-range-separator")},d),t.createElement(Va,p({ref:B},F(1),{autoFocus:Q,"date-range":"end"})),t.createElement("div",{className:"".concat(P,"-active-bar"),style:Y}),t.createElement(La,{type:"suffix",icon:s}),G&&t.createElement(Aa,{icon:l,onClear:C})))}var Ga=t.forwardRef(Xa);function Ua(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function Qa(e){return 1===e?"end":"start"}function Za(e,n){var r=qo(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:Ua(t,!1),allowEmpty:Ua(n,!1)}})),o=a(r,6),i=o[0],l=o[1],s=o[2],d=o[3],f=o[4],m=o[5],g=i.prefixCls,h=i.styles,v=i.classNames,y=i.defaultValue,x=i.value,w=i.needConfirm,k=i.onKeyDown,$=i.disabled,E=i.allowEmpty,I=i.disabledDate,M=i.minDate,D=i.maxDate,R=i.defaultOpen,P=i.open,T=i.onOpenChange,H=i.locale,j=i.generateConfig,B=i.picker,z=i.showNow,K=i.showToday,L=i.showTime,A=i.mode,F=i.onPanelChange,W=i.onCalendarChange,_=i.onOk,V=i.defaultPickerValue,Y=i.pickerValue,q=i.onPickerValueChange,X=i.inputReadOnly,G=i.suffixIcon,U=i.onFocus,Q=i.onBlur,Z=i.presets,J=i.ranges,ee=i.components,te=i.cellRender,ne=i.dateRender,re=i.monthCellRender,oe=i.onClick,ae=Go(n),ie=Xo(P,R,$,T),le=a(ie,2),ce=le[0],se=le[1],ue=function(e,t){!$.some((function(e){return!e}))&&e||se(e,t)},de=ia(j,H,d,!0,!1,y,x,W,_),fe=a(de,5),pe=fe[0],me=fe[1],ge=fe[2],he=fe[3],ve=fe[4],be=ge(),ye=Zo($,E),xe=a(ye,7),Ce=xe[0],Se=xe[1],we=xe[2],ke=xe[3],$e=xe[4],Ee=xe[5],Ne=xe[6],Ie=function(e,t){Se(!0),null==U||U(e,{range:Qa(null!=t?t:ke)})},Me=function(e,t){Se(!1),null==Q||Q(e,{range:Qa(null!=t?t:ke)})},Oe=t.useMemo((function(){if(!L)return null;var e=L.disabledTime,t=e?function(t){var n=Qa(ke);return e(t,n)}:void 0;return c(c({},L),{},{disabledTime:t})}),[L,ke]),De=S([B,B],{value:A}),Re=a(De,2),Pe=Re[0],Te=Re[1],He=Pe[ke]||B,je="date"===He&&Oe?"datetime":He,Be=je===B&&"time"!==je,ze=ca(B,He,z,K,!0),Ke=la(i,pe,me,ge,he,$,d,Ce,ce,m),Le=a(Ke,2),Ae=Le[0],Fe=Le[1],We=function(e,t,n,r,o,i){var l=n[n.length-1],s=n.find((function(t){return e[t]}));return function(n,u){var d=a(e,2),f=d[0],p=d[1],m=c(c({},u),{},{from:l!==s?e[s]:void 0});return!(1!==l||!t[0]||!f||Ao(r,o,f,n,m.type)||!r.isAfter(f,n))||!(0!==l||!t[1]||!p||Ao(r,o,p,n,m.type)||!r.isAfter(n,p))||(null==i?void 0:i(n,m))}}(be,$,Ne,j,H,I),_e=xo(be,m,E),Ve=a(_e,2),Ye=Ve[0],qe=Ve[1],Xe=ta(j,H,be,Pe,ce,ke,l,Be,V,Y,null==Oe?void 0:Oe.defaultOpenValue,q,M,D),Ge=a(Xe,2),Ue=Ge[0],Qe=Ge[1],Ze=N((function(e,t,n){var r=go(Pe,ke,t);if(r[0]===Pe[0]&&r[1]===Pe[1]||Te(r),F&&!1!==n){var o=b(be);e&&(o[ke]=e),F(o,r)}})),Je=function(e,t){return go(be,t,e)},et=function(e,t){var n=be;e&&(n=Je(e,ke));var r=Ee(n);he(n),Ae(ke,null===r),null===r?ue(!1,{force:!0}):t||ae.current.focus({index:r})},tt=t.useState(null),nt=a(tt,2),rt=nt[0],ot=nt[1],at=t.useState(null),it=a(at,2),lt=it[0],ct=it[1],st=t.useMemo((function(){return lt||be}),[be,lt]);t.useEffect((function(){ce||ct(null)}),[ce]);var ut=t.useState(0),dt=a(ut,2),ft=dt[0],pt=dt[1],mt=Uo(Z,J),gt=yo(te,ne,re,Qa(ke)),ht=be[ke]||null,vt=N((function(e){return m(e,{activeIndex:ke})})),bt=t.useMemo((function(){var e=u(i,!1);return O(i,[].concat(b(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))}),[i]),yt=t.createElement(Ta,p({},bt,{showNow:ze,showTime:Oe,range:!0,multiplePanel:Be,activeOffset:ft,disabledDate:We,onFocus:function(e){ue(!0),Ie(e)},onBlur:Me,picker:B,mode:He,internalMode:je,onPanelChange:Ze,format:f,value:ht,isInvalid:vt,onChange:null,onSelect:function(e){we("panel");var t=go(be,ke,e);he(t),w||s||l!==je||et(e)},pickerValue:Ue,defaultOpenValue:mo(null==L?void 0:L.defaultOpenValue)[ke],onPickerValueChange:Qe,hoverValue:st,onHover:function(e){ct(e?Je(e,ke):null),ot("cell")},needConfirm:w,onSubmit:et,onOk:ve,presets:mt,onPresetHover:function(e){ct(e),ot("preset")},onPresetSubmit:function(e){Fe(e)&&ue(!1,{force:!0})},onNow:function(e){et(e)},cellRender:gt})),xt=t.useMemo((function(){return{prefixCls:g,locale:H,generateConfig:j,button:ee.button,input:ee.input}}),[g,H,j,ee.button,ee.input]);return C((function(){ce&&void 0!==ke&&Ze(null,B,!1)}),[ce,ke,B]),C((function(){var e=we();ce||"input"!==e||(ue(!1),et(null,!0)),ce||!s||w||"panel"!==e||(ue(!0),et())}),[ce]),t.createElement(so.Provider,{value:xt},t.createElement(fo,p({},bo(i),{popupElement:yt,popupStyle:h.popup,popupClassName:v.popup,visible:ce,onClose:function(){ue(!1)},range:!0}),t.createElement(Ga,p({},i,{ref:ae,suffixIcon:G,activeIndex:Ce||ce?ke:null,activeHelp:!!lt,allHelp:!!lt&&"preset"===rt,focused:Ce,onFocus:function(e,t){we("input"),ue(!0,{inherit:!0}),$e(t),Ie(e,t)},onBlur:function(e,t){ue(!1),Me(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&et(null,!0),null==k||k(e,t)},onSubmit:et,value:st,maskFormat:f,onChange:function(e,t){var n=Je(e,t);he(n)},onInputChange:function(){we("input")},format:d,inputReadOnly:X,disabled:$,open:ce,onOpenChange:ue,onClick:function(e){if(!ae.current.nativeElement.contains(document.activeElement)){var t=$.findIndex((function(e){return!e}));t>=0&&ae.current.focus({index:t})}ue(!0),null==oe||oe(e)},onClear:function(){Fe(null),ue(!1,{force:!0})},invalid:Ye,onInvalid:qe,onActiveOffset:pt}))))}var Ja=t.forwardRef(Za);function ei(e){var r=e.prefixCls,o=e.value,a=e.onRemove,i=e.removeIcon,l=void 0===i?"×":i,c=e.formatDate,s=e.disabled,u=e.maxTagCount,f=e.placeholder,p="".concat(r,"-selector"),m="".concat(r,"-selection"),g="".concat(m,"-overflow");function h(e,r){return t.createElement("span",{className:n("".concat(m,"-item")),title:"string"==typeof e?e:null},t.createElement("span",{className:"".concat(m,"-item-content")},e),!s&&r&&t.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:r,className:"".concat(m,"-item-remove")},l))}return t.createElement("div",{className:p},t.createElement(d,{prefixCls:g,data:o,renderItem:function(e){return h(c(e),(function(t){t&&t.stopPropagation(),a(e)}))},renderRest:function(e){return h("+ ".concat(e.length," ..."))},itemKey:function(e){return c(e)},maxCount:u}),!o.length&&t.createElement("span",{className:"".concat(r,"-selection-placeholder")},f))}var ti=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function ni(e,r){e.id;var o=e.open,i=e.clearIcon,l=e.suffixIcon;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var u=e.locale,d=e.generateConfig,g=e.placeholder,h=e.className,v=e.style,b=e.onClick,y=e.onClear,x=e.internalPicker,C=e.value,S=e.onChange,w=e.onSubmit;e.onInputChange;var k=e.multiple,$=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var E=e.disabled,N=e.invalid;e.inputReadOnly;var I=e.direction;e.onOpenChange;var M=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,D=e.removeIcon,R=m(e,ti),P="rtl"===I,T=t.useContext(so).prefixCls,H=t.useRef(),j=t.useRef();t.useImperativeHandle(r,(function(){return{nativeElement:H.current,focus:function(e){var t;null===(t=j.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()}}}));var B=Ba(R),z=Ha(c(c({},e),{},{onChange:function(e){S([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:s}})),K=a(z,2),L=K[0],A=K[1],F=!(!i||!C.length||E),W=k?t.createElement(t.Fragment,null,t.createElement(ei,{prefixCls:T,value:C,onRemove:function(e){var t=C.filter((function(t){return t&&!Ao(d,u,t,e,x)}));S(t),o||w()},formatDate:A,maxTagCount:$,disabled:E,removeIcon:D,placeholder:g}),t.createElement("input",{className:"".concat(T,"-multiple-input"),value:C.map(A).join(","),ref:j,readOnly:!0,autoFocus:O}),t.createElement(La,{type:"suffix",icon:l}),F&&t.createElement(Aa,{icon:i,onClear:y})):t.createElement(Va,p({ref:j},L(),{autoFocus:O,suffixIcon:l,clearIcon:F&&t.createElement(Aa,{icon:i,onClear:y}),showActiveCls:!1}));return t.createElement("div",p({},B,{className:n(T,f(f(f(f(f({},"".concat(T,"-multiple"),k),"".concat(T,"-focused"),s),"".concat(T,"-disabled"),E),"".concat(T,"-invalid"),N),"".concat(T,"-rtl"),P),h),style:v,ref:H,onClick:b,onMouseDown:function(e){var t;e.target!==(null===(t=j.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==M||M(e)}}),W)}var ri=t.forwardRef(ni);function oi(e,n){var r=qo(e),o=a(r,6),i=o[0],l=o[1],s=o[2],d=o[3],f=o[4],m=o[5],g=i,h=g.prefixCls,v=g.styles,y=g.classNames,x=g.order,w=g.defaultValue,k=g.value,$=g.needConfirm,E=g.onChange,I=g.onKeyDown,M=g.disabled,D=g.disabledDate,R=g.minDate,P=g.maxDate,T=g.defaultOpen,H=g.open,j=g.onOpenChange,B=g.locale,z=g.generateConfig,K=g.picker,L=g.showNow,A=g.showToday,F=g.showTime,W=g.mode,_=g.onPanelChange,V=g.onCalendarChange,Y=g.onOk,q=g.multiple,X=g.defaultPickerValue,G=g.pickerValue,U=g.onPickerValueChange,Q=g.inputReadOnly,Z=g.suffixIcon,J=g.removeIcon,ee=g.onFocus,te=g.onBlur,ne=g.presets,re=g.components,oe=g.cellRender,ae=g.dateRender,ie=g.monthCellRender,le=g.onClick,ce=Go(n);function se(e){return null===e?null:q?e:e[0]}var ue=pa(z,B,l),de=Xo(H,T,[M],j),fe=a(de,2),pe=fe[0],me=fe[1],ge=ia(z,B,d,!1,x,w,k,(function(e,t,n){if(V){var r=c({},n);delete r.range,V(se(e),se(t),r)}}),(function(e){null==Y||Y(se(e))})),he=a(ge,5),ve=he[0],be=he[1],ye=he[2],xe=he[3],Ce=he[4],Se=ye(),we=Zo([M]),ke=a(we,4),$e=ke[0],Ee=ke[1],Ne=ke[2],Ie=ke[3],Me=function(e){Ee(!0),null==ee||ee(e,{})},Oe=function(e){Ee(!1),null==te||te(e,{})},De=S(K,{value:W}),Re=a(De,2),Pe=Re[0],Te=Re[1],He="date"===Pe&&F?"datetime":Pe,je=ca(K,Pe,L,A),Be=E&&function(e,t){E(se(e),se(t))},ze=la(c(c({},i),{},{onChange:Be}),ve,be,ye,xe,[],d,$e,pe,m),Ke=a(ze,2)[1],Le=xo(Se,m),Ae=a(Le,2),Fe=Ae[0],We=Ae[1],_e=t.useMemo((function(){return Fe.some((function(e){return e}))}),[Fe]),Ve=ta(z,B,Se,[Pe],pe,Ie,l,!1,X,G,mo(null==F?void 0:F.defaultOpenValue),(function(e,t){if(U){var n=c(c({},t),{},{mode:t.mode[0]});delete n.range,U(e[0],n)}}),R,P),Ye=a(Ve,2),qe=Ye[0],Xe=Ye[1],Ge=N((function(e,t,n){if(Te(t),_&&!1!==n){var r=e||Se[Se.length-1];_(r,t)}})),Ue=function(){Ke(ye()),me(!1,{force:!0})},Qe=t.useState(null),Ze=a(Qe,2),Je=Ze[0],et=Ze[1],tt=t.useState(null),nt=a(tt,2),rt=nt[0],ot=nt[1],at=t.useMemo((function(){var e=[rt].concat(b(Se)).filter((function(e){return e}));return q?e:e.slice(0,1)}),[Se,rt,q]),it=t.useMemo((function(){return!q&&rt?[rt]:Se.filter((function(e){return e}))}),[Se,rt,q]);t.useEffect((function(){pe||ot(null)}),[pe]);var lt=Uo(ne),ct=function(e){var t=q?ue(ye(),e):[e];Ke(t)&&!q&&me(!1,{force:!0})},st=yo(oe,ae,ie),ut=t.useMemo((function(){var e=u(i,!1),t=O(i,[].concat(b(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return c(c({},t),{},{multiple:i.multiple})}),[i]),dt=t.createElement(Ta,p({},ut,{showNow:je,showTime:F,disabledDate:D,onFocus:function(e){me(!0),Me(e)},onBlur:Oe,picker:K,mode:Pe,internalMode:He,onPanelChange:Ge,format:f,value:Se,isInvalid:m,onChange:null,onSelect:function(e){Ne("panel");var t=q?ue(ye(),e):[e];xe(t),$||s||l!==He||Ue()},pickerValue:qe,defaultOpenValue:null==F?void 0:F.defaultOpenValue,onPickerValueChange:Xe,hoverValue:at,onHover:function(e){ot(e),et("cell")},needConfirm:$,onSubmit:Ue,onOk:Ce,presets:lt,onPresetHover:function(e){ot(e),et("preset")},onPresetSubmit:ct,onNow:function(e){ct(e)},cellRender:st})),ft=t.useMemo((function(){return{prefixCls:h,locale:B,generateConfig:z,button:re.button,input:re.input}}),[h,B,z,re.button,re.input]);return C((function(){pe&&void 0!==Ie&&Ge(null,K,!1)}),[pe,Ie,K]),C((function(){var e=Ne();pe||"input"!==e||(me(!1),Ue()),pe||!s||$||"panel"!==e||(me(!0),Ue())}),[pe]),t.createElement(so.Provider,{value:ft},t.createElement(fo,p({},bo(i),{popupElement:dt,popupStyle:v.popup,popupClassName:y.popup,visible:pe,onClose:function(){me(!1)}}),t.createElement(ri,p({},i,{ref:ce,suffixIcon:Z,removeIcon:J,activeHelp:!!rt,allHelp:!!rt&&"preset"===Je,focused:$e,onFocus:function(e){Ne("input"),me(!0,{inherit:!0}),Me(e)},onBlur:function(e){me(!1),Oe(e)},onKeyDown:function(e,t){"Tab"===e.key&&Ue(),null==I||I(e,t)},onSubmit:Ue,value:it,maskFormat:f,onChange:function(e){xe(e)},onInputChange:function(){Ne("input")},internalPicker:l,format:d,inputReadOnly:Q,disabled:M,open:pe,onOpenChange:me,onClick:function(e){M||ce.current.nativeElement.contains(document.activeElement)||ce.current.focus(),me(!0),null==le||le(e)},onClear:function(){Ke(null),me(!1,{force:!0})},invalid:_e,onInvalid:function(e){We(e,0)}}))))}var ai=t.forwardRef(oi);const ii=t.createContext(null),li=ii.Provider,ci=t.createContext(null),si=ci.Provider;var ui=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],di=t.forwardRef((function(e,r){var o=e.prefixCls,i=void 0===o?"rc-checkbox":o,l=e.className,s=e.style,u=e.checked,d=e.disabled,g=e.defaultChecked,h=void 0!==g&&g,v=e.type,b=void 0===v?"checkbox":v,y=e.title,x=e.onChange,C=m(e,ui),w=t.useRef(null),k=S(h,{value:u}),$=a(k,2),E=$[0],N=$[1];t.useImperativeHandle(r,(function(){return{focus:function(e){var t;null===(t=w.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=w.current)||void 0===e||e.blur()},input:w.current}}));var I=n(i,l,f(f({},"".concat(i,"-checked"),E),"".concat(i,"-disabled"),d));return t.createElement("span",{className:I,title:y,style:s},t.createElement("input",p({},C,{className:"".concat(i,"-input"),ref:w,onChange:function(t){d||("checked"in e||N(t.target.checked),null==x||x({target:c(c({},e),{},{type:b,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:d,checked:!!E,type:b})),t.createElement("span",{className:"".concat(i,"-inner")}))}));const fi=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},H(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},pi=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(o).sub(b(4).mul(2)),C=b(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},H(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${_(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},H(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Se(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:b(1).mul(o).div(-2).equal(),marginInlineStart:b(1).mul(o).div(-2).equal(),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},mi=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:k,colorPrimary:$,colorPrimaryHover:E,colorPrimaryActive:N,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:O,calc:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:_(D(n).sub(D(o).mul(2)).equal()),background:d,border:`${_(o)} ${a} ${i}`,borderBlockStartWidth:D(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:D(o).mul(-1).equal(),insetInlineStart:D(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${_(o)} ${a} ${i}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:_(D(p).sub(D(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:D(g).sub(o).equal(),paddingBlock:0,lineHeight:_(D(m).sub(D(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},Se(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:I,borderColor:I,"&:hover":{color:x,background:M,borderColor:M},"&:active":{color:x,background:O,borderColor:O}},"&-disabled":{color:C,backgroundColor:S,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:w,borderColor:i,boxShadow:"none"}}}},gi=Y("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${_(n)} ${t}`,o=V(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[fi(o),pi(o),mi(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:a,dotSize:t?a-8:a-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}});var hi=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o,a;const i=t.useContext(ii),l=t.useContext(ci),{getPrefixCls:c,direction:u,radio:d}=t.useContext(P),f=t.useRef(null),p=s(r,f),{isFormItemInput:m}=t.useContext(oe),g=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:h,className:v,rootClassName:b,children:y,style:x,title:C}=e,S=hi(e,["prefixCls","className","rootClassName","children","style","title"]),w=c("radio",h),k="button"===((null==i?void 0:i.optionType)||l),$=k?`${w}-button`:w,E=re(w),[N,I,M]=gi(w,E),O=Object.assign({},S),D=t.useContext(ie);i&&(O.name=i.name,O.onChange=g,O.checked=e.value===i.value,O.disabled=null!==(o=O.disabled)&&void 0!==o?o:i.disabled),O.disabled=null!==(a=O.disabled)&&void 0!==a?a:D;const R=n(`${$}-wrapper`,{[`${$}-wrapper-checked`]:O.checked,[`${$}-wrapper-disabled`]:O.disabled,[`${$}-wrapper-rtl`]:"rtl"===u,[`${$}-wrapper-in-form-item`]:m},null==d?void 0:d.className,v,b,I,M,E);return N(t.createElement(we,{component:"Radio",disabled:O.disabled},t.createElement("label",{className:R,style:Object.assign(Object.assign({},null==d?void 0:d.style),x),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C},t.createElement(di,Object.assign({},O,{className:n(O.className,!k&&ke),type:"radio",prefixCls:$,ref:p})),void 0!==y?t.createElement("span",null,y):null)))},bi=t.forwardRef(vi),yi=t.forwardRef(((e,r)=>{const{getPrefixCls:o,direction:a}=t.useContext(P),[i,l]=S(e.defaultValue,{value:e.value}),{prefixCls:c,className:s,rootClassName:d,options:f,buttonStyle:p="outline",disabled:m,children:g,size:h,style:v,id:b,onMouseEnter:y,onMouseLeave:x,onFocus:C,onBlur:w}=e,k=o("radio",c),$=`${k}-group`,E=re(k),[N,I,M]=gi(k,E);let O=g;f&&f.length>0&&(O=f.map((e=>"string"==typeof e||"number"==typeof e?t.createElement(bi,{key:e.toString(),prefixCls:k,disabled:m,value:e,checked:i===e},e):t.createElement(bi,{key:`radio-group-value-options-${e.value}`,prefixCls:k,disabled:e.disabled||m,value:e.value,checked:i===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const D=ae(h),R=n($,`${$}-${p}`,{[`${$}-${D}`]:D,[`${$}-rtl`]:"rtl"===a},s,d,I,M,E);return N(t.createElement("div",Object.assign({},u(e,{aria:!0,data:!0}),{className:R,style:v,onMouseEnter:y,onMouseLeave:x,onFocus:C,onBlur:w,id:b,ref:r}),t.createElement(li,{value:{onChange:t=>{const n=i,r=t.target.value;"value"in e||l(r);const{onChange:o}=e;o&&r!==n&&o(t)},value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))})),xi=t.memo(yi);var Ci=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:r}=t.useContext(P),{prefixCls:o}=e,a=Ci(e,["prefixCls"]),i=r("radio",o);return t.createElement(si,{value:"button"},t.createElement(bi,Object.assign({prefixCls:i},a,{type:"radio",ref:n})))},wi=t.forwardRef(Si),ki=bi;ki.Button=wi,ki.Group=xi,ki.__ANT_RADIO=!0;const $i=ki,Ei=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=or(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:_(a.itemLineHeight)}}}]},Ni=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=V(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=V(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Ei(o,"small"),Ei(e),Ei(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},ar(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Ii=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:_(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${_(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:f,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},Mi=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:g,colorSplit:h,pickerControlIconBorderWidth:v,colorIcon:b,textHeight:y,motionDurationMid:x,colorIconHover:C,fontWeightStrong:S,cellHeight:w,pickerCellPaddingVertical:k,colorTextDisabled:$,colorText:E,fontSize:N,motionDurationSlow:I,withoutTimeCellHeight:M,pickerQuarterPanelContentHeight:O,borderRadiusSM:D,colorTextLightSolid:R,cellHoverBg:P,timeColumnHeight:T,timeColumnWidth:H,timeCellHeight:j,controlItemBgActive:B,marginXXS:z,pickerDatePanelPaddingHorizontal:K,pickerControlIconMargin:L}=e,A=e.calc(i).mul(7).add(e.calc(K).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{direction:"rtl",[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:A},"&-header":{display:"flex",padding:`0 ${_(c)}`,color:g,borderBottom:`${_(d)} ${f} ${h}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:_(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:_(y),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:v,borderBlockEndWidth:0,borderInlineStartWidth:v,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:L,insetInlineStart:L,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:v,borderBlockEndWidth:0,borderInlineStartWidth:v,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(k).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${_(k)} 0`,color:$,cursor:"pointer","&-in-view":{color:E}},Ii(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(M).mul(4).equal()},[r]:{padding:`0 ${_(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:O}},"&-decade-panel":{[r]:{padding:`0 ${_(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${_(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${_(c)} ${_(K)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child:before":{borderStartEndRadius:D,borderEndEndRadius:D}},"&:hover td":{"&:before":{background:P}},"&-range-start td,\n &-range-end td,\n &-selected td,\n &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new $e(R).setAlpha(.5).toHexString()},[r]:{color:R}}},"&-range-hover td:before":{background:B}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${_(c)} ${_(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${_(d)} ${f} ${h}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${I}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:T},"&-column":{flex:"1 0 auto",width:H,margin:`${_(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(j).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${_(d)} ${f} ${h}`},"&-active":{background:new $e(B).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(H).sub(e.calc(z).mul(2)).equal(),height:j,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(H).sub(j).div(2).equal(),color:E,lineHeight:_(j),borderRadius:D,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},Oi=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${_(r)} ${s} ${u}`,"&-extra":{padding:`0 ${_(o)}`,lineHeight:_(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${_(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:_(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:_(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Di=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},Ne(e)),Ie(e)),Me(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Ri=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(o).div(2).equal(),0),i=e.max(e.calc(t).sub(o).sub(a).equal(),0);return{padding:`${_(a)} ${_(r)} ${_(i)}`}},Pi=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Ti=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:g,paddingXS:h,marginXS:v,colorTextDescription:b,lineWidthBold:y,colorPrimary:x,motionDurationSlow:C,zIndexPopup:S,paddingXXS:w,sizePopupArrow:k,colorBgElevated:$,borderRadiusLG:E,boxShadowSecondary:N,borderRadiusSM:I,colorSplit:M,cellHoverBg:O,presetsWidth:D,presetsMaxWidth:R,boxShadowPopoverArrow:P,fontHeight:T,fontHeightLG:W,lineHeightLG:V}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},H(e)),Ri(e,r,T,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},De(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},Ri(e,f,W,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:V}}),"&-small":Object.assign({},Ri(e,m,T,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(h).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:y,background:x,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${_(h)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},H(e)),Mi(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:B},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:j},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:K},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:z},[`${t}-panel > ${t}-time-panel`]:{paddingTop:w},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${C} ease-out`},Re(e,$,P)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:E,boxShadow:N,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:D,maxWidth:R,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${_(a)} ${i} ${M}`,li:Object.assign(Object.assign({},L),{borderRadius:I,paddingInline:h,paddingBlock:e.calc(m).sub(T).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:v},"&:hover":{background:O}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content,\n table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${_(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},A(e,"slide-up"),A(e,"slide-down"),F(e,"move-up"),F(e,"move-down")]},Hi=Y("DatePicker",(e=>{const t=V(Oe(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Oi(t),Ti(t),Di(t),Pi(t),Ni(t),q(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ee(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,l=2*a,c=2*i,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),d=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new $e(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new $e(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),me(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function ji(e,t){return e[t]}var Bi=["children"];function zi(e,t){return"".concat(e,"-").concat(t)}function Ki(e,t){return null!=e?e:t}function Li(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function Ai(e){return function e(t){return R(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return h(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,a=m(r,Bi),i=c({key:n},a),l=e(o);return l.length&&(i.children=l),i})).filter((function(e){return e}))}(e)}function Fi(e,t,n){var r=Li(n),o=r._title,a=r.key,i=r.children,l=new Set(!0===t?[]:t),s=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(u,d){for(var f,p=zi(r?r.pos:"0",d),m=Ki(u[a],p),g=0;g1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,l=t.childrenPropName,c=t.fieldNames,s=i||(arguments.length>2?arguments[2]:void 0),u={},d={},f={posEntities:u,keyEntities:d};return n&&(f=n(f)||f),function(e,t,n){var r,a=("object"===o(n)?n:{externalGetKey:n})||{},i=a.childrenPropName,l=a.externalGetKey,c=Li(a.fieldNames),s=c.key,u=c.children,d=i||u;l?"string"==typeof l?r=function(e){return e[l]}:"function"==typeof l&&(r=function(e){return l(e)}):r=function(e,t){return Ki(e[s],t)},function n(o,a,i,l){var c=o?o[d]:e,s=o?zi(i.pos,a):"0",u=o?[].concat(b(l),[o]):[];if(o){var f=r(o,s),p={node:o,index:a,pos:s,key:f,parentPos:i.node?i.pos:null,level:i.level+1,nodes:u};t(p)}c&&c.forEach((function(e,t){n(e,t,{node:o,pos:s,level:i?i.level+1:-1},u)}))}(null)}(e,(function(e){var t=e.node,n=e.index,o=e.pos,a=e.key,i=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:a,pos:o,level:l},s=Ki(a,o);u[o]=c,d[s]=c,c.parent=u[i],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:s,childrenPropName:l,fieldNames:c}),a&&a(f),f}function _i(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=ji(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function Vi(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,m=e.eventKey,g=c(c({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:m});return"props"in g||Object.defineProperty(g,"props",{get:function(){return h(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function Yi(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function qi(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Xi(e,t,n,r){var o,a=[];o=r||qi;var i,l=new Set(e.filter((function(e){var t=!!ji(n,e);return t||a.push(e),t}))),c=new Map,s=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),s=Math.max(s,r)})),h(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),i=!0===t?function(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1)(t.get(i)||new Set).forEach((function(e){var t=e.key,n=e.node,a=e.children,i=void 0===a?[]:a;o.has(t)&&!r(n)&&i.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var i=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),c||!n&&!a.has(t)||(c=!0)})),i&&o.add(t.key),c&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Yi(a,o))}}(l,c,s,o):function(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;a.has(t)||i.has(t)||o(n)||l.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));i=new Set;for(var c=new Set,s=r;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),l||!n&&!i.has(t)||(l=!0)})),r||a.delete(t.key),l&&i.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Yi(i,a))}}(l,t.halfCheckedKeys,c,s,o),i}const Gi=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},H(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},H(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},H(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Se(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${_(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Ui(e,t){const n=V(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Gi(n)]}const Qi=Y("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[Ui(n,e)]})),Zi=r.createContext(null);var Ji=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o;const{prefixCls:a,className:i,rootClassName:l,children:c,indeterminate:s=!1,style:u,onMouseEnter:d,onMouseLeave:f,skipGroup:p=!1,disabled:m}=e,g=Ji(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:b}=t.useContext(P),y=t.useContext(Zi),{isFormItemInput:x}=t.useContext(oe),C=t.useContext(ie),S=null!==(o=(null==y?void 0:y.disabled)||m)&&void 0!==o?o:C,w=t.useRef(g.value);t.useEffect((()=>{null==y||y.registerValue(g.value)}),[]),t.useEffect((()=>{if(!p)return g.value!==w.current&&(null==y||y.cancelValue(w.current),null==y||y.registerValue(g.value),w.current=g.value),()=>null==y?void 0:y.cancelValue(g.value)}),[g.value]);const k=h("checkbox",a),$=re(k),[E,N,I]=Qi(k,$),M=Object.assign({},g);y&&!p&&(M.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),y.toggleOption&&y.toggleOption({label:c,value:g.value})},M.name=y.name,M.checked=y.value.includes(g.value));const O=n(`${k}-wrapper`,{[`${k}-rtl`]:"rtl"===v,[`${k}-wrapper-checked`]:M.checked,[`${k}-wrapper-disabled`]:S,[`${k}-wrapper-in-form-item`]:x},null==b?void 0:b.className,i,l,I,$,N),D=n({[`${k}-indeterminate`]:s},ke,N),R=s?"mixed":void 0;return E(t.createElement(we,{component:"Checkbox",disabled:S},t.createElement("label",{className:O,style:Object.assign(Object.assign({},null==b?void 0:b.style),u),onMouseEnter:d,onMouseLeave:f},t.createElement(di,Object.assign({"aria-checked":R},M,{prefixCls:k,className:D,disabled:S,ref:r})),void 0!==c&&t.createElement("span",null,c))))},tl=t.forwardRef(el);var nl=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{defaultValue:o,children:a,options:i=[],prefixCls:l,className:c,rootClassName:s,style:u,onChange:d}=e,f=nl(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:m}=t.useContext(P),[g,h]=t.useState(f.value||o||[]),[v,y]=t.useState([]);t.useEffect((()=>{"value"in f&&h(f.value||[])}),[f.value]);const x=t.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),C=p("checkbox",l),S=`${C}-group`,w=re(C),[k,$,E]=Qi(C,w),N=O(f,["value","disabled"]),I=i.length?x.map((e=>t.createElement(tl,{prefixCls:C,key:e.value.toString(),disabled:"disabled"in e?e.disabled:f.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:`${S}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):a,M={toggleOption:e=>{const t=g.indexOf(e.value),n=b(g);-1===t?n.push(e.value):n.splice(t,1),"value"in f||h(n),null==d||d(n.filter((e=>v.includes(e))).sort(((e,t)=>x.findIndex((t=>t.value===e))-x.findIndex((e=>e.value===t)))))},value:g,disabled:f.disabled,name:f.name,registerValue:e=>{y((t=>[].concat(b(t),[e])))},cancelValue:e=>{y((t=>t.filter((t=>t!==e))))}},D=n(S,{[`${S}-rtl`]:"rtl"===m},c,s,E,w,$);return k(t.createElement("div",Object.assign({className:D,style:u},N,{ref:r}),t.createElement(Zi.Provider,{value:M},I)))})),ol=tl;ol.Group=rl,ol.__ANT_CHECKBOX=!0;const al=ol;const il={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var ll=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:il}))}; -/**![up](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg5MC41IDc1NS4zTDUzNy45IDI2OS4yYy0xMi44LTE3LjYtMzktMTcuNi01MS43IDBMMTMzLjUgNzU1LjNBOCA4IDAgMDAxNDAgNzY4aDc1YzUuMSAwIDkuOS0yLjUgMTIuOS02LjZMNTEyIDM2OS44bDI4NC4xIDM5MS42YzMgNC4xIDcuOCA2LjYgMTIuOSA2LjZoNzVjNi41IDAgMTAuMy03LjQgNi41LTEyLjd6IiAvPjwvc3ZnPg==) */const cl=t.forwardRef(ll);function sl(){return"function"==typeof BigInt}function ul(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function dl(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function fl(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function pl(e){var t=String(e);if(fl(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&gl(t)?t.length-t.indexOf(".")-1:0}function ml(e){var t=String(e);if(fl(e)){if(e>Number.MAX_SAFE_INTEGER)return String(sl()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":dl("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),vl=function(){function e(t){$(this,e),f(this,"origin",""),f(this,"number",void 0),f(this,"empty",void 0),ul(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return k(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":ml(this.number):this.origin}}]),e}();function bl(e){return sl()?new hl(e):new vl(e)}function yl(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=dl(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(a).concat(i);if(n>=0){var u=Number(l[n]);return u>=5&&!r?yl(bl(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}var xl=function(){var e=t.useState(!1),n=a(e,2),r=n[0],o=n[1];return C((function(){o(y())}),[]),r};function Cl(r){var o=r.prefixCls,a=r.upNode,i=r.downNode,l=r.upDisabled,c=r.downDisabled,s=r.onStep,u=t.useRef(),d=t.useRef([]),m=t.useRef();m.current=s;var g=function(){clearTimeout(u.current)},h=function(e,t){e.preventDefault(),g(),m.current(t),u.current=setTimeout((function e(){m.current(t),u.current=setTimeout(e,200)}),600)};if(t.useEffect((function(){return function(){g(),d.current.forEach((function(t){return e.cancel(t)}))}}),[]),xl())return null;var v="".concat(o,"-handler"),b=n(v,"".concat(v,"-up"),f({},"".concat(v,"-up-disabled"),l)),y=n(v,"".concat(v,"-down"),f({},"".concat(v,"-down-disabled"),c)),x=function(){return d.current.push(e(g))},C={unselectable:"on",role:"button",onMouseUp:x,onMouseLeave:x};return t.createElement("div",{className:"".concat(v,"-wrap")},t.createElement("span",p({},C,{onMouseDown:function(e){h(e,!0)},"aria-label":"Increase Value","aria-disabled":l,className:b}),a||t.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-up-inner")})),t.createElement("span",p({},C,{onMouseDown:function(e){h(e,!1)},"aria-label":"Decrease Value","aria-disabled":c,className:y}),i||t.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-down-inner")})))}function Sl(e){var t="number"==typeof e?ml(e):dl(e).fullStr;return t.includes(".")?dl(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var wl=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],kl=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],$l=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},El=function(e){var t=bl(e);return t.isInvalidate()?null:t},Nl=t.forwardRef((function(r,i){var l,c=r.prefixCls,u=void 0===c?"rc-input-number":c,d=r.className,g=r.style,v=r.min,b=r.max,y=r.step,x=void 0===y?1:y,C=r.defaultValue,S=r.value,w=r.disabled,k=r.readOnly,$=r.upHandler,E=r.downHandler,N=r.keyboard,I=r.changeOnWheel,M=void 0!==I&&I,O=r.controls,D=void 0===O||O;r.classNames;var R=r.stringMode,P=r.parser,T=r.formatter,H=r.precision,j=r.decimalSeparator,B=r.onChange,z=r.onInput,K=r.onPressEnter,L=r.onStep,A=r.changeOnBlur,F=void 0===A||A,W=m(r,wl),_="".concat(u,"-input"),V=t.useRef(null),Y=t.useState(!1),q=a(Y,2),X=q[0],G=q[1],U=t.useRef(!1),Q=t.useRef(!1),Z=t.useRef(!1),J=t.useState((function(){return bl(null!=S?S:C)})),ee=a(J,2),te=ee[0],ne=ee[1];var re=t.useCallback((function(e,t){if(!t)return H>=0?H:Math.max(pl(e),pl(x))}),[H,x]),oe=t.useCallback((function(e){var t=String(e);if(P)return P(t);var n=t;return j&&(n=n.replace(j,".")),n.replace(/[^\w.-]+/g,"")}),[P,j]),ae=t.useRef(""),ie=t.useCallback((function(e,t){if(T)return T(e,{userTyping:t,input:String(ae.current)});var n="number"==typeof e?ml(e):e;if(!t){var r=re(n,t);if(gl(n)&&(j||r>=0))n=yl(n,j||".",r)}return n}),[T,re,j]),le=t.useState((function(){var e=null!=C?C:S;return te.isInvalidate()&&["string","number"].includes(o(e))?Number.isNaN(e)?"":e:ie(te.toString(),!1)})),ce=a(le,2),se=ce[0],ue=ce[1];function de(e,t){ue(ie(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ae.current=se;var fe,pe,me,ge,he,ve=t.useMemo((function(){return El(b)}),[b,H]),be=t.useMemo((function(){return El(v)}),[v,H]),ye=t.useMemo((function(){return!(!ve||!te||te.isInvalidate())&&ve.lessEquals(te)}),[ve,te]),Ce=t.useMemo((function(){return!(!be||!te||te.isInvalidate())&&te.lessEquals(be)}),[be,te]),Se=(fe=V.current,pe=X,me=t.useRef(null),[function(){try{var e=fe.selectionStart,t=fe.selectionEnd,n=fe.value,r=n.substring(0,e),o=n.substring(t);me.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(Gr){}},function(){if(fe&&me.current&&pe)try{var e=fe.value,t=me.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,a=e.length;if(e.endsWith(r))a=e.length-me.current.afterTxt.length;else if(e.startsWith(n))a=n.length;else{var i=n[o-1],l=e.indexOf(i,o-1);-1!==l&&(a=l+1)}fe.setSelectionRange(a,a)}catch(Gr){h(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Gr.message))}}]),we=a(Se,2),ke=we[0],$e=we[1],Ee=function(e){return ve&&!e.lessEquals(ve)?ve:be&&!be.lessEquals(e)?be:null},Ne=function(e){return!Ee(e)},Ie=function(e,t){var n,r=e,o=Ne(r)||r.isEmpty();if(r.isEmpty()||t||(r=Ee(r)||r,o=!0),!k&&!w&&o){var a=r.toString(),i=re(a,t);return i>=0&&(r=bl(yl(a,".",i)),Ne(r)||(r=bl(yl(a,".",i,!0)))),r.equals(te)||(n=r,void 0===S&&ne(n),null==B||B(r.isEmpty()?null:$l(R,r)),void 0===S&&de(r,t)),r}return te},Me=(ge=t.useRef(0),he=function(){e.cancel(ge.current)},t.useEffect((function(){return he}),[]),function(t){he(),ge.current=e((function(){t()}))}),Oe=function e(t){if(ke(),ae.current=t,ue(t),!Q.current){var n=bl(oe(t));n.isNaN()||Ie(n,!0)}null==z||z(t),Me((function(){var n=t;P||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},De=function(e){var t;if(!(e&&ye||!e&&Ce)){U.current=!1;var n=bl(Z.current?Sl(x):x);e||(n=n.negate());var r=(te||bl(0)).add(n.toString()),o=Ie(r,!1);null==L||L($l(R,o),{offset:Z.current?Sl(x):x,type:e?"up":"down"}),null===(t=V.current)||void 0===t||t.focus()}},Re=function(e){var t=bl(oe(se)),n=t;n=t.isNaN()?Ie(te,e):Ie(t,e),void 0!==S?de(te,!1):n.isNaN()||de(n,!1)};t.useEffect((function(){if(M&&X){var e=function(e){De(e.deltaY<0),e.preventDefault()},t=V.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return xe((function(){te.isInvalidate()||de(te,!1)}),[H,T]),xe((function(){var e=bl(S);ne(e);var t=bl(oe(se));e.equals(t)&&U.current&&!T||de(e,U.current)}),[S]),xe((function(){T&&$e()}),[se]),t.createElement("div",{className:n(u,d,(l={},f(l,"".concat(u,"-focused"),X),f(l,"".concat(u,"-disabled"),w),f(l,"".concat(u,"-readonly"),k),f(l,"".concat(u,"-not-a-number"),te.isNaN()),f(l,"".concat(u,"-out-of-range"),!te.isInvalidate()&&!Ne(te)),l)),style:g,onFocus:function(){G(!0)},onBlur:function(){F&&Re(!1),G(!1),U.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;U.current=!0,Z.current=n,"Enter"===t&&(Q.current||(U.current=!1),Re(!1),null==K||K(e)),!1!==N&&!Q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(De("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){U.current=!1,Z.current=!1},onCompositionStart:function(){Q.current=!0},onCompositionEnd:function(){Q.current=!1,Oe(V.current.value)},onBeforeInput:function(){U.current=!0}},D&&t.createElement(Cl,{prefixCls:u,upNode:$,downNode:E,upDisabled:ye,downDisabled:Ce,onStep:De}),t.createElement("div",{className:"".concat(_,"-wrap")},t.createElement("input",p({autoComplete:"off",role:"spinbutton","aria-valuemin":v,"aria-valuemax":b,"aria-valuenow":te.isInvalidate()?null:te.toString(),step:x},W,{ref:s(V,i),className:_,value:se,onChange:function(e){Oe(e.target.value)},disabled:w,readOnly:k}))))})),Il=t.forwardRef((function(e,n){var r=e.disabled,o=e.style,a=e.prefixCls,i=e.value,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,g=e.classNames,h=m(e,kl),v=t.useRef(null);return t.createElement(Te,{className:f,triggerFocus:function(e){v.current&&He(v.current,e)},prefixCls:a,value:i,disabled:r,style:o,prefix:l,suffix:c,addonAfter:d,addonBefore:u,classNames:g,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},t.createElement(Nl,p({prefixCls:a,disabled:r,ref:s(v,n),className:null==g?void 0:g.input},h)))}));Il.displayName="InputNumber";const Ml=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},Ol=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:l,colorError:c,paddingInlineSM:s,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:f,colorTextDescription:p,motionDurationMid:m,handleHoverColor:g,paddingInline:h,paddingBlock:v,handleBg:b,handleActiveBg:y,colorTextDisabled:x,borderRadiusSM:C,borderRadiusLG:S,controlWidth:w,handleOpacity:k,handleBorderColor:$,filledHandleBg:E,lineHeightLG:N,calc:I}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H(e)),je(e)),{display:"inline-block",width:w,margin:0,padding:0,borderRadius:o}),Ne(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${_(n)} ${r} ${$}`}}})),Ie(e,{[`${t}-handler-wrap`]:{background:E,[`${t}-handler-down`]:{borderBlockStart:`${_(n)} ${r} ${$}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),Me(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:N,borderRadius:S,[`input${t}-input`]:{height:I(i).sub(I(n).mul(2)).equal(),padding:`${_(d)} ${_(f)}`}},"&-sm":{padding:0,borderRadius:C,[`input${t}-input`]:{height:I(l).sub(I(n).mul(2)).equal(),padding:`${_(u)} ${_(s)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},H(e)),Be(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},ze(e)),Ke(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},H(e)),{width:"100%",padding:`${_(v)} ${_(h)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),De(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:k,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${m} linear ${m}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${_(n)} ${r} ${$}`,transition:`all ${m} linear`,"&:active":{background:y},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},W()),{color:p,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Ml(e,"lg")),Ml(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:x}})}]},Dl=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${_(n)} 0`}},je(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${_(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${_(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},Rl=Y("InputNumber",(e=>{const t=V(e,Oe(e));return[Ol(t),Dl(t),q(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},Ee(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new $e(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}});var Pl=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:o,direction:a}=t.useContext(P),i=t.useRef(null);t.useImperativeHandle(r,(()=>i.current));const{className:l,rootClassName:c,size:s,disabled:u,prefixCls:d,addonBefore:f,addonAfter:p,prefix:m,bordered:g,readOnly:h,status:v,controls:b,variant:y}=e,x=Pl(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),C=o("input-number",d),S=re(C),[w,k,$]=Rl(C,S),{compactSize:E,compactItemClassnames:N}=te(C,a);let I=t.createElement(cl,{className:`${C}-handler-up-inner`}),M=t.createElement(Z,{className:`${C}-handler-down-inner`});const O="boolean"==typeof b?b:void 0;"object"==typeof b&&(I=void 0===b.upIcon?I:t.createElement("span",{className:`${C}-handler-up-inner`},b.upIcon),M=void 0===b.downIcon?M:t.createElement("span",{className:`${C}-handler-down-inner`},b.downIcon));const{hasFeedback:D,status:R,isFormItemInput:T,feedbackIcon:H}=t.useContext(oe),j=ue(R,v),B=ae((e=>{var t;return null!==(t=null!=s?s:E)&&void 0!==t?t:e})),z=t.useContext(ie),K=null!=u?u:z,[L,A]=ne(y,g),F=D&&t.createElement(t.Fragment,null,H),W=n({[`${C}-lg`]:"large"===B,[`${C}-sm`]:"small"===B,[`${C}-rtl`]:"rtl"===a,[`${C}-in-form-item`]:T},k),_=`${C}-group`;return w(t.createElement(Il,Object.assign({ref:i,disabled:K,className:n($,S,l,c,N),upHandler:I,downHandler:M,prefixCls:C,readOnly:h,controls:O,prefix:m,suffix:F,addonAfter:p&&t.createElement(Le,null,t.createElement(Ae,{override:!0,status:!0},p)),addonBefore:f&&t.createElement(Le,null,t.createElement(Ae,{override:!0,status:!0},f)),classNames:{input:W,variant:n({[`${C}-${L}`]:A},le(C,j,D)),affixWrapper:n({[`${C}-affix-wrapper-sm`]:"small"===B,[`${C}-affix-wrapper-lg`]:"large"===B,[`${C}-affix-wrapper-rtl`]:"rtl"===a},k),wrapper:n({[`${_}-rtl`]:"rtl"===a},k),groupWrapper:n({[`${C}-group-wrapper-sm`]:"small"===B,[`${C}-group-wrapper-lg`]:"large"===B,[`${C}-group-wrapper-rtl`]:"rtl"===a,[`${C}-group-wrapper-${L}`]:A},le(`${C}-group-wrapper`,j,D),k)}},x)))})),Hl=Tl;Hl._InternalPanelDoNotUseOrYouWillBeFired=e=>t.createElement(Fe,{theme:{components:{InputNumber:{handleVisible:!0}}}},t.createElement(Tl,Object.assign({},e)));const jl=Hl;const Bl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var zl=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:Bl}))}; -/**![calendar](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAxODRINzEydi02NGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2NjRIMzg0di02NGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2NjRIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY2NjRjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjIxNmMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDY1NkgxODRWNDYwaDY1NnYzODB6TTE4NCAzOTJWMjU2aDEyOHY0OGMwIDQuNCAzLjYgOCA4IDhoNTZjNC40IDAgOC0zLjYgOC04di00OGgyNTZ2NDhjMCA0LjQgMy42IDggOCA4aDU2YzQuNCAwIDgtMy42IDgtOHYtNDhoMTI4djEzNkgxODR6IiAvPjwvc3ZnPg==) */const Kl=t.forwardRef(zl);const Ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var Al=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:Ll}))}; -/**![clock-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTY4Ni43IDYzOC42TDU0NC4xIDUzNS41VjI4OGMwLTQuNC0zLjYtOC04LThINDg4Yy00LjQgMC04IDMuNi04IDh2Mjc1LjRjMCAyLjYgMS4yIDUgMy4zIDYuNWwxNjUuNCAxMjAuNmMzLjYgMi42IDguNiAxLjggMTEuMi0xLjdsMjguNi0zOWMyLjYtMy43IDEuOC04LjctMS44LTExLjJ6IiAvPjwvc3ZnPg==) */const Fl=t.forwardRef(Al);const Wl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var _l=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:Wl}))}; -/**![swap-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg3My4xIDU5Ni4ybC0xNjQtMjA4QTMyIDMyIDAgMDA2ODQgMzc2aC02NC44Yy02LjcgMC0xMC40IDcuNy02LjMgMTNsMTQ0LjMgMTgzSDE1MmMtNC40IDAtOCAzLjYtOCA4djYwYzAgNC40IDMuNiA4IDggOGg2OTUuOWMyNi44IDAgNDEuNy0zMC44IDI1LjItNTEuOHoiIC8+PC9zdmc+) */const Vl=t.forwardRef(_l);function Yl(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function ql(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Xl(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function Gl(e,n){const{allowClear:r=!0}=e,{clearIcon:o,removeIcon:a}=kr(Object.assign(Object.assign({},e),{prefixCls:n,componentName:"DatePicker"}));return[t.useMemo((()=>{if(!1===r)return!1;const e=!0===r?{}:r;return Object.assign({clearIcon:o},e)}),[r,o]),a]}function Ul(e){return t.createElement(We,Object.assign({size:"small",type:"primary"},e))}function Ql(e){return t.useMemo((()=>Object.assign({button:Ul},e)),[e])}var Zl=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var l;const{prefixCls:c,getPopupContainer:s,components:u,style:d,className:f,rootClassName:p,size:m,bordered:g,placement:h,placeholder:v,popupClassName:b,dropdownClassName:y,disabled:x,status:C,variant:S,onCalendarChange:w}=o,k=Jl(o,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:$,direction:E,getPopupContainer:N,[a]:I}=t.useContext(P),M=$("picker",c),{compactSize:O,compactItemClassnames:D}=te(M,E),R=t.useRef(null),[T,H]=ne(S,g),j=re(M),[B,z,K]=Hi(M,j);t.useImperativeHandle(i,(()=>R.current));const L=r||o.picker,A=$(),{onSelect:F,multiple:W}=k,_=F&&"time"===r&&!W,[V,Y]=Gl(o,M),q=Ql(u),X=ae((e=>{var t;return null!==(t=null!=m?m:O)&&void 0!==t?t:e})),G=t.useContext(ie),U=null!=x?x:G,Q=t.useContext(oe),{hasFeedback:Z,status:J,feedbackIcon:ee}=Q,se=t.createElement(t.Fragment,null,"time"===L?t.createElement(Fl,null):t.createElement(Kl,null),Z&&ee),[de]=_e("DatePicker",Ve),fe=Object.assign(Object.assign({},de),o.locale),[pe]=ce("DatePicker",null===(l=o.popupStyle)||void 0===l?void 0:l.zIndex);return B(t.createElement(Le,null,t.createElement(ai,Object.assign({ref:R,placeholder:Yl(fe,L,v),suffixIcon:se,dropdownAlign:Xl(E,h),prevIcon:t.createElement("span",{className:`${M}-prev-icon`}),nextIcon:t.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:r,onCalendarChange:(e,t,n)=>{null==w||w(e,t,n),_&&F(e)}},{showToday:!0},k,{locale:fe.lang,className:n({[`${M}-${X}`]:X,[`${M}-${T}`]:H},le(M,ue(J,C),Z),z,D,null==I?void 0:I.className,f,K,j,p),style:Object.assign(Object.assign({},null==I?void 0:I.style),d),prefixCls:M,getPopupContainer:s||N,generateConfig:e,components:q,direction:E,disabled:U,classNames:{popup:n(z,K,j,p,b||y)},styles:{popup:Object.assign(Object.assign({},o.popupStyle),{zIndex:pe})},allowClear:V,removeIcon:Y}))))}));return i}const o=r(),a=r("week","WeekPicker"),i=r("month","MonthPicker"),l=r("year","YearPicker"),c=r("quarter","QuarterPicker");return{DatePicker:o,WeekPicker:a,MonthPicker:i,YearPicker:l,TimePicker:r("time","TimePicker"),QuarterPicker:c}}(e),s=function(e){const r=t.forwardRef(((r,o)=>{var a;const{prefixCls:i,getPopupContainer:l,components:c,className:s,style:u,placement:d,size:f,disabled:p,bordered:m=!0,placeholder:g,popupClassName:h,dropdownClassName:v,status:b,rootClassName:y,variant:x}=r,C=Zl(r,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),S=t.useRef(null),{getPrefixCls:w,direction:k,getPopupContainer:$,rangePicker:E}=t.useContext(P),N=w("picker",i),{compactSize:I,compactItemClassnames:M}=te(N,k),{picker:O}=r,D=w(),[R,T]=ne(x,m),H=re(N),[j,B,z]=Hi(N,H),[K]=Gl(r,N),L=Ql(c),A=ae((e=>{var t;return null!==(t=null!=f?f:I)&&void 0!==t?t:e})),F=t.useContext(ie),W=null!=p?p:F,_=t.useContext(oe),{hasFeedback:V,status:Y,feedbackIcon:q}=_,X=t.createElement(t.Fragment,null,"time"===O?t.createElement(Fl,null):t.createElement(Kl,null),V&&q);t.useImperativeHandle(o,(()=>S.current));const[G]=_e("Calendar",Ve),U=Object.assign(Object.assign({},G),r.locale),[Q]=ce("DatePicker",null===(a=r.popupStyle)||void 0===a?void 0:a.zIndex);return j(t.createElement(Le,null,t.createElement(Ja,Object.assign({separator:t.createElement("span",{"aria-label":"to",className:`${N}-separator`},t.createElement(Vl,null)),disabled:W,ref:S,popupAlign:Xl(k,d),placeholder:ql(U,O,g),suffixIcon:X,prevIcon:t.createElement("span",{className:`${N}-prev-icon`}),nextIcon:t.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${D}-slide-up`},C,{className:n({[`${N}-${A}`]:A,[`${N}-${R}`]:T},le(N,ue(Y,b),V),B,M,s,null==E?void 0:E.className,z,H,y),style:Object.assign(Object.assign({},null==E?void 0:E.style),u),locale:U.lang,prefixCls:N,getPopupContainer:l||$,generateConfig:e,components:L,direction:k,classNames:{popup:n(B,h||v,z,H,y)},styles:{popup:Object.assign(Object.assign({},r.popupStyle),{zIndex:Q})},allowClear:K}))))}));return r}(e),u=r;return u.WeekPicker=o,u.MonthPicker=a,u.YearPicker=i,u.RangePicker=s,u.TimePicker=l,u.QuarterPicker=c,u}const tc=ec(co);function nc(e){const t=Xl(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const rc=J(tc,"picker",null,nc);tc._InternalPanelDoNotUseOrYouWillBeFired=rc;const oc=J(tc.RangePicker,"picker",null,nc);tc._InternalRangePanelDoNotUseOrYouWillBeFired=oc,tc.generatePicker=ec;const ac=tc;function ic(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function lc(e,t,n,r){var o=Ye.unstable_batchedUpdates?function(e){Ye.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const cc=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[t];void 0!==r&&(e[t]=r)}))}return e};const sc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var uc=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:sc}))}; -/**![double-left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI3Mi45IDUxMmwyNjUuNC0zMzkuMWM0LjEtNS4yLjQtMTIuOS02LjMtMTIuOWgtNzcuM2MtNC45IDAtOS42IDIuMy0xMi42IDYuMUwxODYuOCA0OTIuM2EzMS45OSAzMS45OSAwIDAwMCAzOS41bDI1NS4zIDMyNi4xYzMgMy45IDcuNyA2LjEgMTIuNiA2LjFINTMyYzYuNyAwIDEwLjQtNy43IDYuMy0xMi45TDI3Mi45IDUxMnptMzA0IDBsMjY1LjQtMzM5LjFjNC4xLTUuMi40LTEyLjktNi4zLTEyLjloLTc3LjNjLTQuOSAwLTkuNiAyLjMtMTIuNiA2LjFMNDkwLjggNDkyLjNhMzEuOTkgMzEuOTkgMCAwMDAgMzkuNWwyNTUuMyAzMjYuMWMzIDMuOSA3LjcgNi4xIDEyLjYgNi4xSDgzNmM2LjcgMCAxMC40LTcuNyA2LjMtMTIuOUw1NzYuOSA1MTJ6IiAvPjwvc3ZnPg==) */const dc=t.forwardRef(uc);const fc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var pc=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:fc}))}; -/**![double-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUzMy4yIDQ5Mi4zTDI3Ny45IDE2Ni4xYy0zLTMuOS03LjctNi4xLTEyLjYtNi4xSDE4OGMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlMNDQ3LjEgNTEyIDE4MS43IDg1MS4xQTcuOTggNy45OCAwIDAwMTg4IDg2NGg3Ny4zYzQuOSAwIDkuNi0yLjMgMTIuNi02LjFsMjU1LjMtMzI2LjFjOS4xLTExLjcgOS4xLTI3LjkgMC0zOS41em0zMDQgMEw1ODEuOSAxNjYuMWMtMy0zLjktNy43LTYuMS0xMi42LTYuMUg0OTJjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45TDc1MS4xIDUxMiA0ODUuNyA4NTEuMUE3Ljk4IDcuOTggMCAwMDQ5MiA4NjRoNzcuM2M0LjkgMCA5LjYtMi4zIDEyLjYtNi4xbDI1NS4zLTMyNi4xYzkuMS0xMS43IDkuMS0yNy45IDAtMzkuNXoiIC8+PC9zdmc+) */const mc=t.forwardRef(pc);var gc={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},hc=["10","20","50","100"],vc=function(e){var t=e.pageSizeOptions,n=void 0===t?hc:t,o=e.locale,l=e.changeSize,c=e.pageSize,s=e.goButton,u=e.quickGo,d=e.rootPrefixCls,f=e.selectComponentClass,p=e.selectPrefixCls,m=e.disabled,g=e.buildOptionText,h=r.useState(""),v=a(h,2),b=v[0],y=v[1],x=function(){return!b||Number.isNaN(b)?void 0:Number(b)},C="function"==typeof g?g:function(e){return"".concat(e," ").concat(o.items_per_page)},S=function(e){""!==b&&(e.keyCode!==i.ENTER&&"click"!==e.type||(y(""),null==u||u(x())))},w="".concat(d,"-options");if(!l&&!u)return null;var k=null,$=null,E=null;if(l&&f){var N=(n.some((function(e){return e.toString()===c.toString()}))?n:n.concat([c.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return r.createElement(f.Option,{key:t,value:e.toString()},C(e))}));k=r.createElement(f,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(c||n[0]).toString(),onChange:function(e){null==l||l(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":o.page_size,defaultOpen:!1},N)}return u&&(s&&(E="boolean"==typeof s?r.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:m,className:"".concat(w,"-quick-jumper-button")},o.jump_to_confirm):r.createElement("span",{onClick:S,onKeyUp:S},s)),$=r.createElement("div",{className:"".concat(w,"-quick-jumper")},o.jump_to,r.createElement("input",{disabled:m,type:"text",value:b,onChange:function(e){y(e.target.value)},onKeyUp:S,onBlur:function(e){s||""===b||(y(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(d,"-item"))>=0)||null==u||u(x()))},"aria-label":o.page}),o.page,E)),r.createElement("li",{className:w},k,$)},bc=function(e){var t,o=e.rootPrefixCls,a=e.page,i=e.active,l=e.className,c=e.showTitle,s=e.onClick,u=e.onKeyPress,d=e.itemRender,p="".concat(o,"-item"),m=n(p,"".concat(p,"-").concat(a),(f(t={},"".concat(p,"-active"),i),f(t,"".concat(p,"-disabled"),!a),t),l),g=d(a,"page",r.createElement("a",{rel:"nofollow"},a));return g?r.createElement("li",{title:c?String(a):null,className:m,onClick:function(){s(a)},onKeyDown:function(e){u(e,s,a)},tabIndex:0},g):null},yc=function(e,t,n){return n};function xc(){}function Cc(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Sc(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}var wc=function(e){var o,l=e.prefixCls,s=void 0===l?"rc-pagination":l,d=e.selectPrefixCls,m=void 0===d?"rc-select":d,g=e.className,h=e.selectComponentClass,v=e.current,b=e.defaultCurrent,y=void 0===b?1:b,x=e.total,C=void 0===x?0:x,w=e.pageSize,k=e.defaultPageSize,$=void 0===k?10:k,E=e.onChange,N=void 0===E?xc:E,I=e.hideOnSinglePage,M=e.showPrevNextJumpers,O=void 0===M||M,D=e.showQuickJumper,R=e.showLessItems,P=e.showTitle,T=void 0===P||P,H=e.onShowSizeChange,j=void 0===H?xc:H,B=e.locale,z=void 0===B?gc:B,K=e.style,L=e.totalBoundaryShowSizeChanger,A=void 0===L?50:L,F=e.disabled,W=e.simple,_=e.showTotal,V=e.showSizeChanger,Y=e.pageSizeOptions,q=e.itemRender,X=void 0===q?yc:q,G=e.jumpPrevIcon,U=e.jumpNextIcon,Q=e.prevIcon,Z=e.nextIcon,J=r.useRef(null),ee=S(10,{value:w,defaultValue:$}),te=a(ee,2),ne=te[0],re=te[1],oe=S(1,{value:v,defaultValue:y,postState:function(e){return Math.max(1,Math.min(e,Sc(void 0,ne,C)))}}),ae=a(oe,2),ie=ae[0],le=ae[1],ce=r.useState(ie),se=a(ce,2),ue=se[0],de=se[1];t.useEffect((function(){de(ie)}),[ie]);var fe=Math.max(1,ie-(R?3:5)),pe=Math.min(Sc(void 0,ne,C),ie+(R?3:5));function me(t,n){var o=t||r.createElement("button",{type:"button","aria-label":n,className:"".concat(s,"-item-link")});return"function"==typeof t&&(o=r.createElement(t,c({},e))),o}function ge(e){var t=e.target.value,n=Sc(void 0,ne,C);return""===t?t:Number.isNaN(Number(t))?ue:t>=n?n:Number(t)}var he=C>ne&&D;function ve(e){var t=ge(e);switch(t!==ue&&de(t),e.keyCode){case i.ENTER:be(t);break;case i.UP:be(t-1);break;case i.DOWN:be(t+1)}}function be(e){if(function(e){return Cc(e)&&e!==ie&&Cc(C)&&C>0}(e)&&!F){var t=Sc(void 0,ne,C),n=e;return e>t?n=t:e<1&&(n=1),n!==ue&&de(n),le(n),null==N||N(n,ne),n}return ie}var ye=ie>1,xe=ieA;function Se(){ye&&be(ie-1)}function we(){xe&&be(ie+1)}function ke(){be(fe)}function $e(){be(pe)}function Ee(e,t){if("Enter"===e.key||e.charCode===i.ENTER||e.keyCode===i.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;oC?C:ie*ne])),De=null,Re=Sc(void 0,ne,C);if(I&&C<=ne)return null;var Pe=[],Te={rootPrefixCls:s,onClick:be,onKeyPress:Ee,showTitle:T,itemRender:X,page:-1},He=ie-1>0?ie-1:0,je=ie+1=2*Le&&3!==ie&&(Pe[0]=r.cloneElement(Pe[0],{className:n("".concat(s,"-item-after-jump-prev"),Pe[0].props.className)}),Pe.unshift(Ie)),Re-ie>=2*Le&&ie!==Re-2){var Ge=Pe[Pe.length-1];Pe[Pe.length-1]=r.cloneElement(Ge,{className:n("".concat(s,"-item-before-jump-next"),Ge.props.className)}),Pe.push(De)}1!==Ye&&Pe.unshift(r.createElement(bc,p({},Te,{key:1,page:1}))),qe!==Re&&Pe.push(r.createElement(bc,p({},Te,{key:Re,page:Re})))}var Ue=function(e){var t=X(e,"prev",me(Q,"prev page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!ye}):t}(He);if(Ue){var Qe=!ye||!Re;Ue=r.createElement("li",{title:T?z.prev_page:null,onClick:Se,tabIndex:Qe?null:0,onKeyDown:function(e){Ee(e,Se)},className:n("".concat(s,"-prev"),f({},"".concat(s,"-disabled"),Qe)),"aria-disabled":Qe},Ue)}var Ze,Je,et=function(e){var t=X(e,"next",me(Z,"next page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!xe}):t}(je);et&&(W?(Ze=!xe,Je=ye?0:null):Je=(Ze=!xe||!Re)?null:0,et=r.createElement("li",{title:T?z.next_page:null,onClick:we,tabIndex:Je,onKeyDown:function(e){Ee(e,we)},className:n("".concat(s,"-next"),f({},"".concat(s,"-disabled"),Ze)),"aria-disabled":Ze},et));var tt=n(s,g,(f(o={},"".concat(s,"-simple"),W),f(o,"".concat(s,"-disabled"),F),o));return r.createElement("ul",p({className:tt,style:K,ref:J},Me),Oe,Ue,W?Ke:Pe,et,r.createElement(vc,{locale:z,rootPrefixCls:s,disabled:F,selectComponentClass:h,selectPrefixCls:m,changeSize:Ce?function(e){var t=Sc(e,ne,C),n=ie>t&&0!==t?t:ie;re(e),de(n),null==j||j(ie,e),le(n),null==N||N(n,e)}:null,pageSize:ne,pageSizeOptions:Y,quickGo:he?be:null,goButton:ze}))};const kc=e=>t.createElement(Or,Object.assign({},e,{showSearch:!0,size:"small"})),$c=e=>t.createElement(Or,Object.assign({},e,{showSearch:!0,size:"middle"}));kc.Option=Or.Option,$c.Option=Or.Option;const Ec=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Nc=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:_(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:_(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:_(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM),input:Object.assign(Object.assign({},Xe(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Ic=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${_(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${_(e.inputOutlineOffset)} 0 ${_(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Mc=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${_(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${_(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:_(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},je(e)),Ge(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Ue(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Oc=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:_(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${_(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${_(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Dc=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:_(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Oc(e)),Mc(e)),Ic(e)),Nc(e)),Ec(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Rc=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},qe(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Se(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Se(e))}}}},Pc=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ee(e)),Tc=e=>V(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Oe(e)),Hc=Y("Pagination",(e=>{const t=Tc(e);return[Dc(t),Rc(t)]}),Pc),jc=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Bc=Qe(["Pagination","bordered"],(e=>{const t=Tc(e);return[jc(t)]}),Pc);var zc=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,selectPrefixCls:o,className:a,rootClassName:i,style:l,size:c,locale:s,selectComponentClass:u,responsive:d,showSizeChanger:f}=e,p=zc(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=Ze(d),[,g]=ee(),{getPrefixCls:h,direction:v,pagination:b={}}=t.useContext(P),y=h("pagination",r),[x,C,S]=Hc(y),w=null!=f?f:b.showSizeChanger,k=t.useMemo((()=>{const e=t.createElement("span",{className:`${y}-item-ellipsis`},"•••");return{prevIcon:t.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?t.createElement(et,null):t.createElement(tt,null)),nextIcon:t.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?t.createElement(tt,null):t.createElement(et,null)),jumpPrevIcon:t.createElement("a",{className:`${y}-item-link`},t.createElement("div",{className:`${y}-item-container`},"rtl"===v?t.createElement(mc,{className:`${y}-item-link-icon`}):t.createElement(dc,{className:`${y}-item-link-icon`}),e)),jumpNextIcon:t.createElement("a",{className:`${y}-item-link`},t.createElement("div",{className:`${y}-item-container`},"rtl"===v?t.createElement(dc,{className:`${y}-item-link-icon`}):t.createElement(mc,{className:`${y}-item-link-icon`}),e))}}),[v,y]),[$]=_e("Pagination",Je),E=Object.assign(Object.assign({},$),s),N=ae(c),I="small"===N||!(!m||N||!d),M=h("select",o),O=n({[`${y}-mini`]:I,[`${y}-rtl`]:"rtl"===v,[`${y}-bordered`]:g.wireframe},null==b?void 0:b.className,a,i,C,S),D=Object.assign(Object.assign({},null==b?void 0:b.style),l);return x(t.createElement(t.Fragment,null,g.wireframe&&t.createElement(Bc,{prefixCls:y}),t.createElement(wc,Object.assign({},k,p,{style:D,prefixCls:y,selectPrefixCls:M,className:O,selectComponentClass:u||(I?kc:$c),locale:E,showSizeChanger:w}))))},Lc=Y("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:l,marginXS:c,fontSize:s,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:s},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:s,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});var Ac=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,okButtonProps:o,cancelButtonProps:a,title:i,description:l,cancelText:c,okText:s,okType:u="primary",icon:d=t.createElement(at,null),showCancel:f=!0,close:p,onConfirm:m,onCancel:g,onPopupClick:h}=e,{getPrefixCls:v}=t.useContext(P),[b]=_e("Popconfirm",nt.Popconfirm),y=Dr(i),x=Dr(l);return t.createElement("div",{className:`${r}-inner-content`,onClick:h},t.createElement("div",{className:`${r}-message`},d&&t.createElement("span",{className:`${r}-message-icon`},d),t.createElement("div",{className:`${r}-message-text`},y&&t.createElement("div",{className:n(`${r}-title`)},y),x&&t.createElement("div",{className:`${r}-description`},x))),t.createElement("div",{className:`${r}-buttons`},f&&t.createElement(We,Object.assign({onClick:g,size:"small"},a),c||(null==b?void 0:b.cancelText)),t.createElement(rt,{buttonProps:Object.assign(Object.assign({size:"small"},ot(u)),o),actionFn:m,close:p,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(null==b?void 0:b.okText))))},Wc=e=>{const{prefixCls:r,placement:o,className:a,style:i}=e,l=Ac(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=t.useContext(P),s=c("popconfirm",r),[u]=Lc(s);return u(t.createElement(Br,{placement:o,className:n(s,a),style:i,content:t.createElement(Fc,Object.assign({prefixCls:s},l))}))};var _c=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o,a;const{prefixCls:i,placement:l="top",trigger:c="click",okType:s="primary",icon:u=t.createElement(at,null),children:d,overlayClassName:f,onOpenChange:p,onVisibleChange:m}=e,g=_c(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=t.useContext(P),[v,b]=S(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(a=e.defaultOpen)&&void 0!==a?a:e.defaultVisible}),y=(e,t)=>{b(e,!0),null==m||m(e),null==p||p(e,t)},x=h("popconfirm",i),C=n(x,f),[w]=Lc(x);return w(t.createElement(Fr,Object.assign({},O(g,["title"]),{trigger:c,placement:l,onOpenChange:(t,n)=>{const{disabled:r=!1}=e;r||y(t,n)},open:v,ref:r,overlayClassName:C,content:t.createElement(Fc,Object.assign({okType:s,icon:u},e,{prefixCls:x,close:e=>{y(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(globalThis,t)},onCancel:t=>{var n;y(!1,t),null===(n=e.onCancel)||void 0===n||n.call(globalThis,t)}})),"data-popover-inject":!0}),d))})),Yc=Vc;Yc._InternalPanelDoNotUseOrYouWillBeFired=Wc;const qc=Yc;var Xc={},Gc="rc-table-internal-hook";function Uc(e){var n=t.createContext(void 0);return{Context:n,Provider:function(e){var r=e.value,o=e.children,i=t.useRef(r);i.current=r;var l=t.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),c=a(l,1)[0];return C((function(){I.unstable_batchedUpdates((function(){c.listeners.forEach((function(e){e(r)}))}))}),[r]),t.createElement(n.Provider,{value:c},o)},defaultValue:e}}function Qc(e,n){var r=N("function"==typeof n?n:function(e){if(void 0===n)return e;if(!Array.isArray(n))return e[n];var t={};return n.forEach((function(n){t[n]=e[n]})),t}),o=t.useContext(null==e?void 0:e.Context),i=o||{},l=i.listeners,c=i.getValue,s=t.useRef();s.current=r(o?c():null==e?void 0:e.defaultValue);var u=t.useState({}),d=a(u,2)[1];return C((function(){if(o)return l.add(e),function(){l.delete(e)};function e(e){var t=r(e);it(s.current,t,!0)||d({})}}),[o]),s.current}var Zc=function(){var e=t.createContext(null);function n(){return t.useContext(e)}return{makeImmutable:function(r,o){var a=lt(r),i=function(i,l){var c=a?{ref:l}:{},s=t.useRef(0),u=t.useRef(i);return null!==n()?t.createElement(r,p({},i,c)):(o&&!o(u.current,i)||(s.current+=1),u.current=i,t.createElement(e.Provider,{value:s.current},t.createElement(r,p({},i,c))))};return a?t.forwardRef(i):i},responseImmutable:function(e,r){var o=lt(e),a=function(r,a){var i=o?{ref:a}:{};return n(),t.createElement(e,p({},r,i))};return o?t.memo(t.forwardRef(a),r):t.memo(a,r)},useImmutableMark:n}}(),Jc=Zc.makeImmutable,es=Zc.responseImmutable,ts=Zc.useImmutableMark,ns=Uc(),rs=t.createContext({renderWithProps:!1}),os="RC_TABLE_KEY";function as(e){var t=[],n={};return e.forEach((function(e){for(var r,o=e||{},a=o.key,i=o.dataIndex,l=a||(r=i,null==r?[]:Array.isArray(r)?r:[r]).join("-")||os;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function is(e){return null!=e}function ls(e,n,r,i,l,c){var s=t.useContext(rs),u=ts();return M((function(){if(is(i))return[i];var a,c=null==n||""===n?[]:Array.isArray(n)?n:[n],u=ct(e,c),d=u,f=void 0;if(l){var p=l(u,e,r);!(a=p)||"object"!==o(a)||Array.isArray(a)||t.isValidElement(a)?d=p:(d=p.children,f=p.props,s.renderWithProps=!0)}return[d,f]}),[u,e,i,n,l,r],(function(e,t){if(c){var n=a(e,2)[1],r=a(t,2)[1];return c(r,n)}return!!s.renderWithProps||!it(e,t,!0)}))}function cs(e){var r,i,l,s,u,d,m,g,h=e.component,v=e.children,b=e.ellipsis,y=e.scope,x=e.prefixCls,C=e.className,S=e.align,w=e.record,k=e.render,$=e.dataIndex,E=e.renderIndex,I=e.shouldCellUpdate,M=e.index,O=e.rowType,D=e.colSpan,R=e.rowSpan,P=e.fixLeft,T=e.fixRight,H=e.firstFixLeft,j=e.lastFixLeft,B=e.firstFixRight,z=e.lastFixRight,K=e.appendNode,L=e.additionalProps,A=void 0===L?{}:L,F=e.isSticky,W="".concat(x,"-cell"),_=Qc(ns,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=_.supportSticky,Y=_.allColumnsFixedLeft,q=_.rowHoverable,X=ls(w,$,E,v,k,I),G=a(X,2),U=G[0],Q=G[1],Z={},J="number"==typeof P&&V,ee="number"==typeof T&&V;J&&(Z.position="sticky",Z.left=P),ee&&(Z.position="sticky",Z.right=T);var te=null!==(r=null!==(i=null!==(l=null==Q?void 0:Q.colSpan)&&void 0!==l?l:A.colSpan)&&void 0!==i?i:D)&&void 0!==r?r:1,ne=null!==(s=null!==(u=null!==(d=null==Q?void 0:Q.rowSpan)&&void 0!==d?d:A.rowSpan)&&void 0!==u?u:R)&&void 0!==s?s:1,re=function(e,t){return Qc(ns,(function(n){var r,o,a,i;return[(r=e,o=t||1,a=n.hoverStartRow,i=n.hoverEndRow,r<=i&&r+o-1>=a),n.onHover]}))}(M,ne),oe=a(re,2),ae=oe[0],ie=oe[1],le=N((function(e){var t;w&&ie(M,M+ne-1),null==A||null===(t=A.onMouseEnter)||void 0===t||t.call(A,e)})),ce=N((function(e){var t;w&&ie(-1,-1),null==A||null===(t=A.onMouseLeave)||void 0===t||t.call(A,e)}));if(0===te||0===ne)return null;var se=null!==(m=A.title)&&void 0!==m?m:function(e){var n,r=e.ellipsis,o=e.rowType,a=e.children,i=!0===r?{showTitle:!0}:r;return i&&(i.showTitle||"header"===o)&&("string"==typeof a||"number"==typeof a?n=a.toString():t.isValidElement(a)&&"string"==typeof a.props.children&&(n=a.props.children)),n}({rowType:O,ellipsis:b,children:U}),ue=n(W,C,(f(f(f(f(f(f(f(f(f(f(g={},"".concat(W,"-fix-left"),J&&V),"".concat(W,"-fix-left-first"),H&&V),"".concat(W,"-fix-left-last"),j&&V),"".concat(W,"-fix-left-all"),j&&Y&&V),"".concat(W,"-fix-right"),ee&&V),"".concat(W,"-fix-right-first"),B&&V),"".concat(W,"-fix-right-last"),z&&V),"".concat(W,"-ellipsis"),b),"".concat(W,"-with-append"),K),"".concat(W,"-fix-sticky"),(J||ee)&&F&&V),f(g,"".concat(W,"-row-hover"),!Q&&ae)),A.className,null==Q?void 0:Q.className),de={};S&&(de.textAlign=S);var fe=c(c(c(c({},Z),A.style),de),null==Q?void 0:Q.style),pe=U;return"object"!==o(pe)||Array.isArray(pe)||t.isValidElement(pe)||(pe=null),b&&(j||B)&&(pe=t.createElement("span",{className:"".concat(W,"-content")},pe)),t.createElement(h,p({},Q,A,{className:ue,style:fe,title:se,scope:y,onMouseEnter:q?le:void 0,onMouseLeave:q?ce:void 0,colSpan:1!==te?te:null,rowSpan:1!==ne?ne:null}),K,pe)}const ss=t.memo(cs);function us(e,t,n,r,o){var a,i,l=n[e]||{},c=n[t]||{};"left"===l.fixed?a=r.left["rtl"===o?t:e]:"right"===c.fixed&&(i=r.right["rtl"===o?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],m=n[e-1],g=p&&void 0===p.fixed||m&&void 0===m.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===o){if(void 0!==a)f=!(m&&"left"===m.fixed)&&g;else if(void 0!==i){d=!(p&&"right"===p.fixed)&&g}}else if(void 0!==a){s=!(p&&"left"===p.fixed)&&g}else if(void 0!==i){u=!(m&&"right"===m.fixed)&&g}return{fixLeft:a,fixRight:i,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var ds=t.createContext({});var fs=["children"];function ps(e){return e.children}ps.Row=function(e){var n=e.children,r=m(e,fs);return t.createElement("tr",r,n)},ps.Cell=function(e){var n=e.className,r=e.index,o=e.children,a=e.colSpan,i=void 0===a?1:a,l=e.rowSpan,c=e.align,s=Qc(ns,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,f=t.useContext(ds),m=f.scrollColumnIndex,g=f.stickyOffsets,h=r+i-1+1===m?i+1:i,v=us(r,r+h-1,f.flattenColumns,g,d);return t.createElement(ss,p({className:n,index:r,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:h,rowSpan:l,render:function(){return o}},v))};const ms=es((function(e){var n=e.children,r=e.stickyOffsets,o=e.flattenColumns,a=Qc(ns,"prefixCls"),i=o.length-1,l=o[i],c=t.useMemo((function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:null!=l&&l.scrollbar?i:null}}),[l,o,i,r]);return t.createElement(ds.Provider,{value:c},t.createElement("tfoot",{className:"".concat(a,"-summary")},n))}));var gs=ps;function hs(e,t,n,r,o,a,i){e.push({record:t,indent:n,index:i});var l=a(t),c=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s1?n-1:0),o=1;o=1?E:""),style:c(c({},o),null==C?void 0:C.style)}),b.map((function(e,n){var r=e.render,o=e.dataIndex,c=e.className,s=xs(h,e,n,d,i),u=s.key,f=s.fixedInfo,b=s.appendCellNode,y=s.additionalCellProps;return t.createElement(ss,p({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?g:m,prefixCls:v,key:u,record:a,index:i,renderIndex:l,dataIndex:o,render:r,shouldCellUpdate:e.shouldCellUpdate},f,{appendNode:b,additionalProps:y}))})));if(w&&(k.current||S)){var I=x(a,i,d+1,S);$=t.createElement(ys,{expanded:S,className:n("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(d+1),E),prefixCls:v,component:f,cellComponent:m,colSpan:b.length,isEmpty:!1},I)}return t.createElement(t.Fragment,null,N,$)}));function Ss(e){var n=e.columnKey,r=e.onColumnResize,o=t.useRef();return t.useEffect((function(){o.current&&r(n,o.current.offsetWidth)}),[]),t.createElement(w,{data:n},t.createElement("td",{ref:o,style:{padding:0,border:0,height:0}},t.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function ws(e){var n=e.prefixCls,r=e.columnsKey,o=e.onColumnResize;return t.createElement("tr",{"aria-hidden":"true",className:"".concat(n,"-measure-row"),style:{height:0,fontSize:0}},t.createElement(w.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;o(t,n.offsetWidth)}))}},r.map((function(e){return t.createElement(Ss,{key:e,columnKey:e,onColumnResize:o})}))))}const ks=es((function(e){var n,r=e.data,o=e.measureColumnWidth,a=Qc(ns,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=a.prefixCls,l=a.getComponent,c=a.onColumnResize,s=a.flattenColumns,u=a.getRowKey,d=a.expandedKeys,f=a.childrenColumnName,p=a.emptyNode,m=vs(r,f,d,u),g=t.useRef({renderWithProps:!1}),h=l(["body","wrapper"],"tbody"),v=l(["body","row"],"tr"),b=l(["body","cell"],"td"),y=l(["body","cell"],"th");n=r.length?m.map((function(e,n){var r=e.record,o=e.indent,a=e.index,i=u(r,n);return t.createElement(Cs,{key:i,rowKey:i,record:r,index:n,renderIndex:a,rowComponent:v,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:o})})):t.createElement(ys,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:v,cellComponent:b,colSpan:s.length,isEmpty:!0},p);var x=as(s);return t.createElement(rs.Provider,{value:g.current},t.createElement(h,{className:"".concat(i,"-tbody")},o&&t.createElement(ws,{prefixCls:i,columnsKey:x,onColumnResize:c}),n))}));var $s=["expandable"],Es="RC_TABLE_INTERNAL_COL_DEFINE";var Ns=["columnType"];function Is(e){for(var n=e.colWidths,r=e.columns,o=[],a=!1,i=(e.columCount||r.length)-1;i>=0;i-=1){var l=n[i],c=r&&r[i],s=c&&c[Es];if(l||s||a){var u=s||{};u.columnType;var d=m(u,Ns);o.unshift(t.createElement("col",p({key:i,style:{width:l}},d))),a=!0}}return t.createElement("colgroup",null,o)}var Ms=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Os=t.forwardRef((function(e,r){var o=e.className,a=e.noData,i=e.columns,l=e.flattenColumns,s=e.colWidths,u=e.columCount,d=e.stickyOffsets,p=e.direction,g=e.fixHeader,h=e.stickyTopOffset,v=e.stickyBottomOffset,y=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,S=e.children,w=m(e,Ms),k=Qc(ns,["prefixCls","scrollbarSize","isSticky","getComponent"]),$=k.prefixCls,E=k.scrollbarSize,N=k.isSticky,I=(0,k.getComponent)(["header","table"],"table"),M=N&&!g?0:E,O=t.useRef(null),D=t.useCallback((function(e){st(r,e),st(O,e)}),[]);t.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(x({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var R=t.useMemo((function(){return l.every((function(e){return e.width}))}),[l]),P=l[l.length-1],T={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($,"-cell-scrollbar")}}},H=t.useMemo((function(){return M?[].concat(b(i),[T]):i}),[M,i]),j=t.useMemo((function(){return M?[].concat(b(l),[T]):l}),[M,l]),B=t.useMemo((function(){var e=d.right,t=d.left;return c(c({},d),{},{left:"rtl"===p?[].concat(b(t.map((function(e){return e+M}))),[0]):t,right:"rtl"===p?e:[].concat(b(e.map((function(e){return e+M}))),[0]),isSticky:N})}),[M,d,N]),z=function(e,n){return t.useMemo((function(){for(var t=[],r=0;r1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:l,prefixCls:d,key:m[n]},c,{additionalProps:r,rowType:"header"}))})))};const Ps=es((function(e){var n=e.stickyOffsets,r=e.columns,o=e.flattenColumns,a=e.onHeaderRow,i=Qc(ns,["prefixCls","getComponent"]),l=i.prefixCls,c=i.getComponent,s=t.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var a=r;return n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:a},i=1,l=n.children;return l&&l.length>0&&(i=e(l,a,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(i=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,t[o].push(r),a+=i,i}))}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var Hs=["children"],js=["fixed"];function Bs(e){return R(e).filter((function(e){return t.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=m(n,Hs),a=c({key:t},o);return r&&(a.children=Bs(r)),a}))}function zs(e){return e.filter((function(e){return e&&"object"===o(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?c(c({},e),{},{children:zs(t)}):e}))}function Ks(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===o(e)})).reduce((function(e,n,r){var o=n.fixed,a=!0===o?"left":o,i="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat(b(e),b(Ks(l,i).map((function(e){return c({fixed:a},e)})))):[].concat(b(e),[c(c({key:i},n),{},{fixed:a})])}),[])}function Ls(e,n){var r=e.prefixCls,o=e.columns,i=e.children,l=e.expandable,s=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,p=e.onTriggerExpand,g=e.expandIcon,h=e.rowExpandable,v=e.expandIconColumnIndex,b=e.direction,y=e.expandRowByClick,x=e.columnWidth,C=e.fixed,S=e.scrollWidth,w=e.clientWidth,k=t.useMemo((function(){return zs((o||Bs(i)||[]).slice())}),[o,i]),$=t.useMemo((function(){if(l){var e=k.slice();if(!e.includes(Xc)){var n=v||0;n>=0&&e.splice(n,0,Xc)}var o=e.indexOf(Xc);e=e.filter((function(e,t){return e!==Xc||t===o}));var a,i=k[o];a="left"!==C&&!C||v?"right"!==C&&!C||v!==k.length?i?i.fixed:null:"right":"left";var c=f(f(f(f(f(f({},Es,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",a),"className","".concat(r,"-row-expand-icon-cell")),"width",x),"render",(function(e,n,o){var a=d(n,o),i=s.has(a),l=!h||h(n),c=g({prefixCls:r,expanded:i,expandable:l,record:n,onExpand:p});return y?t.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c}));return e.map((function(e){return e===Xc?c:e}))}return k.filter((function(e){return e!==Xc}))}),[l,k,d,s,g,b]),E=t.useMemo((function(){var e=$;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,$,b]),N=t.useMemo((function(){return"rtl"===b?function(e){return e.map((function(e){var t=e.fixed,n=m(e,js),r=t;return"left"===t?r="right":"right"===t&&(r="left"),c({fixed:r},n)}))}(Ks(E)):Ks(E)}),[E,b,S]),I=t.useMemo((function(){for(var e=-1,t=N.length-1;t>=0;t-=1){var n=N[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=N[r].fixed;if("left"!==o&&!0!==o)return!0}var a=N.findIndex((function(e){return"right"===e.fixed}));if(a>=0)for(var i=a;i0){var t=0,o=0;e.forEach((function(e){var r=Ts(n,e.width);r?t+=r:o+=1}));var a=Math.max(n,r),i=Math.max(a-t,o),l=o,s=i/o,u=0,d=e.map((function(e){var t=c({},e),r=Ts(n,t.width);if(r)t.width=r;else{var o=Math.floor(s);t.width=1===l?i:o,i-=o,l-=1}return u+=t.width,t}));if(u=h&&(r=h-v),u({scrollLeft:r/h*(g+2)}),w.current.x=e.pageX}else E&&N(!1)},D=function(){I.current=e((function(){if(s.current){var e=ic(s.current).top,t=e+s.current.offsetHeight,n=p===window?document.documentElement.scrollTop+window.innerHeight:ic(p).top+p.clientHeight;t-ut()<=n||e>=n-d?S((function(e){return c(c({},e),{},{isHiddenScrollBar:!0})})):S((function(e){return c(c({},e),{},{isHiddenScrollBar:!1})}))}}))},R=function(e){S((function(t){return c(c({},t),{},{scrollLeft:e/g*h||0})}))};return t.useImperativeHandle(o,(function(){return{setScrollLeft:R,checkScrollBarVisible:D}})),t.useEffect((function(){var e=lc(document.body,"mouseup",M,!1),t=lc(document.body,"mousemove",O,!1);return D(),function(){e.remove(),t.remove()}}),[v,E]),t.useEffect((function(){var e=lc(p,"scroll",D,!1),t=lc(window,"resize",D,!1);return function(){e.remove(),t.remove()}}),[p]),t.useEffect((function(){C.isHiddenScrollBar||S((function(e){var t=s.current;return t?c(c({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[C.isHiddenScrollBar]),g<=h||!v||C.isHiddenScrollBar?null:t.createElement("div",{style:{height:ut(),width:h,bottom:d},className:"".concat(m,"-sticky-scroll")},t.createElement("div",{onMouseDown:function(e){e.persist(),w.current.delta=e.pageX-C.scrollLeft,w.current.x=0,N(!0),e.preventDefault()},ref:b,className:n("".concat(m,"-sticky-scroll-bar"),f({},"".concat(m,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))};const qs=t.forwardRef(Ys);var Xs="rc-table",Gs=[],Us={};function Qs(){return"No Data"}function Zs(e,r){var i=c({rowKey:"key",prefixCls:Xs,emptyText:Qs},e),l=i.prefixCls,s=i.className,d=i.rowClassName,m=i.style,g=i.data,h=i.rowKey,v=i.scroll,b=i.tableLayout,y=i.direction,x=i.title,C=i.footer,S=i.summary,k=i.caption,$=i.id,E=i.showHeader,I=i.components,O=i.emptyText,D=i.onRow,R=i.onHeaderRow,P=i.onScroll,T=i.internalHooks,H=i.transformColumns,j=i.internalRefs,B=i.tailor,z=i.getContainerWidth,K=i.sticky,L=i.rowHoverable,A=void 0===L||L,F=g||Gs,W=!!F.length,_=T===Gc,V=t.useCallback((function(e,t){return ct(I,e)||t}),[I]),Y=t.useMemo((function(){return"function"==typeof h?h:function(e){return e&&e[h]}}),[h]),q=V(["body"]),X=function(){var e=t.useState(-1),n=a(e,2),r=n[0],o=n[1],i=t.useState(-1),l=a(i,2),c=l[0],s=l[1];return[r,c,t.useCallback((function(e,t){o(e),s(t)}),[])]}(),G=a(X,3),U=G[0],Q=G[1],Z=G[2],J=Fs(i,F,Y),ee=a(J,6),te=ee[0],ne=ee[1],re=ee[2],oe=ee[3],ae=ee[4],ie=ee[5],le=null==v?void 0:v.x,ce=t.useState(0),se=a(ce,2),ue=se[0],de=se[1],fe=Ls(c(c(c({},i),te),{},{expandable:!!te.expandedRowRender,columnTitle:te.columnTitle,expandedKeys:re,getRowKey:Y,onTriggerExpand:ie,expandIcon:oe,expandIconColumnIndex:te.expandIconColumnIndex,direction:y,scrollWidth:_&&B&&"number"==typeof le?le:null,clientWidth:ue}),_?H:null),pe=a(fe,4),me=pe[0],ge=pe[1],he=pe[2],ve=pe[3],be=null!=he?he:le,ye=t.useMemo((function(){return{columns:me,flattenColumns:ge}}),[me,ge]),xe=t.useRef(),Se=t.useRef(),we=t.useRef(),ke=t.useRef();t.useImperativeHandle(r,(function(){return{nativeElement:xe.current,scrollTo:function(e){var t;if(we.current instanceof HTMLElement){var n=e.index,r=e.top,o=e.key;if(r){var a;null===(a=we.current)||void 0===a||a.scrollTo({top:r})}else{var i,l=null!=o?o:Y(F[n]);null===(i=we.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===i||i.scrollIntoView()}}else null!==(t=we.current)&&void 0!==t&&t.scrollTo&&we.current.scrollTo(e)}}}));var $e,Ee,Ne,Ie=t.useRef(),Me=t.useState(!1),Oe=a(Me,2),De=Oe[0],Re=Oe[1],Pe=t.useState(!1),Te=a(Pe,2),He=Te[0],je=Te[1],Be=Ws(new Map),ze=a(Be,2),Ke=ze[0],Le=ze[1],Ae=as(ge).map((function(e){return Ke.get(e)})),Fe=t.useMemo((function(){return Ae}),[Ae.join("_")]),We=function(e,n,r){var o=t.useMemo((function(){var t=n.length,o=function(t,r,o){for(var a=[],i=0,l=t;l!==r;l+=o)a.push(i),n[l].fixed&&(i+=e[l]||0);return a},a=o(0,t,1),i=o(t-1,-1,-1).reverse();return"rtl"===r?{left:i,right:a}:{left:a,right:i}}),[e,n,r]);return o}(Fe,ge,y),_e=v&&is(v.y),Ve=v&&is(be)||Boolean(te.fixed),Ye=Ve&&ge.some((function(e){return e.fixed})),qe=t.useRef(),Xe=function(e,n){var r="object"===o(e)?e:{},a=r.offsetHeader,i=void 0===a?0:a,l=r.offsetSummary,c=void 0===l?0:l,s=r.offsetScroll,u=void 0===s?0:s,d=r.getContainer,f=(void 0===d?function(){return _s}:d)()||_s;return t.useMemo((function(){var t=!!e;return{isSticky:t,stickyClassName:t?"".concat(n,"-sticky-holder"):"",offsetHeader:i,offsetSummary:c,offsetScroll:u,container:f}}),[u,i,c,n,f])}(K,l),Ge=Xe.isSticky,Ue=Xe.offsetHeader,Qe=Xe.offsetSummary,Ze=Xe.offsetScroll,Je=Xe.stickyClassName,et=Xe.container,tt=t.useMemo((function(){return null==S?void 0:S(F)}),[S,F]),nt=(_e||Ge)&&t.isValidElement(tt)&&tt.type===ps&&tt.props.fixed;_e&&(Ee={overflowY:"scroll",maxHeight:v.y}),Ve&&($e={overflowX:"auto"},_e||(Ee={overflowY:"hidden"}),Ne={width:!0===be?"auto":be,minWidth:"100%"});var rt=t.useCallback((function(e,t){Ce(xe.current)&&Le((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),ot=function(e){var n=t.useRef(e||null),r=t.useRef();function o(){window.clearTimeout(r.current)}return t.useEffect((function(){return o}),[]),[function(e){n.current=e,o(),r.current=window.setTimeout((function(){n.current=null,r.current=void 0}),100)},function(){return n.current}]}(null),at=a(ot,2),lt=at[0],st=at[1];function ut(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var ft=N((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===y,a="number"==typeof r?r:n.scrollLeft,i=n||Us;st()&&st()!==i||(lt(i),ut(a,Se.current),ut(a,we.current),ut(a,Ie.current),ut(a,null===(t=qe.current)||void 0===t?void 0:t.setScrollLeft));var l=n||Se.current;if(l){var c=l.scrollWidth,s=l.clientWidth;if(c===s)return Re(!1),void je(!1);o?(Re(-a0)):(Re(a>0),je(a1?x-R:0,T=c(c(c({},N),f),{},{flex:"0 0 ".concat(R,"px"),width:"".concat(R,"px"),marginRight:P,pointerEvents:"auto"}),H=t.useMemo((function(){return g?D<=1:0===M||0===D||D>1}),[D,M,g]);H?T.visibility="hidden":g&&(T.height=null==h?void 0:h(D));var j=H?function(){return null}:v,B={};return 0!==D&&0!==M||(B.rowSpan=1,B.colSpan=1),t.createElement(ss,p({className:n(y,m),ellipsis:o.ellipsis,align:o.align,scope:o.rowScope,component:s,prefixCls:r.prefixCls,key:w,record:d,index:l,renderIndex:u,dataIndex:b,render:j,shouldCellUpdate:o.shouldCellUpdate},k,{appendNode:$,additionalProps:c(c({},E),{},{style:T},B)}))}var au=["data","index","className","rowKey","style","extra","getHeight"],iu=es(t.forwardRef((function(e,r){var o,a=e.data,i=e.index,l=e.className,s=e.rowKey,u=e.style,d=e.extra,g=e.getHeight,h=m(e,au),v=a.record,b=a.indent,y=a.index,x=Qc(ns,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),C=x.scrollX,S=x.flattenColumns,w=x.prefixCls,k=x.fixColumn,$=x.componentWidth,E=Qc(nu,["getComponent"]).getComponent,N=bs(v,s,i,b),I=E(["body","row"],"div"),M=E(["body","cell"],"div"),O=N.rowSupportExpand,D=N.expanded,R=N.rowProps,P=N.expandedRowRender,T=N.expandedRowClassName;if(O&&D){var H=P(v,i,b+1,D),j=null==T?void 0:T(v,i,b),B={};k&&(B={style:f({},"--virtual-width","".concat($,"px"))});var z="".concat(w,"-expanded-row-cell");o=t.createElement(I,{className:n("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(b+1),j)},t.createElement(ss,{component:M,prefixCls:w,className:n(z,f({},"".concat(z,"-fixed"),k)),additionalProps:B},H))}var K=c(c({},u),{},{width:C});d&&(K.position="absolute",K.pointerEvents="none");var L=t.createElement(I,p({},R,h,{"data-row-key":s,ref:O?null:r,className:n(l,"".concat(w,"-row"),null==R?void 0:R.className,f({},"".concat(w,"-row-extra"),d)),style:c(c({},K),null==R?void 0:R.style)}),S.map((function(e,n){return t.createElement(ou,{key:n,component:M,rowInfo:N,column:e,colIndex:n,indent:b,index:i,renderIndex:y,record:v,inverse:d,getHeight:g})})));return O?t.createElement("div",{ref:r},L,o):L}))),lu=t.forwardRef((function(e,r){var i=e.data,l=e.onScroll,c=Qc(ns,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),s=c.flattenColumns,u=c.onColumnResize,d=c.getRowKey,f=c.expandedKeys,m=c.prefixCls,g=c.childrenColumnName,h=c.emptyNode,v=c.scrollX,b=Qc(nu),y=b.sticky,x=b.scrollY,C=b.listItemHeight,S=b.getComponent,w=b.onScroll,k=t.useRef(),$=vs(i,g,f,d),E=t.useMemo((function(){var e=0;return s.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[s]),N=t.useMemo((function(){return E.map((function(e){return e[2]}))}),[E]);t.useEffect((function(){E.forEach((function(e){var t=a(e,2),n=t[0],r=t[1];u(n,r)}))}),[E]),t.useImperativeHandle(r,(function(){var e={scrollTo:function(e){var t;null===(t=k.current)||void 0===t||t.scrollTo(e)}};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=k.current)||void 0===t||t.scrollTo({left:e})}}),e}));var I,M=function(e,t){var n,r=null===(n=$[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var a,i=o(r,t);return null!==(a=null==i?void 0:i.rowSpan)&&void 0!==a?a:1}return 1},O=t.useMemo((function(){return{columnsOffset:N}}),[N]),D="".concat(m,"-tbody"),R=S(["body","wrapper"]),P=S(["body","row"],"div"),T=S(["body","cell"],"div");if($.length){var H={};y&&(H.position="sticky",H.bottom=0,"object"===o(y)&&y.offsetScroll&&(H.bottom=y.offsetScroll)),I=t.createElement(zn,{fullHeight:!1,ref:k,prefixCls:"".concat(D,"-virtual"),styles:{horizontalScrollBar:H},className:D,height:x,itemHeight:C||24,data:$,itemKey:function(e){return d(e.record)},component:R,scrollWidth:v,onVirtualScroll:function(e){var t=e.x;l({scrollLeft:t})},onScroll:w,extraRender:function(e){var n=e.start,r=e.end,o=e.getSize,a=e.offsetY;if(r<0)return null;for(var i=s.filter((function(e){return 0===M(e,n)})),l=n,c=function(e){if(!(i=i.filter((function(t){return 0===M(t,e)}))).length)return l=e,1},u=n;u>=0&&!c(u);u-=1);for(var f=s.filter((function(e){return 1!==M(e,r)})),p=r,m=function(e){if(!(f=f.filter((function(t){return 1!==M(t,e)}))).length)return p=Math.max(e-1,r),1},g=r;g<$.length&&!m(g);g+=1);for(var h=[],v=function(e){if(!$[e])return 1;s.some((function(t){return M(t,e)>1}))&&h.push(e)},b=l;b<=p;b+=1)v(b);return h.map((function(e){var n=$[e],r=d(n.record,e),i=o(r);return t.createElement(iu,{key:e,data:n,rowKey:r,index:e,style:{top:-a+i.top},extra:!0,getHeight:function(t){var n=e+t-1,a=d($[n].record,n),i=o(r,a);return i.bottom-i.top}})}))}},(function(e,n,r){var o=d(e.record,n);return t.createElement(iu,p({data:e,rowKey:o,index:n},r))}))}else I=t.createElement(P,{className:n("".concat(m,"-placeholder"))},t.createElement(ss,{component:T,prefixCls:m},h));return t.createElement(ru.Provider,{value:O},I)})),cu=es(lu),su=function(e,n){var r=n.ref,o=n.onScroll;return t.createElement(cu,{ref:r,data:e,onScroll:o})};function uu(e,r){var o=e.columns,a=e.scroll,i=e.sticky,l=e.prefixCls,s=void 0===l?Xs:l,u=e.className,d=e.listItemHeight,f=e.components,m=e.onScroll,g=a||{},h=g.x,v=g.y;"number"!=typeof h&&(h=1),"number"!=typeof v&&(v=500);var b=N((function(e,t){return ct(f,e)||t})),y=N(m),x=t.useMemo((function(){return{sticky:i,scrollY:v,listItemHeight:d,getComponent:b,onScroll:y}}),[i,v,d,b,y]);return t.createElement(nu.Provider,{value:x},t.createElement(tu,p({},e,{className:n(u,"".concat(s,"-virtual")),scroll:c(c({},a),{},{x:h}),components:c(c({},f),{},{body:su}),columns:o,internalHooks:Gc,tailor:!0,ref:r})))}var du=t.forwardRef(uu);function fu(e){return Jc(du,e)}fu();var pu=t.createContext(null),mu=function(e){for(var r=e.prefixCls,o=e.level,a=e.isStart,i=e.isEnd,l="".concat(r,"-indent-unit"),c=[],s=0;s=0&&n.splice(r,1),n}function Su(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function wu(e){return e.split("-")}function ku(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(ji(t,e).children),n}function $u(e){if(e.parent){var t=wu(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Eu(e,t,n,r,o,a,i,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,h=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,v=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=ji(l,n.props.eventKey);if(f-1.5?a({dragNode:I,dropNode:M,dropPosition:1})?k=1:O=!1:a({dragNode:I,dropNode:M,dropPosition:0})?k=0:a({dragNode:I,dropNode:M,dropPosition:1})?k=1:O=!1:a({dragNode:I,dropNode:M,dropPosition:1})?k=1:O=!1,{dropPosition:k,dropLevelOffset:$,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:0===k?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:O}}function Nu(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function Iu(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==o(e))return h(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Mu(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=ji(t,e);if(o){n.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),b(n)}xu.displayName="TreeNode",xu.isTreeNode=1;const Ou={},Du="SELECT_ALL",Ru="SELECT_INVERT",Pu="SELECT_NONE",Tu=[],Hu=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat(b(n),b(Hu(e,t[e]))))})),n},ju=(e,r)=>{const{preserveSelectedRowKeys:o,selectedRowKeys:a,defaultSelectedRowKeys:i,getCheckboxProps:l,onChange:c,onSelect:s,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:p,columnWidth:m,type:g,selections:h,fixed:v,renderCell:y,hideSelectAll:x,checkStrictly:C=!0}=r||{},{prefixCls:w,data:k,pageData:$,getRecordByKey:E,getRowKey:N,expandType:I,childrenColumnName:M,locale:O,getPopupContainer:D}=e,R=gt(),[P,T]=function(e){const[n,r]=t.useState(null);return[t.useCallback(((t,o,a)=>{const i=null!=n?n:t,l=Math.min(i||0,t),c=Math.max(i||0,t),s=o.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!a.has(e))),d=[];return s.forEach((e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))})),r(u?c:null),d}),[n]),e=>{r(e)}]}((e=>e)),[H,j]=S(a||i||Tu,{value:a}),B=t.useRef(new Map),z=t.useCallback((e=>{if(o){const t=new Map;e.forEach((e=>{let n=E(e);!n&&B.current.has(e)&&(n=B.current.get(e)),t.set(e,n)})),B.current=t}}),[E,o]);t.useEffect((()=>{z(H)}),[H]);const{keyEntities:K}=t.useMemo((()=>{if(C)return{keyEntities:null};let e=k;if(o){const t=new Set(k.map(((e,t)=>N(e,t)))),n=Array.from(B.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat(b(e),b(n))}return Wi(e,{externalGetKey:N,childrenPropName:M})}),[k,N,C,M,o]),L=t.useMemo((()=>Hu(M,$)),[M,$]),A=t.useMemo((()=>{const e=new Map;return L.forEach(((t,n)=>{const r=N(t,n),o=(l?l(t):null)||{};e.set(r,o)})),e}),[L,N,l]),F=t.useCallback((e=>{var t;return!!(null===(t=A.get(N(e)))||void 0===t?void 0:t.disabled)}),[A,N]),[W,_]=t.useMemo((()=>{if(C)return[H||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Xi(H,!0,K,F);return[e||[],t]}),[H,C,K,F]),V=t.useMemo((()=>{const e="radio"===g?W.slice(0,1):W;return new Set(e)}),[W,g]),Y=t.useMemo((()=>"radio"===g?new Set:new Set(_)),[_,g]);t.useEffect((()=>{r||j(Tu)}),[!!r]);const q=t.useCallback(((e,t)=>{let n,r;z(e),o?(n=e,r=e.map((e=>B.current.get(e)))):(n=[],r=[],e.forEach((e=>{const t=E(e);void 0!==t&&(n.push(e),r.push(t))}))),j(n),null==c||c(n,r,{type:t})}),[j,E,c,o]),X=t.useCallback(((e,t,n,r)=>{if(s){const o=n.map((e=>E(e)));s(E(e),t,o,r)}q(n,"single")}),[s,E,q]),G=t.useMemo((()=>{if(!h||x)return null;return(!0===h?[Du,Ru,Pu]:h).map((e=>e===Du?{key:"all",text:O.selectionAll,onSelect(){q(k.map(((e,t)=>N(e,t))).filter((e=>{const t=A.get(e);return!(null==t?void 0:t.disabled)||V.has(e)})),"all")}}:e===Ru?{key:"invert",text:O.selectInvert,onSelect(){const e=new Set(V);$.forEach(((t,n)=>{const r=N(t,n),o=A.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);d&&(R.deprecated(!1,"onSelectInvert","onChange"),d(t)),q(t,"invert")}}:e===Pu?{key:"none",text:O.selectNone,onSelect(){null==f||f(),q(Array.from(V).filter((e=>{const t=A.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),a=0;a{var o;if(!r)return e.filter((e=>e!==Ou));let a=b(e);const i=new Set(V),l=L.map(N).filter((e=>!A.get(e).disabled)),c=l.every((e=>i.has(e))),s=l.some((e=>i.has(e))),d=()=>{const e=[];c?l.forEach((t=>{i.delete(t),e.push(t)})):l.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==u||u(!c,t.map((e=>E(e))),e.map((e=>E(e)))),q(t,"all"),T(null)};let f,S,k;if("radio"!==g){let e;if(G){const n={getPopupContainer:D,items:G.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(l)},label:r}}))};e=t.createElement("div",{className:`${w}-selection-extra`},t.createElement(ht,{menu:n,getPopupContainer:D},t.createElement("span",null,t.createElement(Z,null))))}const n=L.map(((e,t)=>{const n=N(e,t),r=A.get(n)||{};return Object.assign({checked:i.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),r=!!n.length&&n.length===L.length,o=r&&n.every((e=>{let{checked:t}=e;return t})),a=r&&n.some((e=>{let{checked:t}=e;return t}));S=t.createElement(al,{checked:r?o:!!L.length&&c,indeterminate:r?!o&&a:!c&&s,onChange:d,disabled:0===L.length||r,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),f=!x&&t.createElement("div",{className:`${w}-selection`},S,e)}k="radio"===g?(e,n,r)=>{const o=N(n,r),a=i.has(o);return{node:t.createElement($i,Object.assign({},A.get(o),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(o)||X(o,!0,[o],e.nativeEvent)}})),checked:a}}:(e,n,r)=>{var o;const a=N(n,r),c=i.has(a),s=Y.has(a),u=A.get(a);let d;return d="nest"===I?s:null!==(o=null==u?void 0:u.indeterminate)&&void 0!==o?o:s,{node:t.createElement(al,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,r=l.findIndex((e=>e===a)),o=W.some((e=>l.includes(e)));if(n&&C&&o){const e=P(r,l,i),t=Array.from(i);null==p||p(!c,t.map((e=>E(e))),e.map((e=>E(e)))),q(t,"multiple")}else{const e=W;if(C){const n=c?Cu(e,a):Su(e,a);X(a,!c,n,t)}else{const n=Xi([].concat(b(e),[a]),!0,K,F),{checkedKeys:r,halfCheckedKeys:o}=n;let i=r;if(c){const e=new Set(r);e.delete(a),i=Xi(Array.from(e),{checked:!1,halfCheckedKeys:o},K,F).checkedKeys}X(a,!c,i,t)}}T(c?null:r)}})),checked:c}};if(!a.includes(Ou))if(0===a.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[Es])||void 0===t?void 0:t.columnType)}))){const[e,...t]=a;a=[e,Ou].concat(b(t))}else a=[Ou].concat(b(a));const $=a.indexOf(Ou);a=a.filter(((e,t)=>e!==Ou||t===$));const M=a[$-1],O=a[$+1];let R=v;void 0===R&&(void 0!==(null==O?void 0:O.fixed)?R=O.fixed:void 0!==(null==M?void 0:M.fixed)&&(R=M.fixed)),R&&M&&"EXPAND_COLUMN"===(null===(o=M[Es])||void 0===o?void 0:o.columnType)&&void 0===M.fixed&&(M.fixed=R);const H=n(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:h&&"checkbox"===g}),j={fixed:R,width:m,className:`${w}-selection-column`,title:(null==r?void 0:r.columnTitle)?"function"==typeof r.columnTitle?r.columnTitle(S):r.columnTitle:f,render:(e,t,n)=>{const{node:r,checked:o}=k(e,t,n);return y?y(o,t,n,r):r},onCell:r.onCell,[Es]:{className:H}};return a.map((e=>e===Ou?j:e))}),[N,L,r,W,V,Y,m,G,I,A,p,X,F]);return[U,V]};function Bu(e,n){return t.useImperativeHandle(e,(()=>{const e=n(),{nativeElement:t}=e;return"undefined"!=typeof Proxy?new Proxy(t,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=t)._antProxy=r._antProxy||{},Object.keys(o).forEach((e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}})),r);var r,o}))}function zu(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Ku(e,t){return t?`${t}-${e}`:`${e}`}function Lu(e,t){return"function"==typeof e?e(t):e}const Au={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var Fu=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:Au}))}; -/**![filter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM0OSA4MzhjMCAxNy43IDE0LjIgMzIgMzEuOCAzMmgyNjIuNGMxNy42IDAgMzEuOC0xNC4zIDMxLjgtMzJWNjQySDM0OXYxOTZ6bTUzMS4xLTY4NEgxNDMuOWMtMjQuNSAwLTM5LjggMjYuNy0yNy41IDQ4bDIyMS4zIDM3NmgzNDguOGwyMjEuMy0zNzZjMTIuMS0yMS4zLTMuMi00OC0yNy43LTQ4eiIgLz48L3N2Zz4=) */const Wu=t.forwardRef(Fu);function _u(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var Vu=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Yu=function(e,r){var o=e.className,i=e.style,l=e.motion,c=e.motionNodes,s=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,g=e.treeNodeRequiredProps,h=m(e,Vu),v=t.useState(!0),b=a(v,2),y=b[0],x=b[1],S=t.useContext(pu).prefixCls,w=c&&"hide"!==s;C((function(){c&&w!==y&&x(w)}),[c]);var k=t.useRef(!1),$=function(){c&&!k.current&&(k.current=!0,d())};!function(e,n){var r=t.useState(!1),o=a(r,2),i=o[0],l=o[1];C((function(){if(i)return e(),function(){n()}}),[i]),C((function(){return l(!0),function(){l(!1)}}),[])}((function(){c&&u()}),$);return c?t.createElement(bt,p({ref:r,visible:y},l,{motionAppear:"show"===s,onVisibleChanged:function(e){w===e&&$()}}),(function(e,r){var o=e.className,a=e.style;return t.createElement("div",{ref:r,className:n("".concat(S,"-treenode-motion"),o),style:a},c.map((function(e){var n=Object.assign({},(_u(e.data),e.data)),r=e.title,o=e.key,a=e.isStart,i=e.isEnd;delete n.children;var l=_i(o,g);return t.createElement(xu,p({},n,l,{title:r,active:f,data:e.data,key:o,isStart:a,isEnd:i}))})))})):t.createElement(xu,p({domRef:r,className:o,style:i},h,{active:f}))};Yu.displayName="MotionTreeNode";var qu=t.forwardRef(Yu);function Xu(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],a=t.findIndex((function(e){return e.key===n}));if(o){var i=t.findIndex((function(e){return e.key===o.key}));return t.slice(a+1,i)}return t.slice(a+1)}var Gu=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Uu={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Qu=function(){},Zu="RC_TREE_MOTION_".concat(Math.random()),Ju={key:Zu},ed={key:Zu,level:0,index:0,pos:"0",node:Ju,nodes:[Ju]},td={parent:null,children:[],pos:ed.pos,data:Ju,title:null,key:Zu,isStart:[],isEnd:[]};function nd(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function rd(e){return Ki(e.key,e.pos)}var od=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.data;e.selectable,e.checkable;var i=e.expandedKeys,l=e.selectedKeys,c=e.checkedKeys,s=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,g=e.disabled,h=e.dragging,v=e.dragOverNodeKey,b=e.dropPosition,y=e.motion,x=e.height,S=e.itemHeight,w=e.virtual,k=e.focusable,$=e.activeItem,E=e.focused,N=e.tabIndex,I=e.onKeyDown,M=e.onFocus,O=e.onBlur,D=e.onActiveChange,R=e.onListChangeStart,P=e.onListChangeEnd,T=m(e,Gu),H=t.useRef(null),j=t.useRef(null);t.useImperativeHandle(n,(function(){return{scrollTo:function(e){H.current.scrollTo(e)},getIndentWidth:function(){return j.current.offsetWidth}}}));var B=t.useState(i),z=a(B,2),K=z[0],L=z[1],A=t.useState(o),F=a(A,2),W=F[0],_=F[1],V=t.useState(o),Y=a(V,2),q=Y[0],X=Y[1],G=t.useState([]),U=a(G,2),Q=U[0],Z=U[1],J=t.useState(null),ee=a(J,2),te=ee[0],ne=ee[1],re=t.useRef(o);function oe(){var e=re.current;_(e),X(e),Z([]),ne(null),P()}re.current=o,C((function(){L(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n ").concat(t);return t}($)),t.createElement("div",null,t.createElement("input",{style:Uu,disabled:!1===k||g,tabIndex:!1!==k?N:null,onKeyDown:I,onFocus:M,onBlur:O,value:"",onChange:Qu,"aria-label":"for screen reader"})),t.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},t.createElement("div",{className:"".concat(r,"-indent")},t.createElement("div",{ref:j,className:"".concat(r,"-indent-unit")}))),t.createElement(zn,p({},T,{data:ae,itemKey:rd,height:x,fullHeight:!1,virtual:w,itemHeight:S,prefixCls:"".concat(r,"-list"),ref:H,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return rd(e)===Zu}))&&oe()}}),(function(e){var n=e.pos,r=Object.assign({},(_u(e.data),e.data)),o=e.title,a=e.key,i=e.isStart,l=e.isEnd,c=Ki(a,n);delete r.key,delete r.children;var s=_i(c,ie);return t.createElement(qu,p({},r,s,{title:o,active:!!$&&a===$.key,pos:n,data:e.data,isStart:i,isEnd:l,motion:y,motionNodes:a===Zu?Q:null,motionType:te,onMotionStart:R,onMotionEnd:oe,treeNodeRequiredProps:ie,onMouseMove:function(){D(null)}}))})))}));od.displayName="NodeList";var ad=function(e){ft(a,e);var r=pt(a);function a(){var e;$(this,a);for(var n=arguments.length,o=new Array(n),l=0;l2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,l=a.dropPosition,s=a.dropTargetKey,u=a.dropTargetPos;if(a.dropAllowed){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var f=c(c({},_i(s,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===s,data:ji(e.state.keyEntities,s).node}),p=-1!==i.indexOf(s);h(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=wu(u),g={event:t,node:Vi(f),dragNode:e.dragNode?Vi(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(m[m.length-1])};o||null==d||d(g),e.dragNode=null}}})),f(mt(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),f(mt(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,i=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=a.filter((function(e){return e.key===l}))[0],u=Vi(c(c({},_i(l,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(i?Cu(o,l):Su(o,l)),e.onNodeExpand(t,u)}})),f(mt(e),"onNodeClick",(function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),f(mt(e),"onNodeDoubleClick",(function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),f(mt(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[i.key],f=!u,p=(r=f?s?Su(r,d):[d]:Cu(r,d)).map((function(e){var t=ji(a,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),f(mt(e),"onNodeCheck",(function(t,n,r){var o,a=e.state,i=a.keyEntities,l=a.checkedKeys,c=a.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var m=r?Su(l,f):Cu(l,f);o={checked:m,halfChecked:Cu(c,f)},p.checkedNodes=m.map((function(e){return ji(i,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=Xi([].concat(b(l),[f]),!0,i),h=g.checkedKeys,v=g.halfCheckedKeys;if(!r){var y=new Set(h);y.delete(f);var x=Xi(Array.from(y),{checked:!1,halfCheckedKeys:v},i);h=x.checkedKeys,v=x.halfCheckedKeys}o=h,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,h.forEach((function(e){var t=ji(i,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:h},!1,{halfCheckedKeys:v})}null==d||d(o,p)})),f(mt(e),"onNodeLoad",(function(t){var n=t.key,r=new Promise((function(r,o){e.setState((function(a){var i=a.loadedKeys,l=void 0===i?[]:i,c=a.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return d&&-1===l.indexOf(n)&&-1===s.indexOf(n)?(d(t).then((function(){var o=Su(e.state.loadedKeys,n);null==f||f(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:Cu(e.loadingKeys,n)}})),r()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:Cu(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var a=e.state.loadedKeys;h(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:Su(a,n)}),r()}o(t)})),{loadingKeys:Su(s,n)}):null}))}));return r.catch((function(){})),r})),f(mt(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),f(mt(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),f(mt(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),f(mt(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,i={};Object.keys(t).forEach((function(n){n in e.props?a=!1:(o=!0,i[n]=t[n])})),!o||n&&!a||e.setState(c(c({},i),r))}})),f(mt(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return k(a,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,r=this.state,a=r.focused,i=r.flattenNodes,l=r.keyEntities,c=r.draggingNodeKey,s=r.activeKey,d=r.dropLevelOffset,m=r.dropContainerKey,g=r.dropTargetKey,h=r.dropPosition,v=r.dragOverNodeKey,b=r.indent,y=this.props,x=y.prefixCls,C=y.className,S=y.style,w=y.showLine,k=y.focusable,$=y.tabIndex,E=void 0===$?0:$,N=y.selectable,I=y.showIcon,M=y.icon,O=y.switcherIcon,D=y.draggable,R=y.checkable,P=y.checkStrictly,T=y.disabled,H=y.motion,j=y.loadData,B=y.filterTreeNode,z=y.height,K=y.itemHeight,L=y.virtual,A=y.titleRender,F=y.dropIndicatorRender,W=y.onContextMenu,_=y.onScroll,V=y.direction,Y=y.rootClassName,q=y.rootStyle,X=u(this.props,{aria:!0,data:!0});return D&&(e="object"===o(D)?D:"function"==typeof D?{nodeDraggable:D}:{}),t.createElement(pu.Provider,{value:{prefixCls:x,selectable:N,showIcon:I,icon:M,switcherIcon:O,draggable:e,draggingNodeKey:c,checkable:R,checkStrictly:P,disabled:T,keyEntities:l,dropLevelOffset:d,dropContainerKey:m,dropTargetKey:g,dropPosition:h,dragOverNodeKey:v,indent:b,direction:V,dropIndicatorRender:F,loadData:j,filterTreeNode:B,titleRender:A,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},t.createElement("div",{role:"tree",className:n(x,C,Y,f(f(f({},"".concat(x,"-show-line"),w),"".concat(x,"-focused"),a),"".concat(x,"-active-focused"),null!==s)),style:q},t.createElement(od,p({ref:this.listRef,prefixCls:x,style:S,data:i,disabled:T,selectable:N,checkable:!!R,motion:H,dragging:null!==c,height:z,itemHeight:K,virtual:L,focusable:k,focused:a,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:_},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function a(t){return!r&&t in e||r&&r[t]!==e[t]}var i=t.fieldNames;if(a("fieldNames")&&(i=Li(e.fieldNames),o.fieldNames=i),a("treeData")?n=e.treeData:a("children")&&(h(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Ai(e.children)),n){o.treeData=n;var l=Wi(n,{fieldNames:i});o.keyEntities=c(f({},Zu,ed),l.keyEntities)}var s,u=o.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Mu(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var d=c({},u);delete d[Zu],o.expandedKeys=Object.keys(d).map((function(e){return d[e].key}))}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Mu(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var p=Fi(n||t.treeData,o.expandedKeys||t.expandedKeys,i);o.flattenNodes=p}if((e.selectable&&(a("selectedKeys")?o.selectedKeys=Nu(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=Nu(e.defaultSelectedKeys,e))),e.checkable)&&(a("checkedKeys")?s=Iu(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=Iu(e.defaultCheckedKeys)||{}:n&&(s=Iu(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var m=s,g=m.checkedKeys,v=void 0===g?[]:g,b=m.halfCheckedKeys,y=void 0===b?[]:b;if(!e.checkStrictly){var x=Xi(v,!0,u);v=x.checkedKeys,y=x.halfCheckedKeys}o.checkedKeys=v,o.halfCheckedKeys=y}return a("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),a}(t.Component);f(ad,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,r=e.dropLevelOffset,o=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*o;break;case 1:a.bottom=0,a.left=-r*o;break;case 0:a.bottom=0,a.left=o}return t.createElement("div",{style:a})},allowDrop:function(){return!0},expandAction:!1}),f(ad,"TreeNode",xu);const id={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var ld=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:id}))}; -/**![file](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTc5MC4yIDMyNkg2MDJWMTM3LjhMNzkwLjIgMzI2em0xLjggNTYySDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHoiIC8+PC9zdmc+) */const cd=t.forwardRef(ld);const sd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var ud=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:sd}))}; -/**![folder-open](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyOCA0NDRIODIwVjMzMC40YzAtMTcuNy0xNC4zLTMyLTMyLTMySDQ3M0wzNTUuNyAxODYuMmE4LjE1IDguMTUgMCAwMC01LjUtMi4ySDk2Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY1OTJjMCAxNy43IDE0LjMgMzIgMzIgMzJoNjk4YzEzIDAgMjQuOC03LjkgMjkuNy0yMGwxMzQtMzMyYzEuNS0zLjggMi4zLTcuOSAyLjMtMTIgMC0xNy43LTE0LjMtMzItMzItMzJ6TTEzNiAyNTZoMTg4LjVsMTE5LjYgMTE0LjRINzQ4VjQ0NEgyMzhjLTEzIDAtMjQuOCA3LjktMjkuNyAyMEwxMzYgNjQzLjJWMjU2em02MzUuMyA1MTJIMTU5bDEwMy4zLTI1Nmg2MTIuNEw3NzEuMyA3Njh6IiAvPjwvc3ZnPg==) */const dd=t.forwardRef(ud);const fd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var pd=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:fd}))}; -/**![folder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAyOTguNEg1MjFMNDAzLjcgMTg2LjJhOC4xNSA4LjE1IDAgMDAtNS41LTIuMkgxNDRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjU5MmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg3MzZjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzMwLjRjMC0xNy43LTE0LjMtMzItMzItMzJ6TTg0MCA3NjhIMTg0VjI1NmgxODguNWwxMTkuNiAxMTQuNEg4NDBWNzY4eiIgLz48L3N2Zz4=) */const md=t.forwardRef(pd);const gd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var hd=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:gd}))}; -/**![holder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMwMCAyNzYuNWE1NiA1NiAwIDEwNTYtOTcgNTYgNTYgMCAwMC01NiA5N3ptMCAyODRhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCAyMjhhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6bTAgMjg0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDAwLTExMiAwek0zMDAgODQ0LjVhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCA3OTZhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6IiAvPjwvc3ZnPg==) */const vd=t.forwardRef(hd),bd=new xt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),yd=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),xd=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${_(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Cd=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,nodeSelectedBg:i,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},H(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Se(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:bd,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${_(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${_(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},yd(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${_(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${_(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${_(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${_(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${_(a)}`,userSelect:"none"},xd(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${_(t.calc(a).div(2).equal())} !important`}}}}})}},Sd=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},wd=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=V(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[Cd(e,a),Sd(a)]},kd=Y("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Ui(`${n}-checkbox`,e)},wd(n,e),yt(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function $d(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:a,direction:i="ltr"}=e,l="ltr"===i?"left":"right",c="ltr"===i?"right":"left",s={[l]:-n*a+4,[c]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=a+4}return r.createElement("div",{style:s,className:`${o}-drop-indicator`})}const Ed={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var Nd=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:Ed}))}; -/**![caret-down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0MC40IDMwMEgxODMuNmMtMTkuNyAwLTMwLjcgMjAuOC0xOC41IDM1bDMyOC40IDM4MC44YzkuNCAxMC45IDI3LjUgMTAuOSAzNyAwTDg1OC45IDMzNWMxMi4yLTE0LjIgMS4yLTM1LTE4LjUtMzV6IiAvPjwvc3ZnPg==) */const Id=t.forwardRef(Nd);const Md={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var Od=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:Md}))}; -/**![minus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMzY4YzQuNCAwIDgtMy42IDgtOHYtNDhjMC00LjQtMy42LTgtOC04SDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */const Dd=t.forwardRef(Od);const Rd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var Pd=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:Rd}))}; -/**![plus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMTUydjE1MmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjU0NGgxNTJjNC40IDAgOC0zLjYgOC04di00OGMwLTQuNC0zLjYtOC04LThINTQ0VjMyOGMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MTUySDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */const Td=t.forwardRef(Pd),Hd=e=>{const{prefixCls:r,switcherIcon:o,treeNodeProps:a,showLine:i}=e,{isLeaf:l,expanded:c,loading:s}=a;if(s)return t.createElement(U,{className:`${r}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),l){if(!i)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(a):u,o=`${r}-switcher-line-custom-icon`;return t.isValidElement(e)?be(e,{className:n(e.props.className||"",o)}):e}return u?t.createElement(cd,{className:`${r}-switcher-line-icon`}):t.createElement("span",{className:`${r}-switcher-leaf-line`})}const d=`${r}-switcher-icon`,f="function"==typeof o?o(a):o;return t.isValidElement(f)?be(f,{className:n(f.props.className||"",d)}):void 0!==f?f:i?c?t.createElement(Dd,{className:`${r}-switcher-line-icon`}):t.createElement(Td,{className:`${r}-switcher-line-icon`}):t.createElement(Id,{className:d})},jd=r.forwardRef(((e,t)=>{var o;const{getPrefixCls:a,direction:i,virtual:l,tree:c}=r.useContext(P),{prefixCls:s,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,blockNode:m=!1,children:g,checkable:h=!1,selectable:v=!0,draggable:b,motion:y,style:x}=e,C=a("tree",s),S=a(),w=null!=y?y:Object.assign(Object.assign({},Ct(S)),{motionAppear:!1}),k=Object.assign(Object.assign({},e),{checkable:h,selectable:v,showIcon:d,motion:w,blockNode:m,showLine:Boolean(f),dropIndicatorRender:$d}),[$,E,N]=kd(C),[,I]=ee(),M=I.paddingXS/2+((null===(o=I.Tree)||void 0===o?void 0:o.titleHeight)||I.controlHeightSM),O=r.useMemo((()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||r.createElement(vd,null)),e}),[b]);return $(r.createElement(ad,Object.assign({itemHeight:M,ref:t,virtual:l},k,{style:Object.assign(Object.assign({},null==c?void 0:c.style),x),prefixCls:C,className:n({[`${C}-icon-hide`]:!d,[`${C}-block-node`]:m,[`${C}-unselectable`]:!v,[`${C}-rtl`]:"rtl"===i},null==c?void 0:c.className,u,E,N),direction:i,checkable:h?r.createElement("span",{className:`${C}-checkbox-inner`}):h,selectable:v,switcherIcon:e=>r.createElement(Hd,{prefixCls:C,switcherIcon:p,treeNodeProps:e,showLine:f}),draggable:O}),g))}));function Bd(e,t,n){const{key:r,children:o}=n;e.forEach((function(e){const a=e[r],i=e[o];!1!==t(a,e)&&Bd(i||[],t,n)}))}function zd(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:a}=e;const i=[];let l=0;if(r&&r===o)return[r];if(!r||!o)return[];return Bd(t,(e=>{if(2===l)return!1;if(function(e){return e===r||e===o}(e)){if(i.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&i.push(e);return n.includes(e)}),Li(a)),i}function Kd(e,t,n){const r=b(t),o=[];return Bd(e,((e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length}),Li(n)),o}var Ld=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:o,defaultExpandParent:a,defaultExpandedKeys:i}=e,l=Ld(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=t.useRef(),s=t.useRef(),[u,d]=t.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[f,p]=t.useState((()=>(()=>{const{keyEntities:e}=Wi(Fd(l));let t;return t=o?Object.keys(e):a?Mu(l.expandedKeys||i||[],e):l.expandedKeys||i||[],t})()));t.useEffect((()=>{"selectedKeys"in l&&d(l.selectedKeys)}),[l.selectedKeys]),t.useEffect((()=>{"expandedKeys"in l&&p(l.expandedKeys)}),[l.expandedKeys]);const{getPrefixCls:m,direction:g}=t.useContext(P),{prefixCls:h,className:v,showIcon:y=!0,expandAction:x="click"}=l,C=Ld(l,["prefixCls","className","showIcon","expandAction"]),S=m("tree",h),w=n(`${S}-directory`,{[`${S}-directory-rtl`]:"rtl"===g},v);return t.createElement(jd,Object.assign({icon:Ad,ref:r,blockNode:!0},C,{showIcon:y,expandAction:x,prefixCls:S,className:w,expandedKeys:f,selectedKeys:u,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=l,{node:a,nativeEvent:i}=t,{key:u=""}=a,p=Fd(l),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==i?void 0:i.ctrlKey)||(null==i?void 0:i.metaKey),h=null==i?void 0:i.shiftKey;let v;r&&g?(v=e,c.current=u,s.current=v,m.selectedNodes=Kd(p,v,o)):r&&h?(v=Array.from(new Set([].concat(b(s.current||[]),b(zd({treeData:p,expandedKeys:f,startKey:u,endKey:c.current,fieldNames:o}))))),m.selectedNodes=Kd(p,v,o)):(v=[u],c.current=u,s.current=v,m.selectedNodes=Kd(p,v,o)),null===(n=l.onSelect)||void 0===n||n.call(l,v,m),"selectedKeys"in l||d(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in l||p(e),null===(n=l.onExpand)||void 0===n?void 0:n.call(l,e,t)}}))},_d=t.forwardRef(Wd),Vd=jd;Vd.DirectoryTree=_d,Vd.TreeNode=xu;const Yd=Vd;function qd(e){let{value:n,onChange:r,filterSearch:o,tablePrefixCls:a,locale:i}=e;return o?t.createElement("div",{className:`${a}-filter-dropdown-search`},t.createElement(St,{prefix:t.createElement(Q,null),placeholder:i.filterSearchPlaceholder,onChange:r,value:n,htmlSize:1,className:`${a}-filter-dropdown-search-input`})):null}const Xd=e=>{const{keyCode:t}=e;t===i.ENTER&&e.stopPropagation()},Gd=t.forwardRef(((e,n)=>t.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Xd,ref:n},e.children))),Ud=Gd;function Qd(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat(b(t),b(Qd(r))))})),t}function Zd(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Jd(e){let{filters:n,prefixCls:r,filteredKeys:o,filterMultiple:a,searchValue:i,filterSearch:l}=e;return n.map(((e,n)=>{const c=String(e.value);if(e.children)return{key:c||n,label:e.text,popupClassName:`${r}-dropdown-submenu`,children:Jd({filters:e.children,prefixCls:r,filteredKeys:o,filterMultiple:a,searchValue:i,filterSearch:l})};const s=a?al:$i,u={key:void 0!==e.value?c:n,label:t.createElement(t.Fragment,null,t.createElement(s,{checked:o.includes(c)}),t.createElement("span",null,e.text))};return i.trim()?"function"==typeof l?l(i,e)?u:null:Zd(i,e.text)?u:null:u}))}function ef(e){return e||[]}function tf(e){var r,o;const{tablePrefixCls:a,prefixCls:i,column:l,dropdownPrefixCls:c,columnKey:s,filterOnClose:u,filterMultiple:d,filterMode:f="menu",filterSearch:p=!1,filterState:m,triggerFilter:g,locale:h,children:v,getPopupContainer:b,rootClassName:y}=e,{filterDropdownOpen:x,onFilterDropdownOpenChange:C,filterResetToDefaultFilteredValue:S,defaultFilteredValue:w,filterDropdownVisible:k,onFilterDropdownVisibleChange:$}=l,[E,N]=t.useState(!1),I=!(!m||!(null===(r=m.filteredKeys)||void 0===r?void 0:r.length)&&!m.forceFiltered),M=e=>{N(e),null==C||C(e),null==$||$(e)},O=null!==(o=null!=x?x:k)&&void 0!==o?o:E,D=null==m?void 0:m.filteredKeys,[R,H]=function(e){const n=t.useRef(e),r=vt();return[()=>n.current,e=>{n.current=e,r()}]}(ef(D)),j=e=>{let{selectedKeys:t}=e;H(t)},B=(e,t)=>{let{node:n,checked:r}=t;j(d?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};t.useEffect((()=>{E&&j({selectedKeys:ef(D)})}),[D]);const[z,K]=t.useState([]),L=e=>{K(e)},[A,F]=t.useState(""),W=e=>{const{value:t}=e.target;F(t)};t.useEffect((()=>{E||F("")}),[E]);const _=e=>{const t=e&&e.length?e:null;return null!==t||m&&m.filteredKeys?it(t,null==m?void 0:m.filteredKeys,!0)?null:void g({column:l,key:s,filteredKeys:t}):null},V=()=>{M(!1),_(R())},Y=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&M(!1),F(""),H(S?(w||[]).map((e=>String(e))):[])},q=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&M(!1),_(R())},X=n({[`${c}-menu-without-submenu`]:(G=l.filters||[],!G.some((e=>{let{children:t}=e;return t})))});var G;const U=e=>{if(e.target.checked){const e=Qd(null==l?void 0:l.filters).map((e=>String(e)));H(e)}else H([])},Q=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=Q({filters:e.children})),r}))},Z=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Z(e))))||[]})};let J;if("function"==typeof l.filterDropdown)J=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:R(),confirm:q,clearFilters:Y,filters:l.filters,visible:O,close:()=>{M(!1)}});else if(l.filterDropdown)J=l.filterDropdown;else{const e=R()||[],n=()=>{const n=t.createElement(T,{image:T.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(l.filters||[]).length)return n;if("tree"===f)return t.createElement(t.Fragment,null,t.createElement(qd,{filterSearch:p,value:A,onChange:W,tablePrefixCls:a,locale:h}),t.createElement("div",{className:`${a}-filter-dropdown-tree`},d?t.createElement(al,{checked:e.length===Qd(l.filters).length,indeterminate:e.length>0&&e.length"function"==typeof p?p(A,Z(e)):Zd(A,e.title):void 0})));const r=Jd({filters:l.filters||[],filterSearch:p,prefixCls:i,filteredKeys:R(),filterMultiple:d,searchValue:A}),o=r.every((e=>null===e));return t.createElement(t.Fragment,null,t.createElement(qd,{filterSearch:p,value:A,onChange:W,tablePrefixCls:a,locale:h}),o?n:t.createElement(wt,{selectable:!0,multiple:d,prefixCls:`${c}-menu`,className:X,onSelect:j,onDeselect:j,selectedKeys:e,getPopupContainer:b,openKeys:z,onOpenChange:L,items:r}))},r=()=>S?it((w||[]).map((e=>String(e))),e,!0):0===e.length;J=t.createElement(t.Fragment,null,n(),t.createElement("div",{className:`${i}-dropdown-btns`},t.createElement(We,{type:"link",size:"small",disabled:r(),onClick:()=>Y()},h.filterReset),t.createElement(We,{type:"primary",size:"small",onClick:V},h.filterConfirm)))}l.filterDropdown&&(J=t.createElement(kt,{selectable:void 0},J));let ee;ee="function"==typeof l.filterIcon?l.filterIcon(I):l.filterIcon?l.filterIcon:t.createElement(Wu,null);const{direction:te}=t.useContext(P);return t.createElement("div",{className:`${i}-column`},t.createElement("span",{className:`${a}-column-title`},v),t.createElement(ht,{dropdownRender:()=>t.createElement(Ud,{className:`${i}-dropdown`},J),trigger:["click"],open:O,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==D&&H(ef(D)),M(e),e||l.filterDropdown||!u||V())},getPopupContainer:b,placement:"rtl"===te?"bottomLeft":"bottomRight",rootClassName:y},t.createElement("span",{role:"button",tabIndex:-1,className:n(`${i}-trigger`,{active:I}),onClick:e=>{e.stopPropagation()}},ee)))}function nf(e,t,n){let r=[];return(e||[]).forEach(((e,o)=>{var a;const i=Ku(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(a=null==t?void 0:t.map(String))&&void 0!==a?a:t),r.push({column:e,key:zu(e,i),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:zu(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(b(r),b(nf(e.children,t,i))))})),r}function rf(e,n,r,o,a,i,l,c,s){return r.map(((r,u)=>{const d=Ku(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=r;let h=r;if(h.filters||h.filterDropdown){const c=zu(h,d),u=o.find((e=>{let{key:t}=e;return c===t}));h=Object.assign(Object.assign({},h),{title:o=>t.createElement(tf,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:n,column:h,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:i,locale:a,getPopupContainer:l,rootClassName:s},Lu(r.title,o))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:rf(e,n,h.children,o,a,i,l,d,s)})),h}))}function of(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const a=n,{filters:i,filterDropdown:l}=o;if(l)t[a]=r||null;else if(Array.isArray(r)){const e=Qd(i);t[a]=e.filter((e=>r.includes(String(e))))}else t[a]=null})),t}function af(e,t,n){return t.reduce(((e,r)=>{const{column:{onFilter:o,filters:a},filteredKeys:i}=r;return o&&i&&i.length?e.map((e=>Object.assign({},e))).filter((e=>i.some((r=>{const i=Qd(a),l=i.findIndex((e=>String(e)===String(r))),c=-1!==l?i[l]:r;return e[n]&&(e[n]=af(e[n],t,n)),o(c,e)})))):e}),e)}const lf=e=>e.flatMap((e=>"children"in e?[e].concat(b(lf(e.children||[]))):[e]));function cf(e){let{prefixCls:n,dropdownPrefixCls:r,mergedColumns:o,onFilterChange:a,getPopupContainer:i,locale:l,rootClassName:c}=e;gt();const s=t.useMemo((()=>lf(o||[])),[o]),[u,d]=t.useState((()=>nf(s,!0))),f=t.useMemo((()=>{const e=nf(s,!1);if(0===e.length)return e;let t=!0;if(e.forEach((e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)})),t){const e=(s||[]).map(((e,t)=>zu(e,Ku(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,u]),p=t.useMemo((()=>of(f)),[f]),m=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),a(of(t),t)};return[e=>rf(n,r,e,f,l,m,i,void 0,c),f,p]}var sf=globalThis&&globalThis.__rest||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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const i=Ku(a,n);e.children?("sortOrder"in e&&o(e,i),r=[].concat(b(r),b(Cf(e.children,t,i)))):e.sorter&&("sortOrder"in e?o(e,i):t&&e.defaultSortOrder&&r.push({column:e,key:zu(e,i),multiplePriority:yf(e),sortOrder:e.defaultSortOrder}))})),r}function Sf(e,r,o,a,l,c,s,u){return(r||[]).map(((r,d)=>{const f=Ku(d,u);let p=r;if(p.sorter){const u=p.sortDirections||l,d=void 0===p.showSorterTooltip?s:p.showSorterTooltip,m=zu(p,f),g=o.find((e=>{let{key:t}=e;return t===m})),h=g?g.sortOrder:null,v=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(u,h);let b;if(r.sortIcon)b=r.sortIcon({sortOrder:h});else{const r=u.includes(vf)&&t.createElement(hf,{className:n(`${e}-column-sorter-up`,{active:h===vf})}),o=u.includes(bf)&&t.createElement(pf,{className:n(`${e}-column-sorter-down`,{active:h===bf})});b=t.createElement("span",{className:n(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!r||!o)})},t.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},r,o))}const{cancelSort:y,triggerAsc:x,triggerDesc:C}=c||{};let S=y;v===bf?S=C:v===vf&&(S=x);const w="object"==typeof d?Object.assign({title:S},d):{title:S};p=Object.assign(Object.assign({},p),{className:n(p.className,{[`${e}-column-sort`]:h}),title:n=>{const o=`${e}-column-sorters`,a=t.createElement("span",{className:`${e}-column-title`},Lu(r.title,n)),i=t.createElement("div",{className:o},a,b);return d?"boolean"!=typeof d&&"sorter-icon"===(null==d?void 0:d.target)?t.createElement("div",{className:`${o} ${e}-column-sorters-tooltip-target-sorter`},a,t.createElement(ve,Object.assign({},w),b)):t.createElement(ve,Object.assign({},w),i):i},onHeaderCell:t=>{const o=r.onHeaderCell&&r.onHeaderCell(t)||{},l=o.onClick,c=o.onKeyDown;o.onClick=e=>{a({column:r,key:m,sortOrder:v,multiplePriority:yf(r)}),null==l||l(e)},o.onKeyDown=e=>{e.keyCode===i.ENTER&&(a({column:r,key:m,sortOrder:v,multiplePriority:yf(r)}),null==c||c(e))};const s=function(e,t){const n=Lu(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(r.title,{}),u=null==s?void 0:s.toString();return h?o["aria-sort"]="ascend"===h?"ascending":"descending":o["aria-label"]=u||"",o.className=n(o.className,`${e}-column-has-sorters`),o.tabIndex=0,r.ellipsis&&(o.title=(null!=s?s:"").toString()),o}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:Sf(e,p.children,o,a,l,c,s,f)})),p}))}const wf=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},kf=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(wf);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},wf(e[t])),{column:void 0})}return t.length<=1?t[0]||{}:t};function $f(e,t,n){const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),a=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return xf(t)&&n}));return a.length?o.sort(((e,t)=>{for(let n=0;n{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:$f(r,t,n)}):e})):o}function Ef(e,t){return e.map((e=>{const n=Object.assign({},e);return n.title=Lu(e.title,t),"children"in n&&(n.children=Ef(n.children,t)),n}))}function Nf(e){return[t.useCallback((t=>Ef(t,e)),[e])]}const If=eu(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),Mf=fu(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),Of=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:c}=e,s=`${_(n)} ${r} ${o}`,u=(e,r,o)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${_(c(r).mul(-1).equal())}\n ${_(c(c(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${_(c(i).mul(-1).equal())} ${_(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${_(n)} 0 ${_(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}},Df=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},L),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Rf=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Pf=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:h,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${_(o)} ${i} ${l}`,C=y(m).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Bt(e)),{position:"relative",float:"left",boxSizing:"border-box",width:h,height:h,padding:0,color:"inherit",lineHeight:_(h),background:c,border:x,borderRadius:u,transform:`scale(${b})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${_(y(d).mul(-1).equal())} ${_(y(f).mul(-1).equal())}`,padding:`${_(d)} ${_(f)}`}}}},Tf=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:h,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:S,controlItemBgHover:w,controlItemBgActive:k,boxShadowSecondary:$,filterDropdownMenuBg:E,calc:N}=e,I=`${n}-dropdown`,M=`${t}-filter-dropdown`,O=`${n}-tree`,D=`${_(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(i).mul(-1).equal(),marginInline:`${_(i)} ${_(N(m).div(2).mul(-1).equal())}`,padding:`0 ${_(i)}`,color:f,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},H(e)),{minWidth:o,backgroundColor:C,borderRadius:g,boxShadow:$,overflow:"hidden",[`${I}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${_(l)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${_(l)} 0`,paddingInline:l,[O]:{padding:0},[`${O}-treenode ${O}-node-content-wrapper:hover`]:{backgroundColor:w},[`${O}-treenode-checkbox-checked ${O}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${M}-search`]:{padding:l,borderBottom:D,"&-input":{input:{minWidth:a},[r]:{color:x}}},[`${M}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${_(N(l).sub(s).equal())} ${_(l)}`,overflow:"hidden",borderTop:D}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Hf=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:l,calc:c}=e,s=r;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:a,background:i},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},jf=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${_(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Bf=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${_(n)} ${_(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${_(n)} ${_(n)}`}}}}},zf=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Kf=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:i,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(s).add(m(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(a).div(4)).add(m(i).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:_(m(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},Lf=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,a,i)=>({[`${t}${t}-${e}`]:{fontSize:i,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${_(o)} ${_(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:_(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${_(r(o).mul(-1).equal())} ${_(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:_(r(o).mul(-1).equal()),marginInline:`${_(r(n).sub(a).equal())} ${_(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:_(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Af=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},Ff=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f=`${_(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${_(a)} !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Wf=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${_(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${_(o(n).mul(-1).equal())} 0 ${r}`}}}},_f=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,l=`${_(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${_(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},Vf=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:i,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:h,tableFooterBg:v,calc:b}=e,y=`${_(i)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},$t()),{[t]:Object.assign(Object.assign({},H(e)),{fontSize:s,background:u,borderRadius:`${_(d)} ${_(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${_(d)} ${_(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${_(r)} ${_(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${_(r)} ${_(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:_(b(r).mul(-1).equal()),marginInline:`${_(b(a).sub(o).equal())}\n ${_(b(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${_(r)} ${_(o)}`,color:h,background:v}})}},Yf=Y("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:h,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:C,footerColor:S,headerBorderRadius:w,cellFontSize:k,cellFontSizeMD:$,cellFontSizeSM:E,headerSplitColor:N,fixedHeaderSortActiveBg:I,headerFilterHoverBg:M,filterDropdownBg:O,expandIconBg:D,selectionColumnWidth:R,stickyScrollBarBg:P,calc:T}=e,H=V(e,{tableFontSize:k,tableBg:r,tableRadius:w,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:C,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:O,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:$,tableFontSizeSmall:E,tableSelectionColumnWidth:R,tableExpandIconBg:D,tableExpandColumnWidth:T(o).add(T(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[Vf(H),jf(H),Wf(H),Af(H),Tf(H),Of(H),Bf(H),Pf(H),Wf(H),Rf(H),Kf(H),Hf(H),Ff(H),Df(H),Lf(H),zf(H),_f(H)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:C,controlInteractiveSize:S}=e,w=new $e(o).onBackground(n).toHexShortString(),k=new $e(a).onBackground(n).toHexShortString(),$=new $e(t).onBackground(n).toHexShortString(),E=new $e(y),N=new $e(x),I=S/2-b,M=2*I+3*b;return{headerBg:$,headerColor:r,headerSortActiveBg:w,headerSortHoverBg:k,bodySortBg:$,rowHoverBg:$,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:$,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:w,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*h-3*b)/2),headerIconColor:E.clone().setAlpha(E.getAlpha()*C).toRgbString(),headerIconHoverColor:N.clone().setAlpha(N.getAlpha()*C).toRgbString(),expandIconHalfInner:I,expandIconSize:M,expandIconScale:S/M}}),{unitless:{expandIconScale:!0}}),qf=[],Xf=(e,r)=>{var o,a;const{prefixCls:i,className:l,rootClassName:c,style:s,size:u,bordered:d,dropdownPrefixCls:f,dataSource:p,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:v,columns:y,children:x,childrenColumnName:C,onChange:S,getPopupContainer:w,loading:k,expandIcon:$,expandable:E,expandedRowRender:N,expandIconColumnIndex:I,indentSize:M,scroll:D,sortDirections:R,locale:T,showSorterTooltip:H={target:"full-header"},virtual:j}=e;gt();const B=t.useMemo((()=>y||Bs(x)),[y,x]),z=t.useMemo((()=>B.some((e=>e.responsive))),[B]),K=Ze(z),L=t.useMemo((()=>{const e=new Set(Object.keys(K).filter((e=>K[e])));return B.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[B,K]),A=O(e,["className","style","columns"]),{locale:F=nt,direction:W,table:_,renderEmpty:V,getPrefixCls:Y,getPopupContainer:q}=t.useContext(P),X=ae(u),G=Object.assign(Object.assign({},F.Table),T),U=p||qf,Q=Y("table",i),Z=Y("dropdown",f),[,J]=ee(),te=re(Q),[ne,oe,ie]=Yf(Q,te),le=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:I},E),{expandIcon:null!==(o=null==E?void 0:E.expandIcon)&&void 0!==o?o:null===(a=null==_?void 0:_.expandable)||void 0===a?void 0:a.expandIcon}),{childrenColumnName:ce="children"}=le,se=t.useMemo((()=>U.some((e=>null==e?void 0:e[ce]))?"nest":N||E&&E.expandedRowRender?"row":null),[U]),ue={body:t.useRef()},de=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(Q),fe=t.useRef(null),pe=t.useRef(null);Bu(r,(()=>Object.assign(Object.assign({},pe.current),{nativeElement:fe.current})));const me=t.useMemo((()=>"function"==typeof h?h:e=>null==e?void 0:e[h]),[h]),[ge]=function(e,n,r){const o=t.useRef({});return[function(t){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==n||o.current.getRowKey!==r){const a=new Map;function i(e){e.forEach(((e,t)=>{const o=r(e,t);a.set(o,e),e&&"object"==typeof e&&n in e&&i(e[n]||[])}))}i(e),o.current={data:e,childrenColumnName:n,kvMap:a,getRowKey:r}}return o.current.kvMap.get(t)}]}(U,ce,me),he={},ve=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,a;const i=Object.assign(Object.assign({},he),e);n&&(null===(r=he.resetPagination)||void 0===r||r.call(he),(null===(o=i.pagination)||void 0===o?void 0:o.current)&&(i.pagination.current=1),m&&m.onChange&&m.onChange(1,null===(a=i.pagination)||void 0===a?void 0:a.pageSize)),D&&!1!==D.scrollToFirstRowOnChange&&ue.body.current&&_t(0,{getContainer:()=>ue.body.current}),null==S||S(i.pagination,i.filters,i.sorter,{currentDataSource:af($f(U,i.sorterStates,ce),i.filterStates,ce),action:t})},[be,ye,xe,Ce]=function(e){let{prefixCls:n,mergedColumns:r,onSorterChange:o,sortDirections:a,tableLocale:i,showSorterTooltip:l}=e;const[c,s]=t.useState(Cf(r,!0)),u=t.useMemo((()=>{let e=!0;const t=Cf(r,!1);if(!t.length)return c;const n=[];function o(t){e?n.push(t):n.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let a=null;return t.forEach((t=>{null===a?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),o(t))})),n}),[r,c]),d=t.useMemo((()=>{const e=u.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[u]),f=e=>{let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat(b(u.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),o(kf(t),t)};return[e=>Sf(n,e,u,f,a,i,l),u,d,()=>kf(u)]}({prefixCls:Q,mergedColumns:L,onSorterChange:(e,t)=>{ve({sorter:e,sorterStates:t},"sort",!1)},sortDirections:R||["ascend","descend"],tableLocale:G,showSorterTooltip:H}),Se=t.useMemo((()=>$f(U,ye,ce)),[U,ye]);he.sorter=Ce(),he.sorterStates=ye;const[we,ke,$e]=cf({prefixCls:Q,locale:G,dropdownPrefixCls:Z,mergedColumns:L,onFilterChange:(e,t)=>{ve({filters:e,filterStates:t},"filter",!0)},getPopupContainer:w||q,rootClassName:n(c,te)}),Ee=af(Se,ke,ce);he.filters=$e,he.filterStates=ke;const Ne=t.useMemo((()=>{const e={};return Object.keys($e).forEach((t=>{null!==$e[t]&&(e[t]=$e[t])})),Object.assign(Object.assign({},xe),{filters:e})}),[xe,$e]),[Ie]=Nf(Ne),[Me,Oe]=function(e,n,r){const o=r&&"object"==typeof r?r:{},{total:a=0}=o,i=sf(o,["total"]),[l,c]=t.useState((()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:uf}))),s=cc(l,i,{total:a>0?a:e}),u=Math.ceil((a||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!=e?e:1,pageSize:t||s.pageSize})};return!1===r?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,t)=>{var o;r&&(null===(o=r.onChange)||void 0===o||o.call(r,e,t)),d(e,t),n(e,t||(null==s?void 0:s.pageSize))}}),d]}(Ee.length,((e,t)=>{ve({pagination:Object.assign(Object.assign({},he.pagination),{current:e,pageSize:t})},"paginate")}),m);he.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach((t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)})),n}(Me,m),he.resetPagination=Oe;const De=t.useMemo((()=>{if(!1===m||!Me.pageSize)return Ee;const{current:e=1,total:t,pageSize:n=uf}=Me;return Ee.lengthn?Ee.slice((e-1)*n,e*n):Ee:Ee.slice((e-1)*n,e*n)}),[!!m,Ee,Me&&Me.current,Me&&Me.pageSize,Me&&Me.total]),[Re,Pe]=ju({prefixCls:Q,data:Ee,pageData:De,getRowKey:me,getRecordByKey:ge,expandType:se,childrenColumnName:ce,locale:G,getPopupContainer:w||q},g);le.__PARENT_RENDER_ICON__=le.expandIcon,le.expandIcon=le.expandIcon||$||function(e){return function(r){let{prefixCls:o,onExpand:a,record:i,expanded:l,expandable:c}=r;const s=`${o}-row-expand-icon`;return t.createElement("button",{type:"button",onClick:e=>{a(i,e),e.stopPropagation()},className:n(s,{[`${s}-spaced`]:!c,[`${s}-expanded`]:c&&l,[`${s}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}}(G),"nest"===se&&void 0===le.expandIconColumnIndex?le.expandIconColumnIndex=g?1:0:le.expandIconColumnIndex>0&&g&&(le.expandIconColumnIndex-=1),"number"!=typeof le.indentSize&&(le.indentSize="number"==typeof M?M:15);const Te=t.useCallback((e=>Ie(Re(we(be(e))))),[be,we,Re]);let He,je,Be;if(!1!==m&&(null==Me?void 0:Me.total)){let e;e=Me.size?Me.size:"small"===X||"middle"===X?"small":void 0;const r=r=>t.createElement(Kc,Object.assign({},Me,{className:n(`${Q}-pagination ${Q}-pagination-${r}`,Me.className),size:e})),o="rtl"===W?"left":"right",{position:a}=Me;if(null!==a&&Array.isArray(a)){const e=a.find((e=>e.includes("top"))),t=a.find((e=>e.includes("bottom"))),n=a.every((e=>"none"==`${e}`));e||t||n||(je=r(o)),e&&(He=r(e.toLowerCase().replace("top",""))),t&&(je=r(t.toLowerCase().replace("bottom","")))}else je=r(o)}"boolean"==typeof k?Be={spinning:k}:"object"==typeof k&&(Be=Object.assign({spinning:!0},k));const ze=n(ie,te,`${Q}-wrapper`,null==_?void 0:_.className,{[`${Q}-wrapper-rtl`]:"rtl"===W},l,c,oe),Ke=Object.assign(Object.assign({},null==_?void 0:_.style),s),Le=T&&T.emptyText||(null==V?void 0:V("Table"))||t.createElement(er,{componentName:"Table"}),Ae=j?Mf:If,Fe={},We=t.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=J,a=Math.floor(e*t);switch(X){case"large":return 2*n+a;case"small":return 2*r+a;default:return 2*o+a}}),[J,X]);return j&&(Fe.listItemHeight=We),ne(t.createElement("div",{ref:fe,className:ze,style:Ke},t.createElement(Et,Object.assign({spinning:!1},Be),He,t.createElement(Ae,Object.assign({},Fe,A,{ref:pe,columns:L,direction:W,expandable:le,prefixCls:Q,className:n({[`${Q}-middle`]:"middle"===X,[`${Q}-small`]:"small"===X,[`${Q}-bordered`]:d,[`${Q}-empty`]:0===U.length},ie,te,oe),data:De,rowKey:me,rowClassName:(e,t,r)=>{let o;return o=n("function"==typeof v?v(e,t,r):v),n({[`${Q}-row-selected`]:Pe.has(me(e,t))},o)},emptyText:Le,internalHooks:Gc,internalRefs:ue,transformColumns:Te,getContainerWidth:de})),je)))},Gf=t.forwardRef(Xf),Uf=(e,n)=>{const r=t.useRef(0);return r.current+=1,t.createElement(Gf,Object.assign({},e,{ref:n,_renderTimes:r.current}))},Qf=t.forwardRef(Uf);Qf.SELECTION_COLUMN=Ou,Qf.EXPAND_COLUMN=Xc,Qf.SELECTION_ALL=Du,Qf.SELECTION_INVERT=Ru,Qf.SELECTION_NONE=Pu,Qf.Column=function(e){return null},Qf.ColumnGroup=function(e){return null},Qf.Summary=gs;const Zf=Qf;const Jf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var ep=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:Jf}))}; -/**![delete](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM2MCAxODRoLThjNC40IDAgOC0zLjYgOC04djhoMzA0di04YzAgNC40IDMuNiA4IDggOGgtOHY3Mmg3MnYtODBjMC0zNS4zLTI4LjctNjQtNjQtNjRIMzUyYy0zNS4zIDAtNjQgMjguNy02NCA2NHY4MGg3MnYtNzJ6bTUwNCA3MkgxNjBjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjMyYzAgNC40IDMuNiA4IDggOGg2MC40bDI0LjcgNTIzYzEuNiAzNC4xIDI5LjggNjEgNjMuOSA2MWg0NTRjMzQuMiAwIDYyLjMtMjYuOCA2My45LTYxbDI0LjctNTIzSDg4OGM0LjQgMCA4LTMuNiA4LTh2LTMyYzAtMTcuNy0xNC4zLTMyLTMyLTMyek03MzEuMyA4NDBIMjkyLjdsLTI0LjItNTEyaDQ4N2wtMjQuMiA1MTJ6IiAvPjwvc3ZnPg==) */const tp=t.forwardRef(ep);const np={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var rp=function(e,n){return t.createElement(Pe,p({},e,{ref:n,icon:np}))}; -/**![info-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTQ2NCAzMzZhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem03MiAxMTJoLTQ4Yy00LjQgMC04IDMuNi04IDh2MjcyYzAgNC40IDMuNiA4IDggOGg0OGM0LjQgMCA4LTMuNiA4LThWNDU2YzAtNC40LTMuNi04LTgtOHoiIC8+PC9zdmc+) */const op=t.forwardRef(rp),ap=(e,t,n)=>{if(e){n?.preventDefault(),n?.stopPropagation();try{navigator.clipboard.writeText(e),Nt.success(t("token.copySuccess"))}catch(r){r.target.select()}}},ip={getShareList:()=>It.get({url:"/share/list"}),addShare:e=>It.post({url:"/share/add",data:e}),updateShare:e=>It.post({url:"/share/update",data:e}),searchShare:(e,t,n)=>It.post({url:"/share/search",data:{email:t,uniqueName:n,accountType:e}}),deleteShare:e=>It.post({url:"/share/delete",data:e}),getShareStatistic:e=>It.post({url:"/share/statistic",data:{accountId:e}}),chatLoginShare:(e,t)=>It.post({url:"/login_share",data:{username:e,password:t}})},lp=()=>{const e=Mt();return Ot(ip.addShare,{onSuccess:()=>{e.invalidateQueries(["accounts"]),e.invalidateQueries(["shareList"]),Nt.success("Success")}})},cp=()=>{const e=Mt();return Ot(ip.updateShare,{onSuccess:()=>{e.invalidateQueries(["shareList"]),Nt.success("Success")}})},sp=()=>{const e=Mt();return Ot(ip.deleteShare,{onSuccess:()=>{e.invalidateQueries(["shareList"]),Nt.success("Success")}})},up={id:void 0,accountId:-1,email:"",uniqueName:"",password:"",shareToken:"",refreshEveryday:!1,comment:"",expiresIn:0,expiresAt:void 0,siteLimit:"",gpt35Limit:-1,gpt4Limit:-1,showUserinfo:!1,temporaryChat:!1,showConversations:!1};function dp(e){return Dt.jsxs(Rt,{children:[e.label,Dt.jsx(ve,{title:e.info,children:Dt.jsx(op,{})})]})}function fp({title:e,show:n,formValue:r,onOk:o,onCancel:a}){const[i]=Lt.useForm(),[l,c]=t.useState(!1),{t:s}=Pt(),u="Edit"===e||"编辑"===e?"edit":"create";t.useEffect((()=>{i.setFieldsValue({...r,expiresAt:r.expiresAt?_r(r.expiresAt):void 0})}),[r,i]);return Dt.jsx(Tt,{title:e,open:n,onOk:()=>{i.validateFields().then((e=>{const t=e.expiresAt;e.expiresAt=t?t.format("YYYY-MM-DD"):void 0,o(e,c)}))},getContainer:!1,onCancel:()=>{a()},okButtonProps:{loading:l},destroyOnClose:!1,children:Dt.jsxs(Lt,{initialValues:r,form:i,layout:"vertical",preserve:!1,children:[Dt.jsx(Lt.Item,{name:"id",hidden:!0,children:Dt.jsx(St,{})}),Dt.jsx(Lt.Item,{name:"shareType",hidden:!0,children:Dt.jsx(St,{})}),"chatgpt"===r.shareType&&Dt.jsx(Lt.Item,{name:"shareToken",hidden:!0,children:Dt.jsx(St,{})}),Dt.jsx(Lt.Item,{name:"accountId",hidden:!0,children:Dt.jsx(St,{})}),Dt.jsx(Lt.Item,{label:"Unique Name",name:"uniqueName",required:!0,children:Dt.jsx(St,{readOnly:"edit"===u,disabled:"edit"===u})}),Dt.jsx(Lt.Item,{label:s("token.password"),name:"password",required:!0,children:Dt.jsx(St.Password,{})}),Dt.jsxs(At,{gutter:16,children:[Dt.jsx(Ft,{span:12,children:Dt.jsx(Lt.Item,{label:s("token.expiresAt"),name:"expiresAt",children:Dt.jsx(ac,{style:{width:"100%"},format:"YYYY-MM-DD"})})}),"chatgpt"===r.shareType&&Dt.jsx(Ft,{span:12,children:Dt.jsx(Lt.Item,{label:s("token.siteLimit"),name:"siteLimit",children:Dt.jsx(St,{placeholder:"eg: https://demo.oaifree.com"})})})]}),"chatgpt"===r.shareType&&Dt.jsxs(At,{gutter:16,children:[Dt.jsx(Ft,{span:12,children:Dt.jsx(Lt.Item,{label:s("token.gpt35Limit"),name:"gpt35Limit",children:Dt.jsx(jl,{style:{width:"100%"},formatter:e=>{switch(e?.toString()){case"-1":return"无限制";case"0":return"禁用";default:return`${e}`}},parser:e=>{switch(e){case"无限制":return-1;case"禁用":return 0;default:return parseInt(e)}}})})}),Dt.jsx(Ft,{span:12,children:Dt.jsx(Lt.Item,{label:Dt.jsx(dp,{label:s("token.gpt4Limit"),info:"这里的限制只是在FK限制,而不是OpenAi的限额"}),name:"gpt4Limit",children:Dt.jsx(jl,{style:{width:"100%"},formatter:e=>{switch(e?.toString()){case"-1":return"无限制";case"0":return"禁用";default:return`${e}`}},parser:e=>{switch(e){case"无限制":return-1;case"禁用":return 0;default:return parseInt(e)}}})})})]}),"chatgpt"===r.shareType&&Dt.jsxs(At,{children:[Dt.jsx(Ft,{span:8,children:Dt.jsx(Lt.Item,{label:Dt.jsx(dp,{label:s("token.refreshEveryday"),info:"刷新次数限制的频率,"}),name:"refreshEveryday",valuePropName:"checked",children:Dt.jsx(al,{})})}),Dt.jsx(Ft,{span:7,children:Dt.jsx(Lt.Item,{label:s("token.showUserinfo"),name:"showUserinfo",labelCol:{span:18},wrapperCol:{span:6},valuePropName:"checked",children:Dt.jsx(al,{defaultChecked:!1})})}),Dt.jsx(Ft,{span:5,children:Dt.jsx(Lt.Item,{label:s("token.showConversations"),name:"showConversations",valuePropName:"checked",children:Dt.jsx(al,{defaultChecked:!0})})}),Dt.jsx(Ft,{span:4,children:Dt.jsx(Lt.Item,{label:s("token.temporaryChat"),name:"temporaryChat",valuePropName:"checked",children:Dt.jsx(al,{defaultChecked:!0})})})]}),Dt.jsx(Lt.Item,{label:s("token.comment"),name:"comment",children:Dt.jsx(St.TextArea,{})})]})})}export{tp as D,op as I,qc as P,fp as S,Zf as T,sp as a,cp as b,up as d,ap as o,ip as s,lp as u}; diff --git a/frontend/dist/assets/__commonjsHelpers__-02d3be64.js b/frontend/dist/assets/__commonjsHelpers__-02d3be64.js deleted file mode 100644 index d6f8d42..0000000 --- a/frontend/dist/assets/__commonjsHelpers__-02d3be64.js +++ /dev/null @@ -1 +0,0 @@ -var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as c,o as g}; diff --git a/frontend/dist/assets/accountService-983f3c33.js b/frontend/dist/assets/accountService-339f9b3a.js similarity index 91% rename from frontend/dist/assets/accountService-983f3c33.js rename to frontend/dist/assets/accountService-339f9b3a.js index 25859a1..2cf6e26 100644 --- a/frontend/dist/assets/accountService-983f3c33.js +++ b/frontend/dist/assets/accountService-339f9b3a.js @@ -1 +1 @@ -import{a8 as t}from"./index-32c3357d.js";const a={getAccountList:()=>t.get({url:"/account/list"}).then((t=>(t.forEach((t=>{t.shareList&&(t.shareList=JSON.parse(t.shareList))})),t))),searchAccountList:(a,c)=>t.post({url:"/account/search",data:{email:a,accountType:c}}).then((t=>(t.forEach((t=>{t.shareList&&(t.shareList=JSON.parse(t.shareList))})),t))),addAccount:a=>t.post({url:"/account/add",data:a}),updateAccount:a=>t.post({url:"/account/update",data:a}),deleteAccount:a=>t.post({url:"/account/delete",data:{id:a}}),refreshAccount:a=>t.post({url:"/account/refresh",data:{id:a}}),getShareAccountList:()=>t.post({url:"/share_accounts"}),loginFreeAccount:a=>t.post({url:"/login_free_account",data:a})};export{a}; +import{aa as t}from"./index-24044c4a.js";const a={getAccountList:()=>t.get({url:"/account/list"}).then((t=>(t.forEach((t=>{t.shareList&&(t.shareList=JSON.parse(t.shareList))})),t))),searchAccountList:(a,c)=>t.post({url:"/account/search",data:{email:a,accountType:c}}).then((t=>(t.forEach((t=>{t.shareList&&(t.shareList=JSON.parse(t.shareList))})),t))),addAccount:a=>t.post({url:"/account/add",data:a}),updateAccount:a=>t.post({url:"/account/update",data:a}),deleteAccount:a=>t.post({url:"/account/delete",data:{id:a}}),refreshAccount:a=>t.post({url:"/account/refresh",data:{id:a}}),getShareAccountList:()=>t.post({url:"/share_accounts"}),loginFreeAccount:a=>t.post({url:"/login_free_account",data:a})};export{a}; diff --git a/frontend/dist/assets/bounce-9497c072.js b/frontend/dist/assets/bounce-a09546fe.js similarity index 96% rename from frontend/dist/assets/bounce-9497c072.js rename to frontend/dist/assets/bounce-a09546fe.js index 004f453..7f29b46 100644 --- a/frontend/dist/assets/bounce-9497c072.js +++ b/frontend/dist/assets/bounce-a09546fe.js @@ -1 +1 @@ -import{j as a,cy as t}from"./index-32c3357d.js";function i({children:i,className:n}){return a.jsx(t.div,{initial:"initial",animate:"animate",exit:"exit",variants:{animate:{transition:{staggerChildren:e?.staggerIn||.05,delayChildren:e?.staggerIn||.05}},exit:{transition:{staggerChildren:e?.staggerIn||.05,staggerDirection:-1}}},className:n,children:i});var e}const n=a=>({duration:a?.durationIn||.64,ease:a?.easeIn||[.43,.13,.23,.96]}),e=a=>({duration:a?.durationOut||.48,ease:a?.easeOut||[.43,.13,.23,.96]}),s=a=>{const t=a?.durationIn,i=a?.durationOut,s=a?.easeIn,o=a?.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...n({durationIn:t,easeIn:s})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}};export{i as M,s as v}; +import{j as a,cA as t}from"./index-24044c4a.js";function i({children:i,className:n}){return a.jsx(t.div,{initial:"initial",animate:"animate",exit:"exit",variants:{animate:{transition:{staggerChildren:e?.staggerIn||.05,delayChildren:e?.staggerIn||.05}},exit:{transition:{staggerChildren:e?.staggerIn||.05,staggerDirection:-1}}},className:n,children:i});var e}const n=a=>({duration:a?.durationIn||.64,ease:a?.easeIn||[.43,.13,.23,.96]}),e=a=>({duration:a?.durationOut||.48,ease:a?.easeOut||[.43,.13,.23,.96]}),s=a=>{const t=a?.durationIn,i=a?.durationOut,s=a?.easeIn,o=a?.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...n({durationIn:t,easeIn:s})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}};export{i as M,s as v}; diff --git a/frontend/dist/assets/chatgpt-e0a23f57.js b/frontend/dist/assets/chatgpt-4810e4b7.js similarity index 98% rename from frontend/dist/assets/chatgpt-e0a23f57.js rename to frontend/dist/assets/chatgpt-4810e4b7.js index f50d9d9..3ddf530 100644 --- a/frontend/dist/assets/chatgpt-e0a23f57.js +++ b/frontend/dist/assets/chatgpt-4810e4b7.js @@ -1,4 +1,4 @@ -import{y as t,z as e,D as i,E as a,r as s,A as r,n as o,e as n,G as l,J as h,C as c,T as d,K as g,j as u,u as p,M as f,q as x,O as b,I as v,P as m,B as y,Q as w,U as k,V as A}from"./index-32c3357d.js";import{s as S,u as C,d as L,o as P,P as M,D as I,T,S as z}from"./ShareModal-d881e5fb.js";import{a as X}from"./accountService-983f3c33.js";import{u as E,a as Y,b as R,c as F,C as O,E as H,B as D,S as N,R as W,A as B}from"./AccountModal-c4efbab5.js";import{u as G}from"./useQuery-77691717.js";import{F as V}from"./index-8d9b92bb.js";import{T as j,E as _}from"./index-8826920f.js";import{R as U,C as q}from"./row-4d2b6eab.js";import"./__commonjsHelpers__-02d3be64.js";const Z=t((function(t,i,a){var s,r={};for(s in a=a||{},i=i||{})e(s,i)&&(r[s]=e(s,a)?t(s,i[s],a[s]):i[s]);for(s in a)e(s,a)&&!e(s,r)&&(r[s]=a[s]);return r}));const $=t((function t(e,a,s){return Z((function(a,s,r){return i(s)&&i(r)?t(e,s,r):e(a,s,r)}),a,s)}));const J=a((function(t,e){return $((function(t,e,i){return i}),t,e)}));const K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-40 632H134V236h752v560zm-658.9-82.3c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L531 565 416.6 450.5a8.03 8.03 0 00-11.3 0l-214.9 215a8.03 8.03 0 000 11.3l36.7 36.9z"}}]},name:"fund",theme:"outlined"};var Q=function(t,e){return s.createElement(r,o({},t,{ref:e,icon:K}))}; +import{D as t,E as e,G as i,J as a,r as s,A as r,n as o,e as n,K as l,M as h,C as c,T as d,O as g,j as u,u as p,P as f,t as x,Q as b,I as v,U as m,B as y,V as w,W as k,X as A}from"./index-24044c4a.js";import{s as S,u as C,d as L,o as P,P as M,D as I,T,S as z}from"./ShareModal-b94ef087.js";import{a as X}from"./accountService-339f9b3a.js";import{u as E,a as Y,b as R,c as F,C as O,E as H,B as D,S as N,R as W,A as B}from"./AccountModal-418b3074.js";import{u as G}from"./useQuery-db800160.js";import{F as V}from"./index-4dcab9f7.js";import{T as j,E as _}from"./index-af2c6676.js";import{R as U,C as q}from"./row-2dc4d0fe.js";const Z=t((function(t,i,a){var s,r={};for(s in a=a||{},i=i||{})e(s,i)&&(r[s]=e(s,a)?t(s,i[s],a[s]):i[s]);for(s in a)e(s,a)&&!e(s,r)&&(r[s]=a[s]);return r}));const $=t((function t(e,a,s){return Z((function(a,s,r){return i(s)&&i(r)?t(e,s,r):e(a,s,r)}),a,s)}));const J=a((function(t,e){return $((function(t,e,i){return i}),t,e)}));const K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-40 632H134V236h752v560zm-658.9-82.3c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L531 565 416.6 450.5a8.03 8.03 0 00-11.3 0l-214.9 215a8.03 8.03 0 000 11.3l36.7 36.9z"}}]},name:"fund",theme:"outlined"};var Q=function(t,e){return s.createElement(r,o({},t,{ref:e,icon:K}))}; /**![fund](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyNiAxNjRIOTRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjY0MGMwIDE3LjcgMTQuMyAzMiAzMiAzMmg4MzJjMTcuNyAwIDMyLTE0LjMgMzItMzJWMTk2YzAtMTcuNy0xNC4zLTMyLTMyLTMyem0tNDAgNjMySDEzNFYyMzZoNzUydjU2MHptLTY1OC45LTgyLjNjMy4xIDMuMSA4LjIgMy4xIDExLjMgMGwxNzIuNS0xNzIuNSAxMTQuNCAxMTQuNWMzLjEgMy4xIDguMiAzLjEgMTEuMyAwbDI5Ny0yOTcuMmMzLjEtMy4xIDMuMS04LjIgMC0xMS4zbC0zNi44LTM2LjhhOC4wMyA4LjAzIDAgMDAtMTEuMyAwTDUzMSA1NjUgNDE2LjYgNDUwLjVhOC4wMyA4LjAzIDAgMDAtMTEuMyAwbC0yMTQuOSAyMTVhOC4wMyA4LjAzIDAgMDAwIDExLjNsMzYuNyAzNi45eiIgLz48L3N2Zz4=) */const tt=s.forwardRef(Q);var et={},it={exports:{}}; /*! * ApexCharts v3.49.0 @@ -58,4 +58,4 @@ function(){function t(t){t.remember("_draggable",this),this.el=t}t.prototype.ini } } } -`;const ft=s.memo((function(t){const{themeMode:e}=g(),i=n();return u.jsx(pt,{$thememode:e,$theme:i,children:u.jsx(at,{...t})})}));function xt({accountId:t,onOk:e,show:i}){const{data:a,isLoading:s}=G({queryKey:["shareInfo",t],queryFn:()=>S.getShareStatistic(t),enabled:i}),{t:r}=p(),o=function(t){const e=n(),i={show:!0,label:"Total",color:e.colorTextSecondary,fontSize:e.fontSizeHeading2,lineHeight:e.lineHeightHeading2},a={offsetY:8,color:e.colorText,fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3},s={colors:[e.colorPrimary,e.colorWarning,e.colorInfo,e.colorError,e.colorSuccess,e.colorWarningActive,e.colorSuccessActive,e.colorInfoActive,e.colorInfoText],chart:{toolbar:{show:!1},zoom:{enabled:!1},foreColor:e.colorTextDisabled,fontFamily:e.fontFamily},states:{hover:{filter:{type:"lighten",value:.04}},active:{filter:{type:"darken",value:.88}}},fill:{opacity:1,gradient:{type:"vertical",shadeIntensity:0,opacityFrom:.4,opacityTo:0,stops:[0,100]}},dataLabels:{enabled:!1},stroke:{width:3,curve:"smooth",lineCap:"round"},grid:{strokeDashArray:3,borderColor:e.colorSplit,xaxis:{lines:{show:!1}}},xaxis:{axisBorder:{show:!1},axisTicks:{show:!1}},markers:{size:0},tooltip:{theme:!1,x:{show:!0}},legend:{show:!0,fontSize:13,position:"top",horizontalAlign:"right",markers:{radius:12},fontWeight:500,itemMargin:{horizontal:8},labels:{colors:e.colorText}},plotOptions:{bar:{borderRadius:4,columnWidth:"28%",borderRadiusApplication:"end",borderRadiusWhenStacked:"last"},pie:{donut:{labels:{show:!0,value:a,total:i}}},radialBar:{track:{strokeWidth:"100%"},dataLabels:{value:a,total:i}},radar:{polygons:{fill:{colors:["transparent"]},strokeColors:e.colorSplit,connectorColors:e.colorSplit}},polarArea:{rings:{strokeColor:e.colorSplit},spokes:{connectorColors:e.colorSplit}}},responsive:[{breakpoint:e.screenSM,options:{plotOptions:{bar:{columnWidth:"40%"}}}},{breakpoint:e.screenMD,options:{plotOptions:{bar:{columnWidth:"32%"}}}}]};return J(s,t)}({legend:{horizontalAlign:"center"},stroke:{show:!0},dataLabels:{enabled:!0,dropShadow:{enabled:!1}},xaxis:{categories:a?.categories||[]},tooltip:{fillSeriesColor:!1},plotOptions:{pie:{donut:{labels:{show:!1}}}}});return u.jsx(f,{title:r("token.statistic"),open:i,onOk:e,closable:!1,onCancel:e,children:u.jsx(x,{spinning:s,tip:r("token.queryingInfo"),children:u.jsx(ft,{type:"bar",series:a?.series||[],options:o,height:320})})})}function bt(){const[t]=V.useForm(),{t:e}=p(),i=E(),a=Y(),r=R(),o=F(),n=C(),l=b(),[h,c]=s.useState(-1),[d,g]=s.useState(-1),f=V.useWatch("email",t),x={id:void 0,email:"",accountType:"chatgpt",password:"",refreshToken:"",accessToken:"",shared:0},[S,Z]=s.useState({formValue:{...x},title:"New",show:!1,onOk:(t,e)=>{t.id?a.mutate(t,{onSuccess:()=>{Z((t=>({...t,show:!1})))},onSettled:()=>e(!1)}):i.mutate(t,{onSuccess:()=>{Z((t=>({...t,show:!1})))},onSettled:()=>e(!1)})},onCancel:()=>{Z((t=>({...t,show:!1,formValue:{...x}})))}}),[$,J]=s.useState({formValue:{...L,shareType:"chatgpt"},title:"New",show:!1,onOk:(t,e)=>{e(!0),n.mutate(t,{onSuccess:()=>{J((t=>({...t,show:!1})))},onSettled:()=>{e(!1)}})},onCancel:()=>{J((t=>({...t,show:!1})))}}),[K,Q]=s.useState({accountId:-1,show:!1,onOk:()=>{Q((t=>({...t,show:!1})))}}),et=[{title:e("token.email"),dataIndex:"email",ellipsis:!0,align:"center",render:t=>u.jsx(j.Text,{style:{maxWidth:200},ellipsis:!0,children:t})},{title:e("token.password"),dataIndex:"password",align:"center",ellipsis:!0,render:t=>u.jsx(j.Text,{style:{maxWidth:200},ellipsis:!0,children:t})},{title:"Refresh Token",dataIndex:"refreshToken",align:"center",width:150,render:(t,i)=>i.refreshToken?u.jsx(v,{value:i.refreshToken,onClick:t=>P(i.refreshToken,e,t),readOnly:!0}):u.jsx(m,{color:"error",children:"Empty"})},{title:"Access Token",dataIndex:"accessToken",align:"center",width:100,render:(t,i)=>i.accessToken?u.jsx(v,{value:i.accessToken,onClick:t=>P(i.accessToken,e,t),readOnly:!0}):u.jsx(m,{color:"error",children:"Empty"})},{title:e("token.shareStatus"),dataIndex:"shared",align:"center",width:100,render:(t,e)=>1==e.shared?u.jsx(O,{twoToneColor:"#52c41a"}):u.jsx(H,{twoToneColor:"#fa8c16"})},{title:e("token.updateTime"),dataIndex:"updateTime",align:"center",width:200},{title:e("token.share"),key:"share",align:"center",render:(t,i)=>u.jsxs(y.Group,{children:[u.jsx(D,{count:i.shareList?.length,style:{zIndex:9},children:u.jsx(y,{icon:u.jsx(N,{}),onClick:()=>l({pathname:"/admin/share/chatgpt",search:`?email=${i.email}`}),children:e("token.shareList")})}),u.jsx(y,{icon:u.jsx(w,{}),onClick:()=>at(i)}),u.jsx(y,{icon:u.jsx(tt,{}),onClick:()=>st(i)})]})},{title:e("token.action"),key:"operation",align:"center",render:(t,i)=>u.jsxs(y.Group,{children:[u.jsx(M,{title:e("common.refreshConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{g(i.id),o.mutate(i.id,{onSettled:()=>g(void 0)})},children:u.jsx(y,{icon:u.jsx(W,{}),type:"primary",loading:d===i.id,children:e("common.refresh")},i.id)}),u.jsx(y,{onClick:()=>rt(i),icon:u.jsx(_,{}),type:"primary"}),u.jsx(M,{title:e("common.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{c(i.id),r.mutate(i.id,{onSuccess:()=>c(void 0)})},children:u.jsx(y,{icon:u.jsx(I,{}),type:"primary",loading:h===i.id,danger:!0})})]})}],{data:it}=G({queryKey:["accounts","chatgpt",f],queryFn:()=>X.searchAccountList(f,"chatgpt")}),at=t=>{J((i=>({...i,show:!0,title:e("token.share"),formValue:{...L,accountId:t.id,shareType:"chatgpt"}})))},st=t=>{Q((e=>({...e,show:!0,accountId:t.id,shareType:"chatgpt"})))},rt=t=>{Z((i=>({...i,show:!0,title:e("token.edit"),formValue:{...i.formValue,id:t.id,email:t.email,password:t.password,shared:t.shared,refreshToken:t.refreshToken,accessToken:t.accessToken}})))};return u.jsxs(k,{direction:"vertical",size:"large",className:"w-full",children:[u.jsx(A,{children:u.jsx(V,{form:t,children:u.jsxs(U,{gutter:[16,16],children:[u.jsx(q,{span:6,lg:6,children:u.jsx(V.Item,{label:e("token.email"),name:"email",className:"!mb-0",children:u.jsx(v,{})})}),u.jsx(q,{span:18,lg:18,children:u.jsxs("div",{className:"flex justify-end",children:[u.jsx(y,{onClick:()=>{t.resetFields()},children:e("token.reset")}),u.jsx(y,{type:"primary",className:"ml-4",children:e("token.search")})]})})]})})}),u.jsx(A,{title:e("token.accountList"),extra:u.jsx(k,{children:u.jsx(y,{type:"primary",onClick:()=>{Z((t=>({...t,show:!0,title:e("token.createNew"),formValue:{...x}})))},children:e("token.createNew")})}),children:u.jsx(T,{rowKey:"id",size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:et,dataSource:it})}),u.jsx(B,{...S}),u.jsx(z,{...$}),u.jsx(xt,{...K})]})}export{bt as default}; +`;const ft=s.memo((function(t){const{themeMode:e}=g(),i=n();return u.jsx(pt,{$thememode:e,$theme:i,children:u.jsx(at,{...t})})}));function xt({accountId:t,onOk:e,show:i}){const{data:a,isLoading:s}=G({queryKey:["shareInfo",t],queryFn:()=>S.getShareStatistic(t),enabled:i}),{t:r}=p(),o=function(t){const e=n(),i={show:!0,label:"Total",color:e.colorTextSecondary,fontSize:e.fontSizeHeading2,lineHeight:e.lineHeightHeading2},a={offsetY:8,color:e.colorText,fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3},s={colors:[e.colorPrimary,e.colorWarning,e.colorInfo,e.colorError,e.colorSuccess,e.colorWarningActive,e.colorSuccessActive,e.colorInfoActive,e.colorInfoText],chart:{toolbar:{show:!1},zoom:{enabled:!1},foreColor:e.colorTextDisabled,fontFamily:e.fontFamily},states:{hover:{filter:{type:"lighten",value:.04}},active:{filter:{type:"darken",value:.88}}},fill:{opacity:1,gradient:{type:"vertical",shadeIntensity:0,opacityFrom:.4,opacityTo:0,stops:[0,100]}},dataLabels:{enabled:!1},stroke:{width:3,curve:"smooth",lineCap:"round"},grid:{strokeDashArray:3,borderColor:e.colorSplit,xaxis:{lines:{show:!1}}},xaxis:{axisBorder:{show:!1},axisTicks:{show:!1}},markers:{size:0},tooltip:{theme:!1,x:{show:!0}},legend:{show:!0,fontSize:13,position:"top",horizontalAlign:"right",markers:{radius:12},fontWeight:500,itemMargin:{horizontal:8},labels:{colors:e.colorText}},plotOptions:{bar:{borderRadius:4,columnWidth:"28%",borderRadiusApplication:"end",borderRadiusWhenStacked:"last"},pie:{donut:{labels:{show:!0,value:a,total:i}}},radialBar:{track:{strokeWidth:"100%"},dataLabels:{value:a,total:i}},radar:{polygons:{fill:{colors:["transparent"]},strokeColors:e.colorSplit,connectorColors:e.colorSplit}},polarArea:{rings:{strokeColor:e.colorSplit},spokes:{connectorColors:e.colorSplit}}},responsive:[{breakpoint:e.screenSM,options:{plotOptions:{bar:{columnWidth:"40%"}}}},{breakpoint:e.screenMD,options:{plotOptions:{bar:{columnWidth:"32%"}}}}]};return J(s,t)}({legend:{horizontalAlign:"center"},stroke:{show:!0},dataLabels:{enabled:!0,dropShadow:{enabled:!1}},xaxis:{categories:a?.categories||[]},tooltip:{fillSeriesColor:!1},plotOptions:{pie:{donut:{labels:{show:!1}}}}});return u.jsx(f,{title:r("token.statistic")+"(00:00 ~ 23:59)",open:i,onOk:e,closable:!1,onCancel:e,children:u.jsx(x,{spinning:s,tip:r("token.queryingInfo"),children:u.jsx(ft,{type:"bar",series:a?.series||[],options:o,height:320})})})}function bt(){const[t]=V.useForm(),{t:e}=p(),i=E(),a=Y(),r=R(),o=F(),n=C(),l=b(),[h,c]=s.useState(-1),[d,g]=s.useState(-1),f=V.useWatch("email",t),x={id:void 0,email:"",accountType:"chatgpt",password:"",refreshToken:"",accessToken:"",shared:0},[S,Z]=s.useState({formValue:{...x},title:"New",show:!1,onOk:(t,e)=>{t.id?a.mutate(t,{onSuccess:()=>{Z((t=>({...t,show:!1})))},onSettled:()=>e(!1)}):i.mutate(t,{onSuccess:()=>{Z((t=>({...t,show:!1})))},onSettled:()=>e(!1)})},onCancel:()=>{Z((t=>({...t,show:!1,formValue:{...x}})))}}),[$,J]=s.useState({formValue:{...L,shareType:"chatgpt"},title:"New",show:!1,onOk:(t,e)=>{e(!0),n.mutate(t,{onSuccess:()=>{J((t=>({...t,show:!1})))},onSettled:()=>{e(!1)}})},onCancel:()=>{J((t=>({...t,show:!1})))}}),[K,Q]=s.useState({accountId:-1,show:!1,onOk:()=>{Q((t=>({...t,show:!1})))}}),et=[{title:e("token.email"),dataIndex:"email",ellipsis:!0,align:"center",render:t=>u.jsx(j.Text,{style:{maxWidth:200},ellipsis:!0,children:t})},{title:e("token.password"),dataIndex:"password",align:"center",ellipsis:!0,render:t=>u.jsx(j.Text,{style:{maxWidth:200},ellipsis:!0,children:t})},{title:"Refresh Token",dataIndex:"refreshToken",align:"center",width:150,render:(t,i)=>i.refreshToken?u.jsx(v,{value:i.refreshToken,onClick:t=>P(i.refreshToken,e,t),readOnly:!0}):u.jsx(m,{color:"error",children:"Empty"})},{title:"Access Token",dataIndex:"accessToken",align:"center",width:100,render:(t,i)=>i.accessToken?u.jsx(v,{value:i.accessToken,onClick:t=>P(i.accessToken,e,t),readOnly:!0}):u.jsx(m,{color:"error",children:"Empty"})},{title:e("token.shareStatus"),dataIndex:"shared",align:"center",width:100,render:(t,e)=>1==e.shared?u.jsx(O,{twoToneColor:"#52c41a"}):u.jsx(H,{twoToneColor:"#fa8c16"})},{title:e("token.updateTime"),dataIndex:"updateTime",align:"center",width:200},{title:e("token.share"),key:"share",align:"center",render:(t,i)=>u.jsxs(y.Group,{children:[u.jsx(D,{count:i.shareList?.length,style:{zIndex:9},children:u.jsx(y,{icon:u.jsx(N,{}),onClick:()=>l({pathname:"/admin/share/chatgpt",search:`?email=${i.email}`}),children:e("token.shareList")})}),u.jsx(y,{icon:u.jsx(w,{}),onClick:()=>at(i)}),u.jsx(y,{icon:u.jsx(tt,{}),onClick:()=>st(i)})]})},{title:e("token.action"),key:"operation",align:"center",render:(t,i)=>u.jsxs(y.Group,{children:[u.jsx(M,{title:e("common.refreshConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{g(i.id),o.mutate(i.id,{onSettled:()=>g(void 0)})},children:u.jsx(y,{icon:u.jsx(W,{}),type:"primary",loading:d===i.id,children:e("common.refresh")},i.id)}),u.jsx(y,{onClick:()=>rt(i),icon:u.jsx(_,{}),type:"primary"}),u.jsx(M,{title:e("common.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{c(i.id),r.mutate(i.id,{onSuccess:()=>c(void 0)})},children:u.jsx(y,{icon:u.jsx(I,{}),type:"primary",loading:h===i.id,danger:!0})})]})}],{data:it}=G({queryKey:["accounts","chatgpt",f],queryFn:()=>X.searchAccountList(f,"chatgpt")}),at=t=>{J((i=>({...i,show:!0,title:e("token.share"),formValue:{...L,accountId:t.id,shareType:"chatgpt"}})))},st=t=>{Q((e=>({...e,show:!0,accountId:t.id,shareType:"chatgpt"})))},rt=t=>{Z((i=>({...i,show:!0,title:e("token.edit"),formValue:{...i.formValue,id:t.id,email:t.email,password:t.password,shared:t.shared,refreshToken:t.refreshToken,accessToken:t.accessToken}})))};return u.jsxs(k,{direction:"vertical",size:"large",className:"w-full",children:[u.jsx(A,{children:u.jsx(V,{form:t,children:u.jsxs(U,{gutter:[16,16],children:[u.jsx(q,{span:6,lg:6,children:u.jsx(V.Item,{label:e("token.email"),name:"email",className:"!mb-0",children:u.jsx(v,{})})}),u.jsx(q,{span:18,lg:18,children:u.jsxs("div",{className:"flex justify-end",children:[u.jsx(y,{onClick:()=>{t.resetFields()},children:e("token.reset")}),u.jsx(y,{type:"primary",className:"ml-4",children:e("token.search")})]})})]})})}),u.jsx(A,{title:e("token.accountList"),extra:u.jsx(k,{children:u.jsx(y,{type:"primary",onClick:()=>{Z((t=>({...t,show:!0,title:e("token.createNew"),formValue:{...x}})))},children:e("token.createNew")})}),children:u.jsx(T,{rowKey:"id",size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:et,dataSource:it})}),u.jsx(B,{...S}),u.jsx(z,{...$}),u.jsx(xt,{...K})]})}export{bt as default}; diff --git a/frontend/dist/assets/chatgpt-914c2ed5.js b/frontend/dist/assets/chatgpt-914c2ed5.js deleted file mode 100644 index 96ab643..0000000 --- a/frontend/dist/assets/chatgpt-914c2ed5.js +++ /dev/null @@ -1 +0,0 @@ -import{u as e,j as t,I as a,a9 as n,B as i,a6 as s,r,a4 as l,U as o,V as d,a7 as c}from"./index-32c3357d.js";import{o as m,P as h,D as u,a as x,b as p,d as j,s as k,T as y,S as g}from"./ShareModal-d881e5fb.js";import{R as f,u as w}from"./RobotOutlined-d916cdba.js";import{C,T as N,E as I}from"./index-8826920f.js";import{F as S}from"./index-8d9b92bb.js";import{u as q}from"./useQuery-77691717.js";import{R as L,C as b}from"./row-4d2b6eab.js";import"./__commonjsHelpers__-02d3be64.js";function v(){const{t:v}=e(),T=[{key:"email",title:v("token.email"),dataIndex:["account","email"],width:120,render:e=>t.jsx(a,{value:e,onClick:t=>m(e,v,t),readOnly:!0})},{key:"uniqueName",title:"Unique Name",dataIndex:"uniqueName",align:"center",width:120},{key:"password",title:v("token.password"),dataIndex:"password",align:"center",width:120},{key:"gpt35Limit",title:v("token.gpt35Limit"),dataIndex:"gpt35Limit",align:"center",width:120,render:e=>-1==e?"无限制":e},{key:"gpt4Limit",title:v("token.gpt4Limit"),dataIndex:"gpt4Limit",align:"center",width:120,render:e=>-1==e?"无限制":e},{key:"refreshEveryday",title:v("token.refreshEveryday"),dataIndex:"refreshEveryday",align:"center",width:120,render:e=>e?t.jsx(C,{}):t.jsx(n,{})},{key:"temporaryChat",title:v("token.temporaryChat"),dataIndex:"temporaryChat",align:"center",width:80,render:e=>e?t.jsx(C,{}):t.jsx(n,{})},{key:"expiresAt",title:v("token.expiresAt"),dataIndex:"expiresAt",align:"center",width:120,render:e=>""==e?"未知":e},{key:"shareToken",title:"Share Token",dataIndex:"shareToken",align:"center",width:120,render:e=>t.jsx(a,{value:e,onClick:t=>m(e,v,t),readOnly:!0})},{key:"comment",title:v("token.comment"),dataIndex:"comment",align:"center",render:e=>t.jsx(N.Text,{style:{maxWidth:500},ellipsis:!0,children:e})},{title:v("token.action"),key:"operation",align:"center",render:(e,a)=>t.jsxs(i.Group,{children:[t.jsx(s,{title:"登录并跳转至对话",placement:"bottom",children:t.jsx(i,{icon:t.jsx(f,{}),type:"primary",onClick:()=>Q(a)})}),t.jsx(i,{icon:t.jsx(I,{}),type:"primary",onClick:()=>P(a)}),t.jsx(h,{title:v("token.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>Y(a),children:t.jsx(i,{icon:t.jsx(u,{}),type:"primary",loading:D==a.accountId+a.uniqueName,danger:!0})})]})}],F=["uniqueName","gpt4Limit","expiresAt","comment","operation"],E=T.map((e=>e.key)),O=x(),_=p(),[A,V]=r.useState(!1),z=w(),[R]=S.useForm(),U=S.useWatch("email",R),W=S.useWatch("uniqueName",R),[K,B]=r.useState(F),[D,G]=r.useState(void 0),[H,M]=r.useState({formValue:{...j},title:v("token.edit"),show:!1,onOk:e=>{M((e=>({...e,show:!1})))},onCancel:()=>{M((e=>({...e,show:!1})))}});r.useEffect((()=>{R.setFieldValue("email",z.get("email"))}),[z]);const P=e=>{M({formValue:e,title:v("token.edit"),show:!0,onOk:(e,t)=>{_.mutate(e,{onSuccess:()=>{M((e=>({...e,show:!1})))},onSettled:()=>t(!1)})},onCancel:()=>{M((e=>({...e,show:!1})))}})},Q=e=>{V(!0),l.info({content:"正在跳转至对话...",key:"chatLogin",duration:5}),k.chatLoginShare(e.uniqueName,e.password).then((e=>{e&&window.open(e,"_blank")})).finally((()=>{V(!1)}))},Y=e=>{G(e.accountId+e.uniqueName),O.mutate(e,{onSettled:()=>{G(void 0)}})},{data:J}=q({queryKey:["shareList","chatgpt",U,W],queryFn:()=>k.searchShare("chatgpt",U,W)}),X=T.map((e=>({...e,hidden:!K.includes(e.key)})));return t.jsxs(o,{direction:"vertical",size:"large",className:"w-full",children:[t.jsx(d,{children:t.jsx(S,{form:R,children:t.jsxs(L,{gutter:[16,16],children:[t.jsx(b,{span:6,lg:6,children:t.jsx(S.Item,{label:v("token.email"),name:"email",className:"!mb-0",children:t.jsx(a,{})})}),t.jsx(b,{span:6,lg:6,children:t.jsx(S.Item,{label:"Unique Name",name:"uniqueName",className:"!mb-0",children:t.jsx(a,{})})}),t.jsx(b,{span:12,lg:12,children:t.jsxs("div",{className:"flex justify-end",children:[t.jsx(i,{onClick:()=>{R.resetFields()},children:v("token.reset")}),t.jsx(i,{type:"primary",className:"ml-4",onClick:()=>{R.validateFields().then((e=>{R.submit()}))},children:v("token.search")})]})})]})})}),t.jsx(d,{title:v("token.shareList"),extra:t.jsx(c,{title:"abc",defaultChecked:!0,checkedChildren:"简洁",unCheckedChildren:"详细",onChange:e=>{B(e?[...F]:[...E])}}),children:t.jsx(y,{rowKey:e=>e.accountId+e.uniqueName,size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:X,dataSource:J,loading:A})}),t.jsx(g,{...H})]})}export{v as default}; diff --git a/frontend/dist/assets/chatgpt-f94d99f5.js b/frontend/dist/assets/chatgpt-f94d99f5.js new file mode 100644 index 0000000..69b03c6 --- /dev/null +++ b/frontend/dist/assets/chatgpt-f94d99f5.js @@ -0,0 +1 @@ +import{u as e,j as t,I as a,ab as n,B as i,a8 as s,r,a6 as o,W as l,X as d,a9 as c}from"./index-24044c4a.js";import{o as m,P as h,D as u,a as x,b as k,d as p,s as y,T as j,S as g}from"./ShareModal-b94ef087.js";import{R as f,u as w}from"./RobotOutlined-1b0cee63.js";import{C,T as I,E as N}from"./index-af2c6676.js";import{F as S}from"./index-4dcab9f7.js";import{u as q}from"./useQuery-db800160.js";import{R as b,C as L}from"./row-2dc4d0fe.js";function v(){const{t:v}=e(),T=[{key:"email",title:v("token.email"),dataIndex:["account","email"],width:120,render:e=>t.jsx(a,{value:e,onClick:t=>m(e,v,t),readOnly:!0})},{key:"uniqueName",title:"Unique Name",dataIndex:"uniqueName",align:"center",width:120},{key:"password",title:v("token.password"),dataIndex:"password",align:"center",width:120},{title:"次数限制",key:"usageLimit",children:[{key:"4o-mini",title:"4o-mini",dataIndex:"gpt4oMiniLimit",align:"center",width:100,render:e=>-1==e?"无限制":e},{key:"gpt4o",title:"4o",dataIndex:"gpt4oLimit",align:"center",width:100,render:e=>-1==e?"无限制":e},{key:"gpt4",title:"gpt4",dataIndex:"gpt4Limit",align:"center",width:100,render:e=>-1==e?"无限制":e},{key:"o1",title:"o1",dataIndex:"o1Limit",align:"center",width:100,render:e=>-1==e?"无限制":e},{key:"o1-mini",title:"o1-mini",dataIndex:"o1MiniLimit",align:"center",width:100,render:e=>-1==e?"无限制":e}]},{key:"refreshEveryday",title:v("token.refreshEveryday"),dataIndex:"refreshEveryday",align:"center",width:120,render:e=>e?t.jsx(C,{}):t.jsx(n,{})},{key:"temporaryChat",title:v("token.temporaryChat"),dataIndex:"temporaryChat",align:"center",width:80,render:e=>e?t.jsx(C,{}):t.jsx(n,{})},{key:"expiresAt",title:v("token.expiresAt"),dataIndex:"expiresAt",align:"center",width:120,render:e=>""==e?"未知":e},{key:"shareToken",title:"Share Token",dataIndex:"shareToken",align:"center",width:120,render:e=>t.jsx(a,{value:e,onClick:t=>m(e,v,t),readOnly:!0})},{key:"comment",title:v("token.comment"),dataIndex:"comment",align:"center",render:e=>t.jsx(I.Text,{style:{maxWidth:500},ellipsis:!0,children:e})},{title:v("token.action"),key:"operation",align:"center",render:(e,a)=>t.jsxs(i.Group,{children:[t.jsx(s,{title:"登录并跳转至对话",placement:"bottom",children:t.jsx(i,{icon:t.jsx(f,{}),type:"primary",onClick:()=>Y(a)})}),t.jsx(i,{icon:t.jsx(N,{}),type:"primary",onClick:()=>X(a)}),t.jsx(h,{title:v("token.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>_(a),children:t.jsx(i,{icon:t.jsx(u,{}),type:"primary",loading:D==a.accountId+a.uniqueName,danger:!0})})]})}],F=["uniqueName","usageLimit","expiresAt","comment","operation"],E=T.map((e=>e.key)),O=x(),A=k(),[W,z]=r.useState(!1),M=w(),[R]=S.useForm(),V=S.useWatch("email",R),K=S.useWatch("uniqueName",R),[U,B]=r.useState(F),[D,G]=r.useState(void 0),[P,Q]=r.useState({formValue:{...p},title:v("token.edit"),show:!1,onOk:e=>{Q((e=>({...e,show:!1})))},onCancel:()=>{Q((e=>({...e,show:!1})))}});r.useEffect((()=>{R.setFieldValue("email",M.get("email"))}),[M]);const X=e=>{Q({formValue:e,title:v("token.edit"),show:!0,onOk:(e,t)=>{A.mutate(e,{onSuccess:()=>{Q((e=>({...e,show:!1})))},onSettled:()=>t(!1)})},onCancel:()=>{Q((e=>({...e,show:!1})))}})},Y=e=>{z(!0),o.info({content:"正在跳转至对话...",key:"chatLogin",duration:5}),y.chatLoginShare(e.uniqueName,e.password).then((e=>{e&&window.open(e,"_blank")})).finally((()=>{z(!1)}))},_=e=>{G(e.accountId+e.uniqueName),O.mutate(e,{onSettled:()=>{G(void 0)}})},{data:H}=q({queryKey:["shareList","chatgpt",V,K],queryFn:()=>y.searchShare("chatgpt",V,K)}),J=T.map((e=>({...e,hidden:!U.includes(e.key)})));return t.jsxs(l,{direction:"vertical",size:"large",className:"w-full",children:[t.jsx(d,{children:t.jsx(S,{form:R,children:t.jsxs(b,{gutter:[16,16],children:[t.jsx(L,{span:6,lg:6,children:t.jsx(S.Item,{label:v("token.email"),name:"email",className:"!mb-0",children:t.jsx(a,{})})}),t.jsx(L,{span:6,lg:6,children:t.jsx(S.Item,{label:"Unique Name",name:"uniqueName",className:"!mb-0",children:t.jsx(a,{})})}),t.jsx(L,{span:12,lg:12,children:t.jsxs("div",{className:"flex justify-end",children:[t.jsx(i,{onClick:()=>{R.resetFields()},children:v("token.reset")}),t.jsx(i,{type:"primary",className:"ml-4",onClick:()=>{R.validateFields().then((e=>{R.submit()}))},children:v("token.search")})]})})]})})}),t.jsx(d,{title:v("token.shareList"),extra:t.jsx(c,{title:"abc",defaultChecked:!0,checkedChildren:"简洁",unCheckedChildren:"详细",onChange:e=>{B(e?[...F]:[...E])}}),children:t.jsx(j,{rowKey:e=>e.accountId+e.uniqueName,bordered:!0,size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:J,dataSource:H,loading:W})}),t.jsx(g,{...P})]})}export{v as default}; diff --git a/frontend/dist/assets/claude-0de9fc78.js b/frontend/dist/assets/claude-0de9fc78.js new file mode 100644 index 0000000..fe291f5 --- /dev/null +++ b/frontend/dist/assets/claude-0de9fc78.js @@ -0,0 +1 @@ +import{u as e,Q as s,r as a,j as t,I as o,U as i,B as n,V as r,W as l,X as c}from"./index-24044c4a.js";import{u as d,d as m,o as h,P as u,D as x,T as j,S as p}from"./ShareModal-b94ef087.js";import{a as y}from"./accountService-339f9b3a.js";import{u as f,a as k,b as w,c as S,C as T,E as g,B as C,S as K,R as N,A as V}from"./AccountModal-418b3074.js";import{F as v}from"./index-4dcab9f7.js";import{T as I,E as z}from"./index-af2c6676.js";import{u as F}from"./useQuery-db800160.js";import{R as L,C as W}from"./row-2dc4d0fe.js";function b(){const[b]=v.useForm(),{t:A}=e(),E=f(),O=k(),_=w(),q=S(),B=d(),G=s(),[M,Q]=a.useState(-1),[R,Y]=a.useState(-1),D=v.useWatch("email",b),P={id:void 0,email:"",accountType:"claude",password:"",refreshToken:"",accessToken:"",sessionKey:"",shared:0},[U,X]=a.useState({formValue:{id:void 0,sessionKey:"",email:"",accountType:"claude",password:"",refreshToken:""},title:"New",show:!1,onOk:(e,s)=>{e.id?O.mutate(e,{onSuccess:()=>{X((e=>({...e,show:!1,formValue:{...P}})))},onSettled:()=>s(!1)}):E.mutate(e,{onSuccess:()=>{X((e=>({...e,show:!1,formValue:{...P}})))},onSettled:()=>s(!1)})},onCancel:()=>{X((e=>({...e,show:!1,formValue:{...P}})))}}),[$,H]=a.useState({formValue:{...m,shareType:"claude"},title:"New",show:!1,onOk:(e,s)=>{s(!0),B.mutate(e,{onSuccess:()=>{H((e=>({...e,show:!1})))},onSettled:()=>{s(!1)}})},onCancel:()=>{H((e=>({...e,show:!1})))}}),J=[{title:A("token.email"),dataIndex:"email",ellipsis:!0,align:"center",render:e=>t.jsx(I.Text,{style:{maxWidth:200},ellipsis:!0,children:e})},{title:A("token.password"),dataIndex:"password",align:"center",ellipsis:!0,render:e=>t.jsx(I.Text,{style:{maxWidth:200},ellipsis:!0,children:e})},{title:"Session Key",dataIndex:"sessionKey",align:"center",width:150,render:(e,s)=>s.sessionKey?t.jsx(o,{value:s.sessionKey,onClick:e=>h(s.sessionKey,A,e),readOnly:!0}):t.jsx(i,{color:"error",children:"Empty"})},{title:A("token.shareStatus"),dataIndex:"shared",align:"center",width:100,render:(e,s)=>1==s.shared?t.jsx(T,{twoToneColor:"#52c41a"}):t.jsx(g,{twoToneColor:"#fa8c16"})},{title:A("token.updateTime"),dataIndex:"updateTime",align:"center",width:200},{title:A("token.share"),key:"share",align:"center",render:(e,s)=>t.jsxs(n.Group,{children:[t.jsx(C,{count:s.shareList?.length,style:{zIndex:9},children:t.jsx(n,{icon:t.jsx(K,{}),onClick:()=>G({pathname:"/admin/share/claude",search:`?email=${s.email}`}),children:A("token.shareList")})}),t.jsx(n,{icon:t.jsx(r,{}),onClick:()=>ee(s)})]})},{title:A("token.action"),key:"operation",align:"center",render:(e,s)=>t.jsxs(n.Group,{children:[t.jsx(u,{title:A("common.refreshConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{Y(s.id),q.mutate(s.id,{onSettled:()=>Y(void 0)})},children:t.jsx(n,{icon:t.jsx(N,{}),type:"primary",loading:R===s.id,children:A("common.refresh")},s.id)}),t.jsx(n,{onClick:()=>se(s),icon:t.jsx(z,{}),type:"primary"}),t.jsx(u,{title:A("common.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{Q(s.id),_.mutate(s.id,{onSuccess:()=>Q(void 0)})},children:t.jsx(n,{icon:t.jsx(x,{}),type:"primary",loading:M===s.id,danger:!0})})]})}],{data:Z}=F({queryKey:["accounts","claude",D],queryFn:()=>y.searchAccountList(D,"claude")}),ee=e=>{H((s=>({...s,show:!0,title:A("token.share"),formValue:{...m,accountId:e.id,shareType:"claude"}})))},se=e=>{X((s=>({...s,show:!0,title:A("token.edit"),formValue:{...s.formValue,id:e.id,email:e.email,password:e.password,shared:e.shared,sessionKey:e.sessionKey}})))};return t.jsxs(l,{direction:"vertical",size:"large",className:"w-full",children:[t.jsx(c,{children:t.jsx(v,{form:b,children:t.jsxs(L,{gutter:[16,16],children:[t.jsx(W,{span:6,lg:6,children:t.jsx(v.Item,{label:A("token.email"),name:"email",className:"!mb-0",children:t.jsx(o,{})})}),t.jsx(W,{span:18,lg:18,children:t.jsxs("div",{className:"flex justify-end",children:[t.jsx(n,{onClick:()=>{b.resetFields()},children:A("token.reset")}),t.jsx(n,{type:"primary",className:"ml-4",children:A("token.search")})]})})]})})}),t.jsx(c,{title:A("token.accountList"),extra:t.jsx(l,{children:t.jsx(n,{type:"primary",onClick:()=>{X((e=>({...e,show:!0,title:A("token.createNew"),formValue:{id:void 0,email:"",password:"",sessionKey:"",accountType:"claude",shared:0,custom_type:"refresh_token",custom_token:""}})))},children:A("token.createNew")})}),children:t.jsx(j,{rowKey:"id",size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:J,dataSource:Z})}),t.jsx(V,{...U}),t.jsx(p,{...$})]})}export{b as default}; diff --git a/frontend/dist/assets/claude-17b7063c.js b/frontend/dist/assets/claude-17b7063c.js deleted file mode 100644 index 99ce5bd..0000000 --- a/frontend/dist/assets/claude-17b7063c.js +++ /dev/null @@ -1 +0,0 @@ -import{u as e,O as s,r as a,j as t,I as o,P as i,B as n,Q as r,U as l,V as c}from"./index-32c3357d.js";import{u as d,d as m,o as h,P as u,D as x,T as j,S as p}from"./ShareModal-d881e5fb.js";import{a as y}from"./accountService-983f3c33.js";import{u as f,a as k,b as w,c as S,C as T,E as g,B as C,S as K,R as N,A as V}from"./AccountModal-c4efbab5.js";import{F as v}from"./index-8d9b92bb.js";import{T as I,E as _}from"./index-8826920f.js";import{u as z}from"./useQuery-77691717.js";import{R as F,C as L}from"./row-4d2b6eab.js";import"./__commonjsHelpers__-02d3be64.js";function O(){const[O]=v.useForm(),{t:b}=e(),A=f(),E=k(),W=w(),q=S(),B=d(),G=s(),[M,P]=a.useState(-1),[Q,R]=a.useState(-1),Y=v.useWatch("email",O),D={id:void 0,email:"",accountType:"claude",password:"",refreshToken:"",accessToken:"",sessionKey:"",shared:0},[H,U]=a.useState({formValue:{id:void 0,sessionKey:"",email:"",accountType:"claude",password:"",refreshToken:""},title:"New",show:!1,onOk:(e,s)=>{e.id?E.mutate(e,{onSuccess:()=>{U((e=>({...e,show:!1,formValue:{...D}})))},onSettled:()=>s(!1)}):A.mutate(e,{onSuccess:()=>{U((e=>({...e,show:!1,formValue:{...D}})))},onSettled:()=>s(!1)})},onCancel:()=>{U((e=>({...e,show:!1,formValue:{...D}})))}}),[$,J]=a.useState({formValue:{...m,shareType:"claude"},title:"New",show:!1,onOk:(e,s)=>{s(!0),B.mutate(e,{onSuccess:()=>{J((e=>({...e,show:!1})))},onSettled:()=>{s(!1)}})},onCancel:()=>{J((e=>({...e,show:!1})))}}),X=[{title:b("token.email"),dataIndex:"email",ellipsis:!0,align:"center",render:e=>t.jsx(I.Text,{style:{maxWidth:200},ellipsis:!0,children:e})},{title:b("token.password"),dataIndex:"password",align:"center",ellipsis:!0,render:e=>t.jsx(I.Text,{style:{maxWidth:200},ellipsis:!0,children:e})},{title:"Session Key",dataIndex:"sessionKey",align:"center",width:150,render:(e,s)=>s.sessionKey?t.jsx(o,{value:s.sessionKey,onClick:e=>h(s.sessionKey,b,e),readOnly:!0}):t.jsx(i,{color:"error",children:"Empty"})},{title:b("token.shareStatus"),dataIndex:"shared",align:"center",width:100,render:(e,s)=>1==s.shared?t.jsx(T,{twoToneColor:"#52c41a"}):t.jsx(g,{twoToneColor:"#fa8c16"})},{title:b("token.updateTime"),dataIndex:"updateTime",align:"center",width:200},{title:b("token.share"),key:"share",align:"center",render:(e,s)=>t.jsxs(n.Group,{children:[t.jsx(C,{count:s.shareList?.length,style:{zIndex:9},children:t.jsx(n,{icon:t.jsx(K,{}),onClick:()=>G({pathname:"/admin/share/claude",search:`?email=${s.email}`}),children:b("token.shareList")})}),t.jsx(n,{icon:t.jsx(r,{}),onClick:()=>ee(s)})]})},{title:b("token.action"),key:"operation",align:"center",render:(e,s)=>t.jsxs(n.Group,{children:[t.jsx(u,{title:b("common.refreshConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{R(s.id),q.mutate(s.id,{onSettled:()=>R(void 0)})},children:t.jsx(n,{icon:t.jsx(N,{}),type:"primary",loading:Q===s.id,children:b("common.refresh")},s.id)}),t.jsx(n,{onClick:()=>se(s),icon:t.jsx(_,{}),type:"primary"}),t.jsx(u,{title:b("common.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{P(s.id),W.mutate(s.id,{onSuccess:()=>P(void 0)})},children:t.jsx(n,{icon:t.jsx(x,{}),type:"primary",loading:M===s.id,danger:!0})})]})}],{data:Z}=z({queryKey:["accounts","claude",Y],queryFn:()=>y.searchAccountList(Y,"claude")}),ee=e=>{J((s=>({...s,show:!0,title:b("token.share"),formValue:{...m,accountId:e.id,shareType:"claude"}})))},se=e=>{U((s=>({...s,show:!0,title:b("token.edit"),formValue:{...s.formValue,id:e.id,email:e.email,password:e.password,shared:e.shared,sessionKey:e.sessionKey}})))};return t.jsxs(l,{direction:"vertical",size:"large",className:"w-full",children:[t.jsx(c,{children:t.jsx(v,{form:O,children:t.jsxs(F,{gutter:[16,16],children:[t.jsx(L,{span:6,lg:6,children:t.jsx(v.Item,{label:b("token.email"),name:"email",className:"!mb-0",children:t.jsx(o,{})})}),t.jsx(L,{span:18,lg:18,children:t.jsxs("div",{className:"flex justify-end",children:[t.jsx(n,{onClick:()=>{O.resetFields()},children:b("token.reset")}),t.jsx(n,{type:"primary",className:"ml-4",children:b("token.search")})]})})]})})}),t.jsx(c,{title:b("token.accountList"),extra:t.jsx(l,{children:t.jsx(n,{type:"primary",onClick:()=>{U((e=>({...e,show:!0,title:b("token.createNew"),formValue:{id:void 0,email:"",password:"",sessionKey:"",accountType:"claude",shared:0,custom_type:"refresh_token",custom_token:""}})))},children:b("token.createNew")})}),children:t.jsx(j,{rowKey:"id",size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:X,dataSource:Z})}),t.jsx(V,{...H}),t.jsx(p,{...$})]})}export{O as default}; diff --git a/frontend/dist/assets/claude-a81cacc1.js b/frontend/dist/assets/claude-a81cacc1.js new file mode 100644 index 0000000..216da9a --- /dev/null +++ b/frontend/dist/assets/claude-a81cacc1.js @@ -0,0 +1 @@ +import{u as e,j as a,I as t,B as s,a8 as n,r as i,a6 as l,W as o,X as r}from"./index-24044c4a.js";import{o as c,P as d,D as m,a as u,b as x,d as h,s as j,T as p,S as k}from"./ShareModal-b94ef087.js";import{R as y,u as f}from"./RobotOutlined-1b0cee63.js";import{T as w,E as g}from"./index-af2c6676.js";import{F as N}from"./index-4dcab9f7.js";import{u as q}from"./useQuery-db800160.js";import{R as S,C as I}from"./row-2dc4d0fe.js";function C(){const{t:C}=e(),b=[{key:"email",title:C("token.email"),dataIndex:["account","email"],width:120,render:e=>a.jsx(t,{value:e,onClick:a=>c(e,C,a),readOnly:!0})},{key:"uniqueName",title:"Unique Name",dataIndex:"uniqueName",align:"center",width:120},{key:"password",title:C("token.password"),dataIndex:"password",align:"center",width:120},{key:"expiresAt",title:C("token.expiresAt"),dataIndex:"expiresAt",align:"center",width:120,render:e=>""==e?"未知":e},{key:"comment",title:C("token.comment"),dataIndex:"comment",align:"center",render:e=>a.jsx(w.Text,{style:{maxWidth:500},ellipsis:!0,children:e})},{title:C("token.action"),key:"operation",align:"center",render:(e,t)=>a.jsxs(s.Group,{children:[a.jsx(n,{title:"登录并跳转至对话",placement:"bottom",children:a.jsx(s,{icon:a.jsx(y,{}),type:"primary",onClick:()=>B(t)})}),a.jsx(s,{icon:a.jsx(g,{}),type:"primary",onClick:()=>U(t)}),a.jsx(d,{title:C("token.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>D(t),children:a.jsx(s,{icon:a.jsx(m,{}),type:"primary",loading:R==t.accountId+t.uniqueName,danger:!0})})]})}],v=u(),F=x(),[T,L]=i.useState(!1),O=f(),[W]=N.useForm(),z=N.useWatch("email",W),A=N.useWatch("uniqueName",W),[R,V]=i.useState(void 0),[E,K]=i.useState({formValue:{...h},title:C("token.edit"),show:!1,onOk:e=>{K((e=>({...e,show:!1})))},onCancel:()=>{K((e=>({...e,show:!1})))}});i.useEffect((()=>{W.setFieldValue("email",O.get("email"))}),[O]);const U=e=>{K({formValue:e,title:C("token.edit"),show:!0,onOk:(e,a)=>{F.mutate(e,{onSuccess:()=>{K((e=>({...e,show:!1})))},onSettled:()=>a(!1)})},onCancel:()=>{K((e=>({...e,show:!1})))}})},B=e=>{L(!0),l.info({content:"正在跳转至对话...",key:"chatLogin",duration:5}),j.chatLoginShare(e.uniqueName,e.password).then((e=>{e&&window.open(e,"_blank")})).finally((()=>{L(!1)}))},D=e=>{V(e.accountId+e.uniqueName),v.mutate(e,{onSettled:()=>{V(void 0)}})},{data:G}=q({queryKey:["shareList","claude",z,A],queryFn:()=>j.searchShare("claude",z,A)});return a.jsxs(o,{direction:"vertical",size:"large",className:"w-full",children:[a.jsx(r,{children:a.jsx(N,{form:W,children:a.jsxs(S,{gutter:[16,16],children:[a.jsx(I,{span:6,lg:6,children:a.jsx(N.Item,{label:C("token.email"),name:"email",className:"!mb-0",children:a.jsx(t,{})})}),a.jsx(I,{span:6,lg:6,children:a.jsx(N.Item,{label:"Unique Name",name:"uniqueName",className:"!mb-0",children:a.jsx(t,{})})}),a.jsx(I,{span:12,lg:12,children:a.jsxs("div",{className:"flex justify-end",children:[a.jsx(s,{onClick:()=>{W.resetFields()},children:C("token.reset")}),a.jsx(s,{type:"primary",className:"ml-4",onClick:()=>{W.validateFields().then((e=>{W.submit()}))},children:C("token.search")})]})})]})})}),a.jsx(r,{title:C("token.shareList"),children:a.jsx(p,{rowKey:e=>e.accountId+e.uniqueName,size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:b,dataSource:G,loading:T})}),a.jsx(k,{...E})]})}export{C as default}; diff --git a/frontend/dist/assets/claude-b7945caa.js b/frontend/dist/assets/claude-b7945caa.js deleted file mode 100644 index de03dbf..0000000 --- a/frontend/dist/assets/claude-b7945caa.js +++ /dev/null @@ -1 +0,0 @@ -import{u as e,j as a,I as t,B as s,a6 as n,r as i,a4 as o,U as l,V as r}from"./index-32c3357d.js";import{o as c,P as d,D as m,a as u,b as x,d as h,s as j,T as p,S as k}from"./ShareModal-d881e5fb.js";import{R as y,u as f}from"./RobotOutlined-d916cdba.js";import{T as g,E as w}from"./index-8826920f.js";import{F as N}from"./index-8d9b92bb.js";import{u as q}from"./useQuery-77691717.js";import{R as S,C as I}from"./row-4d2b6eab.js";import"./__commonjsHelpers__-02d3be64.js";function C(){const{t:C}=e(),b=[{key:"email",title:C("token.email"),dataIndex:["account","email"],width:120,render:e=>a.jsx(t,{value:e,onClick:a=>c(e,C,a),readOnly:!0})},{key:"uniqueName",title:"Unique Name",dataIndex:"uniqueName",align:"center",width:120},{key:"password",title:C("token.password"),dataIndex:"password",align:"center",width:120},{key:"expiresAt",title:C("token.expiresAt"),dataIndex:"expiresAt",align:"center",width:120,render:e=>""==e?"未知":e},{key:"comment",title:C("token.comment"),dataIndex:"comment",align:"center",render:e=>a.jsx(g.Text,{style:{maxWidth:500},ellipsis:!0,children:e})},{title:C("token.action"),key:"operation",align:"center",render:(e,t)=>a.jsxs(s.Group,{children:[a.jsx(n,{title:"登录并跳转至对话",placement:"bottom",children:a.jsx(s,{icon:a.jsx(y,{}),type:"primary",onClick:()=>K(t)})}),a.jsx(s,{icon:a.jsx(w,{}),type:"primary",onClick:()=>E(t)}),a.jsx(d,{title:C("token.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>B(t),children:a.jsx(s,{icon:a.jsx(m,{}),type:"primary",loading:A==t.accountId+t.uniqueName,danger:!0})})]})}],v=u(),F=x(),[T,_]=i.useState(!1),L=f(),[O]=N.useForm(),V=N.useWatch("email",O),z=N.useWatch("uniqueName",O),[A,R]=i.useState(void 0),[U,W]=i.useState({formValue:{...h},title:C("token.edit"),show:!1,onOk:e=>{W((e=>({...e,show:!1})))},onCancel:()=>{W((e=>({...e,show:!1})))}});i.useEffect((()=>{O.setFieldValue("email",L.get("email"))}),[L]);const E=e=>{W({formValue:e,title:C("token.edit"),show:!0,onOk:(e,a)=>{F.mutate(e,{onSuccess:()=>{W((e=>({...e,show:!1})))},onSettled:()=>a(!1)})},onCancel:()=>{W((e=>({...e,show:!1})))}})},K=e=>{_(!0),o.info({content:"正在跳转至对话...",key:"chatLogin",duration:5}),j.chatLoginShare(e.uniqueName,e.password).then((e=>{e&&window.open(e,"_blank")})).finally((()=>{_(!1)}))},B=e=>{R(e.accountId+e.uniqueName),v.mutate(e,{onSettled:()=>{R(void 0)}})},{data:D}=q({queryKey:["shareList","claude",V,z],queryFn:()=>j.searchShare("claude",V,z)});return a.jsxs(l,{direction:"vertical",size:"large",className:"w-full",children:[a.jsx(r,{children:a.jsx(N,{form:O,children:a.jsxs(S,{gutter:[16,16],children:[a.jsx(I,{span:6,lg:6,children:a.jsx(N.Item,{label:C("token.email"),name:"email",className:"!mb-0",children:a.jsx(t,{})})}),a.jsx(I,{span:6,lg:6,children:a.jsx(N.Item,{label:"Unique Name",name:"uniqueName",className:"!mb-0",children:a.jsx(t,{})})}),a.jsx(I,{span:12,lg:12,children:a.jsxs("div",{className:"flex justify-end",children:[a.jsx(s,{onClick:()=>{O.resetFields()},children:C("token.reset")}),a.jsx(s,{type:"primary",className:"ml-4",onClick:()=>{O.validateFields().then((e=>{O.submit()}))},children:C("token.search")})]})})]})})}),a.jsx(r,{title:C("token.shareList"),children:a.jsx(p,{rowKey:e=>e.accountId+e.uniqueName,size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:b,dataSource:D,loading:T})}),a.jsx(k,{...U})]})}export{C as default}; diff --git a/frontend/dist/assets/index-01ef8a43.js b/frontend/dist/assets/index-01ef8a43.js new file mode 100644 index 0000000..8368924 --- /dev/null +++ b/frontend/dist/assets/index-01ef8a43.js @@ -0,0 +1 @@ +import{u as l,e as a,Q as c,C as s,j as e,W as t}from"./index-24044c4a.js";import{R as i,C as r}from"./row-2dc4d0fe.js";const o="/admin/assets/character_3-e4c36e91.png";function n(){const{t:t}=l(),o=a(),n=c(),z=`linear-gradient(135deg, ${s(o.colorPrimaryHover).alpha(.2)}, ${s(o.colorPrimary).alpha(.2)}) rgb(255, 255, 255)`;return e.jsxs(i,{className:"!mx-0 rounded-2xl p-10",gutter:[16,16],justify:"space-between",style:{background:z},children:[e.jsxs(r,{span:24,md:12,xl:16,className:"flex-1 text-center md:text-left",children:[e.jsxs("div",{className:"mt-4 text-lg font-semibold md:text-xl",style:{color:o.colorPrimaryActive},children:[e.jsxs("h4",{children:[t("common.welcomeBack")," "]}),e.jsx("h4",{children:"Pandora Helper"})]}),e.jsx("p",{style:{color:o.colorPrimaryTextActive},className:"mx-auto mb-6 mt-4 max-w-sm text-sm opacity-80 md:mx-0",children:t("common.desc")}),e.jsx("button",{className:"font-mediumtext-black m-auto flex items-center justify-center rounded-md px-2 py-1 shadow-none md:m-0",style:{backgroundColor:o.colorPrimary},onClick:()=>n("/admin/account/chatgpt"),children:t("common.goNow")})]}),e.jsx(r,{span:24,md:12,xl:8,className:"!md:max-w-[320px] mx-auto !max-w-[270px] flex-none items-center justify-center ",children:e.jsx(m,{})})]})}function m(){const{colorPrimary:l,colorPrimaryActive:c,colorPrimaryHover:s}=a();return e.jsxs("svg",{viewBox:"0 0 480 360",className:"h-full w-full",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[e.jsx("stop",{offset:"0%",stopColor:l}),e.jsx("stop",{offset:"100%",stopColor:l,stopOpacity:"0"})]})}),e.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),e.jsx("path",{fill:c,fillRule:"evenodd",d:"M109.224 97.41l.812 1.827-.02.009-.061.027-.248.112c-.219.1-.544.25-.968.449l-.849-1.811c.43-.202.762-.355.988-.457l.256-.117.066-.03.024-.01zm-6.771 3.278c.997-.507 1.901-.958 2.7-1.35l.882 1.795c-.791.388-1.687.835-2.675 1.337l-.907-1.782zm-5.356 2.808c.93-.502 1.82-.975 2.665-1.418l.929 1.771c-.838.439-1.72.909-2.644 1.407l-.95-1.76zm-5.274 2.927c.901-.513 1.779-1.007 2.63-1.479l.97 1.749c-.844.468-1.715.958-2.609 1.468l-.99-1.738zm-5.232 3.065c.887-.533 1.758-1.05 2.612-1.55l1.01 1.725c-.847.497-1.712 1.01-2.591 1.539l-1.03-1.714zm-5.117 3.16c.861-.546 1.713-1.079 2.555-1.599l1.05 1.702c-.834.516-1.68 1.044-2.534 1.586l-1.071-1.689zm-5.065 3.301a242.86 242.86 0 012.515-1.661l1.092 1.675a236.91 236.91 0 00-2.494 1.648l-1.113-1.662zm-4.978 3.431c.83-.589 1.66-1.168 2.484-1.736l1.134 1.646c-.817.564-1.638 1.137-2.461 1.721l-1.157-1.631zm-4.873 3.56a197.5 197.5 0 012.427-1.8l1.18 1.615c-.8.585-1.602 1.179-2.404 1.782l-1.203-1.597zm-4.771 3.71c.787-.632 1.576-1.256 2.366-1.87l1.228 1.579c-.782.608-1.563 1.225-2.342 1.85l-1.252-1.559zm-4.651 3.867c.765-.659 1.534-1.31 2.307-1.952l1.279 1.538c-.764.635-1.525 1.278-2.281 1.929l-1.305-1.515zm-4.51 4.035c.739-.688 1.485-1.368 2.236-2.04l1.333 1.491c-.742.664-1.478 1.335-2.208 2.013l-1.362-1.464zm-4.347 4.215a136.43 136.43 0 012.151-2.132l1.392 1.437c-.715.692-1.422 1.392-2.12 2.1l-1.423-1.405zm-4.157 4.411c.674-.751 1.359-1.495 2.053-2.231l1.455 1.371c-.683.725-1.356 1.457-2.019 2.196l-1.489-1.336zm-3.929 4.623c.633-.788 1.279-1.568 1.936-2.341l1.524 1.295a105.43 105.43 0 00-1.9 2.298l-1.56-1.252zm-3.657 4.848a94.278 94.278 0 011.793-2.455l1.596 1.205c-.6.794-1.185 1.595-1.754 2.403l-1.635-1.153zm-3.328 5.084a83.294 83.294 0 011.617-2.57l1.673 1.097a80.437 80.437 0 00-1.578 2.507l-1.712-1.034zm-2.94 5.341c.45-.907.922-1.806 1.414-2.698l1.752.965a69.62 69.62 0 00-1.375 2.623l-1.791-.89zm-2.465 5.583c.366-.948.755-1.889 1.168-2.823l1.83.808c-.4.906-.778 1.817-1.132 2.735l-1.866-.72zm-1.903 5.808c.265-.984.558-1.962.876-2.932l1.9.624a54.83 54.83 0 00-.845 2.828l-1.93-.52zm-1.253 5.993c.15-1.012.331-2.018.54-3.017l1.958.41a50.126 50.126 0 00-.52 2.901l-1.978-.294zm-.467 4.577c.028-.513.065-1.024.109-1.535l1.992.174c-.042.489-.077.98-.104 1.472-.028.496-.04.986-.037 1.469l-2 .014c-.003-.526.01-1.057.04-1.594zm.822 7.749a22.495 22.495 0 01-.643-3.074l1.982-.272c.131.959.328 1.892.585 2.801l-1.924.545zm2.498 5.699a23.889 23.889 0 01-1.444-2.77l1.83-.805c.382.867.824 1.713 1.324 2.538l-1.71 1.037zm3.777 4.87a30.2 30.2 0 01-2.019-2.327l1.578-1.23a28.113 28.113 0 001.885 2.173l-1.444 1.384zm4.602 4.048a41.441 41.441 0 01-2.349-1.902l1.316-1.506c.706.617 1.452 1.22 2.235 1.809l-1.202 1.599zm5.09 3.361a56.872 56.872 0 01-2.58-1.598l1.1-1.671a54.91 54.91 0 002.488 1.542l-1.008 1.727zm5.371 2.823a75.691 75.691 0 01-2.716-1.355l.929-1.771c.857.449 1.74.889 2.645 1.319l-.858 1.807zm5.542 2.408c-.95-.379-1.882-.766-2.794-1.162l.795-1.834c.894.387 1.807.767 2.74 1.138l-.741 1.858zm294.857-2.594c.244.101.598.253 1.048.457l-.828 1.821a31.67 31.67 0 00-1.241-.534l-.061-.025-.014-.005-.003-.001.357-.934.356-.934h.001l.002.001.006.002.021.008.075.03c.065.025.159.063.281.114zm-289.206 4.68c-.96-.329-1.906-.664-2.837-1.007l.692-1.877c.915.337 1.846.668 2.793.992l-.648 1.892zm293.015-2.865c.807.425 1.708.923 2.682 1.497l-1.016 1.723a62.506 62.506 0 00-2.598-1.45l.932-1.77zm-287.286 4.698c-.965-.289-1.918-.583-2.859-.884l.609-1.905c.928.296 1.87.587 2.824.873l-.574 1.916zm292.565-1.59a69.641 69.641 0 012.522 1.724l-1.165 1.626a66.44 66.44 0 00-2.449-1.674l1.092-1.676zM69.05 221.541c-.967-.256-1.924-.517-2.87-.783l.54-1.926c.938.264 1.885.522 2.842.776l-.512 1.933zm5.833 1.464c-.977-.233-1.945-.469-2.905-.709l.486-1.94c.952.238 1.912.472 2.881.703l-.462 1.946zm5.867 1.326c-.988-.213-1.97-.429-2.944-.649l.44-1.951c.968.219 1.943.434 2.925.645l-.42 1.955zm280.057-2.439a67.422 67.422 0 012.356 1.94l-1.306 1.515a65.709 65.709 0 00-2.286-1.883l1.236-1.572zM86.623 225.54a333.57 333.57 0 01-2.954-.595l.403-1.959c.973.201 1.952.398 2.937.591l-.386 1.963zm5.88 1.112c-.985-.179-1.967-.361-2.944-.546l.371-1.965c.973.184 1.95.365 2.931.543l-.357 1.968zm5.904 1.035c-.983-.167-1.963-.335-2.94-.506l.345-1.97c.973.17 1.95.338 2.93.504l-.335 1.972zm267.031-1.801a64.195 64.195 0 012.181 2.162l-1.442 1.386a63.013 63.013 0 00-2.113-2.095l1.374-1.453zm-261.112 2.771c-.989-.157-1.976-.316-2.959-.477l.323-1.974c.981.161 1.964.319 2.95.476l-.314 1.975zm5.919.916c-.99-.149-1.978-.3-2.965-.453l.306-1.976c.984.152 1.969.302 2.957.451l-.298 1.978zm5.92.873c-.987-.143-1.975-.287-2.961-.432l.292-1.979c.984.145 1.969.289 2.955.431l-.286 1.98zm5.929.84a781.94 781.94 0 01-2.965-.417l.281-1.98 2.96.417-.276 1.98zm5.927.818c-.987-.135-1.976-.27-2.965-.407l.273-1.981c.988.136 1.976.272 2.962.406l-.27 1.982zm241.664-1.8a62.33 62.33 0 011.957 2.359l-1.571 1.238a58.92 58.92 0 00-1.893-2.282l1.507-1.315zm-235.74 2.603l-2.957-.4.269-1.982 2.956.4-.268 1.982zm5.935.801l-2.964-.4.267-1.982 2.965.4-.268 1.982zm5.928.805l-2.977-.406.269-1.982 2.98.407-.272 1.981zm5.915.821l-2.962-.414.275-1.981c.993.138 1.982.276 2.966.415l-.279 1.98zm5.896.848c-.971-.143-1.948-.285-2.93-.426l.284-1.98c.985.142 1.964.284 2.937.427l-.291 1.979zm5.922.895c-.972-.151-1.952-.302-2.94-.451l.299-1.977c.99.149 1.973.3 2.949.452l-.308 1.976zm209.938-1.957a59.573 59.573 0 011.709 2.551l-1.69 1.069a56.139 56.139 0 00-1.651-2.463l1.632-1.157zm-204.034 2.911c-.974-.163-1.958-.325-2.952-.486l.319-1.974c.998.161 1.986.324 2.965.488l-.332 1.972zm5.881 1.035a369.37 369.37 0 00-2.965-.534l.346-1.97c1.006.177 2 .356 2.982.537l-.363 1.967zm5.85 1.143c-.972-.201-1.959-.399-2.961-.595l.383-1.963c1.009.197 2.004.397 2.984.6l-.406 1.958zm5.81 1.291c-.958-.228-1.935-.453-2.932-.674l.433-1.953c1.006.223 1.995.451 2.964.682l-.465 1.945zm5.75 1.497a126.97 126.97 0 00-2.901-.788l.502-1.936c1.006.261 1.988.527 2.947.8l-.548 1.924zm184.026-2.689c.494.881.972 1.787 1.431 2.718l-1.794.884a54.93 54.93 0 00-1.381-2.623l1.744-.979zm-178.387 4.477a83.817 83.817 0 00-2.858-.956l.602-1.907c1.007.317 1.983.643 2.926.978l-.67 1.885zm5.402 2.214a50.388 50.388 0 00-2.665-1.174l.755-1.852a52.08 52.08 0 012.773 1.222l-.863 1.804zm175.7-1.183c.397.928.775 1.88 1.132 2.854l-1.878.687a55.769 55.769 0 00-1.093-2.754l1.839-.787zm-171.918 3.282a27.52 27.52 0 00-1.18-.728l1.008-1.727c.438.255.86.515 1.266.781.386.252.788.506 1.206.763l-1.045 1.705a54.43 54.43 0 01-1.255-.794zm6.674 3.795a88.769 88.769 0 01-2.71-1.43l.964-1.752c.839.462 1.723.928 2.65 1.398l-.904 1.784zm167.354-1.314c.295.964.57 1.949.822 2.955l-1.94.486a56.86 56.86 0 00-.794-2.854l1.912-.587zm-161.766 3.964c-.978-.436-1.926-.872-2.842-1.305l.856-1.808c.902.427 1.836.856 2.801 1.287l-.815 1.826zm5.624 2.389c-.977-.396-1.932-.792-2.864-1.188l.781-1.841c.922.391 1.867.783 2.834 1.175l-.751 1.854zm5.702 2.219c-.979-.366-1.942-.734-2.887-1.101l.726-1.864c.936.364 1.891.728 2.863 1.092l-.702 1.873zm151.931-2.627c.195.988.367 1.994.517 3.019l-1.979.289a60 60 0 00-.5-2.921l1.962-.387zm-146.173 4.709a282.93 282.93 0 01-2.913-1.035l.68-1.881c.95.343 1.915.686 2.893 1.028l-.66 1.888zm5.793 1.961c-.989-.325-1.966-.651-2.932-.977l.642-1.895c.959.325 1.931.649 2.913.971l-.623 1.901zm5.808 1.851a366.91 366.91 0 01-2.928-.92l.607-1.905c.961.306 1.932.611 2.912.915l-.591 1.91zm135.458-2.462c.049.509.093 1.023.131 1.542a15.1 15.1 0 01.032 1.682l-1.998-.075c.017-.471.008-.958-.029-1.461a59 59 0 00-.127-1.495l1.991-.193zm-129.616 4.222a452.59 452.59 0 01-2.926-.869l.577-1.915c.963.29 1.934.578 2.911.864l-.562 1.92zm5.875 1.674c-.982-.272-1.957-.546-2.927-.823l.548-1.923c.965.275 1.936.548 2.913.819l-.534 1.927zm5.902 1.593a521.99 521.99 0 01-2.943-.783l.521-1.931c.972.262 1.949.522 2.93.779l-.508 1.935zm117.481-1.038a12.02 12.02 0 01-1.365 2.996l-1.691-1.069a9.965 9.965 0 001.139-2.499l1.917.572zm-111.556 2.55c-.993-.246-1.982-.495-2.968-.747l.495-1.938c.981.251 1.966.499 2.955.744l-.482 1.941zm5.937 1.432c-.995-.233-1.987-.469-2.977-.708l.469-1.944c.985.238 1.973.472 2.964.704l-.456 1.948zm5.954 1.352a461.96 461.96 0 01-2.98-.667l.443-1.95c.987.224 1.976.445 2.967.663l-.43 1.954zm5.976 1.272a440.55 440.55 0 01-2.989-.626l.416-1.956c.992.211 1.984.419 2.976.623l-.403 1.959zm90.244-1.087a17.352 17.352 0 01-2.54 1.996l-1.091-1.676a15.272 15.272 0 002.247-1.764l1.384 1.444zm-84.25 2.277c-1-.191-2.001-.386-3.002-.585l.39-1.962c.996.198 1.992.392 2.987.582l-.375 1.965zm6.003 1.101c-.999-.175-1.999-.355-3.001-.539l.361-1.967c.997.183 1.993.362 2.987.537l-.347 1.969zm72.9.168c-.911.427-1.878.819-2.897 1.178l-.663-1.887a29.338 29.338 0 002.71-1.102l.85 1.811zm-66.872.844c-1-.16-2.003-.324-3.007-.493l.33-1.972c1 .168 1.997.331 2.992.49l-.315 1.975zm6.051.913a350.993 350.993 0 01-3.025-.444l.299-1.977c1.006.152 2.009.299 3.007.441l-.281 1.98zm54.962.332c-.979.263-1.996.501-3.05.716l-.4-1.96a50.079 50.079 0 002.932-.688l.518 1.932zm-48.896.472a292.674 292.674 0 01-3.049-.39l.263-1.982c1.015.135 2.025.264 3.03.387l-.244 1.985zm6.076.684a273.234 273.234 0 01-3.058-.328l.224-1.987c1.019.115 2.031.223 3.037.325l-.203 1.99zm36.729.101c-.989.152-2.005.287-3.047.406l-.226-1.988a74.52 74.52 0 002.968-.395l.305 1.977zm-30.642.446a247.153 247.153 0 01-3.048-.255l.18-1.992c1.015.091 2.023.176 3.023.253l-.155 1.994zm6.099.39a193.964 193.964 0 01-3.036-.173l.128-1.995c1.012.064 2.015.122 3.007.171l-.099 1.997zm18.393-.133c-.991.079-2.002.144-3.032.196l-.101-1.997a107.33 107.33 0 002.975-.193l.158 1.994zm-12.279.337a175.75 175.75 0 01-3.028-.075l.067-1.999c1.01.034 2.008.059 2.993.075l-.032 1.999zm6.131-.023c-.993.025-2.002.039-3.025.043l-.007-2c1.009-.004 2.003-.018 2.981-.043l.051 2z",clipRule:"evenodd",opacity:"0.24"}),e.jsx("path",{fill:"#fff",d:"M47.943 122.571L96.231 273.55a11.4 11.4 0 0011.786 7.805l63.326-5.36 148.013-12.644a11.316 11.316 0 009.904-7.823c.456-1.421.627-2.918.503-4.405a12.314 12.314 0 00-.729-3.122l-11.838-31.221-21.412-57.238-16.599-44.23a11.37 11.37 0 00-10.641-7.362H58.741a11.345 11.345 0 00-11.344 11.343c.016 1.114.2 2.219.546 3.278z"}),e.jsx("path",{fill:"#fff",d:"M47.943 122.571L96.231 273.55a11.4 11.4 0 0011.786 7.805l63.326-5.36 148.013-12.644a11.316 11.316 0 009.904-7.823c.456-1.421.627-2.918.503-4.405a12.314 12.314 0 00-.729-3.122l-11.838-31.221-21.412-57.238-16.599-44.23a11.37 11.37 0 00-10.641-7.362H58.741a11.345 11.345 0 00-11.344 11.343c.016 1.114.2 2.219.546 3.278z"}),e.jsx("path",{fill:"url(#paint0_linear_1_51)",d:"M170.575 276.06l-62.558 5.295a11.4 11.4 0 01-11.785-7.805L47.942 122.571a11.028 11.028 0 01-.546-3.278A11.34 11.34 0 0158.74 107.95h57.453l54.382 168.11z"}),e.jsx("path",{fill:"#F4F6F8",d:"M227.879 191.221c2.613-.162 4.368-2.749 3.553-5.237l-8.483-25.895a4.002 4.002 0 00-3.993-2.75l-61.621 2.961c-2.666.128-4.461 2.782-3.588 5.304l9.248 26.717a3.999 3.999 0 004.028 2.683l60.856-3.783z"}),e.jsx("path",{fill:"#DFE3E8",d:"M244.879 239.221c2.613-.162 4.368-2.749 3.553-5.237l-8.483-25.895a4.002 4.002 0 00-3.993-2.75l-61.621 2.961c-2.666.128-4.461 2.782-3.588 5.304l9.248 26.717a3.999 3.999 0 004.028 2.683l60.856-3.783z"}),e.jsx("g",{filter:"url(#filter0_f_1_51)",opacity:"0.4",children:e.jsx("path",{fill:"#919EAB",d:"M253.012 134.539l15.948 52.893a4.007 4.007 0 003.903 2.94l39.559-1.142a2 2 0 001.816-2.7l-20.001-53.4a2 2 0 00-1.755-1.295l-35.906-2.109a3.612 3.612 0 00-3.059 1.461 3.614 3.614 0 00-.505 3.352z"})}),e.jsx("path",{fill:"#fff",d:"M330.082 174.424l-16.495-46.701a4.03 4.03 0 00-3.512-2.732l-69.518-4.111a3.676 3.676 0 00-3.061 1.481 3.663 3.663 0 00-.53 3.358l15.949 52.92a4.057 4.057 0 003.902 2.966l70.091-2.108a3.663 3.663 0 002.898-1.716 3.667 3.667 0 00.276-3.357z"}),e.jsx("path",{fill:c,d:"M295.375 166.976c.478 1.237.718 1.856 1.229 2.206.511.351 1.174.351 2.501.351h.32c2.648 0 3.972 0 4.568-.87.596-.869.118-2.104-.837-4.574l-6.427-16.612c-.479-1.238-.719-1.856-1.23-2.207-.511-.35-1.174-.35-2.501-.35h-.32c-2.648 0-3.972 0-4.568.87-.596.869-.118 2.104.837 4.573l6.428 16.613z"}),e.jsxs("g",{opacity:"0.48",children:[e.jsx("path",{fill:"url(#paint1_linear_1_51)",d:"M306.33 166.969c.478 1.241.717 1.861 1.228 2.212.512.351 1.176.351 2.505.351h.314c2.649 0 3.973 0 4.569-.869.596-.87.118-2.105-.839-4.574l-1.586-4.099c-.479-1.237-.718-1.855-1.229-2.205-.511-.351-1.175-.351-2.501-.351h-.305c-2.644 0-3.966 0-4.562.868-.596.868-.121 2.102.829 4.569l1.577 4.098z"}),e.jsx("path",{fill:"url(#paint2_linear_1_51)",d:"M284.397 166.971c.478 1.24.717 1.86 1.228 2.211.512.351 1.176.351 2.505.351h.315c2.648 0 3.973 0 4.568-.87.596-.87.118-2.105-.838-4.575l-2.705-6.986c-.479-1.237-.718-1.855-1.229-2.205-.511-.35-1.175-.35-2.501-.35h-.303c-2.645 0-3.967 0-4.563.868-.596.868-.12 2.102.831 4.57l2.692 6.986z"}),e.jsx("path",{fill:"url(#paint3_linear_1_51)",d:"M273.442 166.976c.479 1.237.718 1.856 1.229 2.206.511.351 1.175.351 2.502.351h.32c2.648 0 3.972 0 4.568-.87.596-.869.118-2.104-.838-4.574l-9.445-24.417c-.479-1.238-.718-1.856-1.229-2.207-.511-.35-1.175-.35-2.502-.35h-.32c-2.648 0-3.972 0-4.568.869-.596.87-.118 2.104.837 4.574l9.446 24.418z"}),e.jsx("path",{fill:"url(#paint4_linear_1_51)",d:"M262.463 166.974c.479 1.239.718 1.858 1.229 2.208.511.351 1.175.351 2.502.351h.322c2.647 0 3.97 0 4.566-.869.596-.869.119-2.104-.835-4.573l-12.935-33.472c-.479-1.238-.718-1.857-1.229-2.207-.511-.351-1.175-.351-2.502-.351h-.322c-2.647 0-3.97 0-4.566.869-.596.869-.119 2.104.835 4.573l12.935 33.471z"})]}),e.jsx("g",{fill:"#fff",fillRule:"evenodd",clipRule:"evenodd",opacity:"0.4",children:e.jsx("path",{d:"M78.02 155.171a15.22 15.22 0 11.312 1.015l-.156-.495-.157-.52zm15.194-4.189l-3.59-11.525a12.641 12.641 0 013.121-.547 12.102 12.102 0 0111.994 8.456c.312 1.014.496 2.062.546 3.122a13.006 13.006 0 01-.286 3.148 11.815 11.815 0 01-2.914 5.516 11.914 11.914 0 01-11.525 3.59 13.21 13.21 0 01-2.94-1.067 12.76 12.76 0 01-2.602-1.821 12.257 12.257 0 01-3.33-5.203l11.526-3.669zM111.296 251.773a15.298 15.298 0 0129.321-8.429v.494c0 .156 0 .338.182.494a15.272 15.272 0 01-28.619 10.407c-.078-.247-.149-.495-.221-.742a28.499 28.499 0 00-.221-.741 16.041 16.041 0 01-.171-.595 10.734 10.734 0 00-.271-.888zm11.187-14.7l3.746 11.474.079-.026 3.746 11.5a11.965 11.965 0 006.921-6.01 11.83 11.83 0 001.04-2.966c.23-1.024.317-2.075.26-3.122a12.07 12.07 0 00-9.548-11.188 12.42 12.42 0 00-6.244.338zM100.21 187.509a15.272 15.272 0 00-4.473 10.799v1.066a15.272 15.272 0 1030.544 0v-1.066a15.271 15.271 0 00-26.071-10.799zm10.591 11.293V186.73c2.112.016 4.183.581 6.01 1.639a11.366 11.366 0 012.602 1.925 12.027 12.027 0 01-.005 17.068 12.022 12.022 0 01-5.433 3.096 11.575 11.575 0 01-6.244 0 12.202 12.202 0 01-2.914-1.171l5.984-10.485z"})}),e.jsx("path",{fill:"url(#paint5_linear_1_51)",d:"M151.154 76h-41.55l12.645 7.727L151.154 76z"}),e.jsx("path",{fill:"url(#paint6_linear_1_51)",d:"M151.154 76l-26.668 12.332 4.501 15.715L151.154 76z"}),e.jsx("path",{fill:"url(#paint7_linear_1_51)",d:"M117.435 95.279l7.051-6.947L151.154 76 117.435 95.28z"}),e.jsx("path",{fill:c,d:"M117.435 95.279l7.051-6.947L151.154 76l-28.905 7.727-4.814 11.552z"}),e.jsxs("defs",{children:[e.jsxs("filter",{id:"filter0_f_1_51",width:"101.56",height:"100.65",x:"232.807",y:"109.722",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.jsx("feGaussianBlur",{result:"effect1_foregroundBlur_1_51",stdDeviation:"10"})]}),e.jsxs("linearGradient",{id:"paint0_linear_1_51",x1:"47.397",x2:"47.397",y1:"107.95",y2:"281.395",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint1_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint2_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint3_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint4_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint5_linear_1_51",x1:"109.604",x2:"109.604",y1:"76",y2:"104.047",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint6_linear_1_51",x1:"109.604",x2:"109.604",y1:"76",y2:"104.047",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint7_linear_1_51",x1:"109.604",x2:"109.604",y1:"76",y2:"104.047",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]})]}),e.jsx("image",{href:o,height:"300",x:"312",y:"30"})]})}function z(){return e.jsx(t,{direction:"vertical",size:"large",style:{width:"100%"},children:e.jsx(n,{})})}export{z as default}; diff --git a/frontend/dist/assets/index-1ddae2d1.js b/frontend/dist/assets/index-1ddae2d1.js deleted file mode 100644 index 754d174..0000000 --- a/frontend/dist/assets/index-1ddae2d1.js +++ /dev/null @@ -1 +0,0 @@ -import{u as l,e as a,O as c,C as s,j as e,U as t}from"./index-32c3357d.js";import{R as i,C as r}from"./row-4d2b6eab.js";import"./__commonjsHelpers__-02d3be64.js";const o="/admin/assets/character_3-e4c36e91.png";function n(){const{t:t}=l(),o=a(),n=c(),z=`linear-gradient(135deg, ${s(o.colorPrimaryHover).alpha(.2)}, ${s(o.colorPrimary).alpha(.2)}) rgb(255, 255, 255)`;return e.jsxs(i,{className:"!mx-0 rounded-2xl p-10",gutter:[16,16],justify:"space-between",style:{background:z},children:[e.jsxs(r,{span:24,md:12,xl:16,className:"flex-1 text-center md:text-left",children:[e.jsxs("div",{className:"mt-4 text-lg font-semibold md:text-xl",style:{color:o.colorPrimaryActive},children:[e.jsxs("h4",{children:[t("common.welcomeBack")," "]}),e.jsx("h4",{children:"PandoraNext Helper"})]}),e.jsx("p",{style:{color:o.colorPrimaryTextActive},className:"mx-auto mb-6 mt-4 max-w-sm text-sm opacity-80 md:mx-0",children:t("common.desc")}),e.jsx("button",{className:"font-mediumtext-black m-auto flex items-center justify-center rounded-md px-2 py-1 shadow-none md:m-0",style:{backgroundColor:o.colorPrimary},onClick:()=>n("/token/account"),children:t("common.goNow")})]}),e.jsx(r,{span:24,md:12,xl:8,className:"!md:max-w-[320px] mx-auto !max-w-[270px] flex-none items-center justify-center ",children:e.jsx(m,{})})]})}function m(){const{colorPrimary:l,colorPrimaryActive:c,colorPrimaryHover:s}=a();return e.jsxs("svg",{viewBox:"0 0 480 360",className:"h-full w-full",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[e.jsx("stop",{offset:"0%",stopColor:l}),e.jsx("stop",{offset:"100%",stopColor:l,stopOpacity:"0"})]})}),e.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),e.jsx("path",{fill:c,fillRule:"evenodd",d:"M109.224 97.41l.812 1.827-.02.009-.061.027-.248.112c-.219.1-.544.25-.968.449l-.849-1.811c.43-.202.762-.355.988-.457l.256-.117.066-.03.024-.01zm-6.771 3.278c.997-.507 1.901-.958 2.7-1.35l.882 1.795c-.791.388-1.687.835-2.675 1.337l-.907-1.782zm-5.356 2.808c.93-.502 1.82-.975 2.665-1.418l.929 1.771c-.838.439-1.72.909-2.644 1.407l-.95-1.76zm-5.274 2.927c.901-.513 1.779-1.007 2.63-1.479l.97 1.749c-.844.468-1.715.958-2.609 1.468l-.99-1.738zm-5.232 3.065c.887-.533 1.758-1.05 2.612-1.55l1.01 1.725c-.847.497-1.712 1.01-2.591 1.539l-1.03-1.714zm-5.117 3.16c.861-.546 1.713-1.079 2.555-1.599l1.05 1.702c-.834.516-1.68 1.044-2.534 1.586l-1.071-1.689zm-5.065 3.301a242.86 242.86 0 012.515-1.661l1.092 1.675a236.91 236.91 0 00-2.494 1.648l-1.113-1.662zm-4.978 3.431c.83-.589 1.66-1.168 2.484-1.736l1.134 1.646c-.817.564-1.638 1.137-2.461 1.721l-1.157-1.631zm-4.873 3.56a197.5 197.5 0 012.427-1.8l1.18 1.615c-.8.585-1.602 1.179-2.404 1.782l-1.203-1.597zm-4.771 3.71c.787-.632 1.576-1.256 2.366-1.87l1.228 1.579c-.782.608-1.563 1.225-2.342 1.85l-1.252-1.559zm-4.651 3.867c.765-.659 1.534-1.31 2.307-1.952l1.279 1.538c-.764.635-1.525 1.278-2.281 1.929l-1.305-1.515zm-4.51 4.035c.739-.688 1.485-1.368 2.236-2.04l1.333 1.491c-.742.664-1.478 1.335-2.208 2.013l-1.362-1.464zm-4.347 4.215a136.43 136.43 0 012.151-2.132l1.392 1.437c-.715.692-1.422 1.392-2.12 2.1l-1.423-1.405zm-4.157 4.411c.674-.751 1.359-1.495 2.053-2.231l1.455 1.371c-.683.725-1.356 1.457-2.019 2.196l-1.489-1.336zm-3.929 4.623c.633-.788 1.279-1.568 1.936-2.341l1.524 1.295a105.43 105.43 0 00-1.9 2.298l-1.56-1.252zm-3.657 4.848a94.278 94.278 0 011.793-2.455l1.596 1.205c-.6.794-1.185 1.595-1.754 2.403l-1.635-1.153zm-3.328 5.084a83.294 83.294 0 011.617-2.57l1.673 1.097a80.437 80.437 0 00-1.578 2.507l-1.712-1.034zm-2.94 5.341c.45-.907.922-1.806 1.414-2.698l1.752.965a69.62 69.62 0 00-1.375 2.623l-1.791-.89zm-2.465 5.583c.366-.948.755-1.889 1.168-2.823l1.83.808c-.4.906-.778 1.817-1.132 2.735l-1.866-.72zm-1.903 5.808c.265-.984.558-1.962.876-2.932l1.9.624a54.83 54.83 0 00-.845 2.828l-1.93-.52zm-1.253 5.993c.15-1.012.331-2.018.54-3.017l1.958.41a50.126 50.126 0 00-.52 2.901l-1.978-.294zm-.467 4.577c.028-.513.065-1.024.109-1.535l1.992.174c-.042.489-.077.98-.104 1.472-.028.496-.04.986-.037 1.469l-2 .014c-.003-.526.01-1.057.04-1.594zm.822 7.749a22.495 22.495 0 01-.643-3.074l1.982-.272c.131.959.328 1.892.585 2.801l-1.924.545zm2.498 5.699a23.889 23.889 0 01-1.444-2.77l1.83-.805c.382.867.824 1.713 1.324 2.538l-1.71 1.037zm3.777 4.87a30.2 30.2 0 01-2.019-2.327l1.578-1.23a28.113 28.113 0 001.885 2.173l-1.444 1.384zm4.602 4.048a41.441 41.441 0 01-2.349-1.902l1.316-1.506c.706.617 1.452 1.22 2.235 1.809l-1.202 1.599zm5.09 3.361a56.872 56.872 0 01-2.58-1.598l1.1-1.671a54.91 54.91 0 002.488 1.542l-1.008 1.727zm5.371 2.823a75.691 75.691 0 01-2.716-1.355l.929-1.771c.857.449 1.74.889 2.645 1.319l-.858 1.807zm5.542 2.408c-.95-.379-1.882-.766-2.794-1.162l.795-1.834c.894.387 1.807.767 2.74 1.138l-.741 1.858zm294.857-2.594c.244.101.598.253 1.048.457l-.828 1.821a31.67 31.67 0 00-1.241-.534l-.061-.025-.014-.005-.003-.001.357-.934.356-.934h.001l.002.001.006.002.021.008.075.03c.065.025.159.063.281.114zm-289.206 4.68c-.96-.329-1.906-.664-2.837-1.007l.692-1.877c.915.337 1.846.668 2.793.992l-.648 1.892zm293.015-2.865c.807.425 1.708.923 2.682 1.497l-1.016 1.723a62.506 62.506 0 00-2.598-1.45l.932-1.77zm-287.286 4.698c-.965-.289-1.918-.583-2.859-.884l.609-1.905c.928.296 1.87.587 2.824.873l-.574 1.916zm292.565-1.59a69.641 69.641 0 012.522 1.724l-1.165 1.626a66.44 66.44 0 00-2.449-1.674l1.092-1.676zM69.05 221.541c-.967-.256-1.924-.517-2.87-.783l.54-1.926c.938.264 1.885.522 2.842.776l-.512 1.933zm5.833 1.464c-.977-.233-1.945-.469-2.905-.709l.486-1.94c.952.238 1.912.472 2.881.703l-.462 1.946zm5.867 1.326c-.988-.213-1.97-.429-2.944-.649l.44-1.951c.968.219 1.943.434 2.925.645l-.42 1.955zm280.057-2.439a67.422 67.422 0 012.356 1.94l-1.306 1.515a65.709 65.709 0 00-2.286-1.883l1.236-1.572zM86.623 225.54a333.57 333.57 0 01-2.954-.595l.403-1.959c.973.201 1.952.398 2.937.591l-.386 1.963zm5.88 1.112c-.985-.179-1.967-.361-2.944-.546l.371-1.965c.973.184 1.95.365 2.931.543l-.357 1.968zm5.904 1.035c-.983-.167-1.963-.335-2.94-.506l.345-1.97c.973.17 1.95.338 2.93.504l-.335 1.972zm267.031-1.801a64.195 64.195 0 012.181 2.162l-1.442 1.386a63.013 63.013 0 00-2.113-2.095l1.374-1.453zm-261.112 2.771c-.989-.157-1.976-.316-2.959-.477l.323-1.974c.981.161 1.964.319 2.95.476l-.314 1.975zm5.919.916c-.99-.149-1.978-.3-2.965-.453l.306-1.976c.984.152 1.969.302 2.957.451l-.298 1.978zm5.92.873c-.987-.143-1.975-.287-2.961-.432l.292-1.979c.984.145 1.969.289 2.955.431l-.286 1.98zm5.929.84a781.94 781.94 0 01-2.965-.417l.281-1.98 2.96.417-.276 1.98zm5.927.818c-.987-.135-1.976-.27-2.965-.407l.273-1.981c.988.136 1.976.272 2.962.406l-.27 1.982zm241.664-1.8a62.33 62.33 0 011.957 2.359l-1.571 1.238a58.92 58.92 0 00-1.893-2.282l1.507-1.315zm-235.74 2.603l-2.957-.4.269-1.982 2.956.4-.268 1.982zm5.935.801l-2.964-.4.267-1.982 2.965.4-.268 1.982zm5.928.805l-2.977-.406.269-1.982 2.98.407-.272 1.981zm5.915.821l-2.962-.414.275-1.981c.993.138 1.982.276 2.966.415l-.279 1.98zm5.896.848c-.971-.143-1.948-.285-2.93-.426l.284-1.98c.985.142 1.964.284 2.937.427l-.291 1.979zm5.922.895c-.972-.151-1.952-.302-2.94-.451l.299-1.977c.99.149 1.973.3 2.949.452l-.308 1.976zm209.938-1.957a59.573 59.573 0 011.709 2.551l-1.69 1.069a56.139 56.139 0 00-1.651-2.463l1.632-1.157zm-204.034 2.911c-.974-.163-1.958-.325-2.952-.486l.319-1.974c.998.161 1.986.324 2.965.488l-.332 1.972zm5.881 1.035a369.37 369.37 0 00-2.965-.534l.346-1.97c1.006.177 2 .356 2.982.537l-.363 1.967zm5.85 1.143c-.972-.201-1.959-.399-2.961-.595l.383-1.963c1.009.197 2.004.397 2.984.6l-.406 1.958zm5.81 1.291c-.958-.228-1.935-.453-2.932-.674l.433-1.953c1.006.223 1.995.451 2.964.682l-.465 1.945zm5.75 1.497a126.97 126.97 0 00-2.901-.788l.502-1.936c1.006.261 1.988.527 2.947.8l-.548 1.924zm184.026-2.689c.494.881.972 1.787 1.431 2.718l-1.794.884a54.93 54.93 0 00-1.381-2.623l1.744-.979zm-178.387 4.477a83.817 83.817 0 00-2.858-.956l.602-1.907c1.007.317 1.983.643 2.926.978l-.67 1.885zm5.402 2.214a50.388 50.388 0 00-2.665-1.174l.755-1.852a52.08 52.08 0 012.773 1.222l-.863 1.804zm175.7-1.183c.397.928.775 1.88 1.132 2.854l-1.878.687a55.769 55.769 0 00-1.093-2.754l1.839-.787zm-171.918 3.282a27.52 27.52 0 00-1.18-.728l1.008-1.727c.438.255.86.515 1.266.781.386.252.788.506 1.206.763l-1.045 1.705a54.43 54.43 0 01-1.255-.794zm6.674 3.795a88.769 88.769 0 01-2.71-1.43l.964-1.752c.839.462 1.723.928 2.65 1.398l-.904 1.784zm167.354-1.314c.295.964.57 1.949.822 2.955l-1.94.486a56.86 56.86 0 00-.794-2.854l1.912-.587zm-161.766 3.964c-.978-.436-1.926-.872-2.842-1.305l.856-1.808c.902.427 1.836.856 2.801 1.287l-.815 1.826zm5.624 2.389c-.977-.396-1.932-.792-2.864-1.188l.781-1.841c.922.391 1.867.783 2.834 1.175l-.751 1.854zm5.702 2.219c-.979-.366-1.942-.734-2.887-1.101l.726-1.864c.936.364 1.891.728 2.863 1.092l-.702 1.873zm151.931-2.627c.195.988.367 1.994.517 3.019l-1.979.289a60 60 0 00-.5-2.921l1.962-.387zm-146.173 4.709a282.93 282.93 0 01-2.913-1.035l.68-1.881c.95.343 1.915.686 2.893 1.028l-.66 1.888zm5.793 1.961c-.989-.325-1.966-.651-2.932-.977l.642-1.895c.959.325 1.931.649 2.913.971l-.623 1.901zm5.808 1.851a366.91 366.91 0 01-2.928-.92l.607-1.905c.961.306 1.932.611 2.912.915l-.591 1.91zm135.458-2.462c.049.509.093 1.023.131 1.542a15.1 15.1 0 01.032 1.682l-1.998-.075c.017-.471.008-.958-.029-1.461a59 59 0 00-.127-1.495l1.991-.193zm-129.616 4.222a452.59 452.59 0 01-2.926-.869l.577-1.915c.963.29 1.934.578 2.911.864l-.562 1.92zm5.875 1.674c-.982-.272-1.957-.546-2.927-.823l.548-1.923c.965.275 1.936.548 2.913.819l-.534 1.927zm5.902 1.593a521.99 521.99 0 01-2.943-.783l.521-1.931c.972.262 1.949.522 2.93.779l-.508 1.935zm117.481-1.038a12.02 12.02 0 01-1.365 2.996l-1.691-1.069a9.965 9.965 0 001.139-2.499l1.917.572zm-111.556 2.55c-.993-.246-1.982-.495-2.968-.747l.495-1.938c.981.251 1.966.499 2.955.744l-.482 1.941zm5.937 1.432c-.995-.233-1.987-.469-2.977-.708l.469-1.944c.985.238 1.973.472 2.964.704l-.456 1.948zm5.954 1.352a461.96 461.96 0 01-2.98-.667l.443-1.95c.987.224 1.976.445 2.967.663l-.43 1.954zm5.976 1.272a440.55 440.55 0 01-2.989-.626l.416-1.956c.992.211 1.984.419 2.976.623l-.403 1.959zm90.244-1.087a17.352 17.352 0 01-2.54 1.996l-1.091-1.676a15.272 15.272 0 002.247-1.764l1.384 1.444zm-84.25 2.277c-1-.191-2.001-.386-3.002-.585l.39-1.962c.996.198 1.992.392 2.987.582l-.375 1.965zm6.003 1.101c-.999-.175-1.999-.355-3.001-.539l.361-1.967c.997.183 1.993.362 2.987.537l-.347 1.969zm72.9.168c-.911.427-1.878.819-2.897 1.178l-.663-1.887a29.338 29.338 0 002.71-1.102l.85 1.811zm-66.872.844c-1-.16-2.003-.324-3.007-.493l.33-1.972c1 .168 1.997.331 2.992.49l-.315 1.975zm6.051.913a350.993 350.993 0 01-3.025-.444l.299-1.977c1.006.152 2.009.299 3.007.441l-.281 1.98zm54.962.332c-.979.263-1.996.501-3.05.716l-.4-1.96a50.079 50.079 0 002.932-.688l.518 1.932zm-48.896.472a292.674 292.674 0 01-3.049-.39l.263-1.982c1.015.135 2.025.264 3.03.387l-.244 1.985zm6.076.684a273.234 273.234 0 01-3.058-.328l.224-1.987c1.019.115 2.031.223 3.037.325l-.203 1.99zm36.729.101c-.989.152-2.005.287-3.047.406l-.226-1.988a74.52 74.52 0 002.968-.395l.305 1.977zm-30.642.446a247.153 247.153 0 01-3.048-.255l.18-1.992c1.015.091 2.023.176 3.023.253l-.155 1.994zm6.099.39a193.964 193.964 0 01-3.036-.173l.128-1.995c1.012.064 2.015.122 3.007.171l-.099 1.997zm18.393-.133c-.991.079-2.002.144-3.032.196l-.101-1.997a107.33 107.33 0 002.975-.193l.158 1.994zm-12.279.337a175.75 175.75 0 01-3.028-.075l.067-1.999c1.01.034 2.008.059 2.993.075l-.032 1.999zm6.131-.023c-.993.025-2.002.039-3.025.043l-.007-2c1.009-.004 2.003-.018 2.981-.043l.051 2z",clipRule:"evenodd",opacity:"0.24"}),e.jsx("path",{fill:"#fff",d:"M47.943 122.571L96.231 273.55a11.4 11.4 0 0011.786 7.805l63.326-5.36 148.013-12.644a11.316 11.316 0 009.904-7.823c.456-1.421.627-2.918.503-4.405a12.314 12.314 0 00-.729-3.122l-11.838-31.221-21.412-57.238-16.599-44.23a11.37 11.37 0 00-10.641-7.362H58.741a11.345 11.345 0 00-11.344 11.343c.016 1.114.2 2.219.546 3.278z"}),e.jsx("path",{fill:"#fff",d:"M47.943 122.571L96.231 273.55a11.4 11.4 0 0011.786 7.805l63.326-5.36 148.013-12.644a11.316 11.316 0 009.904-7.823c.456-1.421.627-2.918.503-4.405a12.314 12.314 0 00-.729-3.122l-11.838-31.221-21.412-57.238-16.599-44.23a11.37 11.37 0 00-10.641-7.362H58.741a11.345 11.345 0 00-11.344 11.343c.016 1.114.2 2.219.546 3.278z"}),e.jsx("path",{fill:"url(#paint0_linear_1_51)",d:"M170.575 276.06l-62.558 5.295a11.4 11.4 0 01-11.785-7.805L47.942 122.571a11.028 11.028 0 01-.546-3.278A11.34 11.34 0 0158.74 107.95h57.453l54.382 168.11z"}),e.jsx("path",{fill:"#F4F6F8",d:"M227.879 191.221c2.613-.162 4.368-2.749 3.553-5.237l-8.483-25.895a4.002 4.002 0 00-3.993-2.75l-61.621 2.961c-2.666.128-4.461 2.782-3.588 5.304l9.248 26.717a3.999 3.999 0 004.028 2.683l60.856-3.783z"}),e.jsx("path",{fill:"#DFE3E8",d:"M244.879 239.221c2.613-.162 4.368-2.749 3.553-5.237l-8.483-25.895a4.002 4.002 0 00-3.993-2.75l-61.621 2.961c-2.666.128-4.461 2.782-3.588 5.304l9.248 26.717a3.999 3.999 0 004.028 2.683l60.856-3.783z"}),e.jsx("g",{filter:"url(#filter0_f_1_51)",opacity:"0.4",children:e.jsx("path",{fill:"#919EAB",d:"M253.012 134.539l15.948 52.893a4.007 4.007 0 003.903 2.94l39.559-1.142a2 2 0 001.816-2.7l-20.001-53.4a2 2 0 00-1.755-1.295l-35.906-2.109a3.612 3.612 0 00-3.059 1.461 3.614 3.614 0 00-.505 3.352z"})}),e.jsx("path",{fill:"#fff",d:"M330.082 174.424l-16.495-46.701a4.03 4.03 0 00-3.512-2.732l-69.518-4.111a3.676 3.676 0 00-3.061 1.481 3.663 3.663 0 00-.53 3.358l15.949 52.92a4.057 4.057 0 003.902 2.966l70.091-2.108a3.663 3.663 0 002.898-1.716 3.667 3.667 0 00.276-3.357z"}),e.jsx("path",{fill:c,d:"M295.375 166.976c.478 1.237.718 1.856 1.229 2.206.511.351 1.174.351 2.501.351h.32c2.648 0 3.972 0 4.568-.87.596-.869.118-2.104-.837-4.574l-6.427-16.612c-.479-1.238-.719-1.856-1.23-2.207-.511-.35-1.174-.35-2.501-.35h-.32c-2.648 0-3.972 0-4.568.87-.596.869-.118 2.104.837 4.573l6.428 16.613z"}),e.jsxs("g",{opacity:"0.48",children:[e.jsx("path",{fill:"url(#paint1_linear_1_51)",d:"M306.33 166.969c.478 1.241.717 1.861 1.228 2.212.512.351 1.176.351 2.505.351h.314c2.649 0 3.973 0 4.569-.869.596-.87.118-2.105-.839-4.574l-1.586-4.099c-.479-1.237-.718-1.855-1.229-2.205-.511-.351-1.175-.351-2.501-.351h-.305c-2.644 0-3.966 0-4.562.868-.596.868-.121 2.102.829 4.569l1.577 4.098z"}),e.jsx("path",{fill:"url(#paint2_linear_1_51)",d:"M284.397 166.971c.478 1.24.717 1.86 1.228 2.211.512.351 1.176.351 2.505.351h.315c2.648 0 3.973 0 4.568-.87.596-.87.118-2.105-.838-4.575l-2.705-6.986c-.479-1.237-.718-1.855-1.229-2.205-.511-.35-1.175-.35-2.501-.35h-.303c-2.645 0-3.967 0-4.563.868-.596.868-.12 2.102.831 4.57l2.692 6.986z"}),e.jsx("path",{fill:"url(#paint3_linear_1_51)",d:"M273.442 166.976c.479 1.237.718 1.856 1.229 2.206.511.351 1.175.351 2.502.351h.32c2.648 0 3.972 0 4.568-.87.596-.869.118-2.104-.838-4.574l-9.445-24.417c-.479-1.238-.718-1.856-1.229-2.207-.511-.35-1.175-.35-2.502-.35h-.32c-2.648 0-3.972 0-4.568.869-.596.87-.118 2.104.837 4.574l9.446 24.418z"}),e.jsx("path",{fill:"url(#paint4_linear_1_51)",d:"M262.463 166.974c.479 1.239.718 1.858 1.229 2.208.511.351 1.175.351 2.502.351h.322c2.647 0 3.97 0 4.566-.869.596-.869.119-2.104-.835-4.573l-12.935-33.472c-.479-1.238-.718-1.857-1.229-2.207-.511-.351-1.175-.351-2.502-.351h-.322c-2.647 0-3.97 0-4.566.869-.596.869-.119 2.104.835 4.573l12.935 33.471z"})]}),e.jsx("g",{fill:"#fff",fillRule:"evenodd",clipRule:"evenodd",opacity:"0.4",children:e.jsx("path",{d:"M78.02 155.171a15.22 15.22 0 11.312 1.015l-.156-.495-.157-.52zm15.194-4.189l-3.59-11.525a12.641 12.641 0 013.121-.547 12.102 12.102 0 0111.994 8.456c.312 1.014.496 2.062.546 3.122a13.006 13.006 0 01-.286 3.148 11.815 11.815 0 01-2.914 5.516 11.914 11.914 0 01-11.525 3.59 13.21 13.21 0 01-2.94-1.067 12.76 12.76 0 01-2.602-1.821 12.257 12.257 0 01-3.33-5.203l11.526-3.669zM111.296 251.773a15.298 15.298 0 0129.321-8.429v.494c0 .156 0 .338.182.494a15.272 15.272 0 01-28.619 10.407c-.078-.247-.149-.495-.221-.742a28.499 28.499 0 00-.221-.741 16.041 16.041 0 01-.171-.595 10.734 10.734 0 00-.271-.888zm11.187-14.7l3.746 11.474.079-.026 3.746 11.5a11.965 11.965 0 006.921-6.01 11.83 11.83 0 001.04-2.966c.23-1.024.317-2.075.26-3.122a12.07 12.07 0 00-9.548-11.188 12.42 12.42 0 00-6.244.338zM100.21 187.509a15.272 15.272 0 00-4.473 10.799v1.066a15.272 15.272 0 1030.544 0v-1.066a15.271 15.271 0 00-26.071-10.799zm10.591 11.293V186.73c2.112.016 4.183.581 6.01 1.639a11.366 11.366 0 012.602 1.925 12.027 12.027 0 01-.005 17.068 12.022 12.022 0 01-5.433 3.096 11.575 11.575 0 01-6.244 0 12.202 12.202 0 01-2.914-1.171l5.984-10.485z"})}),e.jsx("path",{fill:"url(#paint5_linear_1_51)",d:"M151.154 76h-41.55l12.645 7.727L151.154 76z"}),e.jsx("path",{fill:"url(#paint6_linear_1_51)",d:"M151.154 76l-26.668 12.332 4.501 15.715L151.154 76z"}),e.jsx("path",{fill:"url(#paint7_linear_1_51)",d:"M117.435 95.279l7.051-6.947L151.154 76 117.435 95.28z"}),e.jsx("path",{fill:c,d:"M117.435 95.279l7.051-6.947L151.154 76l-28.905 7.727-4.814 11.552z"}),e.jsxs("defs",{children:[e.jsxs("filter",{id:"filter0_f_1_51",width:"101.56",height:"100.65",x:"232.807",y:"109.722",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.jsx("feGaussianBlur",{result:"effect1_foregroundBlur_1_51",stdDeviation:"10"})]}),e.jsxs("linearGradient",{id:"paint0_linear_1_51",x1:"47.397",x2:"47.397",y1:"107.95",y2:"281.395",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint1_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint2_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint3_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint4_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint5_linear_1_51",x1:"109.604",x2:"109.604",y1:"76",y2:"104.047",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint6_linear_1_51",x1:"109.604",x2:"109.604",y1:"76",y2:"104.047",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]}),e.jsxs("linearGradient",{id:"paint7_linear_1_51",x1:"109.604",x2:"109.604",y1:"76",y2:"104.047",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:s}),e.jsx("stop",{offset:"1",stopColor:c})]})]}),e.jsx("image",{href:o,height:"300",x:"312",y:"30"})]})}function z(){return e.jsx(t,{direction:"vertical",size:"large",style:{width:"100%"},children:e.jsx(n,{})})}export{z as default}; diff --git a/frontend/dist/assets/index-32c3357d.js b/frontend/dist/assets/index-24044c4a.js similarity index 79% rename from frontend/dist/assets/index-32c3357d.js rename to frontend/dist/assets/index-24044c4a.js index 986ea05..1528459 100644 --- a/frontend/dist/assets/index-32c3357d.js +++ b/frontend/dist/assets/index-24044c4a.js @@ -1,4 +1,4 @@ -import{g as e,c as t}from"./__commonjsHelpers__-02d3be64.js";function n(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var r={exports:{}},o={},i={exports:{}},a={},s=Symbol.for("react.element"),l=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.iterator;var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function S(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}function C(){}function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=S.prototype;var k=E.prototype=new C;k.constructor=E,x(k,S.prototype),k.isPureReactComponent=!0;var O=Array.isArray,$=Object.prototype.hasOwnProperty,P={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)$.call(t,r)&&!T.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}},o={},i={exports:{}},a={},s=Symbol.for("react.element"),l=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.iterator;var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function S(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}function C(){}function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=S.prototype;var k=E.prototype=new C;k.constructor=E,x(k,S.prototype),k.isPureReactComponent=!0;var O=Array.isArray,$=Object.prototype.hasOwnProperty,P={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)$.call(t,r)&&!T.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1