import{i as e}from"./rolldown-runtime-BgaNhQyE.js";import{Dr as t,Et as n,Gt as r,Jt as i,N as a,Pn as o,Q as s,St as c,Ut as l,Vn as u,Wt as d,Yn as f,Zt as p,en as m,n as h,pt as ee,qt as g,rr as _,u as v,vt as y,xn as b,xt as x,yr as S,zn as C}from"./jsx-runtime-CRBytmvs.js";import{l as te,m as w,n as T,p as E,r as D,s as O,t as ne}from"./style-BmYds38x.js";import{t as k}from"./useBreakpoint-DLqc4AYE.js";import{t as re}from"./LeftOutlined-8zj_FQJP.js";import{n as ie,r as ae,t as oe}from"./DoubleRightOutlined-Blfli1UU.js";import{t as se}from"./zh_CN-BT8mdvr9.js";var A=e(t()),ce=[10,20,50,100],le=e=>{let{pageSizeOptions:t=ce,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=A.useState(``),m=A.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,ee=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},g=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},v=e=>{f!==``&&(e.keyCode===_.ENTER||e.type===`click`)&&(p(``),o?.(m))},y=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),b=`${s}-options`;if(!u&&!o)return null;let x=null,S=null,C=null;return u&&d&&(x=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${b}-size-changer`,options:y().map(e=>({label:h(e),value:e}))})),o&&(a&&(C=typeof a==`boolean`?A.createElement(`button`,{type:`button`,onClick:v,onKeyUp:v,disabled:c,className:`${b}-quick-jumper-button`},n.jump_to_confirm):A.createElement(`span`,{onClick:v,onKeyUp:v},a)),S=A.createElement(`div`,{className:`${b}-quick-jumper`},n.jump_to,A.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:ee,onKeyUp:v,onBlur:g,"aria-label":n.page}),n.page,C)),A.createElement(`li`,{className:b},x,S)},j=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,d=`${t}-item`,f=u(d,`${d}-${n}`,{[`${d}-active`]:r,[`${d}-disabled`]:!n},i),p=()=>{s(n)},m=e=>{c(e,s,n)},h=l(n,`page`,A.createElement(`a`,{rel:`nofollow`},n));return h?A.createElement(`li`,{title:o?String(n):null,className:f,style:a,onClick:p,onKeyDown:m,tabIndex:0},h):null};function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function ue(){}function de(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function P(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var F=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:d=10,onChange:p=ue,hideOnSinglePage:m,align:h,showPrevNextJumpers:ee=!0,showQuickJumper:g,showLessItems:v,showTitle:y=!0,onShowSizeChange:b=ue,locale:x=se,style:C,totalBoundaryShowSizeChanger:te=50,disabled:w,simple:T,showTotal:E,showSizeChanger:D=c>te,sizeChangerRender:O,pageSizeOptions:ne,itemRender:k=N,jumpPrevIcon:re,jumpNextIcon:ie,prevIcon:ae,nextIcon:oe}=e,ce=A.useRef(null),[F,fe]=S(d,l),[I,L]=S(s,o),R=Math.max(1,Math.min(I,P(void 0,F,c))),[z,B]=A.useState(R);(0,A.useEffect)(()=>{B(R)},[R]),`current`in e;let V=Math.max(1,R-(v?3:5)),H=Math.min(P(void 0,F,c),R+(v?3:5));function U(n,r){let i=n||A.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=A.createElement(n,e)),i}function W(e){let t=e.target.value,n=P(void 0,F,c),r;return r=t===``?t:Number.isNaN(Number(t))?z:t>=n?n:Number(t),r}function pe(e){return de(e)&&e!==R&&de(c)&&c>0}let me=c>F&&g;function he(e){(e.keyCode===_.UP||e.keyCode===_.DOWN)&&e.preventDefault()}function ge(e){let t=W(e);switch(t!==z&&B(t),e.keyCode){case _.ENTER:G(t);break;case _.UP:G(t-1);break;case _.DOWN:G(t+1);break;default:break}}function _e(e){G(W(e))}function ve(e){let t=P(e,F,c),n=R>t&&t!==0?t:R;fe(e),B(n),b?.(R,e),L(n),p?.(n,e)}function G(e){if(pe(e)&&!w){let t=P(void 0,F,c),n=e;return e>t?n=t:e<1&&(n=1),n!==z&&B(n),L(n),p?.(n,F),n}return R}let K=R>1,q=Rc?c:R*F])),Ne=null,Y=P(void 0,F,c);if(m&&c<=F)return null;let X=[],Z={rootPrefixCls:t,onClick:G,onKeyPress:J,showTitle:y,itemRender:k,page:-1,className:i?.item,style:a?.item},Pe=R-1>0?R-1:0,Fe=R+1=Q*2&&R!==3,c=!!Ne&&Y-R>=Q*2&&R!==Y-2;!v&&s&&o!==Y&&(a+=1),!v&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)X.push(A.createElement(j,M({},Z,{key:e,page:e,active:R===e})));if(s&&(X[0]=A.cloneElement(X[0],{className:u(`${t}-item-after-jump-prev`,X[0].props.className)}),X.unshift(Ae)),c){let e=X[X.length-1];X[X.length-1]=A.cloneElement(e,{className:u(`${t}-item-before-jump-next`,e.props.className)}),X.push(Ne)}a!==1&&X.unshift(A.createElement(j,M({},Z,{key:1,page:1}))),o!==Y&&X.push(A.createElement(j,M({},Z,{key:Y,page:Y})))}let Be=De(Pe);if(Be){let e=!K||!Y;Be=A.createElement(`li`,{title:y?x.prev_page:null,onClick:ye,tabIndex:e?null:0,onKeyDown:Ce,className:u(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Be)}let $=Oe(Fe);if($){let e,n;T?(e=!q,n=K?0:null):(e=!q||!Y,n=e?null:0),$=A.createElement(`li`,{title:y?x.next_page:null,onClick:be,tabIndex:n,onKeyDown:we,className:u(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},$)}let Ve=u(t,r,{[`${t}-start`]:h===`start`,[`${t}-center`]:h===`center`,[`${t}-end`]:h===`end`,[`${t}-simple`]:T,[`${t}-disabled`]:w});return A.createElement(`ul`,M({className:Ve,style:C,ref:ce},je),Me,Be,T?ze:X,$,A.createElement(le,{locale:x,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:ve,pageSize:F,pageSizeOptions:ne,quickGo:me?G:null,goButton:Re,showSizeChanger:D,sizeChangerRender:O}))},fe=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}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&: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}}}}},I=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...D(e),width:e.paginationMiniQuickJumperInputWidth}}}}},L=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...T(e)}}}}},R=e=>{let{componentCls:t,antCls:n}=e,[,r]=l(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${o(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${o(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${o(e.inputOutlineOffset)} 0 ${o(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},z=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...te(e)}}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${o(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},B=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=l(i,`pagination`);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`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:a(`item-spacing-actual`)},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:`inline-block`,minWidth:a(`item-size-actual`),height:a(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:a(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{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:`${o(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,[`&-size-changer, &-size-changer${t}-options-size-changer-select`]:{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:a(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:a(`item-size-actual`),verticalAlign:`baseline`,input:{...ne(e),...O(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...te(e)},width:e.quickJumperInputWidth,height:a(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:a(`item-spacing-actual`),marginInlineEnd:a(`item-spacing-actual`)}}}}},V=e=>{let{componentCls:t,antCls:n}=e,[,r]=l(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:o(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${o(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${o(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},H=e=>{let{componentCls:t,antCls:n}=e,[r,i]=l(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:o(e.itemSize),[r(`item-spacing-actual`)]:o(e.marginXS),"&-small":{[r(`item-size-actual`)]:o(e.itemSizeSM),[r(`item-spacing-actual`)]:o(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:o(e.itemSizeLG),[r(`item-spacing-actual`)]:o(e.marginSM)},...p(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"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:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:o(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...V(e),...B(e),...R(e),...z(e),...I(e),...L(e),...fe(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`}}},U=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...i(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...g(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:g(e)}}}},W=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...E(e)}),pe=e=>b(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},w(e)),me=d(`Pagination`,e=>{let t=pe(e);return[H(t),U(t)]},W),he=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${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}-bordered`]:{[`${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:`${o(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},ge=r([`Pagination`,`bordered`],e=>he(pe(e)),W);function _e(e){return(0,A.useMemo)(()=>typeof e==`boolean`?[e,{}]:n(e)?[!0,e]:[void 0,void 0],[e])}var ve=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:o,style:l,size:d,locale:f,responsive:p,showSizeChanger:g,selectComponentClass:_,pageSizeOptions:b,styles:S,classNames:te,...w}=e,{xs:T}=k(p),[,E]=m(),{getPrefixCls:D,direction:O,showSizeChanger:ne,className:se,style:ce,classNames:le,styles:j,totalBoundaryShowSizeChanger:M}=C(`pagination`),N=D(`pagination`,n),[ue,de]=me(N),P=s(d),fe=P===`small`||!!(T&&!P&&p),[I,L]=v(`input`),R={...e,size:P},z=c(ce),B=c(l),[V,H]=x([le,te],[j,z,S,B],{props:R}),[U]=ee(`Pagination`,y),W={...U,...f},[pe,he]=_e(g),[ve,G]=_e(ne),K=pe??ve,q=he??G,ye=_||ae,be=A.useMemo(()=>b?b.map(Number):void 0,[b]),xe=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=q||{},l=o.find(e=>String(e.value)===String(n))?.value;return A.createElement(ye,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...q,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:P,className:u(`${N}-options-size-changer-select`,a,s)})},Se=A.useMemo(()=>{let e=A.createElement(`span`,{className:`${N}-item-ellipsis`},A.createElement(h,null));return{prevIcon:A.createElement(`button`,{className:`${N}-item-link`,type:`button`,tabIndex:-1},O===`rtl`?A.createElement(a,null):A.createElement(re,null)),nextIcon:A.createElement(`button`,{className:`${N}-item-link`,type:`button`,tabIndex:-1},O===`rtl`?A.createElement(re,null):A.createElement(a,null)),jumpPrevIcon:A.createElement(`a`,{className:`${N}-item-link`},A.createElement(`div`,{className:`${N}-item-container`},O===`rtl`?A.createElement(oe,{className:`${N}-item-link-icon`}):A.createElement(ie,{className:`${N}-item-link-icon`}),e)),jumpNextIcon:A.createElement(`a`,{className:`${N}-item-link`},A.createElement(`div`,{className:`${N}-item-container`},O===`rtl`?A.createElement(ie,{className:`${N}-item-link-icon`}):A.createElement(oe,{className:`${N}-item-link-icon`}),e))}},[O,N]),J=D(`select`,r),Ce=u({[`${N}-${t}`]:!!t,[`${N}-${P}`]:P,[`${N}-${I}`]:L&&I!==`outlined`,[`${N}-mini`]:fe,[`${N}-rtl`]:O===`rtl`,[`${N}-bordered`]:E.wireframe},se,i,o,V.root,ue,de),we={...H.root};return A.createElement(A.Fragment,null,E.wireframe&&A.createElement(ge,{prefixCls:N}),A.createElement(F,{...Se,...w,styles:H,classNames:V,style:we,prefixCls:N,selectPrefixCls:J,className:Ce,locale:W,pageSizeOptions:be,showSizeChanger:K,totalBoundaryShowSizeChanger:w.totalBoundaryShowSizeChanger??M,sizeChangerRender:xe}))};export{ve as t};