From 84fbebda4cb0bc4472c95636049fdc94bea62aa5 Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Thu, 10 Aug 2023 10:39:52 +0800 Subject: [PATCH] feat:add knowledge argument web page --- pilot/server/knowledge/service.py | 2 +- pilot/server/static/404.html | 2 +- pilot/server/static/404/index.html | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 .../static/chunks/207-2d692c761ec68010.js | 63 ++++++++++++++++ .../static/chunks/388-0639392dd59206df.js | 3 + ...efc3aa943a7.js => 759-92fc0713bcb724b3.js} | 0 ...147a1026461.js => 877-546903595944ff79.js} | 0 .../static/chunks/957-c96ff4de6e80d713.js | 63 ---------------- .../chunklist/page-0f2d3429fd2ed723.js | 1 + .../chunklist/page-cd9a18b737d2f31b.js | 1 - .../documents/page-15bd54399f756d3e.js | 1 + .../documents/page-8c5325d5737cf6c7.js | 1 - .../app/datastores/page-1a9284a20aa72bde.js | 1 - .../app/datastores/page-e3faa10929c9a39f.js | 1 + ...288fef1e.js => layout-0a94eba37232c629.js} | 2 +- ...a07fe28c2b.js => page-9c38e63e2d7fd44b.js} | 2 +- pilot/server/static/chat/index.html | 2 +- pilot/server/static/chat/index.txt | 6 +- .../datastores/documents/chunklist/index.html | 2 +- .../datastores/documents/chunklist/index.txt | 6 +- .../static/datastores/documents/index.html | 2 +- .../static/datastores/documents/index.txt | 6 +- pilot/server/static/datastores/index.html | 2 +- pilot/server/static/datastores/index.txt | 6 +- pilot/server/static/huggingface_logo.svg | 73 +++++++++++++++++++ pilot/server/static/index.html | 2 +- pilot/server/static/index.txt | 6 +- 29 files changed, 167 insertions(+), 91 deletions(-) rename pilot/server/static/_next/static/{Cacznp7OMpA2Ut8fcv_rl => A03tTCRMVq61CqNtuDOvh}/_buildManifest.js (100%) rename pilot/server/static/_next/static/{Cacznp7OMpA2Ut8fcv_rl => A03tTCRMVq61CqNtuDOvh}/_ssgManifest.js (100%) create mode 100644 pilot/server/static/_next/static/chunks/207-2d692c761ec68010.js create mode 100644 pilot/server/static/_next/static/chunks/388-0639392dd59206df.js rename pilot/server/static/_next/static/chunks/{759-22c7defc3aa943a7.js => 759-92fc0713bcb724b3.js} (100%) rename pilot/server/static/_next/static/chunks/{877-cd5be147a1026461.js => 877-546903595944ff79.js} (100%) delete mode 100644 pilot/server/static/_next/static/chunks/957-c96ff4de6e80d713.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-0f2d3429fd2ed723.js delete mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/page-15bd54399f756d3e.js delete mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.js delete mode 100644 pilot/server/static/_next/static/chunks/app/datastores/page-1a9284a20aa72bde.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/page-e3faa10929c9a39f.js rename pilot/server/static/_next/static/chunks/app/{layout-b589be73288fef1e.js => layout-0a94eba37232c629.js} (99%) rename pilot/server/static/_next/static/chunks/app/{page-d7bb6ba07fe28c2b.js => page-9c38e63e2d7fd44b.js} (99%) create mode 100644 pilot/server/static/huggingface_logo.svg diff --git a/pilot/server/knowledge/service.py b/pilot/server/knowledge/service.py index 60745a118..3cd7589e5 100644 --- a/pilot/server/knowledge/service.py +++ b/pilot/server/knowledge/service.py @@ -335,7 +335,7 @@ class KnowledgeService: "topk": CFG.KNOWLEDGE_SEARCH_TOP_SIZE, "recall_score": 0.0, "recall_type": "TopK", - "model": CFG.EMBEDDING_MODEL, + "model": LLM_MODEL_CONFIG[CFG.EMBEDDING_MODEL].rsplit("/", 1)[-1], "chunk_size": CFG.KNOWLEDGE_CHUNK_SIZE, "chunk_overlap": CFG.KNOWLEDGE_CHUNK_OVERLAP, }, diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index b1f90a62a..a129dad56 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html index b1f90a62a..a129dad56 100644 --- a/pilot/server/static/404/index.html +++ b/pilot/server/static/404/index.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/_next/static/Cacznp7OMpA2Ut8fcv_rl/_buildManifest.js b/pilot/server/static/_next/static/A03tTCRMVq61CqNtuDOvh/_buildManifest.js similarity index 100% rename from pilot/server/static/_next/static/Cacznp7OMpA2Ut8fcv_rl/_buildManifest.js rename to pilot/server/static/_next/static/A03tTCRMVq61CqNtuDOvh/_buildManifest.js diff --git a/pilot/server/static/_next/static/Cacznp7OMpA2Ut8fcv_rl/_ssgManifest.js b/pilot/server/static/_next/static/A03tTCRMVq61CqNtuDOvh/_ssgManifest.js similarity index 100% rename from pilot/server/static/_next/static/Cacznp7OMpA2Ut8fcv_rl/_ssgManifest.js rename to pilot/server/static/_next/static/A03tTCRMVq61CqNtuDOvh/_ssgManifest.js diff --git a/pilot/server/static/_next/static/chunks/207-2d692c761ec68010.js b/pilot/server/static/_next/static/chunks/207-2d692c761ec68010.js new file mode 100644 index 000000000..a0f0d9691 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/207-2d692c761ec68010.js @@ -0,0 +1,63 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[207],{95131:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(40431),o=n(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},44334:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(46750),o=n(40431),i=n(86006),a=n(53832),l=n(47562),c=n(89791),s=n(88930),u=n(326),d=n(50645),p=n(13809);function m(e){return(0,p.Z)("MuiBreadcrumbs",e)}(0,n(88539).Z)("MuiBreadcrumbs",["root","ol","li","separator","sizeSm","sizeMd","sizeLg"]);var f=n(9268);let g=["children","className","size","separator","component","slots","slotProps"],h=e=>{let{size:t}=e,n={root:["root",t&&`size${(0,a.Z)(t)}`],li:["li"],ol:["ol"],separator:["separator"]};return(0,l.Z)(n,m,{})},v=(0,d.Z)("nav",{name:"JoyBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,o.Z)({},"sm"===t.size&&{"--Breadcrumbs-gap":"0.25rem",fontSize:e.vars.fontSize.sm,padding:"0.5rem"},"md"===t.size&&{"--Breadcrumbs-gap":"0.375rem",fontSize:e.vars.fontSize.md,padding:"0.75rem"},"lg"===t.size&&{"--Breadcrumbs-gap":"0.5rem",fontSize:e.vars.fontSize.lg,padding:"1rem"},{lineHeight:1})),b=(0,d.Z)("ol",{name:"JoyBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),S=(0,d.Z)("li",{name:"JoyBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({}),$=(0,d.Z)("li",{name:"JoyBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginInline:"var(--Breadcrumbs-gap)"}),y=i.forwardRef(function(e,t){let n=(0,s.Z)({props:e,name:"JoyBreadcrumbs"}),{children:a,className:l,size:d="md",separator:p="/",component:m,slots:y={},slotProps:x={}}=n,E=(0,r.Z)(n,g),w=(0,o.Z)({},n,{separator:p,size:d}),C=h(w),I=(0,o.Z)({},E,{component:m,slots:y,slotProps:x}),[O,Z]=(0,u.Z)("root",{ref:t,className:(0,c.Z)(C.root,l),elementType:v,externalForwardedProps:I,ownerState:w}),[R,k]=(0,u.Z)("ol",{className:C.ol,elementType:b,externalForwardedProps:I,ownerState:w}),[M,N]=(0,u.Z)("li",{className:C.li,elementType:S,externalForwardedProps:I,ownerState:w}),[z,P]=(0,u.Z)("separator",{additionalProps:{"aria-hidden":!0},className:C.separator,elementType:$,externalForwardedProps:I,ownerState:w}),T=i.Children.toArray(a).filter(e=>i.isValidElement(e)).map((e,t)=>(0,f.jsx)(M,(0,o.Z)({},N,{children:e}),`child-${t}`));return(0,f.jsx)(O,(0,o.Z)({},Z,{children:(0,f.jsx)(R,(0,o.Z)({},k,{children:T.reduce((e,t,n)=>(ne+1,0);return e}},29766:function(e,t,n){n.d(t,{Z:function(){return nm}});var r,o,i=n(40431),a=n(86006),l={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"},c=n(1240),s=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:l}))}),u={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"},d=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:u}))}),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},m=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:p}))}),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},g=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:f}))}),h=n(8683),v=n.n(h),b=n(65877),S=n(88684),$=n(18050),y=n(49449),x=n(43663),E=n(38340),w=n(42442),C={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},I=function(e){(0,x.Z)(n,e);var t=(0,E.Z)(n);function n(){var e;(0,$.Z)(this,n);for(var r=arguments.length,o=Array(r),i=0;i=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode===C.ENTER||"click"===t.type)&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return(0,y.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some(function(e){return e.toString()===t.toString()})?n:n.concat([t.toString()]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,i=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,d=t.selectPrefixCls,p=t.disabled,m=this.state.goInputText,f="".concat(o,"-options"),g=null,h=null,v=null;if(!i&&!l)return null;var b=this.getPageSizeOptions();if(i&&s){var S=b.map(function(t,n){return a.createElement(s.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))});g=a.createElement(s,{disabled:p,prefixCls:d,showSearch:!1,className:"".concat(f,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},S)}return l&&(c&&(v="boolean"==typeof c?a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(f,"-quick-jumper-button")},r.jump_to_confirm):a.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),h=a.createElement("div",{className:"".concat(f,"-quick-jumper")},r.jump_to,a.createElement("input",{disabled:p,type:"text",value:m,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,v)),a.createElement("li",{className:"".concat(f)},g,h)}}]),n}(a.Component);I.defaultProps={pageSizeOptions:["10","20","50","100"]};var O=function(e){var t,n=e.rootPrefixCls,r=e.page,o=e.active,i=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(n,"-item"),p=v()(d,"".concat(d,"-").concat(r),(t={},(0,b.Z)(t,"".concat(d,"-active"),o),(0,b.Z)(t,"".concat(d,"-disabled"),!r),(0,b.Z)(t,e.className,i),t));return a.createElement("li",{title:l?r.toString():null,className:p,onClick:function(){c(r)},onKeyPress:function(e){s(e,c,r)},tabIndex:0},u(r,"page",a.createElement("a",{rel:"nofollow"},r)))};function Z(){}function R(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function k(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var M=function(e){(0,x.Z)(n,e);var t=(0,E.Z)(n);function n(e){(0,$.Z)(this,n),(r=t.call(this,e)).paginationNode=a.createRef(),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(k(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,o=e||a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(o=a.createElement(e,(0,S.Z)({},r.props))),o},r.isValid=function(e){var t=r.props.total;return R(e)&&e!==r.state.current&&R(t)&&t>0},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t},r.handleKeyDown=function(e){(e.keyCode===C.ARROW_UP||e.keyCode===C.ARROW_DOWN)&&e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===C.ENTER?r.handleChange(t):e.keyCode===C.ARROW_UP?r.handleChange(t-1):e.keyCode===C.ARROW_DOWN&&r.handleChange(t+1)},r.handleBlur=function(e){var t=r.getValidValue(e);r.handleChange(t)},r.changePageSize=function(e){var t=r.state.current,n=k(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"!=typeof e||("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange,i=r.state,a=i.pageSize,l=i.current,c=i.currentInputValue;if(r.isValid(e)&&!n){var s=k(void 0,r.state,r.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==c&&r.setState({currentInputValue:u}),o(u,a),u}return l},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.style,o=e.disabled,l=e.hideOnSinglePage,c=e.total,s=e.locale,u=e.showQuickJumper,d=e.showLessItems,p=e.showTitle,m=e.showTotal,f=e.simple,g=e.itemRender,h=e.showPrevNextJumpers,S=e.jumpPrevIcon,$=e.jumpNextIcon,y=e.selectComponentClass,x=e.selectPrefixCls,E=e.pageSizeOptions,C=this.state,Z=C.current,R=C.pageSize,M=C.currentInputValue;if(!0===l&&c<=R)return null;var N=k(void 0,this.state,this.props),z=[],P=null,T=null,H=null,D=null,j=null,B=u&&u.goButton,L=d?1:2,A=Z-1>0?Z-1:0,W=Z+1c?c:Z*R]));if(f)return B&&(j="boolean"==typeof B?a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},s.jump_to_confirm):a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},B),j=a.createElement("li",{title:p?"".concat(s.jump_to).concat(Z,"/").concat(N):null,className:"".concat(t,"-simple-pager")},j)),a.createElement("ul",(0,i.Z)({className:v()(t,"".concat(t,"-simple"),(0,b.Z)({},"".concat(t,"-disabled"),o),n),style:r,ref:this.paginationNode},_),V,a.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:v()("".concat(t,"-prev"),(0,b.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(A)),a.createElement("li",{title:p?"".concat(Z,"/").concat(N):null,className:"".concat(t,"-simple-pager")},a.createElement("input",{type:"text",value:M,disabled:o,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),a.createElement("span",{className:"".concat(t,"-slash")},"/"),N),a.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:v()("".concat(t,"-next"),(0,b.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(W)),j);if(N<=3+2*L){var K={locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:p,itemRender:g};N||z.push(a.createElement(O,(0,i.Z)({},K,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var F=1;F<=N;F+=1){var X=Z===F;z.push(a.createElement(O,(0,i.Z)({},K,{key:F,page:F,active:X})))}}else{var U=d?s.prev_3:s.prev_5,G=d?s.next_3:s.next_5;h&&(P=a.createElement("li",{title:p?U:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:v()("".concat(t,"-jump-prev"),(0,b.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!S))},g(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page"))),T=a.createElement("li",{title:p?G:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:v()("".concat(t,"-jump-next"),(0,b.Z)({},"".concat(t,"-jump-next-custom-icon"),!!$))},g(this.getJumpNextPage(),"jump-next",this.getItemIcon($,"next page")))),D=a.createElement(O,{locale:s,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:N,page:N,active:!1,showTitle:p,itemRender:g}),H=a.createElement(O,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:g});var Y=Math.max(1,Z-L),J=Math.min(Z+L,N);Z-1<=L&&(J=1+2*L),N-Z<=L&&(Y=N-2*L);for(var Q=Y;Q<=J;Q+=1){var q=Z===Q;z.push(a.createElement(O,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Q,page:Q,active:q,showTitle:p,itemRender:g}))}Z-1>=2*L&&3!==Z&&(z[0]=(0,a.cloneElement)(z[0],{className:"".concat(t,"-item-after-jump-prev")}),z.unshift(P)),N-Z>=2*L&&Z!==N-2&&(z[z.length-1]=(0,a.cloneElement)(z[z.length-1],{className:"".concat(t,"-item-before-jump-next")}),z.push(T)),1!==Y&&z.unshift(H),J!==N&&z.push(D)}var ee=!this.hasPrev()||!N,et=!this.hasNext()||!N;return a.createElement("ul",(0,i.Z)({className:v()(t,n,(0,b.Z)({},"".concat(t,"-disabled"),o)),style:r,ref:this.paginationNode},_),V,a.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:ee?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(t,"-prev"),(0,b.Z)({},"".concat(t,"-disabled"),ee)),"aria-disabled":ee},this.renderPrev(A)),z,a.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:et?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(t,"-next"),(0,b.Z)({},"".concat(t,"-disabled"),et)),"aria-disabled":et},this.renderNext(W)),a.createElement(I,{disabled:o,locale:s,rootPrefixCls:t,selectComponentClass:y,selectPrefixCls:x,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Z,pageSize:R,pageSizeOptions:E,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=k(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(a.Component);M.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Z,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Z,locale:{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:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var N=n(91219),z=n(79746),P=n(30069),T=n(3146),H=n(31508);let D=["xxl","xl","lg","md","sm","xs"],j=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),B=e=>{let t=[].concat(D).reverse();return t.forEach((n,r)=>{let o=n.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(e[i]<=e[a]))throw Error(`${i}<=${a} fails : !(${e[i]}<=${e[a]})`);if(r0)||void 0===arguments[0]||arguments[0],t=(0,a.useRef)({}),n=(0,T.Z)(),r=function(){let[,e]=(0,H.dQ)(),t=j(B(e));return a.useMemo(()=>{let e=new Map,n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)})},responsiveMap:t}},[e])}();return(0,a.useEffect)(()=>{let o=r.subscribe(r=>{t.current=r,e&&n()});return()=>r.unsubscribe(o)},[]),t.current},A=n(6783),W=n(90151),_=n(60456),V=n(89301),K=n(965),F=n(63940),X=n(5004),U=n(38358),G=n(98861),Y=n(48580),J=n(92510),Q=a.createContext(null);function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=a.useRef(null),n=a.useRef(null);return a.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var ee=n(35960),et=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,l=e.onClick,c=e.children;return t="function"==typeof r?r(o):r,a.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==t?t:a.createElement("span",{className:v()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},c))},en=a.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.id,l=e.inputElement,c=e.disabled,s=e.tabIndex,u=e.autoFocus,d=e.autoComplete,p=e.editable,m=e.activeDescendantId,f=e.value,g=e.maxLength,h=e.onKeyDown,b=e.onMouseDown,$=e.onChange,y=e.onPaste,x=e.onCompositionStart,E=e.onCompositionEnd,w=e.open,C=e.attrs,I=l||a.createElement("input",null),O=I,Z=O.ref,R=O.props,k=R.onKeyDown,M=R.onChange,N=R.onMouseDown,z=R.onCompositionStart,P=R.onCompositionEnd,T=R.style;return(0,X.Kp)(!("maxLength"in I.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),I=a.cloneElement(I,(0,S.Z)((0,S.Z)((0,S.Z)({type:"search"},R),{},{id:i,ref:(0,J.sQ)(t,Z),disabled:c,tabIndex:s,autoComplete:d||"off",autoFocus:u,className:v()("".concat(o,"-selection-search-input"),null===(n=I)||void 0===n?void 0:null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":w,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":m},C),{},{value:p?f:"",maxLength:g,readOnly:!p,unselectable:p?null:"on",style:(0,S.Z)((0,S.Z)({},T),{},{opacity:p?null:0}),onKeyDown:function(e){h(e),k&&k(e)},onMouseDown:function(e){b(e),N&&N(e)},onChange:function(e){$(e),M&&M(e)},onCompositionStart:function(e){x(e),z&&z(e)},onCompositionEnd:function(e){E(e),P&&P(e)},onPaste:y}))});function er(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}en.displayName="Input";var eo="undefined"!=typeof window&&window.document&&window.document.documentElement;function ei(e){return["string","number"].includes((0,K.Z)(e))}function ea(e){var t=void 0;return e&&(ei(e.title)?t=e.title.toString():ei(e.label)&&(t=e.label.toString())),t}function el(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var ec=function(e){e.preventDefault(),e.stopPropagation()},es=function(e){var t,n,r=e.id,o=e.prefixCls,i=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,p=e.disabled,m=e.mode,f=e.showSearch,g=e.autoFocus,h=e.autoComplete,S=e.activeDescendantId,$=e.tabIndex,y=e.removeIcon,x=e.maxTagCount,E=e.maxTagTextLength,C=e.maxTagPlaceholder,I=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,O=e.tagRender,Z=e.onToggleOpen,R=e.onRemove,k=e.onInputChange,M=e.onInputPaste,N=e.onInputKeyDown,z=e.onInputMouseDown,P=e.onInputCompositionStart,T=e.onInputCompositionEnd,H=a.useRef(null),D=(0,a.useState)(0),j=(0,_.Z)(D,2),B=j[0],L=j[1],A=(0,a.useState)(!1),W=(0,_.Z)(A,2),V=W[0],K=W[1],F="".concat(o,"-selection"),X=l||"multiple"===m&&!1===s||"tags"===m?c:"",U="tags"===m||"multiple"===m&&!1===s||f&&(l||V);function G(e,t,n,r,o){return a.createElement("span",{className:v()("".concat(F,"-item"),(0,b.Z)({},"".concat(F,"-item-disabled"),n)),title:ea(e)},a.createElement("span",{className:"".concat(F,"-item-content")},t),r&&a.createElement(et,{className:"".concat(F,"-item-remove"),onMouseDown:ec,onClick:o,customizeIcon:y},"\xd7"))}t=function(){L(H.current.scrollWidth)},n=[X],eo?a.useLayoutEffect(t,n):a.useEffect(t,n);var Y=a.createElement("div",{className:"".concat(F,"-search"),style:{width:B},onFocus:function(){K(!0)},onBlur:function(){K(!1)}},a.createElement(en,{ref:u,open:l,prefixCls:o,id:r,inputElement:null,disabled:p,autoFocus:g,autoComplete:h,editable:U,activeDescendantId:S,value:X,onKeyDown:N,onMouseDown:z,onChange:k,onPaste:M,onCompositionStart:P,onCompositionEnd:T,tabIndex:$,attrs:(0,w.Z)(e,!0)}),a.createElement("span",{ref:H,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},X,"\xa0")),J=a.createElement(ee.Z,{prefixCls:"".concat(F,"-overflow"),data:i,renderItem:function(e){var t,n=e.disabled,r=e.label,o=e.value,i=!p&&!n,c=r;if("number"==typeof E&&("string"==typeof r||"number"==typeof r)){var s=String(c);s.length>E&&(c="".concat(s.slice(0,E),"..."))}var u=function(t){t&&t.stopPropagation(),R(e)};return"function"==typeof O?(t=c,a.createElement("span",{onMouseDown:function(e){ec(e),Z(!l)}},O({label:t,value:o,disabled:n,closable:i,onClose:u}))):G(e,c,n,i,u)},renderRest:function(e){var t="function"==typeof I?I(e):I;return G({title:t},t,!1)},suffix:Y,itemKey:el,maxCount:x});return a.createElement(a.Fragment,null,J,!i.length&&!X&&a.createElement("span",{className:"".concat(F,"-placeholder")},d))},eu=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,p=e.values,m=e.placeholder,f=e.tabIndex,g=e.showSearch,h=e.searchValue,v=e.activeValue,b=e.maxLength,S=e.onInputKeyDown,$=e.onInputMouseDown,y=e.onInputChange,x=e.onInputPaste,E=e.onInputCompositionStart,C=e.onInputCompositionEnd,I=e.title,O=a.useState(!1),Z=(0,_.Z)(O,2),R=Z[0],k=Z[1],M="combobox"===u,N=M||g,z=p[0],P=h||"";M&&v&&!R&&(P=v),a.useEffect(function(){M&&k(!1)},[M,v]);var T=("combobox"===u||!!d||!!g)&&!!P,H=void 0===I?ea(z):I;return a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(n,"-selection-search")},a.createElement(en,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:i,autoFocus:l,autoComplete:c,editable:N,activeDescendantId:s,value:P,onKeyDown:S,onMouseDown:$,onChange:function(e){k(!0),y(e)},onPaste:x,onCompositionStart:E,onCompositionEnd:C,tabIndex:f,attrs:(0,w.Z)(e,!0),maxLength:M?b:void 0})),!M&&z?a.createElement("span",{className:"".concat(n,"-selection-item"),title:H,style:T?{visibility:"hidden"}:void 0},z.label):null,z?null:a.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:T?{visibility:"hidden"}:void 0},m))},ed=a.forwardRef(function(e,t){var n=(0,a.useRef)(null),r=(0,a.useRef)(!1),o=e.prefixCls,l=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.autoClearSearchValue,p=e.onSearch,m=e.onSearchSubmit,f=e.onToggleOpen,g=e.onInputKeyDown,h=e.domRef;a.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var v=q(0),b=(0,_.Z)(v,2),S=b[0],$=b[1],y=(0,a.useRef)(null),x=function(e){!1!==p(e,!0,r.current)&&f(!0)},E={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===Y.Z.UP||t===Y.Z.DOWN)&&e.preventDefault(),g&&g(e),t!==Y.Z.ENTER||"tags"!==c||r.current||l||null==m||m(e.target.value),[Y.Z.ESC,Y.Z.SHIFT,Y.Z.BACKSPACE,Y.Z.TAB,Y.Z.WIN_KEY,Y.Z.ALT,Y.Z.META,Y.Z.WIN_KEY_RIGHT,Y.Z.CTRL,Y.Z.SEMICOLON,Y.Z.EQUALS,Y.Z.CAPS_LOCK,Y.Z.CONTEXT_MENU,Y.Z.F1,Y.Z.F2,Y.Z.F3,Y.Z.F4,Y.Z.F5,Y.Z.F6,Y.Z.F7,Y.Z.F8,Y.Z.F9,Y.Z.F10,Y.Z.F11,Y.Z.F12].includes(t)||f(!0)},onInputMouseDown:function(){$(!0)},onInputChange:function(e){var t=e.target.value;if(u&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,y.current)}y.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");y.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&x(e.target.value)}},w="multiple"===c||"tags"===c?a.createElement(es,(0,i.Z)({},e,E)):a.createElement(eu,(0,i.Z)({},e,E));return a.createElement("div",{ref:h,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===c||e.preventDefault(),("combobox"===c||s&&t)&&l||(l&&!1!==d&&p("",!0,!1),f())}},w)});ed.displayName="Selector";var ep=n(90214),em=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ef=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"}}},eg=a.forwardRef(function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),o=e.children,l=e.popupElement,c=e.containerWidth,s=e.animation,u=e.transitionName,d=e.dropdownStyle,p=e.dropdownClassName,m=e.direction,f=e.placement,g=e.builtinPlacements,h=e.dropdownMatchSelectWidth,$=e.dropdownRender,y=e.dropdownAlign,x=e.getPopupContainer,E=e.empty,w=e.getTriggerDOMNode,C=e.onPopupVisibleChange,I=e.onPopupMouseEnter,O=(0,V.Z)(e,em),Z="".concat(n,"-dropdown"),R=l;$&&(R=$(l));var k=a.useMemo(function(){return g||ef(h)},[g,h]),M=s?"".concat(Z,"-").concat(s):u,N=a.useRef(null);a.useImperativeHandle(t,function(){return{getPopupElement:function(){return N.current}}});var z=(0,S.Z)({minWidth:c},d);return"number"==typeof h?z.width=h:h&&(z.width=c),a.createElement(ep.Z,(0,i.Z)({},O,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:f||("rtl"===(void 0===m?"ltr":m)?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:Z,popupTransitionName:M,popup:a.createElement("div",{ref:N,onMouseEnter:I},R),popupAlign:y,popupVisible:r,getPopupContainer:x,popupClassName:v()(p,(0,b.Z)({},"".concat(Z,"-empty"),E)),popupStyle:z,getTriggerDOMNode:w,onPopupVisibleChange:C}),o)});eg.displayName="SelectTrigger";var eh=n(29221);function ev(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 eb(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function eS(e){var t=(0,S.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,X.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var e$=["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","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ey=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ex(e){return"tags"===e||"multiple"===e}var eE=a.forwardRef(function(e,t){var n,r,o,l,c,s,u,d,p,m=e.id,f=e.prefixCls,g=e.className,h=e.showSearch,$=e.tagRender,y=e.direction,x=e.omitDomProps,E=e.displayValues,w=e.onDisplayValuesChange,C=e.emptyOptions,I=e.notFoundContent,O=void 0===I?"Not Found":I,Z=e.onClear,R=e.mode,k=e.disabled,M=e.loading,N=e.getInputElement,z=e.getRawInputElement,P=e.open,T=e.defaultOpen,H=e.onDropdownVisibleChange,D=e.activeValue,j=e.onActiveValueChange,B=e.activeDescendantId,L=e.searchValue,A=e.autoClearSearchValue,X=e.onSearch,ee=e.onSearchSplit,en=e.tokenSeparators,er=e.allowClear,eo=e.showArrow,ei=e.inputIcon,ea=e.clearIcon,el=e.OptionList,ec=e.animation,es=e.transitionName,eu=e.dropdownStyle,ep=e.dropdownClassName,em=e.dropdownMatchSelectWidth,ef=e.dropdownRender,ev=e.dropdownAlign,eb=e.placement,eS=e.builtinPlacements,eE=e.getPopupContainer,ew=e.showAction,eC=void 0===ew?[]:ew,eI=e.onFocus,eO=e.onBlur,eZ=e.onKeyUp,eR=e.onKeyDown,ek=e.onMouseDown,eM=(0,V.Z)(e,e$),eN=ex(R),ez=(void 0!==h?h:eN)||"combobox"===R,eP=(0,S.Z)({},eM);ey.forEach(function(e){delete eP[e]}),null==x||x.forEach(function(e){delete eP[e]});var eT=a.useState(!1),eH=(0,_.Z)(eT,2),eD=eH[0],ej=eH[1];a.useEffect(function(){ej((0,G.Z)())},[]);var eB=a.useRef(null),eL=a.useRef(null),eA=a.useRef(null),eW=a.useRef(null),e_=a.useRef(null),eV=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=a.useState(!1),n=(0,_.Z)(t,2),r=n[0],o=n[1],i=a.useRef(null),l=function(){window.clearTimeout(i.current)};return a.useEffect(function(){return l},[]),[r,function(t,n){l(),i.current=window.setTimeout(function(){o(t),n&&n()},e)},l]}(),eK=(0,_.Z)(eV,3),eF=eK[0],eX=eK[1],eU=eK[2];a.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=eW.current)||void 0===e?void 0:e.focus,blur:null===(t=eW.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=e_.current)||void 0===t?void 0:t.scrollTo(e)}}});var eG=a.useMemo(function(){if("combobox"!==R)return L;var e,t=null===(e=E[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[L,R,E]),eY="combobox"===R&&"function"==typeof N&&N()||null,eJ="function"==typeof z&&z(),eQ=(0,J.x1)(eL,null==eJ?void 0:null===(l=eJ.props)||void 0===l?void 0:l.ref),eq=a.useState(!1),e0=(0,_.Z)(eq,2),e1=e0[0],e2=e0[1];(0,U.Z)(function(){e2(!0)},[]);var e3=(0,F.Z)(!1,{defaultValue:T,value:P}),e6=(0,_.Z)(e3,2),e4=e6[0],e5=e6[1],e9=!!e1&&e4,e7=!O&&C;(k||e7&&e9&&"combobox"===R)&&(e9=!1);var e8=!e7&&e9,te=a.useCallback(function(e){var t=void 0!==e?e:!e9;k||(e5(t),e9!==t&&(null==H||H(t)))},[k,e9,e5,H]),tt=a.useMemo(function(){return(en||[]).some(function(e){return["\n","\r\n"].includes(e)})},[en]),tn=function(e,t,n){var r=!0,o=e;null==j||j(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=(0,eh.Z)(r),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return n=n||l.length>1,l.reduce(function(t,n){return[].concat((0,W.Z)(t),(0,W.Z)(e(n,a)))},[]).filter(function(e){return e})}(e,t);return n?r:null}(e,en);return"combobox"!==R&&i&&(o="",null==ee||ee(i),te(!1),r=!1),X&&eG!==o&&X(o,{source:t?"typing":"effect"}),r};a.useEffect(function(){e9||eN||"combobox"===R||tn("",!1,!1)},[e9]),a.useEffect(function(){e4&&k&&e5(!1),k&&eX(!1)},[k]);var tr=q(),to=(0,_.Z)(tr,2),ti=to[0],ta=to[1],tl=a.useRef(!1),tc=[];a.useEffect(function(){return function(){tc.forEach(function(e){return clearTimeout(e)}),tc.splice(0,tc.length)}},[]);var ts=a.useState(null),tu=(0,_.Z)(ts,2),td=tu[0],tp=tu[1],tm=a.useState({}),tf=(0,_.Z)(tm,2)[1];(0,U.Z)(function(){if(e8){var e,t=Math.ceil(null===(e=eB.current)||void 0===e?void 0:e.offsetWidth);td===t||Number.isNaN(t)||tp(t)}},[e8]),eJ&&(s=function(e){te(e)}),n=function(){var e;return[eB.current,null===(e=eA.current)||void 0===e?void 0:e.getPopupElement()]},r=!!eJ,(o=a.useRef(null)).current={open:e8,triggerOpen:te,customizedTrigger:r},a.useEffect(function(){function e(e){if(null===(t=o.current)||void 0===t||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),o.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tg=a.useMemo(function(){return(0,S.Z)((0,S.Z)({},e),{},{notFoundContent:O,open:e9,triggerOpen:e8,id:m,showSearch:ez,multiple:eN,toggleOpen:te})},[e,O,e8,e9,m,ez,eN,te]),th=void 0!==eo?eo:M||!eN&&"combobox"!==R;th&&(u=a.createElement(et,{className:v()("".concat(f,"-arrow"),(0,b.Z)({},"".concat(f,"-arrow-loading"),M)),customizeIcon:ei,customizeIconProps:{loading:M,searchValue:eG,open:e9,focused:eF,showSearch:ez}})),!k&&er&&(E.length||eG)&&!("combobox"===R&&""===eG)&&(d=a.createElement(et,{className:"".concat(f,"-clear"),onMouseDown:function(){var e;null==Z||Z(),null===(e=eW.current)||void 0===e||e.focus(),w([],{type:"clear",values:E}),tn("",!1,!1)},customizeIcon:ea},"\xd7"));var tv=a.createElement(el,{ref:e_}),tb=v()(f,g,(c={},(0,b.Z)(c,"".concat(f,"-focused"),eF),(0,b.Z)(c,"".concat(f,"-multiple"),eN),(0,b.Z)(c,"".concat(f,"-single"),!eN),(0,b.Z)(c,"".concat(f,"-allow-clear"),er),(0,b.Z)(c,"".concat(f,"-show-arrow"),th),(0,b.Z)(c,"".concat(f,"-disabled"),k),(0,b.Z)(c,"".concat(f,"-loading"),M),(0,b.Z)(c,"".concat(f,"-open"),e9),(0,b.Z)(c,"".concat(f,"-customize-input"),eY),(0,b.Z)(c,"".concat(f,"-show-search"),ez),c)),tS=a.createElement(eg,{ref:eA,disabled:k,prefixCls:f,visible:e8,popupElement:tv,containerWidth:td,animation:ec,transitionName:es,dropdownStyle:eu,dropdownClassName:ep,direction:y,dropdownMatchSelectWidth:em,dropdownRender:ef,dropdownAlign:ev,placement:eb,builtinPlacements:eS,getPopupContainer:eE,empty:C,getTriggerDOMNode:function(){return eL.current},onPopupVisibleChange:s,onPopupMouseEnter:function(){tf({})}},eJ?a.cloneElement(eJ,{ref:eQ}):a.createElement(ed,(0,i.Z)({},e,{domRef:eL,prefixCls:f,inputElement:eY,ref:eW,id:m,showSearch:ez,autoClearSearchValue:A,mode:R,activeDescendantId:B,tagRender:$,values:E,open:e9,onToggleOpen:te,activeValue:D,searchValue:eG,onSearch:tn,onSearchSubmit:function(e){e&&e.trim()&&X(e,{source:"submit"})},onRemove:function(e){w(E.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:tt})));return p=eJ?tS:a.createElement("div",(0,i.Z)({className:tb},eP,{ref:eB,onMouseDown:function(e){var t,n=e.target,r=null===(t=eA.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=tc.indexOf(o);-1!==t&&tc.splice(t,1),eU(),eD||r.contains(document.activeElement)||null===(e=eW.current)||void 0===e||e.focus()});tc.push(o)}for(var i=arguments.length,a=Array(i>1?i-1:0),l=1;l=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&w(o,{type:"remove",values:[i]})}for(var c=arguments.length,s=Array(c>1?c-1:0),u=1;u1?n-1:0),o=1;on},e}return(0,y.Z)(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props,o=r.prefixCls,i=r.direction,l=this.getSpinHeight(),c=this.getTop(),s=this.showScroll(),u=s&&n;return a.createElement("div",{ref:this.scrollbarRef,className:v()("".concat(o,"-scrollbar"),(0,b.Z)({},"".concat(o,"-scrollbar-show"),s)),style:(0,S.Z)((0,S.Z)({width:8,top:0,bottom:0},"rtl"===i?{left:0}:{right:0}),{},{position:"absolute",display:u?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},a.createElement("div",{ref:this.thumbRef,className:v()("".concat(o,"-scrollbar-thumb"),(0,b.Z)({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:l,top:c,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(a.Component);function eW(e){var t=e.children,n=e.setRef,r=a.useCallback(function(e){n(e)},[]);return a.cloneElement(t,{ref:r})}var e_=n(49175),eV=function(){function e(){(0,$.Z)(this,e),this.maps=void 0,this.maps=Object.create(null)}return(0,y.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),eK=("undefined"==typeof navigator?"undefined":(0,K.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),eF=function(e,t){var n=(0,a.useRef)(!1),r=(0,a.useRef)(null),o=(0,a.useRef)({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&o.current.top||e>0&&o.current.bottom;return t&&i?(clearTimeout(r.current),n.current=!1):(!i||n.current)&&(clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)),!n.current&&i}},eX=14/15,eU=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],eG=[],eY={overflowY:"auto",overflowAnchor:"none"},eJ=a.forwardRef(function(e,t){var n,r,o,l,c,s,u,d,p,m,f,g,h,$,y,x,E,w,C,I,O,Z,R,k,M,N,z=e.prefixCls,P=void 0===z?"rc-virtual-list":z,T=e.className,H=e.height,D=e.itemHeight,j=e.fullHeight,B=e.style,L=e.data,A=e.children,W=e.itemKey,F=e.virtual,X=e.direction,G=e.component,Y=void 0===G?"div":G,J=e.onScroll,Q=e.onVisibleChange,q=e.innerProps,ee=(0,V.Z)(e,eU),et=!!(!1!==F&&H&&D),en=et&&L&&D*L.length>H,er=(0,a.useState)(0),eo=(0,_.Z)(er,2),ei=eo[0],ea=eo[1],el=(0,a.useState)(!1),ec=(0,_.Z)(el,2),es=ec[0],eu=ec[1],ed=v()(P,(0,b.Z)({},"".concat(P,"-rtl"),"rtl"===X),T),ep=L||eG,em=(0,a.useRef)(),ef=(0,a.useRef)(),eg=(0,a.useRef)(),eh=a.useCallback(function(e){return"function"==typeof W?W(e):null==e?void 0:e[W]},[W]);function ev(e){ea(function(t){var n,r=(n="function"==typeof e?e(t):e,Number.isNaN(eP.current)||(n=Math.min(n,eP.current)),n=Math.max(n,0));return em.current.scrollTop=r,r})}var eb=(0,a.useRef)({start:0,end:ep.length}),eS=(0,a.useRef)(),e$=(r=a.useState(ep),l=(o=(0,_.Z)(r,2))[0],c=o[1],s=a.useState(null),d=(u=(0,_.Z)(s,2))[0],p=u[1],a.useEffect(function(){var e=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i=ei&&void 0===t&&(t=a,n=o),s>ei+H&&void 0===r&&(r=a),o=s}return void 0===t&&(t=0,n=0,r=Math.ceil(H/D)),void 0===r&&(r=ep.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,ep.length),offset:n}},[en,et,ei,ep,eO,H]),eR=eZ.scrollHeight,ek=eZ.start,eM=eZ.end,eN=eZ.offset;eb.current.start=ek,eb.current.end=eM;var ez=eR-H,eP=(0,a.useRef)(ez);eP.current=ez;var eT=ei<=0,eH=ei>=ez,eD=eF(eT,eH),eL=(m=function(e){ev(function(t){return t+e})},f=(0,a.useRef)(0),g=(0,a.useRef)(null),h=(0,a.useRef)(null),$=(0,a.useRef)(!1),y=eF(eT,eH),[function(e){if(et){eB.Z.cancel(g.current);var t=e.deltaY;f.current+=t,h.current=t,y(t)||(eK||e.preventDefault(),g.current=(0,eB.Z)(function(){var e=$.current?10:1;m(f.current*e),f.current=0}))}},function(e){et&&($.current=e.detail===h.current)}]),eJ=(0,_.Z)(eL,2),eQ=eJ[0],eq=eJ[1];x=function(e,t){return!eD(e,t)&&(eQ({preventDefault:function(){},deltaY:e}),!0)},w=(0,a.useRef)(!1),C=(0,a.useRef)(0),I=(0,a.useRef)(null),O=(0,a.useRef)(null),Z=function(e){if(w.current){var t=Math.ceil(e.touches[0].pageY),n=C.current-t;C.current=t,x(n)&&e.preventDefault(),clearInterval(O.current),O.current=setInterval(function(){(!x(n*=eX,!0)||.1>=Math.abs(n))&&clearInterval(O.current)},16)}},R=function(){w.current=!1,E()},k=function(e){E(),1!==e.touches.length||w.current||(w.current=!0,C.current=Math.ceil(e.touches[0].pageY),I.current=e.target,I.current.addEventListener("touchmove",Z),I.current.addEventListener("touchend",R))},E=function(){I.current&&(I.current.removeEventListener("touchmove",Z),I.current.removeEventListener("touchend",R))},(0,U.Z)(function(){return et&&em.current.addEventListener("touchstart",k),function(){var e;null===(e=em.current)||void 0===e||e.removeEventListener("touchstart",k),E(),clearInterval(O.current)}},[et]),(0,U.Z)(function(){function e(e){et&&e.preventDefault()}return em.current.addEventListener("wheel",eQ),em.current.addEventListener("DOMMouseScroll",eq),em.current.addEventListener("MozMousePixelScroll",e),function(){em.current&&(em.current.removeEventListener("wheel",eQ),em.current.removeEventListener("DOMMouseScroll",eq),em.current.removeEventListener("MozMousePixelScroll",e))}},[et]);var e0=(M=function(){var e;null===(e=eg.current)||void 0===e||e.delayHidden()},N=a.useRef(),function(e){if(null==e){M();return}if(eB.Z.cancel(N.current),"number"==typeof e)ev(e);else if(e&&"object"===(0,K.Z)(e)){var t,n=e.align;t="index"in e?e.index:ep.findIndex(function(t){return eh(t)===e.key});var r=e.offset,o=void 0===r?0:r;!function e(r,i){if(!(r<0)&&em.current){var a=em.current.clientHeight,l=!1,c=i;if(a){for(var s=0,u=0,d=0,p=Math.min(ep.length,t),m=0;m<=p;m+=1){var f=eh(ep[m]);u=s;var g=eI.get(f);s=d=u+(void 0===g?D:g),m===t&&void 0===g&&(l=!0)}var h=null;switch(i||n){case"top":h=u-o;break;case"bottom":h=d-a+o;break;default:var v=em.current.scrollTop;uv+a&&(c="bottom")}null!==h&&h!==em.current.scrollTop&&ev(h)}N.current=(0,eB.Z)(function(){l&&eC(),e(r-1,c)},2)}}(3)}});a.useImperativeHandle(t,function(){return{scrollTo:e0}}),(0,U.Z)(function(){Q&&Q(ep.slice(ek,eM+1),ep)},[ek,eM,ep]);var e1=ep.slice(ek,eM+1).map(function(e,t){var n=A(e,ek+t,{}),r=eh(e);return a.createElement(eW,{key:r,setRef:function(t){return ew(e,t)}},n)}),e2=null;return H&&(e2=(0,S.Z)((0,b.Z)({},void 0===j||j?"height":"maxHeight",H),eY),et&&(e2.overflowY="hidden",es&&(e2.pointerEvents="none"))),a.createElement("div",(0,i.Z)({style:(0,S.Z)((0,S.Z)({},B),{},{position:"relative"}),className:ed},ee),a.createElement(Y,{className:"".concat(P,"-holder"),style:e2,ref:em,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==ei&&ev(t),null==J||J(e)}},a.createElement(ej,{prefixCls:P,height:eR,offset:eN,onInnerResize:eC,ref:ef,innerProps:q},e1)),et&&a.createElement(eA,{ref:eg,prefixCls:P,scrollTop:ei,height:H,scrollHeight:eR,count:ep.length,direction:X,onScroll:function(e){ev(e)},onStartMove:function(){eu(!0)},onStopMove:function(){eu(!1)}}))});eJ.displayName="List";var eQ=a.createContext(null),eq=["disabled","title","children","style","className"];function e0(e){return"string"==typeof e||"number"==typeof e}var e1=a.forwardRef(function(e,t){var n=a.useContext(Q),r=n.prefixCls,o=n.id,l=n.open,c=n.multiple,s=n.mode,u=n.searchValue,d=n.toggleOpen,p=n.notFoundContent,m=n.onPopupScroll,f=a.useContext(eQ),g=f.flattenOptions,h=f.onActiveValue,S=f.defaultActiveFirstOption,$=f.onSelect,y=f.menuItemSelectedIcon,x=f.rawValues,E=f.fieldNames,C=f.virtual,I=f.direction,O=f.listHeight,Z=f.listItemHeight,R="".concat(r,"-item"),k=(0,eT.Z)(function(){return g},[l,g],function(e,t){return t[0]&&e[1]!==t[1]}),M=a.useRef(null),N=function(e){e.preventDefault()},z=function(e){M.current&&M.current.scrollTo("number"==typeof e?{index:e}:e)},P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=k.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];j(e);var n={source:t?"keyboard":"mouse"},r=k[e];if(!r){h(null,-1,n);return}h(r.value,e,n)};(0,a.useEffect)(function(){B(!1!==S?P(0):-1)},[k.length,u]);var L=a.useCallback(function(e){return x.has(e)&&"combobox"!==s},[s,(0,W.Z)(x).toString(),x.size]);(0,a.useEffect)(function(){var e,t=setTimeout(function(){if(!c&&l&&1===x.size){var e=Array.from(x)[0],t=k.findIndex(function(t){return t.data.value===e});-1!==t&&(B(t),z(t))}});return l&&(null===(e=M.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[l,u,g.length]);var A=function(e){void 0!==e&&$(e,{selected:!x.has(e)}),c||d(!1)};if(a.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Y.Z.N:case Y.Z.P:case Y.Z.UP:case Y.Z.DOWN:var r=0;if(t===Y.Z.UP?r=-1:t===Y.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Y.Z.N?r=1:t===Y.Z.P&&(r=-1)),0!==r){var o=P(D+r,r);z(o),B(o,!0)}break;case Y.Z.ENTER:var i=k[D];i&&!i.data.disabled?A(i.value):A(void 0),l&&e.preventDefault();break;case Y.Z.ESC:d(!1),l&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){z(e)}}}),0===k.length)return a.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(R,"-empty"),onMouseDown:N},p);var K=Object.keys(E).map(function(e){return E[e]}),F=function(e){return e.label};function X(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var U=function(e){var t=k[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,l=(0,w.Z)(n,!0),c=F(t);return t?a.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof c||o?null:c},l,{key:e},X(t,e),{"aria-selected":L(r)}),r):null},G={role:"listbox",id:"".concat(o,"_list")};return a.createElement(a.Fragment,null,C&&a.createElement("div",(0,i.Z)({},G,{style:{height:0,width:0,overflow:"hidden"}}),U(D-1),U(D),U(D+1)),a.createElement(eJ,{itemKey:"key",ref:M,data:k,height:O,itemHeight:Z,fullHeight:!1,onMouseDown:N,onScroll:m,virtual:C,direction:I,innerProps:C?null:G},function(e,t){var n=e.group,r=e.groupOption,o=e.data,l=e.label,c=e.value,s=o.key;if(n){var u,d,p=null!==(d=o.title)&&void 0!==d?d:e0(l)?l.toString():void 0;return a.createElement("div",{className:v()(R,"".concat(R,"-group")),title:p},void 0!==l?l:s)}var m=o.disabled,f=o.title,g=(o.children,o.style),h=o.className,S=(0,V.Z)(o,eq),$=(0,eH.Z)(S,K),x=L(c),E="".concat(R,"-option"),I=v()(R,E,h,(u={},(0,b.Z)(u,"".concat(E,"-grouped"),r),(0,b.Z)(u,"".concat(E,"-active"),D===t&&!m),(0,b.Z)(u,"".concat(E,"-disabled"),m),(0,b.Z)(u,"".concat(E,"-selected"),x),u)),O=F(e),Z=!y||"function"==typeof y||x,k="number"==typeof O?O:O||c,M=e0(k)?k.toString():void 0;return void 0!==f&&(M=f),a.createElement("div",(0,i.Z)({},(0,w.Z)($),C?{}:X(e,t),{"aria-selected":x,className:I,title:M,onMouseMove:function(){D===t||m||B(t)},onClick:function(){m||A(c)},style:g}),a.createElement("div",{className:"".concat(E,"-content")},k),a.isValidElement(y)||x,Z&&a.createElement(et,{className:"".concat(R,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:x}},x?"✓":null))}))});e1.displayName="OptionList";var e2=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],e3=["inputValue"],e6=a.forwardRef(function(e,t){var n,r,o,l,c,s=e.id,u=e.mode,d=e.prefixCls,p=e.backfill,m=e.fieldNames,f=e.inputValue,g=e.searchValue,h=e.onSearch,v=e.autoClearSearchValue,$=void 0===v||v,y=e.onSelect,x=e.onDeselect,E=e.dropdownMatchSelectWidth,w=void 0===E||E,C=e.filterOption,I=e.filterSort,O=e.optionFilterProp,Z=e.optionLabelProp,R=e.options,k=e.children,M=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,z=e.virtual,P=e.direction,T=e.listHeight,H=void 0===T?200:T,D=e.listItemHeight,j=void 0===D?20:D,B=e.value,L=e.defaultValue,A=e.labelInValue,X=e.onChange,U=(0,V.Z)(e,e2),G=(n=a.useState(),o=(r=(0,_.Z)(n,2))[0],l=r[1],a.useEffect(function(){var e;l("rc_select_".concat((eZ?(e=eO,eO+=1):e="TEST_OR_SSR",e)))},[]),s||o),Y=ex(u),J=!!(!R&&k),Q=a.useMemo(function(){return(void 0!==C||"combobox"!==u)&&C},[C,u]),q=a.useMemo(function(){return eb(m,J)},[JSON.stringify(m),J]),ee=(0,F.Z)("",{value:void 0!==g?g:f,postState:function(e){return e||""}}),et=(0,_.Z)(ee,2),en=et[0],eo=et[1],ei=a.useMemo(function(){var e=R;R||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,eR.Z)(t).map(function(t,r){if(!a.isValidElement(t)||!t.type)return null;var o,i,l,c,s,u=t.type.isSelectOptGroup,d=t.key,p=t.props,m=p.children,f=(0,V.Z)(p,eM);return n||!u?(o=t.key,l=(i=t.props).children,c=i.value,s=(0,V.Z)(i,ek),(0,S.Z)({key:o,value:void 0!==c?c:o,children:l},s)):(0,S.Z)((0,S.Z)({key:"__RC_SELECT_GRP__".concat(null===d?r:d,"__"),label:d},f),{},{options:e(m)})}).filter(function(e){return e})}(k));var t=new Map,n=new Map,r=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(o){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=eb(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return!function e(t,n){t.forEach(function(t){if(!n&&c in t){var i=t[s];void 0===i&&r&&(i=t.label),o.push({key:ev(t,o.length),group:!0,data:t,label:i}),e(t[c],!0)}else{var u=t[l];o.push({key:ev(t,o.length),groupOption:n,data:t,label:t[a],value:u})}})}(e,!1),o}(eH,{fieldNames:q,childrenAsData:J})},[eH,q,J]),ej=function(e){var t=es(e);if(em(t),X&&(t.length!==eh.length||t.some(function(e,t){var n;return(null===(n=eh[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=A?t:t.map(function(e){return e.value}),r=t.map(function(e){return eS(e$(e.value))});X(Y?n:n[0],Y?r:r[0])}},eB=a.useState(null),eL=(0,_.Z)(eB,2),eA=eL[0],eW=eL[1],e_=a.useState(0),eV=(0,_.Z)(e_,2),eK=eV[0],eF=eV[1],eX=void 0!==M?M:"combobox"!==u,eU=a.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source;eF(t),p&&"combobox"===u&&null!==e&&"keyboard"===(void 0===r?"keyboard":r)&&eW(String(e))},[p,u]),eG=function(e,t,n){var r=function(){var t,n=e$(e);return[A?{label:null==n?void 0:n[q.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,eS(n)]};if(t&&y){var o=r(),i=(0,_.Z)(o,2);y(i[0],i[1])}else if(!t&&x&&"clear"!==n){var a=r(),l=(0,_.Z)(a,2);x(l[0],l[1])}},eY=eN(function(e,t){var n=!Y||t.selected;ej(n?Y?[].concat((0,W.Z)(eh),[e]):[e]:eh.filter(function(t){return t.value!==e})),eG(e,n),"combobox"===u?eW(""):(!ex||$)&&(eo(""),eW(""))}),eJ=a.useMemo(function(){var e=!1!==z&&!1!==w;return(0,S.Z)((0,S.Z)({},ei),{},{flattenOptions:eD,onActiveValue:eU,defaultActiveFirstOption:eX,onSelect:eY,menuItemSelectedIcon:N,rawValues:eI,fieldNames:q,virtual:e,direction:P,listHeight:H,listItemHeight:j,childrenAsData:J})},[ei,eD,eU,eX,eY,N,eI,q,z,w,H,j,J]);return a.createElement(eQ.Provider,{value:eJ},a.createElement(eE,(0,i.Z)({},U,{id:G,prefixCls:void 0===d?"rc-select":d,ref:t,omitDomProps:e3,mode:u,displayValues:ey,onDisplayValuesChange:function(e,t){ej(e);var n=t.type,r=t.values;("remove"===n||"clear"===n)&&r.forEach(function(e){eG(e.value,!1,n)})},direction:P,searchValue:en,onSearch:function(e,t){if(eo(e),eW(null),"submit"===t.source){var n=(e||"").trim();n&&(ej(Array.from(new Set([].concat((0,W.Z)(eI),[n])))),eG(n,!0),eo(""));return}"blur"!==t.source&&("combobox"===u&&ej(e),null==h||h(e))},autoClearSearchValue:$,onSearchSplit:function(e){var t=e;"tags"!==u&&(t=e.map(function(e){var t=el.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,W.Z)(eI),(0,W.Z)(t))));ej(n),n.forEach(function(e){eG(e,!0)})},dropdownMatchSelectWidth:w,OptionList:e1,emptyOptions:!eD.length,activeValue:eA,activeDescendantId:"".concat(G,"_list_").concat(eK)})))});e6.Option=eP,e6.OptGroup=ez;var e4=n(17583),e5=n(80716);let e9=(e,t)=>t||e;var e7=n(20538),e8=n(57389),te=n(40650),tt=n(70721);let tn=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var tr=(0,te.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:n}=e,r=(0,tt.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[tn(r)]}),to=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ti=a.createElement(()=>{let[,e]=(0,H.dQ)(),t=new e8.C(e.colorBgBase),n=t.toHsl().l<.5?{opacity:.65}:{};return a.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.67)"},a.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),a.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),a.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),a.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),a.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),a.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),a.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},a.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),a.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),ta=a.createElement(()=>{let[,e]=(0,H.dQ)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:l,contentColor:c}=(0,a.useMemo)(()=>({borderColor:new e8.C(t).onBackground(o).toHexShortString(),shadowColor:new e8.C(n).onBackground(o).toHexShortString(),contentColor:new e8.C(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:i},a.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),a.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},null),tl=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=ti,description:i,children:l,imageStyle:c}=e,s=to(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);let{getPrefixCls:u,direction:d}=a.useContext(z.E_),p=u("empty",r),[m,f]=tr(p),[g]=(0,A.Z)("Empty"),h=void 0!==i?i:null==g?void 0:g.description,b="string"==typeof h?h:"empty",S=null;return S="string"==typeof o?a.createElement("img",{alt:b,src:o}):o,m(a.createElement("div",Object.assign({className:v()(f,p,{[`${p}-normal`]:o===ta,[`${p}-rtl`]:"rtl"===d},t,n)},s),a.createElement("div",{className:`${p}-image`,style:c},S),h&&a.createElement("div",{className:`${p}-description`},h),l&&a.createElement("div",{className:`${p}-footer`},l)))};tl.PRESENTED_IMAGE_DEFAULT=ti,tl.PRESENTED_IMAGE_SIMPLE=ta;var tc=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,a.useContext)(z.E_),r=n("empty");switch(t){case"Table":case"List":return a.createElement(tl,{image:tl.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return a.createElement(tl,{image:tl.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return a.createElement(tl,null)}},ts=n(21440),tu=n(12381),td=n(98663),tp=n(75872),tm=n(53279),tf=n(11717),tg=n(29138);let th=new tf.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tv=new tf.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),tb=new tf.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tS=new tf.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),t$=new tf.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ty=new tf.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tx=new tf.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tE=new tf.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),tw={"move-up":{inKeyframes:tx,outKeyframes:tE},"move-down":{inKeyframes:th,outKeyframes:tv},"move-left":{inKeyframes:tb,outKeyframes:tS},"move-right":{inKeyframes:t$,outKeyframes:ty}},tC=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=tw[t];return[(0,tg.R)(r,o,i,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},tI=e=>{let{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}};var tO=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,td.Wf)(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,[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft + `]:{animationName:tm.fJ},[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft + `]:{animationName:tm.Qt},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:tm.Uw},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:tm.ly},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},tI(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(Object.assign({flex:"auto"},td.vS),{"> *":Object.assign({},td.vS)}),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,tm.oN)(e,"slide-up"),(0,tm.oN)(e,"slide-down"),tC(e,"move-up"),tC(e,"move-down")]};let tZ=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e,o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function tR(e,t){let{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=tZ(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-2}px 4px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:`${i-2*e.lineWidth}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,td.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,[` + &-input, + &-mirror + `]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,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}`}}}}var tk=e=>{let{componentCls:t}=e,n=(0,tt.TS)(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,tt.TS)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=tZ(e);return[tR(e),tR(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},tR(r,"lg")]};function tM(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},(0,td.Wf)(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[`&:after,${n}-selection-item:after,${n}-selection-placeholder:after`]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${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}px`,"&:after":{display:"none"}}}}}}}let tN=e=>{let{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},tz=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},tP=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},tT=e=>{let{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,td.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},tN(e)),tP(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},td.vS),{"> *":Object.assign({lineHeight:"inherit"},td.vS)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},td.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,td.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},tH=e=>{let{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},tT(e),function(e){let{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[tM(e),tM((0,tt.TS)(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}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:1.5*e.fontSize}}}},tM((0,tt.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),tk(e),tO(e),{[`${t}-rtl`]:{direction:"rtl"}},tz(t,(0,tt.TS)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),tz(`${t}-status-error`,(0,tt.TS)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),tz(`${t}-status-warning`,(0,tt.TS)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,tp.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var tD=(0,te.Z)("Select",(e,t)=>{let{rootPrefixCls:n}=t,r=(0,tt.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[tH(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let tj=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible"};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]})}};var tB=n(95131),tL=n(56222),tA=n(31533),tW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},t_=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:tW}))}),tV=n(75710),tK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},tF=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:tK}))}),tX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tU="SECRET_COMBOBOX_MODE_DO_NOT_USE",tG=a.forwardRef((e,t)=>{let n;var r,{prefixCls:o,bordered:i=!0,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:p=256,placement:m,listItemHeight:f=24,size:g,disabled:h,notFoundContent:b,status:S,showArrow:$,builtinPlacements:y,dropdownMatchSelectWidth:x,popupMatchSelectWidth:E,direction:w}=e,C=tX(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction"]);let{getPopupContainer:I,getPrefixCls:O,renderEmpty:Z,direction:R,virtual:k,popupMatchSelectWidth:M,popupOverflow:N,select:T}=a.useContext(z.E_),H=O("select",o),D=O(),j=null!=w?w:R,{compactSize:B,compactItemClassnames:L}=(0,tu.ri)(H,j),[A,W]=tD(H),_=a.useMemo(()=>{let{mode:e}=C;return"combobox"===e?void 0:e===tU?"combobox":e},[C.mode]),V=null==$||$,K=null!==(r=null!=E?E:x)&&void 0!==r?r:M,{status:F,hasFeedback:X,isFormItemInput:U,feedbackIcon:G}=a.useContext(ts.aM),Y=e9(F,S);n=void 0!==b?b:"combobox"===_?null:(null==Z?void 0:Z("Select"))||a.createElement(tc,{componentName:"Select"});let{suffixIcon:J,itemIcon:Q,removeIcon:q,clearIcon:ee}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:l,hasFeedback:c,prefixCls:s,showArrow:u,feedbackIcon:d}=e,p=null!=n?n:a.createElement(tL.Z,null),m=e=>a.createElement(a.Fragment,null,!1!==u&&e,c&&d),f=null;if(void 0!==t)f=m(t);else if(i)f=m(a.createElement(tV.Z,{spin:!0}));else{let e=`${s}-suffix`;f=t=>{let{open:n,showSearch:r}=t;return n&&r?m(a.createElement(tF,{className:e})):m(a.createElement(t_,{className:e}))}}let g=null;return g=void 0!==r?r:l?a.createElement(tB.Z,null):null,{clearIcon:p,suffixIcon:f,itemIcon:g,removeIcon:void 0!==o?o:a.createElement(tA.Z,null)}}(Object.assign(Object.assign({},C),{multiple:"multiple"===_||"tags"===_,hasFeedback:X,feedbackIcon:G,showArrow:V,prefixCls:H})),et=(0,eH.Z)(C,["suffixIcon","itemIcon"]),en=v()(u||d,{[`${H}-dropdown-${j}`]:"rtl"===j},c,W),er=(0,P.Z)(e=>{var t;return null!==(t=null!=B?B:g)&&void 0!==t?t:e}),eo=a.useContext(e7.Z),ei=v()({[`${H}-lg`]:"large"===er,[`${H}-sm`]:"small"===er,[`${H}-rtl`]:"rtl"===j,[`${H}-borderless`]:!i,[`${H}-in-form-item`]:U},v()({[`${H}-status-success`]:"success"===Y,[`${H}-status-warning`]:"warning"===Y,[`${H}-status-error`]:"error"===Y,[`${H}-status-validating`]:"validating"===Y,[`${H}-has-feedback`]:X}),L,l,c,W),ea=a.useMemo(()=>void 0!==m?m:"rtl"===j?"bottomRight":"bottomLeft",[m,j]),el=y||tj(N);return A(a.createElement(e6,Object.assign({ref:t,virtual:k,showSearch:null==T?void 0:T.showSearch},et,{dropdownMatchSelectWidth:K,builtinPlacements:el,transitionName:(0,e5.mL)(D,(0,e5.q0)(m),C.transitionName),listHeight:p,listItemHeight:f,mode:_,prefixCls:H,placement:ea,direction:j,inputIcon:J,menuItemSelectedIcon:Q,removeIcon:q,clearIcon:ee,notFoundContent:n,className:ei,getPopupContainer:s||I,dropdownClassName:en,showArrow:X||V,disabled:null!=h?h:eo})))});tG.SECRET_COMBOBOX_MODE_DO_NOT_USE=tU,tG.Option=eP,tG.OptGroup=ez,tG._InternalPanelDoNotUseOrYouWillBeFired=function(e){let{prefixCls:t,style:n}=e,i=a.useRef(null),[l,c]=a.useState(0),[s,u]=a.useState(0),[d,p]=(0,F.Z)(!1,{value:e.open}),{getPrefixCls:m}=a.useContext(z.E_),f=m("select",t);a.useEffect(()=>{if(p(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;c(t.offsetHeight+8),u(t.offsetWidth)}),t=setInterval(()=>{var n;let o=r?`.${r(f)}`:`.${f}-dropdown`,a=null===(n=i.current)||void 0===n?void 0:n.querySelector(o);a&&(clearInterval(t),e.observe(a))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let g=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:d,visible:d,getPopupContainer:()=>i.current});return o&&(g=o(g)),a.createElement(e4.ZP,{theme:{token:{motion:!1}}},a.createElement("div",{ref:i,style:{paddingBottom:l,position:"relative",minWidth:s}},a.createElement(tG,Object.assign({},g))))};let tY=e=>a.createElement(tG,Object.assign({},e,{showSearch:!0,size:"small"})),tJ=e=>a.createElement(tG,Object.assign({},e,{showSearch:!0,size:"middle"}));tY.Option=tG.Option,tJ.Option=tG.Option;let tQ=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),tq=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),t0=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),t1=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},tq((0,tt.TS)(e,{inputBorderHoverColor:e.colorBorder})))}),t2=e=>{let{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},t3=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),t6=(e,t)=>{let{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:l,colorWarningBorderHover:c}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},t0((0,tt.TS)(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},t0((0,tt.TS)(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},t4=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},tQ(e.colorTextPlaceholder)),{"&:hover":Object.assign({},tq(e)),"&:focus, &-focused":Object.assign({},t0(e)),"&-disabled, &[disabled]":Object.assign({},t1(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},t2(e)),"&-sm":Object.assign({},t3(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),t5=e=>{let{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},t2(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},t3(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,td.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${n}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${n}-select:last-child > ${n}-select-selector, + & > ${n}-cascader-picker:last-child ${t}, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},t9=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,td.Wf)(e)),t4(e)),t6(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},t7=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},t8=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t4(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},tq(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),t7(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),t6(e,`${t}-affix-wrapper`))}},ne=e=>{let{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,td.Wf)(e)),t5(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},t1(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}}}})}},nt=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function nn(e){return(0,tt.TS)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}let nr=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};(0,te.Z)("Input",e=>{let t=nn(e);return[t9(t),nr(t),t8(t),ne(t),nt(t),(0,tp.c)(t)]});let no=e=>{let{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}-mini`]:{[` + &:hover ${t}-item:not(${t}-item-active), + &:active ${t}-item:not(${t}-item-active), + &:hover ${t}-item-link, + &:active ${t}-item-link + `]:{backgroundColor:"transparent"}},[`${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"}}}}}},ni=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini ${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}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},t3(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},na=e=>{let{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,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}px`}}},[`&${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}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${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}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},nl=e=>{let{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}},"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,td.oN)(e))},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,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}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,td.oN)(e)),[`&: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}px`,verticalAlign:"top",input:Object.assign(Object.assign({},t4(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},nc=e=>{let{componentCls:t}=e;return{[`${t}-item`]:Object.assign(Object.assign({display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},(0,td.Qy)(e)),{"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},ns=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,td.Wf)(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.itemSize-2}px`,verticalAlign:"middle"}}),nc(e)),nl(e)),na(e)),ni(e)),no(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"}}},nu=e=>{let{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &: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}-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}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var nd=(0,te.Z)("Pagination",e=>{let t=(0,tt.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},nn(e));return[ns(t),e.wireframe&&nu(t)]},e=>({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})),np=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},nm=e=>{var{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,size:i,locale:l,selectComponentClass:c,responsive:u,showSizeChanger:p}=e,f=np(e,["prefixCls","selectPrefixCls","className","rootClassName","size","locale","selectComponentClass","responsive","showSizeChanger"]);let{xs:h}=L(u),{getPrefixCls:b,direction:S,pagination:$={}}=a.useContext(z.E_),y=b("pagination",t),[x,E]=nd(y),w=null!=p?p:$.showSizeChanger,C=a.useMemo(()=>{let e=a.createElement("span",{className:`${y}-item-ellipsis`},"•••"),t=a.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===S?a.createElement(g,null):a.createElement(m,null)),n=a.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===S?a.createElement(m,null):a.createElement(g,null)),r=a.createElement("a",{className:`${y}-item-link`},a.createElement("div",{className:`${y}-item-container`},"rtl"===S?a.createElement(d,{className:`${y}-item-link-icon`}):a.createElement(s,{className:`${y}-item-link-icon`}),e)),o=a.createElement("a",{className:`${y}-item-link`},a.createElement("div",{className:`${y}-item-container`},"rtl"===S?a.createElement(s,{className:`${y}-item-link-icon`}):a.createElement(d,{className:`${y}-item-link-icon`}),e));return{prevIcon:t,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:o}},[S,y]),[I]=(0,A.Z)("Pagination",N.Z),O=Object.assign(Object.assign({},I),l),Z=(0,P.Z)(i),R="small"===Z||!!(h&&!Z&&u),k=b("select",n),T=v()({[`${y}-mini`]:R,[`${y}-rtl`]:"rtl"===S},r,o,E);return x(a.createElement(M,Object.assign({},C,f,{prefixCls:y,selectPrefixCls:k,className:T,selectComponentClass:c||(R?tY:tJ),locale:O,showSizeChanger:w})))}},23910:function(e,t,n){n.d(t,{Z:function(){return O}});var r=n(8683),o=n.n(r),i=n(86006);let a=e=>e?"function"==typeof e?e():e:null;var l=n(80716),c=n(79746),s=n(15241),u=n(99753),d=n(98663),p=n(87270),m=n(20798),f=n(83688),g=n(40650),h=n(70721);let v=e=>{let{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,marginXS:u,colorBgElevated:p,popoverBg:f}=e;return[{[t]:Object.assign(Object.assign({},(0,d.Wf)(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":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},(0,m.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},b=e=>{let{componentCls:t}=e;return{[t]:f.i.map(n=>{let r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},S=e=>{let{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:c,padding:s}=e,u=a-Math.round(l*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${s}px ${u/2-n}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${s}px`}}}};var $=(0,g.Z)("Popover",e=>{let{colorBgElevated:t,colorText:n,wireframe:r}=e,o=(0,h.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[v(o),b(o),r&&S(o),(0,p._y)(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]}),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let x=(e,t,n)=>{if(t||n)return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${e}-title`},a(t)),i.createElement("div",{className:`${e}-inner-content`},a(n)))};function E(e){let{hashId:t,prefixCls:n,className:r,style:a,placement:l="top",title:c,content:s,children:d}=e;return i.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${l}`,r),style:a},i.createElement("div",{className:`${n}-arrow`}),i.createElement(u.G,Object.assign({},e,{className:t,prefixCls:n}),d||x(n,c,s)))}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let C=e=>{let{title:t,content:n,prefixCls:r}=e;return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${r}-title`},a(t)),i.createElement("div",{className:`${r}-inner-content`},a(n)))},I=i.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:a,overlayClassName:u,placement:d="top",trigger:p="hover",mouseEnterDelay:m=.1,mouseLeaveDelay:f=.1,overlayStyle:g={}}=e,h=w(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:v}=i.useContext(c.E_),b=v("popover",n),[S,y]=$(b),x=v(),E=o()(u,y);return S(i.createElement(s.Z,Object.assign({placement:d,trigger:p,mouseEnterDelay:m,mouseLeaveDelay:f,overlayStyle:g},h,{prefixCls:b,overlayClassName:E,ref:t,overlay:r||a?i.createElement(C,{prefixCls:b,title:r,content:a}):null,transitionName:(0,l.mL)(x,"zoom-big",h.transitionName),"data-popover-inject":!0})))});I._InternalPanelDoNotUseOrYouWillBeFired=function(e){let{prefixCls:t}=e,n=y(e,["prefixCls"]),{getPrefixCls:r}=i.useContext(c.E_),o=r("popover",t),[a,l]=$(o);return a(i.createElement(E,Object.assign({},n,{prefixCls:o,hashId:l})))};var O=I},53279:function(e,t,n){n.d(t,{Qt:function(){return l},Uw:function(){return a},fJ:function(){return i},ly:function(){return c},oN:function(){return f}});var r=n(11717),o=n(29138);let i=new r.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new r.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new r.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),c=new r.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),s=new r.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new r.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new r.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new r.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),m={"slide-up":{inKeyframes:i,outKeyframes:a},"slide-down":{inKeyframes:l,outKeyframes:c},"slide-left":{inKeyframes:s,outKeyframes:u},"slide-right":{inKeyframes:d,outKeyframes:p}},f=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=m[t];return[(0,o.R)(r,i,a,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},35960:function(e,t,n){n.d(t,{Z:function(){return R}});var r=n(40431),o=n(88684),i=n(60456),a=n(89301),l=n(86006),c=n(8683),s=n.n(c),u=n(29333),d=n(38358),p=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],m=void 0,f=l.forwardRef(function(e,t){var n,i=e.prefixCls,c=e.invalidate,d=e.item,f=e.renderItem,g=e.responsive,h=e.responsiveDisabled,v=e.registerSize,b=e.itemKey,S=e.className,$=e.style,y=e.children,x=e.display,E=e.order,w=e.component,C=void 0===w?"div":w,I=(0,a.Z)(e,p),O=g&&!x;l.useEffect(function(){return function(){v(b,null)}},[]);var Z=f&&d!==m?f(d):y;c||(n={opacity:O?0:1,height:O?0:m,overflowY:O?"hidden":m,order:g?E:m,pointerEvents:O?"none":m,position:O?"absolute":m});var R={};O&&(R["aria-hidden"]=!0);var k=l.createElement(C,(0,r.Z)({className:s()(!c&&i,S),style:(0,o.Z)((0,o.Z)({},n),$)},R,I,{ref:t}),Z);return g&&(k=l.createElement(u.Z,{onResize:function(e){v(b,e.offsetWidth)},disabled:h},k)),k});f.displayName="Item";var g=n(23254),h=n(8431),v=n(66643);function b(e,t){var n=l.useState(t),r=(0,i.Z)(n,2),o=r[0],a=r[1];return[o,(0,g.Z)(function(t){e(function(){a(t)})})]}var S=l.createContext(null),$=["component"],y=["className"],x=["className"],E=l.forwardRef(function(e,t){var n=l.useContext(S);if(!n){var o=e.component,i=void 0===o?"div":o,c=(0,a.Z)(e,$);return l.createElement(i,(0,r.Z)({},c,{ref:t}))}var u=n.className,d=(0,a.Z)(n,y),p=e.className,m=(0,a.Z)(e,x);return l.createElement(S.Provider,{value:null},l.createElement(f,(0,r.Z)({ref:t,className:s()(u,p)},d,m)))});E.displayName="RawItem";var w=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],C="responsive",I="invalidate";function O(e){return"+ ".concat(e.length," ...")}var Z=l.forwardRef(function(e,t){var n,c,p=e.prefixCls,m=void 0===p?"rc-overflow":p,g=e.data,$=void 0===g?[]:g,y=e.renderItem,x=e.renderRawItem,E=e.itemKey,Z=e.itemWidth,R=void 0===Z?10:Z,k=e.ssr,M=e.style,N=e.className,z=e.maxCount,P=e.renderRest,T=e.renderRawRest,H=e.suffix,D=e.component,j=void 0===D?"div":D,B=e.itemComponent,L=e.onVisibleChange,A=(0,a.Z)(e,w),W="full"===k,_=(n=l.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)(0,v.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,h.unstable_batchedUpdates)(function(){n.current.forEach(function(e){e()}),n.current=null})})),n.current.push(e)}),V=b(_,null),K=(0,i.Z)(V,2),F=K[0],X=K[1],U=F||0,G=b(_,new Map),Y=(0,i.Z)(G,2),J=Y[0],Q=Y[1],q=b(_,0),ee=(0,i.Z)(q,2),et=ee[0],en=ee[1],er=b(_,0),eo=(0,i.Z)(er,2),ei=eo[0],ea=eo[1],el=b(_,0),ec=(0,i.Z)(el,2),es=ec[0],eu=ec[1],ed=(0,l.useState)(null),ep=(0,i.Z)(ed,2),em=ep[0],ef=ep[1],eg=(0,l.useState)(null),eh=(0,i.Z)(eg,2),ev=eh[0],eb=eh[1],eS=l.useMemo(function(){return null===ev&&W?Number.MAX_SAFE_INTEGER:ev||0},[ev,F]),e$=(0,l.useState)(!1),ey=(0,i.Z)(e$,2),ex=ey[0],eE=ey[1],ew="".concat(m,"-item"),eC=Math.max(et,ei),eI=z===C,eO=$.length&&eI,eZ=z===I,eR=eO||"number"==typeof z&&$.length>z,ek=(0,l.useMemo)(function(){var e=$;return eO?e=null===F&&W?$:$.slice(0,Math.min($.length,U/R)):"number"==typeof z&&(e=$.slice(0,z)),e},[$,R,F,z,eO]),eM=(0,l.useMemo)(function(){return eO?$.slice(eS+1):$.slice(ek.length)},[$,ek,eO,eS]),eN=(0,l.useCallback)(function(e,t){var n;return"function"==typeof E?E(e):null!==(n=E&&(null==e?void 0:e[E]))&&void 0!==n?n:t},[E]),ez=(0,l.useCallback)(y||function(e){return e},[y]);function eP(e,t,n){(ev!==e||void 0!==t&&t!==em)&&(eb(e),n||(eE(e<$.length-1),null==L||L(e)),void 0!==t&&ef(t))}function eT(e,t){Q(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function eH(e){return J.get(eN(ek[e],e))}(0,d.Z)(function(){if(U&&"number"==typeof eC&&ek){var e=es,t=ek.length,n=t-1;if(!t){eP(0,null);return}for(var r=0;rU){eP(r-1,e-o-es+ei);break}}H&&eH(0)+es>U&&ef(null)}},[U,J,ei,es,eN,ek]);var eD=ex&&!!eM.length,ej={};null!==em&&eO&&(ej={position:"absolute",left:em,top:0});var eB={prefixCls:ew,responsive:eO,component:B,invalidate:eZ},eL=x?function(e,t){var n=eN(e,t);return l.createElement(S.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},eB),{},{order:t,item:e,itemKey:n,registerSize:eT,display:t<=eS})},x(e,t))}:function(e,t){var n=eN(e,t);return l.createElement(f,(0,r.Z)({},eB,{order:t,key:n,item:e,renderItem:ez,itemKey:n,registerSize:eT,display:t<=eS}))},eA={order:eD?eS:Number.MAX_SAFE_INTEGER,className:"".concat(ew,"-rest"),registerSize:function(e,t){ea(t),en(ei)},display:eD};if(T)T&&(c=l.createElement(S.Provider,{value:(0,o.Z)((0,o.Z)({},eB),eA)},T(eM)));else{var eW=P||O;c=l.createElement(f,(0,r.Z)({},eB,eA),"function"==typeof eW?eW(eM):eW)}var e_=l.createElement(j,(0,r.Z)({className:s()(!eZ&&m,N),style:M,ref:t},A),ek.map(eL),eR?c:null,H&&l.createElement(f,(0,r.Z)({},eB,{responsive:eI,responsiveDisabled:!eO,order:eS,className:"".concat(ew,"-suffix"),registerSize:function(e,t){eu(t)},display:!0,style:ej}),H));return eI&&(e_=l.createElement(u.Z,{onResize:function(e,t){X(t.clientWidth)},disabled:!eO},e_)),e_});Z.displayName="Overflow",Z.Item=E,Z.RESPONSIVE=C,Z.INVALIDATE=I;var R=Z}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/388-0639392dd59206df.js b/pilot/server/static/_next/static/chunks/388-0639392dd59206df.js new file mode 100644 index 000000000..c2a2cabfa --- /dev/null +++ b/pilot/server/static/_next/static/chunks/388-0639392dd59206df.js @@ -0,0 +1,3 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[388],{78141:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=i},73220:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"}),"Chat");t.Z=i},59970:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");t.Z=i},79214:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M7 9H2V7h5v2zm0 3H2v2h5v-2zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59 20.59 19zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3zM2 19h10v-2H2v2z"}),"ManageSearch");t.Z=i},30929:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"m14.17 13.71 1.4-2.42c.09-.15.05-.34-.08-.45l-1.48-1.16c.03-.22.05-.45.05-.68s-.02-.46-.05-.69l1.48-1.16c.13-.11.17-.3.08-.45l-1.4-2.42c-.09-.15-.27-.21-.43-.15l-1.74.7c-.36-.28-.75-.51-1.18-.69l-.26-1.85c-.03-.16-.18-.29-.35-.29h-2.8c-.17 0-.32.13-.35.3L6.8 4.15c-.42.18-.82.41-1.18.69l-1.74-.7c-.16-.06-.34 0-.43.15l-1.4 2.42c-.09.15-.05.34.08.45l1.48 1.16c-.03.22-.05.45-.05.68s.02.46.05.69l-1.48 1.16c-.13.11-.17.3-.08.45l1.4 2.42c.09.15.27.21.43.15l1.74-.7c.36.28.75.51 1.18.69l.26 1.85c.03.16.18.29.35.29h2.8c.17 0 .32-.13.35-.3l.26-1.85c.42-.18.82-.41 1.18-.69l1.74.7c.16.06.34 0 .43-.15zM8.81 11c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm13.11 7.67-.96-.74c.02-.14.04-.29.04-.44 0-.15-.01-.3-.04-.44l.95-.74c.08-.07.11-.19.05-.29l-.9-1.55c-.05-.1-.17-.13-.28-.1l-1.11.45c-.23-.18-.48-.33-.76-.44l-.17-1.18c-.01-.12-.11-.2-.21-.2h-1.79c-.11 0-.21.08-.22.19l-.17 1.18c-.27.12-.53.26-.76.44l-1.11-.45c-.1-.04-.22 0-.28.1l-.9 1.55c-.05.1-.04.22.05.29l.95.74c-.02.14-.03.29-.03.44 0 .15.01.3.03.44l-.95.74c-.08.07-.11.19-.05.29l.9 1.55c.05.1.17.13.28.1l1.11-.45c.23.18.48.33.76.44l.17 1.18c.02.11.11.19.22.19h1.79c.11 0 .21-.08.22-.19l.17-1.18c.27-.12.53-.26.75-.44l1.12.45c.1.04.22 0 .28-.1l.9-1.55c.06-.09.03-.21-.05-.28zm-4.29.16c-.74 0-1.35-.6-1.35-1.35s.6-1.35 1.35-1.35 1.35.6 1.35 1.35-.61 1.35-1.35 1.35z"}),"MiscellaneousServices");t.Z=i},99011:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2zm-2-1h8v-2H5v2zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5zm4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6l-.63 1.37zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94L19 6z"}),"TipsAndUpdates");t.Z=i},58927:function(e,t,n){n.d(t,{Z:function(){return _}});var r=n(46750),o=n(40431),a=n(86006),i=n(89791),l=n(47562),c=n(46319),u=n(53832),s=n(49657),d=n(88930),f=n(50645),v=n(47093),p=n(18587);function m(e){return(0,p.d6)("MuiChip",e)}let h=(0,p.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),b=a.createContext({disabled:void 0,variant:void 0,color:void 0});var g=n(326),y=n(9268);let C=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],x=e=>{let{disabled:t,size:n,color:r,clickable:o,variant:a,focusVisible:i}=e,c={root:["root",t&&"disabled",r&&`color${(0,u.Z)(r)}`,n&&`size${(0,u.Z)(n)}`,a&&`variant${(0,u.Z)(a)}`,o&&"clickable"],action:["action",t&&"disabled",i&&"focusVisible"],label:["label",n&&`label${(0,u.Z)(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(c,m,{})},Z=(0,f.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n,r,a,i;return[(0,o.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${h.disabled}`]:{color:null==(n=e.variants[`${t.variant}Disabled`])||null==(n=n[t.color])?void 0:n.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(i=e.variants[t.variant])||null==(i=i[t.color])?void 0:i.color}]:[null==(r=e.variants[t.variant])?void 0:r[t.color],{[`&.${h.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]]}),$=(0,f.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,o.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),k=(0,f.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var n,r,o,a;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]},{"&:active":null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color]},{[`&.${h.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]}),w=(0,f.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),E=(0,f.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),S=a.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"JoyChip"}),{children:l,className:u,color:f="primary",onClick:p,disabled:m=!1,size:h="md",variant:S="solid",startDecorator:_,endDecorator:R,component:I,slots:M={},slotProps:P={}}=n,N=(0,r.Z)(n,C),{getColor:T}=(0,v.VT)(S),z=T(e.color,f),L=!!p||!!P.action,D=(0,o.Z)({},n,{disabled:m,size:h,color:z,variant:S,clickable:L,focusVisible:!1}),O="function"==typeof P.action?P.action(D):P.action,A=a.useRef(null),{focusVisible:K,getRootProps:H}=(0,c.Z)((0,o.Z)({},O,{disabled:m,rootRef:A}));D.focusVisible=K;let j=x(D),B=(0,o.Z)({},N,{component:I,slots:M,slotProps:P}),[W,G]=(0,g.Z)("root",{ref:t,className:(0,i.Z)(j.root,u),elementType:Z,externalForwardedProps:B,ownerState:D}),[V,X]=(0,g.Z)("label",{className:j.label,elementType:$,externalForwardedProps:B,ownerState:D}),F=(0,s.Z)(X.id),[q,Y]=(0,g.Z)("action",{className:j.action,elementType:k,externalForwardedProps:B,ownerState:D,getSlotProps:H,additionalProps:{"aria-labelledby":F,as:null==O?void 0:O.component,onClick:p}}),[J,Q]=(0,g.Z)("startDecorator",{className:j.startDecorator,elementType:w,externalForwardedProps:B,ownerState:D}),[U,ee]=(0,g.Z)("endDecorator",{className:j.endDecorator,elementType:E,externalForwardedProps:B,ownerState:D}),et=a.useMemo(()=>({disabled:m,variant:S,color:"context"===z?void 0:z}),[z,m,S]);return(0,y.jsx)(b.Provider,{value:et,children:(0,y.jsxs)(W,(0,o.Z)({},G,{children:[L&&(0,y.jsx)(q,(0,o.Z)({},Y)),(0,y.jsx)(V,(0,o.Z)({},X,{id:F,children:l})),_&&(0,y.jsx)(J,(0,o.Z)({},Q,{children:_})),R&&(0,y.jsx)(U,(0,o.Z)({},ee,{children:R}))]}))})});var _=S},62483:function(e,t,n){n.d(t,{Z:function(){return tO}});var r=n(31533),o=n(40431),a=n(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},l=n(1240),c=a.forwardRef(function(e,t){return a.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))}),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},s=a.forwardRef(function(e,t){return a.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:u}))}),d=n(8683),f=n.n(d),v=n(65877),p=n(88684),m=n(60456),h=n(965),b=n(89301),g=n(98861),y=n(63940),C=n(78641),x=(0,a.createContext)(null),Z=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,l=e.active,c=e.tabKey,u=e.children;return a.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!l,style:o,className:f()(n,l&&"".concat(n,"-active"),r),ref:t},u)}),$=["key","forceRender","style","className"];function k(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,l=e.destroyInactiveTabPane,c=a.useContext(x),u=c.prefixCls,s=c.tabs,d=r.tabPane,m="".concat(u,"-tabpane");return a.createElement("div",{className:f()("".concat(u,"-content-holder"))},a.createElement("div",{className:f()("".concat(u,"-content"),"".concat(u,"-content-").concat(i),(0,v.Z)({},"".concat(u,"-content-animated"),d))},s.map(function(e){var i=e.key,c=e.forceRender,u=e.style,s=e.className,v=(0,b.Z)(e,$),h=i===n;return a.createElement(C.ZP,(0,o.Z)({key:i,visible:h,forceRender:c,removeOnLeave:!!l,leavedClassName:"".concat(m,"-hidden")},r.tabPaneMotion),function(e,n){var r=e.style,l=e.className;return a.createElement(Z,(0,o.Z)({},v,{prefixCls:m,id:t,tabKey:i,animated:d,active:h,style:(0,p.Z)((0,p.Z)({},u),r),className:f()(s,l),ref:n}))})})))}var w=n(90151),E=n(29333),S=n(23254),_=n(66643),R=n(92510),I={width:0,height:0,left:0,top:0};function M(e,t){var n=a.useRef(e),r=a.useState({}),o=(0,m.Z)(r,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var P=n(38358);function N(e){var t=(0,a.useState)(0),n=(0,m.Z)(t,2),r=n[0],o=n[1],i=(0,a.useRef)(0),l=(0,a.useRef)();return l.current=e,(0,P.o)(function(){var e;null===(e=l.current)||void 0===e||e.call(l)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var T={width:0,height:0,left:0,top:0,right:0};function z(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function L(e){return String(e).replace(/"/g,"TABS_DQ")}var D=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?a.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}),O=a.forwardRef(function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var l={};return"object"!==(0,h.Z)(i)||a.isValidElement(i)?l.right=i:l=i,"right"===r&&(n=l.right),"left"===r&&(n=l.left),n?a.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}),A=n(90214),K=n(48580),H=K.Z.ESC,j=K.Z.TAB,B=(0,a.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,a.useMemo)(function(){return"function"==typeof n?n():n},[n]),l=(0,R.sQ)(t,null==i?void 0:i.ref);return a.createElement(a.Fragment,null,r&&a.createElement("div",{className:"".concat(o,"-arrow")}),a.cloneElement(i,{ref:(0,R.Yr)(i)?l:void 0}))}),W={adjustX:1,adjustY:1},G=[0,0],V={topLeft:{points:["bl","tl"],overflow:W,offset:[0,-4],targetOffset:G},top:{points:["bc","tc"],overflow:W,offset:[0,-4],targetOffset:G},topRight:{points:["br","tr"],overflow:W,offset:[0,-4],targetOffset:G},bottomLeft:{points:["tl","bl"],overflow:W,offset:[0,4],targetOffset:G},bottom:{points:["tc","bc"],overflow:W,offset:[0,4],targetOffset:G},bottomRight:{points:["tr","br"],overflow:W,offset:[0,4],targetOffset:G}},X=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"],F=a.forwardRef(function(e,t){var n,r,i,l,c,u,s,d,p,h,g,y,C,x,Z=e.arrow,$=void 0!==Z&&Z,k=e.prefixCls,w=void 0===k?"rc-dropdown":k,E=e.transitionName,S=e.animation,I=e.align,M=e.placement,P=e.placements,N=e.getPopupContainer,T=e.showAction,z=e.hideAction,L=e.overlayClassName,D=e.overlayStyle,O=e.visible,K=e.trigger,W=void 0===K?["hover"]:K,G=e.autoFocus,F=e.overlay,q=e.children,Y=e.onVisibleChange,J=(0,b.Z)(e,X),Q=a.useState(),U=(0,m.Z)(Q,2),ee=U[0],et=U[1],en="visible"in e?O:ee,er=a.useRef(null),eo=a.useRef(null),ea=a.useRef(null);a.useImperativeHandle(t,function(){return er.current});var ei=function(e){et(e),null==Y||Y(e)};r=(n={visible:en,triggerRef:ea,onVisibleChange:ei,autoFocus:G,overlayRef:eo}).visible,i=n.triggerRef,l=n.onVisibleChange,c=n.autoFocus,u=n.overlayRef,s=a.useRef(!1),d=function(){if(r){var e,t;null===(e=i.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==l||l(!1)}},p=function(){var e;return null!==(e=u.current)&&void 0!==e&&!!e.focus&&(u.current.focus(),s.current=!0,!0)},h=function(e){switch(e.keyCode){case H:d();break;case j:var t=!1;s.current||(t=p()),t?e.preventDefault():d()}},a.useEffect(function(){return r?(window.addEventListener("keydown",h),c&&(0,_.Z)(p,3),function(){window.removeEventListener("keydown",h),s.current=!1}):function(){s.current=!1}},[r]);var el=function(){return a.createElement(B,{ref:eo,overlay:F,prefixCls:w,arrow:$})},ec=a.cloneElement(q,{className:f()(null===(x=q.props)||void 0===x?void 0:x.className,en&&(void 0!==(g=e.openClassName)?g:"".concat(w,"-open"))),ref:(0,R.Yr)(q)?(0,R.sQ)(ea,q.ref):void 0}),eu=z;return eu||-1===W.indexOf("contextMenu")||(eu=["click"]),a.createElement(A.Z,(0,o.Z)({builtinPlacements:void 0===P?V:P},J,{prefixCls:w,ref:er,popupClassName:f()(L,(0,v.Z)({},"".concat(w,"-show-arrow"),$)),popupStyle:D,action:W,showAction:T,hideAction:eu,popupPlacement:void 0===M?"bottomLeft":M,popupAlign:I,popupTransitionName:E,popupAnimation:S,popupVisible:en,stretch:(y=e.minOverlayWidthMatchTrigger,C=e.alignPoint,"minOverlayWidthMatchTrigger"in e?y:!C)?"minWidth":"",popup:"function"==typeof F?el:el(),onPopupVisibleChange:ei,onPopupClick:function(t){var n=e.onOverlayClick;et(!1),n&&n(t)},getPopupContainer:N}),ec)}),q=n(35960),Y=n(5004),J=n(8431),Q=n(81027),U=a.createContext(null);function ee(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function et(e){return ee(a.useContext(U),e)}var en=n(55567),er=["children","locked"],eo=a.createContext(null);function ea(e){var t=e.children,n=e.locked,r=(0,b.Z)(e,er),o=a.useContext(eo),i=(0,en.Z)(function(){var e;return e=(0,p.Z)({},o),Object.keys(r).forEach(function(t){var n=r[t];void 0!==n&&(e[t]=n)}),e},[o,r],function(e,t){return!n&&(e[0]!==t[0]||!(0,Q.Z)(e[1],t[1],!0))});return a.createElement(eo.Provider,{value:i},t)}var ei=a.createContext(null);function el(){return a.useContext(ei)}var ec=a.createContext([]);function eu(e){var t=a.useContext(ec);return a.useMemo(function(){return void 0!==e?[].concat((0,w.Z)(t),[e]):t},[t,e])}var es=a.createContext(null),ed=a.createContext({}),ef=n(98498);function ev(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,ef.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var ep=K.Z.LEFT,em=K.Z.RIGHT,eh=K.Z.UP,eb=K.Z.DOWN,eg=K.Z.ENTER,ey=K.Z.ESC,eC=K.Z.HOME,ex=K.Z.END,eZ=[eh,eb,ep,em];function e$(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,w.Z)(e.querySelectorAll("*")).filter(function(e){return ev(e,t)});return ev(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function ek(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=e$(e,t),a=o.length,i=o.findIndex(function(e){return n===e});return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var ew="__RC_UTIL_PATH_SPLIT__",eE=function(e){return e.join(ew)},eS="rc-menu-more";function e_(e){var t=a.useRef(e);t.current=e;var n=a.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&($.motionAppear=!1);var k=$.onVisibleChanged;return($.onVisibleChanged=function(e){return h.current||e||x(!0),null==k?void 0:k(e)},y)?null:a.createElement(ea,{mode:l,locked:!h.current},a.createElement(C.ZP,(0,o.Z)({visible:Z},$,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(e){var n=e.className,r=e.style;return a.createElement(eF,{id:t,className:n,style:r},i)}))}var e8=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],e6=["active"],e3=function(e){var t,n=e.style,r=e.className,i=e.title,l=e.eventKey,c=(e.warnKey,e.disabled),u=e.internalPopupClose,s=e.children,d=e.itemIcon,h=e.expandIcon,g=e.popupClassName,y=e.popupOffset,C=e.onClick,x=e.onMouseEnter,Z=e.onMouseLeave,$=e.onTitleClick,k=e.onTitleMouseEnter,w=e.onTitleMouseLeave,E=(0,b.Z)(e,e8),S=et(l),_=a.useContext(eo),R=_.prefixCls,I=_.mode,M=_.openKeys,P=_.disabled,N=_.overflowDisabled,T=_.activeKey,z=_.selectedKeys,L=_.itemIcon,D=_.expandIcon,O=_.onItemClick,A=_.onOpenChange,K=_.onActive,H=a.useContext(ed)._internalRenderSubMenuItem,j=a.useContext(es).isSubPathKey,B=eu(),W="".concat(R,"-submenu"),G=P||c,V=a.useRef(),X=a.useRef(),F=h||D,Y=M.includes(l),J=!N&&Y,Q=j(z,l),U=eL(l,G,k,w),ee=U.active,en=(0,b.Z)(U,e6),er=a.useState(!1),ei=(0,m.Z)(er,2),el=ei[0],ec=ei[1],ef=function(e){G||ec(e)},ev=a.useMemo(function(){return ee||"inline"!==I&&(el||j([T],l))},[I,ee,T,el,l,j]),ep=eD(B.length),em=e_(function(e){null==C||C(eK(e)),O(e)}),eh=S&&"".concat(S,"-popup"),eb=a.createElement("div",(0,o.Z)({role:"menuitem",style:ep,className:"".concat(W,"-title"),tabIndex:G?null:-1,ref:V,title:"string"==typeof i?i:null,"data-menu-id":N&&S?null:S,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":eh,"aria-disabled":G,onClick:function(e){G||(null==$||$({key:l,domEvent:e}),"inline"===I&&A(l,!Y))},onFocus:function(){K(l)}},en),i,a.createElement(eO,{icon:"horizontal"!==I?F:null,props:(0,p.Z)((0,p.Z)({},e),{},{isOpen:J,isSubMenu:!0})},a.createElement("i",{className:"".concat(W,"-arrow")}))),eg=a.useRef(I);if("inline"!==I&&B.length>1?eg.current="vertical":eg.current=I,!N){var ey=eg.current;eb=a.createElement(e5,{mode:ey,prefixCls:W,visible:!u&&J&&"inline"!==I,popupClassName:g,popupOffset:y,popup:a.createElement(ea,{mode:"horizontal"===ey?"vertical":ey},a.createElement(eF,{id:eh,ref:X},s)),disabled:G,onVisibleChange:function(e){"inline"!==I&&A(l,e)}},eb)}var eC=a.createElement(q.Z.Item,(0,o.Z)({role:"none"},E,{component:"li",style:n,className:f()(W,"".concat(W,"-").concat(I),r,(t={},(0,v.Z)(t,"".concat(W,"-open"),J),(0,v.Z)(t,"".concat(W,"-active"),ev),(0,v.Z)(t,"".concat(W,"-selected"),Q),(0,v.Z)(t,"".concat(W,"-disabled"),G),t)),onMouseEnter:function(e){ef(!0),null==x||x({key:l,domEvent:e})},onMouseLeave:function(e){ef(!1),null==Z||Z({key:l,domEvent:e})}}),eb,!N&&a.createElement(e4,{id:eh,open:J,keyPath:B},s));return H&&(eC=H(eC,e,{selected:Q,active:ev,open:J,disabled:G})),a.createElement(ea,{onItemClick:em,mode:"horizontal"===I?"vertical":I,itemIcon:d||L,expandIcon:F},eC)};function e9(e){var t,n=e.eventKey,r=e.children,o=eu(n),i=eJ(r,o),l=el();return a.useEffect(function(){if(l)return l.registerPath(n,o),function(){l.unregisterPath(n,o)}},[o]),t=l?i:a.createElement(e3,e,i),a.createElement(ec.Provider,{value:o},t)}var e7=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],te=[],tt=a.forwardRef(function(e,t){var n,r,i,l,c,u,s,d,g,C,x,Z,$,k,E,S,R,I,M,P,N,T,z,L,D,O,A,K=e.prefixCls,H=void 0===K?"rc-menu":K,j=e.rootClassName,B=e.style,W=e.className,G=e.tabIndex,V=e.items,X=e.children,F=e.direction,Y=e.id,et=e.mode,en=void 0===et?"vertical":et,er=e.inlineCollapsed,eo=e.disabled,el=e.disabledOverflow,ec=e.subMenuOpenDelay,eu=e.subMenuCloseDelay,ef=e.forceSubMenuRender,ev=e.defaultOpenKeys,eM=e.openKeys,eP=e.activeKey,eN=e.defaultActiveFirst,eT=e.selectable,ez=void 0===eT||eT,eL=e.multiple,eD=void 0!==eL&&eL,eO=e.defaultSelectedKeys,eA=e.selectedKeys,eH=e.onSelect,ej=e.onDeselect,eB=e.inlineIndent,eW=e.motion,eG=e.defaultMotions,eX=e.triggerSubMenuAction,eF=e.builtinPlacements,eq=e.itemIcon,eQ=e.expandIcon,eU=e.overflowedIndicator,e0=void 0===eU?"...":eU,e1=e.overflowedIndicatorPopupClassName,e2=e.getPopupContainer,e5=e.onClick,e4=e.onOpenChange,e8=e.onKeyDown,e6=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),e3=e._internalRenderSubMenuItem,tt=(0,b.Z)(e,e7),tn=a.useMemo(function(){var e;return e=X,V&&(e=function e(t){return(t||[]).map(function(t,n){if(t&&"object"===(0,h.Z)(t)){var r=t.label,i=t.children,l=t.key,c=t.type,u=(0,b.Z)(t,eY),s=null!=l?l:"tmp-".concat(n);return i||"group"===c?"group"===c?a.createElement(ta,(0,o.Z)({key:s},u,{title:r}),e(i)):a.createElement(e9,(0,o.Z)({key:s},u,{title:r}),e(i)):"divider"===c?a.createElement(ti,(0,o.Z)({key:s},u)):a.createElement(eV,(0,o.Z)({key:s},u),r)}return null}).filter(function(e){return e})}(V)),eJ(e,te)},[X,V]),tr=a.useState(!1),to=(0,m.Z)(tr,2),tl=to[0],tc=to[1],tu=a.useRef(),ts=(n=(0,y.Z)(Y,{value:Y}),i=(r=(0,m.Z)(n,2))[0],l=r[1],a.useEffect(function(){eI+=1;var e="".concat(eR,"-").concat(eI);l("rc-menu-uuid-".concat(e))},[]),i),td="rtl"===F,tf=(0,y.Z)(ev,{value:eM,postState:function(e){return e||te}}),tv=(0,m.Z)(tf,2),tp=tv[0],tm=tv[1],th=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){tm(e),null==e4||e4(e)}t?(0,J.flushSync)(n):n()},tb=a.useState(tp),tg=(0,m.Z)(tb,2),ty=tg[0],tC=tg[1],tx=a.useRef(!1),tZ=a.useMemo(function(){return("inline"===en||"vertical"===en)&&er?["vertical",er]:[en,!1]},[en,er]),t$=(0,m.Z)(tZ,2),tk=t$[0],tw=t$[1],tE="inline"===tk,tS=a.useState(tk),t_=(0,m.Z)(tS,2),tR=t_[0],tI=t_[1],tM=a.useState(tw),tP=(0,m.Z)(tM,2),tN=tP[0],tT=tP[1];a.useEffect(function(){tI(tk),tT(tw),tx.current&&(tE?tm(ty):th(te))},[tk,tw]);var tz=a.useState(0),tL=(0,m.Z)(tz,2),tD=tL[0],tO=tL[1],tA=tD>=tn.length-1||"horizontal"!==tR||el;a.useEffect(function(){tE&&tC(tp)},[tp]),a.useEffect(function(){return tx.current=!0,function(){tx.current=!1}},[]);var tK=(c=a.useState({}),u=(0,m.Z)(c,2)[1],s=(0,a.useRef)(new Map),d=(0,a.useRef)(new Map),g=a.useState([]),x=(C=(0,m.Z)(g,2))[0],Z=C[1],$=(0,a.useRef)(0),k=(0,a.useRef)(!1),E=function(){k.current||u({})},S=(0,a.useCallback)(function(e,t){var n=eE(t);d.current.set(n,e),s.current.set(e,n),$.current+=1;var r=$.current;Promise.resolve().then(function(){r===$.current&&E()})},[]),R=(0,a.useCallback)(function(e,t){var n=eE(t);d.current.delete(n),s.current.delete(e)},[]),I=(0,a.useCallback)(function(e){Z(e)},[]),M=(0,a.useCallback)(function(e,t){var n=(s.current.get(e)||"").split(ew);return t&&x.includes(n[0])&&n.unshift(eS),n},[x]),P=(0,a.useCallback)(function(e,t){return e.some(function(e){return M(e,!0).includes(t)})},[M]),N=(0,a.useCallback)(function(e){var t="".concat(s.current.get(e)).concat(ew),n=new Set;return(0,w.Z)(d.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(d.current.get(e))}),n},[]),a.useEffect(function(){return function(){k.current=!0}},[]),{registerPath:S,unregisterPath:R,refreshOverflowKeys:I,isSubPathKey:P,getKeyPath:M,getKeys:function(){var e=(0,w.Z)(s.current.keys());return x.length&&e.push(eS),e},getSubPathKeys:N}),tH=tK.registerPath,tj=tK.unregisterPath,tB=tK.refreshOverflowKeys,tW=tK.isSubPathKey,tG=tK.getKeyPath,tV=tK.getKeys,tX=tK.getSubPathKeys,tF=a.useMemo(function(){return{registerPath:tH,unregisterPath:tj}},[tH,tj]),tq=a.useMemo(function(){return{isSubPathKey:tW}},[tW]);a.useEffect(function(){tB(tA?te:tn.slice(tD+1).map(function(e){return e.key}))},[tD,tA]);var tY=(0,y.Z)(eP||eN&&(null===(O=tn[0])||void 0===O?void 0:O.key),{value:eP}),tJ=(0,m.Z)(tY,2),tQ=tJ[0],tU=tJ[1],t0=e_(function(e){tU(e)}),t1=e_(function(){tU(void 0)});(0,a.useImperativeHandle)(t,function(){return{list:tu.current,focus:function(e){var t,n,r,o,a=null!=tQ?tQ:null===(t=tn.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key;a&&(null===(n=tu.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(ee(ts,a),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}});var t2=(0,y.Z)(eO||[],{value:eA,postState:function(e){return Array.isArray(e)?e:null==e?te:[e]}}),t5=(0,m.Z)(t2,2),t4=t5[0],t8=t5[1],t6=function(e){if(ez){var t,n=e.key,r=t4.includes(n);t8(t=eD?r?t4.filter(function(e){return e!==n}):[].concat((0,w.Z)(t4),[n]):[n]);var o=(0,p.Z)((0,p.Z)({},e),{},{selectedKeys:t});r?null==ej||ej(o):null==eH||eH(o)}!eD&&tp.length&&"inline"!==tR&&th(te)},t3=e_(function(e){null==e5||e5(eK(e)),t6(e)}),t9=e_(function(e,t){var n=tp.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tR){var r=tX(e);n=n.filter(function(e){return!r.has(e)})}(0,Q.Z)(tp,n,!0)||th(n,!0)}),t7=(T=function(e,t){var n=null!=t?t:!tp.includes(e);t9(e,n)},z=a.useRef(),(L=a.useRef()).current=tQ,D=function(){_.Z.cancel(z.current)},a.useEffect(function(){return function(){D()}},[]),function(e){var t=e.which;if([].concat(eZ,[eg,ey,eC,ex]).includes(t)){var n=function(){return l=new Set,c=new Map,u=new Map,tV().forEach(function(e){var t=document.querySelector("[data-menu-id='".concat(ee(ts,e),"']"));t&&(l.add(t),u.set(t,e),c.set(e,t))}),l};n();var r=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(c.get(tQ),l),o=u.get(r),a=function(e,t,n,r){var o,a,i,l,c="prev",u="next",s="children",d="parent";if("inline"===e&&r===eg)return{inlineTrigger:!0};var f=(o={},(0,v.Z)(o,eh,c),(0,v.Z)(o,eb,u),o),p=(a={},(0,v.Z)(a,ep,n?u:c),(0,v.Z)(a,em,n?c:u),(0,v.Z)(a,eb,s),(0,v.Z)(a,eg,s),a),m=(i={},(0,v.Z)(i,eh,c),(0,v.Z)(i,eb,u),(0,v.Z)(i,eg,s),(0,v.Z)(i,ey,d),(0,v.Z)(i,ep,n?s:d),(0,v.Z)(i,em,n?d:s),i);switch(null===(l=({inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m})["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(tR,1===tG(o,!0).length,td,t);if(!a&&t!==eC&&t!==ex)return;(eZ.includes(t)||[eC,ex].includes(t))&&e.preventDefault();var i=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=u.get(e);tU(r),D(),z.current=(0,_.Z)(function(){L.current===r&&t.focus()})}};if([eC,ex].includes(t)||a.sibling||!r){var l,c,u,s,d=e$(s=r&&"inline"!==tR?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(r):tu.current,l);i(t===eC?d[0]:t===ex?d[d.length-1]:ek(s,l,r,a.offset))}else if(a.inlineTrigger)T(o);else if(a.offset>0)T(o,!0),D(),z.current=(0,_.Z)(function(){n();var e=r.getAttribute("aria-controls");i(ek(document.getElementById(e),l))},5);else if(a.offset<0){var f=tG(o,!0),p=f[f.length-2],m=c.get(p);T(p,!1),i(m)}}null==e8||e8(e)});a.useEffect(function(){tc(!0)},[]);var ne=a.useMemo(function(){return{_internalRenderMenuItem:e6,_internalRenderSubMenuItem:e3}},[e6,e3]),nt="horizontal"!==tR||el?tn:tn.map(function(e,t){return a.createElement(ea,{key:e.key,overflowDisabled:t>tD},e)}),nn=a.createElement(q.Z,(0,o.Z)({id:Y,ref:tu,prefixCls:"".concat(H,"-overflow"),component:"ul",itemComponent:eV,className:f()(H,"".concat(H,"-root"),"".concat(H,"-").concat(tR),W,(A={},(0,v.Z)(A,"".concat(H,"-inline-collapsed"),tN),(0,v.Z)(A,"".concat(H,"-rtl"),td),A),j),dir:F,style:B,role:"menu",tabIndex:void 0===G?0:G,data:nt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?tn.slice(-t):null;return a.createElement(e9,{eventKey:eS,title:e0,disabled:tA,internalPopupClose:0===t,popupClassName:e1},n)},maxCount:"horizontal"!==tR||el?q.Z.INVALIDATE:q.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tO(e)},onKeyDown:t7},tt));return a.createElement(ed.Provider,{value:ne},a.createElement(U.Provider,{value:ts},a.createElement(ea,{prefixCls:H,rootClassName:j,mode:tR,openKeys:tp,rtl:td,disabled:eo,motion:tl?eW:null,defaultMotions:tl?eG:null,activeKey:tQ,onActive:t0,onInactive:t1,selectedKeys:t4,inlineIndent:void 0===eB?24:eB,subMenuOpenDelay:void 0===ec?.1:ec,subMenuCloseDelay:void 0===eu?.1:eu,forceSubMenuRender:ef,builtinPlacements:eF,triggerSubMenuAction:void 0===eX?"hover":eX,getPopupContainer:e2,itemIcon:eq,expandIcon:eQ,onItemClick:t3,onOpenChange:t9},a.createElement(es.Provider,{value:tq},nn),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(ei.Provider,{value:tF},tn)))))}),tn=["className","title","eventKey","children"],tr=["children"],to=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),i=(0,b.Z)(e,tn),l=a.useContext(eo).prefixCls,c="".concat(l,"-item-group");return a.createElement("li",(0,o.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:f()(c,t)}),a.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof n?n:void 0},n),a.createElement("ul",{role:"group",className:"".concat(c,"-list")},r))};function ta(e){var t=e.children,n=(0,b.Z)(e,tr),r=eJ(t,eu(n.eventKey));return el()?r:a.createElement(to,(0,ez.Z)(n,["warnKey"]),r)}function ti(e){var t=e.className,n=e.style,r=a.useContext(eo).prefixCls;return el()?null:a.createElement("li",{className:f()("".concat(r,"-item-divider"),t),style:n})}tt.Item=eV,tt.SubMenu=e9,tt.ItemGroup=ta,tt.Divider=ti;var tl=a.memo(a.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,l=e.mobile,c=e.moreIcon,u=void 0===c?"More":c,s=e.moreTransitionName,d=e.style,p=e.className,h=e.editable,b=e.tabBarGutter,g=e.rtl,y=e.removeAriaLabel,C=e.onTabClick,x=e.getPopupContainer,Z=e.popupClassName,$=(0,a.useState)(!1),k=(0,m.Z)($,2),w=k[0],E=k[1],S=(0,a.useState)(null),_=(0,m.Z)(S,2),R=_[0],I=_[1],M="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),N=null!==R?"".concat(M,"-").concat(R):null,T=null==i?void 0:i.dropdownAriaLabel,z=a.createElement(tt,{onClick:function(e){C(e.key,e.domEvent),E(!1)},prefixCls:"".concat(P,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[R],"aria-label":void 0!==T?T:"expanded dropdown"},o.map(function(e){var t=h&&!1!==e.closable&&!e.disabled;return a.createElement(eV,{key:e.key,id:"".concat(M,"-").concat(e.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(e.key),disabled:e.disabled},a.createElement("span",null,e.label),t&&a.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(t){var n;t.stopPropagation(),n=e.key,t.preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:n,event:t})}},e.closeIcon||h.removeIcon||"\xd7"))}));function L(e){for(var t=o.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===R})||0,r=t.length,a=0;at?"left":"right"})}),eT=(0,m.Z)(eN,2),ez=eT[0],eL=eT[1],eD=M(0,function(e,t){!eP&&ek&&ek({direction:e>t?"top":"bottom"})}),eO=(0,m.Z)(eD,2),eA=eO[0],eK=eO[1],eH=(0,a.useState)([0,0]),ej=(0,m.Z)(eH,2),eB=ej[0],eW=ej[1],eG=(0,a.useState)([0,0]),eV=(0,m.Z)(eG,2),eX=eV[0],eF=eV[1],eq=(0,a.useState)([0,0]),eY=(0,m.Z)(eq,2),eJ=eY[0],eQ=eY[1],eU=(0,a.useState)([0,0]),e0=(0,m.Z)(eU,2),e1=e0[0],e2=e0[1],e5=(n=new Map,r=(0,a.useRef)([]),i=(0,a.useState)({}),l=(0,m.Z)(i,2)[1],c=(0,a.useRef)("function"==typeof n?n():n),u=N(function(){var e=c.current;r.current.forEach(function(t){e=t(e)}),r.current=[],c.current=e,l({})}),[c.current,function(e){r.current.push(e),u()}]),e4=(0,m.Z)(e5,2),e8=e4[0],e6=e4[1],e3=(s=eX[0],(0,a.useMemo)(function(){for(var e=new Map,t=e8.get(null===(o=es[0])||void 0===o?void 0:o.key)||I,n=t.left+t.width,r=0;rti?ti:e}eP&&eh?(ta=0,ti=Math.max(0,e7-tr)):(ta=Math.min(0,tr-e7),ti=0);var tf=(0,a.useRef)(),tv=(0,a.useState)(),tp=(0,m.Z)(tv,2),tm=tp[0],th=tp[1];function tb(){th(Date.now())}function tg(){window.clearTimeout(tf.current)}d=function(e,t){function n(e,t){e(function(e){return td(e+t)})}return!!tn&&(eP?n(eL,e):n(eK,t),tg(),tb(),!0)},h=(0,a.useState)(),g=(b=(0,m.Z)(h,2))[0],y=b[1],C=(0,a.useState)(0),$=(Z=(0,m.Z)(C,2))[0],k=Z[1],P=(0,a.useState)(0),K=(A=(0,m.Z)(P,2))[0],H=A[1],j=(0,a.useState)(),W=(B=(0,m.Z)(j,2))[0],G=B[1],V=(0,a.useRef)(),X=(0,a.useRef)(),(F=(0,a.useRef)(null)).current={onTouchStart:function(e){var t=e.touches[0];y({x:t.screenX,y:t.screenY}),window.clearInterval(V.current)},onTouchMove:function(e){if(g){e.preventDefault();var t=e.touches[0],n=t.screenX,r=t.screenY;y({x:n,y:r});var o=n-g.x,a=r-g.y;d(o,a);var i=Date.now();k(i),H(i-$),G({x:o,y:a})}},onTouchEnd:function(){if(g&&(y(null),G(null),W)){var e=W.x/K,t=W.y/K;if(!(.1>Math.max(Math.abs(e),Math.abs(t)))){var n=e,r=t;V.current=window.setInterval(function(){if(.01>Math.abs(n)&&.01>Math.abs(r)){window.clearInterval(V.current);return}d(20*(n*=.9046104802746175),20*(r*=.9046104802746175))},20)}}},onWheel:function(e){var t=e.deltaX,n=e.deltaY,r=0,o=Math.abs(t),a=Math.abs(n);o===a?r="x"===X.current?t:n:o>a?(r=t,X.current="x"):(r=n,X.current="y"),d(-r,-r)&&e.preventDefault()}},a.useEffect(function(){function e(e){F.current.onTouchMove(e)}function t(e){F.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!1}),e_.current.addEventListener("touchstart",function(e){F.current.onTouchStart(e)},{passive:!1}),e_.current.addEventListener("wheel",function(e){F.current.onWheel(e)}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}},[]),(0,a.useEffect)(function(){return tg(),tm&&(tf.current=window.setTimeout(function(){th(0)},100)),tg},[tm]);var ty=(q=eP?ez:eA,ee=(Y=(0,p.Z)((0,p.Z)({},e),{},{tabs:es})).tabs,et=Y.tabPosition,en=Y.rtl,["top","bottom"].includes(et)?(J="width",Q=en?"right":"left",U=Math.abs(q)):(J="height",Q="top",U=-q),(0,a.useMemo)(function(){if(!ee.length)return[0,0];for(var e=ee.length,t=e,n=0;nU+tr){t=n-1;break}}for(var o=0,a=e-1;a>=0;a-=1)if((e3.get(ee[a].key)||T)[Q]=t?[0,0]:[o,t]},[e3,tr,e7,te,tt,U,et,ee.map(function(e){return e.key}).join("_"),en])),tC=(0,m.Z)(ty,2),tx=tC[0],tZ=tC[1],t$=(0,S.Z)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:em,t=e3.get(e)||{width:0,height:0,left:0,right:0,top:0};if(eP){var n=ez;eh?t.rightez+tr&&(n=t.right+t.width-tr):t.left<-ez?n=-t.left:t.left+t.width>-ez+tr&&(n=-(t.left+t.width-tr)),eK(0),eL(td(n))}else{var r=eA;t.top<-eA?r=-t.top:t.top+t.height>-eA+tr&&(r=-(t.top+t.height-tr)),eL(0),eK(td(r))}}),tk={};"top"===eC||"bottom"===eC?tk[eh?"marginRight":"marginLeft"]=ex:tk.marginTop=ex;var tw=es.map(function(e,t){var n=e.key;return a.createElement(tc,{id:ev,prefixCls:eu,key:n,tab:e,style:0===t?void 0:tk,closable:e.closable,editable:eg,active:n===em,renderWrapper:eZ,removeAriaLabel:null==ey?void 0:ey.removeAriaLabel,onClick:function(e){e$(n,e)},onFocus:function(){t$(n),tb(),e_.current&&(eh||(e_.current.scrollLeft=0),e_.current.scrollTop=0)}})}),tE=function(){return e6(function(){var e=new Map;return es.forEach(function(t){var n,r=t.key,o=null===(n=eR.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(L(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})}),e})};(0,a.useEffect)(function(){tE()},[es.map(function(e){return e.key}).join("_")]);var tS=N(function(){var e=tu(ew),t=tu(eE),n=tu(eS);eW([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=tu(eM);eQ(r),e2(tu(eI));var o=tu(eR);eF([o[0]-r[0],o[1]-r[1]]),tE()}),t_=es.slice(0,tx),tR=es.slice(tZ+1),tI=[].concat((0,w.Z)(t_),(0,w.Z)(tR)),tM=(0,a.useState)(),tP=(0,m.Z)(tM,2),tN=tP[0],tT=tP[1],tz=e3.get(em),tL=(0,a.useRef)();function tD(){_.Z.cancel(tL.current)}(0,a.useEffect)(function(){var e={};return tz&&(eP?(eh?e.right=tz.right:e.left=tz.left,e.width=tz.width):(e.top=tz.top,e.height=tz.height)),tD(),tL.current=(0,_.Z)(function(){tT(e)}),tD},[tz,eP,eh]),(0,a.useEffect)(function(){t$()},[em,ta,ti,z(tz),z(e3),eP]),(0,a.useEffect)(function(){tS()},[eh]);var tO=!!tI.length,tA="".concat(eu,"-nav-wrap");return eP?eh?(ea=ez>0,eo=ez!==ti):(eo=ez<0,ea=ez!==ta):(ei=eA<0,el=eA!==ta),a.createElement(E.Z,{onResize:tS},a.createElement("div",{ref:(0,R.x1)(t,ew),role:"tablist",className:f()("".concat(eu,"-nav"),ed),style:ef,onKeyDown:function(){tb()}},a.createElement(O,{ref:eE,position:"left",extra:eb,prefixCls:eu}),a.createElement("div",{className:f()(tA,(er={},(0,v.Z)(er,"".concat(tA,"-ping-left"),eo),(0,v.Z)(er,"".concat(tA,"-ping-right"),ea),(0,v.Z)(er,"".concat(tA,"-ping-top"),ei),(0,v.Z)(er,"".concat(tA,"-ping-bottom"),el),er)),ref:e_},a.createElement(E.Z,{onResize:tS},a.createElement("div",{ref:eR,className:"".concat(eu,"-nav-list"),style:{transform:"translate(".concat(ez,"px, ").concat(eA,"px)"),transition:tm?"none":void 0}},tw,a.createElement(D,{ref:eM,prefixCls:eu,locale:ey,editable:eg,style:(0,p.Z)((0,p.Z)({},0===tw.length?void 0:tk),{},{visibility:tO?"hidden":null})}),a.createElement("div",{className:f()("".concat(eu,"-ink-bar"),(0,v.Z)({},"".concat(eu,"-ink-bar-animated"),ep.inkBar)),style:tN})))),a.createElement(tl,(0,o.Z)({},e,{removeAriaLabel:null==ey?void 0:ey.removeAriaLabel,ref:eI,prefixCls:eu,tabs:tI,className:!tO&&to,tabMoving:!!tm})),a.createElement(O,{ref:eS,position:"right",extra:eb,prefixCls:eu})))}),tf=["renderTabBar"],tv=["label","key"];function tp(e){var t=e.renderTabBar,n=(0,b.Z)(e,tf),r=a.useContext(x).tabs;return t?t((0,p.Z)((0,p.Z)({},n),{},{panes:r.map(function(e){var t=e.label,n=e.key,r=(0,b.Z)(e,tv);return a.createElement(Z,(0,o.Z)({tab:t,key:n,tabKey:n},r))})}),td):a.createElement(td,n)}var tm=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],th=0,tb=a.forwardRef(function(e,t){var n,r,i=e.id,l=e.prefixCls,c=void 0===l?"rc-tabs":l,u=e.className,s=e.items,d=e.direction,C=e.activeKey,Z=e.defaultActiveKey,$=e.editable,w=e.animated,E=e.tabPosition,S=void 0===E?"top":E,_=e.tabBarGutter,R=e.tabBarStyle,I=e.tabBarExtraContent,M=e.locale,P=e.moreIcon,N=e.moreTransitionName,T=e.destroyInactiveTabPane,z=e.renderTabBar,L=e.onChange,D=e.onTabClick,O=e.onTabScroll,A=e.getPopupContainer,K=e.popupClassName,H=(0,b.Z)(e,tm),j=a.useMemo(function(){return(s||[]).filter(function(e){return e&&"object"===(0,h.Z)(e)&&"key"in e})},[s]),B="rtl"===d,W=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,p.Z)({inkBar:!0},"object"===(0,h.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(w),G=(0,a.useState)(!1),V=(0,m.Z)(G,2),X=V[0],F=V[1];(0,a.useEffect)(function(){F((0,g.Z)())},[]);var q=(0,y.Z)(function(){var e;return null===(e=j[0])||void 0===e?void 0:e.key},{value:C,defaultValue:Z}),Y=(0,m.Z)(q,2),J=Y[0],Q=Y[1],U=(0,a.useState)(function(){return j.findIndex(function(e){return e.key===J})}),ee=(0,m.Z)(U,2),et=ee[0],en=ee[1];(0,a.useEffect)(function(){var e,t=j.findIndex(function(e){return e.key===J});-1===t&&(t=Math.max(0,Math.min(et,j.length-1)),Q(null===(e=j[t])||void 0===e?void 0:e.key)),en(t)},[j.map(function(e){return e.key}).join("_"),J,et]);var er=(0,y.Z)(null,{value:i}),eo=(0,m.Z)(er,2),ea=eo[0],ei=eo[1];(0,a.useEffect)(function(){i||(ei("rc-tabs-".concat(th)),th+=1)},[]);var el={id:ea,activeKey:J,animated:W,tabPosition:S,rtl:B,mobile:X},ec=(0,p.Z)((0,p.Z)({},el),{},{editable:$,locale:M,moreIcon:P,moreTransitionName:N,tabBarGutter:_,onTabClick:function(e,t){null==D||D(e,t);var n=e!==J;Q(e),n&&(null==L||L(e))},onTabScroll:O,extra:I,style:R,panes:null,getPopupContainer:A,popupClassName:K});return a.createElement(x.Provider,{value:{tabs:j,prefixCls:c}},a.createElement("div",(0,o.Z)({ref:t,id:i,className:f()(c,"".concat(c,"-").concat(S),(n={},(0,v.Z)(n,"".concat(c,"-mobile"),X),(0,v.Z)(n,"".concat(c,"-editable"),$),(0,v.Z)(n,"".concat(c,"-rtl"),B),n),u)},H),r,a.createElement(tp,(0,o.Z)({},ec,{renderTabBar:z})),a.createElement(k,(0,o.Z)({destroyInactiveTabPane:T},el,{animated:W}))))}),tg=n(79746),ty=n(30069),tC=n(80716);let tx={motionAppear:!1,motionEnter:!0,motionLeave:!0};var tZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},t$=n(98663),tk=n(40650),tw=n(70721),tE=n(53279),tS=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,tE.oN)(e,"slide-up"),(0,tE.oN)(e,"slide-down")]]};let t_=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},tR=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,t$.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},t$.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},tI=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},tM=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},tP=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,t$.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},tN=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},tT=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,t$.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},(0,t$.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),tP(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var tz=(0,tk.Z)("Tabs",e=>{let t=(0,tw.TS)(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[tM(t),tN(t),tI(t),tR(t),t_(t),tT(t),tS(t)]},e=>{let t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),tL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function tD(e){let t;var{type:n,className:o,rootClassName:i,size:l,onEdit:u,hideAdd:d,centered:v,addIcon:p,popupClassName:m,children:h,items:b,animated:g}=e,y=tL(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);let{prefixCls:C,moreIcon:x=a.createElement(c,null)}=y,{direction:Z,getPrefixCls:$,getPopupContainer:k}=a.useContext(tg.E_),w=$("tabs",C),[E,S]=tz(w);"editable-card"===n&&(t={onEdit:(e,t)=>{let{key:n,event:r}=t;null==u||u("add"===e?r:n,e)},removeIcon:a.createElement(r.Z,null),addIcon:p||a.createElement(s,null),showAdd:!0!==d});let _=$(),R=function(e,t){if(e)return e;let n=(0,eq.Z)(t).map(e=>{if(a.isValidElement(e)){let{key:t,props:n}=e,r=n||{},{tab:o}=r,a=tZ(r,["tab"]),i=Object.assign(Object.assign({key:String(t)},a),{label:o});return i}return null});return n.filter(e=>e)}(b,h),I=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{})).tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},tx),{motionName:(0,tC.mL)(e,"switch")})),t}(w,g),M=(0,ty.Z)(l);return E(a.createElement(tb,Object.assign({direction:Z,getPopupContainer:k,moreTransitionName:`${_}-slide-up`},y,{items:R,className:f()({[`${w}-${M}`]:M,[`${w}-card`]:["card","editable-card"].includes(n),[`${w}-editable-card`]:"editable-card"===n,[`${w}-centered`]:v},o,i,S),popupClassName:f()(m,S),editable:t,moreIcon:x,prefixCls:w,animated:I})))}tD.TabPane=()=>null;var tO=tD}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/759-22c7defc3aa943a7.js b/pilot/server/static/_next/static/chunks/759-92fc0713bcb724b3.js similarity index 100% rename from pilot/server/static/_next/static/chunks/759-22c7defc3aa943a7.js rename to pilot/server/static/_next/static/chunks/759-92fc0713bcb724b3.js diff --git a/pilot/server/static/_next/static/chunks/877-cd5be147a1026461.js b/pilot/server/static/_next/static/chunks/877-546903595944ff79.js similarity index 100% rename from pilot/server/static/_next/static/chunks/877-cd5be147a1026461.js rename to pilot/server/static/_next/static/chunks/877-546903595944ff79.js diff --git a/pilot/server/static/_next/static/chunks/957-c96ff4de6e80d713.js b/pilot/server/static/_next/static/chunks/957-c96ff4de6e80d713.js deleted file mode 100644 index ecde854b7..000000000 --- a/pilot/server/static/_next/static/chunks/957-c96ff4de6e80d713.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[957],{95131:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(40431),o=n(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},44334:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(46750),o=n(40431),i=n(86006),a=n(53832),l=n(47562),c=n(89791),s=n(88930),u=n(326),d=n(50645),p=n(13809);function m(e){return(0,p.Z)("MuiBreadcrumbs",e)}(0,n(88539).Z)("MuiBreadcrumbs",["root","ol","li","separator","sizeSm","sizeMd","sizeLg"]);var f=n(9268);let g=["children","className","size","separator","component","slots","slotProps"],h=e=>{let{size:t}=e,n={root:["root",t&&`size${(0,a.Z)(t)}`],li:["li"],ol:["ol"],separator:["separator"]};return(0,l.Z)(n,m,{})},v=(0,d.Z)("nav",{name:"JoyBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,o.Z)({},"sm"===t.size&&{"--Breadcrumbs-gap":"0.25rem",fontSize:e.vars.fontSize.sm,padding:"0.5rem"},"md"===t.size&&{"--Breadcrumbs-gap":"0.375rem",fontSize:e.vars.fontSize.md,padding:"0.75rem"},"lg"===t.size&&{"--Breadcrumbs-gap":"0.5rem",fontSize:e.vars.fontSize.lg,padding:"1rem"},{lineHeight:1})),b=(0,d.Z)("ol",{name:"JoyBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),S=(0,d.Z)("li",{name:"JoyBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({}),$=(0,d.Z)("li",{name:"JoyBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginInline:"var(--Breadcrumbs-gap)"}),x=i.forwardRef(function(e,t){let n=(0,s.Z)({props:e,name:"JoyBreadcrumbs"}),{children:a,className:l,size:d="md",separator:p="/",component:m,slots:x={},slotProps:y={}}=n,E=(0,r.Z)(n,g),w=(0,o.Z)({},n,{separator:p,size:d}),C=h(w),I=(0,o.Z)({},E,{component:m,slots:x,slotProps:y}),[O,Z]=(0,u.Z)("root",{ref:t,className:(0,c.Z)(C.root,l),elementType:v,externalForwardedProps:I,ownerState:w}),[R,k]=(0,u.Z)("ol",{className:C.ol,elementType:b,externalForwardedProps:I,ownerState:w}),[M,z]=(0,u.Z)("li",{className:C.li,elementType:S,externalForwardedProps:I,ownerState:w}),[N,P]=(0,u.Z)("separator",{additionalProps:{"aria-hidden":!0},className:C.separator,elementType:$,externalForwardedProps:I,ownerState:w}),T=i.Children.toArray(a).filter(e=>i.isValidElement(e)).map((e,t)=>(0,f.jsx)(M,(0,o.Z)({},z,{children:e}),`child-${t}`));return(0,f.jsx)(O,(0,o.Z)({},Z,{children:(0,f.jsx)(R,(0,o.Z)({},k,{children:T.reduce((e,t,n)=>(ne+1,0);return e}},1031:function(e,t,n){n.d(t,{Z:function(){return nD}});var r,o,i=n(40431),a=n(86006),l={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"},c=n(1240),s=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:l}))}),u={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"},d=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:u}))}),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},m=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:p}))}),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},g=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:f}))}),h=n(8683),v=n.n(h),b=n(65877),S=n(88684),$=n(18050),x=n(49449),y=n(43663),E=n(38340),w=n(42442),C={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},I=function(e){(0,y.Z)(n,e);var t=(0,E.Z)(n);function n(){var e;(0,$.Z)(this,n);for(var r=arguments.length,o=Array(r),i=0;i=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode===C.ENTER||"click"===t.type)&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return(0,x.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some(function(e){return e.toString()===t.toString()})?n:n.concat([t.toString()]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,i=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,d=t.selectPrefixCls,p=t.disabled,m=this.state.goInputText,f="".concat(o,"-options"),g=null,h=null,v=null;if(!i&&!l)return null;var b=this.getPageSizeOptions();if(i&&s){var S=b.map(function(t,n){return a.createElement(s.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))});g=a.createElement(s,{disabled:p,prefixCls:d,showSearch:!1,className:"".concat(f,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},S)}return l&&(c&&(v="boolean"==typeof c?a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(f,"-quick-jumper-button")},r.jump_to_confirm):a.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),h=a.createElement("div",{className:"".concat(f,"-quick-jumper")},r.jump_to,a.createElement("input",{disabled:p,type:"text",value:m,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,v)),a.createElement("li",{className:"".concat(f)},g,h)}}]),n}(a.Component);I.defaultProps={pageSizeOptions:["10","20","50","100"]};var O=function(e){var t,n=e.rootPrefixCls,r=e.page,o=e.active,i=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(n,"-item"),p=v()(d,"".concat(d,"-").concat(r),(t={},(0,b.Z)(t,"".concat(d,"-active"),o),(0,b.Z)(t,"".concat(d,"-disabled"),!r),(0,b.Z)(t,e.className,i),t));return a.createElement("li",{title:l?r.toString():null,className:p,onClick:function(){c(r)},onKeyPress:function(e){s(e,c,r)},tabIndex:0},u(r,"page",a.createElement("a",{rel:"nofollow"},r)))};function Z(){}function R(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function k(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var M=function(e){(0,y.Z)(n,e);var t=(0,E.Z)(n);function n(e){(0,$.Z)(this,n),(r=t.call(this,e)).paginationNode=a.createRef(),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(k(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,o=e||a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(o=a.createElement(e,(0,S.Z)({},r.props))),o},r.isValid=function(e){var t=r.props.total;return R(e)&&e!==r.state.current&&R(t)&&t>0},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t},r.handleKeyDown=function(e){(e.keyCode===C.ARROW_UP||e.keyCode===C.ARROW_DOWN)&&e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===C.ENTER?r.handleChange(t):e.keyCode===C.ARROW_UP?r.handleChange(t-1):e.keyCode===C.ARROW_DOWN&&r.handleChange(t+1)},r.handleBlur=function(e){var t=r.getValidValue(e);r.handleChange(t)},r.changePageSize=function(e){var t=r.state.current,n=k(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"!=typeof e||("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange,i=r.state,a=i.pageSize,l=i.current,c=i.currentInputValue;if(r.isValid(e)&&!n){var s=k(void 0,r.state,r.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==c&&r.setState({currentInputValue:u}),o(u,a),u}return l},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.style,o=e.disabled,l=e.hideOnSinglePage,c=e.total,s=e.locale,u=e.showQuickJumper,d=e.showLessItems,p=e.showTitle,m=e.showTotal,f=e.simple,g=e.itemRender,h=e.showPrevNextJumpers,S=e.jumpPrevIcon,$=e.jumpNextIcon,x=e.selectComponentClass,y=e.selectPrefixCls,E=e.pageSizeOptions,C=this.state,Z=C.current,R=C.pageSize,M=C.currentInputValue;if(!0===l&&c<=R)return null;var z=k(void 0,this.state,this.props),N=[],P=null,T=null,H=null,D=null,j=null,B=u&&u.goButton,L=d?1:2,A=Z-1>0?Z-1:0,W=Z+1c?c:Z*R]));if(f)return B&&(j="boolean"==typeof B?a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},s.jump_to_confirm):a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},B),j=a.createElement("li",{title:p?"".concat(s.jump_to).concat(Z,"/").concat(z):null,className:"".concat(t,"-simple-pager")},j)),a.createElement("ul",(0,i.Z)({className:v()(t,"".concat(t,"-simple"),(0,b.Z)({},"".concat(t,"-disabled"),o),n),style:r,ref:this.paginationNode},_),V,a.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:v()("".concat(t,"-prev"),(0,b.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(A)),a.createElement("li",{title:p?"".concat(Z,"/").concat(z):null,className:"".concat(t,"-simple-pager")},a.createElement("input",{type:"text",value:M,disabled:o,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),a.createElement("span",{className:"".concat(t,"-slash")},"/"),z),a.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:v()("".concat(t,"-next"),(0,b.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(W)),j);if(z<=3+2*L){var K={locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:p,itemRender:g};z||N.push(a.createElement(O,(0,i.Z)({},K,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var F=1;F<=z;F+=1){var X=Z===F;N.push(a.createElement(O,(0,i.Z)({},K,{key:F,page:F,active:X})))}}else{var U=d?s.prev_3:s.prev_5,G=d?s.next_3:s.next_5;h&&(P=a.createElement("li",{title:p?U:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:v()("".concat(t,"-jump-prev"),(0,b.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!S))},g(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page"))),T=a.createElement("li",{title:p?G:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:v()("".concat(t,"-jump-next"),(0,b.Z)({},"".concat(t,"-jump-next-custom-icon"),!!$))},g(this.getJumpNextPage(),"jump-next",this.getItemIcon($,"next page")))),D=a.createElement(O,{locale:s,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:z,page:z,active:!1,showTitle:p,itemRender:g}),H=a.createElement(O,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:g});var Y=Math.max(1,Z-L),J=Math.min(Z+L,z);Z-1<=L&&(J=1+2*L),z-Z<=L&&(Y=z-2*L);for(var Q=Y;Q<=J;Q+=1){var q=Z===Q;N.push(a.createElement(O,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Q,page:Q,active:q,showTitle:p,itemRender:g}))}Z-1>=2*L&&3!==Z&&(N[0]=(0,a.cloneElement)(N[0],{className:"".concat(t,"-item-after-jump-prev")}),N.unshift(P)),z-Z>=2*L&&Z!==z-2&&(N[N.length-1]=(0,a.cloneElement)(N[N.length-1],{className:"".concat(t,"-item-before-jump-next")}),N.push(T)),1!==Y&&N.unshift(H),J!==z&&N.push(D)}var ee=!this.hasPrev()||!z,et=!this.hasNext()||!z;return a.createElement("ul",(0,i.Z)({className:v()(t,n,(0,b.Z)({},"".concat(t,"-disabled"),o)),style:r,ref:this.paginationNode},_),V,a.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:ee?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(t,"-prev"),(0,b.Z)({},"".concat(t,"-disabled"),ee)),"aria-disabled":ee},this.renderPrev(A)),N,a.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:et?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(t,"-next"),(0,b.Z)({},"".concat(t,"-disabled"),et)),"aria-disabled":et},this.renderNext(W)),a.createElement(I,{disabled:o,locale:s,rootPrefixCls:t,selectComponentClass:x,selectPrefixCls:y,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Z,pageSize:R,pageSizeOptions:E,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=k(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(a.Component);M.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Z,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Z,locale:{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:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var z=n(91219),N=n(79746),P=n(30069),T=n(3146),H=n(31508);let D=["xxl","xl","lg","md","sm","xs"],j=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),B=e=>{let t=[].concat(D).reverse();return t.forEach((n,r)=>{let o=n.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(e[i]<=e[a]))throw Error(`${i}<=${a} fails : !(${e[i]}<=${e[a]})`);if(r0)||void 0===arguments[0]||arguments[0],t=(0,a.useRef)({}),n=(0,T.Z)(),r=function(){let[,e]=(0,H.dQ)(),t=j(B(e));return a.useMemo(()=>{let e=new Map,n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)})},responsiveMap:t}},[e])}();return(0,a.useEffect)(()=>{let o=r.subscribe(r=>{t.current=r,e&&n()});return()=>r.unsubscribe(o)},[]),t.current},A=n(6783),W=n(90151),_=n(60456),V=n(89301),K=n(965),F=n(63940),X=n(5004),U=n(38358),G=n(98861),Y=n(48580),J=n(92510),Q=a.createContext(null);function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=a.useRef(null),n=a.useRef(null);return a.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var ee=n(29333),et=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],en=void 0,er=a.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.invalidate,l=e.item,c=e.renderItem,s=e.responsive,u=e.responsiveDisabled,d=e.registerSize,p=e.itemKey,m=e.className,f=e.style,g=e.children,h=e.display,b=e.order,$=e.component,x=void 0===$?"div":$,y=(0,V.Z)(e,et),E=s&&!h;a.useEffect(function(){return function(){d(p,null)}},[]);var w=c&&l!==en?c(l):g;o||(n={opacity:E?0:1,height:E?0:en,overflowY:E?"hidden":en,order:s?b:en,pointerEvents:E?"none":en,position:E?"absolute":en});var C={};E&&(C["aria-hidden"]=!0);var I=a.createElement(x,(0,i.Z)({className:v()(!o&&r,m),style:(0,S.Z)((0,S.Z)({},n),f)},C,y,{ref:t}),w);return s&&(I=a.createElement(ee.Z,{onResize:function(e){d(p,e.offsetWidth)},disabled:u},I)),I});er.displayName="Item";var eo=n(23254),ei=n(8431),ea=n(66643);function el(e,t){var n=a.useState(t),r=(0,_.Z)(n,2),o=r[0],i=r[1];return[o,(0,eo.Z)(function(t){e(function(){i(t)})})]}var ec=a.createContext(null),es=["component"],eu=["className"],ed=["className"],ep=a.forwardRef(function(e,t){var n=a.useContext(ec);if(!n){var r=e.component,o=void 0===r?"div":r,l=(0,V.Z)(e,es);return a.createElement(o,(0,i.Z)({},l,{ref:t}))}var c=n.className,s=(0,V.Z)(n,eu),u=e.className,d=(0,V.Z)(e,ed);return a.createElement(ec.Provider,{value:null},a.createElement(er,(0,i.Z)({ref:t,className:v()(c,u)},s,d)))});ep.displayName="RawItem";var em=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ef="responsive",eg="invalidate";function eh(e){return"+ ".concat(e.length," ...")}var ev=a.forwardRef(function(e,t){var n,r,o=e.prefixCls,l=void 0===o?"rc-overflow":o,c=e.data,s=void 0===c?[]:c,u=e.renderItem,d=e.renderRawItem,p=e.itemKey,m=e.itemWidth,f=void 0===m?10:m,g=e.ssr,h=e.style,b=e.className,$=e.maxCount,x=e.renderRest,y=e.renderRawRest,E=e.suffix,w=e.component,C=void 0===w?"div":w,I=e.itemComponent,O=e.onVisibleChange,Z=(0,V.Z)(e,em),R="full"===g,k=(n=a.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)(0,ea.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,ei.unstable_batchedUpdates)(function(){n.current.forEach(function(e){e()}),n.current=null})})),n.current.push(e)}),M=el(k,null),z=(0,_.Z)(M,2),N=z[0],P=z[1],T=N||0,H=el(k,new Map),D=(0,_.Z)(H,2),j=D[0],B=D[1],L=el(k,0),A=(0,_.Z)(L,2),W=A[0],K=A[1],F=el(k,0),X=(0,_.Z)(F,2),G=X[0],Y=X[1],J=el(k,0),Q=(0,_.Z)(J,2),q=Q[0],et=Q[1],en=(0,a.useState)(null),eo=(0,_.Z)(en,2),es=eo[0],eu=eo[1],ed=(0,a.useState)(null),ep=(0,_.Z)(ed,2),ev=ep[0],eb=ep[1],eS=a.useMemo(function(){return null===ev&&R?Number.MAX_SAFE_INTEGER:ev||0},[ev,N]),e$=(0,a.useState)(!1),ex=(0,_.Z)(e$,2),ey=ex[0],eE=ex[1],ew="".concat(l,"-item"),eC=Math.max(W,G),eI=$===ef,eO=s.length&&eI,eZ=$===eg,eR=eO||"number"==typeof $&&s.length>$,ek=(0,a.useMemo)(function(){var e=s;return eO?e=null===N&&R?s:s.slice(0,Math.min(s.length,T/f)):"number"==typeof $&&(e=s.slice(0,$)),e},[s,f,N,$,eO]),eM=(0,a.useMemo)(function(){return eO?s.slice(eS+1):s.slice(ek.length)},[s,ek,eO,eS]),ez=(0,a.useCallback)(function(e,t){var n;return"function"==typeof p?p(e):null!==(n=p&&(null==e?void 0:e[p]))&&void 0!==n?n:t},[p]),eN=(0,a.useCallback)(u||function(e){return e},[u]);function eP(e,t,n){(ev!==e||void 0!==t&&t!==es)&&(eb(e),n||(eE(eT){eP(r-1,e-o-q+G);break}}E&&eH(0)+q>T&&eu(null)}},[T,j,G,q,ez,ek]);var eD=ey&&!!eM.length,ej={};null!==es&&eO&&(ej={position:"absolute",left:es,top:0});var eB={prefixCls:ew,responsive:eO,component:I,invalidate:eZ},eL=d?function(e,t){var n=ez(e,t);return a.createElement(ec.Provider,{key:n,value:(0,S.Z)((0,S.Z)({},eB),{},{order:t,item:e,itemKey:n,registerSize:eT,display:t<=eS})},d(e,t))}:function(e,t){var n=ez(e,t);return a.createElement(er,(0,i.Z)({},eB,{order:t,key:n,item:e,renderItem:eN,itemKey:n,registerSize:eT,display:t<=eS}))},eA={order:eD?eS:Number.MAX_SAFE_INTEGER,className:"".concat(ew,"-rest"),registerSize:function(e,t){Y(t),K(G)},display:eD};if(y)y&&(r=a.createElement(ec.Provider,{value:(0,S.Z)((0,S.Z)({},eB),eA)},y(eM)));else{var eW=x||eh;r=a.createElement(er,(0,i.Z)({},eB,eA),"function"==typeof eW?eW(eM):eW)}var e_=a.createElement(C,(0,i.Z)({className:v()(!eZ&&l,b),style:h,ref:t},Z),ek.map(eL),eR?r:null,E&&a.createElement(er,(0,i.Z)({},eB,{responsive:eI,responsiveDisabled:!eO,order:eS,className:"".concat(ew,"-suffix"),registerSize:function(e,t){et(t)},display:!0,style:ej}),E));return eI&&(e_=a.createElement(ee.Z,{onResize:function(e,t){P(t.clientWidth)},disabled:!eO},e_)),e_});ev.displayName="Overflow",ev.Item=ep,ev.RESPONSIVE=ef,ev.INVALIDATE=eg;var eb=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,l=e.onClick,c=e.children;return t="function"==typeof r?r(o):r,a.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==t?t:a.createElement("span",{className:v()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},c))},eS=a.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.id,l=e.inputElement,c=e.disabled,s=e.tabIndex,u=e.autoFocus,d=e.autoComplete,p=e.editable,m=e.activeDescendantId,f=e.value,g=e.maxLength,h=e.onKeyDown,b=e.onMouseDown,$=e.onChange,x=e.onPaste,y=e.onCompositionStart,E=e.onCompositionEnd,w=e.open,C=e.attrs,I=l||a.createElement("input",null),O=I,Z=O.ref,R=O.props,k=R.onKeyDown,M=R.onChange,z=R.onMouseDown,N=R.onCompositionStart,P=R.onCompositionEnd,T=R.style;return(0,X.Kp)(!("maxLength"in I.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),I=a.cloneElement(I,(0,S.Z)((0,S.Z)((0,S.Z)({type:"search"},R),{},{id:i,ref:(0,J.sQ)(t,Z),disabled:c,tabIndex:s,autoComplete:d||"off",autoFocus:u,className:v()("".concat(o,"-selection-search-input"),null===(n=I)||void 0===n?void 0:null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":w,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":m},C),{},{value:p?f:"",maxLength:g,readOnly:!p,unselectable:p?null:"on",style:(0,S.Z)((0,S.Z)({},T),{},{opacity:p?null:0}),onKeyDown:function(e){h(e),k&&k(e)},onMouseDown:function(e){b(e),z&&z(e)},onChange:function(e){$(e),M&&M(e)},onCompositionStart:function(e){y(e),N&&N(e)},onCompositionEnd:function(e){E(e),P&&P(e)},onPaste:x}))});function e$(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}eS.displayName="Input";var ex="undefined"!=typeof window&&window.document&&window.document.documentElement;function ey(e){return["string","number"].includes((0,K.Z)(e))}function eE(e){var t=void 0;return e&&(ey(e.title)?t=e.title.toString():ey(e.label)&&(t=e.label.toString())),t}function ew(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var eC=function(e){e.preventDefault(),e.stopPropagation()},eI=function(e){var t,n,r=e.id,o=e.prefixCls,i=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,p=e.disabled,m=e.mode,f=e.showSearch,g=e.autoFocus,h=e.autoComplete,S=e.activeDescendantId,$=e.tabIndex,x=e.removeIcon,y=e.maxTagCount,E=e.maxTagTextLength,C=e.maxTagPlaceholder,I=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,O=e.tagRender,Z=e.onToggleOpen,R=e.onRemove,k=e.onInputChange,M=e.onInputPaste,z=e.onInputKeyDown,N=e.onInputMouseDown,P=e.onInputCompositionStart,T=e.onInputCompositionEnd,H=a.useRef(null),D=(0,a.useState)(0),j=(0,_.Z)(D,2),B=j[0],L=j[1],A=(0,a.useState)(!1),W=(0,_.Z)(A,2),V=W[0],K=W[1],F="".concat(o,"-selection"),X=l||"multiple"===m&&!1===s||"tags"===m?c:"",U="tags"===m||"multiple"===m&&!1===s||f&&(l||V);function G(e,t,n,r,o){return a.createElement("span",{className:v()("".concat(F,"-item"),(0,b.Z)({},"".concat(F,"-item-disabled"),n)),title:eE(e)},a.createElement("span",{className:"".concat(F,"-item-content")},t),r&&a.createElement(eb,{className:"".concat(F,"-item-remove"),onMouseDown:eC,onClick:o,customizeIcon:x},"\xd7"))}t=function(){L(H.current.scrollWidth)},n=[X],ex?a.useLayoutEffect(t,n):a.useEffect(t,n);var Y=a.createElement("div",{className:"".concat(F,"-search"),style:{width:B},onFocus:function(){K(!0)},onBlur:function(){K(!1)}},a.createElement(eS,{ref:u,open:l,prefixCls:o,id:r,inputElement:null,disabled:p,autoFocus:g,autoComplete:h,editable:U,activeDescendantId:S,value:X,onKeyDown:z,onMouseDown:N,onChange:k,onPaste:M,onCompositionStart:P,onCompositionEnd:T,tabIndex:$,attrs:(0,w.Z)(e,!0)}),a.createElement("span",{ref:H,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},X,"\xa0")),J=a.createElement(ev,{prefixCls:"".concat(F,"-overflow"),data:i,renderItem:function(e){var t,n=e.disabled,r=e.label,o=e.value,i=!p&&!n,c=r;if("number"==typeof E&&("string"==typeof r||"number"==typeof r)){var s=String(c);s.length>E&&(c="".concat(s.slice(0,E),"..."))}var u=function(t){t&&t.stopPropagation(),R(e)};return"function"==typeof O?(t=c,a.createElement("span",{onMouseDown:function(e){eC(e),Z(!l)}},O({label:t,value:o,disabled:n,closable:i,onClose:u}))):G(e,c,n,i,u)},renderRest:function(e){var t="function"==typeof I?I(e):I;return G({title:t},t,!1)},suffix:Y,itemKey:ew,maxCount:y});return a.createElement(a.Fragment,null,J,!i.length&&!X&&a.createElement("span",{className:"".concat(F,"-placeholder")},d))},eO=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,p=e.values,m=e.placeholder,f=e.tabIndex,g=e.showSearch,h=e.searchValue,v=e.activeValue,b=e.maxLength,S=e.onInputKeyDown,$=e.onInputMouseDown,x=e.onInputChange,y=e.onInputPaste,E=e.onInputCompositionStart,C=e.onInputCompositionEnd,I=e.title,O=a.useState(!1),Z=(0,_.Z)(O,2),R=Z[0],k=Z[1],M="combobox"===u,z=M||g,N=p[0],P=h||"";M&&v&&!R&&(P=v),a.useEffect(function(){M&&k(!1)},[M,v]);var T=("combobox"===u||!!d||!!g)&&!!P,H=void 0===I?eE(N):I;return a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(n,"-selection-search")},a.createElement(eS,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:i,autoFocus:l,autoComplete:c,editable:z,activeDescendantId:s,value:P,onKeyDown:S,onMouseDown:$,onChange:function(e){k(!0),x(e)},onPaste:y,onCompositionStart:E,onCompositionEnd:C,tabIndex:f,attrs:(0,w.Z)(e,!0),maxLength:M?b:void 0})),!M&&N?a.createElement("span",{className:"".concat(n,"-selection-item"),title:H,style:T?{visibility:"hidden"}:void 0},N.label):null,N?null:a.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:T?{visibility:"hidden"}:void 0},m))},eZ=a.forwardRef(function(e,t){var n=(0,a.useRef)(null),r=(0,a.useRef)(!1),o=e.prefixCls,l=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.autoClearSearchValue,p=e.onSearch,m=e.onSearchSubmit,f=e.onToggleOpen,g=e.onInputKeyDown,h=e.domRef;a.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var v=q(0),b=(0,_.Z)(v,2),S=b[0],$=b[1],x=(0,a.useRef)(null),y=function(e){!1!==p(e,!0,r.current)&&f(!0)},E={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===Y.Z.UP||t===Y.Z.DOWN)&&e.preventDefault(),g&&g(e),t!==Y.Z.ENTER||"tags"!==c||r.current||l||null==m||m(e.target.value),[Y.Z.ESC,Y.Z.SHIFT,Y.Z.BACKSPACE,Y.Z.TAB,Y.Z.WIN_KEY,Y.Z.ALT,Y.Z.META,Y.Z.WIN_KEY_RIGHT,Y.Z.CTRL,Y.Z.SEMICOLON,Y.Z.EQUALS,Y.Z.CAPS_LOCK,Y.Z.CONTEXT_MENU,Y.Z.F1,Y.Z.F2,Y.Z.F3,Y.Z.F4,Y.Z.F5,Y.Z.F6,Y.Z.F7,Y.Z.F8,Y.Z.F9,Y.Z.F10,Y.Z.F11,Y.Z.F12].includes(t)||f(!0)},onInputMouseDown:function(){$(!0)},onInputChange:function(e){var t=e.target.value;if(u&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,y(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");x.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&y(e.target.value)}},w="multiple"===c||"tags"===c?a.createElement(eI,(0,i.Z)({},e,E)):a.createElement(eO,(0,i.Z)({},e,E));return a.createElement("div",{ref:h,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===c||e.preventDefault(),("combobox"===c||s&&t)&&l||(l&&!1!==d&&p("",!0,!1),f())}},w)});eZ.displayName="Selector";var eR=n(90214),ek=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],eM=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"}}},ez=a.forwardRef(function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),o=e.children,l=e.popupElement,c=e.containerWidth,s=e.animation,u=e.transitionName,d=e.dropdownStyle,p=e.dropdownClassName,m=e.direction,f=e.placement,g=e.builtinPlacements,h=e.dropdownMatchSelectWidth,$=e.dropdownRender,x=e.dropdownAlign,y=e.getPopupContainer,E=e.empty,w=e.getTriggerDOMNode,C=e.onPopupVisibleChange,I=e.onPopupMouseEnter,O=(0,V.Z)(e,ek),Z="".concat(n,"-dropdown"),R=l;$&&(R=$(l));var k=a.useMemo(function(){return g||eM(h)},[g,h]),M=s?"".concat(Z,"-").concat(s):u,z=a.useRef(null);a.useImperativeHandle(t,function(){return{getPopupElement:function(){return z.current}}});var N=(0,S.Z)({minWidth:c},d);return"number"==typeof h?N.width=h:h&&(N.width=c),a.createElement(eR.Z,(0,i.Z)({},O,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:f||("rtl"===(void 0===m?"ltr":m)?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:Z,popupTransitionName:M,popup:a.createElement("div",{ref:z,onMouseEnter:I},R),popupAlign:x,popupVisible:r,getPopupContainer:y,popupClassName:v()(p,(0,b.Z)({},"".concat(Z,"-empty"),E)),popupStyle:N,getTriggerDOMNode:w,onPopupVisibleChange:C}),o)});ez.displayName="SelectTrigger";var eN=n(29221);function eP(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 eT(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function eH(e){var t=(0,S.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,X.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var eD=["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","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ej=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function eB(e){return"tags"===e||"multiple"===e}var eL=a.forwardRef(function(e,t){var n,r,o,l,c,s,u,d,p,m=e.id,f=e.prefixCls,g=e.className,h=e.showSearch,$=e.tagRender,x=e.direction,y=e.omitDomProps,E=e.displayValues,w=e.onDisplayValuesChange,C=e.emptyOptions,I=e.notFoundContent,O=void 0===I?"Not Found":I,Z=e.onClear,R=e.mode,k=e.disabled,M=e.loading,z=e.getInputElement,N=e.getRawInputElement,P=e.open,T=e.defaultOpen,H=e.onDropdownVisibleChange,D=e.activeValue,j=e.onActiveValueChange,B=e.activeDescendantId,L=e.searchValue,A=e.autoClearSearchValue,X=e.onSearch,ee=e.onSearchSplit,et=e.tokenSeparators,en=e.allowClear,er=e.showArrow,eo=e.inputIcon,ei=e.clearIcon,ea=e.OptionList,el=e.animation,ec=e.transitionName,es=e.dropdownStyle,eu=e.dropdownClassName,ed=e.dropdownMatchSelectWidth,ep=e.dropdownRender,em=e.dropdownAlign,ef=e.placement,eg=e.builtinPlacements,eh=e.getPopupContainer,ev=e.showAction,eS=void 0===ev?[]:ev,e$=e.onFocus,ex=e.onBlur,ey=e.onKeyUp,eE=e.onKeyDown,ew=e.onMouseDown,eC=(0,V.Z)(e,eD),eI=eB(R),eO=(void 0!==h?h:eI)||"combobox"===R,eR=(0,S.Z)({},eC);ej.forEach(function(e){delete eR[e]}),null==y||y.forEach(function(e){delete eR[e]});var ek=a.useState(!1),eM=(0,_.Z)(ek,2),eP=eM[0],eT=eM[1];a.useEffect(function(){eT((0,G.Z)())},[]);var eH=a.useRef(null),eL=a.useRef(null),eA=a.useRef(null),eW=a.useRef(null),e_=a.useRef(null),eV=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=a.useState(!1),n=(0,_.Z)(t,2),r=n[0],o=n[1],i=a.useRef(null),l=function(){window.clearTimeout(i.current)};return a.useEffect(function(){return l},[]),[r,function(t,n){l(),i.current=window.setTimeout(function(){o(t),n&&n()},e)},l]}(),eK=(0,_.Z)(eV,3),eF=eK[0],eX=eK[1],eU=eK[2];a.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=eW.current)||void 0===e?void 0:e.focus,blur:null===(t=eW.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=e_.current)||void 0===t?void 0:t.scrollTo(e)}}});var eG=a.useMemo(function(){if("combobox"!==R)return L;var e,t=null===(e=E[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[L,R,E]),eY="combobox"===R&&"function"==typeof z&&z()||null,eJ="function"==typeof N&&N(),eQ=(0,J.x1)(eL,null==eJ?void 0:null===(l=eJ.props)||void 0===l?void 0:l.ref),eq=a.useState(!1),e0=(0,_.Z)(eq,2),e1=e0[0],e2=e0[1];(0,U.Z)(function(){e2(!0)},[]);var e3=(0,F.Z)(!1,{defaultValue:T,value:P}),e6=(0,_.Z)(e3,2),e4=e6[0],e5=e6[1],e9=!!e1&&e4,e7=!O&&C;(k||e7&&e9&&"combobox"===R)&&(e9=!1);var e8=!e7&&e9,te=a.useCallback(function(e){var t=void 0!==e?e:!e9;k||(e5(t),e9!==t&&(null==H||H(t)))},[k,e9,e5,H]),tt=a.useMemo(function(){return(et||[]).some(function(e){return["\n","\r\n"].includes(e)})},[et]),tn=function(e,t,n){var r=!0,o=e;null==j||j(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=(0,eN.Z)(r),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return n=n||l.length>1,l.reduce(function(t,n){return[].concat((0,W.Z)(t),(0,W.Z)(e(n,a)))},[]).filter(function(e){return e})}(e,t);return n?r:null}(e,et);return"combobox"!==R&&i&&(o="",null==ee||ee(i),te(!1),r=!1),X&&eG!==o&&X(o,{source:t?"typing":"effect"}),r};a.useEffect(function(){e9||eI||"combobox"===R||tn("",!1,!1)},[e9]),a.useEffect(function(){e4&&k&&e5(!1),k&&eX(!1)},[k]);var tr=q(),to=(0,_.Z)(tr,2),ti=to[0],ta=to[1],tl=a.useRef(!1),tc=[];a.useEffect(function(){return function(){tc.forEach(function(e){return clearTimeout(e)}),tc.splice(0,tc.length)}},[]);var ts=a.useState(null),tu=(0,_.Z)(ts,2),td=tu[0],tp=tu[1],tm=a.useState({}),tf=(0,_.Z)(tm,2)[1];(0,U.Z)(function(){if(e8){var e,t=Math.ceil(null===(e=eH.current)||void 0===e?void 0:e.offsetWidth);td===t||Number.isNaN(t)||tp(t)}},[e8]),eJ&&(s=function(e){te(e)}),n=function(){var e;return[eH.current,null===(e=eA.current)||void 0===e?void 0:e.getPopupElement()]},r=!!eJ,(o=a.useRef(null)).current={open:e8,triggerOpen:te,customizedTrigger:r},a.useEffect(function(){function e(e){if(null===(t=o.current)||void 0===t||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),o.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tg=a.useMemo(function(){return(0,S.Z)((0,S.Z)({},e),{},{notFoundContent:O,open:e9,triggerOpen:e8,id:m,showSearch:eO,multiple:eI,toggleOpen:te})},[e,O,e8,e9,m,eO,eI,te]),th=void 0!==er?er:M||!eI&&"combobox"!==R;th&&(u=a.createElement(eb,{className:v()("".concat(f,"-arrow"),(0,b.Z)({},"".concat(f,"-arrow-loading"),M)),customizeIcon:eo,customizeIconProps:{loading:M,searchValue:eG,open:e9,focused:eF,showSearch:eO}})),!k&&en&&(E.length||eG)&&!("combobox"===R&&""===eG)&&(d=a.createElement(eb,{className:"".concat(f,"-clear"),onMouseDown:function(){var e;null==Z||Z(),null===(e=eW.current)||void 0===e||e.focus(),w([],{type:"clear",values:E}),tn("",!1,!1)},customizeIcon:ei},"\xd7"));var tv=a.createElement(ea,{ref:e_}),tb=v()(f,g,(c={},(0,b.Z)(c,"".concat(f,"-focused"),eF),(0,b.Z)(c,"".concat(f,"-multiple"),eI),(0,b.Z)(c,"".concat(f,"-single"),!eI),(0,b.Z)(c,"".concat(f,"-allow-clear"),en),(0,b.Z)(c,"".concat(f,"-show-arrow"),th),(0,b.Z)(c,"".concat(f,"-disabled"),k),(0,b.Z)(c,"".concat(f,"-loading"),M),(0,b.Z)(c,"".concat(f,"-open"),e9),(0,b.Z)(c,"".concat(f,"-customize-input"),eY),(0,b.Z)(c,"".concat(f,"-show-search"),eO),c)),tS=a.createElement(ez,{ref:eA,disabled:k,prefixCls:f,visible:e8,popupElement:tv,containerWidth:td,animation:el,transitionName:ec,dropdownStyle:es,dropdownClassName:eu,direction:x,dropdownMatchSelectWidth:ed,dropdownRender:ep,dropdownAlign:em,placement:ef,builtinPlacements:eg,getPopupContainer:eh,empty:C,getTriggerDOMNode:function(){return eL.current},onPopupVisibleChange:s,onPopupMouseEnter:function(){tf({})}},eJ?a.cloneElement(eJ,{ref:eQ}):a.createElement(eZ,(0,i.Z)({},e,{domRef:eL,prefixCls:f,inputElement:eY,ref:eW,id:m,showSearch:eO,autoClearSearchValue:A,mode:R,activeDescendantId:B,tagRender:$,values:E,open:e9,onToggleOpen:te,activeValue:D,searchValue:eG,onSearch:tn,onSearchSubmit:function(e){e&&e.trim()&&X(e,{source:"submit"})},onRemove:function(e){w(E.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:tt})));return p=eJ?tS:a.createElement("div",(0,i.Z)({className:tb},eR,{ref:eH,onMouseDown:function(e){var t,n=e.target,r=null===(t=eA.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=tc.indexOf(o);-1!==t&&tc.splice(t,1),eU(),eP||r.contains(document.activeElement)||null===(e=eW.current)||void 0===e||e.focus()});tc.push(o)}for(var i=arguments.length,a=Array(i>1?i-1:0),l=1;l=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&w(o,{type:"remove",values:[i]})}for(var c=arguments.length,s=Array(c>1?c-1:0),u=1;u1?n-1:0),o=1;on},e}return(0,x.Z)(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props,o=r.prefixCls,i=r.direction,l=this.getSpinHeight(),c=this.getTop(),s=this.showScroll(),u=s&&n;return a.createElement("div",{ref:this.scrollbarRef,className:v()("".concat(o,"-scrollbar"),(0,b.Z)({},"".concat(o,"-scrollbar-show"),s)),style:(0,S.Z)((0,S.Z)({width:8,top:0,bottom:0},"rtl"===i?{left:0}:{right:0}),{},{position:"absolute",display:u?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},a.createElement("div",{ref:this.thumbRef,className:v()("".concat(o,"-scrollbar-thumb"),(0,b.Z)({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:l,top:c,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(a.Component);function e3(e){var t=e.children,n=e.setRef,r=a.useCallback(function(e){n(e)},[]);return a.cloneElement(t,{ref:r})}var e6=n(49175),e4=function(){function e(){(0,$.Z)(this,e),this.maps=void 0,this.maps=Object.create(null)}return(0,x.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),e5=("undefined"==typeof navigator?"undefined":(0,K.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),e9=function(e,t){var n=(0,a.useRef)(!1),r=(0,a.useRef)(null),o=(0,a.useRef)({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&o.current.top||e>0&&o.current.bottom;return t&&i?(clearTimeout(r.current),n.current=!1):(!i||n.current)&&(clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)),!n.current&&i}},e7=14/15,e8=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],te=[],tt={overflowY:"auto",overflowAnchor:"none"},tn=a.forwardRef(function(e,t){var n,r,o,l,c,s,u,d,p,m,f,g,h,$,x,y,E,w,C,I,O,Z,R,k,M,z,N=e.prefixCls,P=void 0===N?"rc-virtual-list":N,T=e.className,H=e.height,D=e.itemHeight,j=e.fullHeight,B=e.style,L=e.data,A=e.children,W=e.itemKey,F=e.virtual,X=e.direction,G=e.component,Y=void 0===G?"div":G,J=e.onScroll,Q=e.onVisibleChange,q=e.innerProps,ee=(0,V.Z)(e,e8),et=!!(!1!==F&&H&&D),en=et&&L&&D*L.length>H,er=(0,a.useState)(0),eo=(0,_.Z)(er,2),ei=eo[0],el=eo[1],ec=(0,a.useState)(!1),es=(0,_.Z)(ec,2),eu=es[0],ed=es[1],ep=v()(P,(0,b.Z)({},"".concat(P,"-rtl"),"rtl"===X),T),em=L||te,ef=(0,a.useRef)(),eg=(0,a.useRef)(),eh=(0,a.useRef)(),ev=a.useCallback(function(e){return"function"==typeof W?W(e):null==e?void 0:e[W]},[W]);function eb(e){el(function(t){var n,r=(n="function"==typeof e?e(t):e,Number.isNaN(eT.current)||(n=Math.min(n,eT.current)),n=Math.max(n,0));return ef.current.scrollTop=r,r})}var eS=(0,a.useRef)({start:0,end:em.length}),e$=(0,a.useRef)(),ex=(r=a.useState(em),l=(o=(0,_.Z)(r,2))[0],c=o[1],s=a.useState(null),d=(u=(0,_.Z)(s,2))[0],p=u[1],a.useEffect(function(){var e=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i=ei&&void 0===t&&(t=a,n=o),s>ei+H&&void 0===r&&(r=a),o=s}return void 0===t&&(t=0,n=0,r=Math.ceil(H/D)),void 0===r&&(r=em.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,em.length),offset:n}},[en,et,ei,em,eZ,H]),ek=eR.scrollHeight,eM=eR.start,ez=eR.end,eN=eR.offset;eS.current.start=eM,eS.current.end=ez;var eP=ek-H,eT=(0,a.useRef)(eP);eT.current=eP;var eH=ei<=0,eD=ei>=eP,ej=e9(eH,eD),eB=(m=function(e){eb(function(t){return t+e})},f=(0,a.useRef)(0),g=(0,a.useRef)(null),h=(0,a.useRef)(null),$=(0,a.useRef)(!1),x=e9(eH,eD),[function(e){if(et){ea.Z.cancel(g.current);var t=e.deltaY;f.current+=t,h.current=t,x(t)||(e5||e.preventDefault(),g.current=(0,ea.Z)(function(){var e=$.current?10:1;m(f.current*e),f.current=0}))}},function(e){et&&($.current=e.detail===h.current)}]),eL=(0,_.Z)(eB,2),eA=eL[0],eW=eL[1];y=function(e,t){return!ej(e,t)&&(eA({preventDefault:function(){},deltaY:e}),!0)},w=(0,a.useRef)(!1),C=(0,a.useRef)(0),I=(0,a.useRef)(null),O=(0,a.useRef)(null),Z=function(e){if(w.current){var t=Math.ceil(e.touches[0].pageY),n=C.current-t;C.current=t,y(n)&&e.preventDefault(),clearInterval(O.current),O.current=setInterval(function(){(!y(n*=e7,!0)||.1>=Math.abs(n))&&clearInterval(O.current)},16)}},R=function(){w.current=!1,E()},k=function(e){E(),1!==e.touches.length||w.current||(w.current=!0,C.current=Math.ceil(e.touches[0].pageY),I.current=e.target,I.current.addEventListener("touchmove",Z),I.current.addEventListener("touchend",R))},E=function(){I.current&&(I.current.removeEventListener("touchmove",Z),I.current.removeEventListener("touchend",R))},(0,U.Z)(function(){return et&&ef.current.addEventListener("touchstart",k),function(){var e;null===(e=ef.current)||void 0===e||e.removeEventListener("touchstart",k),E(),clearInterval(O.current)}},[et]),(0,U.Z)(function(){function e(e){et&&e.preventDefault()}return ef.current.addEventListener("wheel",eA),ef.current.addEventListener("DOMMouseScroll",eW),ef.current.addEventListener("MozMousePixelScroll",e),function(){ef.current&&(ef.current.removeEventListener("wheel",eA),ef.current.removeEventListener("DOMMouseScroll",eW),ef.current.removeEventListener("MozMousePixelScroll",e))}},[et]);var e_=(M=function(){var e;null===(e=eh.current)||void 0===e||e.delayHidden()},z=a.useRef(),function(e){if(null==e){M();return}if(ea.Z.cancel(z.current),"number"==typeof e)eb(e);else if(e&&"object"===(0,K.Z)(e)){var t,n=e.align;t="index"in e?e.index:em.findIndex(function(t){return ev(t)===e.key});var r=e.offset,o=void 0===r?0:r;!function e(r,i){if(!(r<0)&&ef.current){var a=ef.current.clientHeight,l=!1,c=i;if(a){for(var s=0,u=0,d=0,p=Math.min(em.length,t),m=0;m<=p;m+=1){var f=ev(em[m]);u=s;var g=eO.get(f);s=d=u+(void 0===g?D:g),m===t&&void 0===g&&(l=!0)}var h=null;switch(i||n){case"top":h=u-o;break;case"bottom":h=d-a+o;break;default:var v=ef.current.scrollTop;uv+a&&(c="bottom")}null!==h&&h!==ef.current.scrollTop&&eb(h)}z.current=(0,ea.Z)(function(){l&&eI(),e(r-1,c)},2)}}(3)}});a.useImperativeHandle(t,function(){return{scrollTo:e_}}),(0,U.Z)(function(){Q&&Q(em.slice(eM,ez+1),em)},[eM,ez,em]);var eV=em.slice(eM,ez+1).map(function(e,t){var n=A(e,eM+t,{}),r=ev(e);return a.createElement(e3,{key:r,setRef:function(t){return eC(e,t)}},n)}),eK=null;return H&&(eK=(0,S.Z)((0,b.Z)({},void 0===j||j?"height":"maxHeight",H),tt),et&&(eK.overflowY="hidden",eu&&(eK.pointerEvents="none"))),a.createElement("div",(0,i.Z)({style:(0,S.Z)((0,S.Z)({},B),{},{position:"relative"}),className:ep},ee),a.createElement(Y,{className:"".concat(P,"-holder"),style:eK,ref:ef,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==ei&&eb(t),null==J||J(e)}},a.createElement(e0,{prefixCls:P,height:ek,offset:eN,onInnerResize:eI,ref:eg,innerProps:q},eV)),et&&a.createElement(e2,{ref:eh,prefixCls:P,scrollTop:ei,height:H,scrollHeight:ek,count:em.length,direction:X,onScroll:function(e){eb(e)},onStartMove:function(){ed(!0)},onStopMove:function(){ed(!1)}}))});tn.displayName="List";var tr=a.createContext(null),to=["disabled","title","children","style","className"];function ti(e){return"string"==typeof e||"number"==typeof e}var ta=a.forwardRef(function(e,t){var n=a.useContext(Q),r=n.prefixCls,o=n.id,l=n.open,c=n.multiple,s=n.mode,u=n.searchValue,d=n.toggleOpen,p=n.notFoundContent,m=n.onPopupScroll,f=a.useContext(tr),g=f.flattenOptions,h=f.onActiveValue,S=f.defaultActiveFirstOption,$=f.onSelect,x=f.menuItemSelectedIcon,y=f.rawValues,E=f.fieldNames,C=f.virtual,I=f.direction,O=f.listHeight,Z=f.listItemHeight,R="".concat(r,"-item"),k=(0,eQ.Z)(function(){return g},[l,g],function(e,t){return t[0]&&e[1]!==t[1]}),M=a.useRef(null),z=function(e){e.preventDefault()},N=function(e){M.current&&M.current.scrollTo("number"==typeof e?{index:e}:e)},P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=k.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];j(e);var n={source:t?"keyboard":"mouse"},r=k[e];if(!r){h(null,-1,n);return}h(r.value,e,n)};(0,a.useEffect)(function(){B(!1!==S?P(0):-1)},[k.length,u]);var L=a.useCallback(function(e){return y.has(e)&&"combobox"!==s},[s,(0,W.Z)(y).toString(),y.size]);(0,a.useEffect)(function(){var e,t=setTimeout(function(){if(!c&&l&&1===y.size){var e=Array.from(y)[0],t=k.findIndex(function(t){return t.data.value===e});-1!==t&&(B(t),N(t))}});return l&&(null===(e=M.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[l,u,g.length]);var A=function(e){void 0!==e&&$(e,{selected:!y.has(e)}),c||d(!1)};if(a.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Y.Z.N:case Y.Z.P:case Y.Z.UP:case Y.Z.DOWN:var r=0;if(t===Y.Z.UP?r=-1:t===Y.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Y.Z.N?r=1:t===Y.Z.P&&(r=-1)),0!==r){var o=P(D+r,r);N(o),B(o,!0)}break;case Y.Z.ENTER:var i=k[D];i&&!i.data.disabled?A(i.value):A(void 0),l&&e.preventDefault();break;case Y.Z.ESC:d(!1),l&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){N(e)}}}),0===k.length)return a.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(R,"-empty"),onMouseDown:z},p);var K=Object.keys(E).map(function(e){return E[e]}),F=function(e){return e.label};function X(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var U=function(e){var t=k[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,l=(0,w.Z)(n,!0),c=F(t);return t?a.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof c||o?null:c},l,{key:e},X(t,e),{"aria-selected":L(r)}),r):null},G={role:"listbox",id:"".concat(o,"_list")};return a.createElement(a.Fragment,null,C&&a.createElement("div",(0,i.Z)({},G,{style:{height:0,width:0,overflow:"hidden"}}),U(D-1),U(D),U(D+1)),a.createElement(tn,{itemKey:"key",ref:M,data:k,height:O,itemHeight:Z,fullHeight:!1,onMouseDown:z,onScroll:m,virtual:C,direction:I,innerProps:C?null:G},function(e,t){var n=e.group,r=e.groupOption,o=e.data,l=e.label,c=e.value,s=o.key;if(n){var u,d,p=null!==(d=o.title)&&void 0!==d?d:ti(l)?l.toString():void 0;return a.createElement("div",{className:v()(R,"".concat(R,"-group")),title:p},void 0!==l?l:s)}var m=o.disabled,f=o.title,g=(o.children,o.style),h=o.className,S=(0,V.Z)(o,to),$=(0,eq.Z)(S,K),y=L(c),E="".concat(R,"-option"),I=v()(R,E,h,(u={},(0,b.Z)(u,"".concat(E,"-grouped"),r),(0,b.Z)(u,"".concat(E,"-active"),D===t&&!m),(0,b.Z)(u,"".concat(E,"-disabled"),m),(0,b.Z)(u,"".concat(E,"-selected"),y),u)),O=F(e),Z=!x||"function"==typeof x||y,k="number"==typeof O?O:O||c,M=ti(k)?k.toString():void 0;return void 0!==f&&(M=f),a.createElement("div",(0,i.Z)({},(0,w.Z)($),C?{}:X(e,t),{"aria-selected":y,className:I,title:M,onMouseMove:function(){D===t||m||B(t)},onClick:function(){m||A(c)},style:g}),a.createElement("div",{className:"".concat(E,"-content")},k),a.isValidElement(x)||y,Z&&a.createElement(eb,{className:"".concat(R,"-option-state"),customizeIcon:x,customizeIconProps:{isSelected:y}},y?"✓":null))}))});ta.displayName="OptionList";var tl=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],tc=["inputValue"],ts=a.forwardRef(function(e,t){var n,r,o,l,c,s=e.id,u=e.mode,d=e.prefixCls,p=e.backfill,m=e.fieldNames,f=e.inputValue,g=e.searchValue,h=e.onSearch,v=e.autoClearSearchValue,$=void 0===v||v,x=e.onSelect,y=e.onDeselect,E=e.dropdownMatchSelectWidth,w=void 0===E||E,C=e.filterOption,I=e.filterSort,O=e.optionFilterProp,Z=e.optionLabelProp,R=e.options,k=e.children,M=e.defaultActiveFirstOption,z=e.menuItemSelectedIcon,N=e.virtual,P=e.direction,T=e.listHeight,H=void 0===T?200:T,D=e.listItemHeight,j=void 0===D?20:D,B=e.value,L=e.defaultValue,A=e.labelInValue,X=e.onChange,U=(0,V.Z)(e,tl),G=(n=a.useState(),o=(r=(0,_.Z)(n,2))[0],l=r[1],a.useEffect(function(){var e;l("rc_select_".concat((eK?(e=eV,eV+=1):e="TEST_OR_SSR",e)))},[]),s||o),Y=eB(u),J=!!(!R&&k),Q=a.useMemo(function(){return(void 0!==C||"combobox"!==u)&&C},[C,u]),q=a.useMemo(function(){return eT(m,J)},[JSON.stringify(m),J]),ee=(0,F.Z)("",{value:void 0!==g?g:f,postState:function(e){return e||""}}),et=(0,_.Z)(ee,2),en=et[0],er=et[1],eo=a.useMemo(function(){var e=R;R||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,eF.Z)(t).map(function(t,r){if(!a.isValidElement(t)||!t.type)return null;var o,i,l,c,s,u=t.type.isSelectOptGroup,d=t.key,p=t.props,m=p.children,f=(0,V.Z)(p,eU);return n||!u?(o=t.key,l=(i=t.props).children,c=i.value,s=(0,V.Z)(i,eX),(0,S.Z)({key:o,value:void 0!==c?c:o,children:l},s)):(0,S.Z)((0,S.Z)({key:"__RC_SELECT_GRP__".concat(null===d?r:d,"__"),label:d},f),{},{options:e(m)})}).filter(function(e){return e})}(k));var t=new Map,n=new Map,r=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(o){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=eT(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return!function e(t,n){t.forEach(function(t){if(!n&&c in t){var i=t[s];void 0===i&&r&&(i=t.label),o.push({key:eP(t,o.length),group:!0,data:t,label:i}),e(t[c],!0)}else{var u=t[l];o.push({key:eP(t,o.length),groupOption:n,data:t,label:t[a],value:u})}})}(e,!1),o}(eE,{fieldNames:q,childrenAsData:J})},[eE,q,J]),eC=function(e){var t=ec(e);if(ep(t),X&&(t.length!==eg.length||t.some(function(e,t){var n;return(null===(n=eg[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=A?t:t.map(function(e){return e.value}),r=t.map(function(e){return eH(eh(e.value))});X(Y?n:n[0],Y?r:r[0])}},eI=a.useState(null),eO=(0,_.Z)(eI,2),eZ=eO[0],eR=eO[1],ek=a.useState(0),eM=(0,_.Z)(ek,2),ez=eM[0],eN=eM[1],eD=void 0!==M?M:"combobox"!==u,ej=a.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source;eN(t),p&&"combobox"===u&&null!==e&&"keyboard"===(void 0===r?"keyboard":r)&&eR(String(e))},[p,u]),e_=function(e,t,n){var r=function(){var t,n=eh(e);return[A?{label:null==n?void 0:n[q.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,eH(n)]};if(t&&x){var o=r(),i=(0,_.Z)(o,2);x(i[0],i[1])}else if(!t&&y&&"clear"!==n){var a=r(),l=(0,_.Z)(a,2);y(l[0],l[1])}},eY=eG(function(e,t){var n=!Y||t.selected;eC(n?Y?[].concat((0,W.Z)(eg),[e]):[e]:eg.filter(function(t){return t.value!==e})),e_(e,n),"combobox"===u?eR(""):(!eB||$)&&(er(""),eR(""))}),eJ=a.useMemo(function(){var e=!1!==N&&!1!==w;return(0,S.Z)((0,S.Z)({},eo),{},{flattenOptions:ew,onActiveValue:ej,defaultActiveFirstOption:eD,onSelect:eY,menuItemSelectedIcon:z,rawValues:eb,fieldNames:q,virtual:e,direction:P,listHeight:H,listItemHeight:j,childrenAsData:J})},[eo,ew,ej,eD,eY,z,eb,q,N,w,H,j,J]);return a.createElement(tr.Provider,{value:eJ},a.createElement(eL,(0,i.Z)({},U,{id:G,prefixCls:void 0===d?"rc-select":d,ref:t,omitDomProps:tc,mode:u,displayValues:ev,onDisplayValuesChange:function(e,t){eC(e);var n=t.type,r=t.values;("remove"===n||"clear"===n)&&r.forEach(function(e){e_(e.value,!1,n)})},direction:P,searchValue:en,onSearch:function(e,t){if(er(e),eR(null),"submit"===t.source){var n=(e||"").trim();n&&(eC(Array.from(new Set([].concat((0,W.Z)(eb),[n])))),e_(n,!0),er(""));return}"blur"!==t.source&&("combobox"===u&&eC(e),null==h||h(e))},autoClearSearchValue:$,onSearchSplit:function(e){var t=e;"tags"!==u&&(t=e.map(function(e){var t=ea.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,W.Z)(eb),(0,W.Z)(t))));eC(n),n.forEach(function(e){e_(e,!0)})},dropdownMatchSelectWidth:w,OptionList:ta,emptyOptions:!ew.length,activeValue:eZ,activeDescendantId:"".concat(G,"_list_").concat(ez)})))});ts.Option=eJ,ts.OptGroup=eY;var tu=n(17583),td=n(80716);let tp=(e,t)=>t||e;var tm=n(20538),tf=n(57389),tg=n(40650),th=n(70721);let tv=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var tb=(0,tg.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:n}=e,r=(0,th.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[tv(r)]}),tS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let t$=a.createElement(()=>{let[,e]=(0,H.dQ)(),t=new tf.C(e.colorBgBase),n=t.toHsl().l<.5?{opacity:.65}:{};return a.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.67)"},a.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),a.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),a.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),a.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),a.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),a.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),a.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},a.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),a.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),tx=a.createElement(()=>{let[,e]=(0,H.dQ)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:l,contentColor:c}=(0,a.useMemo)(()=>({borderColor:new tf.C(t).onBackground(o).toHexShortString(),shadowColor:new tf.C(n).onBackground(o).toHexShortString(),contentColor:new tf.C(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:i},a.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),a.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},null),ty=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=t$,description:i,children:l,imageStyle:c}=e,s=tS(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);let{getPrefixCls:u,direction:d}=a.useContext(N.E_),p=u("empty",r),[m,f]=tb(p),[g]=(0,A.Z)("Empty"),h=void 0!==i?i:null==g?void 0:g.description,b="string"==typeof h?h:"empty",S=null;return S="string"==typeof o?a.createElement("img",{alt:b,src:o}):o,m(a.createElement("div",Object.assign({className:v()(f,p,{[`${p}-normal`]:o===tx,[`${p}-rtl`]:"rtl"===d},t,n)},s),a.createElement("div",{className:`${p}-image`,style:c},S),h&&a.createElement("div",{className:`${p}-description`},h),l&&a.createElement("div",{className:`${p}-footer`},l)))};ty.PRESENTED_IMAGE_DEFAULT=t$,ty.PRESENTED_IMAGE_SIMPLE=tx;var tE=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,a.useContext)(N.E_),r=n("empty");switch(t){case"Table":case"List":return a.createElement(ty,{image:ty.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return a.createElement(ty,{image:ty.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return a.createElement(ty,null)}},tw=n(21440),tC=n(12381),tI=n(98663),tO=n(75872),tZ=n(11717),tR=n(29138);let tk=new tZ.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),tM=new tZ.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),tz=new tZ.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),tN=new tZ.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),tP=new tZ.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),tT=new tZ.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),tH=new tZ.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),tD=new tZ.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),tj={"slide-up":{inKeyframes:tk,outKeyframes:tM},"slide-down":{inKeyframes:tz,outKeyframes:tN},"slide-left":{inKeyframes:tP,outKeyframes:tT},"slide-right":{inKeyframes:tH,outKeyframes:tD}},tB=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=tj[t];return[(0,tR.R)(r,o,i,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},tL=new tZ.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tA=new tZ.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),tW=new tZ.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),t_=new tZ.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tV=new tZ.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tK=new tZ.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tF=new tZ.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tX=new tZ.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),tU={"move-up":{inKeyframes:tF,outKeyframes:tX},"move-down":{inKeyframes:tL,outKeyframes:tA},"move-left":{inKeyframes:tW,outKeyframes:t_},"move-right":{inKeyframes:tV,outKeyframes:tK}},tG=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=tU[t];return[(0,tR.R)(r,o,i,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},tY=e=>{let{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}};var tJ=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,tI.Wf)(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,[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft - `]:{animationName:tk},[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft - `]:{animationName:tz},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:tM},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:tN},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},tY(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(Object.assign({flex:"auto"},tI.vS),{"> *":Object.assign({},tI.vS)}),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},tB(e,"slide-up"),tB(e,"slide-down"),tG(e,"move-up"),tG(e,"move-down")]};let tQ=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e,o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function tq(e,t){let{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=tQ(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-2}px 4px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[` - &${n}-show-arrow ${n}-selector, - &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:`${i-2*e.lineWidth}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,tI.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,[` - &-input, - &-mirror - `]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,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}`}}}}var t0=e=>{let{componentCls:t}=e,n=(0,th.TS)(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,th.TS)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=tQ(e);return[tq(e),tq(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},tq(r,"lg")]};function t1(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},(0,tI.Wf)(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` - ${n}-selection-item, - ${n}-selection-placeholder - `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[`&:after,${n}-selection-item:after,${n}-selection-placeholder:after`]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${n}-show-arrow ${n}-selection-item, - &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${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}px`,"&:after":{display:"none"}}}}}}}let t2=e=>{let{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},t3=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},t6=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},t4=e=>{let{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,tI.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},t2(e)),t6(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},tI.vS),{"> *":Object.assign({lineHeight:"inherit"},tI.vS)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},tI.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,tI.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},t5=e=>{let{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},t4(e),function(e){let{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[t1(e),t1((0,th.TS)(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}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:1.5*e.fontSize}}}},t1((0,th.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),t0(e),tJ(e),{[`${t}-rtl`]:{direction:"rtl"}},t3(t,(0,th.TS)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),t3(`${t}-status-error`,(0,th.TS)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),t3(`${t}-status-warning`,(0,th.TS)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,tO.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var t9=(0,tg.Z)("Select",(e,t)=>{let{rootPrefixCls:n}=t,r=(0,th.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[t5(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let t7=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible"};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]})}};var t8=n(95131),ne=n(56222),nt=n(31533),nn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},nr=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:nn}))}),no=n(75710),ni={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},na=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:ni}))}),nl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let nc="SECRET_COMBOBOX_MODE_DO_NOT_USE",ns=a.forwardRef((e,t)=>{let n;var r,{prefixCls:o,bordered:i=!0,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:p=256,placement:m,listItemHeight:f=24,size:g,disabled:h,notFoundContent:b,status:S,showArrow:$,builtinPlacements:x,dropdownMatchSelectWidth:y,popupMatchSelectWidth:E,direction:w}=e,C=nl(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction"]);let{getPopupContainer:I,getPrefixCls:O,renderEmpty:Z,direction:R,virtual:k,popupMatchSelectWidth:M,popupOverflow:z,select:T}=a.useContext(N.E_),H=O("select",o),D=O(),j=null!=w?w:R,{compactSize:B,compactItemClassnames:L}=(0,tC.ri)(H,j),[A,W]=t9(H),_=a.useMemo(()=>{let{mode:e}=C;return"combobox"===e?void 0:e===nc?"combobox":e},[C.mode]),V=null==$||$,K=null!==(r=null!=E?E:y)&&void 0!==r?r:M,{status:F,hasFeedback:X,isFormItemInput:U,feedbackIcon:G}=a.useContext(tw.aM),Y=tp(F,S);n=void 0!==b?b:"combobox"===_?null:(null==Z?void 0:Z("Select"))||a.createElement(tE,{componentName:"Select"});let{suffixIcon:J,itemIcon:Q,removeIcon:q,clearIcon:ee}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:l,hasFeedback:c,prefixCls:s,showArrow:u,feedbackIcon:d}=e,p=null!=n?n:a.createElement(ne.Z,null),m=e=>a.createElement(a.Fragment,null,!1!==u&&e,c&&d),f=null;if(void 0!==t)f=m(t);else if(i)f=m(a.createElement(no.Z,{spin:!0}));else{let e=`${s}-suffix`;f=t=>{let{open:n,showSearch:r}=t;return n&&r?m(a.createElement(na,{className:e})):m(a.createElement(nr,{className:e}))}}let g=null;return g=void 0!==r?r:l?a.createElement(t8.Z,null):null,{clearIcon:p,suffixIcon:f,itemIcon:g,removeIcon:void 0!==o?o:a.createElement(nt.Z,null)}}(Object.assign(Object.assign({},C),{multiple:"multiple"===_||"tags"===_,hasFeedback:X,feedbackIcon:G,showArrow:V,prefixCls:H})),et=(0,eq.Z)(C,["suffixIcon","itemIcon"]),en=v()(u||d,{[`${H}-dropdown-${j}`]:"rtl"===j},c,W),er=(0,P.Z)(e=>{var t;return null!==(t=null!=B?B:g)&&void 0!==t?t:e}),eo=a.useContext(tm.Z),ei=v()({[`${H}-lg`]:"large"===er,[`${H}-sm`]:"small"===er,[`${H}-rtl`]:"rtl"===j,[`${H}-borderless`]:!i,[`${H}-in-form-item`]:U},v()({[`${H}-status-success`]:"success"===Y,[`${H}-status-warning`]:"warning"===Y,[`${H}-status-error`]:"error"===Y,[`${H}-status-validating`]:"validating"===Y,[`${H}-has-feedback`]:X}),L,l,c,W),ea=a.useMemo(()=>void 0!==m?m:"rtl"===j?"bottomRight":"bottomLeft",[m,j]),el=x||t7(z);return A(a.createElement(ts,Object.assign({ref:t,virtual:k,showSearch:null==T?void 0:T.showSearch},et,{dropdownMatchSelectWidth:K,builtinPlacements:el,transitionName:(0,td.mL)(D,(0,td.q0)(m),C.transitionName),listHeight:p,listItemHeight:f,mode:_,prefixCls:H,placement:ea,direction:j,inputIcon:J,menuItemSelectedIcon:Q,removeIcon:q,clearIcon:ee,notFoundContent:n,className:ei,getPopupContainer:s||I,dropdownClassName:en,showArrow:X||V,disabled:null!=h?h:eo})))});ns.SECRET_COMBOBOX_MODE_DO_NOT_USE=nc,ns.Option=eJ,ns.OptGroup=eY,ns._InternalPanelDoNotUseOrYouWillBeFired=function(e){let{prefixCls:t,style:n}=e,i=a.useRef(null),[l,c]=a.useState(0),[s,u]=a.useState(0),[d,p]=(0,F.Z)(!1,{value:e.open}),{getPrefixCls:m}=a.useContext(N.E_),f=m("select",t);a.useEffect(()=>{if(p(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;c(t.offsetHeight+8),u(t.offsetWidth)}),t=setInterval(()=>{var n;let o=r?`.${r(f)}`:`.${f}-dropdown`,a=null===(n=i.current)||void 0===n?void 0:n.querySelector(o);a&&(clearInterval(t),e.observe(a))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let g=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:d,visible:d,getPopupContainer:()=>i.current});return o&&(g=o(g)),a.createElement(tu.ZP,{theme:{token:{motion:!1}}},a.createElement("div",{ref:i,style:{paddingBottom:l,position:"relative",minWidth:s}},a.createElement(ns,Object.assign({},g))))};let nu=e=>a.createElement(ns,Object.assign({},e,{showSearch:!0,size:"small"})),nd=e=>a.createElement(ns,Object.assign({},e,{showSearch:!0,size:"middle"}));nu.Option=ns.Option,nd.Option=ns.Option;let np=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),nm=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),nf=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),ng=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},nm((0,th.TS)(e,{inputBorderHoverColor:e.colorBorder})))}),nh=e=>{let{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},nv=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),nb=(e,t)=>{let{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:l,colorWarningBorderHover:c}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},nf((0,th.TS)(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},nf((0,th.TS)(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},nS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},np(e.colorTextPlaceholder)),{"&:hover":Object.assign({},nm(e)),"&:focus, &-focused":Object.assign({},nf(e)),"&-disabled, &[disabled]":Object.assign({},ng(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},nh(e)),"&-sm":Object.assign({},nv(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),n$=e=>{let{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},nh(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},nv(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,tI.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${t}-affix-wrapper, - & > ${t}-number-affix-wrapper, - & > ${n}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child > ${n}-select-selector, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child > ${n}-select-selector, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},nx=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,tI.Wf)(e)),nS(e)),nb(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ny=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},nE=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nS(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},nm(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ny(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),nb(e,`${t}-affix-wrapper`))}},nw=e=>{let{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,tI.Wf)(e)),n$(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},ng(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}}}})}},nC=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function nI(e){return(0,th.TS)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}let nO=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};(0,tg.Z)("Input",e=>{let t=nI(e);return[nx(t),nO(t),nE(t),nw(t),nC(t),(0,tO.c)(t)]});let nZ=e=>{let{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}-mini`]:{[` - &:hover ${t}-item:not(${t}-item-active), - &:active ${t}-item:not(${t}-item-active), - &:hover ${t}-item-link, - &:active ${t}-item-link - `]:{backgroundColor:"transparent"}},[`${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"}}}}}},nR=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini ${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}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},nv(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},nk=e=>{let{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,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}px`}}},[`&${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}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${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}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},nM=e=>{let{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}},"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,tI.oN)(e))},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,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}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,tI.oN)(e)),[`&: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}px`,verticalAlign:"top",input:Object.assign(Object.assign({},nS(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},nz=e=>{let{componentCls:t}=e;return{[`${t}-item`]:Object.assign(Object.assign({display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},(0,tI.Qy)(e)),{"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},nN=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,tI.Wf)(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.itemSize-2}px`,verticalAlign:"middle"}}),nz(e)),nM(e)),nk(e)),nR(e)),nZ(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"}}},nP=e=>{let{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &: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}-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}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var nT=(0,tg.Z)("Pagination",e=>{let t=(0,th.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},nI(e));return[nN(t),e.wireframe&&nP(t)]},e=>({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})),nH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},nD=e=>{var{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,size:i,locale:l,selectComponentClass:c,responsive:u,showSizeChanger:p}=e,f=nH(e,["prefixCls","selectPrefixCls","className","rootClassName","size","locale","selectComponentClass","responsive","showSizeChanger"]);let{xs:h}=L(u),{getPrefixCls:b,direction:S,pagination:$={}}=a.useContext(N.E_),x=b("pagination",t),[y,E]=nT(x),w=null!=p?p:$.showSizeChanger,C=a.useMemo(()=>{let e=a.createElement("span",{className:`${x}-item-ellipsis`},"•••"),t=a.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===S?a.createElement(g,null):a.createElement(m,null)),n=a.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===S?a.createElement(m,null):a.createElement(g,null)),r=a.createElement("a",{className:`${x}-item-link`},a.createElement("div",{className:`${x}-item-container`},"rtl"===S?a.createElement(d,{className:`${x}-item-link-icon`}):a.createElement(s,{className:`${x}-item-link-icon`}),e)),o=a.createElement("a",{className:`${x}-item-link`},a.createElement("div",{className:`${x}-item-container`},"rtl"===S?a.createElement(s,{className:`${x}-item-link-icon`}):a.createElement(d,{className:`${x}-item-link-icon`}),e));return{prevIcon:t,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:o}},[S,x]),[I]=(0,A.Z)("Pagination",z.Z),O=Object.assign(Object.assign({},I),l),Z=(0,P.Z)(i),R="small"===Z||!!(h&&!Z&&u),k=b("select",n),T=v()({[`${x}-mini`]:R,[`${x}-rtl`]:"rtl"===S},r,o,E);return y(a.createElement(M,Object.assign({},C,f,{prefixCls:x,selectPrefixCls:k,className:T,selectComponentClass:c||(R?nu:nd),locale:O,showSizeChanger:w})))}},23910:function(e,t,n){n.d(t,{Z:function(){return O}});var r=n(8683),o=n.n(r),i=n(86006);let a=e=>e?"function"==typeof e?e():e:null;var l=n(80716),c=n(79746),s=n(15241),u=n(99753),d=n(98663),p=n(87270),m=n(20798),f=n(83688),g=n(40650),h=n(70721);let v=e=>{let{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,marginXS:u,colorBgElevated:p,popoverBg:f}=e;return[{[t]:Object.assign(Object.assign({},(0,d.Wf)(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":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},(0,m.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},b=e=>{let{componentCls:t}=e;return{[t]:f.i.map(n=>{let r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},S=e=>{let{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:c,padding:s}=e,u=a-Math.round(l*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${s}px ${u/2-n}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${s}px`}}}};var $=(0,g.Z)("Popover",e=>{let{colorBgElevated:t,colorText:n,wireframe:r}=e,o=(0,h.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[v(o),b(o),r&&S(o),(0,p._y)(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]}),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y=(e,t,n)=>{if(t||n)return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${e}-title`},a(t)),i.createElement("div",{className:`${e}-inner-content`},a(n)))};function E(e){let{hashId:t,prefixCls:n,className:r,style:a,placement:l="top",title:c,content:s,children:d}=e;return i.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${l}`,r),style:a},i.createElement("div",{className:`${n}-arrow`}),i.createElement(u.G,Object.assign({},e,{className:t,prefixCls:n}),d||y(n,c,s)))}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let C=e=>{let{title:t,content:n,prefixCls:r}=e;return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${r}-title`},a(t)),i.createElement("div",{className:`${r}-inner-content`},a(n)))},I=i.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:a,overlayClassName:u,placement:d="top",trigger:p="hover",mouseEnterDelay:m=.1,mouseLeaveDelay:f=.1,overlayStyle:g={}}=e,h=w(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:v}=i.useContext(c.E_),b=v("popover",n),[S,x]=$(b),y=v(),E=o()(u,x);return S(i.createElement(s.Z,Object.assign({placement:d,trigger:p,mouseEnterDelay:m,mouseLeaveDelay:f,overlayStyle:g},h,{prefixCls:b,overlayClassName:E,ref:t,overlay:r||a?i.createElement(C,{prefixCls:b,title:r,content:a}):null,transitionName:(0,l.mL)(y,"zoom-big",h.transitionName),"data-popover-inject":!0})))});I._InternalPanelDoNotUseOrYouWillBeFired=function(e){let{prefixCls:t}=e,n=x(e,["prefixCls"]),{getPrefixCls:r}=i.useContext(c.E_),o=r("popover",t),[a,l]=$(o);return a(i.createElement(E,Object.assign({},n,{prefixCls:o,hashId:l})))};var O=I}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-0f2d3429fd2ed723.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-0f2d3429fd2ed723.js new file mode 100644 index 000000000..3247c01ac --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-0f2d3429fd2ed723.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{40687:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var r=n(9268),a=n(56008),i=n(86006),c=n(78635),s=n(90545),o=n(80937),l=n(44334),d=n(311),h=n(22046),u=n(83192),g=n(23910),f=n(29766),j=n(78915);t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,c.tv)(),n=(0,a.useSearchParams)().get("spacename"),m=(0,a.useSearchParams)().get("documentid"),[p,x]=(0,i.useState)(0),[P,b]=(0,i.useState)(0),[S,Z]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await (0,j.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:m,page:1,page_size:20});e.success&&(Z(e.data.data),x(e.data.total),b(e.data.page))})()},[]),(0,r.jsxs)(s.Z,{className:"p-4",sx:{"&":{height:"90%"}},children:[(0,r.jsx)(o.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,r.jsxs)(l.Z,{"aria-label":"breadcrumbs",children:[(0,r.jsx)(d.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,r.jsx)(d.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,r.jsx)(h.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,r.jsx)(s.Z,{className:"p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:S.length?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(u.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Content"}),(0,r.jsx)("th",{children:"Meta Data"})]})}),(0,r.jsx)("tbody",{children:S.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e.doc_name}),(0,r.jsx)("td",{children:(0,r.jsx)(g.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,r.jsx)("td",{children:(0,r.jsx)(g.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]})}):(0,r.jsx)(r.Fragment,{})}),(0,r.jsx)(o.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,r.jsx)(f.Z,{defaultPageSize:20,showSizeChanger:!1,current:P,total:p,onChange:async e=>{let t=await (0,j.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:m,page:e,page_size:20});t.success&&(Z(t.data.data),x(t.data.total),b(t.data.page))},hideOnSinglePage:!0})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return u},Ej:function(){return g}});var r=n(21628),a=n(24214),i=n(52040);let c=a.Z.create({baseURL:i.env.API_BASE_URL});c.defaults.timeout=1e4,c.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=n(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return c.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let n=l(t);return c.post("/api"+e,{body:n,headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},u=(e,t)=>(l(t),c.post(e,t,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})),g=(e,t)=>c.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,877,759,192,409,767,207,253,769,744],function(){return e(e.s=40687)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.js deleted file mode 100644 index 871f41eae..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{40687:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var r=n(9268),a=n(56008),i=n(86006),c=n(78635),s=n(90545),o=n(80937),l=n(44334),d=n(311),h=n(22046),u=n(83192),g=n(23910),f=n(1031),j=n(78915);t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,c.tv)(),n=(0,a.useSearchParams)().get("spacename"),m=(0,a.useSearchParams)().get("documentid"),[p,x]=(0,i.useState)(0),[P,b]=(0,i.useState)(0),[S,Z]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await (0,j.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:m,page:1,page_size:20});e.success&&(Z(e.data.data),x(e.data.total),b(e.data.page))})()},[]),(0,r.jsxs)(s.Z,{className:"p-4",sx:{"&":{height:"90%"}},children:[(0,r.jsx)(o.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,r.jsxs)(l.Z,{"aria-label":"breadcrumbs",children:[(0,r.jsx)(d.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,r.jsx)(d.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,r.jsx)(h.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,r.jsx)(s.Z,{className:"p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:S.length?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(u.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Content"}),(0,r.jsx)("th",{children:"Meta Data"})]})}),(0,r.jsx)("tbody",{children:S.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e.doc_name}),(0,r.jsx)("td",{children:(0,r.jsx)(g.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,r.jsx)("td",{children:(0,r.jsx)(g.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]})}):(0,r.jsx)(r.Fragment,{})}),(0,r.jsx)(o.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,r.jsx)(f.Z,{defaultPageSize:20,showSizeChanger:!1,current:P,total:p,onChange:async e=>{let t=await (0,j.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:m,page:e,page_size:20});t.success&&(Z(t.data.data),x(t.data.total),b(t.data.page))},hideOnSinglePage:!0})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return u},Ej:function(){return g}});var r=n(21628),a=n(24214),i=n(52040);let c=a.Z.create({baseURL:i.env.API_BASE_URL});c.defaults.timeout=1e4,c.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=n(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return c.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let n=l(t);return c.post("/api"+e,{body:n,headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},u=(e,t)=>(l(t),c.post(e,t,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})),g=(e,t)=>c.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,877,759,192,409,767,957,253,769,744],function(){return e(e.s=40687)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-15bd54399f756d3e.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-15bd54399f756d3e.js new file mode 100644 index 000000000..2c7d1dce2 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-15bd54399f756d3e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{42414:function(e,t,n){Promise.resolve().then(n.bind(n,87278))},87278:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return K}});var s=n(9268),a=n(56008),i=n(86006),r=n(50645),o=n(5737),l=n(78635),c=n(80937),d=n(44334),x=n(311),u=n(22046),g=n(53113),h=n(83192),m=n(58927),p=n(81528),j=n(90545),Z=n(35086),f=n(866),v=n(28086),y=n(65326),b=n.n(y),w=n(72474),P=n(59534),k=n(78141),_=n(68949),S=n(73220),C=n(50157),R=n(23910),z=n(21628),B=n(29766),L=n(78915),T=n(89081),D=n(59970),F=n(30929),N=n(79214),E=n(99011),O=n(62483),A=n(76394),I=n.n(A),U=e=>{var t,n,a,r,l,d,x,u,h,m,v,y,b,w,P,k,_,S;let{spaceName:C}=e,[B,A]=(0,i.useState)(!1),[U,V]=(0,i.useState)({}),{data:M}=(0,T.Z)(()=>(0,L.PR)("/knowledge/".concat(C,"/arguments")),{onSuccess(e){V(e.data)}}),W=[{key:"Embedding",label:(0,s.jsxs)(j.Z,{children:[(0,s.jsx)(N.Z,{sx:{marginRight:"5px"}}),"Embedding"]}),children:(0,s.jsxs)(j.Z,{children:[(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["topk",(0,s.jsx)(R.Z,{content:"the top k vectors based on similarity score",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(t=M.data)||void 0===t?void 0:null===(n=t.embedding)||void 0===n?void 0:n.topk)||"",onChange:e=>{U.embedding.topk=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["recall_score",(0,s.jsx)(R.Z,{content:"Set a threshold score for the retrieval of similar vectors",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:""+(null==M?void 0:null===(a=M.data)||void 0===a?void 0:null===(r=a.embedding)||void 0===r?void 0:r.recall_score)||"",onChange:e=>{U.embedding.recall_score=e.target.value,V({...U})},disabled:!0})})]})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["recall_type",(0,s.jsx)(R.Z,{content:"recall type",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(l=M.data)||void 0===l?void 0:null===(d=l.embedding)||void 0===d?void 0:d.recall_type)||"",onChange:e=>{U.embedding.recall_type=e.target.value,V({...U})},disabled:!0})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["model",(0,s.jsx)(R.Z,{content:"A model used to create vector representations of text or other data.The model only supports the Hugging Face specification(https://huggingface.co).",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(x=M.data)||void 0===x?void 0:null===(u=x.embedding)||void 0===u?void 0:u.model)||"",onChange:e=>{U.embedding.model=e.target.value,V({...U})},disabled:!0,startDecorator:(0,s.jsx)(I(),{src:"/huggingface_logo.svg",alt:"huggingface logo",width:20,height:20})})})]})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["chunk_size",(0,s.jsx)(R.Z,{content:"The size of the data chunks used in processing",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(h=M.data)||void 0===h?void 0:null===(m=h.embedding)||void 0===m?void 0:m.chunk_size)||"",onChange:e=>{U.embedding.chunk_size=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["chunk_overlap",(0,s.jsx)(R.Z,{content:"The amount of overlap between adjacent data chunks",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(v=M.data)||void 0===v?void 0:null===(y=v.embedding)||void 0===y?void 0:y.chunk_overlap)||"",onChange:e=>{U.embedding.chunk_overlap=e.target.value,V({...U})}})})]})]})]})},{key:"Prompt",label:(0,s.jsxs)(j.Z,{children:[(0,s.jsx)(E.Z,{sx:{marginRight:"5px"}}),"Prompt"]}),children:(0,s.jsxs)(j.Z,{sx:{maxHeight:"600px",overflow:"auto","&::-webkit-scrollbar":{display:"none"}},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",marginTop:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["scene",(0,s.jsx)(R.Z,{content:"A contextual parameter used to define the setting or environment in which the prompt is being used",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(f.Z,{defaultValue:(null==M?void 0:null===(b=M.data)||void 0===b?void 0:null===(w=b.prompt)||void 0===w?void 0:w.scene)||"",onChange:e=>{U.prompt.scene=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["template",(0,s.jsx)(R.Z,{content:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(f.Z,{defaultValue:(null==M?void 0:null===(P=M.data)||void 0===P?void 0:null===(k=P.prompt)||void 0===k?void 0:k.template)||"",onChange:e=>{U.prompt.template=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["max_token",(0,s.jsx)(R.Z,{content:"The maximum number of tokens or words allowed in a prompt",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(_=M.data)||void 0===_?void 0:null===(S=_.prompt)||void 0===S?void 0:S.max_token)||"",onChange:e=>{U.prompt.max_token=e.target.value,V({...U})}})})]})]})}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.Z,{variant:"outlined",onClick:()=>A(!0),children:[(0,s.jsx)(F.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Arguments"]}),(0,s.jsx)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:B,onClose:()=>A(!1),children:(0,s.jsxs)(o.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,s.jsx)(O.Z,{defaultActiveKey:"Embedding",items:W}),(0,s.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",sx:{marginTop:"20px",marginBottom:"20px"},children:(0,s.jsx)(g.Z,{variant:"outlined",onClick:()=>{(0,L.PR)("/knowledge/".concat(C,"/argument/save"),{argument:JSON.stringify(U)}).then(e=>{e.success?(window.location.reload(),z.ZP.success("success")):z.ZP.error(e.err_msg||"failed")})},children:"Submit"})})]})})]})};let{Dragger:V}=C.default,M=(0,r.Z)(o.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),W=["Choose a Datasource type","Setup the Datasource"],H=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var K=()=>{let e=(0,a.useRouter)(),t=(0,a.useSearchParams)().get("name"),{mode:n}=(0,l.tv)(),[r,y]=(0,i.useState)(!1),[C,T]=(0,i.useState)(0),[D,F]=(0,i.useState)(""),[N,E]=(0,i.useState)([]),[O,A]=(0,i.useState)(""),[I,K]=(0,i.useState)(""),[Y,J]=(0,i.useState)(""),[G,X]=(0,i.useState)(""),[q,Q]=(0,i.useState)(null),[$,ee]=(0,i.useState)(0),[et,en]=(0,i.useState)(0),[es,ea]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{(async function(){let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))})()},[]),(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,s.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,s.jsx)(x.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,s.jsx)(u.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,s.jsxs)(c.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(g.Z,{variant:"outlined",onClick:async()=>{var n,s;let a=await (0,L.PR)("/api/v1/chat/dialogue/new",{chat_mode:"chat_knowledge"});(null==a?void 0:a.success)&&(null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.conv_uid)&&e.push("/chat?id=".concat(null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.conv_uid,"&scene=chat_knowledge&spaceNameOriginal=").concat(t))},sx:{marginRight:"20px",backgroundColor:"rgb(39, 155, 255) !important",color:"white",border:"none"},children:[(0,s.jsx)(S.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Chat"]}),(0,s.jsx)(g.Z,{variant:"outlined",onClick:()=>y(!0),sx:{marginRight:"20px"},children:"+ Add Datasource"}),(0,s.jsx)(U,{spaceName:t})]})]}),N.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(h.Z,{color:"primary",variant:"plain",size:"sm",sx:{"& tbody tr: hover":{backgroundColor:"light"===n?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"},"& tr > *:last-child":{textAlign:"right"}},children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Name"}),(0,s.jsx)("th",{children:"Type"}),(0,s.jsx)("th",{children:"Size"}),(0,s.jsx)("th",{children:"Last Synch"}),(0,s.jsx)("th",{children:"Status"}),(0,s.jsx)("th",{children:"Result"}),(0,s.jsx)("th",{style:{width:"30%"},children:"Operation"})]})}),(0,s.jsx)("tbody",{children:N.map(n=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:n.doc_name}),(0,s.jsx)("td",{children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"neutral",sx:{opacity:.5},children:n.doc_type})}),(0,s.jsxs)("td",{children:[n.chunk_size," chunks"]}),(0,s.jsx)("td",{children:b()(n.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,s.jsx)("td",{children:(0,s.jsx)(m.Z,{size:"sm",sx:{opacity:.5},variant:"solid",color:function(){switch(n.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:n.status})}),(0,s.jsx)("td",{children:"TODO"===n.status||"RUNNING"===n.status?"":"FINISHED"===n.status?(0,s.jsx)(R.Z,{content:n.result,trigger:"hover",children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,s.jsx)(R.Z,{content:n.result,trigger:"hover",children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,s.jsx)("td",{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:async()=>{let e=await (0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[n.id]});e.success?z.ZP.success("success"):z.ZP.error(e.err_msg||"failed")},children:["Synch",(0,s.jsx)(k.Z,{})]}),(0,s.jsx)(g.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(n.id))},children:"Details"}),(0,s.jsxs)(g.Z,{variant:"outlined",size:"sm",color:"danger",onClick:async()=>{let e=await (0,L.PR)("/knowledge/".concat(t,"/document/delete"),{doc_name:n.doc_name});if(e.success){z.ZP.success("success");let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")},children:["Delete",(0,s.jsx)(_.Z,{})]})]})})]},n.id))})]}),(0,s.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,s.jsx)(B.Z,{defaultPageSize:20,showSizeChanger:!1,current:et,total:$,onChange:async e=>{let n=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});n.success&&(E(n.data.data),ee(n.data.total),en(n.data.page))},hideOnSinglePage:!0})})]}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:r,onClose:()=>y(!1),children:(0,s.jsxs)(o.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,s.jsx)(j.Z,{sx:{width:"100%"},children:(0,s.jsx)(c.Z,{spacing:2,direction:"row",children:W.map((e,t)=>(0,s.jsxs)(M,{sx:{fontWeight:C===t?"bold":"",color:C===t?"#2AA3FF":""},children:[t(0,s.jsxs)(o.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{F(e.type),T(1)},children:[(0,s.jsx)(o.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,s.jsx)(o.Z,{children:e.subTitle})]},e.type))})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.Z,{sx:{margin:"30px auto"},children:["Name:",(0,s.jsx)(Z.ZP,{placeholder:"Please input the name",onChange:e=>K(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===D?(0,s.jsxs)(s.Fragment,{children:["Web Page URL:",(0,s.jsx)(Z.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>A(e.target.value)})]}):"file"===D?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(V,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){Q(null),K("");return}Q(e.file.originFileObj),K(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,s.jsx)("p",{className:"ant-upload-drag-icon",children:(0,s.jsx)(w.Z,{})}),(0,s.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,s.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,s.jsxs)(s.Fragment,{children:["Text Source(Optional):",(0,s.jsx)(Z.ZP,{placeholder:"Please input the text source",onChange:e=>J(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,s.jsx)(f.Z,{onChange:e=>X(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,s.jsx)(u.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,s.jsx)(v.Z,{checked:es,onChange:e=>ea(e.target.checked)}),children:"Synch:"})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,s.jsx)(g.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>T(0),children:"< Back"}),(0,s.jsx)(g.Z,{variant:"outlined",onClick:async()=>{if(""===I){z.ZP.error("Please input the name");return}if("webPage"===D){if(""===O){z.ZP.error("Please input the Web Page URL");return}let e=await (0,L.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:I,content:O,doc_type:"URL"});if(e.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")}else if("file"===D){if(!q){z.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",I),e.append("doc_file",q),e.append("doc_type","DOCUMENT");let n=await (0,L.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(n.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[n.data]}),n.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(n.err_msg||"failed")}else{if(""===G){z.ZP.error("Please input the text");return}let e=await (0,L.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:I,source:Y,content:G,doc_type:"TEXT"});if(e.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return x},PR:function(){return u},Ej:function(){return g}});var s=n(21628),a=n(24214),i=n(52040);let r=a.Z.create({baseURL:i.env.API_BASE_URL});r.defaults.timeout=1e4,r.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=n(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return r.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},x=(e,t)=>{let n=c(t);return r.post("/api"+e,{body:n,headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>(c(t),r.post(e,t,{headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})),g=(e,t)=>r.post(e,t).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,550,877,230,759,192,81,86,409,394,790,946,767,207,872,388,253,769,744],function(){return e(e.s=42414)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.js deleted file mode 100644 index 2c1ea997b..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{51499:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),a=i(9268),o=(0,r.default)((0,a.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");t.Z=o},44066:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),a=i(9268),o=(0,r.default)((0,a.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");t.Z=o},78141:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),a=i(9268),o=(0,r.default)((0,a.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=o},73220:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),a=i(9268),o=(0,r.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"}),"Chat");t.Z=o},59970:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),a=i(9268),o=(0,r.default)((0,a.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");t.Z=o},42414:function(e,t,i){Promise.resolve().then(i.bind(i,36906))},36906:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return ed}});var n=i(9268),r=i(56008),a=i(86006),o=i(50645),s=i(5737),l=i(78635),d=i(80937),c=i(44334),h=i(311),x=i(22046),p=i(53113),u=i(83192),m=i(46750),g=i(40431),v=i(89791),f=i(47562),j=i(46319),Z=i(53832),C=i(49657),b=i(88930),y=i(47093),w=i(18587);function P(e){return(0,w.d6)("MuiChip",e)}let S=(0,w.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),k=a.createContext({disabled:void 0,variant:void 0,color:void 0});var _=i(326);let z=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],R=e=>{let{disabled:t,size:i,color:n,clickable:r,variant:a,focusVisible:o}=e,s={root:["root",t&&"disabled",n&&`color${(0,Z.Z)(n)}`,i&&`size${(0,Z.Z)(i)}`,a&&`variant${(0,Z.Z)(a)}`,r&&"clickable"],action:["action",t&&"disabled",o&&"focusVisible"],label:["label",i&&`label${(0,Z.Z)(i)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,P,{})},D=(0,o.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,a;return[(0,g.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${S.disabled}`]:{color:null==(i=e.variants[`${t.variant}Disabled`])||null==(i=i[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(a=e.variants[t.variant])||null==(a=a[t.color])?void 0:a.color}]:[null==(n=e.variants[t.variant])?void 0:n[t.color],{[`&.${S.disabled}`]:null==(r=e.variants[`${t.variant}Disabled`])?void 0:r[t.color]}]]}),I=(0,o.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,g.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),B=(0,o.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var i,n,r,a;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(i=e.variants[t.variant])?void 0:i[t.color],{"&:hover":null==(n=e.variants[`${t.variant}Hover`])?void 0:n[t.color]},{"&:active":null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color]},{[`&.${S.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]}),H=(0,o.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),L=(0,o.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),T=a.forwardRef(function(e,t){let i=(0,b.Z)({props:e,name:"JoyChip"}),{children:r,className:o,color:s="primary",onClick:l,disabled:d=!1,size:c="md",variant:h="solid",startDecorator:x,endDecorator:p,component:u,slots:f={},slotProps:Z={}}=i,w=(0,m.Z)(i,z),{getColor:P}=(0,y.VT)(h),S=P(e.color,s),T=!!l||!!Z.action,N=(0,g.Z)({},i,{disabled:d,size:c,color:S,variant:h,clickable:T,focusVisible:!1}),F="function"==typeof Z.action?Z.action(N):Z.action,O=a.useRef(null),{focusVisible:A,getRootProps:E}=(0,j.Z)((0,g.Z)({},F,{disabled:d,rootRef:O}));N.focusVisible=A;let M=R(N),W=(0,g.Z)({},w,{component:u,slots:f,slotProps:Z}),[V,U]=(0,_.Z)("root",{ref:t,className:(0,v.Z)(M.root,o),elementType:D,externalForwardedProps:W,ownerState:N}),[$,G]=(0,_.Z)("label",{className:M.label,elementType:I,externalForwardedProps:W,ownerState:N}),J=(0,C.Z)(G.id),[Y,K]=(0,_.Z)("action",{className:M.action,elementType:B,externalForwardedProps:W,ownerState:N,getSlotProps:E,additionalProps:{"aria-labelledby":J,as:null==F?void 0:F.component,onClick:l}}),[X,q]=(0,_.Z)("startDecorator",{className:M.startDecorator,elementType:H,externalForwardedProps:W,ownerState:N}),[Q,ee]=(0,_.Z)("endDecorator",{className:M.endDecorator,elementType:L,externalForwardedProps:W,ownerState:N}),et=a.useMemo(()=>({disabled:d,variant:h,color:"context"===S?void 0:S}),[S,d,h]);return(0,n.jsx)(k.Provider,{value:et,children:(0,n.jsxs)(V,(0,g.Z)({},U,{children:[T&&(0,n.jsx)(Y,(0,g.Z)({},K)),(0,n.jsx)($,(0,g.Z)({},G,{id:J,children:r})),x&&(0,n.jsx)(X,(0,g.Z)({},q,{children:x})),p&&(0,n.jsx)(Q,(0,g.Z)({},ee,{children:p}))]}))})});var N=i(81528),F=i(90545),O=i(35086),A=i(866),E=i(28086),M=i(65326),W=i.n(M),V=i(72474),U=i(59534),$=i(78141),G=i(68949),J=i(73220),Y=i(50157),K=i(23910),X=i(21628),q=i(1031),Q=i(78915),ee=i(89081),et=i(59970),ei=i(44066),en=i(51499),er=e=>{var t,i,r,o,l,c,h,x,u,m,g,v,f,j,Z,C,b,y;let{spaceName:w}=e,[P,S]=(0,a.useState)(!1),[k,_]=(0,a.useState)({}),[z,R]=(0,a.useState)(!1),[D,I]=(0,a.useState)(!1),{data:B}=(0,ee.Z)(()=>(0,Q.PR)("/knowledge/".concat(w,"/arguments")),{onSuccess(e){_(e.data)}});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Z,{variant:"outlined",onClick:()=>S(!0),children:"Arguments"}),(0,n.jsx)(N.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:P,onClose:()=>S(!1),children:(0,n.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsxs)(F.Z,{sx:{height:"500px",overflow:"auto","&::-webkit-scrollbar":{display:"none"}},children:[(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.Z,{sx:{fontWeight:"bold",fontSize:"25px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{R(e=>!e)},children:[z?(0,n.jsx)(ei.Z,{}):(0,n.jsx)(en.Z,{}),"embedding"]}),(0,n.jsxs)(F.Z,{sx:{height:z?"0px":void 0,overflow:"hidden"},children:[(0,n.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1",marginRight:"30px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["topk",(0,n.jsx)(K.Z,{content:"the top k vectors based on similarity score",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(t=B.data)||void 0===t?void 0:null===(i=t.embedding)||void 0===i?void 0:i.topk)||"",onChange:e=>{k.embedding.topk=e.target.value,_({...k})}})})]}),(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["recall_score",(0,n.jsx)(K.Z,{content:"Set a threshold score for the retrieval of similar vectors",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(r=B.data)||void 0===r?void 0:null===(o=r.embedding)||void 0===o?void 0:o.recall_score)||"",onChange:e=>{k.embedding.recall_score=e.target.value,_({...k})}})})]})]}),(0,n.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1",marginRight:"30px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["recall_type",(0,n.jsx)(K.Z,{content:"recall type",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(l=B.data)||void 0===l?void 0:null===(c=l.embedding)||void 0===c?void 0:c.recall_type)||"",onChange:e=>{k.embedding.recall_type=e.target.value,_({...k})}})})]}),(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["model",(0,n.jsx)(K.Z,{content:"A model used to create vector representations of text or other data",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(h=B.data)||void 0===h?void 0:null===(x=h.embedding)||void 0===x?void 0:x.model)||"",onChange:e=>{k.embedding.model=e.target.value,_({...k})}})})]})]}),(0,n.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1",marginRight:"30px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["chunk_size",(0,n.jsx)(K.Z,{content:"The size of the data chunks used in processing",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(u=B.data)||void 0===u?void 0:null===(m=u.embedding)||void 0===m?void 0:m.chunk_size)||"",onChange:e=>{k.embedding.chunk_size=e.target.value,_({...k})}})})]}),(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px",flexGrow:"1",flexShrink:"1"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["chunk_overlap",(0,n.jsx)(K.Z,{content:"The amount of overlap between adjacent data chunks",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(g=B.data)||void 0===g?void 0:null===(v=g.embedding)||void 0===v?void 0:v.chunk_overlap)||"",onChange:e=>{k.embedding.chunk_overlap=e.target.value,_({...k})}})})]})]})]})]}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.Z,{sx:{fontWeight:"bold",fontSize:"25px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{I(e=>!e)},children:[D?(0,n.jsx)(ei.Z,{}):(0,n.jsx)(en.Z,{}),"prompt"]}),(0,n.jsxs)(F.Z,{sx:{height:D?"0px":void 0,overflow:"hidden"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["scene",(0,n.jsx)(K.Z,{content:"A contextual parameter used to define the setting or environment in which the prompt is being used",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(A.Z,{minRows:5,defaultValue:(null==B?void 0:null===(f=B.data)||void 0===f?void 0:null===(j=f.prompt)||void 0===j?void 0:j.scene)||"",onChange:e=>{k.prompt.scene=e.target.value,_({...k})}})})]}),(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["template",(0,n.jsx)(K.Z,{content:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(A.Z,{minRows:5,defaultValue:(null==B?void 0:null===(Z=B.data)||void 0===Z?void 0:null===(C=Z.prompt)||void 0===C?void 0:C.template)||"",onChange:e=>{k.prompt.template=e.target.value,_({...k})}})})]}),(0,n.jsxs)(F.Z,{sx:{marginBottom:"20px"},children:[(0,n.jsxs)(F.Z,{sx:{marginBottom:"10px"},children:["max_token",(0,n.jsx)(K.Z,{content:"The maximum number of tokens or words allowed in a prompt",trigger:"hover",style:{marginLeft:"20px"},children:(0,n.jsx)(et.Z,{sx:{marginLeft:"10px"}})})]}),(0,n.jsx)(F.Z,{children:(0,n.jsx)(O.ZP,{defaultValue:(null==B?void 0:null===(b=B.data)||void 0===b?void 0:null===(y=b.prompt)||void 0===y?void 0:y.max_token)||"",onChange:e=>{k.prompt.max_token=e.target.value,_({...k})}})})]})]})]})]}),(0,n.jsx)(d.Z,{direction:"row",justifyContent:"flex-start",sx:{marginTop:"20px",marginBottom:"20px"},children:(0,n.jsx)(p.Z,{variant:"outlined",onClick:()=>{(0,Q.PR)("/knowledge/".concat(w,"/argument/save"),{argument:JSON.stringify(k)}).then(e=>{e.success?(window.location.reload(),X.ZP.success("success")):X.ZP.error(e.err_msg||"failed")})},children:"Submit"})})]})})]})};let{Dragger:ea}=Y.default,eo=(0,o.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),es=["Choose a Datasource type","Setup the Datasource"],el=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var ed=()=>{let e=(0,r.useRouter)(),t=(0,r.useSearchParams)().get("name"),{mode:i}=(0,l.tv)(),[o,m]=(0,a.useState)(!1),[g,v]=(0,a.useState)(0),[f,j]=(0,a.useState)(""),[Z,C]=(0,a.useState)([]),[b,y]=(0,a.useState)(""),[w,P]=(0,a.useState)(""),[S,k]=(0,a.useState)(""),[_,z]=(0,a.useState)(""),[R,D]=(0,a.useState)(null),[I,B]=(0,a.useState)(0),[H,L]=(0,a.useState)(0),[M,Y]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async function(){let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(C(e.data.data),B(e.data.total),L(e.data.page))})()},[]),(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsxs)(c.Z,{"aria-label":"breadcrumbs",children:[(0,n.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,n.jsx)(x.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,n.jsxs)(d.Z,{direction:"row",alignItems:"center",children:[(0,n.jsxs)(p.Z,{variant:"outlined",onClick:async()=>{var i,n;let r=await (0,Q.PR)("/api/v1/chat/dialogue/new",{chat_mode:"chat_knowledge"});(null==r?void 0:r.success)&&(null==r?void 0:null===(i=r.data)||void 0===i?void 0:i.conv_uid)&&e.push("/chat?id=".concat(null==r?void 0:null===(n=r.data)||void 0===n?void 0:n.conv_uid,"&scene=chat_knowledge&spaceNameOriginal=").concat(t))},sx:{marginRight:"20px",backgroundColor:"rgb(39, 155, 255) !important",color:"white",border:"none"},children:[(0,n.jsx)(J.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Chat"]}),(0,n.jsx)(p.Z,{variant:"outlined",onClick:()=>m(!0),sx:{marginRight:"20px"},children:"+ Add Datasource"}),(0,n.jsx)(er,{spaceName:t})]})]}),Z.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(u.Z,{color:"primary",variant:"plain",size:"sm",sx:{"& tbody tr: hover":{backgroundColor:"light"===i?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"},"& tr > *:last-child":{textAlign:"right"}},children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"Name"}),(0,n.jsx)("th",{children:"Type"}),(0,n.jsx)("th",{children:"Size"}),(0,n.jsx)("th",{children:"Last Synch"}),(0,n.jsx)("th",{children:"Status"}),(0,n.jsx)("th",{children:"Result"}),(0,n.jsx)("th",{style:{width:"30%"},children:"Operation"})]})}),(0,n.jsx)("tbody",{children:Z.map(i=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:i.doc_name}),(0,n.jsx)("td",{children:(0,n.jsx)(T,{size:"sm",variant:"solid",color:"neutral",sx:{opacity:.5},children:i.doc_type})}),(0,n.jsxs)("td",{children:[i.chunk_size," chunks"]}),(0,n.jsx)("td",{children:W()(i.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,n.jsx)("td",{children:(0,n.jsx)(T,{size:"sm",sx:{opacity:.5},variant:"solid",color:function(){switch(i.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:i.status})}),(0,n.jsx)("td",{children:"TODO"===i.status||"RUNNING"===i.status?"":"FINISHED"===i.status?(0,n.jsx)(K.Z,{content:i.result,trigger:"hover",children:(0,n.jsx)(T,{size:"sm",variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,n.jsx)(K.Z,{content:i.result,trigger:"hover",children:(0,n.jsx)(T,{size:"sm",variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,n.jsx)("td",{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(p.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:async()=>{let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[i.id]});e.success?X.ZP.success("success"):X.ZP.error(e.err_msg||"failed")},children:["Synch",(0,n.jsx)($.Z,{})]}),(0,n.jsx)(p.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(i.id))},children:"Details"}),(0,n.jsxs)(p.Z,{variant:"outlined",size:"sm",color:"danger",onClick:async()=>{let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/delete"),{doc_name:i.doc_name});if(e.success){X.ZP.success("success");let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:H,page_size:20});e.success&&(C(e.data.data),B(e.data.total),L(e.data.page))}else X.ZP.error(e.err_msg||"failed")},children:["Delete",(0,n.jsx)(G.Z,{})]})]})})]},i.id))})]}),(0,n.jsx)(d.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,n.jsx)(q.Z,{defaultPageSize:20,showSizeChanger:!1,current:H,total:I,onChange:async e=>{let i=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});i.success&&(C(i.data.data),B(i.data.total),L(i.data.page))},hideOnSinglePage:!0})})]}):(0,n.jsx)(n.Fragment,{}),(0,n.jsx)(N.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:o,onClose:()=>m(!1),children:(0,n.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(F.Z,{sx:{width:"100%"},children:(0,n.jsx)(d.Z,{spacing:2,direction:"row",children:es.map((e,t)=>(0,n.jsxs)(eo,{sx:{fontWeight:g===t?"bold":"",color:g===t?"#2AA3FF":""},children:[t(0,n.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{j(e.type),v(1)},children:[(0,n.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(O.ZP,{placeholder:"Please input the name",onChange:e=>P(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(O.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>y(e.target.value)})]}):"file"===f?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(ea,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){D(null),P("");return}D(e.file.originFileObj),P(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(V.Z,{})}),(0,n.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,n.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,n.jsxs)(n.Fragment,{children:["Text Source(Optional):",(0,n.jsx)(O.ZP,{placeholder:"Please input the text source",onChange:e=>k(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(A.Z,{onChange:e=>z(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(x.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(E.Z,{checked:M,onChange:e=>Y(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(d.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(p.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,n.jsx)(p.Z,{variant:"outlined",onClick:async()=>{if(""===w){X.ZP.error("Please input the name");return}if("webPage"===f){if(""===b){X.ZP.error("Please input the Web Page URL");return}let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:w,content:b,doc_type:"URL"});if(e.success&&M&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:H,page_size:20});e.success&&(C(e.data.data),B(e.data.total),L(e.data.page))}else X.ZP.error(e.err_msg||"failed")}else if("file"===f){if(!R){X.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",w),e.append("doc_file",R),e.append("doc_type","DOCUMENT");let i=await (0,Q.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(i.success&&M&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[i.data]}),i.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:H,page_size:20});e.success&&(C(e.data.data),B(e.data.total),L(e.data.page))}else X.ZP.error(i.err_msg||"failed")}else{if(""===_){X.ZP.error("Please input the text");return}let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:w,source:S,content:_,doc_type:"TEXT"});if(e.success&&M&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:H,page_size:20});e.success&&(C(e.data.data),B(e.data.total),L(e.data.page))}else X.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,i){"use strict";i.d(t,{Tk:function(){return c},Kw:function(){return h},PR:function(){return x},Ej:function(){return p}});var n=i(21628),r=i(24214),a=i(52040);let o=r.Z.create({baseURL:a.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=i(84835);let l={"content-type":"application/json"},d=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let i=t[e];"string"==typeof i&&(t[e]=i.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let i=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");i&&(e+="?".concat(i))}return o.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let i=d(t);return o.post("/api"+e,{body:i,headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},x=(e,t)=>(d(t),o.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),p=(e,t)=>o.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,550,877,230,759,192,81,86,409,790,946,767,957,872,253,769,744],function(){return e(e.s=42414)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-1a9284a20aa72bde.js b/pilot/server/static/_next/static/chunks/app/datastores/page-1a9284a20aa72bde.js deleted file mode 100644 index 97c4ba70e..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-1a9284a20aa72bde.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{85182:function(e,t,r){Promise.resolve().then(r.bind(r,44323))},44323:function(e,t,r){"use strict";r.r(t);var n=r(9268),s=r(56008),o=r(86006),i=r(72474),a=r(59534),l=r(29382),c=r(68949),x=r(74852),d=r(50157),p=r(21628),u=r(50645),h=r(5737),g=r(90545),m=r(80937),j=r(81528),f=r(35086),Z=r(53113),b=r(866),P=r(22046),w=r(28086),y=r(30530),k=r(50318),S=r(78915);let{Dragger:C}=d.default,F=(0,u.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),v=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],R=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),[t,r]=(0,o.useState)(0),[d,u]=(0,o.useState)(""),[_,A]=(0,o.useState)([]),[N,T]=(0,o.useState)(!1),[B,E]=(0,o.useState)(""),[z,D]=(0,o.useState)(""),[O,W]=(0,o.useState)(""),[U,L]=(0,o.useState)(""),[G,I]=(0,o.useState)(""),[K,M]=(0,o.useState)(""),[J,V]=(0,o.useState)(""),[H,X]=(0,o.useState)(null),[Y,q]=(0,o.useState)(!0),[Q,$]=(0,o.useState)(!1),[ee,et]=(0,o.useState)({});return(0,o.useEffect)(()=>{(async function(){let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)})()},[]),(0,n.jsxs)(g.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,n.jsx)(g.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,n.jsxs)(g.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>T(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,n.jsx)(g.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,n.jsx)(g.Z,{sx:{fontSize:"16px"},children:"space"})]}),_.map((t,r)=>(0,n.jsxs)(g.Z,{sx:{position:"relative",padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,n.jsxs)(g.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]}),(0,n.jsx)(g.Z,{sx:{position:"absolute",right:"10px",top:"10px",color:"rgb(205, 32, 41)"},onClick:e=>{e.stopPropagation(),et(t),$(!0)},children:(0,n.jsx)(c.Z,{sx:{fontSize:"30px"}})})]},r)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(j.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:N,onClose:()=>T(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(g.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:v.map((e,r)=>(0,n.jsxs)(F,{sx:{fontWeight:t===r?"bold":"",color:t===r?"#2AA3FF":""},children:[rE(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,n.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,n.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}})]}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===B){p.ZP.error("please input the name");return}if(/[^0-9a-zA-Z_-]/.test(B)){p.ZP.error('the name can only contain numbers, letters, "-" and "_"');return}if(""===z){p.ZP.error("please input the owner");return}if(""===O){p.ZP.error("please input the description");return}let e=await (0,S.PR)("/knowledge/space/add",{name:B,vector_type:"Chroma",owner:z,desc:O});if(e.success){p.ZP.success("success"),r(1);let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.Z,{sx:{margin:"30px auto"},children:R.map(e=>(0,n.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{u(e.type),r(2)},children:[(0,n.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>I(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===d?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>L(e.target.value)})]}):"file"===d?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(C,{name:"file",multiple:!1,onChange(e){var t;if(0===e.fileList.length){X(null),I("");return}X(e.file.originFileObj),I(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(i.Z,{})}),(0,n.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,n.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,n.jsxs)(n.Fragment,{children:["Text Source(Optional):",(0,n.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>M(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(P.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(w.Z,{checked:Y,onChange:e=>q(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(Z.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>r(1),children:"< Back"}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===G){p.ZP.error("Please input the name");return}if("webPage"===d){if(""===U){p.ZP.error("Please input the Web Page URL");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,content:U,doc_type:"URL"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}else if("file"===d){if(!H){p.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",G),e.append("doc_file",H),e.append("doc_type","DOCUMENT");let t=await (0,S.Ej)("/knowledge/".concat(B,"/document/upload"),e);t.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[t.data]})):p.ZP.error(t.err_msg||"failed")}else{if(""===J){p.ZP.error("Please input the text");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,source:K,content:J,doc_type:"TEXT"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})}),(0,n.jsx)(j.Z,{open:Q,onClose:()=>$(!1),children:(0,n.jsxs)(y.Z,{variant:"outlined",role:"alertdialog","aria-labelledby":"alert-dialog-modal-title","aria-describedby":"alert-dialog-modal-description",children:[(0,n.jsx)(P.ZP,{id:"alert-dialog-modal-title",component:"h2",startDecorator:(0,n.jsx)(x.Z,{style:{color:"rgb(205, 32, 41)"}}),sx:{color:"black"},children:"Confirmation"}),(0,n.jsx)(k.Z,{}),(0,n.jsxs)(P.ZP,{id:"alert-dialog-modal-description",textColor:"text.tertiary",sx:{fontWeight:"500",color:"black"},children:["Sure to delete ",null==ee?void 0:ee.name,"?"]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",gap:1,justifyContent:"flex-end",pt:2},children:[(0,n.jsx)(Z.Z,{variant:"outlined",color:"neutral",onClick:()=>$(!1),children:"Cancel"}),(0,n.jsx)(Z.Z,{variant:"outlined",color:"danger",onClick:async()=>{$(!1);let e=await (0,S.PR)("/knowledge/space/delete",{name:null==ee?void 0:ee.name});if(e.success){p.ZP.success("success");let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Yes"})]})]})})]})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return x},Kw:function(){return d},PR:function(){return p},Ej:function(){return u}});var n=r(21628),s=r(24214),o=r(52040);let i=s.Z.create({baseURL:o.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},x=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return i.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),i.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),u=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,877,230,759,192,86,790,946,872,2,253,769,744],function(){return e(e.s=85182)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-e3faa10929c9a39f.js b/pilot/server/static/_next/static/chunks/app/datastores/page-e3faa10929c9a39f.js new file mode 100644 index 000000000..140ec8661 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/page-e3faa10929c9a39f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{85182:function(e,t,r){Promise.resolve().then(r.bind(r,44323))},44323:function(e,t,r){"use strict";r.r(t);var n=r(9268),s=r(56008),o=r(86006),i=r(72474),a=r(59534),l=r(29382),c=r(68949),x=r(74852),d=r(50157),p=r(21628),u=r(50645),h=r(5737),g=r(90545),m=r(80937),j=r(81528),f=r(35086),Z=r(53113),b=r(866),P=r(22046),w=r(28086),y=r(30530),k=r(50318),S=r(78915);let{Dragger:C}=d.default,F=(0,u.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),v=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],R=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),[t,r]=(0,o.useState)(0),[d,u]=(0,o.useState)(""),[_,A]=(0,o.useState)([]),[N,T]=(0,o.useState)(!1),[B,E]=(0,o.useState)(""),[z,D]=(0,o.useState)(""),[O,W]=(0,o.useState)(""),[U,L]=(0,o.useState)(""),[G,I]=(0,o.useState)(""),[K,M]=(0,o.useState)(""),[J,V]=(0,o.useState)(""),[H,X]=(0,o.useState)(null),[Y,q]=(0,o.useState)(!0),[Q,$]=(0,o.useState)(!1),[ee,et]=(0,o.useState)({});return(0,o.useEffect)(()=>{(async function(){let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)})()},[]),(0,n.jsxs)(g.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,n.jsx)(g.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,n.jsxs)(g.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>T(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,n.jsx)(g.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,n.jsx)(g.Z,{sx:{fontSize:"16px"},children:"space"})]}),_.map((t,r)=>(0,n.jsxs)(g.Z,{sx:{position:"relative",padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,n.jsxs)(g.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]}),(0,n.jsx)(g.Z,{sx:{position:"absolute",right:"10px",top:"10px",color:"rgb(205, 32, 41)"},onClick:e=>{e.stopPropagation(),et(t),$(!0)},children:(0,n.jsx)(c.Z,{sx:{fontSize:"30px"}})})]},r)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(j.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:N,onClose:()=>T(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(g.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:v.map((e,r)=>(0,n.jsxs)(F,{sx:{fontWeight:t===r?"bold":"",color:t===r?"#2AA3FF":""},children:[rE(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,n.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,n.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}})]}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===B){p.ZP.error("please input the name");return}if(/[^\u4e00-\u9fa50-9a-zA-Z_-]/.test(B)){p.ZP.error('the name can only contain numbers, letters, Chinese characters, "-" and "_"');return}if(""===z){p.ZP.error("please input the owner");return}if(""===O){p.ZP.error("please input the description");return}let e=await (0,S.PR)("/knowledge/space/add",{name:B,vector_type:"Chroma",owner:z,desc:O});if(e.success){p.ZP.success("success"),r(1);let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.Z,{sx:{margin:"30px auto"},children:R.map(e=>(0,n.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{u(e.type),r(2)},children:[(0,n.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>I(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===d?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>L(e.target.value)})]}):"file"===d?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(C,{name:"file",multiple:!1,onChange(e){var t;if(0===e.fileList.length){X(null),I("");return}X(e.file.originFileObj),I(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(i.Z,{})}),(0,n.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,n.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,n.jsxs)(n.Fragment,{children:["Text Source(Optional):",(0,n.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>M(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(P.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(w.Z,{checked:Y,onChange:e=>q(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(Z.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>r(1),children:"< Back"}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===G){p.ZP.error("Please input the name");return}if("webPage"===d){if(""===U){p.ZP.error("Please input the Web Page URL");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,content:U,doc_type:"URL"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}else if("file"===d){if(!H){p.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",G),e.append("doc_file",H),e.append("doc_type","DOCUMENT");let t=await (0,S.Ej)("/knowledge/".concat(B,"/document/upload"),e);t.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[t.data]})):p.ZP.error(t.err_msg||"failed")}else{if(""===J){p.ZP.error("Please input the text");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,source:K,content:J,doc_type:"TEXT"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})}),(0,n.jsx)(j.Z,{open:Q,onClose:()=>$(!1),children:(0,n.jsxs)(y.Z,{variant:"outlined",role:"alertdialog","aria-labelledby":"alert-dialog-modal-title","aria-describedby":"alert-dialog-modal-description",children:[(0,n.jsx)(P.ZP,{id:"alert-dialog-modal-title",component:"h2",startDecorator:(0,n.jsx)(x.Z,{style:{color:"rgb(205, 32, 41)"}}),sx:{color:"black"},children:"Confirmation"}),(0,n.jsx)(k.Z,{}),(0,n.jsxs)(P.ZP,{id:"alert-dialog-modal-description",textColor:"text.tertiary",sx:{fontWeight:"500",color:"black"},children:["Sure to delete ",null==ee?void 0:ee.name,"?"]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",gap:1,justifyContent:"flex-end",pt:2},children:[(0,n.jsx)(Z.Z,{variant:"outlined",color:"neutral",onClick:()=>$(!1),children:"Cancel"}),(0,n.jsx)(Z.Z,{variant:"outlined",color:"danger",onClick:async()=>{$(!1);let e=await (0,S.PR)("/knowledge/space/delete",{name:null==ee?void 0:ee.name});if(e.success){p.ZP.success("success");let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Yes"})]})]})})]})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return x},Kw:function(){return d},PR:function(){return p},Ej:function(){return u}});var n=r(21628),s=r(24214),o=r(52040);let i=s.Z.create({baseURL:o.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},x=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return i.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),i.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),u=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,877,230,759,192,86,790,946,872,2,253,769,744],function(){return e(e.s=85182)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-b589be73288fef1e.js b/pilot/server/static/_next/static/chunks/app/layout-0a94eba37232c629.js similarity index 99% rename from pilot/server/static/_next/static/chunks/app/layout-b589be73288fef1e.js rename to pilot/server/static/_next/static/chunks/app/layout-0a94eba37232c629.js index 7f1125c7c..96e423036 100644 --- a/pilot/server/static/_next/static/chunks/app/layout-b589be73288fef1e.js +++ b/pilot/server/static/_next/static/chunks/app/layout-0a94eba37232c629.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},86185:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return a}});var n=r(9268),i=r(89081),s=r(78915),l=r(86006);let[a,o]=function(){let e=l.createContext(void 0);return[function(){let t=l.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:l,refresh:a}=(0,i.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:l,queryDialogueList:r,refreshDialogList:a},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return M}});var s=r(9268);r(97402),r(23517);var l=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(53113),x=r(18818),m=r(4882),p=r(70092),v=r(64579),g=r(22046),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),P=r(57931),N=r(66664),_=r(78915),E=r(76394),D=r.n(E),S=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),{dialogueList:o,queryDialogueList:E,refreshDialogList:S}=(0,P.Cg)(),{mode:z,setMode:L}=(0,u.tv)(),F=(0,l.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,s.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,l.useEffect)(()=>{(async()=>{await E()})()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,s.jsx)("div",{children:(0,s.jsx)(k.Z,{})}),(0,s.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,s.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,s.jsx)(C.Z,{})})]}),(0,s.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,s.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,s.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(D(),{src:"/LOGO_1.png",alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full",unoptimized:!0})})}),(0,s.jsx)(f.Z,{sx:{px:2},children:(0,s.jsx)(d(),{href:"/",children:(0,s.jsx)(h.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,s.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,s.jsx)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.map(e=>{let l=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,s.jsx)(m.Z,{children:(0,s.jsx)(p.Z,{selected:l,variant:l?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(v.Z,{children:(0,s.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(g.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await S(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(N.Z,{})})]})})})},e.conv_uid)})})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,s.jsx)("div",{}),(0,s.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,s.jsxs)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,s.jsx)(d(),{href:e.route,children:(0,s.jsx)(m.Z,{children:(0,s.jsxs)(p.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,s.jsx)(v.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(m.Z,{children:(0,s.jsxs)(p.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===z?L("dark"):L("light")},children:[(0,s.jsx)(b.Z,{children:"dark"===z?(0,s.jsx)(Z.Z,{fontSize:"small"}):(0,s.jsx)(w.Z,{fontSize:"small"})}),(0,s.jsx)(v.Z,{children:"Theme"})]})})]})})]})]})})]})},z=r(29720),L=r(41287),F=r(38230);let H=(0,L.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...F.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...F.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var O=r(53794),I=r.n(O),T=r(54486),R=r.n(T);let A=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){R().start()},250))}function K(){A>0||(i="stop",clearTimeout(n),R().done())}if(I().events.on("routeChangeStart",J),I().events.on("routeChangeComplete",K),I().events.on("routeChangeError",K),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,s,l,a;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(s=i.classList)||void 0===s||s.remove("dark"):null==n||null===(l=n.current)||void 0===l||null===(a=l.classList)||void 0===a||a.remove("light")}},[n,r]),(0,s.jsxs)("div",{ref:n,className:"h-full",children:[(0,s.jsx)(W,{}),(0,s.jsx)(P.ZP,{children:(0,s.jsx)("div",{className:"contents h-full",children:(0,s.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,s.jsx)(S,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var M=function(e){let{children:t}=e;return(0,s.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,s.jsx)("body",{className:"h-full font-sans",children:(0,s.jsx)(z.Z,{theme:H,children:(0,s.jsx)(u.lL,{theme:H,defaultMode:"light",children:(0,s.jsx)(G,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return c},Kw:function(){return u},PR:function(){return f},Ej:function(){return h}});var n=r(21628),i=r(24214),s=r(52040);let l=i.Z.create({baseURL:s.env.API_BASE_URL});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=d(t);return l.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},f=(e,t)=>(d(t),l.post(e,t,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),h=(e,t)=>l.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[180,877,230,759,81,409,946,394,751,796,253,769,744],function(){return e(e.s=86185)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},86185:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return a}});var n=r(9268),i=r(89081),s=r(78915),l=r(86006);let[a,o]=function(){let e=l.createContext(void 0);return[function(){let t=l.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:l,refresh:a}=(0,i.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:l,queryDialogueList:r,refreshDialogList:a},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return M}});var s=r(9268);r(97402),r(23517);var l=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(53113),x=r(18818),m=r(4882),p=r(70092),v=r(64579),g=r(22046),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),P=r(57931),N=r(66664),_=r(78915),E=r(76394),D=r.n(E),S=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),{dialogueList:o,queryDialogueList:E,refreshDialogList:S}=(0,P.Cg)(),{mode:z,setMode:L}=(0,u.tv)(),F=(0,l.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,s.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,l.useEffect)(()=>{(async()=>{await E()})()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,s.jsx)("div",{children:(0,s.jsx)(k.Z,{})}),(0,s.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,s.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,s.jsx)(C.Z,{})})]}),(0,s.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,s.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,s.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(D(),{src:"/LOGO_1.png",alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full",unoptimized:!0})})}),(0,s.jsx)(f.Z,{sx:{px:2},children:(0,s.jsx)(d(),{href:"/",children:(0,s.jsx)(h.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,s.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,s.jsx)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.map(e=>{let l=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,s.jsx)(m.Z,{children:(0,s.jsx)(p.Z,{selected:l,variant:l?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(v.Z,{children:(0,s.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(g.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await S(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(N.Z,{})})]})})})},e.conv_uid)})})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,s.jsx)("div",{}),(0,s.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,s.jsxs)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,s.jsx)(d(),{href:e.route,children:(0,s.jsx)(m.Z,{children:(0,s.jsxs)(p.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,s.jsx)(v.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(m.Z,{children:(0,s.jsxs)(p.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===z?L("dark"):L("light")},children:[(0,s.jsx)(b.Z,{children:"dark"===z?(0,s.jsx)(Z.Z,{fontSize:"small"}):(0,s.jsx)(w.Z,{fontSize:"small"})}),(0,s.jsx)(v.Z,{children:"Theme"})]})})]})})]})]})})]})},z=r(29720),L=r(41287),F=r(38230);let H=(0,L.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...F.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...F.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var O=r(53794),I=r.n(O),T=r(54486),R=r.n(T);let A=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){R().start()},250))}function K(){A>0||(i="stop",clearTimeout(n),R().done())}if(I().events.on("routeChangeStart",J),I().events.on("routeChangeComplete",K),I().events.on("routeChangeError",K),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,s,l,a;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(s=i.classList)||void 0===s||s.remove("dark"):null==n||null===(l=n.current)||void 0===l||null===(a=l.classList)||void 0===a||a.remove("light")}},[n,r]),(0,s.jsxs)("div",{ref:n,className:"h-full",children:[(0,s.jsx)(W,{}),(0,s.jsx)(P.ZP,{children:(0,s.jsx)("div",{className:"contents h-full",children:(0,s.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,s.jsx)(S,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var M=function(e){let{children:t}=e;return(0,s.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,s.jsx)("body",{className:"h-full font-sans",children:(0,s.jsx)(z.Z,{theme:H,children:(0,s.jsx)(u.lL,{theme:H,defaultMode:"light",children:(0,s.jsx)(G,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return c},Kw:function(){return u},PR:function(){return f},Ej:function(){return h}});var n=r(21628),i=r(24214),s=r(52040);let l=i.Z.create({baseURL:s.env.API_BASE_URL});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=d(t);return l.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},f=(e,t)=>(d(t),l.post(e,t,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),h=(e,t)=>l.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[180,877,230,759,81,409,394,946,751,796,253,769,744],function(){return e(e.s=86185)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-d7bb6ba07fe28c2b.js b/pilot/server/static/_next/static/chunks/app/page-9c38e63e2d7fd44b.js similarity index 99% rename from pilot/server/static/_next/static/chunks/app/page-d7bb6ba07fe28c2b.js rename to pilot/server/static/_next/static/chunks/app/page-9c38e63e2d7fd44b.js index a7275dfe5..9d1521207 100644 --- a/pilot/server/static/_next/static/chunks/app/page-d7bb6ba07fe28c2b.js +++ b/pilot/server/static/_next/static/chunks/app/page-9c38e63e2d7fd44b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{50318:function(i,e,t){"use strict";t.d(e,{Z:function(){return y}});var r=t(46750),n=t(40431),a=t(86006),o=t(89791),l=t(53832),s=t(47562),c=t(50645),d=t(88930),v=t(18587);function u(i){return(0,v.d6)("MuiDivider",i)}(0,v.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var h=t(326),m=t(9268);let p=["className","children","component","inset","orientation","role","slots","slotProps"],g=i=>{let{orientation:e,inset:t}=i,r={root:["root",e,t&&`inset${(0,l.Z)(t)}`]};return(0,s.Z)(r,u,{})},f=(0,c.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(i,e)=>e.root})(({theme:i,ownerState:e})=>(0,n.Z)({"--Divider-thickness":"1px","--Divider-lineColor":i.vars.palette.divider},"none"===e.inset&&{"--_Divider-inset":"0px"},"context"===e.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===e.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===e.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},e.children?{"--Divider-gap":i.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===e.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:i.vars.fontFamily.body,fontSize:i.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===e.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===e.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===e.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===e.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)"})),x=a.forwardRef(function(i,e){let t=(0,d.Z)({props:i,name:"JoyDivider"}),{className:a,children:l,component:s=null!=l?"div":"hr",inset:c,orientation:v="horizontal",role:u="hr"!==s?"separator":void 0,slots:x={},slotProps:y={}}=t,b=(0,r.Z)(t,p),j=(0,n.Z)({},t,{inset:c,role:u,orientation:v,component:s}),D=g(j),k=(0,n.Z)({},b,{component:s,slots:x,slotProps:y}),[w,Z]=(0,h.Z)("root",{ref:e,className:(0,o.Z)(D.root,a),elementType:f,externalForwardedProps:k,ownerState:j,additionalProps:(0,n.Z)({as:s,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"})});return(0,m.jsx)(w,(0,n.Z)({},Z,{children:l}))});x.muiName="Divider";var y=x},69255:function(i,e,t){Promise.resolve().then(t.bind(t,93768))},93768:function(i,e,t){"use strict";t.r(e);var r=t(9268),n=t(89081),a=t(86006),o=t(50318),l=t(90545),s=t(77614),c=t(53113),d=t(35086),v=t(53047),u=t(54842),h=t(67830),m=t(19700),p=t(92391),g=t(78915),f=t(56008),x=t(76394),y=t.n(x);e.default=function(){var i;let e=p.z.object({query:p.z.string().min(1)}),t=(0,f.useRouter)(),[x,b]=(0,a.useState)(!1),j=(0,m.cI)({resolver:(0,h.F)(e),defaultValues:{}}),{data:D}=(0,n.Z)(async()=>await (0,g.Kw)("/v1/chat/dialogue/scenes")),k=async i=>{let{query:e}=i;try{var r,n;b(!0),j.reset();let i=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.conv_uid,"&initMessage=").concat(e))}catch(i){}finally{b(!1)}};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6",children:[(0,r.jsx)("div",{className:"my-0 mx-auto",children:(0,r.jsx)(y(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full",unoptimized:!0})}),(0,r.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,r.jsxs)("div",{className:"lg:col-span-3",children:[(0,r.jsx)(o.Z,{className:"text-[#878c93]",children:"Quick Start"}),(0,r.jsx)(l.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(s.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}},["& .".concat(s.Z.disabled)]:{cursor:"not-allowed",pointerEvents:"unset",color:"var(--joy-palette-primary-plainColor)",backgroundColor:"var(--joy-palette-primary-softDisabledBg)","&: hover":{backgroundColor:"var(--joy-palette-primary-softDisabledBg)"}}},children:null==D?void 0:null===(i=D.data)||void 0===i?void 0:i.map(i=>(0,r.jsx)(c.Z,{disabled:null==i?void 0:i.show_disable,size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var e,r;let n=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:i.chat_scene});(null==n?void 0:n.success)&&(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.conv_uid)&&t.push("/chat?id=".concat(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.conv_uid,"&scene=").concat(i.chat_scene))},children:i.scene_name},i.chat_scene))})]})}),(0,r.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,r.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:i=>{j.handleSubmit(k)(i)},children:(0,r.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,r.jsx)(v.ZP,{type:"submit",disabled:x,children:(0,r.jsx)(u.Z,{})}),...j.register("query")})})})]})})}},78915:function(i,e,t){"use strict";t.d(e,{Tk:function(){return d},Kw:function(){return v},PR:function(){return u},Ej:function(){return h}});var r=t(21628),n=t(24214),a=t(52040);let o=n.Z.create({baseURL:a.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(i=>i.data,i=>Promise.reject(i));var l=t(84835);let s={"content-type":"application/json"},c=i=>{if(!(0,l.isPlainObject)(i))return JSON.stringify(i);let e={...i};for(let i in e){let t=e[i];"string"==typeof t&&(e[i]=t.trim())}return JSON.stringify(e)},d=(i,e)=>{if(e){let t=Object.keys(e).filter(i=>void 0!==e[i]&&""!==e[i]).map(i=>"".concat(i,"=").concat(e[i])).join("&");t&&(i+="?".concat(t))}return o.get("/api"+i,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},v=(i,e)=>{let t=c(e);return o.post("/api"+i,{body:t,headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},u=(i,e)=>(c(e),o.post(i,e,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})),h=(i,e)=>o.post(i,e).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})}},function(i){i.O(0,[180,877,230,81,86,341,394,253,769,744],function(){return i(i.s=69255)}),_N_E=i.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{50318:function(i,e,t){"use strict";t.d(e,{Z:function(){return y}});var r=t(46750),n=t(40431),a=t(86006),o=t(89791),l=t(53832),s=t(47562),c=t(50645),d=t(88930),v=t(18587);function u(i){return(0,v.d6)("MuiDivider",i)}(0,v.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var h=t(326),m=t(9268);let p=["className","children","component","inset","orientation","role","slots","slotProps"],g=i=>{let{orientation:e,inset:t}=i,r={root:["root",e,t&&`inset${(0,l.Z)(t)}`]};return(0,s.Z)(r,u,{})},f=(0,c.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(i,e)=>e.root})(({theme:i,ownerState:e})=>(0,n.Z)({"--Divider-thickness":"1px","--Divider-lineColor":i.vars.palette.divider},"none"===e.inset&&{"--_Divider-inset":"0px"},"context"===e.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===e.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===e.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},e.children?{"--Divider-gap":i.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===e.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:i.vars.fontFamily.body,fontSize:i.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===e.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===e.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===e.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===e.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)"})),x=a.forwardRef(function(i,e){let t=(0,d.Z)({props:i,name:"JoyDivider"}),{className:a,children:l,component:s=null!=l?"div":"hr",inset:c,orientation:v="horizontal",role:u="hr"!==s?"separator":void 0,slots:x={},slotProps:y={}}=t,b=(0,r.Z)(t,p),j=(0,n.Z)({},t,{inset:c,role:u,orientation:v,component:s}),D=g(j),k=(0,n.Z)({},b,{component:s,slots:x,slotProps:y}),[w,Z]=(0,h.Z)("root",{ref:e,className:(0,o.Z)(D.root,a),elementType:f,externalForwardedProps:k,ownerState:j,additionalProps:(0,n.Z)({as:s,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"})});return(0,m.jsx)(w,(0,n.Z)({},Z,{children:l}))});x.muiName="Divider";var y=x},69255:function(i,e,t){Promise.resolve().then(t.bind(t,93768))},93768:function(i,e,t){"use strict";t.r(e);var r=t(9268),n=t(89081),a=t(86006),o=t(50318),l=t(90545),s=t(77614),c=t(53113),d=t(35086),v=t(53047),u=t(54842),h=t(67830),m=t(19700),p=t(92391),g=t(78915),f=t(56008),x=t(76394),y=t.n(x);e.default=function(){var i;let e=p.z.object({query:p.z.string().min(1)}),t=(0,f.useRouter)(),[x,b]=(0,a.useState)(!1),j=(0,m.cI)({resolver:(0,h.F)(e),defaultValues:{}}),{data:D}=(0,n.Z)(async()=>await (0,g.Kw)("/v1/chat/dialogue/scenes")),k=async i=>{let{query:e}=i;try{var r,n;b(!0),j.reset();let i=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.conv_uid,"&initMessage=").concat(e))}catch(i){}finally{b(!1)}};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6",children:[(0,r.jsx)("div",{className:"my-0 mx-auto",children:(0,r.jsx)(y(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full",unoptimized:!0})}),(0,r.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,r.jsxs)("div",{className:"lg:col-span-3",children:[(0,r.jsx)(o.Z,{className:"text-[#878c93]",children:"Quick Start"}),(0,r.jsx)(l.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(s.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}},["& .".concat(s.Z.disabled)]:{cursor:"not-allowed",pointerEvents:"unset",color:"var(--joy-palette-primary-plainColor)",backgroundColor:"var(--joy-palette-primary-softDisabledBg)","&: hover":{backgroundColor:"var(--joy-palette-primary-softDisabledBg)"}}},children:null==D?void 0:null===(i=D.data)||void 0===i?void 0:i.map(i=>(0,r.jsx)(c.Z,{disabled:null==i?void 0:i.show_disable,size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var e,r;let n=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:i.chat_scene});(null==n?void 0:n.success)&&(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.conv_uid)&&t.push("/chat?id=".concat(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.conv_uid,"&scene=").concat(i.chat_scene))},children:i.scene_name},i.chat_scene))})]})}),(0,r.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,r.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:i=>{j.handleSubmit(k)(i)},children:(0,r.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,r.jsx)(v.ZP,{type:"submit",disabled:x,children:(0,r.jsx)(u.Z,{})}),...j.register("query")})})})]})})}},78915:function(i,e,t){"use strict";t.d(e,{Tk:function(){return d},Kw:function(){return v},PR:function(){return u},Ej:function(){return h}});var r=t(21628),n=t(24214),a=t(52040);let o=n.Z.create({baseURL:a.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(i=>i.data,i=>Promise.reject(i));var l=t(84835);let s={"content-type":"application/json"},c=i=>{if(!(0,l.isPlainObject)(i))return JSON.stringify(i);let e={...i};for(let i in e){let t=e[i];"string"==typeof t&&(e[i]=t.trim())}return JSON.stringify(e)},d=(i,e)=>{if(e){let t=Object.keys(e).filter(i=>void 0!==e[i]&&""!==e[i]).map(i=>"".concat(i,"=").concat(e[i])).join("&");t&&(i+="?".concat(t))}return o.get("/api"+i,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},v=(i,e)=>{let t=c(e);return o.post("/api"+i,{body:t,headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},u=(i,e)=>(c(e),o.post(i,e,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})),h=(i,e)=>o.post(i,e).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})}},function(i){i.O(0,[180,877,230,81,86,394,341,253,769,744],function(){return i(i.s=69255)}),_N_E=i.O()}]); \ No newline at end of file diff --git a/pilot/server/static/chat/index.html b/pilot/server/static/chat/index.html index eb0f11d55..49f90b476 100644 --- a/pilot/server/static/chat/index.html +++ b/pilot/server/static/chat/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/chat/index.txt b/pilot/server/static/chat/index.txt index d2518e914..9da2462b3 100644 --- a/pilot/server/static/chat/index.txt +++ b/pilot/server/static/chat/index.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}] -0:["Cacznp7OMpA2Ut8fcv_rl",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-b589be73288fef1e.js"],"name":"","async":false} +0:["A03tTCRMVq61CqNtuDOvh",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-0a94eba37232c629.js"],"name":"","async":false} 5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 6:I{"id":"5767","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 7:I{"id":"37396","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"65641","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","282:static/chunks/7e4358a0-8f10c290d655cdf1.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","790:static/chunks/790-97e6b769f5c791cb.js","767:static/chunks/767-b93280f4b5b5e975.js","341:static/chunks/341-45d79e5f1110ab05.js","751:static/chunks/751-30fee9a32c6e64a2.js","320:static/chunks/320-63dc542e9a7120d1.js","929:static/chunks/app/chat/page-641be9e13d61cb24.js"],"name":"","async":false} +8:I{"id":"65641","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","282:static/chunks/7e4358a0-8f10c290d655cdf1.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","192:static/chunks/192-e9f419fb9f5bc502.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","790:static/chunks/790-97e6b769f5c791cb.js","767:static/chunks/767-b93280f4b5b5e975.js","341:static/chunks/341-45d79e5f1110ab05.js","751:static/chunks/751-30fee9a32c6e64a2.js","320:static/chunks/320-63dc542e9a7120d1.js","929:static/chunks/app/chat/page-641be9e13d61cb24.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","chat","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chat"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/datastores/documents/chunklist/index.html b/pilot/server/static/datastores/documents/chunklist/index.html index f315dd782..5a02df94f 100644 --- a/pilot/server/static/datastores/documents/chunklist/index.html +++ b/pilot/server/static/datastores/documents/chunklist/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/datastores/documents/chunklist/index.txt b/pilot/server/static/datastores/documents/chunklist/index.txt index c02077dcd..7915937f3 100644 --- a/pilot/server/static/datastores/documents/chunklist/index.txt +++ b/pilot/server/static/datastores/documents/chunklist/index.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}] -0:["Cacznp7OMpA2Ut8fcv_rl",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-b589be73288fef1e.js"],"name":"","async":false} +0:["A03tTCRMVq61CqNtuDOvh",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-0a94eba37232c629.js"],"name":"","async":false} 5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 6:I{"id":"5767","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 7:I{"id":"37396","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"26257","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","409:static/chunks/409-4b199bf070fd70fc.js","767:static/chunks/767-b93280f4b5b5e975.js","957:static/chunks/957-c96ff4de6e80d713.js","538:static/chunks/app/datastores/documents/chunklist/page-cd9a18b737d2f31b.js"],"name":"","async":false} +8:I{"id":"26257","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","759:static/chunks/759-92fc0713bcb724b3.js","192:static/chunks/192-e9f419fb9f5bc502.js","409:static/chunks/409-4b199bf070fd70fc.js","767:static/chunks/767-b93280f4b5b5e975.js","207:static/chunks/207-2d692c761ec68010.js","538:static/chunks/app/datastores/documents/chunklist/page-0f2d3429fd2ed723.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children","chunklist","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chunklist"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/datastores/documents/index.html b/pilot/server/static/datastores/documents/index.html index 79d17659d..9e5be7ad9 100644 --- a/pilot/server/static/datastores/documents/index.html +++ b/pilot/server/static/datastores/documents/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/datastores/documents/index.txt b/pilot/server/static/datastores/documents/index.txt index 9d1d23c0e..199e26b92 100644 --- a/pilot/server/static/datastores/documents/index.txt +++ b/pilot/server/static/datastores/documents/index.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}] -0:["Cacznp7OMpA2Ut8fcv_rl",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-b589be73288fef1e.js"],"name":"","async":false} +0:["A03tTCRMVq61CqNtuDOvh",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-0a94eba37232c629.js"],"name":"","async":false} 5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 6:I{"id":"5767","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 7:I{"id":"37396","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"36906","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","550:static/chunks/925f3d25-1af7259455ef26bd.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","409:static/chunks/409-4b199bf070fd70fc.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","767:static/chunks/767-b93280f4b5b5e975.js","957:static/chunks/957-c96ff4de6e80d713.js","872:static/chunks/872-4a145d8028102d89.js","470:static/chunks/app/datastores/documents/page-8c5325d5737cf6c7.js"],"name":"","async":false} +8:I{"id":"87278","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","550:static/chunks/925f3d25-1af7259455ef26bd.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","192:static/chunks/192-e9f419fb9f5bc502.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","767:static/chunks/767-b93280f4b5b5e975.js","207:static/chunks/207-2d692c761ec68010.js","872:static/chunks/872-4a145d8028102d89.js","388:static/chunks/388-0639392dd59206df.js","470:static/chunks/app/datastores/documents/page-15bd54399f756d3e.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/datastores/index.html b/pilot/server/static/datastores/index.html index bef2117cb..05b582c6c 100644 --- a/pilot/server/static/datastores/index.html +++ b/pilot/server/static/datastores/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/datastores/index.txt b/pilot/server/static/datastores/index.txt index 06f8cec1a..218a37489 100644 --- a/pilot/server/static/datastores/index.txt +++ b/pilot/server/static/datastores/index.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}] -0:["Cacznp7OMpA2Ut8fcv_rl",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-b589be73288fef1e.js"],"name":"","async":false} +0:["A03tTCRMVq61CqNtuDOvh",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-0a94eba37232c629.js"],"name":"","async":false} 5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 6:I{"id":"5767","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 7:I{"id":"37396","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"44323","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","192:static/chunks/192-e9f419fb9f5bc502.js","86:static/chunks/86-6193a530bd8e3ef4.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","872:static/chunks/872-4a145d8028102d89.js","2:static/chunks/2-a60cf38d8ab305bb.js","43:static/chunks/app/datastores/page-1a9284a20aa72bde.js"],"name":"","async":false} +8:I{"id":"44323","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","192:static/chunks/192-e9f419fb9f5bc502.js","86:static/chunks/86-6193a530bd8e3ef4.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","872:static/chunks/872-4a145d8028102d89.js","2:static/chunks/2-a60cf38d8ab305bb.js","43:static/chunks/app/datastores/page-e3faa10929c9a39f.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/huggingface_logo.svg b/pilot/server/static/huggingface_logo.svg new file mode 100644 index 000000000..ef36d62b6 --- /dev/null +++ b/pilot/server/static/huggingface_logo.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/pilot/server/static/index.html b/pilot/server/static/index.html index 6e8b1e6c4..43e1bb53f 100644 --- a/pilot/server/static/index.html +++ b/pilot/server/static/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/index.txt b/pilot/server/static/index.txt index 6167e4c0e..a0ad73e1d 100644 --- a/pilot/server/static/index.txt +++ b/pilot/server/static/index.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}] -0:["Cacznp7OMpA2Ut8fcv_rl",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-22c7defc3aa943a7.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","394:static/chunks/394-0ffa189aa535d3eb.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-b589be73288fef1e.js"],"name":"","async":false} +0:["A03tTCRMVq61CqNtuDOvh",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-0a94eba37232c629.js"],"name":"","async":false} 5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 6:I{"id":"5767","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 7:I{"id":"37396","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"93768","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-cd5be147a1026461.js","230:static/chunks/230-9b7eec94114cc7c3.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","341:static/chunks/341-45d79e5f1110ab05.js","394:static/chunks/394-0ffa189aa535d3eb.js","931:static/chunks/app/page-d7bb6ba07fe28c2b.js"],"name":"","async":false} +8:I{"id":"93768","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","394:static/chunks/394-0ffa189aa535d3eb.js","341:static/chunks/341-45d79e5f1110ab05.js","931:static/chunks/app/page-9c38e63e2d7fd44b.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]